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
6503d008b490134c4dc8962a688990f56e859154
update stuff when inserting a character
static/seriously.js
static/seriously.js
var cp437 = {}; cp437.codepage = "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~Çüéâäàåçêëèïî...
JavaScript
0
@@ -779,33 +779,29 @@ %0D%0A update -ByteCount +Utils ();%0D%0A%7D;%0D%0A%0D%0Af @@ -3946,13 +3946,17 @@ +var hex +i -+ = cp @@ -3993,24 +3993,92 @@ tring(16);%0D%0A + if(hexi.length %3C 2) hexi = %220%22 + hexi;%0D%0A hex+=hexi;%0D%0A %7D%0D%0A $
89ac6e8548eb57891589fa36b339a09b5066b5e1
use $sessionStorage to save the last filters used in the screen
Frontend-Ng1/www/app/podcasts/podcasts.js
Frontend-Ng1/www/app/podcasts/podcasts.js
/** * Created by kevin on 25/10/2015 for PodcastServer */ import {Component, Module} from '../decorators'; import {TitleService} from '../common/service/title.service'; import AppRouteConfig from '../config/route'; import PodcastService from '../common/service/data/podcastService'; import TypeService from '../common/...
JavaScript
0
@@ -1011,13 +1011,72 @@ istC -trl %7B +omponent %7B%0A%0A static defaultFilters = %7B title: '', type: '' %7D; %0A%0A @@ -1101,16 +1101,33 @@ eService +, $sessionStorage ) %7B%0A @@ -1159,84 +1159,388 @@ his. -filters = %7B title : '', type : '' %7D;%0A TitleService.title = 'Podcasts' +$sessionStor...
6603e39e6a643223b9659331c5d0724aad09d50b
Fix SYWEB-109 : No error if HS rejects the username in registration.
webclient/login/register-controller.js
webclient/login/register-controller.js
/* Copyright 2014 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
JavaScript
0
@@ -5351,32 +5351,163 @@ %7D%0A + else if (error.data.error) %7B%0A $scope.feedback = error.data.error;%0A %7D%0A
196b1746e17241d764f35d67d257da8b0c111a7c
Disable errors in Ace Editor
public/visifile_drivers/ui_components/editorComponent.js
public/visifile_drivers/ui_components/editorComponent.js
function component( args ) { /* base_component_id("editorComponent") load_once_from_file(true) */ //alert(JSON.stringify(args,null,2)) var uid = uuidv4() var uid2 = uuidv4() var mm = Vue.component(uid, { data: function () { return { text: args.text, uid2: uid2 ...
JavaScript
0.000001
@@ -985,16 +985,67 @@ .text);%0A + editor.getSession().setUseWorker(false);%0A%0A %0A
569c7be28dda43e7e383a69276ce7750a51dbc96
Fix linting errors
config/ember-try.js
config/ember-try.js
const getChannelURL = require('ember-source-channel-url'); module.exports = async function() { return { useYarn: true, scenarios: [ { name: 'ember-lts-3.16', npm: { devDependencies: { 'ember-source': '~3.16.10' } } }, { name: '...
JavaScript
0.000075
@@ -1228,17 +1228,16 @@ canary') -, %0A @@ -1232,33 +1232,32 @@ ry')%0A %7D -, %0A %7D,%0A @@ -1246,25 +1246,24 @@ %7D%0A %7D -, %0A %7D,%0A
720db848537010fb2e636e3bf7432186228aef19
fix typo in ember-try config for lts 2.4
config/ember-try.js
config/ember-try.js
/*jshint node:true*/ module.exports = { scenarios: [ { name: 'default', bower: { devDependencies: { } }, npm: { devDependencies: { } } }, { name: 'ember-lts-2-4', bower: { devDependencies: { 'ember': 'components/ember#lts-2-4' ...
JavaScript
0.000004
@@ -218,17 +218,17 @@ er-lts-2 -- +. 4',%0A
cb86c82dbcc7316fcd5e3da512cc38c63a11fc0d
Drop Ember 2.16 from Ember try matrix
config/ember-try.js
config/ember-try.js
'use strict'; const getChannelURL = require('ember-source-channel-url'); const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup'); module.exports = async function () { return { useYarn: true, scenarios: [ { name: 'ember-lts-2.16', npm: { devDependencies:...
JavaScript
0
@@ -244,160 +244,8 @@ %7B%0A - name: 'ember-lts-2.16',%0A npm: %7B%0A devDependencies: %7B%0A 'ember-source': 'lts',%0A %7D,%0A %7D,%0A %7D,%0A %7B%0A
59ac7ddc43a41dbe1e5be8617d6a4108ed5a02ab
Update RivCrimeReport.js
Examples/js/RivCrimeReport.js
Examples/js/RivCrimeReport.js
(function() { // Create the connector object var myConnector = tableau.makeConnector(); // Define the schema myConnector.getSchema = function(schemaCallback) { var cols = [{ id: "id", dataType: tableau.dataTypeEnum.string },; var tableSchema =...
JavaScript
0
@@ -282,17 +282,17 @@ %7D -, +%5D ;%0D%0A%0D%0A
8322754cc0abec1851e36797d6f99d58f438b122
Fix yellow warning in scene_ios_test
Examples/js/scene_ios_test.js
Examples/js/scene_ios_test.js
/** * Copyright (c) 2015-present, Viro, 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. */ import React, {...
JavaScript
0.013666
@@ -1395,11 +1395,11 @@ clip -tob +ToB ound
65170493a22c3cc5959435fbfbe80f0508da4495
Add some more tests
tests/unit/helpers/percentage-test.js
tests/unit/helpers/percentage-test.js
import { percentage } from 'ember-percentages/helpers/percentage'; module('PercentageHelper'); // Replace this with your real tests. test('it returns a percentage without a trailing .0', function() { equal(percentage(0.42), '42%'); }); test('it correctly rounds the percentage up where appropriate', function() { ...
JavaScript
0
@@ -481,16 +481,176 @@ 67.8888%25');%0A%7D);%0A +%0Atest('it correctly handles 1', function() %7B%0A equal(percentage(1), '100%25');%0A%7D);%0A%0Atest('it correctly handles 0', function() %7B%0A equal(percentage(0), '0%25');%0A%7D);%0A
e5b7449d672cda414f2c51598aa3e52ee3e98903
fix moving bugs
quantity_presenter.js
quantity_presenter.js
var QuantityPresenter = function(quantity) { this.quantity = quantity; this.integer = Math.floor(this.quantity); this.remainder = quantity - this.integer; this.fractions = { 0: "", 0.25: "\u00BC", 0.5: "\u00BD", 0.75: "\u00BE", 0.142: "\u2150", 0.111: "\u2151", 0.1: "\u2152", ...
JavaScript
0.000001
@@ -606,16 +606,21 @@ ct.keys( +this. fraction @@ -887,16 +887,21 @@ tring + +this. fraction
45666311783560f896b98327f977ce9108401272
add primitive for whileTrue
kernel_primitives.js
kernel_primitives.js
ProtoObject._new = function() { return this.basicNew().initialize(); }; _Object._new = ProtoObject._new; OrderedCollection._new = _Object._new; Point._new = _Object._new; Rectangle._new = _Object._new; S2JWorld._new = _Object._new; BlockClosure._new = _Object._new; Number.prototype._plus = function(anotherNumber)...
JavaScript
0.001408
@@ -605,16 +605,45 @@ ype. -value = +prototype.value = WithNonLocalReturn( func @@ -684,12 +684,197 @@ rguments);%0A%7D +);%0A%0ABlockClosure._objectPrototype.prototype.whileTrue_ = function(anotherBlock)%7B%0A // TODO implement whileTrue for real%0A while(this.value() == _true) %7B%0A anotherBlock.value();%0A...
6e9e7c119bef4ca8f182f81ed20680a476237913
fix breadcrumbs
www/widgets/breadcrumbs/breadcrumbs.js
www/widgets/breadcrumbs/breadcrumbs.js
app.directive('breadcrumbsBreadcrumbs', [ "settings", "$location", function( settings, $location ) { return { templateUrl: settings.widgets + 'breadcrumbs/breadcrumbs.html', link: function(scope, element, attrs) { //Breadcrumbs var locations = $location.path().split('/'...
JavaScript
0.99875
@@ -240,21 +240,19 @@ ttrs) %7B%0A - +%0A -%0A // @@ -263,16 +263,18 @@ dcrumbs%0A + va @@ -326,16 +326,18 @@ ice(1);%0A + va @@ -366,16 +366,18 @@ + for (i = @@ -446,36 +446,91 @@ - locationspath.push +var somevar = %22%22;%0A for(x = i; x %3E= 0; ...
760658c9c12f106a7ff132b51a2954bb2b183a9b
allow to render less without files
packages/less/index.js
packages/less/index.js
const lessCompiler = require('less') const read = require('@lump/read') const write = require('@lump/write') /* * Compile less file */ module.exports = async ({ src, dest, options }) => { if (!src || !dest) { throw new Error('Missing Arguments') } const less = await read(src) const css = await renderLes...
JavaScript
0
@@ -123,19 +123,41 @@ e less f -ile +rom file/less to file/css %0A */%0Amod @@ -183,16 +183,25 @@ (%7B src, + content, dest, o @@ -206,16 +206,21 @@ options + = %7B%7D %7D) =%3E %7B @@ -235,15 +235,18 @@ src -%7C%7C !des +&& !conten t) %7B @@ -302,24 +302,34 @@ const less = + src%0A ? await read( @@ ...
58b48098bfb333e93cafb38c7323fdef803ecdf8
Change the C function creation logic into lazy-loading.
bridgesupport.js
bridgesupport.js
/** * This module takes care of loading the BridgeSupport XML files for a given * framework, and parsing the data into the given framework object. */ var fs = require('fs') , sax = require('sax') , path = require('path') , core = require('./core') , types = require('./types') , join = path.join , basena...
JavaScript
0.000001
@@ -3076,32 +3076,290 @@ ase 'function':%0A + // Binded functions will be lazy-loaded. We simply define a getter that%0A // does the creation magic the first time, and replaces the getter with%0A // the binded function%0A (function (curName, curRtnType, curArgTypes, isInline) %7B%0A ...
dc74ef87e18cfcb537b93dbc535788cb8893be37
Stop breaking things Raquel, this is why you need tests
reducers/file_list.js
reducers/file_list.js
import Cookie from 'js-cookie' import _ from 'lodash' import { SAVE_FILE, DELETE_FILE } from '../actions/file_list_actions' const initialState = Cookie.get('files') const setState = () => { const files = Cookie.get('files') if (files) { return JSON.parse(files) } return [] } const saveExistingFile = (state,...
JavaScript
0.000002
@@ -760,18 +760,16 @@ nst file -Id = state @@ -784,19 +784,16 @@ file.id%5D -.id %0A%0A @@ -804,10 +804,8 @@ file -Id ) %7B%0A
7c9338fbfdab7044e94a7ff5fdb443a2b1a596b3
index follower count
init/mongo-collections.js
init/mongo-collections.js
var MongoClient = require('mongodb').MongoClient; MongoClient.connect(process.env.MONGOHQ_URL, function(err, db) { if (err) throw err; process.nextTick(function() { initCollections(db); }); }); function initCollections(db) { var i, collectionsAndIndexes = { worker_state : [], lo...
JavaScript
0.000001
@@ -440,16 +440,44 @@ ets : %5B%0A +%09%09%09%09%7B followers_count : 1 %7D, %0A
5adbc834a53b6a809b462c9be6038d7db7a1580c
add explicit analytics id
packages/docs-next/src/router/index.js
packages/docs-next/src/router/index.js
// Imports import Router from 'vue-router' import scrollBehavior from './scroll-behavior' import Vue from 'vue' import VueGtag from 'vue-gtag' // Globals import { IS_PROD } from '@/util/globals' import { trailingSlash } from '@/util/helpers' import { abort, locale, layout, route, redirect, } from '@/util/ro...
JavaScript
0.000001
@@ -1837,44 +1837,23 @@ id: -process.env.VUE_APP_GOOGLE_ANALYTICS +'UA-75262397-3' %7D,%0A
2216b272223b9bc04bf89d4e562538f3d64703a8
add first solution
Algorithms/JS/integers/allFactorials.js
Algorithms/JS/integers/allFactorials.js
// All factors // Given a number N, find all factors of N. // Example: // N = 6 // factors = [1, 2, 3, 6] // Make sure the returned array is sorted. /** * @param {number} A * @return {array []} */
JavaScript
0.000002
@@ -199,8 +199,151 @@ %5B%5D%7D%0A */%0A +%0Afunction allFactors(A)%7B%0A var result = %5B%5D;%0A for(var i = 1; i%3C=A; i++)%7B%0A if(A %25 i === 0) result.push(i);%0A %7D%0A return result%0A%7D%0A
d7d1bb7fb1d0649b9c0b880f90a613cf49fb4566
test rotate
pet-projects/xylo-stars/js/main.js
pet-projects/xylo-stars/js/main.js
$(function() { // FastClick.attach(document.body); // $.fn.checkPosition = function() { // var top = this[0].getBoundingClientRect().top; // var left = this[0].getBoundingClientRect().left; // var right = this[0].getBoundingClientRect().right; // var bottom = this[0].getBoundin...
JavaScript
0.000001
@@ -1673,24 +1673,71 @@ ent('div');%0A + var rotateDeg = getRandomInt(10, 360);%0A $(ne @@ -1759,24 +1759,24 @@ ss('star');%0A - $(ne @@ -1971,16 +1971,28 @@ entSide, + %0A @@ -1997,16 +1997,20 @@ ' +-ms- transfor @@ -2014,18 +2014,196 @@ form --rotate': +': 'r...
d278b7f7aee7c3926eb473b75072c386de7bfc38
set tocco languages on intl plugin
storybook/config.js
storybook/config.js
import 'core-js/stable' import 'regenerator-runtime/runtime' import {configure, addParameters, addDecorator} from '@storybook/react' import {withInfo} from '@storybook/addon-info' import {setIntlConfig, withIntl} from 'storybook-addon-intl' import {addLocaleData} from 'react-intl' import enLocaleData from 'react-intl/l...
JavaScript
0
@@ -1008,28 +1008,31 @@ ', ' -en', 'de', 'fr', 'it +fr-CH', 'it-CH', 'en-US '%5D,%0A
00f53e988d0b1963560d5c1156b7f75f81b320d6
Add success 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
@@ -362,16 +362,58 @@ Dialog'; +%0Aimport %7B withSnackbar %7D from 'notistack'; %0A%0Aconst @@ -433,16 +433,17 @@ ubmit = +( createQu @@ -448,16 +448,34 @@ Question +, enqueueSnackbar) =%3E (val @@ -862,39 +862,128 @@ -// this.props.showNotification( +enqueueSnackbar('Quest%C3%A3o salva com sucesso', %7...
4840a29524a0c3ae199006e26ef9cd2dafb6d093
Remove template pattern for EnumerationProperty
js/EnumerationProperty.js
js/EnumerationProperty.js
// Copyright 2019-2021, University of Colorado Boulder /** * Property whose value is a member of an Enumeration. * * @author Chris Malley (PixelZoom, Inc.) */ import Enumeration from '../../phet-core/js/Enumeration.js'; import EnumerationIO from '../../phet-core/js/EnumerationIO.js'; import merge from '../../phet...
JavaScript
0
@@ -406,27 +406,8 @@ ';%0A%0A -/** @template T */%0A clas
f076e791d42682e42ee797d1f356e052ee2d3c87
remove self
js/assets/elr-calendar.js
js/assets/elr-calendar.js
import elrUtlities from 'elr-utility-lib'; import elrTimeUtlities from 'elr-time-utilities'; import elrCalendarCreate from './elr-calendar-create'; import elrCalendarActions from './elr-calendar-actions'; const $ = require('jquery'); let elr = elrUtlities(); let elrTime = elrTimeUtlities(); let elrCreate = elrCalendar...
JavaScript
0.000112
@@ -542,30 +542,8 @@ ) %7B%0A - // let self = %7B%7D;%0A @@ -2888,29 +2888,8 @@ %7D -%0A%0A // return self; %0A%7D;%0A
40d0764852ab632a54dacf5c63debe5575013319
Fix in German translation
js/i18n/grid.locale-de.js
js/i18n/grid.locale-de.js
;(function($){ /** * jqGrid German Translation * Version 1.0.0 (developed for jQuery Grid 3.3.1) * Olaf Klöppel opensource@blue-hit.de * http://blue-hit.de/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = {...
JavaScript
0.999999
@@ -2244,25 +2244,34 @@ e: %22 -View selected row +Ausgew%C3%A4hlte Zeile anzeigen %22%0A%09%7D
41fd5e07d59eb3dbc6a826a5c0a46cbf0804fe8f
Correct coding style
js/id/services/taginfo.js
js/id/services/taginfo.js
iD.taginfo = function() { var taginfo = {}, endpoint = 'https://taginfo.openstreetmap.org/api/4/', tag_sorts = { point: 'count_nodes', vertex: 'count_nodes', area: 'count_ways', line: 'count_ways' }, tag_filters = { point: '...
JavaScript
0.000647
@@ -4191,32 +4191,33 @@ %7D%0A %7D +; %0A %7D%0A%0A @@ -4315,18 +4315,20 @@ Callback + %7C%7C + callback
eebe2de4dd3027129ef2bfef1348d133d636f2a9
Improve comments (slightly)
src/update/Updater.js
src/update/Updater.js
import Immutable from 'immutable'; import Analyser from 'circuit-analysis'; import {Functions} from 'circuit-models'; import R from 'ramda'; import EventProcessor from './EventProcessor.js'; import Modes from './Modes.js'; import Executor from './Executor.js'; import Wire from '../components/elements/Wire.jsx'; const...
JavaScript
0
@@ -3585,50 +3585,8 @@ %5D;%0A%0A - // queue all directly connected nodes%0A @@ -3768,24 +3768,31 @@ gh the model + itself %0A %7D%0A
415ee02f5306d09c9ca162f1b5924c7e4c0a0e4f
fix rate-limiting
config/rate-limit.js
config/rate-limit.js
/** * Copyright 2015 IBM Corp. 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 applica...
JavaScript
0.000004
@@ -930,16 +930,18 @@ elayMs: +50 0, // mi @@ -1054,9 +1054,9 @@ ax: -3 +5 , // @@ -1513,34 +1513,47 @@ %7D%0A -%0A c -learTimeout(timeou +onsole.log('limit:', ip, ':', hi ts%5Bi @@ -1557,16 +1557,17 @@ s%5Bip%5D);%0A +%0A ti @@ -2163,24 +2163,71 @@ ' : req.ip;%0A + console.log('reset:', ...
058b63a88afc8b5e6013d554a6b19eef3c61a6c9
remove space..
js/solGS/combineTrials.js
js/solGS/combineTrials.js
/** * trials search, selections to combine etc... * @author Isaak Y Tecle <iyt2@cornell.edu> * */ JSAN.use("Prototype"); JSAN.use('jquery.blockUI'); function getPopIds () { jQuery('#homepage_trials_list tr').filter(':has(:checkbox:checked)') .bind('click', function() { jQuery("#done_s...
JavaScript
0.000015
@@ -869,18 +869,16 @@ .show(); -%0A %0A j
96e1ecaf4043f3f3a9649d6b15e6f8c94892558f
remove now unused local eval instance ID
ui/analyse/src/ceval/cevalCtrl.js
ui/analyse/src/ceval/cevalCtrl.js
var m = require('mithril'); var makePool = require('./cevalPool'); var dict = require('./cevalDict'); var util = require('../util'); var stockfishProtocol = require('./stockfishProtocol'); var sunsetterProtocol = require('./sunsetterProtocol'); module.exports = function(possible, variant, emit) { var instanceId = M...
JavaScript
0
@@ -297,80 +297,8 @@ %7B%0A%0A - var instanceId = Math.random().toString(36).substring(2).slice(0, 4);%0A va @@ -2337,41 +2337,8 @@ ) %7B%0A - res.instanceId = instanceId;%0A @@ -4092,36 +4092,8 @@ n %7B%0A - instanceId: instanceId,%0A
f89ff6456f2e09d00e8575cf5094622fe78fc44f
add "Signup Week" to people's mixpanel identities
src/util/analytics.js
src/util/analytics.js
import { get, partial } from 'lodash' import { mostRecentCommunity } from '../models/person' // These strings were not used prior to hylo-redux export const ADDED_COMMUNITY = 'Add community' export const EDITED_USER_SETTINGS = 'Edit user settings' export const INVITED_COMMUNITY_MEMBERS = 'Invited community members' /...
JavaScript
0
@@ -85,16 +85,53 @@ /person' +%0Aimport moment from 'moment-timezone' %0A%0A// The @@ -2540,16 +2540,95 @@ 'name') +,%0A 'Signup Week': moment.tz(created_at, 'UTC').startOf('week').toISOString() %0A %7D)%0A%7D%0A
d6ed431194fc032d73d9f0e428502a4f8d1cfcb0
remove unused ui/puzzle chessground option
ui/puzzle/src/view/chessground.js
ui/puzzle/src/view/chessground.js
var m = require('mithril'); var Chessground = require('chessground').Chessground; module.exports = function(ctrl) { return m('div.cg-board-wrap', { config: function(el, isUpdate) { if (!isUpdate) ctrl.ground(Chessground(el, makeConfig(ctrl))); } }); } var global3d = document.getElementById('top').cl...
JavaScript
0.000001
@@ -1194,30 +1194,8 @@ ight -,%0A dragOver: true %0A
0bd1e9cf590bc7e61c159b952d0a5518b8611488
fix #947 misspelled word cancel
src/utils/constant.js
src/utils/constant.js
export const ROLE_TYPE = { ADMIN: 'admin', DEFAULT: 'admin', DEVELOPER: 'developer', } export const CANCEL_REQUEST_MESSAGE = 'cancle request'
JavaScript
0.000019
@@ -134,10 +134,10 @@ canc -l e +l req
1e5eba8f1196fe542a50404e548a09ebf1173d6a
fix error
src/utils/dispatch.js
src/utils/dispatch.js
/* * dispatch.js * Fabian Irsara * Copyright 2015, Licensed GPL & MIT */ define(function(){ /** * helper function to dispatch event on a given object<br> * optionally pass in data to the event * * @method dispatch * @memberof utils * @param {Object} obj which should dispatch the event * @par...
JavaScript
0.000002
@@ -731,16 +731,37 @@ if (obj + && obj.dispatchEvent ) %7B%0A
77fb4a4028579f2aa4bd8bd7382aca1221205f81
Add support for traversing plus and minus operations.
src/utils/traverse.js
src/utils/traverse.js
/** * Traverses an AST node, calling a callback for each node in the hierarchy in * source order. * * @param {Object} node * @param {function(Object, function(Object), boolean): ?boolean} callback */ export default function traverse(node, callback) { var descended = false; function descend(node) { descen...
JavaScript
0
@@ -2372,16 +2372,45 @@ sion'%5D,%0A + PlusOp: %5B'left', 'right'%5D,%0A ProtoM @@ -2508,16 +2508,49 @@ ng: %5B%5D,%0A + SubtractOp: %5B'left', 'right'%5D,%0A This:
1d9ec16d01ea54dabb046b1b798a64c8ae6279bd
Change turn rest api endpoint.
controller/index.js
controller/index.js
var Https = require('https'); var Common = require('./common'); exports.main = { handler: function (request, reply) { var params = Common.getRoomParameters(request, null, null, null); reply.view('index_template', params); } }; exports.turn = { handler: function (request, reply) { var getOptions = {...
JavaScript
0
@@ -371,16 +371,18 @@ path: '/ +__ rtcConfi @@ -382,16 +382,18 @@ tcConfig +__ ',%0A
aa688fee8ca39e5e7b276bdc16de22f759ddbb23
Remove categorys
controllers/home.js
controllers/home.js
const moment = require('moment') // const category = require('../models/category') // const rssFeed = require('../models/rssFeed') const rss = require('../models/rss') // const CATEGORY_LIMIT = 10 // const CATEGORY_OFFSET = 1 const CATEGORY_ARRAY = [1, 2, 3, 4, 5, 6, 7, 8] const CATEGORY_MAP = { 1: '資訊', 2: '正妹',...
JavaScript
0.000093
@@ -252,16 +252,18 @@ %5B1, 2, 3 +/* , 4, 5, @@ -269,16 +269,18 @@ 6, 7, 8 +*/ %5D%0Aconst @@ -330,16 +330,19 @@ '%E7%94%9F%E6%B4%BB',%0A + // 4: '%E7%A0%94%E7%A9%B6' @@ -344,16 +344,19 @@ '%E7%A0%94%E7%A9%B6',%0A + // 5: '%E8%B3%87%E6%BA%90' @@ -358,16 +358,19 @@ '%E8%B3%87%E6%BA%90',%0A + // 6: ...
20595e01609d1983b81c3151a26498e3e6238e07
Update room.js add parseAuthHeader method
controllers/room.js
controllers/room.js
const async = require('async'); const crypto = require('crypto'); const nodemailer = require('nodemailer'); const passport = require('passport'); const Room = require('../models/Room'); const User = require('../models/User'); exports.testBasicAuth = (req, res, next) => { res.json({ "username": req.user.username })...
JavaScript
0.000001
@@ -224,99 +224,1011 @@ );%0A%0A -exports.testBasicAuth = (req, res, next) =%3E %7B%0A res.json(%7B %22username%22: req.user.username +var parseAuthHeader = function(req,res) %7B%0A%09var auth = req.headers%5B'authorization'%5D; // auth is in base64(username:password) so we need to decode the base64%0A%09console...
0f6cc85b5d171ddcc2aba24f375301e51f922a33
add GET handler
controllers/task.js
controllers/task.js
'use strict'; const mongoose = require('mongoose'); const express = require('express'); const path = require('path'); const db = require('../lib/db'); const app = express(); const router = express.Router(); const core = require('../src/core'); const prefix = '/tasks'; module.exports = (parent) => { app.disa...
JavaScript
0.000001
@@ -1702,32 +1702,154 @@ %7D else %7B%0A + var content = parent.wordsList%5B'task'%5D%5Bres.locals.lang%5D%5B'index'%5D;%0A content.data = req.currentTask;%0A res. @@ -1854,32 +1854,41 @@ s.render('index' +, content );%0A %7D%0A @@ -2009,35 +2009,8 @@ %3E %7B%0A -...
cf0d35cf832c4ef9fcb8ffb575ee1300098c32cf
should be lowercase
routes/format_bulk.js
routes/format_bulk.js
var libphonenumber = require('libphonenumber'); var Q = require('Q'); var express = require('express'); var router = express.Router(); function returnWithResult(number, deferred){ return function(error, result){ if (error){ deferred.resolve({ number:number, messa...
JavaScript
1
@@ -58,17 +58,17 @@ equire(' -Q +q ');%0Avar
31e8dc968edcd70841d9dc628564561c1d8f5fbc
Update quickstart.js
samples/quickstart.js
samples/quickstart.js
var thecallr = require('thecallr'); try { // initialize instance Thecallr // set your credentials or an Exception will raise var tc = new thecallr.api("login", "password"); // Basic example // Example to send a SMS // 1. "call" method: each parameter of the method as an argument tc.call("sms.send", "...
JavaScript
0.000001
@@ -858,17 +858,19 @@ og(%22 -Success +Response 2 +: %22, d
c6916a166871ad4e26ed33513784f5fbb746e679
set as action so it only notifies once
tutor/src/models/course/task-plans.js
tutor/src/models/course/task-plans.js
import { computed, observable, action } from 'mobx'; import { find } from 'lodash'; import Map from 'shared/model/map'; import TaskPlan from '../task-plan/teacher'; export default class CourseTaskPlans extends Map { @observable course; constructor(attrs) { super(); this.course = attrs.course; } get ...
JavaScript
0
@@ -1747,16 +1747,24 @@ ) %7B %7D%0A +@action onLoaded
d9b3fe6871e84d43b11acbe87e96417b90259d08
Update mediascape.js
helloworld/Triggers/js/mediascape/mediascape.js
helloworld/Triggers/js/mediascape/mediascape.js
//main javascript (function init() { // If we need to load requirejs before loading butter, make it so if (typeof define === "undefined") { var rscript = document.createElement("script"); rscript.onload = function () { init(); }; rscript.src = "require.js"; do...
JavaScript
0
@@ -805,16 +805,237 @@ L page.%0A + receiver: 'https://www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver',%0A sender:'https://www.gstatic.com/cv/js/sender/v1/cast_sender',%0A presentation: 'lib/presentation-api-shim',%0A
36713585b6c2d416c441b358e8a3daccd29d9846
use 'this' instead of global 'events'
src/docs/js/generateEventsHelper.js
src/docs/js/generateEventsHelper.js
/*global args*/ args = Array.prototype.slice.call(args, 1); // [0] = type, [1] = lib.jar [2] = blockX, [3] = classX var File = java.io.File, FileReader = java.io.FileReader, FileInputStream = java.io.FileInputStream, FRAMEWORK = args[0], out = java.lang.System.out, err = java.lang.System.err, Modifier = jav...
JavaScript
0.999999
@@ -3690,29 +3690,27 @@ ' return -event +thi s.on(Package @@ -3795,21 +3795,19 @@ return -event +thi s.on(' +
96f19a3d8937b075080ad70d304ecfa4136b6ff9
Replace YellowBox references with LogBox
Libraries/Utilities/RCTLog.js
Libraries/Utilities/RCTLog.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; const invariant = require('invariant'); const levelsMap = { log: 'log', info: 'info', ...
JavaScript
0
@@ -793,14 +793,11 @@ to -Yellow +Log Box%0A
b77ad8bde8802ab7a8ff7435840362c9b7047724
Add undefined check
src/duration-picker/DurationCard.js
src/duration-picker/DurationCard.js
import React, { Component, PropTypes } from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import { FormattedMessage } from 'react-intl'; import ErrorMsg from '../_common/ErrorMsg'; import SelectGroup from '../_common/SelectGroup'; import InputGroup from '../_common/InputGroup'; import For...
JavaScript
0.000003
@@ -1784,16 +1784,43 @@ ptions = + forwardStartingDuration && forward
59c01c69fd317a4c7a30c2a899872ef7aeade856
rename _get_form() -> _get_form_data()
src/view/node_info.js
src/view/node_info.js
define(['jquery', 'jquery-ui', 'view/helpers', 'view/internal'], function($, _unused_jquery_ui, view_helpers, internal) { var d = null, submit_callback = null, delete_callback = null; function _get_form() { return { name: $('.info #editformname').val(), type: $('.info #edittype').val(), ...
JavaScript
0.000103
@@ -206,16 +206,21 @@ get_form +_data () %7B%0A
4312a880e7521b7a3aa6b8439bb2f7db6bcccc38
fix lint error
ui/src/utils/private/click-outside.js
ui/src/utils/private/click-outside.js
import { listenOpts } from '../event.js' let timer const { notPassiveCapture } = listenOpts, registeredList = [] function hasModalsAbove (node) { while ((node = node.nextElementSibling) !== null) { if (node.classList.contains('q-dialog--modal')) { return true } } return false } function glo...
JavaScript
0.000001
@@ -821,17 +821,16 @@ f.value - !== null
4145f4d19c19a7fc77a853ce026ab8e38934b92d
update tests
src/main/webapp/openlmis-currency/openlmis-currency.controller.spec.js
src/main/webapp/openlmis-currency/openlmis-currency.controller.spec.js
/* * This program is part of the OpenLMIS logistics management information system platform software. * Copyright © 2013 VillageReach * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, eith...
JavaScript
0
@@ -845,22 +845,16 @@ be(' -ForgotPassword +Currency Cont @@ -1532,16 +1532,71 @@ 'left'; +%0A currencySettings%5B'currencyDecimalPlaces'%5D = 2; %0A%0A @@ -2000,16 +2000,71 @@ 'right'; +%0A currencySettings%5B'currencyDecimalPlaces'%5D = 2; %0A%0A
2efa9a7cd6e405805c20479e4363b6cff4e1c41c
update unit test
src/etl/dim-division-etl-manager.js
src/etl/dim-division-etl-manager.js
'use strict' // external deps var ObjectId = require("mongodb").ObjectId; var BaseManager = require('module-toolkit').BaseManager; var moment = require("moment"); // internal deps require('mongodb-toolkit'); var DivisionManager = require('../managers/master/division-manager'); module.exports = class DimDivisionEt...
JavaScript
0
@@ -567,33 +567,8 @@ ) =%3E - %7B%0A return thi @@ -584,30 +584,16 @@ rm(data) -%0A %7D )%0A @@ -617,33 +617,8 @@ ) =%3E - %7B%0A return thi @@ -629,30 +629,16 @@ ad(data) -%0A %7D );%0A %7D
76cab7f168edf5e13b43897ef5b6f1a1637338b1
Add update to Wizard styles
src/widgets/Wizard.js
src/widgets/Wizard.js
/* eslint-disable import/no-named-as-default */ /* eslint-disable react/forbid-prop-types */ import React, { useMemo } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { StyleSheet, View } from 'react-native'; import { Stepper } from './Stepper'; import { TabNavigator } f...
JavaScript
0
@@ -508,86 +508,8 @@ ';%0A%0A -import %7B PAGE_CONTENT_PADDING_HORIZONTAL %7D from '../globalStyles/pageStyles';%0A impo @@ -530,28 +530,16 @@ D_COLOR, - BLUE_WHITE, SHADOW_ @@ -962,24 +962,52 @@ container%7D%3E%0A + %3CDataTablePageView%3E%0A %3CView @@ -1052,16 +1052,18 @@ + %3CStepp...
c73812126a8aeb5ac5c5f4327b443d2353393eb5
fix escaping of chapter names
src/zbase/webui/widgets/zbase-documentation-menu/documentation_menu.js
src/zbase/webui/widgets/zbase-documentation-menu/documentation_menu.js
var DocumentationMenu = function() { var createMenuItems = function(parent, items, index) { var j = 0; for(var i in items) { var item = i; var key = item.toLowerCase().replace(/ /, "_"); var section = document.createElement("z-menu-item"); section.classList.add("link", "doc_section"...
JavaScript
0.000102
@@ -198,10 +198,14 @@ ce(/ +%5B / +%5D/g , %22_
2f1b2b0f0dcda99ff035f901048316469beb322d
Add semicolon
src/foam/nanos/auth/DeletedAware.js
src/foam/nanos/auth/DeletedAware.js
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.INTERFACE({ package: 'foam.nanos.auth', name: 'DeletedAware', methods: [ { name: 'getDeleted', returns: 'Boolean', javaReturns: 'boolean', swiftReturns: 'Bo...
JavaScript
0.999999
@@ -804,20 +804,21 @@ eleted'%0A %7D%0A %5D%0A%7D) +;
0cd3288749b0a88d4e765c648251a34917912835
Remove duplicate property
src/foam/u2/view/ScrollTableView.js
src/foam/u2/view/ScrollTableView.js
/** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.view', name: 'ScrollTableView', extends: 'foam.u2.Element', requires: [ 'foam.dao.FnSink', 'foam.mlang.sink.Count', 'foam.u2.view.TableView' ...
JavaScript
0.000001
@@ -2524,156 +2524,8 @@ %7B%0A - type: 'Int',%0A name: 'accumulator',%0A value: 0,%0A adapt: function(_, v) %7B%0A return v %25 this.rowHeight;%0A %7D%0A %7D,%0A %7B%0A
c041f3ef9a12c38e9180d53274c45ac9376f7a6f
use ember-cli-moment-shim v2
blueprints/ember-datetimepicker/index.js
blueprints/ember-datetimepicker/index.js
module.exports = { normalizeEntityName: function() {}, afterInstall: function(options) { return this.addBowerPackageToProject('datetimepicker', '2.5.4').then(function() { return this.addAddonToProject({ name: 'ember-cli-moment-shim', target: '^1.0.0' }); }.bind(this)); } };
JavaScript
0.000001
@@ -256,9 +256,9 @@ : '%5E -1 +2 .0.0
4acd4a4bacba30532d4766ed23eb69a877657fb1
Test version equality.
script/ci/download.js
script/ci/download.js
const path = require("path") const fetch = require("node-fetch") const gunzip = require("gunzip-maybe") const tar = require("tar-fs") async function download() { const {repository: {url}, version} = require(path.resolve("./package.json")) const [, user, repo] = url.match(/\/([a-z0-9_-]+)\/([a-z0-9_-]+)\.git$/i) ...
JavaScript
0
@@ -235,16 +235,189 @@ json%22))%0A +%0A if (process.env.TRAVIS_TAG && process.env.TRAVIS_TAG != version) %7B%0A throw new Error(%60Version mismatch (TRAVIS_TAG=$%7Bprocess.env.TRAVIS_TAG%7D, version=$%7Bversion%7D%60)%0A %7D%0A%0A const
c04a3b26c6b1859bf77df6a84936c95b457bf65c
Add support for mixed "plain color string" and "color map" background defintitions
src/generators/background-colors.js
src/generators/background-colors.js
const postcss = require('postcss') const _ = require('lodash') function findColor(colors, color) { const colorsNormalized = _.mapKeys(colors, (value, key) => { return _.camelCase(key) }) return _.get(colorsNormalized, _.camelCase(color), color) } module.exports = function ({ colors, backgroundColors }) { ...
JavaScript
0.999996
@@ -392,17 +392,21 @@ Colors). -m +flatM ap(color @@ -413,22 +413,116 @@ =%3E -%5Bcolor, color%5D +%7B%0A if (_.isString(color)) %7B%0A return %5B%5Bcolor, color%5D%5D%0A %7D%0A return _.toPairs(color)%0A %7D ).fr
13c063b6df04d428f5c0162e3648e075cfb0da81
add larger deletion catch net
scripts/botCleaner.js
scripts/botCleaner.js
const pact = require('../pact.js'); pact.db.createReadStream({start: 'poll!', end: 'poll!~' }) .on('data', (data) => { const title = JSON.parse(data.value).question; if (title.match('href=')) { pact.db.del(data.key, (err) => { if (err) { ...
JavaScript
0.000016
@@ -246,16 +246,42 @@ 'href=') + %7C%7C title.match('http://') ) %7B%0A
e601d2087a1b97252ae59b8f3d5d55a0eb4a4204
add title attr
packages/tocco-ui/src/Button/Button.js
packages/tocco-ui/src/Button/Button.js
import PropTypes from 'prop-types' import React from 'react' import Icon from '../Icon' import LoadingSpinner from '../LoadingSpinner' import StyledButton from './StyledButton' import {design} from '../utilStyles' /** * Use <Button> to trigger any actions. Choose look and ink according Material Design. */ const But...
JavaScript
0
@@ -354,16 +354,96 @@ f) =%3E %7B%0A + const %7Baria, ink, label, icon, pending, look, iconPosition, children%7D = props%0A return @@ -479,22 +479,16 @@ %7B... -props. aria%7D%0A @@ -501,38 +501,32 @@ props%7D%0A ink=%7B -props. ink %7C%7C design.in @@ -564,16 +564,34 @@ a-cy'%5D%7D%0A + title=%7B...
9c5daf44f79f82458b2917147a18ecf7af74765b
Fix ViewMap
Kwc/Directories/List/ViewMap/Component.js
Kwc/Directories/List/ViewMap/Component.js
Ext.namespace('Kwc.Directories.List.ViewMap'); Kwc.Directories.List.ViewMap.renderedMaps = []; Kwc.Directories.List.ViewMap.renderMap = function(map) { if (Kwc.Directories.List.ViewMap.renderedMaps.indexOf(map) != -1) return; Kwc.Directories.List.ViewMap.renderedMaps.push(map); var mapContainer = new Ext....
JavaScript
0.000001
@@ -2510,16 +2510,20 @@ get(up). +dom. switchDi
a97713de7f316a097662a15b699868141b6d643d
check if Ext.grid.CheckboxSelectionModel exists by adding/deleting subscribers to/from queue
Kwc/Newsletter/Detail/RecipientsAction.js
Kwc/Newsletter/Detail/RecipientsAction.js
Ext.ns('Kwc.Newsletter.Detail'); Kwc.Newsletter.Detail.RecipientsAction = Ext.extend(Ext.Action, { constructor: function(config){ config = Ext.apply({ icon : '/assets/silkicons/database_add.png', cls : 'x-btn-text-icon', text : trlKwf('Add Recipients'), tooltip : t...
JavaScript
0
@@ -447,32 +447,67 @@ if ( +Ext.grid.CheckboxSelectionModel && this.getGrid().g @@ -2768,32 +2768,67 @@ if ( +Ext.grid.CheckboxSelectionModel && this.getGrid().g
62bffcab761d3ca395e821e1cd259dab9ed60bc5
Resolve style errors on data block
blocks/data/index.js
blocks/data/index.js
var Data = require('../../lib/data'); module.exports = { className: 'data', template: require('./index.html'), data: { name: 'Data', icon: '/images/blocks_text.png', attributes: { label: { label: 'Header Text', type: 'string', ...
JavaScript
0
@@ -773,18 +773,19 @@ ction () + %7B%0A - @@ -814,16 +814,29 @@ if ( +%0A !self.$d @@ -841,16 +841,28 @@ $data %7C%7C +%0A !self.$ @@ -884,16 +884,28 @@ aSets %7C%7C +%0A self.$d @@ -936,17 +936,40 @@ th === 0 -) +%0A ) %7B%0A self.$d @@ -9...
c1a0eee5da12373ecfb1c91b9ea44660c565c0a2
Remove extra semicolon from new tab page js.
tab_page/js/main.js
tab_page/js/main.js
var sites; document.addEventListener('DOMContentLoaded', function() { document.removeEventListener('DOMContentLoaded', arguments.callee, false); init(); }, false ); chrome.extension.onMessage.addListener(function(request, sender, sendResponse) { console.log('Message received: ' + request.message); if (request.m...
JavaScript
0.000001
@@ -5078,27 +5078,30 @@ es');%0A%0A%09var -til +messag e = document @@ -5124,19 +5124,22 @@ div');%0A%09 -til +messag e.setAtt @@ -5167,19 +5167,22 @@ age%22);%0A%09 -til +messag e.innerH @@ -5379,17 +5379,16 @@ %3C/span%3E%22 -; %0A%09 + %22%3C/ @@ -5443,21 +5443,24 @@ appendChild( -til +messag e);%0A%7D%0A...
d9596e2cc498da2d54650e2e9651dab2caf0ec23
remove describe.only from item model test
db/models/item.test.js
db/models/item.test.js
'use strict' const db = require('APP/db'), { Item } = db, { expect } = require('chai'), Promise = require('bluebird') describe.only('The `Item` model', () => { /** * First we clear the database and recreate the tables before beginning a run */ before('Await database sync', () => db.didSync) /** ...
JavaScript
0.000005
@@ -131,13 +131,8 @@ ribe -.only ('Th
ddd91e4e0cfa15302fc636cfc7b52990f92a3408
Update actividadLaEleccionDelMono.js
app/actividades/actividadLaEleccionDelMono.js
app/actividades/actividadLaEleccionDelMono.js
import bloques from 'pilas-engine-bloques/actividades/bloques'; var {Accion, Sensor, Si, Sino, Procedimiento} = bloques; var Avanzar = Accion.extend({ init() { this._super(); this.set('id', 'Avanzar'); }, block_init(block) { this._super(block); block.appendDummyInput() .appendField('Ava...
JavaScript
0
@@ -2658,9 +2658,9 @@ ta: -%C3%89 +%C3%A9 sta
a8c9119f0c8b77968edcc8af5ee105b0025ecf1b
Switch to needsUpdate pattern
app/assets/javascripts/stores/alerts_store.js
app/assets/javascripts/stores/alerts_store.js
import McFly from 'mcfly'; const Flux = new McFly(); let _needHelpAlertSubmitting = false; let _needHelpAlertCreated = false; const needHelpAlertSubmitted = function () { _needHelpAlertSubmitting = true; return AlertsStore.emitChange(); }; const needHelpAlertCreated = function () { _needHelpAlertSubmitting = ...
JavaScript
0
@@ -206,43 +206,8 @@ ue;%0A - return AlertsStore.emitChange();%0A %7D;%0A%0A @@ -321,43 +321,8 @@ ue;%0A - return AlertsStore.emitChange();%0A %7D;%0A%0A @@ -435,43 +435,8 @@ se;%0A - return AlertsStore.emitChange();%0A %7D;%0A%0A @@ -673,16 +673,44 @@ d) =%3E %7B%0A + let needsUpdate = false;%0A%0A switc...
cb521db27d6ef7e69812f966c9d037a8989ec423
fix race condition
src/javascript/app/japan/cashier.js
src/javascript/app/japan/cashier.js
const BinaryPjax = require('../base/binary_pjax'); const Client = require('../base/client'); const BinarySocket = require('../base/socket'); const localize = require('../../_common/localize').localize; const State = require('../../_common/storage').State; const CashierJP = (() => { const onLoad ...
JavaScript
0.000001
@@ -1538,150 +1538,67 @@ -$ con -tainer.find('#cashier_unlocked_message').setVisibility(1);%0A BinarySocket.wait('get_settings').then(() =%3E %7B%0A +st response_authorize = State.getResponse('authorize');%0A @@ -1657,36 +1657,48 @@ val( -Client.get('loginid'));%0A +resp...
6ef247ff5a2af1dc165e5b18f78dd6d44b165927
set type days
src/js/components/LineSelectDays.js
src/js/components/LineSelectDays.js
import React, { Component } from 'react' let menuItems = [ { menuItem: 'Dias úteis' }, { menuItem: 'Sábado' }, { menuItem: 'Domingos e feriados' } ] class MenuItemDays extends Component { render () { return ( <a href='javascript:void(0);' className={this.props.active ? 'day-selected' : ''} onCli...
JavaScript
0.000219
@@ -79,16 +79,25 @@ s %C3%BAteis' +, type: 1 %7D,%0A %7B @@ -114,16 +114,26 @@ 'S%C3%A1bado' + , type: 2 %7D,%0A %7B @@ -163,16 +163,25 @@ eriados' +, type: 3 %7D%0A%5D%0A%0Acl
be3e8daecce8170e289a379531ee03c1996c1b2d
Update TableDirective.js
src/js/directives/TableDirective.js
src/js/directives/TableDirective.js
angular.module('JiNGle.directives').directive('jitable', function($filter) { 'use strict'; return { restrict: 'AE', replace: 'true', templateUrl: JiNGle.viewPath + 'TableDirective.html', scope: { columns: '=columns', data: '=data', create: '...
JavaScript
0
@@ -540,16 +540,19 @@ filter(' +ji_ inline')
9072d8dd5d91edaca4ebe0b929c041e84bb2be36
Update fetch-refs.js
scripts/fetch-refs.js
scripts/fetch-refs.js
#!/usr/bin/env node var request = require('request'), userAgent = require("./user-agent"), helper = require('./helper'), bibref = require('../lib/bibref'); if (process.argv.length < 4) { console.log("Usage: fetch-refs.js [url] [publisher] [no-prefix]"); process.exit(1); } var SOURCE = process.argv[2];...
JavaScript
0
@@ -1646,16 +1646,46 @@ if ( +!(%22source%22 in existingRef) %7C%7C existing
e3d9163ff94e3cd455b2150a2733e5cdd6632cd5
Implement a temporary list of tainted domains
core/interceptor.js
core/interceptor.js
/** * Interceptor * Belongs to Decentraleyes. * * @author Thomas Rientjes * @since 2016-04-06 * @license MPL 2.0 * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://moz...
JavaScript
0.004197
@@ -588,16 +588,27 @@ ndidate, + tabDomain, targetD @@ -792,24 +792,770 @@ %7D;%0A %7D%0A%0A + try %7B%0A tabDomain = tab.url.match(WEB_DOMAIN_EXPRESSION)%5B1%5D;%0A tabDomain = requestAnalyzer._normalizeDomain(tabDomain);%0A %7D catch (exception) %7B%0A tabDomain = 'example.org';%0A...
263d4796377972720f964c67ebc4987788654aa8
clean console
core/system/view.js
core/system/view.js
var jade = require('jade') , HTTP = require('constant-list').HTTP , TYPE = require('constant-list').TYPE , Promise = require('promise'); module.exports.render = render; module.exports.json = json; module.exports.error = error; module.exports.partial = partial; function _resolveObject(data, cb) { if(!data) { ret...
JavaScript
0.000001
@@ -1452,50 +1452,8 @@ ) %7B%0A - console.log('partial', viewName, data);%0A va
e19a252193e90c444e57641ca6b19c977cd99055
Fix linter issue
scripts/get-actual.js
scripts/get-actual.js
/** * Script for downloading actual data files * Files are kept in ./scripts/assets/<season-id>-actual.json */ const utils = require('./utils') const path = require('path') const fs = require('fs') const fct = require('flusight-csv-tools') const mmwr = require('mmwr-week') // Variables and paths const dataDir = '....
JavaScript
0
@@ -924,32 +924,33 @@ tion seasonWeeks + (seasonId) %7B%0A l @@ -1180,24 +1180,25 @@ on getActual + (season, cal
279fb4a7e0b8eaf096f540ddf90b32802170c3b7
fix deploy script condition (take 10)
scripts/git-builds.js
scripts/git-builds.js
#!/usr/bin/env node 'use strict'; /* eslint-disable no-console */ const spawnSync = require( 'child_process').spawnSync; const fs = require('fs'); const temp = require('temp'); const { blue, green, red, gray, yellow } = require('chalk'); const path = require('path'); const glob = require('glob'); const cli = 'https:/...
JavaScript
0
@@ -2491,14 +2491,8 @@ %7D%0A%0A%0A -async func @@ -4906,134 +4906,6 @@ in() -%0A .then(() =%3E console.log(green('All good. Thank you.')))%0A .catch(err =%3E console.log(red('Error happened. Details:%5Cn' + err))) ;%0A
41a0c7e7f640322b4373f2e53f4b2b118350d274
clean up on map unload
layer/tile/Yandex.js
layer/tile/Yandex.js
// https://tech.yandex.com/maps/doc/jsapi/2.1/quick-start/index-docpage/ /* global ymaps: true */ L.Yandex = L.Layer.extend({ options: { type: 'yandex#map', // 'map', 'satellite', 'hybrid', 'map~vector' | 'overlay', 'skeleton' mapOptions: { // https://tech.yandex.com/maps/doc/jsapi/2.1/ref/reference/Map-docpage...
JavaScript
0
@@ -1755,16 +1755,60 @@ pPane);%0A +%09%09%09map.once('unload', this._destroy, this);%0A %09%09%09ymaps @@ -2207,16 +2207,205 @@ );%0A%09%7D,%0A%0A +%09_destroy: function (e) %7B%0A%09%09if (!this._map %7C%7C this._map === e.target) %7B%0A%09%09%09if (this._yandex) %7B%0A%09%09%09%09this._yandex.destroy();%0A%09%09%...
2cacfa9d99240383a82a2aff78d9973732186058
Fix broken calls to data
challenge-completed.js
challenge-completed.js
#!/usr/bin/env node var fs = require('fs') var userData = require('./user-data.js') // TODO what is this doing var data var disableVerifyButtons = function (boolean) { document.getElementById('verify-challenge').disabled = boolean var directoryButton = document.getElementById('select-directory') if (directory...
JavaScript
0.000129
@@ -84,35 +84,8 @@ ')%0A%0A -// TODO what is this doing%0A var @@ -364,25 +364,31 @@ an %7D%0A%7D%0A%0Avar -c +enableC learStatus = @@ -567,20 +567,96 @@ ) %7B%0A -data +// set challenge to uncomplted and update the user's data file%0A data.contents %5Bchallen @@ -744,16 +744,91 @@ ll, 2))%0A + // re...
e26b1f7a87f11184e932425acd6d35a0ed50d685
Tidy up onBeforeAction
client/main.js
client/main.js
Router.configure({ layoutTemplate: 'layout', loadingTemplate: 'loading' }); Router.onBeforeAction(function(pause) { if (!Meteor.userId() && !Meteor.loggingIn()) { this.render('login'); pause(); } this.subscribe('messages').wait(); this.subscribe('students').wait(); this.subscribe('allUserData').wa...
JavaScript
0.00005
@@ -42,38 +42,143 @@ out' -,%0A loadingTemplate: 'loading' +%0A%7D);%0ARouter.waitOn(function() %7B%0A return %5BMeteor.subscribe('messages'), Meteor.subscribe('students'), Meteor.subscribe('allUserData')%5D; %0A%7D); @@ -312,143 +312,102 @@ ;%0A -%7D%0A this.subscribe('messages').wait();%0A + return;%0A %7D%...
f0d0350cbea0672adf16e3200457f40741fce9bf
Update login.js
Duplicati/Server/webroot/login/login.js
Duplicati/Server/webroot/login/login.js
$(document).ready(function() { var processing = false; $('#login-button').click(function() { if (processing) return; processing = true; // First we grab the nonce and salt $.ajax({ url: './login.cgi', type: 'POST', dataType: 'js...
JavaScript
0.007737
@@ -961,16 +961,17 @@ tion = ' +. /';%0A
9f2accdacf5692301533c062a7a1a4fc1e8951a8
Fix Unfocus placement
client/menu.js
client/menu.js
(function () { $DOC.on('click', '.control', function (event) { var $target = $(event.target); if ($target.is('li')) { var handler = menuHandlers[$target.text()]; if (handler) handler(parent_post($target)); } var $menu = $(this).find('ul'); if ($menu.length) $menu.remove(); else { $menu = $('<ul/>'); ...
JavaScript
0.000001
@@ -567,18 +567,16 @@ == num) - %7B %0A%09%09%09opts @@ -581,32 +581,40 @@ ts.s -hift();%0A%09%09%09opts.unshift( +plice(opts.indexOf('Focus'), 1, 'Unf @@ -620,20 +620,16 @@ focus'); -%0A%09%09%7D %0A%0A%09%09_.ea
6b4793bc657a164f234250a42f45a32a5575651d
Fix jshint issue
client/src/conflict.js
client/src/conflict.js
/** * Utility functions for working with Conflicted Files. */ var Path = require('../../lib/filer.js').Path; // Rename oldPath to newPath, deleting newPath if it exists function forceRename(fs, oldPath, newPath, callback) { fs.rename(oldPath, newPath, function(err) { if(err) { if(err.code !== 'EEXIST') {...
JavaScript
0.000001
@@ -841,16 +841,18 @@ new Date +() ;%0A var
dc37be10cda56bbec51d8b0538fbb6ae973e8ead
Fix paddings of dynamic list item
lib/List/ListItem.js
lib/List/ListItem.js
import { StyleSheet, View, Text, TouchableWithoutFeedback, TouchableNativeFeedback } from 'react-native'; import { TYPO, COLOR } from '../config'; import Icon from '../Icon'; import IconToggle from '../IconToggle'; import React, { Component, PropTypes } from 'react'; const propTypes = { // gene...
JavaScript
0.000001
@@ -4418,82 +4418,8 @@ r',%0A - paddingTop: 16,%0A paddingBottom: 16%0A
16b481a816672c6d46610b6f58b1a84fa00b3db9
fix option 'all'
app/javascript/pages/country/utils/filters.js
app/javascript/pages/country/utils/filters.js
import deburr from 'lodash/deburr'; import toUpper from 'lodash/toUpper'; import pick from 'lodash/pick'; import isEmpty from 'lodash/isEmpty'; import { createSelector } from 'reselect'; import INDICATORS from './indicators.json'; export function deburrUpper(string) { return toUpper(deburr(string)); } export const...
JavaScript
0.999999
@@ -99,16 +99,52 @@ /pick';%0A +import values from 'lodash/values';%0A import i @@ -2521,25 +2521,17 @@ const -selectedI +i ndicator @@ -2534,16 +2534,23 @@ ators = +values( pick(IND @@ -2572,74 +2572,18 @@ ist) -;%0A const indicators = Object.keys(selectedIndicators ).map(i -ndex +tem =%3E @@ -2612,3...
ffd1f2252750782f566def9f2d430e693ba057f5
Fix bug where allegiance tree view nodes weren't clickable
vendor/assets/javascripts/tree.js
vendor/assets/javascripts/tree.js
var draw = function(selector, json, server_name, allegiance_name, options) { var width = options.width || 800, height = options.height || 800; var svg = d3.select(selector).append("svg") .attr("width", width) .attr("height", height); var g = svg.append("g"); var force = d3.layout.force() ...
JavaScript
0.000002
@@ -255,36 +255,8 @@ );%0A%0A - var g = svg.append(%22g%22);%0A%0A va @@ -897,24 +897,54 @@ , height);%0A%0A + var g = svg.append(%22g%22);%0A%0A svg.%0A
bd1fabd7ada89ffe8b0313024726a08db5612ed3
update trello-integration
scripts/trello-api.js
scripts/trello-api.js
'use strict' var trello = require("node-trello"); var q = require('q'); // auth var key = process.env.HUBOT_TRELLO_KEY; var token = process.env.HUBOT_TRELLO_TOKEN; var t = new trello(key, token); module.exports ={ /*******************************************************************/ /* ...
JavaScript
0
@@ -2069,16 +2069,20 @@ I7e%22,'', + k = cb);%0A%0A%09
8a65fea36f4786f67d75e83745e36589e382cea8
Fix auto scroll for tall messages
static/application.js
static/application.js
angular.module('grooveboat', ["LocalStorageModule"]) .config(["$routeProvider", "$locationProvider", function($routeProvider, $locationProvider) { $routeProvider .when("/", { controller: RoomListCtrl, templateUrl: "static/templates/room_list.html"}) .when("/room/:room", { controller:...
JavaScript
0
@@ -953,24 +953,160 @@ s, attrs) %7B%0A + var el = elements%5B0%5D;%0A function scrollToBottom() %7B%0A el.scrollTop = el.scrollHeight;%0A %7D%0A @@ -1172,46 +1172,8 @@ ) %7B%0A - var el = elements%5B0%5D;%0A @@ -1438,35 +1438,32 @@ ...
b13b03371049c3e85f46af4499b217af9d1ce629
update trello-integration
scripts/trello-api.js
scripts/trello-api.js
'use strict' var trello = require("node-trello"); var q = require('q'); // auth var key = process.env.HUBOT_TRELLO_KEY; var token = process.env.HUBOT_TRELLO_TOKEN; var t = new trello(key, token); module.exports ={ /*******************************************************************/ /* ...
JavaScript
0
@@ -2066,16 +2066,30 @@ 7e%22,'', +cb); %0A%0A%0A%09%09cb = function @@ -2171,23 +2171,29 @@ %0A%09%09%09 -%09k = +return cb( data -; +);%09 %0A%09%09%7D -) %0A%09%09c
ec7cdce40accb8132a74eca73add009d89960d1e
Refactor worker API
core/worker/index.js
core/worker/index.js
'use strict' const checkRequiredParams = require('../util/check-required-params') const createProcessExit = require('../util/process-exit') const providers = require('../providers') const createLogger = require('../log') const { waterfall } = require('async') const { partial } = require('lodash') const isUp = require(...
JavaScript
0.000001
@@ -452,16 +452,24 @@ rovider' +, 'type' %5D%0A%7D%0A%0Afu @@ -485,197 +485,487 @@ eate -Worker (opts) %7B%0A checkRequiredParams(opts, CONST.REQUIRED_PARAMS)%0A const %7B provider, type, category %7D = opts%0A const loggerKeyword = opts.loggerKeyword = %60$%7Bprovider%7D_$%7Btype%7D_$%7Bcategory%7D%60 +LoggerKe...
4d62bdfe368d2531b3e70a9f5cd3c230702f83cf
remove unnecessary _url
src/main/webapp/ui/app/main-view.js
src/main/webapp/ui/app/main-view.js
define(['app/details-view', 'app/dates-view', 'app/slots-view', 'app/managers', 'app/constants', 'app/utils'], function(DetailsView, DatesView, SlotsView, Managers, Const, Utils) { function MainView(_url, slotStatesCanvas, datesViewCanvas, detailsViewCanvas) { var _this = this; var mutableDim...
JavaScript
0.000014
@@ -201,17 +201,16 @@ ainView( -_ url, slo @@ -714,33 +714,8 @@ );%0A%0A - var url = _url;%0A%0A
236af130fe8549e5162379f09fc9622c73256df2
fix API documentation for applyOperators
lib/adapter/index.js
lib/adapter/index.js
'use strict' var defineEnumerable = require('../common/define_enumerable') /** * Adapter is an abstract base class containing methods to be implemented. All * records returned by the adapter must have the primary key `id`. The primary * key **MUST** be a string or a number. */ function Adapter (properties) { d...
JavaScript
0
@@ -6507,35 +6507,56 @@ hat -input transform%0A * function +the internal%0A * implementation of update request s ge @@ -6587,24 +6587,27 @@ state. This +%0A * method is o @@ -6616,19 +6616,16 @@ ional to -%0A * impleme
f885aae842e9621a3499daf90f2be725ec1a90d0
fix auto focus on multiple lines on input boxes
static/js/input-ux.js
static/js/input-ux.js
$(document).ready(function() { var inputs = $('form.guess .box input') var button = $('form.guess button') var timer = null var beingPressed = false inputs[0].focus() $(window).keydown(function(event) { if (event.metaKey || event.ctrlKey) { return } if (event.target.tagName == 'BUTTON' &&...
JavaScript
0
@@ -1264,24 +1264,168 @@ t').focus()%0A + %7D else if (!!input.parent().parent().next().is('.boxes')) %7B%0A input.parent().parent().next().find('.box:first-child input').focus()%0A %7D else @@ -1838,38 +1838,32 @@ .focus()%0A %7D -%0A %7D else if (event. @@ -1860,117 +1860,53 @@ if ( -e...
d2949aa9a75c7a5c6b613193926da5ed04212eaa
FIx prepare scritp
lib/after-prepare.js
lib/after-prepare.js
var fs = require('fs-extra'); var path = require('path'); var parser = require('xmldom').DOMParser; var xcode = require('xcode'); var plist = require('simple-plist'); module.exports = function ($logger, $projectData, hookArgs) { var platform = hookArgs.platform.toLowerCase(), fabricJSON = path.join($proje...
JavaScript
0.000001
@@ -2135,43 +2135,8 @@ h);%0A - console.log(xcode)%0A @@ -3210,32 +3210,59 @@ n Info plist');%0A + resolve();%0A %7D el
6c27bf839bd6390e07e24813289e998ea9ff66b1
Add var
static/js/panoptes.js
static/js/panoptes.js
var ws; function WebSocketTest(server) { var ws; if ("WebSocket" in window) { ws = new WebSocket("ws://" + server + "/ws/"); ws.onopen = function() { ws.send('get_status'); }; ws.onmessage = function (evt) { var type = evt.data.split(' ', 1)[0]; ...
JavaScript
0.00003
@@ -783,24 +783,28 @@ +var system = msg
ffcec0c6db11ff8af6deeca35aae6616acecbe66
Access zaraz via window.zaraz
static/js/scat.web.js
static/js/scat.web.js
"use strict"; class ScatWeb { // format number as $3.00 or ($3.00) amount (val) { if (typeof(val) == 'function') { val= val() } if (typeof(val) == 'undefined' || val == null) { return '' } if (typeof(val) == 'string') { val= parseFloat(val) } if (val < 0.0) { ret...
JavaScript
0
@@ -455,16 +455,23 @@ if ( +window. zaraz) %7B @@ -477,16 +477,23 @@ %7B%0A +window. zaraz.ec
c1e4dc5ccc7a40f7acb3a793eb73bc3f64bbbd54
Rename enter_night_mode to switch_to_dark_theme.
static/js/zcommand.js
static/js/zcommand.js
import $ from "jquery"; import marked from "../third/marked/lib/marked"; import * as channel from "./channel"; import * as common from "./common"; import * as dark_theme from "./dark_theme"; import * as feedback_widget from "./feedback_widget"; import {$t} from "./i18n"; import * as scroll_bar from "./scroll_bar"; /...
JavaScript
0
@@ -2183,31 +2183,35 @@ unction -enter_night_mod +switch_to_dark_them e() %7B%0A @@ -4952,23 +4952,27 @@ -enter_night_mod +switch_to_dark_them e();
44cbf1721056d11e0129d41ff03b348a7d43bda6
Add ability to set show_tracklabels=0 in config or &tracklabels=0 in url
plugins/HideTrackLabels/js/main.js
plugins/HideTrackLabels/js/main.js
/* HideTrackLabels JBrowse plugin CSS */ /* Created on : Jul 15, 2015, 7:19:50 PM Author : EY */ define([ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/Deferred', 'dojo/dom-construct', 'dijit/form/Button', 'dojo/fx', 'dojo...
JavaScript
0
@@ -946,16 +946,98 @@ = this;%0A + var queryParams = dojo.queryToObject( window.location.search.slice(1) );%0A%0A %0A @@ -1667,16 +1667,291 @@ vBox));%0A + %0A if(queryParams.tracklabels == 0 %7C%7C thisB.browser.config.show_tracklabels == 0) %7B%0A query('.track-label').style...
84561efeb8465fbc3297faafa0eb7fbbb6cca4c0
Update picker.js
resources/js/picker.js
resources/js/picker.js
$(document).on('ajaxComplete ready', function () { // Initialize inputs $('input[data-provides="anomaly.field_type.datetime"]:not([data-initialized])').each(function () { var $this = $(this); var inputMode = $this.data('input-mode'); var options = { altInput: true, ...
JavaScript
0.000001
@@ -278,16 +278,58 @@ ons = %7B%0A + locale: $this.data('locale'),%0A
548f8dc970f76b85d6cef89da5c12d910a950814
use rtm.connect
lib/bot/connector.js
lib/bot/connector.js
/* * slack-bot * https://github.com/usubram/slack-bot * * Copyright (c) 2016 Umashankar Subramanian * Licensed under the MIT license. */ 'use strict'; const _ = require('lodash'); const http = require('https'); const path = require('path'); const querystring = require('querystring'); const root = '..'; const ...
JavaScript
0.000001
@@ -500,12 +500,14 @@ rtm. -star +connec t',%0A
247efe2dfbd2762628415137ac1a2f9023cabbf3
Add cleaning of tmp into nodejs
boot/kernal/index.js
boot/kernal/index.js
var mkdirp = require('mkdirp'); var clicolour = require("cli-color"); var exec = require('child_process').exec; exports.createTmp = function createTmp(argument) { mkdirp("./tmp", function(err){ console.log(clicolour.cyanBright('Created ./tmp...')+clicolour.greenBright("OK")); }) } exports.clean = function cle...
JavaScript
0.000002
@@ -327,43 +327,92 @@ %7B%0A -console.log('Cleaning out files');%0A +// clean out ./tmp%0A exec(%22rm -rfv ./tmp/*%22, function (error, stdout, stderr) %7B%0A co @@ -474,10 +474,16 @@ %22OK%22));%0A + %7D);%0A %7D%0A
697c7c96d34729ad19c8db4062d90ad5c190a596
fix bot not found
bot/commands/game.js
bot/commands/game.js
/** * This method should return the response directly to the channel * @param {*string array} params * @param {*message} message */ const settings = require('./../../settings.json'); async function command(params, message) { const member = bot.guilds.get("184536578654339072").member(message.author); if (!...
JavaScript
0
@@ -182,16 +182,49 @@ json');%0A +const bot = require('./../bot');%0A async fu
c380eb124c4dd02fc8231278e1f6378ff6aef11f
Use Promise.resolve when normalizing
lib/bundles/index.js
lib/bundles/index.js
module.exports = function(loader){ var bundles = {"@global": {}}; var parentMap = loader.__ssrParentMap = {}; function setAsBundle(name, parentName){ return loader.normalize(name, parentName).then(function(name) { if(!bundles[name]) { bundles[name] = {}; } }); } function findBundleName(moduleName)...
JavaScript
0.000002
@@ -150,23 +150,40 @@ ame)%7B%0A%09%09 -return +var p = Promise.resolve( loader.n @@ -200,32 +200,45 @@ ame, parentName) +);%0A%09%09return p .then(function(n