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
9018a4c459a8620ad3412f2f5bf69e6c04e3a04f
Update SwitchRGBW.js
src/widgets/SwitchRGBW.js
src/widgets/SwitchRGBW.js
import React, { Component } from 'react'; import JSONClientSingleton from '../util/JSONClientSingleton' import './SwitchRGBW.css'; import './SwitchOnOff.css'; class SwitchBlinds extends Component { constructor(props) { super(props); this.state = { color: '' } this.json = new JSONClientSinglet...
JavaScript
0
@@ -166,22 +166,20 @@ s Switch -Blinds +RGBW extends @@ -1386,11 +1386,9 @@ itch -Blinds +RGBW %0A
9e7e9c8ac39013c81764367f1ff4c9e212f18630
add ie9 requestAnimationFrame
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: "\n\n" }, dist: { src: [ 'src/_intro.js', 'src/main.js', 'src/create.js', 'src/layout.js', 'src...
JavaScript
0
@@ -193,16 +193,58 @@ src: %5B%0A + 'src/requestanimationframe.js',%0A
4e6ab2937b4b7f1ce46602b8f8ecbade97cd89ef
Fix Typo in Gruntfile
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { require('wf-grunt').init(grunt, { options: { sauceLabs: { buildNUmber: process.env.TRAVIS_BUILD_NUMBER, testName: 'wf-uicomponents unit tests', username: process.env.SAUCE_LABS_USERNAME, accessKey...
JavaScript
0.000004
@@ -133,17 +133,17 @@ buildN -U +u mber: pr
831a03abb4e72f2e8fee2dcb1d33c41c6f4e29f6
Change artifact location to suite CircleCI
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.loadNpmTasks("grunt-mocha-test"); grunt.loadNpmTasks("grunt-mocha-istanbul"); var testOutputLocation = process.env.CIRCLE_TEST_REPORTS || "test_output"; var artifactsLocation = process.env.CIRCLE_ARTIFACTS || "build_artifacts"; grunt.initConfig({ moc...
JavaScript
0
@@ -843,22 +843,8 @@ tion - + %22/coverage%22 ,%0A
f8f2ba3f2a252d2f8b29312f19a02d1c6c378594
clean up gruntfile
Gruntfile.js
Gruntfile.js
/* global module: true */ module.exports = function (grunt) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: [ '/**', ' * <%= pkg.name %>', ' * <%= pkg.description %>', ...
JavaScript
0.000001
@@ -632,17 +632,16 @@ in('%5Cn') -, %0A %7D @@ -3406,25 +3406,24 @@ .name %25%3E.js' -, %0A %7D,%0A @@ -3539,25 +3539,24 @@ e %25%3E.min.js' -, %0A %7D,%0A @@ -3549,25 +3549,24 @@ s'%0A %7D -, %0A %7D,%0A
ba2d5dcc7a31efe59dbb2af05df2fd8f1a669a12
Update gruntfile
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, all: [ 'Gruntfile.js', 'public/assets/js/*.js', '!/public/assets/js/build/common.min.js' ] }, less: { dist: { files: { ...
JavaScript
0.000001
@@ -351,11 +351,13 @@ ild/ -mai +commo n.mi @@ -1388,395 +1388,403 @@ ess/ -vendor/bootstrap/*.less'%0A %5D,%0A tasks: %5B'less'%5D%0A %7D,%0A js: %7B%0A files: %5B%0A '%3C%25= jshint.all %25%3E'%0A %5D,%0A tasks: %5B'jshint', 'uglify'%5D%0A %7D,%0A liv...
fbc45511a992c9e4e046abf3917ef37d05580aaf
stringify results
unit-05/01-sequential-ops.js
unit-05/01-sequential-ops.js
// Write an image and a JSON file to the database. // MarkLogic allows us to generate the URIs for documents, if we want. We can // also transform content as it is loaded. For details, see // http://docs.marklogic.com/guide/node-dev/documents#id_85896 var fs = require('fs'); var ml = require('marklogic'); var conn = ...
JavaScript
1
@@ -1248,21 +1248,37 @@ ole.log( +JSON.stringify( docs) +) ;%0A%7D%0A%0Aupl
54adf2574bb2bf5e73e1ce59b0dc978997d6c07f
Add clean and copy tasks for Grunt.
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json') }); grunt.registerTask('default', []); };
JavaScript
0
@@ -97,11 +97,325 @@ on') -%0A%09%7D +,%0A%0A%09%09clean: %7B%0A%09%09%09build: %7B%0A%09%09%09%09src: %22build%22%0A%09%09%09%7D%0A%09%09%7D,%0A%0A%09%09copy: %7B%0A%09%09%09build: %7B%0A%09%09%09%09files: %5B%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09expand: true,%0A%09%09%09%09%09%09cwd: 'source/',%0A%09%09%09%09%09...
672078b71c7b4ffb27fd7f4c74b0422b059f7c78
Fix lint error
lang/summernote-de-DE.js
lang/summernote-de-DE.js
(function ($) { $.extend($.summernote.lang, { 'de-DE': { font: { bold: 'Fett', italic: 'Kursiv', underline: 'Unterstreichen', clear: 'Zurücksetzen', height: 'Zeilenhöhe', name: 'Schriftart', strikethrough: 'Durchgestrichen', subscript: 'Tiefges...
JavaScript
0.000035
@@ -2,17 +2,16 @@ function - ($) %7B%0A @@ -1742,26 +1742,28 @@ oberhalb',%0A -%09%09 + addRowBe @@ -1788,22 +1788,24 @@ rhalb',%0A -%09%09 + + addColLe @@ -1822,26 +1822,28 @@ lte links',%0A -%09%09 + addColRi @@ -1866,18 +1866,20 @@ echts',%0A -%09%09 + delR @@ -1899,22...
cb313f81e1eb0c9825df9c25710740876d9bbee0
Remove commented lines.
Gruntfile.js
Gruntfile.js
/* jshint node: true */ var FRONTEND_DIR = 'frontend/'; var LIB_DIR = FRONTEND_DIR + 'lib/'; var SPEC_DIR = FRONTEND_DIR + 'spec/'; var SRC_DIR = FRONTEND_DIR + 'src/'; var DIST_DIR = FRONTEND_DIR + 'dist/'; module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), cl...
JavaScript
0
@@ -2003,60 +2003,8 @@ : %7B%0A -// stdout: true,%0A// stderr: true,%0A
1169a2b5b9f26049d1836e9b2952352f3f6d47ec
fix typo in Gruntfile
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function (grunt) { grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', 'lib/*.js', '<%= nodeunit.tests %>' ], options: { jshintrc: '.jshintrc' } }, clean: [ '.tmp' ], excel_vocabulary: { convert: { expand: true, cwd...
JavaScript
0.000126
@@ -343,16 +343,69 @@ : '.tmp' +,%0A%09%09%09%09ext: '.json',%0A%09%09%09%09src: %5B%0A%09%09%09%09%09'**/*.xlsx'%0A%09%09%09%09%5D %0A%09%09%09%7D%0A%09%09 @@ -562,12 +562,12 @@ %0A%0A%09g -tunr +runt .reg
b2892e0e44d6e164735165c56f85a374eb30564f
add tests to build process
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { build: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' + '/*\n' + '* @description Goo...
JavaScript
0.000002
@@ -2401,32 +2401,41 @@ , %5B'jshint:all', + 'karma', 'concat:release @@ -2501,16 +2501,25 @@ nt:all', + 'karma', 'concat
cf21dd61b0104ee736f365ba74b9e34bb9d0973c
Fix type
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Load all grunt tasks require( 'load-grunt-tasks' )(grunt); // Configurable paths var config = { src: 'src', build: 'build' }; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON( 'package.json' ), conf...
JavaScript
0.000002
@@ -3870,16 +3870,26 @@ by the +modernizr task%0A
b0cec39390cce4327ec4602112d410506d303503
Fix for map click listener
client/js/maps.js
client/js/maps.js
// this accepts the format {lat: 0.0, lng: 0.0} function placeMarker(location) { var marker = new google.maps.Marker({ position: location, map: GoogleMaps.maps.gmap.instance }); } if (Meteor.isClient) { Meteor.startup(function() { GoogleMaps.load(); Tracker.autorun(function () { console.info...
JavaScript
0
@@ -556,160 +556,137 @@ // -Detect clicks on maps%0A google.maps.event.addListener(GoogleMaps.maps.gmap.instance, 'click', function(event) %7B%0A placeMarker(event.latLng);%0A %7D +function resizeIframe() %7B%0A // $('canvas')window.innerWidth%0A // window.innerHeight%0A // %7D%0A // Detec...
17936ce5d79314639c7635222ed38b6ba4786494
Fix server task
Gruntfile.js
Gruntfile.js
/* * Generated on 2014-04-01 * generator-assemble v0.4.11 * https://github.com/assemble/generator-assemble * * Copyright (c) 2014 Hariadi Hinta * Licensed under the MIT license. */ 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // '<%= config.src %>/templates/pages/{...
JavaScript
0.00009
@@ -3232,41 +3232,13 @@ ' -clean',%0A 'assemble',%0A 'sass +build ',%0A
07d6779ceba8ee51c11448a9dacb6d67fb7a5b37
Use XMLHttpRequest instead of jQuery for logging.
client/logging.js
client/logging.js
/* globals $ */ // TODO: Logger class // TODO: Pluggable log backend, e.g. console.log function _send(level, args) { // TODO: Inspect object instead of sending [object Object] // TODO: Remove the implied jQuery dependency $.post('/log', { level: level, message: args.join(' ') }).fail(function(xhr, t...
JavaScript
0
@@ -1,22 +1,4 @@ -/* globals $ */%0A%0A%0A // T @@ -70,263 +70,660 @@ g%0A%0A%0A -function _send(level, args) %7B%0A // TODO: Inspect object instead of sending %5Bobject Object%5D%0A // TODO: Remove the implied jQuery dependency%0A $.post('/log', %7B +// http://stackoverflow.com/questions/6418220/javascript-send-j...
57a57bc75a538a1510d74f38d9bd1d557c5703ca
Remove script from deploy
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ watch: { sass: { files: ['assets/css/**/*.{scss,sass}'], tasks: ['sass', 'cssmin'] }, js: { files: '<%= jshint.all ...
JavaScript
0.000001
@@ -3281,16 +3281,37 @@ n.lock', + '.bundle', 'script', '.jshin
c8bc1c758d09ca1e7dca5b32583ccc060d621b62
Remove duplicate docs generation
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Load all available grunt tasks require('load-grunt-tasks')(grunt); // Bootcamp doesn't use a `grunt-` prefix so load it manually grunt.loadNpmTasks('bootcamp'); // Configure tasks grunt.initConfig({ dir : { src : 'sass', dist : 'dist' }, pkg:...
JavaScript
0.000001
@@ -3085,27 +3085,16 @@ ploy', %5B -'sassdoc', 'build', @@ -3253,8 +3253,9 @@ y'%5D);%0A%7D; +%0A
91d13abf88bdeed908085ff5890a079c09478a6d
add environment variable support for build target
Gruntfile.js
Gruntfile.js
'use strict'; /*jshint node:true*/ module.exports = function (grunt) { require('load-grunt-tasks')(grunt); var setup = grunt.file.readJSON(__dirname + '/package.json').setup; grunt.initConfig({ setup: setup, copy: { themeInfo: { files: [{ expand: true, src: ['theme.toml...
JavaScript
0.000001
@@ -173,16 +173,76 @@ setup;%0A%0A + setup.target = process.env.THEME_TARGET %7C%7C setup.target;%0A%0A grunt.
e14eeaac9d5e521df2303ba536e83037cf659fae
move grunt-related build files to chipper/js/grunt/, phetsims/chipper#92
Gruntfile.js
Gruntfile.js
// use chipper's gruntfile module.exports = require( '../chipper/grunt/Gruntfile.js' );
JavaScript
0
@@ -58,16 +58,19 @@ chipper/ +js/ grunt/Gr
ac6634e3bc1b3cca684bc76dd6cf4efe9b08685a
Remove 'dev' uglify task since it's unused.
Gruntfile.js
Gruntfile.js
'use strict'; var path = require('path'); module.exports = function (grunt) { var modernizr = 'bower_components/modernizr/modernizr.js'; var jsFiles = [ 'bower_components/jquery/jquery.min.js', 'bower_components/retina.js/src/retina.js', 'bower_components/knockout.js/knockout.js', 'bower_components/foundati...
JavaScript
0
@@ -577,170 +577,8 @@ %09%09%7D%0A -%09%09%09%7D,%0A%09%09%09dev: %7B%0A%09%09%09%09options: %7B%0A%09%09%09%09%09beautify: %7B%0A%09%09%09%09%09%09width: 80,%0A%09%09%09%09%09%09beautify: true%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D,%0A%09%09%09%09files: %7B%0A%09%09%09%09%09'build/assets/js/app.min.js': jsFiles%0A%09...
254333157ed43161759ff22bc8336bfcd8dd0f9d
Comment out console log
source/classes/Westley.js
source/classes/Westley.js
(function(module) { "use strict"; var Inigo = require("__buttercup/classes/InigoGenerator.js"), commandTools = require("__buttercup/tools/command.js"), searching = require("__buttercup/tools/searching-raw.js"), entry = require("__buttercup/tools/entry.js"); var VALID_COMMAND_EXP =...
JavaScript
0
@@ -3712,16 +3712,18 @@ +// console.
c80275370e716b0b55df0313edc8bc22458da78d
Fix stream color not updating to default.
static/js/stream_color.js
static/js/stream_color.js
import $ from "jquery"; import * as color_class from "./color_class"; import {$t} from "./i18n"; import * as message_view_header from "./message_view_header"; import * as stream_settings_ui from "./stream_settings_ui"; function update_table_stream_color(table, stream_name, color) { // This is ugly, but temporary,...
JavaScript
0
@@ -3522,48 +3522,459 @@ %0A%7D%0A%0A -function picker_do_change_color(color) %7B +export const sidebar_popover_colorpicker_options_full = %7B%0A clickoutFiresChange: false,%0A showPalette: true,%0A showInput: true,%0A flat: true,%0A cancelText: %22%22,%0A chooseText: $t(%7BdefaultMessage: %22Confirm...
8f80ce31b09f2a1683e5d8179594c94b66571ce3
fix failing test
test/contentDiscovery.js
test/contentDiscovery.js
/* global it,describe,before */ var ContentDiscovery = require('../lib/contentDiscovery') var Message = require('../lib/message') var should = require('should') var q = require('q') // Create a temporary to be used during tests function getDattObject () { var datt = {} datt.getContent = function (hash) { var ...
JavaScript
0.000006
@@ -3004,32 +3004,33 @@ st(message, datt +2 ).then(function
4ca2f54709c823f8471196118178b53c3a4e1ac9
Add sort test
test/csv-object-test2.js
test/csv-object-test2.js
// test CSVObject2 var CSV = require('../index.js'); var assert = require('assert'); describe('CSVObject2', function () { var file_test1 = __dirname + "/test1.csv"; var file_test_sjis = __dirname + "/test-sjis.csv"; var file_tmp = __dirname + '/tmp.csv'; it('sort', function () { // var csv = new CSV.C...
JavaScript
0.000004
@@ -809,24 +809,546 @@ %22); %0A %7D);%0A%0A + it('sort2', function () %7B%0A //%0A var csv = new CSV.CSVObject();%0A csv.parse(%22name,rank,age%5CnHaru,A,22%5CnNatu,B,23%5CnAki,C,19%5Cn%22);%0A csv.useHeader = true;%0A csv.sort(1, false); // order by rank DESC%0A assert.equal(csv.getCell(1,0), %22...
48203dbf746f0414618e29ca87abd0a6b8fd5397
remove buttonFontSize prop
src/components/EditFolderForm/EditFolderForm.js
src/components/EditFolderForm/EditFolderForm.js
import React, {Component, PropTypes} from 'react'; import {Field, reduxForm} from 'redux-form'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import DICTIONARY_LANGS from './../../main/constants/dictionaryLangs'; import asyncValidate from './editFolderFormAsyncValida...
JavaScript
0
@@ -1022,57 +1022,8 @@ ed,%0A - buttonFontSize: PropTypes.string.isRequired,%0A @@ -2028,24 +2028,8 @@ ange -, buttonFontSize %7D = @@ -3265,48 +3265,8 @@ e')%7D - labelStyle=%7B%7BfontSize: buttonFontSize%7D%7D /%3E%0A
5b831842efb25ba68e47f67de70f0c2dd9604ad2
fix missing done
test/hello-world.test.js
test/hello-world.test.js
import co from 'co'; import Trek from '../src/Trek'; import request from 'supertest'; describe('Trek', () => { var app; before(() => { return co(function* () { app = new Trek(__dirname + '/fixtures'); app.logger.level = 'debug'; yield app.bootstrap(); }); }); it('hello world', () =>...
JavaScript
0.99853
@@ -301,32 +301,36 @@ 'hello world', ( +done ) =%3E %7B%0A app.g
a5704740a186e72247628ecc82445353ba1b8acc
fix #12
better-text.user.js
better-text.user.js
// ==UserScript== // @name Text input features // @version 1.0 // @description Add quotes, parens, etc around selected text // @match http://*/* // @match https://*/* // ==/UserScript== function getSelectionText() { var text = '' if (window.getSelection) { text = window.getSelection().toStr...
JavaScript
0.000001
@@ -5972,17 +5972,17 @@ 0 %7C%7C /%5C -s +W /.test(v
5e85e7ae104c2f62b14c6f6506063dc2e69ea835
Update container.js
static/views/container.js
static/views/container.js
define([ 'jquery', 'underscore', 'views/base', 'globals/eventbus', 'bootbox', 'modules/cloudstore', 'ace', 'codemirror', 'css!libs/codemirror/codemirror-4.8.0.css', 'add2home', 'css!libs/add2home/add2home.css', 'sha256', 'aes'], function($, _, BaseView, EventBus, bootbox, CloudStore, ace, CodeMirror) { "use str...
JavaScript
0.000001
@@ -3388,38 +3388,8 @@ ');%0A - console.log( m.val() );%0A
00d5cb9617641aa61c151ca9dcafe69502809802
fix missing semicolon
test/integration/test.js
test/integration/test.js
var expect = require('chai').expect, Mocha = require('mocha'), path = require('path') var testFixturePath = path.join(__dirname, '../test-fixture.js'), mugshotReporter = path.join(__dirname, '../../index.js'); /** * Captures the output of the reporters, i.e Mocha's reporters and our reporter * * @param...
JavaScript
0.999904
@@ -86,16 +86,17 @@ ('path') +; %0A%0Avar te
abe40fab677b47e4420a6ae6a6ed990962589b84
Add space between first and last names
src/database/DataTypes/MedicineAdministrator.js
src/database/DataTypes/MedicineAdministrator.js
/** * Sustainable Solutions (NZ) Ltd. 2021 * mSupply Mobile */ import Realm from 'realm'; export class MedicineAdministrator extends Realm.Object { get displayString() { return `${this.code ?? ''} ${this.firstName ?? ''}${this.lastName ?? ''}`.trim(); } } MedicineAdministrator.schema = { name: 'Medicine...
JavaScript
0.999999
@@ -224,16 +224,17 @@ e ?? ''%7D + $%7Bthis.l
768dc8ddec9cc45d28cb3f9b48b39ae9457744e9
Update FirumUserGroupStore signture
stores/forum_usergroup.js
stores/forum_usergroup.js
'use strict'; /*global nodeca, _*/ // 3rd-party var Store = require('nlib').Settings.Store; var async = require('nlib').Vendor.Async; //////////////////////////////////////////////////////////////////////////////// // Helper to fetch usergroups by IDs // function fetchForumSettings(id, callback) { nodeca.mode...
JavaScript
0
@@ -708,31 +708,22 @@ /%0A%0A%0A -var ForumUserGroupStore +module.exports = n @@ -753,16 +753,17 @@ ion (key +s , params @@ -781,24 +781,45 @@ callback) %7B%0A + var self = this;%0A var func @@ -1063,25 +1063,101 @@ var +results = %7B%7D;%0A%0A try %7B%0A keys.forEach(function (k) %7B%0A ...
a36735ecc0f8bd72a3bd4d7bfddf0a227d605019
fix test reference file
test/reference/events.js
test/reference/events.js
(function(require) { require.alias('/events', '/../../../events-browserify/events'); require.define('/../../../events-browserify/events', '/../../../events-browserify/', function(global, module, exports, require, process, __filename, __dirname) { if (!process.EventEmitter) process.EventEmitter = function () {}; var Ev...
JavaScript
0
@@ -39,34 +39,44 @@ vents', '/../../ -.. +node_modules /events-browseri @@ -103,34 +103,44 @@ .define('/../../ -.. +node_modules /events-browseri @@ -159,18 +159,28 @@ '/../../ -.. +node_modules /events-
bcefea753a3545df7d05d5956e6cdeb7b640ca6a
change nigeria reference to uganda
test/sms_inbound.test.js
test/sms_inbound.test.js
var vumigo = require('vumigo_v02'); var fixtures = require('./fixtures_sms_inbound'); var AppTester = vumigo.AppTester; describe("FamilyConnect SMS app", function() { describe("SMS inbound reply test", function() { var app; var tester; beforeEach(function() { app = new go.app....
JavaScript
0.000001
@@ -548,14 +548,13 @@ // -nigeri +ugand a%0A
83fa620ffb326bda6faee8ece8312291ead6c813
remove redundant `scope` argument
examples/many/src/List.js
examples/many/src/List.js
import {Observable, Subject} from 'rx'; import {button, div} from '@cycle/dom'; import isolate from '@cycle/isolate' import Item from './Item'; function intent(DOM, itemActions) { const addItem$ = Observable.merge( DOM.select('.add-one-btn') .events('click').map(() => 1), DOM.select('.add-many-btn') ...
JavaScript
0.000041
@@ -2397,27 +2397,11 @@ Item -, %60$%7Bid%7D%60)(%7B%0A +)(%7B DOM, @@ -2424,21 +2424,16 @@ ervables -%0A %7D);%0A
ea0d7861a8a39bfc9e6f7f1a916b1d58c4fcc3cc
update basic package-file testing
test/testPackageFiles.js
test/testPackageFiles.js
/* jshint -W097 */ /* jshint strict:false */ /* jslint node: true */ /* jshint expr: true */ var expect = require('chai').expect; var fs = require('fs'); describe('Test package.json and io-package.json', function() { it('Test package files', function (done) { console.log(); var fileContentI...
JavaScript
0
@@ -86,19 +86,36 @@ true */%0A -var +'use strict';%0A%0Aconst expect @@ -144,17 +144,16 @@ ct;%0A -var fs +const fs @@ -225,18 +225,13 @@ n', -function() +() =%3E %7B%0A @@ -262,23 +262,15 @@ s', -function ( done -) + =%3E %7B%0A @@ -292,35 +292,37 @@ log();%0A%0A -var +const fileCon...
6c0be5daa02206e03b16095abc6b02989a657886
Fix some simple linting issues
test/testRenderHerman.js
test/testRenderHerman.js
'use strict'; const assert = require('assert'); const del = require('del'); const fs = require('fs'); const Promise = require('bluebird'); const prepareContext = require('../lib/prepareContext'); const renderHerman = require('../lib/renderHerman'); const rmdir = Promise.promisify(fs.rmdir); const mkdir = Promise.pro...
JavaScript
0.000016
@@ -533,27 +533,8 @@ ) =%3E - %7B%0A return mkd @@ -546,17 +546,17 @@ is.dest) -; +, %0A @@ -560,24 +560,43 @@ -%7D,%0A error +// Skip in case of error%0A () =%3E @@ -1335,33 +1335,24 @@ =%3E -%7B%0A return access(s +access(expectedS hort @@ -1355,33 +1355,24 @@ h...
8508b6964511456cc4ea3901d77f9c2cba58b96b
add tests for article api
test/test_article_api.js
test/test_article_api.js
// test article api: var _ = require('lodash'), async=require('async'), should = require('should'); var remote = require('./_test'); var log = console.log; describe('#articles', function() { var category = null; before(remote.setup); before(function(done) { remote.post(remote.admi...
JavaScript
0
@@ -15,16 +15,41 @@ e api:%0A%0A +var fs = require('fs');%0A%0A var%0A @@ -1257,16 +1257,20 @@ content +... '%0A @@ -1524,16 +1524,122 @@ B,ccc'); +%0A r2.content.should.equal('Long content...');%0A r2.cover_id.should.equal(''); %0A%0A @@ -2021,32 +2021,1556 @@ );%...
82e4d87e1b23803a351d5d84db5ff0ee3f903284
Update timers tests to chai
test/unit/timers.test.js
test/unit/timers.test.js
describe('timers module', function () { this.timeout(1000 * 60); var Timers = require('../../lib/sandbox/timers'); it('must be able to set an event', function (done) { var status = 'uneventful', timers, id; timers = new Timers(null, done, null, function () { ...
JavaScript
0
@@ -129,12 +129,14 @@ it(' -must +should be
9112e610f9cd10f9212f644827b6d1cfca1000d6
Replace arrow functions with function expressions in "functionalTests.js"
tests/functionalTests.js
tests/functionalTests.js
/* eslint-disable max-len */ import test from 'ava'; import execute from 'execa'; import fs from 'fs-promise'; import removeDir from 'rimraf-promise'; const command = '../dist/cli.js'; test.afterEach(async function() { await removeDir('output'); }); test('non-existent template should cause error', async (t) => { ...
JavaScript
0
@@ -296,38 +296,44 @@ e error', async +function (t) - =%3E %7B%0A const comma @@ -604,38 +604,44 @@ e error', async +function (t) - =%3E %7B%0A const templ @@ -991,38 +991,44 @@ e error', async +function (t) - =%3E %7B%0A const comma @@ -1292,38 +1292,44 @@ e error', async +function (t) - =%3E ...
1afe1fdfe291a6acfdee2eb28d70ff74ab3a5ad3
Reorganize and add classForValue test
test/components/CalendarHeatmap.spec.js
test/components/CalendarHeatmap.spec.js
import React from 'react'; import { assert } from 'chai'; import { shallow } from 'enzyme'; import CalendarHeatmap from '../../src'; import { shiftDate } from '../../src/dateHelpers'; describe('CalendarHeatmap', () => { it('should render as an svg', () => { const wrapper = shallow( <CalendarHeatmap values...
JavaScript
0
@@ -516,67 +516,71 @@ %7D);%0A -%0A it('should be able to orient horizontally and vertically +%7D);%0A%0Adescribe('CalendarHeatmap props', () =%3E %7B%0A it('horizontal ', ( @@ -737,35 +737,35 @@ izontal.prop -s(). +(' viewBox +') .split(' '); @@ -1043,19 +1043,19 @@ prop -s(). +(' viewBox +') .spl @@ -1189,3...
ef7d4a7db29cc539f5be0b9012481b3c990c513c
enable FF test
test/dom/performance/inlineCssH2Test.js
test/dom/performance/inlineCssH2Test.js
'use strict'; const createTestRunner = require('../../help/browsertimeRunner') .createTestRunner, assert = require('assert'); let BROWSERS = ['chrome', 'firefox']; describe('Inline CSS advice HTTP/2:', function() { BROWSERS.forEach(function(browser) { describe('browser: ' + browser, function() { co...
JavaScript
0
@@ -947,16 +947,27 @@ k in FF%0A + /*%0A @@ -1028,16 +1028,27 @@ %7D%0A + */%0A
141998c858c9385158d720a23c37a37d4b74730c
Update webpack.config.js
test/fixtures/success/webpack.config.js
test/fixtures/success/webpack.config.js
const FriendlyErrorsWebpackPlugin = require('../../../index'); module.exports = { mode: 'development', entry: __dirname + "/index.js", output: { path: __dirname + "/dist", filename: "bundle.js" }, plugins: [ new FriendlyErrorsWebpackPlugin() ] };
JavaScript
0.000003
@@ -80,9 +80,10 @@ = %7B%0A -%09 + mode
67376eeb4807eba111e6bfcd8cd8ae5c4a3b8e18
Fix metadata tests
test/hooks/request/req.metadata.test.js
test/hooks/request/req.metadata.test.js
var assert = require('assert'); var mixinMetadata = require('../../../lib/hooks/request/metadata'); describe('Request hook', function () { describe('metadata', function () { beforeEach(function() { this.req = { headers: {}, header: function(key) { return this.headers[key]; }, app: {...
JavaScript
0.000189
@@ -92,16 +92,60 @@ adata'); +%0A// var Sails = require('../../../lib/app'); %0A%0Adescri @@ -210,24 +210,25 @@ nction () %7B%0A +%0A beforeEa @@ -291,22 +291,19 @@ -header +get : functi @@ -486,48 +486,67 @@ s: %7B - hooks: %7B%7D %7D%0A %7D;%0A this.res = %7B +%0A hooks: %7B%7D,...
34544f1bf96b4734d9c98046ec2d351c10882199
remove unused module imports
test/src/store/module/mutations.spec.js
test/src/store/module/mutations.spec.js
import { expect } from 'chai' import _ from 'lodash' import VueI18nManager, { routeParser } from '../../../../dist/vue-i18n-manager' import mutations from '../../../../src/store/module/mutations' import storeState from '../../../../src/store/module/state' import { REMOVE_LANGUAGE_PERSISTENCY, UPDATE_I18N_STATE, ...
JavaScript
0.000003
@@ -51,88 +51,8 @@ sh'%0A -import VueI18nManager, %7B routeParser %7D from '../../../../dist/vue-i18n-manager'%0A impo
9c4d955406b2c3c2b27e7e831965980d0a51f3f9
add prefix to test description
test/transpilers/assignableList.test.js
test/transpilers/assignableList.test.js
require('should'); const transpile = require('../../build/transpile'); const Identifier = require('../../build/classes/Identifier'); const AssignableList = require('../../build/classes/AssignableList'); describe('assignableList', () => { it('should transpile lists of a single identifier correctly', () => { tran...
JavaScript
0.000004
@@ -208,16 +208,28 @@ scribe(' +transpilers/ assignab
9daf915306ddac1e39748d0e89c720af766b3890
add specs for feature toggle
tests/components/feature-toggle.spec.js
tests/components/feature-toggle.spec.js
import React from 'react' import chai, { expect } from 'chai' import dirtyChai from 'dirty-chai' import { shallow } from 'enzyme' import { FeatureToggle, setFeatureConfig } from '../../src/index' chai.use(dirtyChai) const { describe, it } = global describe('<FeatureToggle/>', () => { it('renders children if toggle...
JavaScript
0
@@ -123,16 +123,73 @@ enzyme'%0A +import %7B Route, IndexRoute, match %7D from 'react-router'%0A%0A import %7B @@ -246,16 +246,16 @@ /index'%0A - %0Achai.us @@ -931,53 +931,1245 @@ led' -)%0A it('ignores routes if toggle is disabled' +, (done) =%3E %7B%0A setFeatureConfig(%7B testFeature: true %7D)%0A%0A co...
786c9ee1491c2d875b9319a0ba04efb7aea1a69f
Fix jshint error
tests/unit/comparison.js
tests/unit/comparison.js
/* jQRangeSlider * A javascript slider selector that supports dates * * Copyright (C) Guillaume Gautreau 2010 * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function(){ "use strict"; function equal(actual, expected, epsilon){ if (typeof actual !== typeof expected){ return false; } ...
JavaScript
0.000006
@@ -829,32 +829,65 @@ pected)%7B%0A%09%09%09if ( +expected.hasOwnProperty(name) && !equiv(actual%5Bna @@ -976,16 +976,46 @@ %0A%09%09%09if ( +actual.hasOwnProperty(name) && !equiv(a
abcafc93541c35b2054ebc60b9acd288be0157ab
Fix AutoComplete redux-form component
client/app/lib/components/redux-form/AutoComplete.js
client/app/lib/components/redux-form/AutoComplete.js
import AutoComplete from 'material-ui/AutoComplete'; import createComponent from './createComponent'; import mapError from './mapError'; const mapProps = props => ({ ...mapError(props), floatingLabelFixed: true, searchText: props.input.value, onNewRequest: props.input.onChange, }); export default createCompon...
JavaScript
0
@@ -281,16 +281,55 @@ Change,%0A + onUpdateInput: props.input.onChange,%0A %7D);%0A%0Aexp
c9d9915c9d90467b21e2da94418596c4b62c9d1d
Update dialog form layout (still not good...)
client/js/Dialogs/PluginConfig/PluginConfigDialog.js
client/js/Dialogs/PluginConfig/PluginConfigDialog.js
/*globals define, WebGMEGlobal, alert, _*/ /** * @author rkereskenyi / https://github.com/rkereskenyi * @author nabana / https://github.com/nabana */ define([ 'js/Controls/PropertyGrid/PropertyGridWidgetManager', 'text!./templates/PluginConfigDialog.html', 'css!./styles/PluginConfigDialog.css'], f...
JavaScript
0
@@ -1773,19 +1773,20 @@ legend%3E%3C -div +form class=%22 @@ -1801,22 +1801,35 @@ izontal%22 -%3E%3C/div + role=%22form%22%3E%3C/form %3E%3Cfields @@ -3177,23 +3177,20 @@ class=%22 -control +form -group%22%3E @@ -3199,24 +3199,33 @@ abel class=%22 +col-sm-4 control-labe @@ -3251,16 +3251,25 @@ class=%22 +c...
907756cc735e72e7ca73e127830c1d18482f0a73
Resolve badge path on startup
src/routes/badge.js
src/routes/badge.js
import Path from 'path' import getDepsType from './helpers/get-deps-type' export default (app, manifest, brains) => { app.get('/:user/:repo/:ref?/status.svg', (req, res) => { sendStatusBadge(req, res, {extension: 'svg'}) }) app.get('/:user/:repo/:ref?/status.png', (req, res) => { sendStatusBadge(req, re...
JavaScript
0
@@ -3884,16 +3884,98 @@ %0A %7D%0A%7D%0A%0A +const badgePath = Path.resolve(__dirname, '..', '..', 'public', 'img', 'status')%0A%0A function @@ -4288,115 +4288,61 @@ ath. -resolve(Path.join(__dirname, '..', '..', 'public', 'img', 'status', +join(badgePath, %60$%7B type - + +%7D$%7B status - + +%7D$%7B retina ...
9a4c4d187eecc4bcf1c9d3609d8d8d8303c474b8
clean up style in CustomerDashboard.js
client/src/components/Dashboard/CustomerDashboard.js
client/src/components/Dashboard/CustomerDashboard.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import { Container, Header, Card, Button, Divider } from 'semantic-ui-react'; import Listing from '../shared/Listing'; import { getUserListings, deleteListing } from '../../actions'; import { capitalize } from ...
JavaScript
0
@@ -813,24 +813,16 @@ Listings -, userId %7D = thi @@ -1623,16 +1623,111 @@ quired,%0A + userListings: React.PropTypes.array.isRequired,%0A userId: React.PropTypes.string.isRequired,%0A %7D;%0A%0Acons
ddd1148e2767e86c8be14982d0ebbcf85acbec69
convert promise to generator
src/routes/index.js
src/routes/index.js
'use strict'; /** * Module dependencies */ const co = require('co'); const phantom = require('phantom'); const Router = require('koa-router'); /** * Create router */ const router = new Router(); /** * Index page */ router.get('/', co.wrap(function* (ctx, next) { let ph, page, url = ctx.query.url; if (!u...
JavaScript
0.999975
@@ -274,21 +274,13 @@ %7B%0A -let ph, page, +const url @@ -415,24 +415,35 @@ %7D%0A %7D%0A +%0A -return +const ph = yield phantom @@ -455,172 +455,109 @@ te() +; %0A - .then(p =%3E %7B%0A ph = p;%0A return ph.createPage();%0A %7D)%0A .then(p =%3E %7B%0A page = p;%0A return ...
a5c36957c0da6852360c62d3a256595ec5805cea
Add emoticons in index page
src/pages/index.js
src/pages/index.js
import React from 'react' import Link from 'gatsby-link' import Avatar from 'material-ui/Avatar' import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card' import FlatButton from 'material-ui/FlatButton' import KeyboardArrowRight from 'material-ui/svg-icons/hardware/keyboard-arrow-right' import { blueGr...
JavaScript
0.000022
@@ -955,16 +955,21 @@ th code. + %F0%9F%91%A8%E2%80%8D%F0%9F%92%BB I keep @@ -1061,16 +1061,19 @@ travel. + %E2%9C%88%EF%B8%8F %0A
1b93101cb0003b1fbf3e0b3ea738e5aaff71aacd
split of undefined when user changes topic
src/scripts/game.js
src/scripts/game.js
// Description: // 遊ぶ // Commands: // attack {user} - attack // cure {user} - cure // raise|ザオリク {user} - ふっかつ // "use strict" const Cron = require("cron").CronJob; const NodeQuest = require("node-quest"); const UserExceptions = NodeQuest.UserExceptions; const Game = NodeQuest.Game; const DarkGame ...
JavaScript
0
@@ -96,13 +96,8 @@ aise -%7C%E3%82%B6%E3%82%AA%E3%83%AA%E3%82%AF %7Bus @@ -1075,16 +1075,192 @@ Ja.js%22); +%0Aconst hubotSlack = require(%22hubot-slack%22);%0Aconst SlackTextMessage = hubotSlack.SlackTextMessage;%0Aconst isSlackTextMessage = (message) =%3E (message instanceof SlackTextMessage); %0A%0Anew Cr @@ -3...
dbdf7aa2c9921457f335a7f6f373b0d1766240f2
remove oldie ajax
src/scripts/main.js
src/scripts/main.js
window.homeSwipe = new Swipe(document.getElementById('slider'), { startSlide: 0, speed: 400, auto: 4000, continuous: true, disableScroll: false, stopPropagation: false // , // callback: function(index, elem) {}, // transitionEnd: function(index, elem) {} }); var prefix = (function () { var styles =...
JavaScript
0.00117
@@ -783,50 +783,8 @@ st() - %7C%7C new ActiveXObject('Microsoft.XMLHTTP') ;%0A
3e315ffbe59f6dc42a2e6b273e8dad9bb43f966e
Change view.draw() to do the data binding instead of view()
src/scripts/view.js
src/scripts/view.js
module.exports = strain() .static('init', function(fn) { strain.init.call(this, function(el) { if (el) { this.el(el); } fn.apply(this, arguments); if (el && this.el().datum()) { this.draw(); } }); }) .static('confprop', function(name) { this.prop(name);...
JavaScript
0.000001
@@ -455,17 +455,137 @@ draw', f -n +unction(datum) %7B%0A if (arguments.length) %7B%0A this.el().datum(datum);%0A %7D%0A%0A return fn.call(this);%0A %7D );%0A %7D)%0A @@ -781,101 +781,30 @@ -if (arguments.length) %7B%0A d3.select(this.el().node()).datum(datum);%0A %7D%0A%0A ...
4281c8fd481679af717f09d64047f52babbfe054
use snake case
src/parse-query.js
src/parse-query.js
const HASH = '#'.charCodeAt(0); const DOT = '.'.charCodeAt(0); const TAGNAME = 0; const ID = 1; const CLASSNAME = 2; export const parseQuery = (query) => { let tag = null; let id = null; let className = null; let mode = TAGNAME; let buffer = ''; for (let i = 0; i <= query.length; i++) { const char = ...
JavaScript
0.000047
@@ -62,24 +62,25 @@ ;%0A%0Aconst TAG +_ NAME = 0;%0Aco @@ -77,16 +77,16 @@ ME = 0;%0A - const ID @@ -98,24 +98,25 @@ %0Aconst CLASS +_ NAME = 2;%0A%0Ae @@ -224,24 +224,25 @@ t mode = TAG +_ NAME;%0A let @@ -487,16 +487,17 @@ === TAG +_ NAME) %7B%0A @@ -850,24 +850,24 @@ f (isDot) %7B%0A - mode @@...
31786233111f00771fc3cf474d2844c79398d3b0
Update marks.js
src/parse/marks.js
src/parse/marks.js
var parseMark = require('./mark'); function parseRootMark(model, spec, width, height) { return { type: "group", width: width, height: height, scales: spec.scales || [], axes: spec.axes || [], legends: spec.legends || [], marks: (spec.marks || []).map(function(m) { return parseMark(model, ...
JavaScript
0.000001
@@ -1213,37 +1213,82 @@ %7B -%22$ref%22: %22#/defs/mark%22 +%0A %22not%22: %7B %22properties%22: %7B %22type%22: %7B%22enum%22: %5B%22group%22%5D%7D %7D %7D,%0A @@ -1294,16 +1294,18 @@ -%7B %22not%22: +%7D,%0A %7B%22$ @@ -1322,29 +1322,22 @@ efs/ -groupM +m ark%22%7D - %7D %0A ...
bebe7192ea29279669bac94bd5d445582ab942a4
fix eslint issue
src/parsers/sns.js
src/parsers/sns.js
"use strict"; const _ = require("lodash"), Slack = require("../slack"); class SNSParser { async parse(event) { const attachments = [], in_flight = []; await Promise.all(_.map(event.Records, async (record) => { let message; try { message = JSON.parse(_.get(record, "Sns.Message")); } catch (e...
JavaScript
0.000003
@@ -627,19 +627,15 @@ %09%09%09%09 -while (_ = +_.each( slac @@ -658,25 +658,15 @@ ents -.shift()) %7B%0A%09%09%09%09%09 +, a =%3E atta @@ -682,17 +682,12 @@ ush( -_);%0A%09%09%09%09%7D +a)); %0A%09%09%09
d4a788112a4b294e5d1d4ba9652197bcf9b82faf
Fix lint.
src/server/start.js
src/server/start.js
import R from 'ramda'; import Promise from 'bluebird'; import chalk from 'chalk'; import express from 'express'; import fsPath from 'path'; import shell from 'shelljs'; import semver from 'semver'; import webpackConfig from './webpack-config'; import webpackDevServer from './webpack-dev-server'; import uiharnessJson fr...
JavaScript
0.000001
@@ -3994,11 +3994,25 @@ ('@' - + +) %7D$%7B chalk.grey( uiha
a1200ca02ef361e22f095d92614438807f5b5a11
Move UIHarness version output.
src/server/start.js
src/server/start.js
import R from 'ramda'; import Promise from 'bluebird'; import chalk from 'chalk'; import express from 'express'; import fsPath from 'path'; import shell from 'shelljs'; import semver from 'semver'; import webpackConfig from './webpack-config'; import webpackDevServer from './webpack-dev-server'; import uihPackageJson f...
JavaScript
0
@@ -296,31 +296,30 @@ ;%0Aimport uih -Package +arness Json from '. @@ -3963,17 +3963,17 @@ k.green( -' +%60 UIHarnes @@ -3973,18 +3973,61 @@ IHarness -:' +$%7B chalk.grey('@' + uiharnessJson.version) %7D%60 ));%0A @@ -4223,85 +4223,8 @@ %60);%0A - log.info(chalk.grey(' - uiharness:'), %60v$%7B uihPackag...
550da959a0e5edfb64d6e4362eb129f1999ebf59
write correct pid file
src/pid-manager.js
src/pid-manager.js
const path = require('path') const fs = require('fs') const terminate = require('terminate') const { fork } = require('child_process') const logger = require('./logger') class Worker { constructor (userDataPath) { this.userDataPath = userDataPath this.loc = path.join(userDataPath, 'pid') } create ({soc...
JavaScript
0.000234
@@ -749,24 +749,86 @@ pid (cb) %7B%0A + // Write the current pid of this process to the pid file.%0A var done @@ -871,21 +871,16 @@ g pid', -this. process. @@ -913,21 +913,16 @@ is.loc, -this. process.
2d5f7e8e6204bbf08d0d5db9c3c49c293299a21f
Fix indentation
src/pkjs/reader.js
src/pkjs/reader.js
/* * Copyright (c) 2016 Jan Hoffmann * * 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/. */ var parser = require('./parser'); function readMenu(callback) { va...
JavaScript
0.017244
@@ -2871,13 +2871,28 @@ ) %7B%0A -%09%09%09%09%09 + titl @@ -2914,12 +2914,24 @@ r%22;%0A -%09%09%09%09 + %7D%0A
6c4b8aa4ac1799d9d41d912d99e7f7c70b90e1ca
add logic
Algorithms/JS/integers/squareRoot.js
Algorithms/JS/integers/squareRoot.js
// Sqrt(x) // Implement int sqrt(int x). // Compute and return the square root of x. /** * @param {number} x * @return {number} */ const sqrt = function mySqrt(x) { if (x === 0) return 0; let left = 1; let right = Number.MAX_VALUE; while (true) { const mid = left + ((right - left) / 2); if (mid >...
JavaScript
0.002571
@@ -131,16 +131,531 @@ r%7D%0A */%0A%0A +%0A// if integer given is 0, return 0%0A// create a range from 1 - Max integer%0A// create a loop that will break once we find sqrt%0A // reset mid to the difference of highest and lowest integer divided by, plus lowest integer%0A // if our given integer divided by 2 is less ...
4e3472b3cbd48522eed5b17a245b7ae55e2b19da
change click listener to use mouse down in search
client/acp/src/view/display/user-search.js
client/acp/src/view/display/user-search.js
import classNames from 'classnames'; import React from 'react'; import Avatar from './avatar'; import {compareUsers} from '../../util/utils'; export default class UserSearch extends React.Component { keyDidChange(e) { switch (e.keyCode) { // Enter case 13: e.prevent...
JavaScript
0
@@ -1900,13 +1900,17 @@ %7D on -Click +MouseDown =%7B()
44441e90a06a6d7369c325d0be7309b6c4ef29f3
Add a missing condition
racer-angular.js
racer-angular.js
angular.module('racer.js', [], function ($provide) { function extendObject(from, to) { if (from === to) return to; if (from.constructor === Array && to.constructor === Array) { for (var i = 0; i < from.length; ++i) { to[i] = extendObject(from[i], to[i]); } to.splice(from.length, to.length); retur...
JavaScript
0.999999
@@ -147,16 +147,22 @@ Array && + to && to.cons
76e300205a9afb6f5608183d2e5ccb3d4e7e022d
allow string passed for testing type
src/raptor.pack.js
src/raptor.pack.js
// Silently create raptor namespace if(typeof raptor === 'undefined') { var raptor = {}; } raptor.pack = (function() { var nodeStorage = {}; var fragmentStorage = {}; var util = { /** * Creates Element and adds to storage or clones existing * * @param {String} tag */ newElement : function(t...
JavaScript
0.000001
@@ -960,16 +960,20 @@ data) %7B%0A +%09%09%09%0A %09%09%09var m @@ -993,45 +993,36 @@ %0A%09%09%09 -for (var i = 0; i %3C types.length; i++ +%0A%09%09%09var test = function(type ) %7B%0A @@ -1036,20 +1036,16 @@ tch(type -s%5Bi%5D ) %7B%0A%09%09%09%09 @@ -1327,20 +1327,16 @@ xOf(type -s%5Bi%5D ) !== -1 @@ -1366,...
fd9d83ac75b2e72fc1b244b12d154301a9e3b85c
split getanswers userlist
commands/getanswers.js
commands/getanswers.js
const config = require("../config.json"); const { isMod } = require("../util"); exports.run = function (message, args, bot, db, showOnlyNew) { db.query("SELECT * FROM trivia_questions WHERE id = ?", [args], function ( err, rows ) { if (rows[0] == null) { message.reply("That question does not exis...
JavaScript
0.000004
@@ -1796,24 +1796,53 @@ ainServer);%0A + let userListString = %22%22;%0A if (%0A @@ -1834,24 +1834,24 @@ %22;%0A if (%0A - typeof @@ -1967,27 +1967,41 @@ %7B%0A -response += +userListString +=%0A %22User l @@ -2061,24 +2061,30 @@ ;%0A -response +userListString +=%0A @...
d102d8d46bd4adb9187d3fcfad6dae808fb84150
Update say.js
bot/commands/say.js
bot/commands/say.js
const bot = require('./../bot'); /** * This method should return the response directly to the channel * @param {*string array} params * @param {*message} message */ async function command(params, message) { if (!settings.owners.includes(message.author.id)) { await message.reply('https://media.tenor.com...
JavaScript
0.000009
@@ -1,12 +1,63 @@ +const settings = require('./../../settings.json');%0A const bot =
c3715853fdef94f207f0ec7fb7f570479bf42688
update cable type err
routes/cabletype.js
routes/cabletype.js
var mongoose = require('mongoose'); var CableType = mongoose.model('CableType'); var auth = require('../lib/auth'); module.exports = function(app) { app.get('/cabletypes', auth.ensureAuthenticated, function(req, res) { res.render('cabletype', { roles: req.session.roles }); }); app.get('/cabletyp...
JavaScript
0.000001
@@ -1608,77 +1608,8 @@ r);%0A - // see test/duplicatedCableNumber.js for a test of this case%0A @@ -1659,11 +1659,11 @@ ole. -log +err (err @@ -1669,35 +1669,32 @@ r.msg %7C%7C err.err -msg );%0A ret @@ -1817,35 +1817,32 @@ r.msg %7C%7C err.err -msg );%0A ret @@ -1869,35 +1869,32 @...
c79a59b5998d16b245fd970b7356c217c9c6e937
Improve JSXTransformer
vendor/browser-transforms.js
vendor/browser-transforms.js
/** * Copyright 2013 Facebook, Inc. * * 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 ...
JavaScript
0.000002
@@ -914,16 +914,72 @@ ock');%0A%0A +var headEl = document.getElementsByTagName('head')%5B0%5D;%0A%0A exports. @@ -1001,16 +1001,17 @@ nsform;%0A +%0A exports. @@ -1069,16 +1069,17 @@ e));%0A%7D;%0A +%0A var run @@ -1115,94 +1115,8 @@ ) %7B%0A - var moduleName =%0A docblock.parseAsObject(docblock.extract(cod...
a96eb8aa2679a659719267a2ea3213cd7e57fd08
Update project1-chart1.js
project1/project1-chart1.js
project1/project1-chart1.js
(function() { var margin = { top: 30, left: 100, right: 30, bottom: 30}, height = 800 - margin.top - margin.bottom, width = 780 - margin.left - margin.right; console.log("Building chart 1"); // Create a time parser var parse = d3.timeParse("%m/%d/%y") // Create your scales, but ONLY give them a range ...
JavaScript
0.000012
@@ -4250,66 +4250,8 @@ s%22)%0A - .attr(%22transform%22, %22translate(0,%22 + height + %22)%22)%0A @@ -4400,32 +4400,90 @@ %22axis y-axis%22)%0A + .attr(%22transform%22, %22translate(0,%22 + height + %22)%22)%0A .call(yA
9437ae4a05aafa613fb9556e9c51a8a3c0a4d7cc
update correct add-country-mode in editor
public/js/app/views/form/basicTab/App.Views.Form.EntitiesSectionView.js
public/js/app/views/form/basicTab/App.Views.Form.EntitiesSectionView.js
;( function() { "use strict"; App.Views.Form.EntitiesSectionView = Backbone.View.extend({ el: "#form-view #data-tab .entities-section", events: { "change .countries-select": "onCountriesSelect", "change [name='add-country-mode']": "onAddCountryModeChange" }, initialize: function( options ) { ...
JavaScript
0.000001
@@ -1306,24 +1306,247 @@ Control );%0A%0A +%09%09%09//based on stored add-country-mode%0A%09%09%09var addCountryMode = App.ChartModel.get( %22add-country-mode%22 );%0A%09%09%09this.$el.find( %22%5Bname='add-country-mode'%5D%22 ).filter( %22%5Bvalue='%22 + addCountryMode + %22'%5D%22 ).prop( %22checked%22, true );%0A%0...
6a91f7c5b2ba8ea5203bd7d934e07555486ef746
add missing bootstrap container (#37905)
client/src/templates/Introduction/Intro.js
client/src/templates/Introduction/Intro.js
import React from 'react'; import PropTypes from 'prop-types'; import { Link, graphql } from 'gatsby'; import Helmet from 'react-helmet'; import { ListGroup, ListGroupItem } from '@freecodecamp/react-bootstrap'; import LearnLayout from '../../components/layouts/Learn'; import FullWidthRow from '../../components/helper...
JavaScript
0
@@ -139,16 +139,22 @@ import %7B + Grid, ListGro @@ -1306,19 +1306,20 @@ %0A %3C -div +Grid classNa @@ -2187,19 +2187,20 @@ %3C/ -div +Grid %3E%0A %3C/
99e4372751fbfcc527f52c5ba33c35254be1807e
work please
public/javascripts/app.js
public/javascripts/app.js
'use strict'; /********************************************************************** * Angular Application **********************************************************************/ var app = angular.module('app', ['ngResource', 'ngRoute']) .config(function($routeProvider, $locationProvider, $httpProvider) { //=...
JavaScript
0.000001
@@ -5138,24 +5138,102 @@ ar.id, data) +.success(function()%7B%0A console.log('PUT resquest success');%0A %7D) ;%0A %7D%0A
99ffa7c87b673a2876a40c271ad77eef2c58b35c
Update timelines at first
public/javascripts/app.js
public/javascripts/app.js
(function ($, twttr) { $.fn.enable = function () { return this.removeAttr('disabled'); }; $.fn.disable = function () { return this.attr('disabled', 'disabled'); }; $(document).ready(function () { var popoverNormalOptions = [ 'animate', 'delayIn', 'delayOut', 'fallback', ...
JavaScript
0
@@ -4985,24 +4985,53 @@ %7D%0A ); +%0A%0A updateAllTimelines(); %0A %7D%0A%0A
7a7d3e23f6ff8a34eb1bd5a893c61c20cebffc98
add contact.json to gulp copy function
tasks/deployment-tasks.js
tasks/deployment-tasks.js
/* * deployment tasks * * contains tasks for AWS S3 invalidation and publishing * * */ var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var cloudfront = require('gulp-invalidate-cloudfront'); var path = require('path'); var fs = require('fs'); var argv = require('yargs').argv; var merge = requ...
JavaScript
0
@@ -3420,16 +3420,189 @@ ck'));%0A%0A + var jsonData = gulp.src(%5Bconfig.dependencies + '/uqlibrary-api/data/contacts.json'%5D)%0A .pipe(gulp.dest(config.applications + 'bower_components/uqlibrary-api/data'));%0A%0A return @@ -3681,16 +3681,26 @@ elements +, jsonData )%0A
a85d961f79ce524932ee7d446737aada47e8c18c
Add js, coffee, yaml, json flags
tasks/generate_configs.js
tasks/generate_configs.js
/* * grunt-generate-configs * https://github.com/creynders/grunt-generate-configs * * Copyright (c) 2014 Camille Reynders * Licensed under the MIT license. */ 'use strict'; var inquirer = require('inquirer'); var writeFiles = require('./lib/writeFiles'); module.exports = function(grunt){ // Please see the...
JavaScript
0
@@ -565,16 +565,377 @@ sync();%0A + var type;%0A if(grunt.option('json'))%7B%0A type = 'json';%0A %7D%0A if(grunt.option('js'))%7B%0A type = 'js';%0A %7D%0A if(grunt.option('coffee'))%7B%0A type = 'coffee';%0A %7D%0A if(grunt.opti...
ae54cbca3305eb0947cda1853eab5e672eccf9b3
Refactor sframe-cpnf-inner to export chainpad
www/common/sframe-chainpad-netflux-inner.js
www/common/sframe-chainpad-netflux-inner.js
/* * Copyright 2014 XWiki SAS * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distr...
JavaScript
0
@@ -2119,17 +2119,521 @@ chainpad -; + = ChainPad.create(%7B%0A userName: userName,%0A initialState: initialState,%0A transformFunction: transformFunction,%0A validateContent: validateContent,%0A avgSyncMilliseconds: avgSyncMilliseconds,%0A logLevel: lo...
d4417d8b2270b173ee14ec8f6d30f560bd7158d9
Use Template7 instead mustache
src/script/main.js
src/script/main.js
(function() { var lang = localStorage.getItem('lang') || 'en-us'; require.config({ locale: lang, paths: { text:'../vendors/require/text', i18n:'../vendors/require/i18n', Framework7:'../vendors/framework7/framework7', mustache:'../vendors/mustache/m...
JavaScript
0
@@ -274,61 +274,8 @@ 7',%0A - mustache:'../vendors/mustache/mustache',%0A
06d4ffb8d1198ad6cc3978cccea9692b904f22d0
Add documentation of class elements preference
ruby-preferences.js
ruby-preferences.js
define(function (require, exports, module) { 'use strict'; var AppInit = app.getModule('utils/AppInit'); var Core = app.getModule('core/Core'); var PreferenceManager = app.getModule('core/PreferenceManager'); var preferenceId = 'ruby'; var rubyPreferences = { 'ruby.gen': { text: 'Ruby Code Gene...
JavaScript
0
@@ -1310,16 +1310,190 @@ %0A %7D,%0A + 'ruby.gen.documentation': %7B%0A text: 'Documentation',%0A description: 'Generate documentation of class elements.',%0A type: 'Check',%0A default: true,%0A %7D,%0A %7D;%0A%0A @@ -1944,24 +1944,94 @@ ngMethod'),%0A + documentation: Preferenc...
291a1cea31cae997d5e828022b1ac03673176258
add particleId to detail view URL
web/javascript/POCManager.js
web/javascript/POCManager.js
function setupPOC(form, selectEleId) { var selectEle = document.getElementById(selectEleId); var otext = selectEle.options[selectEle.options.selectedIndex].text; if(otext == "[Other]") { form.action = "submitNanoparticleSample.do?dispatch=setupPointOfContact&page=0&location=local"; form.submit(); } return fa...
JavaScript
0
@@ -321,18 +321,16 @@ lse;%0A%7D%0A%0A -%0A%0A function @@ -358,32 +358,47 @@ orm, selectEleId +, particleIdEle ) %7B%0A%09var selectE @@ -436,24 +436,88 @@ lectEleId);%0A +%09var particleId = document.getElementById(particleIdEle).value;%0A %09var org = s @@ -686,16 +686,42 @@ %22 + %0A%09%09%09 +%22&particleId...
db35d9f24b3d32ddf4ea39da9c4e1488434e2d17
change control for new alarms to 180 seconds
console/static/console/js/latest_alarms.js
console/static/console/js/latest_alarms.js
function hexToRgb(hex) { // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; hex = hex.replace(shorthandRegex, function(m, r, g, b) { return r + r + g + g + b + b; }); var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2...
JavaScript
0
@@ -1563,16 +1563,18 @@ ms, 1800 +00 );%0A
128efcd64b028b589bd70091fbaac69c4ac16ea4
Remove all comments from production build (fix #2113) (#2204)
webpack.prod.config.babel.js
webpack.prod.config.babel.js
/* eslint-disable max-len, import/no-extraneous-dependencies */ import path from 'path'; import autoprefixer from 'autoprefixer'; import config from 'config'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; import SriStatsPlugin from 'sri-stats-webpack-plugin'; import webpack from 'webpack'; import Webpac...
JavaScript
0
@@ -3660,41 +3660,39 @@ com -press: %7B%0A warnings: false, +ments: false,%0A compress: %7B %0A @@ -3712,24 +3712,49 @@ sole: true,%0A + warnings: false,%0A %7D,%0A
2936f036582937bac667aca2687083ed86c76df4
migrate to GA4
website/docusaurus.config.js
website/docusaurus.config.js
module.exports = { title: 'Tech Interview Handbook', tagline: 'Free curated interview preparation materials for busy people', url: 'https://www.techinterviewhandbook.org', baseUrl: '/', trailingSlash: true, favicon: 'img/favicon.png', organizationName: 'yangshun', projectName: 'tech-interview-handbook',...
JavaScript
0.000001
@@ -5577,21 +5577,20 @@ D: ' -UA-44622716-2 +G-9F86L298EX ',%0A
715fa88acfb4ebbd861efac1dddf52721fe3c797
update navbar
website/docusaurus.navbar.js
website/docusaurus.navbar.js
const pkg = require('react-day-picker/package.json'); // @ts-check // Note: type annotations allow type checking and IDEs autocompletion /** @type {import('@docusaurus/preset-classic').ThemeConfig["navbar"]} */ const navbar = { title: 'React DayPicker', logo: { alt: 'DayPicker Logo', src: 'images/logo.png'...
JavaScript
0.000002
@@ -837,16 +837,21 @@ bel: 'v7 +.4.10 (older
e48fcde8f45f5ed963ece5e7de0b0c95b46ec590
fix timeline undefined with github push
website/public/js/OsEvent.js
website/public/js/OsEvent.js
(function(){ var Event = function(evt){ try{ this.name = this.computeName(evt.payload); this.values = this.getValues(evt.payload); this.url = this.computeUrl(evt.payload); }catch(e){ console.log(e.message + "for " + JSON.stringify(evt)); } ...
JavaScript
0.000005
@@ -786,16 +786,67 @@ ue = %22%22; +%0A if(%22%22 == this.values.trim()) return value; %0A%0A
fd741c5c3018923909c0dc7737448e7b89ff8094
Add clearRouteData mock function to tests
www_src/tests/router.test.js
www_src/tests/router.test.js
global.window = {}; var should = require('should'); var React = require('react'); var router = require('../lib/router'); function resetAndroidApi() { router.android = { getUserSession: () => {}, getRouteParams: () => {}, getRouteData: () => {}, getMemStorage: () => {}, setMemStorage: () => {} ...
JavaScript
0
@@ -250,24 +250,54 @@ : () =%3E %7B%7D,%0A + clearRouteData: () =%3E %7B%7D,%0A getMemSt
46c4941a47f4a685ef4829af0115f54b25233db6
Fix #3
function.js
function.js
// Codi del la funció "Solucions La Galera Text (Autocorrectors)" // Autor: Marc Clascà // (c)2013 // Visiteu pàgina oficial per instalació i més informació mclasca.sytes.net/solucions/ (function () { console.log("Script iniciat"); url = document.URL; console.log(url); url_array = url.split("/"); ...
JavaScript
0.000001
@@ -338,17 +338,17 @@ l_array%5B -2 +4 %5D;%0A a
cd0029648fab596fca17ef4d2c8b9564f25f41aa
Build file update.
gulpfile.js
gulpfile.js
"use strict"; var del = require('del'); var exec = require('child_process').exec; var gulp = require('gulp'); var os = require('os'); var tslint = require('gulp-tslint'); // Build. gulp.task('build', ['transpile:ts']); gulp.task('watch', function() { gulp.watch([ './index.ts', './src/*.ts', ...
JavaScript
0
@@ -408,39 +408,8 @@ );%0A%0A -// Typescript --%3E Javascript.%0A%0A gulp @@ -420,19 +420,16 @@ k('clean -:js ', funct @@ -482,34 +482,8 @@ s',%0A - './index.js.map',%0A @@ -596,37 +596,8 @@ s',%0A - './src/**/*.js.map',%0A @@ -693,32 +693,63 @@ ',%0A %5D);%0A%7D);%0A%0A +// Typescri...
bb150edbb6669b1b8cb0a580c10b5fc0eca20478
Add stubModules option to r.js
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var path = require('path'); var open = require('open'); var csso = require('gulp-csso'); var express = require ('express'); var lr = require('tiny-lr'); var es = require('event-stream'); var extend = require('extend'); var replace = require('gulp-replace'); var rjs = require('gulp-requirejs'...
JavaScript
0
@@ -2586,16 +2586,44 @@ ap: true +,%0A stubModules : %5B'text'%5D %0A %7D;%0A
1b655c8838017cff70b87c4a9a35c51c0639d4fb
Update gulpfile.js
gulpfile.js
gulpfile.js
/** * * Web Starter Kit * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
JavaScript
0
@@ -5660,19 +5660,36 @@ s:// -example.com +isc-host.github.io/flags.isc ',%0A
317041d56fd5295f5cf57f38a5193c90ac54e442
order kernel/proc files
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var pump = require('pump'); var changed = require('gulp-changed'); var order = require("gulp-order"); var concat = require('gulp-concat'); var babel = require('gulp-babel') var uglify = require('gulp-uglify'); gulp.task("fs", function(cb) { pump([ gulp.src("src/kernel/fs/*.js"), o...
JavaScript
0.000001
@@ -548,24 +548,65 @@ order(%5B%0A + %22filedesc.js%22,%0A %22process.js%22,%0A %22*%22%0A @@ -1237,20 +1237,21 @@ %22./%22),%0A %5D, cb);%0A%7D); +%0A
a5bf23199c66ff17de46f7374f15b6cb9b7c5f8e
Fix react-joyride css file
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var source = require('vinyl-source-stream'); var browserify = require('browserify'); var babelify = require('babelify'); var sass = require('gulp-sass'); var concat = require('gulp-concat'); var connect = require('gulp-connect'); var rename = require('gulp-rename'); var uglify = require('gul...
JavaScript
0.000002
@@ -1691,15 +1691,8 @@ lib/ -styles/ reac
94346708d794e4801ba331f8b054459f71837cd9
Add sass support
gulpfile.js
gulpfile.js
var gulp = require("gulp"), connect = require("gulp-connect"), babel = require("gulp-babel"), react = require("gulp-react"); gulp.task("webserver", function () { connect.server({ livereload: true, }); }); gulp.task("babel", function () { gulp.src("src/js/*.js") .pipe(babel()) .pipe(gulp.dest("dist...
JavaScript
0.000001
@@ -122,16 +122,47 @@ -react%22) +,%0A sass = require(%22gulp-sass%22) ;%0A%0Agulp. @@ -459,32 +459,170 @@ %22dist/%22));%0A%7D);%0A%0A +gulp.task(%22sass%22, function () %7B%0A gulp.src(%22src/css/*.scss%22)%0A .pipe(sass().on(%22error%22, sass.logError))%0A .pipe(gulp.dest(%22dist/%22));%0A%7D);%0A%0A gulp.ta...
088867df6afe32537978e76685f2011567049ae5
remove old code
gulpfile.js
gulpfile.js
"use strict"; var path = { from: { protos: { css: './css/*.css' }, src: { html: './src/*.html', css: './src/css/*.css', img: './src/img/*.*', js: './src/js/*.*' }, examples: { html: './examples/*.html', css: './examples/css/*.css', img: './examples/...
JavaScript
0.999865
@@ -986,78 +986,8 @@ s))%0A - /* gulp.src('./css/*.css')%0A .pipe(gulp.dest('./src/css'))*/%0A %7D);%0A
734c8601b0e4c31740847b57a793d673c8e81d26
Fix build task [ci skip]
gulpfile.js
gulpfile.js
(function() { "use strict"; var path = require("path"); var gulp = require("gulp"); var concat = require("gulp-concat"); var jscs = require("gulp-jscs"); var eslint = require("gulp-eslint"); var connect = require("gulp-connect"); var indent = require("gulp-indent"); var trimlines = require("gulp-trim...
JavaScript
0.000001
@@ -605,21 +605,22 @@ p.task(%22 -build +source %22, funct @@ -1453,32 +1453,79 @@ dapter);%0A %7D);%0A%0A + gulp.task(%22build%22, %5B%22source%22, %22adapters%22%5D);%0A%0A gulp.task(%22lin
79ebfd290e79f2cf3881c3c425b8a8fbdfa45f61
use conditional config
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var chef = require('gulp-chef'); var browserSync = require('browser-sync'); var ghpages = require('gulp-gh-pages'); var ingredients = { src: 'src/', dest: 'dist/', clean: {}, deploy: { src: { globs: '{{dest.path}}**/*', options: { join: '' } }, config:...
JavaScript
0.000002
@@ -597,16 +597,35 @@ shim'%5D,%0A +%09%09%09%09production: %7B%0A%09 %09%09%09%09ugli @@ -633,16 +633,22 @@ y: true%0A +%09%09%09%09%7D%0A %09%09%09%7D%0A%09%09%7D @@ -870,24 +870,43 @@ %09%09lost: %7B%7D,%0A +%09%09%09%09production: %7B%0A%09 %09%09%09%09cssnano: @@ -909,16 +909,22 @@ ano: %7B%7D%0A +%09%09%09...
ecfb6dded08bbefd48edcdce90d9e1b64ce46750
Copy templates over to the build directory.
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var gutil = require('gulp-util'); var plugins = require('gulp-load-plugins')(); var paths = { all: { scripts: [ 'app/scripts/**/*.js', 'lib/**/*.js', 'gulpfile.js', 'index.js' ] }, app: { dir: 'app', glob: ['app/**/*', '!app/bower...
JavaScript
0
@@ -567,24 +567,86 @@ s/app.scss'%0A + %7D,%0A templates: %7B%0A glob: 'app/templates/**/*.html'%0A %7D%0A %7D,%0A @@ -961,16 +961,139 @@ jshint'%5D +, function () %7B%0A return gulp.src(paths.app.templates.glob, %7Bbase: paths.app.dir%7D)%0A .pipe(gulp.dest(paths.build.dir));%0A%7D );%0A%0Agul...