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
c6198e77c167e12c2aa74e571f07dbf8f3f1dfb6
remove test if statement
server.js
server.js
'use strict' const express = require('express') const Slapp = require('slapp') const ConvoStore = require('slapp-convo-beepboop') const Context = require('slapp-context-beepboop') // use `PORT` env var on Beep Boop - default to 3000 locally var port = process.env.PORT || 3000 var slapp = Slapp({ // Beep Boop sets ...
JavaScript
0.999999
@@ -1218,24 +1218,27 @@ (msg) =%3E %7B%0A + // if (msg.bod @@ -1271,16 +1271,19 @@ art') %0A%09 +// return;%0A
baf922280307a4b76e38cf96c151b7870836bd4f
remove console.log
server.js
server.js
#!/usr/bin/env node const debug = require('debug')('trifid:') const path = require('path') const program = require('commander') const ConfigHandler = require('trifid-core/lib/ConfigHandler') const Trifid = require('trifid-core') program .option('-v, --verbose', 'verbose output', () => true) .option('-c, --config ...
JavaScript
0.000006
@@ -1041,39 +1041,8 @@ %0A%7D%0A%0A -console.log('config', config)%0A%0A // a
2628e6b8b0d3b8abce81d9e584655fae2fac4ea2
update time interval
server.js
server.js
const http = require('http'); const app = require('./lib/app'); require('mongoose'); const findAndUpdate = require('./lib/update-user'); // const User = require('./lib/models/user.model'); require('./lib/connection'); const server = http.createServer(app); const port = process.env.PORT || 3000; server.listen(port...
JavaScript
0.000004
@@ -136,60 +136,8 @@ ');%0A -// const User = require('./lib/models/user.model');%0A %0A%0Are @@ -365,10 +365,13 @@ e, 86400 +000 );
bc9afa0314df8967faacfdf53ae7de0e842ac4e1
Support for Coffee Script 1.7.0
server.js
server.js
/* * Windows Azure Setup */ global.DEBUG = true; require('coffee-script'); require('./app/init.coffee');
JavaScript
0
@@ -3,27 +3,26 @@ %0A * -Windows Azure Setup +Start Nitro Server %0A */ @@ -49,34 +49,307 @@ e;%0A%0A -require('coffee-script');%0A +// Include the CoffeeScript interpreter so that .coffee files will work%0Avar coffee = require('coffee-script');%0A%0A// Explicitly register the compiler if required. This became nece...
17cf5d8b505d76fcd1870cd08e24d931ee8930a9
update grunt config
gruntFile.js
gruntFile.js
/* jshint ignore:start */ 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Time how long tasks take. Can help when optimizin...
JavaScript
0.000001
@@ -815,12 +815,52 @@ %7D%0A %7D); +%0A%0A // For aliases, see grunt/aliases.js %0A%7D;%0A
62c3bc3da6743ce2d69c6b9ec4835f18a416dc14
Fix routing of the application.
ui/src/index.js
ui/src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import 'bootstrap/dist/css/bootstrap.css'; import registerServiceWorker from './registerServiceWorker'; import WsClient from './WsClient'; import configureStore from './...
JavaScript
0
@@ -76,16 +76,23 @@ erRouter +, Route %7D from @@ -107,24 +107,24 @@ outer-dom';%0A - import %7B Pro @@ -597,24 +597,30 @@ nnect: () =%3E + %7B%0A store.dispa @@ -644,16 +644,60 @@ ected()) +;%0A // store.dispatch(fetchRocniky());%0A %7D ,%0A onCl @@ -1026,16 +1026,287 @@ way.%0A%7D%0A%0A +/* Render...
cdc8e94d470eb9bf9f7ba7d10f34b44da7f65a1c
Fix not passing ResizeObserver entries to measure method, closes #124
src/with-content-rect.js
src/with-content-rect.js
import { Component, createElement } from 'react' import PropTypes from 'prop-types' import ResizeObserver from 'resize-observer-polyfill' import getTypes from './get-types' import getContentRect from './get-content-rect' function withContentRect(types) { return WrappedComponent => class WithContentRect extends ...
JavaScript
0
@@ -840,34 +840,162 @@ = n -ew ResizeObserver(() =%3E +ull%0A%0A _node = null%0A%0A componentDidMount() %7B%0A this._resizeObserver = new ResizeObserver(this.measure)%0A if (this._node !== null) %7B%0A + @@ -1007,26 +1007,61 @@ his. -measure()%0A %7D) +_resizeObserver.observe(t...
2455b82f940f2e6561ca6a677c4c0ca6c179202f
resolve "after doc deleted , it can also find" bug
dao/DocDao.js
dao/DocDao.js
/************************************** * 数据库操作类DocDao继承BaseDao * 2016-7-25 **************************************/ var config = require('../config'); //基础类 var BaseDao = require('./BaseDao'); class DocDao extends BaseDao { getList(options, callback) { var page = options.page, limit = op...
JavaScript
0.000001
@@ -1011,20 +1011,39 @@ category +, is_deleted: false %7D)%0A - @@ -1794,16 +1794,35 @@ x: key %7D +, is_deleted: false %7D)%0A @@ -2054,16 +2054,35 @@ x: key %7D +, is_deleted: false %7D, func @@ -2525,16 +2525,35 @@ l.find(%7B + is_deleted: false %7D, 'titl @@ -2706,16 +2706,103 @@ %0A %...
85c1b6c02d30e8117dc951328cb5cfa6e0c9a21a
Update documentation title
gruntfile.js
gruntfile.js
'use strict'; module.exports = function(grunt) { var pkg = grunt.file.readJSON('package.json'); var docsRepo = 'https://github.com/medullan/jenkins-docker-vagrant-ansible.wiki.git'; var docManifest = { title: "Vagrant Ansible Jenkins", github: pkg.repository.url, files: [] }; // Project co...
JavaScript
0.000001
@@ -216,16 +216,35 @@ title: %22 +Jenkins Docker CI ( Vagrant @@ -254,16 +254,9 @@ ible - Jenkins +) %22,%0A
e8d71157623538e60f8bde7c04280d4e63b791c8
Return null when data not available
src/vfs.js
src/vfs.js
/** * <h1>VFS Manager</h1> * * <h2>spaceStatus</h2> * * <table> * <thead><td>Code</td><td>Status name</td></thead> * <tr><td>0</td><td>UNKNOWN</td></tr> * <tr><td>1</td><td>ABOVE</td></tr> * <tr><td>2</td><td>BELOW</td></tr> * </table> * * @module vfs * @namespace TVB * @title VFS Manager * @requires ...
JavaScript
0.000006
@@ -2198,24 +2198,16 @@ ;%0A%09%09 -return parseInt( +var c = s.ge @@ -2226,18 +2226,90 @@ String() -) ; +%0A%09%09if (c == null) %7B%0A%09%09%09return null;%0A%09%09%7D else %7B%0A%09%09%09return parseInt(c);%0A%09%09%7D %0A%09%7D catc
3eca749cf17b9f6c649e688e356dacebc98772b1
Support both English colon and Chinese colon
data/danmu.js
data/danmu.js
var size = { font: { min: 10, ref: 24, max: window.innerHeight/4 }, image: { width: window.innerWidth/3, height: window.innerHeight/3 } } var colors = [ '#00aeef', // blue '#ea428a', // red '#eed500', // yellow '#f5a70d', // orange '#8bcb30', // green '#9962c1', // purple '#333333', // black '#e...
JavaScript
0
@@ -357,33 +357,36 @@ all: RegExp('%5E -: +%5B:%EF%BC%9A%5D (%5B%E8%93%9D%E7%BA%A2%E9%BB%84%E6%A9%99%E7%BB%BF%E7%B4%AB%E9%BB%91%E7%99%BD%E5%B7%A8%E5%A4%A7%E5%B0%8F%E9%A1%B6%E5%BA%95%5D @@ -408,17 +408,20 @@ egExp('%5E -: +%5B:%EF%BC%9A%5D (%5B%E8%93%9D%E7%BA%A2%E9%BB%84%E6%A9%99%E7%BB%BF%E7%B4%AB @@ -445,17 +445,...
3a89bdb8de259de02c1af9eb3e15f510307301dd
update listener
server.js
server.js
var sys = require("sys"), my_http = require("http"), path = require("path"), url = require("url"); var Firebase = require("firebase") my_http.createServer(function(request,response){ var my_path = url.parse(request.url).pathme; var full_path = path.join(process.cwd(),my_path); path.exists(full_path, funct...
JavaScript
0
@@ -805,41 +805,8 @@ me;%0A - load_file(my_path,response);%0A %7D).l
e47153b7fd4c0b42d497a866cdbf9982bfc15dd7
add givataiim
data/index.js
data/index.js
var municipalities = { "jerusalem": { "center": [ 31.783476, 35.202637 ], "display": "\u05d9\u05e8\u05d5\u05e9\u05dc\u05d9\u05dd", "fb_link": "https://www.facebook.com/opentaba.jerusalem", "server": "http://opentaba-server.herokuapp.com/", "twi...
JavaScript
0.000002
@@ -16,16 +16,181 @@ ies = %7B%0A + %22givataiim%22: %7B%0A %22center%22: %5B%0A 32.071151,%0A 34.80989%0A %5D,%0A %22display%22: %22%5Cu05d2%5Cu05d1%5Cu05e2%5Cu05ea%5Cu05d9%5Cu05d9%5Cu05dd%22%0A %7D,%0A %22jer @@ -533,9 +533,8 @@ %7D%0A%7D; -%0A
7ead01022af37a4b67dd4069156bab23e20da4f1
Fix merge error
gruntfile.js
gruntfile.js
module.exports = function (grunt) { var config = require("./config.js"); // Make sure that Grunt doesn't remove BOM from our utf8 files // on read grunt.file.preserveBOM = true; // Helper function to load the config file function loadConfig(path) { var glob = require('glob'); var o...
JavaScript
0.000006
@@ -693,230 +693,8 @@ );%0A%0A - %7B expand: true, flatten: true, src: %5BdesktopOutput + %22css/*.css%22%5D, dest: desktopOutput + %22css/%22 %7D,%0A %7B expand: true, flatten: true, src: %5BphoneOutput + %22css/*.css%22%5D, dest: phoneOutput + %22css/%22 %7D,%0A
868637fcdc8abf70ec98ac541dab7f07288303a3
Fix grunt watch
gruntfile.js
gruntfile.js
module.exports = function (grunt) { grunt.initConfig({ browserify: { client: { src: ['src/**.js'], dest: 'dist/m4n.js', options: { transform: ['babelify'] } } }, watch: { javascript: { tasks: ['default'] }, }, jshint: { ...
JavaScript
0
@@ -280,16 +280,46 @@ efault'%5D +,%0A files: %5B'src/**.js'%5D %0A %7D
df20a743adfea63eec96f4da082d861ee7057f28
Fix minor typo
server.js
server.js
var express = require('express'); var passport = require('passport'); var Strategy = require('passport-local').Strategy; var db = require('./db'); // Configure the local strategy for use by Passport. // // The local strategy require a `verify` function which receives the credentials // (`username` and `password`) sub...
JavaScript
0.999993
@@ -227,16 +227,17 @@ require +s a %60veri
deb23418e8c603daf2a4484d6fe2dc85803c220c
bump service worker cache version
static/javascripts/sw.js
static/javascripts/sw.js
importScripts('/offline-google-analytics/offline-google-analytics-import.js'); goog.offlineGoogleAnalytics.initialize(); const cacheName = 'gcpnext17-v2'; const pathsToCache = [ '/', '/faqs', '/coc', '/static/manifest.json', '/static/stylesheets/fonts.min.css', '/static/stylesheets/main.min.css', '/stat...
JavaScript
0
@@ -146,17 +146,17 @@ next17-v -2 +3 ';%0Aconst
37b265495b04f113cf678508b59b57ec2adac04b
Revert back `before_punctuation` regex to stable one.
static/js/alert_words.js
static/js/alert_words.js
import _ from "lodash"; import * as people from "./people"; // For simplicity, we use a list for our internal // data, since that matches what the server sends us. let my_alert_words = []; export function set_words(words) { my_alert_words = words; } export function get_word_list() { // People usually only h...
JavaScript
0.000002
@@ -953,16 +953,11 @@ = %22 -(?%3C= %5C%5Cs -) %7C%5E%7C%3E
6ea40a277450276e69f3a31d56fb59bebc00c38b
Return null if no comment in database
static/js/controllers.js
static/js/controllers.js
'use strict'; /* The angular application controllers */ var mycomputerControllers = angular.module('mycomputerControllers', []); /* This controller to get comment from beego api */ mycomputerControllers.controller('HomeController', ['$scope', '$routeParams', '$http', function($scope, $routeParams, $http) { /* ...
JavaScript
0.000003
@@ -482,15 +482,10 @@ ata. -Content +Id == @@ -529,15 +529,8 @@ s = -data;// null
9792bebf2021e8328ab611cf34ab416cc6817490
update service worker
static/service-worker.js
static/service-worker.js
self.addEventListener('install', function(event) { event.waitUntil( caches .open('v1') .then(function(cache) { return cache.addAll([ '.', 'favicon.ico', 'manifest.json', 'img/code.png', 'img/coffee.png', 'img/logo16.png', 'i...
JavaScript
0.000003
@@ -88,17 +88,17 @@ .open('v -1 +2 ')%0A @@ -720,17 +720,10 @@ -caches.ma +fe tch( @@ -737,20 +737,21 @@ equest). -then +catch (functio @@ -752,24 +752,16 @@ unction( -response ) %7B%0A @@ -773,22 +773,17 @@ urn -response %7C%7C fe +caches.ma tch(
eac1caef4bfe291c7983ceafbb0f375f0e290c9e
Update siisen.js
siisen.js
siisen.js
$(function() { // run the currently selected effect function runEffect() { // get effect type from var selectedEffect = $( "#effectTypes" ).val(); // most effect types need no options passed by default var options = {}; // some effects have required parameters if ( selectedEf...
JavaScript
0
@@ -1056,18 +1056,16 @@ %7D);%0A -// $(%22#acc
a0f85e1024c04d929e2bfbec3492f40fa02e241d
Update logger.js
utils/logger.js
utils/logger.js
/*jslint node: true */ 'use strict'; var fs = require('fs'); var path = require('path'); var winston = require('winston'); var pjson = require('../package.json'); var logDir = "logs"; var env = process.env.NODE_ENV || 'development'; var transports = []; /* Define colours for error level highlighting */ var colours = {...
JavaScript
0.000001
@@ -634,20 +634,21 @@ level: ' -warn +debug ', color @@ -1053,8 +1053,9 @@ logger; +%0A
819f9e7b0bd26a81822834c6c0b12d9dc016975c
Support ancient versions of jQuery.
skewer.js
skewer.js
/** * @fileOverview Live browser interaction with Emacs * @requires jQuery * @version 1.1 */ /** * Connects to Emacs and waits for a request. After handling the * request it sends back the results and queues itself for another * request. * @namespace Holds all of Skewer's functionality. */ function skewer() {...
JavaScript
0
@@ -2264,24 +2264,81 @@ unction() %7B%0A + /* Avoiding using jQuery's new-ish prop() method. */%0A var src @@ -2371,19 +2371,18 @@ %5D'). -prop(' +get(0). src -') ;%0A
c8d44d227835c3d503bb27c1c99f02caedad1667
Remove skewer-css jQuery.
skewer.js
skewer.js
/** * @fileOverview Live browser interaction with Emacs * @requires jQuery * @version 1.1 */ /** * Connects to Emacs and waits for a request. After handling the * request it sends back the results and queues itself for another * request. * @namespace Holds all of Skewer's functionality. */ function skewer() {...
JavaScript
0
@@ -2937,57 +2937,124 @@ -$('body').append($ +var style = document.createElement (' -%3C style -/%3E').text(request.eval) +');%0A style.innerHTML = request.eval;%0A document.body.appendChild(style );%0A
eaa33416d21edb5bbc26204ea751a441526ebb14
update to the correct WAB version
config/wabapp-config.js
config/wabapp-config.js
define({ 'wabVersion': '2.2', 'theme': { 'name': 'cmv' }, 'isRTL': false, 'httpProxy': { 'useProxy': false, 'alwaysUseProxy': false, 'url': '', 'rules': [{ 'urlPrefix': '', 'proxyUrl': '' }] }, 'geometryService': 'https:...
JavaScript
0
@@ -23,17 +23,17 @@ on': '2. -2 +4 ',%0A '
b19652ccc20e54ec41e99e6d8f70277a3a5a0fa3
add players button action in UI
src/UI.js
src/UI.js
(function() { var UI = { showComputerMessage: function(callback) { $("#Computer").show("fast", function() { callback(UI.humanPlay); }); }, hideComputerMessage: function() { $("#Computer").hide(); }, showHumanMessage: function() { $("#Human").show(); }, hi...
JavaScript
0.000001
@@ -756,32 +756,122 @@ %7D%0A +else if (button == %22.players%22) %7B%0A return UI.choiceMark();%0A %7D%0A else if (button == %22# @@ -3690,24 +3690,58 @@ %22.player%22);%0A + UI.clickButton(%22.players%22);%0A %7D,%0A%0A
b60bd6709441fc75c14aa90669aefe4dc443d15a
Add getQuestionnaires functionality, Fix putQuestionnaire
src/bl.js
src/bl.js
'use strict' const MongoClient = require('mongodb').MongoClient; const ObjectId = require('mongodb').ObjectID; module.exports = (mongodbUrl) => { async function getQuestionnaires() { // TODO: Mongodb-kutsu return new Promise(function(resolve, reject){ setTimeout(function(){ resolve("Hello Wor...
JavaScript
0.000007
@@ -268,77 +268,560 @@ -setTimeout(function()%7B%0A resolve(%22Hello World%22);%0A %7D, 1000) +let findQuestionnaires = function(db, callback) %7B%0A %09let resultsArray = new Array();%0A let cursor = db.collection('questionnaires').find( );%0A cursor.each(function(err, doc) %7B%0A ...
b1d13f5a9f6b4bbf806dc19b1035a03286ad7571
update b
src/sk.js
src/sk.js
(function (global, factory) { if (typeof module === "object" && typeof module.exports === "object") { // CMD // all dependencies need to passed as parameters manually, // will not require here. module.exports = factory; } else if (typeof define === 'function' && define.amd) { // AMD. Register as...
JavaScript
0
@@ -1138,19 +1138,8 @@ turn - boolean && Str @@ -1181,16 +1181,27 @@ = %22true%22 + && boolean ;%0A %7D;%0A%0A
b984bcdd076fa570cfdd7f3b56fae40707058e48
Update copyright
src/ua.js
src/ua.js
/*jslint browser: true, regexp: true, maxerr: 50, indent: 4 */ /** * A UserAgent detection library. * * This library relies on the navigator.userAgent property and hence does not * work for custom UserAgent settings. * * Apart from supporting detection of major browser vendors, the library also * supports detect...
JavaScript
0
@@ -369,9 +369,9 @@ -201 -3 +4 , Go
de292a848f84d63273fb4c1f125e09a31773ed22
Set format active when inside empty format tag.
toolbar.js
toolbar.js
/** * A Backbone.View for Spytext fields. * * @module spytext/toolbar */ function mapToNodeName(node) { return node.nodeName; } var selectron = require('./selectron'); module.exports = { /** * @lends SpytextToolbar.prototype * @augments Backbone.View */ events: { 'click button[data-command]': 'comma...
JavaScript
0
@@ -3226,16 +3226,49 @@ ase();%0A%0A +%09%09%09var rng = selectron.range();%0A%0A %09%09%09$(thi @@ -3292,16 +3292,17 @@ ctive', +( containe @@ -3376,26 +3376,14 @@ %09%09%09%09 -var ancestorTags = +return $(n @@ -3426,85 +3426,142 @@ el). -toArray().map(mapToNodeName);%0A%09%09%09%09return ancestorTags.indexO...
6b14f1b3b912f204876fa172483e85ac61c50da6
Bring back some AudioManager methods but deprecate them
src/sound/manager.js
src/sound/manager.js
pc.extend(pc, function () { 'use strict'; /** * @private * @function * @name pc.SoundManager.hasAudio * @description Reports whether this device supports the HTML5 Audio tag API * @returns true if HTML5 Audio tag API is supported and false otherwise */ function hasAu...
JavaScript
0.000204
@@ -2101,24 +2101,587 @@ %7D%0D%0A %7D +,%0D%0A%0D%0A getListener: function () %7B%0D%0A console.warn('DEPRECATED: getListener is deprecated. Get the %22listener%22 field instead.');%0D%0A return this.listener;%0D%0A %7D,%0D%0A%0D%0A getVolume: function () %7B%0D%0A ...
dd65459ef6de6d3ff2351cee3a0fac30a8c8e60b
Fix colour picker inputs' design (#7384)
assets/src/edit-story/components/colorPicker/editablePreview.js
assets/src/edit-story/components/colorPicker/editablePreview.js
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
JavaScript
0
@@ -936,16 +936,32 @@ Effect,%0A + themeHelpers,%0A %7D from ' @@ -1233,16 +1233,349 @@ : 100%25;%0A + padding: 7px;%0A%0A $%7B(%7B theme %7D) =%3E%0A themeHelpers.focusableOutlineCSS(%0A theme.colors.border.focus,%0A theme.colors.bg.secondary%0A )%7D;%0A%60;%0A%0Aconst Wrapper = styled.div%60%0A ...
7a9a6f2f5a2b1e1e9dac51b09cd59e533e379222
Fix formatting errors.
public/angular/js/app.js
public/angular/js/app.js
require('./angular', { expose: 'angular' }); require('./angular-ui-router'); require('./ui-bootstrap'); require('./ui-bootstrap-templates'); require('./angular-resource'); angular.module('Aggie', ['ui.router', 'ui.bootstrap', 'ngResource']) .config(['$urlRouterProvider', '$locationProvider', function($urlRouterProv...
JavaScript
0.000013
@@ -1006,16 +1006,17 @@ h');%0A%0A// + Controll
342e75ffe939deb48350f37b533479d38622ce46
enhance the regex entension (a bit)
js/jquery.inputmask.regex.extensions.js
js/jquery.inputmask.regex.extensions.js
/* Input Mask plugin extensions http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 - 2013 Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) Version: 0.0.0 Regex extensions on the jquery.inputmask base Allows for using regular expressions as a mask */ (fun...
JavaScript
0.000001
@@ -817,29 +817,144 @@ -opts.regexSplit = %5B%5D; +var regexSplitRegex = %22%5C%5C%5B.*?%5C%5D%5C%5C*%22;%0A%0A opts.regexSplit = opts.regex.match(new RegExp(regexSplitRegex, %22g%22));%0A %0A @@ -970,32 +970,34 @@ +// if (opts.regex.i @@ -1058,32 +1058,34 @@ ...
70a16cf788011386a10affcf47ecb133c2072fab
Reset now clone the initialState instead of linking items to the initialState
src/storage/store.js
src/storage/store.js
// @flow import clone from 'clone'; import type { StorableType } from './storable'; import storableFactory from './storable'; export type StoreType = { name: string, reset: () => StoreType, addStorable: (item: StorableType) => StoreType, add: (item: Object) => StoreType, remove: (id: number) => StoreType, ...
JavaScript
0
@@ -1104,18 +1104,28 @@ s = -Array.from +cloneArrayOfStorable (sto
a21187728b8298849aee644764d271c79821409d
use plugins instead of `renderFile` in write task
generator.js
generator.js
'use strict'; var fs = require('fs'); var path = require('path'); var argv = require('minimist')(process.argv.slice(2)); var utils = require('./lib/utils'); /** * This is an example generator, but it can also be used * to extend other generators. */ module.exports = function(generate, base, env) { var dest = ar...
JavaScript
0.000001
@@ -1311,81 +1311,8 @@ ) %7B%0A - if (!generate.templates) %7B%0A generate.create('templates');%0A %7D%0A @@ -1368,16 +1368,16 @@ ase'));%0A + gene @@ -1770,14 +1770,8 @@ (pkg - %7C%7C %7B%7D );%0A @@ -1883,62 +1883,8 @@ %7D;%0A%0A - answers.name = answers.name %7C%7C utils.project();%0...
1dc3b2a3ccaab5801600ac0346c2654177f61461
Create separate function for vector scaling
viz/js/birds.js
viz/js/birds.js
/** * birds - a project to visualize bird migration flow for Belgium & Netherlands. * * Copyright (c) 2014 LifeWatch - INBO * The MIT License - http://opensource.org/licenses/MIT * * https://github.com/enram/bird-migration-flow-visualization * * Special thanks to Cameron Beccario for his air.js */ (function(...
JavaScript
0.000002
@@ -475,24 +475,110 @@ #display%22;%0A%0A + /**%0A * Create settings%0A */%0A var settings = %7B%0A%09vectorscale: 0.4%0A %7D;%0A%0A /**%0A @@ -3258,16 +3258,99 @@ %7D %0A%0A + var vectorScale = function(value) %7B%0A%09return value*settings.vectorscale;%0A %7D%0A%0A func @@ -...
cf864ca3ce92a971e98e758e90877f999bd9d0d4
Reduce highWaterMark
src/stream/JlTransform.js
src/stream/JlTransform.js
const Transform = require('stream').Transform; class JlTransform extends Transform { constructor(inputType, outputType) { super({ objectMode: true }); this.inputType = inputType; this.outputType = outputType; } } JlTransform.RAW = 'JlTransform.RAW'; JlTransform.ANY = 'JlTransform.ANY'; JlTransform.OBJE...
JavaScript
0.99775
@@ -147,16 +147,37 @@ de: true +,%0A%09%09%09highWaterMark: 1 %0A%09%09%7D);%0A%0A
d8ebde24db4d6e7dccf3d1f87a9d0ea128d8b60f
Fix 2 spaces -> 4 spaces
karma.conf.js
karma.conf.js
// Karma configuration var istanbul = require('browserify-istanbul'); 'use strict'; module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: './', // frameworks to use // available frameworks: https:...
JavaScript
0.999997
@@ -1148,16 +1148,18 @@ + 'ignore'
2593ce5d53bd1b5765cf4ffe5edb44e837f809de
fix recursion
getTables.js
getTables.js
module.exports = function(dynamodb, tables, params, pageSize, cb){ params.Limit = pageSize; dynamodb.listTables(params, function(err, data) { if (err) { cb(err) } else if (data.LastEvaluatedTableName){ params.ExclusiveStartTableName = data.LastEvaluatedTableName; tables = tables.concat( ...
JavaScript
0.00013
@@ -10,24 +10,46 @@ ports = -function +getTables;%0A%0Afunction getTables (dynamod @@ -80,18 +80,21 @@ ize, cb) + %7B%0A + params @@ -115,16 +115,18 @@ ize;%0A%0A + + dynamodb @@ -153,16 +153,17 @@ function + (err, da @@ -172,16 +172,20 @@ ) %7B%0A + + if (err) @@ -197,16 +197,22 @@ ...
ff168bf7d0aae48913028422b86f77cf75ef1c89
Update dynamic_form_utils.js
autofill/dynamic_form_utils.js
autofill/dynamic_form_utils.js
/* * Copyright 2018 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ function DynamicallyChangeForm() { RemoveForm('form1'); var new_form = AddNewFormAndFields(); document.getElementsByTagName('body')[0].append...
JavaScript
0.000002
@@ -1890,32 +1890,248 @@ .appendChild(i); +%0A %0A i = document.createElement('input');%0A i.setAttribute('type', 'text');%0A i.setAttribute('name', 'zip');%0A i.setAttribute('id', 'zip');%0A i.setAttribute('autocomplete', 'postal-code');%0A new_form.appendChild(i); %0A%0A i = document
e7d52601676da1b9f8d8216a86c82cd201f6cc0c
make the print button start the operation (#2043)
calebasse/static/js/calebasse.agenda.js
calebasse/static/js/calebasse.agenda.js
function toggle_worker(worker_selector) { $(worker_selector).toggleClass('active'); if (!($.cookie('agenda-tabs'))) { $.cookie('agenda-tabs', new Array(), { path: '/' }); } if ($(worker_selector).hasClass('active')) { var tabs = $.cookie('agenda-tabs'); if ($.inArray($(worker_se...
JavaScript
0
@@ -7020,16 +7020,80 @@ %7D);%0A + $('#print-button').click(function() %7B window.print(); %7D);%0A %7D);%0A%7D)
81893cd1f3d41bedc9b65241d189c5151c100ad7
remove unnecessary release npm scripts (#141)
src/tasks/package.js
src/tasks/package.js
/* eslint-disable no-template-curly-in-string */ const path = require('path'); const meta = require('user-meta'); const gitUsername = require('git-username'); const { json, install } = require('mrm-core'); const packages = ['schema-utils', 'loader-utils']; const devPackages = [ // Utilities 'del', 'del-cli', ...
JavaScript
0
@@ -2208,193 +2208,8 @@ n',%0A - 'release:ci': 'conventional-github-releaser -p angular',%0A 'release:validate':%0A 'commitlint --from=$(git describe --tags --abbrev=0) --to=$(git rev-parse HEAD)',%0A
42fa3ea0516cf927339cf66b97e7b534980f17d3
Update the namespace and update url.
gistfile1.js
gistfile1.js
// ==UserScript== // @name Pocketcasts Utils // @namespace http://waxd.nl // @version 0.1 // @description Some utilities for pocketcasts // @author MaienM // @match https://play.pocketcasts.com/* // @grant none // ==/UserScript== // Get the MutationObserver class for this browser. ...
JavaScript
0
@@ -71,18 +71,251 @@ http +s :// -waxd.nl +gist.github.com/MaienM/e477e0f4e8ec3c1836a7/raw/25712be7ef9e7008549b4e0aa9dff7bb3871f1fc/gistfile1.js%0A// @updateURL https://gist.githubusercontent.com/MaienM/e477e0f4e8ec3c1836a7/raw/25712be7ef9e7008549b4e0aa9dff7bb3871f1fc/gistfile1.js %0A//
b9c1e04c795efc5ff4209d01174b82c72c1c4483
remove coverage from karma.conf
karma.conf.js
karma.conf.js
'use strict'; // Karma configuration // Generated on Wed Feb 17 2016 17:56:06 GMT+0100 (CET) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/b...
JavaScript
0
@@ -1319,90 +1319,8 @@ '%5D,%0A - 'app/src/**/!(*.spec).js': %5B'coverage'%5D,%0A 'app/index.js': %5B'coverage'%5D%0A @@ -1717,131 +1717,10 @@ ess' +%5D , - 'coverage'%5D,%0A%0A coverageReporter: %7B%0A type: 'html',%0A // output coverage reports%0A dir: 'coverage/'%0A %7D,%0A %...
d9c09eb3e9535a642ed7ded0b8059fe3b67187be
add working map
public/js/application.js
public/js/application.js
$(document).ready(function() { $.ajax({ type: 'GET', url: 'https://data.cityofnewyork.us/resource/erm2-nwe9.json?descriptor=Loud%20Music/Party', dataType: 'json', cache: true, success: function(data, textStatus, jqXHR){ console.log(data) }, fail: function(jqXHR, textStatus, errorThro...
JavaScript
0.000001
@@ -358,13 +358,236 @@ %7D%0A %7D) +;%0A%0A L.mapbox.accessToken = 'pk.eyJ1Ijoiam1jYXN0cm8iLCJhIjoiY2llcjl2N2x6MDFneHNtbHpubjR3enhlZCJ9.3A7IZVloogRznOfadjSoGg';%0A var map = L.mapbox.map('map', 'jmcastro.cier6sgeg01h9silzqx44aeaw')%0A .setView(%5B40, -74.50%5D, 9);%0A %0A%7D);%0A
f9f4fc03b9a79cf7cf96db0f7e5567c346ed62ca
Resolve js directories
public/gulpfile.babel.js
public/gulpfile.babel.js
/** * Léo Le Bras * http://leolebras.com/ * * Work with Gulp * http://gulpjs.com/ * * Copyright 2014 - 2015 * Released under the MIT license * http://opensource.org/licenses/MIT * * Date of creative : 2014-01-04 * Last updated: 2015-11-27 */ import ExtractTextPlugin from 'extract-text-webpack-plugin'; imp...
JavaScript
0
@@ -2771,16 +2771,311 @@ %7D,%0A + resolve: %7B%0A extensions: %5B'', '.js', '.vue'%5D,%0A modulesDirectories: %5B%0A 'node_modules',%0A 'src/js/vendors',%0A 'src/js/helpers',%0A 'src/js/components...
10edeb80155d0bcdff3207497a63e0e3275fdc9d
test on Mobile Safari 13.0
karma.conf.js
karma.conf.js
/* eslint-disable no-console */ /* eslint-env node */ const { createDefaultConfig } = require('@open-wc/testing-karma'), merge = require('deepmerge'), baseCustomLaunchers = { FirefoxHeadless: { base: 'Firefox', flags: ['-headless'] } }, sauceCustomLaunchers = { slChrome: { base: 'SauceLabs', brows...
JavaScript
0
@@ -388,16 +388,240 @@ ows 10'%0A +%09%09%7D,%0A%09%09slIphoneSimulator: %7B%0A%09%09%09base: 'SauceLabs',%0A%09%09%09browserName: 'Safari',%0A%09%09%09appiumVersion: '1.15.0',%0A%09%09%09deviceName: 'iPhone Simulator',%0A%09%09%09deviceOrientation: 'portrait',%0A%09%09%09platformVersion: '13.0',%0A%09%09%09platformNa...
02aa972ed92949505ce629f5b3608cb649ebbfe9
Fix an error when running gulp test
gulp/test.js
gulp/test.js
var gulp = require('gulp'), gulpLoadPlugins = require('gulp-load-plugins'), karma = require('karma').server; var plugins = gulpLoadPlugins(); var defaultTasks = ['env:test', 'karma:unit', 'mochaTest']; gulp.task('env:test', function () { process.env.NODE_ENV = 'test'; }); gulp.task('karma:unit', function (done)...
JavaScript
0.000044
@@ -406,20 +406,45 @@ ue%0A %7D, -done +function () %7B%0A done();%0A %7D );%0A%7D);%0A%0A
cbda2010dab05d6cd21e335936ef010503febaff
use type="tel" for trigger number input keyboard
src/react-numeral-input.js
src/react-numeral-input.js
import React from 'react'; import ReactDOM from 'react-dom'; import numeral from 'numeral'; const reg = /[^0-9km,]+/g; const default_fmt = '0,0'; const getCaretPosition = function(oField, fmt = default_fmt) { let iCaretPos = 0; const prefix = reg.exec(fmt); if (prefix && prefix.length) { iCaretPos += prefi...
JavaScript
0.000003
@@ -3743,18 +3743,17 @@ type=%22te -xt +l %22 %7B...re
13c83991a7007c59658e801ddbcf972786fbd4b5
Add a basic settings object to state.js
src/tracker/state.js
src/tracker/state.js
var STATE = (function(){ var stateChangedEvents = []; var triggerStateChanged = function(changeType, changeDetail){ for(var callback of stateChangedEvents){ callback(changeType, changeDetail); } }; /* * Internal class constructor. */ var CLS = function(){ this.resetState(); }; ...
JavaScript
0.000002
@@ -213,29 +213,561 @@ %7D%0A %7D;%0A %0A + var defineTriggeringProperty = function(obj, type, property)%7B%0A var name = %22_%22+property;%0A %0A Object.defineProperty(obj, property, %7B%0A get: (() =%3E obj%5Bname%5D),%0A set: (value =%3E %7B%0A obj%5Bname%5D = value;%0A trigger...
e4b929506588b5707d2947c4f5b629e8ab540135
Remove Aside
lib/components/pickers/LocationPicker.react.js
lib/components/pickers/LocationPicker.react.js
'use strict'; var React = require('react'); var SingleSelect2 = require('./SingleSelect2.react'); var classNames = require('classnames'); var LocationPicker = React.createClass({ getInitialState() { return{ value: this.props.value || [''], selecting: true }; }, _toggleState(item) { this....
JavaScript
0.000001
@@ -1128,24 +1128,8 @@ n (%0A - %3Caside%3E%0A @@ -1139,18 +1139,16 @@ button %0A - @@ -1190,18 +1190,16 @@ adding'%0A - @@ -1231,18 +1231,16 @@ - %3Ci class @@ -1265,18 +1265,16 @@ %3E%0A - %3C/button @@ -1279,23 +1279,8 @@ on%3E%0A - %3C/aside%3E%0A...
5cfee4759bdb391f6ecc2b9c6d79147d8ae018c2
Make Icebox really not reorderable.
public/javascript/tracklight.js
public/javascript/tracklight.js
$(document).ready(function() { // Fetches all tickets, page by page. Updates tickets already // in the DOM and adds new tickets to the Icebox. function fetchTickets(page) { function fetchTicketsFromPage(page) { $.getJSON("/tickets?page="+page, function(data) { // Add the tickets to the Icebox. ...
JavaScript
0
@@ -2015,16 +2015,388 @@ .list%22). +sortable(%7B%0A connectWith: %5B%22.list%22%5D,%0A cancel: %22.disclosure%22,%0A change: function(e, ui) %7B%0A if (ui.placeholder.parent().is(%22#icebox%22)) %7B%0A var id = ui.item.attr(%22id%22);%0A ui.placeholder.insertAfter(%22#%22+id+%2...
567afe992d3e4a6e1a57530d366a853814a77282
change all the parameter name that in relation to unlogin redirect
public/js/admin/login.js
public/js/admin/login.js
/** * 登录脚本 */ var page = { loginFormDom: $("#login-form"), usernameDom: $('#username'), passwordDom: $('#password'), rememberMeDom: $('#remember-me'), toolBarDom: $('.tool-bar'), init: function(){ //初始化公共方法 Public.init(), //初始化 UI 组件 Widgets.init(), t...
JavaScript
0.000001
@@ -471,20 +471,23 @@ var -jump +history Uri = 'a @@ -679,20 +679,23 @@ -jump +history Uri = un @@ -884,12 +884,15 @@ n = -jump +history Uri;
01b1ebf71012623351ed79cebac615a684885857
add theme_color to manifest
server/manifest.js
server/manifest.js
"use strict"; // Manifest for web application - https://w3c.github.io/manifest/ var pkg = require("./../package.json"); module.exports = function manifest(req) { var data = { name: pkg.name, lang: "en-US", background_color: "#181818", display: "fullscreen", orientation: "any", icons: [ ...
JavaScript
0
@@ -245,16 +245,44 @@ 81818%22,%0A + theme_color: %22#181818%22,%0A disp
216c292220b403d57a5ccac2b1348255e87ea865
Improve project detection robustness
core/cb.project/main.js
core/cb.project/main.js
// Requires var Q = require('q'); var _ = require('lodash'); var wrench = require('wrench'); var path = require('path'); var utils = require('../utils'); var ProjectType = require('./project').ProjectType; // Supported project types // This list is ordered var SUPPORTED = [ // PaaS require("./appengine"), ...
JavaScript
0
@@ -1122,16 +1122,30 @@ xecFile( +'/bin/bash', %5B projectT @@ -1158,17 +1158,16 @@ tector, -%5B projectD
401c335ec3d4b9a3f094d92fb05ecc93e31164c8
Add emoji RegExp
src/renderer/MyCompiler.js
src/renderer/MyCompiler.js
import React from 'react' // import Compiler from 'imports?React=react!md2react' import Compiler from 'imports?React=react!../../node_modules/md2react/src/index' import path from 'path' import Highlight from 'react-highlight' let $ = React.createElement; function highlight(code, lang, key) { return <Highlight class...
JavaScript
0.999999
@@ -399,16 +399,54 @@ piler %7B%0A + static rEmoji = /:%5B0-9a-z_+-%5D+:/g;%0A%0A constr @@ -455,24 +455,24 @@ tor(opts) %7B%0A - opts.hig @@ -671,16 +671,56 @@ search = + %7B%0A text: search,%0A regExp: new Reg @@ -743,16 +743,24 @@ %60, 'ig') +%0A %7D ;%0A %7D%0A @@ -1058,24 +105...
09c4808e52aafffe7c4601e655307241d589250f
include css
karma.conf.js
karma.conf.js
// karma.conf.js module.exports = function(config) { config.set({ frameworks: ['jasmine', 'requirejs'], files: [ {pattern: 'tests/common.js', included: true}, {pattern: 'tests/fixtures/*.html', included: false}, {pattern: 'tests/spec/*.js', included: false}, {pattern: 'tests/v...
JavaScript
0.000054
@@ -224,32 +224,94 @@ cluded: false%7D,%0A + %7Bpattern: 'tests/fixtures/test.css', included: true%7D,%0A %7Bpattern
f1b173558ffa7a3c5475abd010bcaad9d7d237d8
fix schedule rules to local server time
server/schedule.js
server/schedule.js
const schedule = require('node-schedule') const axios = require('axios') const cheerio = require('cheerio') const Account = require('APP/db').Accounts const transformData = require('./utils').transformData const clearWhiteSpace = require('./utils').clearWhiteSpace const clearFlairWhiteSpace = require('./utils').clearFl...
JavaScript
0
@@ -526,17 +526,17 @@ hour = 1 -5 +9 %0AweeklyT @@ -810,17 +810,17 @@ hour = 1 -5 +9 %0A%0A%0Aconst
da7ed22007d80514bce44163732525d230e63e60
Update the karma.conf.js to run once
karma.conf.js
karma.conf.js
module.exports = function(config) { config.set({ basePath: '', frameworks: ['mocha', 'chai', 'sinon'], files: [ './test/**/*.spec.js' ], exclude: [ './test/PolicyEngine.spec.js' ], preprocessors: { './test/**/*.spec.js': ['webpack', 'sourcemap'] }, // webpack co...
JavaScript
0
@@ -2254,20 +2254,19 @@ gleRun: -fals +tru e%0A %7D);%0A
45fee2355f56f24c092ed1969b0e52f243d98e9e
Make comment deletion play nice with editing
public/js/application.js
public/js/application.js
$(document).ready(function() { // This is called after the document has loaded in its entirety // This guarantees that any elements we bind to will exist on the page // when we try to bind to them // See: http://docs.jquery.com/Tutorials:Introducing_$(document).ready() $('.comment-form').on('submit', functio...
JavaScript
0
@@ -664,26 +664,25 @@ e.content + -%22 +' %3Ca class='co @@ -670,33 +670,33 @@ ent + '%3Ca class= -' +%22 comment-edit' hr @@ -687,38 +687,38 @@ comment-edit -' +%22 href= -' +%22 #edit -' +%22 %3EEdit%3C/a%3E %3Ca @@ -710,35 +710,37 @@ it%22%3EEdit%3C/a%3E - %3Ca +%3Cform class= -' +%22 comment-dele @@ ...
b452560bcaf90ea6e6b01e10797b4991980081e5
Allow specifying AngularJS version for testing using env variable
karma.conf.js
karma.conf.js
module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ 'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js', 'https://code.angularjs.org/1.2.17/angular-mocks.js', 'src/*.js', 'test/**/*.spec.js' ], exclude: [], preprocessors: {}, re...
JavaScript
0
@@ -463,11 +463,286 @@ alse%0A%09%7D) +%0A%0A%09if(process.env.ANGULARJS_VERSION) %7B%0A%09%09config.files%5B0%5D = 'https://ajax.googleapis.com/ajax/libs/angularjs/' +%0A%09%09%09process.env.ANGULARJS_VERSION + '/angular.min.js'%0A%0A%09%09config.files%5B1%5D = 'https://code.angularjs.org/' +%0A%09%09%09process.env.A...
5ff3bac8250e01e9cfa47139abf28e6b86826661
Remove test code
bin/FetchParseGitHubArchive.js
bin/FetchParseGitHubArchive.js
#!/usr/bin/env node //References & Resources //http://www.spacjer.com/blog/2014/02/10/defining-node-dot-js-task-for-heroku-scheduler/ //http://stackoverflow.com/questions/25659134/insert-error-using-node-js-async-series var archive = require('./mikeal-githubarchive.js'); var fs = require('fs'); var util = require('uti...
JavaScript
0.000004
@@ -1016,79 +1016,8 @@ %22);%0A -%09%0A%09//Test 1 - fetch prior URL%0A%09//TimeAgo =%222014-08-28-10%22 //10345 %0A%09%0A %09var @@ -1167,204 +1167,12 @@ %7D);%0A -%0A%09//Test 2 - read test file%0A //var npath = path.join(__dirname, '2014-sample.json')%0A //console.log (%22Testing sample json ...%22 + npat...
25d54510ae7f548331da44f2e5c45bf254cded49
fix bad code thanks @andy0130tw
teleirc.js
teleirc.js
#!/usr/bin/env node var fs = require('fs'); var nodeirc = require('irc'); var telegram = require('telegram-bot'); // configs var config = require(process.env.HOME + '/.teleirc_config.js'); var tg_chat_id = null; if (!tg_chat_id) { // try to read tg_chat_id from disk, otherwise get it from first conversation ...
JavaScript
0.000004
@@ -3824,18 +3824,17 @@ ticker)' - + +%0A %7D el
4b1367114829feef9400bea8e9f64b90813bbf88
Update dropin.js
client/dropin.js
client/dropin.js
var app = angular.module('WifiGoApp', []); app.controller('DropinController', ['$scope', '$http', function ($scope, $http) { $scope.message = 'Please use the form below to pay:'; $scope.showDropinContainer = true; $scope.isError = false; $scope.isPaid = false; $scope.getToken = function () { ...
JavaScript
0.000001
@@ -368,34 +368,8 @@ url: - process.env.WIFI_APP_URL+ '/cl
128d446f39de93ce63bda3b8ef261446ad6efb0b
fix timestamps when viewing logs
settings/js/log.js
settings/js/log.js
/** * Copyright (c) 2012, Robin Appelman <icewind1991@gmail.com> * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ OC.Log={ levels:['Debug','Info','Warning','Error','Fatal'], loaded:50,//are initially loaded getMore:function(){ $.get(OC.fileP...
JavaScript
0.000007
@@ -943,16 +943,21 @@ try.time +*1000 ));%0A%09%09%09r
02140ea64d130788532638040bbbefc6e59967d7
fix the karma refernce to the old define.debug file
karma.conf.js
karma.conf.js
// Karma configuration file // // For all available config options and default values, see: // https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54 module.exports = function (config) { 'use strict'; config.set({ // base path, that will be used to resolve files and exclude basePath: '', ...
JavaScript
0.000202
@@ -475,14 +475,8 @@ ine. -debug. js',
77b5ea44bba135d23e62c5db9c2c31fca9d23755
Remove debug output
visualizer/app.js
visualizer/app.js
#!/usr/bin/env node "use strict" var q = require('q') var fs = require('fs') var fsp = require('fs-promise') var path = require('path') var Flow = require('./../lib/flow/flow') var Mustache = require('mustache') var express = require('express') var app = express() app.get('/', function (req, res) { const FLOW_DI...
JavaScript
0.000037
@@ -3256,32 +3256,61 @@ )).then(() =%3E %7B%0A + // Filter duplicates%0A view.che @@ -3480,66 +3480,8 @@ %7D) -%0A console.log('view.checkpoints', view.checkpoints) %0A%0A
729f3b090efdefbeed7166b167f96547a700892e
add missing flow annotation
src/types/RouterConfig.js
src/types/RouterConfig.js
export type RouterConfig = { history?: Object };
JavaScript
0.000002
@@ -1,8 +1,17 @@ +// @flow%0A export t
4ebaca426a7e173ea3736e6434340a22ac733f07
switch to story point values by default
public/js/controllers.js
public/js/controllers.js
'use strict'; /* Controllers */ function ServerCtrl($scope, socket) { $scope.state = "picking"; $scope.sidebar = false; //show initial sidebar? $scope.scoreHistory = []; //debug purpose, create large scoreHistory: //for (var x=0; x<12; x++) { // var users = []; // for (var u=1; u<7...
JavaScript
0.000001
@@ -5147,18 +5147,16 @@ -// 0, 0.5, @@ -5171,13 +5171,20 @@ 5, -10, 2 +8, 13, 20, 4 0, 9 @@ -5237,32 +5237,34 @@ 40, 60%0A +// 0, 0.5, 1, 2, 3,
6fe59001ef8eb6b932e05db93323476b6b6ddecd
Create app.js
client/js/app.js
client/js/app.js
// angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.services' is found in services.js // 'starter.controllers' is fou...
JavaScript
0.000003
@@ -2120,35 +2120,37 @@ ', %7B%0A url: %22/ -one +login %22,%0A templateU
7372d0a63496d55a64c3ee0cc68e576362964f25
extend custom id generation function test
test/id.js
test/id.js
/** * Created by schwarzkopfb on 14/06/16. */ 'use strict' const test = require('tap'), Database = require('..'), { url } = require('./credentials'), db = new Database, user = { id: Number, // not necessary name: String, timestamp: Dat...
JavaScript
0
@@ -892,16 +892,19 @@ function + #1 ', test @@ -904,24 +904,24 @@ , test =%3E %7B%0A - db.creat @@ -1072,16 +1072,33 @@ t.end()%0A + next()%0A %7D) @@ -1123,11 +1123,325 @@ .threw)%0A - %7D)%0A +%0Afunction next() %7B%0A test.test('custom id generator function #2', test =%3E %7B%0A ...
6e92b191f04be8f6810cfe469a78ff5eb6c59a75
increase mocha timeout
karma.conf.js
karma.conf.js
'use strict'; var util = require('util'); var pkg = require('./package.json'); var extend = util._extend; var geSaLaKaCuLa = require('gesalakacula'); // No Karma options are passed after the double dash option (`--`) // Example : karma start --single-run -- --polyfill // >> { _: [], polyfill: true } var _argv...
JavaScript
0.000003
@@ -1475,9 +1475,10 @@ ut: -5 +10 000%0A
f511803a3d2dc360c3795e1a5c80931bf7759d68
Support running licensee on Windows
rules/license-detectable-by-licensee.js
rules/license-detectable-by-licensee.js
// Copyright 2017 TODO Group. All rights reserved. // Licensed under the Apache License, Version 2.0. const spawnSync = require('child_process').spawnSync module.exports = function (targetDir, options) { const expected = '\nLicense: ([^\n]*)' const licenseeOutput = spawnSync('licensee', [targetDir]).stdout if...
JavaScript
0
@@ -96,16 +96,56 @@ n 2.0.%0A%0A +const isWindows = require('is-windows')%0A const sp @@ -316,16 +316,45 @@ awnSync( +isWindows ? 'licensee.bat' : 'license
6baa4a1d911f5ae9fd00107ca4850f7fcd28d631
fix a crawler bug
crawler/src/database.js
crawler/src/database.js
const Promise = require('bluebird'); const pgp = require('pg-promise')({ promiseLib: Promise }); const params = require('./params.js'); const _ = require('lodash'); const dbSchema = { tag: { idColumn: 'tag_id', xrefID: 'instance_tag_xref_id', table: 'tag', dataTable: 'tag_data', xrefTable: 'insta...
JavaScript
0.00006
@@ -4413,24 +4413,29 @@ let sql + = '' ;%0A%0A @@ -5000,23 +5000,24 @@ -return tx.none( +let updateSQL = upda @@ -5030,14 +5030,125 @@ in(' -%5Cn')); +');%0A%0A if (updateSQL.length %3E 0) %7B%0A return tx.none(updateSQL);%0A %7D %0A
60462bfb941b2793393a0a7ca96ef067602afe58
Add version to menu
main.js
main.js
import electron from 'electron'; import { app, BrowserWindow, Menu, dialog, shell } from 'electron'; import moment from 'moment'; import path from 'path'; import setupEvents from './installers/setupEvents'; let mainWindow = { show: () => { console.log('show'); } }; // temp object while app loads let willQuit = false; ...
JavaScript
0.000001
@@ -1404,16 +1404,25 @@ ntribute + (v1.0.4) ',%0A
2795d431059557d84cd0898b2eb6ab806a895fbf
Fix minute format of downloaded filename
chrome-get-urls-from-tabs-in-windows.js
chrome-get-urls-from-tabs-in-windows.js
var textarea = document.getElementById('copy-area'); var create_download_link; var generate_filename; chrome.windows.getAll({populate:true}, function(windows){ var w_index = 0; chrome.storage.sync.get(function(items) { var format = items.file_format; if (format === 'yaml') { var chrome_tabs = []; ...
JavaScript
0
@@ -2232,16 +2232,23 @@ h' %0A%09%09%09+ + ('0' + d.getMi @@ -2254,16 +2254,27 @@ inutes() +).slice(-2) ;%0A%09%09%0A%09%09%0A
c68f4f9d09ba368745a1ff6cee72204d4e0178fa
Fix the tests for Amazon S3
test/s3.js
test/s3.js
// -------------------------------------------------------------------------------------------------------------------- // // s3.js - test for AWS Simple Notification Service // // Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: http://open...
JavaScript
0.999595
@@ -2211,17 +2211,17 @@ qual('s3 -. +- us-west- @@ -2296,17 +2296,17 @@ qual('s3 -. +- eu-west- @@ -2381,17 +2381,17 @@ qual('s3 -. +- ap-south @@ -2471,17 +2471,17 @@ qual('s3 -. +- ap-north
151ca1a929fe3ee86b18c9137b45aadfb045606e
remove transports key
karma.conf.js
karma.conf.js
module.exports = (config) => { const configuration = { frameworks: [ 'browserify', 'jasmine', ], files: [ 'packages/**/*.spec.js', ], browsers: [ 'ChromeHeadless', ], transports: ['polling'], customLaunchers: { ChromeTravisCi: { base: 'ChromeHeadle...
JavaScript
0
@@ -214,37 +214,8 @@ %5D,%0A - transports: %5B'polling'%5D,%0A
042aa373b77f40b6b49e60b96eb36fdb6034e257
Fix the regex to match the license reported by licensee
rules/license-detectable-by-licensee.js
rules/license-detectable-by-licensee.js
// Copyright 2017 TODO Group. All rights reserved. // Licensed under the Apache License, Version 2.0. const isWindows = require('is-windows') const spawnSync = require('child_process').spawnSync module.exports = function (targetDir, options) { const expected = '\nLicense: ([^\n]*)' const licenseeOutput = spawnSy...
JavaScript
0
@@ -262,11 +262,9 @@ d = -'%5Cn +/ Lice @@ -278,11 +278,11 @@ %5E%5Cn%5D -*)' ++)/ %0A%0A
264d55a67f3ed05826e2734d1c9ec2ae1bda72fa
add karma-ie-launcher
karma.conf.js
karma.conf.js
module.exports = function(karma) { karma.configure({ // base path, that will be used to resolve files and exclude basePath: '../', // frameworks to use frameworks: ['mocha'], // list of files / patterns to load in the browser files: [ 'PointerGestures/node_modules/chai/chai.js', ...
JavaScript
0.007187
@@ -2423,32 +2423,59 @@ efox-launcher',%0A + 'karma-ie-launcher',%0A 'karma-scr
b6c50dffa9377f30fa1947ad664c69661fa4c362
Change QA and CR indicators to colored text
public/js/views/index.js
public/js/views/index.js
define(['jquery', 'appearanceUtils'], function($, utils) { return { // where selector: function(pull) { return pull.state == 'open'; }, // order by sort: function(pull) { return pull.created_at; }, // Allows custom modifications of each pull's display ...
JavaScript
0
@@ -4112,35 +4112,28 @@ e.addClass(' -label label +text -danger');%0A @@ -4416,35 +4416,28 @@ e.addClass(' -label label +text -success');%0A @@ -4965,26 +4965,20 @@ ss(' -label label-danger +text-warning ');%0A @@ -5270,19 +5270,12 @@ ss(' -label label +text -suc
57bd5958c8431494744dac23265d420dbd876fc4
remove electron deprectated api
main.js
main.js
'use strict'; const Electron = require('electron'); const BrowserWindow = require('browser-window'); module.exports = { load () { Editor.Menu.register( 'open-log-file', () => { return [ { label: Editor.T('CONSOLE.editor_log'), params: [], click () { Editor...
JavaScript
0.998059
@@ -49,57 +49,8 @@ n'); -%0Aconst BrowserWindow = require('browser-window'); %0A%0Amo @@ -1104,16 +1104,25 @@ u.popup( +Electron. BrowserW
f3c5b5302be6583b474ae157993664b9c764c8dd
add browserify.bundleDelay to karma config
karma.conf.js
karma.conf.js
module.exports = function (karma) { karma.set({ frameworks: ['browserify', 'mocha', 'sinon-chai'], files: [ 'src/**/*.js', 'test/**/*.spec.js', ], preprocessors: { 'src/**/*.js': ['browserify'], 'test/**/*.spec.js': ['browserify'], }, browserify: { debug: true,...
JavaScript
0
@@ -291,24 +291,48 @@ owserify: %7B%0A + bundleDelay: 800,%0A debug:
4c7c6e75b4e29eba54a0dfd8c09920d97ae4c853
Fix return highest expense
main.js
main.js
var amountTotal = document.getElementById("sum-total"); var incAmount = document.getElementsByName("incAmount"); var expAmount = document.getElementsByName("expAmount"); var incAmountTotal = 0; var expenseContainer = document.getElementById("expenseContainer"); var mainContainer = document.getElementById("mainContainer...
JavaScript
0.000799
@@ -3885,16 +3885,235 @@ ntTtl;%0A%0A + // Return highest Income%0A highest = amountArr2.shift();%0A var a = amountArr.indexOf(highest);%0A mainIncome.innerHTML = incomeSrc%5Ba%5D.value + %22 (%22 + highest + %22)%22 %7C%7C %22No Source Stated%22 + %22 (%22 + highest + %22)%22;%0A%0A // F @@ -4627,221...
b2b3662e2478a166019962bfb0fda9679b8f328e
update import page
src/views/Import.react.js
src/views/Import.react.js
import React, { Component, PropTypes } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as PreviewActions from 'actions/previewPage/PreviewActions'; class ImportView extends Component { constructor(props) { super(props); const { mappingsectio...
JavaScript
0
@@ -366,593 +366,53 @@ -console.log(this.state);%0A this.mappedJson;%0A this.jsonpreview = %5B%0A %7B%0A %22product%22:%22pen%22,%0A %22ProductId%22:100,%0A %22price%22:100%0A %7D,%0A ...
f0e7c9a87da54065447577999124b02510314006
second question answered
main.js
main.js
var _ = require('underscore'); var data = require('./items.json'); //Getting prices from the data. // var prices = _.pluck (data, 'price'); //Reducing the prices to a single number //Dividing that by the number of items in the array // var avgPrice = _.reduce(prices, function(a, b); // // console.log(prices) //Sec...
JavaScript
0.999955
@@ -94,16 +94,17 @@ data.%0A%0A + // var p @@ -135,16 +135,40 @@ price'); +%0A // console.log(prices) %0A%0A//Redu @@ -352,17 +352,16 @@ estion!%0A -%0A //get pr @@ -388,49 +388,42 @@ $18 -%0A//list of prices is already plucked%0A%0A// +, not using other list of prices%0A%0A var @@ -448,19 +448,14 @@ ter(...
e6ff8209d15e4b24a8a33664eff4151731f769e3
Fix comment formatting in main.js
main.js
main.js
/** * @module IsotopeView * @author Benjamin Goering - https://github.com/gobengo */ define(function(require) { var Backbone = require('backbone'), Mustache = require('mustache'), isotope = require('isotope'), ContentTemplate = require('text!streamhub-backbone/templates/Content.html'), ContentView = ...
JavaScript
0.000558
@@ -4265,16 +4265,19 @@ );%0A%0A/**%0A + * Add Cont @@ -4352,16 +4352,19 @@ Isotope%0A + * lays @@ -4384,16 +4384,19 @@ rrectly%0A + * @private @@ -4388,32 +4388,35 @@ tly%0A * @private%0A + * @param %7BContent%7D @@ -4430,32 +4430,33 @@ A Content model +%0A */%0AIsotopeView. @@ -5212,16 +5212,19 @@...
247e81bc549a188ed566602117b823e3dec43a8f
change advertising modes menu to broadcasting modes
main.js
main.js
'use strict'; let app = require('app'), BrowserWindow = require('browser-window'), ipc = require('electron').ipcMain, Menu = require('menu'), WebSocketServer = require('ws').Server, wss = new WebSocketServer({ 'port': 1234 }), EddystoneBeacon = require('eddystone-beacon'), mainWindow = null, mdns = requ...
JavaScript
0.000001
@@ -3902,24 +3902,25 @@ abel': ' -Advertis +Broadcast ing mode
7bb60f26909d0b415f02684e33115e52a3aa4134
remove repo stats
public/views/repoView.js
public/views/repoView.js
'use strict'; (function(module) { const repoView = {}; // REVIEW: Private methods declared here live only within the scope of the wrapping IIFE. const ui = function() { let $about = $('#about'); // Best practice: Cache the DOM query if it's used more than once. $about.find('ul').empty(); // $about....
JavaScript
0.000001
@@ -555,18 +555,18 @@ '#about -u l +i ').appen
b45b2875a025feaaa9de6939c567c3fd67bcf66e
Update webpack.config.js
public/webpack.config.js
public/webpack.config.js
const path = require('path'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); module.exports = [ { mode: 'production', entry: { front: path.join(__dirname, 'resources', 'javascript', 'index.js'), }, watch: true, output: { path: __dirname + '/dist/', publicPath: '/dist/', filename: "[...
JavaScript
0.000003
@@ -1448,202 +1448,8 @@ r',%0A -%09%09%09%09%09%09%09options: %7B%0A%09%09%09%09%09%09%09%09plugins: function () %7B%0A%09%09%09%09%09%09%09%09%09return %5B%0A%09%09%09%09%09%09%09%09%09%09require('precss'),%0A%09%09%09%09%09%09%09%09%09%09require('autoprefixer'),%0A%09%09%09%09%09%09%09%09%09%09require('cssnano'),%0A...
92b505ae8dc9d0e94c961248f53e72604aaf54d8
Change default milestonesExpanded setting to `current`
client/app/bundles/course/lesson-plan/reducers/flags.js
client/app/bundles/course/lesson-plan/reducers/flags.js
import actionTypes from '../constants'; const initialState = { canManageLessonPlan: false, milestonesExpanded: 'all', }; export default function (state = initialState, action) { const { type } = action; switch (type) { case actionTypes.LOAD_LESSON_PLAN_SUCCESS: { return { ...state, ...action.flags ...
JavaScript
0
@@ -34,16 +34,23 @@ ants';%0A%0A +export const in @@ -121,11 +121,15 @@ d: ' -all +current ',%0A%7D @@ -289,22 +289,33 @@ %7B%0A -return +const nextState = %7B ...st @@ -338,16 +338,163 @@ lags %7D;%0A + if (!nextState.milestonesExpanded) %7B%0A nextState.milestonesExpanded = initialState.mil...
c387c73a7aea97b8d95d20ab7ed44504ec351ee2
trim vestigial functionality
main.js
main.js
/*jslint browser: true*/ /*global Tangram, gui */ map = (function () { 'use strict'; var locations = { 'Oakland': [37.8044, -122.2708, 15], 'New York': [40.70531887544228, -74.00976419448853, 15], 'Seattle': [47.5937, -122.3215, 15] }; var map_start_location = locations['New Y...
JavaScript
0
@@ -92,24 +92,34 @@ var +map_start_ location s = %7B%0A @@ -114,227 +114,62 @@ tion -s = -%7B%0A 'Oakland': %5B37.8044, -122.2708, 15%5D,%0A 'New York': %5B40.70531887544228, -74.00976419448853, 15%5D,%0A 'Seattle': %5B47.5937, -122.3215, 15%5D%0A %7D;%0A%0A var map_start_locati...
2dd36e05760a6beb875af57ecb72b786fa8f88b3
Disable devtools on start
main.js
main.js
'use strict'; const electron = require('electron'); // Module to control application life. const app = electron.app; // Module to create native browser window. const BrowserWindow = electron.BrowserWindow; const Menu = electron.Menu; const MenuItem = electron.MenuItem; // Keep a global reference of the wind...
JavaScript
0.000001
@@ -773,24 +773,27 @@ x.html');%0D%0A + // mainWindow.
e9b0c6cab2f41fe26369a6d3105cfce7280cea47
use tasklistData.newChild
client/scripts/task/modals/cam-tasklist-comment-form.js
client/scripts/task/modals/cam-tasklist-comment-form.js
define([ 'angular', 'camunda-bpm-sdk', 'text!./cam-tasklist-comment-form.html' ], function( angular, camSDK, template ) { 'use strict'; var commentCreateModalCtrl = [ '$scope', '$translate', 'Notifications', 'camAPI', 'task', function( $scope, $translate, Notifications,...
JavaScript
0.000002
@@ -1392,16 +1392,20 @@ ope.task +list Data.new
08cb9c97c18d8491ce018fb02dd7b1ff05e160c7
Fix wrong subtraction name in pathoscope mapping overview
client/src/js/analyses/components/Pathoscope/Mapping.js
client/src/js/analyses/components/Pathoscope/Mapping.js
import numbro from "numbro"; import React from "react"; import { connect } from "react-redux"; import { ProgressBar } from "react-bootstrap"; import { Link } from "react-router-dom"; import styled from "styled-components"; import { Box, Flex, FlexItem, Icon, Label } from "../../../base"; import { getColor } from "../.....
JavaScript
0
@@ -3852,16 +3852,29 @@ ed_count +, subtraction %7D = sta @@ -3953,42 +3953,8 @@ -subtraction: state.samples.detail. subt
65152c3d81201e3f2c5673e09d4df5c0c27c5662
Throw error instead of logging to console. (fixes #35)
main.js
main.js
const { app } = require('electron') const chokidar = require('chokidar') const fs = require('fs') const { spawn } = require('child_process') const appPath = app.getAppPath() const ignoredPaths = /node_modules|[/\\]\./ // Main file poses a special case, as its changes are // only effective when the process is restarted...
JavaScript
0
@@ -2500,12 +2500,21 @@ able - && +) %7B%0A if (! fs.e @@ -2534,24 +2534,124 @@ cutable)) %7B%0A + throw new Error('Provided electron executable cannot be found or is not exeecutable!')%0A %7D%0A%0A const ha @@ -2999,91 +2999,8 @@ er)%0A - %7D else %7B%0A console.log('Electron could not be foun...
8fbfe5f28641a15674904238cc10be81e96607b4
add more test cases
src/websocket_url.spec.js
src/websocket_url.spec.js
/// <reference path="websocket_url.js"> describe("WebsocketUrl", function() { 'use strict'; it("should understand absolute http urls", function() { expect(websocketUrl("http://example.com/sub/")).toEqual("ws://example.com/sub/"); }); it("should understand absolute https urls", function() { expect(webso...
JavaScript
0
@@ -507,24 +507,25 @@ %5E%5C/%5D*%5C/funny +$ /);%0A %7D);%0A @@ -730,16 +730,278 @@ t%5C/funny +$/);%0A %7D);%0A it(%22should understand root urls%22, function() %7B%0A expect(websocketUrl(%22/%22)).toMatch(/%5Ewss?:%5C/%5C/%5B%5E%5C/%5D*%5C.*%5C/$/);%0A %7D);%0A it(%22should understand blank urls%22, fun...
f0488296d459e5c15ff7015cdb2398cf885ead26
remove async await
index.ios.js
index.ios.js
/** * @providesModule RNNotifications * @flow */ "use strict"; import { NativeModules, DeviceEventEmitter, NativeAppEventEmitter } from "react-native"; import Map from "core-js/library/es6/map"; import uuid from "uuid"; const NativeRNNotifications = NativeModules.RNNotifications; // eslint-disable-line no-unused-var...
JavaScript
0.00005
@@ -7048,14 +7048,8 @@ tic -async isRe @@ -7098,14 +7098,8 @@ urn -await Nati
fa7a3f22444b784052b71d6649bb435421803d0d
Add description and example
src/widgets/IconWidget.js
src/widgets/IconWidget.js
/** * Icon widget. * * See OO.ui.IconElement for more information. * * @class * @extends OO.ui.Widget * @mixins OO.ui.IconElement * @mixins OO.ui.TitledElement * * @constructor * @param {Object} [config] Configuration options */ OO.ui.IconWidget = function OoUiIconWidget( config ) { // Configuration initia...
JavaScript
0.000001
@@ -8,66 +8,729 @@ Icon - w +W idget -.%0A *%0A * See OO.ui.IconElement for more information. + is a generic widget for %7B@link OO.ui.IconElement icons%7D. In general, IconWidgets should be used with OO.ui.LabelWidget,%0A * which creates a label that identifies the icon%E2%80%99s function. See the %5BOOjs UI documen...