commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
9ce4d084621fcddf148ca4f0747d9afff1e89718 | Add canvas to blob polyfill | test/vendor/canvas-to-blob.js | test/vendor/canvas-to-blob.js | JavaScript | 0 | @@ -0,0 +1,3312 @@
+// NOTE: tweaked to work with browserify%0A%0A/*%0A * JavaScript Canvas to Blob 2.0.5%0A * https://github.com/blueimp/JavaScript-Canvas-to-Blob%0A *%0A * Copyright 2012, Sebastian Tschan%0A * https://blueimp.net%0A *%0A * Licensed under the MIT license:%0A * http://www.opensource.org/licenses/MIT%0A... | |
786cfb35be2882c45081393d97102f20f4369850 | Add mock for warning module | packages/redux-simple-auth/test/__mocks__/warning.js | packages/redux-simple-auth/test/__mocks__/warning.js | JavaScript | 0 | @@ -0,0 +1,214 @@
+let warnings = %5B%5D%0A%0Aconst warning = (condition, message) =%3E %7B%0A if (!condition) %7B%0A warnings.push(message)%0A %7D%0A%7D%0A%0Awarning.getWarnings = () =%3E warnings%0Awarning.reset = () =%3E (warnings = %5B%5D)%0A%0Aexport default warning%0A
| |
3968a8f8ccfd1c55ff2a0acfb5267f071f499468 | Fix package name | src/ngParseExt/module.js | src/ngParseExt/module.js | 'use strict';
/**
* @ngdoc module
* @name ngParseExt
* @description
*
* # ngParseExt
*
* The `ngParseExt` module provides functionality to allow Unicode characters in
* identifiers inside Angular expressions.
*
*
* <div doc-module-components="ngParseExt"></div>
*
* This module allows the usage of any iden... | JavaScript | 0.000001 | @@ -49,16 +49,50 @@
arseExt%0A
+ * @packageName angular-parse-ext%0A
* @desc
|
29772f02862ad4782b8d59075d93ef3838dd8fcf | Remove log | packages/rocketchat-ui-master/server/inject.js | packages/rocketchat-ui-master/server/inject.js | /* globals Inject */
Inject.rawBody('page-loading', `
<style>
.loading {
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
align-items: center;
position: absolute;
justify-content: center;
text-align: center;
}
.loading > div {
width: 10px;
height: 10px;
margin: 2px;
border-radius: 100%;
display: inli... | JavaScript | 0.000001 | @@ -1871,66 +1871,8 @@
) %7B%0A
-%09%09console.log('Accounts_ForgetUserSessionOnWindowClose');%0A
%09%09In
|
db48408f69efb6a41c33ffec399b22895111282b | Index object store property. | test/idbindex-objectStore-SameObject.wpt.t.js | test/idbindex-objectStore-SameObject.wpt.t.js | JavaScript | 0 | @@ -0,0 +1,888 @@
+require('proof')(2, async okay =%3E %7B%0A await require('./harness')(okay, 'idbindex-objectStore-SameObject')%0A await harness(async function () %7B%0A%0A indexeddb_test(%0A (t, db) =%3E %7B%0A const store = db.createObjectStore('store');%0A const index = ... | |
38dedab2ca3adf42aba6c123d6f208a3590624d5 | add back misdeleted file | packages/veui-theme-dls-icons/rollup.config.js | packages/veui-theme-dls-icons/rollup.config.js | JavaScript | 0.000001 | @@ -0,0 +1,504 @@
+import nodeResolve from '@rollup/plugin-node-resolve'%0Aimport commonjs from '@rollup/plugin-commonjs'%0A%0Aexport default %7B%0A input: './icons/index.js',%0A output: %7B%0A file: 'dist/icons.esm.js',%0A format: 'esm'%0A %7D,%0A plugins: %5B%0A %7B%0A name: 'transform-veui',%0A ... | |
e3e24fb86e6774e6488acc40f881475941c43223 | Fix for error caused by previous fix, that didn't initally manifest. | app/sprinkles/admin/assets/local/widgets/js/users.js | app/sprinkles/admin/assets/local/widgets/js/users.js | /**
* Users widget. Sets up dropdowns, modals, etc for a table of users.
*/
/**
* Set up the form in a modal after being successfully attached to the body.
*/
function attachUserForm() {
$("body").on('renderSuccess.ufModal', function (data) {
var modal = $(this).ufModal('getModal');
var form =... | JavaScript | 0 | @@ -853,24 +853,56 @@
wordMode) %7B%0A
+ var form = el.find(%22form%22);%0A
if (chan
@@ -1067,39 +1067,28 @@
est%0A
-el.find(%22
form
-%22)
.attr(%7B%0A
@@ -2054,31 +2054,20 @@
-el.find(%22
form
-%22)
.attr(%7B%0A
|
14408ac951a92aaef0a4544b0587e17c8b1e8a7e | move default middleware | lib/middleware/matter.js | lib/middleware/matter.js | JavaScript | 0.000001 | @@ -0,0 +1,246 @@
+'use strict';%0A%0Avar parser = require('parser-front-matter');%0A%0A/**%0A * Default middleware for parsing front-matter%0A */%0A%0Amodule.exports = function(file, next) %7B%0A parser.parse(file, function(err) %7B%0A if (err) return next(err);%0A next();%0A %7D);%0A%7D;%0A
| |
1b386437a8164334942765a044290c1ecf7c93b9 | Create permission-checks.js | lib/permission-checks.js | lib/permission-checks.js | JavaScript | 0.000001 | @@ -0,0 +1,1090 @@
+function checkDuplicateUser(playQueue, video, config) %7B%0A if (config.userQueueLimit %3C= -1) return false;%0A%0A var count = 0;%0A for (element of playQueue) %7B%0A if (element.userId === video.userId) count++;%0A %7D%0A%0A return (count %3E= config.userQueueLimit);%0A%7D%0A%0Afunction ch... | |
8ae2ca42b86f5b5f21cb0e7661645e7b7dabe511 | Create serverReadDatabase.js | Assignments/Sarun_Sangchanintra/serverReadDatabase.js | Assignments/Sarun_Sangchanintra/serverReadDatabase.js | JavaScript | 0.000001 | @@ -0,0 +1,592 @@
+var http = require('http');%0A%0Avar parseXlsx = require('excel');%0A%0A%0Ahttp.createServer( function(req, res) %7B%0A%0A console.log('Server Started ');%0A%0A parseXlsx('Currency.xlsx', function(data) %7B%0A%0A res.writeHead(200, %7B'content-type': 'text/plain'%7D);%0A%0A res.write('Wel... | |
1f607470cc45619cced5db0e264c8532d398657b | create new tree file | Algorithms/JS/trees/sumTrees.js | Algorithms/JS/trees/sumTrees.js | JavaScript | 0.000001 | @@ -0,0 +1,12 @@
+sumTrees.js%0A
| |
006ebf5a810e41e88900ad90293b1fb9a86ca27c | build contact component | src/contact.js | src/contact.js | JavaScript | 0 | @@ -0,0 +1,255 @@
+import React, %7B Component %7D from 'react';%0A%0Aexport default class Contact extends Component %7B%0A render() %7B%0A return (%0A %3Cdiv%3E%0A %3Cdiv className=%22contact-container%22%3E%0A %3Cdiv id=%22contact-form%22%3E%3C/div%3E%0A %3C/div%3E%0A %3C/div%3E%0... | |
4df89362d6423854d16aff6d82b106c5a0625364 | add waves.js | ilovecats/javascripts/waves.js | ilovecats/javascripts/waves.js | JavaScript | 0.000008 | @@ -0,0 +1,717 @@
+function WaveColumn() %7B%0A%09this.divArray = %5B%5D;%0A%7D%0A%0AWaveColumn.prototype.initializeDivArray = function() %7B%0A%09for (var i = 0; %09i %3C 255; i++) %7B%0A%09%09this.divArray.push(this.generateRedDiv(i));%0A%09%7D%0A%7D%0A%0AWaveColumn.prototype.generateRedDiv = function(redness) %7B%0A... | |
f96a13a9ad0245e36ec9bd581a8fff6cb72fa0d2 | add webgl2->glslSpec unit test | test/unit/no_worker/renderer/webgl2/glslSpec.js | test/unit/no_worker/renderer/webgl2/glslSpec.js | JavaScript | 0 | @@ -0,0 +1,1088 @@
+describe(%22test glsl 3.0%22, function() %7B%0A var sandbox = null;%0A var gl;%0A var state;%0A%0A function getVsSource(gl) %7B%0A return materialTool.getVsSource(gl);%0A %7D%0A%0A function getFsSource(gl) %7B%0A return materialTool.getFsSource(gl);%0A %7D%0A%0A ... | |
6790562122c23e49a27eb25db80497c930b159cd | extract lib | helper.js | helper.js | JavaScript | 0.999698 | @@ -0,0 +1,1280 @@
+%0Aconst dedup = x =%3E %7Breturn (x instanceof Array ? x.filter((v, i, a) =%3E a.indexOf(v) === i) : x)%7D //dedup array%0A%0Aconst flatten = (obj) =%3E %7B%0A%09let ret = obj;%0A%09if (obj instanceof Array) %7B%0A%09%09ret = %5B%5D%0A%09%09obj.forEach(_itm =%3E %7B%0A%09%09%09ret = ret.concat(flat... | |
af3fe24f233700b238b502ca203f1eaf84421716 | Create upAjax.js | js/upAjax.js | js/upAjax.js | JavaScript | 0.000003 | @@ -0,0 +1,1197 @@
+/*%0A * upAjax%0A * Kleines Plugin zum einfachen aufruf von PHP Funktionen vom Client aus mit dem XMLHttpRequest Objekt Level 2%0A *%0A * @author Lennart Sommerfeld%0A * @copyright (c) 2014 Lennart Sommerfeld%0A * @link http://lennart-sommerfeld.de%0A * @version 1.0%0A */%0A %0AXMLHttpRequest.protot... | |
190560483bf90301a08006c9e5ec54fd6ba8b2ad | Add server/fixtures/index.js | server/fixtures/index.js | server/fixtures/index.js | JavaScript | 0.000001 | @@ -0,0 +1,96 @@
+console.log%0A ('Hello World');%0A%0Aconsole.log%0A ('The quick brown fox jumped over the lazy dog');%0A
| |
3476a760876377ca80e7ae9dce11edc5d3e21206 | add ensureArray(), hasSingleItemOf() methods | src/utils.js | src/utils.js | JavaScript | 0.000002 | @@ -0,0 +1,1884 @@
+%0Alet toString = Object.prototype.toString;%0A%0Aconst utils = %7B%0A%0A isObject(o) %7B%0A return toString.call(o) === '%5Bobject Object%5D';%0A %7D,%0A%0A isArray(o) %7B%0A return toString.call(o) === '%5Bobject Array%5D';%0A %7D,%0A%0A ensureArray(o) %7B%0A if... | |
396d46008641be6e3bea445a512883f9be120bad | Create helloworld.js | helloworld.js | helloworld.js | JavaScript | 0.000001 | @@ -0,0 +1,130 @@
+(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) %7B%09%0A return %22Hello, world!%22;%0A%7D)(request, response);%0A
| |
182b4ec6e4134fabea31e0c509d6643a7b5c1713 | add stringRegexHelper utility object | src/stringRegexHelper.js | src/stringRegexHelper.js | JavaScript | 0.000001 | @@ -0,0 +1,640 @@
+module.exports = %7B%0A regexLastIndexOf(string, regex, startpos) %7B%0A regex = (regex.global) ? regex : new RegExp(regex.source, %22g%22 + (regex.ignoreCase ? %22i%22 : %22%22) + (regex.multiLine ? %22m%22 : %22%22));%0A if(typeof (startpos) == %22undefined%22) %7B%0A startpos =... | |
bc9cb5f0f76efd1dfc494ef914354b832c35cd84 | Add reduceRight test | polyfills/Array.prototype.reduceRight/tests.js | polyfills/Array.prototype.reduceRight/tests.js | JavaScript | 0 | @@ -0,0 +1,1834 @@
+var spycalls = %5B%5D;%0A%0Avar spy = function() %7B%0A%09spycalls.push(%5B%5D.slice.call(arguments));%0A%7D%0A%0AbeforeEach(function () %7B%0A%09spycalls = %5B%5D;%0A%7D);%0A%0Ait('should pass the correct arguments to the callback', function () %7B%0A%09%5B1,2,3%5D.reduceRight(spy);%0A%09expect(spy... | |
7521a75c9d134385c4c6be58500ed5c8c38d3bb5 | Add CassandraConnector | src/connectors/CassandraConnector.js | src/connectors/CassandraConnector.js | JavaScript | 0.000001 | @@ -0,0 +1,2051 @@
+'use strict';%0Alet Promise = require('promise');%0Aconst cassandra = require('cassandra-driver');%0Aconst cassandraTableStorageManager = require('../storageClients/CassandraTableStorageManager');%0Aconst distance = cassandra.types.distance;%0A%0A/** Cassandra Client Options%0A * https://docs.datast... | |
e1f20a51bc5816b893906ec521ec57925edb5a9f | Add Google Analytics tracking | app/assets/javascripts/includes/googleAnalytics.js | app/assets/javascripts/includes/googleAnalytics.js | JavaScript | 0.000001 | @@ -0,0 +1,496 @@
+ (function(i, s, o, g, r, a, m) %7B%0A i%5B'GoogleAnalyticsObject'%5D = r;%0A i%5Br%5D = i%5Br%5D %7C%7C function() %7B%0A (i%5Br%5D.q = i%5Br%5D.q %7C%7C %5B%5D).push(arguments)%0A %7D, i%5Br%5D.l = 1 * new Date();%0A a = s.createElement(o),%0A m = s.getElement... | |
ffd3e77ad932f9a8179953d30e5444bd8a3a92a4 | add sticky footer to curriculum | js/curriculum-page.js | js/curriculum-page.js | 'use strict';
$(function () {
var $curriculumLogoutButton = $('#curriculumLogoutButton');
var $taipei1016Eng = $('.taipei1016-eng');
var $taipei2016Cn = $('.taipei2016-cn');
var $taipei2016ChineseCurriculum = $('#taipei2016-chinese-curriculum');
var $taipei2016EnglishCurriculum = $('#taipei2016-english-curriculum... | JavaScript | 0 | @@ -1359,87 +1359,8 @@
');%0A
- %09%09%09%09%09homepageStickyFooter();%0A %09%09%09%09// setTimeout(homepageStickyFooter, 420);%0A
%09%09%09
|
8c2916aa6ac9b9cbe6e7a6196d03e0759c64efa2 | split up locales into different files | extract-locales.js | extract-locales.js | JavaScript | 0.00062 | @@ -0,0 +1,1569 @@
+/**%0A * Copyright (c) ppy Pty Ltd %3Ccontact@ppy.sh%3E.%0A *%0A * This file is part of osu!web. osu!web is distributed with the hope of%0A * attracting more community contributions to the core ecosystem of osu!.%0A *%0A * osu!web is free software: you can redistribute it and/or modify%0... | |
98a01e6e85cc8a4531a2eb58af26b017baa5b560 | add test/chan | test/chan.js | test/chan.js | JavaScript | 0.000002 | @@ -0,0 +1,915 @@
+'use strict';%0A%0Avar test = require('tape')%0Avar wrap = require('bluebird').coroutine%0Avar csp = require('..')%0A%0Atest('chan', wrap(function* (t) %7B%0A%0A var ch = csp.chan(2)%0A%0A csp.put(ch, 123)%0A csp.put(ch, 456)%0A%0A csp.close(ch, 'done')%0A%0A var res0 = yield csp.take(... | |
88fe9e90862113d5207ab339a1e9a47c9bb8ef5d | Implement music box parsing command | chat-plugins/music-box.js | chat-plugins/music-box.js | JavaScript | 0.000455 | @@ -0,0 +1,1277 @@
+/* Music Box chat-plugin%0A * parses links into the HTML for music boxes%0A * by panpawn%0A */%0A%0Avar https = require(%22https%22);%0A%0Aexports.commands = %7B%0A musicbox: function (target, room, user) %7B%0A if (!target) return this.sendReply(%22/musicbox link, link, link - parses it t... | |
811fee27473be30dc33d384ba8bd4d3317440a87 | add switch plugin: fade | switch/plugin/fade.js | switch/plugin/fade.js | JavaScript | 0.000002 | @@ -0,0 +1,291 @@
+/**%0A * Switch Plugin: fade%0A * author Kael Zhang%0A */%0A %0AKM.define(%5B'./accordion'%5D, function(K, require)%7B%0A%0Avar accordion = require('./accordion');%0A%0Areturn K.merge(%7B%7D, accordion, %7B%0A%09options: %7B%0A%09%09fx: %7B%0A%09%09%09duration: 1000%0A%09%09%7D,%0A%09%09property: 'o... | |
2ac8767d10ed1aef01c16716362f3e82033b8807 | Add a new until ‘hasProperty’ | src/utils/hasProperty.js | src/utils/hasProperty.js | JavaScript | 0 | @@ -0,0 +1,162 @@
+/**%0A * HasProperty%0A *%0A * @param %7Bobject%7D input%0A */%0Avar hasProperty = function(obj, property) %7B%0A return Object.prototype.hasOwnProperty.apply(obj, %5Bproperty%5D);%0A%7D;
| |
56d7c1b6eb58dc9e813e99a1fafd2bd0166ee8e5 | create tests for listening shim | test/lib/listening-shim.js | test/lib/listening-shim.js | JavaScript | 0 | @@ -0,0 +1,1574 @@
+'use strict';%0A%0Aconst test = require('ava');%0Aconst shim = require('../../lib/listening-shim');%0A%0Atest('shim', t =%3E %7B%0A%0A function Mock() %7B%7D%0A shim.apply(Mock);%0A%0A const mock = new Mock();%0A const proto = Object.getPrototypeOf(mock);%0A const descriptor = Object.getOwnProp... | |
a0317662258e7f7307f92f8c4d2d8cbd05337775 | Create autocomplete.js | client/js/autocomplete.js | client/js/autocomplete.js | JavaScript | 0.000002 | @@ -0,0 +1,1407 @@
+$(document).keydown(function(e)%7B if (e.keyCode = (tab-key?))%7B%0A $('input.autotab').trigger('tab:press');%0A %7D);%0A%0A// takes a text field and an array of strings for autocompletion%0A$('input.autotab').bind('tab:press', function()%7B%0A var userInput = $(inputField);%0A var userl... | |
faddbfc7bdaf847a005b85a96073678bf07e5916 | fix for back button | src/js/services/backButtonService.js | src/js/services/backButtonService.js | 'use strict';
angular.module('copayApp.services').factory('backButton', function($log, $rootScope, gettextCatalog, $deepStateRedirect, $document, $timeout, go) {
var root = {};
root.menuOpened = false;
root.dontDeletePath = false;
var arrHistory = [];
var body = $document.find('body').eq(0);
var shownExitMe... | JavaScript | 0.000001 | @@ -1748,24 +1748,118 @@
.substr(2);%0A
+%09%09%09%09if (path.indexOf('correspondentDevices.bot') != -1) %7B%0A%09%09%09%09%09go.walletHome();%0A%09%09%09%09%7D else %7B%0A%09
%09%09%09%09arrHisto
@@ -1891,24 +1891,25 @@
th - 2, 2);%0A
+%09
%09%09%09%09if (path
@@ -1917,16 +1917,17 @@
%7B%0A%09%09%09%09%09
+%09
... |
4c3c91b12d54781a099a0e7b7ea17733f78f4bdc | add app js | js/App.js | js/App.js | JavaScript | 0.000003 | @@ -0,0 +1,414 @@
+'use strict';%0Aimport React, %7B%0A Component,%0A%7D from 'react';%0Aimport %7B%0A Image,%0A StyleSheet,%0A Text,%0A View,%0A%7D from 'react-native';%0A%0Avar App = React.createClass(%7B%0A render() %7B%0A return (%0A %3CView style=%7Bstyles.container%7D%3E%0A%0A %3CText%3E%0A ... | |
6a8d0e0e6c5c765a123086be3cf987a711b5eb66 | Add ConversionSpecification class | src/format/sprintf_utils/conversion_specification.js | src/format/sprintf_utils/conversion_specification.js | JavaScript | 0 | @@ -0,0 +1,91 @@
+/**%0A * @ignore%0A */%0Aexport default class ConversionSpecification %7B%0A constructor() %7B%0A%0A %7D%0A%0A%7D
| |
7e13975fa6837436ce6e80f14e026b98fd88953f | Add dependency lint config | config/dependency-lint.js | config/dependency-lint.js | JavaScript | 0.000001 | @@ -0,0 +1,60 @@
+/* eslint-env node */%0A'use strict';%0A%0Amodule.exports = %7B%0A%0A%7D;%0A
| |
6fd23dababc14ad873a07319e48e20cfd3c19892 | fix Javascript foldername in Hamming Distance | Hamming_Distance/Javascript/jcla1/hamming_distance.js | Hamming_Distance/Javascript/jcla1/hamming_distance.js | JavaScript | 0 | @@ -0,0 +1,454 @@
+function hamming_distance(p, q) %7B%0A if (p.length != q.length) throw %22Sequences need to be of same length!%22;%0A return sum(zip(p, q).map(function(v) %7B%0A if (v%5B0%5D != v%5B1%5D) return 1;%0A return 0;%0A %7D))%0A%7D%0A%0Afunction sum(arr) %7B%0A return arr.reduce(f... | |
81a1612cbd3dff977ed9aaab6a1957d4dec22e72 | Fix reordering when name/description is edited. | static/js/user_groups.js | static/js/user_groups.js | var user_groups = (function () {
var exports = {};
var user_group_name_dict;
var user_group_by_id_dict;
// We have an init() function so that our automated tests
// can easily clear data.
exports.init = function () {
user_group_name_dict = new Dict({fold_case: true});
user_group_by_id_dict = new Dict();
};
... | JavaScript | 0 | @@ -532,17 +532,16 @@
mbers);%0A
-%0A
user
@@ -1510,28 +1510,29 @@
user_group_
-name
+by_id
_dict.values
@@ -1533,16 +1533,76 @@
values()
+.sort(function (a, b) %7B%0A return (a.id - b.id);%0A %7D)
;%0A%7D;%0A%0Aex
|
ba3ce3283d99a1cacb51ce9aa5e2dfb6395195ca | implement House Yronwood Knight (TFM) (#1818) | server/game/cards/08.5-TFM/HouseYronwoodKnight.js | server/game/cards/08.5-TFM/HouseYronwoodKnight.js | JavaScript | 0 | @@ -0,0 +1,700 @@
+const DrawCard = require('../../drawcard.js');%0A%0Aclass HouseYronwoodKnight extends DrawCard %7B%0A setupCardAbilities() %7B%0A this.reaction(%7B%0A when: %7B%0A afterChallenge: event =%3E event.challenge.loser === this.controller && event.challenge.isParticipati... | |
d894cec86eee44dfd07d3e906e80d4de145fafc8 | Fix service worker (sw path and scope were messed up) | static/service-worker.js | static/service-worker.js | JavaScript | 0 | @@ -0,0 +1,1689 @@
+var CACHE_NAME = 'v1'%0A%0Avar CAHCED_DEFAULTS = %5B%0A '/',%0A%0A '/styles/main.css',%0A '/styles/normalize.css',%0A%0A '/scripts/main.js',%0A %0A '/slides.json',%0A%0A 'https://fonts.googleapis.com/css?family=Material+Icons%7CRoboto:400,700'%0A%5D%0A%0Athis.addEventListener('i... | |
f0e0f7d1209fd03dd329f3f471e6c9bd865c7287 | implement blood of the first men (#2739) | server/game/cards/13.6-LMHR/BloodOfTheFirstMen.js | server/game/cards/13.6-LMHR/BloodOfTheFirstMen.js | JavaScript | 0 | @@ -0,0 +1,1080 @@
+const DrawCard = require('../../drawcard.js');%0D%0A%0D%0Aclass BloodOfTheFirstMen extends DrawCard %7B%0D%0A setupCardAbilities(ability) %7B%0D%0A this.attachmentRestriction(%7B controller: 'current' %7D); %0D%0A this.whileAttached(%7B%0D%0A effect: ability.effect... | |
caf3a5f8775fcebb0f0d23acfa6071301fd2031f | Enable private messages in local lite client | modules_basic/private.js | modules_basic/private.js | var h = require('hyperscript')
var u = require('../util')
var pull = require('pull-stream')
var Scroller = require('pull-scroll')
var ref = require('ssb-ref')
var plugs = require('../plugs')
var message_render = plugs.first(exports.message_render = [])
var message_compose = plugs.first(exports.message_compose = [])
v... | JavaScript | 0 | @@ -418,24 +418,80 @@
t_log = %5B%5D)%0A
+var sbot_whoami = plugs.first(exports.sbot_whoami = %5B%5D)%0A
var avatar_i
@@ -815,17 +815,16 @@
path) %7B%0A
-%0A
if(pat
@@ -825,17 +825,17 @@
if(path
-=
+!
== '/pri
@@ -845,75 +845,358 @@
e')
-%7B%0A if(process.title === 'browser')%0A return h('div', h('h4... |
7ffdbab8fdcd91e370d4ffe327c6427e26492a1a | Create countedLockableContainerPrototype.js | js/prototype/countedLockableContainerPrototype.js | js/prototype/countedLockableContainerPrototype.js | JavaScript | 0 | @@ -0,0 +1,1851 @@
+function CountedLockableContainer() %7B this.initialize.apply(this, arguments); %7D;%0A%0A(function(Parent) %7B%0A%0A 'use strict';%0A%0A var _MSG_MAX_COUNT_REACHED = %0A 'The maximum amount of tolerable key mismatches are reached';%0A%0A function _addKeyMismatchCount() %7B this.... | |
dd8ec779b21018a7eda5dd459d99995b6c1a1632 | Add RouterHistory implementation #6 | lib/router-history.js | lib/router-history.js | JavaScript | 0 | @@ -0,0 +1,2455 @@
+Fresh.RouterHistory = function() %7B%0A /**%0A * Stores a history of previous Component states with a stateful index%0A * pointing to a current position in this history. Similar to the native%0A * pushState implementation, but with access to all previous states (that%0A * can be updated at ... | |
f8db137c52d662b1980c5763dfd3c66016c29b9e | sorry not sorry | examples/react-native-vanilla/storybook/stories/index.js | examples/react-native-vanilla/storybook/stories/index.js | import React from 'react';
import { Text } from 'react-native';
import { storiesOf } from '@storybook/react-native';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import CenterView from './CenterView';
import Welcome from './Welcome'... | JavaScript | 0.999881 | @@ -660,33 +660,8 @@
moji
- everything look cooler %F0%9F%98%8E
', (
|
612a62ecace73f28fb11fadf64dc93a725c61093 | add experimental element selector | web-extension/selector.js | web-extension/selector.js | JavaScript | 0 | @@ -0,0 +1,3061 @@
+var lastTargetElem = null%0Avar lastElementData = %7B%7D%0Avar lastParentElem = null%0Avar lastParentData = %7B%7D%0A%0A%0Alet bodyElem = document.getElementsByTagName('body')%5B0%5D%0Alet bodyInner = bodyElem.innerHTML%0AbodyElem.innerHTML = ''%0A%0Alet container = document.createElement('div')%0Ac... | |
d42b494fb7526d7d86879f629b93cb4dd7d15ed9 | add meta script | tools/meta.js | tools/meta.js | JavaScript | 0.000001 | @@ -0,0 +1,787 @@
+'use strict';%0A%0Avar fs = require('fs');%0Avar manifest = require('../package.json');%0Avar file = process.argv.slice(2).toString();%0A%0Afunction read(file, callback) %7B%0A fs.readFile(file, 'utf8', function (error, chunk) %7B%0A if (error) %7B%0A throw error;%0A %7D%0A%0A callback... | |
db6065edb8ad4ec872c9116a48a937d0a4a66b76 | add image server for node.js | imageserver.js | imageserver.js | JavaScript | 0.000001 | @@ -0,0 +1,1333 @@
+var util = require(%22util%22), %0A http = require(%22http%22),%0A url = require(%22url%22),%0A fs = require(%22fs%22);%0A%0Autil.puts(process.cwd()); %0A %0A// start the server%0Ahttp.createServer(function(request,response)%7B %0A if (request.method == 'POST') %7B%0A var ... | |
a4516f5570ca2aba43f4e4f231269ca51808946e | add owlCarousel directive | grails-app/assets/javascripts/systaro/core/directives/uisOwlCarousel.js | grails-app/assets/javascripts/systaro/core/directives/uisOwlCarousel.js | JavaScript | 0.999378 | @@ -0,0 +1,352 @@
+//= wrapped%0A%0Aangular%0A%09.module('systaro.core')%0A%09.directive('uisOwlCarousel', uisOwlCarousel);%0A%0Afunction uisOwlCarousel($timeout) %7B%0A%09var directive = %7B%0A%09%09restrict: 'A',%0A%09%09link: link%0A%09%7D;%0A%0A%09return directive;%0A%0A%0A%09function link($scope, $elem, $attr) %7B... | |
abf56fdad4303be20ba28badf689fd88e4aa0da6 | Create cstw.js | cstw.js | cstw.js | JavaScript | 0 | @@ -0,0 +1,2457 @@
+(function(d, $, op) %7B%0A var op = $.extend(%7Btext: 'STRESS CSS',%0A stress_script: 'http://andy.edinborough.org/demos/css-stress/stressTest.js',%0A %7D, op)%0A , wid_cnt = $('%3Cdiv id=%22wid_cnt%22 /%3E')%0A .css(op.cnt_style %7C%7C %... | |
f4dac316272d6a6c2eada24850af8706d9827ce2 | Add modal stories | stories/Modal.stories.js | stories/Modal.stories.js | JavaScript | 0 | @@ -0,0 +1,2375 @@
+import React from 'react';%0Aimport %7B storiesOf %7D from '@storybook/react';%0Aimport Button from '../src/Button';%0Aimport Modal from '../src/Modal';%0A%0Aconst stories = storiesOf('javascript/Modal', module);%0A%0Astories.addParameters(%7B%0A info: %7B%0A text: %60Use a modal for dialog boxe... | |
526f8b906c55fab062f56c1bfd7b8c1a7b7188d1 | Set the canBeEdited flag on the 'Add engine' list item. | chrome/browser/resources/options/search_engine_manager.js | chrome/browser/resources/options/search_engine_manager.js | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.define('options', function() {
const OptionsPage = options.OptionsPage;
const ArrayDataModel = cr.ui.ArrayDataModel;
/**
* Encapsulated h... | JavaScript | 0.000006 | @@ -2545,16 +2545,45 @@
x': '-1'
+,%0A 'canBeEdited': true
%0A %7D
|
f87745e781546ab468e07e9fa760336c33e485c5 | Add protractor config file | lib/protractor.conf.js | lib/protractor.conf.js | JavaScript | 0 | @@ -0,0 +1,393 @@
+var path = require('path');%0A%0Aexports.config = %7B%0A //directConnect: true,%0A%0A seleniumAddress: 'http://localhost:4444/wd/hub',%0A%0A // Spec patterns are relative to the location of this config.%0A //specs: %5B%0A // 'example_spec.js'%0A //%5D,%0A%0A capabilities: %7B%0A 'browserNa... | |
1d1cbddeb06a5fe0511d53b71dddb3ca1e439bea | Add validators for container settings | src/js/stores/AppFormValidators.js | src/js/stores/AppFormValidators.js | var Util = require("../helpers/Util");
var ValidConstraints = require("../constants/ValidConstraints");
const AppFormValidators = {
appIdNotEmpty: (str) => !Util.isEmptyString(str),
appIdNoWhitespaces: (str) => str.match(/ /g) == null,
cpus: (value) =>
!Util.isEmptyString(value) && value.toString().match(/^[... | JavaScript | 0 | @@ -725,210 +725,953 @@
,%0A
-env: (obj) =%3E%0A !(Util.isEmptyString(obj.key) && !Util.isEmptyString(obj.value)),%0A executor: (str) =%3E Util.isString(str) &&%0A (new RegExp(%22%5E(%7C%5C%5C/%5C%5C/cmd%7C%5C%5C/?%5B%5E%5C%5C/%5D+(%5C%5C/%5B%5E%5C%5C/%5D+)*)$%22))%0A .test(str
+containerVolumesContainer... |
dadb9d13a7d1135c323aca8bcbe8d626d164ec54 | Create tasksRepository.js | lib/tasksRepository.js | lib/tasksRepository.js | JavaScript | 0.000001 | @@ -0,0 +1,243 @@
+'use strict';%0A%0Avar tasks = require('./tasks.json');%0Avar jp = require('jsonpath')%0A%0Amodule.exports = %7B%0A get: function (id) %7B%0A return jp.query(tasks, '$..%5B?(@.id=='+id+')%5D');%0A %7D,%0A all: function () %7B%0A return tasks;%0A %7D%0A%7D;%0A
| |
9e3855655e985d96fcf6f5fa452abe1bad2253a1 | Comment out console logging. | lib/header.js | lib/header.js | //global variables
var es = require('event-stream')
,fs = require('graceful-fs')
,path = require('path')
,clone = require('clone')
,extend = require('xtend')
,Mustache = require('mustache')
,EventEmitter = require('events').EventEmitter;
;
module.exports = Header;
Header.prototype.mapper = mapper;
Header.p... | JavaScript | 0 | @@ -1396,17 +1396,27 @@
ptions)%0A
-%0A
+ /*%0A
console.
@@ -1448,16 +1448,20 @@
rText);%0A
+
console.
@@ -1498,16 +1498,20 @@
%5Cr%5Cn'))%0A
+
console.
@@ -1540,32 +1540,36 @@
file.contents)%0A
+
console.log(%22%5Cnn
@@ -1604,16 +1604,20 @@
ntents)%0A
+
console.
@@ -1684,16 +1684,22 @... |
42e93923da7b799f56590297b00338242ffa8bac | Revert "always log" | lib/logger.js | lib/logger.js | 'use strict'
const pkgJson = require('../package.json')
const logger = {
/**
* Simple wrapper around console.log() to make it easy to mock it out in tests
* @param {String} msg - the message to log
* @param {Boolean} [force] - when true, log message even if VERBOSE is not set
*/
log (msg, force) {
... | JavaScript | 0 | @@ -313,19 +313,16 @@
e) %7B%0A
- //
if (for
@@ -349,24 +349,26 @@
ERBOSE'%5D) %7B%0A
+
console.
@@ -405,11 +405,8 @@
%0A
- //
%7D%0A
|
3f6a9628a91819a31fdcb041c5c72235b472927f | Fix router reactivity bug and move logic into onRun method on client. | lib/router.js | lib/router.js | function assert (condition, msg) {
if (!condition)
throw new Error(msg);
}
IronRouter = Class.extends({
initialize: function (options) {
this.configure(options);
this.routes = [];
this._current = null;
this._deps = new Deps.Dependency;
},
configure: function (options) {
this.options = ... | JavaScript | 0.000004 | @@ -1808,44 +1808,16 @@
xt;%0A
-%0A
-function handle () %7B%0A self
+this
.onR
@@ -1873,26 +1873,24 @@
ons));%0A%0A
-
if (context
@@ -1892,20 +1892,20 @@
text ==
-self
+this
._curren
@@ -1905,26 +1905,24 @@
_current) %7B%0A
-
cb &&
@@ -1940,22 +1940,20 @@
;%0A
- self
+this
.... |
27de62b960b45c744dcea690007fe42520941d9f | Create optionElementsParameterAdapter.min.js | src/min/parameter/optionElementsParameterAdapter.min.js | src/min/parameter/optionElementsParameterAdapter.min.js | JavaScript | 0.000001 | @@ -0,0 +1,218 @@
+function optionElementsParameterAdapter(e)%7Bfor(var t=0,n=%22%22;t%3Ce.length;n+=e%5Bt%5D.getAttribute(%22name%22)+%22=%22+encodeURIComponent(e%5Bt%5D.options%5Be%5Bt%5D.selectedIndex%5D.value),t++);return urlParams.substring(0,urlParams.length-1)%7D%0A
| |
17b1e1770eddc22c60b1ce6e90e7a928a976b8ae | Add fb login | public/javascripts/login.js | public/javascripts/login.js | JavaScript | 0.000001 | @@ -0,0 +1,399 @@
+$('.login').click(function() %7B%0A FB.login(function(response) %7B%0A if (response.authResponse) %7B%0A console.log('Welcome! Fetching your information.... ');%0A FB.api('/me', function(response) %7B%0A console.log('Good to see you, ' + response.name + '.');%0A %7D);%0A ... | |
2d9962ea7763ecb522940ed8940fcd5b64e01cb0 | Create salt.js | app/auth/salt.js | app/auth/salt.js | JavaScript | 0.000076 | @@ -0,0 +1,584 @@
+import btoa from 'btoa'%0A%0A/**%0A * Generate 16 bytes salt for bcrypt by seed. Should return the same salt for the same seed.%0A * @param %7Bstring%7D seed The seed for salt%0A */%0Aexport default function (seed) %7B%0A const bytes = %5B%5D%0A%0A for (let i = 0, l = seed.length; i %3C l; i++) %7... | |
f4c84d9c9b2cf7a15b947a6a1cb8d86e485431df | Install bower deps on addon install | blueprints/ember-purify/index.js | blueprints/ember-purify/index.js | JavaScript | 0 | @@ -0,0 +1,166 @@
+/*jshint node:true*/%0Amodule.exports = %7B%0A name: 'ember-purify',%0A%0A afterinstall: function(options) %7B%0A this.addBowerPackageToProject('DOMPurify', '%5E0.8.3');%0A %7D%0A%7D;%0A
| |
a430756bdf47c456c7ac75e33f43beee8704d6b1 | Create canvas.js | html/chapter/lib/canvas.js | html/chapter/lib/canvas.js | JavaScript | 0.000001 | @@ -0,0 +1 @@
+%0A
| |
b131e49af277064612c8ad271fb7deb70c13a90e | Create database migration | migrations/20160313143515_create_team_task_review_table.js | migrations/20160313143515_create_team_task_review_table.js | JavaScript | 0.000001 | @@ -0,0 +1,617 @@
+%0Aexports.up = function (knex, Promise) %7B%0A return knex.schema.createTable('team_task_reviews', (table) =%3E %7B%0A table.increments('id').primary()%0A table.integer('teamId').notNullable().references('id').inTable('teams')%0A table.integer('taskId').notNullable().references('id').inTab... | |
a796e8c20af0c7d316743cbe0313b1895e6e8796 | check out funcionality added | public/js/checkOutBasket.js | public/js/checkOutBasket.js | JavaScript | 0 | @@ -0,0 +1,3379 @@
+/* globals $*/%0A$(document).ready(function () %7B%0A function takeKeyFromProductsInBasket() %7B%0A let allProductsinBasket = $('.productInBasket');%0A let productKeysInBasket = %5B%5D;%0A for (let i = 0; i %3C allProductsinBasket.length; i++) %7B%0A ... | |
58e93ab45fa294fe9696e98e57515d78bde34efb | Make bkCellMenuPluginManager append to existing list, also allow single plugin targeting multiple cell types | core/src/main/web/app/helpers/cellmenupluginmanager.js | core/src/main/web/app/helpers/cellmenupluginmanager.js | /*
* Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | JavaScript | 0 | @@ -1053,16 +1053,253 @@
s = %7B%7D;%0A
+%0A var addPlugin = function(cellType, items) %7B%0A if (!_cellMenuPlugins%5BcellType%5D) %7B%0A _cellMenuPlugins%5BcellType%5D = %5B%5D;%0A %7D%0A _(items).each(function(it) %7B%0A _cellMenuPlugins%5BcellType%5D.push(it);%0A %7D);%0A %7D... |
5df1ebd2a217d253af9ccbf887db706c439b475e | change More to Settings and change the icon to fi-widget | js/controllers/sidebar.js | js/controllers/sidebar.js | 'use strict';
angular.module('copayApp.controllers').controller('SidebarController', function($scope, $rootScope, $sce, $location, $http, notification, controllerUtils) {
$scope.menu = [{
'title': 'Receive',
'icon': 'fi-download',
'link': 'receive'
}, {
'title': 'Send',
'icon': 'fi-arrow-right... | JavaScript | 0 | @@ -448,12 +448,16 @@
': '
-More
+Settings
',%0A
@@ -467,32 +467,30 @@
'icon': 'fi-
-download
+widget
',%0A 'link
|
2506b2b56e5e1b5dfa82e058ab0e4f98fae88912 | Allow vOffset option in floated dropdown alignment | js/foundation.util.box.js | js/foundation.util.box.js | 'use strict';
!function($) {
Foundation.Box = {
ImNotTouchingYou: ImNotTouchingYou,
GetDimensions: GetDimensions,
GetOffsets: GetOffsets
}
/**
* Compares the dimensions of an element to a container and determines collision events with container.
* @function
* @param {jQuery} element - jQuery object to test ... | JavaScript | 0 | @@ -6207,32 +6207,42 @@
nchorDims.height
+ + vOffset
%0A %7D;%0A
@@ -6430,16 +6430,26 @@
s.height
+ + vOffset
%0A %7D
|
9c0748bf5433ee0099b551a350c927b9a6582f88 | Task 9: Websockets | stream-adventure/task9.js | stream-adventure/task9.js | JavaScript | 0.999996 | @@ -0,0 +1,100 @@
+var ws = require('websocket-stream');%0Avar stream = ws('ws://localhost:8000');%0Astream.end('hello%5Cn');
| |
ff217a4400730c937c580ea8e11567e3e876639b | Enable specs | lib/assets/core/test/spec/cartodb3/components/form-components/editors/radio.spec.js | lib/assets/core/test/spec/cartodb3/components/form-components/editors/radio.spec.js | JavaScript | 0.000001 | @@ -0,0 +1,1652 @@
+var _ = require('underscore');%0Avar $ = require('jquery');%0Avar Backbone = require('backbone');%0Arequire('backbone-forms');%0ABackbone.$ = $;%0Arequire('../../../../../../javascripts/cartodb3/components/form-components/editors/radio');%0A%0Avar OPTIONS = %5B%7B%0A type: 'jpg',%0A label: '.jpg',... | |
0209dd62bcb932656b209eb4edf7ab51001cdade | Remove _getContributorsInformation | src/help/HelpCommandHandlers.js | src/help/HelpCommandHandlers.js | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0.000002 | @@ -2278,459 +2278,8 @@
%0A%09%0A
- /**%0A * @private%0A * Gets a data structure that has the information for all the contributors of Brackets.%0A * The information is fetched from brackets.config.contributors_url using the github API.%0A * @return %7B$.Promise%7D jQuery Promise object that is reso... |
8802e83ce78a8f7cf3a77275c82fff2bbad9c9ac | add date-report.js (still needs work) | date-report.js | date-report.js | JavaScript | 0 | @@ -0,0 +1,1634 @@
+#!/usr/bin/env node%0A%0Avar moment = require('moment'),%0A db = require('./db'),%0A candidates = %5B'Elissa Silverman', 'Dionne Bussey-Reeder'%5D;%0A%0Adb.select('receipt_date', 'candidate_name')%0A .count('* as contributions')%0A .sum('amount as amount')%0A .from('contributions')%0A... | |
41d4c54d1043662026cfaf4d411d1017d8da82ed | test append_output with invalid data | IPython/html/tests/casperjs/test_cases/safe_append_output.js | IPython/html/tests/casperjs/test_cases/safe_append_output.js | JavaScript | 0.000021 | @@ -0,0 +1,1069 @@
+//%0A// Test validation in append_output%0A//%0A// Invalid output data is stripped and logged.%0A//%0A%0Acasper.notebook_test(function () %7B%0A // this.printLog();%0A var messages = %5B%5D;%0A this.on('remote.message', function (msg) %7B%0A messages.push(msg);%0A %7D);%0A %0A ... | |
4046a6f9e8218a642d1bdcdb3532f66391f322a5 | Add osu! profile command. | commands/osu.js | commands/osu.js | JavaScript | 0 | @@ -0,0 +1,500 @@
+var mod = %7B%0A%09%22%22: %220%22,%0A%09%22basic%22: %220%22,%0A%09%22taiko%22: %221%22,%0A%09%22CTB%22: %222%22,%0A%09%22mania%22: %223%22%0A%7D%0A%0Avar cmd = module.exports = %7B%7D;%0A%0Acmd.type = %22basic%22;%0Acmd.command = true;%0Acmd.help = %22Get osu account informations. ex: $%7Cosu %5Bus... | |
358c64f020b8520525acefcbf1ef020e1c0712cd | Add exchange service | public/app/services/exchangeService.js | public/app/services/exchangeService.js | JavaScript | 0.000001 | @@ -0,0 +1,639 @@
+angular.module('exchangeService', %5B%5D)%0A%0A.factory('Exchange', function($http) %7B%0A%0A%09// create a new object%0A%09var exchangeFactory = %7B%7D;%0A%0A%09// get the exchanges%0A%09exchangeFactory.all = function() %7B%0A%09%09return $http.get('/api/exchange');%0A%09%7D;%0A%0A%09// create an ex... | |
6f55c3dcbb6ea80f0ec6b592a1ae965a344e451a | add Operation model (roughly) | public/javascripts/models/Operation.js | public/javascripts/models/Operation.js | JavaScript | 0 | @@ -0,0 +1,73 @@
+function Operation()%7B%0A%7D%0A%0AOperation.prototype.getDetail = function() %7B%0A%7D;%0A
| |
a2c1a4625d67d38014278239e8ccac01b68a240f | Add buffer | src/buffer.js | src/buffer.js | JavaScript | 0.000005 | @@ -0,0 +1,217 @@
+'use strict';%0A%0Avar str = '%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF';%0Avar byte = Buffer.byteLength(str);%0Aconsole.log(str, '=', byte, 'byte');%0A%0Avar buf = new Buffer(64);%0Abuf.write(str);%0Abuf.write('hello', byte);%0Aconsole.log(buf.slice(0, 20).toString());%0A
| |
7bfab34061de5db55a95e9a67e6828755b94be4e | add util httpRequest.js | scripts/Util.httpRequest.js | scripts/Util.httpRequest.js | JavaScript | 0.000002 | @@ -0,0 +1,593 @@
+/**%0A * makes http requests to specified url. Returns response as callback param%0A * %0A * @param url %7BString%7D url of server to get response from%0A * @param callback %7BFunction%7D function to call after response is received from server%0A */%0Afunction httpRequest(url, callback) %7... | |
184cd407f85f39d310516672fa04a18dff7c4b0c | Make color information available to iwindow | src/colors.js | src/colors.js | JavaScript | 0 | @@ -0,0 +1,362 @@
+define(%5B%5D, function() %7B%0A return %7B%0A getColor: function(colorSeries, boundsArray, val) %7B%0A for (var i in boundsArray) %7B%0A if ((val-boundsArray%5Bi%5D%3E=0) && (val-boundsArray%5BparseInt(i)+1%5D%3C0)) %7B%0A%09 return colorSeries%5Bbounds... | |
4be233251a810e6a74c3ffa271378e91e0148dca | Add tests for moving a file | backend/servers/mcapid/lib/dal/__tests__/files-tests.js | backend/servers/mcapid/lib/dal/__tests__/files-tests.js | JavaScript | 0.000001 | @@ -0,0 +1,1177 @@
+const r = require('@lib/r');%0Aconst files = require('@dal/files')(r);%0Aconst tutil = require('@lib/test-utils')(r);%0Aconst dirUtils = require('@dal/dir-utils')(r);%0A%0Adescribe('Test moveFileToDirectory', () =%3E %7B%0A let project, dir1, fileInDir1;%0A%0A beforeAll(async() =%3E %7B%0A ... | |
f9b17db834500099af323ca859cb3be0f1f9dea1 | Add JobsList component | src/components/JobsList.js | src/components/JobsList.js | JavaScript | 0 | @@ -0,0 +1,753 @@
+var React = require('react/addons');%0Avar JobStore = require('../stores/JobStore');%0Avar JobItem = require('./JobItem');%0A%0Avar JobsList = React.createClass(%7B%0A getInitialState: function() %7B%0A return %7B jobs: JobStore.getAll() %7D;%0A %7D,%0A componentDidMount: function() %7B%... | |
c2474744b2a67cb30856d1fd8855ece3c7510c52 | Add messages formatter | src/format.js | src/format.js | JavaScript | 0.000001 | @@ -0,0 +1,82 @@
+module.exports = function(string) %7B%0A return string.replace(/%5Cn%5Cs*/gm, ' ');%0A%7D;%0A
| |
2a0906d2d3b5f6b7e44ccfbca9ad62539506d8d3 | Update lru_cache.js | src/bloodhound/lru_cache.js | src/bloodhound/lru_cache.js | /*
* typeahead.js
* https://github.com/twitter/typeahead.js
* Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT
*/
// inspired by https://github.com/jharding/lru-cache
var LruCache = (function() {
'use strict';
function LruCache(maxSize) {
this.maxSize = _.isNumber(maxSize) ? maxSize... | JavaScript | 0.000001 | @@ -717,16 +717,38 @@
em.key%5D;
+%0A%0A this.size--;
%0A %7D
|
492d92a424a6853b8797de61427c60050426e253 | Create bnet-sticky-toggle.meta.js | bnet-sticky-toggle.meta.js | bnet-sticky-toggle.meta.js | JavaScript | 0.000002 | @@ -0,0 +1,508 @@
+// ==UserScript==%0A// @name Battle.net Sticky Thread Toggle%0A// @namespace http://www.example.com/gmscripts%0A// @description Hides sticky threads in all Battle.net forums with toggle button%0A// @version 1.0%0A// @downloadURL https://www.example.com/myscript.user.js%0A// @up... | |
908272a9e90c9ec6644f3f1112a3afbe7660684d | add execute() serial order test | test/integration/connection/test-execute-order.js | test/integration/connection/test-execute-order.js | JavaScript | 0.000001 | @@ -0,0 +1,555 @@
+var common = require('../../common');%0Avar connection = common.createConnection();%0Avar assert = require('assert');%0A%0Avar order = %5B%5D;%0Aconnection.execute('select 1+2', function (err, _rows, _fields) %7B%0A assert.ifError(err);%0A order.push(0);%0A%7D);%0Aconnection.execute('select 2+2', f... | |
9a89492b208c001165d272e1eedb36a4af97bdb2 | Add levels module. | src/levels.js | src/levels.js | JavaScript | 0 | @@ -0,0 +1,133 @@
+export default %5B%7B%0A tileSet: %5B%0A %5B4, 5, 1, 7%5D,%0A %5B14, 1, 3, 2%5D,%0A %5B5, 20, 13, 8%5D,%0A %5B14, 1, null, 10%5D,%0A %5D,%0A moves: 10,%0A%7D%5D;%0A
| |
6155e47d95070463f2ded2d39198ffb4b068a96c | Add PaymayaSDK initialization | lib/paymaya/PaymayaSDK.js | lib/paymaya/PaymayaSDK.js | JavaScript | 0 | @@ -0,0 +1,718 @@
+function PaymayaSDK() %7B%0A%0A%09this.ENVIRONMENT = %7B%0A%09%09PRODUCTION: %22PRODUCTION%22,%0A%09%09SANDBOX: %22SANDBOX%22%0A%09%7D;%0A%0A%7D;%0A%0APaymayaSDK.prototype = %7B%0A%0A%09initCheckout: function(apiKey, environment) %7B%0A%09%09this._checkoutApiKey = apiKey;%0A%09%09this._checkoutEnviro... | |
bea1d91d2792a81e36120d6d9193d93b718efa96 | Add tests | lib/node_modules/@stdlib/repl/server/test/test.namespace.js | lib/node_modules/@stdlib/repl/server/test/test.namespace.js | JavaScript | 0.000001 | @@ -0,0 +1,1026 @@
+'use strict';%0A%0A// MODULES //%0A%0Avar tape = require( 'tape' );%0Avar proxyquire = require( 'proxyquire' );%0Avar ns = require( './../lib/functions/namespace.js' );%0A%0A%0A// FIXTURES //%0A%0Afunction namespace() %7B%0A%09var ns = %5B%0A%09%09%7B%0A%09%09%09'alias': 'beep',%0A%09%09%09'value': ... | |
ce177a9a20ddbe09072d0780069c8a49bc836cb0 | Document workspace API completable arguments | lib/node_modules/@stdlib/repl/ctor/lib/workspace_aliases.js | lib/node_modules/@stdlib/repl/ctor/lib/workspace_aliases.js | JavaScript | 0 | @@ -0,0 +1,2175 @@
+/**%0A* @license Apache-2.0%0A*%0A* Copyright (c) 2019 The Stdlib Authors.%0A*%0A* Licensed under the Apache License, Version 2.0 (the %22License%22);%0A* you may not use this file except in compliance with the License.%0A* You may obtain a copy of the License at%0A*%0A* http://www.apache.org/lic... | |
7c963443625e086463dab9832cfacccec01564aa | Add txQueue service. | src/js/services/txqueue.js | src/js/services/txqueue.js | JavaScript | 0 | @@ -0,0 +1,2178 @@
+/**%0A * Transaction Queue%0A *%0A * This is the Transaction Queue service%0A */%0A%0Avar module = angular.module('txQueue', %5B%5D);%0A%0Amodule.service('rpTxQueue', %5B'$rootScope', 'rpNetwork', 'rpKeychain', 'rpId',%0A function($scope, network, keychain, id)%0A%7B%0A return %7B%0A /**%0A ... | |
b26c45512a78b80aee74ea786002b89b0cb3083a | Create TooManyItems.js | Scripts/TooManyItems.js | Scripts/TooManyItems.js | JavaScript | 0 | @@ -0,0 +1,10 @@
+/*%0A *%0A */%0A
| |
1be06e4cbd4da9274fd16631b32a8717fbfcefc9 | test the case of no operation specified on an api fn | src/decorator/index.spec.js | src/decorator/index.spec.js | JavaScript | 0.000002 | @@ -0,0 +1,304 @@
+import %7Bdecorate%7D from './index';%0A%0Adescribe('Decorate', () =%3E %7B%0A it('returns the api fn if no operation specified', () =%3E %7B%0A const f = (x) =%3E x;%0A const entity = %7Bapi: %7BgetAll: f%7D%7D;%0A const res = decorate(null, null, entity);%0A expect(re... | |
8c038aa148c604889e1d438576c71509c5460ca2 | Add version.js | src/version.js | src/version.js | JavaScript | 0.000002 | @@ -0,0 +1,987 @@
+(function() %7B%0A 'use strict';%0A%0A var semver = require('semver');%0A var ConfigFile = require('./config');%0A%0A var Version = function() %7B%0A this.configFile = new ConfigFile();%0A %7D;%0A%0A Version.prototype = %7B%0A get: function() %7B%0A var configObj = this.configFile.ge... | |
0f3036a99bf85abd8f9d04c52a667056c13f1ef6 | Add exports.js for browserify. | browserified/exports.js | browserified/exports.js | JavaScript | 0 | @@ -0,0 +1,174 @@
+/**%0A * Use this file to browserify a global object.%0A */%0A%0Aimport maas from '../index';%0A%0Avar maasInWindow = window.maas %7C%7C %7B%7D;%0AmaasInWindow = maas;%0Awindow.maas = maasInWindow;%0A
| |
a13fbc5714eef0f70b3be9ffeaed7383f22b9d36 | check in create_new_plugin generator | bin/plugin_manager/create_new_plugin.js | bin/plugin_manager/create_new_plugin.js | JavaScript | 0 | @@ -0,0 +1,2157 @@
+var localPlugins = require('./local_plugins')%0Avar prompt = require('prompt')%0Avar path = require('path')%0Avar fs = require('fs')%0Avar spawn = require('child_process').spawn%0A%0Amodule.exports = function () %7B%0A var pluginsPath = localPlugins.path()%0A prompt.message = %22plugin%22;%0A pro... | |
64bb585efe4cc76abcda32d676cbc9ac9e44c781 | Add createInternalRecord helper method | src/sync/createInternalRecord.js | src/sync/createInternalRecord.js | JavaScript | 0 | @@ -0,0 +1,792 @@
+/**%0A * mSupply Mobile%0A * Sustainable Solutions (NZ) Ltd. 2019%0A */%0A%0A/**%0A * Methods to create internal records from a requested%0A * sync/external record. Used primarily by%0A * createOrUpdateRecord in incomingSyncUtils.%0A */%0A%0Aimport %7B parseBoolean %7D from './incomingSyncUtils';%0A%... | |
06903810807db76505ab13b8c8de8e2fd1b16968 | Add issauble_context_spec | spec/javascripts/issuable_context_spec.js | spec/javascripts/issuable_context_spec.js | JavaScript | 0.000907 | @@ -0,0 +1,769 @@
+import '~/issuable_context';%0A%0Afdescribe('IssuableContext', () =%3E %7B%0A describe('toggleHiddenParticipants', () =%3E %7B%0A beforeEach(() =%3E %7B%0A%0A %7D);%0A%0A fit('calls loadCheck if lazyLoader is set', () =%3E %7B%0A gl.lazyLoader = jasmine.createSpyObj('lazyLoader', %5B'l... | |
76a2946b6dbb184bf252dd1c8b4d25e554e85499 | Add script to convert from binary representation to symbolic notation | lib/node_modules/@stdlib/process/umask/scripts/binary_to_symbolic.js | lib/node_modules/@stdlib/process/umask/scripts/binary_to_symbolic.js | JavaScript | 0.000001 | @@ -0,0 +1,1952 @@
+'use strict';%0A%0Avar toBinaryString = require( '@stdlib/number/uint16/base/to-binary-string' );%0Avar lpad = require( '@stdlib/string/left-pad' );%0A%0A// Set this to %22pretty%22 print results:%0Avar PRETTY_PRINT = false;%0A%0Avar TOTAL;%0Avar masks;%0Avar bstr;%0Avar perm;%0Avar who;%0Avar tmp;%... | |
af322b46f85a546531496c9ed5449e5aef793f7f | Split large regex. | src/sites/image/mihalism.js | src/sites/image/mihalism.js | (function () {
'use strict';
function helper (m) {
$.openImage('/images/' + m.query[1]);
}
// mihalism v1
$.register({
rule: {
host: /^(hentai-hosting|miragepics|funextra\.hostzi|imgrex)\.com|bilder\.nixhelp\.de|imagecurl\.(com|org)|imagevau\.eu|img\.deli\.sh|imgking\.us|image(pong|back)\.info... | JavaScript | 0.000005 | @@ -147,24 +147,34 @@
%0A host:
+ %5B%0A
/%5E(hentai-h
@@ -220,17 +220,30 @@
ex)%5C.com
-%7C
+$/,%0A /%5E
bilder%5C.
@@ -253,17 +253,30 @@
help%5C.de
-%7C
+$/,%0A /%5E
imagecur
@@ -291,48 +291,100 @@
org)
-%7Cimagevau%5C.eu%7Cimg%5C.deli%5C.sh%7Cimgking%5C.us%7C
+$/,%0A /%5Eimag... |
5c417984caf97b4a9b57ee766cf727aba7c85692 | add do_while.js file | samples/do-while.js | samples/do-while.js | JavaScript | 0.000001 | @@ -0,0 +1,51 @@
+var x=0%0Ado%7B%0Ax++;%0Aconsole.log(%22X:%22+x);%0A%7Dwhile(x%3C6);%0A
| |
b32c1b2e60f812dbcf5d7e3ff4d692f7b11530f4 | Create cf-to-klaviyo-plugin.js | cf-to-klaviyo-plugin.js | cf-to-klaviyo-plugin.js | JavaScript | 0 | @@ -0,0 +1,1774 @@
+var LIST_ID = %22Q5KHAH%22;%0Avar API_KEY = %22pk_062326770f82ba8c3a1eb6d3f48f7dfbb0%22;%0A%0A/*%0A$phone_number phone number%0A$title title at their business or organization%0A$organization business or organization they belong to%0A$city city they live in%0A$region region or state they live in%0A$c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.