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
41645c94ef2e938f5b7577d0ddcb9d885d4445fd
Check api expression at beginning.
commonLib/serverLib/lib/spec.js
commonLib/serverLib/lib/spec.js
'use strict'; let passport = require('passport'); let cookie = require('cookie-signature'); let auth = require('./auth'); let userLib = require('./user')(); let db = require('./databaseConfig'); let logger = require('./logging').getLogger(__filename); let expressWinston = require('express-winston'); let winstonCloudWa...
JavaScript
0
@@ -2458,35 +2458,40 @@ ginalUrl.match(/ +%5E%5C/ api +%5C/ /) === null) %7B%0A @@ -2710,19 +2710,24 @@ .match(/ +%5E%5C/ api +%5C/ /) === n
a01a6f9c193473e91fb81ddf86ccd09a17c5893a
update stats doc about templating
src/widgets/stats/stats.js
src/widgets/stats/stats.js
import React from 'react'; import ReactDOM from 'react-dom'; import { bemHelper, prepareTemplateProps, getContainerNode } from '../../lib/utils.js'; import autoHideContainerHOC from '../../decorators/autoHideContainer.js'; import headerFooterHOC from '../../decorators/headerFooter.js'; import StatsComponent from ...
JavaScript
0.000003
@@ -849,32 +849,172 @@ y%5D Body template +, provided with %60hasManyResults%60,%0A * %60hasNoResults%60, %60hasOneResult%60, %60hitsPerPage%60, %60nbHits%60, %60nbPages%60, %60page%60, %60processingTimeMS%60, %60query%60 %0A * @param %7Bstr
e6bf4379708baa7870ca625671c4ba96977d33dd
make sure to unlock account before testing against quorum
packages/truffle/test/scenarios/migrations/quorum.js
packages/truffle/test/scenarios/migrations/quorum.js
const MemoryLogger = require("../memorylogger"); const CommandRunner = require("../commandrunner"); const path = require("path"); const assert = require("assert"); const Reporter = require("../reporter"); const sandbox = require("../sandbox"); const Web3 = require("web3"); describe("migrate with [ @quorum ] interface"...
JavaScript
0
@@ -898,16 +898,133 @@ etId();%0A + const accounts = await web3.eth.getAccounts();%0A await web3.eth.personal.unlockAccount(accounts%5B0%5D, %22%22, 8000);%0A %7D);%0A%0A
229d9dd8b9baed4245c17e5f8c1dac466efb2b19
fix for bundle exec
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var browserify = require('gulp-browserify'); var mochaPhantomJS = require('gulp-mocha-phantomjs'); var mocha = require('gulp-mocha'); var watch = require('gulp-watch'); var run = require('gulp-run'); var rename = require('gulp-rename'); var gutil = require('gulp-util'); var uglify = require(...
JavaScript
0
@@ -4881,37 +4881,46 @@ ec(' -sass --help %3E /dev/null 2%3E&1' +bundle exec sass --help',%7Bsilent:true%7D ).co
28db27b361f9c14cae13aad83b1dfaf0318223f9
rewrite async example in es7
examples/async/flyfile.js
examples/async/flyfile.js
export default function* () { yield this.clear("dist") yield this .source("src/*.txt") .filter(s => this.defer(transform)(s, { time: 1000 })) .filter(s => s.toUpperCase()) .target("dist") } function transform (source, options, cb) { setTimeout(() => { cb(null, source.split("").reverse().join(...
JavaScript
0.000003
@@ -8,24 +8,30 @@ default +async function * () %7B%0A @@ -26,17 +26,16 @@ tion -* () %7B%0A yiel @@ -30,21 +30,168 @@ () %7B%0A -yield +const transform = (source, options, cb) =%3E %7B%0A setTimeout(() =%3E %7B%0A cb(null, source.split(%22%22).reverse().join(%22%22))%0A %7D, options.time)%0A ...
fa6d6d2bf016fe5a6f1efa3d93d6b5da8c49b2d0
Fix error when translating entire document
src/main.js
src/main.js
/* light-i18n main */ /* jshint browser: true */ // Base function. (function (global) { "use strict"; var languageDialect = (function(lang) { window.location.search.slice(1).split("&").some(function (searchTerm) { if (searchTerm.indexOf("lang=") === 0) { lang = searchTerm.split("=").slice(1).join("=...
JavaScript
0.000006
@@ -1,71 +1,4 @@ -/* light-i18n main */%0A/* jshint browser: true */%0A// Base function.%0A (fun @@ -776,10 +776,41 @@ res. -ok +status %3E= 200 && res.status %3C 300 ) %7B%0A @@ -825,19 +825,20 @@ console. -log +info (%22succes @@ -1646,11 +1646,12 @@ ole. -log +warn (%22Co @@ -2066,24 +2066,24 @@ ancestor) %7...
da85a4b4ce1973ad8676c1c6a0bd918df4f76080
add getters for text and author on story prototype
js/story_controller.js
js/story_controller.js
/** * Story controller * Used to get process info about a story such as url, title, and type */ HN.Story = (function(){ function HNStory(storyInfo){ this.storyInfo = storyInfo; }; HNStory.prototype.url = function() { //for ask or show HN stories if(this.isLocalHNUrl()){ return HN.askUrl + this.storyInfo['...
JavaScript
0
@@ -1116,24 +1116,186 @@ %7C%7C '';%0A%09%7D;%0A +%09HNStory.prototype.text = function()%7B%0A%09%09return this.storyInfo%5B'text'%5D %7C%7C '';%0A%09%7D;%0A%09HNStory.prototype.author = function()%7B%0A%09%09return this.storyInfo%5B'by'%5D %7C%7C '';%0A%09%7D;%0A %09HNStory.pro
1b351ed17960493126d65fcd0d053f1937a05bd8
add option identifier
client.js
client.js
/** * Installs the Vue-Remote Client * Vue Plugin to utilize the Authority server model * * @module vue-remote/client * @author Justin MacArthur <macarthurjustin@gmail.com> * @version 1.0.4 * * @param {Object} Vue * @param {Object} [options] */ module.exports.install = function(Vue, options) { Vue.Remot...
JavaScript
0.000002
@@ -647,16 +647,79 @@ %7C%7C 8080%0A + options.identifier = options.identifier %7C%7C 'identifier' %0A @@ -1983,16 +1983,24 @@ ers%5BJson +%5Boptions .identif @@ -2003,16 +2003,17 @@ ntifier%5D +%5D %0A%0A @@ -2093,24 +2093,153 @@ Event) =%3E %7B%0A + //Event.callback.a...
1d40145d525a1cc23dff419d0afdf96b21ba19ff
Fix comment typos.
src/Parser/Core/Modules/Items/BFA/Raids/Uldir/ConstructOvercharger.js
src/Parser/Core/Modules/Items/BFA/Raids/Uldir/ConstructOvercharger.js
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { calculateSecondaryStatDefault} from 'common/stats'; import { formatPercentage, formatNumber } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; /** * Construct Overcharger - * Equipe: Your atta...
JavaScript
0.000016
@@ -301,17 +301,16 @@ * Equip -e : Your a @@ -360,9 +360,10 @@ by -6 +21 for
928ad11a07d9abdb4935f8ed6fc9c252bb69e2c3
Fix ThComponent classnames ordering (#673)
src/defaultProps.js
src/defaultProps.js
import React from 'react' import classnames from 'classnames' // import _ from './utils' import Pagination from './pagination' const emptyObj = () => ({}) export default { // General data: [], loading: false, showPagination: true, showPaginationTop: false, showPaginationBottom: true, showPageSizeOptions...
JavaScript
0
@@ -4702,16 +4702,25 @@ ssnames( +'rt-th', classNam @@ -4724,17 +4724,8 @@ Name -, 'rt-th' )%7D%0A
e4e2724f547b67c31a0a89897c92750db4ca6dc3
Use internal functions
lib/node_modules/@stdlib/ndarray/base/buffer/lib/main.js
lib/node_modules/@stdlib/ndarray/base/buffer/lib/main.js
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
JavaScript
0
@@ -806,16 +806,863 @@ s' );%0A%0A%0A +// FUNCTIONS //%0A%0A/**%0A* Returns a zero-filled generic array.%0A*%0A* @private%0A* @param %7BNonNegativeInteger%7D size - buffer size%0A* @returns %7BArray%7D zero-filled generic array%0A*/%0Afunction generic( size ) %7B%0A%09var buf;%0A%09var i;%0A%0A%09buf = %5B%5D;%0A%09fo...
7091cb60120862ffa60add119a628e7307a5c845
Change code for help videos
src/Umbraco.Web.UI.Client/src/views/common/dialogs/help.controller.js
src/Umbraco.Web.UI.Client/src/views/common/dialogs/help.controller.js
angular.module("umbraco") .controller("Umbraco.Dialogs.HelpController", function ($scope, $location, $routeParams, helpService, userService) { $scope.section = $routeParams.section; $scope.version = Umbraco.Sys.ServerVariables.application.version + " assembly: " + Umbraco.Sys.ServerVariables.applica...
JavaScript
0
@@ -1379,174 +1379,8 @@ eos; -%0A%0A %09 angular.forEach($scope.videos, function (obj) %7B%0A %09 obj.thumbnail = obj.thumbnail.replace(/(%5C.%5B%5Cw%5Cd_-%5D+)$/i, '_thumb$1');%0A %09 %7D); %0A
1f6102db47dade5212088e6a5bd321a76c9d9306
clean missing examples
lib/clean.js
lib/clean.js
const { execSync } = require('child_process'); const glob = require('glob'); const { logger: parentLogger } = require('./logger'); const Task = require('./cli-spinner'); const logger = parentLogger.child('clean', 'clean'); module.exports = function clean(envs) { const task = new Task('clean'); const startTime = l...
JavaScript
0.00031
@@ -394,16 +394,31 @@ st/node6 + examples/node6 ');%0A
dc95474af6ce8e0621aa3ce8fd98c4613670c8b2
Set connection state in sockConn for observability
src/client/js/lib/socketConn.js
src/client/js/lib/socketConn.js
/* -*- js2-basic-offset: 2; indent-tabs-mode: nil; -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80; */ "use strict"; require("sockjs"); let Sock = window.SockJS, Genfun = require("genfun"), {addMethod} = Genfun, {clone, init} = require("./proto"), {partial, forEach, contains, without} = require("l...
JavaScript
0
@@ -505,16 +505,53 @@ = url;%0A + conn.state = can.compute(%22close%22);%0A conn.o @@ -1274,16 +1274,42 @@ else %7B%0A + conn.state(msg.type);%0A forE
3bbada4e1d63432e470a683b300d57126c5635bf
remove console.log() [#718]
src/dependencies.js
src/dependencies.js
/* This Source Code Form is subject to the terms of the MIT license * If a copy of the MIT license was not distributed with this file, you can * obtain one at http://www.mozillapopcorn.org/butter-license.txt */ define([], function(){ var DEFAULT_DIRS = { "popcorn-js": "../external/popcorn-js", "cs...
JavaScript
0
@@ -828,51 +828,8 @@ %22%22;%0A - console.log( match, replacement );%0A
1c9edd52c9bb2ba8b57f4a75eb974686a2fea55c
Disable popup notifications
js/prompt.js
js/prompt.js
"use strict"; var FRAME_ID = "#eyebrowse-frame"; var TEMPLATE_HTML = {}; // only request the bubble every BUBBLE_THRESHOLD milliseconds var BUBBLE_THRESHOLD = 5 * 60 * 1000; // 5 minutes var LAST_BUBBLE = Date.now() - BUBBLE_THRESHOLD; // we should initially show the bubble function truncate(str, length) { if (st...
JavaScript
0.000002
@@ -4984,16 +4984,52 @@ %0A + // disable notifications%0A // setup(r
af60b6f1982acaad51b689a80d21828ff0d04d60
fix sorting after duplication
web/app/assets/javascripts/formeditor/duplicate.js
web/app/assets/javascripts/formeditor/duplicate.js
/* Implements functions that allow duplicating sections and questions. * It works by copying the DOM of that element and adjusting the IDs * for that question/section to an unused one. */ /* @public * Shows/hides the duplication buttons on sections/questions. * @param enable if the buttons should be shown/hidden ...
JavaScript
0.00002
@@ -2833,16 +2833,63 @@ r(elm);%0A + $(%22.sortable-question%22).sortable(%22refresh%22);%0A this.c
364c9f5e3738b42fd48e5dbbfc936753739f27a4
add getTask
scripts/services/task.js
scripts/services/task.js
'use strict'; app.factory('Task', function(FURL, $firebase, Auth) { var ref = new Firebase(FURL); var tasks = $firebase(ref.child('task')).$asArray(); var user = Auth.user; }
JavaScript
0.000001
@@ -176,5 +176,136 @@ r;%0A%0A -%7D +%0A%09var Task = %7B%0A%09%09all: tasks,%0A%0A%09%09getTask: function(taskId) %7B%0A%09%09%09return $firebase(ref.child('tasks').child(taskId));%0A%09%09%7D,%0A%09%09%0A%09%7D;%0A%0A%0A%7D);
e09b38b0317575fce51957b019ccc6e526c3ee53
fix reply instead of embed
src/commands/Ondemand/Arcane.js
src/commands/Ondemand/Arcane.js
'use strict'; const Command = require('../../Command.js'); const EnhancementEmbed = require('../../embeds/EnhancementEmbed.js'); const arcanes = require('../../resources/arcanes.json'); /** * Displays the response time for the bot and checks Warframe's servers to see if they are up */ class Arcane extends Command {...
JavaScript
0
@@ -1185,21 +1185,21 @@ Manager. -reply +embed (message
abb7fab6fe426539a422b87bb304e3c451c0b9c1
Migrate to bigpipe 0.6
client.js
client.js
pipe.once('dependencies::initialise', function init(pagelet) { 'use strict'; // // We don't need to have any other information from the pagelet then the // placeholders/elements that contain our packages-pagelet placeholders. // pagelet = $(pagelet.placeholders); // // Show more rows when we click on ...
JavaScript
0.000001
@@ -21,17 +21,16 @@ ies: -: initiali se', @@ -25,17 +25,17 @@ initiali -s +z e', func
5d5feee5c694c6583eedec69f1a9ee8795431eec
correct typo
src/app/components/msp/application/confirmation/i18n/data/en/index.js
src/app/components/msp/application/confirmation/i18n/data/en/index.js
module.exports = { pageTitle: '<i class="fa fa-check success" aria-hidden="true"></i> Your application has been submitted.', secondTitle: 'What happens next', nextStep1: "<strong>Important:</strong> Keep your reference number – write it down, or <a>print this page</a> for your records", nextStep2: "Allow 21 bus...
JavaScript
0.999967
@@ -466,17 +466,16 @@ e eligib -i le for M
5d9a81b97376bbbb026d0992732fd3f1c134be22
Add `defer` tag to universal script tags, fixes #13
library/webpack-loaders/react-universal-server-loader.js
library/webpack-loaders/react-universal-server-loader.js
const { relative } = require('path') module.exports = ReactUniversalServerLoader function ReactUniversalServerLoader(source, map) { const filename = relative(this.options.context, this.resourcePath) const importPath = relative(this.context, this.resourcePath) const id = filename.replace(/[/\.]/g, '_') return ...
JavaScript
0
@@ -892,16 +892,22 @@ %3Cscript +defer src='$%7Bs
551fdff3a3568214e4084bec905963fdb1f0a286
Add alert
src/main/webapp/servlet.js
src/main/webapp/servlet.js
/**Copyright 2019 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distri...
JavaScript
0.000002
@@ -2023,10 +2023,36 @@ OST%0A%7D);%0A + alert(%22Data Deleted%22); %0A%7D
41f8aa268d296b318f0ee241bd6304328905f964
Use console.error instead of alert if XMLHTTP cannot be created
client.js
client.js
var map = null; var legend = document.getElementById('legend'); function initMap() { // Create a map object and specify the DOM element for display. map = new google.maps.Map(document.getElementById('map'), { center: { lat: 38.922239, lng: -95.794675 }, disableDefaultUI: true, styles: s...
JavaScript
0.000001
@@ -4790,13 +4790,21 @@ -alert +console.error ('Gi
d7097661af13bc30d32c6ca2cee6cdbb40f991b9
fix app to App
src/main.js
src/main.js
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import VueRouter from 'vue-router' import Buefy from 'buefy' import db from 'baqend' import App from './app' import router from './router' db.connect('restle...
JavaScript
0.000198
@@ -259,17 +259,17 @@ from './ -a +A pp'%0Aimpo
8216a0577d58c69b97f46f29994aa3d70256e74c
fix error calculating starting bg position in FF with 'centeredStart' calcType !BUGFIX
src/ui/ParallaxBackground.js
src/ui/ParallaxBackground.js
/* global define, window */ define(['jquery', 'tmclasses/tmclasses'], function(jQuery, tmclasses){ var __ParallaxBackground = tmclasses.create({ init: function(){ this.__parent(arguments); if(this.elm){ this.constructor.window.on('load resize scroll', jQuery.proxy(this._changeHandler, this)); } } ,p...
JavaScript
0
@@ -1241,16 +1241,258 @@ on-y');%0A +%09%09%09%09%09%09%09//-- FF doesn't return the 'background-position-y', derive from regular 'background-position'%0A%09%09%09%09%09%09%09if(typeof _startingPosition === 'undefined')%7B%0A%09%09%09%09%09%09%09%09_startingPosition = this.elm.css('background-position').split(' ')%5B1...
d3d46137ffedae3e825d896bc9c30e9f41a7c1c9
Tweak hot reload setup.
src/make-webpack-config.js
src/make-webpack-config.js
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var AdvancedVariables = require('postcss-advanced-variables'); var merge = require('webpack-merge'); var prettyjson = require('prettyjson'...
JavaScript
0
@@ -2349,32 +2349,81 @@ ,%0A%09%09%09plugins: %5B%0A +%09%09%09%09new webpack.optimize.OccurenceOrderPlugin(),%0A %09%09%09%09new webpack.
264a4ea9ad9697ff8468b7350d5a04629ee0f655
fix gulp
gulpfile.js
gulpfile.js
'use strict'; var path = require('path'); var gulp = require('gulp'); var eslint = require('gulp-eslint'); var excludeGitignore = require('gulp-exclude-gitignore'); var mocha = require('gulp-mocha'); var istanbul = require('gulp-istanbul'); var nsp = require('gulp-nsp'); var plumber = require('gulp-plumber'); var cover...
JavaScript
0.000002
@@ -1333,23 +1333,16 @@ %0A %7D%0A%0A -return gulp.src @@ -1346,29 +1346,8 @@ src( -path.join(__dirname, 'cov @@ -1352,16 +1352,19 @@ overage/ +**/ lcov.inf @@ -1366,17 +1366,16 @@ v.info') -) %0A .pi
0c9cf4de35ee5ae57c8201d9e18753c457e30146
Generalize parameter name in validateRelationship function
test/commonValidations.js
test/commonValidations.js
/** * Validate the composition of a path, course, lesson identifier * * @param {Object} jsonData - JSON object containing the data elements. This must be formatted as {"<id>": {...id: "<id>"...}...} * @returns {String[]} invalidIds - Array of invalid id's. Those containing something other than lowercase letters and...
JavaScript
0.000021
@@ -1746,26 +1746,27 @@ rEach((c -urrentPath +hildElement ) =%3E %7B%0A @@ -1769,26 +1769,27 @@ %7B%0A c -urrentPath +hildElement %5BchildAt @@ -1892,18 +1892,19 @@ h(%5Bc -urrentPath +hildElement %5Bpar
152a0ba7c7f83896f8c69f7c6a12387e1ff8accc
add fill method. which fill DOM cube sides with appropriate values
script.js
script.js
function Cube (element_id) { var _DOM = document.getElementById(element_id); this.DOM = _DOM; var sides = ['front','top','bottom','back','left','right']; for (i in sides) {this[sides[i]]=['z','-y','y','-z','-x','x'][i]} return this; } var cube = new Cube('cube3d') // main cube object
JavaScript
0.000006
@@ -28,17 +28,16 @@ %7B%0D%0A%09var -_ DOM = do @@ -84,17 +84,16 @@ s.DOM = -_ DOM;%0D%0A%0D%0A @@ -226,16 +226,251 @@ %5Bi%5D%7D%0D%0A%0D%0A +%09function fill () %7B // fill DOM cube sides with appropriate values%0D%0A%09%09for (i in sides) %7B%0D%0A%09%09%09var element = document.getElementById(sides%5Bi%5D);%...
44cb8522ebff01f93cfc0d9aa5172dd1ce800b76
document timeout property of enyo.Async.js
source/ajax/Async.js
source/ajax/Async.js
/** _enyo.Async_ is the base kind for handling asynchronous operations. _enyo.Async_ is an **Object**, not a **Component**; thus, you may not declare an _Async_ in a _components_ block. If you want to use _Async_ as a component, you should probably be using <a href="#enyo.WebService">enyo.WebService</a> instead...
JavaScript
0
@@ -666,12 +666,8 @@ de.%0A -%09%0A%0A%0A */%0Ae @@ -718,16 +718,193 @@ Object,%0A +%09published: %7B%0A%09%09/**%0A%09%09%09if set to a non-0 value, this is the number of milliseconds to%0A%09%09%09wait after the _go_ call before failing with the %22timeout%22 error.%0A%09%09*/%0A%09%09timeout: 0%0A%09%7D,%0A %09/...
8ac5517b8a96e0171d359734acaabf5e182ebf6c
Fix undefined variable
website/addons/github/static/github-node-cfg.js
website/addons/github/static/github-node-cfg.js
'use strict'; var $ = require('jquery'); var bootbox = require('bootbox'); var $osf = require('js/osfHelpers'); var GithubConfigHelper = (function() { var updateHidden = function(val) { var repoParts = val.split('/'); $('#githubUser').val($.trim(repoParts[0])); $('#githubRepo').val($.trim...
JavaScript
0.966099
@@ -107,16 +107,68 @@ ers');%0A%0A +var nodeApiUrl = window.contextVars.node.urls.api;%0A%0A var Gith
a411ad2d2c947d1a8727ff46d9f0951a0b7c7c28
disable webrtc
js/qbMain.js
js/qbMain.js
/* * QuickBlox JavaScript SDK * * Main SDK Module * */ var config = require('./qbConfig'); // Actual QuickBlox API starts here function QuickBlox() {} QuickBlox.prototype = { init: function(appId, authKey, authSecret, debug) { if (debug && typeof debug === 'boolean') config.debug = debug; else if (de...
JavaScript
0.000001
@@ -619,16 +619,19 @@ %0A + // WebRTC @@ -1099,24 +1099,27 @@ , conn);%0A + // this.webrtc
a95cfe5057a06baa7d8756b14d93e0d727bbcec0
Fix linux issue with process.env usage
source/load.entry.js
source/load.entry.js
/** * 中国蚁剑::前端加载模块 * 开写: 2016/04/23 * 更新: 2016/05/10 * 作者: 蚁逅 <https://github.com/antoor> */ 'use strict'; // 添加源码目录到全局模块加载变量,以提供后边加载 const path = require('path'); const Module = require('module').Module; Module.globalPaths.push(path.join(process.env.AS_WORKDIR, 'source')); // 开始加载时间 let APP_START_TIME = +new D...
JavaScript
0.000004
@@ -205,16 +205,54 @@ Module;%0A +const %7Bremote%7D = require('electron');%0A Module.g @@ -277,16 +277,23 @@ th.join( +remote. process.
660dc232d161beca09808c9733a4233c95d36a7f
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -1178,28 +1178,29 @@ s.execFileSync('/usr/bin/git +'
6d429321d9a9ab8e5245472f3b59928466e58627
Fix lint
src/utils/transformBundle.js
src/utils/transformBundle.js
import Promise from 'es6-promise/lib/es6-promise/promise.js'; export default function transformBundle ( source, transformers ) { if ( typeof source === 'string' ) { source = { code: source, map: null }; } return transformers.reduce( ( previous, transformer ) => { let result = transformer( previous ) ...
JavaScript
0.000032
@@ -1,8 +1,11 @@ +// import P @@ -313,16 +313,17 @@ evious ) +; %0A%0A%09%09if (
324e04f68bc87c7c0f14bcc6eb5c0ad37ca0d95d
Add parens for clarity
src/components/CommentStream.js
src/components/CommentStream.js
import { connect } from 'react-redux'; import CommentList from './CommentList'; const getVisibleComments = (comments, currentTime) => { return comments .filter((streamedComment) => streamedComment.time <= currentTime) .map((streamedComment) => streamedComment.comment); }; const mapStateToProps = (state) =>...
JavaScript
0
@@ -174,32 +174,33 @@ amedComment) =%3E +( streamedComment. @@ -219,16 +219,17 @@ entTime) +) %0A .ma @@ -251,16 +251,17 @@ ent) =%3E +( streamed @@ -276,16 +276,17 @@ comment) +) ;%0A%7D;%0A%0Aco
f69fdcf1dd22a7926b6cab19c4fec288ecb77277
add comment
test/config/karma.unit.js
test/config/karma.unit.js
module.exports = function(karma) { karma.set({ basePath: '../../', frameworks: [ 'jasmine', 'browserify' ], files: [ 'test/spec/**/*Spec.js' ], reporters: [ 'dots' ], browsers: [ 'PhantomJS' ], singleRun: false, autoWatch: true, browserNoActivityTimeout: 30000, ...
JavaScript
0
@@ -273,16 +273,52 @@ true,%0A%0A + // fixing slow browserify build%0A brow
74f9a52677892cd7486375e8543cb1f7af29de9a
Remove long-outdated logging.
examples/trivial/About.js
examples/trivial/About.js
import React, { Component } from 'react'; import css from './trivial.css'; class About extends Component { componentWillMount() { this.props.mutator.greetingParams.replace({ greeting: 'Hi', name: 'Kurt' }); } handleSubmit(e) { e.preventDefault(); this.props.mutator.greetingParams.replace({ gree...
JavaScript
0.000001
@@ -427,69 +427,8 @@ ) %7B%0A - console.log('RENDR ABOUT');%0A console.log(this.props);%0A
3769e2ebdd6cce15f06c990958a5d4ab90b75e49
Remove old code comments.
src/main.js
src/main.js
import Vue from 'vue' import Resource from 'vue-resource' import { sync } from 'vuex-router-sync' import store from './store' import router from './router' import App from './components/App.vue' // import { domain, fromNow } from './filters' // Google charts window.google.charts.load('current', { 'packages': ['corec...
JavaScript
0
@@ -191,55 +191,8 @@ vue' -%0A// import %7B domain, fromNow %7D from './filters' %0A%0A// @@ -348,519 +348,8 @@ e)%0A%0A -// register filters globally%0A// Vue.filter('fromNow', fromNow)%0A// Vue.filter('domain', domain)%0A//%0A// Vue.directive('progress', %7B%0A// bind: function () %7B%7D,%0A// update: function...
c06cda5cbb36e14594dc2aa44d307fa9da2adca1
Add JS HTML methods assignment
week-9/JavaScript/DOM-manipulation/home_page.js
week-9/JavaScript/DOM-manipulation/home_page.js
// DOM Manipulation Challenge // I worked on this challenge [by myself, with: ]. // Add your JavaScript calls to this page: // Release 0: // Release 1: // Release 2: // Release 3: // Release 4: // Release 5:
JavaScript
0
@@ -76,18 +76,16 @@ ith: %5D.%0A -%0A%0A // Add y @@ -119,17 +119,16 @@ s page:%0A -%0A // Relea @@ -137,28 +137,395 @@ 0:%0A -%0A%0A%0A%0A// Release 1:%0A%0A%0A +document.getElementById(%22release-0%22).className = %22done%22;%0A%0A// Release 1:%0Adocument.getElementById(%22release-1%22).style.display = %22none%...
edaa19ec8156d47da69968637839b6e71d942524
fix inverted login
modules/github-individual-project/view/handler.js
modules/github-individual-project/view/handler.js
'use strict'; const Octokat = require('../../../lib/server').server.plugins.github.Octokat; module.exports = { redirect: function (request, reply) { if (typeof request.session.get('github-username') === 'string' && typeof request.session.get('github-password') === 'string') { reply().redirect(...
JavaScript
0.000012
@@ -332,14 +332,45 @@ thub -/login +-individual-project/choose-repository ');%0A @@ -434,45 +434,14 @@ thub --individual-project/choose-repository +/login ');%0A
4d7a0b8467b8f91bffca85cd917c5e634e159c52
Allow nesting
src/vgps3/loader/loadmask.js
src/vgps3/loader/loadmask.js
/** * Copyright 2012 Victor Berchet. * * VisuGps3 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ /** * @fileoverview Modal overlay used while loading. * @author Victor Berchet <victor@suumit.com> */ goog.provide('vgps3.loa...
JavaScript
0
@@ -502,16 +502,117 @@ opup_;%0A%0A +/**%0A * @type %7Bnumber%7D Count the number of nested calls%0A * @private%0A */%0Avgps3.loadMask.opened_ = 0;%0A%0A%0A /**%0A * S @@ -1280,16 +1280,44 @@ ();%0A %7D%0A + vgps3.loadMask.opened_++;%0A %7D;%0A%0A/**%0A @@ -1436,32 +1436,64 @@ _.isInDocument() +& --vgps3.loadMas...
a8ecdcf4cadb66ee89768e012f82402ee96bafe5
Fix console.err syntax error
codechecks.js
codechecks.js
const { join } = require("path"); const fs = require("fs"); const { codechecks } = require("@codechecks/client"); const CodeChecksReport = require("eth-gas-reporter/lib/codechecksReport"); /** * Consumed by codecheck command when user's .yml lists * `eth-gas-reporter/codechecks`. The reporter dumps collected * data...
JavaScript
0.998859
@@ -995,19 +995,19 @@ console. -err +log (message
2681c78c35e2ae5afd14fcf33e4e4c2fa53812a3
add error messages to UI
src/middlewares/callAPI.js
src/middlewares/callAPI.js
// @flow import { push } from "react-router-redux" type param = { dispatch: Function, getState: Function } /** Middleware to simplify code and reduce the need for boilerplate in Redux actions. * This follows the REQUEST, SUCCESS, FAILURE terminology for action names. */ const callAPI = ({ dispatch, getState }: par...
JavaScript
0.000001
@@ -1089,17 +1089,18 @@ detail%7D%60 +, %0A - )%0A @@ -1246,24 +1246,25 @@ ng: true +, %0A %7D %0A %7D)%0A @@ -1251,24 +1251,25 @@ rue,%0A %7D +, %0A %7D)%0A%0A @@ -1544,16 +1544,17 @@ .token%7D%60 +, %0A @@ -2452,16 +2452,17 @@ json +, %0A @@ -2463,32 +2463,33 @@ ...
3a1904584f97bb5775d1c5dea6105283223b1513
Fix bug in activity elements publish
app/server/publish.js
app/server/publish.js
import { Projects } from '../lib/collections/projects.js'; import { Settings } from '../lib/collections/settings.js'; import { Activities } from '../lib/collections/activities.js'; import { ActivityElements } from '../lib/collections/activity_elements.js'; import { Flows } from '../lib/collections/flows.js'; import { C...
JavaScript
0
@@ -3989,25 +3989,25 @@ sh('activity -E +e lements', fu
a1325c735b568df745494276dade83dc35c50f2d
Improve "empty" generated results when no propName
src/main.js
src/main.js
const _ = require('lodash') const React = require('react') const PropTypes = require('./prop-types') let options let initialized = false const wrapPropTypes = () => { initialized = true // Adds a .type key which allows the type to be derived during the // evaluation process. This is necessary for complex types ...
JavaScript
0.997783
@@ -968,25 +968,24 @@ ame) =%3E -%5B propName %5D,%0A boo @@ -976,16 +976,33 @@ propName + ? %5BpropName%5D : %5B %5D,%0A boo @@ -1078,24 +1078,35 @@ propName) =%3E + propName ? (%7B %5BpropNam @@ -1120,16 +1120,20 @@ pName %7D) +: %7B%7D ,%0A stri @@ -1154,24 +1154,36 @@ =%3E propName + %7C%7C 'string'...
323bf8f2b9903242cf0172c1dc0548834b301272
Handle case where more than one thing can get in the queue
lib/entry.js
lib/entry.js
// A passthrough read/write stream that sets its properties // based on a header, extendedHeader, and globalHeader // // Can be either a file system object of some sort, or // a pax/ustar metadata entry. module.exports = Entry var TarHeader = require("./header.js") , tar = require("../tar") , assert = require("as...
JavaScript
0.000001
@@ -2537,26 +2537,29 @@ o emit?%0A -if +while (this._inde @@ -2568,32 +2568,49 @@ %3C this._queueLen + && !this._paused ) %7B%0A var ch
f33980d1be4747fc562f227badae79060c9d316d
fix button disable
website/static/js/home-page/ShareWindowDropzone.js
website/static/js/home-page/ShareWindowDropzone.js
var m = require('mithril'); var $osf = require('js/osfHelpers'); var waterbutler = require('js/waterbutler'); var AddProject = require('js/addProjectPlugin'); require('css/quick-project-search-plugin.css'); require('loaders.css/loaders.min.css'); require('css/dropzone-plugin.css'); var Dropzone = require('dropzone'...
JavaScript
0.000001
@@ -2630,24 +2630,49 @@ 'disabled') +.css(%22cursor%22, %22pointer%22) ;%0A s @@ -2689,17 +2689,17 @@ enable, -3 +2 00);%0A%0A @@ -2888,16 +2888,27 @@ $('# +ShareButton ').remov
531e32d9d84bb76b16c51b4dffbed1ce5a26f781
fix forgedJWT e2e test
test/e2e/forgedJwtSpec.js
test/e2e/forgedJwtSpec.js
/* * Copyright (c) 2014-2020 Bjoern Kimminich. * SPDX-License-Identifier: MIT */ describe('/', () => { describe('challenge "jwtUnsigned"', () => { it('should accept an unsigned token with email jwtn3d@juice-sh.op in the payload ', () => { browser.executeScript('localStorage.setItem("token", "eyJhbGciOiJ...
JavaScript
0
@@ -781,39 +781,39 @@ %22eyJ -hbGciOiJIUzI1NiIsInR5cCI6IkpXVC +0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni J9.e @@ -881,86 +881,64 @@ oxNT -A4NjM5NjEyLCJleHAiOjk5OTk5OTk5OTl9.dFeqI0EGsOecwi5Eo06dFUBtW5ziRljFgMWOCYeA8yw +gzMDM3NzExfQ.gShXDT5TrE5736mpIbfVDEcQbLfteJaQUG7Z0PH8Xc8 %22)')
0bfc154b74a5d2d1155231ed5a71270429e29130
Support a wider range of background filter values
modules/ui/sections/background_display_options.js
modules/ui/sections/background_display_options.js
import { event as d3_event, select as d3_select } from 'd3-selection'; import { prefs } from '../../core/preferences'; import { t, localizer } from '../../core/localizer'; import { svgIcon } from '../../svg/icon'; import { uiSection } from '../section'; import { utilDetect } from '../../util/detect'; export ...
JavaScript
0
@@ -648,11 +648,8 @@ = 0 -.25 ;%0A @@ -691,9 +691,9 @@ s ? -2 +3 : 1
4d8a6f7b8cd647bd1f6655ef17609bb33359ffa6
update json
script.js
script.js
var schedule = require('node-schedule'); var exec = require('child_process').exec; var buildCMD = 'npm run awesome && npm run build && npm run push'; var j = schedule.scheduleJob('* 2 3 * * *', function(){ console.log('Go!'); try { exec(buildCMD, function(error, stdout, stderr) { if (!error) { con...
JavaScript
0.000001
@@ -180,9 +180,9 @@ ('* -2 +8 3 *
4b6c71fd41902f3471409476dedb0c92ad60a98e
Fix startup
app/server/startup.js
app/server/startup.js
import { CronJob } from "cron"; import prerenderio from "prerender-node"; import timesyncServer from "timesync/server"; import Cloudflare from "cloudflare"; import AcrofeverGameManager from "./imports/AcrofeverGameManager"; import LobbyManager from "./imports/LobbyManager"; import { SendReminderEmails } from "./import...
JavaScript
0.000004
@@ -889,16 +889,23 @@ geCache( +Meteor. settings
08c307dc33ac5c3cd04e23eb2a7ce9985b140631
update footer
src/components/Footer/Footer.js
src/components/Footer/Footer.js
import React, { Component } from 'react' export default () => ( <footer className="pt-3 pb-5 text-center"> <hr /> 저작권 &copy; 2017 niceb5y 모든 권리 보유. </footer> )
JavaScript
0.000001
@@ -133,16 +133,21 @@ py; 2017 +-2018 niceb5y
cfda4edd13359e5c35d2faaab96998fcb7968cdc
move Parse.initialize to top of script.js
js/script.js
js/script.js
$(document).ready(function(){ window.onLoad = function(){ //query //list //destroyAll } $('#classroom-enter').click(function(){ Parse.initialize("HnLswO6JpYmn4QrX2ClgADpA3HN2GFiVS1V95RP3", "IhuA6xPlWchDYpifcYQ39V18VAe9Dh44TgWBD2t1"); event.preventDefault(); var request = $(this).value; //var Classroo...
JavaScript
0.000001
@@ -29,222 +29,222 @@ %7B%0A%0A%09 -window.onLoad = function()%7B%0A%09%09//query%0A%09%09//list%0A%09%09//destroyAll%0A%09%7D%0A%0A%09$('#classroom-enter').click(function()%7B%0A%09%09Parse.initialize(%22HnLswO6JpYmn4QrX2ClgADpA3HN2GFiVS1V95RP3%22, %22IhuA6xPlWchDYpifcYQ39V18VAe9Dh44TgWBD2t1%22); +Parse.initialize(%2...
5d34a6aad182c4f8fdc93911c245c1fc1df2a5fb
Fix comment
controllers/table-controller.js
controllers/table-controller.js
"use strict"; class TableController { constructor(table, fixtures) { this.table = table; this.fixtures = fixtures; this.tableCopy = []; this.output = []; this.outcomes = [ [3, 0], // home win [1, 1], // draw [0, 3] // home loss ]; } /* * Tie break criteria: * 1...
JavaScript
0
@@ -318,22 +318,8 @@ * 1. - Points%0A * 2. Nam
03966383d2d12c8516afcc20005b7bca767d4cdd
Fix bug with more than 3 children
js/script.js
js/script.js
/*! MIT License | github.com/kingalfred/canvas */ /* * Replace title */ if (document.title === 'Log in to canvas') { document.title = 'King Alfred School Canvas'; } /* * Add "Check Homework button" */ if (window.location.href.indexOf('courses')) { var text = 'Calendar'; var course = window.location.pathname...
JavaScript
0
@@ -578,260 +578,10 @@ ) %7B%0A -%0A -// Add initial option selector%0A $('#calendar_header').append(%0A %60%0A %3Cselect id=%22calendar_children%22 onchange=%22location = this.value;%22%3E%0A %3Coption class=%22calendar_child%22%3ESelect Option%3C/option%3E%0A %3C/select%3E%0A %60%0A );%0A%0A ...
f043f8cdb11c57b215a4846f52e928dec93f8a78
Update popup.js
js/popup.js
js/popup.js
<script type="text/javascript"> function website() { var homepage = window.alert("http://fsoftwarecoorperations.github.io/fsoftware-coorperations.github.io/"); } </script>
JavaScript
0.000001
@@ -158,16 +158,192 @@ o/%22);%0A%7D%0A +function error() %7B %0A var ans = confirm(%22Anything was wrong.%5CnRetry?%22);%0A if (ans == true) %7B%0A window.alert(%22Hello World%22);%0A %7D else %7B%0A window.alert(%22Hello World%22);%0A %7D%0A%7D%0A %3C/script
3757163a34c0096490527a0e512fcdca5fd3a74d
Refactor hashed async.parallel call to handle any number of async requests.
controllers/users/collection.js
controllers/users/collection.js
var request = require('request'), async = require('async'), helpers = require('../../helpers'), _ = require('underscore'); function chronological(granuals) { return _.sortBy(granuals, function(granual) { return parseInt(granual.created_at); }) } function convertTweetsTimeType(tweets) { t...
JavaScript
0
@@ -938,113 +938,50 @@ ion -requestEndpoints(endpoints, callback) %7B%0A async.parallel(%7B%0A first: function(callback) %7B%0A request( +endpointsToRequests(endpoints) %7B%0A return endp @@ -989,13 +989,13 @@ ints -%5B0%5D, +.map( func @@ -1004,105 +1004,29 @@ on(e -rr, res, body) %7B%0A callb...
0e8b9dc517702862b44e0d79ea4460b9b07cd95b
Revert "Update error.js"
lib/error.js
lib/error.js
/* * Copyright (c) 2013 Timo Behrmann. All rights reserved. */ var handler = require('node-restify-errors'); module.exports.handle = function (errors, req, res, options, next) { return res.send(new handler.InvalidContentError(errors)); };
JavaScript
0
@@ -63,55 +63,8 @@ */%0A%0A -var handler = require('node-restify-errors');%0A%0A modu @@ -152,49 +152,81 @@ end( -new handler.InvalidContentE +400, %7B%0A status: 'validation failed',%0A e rror -( +s: errors -) +%0A %7D );%0A%7D; -%0A
a8fd3a60069d2cb4728ee0b0003e1ddb96c843c7
add to Clues tab display for any starred Across or Down clues
js/clues.js
js/clues.js
var clues_render_to = 'clues_js'; function render_clues() { document.getElementById(clues_render_to).innerHTML = ''; clue_initial_letters(); clue_lengths(); } function isLetter(str) { return str.length === 1 && str.match(/[a-z]/i); } function clue_initial_letters() { var puzdata = PUZAPP.puzdata; var...
JavaScript
0
@@ -160,16 +160,37 @@ gths();%0A + starred_clues();%0A %7D%0A%0Afunct @@ -2387,12 +2387,1129 @@ (chart);%0A%7D%0A%0A +function starred_clues() %7B%0A%0A var puzdata = PUZAPP.puzdata;%0A var starred_clues = %5B%5D;%0A var starred_clues = getStringsPreOrPostfixedWith(puzdata.across_clues, '*', 'A');%0A ...
9a5634bc7acde065455ad490045523eecb5d8aba
Remove listeners before adding them to avoid duplicate listeners
js/script.js
js/script.js
(function(){ // path to the logo images that will be displayed var LOGO_URL; // select the logo url and render the correct page function init() { setLogoUrl(); $(document).ready(function() { resolveLocation(); }) } // set all of the event listeners that a...
JavaScript
0
@@ -417,24 +417,61 @@ orrect page%0A + $(window).off(%22hashchange%22);%0A $(wi @@ -498,32 +498,32 @@ %22, function() %7B%0A - reso @@ -635,16 +635,60 @@ clicked%0A + $(%22#main-search-btn%22).off(%22click%22);%0A @@ -853,24 +853,66 @@ esults page%0A + $(%22#sear...
313fb2e0f3d474d17099ab3b12e44ae04a47fd4f
Remove stray semicolon
gulpfile.js
gulpfile.js
argv = require("yargs").argv; browserSync = require("browser-sync") cache = require("gulp-cached") clip = require("gulp-clip-empty-files") dateFormat = require("dateformat") del = require("del") ghPages = require("gulp-gh-pages") gulp = require("gulp") gutil = require("gulp-util") include = require("gulp-include") lite...
JavaScript
0.999961
@@ -21,17 +21,16 @@ s%22).argv -; %0Abrowser
93a137d86f0d96fea48fd26e63b91eb5f260eca7
Isolate that sucker
test/events/rapid.test.js
test/events/rapid.test.js
const fs = require('fs-extra') const {Fixture} = require('../helper') const {EventMatcher} = require('../matcher'); [false, true].forEach(poll => { describe(`rapid events with poll = ${poll}`, function () { let fixture, matcher beforeEach(async function () { fixture = new Fixture() await fixtur...
JavaScript
0.998696
@@ -615,33 +615,45 @@ poll) %7B%0A it -( +.stress(500, 'understands coa
248c0b0cc4a65b7cc648cc7a7dfcf7bfe398c0d8
add fixtures for `get` and `list` routes
test/fixtures/campaign.js
test/fixtures/campaign.js
exports.createMinimal = { payload: { "name": "minimal notification", "live": false, "push_time": "now", "messages": [ { "language": "fr", "title": "Salut le monde !", "body": "Comment ça va ?" } ] }, ...
JavaScript
0.000002
@@ -993,8 +993,1185 @@ 201%0A%7D;%0A +%0Aexports.get = %7B%0A token: %7B%0A %22campaign_token%22: %223396955c1a7fe0005d76973fca00b44a%22%0A %7D,%0A reply: %7B%0A %22campaign_token%22: %223396955c1a7fe0005d76973fca00b44a%22,%0A %22from_api%22: true,%0A %22dev_only%22: true,%0A ...
917d28e7483b1595bfebc00dc792c0c67c31cfad
Fixing punctuation
commit.js
commit.js
var child_process = require('child_process') var fs = require('fs'); var max_sleep = 300 var step = 10 //Added a comment that achieves no real goal. //Non-blocking loop //Adjustable step //Status line //Add a rough time indicat
JavaScript
0.999999
@@ -220,8 +220,9 @@ indicat +o
1b3433f9208766f8025ab65833a5431f5feed833
fix whitespace
converter/formats/protractor.js
converter/formats/protractor.js
const locatorBy = function (locatorType) { switch (locatorType) { case "xpath": return "xpath"; case "id": return "id"; case "css selector": return "css"; case "link text": return "linkText"; case "class": return "className"; case "name": return "name"; } ...
JavaScript
0.004694
@@ -19,17 +19,16 @@ function - (locator
07870f6a2deba4bc96a8be0fe20a1bcbb400f11e
update more specific code comments
lib/error.js
lib/error.js
'use strict'; if (!Error.captureStackTrace) throw new Error('Error.captureStackTrace does not exist!'); var util = require('./util'); var BE = require('./base_error'); var v = require('./validator').v; var check = require('./validator').check; var BaseError = BE.BaseError; var Errors = { template: null, }; exp...
JavaScript
0
@@ -350,173 +350,524 @@ s;%0A%0A -exports.setErrorStackSeparator = function(separator) %7B%0A BE.ERROR_STACK_SEPARATOR = separator;%0A%7D;%0Aexports.setErrorStackSeparator('%5Cn==== Pre-Error-Stack ====%5Cn');%0A +/**%0A * set the separator for multi error stacks.%0A *%0A * Default to %22%5Cn==== Pre-Error-Stack ==...
230f3702f788a03b97ab2e8f9914d45a01cb6464
format to lint
src/components/Header/Header.js
src/components/Header/Header.js
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react' import {defineMessages, Formatte...
JavaScript
0.0001
@@ -1146,16 +1146,28 @@ ayName %7D +%0A %3E%0A
83b4745e891fb4cc457501eed78a1bcb1a1cf875
Include more unit test to validate template parse with nested template tags
spec/templateSpec.js
spec/templateSpec.js
/* * templateSpec.js * * Distributed under terms of the MIT license. */ /* global describe, it, expect */ var requirejs = require("requirejs"); requirejs.config({ baseUrl: __dirname + "/../src/", nodeRequire: require }); describe("Setup", function() { it("require", function() { expect(requi...
JavaScript
0
@@ -1218,24 +1218,315 @@ );%0A %7D);%0A%0A + it(%22Multi tamplate tags%22, function () %7B%0A var template = %22%3Ctemplate%3E%3Ctemplate%3E%3Cspan/%3E%3C/template%3E%3C/template%3E%22 ;%0A var result = parser.extractTemplate(template);%0A var expected = %22'%3Ctemplate%3E%3Cspan/%3E%3C/temp...
61b7194c8ccdd39f07994d64953695ff85e06c61
rename getReadOnly to isReadOnly
nodeserver/src/client/js/WidgetBase/WidgetBase.js
nodeserver/src/client/js/WidgetBase/WidgetBase.js
"use strict"; define(['jquery', 'logManager'], function ( _jquery, logManager) { var WidgetBase; WidgetBase = function (options) { //this.logger --- logger instance for the Widget var loggerName = "WidgetBase", msg = ""; if (optio...
JavaScript
0
@@ -1755,19 +1755,18 @@ ototype. -get +is ReadOnly
c22da9f952c0a9d112284ae97ae47f00773bf863
stop data from submitting without position
js/script.js
js/script.js
// Require filesystem API (used to save data to file later on) const fs = require('fs'); // ipc is used to open and communicate with the data viewer and other additional windows. const ipc = require('electron').ipcRenderer; const user = require('os').userInfo(); // Define some elements. var pg = { team: document.ge...
JavaScript
0
@@ -2498,16 +2498,8 @@ == ' -Position '%0A
1281ea3973376265e0d25b575110f10bddcb5416
Make jsdoc the default task
gulpfile.js
gulpfile.js
var gulp = require('gulp'), jsdoc = require('gulp-jsdoc'), docsSrcDir = './assets/js/**/*.js', docsDestDir = './docs/js', jsDocTask; jsDocTask = function() { return gulp.src(docsSrcDir) .pipe( jsdoc(docsDestDir, { path: './node_modules/jaguarjs-jsdoc', applicatio...
JavaScript
0.998521
@@ -581,16 +581,49 @@ );%0A%7D;%0A%0A +gulp.task('default', %5B'jsdoc'%5D);%0A gulp.tas @@ -645,17 +645,16 @@ cTask);%0A -%0A gulp.tas
e9067acbfbf60adbf648c2c84f6584b275077b7b
Update lib/exfat: Add constants & ExFAT.test()
lib/exfat.js
lib/exfat.js
var EXFAT = module.exports
JavaScript
0
@@ -1,27 +1,1955 @@ var -EXFAT = module.exports +FSError = require( './error' )%0Avar ExFAT = module.exports%0A%0AExFAT.FIRST_DATA_CLUSTER = 2%0AExFAT.LAST_DATA_CLUSTER = 0xFFFFFFF6%0A%0AExFAT.CLUSTER_FREE = 0x00000000 // free cluster%0AExFAT.CLUSTER_BAD = 0xFFFFFFF7 // cluster contains bad sector%0AExFAT.CLUSTER_EN...
347eabdc8f4aff8507bacc165bd375ffe4a044da
Add test for maths with string
test/helpers/math_test.js
test/helpers/math_test.js
/** * Handlebars Helpers Tests: Math Helpers * http://github.com/assemble/handlebars-helpers * Copyright (c) 2013 Jon Schlinkert, Brian Woodward, contributors * Licensed under the MIT License (MIT). */ // node_modules require('should'); var Handlebars = require('handlebars'); // Local helpers require('../../lib/...
JavaScript
0.00327
@@ -2898,32 +2898,356 @@ %7D);%0A %7D);%0A%7D);%0A%0A +describe('sum', function() %7B%0A describe('%7B%7Bsum %22value%22 10%7D%7D', function() %7B%0A it('should return the sum of multiple numbers.', function() %7B%0A var source = '%7B%7Bsum value 10%7D%7D';%0A var template = Handlebars.compile(source);...
b8f90d21758fc96c16ebf77bbb3aa56fee8bf56c
Allow empty comment text
application/routes.js
application/routes.js
/* These are routes as defined in https://docs.google.com/document/d/1337m6i7Y0GPULKLsKpyHR4NRzRwhoxJnAZNnDFCigkc/edit# Each route implementes a basic parameter/payload validation and a swagger API documentation description */ 'use strict'; const Joi = require('joi'), handlers = require('./controllers/handler'); mo...
JavaScript
0.005394
@@ -2668,32 +2668,42 @@ xt: Joi.string() +.allow('') ,%0A user @@ -3410,32 +3410,42 @@ xt: Joi.string() +.allow('') ,%0A user
bfb2995c6d06888d683dffa3a3cd6e4c449c3b0b
Fix incrementing the wrong counter
Terp.js
Terp.js
define(function() { 'use strict'; function Terp() { } var validTerpScripts = new WeakMap(); // modified version of JSON.stringify with specialized whitespace rules function stringifyStepOrBlock(stepOrBlock, indent) { if (typeof stepOrBlock[0] === 'string') { // step mode function s...
JavaScript
0.000042
@@ -3327,33 +3327,33 @@ lock%5Bi%5D.length; -i +j ++) %7B%0A
a938613afdc0891b64073323b173c364db519972
RSVP timestamp, boolean
js/rsvp.es6
js/rsvp.es6
/* RSVP Section */ import _ from 'lodash'; import $ from 'jquery'; import {activate, deactivate, isActive, toggle} from "./active.es6"; const MAX_PLUS_NAMES = 4; /* Save info for a guest to Firebase data: { attending: boolean; names: string[]; email: string; address: string; } */ export func...
JavaScript
0.999956
@@ -458,16 +458,76 @@ = data;%0A + data.timestamp = firebase.database.ServerValue.TIMESTAMP;%0A return @@ -850,16 +850,26 @@ ending') + === 'yes' ,%0A na
27c42633061780dd3e030ded48155e461eef55d5
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -823,12 +823,13 @@ (outFD, data +.
fb5df2ca35a5a33357c674c3db597df182589465
Remove tags in favor of a better solution
src/components/MDX/CovidForm.js
src/components/MDX/CovidForm.js
/** @jsx jsx */ import React, { useEffect } from 'react' //eslint-disable-line import { jsx, Styled } from 'theme-ui' import styled from '@emotion/styled' import PropTypes from 'prop-types' const Modal = styled.div` position: absolute; top: 0; content: ''; transition: all 0.3s; z-index: 2; background: bla...
JavaScript
0.000002
@@ -1604,77 +1604,8 @@ '',%0A - tags: %5B%0A %7B%0A name: 'Covid',%0A %7D,%0A %5D,%0A @@ -1620,24 +1620,24 @@ dal: false,%0A + showPr @@ -1926,73 +1926,8 @@ tes%0A - const tags = %5B%0A %7B%0A name: 'Covid',%0A %7D,%0A %5D%0A @@ -2062,29 +206...
e2a872a1d0558d7b6e5d6e6dbd66be4688d260b0
Add contentEditable to <pre/>
script.js
script.js
function format(flat) { var map = {}; flat.forEach(function(a) { map[a["@id"]] = a; }); var ontology = {}; (function(a) { ontology.version = a["http://www.w3.org/2002/07/owl#versionInfo"][0]["@value"]; ontology.label = a["http://www.w3.org/2000/01/rdf-schema#label"].find(function(a) { ret...
JavaScript
0
@@ -4339,16 +4339,39 @@ ($(%22%3Cpre + contentEditable='true' /%3E%22).tex
87ea4c854d6a273ad9f32a2e8d03a829059aeb3e
Update YT Native Center Layout/js/script.js
js/script.js
js/script.js
document.body.classList.remove('site-left-aligned'); if(document.getElementById('watch7-video-container').style.backgroundColor == 'rgb(0, 0, 0)')document.body.classList.add('black-video-background')
JavaScript
0
@@ -46,16 +46,52 @@ gned');%0A +var tmp = setInterval(function()%7B%0A if(docum @@ -228,9 +228,62 @@ ground') +;%0A%09if(document.readyState)clearInterval(tmp);%0A%7D,250); %0A
61d4de01c905dde9ad4ad0f6d1e1cf4fbaef8283
no typing text
src/components/Sidebar/index.js
src/components/Sidebar/index.js
import React from 'react' import Logo from './logo' import styled from 'styled-components' import Link from 'gatsby-link' import { TypingText } from '../Intro' import {MobileHide} from '../MobileHide' const Sidebar = ({ className, color, bgColor }) => ( <div className={className}> <Link to="/"> <Logo fill=...
JavaScript
0.99688
@@ -433,35 +433,8 @@ p%3E %0A - %3Cp%3E%3CTypingText /%3E%3C/p%3E%0A
ada5742a18dd26049a2681d101e6c7b6f2a91dba
use new aliases
gulpfile.js
gulpfile.js
var gulp = require("gulp"); var gutil = require("gulp-util"); var webpack = require("webpack"); var WebpackDevServer = require("webpack-dev-server"); var webpackConfig = require("./webpack.config.js"); // The development server (the recommended option for development) gulp.task("default", ["webpack-dev-server"], funct...
JavaScript
0.000033
@@ -306,31 +306,16 @@ server%22%5D -, function() %7B%7D );%0A%0A// B @@ -637,37 +637,9 @@ %22%5D, -function(event) %7B%0A%09%09gulp.run( +%5B %22web @@ -653,21 +653,17 @@ ild-dev%22 -);%0A%09%7D +%5D );%0A%7D);%0A%0A @@ -722,28 +722,10 @@ ld%22%5D -, function() %7B%7D);%0A%0A%0A +); %0A%0Agu
63e3d946d430b1e4ddf63052365f56d31db193a5
Update index.js
src/components/Sidebar/index.js
src/components/Sidebar/index.js
import React from 'react' import Logo from './logo' import styled from 'styled-components' import Link from 'gatsby-link' import {MobileHide} from '../MobileHide' const Sidebar = ({ className, color, bgColor }) => ( <div className={className}> <Link to="/"> <Logo fill={color || "#000"} hoverfill={color ? '...
JavaScript
0.000002
@@ -366,16 +366,121 @@ Hide%3E%0A + %3Cp%3EFour, simply divided. Three, cut vertically down the middle. Zero, cut horizontally.%3C/p%3E%0A %3C/p%3E %0A %3C/M
081c0fab13e45237b23010275e37a7be900123f0
rename help -> repository to website
src/menu.js
src/menu.js
'use strict'; const electron = require('electron'); const view = require('./menu/view'); module.exports = function menu(page) { const insertCSS = require('./insert-css')(page); function addTheme(label, file) { return { label, file, click() { insertC...
JavaScript
0
@@ -875,18 +875,15 @@ l: ' -Repository +Website ',%0A
875147c8d65c425980196b5923b0b7a79282da5d
add new props
src/components/Sidebar/index.js
src/components/Sidebar/index.js
import React from 'react' import Profile from '../Profile' import SocialLinks from '../SocialLinks' import MenuLinks from '../MenuLinks' import * as S from './styled' const Sidebar = () => ( <S.SidebarWrapper> <Profile /> <SocialLinks /> <MenuLinks /> </S.SidebarWrapper> ) export default Sidebar
JavaScript
0
@@ -15,15 +15,51 @@ rom -' +%22 react -' +%22%0Aimport propTypes from %22prop-types%22%0A %0Aimp @@ -75,17 +75,17 @@ le from -' +%22 ../Profi @@ -86,17 +86,17 @@ /Profile -' +%22 %0Aimport @@ -112,17 +112,17 @@ ks from -' +%22 ../Socia @@ -127,17 +127,17 @@ ialLinks -' +%22 %0Aimport @@ -151,17 +151,17 ...
a02f9adab874e2a4ccc2791b24c3b1ff289a18c5
Add support for CommonJS
js/stone.js
js/stone.js
/* * Copyright (c) 2014, Fabien LOISON <http://flozz.fr> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this ...
JavaScript
0
@@ -1589,48 +1589,492 @@ */%0A%0A -%0Avar Stone = (function(window, undefined + (function (root, factory) %7B%0A // Assign to module.exports if the environment supports CommonJS.%0A // If root.Stone is already defined/truthy, use a Browser version nonetheless.%0A // %5E Useful for nw.js or atom-shell where you m...
7f8e47351a5e012588534311d97eaa1cd75bf6cd
Add debouncing canvas resizing
script.js
script.js
JavaScript
0
@@ -0,0 +1,815 @@ +(function() %7B%0A%09'use strict';%0A%0A%09var scaleFactor,%0A%09 canvas = document.getElementById('canvas'),%0A%09 ctx = canvas.getContext('2d'),%0A%09 CANVAS_DEFAULT_WIDTH = 640,%0A%09 CANVAS_DEFAULT_HEIGHT = 480;%0A%0A%09(function initCanvasResizing() %7B%0A%09%09var debounceTmt = null...
df4b72b77cf2b8e0ab20680bae748e1a2627f516
Update script.js
js/script.js
js/script.js
(function(window, document, undefined) { window.onload = init; function init() { //get the canvas var canvas = document.getElementById("mapcanvas"); var c = canvas.getContext("2d"); var width = 1280; var height = 720; var blockSize = 16; var leftright = "...
JavaScript
0.000002
@@ -682,18 +682,23 @@ -// +alert(%22 18, 19, @@ -701,16 +701,19 @@ 19, 0, 1 +%22); %0A @@ -804,18 +804,23 @@ -// +alert(%22 3, 4, 5, @@ -821,16 +821,19 @@ 4, 5, 6 +%22); %0A @@ -921,17 +921,25 @@ -// +alert(%22 1, 2 ,3 +%22); %0A @@ -1113,18 +1113,23 @@ -//...
0a8d45f29f5dfead2db3c3989562e9e93d58347d
update Anchor
src/Anchor/Anchor.js
src/Anchor/Anchor.js
/** * @file Anchor component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import CircularLoading from '../CircularLoading'; import TipProvider from '../TipProvider'; import Theme from '../Theme...
JavaScript
0.000002
@@ -286,16 +286,17 @@ vider';%0A +%0A import T @@ -317,17 +317,16 @@ Theme';%0A -%0A import U @@ -564,28 +564,27 @@ %7D%0A%0A -clickHandler +handleClick = e =%3E @@ -714,28 +714,27 @@ %7D;%0A%0A -focusHandler +handleFocus = e =%3E @@ -905,26 +905,25 @@ %7D;%0A%0A -blurH +h andle +Blu r = e =...
a782113c70ddb445a36b097d7eaf743383e55300
Fix bad module for templates
gulpfile.js
gulpfile.js
var gulp = require('gulp'), gulpif = require('gulp-if'), concat = require('gulp-concat'), rimraf = require('gulp-rimraf'), templateCache = require('gulp-angular-templatecache'), minifyHtml = require('gulp-minify-html'), es = require('event-stream'), ...
JavaScript
0.000001
@@ -1935,16 +1935,17 @@ older))) +; %0A%7D);%0A%0Agu @@ -2831,12 +2831,39 @@ che( +%7B%0A module: 'app'%0A %7D )%0A );%0A%7D @@ -2858,12 +2858,13 @@ %7D)%0A );%0A%7D +%0A
4b97e3c9adf65220e2baa093070b8c4380470bbc
add .only() helper to tests
test/lib/alloc-cluster.js
test/lib/alloc-cluster.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.000001
@@ -5271,16 +5271,530 @@ %7D);%0A%7D;%0A%0A +allocCluster.test.only = function testClusterOnly(desc, opts, t) %7B%0A if (typeof opts === 'number') %7B%0A opts = %7B%0A numPeers: opts%0A %7D;%0A %7D%0A if (typeof opts === 'function') %7B%0A t = opts;%0A opts = %7B%7D;%0A ...
970f28e4965a0943e1a2f50df3df90cc59151ab8
use default params
src/components/dialog/dialog.js
src/components/dialog/dialog.js
/** * @function UIDialog * @version 0.0.2 */ import {keyCodes, defaultClassNames} from '../../constants'; export default function UIDialog(userOptions) { let DOM, state = {}; const defaults = { dialog: '.js-dialog', openBtn: '.js-dialog-btn', closeBtn: ...
JavaScript
0.000001
@@ -109,112 +109,26 @@ ;%0A%0A%0A -export default function UIDialog(userOptions) %7B%0A%0A let DOM,%0A state = %7B%7D;%0A%0A const defaults = +const UIDialog = ( %7B%0A @@ -139,25 +139,18 @@ dialog -: += '.js-di @@ -171,24 +171,18 @@ openBtn -: += '.js-di @@ -208,23 +208,18...
f437947ee352f21c4b9c598edcb4488ece7a3314
Add support exact and isActive on NavLink
packages/components/components/sidebar/NavItem.js
packages/components/components/sidebar/NavItem.js
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import Icon from '../icon/Icon'; import NavMenu from './NavMenu'; const NavItem = ({ type, link, text, onClick, icon, list, color, className }) => { const content = ( <> {icon && <Icon fi...
JavaScript
0
@@ -198,16 +198,33 @@ e, link, + isActive, exact, text, o @@ -299,16 +299,66 @@ %3C +div className=%22flex flex-nowrap flex-items-center%22 %3E%0A @@ -435,32 +435,90 @@ %22mr1 -%22 /%3E%7D%0A %7Btext%7D + flex-item-noshrink%22 /%3E%7D%0A %3Cspan className=%22ellipsis inbl%22%3E%...
cfbd550ea390d87e2d9bc22c3470b899d8bac8ba
Add more functionality to the FakePebble object.
test/mocks/fake-pebble.js
test/mocks/fake-pebble.js
var FakePebble = (function () { var _Pebble = null; var eventListeners = { ready: [], appmessage: [], webviewclosed: [] }; var eventHandlers = { appmessage: [], notifications: [] }; return { addEventListener: addEventListener, sendAppMessage: sendAppMessage, showSimpleNotif...
JavaScript
0
@@ -48,16 +48,17 @@ = null;%0A +%0A var ev @@ -136,16 +136,17 @@ %5B%5D%0A %7D;%0A +%0A var ev @@ -199,16 +199,29 @@ cations: + %5B%5D,%0A url: %5B%5D%0A %7D; @@ -1175,16 +1175,99 @@ (url) %7B%0A + eventHandlers.openurl.forEach(function (handler) %7B%0A handler(url);%0A %7D);%0A %7D%0A%0A...
831b61fc877219da3958b552f7f9aa604f62eacc
use externalDocs.url
apis.js
apis.js
$(document).ready(function () { $.ajax({ type: "GET", url: "http://apis-guru.github.io/api-models/api/v1/list.json", dataType: 'json', cache: false, success: function (data) { var fragment = $(document.createDocumentFragment()); $.each(data, function (...
JavaScript
0
@@ -488,36 +488,162 @@ var -contact = info.contact %7C%7C %7B%7D +externalDocs = api.externalDocs %7C%7C %7B%7D;%0A var contact = info.contact %7C%7C %7B%7D;%0A var externalUrl = externalDocs.url %7C%7C contact.url ;%0A @@ -1378,25 +1378,25 @@ f='%22 + ( -contact.u +externalU rl %7C...
5f2dcd3236654562e108a3041d29ea0dfc095f02
Update script.js
js/script.js
js/script.js
(function(window, document, undefined) { window.onload = init; function init() { //get the canvas var canvas = document.getElementById("mapcanvas"); var c = canvas.getContext("2d"); var width = 512; var height = 288; var blockSize = 16; document.getE...
JavaScript
0.000002
@@ -372,244 +372,8 @@ %0A - //paint the screen%0A function paintscreen() %7B%0A for(var i = 0; i%3C 32; i++) %7B%0A for(var j = 0; j %3C 18; j++) %7B%0A paintblock(i, j);%0A %7D%0A %7D%0A %7D%0A %0A @@ -965,24 +...
37c95e17644503bfbd795663a6513ac1c6bfcf7e
fix top image bug
src/components/gallery/index.js
src/components/gallery/index.js
import React, { Component, PropTypes } from "react"; import ReactDOM from "react-dom"; import ImgFigure from "../imgFigure"; import config from "../../config"; import "./index.less"; const imagesData = require("../../data/imagesData.json"); (array => { array.forEach(item => { item.imageUrl = `${config.res...
JavaScript
0
@@ -4209,19 +4209,21 @@ = %5Bhalf -Img +Stage W - imgW @@ -4224,27 +4224,29 @@ - imgW, half -Img +Stage W%5D;%0A%0A
2d21719fcdf026e7dbf4f5cbc4136d65a42a8a04
Fix grammar (#33)
src/components/home/Features.js
src/components/home/Features.js
import Inferno from 'inferno' import IconArchitecture from '../icons/IconArchitecture' import IconCompatible from '../icons/IconCompatible' import IconIsomorphic from '../icons/IconIsomorphic' import IconModular from '../icons/IconModular' import IconSize from '../icons/IconSize' import IconSpeed from '../icons/IconSpe...
JavaScript
0.000027
@@ -1299,16 +1299,19 @@ %3Cp%3EOne +of the fast