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 |
|---|---|---|---|---|---|---|---|
2c3b3e24508ccf8c99993b40949ef24d952f8e47 | fix for application link | newadmin/app/scripts/controllers/MainController.js | newadmin/app/scripts/controllers/MainController.js | /*
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
*
* 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/license... | JavaScript | 0 | @@ -1257,35 +1257,57 @@
eate(application
-);%0A
+, function(newApp) %7B%0A
$sco
@@ -1327,27 +1327,38 @@
ns.push(
-application
+newApp);%0A %7D
);%0A
|
5c2f8ef2aedec8acd7eea4adf953d5537f7ca7e2 | Update test with example from Wikipedia. | test/test.js | test/test.js | var distance = typeof require === 'function' ? require('..') : window.distance;
var assert = typeof require === 'function' ? require('chai').assert : window.chai.assert;
describe('distance', function() {
it('should return a number', function() {
var value = distance('LEVENSHTEIN', 'LEVENSHTEIN');
assert.type... | JavaScript | 0 | @@ -576,17 +576,17 @@
ar value
-3
+1
= dista
@@ -594,24 +594,25 @@
ce('
-METRIC', 'EMRTCI
+KITTEN', 'SITTING
');%0A
@@ -633,17 +633,17 @@
al(value
-3
+1
, 3);%0A%0A
|
170052e0b9eebd06061454f97cf18fbb045862ea | Update webpack config ordering to be correct (#876) | webpack.config.base.js | webpack.config.base.js | process.traceDeprecation = true;
const path = require('path');
const ExtractTextPlugin = require( 'extract-text-webpack-plugin' );
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const postCSSConfig = require('./postcss.config.js');
const get = require('lodash/get');
const assign ... | JavaScript | 0 | @@ -1643,68 +1643,8 @@
%7B%0A
- loader: 'resolve-url-loader'%0A %7D,%0A %7B%0A
@@ -1875,24 +1875,85 @@
%7D%0A %7D
+,%0A %7B%0A loader: 'resolve-url-loader'%0A %7D,
%0A %5D%0A
|
1895b4f0f9c3c7092426e4f37c9bcabee841edb4 | Add regex in search by name | src/routes/searches.js | src/routes/searches.js | var passport = require('passport'),
express = require('express');
// Create a router to attractions
var router = express.Router();
// Find project working directory
var src = process.cwd() + '/src/';
var error = require(src + 'helpers/error'),
log = require(src + 'helpers/log')(module);
var georedis = req... | JavaScript | 0.000064 | @@ -987,85 +987,172 @@
= %5B
-%7Bname: text%7D, %7Bdescription: %7B $regex: text, $options: 'i' %7D%7D, %7Bcategory: text
+%0A %7Bname: %7B $regex: text, $options: 'i' %7D%7D, %7Bdescription: %7B $regex: text, $options: 'i' %7D%7D,%0A %7Bcategory: %7B $regex: text, $options: 'i' %7D
%7D... |
513b6b68653ede3509bc64578bd6db5198ec5dc3 | use proper variable | examples/poison-phases.js | examples/poison-phases.js | const toxy = require('..')
const proxy = toxy()
const rules = proxy.rules
const poisons = proxy.poisons
proxy
.forward('http://httpbin.org')
.rule(rules.probability(50))
// Global, incoming only traffic poisioning
proxy
.poison(poisons.slowOpen({ delay: 500 }))
.withRule(rules.method('GET'))
// Route level,... | JavaScript | 0.000066 | @@ -52,26 +52,25 @@
nst rules =
-pr
+t
oxy.rules%0Aco
@@ -83,18 +83,17 @@
isons =
-pr
+t
oxy.pois
|
505e4a80f0bf4d447bd405e2060b1085452c6440 | Fix redirect bug for new users | routes.js | routes.js | var server = require('./server'),
models = require('./models');
/*
* GET home page.
*/
exports.index = function(req, res) {
res.render('index', {
title: 'SwiftCODE',
error: req.flash('error')
});
};
/*
* GET lobby page.
*/
exports.lobby = function(req, res) {
res.render('lobby', ... | JavaScript | 0 | @@ -117,32 +117,120 @@
ion(req, res) %7B%0A
+ if (req.isAuthenticated()) %7B%0A res.redirect('/lobby');%0A return;%0A %7D%0A%0A
res.render('
@@ -1043,19 +1043,43 @@
er.save(
-);%0A
+function(err, saved) %7B%0A
@@ -1130,32 +1130,43 @@
+ return
res.redirect(... |
d4d3c6bba8659c520d8cf656bbcdc33614ae16ba | upgrade to angular2 RC1 | webpack.config.dist.js | webpack.config.dist.js | module.exports = {
entry: './angular2-bootstrap-confirm.ts',
output: {
filename: './angular2-bootstrap-confirm.js',
libraryTarget: 'umd',
library: 'ng2BootstrapConfirm'
},
externals: {
'angular2/core': {
root: ['ng', 'core'],
commonjs: 'angular2/core',
commonjs2: 'angular2/core... | JavaScript | 0 | @@ -203,24 +203,24 @@
%7B%0A '
+@
angular
-2
/core':
@@ -266,24 +266,24 @@
monjs: '
+@
angular
-2
/core',%0A
@@ -300,24 +300,24 @@
onjs2: '
+@
angular
-2
/core',%0A
@@ -328,24 +328,24 @@
amd: '
+@
angular
-2
/core'%0A
|
297415d4a47233308416e08e88d99de1259aa727 | Document the CSRF token var. | node_modules/generator-xtc/app/templates/server.js | node_modules/generator-xtc/app/templates/server.js |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Load some dependencies
var path = require('path');
var http = require('http');
var xtc = !process.env.xtcDev && !process.env.testRun
? require('xtc')
... | JavaScript | 0 | @@ -2512,48 +2512,8 @@
%0A%09//
-app.enable('csrf'); //
For
@@ -2572,16 +2572,100 @@
ml#csrf%0A
+%09// Generates a %7B%7Btoken%7D%7D template variable on each request%0A%09//app.enable('csrf');%0A%0A
%7D);%0A%0A%0Aif
|
fe6058d9df2ce0f38fe09fc688f28a1a001dbe37 | Fix a couple paths that got misdirected | angularjs-portal-home/src/test/karma.conf.js | angularjs-portal-home/src/test/karma.conf.js | // Karma configuration
// Generated on Wed Oct 22 2014 14:50:01 GMT-0500 (CDT)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... | JavaScript | 0.003779 | @@ -1375,18 +1375,22 @@
/webapp/
-js
+portal
/main.js
@@ -1443,18 +1443,22 @@
/webapp/
-js
+portal
/search/
|
52508e62e653af953dcb6cf0fd889647a6414119 | Update routes to have hipchat as a param instead | routes.js | routes.js | const Reporter = require('./src/Reporter');
const Verification = require('./src/Verification');
const Joi = require('joi');
module.exports = [
{
method: 'GET',
path: '/report/',
handler: Reporter,
config: {
validate: {
query: {
hipchat: Joi.string().required(),
site:... | JavaScript | 0 | @@ -423,16 +423,26 @@
ication/
+%7Bhipchat%7D/
',%0A h
@@ -473,24 +473,107 @@
config: %7B%0A
+ validate: %7B%0A query: %7B%0A id: Joi.required(),%0A %7D%0A %7D%0A
%7D%0A %7D%0A%5D%0A
|
1e58ebe302a5825d96764f54044675148146b47d | delete comment | server.js | server.js | var connect = require('connect');
var serveStatic = require('serve-static');
var port = (process.env.VCAP_APP_PORT || 3000);
var host = (process.env.VCAP_APP_HOST || 'localhost');
connect().use(serveStatic(__dirname)).listen(port,host);
//var app = connect().use(function(req, res){
// res.setHeader("Access-Cont... | JavaScript | 0 | @@ -238,247 +238,4 @@
t);%0A
-%0A//var app = connect().use(function(req, res)%7B%0A// res.setHeader(%22Access-Control-Allow-Origin%22, %22*%22);%0A //res.setHeader(%22Access-Control-Allow-Headers%22, %22Content-Type, Accept%22);%0A// %7D);%0A//app().use(serveStatic(__dirname)).listen(port,host);%0A
|
efb5b9bdf027d51792726eb0189e08c05aec6ec4 | Fix prop type. | client/src/new/common/PreviewTile.js | client/src/new/common/PreviewTile.js | import React from 'react'
import conf from '../../configuration'
const PREVIEW_TILE_WIDTH = 600
const PREVIEW_TILE_HEIGHT = 240
const PREVIEW_TILE_ZOOM_LEVEL = 14
const tileUrl = (latitude, longitude) => {
if (!latitude && !longitude) {
return 'url(/assets/placeimage-placeholder.png)'
}
return 'url(//api.ti... | JavaScript | 0 | @@ -1002,38 +1002,38 @@
React.PropTypes.
-number
+string
.isRequired,%0A l
@@ -1062,14 +1062,14 @@
pes.
-number
+string
.isR
|
ca192c1c245bc08649674f2bbd0224f5a910aeb7 | remove unused import | webpack.config.prod.js | webpack.config.prod.js | const path = require('path');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const webpack = require('webpack');
const baseConfig = require("./webpack.config.base");
const merge = require("webpack-merge");
module.exports = merge(baseConfig,
{
plugins: [
new UglifyJSPlugin(),
new webpack.D... | JavaScript | 0.000001 | @@ -1,34 +1,4 @@
-const path = require('path');%0A
cons
|
d619ebb10197450aa6ce1c9b617c3b447c1a14ac | Fix test after introduction of 'usePlaceholder' option in TypeSelector | node_modules/globi-search/test/addRemoveOptions.js | node_modules/globi-search/test/addRemoveOptions.js | var test = require('tape');
var TypeSelector = require('../lib/TypeSelector');
var PubSub = require('../lib/Mediator').PubSub;
var fixtures = F = {
option1: {
'label': 'label1',
'value': 'value1'
},
option2: {
'label': 'label2',
'value': 'value2'
},
option3: {
... | JavaScript | 0 | @@ -728,24 +728,298 @@
h, 2);%0A%7D);%0A%0A
+test('UsePlaceholder as default setting', function(t) %7B%0A t.plan(2);%0A%0A var testSelector = new TypeSelector();%0A t.equals(testSelector.options.length, 1);%0A%0A testSelector = new TypeSelector(%7BusePlaceholder: false%7D);%0A t.equals(testSelector.opti... |
bce68d783c7e6b7fb0a3314f9a617098ffa46ee0 | Fix opening bookmarks in an incognito window. | chrome/browser/resources/shared/js/cr/link_controller.js | chrome/browser/resources/shared/js/cr/link_controller.js | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview This file provides a class that can be used to open URLs based
* on user interactions. It ensures a consistent behavior when it ... | JavaScript | 0.000074 | @@ -4441,19 +4441,16 @@
rl: urls
-%5B0%5D
,%0A
@@ -4478,265 +4478,8 @@
ito%0A
- %7D, function(window) %7B%0A urls.forEach(function(url, i) %7B%0A if (i %3E 0)%0A chrome.tabs.create(%7B%0A url: url,%0A windowId: window.id,%0A s... |
7f3746b5a05b6f78c3cb150a4a749346b6e92c05 | use the right source map for better test errors | webpack.config.test.js | webpack.config.test.js | const nodeExternals = require('webpack-node-externals');
const path = require('path');
const isCoverage = process.env.NODE_ENV === 'coverage';
module.exports = {
output: {
devtoolModuleFilenameTemplate: '[absolute-resource-path]',
devtoolFallbackModuleFilenameTemplate: '[absolute-resource-path]?[hash]',
}... | JavaScript | 0.000001 | @@ -1027,33 +1027,8 @@
l: '
-inline-cheap-module-eval-
sour
|
257b61737cca1d740f0dd47f0d9fa56a91dac877 | modify menu order | src/app/pages/trade/history/history.module.js | src/app/pages/trade/history/history.module.js | /**
* Create with IntelliJ IDEA
* Project name : blur-admin-1.2.0
* Package name :
* Author : Wukunmeng
* User : wukm
* Date : 17-7-20
* Time : 上午11:16
* ---------------------------------
*
*/
(function () {
'use strict';
angular.module("BlurAdmin.pages.trade.history",[]).config(routeConfig);
/... | JavaScript | 0.000002 | @@ -715,16 +715,17 @@
order:
+5
0,%0A
|
8a8159ab2dea0e65323a577089f60ee9f70ce84b | add feature | deep-iterable.js | deep-iterable.js |
((module) => {
'use strict';
var createClassFromSuper = require('simple-class-utils').createClass.super.handleArgs;
var createClass = require('./create-class.js');
var isIterable = require('./utils/is-iterable.js');
var Root = require('./root.js').class;
var _key_iterator = Symbol.iterator;
class DeepIterabl... | JavaScript | 0 | @@ -1072,16 +1072,98 @@
);%0A%09%09%7D%0A%0A
+%09%09static LENGTHINESS_DEEPER(lengthiness) %7B%0A%09%09%09return lengthiness.length %3E 1;%0A%09%09%7D%0A%0A
%09%7D%0A%0A%09mod
|
389294f367edc921fea66b19a1d58b800fc482ed | Add id counter for events | s4-usb.js | s4-usb.js | var S4 = require('./s4');
var news = [
"Borussia Dortmund wins German championship",
"Tornado warning for the Bay Area",
"More rain for the weekend",
"Android tablets take over the world",
"iPad2 sold out",
"Nation's rappers down to last two samples"
];
var dgram = require('dgram');
var server = dgram.cre... | JavaScript | 0.000001 | @@ -834,16 +834,30 @@
ts = 0;%0A
+ var id = 0;%0A
rower.
@@ -884,24 +884,24 @@
unction() %7B%0A
-
rower.
@@ -1131,32 +1131,59 @@
ole.log(event);%0A
+ event.id = id++;%0A
if ('s
@@ -1418,16 +1418,40 @@
r e = %7B%0A
+ 'id': id,%0A
@@ -1932,24 +1932,38 @@
_count =... |
bca3e1f950e296bd7ebeb5d57ea31a11504d3eaa | Refresh assetHash on theme activation (#7457) | core/server/middleware/theme-handler.js | core/server/middleware/theme-handler.js | var _ = require('lodash'),
fs = require('fs'),
path = require('path'),
hbs = require('express-hbs'),
api = require('../api'),
config = require('../config'),
errors = require('../errors'),
i18n = require('../i18n'),
themeHandler;
themeHandler = {
// ### GhostLocals... | JavaScript | 0 | @@ -2208,16 +2208,81 @@
he = %7B%7D;
+%0A // reset the asset hash%0A config.assetHash = null;
%0A%0A
|
49cef5bd1cb15c47f9d265492fea6e68f376b92e | hello world | server.js | server.js | //require .env variables
const dotenv = require('dotenv');
dotenv.load();
//init modules
const Twit = require('twit');
const request = require('request');
//twitter authorisation
var T = new Twit({
consumer_key: process.env.CONSUMER_KEY,
consumer_secret: process.env.CONSUMER_SECRET,
access_token: process.env.AC... | JavaScript | 0.999981 | @@ -148,16 +148,19 @@
quest');
+%0A//
%0A%0A//twit
|
0bd1294d70457084bd0919238c63899f4a166dab | The 'author' property in data is now an object. | src/modules/data/sources/yox.data.source.picasa.js | src/modules/data/sources/yox.data.source.picasa.js | yox.data.sources.picasa = (function(){
var dataSourceName = "picasa",
picasaRegex = /^https?:\/\/picasaweb\.google\./,
picasaMatchRegex = /^https?:\/\/picasaweb\.google\.\w+\/([^\/#\?]+)\/?([^\/#\?]+)?(?:\?([^#]*))?/,
apiUrl = "http://picasaweb.google.com/data/feed/api/",
picasaCropSize... | JavaScript | 0.238462 | @@ -3766,16 +3766,24 @@
author:
+ %7B name:
image.m
@@ -3811,16 +3811,18 @@
it%5B0%5D.$t
+ %7D
%0A
|
27a97edce24693fb9c4e82fb18066cede69db2c0 | set null to pushState | sample.js | sample.js | $(function(){
'use strict';
// true: 小細工あり、false: 小細工なし
var flg = !location.search.match(/nostate/);
// 移動
function move_to_id(id){
$("html,body").animate({
scrollTop: $(id).offset().top
}, 500);
}
$("a").on("click", function(e){
e.preve... | JavaScript | 0.000007 | @@ -468,14 +468,18 @@
h%7D,
-%22%22, %22%22
+null, null
);%0D%0A
|
23ae8c880bbda9331d8dd252708d14b72889c050 | Move searchPortal ref function to constructor | draft-js-mention-plugin/src/MentionSuggestionsPortal/index.js | draft-js-mention-plugin/src/MentionSuggestionsPortal/index.js | import React, { Component } from 'react';
export default class MentionSuggestionsPortal extends Component {
// When inputting Japanese characters (or any complex alphabet which requires
// hitting enter to commit the characters), that action was causing a race
// condition when we used componentWillMount. By us... | JavaScript | 0 | @@ -103,16 +103,136 @@
nent %7B%0A%0A
+ constructor(props) %7B%0A super(props);%0A this.searchPortalRef = (element) =%3E %7B this.searchPortal = element; %7D;%0A %7D%0A%0A
// Whe
@@ -1451,31 +1451,16 @@
ref=%7B
-(element) =%3E %7B
this.sea
@@ -1468,29 +1468,19 @@
chPortal
- = element; %7D
+Ref
%7D%0... |
0fc2a0efd76d398e959b7ef00c79b6eccd669307 | update appView | src/js/app/views/appView.js | src/js/app/views/appView.js | /* ========================================
* CORS Planner - AppView Main
*
* Author: Wang Zhuochun
* Last Edit: 22/Jul/2012 09:19 PM
* ========================================
* <License>
* ======================================== */
define(function(require, exports) {
"use strict";
/*jshint browser:t... | JavaScript | 0 | @@ -447,23 +447,70 @@
,
-modules
+basketView = require(%22view/basketView%22)%0A , detail
View = r
@@ -522,23 +522,22 @@
e(%22view/
-modules
+detail
View%22)%0A
@@ -584,23 +584,16 @@
erView%22)
-%0A
;%0A%0A /
@@ -585,32 +585,39 @@
rView%22);%0A%0A //
+ render
initial App Vie
@@ -613,16... |
024f61d095d2b8fbc1e98f99d08cebf621058d3a | Fix enabled/disabled condition. Closes #2 | index.js | index.js | /**
* Module dependencies.
*/
var object = require('object-component');
var request = require('superagent');
var url = require('url');
var log = require('debug')('notifier-client');
/**
* Expose `NotifierClient` constructor.
*/
module.exports = NotifierClient;
var defaults = {
protocol: 'http',
path: '/api/... | JavaScript | 0 | @@ -1362,24 +1362,27 @@
%7B%0A return
+!!(
this.protoco
@@ -1435,16 +1435,17 @@
is.token
+)
;%0A%7D;%0A%0A/*
|
3b6defb594cd56e4241be951ae0fbe7b246039fd | Trim renderer HTML if selector is used | src/array/_processrendering/renderitemnode.js | src/array/_processrendering/renderitemnode.js | import parseBindings from '../../parsebindings';
import bindNode from '../../bindnode';
import unbindNode from '../../unbindnode';
import triggerOne from '../../trigger/_triggerone';
import initMK from '../../_core/init';
import matreshkaError from '../../_helpers/matreshkaerror';
import getNodes from '../../bindnode/_... | JavaScript | 0 | @@ -2948,16 +2948,23 @@
nnerHTML
+.trim()
;%0A
|
72ab2cbc533c12fac4cd9652565e2ad88b5e2aba | Update listFansWithInfo to provide fan speeds | index.js | index.js | const coap = require("coap");
const Rx = require("rxjs");
const RateLimiter = require("limiter").RateLimiter;
var limiter = new RateLimiter(1, 100);
const sendWithRateLimit = req => limiter.removeTokens(1, () => req.end());
const request = (reqOptions, body) => {
let req = coap.request(reqOptions);
if (body) {
... | JavaScript | 0 | @@ -1146,19 +1146,10 @@
p =%3E
+%0A
-%7B%0A return
lis
@@ -1157,16 +1157,21 @@
Fans(ip)
+%0A
.flatMap
@@ -1182,21 +1182,8 @@
s =%3E
- %7B%0A return
Rx.
@@ -1192,23 +1192,16 @@
servable
-%0A
.from(fa
@@ -1207,20 +1207,17 @@
ans)
+)
%0A
-
.
-conc
+fl
atMa
@@ -1224,16 +1224,22 @@
p(fa... |
02629bd424ba1d451054094f60000191d3adf358 | Output stuff | index.js | index.js | #!/usr/bin/env node
'use strict'
require('zeroconf')().tcp.publish({ type: 'ipp', host: 'ipp.printb.in', port: 80, name: 'printbin' })
| JavaScript | 0.999999 | @@ -27,16 +27,92 @@
trict'%0A%0A
+console.log('Now advertising the printbin printer on your local network.')%0A%0A
require(
|
bb914febfdc1f63045a63185d556bfead4d681b6 | Add React render() settings preset | src/components/Settings/Settings.reducers.js | src/components/Settings/Settings.reducers.js | import { SettingsActions } from './Settings.actions';
const settingsInitialState = {
currentPreset: 'DEFAULT',
showAdvancedSettings: false,
values: {
presetType: 'Default',
filler: '*',
lineLength: 60,
lineStart: 'console.log(',
lineEnd: ');',
charEscaper: "'",
variableConcatenateChar... | JavaScript | 0.000001 | @@ -1091,16 +1091,40 @@
il');%22,%0A
+ generalPostfix: %22%22,%0A
%7D, %0A
|
a3a4134431e0d0eb500a18c2259651d7028ad3f9 | Handle PhantomJS child process errors | server.js | server.js | 'use strict';
var app = require('./server/index');
var conf = require('./server/conf');
var logger = conf.logger;
var phantom = require('./server/phantom');
if (!module.parent) {
logger.info('Running in %s mode', conf.env);
var port = conf.port;
var fork = require('child_process').fork;
var phantomChild = f... | JavaScript | 0.000001 | @@ -528,16 +528,226 @@
%7D%0A %7D);
+%0A phantomChild.on('error', function (err) %7B%0A logger.error(%7Berr: err%7D, 'PhantomJS child process error');%0A %7D);%0A phantomChild.on('exit', function () %7B%0A logger.info('PhantomJS child process exited');%0A %7D);
%0A%0A app.
|
41dd05cf199d99ea41df790fe63eca56e373e5bb | test seconds increased | client/app/question_answer/question_answer.controller.js | client/app/question_answer/question_answer.controller.js | 'use strict';
function QuestionAnswerCtrl($scope, $http, $uibModal, socket, Auth, Modal, TimerService) {
/*
Constants
*/
var vm = this;
vm.successSeconds = 3;
vm.warningSeconds = 6;
vm.maxSeconds = 10;
vm.timer = TimerService.getTimer();
vm.newQuestionAnswer = {};
vm.states = [
{ value:... | JavaScript | 0.000001 | @@ -169,9 +169,10 @@
s =
-3
+10
;%0A
@@ -195,9 +195,10 @@
s =
-6
+20
;%0A
@@ -213,17 +213,17 @@
conds =
-1
+3
0;%0A%0A vm
|
f836986c93de874061216326999a749be578fbf5 | Remove debug | src/components/Statistics/Counter/Counter.js | src/components/Statistics/Counter/Counter.js | import React from 'react'
import cx from 'classnames'
import { container, defaultLabel, large, medium, small, success, warning, error } from './Counter.css'
const Counter = ({value, label, unit='', size='', color='', icon='', title=''}) => {
const labelSize = cx(medium, {
[large]: size === 'large',
[small]:... | JavaScript | 0.000001 | @@ -488,40 +488,8 @@
);%0A%0A
- console.log(size === 'small')%0A
co
|
1bb3fc3e1696bf4d1d5a1a23352a483f8314aabb | Update router.js | app/router.js | app/router.js | var Router = Ember.Router.extend({
location: 'history'
}); // ensure we don't share routes between all Router instances
Router.map(function() {
this.route('room', {path: 'room/:room_name'});
});
export default Router;
| JavaScript | 0.000002 | @@ -57,69 +57,8 @@
%0A%7D);
- // ensure we don't share routes between all Router instances
%0A%0ARo
|
8fad02dce282b5a7514697d189d213bc41b6e92f | Use PostCSS 5.0 API | index.js | index.js | var postcss = require('postcss');
module.exports = postcss.plugin('postcss-focus', function () {
return function (css) {
css.eachRule(function (rule) {
if ( rule.selector.indexOf(':hover') !== -1 ) {
var focuses = [];
rule.selectors.forEach(function (selector) {
... | JavaScript | 0 | @@ -135,16 +135,17 @@
css.
-each
+walk
Rule
+s
(fun
@@ -589,35 +589,24 @@
ctor
- + ', ' + focuses.join(', '
+s.concat(focuses
);%0A
|
cb2e38646e5e696c8c4da64b64e5a33e3f9f1dfd | Update router with showcase | app/router.js | app/router.js | /* AIDA Source Code */
/* Contributors located at: github.com/2nd47/CSC309-A4 */
// router middleware
var express = require('express');
var router = express.Router();
// middleware that is specific to this router
router.use(function timeLog(req, res, next) {
console.log('Time: ', Date.now());
next();
});
// cha... | JavaScript | 0 | @@ -3024,16 +3024,48 @@
e.name;%0A
+%09%09json.members.push(newMember);%0A
%09%7D%0A%09json
@@ -3406,24 +3406,351 @@
agraph);%0A%09%7D%0A
+%09json.showcase = %5B%5D;%0A%09var numShowcase = project.showcase.assetPaths.length;%0A%09for (i=0;i%3CnumShowcase;i++) %7B%0A%09%09var current_path = project.showcase.assetPath... |
ba21fc8bcd6f528d2532c03900fb950d55cc6674 | Clean Up valueTree | src/seeds/valueTree.js | src/seeds/valueTree.js | import blankTree from './blankTree';
import camelToUpperSnake from '../lib/camelToUpperSnake';
export default ({
defaultState = null,
selectorName = null,
actorName = null,
valueName = 'value'
} = {}) => {
const tree = blankTree();
const ACTION_TYPE = actorName && camelToUpperSnake(actor... | JavaScript | 0 | @@ -89,16 +89,93 @@
nake';%0A%0A
+/**%0A * Creates a state tree for representing and updating a single value%0A */%0A
export d
@@ -303,38 +303,131 @@
%3E %7B%0A
- const tree = blankTree();%0A
+%0A //// Start with a blank tree%0A const tree = blankTree();%0A%0A //// Generate Action Type from actorName (if... |
32a22569096d8f94ceef446b4f1bff1d87faa620 | Add territory ranking to user page | website/script/user.js | website/script/user.js | $(function() {
var jumboTron = {
$headerField: $("#jHeader"),
$bodyField: $("#jBody"),
init: function(header, body) {
this.header = header;
this.body = body;
this.render();
},
render: function() {
this.$headerField.html(this.header);
this.$bodyField.html(this.body);
}
}
var statTable = {
... | JavaScript | 0.000003 | @@ -2376,24 +2376,105 @@
rText: %22%22%7D,%0A
+%09%09%09%22territoryRanking%22: %7Bname: %22Territory%22, mouseOverText: %22%22, percentile: true%7D,%0A
%09%09%09%22strength
|
ddd7db2c686f200b57140b8e963cb37b577a75d8 | Update utilsTest.js | src/backend/rest/subscriber/test/utilsTest.js | src/backend/rest/subscriber/test/utilsTest.js | //utils Test
var utils = require('../controllerUtils.js');
var assert = require('assert');
//email tests
//invalid email returns false
var badEmail = "ojh12345@gmail";
var goodEmail = "ojh12345@yahoo.com";
//utils.validEmail(badEmail);
//utils.validEmail(goodEmail);
console.log(utils.invalidEmail(badEmail));
//asser... | JavaScript | 0.000001 | @@ -200,24 +200,27 @@
o.com%22;%0A
-//
+if(
utils.
+in
validEma
@@ -235,101 +235,40 @@
ail)
-;%0A//utils.validEmail(goodEmail);%0Aconsole.log(utils.invalidEmail(badE
+) console.log(%22bad e
mail
-));%0A%0A%0A//assert.equal(
+%22);%0Aif(!
util
@@ -292,27 +292,47 @@
odEmail)
-, false
+) console.log(%22good email%2... |
427ce9141e7ee33fa2b445f2662099563913d898 | Fix display dateTime input field in the defined dateFormat instead of database format | src/js/utils/fn.formData.js | src/js/utils/fn.formData.js | /**
*
* @author Andriy Oblivantsev <eslider@gmail.com>
*/
/**
* Form helper plugin for jQuery
*
* @author Andriy Oblivantsev <eslider@gmail.com>
* @copyright 02.02.2015 by WhereGroup GmbH & Co. KG
*
*/
$.fn.formData = function(values) {
var form = $(this);
var inputs = $(':input', form).get();
var ... | JavaScript | 0.000001 | @@ -2729,32 +2729,427 @@
break;
+%0A%0A case 'text':%0A if(input.hasClass('hasDatepicker'))%7B%0A var dateFormat = input.datepicker( %22option%22, %22dateFormat%22 );%0A value = $.datepicker.formatDate(dateFormat,... |
1f53a959f39d0a72f2b6096e1eb6716a3be69d5d | set angular package version. | package.js | package.js | Package.describe({
summary: "A radically powerful Text-Editor/Wysiwyg editor for Angular.js!",
version: "0.0.4",
git: "https://github.com/netanelgilad/meteor-textAngular.git"
});
Package.onUse(function(api) {
api.versionsFrom('METEOR@0.9.0.1');
api.use('mquandalle:bower@0.1.11', 'client');
api.use('urigo:a... | JavaScript | 0 | @@ -319,16 +319,22 @@
:angular
+@0.4.5
', 'clie
|
67caf6664bb667782e8af3d3fd05bc2b73bfbe6f | update summary | package.js | package.js | Package.describe({
name: 'daishi:blaze-google-maps',
version: '0.0.1',
summary: 'Blaze template for Google Maps',
git: 'https://github.com/dai-shi/meteor-blaze-google-maps',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.0.1');
api.use('ecmascript');
api.use('templat... | JavaScript | 0.000001 | @@ -80,16 +80,21 @@
mmary: '
+Easy
Blaze te
@@ -115,16 +115,32 @@
gle Maps
+ with reactivity
',%0A git
|
8a208bfa6645e9328ac1ed519ebb9268ea2c4632 | update routes to redirect / to local-pc-guy.com still | app/routes.js | app/routes.js | // load the redirect model
var Redirect = require('./models/redirect');
var redirecter = require('./redirecter');
var redirLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
// expose the routes to our app with module.exports
module.exports = function(app) {
// api ----------------------------... | JavaScript | 0 | @@ -3745,24 +3745,128 @@
eq, res) %7B%0D%0A
+%09%09res.setHeader('Location', 'http://www.local-pc-guy');%0D%0A%09%7D);%0D%0A%0D%0A%09app.get('/add', function(req, res) %7B%0D%0A
%09%09res.sendfi
|
6ae74e6fe3bf82f006355b57639531265b1e9266 | handle no-courseId case | tutor/src/models/user/menu.js | tutor/src/models/user/menu.js | // coffeelint: disable=no_empty_functions
// import _ from 'lodash';
// import flux from 'flux-react';
// import { CourseListingStore } from './course-listing';
// import { CourseActions, CourseStore } from './course';
// Read the CSRF token from document's meta tag. If not found, log a warning but proceed
// on the ... | JavaScript | 0.000006 | @@ -3868,24 +3868,68 @@
courseId) %7B%0A
+ if (!courseId) %7B return this.helpUrl; %7D%0A
const co
|
d1d484b874ad3d9ad98935eeffea0933b25804ce | remove conflicts | server.js | server.js | const _ = require('lodash')
const chalk = require('chalk')
const inquirer = require('inquirer')
const SerialPort = require('serialport')
const comm = require('./lib/Comm.js')
require('draftlog').into(console)
const Match = require('./lib/Match')
const MatchSimulated = require('./lib/MatchSimulated')
const players = re... | JavaScript | 0.000003 | @@ -905,437 +905,8 @@
: %7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A // fretado: %7Bvision. Id: 0, radioId: 2, class: players.TestIntention2, predict: usePrediction%7D, %0A // piso_vermelho: %7BvisionId: 2, radioId: 1, class: players.Attacker, predict: usePrediction%7D,%0A piso_vermelho: %7BvisionId: 0, radioI... |
01f9140c175194b188d70d460c904ce0f182eb1f | Set version of standard | package.js | package.js | var auto = require('auto-package')
var content = auto.content
var policystat = require('policystat')
var license = policystat.openSource.license.spdx
content.name = 'edited'
auto.versionFile()
content.description = 'Listens on editable elements and calls back on significant changes'
content.main = 'lib/Edited/index.js... | JavaScript | 0.000001 | @@ -1053,9 +1053,14 @@
': '
-*
+%5E5.3.1
',%0A
|
9e4810c851141c25fbb631133816a96aa8fff42d | Update functions.js | src/js/functions.js | src/js/functions.js | document.getElementById("searchButton").addEventListener("click", buttonHandler);
// button handler
function buttonHandler() {
var acronym = document.getElementById("acronymInput").value;
var definition = lookupAcronym(acronym);
console.log("The meaning of " + acronym + " is " + definition);
document.getEle... | JavaScript | 0.000002 | @@ -195,25 +195,8 @@
e;%0A%09
-var definition =
look
@@ -219,132 +219,8 @@
m);%0A
-%09console.log(%22The meaning of %22 + acronym + %22 is %22 + definition);%0A%09document.getElementById(%22result%22).innerHTML = definition;%0A
%7D%0A%0A
@@ -298,26 +298,8 @@
) %7B%0A
-%09var def = %22...%22;%0A
%09if
@@ -570,1... |
ebe8a3ad84878449fdaccdf74efec87c0de0aa55 | mark gulpfile | demo/gulpfile.js | demo/gulpfile.js | var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var sass = require('gulp-sass');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer');
var cleanCSS = require('gulp-clean-css');
gulp.task('css', function () {
return gulp.src('*.scss')
.pipe(sourcemaps.init({
... | JavaScript | 0.000002 | @@ -1,12 +1,27 @@
+// gulpfile.js%0A
var gulp = r
@@ -785,20 +785,16 @@
('./'))%0A
-
%0A .pi
|
29174bfd77a1628035b621cb1d88989e5af1c530 | Update port | index.js | index.js | var express = require('express'),
app = express(),
nano = require('nano')('http://localhost:5984'),
handlebars = require('handlebars'),
fs = require('fs')
nano.db.create('muffin', function(err, body) {
if (!err) {
console.log('DB created!');
}
var db = nano.use('muffin');
nano.auth('ABBA... | JavaScript | 0 | @@ -163,16 +163,17 @@
re('fs')
+;
%0A%0Anano.d
@@ -1803,24 +1803,37 @@
iew);%0A%0A%7D);%0A%0A
+var server =
app.listen(3
@@ -1835,9 +1835,9 @@
ten(
-3
+2
000,
|
ea49211a3df1f0ec907b46e10d0b0b3420221c49 | package updates | package.js | package.js | Package.describe({
name: 'heaven7:wsl-core',
version: '0.0.2',
summary: 'Core functionality package',
git: 'https://github.com/heaven7/wsl-core.git',
documentation: 'README.md'
});
both = ['client','server'];
Package.onUse(function(api) {
api.versionsFrom('1.2');
var packages =
[
... | JavaScript | 0.000001 | @@ -810,19 +810,19 @@
-server@
-0.2
+2.0
.0',%0A
@@ -956,19 +956,20 @@
-render@
-1.2
+2.10
.0',%0A
@@ -1005,19 +1005,19 @@
nager@1.
-1.0
+6.2
',%0A
@@ -1189,19 +1189,19 @@
ongol@1.
-5.0
+6.2
'%0A
|
bd5c63dd5564a5d0a203751fd4ee4d4be38299bf | bump versions | package.js | package.js | Package.describe({
name: 'xinranxiao:accounts-spotify',
version: '0.0.1',
summary: 'A meteor package for Spotify\'s login service',
git: 'https://github.com/xinranxiao/meteor-accounts-spotify ',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use('accounts-base',... | JavaScript | 0.000001 | @@ -63,21 +63,21 @@
rsion: '
+1.
0.0
-.1
',%0A sum
@@ -475,13 +475,13 @@
ify@
+1.
0.0
-.1
', %5B
|
ab50e72060313e8fe018ed0a4b1c1d934a10d89c | fix the alt key on the keys plugin | src/keys/element.js | src/keys/element.js | /**
* Overloading the Element#on method to handle those fancy names
*
* Copyright (C) 2010 Nikolay Nemshilov
*/
[RightJS.Document, RightJS.Element, RightJS.Window].each('include', {
on: function() {
var args = RightJS.$A(arguments), name = args[0];
if (typeof(name) === 'string') {
var key = name.sp... | JavaScript | 0.000001 | @@ -491,16 +491,74 @@
%7C )(
-alt%7C
meta
+)(%5C+%7C%5C-%7C )/i.test(name),%0A alt = /(%5E%7C%5C+%7C%5C-%7C )(alt
)(%5C+
@@ -1110,24 +1110,62 @@
== code) &&%0A
+ (!alt %7C%7C raw.altKey) &&%0A
@@ -1429,8 +1429,9 @@
%0A %7D%0A%7D);
+%0A
|
aaf71bd310741a266bbc82fa17e9179b77322ab3 | Update version number | package.js | package.js | Package.describe({
name: 'projik:bigtext',
summary: 'BigText.js - a jQuery plugin for making text big',
version: '1.0',
git: 'https://github.com/projik/meteor-bigtext.git'
});
Package.onUse(function (api) {
api.versionsFrom('METEOR@1.0');
api.use('jquery', 'client');
api.imply('jquery', 'client');
api.... | JavaScript | 0.000002 | @@ -116,16 +116,18 @@
on: '1.0
+.0
',%0A git
|
7ccd63275bdf23f5e4e1d6383a837495ba581bdf | remove flaky Edge 18.0 on Windows 10 test (#471) | wdio.conf.js | wdio.conf.js | /* eslint-disable camelcase */
const PORT = 9000;
const PROJECT = process.env.GITHUB_REPOSITORY || 'node-uuid';
const GITHUB_SHA = process.env.GITHUB_SHA || '';
const GITHUB_REF = process.env.GITHUB_REF || '';
const BUILD = GITHUB_SHA || GITHUB_REF ? `${GITHUB_REF} ${GITHUB_SHA}` : 'manual build';
const commonCapabil... | JavaScript | 0 | @@ -1542,139 +1542,8 @@
e',%0A
- browser_version: '18.0',%0A os: 'Windows',%0A os_version: '10',%0A %7D,%0A %7B%0A ...commonCapabilities,%0A browserName: 'Edge',%0A
|
7ea68414d8ab84c8f3ecfc9fd520d81e75166f21 | Update package file with repo info | package.js | package.js | Package.describe({
name: 'okgrow:analytics',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: 'simple analytics integration for meteor',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documen... | JavaScript | 0 | @@ -243,16 +243,51 @@
git: '
+https://github.com/okgrow/analytics
',%0A //
|
b2c9ab9f79ae309b28526365916ccaa7cb3fdb3e | Add youtubePlayer function | index.js | index.js | /**
*
* Copyright 2013 David Herron
*
* This file is part of AkashaCMS-embeddables (http://akashacms.com/).
*
* 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.a... | JavaScript | 0.000008 | @@ -1809,16 +1809,385 @@
%0A %7D;%0A
+ config.funcs.youtubePlayer = function(arg, callback) %7B%0A if (!callback) %7B callback(new Error(%22No callback given%22)); %7D%0A if (!arg.youtubeUrl) %7B callback(new Error(%22No youtubeUrl given%22)); %7D%0A if (!arg.template) %7B arg.templa... |
718f80caed9c4281f40883d09317ac33955b4a50 | Update app.js | app/js/app.js | app/js/app.js | 'use strict';
angular.module('app', [
'ngRoute',
'ngResource',
'app.filters',
'app.services',
'app.directives',
'app.controllers'
]).
constant('CLIENT_ID', "ec36f66dd37d4739a716105d15c69ce4").
constant('CLIENT_SECRET', "8354273cf7a54c0aab51aeaee657a991").
constant('WEB_SITE_URL', "http://andreymakaho... | JavaScript | 0.000002 | @@ -172,38 +172,38 @@
, %22e
-c36f66dd37d4739a716105d15c69ce
+5127ff493e448e89b047488b84413d
4%22).
@@ -235,40 +235,40 @@
', %22
-8354273cf7a54c0aab51aeaee657a991
+cd697835aa634258aaf8d601ee68f82c
%22).%0A
|
6870b8ee206ebca32919ed7aff471bd047ac4c5f | Replace mock jobs data with data from database | src/server/api/jobs.js | src/server/api/jobs.js | import app from '../app';
import Job from '../models/job';
app.post('/api/job', (req, res) => {
const { title } = req.body;
console.log(`Job's title is ${title}.`);
try {
// await User.create(
Job.create(
{
title: `${title}`,
},
);
res.sendStatus(200);
} catch (err) {
... | JavaScript | 0.000391 | @@ -475,16 +475,22 @@
i/jobs',
+ async
(req, r
@@ -504,2784 +504,126 @@
%7B%0A
-const jobs = %5B%0A %7B%0A title: 'Job Title 1',%0A location: %7B%0A city: 'Los Angeles',%0A state: 'CA',%0A zip: '90002',%0A %7D,%0A contact: %7B%0A phone: null, // Must have at leas... |
92fe99721998251db896bda047195eb70e44fdcf | fix linting errors | packages/ingest/index.js | packages/ingest/index.js | 'use strict'
const got = require('got')
const readableStream = require('readable-stream')
const satlib = require('@sat-utils/api-lib')
// SNS message
module.exports.handler = function handler(event, context, cb) {
const msg = JSON.parse(event.Records[0].Sns.Message)
console.log('ingest message: ', JSON.stringify(... | JavaScript | 0.000019 | @@ -6,16 +6,17 @@
strict'%0A
+%0A
const go
@@ -197,21 +197,8 @@
vent
-, context, cb
) %7B%0A
@@ -804,16 +804,15 @@
%0A %7D)%0A
-%0A
%7D)%0A%7D%0A
|
450f4908b909dc4e323a784dd358fc53889998bb | change node dir check to read node_version.h | src/common.js | src/common.js | 'use strict';
const fs = require('fs-extra');
const path = require('path');
const util = require('./util');
exports.getCurrentV8Version = function getCurrentV8Version() {
return {
title: 'Get current V8 version',
task: (ctx) => {
ctx.currentVersion = util.getNodeV8Version(ctx.nodeDir)... | JavaScript | 0 | @@ -434,32 +434,38 @@
',%0A task:
+ async
(ctx) =%3E %7B%0A
@@ -452,32 +452,32 @@
sync (ctx) =%3E %7B%0A
-
let
@@ -504,22 +504,63 @@
-return
+try %7B%0A const nodeVersion = await
fs.read
@@ -592,18 +592,30 @@
r, '
-LICENSE
+src/node_version.h
'))
+;
%0A
@@ -... |
b00ca7c66ae2d23d358b0366ef0ed860fa68c052 | Add help to the incomplete status label | web/js/cc.js | web/js/cc.js | $(document).ready(function(){
$("#pick-list tbody").sortable({
cursor: 'move',
update: function () {
var children = $(this).children();
var idx = children.length;
children.each(function() {
var confElement = $(this).find('.confidence');
... | JavaScript | 0.000003 | @@ -883,32 +883,76 @@
el-important');%0A
+ $(%22#incomplete-help%22).remove();%0A
%7D else %7B
@@ -955,32 +955,45 @@
se %7B%0A
+ var status =
$(%22#pick-status
@@ -1040,32 +1040,326 @@
el-important');%0A
+ if (!$(%22#incomplete-help%22).length) %7B%0A status... |
fc9ee57c3b595ddb923d578ad4aa2a1187eabef9 | Resolve log level after determining it from either argument or environment | index.js | index.js | 'use strict';
const fs = require('fs');
const path = require('path');
const bunyan = require('bunyan');
const through = require('through');
const spawn = require('child_process').spawn;
const BUNYAN_LOG_OPTIONS = ['name', 'src', 'streams', 'serializers'];
const LOGGER_LEVELS = Object.keys(bunyan.levelFromName);
cons... | JavaScript | 0 | @@ -2980,16 +2980,17 @@
n(acc, %7B
+
%5Bopt%5D: o
@@ -3000,16 +3000,17 @@
ons%5Bopt%5D
+
%7D),%0A
@@ -3842,16 +3842,17 @@
ions = %7B
+
name: op
@@ -3856,16 +3856,17 @@
options
+
%7D;%0A %7D%0A
@@ -3958,17 +3958,16 @@
logLevel
-)
%7C%7C ENV_
@@ -3979,16 +3979,17 @@
logLevel
+)
;%0A opti
|
2084a0ac186631c980b6566a44869aca677359d5 | Convert widget to AMD style | src/BarcodeScannerForPhoneGap/widget/BarcodeScannerForPhoneGap.js | src/BarcodeScannerForPhoneGap/widget/BarcodeScannerForPhoneGap.js | /*global mxui, mx, dojo, cordova */
(function(){
'use strict';
dojo.provide('BarcodeScannerForPhoneGap.widget.BarcodeScannerForPhoneGap');
dojo.declare('BarcodeScannerForPhoneGap.widget.BarcodeScannerForPhoneGap', mxui.widget._WidgetBase, {
// Coding guideline, internal variables start with '_'.
... | JavaScript | 0.999997 | @@ -33,129 +33,91 @@
*/%0A
-(function()%7B%0A 'use strict';%0A%0A dojo.provide('BarcodeScannerForPhoneGap.widget.BarcodeScannerForPhoneGap');%0A dojo.
+define(%5B %22dojo/_base/declare%22 %5D, function(declare) %7B%0A 'use strict';%0A%0A return
decl
@@ -4223,13 +4223,147 @@
%7D);%0A%7D
-(
)
+;%0... |
0100641fdb6c527a3ff9329a0d6e22e8bb509f8b | switch theme here | app/js/app.js | app/js/app.js | define([
'jquery',
'underscore',
'backbone',
'router',
'helpers/conf',
'views/sidebar',
'views/search',
'views/user',
'text!templates/body.html',
'bootstrap',
'jquery_cookie'
], function ($, _, Backbone, Router, ConfHelper,
SidebarView, SearchView, UserView, BodyTemplate) {
var init... | JavaScript | 0 | @@ -360,24 +360,55 @@
loadConf ();
+%0A ConfHelper.switchTheme ();
%0A%0A $('bod
|
9d316d58c4055d0cbd5e6f6678fb81ac6cf87e13 | make the sprite brighter when more health | src/Animal.js | src/Animal.js | const Phaser = require('./Phaser')
const Brain = require('./Brain')
class Animal {
constructor (x, y, parent) {
this.health = game.math.between(100, 150)
let bitmap = game.make.bitmapData(game.TILE_SIZE, game.TILE_SIZE)
bitmap.circle(game.TILE_SIZE / 2, game.TILE_SIZE / 2, game.TILE_SIZE / 4, '#ff0000')... | JavaScript | 0.000092 | @@ -1885,22 +1885,21 @@
tness =
-(255 -
+128 +
Math.ro
@@ -1913,17 +1913,16 @@
lth / 2)
-)
%0A // 2-
|
5bafbab14335bd8a3c645bc4f9c152d010460124 | Add spec for trie.remove(); fixing required | test/trie.js | test/trie.js | import { expect } from 'chai';
import Trie, { Node as TrieNode } from '../src/data/Trie';
describe('Trie', () => {
var trie = new Trie();
const collection = [
"abrupt", "acid", "adventurous", "ahead", "amused", "appliance", "attach", "bee", "better",
"borrow", "bouncy", "branch", "brave", "bushes", "bus... | JavaScript | 0 | @@ -2620,68 +2620,531 @@
e()
-removes the prefix and all descendent words', () =%3E %7B%0A
+throws Error for invalid inputs', () =%3E %7B%0A expect(trie.remove.bind(trie, '')).to.throw(Error);%0A expect(trie.remove.bind(trie)).to.throw(Error);%0A expect(trie.remove.bind(trie, 'abcd')).to.throw(Er... |
f9c467a62811a6b492fa54f1df75be47afd71ee1 | Remove dumb initialization | app/server.js | app/server.js | 'use strict';
// CartoDB SQL API
//
// all requests expect the following URL args:
// - `sql` {String} SQL to execute
//
// for private (read/write) queries:
// - OAuth. Must have proper OAuth 1.1 headers. For OAuth 1.1 spec see Google
//
// eg. /api/v1/?sql=SELECT 1 as one (with a load of OAuth headers or URL argumen... | JavaScript | 0.00079 | @@ -2404,145 +2404,8 @@
%7D%0A%0A
- app.use(function bootstrap$prepareRequestResponse(req, res, next) %7B%0A res.locals = res.locals %7C%7C %7B%7D;%0A%0A next();%0A %7D);%0A%0A
|
5a42f704dd80cafc8418e45e38f741d1e15b6bde | improve code readability | argument_parser.js | argument_parser.js | var Parser = function() {
this.state = 'var' // var or val
this.counter = 0
this.lastStrOpening = null
this.whitespaces = [' ', '\t', '\n']
this.opening = ['[', '{']
this.closing = [']', '}']
this.strOpening = ["'", '"', '`']
this.parsed = []
this.buffer = ''
}
Parser.prototype.parse = function... | JavaScript | 0.001398 | @@ -1009,19 +1009,54 @@
= null%0A
-%0A
+ %7D%0A%0A this.buffer += ch%0A%0A
@@ -1059,17 +1059,19 @@
var
-l
+isL
astEleme
@@ -1108,14 +1108,14 @@
-
if(
-l
+isL
astE
@@ -1138,105 +1138,36 @@
- this.buffer += ch%0A this.pushBuffer()%0A %7D%0A %7... |
fcbf54933629f1ddc532a3cfc68a879d91a687e3 | add font defaults | packages/editor/plugins/preview/tools/text-tool.js | packages/editor/plugins/preview/tools/text-tool.js | import ObservableObject from 'common/object/observable';
import { DisplayEntity } from 'editor/entity-types';
const CURSOR_HEIGHT = 12;
class TextTool extends ObservableObject {
constructor(properties) {
super({ cursor: 'text', ...properties });
}
notify(message) {
var plugin = this.app.plugins.query... | JavaScript | 0.000001 | @@ -584,16 +584,78 @@
sage.x,%0A
+ fontSize: '12px',%0A fontFamily: 'Helvetica',
%0A
|
a5804af6f69823848861e23d3823434cb3231f7c | Remove pwabuilder branding | webapp/sw.js | webapp/sw.js | //This is the "Offline copy of pages" service worker
//Install stage sets up the index page (home page) in the cahche and opens a new cache
self.addEventListener('install', function(event) {
var indexPage = new Request('index.html');
event.waitUntil(
fetch(indexPage).then(function(response) {
return cach... | JavaScript | 0 | @@ -318,34 +318,29 @@
aches.open('
-pwabuilder
+jappy
-offline').t
@@ -387,17 +387,25 @@
g('%5B
-PWA Build
+Jappy ServiceWork
er%5D
@@ -726,34 +726,29 @@
aches.open('
-pwabuilder
+jappy
-offline').t
@@ -1354,18 +1354,13 @@
en('
-pwabuilder
+jappy
-off
|
30da4520b23b701c997301cf533affa40f3c3ead | fix conflict | .babelrc.js | .babelrc.js | const presets = [
[
"@babel/env",
{
"useBuiltIns": "entry"
},
],
];
module.exports = { presets };
| JavaScript | 0.031708 | @@ -114,8 +114,9 @@
sets %7D;%0A
+%0A
|
7c12be2594593bd4f7b6a1200ff300bd18379cbd | Delete duplicate chars | src/layouts/FrenchLayout.js | src/layouts/FrenchLayout.js | export default [
['a', 'z', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
['q', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'k', 'l', 'l', 'm'],
['w', 'x', 'c', 'v', 'b', 'n'],
];
| JavaScript | 0.000009 | @@ -110,18 +110,8 @@
'k',
- 'k', 'l',
'l'
|
884cfaf3f8663d59127598c706556ea201ac1280 | use the needed 4 inputs in the brain, not 3 | src/Animal.js | src/Animal.js | const Phaser = require('./Phaser')
const Brain = require('./Brain')
class Animal {
constructor (x, y, parent) {
this.health = game.math.between(100, 150)
this.age = 0
this.score = 0
this.generation = parent ? parent.generation + 1 : 1
let bitmap = game.make.bitmapData(game.TILE_SIZE, game.TILE_S... | JavaScript | 0.999949 | @@ -973,17 +973,17 @@
w Brain(
-3
+4
, 10, 10
|
33e08b2b018980aff2e422dfcd59f3aaa157709c | fix templating (#20045) | corehq/apps/sms/static/sms/js/chat_contacts.js | corehq/apps/sms/static/sms/js/chat_contacts.js | hqDefine('sms/js/chat_contacts', function() {
var initialPageData = hqImport('hqwebapp/js/initial_page_data');
var contactListTable = null;
function FilterViewModel() {
'use strict';
var self = this;
self.filterText = ko.observable();
self.performFilter = function() {
... | JavaScript | 0 | @@ -829,17 +829,16 @@
%25= href
-=
%25%3E%22%3E%3C%25=
@@ -845,17 +845,16 @@
content
-=
%25%3E%3C/a%3E'
@@ -995,17 +995,16 @@
%3C%25= url
-=
%25%3E%5C', %5C'
@@ -1141,17 +1141,16 @@
%25= chat
-=
%25%3E%3Ci cla
|
b88ab7f622ae05a85508c93c99024ec02c15a26f | Update test doc | src/components/Datepicker/Datepicker.utils.js | src/components/Datepicker/Datepicker.utils.js | import { NAVIGATION_LEVELS } from './Datepicker.constants'
/**
* Check if something is JS Date Object
* @param {*} someObject the item to check
*
* @return {boolean} Whether someObject is a JS Date Object
*/
export function isJSDate(someObject) {
return someObject && typeof someObject.getMonth === 'function'
}
... | JavaScript | 0 | @@ -2788,111 +2788,151 @@
%0A *
-In order to fill up the calendar, get the dates from the previous month in relation to the active month
+Get the number of leading dates needed based on the selected start day of the week%0A * and which day of the week the first of the month falls on
%0A *
|
254a0e4c9c83f68b72aec5fd3ed469ed7bd1ea21 | Fix broken test | cypress/integration/basic/smoke-test.js | cypress/integration/basic/smoke-test.js | context('Smoke Test', () => {
before(function () {
cy.visit('/?endTime=2018-01-01T12:00:00.000Z')
})
context('Loading screen and initialization of app', () => {
it('Makes sure splash screen renders and disappears', () => {
cy.waitForSplashscreen()
})
it('Makes sure data loading icon render... | JavaScript | 0.000255 | @@ -3606,20 +3606,16 @@
le/3/3/3
-.png
%22%5D%60).sho
|
4fd718254da192a819a659a6ff544238d1314b44 | fix one more bug for people trying to put html in titles | customize.dist/main.js | customize.dist/main.js | define([
'/customize/DecorateToolbar.js',
'/common/cryptpad-common.js',
'/bower_components/lil-uri/uri.min.js',
'/bower_components/jquery/dist/jquery.min.js',
], function (DecorateToolbar, Cryptpad, LilUri) {
var $ = window.$;
DecorateToolbar.main($('#bottom-bar'));
Cryptpad.styleAlerts();
... | JavaScript | 0 | @@ -932,24 +932,111 @@
stRecent);%0A%0A
+ var fixHTML = function (html) %7B%0A return html.replace(/%3C/g, '<');%0A %7D;%0A%0A
var make
@@ -2262,16 +2262,24 @@
confirm(
+fixHTML(
%22Are you
@@ -2336,16 +2336,17 @@
e + %22)?%22
+)
, functi
|
f0dba42446628deb1c4f290e6b7d84b7ace8e986 | Remove logging of 401 status codes | app/js/app.js | app/js/app.js | angular.module('juiceShop', [
'ngRoute',
'ngCookies',
'ngTouch',
'ngAnimate',
'ui.bootstrap'
]);
angular.module('juiceShop').factory('authInterceptor', ['$rootScope', '$q', '$cookieStore', function ($rootScope, $q, $cookieStore) {
'use strict';
return {
request: function (config) {
... | JavaScript | 0 | @@ -591,125 +591,8 @@
) %7B%0A
- if (response.status === 401) %7B%0A console.log('401: ' + response.statusText);%0A %7D%0A
|
e02f184df91c9066bdecfe459ed0209f472878e4 | implement test util `callAfter` | test/util.js | test/util.js |
exports.sortById = function(docs) {
return docs.slice().sort(function(a, b) {
if (a.id > b.id) return 1;
if (b.id > a.id) return -1;
return 0;
});
};
exports.pluck = function(docs, key) {
var values = [];
for (var i = 0; i < docs.length; i++) {
values.push(docs[i][key]);
}
return values;
}... | JavaScript | 0 | @@ -311,12 +311,1010 @@
values;%0A%7D;%0A
+%0A// Wrap a done function to call back only after a specified number of calls.%0A// For example, %60var callbackAfter = callAfter(1, callback)%60 means that if%0A// %60callbackAfter%60 is called once, it won't call back. If it is called twice%0A// or more, it won't call bac... |
88570a170b3096551160ecf9fd8971cfddce04ff | Implement UMD | dist/natural-sort.js | dist/natural-sort.js | /*!
* natural-sort.js
* ===============
* Sorting with support for numbers, dates, unicode and more.
*
* http://github.com/studio-b12/natural-sort
* MIT License, © Studio B12 GmbH 2014
*
*//*
*
* Idea by Dave Koelle
* Original implementation by Jim Palmer
* Modified by Tomek Wiszniewski
*
*/
var naturalS... | JavaScript | 0.000335 | @@ -2785,61 +2785,317 @@
%7D;%0A%0A
-/* exported naturalSort */%0Amodule.exports = naturalSort
+(function (root, factory) %7B%0A if (typeof define === 'function' && define.amd) %7B%0A define(function () %7B%0A return factory();%0A %7D);%0A %7D else if (typeof exports === 'object') %7B%0A module.exports... |
91aea29c0c9fe4444560aa72f192c4c788d42b42 | Fix changelog url open bug. | src/service/version.js | src/service/version.js | console.log( "=== simpread version load ===" )
import {browser} from 'browser';
/**
* Manifest.json version
*/
const version = browser.runtime.getManifest().version;
/**
* Verify version
*
* @param {string} local version
* @param {object} simpread data structure
*/
function Verify( curver, dat... | JavaScript | 0 | @@ -937,16 +937,32 @@
og.html%22
+ target=%22_blank%22
%3E%E6%9B%B4%E6%96%B0%E6%97%A5%E5%BF%97%3C/a
|
7b904c7c948624b883a439e4d333b5cdb028ab44 | use cypress@6 syntax | cypress/integration/home/layout.spec.js | cypress/integration/home/layout.spec.js | describe('home page: ', () => {
// beforeEach(() => {
before(() => {
cy.visit('/home/posts')
})
it('basic layout should be visible', () => {
cy.id('header').should('be.visible')
cy.id('header-search').should('be.visible')
cy.id('header-search-icon').should('be.visible')
// cy.id('sidebar')... | JavaScript | 0.000004 | @@ -484,24 +484,27 @@
le')%0A %7D)%0A%0A
+ //
it('home li
@@ -533,32 +533,35 @@
ight', () =%3E %7B%0A
+ //
cy.id('header
@@ -570,24 +570,27 @@
ome-link')%0A
+ //
// .sho
@@ -616,24 +616,27 @@
ckground')%0A
+ //
// .sho
@@ -674,20 +674,23 @@
tom')%0A
+//
+
.and('no
@@ -729,24 +729,2... |
327b7d0d7fbdfc6218b7adfcdc78eedbabb32e4f | Change hours label to actual hours | src/components/Tickets/IdModal/TimeEntries.js | src/components/Tickets/IdModal/TimeEntries.js | import React, { Component } from 'react';
import { fetchTimeEntryById, fetchTicketTimeEntryIds } from '../../../helpers/cw';
class TimeEntries extends Component {
constructor() {
super();
this.state = {
entries: [],
isLoading: false,
};
this.displayEntries = this.displayEntries.bind(th... | JavaScript | 0.999995 | @@ -1035,16 +1035,23 @@
+Actual
Hours: %7B
|
47000c6335e1fc732c92512884b754c9043836d6 | test route prerequisites | test/integration/trailpack.test.js | test/integration/trailpack.test.js | 'use strict'
const _ = require('lodash')
const assert = require('assert')
describe('Router Trailpack', () => {
describe('#initialize', () => {
it('should include footprint routes in app.routes', () => {
const routes = global.app.routes
assert.equal(routes.length, 1)
assert(_.isFunction(rout... | JavaScript | 0.000001 | @@ -141,17 +141,16 @@
() =%3E %7B%0A
-%0A
it('
@@ -290,47 +290,311 @@
- assert(_.isFunction(routes%5B0%5D.handler
+%7D)%0A it('should bind route handler to controller method', () =%3E %7B%0A const routes = global.app.routes%0A%0A assert(_.isFunction(routes%5B0%5D.handler))%0A %7D)%0A it(... |
ba24cde76dd6e4042486c0878b87a730702d4efb | Fix cryptget not stopping chainpad-netflux when done | www/common/cryptget.js | www/common/cryptget.js | define([
'/bower_components/chainpad-crypto/crypto.js',
'/bower_components/chainpad-netflux/chainpad-netflux.js',
'/common/common-util.js',
'/common/common-hash.js',
'/common/common-realtime.js',
'/common/outer/network-config.js',
'/bower_components/chainpad/chainpad.dist.js',
], function (C... | JavaScript | 0.000002 | @@ -806,28 +806,30 @@
(S.
-session && S.session
+realtime && S.realtime
.sto
@@ -869,23 +869,24 @@
S.
-session
+realtime
.stop();
|
76960c0308e7b89532148829726c304aecdc5783 | Version bump. | package.js | package.js | Package.describe({
summary: "Reactive database layer with references, generators, triggers, migrations, etc.",
version: '0.15.1',
name: 'peerlibrary:peerdb',
git: 'https://github.com/peerlibrary/meteor-peerdb.git'
});
Package.on_use(function (api) {
api.versionsFrom('METEOR@1.0');
api.use(['coffeescript', ... | JavaScript | 0 | @@ -123,17 +123,17 @@
: '0.15.
-1
+2
',%0A nam
|
9e3af705cc1bb8ad7a8ffd0e5c5b780d68bb798c | Add service for ownloading report of events | src/services/events.js | src/services/events.js | import moment from 'moment';
import _ from 'lodash';
import DefaultCategories from '../constants/DefaultCategories';
export const filterEventsForRange = (ebudgie, from, to) => {
const incomes = _.filter(ebudgie.incomes, (income) => {
return moment(from) <= moment(income.date) && moment(income.date) <= moment(to... | JavaScript | 0 | @@ -110,16 +110,72 @@
gories';
+%0Aimport %7B mapReportForDownload %7D from './mapIdToObject';
%0A%0Aexport
@@ -4660,28 +4660,454 @@
ween);%0A%0A return result;%0A%7D;%0A
+%0Aexport const getReportForDownload = (ebudgie, from, to) =%3E %7B%0A const %7B incomes, expenses %7D = filterEventsForRange(ebudgie, from, to... |
8019bf0e414e2af10c5caa8ed47b90e61f067961 | set isMobile flag on rootScope | app/js/app.js | app/js/app.js | "use strict";
/**
* @module thisissoon
* @author SOON_
* @requires angulartics {@link https://github.com/luisfarzati/angulartics}
* @requires angulartics.google.analytics {@link https://github.com/luisfarzati/angulartics}
* @requires sn.skrollr {@link https://github.com/thisissoon/angular-skrollr}
* @requires con... | JavaScript | 0.000003 | @@ -2171,32 +2171,54 @@
var
-skrollrBreakpo
+desktopM
in
-t
= 1024
+,%0A tabletMin = 768
;%0A%0A
@@ -2312,33 +2312,26 @@
idth %3E=
-skrollrBreakpo
+desktopM
in
-t
&& !$ro
@@ -2352,32 +2352,59 @@
rInitialised) %7B%0A
+ // Desktop%0A
@@ -2511,33 +2511,26 @@
width ... |
6396196375d9ddda61089f43877718bb3010f0c4 | Add underscore to api.use | package.js | package.js | Package.describe({
name: 'astrocoders:publish',
version: '1.0.3',
summary: 'Smart re-use your publications.',
git: 'https://github.com/Astrocoders/meteor-astrocoders-publish',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.0.2');
api.use([
'ecmascript',
'mongo'... | JavaScript | 0.000006 | @@ -63,9 +63,9 @@
1.0.
-3
+4
',%0A
@@ -313,16 +313,35 @@
'mongo'
+,%0A 'underscore',
%0A %5D);%0A%0A
|
ca0fb589af14c6ae3146aecd64951b0876ad7aca | use payload | src/services/github.js | src/services/github.js | import crypto from 'crypto'
import Router from './router'
import { PullRequestEvent, PushEvent, PingEvent } from '../events'
export default class Github extends Router {
constructor ({ token = '' }) {
super(token, 'github')
this.router.use('/:appName', (req, res, next) => {
if (token) {
cons... | JavaScript | 0.000116 | @@ -831,16 +831,24 @@
eq.body.
+payload.
ref && r
@@ -847,32 +847,40 @@
ref && req.body.
+payload.
ref.split('/').l
@@ -1038,32 +1038,40 @@
pName, req.body.
+payload.
repository.html_
@@ -1224,16 +1224,24 @@
eq.body.
+payload.
reposito
|
121ed9128d9ae6a87557dcfe8e9f52e82aec8005 | Format app.js | app/js/app.js | app/js/app.js | 'use strict';
angular.module('OldSchool', ['ui.router']);
angular.module('OldSchool')
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('stats', {
url: '/stats',
views: {
'': {
controller: '... | JavaScript | 0 | @@ -80,21 +80,16 @@
School')
-%0A
.config(
@@ -136,20 +136,16 @@
ider) %7B%0A
-
$sta
@@ -154,29 +154,16 @@
Provider
-%0A
.state('
@@ -176,32 +176,24 @@
, %7B%0A
-
-
url: '/stats
@@ -199,32 +199,24 @@
s',%0A
-
-
views: %7B%0A
@@ -220,32 +220,24 @@
... |
39977f18a5f29d14b389cf6dd679282f39e76c63 | Implement Bitly OAuth | package.js | package.js | var description = {
summary: "Frontend Checkmark",
version: "1.0.0",
name: "checkmark"
};
Package.describe(description);
var path = Npm.require("path");
var fs = Npm.require("fs");
eval(fs.readFileSync("./packages/autopackage.js").toString());
Package.onUse(function(api) {
addFiles(api, description.name, getDe... | JavaScript | 0.000046 | @@ -357,14 +357,8 @@
tion
-@1.0.0
%22%5D);
|
b587bdc82d79d29884536119f5775b1259b62d05 | Update app.config.js | frontend/app/app.config.js | frontend/app/app.config.js | angular.
module('MatWeb').
config(['$locationProvider', '$routeProvider', '$httpProvider',
function config($locationProvider, $routeProvider, $httpProvider) {
$locationProvider.html5Mode(true).hashPrefix('!');
$httpProvider.defaults.headers.common.Authorization = window.localStorage.getItem('... | JavaScript | 0.000003 | @@ -718,30 +718,38 @@
rta-
-cursos%3E%3C/oferta-cursos
+disciplina%3E%3C/oferta-disciplina
%3E'%0A
@@ -952,16 +952,26 @@
curso%3E'%0A
+ %7D)
%0A $
|
c66d509f5317dced7923225322cb55069d691742 | bring focused token to front | script.js | script.js | Viewport = function(canvas, grid) {
this.width = canvas.width();
this.height = canvas.height();
this.mouseX = 0;
this.mouseY = 0;
this.grid = grid;
this.context = canvas[0].getContext("2d");
var self = this;
canvas.mousemove(function(e) {
self.mouseX = e.pageX - canvas.position().left;
self.mo... | JavaScript | 0 | @@ -3885,24 +3885,46 @@
unction(e)%7B%0A
+ this.zIndex += 1;%0A
// conso
|
a111ea962beb356d1c9e10c0574a969242654008 | 修改默认的 crawler script 正则匹配 | packages/matman-crawler/src/model/CrawlerParser.js | packages/matman-crawler/src/model/CrawlerParser.js | import fs from 'fs';
import path from 'path';
import glob from 'glob';
/**
* 爬虫脚本类,用于处理所有的前端爬虫脚本
*/
export default class CrawlerParser {
/**
* 构造函数
*
* @param {Object} opts 参数
* @param {String} opts.rootPath 项目的根目录
* @param {String} [opts.testPath] 端对端测试代码的目录
* @param {String} [opt... | JavaScript | 0 | @@ -974,16 +974,23 @@
tch %7C%7C /
+%5B%5C/%7C%5C%5C%5D
crawlers
|
49302889c266536dfd05c13403a9e23ef3d4918d | delete does not do anything to declared variables | www/js/views/around.js | www/js/views/around.js | (function (FMS, Backbone, _, $) {
_.extend( FMS, {
AroundView: FMS.FMSView.extend({
template: 'around',
id: 'around-page',
events: {
'pagehide': 'destroy',
'pageshow': 'afterDisplay',
'click #mark-here': 'onClickReport'
... | JavaScript | 0.000001 | @@ -2988,15 +2988,8 @@
-delete
fixm
@@ -2995,16 +2995,23 @@
mystreet
+ = null
;%0A
|
cd2219bf4218b6a556d3820e4af0d1a97362764d | remove this test for now | test/raygun.messageBuilder_test.js | test/raygun.messageBuilder_test.js | 'use strict';
var test = require("tap").test;
var MessageBuilder = require('../lib/raygun.messageBuilder.js');
test('basic builder tests', function (t) {
var builder = new MessageBuilder();
var message = builder.build();
t.test('messageBuild', function (tt) {
tt.ok(message);
tt.end();
});
t.test('... | JavaScript | 0.000001 | @@ -2743,16 +2743,100 @@
d();%0A %0A
+ // missing utcOffset for now as need to find a good way to test for its existence%0A
var pr
@@ -2953,21 +2953,8 @@
ory'
-, 'utcOffset'
%5D;%0A
|
e2ff82dc2b8cd21a449791d0bb2703a39fb1d3a7 | Convert tabs to spaces | server.js | server.js | /*
* server.js: Simple server for receiving log files from the Surface Foliage application.
*
* (C) 2010 Charlie Robbins
*
*/
var http = require('http')
, sys = require('sys')
, querystring = require('querystring')
, url = require('url')
, path = require('path')
, fs = require('fs');
require.paths.unsh... | JavaScript | 0.999999 | @@ -1434,17 +1434,18 @@
-%09
+
if (erro
@@ -1645,17 +1645,18 @@
-%09
+
response
@@ -1675,9 +1675,10 @@
-%09
+
%7D);%0A
|
d3ba619c97a01b3b62a0a49a3f63a1d5c9f93337 | Update credit_card.test.js (#262) | test/resources/credit_card.test.js | test/resources/credit_card.test.js | /* eslint-disable func-names */
import { expect } from 'chai';
import * as setupPolly from '../helpers/setup_polly';
import EasyPost from '../../src/easypost';
import NotImplementedError from '../../src/errors/not_implemented';
describe('CreditCard Resource', function () {
setupPolly.startPolly();
before(function... | JavaScript | 0 | @@ -743,16 +743,18 @@
fund('20
+00
', 'prim
|
34f3b47a63b2b04c6087ef5f46027ebd9e54a906 | true for win32 process | index.js | index.js | var gutil = require("gulp-util");
var objectAssign = require("object-assign");
var spawn = require("child_process").spawn;
var through = require("through2");
var path = require("path");
var vinylFile = require("vinyl-file");
function prefixOptions(options) {
return Object.keys(options).filter(function(key) {
ret... | JavaScript | 0.999879 | @@ -1330,16 +1330,47 @@
child =
+ process.platform === 'win32' ?
spawn(%22
@@ -1390,44 +1390,47 @@
s, %7B
+
shell:
-process.platform === 'win32'%7D
+true %7D) : spawn(%22dart2js%22, args
);%0A%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.