100+ results results for 'var result repo:duckduckgo/zeroclickinfo-spice' (1464 ms)
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); 231primitives.js https://gitlab.com/VTTE/sitios-vtte | JavaScript | 335 lines
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; } 231class-wc-eval-math.php https://gitlab.com/webkod3r/tripolis | 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 */abituguru-datasheet.rst https://github.com/kvaneesh/linux.git | 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 specproperties.cpp https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | 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;ping_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]);msp_regops.h https://github.com/sonney2k/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 *OS_NS_stropts.cpp https://github.com/chucho/FaceCore.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)uaccess_with_memcpy.c https://github.com/mturquette/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 */group__q31__to__x.html https://bitbucket.org/trottagio/stm32f4-discovery-firmware-makefile.git | HTML | 231 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> 55Functions</h2></td></tr> 56<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__q31__to__x.html#gacf407b007a37da18e99dabd9023c56b4">arm_q31_to_float</a> (<a class="el" href="arm__math_8h.html#adc89a3547f5324b7b3b95adec3806bc0">q31_t</a> *pSrc, <a class="el" href="arm__math_8h.html#a4611b605e45ab401f02cab15c5e38715">float32_t</a> *pDst, uint32_t <a class="el" href="arm__variance__example__f32_8c.html#ab6558f40a619c2502fbc24c880fd4fb0">blockSize</a>)</td></tr> 57<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__q31__to__x.html#ga901dede4661365c9e7c630d3eb31c32c">arm_q31_to_q15</a> (<a class="el" href="arm__math_8h.html#adc89a3547f5324b7b3b95adec3806bc0">q31_t</a> *pSrc, <a class="el" href="arm__math_8h.html#ab5a8fb21a5b3b983d5f54f31614052ea">q15_t</a> *pDst, uint32_t <a class="el" href="arm__variance__example__f32_8c.html#ab6558f40a619c2502fbc24c880fd4fb0">blockSize</a>)</td></tr> 57<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__q31__to__x.html#ga901dede4661365c9e7c630d3eb31c32c">arm_q31_to_q15</a> (<a class="el" href="arm__math_8h.html#adc89a3547f5324b7b3b95adec3806bc0">q31_t</a> *pSrc, <a class="el" href="arm__math_8h.html#ab5a8fb21a5b3b983d5f54f31614052ea">q15_t</a> *pDst, uint32_t <a class="el" href="arm__variance__example__f32_8c.html#ab6558f40a619c2502fbc24c880fd4fb0">blockSize</a>)</td></tr> 58<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__q31__to__x.html#ga7f297d1a7d776805395095fdb24a8071">arm_q31_to_q7</a> (<a class="el" href="arm__math_8h.html#adc89a3547f5324b7b3b95adec3806bc0">q31_t</a> *pSrc, <a class="el" href="arm__math_8h.html#ae541b6f232c305361e9b416fc9eed263">q7_t</a> *pDst, uint32_t <a class="el" href="arm__variance__example__f32_8c.html#ab6558f40a619c2502fbc24c880fd4fb0">blockSize</a>)</td></tr> 59</table> 222<iframe src="" frameborder="0" 223 name="MSearchResults" id="MSearchResults"> 224</iframe>arm__rfft__q15_8c.html https://bitbucket.org/trottagio/stm32f4-discovery-firmware-makefile.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>arm__rms__f32_8c_source.html https://bitbucket.org/trottagio/stm32f4-discovery-firmware-makefile.git | HTML | 167 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> 104<a name="l00085"></a>00085 <span class="comment">/* C = A[0] * A[0] + A[1] * A[1] + A[2] * A[2] + ... + A[blockSize-1] * A[blockSize-1] */</span> 105<a name="l00086"></a>00086 <span class="comment">/* Compute sum of the squares and then store the result in a temporary variable, sum */</span> 106<a name="l00087"></a>00087 in = *pSrc++; 134<a name="l00115"></a>00115 <span class="comment">/* C = A[0] * A[0] + A[1] * A[1] + A[2] * A[2] + ... + A[blockSize-1] * A[blockSize-1] */</span> 135<a name="l00116"></a>00116 <span class="comment">/* Compute sum of the squares and then store the results in a temporary variable, sum */</span> 136<a name="l00117"></a>00117 in = *pSrc++; 158<iframe src="" frameborder="0" 159 name="MSearchResults" id="MSearchResults"> 160</iframe>customforms.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 428 lines
45 46 //NOTE will probably need to add a user_level variable for non-web based requests 47 $user_level = self::get_user_max_auth(); 110 * @param int $user_level the user's role level 111 * @return Result 112 */ 165 Checkboxes are submitted in the post as custom_field[field_id-boxnum] 166 This foreach loop consolidates them into one variable separated by commas. 167 If no checkboxes are selected then the custom_field[] for that variable is not sentorm.js https://github.com/radzikowski/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 {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; 125rpl.c https://github.com/energy6/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;Compass.cs https://bitbucket.org/leispire/phonegap.git | C# | 362 lines
144 { 145 DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "{code:" + Not_Supported + "}")); 146 } 219 220 PluginResult result = new PluginResult(PluginResult.Status.OK, GetHeadingFormatted(e.SensorReading)); 221 265 { 266 this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message)); 267 return; 306 { 307 this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION)); 308 return; 344 345 PluginResult result = new PluginResult(PluginResult.Status.OK, GetHeadingFormatted(e.SensorReading)); 346 result.KeepCallback = true;EstimateAffineTransformationExample.cxx https://github.com/paniwani/OTB.git | C++ | 377 lines
94 // Then we must decide what pixel type to use for the image. We choose to do 95 // all the computations in floating point precision and rescale the results 96 // between 0 and 255 in order to export PNG images. 114 // Software Guide : BeginCodeSnippet 115 typedef itk::VariableLengthVector<RealType> RealVectorType; 116 typedef itk::PointSet<RealVectorType, Dimension> PointSetType; 281// It is common, as the last step of a registration task, to use 282// the resulting transform to map the moving image into the fixed 283// image space. This is easily done with the 359 // 360 // Figure~\ref{fig:SIFTDME} shows the result of the resampled image using the 361 // estimated transformation based on SIFT pointsParseNode.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'}); 313clock.cpp https://gitlab.com/PedroFalcato/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.ping.py https://github.com/aherbert/openmicroscopy.git | Python | 249 lines
46# 47# Various diagnostics 48# 140 rc = process.poll() 141 output = processor.getResults(process) 142 stdout, stderr = self.assertIO(output) 198 199 output = p.getResults(process) 200 # Probably doesn't have IO since killed 209 try: 210 p.getResults(process) 211 self.assert_(process.poll()) 211 self.assert_(process.poll()) 212 output = p.getResults(process) 213 except omero.ServerError:ConverterUtils.java https://bitbucket.org/haris_peco/debrief.git | Java | 192 lines
59 */ 60 protected static List<VariantInfo> addVariant(List<VariantInfo> variants, 61 VariantInfo variant) { 96 // Loop over the variants list 97 for (VariantInfo helperVariant : helperVariants) { 98 if (targetVariant == null) { 98 if (targetVariant == null) { 99 result = addVariant(result, helperVariant); 100 } else if (helperVariant.includes(targetVariant)) { 102 // the conversion is possible to the target variant. 103 result = addVariant(result, new VariantInfo( 104 targetVariant.getMediaType())); 107 // the conversion is possible to the target variant. 108 result = addVariant(result, helperVariant); 109 }ima_queue.c https://github.com/kvaneesh/linux.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) {user-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(httpsocket.rst https://github.com/hiromi2424/docs.git | ReStructuredText | 382 lines
29 // array query 30 $results = $HttpSocket->get('http://www.google.com/search', array('q' => 'cakephp')); 31 34 The post method makes a simple HTTP POST request returning the 35 results. 36 46 // string data 47 $results = $HttpSocket->post( 48 'http://example.com/add', 58 The put method makes a simple HTTP PUT request returning the 59 results. 60 381 :title lang=en: HttpSocket 382 :keywords lang=en: array name,array data,query parameter,query string,php class,string query,test type,string data,google,query results,webservices,apis,parameters,cakephp,meth,search results 383LocalsArray.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' \ResponseReceiver.cs https://github.com/michaelaird/Agatha.git | C# | 172 lines
27 this.exceptionOccurredCallback = exceptionOccurredCallback; 28 this.keyToResultPositions = keyToResultPositions; 29 this.cacheManager = cacheManager; 63 { 64 var receivedResponses = args.Result; 65 AddCacheableResponsesToCache(receivedResponses, requestsToSendAsArray); 119 { 120 responseReceivedCallback(new ReceivedResponses(args.Result, keyToResultPositions)); 121 } 138 { 139 var responseWithException = GetFirstException(args.Result); 140 if (responseWithException != null) 154 { 155 var responseWithException = GetFirstException(args.Result); 156 if (responseWithException != null)controller.rb https://github.com/aryansliet/sorcery.git | Ruby | 197 lines
101 def login_from_other_sources 102 result = nil 103 Config.login_sources.find do |source| 103 Config.login_sources.find do |source| 104 result = send(source) 105 end 105 end 106 result || false 107 end 170 @defaults.each do |k,v| 171 instance_variable_set(k,v) 172 end 176 @defaults.each do |k,v| 177 instance_variable_set(k,v) if !instance_variable_defined?(k) 178 enduser.js https://bitbucket.org/rmoger/gdp-testsite1.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/daevid/MWFork.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 }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) {Date.php https://bitbucket.org/mbaily/tremain.git | PHP | 241 lines
41 /** 42 * Find all date variables in the template. The return value 43 * will be passed to process for the main parsing loop. 60 61 $date_vars = array('entry_date', 'gmt_date', 'gmt_entry_date', 'edit_date', 'gmt_edit_date', 'expiration_date', 'recent_comment_date', 'week_date'); 62 64 65 foreach ($date_vars as $val) 66 { 110 111 return call_user_func_array('compact', $date_vars); 112 } 120 * @param Object The channel parser object 121 * @param Mixed The results from the preparse method 122 *spm_mar_spectra.m https://bitbucket.org/matthewbrett/spm-versions.git | Objective C | 212 lines
15% .dtf [Nf x d x d] Kaminski's Directed Transfer Function matrix 16% .pve [Nf x d x d] Geweke's proportion of variance explained 17% .gew [Nf x d x d] Geweke's frequency domain Granger causality 33% In addition to the definition of PDC in the above paper, in this 34% implementation PDC is also scaled by the observation noise variance 35% (Baccala, personal communication). 129 130% plot results if requested 131%==========================================================================edit_permissions_algorithm_1_to_4_users.jsp https://github.com/viktorkovacs/liferay-portal-trunk.git | JavaServer Pages | 198 lines
73 74 <liferay-ui:search-container-results> 75 <%@ include file="/html/portlet/enterprise_admin/user_search_results.jspf" %> 75 <%@ include file="/html/portlet/enterprise_admin/user_search_results.jspf" %> 76 </liferay-ui:search-container-results> 77 81 keyProperty="userId" 82 modelVar="user2" 83 >UpgradeDocumentLibrary.java https://github.com/viktorkovacs/liferay-portal-trunk.git | Java | 259 lines
25import java.sql.PreparedStatement; 26import java.sql.ResultSet; 27 47 PreparedStatement ps = null; 48 ResultSet rs = null; 49 76 PreparedStatement ps = null; 77 ResultSet rs = null; 78 104 PreparedStatement ps = null; 105 ResultSet rs = null; 106 134 PreparedStatement ps = null; 135 ResultSet rs = null; 136callbacks_test.rb https://github.com/awscloudtest/rails.git | Ruby | 238 lines
24 controller = Callback1.new 25 result = controller.process(:index) 26 assert_equal "Hello world", controller.response_body 59 test "before_filter works" do 60 result = @controller.process(:index) 61 assert_equal "Hello world", @controller.response_body 65 @controller.process(:index) 66 assert_equal "Goodbye", @controller.instance_variable_get("@second") 67 end 70 @controller.process(:index) 71 assert_equal "FIRSTSECOND", @controller.instance_variable_get("@aroundz") 72 end 76 before_filter do |c| 77 c.instance_variable_set("@text", "Hello world") 78 endDigg2.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 */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 547misc.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) {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 thestdio.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)));m_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 itemsdir_52d049cddf4d6b3226b3119feaffeded.html https://bitbucket.org/LastElb/sw-survey-app.git | HTML | 123 lines
42<script type="text/javascript"> 43var searchBox = new SearchBox("searchBox", "search",false,'Search'); 44</script> 62 </span><span class="right"> 63 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> 64 </span> 90 91<!-- iframe showing the search results (closed by default) --> 92<div id="MSearchResultsWindow"> 93<iframe src="javascript:void(0)" frameborder="0" 94 name="MSearchResults" id="MSearchResults"> 95</iframe>RetreatChecker.java https://github.com/DetriusXii/jdip.git | Java | 350 lines
239 */ 240 private List<RCMoveResult> makeFMRList(final List<Result> turnStateResults) { 241 final List<RCMoveResult> mrList = new ArrayList<RCMoveResult>(64); 246 if (result instanceof OrderResult) { 247 final OrderResult or = (OrderResult) result; 248 final Orderable order = or.getOrder(); 307 308 if (or.getResultType() == OrderResult.ResultType.CONVOY_PATH_TAKEN) { 309 isByConvoy = true; 309 isByConvoy = true; 310 } else if (or.getResultType() == OrderResult.ResultType.SUCCESS) { 311 isSuccess = true; 311 isSuccess = true; 312 } else if (or.getResultType() == OrderResult.ResultType.VALIDATION_FAILURE) { 313 isValid = false;default_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'); 117BasicBlock.java https://github.com/rkh/jruby.git | Java | 191 lines
4import org.jruby.compiler.ir.operands.Label; 5import org.jruby.compiler.ir.operands.Variable; 6import org.jruby.compiler.ir.operands.Operand; 129 public void processClosureArgAndReturnInstrs(InlinerInfo ii, YieldInstr yi) { 130 Variable yieldResult = ii.getRenamedVariable(yi.result); 131 Operand[] yieldArgs = yi.getNonBlockOperands(); 136 // Replace the closure return receive with a simple copy 137 it.set(new CopyInstr(yieldResult, ((ClosureReturnInstr)i).getArg())); 138 } 143 // within the block is not identical to 'r'. Handle this! 144 if (!rsi.result.equals(ii.getCallReceiver())) it.set(new CopyInstr(rsi.result, ii.getCallReceiver())); 145 else it.set(NopInstr.NOP); 148 ReceiveClosureInstr rci = (ReceiveClosureInstr)i; 149 if (!rci.result.equals(ii.getCallClosure())) it.set(new CopyInstr(rci.result, ii.getCallClosure())); 150 else it.set(NopInstr.NOP);DbLoginEventsManager.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 */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 *CookieComponent.php https://bitbucket.org/luobailiang/cake.git | PHP | 495 lines
39 * 40 * @var string 41 */ 51 * 52 * @var mixed 53 */ 66 * 67 * @var string 68 */ 81 * 82 * @var string 83 */ 94 * 95 * @var boolean 96 */DomQuery.php https://bitbucket.org/lanoversolutions/afterschool.git | PHP | 405 lines
271 * 272 * @param Zend_Dom_Query_Result $result 273 * @param string $match Content to match 294 * 295 * @param Zend_Dom_Query_Result $result 296 * @param string $match 317 * 318 * @param Zend_Dom_Query_Result $result 319 * @param string $pattern 340 * 341 * @param Zend_Dom_Query_Result $result 342 * @param string $pattern 363 * 364 * @param Zend_Dom_Query_Result $result 365 * @param int $test Value against which to testServerStatusData.class.php https://github.com/drbowen/openemr.git | PHP | 380 lines
62 // Drizzle doesn't put query statistics into variables, add it 63 $sql = "SELECT concat('Com_', variable_name), variable_value 64 FROM data_dictionary.GLOBAL_STATEMENTS"; 71 */ 72 $server_variables = PMA_DBI_fetch_result('SHOW GLOBAL VARIABLES', 0, 1); 73 246 247 // Variable to contain all com_ variables (query statistics) 248 $used_queries = array(); 249 250 // Variable to map variable names to their respective section name 251 // (used for js category filtering) 299 $this->sections = $sections; 300 $this->variables = $server_variables; 301 $this->used_queries = $used_queries;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.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 ;doctools.js https://github.com/Doap/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(/\//);CompilerInvocation.h https://github.com/lygstate/safecode-mirror.git | C Header | 194 lines
62 63 /// Options controlling the language variant. 64 LangOptions LangOpts; 83 /// 84 /// \param Res [out] - The resulting invocation. 85 /// \param ArgBegin - The first element in the argument vector.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]