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 |
|---|---|---|---|---|---|---|---|
6f7826bda2a1fe290893995e3da5dc5fa4582d7d | Fix tests | packages/server/lib/game-managers/pending-game-manager.js | packages/server/lib/game-managers/pending-game-manager.js | "use strict";
const _ = require("lodash"),
SwappableProxy = require("swappable-proxy"),
GameFactory = require("dc-game-factory"),
PendingGameStatus = GameFactory.PendingGameStatus,
dcConstants = require("dc-constants"),
MessageType ... | JavaScript | 0.000003 | @@ -2069,16 +2069,19 @@
set;%0A
+ //
preset
@@ -2083,24 +2083,27 @@
eset = %7B%0A
+ //
state: %7B%0A
@@ -2101,24 +2101,27 @@
state: %7B%0A
+ //
class:
@@ -2141,24 +2141,27 @@
inState,%0A
+ //
args: %5B
@@ -2178,24 +2178,27 @@
layer1 %5D%0A
+ //
%7D,%0A
@@ -2190,24 +2190... |
e127bf831089b87f62fcfb73d9a657f90817b26f | Print cwd on failure | lib/utils/error-handler.js | lib/utils/error-handler.js |
module.exports = errorHandler
var cbCalled = false
, log = require("./log")
, npm = require("../../npm")
, rm = require("./rm-rf")
, constants = require("constants")
, itWorked = false
, path = require("path")
process.on("exit", function (code) {
if (code) itWorked = false
if (itWorked) log("ok")
e... | JavaScript | 0.000076 | @@ -4915,16 +4915,50 @@
mmand%22)%0A
+ log.error(process.cwd(), %22cwd%22)%0A
exit(t
|
fc618417b9ba43b75e24953c730139ffad9a658c | update state | lib/views/StatusBarTile.js | lib/views/StatusBarTile.js | 'use babel';
/** @jsx etch.dom */
/* @flow*/
import etch from 'etch';
import { Emitter, CompositeDisposable } from 'atom';
import type { TesterState } from '../types';
export default class ConsoleOutputView {
properties: {
state: {results: TesterState};
onclick: Function;
}
refs: any;
element: any;
... | JavaScript | 0.000001 | @@ -2537,16 +2537,26 @@
ewState
+:%7Bresults
:TesterS
@@ -2555,24 +2555,25 @@
:TesterState
+%7D
) %7B%0A cons
@@ -2645,24 +2645,64 @@
newState) %7B%0A
+ this.properties.state = newState;%0A
return
|
1e8cd2b873bed97b24d81b0e23d02aa0222ecf83 | Read aeternum output to find out the pid | lib/solenoid.js | lib/solenoid.js | var fs = require('fs'),
os = require('os'),
path = require('path'),
spawn = require('child_process').spawn,
mkdirp = require('mkdirp'),
async = require('async'),
pkgcloud = require('pkgcloud'),
semver = require('semver'),
useradd = require('useradd');
function noop() {}
//
// Starts an... | JavaScript | 0 | @@ -4820,31 +4820,8 @@
og',
- '-p', options.pidFile,
'--
@@ -5271,47 +5271,170 @@
ild.
-on('error', callback);%0A child
+stdout.on('readable', function () %7B%0A var chunk = child.stdout.read();%0A if (chunk) %7B%0A pid += chunk.toString('utf8');%0A %7D%0A %7D);%0A%0A child.stdout
.on('e
-xit
+nd
... |
c3a0cf01c376c9449c77a7aceca3f1a140d4b942 | Fix typo | src/initialState.js | src/initialState.js | import basicArithmetic from 'keyboardLayouts/basicArithmetic'
export default {
keys: basicArithmetic,
settings: {
authorName: 'Panagiotis Panagi',
authorUrl: 'https://github.com/panayi',
repoUrl: 'https://github.com/panayi/calculator',
tweetText: '3R Calculator build with React, Redux and Ramda',
... | JavaScript | 0.999999 | @@ -280,17 +280,17 @@
tor buil
-d
+t
with Re
|
1c8e1302993d5049cabc3579b96bef98afc89d42 | add support for enums | src/instantiator.js | src/instantiator.js | 'use strict';
// The JSON Object that defines the default values of certain types.
var typesInstantiator = {
'string': '',
'number': 0,
'integer': 0,
'null': null,
'boolean': false, // Always stay positive?
'object': { }
};
/**
* Checks whether a variable is a primitive.
* @param obj - an object.
* @re... | JavaScript | 0 | @@ -1357,24 +1357,515 @@
r%5Btype%5D;%0A%7D%0A%0A
+/**%0A * Checks whether a variable is an enum.%0A * @param obj - an object.%0A * @returns %7Bboolean%7D%0A */%0Afunction isEnum(obj) %7B%0A return Object.prototype.toString.call(obj.enum) === '%5Bobject Array%5D'%0A%7D%0A%0A/**%0A * Instantiate an enum.%0A * @param v... |
c223c29d9937f7a882ebd112ada65b8625037390 | fix unsynched source script | inotify-rsync.js | inotify-rsync.js | #!/usr/bin/env node
/*
* inotify-rsync
*
* Copyright (c) 2017 Rurik Bogdanov <rurik.bugdanov@alsenet.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the... | JavaScript | 0.000002 | @@ -784,25 +784,8 @@
*/%0A
-var DEBUG=false;%0A
var
@@ -1294,17 +1294,16 @@
('.');%0A%0A
-%0A
var inot
@@ -1472,14 +1472,14 @@
,%0A
-column
+header
s: %5B
@@ -1573,172 +1573,170 @@
ion(
-row)%7B%0A var colname=%5B'dirname','eventname','filename'%5D;%0A var i=0;%0A var event=%7B%7D;%0A for (var col in row... |
90f6292cb05ad6f727da9ed90fd4bdf0f9b69933 | work on AboutArrays.js | koans/AboutArrays.js | koans/AboutArrays.js | describe("About Arrays", function() {
//We shall contemplate truth by testing reality, via spec expectations.
it("should create arrays", function() {
var emptyArray = [];
expect(typeof(emptyArray)).toBe('object'); //A mistake? - http://javascript.crockford.com/remedial.html
expect(emptyArray.length).to... | JavaScript | 0 | @@ -893,26 +893,17 @@
ual(%5B1,
-FILL_ME_IN
+2
%5D);%0A%0A
@@ -940,34 +940,33 @@
ay).toEqual(
-FILL_ME_IN
+%5B1, 2, 3%5D
);%0A %7D);%0A%0A
@@ -1093,34 +1093,25 @@
ength).toBe(
-FILL_ME_IN
+4
);%0A fourN
@@ -1169,34 +1169,25 @@
ength).toBe(
-FILL_ME_IN
+6
);%0A%0A var
@@ -1265,34 +1265,26 @@
ength... |
5ff8deb1837a161dfbcdd4b4db5adf3e98bfdb4c | Simplify rearg function definitions. | lathe/js/rearg.js | lathe/js/rearg.js | /*
global
THREE
sizeBox
widthBox
heightBox
depthBox
getBoxVertex
setBoxVertices
setXBoxVertices
setYBoxVertices
setZBoxVertices
copyBoxVertices
centroidBox
alignBox
relativeAlignBox
lerpBoxVertices
relativeLerpBoxVertices
applyBoxVertexColors
applyBoxFaceVertexColors
defaultVertexColors
translateBoxVertices
scaleBoxVer... | JavaScript | 0 | @@ -4077,33 +4077,21 @@
z',%0A
-%5D%0A .concat(
+ ...
geometry
@@ -4093,34 +4093,33 @@
metryMethods
- )
+,
%0A .
concat( shor
@@ -4102,32 +4102,26 @@
ods,%0A .
-concat(
+..
shorthandGeo
@@ -4128,34 +4128,33 @@
metryMethods
- )
+,
%0A .
concat( geom
@@ -4141,24 +4141,18 @@
%0A ... |
3ab4eaeef85abb2ad2458489a08f59e06876474d | Update deploy commit message | build/gh-pages.js | build/gh-pages.js | module.exports = function (grunt) {
return {
main: {
options: {
add : (grunt.option('cleanup') ? false : true),
base : 'dist',
branch : 'gh-pages',
message: global.release_target ? 'Release to ' + global.release_target : 'Auto-... | JavaScript | 0 | @@ -311,31 +311,50 @@
t :
-'Auto-generated commit'
+%60Deploy to $%7Bglobal.branch %7C%7C 'gh-pages'%7D%60
,%0A
|
52b68fa9b83f9a4022402e0f8190aaa75b694c6e | Update build/make/amd.js | build/make/amd.js | build/make/amd.js | steal('can/construct/proxy', 'can/construct/super', 'can/control', 'can/control/plugin',
'can/control/view', 'can/view/modifiers', 'can/model', 'can/view/ejs',
'can/observe/attributes', 'can/observe/delegate', 'can/observe/setter',
'can/observe/validations', 'can/route', 'can/view/modifiers', 'can/observe/backup',
... | JavaScript | 0 | @@ -153,16 +153,36 @@
ew/ejs',
+ 'can/view/mustache'
%0A%09'can/o
@@ -332,16 +332,37 @@
ackup',%0A
+%09'can/util/fixture',%0A
%09'can/ut
|
9bc6041852edacb2eb85bf31b5aa5a2e0a67dc28 | Replace promise with async await and handle error cases | server/trello-microservice/src/utils/passportMiddleweare.js | server/trello-microservice/src/utils/passportMiddleweare.js | import fetch from 'node-fetch';
import { userModel } from '../models/index';
export const authenticatedWithToken = (req, res, next) => {
let csrf;
let jwt;
if (req && req.cookies && req.headers){
csrf = req.headers.csrf;
jwt = req.cookies.jwt;
const opts = {
headers: {
csrf,
... | JavaScript | 0 | @@ -109,16 +109,22 @@
hToken =
+ async
(req, r
@@ -144,39 +144,30 @@
%7B%0A
-let csrf;%0A let jwt;%0A%0A if (req
+if (req && req.cookies
&&
@@ -169,32 +169,36 @@
s && req.cookies
+.jwt
&& req.headers)
@@ -200,15 +200,40 @@
ders
-)
+ && req.headers.csrf)
%7B%0A
+let
csrf
@@ -257,16 +257,20 @@
rf;... |
b2bc33ba9860260a578a2e64dbc90c3fb8cf9951 | Add required studentId to RecordService JS spec | spec/javascripts/student_profile/record_service_spec.js | spec/javascripts/student_profile/record_service_spec.js | //= require ./fixtures
describe('RecordService', function() {
var dom = window.shared.ReactHelpers.dom;
var createEl = window.shared.ReactHelpers.createEl;
var merge = window.shared.ReactHelpers.merge;
var RecordService = window.shared.RecordService;
var SpecSugar = window.shared.SpecSugar;
var Fixtures =... | JavaScript | 0 | @@ -820,16 +820,38 @@
te: null
+,%0A studentId: 1
%0A %7D
|
2485f5bdbdb275ea5b8af8aa85b6ed8e4583cb6f | move init to post-script | CurrentActions/metadata/aura/MInsightList/MInsightListController.js | CurrentActions/metadata/aura/MInsightList/MInsightListController.js | ({
doInit : function(component, event, helper) {
// try {
//Fetch the insight list from the Apex controller
helper.getInsightList(component, helper);
//helper.registerServiceWorker();
helper.sampleControllerAction(component);
//Set up the callback
var name_action = component.get("c.getUserName");
na... | JavaScript | 0 | @@ -40,24 +40,82 @@
helper) %7B%0A%0A
+%0A%0A%09%7D,%0A%0A%09postScript: function(component, event, helper) %7B%0A%0A
%09%09// try %7B%0A%0A
@@ -899,147 +899,8 @@
%7D,%0A%0A
-%09postScript: function(component, event, helper) %7B%0A%0A%09%09//$('%3Cmeta%3E', %7Bname: 'viewport',content: 'user-scalable=no'%7D).append... |
d85ab87ceaee2c38ae2e8c1245fe699bca6181be | Add support for conditional template blocks | lib/template.js | lib/template.js | var fs = require("fs");
var templates = {};
function make_safe(text) {
return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\'/g, "'").replace(/\"/g, """);
}
function flatten_object(object) {
var output,
prop,
subobject,
subprop,
i;... | JavaScript | 0 | @@ -1086,16 +1086,482 @@
ect;%0A%7D%0A%0A
+var ifPattern = /%5C%7B%25%5Cs*if%5Cs+(%5CS+?)%5Cs*%25%5C%7D((?:%5B%5Cs%5CS%5D(?!%5C%7B%25))*%5B%5Cs%5CS%5D)%5C%7B%25%5Cs*endif%5Cs*%25%7D/i;%0Avar ifNotPattern = /%5C%7B%25%5Cs*if%5Cs+not%5Cs+(.+?)%5Cs*%25%5C%7D((?:%5B%5Cs%5CS%5D(?!%5C%7B%25))*%5B%5Cs%5CS%5D)%5C%7B%25%5Cs*en... |
fb3d2c2d0700551572d3b671632e73ef3347cfe4 | Make CHTML-preview previews inherit the surrounding color | unpacked/extensions/CHTML-preview.js | unpacked/extensions/CHTML-preview.js | /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/extensions/CHTML-preview.js
*
* Implements a fast preview using the Common-HTML output jax
* and then a slower update to the m... | JavaScript | 0.000009 | @@ -1364,16 +1364,25 @@
%7B%0A
+Chunks: %7B
EqnChunk
@@ -1423,16 +1423,40 @@
lay: 150
+%7D,%0A color:%22inherit%22
%0A %7D),
@@ -1592,16 +1592,23 @@
s.config
+.Chunks
,%0A
@@ -1613,13 +1613,11 @@
-%22
SVG
-%22
: th
@@ -1625,23 +1625,106 @@
s.config
-%0A
+.Chunks,%0A %7D);%0... |
7936e25d221b7b0c999547de67705d70b832ce56 | Fix for ENYO-2385 | source/ui/Repeater.js | source/ui/Repeater.js | /**
_enyo.Repeater_ is a simple control for making lists of items.
The components of a repeater are copied for each item created, and are
wrapped in a control that keeps the state of the item index.
Example:
{kind: "Repeater", count: 2, onSetupItem: "setImageSource", components: [
{kind: "Image"}
]}
s... | JavaScript | 0 | @@ -2704,25 +2704,28 @@
nSender) %7B%0A%09
-%09
+
if (inEvent)
@@ -2719,24 +2719,49 @@
if (inEvent
+ && !(%22index%22 in inEvent)
) %7B%0A%09%09%09inEve
@@ -2785,17 +2785,35 @@
ndex;%0A%09%09
-%09
+%7D%0A %0A
// updat
@@ -2860,19 +2860,24 @@
r proxy%0A
-%09%09%09
+
// by mo
@@ -2923,... |
3d8a938c30be69bf557f84e484b17e35506c85c8 | work on button | ui/widgets/button.js | ui/widgets/button.js | goog.provide('recoil.ui.widgets.ButtonWidget');
goog.require('recoil.ui.WidgetScope');
/**
* @constructor
* @param {recoil.ui.WidgetScope} scope
* @param {Element} container the container that the tree will go into
*/
recoil.ui.widgets.ButtonWidget = function (scope, container) {
};
recoil.ui.widgets.Button... | JavaScript | 0.000001 | @@ -284,13 +284,383 @@
) %7B%0A
+ this.container_ = container;%0A /**%0A * @private%0A * @type goog.ui.Button%0A * %0A */%0A this.button_ = null;%0A /**%0A * @private%0A * @type recoil.structs.Tree%0A */%0A this.config_ = new recoil.ui.WidgetHelper(scope, container, this, thi... |
6484a22689930301c7a3ed5437409836ad05d9aa | fix duplicate gradient used on Convo tab | source/views/views.js | source/views/views.js | // @flow
import * as c from './components/colors'
export type ViewType =
| {
type: 'view',
view: string,
title: string,
icon: string,
foreground: 'light' | 'dark',
tint: string,
gradient?: [string, string],
}
| {
type: 'url',
view: string,
url: string,
title: string,
icon: stri... | JavaScript | 0 | @@ -2690,35 +2690,36 @@
ient: c.
-lightBlue
+carlsBlueLight
ToBlue
-Dark
,%0A%09%7D,%0A%09%7B
|
48fd5507c9c5724b2de43619f363ab70bcf5c06c | Fix JSON parser on advanced build. Fixes #64 | lime/src/helper/parser/json.js | lime/src/helper/parser/json.js | goog.provide('lime.parser.JSON');
goog.require('goog.math.Rect');
goog.require('goog.math.Vec2');
goog.require('goog.math.Size');
(function(){
lime.parser.JSON = function(data){
var dict = {};
var root = data['frames'];
for(var i in root){
var frame = root[i];
var w = frame['frame']['... | JavaScript | 0 | @@ -129,23 +129,8 @@
);%0A%0A
-(function()%7B%0A%0A%0A
lime
@@ -763,11 +763,4 @@
;%0A%7D;
-%0A%0A%7D)();
|
da204ccfccac81a74aac04260a208c807dc3bbde | Test for streaming. | __tests__/twitter-client.js | __tests__/twitter-client.js | jest.unmock('../lib/twitter-client')
var Bot = require('../lib/bot')
var TwitterClient = require('../lib/twitter-client')
var bot = new Bot()
test('should default to consumer key from enviromental variable', () => {
var client = new TwitterClient(bot)
client.send(null, 'text')
expect(client.twit.post).toBeCa... | JavaScript | 0 | @@ -1604,46 +1604,179 @@
);%0A%0A
-// var stream = client.twit.stream
+test('should listen for tweets mentioning the bot', () =%3E %7B%0A%0A var client = new TwitterClient(bot)%0A client.send(null, 'text')%0A%0A expect(client.twit.stream).toBeCalledWith
('st
@@ -1817,19 +1817,22 @@
.name %7D)
-%0A//
+;%0A%7D)... |
006adf2b7a48470de94b75c19e36e93a92ad5e7e | Inline regular expression | lib/node_modules/@stdlib/assert/is-blank-string/lib/main.js | lib/node_modules/@stdlib/assert/is-blank-string/lib/main.js | /**
* @license Apache-2.0
*
* Copyright (c) 2022 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.998586 | @@ -711,148 +711,199 @@
ve;%0A
-var reWhitespace = require( '@stdlib/regexp/whitespace' );%0A%0A%0A// VARIABLES //%0A%0Avar RE = new RegExp( '%5E' + reWhitespace.REGEXP.source + '*$' )
+%0A%0A// VARIABLES //%0A%0Avar RE = /%5E%5B%5Cu0009%5Cu000A%5Cu000B%5Cu000C%5Cu000D%5Cu0020%5Cu0085%5Cu00A0%5Cu1680%5Cu2000%5Cu2001%5... |
7ec023afb39af121ab5d614db2f67c0af5eed742 | add button # to EventTracker events; also prevent context menu | event_tracker.js | event_tracker.js | class EventTracker {
constructor(dom_element) {
this.dom_element = dom_element;
this.mouseIsDown = false;
this.lastP = null;
this.lastDrag = null;
this.lastTime = null;
this.mouseDownListener = null;
this.mouseDragListener = null;
this.mouseUpListener = null;
this.mouseWheelListen... | JavaScript | 0 | @@ -3103,16 +3103,51 @@
ffsetTop
+,%0A button: event.button
%7D;%0A %7D%0A
@@ -3450,16 +3450,131 @@
alse );%0A
+%09this.dom_element.addEventListener( 'contextmenu', (e) =%3E %7B%0A e.preventDefault();%0A return false;%0A %7D);%0A%0A
%7D%0A%0A%7D;%0A
|
79984c7730e0ff1e1bafc8cbe1029cdf8b62a358 | add source map support for better debugging experience (#3738) | packages/babel-jest/src/index.js | packages/babel-jest/src/index.js | /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
i... | JavaScript | 0 | @@ -2257,16 +2257,42 @@
: true,%0A
+ sourceMaps: 'inline',%0A
%7D);%0A
|
6250b0864193caa1c2f534fcbd67360e5239e92c | Add new selectors | src/examples/selectors.js | src/examples/selectors.js | function init(cube) {
// examples of led selector syntax
cube().on(); // whole cube
cube({x: range(cube.x - 3)}).on(); // all x from 0 to cube.x - 3 - 1 -> whole
cube({x: 3, y: 7}).on(); // all x = 3, y = 7 (z is free)
cube({x: 2, y: 4, z: 1}).on(); // specific led
cube([2, 4, 1]).on(); // speci... | JavaScript | 0.000001 | @@ -26,109 +26,40 @@
//
-examples of led selector syntax%0A cube().on(); // whole cube%0A cube(%7Bx: range(cube.x - 3)%7D
+whole cube%0A cube(
).on();
+%0A%0A
//
@@ -115,23 +115,33 @@
%7Bx:
-3, y: 7
+range(cube.x - 3)
%7D).on();
//
@@ -132,24 +132,29 @@
- 3)%7D).on();
+%0A%0A
// all x =
... |
4e12994dab6ed4401e6f288d7f5b67610669cfa5 | Use less restrictive assertion | lib/node_modules/@stdlib/string/from-code-point/lib/main.js | lib/node_modules/@stdlib/string/from-code-point/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.001472 | @@ -738,31 +738,26 @@
;%0Avar is
-ArrayLikeObject
+Collection
= requi
@@ -783,25 +783,18 @@
/is-
-array-like-object
+collection
' );
@@ -2474,23 +2474,18 @@
& is
-ArrayLikeObject
+Collection
( ar
|
17781458b3fcadd65830c03a1e1c12d47d63a92e | change server.info.port to static string | server.js | server.js | 'use strict';
var Composer = require('./index');
var Hoek = require('hoek');
Composer(function(err, server) {
Hoek.assert(!err, err);
server.start(function() {
console.log('Server is listening on ' + server.info.port);
});
});
| JavaScript | 0.000001 | @@ -212,28 +212,13 @@
on
-' + server.info.port
+8081'
);%0A
|
aa4ef48fe2ee4b049b1b92358188c3d07f6402db | Improve error handling | server.js | server.js | var express = require('express'),
usps = require('./lib/usps'),
config = require('./config')
/* Create App */
var app = express();
/* Config */
app.set('view engine', 'ejs');
app.set('views', __dirname + '/views');
/* Routes */
app.get('/', function (req, res) {
res.render('index');
});
app.get('/rat... | JavaScript | 0.000007 | @@ -866,16 +866,60 @@
if (err)
+ %7B%0A console.log(err);%0A
return
@@ -925,24 +925,34 @@
next(err);%0A
+ %7D%0A
resu
|
19f1be7546f3a20624f1866c6cf42a9618be2ac9 | Resolve merge conflict with Create3 | frontend/src/main-components/CreateFolderContent.js | frontend/src/main-components/CreateFolderContent.js | import React, { Component } from "react";
import css from "./CreateFolderContent.css";
import supportedLang from "../sub-components/SupportedLang.json";
class CreateFolderContent extends Component {
constructor(props) {
super(props);
this.state = {
folderName: "None",
folderLang: "English",
}... | JavaScript | 0 | @@ -1964,329 +1964,94 @@
-%3Coption value='English'%3EEnglish%3C/option%3E%0A %7B%0A /*%0A * Instead of using the languageScroll sub-component, we parse the supported languages so%0A * the value/language-name can be displaye... |
e5d67095ba70317538fea80d21a52d6ef4021402 | add documentation | src/jsxc.lib.tab.js | src/jsxc.lib.tab.js | /**
* Provides communication between tabs.
*
* @namespace jsxc.tab
*/
jsxc.tab = {
CONST: {
MASTER: 'master',
SLAVE: 'slave'
},
exec: function(target, cmd, params) {
params = Array.prototype.slice.call(arguments, 2);
if (params.length === 1 && $.isArray(params[0])) {
para... | JavaScript | 0 | @@ -700,20 +700,142 @@
/*
-jshint -W098
+*%0A * Execute command in master tab.%0A *%0A * @param %7BString%7D cmd Command%0A * @param %7BString%5B%5D%7D params List of parameters%0A
*/%0A
@@ -854,35 +854,24 @@
r: function(
-cmd, params
) %7B%0A va
@@ -1007,19 +1007,167 @@
;%0A %7D,%0A
+%0... |
5bc63e23b52864659221aa5d5a60000adc6c1c38 | add description of timestampSeparator to example | example/index.js | example/index.js | /* global angular, console */
'use strict';
angular
.module('app', ['evaporate'])
.controller('AppCtrl', ['$scope', function ($scope) {
// this variable is used like a model for particular directive
// all parameters here are optional
$scope.evaData = {
// every file will get the following... | JavaScript | 0 | @@ -636,16 +636,337 @@
'tmp',%0A%0A
+ // You can pick a different separator string that goes in between upload_datetime and filename_with_extension:%0A // http://%3Cyour_bucket%3E.s3.amazonaws.com/%3Cdir%3E/%3Cupload_datetime%3E%3Cthis_value%3E%3Cfilename_with_extension%3E%0A // if not specified, the de... |
9935a9be973e6e296baf582d3696db005f9fd294 | Refactor whitespace | jquery.plugin.js | jquery.plugin.js | /*
Copyright (c) <Year> <First & Last Name>, <Your Web Site>
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... | JavaScript | 0.000308 | @@ -1116,18 +1116,16 @@
ion($)%7B%0A
-
$.fn.e
@@ -1132,20 +1132,16 @@
xtend(%7B%0A
-
numb
@@ -1164,22 +1164,16 @@
ions) %7B%0A
-
th
@@ -1197,22 +1197,16 @@
= %7B%7D;%0A%0A
-
va
@@ -1262,22 +1262,16 @@
tions);%0A
-
va
@@ -1316,37 +1316,25 @@
xt();%0A
- ... |
da76cca5b237b0083c619298bf74cae0992f7910 | check to see callBack is function | jquery.rsDice.js | jquery.rsDice.js | (function($){
var MyDice = function(element, options) {
var elem = $(element);
var obj = this;
// Merge options with defaults
var settings = $.extend({
number : 6, // Number of sides for the dice
speed : 100, // Speed of dice roll
duration : 2000, // Duration of dice roll
callBack : functio... | JavaScript | 0.000004 | @@ -1212,16 +1212,65 @@
erval);%0A
+%0A%09%09%09%09if ( $.isFunction( settings.callBack ) ) %7B%0A%09
%09%09%09%09sett
@@ -1292,14 +1292,24 @@
all(
-this);
+obj);%0A%09%09%09%09%7D%0A%09%09%09%09
%0A%09%09%09
|
9976a0c7b47dade8f645b2f9877d1187927abb8c | Convert `headers` to regular property | app/adapters/application.js | app/adapters/application.js | import RESTAdapter from '@ember-data/adapter/rest';
import { computed } from '@ember/object';
import { inject as service } from '@ember/service';
export default class ApplicationAdapter extends RESTAdapter {
@service fastboot;
namespace = 'api/v1';
@computed('fastboot.{isFastBoot,request.headers}')
get heade... | JavaScript | 0.001646 | @@ -49,50 +49,8 @@
t';%0A
-import %7B computed %7D from '@ember/object';%0A
impo
@@ -211,61 +211,8 @@
';%0A%0A
- @computed('fastboot.%7BisFastBoot,request.headers%7D')%0A
ge
|
fa97c8d8d25c0ee4034c1006ea63a5061b3a5d5e | Allow gui to be hosted with command line path | server.js | server.js | var fs = require('fs');
var express = require('express');
var app = express();
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var morgan = require('morgan');
var bodyParser = require('body-parser');
var multer = require('multer');
var uploadComplete = false;
var db = mongoose.connect('mongodb://127... | JavaScript | 0 | @@ -4129,16 +4129,108 @@
me page%0A
+app.get('/app/', function(req, res) %7B%0A%09res.sendFile(process.argv%5B2%5D+%22app/index.html%22);%0A%7D);%0A%0A
app.get(
@@ -4264,16 +4264,20 @@
res.send
+File
(process
@@ -4284,16 +4284,30 @@
.argv%5B2%5D
++req.params%5B0%5D
);%0A%7D);%0A%0A
|
f4464c9f927b96efe77fbde20be99108236b9950 | Remove return to add break | jquery.vimize.js | jquery.vimize.js | (function($){
$.fn.vimize = function(options){
var defaults = {
escKey: 'true',
searchBoxSelector: '',
homePagePath: '/',
scrollVal: $(window).height() *0.3,
selectors: {0: 'a'},
defaultSelectors: 0
};
var setting = $.extend(defaults,options);
var keyPressBuffer = ... | JavaScript | 0.000001 | @@ -2201,24 +2201,52 @@
%7D%0A
+ keyPressBuffer ='';%0A
%7D%0A
if
@@ -2233,24 +2233,24 @@
'';%0A %7D%0A
-
if ($f
@@ -2431,32 +2431,35 @@
s();%0A
+ //
return false;%0A
@@ -2460,35 +2460,32 @@
lse;%0A
- //
break;%0A
@@ -2993,24 +2993,46 @@
;%0... |
6b2ad7489be92ceaf18f0487d4932328448b4237 | update filesize limit | server.js | server.js | // set up ======================================================================
var express = require('express');
var app = express(); // create our app w/ express
var mongoose = require('mongoose'); // mongoose for mongodb
var port = process.env.PORT || 8080; // set the port
var database = r... | JavaScript | 0.000001 | @@ -888,9 +888,9 @@
: '5
-G
+M
B' %7D
|
e379897b341c10662f391bc0fea7ad440f291fc2 | Fix margins | js/ChooseName.js | js/ChooseName.js | import { Input, Panel, PanelHeader, WideButton } from './Widgets';
export default class ChooseName extends React.Component {
constructor(props) {
super(props);
this.onClick = this.onClick.bind(this);
this.name = window.localStorage.name || undefined;
}
onClick(e) {
window.l... | JavaScript | 0.000006 | @@ -1,16 +1,21 @@
import %7B
+ Box,
Input,
@@ -34,26 +34,28 @@
Header,
-Wide
Button
+Circle
%7D from
@@ -536,17 +536,40 @@
Header%3E%0A
-%09
+ %3CBox p=%7B3%7D%3E%0A
%3CInput l
@@ -628,16 +628,20 @@
+
onChange
@@ -679,28 +679,37 @@
alue%7D/%3E%0A
-%09%3CWideButton
+ %3CButt... |
05e8af6ed0eda7ffb981e2e8a2a638ab4e200cf5 | Fix eaarly-return bug. | app/assets/party/profile.js | app/assets/party/profile.js | 'use strict';
app.controller('party/profile', [
'$scope', 'displayService', 'party', 'pageService','constantService',
function ($scope, display, party, page, constants) {
var getUsers = function(volumes){
var users = {};
users.sponsors = [];
users.labGroupMembers = [];
users.no... | JavaScript | 0 | @@ -3277,35 +3277,8 @@
d';%0A
- return false; %0A
|
f38a1fea6cac519447845ab45c0fc6ab2794e20d | Add test for the hull.started event | spec/lib/hull_spec.js | spec/lib/hull_spec.js | /*global sinon:true, define:true, describe:true, it:true, after:true, beforeEach:true */
define(['../support/mocks/app'], function (appMock) {
"use strict";
describe('hull main module', function () {
// Mocking dependencies of lib/hull
beforeEach(appMock.createApp);
after(function () {
appMock.... | JavaScript | 0.000006 | @@ -2688,32 +2688,380 @@
Hull);%0A %7D);
+%0A%0A it(%22should trigger an event when the app is started%22, function () %7B%0A appMock.app.start.returns(appMock.initDeferred);%0A appMock.sandbox.emit = sinon.spy();%0A appMock.hullInit(%7B%7D);%0A appMock.initDeferred.resolve();%0A ... |
d8753a70ed3dad4fa3024135bcaeb88269e4da69 | remove empty line. | examples/Root.js | examples/Root.js | import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import Board from '../lib/Board'
import TextWidget from '../lib/widgets/TextWidget'
import ClockWidget from '../lib/widgets/ClockWidget'
import '../stylus/style.styl'
import '../stylus/widget.styl'
document.addEventListener('DOMContentLoaded',... | JavaScript | 0.000501 | @@ -831,17 +831,16 @@
Widget%3E%0A
-%0A
|
46924430441a011b105a6874f72061ddd2c9fe02 | Fix name of readFile test | spec/readFile.spec.js | spec/readFile.spec.js | var path = require('path'),
fs = require('fs'),
crypto = require('crypto');
describe("readFile functionality", function() {
var _this = this;
require('./harness.js')(_this);
it("creates a directory", function(done) {
var fname = "testDir";
var resolved = path.resolve(_this.tempdir, ... | JavaScript | 0.000024 | @@ -196,27 +196,20 @@
it(%22
-c
rea
-te
+d
s a
-directory
+file
%22, f
|
989da02309d6a40155f2569609d01c910c11e4b5 | document "kebab" menu icon | js/PhetButton.js | js/PhetButton.js | // Copyright 2013-2018, University of Colorado Boulder
/**
* The button that pops up the PhET menu, which appears in the bottom right of the home screen and on the right side
* of the navbar.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
define( function( require ) {
'use strict';
// modules
var I... | JavaScript | 0 | @@ -3844,24 +3844,214 @@
e%0A %7D );%0A%0A
+ // The %22kebab%22 menu icon, 3 dots stacked vertically%0A // See https://ux.stackexchange.com/questions/115468/what-the-difference-between-the-2-menu-icons-3-dots-kebab-and-3-lines-hambur%0A
var opti
|
42797650946dbb63744fba10364626ee84846aa4 | Improve echo example | examples/echo.js | examples/echo.js | #!/usr/bin/env node
// This bot echoes back whatever you send to it.
// Usage: ./echo.js <auth token>
var botgram = require("botgram");
var bot = botgram(process.argv[2]);
bot.message(function (msg, reply, next) {
reply.text("You said:");
reply.message(msg);
});
| JavaScript | 0.000013 | @@ -236,16 +236,26 @@
aid:%22);%0A
+ try %7B%0A
reply.
@@ -268,12 +268,75 @@
e(msg);%0A
+ %7D catch (err) %7B%0A reply.text(%22Couldn't resend that.%22);%0A %7D%0A
%7D);%0A
|
9004ccf06e22cb81259d4209282c45e49eeda930 | Update timeout for 1.6.x branch | webdrivertest/test/datepicker/datepicker.visual.js | webdrivertest/test/datepicker/datepicker.visual.js | /*global describe, it, browser, require */
describe('datepicker', function () {
'use strict';
it('should match the baseline screenshot when the datepickers are closed', function (done) {
var result,
common = require('../common');
result = browser.url('/datepicker/fixtures/test.ful... | JavaScript | 0 | @@ -930,32 +930,38 @@
atepicker-popup'
+, 3000
);%0A%0A comm
@@ -1595,16 +1595,22 @@
r-popup'
+, 3000
);%0A%0A
|
b1fe9b79f0c0a212c8773b0d472bf8dcdb95d0ab | consolidate tests to check creation success and snapshot storage path default | test/MssqlSnapshot.create.spec.js | test/MssqlSnapshot.create.spec.js | import fs from 'fs';
import MssqlSnapshot from '../src/MssqlSnapshot';
import databaseConfig from '../src/databaseConfig';
import {deleteSnapshot, getPhysicalPath} from './testUtilities';
describe('when creating a named sql snapshot', function() {
let target = null;
beforeEach(() => target = new MssqlSnapshot({}))... | JavaScript | 0 | @@ -683,32 +683,36 @@
eforeEach(() =%3E
+%7B%0A%09%09
target = new Mss
@@ -731,16 +731,20 @@
bConfig)
+;%0A%09%7D
);%0A%0A%09aft
@@ -834,16 +834,53 @@
created
+ and the snapshot file exists on disk
', funct
@@ -1057,164 +1057,8 @@
%5D);%0A
-%09%09%7D);%0A%09%7D);%0A%0A%09it('it saves the snapshot file to the d... |
b9df6264b2f750b1c14213aa22b4ba5a3da2c0c8 | format #360 | js/ToggleNode.js | js/ToggleNode.js | // Copyright 2018, University of Colorado Boulder
/**
* Display one of N nodes based on a given Property. Maintains the bounds of the union of children for layout.
* Supports null and undefined as possible values. Will not work correctly if the children are changed externally
* after instantiation (manages its ow... | JavaScript | 0 | @@ -830,24 +830,25 @@
options ) %7B%0A
+%0A
assert &
@@ -1290,24 +1290,25 @@
%7D );%0A %7D%0A
+%0A
options
@@ -1410,17 +1410,25 @@
st node.
-
+%0A //
NOTE th
@@ -1447,25 +1447,16 @@
ent than
-%0A //
in Togg
|
939c92ab6f26752759ccb440dd6fc4eea1ea9c8d | Update server logic to use router and controller | server.js | server.js | const express = require('express'),
mongoose = require('mongoose'),
morgan = require('morgan'),
bodyParser = require('body-parser'),
methodOverride = require('method-override'),
app = express(),
config = require('./app/config/config');
app.use(morgan('dev'));
app.use(bodyParser.urlencoded({ ext... | JavaScript | 0 | @@ -448,16 +448,52 @@
ride());
+%0Arequire('./app/routes/route')(app);
%0A%0Amongoo
|
f67c20c71185cc1287c3e38efe218406c07a0097 | Remove useless functions | src/public/js/view/editPoiMarkerModal.js | src/public/js/view/editPoiMarkerModal.js |
define([
'underscore',
'backbone',
'marionette',
'bootstrap',
'templates',
'text!icons.json',
],
function (
_,
Backbone,
Marionette,
Bootstrap,
templates,
icons
) {
'use strict';
return Marionette.ItemView.extend({
template: JST['editPoiMarkerModal.html'],
behaviors: {
'l20n': {},
'moda... | JavaScript | 0.000326 | @@ -515,271 +515,46 @@
%09%09%09'
-mouseover @ui.colorButtons': 'onOverColorButtons',%0A%09%09%09'mouseleave @ui.colorButtons': 'onLeaveColorButtons',%0A%09%09%09'click @ui.colorButtons': 'onClickColorButtons',%0A%0A%09%09%09'mouseover @ui.shapeButtons': 'onOverShapeButtons',%0A%09%09%09'mouseleave @ui.shapeButtons': ... |
f8df9e0cd670f2bb88c4638dec30d26bbab72119 | fix exchange name | js/btctradeim.js | js/btctradeim.js | 'use strict';
// ---------------------------------------------------------------------------
const coinegg = require ('./coinegg.js');
const { ExchangeError } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = class btctradeim extends coine... | JavaScript | 0.000144 | @@ -447,16 +447,19 @@
': '
-CoolCoin
+BtcTrade.im
',%0A
|
8c0ffea385559090d32e9c8daba4215a21279f5c | Fix issue displaying completed games on last day of month. | _includes/js/application.js | _includes/js/application.js | (function() {
var Time = {
MINUTES_IN_HOUR : 60,
MILLISECONDS_IN_MINUTE : 60000,
OFFSETS : [300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300, 240,
300, 240, 300, 240, 300, 240, 300, 240, 300, 240, 300],
UNTILS : [1268550000000, 1289109600000, 1299999600000, 1320559200000,
... | JavaScript | 0 | @@ -2809,32 +2809,33 @@
ar parts
+
= time.getAttrib
@@ -2875,32 +2875,33 @@
sectionYear
+
= parseInt(parts
@@ -2923,32 +2923,33 @@
sectionMonth
+
= parseInt(parts
@@ -2971,32 +2971,33 @@
sectionDay
+
= parseInt(parts
@@ -3014,24 +3014,78 @@
%22T%22)%5B0%5D, 10)
+,%0A previousM... |
e532da58345a99c7e9776854c5b2634c24985cb8 | Fix invalid token response | server.js | server.js | var request = require('request');
var http = require('http');
var user = process.env.PACKAGIST_USER;
var token = process.env.PACKAGIST_TOKEN;
var url = process.env.PACKAGIST_URL || 'https://packagist.org';
var port = process.env.APP_PORT || 80;
var hooktoken = process.env.WEBHOOK_TOKEN;
http.createServer(function (re... | JavaScript | 0.002414 | @@ -645,41 +645,24 @@
res.
-status(401);%0A res.setHeader(
+writeHead(401, %7B
'Con
@@ -671,17 +671,17 @@
nt-Type'
-,
+:
'applic
@@ -691,16 +691,17 @@
on/json'
+%7D
);%0A
@@ -709,12 +709,13 @@
res.
-send
+write
(JSO
@@ -756,16 +756,29 @@
n' %7D));%0A
+%09 res.end();
%0A c
|
3f46073913f92e2344afd5c43bf337bee3abf959 | Fix npm watch error on webpack < 1.12.12 | js/commonMenu.js | js/commonMenu.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
'use strict'
const AppConfig = require('./constants/appConfig')
const AppActions = require('../js/actions/appActi... | JavaScript | 0.000084 | @@ -372,21 +372,84 @@
sages')%0A
-const
+%0Alet electron%0Atry %7B%0A electron = require('electron')%0A%7D catch (e) %7B%0A
electro
@@ -444,32 +444,39 @@
%7B%0A electron =
+global.
require('electro
@@ -479,16 +479,19 @@
ctron')%0A
+%7D%0A%0A
let app%0A
|
cc921981753c0a42a5b6df5463a5768a4f058bea | add error handler | server.js | server.js | var moment = require('moment');// datetime
var redis = require('redis');
var publisherClient = redis.createClient();
var express = require('express');
var path = require('path');
//var favicon = require('serve-favicon');
var logger = require('morgan');
//var cookieParser = require('cookie-parser');
//var bodyParser =... | JavaScript | 0.000001 | @@ -3185,34 +3185,32 @@
o error handler%0A
-//
app.use(function
@@ -3228,18 +3228,16 @@
next) %7B%0A
-//
var er
@@ -3264,18 +3264,16 @@
ound');%0A
-//
err.st
@@ -3284,18 +3284,16 @@
= 404;%0A
-//
next(e
@@ -3297,18 +3297,16 @@
t(err);%0A
-//
%7D);%0A%0A//
@@ -3319,18 +3319,16 @@
handler%0A
-//
app.u... |
2951fefef9394bbed2d0c89994e5b01f77df456b | change tooltip prop name to stop deprecation warning (#3186) | react/features/base/toolbox/components/ToolboxItem.web.js | react/features/base/toolbox/components/ToolboxItem.web.js | // @flow
import Tooltip from '@atlaskit/tooltip';
import React, { Fragment } from 'react';
import AbstractToolboxItem from './AbstractToolboxItem';
import type { Props } from './AbstractToolboxItem';
/**
* Web implementation of {@code AbstractToolboxItem}.
*/
export default class ToolboxItem extends AbstractToolbo... | JavaScript | 0 | @@ -2023,19 +2023,15 @@
-description
+content
= %7B
|
ad4d4da8b6ae05dcd44fb764a6c6ccb1cabfae8b | fix who's coming | js/contact_me.js | js/contact_me.js | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit b... | JavaScript | 0.000006 | @@ -1602,21 +1602,16 @@
.concat(
-whos_
coming),
|
452250db0db465b1f1db877f7231eca3e642e47f | change the submit button label to conform to the design | src/foam/nanos/auth/resetPassword/ForgotPasswordView.js | src/foam/nanos/auth/resetPassword/ForgotPasswordView.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.auth.resetPassword',
name: 'ForgotPasswordView',
extends: 'foam.u2.View',
documentation: 'Forgot Password Resend View',
imports: [
'notify',
'... | JavaScript | 0 | @@ -2753,32 +2753,13 @@
: 'S
-end reset password email
+ubmit
',%0A
|
64ef6d6bed99d552e44e444f4d8364009d597c81 | add stats color. | server.js | server.js | var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
contentBase: 'src',
publicPath: config.output.publicPath,
hot: true,
historyApiFallback: true
}).listen(3000, 'localhost', function (err, res... | JavaScript | 0 | @@ -265,16 +265,49 @@
ck: true
+,%0A stats: %7B%0A colors: true%0A %7D
%0A%7D).list
|
78df8f04984e007e1b1a01f446285bccd2c59511 | Update contact_me.js | js/contact_me.js | js/contact_me.js | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit b... | JavaScript | 0 | @@ -1133,16 +1133,45 @@
%22%5Cn%5Cn%22 +
+ %22Email: %22 + email + %22%5Cn%5Cn%22 +
%22Phone:
|
e64d1ef89a3fe5063c0b624ab6f218e749c51e2e | Fix generic inside value | generator.js | generator.js | var util = require('util');
var ptype = function (inter, nogeneric) {
var sequence = false;
var generic = false;
if (typeof inter !== 'string') {
sequence = inter.sequence;
generic = inter.generic;
type = inter.idlType;
if (Array.isArray(type)) {
type = 'any';
}
} else {
type = i... | JavaScript | 0.00001 | @@ -61,19 +61,51 @@
ogeneric
-) %7B
+info) %7B%0A %22use strict%22;%0A var type;
%0A var s
@@ -949,24 +949,27 @@
ent)%22;%0A %7D%0A
+ //
if (/%5BA-Z%5D/
@@ -985,24 +985,27 @@
e%5B0%5D)) %7B%0A
+ //
type = %60+$%7B
@@ -1001,17 +1001,16 @@
type = %60
-+
$%7Btype%7D%60
@@ -1008,24 +1008,27 @@
%60$%7Btyp... |
128a7b1a7b0d07e4843b870a3ab07c22456fe2dd | Switch DIG subject field to be a String rather than EMail type. | src/foam/nanos/dig/DIG.js | src/foam/nanos/dig/DIG.js | /**
* @license
* Copyright 2018 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.dig',
name: 'DIG',
extends: 'foam.nanos.http.DefaultHttpParameters',
documentation: 'Data Integration Gateway - Perform DAO operations against a web serv... | JavaScript | 0 | @@ -1498,37 +1498,38 @@
%7B%0A class: '
-EMail
+String
',%0A display
|
d755850d8a7bf1d0609e9b72edee7f81fb187f4e | Update AbsoluteId.js | lib/AbsoluteId.js | lib/AbsoluteId.js | /*
/* This program is free software: you can redistribute it and/or modify
/* it under the terms of the GNU Affero General Public License, version 3,
/* as published by the Free Software Foundation.
/*
/* This program is distributed in the hope that it will be useful,
/* but WITHOUT ANY WARRANTY; withou... | JavaScript | 0 | @@ -1,886 +1,4 @@
-/*%0A/* This program is free software: you can redistribute it and/or modify%0A/* it under the terms of the GNU Affero General Public License, version 3,%0A/* as published by the Free Software Foundation.%0A/*%0A/* This program is distributed in the hope that it will be useful,%0A/* b... |
f00470eebd10ad651382b8a3b507157e8c404655 | update example | examples/h5bp.js | examples/h5bp.js | var path = require('path');
var Boilerplate = require('../');
var inspect = require('stringify-object');
function stringify(config) {
return inspect(config, {
singleQuotes: true,
indent: ' '
});
}
var h5bp = new Boilerplate({
options: {
cwd: 'vendor/h5bp/dist'
},
root: {src: ['{.*,*.*}'], dest... | JavaScript | 0.000001 | @@ -17,24 +17,91 @@
re('path');%0A
+var get = require('get-value');%0Avar set = require('set-value');%0A//
var Boilerpl
@@ -165,16 +165,94 @@
ject');%0A
+var Target = require('expand-target');%0Avar Config = require('expand-config');%0A
%0A%0Afuncti
@@ -351,16 +351,891 @@
%7D);%0A%7D%0A%0A
+// var boilerplate = ... |
611e30da769eabd45d5eed83670fe8627ceb1a56 | add semi-colons. | server.js | server.js | /**
* Moraine Server.
*
* @author Jackson
* @type {*|exports|module.exports}
*/
var express = require('express')
var app = express()
app.get('/', function (req, res) {
res.send('Hello Moraine')
})
app.listen(8000)
| JavaScript | 0.004348 | @@ -110,16 +110,17 @@
xpress')
+;
%0Avar app
@@ -131,16 +131,17 @@
xpress()
+;
%0A%0Aapp.ge
@@ -202,11 +202,13 @@
ne')
+;
%0A%7D)
+;
%0A%0Aap
@@ -221,9 +221,10 @@
en(8000)
+;
%0A
|
aa5e99ad87ec2d1fc900f84eaa1937faec8fadbb | proper token | widgets/authentication/_LoginRegisterSignInPane.js | widgets/authentication/_LoginRegisterSignInPane.js | define([
'dojo/text!./templates/_LoginRegisterSignInPane.html',
'dojo/_base/declare',
'dojo/on',
'ijit/widgets/authentication/_LoginRegisterPaneMixin'
], function(
template,
declare,
on,
LoginRegisterPaneMixin
) {
// summary:
// The sign in pane for the LoginRegistrati... | JavaScript | 0.999005 | @@ -1428,33 +1428,32 @@
token =
-returnValue.resul
+this.parentWidge
t.token;
@@ -1507,33 +1507,32 @@
eDate =
-returnValue.resul
+this.parentWidge
t.tokenE
|
4a0bb5913f6435693aed808c7eb55e42d7384a55 | update listener | server.js | server.js | var sys = require("sys"),
my_http = require("http"),
path = require("path"),
url = require("url");
var Firebase = require("firebase")
my_http.createServer(function(request,response){
var my_path = url.parse(request.url).pathme;
var full_path = path.join(process.cwd(),my_path);
path.exists(full_path, funct... | JavaScript | 0 | @@ -820,14 +820,16 @@
000,
+'
0.0.0.0
+'
);%0A
|
cb70e180e0ec9a08d445d2a64fd0c141f21a4170 | add topojson plugin for map demo | ember-cli-build.js | ember-cli-build.js | /* jshint node: true */
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
var writer = require('broccoli-caching-writer');
var md = require('commonmark');
var fs = require('fs');
var path = require('path');
var Parser = md.Parser;
var HtmlRenderer = md.HtmlRenderer;
var Doc... | JavaScript | 0 | @@ -1418,16 +1418,28 @@
'sankey'
+, 'topojson'
%5D,%0A
|
30a7612117276e47dfe8ed0e52efbab9ba57f71f | Update rfid.js | examples/rfid.js | examples/rfid.js | // Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/
/*********************************************
This basic RFID example listens for an RFID
device to come within range of the module,
then logs its UID to the console.
*********************************************/... | JavaScript | 0.000001 | @@ -376,16 +376,17 @@
('../');
+
// Repla
|
90e4a74f19842bf0ab4a720eb9de5eae61b4b210 | update console messages | server.js | server.js |
/**
* Module dependencies
*/
var tessel = require('tessel')
, config = require('./config')
, climate = require('climate-si7005').use(tessel.port[config.climate.port])
, net = require('net');
/**
* TCP server
*/
var client, connect = function () {
client = net.connect(config.socket.port, config.socket.hos... | JavaScript | 0.000001 | @@ -343,32 +343,25 @@
onsole.log('
-Tessel c
+C
onnected to
@@ -607,32 +607,25 @@
onsole.log('
-Tessel c
+C
onnection wi
@@ -622,16 +622,24 @@
nection
+to host
will be
@@ -662,17 +662,34 @@
activity
-'
+: ', config.socket
);%0A
@@ -854,16 +854,9 @@
og('
-Tessel c
+C
onne
@@ -861,16 +861,24 @@
nectio... |
c0d97121977903bea3fe03b802cc964a4ebec13d | add support for geocodingQueryParams (#269) | src/geocoders/opencage.js | src/geocoders/opencage.js | import L from 'leaflet';
import { getJSON } from '../util';
export var OpenCage = L.Class.extend({
options: {
serviceUrl: 'https://api.opencagedata.com/geocode/v1/json'
},
initialize: function(apiKey) {
this._accessToken = apiKey;
},
geocode: function(query, cb, context) {
getJSON(
this.o... | JavaScript | 0 | @@ -204,19 +204,61 @@
n(apiKey
-) %7B
+, options) %7B%0A L.setOptions(this, options);
%0A thi
@@ -338,58 +338,23 @@
-getJSON(%0A this.options.serviceUrl,%0A
+var params =
%7B%0A
-
@@ -385,18 +385,16 @@
,%0A
-
q: query
@@ -394,34 +394,137 @@
: query%0A
- %7D,%0A
+%7... |
7dc1a2c0680cd895b06edb6f5d14bc175038e49e | clean up server.js | server.js | server.js | var pg = require('pg');
var express = require('express'),
port = process.env.PORT || 3000,
app = express();
// var pg = require('pg');
// app.get('/db', function (request, response) {
// pg.connect(process.env.DATABASE_URL, function(err, client, done) {
// client.query('SELECT * FROM users', function(err, re... | JavaScript | 0.000001 | @@ -109,2155 +109,8 @@
();%0A
-// var pg = require('pg');%0A%0A// app.get('/db', function (request, response) %7B%0A// pg.connect(process.env.DATABASE_URL, function(err, client, done) %7B%0A// client.query('SELECT * FROM users', function(err, result) %7B%0A// done();%0A// if (err)%0A// %7B con... |
25969e20f812e56531a591eba207eabee15a69aa | add status code to index.html response | server.js | server.js | "use strict";
var http = require("http");
var fs = require("fs");
var increasePrefix = require("./increase-prefix");
var keyRange = require("./key-range");
var ecstatic = require("ecstatic");
var generateQrCode = require("./generate-qr-code");
function trimTrailingSlash (text) {
return text.replace(/\/$/, "");
}
... | JavaScript | 0.000001 | @@ -2913,16 +2913,22 @@
iteHead(
+200, %7B
%22Content
@@ -2933,17 +2933,17 @@
nt-type%22
-,
+:
%22text/h
@@ -2946,16 +2946,17 @@
xt/html%22
+%7D
);%0A
|
12223d2a37214097aed9350886680172b4424b91 | Fix Express problem | server.js | server.js | var fs = require('fs');
var path = require('path');
var express = require('express');
var bodyParser = require('body-parser');
var fallback = require('express-history-api-fallback')
var app = express();
app.set('port', (process.env.PORT || 3000));
var root = __dirname + '/dist'
app.use('/', express.static(root));
ap... | JavaScript | 0.000004 | @@ -307,24 +307,60 @@
tic(root));%0A
+app.use('*', express.static(root));%0A
app.use(body
@@ -422,24 +422,27 @@
: true%7D));%0A%0A
+//
app.use(fall
|
a2ab6f1fbe7a9af036f86afc851e62ea349f75c7 | clear cache | server.js | server.js | var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
app.listen(app.get('port'), function() {
console.log('The server is running at ' + app.get('port'));
});
| JavaScript | 0.000001 | @@ -31,19 +31,22 @@
');%0Avar
-app
+server
= expre
@@ -52,19 +52,22 @@
ess();%0A%0A
-app
+server
.set('po
@@ -100,19 +100,22 @@
5000));%0A
-app
+server
.use(exp
@@ -156,19 +156,137 @@
);%0A%0A
-app
+server.get('/', function(request, response)%7B%0A response.sendFile('public/project.html', %7B root: __dirname ... |
ee7d1e3d5f4537c26b571aab6c7384bf7894b9d2 | Exclude phet-io-client-guides from lint, see https://github.com/phetsims/phet-io/issues/1815 | js/grunt/lint.js | js/grunt/lint.js | // Copyright 2017-2022, University of Colorado Boulder
/**
* Runs the lint rules on the specified files.
*
* @author Sam Reid (PhET Interactive Simulations)
* @author Michael Kauzmann (PhET Interactive Simulations)
*/
// modules
const _ = require( 'lodash' ); // eslint-disable-line require-statement-match
const... | JavaScript | 0.000001 | @@ -634,16 +634,46 @@
-info',%0A
+ '../phet-io-client-guides',%0A
'../ph
|
c4af8405f9e7276a0fbe2e29e4f8cc71b162d5dc | Use `base_url` http header (rollback) when no BASE_PATH env var provided (#23) | server.js | server.js | /* jshint node: true, browser: false */
'use strict';
// CREATE HTTP SERVER AND PROXY
const path = require('path');
const express = require('express');
const app = express();
const basePath = path.join('/', process.env.BASE_PATH||'/', '/');
if(!process.env.BASE_PATH) console.error(`WARNING: environment BASE... | JavaScript | 0 | @@ -201,22 +201,42 @@
= p
-ath.join('/',
+rocess.env.BASE_PATH ? toBasePath(
proc
@@ -256,19 +256,16 @@
PATH
-%7C%7C'/', '/')
+) : null
;%0A%0Ai
@@ -351,16 +351,49 @@
. USING
+'base_url' http header or '/' as
default%60
@@ -844,24 +844,97 @@
req, res) =%3E
+ %7B %0A const baseUrl = toBasePath(basePath %7C... |
d1c131ee4b08ef9439901fc64aa2948818d8f9ca | fix skybox refs | Sources/Interaction/Misc/DeviceOrientationToCamera/example/index.js | Sources/Interaction/Misc/DeviceOrientationToCamera/example/index.js | import 'vtk.js/Sources/favicon';
// Load the rendering pieces we want to use (for both WebGL and WebGPU)
import 'vtk.js/Sources/Rendering/Profiles/Geometry';
import vtkActor from 'vtk.js/Sources/Rendering/Core/Actor';
import vtkHttpDataSetReader from 'vtk.js/Sources/IO/Core/HttpDataSetReader';
import vtkFullScreenRen... | JavaScript | 0 | @@ -153,16 +153,102 @@
etry';%0A%0A
+import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip%0A%0A
import v
@@ -1570,14 +1570,17 @@
ins/
-px.vti
+right.jpg
%60,%0A
@@ -1624,14 +1624,16 @@
ins/
-nx.vti
+left.jpg
%60,%0A
@@ -1677,14 +1677,18 @@
ins/
-py.vti
+bottom.jpg
%60,%0A
@@ -... |
2107175a2a77f716e98236dd6138f461b39dbac9 | Add note to future self that we still need to scope the history request to the current request | _temp/hud/src/repository.js | _temp/hud/src/repository.js | 'use strict';
var $ = require('$jquery');
var messageProcessor = require('./util/request-message-processor');
var process = (function() {
var getIndex = function(messages) {
var index = {}
for (var i = 0; i < messages.length; i++) {
var message = messages[i];
for (var x = 0; x < message.types.length; x++) ... | JavaScript | 0 | @@ -4228,16 +4228,71 @@
d coded%0A
+%09// TODO: currently not targetting current request!!!!%0A
%09$.getJS
|
5fa17a11021b21c80d869f21abbb8521ab2b0973 | removed false positive | helper/rss.js | helper/rss.js | var request = require( 'request' );
var parseString = require('xml2js').parseString;
module.exports = {
load: function( url, cb ){
var self = this;
request.get(url, function(status, response) {
if( response.headers[ 'content-type' ].indexOf( 'text/xml;' ) === 0 ){
self.parseXml( response.body, cb );
} e... | JavaScript | 0.999997 | @@ -407,19 +407,94 @@
unction(
-)%7B%0A
+err, res)%7B%0A%09%09%09if(!err, res) %7B%0A%09%09%09%09self.parseXml( res.body, cb );%0A%09%09%09%7D else %7B%0A%09
%09%09%09cb( %7B
@@ -542,16 +542,21 @@
ng'%7D );%0A
+%09%09%09%7D%0A
%09%09%7D);%0A%09%7D
|
ab3c323f333996ac73157a634434d44186c2caef | Increase token size | database.js | database.js | const loki = require("lokijs");
let db = new loki("data.js");
let messages = db.addCollection("messages");
let sessions = db.addCollection("sessions"):
let _exports = module.exports = {};
function clean_message(msg) {
delete msg.secret;
msg.timestamp = (new Date()).getTime() / 1000;
}
_exports.store_message = fun... | JavaScript | 0.000001 | @@ -660,10 +660,10 @@
tes(
-1
6
+4
).to
|
5c30878babea4c6827271f54742618d53f76bc80 | Fix datetime problem | helpers/db.js | helpers/db.js | module.exports = function (options) {
/**
* Module options
*/
var client = require('mysql').createConnection({
host: 'localhost',
user: 'root',
password: '',
database: 'itineraris'
});
var replaceAll = function (replace, value, object) {
console.log(parseInt(object));
if (parseInt(object) != NaN)
... | JavaScript | 0.99998 | @@ -187,16 +187,37 @@
neraris'
+,%0A%09%09timezone: '+0000'
%0A%09%7D);%0A%0A%09
@@ -273,47 +273,14 @@
) %7B%0A
-%09%09console.log(parseInt(object));%0A%0A
%09%09if
+(
(par
@@ -296,15 +296,23 @@
ect)
+ + '')
!=
+'
NaN
+'
)%0A%09%09
@@ -2253,56 +2253,8 @@
);%0A%0A
-%09%09console.log(columns);%0A%09%09consol... |
30fcb8bdd47bfbbc277bc4c114263f5f198f303c | delete test log | server.js | server.js | // -----------------------------------------------------------------------------
// server configuration
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// requirements
var americano = require( 'americano'... | JavaScript | 0.000001 | @@ -321,89 +321,8 @@
);%0A
-var logger = require( './server/models/logger' );%0A%0A%0Alogger.info( 'zdsqkfsj' );
%0A//
|
d0b0423b2d4ef343d09bb27063d8b8162fb7d466 | Refactor solution to use regex and map | day10/10.js | day10/10.js | // look for groups of matching characters
// pass each group to say() and concatenate returns
var look = function(lookString) {
var i = 0;
var j = 1;
var sayString = '';
while (i < lookString.length) {
while (lookString[i] === lookString[j]) {
j++;
}
sayString += say(lookString.slice(i,j));
... | JavaScript | 0 | @@ -1,12 +1,12 @@
//
-l
+L
ook for
@@ -38,412 +38,94 @@
ters
+.
%0A//
-pass each group to say() and concatenate returns%0Avar look = function(lookString) %7B%0A var i = 0;%0A var j = 1;%0A var sayString = '';%0A%0A while (i %3C lookString.length) %7B%0A while (lookString%5Bi%5D === lookString%5Bj%5D) %7B%... |
0415e5c6a3688dcaf79163262b25b2a4101213e0 | 修改页面刷新3 | app/controllers/RoomCtrl.js | app/controllers/RoomCtrl.js | angular.module('chatMod').controller('RoomCtrl',function($scope,$http,$rootScope,$routeParams,$location){
/*
* 1 在控制器中注入$routeParams 这是一个对象,key是路径占位符,值就是路径里占位符对应的字符串
* 2 评出url /rooms/真实id 调用后台接口得到room对象
* 3 后台编写一个路由响应这个请求 app.get('/rooms/:_id')
* 4 通过Room模型的findById方法传入id,得到room对象并返回客户端
* 5 客户... | JavaScript | 0 | @@ -987,32 +987,61 @@
le.log(msgObj);%0A
+ console.log('%E6%8E%A5%E6%94%B6%E4%BF%A1%E6%81%AF');%0A
$scope.r
@@ -1059,32 +1059,61 @@
s.push(msgObj);%0A
+ console.log('%E5%88%B7%E6%96%B0%E4%BF%A1%E6%81%AF');%0A
$scope.r
@@ -1188,32 +1188,32 @@
return true;%0A
-
%7D);%0A
... |
bed042d5ccc83a9b5092e839cad97e5190c57bec | Fix TrackerReports | lib/Models/trackerReports.js | lib/Models/trackerReports.js | /**
* TrackerReports module
* @module Tuleap/Models/trackerReports
*/
'use strict';
/**
* Standard request cb
* @callback requestCallback
* @param {Error} Error
* @param {object} Data
*/
var Utils = require('../utils.js');
var Debug = require('debug')('Tuleap:TrackerReports');
/**
* @class
* @param {obje... | JavaScript | 0 | @@ -398,16 +398,75 @@
ient) %7B%0A
+%09if (!client) %7B%0A%09%09throw new Error('No client object.');%0A%09%7D%0A
%09this.pa
|
fb12120ecb5b64639922f9a13d41fffa67e19bbd | Add semicolon | js/lights-out.js | js/lights-out.js |
var numRows = 4
var numCols = 4
var matrix = [
[undefined, undefined, undefined, undefined],
[undefined, undefined, undefined, undefined],
[undefined, undefined, undefined, undefined],
[undefined, undefined, undefined, undefined]
]
var solution = [
[undefined, undefined, undefined, undefined],
... | JavaScript | 0.999999 | @@ -1628,16 +1628,17 @@
= false
+;
%0A%0A fo
|
8b0e8d59864b860f6bab8653699be9c7d7821f06 | Tweak some action-button tests | test/addons/action-button.test.js | test/addons/action-button.test.js | import React from 'react'
import ActionButton from '../../src/addons/action-button'
import Action from '../../src/action'
import {mount} from 'enzyme'
describe('actions', function () {
it('passes the value property as parameters into the action', function () {
let button = mount(<ActionButton action="test" valu... | JavaScript | 0.000001 | @@ -250,32 +250,82 @@
, function () %7B%0A
+ let action = n =%3E n%0A let send = jest.fn()%0A%0A
let button =
@@ -376,242 +376,102 @@
ue%7D
-/%3E, %7B%0A context: %7B%0A send: (type, params) =%3E new Action(type).resolve(params)%0A %7D%0A %7D)%0A%0A let action = button.instance().cl... |
e56ff49bb83575d9270223752f1c664643f5f7e5 | fix JSDoc. | lib/BlobObject.js | lib/BlobObject.js | /**
* @module BlobObject
* @private
* @mixin
* @description Exports BlobObject class.
*/
import Super from './Super';
import Promise from './Promise';
import constructors from './constants/constructors';
import {
isArray, isFunction,
toStringTag, Symbol, defineProperties
} from './helpers';
/**
* @typedef {... | JavaScript | 0 | @@ -1295,23 +1295,16 @@
@member
- %7BBlob%7D
BlobObj
@@ -1309,16 +1309,34 @@
bject#$%0A
+ * @type %7BBlob%7D%0A
* @pu
|
0040c5b94d5f981afe6cfc31d468ea23f87135f8 | update license info for highlight | lib/Highlight/highlight.js | lib/Highlight/highlight.js | jQuery.fn.highlight = function(start,end) {
function innerHighlight(node, start, end) {
var skip = 0;
if (node.nodeType == 3) {
if (start >= 0 && start < node.data.length && end >= 0 && end <= node.data.length) {
var spannode = document.createElement('span');
spannode.className = 'highlight';
... | JavaScript | 0 | @@ -1,16 +1,256 @@
+/*%0A%0Ahighlight v3%0A%0AHighlights arbitrary terms.%0A%0A%3Chttp://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html%3E%0A%0AMIT license.%0A%0AJohann Burkard%0A%3Chttp://johannburkard.de%3E%0A%3Cmailto:jb@eaio.com%3E%0A%0A*/%0A%0A
jQuery.fn.high... |
9ade0bebbf3f2bc761f822b41d5ff1b4fa26890a | change default checkbox style. Remove radius | era/ui/checkbox.js | era/ui/checkbox.js |
Ui.Togglable.extend('Ui.CheckBox',
/**Ui.CheckBox#*/
{
graphic: undefined,
contentBox: undefined,
hbox: undefined,
content: undefined,
text: undefined,
/**
* @constructs
* @class
* @extends Ui.Togglable
*/
constructor: function(config) {
this.addEvents('change');
this.setPadding(3);
this.hbox ... | JavaScript | 0 | @@ -2197,67 +2197,8 @@
) %7B%0A
-%09%09this.graphic.setRadius(this.getStyleProperty('radius'));%0A
%09%09if
@@ -3108,42 +3108,17 @@
or:
-new Ui.Color(%7B r: 1, g: 1, b: 1 %7D)
+'#444444'
,%0A%09%09
@@ -3137,12 +3137,12 @@
'#f6
-ddc8
+caa2
',%0A%09
@@ -3194,21 +3194,8 @@
0 %7D)
-,%0A%09%09radius: 5
%0A%09%7D%0A... |
f97b8161208cd43a25b8b3d0f5fcce92c109aff3 | Allow removal of list items | src/inputs/Array/Array.js | src/inputs/Array/Array.js | /* eslint-disable import/no-extraneous-dependencies */
import React, {PropTypes} from 'react'
import FormBuilderPropTypes from '../../FormBuilderPropTypes'
import ItemForm from './ItemForm'
import ItemPreview from './ItemPreview'
import ArrayContainer from './ArrayContainer'
import DropDownButton from 'part:@sanity/com... | JavaScript | 0.000007 | @@ -4022,16 +4022,121 @@
mValue)%0A
+ const actions = %5B%7Bkind: 'danger', title: 'Remove', handleClick: () =%3E this.handleRemoveItem(index)%7D%5D%0A
retu
@@ -4162,16 +4162,34 @@
mPopOver
+ actions=%7Bactions%7D
title=%7B
|
c183004332bda8738c64bc40d0be49a33ef67654 | Update AnimatedMarker.js | src/AnimatedMarker.js | src/AnimatedMarker.js | L.AnimatedMarker = L.Marker.extend({
options: {
// meters
distance: 200,
// ms
interval: 1000,
// animate on add?
autoStart: true,
// callback onend
onEnd: function(){},
clickable: false
},
initialize: function (latlngs, options) {
this.setLine(latlngs);
L.Marker.proto... | JavaScript | 0 | @@ -1136,24 +1136,65 @@
%7D%0A %7D
+%0A chunkedLatLngs.push(latlngs%5Blen-1%5D);
%0A%0A return
|
b91f8e12e419b6b0688735c5b54cf8eca12f4851 | Increase time trigger off to one minute | src/rules-engine/triggers/TimeTrigger.js | src/rules-engine/triggers/TimeTrigger.js | /**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.*
*/
const Events = require('../Events');
const Trigger = require('./Trigger');
/**
* An abstract class for tri... | JavaScript | 0 | @@ -1471,17 +1471,17 @@
endOff,
-1
+6
0 * 1000
|
82be0875dde1c93527f4c877a73347d7ecaeb563 | Delete files uploaded when cancel button clicked | src/main/web/florence/js/functions/_loadTableBuilder.js | src/main/web/florence/js/functions/_loadTableBuilder.js | function loadTableBuilder(pageData, onSave, table) {
var pageUrl = pageData.uri;
var html = templates.tableBuilder(table);
var uploadedNotSaved = {uploaded: false, saved: false, table: ""};
$('body').append(html);
if (table) {
renderTable(table.uri);
}
$('#upload-table-form').submit(function (event... | JavaScript | 0.000001 | @@ -180,19 +180,8 @@
alse
-, table: %22%22
%7D;%0A
@@ -310,37 +310,8 @@
) %7B%0A
- event.preventDefault();%0A%0A
@@ -775,18 +775,8 @@
on (
-returndata
) %7B%0A
@@ -806,89 +806,8 @@
();%0A
- uploadedNotSaved.uploaded = true;%0A uploadedNotSaved.table = path;%0A
@@ -1346,16 +1346,60 @@... |
7e28b2c4aa363ef3d307a4184accc0a0001f2034 | remove args e from loaded failure callback. | ads/xlift.js | ads/xlift.js | /**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | 0 | @@ -989,17 +989,17 @@
istener(
-%22
+'
SuccessL
@@ -1002,33 +1002,33 @@
essLoadedXliftAd
-%22
+'
, function(e) %7B%0A
@@ -1018,32 +1018,33 @@
', function(e) %7B
+
%0A global.cont
@@ -1108,17 +1108,17 @@
istener(
-%22
+'
FailureL
@@ -1129,17 +1129,17 @@
dXliftAd
-%22
+'
, functi
@@ -1141,17 +1141,16 @@
un... |
15f90ca53f843c22d8f5c08ac23bc7927ae7d18f | Use Math.PI instead of 3.14 | app/d3/PieChartDirective.js | app/d3/PieChartDirective.js | /**
* Created by rerobins on 11/12/14.
*/
var d3Module = d3Module || angular.module('d3');
d3Module.directive('piechart', ['d3Service','$window', function(d3Service, $window) {
function link(scope, element, attrs) {
scope.render = function (data) {
if (!scope.data) {
return... | JavaScript | 0.000497 | @@ -1194,16 +1194,19 @@
gle(
--3.14
+Math.PI
*
+-
2);%0A
|
0edecafab341079e4dc097e9f2cefeb7d2f2dc69 | Update homepage links | src/App/Header/Nav.js | src/App/Header/Nav.js | import React from 'react';
import { connect } from 'react-redux';
import { getConfigByName } from 'App/Config/entities';
function mapStateToProps(state) {
const radarEnabled = getConfigByName(state, 'radar.enabled');
return {
radarEnabled
};
}
function Nav({ radarEnabled }) {
return (<ul clas... | JavaScript | 0.000001 | @@ -330,114 +330,8 @@
v%22%3E%0A
- %7B/* %3Cli%3E%3CLoginLink /%3E%3C/li%3E */%7D%0A %7BradarEnabled && %3Cli%3E%3Ca href=%22/radar%22%3ETech Radar%3C/a%3E%3C/li%3E%7D%0A
@@ -368,32 +368,32 @@
R%C3%A9sum%C3%A9%3C/a%3E%3C/li%3E%0A
+
%3Cli%3E%3Ca h
@@ -568,86 +568,8 @@
li%3E%0A
- %3... |
5df5c69ec6a1235d5b08702d24e3a1f613be8280 | Remove unused imports in areaOfStudy | app/elements/areaOfStudy.js | app/elements/areaOfStudy.js | import _ from 'lodash'
import Immutable from 'immutable'
import React from 'react/addons'
import {State, Navigation} from 'react-router'
import studentActions from '../flux/studentActions'
import RequirementSet from './requirementSet'
let cx = React.addons.classSet
let AreaOfStudy = React.createClass({
mixins: [Sta... | JavaScript | 0 | @@ -27,163 +27,29 @@
ort
-Immutable from 'immutable'%0Aimport React from 'react/addons'%0Aimport %7BState, Navigation%7D from 'react-router'%0A%0Aimport studentActions from '../flux/studentActi
+React from 'react/add
ons'
|
febfb7f8b62279c3e57700171318f0c8dfb33534 | fix typo | httpServer.js | httpServer.js | var http = require("http");
var fs = require("fs");
var url = require("url");
var path = require("path");
var mime = require("mime");
var mkdirp = require('mkdirp');
var async = require('async');
var sSourceDir = ".";
var sShadowDir;
if (process.argv.length > 2) {
sSourceDir = process.argv[2];
}
if (process.argv.l... | JavaScript | 0.999991 | @@ -3713,13 +3713,14 @@
tent
+s
: %5B%5D%0A
-
@@ -3971,32 +3971,33 @@
dir.content
+s
.push(%7B%0A
@@ -4231,16 +4231,17 @@
.content
+s
.push(%7B%0A
@@ -4516,16 +4516,16 @@
tion???%0A
-
@@ -4555,16 +4555,17 @@
.content
+s
.length
|
74bb4607bd932efbad1f63318eb92e1c3c74c91e | Fix lint error | app/elements/studentList.js | app/elements/studentList.js | import React from 'react'
import {Link} from 'react-router'
import studentActions from '../flux/studentActions'
let StudentList = React.createClass({
shouldComponentUpdate(nextProps, nextState) {
return nextProps.students !== this.props.students
},
render() {
let students = this.props.students
.map((student... | JavaScript | 0.000035 | @@ -502,16 +502,17 @@
dent.id%7D
+,
%0A%09%09%09%09%09%09%7D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.