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 |
|---|---|---|---|---|---|---|---|
3a8bd2f60faeda542fcfd0f3b56d903c1c5ca6d1 | Fix current js test | kolibri/plugins/facility/assets/test/views/facility-config-page.spec.js | kolibri/plugins/facility/assets/test/views/facility-config-page.spec.js | import { mount } from '@vue/test-utils';
import ConfigPage from '../../src/views/FacilityConfigPage';
import makeStore from '../makeStore';
function makeWrapper(propsData = {}) {
const store = makeStore();
store.commit('facilityConfig/SET_STATE', {
settings: {
learner_can_edit_username: false,
},
}... | JavaScript | 0.000058 | @@ -1512,44 +1512,28 @@
to
-change
+edit
their
-password when signed in
+full name
',%0A
@@ -1560,123 +1560,126 @@
to
-edit their full name',%0A 'Allow learners to create accounts',%0A 'Allow learners to sign in with no password
+create accounts',%0A 'Require password for learners',%0A 'A... |
736d9fb7f38a89bfd0492b87d550815c8e38c74f | Fix test | src/graphql/schema/__tests__/createMutationGqlField-test.js | src/graphql/schema/__tests__/createMutationGqlField-test.js | jest.mock('../getQueryGqlType')
import { GraphQLNonNull, GraphQLString, GraphQLObjectType, GraphQLInputObjectType } from 'graphql'
import getQueryGqlType, { $$isQuery } from '../getQueryGqlType'
import createMutationGqlField from '../createMutationGqlField'
// Create a new object where `GraphQLString` is the prototyp... | JavaScript | 0.000001 | @@ -4041,20 +4041,25 @@
tValue:
-null
+undefined
, descri
|
e016018edc1225162142460062503f952d610e0c | Fix bad code formatting | lib/apirequest.js | lib/apirequest.js | /**
* Copyright 2014 Google Inc. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | JavaScript | 0.971243 | @@ -3714,17 +3714,20 @@
(key) %7B%0A
-%09
+
if (key.
@@ -3789,9 +3789,12 @@
1);%0A
-%09
+
pa
|
7b9f4ee63322f83c1e20a9dd159ef09850b6918e | Fix comments in PR 63 | lib/app-helper.js | lib/app-helper.js | "use strict";
var db = require('../models');
var config = require('../config');
var authHelper = require('./auth-helper');
var appHelper = {};
appHelper.sessionOptions = function(express) {
if(process.env.NODE_ENV === 'test') {
return { secret: config.session_secret };
}
var SQLiteStore = new (require('c... | JavaScript | 0 | @@ -302,13 +302,8 @@
e =
-new (
requ
@@ -324,17 +324,16 @@
qlite3')
-)
(express
@@ -341,27 +341,19 @@
;%0A
-return %7B%0A
+var
store
-:
+ =
new
@@ -366,16 +366,45 @@
eStore()
+;%0A return %7B%0A store: store
,%0A se
|
ca5bd6aa0727b615e64fd38e948f3f3f77759a42 | Fix missing artifactType fn invocation | lib/artifactor.js | lib/artifactor.js | const SyncRequest = require("./syncRequest");
/**
* Extracts assets the reporter consumes (abi, bytecode) from supported artifact formats
* @example
* ```
* const artifactor = new Artifactor(config);
* const contract = artifactor.require('Example');
*
* > {
* > abi: [etc...],
* > bytecode: "0x" + contract... | JavaScript | 0.000099 | @@ -911,16 +911,30 @@
factType
+(contractName)
;%0A%0A /
|
635bc4706b8e790a9ae1bfe39e052c2b5e11e54b | Add main handler | lib/main.js | lib/main.js | JavaScript | 0.000001 | @@ -0,0 +1,609 @@
+const async = require('./async')%0A%0Amodule.exports = function(providers, cb) %7B%0A%0A function setup(values) %7B%0A const currentValues = results.reduce(( pre, cur ) =%3E Object.assign(pre, cur), %7B%7D)%0A%0A cb(null,%0A %7B%0A get: key =%3E currentValues%5Bkey%5D,%0A ge... | |
de8b610483924016ea4a9c249fcd4d67442faf86 | Improve counter for fast tab transition | lib/main.js | lib/main.js | 'use strict';
var ORIGIN = 'http://b.hatena.ne.jp',
{Cu} = require('chrome'),
{XPCOMUtils} = Cu.import('resource://gre/modules/XPCOMUtils.jsm', {}),
info = require('sdk/self'),
{Page} = require('sdk/page-worker'),
{ActionButton} = require('sdk/ui/button/action'),
{browserWindows} = require('sdk... | JavaScript | 0 | @@ -2773,24 +2773,90 @@
json%7D) =%3E %7B%0A
+ if (tabs.activeTab.url !== spec) %7B%0A return;%0A %7D%0A%0A
wm.set
|
ca6e6019a10723c7ffedb493c481fb79f4d146dc | Remove cert check for now | lib/main.js | lib/main.js | "use strict";
var https = require('https');
var fs = require('fs');
function setup_response_handler(req, callback) {
if (typeof callback !== "function") {
//console.log("missing callback");
return;
}
req.on('response',
function(res) {
var response = '';
res.setEncoding('utf8');
res... | JavaScript | 0 | @@ -1070,678 +1070,8 @@
%0A%7D%0A%0A
-var get_ca = (function() %7B%0A var ca = %5B%5D;%0A%0A return function get_ca(callback) %7B%0A%0A // return cached ca%0A if (ca.length) %7B%0A return process.nextTick(function() %7B%0A callback(null, ca);%0A %7D);%0A %7D%0A%0A // retrieve ca from dis... |
700b370372291172a97f4d9c51f9b8e5e6aed9ab | Make tempfile grammar-specific | lib/main.js | lib/main.js | 'use babel'
CompositeDisposable = require('atom').CompositeDisposable;
module.exports = {
config: {
execPath: {
title: "GCC Executable Path",
description: "Note for Windows/Mac OSX users: please ensure that GCC is in your ```$PATH``` otherwise the linter might not work. If your path contains spaces,... | JavaScript | 0.0097 | @@ -1974,16 +1974,29 @@
p_file :
+ %7B%0A %22C++%22:
require
@@ -2016,16 +2016,56 @@
%22.cpp%22),
+%0A %22C%22: require(%22tempfile%22)(%22.c%22)%0A %7D,
%0A%0A lint
@@ -3849,66 +3849,181 @@
-require('fs-extra').outputFileSync(module.exports.temp_fil
+grammar_type = utility.grammarType(editor.getGram... |
991abb2c7dcac987f427dbecf93815c1a8a05e01 | remove extra { | lib/blockchain.js | lib/blockchain.js | var mkdirp = require('mkdirp');
Blockchain = function(blockchainConfig) {
this.config = blockchainConfig;
}
Blockchain.prototype.generate_basic_command = function() {
var config = this.config;
var address = config.account.address;
var cmd = "geth ";
var rpc_api = ['eth', 'web3'];
if (config.datadir !== ... | JavaScript | 0.000014 | @@ -1170,28 +1170,24 @@
ock + %22%5C%22 %22;
-%0A %7D
%0A%0A if (conf
|
8141ac011ee1c73c0e4f1eacfdc43a29a7b61b41 | fix cargoQueue return type. Closes #1704 | lib/cargoQueue.js | lib/cargoQueue.js | import queue from './internal/queue';
/**
* Creates a `cargoQueue` object with the specified payload. Tasks added to the
* cargoQueue will be processed together (up to the `payload` limit) in `concurrency` parallel workers.
* If the all `workers` are in progress, the task is queued until one becomes available. Once... | JavaScript | 0.000014 | @@ -2029,13 +2029,13 @@
low.
-Cargo
+Queue
Obje
|
0bada32cc1615f91cb547dcb0737f88413b6a307 | Fix hash error in texture pool | src/3d/compositor/texturePool.js | src/3d/compositor/texturePool.js | define(function(require) {
var Texture2D = require('../texture/Texture2D');
var glenum = require('../glenum');
var _ = require('_');
var pool = {};
var texturePool = {
get : function(parameters) {
var key = generateKey(parameters);
if (!pool.hasOwnProperty(key... | JavaScript | 0.000004 | @@ -2063,19 +2063,21 @@
if (t
-his
+arget
.minFilt
@@ -2124,35 +2124,37 @@
t
-his
+arget
.minFilter == gl
@@ -2192,35 +2192,37 @@
t
-his
+arget
.minFilter = gle
@@ -2267,35 +2267,37 @@
t
-his
+arget
.minFilter == gl
@@ -2334,35 +2334,37 @@
t
-his
+... |
01e93e9d682b548673d2dd705ea7741a5b2728db | change the resized() to render() for enyo 2.5.1 | source/CoreNaviArranger.js | source/CoreNaviArranger.js | enyo.kind({
name: "enyo.CoreNaviArranger",
kind: "Arranger",
layoutClass: "enyo-arranger enyo-arranger-fit",
calcArrangementDifference: function(inI0, inA0, inI1, inA1) {
return this.containerBounds.width * 0.5;
},
destroy: function() {
var c$ = this.container.children;
for (var i=0, c; c=c$[i]; i++) {
... | JavaScript | 0 | @@ -1,5 +1,4 @@
-%EF%BB%BF
enyo
@@ -5,16 +5,16 @@
.kind(%7B%0A
+
%09name: %22
@@ -105,16 +105,104 @@
r-fit%22,%0A
+%09create: function() %7B%0A%09%09this.inherited(arguments);%0A%09%09console.log(%22creater called%22);%0A%09%7D,%0A
%09calcArr
@@ -456,29 +456,28 @@
ue);%0A%09%09%09c.re
-sized
+nder
();%0A%09%09%7... |
065209161b836aad37874689f54a52eaa7026838 | correct bug in months array | source/assets/js/common.js | source/assets/js/common.js | /*globals $,console,d3,cookieJar,isObject,copyBIfInA */
/*!
* common.js
*
* Copyright 2015 Timothy Davenport; Licensed MIT
*/
// Common Utility functions used across files
// -------------------------------------------------------------------------------------
(function () {
'use strict';
// Add string for... | JavaScript | 0.000005 | @@ -3101,17 +3101,20 @@
g', 'Sep
-
+', '
Oct', 'N
|
4e090da922c171d3044ce30f2b84053767a5cd0d | Add kickChatMember and unbanChatMember | lib/misc.js | lib/misc.js | // Implements miscellaneous functions on the bot object.
var utils = require("./utils");
var https = require("https");
var model = require("./model");
function initMisc() {
this.fileGet = fileGet;
this.fileStream = fileStream;
this.fileLoad = fileLoad;
this.context = context;
}
function fileGet(file, cb) {
... | JavaScript | 0 | @@ -254,16 +254,82 @@
leLoad;%0A
+ this.kickMember = kickMember;%0A this.unbanMember = unbanMember;%0A
this.c
@@ -1687,16 +1687,614 @@
Photos%0A%0A
+function kickMember(chat, user, cb) %7B%0A this.callMethod(%22kickChatMember%22, %7Bchat_id: model.resolveChat(chat), user_id: model.resolveChat(user)%7D, function... |
33fea768c462905fd2e45d0261d7ce57005ee932 | return mocked headers when fixture is passed as string | lib/mock.js | lib/mock.js | /**
* Copyright 2014 Skytap Inc.
*
* 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 to... | JavaScript | 0.000001 | @@ -3565,44 +3565,47 @@
le,
-%7B'Content-Type': 'application/json'%7D
+options.headers ? options.headers : %7B%7D
);%0A
|
9e6b57897688c0b1c7f187c4dbb1f405af8c3be4 | better output | benchmark/check.js | benchmark/check.js | 'use strict';
var chalk = require('chalk');
var path = require('path');
var glob = require('glob');
/**
* Sanity check. Run to ensure that all fns return the same result.
*/
var fixtures = glob.sync(__dirname + '/fixtures/*.js');
glob.sync(__dirname + '/code/*.js').forEach(function (fp) {
var fn = require(path.... | JavaScript | 0.999993 | @@ -93,16 +93,45 @@
'glob');
+%0Avar repeat = require('../');
%0A%0A/**%0A *
@@ -255,16 +255,107 @@
s/*.js')
+.map(require);%0Avar expected = fixtures.map(fixture =%3E repeat.apply(repeat, fixture).length)
;%0A%0Aglob.
@@ -522,65 +522,28 @@
;%0A
-if (/%5C.js/.test(fp) && /%5E(cur%7Cfor-l).*/.test(name)) %7B%0A%0... |
5c48bc358662479f20c2e1f97a76ad3ee087ce80 | save a character: r ^ -1 instead of r != -1 | full.js | full.js | // Circles 1K
// by Evan Hahn (evanhahn.com)
// This code is licensed under the Unlicense. For more information, refer to
// <http://unlicense.org/>.
// Enjoy!
////////////////////////////////////////////////////////////////////////////////
// Globals are lowercase.
// Temporary variables are uppercase.
// Here's ... | JavaScript | 0.001512 | @@ -1258,10 +1258,9 @@
(r
-!=
+%5E
-1)
|
e2909abd1b97532885568b101cce123c6afb2b10 | Remove unused field | tutor/src/models/hypothesis.js | tutor/src/models/hypothesis.js | import {
BaseModel, field, identifiedBy
} from './base';
import { action, observable, when, computed } from 'mobx';
import loadjs from 'loadjs';
import {Logging } from 'shared';
@identifiedBy('hypotheis')
class Hypothesis extends BaseModel {
@action.bound
bootstrap(data) {
this.update(data);
}
@observa... | JavaScript | 0.000001 | @@ -357,28 +357,8 @@
ge;%0A
- @field embed_url;%0A
@f
|
35b2b642d91e9b81e7cc26b6fd19912e18901d55 | Fix node_modules paths on Windows | lib/node-modules-paths.js | lib/node-modules-paths.js | var path = require('path');
module.exports = function (start, opts) {
var modules = opts.moduleDirectory
? [].concat(opts.moduleDirectory)
: ['node_modules']
;
var prefix = '/';
if (/^([A-Za-z]:)/.test(start)) {
prefix = '';
} else if (/^\\\\/.test(start)) {
prefix =... | JavaScript | 0.001106 | @@ -178,16 +178,177 @@
%5D%0A ;%0A
+%0A // ensure that %60start%60 is an absolute path at this point,%0A // resolving against the process' current working directory%0A start = path.resolve(start);%0A%0A
var
@@ -485,24 +485,25 @@
%5C%5C%5C';%0A %7D%0A
+%0A
var spli
@@ -562,168 +562,8 @@
/;%0... |
b0462ba48256e9a70fc394577d5b98d914f260c4 | Fix lint issue | lib/nodeCacheInterface.js | lib/nodeCacheInterface.js | /*
* Copyright (c) 2015-2016 PointSource, LLC.
* MIT Licensed
*/
//This is a cache interface for the in-memory node cache.
//The point of an interface is to provide a common set of methods that the cache service
//can call regardless of the underlying implementation.
//The redis service implements the same interface... | JavaScript | 0.000002 | @@ -1318,13 +1318,14 @@
%7D%0A %7D
+;
%0A%0A%7D;%0A
|
d1bcb2c49d6201e237d77169f249e40320087f96 | Fix resource endpoint's route | Polliwog/server/routes.js | Polliwog/server/routes.js | /**
* Main application routes
*/
'use strict';
var errors = require('./components/errors');
var path = require('path');
var auth = require('./auth/auth.service');
module.exports = function(app) {
app.param('session_id', function(req, res, next, session_id) {
Session.findById(session_id, function(err, sessio... | JavaScript | 0.000128 | @@ -1159,64 +1159,8 @@
low%0A
- app.use('/api/resources', require('./api/resource'));%0A
ap
@@ -1524,24 +1524,101 @@
api/poll'));
+%0A app.use('/api/sessions/:session_id/resources', require('./api/resource'));
%0A%0A app.use(
|
4b4b90dd398c9f6b780f782dd67c6cb0e1aa54b5 | Fix urls | spec/client.events.spec.js | spec/client.events.spec.js | var twilio = require('../index');
describe('The Twilio TaskRouter Event resource', function () {
var client = new twilio.TaskRouterClient('AC123', '123', 'WS123');
beforeEach(function () {
spyOn(client, 'request');
});
it('gets event', function () {
client.workspaces('WS123').events('... | JavaScript | 0.998662 | @@ -397,39 +397,24 @@
url: '/
-Accounts/AC123/
Workspaces/W
@@ -711,23 +711,8 @@
: '/
-Accounts/AC123/
Work
|
441f2a94e88836f4bfcdf792f1417fb60c39e989 | resolve #760, - add project assigned status in active statuses | packages/custom/icu/public/components/data/settings/settings.service.js | packages/custom/icu/public/components/data/settings/settings.service.js | 'use strict';
angular.module('mean.icu.data.settingsservice', [])
.service('SettingServices', function($http, WarningsService) {
// var userFilter = ['new', 'assigned', 'in-progress', 'review', 'rejected', 'done', 'archived','canceled','completed'];
function getAll() {
return $http.get('/api/admin/mo... | JavaScript | 0 | @@ -610,32 +610,43 @@
roject: %5B'new',
+'assigned',
'in-progress', '
|
1ec6a3883d63e4a05051f8095ea83e09cc28de4f | use dojo forEach | src/WidgetName/widget/WidgetName.js | src/WidgetName/widget/WidgetName.js | /*
WidgetName
========================
@file : WidgetName.js
@version : {{version}}
@author : {{author}}
@date : {{date}}
@copyright : {{copyright}}
@license : {{license}}
Documentation
========================
Describe your widget here.
*/
// Required mod... | JavaScript | 0 | @@ -7388,32 +7388,50 @@
+dojoArray.forEach(
this._handles.fo
@@ -7431,25 +7431,18 @@
dles
-.forEach(
+,
function
(han
@@ -7437,16 +7437,17 @@
function
+
(handle)
|
63c2fdb1944664498e62b70bf78bad77d95e8070 | rework logging, remove some unused code | RpcClient.js | RpcClient.js | // RpcClient.js
// MIT/X11-like license. See LICENSE.txt.
// Copyright 2013 BitPay, Inc.
require('classtool');
function ClassSpec(b) {
var http = b.http || require('http');
var https = b.https || require('https');
var log = b.log || {err: function(){}};
function RpcClient(opts) {
opts = opts || {};
t... | JavaScript | 0 | @@ -238,27 +238,29 @@
%7C%7C
-%7Berr: function()%7B%7D%7D
+require('./util/log')
;%0A%0A
@@ -1721,17 +1721,17 @@
%0A key
-p
+P
oolRefil
@@ -4447,24 +4447,44 @@
%7D%0A %7D%0A
+ var err = null;%0A
var req
@@ -4528,24 +4528,25 @@
tion(res) %7B%0A
+%0A
var bu
@@ -4648,32 +4648,252 @@
', ... |
3c9a1dc7d3f484546ddda4a680ff642bbf8f5242 | Fix dependencies registration | lib/BaseBootstrapper.js | lib/BaseBootstrapper.js | "use strict";
var angular = require('angular'),
_ = require('underscore'),
ProviderTypes = require('./angular/ProviderTypes');
var BaseBootstrapper = function () {
var dependencies = {},
module = null;
this.register = function (name, providerType, value) {
dependencies[name] = { prov... | JavaScript | 0.000001 | @@ -774,67 +774,26 @@
fig(
-name); //config does not accept names, just block functions
+dependency.value);
%0A
@@ -877,32 +877,38 @@
name, dependency
+.value
);%0A c
@@ -986,32 +986,38 @@
name, dependency
+.value
);%0A c
@@ -1093,32 +1093,38 @@
name, dependency
+.value
);%0A ... |
490001cad465a8ce5553875456871b87c0f08336 | Use the function to store redirect_url | src/javascript/binary/base/binary_loader.js | src/javascript/binary/base/binary_loader.js | const BinaryPjax = require('./binary_pjax');
const pages_config = require('./binary_pages');
const Client = require('./client');
const GTM = require('./gtm');
const localize = require('./localize').localize;
const Login = require('./login');
const Pa... | JavaScript | 0.000008 | @@ -1971,24 +1971,32 @@
', %5B
-Login.loginUrl()
+%60$%7B'java'%7D$%7B'script:;'%7D%60
%5D),%0A
@@ -3632,24 +3632,100 @@
ssage) %7D));%0A
+ $content.find('a').on('click', () =%3E %7B Login.redirectToLogin(); %7D);%0A
%7D;%0A%0A
|
f39641d2b0eb43ab8f16eaed35d8eefbad2fc5c0 | Fix results link | src/app/patients/patients.config.js | src/app/patients/patients.config.js | (function() {
'use strict';
var app = angular.module('radar.patients');
app.config(['$stateProvider', function($stateProvider) {
$stateProvider.state('patients', {
url: '/patients',
templateUrl: 'app/patients/patient-list.html',
controller: ['$scope', '$controller', 'PatientListController'... | JavaScript | 0 | @@ -3184,20 +3184,21 @@
results.
-list
+table
(%7Bpatien
|
e886c1d8ed63f349f575603241a0b284cb2ee5f2 | Fix the issue with min/maxValue | lib/Characteristic.js | lib/Characteristic.js | var inherits = require('util').inherits;
var EventEmitter = require('events').EventEmitter;
var once = require('./util/once').once;
'use strict';
module.exports = {
Characteristic: Characteristic
}
/**
* Characteristic represents a particular typed variable that can be assigned to a Service. For instance, a
* "... | JavaScript | 0.000282 | @@ -7383,28 +7383,24 @@
ull) hap.max
-imum
Value = this
@@ -7450,28 +7450,24 @@
ull) hap.min
-imum
Value = this
|
1927feb0a22b07ab7f65a28d52c5cadb43c2cee4 | Load username from config | src/app/views/map/building_layer.js | src/app/views/map/building_layer.js | define([
'jquery',
'underscore',
'backbone',
'collections/city_buildings',
'models/building_color_bucket_calculator',
'text!templates/map/building_info.html'
], function($, _, Backbone, CityBuildings, BuildingColorBucketCalculator, BuildingInfoTemplate){
var baseCartoCSS = [
'{marker-fill: #CCC;' +
... | JavaScript | 0 | @@ -4457,24 +4457,37 @@
me:
-'cityenergy-slc'
+this.allBuildings.cartoDbUser
,%0A
|
aca78ea6cdaf5c431346f7c6f021ee280b286c3b | Fix broken resolve | lib/page.js | lib/page.js | const wd = require('wd');
const Promise = require('bluebird');
const bl = require('bl');
const JSONStream = require('JSONStream');
const browser = require('./browser');
const normalise = require('./normalise-logs');
// augment wd with stream methods
require('./wd-streams');
const blacklist = ['UpdateLayerTree', 'Layo... | JavaScript | 0.000078 | @@ -2482,16 +2482,22 @@
'error',
+ () =%3E
resolve
|
16642e8641ccd5c660162c7e118d3cb1f00cf9c4 | Fix express status deprecation for session route | lib/routes/api/session.js | lib/routes/api/session.js | var BASE_PATH = '../../';
var models = require(BASE_PATH + 'models');
var User = models.User;
/**
* @api {post} /api/session Create New Session
* @apiDescription Creates a new user session after validating an email address and password pair.
* @apiName CreateSession
* @apiGroup Session
* @apiVersion 1.0.0
*
* ... | JavaScript | 0.000005 | @@ -1,27 +1,15 @@
-var BASE_PATH = '../../
+'use strict
';%0A%0A
@@ -33,21 +33,15 @@
ire(
-BASE_PATH + '
+'../../
mode
@@ -754,17 +754,24 @@
es.s
-end(404,
+tatus(404).send(
%7Bmes
|
04838dcf6a7e295982ff768c9a6c76a83a3cac23 | Refactor detecting vendor prefix with `postcss.vendor` | src/rules/function-linear-gradient-no-nonstandard-direction/index.js | src/rules/function-linear-gradient-no-nonstandard-direction/index.js | import {
functionArgumentsSearch,
report,
ruleMessages,
validateOptions,
} from "../../utils"
export const ruleName = "function-linear-gradient-no-nonstandard-direction"
export const messages = ruleMessages(ruleName, {
rejected: "Unexpected nonstandard direction",
})
function isStandardDirection(source, wi... | JavaScript | 0 | @@ -94,16 +94,49 @@
./utils%22
+%0Aimport %7B vendor %7D from %22postcss%22
%0A%0Aexport
@@ -1741,34 +1741,21 @@
= !
-/%5E-webkit-%7C-moz-%7C-o-/.test
+vendor.prefix
(dec
|
6012308b7e052471b65152ca1f060b1a8ee02498 | Update ab_filters.js | flask_appbuilder/static/appbuilder/js/ab_filters.js | flask_appbuilder/static/appbuilder/js/ab_filters.js | var AdminFilters = function(element, labels, form, filters, active_filters) {
// Admin filters will deal with the adding and removing of search filters
// :param labels:
// {'col','label'}
// :param active_filters:
// [['col','filter name','value'],[...],...]
var $root = $(element... | JavaScript | 0.000001 | @@ -2778,17 +2778,17 @@
($(%22
+* %3C
input
- %3C *
%22,$f
|
b1b2c4685c43af9bf5662b531c2d78d5826d6947 | fix spy navigataion | src/07-utilities/scroll.js | src/07-utilities/scroll.js | const scroll = (to, duration, cb) => {
if (duration <= 0) {
if (cb) cb();
window.scrollTo(0, to);
} else {
let difference = to - window.pageYOffset;
let perTick = difference / duration * 10;
$(this).scrollToTimerCache = setTimeout(() => {
if (! isNaN(parseInt... | JavaScript | 0.000002 | @@ -535,20 +535,24 @@
on = 300
+, cb
) %7B%0A
-
let
@@ -622,55 +622,8 @@
f');
-%0A const nameTarget = $(target).attr('name');
%0A%0A
@@ -898,30 +898,83 @@
%7D%0A %7D
+
else
+
%7B%0A
+ const nameTarget = $(target).attr('name');%0A
if (
@@ -1064,20 +1064,22 @@
%7D
+
e... |
a440f4d9b8ee42348bb643922d6fdcc92a57cfa1 | Clean up | src/AccordionItem/index.js | src/AccordionItem/index.js | 'use strict';
import cx from 'classnames';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import uuid from 'uuid';
import AccordionItemBody from '../AccordionItemBody';
import AccordionItemTitle from '../AccordionItemTitle';
export default class Accord... | JavaScript | 0.000002 | @@ -781,23 +781,16 @@
expanded
-, index
%7D = thi
@@ -915,29 +915,24 @@
andleExpand(
-index
);%0A %7D e
@@ -965,21 +965,16 @@
ollapse(
-index
);%0A
@@ -1079,21 +1079,16 @@
eExpand(
-index
) %7B%0A
@@ -1094,16 +1094,23 @@
const %7B
+ index,
onExpan
@@ -1262,21 +1262,16 @@
ollapse(
-index
) %... |
7bbd47449b13cb99e215e277bae9a1b82fd776d1 | fix second Strahler test | django/applications/catmaid/static/js/tests/test_arbor.js | django/applications/catmaid/static/js/tests/test_arbor.js | QUnit.test('Arbor.js test', function( assert ) {
// Create a new arbor that resembles the example from
// http://en.wikipedia.org/wiki/Strahler_number
var arbor1 = new Arbor();
var node = function(v) { return v; };
var nodes1 = [
node(1), node(0),
node(2), node(1),
node(3), node(1),
no... | JavaScript | 0 | @@ -2013,33 +2013,33 @@
opEqual(strahler
-1
+2
, expected_resul
@@ -2031,33 +2031,33 @@
expected_result
-1
+2
,%0A %22The ret
|
6d3170664d6aa7663f79af37f19480e864b28e54 | Test code before committing! | lib/connection.js | lib/connection.js | var util = require('./util');
function TrackedConnection(id, pc, opts) {
this.source = id;
this.target = opts.id;
this.room = opts.room;
this.pc = pc;
this._active = 0;
this.started = Date.now();
// Create a unique connection id
this.connection_id = util.connectionId(this.source, this.target);
}
/**
Ad... | JavaScript | 0 | @@ -473,17 +473,17 @@
%0A%0ATracke
-r
+d
Connecti
|
1eb4995801ecc54904d40e0921f2380eeed79814 | fix typo | lib/connection.js | lib/connection.js | var _ = require('underscore');
var net = require('net');
var PacketParser = require('./packet_parser');
var Commands = require('./commands/index.js');
function Connection(opts)
{
// params are encoded as url string
if (typeof opts == 'string')
{
var url = opts;
opts = {};
var... | JavaScript | 0.999991 | @@ -688,17 +688,17 @@
', 'time
-s
+z
one', 'i
@@ -913,16 +913,167 @@
t:3306%0A%0A
+ // TODO: use %60/usr/local/mysql/bin/mysql_config --socket%60 output? as default socketPath%0A // if there is no host/port and no socketPath parameters?%0A%0A
if (!o
|
3c4b83c5e0f909d374fbd19c64a81b40ec09ba33 | fix test | test/compiler/data.spec.js | test/compiler/data.spec.js | 'use strict';
var expect = require('chai').expect;
var data = require('../../src/compiler/data'),
Encoding = require('../../src/Encoding');
describe('data', function () {
describe('for aggregate encoding', function () {
it('should contain two tables', function() {
var encoding = Encoding.fromSpec({
... | JavaScript | 0.000002 | @@ -6285,18 +6285,18 @@
%22
-fields
+summary
%22:
-%5B
%7B%0A
@@ -6307,19 +6307,22 @@
-%22op%22: %22sum%22
+'*': %5B'count'%5D
,%0A
@@ -6329,26 +6329,17 @@
-%22field%22: %22
+'
Accelera
@@ -6346,69 +6346,18 @@
tion
-%22%0A %7D,%7B%0A %22op%22: %22count%22,%0A %22fi... |
3077d34e21d49361863cf6fd04b3151e59146132 | add additional unit tests | test/copy-github-labels.js | test/copy-github-labels.js | var CopyGitHubLabels = require('../');
var chai = require('chai');
var expect = chai.expect;
describe('CopyGitHubLabels', function(){
it('should be a function', function(){
expect(CopyGitHubLabels).to.be.a('function');
});
})
| JavaScript | 0.000001 | @@ -225,9 +225,492 @@
%09%7D);%0A%0A%7D)
+;%0A%0Adescribe('copyGitHubLabels', function()%7B%0A%0A%09var copyGitHubLabels = new CopyGitHubLabels();%0A%0A%09it('should be an object', function()%7B%0A%09%09expect(copyGitHubLabels).to.be.a('object');%0A%09%7D);%0A%0A%09describe('#authenticate', function()%7B%0A%0A%09%09it... |
4caccab31bec77c121b2ff4695b87015bf13f2a3 | Add test cases | test/core.parser.parser.js | test/core.parser.parser.js | /*global describe, it*/
'use strict';
var _ = require('lodash-node');
var assert = require('assert');
var util = require('util');
describe('core/parser/parser', function () {
/*eslint max-nested-callbacks: 0*/
var RuleAny = require('../core/parser/rule-any');
var RuleArg = require('../core/parser/rule-arg... | JavaScript | 0.000018 | @@ -1025,16 +1025,59 @@
%7D%7D:foo%3E'
+,%0A ':',%0A '%3CFoo::bar%3E'
%0A
|
f704617354e5a8adc298c7b4801542b131c759d2 | Create trim string and ignore case to Code and Name in GarmentSectionManager | src/managers/garment-master-plan/garment-section-manager.js | src/managers/garment-master-plan/garment-section-manager.js | "use strict"
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var DLModels = require("dl-models");
var map = DLModels.map;
var GarmentSection = DLModels.garmentMasterPlan.GarmentSection;
var BaseManager = require("module-toolkit").BaseManager;
var i18n = require("dl-i18n");
module.exports = cla... | JavaScript | 0 | @@ -1338,16 +1338,175 @@
omises.%0A
+%0A // trim string for code and name%0A valid.code = valid.code ? valid.code.trim() : %22%22;%0A valid.name = valid.name ? valid.name.trim() : %22%22;%0A%0A
@@ -1666,48 +1666,276 @@
de:
-valid.code,%0A name: valid.name
+%7B%0A ... |
9686438b853e34626fe597c409cc4df80285eea8 | Support rides with "Refurbishment" status * Set waitTime to -3 to enable | lib/ride.js | lib/ride.js | const Location = require('./location');
// symbols
const sRideID = Symbol('Ride ID');
const sRideName = Symbol('Ride Name');
const sCurrentWaitTime = Symbol('Wait Time');
const sFastPassAvailable = Symbol('Fade Pass Available');
const sLastTimeUpdate = Symbol('Last Update');
const sCustomProperties = Symbol('Custom Ri... | JavaScript | 0 | @@ -2668,69 +2668,225 @@
-this%5BsCurrentWaitTime%5D = input.status === 'Closed' ? -1 : -2;
+if (input.status === 'Refurbishment') %7B%0A this%5BsCurrentWaitTime%5D = -3;%0A %7D else if (input.status === 'Down') %7B%0A this%5BsCurrentWaitTime%5D = -2;%0A %7D else %7B%0A this%5BsCurr... |
6bc61c9cad7befb761bd80a85303fc32308e85bd | Remove debug code, move works backup section | lib/ImageProcessor.js | lib/ImageProcessor.js | "use strict";
const ImageArchiver = require("./ImageArchiver");
const ImageResizer = require("./ImageResizer");
const ImageReducer = require("./ImageReducer");
class ImageProcessor {
/**
* Image processor
* management resize/reduce image list by configration,
* and pipe AWS Lambda's event/contex... | JavaScript | 0 | @@ -1335,87 +1335,8 @@
g%22);
-%0A const removeAfterSuccess = ( config.get(%22backup%22, %7B%7D).move === true );
%0A%0A
@@ -1596,16 +1596,34 @@
ucket;%0A%0A
+ %7D)%0A%0A
@@ -1806,91 +1806,95 @@
=%3E
-%7B%0A console.log(%22backup success%22);%0A ++proc... |
dd855181365f4c8dbe4e7b889781673c51674d14 | add retry to webapp download (#2877) | dhis-2/dhis-web/dhis-web-apps/scripts/git.js | dhis-2/dhis-web/dhis-web-apps/scripts/git.js | const { promisify } = require('util')
const exec = promisify(require('child_process').exec)
const rename = promisify(require('fs').rename)
const path = require('path')
const {
sanitize_app_name,
split_repo_path,
ex_clone_path
} = require('./lib/sanitize')
async function rename_app (app_name, app_path, ta... | JavaScript | 0 | @@ -1957,16 +1957,59 @@
arted%60)%0A
+ let retries = 0%0A while (true) %7B%0A
try
@@ -2002,32 +2002,36 @@
%7B%0A try %7B%0A
+
await ex
@@ -2096,32 +2096,36 @@
path%7D%60)%0A
+
console.log(%60%5Bcl
@@ -2162,32 +2162,96 @@
l%60)%0A
-%7D catch (err) %7B%0A
+ ... |
919a38510e92810bfaf8f5c7980ab220625a827b | remove old code | lib/definition.js | lib/definition.js | const events = require('events')
const util = require('util')
const async = require('async')
const Utils = require('./utils')
/**
* There are two ways to define a model.
*
* ```js
* var store = new OpenRecord({
* //my store config
* })
*
* store.model('MyModel', function(){
* //model definition scope
* ... | JavaScript | 0.999865 | @@ -3898,109 +3898,8 @@
%7D%0A%0A
- // Mixin the Eventemitter class%0A // Utils.mixin(Model.prototype, events.EventEmitter.prototype);%0A%0A
Ob
|
64429083aeab0c5f3a1fce26159b1277985237fa | Update version number | dist/van11y-accessible-accordion-aria.min.js | dist/van11y-accessible-accordion-aria.min.js | /**
* van11y-accessible-accordion-aria - ES2015 accessible accordion system, using ARIA (compatible IE9+ when transpiled)
* @version v1.0.5
* @link https://van11y.net/accessible-accordion/
* @license MIT : https://github.com/nico3333fr/van11y-accessible-accordion-aria/blob/master/LICENSE
*/
"use strict";function _... | JavaScript | 0.000002 | @@ -133,17 +133,17 @@
on v1.0.
-5
+6
%0A * @lin
@@ -5040,8 +5040,9 @@
cument);
+%0A
|
561e54bde69593c25d518b091aa9fb3d6b759a78 | add more waiting time for test | end-to-end-tests/specs/genome-nexus/mutationTable.spec.js | end-to-end-tests/specs/genome-nexus/mutationTable.spec.js |
var assertScreenShotMatch = require('../../lib/testUtils').assertScreenShotMatch;
var assert = require('assert');
var expect = require('chai').expect;
var goToUrlAndSetLocalStorage = require('./../specUtils').goToUrlAndSetLocalStorage;
var waitForNetworkQuiet = require('./../specUtils').waitForNetworkQuiet;
const CB... | JavaScript | 0.000001 | @@ -3022,25 +3022,25 @@
%7D,
-2
+6
0000, %22Exon
@@ -3605,33 +3605,33 @@
%0A %7D,
-2
+6
0000, %22HGVSc val
@@ -4085,17 +4085,17 @@
%7D,
-2
+6
0000, %22H
@@ -5153,25 +5153,25 @@
-7540-01%22%5D',
-3
+6
0000);%0A
@@ -5669,17 +5669,17 @@
quency,
-3
+6
0000);%0A
|
d6e164f76dd5ecce8df63ccfa528afcd7973693f | use phantomjs for testing | test/fixtures/wdio.conf.js | test/fixtures/wdio.conf.js | var fs = require('fs')
var allureReporter = require('../../build/reporter')
allureReporter.reporterName = 'allure'
exports.config = {
baseUrl: 'file:///' + fs.realpathSync(__dirname),
coloredLogs: true,
logLevel: 'silent',
reporters: [allureReporter],
framework: 'mocha',
mochaOpts: {
ui... | JavaScript | 0 | @@ -528,14 +528,17 @@
e: '
-chrome
+phantomjs
'%0A
|
1ad3e72128ee5cd5b93c654e85a78d585c2d7af8 | Add a unit test to assert that is equal to Promise | test/angular-bluebird-promises.spec.js | test/angular-bluebird-promises.spec.js | beforeEach(module('mwl.bluebird'));
describe('$q', function() {
var $q, $rootScope;
beforeEach(inject(function(_$q_, _$rootScope_) {
$q = _$q_;
$rootScope = _$rootScope_;
}));
describe('defer', function() {
it('should have the resolve, reject and notify methods', function() {
var deferred... | JavaScript | 0.000093 | @@ -5951,32 +5951,120 @@
ss');%0A%0A %7D);%0A%0A
+ it('$q should be bluebird', function() %7B%0A expect($q).to.eql(Promise);%0A %7D);%0A%0A
%7D);%0A%0A describ
|
b9a818386aff5c745cd7ce3526fd1ee40896e42d | add test for ascii data-uri | test/cases/resolving/data-uri/index.js | test/cases/resolving/data-uri/index.js | it("should require module from data-uri", function() {
const mod = require("data:text/javascript;charset=utf-8;base64,bW9kdWxlLmV4cG9ydHMgPSB7CiAgbnVtYmVyOiA0MiwKICBmbjogKCkgPT4gIkhlbGxvIHdvcmxkIgp9Ow==");
expect(mod.number).toBe(42);
expect(mod.fn()).toBe("Hello world");
});
it("should import module from data-uri"... | JavaScript | 0.000001 | @@ -12,16 +12,19 @@
require
+js
module f
@@ -19,32 +19,39 @@
js module from
+base64
data-uri%22, funct
@@ -295,22 +295,279 @@
%22should
-import
+require js module from ascii data-uri%22, function() %7B%0A%09const mod = require(%22data:text/javascript;charset=utf-8;ascii,module.exports=%7Bnumber:42,fn:()=%3E%... |
2db53c99251a67c5a32fe1324e4427dfc8beb0f2 | Fix tests for webgl subdomains | test/spec/geo/leaflet/leaflet-cartodb-webgl-layer-group-view.spec.js | test/spec/geo/leaflet/leaflet-cartodb-webgl-layer-group-view.spec.js | var L = require('leaflet');
var VisModel = require('../../../../src/vis/vis');
var LayersCollection = require('../../../../src/geo/map/layers');
var CartoDBLayer = require('../../../../src/geo/map/cartodb-layer');
var CartoDBLayerGroup = require('../../../../src/geo/cartodb-layer-group');
var LeafletCartoDBWebGLLayerGr... | JavaScript | 0.000001 | @@ -880,16 +880,45 @@
iles: %5B%5D
+, subdomains: %5B'a', 'b', 'c'%5D
%7D);%0A%0A
@@ -2351,32 +2351,61 @@
x%7D/%7By%7D.%7Bformat%7D'
+, subdomains: %5B'a', 'b', 'c'%5D
%7D);%0A%0A expect
@@ -2571,16 +2571,33 @@
%7By%7D.mvt'
+, %5B'a', 'b', 'c'%5D
);%0A %7D);
@@ -2947,16 +2947,45 @@
format%7D'
+, subdomai... |
c3d1f9ed2e052ea0e52c096f3040e8f50f32270f | Support messages | lib/dispatcher.js | lib/dispatcher.js | 'use strict';
var path = require('path');
var errors = require('./errors');
var root = null;
var responseRenderer = null;
/**
* @param {String} _root
*/
exports.setRoot = function (_root) {
root = _root;
};
/**
* @param {Function} _responseRenderer
*/
exports.setResponseRenderer = function (_responseRenderer) {... | JavaScript | 0 | @@ -537,42 +537,116 @@
%0A%09 *
-/%0A%09function render(error, data) %7B%0A
+ @param %7BString%7CArray%7D messages%0A%09 */%0A%09function render(error, data, messages) %7B%0A%0A%09%09messages = messages %7C%7C %5B%5D;
%0A%09%09v
@@ -665,17 +665,20 @@
e = 200,
-
+%0A%09%09%09
response
@@ -697,16 +697,130 @@
%7C%7C... |
88f6f0f52e1ec33f761f83d23cb28add853c50bd | Use aws-sdk promise method | lib/doc_client.js | lib/doc_client.js | 'use strict';
module.exports = function(docClient) {
function get(params) {
return new Promise(function(resolve, reject) {
docClient.get(params, function(err, data) {
if (err) reject(err);
else resolve(data);
});
});
}
function batchGet(params) {
return n... | JavaScript | 0.000001 | @@ -88,782 +88,297 @@
urn
-new Promise(function(resolve, reject) %7B%0A docClient.get(params, function(err, data) %7B%0A if (err) reject(err);%0A else resolve(data);%0A %7D);%0A %7D);%0A %7D%0A%0A function batchGet(params) %7B%0A return new Promise(function(resolve, rej... |
80ca06aa64f9bc04dcc2444f908b404a5080cce1 | update file /lib/sync.js | lib/sync.js | lib/sync.js | var mbaasApi = require('fh-mbaas-api');
var globalRequestInterceptor = function(dataset_id, params, cb) {
// This function will intercept all sync requests.
// It is useful for checking client identities and
// for validating authentication
console.log('lib/sync.js - For param', params);
return mbaasApi.se... | JavaScript | 0.000002 | @@ -329,17 +329,18 @@
t(params
-.
+%5B'
sessionT
@@ -343,16 +343,18 @@
ionToken
+'%5D
%5B0%5D, fun
|
227f14269105bfdc3b9899218badfdd12c598cf4 | Fix a test and description after #189. | test/function_call_test.js | test/function_call_test.js | import check from './support/check.js';
describe('function calls', () => {
it('inserts commas after arguments if they are not there', () => {
check(`
a(
1
2
)
`, `
a(
1,
2
);
`);
});
it('does not insert commas in single-line calls', () => {
... | JavaScript | 0.000068 | @@ -1913,61 +1913,55 @@
p('p
-laces parentheses in calls short single line into fat
+reserves comments in functions that will become
arr
@@ -1975,21 +1975,9 @@
tion
- with comment
+s
', (
@@ -2009,32 +2009,33 @@
promise.then (a)
+
-%3E%0A b # c
@@ -2076,18 +2076,35 @@
en(a
+
=%3E
- b); # c
+%0A ... |
2bce4ebbced5f03adfad55654d10b953547e5c47 | Fix team.auth | lib/team.js | lib/team.js | var _ = require('lodash');
var config = require('./config');
var profile = require('./profiles')[config.profile];
var phone = require('./utils/phone');
var username = require('./utils/username');
var LIST = _.chain([
{
name: profile.name,
machine: true,
phone: _.first(confi... | JavaScript | 0.000003 | @@ -1322,16 +1322,17 @@
urn
-team.get
+getMember
(use
|
942ece076b7644b805879fb6ed78c0ef2e5d64b2 | Add recursive to build tests | lib/test.js | lib/test.js | "use strict";
var clean = require("./clean");
var detectBuild = require("./detect-build");
var lint = require("./lint");
var path = require("path");
var sh = require("shelljs");
function testBuild (type) {
sh.exec("mocha -c"
+ " -r " + path.join(__dirname, "../test-bootstrap", type)
+ " " + path.joi... | JavaScript | 0.000001 | @@ -220,16 +220,28 @@
mocha -c
+ --recursive
%22%0A
|
b8d22d55cbb287109edff13bd54aa2ae7d69b630 | fix missing bracket on failure message | lib/test.js | lib/test.js | var async = require('async'),
loader = require('floader'); // browserify aware file loader (xhr in browser)
/* Collection of helper methods for testing numerical computation
*/
test = {};
/* Check all entries in two TypedArrays of identical length for approximate
equality.
If the following equation is element-wis... | JavaScript | 0.000001 | @@ -2091,16 +2091,17 @@
%09actual
++
= %22...,
@@ -2115,16 +2115,17 @@
xpected
++
= %22...,
|
a094b16dd692d0ce442f8032c021a0e67578bbc9 | fix JShint errors | lib/tron.js | lib/tron.js | const _ = require('lodash');
const Game = require('./game');
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
var getReset = document.getElementById('reset-button');
var getStart = document.getElementById('start-game');
var getInst = document.getElementById('inst... | JavaScript | 0.000005 | @@ -1,12 +1,15 @@
+//
const _
@@ -426,16 +426,17 @@
'audio')
+;
%0Avar tro
@@ -830,17 +830,16 @@
Loop);%0A%7D
-;
%0A%0A%0Afunct
@@ -3859,79 +3859,8 @@
%7D;%0A%0A
-function gameStart() %7B%0A getReset.setAttribute(%22class%22, %22hidden%22);%0A%0A%7D%0A%0A
func
|
bc8b52ff4356854ca998c78af7890cd63b52e97d | Add Binary type support | lib/type.js | lib/type.js | var State = require('ampersand-state');
var _ = require('lodash');
var ValueCollection = require('./value-collection');
var Type = State.extend({
idAttribute: '_id',
props: {
_id: {
type: 'string'
},
count: {
type: 'number',
default: 0
}
},
collections: {
values: ValueColl... | JavaScript | 0 | @@ -1649,32 +1649,124 @@
%0A %7D%0A %7D%0A%7D);%0A%0A
+exports.Binary = Type.extend(%7B%0A props: %7B%0A _id: %7B%0A default: 'Binary'%0A %7D%0A %7D%0A%7D);%0A%0A
exports.Object =
|
d3646924062db4625fb7d3604dc2a26f9eeade00 | Add method for get followers of a user | lib/user.js | lib/user.js | var User;
User = (function() {
function User(Taringa) {
this.taringa = Taringa;
}
User.prototype.follow = function(user_id) {
var self;
self = this;
return this.taringa.request.post('http://www.taringa.net/notificaciones-ajax.php', {
form: {
key:... | JavaScript | 0 | @@ -1815,24 +1815,669 @@
%7D);%0A %7D;%0A%0A
+ User.prototype.getFollowers = function(user_id,callback) %7B%0A var userId = user_id %7C%7C this.taringa.user_id;%0A var self;%0A self = this;%0A return this.taringa.request('http://api.taringa.net/user/followers/view/'+userId,%0A ... |
9fb236670d8eb383e535d6118176efe0829a73ef | add underscore dep | lib/user.js | lib/user.js | var async = require('async');
var ldap = require('./ldap.js');
var model = require('./model.js');
var User = model.User;
// ------------------------------------------------------------------------------------
// Find cascade user
// ------------------------------------------------------------------------------------... | JavaScript | 0.000984 | @@ -1,12 +1,47 @@
+var _ = require('underscore');%0A
var async =
|
ab5ec5b26e100f7d074b93b8e6f2424a882283e2 | improve filter on bad eval frames | lib/util.js | lib/util.js | "use strict";
// colors package does not work in browser - fails on reference to node's `process` global
var idem = function(x) { return x; };
var colors;
if (typeof(process) !== 'undefined' && !process.browser) {
try {
colors = require(idem('colors'));
} catch (ex) {
// console.error(ex.stack);
}
}
if (!colors)... | JavaScript | 0 | @@ -2178,12 +2178,8 @@
me%5Cb
-.*:0
/.te
|
5aa48e65b03f238aa5bfb6872ccea89d9db0ea29 | update LazyImage | src/LazyImage/LazyImage.js | src/LazyImage/LazyImage.js | /**
* @file LazyImage component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import CircularLoading from '../CircularLoading';
import Event from '../_vendors/Event';
class LazyImage extends Component {
... | JavaScript | 0 | @@ -182,16 +182,53 @@
lodash';
+%0Aimport classNames from 'classnames';
%0A%0Aimport
@@ -2160,17 +2160,16 @@
sName =
-(
classNam
@@ -2173,31 +2173,78 @@
Name
- ? ' ' + className : ''
+s('lazy-image', %7B%0A %5BclassName%5D: className%0A %7D
),%0A
@@ -2434,32 +2434,164 @@
ht%0A ... |
cc16fa9129e9a3b61453aafa4e61e08474239bfc | fix doc | lib/wmic.js | lib/wmic.js | 'use strict';
var spawn = require('child_process').spawn;
var path = require('path');
var getNamespace = require('./namespace.js');
var getUsername = require('./username.js');
var parse = require('./parse.js');
/**
* Constructor
* @param options
* @returns {wmic}
*/
var wmic = function (options) {
this.host ... | JavaScript | 0.000001 | @@ -3198,22 +3198,21 @@
eturns %7B
-string
+Array
%7D%0A * @pr
|
50902c8ad88ff46b1fb33e9f0016abe3b5c45a10 | add paragraph to request message action explanation | src/MetadataRequestInfo.js | src/MetadataRequestInfo.js | import React, { Component } from 'react';
import { Button, Panel } from 'react-bootstrap';
import Modal from 'react-modal';
class MetadataRequestInfo extends Component {
constructor(props) {
super(props);
}
render () {
const customStyles = {
content : {
top ... | JavaScript | 0 | @@ -1317,20 +1317,64 @@
ok like.
-%3Cbr/
+%0A %3C/p%3E%0A %3Cp
%3E%0A
|
af8e80b5db2cd1655d210031ea62572edf641380 | Fix puzzle state function | src/Model/Puzzle/Puzzle.js | src/Model/Puzzle/Puzzle.js | function Puzzle(number, board) {
this.number = number;
this.original = number;
this.board = board;
this.currentRow = 0;
this.history = [];
}
Puzzle.prototype.play = function(number) {
this.assertOngoing();
var index = this.board.get(this.currentRow).indexOf(number);
if ( index < 0 ) {
... | JavaScript | 0.000018 | @@ -996,16 +996,22 @@
s.board.
+get().
length)
|
f126aa20df58fab496fff8dceba1a05dedb4d5b4 | fix type annotation for children | src/NodeGroup/NodeGroup.js | src/NodeGroup/NodeGroup.js | // @flow weak
/* eslint max-len: "off" */
import React, { Component } from 'react';
import { interval } from 'd3-timer';
import Node from '../Node';
import mergeKeys from '../core/mergeKeys';
import { ENTER, UPDATE, LEAVE } from '../core/types';
import { transition, stop } from '../core/transition';
type Props = {
... | JavaScript | 0.000001 | @@ -1727,30 +1727,31 @@
n: (
-value: string
+nodes: Array%3C%7B%7D%3E
) =%3E
-void
+%7B%7D
,%0A%7D;
|
7cf9daef5e6cb9fab2b25eab685ec01855af99d7 | refactor center-coords | lib/util/center-coords.js | lib/util/center-coords.js | 'use strict';
import normalizeCoords from './normalize-coords';
export default function centerCoords(pairs, opts) {
var opts = opts || {};
var xMin, xMax, yMin, yMax;
var xCoords = $.map(pairs, function(i) { return normalizeCoords(i)[0] });
var yCoords = $.map(pairs, function(i) { return normalizeCoords(i)[1]... | JavaScript | 0.99992 | @@ -174,33 +174,37 @@
var xCoords =
-$
+pairs
.map(pairs, func
@@ -196,39 +196,19 @@
map(pair
-s, function(i) %7B return
+ =%3E
normali
@@ -220,15 +220,16 @@
rds(
-i
+pair
)%5B0%5D
- %7D
);%0A
@@ -247,9 +247,13 @@
s =
-$
+pairs
.map
@@ -261,31 +261,11 @@
pair
-s, function(i) %7B return
+ =%3E
nor
@@ -... |
ce944dc3628e9d21cf54643a82ddff54b268f601 | Change backoffReset from interval to timer | lib/fh_cluster.js | lib/fh_cluster.js | /*
Copyright Red Hat, Inc., and individual contributors
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.000001 | @@ -1059,24 +1059,23 @@
offReset
-Interval
+Timeout
= reset
@@ -1082,32 +1082,31 @@
BackoffReset
-Interval
+Timeout
(backoffStra
@@ -1283,24 +1283,23 @@
offReset
-Interval
+Timeout
);%0A%0A st
@@ -1867,24 +1867,23 @@
offReset
-Interval
+Timeout
) %7B%0A cl
@@ -2179,24 +2179,23 @@
offReset
-Interval
+Timeout... |
a1abcf32263b56fb40c0799f0f5ce752500039ba | Add a comment clarifying the items in `_blockInfo[0].blocks` | test/integration/internal-extension.js | test/integration/internal-extension.js | const test = require('tap').test;
const Worker = require('tiny-worker');
const dispatch = require('../../src/dispatch/central-dispatch');
const VirtualMachine = require('../../src/virtual-machine');
const Sprite = require('../../src/sprites/sprite');
const RenderedTarget = require('../../src/sprites/rendered-target')... | JavaScript | 0.000002 | @@ -2487,16 +2487,108 @@
gth, 1);
+%0A%0A // blocks should be an array of two items: a button pseudo-block and a reporter block.
%0A t.e
|
7058807a6b5beb9a36348e1c3baed4370d73e30a | remove done() calls in test | test/postgresql.initialization.test.js | test/postgresql.initialization.test.js | // Copyright IBM Corp. 2015. All Rights Reserved.
// Node module: loopback-connector-postgresql
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
'use strict';
var connector = require('..');
var DataSource = require('loopback-datasource-... | JavaScript | 0.000001 | @@ -455,36 +455,32 @@
ings', function(
-done
) %7B%0A var data
@@ -805,29 +805,16 @@
al(999);
-%0A%0A done();
%0A %7D);%0A%0A
@@ -856,36 +856,32 @@
ings', function(
-done
) %7B%0A var sett
@@ -1247,37 +1247,24 @@
ttings.url);
-%0A%0A done();
%0A %7D);%0A%0A it
@@ -1315,20 +1315,16 @@
unction(
-d... |
efecad05752af8c0074d6e5d165bf18acdf6a84e | Fix semi colon positioning | generators/table/templates/resources/cf/dynamodb/table.js | generators/table/templates/resources/cf/dynamodb/table.js | 'use strict';
const Environment = require('wysknd-aws-lambda').Environment;
const DynamoDbTemplates = require('wysknd-aws-cf-generator').DynamoDbTemplates;
const TableTemplate = DynamoDbTemplates.TableTemplate;
const LocalSecondaryIndex = DynamoDbTemplates.LocalSecondaryIndex;
const GlobalSecondaryIndex = DynamoDbTemp... | JavaScript | 0.00139 | @@ -1260,17 +1260,69 @@
y %25%3E)%0A%3C%25
-
+%0Avar indexCount = Object.keys(tableIndexMap).length;%0A
for(var
@@ -1350,17 +1350,16 @@
exMap) %7B
-
%0A var
@@ -1396,32 +1396,34 @@
exName%5D;
+%0A
-
+indexCount--;
%0A if(
@@ -2265,17 +2265,16 @@
tr) =%3E %7B
-
%0A
@@ -2381,17 ... |
09778521dda2a5545c5c9aeb8d0b841e241d8dc6 | Check that document isn't undefined. | lib/headlights.js | lib/headlights.js | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0 | @@ -1979,25 +1979,24 @@
ent?%0A
-
if (document
@@ -1998,16 +1998,44 @@
ument &&
+ (document !== undefined) &&
documen
@@ -2104,17 +2104,16 @@
-
usedCrem
@@ -2118,25 +2118,24 @@
ema = true;%0A
-
%7D%0A%0A
|
d518754d88dd5a7d83cd57a1bff9ea2e848df0cb | Fix looping for todos | src/components/TodoList/TodoList.js | src/components/TodoList/TodoList.js | import React, { PropTypes } from 'react'
const TodoList = ({ todos }) => (
<ul>
{todos.map(todo => {
(<li>{todo.title}</li>)
})}
</ul>
)
TodoList.propTypes = {
todos: PropTypes.array.isRequired
}
export default TodoList
| JavaScript | 0.000008 | @@ -111,12 +111,42 @@
-(%3Cli
+return (%0A %3Cli key=%7Btodo.id%7D
%3E%7Bto
@@ -159,16 +159,23 @@
le%7D%3C/li%3E
+%0A
)%0A %7D)
|
37c70ce27f073f13ce25d1135990eca8c04f6816 | fix result display | src/components/shared/CodeEditor.js | src/components/shared/CodeEditor.js | import Brace from 'brace'
require('brace/mode/json')
require('brace/theme/monokai')
export default {
data () {
return {
editor: null
}
},
props: {
code: {
default: () => {
return {}
}
},
readOnly: Boolean
},
computed: {
darkTheme () {
return this.$stor... | JavaScript | 0.000001 | @@ -625,24 +625,27 @@
tValue(value
+, 1
)%0A %7D el
@@ -711,16 +711,19 @@
l, '%5Ct')
+, 1
)%0A
@@ -797,16 +797,94 @@
(value)%0A
+ %7D,%0A code (value) %7B%0A if (this.readOnly) this.setEditorValue(value)%0A
%7D%0A
|
a1f1de954b3aad5b2c4df4ec43dea3ade5c4426f | correct indentation of one brace in roomsList | src/rooms/containers/roomsList.container.js | src/rooms/containers/roomsList.container.js | import React, { Component } from 'react';
import { connect} from 'react-redux';
import CardList from '../../cardList/components/CardList';
import { addRoom, selectRoom } from '../actions/rooms.action';
import { bindActionCreators } from 'redux';
import database from '../../database';
import { Row, Col} from 'react-mate... | JavaScript | 0.000001 | @@ -702,16 +702,18 @@
%7D);%0A
+
%7D%0A%0A ren
|
66045cf347ef0f29459571e31880b49340c052cb | Remove console.log | src/routes/Home/containers/HomeContainer.js | src/routes/Home/containers/HomeContainer.js | import { connect } from 'react-redux';
import {
fetchNavigation,
setNavigationVisibility,
fetchTOS,
setPhaseVisibility,
setPhasesVisibility,
setDocumentState,
fetchRecordTypes,
fetchAttributeTypes,
addAction,
addRecord,
addPhase,
changeOrder,
importItems,
closeMessage
} from '../modules/home... | JavaScript | 0.000004 | @@ -687,62 +687,8 @@
%3E %7B%0A
- console.log('%F0%9F%8D%8D navigation', state.home.navigation);%0A
re
|
d4980f0bb391c87dafbb192a7a4090d4db0d1f3f | Remove dead code | src/configs/jest/babel-transform.js | src/configs/jest/babel-transform.js | // 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 to in writing, software
// distributed unde... | JavaScript | 0.001497 | @@ -624,68 +624,8 @@
les%22
-%0Aimport %7BTARGET_PACKAGE_DIR, TOOLBOX_DIR%7D from %22../../paths%22
%0A%0Amo
|
a79c834178527ac404abede0ade73fbcd996f262 | Switch rangeRoundBounds to rangeBounds if there's more that 30 data points in ordinal x axis | src/scripts/core/axis/ordinal-scale-axis.js | src/scripts/core/axis/ordinal-scale-axis.js | (function () {
// implements the following interface
/*
{
scale: returns the d3 scale for the type
axis: returns the d3 axis
range: returns the d3 range for the type
postProcessAxis:
}
*/
function OrdinalScale(data, options) {
this.options = options;
... | JavaScript | 0 | @@ -3657,32 +3657,59 @@
domain(domain);%0A
+ this._range();%0A
%7D,%0A%0A
@@ -4310,16 +4310,245 @@
Width%5D;%0A
+ var numCats = (this._domain %7C%7C %5B%5D).length;%0A var threshold = 30;%0A var rangeType = numCats %3C= threshold ? 'rangeRoundBands' : 'rangeBan... |
0c7703e206eac666db0f68a970bd71617a988799 | add ability to click multiple emojis in example (#1619) | examples/emojis/index.js | examples/emojis/index.js | import { Editor } from 'slate-react'
import { Value } from 'slate'
import React from 'react'
import initialValue from './value.json'
/**
* Emojis.
*
* @type {Array}
*/
const EMOJIS = [
'😃',
'😬',
'😂',
'😅',
'😆',
'😍',
'😱',
'👋',
'👏',
'👍',
'🙌',
'👌',
'🙏',
'👻',
'🍔',
'🍑',
... | JavaScript | 0 | @@ -962,16 +962,23 @@
change
+%0A
.insertI
@@ -985,16 +985,18 @@
nline(%7B%0A
+
ty
@@ -1014,16 +1014,18 @@
,%0A
+
isVoid:
@@ -1030,16 +1030,18 @@
: true,%0A
+
da
@@ -1058,17 +1058,69 @@
%7D,%0A
-%7D
+ %7D)%0A .collapseToStartOfNextText()%0A .focus(
)%0A%0A t... |
f49e2340dbe79f426bad3d979a89e14f38cb2a10 | Fix select focus when dropdown is kept opened | src/PowerSelectMultiple/index.js | src/PowerSelectMultiple/index.js | import React, { Component } from 'react';
import cx from 'classnames';
import Select from '../Select';
import MultiSelectTrigger from './SelectTrigger';
export default class PowerSelectMultiple extends Component {
state = {};
componentWillMount() {
this.filterOptions(this.props.options, this.props.selected);
... | JavaScript | 0 | @@ -663,24 +663,52 @@
%7D);%0A %7D%0A
+ select.actions.focus();%0A
if (sele
@@ -761,38 +761,8 @@
');%0A
- select.actions.focus();%0A
|
e04101a1c1e2a687ed7a820b894fb39d1e9f17c0 | Update utils.js | candidate/js/lib/utils/utils.js | candidate/js/lib/utils/utils.js | (function() {
"use strict";
const BLANK_CHR = [" ", " "], ERROR_CODE_BLANK = -1;
let StringUtils = {
isEmpty: str => {
let __str = __parseStr(str);
return (__str === null) || (__str.length <= 0);
},
isNotEmpty: str => {
return !isEmpty(str);
... | JavaScript | 0.000001 | @@ -3136,16 +3136,20 @@
+
now = th
@@ -3176,16 +3176,20 @@
Day()),%0A
+
|
c4c6ad6974a48fdfc1826225f1bac40a3cba2d43 | Remove function call and closure | ui/src/admin/components/chronograf/OrganizationsTableRow.js | ui/src/admin/components/chronograf/OrganizationsTableRow.js | import React, {Component, PropTypes} from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import {withRouter} from 'react-router'
import SlideToggle from 'shared/components/SlideToggle'
import ConfirmButtons from 'shared/components/ConfirmButtons'
import Dropdown from 'shared/compo... | JavaScript | 0.000001 | @@ -1230,22 +1230,16 @@
zation =
- () =%3E
async (
@@ -3729,18 +3729,16 @@
nization
-()
%7D%0A
|
0b9ef61a975f64d98a806ab446b80b300f08d9f3 | update WidgetHeader | src/WidgetHeader/WidgetHeader.js | src/WidgetHeader/WidgetHeader.js | /**
* @file WidgetHeader component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
export default class WidgetHeader extends Component {
constructor(props, ...restArgs) {
super(props, ...restArgs);
}
render() {
... | JavaScript | 0.000001 | @@ -167,23 +167,8 @@
';%0A%0A
-export default
clas
@@ -835,12 +835,42 @@
itle: ''%0A%0A%7D;
+%0A%0Aexport default WidgetHeader;
|
2b8cee33cc850ff21b72412b92278715a287ef48 | test selector that depends on selector | src/__tests__/logic-singleton.js | src/__tests__/logic-singleton.js | /* global test, expect, beforeEach */
import { kea, resetKeaCache, keaReducer } from '../index'
import PropTypes from 'prop-types'
beforeEach(() => {
resetKeaCache()
})
test('singleton logic has all the right properties', () => {
keaReducer('scenes')
const response = kea({
path: () => ['scenes', 'homepage... | JavaScript | 0.000001 | @@ -917,32 +917,221 @@
ropTypes.string%0A
+ %5D,%0A upperCaseName: %5B%0A () =%3E %5Bselectors.capitalizedName%5D,%0A (capitalizedName) =%3E %7B%0A return capitalizedName.toUpperCase()%0A %7D,%0A PropTypes.string%0A
%5D%0A %7D)%0A
@@ -2977,16 +2977,33 @@
, 'ro... |
c93cb8b9ea370ac58c6e0375b1b78eb3f8aef17a | fix option in test-case | src/__tests__/massPeakPicking.js | src/__tests__/massPeakPicking.js | import { gsd, optimizePeaks } from '..';
let CC = require('chemcalc');
let Stat = require('ml-stat');
let spectrum = CC.analyseMF('Cl2.Br2', {
isotopomers: 'arrayXXYY',
fwhm: 0.01,
gaussianWidth: 11,
});
let xy = spectrum.arrayXXYY;
let x = xy[0];
let y = xy[1];
let max = Stat.array.max(y);
let noiseLevel = Sta... | JavaScript | 0.005033 | @@ -830,20 +830,29 @@
-functionName
+shape: %7B%0A kind
: 'g
@@ -861,16 +861,25 @@
ssian',%0A
+ %7D,%0A
%7D);%0A
|
83158a79b9b2d02a413d0b6a2496bcccfed67680 | fix api test with jwt | tests/server/services/v1/users-test.js | tests/server/services/v1/users-test.js | 'use strict';
import app from 'src/server';
import models from 'src/server/db/models';
import db from 'src/server/db';
import {expect} from 'chai';
import hashids from 'src/shared/utils/hashids-plus';
import bcrypt from 'co-bcrypt';
const User = db.users;
const request = require('co-supertest').agent(app.listen());
... | JavaScript | 0 | @@ -4718,32 +4718,41 @@
'JWT ' + token1
+ + token2
)%0A .set('
|
32842071987ee6f4952de3cdcd5112fcad92fcd0 | Add name of commenter to title of pull request | comments.js | comments.js | var Octokat = require('octokat');
var moment = require('moment');
var md5 = require('js-md5');
var config = require('./config.json');
var octo = new Octokat(config.credentials);
var repo = octo.repos(config.owner, config.repo);
exports.submit = function(event) {
var date = moment.utc();
var email = event.email.tri... | JavaScript | 0 | @@ -1124,33 +1124,46 @@
le: 'New comment
-'
+ from ' + name
,%0A body: na
|
688de7ef25e9c726b78b45ccac334791bb1f95ce | test for githook | modules/atlas/components/dashboard/dashboard.component.js | modules/atlas/components/dashboard/dashboard.component.js | (function () {
'use strict';
angular
.module('atlas')
.component('dpDashboard', {
templateUrl: 'modules/atlas/components/dashboard/dashboard.html',
controller: DpDashboardController,
controllerAs: 'vm'
});
DpDashboardController.$inject = ['store'... | JavaScript | 0.000001 | @@ -997,16 +997,17 @@
);%0A
+%0A
|
ac4ecad49e08b33d17defb00a591c47aee0f28be | fix log category name | cli/templates/proj-templ/app.js | cli/templates/proj-templ/app.js | 'use strict';
//dependencies
var config = require('./config'),
express = require('express'),
mongoStore = require('connect-mongo')(express),
http = require('http'),
path = require('path'),
helmet = require('helmet'),
bicycle = require('bicycle'),
db = require('bicycle/db'),
webapi = req... | JavaScript | 0.000032 | @@ -887,16 +887,22 @@
ger(
-'careco'
+config.appName
, __
|
1271f5fc72aa47f7d90c24ef0573616e15192a04 | search page query parse | client/components/SearchPage.js | client/components/SearchPage.js | // This is the root component for #search-page
import React from 'react'
import PropTypes from 'prop-types'
import queryString from 'query-string'
import SearchForm from './SearchPage/SearchForm'
import SearchResult from './SearchPage/SearchResult'
export default class SearchPage extends React.Component {
construc... | JavaScript | 0.10629 | @@ -410,16 +410,23 @@
location
+.search
)%0A%0A t
|
8e11489eb0accee0c62cb413da4263ef8625044f | update files | static/js/components/app-configure/index.js | static/js/components/app-configure/index.js | /**
* Created by nuintun on 2015/11/19.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var ipc = require('ipc-renderer');
var Vue = require('../../vue/vue');
require('../project-base');
module.exports = Vue.component('app-configure', {
template: fs.readFileSync(path.join(__dirname, 'app-co... | JavaScript | 0.000001 | @@ -993,24 +993,87 @@
sValid()) %7B%0A
+ // hide popup%0A this.showPopup = false;%0A %0A
// a
@@ -1441,62 +1441,8 @@
);%0A%0A
- // hide popup%0A this.showPopup = false;%0A
|
79fe7804f75b12c3838472a174055de1b44b044a | Update documentation | client/src/plugins/lineChart.js | client/src/plugins/lineChart.js | // A reusable line chart module.
// Draws from D3 line chart example http://bl.ocks.org/mbostock/3883245
// Curran Kelleher March 2015
define(["./reactivis", "d3", "model"], function (reactivis, d3, Model) {
// A representation for an optional Model property that is not specified.
// This allows the "when" approac... | JavaScript | 0 | @@ -5979,24 +5979,25 @@
ain the line
+s
.%0A model.
|
51b87ae5e46f232f8743b31dab9202b26c883352 | Fix Optimize module settings stories. | stories/module-optimize-settings.stories.js | stories/module-optimize-settings.stories.js | /**
* Optimize Settings stories.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0... | JavaScript | 0 | @@ -848,95 +848,8 @@
s';%0A
-import %7B CORE_MODULES %7D from '../assets/js/googlesitekit/modules/datastore/constants';%0A
impo
@@ -1016,90 +1016,8 @@
s';%0A
-import fixtures from '../assets/js/googlesitekit/modules/datastore/__fixtures__';%0A
impo
@@ -1106,16 +1106,44 @@
ations,%0A
+%09provideUserAuthentication,%... |
f2c52319495635aedca28642ca900bb4b88ff47f | Update logger | src/app/logger/logger.service.js | src/app/logger/logger.service.js | 'use strict';
/**
* @ngdoc service
* @name vegalite-ui.logger
* @description
* # logger
* Service in the vegalite-ui.
*/
angular.module('vleApp')
.service('Logger', function (localStorageService, consts) {
var service = {};
var timeStamp = function() {
var now = new Date();
var date = [ n... | JavaScript | 0.000001 | @@ -232,16 +232,87 @@
= %7B%7D;%0A%0A
+ // to avoid key collisions%0A var previous;%0A var counter = 0;%0A%0A
var
@@ -743,35 +743,8 @@
) %7B%0A
- console.log(consts);%0A
@@ -810,16 +810,149 @@
Stamp();
+%0A%0A if (key === previous) %7B%0A key += %22 %22 + (++counter);%0A %... |
a1cb88f78f1c3def404a1eddc4073bdc8eee32f2 | add local server | src/app/service/ninja.service.js | src/app/service/ninja.service.js | angular.module('handlingNinja')
.service('Ninja', function($resource){
var Ninja = $resource('http://localhost:3001/api/ninja/:_id', {
_id: '@_id'
}, {
count: {method: 'GET', isArray: true, params: {count: true}}
});
return Ninja;
});
| JavaScript | 0.000001 | @@ -100,17 +100,20 @@
p://
-localhost
+192.168.6.27
:300
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.