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
33d26ac11ef2c0096912fd546d79ad302715b5d3
Fix deprecated Buffer constructor in readNiftiHeader
utils/files/readNiftiHeader.js
utils/files/readNiftiHeader.js
const nifti = require('nifti-js') const pako = require('pako') const fs = require('fs') const zlib = require('zlib') const testFile = require('./testFile') const Issue = require('../../utils/issues').Issue const isNode = typeof window == 'undefined' /** * Read Nifti Header * * Takes a files and returns a json pars...
JavaScript
0.000001
@@ -901,19 +901,21 @@ ck) %7B%0A -var +const bytesRe @@ -925,19 +925,21 @@ = 500%0A -var +const buffer @@ -943,19 +943,21 @@ er = - new Buffer +.alloc (byt
9e1e6814283a8cb01f9bf0a3bdf51071e5904102
Move DOM knowledge into Tab instead of TabManager
ide/static/js/tabs.js
ide/static/js/tabs.js
ide.tabs = (function() { var Tab = function (li, name) { this.li = li; this.name = name; this.label = this.li.find('a').first(); this.li.data('tab', this); this.dirty = false; }; Tab.prototype.markDirty = function() { if (!this.dirty) { this.dirty = true; this.label.prepend('*...
JavaScript
0
@@ -189,32 +189,275 @@ = false;%0A %7D;%0A%0A + Tab.create = function(name, parent) %7B%0A var li = $('%3Cli%3E').append(%0A $('%3Ca%3E')%0A .attr('href', '#')%0A .append(name, ' ', ide.utils.makeIcon('remove'))%0A ).appendTo(parent);%0A return new Tab(li, name);%0A %7D;%0A...
1913e8c30d6e3edd195adc54c7f4fc6a16a72648
Update sumArray.js
src/sumArray.js
src/sumArray.js
/* Sums up and returns all the values in the array passed into the function usage: sumArray([1,2]) returns 3 sumArray([1, 2, 3]) returns 6 sumArray([1, 2, 3, 4]) returns 10 */ var sumArray = function (array) { var response = 0; for (i in array) { response += array[i]; } return response; } ...
JavaScript
0
@@ -227,94 +227,99 @@ %7B%0A -var response = 0;%0A for (i in array) %7B%0A response += array%5Bi%5D;%0A %7D%0A return response +return array.reduce(function (previous, current) %7B%0A return previous + current;%0A %7D, 0) ;%0A%7D%0A
df9030a2c64a1534490932caafe76dcb003de585
Switch off a browsersync label
tasks/browser-sync-server.js
tasks/browser-sync-server.js
/** * Start browserSync server */ 'use strict'; const gulp = require('gulp'), fs = require('fs'); module.exports = function(options) { return () => { // If index.html exist - open it, else show folder let listDirectory = fs.existsSync(options.mainHtml) ? false : true; options.browserSync.i...
JavaScript
0.000001
@@ -319,16 +319,37 @@ .init(%7B%0A + notify: false,%0A se
a5789198ba4f139e153f5ae7f971de1687d11d4c
Fix Teledactyl option initialization typo.
teledactyl/content/config.js
teledactyl/content/config.js
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; const Config = Module("config", ConfigBase, { init: function init() { init.superc...
JavaScript
0.000375
@@ -6084,16 +6084,17 @@ %0A opt +i ons: fun
2d7202f8b83c22daf30c2e4ecab762f47f8226c0
connect error!
syncUserData.js
syncUserData.js
/** * Created by gggin on 16-3-13. */ var mysql = require('mysql'); var debug = require('debug'); var output = debug('app:log'); var config = require('./config.json'); output(config); var connection = mysql.createConnection(config.DB_CONFIG); connection.connect(); function doSelect_(x, callback) { connection....
JavaScript
0
@@ -244,30 +244,8 @@ IG); -%0Aconnection.connect(); %0A%0Afu @@ -4792,16 +4792,117 @@ %0A //*/%0A%0A +var tt = setInterval(function()%7B%0A try %7B%0A connection.connect();%0A tt.clear();%0A setInter @@ -4915,24 +4915,32 @@ nction () %7B%0A + output(' @@ -4950,24 +4950,32 @@ ...
c70ff9e8d9df49e0d6dcd60e00773c33ebd8e46e
Remove unnecessary mandatory: false attr
webofneeds/won-owner-webapp/src/main/webapp/config/usecases/uc-resource.js
webofneeds/won-owner-webapp/src/main/webapp/config/usecases/uc-resource.js
import { details, mergeInEmptyDraft, defaultReactions, } from "../detail-definitions.js"; import { name, accountingQuantity, onhandQuantity, effortQuantity, } from "../details/resource.js"; import vocab from "../../app/service/vocab.js"; export const resource = { identifier: "resource", label: "Econo...
JavaScript
0.999997
@@ -1428,26 +1428,8 @@ tion -, mandatory: false %7D,%0A
ee8c3e4cf5aff37cf4d2a16258a8b99bf35825d0
Add empty array check
app/src/views/pages/Projects.js
app/src/views/pages/Projects.js
import React, { PropTypes } from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { ProjectList } from './../components/ProjectList'; import Button from './../components/Button'; import { projectActions } from './../../core/projects' import CircularProgress from 'materia...
JavaScript
0.000022
@@ -768,20 +768,44 @@ projects + %7C%7C projects.length %3C= 0 ) %7B%0A - @@ -939,38 +939,16 @@ eturn (%0A - %3Cdiv%3E%0A @@ -1002,120 +1002,8 @@ /%3E%0A - %3CButton onClick=%7Bthis.props.createProjectLink%7D label=%22Create new project%22 /%3E%0A %3C/di...
630d777c1467631555cef92e2af543be671d25f3
add new named graphs
app/static/js/services/graph.js
app/static/js/services/graph.js
(function() { angular .module("graphService", []) .factory("Graph", ["$q", "Message", "TemplateStore", "Progress", Graph]); function Graph($q, Message, TemplateStore, Progress) { var service, _store, SCHEMAS; SCHEMAS = "urn:schema"; DATA = "urn:data"; BF = "http...
JavaScript
0.000044
@@ -233,16 +233,34 @@ SCHEMAS +, DATA, REMOTE, BF ;%0A%0A @@ -309,24 +309,55 @@ %22urn:data%22;%0A + REMOTE = %22urn:remote%22;%0A BF = @@ -594,16 +594,44 @@ TA: DATA +,%0A REMOTE: REMOTE %0A
f0a827459e057ff97e8f740e133a2650f91def8a
Fix name collision
tasks/bundle.js
tasks/bundle.js
'use strict'; var gulp = require('gulp'); var browserify = require('browserify'); var watchify = require('watchify'); var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var streamqueue = require('streamqueue'); var uglify = require('gulp-uglify'); var rev ...
JavaScript
0.033441
@@ -534,23 +534,16 @@ tion bro -wserify (path, @@ -814,23 +814,16 @@ turn bro -wserify .apply(n @@ -1301,23 +1301,16 @@ et = bro -wserify ;%0Amodule
62a64b0767d64a028bc228ad792fd8aad1554c1c
parallelize all tasks
app/tasks/update_course_info.js
app/tasks/update_course_info.js
/** * Created by Songzhou Yang on 12/1/2016. */ const LearnHelperUtil = require('../thulib/learnhelper') const CicLearnHelperUtil = require('../thulib/cic_learnhelper') const updateCourseInfo = async(user) => { const lhu = new LearnHelperUtil(user.username, user.getPassword()) const cicLhu = new CicLearnHelperU...
JavaScript
0.999999
@@ -626,531 +626,798 @@ -notices = await cicLhu.getNotices(course._courseID)%0A documents = await cicLhu.getDocuments(course._courseID)%0A assignments = await cicLhu.getAssignments(course._courseID)%0A const info = await cicLhu.getTeacherInfo(course._courseID)%0A course.teacher = info%5B0%5D%0...
57b143e77683619f90395e48c47a5000a13eaafb
update server port
tasks/config.js
tasks/config.js
module.exports = { src: 'source/', dest: 'dist/', server: { port: 8888, path: 'dist/', lr: true, }, remote: { host: '', dest: '', user: process.env.RSYNC_USERNAME || false, }, };
JavaScript
0
@@ -73,12 +73,12 @@ rt: -8888 +3000 ,%0A
a1c096c5d68816799350c95dc8393abf95970714
fix travis build.
tasks/deploy.js
tasks/deploy.js
'use strict'; const gulp = require('gulp'); const rsync = require('gulp-rsync'); const config = require('./../config.json'); const pkg = require('./../package.json'); gulp.task('deploy', ['default'], () => { return gulp.src('dist/**') .pipe(rsync({ root: 'dist', hostname: pkg.author.url, usern...
JavaScript
0
@@ -1,8 +1,50 @@ +/* eslint-disable import/no-unresolved */%0A 'use str @@ -522,8 +522,49 @@ ));%0A%7D);%0A +/* eslint-enable import/no-unresolved */%0A
ca205ca0f4bc4c45c61bb67361f4feeb62fe13aa
Add a few more colors for questions with more categories. Move info box to bottom left.
tracpro/static/js/poll-maps.js
tracpro/static/js/poll-maps.js
$(function() { var VIVID_COLORS = ['#006837', '#A7082C', '#1F49BF', '#FF8200', '#FFD100']; var LIGHT_COLORS = ['#94D192', '#F2A2B3', '#96AEF2', '#FDC690', '#FFFFBF']; var getColors = function(categories) { var allColors = []; // Use the full set of colors, starting with bright colors. $.each(VIVID_C...
JavaScript
0
@@ -9,16 +9,17 @@ ion() %7B%0A +%0A var VI @@ -85,16 +85,49 @@ #FFD100' +, '#40004b', '#762a83', '#1b7837' %5D;%0A var @@ -183,24 +183,46 @@ '#F -DC690', '#FFFFBF +FFFBF', '#c2a5cf', '#a6dba0', '#92c5de '%5D;%0A @@ -1105,15 +1105,17 @@ n: ' -toprigh +bottomlef t'%0A
842152c6373651105adc788a4d22e5b16b0a095b
Format code
tasks/dustjs.js
tasks/dustjs.js
/* * grunt-dustjs * https://github.com/STAH/grunt-dustjs * * Copyright (c) 2013 Stanislav Lesnikov * Licensed under the MIT license. * https://github.com/STAH/grunt-dustjs/blob/master/LICENSE-MIT */ module.exports = function (grunt) { "use strict"; grunt.registerMultiTask("dustjs", "Grunt task to compile ...
JavaScript
0.000002
@@ -409,26 +409,24 @@ ecified%0A - var options @@ -448,20 +448,16 @@ %7B%0A - fullname @@ -461,28 +461,24 @@ ame: false,%0A - transf @@ -500,20 +500,16 @@ ,%0A - prepend @@ -520,20 +520,16 @@ ,%0A - append : @@ -532,18 +532,16 @@ nd : ''%0A - %7D);%0A @@...
6c657746eb0696caf3e72318ee857a7b102a3987
replace 'blacklist' with 'denylist' in coverage.test.js
xunit-autolabels/test/data/nodejs/filename_blacklist_test/coverage.test.js
xunit-autolabels/test/data/nodejs/filename_blacklist_test/coverage.test.js
const assert = require('assert'); const loadable = require('./loadable.js'); const index = require('./index.js'); describe('filename blacklist test', () => { it('test loadable', () => { assert.strictEqual(loadable.returnLoadable(), 'loadable'); }); it('test index', () => { assert.strictEqual(index.returnIndex(...
JavaScript
0.000773
@@ -131,13 +131,12 @@ ame -black +deny list
48a570a6dc44c42daef3bdc770b98db8f73e6a6a
remove verbose log output
tasks/usemin.js
tasks/usemin.js
'use strict'; var util = require('util'); var chalk = require('chalk'); // Retrieve the flow config from the furnished configuration. It can be: // - a dedicated one for the furnished target // - a general one // - the default one var getFlowFromConfig = function (config, target) { var Flow = require('../lib/flow...
JavaScript
0.000013
@@ -6600,59 +6600,8 @@ ) %7B%0A - grunt.log.subhead(name, grunt.config(name));%0A
d261742546609da256a293a22ec79b57376d2fb2
Add partial solution for JS exercise printPyramid
solutions/printPyramid.js
solutions/printPyramid.js
/* Function name: printPyramid(height); Input: A number n. Returns: Nothing Prints: A pyramid consisting of "*" characters that is "n" characters tall at its tallest. For example, print_pyramid(4) should print * ** *** **** *** ** * The printLine()...
JavaScript
0
@@ -666,52 +666,64 @@ %7B%0A -// You have to fill in the details here! =%5D +for (var i = 0; i %3C height; i++) %7B%0A printLine(i);%0A %7D %0A%7D%0A%0A
3a60bb733fb7d3d52ec5202fa1537debe6917e81
use messaging api to access github in the sample application
test-app/app.js
test-app/app.js
// es6 application code import Human from './human.js' import Github from './../client/github/github-client.js' import lively4 from './../src/lively4-client.js' import messaging from './../src/client/messaging.js' let foo = new Human("Foo", "Bar"); messaging.postMessage({ meta: { type: 'foo' }, m...
JavaScript
0
@@ -457,31 +457,443 @@ );%0A%0A -Github.getRepo((result) +messaging.postMessage(%7B%0A meta: %7B%0A type: 'github api'%0A %7D,%0A message: %7B%0A // TODO: use .config file for such parametrization%0A credentials: %7B%0A token: 'f468386a26986cbe44a80584fd478da86be3d546',%0A ...
141afbea3dda3e80b36fa3f3ef8d24d0091cde9f
update decimal max precision in storybook FE-2440
src/__experimental__/components/decimal/decimal.stories.js
src/__experimental__/components/decimal/decimal.stories.js
import React from 'react'; import { storiesOf } from '@storybook/react'; import { number, select, boolean } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import { State, Store } from '@sambego/storybook-state'; import { dlsThemeSelector, classicThemeSelector } from '../../../../.st...
JavaScript
0.000007
@@ -1203,41 +1203,10 @@ ax: -Decimal.defaultProps.maxPrecision +15 ,%0A
4034d69aba4ee8802b5906542c76713747e8cc96
Add comments about bundle.process
lib/init/assets/mincer/bundle.js
lib/init/assets/mincer/bundle.js
"use strict"; /*global nodeca, _*/ // stdlib var fs = require('fs'); var path = require('path'); // 3rd-party var async = require('nlib').Vendor.Async; var fstools = require('nlib').Vendor.FsTools; // internal var collectNamespaces = require('../namespaces').collect; //////////////////////////////////////...
JavaScript
0
@@ -4107,24 +4107,553 @@ rectory.%0A//%0A +// Each bundled file will contain (in order):%0A//%0A// * Localized views =%3E %60views/%7Blocale%7D/%7Btheme%7D/%7Bnamespace%7D.js%60%0A// * Compiled translations =%3E %60%7Bnamespace%7D/i18n/%7Blocale%7D.js%60%0A// * Browserified API trees =%3E %60%7Bnamespace...
043970752efb1dee1ee11626e9b8b317d1582f15
Update constants.js
src/constants.js
src/constants.js
var pythonMirror = process.env['npm_config_python_mirror'] || process.env.PYTHON_MIRROR || 'https://www.python.org/ftp/python/' var buildTools = { installerName: 'BuildTools_Full.exe', installerUrl: 'https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', ...
JavaScript
0.000001
@@ -685,17 +685,17 @@ '/2.7.1 -3 +4 /python-
e7855c855125f17309d7f52a74e808f193c9f13a
Remove `grammar.should` nonsense
test/_shared.js
test/_shared.js
var fs = require('fs'); var nearley = require('../lib/nearley.js'); var Compile = require('../lib/compile.js'); var parserGrammar = require('../lib/nearley-language-bootstrapped.js'); var generate = require('../lib/generate.js'); function parse(grammar, input) { if (grammar.should) { grammar.should.have....
JavaScript
0.999996
@@ -263,106 +263,8 @@ ) %7B%0A - if (grammar.should) %7B%0A grammar.should.have.keys(%5B'ParserRules', 'ParserStart'%5D);%0A %7D%0A
b64550a3f5d8240133402604b99396e2623ca1a5
Update Pointwise_SameWhenPassThrough_PrefixSqueezeExcitation.js
CNN/Conv/Pointwise/Pointwise_SameWhenPassThrough_PrefixSqueezeExcitation.js
CNN/Conv/Pointwise/Pointwise_SameWhenPassThrough_PrefixSqueezeExcitation.js
export { SameWhenPassThrough_PrefixSqueezeExcitation }; import * as BoundsArraySet from "../BoundsArraySet.js"; import * as SqueezeExcitation from "../SqueezeExcitation.js"; import { SameWhenPassThrough } from "./Pointwise_SameWhenPassThrough.js"; //!!! ...unfinished... (2022/05/14) // Q: Perhaps, let pointwise1 bec...
JavaScript
0
@@ -2128,16 +2128,44 @@ will be +squeeze-and-excitation with only one @@ -2186,16 +2186,27 @@ volution +%0A * (i.e. e @@ -2214,27 +2214,16 @@ citation -%0A * pointwi @@ -2315,16 +2315,44 @@ will be +squeeze-and-excitation with two poin @@ -2369,16 +2369,27 @@ olutions +%0A * (i....
057aaa1a64e9f90a56e04531ae793e777e421405
Update test app.
test/app/app.js
test/app/app.js
var _ = require('underscore'); var debug = require('debug')('test-app'); var express = require('express'); var FormidableGrid = require('../../lib/formidable-grid'); var gm = require('gm'); var logger = require('morgan'); var mongo = require('mongodb'); var GridFs = require('gridfs'); var util = require('util'); var p...
JavaScript
0
@@ -511,16 +511,259 @@ ctID();%0A + gfs.existsAsync(file)%0A .then(function(exist) %7B%0A if (! exist) %7B%0A reject(new Error(util.format('Cannot create thumbnail because file %22%25s%22 does exist.')));%0A %7D else %7B%0A @@ -80...
3ec1fb756ed0ca395e800136e678f1e0c454800d
throw async errors in function-tree (#440)
packages/cerebral/src/Controller.js
packages/cerebral/src/Controller.js
import DependencyStore from './DependencyStore' import FunctionTree from 'function-tree' import Module from './Module' import Model from './Model' import {ensurePath, isDeveloping, throwError, isSerializable, verifyStrictRender} from './utils' import VerifyInputProvider from './providers/VerifyInput' import StateProvid...
JavaScript
0
@@ -5344,16 +5344,83 @@ oad %7C%7C %7B +%7D, (error) =%3E %7B%0A if (error) %7B%0A throw error%0A %7D%0A %7D)%0A %7D%0A
84e0073b38d37e89cc843b0089e5491e7a268f38
Address some vet issues in the Wizard
src/client/app/components/wizard/wizard-service.factory.js
src/client/app/components/wizard/wizard-service.factory.js
(function() { 'use strict'; angular.module('app.components') .factory('WizardService', WizardServiceFactory); /** @ngInject */ function WizardServiceFactory($modal, WizardQuestion) { var service = { showModal: showModal }; return service; function showModal() { var modalOptio...
JavaScript
0
@@ -1328,34 +1328,8 @@ ) %7B%0A - if (0 %3C= index) %7B%0A @@ -1372,16 +1372,33 @@ inter%5D = + 0 %3E index ? -1 : vm.ques @@ -1428,86 +1428,8 @@ ex%5D; -%0A %7D else %7B%0A vm.answeredQuestions%5Bvm.questionPointer%5D = -1;%0A %7D %0A%0A @@ -1707,16 +1707,17 @@ filter;%0A +%0A ...
0c9aa0c670a91d6b5d1f5c6b892161cf8fb2ce70
添加view_parse返回结果判断
src/core/view.js
src/core/view.js
'use strict'; import path from 'path'; /** * view class * @return {} [] */ export default class extends think.http.base { /** * init method * @param {Object} http [] * @return {} [] */ init(http){ super.init(http); this.tVar = {}; } /** * assign * @param {String} name [] ...
JavaScript
0
@@ -3312,55 +3312,35 @@ s);%0A - +%0A -let con -tent = await this.hook('view_p +st data4ViewP arse -', + = %7B%0A @@ -3409,26 +3409,155 @@ config%0A %7D -) ; +%0A let content = await this.hook('view_parse', data4ViewParse);%0A if (data4ViewParse === content) %7B%0A content = '';%0A %7D%0...
d81a2d1ac15443d617cd462d8c3f8bb7a7b7e8c9
Update tests.
lib/serialize-log-result.spec.js
lib/serialize-log-result.spec.js
var serializeLogResult = require('./serialize-log-result').serializeLogResult, _countObjectProperties = require('./serialize-log-result')._countObjectProperties; describe('Serialization of non-string primitives', function(){ it('Just calls toString on numbers and booleans', function(){ expect(serialize...
JavaScript
0
@@ -614,16 +614,214 @@ %7D);%0A + it('Should handle arrays decently', function()%7B%0A expect(serializeLogResult(%5B1,2,3%5D)).toBe('%5B1, 2, 3%5D');%0A expect(serializeLogResult(%5B'1','2','3'%5D)).toBe('%5B%221%22, %222%22, %223%22%5D');%0A %7D);%0A it('
c28393a0410c67a887e81155e21e189068bf5492
Add PreviewGraph prop types.
assets/js/modules/search-console/components/dashboard/SearchFunnelWidget/PreviewGraph.js
assets/js/modules/search-console/components/dashboard/SearchFunnelWidget/PreviewGraph.js
/** * PreviewGraph component. * * Site Kit by Google, Copyright 2022 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
@@ -640,16 +640,86 @@ e.%0A */%0A%0A +/**%0A * External dependencies%0A */%0Aimport PropTypes from 'prop-types';%0A%0A /**%0A * I @@ -1234,8 +1234,121 @@ %3E%0A%09);%0A%7D%0A +%0APreviewGraph.propTypes = %7B%0A%09title: PropTypes.string.isRequired,%0A%09GraphSVG: PropTypes.elementType.isRequired,%0A%7D;%0A
74334444711ed60d0b9a2dbcd61a5f697d10f957
Use the static class references rather than dynamic ones
source/classes/Westley.js
source/classes/Westley.js
(function(module) { "use strict"; var Inigo = require("__buttercup/classes/InigoGenerator.js"), commandTools = require("__buttercup/tools/command.js"), searching = require("__buttercup/tools/searching.js"), entry = require("__buttercup/tools/entry.js"); var VALID_COMMAND_EXP = /^[a-z]{3}[ ].+$/; var co...
JavaScript
0
@@ -2918,58 +2918,23 @@ ew ( -require(%22__buttercup/classes/commands/command.%22 + +commandClasses%5B comm @@ -2943,17 +2943,9 @@ dKey - + %22.js%22) +%5D )();
f21fa3b6f80f8088c9ea9211e6a79a21f44753ac
Correct the order to make sense after the optimization/caching fix.
source/moon-resolution.js
source/moon-resolution.js
(function(enyo, scope) { /** * Instantiates and loads [iLib]{@link ilib} and its resources. * * @private */ scope.moon = scope.moon || {}; var baseScreenType = 'fhd', riRatio, screenType, screenTypeObject; /** * A hash-store of all of our detectable screen types in incrementing sizes. * * @public */...
JavaScript
0.999949
@@ -2464,62 +2464,56 @@ %7B%0A%09%09 -this.updateScreenTypeOnBody();%0A%09%09screenType = this.get +screenType = this.getScreenType();%0A%09%09this.update Scre @@ -2514,24 +2514,30 @@ teScreenType +OnBody ();%0A%09%09enyo.d
183594feb0e922bcd882d407ad9dca558480b5f1
Add `buffer as options.body` test
test/headers.js
test/headers.js
import fs from 'fs'; import util from 'util'; import path from 'path'; import test from 'ava'; import FormData from 'form-data'; import got from '../source'; import pkg from '../package'; import {createServer} from './helpers/server'; let s; test.before('setup', async () => { s = await createServer(); s.on('/', (r...
JavaScript
0.00001
@@ -3250,24 +3250,280 @@ size);%0A%7D);%0A%0A +test('buffer as options.body sets content-length', async t =%3E %7B%0A%09const buffer = Buffer.from('unicorn');%0A%09const %7Bbody%7D = await got(s.url, %7B%0A%09%09body: buffer%0A%09%7D);%0A%09const headers = JSON.parse(body);%0A%09t.is(Number(headers%5B'content-length'%...
61305c06e6d5b67ad2aa04f919bb8bee804e61c5
Include proper file for DataServer dependency
src/dashboard.js
src/dashboard.js
(function($) { "use strict"; if (Echo.AppServer.Dashboard.isDefined("Echo.Apps.RecentParticipants.Dashboard")) return; var dashboard = Echo.AppServer.Dashboard.manifest("Echo.Apps.RecentParticipants.Dashboard"); dashboard.inherits = Echo.Utils.getComponent("Echo.AppServer.Dashboards.AppSettings"); dashboard.mapping...
JavaScript
0
@@ -600,12 +600,18 @@ er%7D/ -full +dashboards .pac
60d62efefb50d973f81de1dcb247d0bb205add5f
Fix another typo
src/directive.js
src/directive.js
/* global angular */ (function() { 'use strict'; function Radio($rootScope) { var Radio = { CheckedEvent: 'radio.checked', setCheckedView: function($element) { $element.attr('checked', 'checked'); $element.find('.radio-toggle').addClass('checked'); }, setUncheckedView...
JavaScript
1
@@ -2458,15 +2458,24 @@ dio. -u +setU ncheck +edView ($el
6c8d530abaa6d1c66132e1cf30d71ef7bd109ce2
Remove alerts by logs
src/directive.js
src/directive.js
angular.module('angular-cordova-file') .directive('cordovaFile', function ($injector, $q, $timeout, $parse, CordovaFile) { var sourcesMapping = typeof Camera != "undefined" ? { camera: Camera.PictureSourceType.CAMERA, photoLibrary: Camera.PictureSourceType.PHOTOLIBRARY } : {}...
JavaScript
0
@@ -4677,37 +4677,117 @@ -alert +console.log('Unable to request picture');%0A console.log (reason);%0A @@ -5809,13 +5809,19 @@ -alert +console.log (rea
5d4e76d2dbc0627557f1503f07447193be012048
Create a better fluent example in the tests
test/replace.js
test/replace.js
var replace = require( "../src/str-replace" ); module.exports = { replace_all: function( assert ) { var actual = replace .all( "/" ) .from( "/home/dir" ) .to( "\\" ); var expected = "\\home\\dir"; assert.strictEqual( actual, expected ); assert.done(); }, replace_all_ignoring_cas...
JavaScript
0.999779
@@ -379,9 +379,13 @@ l( %22 -G +house %22 )%0A @@ -424,11 +424,18 @@ m( %22 -Egg +Many House s%22 ) @@ -447,17 +447,21 @@ .to( %22 -f +Horse %22 );%0A @@ -481,11 +481,18 @@ = %22 -Eff +Many Horse s%22;%0A
56f42abb6de41f26da204e312ea6d36f4ec74d66
Fix date
Project/sun.js
Project/sun.js
var APIEndPoint = "http://api.sunrise-sunset.org/json?" var date; $(document).ready(function() { // Put your code in here! updateTime(); getLocation(); }); function updateTime() { date = new Date(); time = date.getTime(); time = Math.round(time / 1000); var dayArray = ['Monday', 'Tuesday', 'Wednesday', 'Th...
JavaScript
0.999998
@@ -1934,20 +1934,22 @@ e = new -Date +moment (utcDate @@ -1959,21 +1959,16 @@ ing).add -Hours (offsetH @@ -1971,16 +1971,25 @@ setHours +, 'hours' );%0A%0A @@ -1999,157 +1999,38 @@ urn -moment.unix(localDate.toString()).format(%22HH:MM:SS A%22);%0A%7D%0A%0ADate.prototype.addHours= function(h)%7B%0A thi...
a6fff98360e324be3f1262423a36099982c3e583
Change ProjectView from a tabstack to an HBox.
ProjectView.js
ProjectView.js
"use strict"; var ProjectView = JakeKit.w2tabstack.extend({ initialize: function() { JakeKit.w2tabstack.prototype.initialize.call(this); this.views = {}; this.schemas = {}; this.history = []; this.history_position = 0; _.bindAll(this, "openTab", "schemaNameChanged"); this.listenTo(this, "viewSelected"...
JavaScript
0
@@ -34,26 +34,20 @@ JakeKit. -w2tabstack +HBox .extend( @@ -126,24 +126,100 @@ call(this);%0A +%09%09this.tabstack = new JakeKit.w2tabstack();%0A%09%09this.addChild(this.tabstack);%0A %09%09this.views @@ -367,16 +367,25 @@ nTo(this +.tabstack , %22viewS @@ -1773,32 +1773,41 @@ ew_view;%0A%09%09this. +tabstack. ...
816848974e3675626dab63c62dbe730a16abfd8c
Desactiva botón asíncronamente
webapp/static/js/main.js
webapp/static/js/main.js
var data = { username: '', password: '' } /* eslint-disable no-new */ /* eslint-disable no-undef */ new Vue({ el: '#app', data: data, methods: { setLoading: function (message) { var el = message.target el.disabled = true el.setAttribute('value', el.getAttribute('data-loading-text')) ...
JavaScript
0.000001
@@ -216,16 +216,49 @@ .target%0A + setTimeout(function () %7B%0A el @@ -274,16 +274,28 @@ = true%0A + %7D, 0)%0A el
b5de2d8498d4268f7c26e170059527499744b49e
remove unnecessary require
webpack/common.config.js
webpack/common.config.js
const path = require('path'); // webpack plugins const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin'); module.exports = { entry: { 'app': [ './src/bootstrap.js' ], 'vendor': './src/vendor.js' }, resolve: { extensions: ['.js', '.scss'], modules: ['node_modul...
JavaScript
0.000002
@@ -1,35 +1,4 @@ -const path = require('path');%0A%0A // w
39081f8ab76c57c47a84c2fc80bfe4f1df8734e1
Exclude admin directory for plugin dictionary
packages/strapi/lib/configuration/hooks/dictionary/_config/index.js
packages/strapi/lib/configuration/hooks/dictionary/_config/index.js
'use strict'; /** * Module dependencies */ // Node.js core. const path = require('path'); // Public node modules. const _ = require('lodash'); const async = require('async'); // Strapi utilities. const dictionary = require('strapi-utils').dictionary; /** * Async module loader to create a * dictionary of the us...
JavaScript
0
@@ -5185,32 +5185,38 @@ deDirs: /(public +%7Cadmin )$/,%0A
70632615f35edb9a778bbd4dd8ac4c7ab5de2454
return findNodeHandle to public api
Libraries/react-native/react-native-implementation.js
Libraries/react-native/react-native-implementation.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
JavaScript
0.000378
@@ -3806,24 +3806,98 @@ asing'); %7D,%0A + get findNodeHandle() %7B return require('ReactNative').findNodeHandle; %7D,%0A get I18nMa
fe043f952ee5147a000ea14a838d1beb30c80b0b
include total size of files in deployment
api/deployments/controllers/deployments.js
api/deployments/controllers/deployments.js
'use strict'; var fs = require('fs'); var path = require('path'); var Q = require('q'); var Url = require('../../../util/url'); var File = require('../../../util/file'); var settings = require('../../../settings'); var deploymentParentDir = 'deployments' ; var deploymentParentDirPath = settings.dataDir + '/' + deploym...
JavaScript
0.000001
@@ -868,16 +868,38 @@ irName,%0A + totalSize: 0,%0A @@ -1666,16 +1666,17 @@ %5Bindex%5D) +; %0A%0A @@ -1817,24 +1817,81 @@ xt) %3E -1) %7B%0A + deploymentObj.totalSize += stat.size; %0A @@ -5189,25 +5189,24 @@ eployment)%7B%0A -%0A
a90aac75f80e6556d2ebb2913c7c8be15919d195
use const
api/services/user/recoverquantities/get.js
api/services/user/recoverquantities/get.js
'use strict'; exports = module.exports = function(services, app) { var gt = require('./../../../../modules/gettext'); var service = new services.get(app); /** * Call the recover quantity get service * * @param {Object} params * @return {Promise} */ service.getResultPromise ...
JavaScript
0.000007
@@ -67,19 +67,21 @@ %7B%0A%0A -var +const gt = re
2048f556a11a78195d638928ee5eb73321169813
Update preview on index page selection
src/main/web/florence/js/functions/_visualisationEditor.js
src/main/web/florence/js/functions/_visualisationEditor.js
/** * Editor screen for uploading visualisations * @param collectionId * @param data */ function visualisationEditor(collectionId, data, collectionData) { var path = Florence.globalVars.pagePath, setActiveTab, getActiveTab; // Active tab $(".edit-accordion").on('accordionactivate', function() ...
JavaScript
0
@@ -194,24 +194,64 @@ s.pagePath,%0A + $indexSelect = $('#filenames'),%0A setA @@ -274,16 +274,16 @@ iveTab;%0A - %0A // @@ -643,24 +643,182 @@ osition();%0A%0A + // Refresh preview with new URL if index page previously selected%0A if ($indexSelect.val()) %7B%0A refreshPreview(path ...
4c59edde4b9317db3cbc2987b83f6f8eb9b04eac
Reset the select2 entry field once a user has been added.
src/main/webapp/resources/js/pages/users/groups-members.js
src/main/webapp/resources/js/pages/users/groups-members.js
var groupMembersTable = (function(page, notifications) { function userNameLinkRow(data, type, full) { return "<a class='item-link' title='" + data + "' href='" + page.urls.usersLink + full.subject.identifier + "'><span>" + data + "</span></a>"; }; function renderGroupRole(data, type, full) { return pag...
JavaScript
0
@@ -2520,16 +2520,64 @@ %09%09%09%09%7D);%0A +%09%09%09%09$(%22#add-user-username%22).select2(%22val%22, %22%22);%0A %09%09%09%7D,%0A%09%09
2708a31f0f3215719cf4856819921db4c9068c5a
Fix space/tab thing.
lib/EditablePermissions/EditablePermissions.js
lib/EditablePermissions/EditablePermissions.js
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import { FieldArray } from 'redux-form'; import { Dropdown } from '@folio/stripes-components/lib/Dropdown'; import DropdownMenu from '@folio/stripes-components/lib/DropdownMenu'; import Button from '@folio/stripes-components/lib/But...
JavaScript
0
@@ -3680,9 +3680,16 @@ on%22%0A -%09 +
2b4ec02c2ad646007827b5a41386ce85ba8093e3
Correct path to exception token
src/dslEngine.js
src/dslEngine.js
var mongoose = require("mongoose"); var DslConcreteStrategy = require("./model/DslConcreteStrategy"); var MaapError = require("./utils/MaapError"); var Token = require("./token"); var TransmissionNode = require("./transmissionNode"); var LoadModelsProtocol = require("./protocol/loadModelsProtocol") var NoConnectionEsta...
JavaScript
0.000002
@@ -443,24 +443,112 @@ xception%22);%0A +var TokenAlreadyInsertException = require(%0A %22./utils/tokenAlreadyInsertException%22%0A);%0A var CellEngi
10f9d01dd46b6e99fbf4a75b5781fc7dff4b65d3
use proper index type
app/addons/documents/mango/mango.helper.js
app/addons/documents/mango/mango.helper.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 un...
JavaScript
0
@@ -777,13 +777,27 @@ ush( -'json +doc.get('type') + ' : '
d7cf0bb4d6c70dc3ba5797b051b7e8cf6b9f7cbd
Use the new noconflict build to show an example of how to embed rollbar.js into a library which will not cause any conflicts with another install of Rollbar @rokob
examples/no-conflict/tool.js
examples/no-conflict/tool.js
import Rollbar from 'rollbar'; const rollbar = new Rollbar({ accessToken: 'POST_CLIENT_ITEM_TOKEN', captureUncaught: false, captureUnhandledRejections: false }) module.exports = function tool(x) { rollbar.log('foobar got data', {x}) }
JavaScript
0
@@ -1,33 +1,125 @@ -import Rollbar from 'rollbar' +// Use noconflict so we can embed rollbar.js in this library%0Avar Rollbar = require('rollbar/dist/rollbar.noconflict.umd') ;%0A%0Ac @@ -207,20 +207,19 @@ caught: -fals +tru e,%0A cap @@ -247,12 +247,11 @@ ns: -fals +tru e%0A%7D)
51a631a717e2953e6e97d1d7402e896bedfad6e4
优化 Uncaught TypeError: vc.component._getOrgsByOrgLevelStaff is not a function
WebService/src/main/resources/components/staffPackage/staff-manage/staff.js
WebService/src/main/resources/components/staffPackage/staff-manage/staff.js
(function(vc){ var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; vc.extends({ data:{ staffInfo:{ moreCondition:false, branchOrgs:[], departmentOrgs:[], conditions:{ branchOrgId:'', ...
JavaScript
0.00005
@@ -4204,33 +4204,23 @@ %7D -%0A%0A %7D,%0A +,%0A @@ -4295,16 +4295,20 @@ rgId)%7B%0A%0A + @@ -4345,24 +4345,28 @@ + params:%7B%0A @@ -4358,24 +4358,28 @@ params:%7B%0A + @@ -4427,16 +4427,20 @@ + row: _ro @@ -44...
4ae3a6efa802836b6560401d9178b3ce6445b585
Update req_with_payload.js
examples/req_with_payload.js
examples/req_with_payload.js
const coap = require('../') // or coap coap.createServer(function(req, res) { res.end('Hello ' + req.url.split('/')[1] + '\n. Message payload:\n'+req.payload+'\n') }).listen(function() { var req = coap.request('coap://localhost/Matteo') var payload = { title: 'this is a test payload', body: 'c...
JavaScript
0.000002
@@ -131,10 +131,8 @@ '%5Cn -. Mess
7ad53d461e44f047d2bd2ee7860fa08d3e83686e
update file/copy.js
src/file/copy.js
src/file/copy.js
var path = require('path') var readFile = require('./readFile') var writeFile = require('./writeFile') // make async version function copy (files, dest) { files = Array.isArray(files) ? files : [files] files.forEach(function (file) { var destFile = path.resolve(dest, file) var content = readFile(fi...
JavaScript
0
@@ -25,16 +25,50 @@ 'path')%0A +var assert = require('assert')%0A var read @@ -140,30 +140,528 @@ e')%0A -%0A// make async version +var eachAsync = require('../async/iterate').each%0A%0A// THIS NEEDS WORK, but not today.%0Afunction copy (files, dest, cb) %7B%0A files = Array.isArray(files) ? files : %5Bfiles%5D%...
4abade0c78196d5a396b22518ea1ae8957713c49
Fix error when removing an expense (#789)
app/services/data/remove-claim-document.js
app/services/data/remove-claim-document.js
const { getDatabaseConnector } = require('../../databaseConnector') const { AWSHelper } = require('../aws-helper') const aws = new AWSHelper() module.exports = function (claimDocumentId) { const db = getDatabaseConnector() return db('ClaimDocument') .returning('Filepath') .where('ClaimDocumentId', claimDo...
JavaScript
0.000001
@@ -418,32 +418,33 @@ if (filepath%5B0%5D +? .Filepath) %7B%0A
c9e144ed0719a74a1a335b2ef457233c45b803c6
Refactor service resource definition schema to use JSON Schema primitive data type descriptor functions
lib/metering/schemas/src/service-definition.js
lib/metering/schemas/src/service-definition.js
'use strict'; module.exports = () => ({ 'title': 'Service Resource Definition', 'description': 'Defines the resources, units, metering, aggregation and rating formulas used to meter a particular service', 'type': 'object', 'required': ['id', 'resources', 'aggregations'], 'properties': { 'id...
JavaScript
0
@@ -12,2743 +12,1247 @@ ';%0A%0A -module.exports = () =%3E (%7B%0A 'title': 'Service Resource Definition',%0A 'description': 'Defines the resources, units, metering, aggregation and rating formulas used to meter a particular service',%0A 'type': 'object',%0A 'required': %5B'id', 'resources', 'aggregations'...
30da544aae47b164ac948174fb33dafee54c7ca9
Use createInterpolateElement to create link.
assets/js/modules/pagespeed-insights/components/common/ReportDetailsLink.js
assets/js/modules/pagespeed-insights/components/common/ReportDetailsLink.js
/** * Report Details Link component. * * Site Kit by Google, Copyright 2020 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...
JavaScript
0
@@ -731,16 +731,79 @@ s/i18n'; +%0Aimport %7B createInterpolateElement %7D from '@wordpress/element'; %0A%0A/**%0A * @@ -1029,24 +1029,12 @@ ort -%7B sanitizeHTML %7D +Link fro @@ -1052,12 +1052,23 @@ /../ -util +components/Link ';%0Ac @@ -1371,31 +1371,63 @@ ;%0A%0A%09 -const footerLinkHTML = +return (%0A%09...
c3447793694816fd9d1863c94d01fc94a5658615
use new api
data/findTables.js
data/findTables.js
(function() { //var ocServer = "opencompare.org"; var ocServer = "localhost:9000"; var tables; self.port.on("addButtons", function () { tables = document.getElementsByTagName("table"); for(var index = 0; index < tables.length; index++) { var table = tables[index]; ...
JavaScript
0
@@ -3055,26 +3055,46 @@ ver + %22/ -embed/html +api/import/html?format='embed' %22;%0A%0A @@ -3921,18 +3921,37 @@ + %22/ -embed/html +api/import/html?format='page' %22;%0A
7a6fef5ced0a0f64f54d310008dfe2eef749f09c
add media display name
assets/src/edit-story/components/library/panes/media/media3p/media3pPane.js
assets/src/edit-story/components/library/panes/media/media3p/media3pPane.js
/* * Copyright 2020 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 * * Unless required by applicable law or agreed to ...
JavaScript
0.000003
@@ -1517,16 +1517,170 @@ px;%0A%60;%0A%0A +const MediaDisplayName = styled.div%60%0A margin-top: 24px;%0A padding: 0 24px;%0A visibility: $%7B(props) =%3E (props.shouldDisplay ? 'visible' : 'hidden')%7D;%0A%60;%0A%0A /**%0A * P @@ -3306,16 +3306,474 @@ , %5B%5D);%0A%0A + const displayName = categories.selectedCa...
d73947eb497fa2707cbb25578bd3494baa3ba634
Update xls.js
test/inventory/finishing-printing/shipment-document/xls.js
test/inventory/finishing-printing/shipment-document/xls.js
require("should"); var DataUtil = require('../../../data-util/inventory/finishing-printing/fp-shipment-document-data-util'); var helper = require("../../../helper"); var validate = require("dl-models").validator.inventory.finishingPrinting.fpShipmentDocument; var moment = require('moment'); var Manager = require("../....
JavaScript
0.000001
@@ -796,20 +796,16 @@ l.getNew -Test Data()%0A
f9f80cb69b67be78de12e190756f84ab0de4e133
make sure a base object exists on the scope even if the parent scope isn't base
client/scripts/features/food-recall-search/food-recall-search-controller.js
client/scripts/features/food-recall-search/food-recall-search-controller.js
define([ 'angular', 'app', 'components/services/open-fda-service', 'components/services/food-data-service' ], function(angular, app) { app.controller('FoodRecallSearchController', function($scope, $mdDialog, $stateParams, OpenFDAService, FoodDataService) { $scope.recallData = FoodDataService.getFoodSea...
JavaScript
0.000001
@@ -862,16 +862,57 @@ nated'%5D; +%0A $scope.base = $scope.base %7C%7C %7B%7D; %0A%0A%09%09%09%09$s
84e66aa7011d7b3ebcc8e4d204f9115a2151bafd
Change templates action to follow our naming convention
backend/servers/mcapid/actions/templates-actions.js
backend/servers/mcapid/actions/templates-actions.js
const {Action, api} = require('actionhero'); const templates = require('../lib/dal/templates'); module.exports.allTemplatesPublic = class TopViewedPublishedDatasetsAction extends Action { constructor() { super(); this.name = 'allTemplatesPublic'; this.description = 'Returns all public temp...
JavaScript
0
@@ -10,13 +10,8 @@ tion -, api %7D = @@ -85,17 +85,16 @@ tes');%0A%0A -%0A module.e @@ -100,19 +100,28 @@ exports. -all +GetAllPublic Template @@ -121,22 +121,22 @@ emplates -Public +Action = class @@ -140,33 +140,28 @@ ass -TopViewedPublishedDataset +GetAllPublicTemplate sAct @@ -239,19 +239,28 @@ name =...
148073bcabd51f4473d78a83ffc606565c32ff15
Add packageType to the list of flags android builds understand and can parse
lib/targets/cordova/utils/parse-build-flags.js
lib/targets/cordova/utils/parse-build-flags.js
const _pick = require('lodash').pick; const CORDOVA_OPTS = [ 'release', 'debug', 'emulator', 'device', 'buildConfig' ]; const IOS_OPTS = [ 'codeSignIdentity', 'provisioningProfile', 'codesignResourceRules', 'developmentTeam', 'packageType' ]; const ANDROID_OPTS = [ 'keystore', 'stor...
JavaScript
0
@@ -573,16 +573,33 @@ Version' +,%0A 'packageType' %0A%5D;%0A%0Amod
a6e4c02b46b7881ec76f2a32d45a1c9348749702
add function for creating the mapping link in teh mappign page
ui/js/doc-review/DocMapping.js
ui/js/doc-review/DocMapping.js
var React = require('react/addons'); var _ = require('lodash'); var API = require('../data/api'); var { Datascope, LocalDatascope, SimpleDataTable, SimpleDataTableColumn, Paginator, SearchBar, FilterPanel, FilterDateRange } = require('react-datascope'); var ReviewPage = require('./ReviewPage'); const fields = ...
JavaScript
0
@@ -298,16 +298,155 @@ age');%0A%0A +var MapButtonFunction = function(data)%7B%0A%09console.log(data)%0A%09return %3Ca href=%7B%60/datapoints/campaigns/update/$%7Bdata%7D%60%7D%3E THIS IS JOHN %3C/a%3E;%0A%7D%0A%0A const fi @@ -477,20 +477,34 @@ title: ' -Edit +Master Object Name ',%0A%09%09key @@ -540,83 +540,41 @...
a7d60e4590d3f8e5b8d220437dec9402c98df166
update jsdoc.js (#278)
packages/google-cloud-iot/.jsdoc.js
packages/google-cloud-iot/.jsdoc.js
// Copyright 2019 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 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -1040,9 +1040,9 @@ 201 -8 +9 Goo @@ -1156,16 +1156,71 @@ 'lumen' +,%0A default: %7B%0A %22outputSourceFiles%22: false%0A %7D %0A %7D,%0A
935692cb41a1b2014e6d1b6c7837188cb9803589
update .jsdoc.js by add protos and remove double quotes (#279)
packages/google-cloud-iot/.jsdoc.js
packages/google-cloud-iot/.jsdoc.js
// Copyright 2019 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 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -950,16 +950,32 @@ ild/src' +,%0A 'protos' %0A %5D,%0A @@ -1195,17 +1195,16 @@ %7B%0A -%22 outputSo @@ -1212,17 +1212,16 @@ rceFiles -%22 : false%0A
1397793a4d38c52ae790d0df6f22fe15a054437b
fix difficulty
test/common/genesishashes.js
test/common/genesishashes.js
var genesisData = require('../../../tests/genesishashestest.json'), assert = require('assert'), Blockchain = require('../../lib/blockchain.js'), levelup = require('levelup'), // async = require('async'), utils = require('../../lib/utils'), rlp = require('rlp'), SHA3 = require('sha3'); var blockDB = level...
JavaScript
0.000012
@@ -1420,31 +1420,40 @@ y = -'020000', // todo: fix +utils.intToHex(Math.pow(2, 17)), %0A
7bf056f3e7fb794aa3704db92cb031cd9ba32ede
initialize test object with the appropriate apikey
test/echonest_api_v4_test.js
test/echonest_api_v4_test.js
var vows = require('vows'), assert = require('assert'), EchoNestAPI = require('../index.js'); vows.describe('Basics!').addBatch({ 'we can create an EchoNestAPI object': { topic: function () { return new EchoNestAPI('apikey', { version:'4'}); }, 'it is not totally borked': function (topic) { assert...
JavaScript
0.000012
@@ -92,16 +92,63 @@ .js');%0A%0A +var theAPIKey = process.env.ECHONEST_API_KEY;%0A%0A vows.des @@ -270,16 +270,17 @@ API( -'apik +theAPIK ey -' , %7B
b443bb5ee8d46a3028422848c6cfeaba70aa13c6
Clarify comment
dev_mode/webpack.prod.config.js
dev_mode/webpack.prod.config.js
const merge = require('webpack-merge').default; const config = require('./webpack.config'); const LicenseWebpackPlugin = require('license-webpack-plugin') .LicenseWebpackPlugin; config[0] = merge(config[0], { mode: 'production', devtool: 'source-map', output: { // Add version argument when in production so...
JavaScript
0.000034
@@ -344,36 +344,106 @@ // -does not cache the files the +allows caching of files (i.e., does not set the CacheControl header to no-cache to prevent caching sta @@ -454,17 +454,10 @@ file - handler. +s) %0A
9264e8d6823127da131c16e4d76e46a8b59ec08c
Use userid when getting a users group (#130)
spacialgaze-plugins/SG.js
spacialgaze-plugins/SG.js
'use strict'; let fs = require('fs'); let http = require('http'); const Autolinker = require('autolinker'); let regdateCache = {}; SG.nameColor = function (name, bold, userGroup) { let userGroupSymbol = Users.usergroups[toId(name)] ? '<b><font color=#948A88>' + Users.usergroups[name].substr(0, 1) + '</font></b>' : ...
JavaScript
0
@@ -276,20 +276,26 @@ rgroups%5B +toId( name +) %5D.substr
6b484f481b8ba77aaa38869fb7ca93ac3940d53f
remove unnecessary toString
test/integration/multisig.js
test/integration/multisig.js
/* global describe, it */ var assert = require('assert') var bitcoin = require('../../') var blockchain = require('./_blockchain') describe('bitcoinjs-lib (multisig)', function () { it('can create a 2-of-3 multisig P2SH address', function () { var pubKeys = [ '026477115981fe981a6918a6297d9803c4dc04f328f22...
JavaScript
0.000023
@@ -779,27 +779,16 @@ tPubKey) -.toString() %0A%0A as @@ -1638,19 +1638,8 @@ net) -.toString() %0A%0A
1cde5704849e3353e3719294947c157cce5df39b
Update format.spec.js
test/pipeline/format.spec.js
test/pipeline/format.spec.js
import { expect } from 'chai' import { formatEvent, buildEvent } from '../../src/pipeline' describe('pipeline.formatEvent', () => { it('writes default values when no attributes passed', () => { const event = buildEvent() const formattedEvent = formatEvent(event) expect(formattedEvent).to.contain('BEG...
JavaScript
0.000003
@@ -4050,21 +4050,21 @@ 'ACTION: -audio +AUDIO ')%0A e
b560cc4a06d60dab74611af47455751395e9723f
Remove extraneous curly braces
test/precommit-entry-test.js
test/precommit-entry-test.js
import * as pce from '../src/precommit-entry'; import sinon from 'sinon'; import sPromise from 'sinon-as-promised'; import * as issueHandler from '../src/issue-handler'; import fsp from 'fs-promise'; import os from 'os'; let eol = os.EOL; describe('precommit-entry tests', () => { describe('Hook Message', () => { ...
JavaScript
0.000081
@@ -1146,28 +1146,16 @@ sults =%3E - %7B%0A results @@ -1181,19 +1181,8 @@ l(3) -;%0A %7D );%0A
0bfd3a94f70b81573a5a1bfcf9709bee5e5cfeb9
test if focus is triggered by original select on select
test/spec/multiSelectSpec.js
test/spec/multiSelectSpec.js
describe("multiSelect", function() { var select; var msContainer; beforeEach(function() { $('<select id="multi-select" multiple="multiple" name="test[]"></select>').appendTo('body'); for (var i=1; i <= 10; i++) { $('<option value="value'+i+'">text'+i+'</option>').appendTo($("#multi-select")); }...
JavaScript
0
@@ -3245,24 +3245,59 @@ 'change');%0A + spyOnEvent(select, 'focus');%0A clicke @@ -4001,24 +4001,150 @@ );%0A %7D);%0A%0A + it('should focus the original select', function()%7B%0A expect('focus').toHaveBeenTriggeredOn(%22#multi-select%22);%0A %7D);%0A%0A afterEac
07970f3875a3911be5d6d2ddc62179dbaa363bda
reinstate some semicolons
doc/_static/javascript/index.js
doc/_static/javascript/index.js
'use strict' window.addEventListener ('load', function () { const $links = $('ul > .toctree-l1') const $sublinks = $('.toctree-l2') const $allLinks = $('ul > .toctree-l1,.toctree-l2') const $sections = $('.section') const $menu = $('.wy-menu') const $searchArea = $('.wy-side-nav-search') co...
JavaScript
0.999991
@@ -5088,16 +5088,17 @@ et i = 0 +; i %3C bro @@ -5110,16 +5110,17 @@ f.length +; i++) %7B%0A
89f7265711ca2e5551bdaeeb2e7566fec9e1926e
use prev safari version while latest doesnt work on sauce (#5011)
karma-demo.conf.js
karma-demo.conf.js
// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html const customLaunchers = require('./scripts/sauce-browsers').customLaunchers; module.exports = function (config) { const configuration = { basePath: '', frameworks: ['jasmine', '@a...
JavaScript
0
@@ -3566,32 +3566,34 @@ version: 'latest +-1 '%0A %7D%0A
d8e1ee477f1600d51c4c9ee9d9b2c1d7074ff5eb
Update itemslide.js
src/itemslide.js
src/itemslide.js
(function ($) { var accel = 0; var overallslide = 0; var sensitivity = 20; var slides; var currentIndex = 0; //Waypoints check position relative to waypoint and decide if to scroll to or not... $.fn.initslide = function () { //var target = $(this).attr('id'); //alert(target)...
JavaScript
0.000001
@@ -1114,17 +1114,17 @@ left%22, %22 -+ +- =%22+ev.ve
7a8970f988527f88c2df47f8d1012bc301f3e5b7
copy paste fail
app-engine-proxy.js
app-engine-proxy.js
var https = require('https'); var http = require('http'); var util = require('util'); var path = require('path'); var fs = require('fs'); var url = require('url'); var httpProxy = require('http-proxy'); var respond = function(status, msg, res){ res.writeHead(status, {'content-type': 'text/plain'}); res.write(msg);...
JavaScript
0.000001
@@ -437,32 +437,29 @@ ert;%0A%7D%0A%0Avar -getHTTPS +https Options = fu @@ -460,93 +460,107 @@ s = -func +%7B%0A key: fs.readFileSync(getHTTPSOp tion +s () - %7B%0A return JSON.parse(fs.readFileSync('config.json', 'utf8')).keyCert; +.key),%0A cert: fs.readFileSync(getHTTPSOptions().cert) %0A%7D%0A -%0A var ...
70911dbb2a143051916e5736960dd05b456811ef
Fix relative path handling.
app-require-path.js
app-require-path.js
'use strict'; module.exports = appRequirePath; var fs = require('fs'), path = require('path'); function appRequirePath(dirname) { var rootPath = detectRoot(dirname || path.dirname(__dirname)); var iface = { /** * Resolves a path. Expands ~ to the project root, and {% ENV %} to the ...
JavaScript
0.000001
@@ -620,24 +620,147 @@ substr(1));%0A + %7D else if (modulePath%5B0%5D === '.') %7B%0A modulePath = path.join((dirname %7C%7C rootPath), modulePath);%0A
2238f533123a6fc07165139c6016178556c58fda
Add width to API
kendo.flippable.js
kendo.flippable.js
(function(f, define){ define([ "./kendo.core", "./kendo.fx" ], f); })(function(){ var __meta__ = { id: "flippable", name: "Flippable", category: "web", description: "The flippable widget displays a card that flips from front to back.", depends: [ "core", "fx" ] }; (function ($, undefined) { ...
JavaScript
0.000002
@@ -1161,16 +1161,38 @@ ght: 0,%0A + width: 0,%0A @@ -2444,16 +2444,68 @@ height,%0A + width: this.options.width %7C%7C %22auto%22%0A
e0bad532d86241f97d3f9e833b798ed80652380c
Automate confirmation clicking yes
test/unit/controllersSpec.js
test/unit/controllersSpec.js
'use strict'; /* jasmine specs for controllers go here */ describe('controllers', function(){ describe('ContactListCtrl', function() { var scope, ctrl, data; beforeEach(module('contactControllers', 'contactServices')); beforeEach(inject(function($controller, storageService) { ...
JavaScript
0.000448
@@ -1333,24 +1333,28 @@ var rp, data +, wY ;%0A%0A b @@ -1501,16 +1501,25 @@ teParams +, $window ) %7B%0A @@ -2330,16 +2330,229 @@ %7D;%0A + wY = %7B%0A confirm: function(msg) %7B%0A return true;%0A %7D,%0A location: %7B%0A ...
91470c366295c42872cd31d10f47b3b8496b5f71
FIX tests
test/unit/population.test.js
test/unit/population.test.js
import assert from 'assert'; import * as faker from 'faker'; import * as humansCollection from '../helper/humans-collection'; import * as RxDatabase from '../../dist/lib/rx-database'; import * as RxSchema from '../../dist/lib/rx-schema'; import * as RxDocument from '../../dist/lib/rx-document'; import * as util from ...
JavaScript
0.000001
@@ -5736,16 +5736,58 @@ y(5) -.fill(0) +%0A .fill(0)%0A .map @@ -5815,16 +5815,20 @@ + + return %7B @@ -5828,16 +5828,20 @@ eturn %7B%0A + @@ -5884,18 +5884,50 @@ stName() -,%0A + + util.randomCouchString(5),%0A @@ -5966,35 +5966,43 @...
c82f2d9ac8e6a1dfba7068ada5a112336e9ac532
fix typo in config file docs
src/js/config.js
src/js/config.js
/** * @description Game configuration object * @return {object} config Object containing the game settings */ var config = (function () { 'use strict'; var config = { bounds: { top: 121, right: 780, //808-28 bottom: 625, left: 0 }, ...
JavaScript
0.000006
@@ -26,17 +26,17 @@ -c +C onfigura
1e02cc44c7101f9a313bf7674b0723bdde17b91a
Update hamlet.js
src/js/hamlet.js
src/js/hamlet.js
var GAME_SETUP = {npc: {hamlet: {happy: .4, // starting value scale 0..1 clarity: .5, operations: { anytime: { dagger_emote: { happy: [0, .55], // if happiness between these clarity: [.4, 1.0], p: 1/60, // once per minute target: "claudius", // or all or player effect: {claudius: [.04, 0]...
JavaScript
0.000001
@@ -41,17 +41,17 @@ happy: . -4 +6 , // sta @@ -87,17 +87,17 @@ arity: . -5 +3 ,%0A op @@ -136,13 +136,11 @@ ger_ -emote +all : %7B%0A @@ -156,11 +156,12 @@ %5B0, -.55 +0.39 %5D, / @@ -205,15 +205,15 @@ y: %5B -.4, 1.0 +0, 0.39 %5D,%0A%09 @@ -252,24 +252,19 @@ arget: %22 -claudius +all %22, // or @@ -30...
7fde7e7afbb06f68b4d7076a3d063cae6bb96f46
Change google sign in menu item text
src/js/header.js
src/js/header.js
import { Link } from 'react-router'; import * as auth from './auth.js'; import logo from '../images/chalees-min-logo.png'; import logoHighDpi from '../images/chalees-min-logo@2x.png'; import mobileMenuIcon from '../images/icons/menu-icon.svg'; const Header = React.createClass({ showFacebookLoginPrompt: () => auth....
JavaScript
0.000003
@@ -2195,22 +2195,30 @@ In With +GMail ( Google +) %3C/span%3E%0A
c0d8bf8ffb242c29c4bb5a687cce655fea724609
enable pos sending after first ousedown on model
src/js/viewer.js
src/js/viewer.js
var processingMessage = false; var canSend = true; function initializeModelViewer() { showAllQuick(document.getElementById('viewer_object').runtime); document.getElementById('viewport').addEventListener('viewpointChanged', viewpointChanged); } function receiveViewpointMsg(extras){ //disable listeni...
JavaScript
0
@@ -24,16 +24,73 @@ false;%0A +//can I currently send an updated pose to other devices?%0A var canS @@ -105,19 +105,20 @@ = -tru +fals e;%0A%0Afunc @@ -309,16 +309,117 @@ anged);%0A + document.getElementById('viewer_object').addEventListener('mousedown', enableSendingOnFirstClick);%0A %7D%0A%0Afunct @@ -...
fa3b58e291bc4a5f403dd677729852a15d34bd7e
update img picker with file comment
plugins/img_picker/img_picker.js
plugins/img_picker/img_picker.js
(function(exports) { 'use strict'; var requires = [require('bs_slider-js')]; require('bs_slider-css'); var defaultStateFunc = function(state) { console.log(state); }, stateFunction = defaultStateFunc; /** * Capitalizes the first letter of a string * @param String string The str...
JavaScript
0
@@ -1,8 +1,277 @@ +/**%0A * Image Picker%0A * Copyright 2017 Tim Kennell Jr.%0A * Licensed under the MIT License (http://opensource.org/licenses/MIT)%0A **%0A * Allows selection of samples, cycles, and exposures%0A **%0A * Dependencies%0A * * Bootstrap Slider (http://seiyria.com/bootstrap-slider/)%0A */%0A %0A(functi...
01191c41e5a4bcc4e4011b0a8050661a948f457e
make the order match
tests/api.treatments.test.js
tests/api.treatments.test.js
'use strict'; var request = require('supertest'); var should = require('should'); describe('Treatment API', function ( ) { this.timeout(2000); var self = this; var api = require('../lib/api/'); beforeEach(function (done) { process.env.API_SECRET = 'this is my long pass phrase'; self.env = require('.....
JavaScript
0.000002
@@ -4581,131 +4581,8 @@ ype: - 'Meal Bolus', carbs: '30', insulin: '2.00', preBolus: '15', glucoseType: 'Finger', units: 'mg/dl'%7D%0A , %7BeventType: 'BG @@ -5082,32 +5082,155 @@ reated_at: now%7D%0A + , %7BeventType: 'Meal Bolus', carbs: '30', insulin: '2.00', preBolus: '15', glucoseType: 'Finge...
65bad76cb2f9674e2ee4ac7e1bbf9eca66606015
Add unit tests for the status code description
tests/helper.service.spec.js
tests/helper.service.spec.js
describe('Helper Service', function() { beforeEach(module('clientApp')); var appHelper; beforeEach(inject(function(_appHelper_){ appHelper = _appHelper_; })); describe('isValidResponse', function() { it('should check that the response is valid', function() { var invalidResponses = [ ""...
JavaScript
0.000001
@@ -1599,13 +1599,1763 @@ );%0A %7D); +%0A%0A describe('determineStatus', function() %7B%0A it('should return the XMLHttpRequest value if the request failed', function() %7B%0A expect(appHelper.determineStatus(-1, %22error%22)).toBe(%22ERROR%22);%0A expect(appHelper.determineStatus(-1, %22foo%22)).toBe(...
bf2d6499f6f4a7f1a8e9bb375c2534f67d825bb0
Replace legacy QUnit 1.x API with 2.x version.
tests/unit/deprecate-test.js
tests/unit/deprecate-test.js
import { deprecate } from '@ember/application/deprecations'; import { registerDeprecationHandler } from '@ember/debug'; import Ember from 'ember'; import { module, test, skip } from 'qunit'; const HANDLERS = Ember.Debug._____HANDLERS__DO__NOT__USE__SERIOUSLY__I_WILL_BE_MAD; let originalEnvValue; let originalDeprecate...
JavaScript
0
@@ -353,13 +353,18 @@ %7B%0A -setup +beforeEach () %7B @@ -526,16 +526,17 @@ %0A%0A -teardown +afterEach () %7B
8714f84787cbd2ee8c9e7b1a6939e71ffa337249
code format
assets/scripts/module/common.js
assets/scripts/module/common.js
import Zooming from 'zooming'; export default { setThumbnailImage() { var container = document.getElementsByClassName('entry-image'); var length = container.length; if (length === 0) { return; } for (var i = 0; i < length; i += 1) { var imageUrl = container[i].dataset.thumbnailImage;...
JavaScript
0.999764
@@ -1152,23 +1152,16 @@ if ( -%0A href.sub @@ -1207,22 +1207,16 @@ ript' %7C%7C -%0A href.su @@ -1236,21 +1236,16 @@ === '#' -%0A ) %7B%0A @@ -2037,25 +2037,16 @@ if ( -%0A entryImg @@ -2097,24 +2097,16 @@ true' %7C%7C -%0A entryIm @@ -2137,23 +2137,16 @@ === 'A'...
9908a8321065434c271d76f4ae5dabf17d01af76
optimize for pdf.js for linebreak and multiline selection
youdaodict.user.js
youdaodict.user.js
// ==UserScript== // @id youdaodict-greasemonkey-reverland-2015-09-26 // @name youdaodict // @version 1.0 // @namespace youdao // @author Liu Yuyang(sa@linuxer.me) // @description 一个可以在浏览器中自由使用的屏幕取词脚本 // @include * // @grant GM_xmlhttpRequest // ==/UserScript...
JavaScript
0
@@ -847,24 +847,190 @@ turn;%0A %7D%0A + // linebreak wordwrap, optimize for pdf.js%0A word = word.replace('-%5Cn','');%0A // multiline selection, optimize for pdf.js%0A word = word.replace('%5Cn', ' ');%0A //consol
19a5bbdeed9061ec7dc914c7751a235593c9c267
Fix userCanPlay method in instant_win if badge is an empty object
widgets/instant_win/main.js
widgets/instant_win/main.js
/** * # Instant Win * * An instant-win is a game where the player finds out immediately if he or she * is a winner of one of the prizes the administrators put at stake. * * A player can play once a day provided he or she loses at each attempt. A * player that wins the prize will not be allowed to play the game a...
JavaScript
0.000001
@@ -3759,32 +3759,61 @@ !this.data.badge + %7C%7C !this.data.badge.attempts ) %7B return true;
4275494cc6a8f51a1b8e8f8d097cbcbe4e326ba3
use click instead of change
list.js
list.js
M.wrap('github/jillix/bind-filter/dev/list.js', function (require, module, exports) { // TODO use bind for dom interaction/manipulation function get(s,c){ try{return (c||document).querySelector(s);} catch (err) {} } function buildItem (elem, content) { var elem = elem.cloneNode(); elem.innerHTML = cont...
JavaScript
0
@@ -1998,21 +1998,20 @@ tener('c -hange +lick ', funct
0f98623fa137e67be6e5131a664816a067561d46
fix spelling of deprecated, https://github.com/phetsims/chipper/issues/515
js/ScoreboardPanel.js
js/ScoreboardPanel.js
// Copyright 2013-2015, University of Colorado Boulder /** * Scoreboard for a game. * * @author Chris Malley (PixelZoom, Inc.) * @deprectated use ScoreboardBar */ define( function( require ) { 'use strict'; // modules var Color = require( 'SCENERY/util/Color' ); var GameTimer = require( 'VEGAS/GameTimer'...
JavaScript
0.000019
@@ -134,17 +134,16 @@ @deprec -t ated use
9e6b8ad17000a262d216885a7ed09cc2d198f4a0
Update head-newsletter.js
js/head-newsletter.js
js/head-newsletter.js
document.write('\ \ <meta name="description" content="Noticias semanales sobre Anime.">\ <meta name="author" content="Rubén - twitter.com/cont3mpo">\ <meta name="viewport" content="width=device-width, shrink-to-fit=no, initial-scale=1">\ <link rel="shortcut icon" type="image/png" href="img/favicon-newsletter.pn...
JavaScript
0
@@ -323,32 +323,40 @@ %3E%5C%0A %3Clink rel=%22 +preload stylesheet%22 href @@ -375,16 +375,27 @@ ize.css%22 + as=%22style%22 %3E%5C%0A %3Cli @@ -402,16 +402,24 @@ nk rel=%22 +preload styleshe @@ -442,16 +442,27 @@ yle.css%22 + as=%22style%22 %3E%5C%0A%5C%0A');
faecda854eadb14f5615904fa02fa6367170a69d
Improve inspector-forced panning
js/id/modes/select.js
js/id/modes/select.js
iD.modes.Select = function (entity) { var mode = { id: 'select', button: 'browse', entity: entity }; var inspector = iD.ui.inspector(), behaviors; function remove() { if (entity.type === 'way') { mode.history.perform( iD.actions.Delet...
JavaScript
0.000001
@@ -1824,84 +1824,58 @@ -entity_extent = entity.extent(mode.history.graph()),%0A left_edge = +offset = 50,%0A shift_left = d3.event.x - map @@ -1883,17 +1883,17 @@ size%5B0%5D -- ++ inspect @@ -1902,16 +1902,25 @@ _size%5B0%5D + + offset ,%0A @@ -1929,117 +1929,56 @@ -lef...
9ce93ee534891cb6aae372e141a975152cc895d5
Fix to avoid shadow zooming boxes when clicking on images
js/jquery.gangZoom.js
js/jquery.gangZoom.js
(function ($) { $.fn.gangZoom = function (options) { var opts = $.extend({}, $.fn.gangZoom.defaults, options); if (! $.fn.gangZoom.styleAdded && opts.defaultStyle) { $("<style type='text/css'>" + opts.defaultStyle + "</style>").appendTo("head"); $.fn.gangZoom.styleAdded = tr...
JavaScript
0
@@ -2526,76 +2526,8 @@ ();%0A - %7D else %7B%0A self.cancel();%0A @@ -3125,16 +3125,54 @@ false;%0A + self.stopped = false;%0A @@ -3230,32 +3230,126 @@ t(function () %7B%0A + if (self.stopped) %7B%0A r...
ecb1023c667ed22336c1f9b0d5040ed1e7f70290
Fix user bio placeholder not showing up
js/lib/models/User.js
js/lib/models/User.js
/*global ColorThief*/ import Model from 'flarum/Model'; import mixin from 'flarum/utils/mixin'; import stringToColor from 'flarum/utils/stringToColor'; import ItemList from 'flarum/utils/ItemList'; import computed from 'flarum/utils/computed'; import Badge from 'flarum/components/Badge'; export default class User ext...
JavaScript
0.000001
@@ -605,16 +605,22 @@ , bio =%3E + bio ? '%3Cp%3E' + @@ -657,16 +657,21 @@ + '%3C/p%3E' + : '' ),%0A pre
16b873a82d85db94fc0402e2c23d5039b3737864
fix the update available message
js/offline-manager.js
js/offline-manager.js
function updateFound() { var installingWorker = this.installing; // Wait for the new service worker to be installed before prompting to update. installingWorker.addEventListener('statechange', function() { switch (installingWorker.state) { case 'installed': // Only show the prompt if there is c...
JavaScript
0.000002
@@ -484,17 +484,37 @@ of -this page +Musique Concr&egrave;te Choir is