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 |
|---|---|---|---|---|---|---|---|
94dff7d3a5780407713effdc46d11bb7e6ad9d50 | fix alpha() with numbers | lib/less/tree/alpha.js | lib/less/tree/alpha.js | (function (tree) {
tree.Alpha = function (val) {
this.value = val;
};
tree.Alpha.prototype = {
toCSS: function () {
return "alpha(opacity=" + this.value.toCSS() + ")";
},
eval: function () { return this }
};
})(require('less/tree'));
| JavaScript | 0.000083 | @@ -151,16 +151,51 @@
city=%22 +
+%0A (this.value.toCSS ?
this.va
@@ -205,16 +205,30 @@
.toCSS()
+ : this.value)
+ %22)%22;%0A
|
f4c5bf9d681aa416c23d710bfe8878a9220c0dd6 | Improve ajax call for section tabs to also log errors | app/assets/javascripts/respondent/modules/questionnaire_handler.js | app/assets/javascripts/respondent/modules/questionnaire_handler.js | window.QuestionnaireHandler = {
initialiseSections: function($sectionContainer, $contentContainer) {
var insertIntoContainer = function(data) { $contentContainer.html(data); };
$sectionContainer.find('.section-link').click(function(ev) {
$el = $(this);
$.get($el.attr('href'), insertIntoContainer... | JavaScript | 0 | @@ -276,51 +276,374 @@
$.
-get($el.attr('href'), insertIntoContainer);
+ajax(%7B%0A url: $el.attr('href'),%0A type: 'GET',%0A success: insertIntoContainer,%0A error: function(jqXHR, textStatus, errorThrown )%7B%0A console.log(%22jqXHR = %22+JSON.stringify(jqXHR));%0A con... |
0103d70b1b8fefd74ab1e3051571697668f19c41 | Remove extra styles | src/widgets/LineChart.js | src/widgets/LineChart.js | /* eslint-disable react/forbid-prop-types */
/* eslint-disable react/prop-types */
/* eslint-disable no-unused-vars */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2018
*/
import React, { useState } from 'react';
import { View, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import {... | JavaScript | 0.000001 | @@ -2380,17 +2380,16 @@
%7D,%0A%7D);%0A
-%0A
const vi
@@ -2648,36 +2648,8 @@
: %7B%0A
- fixLabelOverlap: false,%0A
@@ -2788,24 +2788,24 @@
ll: GREY %7D,%0A
+
%7D,%0A %7D,%0A
@@ -2808,170 +2808,8 @@
%7D,%0A
- barChart: %7B%0A padTop: 0.1,%0A padBottom: 0.15,%0A padLeft: 0.1,%0A padRigh... |
286507cd36c2250b1be25e626280ede69345eca8 | remove temporary DB update | src/workers/populates.js | src/workers/populates.js | var bson = require('bson')
var create = require('./reports.js').create
var underscore = require('underscore')
var url = require('url')
var uuid = require('uuid')
var exports = {}
exports.initialize = async function (debug, runtime) {
runtime.db.checkIndices(debug,
[ { category: runtime.db.get('populates', debug),... | JavaScript | 0 | @@ -903,717 +903,8 @@
%5D)
-%0A%0A// temporary%0A var contributions = runtime.db.get('contributions', debug)%0A var wallets = runtime.db.get('wallets', debug)%0A var entries = await contributions.find()%0A%0A var entry, i, paymentId, viewingId%0A for (i = 0; i %3C entries.length; i++) %7B%0A var state, walle... |
6582ea204fb6097986fc34bd4ba8bee8b458b450 | clarify histogram/bin categorisation algorithm | backends/graphite.js | backends/graphite.js | /*
* Flush stats to graphite (http://graphite.wikidot.com/).
*
* To enable this backend, include 'graphite' in the backends
* configuration array:
*
* backends: ['graphite']
*
* This backend supports the following config options:
*
* graphiteHost: Hostname of graphite server.
* graphitePort: Port to co... | JavaScript | 0.000089 | @@ -4451,32 +4451,373 @@
%7D%0A %7D%0A
+ // the outer loop iterates bins, the inner loop iterates timer values;%0A // within each run of the inner loop we should only consider the timer value range that's within the scope of the current bin%0A // so we leverage the fact that the values are al... |
d7bb5d1123f4fd0fb60c244be3a9da686fd5e8e3 | add some info | lib/master/api.base.js | lib/master/api.base.js | 'use strict'
const debug = require('debug')('ddv-worker:master:api:get')
const master = require('ddv-worker')
// 工具
const util = require('ddv-worker/util')
// 系统内部配置
const sys = master.__sys_private__ = master.__sys_private__ || Object.create(null)
// 服务器workerid转serverid
const workerIdToSiteId = sys.workerIdToSiteId =... | JavaScript | 0 | @@ -502,16 +502,54 @@
ster, %7B%0A
+ // %E9%80%9A%E8%BF%87 worker %E6%88%96%E8%80%85 worker_id %E5%8F%96%E5%BE%97 worker%0A
getWor
@@ -559,24 +559,24 @@
(worker) %7B%0A
-
// %E5%88%A4%E6%96%AD%E7%B1%BB%E5%9E%8B%EF%BC%8C
@@ -997,24 +997,52 @@
orker)%0A %7D,%0A
+ // %E9%80%9A%E8%BF%87 siteId %E8%8E%B7%E5%8... |
76574e8d0bcd4183edca72a83b9263e29b3001af | Add spec to test return type of isQuestion() | spec/string_spec.js | spec/string_spec.js | describe('hasVowels()', function() {
it('should always return a boolean', function() {
expect('example string'.hasVowels()).toEqual(jasmine.any(Boolean));
});
it('should return true if string has vowels', function() {
expect('oreofe'.hasVowels()).toBe(true);
expect(('AnDeLa').hasVow... | JavaScript | 0.000138 | @@ -1697,20 +1697,202 @@
Ralph');%0A %7D);%0A%7D);
+%0A%0Adescribe('isQuestion()', function() %7B%0A it('should always return a boolean', function() %7B%0A expect('example string'.isQuestion()).toEqual(jasmine.any(Boolean));%0A %7D);%0A%7D);
|
830b616444ba1a08ec10ae1596d45781faeb4d03 | Embed frontend server configuration | plugins/livedesk-embed/gui-themes/themes/tageswoche.js | plugins/livedesk-embed/gui-themes/themes/tageswoche.js | requirejs.config({
urlArgs: 'v=3',
paths: {
'theme': 'livedesk-embed/themes/default'
}
});
require(['tageswoche.min'], function() {
require(['../scripts/js/config'], function(){
function loadCss(url) {
var link = document.createElement("link");
link.type = "text/css";
link.rel = "stylesheet";
link.... | JavaScript | 0 | @@ -29,9 +29,9 @@
'v=
-3
+4
', %0A
|
c0d4038f5656126004b5927072a49f064836cde0 | Update sketch.js | pong/sketch.js | pong/sketch.js | var BY, BX, T, BDY, BDX;
var Pb, Bot;
var PtsA = 0, PtsB = 0;
function setup() {
background(0);
createCanvas(1080, 720);
BY = height/2;
BX = width/2;
BDY = random(-7, 7);
BDX = 2;
T = random(1, 10);
Pb = height/2-15;
}
function draw() {
background(0);
textSize(20);
fill(255);
text("©Javi", wid... | JavaScript | 0.000001 | @@ -305,15 +305,10 @@
ext(
-%22%C2%A9Javi%22
+Pb
, wi
@@ -331,25 +331,8 @@
0);%0A
- Text(Pb,1,1);%0A
//
|
2d0dc5aab6dbeab3105bc6bfc2ffacbcc33c6bb5 | Improve the Error Messages | node/server.js | node/server.js | /**
* 2011 Peter 'Pita' Martischka
*
* 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 applicable law or agreed... | JavaScript | 0.000161 | @@ -3136,37 +3136,32 @@
%7Dcatch(e)%7B
-console.
error
+log
(e);%7D%0A %0A c
@@ -3271,37 +3271,32 @@
%7Dcatch(e)%7B
-console.
error
+log
(e);%7D%0A %7D);%0A
@@ -3408,36 +3408,310 @@
(e)%7B
-console.error(e);%7D%0A %7D);%0A%7D);
+errorlog(e);%7D%0A %7D);%0A%7D);%0A%0Afunction errorlog(e)%0A%7B%0A var ti... |
c665cec92c27d4a2e850f889436dc34ae91fc630 | Test RP. | middlewares/reverseproxy.js | middlewares/reverseproxy.js |
'use strict';
/*
Example with curl to test the reverse proxy:
export EZMASTER_PUBLIC_DOMAIN="data.istex.fr"
make run-debug
curl -v --proxy "" -H "X-Forwarded-Host: aa-bb-1.data.istex.fr"
++ -H "X-Forwarded-Server: data.istex.fr" http://127.0.0.1:35267/
curl -v --proxy "" -H "Host: aa-bb-1.data.istex.fr" h... | JavaScript | 0 | @@ -2092,16 +2092,19 @@
########
+ BY
X FORWA
@@ -3462,32 +3462,33 @@
y#1.1.1', url);%0A
+%0A
consol
@@ -3984,32 +3984,89 @@
= undefined) %7B%0A%0A
+ console.log(%22########## BY HOST ##########%22);%0A%0A
var ur
|
8088429df74d259f76f462aaea09c3bc0507aa1a | Fix Destructible upgrade. | mingle.static/t/static.t.js | mingle.static/t/static.t.js | require('proof')(1, prove)
function prove (okay, callback) {
var Destructbile = require('destructible')
var destructible = new Destructbile('t/static.t')
destructible.completed.wait(callback)
var Resolver = require('../static')
var cadence = require('cadence')
cadence(function (async) {
... | JavaScript | 0 | @@ -363,23 +363,23 @@
uctible.
-monitor
+durable
('resolv
@@ -717,15 +717,15 @@
ble.
-monitor
+durable
('te
|
7c344ee1ebae1ad3147acdf12a7a946e4494f5ad | Add support for simple command-line invocation | obscom.js | obscom.js | var nouns = ["moment", "feeling"];
var obsRegex = new RegExp("that " +
".*" +
"(" + nouns.join("|") + ")\\s" +
"(when|where)" +
"((?:" +
// Any non-punctuation, non-quote string
"[^\.\?!\"']*|" +
// Any double-quote wrapped string
"\"[^\"]+\"|" +
// Any single-quote wrapped string
"'[^']+'|" ... | JavaScript | 0.000001 | @@ -1172,16 +1172,366 @@
fy);%0A%7D%0A%0A
+function processStdIn() %7B%0A%09var input = %22%22;%0A%0A%09process.stdin.resume();%0A%09process.stdin.setEncoding(%22utf8%22);%0A%0A%09process.stdin.on(%22data%22, function(chunk) %7B%0A%09%09input += chunk;%0A%09%7D);%0A%0A%09process.stdin.on(%22end%22, function() %7B%0A%0... |
c7cd7def54c76fa7893b502433b211edbb9b97aa | Remove debug log stmt | catastrophe_clock/static/catastrophe_clock/js/catastrophe_clock.js | catastrophe_clock/static/catastrophe_clock/js/catastrophe_clock.js | var CatastropheCollection = Backbone.Collection.extend({
url: '/api/catastrophes/',
parse: function(response) {
return response.results;
}
});
var ClockView = Backbone.View.extend({
render: function() {
var pad = function(val, pad) {
var len = val.toString().length;
... | JavaScript | 0.000001 | @@ -5098,50 +5098,8 @@
%22);%0A
- console.log(catastrophe.cid);%0A
|
7e3f382f508b833c2356d28effa34929cc1c7bf6 | Implement basic filter-on-scroll logic on bar-chart | bar-chart/stacked.js | bar-chart/stacked.js | PolymerD3.barChart.stacked = function(chart) {
const STACK_CLASS = 'stacked-rect';
let _conf = function() {
let xIndex = this.getInputsProperty('x');
let yIndices = this.getInputsProperty('y');
let xObj = this.getInputsPropertyObj('x');
let yObj = this.getInputsPropertyObj('y');
let zGroup = thi... | JavaScript | 0.000002 | @@ -1743,16 +1743,67 @@
data();%0A
+ let xIndex = chart.getInputsProperty('x');%0A
@@ -2198,17 +2198,22 @@
xOf(row%5B
-0
+xIndex
%5D) != -1
@@ -2248,16 +2248,1324 @@
%7D%0A
+ %7D);%0A let chartContainer = chart.querySelector('.chartContainer');%0A chart.scrollVal = 0; // variable tha... |
d0690e685ec6eeb8356d31e8a06a164741813337 | Tweak syntax | frontend/app/components/group-form-modal.js | frontend/app/components/group-form-modal.js | import Ember from 'ember';
export default Ember.Component.extend({
actions: {
cancel() {
this.get('group').rollbackAttributes();
},
save: function() {
let group = this.get('group'),
onSave = this.get('onSave');
group.save().then(() => {
if (onSave) {
... | JavaScript | 0.000001 | @@ -85,16 +85,17 @@
cancel
+
() %7B%0A
@@ -157,18 +157,9 @@
save
-: function
+
() %7B
@@ -269,24 +269,16 @@
() =%3E %7B%0A
-
%0A
|
b86178050281df22748777f895573672d6c136ee | Allow binary: true on requests to set encoding | lib/plugins/request.js | lib/plugins/request.js | module.exports.safe = true;
module.exports.manual_interpolation = [ "response" ];
/*
Purpose:
Executes an HTTP request, applying the current request_defaults.
Executes any actions under the .response property on completion of the request.
Syntax:
- request:
url: ...
method: POST
response:
... | JavaScript | 0.000075 | @@ -1539,16 +1539,112 @@
equest);
+%0A%09%0A%09// If binary: true then set the encoding%0A%09if(request.binary) %7B%0A%09%09request.encoding = null;%0A%09%7D
%0A%0A%09// Al
|
b9900992a39e856d324bd6639dafb6e84bed0d4c | add style comment | lib/progressTracker.js | lib/progressTracker.js | 'use strict'
const ProgressBar = require('progress')
const table = require('table')
const Chalk = require('chalk')
const testColorSupport = require('color-support')
const prettyBytes = require('pretty-bytes')
const xtend = require('xtend')
const format = require('./format')
const percentiles = require('hdr-histogram-p... | JavaScript | 0 | @@ -1741,16 +1741,192 @@
r leaks%0A
+ // note: Attempted to curry the functions below, but that breaks the functionality%0A // as they use the scope/closure of the progress bar variables to allow them to be reset%0A
if (op
|
5344ebc8e6ed12ebcd5575be882e34616b1ff6f2 | remove delay after every publish | lib/push/publishing.js | lib/push/publishing.js | import Promise from 'bluebird'
import getEntityName from '../utils/get-entity-name'
import { logEmitter } from '../utils/logging'
/**
* Publish a list of entities.
* Does not return a rejected promise in the case of an error, pushing it
* to an error buffer instead.
*/
export function publishEntities (entities) {... | JavaScript | 0.000001 | @@ -1415,60 +1415,8 @@
%7D)%0A
- .then((entity) =%3E Promise.delay(500, entity))%0A
%7D,
|
bb0fb8c68aa728db84a11719be2257b6b47683b2 | Remove header condition in router | router.js | router.js | const Response = require("./response"), CustomResponse = require("./customResponse");
/**
* Router class that will handle the routing
*/
class Router {
/**
* Router constructor
*
* @param event
* @param context
*/
constructor(event, context) {
this.routes = {};
this... | JavaScript | 0 | @@ -2198,125 +2198,14 @@
-if (requestEvent.headers && requestEvent.headers%5B'Content-type'%5D === %22application/json%22) %7B%0A try %7B%0A
+try %7B%0A
@@ -2295,20 +2295,16 @@
-
%7D catch
@@ -2319,36 +2319,32 @@
-
-
console.log(%22Err
@@ -2401,122 +... |
f0c5df1af5e631f333152f5e74ad734e40876216 | Set initial state of play/pause properly | public/js/core.js | public/js/core.js | $(function() {
$('.edit').on('click', function() {
var $opts = $('.options').toggleClass('visible');
$opts.animate({
'max-height': $opts.hasClass('visible')? '1000px': 0
});
});
$('.forward').on('click', function() {
komponist.next();
updateInfo();
});
$('.backward').on('click', ... | JavaScript | 0 | @@ -510,93 +510,8 @@
%7D)%0A%0A
- // TODO: set visibility state whether or not playback is on%0A $('.pause').hide();%0A%0A
va
@@ -971,16 +971,37 @@
Info();%0A
+ updatePlayPause();%0A
%7D);%0A%0Afun
@@ -1771,24 +1771,166 @@
);%0A %7D);%0A%7D%0A%0A
+function updatePlayPause() %7B%0A komponist.status(function(... |
f1586a7e2ff9d95158df2555eeed80da8905ad5c | Tweak routes | routes.js | routes.js | var express = require('express');
var handlebars = require('express-handlebars');
var path = require('path');
var app = express();
| JavaScript | 0.000001 | @@ -1,12 +1,28 @@
+// Dependencies%0A
var express
@@ -43,16 +43,44 @@
ress');%0A
+var path = require('path');%0A
var hand
@@ -125,55 +125,899 @@
; %0A
-var path = require('path');%0A%0A%0Avar%09app = express();%0A
+%0A// Custom Libraries - ./ signals to node not to look in the node_modules directory%0Avar fortune... |
84e4b707f446a2f0fa2a99845732c0169f184bad | Update 2014/12/12 | data.js | data.js | var schedule = [
{
date: "12/1",
author: "ymyzk",
author_url: "http://www.ymyzk.com",
entry_title: "CAMPHOR- アドベントカレンダー 2014 を始めます!",
entry_url: "http://blog.camph.net/news/advent-calendar-2014/"
},
{
date: "12/2",
author: "ohmuraken",
author_url: "https://github.com/ohmuraken",
entry_title: "彼女のつくりかた... | JavaScript | 0 | @@ -1648,35 +1648,52 @@
entry_title: %22
-%E6%BA%96%E5%82%99%E4%B8%AD
+%E9%A3%9F%E3%81%B9%E3%82%89%E3%82%8C%E3%82%8B%E3%83%89%E3%83%B3%E3%82%B0%E3%83%AA%E3%81%AE%E8%A6%8B%E5%88%86%E3%81%91%E6%96%B9(%E3%83%89%E3%82%A4%E3%83%84%E7%B7%A8)
%22,%0A entry_url:
|
f3a61525e6a7c069c8698e6a8c6945e82267ba99 | remove todo item for plugin support for settings. Reason: won't add value but complicate configuration and is confusing. | lib/recipe/registry.js | lib/recipe/registry.js | 'use strict';
var Path = require('path');
var _ = require('lodash');
var loadPlugins = require('gulp-load-plugins');
var safeRequireDir = require('../helpers/safe_require_dir');
var log = require('gulplog');
var defaults = {
camelize: false,
config: process.cwd() + '/package.json',
pattern: ['gulp-ccr-*'],
replac... | JavaScript | 0 | @@ -1022,648 +1022,8 @@
%09%7D,%0A
-%09%09// TODO: add plugin support in settings%0A%09%09plugin: function (options) %7B%0A%09%09%09var sources, plugins;%0A%0A%09%09%09// supports only 'task' type.%0A%09%09%09if (type === 'task') %7B%0A%09%09%09%09sources = loadPlugins(_.defaults(options %7C%7C %7B%7D, defaults));%0A%... |
171273ccc24f0348e6ef5d5d306c43ba7725fa65 | Generate the proper component and property names | generators/app/templates/fieldView.tests.js | generators/app/templates/fieldView.tests.js | var React = require("react");
var TestUtils = require('react-testutils-additions');
var statusCodes = require('reflux-store-status/statusCodes');
var CertificateBuilder = require('../../../../testUtilities/builders/certificateBuilder');
var ComponentNameView = require('editor/components/fields/componentName/component... | JavaScript | 0.999998 | @@ -232,25 +232,29 @@
der');%0A%0Avar
-C
+%3C%25= c
omponentName
@@ -249,24 +249,29 @@
omponentName
+PC %25%3E
View = requi
@@ -291,32 +291,36 @@
mponents/fields/
+%3C%25=
componentName/co
@@ -308,33 +308,42 @@
%25= componentName
-/
+CC %25%3E/%3C%25=
componentNameVie
@@ -335,24 +335,29 @@
omponentName
+CC ... |
1c8968879e15a8004b52628d4f93213961c90f22 | add `defaulted` class to indicate inputs using the default trick | public/js/hurl.js | public/js/hurl.js | var Hurl = {
// apply label hints to inputs based on their
// title attribute
labelHints: function(el) {
$(el).each(function() {
var self = $(this), title = self.attr('title')
if (self.val() === '' || self.val() === title) {
self.val(title).css('color', '#E9EAEA')
} else {
self.addClas... | JavaScript | 0 | @@ -186,16 +186,90 @@
itle')%0A%0A
+ // indicate inputs using defaults%0A self.addClass('defaulted')%0A%0A
%09%09 if (
@@ -928,16 +928,26 @@
name +'%5D
+.defaulted
:not(.fo
|
1cc21a9ca99330644d121087198dbcfed8be0e94 | make sure the xunit output dir exists before trying to write to it | lib/reporters/xunit.js | lib/reporters/xunit.js | /**
* Module dependencies.
*/
var Base = require('./base');
var utils = require('../utils');
var inherits = utils.inherits;
var fs = require('fs');
var escape = utils.escape;
/**
* Save timer references to avoid Sinon interfering (see GH-237).
*/
/* eslint-disable no-unused-vars, no-native-reassign */
var Date =... | JavaScript | 0 | @@ -170,16 +170,48 @@
.escape;
+%0Avar mkdirp = require('mkdirp');
%0A%0A/**%0A *
@@ -925,13 +925,16 @@
+
if (!
+
fs.c
@@ -949,24 +949,28 @@
teStream) %7B%0A
+
throw
@@ -1024,18 +1024,87 @@
');%0A
-%7D%0A
+ %7D%0A mkdirp.sync(path.dirname(options.reporterOptions.output));%0A
... |
0827a9e4cd913f8775984bb6e18920f68a678e72 | test component template | generators/component/templates/component.js | generators/component/templates/component.js | import React, {Component,PropTypes} from 'react';
class <%= name % >extends Component {
render() {
}
}
| JavaScript | 0.000001 | @@ -60,17 +60,16 @@
= name %25
-
%3Eextends
@@ -89,24 +89,300 @@
-render() %7B%0A%0A %7D%0A
+constructor(props, context) %7B%0A super(props, context);%0A %7D%0A static displayName = %22%3C%25= name %25%3E%22;%0A static propTypes = %7B%7D;%0A%0A buildComponent(props, state) %7B%0A r... |
da6061776adba8036873095b42f2a6820ec162a9 | Fix whitespace | lib/resource_waiter.js | lib/resource_waiter.js | /**
* Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the ... | JavaScript | 0.999999 | @@ -2892,30 +2892,24 @@
%7D%0A %7D);
-
%0A %7D else
@@ -3406,22 +3406,16 @@
%7D);
-
%0A %7D%0A%0A
|
f538df739ff96e4bc32400bf933aee02bb0869d3 | use p2 physics system, get basic input | scripts/Main.js | scripts/Main.js | var game = null;
game = new Phaser.Game(window.innerHeight, window.innerWidth, Phaser.AUTO);
var GameState = {
preload: function () {
this.load.image('background', 'graphics/temp_background.png');
this.load.image('spaceShip', 'graphics/temp_spaceShip.png');
},
create: function() {
... | JavaScript | 0.000001 | @@ -1,116 +1,156 @@
var
-game = null;%0A%0Agame = new Phaser.Game(window.innerHeight, window.innerWidth, Phaser.AUTO);%0A%0Avar GameState = %7B
+GameState = %7B%0A init: function() %7B%0A this.game.physics.startSystem(Phaser.Physics.P2JS);%0A this.game.physics.p2.gravity.y = 30;%0A %7D,
%0A%0A
... |
321aa9ffda8094a6a1358da50d116e19a384d94d | Fix slide when has one image | public/js/main.js | public/js/main.js | jQuery(document).ready(function ($) {
var slideCount = $('#slider ul li').length;
var slideWidth = $('#slider ul li').width();
var slideHeight = $('#slider ul li').height();
var sliderUlWidth = slideCount * slideWidth;
setInterval(function () {
moveRight();
}, 4000);
$('#slider').css({ width: slideWidth, he... | JavaScript | 0.000003 | @@ -222,62 +222,8 @@
h;%0A%0A
-%09setInterval(function () %7B%0A%09%09moveRight();%0A%09%7D, 4000);%0A%0A
%09$('
@@ -320,16 +320,69 @@
dth)
-%0A%09 %7B
+ %7B%0A%09%09setInterval(function () %7B%0A%09%09%09moveRight();%0A%09%09%7D, 4000);%0A%09%09
$('#
@@ -448,17 +448,18 @@
idth %7D);
-
+%0A%09
%7D%0A%0A%09$(... |
5b1178c7c5da3ec23eff29aec8b2db1551dff639 | Fix cmd-s shortcut not saving changes in text fields with focusout | ghost/admin/app/mixins/editor-base-route.js | ghost/admin/app/mixins/editor-base-route.js | import Ember from 'ember';
import ShortcutsRoute from 'ghost/mixins/shortcuts-route';
import styleBody from 'ghost/mixins/style-body';
import ctrlOrCmd from 'ghost/utils/ctrl-or-cmd';
const {Mixin, RSVP, run} = Ember;
let generalShortcuts = {};
generalShortcuts[`${ctrlOrCmd}+alt+p`] = 'publish';
generalShortcuts['alt... | JavaScript | 0.000001 | @@ -185,16 +185,19 @@
%0Aconst %7B
+$,
Mixin, R
@@ -495,24 +495,278 @@
save() %7B%0A
+ let selectedElement = $(document.activeElement);%0A%0A if (selectedElement.is('input%5Btype=%22text%22%5D')) %7B%0A selectedElement.trigger('focusout');%0A %7D%0A%0A r... |
1d1e53cef0169d7debec956f0ba7c309e0bc03c5 | fix integration with .bash_profile | postinstall.js | postinstall.js | var fs = require("fs");
var path = require("path");
var child_process = require("child_process");
fs.chmod("resources/platform-tools/android/osx/adb", "755", function (err) {
if (err) {
throw err;
}
});
var homeDir = process.env.USERPROFILE || process.env.HOME || process.env.HOMEPATH;
var scriptsOk = true;
var o... | JavaScript | 0 | @@ -646,16 +646,90 @@
%7D%0A%09%7D%0A%7D%0A%0A
+function getHomePath(fileName) %7B%0A%09return path.join(homeDir, fileName);%0A%7D%0A%0A
function
@@ -775,35 +775,28 @@
ePath =
-path.join(homeDir,
+getHomePath(
fileName
@@ -1236,16 +1236,16 @@
file%22);%0A
-
updateSh
@@ -1267,16 +1267,464 @@
hrc%22);%0A%0A
+var... |
f1bd89d9523801dfe46edf4d43c9f0e7b7f2708b | Fix docma app base path (again) | scripts/docs.js | scripts/docs.js | const Docma = require('docma');
const pkg = require('../package.json');
Docma.create()
.build({
src: [
'./Core/**/*.js', './Dialog/**/*.js',
{
guide: './README.md',
examples: './Examples/README.md',
msgbox: './Examples/MsgBox.md',
progressbar: './Examples/ProgressBar.m... | JavaScript | 0 | @@ -379,38 +379,8 @@
e: '
-https://unicorn-fail.github.io
/nod
@@ -392,17 +392,16 @@
oadialog
-/
',%0A
|
36a25cca2a662f9bb8342af0849af50481d4011d | Update game.js | scripts/game.js | scripts/game.js | // Constructs a game object to be played
// @param autoPlayer [AIPlayer] : the AI player to be play the game with
var Game = function(autoPlayer) {
//public : initialize the ai player for this game
this.ai = autoPlayer;
// public : initialize the game current state to empty board configuration
this.curren... | JavaScript | 0.000001 | @@ -373,17 +373,16 @@
rd cell;
-
%0D%0A%09this.
@@ -1322,18 +1322,16 @@
unning%0D%0A
-%0D%0A
%09%09%09if (t
@@ -2446,21 +2446,16 @@
he state
-
%0D%0A%09this.
@@ -4543,12 +4543,14 @@
n 0;%0D%0A%09%7D%0D%0A%7D;
+%0D%0A
|
17aea7485b8224f81b3d3db94556b53319af01e7 | Revert "Updated init.js" | scripts/init.js | scripts/init.js | $(document).ready(function(){
$('.slider').slider({full_width: true, Interval: 5000});
$('.materialboxed').materialbox();
return false;
}); | JavaScript | 0 | @@ -65,24 +65,8 @@
true
-, Interval: 5000
%7D);%0A
|
7cb8f15d56404a56f45789fe5a9bfc7bde04de92 | Add json2csv route | lib/routes/json2csv.js | lib/routes/json2csv.js | var express = require('express');
var bodyParser = require('body-parser');
var converter = require('json-2-csv');
var router = express.Router();
router.use(bodyParser.json());
/* POST */
router.post('/', function(req, res, next) {
if (!req.body) {
return res.sendStatus(400);
}
res.send('Under Construction')... | JavaScript | 0.000384 | @@ -196,16 +196,24 @@
.post('/
+json2csv
', funct
@@ -234,16 +234,17 @@
next) %7B%0A
+%0A
if (!r
@@ -250,16 +250,54 @@
req.body
+ %7C%7C Object.keys(req.body).length === 0
) %7B%0A
@@ -332,41 +332,135 @@
%7D%0A
+%0A
-res.send('Under Construction');
+converter.json2csv(req.body, function(err, csv) %7B... |
fdc58e14ac94c13aefcf9e3d26c8d4261508c91d | Use secure tiles. | scripts/main.js | scripts/main.js | /*globals L GlobalMercator MA */
(function(){
var zoom = 14,
maxCost = 800,
sidePx = 800,
halfSidePx = sidePx/2,
gm = new GlobalMercator(),
map = L.map('map'),
layerUrl = 'http://{s}.tiles.mapbox.com/v3/atogle.map-vo4oycva/{z}/{x}/{y}.png',
attribution = 'Map data © Ope... | JavaScript | 0 | @@ -208,16 +208,17 @@
= 'http
+s
://%7Bs%7D.t
|
774f66328523bd63526ae8917a42053a76804fd3 | Add check for empty posts to post.js. | public/js/post.js | public/js/post.js | $(function() {
$('.hide').hide();
// Convert post to textarea for edit
$('div#content').delegate('.post_edit', 'click', function() {
var div = $(this).parents('div:first');
var text_elt = $('.post_text', div);
var id = div.attr('id').replace(/^post/,'');
// Pause posts while editing
$.post('/... | JavaScript | 0 | @@ -26,24 +26,240 @@
').hide();%0A%0A
+ // Post message%0A $('#post_submit').click(function() %7B%0A var form = $(this).parents('form:first');%0A var post_text = $('textarea', form).val();%0A if (post_text.length == 0) %7B%0A return false;%0A %7D%0A %7D);%0A%0A
// Convert
|
fde9566dfffc2718708589064aa67ceb400caa94 | Update character | output.js | output.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
//Added a comment that achieve | JavaScript | 0 | @@ -112,8 +112,9 @@
achieve
+s
|
b5045a958c0c6034e6572d3801d5b926878e5b7c | Update main.js | scripts/main.js | scripts/main.js | // Image switcher code
var myImage = document.querySelector('img');
myImage.onclick = function() {
var mySrc = myImage.getAttribute('src');
if(mySrc === 'images/firefox-icon.png') {
myImage.setAttribute ('src','images/firefox2.png');
} else {
myImage.setAttribute ('src','images/firefox-icon.png');
}
}
/... | JavaScript | 0.000001 | @@ -590,17 +590,16 @@
= 'Ola!
-
Estamos
@@ -607,18 +607,16 @@
niciando
-,
' + myNa
|
93cc7331c1389ab0d623e8ec3bd29bcb80b41fc6 | Update character | output.js | output.js | var fs = require('fs');
var child_process = require('c | JavaScript | 0 | @@ -47,8 +47,9 @@
quire('c
+h
|
327f3fd7d7a8698fbb801f92d6decf21e3cbb3a9 | Update BinaryString | src/BinaryString.js | src/BinaryString.js | /**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | JavaScript | 0.000001 | @@ -864,14 +864,14 @@
ed:
-Feb 23
+Jun 16
, 20
@@ -1264,16 +1264,26 @@
tring(bs
+, needtest
) %7B%0A
@@ -1290,16 +1290,29 @@
if (
+!needtest %7C%7C
/%5E%5B%5Cx00-
@@ -2488,16 +2488,22 @@
tring(bs
+, true
); %7D;%0A%0A%7D
|
b71cfa015428c3e893a1b2f597b6a291c733022d | Test that not sending 'message' throws an error. | common/predictive-text/unit_tests/headless/worker-intialization.js | common/predictive-text/unit_tests/headless/worker-intialization.js | var assert = require('chai').assert;
var sinon = require('sinon');
let LMLayerWorker = require('../../worker');
describe('LMLayerWorker', function() {
describe('#constructor()', function() {
it('should allow for the mocking of postMessage()', function () {
var fakePostMessage = sinon.fake();
var w... | JavaScript | 0 | @@ -474,32 +474,50 @@
ker.onMessage(%7B%0A
+ data: %7B%0A
message:
@@ -531,32 +531,34 @@
alize',%0A
+
model: 'en-x-dum
@@ -553,32 +553,42 @@
l: 'en-x-dummy'%0A
+ %7D%0A
%7D);%0A
@@ -967,32 +967,50 @@
ker.onMessage(%7B%0A
+ data: %7B%0A
message:
@@ -... |
80f7ef4b2a9a364d144dd2d9a465d1372f4bdb70 | Update to new API | source/js/serializeFileContents/test.js | source/js/serializeFileContents/test.js | /* eslint-disable prefer-template */
// To keep XML markup readable
const test = require('tape-catch');
const sinon = require('sinon');
const inNode = require('detect-node');
const randomString = require('random-string');
const svgElementMocks = {};
const addElement = ({ drawingId, markup }) => {
if (inNode) {
... | JavaScript | 0 | @@ -4959,16 +4959,42 @@
.com/',%0A
+ openInNewTab: true,%0A
%7D,%0A
|
616a381e93d8950d693f2be6b7d444be8d2ea2c5 | Change references of dhcpService to dhcpProtocol | lib/services/lookup.js | lib/services/lookup.js | // Copyright 2014, Renasar Technologies Inc.
/* jshint node: true, newcap: false */
'use strict';
var di = require('di');
var lruCache = require('lru-cache');
module.exports = lookupServiceFactory;
di.annotate(lookupServiceFactory, new di.Provide('Services.Lookup'));
di.annotate(lookupServiceFactory,
new di.Inje... | JavaScript | 0 | @@ -657,28 +657,30 @@
Dhcp
-Service%7D dhcpService
+Protocol%7D dhcpProtocol
An
@@ -699,23 +699,24 @@
the Dhcp
-Service
+Protocol
.%0A * @pa
@@ -901,23 +901,24 @@
on, dhcp
-Service
+Protocol
, waterl
@@ -3023,23 +3023,24 @@
the Dhcp
-Service
+Protocol
.%0A *
@@ -3362,23 +3362,24 @@
urn dhcp
-Service
+Pro... |
674d8f249a536391634cb9348453e150f0c4aad5 | Fix syntax error in util.js | scripts/util.js | scripts/util.js | var _ = require('underscore');
module.exports = function(robot){
robot.util = {
params: {
jsonSpace: '\t'
}
formatJson: function(obj, pretty){
var jsonStr = JSON.stringify(obj, null, this.params.jsonSpace);
if (!pretty)
return jsonStr;
else
return jsonStr.replace(/"/g, '');
},
getUse... | JavaScript | 0.000578 | @@ -111,16 +111,17 @@
'%5Ct'%0A%09%09%7D
+,
%0A%0A%09%09form
|
09a1590d0da879b1d9cbbaa237ab2b2f1560002f | Fix StateChange specs | spec/arethusa.core/state_change_spec.js | spec/arethusa.core/state_change_spec.js | "use strict";
describe('StateChange', function() {
var StateChange;
var token;
function Token() {
this.string = 'test';
this.id = '1';
this.a = { b: { c: 'c' } };
}
var state = {
change: function(t, p, n) { new StateChange(state, t, p, n).exec(); },
getToken: function(id) { if (id === ... | JavaScript | 0 | @@ -181,16 +181,46 @@
%7D;%0A %7D%0A%0A
+ var broadcasted, notified;%0A%0A
var st
@@ -361,16 +361,120 @@
n token;
+ %7D,%0A broadcast: function() %7B broadcasted = true; %7D,%0A notifyWatchers: function() %7B notified = true;
%7D%0A %7D;%0A
@@ -556,24 +556,60 @@
eChange_) %7B%0A
+ broadcasted = noti... |
88b317f0c132373abbe7852918b8638a4326d383 | Fix jasmine spec for aspectFilters | spec/javascripts/aspect-filters-spec.js | spec/javascripts/aspect-filters-spec.js | /* Copyright (c) 2010, Diaspora Inc. This file is
* licensed under the Affero General Public License version 3 or later. See
* the COPYRIGHT file.
*/
describe('AspectFilters', function(){
it('initializes selectedGUIDS', function(){
expect(AspectFilters.selectedGUIDS).toEqual([]);
});
it('initializes ... | JavaScript | 0 | @@ -313,24 +313,29 @@
ializes
-r
+activeR
equest
-s
', funct
@@ -370,16 +370,21 @@
ers.
-r
+activeR
equest
-s
).to
@@ -389,17 +389,20 @@
toEqual(
-0
+null
);%0A %7D);
|
370d031cd562be599604ffbe69cbd0f83a420e18 | Add navigator to propTypes | src/MessageImage.js | src/MessageImage.js | import React from 'react';
import {
Image,
StyleSheet,
View,
Dimensions,
} from 'react-native';
import Lightbox from 'react-native-lightbox';
export default class MessageImage extends React.Component {
render() {
const { width, height } = Dimensions.get('window');
return (
<View style={[styles... | JavaScript | 0 | @@ -1051,16 +1051,35 @@
le: %7B%7D,%0A
+ navigator: null,%0A
%7D;%0A%0AMess
@@ -1220,11 +1220,48 @@
.style,%0A
+ navigator: React.PropTypes.object,%0A
%7D;%0A
|
feb644f6d16a8a9e7d888c84f791cac5826ae23b | Remove extra comment. | src/UserLocation.js | src/UserLocation.js | class UserLocation {
static getUserLocation(success, error) {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(success, error);
} else {
throw Error('Geolocation is not supported or allowed by this browser.');
}
}
}
export default UserLocation;
/*
var x = document.getElementById('dem... | JavaScript | 0 | @@ -278,384 +278,4 @@
on;%0A
-/*%0Avar x = document.getElementById('demo');%0Afunction getLocation() %7B%0A%09if (navigator.geolocation) %7B%0A%09%09navigator.geolocation.getCurrentPosition(showPosition);%0A%09%7D else %7B%0A%09%09x.innerHTML = 'Geolocation is not supported by this browser.';%0A%09%7D%0A%7D%0Afunction... |
16b3150fae82800c3240e051d0b340cc893dd9d2 | Fix controlDate propType in WeekSelector (#140) | src/WeekSelector.js | src/WeekSelector.js | import React, { Component } from "react";
import PropTypes from "prop-types";
import { Image, TouchableOpacity } from "react-native";
import moment from "moment";
import styles from "./Calendar.style.js";
class WeekSelector extends Component {
static propTypes = {
controlDate: PropTypes.object,
iconCompone... | JavaScript | 0 | @@ -286,30 +286,27 @@
: PropTypes.
-object
+any
,%0A iconCo
|
bc9d7ce3491b04ba25f6269d738634952f8d03a4 | call changed | player.js | player.js | module.exports = {
VERSION: "Kickstarter",
bet_request: function(game_state, bet) {
const myplayer = game_state.players[game_state.in_action]
console.log(myplayer.hold_cards)
//Check for first
console.log(game_state);
call(game_state, bet);
},
showdown: function(game_state) {
}
};
functi... | JavaScript | 0.000002 | @@ -1,8 +1,32 @@
+let gameState, respond;%0A
module.e
@@ -106,16 +106,64 @@
bet) %7B%0A
+ gameState = game_state;%0A respond = bet;%0A
cons
@@ -313,31 +313,16 @@
call(
-game_state, bet
);%0A %7D,%0A
@@ -403,16 +403,26 @@
, bet)%7B%0A
+ call();%0A
%7D%0A%0Afunct
@@ -447,32 +447,42 @@
ame_state, ... |
e83698434d8f8dbf2bd4050665d6c602ac30ec40 | Add quit reason to \!quit | plugin.js | plugin.js | var format = require('util').format;
module.exports = {
init: function (client, imports) {
const requiresAdmin = imports.admin.requiresAdmin;
return {
handlers: {
'!join': requiresAdmin(function (command) {
if (command.args[0]) {
... | JavaScript | 0.000001 | @@ -1247,32 +1247,239 @@
mmand.prefix));%0A
+%0A var reason = command.args.join(%22 %22);%0A if (/%5E%5Cs*$/.test(reason)) %7B%0A reason = format(%22Requested by %25s%22, command.nickname);%0A %7D%0A%0A
@@ -1494,16 +1494,... |
c7d5e1985eed22d981f434ed426dfd94efb48498 | Remove the null assignment of app. | plugin.js | plugin.js | 'use strict';
import { EventEmitter } from 'events';
/**
* Plugin Interface
* @class
*/
export default class {
/**
* Construct the plugin.
* @param {object} plugin
*/
constructor(plugin) {
// Process the plugin information. (Verify should be done by the core).
this.plugin = plugin;
// Ap... | JavaScript | 0 | @@ -308,92 +308,8 @@
n;%0A%0A
- // App will be replaced with the app context of the core.%0A this.app = null;%0A%0A
|
bb13594c11e04909fdd8277d343ff42fe5682105 | add route | server/index.js | server/index.js | 'use strict';
var express = require('express');
//TODO: var bodyParser = require('body-parser');
var app = express();
/**
* middleware
* configuration
*/
// static directory
app.use('/assets', express.static(__dirname + '/../public/assets'));
//TODO: favicon & robots.txt
// view template engine
app.set('views',... | JavaScript | 0.000004 | @@ -479,98 +479,99 @@
*/%0A
-//TODO: var adminRouter = require('./admin-router');%0A//TODO: app.use('/admin', adminRouter
+app.get('/', function(req, res) %7B%0A return res.render('users/index', %7B title: 'users' %7D);%0A%7D
);%0Aa
@@ -571,32 +571,37 @@
;%0A%7D);%0Aapp.get('/
+admin
', function(req,
@@ -672,43 +... |
0c2637c676e931b61a41a36e649bb8eb184ed4b1 | Add table id | src/api/sistemas.js | src/api/sistemas.js | import resource from 'resource-router-middleware';
import Sistemas from '../models/sistemas';
let sistemas = new Sistemas();
function transformTablesJson2CSV(data) {
let results = [];
results.push(['Usuário', 'Verbo', 'Tabelas']);
for (let key in data.results) {
let resultItem = {};
data.results[key].dat... | JavaScript | 0.000012 | @@ -431,16 +431,37 @@
b%5D.push(
+item.fromId + '##' +
item.fro
|
1b9fa795e4b5d1dba4f81f9e215b12dd13478447 | Update api_1_call_1.js | src/api_1_call_1.js | src/api_1_call_1.js | function getResult(callback, parameters) {
if(parameters.city){
//Put your action here
var city = parameters.city;
var country = 'FR';
require('request')('https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyDLGejsdWAYT5BKgqqvmRQUoWtT34OWfE8&address='+city+','+country, functi... | JavaScript | 0.000003 | @@ -26,40 +26,61 @@
ck,
-parameters) %7B%0A%0A if(parameters
+json) %7B%0A %0A var input = json.input;%0A if(input
.cit
@@ -133,26 +133,21 @@
city =
-parameters
+input
.city;%0A
|
c4a0f7d587facff3704396690c27e7092b039bc5 | Update api_2_call_2.js | src/api_2_call_2.js | src/api_2_call_2.js | function getResult(callback, json) {
console.log("Call made : api_2_call_2");
var input = json.input;
var all_required = false;
if(input.geoCode&&input.date){
var date = input.date;
var geoCode = input.geoCode;
all_required = true;
}
if(all_required){... | JavaScript | 0.000004 | @@ -363,32 +363,88 @@
+ 'T';%0A
+ console.log(%22input api_2_call_2 : %22, input);%0A /*
%0A if(inpu
@@ -709,32 +709,34 @@
%7D%0A
+*/
%0A date_IS
|
3fdd41882d9101e63063bc7da8316a5adeb0cdb4 | Use AES-256 instead of AES-128, allows longer secrets. | server/utils.js | server/utils.js | const _ = require('lodash/fp');
const crypto = require('crypto');
const config = require('./config');
function sha128(input) {
let hash, digest, ret, i;
if (!Buffer.isBuffer(input))
throw new Error(`Invalid input for hash: ${input}`);
hash = crypto.createHash('sha256');
hash.update(input);
digest = has... | JavaScript | 0 | @@ -108,19 +108,19 @@
tion sha
-128
+256
(input)
@@ -125,37 +125,8 @@
) %7B%0A
- let hash, digest, ret, i;%0A%0A
if
@@ -212,16 +212,22 @@
%7D%60);%0A%0A
+const
hash = c
@@ -280,37 +280,101 @@
t);%0A
+%0A
-digest = hash.digest(
+return hash.digest();%0A%7D%0A%0Afunction sha128(input) %7B%0A const dige... |
0cf76661d35cc68a31af2834dafcff80e8471f9d | remove logging | schema.js | schema.js | function create (con) {
return function () {
console.log(con)
return new con()
}
}
//all the scuttlebutt subclasses written so far.
module.exports = require('scuttlebutt-schema')({
'model': create(require('scuttlebutt/model')),
'events': create(require('scuttlebutt/events')),
'r-edit': create(requir... | JavaScript | 0.000001 | @@ -44,29 +44,8 @@
) %7B%0A
- console.log(con)%0A
@@ -564,32 +564,4 @@
%7D)%0A%0A
-console.log(module.exports)%0A
|
1cffb0932bde2259752562888f03a5ca24f11f9e | Update setup-aether.js to work when symlinked | setup-aether.js | setup-aether.js | /**
* Set up and build Aether. We build Aether as a separate artifact using
* webpack. We also rename certain esper files here and move those files
* into the public directory to be loaded dynamically at runtime by the
* browser and service workers.
*
* Note:
* esper-modern requires modern language plugin to be... | JavaScript | 0 | @@ -592,16 +592,115 @@
ipt%22%5D;%0A%0A
+const PWD = process.env.PWD %7C%7C __dirname; // __dirname might be undesirable if this is symlinked%0A%0A
const ae
@@ -747,25 +747,19 @@
resolve(
-__dirname
+PWD
),%0A ent
@@ -1059,25 +1059,19 @@
resolve(
-__dirname
+PWD
, 'bower
@@ -2341,33 +2341,27 @@
(%0A
... |
42cf9d9b7df8de3d87d5a620f5ff2b5faab26344 | update demo.js | demo.js | demo.js | // run this demo using node.js https://nodejs.org/
const log = require('./index.js')
log(
'\n'+
'The package log-with-colors adds some new logging functions using\n'+
'process.stdout and chalk.js'
)
log.gray('log.gray() should be gray')
log.blue('log.blue() should be blue')
log.cyan('log.cyan() should be cyan')
log.... | JavaScript | 0.000001 | @@ -188,19 +188,16 @@
nd chalk
-.js
'%0A)%0Alog.
|
19dcbca0558685400a632e42d22ff42f00b333fe | Update script.js | TheScrabbler/scripts/script.js | TheScrabbler/scripts/script.js | // GLOBAL VARIABLES ================================================
var ROWS = 7;
var COLUMNS = 7;
//==================================================================
//==================MODEL CLASS=====================================
function Model(){
// Local Variables
// testest
var grid = initGrid(ROWS, COLU... | JavaScript | 0.000002 | @@ -274,20 +274,8 @@
les%0A
-%09// testest%0A
%09var
@@ -627,17 +627,16 @@
w.push(%22
-h
%22);%0A%09%09%09%7D
|
bec69766625d9faf7892299f1beec9fe3717c080 | Add some phrases | src/cocos/greet/coco.js | src/cocos/greet/coco.js | const phrases = [
'hi',
'hello',
'hey',
'what up',
'what\'s up',
'how is it going',
'sup',
'yo',
'dog',
'just chillax'
]
export default {
enabled: true,
name: 'greet',
details: 'Just some talk',
keywords: phrases,
exec () {
return phrases[Math.floor(Math.random() * phrases.length)]
... | JavaScript | 0.999999 | @@ -131,16 +131,74 @@
chillax'
+,%0A 'cool',%0A 'ok',%0A 'well',%0A 'fine',%0A 'wosup',%0A 'why'
%0A%5D%0A%0Aexpo
|
bbd17a60f3c089e99ab1ff92dfce3276b42fb2dd | remove eles.classes() | src/collection-class.js | src/collection-class.js | ;(function( $$ ){ 'use strict';
$$.fn.eles({
classes: function(opts){
var eles = this;
var changed = [];
var fn;
if( $$.is.fn(opts) ){
fn = opts;
} else if( !$$.is.plainObject(opts) ){
return this; // needs opts or fn
}
for(var i = 0; i < eles.lengt... | JavaScript | 0.000001 | @@ -47,1662 +47,8 @@
s(%7B%0A
- classes: function(opts)%7B%0A var eles = this;%0A var changed = %5B%5D;%0A var fn;%0A%0A if( $$.is.fn(opts) )%7B%0A fn = opts;%0A%0A %7D else if( !$$.is.plainObject(opts) )%7B%0A return this; // needs opts or fn%0A %7D %0A%0A for(var i... |
b406fec37a1a9665aadb63c30dd31fdfbc02d312 | Rephrase bichain property tests to make them more general | test/prop/2.arbitrary.js | test/prop/2.arbitrary.js | import {assertEqual, I, B, K} from '../util/util.js';
import {
any,
anyFuture,
anyRejectedFuture,
anyResolvedFuture,
constant,
f,
g,
oneof,
property,
} from '../util/props.js';
import {
after,
and,
bichain,
bimap,
chain,
chainRej,
coalesce,
go,
map,
mapRej,
reject,
rejectAfter,... | JavaScript | 0.000006 | @@ -493,16 +493,354 @@
%7D;%0A%7D%0A%0A
+property('bichain(reject)(B(mk)(f))(m) = chain(B(mk)(f))(m)', make, anyFuture, function (mk, m)%7B%0A return eq(bichain(reject)(B(mk)(f))(m))(chain(B(mk)(f))(m));%0A%7D);%0A%0Aproperty('bichain(B(mk)(f))(resolve)(m) = chainRej(B(mk)(f))(m)', make, anyFuture, function (mk, m)... |
ead7cffae699e62419f1d264d65ec94ca7a4df04 | Remove commented code from FetchCollection | src/collection/fetch.js | src/collection/fetch.js | import React from 'react'
import ReactDOM from 'react-dom'
import Collection from './index.js'
import LoadingContainer, { LoadingState, PresentState, EmptyState } from 'snax/lib/containers/loading'
import CoreAPI from '../api'
import _ from 'lodash'
import when from 'when'
import FilterContext from 'utils/filter_contex... | JavaScript | 0 | @@ -2532,493 +2532,8 @@
) %7B%0A
- //console.log(nextProps)%0A //if (nextProps.options != this.props.options %7C%7C nextProps.endpoint != this.props.endpoint) %7B%0A // const dataPromise = this.buildRequest()%0A // .then(data =%3E this.setState(%7BresolvedData: data, asyncStatus: 'COMPLETE'%7D))%0A ... |
32d555cad1f9257e09f45e4df9615287e3a61999 | extend put tests to handle nesting issues occurring on replaceOne() (replaceOne() was test but discarded due to the nesting issue) | test/put-handler-test.js | test/put-handler-test.js | const test = require('ava');
// TODO: separate connection for each test
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.connect('mongodb://localhost/forest-test', { useMongoClient: true });
const createServer = require('./helpers/createServer.js');
const CatModel = require('./fixtures/... | JavaScript | 0 | @@ -1701,32 +1701,50 @@
fromTest: 'put'
+, meta: %7B age: 2 %7D
%7D);%0A t.is(res.
@@ -1976,32 +1976,85 @@
s right name');%0A
+ t.is(dbEntry.meta.age, 2, 'entry has right meta');%0A
%7D);%0A%0Atest('updat
|
2a5698cadb00f6d1077735f4e33305db1d1b87fc | Fix broken 'dist' command. | dist.js | dist.js | #!/usr/bin/env node
// Copyright (c) 2015 Uber Technologies, Inc.
//
// 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 rights
// to use... | JavaScript | 0.000389 | @@ -1324,16 +1324,22 @@
lib/ring
+/index
.js');%0Av
|
39459435b88c27480e4afb5891f23751b10a7d04 | Remove 'you need to sign out' bar, r=Boriss | static/js/sidebar/app.js | static/js/sidebar/app.js | /*global app, AppPort, GoogleContacts, HTTP, payloads */
/* jshint unused: false */
/**
* Sidebar application.
*/
var SidebarApp = (function(app, $) {
"use strict";
function SidebarApp(options) {
options = options || {};
this.http = new HTTP();
this.appStatus = new app.models.AppStatus();
this... | JavaScript | 0.000025 | @@ -1492,83 +1492,8 @@
is);
-%0A this.appPort.on('talkilla.reauth-needed', this._onReauthNeeded, this);
%0A%0A
@@ -5693,124 +5693,8 @@
%7D;%0A%0A
- SidebarApp.prototype._onReauthNeeded = function() %7B%0A app.utils.notifyUI(%22You need to sign in%22, %22error%22);%0A %7D;%0A%0A
Si
|
e790f929b3e98509f634a5625c62fe694ca210a5 | fix the isTrivial() method | src/common/partition.js | src/common/partition.js | 'use strict';
var I = require('immutable');
var get = function get(impl, x) {
var root = x;
var p, z, t;
while (impl.parent.get(root) !== undefined)
root = impl.parent.get(root);
p = impl.parent;
for (z = x; z != root;) {
t = z;
z = p.get(z);
p.set(t, root);
}
impl.parent = p;
ret... | JavaScript | 0.999999 | @@ -1044,20 +1044,22 @@
n _impl.
-rank
+parent
.size ==
|
5628beee725a31968b3bc6488a6504211d21cfd4 | handle removed props | src/common/selectors.js | src/common/selectors.js | import every from 'lodash/every'
import filter from 'lodash/filter'
import find from 'lodash/find'
import forEach from 'lodash/forEach'
import isArrayLike from 'lodash/isArrayLike'
import orderBy from 'lodash/orderBy'
import pickBy from 'lodash/pickBy'
import slice from 'lodash/slice'
import sortBy from 'lodash/sortBy'... | JavaScript | 0.000001 | @@ -1,37 +1,4 @@
-import every from 'lodash/every'%0A
impo
@@ -996,24 +996,52 @@
'array') %7B%0A
+ const %7B length %7D = c1%0A
if (c1
@@ -1042,11 +1042,8 @@
if (
-c1.
leng
@@ -1095,70 +1095,363 @@
%7D%0A
- %7D%0A%0A return every(c1, (value, key) =%3E c2
+%0A for (let i = 0; i %3C length;... |
f838b76da0071e879199ef74e1ebdd033b524500 | Make grid get coords give cell central position | src/befunge/grid.js | src/befunge/grid.js |
export const create = (config) => {
var grid = {
xCells: config.xCells,
yCells: config.yCells,
cellSize: config.cellSize
};
return grid;
};
export const getCoordinates = (grid, scene, xPos, yPos) => {
const x = xPos - scene.translation.x;
const y = yPos - scene.translation.y;
var nearestX = ... | JavaScript | 0 | @@ -155,16 +155,143 @@
id;%0A%7D;%0A%0A
+/**%0A x, y: Coordinates of grid cell%0A xPos, yPos: Position of original click%0A cX, cY: Central coordinates of cell%0A */%0A
export c
@@ -421,27 +421,29 @@
lation.y;%0A
-var
+const
nearestX =
@@ -475,19 +475,21 @@
ize);%0A
-var
+const
nearest
@@ -523,16... |
2f3cd3bdd714b019b753c54278597968b502e043 | add tests for trailing dot in prefix | test/StatsDClient-test.js | test/StatsDClient-test.js | var vows = require('vows'),
assert = require('assert'),
FakeEphemeralSocket = require('./fakeEphemeralSocket'),
StatsDClient = require('../lib/statsd-client');
function assertGotMessage(message) {
return function (client) {
assert(client._ephemeralSocket.testAndDeleteMessage(message));
}
}
... | JavaScript | 0.000001 | @@ -532,32 +532,377 @@
%7D);%0A %7D,%0A
+ 'add trailing dot at the end of the prefix': %7B%0A 'test': function () %7B%0A assert.equal(new StatsDClient(%7Bprefix: 'test'%7D).options.prefix, 'test.');%0A %7D,%0A 'test.': function () %7B%0A ass... |
50874a95ef876e0cda3be8acbf2912c1836592d2 | add pauses, double time, half time | script.js | script.js | var imgs = [document.getElementById('image0'), document.getElementById('image1')];
var playBtn = document.getElementById('playBtn');
var playBtnImg = document.getElementById('playBtnImg');
var headphoneMsg = document.getElementById('headphone-msg');
(function(){
var widgetIframe = document.getElementById('sc-widget'... | JavaScript | 0.003347 | @@ -1218,16 +1218,75 @@
112)+1;%0A
+ var doubleBeat = Math.floor(relPos/1000/60*112*2)+1;%0A
co
@@ -1434,32 +1434,36 @@
6) %7C%7C%0A
+
(beat %3E= 223 &&
@@ -1473,24 +1473,28 @@
t %3C 225) %7C%7C%0A
+
(b
@@ -2076,24 +2076,467 @@
%0A %7D);%0A%0A
+%0A // double time... |
50410219b45deedea53bb46cf47708c0a3a896bc | Fix incorrect variable name from dec13194d81b03278c153cac769908d39ccf5d12. | opener.js | opener.js | #!/usr/bin/env node
"use strict";
var childProcess = require("child_process");
function opener(args, options, callback) {
// http://stackoverflow.com/q/1480971/3191, but see below for Windows.
var command = process.platform === "win32" ? "cmd" :
process.platform === "darwin" ? "open" :
... | JavaScript | 0.999953 | @@ -741,17 +741,21 @@
c
-m
+omman
d = opti
|
0eb98267d4d822f3fd516df75ddf3114aa390949 | disable jquery animations | script.js | script.js | $(document).ready(function() {
$('body').on('click', 'a[target="_blank"]', function(e) {
e.preventDefault();
var $link = $(this);
chrome.extension.sendRequest({url: $link.attr('href')});
});
});
| JavaScript | 0.000001 | @@ -205,14 +205,100 @@
%0D%0A %7D);%0D
+%0A%0D%0A // disable jquery animations%0D%0A document.location = 'javascript:$.fx.off=true;';%0D
%0A%7D);%0D%0A
|
eed7f299ee5957455ff67bed468319345b04e8a3 | Update character | output.js | output.js | var fs = r | JavaScript | 0 | @@ -3,8 +3,9 @@
r fs = r
+e
|
5ced3512c92dbfc9c3d86dc85e73262fb98a8d84 | Update character | output.js | output.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
//Added a comment that achieves no real goal.
if ( process.argv[ 2 ] && process.a | JavaScript | 0 | @@ -155,16 +155,17 @@
2 %5D && process.a
+r
|
b686b85e6031a1c5db431aed177759d332910548 | Update character | output.js | output.js | var fs = require('fs');
var child_process = require('child_process')
var max_sleep = 300
//Added a comment that achieves no real goal.
if ( proces | JavaScript | 0 | @@ -135,12 +135,13 @@
%0Aif ( proces
+s
|
21b2e918a225fe4aff294837760c4696e46b8435 | update escaping for javascript | script.js | script.js | var jokesURL = "./destination/chucknorrisjokes/jokes/random?limitTo=[nerdy]";
// configure the service worker for offline experience
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js', {
scope: '/'
});
}
// configure the app
var app = new Vue({
el: '#app',
data: ... | JavaScript | 0 | @@ -68,16 +68,34 @@
=%5Bnerdy%5D
+?escape=javascript
%22;%0A%0A// c
|
f20e5b204da4395b0b3f47183c9cea34950cb0b6 | return response | control/messagecontrol.js | control/messagecontrol.js |
'use strict';
const CONVERSATION_SERVICE = 'conversation';
const CONVERSATION_VERSION_DATE = '2016-07-11';
const CONVERSATION_VERSION = 'v1';
var watson = require( 'watson-developer-cloud' ); // watson sdk
var http = require('http');
function getConversationCredential() {
if (process.env.VCAP_SERVICES) {
... | JavaScript | 0.999999 | @@ -4069,33 +4069,33 @@
t;%0A%0A if (
-
+!
response.output.
@@ -4097,18 +4097,63 @@
tput.api
-
)
+ %7B%0A return response;%0A %7D else
%7B%0A
@@ -4260,24 +4260,25 @@
put.api,
+
function
(apiRes
@@ -4273,17 +4273,16 @@
tion
-
(apiRes)
%7B%0A
@@ -4277,17 +4277,16 @@
(apiR... |
83cd3dd0169041176b948d81450397cae86c70d2 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */// jshint strict:false
/*jslint node: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
var fileContentIOPackage = fs.readFileSync(__dirname + '/../io-packag... | JavaScript | 0 | @@ -11,18 +11,19 @@
-W097 */
-//
+%0A/*
jshint
@@ -34,19 +34,23 @@
ct:false
+ */
%0A/*
+
jslint n
@@ -62,16 +62,40 @@
true */%0A
+/* jshint expr: true */%0A
var expe
@@ -1158,32 +1158,738 @@
!');%0A %7D%0A%0A
+ expect(ioPackage.common.authors).to.exist;%0A if (ioPackage.common.name.index... |
97a03090a7afbe3c6f4ce8ed696112c2486e4d86 | Update formats-data.js | mods/swagplayrandom/formats-data.js | mods/swagplayrandom/formats-data.js | exports.BattleFormatsData = {
murkrow: {
randomBattleMoves: ["swagger","foulplay","substitute","roost"],
requiredItem: "Eviolite",
tier: "LC Uber"
},
sableye: {
randomBattleMoves: ["swagger","foulplay","substitute","recover"],
requiredItem: "Leftovers",
tier: "(OU)"
},
sableyemega: {
randomBattleMove... | JavaScript | 0.000001 | @@ -299,188 +299,8 @@
: %7B%0A
-%09%09randomBattleMoves: %5B%22recover%22,%22willowisp%22,%22darkpulse%22,%22calmmind%22,%22shadowball%22%5D,%0A%09%09randomDoubleBattleMoves: %5B%22fakeout%22,%22knockoff%22,%22darkpulse%22,%22shadowball%22,%22willowisp%22,%22protect%22%5D,%0A
%09%09ti
|
36bc139fa1b97f051c24eb2ab6c32fdb668cb5f1 | remove needless JSON functions | parser.js | parser.js | 'use strict'
const debug = require('debug')('socket.io-monitor:parser')
const { Type: { forValue: infer, forTypes: union } } = require('avsc')
const types = {
reqAuth: infer(true),
password: infer('string'),
auth: union([ infer({ authorized: true }), infer({ authorized: false, error: 'string' }) ]),
init: inf... | JavaScript | 0.000036 | @@ -1777,26 +1777,8 @@
) =%3E
- %7B%0A const found =
eve
@@ -1806,76 +1806,8 @@
= v)
-%0A return found %7C%7C null%0A%7D%0A%0Aconst parseArg = json =%3E JSON.parse(json)
%0A%0Aex
@@ -2006,21 +2006,25 @@
onst
+ %7B
name
+ %7D
= event
.nam
@@ -2023,13 +2023,8 @@
vent
-.name
%0A d
@@ -2204,16 +2204,18 @@
... |
78fba32a34137e135993f5c35c79daa79d4bdad2 | Add empty string title fix for IE11 (#239) | src/comparisons/utils/parse_html/ie9.js | src/comparisons/utils/parse_html/ie9.js | var parseHTML = function(str) {
var tmp = document.implementation.createHTMLDocument();
tmp.body.innerHTML = str;
return tmp.body.children;
};
parseHTML(htmlString);
| JavaScript | 0.00001 | @@ -17,16 +17,17 @@
function
+
(str) %7B%0A
@@ -81,16 +81,18 @@
ocument(
+%22%22
);%0A tmp
|
5a0c528cc7219bc31934a60503e5cd41f60d3ebe | Update comment | test/key-function-test.js | test/key-function-test.js | var tape = require("tape"),
jsdom = require("jsdom"),
d3 = Object.assign(require("../"), require("d3-selection"));
/*************************************
************ Components *************
*************************************/
// Key function.
var created,
destroyed,
apple = d3.component("span",... | JavaScript | 0 | @@ -1925,32 +1925,35 @@
date with swap (
+no
unnecessary crea
|
7357fc9023aaab943b2db2be1c90c22aa2c33245 | Limit geocoding results to max. 3 | search.js | search.js | function searchAddress() {
var nominatimURL = 'http://nominatim.openstreetmap.org/search?format=json&limit=5&q=';
var searchQuery = $('#address').val();
$.getJSON(nominatimURL + searchQuery, function(data) {
var items = [];
$.each(data, function(key, val) {
items.push(
'<li><a href="map.ht... | JavaScript | 0.999997 | @@ -106,9 +106,9 @@
mit=
-5
+3
&q='
|
9f1e5841923dcb7759cb71abb249b6c4017311a0 | Add tilecount + tilesize assertions. | test/tm-copytask.test.js | test/tm-copytask.test.js | var test = require('tape');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var tm = require('../lib/tm');
var UPDATE = !!process.env.UPDATE;
var tmppath = path.join(require('os').tmpdir(), 'tm2-copytask-' + (+new Date));
var from = 'tmsource://' + __dirname + '/fixtures-export';
var... | JavaScript | 0 | @@ -2364,32 +2364,420 @@
t.ifError(err);%0A
+ src._db.get('select count(1) as count, sum(length(tile_data)) as size from tiles;', function(err, row) %7B%0A t.ifError(err);%0A t.equal(row.count, 341);%0A t.equal(row.size, 22245);%0A check(%5B%0A %5B0,0,0... |
e7b6a259dfc19f1f91ac9501bb5f1f6d29e5eebe | tweak scrollTarget | streams/scroll-stream.js | streams/scroll-stream.js | var Stream = require('../core/stream');
var Util = require('../core/util');
var DOM = require('../core/dom');
var Events = require('../core/events');
/**
* Create a stream of onscroll events, but only calculate their
* position on requestAnimationFrame frames.
* @param {Element=} options.scrollTarget - Targeted for... | JavaScript | 0.000001 | @@ -431,16 +431,17 @@
arent =
+(
options.
@@ -457,9 +457,10 @@
get
-?
+&&
opt
@@ -491,10 +491,12 @@
Node
- :
+) %7C%7C
win
|
bb59cc1c87dc49d60a5a2adf03d92f321809925c | fix fallback public path | nuxt.config.js | nuxt.config.js | const env = {
apiUrl: process.env.API_URL || 'https://api.stateofthedapps.com/',
cdnPublicPath: process.env.CDN_PUBLIC_PATH || '',
googleAnalytics: process.env.GOOGLE_ANALYTICS || 'UA-000000-1',
mapboxKey: process.env.MAPBOX_KEY,
mixpanel: process.env.MIXPANEL,
mode: process.env.MODE || 'universal',
linke... | JavaScript | 0.000003 | @@ -125,16 +125,23 @@
ATH %7C%7C '
+/_nuxt/
',%0A goo
|
5fd5546a9618ab2df4d04dd58994e6dbbe385df4 | Fix bug in SVG : return instances of DOMNode instead of element | py_svg.js | py_svg.js | SVG = {
__getattr__:function(attr){return this[attr]}
}
$svgNS = "http://www.w3.org/2000/svg"
$xlinkNS = "http://www.w3.org/1999/xlink"
function $SVGTag(tag_name,args){
// represents an SVG tag
var $i = null
var $obj = this
elt = document.createElementNS($svgNS,tag_name)
if(args!=undefined && ... | JavaScript | 0.000012 | @@ -241,24 +241,33 @@
s%0A elt =
+$DOMNode(
document.cre
@@ -295,16 +295,17 @@
ag_name)
+)
%0A if(
|
6112f52dd59bfcc767a4415e9e15c1729d91e14d | Add test for withContext runChildMethod | test/withContext.test.js | test/withContext.test.js | // jsx-test
var jsx = require('../index');
var React = require('react/addons');
var assert = require('assert');
describe('#withContext', function() {
it('gives child context', function () {
var ContextUser = React.createClass({
contextTypes: {
method: React.PropTypes.func
... | JavaScript | 0 | @@ -1068,32 +1068,521 @@
span%3E');%0A %7D);
+%0A %0A it('allows calling methods from underlying component', function () %7B%0A var UnderlyingComponent = React.createClass(%7B%0A underlyingMethod: function (n1, n2) %7B%0A return n1 + n2;%0A %7D,%0A render... |
66f5b251070f4b9e7c6d0baca01444cc1b1cb2ae | fix missing id | server.js | server.js |
var restify = require('restify');
var fs = require('fs');
var path = require('path');
function createServer (opts) {
var cluster = opts.cluster;
var master = opts.create;
var server = restify.createServer(opts);
server.use(restify.queryParser( ));
server.use(restify.bodyParser( ));
server.get('/cluster'... | JavaScript | 0.997898 | @@ -1017,32 +1017,43 @@
v = %7B%0A id:
+req.params.
id%0A , state:
|
5e73442385587fbf496e3fca5f27e0ac5b26f678 | fix minor issue | server.js | server.js | var express = require('express');
var app = express();
//import mongoose module
//var bae = require('./bae');
//bae.getConnect();
//bae.testRedis();
//markdown = require('markdown').markdown;
//import models
//var init_stocks = require('./routes/init_stocks');
//init_stocks.init_stocks();
var bodyParser = req... | JavaScript | 0.000002 | @@ -338,103 +338,8 @@
');%0A
-var session = require('express-session');%0Avar MongoStore = require('connect-mongo')(session);%09%0A
var
@@ -370,24 +370,26 @@
-favicon');%0A
+//
var flash =
@@ -616,601 +616,8 @@
);%0A%0A
-app.use(session(%7B%0A secret: settings.cookieSecret,%0A key: settings.db,//cookie name%0A... |
872f9732353c3bfebee399c3ffc5290251cacc9f | Add simple analytics | server.js | server.js | var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var path = require('path');
var request = require('request');
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname, 'index.html'));
});... | JavaScript | 0.000002 | @@ -184,24 +184,66 @@
request');%0A%0A
+var onlineUsers = 0;%0Avar userCount = %7B%7D;%0A%0A
app.use(expr
@@ -361,46 +361,417 @@
);%0A%0A
-io.on('connection', function(socket) %7B
+app.get('/stats', function(req, res) %7B%0A var payload = %7B%0A onlineUsers: onlineUsers,%0A userCount: userCount%0A %7D;%0A%0A... |
53973e9b184edd44e6e0d32408d19cb6772df06a | remove newline | server.js | server.js | const path = require("path");
const passport = require("passport");
const logger = require("connect-logger");
const bodyParser = require("body-parser");
const express = require("express");
const app = express();
const auth = require("./app/auth");
const session = require("./app/session");
if(process.env.NODE_ENV !== ... | JavaScript | 0.999539 | @@ -763,17 +763,16 @@
t%22)));%0A%0A
-%0A
app.list
|
0bcdc18c417b909eabe3df64ba429c73fbd87956 | vm displayErrors false | eval.js | eval.js | var vm = require('vm')
var isBuffer = Buffer.isBuffer
var requireLike = require('require-like')
function merge (a, b) {
if (!a || !b) return a
var keys = Object.keys(b)
for (var k, i = 0, n = keys.length; i < n; i++) {
k = keys[i]
a[k] = b[k]
}
return a
}
// Return the exports/module.exports variable... | JavaScript | 0.999659 | @@ -111,25 +111,26 @@
ge (a, b) %7B%0A
-%09
+
if (!a %7C%7C !b
@@ -140,18 +140,18 @@
eturn a%0A
-%0A%09
+
var keys
@@ -222,17 +222,18 @@
++) %7B%0A
-%09
+
k = keys
@@ -238,17 +238,18 @@
ys%5Bi%5D%0A
-%09
+
a%5Bk%5D = b
@@ -256,17 +256,16 @@
%5Bk%5D%0A %7D%0A
-%0A
return
@@ -445,17 +445,19 @@
b... |
5b1d54e23dd2c5be4826693125d1463198a9dae3 | update docs | server.js | server.js | #!/usr/bin/env node
'use strict';
// application config
var config = require('./config.json');
var app = require('express')(),
http = require('http').Server(app),
cors = require('cors'),
bodyParser = require('body-parser');
var request = require('request'),
extend ... | JavaScript | 0.000001 | @@ -2034,35 +2034,8 @@
476
-,%0A * is_dir: true
%0A *
@@ -2137,16 +2137,44 @@
e: 170,%0A
+ * isFolder: true%0A
*
@@ -3887,32 +3887,34 @@
ue;%0A
+//
fileObj.folderCo
@@ -3953,32 +3953,34 @@
' +%0A
+//
filePath+'%22
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.