100+ results results for 'var result repo:duckduckgo/zeroclickinfo-spice' (6249 ms)
99 100var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 101 Copyright (c) 2017 Jed Watson. 147 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 148 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 149 } else {} 190 var target = {}; 191 var sourceKeys = Object.keys(source); 192 var key, i; 227 228function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } 229 229 230function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } 231ping_strategy.js https://gitlab.com/junxianlim/kokochat | JavaScript | 366 lines
53 var candidateServers = []; 54 var self = this; 55 81 // Remove any that are not tagged correctly 82 for(var i = 0; i < candidateServers.length; i++) { 83 var server = candidateServers[i]; 247 // Process the ismaster for the server 248 if(result && result.documents && self.replicaset.processIsMaster) { 249 self.replicaset.processIsMaster(__serverInstance, result.documents[0]); 307 // Startup time of the command 308 var startTime = Date.now(); 309 333 // Process the ismaster for the server 334 if(result && result.documents && self.replicaset.processIsMaster) { 335 self.replicaset.processIsMaster(__serverInstance, result.documents[0]);Config_File.class.php https://github.com/md-tech/openemr.git | PHP | 389 lines
120 if (empty($section_name)) { 121 return $this->_config_data[$file_name]["vars"][$var_name]; 122 } else { 332 } 333 $this->_set_config_var($vars, $var_name, $var_value, $booleanize); 334 } 347 */ 348 function _set_config_var(&$container, $var_name, $var_value, $booleanize) 349 { 353 else 354 $var_name = substr($var_name, 1); 355 } 357 if (!preg_match("/^[a-zA-Z_]\w*$/", $var_name)) { 358 $this->_trigger_error_msg("Bad variable name '$var_name'"); 359 return;base-observable-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 209 lines
9 **/ 10 var L = Y.Lang, 11 84 85 var type = this._getFullType(INIT), 86 e = this._publish(type); 118 119 var i, l, target, 120 userTargets = (config && BUBBLETARGETS in config); 161 * Subscribers to the "after" moment of this event, will be notified 162 * after destruction is complete (and as a result cannot prevent 163 * destruction).write_batch_with_index_internal.h https://gitlab.com/barrel-db/erlang-rocksdb | C Header | 327 lines
57 private: 58 void AssertInvariants(); 59 void Advance(); 74 const Slice* iterate_upper_bound_; 75 mutable PinnableSlice merge_result_; 76}; 181 public: 182 enum Result { kFound, kDeleted, kNotFound, kMergeInProgress, kError }; 183 WBWIIteratorImpl(uint32_t column_family_id, 267 // 268 Result FindLatestUpdate(const Slice& key, MergeContext* merge_context); 269 Result FindLatestUpdate(MergeContext* merge_context); 299 // Else, return kError on error with error Status stored in *s. 300 WBWIIteratorImpl::Result GetFromBatch(WriteBatchWithIndex* batch, 301 const Slice& key, std::string* value,calculator.js https://gitlab.com/vince.omega/pos | JavaScript | 244 lines
24 $.fn.calculator = function(params){ 25 var settings = jQuery.extend({},$.fn.calculator.defaults, params); 26 29 return this.each(function(){ 30 var calc = $(this); 31 48 calc._executable = true; 49 calc._lastresult = null; 50 97 $.fn.calculator.format.createButton = function(button){ 98 var style = (button.left)?'left:'+button.left+';':''; 99 style += (button.top)?'top:'+button.top+';':''; 123 if(calc.text.length < calc.settings.accuracy||calc._cleartextflag){ 124 var input = (calc.text=='0'||calc._cleartextflag)?((button.symbol=='.')?'0.':(button.symbol=='0')?'':button.symbol):calc.text+button.symbol; 125ParseNode.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 211 lines
75 } 76 return result; 77 } 84 rootNode.collectPtgs(temp); 85 return temp.getResult(); 86 } 135 136 AttrPtg attrSkipAfterTrue = AttrPtg.createSkip(falseParamSize + 4 + 4 - 1); // 1 less than distance to end of if FuncVar(size=4). +4 for attr skip before 137 AttrPtg attrSkipAfterFalse = AttrPtg.createSkip(4 - 1); // 1 less than distance to end of if FuncVar(size=4). 143 // false parameter not present 144 AttrPtg attrSkipAfterTrue = AttrPtg.createSkip(4 - 1); // 1 less than distance to end of if FuncVar(size=4). 145 153 if (token instanceof FuncVarPtg) { 154 FuncVarPtg func = (FuncVarPtg) token; 155 if (FunctionMetadataRegistry.FUNCTION_NAME_IF.equals(func.getName())) {SingularField.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 148 lines
22import net.sourceforge.pmd.ast.ASTSynchronizedStatement; 23import net.sourceforge.pmd.ast.ASTVariableDeclaratorId; 24import net.sourceforge.pmd.ast.Node; 35 /** 36 * Restore old behaviour by setting both properties to true, which will result in many false positives 37 */ 47 if (node.isPrivate() && !node.isStatic()) { 48 List<ASTVariableDeclaratorId> list = node.findChildrenOfType(ASTVariableDeclaratorId.class); 49 ASTVariableDeclaratorId declaration = list.get(0);CodeGenerationUtils.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 140 lines
104 String clsName = cls.getName().toString(); 105 String clsVarName = 106 Character.toLowerCase(clsName.charAt(0)) 107 + clsName.substring(1); 108 clsVarName = (clsVarName.equals(clsName)) ? '_' + clsVarName : clsVarName; // NOI18N 109 functionCall.append(" ") // NOI18N 111 .append(" ") // NOI18N 112 .append(clsVarName); // NOI18N 113 if (!CsmKindUtilities.isConstructor(method)) { 115 functionCall.append(" ") // NOI18N 116 .append(((!"void".equals(returnType)) ? returnType + " result = " : "")) // NOI18N 117 .append(clsVarName) // NOI18N 122 } else { 123 functionCall.append(" ").append(((!"void".equals(returnType)) ? returnType + " result = " : "")) // NOI18N 124 .append(fun.getName()); // NOI18Nplaysheet.js https://gitlab.com/gramie/dotlog | JavaScript | 177 lines
84Playsheet.prototype.fillPlaysheetGrid = function(data, startTime, endTime) { 85 var tableData = ''; 86 for(var i = 0; i < data.length; i++) { 100 var rowclass = (i % 2 == 0) ? 'even' : 'odd'; 101 var Result = '<tr class="' + rowclass + '">'; 102 var entryTime = getDrupalFormTime('start') + parseInt(row.startMinutes); 114 if (playsheetEditable) { 115 Result += '<td><div class="playsheet-buttons">'; 116 Result += '<button type="button" onclick="editPlaysheetEntry(' + i + ');" title="Edit entry">✎</button>'; 166 if (parts.length == 2) { 167 var result = parseInt(parts[0]) * 60 + parseInt(parts[1]); 168 } else { 168 } else { 169 var result = parseInt(timestring, 10); 170 }woocommerce-update-2.2.php https://gitlab.com/webkod3r/tripolis | PHP | 196 lines
114// Update variations which manage stock 115$update_variations = $wpdb->get_results( " 116 SELECT DISTINCT posts.ID AS variation_id, posts.post_parent AS variation_parent FROM {$wpdb->posts} as posts 118 LEFT OUTER JOIN {$wpdb->postmeta} as postmeta2 ON posts.ID = postmeta2.post_id AND postmeta2.meta_key = '_manage_stock' 119 WHERE posts.post_type = 'product_variation' 120 AND postmeta.meta_value IS NOT NULL 124 125foreach ( $update_variations as $variation ) { 126 $parent_backorders = get_post_meta( $variation->variation_parent, '_backorders', true ); 126 $parent_backorders = get_post_meta( $variation->variation_parent, '_backorders', true ); 127 add_post_meta( $variation->variation_id, '_manage_stock', 'yes', true ); 128 add_post_meta( $variation->variation_id, '_backorders', $parent_backorders ? $parent_backorders : 'no', true ); 131// Update taxonomy names with correct sanitized names 132$attribute_taxonomies = $wpdb->get_results( "SELECT * FROM " . $wpdb->prefix . "woocommerce_attribute_taxonomies" ); 133folders-abstract.js https://gitlab.com/aparle/golf2016Android | JavaScript | 161 lines
20 fe.file(function (f) { 21 var r = new FileReader(); 22 r.onloadend = function () { 23 if ($.isFunction(successCallback)) { 24 successCallback(JSON.parse(this.result)); 25 } 42 retrieveFolderData: function (callback) { 43 var self = this, 44 createNew = function () { 45 self.addNewFolder("Folder 1"); 46 //for (var i = 2; i < 16; i++) { 47 // self.addNewFolder("Folder " + i.toString()); 70 addNewFolder: function (name, sortOrder) { 71 var fid = this.generateUniqueFolderId(), 72 data = $.isEmptyObject(window.foldersData)Primer3.pm https://gitlab.com/pooja043/Globus_Docker_2 | Perl | 437 lines
204 or 205 my $results = $primer3->all_results('primer3 result name', 'other results'); 206 Function: Retrieve the results returned from Primer3. 217 foreach my $result (@results) { 218 $hash{$result} = $self->{'results'}->$result; 219 } 221 foreach my $result (keys %{$self->{'results'}}) { 222 $hash{$result}=$self->{'results'}->{$result}; 223 } 232 Title : primer_results() 233 Usage : my $results = $primer3->primer_results(2); # results for third primer 234 Function: Retrieve the results returned from Primer3 for specific primer pairs. 311 return if ($self->{'next_to_return'} >= $self->number_of_results); 312 my $results = $self->primer_results($self->{'next_to_return'}); 313user-stream-api-read-e2e-test.js https://gitlab.com/pump.io/pump.io | JavaScript | 292 lines
20 21var assert = require("assert"), 22 vows = require("vows"), 35 36var ignore = function(err) {}; 37 37 38var suite = vows.describe("User stream API test"); 39 39 40var sizeFeed = function(endpoint, size) { 41 return { 42 topic: function(cred) { 43 var full = "http://localhost:4815" + endpoint, 44 callback = this.callback;StockItemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 257 lines
12 /** 13 * @var \Magento\CatalogInventory\Model\Quote\Item\QuantityValidator\Initializer\StockItem 14 */ 17 /** 18 * @var QuoteItemQtyList| \PHPUnit_Framework_MockObject_MockObject 19 */ 22 /** 23 * @var \Magento\Catalog\Model\ProductTypes\ConfigInterface| \PHPUnit_Framework_MockObject_MockObject 24 */ 27 /** 28 * @var \PHPUnit_Framework_MockObject_MockObject 29 */ 112 ->getMock(); 113 $result = $this->getMockBuilder('Magento\Framework\DataObject') 114 ->setMethods(Parser.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 401 lines
163 list($nextSelector, $pseudoElement) = $this->parseSimpleSelector($stream); 164 $result = new Node\CombinedSelectorNode($result, $combinator, $nextSelector); 165 } 202 if ($peek->isHash()) { 203 $result = new Node\HashNode($result, $stream->getNext()->getValue()); 204 } elseif ($peek->isDelimiter(array('.'))) { 205 $stream->getNext(); 206 $result = new Node\ClassNode($result, $stream->getNextIdentifier()); 207 } elseif ($peek->isDelimiter(array('['))) { 208 $stream->getNext(); 209 $result = $this->parseAttributeNode($result, $stream); 210 } elseif ($peek->isDelimiter(array(':'))) { 229 if (!$stream->getPeek()->isDelimiter(array('('))) { 230 $result = new Node\PseudoNode($result, $identifier); 231properties.cpp https://github.com/CyanogenMod/android_external_srec.git | C++ | 340 lines
16// \file 17// Functions for updating property bits for various FST operations and 18// string names of the properties. 26// These functions determine the properties associated with the FST 27// result of various finite-state operations. The property arguments 28// correspond to the operation's FST arguments. The properties 29// returned assume the operation modifies its first argument. 30// Bitwise-and this result with kCopyProperties for the case when a 31// new (possibly delayed) FST is instead constructed. 259uint64 ReweightProperties(uint64 inprops) { 260 uint64 outprops = inprops & kWeightInvariantProperties; 261 outprops = outprops & ~kCoAccessible;LocalsArray.java https://gitlab.com/brian0218/rk3288_r-box_android4.4.2_sdk | Java | 181 lines
26/** 27 * Representation of an array of local variables, with Java semantics. 28 * 150 /** 151 * Merges this instance with {@code other}. If the merged result is 152 * the same as this instance, then this is returned (not a copy). 154 * @param other {@code non-null;} another LocalsArray 155 * @return {@code non-null;} the merge result, a new instance or this 156 */ 165 * @param predLabel the label of the subroutine caller block. 166 * @return {@code non-null;} the merge result, a new instance or this 167 */glslang_tab.h https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C Header | 274 lines
28 the parser skeleton itself, you may (at your option) remove this 29 special exception, which will cause the skeleton and the resulting 30 Bison output files to be licensed under the GNU General Public 41 enum yytokentype { 42 INVARIANT = 258, 43 HIGH_PRECISION = 259, 75 UNIFORM = 291, 76 VARYING = 292, 77 STRUCT = 293, 135/* Tokens. */ 136#define INVARIANT 258 137#define HIGH_PRECISION 259 169#define UNIFORM 291 170#define VARYING 292 171#define STRUCT 293RegisterAllocator.java https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | Java | 197 lines
87 } else { 88 return definition.getResult().getCategory(); 89 } 101 102 return definition == null ? null : definition.getResult(); 103 } 149 * adding before the last insn, and the last insn must have no 150 * result 151 */ 159 160 // The new result must not have an associated local variable. 161 RegisterSpec newRegSpec = RegisterSpec.make(ssaMeth.makeNewSsaReg(),MorphTo.php https://gitlab.com/judielsm/Handora | PHP | 267 lines
57 /** 58 * Get the results of the relationship. 59 * 139 /** 140 * Get the results of the relationship. 141 * 148 foreach (array_keys($this->dictionary) as $type) { 149 $this->matchToMorphParents($type, $this->getResultsByType($type)); 150 } 163 { 164 foreach ($results as $result) { 165 if (isset($this->dictionary[$type][$result->getKey()])) { 178 */ 179 protected function getResultsByType($type) 180 {has.js.uncompressed.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 179 lines
17 // WARNING: if a foreign loader defines require.has to be something other than the has.js API, then this implementation fail 18 var has = require.has || function(){}; 19 if(!1){ 22 // compiler will discard the block. 23 var 24 isBrowser = 30 31 // has API variables 32 global = this, 66 // Optional. Omit if `test` is not a function. Provides a way to immediately 67 // run the test and cache the result. 68 // 106 if(1){ 107 var agent = navigator.userAgent; 108 // Common application level testsbootstrap-fileinput.js https://gitlab.com/lara_intern/BarcodeTechSolution | JavaScript | 198 lines
63 Fileinput.prototype.change = function(e) { 64 var files = e.target.files === undefined ? (e.target && e.target.value ? [{ name: e.target.value.replace(/^.+\\/, '')}] : []) : e.target.files 65 76 77 var file = files[0] 78 79 if (this.$preview.length > 0 && (typeof file.type !== "undefined" ? file.type.match(/^image\/(gif|png|jpeg)$/) : file.name.match(/\.(gif|png|jpe?g)$/i)) && typeof FileReader !== "undefined") { 80 var reader = new FileReader() 81 var preview = this.$preview 84 reader.onload = function(re) { 85 var $img = $('<img>') 86 $img[0].src = re.target.result 86 $img[0].src = re.target.result 87 files[0].result = re.target.result 88index.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 313 lines
1!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.co=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 2/** 37 // this case 38 var gen = fn; 39 done = done || error; 58 function next(err, res) { 59 var ret; 60 144 var pending = fns.length; 145 var results = new Array(pending); 146 var finished; 171 172 results[i] = res; 173 --pending || done(null, results); 196 var pending = keys.length; 197 var results = {}; 198 var finished;message_extractor.js https://gitlab.com/btluis/Angular2_Ejemplo | JavaScript | 166 lines
5var interpolation_config_1 = require('../interpolation_config'); 6var message_1 = require('./message'); 7var shared_1 = require('./shared'); 10 */ 11var ExtractionResult = (function () { 12 function ExtractionResult(messages, errors) { 17}()); 18exports.ExtractionResult = ExtractionResult; 19/** 22function removeDuplicates(messages) { 23 var uniq = {}; 24 messages.forEach(function (m) { 90 */ 91var MessageExtractor = (function () { 92 function MessageExtractor(_htmlParser, _parser, _implicitTags, _implicitAttrs) {ax_compare_version.m4 https://gitlab.com/rshipp/nut | m4 | 177 lines
10# 11# This macro compares two version strings. Due to the various number of 12# minor-version numbers that can exist, and the fact that string 39# otherwise shell commands ACTION-IF-FALSE are run. The environment 40# variable 'ax_compare_version' is always set to either 'true' or 'false' 41# as well. 65# empty string is the same as version 0. OP is evaluated by autoconf, not 66# configure, so must be a string, not a variable. 67# 91 # Convert the two version strings to be compared into a format that 92 # allows a simple string comparison. The end result is that a version 93 # string of the form 1.12.5-r617 will be converted to the form 95 # digits, and non digits are removed. 96 AS_VAR_PUSHDEF([A],[ax_compare_version_A]) 97 A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \mali_gp_scheduler.c https://bitbucket.org/thenameisnigel/android_kernel_samsung_smdk4210.git | C | 443 lines
42 43/* Variables to allow safe pausing of the scheduler */ 44static _mali_osk_wait_queue_t *gp_scheduler_working_wait_queue = NULL; 165 { 166 _mali_uk_gp_job_finished_s *jobres = notobj->result_buffer; 167 _mali_osk_memset(jobres, 0, sizeof(_mali_uk_gp_job_finished_s)); /* @@@@ can be removed once we initialize all members in this struct */ 237 238 jobres = (_mali_uk_gp_job_suspended_s *)notobj->result_buffer; 239exp_ch6.ads https://bitbucket.org/codefirex/toolchain_gcc-4.9.git | Ada | 250 lines
41 -- For each actual of an in-out or out parameter which is a numeric 42 -- (view) conversion of the form T (A), where A denotes a variable, 43 -- we insert the declaration: 51 -- 52 -- after the call. Here TypeA is the actual type of variable A. For out 53 -- parameters, the initial declaration has no expression. If A is not an 55 -- 56 -- Var : TypeA renames A; 57 -- Temp : T := Var; -- omitting expression for out parameter. 58 -- ... 59 -- Var := TypeA (Temp); 60 -- 89 90 -- The following type defines the various forms of allocation used for the 91 -- results of build-in-place function calls.migrate.go https://bitbucket.org/snormore/goose.git | Go | 278 lines
17 18var ErrTableDoesNotExist = errors.New("table does not exist") 19 22 TStamp time.Time 23 IsApplied bool // was this a result of up() or down() 24} 74 75 var e error 76 213 for rows.Next() { 214 var row MigrationRecord 215 if err = rows.Scan(&row.VersionId, &row.IsApplied); err != nil {Rar.php https://github.com/kervin/kyzstudio.git | PHP | 252 lines
45 * 46 * @var array 47 */ 186 187 $result = call_user_func($callback, $options, $content); 188 if ($result !== true) {uaccess_with_memcpy.c https://github.com/huangrui/linux.git | C | 286 lines
221 * thresholds need to be revalidated. Some overhead (small but still) 222 * would be implied by a runtime determined variable threshold, and 223 * so far the measurement on concerned targets didn't show a worthwhile 223 * so far the measurement on concerned targets didn't show a worthwhile 224 * variation. 225 * 226 * Note that a fairly precise sched_clock() implementation is needed 227 * for results to make some sense. 228 */msp_regops.h https://bitbucket.org/danhamilt1/linux.git | C Header | 236 lines
6 * ensure these are available on your platform before including this file. 7 * - The MIPS32 spec states that ll/sc results are undefined for uncached 8 * accesses. This means they can't be used on HW registers accessed 202 * 203 * u32 tmp; <-- Define a variable to hold the data 204 * 205 * custom_read_reg32(address, tmp); <-- Reads the address and put the value 206 * in the 'tmp' variable given 207 *Digg2.php https://github.com/Chetna/Services_Digg2.git | PHP | 453 lines
39 * 40 * var_dump($results); 41 * </code> 58 * 59 * var_dump($result); 60 * </code> 77 * @see setURI() 78 * @var string 79 */ 108 * @see accept(), getHTTPRequest2() 109 * @var HTTP_Request2 110 */ 116 * @see accept(), getHTTPOAuthConsumer() 117 * @var HTTP_OAuth_Consumer|null 118 */orm.js https://github.com/axiak/node-orm.git | JavaScript | 527 lines
10 var addOneAssociationMethods = function (model, association, associationModel) { 11 var camelCaseAssociation = association.substr(0, 1).toUpperCase() + association.substr(1); 12 13 model.prototype["get" + camelCaseAssociation] = function (cb) { 14 var self = this; 15 206 var ids = []; 207 for (var i = 0; i < data.length; i++) { 208 ids.push(data[i][field + "_id"]); 514 515 var handleResult = function (success, info) { 516 if (!success) return callback(false, info); 521 if (rawDb) { 522 db.use_db(rawDb, handleResult); 523 } else {glquery.math.module.js https://github.com/circuithub/morpheus.git | JavaScript | 478 lines
293 ];//*/ 294 var result = [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0]; 295 return m3.mul(result, m3.newRotationX(angles[0]), m3.newRotationY(angles[1])); 309 ];//*/ 310 var result = [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0]; 311 return m3.mul(result, m3.newRotationY(angles[0]), m3.newRotationX(angles[1])); 325 ];//*/ 326 var result = [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0]; 327 return m3.mul(result, m3.newRotationX(angles[0]), m3.newRotationZ(angles[1])); 341 ];//*/ 342 var result = [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0]; 343 return m3.mul(result, m3.newRotationZ(angles[0]), m3.newRotationX(angles[1])); 357 ];//*/ 358 var result = [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0]; 359 return m3.mul(result, m3.newRotationY(angles[0]), m3.newRotationZ(angles[1]));pthread_cond_wait.S https://bitbucket.org/pizzafactory/blackfin-toolchain.git | Assembly | 595 lines
213 214 /* Wake up a thread which wants to destroy the condvar object. */ 215 movl total_seq(%ebx), %eax 271 272 /* We return the result of the mutex_lock operation. */ 273 ret 397 398 .type __condvar_w_cleanup2, @function 399__condvar_w_cleanup2: 400 subl $cond_futex, %ebx 401 .size __condvar_w_cleanup2, .-__condvar_w_cleanup2 402.LSbl4: 545 cfi_endproc 546 .size __condvar_w_cleanup, .-__condvar_w_cleanup 547class-wc-eval-math.php https://gitlab.com/haris4445/techarena | PHP | 367 lines
15 * 16 * @var string 17 */ 20 /** 21 * Variables (and constants). 22 * 22 * 23 * @var array 24 */ 29 * 30 * @var array 31 */ 36 * 37 * @var array 38 */misc.c https://github.com/postgres/postgres.git | C | 593 lines
300 301 /* dump out internal sqlca variables */ 302 if (ecpg_internal_regression_mode && sqlca != NULL) 349 break; 350 case ECPGt_varchar: 351 *(((struct ECPGgeneric_varchar *) ptr)->arr) = 0x00; 351 *(((struct ECPGgeneric_varchar *) ptr)->arr) = 0x00; 352 ((struct ECPGgeneric_varchar *) ptr)->len = 0; 353 break; 424 case ECPGt_varchar: 425 if (*(((const struct ECPGgeneric_varchar *) ptr)->arr) == 0x00) 426 return true; 557 /* a new one has to be added */ 558 ptr = (struct var_list *) calloc(1L, sizeof(struct var_list)); 559 if (!ptr)permalinks.md https://github.com/darwin/jekyll.git | Markdown | 368 lines
7Permalinks refer to the URLs (excluding the domain name or directory folder) for your pages, posts, or collections. 8Jekyll supports a flexible way to build permalinks, allowing you to leverage various template variables or choose built-in permalink styles (such as `date`) that automatically use a template-variable pattern. 9 9 10You construct permalinks by creating a template URL where dynamic elements are represented by colon-prefixed keywords. The default template permalink is `/:categories/:year/:month/:day/:title.html`. Each of the colon-prefixed keywords is a template variable. 11 51 52## Template variables for permalinks {#template-variables} 53 53 54The following table lists the template variables available for permalinks. You can use these variables in the `permalink` property in your config file. 55 186 187Although you can specify a custom permalink pattern using [template variables](#template-variables), Jekyll also provides the following built-in styles for convenience. 188scanner.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 292 lines
79 // If plugin settings require us to act like virus on any error, 80 // return SCAN_RESULT_FOUND result. 81 if ($this->get_config('clamfailureonupload') === 'actlikevirus') { 102 // If plugin settings require us to act like virus on any error, 103 // return SCAN_RESULT_FOUND result. 104 if ($this->get_config('clamfailureonupload') === 'actlikevirus') { 175 exec($cmd, $output, $return); 176 // Return variable will contain execution return code. It will be 0 if no virus is found, 177 // 1 if virus is found, and 2 or above for the error. Return codes 0 and 1 correspond to 177 // 1 if virus is found, and 2 or above for the error. Return codes 0 and 1 correspond to 178 // SCAN_RESULT_OK and SCAN_RESULT_FOUND constants, so we return them as it is. 179 // If there is an error, it gets stored as scanning notice and function 179 // If there is an error, it gets stored as scanning notice and function 180 // returns SCAN_RESULT_ERROR. 181 if ($return > self::SCAN_RESULT_FOUND) {clock.cpp https://gitlab.com/abidin24/sortix | C++ | 431 lines
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 227 // TODO: This busy-loop is rather inefficient. We could set up some 228 // condition variable and wait on it. However, if the lock is 229 // turning interrupts off, then there is no mutex we can use.rpl.c https://github.com/dahool84/xbmc.git | C | 359 lines
70{ 71 unsigned long result = 0; 72 for (; *line>='0' && *line<='9'; line++) { 72 for (; *line>='0' && *line<='9'; line++) { 73 if (result > (0x7FFFFFFF - 9) / 10) 74 *error = -1; 74 *error = -1; 75 result = 10 * result + *line - '0'; 76 } 77 *endptr = line; 78 return result; 79} 108 *error = -1; 109 av_reduce(&result.num, &result.den, num, den, 0x7FFFFFFF); 110 return result;ParseException.java https://github.com/lcamilo15/cfeclipse.git | Java | 191 lines
23 * print the error message in the form: 24 * ParseException: <result of getMessage> 25 */ 58 /** 59 * This variable determines which constructor was used to create 60 * this object and thereby affects the semantics of theuser.js https://github.com/istos/DrupalRooms.git | JavaScript | 196 lines
12 var innerWrapper = $(this).parent(); 13 var outerWrapper = $(this).parent().parent(); 14 20 var confirmInput = $('input.password-confirm', outerWrapper); 21 var confirmResult = $('div.password-confirm', outerWrapper); 22 var confirmChild = $('span', confirmResult); 33 // Evaluate the password strength. 34 var result = Drupal.evaluatePasswordStrength(passwordInput.val(), settings.password); 35 49 // Adjust the length of the strength indicator. 50 $(innerWrapper).find('.indicator').css('width', result.strength + '%'); 51 58 // Check that password and confirmation inputs match. 59 var passwordCheckMatch = function () { 60LocalRepo.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 241 lines
15class LocalRepo extends FSRepo { 16 var $fileFactory = array( 'LocalFile', 'newFromTitle' ); 17 var $fileFactoryKey = array( 'LocalFile', 'newFromKey' ); 17 var $fileFactoryKey = array( 'LocalFile', 'newFromKey' ); 18 var $oldFileFactory = array( 'OldLocalFile', 'newFromTitle' ); 19 var $oldFileFactoryKey = array( 'OldLocalFile', 'newFromKey' ); 19 var $oldFileFactoryKey = array( 'OldLocalFile', 'newFromKey' ); 20 var $fileFromRowFactory = array( 'LocalFile', 'newFromRow' ); 21 var $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' ); 194 195 $result = array(); 196 foreach ( $res as $row ) { 196 foreach ( $res as $row ) { 197 $result[] = $this->newFileFromRow( $row ); 198 }ima_queue.c https://github.com/tiwai/sound.git | C | 241 lines
142 if (!ima_tpm_chip) 143 return result; 144 146 if (result != 0) 147 pr_err("Error Communicating to TPM chip, result: %d\n", result); 148 return result; 167 int audit_info = 1; 168 int result = 0, tpmresult = 0; 169 173 audit_cause = "hash_exists"; 174 result = -EEXIST; 175 goto out; 189 190 tpmresult = ima_pcr_extend(digests_arg, entry->pcr); 191 if (tpmresult != 0) {stdio.in.h https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C Header | 382 lines
50# endif 51/* The __-protected variants of `format' and `printf' attributes 52 are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ 205 If the memory allocation succeeds, store the address of the string in 206 *RESULT and return the number of resulting bytes, excluding the trailing 207 NUL. Upon memory allocation error, or some other error, return -1. */ 207 NUL. Upon memory allocation error, or some other error, return -1. */ 208 extern int asprintf (char **result, const char *format, ...) 209 __attribute__ ((__format__ (__printf__, 2, 3))); 209 __attribute__ ((__format__ (__printf__, 2, 3))); 210 extern int vasprintf (char **result, const char *format, va_list args) 211 __attribute__ ((__format__ (__printf__, 2, 0)));abituguru-datasheet.rst https://gitlab.com/deepcypher/linux | ReStructuredText | 336 lines
42 43After wider testing of the Linux kernel driver some variants of the uGuru have 44turned up which will hold 0x00 instead of 0xAC at the CMD port, thus we also 63The number of bytes is fixed for a given bank, you should always read or write 64that many bytes, reading / writing more will fail, the results when writing 65less then the number of bytes for a given bank are undetermined. 153 154After wider testing of the Linux kernel driver some variants of the uGuru have 155turned up which do not hold 0x08 at DATA within 250 reads after writing the 204connected through a division circuit. The currently known division circuits 205in use result in ranges of: 0-4361mV, 0-6248mV or 0-14510mV. 3.3 volt sources 206use the 0-4361mV range, 5 volt the 0-6248mV and 12 volt the 0-14510mV . 3310-0x30 with the reading code used for the sensor banks (0x20-0x28) and this 332resulted in a _permanent_ reprogramming of the voltages, luckily I had the 333sensors part configured so that it would shutdown my system on any out of specm_track.php https://bitbucket.org/adifaisalr/popmaya.git | PHP | 282 lines
21 $query = $this->db->get(); 22 return $query->result(); 23 }*/ 33 $query = $this->db->get(); 34 return $query->result(); 35 } 103 $this->db->limit(1); 104 return $query->result(); 105 } 114 $query=$this->db->get('tr_genre'); 115 return $query->result(); 116 } 125 $query=$this->db->get('tr_member_artist'); 126 return $query->result(); 127 }source.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 240 lines
24 * 25 * @var object 26 */ 31 * 32 * Note. Calling getState in this method will result in recursion. 33 * 69 { 70 // Initialise variables. 71 $app = JFactory::getApplication(); 79 $db->setQuery($query); 80 $state = $db->loadResult(); 81 if ((int)$state < 1 ) { 151 { 152 // Initialise variables. 153 $pk = $this->getState('extension.id');MongoDB.pm https://github.com/csirac2/MongoDBPlugin.git | Perl | 363 lines
14costs of hoisting and the advantages of hoisting. Benchmarks suggest 15that it's around 6 topics, though this may vary depending on disk 16speed and memory size. It also depends on the complexity of the query. 115 116 #false - return an empty resultset 117 return new Foswiki::Search::InfoCache( $Foswiki::Plugins::SESSION, 242 #TODO: howto ask iterator for list length? 243 #TODO: once the inputTopicSet isa ResultSet we might have an idea 244 # if ( scalar(@$topics) > 6 ) { 272 # print STDERR "--------Query::MongoDB \n" . Dumper($query) . "\n"; 273 my $resultTopicSet = 274 new Foswiki::Search::InfoCache( $Foswiki::Plugins::SESSION, $web ); 300 if ($match) { 301 $resultTopicSet->addTopic($meta); 302 }JSONAPI.m https://gitlab.com/RainGu/mercymap | Objective C | 152 lines
25 26#pragma mark - static variables 27 98 //handle the rpc response 99 NSDictionary* result = json[@"result"]; 100 100 101 if (!result) { 102 JSONAPIRPCErrorModel* error = [[JSONAPIRPCErrorModel alloc] initWithDictionary:json[@"error"] error:nil]; 115 //invoke the callback 116 completeBlock(result, e); 117 }customize-preview.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 244 lines
4(function( exports, $ ){ 5 var api = wp.customize, 6 debounce; 13 debounce = function( fn, delay, context ) { 14 var timeout; 15 return function() { 15 return function() { 16 var args = arguments; 17 39 initialize: function( params, options ) { 40 var self = this; 41 45 this.body.on( 'click.preview', 'a', function( event ) { 46 var link, isInternalJumpLink; 47 link = $( this );OSRM.Localization.js https://gitlab.com/khangaikhuu/route | JavaScript | 153 lines
35init: function() { 36 var supported_languages = OSRM.DEFAULTS.LANGUAGE_SUPPORTED; 37 40 41 var language_label = (navigator.language || navigator.userLanguage || "").substring(0,2); 42 for(var i=0; i<supported_languages.length; ++i) { 48 // fill option list and find default entry 49 var options = []; 50 var options_2 = []; 50 var options_2 = []; 51 var selected = 0; 52 for(var i=0, size=supported_languages.length; i<size; i++) { 74 // fix for racing condition when fallback language gets loaded after current language 75 var fb_localization = OSRM.Localization[OSRM.Localization.fallback_language]; 76 if( fb_localization == null || fb_localization.loading != null ) // fallback language still loadingallreduce_pattern.h https://gitlab.com/pranith/sst-elements | C Header | 223 lines
162 typedef enum {STATE_INIT, STATE_INNER_LOOP, STATE_TEST, STATE_ALLREDUCE_TEST, 163 STATE_COLLECT_RESULT, STATE_DONE} allreduce_state_t; 164 184 void state_ALLREDUCE_TEST(state_event sm_event); 185 void state_COLLECT_RESULT(state_event sm_event); 186 void state_DONE(state_event sm_event); 202 203 // Runtime variables 204 allreduce_state_t state;class.wpcom-json-api-list-media-v1-1-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 237 lines
4 5 var $date_range = array(); 6 var $page_handle = array(); 177 178 // Add a clause that limits the results to items beyond the passed item, or equivalent to the passed item 179 // but with an ID beyond the passed item. When we're ordering by the ID already, we only ask for itemsdefault_arguments.swift https://gitlab.com/franzejr/swift | Swift | 255 lines
11// CHECK: [[LIT:%[0-9]+]] = integer_literal $Builtin.Int2048, 17 12// CHECK: [[RESULT:%[0-9]+]] = apply [[CVT]]([[LIT]], [[INT]]) : $@convention(thin) (Builtin.Int2048, @thin Int.Type) -> Int 13// CHECK: return [[RESULT]] : $Int 20// CHECK: [[LEN:%[0-9]+]] = integer_literal $Builtin.Word, 5 21// CHECK: [[RESULT:%[0-9]+]] = apply [[CVT]]([[LIT]], [[LEN]], {{[^,]+}}, [[STRING]]) : $@convention(thin) 22// CHECK: return [[RESULT]] : $String 107// CHECK: string_literal utf16 "testPropWithMagicLiterals" 108var testPropWithMagicLiterals: Int { 109 testMagicLiterals()chebyshev.py https://gitlab.com/pooja043/Globus_Docker_3 | Python | 226 lines
4This module describes routines for computing Chebyshev 5approximations to univariate functions. A Chebyshev approximation is a 6truncation of the series \M{f(x) = S{sum} c_n T_n(x)}, where the Chebyshev 98 This function computes the Chebyshev series at a given point X, 99 estimating both the series RESULT and its absolute error ABSERR. 100 The error estimate is made from the first neglected term in the 122 This function evaluates a Chebyshev series CS at a given point X, 123 estimating both the series RESULT and its absolute error ABSERR, 124 to (at most) the given order ORDER. The error estimate is madeapi-list.js https://gitlab.com/bafang/cordova_controller | JavaScript | 251 lines
19 on: { 20 results: onFilterResults 21 } 29 clear : onSearchClear, 30 results: onSearchResults 31 } 105 var frag = Y.one(Y.config.doc.createDocumentFragment()), 106 resultNode = getFilterResultNode(), 107 typePlural = filter.get('queryType'), 110 if (e.results.length) { 111 YArray.each(e.results, function (result) { 112 frag.append(Lang.sub(LIST_ITEM_TEMPLATE, { 156 if (e.results.length) { 157 YArray.each(e.results, function (result) { 158 frag.append(result.display);import_service_spec.rb https://gitlab.com/alexsanford/gitlab-ce | Ruby | 183 lines
17 18 result = subject.execute 19 19 20 expect(result[:status]).to eq :success 21 end 25 26 result = subject.execute 27 27 28 expect(result[:status]).to eq :error 29 expect(result[:message]).to eq "Error importing repository #{project.import_url} into #{project.path_with_namespace} - The repository could not be created." 43 44 result = subject.execute 45SybaseConnection.cpp https://gitlab.com/LongAiR/KDb | C++ | 218 lines
46 47 // we can retrieve the server name and the server version using global variables 48 // @@servername 103 } 104 d->storeResult(); 105 return false; 140 141int SybaseConnection::serverResult() 142{ 145 146QString SybaseConnection::serverResultName() const 147{ 150 151/*void SybaseConnection::drv_clearServerResult() 152{nscd_getpw_r.c https://gitlab.com/Namal/glibc | C | 241 lines
50 51 return nscd_getpw_r (name, strlen (name) + 1, GETPWBYNAME, resultbuf, 52 buffer, buflen, result); 147 resultbuf->pw_uid = pw_resp.pw_uid; 148 resultbuf->pw_gid = pw_resp.pw_gid; 149 188 else 189 *result = resultbuf; 190 } 200 || resultbuf->pw_dir[pw_resp.pw_dir_len - 1] != '\0' 201 || resultbuf->pw_shell[pw_resp.pw_shell_len - 1] != '\0') 202 { 207 208 *result = resultbuf; 209 }AdapterTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 187 lines
15 /** 16 * @var ResponseFactory|\PHPUnit_Framework_MockObject_MockObject 17 */ 20 /** 21 * @var \Magento\Framework\DB\Adapter\AdapterInterface|\PHPUnit_Framework_MockObject_MockObject 22 */ 25 /** 26 * @var \Magento\Framework\Search\Adapter\Mysql\Mapper|\PHPUnit_Framework_MockObject_MockObject 27 */ 30 /** 31 * @var \Magento\Framework\Search\Adapter\Mysql\Adapter 32 */ 35 /** 36 * @var \Magento\Framework\TestFramework\Unit\Helper\ObjectManager 37 */eager.js https://gitlab.com/jonnyforney/beerbowerpainting | JavaScript | 175 lines
6 7var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); 8 12 13var _extends3 = _interopRequireDefault(_extends2); 14 14 15var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); 16 76 value: function eagerFetch(relationName, handled, options) { 77 var _this2 = this; 78 120 var Target = TargetByType[type]; 121 var idAttribute = _lodash2.default.result(Target.prototype, 'idAttribute'); 122 var ids = getAttributeUnique(parents, idColumn);SourceCode.js https://gitlab.com/paretje/qtwebkit | JavaScript | 212 lines
182 // Different backend APIs return one of `content, `body`, `text`, or `scriptSource`. 183 var content = parameters.content || parameters.body || parameters.text || parameters.scriptSource; 184 var error = parameters.error; 187 188 var revision = this.revisionForRequestedContent; 189 195 // now, and it may become out-dated later on. We should drop content from this promise 196 // and require clients to ask for the current contents from the sourceCode in the result. 197gen_trieval.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 219 lines
10// trie generated by "go run gen*.go". It is shared by both the generator 11// program and the resultant package. Sharing is achieved by the generator 12// copying gen_trieval.go to trieval.go and changing what's above this comment. 40// 41// See the definitions below for a more detailed description of the various 42// bits. 77// pattern for case mappings is often identical for successive runes, using 78// cXORCase can result in large series of identical trie values. This, in turn, 79// allows us to better compress the trie blocks. 111 112// The case mapping implementation will need to know about various Canonical 113// Combining Class (CCC) values. We encode two of these in the trie value: 177 178var trie = newCaseTrie(0) 179manager.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 267 lines
31 32// Locale defaults to "en_US" and can be overridden via this var or the GOVMOMI_LOCALE env var. 33// A value of "_" uses the server locale setting. 33// A value of "_" uses the server locale setting. 34var Locale = os.Getenv("GOVMOMI_LOCALE") 35 105 } 106 // When http.Transport.Proxy is used, our thumbprint checker is bypassed, resulting in: 107 // "Post https://sdkTunnel:8089/sdk: x509: certificate is valid for $vcenter_hostname, not sdkTunnel" 162func (sm *Manager) UserSession(ctx context.Context) (*types.UserSession, error) { 163 var mgr mo.SessionManager 164helpers_test.go https://gitlab.com/unofficial-mirrors/kubernetes | Go | 217 lines
37 expect := sets.NewString().Union(kubeletConfigurationPathFieldPaths).Union(kubeletConfigurationNonPathFieldPaths) 38 result := allPrimitiveFieldPaths(t, reflect.TypeOf(&KubeletConfiguration{}), nil) 39 if !expect.Equal(result) { 39 if !expect.Equal(result) { 40 // expected fields missing from result 41 missing := expect.Difference(result) 41 missing := expect.Difference(result) 42 // unexpected fields in result but not specified in expect 43 unexpected := result.Difference(expect) 44 if len(missing) > 0 { 45 t.Errorf("the following fields were expected, but missing from the result. "+ 46 "If the field has been removed, please remove it from the kubeletConfigurationPathFieldPaths set "+ 51 if len(unexpected) > 0 { 52 t.Errorf("the following fields were in the result, but unexpected. "+ 53 "If the field is new, please add it to the kubeletConfigurationPathFieldPaths set "+website_mass_mailing.js https://gitlab.com/thanhchatvn/cloud-odoo | JavaScript | 159 lines
3 4var ajax = require('web.ajax'); 5var utils = require('web.utils'); 5var utils = require('web.utils'); 6var animation = require('web_editor.snippets.animation'); 7var website = require('website.website'); 12 start: function (editable_mode) { 13 var self = this; 14 41 on_click: function () { 42 var self = this; 43 var $email = this.$target.find(".js_subscribe_email:visible"); 65 start: function (editable_mode) { 66 var self = this; 67 var popupcontent = self.$target.find(".o_popup_content_dev").empty();o2.dom.dimension.js https://github.com/v0lkan/o2.js.git | JavaScript | 477 lines
23 var create = attr(_, 'create'); 24 var def = attr(_, 'define'); 25 var require = attr(_, 'require'); 43 44 var $ = require('$'); 45 69 70 var result = (document.documentElement && 71 document.compatMode === kModernCss 90 * <pre> 91 * var dimensions = o2.Dom.getDimension('container'); 92 * </pre> 115 */ 116 var getDimension = require(kModuleName, 'getDimension'); 117DbLoginEventsManager.cs https://gitlab.com/rekby-archive/onlyoffice-CommunityServer | C# | 188 lines
56 var commonKey = GetCacheKey(tenantId, userId); 57 var cacheKeys = cache.Get<List<int>>(commonKey); 58 if (cacheKeys != null) 64 { 65 var where = GetActiveConnectionsWhere(tenantId, userId); 66 var query = new SqlQuery("login_events") 68 .Where(where); 69 var resultList = db.ExecuteList(query).Select(row => (int)row[0]).ToList(); 70 88 .OrderBy("id", false); 89 var loginInfo = db.ExecuteList(query).Select(row => new BaseEvent 90 { 166 { 167 var key = GetCacheKey(tenantId, userId); 168 cache.Remove(key);tileview.php https://gitlab.com/alexprowars/bitrix | PHP | 314 lines
28 29 /** @var bool $isInclude Is include. */ 30 protected $isInclude = true; 31 32 /** @var Message\Adapter $message Message. */ 33 protected $message; 109 { 110 /** @var \Bitrix\Main\Type\DateTime $last */ 111 $last = $tile['data']['last']; 189 { 190 $result = []; 191 $ids = []; 224 $item['bgcolor'] = self::getBackgroundColor($item['data']); 225 $result[] = $item; 226 $ids[] = $item['id'];manager.php https://gitlab.com/alexprowars/bitrix | PHP | 315 lines
164 { 165 $result = array(); 166 } 246 247 foreach ($event->getResults() as $eventResult) 248 { 248 { 249 if ($eventResult->getType() == EventResult::ERROR) 250 { 253 254 $eventResultParameters = $eventResult->getParameters(); 255 255 256 if($eventResultParameters && array_key_exists('CONNECTOR', $eventResultParameters)) 257 {search.php https://gitlab.com/alexprowars/bitrix | PHP | 169 lines
9/** @var array $arParams */ 10/** @var array $arResult */ 11/** @var array $arDefaultUrlTemplates404 */ 140{ 141 $dbUser = CUser::GetByID($arResult["VARIABLES"]["user_id"]); 142 $arUser = $dbUser->Fetch(); 159$feature = "search"; 160$arEntityActiveFeatures = CSocNetFeatures::GetActiveFeaturesNames(((mb_strpos($componentPage, "user_content_search") === false) ? SONET_ENTITY_GROUP : SONET_ENTITY_USER), ((mb_strpos($componentPage, "user_content_search") === false) ? $arResult["VARIABLES"]["group_id"] : $arResult["VARIABLES"]["user_id"])); 161$strFeatureTitle = ((array_key_exists($feature, $arEntityActiveFeatures) && $arEntityActiveFeatures[$feature] <> '') ? $arEntityActiveFeatures[$feature] : GetMessage("SONET_CONTENT_SEARCH_CHAIN")); 163if (mb_strpos($componentPage, "user_content_search") === false) 164 $url = CComponentEngine::MakePathFromTemplate(htmlspecialcharsbx($arResult["PATH_TO_GROUP_CONTENT_SEARCH"]), array("group_id" => $arResult["VARIABLES"]["group_id"])); 165else 165else 166 $url = CComponentEngine::MakePathFromTemplate(htmlspecialcharsbx($arResult["PATH_TO_USER_CONTENT_SEARCH"]), array("user_id" => $arResult["VARIABLES"]["user_id"])); 167template.php https://gitlab.com/alexprowars/bitrix | PHP | 168 lines
2/** @var array $arParams */ 3/** @var array $arResult */ 4/** @global CMain $APPLICATION */ 6/** @global CDatabase $DB */ 7/** @var CBitrixComponentTemplate $this */ 8/** @var string $templateName */ 8/** @var string $templateName */ 9/** @var string $templateFile */ 10/** @var string $templateFolder */ 10/** @var string $templateFolder */ 11/** @var string $componentPath */ 12/** @var CBitrixComponent $component */ 18<div class="mb-3 catalog-filter<?=$themeClass?>"> 19 <form name="<?echo $arResult["FILTER_NAME"]."_form"?>" action="<?echo $arResult["FORM_ACTION"]?>" method="get"> 20 <div class="container-fluid">future.rb https://gitlab.com/CORP-RESELLER/aws-flow-ruby | Ruby | 220 lines
37 def initialize 38 @conditional = FiberConditionVariable.new 39 @set = false 44 # @api private 45 def set(result=nil) 46 raise AlreadySetException if @set 47 @set = true 48 @result = result 49 @listeners.each { |b| b.call(self) } if @listeners 110 # Have the current fiber wait on this condition variable, and wake up 111 # when the FiberConditionVariable is signaled/broadcasted. 112 # 143 # 144 # * retrieve the result of the computation, once it is complete ({ExternalFuture#get}). 145 # * check if the computation is complete ({ExternalFuture#set?})JavaTestingWebServiceClients.md https://gitlab.com/KiaraGrouwstra/playframework | Markdown | 88 lines
31 32To test this, we want an embedded Play server that will implement this endpoint. We can do that by [[Creating an embedded server|JavaEmbeddingPlay]] with the [[Routing DSL|JavaRoutingDsl]]: 33 43 44In the previous example, we built the json manually for the mocked service. It often will be better to capture an actual response from the service your testing, and return that. To assist with this, Play provides a `sendResource` method that allows easily creating results from files on the classpath. 45UnfairSupplierResource.java https://gitlab.com/bourd0n/zakupki | Java | 148 lines
59 } 60 UnfairSupplier result = unfairSupplierService.save(unfairSupplier); 61 return ResponseEntity.created(new URI("/api/unfair-suppliers/" + result.getId())) 61 return ResponseEntity.created(new URI("/api/unfair-suppliers/" + result.getId())) 62 .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString())) 63 .body(result); 81 } 82 UnfairSupplier result = unfairSupplierService.save(unfairSupplier); 83 return ResponseEntity.ok() 84 .headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, unfairSupplier.getId().toString())) 85 .body(result); 86 } 110 @Timed 111 public ResponseEntity<UnfairSupplier> getUnfairSupplier(@PathVariable Long id) { 112 log.debug("REST request to get UnfairSupplier : {}", id);RegistrationKoResource.java https://gitlab.com/bourd0n/zakupki | Java | 148 lines
59 } 60 RegistrationKo result = registrationKoService.save(registrationKo); 61 return ResponseEntity.created(new URI("/api/registration-kos/" + result.getId())) 61 return ResponseEntity.created(new URI("/api/registration-kos/" + result.getId())) 62 .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString())) 63 .body(result); 81 } 82 RegistrationKo result = registrationKoService.save(registrationKo); 83 return ResponseEntity.ok() 84 .headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, registrationKo.getId().toString())) 85 .body(result); 86 } 110 @Timed 111 public ResponseEntity<RegistrationKo> getRegistrationKo(@PathVariable Long id) { 112 log.debug("REST request to get RegistrationKo : {}", id);Entity.php https://gitlab.com/reasonat/test8 | PHP | 198 lines
20 /** 21 * Stores the entity type of the result entities. 22 * 22 * 23 * @var string 24 */ 29 * 30 * @var \Drupal\Core\Entity\EntityManagerInterface 31 */OS_NS_stropts.cpp https://github.com/Teiby1/lastDivision-Repo.git | C++ | 193 lines
89 // Query for the buffer size. 90 int result = ::WSAIoctl ((ACE_SOCKET) socket, 91 io_control_code, 100 101 if (result == SOCKET_ERROR) 102 { 124 125 result = ::WSAIoctl ((ACE_SOCKET) socket, 126 io_control_code, 134 135 if (result == SOCKET_ERROR) 136 return result; 141 qos->SendingFlowspec.Latency, 142 qos->SendingFlowspec.DelayVariation, 143# if defined(ACE_HAS_WINSOCK2_GQOS)additional-methods.js https://gitlab.com/sumonsun/CronHub | JavaScript | 280 lines
76 return false; 77 var i, n, d, f, cd, cdv; 78 var LL = ["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"]; 78 var LL = ["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"]; 79 var VL = [1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9]; 80 var FL = [8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2]; 80 var FL = [8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2]; 81 var rs = 0; 82 for(i = 0; i < 17; i++){ 116 * @example jQuery.validator.methods.date("01/01/1900") 117 * @result true 118 * 119 * @example jQuery.validator.methods.date("01/13/1990") 120 * @result false 121 *Node.cs https://bitbucket.org/sebastian_ebert/attacktrees.git | C# | 387 lines
23 private string _name; 24 private bool _isResult; 25 private bool _isExpanded; 64 this.IsExpanded = true; 65 this.IsResult = false; 66 this.IsSelected = false; 154 /// Gets or sets if the node is part of the last 155 /// function runs result. 156 /// </summary> 156 /// </summary> 157 public bool IsResult 158 { 158 { 159 get { return _isResult; } 160 setirq.c https://github.com/SgtPepperKSU/TomatoVPN.git | C | 497 lines
8 * 9 * This file contains the code used by various IRQ handling routines: 10 * asking for different IRQ's should be done through these routines 11 * instead of just grabbing them. Thus setups with different IRQ numbers 12 * shouldn't result in any weird surprises, and installing new handlers 13 * should be easier.arm__rfft__q15_8c.html https://github.com/scottellis/lpc17xx.cmsis.driver.library.git | HTML | 221 lines
13<script type="text/javascript"><!-- 14var searchBox = new SearchBox("searchBox", "search",false,'Search'); 15--></script> 35 </span><span class="right"> 36 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> 37 </span> 207 onkeydown="return searchBox.OnSearchSelectKey(event)"> 208<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div> 209 209 210<!-- iframe showing the search results (closed by default) --> 211<div id="MSearchResultsWindow"> 212<iframe src="" frameborder="0" 213 name="MSearchResults" id="MSearchResults"> 214</iframe>flights_thread.c https://gitlab.com/bradanlane/AirPRS | C | 406 lines
20#define LOCAL_BUF_SIZE 256 21#define FULL_BOX 1.5 /* a box 1.5 degrees square will be about 80nmx90nm varrying a bit across the USA */ 22#define HALF_BOX (FULL_BOX) /* we will create a search area 'half of box size' in all directions */ 29{ 30 float result; 31 result = (RAD2DEG( 38 39 return result; 40} 43{ 44 int result; 45 result = (round ( 53 ); 54 if (result < 0) /* course will be between -180 and 180 */ 55 result += 360;index.html https://github.com/zhaoran/cufon.git | HTML | 462 lines
27 28 .test .result { 29 float: right; 117 Cufon.DOM.ready(function() { 118 var divs = document.getElementsByTagName('div'), div, i = 0; 119 while (div = divs[i++]) { 119 while (div = divs[i++]) { 120 if (/result/.test(div.className)) { 121 Cufon.replace(div.getElementsByTagName('p')); 145 146 <div class="result"> 147 163 164 <div class="result"> 165class_interface_manager-members.html https://bitbucket.org/Stapoli/distress-fc.git | HTML | 79 lines
14<script type="text/javascript"><!-- 15var searchBox = new SearchBox("searchBox", "search",false,'Search'); 16--></script> 32 onkeyup="searchBox.OnSearchFieldChange(event)"/> 33 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> 34 </div> 67 68<!-- iframe showing the search results (closed by default) --> 69<div id="MSearchResultsWindow"> 70<iframe src="" frameborder="0" 71 name="MSearchResults" id="MSearchResults"> 72</iframe>debug-stepin-positions.js https://github.com/dshaw/node.git | JavaScript | 225 lines
38 var codeSnippet = undefined; 39 var resultPositions = undefined; 40 74 75 var matchResult; 76 while ( (matchResult = markPattern.exec(codeSnippet)) ) { 92 for (var i = 0; i < resultPositions.length; i++) { 93 var col = resultPositions[i].position.column - markLength; 94 if (expectedPositions[col]) { 95 delete expectedPositions[col]; 96 decoratedResult = replaceStringRange(decoratedResult, col, "*YES*"); 97 } else { 97 } else { 98 decoratedResult = replaceStringRange(decoratedResult, col, "!BAD!"); 99 unexpectedPositionFound = true;mmal_util.h https://bitbucket.org/manaphassan/userland.git | C Header | 173 lines
76/** Get a parameter from a port allocating the required amount of memory 77 * for the parameter (i.e. for variable length parameters like URI or arrays). 78 * The size field will be set on output to the actual size of the 157 * 158 * @param buf Destination for result 159 * @param len Size of result buffer357-bgscan_thresh.patch https://github.com/bifferos/bb.git | Patch | 160 lines
1Add an optional background scanning threshold triggered by low rssi 2(useful for passing updated scan results to the supplicant ahead of 3time, before losing connectivity entirely) 16 #define SIOCG80211STATS (SIOCDEVPRIVATE+2) 17--- a/net80211/ieee80211_var.h 18+++ b/net80211/ieee80211_var.hvalidator.rb https://bitbucket.org/cavelti/ea_launcher.git | Ruby | 246 lines
19## 20# Validator performs various gem file and gem database validation 21 182 @mediator = Test::Unit::UI::TestRunnerMediator.new(@suite) 183 @mediator.add_listener(Test::Unit::TestResult::FAULT, &method(:add_fault)) 184 return @mediator.run_suite 224 225 result = TestRunner.run suite, ui 226 226 227 alert_error result.to_s unless result.passed? 228 else 228 else 229 result = MiniTest::Unit.new 230 result.runrun_pgg_2.py https://bitbucket.org/mekman/complex-systems.git | Python | 179 lines
39 40 ####### Init the variables ####### 41 synergy_step = parameters['synergy_step'] 77 for job in batch: 78 resultat = job.get() 79 print 'Number of job still runing:', len(rc.outstanding) 122 alpha_levy = parameters['alpha_levy'] 123 noise_var = parameters['noise_variance'] 124 beta = parameters['beta'] 154 cooperator_ratio=coop_ratio, 155 noise_var=noise_var) 156 nb_coop = PGG.run_game(sampling_interval) 162 cooperator_ratio=coop_ratio, 163 noise_var=noise_var) 164 PGG.set_strategies(strategies)resolv.h https://bitbucket.org/__wp__/mb-linux-msli.git | C Header | 320 lines
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 121/* 122 * Global defines and variables for resolver stub. 123 */collate_test.go https://bitbucket.org/shimberger/go-experimental.git | Go | 422 lines
60 61var zero = w(0, 0, 0, 0) 62 62 63var processTests = []weightsTest{ 64 // Shifted 64 // Shifted 65 { // simple sequence of non-variables 66 opt: opts{alt: collate.AltShifted, top: 100}, 69 }, 70 { // first is a variable 71 opt: opts{alt: collate.AltShifted, top: 250}, 74 }, 75 { // all but first are variable 76 opt: opts{alt: collate.AltShifted, top: 999},database.c https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public.git | C | 495 lines
97 cmd = "create table sndfile (ekey INTEGER PRIMARY KEY," 98 "fname VARCHAR(1)," 99 "fpath VARCHAR(1)," 100 "srate INTEGER," 101 "frames VARCHAR(1)," 102 "channels INTEGER," 102 "channels INTEGER," 103 "format VARCHAR(1)," 104 "checksum VARCHAR(1)," 104 "checksum VARCHAR(1)," 105 "logbuf VARCHAR(1)" 106 ");" ; 269get_ekey_from_filename (REGTEST_DB * db, const char *filepath) 270{ char * errmsg, **result ; 271 int err, ekey = 0, rows, cols ;ipv6.h https://bitbucket.org/evzijst/gittest.git | C Header | 316 lines
44 * type specific data 45 * variable length field 46 */ 82 __u32 seq_no; /* Sequence number */ 83 __u8 auth_data[0]; /* Length variable but >=4. Mind the 64 bit alignment! */ 84}; 88 __u32 seq_no; /* Sequence number */ 89 __u8 enc_data[0]; /* Length variable but >=8. Mind the 64 bit alignment! */ 90}; 150 151/* index values for the variables in ipv6_devconf */ 152enum { 180/* 181 This structure contains results of exthdrs parsing 182 as offsets from skb->nh.chunk.js https://bitbucket.org/xinghuo/caiwu.git | JavaScript | 209 lines
1var Binary = require('bson').Binary, 2 ObjectID = require('bson').ObjectID; 18 */ 19var Chunk = exports.Chunk = function(file, mongoObject) { 20 if(!(this instanceof Chunk)) return new Chunk(file, mongoObject); 22 this.file = file; 23 var self = this; 24 var mongoObjectFinal = mongoObject == null ? {} : mongoObject; 31 } else if(typeof mongoObjectFinal.data == "string") { 32 var buffer = new Buffer(mongoObjectFinal.data.length); 33 buffer.write(mongoObjectFinal.data, 'binary', 0); 35 } else if(Array.isArray(mongoObjectFinal.data)) { 36 var buffer = new Buffer(mongoObjectFinal.data.length); 37 buffer.write(mongoObjectFinal.data.join(''), 'binary', 0); 76 if(this.length() - this.internalPosition + 1 >= length) { 77 var data = this.data.read(this.internalPosition, length); 78 this.internalPosition = this.internalPosition + length;File.php https://bitbucket.org/acidel/buykoala.git | PHP | 198 lines
41{ 42 /**** Instance Variables ****/ 43 46 * Fully-qualified path to the file. 47 * @var string 48 */ 52 * File resource handle . 53 * @var resource 54 */ 184 parent::moveToOffset($offset); 185 $result = @fseek($this->_fileResource, $offset, SEEK_SET); 186 if ($result !== 0) {mul_1.asm https://bitbucket.org/pizzafactory/blackfin-toolchain.git | Assembly | 276 lines
1dnl SPARC v9 32-bit mpn_mul_1 -- Multiply a limb vector with a limb and store 2dnl the result in a second limb vector. 3 23C Algorithm: We use two floating-point multiplies per limb product, with the 24C invariant v operand split into two 16-bit pieces, and the u operand split 25C into 32-bit pieces. We convert the two 48-bit products and transfer them to 215C -- 5 216 xor %o5, 16, %o5 C alternate scratch variables 217 stw %g4, [%o0-4]ProgressHelper.php https://gitlab.com/guillaumev/alkarama | PHP | 469 lines
74 /** 75 * List of formatting variables. 76 * 89 * 90 * @var array 91 */ 343 $this->formatVars = array(); 344 foreach ($this->defaultFormatVars as $var) { 345 if (false !== strpos($this->format, "%{$var}%")) { 345 if (false !== strpos($this->format, "%{$var}%")) { 346 $this->formatVars[$var] = true; 347 } 407 408 if (isset($this->formatVars['percent'])) { 409 $vars['percent'] = str_pad(floor($percent * 100), $this->widths['percent'], ' ', STR_PAD_LEFT);open_exchange_rates_bank.rb https://gitlab.com/spkdev/money-open-exchange-rates | Ruby | 432 lines
20 # OpenExchangeRatesBank base class 21 class OpenExchangeRatesBank < Money::Bank::VariableExchange 22 VERSION = ::OpenExchangeRatesBank::VERSION 75 76 # Parsed OpenExchangeRates result as Hash 77 # 326 def read_from_cache 327 result = if cache.is_a?(Proc) 328 cache.call(nil) 331 end 332 result if valid_rates?(result) 333 endZoomableInlineAdornment.cs https://gitlab.com/SplatoonModdingHub/PTVS | C# | 173 lines
56 var trigger = new Trigger { Property = Border.IsFocusedProperty, Value = true }; 57 var setter = new Setter { Property = Border.BorderBrushProperty, Value = SystemColors.ActiveBorderBrush }; 58 trigger.Setters.Add(setter); 59 60 var style = new Style(); 61 style.Triggers.Add(trigger); 72 private ContextMenu MakeContextMenu() { 73 var result = new ContextMenu(); 74 AddMenuItem(result, "Zoom In", "Ctrl+OemPlus", (s, e) => OnZoomIn()); 75 AddMenuItem(result, "Zoom Out", "Ctrl+OemMinus", (s, e) => OnZoomOut()); 76 result.Items.Add(new Separator()); 77 AddMenuItem(result, "150%", null, (s, e) => Zoom(1.5)); 77 AddMenuItem(result, "150%", null, (s, e) => Zoom(1.5)); 78 AddMenuItem(result, "100%", null, (s, e) => Zoom(1.0)); 79 AddMenuItem(result, "75%", null, (s, e) => Zoom(0.75));DefaultValidatorTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 163 lines
11 /** 12 * @var \Magento\Catalog\Model\Product\Option\Validator\DefaultValidator 13 */ 16 /** 17 * @var \PHPUnit_Framework_MockObject_MockObject 18 */ 75 * @param $messages 76 * @param $result 77 * @dataProvider isValidTitleDataProvider 78 */ 79 public function testIsValidTitle($title, $type, $priceType, $price, $product, $messages, $result) 80 { 87 $valueMock->expects($this->once())->method('getProduct')->will($this->returnValue($product)); 88 $this->assertEquals($result, $this->validator->isValid($valueMock)); 89 $this->assertEquals($messages, $this->validator->getMessages());parse-events.l https://gitlab.com/lszubowi/kernel-ark | LEX | 413 lines
142 * If we're not testing then parse check determines the PMU event type 143 * which if it isn't a PMU returns PE_NAME. When testing the result of 144 * parse check can't be trusted so we return PE_PMU_EVENT_FAKE unless 237 /* 238 * The flex parser does not init locations variable 239 * via the scan_string interface, so we need do the 385refs|Reference|ops|access | 386misses|miss { return str(yyscanner, PE_NAME_CACHE_OP_RESULT); } 387dashboard.js https://gitlab.com/thanhhung95/managecourse | JavaScript | 381 lines
1var DashboardGlobal = { 2 getStatisticsAppWeek: function () { 42function GetAndDrawWeekChartData() { 43 var params = $.extend({}, doAjax_params_default); 44 params['url'] = 'Home/DashBoardStatisticsByWeek'; 48 params['dataType'] = "json"; 49 params['successCallbackFunction'] = function (result) { 50 if (result) { 51 //Chart by week 52 DrawWeekLineChart(result); 53 } 58function GetAndDrawAppWeekChartData() { 59 var params = $.extend({}, doAjax_params_default); 60 params['url'] = 'Home/DashBoardStatisticsAppByWeek'; 64 params['dataType'] = "json"; 65 params['successCallbackFunction'] = function (result) { 66 if (result) {tests_setvalue.js https://gitlab.com/cavadu/mercatitulo | JavaScript | 182 lines
14 test("inputmask(\"decimal\") ~ value=\"123.45\"", function() { 15 var $fixture = $("#qunit-fixture"); 16 $fixture.append('<input type="text" id="testmask" />'); 16 $fixture.append('<input type="text" id="testmask" />'); 17 var testmask = document.getElementById("testmask"); 18 Inputmask("decimal").mask(testmask); 19 $("#testmask").val("123.45"); 20 equal(testmask.value, "123.45", "Result " + testmask.value); 21 25 test("inputmask(\"9\") ~ value=\"1\"", function() { 26 var $fixture = $("#qunit-fixture"); 27 $fixture.append('<input type="text" id="testmask" />'); 27 $fixture.append('<input type="text" id="testmask" />'); 28 var testmask = document.getElementById("testmask"); 29 Inputmask("9").mask(testmask);reqImport.tpl https://github.com/viglesiasce/testlink.git | Smarty Template | 170 lines
7Revision: 820050830 - MHT - result presentation updated 920051015 - scs - fixed back button 14* ----------------------------------------------------------------- *} 15{lang_get var="labels" 16 s='note_keyword_filter,check_uncheck_all_checkboxes_for_add, 21 title_req_import_check_input,req_import_check_note, 22 req_import_dont_empty,btn_import,btn_cancel,Result, 23 req_doc_id,title,req_import_option_header, 26 27{assign var="bn" value=$smarty.template|basename} 28{assign var="viewer_template" value=$smarty.template|replace:"$bn":"inc_req_import_viewer.tpl"} 28{assign var="viewer_template" value=$smarty.template|replace:"$bn":"inc_req_import_viewer.tpl"} 29{assign var="req_module" value='lib/requirements/'} 30{assign var="url_args" value="reqSpecView.php?req_spec_id="}pod.el https://github.com/gjuggler/bioperl-live.git | Emacs Lisp | 224 lines
5;; Emacs functions for simple Perl pod parsing 6;; parse result format based on pod2text 7;; 34 35(defvar pod-keywords 36 '( "pod" "head1" "head2" "head3" "head4" "over" "item" "back" "begin" "end" "for" "encoding" "cut" ) 38 39(defvar pod-format-codes 40 '( "I" "B" "C" "L" "E" "F" "S" "X" "Z" )doctools.js https://github.com/brente/django-cms.git | JavaScript | 231 lines
10 window.console = {}; 11 for (var i = 0; i < names.length; ++i) 12 window.console[names[i]] = function() {} 35 var parts = s.substr(s.indexOf('?') + 1).split('&'); 36 var result = {}; 37 for (var i = 0; i < parts.length; i++) { 37 for (var i = 0; i < parts.length; i++) { 38 var tmp = parts[i].split('=', 2); 39 var key = jQuery.urldecode(tmp[0]); 68 var val = node.nodeValue; 69 var pos = val.toLowerCase().indexOf(text); 70 if (pos >= 0 && !jQuery.className.has(node.parentNode, className)) { 214 getCurrentURL : function() { 215 var path = document.location.pathname; 216 var parts = path.split(/\//);SendSmsTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 213 lines
44 /** 45 * @var Zend_Service_DeveloperGarden_SendSms_Mock 46 */ 137 138 $result = $this->service->send($sms); 139 $this->assertType( 140 'Zend_Service_DeveloperGarden_Response_SendSms_SendSMSResponse', 141 $result 142 ); 143 144 $this->assertTrue($result->isValid()); 145 } 159 160 $result = $this->service->send($sms); 161 $this->assertType(DynamicModels.cs https://github.com/lefthandedgoat/Oak.git | C# | 241 lines
101 102 dict.ForEach(kvp => results = Sort(results, kvp.Key, kvp.Value)); 103 136 137 var results = new List<dynamic>(); 138 187 188 foreach(var v in values) (result as HashSet<dynamic>).Add(v); 189 192 193 result = new DynamicModels(result as HashSet<dynamic>); 194 209 { 210 var result = new object(); 211startup.c https://bitbucket.org/HongboZhang/ocaml.git | C | 196 lines
95 96/* Parse the CAMLRUNPARAM variable */ 97/* The option letter for each runtime option is the first letter of the 104 105static void scanmult (char *opt, uintnat *var) 106{ 111 switch (mult) { 112 case 'k': *var = (uintnat) val * 1024; break; 113 case 'M': *var = (uintnat) val * 1024 * 1024; break; 113 case 'M': *var = (uintnat) val * 1024 * 1024; break; 114 case 'G': *var = (uintnat) val * 1024 * 1024 * 1024; break; 115 default: *var = (uintnat) val; break; 188 res = caml_start_program(); 189 if (Is_exception_result(res)) 190 caml_fatal_uncaught_exception(Extract_exception(res));abstract.php https://bitbucket.org/organicdevelopment/nooku-framework.git | PHP | 257 lines
25 * 26 * @var object 27 */ 32 * 33 * @var array 34 */ 39 * 40 * @var array 41 */ 170 * 171 * @param string The variable name 172 * @param mixed The variable value. 182 * 183 * @param string The variable name. 184 * @return mixedno-unnecessary-type-arguments.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 152 lines
1"use strict"; 2var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 if (k2 === undefined) k2 = k; 3 if (k2 === undefined) k2 = k; 4 var desc = Object.getOwnPropertyDescriptor(m, k); 5 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 12})); 13var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 14 Object.defineProperty(o, "default", { enumerable: true, value: v }); 17}); 18var __importStar = (this && this.__importStar) || function (mod) { 19 if (mod && mod.__esModule) return mod; 19 if (mod && mod.__esModule) return mod; 20 var result = {}; 21 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);valnum.h https://bitbucket.org/cafu/cafu.git | C Header | 368 lines
40 41 With this style a value of zero in the associated variable is 42 translated to an empty string and an empty value of the control is 120 This method is called when the associated window is shown and it fills 121 it with the contents of the associated variable, if any, formatted 122 according to the validator style. 123 124 It does nothing if there is no associated variable. 125 */ 131 This method is called to check the correctness of user input and fill 132 the associated variable with the controls numeric value. It returns 133 false if it is not a number in the configured range or if the control 136 137 It does nothing if there is no associated variable. 138 */Grep.hs https://github.com/sannysanoff/leksah.git | Haskell | 326 lines
35import Control.Concurrent 36 (forkOS, newEmptyMVar, isEmptyMVar, takeMVar, putMVar, MVar, 37 forkIO) 76, waitingGrep :: MVar Bool 77, activeGrep :: MVar Bool 78} deriving Typeable 146 147 waitingGrep <- newEmptyMVar 148 activeGrep <- newEmptyMVar 243 putMVar (activeGrep grep) True 244 takeMVar (waitingGrep grep) 245 248 totalFound <- foldM (\a (dir, subDirs) -> do 249 nooneWaiting <- isEmptyMVar (waitingGrep grep) 250 found <- if nooneWaitingUser.php https://bitbucket.org/jonphipps/elefant-vocabhub.git | PHP | 486 lines
104 * 105 * @var string 106 */ 116 * 117 * @var User|bool 118 */ 123 * 124 * @var Acl|null 125 */ 175 public static function verifier ($user, $pass) { 176 // If it's been called before for this user, return cached result 177 static $called = array ();arm_std_q15.c https://gitlab.com/locsonpham/demeter_weatherstation | C | 197 lines
114 /* Compute Sum of squares of the input samples 115 * and then store the result in a temporary variable, sum. */ 116 in1 = *pSrc++; 124 /* Compute Mean of squares of the input samples 125 * and then store the result in a temporary variable, meanOfSquares. */ 126 t = (q15_t) ((1.0 / (blockSize - 1)) * 16384LL); 161 /* C = (A[0] + A[1] + A[2] + ... + A[blockSize-1]) */ 162 /* Compute sum of all input values and then store the result in a temporary variable, sum. */ 163 sum += in; 169 /* Compute Mean of squares of the input samples 170 * and then store the result in a temporary variable, meanOfSquares. */ 171 t = (q15_t) ((1.0 / (blockSize - 1)) * 16384LL); 178 /* Compute square of mean of the input samples 179 * and then store the result in a temporary variable, squareOfMean.*/ 180 t = (q15_t) ((1.0 / (blockSize * (blockSize - 1))) * 32768LL);arm_shift_q15.c https://gitlab.com/locsonpham/demeter_weatherstation | C | 243 lines
57 * The function uses saturating arithmetic. 58 * Results outside of the allowable Q15 range [0x8000 0x7FFF] will be saturated. 59 */ 73 74 q15_t in1, in2; /* Temporary variables */ 75 93 /* C = A << shiftBits */ 94 /* Shift the inputs and then store the results in the destination buffer. */ 95#ifndef ARM_MATH_BIG_ENDIAN 132 /* C = A << shiftBits */ 133 /* Shift and then store the results in the destination buffer. */ 134 *pDst++ = __SSAT((*pSrc++ << shiftBits), 16); 150 /* C = A >> shiftBits */ 151 /* Shift the inputs and then store the results in the destination buffer. */ 152#ifndef ARM_MATH_BIG_ENDIAN