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
94d5412b97c4dba235d1ad30f936fc5c7fa84d5f
tweak height - it works to make width & height different
info.js
info.js
var w = screen.width * 0.30, h = screen.height * 0.42, r = 380, x = d3.scale.linear().range([0, r]), y = d3.scale.linear().range([0, r]), p = 15, label_rad = 25, node, root, fc1,fc2,fc3, chart_dyn, chart_type; if (typeof String.prototype.startsWith != 'function') { // see below for better implementation! Strin...
JavaScript
0
@@ -45,17 +45,17 @@ ht * 0.4 -2 +0 ,%0Ar = 38
d8643c551f65c51840e5d43b027cf05fad127f71
Make functions sync, add randomBytes
js/driver/virtio/rng.js
js/driver/virtio/rng.js
// Copyright 2014-2015 runtime.js project authors // // 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 ...
JavaScript
0.000002
@@ -1645,18 +1645,16 @@ unction( -cb ) %7B%0A @@ -1755,32 +1755,39 @@ ingIRQ();%0A +return reqQueue.fetchBu @@ -1775,39 +1775,34 @@ rn reqQueue. -f +g et -ch Buffer -s(cb +( );%0A %7D,%0A @@ -1837,12 +1837,8 @@ ngth -, cb ) %7B%0A @@ -1847,238 +1847,421 @@ -if (typeof length === 'functio...
9a5fa6001ca9909f0b5a5e5e8cc2249a16dbb00d
Add `fileName` to error
index.js
index.js
'use strict'; var ExecBuffer = require('exec-buffer'); var isPng = require('is-png'); var through = require('through2'); var zopfli = require('zopflipng-bin').path; module.exports = function (opts) { opts = opts || {}; return through.ctor({objectMode: true}, function (file, enc, cb) { if (file.isNull()) { cb(...
JavaScript
0.000029
@@ -794,24 +794,55 @@ %09if (err) %7B%0A +%09%09%09%09%09err.fileName = file.path;%0A %09%09%09%09%09cb(err)
c4ac78c110e401e7c8e568827ca570e1670290a2
Improve the accuracy of sentence boundary detection
src/preprocessors/en.js
src/preprocessors/en.js
import path from 'path'; import NLP from 'stanford-corenlp'; import _ from 'lodash'; const coreNLP = new NLP.StanfordNLP({ nlpPath: path.join(__dirname, '../../vendor/corenlp/corenlp'), version: '3.5.2', annotators: ['tokenize', 'ssplit'], extra: { 'tokenize.options': [ 'normalizeParentheses=false', ...
JavaScript
0.999992
@@ -244,167 +244,8 @@ '%5D,%0A - extra: %7B%0A 'tokenize.options': %5B%0A 'normalizeParentheses=false',%0A 'normalizeOtherBrackets=false',%0A 'asciiQuotes=true',%0A %5D.join(','),%0A %7D,%0A %7D);%0A
6c3c42d0d039a716965be367eb5ae18826ed4b60
Remove .min from .min.js - they will always be minified
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ // import project settings from package.json pkg: grunt.file.readJSON('package.json'), jasmine : { // test pre-build files in src/ testSrc : { src : 'src/**/*.js', options : { ...
JavaScript
0.000002
@@ -1620,28 +1620,16 @@ %7B -%0A src: ' @@ -1698,12 +1698,8 @@ %25%3E. -min. js'%0A
3fc4bc7a6352afcda46769ce59b329d8cc71a25a
Enable toasting
src/index.js
src/index.js
require('dotenv').config({ silent: true }); const request = require('request'); const { TOAST_THRESHOLD, UNTAPPD_BREWERY_ID, UNTAPPD_CLIENT_ID, UNTAPPD_CLIENT_SECRET, UNTAPPD_ACCESS_TOKEN, } = process.env; const AUTH = { client_id: UNTAPPD_CLIENT_ID, client_secret: UNTAPPD_CLIENT_SECRET, access_token...
JavaScript
0.000001
@@ -1677,33 +1677,8 @@ %7D;%0A - return resolve(req);%0A
6e4be2c0f776ced05a23f61fa02dd837cfb16453
use debug instead of console.log
index.js
index.js
var bip39 = require("bip39"); var hdkey = require('ethereumjs-wallet/hdkey'); var ProviderEngine = require("web3-provider-engine"); var FiltersSubprovider = require('web3-provider-engine/subproviders/filters.js'); var HookedSubprovider = require('web3-provider-engine/subproviders/hooked-wallet.js'); var ProviderSubprov...
JavaScript
0.000012
@@ -67,24 +67,82 @@ et/hdkey');%0A +var debug = require('debug')('truffle-hdwallet-provider')%0A var Provider @@ -2403,18 +2403,12 @@ %7B%0A -console.lo +debu g('g
f59bcd1f2cf80b66b13f37e49d4ef0a8143fd6b8
add sourcemap to Sass to CSS conversion in Grunt
Gruntfile.js
Gruntfile.js
/* Usage -------------- # run build tasks is build_state (default dev) # start watching for changes and build on changes grunt # build with compressed css and js # does NOT start watch grunt prod Project Setup -------------- # install grunt for this project (generates ./node_modules) # run from within this directory...
JavaScript
0
@@ -2445,16 +2445,33 @@ %22normal%22 +, sourcemap: true %7D,%0A @@ -2615,16 +2615,33 @@ pressed%22 +, sourcemap: true %7D,%0A
849591c54c2474a9e5552353b34989c1ce8bb40b
Fix ingress namespace issue
lib/shared/addon/components/new-edit-ingress/component.js
lib/shared/addon/components/new-edit-ingress/component.js
import { resolve } from 'rsvp'; import { get, set, computed } from '@ember/object'; import { alias } from '@ember/object/computed'; import { inject as service } from '@ember/service'; import Component from '@ember/component'; import NewOrEdit from 'shared/mixins/new-or-edit'; import layout from './template'; export de...
JavaScript
0.000217
@@ -2085,16 +2085,76 @@ %7C%7C %5B%5D); +%0A errors.pushObjects(get(this, 'namespaceErrors') %7C%7C %5B%5D); %0A%0A if
f6f780add115d299c7fa29585976da7a2e1a37fa
Fix double-click-to-zoom error
app/controllers/lunches/details/fullscreen.js
app/controllers/lunches/details/fullscreen.js
let nav; /** * Constructor */ (function constructor(args) { const images = args.images; const index = args.currentIndex; images.forEach(function(image) { const scrollView = Ti.UI.createScrollView({ contentWidth: 'auto', contentHeight: 'auto', top: 0, bottom: 0, backgroundColor: '#000', show...
JavaScript
0.000002
@@ -493,20 +493,119 @@ letap', -zoom +e =%3E %7B%0A%09%09%09$.images.setZoomScale(($.images.getZoomScale() === 1) ? 2 : 1, %7B%0A%09%09%09%09animated:true%0A%09%09%09%7D);%0A%09%09%7D );%0A%09%09scr @@ -1167,112 +1167,4 @@ %0A%7D;%0A -%0Afunction zoom() %7B%0A%09$.images.setZoomScale(($.images.getZoomScale() === 1)...
c02f6aaf5a4d4d1418dc6c4fbe05fac9830f584f
Add close method
index.js
index.js
var hid = require('node-hid') , hidParsers = require('./lib/parser') , stream = require('stream') , util = require('util') ; function hidDevice(path, opts) { if(!path) { return new Error("no HID path specified"); } if(!opts) { opts = {}; } if(!opts.parser) { opts.parser = hidParsers.raw; } else if(typeof opt...
JavaScript
0.000036
@@ -400,16 +400,32 @@ d%22);%0A%09%7D%0A +%09var dev = this; %0A%09this.o @@ -489,16 +489,107 @@ (path);%0A +%09this.close = function close() %7B%0A%0A%09%09dev.device && dev.device.close()%0A%09%09dev.emit('close')%0A%09%7D %0A%09stream
e4add347c7149406ff284c14185c3593916e2c0e
Convert client dotfiles to using callback and exported functions
lib/util/client_dotfiles.js
lib/util/client_dotfiles.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0.000001
@@ -1743,33 +1743,39 @@ ram %7BFunction%7D c -b +allback A callback fire @@ -1835,25 +1835,31 @@ = function(c -b +allback ) %7B%0A fsutil @@ -1887,17 +1887,23 @@ _cast, c -b +allback );%0A%7D;%0A%0A/ @@ -2039,33 +2039,39 @@ ram %7BFunction%7D c -b +allback A callback fire @@ -2184,17 +2184,23 @@ tpath, c -b...
946f6fe9ab2a9bf2489ec9bafb91ffec66bda75c
Update ep_github.js
ep_github.js
ep_github.js
var settings = require('ep_etherpad-lite/node/utils/Settings'), ghSettings = settings.users.github, githubAuth = require('github-auth'); var ghConfig = ghSettings.config; ghConfig.autologin = true; var gh = githubAuth(ghSettings.appId, ghSettings.appSecret, ghConfig); ...
JavaScript
0
@@ -557,16 +557,32 @@ pluginfw +%7Clocales%7Cfavicon )/)) %7B%0A
13a41836f42ac2f415fdd1defd46f4d289c5ecc5
Create logic for pulling translations
gulp/i18n.js
gulp/i18n.js
const gulp = require('gulp'); const fs = require('fs'); const hash = require('sha1'); const del = require('del'); const paths = require('vinyl-paths'); const scanner = require('i18next-scanner'); require('./static'); const options = { lngs : ['en'], // supported languages resource: { loadPath : 'sr...
JavaScript
0.000003
@@ -1,18 +1,17 @@ const -gulp +del = requi @@ -14,20 +14,19 @@ equire(' -gulp +del ');%0Acons @@ -53,20 +53,20 @@ ;%0Aconst -hash +gulp = requi @@ -73,12 +73,12 @@ re(' -sha1 +gulp ');%0A @@ -79,27 +79,28 @@ lp');%0Aconst -del +hash = require(' @@ -91,35 +91,36 @@ hash = require(' -del +sha1 ');%0Acon...
7a713cbf629d7a7ec51cd38467f1c123c449f68e
Make codeclimate happy
src/utils/format-date.js
src/utils/format-date.js
import moment from 'moment' import { formatLocalDateAsLocal, formatLocalDateAsUTC, formatUTCDateAsLocal, formatUTCDateAsUTC } from './index' export default function formatDate(args = [], outputType = 'utc', inputType = 'local') { const [year, month, date, hours, minutes, seconds] = args if (args.length ==...
JavaScript
0
@@ -147,23 +147,8 @@ x'%0A%0A -export default func @@ -158,16 +158,21 @@ n format +Local Date(arg @@ -193,20 +193,23 @@ Type - = 'utc', in +) %7B%0A if (out putT @@ -217,204 +217,176 @@ pe = += ' -local +utc ') %7B%0A -const %5Byear, month, date, hours, minutes, seconds%5D = args%0A%0A if (args.length ...
f7f996cc84fd764bcdf961e4db32401bb5eae692
Make hash algorithm configurable
index.js
index.js
var url = require('url'); var fs = require('fs'); var crypto = require('crypto'); var chalk = require('chalk'); var postcss = require('postcss'); var path = require('canonical-path'); var checksums = {}; module.exports = postcss.plugin('postcss-cachebuster', function (opts) { var pattern = /url\(('|")?([^'"\)]+)('...
JavaScript
0.000224
@@ -695,16 +695,68 @@ %7C%7C 'v'; +%0A opts.hashAlgorithm = opts.hashAlgorithm %7C%7C 'md5'; %0A%0A func @@ -1270,21 +1270,34 @@ ateHash( -'md5' +opts.hashAlgorithm )%0A
da34ed7402178c4d59ad89e42f2065c4f536d2b3
Fix TypeError
init.js
init.js
#!/usr/bin/env node var clor = require('clor') , sh = require('shelljs') , inquirer = require('inquirer') , glob = require('glob') , gitConfig = require('git-config') , path = require('path') , replace = require('replace') , optimist = require('optimist') , pjson = require('./package.json') , config ...
JavaScript
0.000003
@@ -3182,16 +3182,27 @@ e(readme +.toString() ).replac @@ -3943,16 +3943,27 @@ sh.pwd() +.toString() )%0A %7D%0A
702062ba0f07ccd711c424687acdd99fa1cba277
Fix missing database connection in migration
migrations/1596646314266-add_indexes_consent_version.js
migrations/1596646314266-add_indexes_consent_version.js
const mongoose = require('mongoose'); const { Schema } = mongoose; // eslint-disable-next-line no-unused-vars const { info, error } = require('../src/logger'); const { connect, close } = require('../src/utils/database'); const logger = require('../src/logger'); // use your own name for your model, otherwise other mi...
JavaScript
0.000114
@@ -992,272 +992,8 @@ );%0A%0A -// How to use more than one schema per collection on mongodb%0A// https://stackoverflow.com/questions/14453864/use-more-than-one-schema-per-collection-on-mongodb%0A%0A%0A// TODO npm run migration-persist and remove this line%0A// TODO update seed data and remove this line%0A%0A modu @@...
1af4c63d59d10a963c6a56e120381a7283e34e39
Remove extaeneous brace
lumify-web-war/src/main/webapp/js/util/withContextMenu.js
lumify-web-war/src/main/webapp/js/util/withContextMenu.js
define([], function() { 'use strict'; return withContextMenu; function withContextMenu() { this.after('initialize', function() { this.bindContextMenuClickEvent(); }); this.bindContextMenuClickEvent = function() { this.$node.find('.dropdown-menu a').off('c...
JavaScript
0.000001
@@ -446,23 +446,8 @@ ));%0A - %7D)%0A
cdc08ae7842ea385730594a27005c1882be73dd2
fix counting editor size
lib/views/templateEditor.js
lib/views/templateEditor.js
/* global atom */ const path = require('path'); const scrollbar = require('perfect-scrollbar'); const fs = require('fs'); const LINE_HEIGHT = 22; const getVisibleItemsCount = () => { const editorHeight = atom.workspace.getActiveTextEditor().element.offsetHeight; return Math.floor(editorHeight / LINE_HEIGHT); } c...
JavaScript
0.000004
@@ -221,37 +221,69 @@ ace. -getActiveTextEditor().element +paneContainer.element.getElementsByClassName('item-views')%5B0%5D .off @@ -344,16 +344,17 @@ GHT);%0A%7D%0A +%0A const ge
8ea12591428b430f36c83ada50d80f55b70ab794
Add cssmin to dev dependencies
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { files: ['lib/**/*.js', 'public/js/*.js'], options: { jshintrc: '.jshintrc' } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= gru...
JavaScript
0
@@ -410,32 +410,154 @@ files: %7B%0A + 'public/js/dist/login.min.js': 'public/js/login.js',%0A 'public/js/dist/app.min.js': 'public/js/app.js',%0A 'publi @@ -585,17 +585,16 @@ in.js': -%5B 'lib/**/ @@ -598,32 +598,261 @@ **/*.js' -, 'public/js/*.j +%0A %7D%0A %7D,%0A...
bdf19903bcd53e7508417f1ddc95de68a2d7b632
Change default endpoint api.kisi.io
src/index.js
src/index.js
import axios from 'axios'; import 'regenerator-runtime/runtime'; import humps from 'humps'; class KisiError extends Error { constructor(status, code = '000000', reason = null) { super('An error occurred interacting with the Kisi API.'); this.status = status; this.code = code; this.reason = reason; ...
JavaScript
0
@@ -369,29 +369,35 @@ -const mergedConfig = +this.client = axios.create( %7B%0A @@ -426,19 +426,15 @@ api. -get kisi. -com +io /',%0A @@ -584,54 +584,8 @@ %7D -;%0A%0A this.client = axios.create(mergedConfig );%0A%0A
8d9c7678d4bad96b6e6a35b536728dc4cd965358
update usage
commands/music/lyrics.js
commands/music/lyrics.js
/** * @file lyrics command * @author Sankarsan Kampa (a.k.a k3rn31p4nic) * @license GPL-3.0 */ const request = xrequire('request-promise-native'); exports.exec = async (Bastion, message, args) => { try { if (!message.guild.music.enabled) { if (Bastion.user.id === '267035345537728512') { return...
JavaScript
0.000031
@@ -2456,17 +2456,17 @@ SONG -_ + NAME%3E %5BA rtis @@ -2465,19 +2465,18 @@ %3E %5BA -rtist Name%3E +RTIST NAME %5D',%0A
2d07d2603319e7657577058b1b70970f40b00624
fix TextSearch
app/data/dataSource/listDataSourceStrategy.js
app/data/dataSource/listDataSourceStrategy.js
function ListDataSourceStrategy(dataSource) { this.dataSource = dataSource; this.getItems = function (dataProvider, resultCallback) { var dataSource = this.dataSource; var callback = function () { var args = Array.prototype.slice.call(arguments); if (resultCallback) { ...
JavaScript
0.000003
@@ -658,16 +658,17 @@ toEnum( +' FullText @@ -673,16 +673,17 @@ xtSearch +' ), //ful
d04cc998baa9f278ca4f9c320a34d44e86600d19
Fix npm run test:visual failing
gulp/test.js
gulp/test.js
var gulp = require('gulp'); var opener = require('opener'); var mocha = require('gulp-mocha'); var browser = require('browser-sync'); // Runs unit tests gulp.task('test', ['sass:foundation', 'javascript:foundation', 'test:sass', 'test:javascript', 'watch'], function() { browser.init({ server: 'test/visual' }); gul...
JavaScript
0.00441
@@ -213,40 +213,8 @@ on', - 'test:sass', 'test:javascript', 'wa
4727e0c42c57b0b48841e0a0652a24d485e48c8a
fix grunt release:bower
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { var pkg = require('./package.json'); var globalConfig = { repo: pkg.repository.url }; // Project configuration. grunt.initConfig( { globalConfig: globalConfig, jshint: { all: ['Gruntfile.js', 'index.js', 'test/*...
JavaScript
0
@@ -1880,35 +1880,37 @@ , %5B'exec:release -Npm +Bower '%5D);%0A grunt.r
b0df79525a1e839c4af57c043b266369c2263890
store new videos
src/utils/updateInfos.js
src/utils/updateInfos.js
const updateInfos = (db, foundInfos, skipInfos) => { const updateVideos = foundInfos.map(async info => { const result = await db .collection('videos') .findOne({ code: info.code, 'videos.source': info.source }); if (!result) { await db.collection('videos').updateOne( { code: info.co...
JavaScript
0
@@ -807,16 +807,586 @@ ); +%0A%0A await db.collection('new_videos').updateOne(%0A %7B code: info.code %7D,%0A %7B%0A $setOnInsert: %7B%0A title: info.title,%0A models: info.models,%0A img_url: info.img_url,%0A code: info.code,%0A ...
ccec94ace0aa075971257f2982ce9bc7d4caced0
Set current local board
metorgtrello/web/main.js
metorgtrello/web/main.js
// --- BEGIN Global variables ----------------------------------- // --- END Global variables ------------------------------------- // Retrieves the available local boards. function getLocalBoards() { statusBase = "getting local boards ..."; updateStatus(statusBase, true); query = "?cmd=get_backedup_board...
JavaScript
0
@@ -126,16 +126,787 @@ ------%0A%0A +// Returns the current local board (as a jQuery selector of the corresponding %3Ctr%3E element)%0A// or undefined if no current local board exists.%0Afunction currentLocalBoard() %7B%0A var tr = $(%22#table_lboards tr.selectedRow:first%22);%0A return (tr.length %3E 0) ? tr : ...
3ca7f0439389019fbd6463c5c0a658beef59b005
Update Inventory Movement Unit Test
test/inventory/inventory-movement/report.js
test/inventory/inventory-movement/report.js
require("should"); var InventoryMovement = require("../../data-util/inventory/inventory-movement-data-util"); var helper = require("../../helper"); var validate = require("dl-models").validator.inventory.inventoryMovement; var InventoryMovementManager = require("../../../src/managers/inventory/inventory-movement-manag...
JavaScript
0
@@ -2040,16 +2040,33 @@ );%0A%7D);%0A%0A +var filter = %7B%7D;%0A it('#04. @@ -2186,16 +2186,24 @@ xcelTest +, filter )%0A
cc8a4bce93cb644a3419d15efe71a65ff495122b
Fix require
app/client/js/fink.js
app/client/js/fink.js
'use strict' ;(function (Fink, fetch, _isURI) { Fink.isURI = function (uri) { return _isURI(uri, window.location.hostname) } Fink.register = function (uri) { return fetch(Fink.endpoint, { method: 'post', headers: { 'Accept': 'application/json', 'Content-Type': 'application/js...
JavaScript
0.000001
@@ -694,20 +694,30 @@ ch, -window.isURI +require('fink-is-uri') ); /
bcb612ebfcd469910182e4a482fb139b3326a10b
add option for recursion
index.js
index.js
var cameraVector = new THREE.Vector3(), rayCaster = new THREE.Raycaster(); function hitTest(x, y, camera, objects) { cameraVector.set( x, -y, 0.5 ); rayCaster.setFromCamera(cameraVector, camera); return rayCaster.intersectObjects( objects ); } hitTest.testGrid = function(x, y, camera, objects, cols, rows) { col...
JavaScript
0.000002
@@ -109,16 +109,27 @@ objects +, recursive ) %7B%0A%09cam @@ -248,16 +248,27 @@ objects +, recursive );%0A%7D%0A%0Ah
0d605349be8d7504d81a606963a0d6305c47f386
Add missing indexed property to primitive.
src/framework/components/light/spotlight_system.js
src/framework/components/light/spotlight_system.js
pc.extend(pc.fw, function () { /** * @name pc.fw.SpotLightComponentSystem * @constructor Create a new SpotLightComponentSystem * @class A Light Component is used to dynamically light the scene. * @param {Object} context * @extends pc.fw.ComponentSystem */ var SpotLightComponentSyst...
JavaScript
0
@@ -4478,24 +4478,74 @@ umIndices(); +%0A mesh.primitive%5B0%5D.indexed = true; %0A%0A
86e1faf9805c4f1d8944dc5bfdda1981da65b276
disable FEATURES for now
addon/core.js
addon/core.js
/** @module ember-data */ /** All Ember Data methods and functions are defined inside of this namespace. @class DS @static */ /** @property VERSION @type String @default 'VERSION_STRING_PLACEHOLDER' @static */ /*jshint -W079 */ var DS = Ember.Namespace.create({ VERSION: 'VERSION_STRING_PLACEHOLDER'...
JavaScript
0
@@ -410,16 +410,19 @@ ON);%0A%7D%0A%0A +// var EMBE
1dc3c9a24dc63d1314aa5c7148c19ce259d13cf9
Check reporter
lib/MultiReporters.js
lib/MultiReporters.js
/* global require, module, console */ var _ = { get: require('lodash/get'), camelCase: require('lodash/camelCase'), size: require('lodash/size'), after: require('lodash/after'), merge: require('lodash/merge') }; var debug = require('debug')('mocha:reporters:MultiReporters'); var fs = require('fs');...
JavaScript
0
@@ -3155,16 +3155,29 @@ return +reporter && ( typeof r @@ -3203,16 +3203,17 @@ unction' +) ;%0A %7D)
2f5ed43d05c8b63347ad995fe6e428c0f747bfe5
remove semicolon
index.js
index.js
// module.exports = require('./build/Release/StormLib.node'); var bindings = require('bindings')('StormLib'); module.exports = { extract: function(Archive, File) { // 'replay.attributes.events', // 'replay.details', // 'replay.game.events', // 'replay.initData', // 'replay...
JavaScript
0.999999
@@ -602,18 +602,16 @@ j;%0A %7D -;%0A %0A%7D;%0A%0A//
86af9438de114efaee7f38b6803359520fc80191
REturn the callback result in NetFlowStorage
lib/NetFlowStorage.js
lib/NetFlowStorage.js
/*jslint node: true */ 'use strict'; var EsConnect = require('./EsConnect'); var inet = require('inet'); function NetFlowStorage(es, logger, config) { var esCon = new EsConnect(es, logger, config); this.host = config.get('ElasticSearchConfig.elasticsearch_host'); this.shards = config.get('ElasticSearchC...
JavaScript
0
@@ -5036,16 +5036,23 @@ +return callback
8dcd14cfe751a9464b4e5e226f6863e1a672a529
update to qunit plugin to new plugin framework
plugins/juxtapo.qunit/juxtapo.qunit.js
plugins/juxtapo.qunit/juxtapo.qunit.js
/* * Adds on qunit functionality to any page */ window.QUnitDone = false; (function($){ var libUrl = juxtapo.utils.resolveAbsoluteUrl(juxtapo.coreJsUrl(), '../lib/'); juxtapo.utils.requireResource(libUrl + "qunit.css"); //juxtapo.utils.requireResource(libUrl + "qunit.js"); var dropDown = null; var selectedTempla...
JavaScript
0
@@ -278,16 +278,17 @@ );%0A%0Avar +_ dropDown @@ -296,16 +296,16 @@ = null;%0A - var sele @@ -370,16 +370,211 @@ ded = 0; +%0Avar _qunitHtml = document.createElement('div');%0A_qunitHtml.innerHTML = '%3Ch2 id=%22qunit-header%22%3Etest suite%3C/h2%3E%3Ch3 id=%22qunit-banner%22%3E%3C/h3%3E%3Ch3 id=%22qunit-userAgen...
25f664f77b238be83794e261512946e5af9c419b
add uglify to default task
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { files: { cwd: 'src', src: '**/*.js', dest: 'dist', expand: true } }, jshint: { dev: { src: ['src/*...
JavaScript
0.000001
@@ -495,14 +495,24 @@ 'jshint' +, 'uglify' %5D);%0A%7D;
f2ef23a1d7bcc3e47e1d9ed2abac7278889e9319
Format `nyc` property of `package.json`.
libexec/dots/node/format.js
libexec/dots/node/format.js
#!/usr/bin/env node var $ = require('programmatic') var pwd = process.cwd(), path = require('path') var json = require(path.join(pwd, 'package.json')) ;[ 'dependencies', 'devDependencies' ].forEach(function (property) { for (var module in json[property]) { var loaded = require(path.join(pwd, 'node_module...
JavaScript
0
@@ -1046,16 +1046,23 @@ scripts' +, 'nyc' %0A %5D)%0A @@ -4580,16 +4580,599 @@ n%5Bkey%5D)%0A + if (key == 'nyc') %7B%0A return $('%5Cn%5C%0A ' + JSON.stringify(key) + ': %5Cn%5C%0A %7B ...
3e50aab31626e8984eb7c3ba0f7138cd0f90d837
Fix incorrect double quotes
index.js
index.js
module.exports = { plugins: [ "stylelint-scss" ], rules: Object.assign( require('./rules/errors.js'), require('./rules/features.js'), require('./rules/scss.js'), require('./rules/style.js') ) };
JavaScript
0.999871
@@ -27,17 +27,17 @@ ns: %5B%0A%09%09 -%22 +' stylelin @@ -46,9 +46,9 @@ scss -%22 +' %0A %5D
2b28a1fad14cc4faccfc5f9928b222497c162674
fix nit
Gruntfile.js
Gruntfile.js
/*jslint node:true*/ /** * Gruntfile for freedom-for-firefox.jsm * * This repository provides firefox (extension and os app) * specific packaging of the freedom.js library. * * Here are the common tasks defined: * build * - Lint source and compile * - (Default task) * - Unit tests for sanity checking possible...
JavaScript
0.000451
@@ -1850,37 +1850,8 @@ %5D -,%0A keepBrowser: true %0A
cdaf2ed53cc5eeedab2e2e7ae4805170f05a3165
add pollInterval of 30 seconds
Gruntfile.js
Gruntfile.js
var request = require('request'); var safari_browsers = [ { browserName: 'safari', platform: 'OS X 10.10', version: '8.0' } ]; var chrome_browsers = [ { browserName: 'chrome', platform: 'OS X 10.10', version: '44.0' }, { browserName: 'chrome', platform: 'Windows 10', version: '43.0' }, { br...
JavaScript
0
@@ -2542,24 +2542,76 @@ SDK Tests',%0A +%09%09%09%09%09pollInterval: 30000, // check every 30 seconds%0A %09%09%09%09%09statusC @@ -2627,16 +2627,31 @@ pts: -1, + // try forever %0A%09%09%09%09%09br
21007244342ee45a8e1eaddda769250a90c88c8b
Add task to minify es6 and cjs module
Gruntfile.js
Gruntfile.js
/*jshint node:true*/ // Generated on <%= (new Date).toISOString().split("T")[0] %> using // <%= pkg.name %> <%= pkg.version %> "use strict"; // # Globbing // for performance reasons we"re only matching one level down: // "test/spec/{,*/}*.js" // If you want to recursively match all subfolders, use: // "test/spec/**/*...
JavaScript
0.000005
@@ -2188,32 +2188,410 @@ %22dist%22: %7B%0A + %22options%22: %7B%0A %22screwIE8%22: true%0A %7D,%0A %22files%22: %7B%0A %22dist/ipv4-address.min.js%22: %22ipv4-address.js%22%0A %7D%0A %7D,%0A %...
d1fd42ecbbd70594865ec1199ab6ad91a733aa73
Refactor interal interface
index.js
index.js
/** * @author Titus Wormer * @copyright 2015 Titus Wormer. All rights reserved. * @module unist:util:visit * @fileoverview Recursively walk over unist nodes. */ 'use strict'; /** * Walk forwards. * * @param {Array.<*>} values - Things to iterate over, * forwards. * @param {function(*, number): boolean} ca...
JavaScript
0
@@ -56,30 +56,24 @@ rmer -. All rights reserved. +%0A * @license MIT %0A * @@ -175,943 +175,31 @@ %0A%0A/* -*%0A * Walk forwards.%0A *%0A * @param %7BArray.%3C*%3E%7D values - Things to iterate over,%0A * forwards.%0A * @param %7Bfunction(*, number): boolean%7D callback - Function%0A * to invoke.%0A * @return %...
d81eeb02be9256ca02c3559cc4202edbc732c9ba
Correct comments, tweak logging
test/www/jxcore/lib/CoordinatorConnector.js
test/www/jxcore/lib/CoordinatorConnector.js
/** * Class used for connecting & communicating with the coordinator server * It's responsibilities are to maintain a connection with the test server * and to translate events to/from it. */ 'use strict'; var util = require('util'); var io = require('socket.io-client'); var EventEmitter = require('events').EventEm...
JavaScript
0
@@ -2023,29 +2023,8 @@ log( -%22Socket message: %22 + msg @@ -2566,30 +2566,8 @@ y)%0A%0A - console.log(tests);%0A if @@ -3669,38 +3669,46 @@ have completed -set up +test execution %0A this.socket.e
663fceb02a12f13a206ec9c4b9c87b2538499083
Deploy on the bundles.
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt){ grunt.initConfig({ less: { main: { src: [ 'node_modules/normalize-css/normalize.css', 'node_modules/codemirror/lib/codemirror.css', 'node_modules/codemirror/theme/neo.css', 'src/main.css' ], des...
JavaScript
0
@@ -777,20 +777,22 @@ s: 'src/ -**/* +bundle .%7Bcss,js
a3e4db16cea4585d4b1a8ee66067e067c8f90c61
allow for preset value on selectable button
selectable-button.js
selectable-button.js
(function ($) { var container = '<div class="btn-group selectable-button"/>'; var template = '<a class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">' + ' <span class="title"></span>' + ' <span class="caret"></span>' + '</a>' + ...
JavaScript
0
@@ -1348,24 +1348,51 @@ eturn;%0A + if ($(this).data(%22value%22)) selectEl.va
8a7eaaac101b35b68c3816ed10a4f957ac59c22f
fix indent
index.js
index.js
var annotation = require('css-annotation') module.exports = function plugin (css, options) { options = options || {} var annotations = annotation.parse(css) return function (root) { var matchedRules = [] root.eachRule(function (node) { if (checkUse(node)) { an...
JavaScript
0.00006
@@ -7280,32 +7280,36 @@ text%0A %7D)%0A + if (text.mat @@ -7332,32 +7332,36 @@ turn true%0A %7D%0A + return false%0A%7D%0A%0A @@ -7768,24 +7768,28 @@ %0A %7D)%0A + if (text @@ -7823,16 +7823,20 @@ e%0A %7D%0A + return f
8edfcb707a15de8ed420a371015c607a9178c9a9
Improve example for html snippets
index.js
index.js
module.exports = { book: { assets: "./book", js: [ "test.js" ], css: [ "test.css" ], html: { "head:start": "<!-- head:start -->", "head:end": "<!-- head:end -->", "body:start": "<!-- body:start -->", ...
JavaScript
0.000023
@@ -158,24 +158,268 @@ html: %7B%0A + %22html:start%22: function() %7B%0A return %22%3C!-- Start book %22+this.options.title+%22 --%3E%22%0A %7D,%0A %22html:end%22: function() %7B%0A return %22%3C!-- End of book %22+this.options.title+%22 --%3E%22%0A ...
5cbb2ebab0f0ec4535347ef2b669b5aa7b7090e8
fix some issues in the gruntfile
Gruntfile.js
Gruntfile.js
var path = require('path'); module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.loadNp...
JavaScript
0.000008
@@ -1368,17 +1368,9 @@ %5D -%0A%0A var +, ban @@ -5549,32 +5549,33 @@ n('port-test') %7C +%7C 9002,%0A @@ -5729,16 +5729,17 @@ test') %7C +%7C 9002,%0A
c8c71aaf4898b01d3cb97a327f9efe22e65862ae
improve error handling in webpackBuild.js, https://github.com/phetsims/chipper/issues/899
js/grunt/webpackBuild.js
js/grunt/webpackBuild.js
// Copyright 2019-2020, University of Colorado Boulder /** * Runs webpack - DO NOT RUN MULTIPLE CONCURRENTLY * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ 'use strict'; // modules const chipperGlobals = require( './chipperGlobals' ); const fs = require( 'fs' ); const path = require( 'path' ); const...
JavaScript
0
@@ -4577,41 +4577,121 @@ ole. -log( stats );%0A reject( err +error( 'Webpack build errors:', stats.compilations.errors );%0A reject( err %7C%7C stats.compilation.errors%5B 0 %5D );%0A
8ed6f352948fe646e476b1013cfb801d45550bf7
set poll to 60 seconds
index.js
index.js
var _ = require('lodash'), async = require('async'), AWS = require('aws-sdk'), cloudwatch = new AWS.CloudWatch(), dynamodb = new AWS.DynamoDB(), lynx = require('lynx'), lynxInstance = undefined; var tables = []; function metrics() { if (!lynxInstance) { lynxInstance = new lynx(process.env.STATSD_URL...
JavaScript
0.000001
@@ -2284,17 +2284,17 @@ essAll, -1 +6 0000);%0A
9569868b1b516fe4d33c2e1a5bffceafec032d4c
fix opts
index.js
index.js
/*! * template-toc <https://github.com/jonschlinkert/template-toc> * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; var isPrimitive = require('is-primitive'); var extend = require('extend-shallow'); var toc = require('markdown-toc'); module.exports = function(app, optio...
JavaScript
0
@@ -1721,17 +1721,16 @@ %0A if -( (opts.no @@ -1740,10 +1740,10 @@ ert -&& +%7C%7C !op @@ -1751,17 +1751,16 @@ s.insert -) %7C%7C opts @@ -1944,25 +1944,24 @@ );%0A %7D;%0A -%0A next()
74713cfab7f8e5df8cbdfa18353f9e1803bbbda5
Allow specifying buoy port
server/groovebuoy.js
server/groovebuoy.js
var WebsocketServer = require("websocket").server; var WebsocketConnection = require("websocket").connection; var http = require("http"); var Buoy = require("./buoy").Buoy; var staticServer = require("./static"); // Extend the WebSocketConnection prototype to allow easy JSON WebsocketConnection.prototype.sendJSON = fu...
JavaScript
0
@@ -438,16 +438,53 @@ Server); +%0Avar port = process.env.PORT %7C%7C 8844; %0A%0Ahttp_s @@ -496,20 +496,20 @@ .listen( -8844 +port , functi @@ -557,14 +557,15 @@ port - 8844%22 +%22, port );%0A%7D
672d2027862f61ca3643774acd84a7e1aea2d01e
Fix deprecation removeSelf -> remove
index.js
index.js
'use strict'; var postcss = require('postcss'); var extend = require('extend'); var variablesPattern; var parametersPattern; var propertyKeyDelimiter; var customPropertyPattern; var signatureSeparator = ':'; // Adds a property definition to properties var define = function (properties, rule, options) { var signat...
JavaScript
0.000008
@@ -1396,28 +1396,24 @@ rule.remove -Self ();%0A%7D;%0A%0A// A @@ -2124,12 +2124,8 @@ move -Self ();%0A
95b32a7cb357774acf5225740e6b0beffbeafa3e
Fix typo
index.js
index.js
var browserify = require('browserify'); var es6ify = require('es6ify'); module.exports = function middleware(opts) { var opts = opts || {}; opts.add = opts.add || []; opts.transform = opts.transform || []; opts.options = opts.options || {}; if(!opts.entry) { throw new Error('You must specify browserify e...
JavaScript
0.999999
@@ -350,17 +350,17 @@ %0A %7D%0A i -t +f (!opts.p
6fd41c9aa32e9cacad73b038273ce09c0aba2aaa
add dynamic route loading
index.js
index.js
process.title = 'rachelandjoey' const hapi = require('hapi') , path = require('path') , fs = require('fs') , atomifyCSS = require('atomify-css') , React = require('react') , jace = require('jace') , browserify = require('browserify') , entryJs = require('./components/home/index.jsx') , config = jace({ ...
JavaScript
0.000001
@@ -495,16 +495,76 @@ ).packs%0A + , routes = bulkRequire(__dirname, %5B'routes/*.js'%5D).routes%0A , _ = @@ -3512,16 +3512,47 @@ %7D%0A%7D)%0A%0A +server.route(_.values(routes))%0A %0Aconst s @@ -3687,33 +3687,35 @@ ', 'init'%5D, -'started' +server.info )%0A %7D)%0A%7D)%0A_.
e7b7fd8a6c08006114611360e581ddf2c444ba2d
make properties enumerable and just throw the error
index.js
index.js
'use strict'; /** * Cache results of the first function call to ensure only calling once. * * ```js * var lazy = require('lazy-cache')(require); * // cache the call to `require('ansi-yellow')` * lazy('ansi-yellow', 'yellow'); * // use `ansi-yellow` * console.log(lazy.yellow('this is yellow')); * ``` * * @pa...
JavaScript
0
@@ -627,16 +627,66 @@ name, %7B%0A + enumerable: true,%0A configurable: true,%0A ge @@ -883,78 +883,8 @@ ) %7B%0A - err.message = 'lazy-cache ' + err.message + ' ' + __filename;%0A
37000226a23bab8cec82fa8a715596d790a0c639
remove chotto from `load-grunt-tasks` pattern array
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; var opn = require('opn'); var options = { pkg: require('./package'), // <%=pkg.name%> // Global Grunt vars. Edit this file to change vars config : require('./_grunt-configs/config.js') }; // Load grunt tasks automatically require('load-grunt-tasks')(grun...
JavaScript
0.000001
@@ -340,18 +340,8 @@ t-*%22 -, %22chotto%22 %5D%7D);
594e32f28567ed00edad9db146e4e3e308e8bf8f
Simplify wrong number checker
index.js
index.js
/*! * Percent v1.0.3 (http://git.io/percentjs) * Licensed under the MIT license. */ 'use strict'; /* * Percent calculation */ exports.calc = function (value, total, decimal, sign) { var wrong = [NaN, Infinity, -Infinity]; var i; // Set defaults if (sign === null) { sign = false; } // Avoid arg...
JavaScript
0.999118
@@ -586,51 +586,47 @@ if ( +%5B value - === i %7C%7C total === i %7C%7C decimal === i +, total, decimal%5D.indexOf(i) %3E -1 ) %7B%0A
809099b8433926e7948646779910d5120d9e8c01
allow underscore redefinition, modules have their own scopes
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json'], updateConfigs: [], commit: true, commitMessage: 'Release v%VERSION%', commitFiles: ['package.json'], createTag: tr...
JavaScript
0
@@ -989,20 +989,19 @@ _: -fals +tru e,%0A
74c91b6bf8f82da5f553b5a00b71c752e1c34477
Split fetch in two functions, and makse sure to refetch grant 1 sec before expire
index.js
index.js
var fs = require('fs'); var redis = require('redis'); var slack = require('slack-notify')(process.env.SLACK_URL); // ------------------ var SpotifyWebApi = require('spotify-web-api-node'); var spotifyApi = new SpotifyWebApi({ clientId: process.env.SPOTIFY_CLIENT_ID, clientSecret: process.env.SPOTIFY_CLIENT_SECRE...
JavaScript
0
@@ -1402,16 +1402,17 @@ Client, +( data.bod @@ -1425,24 +1425,32 @@ res_in*1000) + - 1000) ;%0A %7D, fun @@ -2576,16 +2576,93 @@ tDate);%0A + doFetchPlaylistTracks(offset) %0A%7D%0A%0Afunction doFetchPlaylistTracks(offset) %7B %0A spoti @@ -3484,17 +3484,19 @@ -f +doF etchPlay
430ed674648cd743509d275b35e1fe33ce721ed8
add wget
server/local/help.js
server/local/help.js
#!/usr/bin/env node var help = ''; help += '--- General Purpose ---\n'; help += 'cat \t-- concatenate files.\n'; help += 'cd \t-- change directory.\n'; help += 'ls \t-- list files.\n'; help += 'tree \t-- show directory tree.\n'; help += 'grep \t-- search file contents.\n'; help += 'exit \t-- exit HyperNode.\n'; help ...
JavaScript
0.000007
@@ -670,32 +670,82 @@ S requests.%5Cn';%0A +help += 'wget %5Ct-- download binary resources.%5Cn';%0A help += 'ifconfi
fc348ba2086b391730e7cb503daf00763c97eae7
Change js concatenation order
Gruntfile.js
Gruntfile.js
/*jshint node:true*/ module.exports = function (grunt) { 'use strict'; var banner, umdStart, umdMiddle, umdEnd, umdStandardDefine, umdAdditionalDefine, umdLocalizationDefine; banner = '/*!\n' + ' * jQuery Validation Plugin v<%= pkg.version %>\n' + ' ...
JavaScript
0.000046
@@ -1513,33 +1513,105 @@ ': %5B +%0A 'src/co -r +oki e.js', - 'src/*.js' +%0A 'src/*.js'%0A %5D%0A
888362c427e3927f3656b33e0388da8ac47de8ac
Fix some Gruntfile lints
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // JS eslint targets var lint = { targets: [ 'src/**/*.js' ] }; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), localConfig: (function(){ try { ...
JavaScript
0.000007
@@ -268,30 +268,19 @@ nction() + %7B%0A - @@ -289,28 +289,16 @@ try %7B%0A - @@ -353,28 +353,16 @@ json');%0A - @@ -376,26 +376,15 @@ atch + (e) %7B%0A - @@ -422,34 +422,10 @@ - %7D%0A +%7D%0A ...
1279388f537dd677dc6e80587062ec74fbe46108
Add multiple rules
index.js
index.js
const ALLOWED_MAGIC_NUMBERS = [-1, 0, 1, 2, 3, 10, 100, 1000]; const MAX_ALLOWED_COMPLEXITY = 5; const MAX_LINE_LENGTH = 150; /* fix --> indicates that rule can be "auto-fixed" by ESLint */ module.exports = { env: { // node: true, // es6: true, browser: true }, globals: { ...
JavaScript
0.000001
@@ -1164,16 +1164,61 @@ EXITY%5D,%0A + 'consistent-this': %5B'warn', 'self'%5D,%0A /*fix*/ @@ -1229,32 +1229,32 @@ ly': %5B'error'%5D,%0A - 'default @@ -2770,32 +2770,104 @@ ls': %5B'error'%5D,%0A + 'no-lone-blocks': %5B'error'%5D,%0A /*fix*/'no-lonely-if': %5B'error'%5D,%0A 'no-mag...
ff6f3e2c546d67a82e3dbca03a8dcdc78dc98d6b
Remove duplicate coveralls task
Gruntfile.js
Gruntfile.js
"use strict"; module.exports = function (grunt) { grunt.initConfig( { jshint: { src: [ 'lib/**/*.js', 'test/**/*.js' ], options: { node: true, esversion: 6, expr: true } }, mochaTest: { src:...
JavaScript
0.005196
@@ -2616,127 +2616,8 @@ %7D,%0A%0A - coveralls: %7B%0A cmd: 'cat coverage/lcov.info %7C ./node_modules/.bin/coveralls'%0A %7D,%0A%0A
ea78d20b31f14f3a2ee2584e9f478b250356fa20
Fix #6: update MathJax to 2.4
index.js
index.js
module.exports = { book: { assets: "./book", js: [ "https://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML", "plugin.js" ] } };
JavaScript
0
@@ -115,9 +115,9 @@ x/2. -0 +4 -lat @@ -204,8 +204,9 @@ %7D%0A%7D; +%0A
18b598bc568baab5cb047afb781f940c60ea81bd
update scroll control
src/views/layout_view.js
src/views/layout_view.js
import React from 'react'; import Immutable from 'immutable'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Link, NavLink, withRouter } from 'react-router-dom'; import { MENU } from 'constants/constants.js'; import Tag from 'components/tag'; import ListItem from 'components...
JavaScript
0.000001
@@ -1434,24 +1434,134 @@ %7D%0A %7D%0A%0A + componentWillUnmount() %7B%0A window.removeEventListener('touchmove', this.handleTouch, false);%0A %7D%0A%0A // %E8%8F%9C%E5%8D%95%E6%8E%A7%E5%88%B6%0A @@ -1560,16 +1560,16 @@ // %E8%8F%9C%E5%8D%95%E6%8E%A7%E5%88%B6%0A - hand @@ -1721,24 +1721,8...
76d855e459551d25f5e91008584a0a16e8de1ce5
clean up
server/nodemailer.js
server/nodemailer.js
'use strict' var xoauth2 = require('xoauth2'); var nodemailer = require('nodemailer'); var smtp = require('nodemailer-smtp-transport'); const giffy = require('../giffy.js') var giphy = require('giphy-api')(); //using secrets does not work - i have secrets on my laptop // need to add FindUser in case user exists modu...
JavaScript
0.000001
@@ -130,16 +130,19 @@ port');%0A +// const gi
4196a454727aca89e3303cf2817c10cd946c39af
fix so typeahead works better with lock
public_static/scripts/edit.js
public_static/scripts/edit.js
define(['jquery', 'inheritance', 'ajaxify', 'typeahead', 'domReady!'], function($, inheritance, ajaxify) { var instance = null; var Edit = Class.extend({ init: function () { if (instance !== null) { throw Error('Only one instance of Edit allowed!'); } ...
JavaScript
0.000001
@@ -503,26 +503,27 @@ in -ternalInit +itTypeahead : functi @@ -542,33 +542,68 @@ -var that = this;%0A +$(%22#edit input%5Bname=artists%5D%22).typeahead('destroy'); %0A @@ -627,32 +627,45 @@ ut%5Bname=artists%5D +:not(.locked) %22).typeahead(%7B%0A @@ -790,32 +790,109 @@ ms%5D%22).typeahead...
d6a0cd2151856e878e674d4b1cc37971a07bf046
Renamed grunt task 'build' to 'compile'. New 'build' and 'rebuild' tasks
Gruntfile.js
Gruntfile.js
/** * The following bash code gets the difference from the build website and the git repos website * * (diff <(git ls-files www | sort) <(find build/www -type f | sed 's/^build\///' | sort)) | grep -e '^>' | cut -c 2- */ module.exports = function(grunt) { // var path = require('path'); require('load-grunt-con...
JavaScript
0.999954
@@ -1754,13 +1754,23 @@ %09 * -Build +Compiles/update s pr @@ -1775,23 +1775,16 @@ project -to dist %0A%09 */%0A @@ -1803,21 +1803,23 @@ erTask(' -build +compile ', funct @@ -1954,32 +1954,34 @@ onfig');%0A%09%7D);%0A%09%0A +%09%0A %09/**%0A%09 * Cleans @@ -1977,88 +1977,30 @@ %09 * -Cleans and build the...
906628c5038b0d6876ffdf42db4452292ff6e8b2
support key left right
index.js
index.js
(function (factory) { if (typeof exports !== 'undefined') { var $ = require('jquery') require('jquery-mousewheel')($) module.exports = factory($) } else if (window.jQuery && window.jQuery.fn.mousewheel) { window.Slider = factory(window.jQuery) } else { throw new Error('require jQuery, jQuery-mousewheel')...
JavaScript
0.000002
@@ -1412,15 +1412,52 @@ KEY_ -UP = 38 +LEFT = 37%0Avar KEY_UP = 38%0Avar KEY_RIGHT = 39 %0Avar @@ -1595,16 +1595,40 @@ = KEY_UP + %7C%7C e.which === KEY_LEFT ) %7B%0A%09%09%09s @@ -1674,16 +1674,41 @@ KEY_DOWN + %7C%7C e.which === KEY_RIGHT ) %7B%0A%09%09%09s
ea7301efba0f70b74096fe15274f78d31d68cb64
reset to gadm28 when changing location
app/javascript/pages/country/header/header.js
app/javascript/pages/country/header/header.js
import { bindActionCreators } from 'redux'; import { createElement, PureComponent } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { COUNTRY } from 'pages/country/router'; import isEqual from 'lodash/isEqual'; import { getAdminsOptions, getActiveAdmin, getAdminsSe...
JavaScript
0
@@ -252,16 +252,124 @@ Equal';%0A +import remove from 'lodash/remove';%0Aimport %7B decodeUrlForState, encodeStateForUrl %7D from 'utils/stateToUrl'; %0Aimport @@ -1772,18 +1772,416 @@ rops) =%3E -%0A +%7B%0A const %7B query %7D = ownProps.location;%0A const widgetQueries = %7B%7D;%0A if (query) %7B%0A con...
4678ade106aaf5dacfea69414dc94a27c827ae6e
Apply limits
index.js
index.js
/** * Module dependencies */ var apac = require('apac') , path = require('JSONPath').eval , transforms = require('./transforms') , _ = require('underscore'); var price = module.exports = function (itemId, opts) { return new Price(itemId, opts); }; var Price = function Price (itemId, opts) { this.mode = 'l...
JavaScript
0
@@ -3384,24 +3384,187 @@ %0A %7D);%0A%0A + // Apply limits%0A if (that._limit) %7B%0A result = _.first(result, limit);%0A %7D%0A%0A if (that._one) %7B%0A result = _.first(result);%0A %7D%0A%0A return
04ca74744b417d7cad3b2d84ba0e985ee0e18d75
Replace qunit tasks by the mocha's ones
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function (grunt) { // Load all grunt tasks require('load-grunt-tasks')(grunt); // Show elapsed time at the end require('time-grunt')(grunt); // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('package.json'), banner: '/*! <%= pkg.na...
JavaScript
0.998806
@@ -1862,29 +1862,29 @@ hint:src', ' -qunit +mocha '%5D%0A %7D,%0A @@ -1970,21 +1970,21 @@ test', ' -qunit +mocha '%5D%0A @@ -2124,46 +2124,8 @@ );%0A%0A - grunt.loadNpmTasks('grunt-mocha');%0A%0A // @@ -2198,13 +2198,13 @@ ', ' -qunit +mocha ', '
7a7de55271046ddc8991ca0ff15d0e6ff49d4bbd
add helper text to group import modal
app/jsx/groups/components/GroupImportModal.js
app/jsx/groups/components/GroupImportModal.js
/* * Copyright (C) 2020 - 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
@@ -704,209 +704,305 @@ ort -React, %7BuseState%7D from 'react'%0Aimport ReactDOM from 'react-dom'%0Aimport I18n from 'i18n!groups'%0Aimport CanvasModal from 'jsx/shared/components/CanvasModal'%0Aimport %7BFileDrop%7D from '@instructure/ui-forms' +* as apiClient from '../apiClient'%0Aimport CanvasModal from 'jsx/shar...
b94cd597e867d046af006ec04ac0b1d8c5a855ef
check the mili version of template
src/loadTemplateConfig.js
src/loadTemplateConfig.js
#!/usr/bin/env node const cosmiconfig = require('cosmiconfig') const fs = require('fs') const { promisify } = require('util') const git = require('simple-git/promise') const { join } = require('path') const throwError = require('./throwError') const paths = require('./paths') const sa = require('sanitization') const se...
JavaScript
0
@@ -338,16 +338,76 @@ emver')%0A +const %7B version: miliVersion %7D = require('../package.json')%0A %0A%0A// con @@ -1956,16 +1956,697 @@ ')%0A %7D%0A%0A + if (config.engines && semver.validRange(config.engines)) %7B%0A if (!semver.satisfies(miliVersion, config.engines)) %7B%0A if (semver.ltr(miliVersion,...
cf626366bb1d35493c801dc9bfe00c08ccb62a10
Add method isAvailable in file index.js
index.js
index.js
'use strict' import { NativeModules, DeviceEventEmitter } from 'react-native'; const googleFit = NativeModules.RNGoogleFit; class RNGoogleFit { constructor() { } authorizeFit() { googleFit.authorize(); } //Will be deprecated in future releases getSteps(dayStart,dayEnd) { ...
JavaScript
0.000002
@@ -4182,32 +4182,280 @@ %7D);%0A %7D%0A%0A + isAvailable(callback) %7B // true if GoogleFit installed%0A googleFit.isAvailable(%0A (msg) =%3E %7B%0A callback(msg,false);%0A %7D,%0A (res) =%3E %7B%0A callback(false,res);%0A %7D...
f1ba8df524a594d94035875762b59b7a27aada7c
build standard objects for response errors
app/js/app.js
app/js/app.js
/* * Copyright 2015 Caleb Brose, Chris Fogerty, Rob Sheehy, Zach Taylor, Nick Miller * * 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...
JavaScript
0.000001
@@ -1667,24 +1667,246 @@ tService) %7B%0A +%0A function error(response) %7B%0A return %7B%0A Cause: response.data.Cause %7C%7C 'unknown',%0A Message: resposne.data.Message %7C%7C 'An unknown error occured. Please submit a bug report.'%0A %7D;%0A %7D%0A%0A return %7B @@ -2...
f74d483ef6db77bb2aec0eb6f44afb4e5ecc9d0c
modify send message
server/routes/api.js
server/routes/api.js
import express from 'express'; import GXChainService from '../services/GXChainService'; import jdenticon from 'jdenticon'; import crypto from 'crypto'; import IPFSService from '../services/IPFSService'; import superagent from 'superagent'; import config from '../../config'; var wabt = require('wabt')(); let router = ...
JavaScript
0.000018
@@ -588,16 +588,23 @@ es.send( +String( total_su @@ -604,24 +604,25 @@ otal_supply) +) ;%0A %7D else @@ -677,16 +677,23 @@ es.send( +String( circulat @@ -702,16 +702,17 @@ gSupply) +) ;%0A %7D
53c2e78f31716364c8c04f7baee105965b1e9afa
remove object.assign from export code
lib/api/util/index.js
lib/api/util/index.js
'use strict'; const fileExport = require('./file-export'); module.exports = Object.assign({}, fileExport);
JavaScript
0.000002
@@ -14,26 +14,34 @@ %0A%0Aconst -fil +%7B generat eExport + %7D = requi @@ -83,35 +83,24 @@ s = -Object.assign(%7B%7D, fil +%7B generat eExport -) + %7D ;%0A
dca4938a8cd0cb0d1198d955e1e569519d126eae
fix GET messages
vj4/ui/components/messagepad/reducers/dialogues.js
vj4/ui/components/messagepad/reducers/dialogues.js
import _ from 'lodash'; export default function reducer(state = {}, action) { switch (action.type) { case 'DIALOGUES_LOAD_DIALOGUES_FULFILLED': { return _.keyBy(action.payload.messages, '_id'); } case 'DIALOGUES_CREATE': { const { id, user } = action.payload; return { ...state, [id]: { ...
JavaScript
0.000023
@@ -152,53 +152,306 @@ -return _.keyBy(action.payload.messages, +const %7B messages, udict %7D = action.payload;%0A return _.keyBy(%0A _.filter(%0A _.map(messages, m =%3E (%7B%0A sendee_udoc: udict%5Bm.sendee_uid%5D,%0A sender_udoc: udict%5Bm.sender_uid%5D,%0A ...m,%0A ...
da91036abf60ce3f0b0fa6a1d426f94f3be88542
set isReady default using explicit false, not undefined
index.js
index.js
'use strict' var cont = require('cont') var pull = require('pull-stream') var PullCont = require('pull-cont') var path = require('path') var Obv = require('obv') var explain = require('explain-error') var Looper = require('pull-looper') var paramap = require('pull-paramap') //take a log, and return a log driver. //the...
JavaScript
0.000108
@@ -972,34 +972,32 @@ !== -undefined ? isReady : true +false ? true : undefined )%0A%0A @@ -1139,30 +1139,24 @@ ) =%3E mapper( -null, data, cb))%0A @@ -1213,22 +1213,16 @@ mapper( -null, data.val @@ -1361,20 +1361,46 @@ =%3E +%7B%0A if(err) cb(err)%0A else mapper( -err, valu @@ -1405,16 +1405,2...
7fbe7ef5eb409e59f60584bde2a4ab31a461440b
Add magic Jest config property to Make Unit Tests Work Again (MUTWA)
jest.config.js
jest.config.js
/* eslint-env node */ module.exports = { // to uncomment to display logs. // verbose: false, roots: ["<rootDir>/src"], preset: "ts-jest", testEnvironment: "jsdom", testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"], collectCoverageFrom: [ "src/**/*.ts", "!src/**/index.ts", "!**/__tests__/**", ],...
JavaScript
0
@@ -168,16 +168,226 @@ jsdom%22,%0A + // Without this, Jest just fails when importing rxjs, for some arcane%0A // ESM-vs-CommonJS reasons linked to how it works internally.%0A moduleNameMapper: %7B%0A '%5Erxjs$': require.resolve('rxjs'),%0A %7D,%0A testMa
174d58b59fb25f673d9898921233695c43c24270
remove config.rb from ignored files by ftpush
Gruntfile.js
Gruntfile.js
"use strict"; module.exports = function(grunt) { require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); grunt.initConfig({ watch: { options: { livereload: true }, html: { files: "**/*.php" }, sass: { files: "dev/scss/**/*.scss", ta...
JavaScript
0
@@ -2930,31 +2930,8 @@ n%22,%0A - %22config.rb%22,%0A
c15baefa48f0f308d61301d665180e0db7e99b0e
Fix error when no options are passed
index.js
index.js
var deselectCurrent = require('toggle-selection'); function copy(text, options) { var reselectPrevious, selection, range, mark, debug, message; debug = options.debug || false; message = options.message || 'Copy to clipboard: Ctrl+C, Enter'; try { reselectPrevious = deselectCurrent(); range = document...
JavaScript
0.000004
@@ -140,16 +140,50 @@ essage;%0A + if (!options) %7B options = %7B%7D; %7D%0A debug
d12d1f6a322b306f81ceae064919d36c03a867c5
Fix express deprecation warning for app.del
lib/apps/api/index.js
lib/apps/api/index.js
"use strict"; var express = require('../../express-inherit'), apiRequireUser = require('../../apps/auth').apiRequireUser, base_url = require('../../middleware/route').base_url, about = require('../about'), config = require('config'), user = require('../../authorization'), popitApi = require('p...
JavaScript
0.999655
@@ -590,16 +590,19 @@ _app.del +ete ( '*',
a61be131b75067294e33f9c07d1adbd540051068
disable autofocus for course search
modules/gob-web/modules/course-searcher/searcher.js
modules/gob-web/modules/course-searcher/searcher.js
// @flow import React from 'react' import {toPrettyTerm} from '@gob/school-st-olaf-college' import {Card} from '../../components/card' import {LabelledSelect} from './labelled-select' import {FlatButton} from '../../components/button' import toPairs from 'lodash/toPairs' import Loading from '../../components/loading' ...
JavaScript
0
@@ -2050,16 +2050,19 @@ %7D%0A%09%09%09%09%09%09 +// autoFocu
6f9a4864e9aa040fd731eeec28ddd398bbde8265
Fix typo.
src/io/bt.js
src/io/bt.js
const JSONRPCWebSocket = require('../util/jsonrpc-web-socket'); const ScratchLinkWebSocket = 'wss://device-manager.scratch.mit.edu:20110/scratch/bt'; // const log = require('../util/log'); class BT extends JSONRPCWebSocket { /** * A BT peripheral socket object. It handles connecting, over web sockets, to ...
JavaScript
0.001604
@@ -1289,25 +1289,24 @@ lose = this. -_ handleDiscon
548df09f78ea0225cc8fc53abb5f52e46152bd22
add comment
loading/platform-loading.js
loading/platform-loading.js
/** * Created by Jackey Li on 2015/12/9. */ (function (angular) { 'use strict'; // var prefix = 'app/components/'; var prefix = ''; angular.module(globals.appName).directive('platformLoading', [function () { return { restrict: 'EA', replace: true, ...
JavaScript
0
@@ -137,16 +137,309 @@ = '';%0A%0A + /**%0A * @example%0A * angular.module(globals.appName).controller('myTestController',%0A * %5B'$scope', '$platformLoading',%0A * function ($scope, $platformLoading) %7B%0A%09 *%09%09 $scope.openLoading = function () %7B%0A%09 *%09%09%09 $platformLoading.show();%...
ce74dc9b85f0b7925a303031bdf40031340c54a5
Fix issue with voting
modules/core/server/controllers/core.server.controller.js
modules/core/server/controllers/core.server.controller.js
'use strict'; /** * Render the main application page */ exports.renderIndex = function (req, res) { res.render('modules/core/server/views/index', { user: req.user || req.session.user || null }); }; /** * Render the server error page */ exports.renderServerError = function (req, res) { res.status(500).re...
JavaScript
0.000021
@@ -160,16 +160,24 @@ er: req. +session. user %7C%7C @@ -176,32 +176,24 @@ user %7C%7C req. -session. user %7C%7C null
a173ece7833ac73b8774397b23065bc056dc1cd5
fix minimizer javascript
Gruntfile.js
Gruntfile.js
/*jshint node: true, -W106 */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ concat: { css: { src: ['frontend/app/View/**/*.css'], // array of folders dest: 'frontend/app/dist/norris-nrti.css' }, ...
JavaScript
0.000001
@@ -2216,24 +2216,92 @@ uglify: %7B%0A + options: %7B%0A mangle: false%0A %7D,%0A
b7fa939a6ccd35fa2f445cf46683ebde1ac4b8c9
update commit case message
index.js
index.js
"format cjs"; var wrap = require('word-wrap'); // This can be any kind of SystemJS compatible module. // We use Commonjs here, but ES6 or AMD would do just // fine. module.exports = { // When a user runs `git cz`, prompter will // be executed. We pass you cz, which currently // is just an instance of inquirer....
JavaScript
0
@@ -1475,16 +1475,10 @@ %E4%BF%A1%E6%81%AF ( -required +%E5%BF%85%E5%A1%AB ):%5Cn @@ -1862,11 +1862,10 @@ %E7%BB%86%E6%8F%8F%E8%BF%B0( -%E5%A6%82%E6%9E%9C%E6%9C%89 +%E5%8F%AF%E9%80%89 ):%5Cn @@ -2257,16 +2257,16 @@ is line%0A - va @@ -2352,16 +2352,266 @@ eWidth); +%0A if(answers.type === 'COMMIT') %7...
d8fa21c521737c79ccf89172363a33967ce5a7cc
Change how transformations are applied
fancyscript.js
fancyscript.js
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(['acorn', 'astgen', 'escodegen', 'estraverse'], factory); } else if (typeof exports === 'object') { module.exports = factory.call({}, require('acorn'), require('astgen'), require('escodegen'), require('estraverse')); } else { ...
JavaScript
0.000018
@@ -2886,24 +2886,64 @@ er (node) %7B%0A +%09%09if (node.rest === null) return node;%0A%0A %09%09var rest = @@ -3540,24 +3540,25 @@ de) %7B%0A%09%09if ( +! node.body.bo @@ -3570,26 +3570,15 @@ ngth -) %7B + %7C%7C %0A%09%09%09 -var last = node @@ -3618,28 +3618,15 @@ - 1%5D -;%0A%09%09%09if (last .type -= +!...
de8e9bf9774aefcee537d9ea7c9ec08692e2379c
fix css push bug, tests pass
index.js
index.js
var path = require('path'); var fs = require('fs'); var EOL = require('os').EOL; var through = require('through2'); var gutil = require('gulp-util'); var rev = require('gulp-rev'); module.exports = function (options) { options = options || {}; // cssmin, htmlmin, jsmin var startReg = /<!--\s*build:(css|js)(?:\(([^...
JavaScript
0
@@ -754,14 +754,8 @@ sDir - != '' )%0A%09%09 @@ -2875,16 +2875,23 @@ es.push( +newFile );%0A%09%09%09%09%09
2c21d61f48c11298d7f5a961cfefbadfa81e0886
Generate Container Component with React-Redux connect(): FooterLink
src/todo-redux-store-react.js
src/todo-redux-store-react.js
(() => { 'use strict'; const Redux = require('redux'), React = require('react'), // eslint-disable-line no-unused-vars Provider = require('react-redux').Provider, // eslint-disable-line no-unused-vars connect = require('react-redux').connect, // eslint-disable-line no-unused-vars ReactDOM = ...
JavaScript
0.999999
@@ -652,24 +652,408 @@ os;%0A %7D,%0A%0A + mapStateToLinkProps = (state, ownProps) =%3E %7B%0A return %7B%0A 'active': ownProps.filter === state.visibilityFilter%0A %7D;%0A %7D,%0A%0A mapDispatchToLinkProps = (dispatch, ownProps) =%3E %7B%0A return %7B%0A 'onClick': () =%3E %7B...
602737a7139735805d3e4c971bdf21e1922b7053
add analytics tracking for url to data download click events
js/views/download-bar.js
js/views/download-bar.js
var DeveloperPlayground = DeveloperPlayground || {}; DeveloperPlayground.DownloadView = Backbone.View.extend({ el: '#download-bar', template: _.template( $('#download-bar-template').html() ), events: { 'click .btn' : 'submit', }, // if (feature.get('display') !== false) { render: function() ...
JavaScript
0
@@ -1291,19 +1291,91 @@ json');%0A -%09%09%09 + ga('send', 'event', 'button', 'click', 'data download: '+url);%0A %0A%09%09%7D%0A%0A%09%09
0e0852b6f9d218c53a63d36b65b20e7e45b49e7b
Fix baseUrl
tests/dummy/app/components/document-page.js
tests/dummy/app/components/document-page.js
import Ember from 'ember'; import ajax from 'ic-ajax'; import config from '../config/environment'; export default Ember.Component.extend({ classNames: ['document-page'], url: null, body: null, didInsertElement: function() { var self = this; if (this.get('url')) { var url = this.get('url'); ...
JavaScript
0.000005
@@ -287,83 +287,13 @@ -var url = this.get('url');%0A%0A if (config.environment === 'production') +ajax( %7B%0A @@ -301,18 +301,17 @@ url - = +: Ember.S @@ -325,85 +325,55 @@ mt(' -/gloit-component%25@', this.get('url'));%0A %7D%0A%0A ajax(%7B%0A url: url +%25@%25@', config.defau...
a81b44f18ba135fb196849e13b43bb5c58fed2ae
Rename btnRef to copyBtnRef
components/CopyButton.js
components/CopyButton.js
import React from 'react'; import ClipboardJS from 'clipboard'; export default class CopyButton extends React.PureComponent { constructor(props) { super(props); this.btnRef = React.createRef(); this.clipboardRef = React.createRef(); } static defaultProps = { content: '', }; componentDidMoun...
JavaScript
0.000109
@@ -166,25 +166,29 @@ );%0A this. -b +copyB tnRef = Reac @@ -372,25 +372,29 @@ oardJS(this. -b +copyB tnRef.curren @@ -507,17 +507,21 @@ f=%7Bthis. -b +copyB tnRef%7D%0A