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
15217b20f3df29ce7a2d90ba0d117abeaa80cee8
fix typo
server/api/tweet/tweet.model.js
server/api/tweet/tweet.model.js
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var TweetSchema = new Schema({ latitute: Number, longitude: Number, location: String }); module.exports = mongoose.model('Tweet', TweetSchema);
JavaScript
0.999991
@@ -114,17 +114,17 @@ latitu -t +d e: Numbe
51188fd14f0514e8250f108edfc8bd59bf9398ce
Remove all otu related alerts from sample analyses view
client/src/js/samples/components/Analyses/List.js
client/src/js/samples/components/Analyses/List.js
import React from "react"; import { map, sortBy } from "lodash-es"; import { connect } from "react-redux"; import { Alert, FormControl, FormGroup, InputGroup, ListGroup } from "react-bootstrap"; import { Link } from "react-router-dom"; import AnalysisItem from "./Item"; import CreateAnalysis from "./Create"; import { ...
JavaScript
0
@@ -2072,1404 +2072,8 @@ %7D%0A%0A - let alertMessage;%0A let isBlocked = false;%0A%0A if (this.props.modifiedCount) %7B%0A alertMessage = (%0A %3Cdiv%3E%0A %3Cspan%3ENote: The OTU database has changed. %3C/span%3E%0A %3CLink to=%22/...
be4e5d4d5d239586b19c3d8ca4eda694b522ab89
update nginx support
routes/admin/system.js
routes/admin/system.js
var __dirname = __dirname.replace('/admin',''); var fs = require('fs'); var code = fs.readFileSync(__dirname+'/common.js','utf8'); eval(code); module.exports = { system:function(req, res, next){ var infomations = {}; infomations['username'] = req.session.userData.username; infomations['use...
JavaScript
0
@@ -4596,26 +4596,19 @@ ole.log( -obj.domain +str );%0A
a12ae91a5a898e972e385b593624fe24f1661bdc
correct error in export
source/Menu/controller.js
source/Menu/controller.js
/* Object: ui.controller.menu Window controller. It handles altitude, list, position and state Arguments: options - (object) Options: zBase - (integer) zStep - (integer) cascade - (object) stack - (object) Requires: <UI.Window> Implied global: ui, window Discussion: to be continued.... ...
JavaScript
0.000016
@@ -380,20 +380,12 @@ port +s = -ui.menu = %7B%0A%09
69064152b69f8b63e0eb2bf2d74bd6951b1c7b98
fix reference
dashboard/rules/disk-check/rule-low-disk.js
dashboard/rules/disk-check/rule-low-disk.js
module.exports = function evaluateDisk(data, schedule, monitor) { if (monitor.fabricCommand === 'status__disk') { try { data.forEach(function (disk) { let name = disk.name; let use_percent = disk.use_percent; let size = disk.size + 'KB'; if (disk.size > 1024) { size = disk.size + 'MB'; }...
JavaScript
0.000001
@@ -119,16 +119,21 @@ ry %7B%0A%09%09%09 +data. data.for @@ -480,27 +480,8 @@ ) %7B%0A -%09%09%09console.log(e);%0A %09%09%7D%0A
9534f7de76e74eb11a577ef30902c008f1311972
fix credentials
app/Components/AuthSlack.js
app/Components/AuthSlack.js
import React from 'react'; import qs from 'qs'; const clientId = process.env.NODE_ENV === 'production' ? '2376554812.23846206866': '2376554812.23645499953'; const clientSecret = process.env.NODE_ENV === 'production' ? 'a8fc14196984beee9faa03c827d90dc0' : '0aafceac20b11bf475e1ca5118390811'; var getQueryString ...
JavaScript
0.000001
@@ -223,79 +223,79 @@ %0A ' -a8fc14196984beee9faa03c827d90dc0' :%0A '0aafceac20b11bf475e1ca5118390811 +0aafceac20b11bf475e1ca5118390811' :%0A 'a8fc14196984beee9faa03c827d90dc0 ';%0A%0A
576e2c4311deed74729ecf6beb04f4d2a0001620
handle empty responses for survey likert
plugins/jspsych-survey-likert.js
plugins/jspsych-survey-likert.js
/** * jspsych-survey-likert * a jspsych plugin for measuring items on a likert scale * * Josh de Leeuw * * documentation: docs.jspsych.org * */ jsPsych.plugins['survey-likert'] = (function() { var plugin = {}; plugin.info = { name: 'survey-likert', description: '', parameters: { questio...
JavaScript
0.000001
@@ -3876,24 +3876,18 @@ var -respons e +l = displ @@ -3950,14 +3950,8 @@ ed') -.value ;%0A @@ -3964,39 +3964,66 @@ if ( -typeof response == 'undefined') +el === null) %7B%0A var response = %22%22;%0A %7D else %7B%0A @@ -4031,16 +4031,20 @@ +var response @@ -4050,10 +4050,16 ...
7dfa5453c8c452aba7c255597c934e3e2d062d10
Remove bindAction
renderer/container/app.js
renderer/container/app.js
// @flow import React, {Component} from 'react'; import {bindActionCreators} from 'redux'; import type {State} from 'redux'; import {connect} from 'react-redux'; import cssModules from 'react-css-modules'; import type {RankingModeType, ManageStateType} from '../actions/type'; import {currentWork} from '../actions'; imp...
JavaScript
0.000002
@@ -53,56 +53,24 @@ ort -%7BbindActionCreators%7D from 'redux';%0Aimport type %7B +type %7BDispatch, Stat @@ -184,25 +184,8 @@ pe %7B -RankingModeType, Mana @@ -195,16 +195,26 @@ tateType +, WorkType %7D from ' @@ -243,59 +243,8 @@ rt %7B -currentWork%7D from '../actions';%0Aimport %7BopenModal, clos @@ -44...
5113b4370baafc57a9b11f6cf602fd81c2c96003
Format debug warnings and improve error messaging.
lib/specifications/repositoryTypes/git.js
lib/specifications/repositoryTypes/git.js
/** * Interact with local and remote project repos using Git. */ 'use strict'; var git = require('nodegit'); var _ = require('underscore'); var Q = require('q'); var fs = require('q-io/fs'); // https://github.com/kriskowal/q-io var appConfig = require('../../configuration').get(); var ignoreSSLErrors = { certi...
JavaScript
0
@@ -1857,16 +1857,23 @@ values:' + + '%5Cn' );%0A p @@ -1916,16 +1916,23 @@ String() + + '%5Cn' );%0A %7D%0A%0A @@ -2183,16 +2183,45 @@ epo URL. + Possible wrong project name? ');%0A %7D%0A
9114796d52c8ecca88c2c742579ce0d5d7deb3af
Remove array controller from dummy app
tests/dummy/app/controllers/index-footer.js
tests/dummy/app/controllers/index-footer.js
import Em from 'ember'; var computed = Em.computed; var alias = Em.computed.alias; var IndexFooterController = Em.ArrayController.extend({ episode: alias('content.length'), million_viewers: computed('content.@each.million_viewers', function () { var vals = this.get('content').mapBy('million_viewers'); var sum = ...
JavaScript
0.000001
@@ -112,13 +112,8 @@ Em. -Array Cont
c4c618c2d1fd7e7a273b01e44ff7984e865f2caa
Disable the check-types test for ES6.
Gruntfile.js
Gruntfile.js
var fs = require('fs') var path = require('path') var child_process = require('child_process') var exec = child_process.exec var spawn = child_process.spawn module.exports = function(grunt) { grunt.initConfig({ eslint: { src: ['lib/**/*.js'] }, watch: { lib: { files: ['lib/**/*.js'], ...
JavaScript
0
@@ -599,22 +599,8 @@ it', - 'check-types' %5D)%0A
bd3e9e2a0eb6a884bad003cfeb252e5539228a1e
fix data test
source/data/index.test.js
source/data/index.test.js
const { grunt } = require('../../tests/utils/grunt') const t = require('tcomb') const r = require('../../modules/refinements') const validate = require('../../modules/validate') let data = require('./index') // Tests data index file against this schema to ensure that Kotsu receives all // required data with valid valu...
JavaScript
0.000002
@@ -1485,18 +1485,27 @@ script: +t.struct( %7B%0A - @@ -1558,16 +1558,17 @@ %0A %7D +) ,%0A @@ -1575,16 +1575,25 @@ sprite: +t.struct( %7B%0A @@ -1613,23 +1613,24 @@ .String%0A - %7D +) %0A %7D)%0A
af4292aaffe8c467e003ea56889ceca819b5046e
Work in progress on cancelOrder
js/bcex.js
js/bcex.js
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError } = require ('./base/errors'); // --------------------------------------------------------------------------- module.exports = class bcex extends Exchang...
JavaScript
0
@@ -4961,32 +4961,253 @@ , params = %7B%7D) %7B +%0A%0A await this.loadMarkets();%0A let request = %7B%0A 'order_id': id,%0A 'symbol' : symbol%0A %7D%0A%0A let response = await this.privatePostApiOrderCancel(this.extend(request, params));%0A%0A %0A return
6bad3f9954d1314dededc6504c288e320250a3c0
change uiComponentsPath to only include folders
src/tasks/styles.js
src/tasks/styles.js
import autoprefixer from 'gulp-autoprefixer'; import chalk from 'chalk'; import glob from 'glob'; import gulp from 'gulp'; import nib from 'nib'; import size from 'gulp-size'; import sourcemaps from 'gulp-sourcemaps'; import stylus from 'gulp-stylus'; var uiComponentsPath = getStyleImportPath(), importPaths = ['n...
JavaScript
0
@@ -1600,16 +1600,17 @@ ponents* +/ ');%0A%0A
889c63f6fee2636849c8111cf01a66321725d35c
add GET and POST for retrieving and creating data from /api/bears
routes/bears_routes.js
routes/bears_routes.js
const router = module.exports = exports = require('koa-router')({ prefix: '/api' }); var koaBody = require('koa-body')(); router.get('/get', function *() { this.body = {body:'hello'}; this.status = 201; console.log(this.response); });
JavaScript
0
@@ -1,12 +1,130 @@ +const Bear = require(__dirname + '/../models/bear');%0Aconst handleError = require(__dirname + '/../lib/handle_error');%0A const router @@ -248,19 +248,33 @@ ter. -ge +pos t('/ -get', +bears', koaBody,%0A fun @@ -285,12 +285,18 @@ n *( +next ) %7B%0A + th @@ -309,72 +309,230 @@ y = -%...
415b29ce0d4690459f4203771788d7c6e70f0b3c
move log filtered collection to serialize
app/addons/logs/resources.js
app/addons/logs/resources.js
// 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, software // distributed un...
JavaScript
0
@@ -2714,86 +2714,8 @@ %5B%5D; -%0A this.filteredCollection = new Log.Collection(this.collection.toJSON()); %0A%0A @@ -2775,32 +2775,14 @@ his. -createFilteredCollection +render ();%0A @@ -2932,22 +2932,47 @@ %7B logs: -this.f +new Log.Collection(this.createF ilteredC @@ -2980,16 +2980,19 @@ llection +(...
17eaee01b8a59bb21a002c8b1b1942f056e28803
make underscore available in the controller scope
corehq/apps/style/static/style/js/pagination.ng.js
corehq/apps/style/static/style/js/pagination.ng.js
(function (angular, undefined) { 'use strict'; var pagination = angular.module('hq.pagination', [ 'ui.bootstrap', 'ngResource', 'ngRoute', 'ng.django.rmi' ]); pagination.constant('paginationLimits', [ [10, "Limit 10"] ]); pagination.constant("pagination...
JavaScript
0
@@ -556,16 +556,69 @@ = this;%0A + $scope._ = _; // makes underscore available%0A
ab7483bee844beff8939542fa858f898fe5d6d75
Fix loading of tests specs in protractor-coverage.config.js
client/tests/end2end/protractor-coverage.config.js
client/tests/end2end/protractor-coverage.config.js
var fs = require('fs'); var specs = JSON.parse(fs.readFileSync('tests/end2end/specs.json')); var q = require("q"); var FirefoxProfile = require("firefox-profile"); var makeFirefoxProfile = function(preferenceMap) { var deferred = q.defer(); var firefoxProfile = new FirefoxProfile(); for (var key in preferenceMa...
JavaScript
0.000001
@@ -83,24 +83,154 @@ s.json'));%0A%0A +var tmp = %5B%5D;%0Afor (var i=0; i%3Cspecs.length; i++) %7B%0A tmp.push('tests/end2end/' + specs%5Bi%5D);%0A%7D%0A%0Aspecs = tmp;%0A%0Aconsole.log(specs);%0A%0A var q = requ
7f0e40f0b8873eae1cf98dd5e4e1a9c00113fee7
add unique index to lists table
db/migrations/20160930210310-create-list.js
db/migrations/20160930210310-create-list.js
'use strict'; module.exports = { up: function (queryInterface, Sequelize) { return queryInterface.createTable('lists', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, kk: {type: Sequelize.STRING(64)}, value: {type:...
JavaScript
0.000001
@@ -495,16 +495,194 @@ 'kk'%5D);%0A + queryInterface.addIndex(%0A 'lists',%0A %5B'kk', 'value'%5D,%0A %7B%0A indexName: 'KeyValue',%0A indicesType: 'UNIQUE'%0A %7D%0A )%0A %7D);%0A
38c55008c215d913cf8f5324e673951da96ffc79
Fix variable typo
with-bindings.js
with-bindings.js
var Noble = require('./lib/noble'); module.exports = function(bindings) { return new Noble(binding); };
JavaScript
0.998453
@@ -94,14 +94,15 @@ (binding +s );%0A%7D;%0A
2eff4e9f0ca7c3f5a12c2ee80808aa5321b0f53d
Format data source queries
app/src/repository/DataSourceRepository.js
app/src/repository/DataSourceRepository.js
import gql from "graphql-tag"; class DataSourceRepository { static getListPage(pageNumber, pageSize) { return gql` { allDataSources { nodes{ id name createdDate updatedDate connectionString login dataSourc...
JavaScript
0.000001
@@ -155,32 +155,33 @@ %0A nodes + %7B%0A id @@ -214,19 +214,42 @@ -createdDate +dataSourceTypeByDataSourceTypeId %7B %0A @@ -261,18 +261,13 @@ -updatedDat + nam e%0A @@ -280,42 +280,40 @@ -connectionString%0A login +%7D%0A connectivityStatus %0A ...
dc8ef06e58af485747289270166131e4989f724a
Use MQTT user/pass from env
scripts/say.js
scripts/say.js
// Description: // Voice synthesize anything! // // Commands // hubot say <text> - Synthesize <text> on the office speakers! // hubot say <text> <voice_nr> - Synthesize <text> with chosen voice synthesizer // hubot voices - Display a list of available voices const _ = require('lodash'); const fetch = require('...
JavaScript
0
@@ -334,22 +334,19 @@ %0Aconst m -embers +qtt = requi @@ -353,54 +353,61 @@ re(' -../lib/members +mqtt ');%0A +%0A const -mqtt = require('mqtt') +%7B MQTT_USER, MQTT_PASS %7D = process.env ;%0A%0Ac @@ -476,20 +476,17 @@ me: -'odinugedal' +MQTT_USER ,%0A @@ -499,10 +499,17 @@ rd: -'' +MQTT_PASS %0A%7D); ...
8ddd6a1fbc6b9b7b5fa4553b7a0c9be3de142109
move header/footer outside of app wrapper
app/containers/App/index.js
app/containers/App/index.js
import React, { PureComponent } from 'react' import Helmet from 'react-helmet' import styled from 'styled-components' import PropTypes from 'prop-types' import { withRouter } from 'react-router-dom' import Header from 'components/Header' import Footer from 'components/Footer' import withProgressBar from 'components/Pr...
JavaScript
0
@@ -639,26 +639,19 @@ %0A %3C -AppWrapper +div %3E%0A @@ -909,24 +909,47 @@ %3CHeader /%3E%0A + %3CAppWrapper%3E%0A %7BRea @@ -990,16 +990,38 @@ ldren)%7D%0A + %3C/AppWrapper%3E%0A @@ -1035,34 +1035,27 @@ /%3E%0A %3C/ -AppWrapper +div %3E%0A )%0A %7D%0A
a492c3ea873e9a11f125adbd97cf91b53f8b0136
Add tests to jshint
Gruntfile.js
Gruntfile.js
/*jshint node:true */ module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { options: grunt.file.readJSON('.jshintrc'), src: [ 'Gruntfile.js', 'src/compiler.js', ...
JavaScript
0
@@ -332,16 +332,53 @@ azor.js' +,%0A 'test/TestRazor.js' %0A
6ab403766ca599230d3838218b49a1cc5f88a915
Use addition assignment operator in for loops
flowplayer.hlsjs.js
flowplayer.hlsjs.js
/*jslint browser: true, for: true */ /*global Hls, flowplayer */ /*! hlsjs engine plugin for Flowplayer HTML5 Copyright (c) 2015, Flowplayer Oy Released under the MIT License: http://www.opensource.org/licenses/mit-license.php Includes hls.min.js Copyright (c) 2015 Dailymotion (http://www.dailymo...
JavaScript
0.000001
@@ -1042,37 +1042,34 @@ urces.length; i -= i + += 1) %7B%0A @@ -4533,13 +4533,10 @@ ; i -= i + += 1)
c43187f106ce63e8b388a4039f3f40dbd1f2dee5
添加 angular-upload
app/technologies/angular-upload/app.js
app/technologies/angular-upload/app.js
/* * https://github.com/starzou * * Copyright (c) 2014 StarZou * Licensed under the MIT license. */ /** * @class app * @description * @time 2014-12-14 20:24 * @author StarZou **/ (function (window, document) { 'use strict'; var App = angular.module('app', ['lr.upload']); App.run(['$rootScope', ...
JavaScript
0
@@ -532,16 +532,111 @@ $scope); +%0A%0A $scope.onSuccess = function (response) %7B%0A console.log(response);%0A %7D %0A %7D%5D)
0c073078edf2fe309dd83a4fae9190be495f87e9
Set empty sting if comments undefined.
client/lib/utils.js
client/lib/utils.js
/** * Utilities package. * Exports all functions for use by specific module imports. */ import uuid from 'node-uuid'; import dragula from 'dragula'; import { adjectives, scientists } from './naming.js'; /** * Calculate total marks for this scheme using the max mark for each rubric. */ function calculateTotalMark...
JavaScript
0
@@ -2771,16 +2771,42 @@ eComment + ? report.freeComment : '' %7D%22%60;%0A
39094fdf85283ab684a704d1ddbf977bee469dfe
work on select_bars
quicktests/select_bars.js
quicktests/select_bars.js
function makeData() { return [makeRandomData(50), makeRandomData(50)]; } function run(div, data, Plottable) { var svg = div.append("svg").attr("height", 500); data = _.cloneDeep(data); var dataseries = data[0].slice(0, 20); var xScale = new Plottable.Scale.Linear(); ...
JavaScript
0.000001
@@ -1544,32 +1544,77 @@ true);%0A + drag_interaction.clearBox();%0A %7D%0A
12f8b353c8ebe280b2c87e1d380ac231e61af350
clean up the code for has3DTilesExtensionSpec
Specs/Scene/has3DTilesExtensionSpec.js
Specs/Scene/has3DTilesExtensionSpec.js
import { has3DTilesExtension } from "../../Source/Cesium.js"; describe("Scene/has3DTilesExtension", function () { it("detects the presence of an extension", function () { expect( has3DTilesExtension( { extensions: { "3DTILES_extension": {}, }, }, "3DT...
JavaScript
0.000002
@@ -175,50 +175,18 @@ -expect(%0A has3DTilesExtension(%0A +var tile = %7B%0A @@ -182,36 +182,32 @@ tile = %7B%0A - extensions: %7B%0A @@ -196,36 +196,32 @@ extensions: %7B%0A - %223DTILES @@ -247,33 +247,54 @@ - - %7D,%0A - %7D -, +; %0A - ...
f391f5868ffa5b937b01449df31f03b59c3061c4
Update LetterComponent.js
Code/src/src/components/LetterComponent.js
Code/src/src/components/LetterComponent.js
import React, { Component } from 'react'; class Letters extends Component { constructor(props) { super(props); this.state = { type: props.statement }; } render() { return ( <div className="userInput"> <button className="entry row1 col1">a</button> <button className="en...
JavaScript
0.000001
@@ -1868,16 +1868,22 @@ =%22entry- +extra- wide row
602cf0a309e453d6985d5cd7f2e0cf6f0d167d9a
Add test case
components/locale-provider/__tests__/index.test.js
components/locale-provider/__tests__/index.test.js
import React from 'react'; import { mount } from 'enzyme'; import moment from 'moment'; import { LocaleProvider, Pagination, DatePicker, TimePicker, Calendar, Popconfirm, Table, Modal, Select, Transfer } from '../../'; import enGB from '../en_GB'; import frFR from '../fr_FR'; import nlBE from '../nl_BE'; impor...
JavaScript
0.000089
@@ -887,16 +887,45 @@ /bg_BG'; +%0Aimport viVN from '../vi_VN'; %0A%0Aconst @@ -1071,16 +1071,22 @@ BE, itIT +, viVN %5D;%0A%0Acons
f4681c1184506a813fd415d9722e92a0380642ba
Test to understand
docs/js/generate.js
docs/js/generate.js
$(document).ready(function () { let xhttp = new XMLHttpRequest(); // Settings const NB_ENTRIES = 10; // Makes the request to get the data xhttp.open("GET", "https://raw.githubusercontent.com/lassalleloan/githubAnalytic-static/master/docs/data/data.json"); xhttp.responseType = "json"; xhttp...
JavaScript
0
@@ -679,11 +679,11 @@ th; -i ++ +i ) %7B%0A @@ -728,18 +728,8 @@ %3E%3Ctd - id=%22name%22 %3E$%7Bo @@ -754,22 +754,8 @@ %3E%3Ctd - id=%22nb_repos%22 %3E$%7Bo
298aed509f0ac25745d299e57f0b306d228a6234
add "grunt build" as afterBumpTasks
Gruntfile.js
Gruntfile.js
'use strict'; var browsers = [ 'last 2 versions', 'ie 9', 'ie 10', 'Firefox ESR', 'Opera 12.1' ]; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '\n/*!\n * <%= pkg.title || pkg.name %> - v<%= pkg.vers...
JavaScript
0
@@ -5959,32 +5959,75 @@ options: %7B%0A + afterBumpTasks: %5B'build'%5D,%0A
d60a5212dc35604e324c426814bc656e70a4746c
Fix problem with authorization email already looking submitted.
app/assets/party/register.js
app/assets/party/register.js
'use strict'; app.controller('party/register', [ '$scope', 'pageService', 'user', 'token', function ($scope, page, user, token) { $scope.page = page; page.display.title = page.constants.message('register.title'); $scope.auth = {}; var initStep = { create: function (step) { var form ...
JavaScript
0
@@ -3327,38 +3327,8 @@ se;%0A - form.$setSubmitted();%0A @@ -3366,42 +3366,8 @@ ) %7B%0A - form.$setUnsubmitted();%0A @@ -3472,42 +3472,8 @@ ) %7B%0A - form.$setUnsubmitted();%0A
d68157faa8024a7d861ea09899957b5d883c5627
support custom session store, fixed #146
common/session.js
common/session.js
/*! * cnpmjs.org - common/session.js * * Copyright(c) cnpmjs.org and other contributors. * MIT Licensed * * Authors: * fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com) * dead_horse <dead_horse@qq.com> (http://deadhorse.me) */ 'use strict'; /** * Module dependencies. */ var connect = require('conn...
JavaScript
0
@@ -744,16 +744,39 @@ store: + config.sessionStore %7C%7C new Red
52af23230abcef31b40b219e1fc12ddba72932d9
add stripe api key
server/db/vendor/vendorModel.js
server/db/vendor/vendorModel.js
var mongoose = require('mongoose'); var dbUtils = require('../../utils/db.utils.js'); var Schema = mongoose.Schema; var vendorSchema = new Schema({ email: { type: String, required: true, unique: true }, password: { type: String, required: true }, salt: { type: String }, name: String, isVendor: Boolean, st...
JavaScript
0
@@ -317,16 +317,19 @@ stripe +Api Key: Str
9b62a6bcf42be50c3320f2d5214e31f1bb65844f
enable multiple selection
extra/webgui-dev/src/Nanocube3/GroupedBarChart.js
extra/webgui-dev/src/Nanocube3/GroupedBarChart.js
/*global $,d3 */ function GroupedBarChart(opts, getDataCallback, updateCallback){ this.getDataCallback=getDataCallback; this.updateCallback=updateCallback; var name = opts.name; var logaxis = opts.logaxis; var margin = {top:20,right:10,left:30,bottom:30}; var id = '#'+name; //setup t...
JavaScript
0
@@ -4299,25 +4299,33 @@ Data(data);%0A + %0A - flat @@ -4741,17 +4741,25 @@ tdata);%0A + %0A - @@ -5004,36 +5004,25 @@ - %0A + @@ -5285,32 +5285,202 @@ else%7B%0A + if(d3.event.shiftKey)%7B%0A ...
70c12cccabc05f24f394ec4352e74b95883da824
Fix Babel-Transpilation in build-task
app/templates/_webpack.config.babel.js
app/templates/_webpack.config.babel.js
import webpack from 'webpack' import merge from 'webpack-merge' import path from 'path' import yargs from 'yargs' import ExtractTextPlugin from 'extract-text-webpack-plugin' <% if ( projectJSFramework === 'Vue.js' ) { %> import vueutils from './build/vue-utils'<% } %> import kittnConf from './config.json' const argv =...
JavaScript
0.001534
@@ -1943,40 +1943,19 @@ de: -path.join( ROOT_PATH, 'src/js' ) +SOURCE_PATH ,%0A @@ -2092,39 +2092,19 @@ de: -path.join( ROOT_PATH, 'src/js') +SOURCE_PATH ,%0A
cf97bad450696ec05a00da5b43fb06eb2ba57152
Use refactored function
web-extension/content.js
web-extension/content.js
'use strict'; var browser = browser || chrome; var options = null; getSyncStorage( function(result) { options = result; }, function() { alert('Could not read config options'); } ); var inputEventNames = ['click', 'focus', 'keypress', 'keydown', 'keyup', 'input', 'blur', 'change'], ...
JavaScript
0.000012
@@ -2507,209 +2507,26 @@ if ( -element.offsetWidth %3C 50) %7B%0A return;%0A %7D%0A if (element.offsetHeight %3C 10) %7B%0A return;%0A %7D%0A if (elementStyle.visibility === 'hidden' +isVisible(element) ) %7B%0A @@ -2535,42 +2535,8 @@ - ...
3895a8ff4a3224ffb60de616570c2a26dbb0ff3e
drop reference to details.js
app/app/static/js/index.js
app/app/static/js/index.js
require('./map.js'); require('./typekit.js'); // require('./detail.js');
JavaScript
0
@@ -43,31 +43,4 @@ ');%0A -// require('./detail.js');%0A
170e780099b33a53315bfb1709adb1248c36d5d9
Event not e.
public/javascripts/ep.js
public/javascripts/ep.js
var EP = { Hotkeys: { bind: function() { var keyHandlers = EP.Hotkeys.setKeyHandlers(); $(document).bind('keydown.EPHotkeys', function(event) { if(e.ctrlKey||e.altKey||e.metaKey) { return true; } // don't block modified keys (e.g. cmd-l) if ( !$(event...
JavaScript
0.999218
@@ -197,16 +197,20 @@ if(e +vent .ctrlKey %7C%7Ce. @@ -209,21 +209,33 @@ lKey + %7C%7C -e + event .altKey + %7C%7C -e + event .met
182ee1b8f421c81a3a06855b5297d9615f6db6d3
Change the default storage to be local.
TILES_VERSION_ID_/shared/js/storage.js
TILES_VERSION_ID_/shared/js/storage.js
var storage = chrome.storage.sync; const DEFAULT_STORAGE = chrome.storage.sync; const TEST_STORAGE = chrome.storage.local; /** * Reset the storage to the default storage for normal use. */ function resetStorageToDefault() { storage = DEFAULT_STORAGE; } /** * Get the version of the storage. * @param {Function} c...
JavaScript
0.000001
@@ -59,36 +59,37 @@ chrome.storage. -sync +local ;%0Aconst TEST_STO
0b295ebd926e9f9ad6faf5320d7cfb5c93977ebd
Check for deptnum, not dept, in statisticsConcentration
mockups/concentration/statisticsConcentration.js
mockups/concentration/statisticsConcentration.js
import * as _ from 'lodash' import hasDepartment from 'app/helpers/hasDepartment' import {checkCoursesFor} from 'app/helpers/courses' function foundationCourses(courses) { /* Foundation courses: - one of Computer Science 121 or 125; - Computer Science 241, 251, and 252; - one of Computer Science 231 or Math 23...
JavaScript
0.000001
@@ -1153,32 +1153,35 @@ r(courses, %7Bdept +num :'STAT 272'%7D)%0A%09l @@ -1224,32 +1224,35 @@ r(courses, %7Bdept +num :'STAT 316'%7D)%0A%0A%09 @@ -1810,16 +1810,19 @@ s, %7Bdept +num :'CSCI 1 @@ -1889,16 +1889,19 @@ s, %7Bdept +num :'ECON 3 @@ -1968,16 +1968,19 @@ s, %7Bdept +num :'MATH 2 @@ -2048,16 +2048,1...
bc08f164fbd6e8945c9ef4e12289f055a6ddc99d
use date plugin new duration functionality
plugins/reddit.js
plugins/reddit.js
var request = require("request"); var url = require("url"); function RedditPlugin(bot) { var self = this; self.name = "reddit"; self.help = "Reddit plugin"; self.depend = ["cmd", "ignore", "date"]; self.urlRe = /\b(https?|ftp):\/\/[^\s\/$.?#].[^\s]*\.[^\s]*\b/i; self.redditRe = /reddit\.com\/(r\/[^\s\/]+\/)?com...
JavaScript
0.000001
@@ -1066,21 +1066,17 @@ Dur( -Date.now() - +new Date( post @@ -1094,16 +1094,17 @@ c * 1000 +) , null,
383357d2937ae12bf25aeb4dcad00a2439c76d3d
return error text and failed query instead of promise in search backend
redef/patron-client/src/backend/routes/search.js
redef/patron-client/src/backend/routes/search.js
const fetch = require('isomorphic-fetch') const searchBuilder = require('../utils/searchBuilder') module.exports = (app) => { app.get('/q', (request, response) => { const queryString = request.originalUrl.substr(request.originalUrl.indexOf('?') + 1) fetch('http://elasticsearch:9200/search/publication/_search...
JavaScript
0
@@ -470,12 +470,12 @@ res. -text +json ()%0A @@ -502,85 +502,107 @@ re -sponse.status(res.status).send(res.statusText)%0A throw Error(res.json() +turn res.text().then(error =%3E %7B return Promise.reject(%7Bmessage: error, queryString: queryString%7D) %7D )%0A @@ -704,21 +704,72 @@ ole.log( -error +%60...
ada755e2077db66ab396604e896deb4c07c2583a
Update device capability checks to expect tandem firmwareVersion in decimal string format
src/utils/device.js
src/utils/device.js
import _ from 'lodash'; import { AUTOMATED_BASAL_DEVICE_MODELS, pumpVocabulary, } from './constants'; import { deviceName } from './settings/data'; /** * Get the latest upload datum * @param {Array} uploadData Array of Tidepool upload data * @returns {Object} The latest upload datum */ export function getLat...
JavaScript
0
@@ -1350,33 +1350,33 @@ rmwareVersion, 1 -6 +0 ) %3E= 105900);%0A%7D%0A @@ -1732,33 +1732,33 @@ rmwareVersion, 1 -6 +0 ) %3E= 105900;%0A%7D%0A%0A
e0dd2b4878c308041829b68cb3513cc448aaf991
Fix indentation
library/debug.timeline.displayControls.js
library/debug.timeline.displayControls.js
/* 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://mozilla.org/MPL/2.0/. */ ;(function($, document) { var origTimeline = TA.Timeline; TA.Timeline = function() { /** ...
JavaScript
0.017244
@@ -1347,16 +1347,45 @@ %5D +,%0A that = this %0A @@ -1391,16 +1391,17 @@ ;%0A +%0A @@ -1410,53 +1410,43 @@ $e -.append(btns);%0A%0A var that = this;%0A +%0A .append(btns)%0A @@ -1453,18 +1453,16 @@ -$e .on('cli @@ -1506,2...
e157f102d544bce4248ba8bde30c2e25b54ac745
Fix merge error
app/components/pipeline.js
app/components/pipeline.js
const React = require('react'); const ReactDOM = require('react-dom'); const classnames = require('classnames'); const types = React.PropTypes; class Pipeline extends React.Component { static propTypes = { pipelineName: types.string.isRequired, pipelineStatus: types.string.isRequired, currentlyRunning: t...
JavaScript
0
@@ -460,16 +460,17 @@ nning != += this.pr @@ -894,16 +894,32 @@ ineName%7D + update=%7Bupdate%7D /%3E%0A @@ -1548,17 +1548,17 @@ ssnames( -%22 +' blinking @@ -1567,12 +1567,12 @@ ight -%22, %22 +', ' ring @@ -1581,17 +1581,17 @@ ontainer -%22 +' , pipeli @@ -1626,10 +1626,10 @@ s = -%22%22 +'' ;%0A ...
2c4a575ac7b852e6bac978bbe2802333cd39d115
remove jquery ui loading from loader.js
vizard/public/js/loader.js
vizard/public/js/loader.js
(function() { function Parameters(search) { var pairs = search.slice(1).split('&'); var param, value; if (search === '') { return this; } for (var i = 0; i < pairs.length; i++) { param = pairs[i].split('=', 1); param = decodeURIComponent(param); value = pairs[i].split('=').slice(1).join('='); th...
JavaScript
0.000001
@@ -1052,107 +1052,8 @@ );%0A%0A -%09%09require(protocol + '//ajax.googleapis.com' +%0A%09%09%09'/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js');%0A%0A %09%09re
b600f04f7214848c1b336c245168db705641986f
simplify code
src/containers/discover/free-book-list/FreeBookList.js
src/containers/discover/free-book-list/FreeBookList.js
/* eslint-disable no-undef */ import React, { Component } from 'react'; import { ScrollView, Text, View, ActivityIndicator, FlatList, TouchableHighlight } from 'react-native'; import { ListItem } from 'react-native-elements'; import * as shortid from 'shortid'; import Helper from '../../../utils/helper'; import AsyncSt...
JavaScript
0.000001
@@ -1477,23 +1477,8 @@ View -%3E%0A %3CView con @@ -1525,14 +1525,10 @@ - %7B%0A +%7B%0A @@ -1575,18 +1575,14 @@ - - %3CView%0A - @@ -1620,38 +1620,34 @@ ()%7D%0A - %3E%0A +%3E%0A %3CV @@ -1759,18 +1759,16 @@ - %3CFlatLis @@ -1785,18 ...
3aec803010594448f843d17d777d0fed36f0c65d
Fix Coveralls task
Gruntfile.js
Gruntfile.js
var fs = require('fs'); var cp = require('child_process'); var rimraf = require('rimraf'); var LINT = true; var COVERALLS = true; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { options: { // see http://www.jshint.com/docs/options/ node...
JavaScript
0.000089
@@ -3217,19 +3217,16 @@ cwd: './ -lib ' %7D, fun
c8b5576333129a69519843c1a7787215094d8ee4
update dist karma task
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { banner: '(function(){\n\'use strict\';\n', footer: '})();' }, build: { src: ['src/su/datepicker/**/*.js', 'build/templates...
JavaScript
0.000002
@@ -1341,32 +1341,57 @@ ec.js'%0A %5D +,%0A singleRun: true %0A %7D%0A %7D,%0A
4fe74efab2795a7273ca05cf75c8df3f8aa503cb
send error with suppress headers if user is not found when updating message
config/lib/middleware/messages/update/user-get.js
config/lib/middleware/messages/update/user-get.js
'use strict'; module.exports = { shouldSendErrorIfNotFound: false, };
JavaScript
0
@@ -60,12 +60,11 @@ nd: -fals +tru e,%0A%7D
d82d76a20dd2a587ffa6eb5d95abf7f628669ed7
Simplify filters
www/js/filter.js
www/js/filter.js
angular.module('next.filters', []) .filter('favouriteFilter', function() { return function(input) { var toReturn = []; for (var i = 0; i < input.length; i++) { if (input[i].Preference > 0) { toReturn.push(input[i]); } } return toRe...
JavaScript
0.000004
@@ -93,32 +93,24 @@ ion(input) %7B - %0A var @@ -110,72 +110,53 @@ -var toReturn = %5B%5D;%0A for (var i = 0; i %3C input.length; i++ +return (input %7C%7C %5B%5D).filter(function (station ) %7B%0A @@ -163,36 +163,38 @@ -if (input%5Bi%5D +return station .Preference @@ -200...
8baeffe4eff6372b830c6acec778f049a79eefc2
Add some reconnection logic to the socket handler.
app/client/socket-handler.js
app/client/socket-handler.js
(function(){ 'use strict'; var GameStatus = require('../common/game-status'); var SocketHandler = function(socket, nickname) { this.socket = socket; this.nickname = null; this.connected = false; this.game = null; this.socket.emit('hello', nickname); this.socket.on('helloDone', (function() { this.con...
JavaScript
0
@@ -218,16 +218,49 @@ null;%0A%0A + if (this.socket.connected) %7B%0A this.s @@ -282,32 +282,84 @@ lo', nickname);%0A + %7D%0A else %7B%0A this.attachConnect(nickname);%0A %7D%0A%0A this.socket.on @@ -368,25 +368,24 @@ helloDone', -( function() %7B @@ -437,33 +437,387 @@ = nickname;%0A %7D -) +....
280c8beee170b83bee9ade4f79dccfd98d2d4113
return to get errors into catch
test/e6-security-component-method.js
test/e6-security-component-method.js
/** * Created by nomilous on 2016/07/31. */ var path = require('path'); var filename = path.basename(__filename); var should = require('chai').should(); var Happner = require('../'); var shortid = require('shortid'); var fs = require('fs'); var Promise = require('bluebird'); var testId = shortid.generate(); var dbF...
JavaScript
0.000002
@@ -2023,16 +2023,23 @@ %0A%0A +return Promise.
c8a3e8c7353aa8a63b2a8f750737b991d0a280f9
fix js buffer index bug
desktop/app/src/renderer/audio/out-frame-buffer.js
desktop/app/src/renderer/audio/out-frame-buffer.js
const minimumBufferFrame = 3; export default class OutFrameBuffer { constructor(sampleRate = 44100, frameRate = 25) { this.sampleRate = sampleRate; this.frameRate = frameRate; this.frameList = []; this.next = 0; this.onFrameCallback = null; } reset() { this.next = 0; delete this.fr...
JavaScript
0.000001
@@ -852,16 +852,59 @@ rame');%0A + this.next = this.frameList%5B0%5D.index;%0A //
4137df73168a2bfb1d26688b0d679e5b76e9e4bb
Correct header of repo settings page
toxicbuild/ui/static/toxicbuild/js/pages.js
toxicbuild/ui/static/toxicbuild/js/pages.js
// Copyright 2018 Juca Crispim <juca@poraodojuca.net> // This file is part of toxicbuild. // toxicbuild is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your optio...
JavaScript
0
@@ -3950,16 +3950,259 @@ l;%0A %7D%0A%0A + _getContainerInner()%7B%0A this._container = jQuery('.repo-details-main-container');%0A this._inner = jQuery('div', this._container).not('.wait-toxic-spinner').not(%0A '.advanced-help-container').not('.add-repo-message-container');%0A %7D%0A%0A%0A _toggl
cbb04ac8cc9324daf073ddd32a980f52cad15d97
Fix failed test for changed error message
cordova-lib/spec-cordova/valid-identifiers-spec.js
cordova-lib/spec-cordova/valid-identifiers-spec.js
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
JavaScript
0.000001
@@ -2545,34 +2545,30 @@ sage).toBe(%22 -Identifier +App id contains a @@ -2572,32 +2572,62 @@ a reserved word +, or is not a valid identifier .%22);%0A%09%09%7D)%0A%09%09.fin @@ -2824,26 +2824,22 @@ ).toBe(%22 -Identifier +App id contain @@ -2855,16 +2855,46 @@ ved word +, or is not a valid identifier .%22)...
d615288bc452af471860a5598b17350f3ce9e2ed
use the CSS loader plugin included in CTE for modules loaded in its context
resources/resources/editor/cte-require-js-cfg.js
resources/resources/editor/cte-require-js-cfg.js
/*! * Copyright 2002 - 2017 Webdetails, a Pentaho company. All rights reserved. * * This software was developed by Webdetails and is provided under the terms * of the Mozilla Public License, Version 2.0, or any later version. You may not use * this file except in compliance with the license. If you need a copy of ...
JavaScript
0
@@ -1765,17 +1765,19 @@ fg.map%5B' -* +cte '%5D%5B'css'
569634ac31023ec1469e5fcbd7e8087a3b129b62
Remove unused require
postcss.config.js
postcss.config.js
const fs = require("fs"); const settings = ctx => ({ parser: "postcss-scss", map: ctx.options.map, plugins: { "postcss-mesh": {} } }); module.exports = settings;
JavaScript
0
@@ -1,31 +1,4 @@ -const fs = require(%22fs%22);%0A%0A cons
43dfbfa3b99bf4993614831759324a1d713b20c1
fix .addAppIdName() test
src/javascript/app/common/__tests__/get_app_details.js
src/javascript/app/common/__tests__/get_app_details.js
const expect = require('chai').expect; const GetAppDetails = require('../get_app_details'); const oauth_apps_response = { echo_req: { oauth_apps: 1, passthrough: {}, req_id: 12 }, msg_type: 'oauth_apps', oauth_apps: [{ app_id: '1261', app_markup_percentage: '0', last_used: '2017-06-23 02:05:46', name: 'Binary B...
JavaScript
0.000007
@@ -91,16 +91,75 @@ tails'); +%0Aconst getAppId = require('../../../config').getAppId; %0A%0Aconst @@ -3254,17 +3254,26 @@ pIdName( -1 +getAppId() , 'Binar
dadefde48376798caf71c17f23dfd55947d84d8d
Check error
projects/ap2017/assets/script.js
projects/ap2017/assets/script.js
/***************************************************************** * Load data *****************************************************************/ var player_data = {}; $(document).ready(function(){ fill_table_players(); fill_table_teams(); }); function fill_table_teams() { $.ajax("assets/read_team_table.p...
JavaScript
0.000001
@@ -1713,13 +1713,8 @@ jax( -%7Burl: %22ass @@ -1741,16 +1741,17 @@ e.php%22, +%7B async:fa @@ -1757,34 +1757,66 @@ alse -, success:function(data) %7B +%7D)%0A .done(function(data) %7B%0A alert(data); %0A
3f8cf808189f06ecfc1595c11fdd7ac85bfc1dcd
Use German time zone for parsing ard times
downloader/ard-downloader.js
downloader/ard-downloader.js
const request = require('request'); const moment = require('moment-timezone'); const xml2js = require('xml2js'); const url = 'http://programm.ard.de/TV/Programm/Load/NavJetztImTV35'; const parser = new xml2js.Parser({ strict: false }); const channelIdMap = { 'Das Erste': ['das_erste'], 'ONE': ['one'], 'tagesschau2...
JavaScript
0.000013
@@ -1267,24 +1267,27 @@ ime = moment +.tz (times%5B0%5D, ' @@ -1292,16 +1292,33 @@ 'HH:mm' +, 'Europe/Berlin' );%0A%09let @@ -1333,16 +1333,19 @@ = moment +.tz (times%5B1 @@ -1354,16 +1354,33 @@ 'HH:mm' +, 'Europe/Berlin' );%0A%0A%09if
76c71d7789bdec5634c5382e76657c9271ba5dc0
support drawing multiple polygons
service_areas/static/js/draw.js
service_areas/static/js/draw.js
(function() { serviceAreas.draw = { pol: null, // we start with polygon as null points: [], // points that make the polygon isdrawing: false, // we start with isdrawing control as false init: function() { $('button[name="draw-area"]').click(function() { $(this).hide(); $('button...
JavaScript
0
@@ -38,22 +38,21 @@ %0A pol +s : -null +%5B%5D , // we @@ -73,16 +73,40 @@ ygon +s as + empty%0A currentPol: null +, %0A @@ -150,16 +150,35 @@ polygon%0A + allPoints: %5B%5D,%0A isdr @@ -1111,17 +1111,24 @@ as.draw. -p +currentP ol) %7B%0A @@ -1151,17 +1151,24 @@ as.draw. -p +currentP ...
91700e74dbea701abf48c7245d5eee862f3be44c
make onClose onAfterClose onDestroy updatable (#1974)
src/utils/params.js
src/utils/params.js
import { warn, warnAboutDepreation } from '../utils/utils.js' export const defaultParams = { title: '', titleText: '', text: '', html: '', footer: '', icon: undefined, iconHtml: undefined, toast: false, animation: true, showClass: { popup: 'swal2-show', backdrop: 'swal2-backdrop-show', ...
JavaScript
0
@@ -2363,16 +2363,62 @@ essStep' +,%0A 'onClose',%0A 'onAfterClose',%0A 'onDestroy' %0A%5D%0A%0Aexpo
d7487a6b95ad93afe61d71f717ce4ad1c633e886
fix missed callback
test/hyperbahn-client/unadvertise.js
test/hyperbahn-client/unadvertise.js
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0
@@ -1232,16 +1232,48 @@ unted'); +%0Avar timers = require('timers'); %0A%0Avar Hy @@ -1379,46 +1379,8 @@ n'); -%0A// var timers = TimeMock(Date.now()); %0A%0Amo @@ -5312,17 +5312,17 @@ count = -0 +1 ;%0A fo @@ -5479,24 +5479,62 @@ %7D%0A %7D); +%0A timers.setImmediate(onConnClose); %0A%0A functi...
63bca730b7d83fd27b02239fc4bf6ae7f9fe0db9
remove feedback footer link
app/containers/App/index.js
app/containers/App/index.js
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; function App(props) { return ( <div> { props.children } <footer> <ul> <li><a t...
JavaScript
0
@@ -299,79 +299,8 @@ ul%3E%0A - %3Cli%3E%3Ca target=%22_blank%22 href=%22/#/feedback/%22%3EFeedback%3C/a%3E%3C/li%3E%0A
174a257f8a7c2f32f0eb699f78ef3f96c20c0e6a
Fix onComplete handler typo
rooster/jquery.rooster.js
rooster/jquery.rooster.js
(function ( $ ) { $.fn.rooster = function(action, options) { /**************************************** * Jquery Rooster! * A simple countdown timer. * * Currently does not accept date time formats * *****************************************/ ...
JavaScript
0.000015
@@ -1571,16 +1571,18 @@ nction') + %7B %0A
451e1a9e579ff215dac2b4aef672c0c2487e9c5f
Add and fix some tests
test/karma/drawer/drops.js
test/karma/drawer/drops.js
import eventDrops from '../../../lib/eventDrops'; describe('Drops drawer', () => { let wrapper; beforeEach(() => { wrapper = document.createElement('div'); wrapper.style.width = '100px'; document.body.appendChild(wrapper); }); it('should add click handler if specified in config...
JavaScript
0.000001
@@ -2350,10 +2350,1548 @@ oBe( -50 +-60);%0A %7D);%0A%0A describe('.drop-line', () =%3E %7B%0A it('should set correct width based on given scale', () =%3E %7B%0A const data = %5B%7B name: 'foo', data: %5Bnew Date('2014-04-03')%5D %7D%5D;%0A%0A const chart = eventDrops()%0A ...
98fc5a2334b031f2db812c4e6204ea999233627d
Make sure to persist userSettings state
client/src/index.js
client/src/index.js
import moment from 'moment'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer as HotAppContainer } from 'react-hot-loader'; import { applyMiddleware, createStore, compose } from 'redux'; import createSagaMiddleware from 'redux-saga'; import IO from 'socket.io-client'; import createSock...
JavaScript
0
@@ -880,20 +880,20 @@ : %5B' -notification +userSettings '%5D,%0A
a84e97579e356109622508db003496421a0dc5ba
Return a volume collection from volume store
troposphere/static/js/stores/VolumeStore.js
troposphere/static/js/stores/VolumeStore.js
define(function (require) { 'use strict'; var _ = require('underscore'), Dispatcher = require('dispatchers/Dispatcher'), BaseStore = require('stores/BaseStore'), VolumeCollection = require('collections/VolumeCollection'), VolumeConstants = require('constants/VolumeConstants'); var VolumeStore = ...
JavaScript
0.999989
@@ -689,40 +689,8 @@ var -attachedVolumes = %5B%5D,%0A uuid @@ -716,24 +716,46 @@ id');%0A%0A + var attachedVolumes = this.models @@ -747,36 +747,38 @@ s = this.models. -each +filter (function (volum @@ -774,32 +774,34 @@ tion (volume) %7B%0A + var atta @@ -836,36 +836,41 @@ data');%...
87f4105f0e00070531d82bcfc4475c5131295671
Remove unnecessary if statement
reports/design/tenders.js
reports/design/tenders.js
function(doc) { //tender checks var startDate = (doc.enquiryPeriod || {}).startDate; if ( (!startDate) || (startDate < "2016-04-01") ) {return;} if (doc.procurementMethod !== "open") {return;} if ((doc.mode || "") === "test") { return;} //global tender values var kind = doc.procuringEntity...
JavaScript
0.999993
@@ -5174,153 +5174,8 @@ %7D%0A - %7D else if (tender.status === 'unsuccessful') %7B%0A this.lot_date = this.tender_handler.tender_unsuccessful_date;%0A
fea67780fbc5c52aa10a4c139eb27380c2389b9f
Remove unused updating flag
dom/adapter/Node.js
dom/adapter/Node.js
/** MIT License (c) copyright B Cavalier & J Hann */ (function (define) { define(function (require) { "use strict"; var guess, domEvents, watchNode; guess = require('../guess'); domEvents = require('../events'); watchNode = domEvents.watchNode; /** * Creates a cola adapter for interacting with dom nodes. B...
JavaScript
0.000001
@@ -604,90 +604,8 @@ %7D;%0A%0A -%09%09// flag to avoid circles when updating from an event%0A%09%09this._updating = false;%0A%0A %09%09// @@ -716,17 +716,16 @@ ents();%0A -%0A %09%7D%0A%0A%09Nod
260c31bb7fc5c0f59bcf67b5a86c222a52fd67a9
remove unnecessary grunt config
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! Ease In JS v<%= pkg.version %> | Copyright 2013 Lauren Sperber https://github.com/lauren/ease-in/blob/master/LICENSE | <%= grunt.template...
JavaScript
0.000002
@@ -592,277 +592,8 @@ : %7B%0A - development: %7B%0A options: %7B%0A compress: true%0A %7D,%0A files: %7B%0A %22build/%3C%25= pkg.name %25%3E-%3C%25= pkg.version %25%3E.css%22: %22src/%3C%25= pkg.name %25%3E.less%22,%0A %22docs/build/%3C%25= pkg.name %25%3E.css%22: ...
c91532994afb9221771d2194c43159cefb99ab56
Update desc for latest too
downloads/updates/version.js
downloads/updates/version.js
{ "stable": { "CSIDE_version": "1.1.3", "nw_version": "0.21.4", "desc": "v1.1.3 - Provides a criticial bug fix related to persistent sessions", "target": "https://choicescriptide.github.io/downloads/updates/targets/113.zip" }, "latest": { "CSIDE_version": "1.2.1", "nw_version": "0.21.4", "desc"...
JavaScript
0
@@ -329,67 +329,70 @@ 1 - -Provides a criticial bug fix related to persistent sessions +(1.2.0) Feature release: Custom themes, code folding and more. %22,%0A%09
8ab7df5df011af0fbcfb6f037e679a8f398b6f69
Write `new Date();` for clearer syntax
datetimepicker.js
datetimepicker.js
angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bootstrap.datepicker", "ui.bootstrap.timepicker"] ) .directive('datepickerPopup', function (){ return { restrict: 'EAC', require: 'ngModel', link: function(scope, element, attr, controller) { //remove the default ...
JavaScript
0.999686
@@ -6318,16 +6318,18 @@ new Date +() ;%0A
749978c98f5f7293f97df68da9162c92df977c64
Add learning test for sinon sandbox.
test/learning/SinonTest.js
test/learning/SinonTest.js
define( [ 'chai', 'sinon', 'jquery' ], function(chai, undefined, undefined) { var assert = chai.assert; describe('sinon', function() { it('should be an object', function() { assert.isObject(sinon, 'Check sinon object.'); }); describe('fakeServer', function() ...
JavaScript
0
@@ -116,16 +116,402 @@ ssert;%0A%0A + // Assertions%0A%0A var assertCleanXHR = function() %7B%0A assert.isNotFunction(%0A XMLHttpRequest.restore,%0A 'XMLHttpRequest lacks method %60restore%60.'%0A );%0A %7D;%0A%0A var assertModifiedXHR = function() %7B%0A assert.t...
40c43cb01c67f9767419f61b5fc6c8478fff99b0
Add jumping drawing for when skier is jumping.
app/lib/skier.js
app/lib/skier.js
function Skier(options) { this.x = options.canvas.width/2; this.y = 150; this.width = 17; this.height = 35; this.maxWidth = options.canvas.width; this.context = options.context; this.lives = 5; this.jumping = false; this.crashed = false; this.distance = 0; this.turningLeft = false; this.turningR...
JavaScript
0.000001
@@ -857,32 +857,117 @@ 7, 34, 17, 34);%0A + %7D else if (skier.jumping) %7B%0A drawSkier(skier, skierImg, 84, 0, 32, 34, 32, 34);%0A %7D else %7B%0A d
573f981555b90ff31a752ae3c757b6b5a2713504
Fix share command
repositories/messenger.js
repositories/messenger.js
const hlpr = require('../helpers'); const rp = require('request-promise-native'); exports.SendImage = (recipientId, imageUrl) => { const messageData = { recipient: { id: recipientId }, message: { attachment: { type: "image", payload: { url: imageUrl } }...
JavaScript
0.000003
@@ -1064,48 +1064,8 @@ :%5B%7B%0A - title:%22Send to friends!%22,%0A
46f773c3a5df7f1f40691bbd2dd4817b1fd760da
Debug js
public/js/application.js
public/js/application.js
$(document).ready(function(){ /** * INIT PLUGINS */ // Facebox $('a[rel*=modal]').facebox(); // Wysiwyg $(".wysiwyg").wysiwyg(); /** * NAVIGATION */ // Animation $("#main-nav li .nav-top-item").hover( function () { $(this).stop().animate({ paddingRight: ...
JavaScript
0.000002
@@ -614,43 +614,446 @@ -$(this).next().slideToggle(%22normal%22 +//$(this).parent().find('a.nav-top-item').removeClass('current').removeClass('open').addClass('close');%0D%0A $(this).next().slideToggle(%22normal%22, function() %7B%0D%0A $link = $(this).prev();%0D%0A $link.removeClass('current')...
1b653ba104f5a08ad8419a348c5aaaeae6013837
simplify passport local login
app/config/passport/local.js
app/config/passport/local.js
import UserModel from '../../models/user'; import { Strategy as LocalStrategy } from 'passport-local'; function authenticate(username, password, next) { UserModel.findOne({ username }, (err, user) => { if (err) { return next(err); } if (!user) { return next(null, false, { message: '...
JavaScript
0.00083
@@ -4,21 +4,17 @@ ort User -Model +s from '. @@ -93,17 +93,16 @@ ocal';%0A%0A -%0A function @@ -153,13 +153,14 @@ User -Model +s%0A .fin @@ -180,73 +180,32 @@ me %7D -, (err, user) =%3E %7B%0A if (err) %7B%0A return next(err);%0A %7D%0A%0A +)%0A .then(user =%3E %7B%0A @@ -219,24 +219,2...
7331649704aa32b172c19b4a895ad632a0e8901f
split out ajax and normal download. added index
app/controllers/download.js
app/controllers/download.js
var mongoose = require('mongoose'), http = require('http'), request = require('request'), Download = mongoose.model('Download'), File = mongoose.model('File'), slug_service = require('../services/slug_service'); exports.download = function(req, res) { var slug = req.params.slug; Download.fi...
JavaScript
0.000062
@@ -376,98 +376,234 @@ -console.log(download.download_date);%0A if (download.uses_remaining !== 0) %7B%0A +if (req.xhr) %7B%0A _ajaxDownload(req, res, download, err);%0A %7D else %7B%0A _download(req, res, download, err);%0A %7D%0A %0A %7D);%0A%7D;%0A%0...
c459cde7272e66e46882d4b34b5356fecfd206cf
fix new lint rules about func names
generators/app/templates/conf/karma-files.conf.js
generators/app/templates/conf/karma-files.conf.js
const conf = require('./gulp.conf'); const wiredep = require('wiredep'); module.exports = function listFiles() { const wiredepOptions = Object.assign({}, conf.wiredep, { <% if (framework === 'react') { -%> overrides: { react: {main: ['react-with-addons.js', 'react-dom.js']} }, <% } -%> dependencies...
JavaScript
0.000041
@@ -97,17 +97,8 @@ ion -listFiles () %7B
8849c22714f50c43273b2b7c69974bdbd1270ee8
Add more target plaforms including a couple mobile ones
Gruntfile.js
Gruntfile.js
/*global module, process*/ "use strict"; module.exports = function(grunt) { var browsers = [{ browserName: "firefox", version: "19", platform: "XP" }, { browserName: "chrome", platform: "XP" }, { browserName: "chrome", platform: "linux" }, { ...
JavaScript
0
@@ -91,17 +91,16 @@ sers = %5B -%7B %0A @@ -92,32 +92,119 @@ ers = %5B%0A +%7Bplatform: %22linux%22, browserName: %22chrome%22, version: %2234%22%7D,%0A %7Bplatform: %22linux%22, browserName: %22fi @@ -210,24 +210,16 @@ irefox%22, -%0A version @@ -225,11 +225,12 @@ n: %22 -1 +2 9%...
5f96f6b7eee892fe878684532a21789680e384ea
Update config.default.js
config.default.js
config.default.js
/** * config */ var path = require('path'); exports.config = { debug: true, name: 'Node.js Taiwan', description: 'nodeJS 台灣社群,由一群熱心開發者聚集而成,主力在於蒐集及建立nodeJS 相關中文資訊,提供最佳的學習管道,讓更多人體會javascript 的好處。 nodeJS Taiwan group. We are a group of people who love nodejs. There are collect nodejs tutorial in Chinese about......
JavaScript
0
@@ -583,16 +583,46 @@ '%E9%97%9C%E6%96%BC' %5D,%0A + %5B '/announcement', '%E5%85%AC%E5%91%8A' %5D%0A %5D,%0A s
6267b0043ef241e5d5aa29cc43f83c62cd034b9a
change button color
public/javascripts/indexAjaxRequest.js
public/javascripts/indexAjaxRequest.js
'use strict'; (function() { var xhr = new XMLHttpRequest(); xhr.open('GET', '/api/posts'); xhr.send(null); xhr.onreadystatechange = function() { var DONE = 4; // readyState 4 means the request is done. var OK = 200; // status 200 is a successful return. var post, posts, i; if (xhr.readyState...
JavaScript
0.000002
@@ -1574,12 +1574,11 @@ ect -blue +red %22;%0A%0A
fb8e0292ce113a2e7107a8360c5677be33655634
Use Travis build Number rather than ID
test/integration/selenium-helpers.js
test/integration/selenium-helpers.js
const webdriver = require('selenium-webdriver'); const bindAll = require('lodash.bindall'); const headless = process.env.SMOKE_HEADLESS || false; const remote = process.env.SMOKE_REMOTE || false; const travis = process.env.SMOKE_TRAVIS || false; const buildID = process.env.TRAVIS_BUILD_ID; const {SAUCE_USERNAME, SAUCE...
JavaScript
0.000001
@@ -281,18 +281,22 @@ S_BUILD_ -ID +NUMBER ;%0Aconst
8ac1d48e8c54d4c90f78d3d45fa26ac100090ef6
Update main.js
server/main.js
server/main.js
import { Meteor } from 'meteor/meteor'; import { HTTP } from 'meteor/http'; var config = require("./config.js"); var collection = require("../collection/collection.js"); var Info = collection.info; Meteor.startup(() => { // code to run on server at startup Router.route('/', function () { var req = thi...
JavaScript
0.000001
@@ -1618,16 +1618,40 @@ %22url%22 :%22 +https://wx.borelset.com/ %22%7D,%7B%22typ @@ -1685,16 +1685,40 @@ url%22 : %22 +https://wx.borelset.com/ %22%7D%5D%7D%5D%7D';
c1bf6f63b247437ae4243d98040d4a0f78ff4b70
Add a watch grunt task to use karma's autoWatch
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; var initConfig; // Loading external tasks grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-karma'); // Project configuration. initConfig = { bower: 'bower_components', pkg: grunt....
JavaScript
0.000238
@@ -752,24 +752,68 @@ rma.conf.js' +,%0A browsers: %5B'Firefox', 'PhantomJS'%5D %0A %7D,%0A @@ -851,52 +851,56 @@ true -, %0A - browsers: %5B'Firefox', 'PhantomJS'%5D +%7D,%0A watch: %7B%0A autoWatch: true %0A @@ -949,52 +949,8 @@ true -,%0A browsers: %5B'Firefox', 'Phan...
05229707ec5c381b3ddd3a7998e6f5e0c7b9631c
Fix service worker warning
src/service-worker.js
src/service-worker.js
import WorkboxSW from 'workbox-sw'; const workboxSW = new WorkboxSW(); // This array will be filled in with our files by the Workbox plugin workboxSW.precache([]); // Cache our fonts! workboxSW.router.registerRoute('https://fonts.googleapis.com/(.*)', workboxSW.strategies.cacheFirst({ cacheName: 'googleapis', ...
JavaScript
0.000045
@@ -211,16 +211,27 @@ erRoute( +new RegExp( 'https:/ @@ -256,13 +256,12 @@ com/ -( .* -) ' +) ,%0A
a690485c518b91c3433caaf348f42af5016dcf59
Refactor run_edit.js
app/javascript/run_edit.js
app/javascript/run_edit.js
window.update_category_selector = function(game_shortname) { select = document.getElementById(gon.run.id + '_category') document.getElementById('game_category_submit').disabled = true for(option of select.children) { option.remove() } option = document.createElement('option') option.text = 'Loading...' ...
JavaScript
0.000001
@@ -1,74 +1,85 @@ -window.update_category_selector = function(game_shortname) %7B%0A s +document.addEventListener('turbolinks:load', function() %7B%0A const gameS elect + = do @@ -104,35 +104,119 @@ yId( -gon.run.id + '_category')%0A +'game-selector')%0A const categorySelect = document.getElementById('categ...
21e4f0fe1eff35c88983b777d25261cf874f9c7d
set publicPath so that fonts load correctly
Gruntfile.js
Gruntfile.js
"use strict"; var LIVERELOAD_PORT = 35729; var lrSnippet = require("connect-livereload")({ port: LIVERELOAD_PORT }); var mountFolder = function (connect, dir) { return connect.static(require("path").resolve(dir)); }; var webpack = require("webpack"); var fs = require("fs"); module.exports = function (grunt) { ...
JavaScript
0
@@ -2672,32 +2672,112 @@ ame: %22%5Bname%5D.js%22 +,%0A publicPath: %22https://s3.amazonaws.com/www.curatescience.org/assets/%22 %0A %7D,%0A
c08519331cdfd77da289c5b0b8a1fac34611d87d
set energy system nodes invisible when fully faded out, helps tab navigation, see #45
js/energy-systems/view/EFACBaseNode.js
js/energy-systems/view/EFACBaseNode.js
// Copyright 2016-2018, University of Colorado Boulder /** * Base module for model elements whose position and opacity can change. * * @author John Blanco * @author Andrew Adare */ define( function( require ) { 'use strict'; var energyFormsAndChanges = require( 'ENERGY_FORMS_AND_CHANGES/energyFormsAndChanges...
JavaScript
0
@@ -925,24 +925,125 @@ ;%0A %7D );%0A%0A + // TODO: The model shouldn't have opacity, it should have something like a selection proportion.%0A /**%0A @@ -1076,16 +1076,17 @@ ity base +d on mode @@ -1242,24 +1242,193 @@ opacity );%0A + if ( opacity === 0 && self.visible ) %7B%0A self.vis...
ba5b8f54573d741135cb67570848eddcca77392f
Update rockpaperscissors.js
app/js/rockpaperscissors.js
app/js/rockpaperscissors.js
//////////////////////////////////////////////// /* Provided Code - Please Don't Edit */ //////////////////////////////////////////////// 'use strict'; function getInput() { console.log("Please choose either 'rock', 'paper', or 'scissors'.") return prompt(); } function randomPlay() { var randomNumber =...
JavaScript
0
@@ -1411,16 +1411,23 @@ result +winner = 'compu @@ -1622,16 +1622,23 @@ result +winner = 'playe @@ -1701,16 +1701,23 @@ result +winner = 'tie';
1c1f4889a09066f117ba432e9d0e5d10b39debec
Update script.js
preview/script.js
preview/script.js
var bounds = L.latLngBounds([SETTINGS.extent[1], SETTINGS.extent[0]], [SETTINGS.extent[3], SETTINGS.extent[2]]); var map = L.map('map', {maxBounds: bounds}); var options = { attribution: '&copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors' }; var baselayers = {};...
JavaScript
0
@@ -288,16 +288,33 @@ ibutors' +,%0A maxZoom: 20 %0A%7D;%0A%0Avar
bc3fb0b3b2bfb8565b9e8f88dd6a61f0a0c0236a
Change Sim constructor's title parameter from string to TReadOnlyProperty<string>, and update main call sites, see https://github.com/phetsims/joist/issues/844
js/energy-forms-and-changes-main.js
js/energy-forms-and-changes-main.js
// Copyright 2014-2022, University of Colorado Boulder /** * Main entry point for the 'Energy Forms and Changes' sim. * * @author John Blanco * @author Martin Veillette (Berea College) * @author Andrew Adare */ import Sim from '../../joist/js/Sim.js'; import simLauncher from '../../joist/js/simLauncher.js'; imp...
JavaScript
0
@@ -589,16 +589,24 @@ leString +Property = energ @@ -664,16 +664,30 @@ %5D.title +StringProperty ;%0A%0A// co @@ -1398,16 +1398,24 @@ leString +Property , %5B%0A
0b2b9d1b48bfc621f1efcdd1223bdad228964fe2
Mark events without dates non-actual
web/src/js/models/event.js
web/src/js/models/event.js
import moment from 'moment'; import locations from '../core/locations'; import {capfirst, range, makeAbsoluteURL} from '../utils'; import Place from './place'; import Date from './date'; import Price from './price'; export default class Event { constructor(data) { this.data = data; } getName() { retu...
JavaScript
0
@@ -1568,24 +1568,69 @@ sActual() %7B%0A + if (this.data.end == null) return false;%0A const ti
454216699c73462482dd010bdc83bb24c5868030
change definition of 'yesterday' in timeago and refactor
app/javascripts/timeago.js
app/javascripts/timeago.js
function format_posted_date() { $$('time.timeago').each(function(c){ var current_date = new Date(), posted_date = new Date(parseInt(c.readAttribute('data-msec'))), posted_date_beginning_of_day = new Date(posted_date), current_date_beginning_of_day = new Date(current_date); posted_date_beg...
JavaScript
0.000166
@@ -173,413 +173,9 @@ '))) -,%0A%09%09 posted_date_beginning_of_day = new Date(posted_date),%0A%09%09 current_date_beginning_of_day = new Date(current_date);%0A%09%09%0A%09%09posted_date_beginning_of_day.setHours(0);%0A%09%09posted_date_beginning_of_day.setMinutes(0);%0A%09%09posted_date_beginning_of_day.setSeco...
adb69353e3001d6b72b277f0c1f2c2571fbbd873
remove use of SequenceBuilder for #382
runtime-js/collections.js
runtime-js/collections.js
function Comprehension(makeNextFunc, $$targs$$, compr) { $init$Comprehension(); if (compr===undefined) {compr = new Comprehension.$$;} Basic(compr); compr.makeNextFunc = makeNextFunc; compr.$$targs$$=$$targs$$; return compr; } Comprehension.$crtmm$={$nm:'Comprehension',$an:function(){return[shar...
JavaScript
0
@@ -818,33 +818,31 @@ -var sb = SequenceBuilder( +return sequential(this, %7BEle @@ -850,23 +850,18 @@ ent$ -S +s equen -ceBuilder +tial :thi @@ -896,56 +896,8 @@ %7D);%0A - sb.appendAll(this);%0A return sb.sequence;%0A %7D,un