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 |
|---|---|---|---|---|---|---|---|
a1dc477e1edb0d87bad8a5a0b209ae2a70c7ec92 | Allow test database marking to work with any db name ending in "test". | vendor/couchapp/evently/account/loggedIn/after.js | vendor/couchapp/evently/account/loggedIn/after.js | function() {
var pathname = window.location.pathname;
if (pathname.indexOf("/test/_design") != -1) {
var header = $("#header");
header.css("background-color", "yellow");
var txt = header.children("h1");
txt.text(txt.text() + " (Test Database!)");
}
};
//@ sourceURL=/account/loggedIn/after.js
| JavaScript | 0 | @@ -73,17 +73,16 @@
ndexOf(%22
-/
test/_de
|
3a6b71f877e4409209d9d9b0e8b4422608a3d317 | add clear node; add object update function | base.js | base.js | import h from 'virtual-dom/h'
import diff from 'virtual-dom/diff'
import patch from 'virtual-dom/patch'
import createElement from 'virtual-dom/create-element'
let debug = true;
class Thunk {
constructor(renderFn, state, shouldUpdate) {
this.type = 'Thunk';
this.renderFn = renderFn;
this.state = state;
... | JavaScript | 0.000001 | @@ -2785,16 +2785,75 @@
e' %7D %7D);
+%0Aexport var clear = h('div', %7B style: %7B clear: 'both' %7D %7D);
%0A%0Aexport
@@ -2913,8 +2913,184 @@
bs%5D);%0A%7D%0A
+%0Aexport function update(obj, path, value) %7B%0A if (path.length == 0) %7B%0A return value;%0A %7D%0A return %7B...obj,%0A %5Bpath%5B0%5D%5D: u... |
8b25f06e2f27bf5cec7cac7770a97ef44199d395 | correct render cycle | lib/gameboy.js | lib/gameboy.js | 'use strict';
var debug = require('debug')('gameboy');
var Cpu = require('./cpu');
var Mmu = require('./mmu');
var Gpu = require('./gpu');
var Timer = require('./ctrl/timer');
var Lcd = require('./ctrl/lcd');
var Canvas = require('./renderers/canvas')
// - http://www.codeslinger.co.uk/pages/projects/gameboy/beginni... | JavaScript | 0.000001 | @@ -1111,24 +1111,125 @@
(cycles) %7B%0A%0A
+ this._timer.step(cycles);%0A this._lcd.step(cycles);%0A this._cpu.doInterrupts();%0A%0A
// %60
@@ -1361,9 +1361,10 @@
u.t
-%3C
+%3E=
MAX
@@ -1396,102 +1396,18 @@
is._
-timer.step(cycles);%0A this._lcd.step(cycles);%0A ... |
dccda62d446151d651463e0a62dd825e93979794 | fix duplicate file bug with watcher | lib/watcher.js | lib/watcher.js | var Gaze = require('gaze').Gaze;
var fse = require('fs-extra');
var minimatch = require('minimatch');
var path = require('path');
var _ = require('lodash');
function AcetateWatcher (acetate) {
this.acetate = acetate;
_.bindAll(this);
}
AcetateWatcher.prototype.start = function(){
this.watcher = new Gaze(this.ac... | JavaScript | 0 | @@ -1812,24 +1812,89 @@
(filepath)%7B%0A
+ filepath = filepath.replace(this.acetate.src + path.sep, '');%0A%0A
var page =
@@ -1928,16 +1928,11 @@
s, %7B
-template
+src
: fi
|
e29ce5c2fa88100e3db9ad8b33e1fc809f5d1df7 | normalize attributes to an object | src/attributes.js | src/attributes.js | import {inject} from 'aurelia-dependency-injection';
/***
* is only used internally. In future might make this a seperate plugin
*/
@inject(Element)
export class AttributesCustomAttribute {
constructor(element) {
this.element = element;
}
valueChanged() {
Object.keys(this.value).forEach(attribute =>... | JavaScript | 0 | @@ -281,16 +281,36 @@
ct.keys(
+normalizeAtttibutes(
this.val
@@ -312,16 +312,17 @@
s.value)
+)
.forEach
@@ -419,8 +419,434 @@
%0A %7D%0A%0A%7D%0A
+%0A/**%0A * @param %7Bobject%7Cstring%7Cstring%5B%5D%7D value%0A * @returns %7Bobject%7D where all the values are strings or boolean%0A */%0Afunction normalizeAtttibu... |
705dc9877926bbe6fbd7907c7f286d54f4b16924 | stop tracking warnings | api/src/utils/logger/sentry.js | api/src/utils/logger/sentry.js | import Raven from 'raven'
import Transport from 'winston-transport'
const util = require('util');
const winstonLevelToSentryLevel = {
silly: 'debug',
verbose: 'debug',
info: 'info',
debug: 'debug',
warn: 'warning',
error: 'error'
};
/**
* @param {Error} error
*/
const errorHandler = (error) ... | JavaScript | 0 | @@ -1831,20 +1831,21 @@
level: '
-warn
+error
'%7D)%0A tr
|
89a01726f3efdd6a4762610e20d8afe76160c9d5 | Add FIXME reminder. | scripts/behaviors/npcs/randommove.js | scripts/behaviors/npcs/randommove.js | var otherPlayers = require('../../../src/command_util.js').CommandUtil.otherPlayerInRoom;
exports.listeners = {
playerEnter: chooseRandomExit
};
function chooseRandomExit(room, rooms, player, players, npc) {
return function(room, rooms, player, players, npc) {
if (isCoinFlip()) {
var exits = room.getExi... | JavaScript | 0 | @@ -142,16 +142,73 @@
xit%0A%7D;%0A%0A
+//FIXME: Occasionally causes crash because of undefined.%0A
function
@@ -559,17 +559,16 @@
tion);%0A%0A
-%0A
@@ -1009,87 +1009,8 @@
%0A%7D%0A%0A
-//TODO: Candidates for utilification.%0A//TODO: Consider NPC only leave_messages%0A
func
@@ -1177,19 +1177,58 @@
eaves... |
e2eaf500ea5406e2e2b52200a4046bd9afd1bc76 | update function trimFractionLeadingZeros | src/main/helpers/trimFractionLeadingZeros.js | src/main/helpers/trimFractionLeadingZeros.js | export default function trimFractionLeadingZeros(numStr) {
const [, wholeNumStr, fractionStr] = /^(\d+)\.(\d+)$/.exec(numStr) || [];
if (undefined === fractionStr) {
return numStr;
}
const fraction = parseInt(fractionStr, 10);
return `${wholeNumStr}.${fraction}`;
}
| JavaScript | 0 | @@ -46,18 +46,63 @@
ros(
-numStr) %7B%0A
+floatNum, length) %7B%0A%0A const numStr = String(floatNum);
%0A c
@@ -232,16 +232,100 @@
Str;%0A %7D
+%0A%0A const filledFractionStr = fractionStr + '0'.repeat(length - fractionStr.length);
%0A const
@@ -346,16 +346,22 @@
rseInt(f
+illedF
ractionS
|
bad188bee1e6ab8f6d9c5ee159d515c5cf53939e | Make a plugins folder if it doesn't exist yet. | Onebot.js | Onebot.js | var start = new Date();
var yaml = require('js-yaml');
var fs = require('fs');
var doc = yaml.safeLoad(fs.readFileSync('config.yaml', 'utf8'));
var path = require('path');
var includeAll = require('include-all');
var jsdom = require("jsdom");
var controllers = includeAll({
dirname : path.join(__dirname, 'plugi... | JavaScript | 0 | @@ -234,24 +234,158 @@
(%22jsdom%22);%0A%0A
+var dir = './plugins';%0A%0Aif (!fs.existsSync(dir))%7B%0A console.log(%22Plugins folder don't exist. Creating.%22);%0A fs.mkdirSync(dir);%0A%7D%0A%0A
var controll
@@ -482,16 +482,66 @@
)%5C.obp$/
+,%0A flatten : true,%0A keepDirectoryPath : true
%0A%7D);%0A%... |
5d8473ac5e6a630058c2da9fee2229b2678fef5c | Remove unnecessary semi-colons | redfern.bs.confirm.js | redfern.bs.confirm.js |
;
(function ($, window, document, undefined) {
var defaultTemplate = '<div class="modal fade" role="dialog">' +
'<div class="modal-dialog">' +
'<div class="modal-content">' +
'<div class="modal-header"><button type="button" class="close" data-dismiss="modal">×</button><h4 clas... | JavaScript | 0.999705 | @@ -1,9 +1,4 @@
-%0D%0A;%0D%0A
(fun
@@ -2005,33 +2005,32 @@
irm);%0D%0A %7D
-;
%0D%0A%0D%0A func
@@ -2097,33 +2097,32 @@
$el);%0D%0A %7D
-;
%0D%0A%0D%0A func
@@ -4463,33 +4463,32 @@
%7D%0D%0A %7D
-;
%0D%0A%0D%0A func
@@ -4573,33 +4573,32 @@
tle);%0D%0A %7D
-;... |
546485f7ada74a1762421173c15a91b4f8eb2e3b | Throw a try catch around logger | plugins/telegram.js | plugins/telegram.js | const LifeforcePlugin = require("../utils/LifeforcePlugin.js");
const fs = require("fs");
let messageQueue = [];
let readySend = false;
let readyTimer = null;
class TelegramBot extends LifeforcePlugin {
constructor(restifyserver, logger, name) {
super(restifyserver, logger, name);
this.apiMap = [
{
... | JavaScript | 0.000001 | @@ -1704,16 +1704,17 @@
function
+
(message
@@ -1713,24 +1713,24 @@
(message) %7B%0A
-
mess
@@ -1893,24 +1893,42 @@
ngth %3E 0) %7B%0A
+ try %7B%0A
th
@@ -1939,32 +1939,34 @@
ot.sendMessage(%0A
+
this
@@ -1990,16 +1990,18 @@
chatid,%0A
+
@@ -2030,34 +2030... |
c7943e0343cad8699dafef6e193803c8da4cb82f | Improve coverage for schema cache resource | Specs/Scene/SchemaCacheResourceSpec.js | Specs/Scene/SchemaCacheResourceSpec.js | import {
Resource,
ResourceCacheKey,
SchemaCacheResource,
when,
} from "../../Source/Cesium.js";
describe("Scene/SchemaCacheResource", function () {
var schemaJson = {
classes: {
tree: {
properties: {
height: {
type: "FLOAT32",
},
type: {
... | JavaScript | 0 | @@ -2,16 +2,38 @@
mport %7B%0A
+ CacheResourceState,%0A
Resour
@@ -36,16 +36,16 @@
source,%0A
-
Resour
@@ -2280,32 +2280,84 @@
source.load();%0A%0A
+ expect(cacheResource.cacheKey).toBe(cacheKey);%0A%0A
return cache
@@ -2891,32 +2891,84 @@
heKey,%0A %7D);%0A%0A
+ expect(cacheResource.cacheKey).... |
21cdd0bc358e78ae85c24be6c615e718b6dbe3ce | Update analysis definitions on update | lib/assets/javascripts/cartodb3/data/analysis-definition-model.js | lib/assets/javascripts/cartodb3/data/analysis-definition-model.js | var _ = require('underscore');
var Backbone = require('backbone');
var syncAbort = require('./backbone/sync-abort');
/**
* Analysis definition model.
* Points to a node that is the head of the particular analysis.
*/
module.exports = Backbone.Model.extend({
/**
* @override {Backbone.prototype.sync} abort ongo... | JavaScript | 0 | @@ -918,16 +918,42 @@
%7Bsilent:
+ true, merge: true, parse:
true%7D);
|
3f22077ce8e20971584e87615316354f0f3bf11b | use separate modules for each test to reset artwork cache | api/tests/src/artwork_tests.js | api/tests/src/artwork_tests.js | 'use strict';
const path = require('path');
const { promisify } = require('util');
const readFile = promisify(require('fs').readFile);
const q = require('qunit');
const { client, usePlayer, config, tracks } = require('./test_context');
function getFile(name)
{
return readFile(path.join(config.musicDir, name), nul... | JavaScript | 0 | @@ -532,16 +532,18 @@
'artwork
+ 1
', usePl
@@ -551,16 +551,16 @@
yer());%0A
-
%0Aq.test(
@@ -833,32 +833,69 @@
xpected));%0A%7D);%0A%0A
+q.module('artwork 2', usePlayer());%0A%0A
q.test('get from
@@ -1166,21 +1166,58 @@
cted));%0A
-
%7D);%0A%0A
+q.module('artwork 3', usePlayer());%0A%0A
q.test('
|
d087c5acb60d516b74e6a00565d838b6b0313a2f | test fixup | packages/routing/tests/unit/routes/cardstack-test.js | packages/routing/tests/unit/routes/cardstack-test.js | import { moduleFor, test } from 'ember-qunit';
moduleFor('route:cardstack', 'Unit | Route | cardstack', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});
| JavaScript | 0.000001 | @@ -163,19 +163,16 @@
test.%0A
- //
needs:
@@ -177,22 +177,33 @@
: %5B'
-controller:foo
+service:cardstack-routing
'%5D%0A%7D
|
5678a7d661cbbc8e3dfcfec9adee7e28a9756965 | enhance config | config/config.js | config/config.js | // etlog confoguration file
// ==========================================================================================
// javascript variables used in etlog project
// ==========================================================================================
module.exports = {
// number of failed logins records wh... | JavaScript | 0.000001 | @@ -482,16 +482,305 @@
%C3%A1%C5%A1en%C3%AD%22,%0A
+ // email of national radius admin%0A radius_admin : %22jan.tomasek@cesnet.cz%22,%0A // from email address set for outgoing mails%0A mail_from_address: 'etlog@etlog.cesnet.cz %3Cetlog@etlog.cesnet.cz%3E',%0A // reply to email address set for outgoing mails%0A m... |
4f66c1657ca718fad23147177df6543c61e3525c | FIX error in rss plugin | plugins/user.rss.js | plugins/user.rss.js | var mongo = require('mongodb'),
MongoClient = mongo.MongoClient,
xmpp = require('node-xmpp'),
request = require('request'),
Url = require('url'),
FeedParser = require('feedparser');
exports.rss = {
name: 'rss',
group: 'User tools',
about: 'Monitor RSS feed',
help: 'rss add <URL> [SH... | JavaScript | 0 | @@ -4804,24 +4804,71 @@
, client)%0A%7B%0A
+ if (!feedData.url) %7B%0A return;%0A %7D%0A
request(
|
90f12da91ca6b7a3f4782da9925b6ef7221fd564 | Fix typo | src/models/middleware/Format.js | src/models/middleware/Format.js | /**
* @this import('mongoose').MongooseDocument
*/
async function validate () {
const feed = await this.model('Feed').findById(this.feed).exec()
if (!feed) {
throw new Error(`Subscriber's specified feed ${this.feed} was not found`)
}
const current = await this.model('Format').findById(this._id).exec()
/... | JavaScript | 0.999999 | @@ -182,18 +182,14 @@
or(%60
-Subscriber
+Format
's s
|
df5c1c44c7b5df1410fe63fe2dfce7353212e6a2 | rename tests for wrapper to follow assertion style | sashimi-webapp/test/unit/specs/logic/wrapper.spec.js | sashimi-webapp/test/unit/specs/logic/wrapper.spec.js | const wrapper = require('src/logic/wrapper');
describe('Wrapper', () => {
it('test1: handles empty data', () => {
const test1 = wrapper.render('');
expect(test1).to.equal('');
});
it('test2: handles plaintext data', () => {
const test2 = wrapper.render('test');
expect(test2).to.equal('<p>test<... | JavaScript | 0 | @@ -78,22 +78,151 @@
it('
-test1: handles
+should handle null data correctly', () =%3E %7B%0A const test1 = wrapper.render(null);%0A%0A expect(test1).to.equal('');%0A %7D);%0A%0A it('should handle
emp
@@ -224,24 +224,34 @@
e empty data
+ correctly
', () =%3E %7B%0A
@@ -255,33 +255,33 @@
%7B%0A const t... |
13d63998f91ea87feedd2126c815dbcaa782073d | Update descriptions | lib/node_modules/@stdlib/math/base/random/frechet/lib/validate.js | lib/node_modules/@stdlib/math/base/random/frechet/lib/validate.js | 'use strict';
// MODULES //
var isPositiveNumber = require( '@stdlib/assert/is-positive-number' ).isPrimitive;
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
var isnan = require( '@stdlib/assert/is-nan' );
// MAIN //
/**
* Validates parameters.
*
* @private
* @param {PositiveNumber} alpha - shap... | JavaScript | 0 | @@ -699,32 +699,41 @@
ument must be a
+positive
number primitive
@@ -889,32 +889,41 @@
ument must be a
+positive
number primitive
|
c97cd58cf29f064435f0943d4edb3d9f8271ff13 | Fix d'une faille XSS (noobz power -_-) | libs/socket.js | libs/socket.js | var socket = {};
var moment = require('moment-timezone');
var async = require('async');
var entities = require("entities");
var users = require('../models/users.js');
var messages = require('../models/messages.js');
socket.init = function( io ) {
io.on('connection', function( socket ) {
var session = ... | JavaScript | 0.000002 | @@ -1836,32 +1836,53 @@
add( time, user,
+ entities.encodeHTML(
message );%0A io
@@ -1866,32 +1866,33 @@
deHTML( message
+)
);%0A io.emit('me
|
73afaf5cb0bb02c5b9a949a527f719ab948fb0ad | Range expression function should return an empty array if scale lookup fails. | packages/vega-parser/src/parsers/expression/scale.js | packages/vega-parser/src/parsers/expression/scale.js | import {Literal, Identifier} from './ast';
import {scalePrefix} from './prefixes';
import {ASTNode} from 'vega-expression';
import {bandSpace} from 'vega-scale';
import {isArray, isObject, isString} from 'vega-util';
export function getScale(name, ctx) {
var s = isString(name) ? ctx.scales[name]
: isObject(name)... | JavaScript | 0.000001 | @@ -1083,12 +1083,8 @@
: %5B
-0, 0
%5D;%0A%7D
|
599f36da1ec05e941235aae52c1b83a951c8984b | add timeout to show the modal | popupTimer/popup.js | popupTimer/popup.js | window._harvestPlatformConfig = {
applicationName: 'GreyRook',
skipStyling: true,
};
var taskName;
var tabURL;
var tab;
chrome.runtime.onMessage.addListener(function (response) {
taskName = response;
if (taskName == '') {
taskName = 'select a task first';
}
});
chrome.tabs.query({ currentWindow: true, a... | JavaScript | 0 | @@ -688,24 +688,51 @@
nction () %7B%0A
+ setTimeout(() =%3E %7B%0A
if (de
@@ -757,24 +757,26 @@
install') %7B%0A
+
chro
@@ -828,24 +828,26 @@
' %7D);%0A
+
+
%7D else if (d
@@ -872,24 +872,26 @@
'update') %7B%0A
+
chro
@@ -942,25 +942,43 @@
' %7D);%0A
-%7D
+ %7D%0... |
bdfb9310d2e900b038ebd74bb7dc8bc1600aee21 | Improve activity test | test/integration/cloud/activities.js | test/integration/cloud/activities.js | var { CloudContext } = require('./utils');
describe('Get activities', () => {
let ctx = new CloudContext();
ctx.aliceAddsCheeseBurger();
describe('When alice eats the cheese burger', () => {
let at = new Date().toISOString();
ctx.requestShouldNotError(async () => {
ctx.response = await ctx.alice.feed('user... | JavaScript | 0.000009 | @@ -812,21 +812,16 @@
.object.
-data.
should.e
@@ -843,12 +843,13 @@
rger
-Data
+.full
);%0A%09
|
6152cb2b4be68a6342f0a96999d6dfdf9852374f | add changed event payload | src/i18n.js | src/i18n.js | import i18n from 'i18next';
import {assignObjectToKeys} from './utils';
export class I18N {
constructor(ea) {
this.i18next = i18n;
this.ea = ea;
this.Intl = window.Intl;
// check whether Intl is available, otherwise load the polyfill
if(window.Intl === undefined) {
System.import('Intl').t... | JavaScript | 0.000034 | @@ -994,24 +994,64 @@
esolve =%3E %7B%0A
+ var oldLocale = this.getLocale();%0A
this.i
@@ -1123,16 +1123,53 @@
changed%22
+,%7BoldValue:oldLocale,newValue:locale%7D
);%0A
|
3ff99edca95fd7c53cc3fd260932766adc1087db | add missing lt variable declaration | modules/_object-create.js | modules/_object-create.js | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = require('./_an-object')
, dPs = require('./_object-dps')
, enumBugKeys = require('./_enum-bug-keys')
, IE_PROTO = require('./_shared-key')('IE_PROTO')
, Empty = function(){ /* empty */ }
, PROTOTYPE = 'prototype';
// ... | JavaScript | 0.000006 | @@ -550,16 +550,35 @@
.length%0A
+ , lt = '%3C'%0A
, gt
|
f71dd58f2c124ed5c74ad7782457d86dfa835bf2 | Remove noisy logging on failure from AsyncCrypto.verifySignature | lib/workers.js | lib/workers.js | var bitcore = require('bitcore')
var q = require('q')
var workerpool = require('workerpool')
var pool
function Workers () {
if (!(this instanceof Workers)) {
return new Workers()
}
if (!pool) {
if (!process.browser) {
pool = workerpool.pool(__dirname + '/worker.js')
} else {
pool = worke... | JavaScript | 0.000001 | @@ -87,16 +87,50 @@
pool')%0A%0A
+var logger = require('./logger')%0A%0A
var pool
@@ -2189,44 +2189,42 @@
-console.error(exc)%0A console.error
+logger.debug(exc)%0A logger.debug
(exc
|
81ed189d57307f52d8c45014abce1c3793fd5165 | use types | src/auth/index.js | src/auth/index.js | export default {
right_page: 'HomePage',
user: {
name: '',
authenticated: false
},
getToken () {
return localStorage.getItem('token')
},
login (data) {
localStorage.setItem('token', data.token)
localStorage.setItem('user', data.name)
const currentDate = new Date()
localStorage.se... | JavaScript | 0.000001 | @@ -329,16 +329,23 @@
xpire',
+String(
currentD
@@ -369,16 +369,17 @@
6400000)
+)
%0A thi
@@ -825,24 +825,34 @@
= new Date()
+.valueOf()
%0A if (!!t
@@ -859,16 +859,17 @@
oken &&
++
expireDa
|
157976ea2edb928b6bf8b7a3527e64f5e566a201 | add append function in abricos template | src/modules/sys/js/component.js | src/modules/sys/js/component.js | /**
@module sys
@submodule component
*/
var Component = new Brick.Component();
Component.requires = {};
Component.entryPoint = function(NS){
var Y = Brick.YUI;
var TemplateManagerExt = function(){
TemplateManagerExt.superclass.constructor.apply(this, arguments);
};
NS.TemplateManagerExt =... | JavaScript | 0.000001 | @@ -2871,32 +2871,290 @@
;%0A %7D%0A
+ %7D,%0A append: function(elName, html)%7B%0A var node = this.one(elName);%0A if (!node)%7B%0A return null;%0A %7D%0A var el = Y.Node.create(html);%0A node.appendChild(el);%0A ... |
398c2900ca505ecc8cef73866d3419e123f5230f | add unique repo id to link for tracking | main.js | main.js | /*
NOTICE
The code herein was taken and modified in part from the Twitter open source portal - https://github.com/twitter/twitter.github.com
Modifications were made to include multiple organization accounts and display them differently
*/
(function () {
/*
To add an organization to the portal edit orgs and orgNam... | JavaScript | 0 | @@ -1445,16 +1445,35 @@
(repo)).
+attr(%22id%22,repo.id).
appendTo
@@ -2200,34 +2200,8 @@
%7C 1;
-%0A console.log('hello');
%0A%0A
@@ -2510,36 +2510,8 @@
1);%0A
- console.log('add');%0A
|
08e00ea171ab72178d9cf015681e871ee406c944 | Update config.js | config/config.js | config/config.js | module.exports = {
db: 'mongodb://localhost/deathroll_bot',
token : '232934513:AAFwo6zgEjVouHwHBl6X3CRsk40T2dSaNPs'
};
| JavaScript | 0.000002 | @@ -42,21 +42,21 @@
ost/
-d
+D
eath
-roll_bot
+Roll2000
',%0A%09
|
8a1d044c53aef9b48cbf0e9ec1a378b63ace5458 | Add hints for gist description format | app/containers/gistEditorForm/index.js | app/containers/gistEditorForm/index.js | import React, { Component } from 'react'
import { Field, FieldArray, reduxForm } from 'redux-form'
import { Button, ListGroup, ListGroupItem, Panel } from 'react-bootstrap'
import './index.scss'
export const NEW_GIST = 'NEW_GIST'
export const UPDATE_GIST = 'UPDATE_GIST'
class GistEditorForm extends Component {
com... | JavaScript | 0 | @@ -2052,17 +2052,25 @@
holder='
-G
+%5Btitle%5D g
ist desc
@@ -2076,19 +2076,34 @@
cription
-...
+ #tags: tag1, tag2
'/%3E%0A
@@ -2853,17 +2853,17 @@
holder='
-F
+f
ile name
|
73fa2ef6ca1f3e67cf60136df3c1dd572de108b4 | save callback | modules/data/roomPrefs.js | modules/data/roomPrefs.js | /**
* Created by Ady on 2/20/2015.
*/
var mongoose = require('mongoose');
var Q = require('q');
var _ = require('underscore');
require('./mongoData.js')(process.env['MONGOLAB_URI']);
var NodeCache = require( "node-cache" );
var myCache = new NodeCache( { stdTTL: 300 } ); //5m default cache time
module.exports = ... | JavaScript | 0 | @@ -2108,32 +2108,34 @@
ave = function (
+cb
) %7B%0A
@@ -2272,24 +2272,26 @@
this._save(
+cb
);%0A
|
dd50d5eaf4d63f5a9865d4514177947384ba49ff | Replace with equivalent code | src/background.js | src/background.js | chrome.runtime.onInstalled.addListener(function() {
var types = [10, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 18];
for (i in types) {
chrome.contextMenus.create({
'title': chrome.i18n.getMessage('reportType' + types[i]),
'documentUrlPatterns': ['https://*.waze.com/*/editor/*', 'https://*.waze.com/editor/*'],
'... | JavaScript | 0.999999 | @@ -960,16 +960,17 @@
uest();%0A
+%0A
%09%09%09%09xhr.
@@ -986,79 +986,29 @@
T',
-'https://www.waze.com/row-Descartes-live/app/MapProblems/UpdateRequest'
+getUpdateUrl('world')
, tr
@@ -1313,13 +1313,226 @@
%0A%09%09%7D%0A%09);
+%0A%0A%09function getUpdateUrl(server) %7B%0A%09%09var prefixes = %7B%0A%09%09%09isra... |
dcf625e2d65d965838f4081cedc1cc60678c99ef | Use a single space in xRegExp wrapper | lib/xregexp.js | lib/xregexp.js | const xRegExp = require('xregexp');
module.exports = function(regexp, flags) {
const lines = regexp.split('\n');
return xRegExp(
lines.map((line) => line.replace(/\s+#.+/, '')).join('\n'),
flags
);
};
| JavaScript | 0.000002 | @@ -51,16 +51,8 @@
s =
-function
(reg
@@ -62,16 +62,19 @@
, flags)
+ =%3E
%7B%0A con
@@ -170,16 +170,17 @@
+#.+/, '
+
')).join
|
f4187b8d48a6691b30309643871f91b4bcb3fff5 | allow CORS | main.js | main.js | 'use strict';
var fs = require('fs');
var http = require('http');
var https = require('https');
var privateKey = fs.readFileSync('sslcert/server.key', 'utf8');
var certificate = fs.readFileSync('sslcert/server.crt', 'utf8');
const g_constants = require('./constants');
var credentials = {
key: privateKey,
cert:... | JavaScript | 0.000019 | @@ -740,16 +740,99 @@
', '*');
+%0A res.setHeader('Access-Control-Allow-Headers', 'origin, content-type, accept');
%0A%0A //
|
24e52e76f23df10b58abe7f697348d8fc1e0d61c | Fix map to work with updates | src/battle/map.js | src/battle/map.js | /*
TODO:
[ ] Can select a target hex my clicking
[x] Have a map of hex coordinates to position data
[ ] Have a storage of 'optional' hexes (hexes you can act upon)
[ ] Have a concept of flashing optional hexes
[ ] Have the ability to cycle through hexes that are highlighted
[ ] Render hexes differently based on their s... | JavaScript | 0 | @@ -3,17 +3,17 @@
%0ATODO:%0A%5B
-
+x
%5D Can se
@@ -1028,16 +1028,46 @@
0, 0%5D;%0A%0A
+export const gridScale = 40;%0A%0A
export c
@@ -1157,18 +1157,8 @@
%5Bhex
-.join('/')
, %7B%0A
@@ -1190,24 +1190,88 @@
%5B%5D,%0A%7D%5D));%0A%0A
+const options = grid%5BMath.floor(Math.random() * grid.length)%5D;%0A%0A
co... |
d1f3e348f25049deb75beea8f7bed783305c31a8 | Update description of throw annotation | lib/node_modules/@stdlib/utils/series-waterfall/lib/waterfall.js | lib/node_modules/@stdlib/utils/series-waterfall/lib/waterfall.js | 'use strict';
// MODULES //
var factory = require( './factory.js' );
// MAIN //
/**
* Executes functions in series, passing the results of one function as arguments to the next function.
*
* @param {FunctionArray} fcns - array of functions
* @param {Callback} clbk - callback to invoke upon completion
* @param {*} ... | JavaScript | 0 | @@ -431,24 +431,22 @@
eError%7D
-callback
+second
argumen
|
d097e20ccf79653437adab9f678ae000b2fc7742 | Set module to failed state if dependancy doesn't exist | libs/Module.js | libs/Module.js | var Module = (function() {
var _shared = {
modules: {}
},
self;
self = function(data) {
var _private = {
dbkey: "module-db--" + data.id,
id: data.id,
name: data.name,
description: data.description,
depends: data.depends || [],
state: null
},
mod = this;
if ( dat... | JavaScript | 0 | @@ -1321,16 +1321,109 @@
depID),%0A
+%09%09%09%09%09%09depState;%0A%09%09%09%09%09if ( !dep ) %7B%0A%09%09%09%09%09%09depsFailed = true;%0A%09%09%09%09%09%09return true;%0A%09%09%09%09%09%7D else %7B%0A
%09%09%09%09%09%09de
@@ -1445,24 +1445,25 @@
ate();%0A%09%09%09%09%09
+%09
if ( !dep.en
@@ -1497,32 +1497,33 @@
... |
6976cf847ecd21667aeafe88eca5586886378bfb | Throw away old stuff. | main.js | main.js | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will... | JavaScript | 0 | @@ -3976,347 +3976,8 @@
;%0A%0A%0A
-/*%0Aapp.get('/', function(request, response) %7B%0A%09response.redirect('/about/');%0A%7D);%0A%0Aapp.get('/about/', function(request, response) %7B%0A%09var t = Date.now();%0A%09var options = %7B%7D;%0A%09options.instance = 'about';%0A%09options.loggedIn = false;%0A%09response.rend... |
6ed290cf3544a2e7b408e0762522fff947b46be6 | make sure to use a real integer when writing to serial | source/class/sn/boardfarm/backend/mux/AtenVS0801H.js | source/class/sn/boardfarm/backend/mux/AtenVS0801H.js | /*
* Boardfarm Management application
* Copyright (c) 2017 Heiko Stuebner <heiko@sntech.de>
*
* License:
* MIT: https://opensource.org/licenses/MIT
* See the LICENSE file in the project's top-level directory for details.
*/
/*
* Aten VS0801H is a rackmountable 8-to-1 hdmi mux
* with a serial interface cap... | JavaScript | 0.000009 | @@ -4051,17 +4051,27 @@
sw i0%22+(
-n
+parseInt(n)
+1));%0A%09%09
|
6f37a8ed26e871c943180f8c26c7cf7a22bd3c65 | Remove dead code | desktop/test/render-visdiff.js | desktop/test/render-visdiff.js | /* @flow */
import path from 'path'
import fs from 'fs'
import _ from 'lodash'
import {app, BrowserWindow, ipcMain} from 'electron'
import {resolveRoot, resolveRootAsURL} from '../resolve-root'
import dumbComponentMap from '../shared/dev/dumb-component-map.desktop'
const WORKER_COUNT = 10
const CANVAS_SIZE = 1000
if... | JavaScript | 0.001497 | @@ -1687,68 +1687,8 @@
%7D)%0A%0A
- ipcMain.on('visdiff-ready', ev =%3E renderNext(ev.sender))%0A%0A
co
|
563770cabff163bd782fc79523e04450e8eef8d4 | Fix bug where second display is out of sync if opened when primary display is playing. | main.js | main.js | // Libraries
const electron=require("electron");
const {app, BrowserWindow}=electron;
const fs=require("fs-extra");
const path=require("path");
// Constants
const APPDATADIR=app.getPath('userData')+path.sep;
var primaryDisplay, secondaryDisplay;
app.on("ready", () => {
// Init app data directories
fs.ensure... | JavaScript | 0 | @@ -1345,16 +1345,33 @@
Script(%60
+%0A
videoCon
@@ -1390,16 +1390,107 @@
Update()
+;%0A if( ! videoController.video.paused ) videoController.play();%0A
%60);%0A
|
8cec11c9a820239c303ab2e44b06201448578980 | fix cp path | bin/tasks/init.js | bin/tasks/init.js | var fs = require('fs');
function OrangeeJSInitTask() {
};
OrangeeJSInitTask.prototype.run = function() {
fs.exists('app', function(exists) {
if (!exists) {
mkdir('-p', 'app');
console.log("created app folder")
}
});
fs.exists('app/icons', function(exists) {
if (!exists) {
mkdir('-... | JavaScript | 0.000025 | @@ -16,16 +16,44 @@
e('fs');
+%0Avar path = require('path');
%0A%0Afuncti
@@ -369,15 +369,101 @@
-cp('src
+var src = path.join(path.dirname(fs.realpathSync(__filename)), '../../src');%0A cp(src + '
/ico
|
5b32c65f2d3c8af3425b22861624df9b756595c5 | Structure hamjest export Add important matcher base classes | lib/hamjest.js | lib/hamjest.js | 'use strict';
var IsEqual = require('./matchers/IsEqual')
, SubstringMatcher = require('./matchers/SubstringMatcher')
, NumberComparisonMatcher = require('./matchers/NumberComparisonMatcher')
;
var hamjest = {
assertThat: require('./assertThat'),
isMatcher: require('./matchers/Matcher').isMatcher,
anything: req... | JavaScript | 0 | @@ -11,16 +11,46 @@
t';%0A%0Avar
+ _ = require('lodash-node')%0A%09,
IsEqual
@@ -82,16 +82,59 @@
Equal')%0A
+%09, Matcher = require('./matchers/Matcher')%0A
%09, Subst
@@ -269,23 +269,23 @@
%09;%0A%0Avar
-hamjest
+asserts
= %7B%0A%09as
@@ -320,18 +320,103 @@
hat'),%0A%09
-is
+promiseThat: require('./promiseTh... |
125eb7025cdf2e98e0e509f84e07cd23d2bb7955 | FIX List update | src/list.js | src/list.js | import { setChildren } from './setchildren';
import { isFunction, ensureEl } from './util';
import { unmount } from './mount';
const propKey = key => item => item[key];
export function list (parent, View, key, initData) {
return new List(parent, View, key, initData);
}
export function List (parent, View, key, init... | JavaScript | 0 | @@ -67,16 +67,23 @@
ensureEl
+, getEl
%7D from
@@ -1377,67 +1377,23 @@
l =
-view.el;%0A if (el.__redom_list) %7B%0A el = el.el;%0A %7D
+getEl(view.el);
%0A
|
3b039552fd708fbef2b77c885bc4dbe13ecd58c2 | Add link to support forum | main.js | main.js | /****************************************************************************
* main.js
* openacousticdevices.info
* June 2017
*****************************************************************************/
'use strict';
/*jslint nomen: true*/
var electron = require('electron');
var app = electron.app;... | JavaScript | 0 | @@ -2141,32 +2141,217 @@
%0D%0A %7D, %7B%0D%0A
+ label: %22Support forum%22,%0D%0A click: function () %7B%0D%0A shell.openExternal(%22https://www.openacousticdevices.info/support%22);%0D%0A %7D%0D%0A %7D, %7B%0D%0A
labe
|
9005cef6d0bc171d28b260924e0f872b4aa2cefa | remove test code | lib/handler.js | lib/handler.js | const utils = require('./utils')
const encryption = require('./encryption')
// todo: make these const, (mockSpawn doesn't allow this, so remove mockSpawn)
var uploadS3 = require('./upload-s3')
var pgdump = require('./pgdump')
const DEFAULT_CONFIG = {
S3_REGION: 'eu-west-1'
}
module.exports = function (event, con... | JavaScript | 0.000873 | @@ -1257,256 +1257,4 @@
)%0A%7D%0A
-const event = %7B%0A PGDATABASE: 'postgres',%0A PGUSER: 'postgres',%0A S3_BUCKET: 'oxandcart-db-backups',%0A ROOT: 'test',%0A ENCRYPTION_PASSWORD: 'PASSWORD123'%0A%7D%0Amodule.exports(event, %7B%7D, result =%3E %7B%0A console.log('handler finishsed', result)%0A%7D)... |
e1913a2d960630d26ffcbfef7440f67d63fba5a9 | Remove python style variable naming | troposphere/static/js/components/common/InteractiveDateField.react.js | troposphere/static/js/components/common/InteractiveDateField.react.js | define(function (require) {
var React = require('react/addons'),
_ = require('underscore'),
moment = require('moment'),
globals = require('globals'),
// plugin: required but not used directly
bootstrap = require('bootstrap');
return React.createClass({
displayName: "InteractiveDateField"... | JavaScript | 0.000006 | @@ -794,26 +794,25 @@
var new
-_v
+V
alue = %22%22;%0A
@@ -833,34 +833,33 @@
tate(%7Bvalue: new
-_v
+V
alue%7D);%0A if
@@ -913,34 +913,33 @@
ops.onChange(new
-_v
+V
alue)%0A %7D%0A
|
c95d0938583ff5dc1947c9f718ba71b40c034c54 | Update benchmark.js | examples/benchmark.js | examples/benchmark.js | 'use strict';
var async = require('asyncawait/async');
var OrbitClient = require('../src/OrbitClient');
var Timer = require('./Timer');
// orbit-server
const host = 'localhost';
const port = 3333;
var username = 'testrunner';
var password = '';
let run = (async(() => {
try {
// Connect
var orb... | JavaScript | 0.000001 | @@ -171,16 +171,52 @@
t host =
+ process.argv%5B2%5D ? process.argv%5B2%5D :
'localh
@@ -219,17 +219,16 @@
calhost'
-;
%0Aconst p
@@ -254,16 +254,52 @@
ername =
+ process.argv%5B3%5D ? process.argv%5B3%5D :
'testru
@@ -447,64 +447,8 @@
);%0A%0A
- const id = process.argv%5B3%5D ? process.argv%5B3%5D : 'a';%0... |
96c3ac38dcf1b988c3775c472a58c6cc1dafc722 | fix adding existing tags (since adding normalize) | modules/sheet/editTags.js | modules/sheet/editTags.js | const nest = require('depnest')
const { h, Value, map, computed, Array: MutantArray } = require('mutant')
const concat = require('lodash/concat')
const filter = require('lodash/filter')
const parallel = require('run-parallel')
const addSuggest = require('suggest-box')
const TagHelper = require('scuttle-tag')
const ref ... | JavaScript | 0 | @@ -3845,36 +3845,14 @@
ush(
-ref.normalizeChannel(
tagId)
-)
%0A
|
c597acc4f5a85048a862c49c4066a7e71a59fc05 | update migrate: alter | config/models.js | config/models.js | /**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#!/documentation/concepts/ORM
*/
module.exports.models = {
/******************************... | JavaScript | 0.000002 | @@ -1439,12 +1439,13 @@
e: '
-safe
+alter
'%0A%0A%7D
|
d721f33bf8272a56fc90b91773e090b9ced74f95 | fix test case for Walkontable | test/jasmine/spec/Core_renderSpec.js | test/jasmine/spec/Core_renderSpec.js | describe('Core_render', function () {
var id = 'testContainer';
beforeEach(function () {
this.$container = $('<div id="' + id + '"></div>').appendTo('body');
});
afterEach(function () {
if (this.$container) {
this.$container.remove();
}
});
it('all cells should get green background', fu... | JavaScript | 0.000001 | @@ -1376,18 +1376,16 @@
d('.
-h
+w
tBorder
-Bg
.cur
|
2f5ac46445369d38e0e0db4754bce848c1883992 | Improve docs | src/session_pool/session.js | src/session_pool/session.js | import EventEmitter from 'events';
import { cryptoRandomObjectId } from 'apify-shared/utilities';
import { checkParamOrThrow } from 'apify-client/build/utils';
import EVENTS from './events';
/**
* Class aggregating data for session.
* Sessions are used to store information such as cookies and can be used for ge... | JavaScript | 0.000002 | @@ -371,18 +371,20 @@
can
-think of a
+imagine each
ses
@@ -396,16 +396,8 @@
as a
-bout one
spe
@@ -406,16 +406,99 @@
fic user
+, with its own cookies, IP (via proxy) and potentially a unique browser fingerprint
.%0A * Se
|
cba79d1a81fa38b91470bd11b50d893c9a213995 | remove console.log | app/assets/javascripts/drop.js | app/assets/javascripts/drop.js | SoapStone.Drop = function(args) {
this.coords = {};
this.coords.longitude = args.coords.longitude;
this.coords.latitude = args.coords.latitude;
this.text = args.text;
this.photo = args.photo;
};
SoapStone.Drop.prototype.save = function() {
var data = {};
data.drop = {};
for (var key in this) {
if (... | JavaScript | 0.000006 | @@ -389,29 +389,8 @@
%7D%0A
- console.log(data);%0A
re
|
d2b1876753c33f0197d2af2c19310531742c3b6a | Add version to main response | config/routes.js | config/routes.js | var fs = require('fs');
var i18n = require('i18next');
var http = require('http');
var games = require('../app/controller/games');
var steam_fetch = require('../app/modules/steam');
var Cache = require('../app/modules/cache');
// Load all the JS files for backbone
var files = {};
files.views = fs.readdirSync('public/... | JavaScript | 0 | @@ -220,16 +220,54 @@
ache');%0A
+var pjson = require('./package.json');
%0A%0A// Loa
@@ -949,16 +949,48 @@
: 'en',%0A
+ version: pjson.version,%0A
|
1d923a90e389c1a709058408579fae6f689f83df | update test file | test/messengers/facebook/messages.js | test/messengers/facebook/messages.js | /* global describe, it */
'use strict';
const validationFunction = require('../../../messengers/facebook/messages.js').validateTemplateMessage;
const expect = require('chai').expect;
const fbMessages = {
invalid: {
},
valid: [
{
type: 'template',
payload: {
template_type: 'generic',
... | JavaScript | 0.000001 | @@ -2639,16 +2639,425 @@
n () %7B%0A%0A
+ describe('Positive path', function () %7B%0A fbMessages.valid.forEach((msg) =%3E %7B%0A it(%60Returns a sucess status to a valid message with template: $%7Bmsg.payload.template_type%7D%60, function (done) %7B%0A let testResult = validationFunction(msg);%0A%0A ... |
90fc840f23f08bc196a5819e801cf17d0f42c409 | fix comments | app/assets/javascripts/scripts/core/lib/modules/renderer/comments.js | app/assets/javascripts/scripts/core/lib/modules/renderer/comments.js | /**
* Created by i061485 on 7/10/14.
*/
define([], function defineCommentsRenderer() {
/**
* Define CommentsRenderer
* @class CommentsRenderer
* @constructor
*/
var CommentsRenderer = function CommentsRenderer() {
};
return CommentsRenderer.extend('CommentsRenderer', {
... | JavaScript | 0.000001 | @@ -368,36 +368,32 @@
@member
-Widget
Comment
-Element
+sRenderer
%0A
@@ -1785,28 +1785,24 @@
ber
-Widget
Comment
-Element
+sRenderer
%0A
@@ -2184,24 +2184,60 @@
focus event%0A
+ * @member CommentsRenderer%0A
* @
@@ -2400,24 +2400,60 @@
blur event%0A
+ * @member CommentsRe... |
a1a30bdb88b38f2dd77f01322dd0b0c858d6ecde | Improve Graphics API | resources/graphics.js | resources/graphics.js | oop.namespace("brickdest.graphics");
brickdest.graphics.Image = oop.class(brickdest.resource.Resource, {
__create__: function(path) {
this.__super__();
this.img = new Image();
this.img.src = path;
this.img.onload = $.proxy(function() {
this.setLoaded(true);
}, this);
},
getImg: function... | JavaScript | 0 | @@ -27,24 +27,97 @@
raphics%22);%0A%0A
+brickdest.graphics.IImage = oop.interface(%7B%0A getImg: function() %7B%7D%0A%7D);%0A%0A
brickdest.gr
@@ -172,16 +172,16 @@
urce, %7B%0A
-
__crea
@@ -417,24 +417,203 @@
g;%0A %7D%0A%7D);%0A%0A
+brickdest.graphics.IRenderer = oop.interface(%7B%0A clear: function() %7B%7D... |
da4a57b523f5195d172501557b0517bc7f99458a | change sweaterguys logo link | 2021/src/Sections/SponsorDisplay/SponsorDisplay.js | 2021/src/Sections/SponsorDisplay/SponsorDisplay.js | import React, { Component } from "react";
import { Collapse } from "antd";
import "./SponsorDisplay.css";
import CloudFlare from "../../Assets/Logos/Cloudflare.png";
import WolframAlpha from "../../Assets/Logos/WolframAlpha.png";
import TutorBright from "../../Assets/Logos/TutorBright.png";
import Linode from "../../A... | JavaScript | 0 | @@ -1390,22 +1390,21 @@
s://
-the
sweater
-guys
+planet
.com
|
8fc170e7ad25718e732a5ce1b60c9c7e3911aeda | add the variable frequency to algo | resources/rgbscripts/strobe.js | resources/rgbscripts/strobe.js | /*
Q Light Controller Plus
strobe.js
Copyright (c) Rob Nieuwenhuizen
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.txt
Unless requ... | JavaScript | 0.999994 | @@ -971,20 +971,21 @@
;%0A
-var
+algo.
frequenc
@@ -1037,16 +1037,21 @@
+algo.
frequenc
@@ -1120,32 +1120,37 @@
%0A return
+algo.
frequency;%0A
@@ -1802,16 +1802,21 @@
(step %25
+algo.
frequenc
@@ -2242,16 +2242,21 @@
return
+algo.
frequenc
|
e9a4087b02991b57bb1c991709d553281c3f865c | Update header comment format to keep it on minify | generators/license.js | generators/license.js | // ==========================================================================
// Project: Ember - JavaScript Application Framework
// Copyright: Copyright 2011-2013 Tilde Inc. and contributors
// Portions Copyright 2006-2011 Strobe Inc.
// Portions Copyright 2008-2011 Apple Inc. All rights reser... | JavaScript | 0.998474 | @@ -1,94 +1,20 @@
/
-/ ==========================================================================%0A// Project:
+*!%0A * @overview
Em
@@ -56,20 +56,21 @@
ork%0A
-// C
+ * @c
opyright
: Co
@@ -65,17 +65,16 @@
opyright
-:
Copyrig
@@ -114,18 +114,18 @@
ibutors%0A
-//
+ *
@@ -169,18 +169,18 @@
be Inc... |
663c78f4b669a5186795b68ec51ee42eeb0280b3 | Implement better linter messages | lib/helpers.js | lib/helpers.js | 'use babel'
export const INIT_MESSAGE = 'Spawned flow server'
import score from 'sb-string_score'
export function toLinterMessages(contents) {
const parsed = JSON.parse(contents)
if (parsed.passed) {
return []
}
return parsed.errors.map(function(error) {
const firstMessage = error.message[0]
ret... | JavaScript | 0.000001 | @@ -491,33 +491,43 @@
sage
-.reduce(toLinterText, '')
+%5B1%5D.descr %7C%7C error.message%5B0%5D.descr
,%0A
@@ -584,81 +584,8 @@
%0A%7D%0A%0A
-function toLinterText(text, item) %7B%0A return text += ' ' + item.descr%0A%7D%0A%0A
func
|
c65d1f3d043eb127d3b7dee825f1c39218d5e6fa | support for #' syntax | lisp-parser.js | lisp-parser.js | // Parses Lisp code into a list of forms.
load("jsparse.js");
var LispForm = function(input) { return LispForm(input); }; // forward decl.
var LispStringChar = negate("\"");
var LispStringChars = repeat1(LispStringChar);
var LispStringLiteral = action(sequence("\"", optional(LispStringChars), "\""),
... | JavaScript | 0.000003 | @@ -690,66 +690,303 @@
ispF
-orm = whitespace(choice(LispStringLiteral, LispSymbolForm,
+unctionForm = action(sequence(%22#'%22, LispSymbolForm),%0A lispFunctionFormAction);%0A%0Avar LispForm = whitespace(choice(LispFunctionForm,%0A LispStringLiteral, %0A ... |
1cfbd01673bc22742055cba3005c8446f7995467 | remove whitespace | app/assets/javascripts/game.js | app/assets/javascripts/game.js | console.log("Hello");
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
function preload() {
game.load.image('ghost', '/ghost.png');
game.load.image('person', '/person.png');
game.load.image('star', '/star.png');
game.load.image('platform', '/firstaid... | JavaScript | 0.999999 | @@ -779,17 +779,16 @@
e; %7D);%0A%0A
-%0A
key1.o
@@ -1650,16 +1650,17 @@
ter.y +=
+
4;%0A
@@ -1872,18 +1872,16 @@
%7D);%0A%7D%0A%0A
-%0A%0A
function
|
901705a68347900c6ac23a6c0641b3e4e0949560 | update version after reverting error page | src/smc-util/smc-version.js | src/smc-util/smc-version.js | /* autogenerated by the update_version script */
exports.version=1532595247;
| JavaScript | 0 | @@ -66,12 +66,12 @@
1532
-595247
+640390
;%0A
|
de8ee9aab210bc389df6bbb3c793cd709d9ef1de | Fix moment global locale changing bug | src/parsers/FR/FRRelativeDateFormatParser.js | src/parsers/FR/FRRelativeDateFormatParser.js | /*
*/
var moment = require('moment');
var Parser = require('../parser').Parser;
var ParsedResult = require('../../result').ParsedResult;
var util = require('../../utils/FR');
// Load fr localization data from moment
require('moment/locale/fr');
var PATTERN = new RegExp('(\\W|^)' +
'(?:les?|la|l\'|du|des?)\\s*... | JavaScript | 0.000002 | @@ -176,17 +176,23 @@
');%0A%0A//
-L
+Force l
oad fr l
@@ -223,35 +223,341 @@
ment
-%0Arequire('moment/locale/fr'
+ for the locale files to be linkded durning browserify.%0A// NOTE: The function moment.defineLocale() also has a side effect that it change global locale%0A// We also need to save and restore the prev... |
b01acf366379d24ff6f5b5591a4f2bf2ff9f602d | Document the url | lists/index.js | lists/index.js | function(head, req) {
// !code vendor/couchapp/date.js
// !code lib/atom.js
provides("atom", function() {
var row = getRow();
// generate the feed header
var feedHeader = Atom.header({
updated : (row ? new Date(row.value.time_created) : new Date()),
title : 'Latest threads from i.c... | JavaScript | 0.999998 | @@ -72,16 +72,188 @@
/atom.js
+%0A%0A // The URL to access this is at:%0A // http://localhost:5984/hazchat/_design/icanhazthread/_list/index/threads_with_num_replies?format=atom&descending=true&group_level=1
%0A %0A pr
|
0c6ac35dffae1c7618aad7b570a54ca2050e5d4c | Add autocompleter logic for validation and sugestion forms | src/Skaphandrus/AppBundle/Resources/public/js/app.js | src/Skaphandrus/AppBundle/Resources/public/js/app.js | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$(document).ready(function () {
if ($('#datatable-list').length) {
$('#datatable-list').DataTable({
respon... | JavaScript | 0 | @@ -3545,15 +3545,609 @@
%0A %7D%0A%0A
-%0A%0A
+ // Formul%C3%A1rio photo validation%0A if ($('#skaphandrus_appbundle_skphotovalidation_species').length) %7B%0A $('#skaphandrus_appbundle_skphotovalidation_species').autocompleter(%7Burl_list: '/app_dev.php/en/ajax_search_species/', url_get: '/app_dev.ph... |
1dd4d26c902760e8453a63ecfc1e3f3abe73a525 | rename reset function to resetGame() | main.js | main.js | // Initialize Firebase
firebase.initializeApp({
apiKey: "AIzaSyAKwiAe0DV9z5EdUMUKQVc5weewhlQHqsg",
authDomain: "cool-real-time-tic-tac-toe.firebaseapp.com",
databaseURL: "https://cool-real-time-tic-tac-toe.firebaseio.com",
storageBucket: "cool-real-time-tic-tac-toe.appspot.com",
messagingSenderId: "4080814985... | JavaScript | 0 | @@ -2573,20 +2573,16 @@
esetGame
-Data
() %7B%0A%09co
|
66e5d3fe39299ecc4404207f5b9870850e2fd58b | Fix VPNFE-34 - Detect delinquent, redirect to payments page | applications/vpn-settings/src/app/components/layout/PrivateLayout.js | applications/vpn-settings/src/app/components/layout/PrivateLayout.js | import React, { useRef, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { Route } from 'react-router';
import { withRouter, Redirect, Switch } from 'react-router-dom';
import {
Sidebar,
MainAreaContext,
useToggle,
usePermissions,
useUser,
ErrorBoundary,
AppVers... | JavaScript | 0 | @@ -316,16 +316,35 @@
pVersion
+,%0A useDelinquent
%0A%7D from
@@ -863,24 +863,45 @@
useUser();%0A
+ useDelinquent();%0A
const ma
|
343f48d1b6b7944bcdf3c34685f07d706986afeb | disable streamerRole for bots | events/presenceUpdate.js | events/presenceUpdate.js | /**
* @file presenceUpdate event
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license MIT
*/
module.exports = async (oldMember, newMember) => {
try {
if (newMember.roles.size < 2) return;
if (newMember.user.presence.status === 'offline') return;
if (oldMember.frozenPresence.game && newMember.user... | JavaScript | 0.000001 | @@ -154,16 +154,52 @@
try %7B%0A
+ if (newMember.user.bot) return;%0A
if (
|
4abfbed9a6135ca9ef8127ec23b4e18230c21b93 | Tweak map tooltip | src/static/js/pages/home.js | src/static/js/pages/home.js | $(function(){
'use strict';
var map,
video;
// Circle nav on the homepage.
$('.homepage .hero a').on( 'click', function( ev ){
var target = $( this ).attr('href');
ev.preventDefault();
$('html, body').animate({ scrollTop: $( target ).position().top }, 200);
});
// Map toggling on the... | JavaScript | 0.000001 | @@ -3307,37 +3307,32 @@
p(%7B placement: '
-auto
right' %7D).on('sh
@@ -3452,16 +3452,44 @@
': '5px'
+,%0A 'width': '250px'
%0A
@@ -3552,13 +3552,8 @@
t: '
-auto
righ
@@ -3679,16 +3679,43 @@
op': '0'
+,%0A 'width': 'auto'
%0A
|
f3870559e3bbe987390cb41a51822d1b60adb53b | Allow importing logs in test runner JSON format | logcruncher.js | logcruncher.js | importScripts("workerApi.js");
onmessage = messageAdapter(new LogReader());
function LogReader() {}
LogReader.prototype.read = function(file) {
return readFile(file)
.then((logData) => {return logCruncher(logData, testsFilter)});
}
LogReader.prototype.readURL = function(url) {
return readURL(url)
.then(... | JavaScript | 0.000001 | @@ -127,25 +127,117 @@
d =
-function(file)
+read(readFile);%0ALogReader.prototype.readURL = read(readURL);%0A%0Afunction read(reader) %7B%0A return (data) =%3E
%7B%0A
+
re
@@ -249,19 +249,19 @@
read
-File(file)%0A
+er(data)%0A
@@ -291,94 +291,215 @@
urn
-logCruncher(logData, testsFilter)%7D);%0A%7D... |
44bc48ad5e1e7f96448fee5b863b88357bfd98e3 | Remove debug output on default | app/assets/javascripts/jsxc.js | app/assets/javascripts/jsxc.js | //= require diaspora_jsxc
// initialize jsxc xmpp client
$(document).ready(function() {
if (app.currentUser.authenticated()) {
$.post('api/v1/tokens', null, function(data) {
if (jsxc && data['token']) {
var jid = app.currentUser.get('diaspora_id');
jsxc.init({
root: '/assets/diasp... | JavaScript | 0.000001 | @@ -1122,110 +1122,8 @@
%7D);%0A
- // TODO unset debug on default (testing version)%0A jsxc.storage.setItem('debug', true);%0A
|
d01823d8a6f4cc61bde277d5259dbc789d6bd47c | Update config | devmgmtui/src/config/config.js | devmgmtui/src/config/config.js | export const BASE_URL = "http://devmgmt.openrap.com"
export const CLOUD_DOWNLOAD_CONFIG = {
host: 'openrap.com',
port: 80,
path: '/jsonrpc'
}; | JavaScript | 0.000001 | @@ -118,16 +118,45 @@
rt: 80,%0A
+%09secure: false,%0A%09secret: '',%0A
%09path: '
|
45695497263702caafe1e5b7b35c37574798bb04 | Use strings for operation codes | app/db/structure.js | app/db/structure.js | 'use strict';
import db from './';
import config from '../config';
const DEBUG = config.debug;
export function dropProjects () {
DEBUG && console.log('Dropping table: projects');
return db.schema.dropTableIfExists('projects');
}
export function dropScenarios () {
DEBUG && console.log('Dropping table: scenarios... | JavaScript | 0.000022 | @@ -3696,23 +3696,22 @@
table.
-integer
+string
('code')
|
a0834062cf6370b9b75795d374cb7bfbde504ef6 | Improve unindent function | app/components/code-snippet.js | app/components/code-snippet.js | import Ember from "ember";
import Snippets from "../snippets";
/* global require */
var Highlight = require('highlight.js');
export default Ember.Component.extend({
tagName: 'pre',
classNameBindings: ['language'],
unindent: true,
_unindent: function(src) {
if (!this.get('unindent')) {
return src;
... | JavaScript | 0.000157 | @@ -361,16 +361,38 @@
it(%22%5Cn%22)
+.filter(l =%3E l !== '')
;%0A fo
@@ -446,18 +446,21 @@
tch = /%5E
-%5Cs
+%5B %5Ct%5D
*/.exec(
@@ -680,18 +680,14 @@
xp(%22
-(%5C%5Cn%7C%5E)%5C%5Cs
+%5E%5B %5Ct%5D
%7B%22 +
@@ -704,15 +704,14 @@
, 'g
+m
'), %22
-$1
%22);%0A
|
19a2f875f76c1095ce4bd772ba6d9f065ac68e69 | Update home.js | app/i18n/en/home.js | app/i18n/en/home.js | export default {
presentation1: 'Internet is filled with rich and abundant data. Information travels fast and we don\'t have the time to check that everything we see and hear is correct.',
presentation2: 'is all about people debating and helping each other to verify that data by sourcing it, voting and chatting abo... | JavaScript | 0.000001 | @@ -656,17 +656,16 @@
onfirmed
-
!',%0A er
|
a70676e1025213385db4509a11202fc96f4be06d | Remove config object | main.js | main.js | import { default as React, Component } from 'react';
var ReactDOM = require('react-dom');
var config = require('./config.js');
import {AppbaseMap} from './app/AppbaseMap';
import {AppbaseList} from './app/AppbaseList';
import {AppbaseSlider} from './app/AppbaseSlider';
import {AppbaseSearch} from './app/AppbaseSearch';... | JavaScript | 0.000002 | @@ -749,32 +749,16 @@
baseList
- config=%7Bconfig%7D
fieldNa
@@ -804,16 +804,16 @@
=%7B20%7D/%3E%0A
+
%09%09%09%09%09%09%3C/
@@ -907,32 +907,16 @@
baseList
- config=%7Bconfig%7D
fieldNa
@@ -1125,32 +1125,16 @@
%22guests%22
- config=%7Bconfig%7D
/%3E%0A%09%09%09%09
@@ -1272,32 +1272,16 @@
_ngrams%22
- config... |
712b143e5f559690693b9ba24ae0f486cc2d3b39 | Fix check command on install script (#43) | lib/install.js | lib/install.js | 'use strict';
const os = require('os');
const binBuild = require('bin-build');
const log = require('logalot');
const bin = require('.');
const cpuNum = os.cpus().length;
bin.run(['--help'])
.then(() => log.success('mozjpeg pre-build test passed successfully'))
.catch(err => {
log.warn(err.message);
log.warn('mo... | JavaScript | 0 | @@ -180,13 +180,15 @@
(%5B'-
--help
+version
'%5D)%0A
|
b607336092d326433aa4a18e616bba42517286d3 | fix for [#28] | client/js/Widgets/DiagramDesigner/DiagramDesignerWidget.Droppable.js | client/js/Widgets/DiagramDesigner/DiagramDesignerWidget.Droppable.js | /*
* Copyright (C) 2013 Vanderbilt University, All rights reserved.
*
* Author: Robert Kereskenyi
*/
"use strict";
define(['js/DragDrop/DropTarget',
'./DiagramDesignerWidget.Constants'], function (dropTarget,
DiagramDesignerWidgetConstants) {
va... | JavaScript | 0 | @@ -2451,24 +2451,52 @@
r.clear();%0A%0A
+ if (dragInfo) %7B%0A
this
@@ -2569,24 +2569,102 @@
fo), true);%0A
+ %7D else %7B%0A this._doAcceptDroppable(false, false);%0A %7D%0A
%7D;%0A%0A%0A
|
1ab74f604044235a792488218aaea2a337bdd9d1 | allow user to set out of | discord/commands/rate/index.js | discord/commands/rate/index.js | const crypto = require("crypto");
module.exports = function screenshot(message) {
let input = message.content.replace(/\n/g, " ").split(" ");
if (message.content.length > 100) message.content = message.content.substring(0,100) + "...";
let rank = parseInt(crypto.createHash("md5").update(message.content.toLowerCas... | JavaScript | 0 | @@ -138,16 +138,131 @@
(%22 %22);%0A%0A
+%09if (!message.content) message.content = %22The MSS help menu%22;%0A%0A%09outof = parseInt(message.words%5B0%5D, 10) + 1 %7C%7C 11;%0A%0A
%09if (mes
@@ -454,18 +454,21 @@
, 16) %25
-11
+outof
;%0A%0A%09mess
|
9514f67240502123c84f6b6cfa74305734437e19 | Remove Heroku buildpack task | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict'
var mongoose = require('mongoose')
var bower = require('bower')
var secrets = require('./config/secrets')
var User = require('./models/User')
var DBLoaded = false
function loadDB() {
if(!DBLoaded) {
mongoose.connect(secrets.db, secrets.db... | JavaScript | 0.000134 | @@ -4038,111 +4038,6 @@
B'%5D)
-%0A%0A // Heroku buildpack task.%0A grunt.registerTask('heroku', %5B'bower', 'precompile', 'dropDB', 'seedDB'%5D)
%0A%7D
|
c033b67ab82d99c2c3c25d96de3cb992c96c9f81 | Fix image margin bug. | src/ContentBlocks/BlockImage/styles.js | src/ContentBlocks/BlockImage/styles.js | // @flow
import { css } from 'styled-components';
export const imageStyles = (color: ?string, caption: ?string) => {
const imageCss = css`
width: 100%;
height: auto;
`;
if (color !== '') {
return css`
border-bottom: 9px solid ${color};
${imageCss}
`;
}
if (caption) {
return cs... | JavaScript | 0 | @@ -254,16 +254,43 @@
color%7D;%0A
+ margin-bottom: 12px;%0A
$%7B
@@ -366,24 +366,42 @@
ttom: 12px;%0A
+ $%7BimageCss%7D%0A
%60;%0A %7D%0A
|
ae70049d2ab53b180a6622c5cf7888f7e98e008c | Fix `grunt-jscs` loading. | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
grunt: {
src: ['Gruntfile.js']
},
core: {
src: ['lib/**/*.js', 'tasks/*.js']
},
test: {
src: ['test/**/*.js', '!test/temp/**/... | JavaScript | 0 | @@ -762,16 +762,8 @@
jscs
--checker
');%0A
|
21b1ccb29b824f9b39ecbb50a9699a2a361d641f | Load new moment locales | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['client/js/**/*.js', 'server/**/*.js', 'test/*.js'],
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true,
ignores: ['p... | JavaScript | 0 | @@ -2609,72 +2609,29 @@
nt/m
-oment.js',%0A 'bower_components/moment/min/lang
+in/moment-with-locale
s.js
|
dd0bd3a03dea9df9df2ee1770f130cb264d955db | Exclude bower_components/ from watch task | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
files: {
'sass/main.css': 'sass/main.scss'
},
options: {
style: 'compressed'
}
}
},
watch: {
sass: {
files: ['sass/*.scss'],
tasks: ['sass', 'autopr... | JavaScript | 0.000007 | @@ -362,16 +362,27 @@
files: %5B
+%0A
'public/
@@ -386,16 +386,68 @@
ic/**/*'
+,%0A '!public/bower_components/**/*'%0A
%5D,%0A
|
bb15199a882c589b344a02e52a173ea73a8939e8 | add multiple Browser in one | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
connect: {
server: {
options: {
port: 9001,
base: 'htdocs'
}
... | JavaScript | 0 | @@ -1349,32 +1349,276 @@
%0A %7D,%0A
+ dalekjsMultiple: %7B%0A options: %7B%0A stdout: true,%0A failOnError: true%0A %7D,%0A command: 'dalek tests/*.js -b phantomjs,chrome -r console,html'%0A %7D,%0A
... |
95e51b805355e19476e594d58d9bebdb779fcc6c | rename test grunt task | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
clean: {
src: ['bower_components', 'dist', 'test-jasmine/spec', 'test-jasmine/lib']
},
bower: {
init: {
options: {
copy: false
}
}
},
... | JavaScript | 0.000261 | @@ -2698,19 +2698,14 @@
ask(
-%22full-
+'
test
-%22
+'
, %5B'
|
5f5ebf73df15fcb2d8bd18d48e1af4d4f6cf97d0 | Add default gulp task | app/js/gulpfile.js | app/js/gulpfile.js | gulpfile.js | JavaScript | 0.000001 | @@ -1,11 +1,98 @@
-gulpfile.js
+var gulp = require ('gulp');%0A%0Agulp.task('default', function() %7B%0A%09console.log('Hello, world!');%0A%7D);
|
3c8cba81acd01c69802853936179f8ce15624fe1 | Fix coveralls task | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
src: 'Gruntfile.js'
},
bin: {
src: ['bin... | JavaScript | 0.999935 | @@ -531,16 +531,63 @@
unit: %7B
+%0A reporter: 'spec',%0A
%7D,%0A
@@ -797,42 +797,8 @@
: %7B%0A
- reporter: 'spec',%0A
|
61d5b66c5854c870f8e462f36e7a9c8d7b415565 | Add all tasks. in order, test, compile, compress and release | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
"use strict";
grunt.option("filename", "jsmart.js");
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
build: {
all: {
dest: "dist/<%= grunt.option('filename') %>",
minimum: [
"core",
"selector"
]
}
... | JavaScript | 0.99719 | @@ -2110,59 +2110,22 @@
, %5B'
-build'%5D);%0A //grunt.registerTask('default', %5B'karma
+karma', 'build
', '
@@ -2143,11 +2143,12 @@
opy'%5D);%0A
+%0A
%7D;%0A
|
0ce762d3fa3b7d2a4b37392a15273db5a8353cee | Update Gruntfile.js fixing undefined jQuery check | Gruntfile.js | Gruntfile.js | /* jshint node: true */
module.exports = function(grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
'* TODC Bootstrap v<%= pkg.version %> by todc\n' +
'*\n' +
'* Copy... | JavaScript | 0.000003 | @@ -813,15 +813,37 @@
if (
-!jQuery
+typeof jQuery === %22undefined%22
) %7B
@@ -862,15 +862,9 @@
ror(
-%5C%22TODC
+%22
Boot
@@ -884,17 +884,16 @@
s jQuery
-%5C
%22) %7D%5Cn%5Cn
|
22294b1c770dec9fd12c68063a6c281eea8207d3 | Set i18n task target folder | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({
makepot: {
target: {
options: {
type: 'wp-plugin'
}
}
}
});
//grunt.registerTask('default', []);
}; | JavaScript | 0.000001 | @@ -206,16 +206,81 @@
-plugin'
+,%0A%09%09%09%09%09domainPath: 'languages',%0A%09%09%09%09%09exclude: %5B'node_modules/.*'%5D
%0A%09%09%09%09%7D%0A%09
|
50e123c8d22ef6c82401353f2e3a9011e6fdb08f | Change grunt task to test | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
qunit: {
all: ['http://craighep.github.io/Dissertation/js/tests/*.html']
},
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.registerTask('default', ['qunit']);
};
| JavaScript | 0.000008 | @@ -262,14 +262,11 @@
sk('
-defaul
+tes
t',
|
1746a04cf3dad7f3bc9bb0b529f7dbd9d1596dd1 | Remove jshint task | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
info: {
banner: {
short: '/* <%= pkg.name %> v<%= pkg.version %>, (c) 2014-<%= grunt.template.today("yyyy") %> Joel M... | JavaScript | 0.999485 | @@ -1561,481 +1561,8 @@
%7D,%0A%0A
- jshint: %7B%0A options: %7B%0A jshintrc: '.jshintrc',%0A reporter: require('jshint-stylish')%0A %7D,%0A js: %7B%0A src: %5B%0A 'Gruntfile.js',%0A 'src/**/*.js'... |
f28a9d785fdeed80cca8346a41fbc03fe71fee54 | Clean alias | core.js | core.js | const {exec} = require('child_process');
const path = require('path');
const url = require('url');
const git = require('simple-git')();
const axios = require('axios');
if (!process.env.GITHUB_TOKEN) {
throw new Error('GITHUB_TOKEN must be defined in environment');
}
if (!process.env.NOW_TOKEN) {
throw new Error('... | JavaScript | 0.000005 | @@ -1899,16 +1899,8 @@
s: %60
-https://
$%7Bre
@@ -1916,16 +1916,44 @@
name
+.replace(/%5B%5EA-Z0-9%5D/ig, '-')
%7D-$%7Bref%7D
.now
@@ -1952,15 +1952,8 @@
ref%7D
-.now.sh
%60,%0A
|
d084ac61ff649b95b23da8bc1a55ca8d0e73d5fd | Make alias full URL | core.js | core.js | const {exec} = require('child_process');
const path = require('path');
const url = require('url');
const git = require('simple-git')();
const axios = require('axios');
if (!process.env.GITHUB_TOKEN) {
throw new Error('GITHUB_TOKEN must be defined in environment');
}
if (!process.env.NOW_TOKEN) {
throw new Error('... | JavaScript | 0.000007 | @@ -1895,16 +1895,24 @@
alias: %60
+https://
$%7Breposi
@@ -1956,16 +1956,23 @@
%7D-$%7Bref%7D
+.now.sh
%60,%0A c
|
15168c6674fe358a217e6a605996adb1f3f2c9f4 | Allow grunt to bump all version number instances | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Load node-modules;
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-shell');
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
secrets: grunt.file.readJSON('.se... | JavaScript | 0 | @@ -177,24 +177,196 @@
t-shell');%0A%0A
+ var bumpVersion = function(version,level) %7B%0A version = version.split(%22.%22) %7C%7C %5B0,0,0%5D;%0A level = level %7C%7C 2;%0A version%5Blevel%5D++;%0A return version.join(%22.%22);%0A %7D%0A%0A
// Project
@@ -708,33 +708,8 @@
%25%3E%22
-,%0A s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.