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
82680c4664c478fe6d15615748f8bec255d0dec5
Delete space
src/File.js
src/File.js
let md5 = require('md5'); let path = require('path'); let fs = require('fs-extra'); let uglify = require('uglify-js'); let UglifyCss = require('clean-css'); class File { /** * Create a new instance. * * @param {string} filePath */ constructor(filePath) { this.absolutePath = path.res...
JavaScript
0.003279
@@ -1116,18 +1116,16 @@ %7D%0A%0A%0A -%0A%0A /**%0A
3e6b79a6f71697765d93948b724f441bd97f5d16
rename set/isItemSelected
mixins/Selection.js
mixins/Selection.js
define(["dojo/_base/declare", "dojo/_base/array", "dojo/_base/lang"], function(declare, arr, lang){ return declare(null, { // summary: // Mixin for classes for widgets that manage a list of selected data items. Receiving class must extend // dijit/_WidgetBase. constructor: function(){ this.selectedItems...
JavaScript
0.000003
@@ -2239,20 +2239,16 @@ %0A%09%09%0A%09%09is -Item Selected @@ -2296,16 +2296,17 @@ eturns w +h ether an @@ -2833,20 +2833,16 @@ %09%09%0A%09%09set -Item Selected
b71ac85f6e77dd59043c2286df94f3a9f13ddf88
Include all associated users as field device_users in phonelog view
phonelog/_design/views/devicelog_data/map.js
phonelog/_design/views/devicelog_data/map.js
function(doc) { function clone(obj){ if(obj == null || typeof(obj) != 'object') return obj; var temp = obj.constructor(); // changed for(var key in obj) temp[key] = clone(obj[key]); return temp; } var error_tags = ['exception', 'rms-repair', 'rms-spill...
JavaScript
0
@@ -457,24 +457,278 @@ ereport') %7B%0A + var user_subreport_usernames = %5B%5D;%0A if (doc.form.user_subreport) %7B%0A for (var i in doc.form.user_subreport.user) %7B%0A user_subreport_usernames.push(doc.form.user_subreport.user%5Bi%5D.username);%0A %7D%0A %7D...
c90f7228c324f54835b3c3ad6608198e28b2ada6
set fb prod token correctly
client/internals/webpack/webpack.prod.babel.js
client/internals/webpack/webpack.prod.babel.js
// Important modules this config uses const path = require('path'); const webpack = require('webpack'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const OfflinePlugin = require('offline-plugin'); module.exports = require('./webpack.base.babel')({...
JavaScript
0.000001
@@ -2413,19 +2413,19 @@ 3471 -63215686508 +37092355787 ',%0A
63c6bec3f9c53b6bb972f2936d96d1984de7619b
debug mode
lib/shower/Shower.js
lib/shower/Shower.js
/** * @fileOverview */ modules.define('shower', [ 'event.Emitter', 'shower.Container', 'shower.Parser', 'shower.Player', 'shower.History', 'util.extend' ], function (provide, EventEmitter, Container, Parser, Player, History, extend) { /** * @name Shower * @constructor */ ...
JavaScript
0
@@ -1145,17 +1145,18 @@ // -d + D efault o @@ -1161,16 +1161,51 @@ options +.%0A debugMode: false, %0A @@ -1715,32 +1715,189 @@ History(this);%0A%0A + if (this.options.debugMode) %7B%0A document.body.classList.add('debug');%0A console.log('Debug...
47103c7ad9989bcec08215a26a0b649fde0e20d1
Fix incorrectly referenced variable
manifest.js
manifest.js
/** * Events: * dependenciesChange(differences, manifest, url) - When one or more dependencies for a manifest change * retrieve(manifest, url) - The first time a manifest is retrieved */ var events = require('events'); var request = require('request'); var moment = require('moment'); var exports = new events.Even...
JavaScript
0.000002
@@ -980,16 +980,17 @@ e if(dep +s 1%5Bkey%5D ! @@ -995,16 +995,17 @@ !== dep +s 2%5Bkey%5D)
9289e0ccbdd25ac4486a1eee428486beb10f2212
send template name as url param when rendering a report
src/helpers/preview.js
src/helpers/preview.js
import isObject from 'lodash/isObject' import resolveUrl from '../helpers/resolveUrl.js' function addInput (form, name, value) { const input = document.createElement('input') input.type = 'hidden' input.name = name input.value = value form.appendChild(input) } export default function (request, target) { d...
JavaScript
0
@@ -582,16 +582,61 @@ ue%0A %7D%0A%0A + const templateName = request.template.name%0A const @@ -676,16 +676,17 @@ 'form')%0A +%0A mapFor @@ -733,26 +733,244 @@ ST'%0A - mapForm.action = +%0A // we set the template name in url just to show a title in the preview iframe, the name%0A // won't be using at al...
d6ba3bccb532ee45321ca6426835809040362933
Remove selection restoring from auto list
src/wysihtml5/text_substitutions/auto_list.js
src/wysihtml5/text_substitutions/auto_list.js
import { Composer } from "../views/composer"; import { Constants } from "../constants"; var autoList = function(editor, composer, range, textContent, e) { var selectedNode = range.startContainer; var blockElement = composer.parentElement(selectedNode, { nodeName: ["P", "DIV", "LI"] }); if (blockElement && ...
JavaScript
0
@@ -436,66 +436,8 @@ ) %7B%0A - composer.selection.executeAndRestore(function() %7B%0A @@ -483,26 +483,24 @@ nt, %221.%22);%0A%0A - var de @@ -533,34 +533,32 @@ eRange();%0A - deleteRange.setS @@ -588,18 +588,16 @@ er, 0);%0A - de @@ -659,26 +659,24 @@ : 1);%0A - - ...
8c1650f937701d3cb19fc35eebcd74e6c9479d50
Fix default state in tactic reducer
src/reducers/tactics.js
src/reducers/tactics.js
import { combineReducers } from 'redux'; import * as types from '../constants/ActionTypes'; const tactic = (state = { teams: {} }, action) => { switch (action.type) { case types.CREATE_TACTIC_FULFILLED: { const id = action.payload.data.id; return { [id]: { id, ...action.meta.data } }; } defau...
JavaScript
0.000002
@@ -119,18 +119,18 @@ teams: -%7B%7D +%5B%5D %7D, acti @@ -292,16 +292,26 @@ eta.data +, ...state %7D %7D;%0A @@ -494,21 +494,25 @@ .tactic( -state +undefined , action
7af48d2f7047a32f04bbe4220c8fdd6e5babafd6
fix bug: change set of options
src/Game.js
src/Game.js
import React, { Component } from 'react'; import { Alert, Button } from 'react-bootstrap'; import banana from './images/banana.jpg'; import koala from './images/koala.jpg'; import panda1 from './images/panda1.jpg'; import panda2 from './images/panda2.jpg'; import panda3 from './images/panda3.jpg'; import popândău1 from...
JavaScript
0.000003
@@ -2811,50 +2811,33 @@ -correctIndex: Math.floor(Math.random() * 3 +question: chooseQuestion( ),%0A @@ -2847,21 +2847,23 @@ -panda +correct Index: M @@ -2890,16 +2890,17 @@ m() * 3) +, %0A
dbfb95de81ef664257f5108cf4e222fb9b034731
Add activityTypeSelection reactive var
client/views/activities/latest/latestByType.js
client/views/activities/latest/latestByType.js
Template.latestActivitiesByType.created = function () { // Create 'instance' variable for use througout template logic var instance = this; // Subscribe to all activity types instance.subscribe('allActivityTypes'); }; Template.latestActivitiesByType.helpers({ 'activityTypeOptions': function () { // Get...
JavaScript
0
@@ -216,17 +216,124 @@ Types'); - +%0A%0A // Create variable to hold activity type selection%0A instance.activityTypeSelection = new ReactiveVar(); %0A%7D;%0A%0ATem
c5a83b24ec2259c51f9bd36f95c5eaed71c9a34d
set default to null to avoid truthy test
lib/superapi/api.js
lib/superapi/api.js
// closure var serviceHandler = function(service) { /* * Below are the supported options for the serviceHandler: * * - data (object): request data payload * - params (object): use to replace the tokens in the url * - query (object): use to build the query string appended to the url * - callback (fun...
JavaScript
0
@@ -700,26 +700,28 @@ callback %7C%7C -%7B%7D +null ;%0A var ed @@ -741,18 +741,20 @@ edit %7C%7C -%7B%7D +null ;%0A%0A v @@ -806,24 +806,73 @@ query);%0A - if ( +%0A // edit request if function defined%0A if (edit && %22functio
a662d6b4bb79fab7554249568d5d6bdad26919f6
Remove unnecessary, deprecated import
lib/simple-notify.js
lib/simple-notify.js
const { Cc, Ci } = require('chrome'), data = require('sdk/self').data, prefs = require('sdk/preferences/service'), tabbrowser = require('sdk/deprecated/tab-browser'), timer = require('sdk/timers'), windowutils = require('sdk/deprecated/window-utils'); const addon_name = 'Copy ShortURL', ...
JavaScript
0.000011
@@ -124,66 +124,8 @@ '),%0A - tabbrowser = require('sdk/deprecated/tab-browser'),%0A
598a5ef291210bbf00af4304de772a2dcdba580c
Add markdown renderer title
lib/react/components/MarkdownEditor/index.js
lib/react/components/MarkdownEditor/index.js
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { Tab2, Tabs2 } from "@blueprintjs/core"; import MediaQuery from 'react-responsive'; import bp from '../utility/bp'; import MarkdownRenderer from '../MarkdownRenderer'; import MarkdownInput from './...
JavaScript
0
@@ -697,16 +697,42 @@ s.bool,%0A +%09%09title: PropTypes.string%0A %09%7D%0A%0A%09sta @@ -1146,16 +1146,90 @@ der() %7B%0A +%09%09const %7B title, content, disabled, hideHelp, hidePreview %7D = this.props;%0A %09%09const @@ -1649,22 +1649,42 @@ eading'%3E +%7Btitle ? title : ' Editor +'%7D %3C/div%3E%0A%09 @@ -...
e0d69c921fa858bd0682c596706bab8dcd2fe9be
Revert "Remap map data to {name, value}."
src/hierarchy/index.js
src/hierarchy/index.js
import node_count from "./count.js"; import node_each from "./each.js"; import node_eachBefore from "./eachBefore.js"; import node_eachAfter from "./eachAfter.js"; import node_find from "./find.js"; import node_sum from "./sum.js"; import node_sort from "./sort.js"; import node_path from "./path.js"; import node_ancest...
JavaScript
0
@@ -588,33 +588,29 @@ of Map) -return hierarchy( +%7B%0A data = %5Bundefin @@ -618,18 +618,26 @@ d, data%5D -, +;%0A if ( children @@ -654,23 +654,19 @@ ined - ? mapC +) c hildren : ch @@ -665,36 +665,31 @@ ren -: c += mapC hildren -).each(mapData);%0A +;%0A %7D else if @@ -704,32 +704,38 @@ n...
b0c2ff006ad5132db709e8d9171b90ce9039d925
adding missing semi-colons
src/Game.js
src/Game.js
'use strict' var updateCellNeighbor = function(neighbors, coordinates, position) { var index = (coordinates[0] + position[0]) + ',' + (coordinates[1] + position[1]); if (neighbors[index]) { neighbors[index].n++; } else { neighbors[index] = {'x': coordinates[0] + position[0], 'y': coordinates[1] + positio...
JavaScript
0.999711
@@ -333,16 +333,17 @@ %7D;%0A %7D%0A%7D +; %0A%0Avar ev @@ -1272,9 +1272,10 @@ Shape;%0A%7D +; %0A
a8192cfae7a14860c0176974ec72f712da6ff27c
Add autorun to update resident activities
client/views/activities/latest/latestByType.js
client/views/activities/latest/latestByType.js
Template.latestActivitiesByType.created = function () { // Create 'instance' variable for use througout template logic var instance = this; // Subscribe to all activity types instance.subscribe('allActivityTypes'); // Create variable to hold activity type selection instance.activityTypeSelection = new Rea...
JavaScript
0
@@ -436,16 +436,650 @@ veVar(); +%0A%0A instance.autorun(function () %7B%0A // Get activity type selection%0A var activityTypeSelection = instance.activityTypeSelection.get();%0A%0A if (activityTypeSelection) %7B%0A // Get latest resident activities for selected activity type%0A Meteor.call(%0A ...
f88617d701395fd88a0d6127226c5bf5840050fa
remove comments
test/application-test.js
test/application-test.js
// init the test client var client = restify.createJsonClient({ version: '*', url: 'http://0.0.0.0:8080' }); var jobId = "NEW" describe('service: applications', function() { beforeEach(function(done){ var collections = ["jobs", "applications"] var db = mongojs.connect("test", collections); db...
JavaScript
0
@@ -512,144 +512,8 @@ );%0A%0A -// beforeEach()%7B%0A// db.jobs.insert(%7Bposition:%22test position%22,description:%22test description%22%7D, function(err, job) %7B%0A// %7D);%0A// %7D%0A%0A de
346640a5f74c7f59068ef43ba6c242c990c7c557
Rely on string for scolarite Enum
lib/simulation/openfisca/mapping/individu.js
lib/simulation/openfisca/mapping/individu.js
var moment = require('moment'); var _ = require('lodash'); function formatDate(date) { return moment(date).format('YYYY-MM-DD'); } module.exports = { date_naissance: { src: 'dateDeNaissance', fn: formatDate }, age: { src: 'dateDeNaissance', fn: function (dateDeNaissanc...
JavaScript
0.99939
@@ -3035,17 +3035,26 @@ onnue': -0 +'Inconnue' ,%0A @@ -3074,17 +3074,25 @@ llege': -1 +'Coll%C3%A8ge' ,%0A @@ -3109,18 +3109,24 @@ 'lycee': - 2 +'Lyc%C3%A9e', %0A
75a2a042c1839c669270bcc8379e03398471e237
Limit concurrent command operation to 2
execqueue.js
execqueue.js
// Copyright 2012, 2013 Patrick Wang <kk1fff@patrickz.net> // // 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 ap...
JavaScript
0.999997
@@ -620,16 +620,19 @@ ar exec + = requir @@ -670,11 +670,13 @@ mit + = -5 +2 ,%0A
232b0af4541fa2ce5fd6ee62760c997ae0667622
Update PNTSLoader.js
src/three/PNTSLoader.js
src/three/PNTSLoader.js
import { PNTSLoaderBase } from '../base/PNTSLoaderBase.js'; import { Points, PointsMaterial, BufferGeometry, BufferAttribute } from 'three'; export class PNTSLoader extends PNTSLoaderBase { constructor( manager ) { super(); this.manager = manager; } parse( buffer ) { const result = super.parse( buffer );...
JavaScript
0
@@ -352,31 +352,8 @@ ult; -%0A%09%09window.data = result %0A%0A%09%09
e3cfcdfb9c99d3182c43f364c0122acca1591199
Remove silly exit
scripts/run-android-ci-instrumentation-tests.js
scripts/run-android-ci-instrumentation-tests.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use stric...
JavaScript
0.000001
@@ -905,54 +905,8 @@ );%0A%0A -console.log(echo, exec, exit, ls);%0A%0Aexit(0);%0A%0A cons
6491dd85d884839da5b3d72fd036d20c28b8d1c4
remove unused crap
import-infobot.js
import-infobot.js
var storageDir = ''; //set this to the localStorage directory used by your bot var dbFile = ''; //set this to the db you wish to use for your new bot. You may want to create it first by simply running the bot with the new module. if (typeof localStorage === "undefined" || localStorage === null) { var LocalS...
JavaScript
0.000002
@@ -497,49 +497,8 @@ %7D);%0A -var fs = require('fs');%0Avar output = %7B%7D;%0A var
65536ca5da272971b49be51116a9963e9fb3d586
Fix trainingCtrl
project/src/js/ui/training/trainingCtrl.js
project/src/js/ui/training/trainingCtrl.js
import last from 'lodash/array/last'; import chessground from 'chessground'; import { partialf } from '../../utils'; import data from './data'; import chess from './chess'; import puzzle from './puzzle'; import sound from '../../sound'; import actions from './actions'; import settings from '../../settings'; import menu...
JavaScript
0.000001
@@ -234,41 +234,8 @@ d';%0A -import actions from './actions';%0A impo @@ -5014,106 +5014,8 @@ g);%0A - if (this.actions) this.actions.close();%0A else this.actions = new actions.controller(this);%0A
9c55162ba7456ef7282c27ac1b6cdf785178727d
Add input search action filter directive unit tests
dataprep-webapp/src/components/suggestions-stats/actions-suggestions/actions-suggestions-directive.spec.js
dataprep-webapp/src/components/suggestions-stats/actions-suggestions/actions-suggestions-directive.spec.js
describe('Actions suggestions-stats directive', function() { 'use strict'; var scope, element, createElement; beforeEach(module('data-prep.actions-suggestions')); beforeEach(module('htmlTemplates')); beforeEach(module('pascalprecht.translate', function ($translateProvider) { $translatePro...
JavaScript
0
@@ -112,17 +112,56 @@ lement;%0A + var body = angular.element('body'); %0A - befo @@ -569,25 +569,24 @@ ope.$new();%0A -%0A crea @@ -731,24 +731,58 @@ estions%3E');%0A + body.append(element);%0A @@ -1533,24 +1533,24 @@ s: Col 1');%0A - %7D));%0A%7D); @@ -1546,12 +1546...
bec773ab1f4003d5b2ed20a749835eb645990607
Remove text from notice
public/js/experiment.js
public/js/experiment.js
/** * Experiment view blocks for jsSART */ (function(){ var experiment = []; var participant_id = getParticipantId(); var conditions = generateConditions(); // prospective survey notice and questions var prospective_survey_text = "<p>Before we begin, we would like to know what you <strong>expect to experi...
JavaScript
0
@@ -985,34 +985,8 @@ e as - (or higher or lower than) you
510dcd14edabea589095a0e3101d2b8a37514bb8
fix untranslated validation message on course grader LEARNER-2450
cms/static/js/models/settings/course_grader.js
cms/static/js/models/settings/course_grader.js
define(['backbone', 'underscore', 'gettext'], function(Backbone, _, gettext) { var CourseGrader = Backbone.Model.extend({ defaults: { 'type': '', // must be unique w/in collection (ie. w/in course) 'min_count': 1, 'drop_count': 0, 'short_label': '', // what...
JavaScript
0.000174
@@ -1065,16 +1065,24 @@ .type = +gettext( 'The ass @@ -1112,16 +1112,17 @@ a name.' +) ;%0A
4f7f89c74ff34678d502bd0756f2b3b654652618
Fix messageclient format for incoming data
lib/system/audio.js
lib/system/audio.js
'use strict'; var sprintf = require('sprintf').sprintf, utils = require('radiodan-client').utils, systemExec = utils.promise.denodeify(require('child_process').exec), validateVolume = require('../validators/actions/player/volume'), boundVolume = require('../utils/bound-volume'),...
JavaScript
0.000008
@@ -2333,12 +2333,14 @@ req. -data +params )%0A
ca1353cb6e9fba9167a8f38d5b18225de4032dd3
Include song duration in library response
server/api/routes/library.js
server/api/routes/library.js
import KoaRouter from 'koa-router' import Providers from '../provider/index' let router = KoaRouter() let debug = require('debug') let error = debug('app:library:error') let isScanning // get all artists and songs router.get('/api/library', async (ctx, next) => { const log = debug('app:library:get') let res = { ...
JavaScript
0
@@ -757,32 +757,40 @@ x.db.all('SELECT + songId, artistId, plays @@ -784,16 +784,33 @@ tistId, +title, duration, plays, p @@ -820,23 +820,8 @@ ider -, title, songId FRO
92aaf3812d45313c76c4531be4cfc0b959e116e1
Fix bug in example
examples/botkit/bot.js
examples/botkit/bot.js
/** * Cisco Spark WebSocket example using BotKit */ var accessToken = process.env.SPARK_TOKEN; if (!accessToken) { console.log("No Cisco Spark access token found in env variable SPARK_TOKEN"); process.exit(2); } var PORT = process.env.PORT || 3000; // Spark Websocket Intialization var SparkWebSocket = req...
JavaScript
0.000001
@@ -1042,24 +1042,52 @@ req, res) %7B%0A + res.sendStatus(200)%0A cont @@ -1561,28 +1561,29 @@ ' + message.text + '%22');%0A%7D); +%0A
97c94d483215d12045cc81911da38ff026760010
allow special symbols ?*" in search again (publicly documented lucene symbols)
collections-online/app/scripts-browserify/search/get-parameters.js
collections-online/app/scripts-browserify/search/get-parameters.js
const config = require('collections-online/shared/config'); /** * This module generates search parameters that will lead to a specific * filtering and sorting being activated, based on the querystring. * This is the inverse of generate-querystring. */ var querystring = require('querystring'); const DEFAULT_SORTIN...
JavaScript
0
@@ -1310,16 +1310,70 @@ racters%0A + // BUT with the note that we allow ?, %22, and *.%0A %5B%0A @@ -1479,28 +1479,9 @@ ', ' -%22', '~', '%5C%5C*', '%5C%5C? +~ ', '
9df62e9025a4fbf927d406909e830f930280ba89
Fix RDPBuilder
src/saga/rdp-builder.js
src/saga/rdp-builder.js
const BASE_CONFIG_FILE = 'session bpp:i:32\n' + 'winposstr:s:0,3,0,0,800,600\n' + 'compression:i:1\n' + 'keyboardhook:i:2\n' + 'audiocapturemode:i:0\n' + 'videoplaybackmode:i:1\n' + ...
JavaScript
0.000001
@@ -1950,33 +1950,8 @@ rue%0A - this.fullScreenTitle%0A @@ -2045,16 +2045,24 @@ alDrives + = false %0A thi
23a33a5ece7e888d01bdd19e3dcf0e4bf12e5470
Add error snackbar to QuestionCreateForm
frontend/src/components/Question/CreateForm.js
frontend/src/components/Question/CreateForm.js
import React from 'react'; import PropTypes from 'prop-types'; import CreateConnector from './CreateConnector'; import QuestionForm from './Form'; import { formValuesToRequest } from './transforms'; import FAButton from '../FAButton'; import ArrowBackIcon from '@material-ui/icons/ArrowBack'; import Router from 'next/ro...
JavaScript
0
@@ -1109,70 +1109,99 @@ -console.log('addHandlers ERROR:');%0A console.log( +enqueueSnackbar(%60Erro ao salvar quest%C3%A3o: %22$%7Berror.message%7D%22%60, %7B%0A variant: ' error -); +', %0A @@ -1209,52 +1209,43 @@ -// this.props.showApiErrorNotification(error + autoHideDuration: 6000...
0c6787d84e5c8b9275b55dc48f1e1242c937128f
use angularString instead of angular.String
src/JSON.js
src/JSON.js
'use strict'; var array = [].constructor; /** * @workInProgress * @ngdoc function * @name angular.toJson * @function * * @description * Serializes the input into a JSON formated string. * * @param {Object|Array|Date|string|number} obj Input to jsonify. * @param {boolean=} pretty If set to true, the JSON out...
JavaScript
0.000207
@@ -2073,33 +2073,32 @@ buf.push(angular -. String.quoteUnic @@ -2115,24 +2115,24 @@ String()));%0A + %7D else if @@ -2387,33 +2387,32 @@ buf.push(angular -. String.quoteUnic @@ -3055,33 +3055,32 @@ buf.push(angular -. String.quoteUnic @@ -3695,32 +3695,32 @@ y);%0A %7D%0A + buf.pu @@ -3...
167e15d6fdf3d85ded1b655dcc5cc6e265cd2111
Fix typo in sha1 code
lib/sha1.js
lib/sha1.js
var Array32 = typeof Uint8Array === "function" ? Uint8Array : Array; module.exports = function sha1(buffer) { if (buffer === undefined) return create(); var shasum = create(); shasum.update(buffer); return shasum.digest(); }; // A streaming interface for when nothing is passed in. function create() { var h0...
JavaScript
0.999929
@@ -14,25 +14,26 @@ typeof Uint -8 +32 Array === %22f @@ -47,17 +47,18 @@ %22 ? Uint -8 +32 Array :
cd1edce3ddb25364a5913adb26f5a534b620ad24
Fix build
src/utils/typography.js
src/utils/typography.js
/* eslint-env node */ import Typography from 'typography' import TypographyTheme from 'typography-theme-wordpress-2016' TypographyTheme.overrideThemeStyles = () => { return { a: { boxShadow: `none`, }, 'a.social': { borderBottom: '1px solid currentColor', }, 'a.gatsby-resp-image-link'...
JavaScript
0.000001
@@ -1545,8 +1545,35 @@ les()%0A%7D%0A +%0Aexport default typography%0A
286131a618a3ff3f458678d30b83a099cb162593
Make sure the filter is cleared when switching levels.
opennms-webapp/src/main/webapp/js/onms-ksc/wizard.js
opennms-webapp/src/main/webapp/js/onms-ksc/wizard.js
/** * @author Alejandro Galue <agalue@opennms.org> * @copyright 2016 The OpenNMS Group, Inc. */ 'use strict'; angular.module('onms-ksc-wizard', [ 'ui.bootstrap', 'angular-growl' ]) .config(['growlProvider', function(growlProvider) { growlProvider.globalTimeToLive(3000); growlProvider.globalPosition('bottom-c...
JavaScript
0
@@ -1075,24 +1075,56 @@ l, reset) %7B%0A + $scope.resourceFilter = '';%0A $scope.l
99c8ee2cd23a153dc5be8b86c8bbd0ac3050fb47
create a function named mystery
code-school/JS-RoadTrip-3/tracking-a-closure.js
code-school/JS-RoadTrip-3/tracking-a-closure.js
//Chris Samuel //ksamuel.chris@icloud.com //Tracing a Closure 1 // Examine the code below(i.e., manually trace it), in your head determine the final // value of the result variable, and alert the value as a numer using one line of code. // You must give only 1 number literal as the argument to alert. // Do...
JavaScript
0.999999
@@ -520,9 +520,72 @@ s.%0A%0A +function mystery()%7B%7D // create a function with the name mystery %0A
1e3ce4c16aae17afa10188e121edb52238816c75
Return some old code.
src/utils/underscore.js
src/utils/underscore.js
export default { cloneDeep(obj) { let out; let i; const pureJSType = obj && obj.toJSON ? obj.toJSON() : obj; //converting Backbone to js if (Array.isArray(pureJSType)) { out = []; for (i = pureJSType.length; i; ) { --i; out[i] ...
JavaScript
0.000317
@@ -23,16 +23,27 @@ loneDeep +: function (obj) %7B%0A @@ -50,19 +50,19 @@ -let +var out;%0A @@ -71,11 +71,11 @@ -let +var i;%0A @@ -86,13 +86,11 @@ -const +var pur @@ -180,21 +180,17 @@ if ( -Array +_ .isArray @@ -269,17 +269,16 @@ ngth; i; - ) %7B%0A @@ -509,94 +509,110 @@...
fc0f1ceb1b96c74728e5f062957feab12239709e
Remove console log
stockflux-core/src/services/StockFluxService.js
stockflux-core/src/services/StockFluxService.js
import moment from 'moment'; import fetch from 'isomorphic-fetch'; // written in the same structure as d3fc-financial-feed export default function getStockFluxData() { var product, start, end; var stockFlux = function(cb) { var params = []; // defaulting data to 2016-01-01 as c...
JavaScript
0.000002
@@ -2449,48 +2449,8 @@ ) %7B%0A - console.log(stockData);%0A
17f729a41d2b1f14e235f8c250257f27021bfe71
update verification controller
public/app/controllers/verifyController.js
public/app/controllers/verifyController.js
app.controller("VerifyController", [ "$scope", "$location", "$log", "$localStorage", "Request", "domainBase", "whoisUrl", "verifyUrl", function ($scope, $location, $log, $localStorage, Request, domainBase, whoisUrl, verifyUrl) { 'use strict'; if (!!!$localStorage.doma...
JavaScript
0
@@ -625,51 +625,8 @@ in;%0A - console.log($scope.domainData); %0A
3454cc1830449a2056855b066d3985c29644e2ca
add tests for ColorUtils.isString()
test/color-utils_test.js
test/color-utils_test.js
"use strict"; const expect = require("chai").expect; const ColorUtils = require("../lib/color-utils").ColorUtils; describe("ColorUtils", function() { describe("decimalRound", function() { it("expects to return 3.14 when 3.14159 and 2 are passed", function() { expect(ColorUtils.decimalRound(3.14159, 2)).to...
JavaScript
0
@@ -497,16 +497,461 @@ %0A %7D);%0A%0A + describe(%22isString%22, function() %7B%0A it(%22expects to return true when 'string' is passed%22, function() %7B%0A expect(ColorUtils.isString(%22string%22)).to.be.true;%0A %7D);%0A%0A it(%22expects to return false when 123 is passed%22, function() %7B%0A ...
127532e12280d5546f467ad5758cda4f48189425
Update Main.js
src/Main.js
src/Main.js
//Gets links and writes dump of profile data to file // var async = require("async"); var fs = require('fs'); var p = require('./parseProjDatafromJSON'); var split = require('./SplitTxtEachProj.js'); var request = require("request"); function writeToFile(data, callback) { fs.writeFile('rawProfileContent2.txt', dat...
JavaScript
0.000001
@@ -838,16 +838,63 @@ t = %5B%5D;%0A +%0A%0Avar requestCounter=0;%0Avar responseCounter=0;%0A function @@ -921,20 +921,111 @@ back) %7B%0A +%0A +// while loops until each batch of requests is done%0A while(requestCounter%3C4) %7B%0A var limi @@ -1039,23 +1039,8 @@ -var counter=0;%0A @@ ...
9e676e76bb770fd09bdb2b01c2a2fe0ff6c3845c
remove useless variable
js/Members.js
js/Members.js
var Members = Ext.extend(Ext.Panel, { initComponent : function(test) { var form = new Kwf.Auto.FormPanel({ controllerUrl : '/member', region : 'center' }); var contacts = new Kwf.Auto.GridPanel({ controllerUrl : '/member-contacts', ...
JavaScript
0.000738
@@ -64,12 +64,8 @@ ion( -test )%0A
617dda948ce441f20ff135ed280529a8b609c4bc
Fix #1
lib/steganography.js
lib/steganography.js
/** Based on the idea outlined here: http://domnit.org/blog/2007/02/stepic-explanation.html */ var lwip = require('lwip'); var fs = require('fs'); var crypto = require('crypto'); var Q = require('q'); var _index = 0; var _width = 0; var _height = 0; var _clone; var _batch; var _password; /* Reads the least significa...
JavaScript
0.000003
@@ -481,16 +481,32 @@ ion) %7B%0A%0A + var color;%0A %0A switch @@ -905,16 +905,19 @@ color;%0A + %0A switch
5bcebfcced7081ae8a87ee3aa77ce9b6b45b92d7
remove i from import
frontend/src/reducers/authenticationReducer.js
frontend/src/reducers/authenticationReducer.js
import initialAuthValues from '../constants/initialAuthValues'; import * as types from '../constants/actionTypes'; const {isAuthenticated, username, errorMessage, loading} = initialAuthValues; export default function authenticationReducer(state = {isAuthenticated, username, errorMessage, loading} , action) { switch...
JavaScript
0
@@ -1,16 +1,15 @@ import -i nitialAu @@ -36,17 +36,16 @@ nstants/ -i nitialAu @@ -166,17 +166,16 @@ ding%7D = -i nitialAu
1782f9d0c0911627c3f4900497b4a94b9a9a954b
fix crash
lib/touch-events.js
lib/touch-events.js
'use babel'; import 'array.from'; import SubAtom from 'sub-atom'; import { isEnabled as autohideEnabled, show as showTreeView, hide as hideTreeView, } from './autohide-tree-view.js'; import { getConfig, } from './config.js'; import { getTreeViewEl, getContentWidth, isChildOf, } from './utils.js'; var...
JavaScript
0.000003
@@ -815,58 +815,52 @@ %7C%7C ! -atom.packages.isPackageLoaded('atom-touch-events') +onDidTouchSwipeLeft %7C%7C !onDidTouchSwipeRight ) re
0356784386bd9620c0dbde66dc985ffed854d0b8
Set correct content type
lib/support/store.js
lib/support/store.js
var AWS = require('aws-sdk'); var secrets = require('./../../conf/secrets/secrets'); var s3 = new AWS.S3({ params: { Bucket: 'best-ecosystem', Region: 'us-west-2', ACL: 'public-read' }, apiVersion: '2006-03-01', accessKeyId: secrets['aws_access_key_id'], secretAccessKey: sec...
JavaScript
0.000995
@@ -1,12 +1,27 @@ +'use strict';%0A%0A var AWS = re @@ -38,16 +38,44 @@ -sdk');%0A +var path = require('path');%0A var secr @@ -391,16 +391,986 @@ '%5D%0A%7D);%0A%0A +// Mapping of extname to content type%0Avar typeMap = %7B%0A '.css': 'text/css',%0A '.eot': 'application/vnd.ms-fontobject',%0A '.gif': 'image/gif...
59573c6e889bf2bfc01a87ed21a32315ac26264a
Create a meaningful error from response.error.errors array
lib/transporters.js
lib/transporters.js
/** * Copyright 2012 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
JavaScript
0.999891
@@ -2475,24 +2475,313 @@ statusCode;%0A +%0A %7D else if (Array.isArray(body.error.errors)) %7B%0A err = new Error(body.error.errors.map(%0A function(err) %7B return err.message; %7D%0A ).join('%5Cn'));%0A err.code = body.error.errors%5B0%5D.code;%0A ...
2743bcee9e9ef7e932e2ad9323a17f484b749ea4
Fix tests
test/create-directory.js
test/create-directory.js
'use strict' var createDirectory = require('../lib/create-directory') var should = require('should') describe('directory » create', function () { describe('brand', function () { var brand = createDirectory(require('../lib/dir/brand.json')) it('prints name under detection', function () { const { data,...
JavaScript
0.000003
@@ -11,19 +11,89 @@ t'%0A%0A -var createD +const strmatch = require('str-match')()%0Aconst should = require('should')%0A%0Aconst d irec @@ -119,24 +119,46 @@ lib/ +dir/brand.json')%0Aconst create --d +D irectory ')%0Av @@ -157,39 +157,43 @@ tory -')%0Avar should = require('should + = require('../lib/create-dire...
029fb38cb23d3e3a8667d54c3af10af3686c9b47
Fix options for db
lib/syncDesignDoc.js
lib/syncDesignDoc.js
var couchdb = require('couchdb') , config = require('../config') , request = require("request"); var client = couchdb.createClient(config.port, config.host, { user: config.user, password: config.password }); var db = client.db(config.db); request.put('http://' + config.user + ":" + config.password + "@" + ...
JavaScript
0.000008
@@ -99,50 +99,38 @@ );%0A%0A +%0A var -client = couchdb.createClient +options = %7B%7D;%0Aif (config. port @@ -129,21 +129,23 @@ fig. -port, +user && config. host @@ -144,21 +144,38 @@ fig. -host, %7B +password) %7B%0A options. user -: + = con @@ -186,18 +186,30 @@ user -, +;%0A options. passwo...
17359ab681048c58c954ed8330fcddef4725c005
set printWidth to 120 to reduce mangled text, readable html
src/vite/.prettierrc.js
src/vite/.prettierrc.js
module.exports = { printWidth: 80, tabWidth: 2, useTabs: false, semi: true, singleQuote: false, trailingComma: "es5", bracketSpacing: true, jsxBracketSameLine: false, arrowParens: "always", proseWrap: "never", htmlWhitespaceSensitivity: "strict", endOfLine: "lf", };
JavaScript
0.000001
@@ -30,9 +30,10 @@ th: -8 +12 0,%0A
b8706c3d84601135b94c5e494718d4a6e67e32dc
support pubmed search with keyword string
public/js/p3/widget/ExternalItemFormatter.js
public/js/p3/widget/ExternalItemFormatter.js
define([ "dojo/date/locale", "dojo/dom-construct", "dojo/dom-class", "dijit/form/Button", "../JobManager", "dijit/TitlePane", "dojo/request", "dojo/_base/lang" ], function(locale, domConstruct, domClass, Button, JobManager, TitlePane, xhr, lang){ var formatters = { "default": function(item, options){ option...
JavaScript
0
@@ -1591,22 +1591,57 @@ se%7B%0A%09%09%09%09 -return +// item is keyword string%0A%09%09%09%09term = item ;%0A%09%09%09%7D%0A%0A
ad814e2a08d48679820432aa95b84b0981171c70
update vimperator setting
common/vimperator/plugin/toggle-menu-toolbar.js
common/vimperator/plugin/toggle-menu-toolbar.js
commands.addUserCommand( ["toggleshowingmenutoolbar"], "Toggle the apperance of menu and toolbar", function() { if (options.get("gui").has("nonavigation")) { liberator.execute(":set gui='tabs,menu,navigation,addons,bookmarks'"); } else { liberator.execute(":set gui='t...
JavaScript
0
@@ -217,16 +217,18 @@ i='tabs, +no menu,nav
bf600b0526045aba8b8641401ecd35b02eaac939
fix lint issue
packages/babel-plugin-transform-react-jsx/src/index.js
packages/babel-plugin-transform-react-jsx/src/index.js
/* eslint max-len: 0 */ export default function ({ types: t }) { let JSX_ANNOTATION_REGEX = /\*?\s*@jsx\s+([^\s]+)/; let visitor = require("babel-helper-builder-react-jsx")({ pre(state) { let tagName = state.tagName; let args = state.args; if (t.react.isCompatTag(tagName)) { args....
JavaScript
0.000003
@@ -1052,16 +1052,17 @@ () + =%3E id.sp
b0dbb300db6849f8f6ce4aebbef325d4964d8ac1
check git repo by utils method now
lib/turbo-commit.js
lib/turbo-commit.js
#!/usr/bin/env node (function () { 'use strict'; var childProcess = require('child_process'), inquirer = require('inquirer'), configParser = require('../bin/config-parser'), messageHandler = require('../bin/message-handler'); require('colors'); init(); //SHOW TAG LIST FOR ...
JavaScript
0
@@ -200,30 +200,21 @@ -messageHandler +utils = requi @@ -228,24 +228,16 @@ bin/ -message-handler' +utils')( );%0A%0A @@ -276,365 +276,74 @@ ();%0A - //SHOW TAG LIST FOR SELECTION%0A function init() %7B%0A //Exec git branch to check if exist .git files%0A var checkRepoExistenceCommand ...
714042435fb95573390d580be9b93bca884be26a
encapsulate `isFinite`
packages/core-js/modules/es.number.to-exponential.js
packages/core-js/modules/es.number.to-exponential.js
'use strict'; var $ = require('../internals/export'); var global = require('../internals/global'); var uncurryThis = require('../internals/function-uncurry-this'); var toIntegerOrInfinity = require('../internals/to-integer-or-infinity'); var thisNumberValue = require('../internals/this-number-value'); var arraySlice = ...
JavaScript
0.999939
@@ -559,16 +559,48 @@ String;%0A +var isFinite = global.isFinite;%0A var abs
1f520da91e08d94f338649a8e2e9755660038f66
change users publication to publish children
server/users/publications.js
server/users/publications.js
Meteor.publishComposite("users", { find: function () { var user = Meteor.users.findOne({_id: this.userId}); if (!user) { return null; } if (!_.contains(user.roles, "admin")) { return Meteor.users.find({_id: this.userId}); } return Meteor.users....
JavaScript
0
@@ -64,11 +64,13 @@ -var +const use @@ -183,17 +183,16 @@ if ( -! _.contai @@ -256,21 +256,60 @@ s.find(%7B -_id: +%7D);%0A %7D%0A let familyUsersIds = %5B this.use @@ -303,34 +303,33 @@ s = %5Bthis.userId -%7D) +%5D ;%0A %7D%0A @@ -314,33 +314,88 @@ serId%5D;%0A -%7...
dcf8ef0086f475f80c7e94737ec637c8a627be79
update tests
lib/template.test.js
lib/template.test.js
'use strict'; var expect = require('chai').expect, sinon = require('sinon'), template = require('./template'), embed = require('./embed'); describe('Template embedding:', function () { var fakeTemplateWithoutData = 'Fake T3mpl4te', fakeTemplateData = {thing: 'stuff!'}, fakeMergedDefaults = {thing: 'stu...
JavaScript
0.000001
@@ -2564,32 +2564,38 @@ ate = 'start %7B%7B +embed( %7Bthing: %22stuff!%22 @@ -2591,33 +2591,26 @@ g: %22stuff!%22%7D +, -%7C embed( %22withData%22) @@ -2688,46 +2688,8 @@ a);%0A - env.addFilter('embed', filter);%0A @@ -2707,32 +2707,51 @@ rString(template +, %7B embed: filter %7D );%0A mock...
e5cf80318c26e5a46b20a49af3332a8156660a7d
Add gittip:start Grunt task to make sure Gittip is running when we run Karma
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { gruntfile: { files: '<%= jshint.gruntfile %>', tasks: 'jshint:gruntfile' }, js: { files: '...
JavaScript
0.000001
@@ -1,8 +1,81 @@ +var http = require('http');%0Avar spawn = require('child_process').spawn;%0A%0A module.e @@ -2076,16 +2076,32 @@ jshint', + 'gittip:start', 'karma: @@ -2113,12 +2113,960 @@ erun'%5D); +%0A%0A grunt.registerTask('gittip:start', 'Start Gittip test server (if necessary)', function gittipStart() %...
03b64e99b7505ea6b69a6ab19c39feb38de9ba69
fix example
examples/websockets.js
examples/websockets.js
var BitfinexWS = require ('bitfinex-api-node').WS; var bws = new BitfinexWS(); bws.on('open', function () { bws.subscribeTrades('BTCUSD'); bws.subscribeOrderBook('BTCUSD'); bws.subscribeTicker('LTCBTC'); }); bws.on('trade', function (pair, trade) { console.log('Trade:', trade); }); bws.on('orderbook...
JavaScript
0
@@ -43,11 +43,8 @@ de') -.WS ;%0A%0Av @@ -68,16 +68,19 @@ inexWS() +.ws ;%0A%0Abws.o
09e9e7337793c532e36b9a3bf74cfed9fde6e9e7
add common
test/specs/views/Stastistic/Statistic-test.js
test/specs/views/Stastistic/Statistic-test.js
import React from 'react' import { Statistic } from 'stardust' import faker from 'faker' describe('Statistic', () => { it('renders children', () => { const child = faker.hacker.phrase() deprecatedRender(<Statistic>{child}</Statistic>) .assertText(child) }) describe('Statistics', () => { it('re...
JavaScript
0.999712
@@ -4,33 +4,61 @@ ort -React from 'react +Statistic from 'src/views/Statistic/Statistic '%0Aimport %7B S @@ -53,18 +53,16 @@ '%0Aimport - %7B Statist @@ -67,18 +67,21 @@ stic - %7D +Label from 's tard @@ -80,233 +80,231 @@ m 's -tardust'%0Aimport faker from 'faker'%0A%0Adescribe('Statistic', () =%3E %7B%0A...
a8fd7fc03b3659449991b9242e51c9615b69994c
Fix JS unit tests
src/services/conversationsService.spec.js
src/services/conversationsService.spec.js
import mockAxios from '../__mocks__/axios' import { generateOcsUrl } from '@nextcloud/router' import { searchPossibleConversations } from './conversationsService' import { SHARE } from '../constants' describe('conversationsService', () => { afterEach(() => { // cleaning up the mess left behind the previous test m...
JavaScript
0
@@ -87,16 +87,69 @@ router'%0A +import %7B loadState %7D from '@nextcloud/initial-state'%0A import %7B @@ -251,48 +251,364 @@ s'%0A%0A -describe('conversationsService', () =%3E %7B +jest.mock('@nextcloud/initial-state', () =%3E (%7B%0A%09loadState: jest.fn(),%0A%7D))%0A%0Adescribe('conversationsService', () =%3E %7B...
a0f48723c983fe2ce30ab335d43f1aebb0390dbd
task not found
packages/custom/icu/server/controllers/customData.js
packages/custom/icu/server/controllers/customData.js
exports.find = function(req, res, next) { if(req.locals.error) { return next(); } var query = req.acl.mongoQuery('Task'); var queryString = {}; Object.keys(req.query).forEach(function(key) { switch (key) { case 'uid': break; case 'type': queryString['custom.type'] = req.query.type...
JavaScript
0.999999
@@ -873,33 +873,32 @@ nction(err, task -s ) %7B%0A if(err @@ -889,32 +889,41 @@ ) %7B%0A if(err + %7C%7C !task ) %7B%0A req. @@ -966,32 +966,32 @@ 'Can%5C't get -my +the task -s '%0A %7D; @@ -1030,33 +1030,32 @@ ls.result = task -s ;%0A %7D%0A
dd022ab2deac4df9d6825bd5bf498ec276ffef8e
Remove unnecessary slash
generators/app/templates/routes/users/index.js
generators/app/templates/routes/users/index.js
'use strict'; module.exports = function(app) { var path = require('path'); var ensureAuth = require(path.join(app.rootDir, '/lib/ensureAuth')); var logger = require(path.join(app.rootDir, '/lib/logger')); var User = require(path.join(app.rootDir, '/models')).User; var routeConfig = { GET: { '': [...
JavaScript
0.000162
@@ -426,17 +426,16 @@ %0A %7B ' -/ ':%0A
7a13b44f1e7381730ab91ce0a55db08dac560682
add modify_json task
Gruntfile.js
Gruntfile.js
const _URL__GRUNT_CONFIG_FILE = './config/grunt.json', _URL__NPM_MANIFEST_FILE = './package.json'; var _gruntRegisterTasks = require('grunt-register-tasks'), _loadGruntTasks = require('load-grunt-tasks'), _timeGrunt = require('time-grunt'); module.exports = function ( $grunt ) { var _$grunt__fil...
JavaScript
0.000038
@@ -538,24 +538,55 @@ -jsonlint',%0A + 'grunt-modify-json',%0A 'g @@ -606,16 +606,16 @@ eplace'%0A - @@ -2077,32 +2077,462 @@ %0A %7D,%0A + 'modify_json': %7B%0A 'manifests': %7B%0A 'files': %7B%0A '%3C%25= cfg.PATH_...
a04a877bfe0248eba245a3b4207ba13042cd3b83
remove only-cr code
src/javascript/app/base/binary_loader.js
src/javascript/app/base/binary_loader.js
const BinaryPjax = require('./binary_pjax'); const pages_config = require('./binary_pages'); const Client = require('./client'); const GTM = require('./gtm'); const Header = require('./header'); const Login = require('./login'); const Page ...
JavaScript
0.000423
@@ -2429,86 +2429,8 @@ ) %7B%0A - applyToAllElements('.only-cr', (el) =%3E %7B el.setVisibility(0); %7D);%0A
70806256aa1f92805dd675a8fd7c5057bb0cabcc
Add test to ensure selectionWraps can wrap from first to last item.
test/tests/SingleSelectionMixin.tests.js
test/tests/SingleSelectionMixin.tests.js
import * as symbols from '../../src/symbols.js'; import ReactiveMixin from '../../src/ReactiveMixin.js'; import SingleSelectionMixin from '../../src/SingleSelectionMixin.js'; class SingleSelectionTest extends ReactiveMixin(SingleSelectionMixin(HTMLElement)) { get defaultState() { return Object.assign({}, super...
JavaScript
0
@@ -1898,32 +1898,312 @@ dex, 0);%0A %7D);%0A%0A + it(%22can wrap the selection from the first to the last item%22, () =%3E %7B%0A const fixture = createSampleElement();%0A fixture.selectionWraps = true;%0A fixture.setState(%7B selectedIndex: 0 %7D);%0A fixture.selectPrevious();%0A assert.equal(fixtur...
b058efcc2979b3c96b4789f1b36aca367e5ed8b6
Call error_messages() error in function itself rather than passing it
src/javascript/app/base/binary_loader.js
src/javascript/app/base/binary_loader.js
const BinaryPjax = require('./binary_pjax'); const pages_config = require('./binary_pages'); const Client = require('./client'); const Header = require('./header'); const NetworkMonitor = require('./network_monitor'); const Page = require('./page'); const Bi...
JavaScript
0.000001
@@ -4670,42 +4670,8 @@ ted( -error_messages.not_authenticated() );%0A @@ -5997,33 +5997,16 @@ ated = ( -localized_message ) =%3E %7B%0A @@ -6510,33 +6510,50 @@ , text: -localized_message +error_messages.not_authenticated() %7D);%0A
b0addc41bb961ff76a53a0c382e3b0d192b79051
add test on graph state
test/unit/graph/controller/state-spec.js
test/unit/graph/controller/state-spec.js
const expect = require('chai').expect; const G6 = require('../../../../src'); const div = document.createElement('div'); div.id = 'state-controller'; document.body.appendChild(div); describe('graph state controller', () => { const graph = new G6.Graph({ container: div, width: 500, height: 500 }); co...
JavaScript
0.000008
@@ -1932,16 +1932,26 @@ ith -behavior +activate-relations ', d @@ -2714,32 +2714,32 @@ o.be.undefined;%0A - expect(e @@ -2768,32 +2768,873 @@ h).to.equal(2);%0A + graph.removeBehaviors('activate-relations', 'default');%0A done();%0A %7D%0A %7D);%0A %7D);%0A it('state with click-sel...
2d011a160fda77ac5da83352ce5dccfd98465f8a
Remove 'travelogue' dependency
hapi/data.js
hapi/data.js
'use strict'; var generatorData = { hapiDependencies: { 'catbox' : { moduleName: 'catbox', description: 'Multi-strategy object caching service' }, 'flod' : { moduleName: 'flod', description: 'A systematic toolchain for benchmarking and comparing Node.js web server ' + 'frameworks' }, 'joi' :...
JavaScript
0.002068
@@ -52,16 +52,109 @@ cies: %7B%0A +%09%09'bell' : %7B%0A%09%09%09moduleName: 'bell',%0A%09%09%09description: 'Third-party login plugin for hapi'%0A%09%09%7D,%0A %09%09'catbo @@ -156,24 +156,24 @@ catbox' : %7B%0A - %09%09%09moduleNam @@ -397,16 +397,128 @@ s'%0A%09%09%7D,%0A +%09%09'hapi-auth-cookie' : %7B%0A%09%0...
d914f68c73ee16c17f44c3c104077e2407f0169c
support dynamic nodes for Form component
src/components/Form.js
src/components/Form.js
var React = require('react/addons'); module.exports = React.createClass({ displayName: 'Form', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, type: React.PropTypes.oneOf(['horizontal', 'inline']) }, render() { var className = this.props.type ? ('Form--' + this.pr...
JavaScript
0
@@ -1,12 +1,90 @@ +var blacklist = require('blacklist');%0Avar classnames = require('classnames');%0A var React = @@ -329,152 +329,335 @@ %7D,%0A%09 -render() %7B%0A%09%09var className = this.props.type ? ('Form--' + this.props.type) : null;%0A%09%09return %3Cform %7B...this.props%7D className=%7BclassName%7D /%3E +...
4f7cb7747d5796f2ebd4801f5b57a7d2afa2e5b5
update initiatives tests
analysis/test/js/spec/services/initiatives.js
analysis/test/js/spec/services/initiatives.js
'use strict'; describe('Service: Initiatives', function () { // instantiate service var Initiatives, $httpBackend, $rootScope; // load the service's module beforeEach(module('sumaAnalysis')); beforeEach(inject(function (_$rootScope_, _$httpBackend_, _initiatives_) { $rootScope = _$rootScope...
JavaScript
0
@@ -622,24 +622,380 @@ );%0A %7D);%0A%0A + $httpBackend.flush();%0A %7D);%0A%0A it('should respond with error message on failure', function (done) %7B%0A $httpBackend.whenGET('lib/php/initiatives.php').respond(500, %7Bmessage: 'Error'%7D);%0A%0A Initiatives.get().then(function (result) %7B%0A%0A %7D, ...
99af2fd0963001d958b22b2536292c43cdb051f2
add hash for vendor chunks
.core/webpack/vendor.js
.core/webpack/vendor.js
const path = require('path'); const webpack = require('webpack'); module.exports = function(env) { return { entry: { react: [ 'react', 'react-dom', 'react-helmet', 'react-redux', 'react-router', 'react-router-redux', 'react-router-scroll', 're...
JavaScript
0.000001
@@ -601,16 +601,23 @@ r-%5Bname%5D +-%5Bhash%5D .js',%0A @@ -834,16 +834,23 @@ manifest +-%5Bhash%5D .json'),
f6bb7aa8f04c5b8a27469d5e52b947f96f8acde0
add post data to setup for e2e tests
tests/cucumber/features/support/hooks.js
tests/cucumber/features/support/hooks.js
(function () { 'use strict'; module.exports = function () { this.Before(function () { this.server.call('addUsers'); }); }; })();
JavaScript
0
@@ -125,16 +125,51 @@ sers');%0A + this.server.call('addPost');%0A %7D);%0A
88ca152be79b78f6e94bdd2d89c10d45310bbea8
Add the ability to hash lists of strings #2027
src/util/hash.js
src/util/hash.js
let hashIterableInts = function( iterator, seed = 5381 ){ // djb2/string-hash let hash = seed; let entry; for( ;; ){ entry = iterator.next(); if( entry.done ){ break; } hash = (hash * 33) ^ entry.value; } return hash >>> 0; }; let hashString = function( str, seed ){ let entry = { value: 0, ...
JavaScript
0.000049
@@ -599,16 +599,342 @@ );%0A%7D;%0A%0A +let hashStrings = function()%7B%0A return hashStringsArray( arguments );%0A%7D;%0A%0Alet hashStringsArray = function( strs )%7B%0A let hash;%0A%0A for( let i = 0; i %3C strs.length; i++ )%7B%0A let str = strs%5Bi%5D;%0A%0A if( i === 0 )%7B%0A hash = hashString( st...
645ea9ab57832b36a28cfa75103d4637ccbb878d
Update app.js
00-workspace/app.js
00-workspace/app.js
// SET UP THE MAP var mapProjection = new ol.proj.Projection({ code: 'EPSG:3857', extent: [-20037508, -20037508, 20037508, 20037508.34] }) var geoProjection = new ol.proj.Projection({ code: 'EPSG:4326', extent: [-180, -180, 180, 180] }) var map = new ol.Map({ layers:[ new ol.layer.Tile({ source: n...
JavaScript
0.000002
@@ -878,18 +878,268 @@ unction( +text, callback)%7B%0A $.ajax(%7B%0A %09url: 'https://search.mapzen.com/vi/autocomplete?text=' + text + '@api_key=' + %09%09%09%09%09app.mapzenKey, %0A success: function(data, status, req)%7Bcallback(null, data)%7D, %0A error: function(req, status, err)%7Bcallback(err)%7D%0A %7...
88b43a857f3959550ee387008245f8c6fc799037
add autocomplete function
00-workspace/app.js
00-workspace/app.js
// SET UP THE MAP var mapProjection = new ol.proj.Projection({ code: 'EPSG:3857', extent: [-20037508, -20037508, 20037508, 20037508.34] }) var geoProjection = new ol.proj.Projection({ code: 'EPSG:4326', extent: [-180, -180, 180, 180] }) var map = new ol.Map({ layers:[ new ol.layer.Tile({ source: n...
JavaScript
0.000005
@@ -683,11 +683,8 @@ = %7B%0A - %0A @@ -713,16 +713,16 @@ ANqF', %0A + acti @@ -829,31 +829,455 @@ -console.log(val);%0A %7D +app.queryAutocomplete(val, function(err, data)%7B%0A %09console.log(data;%0A %7D%0A %7D,%0A %0A %09queryAutocomplete: throttle(function(text, callback)%7B%0...
3f91980266c983a0920c94cf68b8100070937797
Fix colors in ProgressBoard
app/components/ProgressBoard/ProgressBoard.js
app/components/ProgressBoard/ProgressBoard.js
/* @flow */ import React, { Component } from 'react'; import { Text, View, StyleSheet, } from 'react-native'; import styles from './styles' function Tile(props: {num: string, winner: ?number}){ let backgroundColor: string = 'transparent' if(typeof props.winner === 'number'){ backgroundColor = ['red', 'b...
JavaScript
0.000001
@@ -309,19 +309,22 @@ = %5B' -red', 'blue +skyblue', 'red '%5D%5Bp
8259742e3d7c9a3b8c66b88910a4ca4c2a6a7f88
use isolate scope for metricPicker dir
app/directives/metric-picker/metric-picker.js
app/directives/metric-picker/metric-picker.js
angular.module(PKG.name + '.commons') .directive('myMetricPicker', function (MyDataSource) { var dSrc = new MyDataSource(); function MetricPickerCtrl ($scope) { var a = ['system', 'user']; $scope.available = { types: a, contexts: [], metrics: [] }; $scope.m...
JavaScript
0
@@ -477,12 +477,10 @@ pe: -true +%7B%7D ,%0A%0A
c33b3048cb1b30d2babd9d5514f2d3c7c6d008ec
add logs
command-server.js
command-server.js
#!/usr/bin/env node /** * Created on 12/5/15. * @author rankun203 */ var express = require('express'); var bodyParser = require('body-parser'); var exec = require('child_process').exec; var log = require('log4js').getLogger('command-server'); var rawBody = require('./rawBody'); var commands = ...
JavaScript
0
@@ -925,16 +925,57 @@ s.cid;%0A%0A + log.debug('Incoming command: ', cid);%0A%0A var fi @@ -1361,16 +1361,68 @@ wBody);%0A + var msg = 'Not match';%0A%0A log.debug(msg);%0A if ( @@ -1480,19 +1480,11 @@ sg: -'not match' +msg %0A
efffabf76cdb52249cf07bc1b13b9971888ed33c
Disable cleaning build/ dir before building
metalsmith.js
metalsmith.js
const argv = require("yargs").argv; const Metalsmith = require("metalsmith"); const superstatic = require("superstatic").server; const watch = require("metalsmith-watch"); const metalsmith = new Metalsmith(__dirname); const server = superstatic({ port: 8000, cwd: __dirname, config: { public: "./bui...
JavaScript
0
@@ -356,16 +356,29 @@ ebsite%22) +.clean(false) %0A .us
d819ab6207d71bf01c4592b9b0e39e8dd1b25377
Clear income fields before setting them - otherwise we get 0.000 or 0.000.00
tests/nightwatch/specs/outgoings-page.js
tests/nightwatch/specs/outgoings-page.js
'use strict'; var util = require('util'); var common = require('../modules/common-functions'); var OUTGOINGS_QUESTIONS = require('../modules/constants').OUTGOINGS_QUESTIONS; module.exports = { 'Start page': common.startPage, 'Categories of law (Your problem)': common.selectDebtCategory, 'About you': function(...
JavaScript
0
@@ -1958,32 +1958,263 @@ ncome%22%5D', 2000)%0A + .clearValue('input%5Bname=%22your_income-maintenance-per_interval_value%22%5D')%0A .clearValue('input%5Bname=%22your_income-pension-per_interval_value%22%5D')%0A .clearValue('input%5Bname=%22your_income-other_income-per_interval_value%22%5D')%0A ....
e36e90330b7aadf0c97c64bc6b764a8822ccfc60
test changing incoming text, what happens if not start dialog on disconnect
middleware.js
middleware.js
module.exports = { incoming: function (message, bot, builder, next) { console.log('conversations/state') console.log(global.conversations); console.log('************'); console.log('users'); console.log(global.users); console.log('agents'); console.log(global...
JavaScript
0.000002
@@ -554,49 +554,8 @@ nts%0A - console.log('is staff');%0A @@ -617,32 +617,32 @@ onversation.id;%0A + @@ -1003,24 +1003,67 @@ .address %7D;%0A + message.text = 'test';%0A @@ -1642,58 +1642,8 @@ ) %7B%0A - console.log('got unde...
e5d464f706d09a448c466be5a29c4e15473287ab
Align bottom sheet to center
app/hotels/src/map/singleHotel/BottomSheet.js
app/hotels/src/map/singleHotel/BottomSheet.js
// @flow import * as React from 'react'; import { View } from 'react-native'; import { Dimensions } from 'react-native'; import { BottomSheet as CommonBottomSheet, Device, type OnDimensionsChange, } from '@kiwicom/react-native-app-shared'; import { getWidth, openHeight, closedHeight } from '../bottomSheetDimens...
JavaScript
0
@@ -1195,16 +1195,37 @@ tWidth() +, alignSelf: 'center' %7D%7D%3E%0A
27cf9d443ffe422c698af405980847a22559925c
Add stuff to example embed
commands/embed.js
commands/embed.js
module.exports = { help: { name: 'embed', desc: 'Displays an example for rich embeds', usage: '<message>', aliases: [] }, exec: (client, msg, params) => { let embed = { color: 3447003, author: { name: client.user.username, icon_url: client.user.avatarURL // eslint-...
JavaScript
0
@@ -341,24 +341,115 @@ se%0A %7D,%0A + title: 'THIS IS A TITLE',%0A url: 'http://example.com', // The url for the title.%0A descri @@ -1084,16 +1084,494 @@ %7D -%0A %5D +,%0A %7B%0A name: 'Inline fields',%0A value: 'You can also have fields inline with eachother ...
d68ba5cecd8809481ad305bd0fbcb118e6f87517
fix wite after end errors
lib/class/Connection.js
lib/class/Connection.js
const { BetterEvents } = require('better-events') const { StringDecoder } = require('string_decoder') /** * Class representing a connection to the daemon. * @class */ class Connection extends BetterEvents { /** * Create a new connection to the daemon. * @param {*} socket */ constructor(socket) { s...
JavaScript
0.000513
@@ -625,24 +625,84 @@ %7D)%0A %7D%0A%0A + get isDestroyed() %7B%0A return this.socket.destroyed%0A %7D%0A%0A /**%0A * P @@ -1167,16 +1167,71 @@ socket. + Returns true if the message was written to the socket. %0A * @p @@ -1269,16 +1269,40 @@ ansmit.%0A + * @returns %7Bboolean%7D%0A */%0A @...
c13a60937d7ead3f536d96a5aa2f7b830fe45a46
use captioned_title for outline
lib/converter-worker.js
lib/converter-worker.js
/* * Copyright (c) 2014 Thomas Kern * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish...
JavaScript
0.000015
@@ -3487,21 +3487,16 @@ );%0A %0A - %0A var @@ -4521,32 +4521,34 @@ +// titleHtml: Opal. @@ -4616,19 +4616,16 @@ title -Raw : sectio @@ -4630,21 +4630,34 @@ ions%5Bi%5D. +$captioned_ title +() , %0A @@ -4920,24 +4920,29 @@ ections());%0A + %0A return %7B @@ -4946,24...
17fafd162511586617dc5d123bea9b4a53f980d2
Update remind.js
chat-plugins/remind.js
chat-plugins/remind.js
exports.commands = { r: 'remind', remind: function (target, room, user) { if (!target) return; target = this.splitTarget(target); var targetUser = this.targetUser; if (!targetUser || !targetUser.connected) { return this.sendReply("User " + this.targetUsername + " not found."); } if (!this.can('warn', t...
JavaScript
0.000001
@@ -402,12 +402,18 @@ o play. %22);%0A +%09%7D%0A%7D;%0A
27265a1ea216147077297fd91b37bb1389c81a68
Remove unnecessary conditional
lib/define-assertion.js
lib/define-assertion.js
"use strict"; var slice = require("@sinonjs/commons").prototypes.array.slice; var assertArgNum = require("./assert-arg-num"); var interpolatePosArg = require("./interpolate-pos-arg"); var interpolateProperties = require("./interpolate-properties"); function createAssertion(referee, type, name, func, minArgs, message...
JavaScript
0.000001
@@ -439,29 +439,16 @@ if ( -%0A !assertA @@ -457,153 +457,51 @@ Num( -%0A referee.fail,%0A fullName,%0A arguments,%0A minArgs %7C%7C func.length%0A )%0A +referee.fail, fullName, arguments, minArgs) ) %7B%0A
97c52066ddd01b03eb89093c6da93b1aaf2a9125
add deliveryOrderItem and deliveryOrderItemFulfillment in validator
src/validator.js
src/validator.js
module.exports = { auth: { account: require("./auth/account-validator"), profile: require("./auth/profile-validator"), role: require("./auth/role-validator") }, master: { product: require("./master/product-validator"), ...
JavaScript
0
@@ -672,17 +672,16 @@ dator%22), - %0A @@ -1165,32 +1165,235 @@ er-validator%22),%0A + deliveryOrderItem: require(%22./purchasing/delivery-order-item-validator%22),%0A deliveryOrderItemFulfillment: require(%22./purchasing/delivery-order-item-fulfillment-validator%22),%0A ...
26699023c91f3a07829bb9ce2f0081e23248ed07
Add units
src/constants/earth.js
src/constants/earth.js
// IERS numerical standards // (as per Technical Note No.36 Table 1.1) const earth = { a: 6378136.6, // Equatorial radius f: 0.003352819697896193, // Flattening invf: 298.25642, // Reciprocal flattening e: 0.08181930087617338, // Eccentricity e2: 0.006694397995865785, // Eccentricity squared J2:...
JavaScript
0.000001
@@ -120,16 +120,20 @@ l radius + %5Bm%5D %0A f: @@ -404,16 +404,26 @@ ion rate + %5Brad s-1%5D %0A M: @@ -510,16 +510,25 @@ constant + %5Bm3 s-2%5D %0A %CE%B50: @@ -587,16 +587,22 @@ J2000.0 + %5Bdeg%5D %0A %CE%B80: @@ -657,16 +657,22 @@ J2000.0 + %5Brad%5D %0A%7D;%0A%0Aear @@ -708,66 +708,189...
50cdfa075540a83d239ef3aa1fdbdcb71babf681
Update touchMe.js
common/touchMe.js
common/touchMe.js
function touchHandler(event) { console.info(event) if (event.touches.length > 1 || (event.type == "touchend" && event.touches.length > 0)){ return } var touches = event.targetTouches; var first = touches[0]; var type = ""; switch (event.type) { case "touchstart": type = "m...
JavaScript
0
@@ -82,66 +82,8 @@ %3E 1 - %7C%7C (event.type == %22touchend%22 && event.touches.length %3E 0) )%7B%0A
cbf1d2feb09f46f9b07fa23b2da37658886abe1b
Add specific handling for DOMExceptions
src/core/ChefWorker.js
src/core/ChefWorker.js
/** * Web Worker to handle communications between the front-end and the core. * * @author n1474335 [n1474335@gmail.com] * @copyright Crown Copyright 2017 * @license Apache-2.0 */ import Chef from "./Chef"; import OperationConfig from "./config/OperationConfig.json"; import OpModules from "./config/modules/OpModu...
JavaScript
0
@@ -3035,24 +3035,71 @@ tch (err) %7B%0A + if (err instanceof DOMException) %7B%0A self @@ -3105,32 +3105,36 @@ f.postMessage(%7B%0A + acti @@ -3150,16 +3150,20 @@ Error%22,%0A + @@ -3190,16 +3190,20 @@ + error: e @@ -3204,18 +3204,30 @@ ror: err -,%...
d433ca0dddbf989bff61225be06b11d40261f322
Make passing $CM_BUILDTYPE possible again. This fix was applied at DB level before but got lost during the sequalize transition.
add-build.js
add-build.js
var Troll = require('troll-opt').Troll; var models = require('./models/'); var buildInfo = (new Troll()).options(function(troll) { troll.banner('Adds a new build to the database.'); troll.opt('device', 'The device ID.', { type: 'string', required: true }); troll.opt('timestamp', 'The build\'s timestamp as "unixepoc...
JavaScript
0
@@ -1007,16 +1007,227 @@ vice.id; +%0A%09var parsedUpdateChannel = new String(buildInfo.channel);%0A%0A%09if (parsedUpdateChannel.toUpperCase() == %22RC%22) %7B%0A%09%09parsedUpdateChannel = %22RC%22;%0A%09%7D else %7B%0A%09%09parsedUpdateChannel = parsedUpdateChannel.toLowerCase();%0A%09%7D %0A%0A%09var n @@ -1406,2...
b6feec12ff74b2b9eebaeaee0708714729111cfe
Remove log
src/views/tab.js
src/views/tab.js
define(function() { var _ = codebox.require("hr/utils"); var $ = codebox.require("hr/dom"); var hr = codebox.require("hr/hr"); var dnd = codebox.require("utils/dragdrop"); var keyboard = codebox.require("utils/keyboard"); var menu = codebox.require("utils/menu"); var GridView = codebox.req...
JavaScript
0.000001
@@ -1528,68 +1528,8 @@ %7D%0A - console.log(%22drop tab at position%22, i);%0A
c5bb1f015ddd1472e6ddbf9f9e8cbf9452a88f42
fix compile-script: Don't filter out empty string commands.
compile-script.js
compile-script.js
'use strict'; let fs = require('fs'); let _ = require('lodash'); let Q = require('q'); let peg = require('pegjs'); let errorWithMetadata = require('./util/error-with-metadata'); let LowLevelScript = require('./low-level-script'); let parse = peg.buildParser ( fs.readFileSync ( __dirname + '/script-grammar.pegjs', { ...
JavaScript
0.000001
@@ -583,85 +583,8 @@ ) %7B%0A -%09%09%09if(command === '') %7B%0A%09%09%09%09++filterCount;%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%09else %7B%0A%09 %09%09%09r @@ -595,21 +595,16 @@ n true;%0A -%09%09%09%7D%0A %09%09%7D%0A%09%09le
4a3db2654d552ce8c0fa8f529b42efae8d383d91
refactor compile-script: Replace filter call with forEach call.
compile-script.js
compile-script.js
'use strict'; let fs = require('fs'); let _ = require('lodash'); let Q = require('q'); let peg = require('pegjs'); let errorWithMetadata = require('./util/error-with-metadata'); let LowLevelScript = require('./low-level-script'); let parse = peg.buildParser ( fs.readFileSync ( __dirname + '/script-grammar.pegjs', { ...
JavaScript
0
@@ -423,16 +423,31 @@ ipt();%0A%09 +let commands = script.c @@ -473,15 +473,27 @@ rce) -.filter +;%0A%09commands.forEach ((co @@ -543,16 +543,16 @@ ect') %7B%0A + %09%09%09retur @@ -548,29 +548,24 @@ %7B%0A%09%09%09return - true ;%0A%09%09%7D%0A%09%09let @@ -682,35 +682,29 @@ l%5D = i;%0A%09%09%09%09 -retur...
37e14841c9dbfea6a755ac042be4ec72426ebc4c
Put Queued project right after in process project
src/main/resources/js/boardcontroller.js
src/main/resources/js/boardcontroller.js
//controller and any services relating to the main boaard plugin.controller("BoardController", function ($scope, autoRefresh, $rootScope) { $scope.projectName = "CDPipeline"; $scope.results = autoRefresh.data; $rootScope.dataLoaded = false; }); //polls a REST endpoint every five seconds and automatically refreshes ...
JavaScript
0
@@ -1060,16 +1060,27 @@ rogress +and queued projects @@ -1337,32 +1337,157 @@ S%22;%0A %7D);%0A + var queued = array.filter(function (item) %7B%0A %09return item%5Bkey%5D%5B%22cdpipelineState%22%5D == %22CD_QUEUED%22;%0A %7D);%0A var fini @@ -1583,32 +1583,79 @@ %22CD_IN_PROGR...
1c91d69ee72cac7f6c6f262eb1a1efb358e29b80
remove debug statement
src/client/component.js
src/client/component.js
const React = require('react'); const walkVars = require('./visitors/vars'); const walkNode = require('./visitors/node'); const utils = require('./utils'); require('__IDYLL_SYNTAX_HIGHLIGHT__'); let results = require('__IDYLL_AST__'); console.log(results); const transformRefs = (refs) => { const output = {}; cons...
JavaScript
0.000517
@@ -232,30 +232,8 @@ _'); -%0Aconsole.log(results); %0A%0Aco