100+ results results for 'var result repo:duckduckgo/zeroclickinfo-spice' (2233 ms)
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).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">ping_strategy.js https://gitlab.com/atonb117/nodejs_leaflet | 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]);Parser.php https://gitlab.com/ducnv/CNW_DNTT | 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); 231typeahead-addresspicker.js https://gitlab.com/Mirros/cdnjs | JavaScript | 230 lines
7 this.AddressPickerResult = (function() { 8 function AddressPickerResult(placeResult, fromReverseGeocoding) { 9 this.placeResult = placeResult; 67 68 AddressPickerResult.prototype.isAccurate = function() { 69 return !this.placeResult.geometry.viewport; 156 var _ref; 157 _this.lastResult = new AddressPickerResult(response); 158 if (_this.marker) { 190 } else { 191 this.lastResult = new AddressPickerResult({ 192 geometry: { 209 if (results && results.length > 0) { 210 _this.lastResult = new AddressPickerResult(results[0], true); 211 return $(_this).trigger('addresspicker:selected', _this.lastResult);galleria.picasa.js https://gitlab.com/Mirros/cdnjs | JavaScript | 320 lines
16// The script path 17var PATH = Galleria.utils.getScriptPath(); 18 23 24 @example var picasa = new Galleria.Picasa(); 25 117 118 var self = this; 119 122 'access': 'public', 123 'max-results': this.options.max, 124 'thumbsize': this._getSizes().join(','), 134 135 var data = false; 136oop-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 361 lines
10 11 var L = Y.Lang, 12 A = Y.Array, 56 Y.augment = function(r, s, ov, wl, args) { 57 var sProto = s.prototype, 58 newProto = null, 160 161 var sp = s.prototype, rp=Y.Object(sp); 162 r.prototype=rp; 231 * from changes to the source object prototype. Also, cloned prototype 232 * items that are deleted from the clone will result in the value 233 * of the source prototype being exposed. If operating on a non-safe 253 254 var o2, marked = cloned || {}, stamp, 255 each = Y.each || Y.Object.each;drop.js https://gitlab.com/Mirros/cdnjs | JavaScript | 387 lines
1(function() { 2 var Evented, MIRROR_ATTACH, addClass, allDrops, clickEvents, createContext, end, extend, hasClass, name, removeClass, removeFromArray, sortAttach, tempEl, touchDevice, transitionEndEvent, transitionEndEvents, _ref, 3 __hasProp = {}.hasOwnProperty, 54 removeFromArray = function(arr, item) { 55 var index, _results; 56 _results = []; 57 while ((index = arr.indexOf(item)) !== -1) { 58 _results.push(arr.splice(index, 1)); 59 } 71 var child = new ctor, result = func.apply(child, args); 72 return Object(result) === result ? result : child; 73 })(DropInstance, arguments, function(){}); 145 DropInstance.prototype.setupElements = function() { 146 var generateAndSetContent, 147 _this = this;humanize.js https://gitlab.com/Mirros/cdnjs | JavaScript | 436 lines
246 Humanize.truncatewords = Humanize.truncateWords = function(string, length) { 247 var array, i, result; 248 array = string.split(" "); 262 Humanize.truncatenumber = Humanize.boundedNumber = function(num, bound, ending) { 263 var result; 264 if (bound == null) { 269 } 270 result = null; 271 if (isFinite(num) && isFinite(bound)) { 275 } 276 return (result || num).toString(); 277 }; 299 Humanize.dictionary = function(object, joiner, separator) { 300 var defs, key, result, val; 301 if (joiner == null) {client.go https://gitlab.com/veterinabb/webedit | Go | 219 lines
90 } 91 var err error 92 c.serverVersion, err = exchangeVersions(c.sshConn.conn, c.clientVersion) 117// exchange. 118func verifyHostKeySignature(hostKey PublicKey, result *kexResult) error { 119 sig, rest, ok := parseSignatureBody(result.Signature) 123 124 return hostKey.Verify(result.H, sig) 125}Query.js https://gitlab.com/cruxrebels/laundromat-bot | JavaScript | 181 lines
48 * * E:checked E is an element that is has a checked attribute that is true (e.g. a radio or checkbox) 49 * * E:first the first E in the resultset 50 * * E:last the last E in the resultset 50 * * E:last the last E in the resultset 51 * * E:nth(n) the nth E in the resultset (1 based) 52 * * E:odd shortcut for :nth-child(odd) 84 select: function(q, root) { 85 var results = [], 86 nodes, i, j, qlen, nlen; 101 nodes = root.getAttributeNode(q[i].substring(1)); 102 results.push(nodes); 103 } 107 for (j = 0,nlen = nodes.length; j < nlen; j++) { 108 results.push(nodes[j]); 109 }view.md https://gitlab.com/timfla/canjs | Markdown | 196 lines
15 16 var frag = can.view( 17 "/contact.ejs", 29@param {Object.<String, function>+} helpers An object of named local helper functions. 30@return {documentFragment} The rendered result of the template converted to 31html elements within a [https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment documentFragment]. 37 38 var renderer = can.view("/contact.ejs"); 39 39 40 var frag = renderer( 41 {first: "Justin", last: "Meyer"}, 70 71 2. Renders it with {message: 'hello world'}, resulting in a [https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment documentFragment] that contains: 72 <pre><code><h2>Justin</h2></pre></code>punycode.js https://gitlab.com/Mirros/cdnjs | JavaScript | 530 lines
54 55 /** Temporary variable */ 56 key; 79 var length = array.length; 80 var result = []; 81 while (length--) { 98 var parts = string.split('@'); 99 var result = ''; 100 if (parts.length > 1) { 102 // the local part (i.e. everything up to `@`) intact. 103 result = parts[0] + '@'; 104 string = parts[1]; 108 var labels = string.split('.'); 109 var encoded = map(labels, fn).join('.'); 110 return result + encoded;ngDialog.js https://gitlab.com/Mirros/cdnjs | JavaScript | 449 lines
26 var animationEndSupport = isDef(style.animation) || isDef(style.WebkitAnimation) || isDef(style.MozAnimation) || isDef(style.MsAnimation) || isDef(style.OAnimation); 27 var animationEndEvent = 'animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend'; 28 var forceBodyReload = false; 142 143 var preCloseCallbackResult = preCloseCallback.call($dialog, value); 144 150 } else { 151 preCloseCallbackResult.then(function () { 152 privateMethods.performCloseDialog($dialog, value); 368 defer.resolve(value); 369 var $dialog = $el(document.getElementById(openResult.id)); 370 privateMethods.performCloseDialog($dialog, value); 372 373 var openResult = publicMethods.open(options); 374 openResult.closePromise.then(function (data) {wiring.c https://gitlab.com/vapkse/arduino | C | 297 lines
49{ 50 // copy these to local variables so they can be stored in registers 51 // (volatile variables must be read from memory on every access) 178 // (using phase-correct PWM would mean that timer 0 overflowed half as often 179 // resulting in different millis() behavior on the ATmega8 and ATmega168) 180#if defined(TCCR0A) && defined(WGM01)script.js https://gitlab.com/alexprowars/bitrix | JavaScript | 360 lines
134 135 var onReady = BX.delegate(function(result){ 136 this.sendRequest({ 138 bigData: 'Y', 139 items: result && result.items || [], 140 rid: result && result.id, 181 onsuccess: BX.delegate(function(result){ 182 if (!result || !result.JS) 183 return; 209 210 processShowMoreAction: function(result) 211 { 218 this.processItems(result.items); 219 this.processPagination(result.pagination); 220 this.processEpilogue(result.epilogue);signet.js https://gitlab.com/Mirros/cdnjs | JavaScript | 226 lines
12 return (function() { 13 var _i, _len, _ref2, _results; 14 _ref2 = content.split(','); 17 element = _ref2[_i]; 18 _results.push(element.trim()); 19 } 58 operaSupport = function() { 59 var m; 60 m = navigator.userAgent.match(/OPR\/(\d+)\./); 69 deferConsole = function(fn) { 70 var callable, i, messages, old, type, types, _fn, _i, _len; 71 types = ['log', 'debug', 'warn', 'error']; 90 return setTimeout(function() { 91 var block, message, _j, _len1, _results; 92 for (_j = 0, _len1 = types.length; _j < _len1; _j++) {jsforce-api-chatter.js https://gitlab.com/Mirros/cdnjs | JavaScript | 307 lines
1(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g=(g.jsforce||(g.jsforce = {}));g=(g.modules||(g.modules = {}));g=(g.api||(g.api = {}));g.Chatter = f()}})(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/** 91 * @prop {Boolean} hasError - Flag if the batch has one or more errors 92 * @prop {Array.<Object>} results - Batch request results in array 93 * @prop {Number} results.statusCode - HTTP response status code 93 * @prop {Number} results.statusCode - HTTP response status code 94 * @prop {Chatter~RequestResult} results.result - Parsed HTTP response body 95 */ 120 return this.request(params).then(function(res) { 121 _.forEach(res.results, function(result, i) { 122 var deferred = batchDeferreds[i]; 123 if (result.statusCode >= 400) { 124 deferred.reject(result.result); 125 } else { 125 } else { 126 deferred.resolve(result.result); 127 }bookmark.php https://gitlab.com/endomorphosis/falkenstein | PHP | 408 lines
50 } elseif ( $output == ARRAY_A ) { 51 return get_object_vars($_bookmark); 52 } elseif ( $output == ARRAY_N ) { 52 } elseif ( $output == ARRAY_N ) { 53 return array_values(get_object_vars($_bookmark)); 54 } else { 91 * that fails, then the query will be built from the arguments and executed. The 92 * results will be stored to the cache. 93 * 145 * link category is passed but does not exist. The third evaluation returns 146 * the full cached results. 147 * 278 279 $results = $wpdb->get_results($query); 280PltCtrlPoint.h https://gitlab.com/jothow/kodi | C Header | 254 lines
75 virtual NPT_Result OnActionResponse(NPT_Result res, PLT_ActionReference& action, void* userdata) = 0; 76 virtual NPT_Result OnEventNotify(PLT_Service* service, NPT_List<PLT_StateVariable*>* vars) = 0; 77}; 145 // PLT_SsdpSearchResponseListener methods 146 virtual NPT_Result ProcessSsdpSearchResponse(NPT_Result res, 147 const NPT_HttpRequestContext& context, 155 // State Variable Handling 156 virtual NPT_Result DecomposeLastChangeVar(NPT_List<PLT_StateVariable*>& vars); 157 184 void* userdata); 185 virtual NPT_Result ProcessSubscribeResponse(NPT_Result res, 186 const NPT_HttpRequest& request, 206 PLT_EventNotification* notification, 207 NPT_List<PLT_StateVariable*> &vars); 208class.php https://gitlab.com/alexprowars/bitrix | PHP | 446 lines
133 134 $arResult =& $this->arResult; 135 182 { 183 $arResult["LOG_ENTRY"]["ATTACHMENTS"] = ComponentHelper::getAttachmentsData($arResult["LOG_ENTRY"]["EVENT_FORMATTED"]["UF"]["UF_SONET_LOG_DOC"]["VALUE"], $arResult["SITE"]["ID"]); 184 } 372 { 373 $arResult =& $this->arResult; 374 $arResult["LOG_ENTRY_URL"] = $this->arParams["URL"]; 380 { 381 $backUrl = ComponentHelper::getReplyToUrl($arResult["LOG_ENTRY_URL"], intval($this->arParams["RECIPIENT_ID"]), 'LOG_ENTRY', $arResult["LOG_ENTRY"]["EVENT"]["ID"], $arResult["SITE"]["ID"]); 382 if ($backUrl) 392 393 $arResult =& $this->arResult; 394tabview.js https://gitlab.com/Mirros/cdnjs | JavaScript | 470 lines
53 if (_classNames[name]) { 54 var result = this.all(query); 55 56 if (index !== undefined) { 57 result = result.item(index); 58 } 59 60 if (result) { 61 result.addClass(_classNames[name]); 69 _select: function(index) { 70 var node = this._node, 71 oldItem = node.one(_queries.selectedTab), 218 renderUI: function() { 219 var contentBox = this.get('contentBox'); 220 this._renderListBox(contentBox);humanize.js https://gitlab.com/Mirros/cdnjs | JavaScript | 476 lines
208 this.Humanize.ordinal = function(value) { 209 var end, leastSignificant, number, specialCase; 210 number = parseInt(value, 10); 235 this.Humanize.times = function(value, overrides) { 236 var number, result; 237 if (overrides == null) { 287 this.Humanize.truncatewords = function(string, length) { 288 var array, i, result; 289 array = string.split(" "); 303 this.Humanize.truncatenumber = function(num, bound, ending) { 304 var result; 305 if (bound == null) { 340 this.Humanize.dictionary = function(object, joiner, separator) { 341 var defs, k, result, v; 342 if (joiner == null) {grant_table.h https://gitlab.com/Sean.W/pru-linux-drivers | C Header | 380 lines
54 * 2. Observe that !(flags & (GTF_reading|GTF_writing)). 55 * 3. Check result of SMP-safe CMPXCHG(&ent->flags, flags, 0). 56 * NB. No need for WMB as reuse of entry is control-dependent on success of 66 * 2. Observe that !(flags & GTF_transfer_committed). [*] 67 * 3. Check result of SMP-safe CMPXCHG(&ent->flags, flags, 0). 68 * NB. No need for WMB as reuse of entry is control-dependent on success of 92struct grant_entry { 93 /* GTF_xxx: various type and flag information. [XEN,GST] */ 94 uint16_t flags;index.js https://gitlab.com/JuanCalcagnoDev/CertFront | JavaScript | 593 lines
5 */ 6var regexps = require('./lib/regexps'); 7 11// OperatingSystem parsers: 12var osparsers = regexps.os 13 , osparserslength = osparsers.length; 15// UserAgent parsers: 16var agentparsers = regexps.browser 17 , agentparserslength = agentparsers.length; 19// Device parsers: 20var deviceparsers = regexps.device 21 , deviceparserslength = deviceparsers.length; 49 get: function lazyparse() { 50 var userAgent = this.source 51 , length = osparserslengthrx.async.js https://gitlab.com/Mirros/cdnjs | JavaScript | 294 lines
74 scheduler.schedule(function () { 75 var result; 76 try { 105 function handler(e) { 106 var results = e; 107 153 154 var results = slice.call(arguments, 1); 155 227 function handler (e) { 228 var results = e; 229 252 function innerHandler (e) { 253 var result = e; 254 if (selector) {plural.js https://gitlab.com/Mirros/cdnjs | JavaScript | 359 lines
50 51var _toConsumableArray = function (arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }; 52 54 55var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); 56 132 })(function () { 133 var vars = []; 134 if (this.i) vars.push('i = s[0]'); 145 }if (!vars.length) return ''; 146 return 'var ' + ['s = String(n).split(\'.\')'].concat(vars).join(', '); 147 }) 216 }, 217 fold = { vars: function vars(str) { 218 return (' ' + str + ';').replace(/(.{1,78})(,|$) ?/g, '$1$2\n ');ContentDeliveryNetworkService.cs https://gitlab.com/rekby-archive/onlyoffice-CommunityServer | C# | 304 lines
101 { 102 ServiceCollection result = await url 103 .Authenticate(_authenticationProvider) 106 107 ((IPageBuilder<ServiceCollection>)result).SetNextPageHandler(ListServicesAsync); 108 108 109 return result; 110 } 134 135 var response = await endpoint 136 .AppendPathSegments("services") 140 141 response.Headers.TryGetFirst("Location", out var location); 142 return new Uri(location).Segments.Last();StockItemTest.php https://gitlab.com/daigiangaitu91/magento | 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(rx.joinpatterns.js https://gitlab.com/Mirros/cdnjs | JavaScript | 415 lines
57 /** @private */ 58 var Map = (function () { 59 167 Plan.prototype.activate = function (externalSubscriptions, observer, deactivate) { 168 var self = this; 169 var joinObservers = []; 173 var activePlan = new ActivePlan(joinObservers, function () { 174 var result; 175 try { 194 function planCreateObserver(externalSubscriptions, observable, onError) { 195 var entry = externalSubscriptions.get(observable); 196 if (!entry) { 196 if (!entry) { 197 var observer = new JoinObserver(observable, onError); 198 externalSubscriptions.set(observable, observer);rx.virtualtime.js https://gitlab.com/Mirros/cdnjs | JavaScript | 394 lines
46 IndexedItem.prototype.compareTo = function (other) { 47 var c = this.value.compareTo(other.value); 48 c === 0 && (c = this.id - other.id); 103 priorityProto.dequeue = function () { 104 var result = this.peek(); 105 this.removeAt(0); 126 /** Provides a set of extension methods for virtual time scheduling. */ 127 var VirtualTimeScheduler = Rx.VirtualTimeScheduler = (function (__super__) { 128 166 167 var VirtualTimeSchedulerPrototype = VirtualTimeScheduler.prototype; 168 369 * @param {Number} relative Relative virtual time value to add. 370 * @return {Number} Resulting absolute virtual time sum value. 371 */rx.backpressure.js https://gitlab.com/Mirros/cdnjs | JavaScript | 424 lines
3;(function (factory) { 4 var objectTypes = { 5 'boolean': false, 12 13 var root = (objectTypes[typeof window] && window) || this, 14 freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports, 35 // References 36 var Observable = Rx.Observable, 37 observableProto = Observable.prototype, 48 49 var objectDisposed = 'Object has been disposed'; 50 function checkDisposed() { if (this.isDisposed) { throw new Error(objectDisposed); } } 51 52 var PausableObservable = (function (_super) { 53dataschema-json.js https://gitlab.com/Mirros/cdnjs | JavaScript | 287 lines
139 _parseResults: function(schema, json_in, data_out) { 140 var results = [], 141 path, 153 if(LANG.isArray(schema.resultFields) && LANG.isArray(results)) { 154 data_out = SchemaJSON._getFieldValues(schema.resultFields, results, data_out); 155 } 185 _getFieldValues: function(fields, array_in, data_out) { 186 var results = [], 187 len = fields.length, 227 (LANG.isUndefined(result[simplePaths[j].path]) ? 228 result[j] : result[simplePaths[j].path]), simplePaths[j]); 229 } 248 } 249 data_out.results = results; 250 return data_out;AdapterTest.php https://gitlab.com/daigiangaitu91/magento | 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 */catalogsectiontabhandler.php https://gitlab.com/alexprowars/bitrix | PHP | 393 lines
19{ 20 protected static $vkCategoriesVariations = array(); 21 protected static $vkRequiredVariations = array(); 142 * @param $arArgs 143 * @param $bVarsFromForm 144 * @return string 145 */ 146 public function showTabSection($divName, $arArgs, $bVarsFromForm) 147 { 151 { 152 $resultHtml = '<tr><td colspan="2">'; 153 $resultHtml .= BeginNote(); 153 $resultHtml .= BeginNote(); 154 $resultHtml .= '<p>' . Loc::getMessage("SALE_VK_ONLY_RUSSIAN") . '</p>'; 155 $resultHtml .= '<p>' . Loc::getMessage("SALE_VK_ONLY_RUSSIAN_2") . '</p>';node.js https://gitlab.com/jeaster12/fabby | JavaScript | 390 lines
29 30 for (var i in obj) { 31 if (!obj.hasOwnProperty(i)) continue; 31 if (!obj.hasOwnProperty(i)) continue; 32 var value = obj[i]; 33 var type = typeof value; 88 _class.prototype.toString = function toString() { 89 var result = ''; 90 var builder = function builder(str) { 109 110 var cloned = this.clone(overrides); 111 this.parent.insertBefore(this, cloned); 347 var result = this; 348 while (result.parent) result = result.parent; 349 return result;tlb.h https://gitlab.com/Sean.W/pru-linux-drivers | C Header | 257 lines
110 /* 111 * Tearing down the entire address space. This happens both as a result 112 * of exit() and execve(). The latter case necessitates the call to 155{ 156 struct mmu_gather *tlb = &get_cpu_var(mmu_gathers); 157 193 194 put_cpu_var(mmu_gathers); 195}statistics.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 304 lines
20{ 21 /** @var JPagination The JPagination object, used in the GUI */ 22 private $_pagination; 37 38 // Get the pagination request variables 39 $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit')); 41 42 // Set the page pagination variables 43 $this->setState('limit',$limit); 151 $db->setQuery($query); 152 $id = $db->loadResult(); 153component.php https://gitlab.com/alexprowars/bitrix | PHP | 197 lines
9/** @var array $arParams */ 10/** @var array $arResult */ 11/** @global CUser $USER */ 37if ($arParams["PATH_TO_GROUP"] == '') 38 $arParams["PATH_TO_GROUP"] = htmlspecialcharsbx($APPLICATION->GetCurPage()."?".$arParams["PAGE_VAR"]."=group&".$arParams["GROUP_VAR"]."=#group_id#"); 39$arParams["PATH_TO_GROUP_MODS"] = trim($arParams["PATH_TO_GROUP_MODS"]); 87 88 $arResult["Urls"]["Group"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_GROUP"], array("group_id" => $arResult["Group"]["ID"])); 89 $arResult["Urls"]["GroupMods"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_GROUP_MODS"], array("group_id" => $arResult["Group"]["ID"])); 89 $arResult["Urls"]["GroupMods"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_GROUP_MODS"], array("group_id" => $arResult["Group"]["ID"])); 90 $arResult["Urls"]["GroupUsers"] = CComponentEngine::MakePathFromTemplate($arParams["PATH_TO_GROUP_USERS"], array("group_id" => $arResult["Group"]["ID"])); 91 96 { 97 $APPLICATION->AddChainItem($arResult["Group"]["NAME"], $arResult["Urls"]["Group"]); 98 $APPLICATION->AddChainItem(GetMessage("SONET_C7_TITLE"));NodeList-data.js.uncompressed.js https://gitlab.com/Mirros/cdnjs | JavaScript | 192 lines
14 15 var NodeList = query.NodeList; 16 16 17 var dataCache = {}, x = 0, dataattr = "data-dojo-dataid", 18 dopid = function(node){ 20 // Return a uniqueish ID for the passed node reference 21 var pid = attr.get(node, dataattr); 22 if(!pid){ 30 31 var dodata = dojo._nodeData = function(node, key, value){ 32 // summary: 46 // 47 var pid = dopid(node), r; 48 if(!dataCache[pid]){ dataCache[pid] = {}; }README.md https://gitlab.com/btkm/correct_fb | Markdown | 391 lines
88 89The result of the `prophesize()` method call is a new object of class `ObjectProphecy`. Yes, 90that's your specific object prophecy, which describes how your object would behave 112 113The `$dummy` variable now holds a special dummy object. Dummy objects are objects that extend 114and/or implement preset classes/interfaces by overriding all their public methods. The key 120You need to understand one thing - a dummy is not a prophecy. Your object prophecy is still 121assigned to `$prophecy` variable and in order to manipulate with your expectations, you 122should work with it. `$dummy` is a dummy - a simple php object that tries to fulfil yourjbone.js https://gitlab.com/Mirros/cdnjs | JavaScript | 329 lines
165 jBone.fn.off = function(event, fn) { 166 var events, callback, namespace = event.split(".")[1], getCallback = function(e) { 167 if (fn && e.originfn === fn) { 206 jBone.fn.has = function() { 207 var args = arguments; 208 return this.some(function(el) { 255 jBone.fn.find = function(selector) { 256 var results = []; 257 this.forEach(function(el) { 270 jBone.fn.html = function() { 271 var value = arguments[0], result; 272 if (value !== undefined) { 282 }); 283 return result.length ? result.join("") : null; 284 }webdav_settings.php https://gitlab.com/alexprowars/bitrix | PHP | 427 lines
40 41 $result = CIBlockWebdavSocnet::GetSectionID($IBLOCK_ID, $object, $object_id); 42 if (intval($result) > 0) 43 { 44 return $result; 45 } 45 } 46 //elseif ($arParams["PERMISSION"] < "W" || ($object == "user" && $arResult["VARIABLES"]["user_id"] != $USER->GetID())) 47 //{ 88 { 89 /* $res = CSocNetGroup::GetByID($arResult["VARIABLES"]["group_id"]); 90 if (!$res) 393 { 394 var expand = (this.style.height == '3em'); 395 this.style.height = (expand ? 'auto' : '3em');README.md https://gitlab.com/18runt88/bazel | Markdown | 457 lines
16As traditional Dockerfile-based `docker build`s effectively execute a series 17of commands inside of Docker containers, saving the intermediate results as 18layers; this approach is unsuitable for use in Bazel for a variety of reasons. 141[external repositories](http://bazel.io/docs/external.html). For instance, 142you could create various layer with `external` labels: 143 385 <p><a href="https://docs.docker.com/reference/builder/#env">Dictionary 386 from environment variable names to their values when running the 387 docker image.</a></p>template.php https://gitlab.com/alexprowars/bitrix | PHP | 279 lines
12 * @var array $arParams 13 * @var array $arResult 14 * @var CBitrixComponentTemplate $this 14 * @var CBitrixComponentTemplate $this 15 * @var string $templateFolder 16 * @var CBitrixComponent $component 20 21if (isset($arResult['ITEM'])) 22{ 26 27 $item = $arResult['ITEM']; 28 $areaId = $arResult['AREA_ID']; 146 'BIG_DATA' => $item['BIG_DATA'], 147 'VIEW_MODE' => $arResult['TYPE'], 148 'TEMPLATE_THEME' => $arParams['TEMPLATE_THEME'],moment-range.js https://gitlab.com/Mirros/cdnjs | JavaScript | 321 lines
11}(this, function(moment) { 12var DateRange, INTERVALS; 13 71 DateRange.prototype._by_string = function(interval, hollaback) { 72 var current, _results; 73 current = moment(this.start); 73 current = moment(this.start); 74 _results = []; 75 while (this.contains(current)) { 76 hollaback.call(this, current.clone()); 77 _results.push(current.add(1, interval)); 78 } 88 DateRange.prototype._by_range = function(range_interval, hollaback) { 89 var i, l, _i, _results; 90 l = Math.floor(this / range_interval);jquery.scrolldepth.js https://gitlab.com/Mirros/cdnjs | JavaScript | 260 lines
10 11 var defaults = { 12 minHeight: 0, 19 20 var $window = $(window), 21 cache = [], 32 33 var startTime = +new Date; 34 194 function throttle(func, wait) { 195 var context, args, result; 196 var timeout = null; 197 var previous = 0; 198 var later = function() { 199 previous = new Date;senderinvitation.php https://gitlab.com/alexprowars/bitrix | PHP | 333 lines
34 /** 35 * @var int 36 */ 38 /** 39 * @var array 40 */ 42 /** 43 * @var Context 44 */ 46 /** 47 * @var string 48 */ 87 88 return $status === Event::SEND_RESULT_SUCCESS; 89 }when.js https://gitlab.com/Mirros/cdnjs | JavaScript | 273 lines
12 13 var timed = require('./lib/decorators/timed'); 14 var array = require('./lib/decorators/array'); 14 var array = require('./lib/decorators/array'); 15 var flow = require('./lib/decorators/flow'); 16 var fold = require('./lib/decorators/fold'); 16 var fold = require('./lib/decorators/fold'); 17 var inspect = require('./lib/decorators/inspect'); 18 var generate = require('./lib/decorators/iterate'); 18 var generate = require('./lib/decorators/iterate'); 19 var progress = require('./lib/decorators/progress'); 20 var withThis = require('./lib/decorators/with'); 20 var withThis = require('./lib/decorators/with'); 21 var unhandledRejection = require('./lib/decorators/unhandledRejection'); 22 var TimeoutError = require('./lib/TimeoutError');trunk8.js https://gitlab.com/Mirros/cdnjs | JavaScript | 384 lines
52 } 53 var allResults = [], 54 reg = /<([a-z]+)([^<]*)(?:>(.*?(?!<\1>)*)<\/\1>|\s+\/>)(['.?!,]*)|((?:[^<>\s])+['.?!,]*\w?|<br\s?\/?>)/ig, 71 } 72 for (ind = 0; ind < allResults.length; ind++) { 73 if (typeof allResults[ind] !== 'string' && 74 allResults[ind].content) { 75 allResults[ind].content = getHtmlArr(allResults[ind].content); 76 } 124 }, 125 htmlResults = biteHelper(htmlObject); 126 127 // Add fill if doesn't exist. This will place it outside the HTML elements. 128 if (htmlResults.slice(htmlResults.length - fill.length) === fill) { 129 htmlResults += fill;ofApp.cpp https://gitlab.com/cocoroac/walkingartists | C++ | 393 lines
9 // Please run the example and use the keyboard to see the visual 10 // results of each of the alignment and scaling operations. 11 // 16 // 17 // The resulting rectangle (workingSubjectRect in this case), 18 // displayed in the center, is the result of the operations. 19 // 20 // An image is used to further emphasize the effect of various 21 // aspect-ratio preservation modes. 55 56 // read the results of our keyboard input to determine 57 // the correct scaling and / or alignment operation.index.js https://gitlab.com/remynaps/Vexillarius | JavaScript | 460 lines
4 5var utf8 = require('utf8'); 6var after = require('after'); 6var after = require('after'); 7var keys = require('./keys'); 8 17 18var packets = exports.packets = { 19 open: 0 // non-ws 27 28var packetslist = keys(packets); 29 229function map(ary, each, done) { 230 var result = new Array(ary.length); 231 var next = after(ary.length, done);postal.js https://gitlab.com/Mirros/cdnjs | JavaScript | 424 lines
42 }; 43 var DistinctPredicate = function () { 44 var previous = []; 213 compare : function ( binding, topic ) { 214 var pattern, rgx, prevSegment, result = (this.cache[topic] && this.cache[topic][binding]); 215 if(typeof result !== "undefined") { 215 if(typeof result !== "undefined") { 216 return result; 217 } 375 linkChannels : function ( sources, destinations ) { 376 var result = []; 377 sources = !_.isArray( sources ) ? [sources] : sources; 379 _.each( sources, function ( source ) { 380 var sourceTopic = source.topic || "#"; 381 _.each( destinations, function ( destination ) {index.js https://gitlab.com/Mirros/cdnjs | JavaScript | 278 lines
95 sProp, vContent, nLength = 0, sCollectedTxt = "", 96 vResult = bHighVerb ? {} : /* put here the default value for empty nodes: */ (sEmptyTrue ? true : ''); 97 98 if (bChildren) { 99 for (var oNode, nItem = 0; nItem < oParentNode.childNodes.length; nItem++) { 100 oNode = oParentNode.childNodes.item(nItem); 115 if (vResult.hasOwnProperty(sProp)) { 116 if (vResult[sProp].constructor !== Array) { vResult[sProp] = [vResult[sProp]]; } 117 vResult[sProp].push(vContent); 128 129 for (var oAttrib, oAttribName, nAttrib = 0; nAttrib < nAttrLen; nLength++, nAttrib++) { 130 oAttrib = oParentNode.attributes.item(nAttrib); 203 var documentImplementation = xmlDom.document && xmlDom.document.implementation || new xmlDom.DOMImplementation(); 204 var oNewDoc = documentImplementation.createDocument(sNamespaceURI || null, sQualifiedName || "", oDocumentType || null); 205 loadObjTree(oNewDoc, oNewDoc.documentElement || oNewDoc, oObjTree);simple-auth-devise.js https://gitlab.com/Mirros/cdnjs | JavaScript | 322 lines
2 3var define, requireModule; 4 5(function() { 6 var registry = {}, seen = {}; 7 19 20 var mod = registry[name], 21 deps = mod.deps, 25 26 for (var i=0, l=deps.length; i<l; i++) { 27 if (deps[i] === 'exports') { 33 34 var value = callback.apply(this, reified); 35 return seen[name] = exports || value;map-generator.js https://gitlab.com/dimitrisdervas/systima | JavaScript | 288 lines
14 15var _path = require('path'); 16 16 17var _path2 = _interopRequireDefault(_path); 18 108 already[from] = true; 109 var relative = _this2.relative(from); 110 _this2.map.setSourceContent(relative, node.source.input.css); 117 for (var _iterator = this.previous(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { 118 var _ref; 119 275 } else { 276 var result = ''; 277 this.stringify(this.root, function (i) {extender_test.go https://gitlab.com/shiphitchcock3/kubernetes | Go | 309 lines
67func (e *Extender) serveHTTP(t *testing.T, w http.ResponseWriter, req *http.Request) { 68 var args schedulerapi.ExtenderArgs 69 80 if strings.Contains(req.URL.Path, filter) { 81 resp := &schedulerapi.ExtenderFilterResult{} 82 nodes, err := e.Filter(&args.Pod, &args.Nodes) 143 for host, score := range combinedScores { 144 result = append(result, schedulerapi.HostPriority{Host: host, Score: score}) 145 } 169 } 170 result = append(result, schedulerapi.HostPriority{node.Name, score}) 171 } 181 } 182 result = append(result, schedulerapi.HostPriority{node.Name, score}) 183 }concepts.hpp https://gitlab.com/cocoroac/walkingartists | C++ Header | 386 lines
158 Iterator i2(++i); 159 boost::ignore_unused_variable_warning(i2); 160 167 BOOST_DEDUCED_TYPENAME boost::detail::iterator_traits<Iterator>::reference r1(*i); 168 boost::ignore_unused_variable_warning(r1); 169 170 BOOST_DEDUCED_TYPENAME boost::detail::iterator_traits<Iterator>::reference r2(*(++i)); 171 boost::ignore_unused_variable_warning(r2); 172 } 198 // postfix increment. Since with forward and better iterators there is no need 199 // for a proxy, we can sensibly require that the dereference result 200 // is convertible to reference. 201 Iterator i2(i++); 202 boost::ignore_unused_variable_warning(i2); 203 BOOST_DEDUCED_TYPENAME boost::detail::iterator_traits<Iterator>::reference r(*(i++));aggregation_cursor.js https://gitlab.com/angtrim/gaia-back-due | JavaScript | 432 lines
331 * @function AggregationCursor.prototype.next 332 * @param {AggregationCursor~resultCallback} [callback] The result callback. 333 * @throws {MongoError} 358 * @param {MongoError} error An error instance representing the error during the execution. 359 * @param {(object|null)} result The result object if the command was executed successfully. 360 */ 369 * @method AggregationCursor.prototype.each 370 * @param {AggregationCursor~resultCallback} callback The result callback. 371 * @throws {MongoError} 377 * @method AggregationCursor.prototype.close 378 * @param {AggregationCursor~resultCallback} [callback] The result callback. 379 * @return {Promise} returns Promise if no callback passed 390 * @method AggregationCursor.prototype.explain 391 * @param {AggregationCursor~resultCallback} [callback] The result callback. 392 * @return {Promise} returns Promise if no callback passedcomponent.php https://gitlab.com/alexprowars/bitrix | PHP | 269 lines
5 * @param array $arParams 6 * @param array $arResult 7 * @param string $componentName 63$parser->MaxStringLen = $arParams["WORD_LENGTH"]; 64$arResult["STATISTIC"] = array( 65 "FORUMS" => 0, 70 "USERS_ON_FORUM_ACTIVE" => 0); 71$arResult["USERS_BIRTHDAY"] = array(); 72$arResult["USERS"] = array(); 72$arResult["USERS"] = array(); 73$arResult["USERS_HIDDEN"] = array(); 74$arResult["GUEST"] = 0; 74$arResult["GUEST"] = 0; 75$arResult["REGISTER"] = 0; 76$arResult["ALL"] = 0;resize.go https://gitlab.com/1851616111/toropress | Go | 252 lines
54 // step 1 first and all of step 2 second, we could allocate a smaller sum 55 // slice of length 4*w*2 instead of 4*w*h, although the resultant code 56 // would become more complicated. 97//平均转换平均值,并返回结果。 98// average convert the sums to averages and returns the result. 99func average(sum []uint64, w, h int, n uint64) image.Image { 119func resizeYCbCr(m *image.YCbCr, r image.Rectangle, w, h int) (image.Image, bool) { 120 var verticalRes int 121 switch m.SubsampleRatio {servicecontainer.php https://gitlab.com/alexprowars/bitrix | PHP | 354 lines
6use Sale\Handlers\Delivery\YandexTaxi\Api\Api; 7use Sale\Handlers\Delivery\YandexTaxi\Api\ApiResult\Journal\EventBuilder; 8use Sale\Handlers\Delivery\YandexTaxi\Api\ClaimReader\ClaimReader; 29{ 30 /** @var Api */ 31 private static $api; 32 33 /** @var OauthTokenProvider */ 34 private static $oauthTokenProvider; 35 36 /** @var ClaimReader */ 37 private static $claimReader; 38 39 /** @var EventBuilder */ 40 private static $eventJournalBuilder;cdn.js https://gitlab.com/c9-mirror/core | JavaScript | 281 lines
27 28 var api = frontdoor(); 29 connect.use(api); 159 build.buildConfig(name, req.pathConfig, function(err, result) { 160 callback(err, result && result.code || ""); 161 }); 169 build.buildSkin(req.params.name, color, req.pathConfig, function(err, result) { 170 callback(err, result && result.code || ""); 171 }); 179 build.buildModule(module, req.pathConfig, function(err, result) { 180 callback(err, result && result.code || ""); 181 }); 189 build.buildWorker(module, req.pathConfig, function(err, result) { 190 callback(err, result && result.code || ""); 191 });learn_test_result_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 254 lines
38 if(!$r->ExtractFields("str_")) 39 $bBadResult = true; 40} 120{ 121 $DB->InitTableVarsForEdit("b_learn_test_result", "", "str_"); 122} 123 124$adminChain->AddItem(array("TEXT"=>GetMessage("LEARNING_ADMIN_RESULTS"), "LINK"=>"learn_test_result_admin.php?lang=". LANG."&ATTEMPT_ID=".$ATTEMPT_ID.GetFilterParams("filter_", false))); 125 239 document.forms["testResultTabControl_form"].elements['POINT'].disabled = !val; 240 document.forms["testResultTabControl_form"].elements['CORRECT'].disabled = !val && !document.forms["testResultTabControl_form"].elements['ANSWERED'].checked; 241 241 242 var r = document.forms["testResultTabControl_form"].elements['RESPONSE[]']; 243fs.js https://gitlab.com/remynaps/Vexillarius | JavaScript | 201 lines
4var thenify = require('thenify'); 5var stripBom = require('strip-bom'); 6var parse = require('parse-json'); 6var parse = require('parse-json'); 7var popsicle = require('popsicle'); 8var popsicleStatus = require('popsicle-status'); 9var popsicleRetry = require('popsicle-retry'); 10var detectIndent = require('detect-indent'); 11var sortKeys = require('sort-keys'); 21var url_1 = require('url'); 22var template = require('string-template'); 23var config_1 = require('./config'); 147 var lockOptions = { wait: 250, retries: 25, stale: 60000 }; 148 var result = exports.lock(lockfile, lockOptions) 149 .then(function () {Readme.md https://gitlab.com/zerotonin/indinero_connect4 | Markdown | 317 lines
13```javascript 14var Qs = require('qs'); 15 15 16var obj = Qs.parse('a=c'); // { a: 'c' } 17var str = Qs.stringify(obj); // 'a=c' 70By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like 71`'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be: 72 302 303To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null` 304values have no `=` sign:AdvisorTest.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 332 lines
75 $parseResult = include ROOT_PATH . 'libraries/advisory_rules_generic.php'; 76 $this->assertIsArray($parseResult); 77 $this->assertArrayHasKey(0, $parseResult); 80 $advisor->addRule('fired', $rule); 81 $runResult = $advisor->getRunResult(); 82 if (isset($runResult['errors']) || $error !== null) { 82 if (isset($runResult['errors']) || $error !== null) { 83 $this->assertEquals([$error], $runResult['errors']); 84 } 85 86 if (! isset($runResult['fired']) && $expected == []) { 87 return; 126 'recommendation' => 'Recommend <a href="index.php?route=/server/variables&' . 127 'filter=status_var&lang=en">status_var</a>', 128 ],o2.dom.dimension.js git://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'); 117any_test.cpp git://github.com/MisterTea/HyperNEAT.git | C++ | 370 lines
1// what: unit tests for variant type boost::any 2// who: contributed by Kevlin Henney 139 any original = text, copy; 140 any * assign_result = &(copy = original); 141 153 "comparing address in copy against original"); 154 check_equal(assign_result, ©, "address of assignment result"); 155 } 160 any value; 161 any * assign_result = &(value = text); 162 173 "comparing address in copy against original text"); 174 check_equal(assign_result, &value, "address of assignment result"); 175 } 205 "comparing address in swapped against original"); 206 check_equal(swap_result, &original, "address of swap result"); 207yy_interactive_scanner_skeleton.e git://github.com/gobo-eiffel/gobo.git | Specman e | 386 lines
39 -- Read a token from `input_buffer'. 40 -- Make result available in `last_token'. 41 local 61 -- say that I'm not very proud of this piece of code. 62 -- However I performed some benchmarks and the results 63 -- were that this implementation runs amazingly faster 94 yy_current_state := yy_start_state + yy_at_beginning_of_line 95 if yyReject_or_variable_trail_context then 96 -- Set up for storing up states. 109 loop 110 if not yyReject_or_variable_trail_context and then yy_accept.item (yy_current_state) /= 0 then 111 -- Save the backing-up info before computing 170 end 171 if yyReject_or_variable_trail_context then 172 SPECIAL_INTEGER_.force (yy_state_stack, yy_current_state, yy_state_count)compiler.js https://gitlab.com/hemantr/NetBeansProjects | JavaScript | 451 lines
22 for (var i = 0; i < len; i++) { 23 var opcode = this.opcodes[i], 24 otherOpcode = other.opcodes[i]; 92 compileProgram: function(program) { 93 var result = new this.compiler().compile(program, this.options); 94 var guid = this.guid++, depth; 99 100 for(var i=0, l=result.depths.list.length; i<l; i++) { 101 depth = result.depths.list[i]; 151 hash: function(hash) { 152 var pairs = hash.pairs, i, l; 153 416 // Template is only compiled on first use and cached after that point. 417 var ret = function(context, options) { 418 if (!compiled) {Introduction.md https://gitlab.com/Guy1394/xml-sample-demo | Markdown | 128 lines
89 90The results of the installation can be found in the XQUERY.log file. 91 100 101To run the installation script first set the current directory to the install directory. Make sure that the environment variables ORACLE\_HOME and ORACLE\_SID are set correctly. Invoke the XQUERY.sh script passing the following arguments on the command line 102d.js https://gitlab.com/Guy1394/jsbin | JavaScript | 218 lines
22 multiLineStrings = parserConfig.multiLineStrings; 23 var isOperatorChar = /[+\-*&%=<>!?|\/]/; 24 24 25 var curPunc; 26 29 if (hooks[ch]) { 30 var result = hooks[ch](stream, state); 31 if (result !== false) return result; 102 function tokenNestedComment(stream, state) { 103 var maybeEnd = false, ch; 104 while (ch = stream.next()) { 121 function pushContext(state, col, type) { 122 var indent = state.indented; 123 if (state.context && state.context.type == "statement")index.js https://gitlab.com/haganlsfd36/marchhct | JavaScript | 306 lines
22/** Used to match leading and trailing whitespace. */ 23var reTrim = /^\s+|\s+$/g; 24 52/** Used to convert symbols to primitives and strings. */ 53var symbolProto = Symbol ? Symbol.prototype : undefined, 54 symbolToString = Symbol ? symbolProto.toString : undefined; 103function isObject(value) { 104 var type = typeof value; 105 return !!value && (type == 'object' || type == 'function'); 260 } 261 var result = (value + ''); 262 return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; 288 289 var result = ''; 290 if (!string || n < 1 || n > MAX_SAFE_INTEGER) {rx.joinpatterns.js https://gitlab.com/Mirros/cdnjs | JavaScript | 403 lines
35 var inherits = Rx.Internals.inherits; 36 var slice = Array.prototype.slice; 37 function argsOrArray(args, idx) { 43 /** @private */ 44 var Map = (function () { 45 132 Pattern.prototype.and = function (other) { 133 var patterns = this.patterns.slice(0); 134 patterns.push(other); 159 var activePlan = new ActivePlan(joinObservers, function () { 160 var result; 161 try { 168 }, function () { 169 for (var j = 0, jlen = joinObservers.length; j < jlen; j++) { 170 joinObservers[j].removeActivePlan(activePlan);eddy.max.js https://gitlab.com/Mirros/cdnjs | JavaScript | 359 lines
29 30// all private variables 31var /*! (C) Andrea Giammarchi Mit Style License */ 58 // but works specifically for this use case like a charm 59 var fn = this; 60 return function () { 66 // and include it before eddy.js 67 var i = this.length; 68 while (i-- && this[i] !== value) {} 95 * might change methods name if compiled with 96 * ADVANCED_OPTION resulting in a broken code. 97 * Use methods instead of strings if you use such option. 101 boundTo: function boundTo(method) { 102 var 103 all = hasOwnProperty.call(this, SECRET) ?event-valuechange-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 475 lines
4Adds a synthetic `valuechange` event that fires when the `value` property of an 5`<input>` or `<textarea>` node changes as a result of a keystroke, mouse 6operation, or input method editor (IME) input event. 36 37var DATA_KEY = '_valuechange', 38 VALUE = 'value', 85 _poll: function (node, options) { 86 var domNode = node._node, // performance cheat; getValue() is a big hit when polling 87 event = options.e, 135 136 var vcData = node.getData(DATA_KEY); 137 173 174 var vcData = node.getData(DATA_KEY); 175ngDialog.js https://gitlab.com/Mirros/cdnjs | JavaScript | 433 lines
16 var animationEndEvent = 'animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend'; 17 var forceBodyReload = false; 18 129 130 var preCloseCallbackResult = preCloseCallback.call($dialog, value); 131 152 153 var publicMethods = { 154 353 defer.resolve(value); 354 var $dialog = $el(document.getElementById(openResult.id)); 355 privateMethods.performCloseDialog($dialog, value); 357 358 var openResult = publicMethods.open(options); 359 openResult.closePromise.then(function (data) {HISTORY.md https://gitlab.com/JuanCalcagnoDev/CertFront | Markdown | 436 lines
26 27 * Fix issue where invalid charset results in 400 when `verify` used 28 * deps: iconv-lite@0.4.12 62 - Fix user-visible incompatibilities from 3.1.0 63 - Fix various parsing edge cases 64 * deps: raw-body@~2.1.2 96 - Fix dropping parameters like `hasOwnProperty` 97 - Fix various parsing edge cases 98 - Parsed object now has `null` prototype 334 * deps: depd@0.4.2 335 - Add `TRACE_DEPRECATION` environment variable 336 - Remove non-standard grey color from color output 350 * deps: type-is@1.3.1 351 - fix global variable leak 352workflow_history_list.php https://gitlab.com/alexprowars/bitrix | PHP | 338 lines
57 58InitBVar($find_id_exact_match); 59InitBVar($find_document_id_exact_match); 59InitBVar($find_document_id_exact_match); 60InitBVar($find_modified_user_exact_match); 61InitBVar($find_filename_exact_match); 61InitBVar($find_filename_exact_match); 62InitBVar($find_title_exact_matc); 63InitBVar($find_body_exact_match); 63InitBVar($find_body_exact_match); 64InitBVar($find_status_exact_match); 65 167$rsData = CWorkflow::GetHistoryList($by, $order, $arFilter); 168$rsData = new CAdminResult($rsData, $sTableID); 169$rsData->NavStart(50);class.php https://gitlab.com/alexprowars/bitrix | PHP | 353 lines
21 22 /** @var string */ 23 protected $gridId = "grid_admin_forum_forums"; 42 43 $this->arResult["ERRORS"] = $this->processAction(); 44 49 $this->arResult["FILTER"] = $this->initFilter(); 50 $this->arResult["DATA"] = []; 51 307 $this->arResult["FILTER_ID"] = $this->gridId."_filter"; 308 return (new \Bitrix\Main\UI\Filter\Options($this->arResult["FILTER_ID"]))->getFilterLogic($this->arResult["FILTER_FIELDS"]); 309 } 329 { 330 unset($result["FORUM_GROUP_ID"]); 331xhrFileTransfer.js https://gitlab.com/hemantr/NetBeansProjects | JavaScript | 259 lines
43 abort: function (win, fail, args) { 44 var id = args[0]; 45 if (xhr[id]) { 55 upload: function(win, fail, args) { 56 var filePath = args[0], 57 server = args[1], 101 if (xhr[fileKey].status === 200) { 102 var result = new FileUploadResult(); 103 result.bytesSent = file.size; 104 result.responseCode = xhr[fileKey].status; 105 result.response = xhr[fileKey].response; 106 delete xhr[fileKey]; 171 onFail = function (error) { 172 var reader; 173 delete xhr[id];box-model.js https://gitlab.com/itesoft/css-lint | JavaScript | 225 lines
9 "Using width and padding should result in a warning": function() { 10 var result = CSSLint.verify(".foo { width: 100px; padding: 10px; }", { "box-model": 1 }); 11 Assert.areEqual(1, result.messages.length); 65 "Using width and padding-bottom should not result in a warning": function() { 66 var result = CSSLint.verify(".foo { width: 100px; padding-bottom: 10px; }", { "box-model": 1 }); 67 Assert.areEqual(0, result.messages.length); 206 "Using height when border-top is zero should not result in a warning": function() { 207 var result = CSSLint.verify(".foo { height: 100px; border-top: 0; }", { "box-model": 1 }); 208 Assert.areEqual(0, result.messages.length); 211 "Using height and border-bottom should result in a warning": function() { 212 var result = CSSLint.verify(".foo { height: 100px; border-bottom: 10px; }", { "box-model": 1 }); 213 Assert.areEqual(1, result.messages.length); 218 "Using height when border-bottom is zero should not result in a warning": function() { 219 var result = CSSLint.verify(".foo { height: 100px; border-bottom: 0; }", { "box-model": 1 }); 220 Assert.areEqual(0, result.messages.length);View.js git://github.com/tart/tartJS.git | JavaScript | 230 lines
90 91 var marginLeft; 92 92 93 var moveWidth = this.template.properties.CAROUSEL_WIDTH; 94 146 147 var totalPage = pager.getTotalPage(); 148 148 149 var navigation = that.get(that.domMappings.NAVIGATION)[0]; 150 225 goog.dom.classlist.remove(this.getDOM(), 'loading'); 226 var carouselText = this.template.noResults(); 227 this.get(this.domMappings.ITEMS)[0].innerHTML = carouselText;api-list.js git://github.com/schteppe/cannon.js.git | 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);CmsUploadAreaConnector.java git://github.com/alkacon/opencms-core.git | Java | 214 lines
126 && (typeof FormData == 'function' || typeof FormData == 'object')) { 127 var self = this; 128 129 function isFileDrag(event) { 130 var result = true; 131 var dt = event.dataTransfer; 131 var dt = event.dataTransfer; 132 for (var i = 0; i < dt.types.length; i++) { 133 // in case the types list contains text/html, we assume a DOM element is dragged, and no files 134 if (dt.types[i] == "text/html") { 135 result = false; 136 break; 138 } 139 return result; 140 }sin.go git://github.com/axw/llgo.git | Go | 236 lines
43// Partial loss of accuracy begins to occur at x = 2**30 = 1.074e9. The loss 44// is not gradual, but jumps suddenly to about 1 part in 10e7. Results may 45// be meaningless for x > 2**49 = 5.6e14. 92// sin coefficients 93var _sin = [...]float64{ 94 1.58962301576546568060E-10, // 0x3de5d8fd1fd19ccd 102// cos coefficients 103var _cos = [...]float64{ 104 -1.13585365213876817300E-11, // 0xbda8fa49a0861a9but_version.e git://github.com/gobo-eiffel/gobo.git | Specman e | 299 lines
145 do 146 Result := (internal_major >= 0) 147 end 151 do 152 Result := (internal_minor >= 0) 153 end 157 do 158 Result := (internal_revision >= 0) 159 end 163 do 164 Result := (internal_build >= 0) 165 end 173 do 174 Result := internal_major 175 ensurechild_c_idp227698512.html git://github.com/MisterTea/HyperNEAT.git | HTML | 91 lines
36<span class="keyword">template</span><span class="special"><</span><span class="keyword">long</span> N<span class="special">,</span> <span class="keyword">typename</span> <a class="link" href="../../Expr.html" title="Concept Expr">Expr</a><span class="special">></span> 37 <span class="keyword">typename</span> <a class="link" href="result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special"><</span> <span class="identifier">Expr</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> <span class="identifier">child_c</span><span class="special">(</span><span class="identifier">Expr</span> <span class="special">&</span> expr<span class="special">)</span><span class="special">;</span> 38<span class="keyword">template</span><span class="special"><</span><span class="keyword">long</span> N<span class="special">,</span> <span class="keyword">typename</span> <a class="link" href="../../Expr.html" title="Concept Expr">Expr</a><span class="special">></span> 38<span class="keyword">template</span><span class="special"><</span><span class="keyword">long</span> N<span class="special">,</span> <span class="keyword">typename</span> <a class="link" href="../../Expr.html" title="Concept Expr">Expr</a><span class="special">></span> 39 <span class="keyword">typename</span> <a class="link" href="result_of/child_c.html" title="Struct template child_c">proto::result_of::child_c</a><span class="special"><</span> <span class="identifier">Expr</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">N</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 40 <span class="identifier">child_c</span><span class="special">(</span><span class="identifier">Expr</span> <span class="keyword">const</span> <span class="special">&</span> expr<span class="special">)</span><span class="special">;</span></pre></div> 46 </p> 47<div class="variablelist"><table border="0" class="variablelist compact"> 48<colgroup>oop-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 407 lines
9 10var L = Y.Lang, 11 A = Y.Array, 69Y.augment = function (receiver, supplier, overwrite, whitelist, args) { 70 var rProto = receiver.prototype, 71 sequester = rProto && supplier, 103 // Unsequester all sequestered functions. 104 for (var key in sequestered) { 105 if (hasOwn.call(sequestered, key) 174 175 var sp = s.prototype, rp = Y.Object(sp); 176 r.prototype = rp; 257 object prototype. Also, cloned prototype items that are deleted from the 258 clone will result in the value of the source prototype being exposed. If 259 operating on a non-safe clone, items should be nulled out rather thanrx.async.js https://gitlab.com/Mirros/cdnjs | JavaScript | 328 lines
89 scheduler.schedule(function () { 90 var result; 91 try { 120 function handler(e) { 121 var results = e; 122 168 169 var results = slice.call(arguments, 1); 170 265 function handler (e) { 266 var results = e; 267 290 function innerHandler (e) { 291 var result = e; 292 if (selector) {Price.php https://gitlab.com/daigiangaitu91/magento | PHP | 292 lines
21 * 22 * @var \Magento\Catalog\Model\ResourceModel\Layer\Filter\Price 23 */ 28 * 29 * @var \Magento\Framework\Registry 30 */ 35 * 36 * @var \Magento\Framework\Search\Dynamic\Algorithm 37 */ 42 * 43 * @var \Magento\Customer\Model\Session 44 */ 47 /** 48 * @var \Magento\Framework\App\Config\ScopeConfigInterface 49 */backend.memory.js https://gitlab.com/begemot.lery/opendata-dkan | JavaScript | 245 lines
70 var start = queryObj.from || 0; 71 var results = this.records; 72 72 73 results = this._applyFilters(results, queryObj); 74 results = this._applyFreeTextQuery(results, queryObj); 207 this.computeFacets = function(records, queryObj) { 208 var facetResults = {}; 209 if (!queryObj.facets) { 221 var val = doc[fieldId]; 222 var tmp = facetResults[facetId]; 223 if (val) { 230 _.each(queryObj.facets, function(query, facetId) { 231 var tmp = facetResults[facetId]; 232 var terms = _.map(tmp.termsall, function(count, term) {class.yith-wcwl.php https://gitlab.com/hop23typhu/list-theme | PHP | 382 lines
21 * 22 * @var array 23 * @since 1.0.0 29 * 30 * @var array 31 * @since 1.0.0 79 $sql = "SELECT COUNT(*) as `cnt` FROM `" . YITH_WCWL_TABLE . "` WHERE `prod_id` = " . $product_id . " AND `user_id` = " . $this->details['user_id']; 80 $results = $wpdb->get_results( $sql ); 81 $exists = $results[0]->cnt > 0 ? true : false; 112 113 //check for existence, product ID, variation ID, variation data, and other cart item data 114 if( $this->is_product_in_wishlist( $this->details['add_to_wishlist'] ) ) { 200 $sql = "SELECT COUNT(*) as `cnt` FROM `" . YITH_WCWL_TABLE . "` WHERE `user_id` = " . get_current_user_id(); 201 $results = $wpdb->get_results( $sql ); 202 return $results[0]->cnt;rem0cmp.h https://gitlab.com/Cona/server | C Header | 301 lines
80This function is used to compare two data fields for which we know the 81data type to be VARCHAR. 82@return 1, 0, -1, if lhs is greater, equal, less than rhs, respectively */ 84int 85cmp_data_data_slow_varchar( 86/*=======================*/ 93/***************************************************************** 94This function is used to compare two varchar/char fields. The comparison 95is for the LIKE operator. 107/***************************************************************** 108This function is used to compare two varchar/char fields. The comparison 109is for the LIKE operator. 121/***************************************************************** 122This function is used to compare two varchar/char fields. The comparison 123is for the LIKE operator.ImageTests.cs https://gitlab.com/rekby-archive/onlyoffice-CommunityServer | C# | 346 lines
29 30 var result = _compute.GetImage(imageId); 31 95 96 var results = _compute.ListImageSummaries(); 97 var flavorRef = results.First(); 97 var flavorRef = results.First(); 98 var result = flavorRef.GetImage(); 99 114 115 var result = _compute.GetImage(imageId); 116 result.WaitUntilActive(); 158 Assert.Single(results); 159 var result = results.First(); 160 Assert.Equal(imageId, result.Id);view.html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 217 lines
10{ 11 var $searchFields = array('b.subject','a.mailid'); 12 var $selectFields = array('b.subject','b.type','a.*'); 12 var $selectFields = array('b.subject','b.type','a.*'); 13 var $searchHistory = array('b.subject','c.email','c.name'); 14 var $historyFields = array('a.*','b.subject','c.email','c.name'); 14 var $historyFields = array('a.*','b.subject','c.email','c.name'); 15 var $detailSearchFields = array('b.subject','a.mailid','c.name','c.email','a.subid'); 16 var $detailSelectFields = array('b.subject','c.name','c.email','b.type','a.*'); 61 $db->setQuery($queryCount); 62 $pageInfo->elements->total = $db->loadResult(); 63 if(!empty($pageInfo->search)){ 127 $database->setQuery($queryCount); 128 $pageInfo->elements->total = $database->loadResult(); 129 if(!empty($pageInfo->search)){ifvisible.js https://gitlab.com/Mirros/cdnjs | JavaScript | 314 lines
20 customEvent = (function() { 21 var S4, addCustomEvent, cgid, fireCustomEvent, guid, listeners, removeCustomEvent; 22 S4 = function() { 43 fireCustomEvent = function(obj, event, memo) { 44 var ev, j, len, ref, results; 45 if (obj[cgid] && listeners[obj[cgid]] && listeners[obj[cgid]][event]) { 46 ref = listeners[obj[cgid]][event]; 47 results = []; 48 for (j = 0, len = ref.length; j < len; j++) { 49 ev = ref[j]; 50 results.push(ev(memo || {})); 51 } 55 removeCustomEvent = function(obj, event, callback) { 56 var cl, i, j, len, ref; 57 if (callback) {payableitemcollection.php https://gitlab.com/alexprowars/bitrix | PHP | 347 lines
165 { 166 $result = new Result(); 167 206 207 /** @var PayableShipmentItem $payableItemClass */ 208 $payableItemClass = $registry->get(Registry::ENTITY_PAYABLE_SHIPMENT); 243 /** 244 * @return Result 245 * @throws Main\ArgumentException 251 { 252 $result = new Result(); 253 291 { 292 $result = new Result(); 293humanize.js https://gitlab.com/Mirros/cdnjs | JavaScript | 472 lines
190 this.Humanize.toFixed = function(value, precision) { 191 var power; 192 if (precision == null) { 283 this.Humanize.truncatewords = function(string, length) { 284 var array, i, result; 285 array = string.split(" "); 299 this.Humanize.truncatenumber = function(num, bound, ending) { 300 var result; 301 if (bound == null) { 306 } 307 result = null; 308 if (isFinite(num) && isFinite(bound)) { 336 this.Humanize.dictionary = function(object, joiner, separator) { 337 var defs, k, result, v; 338 if (joiner == null) {datasource-local.js https://gitlab.com/Mirros/cdnjs | JavaScript | 336 lines
4 * The DataSource utility provides a common configurable interface for widgets to 5 * access a variety of data, from JavaScript arrays to online database servers. 6 * 24 */ 25var LANG = Y.Lang, 26 167 * <dl> 168 * <dt>results (Object)</dt> <dd>Parsed results.</dd> 169 * <dt>meta (Object)</dt> <dd>Parsed meta data.</dd> 195 * <dl> 196 * <dt>results (Object)</dt> <dd>Parsed results.</dd> 197 * <dt>meta (Object)</dt> <dd>Parsed meta data.</dd> 287 * <dl> 288 * <dt>results (Object)</dt> <dd>Parsed results.</dd> 289 * <dt>meta (Object)</dt> <dd>Parsed meta data.</dd>User.php https://gitlab.com/blingbang2016/shop | PHP | 435 lines
131 $timeout, 132 Varien_Db_Adapter_Interface::INTERVAL_SECOND); 133 $writeAdapter->delete( 161 { 162 $result = array(); 163 $adapter = $this->_getReadAdapter(); 171 if ($user = $adapter->fetchRow($selectUser)) { 172 $result = array_merge($user, $apiSession); 173 } 174 } 175 return $result; 176 } 201 $userId = null; 202 $result = null; 203 if (is_numeric($user)) {systemfield.php https://gitlab.com/alexprowars/bitrix | PHP | 633 lines
54 { 55 $result = new Main\Result(); 56 231 232 return (!empty($result) ? $result : null); 233 } 248 { 249 /** @var string $result */ 250 $result = $field; 377 { 378 $result = new ORM\EventResult(); 379 435 { 436 $result = new ORM\EventResult(); 437jsunit.js https://gitlab.com/JuanCalcagnoDev/CertFront | JavaScript | 363 lines
48/** 49 * Element created in the document to add test results to. 50 * @private {Element} 92webdriver.testing.jsunit.TestRunner.prototype.writeLog = function(log) { 93 var lines = log.split('\n'); 94 for (var i = 0; i < lines.length; i++) { 94 for (var i = 0; i < lines.length; i++) { 95 var line = lines[i]; 96 var color; 96 var color; 97 var isFailOrError = /FAILED/.test(line) || /ERROR/.test(line); 98 var isScreenshot = / \[SCREENSHOT\] /.test(line); 108 109 var div = document.createElement('div'); 110 if (line.substr(0, 2) == '> ') {rx.virtualtime.js https://gitlab.com/Mirros/cdnjs | JavaScript | 313 lines
3;(function (factory) { 4 var objectTypes = { 5 'boolean': false, 12 13 var root = (objectTypes[typeof window] && window) || this, 14 freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports, 35 // Aliases 36 var Scheduler = Rx.Scheduler, 37 PriorityQueue = Rx.internals.PriorityQueue, 85 86 var VirtualTimeSchedulerPrototype = VirtualTimeScheduler.prototype; 87 91 * @param {Number} relative Relative virtual time value to add. 92 * @return {Number} Resulting absolute virtual time sum value. 93 */index.js https://gitlab.com/marvin1/soundcloud | JavaScript | 585 lines
135 var index = {}; 136 var result = []; 137 218 219 var result = target || []; 220 249 var ref = obj; 250 for (var i = 0, il = path.length; i < il; ++i) { 251 if (ref) { 277 278 var result = null; 279 try { 441 442 var result = {}; 443 var filepath = (dir || process.env.PWD) + '/package.json';fil0crypt.h https://gitlab.com/Cona/server | C Header | 431 lines
102 103 ib_mutex_t mutex; // mutex protecting following variables 104 bool closing; // is tablespace being closed 256 byte* dst_frame) /*!< in: where to decrypt to */ 257 __attribute__((warn_unused_result)); 258mbsstr.c https://gitlab.com/c9-mirror/node-gnu-tools | C | 382 lines
36 Return a boolean indicating success: 37 Return true and set *RESULTP if the search was completed. 38 Return false if it was aborted because not enough memory was available. */ 40knuth_morris_pratt_multibyte (const char *haystack, const char *needle, 41 const char **resultp) 42{ 95 { 96 /* Invariants: The inequality needle[x..i-1] != needle[0..i-1-x] 97 is known to hold for x < i-1-j. 136 137 *resultp = NULL; 138 j = 0; 140 mbui_init (phaystack, haystack); 141 /* Invariant: phaystack = rhaystack + j. */ 142 while (mbui_avail (phaystack))q.js https://gitlab.com/Mirros/cdnjs | JavaScript | 361 lines
8// an undefined operator, to reduce special cases. 9// * variadic arguments are used internally where applicable (POST arguments 10// have not yet been altered. 81 82 var promise = Object.create(Promise.prototype); 83 promise.emit = function () { 136 var args = Array.prototype.slice.call(arguments, 2); 137 var result; 138 if (descriptor[op]) 138 if (descriptor[op]) 139 result = descriptor[op].apply(descriptor, args); 140 else 140 else 141 result = fallback.apply(descriptor, arguments); 142 if (resolved)pusher-angular.js https://gitlab.com/Mirros/cdnjs | JavaScript | 340 lines
27 subscribe: function (channelName) { 28 var channel = $channel(this.client.subscribe(channelName), this); 29 this.channels[channelName] = channel; 211 } 212 var self = this; 213 246 /** 247 * Returns member's info for given id. Resulting object containts two fields - id and info. 248 *