100+ results for 'function u lang:php'
Not the results you expected?
dumper.php (https://github.com/nigeldaley/moodle.git) PHP · 360 lines
26 * @access public
27 */
28 function describeValue($value) {
29 $type = $this->getType($value);
30 switch($type) {
51 * @access public
52 */
53 function getType($value) {
54 if (! isset($value)) {
55 return "Null";
82 * @access public
83 */
84 function describeDifference($first, $second, $identical = false) {
85 if ($identical) {
86 if (! $this->_isTypeMatch($first, $second)) {
LanguageKk_cyrl.php (https://github.com/sunnysujan/wikireader.git) PHP · 720 lines
13 */
15 function convertGrammarKk_cyrl( $word, $case ) {
16 global $wgGrammarForms;
17 if ( isset( $wgGrammarForms['kk-kz'][$case][$word] ) ) {
233 }
235 function convertGrammarKk_latn( $word, $case ) {
236 global $wgGrammarForms;
237 if ( isset( $wgGrammarForms['kk-tr'][$case][$word] ) ) {
453 }
455 function convertGrammarKk_arab( $word, $case ) {
456 global $wgGrammarForms;
457 if ( isset( $wgGrammarForms['kk-cn'][$case][$word] ) ) {
wc-meta-box-functions.php (https://gitlab.com/webkod3r/tripolis) PHP · 255 lines
AbstractPaginator.php (https://gitlab.com/Sigpot/AirSpot) PHP · 522 lines
116 * @return string
117 */
118 public function url($page)
119 {
120 if ($page <= 0) {
312 * @return void
313 */
314 public static function currentPathResolver(Closure $resolver)
315 {
316 static::$currentPathResolver = $resolver;
339 * @return void
340 */
341 public static function currentPageResolver(Closure $resolver)
342 {
343 static::$currentPageResolver = $resolver;
SubscriptionInfo.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 401 lines
68 * of the subscription.
69 */
70 public function __construct(
71 $title = Resources::EMPTY_STRING,
72 $subscriptionDescription = null
93 * @return none
94 */
95 public function parseXml($entryXml)
96 {
97 $this->_entry->parseXml($entryXml);
113 * @return none
114 */
115 public function writeXml($xmlWriter)
116 {
117 $content = null;
WhereWalker.php (https://github.com/KnpLabs/knp-components.git) PHP · 261 lines
5 use Doctrine\DBAL\Types\Types as Type;
6 use Doctrine\ORM\Query\AST\Functions\LowerFunction;
7 use Doctrine\ORM\Query\AST\ComparisonExpression;
8 use Doctrine\ORM\Query\AST\ConditionalExpression;
20 /**
21 * Where Query TreeWalker for Filtration functionality
22 * in doctrine paginator
23 */
46 * @return void|string
47 */
48 public function walkSelectStatement(SelectStatement $AST)
49 {
50 $query = $this->_getQuery();
func_news.php (https://github.com/lewellyn/TrellisDesk.git) PHP · 302 lines
16 #=======================================
18 public function get($input)
19 {
20 $return = array();
46 #=======================================
48 public function get_single($select, $where='')
49 {
50 $this->trellis->db->construct( array(
66 #=======================================
68 public function get_single_by_id($select, $id)
69 {
70 return $this->get_single( $select, array( 'id', '=', intval( $id ) ) );
voucher_theme.php (https://github.com/smadi/arabian-land.git) PHP · 413 lines
simple.tagx (https://bitbucket.org/zzha4573/readertest.git) Unknown · 35 lines
1 <jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:spring="http://www.springframework.org/tags" xmlns:form="http://www.springframework.org/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
2 <jsp:output omit-xml-declaration="yes" />
Value.php (https://github.com/rgranadino/magento-mirror.git) PHP · 351 lines
39 *
40 */
41 protected function _construct()
42 {
43 $this->_init('catalog/product_option_type_value', 'option_type_id');
51 * @return Mage_Core_Model_Resource_Db_Abstract
52 */
53 protected function _afterSave(Mage_Core_Model_Abstract $object)
54 {
55 $this->_saveValuePrices($object);
64 * @param Mage_Core_Model_Abstract $object
65 */
66 protected function _saveValuePrices(Mage_Core_Model_Abstract $object)
67 {
68 $priceTable = $this->getTable('catalog/product_option_type_price');
header.php (https://github.com/sansanwawa/e-commerse.git) PHP · 188 lines
api.php (https://github.com/72lions/v1.72lions.com.git) PHP · 341 lines
34 * @author Thodoris Tsiridis
35 */
36 public function getCategories($start = 0, $total = 10, $sort = 'name ASC') {
38 $query = "SELECT WT.* FROM wp_terms WT, wp_term_taxonomy WTT
46 $db = new DB();
47 $db->connect(self::$DB_USERNAME, self::$DB_PASSWORD, self::$DB_HOST, self::$DB_NAME);
48 $result = mysql_query($query) or die('Class '.__CLASS__.' -> '.__FUNCTION__.' : ' . mysql_error());
49 while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
76 * @author Thodoris Tsiridis
77 */
78 public function getPosts($categoryId = null, $tagId = null, $start = 0, $total = 10, $sort = 'post_date DESC') {
80 $db = new DB();
EventManagerTest.php (https://github.com/shama/cakephp.git) PHP · 419 lines
41 * @return void
42 */
43 public function listenerFunction() {
44 $this->callStack[] = __FUNCTION__;
50 * @return void
51 */
52 public function secondListenerFunction() {
53 $this->callStack[] = __FUNCTION__;
89 * @return void
90 */
91 public function thirdListenerFunction() {
92 $this->callStack[] = __FUNCTION__;
299 $manager->dispatch($event);
301 $expected = array('secondListenerFunction', 'listenerFunction');
302 $this->assertEquals($expected, $listener->callStack);
303 }
SecretaresseController.php (https://gitlab.com/YuriLamijo/telefoonlijst) PHP · 266 lines
58 }
60 private function uitloggenAction() {
61 $this->model->uitloggen();
62 $this->forward('default', 'bezoeker');
79 }
81 private function addAction() {
82 if ($this->model->isPostLeeg()) {
83 $this->view->set("boodschap", "Vul gegevens in van een nieuwe medewerker");
190 }
192 /* private function updateAction() {
194 } */
Db.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 364 lines
88 * @throws \Exception
89 */
90 public function __construct(\Magento\Framework\DB\Adapter\AdapterInterface $connection, $table, $fields)
91 {
92 parent::__construct();
124 * @return \Magento\Framework\DB\Select
125 */
126 public function getDbSelect()
127 {
128 return $this->_select;
133 * @return void
134 */
135 public function setDbSelect($select)
136 {
137 $this->_select = $select;
Select.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 317 lines
41 * @return Mage_Catalog_Model_Product_Option_Type_Default
42 */
43 public function validateUserValue($values)
44 {
45 parent::validateUserValue($values);
69 * @return mixed Prepared option value
70 */
71 public function prepareForCart()
72 {
73 if ($this->getIsValid() && $this->getUserValue()) {
84 * @return string
85 */
86 public function getFormattedOptionValue($optionValue)
87 {
88 if ($this->_formattedOptionValue === null) {
PublisherServiceImpl.php (https://bitbucket.org/blackriver/openx.git) PHP · 356 lines
55 * The PublisherServiceImpl method is the constructor for the PublisherServiceImpl class.
56 */
57 function PublisherServiceImpl()
58 {
59 $this->BaseServiceImpl();
71 * @return boolean
72 */
73 function _validateResult($result)
74 {
75 if ($result) {
93 * @return boolean
94 */
95 function addPublisher($sessionId, &$oPublisher)
96 {
97 if ($this->verifySession($sessionId)) {
DbStatement.php (https://github.com/sidealice/zf2.git) PHP · 405 lines
65 * @return \Zend\Test\DbStatement
66 */
67 static public function createSelectStatement(array $rows=array())
68 {
69 $stmt = new self();
80 * @return \Zend\Test\DbStatement
81 */
82 static public function createInsertStatement($affectedRows=0)
83 {
84 return self::_createRowCountStatement($affectedRows);
91 * @return \Zend\Test\DbStatement
92 */
93 static public function createDeleteStatement($affectedRows=0)
94 {
95 return self::_createRowCountStatement($affectedRows);
conditiongroup.php (https://gitlab.com/alexprowars/bitrix) PHP · 441 lines
163 * @return array Condition items.
164 */
165 public function getItems()
166 {
167 return $this->items;
190 * @return array New activity array.
191 */
192 public function createBizprocActivity(array $childActivity, array $documentType, Template $template)
193 {
194 $mixedCondition = [];
424 }
426 private static function unConvertExpressions($value, array $documentType)
427 {
428 if (is_array($value))
AbstractProfilerStorageTest.php (https://gitlab.com/techniconline/kmc) PHP · 254 lines
16 abstract class AbstractProfilerStorageTest extends \PHPUnit_Framework_TestCase
17 {
18 public function testStore()
19 {
20 for ($i = 0; $i < 10; ++$i) {
28 }
30 public function testChildren()
31 {
32 $parentProfile = new Profile('token_parent');
57 }
59 public function testStoreSpecialCharsInUrl()
60 {
61 // The storage accepts special characters in URLs (Even though URLs are not
test_comment_loop.php (https://github.com/pbiggar/phc.git) PHP · 229 lines
ChoiceTypeTest.php (https://github.com/Faianca/symfony.git) PHP · 439 lines
56 * @expectedException Symfony\Component\Form\Exception\UnexpectedTypeException
57 */
58 public function testChoicesOptionExpectsArray()
59 {
60 $form = $this->factory->create('choice', null, array(
66 * @expectedException Symfony\Component\Form\Exception\FormException
67 */
68 public function testChoiceListOptionExpectsChoiceListInterface()
69 {
70 $form = $this->factory->create('choice', null, array(
73 }
75 public function testExpandedCheckboxesAreNeverRequired()
76 {
77 $form = $this->factory->create('choice', null, array(
ConfigurationTest.php (https://gitlab.com/hunt9310/ras) PHP · 417 lines
9 class ConfigurationTest extends Setup
10 {
11 public function setup()
12 {
13 Braintree\Configuration::reset();
15 }
17 public function teardown()
18 {
19 Braintree\Configuration::environment('development');
23 }
25 public function testAssertGlobalHasAccessTokenOrKeys()
26 {
27 Braintree\Configuration::environment('development');
CaptureTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 390 lines
XsdTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 277 lines
16 protected $schemaFile;
18 protected function setUp()
19 {
20 if (!function_exists('libxml_set_external_entity_loader')) {
32 * @dataProvider exemplarXmlDataProvider
33 */
34 public function testExemplarXml($fixtureXml, array $expectedErrors)
35 {
36 $validationStateMock = $this->getMock(
54 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
55 */
56 public function exemplarXmlDataProvider()
57 {
58 return [
CouponRepositoryTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 271 lines
58 protected $objectManager;
60 protected function setUp()
61 {
62 $this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
106 }
108 public function testSave()
109 {
110 $id = 1;
143 * @throws \Magento\Framework\Exception\LocalizedException
144 */
145 public function testSaveWithExceptions($exceptionObject, $exceptionName, $exceptionMessage, $id)
146 {
147 /**
class-wc-rest-customers-controller.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 312 lines
34 * @return array
35 */
36 protected function get_formatted_item_data( $object ) {
37 $data = $object->get_data();
38 $format_date = array( 'date_created', 'date_modified' );
70 * @return array
71 */
72 public function get_item_schema() {
73 $schema = array(
74 '$schema' => 'http://json-schema.org/draft-04/schema#',
edit.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 217 lines
group.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 254 lines
32 * @since 13.1
33 */
34 public function getGroup($group)
35 {
36 return $this->get($group);
50 * @since 13.1
51 */
52 public function getFeed($group, $limit = 0, $offset = 0, $until = null, $since = null)
53 {
54 return $this->getConnection($group, 'feed', '', $limit, $offset, $until, $since);
66 * @since 13.1
67 */
68 public function getMembers($group, $limit = 0, $offset = 0)
69 {
70 return $this->getConnection($group, 'members', '', $limit, $offset);
edit.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 210 lines
PostList.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 300 lines
54 * @return void
55 */
56 public function __construct(Zend_Service_Delicious $service, $posts = null)
57 {
58 $this->_service = $service;
70 * @return void
71 */
72 private function _constructFromNodeList(DOMNodeList $nodeList)
73 {
74 for ($i = 0; $i < $nodeList->length; $i++) {
86 * @return void
87 */
88 private function _constructFromArray(array $postList)
89 {
90 foreach ($postList as $f_post) {
static_page.inc.php (https://github.com/axxtel/agilebill.git) PHP · 423 lines
24 # Open the constructor for this mod
25 function static_page()
26 {
27 # name of this module:
50 ##############################
52 function page_list($VAR)
53 {
54 /* check if current session is authorized for any ticket departments..
364 ## UPDATE ##
365 ##############################
366 function update($VAR)
367 {
368 $type = "update";
Base.php (https://github.com/sgtcarneiro/horde.git) PHP · 386 lines
function.html_select_time.php (https://github.com/nigeldaley/moodle.git) PHP · 194 lines
9 /**
10 * Smarty {html_select_time} function plugin
11 *
12 * Type: function<br>
13 * Name: html_select_time<br>
14 * Purpose: Prints the dropdowns for time selection
15 * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
16 * (Smarty online manual)
17 * @author Roberto Berto <roberto@berto.net>
22 * @uses smarty_make_timestamp()
23 */
24 function smarty_function_html_select_time($params, &$smarty)
25 {
26 require_once $smarty->_get_plugin_filepath('shared','make_timestamp');
number.php (https://github.com/markn86/moodle.git) PHP · 199 lines
62 * @return array of comparison operators
63 */
64 private function get_operators(): array {
65 $operators = [
66 self::ANY_VALUE => get_string('filterisanyvalue', 'core_reportbuilder'),
83 * @param \MoodleQuickForm $mform
84 */
85 public function setup_form(\MoodleQuickForm $mform): void {
86 $objs = [];
112 * @return array array of two elements - SQL query and named parameters
113 */
114 public function get_sql_filter(array $values) : array {
115 $operator = $values["{$this->name}_operator"] ?? self::ANY_VALUE;
116 $value1 = $values["{$this->name}_value1"] ?? null;
CageTest.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 661 lines
22 * @access protected
23 */
24 protected function setUp()
25 {
26 $inputarray['html'] = '<IMG """><SCRIPT>alert("XSS")</SCRIPT>">';
36 * @access protected
37 */
38 protected function tearDown()
39 {
40 }
43 * @todo Implement testFactory().
44 */
45 public function testFactory()
46 {
47 // Remove the following lines when you implement this test.
CloudFunction.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 593 lines
16 */
18 namespace Google\Service\CloudFunctions;
20 class CloudFunction extends \Google\Collection
143 * @param int
144 */
145 public function setAvailableMemoryMb($availableMemoryMb)
146 {
147 $this->availableMemoryMb = $availableMemoryMb;
150 * @return int
151 */
152 public function getAvailableMemoryMb()
153 {
154 return $this->availableMemoryMb;
592 // Adding a class alias for backwards compatibility with the previous class name.
593 class_alias(CloudFunction::class, 'Google_Service_CloudFunctions_CloudFunction');
Properties.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 214 lines
57 * @return BatchRunPivotReportsResponse
58 */
59 public function batchRunPivotReports($property, BatchRunPivotReportsRequest $postBody, $optParams = [])
60 {
61 $params = ['property' => $property, 'postBody' => $postBody];
78 * @return BatchRunReportsResponse
79 */
80 public function batchRunReports($property, BatchRunReportsRequest $postBody, $optParams = [])
81 {
82 $params = ['property' => $property, 'postBody' => $postBody];
105 * @return CheckCompatibilityResponse
106 */
107 public function checkCompatibility($property, CheckCompatibilityRequest $postBody, $optParams = [])
108 {
109 $params = ['property' => $property, 'postBody' => $postBody];
lp-quiz-functions.php (https://gitlab.com/gregtyka/lfmawordpress) PHP · 341 lines
28 function learn_press_question_class( $question = null, $args = array() /*, $classes = null, $user_id = null, $context = null*/ ) {
29 $args = wp_parse_args(
30 $args,
77 }
79 function learn_press_get_user_quiz_meta( $quiz_user_id, $meta_key, $single = true ) {
80 return get_metadata( 'learnpress_user_quiz', $quiz_user_id, $meta_key, $single );
81 }
132 function learn_press_user_has_completed_quiz( $user_id = null, $quiz_id = null ) {
133 //_deprecated_function( __FUNCTION__, '1.0', 'LP_User() -> has_completed_quiz' );
135 if ( $user = learn_press_get_user( $user_id ) ) {
147 * @return int
148 */
149 function learn_press_get_quiz_time_remaining( $user_id = null, $quiz_id = null ) {
150 global $quiz;
151 if ( !$user_id ) $user_id = get_current_user_id();
RegistrationController.php (https://github.com/quba/ZPI.git) PHP · 264 lines
15 class RegistrationController extends BaseController
16 {
17 public function registerAction()
18 {
19 $form = $this->container->get('fos_user.registration.form');
48 * Tell the user to check his email provider
49 */
50 public function checkEmailAction()
51 {
52 $email = $this->container->get('session')->get('fos_user_send_confirmation_email/email');
66 * Receive the confirmation token from user email provider, login the user
67 */
68 public function confirmAction($token)
69 {
70 $user = $this->container->get('fos_user.user_manager')->findUserByConfirmationToken($token);
html-thread_display.php (https://github.com/livinglab/openlab.git) PHP · 245 lines
8 <div class="wpd-opt-intro">
9 <img class="wpd-opt-img" src="<?php echo esc_url_raw(plugins_url(WPDISCUZ_DIR_NAME . "/assets/img/dashboard/" . $setting["icon"])); ?>" style="height: 70px; padding-top: 5px;"/>
10 <?php esc_html_e('Here you can find all necessary options to control comment threads loading, displaying and sorting functions. Using "Comment List Loading Type", "Comments Pagination Type" and "Display only parent comments" options, you can get the highest page loading speed. Also you can manage comment thread filtering buttons.', "wpdiscuz"); ?>
11 </div>
12 <div class="wpd-opt-doc" style="padding-top: 10px;">
package.module.security.php (https://github.com/livinglab/openlab.git) PHP · 485 lines
7 class A_Security_Factory extends Mixin
8 {
9 function wordpress_security_manager($context = FALSE)
10 {
11 return new C_WordPress_Security_Manager($context);
12 }
13 function security_manager($context = FALSE)
14 {
15 return $this->object->wordpress_security_manager($context);
16 }
17 function wordpress_security_actor($context = FALSE)
18 {
19 return new C_WordPress_Security_Actor($context);
PropelTableColumnComparatorTest.php (https://github.com/hhamon/Propel2.git) PHP · 276 lines
EntityChoiceList.php (https://github.com/Exercise/symfony.git) PHP · 394 lines
89 * the choices are given as flat array.
90 */
91 public function __construct(ObjectManager $manager, $class, $labelPath = null, EntityLoaderInterface $entityLoader = null, $entities = null, $groupPath = null)
92 {
93 $this->em = $manager;
124 * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface
125 */
126 public function getChoices()
127 {
128 if (!$this->loaded) {
140 * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface
141 */
142 public function getValues()
143 {
144 if (!$this->loaded) {
cil.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 386 lines
158 <!--arithmetic opcodes-->
159 <FUNCTION>add</FUNCTION>
160 <FUNCTION>add.ovf</FUNCTION>
161 <FUNCTION>add.ovf.un</FUNCTION>
162 <FUNCTION>div</FUNCTION>
163 <FUNCTION>div.un</FUNCTION>
164 <FUNCTION>mul</FUNCTION>
165 <FUNCTION>mul.ovf</FUNCTION>
166 <FUNCTION>mul.ovf.un</FUNCTION>
167 <FUNCTION>sub</FUNCTION>
168 <FUNCTION>sub.ovf</FUNCTION>
LocalSOVolumeStorage.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 84 lines
✨ Summary
This is an ActionScript class that implements a volume storage system for a media player, specifically FlowPlayer. It uses Flash’s SharedObject to store and retrieve volume settings between sessions. The class provides methods to persist and retrieve volume data, as well as set muted status. It also includes error handling and logging functionality.
This is an ActionScript class that implements a volume storage system for a media player, specifically FlowPlayer. It uses Flash’s SharedObject to store and retrieve volume settings between sessions. The class provides methods to persist and retrieve volume data, as well as set muted status. It also includes error handling and logging functionality.
31 private var log:Log = new Log(this);
33 public function LocalSOVolumeStorage(storedVolume:SharedObject) {
34 log.debug("in constructor");
35 _storedVolume = storedVolume;
36 }
38 public static function create():VolumeStorage {
39 try {
40 return new LocalSOVolumeStorage(SharedObject.getLocal("org.flowplayer"));
45 }
47 public function persist():void {
48 log.debug("persisting volume " + _storedVolume.data.volume);
49 try {
objective-c.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 172 lines
has_inverse_icl_interva_id514519.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
39 <span class="keyword">typedef</span> <span class="identifier">has_inverse</span><span class="special"><</span> <a class="link" href="interval_map.html" title="Class template interval_map">icl::interval_map</a><span class="special"><</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">CodomainT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">Combine</span><span class="special">,</span> <span class="identifier">Section</span><span class="special">,</span> <span class="identifier">Interval</span><span class="special">,</span> <span class="identifier">Alloc</span> <span class="special">></span> <span class="special">></span> <a name="boost.icl.has_inverse_icl_interva_id514519.type"></a><span class="identifier">type</span><span class="special">;</span>
41 <span class="comment">// <a class="link" href="has_inverse_icl_interva_id514519.html#id514593-bb">public member functions</a></span>
42 <a class="link" href="has_inverse_icl_interva_id514519.html#id514596-bb"><span class="identifier">BOOST_STATIC_CONSTANT</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">has_inverse</span><span class="special"><</span> <span class="identifier">CodomainT</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
43 <span class="special">}</span><span class="special">;</span></pre></div>
46 <div class="refsect2" lang="en">
47 <a name="id1108335"></a><h3>
48 <a name="id514593-bb"></a><code class="computeroutput">has_inverse</code> public member functions</h3>
49 <div class="orderedlist"><ol type="1"><li><pre class="literallayout"> <a name="id514596-bb"></a><span class="identifier">BOOST_STATIC_CONSTANT</span><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">has_inverse</span><span class="special"><</span> <span class="identifier">CodomainT</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
50 </div>
xxd.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 849 lines
62 */
64 /* Visual Studio 2005 has 'deprecated' many of the standard CRT functions */
65 #if _MSC_VER >= 1400
66 # define _CRT_SECURE_NO_DEPRECATE
107 /* This corrects the problem of missing prototypes for certain functions
108 * in some GNU installations (e.g. SunOS 4.1.x).
109 * Darren Hiebert <darren@hmi.com> (sparc-sun-sunos4.1.3_U1/2.7.2.2)
exception-009.js (https://bitbucket.org/ultra_iter/qt-vtl.git) JavaScript · 86 lines
TextUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 829 lines
✨ Summary
This Java code is a utility class for text processing, providing methods to format and manipulate strings. It offers functions like converting strings to title case, determining string case (upper/lower/title), formatting paragraphs with leading whitespace, and more. The code appears to be part of an editor or word processor application, likely jEdit.
This Java code is a utility class for text processing, providing methods to format and manipulate strings. It offers functions like converting strings to title case, determining string case (upper/lower/title), formatting paragraphs with leading whitespace, and more. The code appears to be part of an editor or word processor application, likely jEdit.
function_operator_30.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header code defines a function template result
that takes variable arguments and returns a type alias. The function is used to create a new type by wrapping an existing type with another type, effectively adding a new layer of indirection. It’s likely used in a context where generic programming or metaprogramming is required, such as in compiler implementation or library development.
This C++ header code defines a function template result
that takes variable arguments and returns a type alias. The function is used to create a new type by wrapping an existing type with another type, effectively adding a new layer of indirection. It’s likely used in a context where generic programming or metaprogramming is required, such as in compiler implementation or library development.
15 template <typename This, typename A0>
16 struct result<This(A0 const&)>
17 : detail::expression::function_eval<F, A0>
18 {};
19 template <typename A0>
20 typename detail::expression::function_eval<F, A0>::type const
21 operator()(A0 const& a0) const
22 {
23 return detail::expression::function_eval<F, A0>::make(f, a0);
24 }
v3.4beta028.html (https://bitbucket.org/ultra_iter/qt-vtl.git) HTML · 146 lines
bitops.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 711 lines
✨ Summary
This C++ header file provides a set of functions for performing bitwise operations, such as setting, clearing, and testing bits in integers. It includes functions like ffs
(find first bit set), ffz
(find first bit zero), fls
(find last bit set), and others, which are used to manipulate individual bits within a binary number. These functions are likely used in low-level programming, such as in operating system development or embedded systems.
This C++ header file provides a set of functions for performing bitwise operations, such as setting, clearing, and testing bits in integers. It includes functions like ffs
(find first bit set), ffz
(find first bit zero), fls
(find last bit set), and others, which are used to manipulate individual bits within a binary number. These functions are likely used in low-level programming, such as in operating system development or embedded systems.
51 * @addr: the address to start counting from
52 *
53 * This function is atomic and may not be reordered. See __set_bit()
54 * if you do not require the atomic guarantees.
55 * Note that @nr may be almost arbitrarily large; this function is not
196 *
197 * change_bit() is atomic and may not be reordered.
198 * Note that @nr may be almost arbitrarily large; this function is not
199 * restricted to acting on a single-word quantity.
200 */
simple-macros.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 720 lines
99 <para>
100 In our one line script, the static method
101 <function>Macros.message()</function> has two parameters because that is
102 the way the method is defined in the <classname>Macros</classname>
103 class. You must specify both parameters when you call the function. The
282 keyword <function>public</function> means that the method can be used
283 outside the <classname>Macros</classname> class. The alternatives are
284 <function>private</function> and <function>protected</function>. For
285 purposes of BeanShell, you just have to know that BeanShell can only use
286 public methods of other Java classes. The keyword
290 <classname>Macros</classname>) rather than the name of a particular
291 object (like <varname>view</varname>). The third word is the type of the
292 value returned by the method. The keyword <function>void</function> is
293 Java's way of saying the the method does not have a return value.
294 </para>
296 <para>
297 The <function>error()</function> method works just like
298 <function>message()</function> but displays an error icon in the message
runme.tcl
(https://swig.svn.sourceforge.net/svnroot/swig)
TCL · 40 lines
✨ Summary
This TCL code attempts to load a dynamic module, creates two vectors, computes their dot product and sum, prints the results, and then frees the result of the vector addition. The output shows the creation of the vectors, their dot product (68), their sum (11, 13, 15), and finally “Good” after freeing the result.
This TCL code attempts to load a dynamic module, creates two vectors, computes their dot product and sum, prints the results, and then frees the result of the vector addition. The output shows the creation of the vectors, their dot product (68), their sum (11, 13, 15), and finally “Good” after freeing the result.
CompilerX86X64.h
(http://hadesmem.googlecode.com/svn/trunk/)
C Header · 8926 lines
✨ Summary
This is a C++ header file that defines classes and functions for an assembler (AsmJit) compiler utility. It provides functionality for code generation, memory management, error handling, logging, and emitting comments. The AsmJit::CompilerCore class serves as the core of the compiler, while the AsmJit::CompilerUtil class offers utility methods. The classes and functions are designed to work together to generate assembly code from a high-level programming language.
This is a C++ header file that defines classes and functions for an assembler (AsmJit) compiler utility. It provides functionality for code generation, memory management, error handling, logging, and emitting comments. The AsmJit::CompilerCore class serves as the core of the compiler, while the AsmJit::CompilerUtil class offers utility methods. The classes and functions are designed to work together to generate assembly code from a high-level programming language.
817 // ============================================================================
819 //! @brief Function emittable used to generate C/C++ functions.
820 //!
821 //! Functions are base blocks for generating assembler output. Each generated
827 //! and manage variables that can be allocated to registers or spilled.
828 //!
829 //! @note To create function use @c AsmJit::Compiler::newFunction() method, do
830 //! not create @c EFunction instances using other ways.
971 //! @brief Whether another function is called from this function.
972 //!
973 //! If another function is called from this function, it's needed to prepare
974 //! stack for it. If this member is true then it's likely that true will be
975 //! also @c _isEspAdjusted one.
995 bool _emitLFence;
997 //! @brief Whether the function is finished using @c Compiler::endFunction().
998 bool _finished;
foxpro.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1762 lines
dlmdebug.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1056 lines
✨ Summary
This C code is part of a Linux kernel module that provides debugging functionality for a distributed lock manager (DLM). It creates and manages debug files in the /sys/debugfs
directory, allowing users to inspect various aspects of DLM operation, such as its state, locking behavior, and memory usage. The code uses the debugfs
subsystem to create and manage these debug files.
This C code is part of a Linux kernel module that provides debugging functionality for a distributed lock manager (DLM). It creates and manages debug files in the /sys/debugfs
directory, allowing users to inspect various aspects of DLM operation, such as its state, locking behavior, and memory usage. The code uses the debugfs
subsystem to create and manage these debug files.
4 * dlmdebug.c
5 *
6 * debug functionality for the dlm
7 *
8 * Copyright (C) 2004, 2008 Oracle. All rights reserved.
247 EXPORT_SYMBOL_GPL(dlm_errname);
249 /* NOTE: This function converts a lockname into a string. It uses knowledge
250 * of the format of the lockname that should be outside the purview of the dlm.
251 * We are adding only to make dlm debugging slightly easier.
qimagewriter.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 734 lines
406 /*!
407 If the currently assigned device is a QFile, or if setFileName()
408 has been called, this function returns the name of the file
409 QImageWriter writes to. Otherwise (i.e., if no device has been
410 assigned or the device is not a QFile), an empty QString is
421 /*!
422 This is an image format specific function that sets the quality
423 level of the image to \a quality. For image formats that do not
424 support setting the quality, this value is ignored.
447 /*!
448 This is an image format specific function that set the compression
449 of an image. For image formats that do not support setting the
450 compression, this value is ignored.
DataWire.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 26 lines
✨ Summary
This JavaScript code defines a test for the dojox.wire.DataWire
class, which is used to bind data to attributes of objects in an XML store. The test creates a new instance of DataWire
, sets its value, and then retrieves it, verifying that the value is correctly set. It also tests nested attribute values.
This JavaScript code defines a test for the dojox.wire.DataWire
class, which is used to bind data to attributes of objects in an XML store. The test creates a new instance of DataWire
, sets its value, and then retrieves it, verifying that the value is correctly set. It also tests nested attribute values.
greys.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 67 lines
✨ Summary
This JavaScript code defines a theme for a charting library, specifically Dojox Charting. It creates a new theme called “ET.greys” with predefined styles and colors for various chart elements, such as axes, series, markers, and plot areas. The theme is then made available for use in other parts of the application.
This JavaScript code defines a theme for a charting library, specifically Dojox Charting. It creates a new theme called “ET.greys” with predefined styles and colors for various chart elements, such as axes, series, markers, and plot areas. The theme is then made available for use in other parts of the application.
qvfbview.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 883 lines
374 buffer.resize(requiredSize);
376 // XXX: hw: replace by drawhelper functionality
378 const int pixelsPerByte = 8;
458 buffer.resize(requiredSize);
460 // XXX: hw: replace by drawhelper functionality
462 const int pixelsPerByte = 4;
518 buffer.resize(requiredSize);
520 // XXX: hw: replace by drawhelper functionality
522 const int pixelsPerByte = 2;
cvmat.cpp
(git://github.com/ryanfb/ruby-opencv.git)
C++ · 5218 lines
✨ Summary
This C++ code is part of a computer vision library, providing functions for image processing and feature detection. It defines classes and functions for working with matrices (images) and computing corresponding epilines in stereo pairs. The code includes functions for finding fundamental matrices, detecting features, and computing epipolar lines, which are used in stereo vision applications such as 3D reconstruction and object recognition.
This C++ code is part of a computer vision library, providing functions for image processing and feature detection. It defines classes and functions for working with matrices (images) and computing corresponding epilines in stereo pairs. The code includes functions for finding fundamental matrices, detecting features, and computing epipolar lines, which are used in stereo vision applications such as 3D reconstruction and object recognition.
157 rb_define_method(rb_klass, "initialize", RUBY_METHOD_FUNC(rb_initialize), -1);
158 rb_define_singleton_method(rb_klass, "load", RUBY_METHOD_FUNC(rb_load_imageM), -1);
159 // Ruby/OpenCV original functions
160 rb_define_method(rb_klass, "method_missing", RUBY_METHOD_FUNC(rb_method_missing), -1);
161 rb_define_method(rb_klass, "to_s", RUBY_METHOD_FUNC(rb_to_s), 0);
281 rb_define_method(rb_klass, "mahalonobis", RUBY_METHOD_FUNC(rb_mahalonobis), -1);
283 /* drawing function */
284 rb_define_method(rb_klass, "line", RUBY_METHOD_FUNC(rb_line), -1);
285 rb_define_method(rb_klass, "line!", RUBY_METHOD_FUNC(rb_line_bang), -1);
900 /************************************************************
901 cxcore function
902 ************************************************************/
903 /*
Node.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 2960 lines
304 Node::StyleChange Node::diff(const RenderStyle* s1, const RenderStyle* s2)
305 {
306 // FIXME: The behavior of this function is just totally wrong. It doesn't handle
307 // explicit inheritance of non-inherited properties and so you end up not re-resolving
308 // style in cases where you need to.
562 InputElement* Node::toInputElement()
563 {
564 // If one of the below ASSERTs trigger, you are calling this function
565 // directly or indirectly from a constructor or destructor of this object.
566 // Don't do this!
10.1.6.js (https://bitbucket.org/ultra_iter/qt-vtl.git) JavaScript · 127 lines
95 (new AnotherTestObject(1,2,3)).arguments );
97 // The function invoked with [[Call]]
99 new TestCase( SECTION,
118 return this;
119 }
120 function TestFunction() {
121 arguments = ARG_STRING;
122 return arguments;
123 }
124 function AnotherTestFunction() {
125 this.__proto__ = new Prototype();
126 return this;
TextUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 671 lines
✨ Summary
This Java code is a text processing utility that provides various string manipulation functions, including formatting, case conversion, and whitespace detection. It can be used to process and transform strings in different ways, such as converting them to title case, detecting mixed case, or formatting lines of text for display. The code appears to be part of a larger text editor or word processing application.
This Java code is a text processing utility that provides various string manipulation functions, including formatting, case conversion, and whitespace detection. It can be used to process and transform strings in different ways, such as converting them to title case, detecting mixed case, or formatting lines of text for display. The code appears to be part of a larger text editor or word processing application.
buffer.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 5722 lines
CharacterMapOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 344 lines
✨ Summary
This Java code defines a GUI pane for configuring options related to text editing, such as encoding, block formatting, and character map settings. It stores user selections in corresponding properties of a jedit
object, which is likely used by an integrated development environment (IDE). The code also reloads the CharacterMap plugin’s JAR file when the “large” or “super” size options are changed.
This Java code defines a GUI pane for configuring options related to text editing, such as encoding, block formatting, and character map settings. It stores user selections in corresponding properties of a jedit
object, which is likely used by an integrated development environment (IDE). The code also reloads the CharacterMap plugin’s JAR file when the “large” or “super” size options are changed.
pl.seq.html
(http://angel-engine.googlecode.com/svn/trunk/)
HTML · 1053 lines
✨ Summary
This HTML code is a documentation page for a programming library, likely written in a style similar to Python’s help
module. It displays a table of contents and links to individual pages explaining various functions and methods, along with their parameters and return values. The content is formatted for easy reading and navigation.
This HTML code is a documentation page for a programming library, likely written in a style similar to Python’s help
module. It displays a table of contents and links to individual pages explaining various functions and methods, along with their parameters and return values. The content is formatted for easy reading and navigation.
284 <h2><a name="functions"></a>Functions</h2>
285 <dl class="function">
500 <dt><a name="foreach"></a><strong>foreach</strong> (iter, fn)</dt>
501 <dd>
502 call the function on each element of the sequence.
512 <li>
513 fn: a function
514 </li>
649 <dt><a name="map"></a><strong>map</strong> (fn, iter, arg)</dt>
650 <dd>
651 return a sequence where every element of a sequence has been transformed by a function. If you don't supply an argument, then the function will receive both values of a double-valued sequence, otherwise behaves rather like tablex.map.
JPGEncoder.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 652 lines
✨ Summary
The ActionScript code generates a JPEG image from a provided BitmapData
. It initializes Huffman tables, sets up color quantization and macroblock encoding parameters, and then encodes 8x8 blocks of pixels into YUV format using the H.261 video standard. The encoded data is written to a ByteArray
object, which can be used as output for further processing or storage.
The ActionScript code generates a JPEG image from a provided BitmapData
. It initializes Huffman tables, sets up color quantization and macroblock encoding parameters, and then encodes 8x8 blocks of pixels into YUV format using the H.261 video standard. The encoded data is written to a ByteArray
object, which can be used as output for further processing or storage.
63 private var fdtbl_UV:Array = new Array(64);
65 private function initQuantTables(sf:int):void
66 {
67 var i:int;
126 private var UVAC_HT:Array;
128 private function computeHuffmanTbl(nrcodes:Array, std_table:Array):Array
129 {
130 var codevalue:int = 0;
198 ];
200 private function initHuffmanTbl():void
201 {
202 YDC_HT = computeHuffmanTbl(std_dc_luminance_nrcodes,std_dc_luminance_values);
malloc.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 5515 lines
31 For convenience, an include file for code using this malloc is at:
32 ftp://gee.cs.oswego.edu/pub/misc/malloc-2.8.3.h
33 You don't really need this .h file unless you call functions not
34 defined in your system include files. The .h file contains only the
35 excerpts from this file needed for using this malloc on ANSI C/C++
133 memory. On most unix systems, it tends to work best if both
134 MORECORE and MMAP are enabled. On Win32, it uses emulations
135 based on VirtualAlloc. It also uses common C library functions
136 like memset.
246 overridden on a per-mspace basis for mspace versions.) If set to a
247 non-zero value other than 1, locks are used, but their
248 implementation is left out, so lock functions must be supplied manually.
250 USE_SPIN_LOCKS default: 1 iff USE_LOCKS and on x86 using gcc or MSC
actor.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code generates a documentation page for the Boost Phoenix library, specifically the Actor concept. It displays information about actors as function objects, their specializations, and usage examples. The page includes navigation links, copyright notice, and references to other related pages.
This HTML code generates a documentation page for the Boost Phoenix library, specifically the Actor concept. It displays information about actors as function objects, their specializations, and usage examples. The page includes navigation links, copyright notice, and references to other related pages.
29 <p>
30 The <code class="computeroutput"><span class="identifier">Actor</span></code> is the main concept
31 behind the library. Actors are function objects. An actor can accept 0 to
32 <code class="computeroutput"><span class="identifier">BOOST_PHOENIX_LIMIT</span></code> arguments.
33 </p>
67 </pre>
68 <p>
69 The actor class accepts the arguments through a set of function call operators
70 for 0 to <code class="computeroutput"><span class="identifier">BOOST_PHOENIX_LIMIT</span></code>
71 arities (Don't worry about the details, for now. Note, for example, that we
Service.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 331 lines
✨ Summary
This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.
This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.
14 dojo.declare("dojox.rpc.Service", null, {
15 constructor: function(smd, options){
16 // summary:
17 // Take a string as a url to retrieve an smd or an object that is an smd or partial smd to use
35 var url;
36 var self = this;
37 function processSmd(smd){
38 smd._baseUrl = new dojo._Url(location.href,url || '.') + '';
39 self._smd = smd;
74 },
76 _generateService: function(serviceName, method){
77 if(this[method]){
78 throw new Error("WARNING: "+ serviceName+ " already exists for service. Unable to generate function");
foxpro.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1859 lines
79 <KEYWORDS>
80 <FUNCTION>Function</FUNCTION>
81 <FUNCTION>Procedure</FUNCTION>
82 <FUNCTION>EndFunc</FUNCTION>
83 <FUNCTION>EndProc</FUNCTION>
113 <KEYWORD3>endif</KEYWORD3>
115 <!-- Methods, Functions, Class, Properties, Variables -->
116 <KEYWORD3>class</KEYWORD3>
117 <KEYWORD3>property</KEYWORD3>
144 <KEYWORD3>rem</KEYWORD3>
146 <!-- Function Call - Dynamic Evaluation -->
147 <KEYWORD3>call</KEYWORD3>
148 <KEYWORD3>execute</KEYWORD3>
negative_binomial_example.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
17 However our confidence in that estimate will be shaped by how many trials were conducted,
18 and how many successes were observed. The static member functions
19 `negative_binomial_distribution<>::find_lower_bound_on_p` and
20 `negative_binomial_distribution<>::find_upper_bound_on_p`
91 If the failure events follow a negative binomial
92 distribution (each trial either succeeds or fails)
93 then the static member function `negative_binomial_distibution<>::find_minimum_number_of_trials`
94 can be used to estimate the minimum number of trials required to be P% sure
95 of observing the desired number of failures.
AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
tst_qdeclarativeecmascript.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 3105 lines
103 void attachedProperties();
104 void enums();
105 void valueTypeFunctions();
106 void constantsOverrideBindings();
107 void outerBindingOverridesInnerBinding();
118 void extendedObjectPropertyLookup();
119 void scriptErrors();
120 void functionErrors();
121 void propertyAssignmentErrors();
122 void signalTriggeredBindings();
158 void noSpuriousWarningsAtShutdown();
159 void canAssignNullToQObject();
160 void functionAssignment_fromBinding();
161 void functionAssignment_fromJS();
162 void functionAssignment_fromJS_data();
163 void functionAssignmentfromJS_invalid();
SVGRenderSupport.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 83 lines
49 static void layoutChildren(RenderObject*, bool selfNeedsLayout);
51 // Helper function determining wheter overflow is hidden
52 static bool isOverflowHidden(const RenderObject*);
61 static bool paintInfoIntersectsRepaintRect(const FloatRect& localRepaintRect, const AffineTransform& localTransform, const PaintInfo&);
63 // Important functions used by nearly all SVG renderers centralizing coordinate transformations / repaint rect calculations
64 static IntRect clippedOverflowRectForRepaint(RenderObject*, RenderBoxModelObject* repaintContainer);
65 static void computeRectForRepaint(RenderObject*, RenderBoxModelObject* repaintContainer, IntRect&, bool fixed);
AudioFileReader.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 54 lines
class.bp-sql-schema-parser.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 615 lines
11 * an array such as those returned by DESCRIBE `foo` statements
12 */
13 function get_column_definition( $column_data )
14 {
15 if ( !is_array( $column_data ) ) {
46 * an array similar to those returned by SHOW INDEX FROM `foo` statements
47 */
48 function get_index_definition( $index_data )
49 {
50 if ( !is_array( $index_data ) ) {
88 * and the indices as would be returned by SHOW INDEX FROM `foo` on a real table
89 */
90 function describe_table( $query )
91 {
92 // Retrieve the table structure from the query
DataSource.php (https://bitbucket.org/floresj/notetime.git) PHP · 444 lines
216 * @return boolean Success
217 */
218 public function update(Model $model, $fields = null, $values = null, $conditions = null) {
219 return false;
220 }
229 * @return void
230 */
231 public function delete(Model $model, $id = null) {
232 return false;
233 }
249 * @return integer Number of rows returned by last operation
250 */
251 public function lastNumRows($source = null) {
252 return false;
253 }
generic.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 161 lines
✨ Summary
This C code provides low-level functionality for the PXA (Intel’s PXA2xx and PXA3xx) processor family, which is used in various embedded systems. It handles tasks such as clearing reset status, getting clock tick rates, configuring GPIO pins, and mapping I/O addresses. The code is part of the Linux kernel and serves as a common layer for different PXA-based machines.
This C code provides low-level functionality for the PXA (Intel’s PXA2xx and PXA3xx) processor family, which is used in various embedded systems. It handles tasks such as clearing reset status, getting clock tick rates, configuring GPIO pins, and mapping I/O addresses. The code is part of the Linux kernel and serves as a common layer for different PXA-based machines.
JSPluginElementFunctions.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 49 lines
qmaintainingreader.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 274 lines
IDBBackingStore.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 114 lines
SM-2Arg.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
qnodefns_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 176 lines
60 * @short Contains classes implementing the functions found in
61 * <a href="http://www.w3.org/TR/xpath-functions/#node-functions">XQuery 1.0 and
62 * XPath 2.0 Functions and Operators, 14 Functions and Operators on Nodes</a>.
63 *
64 * @ingroup Patternist_functions
65 */
89 * @author Frans Englich <frans.englich@nokia.com>
90 */
91 class LocalNameFN : public FunctionCall
92 {
93 public:
101 * @author Frans Englich <frans.englich@nokia.com>
102 */
103 class NamespaceURIFN : public FunctionCall
104 {
105 public:
TODO.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 116 lines
structboost_1_1numeric_1_1ublas_1_1matrix__matrix__binary__functor-members.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
classboost_1_1numeric_1_1ublas_1_1static__vector__move__manip.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::static_vector_move_manip
. It displays information about the class, its members, and related functions, with links to other pages in the documentation. The content includes a detailed description of the class, its methods, and related concepts.
This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::static_vector_move_manip
. It displays information about the class, its members, and related functions, with links to other pages in the documentation. The content includes a detailed description of the class, its methods, and related concepts.
22 <li><a href="annotated.html"><span>Class List</span></a></li>
23 <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
24 <li><a href="functions.html"><span>Class Members</span></a></li>
25 </ul>
26 </div>
37 <p><a href="classboost_1_1numeric_1_1ublas_1_1static__vector__move__manip-members.html">List of all members.</a></p>
38 <table border="0" cellpadding="0" cellspacing="0">
39 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
40 <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="abff1fbff91cf87a0a3b266776a47827a"></a><!-- doxytag: member="boost::numeric::ublas::static_vector_move_manip::manip" ref="abff1fbff91cf87a0a3b266776a47827a" args="(V &k) const " -->
41 template<typename V > </td></tr>
46 class boost::numeric::ublas::static_vector_move_manip< I ></h3>
48 <p>When member function <code>manip</code> is called the manipulators index will be added to the referenced index</p>
49 <dl class="see"><dt><b>See also:</b></dt><dd>move()</dd></dl>
50 </div>
journal.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2456 lines
✨ Summary
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
18 *
19 * We do not actually manage the physical storage of the journal in this
20 * file: that is left to a per-journal policy function, which allows us
21 * to store the journal within a filesystem-specified area for ext2
22 * journaling (ext2 can use a reserved inode for storing the log).
96 /*
97 * Helper function used to manage commit timeouts
98 */
107 /*
108 * kjournald2: The main thread function used to manage a logging device
109 * journal.
110 *
porting.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
17 That being said, the only major difference is the result type deduction protocol.
18 The everyday Phoenix-User will encounter this change only when writing
19 [link phoenix.reference.modules.function Functions].
21 To make your function implementations Phoenix compliant again change from
42 };
44 boost::phoenix::function<is_odd_impl> is_odd = is_odd_impl();
45 ``]
46 [``
56 };
58 boost::phoenix::function<is_odd_impl> is_odd = is_odd_impl();
59 ``]
60 [ __note__
dynamic_interval_traits_id505876.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
39 <span class="keyword">typedef</span> <span class="identifier">DomainT</span> <a name="boost.icl.dynamic_interval_traits_id505876.domain_type"></a><span class="identifier">domain_type</span><span class="special">;</span>
41 <span class="comment">// <a class="link" href="dynamic_interval_traits_id505876.html#id505914-bb">public member functions</a></span>
42 <span class="keyword">typedef</span> <a class="link" href="dynamic_interval_traits_id505876.html#id505917-bb"><span class="identifier">ICL_COMPARE_DOMAIN</span></a><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span>
44 <span class="comment">// <a class="link" href="dynamic_interval_traits_id505876.html#id505932-bb">public static functions</a></span>
45 <span class="keyword">static</span> interval_type
46 <a class="link" href="dynamic_interval_traits_id505876.html#id505935-bb"><span class="identifier">construct</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span><span class="special">,</span> <a class="link" href="interval_bounds.html" title="Class interval_bounds">interval_bounds</a><span class="special">)</span><span class="special">;</span>
53 <div class="refsect2" lang="en">
54 <a name="id1026111"></a><h3>
55 <a name="id505914-bb"></a><code class="computeroutput">dynamic_interval_traits</code> public member functions</h3>
56 <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="keyword">typedef</span> <a name="id505917-bb"></a><span class="identifier">ICL_COMPARE_DOMAIN</span><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
57 </div>
omit.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header defines a parser directive omit
that skips over its subject parser, effectively making it unused. It provides an implementation for this directive using a unary parser and handles container traits. The code is part of the Boost Spirit library, specifically designed to work with the Qi parser generator.
This C++ header defines a parser directive omit
that skips over its subject parser, effectively making it unused. It provides an implementation for this directive using a unary parser and handles container traits. The code is part of the Boost Spirit library, specifically designed to work with the Qi parser generator.
jedit_keys.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 226 lines
saa7134-go7007.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 533 lines
✨ Summary
This C code implements a Linux driver for a SAA713X-based video capture card, specifically designed for the Voyager board. It provides interfaces for V4L2 and ALSA to interact with the device, handling tasks such as booting the encoder, registering the interface, and managing the video stream. The code also includes functions for initializing and cleaning up the driver.
This C code implements a Linux driver for a SAA713X-based video capture card, specifically designed for the Voyager board. It provides interfaces for V4L2 and ALSA to interact with the device, handling tasks such as booting the encoder, registering the interface, and managing the video stream. The code also includes functions for initializing and cleaning up the driver.
Introduction (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 460 lines
poly_function_funop.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header code defines a function that takes a variable number of arguments and returns a Derived
object, which is constructed from the input arguments using a template instantiation process. The function uses a recursive approach to handle different numbers of arguments, with each recursive call taking one fewer argument than the previous one.
This C++ header code defines a function that takes a variable number of arguments and returns a Derived
object, which is constructed from the input arguments using a template instantiation process. The function uses a recursive approach to handle different numbers of arguments, with each recursive call taking one fewer argument than the previous one.
sync_access_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the behavior of a memory barrier in a multi-threaded environment. It creates 100 threads that wait on a barrier, then attempt to assert an equality condition (1 == 0) while holding a mutex lock. The test expects this assertion to fail due to the memory barrier preventing concurrent access to shared resources.
This C++ code tests the behavior of a memory barrier in a multi-threaded environment. It creates 100 threads that wait on a barrier, then attempt to assert an equality condition (1 == 0) while holding a mutex lock. The test expects this assertion to fail due to the memory barrier preventing concurrent access to shared resources.
13 static boost::mutex m;
15 /// thread execution function
16 static void thread_function(boost::barrier& b)
23 BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES( test_multiple_assertion_faults, 100 )
25 /// test function which creates threads
26 BOOST_AUTO_TEST_CASE( test_multiple_assertion_faults )
27 {
32 for(size_t i=0; i<100; ++i)
33 tg.create_thread(boost::bind(thread_function, ref(b))); /// create a thread and pass it the barrier
35 tg.join_all();
StageVideoWrapper.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 189 lines
✨ Summary
This ActionScript code defines a StageVideoWrapper
class that wraps a video player around a Flash StageVideo object, providing a more flexible and customizable way to play video content on the stage. It handles various events, such as availability changes and render states, and updates the video’s visibility and position accordingly.
This ActionScript code defines a StageVideoWrapper
class that wraps a video player around a Flash StageVideo object, providing a more flexible and customizable way to play video content on the stage. It handles various events, such as availability changes and render states, and updates the video’s visibility and position accordingly.
90 }
92 private function useStageVideo(availableNow:Boolean):void {
93 log.debug("useStageVideo : "+ availableNow);
129 }
131 private function _displayStageVideo(event:StageVideoEvent):void {
132 //#612 add some logging for the render state
133 log.debug("Stagevideo Render State: " + event.status);
151 }
153 override public function set visible(value:Boolean):void {
154 log.debug("set visible " + value);
155 _visible = value;
ftcache.h
(http://angel-engine.googlecode.com/svn/trunk/)
C++ Header · 1122 lines
✨ Summary
This is a C++ header file that defines various data structures and functions for font management, caching, and optimization. It provides classes and functions for managing fonts, faces, sizes, and bitmaps, as well as caching and lookup functionality. The code appears to be part of the FreeType library, which is used for rendering and manipulating fonts in graphics applications.
This is a C++ header file that defines various data structures and functions for font management, caching, and optimization. It provides classes and functions for managing fonts, faces, sizes, and bitmaps, as well as caching and lookup functionality. The code appears to be part of the FreeType library, which is used for rendering and manipulating fonts in graphics applications.
56 * interpret them in any way.
57 *
58 * Second, the cache calls, only when needed, a client-provided function
59 * to convert a @FTC_FaceID into a new @FT_Face object. The latter is
60 * then completely managed by the cache, including its termination
494 /*************************************************************************/
495 /* */
496 /* <Function> */
497 /* FTC_Node_Unref */
498 /* */
518 *
519 * @description:
520 * A special function used to indicate to the cache manager that
521 * a given @FTC_FaceID is no longer valid, either because its
522 * content changed, or because it was deallocated or uninstalled.
ttobjs.c
(http://angel-engine.googlecode.com/svn/trunk/)
C · 944 lines
✨ Summary
This C code is part of a FreeType library implementation for TrueType fonts. It provides functions and structures for initializing, finalizing, and managing font drivers, slots, and contexts. The code handles font scaling, transformation, and glyph loading, enabling the use of TrueType fonts in various applications.
This C code is part of a FreeType library implementation for TrueType fonts. It provides functions and structures for initializing, finalizing, and managing font drivers, slots, and contexts. The code handles font scaling, transformation, and glyph loading, enabling the use of TrueType fonts in various applications.
95 /*************************************************************************/
96 /* */
97 /* <Function> */
98 /* tt_glyphzone_new */
99 /* */
558 size->num_function_defs = 0;
559 size->max_function_defs = 0;
560 size->num_instruction_defs = 0;
561 size->max_instruction_defs = 0;
587 size->cvt_ready = 0;
589 size->max_function_defs = maxp->maxFunctionDefs;
590 size->max_instruction_defs = maxp->maxInstructionDefs;
617 /* allocate function defs, instruction defs, cvt, and storage area */
618 if ( FT_NEW_ARRAY( size->function_defs, size->max_function_defs ) ||
619 FT_NEW_ARRAY( size->instruction_defs, size->max_instruction_defs ) ||
620 FT_NEW_ARRAY( size->cvt, size->cvt_size ) ||
PlayState.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 319 lines
✨ Summary
This is a PlayReady media player implementation in ActionScript, specifically designed for playing video content on a web page. It manages the playback of clips within a playlist, handling events such as clip completion, midroll, and next/previous navigation. The code also includes error checking and state management to ensure smooth playback.
This is a PlayReady media player implementation in ActionScript, specifically designed for playing video content on a web page. It manages the playback of clips within a playlist, handling events such as clip completion, midroll, and next/previous navigation. The code also includes error checking and state management to ensure smooth playback.
62 private var _active:Boolean;
64 internal static function initStates(
65 playList:Playlist,
66 playListController:PlayListController,
80 }
82 internal static function addProvider(provider:ProviderModel):void {
83 _controllerFactory.addProvider(provider);
84 }
86 public function PlayState(stateCode:State, playList:Playlist, playListController:PlayListController, providers:Dictionary) {
87 this._stateCode = stateCode;
88 this.playList = playList;
TextUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 714 lines
✨ Summary
This Java code provides various string manipulation and formatting functions, including:
- String case detection (mixed, lower case, upper case, title case)
- String conversion to title case
- Line wrapping and formatting for text with a specified maximum line length
- Leading whitespace trimming and calculation
- Tokenization of strings into words
These functions can be used in various applications, such as text editing or formatting.
This Java code provides various string manipulation and formatting functions, including:
- String case detection (mixed, lower case, upper case, title case)
- String conversion to title case
- Line wrapping and formatting for text with a specified maximum line length
- Leading whitespace trimming and calculation
- Tokenization of strings into words
These functions can be used in various applications, such as text editing or formatting.
classboost_1_1numeric_1_1ublas_1_1map__std.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::map_std
. It displays information about the class, including its members and functions, in a structured format with links to related pages. The page includes navigation menus, a table of public member functions, and a brief description of the class template.
This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::map_std
. It displays information about the class, including its members and functions, in a structured format with links to related pages. The page includes navigation menus, a table of public member functions, and a brief description of the class template.
22 <li><a href="annotated.html"><span>Class List</span></a></li>
23 <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
24 <li><a href="functions.html"><span>Class Members</span></a></li>
25 </ul>
26 </div>
32 <p><a href="classboost_1_1numeric_1_1ublas_1_1map__std-members.html">List of all members.</a></p>
33 <table border="0" cellpadding="0" cellspacing="0">
34 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
35 <tr><td class="memTemplParams" colspan="2"><a class="anchor" id="a912d948a72626e3e9bf2543288bbbadd"></a><!-- doxytag: member="boost::numeric::ublas::map_std::serialize" ref="a912d948a72626e3e9bf2543288bbbadd" args="(Archive &ar, const unsigned int)" -->
36 template<class Archive > </td></tr>
cfe_api.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 123 lines
✨ Summary
This C header file provides an interface for interacting with a Broadcom Common Firmware Environment (CFE). It defines constants, data structures, and function prototypes for tasks such as memory management, CPU control, environment enumeration, and device access. The functions allow applications to communicate with the CFE, which is used in various Broadcom devices.
This C header file provides an interface for interacting with a Broadcom Common Firmware Environment (CFE). It defines constants, data structures, and function prototypes for tasks such as memory management, CPU control, environment enumeration, and device access. The functions allow applications to communicate with the CFE, which is used in various Broadcom devices.
erlang.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 267 lines
21 </SPAN>
23 <MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="OPERATOR">(</MARK_PREVIOUS>
24 <SEQ TYPE="OPERATOR">)</SEQ>
136 <KEYWORD1>when</KEYWORD1>
138 <!-- built-in-functions BIFs -->
139 <KEYWORD2>abs</KEYWORD2>
140 <KEYWORD2>alive</KEYWORD2>
202 <KEYWORD2>binary</KEYWORD2>
203 <KEYWORD2>constant</KEYWORD2>
204 <KEYWORD2>function</KEYWORD2>
205 <KEYWORD2>integer</KEYWORD2>
206 <KEYWORD2>list</KEYWORD2>
Platform.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 242 lines
✨ Summary
This C++ code provides a virtual memory management system for operating systems, allowing for allocation and deallocation of memory blocks with specific permissions and alignment requirements. It supports both Windows and POSIX platforms, using different APIs to achieve similar functionality. The code includes helper functions for rounding up to the nearest power of two and checking alignment.
This C++ code provides a virtual memory management system for operating systems, allowing for allocation and deallocation of memory blocks with specific permissions and alignment requirements. It supports both Windows and POSIX platforms, using different APIs to achieve similar functionality. The code includes helper functions for rounding up to the nearest power of two and checking alignment.
has_inverse_icl_split_i_id503490.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
39 <span class="keyword">typedef</span> <span class="identifier">has_inverse</span><span class="special"><</span> <a class="link" href="split_interval_map.html" title="Class template split_interval_map">icl::split_interval_map</a><span class="special"><</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">CodomainT</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">,</span> <span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">Combine</span><span class="special">,</span> <span class="identifier">Section</span><span class="special">,</span> <span class="identifier">Interval</span><span class="special">,</span> <span class="identifier">Alloc</span> <span class="special">></span> <span class="special">></span> <a name="boost.icl.has_inverse_icl_split_i_id503490.type"></a><span class="identifier">type</span><span class="special">;</span>
41 <span class="comment">// <a class="link" href="has_inverse_icl_split_i_id503490.html#id503564-bb">public member functions</a></span>
42 <a class="link" href="has_inverse_icl_split_i_id503490.html#id503566-bb"><span class="identifier">BOOST_STATIC_CONSTANT</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">has_inverse</span><span class="special"><</span> <span class="identifier">CodomainT</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
43 <span class="special">}</span><span class="special">;</span></pre></div>
46 <div class="refsect2" lang="en">
47 <a name="id1195309"></a><h3>
48 <a name="id503564-bb"></a><code class="computeroutput">has_inverse</code> public member functions</h3>
49 <div class="orderedlist"><ol type="1"><li><pre class="literallayout"> <a name="id503566-bb"></a><span class="identifier">BOOST_STATIC_CONSTANT</span><span class="special">(</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="special">(</span><span class="identifier">has_inverse</span><span class="special"><</span> <span class="identifier">CodomainT</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
50 </div>
neponset_defconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 1143 lines
ContainerNode.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 175 lines
74 virtual void childrenChanged(bool createdByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
76 // FIXME: It's not good to have two functions with such similar names, especially public functions.
77 // How do removeChildren and removeAllChildren differ?
78 void removeChildren();
104 private:
105 // Never call this function directly. If you're trying to call this
106 // function, your code is either wrong or you're supposed to call
filters.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 40 lines
templates.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 158 lines
25 * @since 1.6
26 */
27 public function __construct($config = array())
28 {
29 if (empty($config['filter_fields'])) {
51 * @since 1.6
52 */
53 public function getItems()
54 {
55 $items = parent::getItems();
68 * @since 1.6
69 */
70 protected function getListQuery()
71 {
72 // Create a new query object.
example.cxx
(https://swig.svn.sourceforge.net/svnroot/swig)
C++ · 47 lines
✨ Summary
This C++ code defines a Vector class and a VectorArray class, which is an array of Vectors. The Vector class has methods for adding two vectors together and printing its contents. The VectorArray class provides an array-like interface to access individual vectors in the array, with bounds checking and size retrieval functionality.
This C++ code defines a Vector class and a VectorArray class, which is an array of Vectors. The Vector class has methods for adding two vectors together and printing its contents. The VectorArray class provides an array-like interface to access individual vectors in the array, with bounds checking and size retrieval functionality.
Makefile.am
(https://libusb.svn.sourceforge.net/svnroot/libusb)
Makefile · 32 lines
✨ Summary
This Makefile generates documentation for a project. It builds manual pages from SGML files, creates HTML documentation, and compresses the output into PS and gzip formats. The build process depends on the BUILD_DOCS
variable, which controls whether to generate postscript or not. The Makefile also cleans up intermediate files and directories during the build process.
This Makefile generates documentation for a project. It builds manual pages from SGML files, creates HTML documentation, and compresses the output into PS and gzip formats. The build process depends on the BUILD_DOCS
variable, which controls whether to generate postscript or not. The Makefile also cleans up intermediate files and directories during the build process.
example.tcl
(https://swig.svn.sourceforge.net/svnroot/swig)
TCL · 35 lines
✨ Summary
This TCL code loads a shared library (.so
file) and a dynamic link library (.dll
file) on different platforms, then creates an object Foo
and tests its enum values using two functions: enum_test
with and without the object instance. The output prints the enum values for each test case.
This TCL code loads a shared library (.so
file) and a dynamic link library (.dll
file) on different platforms, then creates an object Foo
and tests its enum values using two functions: enum_test
with and without the object instance. The output prints the enum values for each test case.
pyinit.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 289 lines
PhasedCuckooHashSet.java
(http://xbird.googlecode.com/svn/trunk/)
Java · 314 lines
✨ Summary
This Java code implements a hash table data structure, specifically a variant of the open addressing method. It provides methods for adding and removing elements, checking if an element exists, resizing the table when necessary, and debugging tools to verify the correctness of the implementation. The code is designed to be efficient and scalable, with features like probing and relocation to handle collisions and maintain a balanced distribution of elements.
This Java code implements a hash table data structure, specifically a variant of the open addressing method. It provides methods for adding and removing elements, checking if an element exists, resizing the table when necessary, and debugging tools to verify the correctness of the implementation. The code is designed to be efficient and scalable, with features like probing and relocation to handle collisions and maintain a balanced distribution of elements.
MemberGroupForm.class.php
(http://mortar.googlecode.com/svn/trunk/)
PHP · 27 lines
✨ Summary
This PHP code defines a custom form class MortarCoreMemberGroupForm
that extends ModelForm
. It creates a custom input field for member group name, sets its label and adds a required rule. The processCustomInputs
method resets the is_system
property to 0, and the populateCustomInputs
method populates the form with the model’s name from the database.
This PHP code defines a custom form class MortarCoreMemberGroupForm
that extends ModelForm
. It creates a custom input field for member group name, sets its label and adds a required rule. The processCustomInputs
method resets the is_system
property to 0, and the populateCustomInputs
method populates the form with the model’s name from the database.
3 class MortarCoreMemberGroupForm extends ModelForm
4 {
5 protected function createCustomInputs()
6 {
7 $this->changeSection('Info');
12 }
14 protected function processCustomInputs($input)
15 {
16 $this->model['is_system'] = 0;
18 }
20 protected function populateCustomInputs()
21 {
22 $name = $this->getInput('model_name');
webview.lua
(git://github.com/mason-larobina/luakit.git)
Lua · 351 lines
✨ Summary
This Lua code defines a webview widget for a browser-like application. It sets up various methods and functions to control the webview, such as zooming, scrolling, and navigating history. The code also initializes the webview with default settings and provides a way to access its methods through a window instance.
This Lua code defines a webview widget for a browser-like application. It sets up various methods and functions to control the webview, such as zooming, scrolling, and navigating history. The code also initializes the webview with default settings and provides a way to access its methods through a window instance.
6 webview = {}
8 -- Table of functions which are called on new webview widgets.
9 webview.init_funcs = {
10 -- Set useragent
11 set_useragent = function (view, w)
12 view.user_agent = globals.useragent
13 end,
15 -- Check if checking ssl certificates
16 checking_ssl = function (view, w)
17 local ca_file = soup.ssl_ca_file
18 if ca_file and os.exists(ca_file) then
netdevice.h
(http://photon-android.googlecode.com/svn/)
C Header · 2031 lines
✨ Summary
This C header file provides a set of functions and macros for working with network devices, such as Ethernet cards and bridges. It defines various constants, structures, and functions for managing network interfaces, including setting and getting device settings, handling packet timestamps, and suppressing duplicate packets on bonded networks. The code is part of the Linux kernel’s networking subsystem.
This C header file provides a set of functions and macros for working with network devices, such as Ethernet cards and bridges. It defines various constants, structures, and functions for managing network interfaces, including setting and getting device settings, handling packet timestamps, and suppressing duplicate packets on bonded networks. The code is part of the Linux kernel’s networking subsystem.
61 #define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev
62 functions are available. */
63 #define HAVE_FREE_NETDEV /* free_netdev() */
64 #define HAVE_NETDEV_PRIV /* netdev_priv() */
110 #endif
112 /* Modified by Andy from QCT LTE0045 for LTE related function */
113 #if defined(CONFIG_QCT_LTE)
114 # if !defined(CONFIG_NET_IPIP) && !defined(CONFIG_NET_IPIP_MODULE) && \
505 *
506 * int (*ndo_init)(struct net_device *dev);
507 * This function is called once when network device is registered.
508 * The network device can use this to any late stage initializaton
509 * or semantic validattion. It can fail with an error code which will