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
69bd25daddd4b6b9f2b86cd6376e6ed522accfbb
fix CI book pipeline, attempt #2
release/book.js
release/book.js
//@ts-check "use strict"; const { cd, $, $$ } = require("@itchio/bob"); async function main() { $(`npm version`); $(`npm install -g gitbook-cli`); if (process.env.CI) { // cf. https://github.com/GitbookIO/gitbook-cli/issues/110#issuecomment-669640662 let npm_prefix = $$(`npm config get prefix`); aw...
JavaScript
0
@@ -305,16 +305,23 @@ prefix%60) +.trim() ;%0A aw
7e97f2dc094391812ce7b1592497f8f3a534a09b
Update standard.spec.js
tests/acroform/standard.spec.js
tests/acroform/standard.spec.js
/* @TODO Enable 'use strict', remove all these globals */ /* global describe, xit, it, jsPDF, comparePdf, ComboBox, ListBox, PushButton, CheckBox, TextField, PasswordField, RadioButton, AcroForm */ /** * Acroform testing */ describe('Acroform', function () { it('ComboBox', function () { var doc = jsPDF() ...
JavaScript
0.000002
@@ -610,17 +610,16 @@ %7D)%0A%0A -x it('shou
beec8f886a82558b41931dcdce0e43b00ace4926
Debug wp api fetch failures.
tests/e2e/utils/wp-api-fetch.js
tests/e2e/utils/wp-api-fetch.js
/** * Proxy calls to wp.apiFetch within the page context. * * @link https://github.com/WordPress/gutenberg/blob/master/packages/api-fetch/README.md * @param {Object} options Options object passed to `wp.apiFetch`. See documentation at: https://github.com/WordPress/gutenberg/blob/master/packages/api-fetch/README.md#...
JavaScript
0
@@ -424,16 +424,24 @@ ons ) %7B%0A +%09try %7B%0A%09 %09// Wait @@ -484,16 +484,17 @@ client.%0A +%09 %09await p @@ -547,16 +547,17 @@ ined );%0A +%09 %09await p @@ -618,16 +618,167 @@ fined ); +%0A%09%7D catch ( e ) %7B%0A%09%09// eslint-disable-next-line no-console%0A%09%09console.warn( 'wpApiFetch failure', p...
b9d2450277f45cfb1228ea7f3581cc0692af2966
Add one test back
tests/http/static-files.test.js
tests/http/static-files.test.js
var server = require('../../server'); var should = require('should'); var types = { css: 'text/css; charset=utf-8', html: 'text/html; charset=utf-8', ico: 'image/x-icon', js: 'application/javascript; charset=utf-8', json: 'application/json; charset=utf-8', png: 'image/png', svg: 'image/svg+xml' }; var c...
JavaScript
0
@@ -2680,24 +2680,123 @@ hort%0A %7D,%0A + '/exchange-rates/rates-backup.json': %7B%0A type: types.json,%0A cache: cache.short%0A %7D,%0A '/favico
f2d256db2336630bd5b1de814c2f1769e085305f
add vue draggable component
res/js/setup.js
res/js/setup.js
import 'object-assign-shim' import 'matches-selector-polyfill/dist/matches-selector-polyfill' import 'es6-promise/auto' import 'modernizr' import Vue from 'vue' // custom global vue components import FilePicker from './components/core/file-picker.vue' import ImagePicker from './components/image/image-picker.vue' impor...
JavaScript
0.000001
@@ -151,24 +151,102 @@ from 'vue'%0A%0A +// third-party vue plugins / components%0Aimport draggable from 'vuedraggable'%0A%0A // custom gl @@ -955,16 +955,54 @@ ewords)%0A +Vue.component('draggable', draggable)%0A Vue.comp
d48106418a8efbf082dbafd1bcbe3a7eee96de73
Update ConcatAlongAxisId2.js
CNN/Conv/ConcatAlongAxisId2.js
CNN/Conv/ConcatAlongAxisId2.js
export { Base }; /** * Concatenate two tensor3d ( height x width x channel ) always along the last axis (i.e. axisId = 2, along the channel axis). It could * destroy one or two of the input tensors. * * @member {boolean} bKeepInputTensor0 * If false, the first input tensor will be disposed after concatenating. ...
JavaScript
0
@@ -11,16 +11,108 @@ ase %7D;%0A%0A +//!!! ...unfinished... (2021/06/30)%0Aimport * as ParamOpCounter from %22./ParamOpCounter.js%22;%0A%0A /**%0A * C @@ -1565,32 +1565,191 @@ at.call( this ); +%0A%0A//!!! ...unfinished... (2021/06/30)%0A// this.ParamOpCounter0 = new ParamOpCounter.Base( 0, );%0A// this.Para...
e73176e5324c654188e5efedc558c7ca7ad4090c
refactor inheritance in mixin.js
lib/less/tree/mixin.js
lib/less/tree/mixin.js
(function (tree) { tree.mixin = {}; tree.mixin.Call = function (elements, args, index) { this.selector = new(tree.Selector)(elements); this.arguments = args; this.index = index; }; tree.mixin.Call.prototype = { eval: function (env) { var mixins, rules = [], match = false; for (var i = ...
JavaScript
0.000013
@@ -2111,16 +2111,55 @@ rn %22%22 %7D, +%0A%0A parent: tree.Ruleset.prototype, %0A var @@ -2191,37 +2191,26 @@ return t -ree.Ruleset.prototype +his.parent .variabl @@ -2240,16 +2240,20 @@ find: + functio @@ -2248,32 +2248,36 @@ function () + %7B return tree.R @@ -2271,37 +2271,26 @@ r...
f30a0a302281846dc3322a49cb07c919d3ea961d
fix decryptMessageLegacy
lib/message/decrypt.js
lib/message/decrypt.js
const { decode_utf8_base64, binaryStringToArray, arrayToBinaryString } = require('../utils'); const { pickPrivate } = require('../key/utils'); const { getEncMessageFromEmailPM, getEncRandomKeyFromEmailPM } = require('./compat'); function decryptMessage(options) { return Promise.resolve() .then(() => { ...
JavaScript
0.000017
@@ -106,16 +106,28 @@ kPrivate +, getMessage %7D = req @@ -2231,16 +2231,54 @@ unction%0A +// 'message' option must be a string!%0A function @@ -2729,16 +2729,137 @@ === '') + %7B%0A // Convert message string to object%0A options.message = getMessage(options.message);%0A return...
b5f56bc09e21a1d59988429d6dbca6ce96cf0d5a
Improve manifest.json builder
lib/models/manifest.js
lib/models/manifest.js
'use strict'; /** * Represents all posts * @constructor * @param {Object} config [description] * @return {Object} [description] */ const manifest = function(config) { return { lang: config.locale.language, dir: config.locale.direction, name: config.name || '', description: config.descrip...
JavaScript
0.00001
@@ -8,16 +8,76 @@ rict';%0A%0A +const categoryUrl = require('../helpers/category-url');%0A%0A /**%0A * R @@ -878,16 +878,245 @@ #ffffff' +,%0A screenshots: %5B%5D,%0A categories: %5B'blog'%5D,%0A shortcuts: config.categories.map((category) =%3E %7B%0A return %7B%0A name: category,%0A u...
8bc31e7745e593f05633dd360d6f33214554625b
work on deep load return
lib/nodes/deep-load.js
lib/nodes/deep-load.js
/** * @author Gilles Coomans <gilles.coomans@gmail.com> * */ if (typeof define !== 'function') { var define = require('amdefine')(module); } define(["require", "./nodes", "../utils", "./query", "../promise", "../protocol"], function(require, nodes, utils, querier, prom, protoc){ nodes.deepLoad = function(ent...
JavaScript
0.000001
@@ -1855,37 +1855,15 @@ )%0A%09%09 -.done(function() %7B%0A%09%09%09return +%09.when( entr @@ -1869,21 +1869,16 @@ ry.value -;%0A%09%09%7D );%0A%09%7D;%0A%7D
be09afa2de393a4aeec3d3622cb94d026cc8a568
Add a safeguard on panel visibility
lib/panel/component.js
lib/panel/component.js
/* @flow */ import React from 'react' import ReactTable from 'sb-react-table' import ResizableBox from 'react-resizable-box' import { $range, severityNames, sortMessages, visitMessage, getPathOfMessage } from '../helpers' import type Delegate from './delegate' import type { LinterMessage } from '../types' export defa...
JavaScript
0
@@ -1758,16 +1758,96 @@ sibility + && (!this.props.delegate.panelTakesMinimumHeight %7C%7C this.state.messages.length) %0A%0A le
1e184c8eb15608fb3a2ef10fe1b54fceb63bf07f
Remove unused imports
lib/panes/inspector.js
lib/panes/inspector.js
/* @flow */ import { CompositeDisposable } from "atom"; import React from "react"; import { Map as ImmutableMap } from "immutable"; import { log, reactFactory, INSPECTOR_URI } from "./../utils"; import typeof store from "../store"; import Inspector from "./../components/inspector"; export default class InspectorPan...
JavaScript
0.000001
@@ -81,57 +81,8 @@ ct%22; -%0Aimport %7B Map as ImmutableMap %7D from %22immutable%22; %0A%0Aim @@ -91,13 +91,8 @@ rt %7B - log, rea
b2d2bf37b0febf3c108366f1fc36c9d270f07783
Correct merge conflict in doc block
lib/parser/handlers.js
lib/parser/handlers.js
/* * Jexl <<<<<<< HEAD * Copyright (c) 2015-2016 TechnologyAdvice ======= * Copyright (c) 2017 Tom Shawver >>>>>>> master */ 'use strict' /** * Handles a subexpression that's used to define a transform argument's value. * @param {{type: <string>}} ast The subexpression tree */ exports.argVal = function(ast) { ...
JavaScript
0.000003
@@ -8,73 +8,8 @@ exl%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A * Copyright (c) 2015-2016 TechnologyAdvice%0A=======%0A * C @@ -42,23 +42,8 @@ ver%0A -%3E%3E%3E%3E%3E%3E%3E master%0A */%0A
27df0b0c313d8b823df7589315004387e82f728b
Allow passing Vaulted client explicitly so we can use an existing client across providers.
lib/providers/token.js
lib/providers/token.js
'use strict'; const Vaulted = require('vaulted'); const Metadata = require('./../utils/metadata'); const http = require('http'); const HTTP_FORBIDDEN = 403; // Default Vault connection options const DEFAULT_VAULT_PORT = 8200; const DEFAULT_VAULT_HOST = '127.0.0.1'; const DEFAULT_VAULT_TLS = true; const DEFAULT_META...
JavaScript
0
@@ -578,24 +578,67 @@ tadata.host%0A + * @param %7BVaulted%7D options.vault.client%0A * @param @@ -1357,32 +1357,56 @@ ULT_TLS%0A %7D;%0A%0A + let client = null;%0A%0A if (opts.vau @@ -1604,52 +1604,156 @@ LS;%0A - %7D%0A%0A this._client = new Vaulted(vault) +%0A client = opts.vault.clie...
9b556e5df90b76a67360ef556fb3e87460d54361
Add filters controller missing definition
lib/public/js/wharf.js
lib/public/js/wharf.js
'use strict'; var angular , DashboardController , ChartController; angular.module('wharf', ['ui.router', 'wharf.controllers']); angular.module('wharf').config(function($stateProvider, $urlRouterProvider) { $stateProvider.state('dashboard', { abstract: true, url: '/da...
JavaScript
0.000001
@@ -44,16 +44,38 @@ troller%0A + , FiltersController%0A , Char
1080ec446b1048eb84198499b30014af5af48766
fix path delimiter when parsing $NODE_PATH
lib/resolver/config.js
lib/resolver/config.js
'use strict'; const { execSync: exec } = require('child_process'); const nativeModules = require('../utils/nativeModules'); const path = require('path'); const union = require('lodash/union'); const unique = require('lodash/uniq'); const DEFAULT_EXTENSIONS = { js: ['js', 'json'], css: ['css'], html: ['html'] };...
JavaScript
0.000283
@@ -1634,19 +1634,30 @@ ncludes( -':' +path.delimiter )%0A @@ -1685,11 +1685,22 @@ lit( -':' +path.delimiter )%0A
3e98d811073a1c6e78d9fb34420e707bad31e1cd
update webpack config
lib/servers/webpack.js
lib/servers/webpack.js
"use strict"; var hapi = require('hapi'); var webpackConnection = require('hapi-webpack-connection'); var webpack = require('webpack'); var path = require('path'); module.exports = function(dest, serverName, hapiConfig, webpackConfig) { dest = dest || 'tmp'; serverName = serverName || 'localhost'; var op...
JavaScript
0.000001
@@ -100,42 +100,8 @@ ');%0A -var webpack = require('webpack');%0A var @@ -287,16 +287,30 @@ tions = +Object.assign( %7B%0A @@ -338,17 +338,24 @@ g.entry, -%0A + %0A @@ -651,847 +651,64 @@ %7D -,%0A %0A - plugins: function() %7B%0A return webpackConfig.plugins.map(func...
5012eabe1c13d9ea552d1e107b4a4e5dd46038a4
Remove uneeded logging
lib/stub-controller.js
lib/stub-controller.js
let db = require('./db.js'); module.exports = function controller(req, res) { console.log(req.params); db.oneOrNone('select * from urls where nurl = $1;', req.params.stub) .then(function(data) { res.redirect(301, 'http://' + data.url); }) .catch(function(error) { console.log('Error: ' + error); ...
JavaScript
0
@@ -76,36 +76,8 @@ ) %7B%0A - console.log(req.params);%0A%0A db
d145a83c7c872c08f0a0c4068ad53d383e3d124f
Fix typo
lib/themes/iso/init.js
lib/themes/iso/init.js
/** * @file Isomorph init * @author treelite(c.xinle@gmail.com) */ var fs = require('fs'); var path = require('path'); var mkdirp = require('mkdirp'); var scaffold = require('../../scaffold'); var importDep = require('../../util/import-dependence'); var getLoaderInfo = require('../../util/get-loader-info'); var rou...
JavaScript
0.999999
@@ -967,24 +967,19 @@ e(root, -'config' +dir );%0A
713f3622031045b90049c5c612ebbeb4e1f29061
Fix remove canceled event for a deactivated viewpane
lib/userinput/touch.js
lib/userinput/touch.js
"use strict"; var vector = require("../common/vector"); var Loop = require("../common/loop"); // returns center point between first and second touch point function getCenterPosition(vector, boundingBox, firstTouch, secondTouch) { vector.x = 0.5 * (secondTouch.pageX - firstTouch.pageX) + firstTouch.pageX - bound...
JavaScript
0.000001
@@ -3067,32 +3067,52 @@ event) %7B%0A + config.activated && event.preventDe
2a530ac5891e58204a306000ae938e7fbe9e4d89
Remove double function declaration
lib/xflow-validator.js
lib/xflow-validator.js
import RSVP from 'rsvp'; import TV4 from 'tv4'; import flowUtil from './flow-util'; function exists(val) { return ( (val !== null) && (val !== undefined) ); } function getNode(id, nodes) { var resNodes = nodes.filter( (node) => node.id === id ); if (resNodes.length !== 1) { if (resNo...
JavaScript
0.000031
@@ -83,452 +83,8 @@ ';%0A%0A -function exists(val) %7B%0A return (%0A (val !== null) &&%0A (val !== undefined)%0A );%0A%7D%0A%0Afunction getNode(id, nodes) %7B%0A var resNodes = nodes.filter(%0A (node) =%3E%0A node.id === id%0A );%0A%0A if (resNodes.length !== 1) %7B%0A if (resNodes.length %3E 1)...
91c43af9dfeaee1968a920e2a955a7d85bd0e2a1
fix keigai
routes/index.js
routes/index.js
var store = keigai.store(); store.set(null, {"waddup": "homes"}); module.exports.get = { "/": [], "/data": function( req, res ) { this.respond( req, res, store.dump(), 200 ); } } module.exports.post = { "/data": function( req, res ) { this.respond( req, res, "Successful POST", 200 ); } }
JavaScript
0.000003
@@ -1,12 +1,44 @@ var +keigai %09= require( %22keigai%22 ),%0A%09 store
f45cece2c4a1582baa78aac55575c6a7d4ea6e21
fix typo
routes/index.js
routes/index.js
var express = require('express'); var router = express.Router(); var request = require('request'); var MongoClient = require('mongodb').MongoClient; var ObjectId = require('mongodb').ObjectId; router.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); next(); }); /* GET home page. *...
JavaScript
0.999991
@@ -3564,18 +3564,20 @@ company_ -id +name )) %7B%0A
e4151b8e6bc326f7a22918f15d60723ec7db8f2d
Fix API tracking
routes/index.js
routes/index.js
const _ = require('lodash'); const Bluebird = require('bluebird'); const express = require('express'); const Feed = require('../src/feed'); const helper = require('../src/helper'); const router = express.Router(); const ua = require('universal-analytics'); router.get('/', function(req, res, next) { if (req.headers.a...
JavaScript
0.000035
@@ -1750,22 +1750,8 @@ %7B%0A - let visitor = ua( @@ -1788,20 +1788,13 @@ e %7D) -;%0A %0A -visitor + .pag @@ -1807,12 +1807,32 @@ req. -path) +originalUrl)%0A .send(); %0A%7D%0A
7854690e56860cadcd954af9f5bff7abdd672dd2
add default playground
routes/index.js
routes/index.js
var express = require('express'); module.exports = function(codeObjects) { var router = express.Router(); router.get('/', function(req, res) { res.render('index', { title: 'Paysage', playgrounds: codeObjects }); }); return router; }
JavaScript
0.000001
@@ -142,16 +142,110 @@ res) %7B%0A + if (Object.keys(codeObjects).length === 0) %7B%0A codeObjects = %7Bboumsplash: null%7D;%0A %7D%0A res.
3fe78069e764c44d9c23b08fc0fcff6f8dd25aaa
true title
routes/index.js
routes/index.js
var express = require('express'); var router = express.Router(); var passport = require('passport'); /* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'Express' }); }); router.get('/login', function(req, res, next) { res.render('login', { title: 'Login' }); }); router....
JavaScript
0.999985
@@ -195,15 +195,15 @@ e: ' -Express +TICmbay ' %7D)
71cded20c513c6d59edef0a8675ea2c461adc9af
fix class name
todoist/managers/UserManager.js
todoist/managers/UserManager.js
import Manager from './Manager'; class UploadsManager extends Manager { /** * Updates the user data. * @param {Object} params */ update(params) { this.queueCmd('user_update', params); } /** * Updates the user's karma goals. * @param {Object} params */ update_goals(params) { this.queueCmd...
JavaScript
0.030896
@@ -34,22 +34,19 @@ %0Aclass U -ploads +ser Manager @@ -2648,14 +2648,11 @@ lt U -ploads +ser Mana
ea72bcef4a2ed7b07aa5aadacd233e7eb00a6c0b
Update index.js
routes/index.js
routes/index.js
var express = require('express'); var fs = require('file-system'); var mongodb = require('mongodb'); var monk = require('monk'); var router = express.Router(); //var uri = "mongodb://akshaykumargowdar:Ak$h@y94@mycluster-shard-00-00-rplbd.mongodb.net:27017,mycluster-shard-00-01-rplbd.mongodb.net:27017,mycluster-shard-0...
JavaScript
0.000002
@@ -154,18 +154,16 @@ ter();%0A%0A -// var uri @@ -409,18 +409,16 @@ dmin%22 ;%0A -// var db =
516b35d27f8cd7587676d1788fc51764422799e9
update indent
routes/users.js
routes/users.js
var express = require('express'); var router = express.Router(); var User = require('../models/user'); var crypto = require('crypto'); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource'); }); // REGISTER router.post('/register', function(req, res, next) { new U...
JavaScript
0
@@ -129,16 +129,186 @@ pto');%0A%0A +var count = 0;%0A%0Arouter.all('/*', function(req, res, next) %7B%0A%09console.log(%22catch all%22);%0A%09count++;%0A%09console.log(count);%0A%09//req.body.firstname = %22azertyuiop%22;%0A%09next();%0A%7D);%0A%0A /* GET u @@ -1742,18 +1742,20 @@ router.p -ut +atch ('/updat @@ -1...
53c7c7d0d838e52f14970d04165d2bbb2027ef01
Improve `use-fp`
rules/use-fp.js
rules/use-fp.js
'use strict'; var enhance = require('./core/enhance'); function reportIfLodashButNotFp(context, node, name) { if (name && name.indexOf('lodash') === 0 && name.indexOf('lodash/fp') === -1) { context.report(node, 'Unallowed import of `lodash`. Use `lodash/fp` instead'); } } module.exports = function (context) ...
JavaScript
0.000001
@@ -48,16 +48,72 @@ hance'); +%0Avar isStaticRequire = require('./core/static-require'); %0A%0Afuncti @@ -582,67 +582,29 @@ if ( -node.callee.name === 'require' && node.arguments.length %3E 0 +isStaticRequire(node) ) %7B%0A
c37f30fb418ca205216a209d0cf372cf5054f36f
Make sure that screen resize is registered on initialization
runtime/Init.js
runtime/Init.js
(function() { 'use strict'; Elm.fullscreen = function(module) { var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = "html,head,body { padding:0; margin:0; }" + "body { font-family: calibri, helvetica, arial, sans-serif; }"; document.head.appendChild(style); ...
JavaScript
0.000001
@@ -4958,25 +4958,24 @@ h.value;%0A %0A - // Add the @@ -5113,69 +5113,8 @@ ));%0A - if (elm.Native.Window) elm.Native.Window.resizeIfNeeded();%0A %0A @@ -5267,20 +5267,16 @@ - Render.u @@ -5333,28 +5333,24 @@ ;%0A - - if (elm.Nati @@ -5402,20 +5402,16 @@ ;%0A - %7...
7e6a8d1a2ac227b163c188357ef570d393a42d04
Move requires to the top of the template
taglibs/core/RequireNode.js
taglibs/core/RequireNode.js
/* * Copyright 2011 eBay Software Foundation * * 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 o...
JavaScript
0
@@ -1232,39 +1232,31 @@ ate. -statement('var ' + +addStaticVar( varName - + +, ' -= requ @@ -1274,17 +1274,16 @@ ule + ') -; ');%0A
39d635b446e97f88994482333452dd2819731c81
Update main.js
scripts/main.js
scripts/main.js
ReactDOM.render( <h1>Hello, thesre world!</h1>, document.getElementById('example') )
JavaScript
0.000001
@@ -21,35 +21,35 @@ %3C -h1%3EHello, thesre world!%3C/h1 +ColorWheel radius=200 n=24/ %3E,%0A
2f9ef36e2376c9bfd9706e090436e176785ac685
更新 combo 在 hash 变更时清空 cache
server/combo.js
server/combo.js
'use strict'; var path = require('path'), fs = require('fs'), app = require('./index'); module.exports = function (dir) { dir = dir || '/public/c'; var root = app.get('root') + dir, logger = app.get('logger') || console, cache = {}; return function (req, res, next) { var i...
JavaScript
0
@@ -247,16 +247,26 @@ %0A + lastHash, cache = @@ -270,16 +270,16 @@ e = %7B%7D;%0A - %0A ret @@ -424,16 +424,22 @@ rl, ext, + hash, files, @@ -600,16 +600,16 @@ e(url);%0A - @@ -644,16 +644,185 @@ ice(1)); +%0A if (~j) hash = req.originalUrl.slice(j + 1);%0A if (hash...
967553cc20a2ee83470f07bef19b2962134591b4
Add ssl: true
server/index.js
server/index.js
var express = require('express'); var url = require('url'); var _ = require('lodash') var fs = require('fs'); var path = require('path'); var bodyParser = require('body-parser'); var request = require('superagent'); var basicAuth = require('basic-auth'); var pg = require('pg'); var AudioEndpoints = require('./endpoints...
JavaScript
0.999999
@@ -1793,16 +1793,29 @@ BASE_URL + +'?ssl=true' , functi
50661f180201ccf1adf75e227c8ee0db48006970
Remove a couple of buggy console logs
server/index.js
server/index.js
const express = require('express'); const path = require('path'); var bodyParser = require('body-parser'); var passport = require('passport'); var session = require('express-session'); var request = require('request') var mongoose = require('mongoose'); var router = require('./router'); var User = require('../db/userSc...
JavaScript
0.000001
@@ -3870,78 +3870,8 @@ id)%0A - console.log('clients in socket.join', io.sockets.clients('room'))%0A @@ -4218,79 +4218,8 @@ id)%0A - console.log('clients in socket.leave', io.sockets.clients('room'))%0A
f2dfb0ea006e86a1d46bed99402ccc092c3803c6
update port
server/index.js
server/index.js
const _ = require('lodash'); const jsonfile = require('jsonfile'); const path = require('path'); const express = require('express'); const webpack = require('webpack'); const config = require('../webpack.config.dev'); const app = express(); const compiler = webpack(config); const networks = [ { path: 'eta_3_hid...
JavaScript
0
@@ -2142,24 +2142,25 @@ ml'));%0A%7D);%0A%0A +%0A app.listen(3 @@ -2158,16 +2158,36 @@ .listen( +process.env.PORT %7C%7C 3000, 'l
4009b0b4b5543572f0316c3aad8bc4e72898409f
Update script.js
trailersweb/static/js/script.js
trailersweb/static/js/script.js
$(document).ready(function () { function removeVideoContent() { // Remove the src so the player itself gets removed, as this is the // only reliable way to ensure the video stops playing in IE $('#trailer-video').attr('src', ''); $('#trailer-video-container').empty(); $('.movie-info').remove(); ...
JavaScript
0.000004
@@ -665,16 +665,17 @@ = 'http +s ://www.y
ccf7dbaf5d6decaf5fa43cf9742ec4b657d04d7b
Add FeatureDetection.isFirefox and firefoxVersion.
Source/Core/FeatureDetection.js
Source/Core/FeatureDetection.js
/*global define*/ define([ './defaultValue', './defined', './Fullscreen' ], function( defaultValue, defined, Fullscreen) { "use strict"; function extractVersion(versionString) { var parts = versionString.split('.'); for (var i = 0, len = parts...
JavaScript
0
@@ -3500,24 +3500,577 @@ ult;%0A %7D%0A%0A + var isFirefoxResult;%0A var firefoxVersionResult;%0A function isFirefox() %7B%0A if (!defined(isFirefoxResult)) %7B%0A var fields = /Firefox%5C/(%5B%5C.0-9%5D+)/.exec(navigator.userAgent);%0A if (fields === null) %7B%0A ...
1c8900382223154edac4cec6f8d822b769bfd85f
update hash on marking word
src/routes/TrackDetail/module/TrackDetail.js
src/routes/TrackDetail/module/TrackDetail.js
import fetch_jsonp from 'fetch-jsonp'; import query_string from 'query-string'; import audio from 'store/audio'; import { get_marked_word, get_selected_words, } from './Selectors'; import ACTION_HANDLERS from './ActionHandlers'; export const FRAME_RATE = 24000; export const frame_to_time = (frame) => frame / F...
JavaScript
0.000001
@@ -2557,32 +2557,89 @@ %7D);%0A + reflect_time_in_hash(marked_word.timestamp);%0A %7D%0A @@ -5735,32 +5735,116 @@ ngth,%0A %7D;%0A%7D;%0A +function reflect_time_in_hash(time) %7B%0A window.location.replace('#ts=' + time);%0A%7D%0A export function @@ -5918,41 +5918,29 @@ ...
579be52c9804dab14da700844835c379948f433e
Add personal test host.
BookReaderIA/test/unit/Images.js
BookReaderIA/test/unit/Images.js
// Tests for BookReaderImages.php // $$$ TODO -- make the test host configurable/automagic module("Images"); // $$$ set to test host var testHost = 'http://www-testflip.archive.org'; //var testHost = 'http://www-mang.archive.org'; // Returns locator URL for the given id function jsLocateURL(identifier, book) { ...
JavaScript
0
@@ -182,56 +182,8 @@ rg'; -%0A//var testHost = 'http://www-mang.archive.org'; %0A%0A//
6171de67a10a9831b8da6c3a69f92b8b70d0be50
Add two functions to support the location setting
src/screens/rename/views/settings/actions.js
src/screens/rename/views/settings/actions.js
export function setBackupOption(backup, index) { return { type: 'SETTINGS_SET_BACKUP', payload: { backup, index, }, }; } export function setBackupOptionPath(path) { return { type: 'SETTINGS_SET_BACKUP_PATH', payload: path, }; } export function setExistsOption(exists, index) { return { type: 'SE...
JavaScript
0.000001
@@ -33,21 +33,22 @@ backup, -index +active ) %7B%0A%09ret @@ -107,29 +107,30 @@ %09backup,%0A%09%09%09 -index +active ,%0A%09%09%7D,%0A%09%7D;%0A%7D @@ -285,21 +285,22 @@ exists, -index +active ) %7B%0A%09ret @@ -367,13 +367,14 @@ %0A%09%09%09 -index +active ,%0A%09%09 @@ -429,32 +429,32 @@ th) %7B%0A%09retu...
a8f1c3235582955bed87fea086845780d21b4d7f
Update avatar command to support gif avis.
commands/avatar.js
commands/avatar.js
//gets the avatar of either the person calling, or the person that is mentioned module.exports = function command(bot, info) { "use strict"; return { inline: false, //the alias can be set by putting what you'd like in that array alias: ['a'], //description that shows up in the he...
JavaScript
0
@@ -706,17 +706,17 @@ return -%22 +' https:// @@ -746,18 +746,18 @@ ars/ -%22 +' +uid+ -%22/%22 +'/' +bot @@ -779,14 +779,14 @@ tar+ -%22.jpg%22 +'.gif' ;%0A
b25f9c8d5ad08dc956dc11c0d389ca3ab73e0bb1
Add meta image
components/meta.js
components/meta.js
import React from 'react' import PropTypes from 'prop-types' import Head from 'next/head' const SITE_NAME = 'geo.data.gouv.fr' const Meta = ({ title, description }) => ( <Head> <title>{title} | {SITE_NAME}</title> <meta name='twitter:title' content={title} /> <meta property='og:title' content={title} />...
JavaScript
0.000003
@@ -156,16 +156,23 @@ cription +, image %7D) =%3E ( @@ -545,16 +545,146 @@ ion%7D /%3E%7D +%0A%0A %7Bimage && %3Cmeta name='twitter:image' content=%7Bdescription%7D /%3E%7D%0A %7Bimage && %3Cmeta name='og:image' content=%7Bdescription%7D /%3E%7D %0A %3C/Hea @@ -760,16 +760,43 @@ ription: + PropTypes.string...
dcf24fcb7774b10499ca8a7d732977710da35d7c
Fix unresponsive button on collaborations page
ui/features/collaborations/index.js
ui/features/collaborations/index.js
/* * Copyright (C) 2011 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
JavaScript
0.99925
@@ -716,16 +716,55 @@ jquery'%0A +import ready from '@instructure/ready'%0A import C @@ -855,16 +855,62 @@ /index'%0A +// eslint-disable-next-line import/extensions%0A import ' @@ -956,16 +956,32 @@ ks.js'%0A%0A +ready(() =%3E %7B%0A const pa @@ -1025,16 +1025,18 @@ ody')%7D)%0A + page.ini @@ -1048,8 +1048,...
7a71b9995a0c66d5c91d407ad25de35f10c0cc0a
Update conf/db example file
conf/db.example.js
conf/db.example.js
function getConnectionString(cfg) { var connectionString = ''; connectionString += (cfg.protocol ? cfg.protocol : 'mongodb') + '://'; connectionString += (cfg.username && cfg.password) ? cfg.username + ':' + cfg.password + '@' : ''; connectionString += cfg.host || 'localhost'; connectionStri...
JavaScript
0
@@ -563,31 +563,18 @@ %0A%7D;%0A -config.connectionString +%0Avar dbURI = g @@ -606,17 +606,16 @@ );%0A%0A -%0A exports. conf @@ -614,21 +614,19 @@ rts. -config = config +dbURI = dbURI ;%0A
7ad11c8dd83e3df0c743228fdce1abe08836b4a6
Version upd.
Dollchan_Extension_Tools.meta.js
Dollchan_Extension_Tools.meta.js
// ==UserScript== // @name Dollchan Extension Tools // @version 12.1.15.0 // @namespace http://www.freedollchan.org/scripts/* // @author Sthephan Shinkufag @ FreeDollChan // @copyright (C)2084, Bender Bending Rodriguez // @description Doing some profit for imageboards // @icon https://github.com/SthephanShin...
JavaScript
0
@@ -19,17 +19,18 @@ // @name -%09 + %09%09Dollch @@ -72,9 +72,9 @@ .1.1 -5 +8 .0%0A/
b596b4cca934443a29da4a46ae725315c5c64960
use jsupm_i2clcd if jsupm_jhd1313m1 is not present
GroveStarterKit/grove-rgb-lcd.js
GroveStarterKit/grove-rgb-lcd.js
module.exports = function(RED) { var m = require('mraa'); var LCD = require('jsupm_jhd1313m1'); function groveRGBLCD(n) { //init RED.nodes.createNode(this,n); //properties this.name = n.name; this.platform = n.platform; this.r = parseInt(n.r); this....
JavaScript
0.000003
@@ -68,41 +68,396 @@ var -LCD = require('jsupm_jhd1313m1'); +fs = require('fs');%0A var LCD;%0A try %7B%0A%09LCD = require('jsupm_jhd1313m1');%0A %7D catch (e) %7B%0A%09//catch only MODULE_NOT_FOUND error to use jsupm_i2clcd if jsupm_jhd1313m1 is not found%0A%09if ( e.code === 'MODULE_NOT_FOUND') %7B%0A%09 ...
b94c6122b36fc57819c535d608e9eb72ce59f61f
Update hello_world.js
test/api/controllers/hello_world.js
test/api/controllers/hello_world.js
var should = require('should'); var request = require('supertest'); var server = require('../../../app'); process.env.A127_ENV = 'test'; describe('controllers', function() { describe('hello_world', function() { describe('GET /hello', function() { it('should return a default string', function(done) { ...
JavaScript
0.00013
@@ -556,37 +556,32 @@ res.body. -name. should.eql('Hell @@ -567,32 +567,38 @@ body.should.eql( +%7Bname: 'Hello, stranger @@ -599,16 +599,17 @@ ranger!' +%7D );%0A%0A @@ -1024,13 +1024,8 @@ ody. -name. shou @@ -1031,16 +1031,22 @@ uld.eql( +%7Bname: 'Hello, @@ -1052,16 +1052,17 @@ Scott!' +%7D ...
484563f3aef084e35f0c10874924bceb3994da5f
fix form elements that appears depending of refreshOnChange
Bundle/FormBundle/Resources/public/js/form.js
Bundle/FormBundle/Resources/public/js/form.js
/** * Refresh on change ================== * Problematic: * When a form field conditions the others fields, add the data-refreshOnChange="true" attribute * to pass here and then reload|refresh the template (without any errors because the form is not yet properly submitted) * by calling the action in a custom mode...
JavaScript
0
@@ -832,29 +832,26 @@ s = -%22 +' .v -ic -modal -- +__ body .v -ic -con @@ -860,56 +860,65 @@ iner --fluid .vic-tab-quantum.vic-tab-pane.vic-active%22 + %5Bdata-group=%22tab-widget-quantum%22%5D%5Bdata-state=%22visible%22%5D' ;%0A
81e36d2e74ee8218339028bdf97a4e9116a5da6a
Fix from account in remove public role behaviors (#1710)
test/behaviors/access/roles/PublicRole.behavior.js
test/behaviors/access/roles/PublicRole.behavior.js
const { shouldFail, constants, expectEvent } = require('openzeppelin-test-helpers'); const { ZERO_ADDRESS } = constants; function capitalize (str) { return str.replace(/\b\w/g, l => l.toUpperCase()); } // Tests that a role complies with the standard role interface, that is: // * an onlyRole modifier // * an isRol...
JavaScript
0
@@ -4603,17 +4603,16 @@ %5D(anyone -) , %7B from @@ -4606,32 +4606,33 @@ nyone, %7B from %7D) +) ;%0A %7D);%0A%0A @@ -4797,17 +4797,16 @@ _ADDRESS -) , %7B from @@ -4800,32 +4800,33 @@ DRESS, %7B from %7D) +) ;%0A %7D);%0A
0420615cde075ff56c543b5364c242b25c6b3462
Comment out a test for review
test/unit/controllers/InvitationController.test.js
test/unit/controllers/InvitationController.test.js
var root = require('root-path') require(root('test/setup')) var factories = require(root('test/setup/factories')) var InvitationController = require(root('api/controllers/InvitationController')) import { mockify, spyify, unspyify } from '../../setup/helpers' import { map, sortBy, find } from 'lodash/fp' describe('Invi...
JavaScript
0
@@ -2740,24 +2740,27 @@ h(4)%0A + // res.body.re @@ -2788,24 +2788,27 @@ =%3E %7B%0A + // expect(re @@ -2848,24 +2848,27 @@ ull)%0A + // %7D)%0A%0A
f1fbee319dd8c30ca63eb3f236aadcb199633024
Make custom props optional
node_modules/lib/props.js
node_modules/lib/props.js
// -------------------------------------------------------- // Copyright (c) 2015 by Greg Reimer <gregreimer@gmail.com> // MIT License. See license.txt for more info. /* * We'll use a two-level scheme for server-side configuration. * Properties live in `$PROJECT_ROOT/props`. Default props are * kept in source contr...
JavaScript
0
@@ -675,45 +675,124 @@ lt'%0A -import cust from '../../props/custom' +%0Avar cust%0A%0Atry %7B%0A cust = require('../../props/custom')%0A%7D catch(ex) %7B%0A console.log('could not load custom props')%0A%7D %0A%0A//
9c86b4aa6aa70ab8d0da42f6eb310efe52512084
Send json for resource created
nodeapi/app/controller.js
nodeapi/app/controller.js
var express = require('express'), models = app.get('models'), Board = models.Board, Postit = models.Postit, Rules = models.Rules; app.use(express.bodyParser()); function loader(Model) { return function(req, res, next, id) { Model.findById(id, function(err, model) { if (err) { n...
JavaScript
0
@@ -881,32 +881,39 @@ res.send(202 +, board );%0A %7D);%0A%7D);%0A%0A// @@ -1441,16 +1441,24 @@ send(202 +, postit );%0A %7D);
910c3ac08db4bbdf8097e998cb486e6cdfef1a46
Fix some type annotations.
src/BaseEventIndexManager.js
src/BaseEventIndexManager.js
/* Copyright 2019 The Matrix.org Foundation C.I.C. 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 ...
JavaScript
0
@@ -4811,39 +4811,32 @@ wlerCheckpoint %7C - null = null,%0A o @@ -4872,15 +4872,8 @@ nt %7C - null = nul
d372a0cf91f799f58323df51ca0452b7a388a70e
Fix typo
client/scripts/components/config/customize-notifications/notification-panels/index.js
client/scripts/components/config/customize-notifications/notification-panels/index.js
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
JavaScript
0.999999
@@ -4260,17 +4260,16 @@ se conta -n ct syste
8ad61a19ef6d3996a2a2dfc802cecf8177254682
convert promises to async/await in service providers index
src/service-providers/index.js
src/service-providers/index.js
// @flow // Ensure every module is imported here and included in the `modules` hash below import { dummyProviderModule } from './dummy' import { configStore } from './../data/config-store' import type { UserServiceSummary, ServiceProvider } from './../types' export const modules = { 'dummy': dummyProviderModule } ...
JavaScript
0.00016
@@ -962,32 +962,38 @@ )%0A %7D%0A%7D%0A%0Aexport +async function downloa @@ -1116,16 +1116,22 @@ ers.map( +async (provide @@ -1139,126 +1139,73 @@ ) =%3E + %7B %0A -new Promise((resolve, reject) =%3E %7B%0A provider.listAccounts().then(%0A (accounts) =%3E %7B%0A resolve( +const accoun...
abdd5750a44cdb0dae592d7b5ec7a4bbe0207375
reset trade params when switching accounts
src/sidebar/AccountMenuItem.js
src/sidebar/AccountMenuItem.js
import React, { PureComponent } from 'react'; import storage from '../_store/storage'; export default class AccountMenuItem extends PureComponent { props: { account: string, token: string, currency: string }; static contextTypes = { router: () => undefined, }; switchToAccount = () => { const...
JavaScript
0
@@ -395,16 +395,57 @@ en %7D));%0A +%09%09storage.setItem('tradesParams', '%5B%5D');%0A %09%09this.c
f5cb1240f353fa0c117349e02a69472bd54abc05
Use native `.dataset` instead of jQuery `.data()`
Resources/private/js/sylius-lazy-choice-tree.js
Resources/private/js/sylius-lazy-choice-tree.js
/* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import 'semantic-ui-css/components/api'; import 'semantic-ui-css/components/checkbox'; import $ from 'jquery'...
JavaScript
0.000002
@@ -3555,38 +3555,42 @@ %0A const + %7B value + %7D = checkboxEleme @@ -3587,38 +3587,35 @@ ckboxElement +%5B0%5D .data -('value') +set ;%0A @@ -3808,22 +3808,26 @@ const + %7B value + %7D = check @@ -3840,22 +3840,19 @@ ment +%5B0%5D .data -('value') +set ;%0A
2e25a2f32b6cedeb1ba039ecd04ccfd6ad826d95
fix typo
signup/index.js
signup/index.js
var crypto = require('crypto'); var base64url = require('base64-url'); var Promise = require('bluebird'); var bcrypt = Promise.promisifyAll(require('bcryptjs')); var AWS = require('aws-sdk'); var s3 = new AWS.S3(); Promise.promisifyAll(Object.getPrototypeOf(s3)); function getObj(bucket, key) { console.log("Going to ...
JavaScript
0.999991
@@ -1625,16 +1625,22 @@ .tokens%5B +token. id%5D = ha
4f58362491d7cdc6f53b3a759620d96065027ee2
Add new params to exec call
www/DownloadOperation.js
www/DownloadOperation.js
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); ...
JavaScript
0.000001
@@ -2133,16 +2133,46 @@ .toURL() +, this.title, this.visibleInUi %5D);%0A%0A
b9ed28120352661d9f2b2a83446890e60d1fe795
update IconButton
src/IconButton/IconButton.js
src/IconButton/IconButton.js
/** * @file IconButton component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import BaseButton from '../_BaseButton'; import TipProvider from '../TipProvider'; import Theme from '../Theme'; i...
JavaScript
0.000001
@@ -616,33 +616,42 @@ startRipple = -e +(e, props) =%3E %7B%0A th @@ -698,32 +698,39 @@ on.startRipple(e +, props );%0A %7D;%0A%0A / @@ -902,17 +902,26 @@ ipple = -e +(e, props) =%3E %7B%0A @@ -986,16 +986,23 @@ Ripple(e +, props );%0A %7D
a11032293716903681b97a8be33871cc51b550a7
Update toastr_rails.js
app/assets/javascript/toastr_rails.js
app/assets/javascript/toastr_rails.js
//= require 'toastr' //toastr toastr.options = { "closeButton": true, "debug": false, "progressBar": true, "positionClass": "toast-top-right", "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": ...
JavaScript
0
@@ -549,21 +549,69 @@ ,%0A -alert +success: 'success',%0A alert: 'error',%0A error : 'error @@ -837,24 +837,36 @@ : %7B%7D%0A %7D;%0A + try %7B%0A toastr%5Bt @@ -908,15 +908,88 @@ g%5B0%5D%5D);%0A + %7D catch(err) %7B%0A toastr.info(msg%5B1%5D, '', options%5Bmsg%5B0%5D%5D);%0A ...
5bba350ed0c9ecb254ac7d8d2dd6eda6a02aad30
remove the file for now
app/assets/javascripts/application.js
app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
JavaScript
0
@@ -830,29 +830,8 @@ ker%0A -//= require projects%0A //=
714f6a54f9eaff4e6259f47ac7bb195fe4d0671f
Move bootstrap
app/assets/javascripts/application.js
app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
JavaScript
0.000001
@@ -605,51 +605,51 @@ ire -bootstrap-sprockets %0A//= require jquery_ujs +jquery_ujs%0A//= require bootstrap-sprockets %0A//=
3a8d3a2d6531ca296b7cf856a79470dd42b886eb
Add angular scripts to asset pipeline and include semantic-ui, clipboard, and ngclipboard
app/assets/javascripts/application.js
app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
JavaScript
0
@@ -648,18 +648,16 @@ ctives.%0A -// %0A//= req @@ -684,41 +684,151 @@ ire -jquery_ujs%0A//= require turbolinks +angular%0A//= require angular-ui-router%0A//= require angular-rails-templates%0A//= require semantic-ui%0A//= require clipboard%0A//= require ngclipboard %0A//=
524f714d7dc1855f7121dce1d1eedd91cfc8159f
Fix function names in examples
lib/node_modules/@stdlib/math/base/random/f/lib/factory.js
lib/node_modules/@stdlib/math/base/random/f/lib/factory.js
'use strict'; // MODULES // var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); var isObject = require( '@stdlib/utils/is-plain-object' ); var chisquare = require( '@stdlib/math/base/random/chisquare' ).factory; var isnan = require( '@stdlib/math/base/utils/is-nan' ); var validate = require( './va...
JavaScript
0.008383
@@ -2220,24 +2220,25 @@ %09* var v = f +1 ();%0A%09* // re @@ -2611,24 +2611,25 @@ %09* var v = f +2 ( 3.0, 2.0 ) @@ -2622,32 +2622,32 @@ f2( 3.0, 2.0 );%0A - %09* // returns %3Cn @@ -2680,16 +2680,17 @@ ar v = f +2 ( 3.0, 0 @@ -2740,16 +2740,17 @@ ar v = f +2 ( 0.0, 2 @@ -2780,32 +2780,32 @@ %0A%09*%0A%09* ...
6a446acb7146e8276f90a40b7b81a737d421f9f1
fix require of the same files in application.js
app/assets/javascripts/application.js
app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
JavaScript
0.000001
@@ -619,80 +619,8 @@ ujs%0A -//= require underscore%0A//= require backbone%0A//= require prediction_note%0A //=
b5aa0411415a0028bbfc35648ab00111fe5e38f5
add js file
app/assets/javascripts/application.js
app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
JavaScript
0.000001
@@ -661,16 +661,43 @@ u_theme%0A +//= require review_history%0A //= requ
52ecb8fe120ada025be48f1a5ce1690f04e9bf1d
Use `turbolinks:load` when DOM is ready to load JS modules
app/assets/javascripts/application.js
app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
JavaScript
0.000001
@@ -2345,11 +2345,13 @@ rs%0A%0A -var +const ini @@ -2353,26 +2353,25 @@ t initialize -_m +M odules = fun @@ -2375,16 +2375,17 @@ function + () %7B%0A A @@ -3813,18 +3813,20 @@ function + () + %7B%0A $(do @@ -3837,64 +3837,16 @@ nt). -ready(initialize_modules);%0A $(document ).on('turbolinks +on('page ...
eb6b981848ed74a1952da5912902c2820ff65b60
Load facebook javascript asynchronously
app/assets/javascripts/board/index.js
app/assets/javascripts/board/index.js
$(document).ready(function() { var Grid = Backbone.View.extend({ id: "grid", tagName: "div", className: "no_select", initialize: function() { // standard size is 19x19 for(var i = 0; i < 361; ++i) { var node = new Node(); node.grid = this; this.nodes[i] = node; ...
JavaScript
0.000004
@@ -322,30 +322,8 @@ %7D%0A%0A - // init sidebar%0A @@ -2242,12 +2242,644 @@ ().el);%0A%7D);%0A +%0Awindow.fbAsyncInit = function() %7B%0A FB.init(%7B%0A appId : '331109186984431',%0A channelUrl : '//go-game.heroku.com/channel.html', // Channel File%0A status : true, // check login stat...
1bb84cb7a732145fdbdd232ceb4ade4d2551480a
Fix throwing of errors on other pages for cmd bar
app/assets/javascripts/command_bar.js
app/assets/javascripts/command_bar.js
var applyTextcomplete = function($element) { var textcompletesPath = $element.attr('data-textcomplete-path'); var strategies = [{ match: /(^|\s)((#|@|:)\w*)$/, search: function(query, callback) { $.getJSON(textcompletesPath, { query: query }) .done(function(response) { callback(re...
JavaScript
0
@@ -2697,16 +2697,55 @@ area');%0A +%0A if (!$textarea.length)%0A return;%0A%0A applyT
92ae4281c8f85354cc15456ea6b8da18929d3f88
Print number inputs in CSV
app/assets/javascripts/csvDownload.js
app/assets/javascripts/csvDownload.js
PT = PT || {}; PT.downloadCsv = function(serverResponse){ var survey = serverResponse.survey; var responses = serverResponse.responses; var a = document.createElement('a'); var csvString = ""; //Write title & prompts csvString += survey.title + "\n"; csvString += 'Date of submission,"Location of submiss...
JavaScript
0.000018
@@ -743,16 +743,52 @@ %22string%22 + %7C%7C typeof(answer.value) == %22number%22 )%7B%0A
95a521dfa39a08b796c7ba7b647051090f50f50d
remove keyword default
app/assets/javascripts/flash_cards.js
app/assets/javascripts/flash_cards.js
export default class FlashCard { constructor(id, term, definition, studySet){ this.id = id, this.term = term, this.definition = definition, this.studySet = studySet } }
JavaScript
0.000002
@@ -4,16 +4,8 @@ ort -default clas
3c78c4848b4cd00b4a1e533956b21d67cb1103d0
Fix reveal of bombs
www/scripts/game/game.js
www/scripts/game/game.js
define(['zepto', 'random'], function($, r) { var rows = 9, cols = 9, bombs = 10, gameTable, isGameOver = true, isFirstMove = true, putBombs = function(except) { var bCount = bombs, x, y, curr; while(bCount > 0) { y = r.getRandomInt(0, rows-1); x ...
JavaScript
0.000002
@@ -3411,33 +3411,31 @@ (j = 0; j %3C -gameTable +currRow .length; j++
2a0473b43f2dbeb4a0570106662c2fb3c45651b3
cleanup BackgroundImg
app/components/BackgroundImg/index.js
app/components/BackgroundImg/index.js
import styled from 'styled-components'; const BackgroundImg = styled.div` position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; flex: 1 1 100%; align-self: stretch; background-image: url(${(props) => props.img}); background-repeat: no-repeat; background-position: bottom right; backgr...
JavaScript
0.999333
@@ -4,61 +4,173 @@ ort -styled from 'styled-components';%0A%0Aconst BackgroundImg +React from 'react';%0Aimport PropTypes from 'prop-types';%0Aimport styled from 'styled-components';%0A%0A/**%0A * Requires a parent with position: relative%0A */%0Aconst StyledDiv = s @@ -261,49 +261,8 @@ 0%25;%0A - flex: 1 1 100%2...
b280902c53c7ad38a78c33bae0b6431e3f05fc44
Resolve empty values for testing
app/components/convo/convo.service.js
app/components/convo/convo.service.js
// Written by Joshua Paul A. Chan (function() { "use strict"; // TODO: build summary of the $convoService // `$convoService` SERVICE // Serves the convo view by loading and manipulating specific conversations // // @pre : networking libs must be initialized // // @attr : apiUrl : String : base API url...
JavaScript
0.000005
@@ -3179,32 +3179,208 @@ olve, reject) %7B%0A + resolve(%7B%0A id: new Date(),%0A created_at : new Date(),%0A emailFrom : 'you',%0A body : message%0A %7D); %0A %7D);%0A @@ -4369,16 +4369,40 @@ ject) %7B%0A + resolv...
66ee2daed363ba84a26adfca86141b6d0c43b929
Clarify doc comment
fixtures/schema.js
fixtures/schema.js
const schema = require('js-schema'); /** * see https://github.com/molnarg/js-schema * * in short: * 'property' is required * '?property' is unused * '*' has to match all other properties * * we use "'*': Function" to disallow additional properties * since JSON has no function type */ const DMXValue = ...
JavaScript
0
@@ -143,22 +143,24 @@ rty' is -unused +optional %0A * '* @@ -182,14 +182,8 @@ all -other prop @@ -188,16 +188,38 @@ operties + that have no own rule %0A *%0A * w @@ -224,17 +224,17 @@ we use -%22 +%60 '*': Fun @@ -238,17 +238,17 @@ Function -%22 +%60 to disa @@ -3527,8 +3527,9 @@ cturers; +%0A
4b085e492b636827d3641accc5d0939f44b6dd88
switch version selector to options
app/containers/selectVersion/index.js
app/containers/selectVersion/index.js
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import config from '../../config'; import section from '../cssModules/section.scss'; import content from '../cssModules/content.scss'; export default class selectVersion extends Component { setVersion (version) { re...
JavaScript
0.000001
@@ -227,16 +227,65 @@ scss';%0A%0A +const values = %5B%0A '11.2.0-39',%0A '11.2.0-40'%0A%5D%0A%0A export d @@ -337,135 +337,508 @@ %7B%0A -setVersion (version) %7B +constructor (props) %7B%0A super(props)%0A this.state = %7B%0A selected: values%5B0%5D%0A %7D%0A this.setVersion = this.setVersion....
29cc4914702bd02b19c0fc0e67509270427a6277
fix !move
src/modules/ModTools.module.js
src/modules/ModTools.module.js
const SekshiModule = require('../Module') const debug = require('debug')('sekshi:mod-tools') export default class ModTools extends SekshiModule { constructor(sekshi, options) { super(sekshi, options) this.author = 'ReAnna' this.description = 'Provides moderation commands on the bot so you don\'t have t...
JavaScript
0.000001
@@ -1072,16 +1072,157 @@ t, pos)%0A + if (!/%5E%5Cd+$/.test(pos)) %7B%0A return this.sekshi.sendChat(%60@$%7Buser.username%7D Invalid position!%60)%0A %7D%0A pos = parseInt(pos, 10) - 1%0A let @@ -3959,8 +3959,9 @@ %7D%0A %7D%0A%0A%7D +%0A
53a19742d8c427cd632c3b4b540c4261c19e817f
add scss loader to test
test-config/webpack.test.js
test-config/webpack.test.js
/** * @authors: @qdouble and @AngularClass */ const webpack = require('webpack'); const root = require('../helpers').root; /** * Webpack Plugins */ const ProvidePlugin = require('webpack/lib/ProvidePlugin'); const DefinePlugin = require('webpack/lib/DefinePlugin'); const ForkCheckerPlugin = require('awesome-typesc...
JavaScript
0
@@ -3329,32 +3329,142 @@ dex.html')%5D %7D,%0A%0A + %7B%0A test: /%5C.scss$/,%0A loaders: %5B'to-string-loader', 'css-loader', 'sass-loader'%5D%0A %7D,%0A%0A /**%0A
fe712c678ab286525ed4c2debf10300f581959e6
replace assertJump for expectThrow
test/SimpleSavingsWallet.js
test/SimpleSavingsWallet.js
'use strict' import assertJump from './helpers/assertJump' const SimpleSavingsWallet = artifacts.require('../contracts/examples/SimpleSavingsWallet.sol') contract('SimpleSavingsWallet', function(accounts) { let savingsWallet let owner const paymentAmount = 4242 beforeEach(async function() { savingsWalle...
JavaScript
0
@@ -13,26 +13,27 @@ %0Aimport -assertJump +expectThrow from '. @@ -45,19 +45,21 @@ ers/ -assertJump' +expectThrow'; %0A%0Aco @@ -880,26 +880,26 @@ -try %7B%0A await +await expectThrow( savi @@ -951,127 +951,32 @@ er%7D) +) %0A - a -ssert.fail('should have thrown before')%0A %7D catch(erro...
5b0884a8867d0fae20d7c6f94a3dff9e8baf667d
Add ListSubheader to the list
src/styles/MuiThemeProvider.js
src/styles/MuiThemeProvider.js
// @flow weak import { Component, PropTypes } from 'react'; import { create } from 'jss'; import { createStyleManager } from 'jss-theme-reactor/styleManager'; import jssPreset from 'jss-preset-default'; import { createMuiTheme } from './theme'; export const MUI_SHEET_ORDER = [ 'Backdrop', 'Modal', 'Ripple', '...
JavaScript
0
@@ -614,16 +614,35 @@ ction',%0A + 'ListSubheader',%0A 'List'
5f6d57c8cb311512c4f7ba0c100a22b36d7141c1
remove verbose option in tests of start command
test/commands/start.spec.js
test/commands/start.spec.js
'use strict' var path = require('path') var fs = require('fs') var childProcess = require('child_process') var should = require('should') var utils = require('../utils') var instanceHandler = require('../../lib/instanceHandler') var start = require('../../lib/commands/start').handler describe('start command', functio...
JavaScript
0.000003
@@ -2550,31 +2550,8 @@ %7D -,%0A verbose: true %0A
a860450d06c2f4d33d539e116025d9928df4b858
Use isTrue() over equal(true)
test/d3-funnel/d3-funnel.js
test/d3-funnel/d3-funnel.js
describe('D3Funnel', function () { var getFunnel, getSvg, getLength, getBasicData; beforeEach(function (done) { getFunnel = function () { return new D3Funnel('#funnel'); }; getSvg = function () { return d3.select('#funnel').selectAll('svg'); }; getLength = function (selection) { return selection[0...
JavaScript
0.999961
@@ -3147,20 +3147,15 @@ ert. -equal(true, +isTrue( /(%5E#
c10a7e4fe844a76211b99867b67fedffac234bd2
correct types
src/template-registry-entry.js
src/template-registry-entry.js
import {relativeToFile} from 'aurelia-path'; import {Origin} from 'aurelia-metadata'; export class TemplateDependency { constructor(src: string, name?: string){ this.src = src; this.name = name; } } export class TemplateRegistryEntry { constructor(id: string){ this.id = id; this.template = null;...
JavaScript
0.000009
@@ -569,20 +569,8 @@ te: -HTMLTemplate Elem
ca6f9a0897e3572aa8867335282ada3e7c25997e
Fix api-keys-item-view spec
lib/assets/test/spec/dashboard/views/api-keys/api-keys-list-item-view.spec.js
lib/assets/test/spec/dashboard/views/api-keys/api-keys-list-item-view.spec.js
const Backbone = require('backbone'); const ApiKeysListItemView = require('dashboard/views/api-keys/api-keys-list-item-view'); const AlertDialogView = require('dashboard/views/api-keys/alert-dialog-view'); const deleteKeyTemplate = require('dashboard/views/api-keys/alert-delete-key.tpl'); const regenerateKeyTemplate = ...
JavaScript
0.000001
@@ -928,20 +928,85 @@ -const view = +spyOn(ApiKeysListItemView.prototype, 'render').and.callThrough();%0A%0A return new @@ -1044,25 +1044,8 @@ s);%0A - return view;%0A %7D; @@ -2046,38 +2046,51 @@ Model.set('t -ype', 'default +oken', 'this_is_a_new_token ');%0A ex
22825c1eab1962e6ef635d09a205c4c5443aca0d
fix test-suite
src/__tests__/Button-test.js
src/__tests__/Button-test.js
/* global jest describe beforeEach it expect */ jest.dontMock('../components/Button'); jest.dontMock('../utils/inject-style'); jest.dontMock('../utils/union-class-names'); import React from 'react'; import TestUtils from 'react-addons-test-utils'; const injectStyle = require('../utils/inject-style'); // Babel would...
JavaScript
0.000023
@@ -1309,33 +1309,33 @@ expect(styles%5B -1 +2 %5D.pseudoClass).t @@ -4313,17 +4313,17 @@ (styles%5B -1 +2 %5D.pseudo @@ -4362,17 +4362,17 @@ (styles%5B -1 +2 %5D.style.
c4199157581921eecb53c0ff40f79b19f0ede08b
update workflow
.github/actions/update-historical/index.js
.github/actions/update-historical/index.js
// @ts-check const core = require("@actions/core"); const github = require("@actions/github"); async function main() { const token = core.getInput("github-token", { required: true }); const context = github.context; const octokit = github.getOctokit(token, { previews: ["ant-man-preview", "flash-preview"], ...
JavaScript
0.000588
@@ -1766,16 +1766,1675 @@ ll, 2)); +%0A%0A for (const isseToBeClosed of staleIssuesToBeClosed) %7B%0A await octokit.rest.issues.createComment(%7B%0A ...context.repo,%0A issue_number: isseToBeClosed.number,%0A body: %60Hi Folks %F0%9F%91%8B %0A%0AYou will have seen in our message above that we at Nrw...
8d368a8ef480bc96364beaf8baf97de14da76551
test fix
test/i18n.objectnotation.js
test/i18n.objectnotation.js
/*jslint nomen: true, undef: true, sloppy: true, white: true, stupid: true, passfail: false, node: true, plusplus: true, indent: 2 */ // now with coverage suport var i18n = require('../i18n'), should = require("should"); describe('Object Notation', function () { beforeEach(function () { i18n.configure({ ...
JavaScript
0.000001
@@ -1479,17 +1479,17 @@ pected, -t +w hen dot
e81f04c649f5c9982ca29ba4aa7964b59aef4c49
Add style to notifications to match bluemix-components demo page (#219)
.storybook/components/NotificationStory.js
.storybook/components/NotificationStory.js
import React from 'react'; import { action, storiesOf } from '@kadira/storybook'; import AppContainer from '../../components/AppContainer'; import Notification from '../../components/Notification'; const notificationProps = { toast: { onCloseButtonClick: action('onCloseButtonClick'), className: 'some-class',...
JavaScript
0
@@ -441,24 +441,81 @@ se button',%0A + style: %7B minWidth: '30rem', marginBottom: '.5rem' %7D,%0A %7D,%0A inlin
8751506dffceec2e3d12fbc37f8c06ce7c5abb03
add behavior to initialize tutorial
packages/bonde-admin-canary/src/scenes/Logged/components/Tutorial/Provider.js
packages/bonde-admin-canary/src/scenes/Logged/components/Tutorial/Provider.js
// Provider é responsável por unir componentes Dialog em um tutorial import React from 'react' import Context, { defaultContext } from './Context' class Provider extends React.Component { state = defaultContext // // Class attribute that stores all childrens keys // in rendering runtime, to update Provider st...
JavaScript
0
@@ -9,17 +9,18 @@ der -%C3%A9 +is respons %C3%A1vel @@ -19,80 +19,99 @@ pons -%C3%A1vel por unir componentes Dialog em um tutorial%0Aimport React from 'react +ible to union Dialog components%0Aimport React from 'react'%0Aimport PropTypes from 'prop-types '%0Aim @@ -378,16 +378,386 @@ s = %5B%5D%0A%0A + compone...
170e066433e9c670a4c9a5bcfdc686ae2861d9c3
update aria labels to match previous use
packages/node_modules/@webex/private-react-component-token-input/src/index.js
packages/node_modules/@webex/private-react-component-token-input/src/index.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {autobind} from 'core-decorators'; import RaisedButton from 'material-ui/RaisedButton'; import {RadioButtonGroup, RadioButton} from 'material-ui/RadioButton'; import {Card, CardActions, CardTitle, CardText} from 'material-ui/Card'; impo...
JavaScript
0
@@ -1807,32 +1807,39 @@ aria-label=%22 +Choose Access Token Typ @@ -2055,32 +2055,37 @@ aria-label=%22 +Type Access Token%22%0A @@ -2232,24 +2232,29 @@ aria-label=%22 +Type Guest Token%22
c55ed4e3143f18426aedade1edfb1d6b2ffa802a
fix eslint
src/ms/__tests__/merge.test.js
src/ms/__tests__/merge.test.js
import { toBeDeepCloseTo } from 'jest-matcher-deep-close-to'; import { isExportDeclaration } from 'typescript'; import { highResolution4, highResolution, simple, } from '../../../testFiles/examples'; expect.extend({ toBeDeepCloseTo }); describe('merge: Low resolution', () => { it('no options', () => { le...
JavaScript
0.998292
@@ -58,58 +58,8 @@ to'; -%0Aimport %7B isExportDeclaration %7D from 'typescript'; %0A%0Aim
c64c45c683b3f2427dcc5d35899482c213f66d15
make default act value more universal, start playing with binary button
openbas/client/openbas.js
openbas/client/openbas.js
Points = new Meteor.Collection("points"); if (Meteor.isClient) { var actuators = {}; var actuatorsDep = new Deps.Dependency; var getActuators = function(act_uuid) { actuatorsDep.depend(); return actuators[act_uuid] || {"Actuate": {"Model": {}, "States": [0,1000]}}; }; var updateActuators = functio...
JavaScript
0
@@ -250,18 +250,22 @@ Model%22: -%7B%7D +%22none%22 , %22State @@ -276,11 +276,8 @@ %5B0,1 -000 %5D%7D%7D; @@ -1601,196 +1601,569 @@ -//TODO: write methods to get min/max from the sMAP metadata and use that o create the slider%0A console.log(this.data.ActuatorUUID);%0A $(%22#%22+this.data.ActuatorU...
effc10a0a3d95ff96282cfb7381996cd630eca70
check for containerless formats last
src/audio/backend/sniffer.js
src/audio/backend/sniffer.js
const RIFF = 1380533830 | 0; const WAVE = 1463899717 | 0; const ID3 = 0x494433 | 0; const OGGS = 0x4f676753 | 0; const WEBM = 0x1A45DFA3 | 0; const AAC_1 = 0xFFF1 | 0; const AAC_2 = 0xFFF9 | 0; const mimeMap = { "audio/mp3": `mp3`, "audio/mpeg": `mp3` }; const extMap = { "mp3": `mp3` }; const probablyMp3H...
JavaScript
0
@@ -1551,127 +1551,8 @@ i);%0A - %7D else if ((value %3E%3E%3E 8) === ID3 %7C%7C probablyMp3Header(value)) %7B%0A return refine(%60mp3%60, fileView, i);%0A @@ -1830,32 +1830,151 @@ , fileView, i);%0A + %7D else if ((value %3E%3E%3E 8) === ID3 %7C%7C probablyMp3Header(value)) %7B%0A ...
2fc852ba7889cb5667a5d27eb247301cf1069750
Replace console.error with console.log .
src/baseUtils/logForBrowser.js
src/baseUtils/logForBrowser.js
(function(){ /* Make sure init function run once. */ if (window.logForBrowser) { return; } window.logForBrowser = true; JSON._parse = JSON.parse; JSON.parse = function(str) { try { return JSON._parse(str); } catch (e) { console.error('JSON.parse error, str:' + str, 'logForBrowser.j...
JavaScript
0.000004
@@ -131,277 +131,8 @@ e;%0A%0A - JSON._parse = JSON.parse;%0A JSON.parse = function(str) %7B%0A try %7B%0A return JSON._parse(str);%0A %7D catch (e) %7B%0A console.error('JSON.parse error, str:' + str, 'logForBrowser.js', 0, 0, e);%0A return %7B%7D;%0A %7D%0A %7D%0A%0A // console.log('logFo...
63469d30e4514136651ae0bbe08e2d3046b02024
Use `Object.setPrototypeOf` as `__proto__` could potentially be disabled (#387)
source/index.js
source/index.js
'use strict'; const ansiStyles = require('ansi-styles'); const {stdout: stdoutColor, stderr: stderrColor} = require('supports-color'); const { stringReplaceAll, stringEncaseCRLFWithFirstIndex } = require('./util'); // `supportsColor.level` → `ansiStyles.color[name]` mapping const levelMapping = [ 'ansi', 'ansi', ...
JavaScript
0
@@ -3445,27 +3445,30 @@ %09// -%60__proto__%60 is used +We alter the prototype bec @@ -3576,66 +3576,46 @@ pe%0A%09 -builder.__proto__ = proto; // eslint-disable-line no- +Object.setPrototypeOf(builder, proto +); %0A%0A%09b
3cd25c722c72f1121f6fb05eb0455b7954a0e331
Update model.js
source/model.js
source/model.js
// ##Model // object for maintaining data Struck.Model = function () { var Model = Struck.EventObject.extend({ baseInitiation: function(options) { Struck.EventObject.prototype.baseInitiation.apply(this, arguments); } }); Model.prototype.get = _.noop; Model.prototype.set = _.noop; Model.prototype.data = _....
JavaScript
0.000001
@@ -221,109 +221,386 @@ ;%0A%09%09 -%7D%0A%09%7D);%0A%0A%09Model.prototype.get = _.noop;%0A%09Model.prototype.set = _.noop;%0A%09Model.prototype.data = _.noop; +%09%0A%09%09%09this.data = this.options.data %7C%7C %7B%7D;%0A%09%09%7D%0A%09%7D);%0A%0A%09Model.prototype.get = Struck.Hook(%22get%22, function(prop) %7B%0A%...
c42057eedc4bcfc1bf7c7c9070761c396b2f7f51
Comment on function initializer.
magazine.js
magazine.js
var ok = require('assert').ok, slice = [].slice function detach (cartridge) { var magazine = cartridge._magazine, cache = magazine._cache magazine.heft -= cartridge.heft cache.heft -= cartridge.heft delete cache._cache[cartridge._compoundKey] magazine.count-- cache.count-- unlink(cartri...
JavaScript
0
@@ -1958,32 +1958,89 @@ (!cartridge) %7B%0A + // TODO Not expecting this. Is it used anywhere?%0A if (type