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
1f80b0311c9f67a2a2a6fbe8fa33707883ecbc1e
FIX Remove .only in remove device tests
test/unit/removeProvisionedDevice-test.js
test/unit/removeProvisionedDevice-test.js
/* * Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U * * This file is part of fiware-iotagent-lib * * fiware-iotagent-lib 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 versio...
JavaScript
0
@@ -1598,13 +1598,8 @@ ribe -.only ('De
cbcc0a8ec16ba2e11f0bfd1ae520caf5fd5fa8da
Commit all the required changes
commit.js
commit.js
var child_process = require('child_process') var fs = require('fs'); var max_sleep = 300 var step = 10 //Added a comment that achieves no real goal. //Non-blocking loop //Adjustable step //Status line //Add a rough time indicator //First cut at libfaketime support var commit_messages = [ "Fixing an important issue w...
JavaScript
0.998322
@@ -4471,28 +4471,29 @@ set);%0A timeout = 20;%0A +
fea940d642e3aca69224d2ded80a94a4f082e5e4
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -1035,16 +1035,17 @@ me() + (seconds +*
05be4548fdefc5577bbe517fbb06d8adbbbbc8b6
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -476,8 +476,9 @@ ength%0A +
3715f40b5aa13f7f94497022f7f97bf2b4281b7c
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -380,8 +380,9 @@ D = fs.o +p
a073889a5feef4c7b81e6b0f156b723d83515659
Validate element name right from command-line - Fixes #1
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var ElementGenerator = yeoman.generators.Base.extend({ init: function () { this.pkg = yeoman.file.readJSON(path.join(__dirname, '../package.json')); this.o...
JavaScript
0
@@ -946,32 +946,230 @@ %7D%0A + else if (input.indexOf('-') === -1) %7B%0A return 'According to the spec, all elements must contain a dash on its name, for example: %22my-element%22.';%0A %7D%0A %7D%0A @@ -1933,222 +1933,8 @@ e;%0A%0A - ...
cd9420a0a1e65b25ae76fd6f0d681daa5a2231f1
Fix focus trap props on dialog
packages/components/components/modal/Dialog.js
packages/components/components/modal/Dialog.js
import React, { useRef } from 'react'; import PropTypes from 'prop-types'; import Portal from '../portal/Portal'; import { classnames } from '../../helpers'; import { useFocusTrap } from '../focus'; const CLASSES = { MODAL: 'pm-modal', MODAL_IN: 'pm-modalIn', MODAL_OUT: 'pm-modalOut', MODAL_SMALL: 'pm...
JavaScript
0
@@ -1160,90 +1160,8 @@ %3Cdiv -%0A ref=%7BrootRef%7D%0A %7B...focusTrapProps%7D%0A cla @@ -1249,29 +1249,16 @@ ound'%5D)%7D -%0A %3E%0A @@ -1687,16 +1687,54 @@ sNames,%0A + 'no-outline',%0A @@ -1835,16 +1835,90 @@ ..r...
5f29c1e2a2a0d22b6c3690afbf4f50886584a98a
Implement new way to call superclass
javascript/PPTennisTournament.js
javascript/PPTennisTournament.js
function PPTennisTournament(name) { this.superclass(name); this.class = PPTennisTournament.className(); } // This must be in between the constructor definition and // new method definitions in order for it to work. PPUtils.extend (PPTennisTournament, PPTournament); PPTennisTournament.className = function () { re...
JavaScript
0.001955
@@ -35,24 +35,49 @@ %7B%0A -this.superclass( +PPTennisTournament.superclass.call(this, name
d77a8ea1a7568eac1951d8ff1a400e2b59d82624
Fix credentials field message
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var _ = require('lodash'); var chalk = require('chalk'); var mkdirp = require('mkdirp'); var wiring = require('html-wiring'); var FlowXOUtils = require('../utils'); var pkg = require('../package.json'); var ...
JavaScript
0.000002
@@ -1933,11 +1933,9 @@ alk. -bgG +g reen @@ -1944,19 +1944,18 @@ You -now need to +should now def
aeed4af35fa426135fce5b079a4fd890a765c333
Fix `{{action`.
packages/ember-glimmer/lib/modifiers/action.js
packages/ember-glimmer/lib/modifiers/action.js
import { uuid } from 'ember-utils'; import { run, flaggedInstrument } from 'ember-metal'; import { assert } from 'ember-debug'; import { isSimpleClick, ActionManager } from 'ember-views'; import { INVOKE } from '../helpers/action'; const MODIFIERS = ['alt', 'shift', 'meta', 'ctrl']; const POINTER_EVENT_TYPE_REGEX ...
JavaScript
0.000001
@@ -4046,16 +4046,26 @@ %7D = args +.capture() ;%0A le
e1378b317e35b59713b7a5bc78a63e7e063e3e20
Work in Progress
commit.js
commit.js
var child_process = require('child_process') var fs = require('fs'); var max_sleep = 300 var step = 10 //Added a comment that achieves no real goal. //Non-blocking loop //Adjustable step //Status line //Add a rough time indicator //First cut at libfaketime support var commit_messages = [ "Fixing an important issue w...
JavaScript
0
@@ -4298,20 +4298,21 @@ %0A var timeout = r +a
23e89d91f5e26d3c0d9fab00acda3cd3e609b121
Update packages/fields/src/types/Color/views/Field.js
packages/fields/src/types/Color/views/Field.js
packages/fields/src/types/Color/views/Field.js
/** @jsx jsx */ import { jsx } from '@emotion/core'; import { Fragment, useMemo } from 'react'; import { FieldContainer, FieldLabel, FieldInput } from '@arch-ui/fields'; import Popout from '@arch-ui/popout'; import { Button } from '@arch-ui/button'; import SketchPicker from 'react-color/lib/Sketch'; const ColorField =...
JavaScript
0
@@ -733,17 +733,16 @@ e(/%5Ergba -? %5C(%7C%5Cs+%7C%5C
a0741461d46a9b4e571bd00030903ba0491d0dbe
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -571,8 +571,9 @@ n/git', +%5B
3006260ed895d8cbb27dd8c34b3483300a49b269
Update character
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 if ( process.argv[ 2 ] && process.argv[ 3 ] ) { var inFile = process.argv[ 2 ] var outFile = process.argv[ 3 ] if (process.argv [ 4 ]) max_sleep = process.argv [ 4 ] console.info("Writing from %s to %s, with up to %s secon...
JavaScript
0
@@ -469,12 +469,13 @@ data.length +%0A
59ea37cb7222517b77b123c80b1300f903940fc7
Update index
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var MilagroGenerator = module.exports = function MilagroGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.on('end', function () { this.installDependencies({ ski...
JavaScript
0.000001
@@ -59,24 +59,164 @@ re('path');%0A +var spaw = require('child_process').spaw;%0Avar chalk = require('chalk');%0Avar globule = require('globule');%0Avar shelljs = require('shelljs');%0A var yeoman = @@ -245,16 +245,36 @@ ator');%0A +var bundle = false;%0A %0A%0Avar Mi
621d3b23fca7d1eb65a859f1fab0a7c60aa3e7d2
Fix domain typo
app/index.js
app/index.js
'use strict'; var util = require('util'), path = require('path'), yeoman = require('yeoman-generator'); var HtmlEmailGenerator = module.exports = function HtmlEmailGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.on('end', function () { this.installDe...
JavaScript
0.001685
@@ -2370,37 +2370,38 @@ // Check if -email +domain is valid%0A
a14eaf4140823c8208310bfac44769e6a4452992
Update character
commit.js
commit.js
var fs = require('fs'); var child_p
JavaScript
0
@@ -28,8 +28,9 @@ child_p +r
83bdd1759a30a8239f177d917ce02c6b89c36466
fix wrongly formatted code from prettier-atom
app/index.js
app/index.js
const Generator = require('yeoman-generator'); const kebabCase = require('lodash.kebabcase'); module.exports = class extends Generator { init() { return this.prompt([ { name: 'moduleName', message: 'What do you want to name your module?', default: this.appname.replace(/\s/g, '-'), ...
JavaScript
0.000079
@@ -1314,24 +1314,16 @@ tpl -,%0A );%0A%0A
f92df799686b781b5e5ae77ee749e425b9f589c8
Work in Progress
commit.js
commit.js
var fs = require('fs'); var child_process = require('child_process') var max_sleep = 300 //Added a comment that achieves no real goal. var commit_messages = [ "Fixing an important issue with the universe.", "Someone poisoned the waterhole!", "You feeling lucky punk?", "Five bullets or six?", "Fixed memory pa...
JavaScript
0
@@ -2189,8 +2189,9 @@ () + (se +c
0659c18b95c3e7987b2e61cb3b87b194f13940e0
Update LinkConstants.js
common/components/constants/LinkConstants.js
common/components/constants/LinkConstants.js
// @flow import GlyphStyles from "../utils/glyphs.js"; import type { Dictionary, KeyValuePair } from "../types/Generics.jsx"; import _ from "lodash"; export type LinkSourceDisplayConfig = {| +sourceUrlPattern: ?RegExp, +sourceDisplayName: ?string, +sourceTypeDisplayName: string, +iconClass: string, |}; expor...
JavaScript
0
@@ -2045,34 +2045,8 @@ k%22,%0A - Figma: %22link_facebook%22,%0A %7D;%0A%0A
186d49180e23dbf994ff3c49d3a143025670a1cc
update test data
test_data/posts_data_target_oplog_sync.js
test_data/posts_data_target_oplog_sync.js
[ { "_id": { "$oid": "56b8f05cf9fcee1b00000010" }, "title": "title3", "body": "body3", "user_id": "56b8d7caf9fcee1b00000001", "updated_at": { "$date" : "2016-02-08T19:45:32.501Z"}, "created_at": { "$date" : "2016-02-08T19:45:32.501Z"} }, { "_id": { "$oid": "56b8da59f9fcee1b00000007...
JavaScript
0
@@ -69,14 +69,12 @@ %22: %22 -title3 +sada %22,%0A @@ -181,28 +181,28 @@ 6-02-08T -19:45:32.501 +20:02:12.985 Z%22%7D,%0A @@ -312,24 +312,84 @@ 0000007%22 %7D,%0A + %22updated_at%22 : %7B %22$date%22 :%222016-02-08T19:52:23.883Z%22%7D,%0A %22commen @@ -394,21 +394,27 @@ ents%22: %5B -%7B %0A + ...
5850cf9ed646c5a0c7a8762f6d022be1828526bc
Update internal temperature example to use chipio.InternalTemperature
examples/internal-temperature.js
examples/internal-temperature.js
var five = require('johnny-five'); var ChipIO = require('../index'); // or require('chip-io'); var board = new five.Board({ io: new ChipIO() }); board.on('ready', function() { var thermometer = new five.Thermometer({ controller: ChipIO.Controllers.INTERNAL_TEMP }); thermometer.on('change', function(data)...
JavaScript
0
@@ -32,22 +32,22 @@ ');%0Avar -ChipIO +chipio = requi @@ -128,22 +128,22 @@ io: new -ChipIO +chipio ()%0A%7D);%0A%0A @@ -201,79 +201,35 @@ new -five.Thermometer(%7B%0A controller: ChipIO.Controllers.INTERNAL_TEMP%0A %7D +chipio.InternalTemperature( );%0A%0A
2edc9e586f8514365487636c3ea5980f0f1b76d7
Delete domain
src/ui/scripts/actions/domains.js
src/ui/scripts/actions/domains.js
import api from '../utils/api' import signalHandler from '../utils/signalHandler' export const SET_DOMAINS_VALUE = Symbol() export const SET_DOMAINS_FETCHING = Symbol() export const SET_DOMAINS_ERROR = Symbol() export const setDomainsValue = (payload) => ({ type: SET_DOMAINS_VALUE, payload }) export const setDomai...
JavaScript
0.000001
@@ -2107,32 +2107,61 @@ %7D%0A%09%09%09%7D,%0A%09%09%09props +,%0A%09%09%09signal: signal(domainId) %0A%09%09%7D)%0A%0A%09%09await d @@ -2593,76 +2593,191 @@ %0A%0A%09%09 -await api(%60/domains/$%7B domainId %7D%60, %7B%0A%09%09%09body: JSON.stringify(state) +console.log(state)%0A%0A%09%09await api(%7B%0A%09%09%09qu...
a908c5a6ef9d864e9fc398a31c1136abfd3008a8
Fix for issue #1361 Mixin individual properties to options instead of calling .jqmData()
js/jquery.mobile.buttonMarkup.js
js/jquery.mobile.buttonMarkup.js
/* * jQuery Mobile Framework : plugin for making button-like links * Copyright (c) jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ ( function( $, undefined ) { $.fn.buttonMarkup = function( options ) { return this.each( function() { var el = $( this ), o = $...
JavaScript
0
@@ -358,20 +358,117 @@ ts, -el.jqmData() +%7B%0A%09%09%09%09icon: el.jqmData( %22icon%22 ),%0A%09%09%09%09iconpos: el.jqmData( %22iconpos%22 ),%0A%09%09%09%09theme: el.jqmData( %22theme%22 )%0A%09%09%09%7D , op
902570cda289f814e96c91dee479dcf49c65d78b
Update newModelValue and newOptions even if falsy
angular-selectize.js
angular-selectize.js
/** * Directive to convert a select into a selectize.js hybrid textbox and <select> * Supports an ngOptions expression. Tested with: * `label for value in array` * `select as label for value in array` * In theory supports the same options as selectize.js * * Usage: * <select * multiple * ng-model="selec...
JavaScript
0.000001
@@ -1858,40 +1858,8 @@ ) %7B%0A - if (modelValue) %7B%0A @@ -1894,30 +1894,16 @@ lValue;%0A - %7D%0A @@ -2119,37 +2119,8 @@ ) %7B%0A - if (options) %7B%0A @@ -2149,30 +2149,16 @@ ptions;%0A - %7D%0A
e12f5122bd5989056ab24daa01abeee2ad80ca6c
use cached value in button text method
js/jquery.mobile.forms.select.js
js/jquery.mobile.forms.select.js
/* * jQuery Mobile Framework : "selectmenu" plugin * Copyright (c) jQuery Project * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function( $, undefined ) { $.widget( "mobile.selectmenu", $.mobile.widget, { options: { theme: null, disabled: false, icon: "arrow-d", ico...
JavaScript
0.000001
@@ -1412,29 +1412,24 @@ %09return -self. selected ().text( @@ -1420,18 +1420,16 @@ selected -() .text(); @@ -1445,29 +1445,24 @@ %09return -self. selected ().lengt @@ -1453,18 +1453,16 @@ selected -() .length @@ -1467,21 +1467,16 @@ h ? -self. selected ().m @@ -1463,34 +1463,32 @@ ength ? selected -()...
3311f3b0afdf2eae82b236b08a5c9ec3393bafac
Fix up long-content in PostRowView
js/com/google/ymp/ui/PostRowView.js
js/com/google/ymp/ui/PostRowView.js
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ CLASS({ pack...
JavaScript
0.000001
@@ -1990,24 +1990,50 @@ ding: 16px;%0A + overflow: hidden;%0A %7D%0A @@ -2206,32 +2206,195 @@ : 0.54;%0A %7D%0A + $-title, $-author, $-desc, $-title *, $-author *, $-desc * %7B%0A white-space: nowrap;%0A overflow: hidden;%0A text-overflow: ellipsis;%0A %7D%0A ...
0bc7e9b9b3651ffe9849c1aad277db97a810b4a3
set new dummy link to GeoPickerComponent.js
js/components/GeoPickerComponent.js
js/components/GeoPickerComponent.js
angular.module('chronontology.components') .controller('GeoPickerModalController', function($uibModalInstance) { this.loadPlaces = function(bbox) { // should set to "/spi/place?bbox=" + bbox $http.get("/spi/place?dummy=Feature&type=0", { headers: { 'Authorization': undef...
JavaScript
0
@@ -166,105 +166,121 @@ -// should set to %22/spi/place?bbox=%22 + bbox%0A $http.get(%22/spi/place?dummy=Feature +$http.get(%22/spi/place?bbox=50.082665;8.161050;50.082665;8.371850;49.903887;8.161050;49.903887;8.371850 &type= -0 +getty %22, %7B @@ -383,16 +383,55 @@ ojson)%7B%0A + co...
d75d92a4d9482abe0c6ff20d833ea4de75ccc452
Fix tap to close.
js/foundation/foundation.tooltip.js
js/foundation/foundation.tooltip.js
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.tooltip = { name : 'tooltip', version : '5.0.0', settings : { additional_inheritable_classes : [], tooltip_class : '.tooltip', append_to: 'body', disable_for_touch: false, tip_template : function...
JavaScript
0
@@ -252,16 +252,56 @@ 'body',%0A + touch_close_text: 'Tap To Close',%0A di @@ -3234,14 +3234,16 @@ ouch -C +_c lose -T +_t ext+
c9dc4933044d473898967f126e23f051696aae5d
Clear the jsdom document created in createWindow
doc/jquery-example.js
doc/jquery-example.js
require.paths.unshift('lib') require.paths.unshift('deps/jsdom/lib') var HTML5 = require('html5'), Script = process.binding('evals').Script, sys = require('sys'), fs = require('fs'), jsdom = require('jsdom'), window = jsdom.createWindow(null, null, {parser: HTML5}); var parser = new HTML5....
JavaScript
0.000001
@@ -285,19 +285,175 @@ r: HTML5 -%7D); +, document: new jsdom.dom.level1.core.Document()%7D);%0A%0Awindow.document.removeChild(window.document.childNodes%5B0%5D); // Clear the stub document that jsdom gives us %0A%0Avar pa
063df2d0aab6eef844469afaba38612afbe19666
Update eval.js
commands/eval.js
commands/eval.js
const Discord = require('discord.js'); const config = require("./config.json"); exports.run = async (bot, message) => { var embed = new Discord.RichEmbed() .setTitle("Restricted") .setColor("#f45f42") .addField("You are restricted from this command", "Its for the bot owner only!") const randomColor = "#0...
JavaScript
0.000001
@@ -800,16 +800,31 @@ want%22)%0A + try %7B%0A const c @@ -851,53 +851,24 @@ ;%0A -try %7B%0A const evaled = client.clean(await + let evaled = eva @@ -874,27 +874,27 @@ al(code) -) ;%0A +%0A if (message @@ -889,175 +889,157 @@ if -(message.flags.includes(%22d%22)) msg.delete();%0A ...
eeddc7ccdb4353b8e545a29398aed45e4a60bcca
Update eval "No input" message
commands/eval.js
commands/eval.js
const config = require('../config.json'); // Import configuration exports.main = function(selfbot, msg, msgArray) { // Export command function var command = "eval"; if(!config.eval) {msg.edit('Eval has been disabled in the config.').then(msg => msg.delete(2000))}; // If eval disabled in config, notify user...
JavaScript
0.000013
@@ -547,16 +547,64 @@ t given. + Maybe you forgot to enclose it with %5C%22quotes?%5C%22 %22).then(
a0dec94fcf0082bd072cfa386b51a139f6378ec3
Increase page size for polling calls.
commands/functions-log.js
commands/functions-log.js
'use strict'; var _ = require('lodash'); var api = require('../lib/api'); var Command = require('../lib/command'); var FirebaseError = require('../lib/error'); var gcp = require('../lib/gcp'); var getProjectId = require('../lib/getProjectId'); var logger = require('../lib/logger'); var requireAccess = require('../lib/...
JavaScript
0
@@ -857,18 +857,19 @@ Id, nf, -35 +100 , 'asc')
b85ec691eb651fe9f37b5ca051c7987fc69b5166
Add brief description to kafka:info
commands/info.js
commands/info.js
'use strict' const co = require('co') const cli = require('heroku-cli-util') function configVarNamesFromAttachment (config, attachment) { const sortBy = require('lodash.sortby') let value = config[attachment] let keys = [] for (let key of Object.keys(config)) { if (config[key] === value) { keys.pus...
JavaScript
0
@@ -2229,16 +2229,62 @@ kafka',%0A + description: 'display cluster information',%0A needsA
71bec4ee8ed70079a5ce406c395272274196c38a
update days left
app/utils.js
app/utils.js
export const getRemainingCFPDays = () => { const endDay = new Date(2017, 6, 20), today = new Date(); return Math.floor((endDay - today) / 86400000); };
JavaScript
0
@@ -114,13 +114,12 @@ ath. -floor +ceil ((en
98c90a56e9e5c2b0c5efd87a57b329580e858f1a
fix top
benchmark.js
benchmark.js
var summary = require('summary'); function timeit(top, callback) { var times = new Float64Array(1000000); (function recursive(i) { var tick = process.hrtime(); setImmediate(function () { if (i === top) { callback(summary(times)); } else { ...
JavaScript
0.000002
@@ -99,15 +99,11 @@ ray( -1000000 +top );%0A
76b265686cad0cb84cf0a78254d7a3a57291afc4
Update UDPefef
benchmark.js
benchmark.js
'use strict' /** * Created by tungtouch on 2/9/15. */ var cluster = require('cluster'); var numCPUs = require('os').cpus().length; var dgram = require('dgram'); var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:"); var client = dgram.createSocket("udp4"); var async = requir...
JavaScript
0
@@ -1075,32 +1075,34 @@ +// console.log(%22Req
45df8a6ea21f1bb57dfd784a95140d0d8d1377be
Update radixx-spec.js
tests/specs/radixx-spec.js
tests/specs/radixx-spec.js
/** * @title: Unit Testing * @project: Radixx Flux Library */ describe("The Radixx Flux Library :", function() { Radixx.configure({ runtime:{ spaMode:false }, universalCoverage:true, autoRehydrate:true, localHostDev:true }); var actions = Radixx.makeActionCreators({ ...
JavaScript
0
@@ -143,117 +143,8 @@ %09%09%09%09 -runtime:%7B%0A%09%09%09%09%09spaMode:false%0A%09%09%09%09%7D,%0A%09%09%09%09universalCoverage:true,%0A%09%09%09%09autoRehydrate:true,%0A%09%09%09%09localHostDev:true %0A%09%09%09
e1fc4667df82927bdfcac116fb33b20ebec788eb
Fix some derps.
commands/look.js
commands/look.js
'use strict'; const CommandUtil = require('../src/command_util') .CommandUtil; const sprintf = require('sprintf') .sprintf; const l10nFile = __dirname + '/../l10n/commands/look.yml'; const l10n = new require('jall')(require('js-yaml').load(require('fs') .readFileSync(l10nFile).toString('utf8')), undefined, 'zz'...
JavaScript
0.000006
@@ -2415,22 +2415,22 @@ ts.find( -canSee +isExit );%0A @@ -2476,14 +2476,12 @@ s.is -Closed +Open (fou
c926980339a0da8bdc8a3aa6ea0e8a51560910c8
Include mpu in point resolution calculations
examples/projection-and-scale.js
examples/projection-and-scale.js
import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {ScaleLine, defaults as defaultControls} from '../src/ol/control.js'; import { getPointResolution, get as getProjection, transform, } from '....
JavaScript
0
@@ -1291,16 +1291,126 @@ ction);%0A + const currentMPU = currentProjection.getMetersPerUnit();%0A const newMPU = newProjection.getMetersPerUnit();%0A const @@ -1425,32 +1425,36 @@ ointResolution = +%0A getPointResolut @@ -1457,21 +1457,16 @@ olution( -%0A currentP @@ -1479,46 +1479,61 @@ ion, -%0A ...
428e2fbd054953a728e8c299d73b25813fde623a
Fix for false positive validation errors when editing
packages/recipes/public/controllers/recipes.js
packages/recipes/public/controllers/recipes.js
'use strict'; angular.module('mean').controller('RecipesController', ['$scope', '$modal','$http','Global', function($scope, $modal, $http, Global, Menu) { $scope.global = Global; $scope.menu = {name:'menu'}; // TODO get on this shit $scope.drinkMap = {}; $scope.drinkMap['grey goose'] = { type...
JavaScript
0.000065
@@ -3060,21 +3060,16 @@ // -TODO make sur @@ -3167,16 +3167,83 @@ editing%0A + if (scope.$parent.$index == i)%0A continue;%0A
ec11707ce6ad18742b26d56383b6ebadb2bedf8c
Update documentation navigation
docs/assets/js/nav.js
docs/assets/js/nav.js
/* * This is inspired by the CodeIgniter user guide's create_menu function. * http://codeigniter.com/user_guide/nav/nav.js * * It extracts the navigation to a single file for easier updating. */ //define document navigation var nav = { "Basic": { "Home": "index.html" }, "Installation": { "Instr...
JavaScript
0
@@ -1578,25 +1578,30 @@ o.html%22%0A%09%09%7D, -%0A + */%0A%09%09 %0A%09%09%22Parser%22: @@ -1632,26 +1632,37 @@ %22parser/ -todo +introduction .html%22 + /* ,%0A%09%09%09%22Dr @@ -1717,23 +1717,23 @@ ml%22%0A%09%09%09%7D +*/ %0A%09%09%7D, -*/ %0A%0A%09%09%22Ref
d9df6cb5f6afc3798625faa12d8e428bf638b519
Use find before updates
packages/rocketchat-lib/server/models/_Base.js
packages/rocketchat-lib/server/models/_Base.js
const {EventEmitter} = Npm.require('events'); class ModelsBase extends EventEmitter { _baseName() { return 'rocketchat_'; } _initModel(name) { check(name, String); this.model = new Mongo.Collection(this._baseName() + name); } find() { return this.model.find(...arguments); } findOne() { return this...
JavaScript
0
@@ -572,58 +572,416 @@ ate( -) %7B%0A%09%09const result = this.model.update(...argument +query, update, options = %7B%7D) %7B%0A%09%09if (options.upsert) %7B%0A%09%09%09return this.upsert(query, update);%0A%09%09%7D%0A%0A%09%09let ids = %5B%5D;%0A%09%09if (options.multi === true) %7B%0A%09%09%09ids = ids.concat(this.m...
dd20e44d6734877c2076239541a1cd36cb746782
Fix scrolling to the top in WebKit
sweettooth/static/js/main.js
sweettooth/static/js/main.js
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- define(['jquery', 'messages', 'modal', 'hashParamUtils', 'extensions', 'uploader', 'fsui', 'jquery.cookie', 'jquery.jeditable', 'jquery.timeago', 'jquery.raty'], function($, messages, modal, hashParamUtils) { "use strict"; ...
JavaScript
0.000006
@@ -4315,16 +4315,82 @@ Top = 0; + // Firefox%0A document.body.scrollTop = 0; // WebKit %0A
ffecccc6b3f806805f78fb7f9b2597b8f4e9c5fa
Fix reprojection-by-code example in IE9 by using JSONP
examples/reprojection-by-code.js
examples/reprojection-by-code.js
goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.extent'); goog.require('ol.layer.Tile'); goog.require('ol.proj'); goog.require('ol.source.MapQuest'); goog.require('ol.source.TileImage'); var map = new ol.Map({ layers: [ new ol.layer.Tile({ source: new ol.source.MapQuest({layer: 'osm'}) ...
JavaScript
0.000007
@@ -1704,16 +1704,27 @@ $.ajax( +%7B%0A url: 'http:// @@ -1759,15 +1759,46 @@ uery -).then( +,%0A dataType: 'jsonp',%0A success: func @@ -1810,24 +1810,26 @@ response) %7B%0A + if (resp @@ -1838,24 +1838,26 @@ se) %7B%0A + var results @@ -1875,24 +1875,26 @@ 'results'%5D;%0A + ...
a66e2467c0bc25dbb7cc171a194ce1d279cf70ce
Add watch task
grunt.js
grunt.js
module.exports = function(grunt) { grunt.initConfig({ lint: { src: ['src/*.js'] }, test: { src: ['test/*.js'] }, rigger: { 'bilby.js': 'rigger-bilby.js' }, min: { 'bilby-min.js': 'bilby.js' } }); ...
JavaScript
0.999877
@@ -283,32 +283,154 @@ js': 'bilby.js'%0A + %7D,%0A watch: %7B%0A files: %5B'%3Cconfig:lint.src%3E', '%3Cconfig:test.src%3E'%5D,%0A tasks: 'lint test'%0A %7D%0A %7D)
c733dfff244e86d6145d27aceb8335622e34f5d3
add watch:plugins task
grunt.js
grunt.js
/*global module:false*/ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-exec'); // Project configuration. grunt.initConfig({ meta: { version: 'v0.6.0', banner: '/**\n\ * enchant.js <%= meta.version %>\n\ *\n\ * Copyright (c) Ubiquitous Entertainm...
JavaScript
0.000003
@@ -4470,24 +4470,52 @@ watch: %7B%0A + core: %7B%0A @@ -4557,16 +4557,20 @@ + tasks: ' @@ -4581,16 +4581,282 @@ at min'%0A + %7D,%0A plugins: %7B%0A files: %5B%0A 'dev/src/*.js',%0A ...
e6d44a542505d3559090185451adae3668fc09fd
update production mail settings to include mailgun sandbox
config.js
config.js
// # Ghost Configuration // Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments). // Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Produ...
JavaScript
0
@@ -682,33 +682,33 @@ service: 'Mai -n +l gun',%0A @@ -753,82 +753,113 @@ ter@ -mg.prosper.community',%0A pass: 'cfe1cd22cce4f06babca29500b206b +sandbox2a1fef65366a40659d51723febf503c9.mailgun.org',%0A pass: 'f145d952f996af8e2fcd7a3bf77bec 72'%0A @@ -1613,17 +1613,17 @@ ce: '...
67b7caa29342da17bf4a15979737ed98ea89e220
add stage-3, stage-2 presets to babel defaults
config.js
config.js
SystemJS.config({ baseURL: 'https://unpkg.com/', packages: { 'babel-standalone': {main: 'babel.min.js'}, 'typescript': {main: 'typescript.min.js', meta: {'*': {exports: 'ts'}}}, 'pkg': {main: '@@', defaultExtension: '', meta: {'*': {loader: 'getlibs/loader/package'}}} }, map: { 'src': './src...
JavaScript
0
@@ -1460,16 +1460,38 @@ es2015', + 'stage-3', 'stage-2', 'react'
f5d1b7e30053c47b7431e9d4eeaa3f2e035fc3c8
make script runnable with revent nodejs versions
config.js
config.js
var fs = require('fs') , sys = require('sys') var Configurator = function (file) { var self = this; var config = {}; var oldConfig = {}; this.updateConfig = function () { sys.log('reading config file: ' + file); fs.readFile(file, function (err, data) { if (err) { throw err; } old_conf...
JavaScript
0
@@ -356,49 +356,49 @@ g = -process.compile('config = ' + data, +eval('config = ' + fs.readFileSync( file) +) ;%0A
2f5b1809a0f87cb5dd8e9404f1904b02c5977d94
Fix jscs
tests/dummy/app/controllers/suggestion.js
tests/dummy/app/controllers/suggestion.js
import Ember from 'ember'; export default Ember.Controller.extend({ firstComment: Ember.computed('model.comments.[]', function() { return this.get('model.comments.firstObject'); }), firstCommentVote: Ember.computed('firstComment.userVotes.[]', function() { return this.get('firstComment.userVotes.firstOb...
JavaScript
0.001042
@@ -68,66 +68,44 @@ %7B%0A -firstComment: Ember.computed('model.comments.%5B%5D', function +hello: 'sup',%0A owner: null,%0A%0A init () %7B @@ -113,202 +113,563 @@ -return +let owner = Ember.getOwner(this);%0A this. -g +s et(' -model.comments.firstObject');%0A %7D),%0A%0A firstCommentVote: Ember.com...
785095c7e93431987140e4ea849b8daebd33fcf5
swap and rename assert arguments - basics
katas/es6/language/symbol/basics.js
katas/es6/language/symbol/basics.js
// 34: symbol - basics // A symbol is a unique and immutable data type and may be used as an identifier for object properties // read more at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol // To do: make all tests pass, leave the assert lines unchanged! // Follow the hints of t...
JavaScript
0
@@ -437,24 +437,22 @@ / const -expected +actual = someN @@ -478,24 +478,22 @@ const -expected +actual = Symbo @@ -516,24 +516,22 @@ ual( -Symbol, expected +actual, Symbol );%0A
6d8e9722bcc6cb43edf42934325bdce591db6ee4
Update on the website at Thu 6 Jul 18:24:19 CEST 2017
config.js
config.js
// # Ghost Configuration // Setup your Ghost install for various [environments](https://docs.ghost.org/v0.11.9/docs/configuring-ghost#section-about-environments). // Ghost runs in `development` mode by default. Full documentation can be found // at https://docs.ghost.org/v0.11.9/docs/configuring-ghost var path = requ...
JavaScript
0
@@ -528,16 +528,17 @@ l: 'http +s ://mrnei
ef25131cc13303e71dd50b9589afb09584374209
Fix of one of the dependencies
config.js
config.js
var config = {}; config.mongodb = {}; config.dropbox = {}; config.oauth = {}; config.data = {}; config.http = {}; config.ga = {}; config.mongodb.host = process.env.MONGODB_HOST || '127.0.0.1'; // TODO: Wait for bugfix of dokku mongodb plugin config.mongodb.port = /*process.env.MONGODB_PORT ||*/ 27017; config.mongodb.u...
JavaScript
0
@@ -191,57 +191,8 @@ 1';%0A -// TODO: Wait for bugfix of dokku mongodb plugin%0A conf @@ -213,10 +213,8 @@ t = -/* proc @@ -240,10 +240,8 @@ T %7C%7C -*/ 270
55044cf3c29421bf4f69b6d393193de3b5b0c15a
Remove xml file config example.
config.js
config.js
routes( route("Hello, world!", request(uri("/hello")), response(text("Hello, world!"))), route("Can retrieve all the kittens", request(uri("/kittens"), method.GET), response(text("Some adorable kittens!"))), route("Can't make a new kitten", request(uri("/kit...
JavaScript
0
@@ -518,139 +518,6 @@ 2))) -,%0A route(%22Person XML%22,%0A request(uri(%22/person/%5B0-9%5D+%22),%0A method.GET),%0A response(xml-file(%22person.xml%22))) );
1c7abed297285bf1c8167e8bac31e3dd1b7ccdd1
fix default 0
docs/create-readme.js
docs/create-readme.js
const fs = require('fs'); const path = require('path'); const header = fs.readFileSync(path.join(__dirname, '/README.header.md')); const footer = fs.readFileSync(path.join(__dirname, '/README.footer.md')); const services = require(path.join(__dirname, '/../services.json')); let output = ''; Object.keys(services).fo...
JavaScript
0.998738
@@ -823,24 +823,31 @@ if ( +typeof p.default) %7B @@ -835,32 +835,48 @@ typeof p.default + !== 'undefined' ) %7B%0A
9778d13cc1179ee779bbaae6fb547a852517a5a6
Change route to direct to after successful login
config.js
config.js
var Confidence = require('confidence') , path = require('path'); var criteria, store; store = new Confidence.Store({ server: { $filter: 'env', production: { port: process.env.PORT }, $default: { port: 8080 } }, debug: { $filter: 'env', production: { request: ['err...
JavaScript
0
@@ -1288,16 +1288,21 @@ cess: '/ +admin '%0A
c86155716cfb42ee3cb666eb22625dd186a8139d
Return property type on add
src/entity/post.js
src/entity/post.js
'use strict' const _ = require('lodash') const _h = require('../_helpers') const aws = require('aws-sdk') const allowedTypes = [ '_type', '_parent', '_public', '_viewer', '_expander', '_editor', '_owner' ] const rightTypes = [ '_viewer', '_expander', '_editor', '_owner', '_public' ] exports.h...
JavaScript
0
@@ -3956,19 +3956,24 @@ const -new +inserted Property @@ -4031,16 +4031,122 @@ roperty) +%0A const newProperty = %7B%0A _id: insertedProperty.insertedId,%0A type: property.type%0A %7D %0A%0A @@ -4313,25 +4313,18 @@ roperty. +_ i -nsertedI d%7D%60%0A @@ -4640,27 +4640,72 @@ ...
231275bbff2ceaa0f8bb4e97b3299282122332d2
修改默认 Demo 域名支持体验
config.js
config.js
var host = 'www.qcloud.la'; var config = { service: { host, loginUrl: `https://${host}/login`, tunnelUrl: `https://${host}/tunnel` } }; module.exports = config;
JavaScript
0
@@ -9,11 +9,16 @@ = ' -www +59431301 .qcl
b6f1dac28f5395a4d21cb8dd9122a10fd181ca06
Fix config file name bug
config.js
config.js
const errors = require('./errors'); const fs = require('fs'); const INIT_CONF_FILE_NAME = 'csv2influx.conf.json'; var config = { influxdbUri: 'INFLUXDB_URI', measurementName: 'MEASUREMENT_NAME', mapping: { time: { from: 'date', type: 'timestamp', format: 'jsDate' }, fieldSchema: { ...
JavaScript
0.000002
@@ -1786,17 +1786,17 @@ le_name -= +! == undef
0d5f9780c256e045d66ca8d926502529485f993e
use days for last measurement
config.js
config.js
module.exports = { animation: 1000, // Amount of milliseconds an animation should take height: 300, // Height of the widget in pixels width: 942, // Width of the widget in pixels === grid.row.tencol scale: 88, // Relative scale of the map ratio: 0.58, // Relative width of map...
JavaScript
0.000001
@@ -891,20 +891,19 @@ unit: ' -hour +day s',%0A @@ -912,12 +912,11 @@ y: ' -hour +day s',%0A
50c1ceee999cfc93a87509bd41ee634c8e3f6c88
Remove useless variable
config.js
config.js
var _ = require('lodash'); var defaultConfig = { mysql: { host: 'localhost', user: 'test', password: '', database: 'zabbix', port: 3306 }, zabbix: { url: 'http://localhost/zabbix/api_jsonrpc.php', username: 'admin', password: 'zabbix' } }; var config = function() { return _.m...
JavaScript
0.000433
@@ -368,57 +368,8 @@ %7D;%0A%0A -var env = process.env.NODE_ENV %7C%7C 'development';%0A modu
cf2fe52e79f3713e0c469b13888a763a4b62dd14
Add a default height for the AMP Timeago block
blocks/amp-timeago/index.js
blocks/amp-timeago/index.js
/* global moment */ /** * Helper methods for blocks. */ import { getLayoutControls } from '../utils.js'; /** * Internal block libraries. */ const { __ } = wp.i18n; const { registerBlockType } = wp.blocks; const { InspectorControls, BlockAlignmentToolbar, BlockControls } = wp.editor; const { DateTimePicker, ...
JavaScript
0.000096
@@ -982,32 +982,61 @@ type: 'string',%0A +%09%09%09%09default: 'fixed-height',%0A %09%09%09%09source: 'att @@ -1243,32 +1243,49 @@ type: 'number',%0A +%09%09%09%09default: 20,%0A %09%09%09%09source: 'att @@ -2214,36 +2214,8 @@ ) %7D, - // Default for amp-timeago. %0A%09%09%09
8f3d208077be9da2c91d97703ba2ee1c9456364a
handle undefined before trying to split
config.js
config.js
module.exports = { mongo: { databaseUrl: process.env.MONGODB_URI }, port: process.env.PORT || 80, tls: { sslPort: process.env.SSL_PORT || 443, cert: process.env.SSL_CERT, key: process.env.SSL_KEY }, uuid: process.env.UUID, token: process.env.TOKEN, broadcastActivity: (process.env.BROADCA...
JavaScript
0
@@ -823,16 +823,17 @@ ledIps: +( process. @@ -863,16 +863,23 @@ TLED_IPS + %7C%7C '') .split('
d0af94ec2a9879ffdd70bddacb28185d49201658
Change db for default
config.js
config.js
/* * Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U * * This file is part of perseo-fe * * perseo-fe is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the License, ...
JavaScript
0
@@ -1525,12 +1525,11 @@ 017/ -test +cep '%0A%7D;
f0b968accd9c0fa02eeca734d2ce817f3d80b8b6
Add 'KorolevReady' event and 'ready' propery to 'Korolev' global object
korolev/src/main/es6/launcher.js
korolev/src/main/es6/launcher.js
import { Connection } from './connection.js'; import { Bridge, setProtocolDebugEnabled } from './bridge.js'; import { ConnectionLostWidget, getDeviceId } from './utils.js'; window['Korolev'] = { 'setProtocolDebugEnabled': setProtocolDebugEnabled, 'invokeCallback': () => console.log("Korolev is not ready"), 'swap...
JavaScript
0.998092
@@ -167,16 +167,100 @@ s.js';%0A%0A +function showKorolevIsNotReadyMessage() %7B%0A console.log(%22Korolev is not ready%22);%0A%7D%0A%0A window%5B' @@ -357,42 +357,37 @@ =%3E -console.log(%22Korolev is not ready%22 +showKorolevIsNotReadyMessage( ),%0A @@ -422,43 +422,56 @@ =%3E -console.log(%22Korolev is not...
82ab4f0bde9fce30aae2789c59f564fc34cfd867
Add basis code for apn to know about app status
lib/client/cordova.js
lib/client/cordova.js
Push.setBadge = function(count) { // Helper var pushNotification = window.plugins.pushNotification; // If the set application badge is available if (typeof pushNotification.setApplicationIconBadgeNumber == 'function') { // Set the badge pushNotification.setApplicationIconBadgeNumber(function(result) { ...
JavaScript
0
@@ -1,20 +1,191 @@ +var epoke = new Date();%0Avar startupThreshold = 5000; // ms from epoke is startup messages%0Avar startupFired = false;%0Avar inBackground = false;%0Avar haveBeenPaused = false;%0A%0A Push.setBadge = func @@ -3982,16 +3982,477 @@ tion() %7B +%0A // Set epoke from%0A epoke = new Date();%0A%0A...
75d5a6d9d7d42736afea76cb5504c96221caa4ae
fix garbled output on node v6
lib/commands/check.js
lib/commands/check.js
'use strict'; var usage = require('../../lib/utils/usage.js')('check.txt'); var Check = require('../check.js'); var Formatters = require('../formatters'); var Path = require('path'); var onCommand = function (args) { if (args.help) { return usage(); } if (typeof args.output !== 'function') { if (Format...
JavaScript
0.000004
@@ -980,23 +980,16 @@ %7D%0A -return process. @@ -992,25 +992,31 @@ ess.exit -( +Code = exitCode );%0A %7D); @@ -1007,17 +1007,16 @@ exitCode -) ;%0A %7D);%0A
bf2f964fbf30d858856ab22be08f4fcfab626e6b
Disable Chrome in karma as it is not available in travis
frontend/karma.conf.js
frontend/karma.conf.js
module.exports = function(config) { config.set({ browsers : ['Chrome', 'Firefox'], frameworks : ['jasmine'], reporters : ['mocha'], singleRun : true, preprocessors: {'./karma-test-runner.js': ['webpack']}, files : [{pattern: './karma-test-runner.js', watched: false}], we...
JavaScript
0
@@ -68,18 +68,8 @@ : %5B -'Chrome', 'Fir
75aef4855a1b10fbda04f0ac0075b3032f73805b
Fix bug that caused firstLimpet not to save
api/models/rescue.js
api/models/rescue.js
'use strict' let _ = require('underscore') let mongoose = require('mongoose') let winston = require('winston') let Rat = require('./rat') mongoose.Promise = global.Promise let Schema = mongoose.Schema let RescueSchema = new Schema({ active: { default: true, type: Boolean }, archive: { default:...
JavaScript
0
@@ -654,32 +654,33 @@ et: %7B%0A type: +%5B %7B%0A type: Sc @@ -718,24 +718,25 @@ 'Rat'%0A %7D +%5D %0A %7D,%0A last
000864ad87468a0221f5d0f9ffae6b7f56b81c7d
make flag functions safer
src/flag.hauler.js
src/flag.hauler.js
var spawner = require('spawn.workers'); var WORKS = 6; var CARRIES = 20; function makeBody(type, count) { var body = []; for (var i = 0; i < count; i++) { body.push(type); } for (i = 0; i < count / 2; i++) { body.push(MOVE); } return body; } function spawn(room, body, memory, name) { var spawns...
JavaScript
0.000001
@@ -589,32 +589,45 @@ %0A if (flag.room + && flag.room .find(FIND_HOSTI @@ -853,24 +853,59 @@ ag, room) %7B%0A + if (!flag %7C%7C !flag.room) return;%0A var noCons
c924e1116bcfd5990bfe724954aa63884591358b
check if fingerprint modal is open
src/js/services/applicationService.js
src/js/services/applicationService.js
'use strict'; angular.module('copayApp.services') .factory('applicationService', function($rootScope, $timeout, $ionicHistory, $ionicModal, platformInfo, fingerprintService, openURLService, configService, $state) { var root = {}; root.isPinModalOpen = false; var isChromeApp = platformInfo.isChromeApp; ...
JavaScript
0.000001
@@ -1488,32 +1488,65 @@ kModal = modal;%0A + root.isModalOpen = true;%0A scope.op @@ -1548,32 +1548,32 @@ pe.openModal();%0A - %7D);%0A @@ -1713,32 +1713,66 @@ = function() %7B%0A + root.isModalOpen = false;%0A scope.fi @@ -2096,48 +2096,8 @@ %7B%0A%0A - if (root....
28fb0801743d48a3372d9b174ca6156584e6059d
Fix webpack docs config
config.docs.js
config.docs.js
var path = require('path'); var webpack = require('webpack'); module.exports = { mode: 'production', entry: path.join(__dirname, './docs/index.ts'), output: { path: path.join(__dirname, './docs/assets'), filename: 'app.js' }, devtool: 'source-map', resolve: { alias: { 'css-animator': '../...
JavaScript
0.000003
@@ -668,16 +668,142 @@ %5D%0A + %7D,%0A %7B%0A test: /%5B%5C/%5C%5C%5D@angular%5B%5C/%5C%5C%5Dcore%5B%5C/%5C%5C%5D.+%5C.js$/,%0A parser: %7B system: true %7D, // enable SystemJS%0A %7D%0A @@ -1039,16 +1039,25 @@ m5%7Cfesm7 +%7Cfesm2015 )/,%0A
6c8b923b07bad38f2baf5d114562948a0c92a48d
handle undefined searchFilter value
static/js/models/search-filter.js
static/js/models/search-filter.js
app.models.QuickSearchFilter = Backbone.Model.extend({ defaults: { value: undefined, rawValue: undefined }, initialize: function(options) { this.key = options.key; this.schools = options.schools; this.normalizedKeyRefs = {}; // {cid, simplified} this.listenTo(this, 'change:rawValue', t...
JavaScript
0.000001
@@ -738,24 +738,97 @@ newInput) %7B%0A + if (! newInput) %7B%0A this.set('value', undefined);%0A %7D else %7B%0A var simp @@ -862,24 +862,26 @@ Input);%0A + this.set('va @@ -899,24 +899,26 @@ ified);%0A + this.trigger @@ -935,16 +935,22 @@ ange');%0A + %7D%0A %7D,%0A%0A @@ -1...
07b3de9b37deabddcf5453b3256b234502976fec
Add some useful helpers (and a little ES6 facelift)
bin/hb-interpolate.js
bin/hb-interpolate.js
#! /usr/bin/env node var _ = require('lodash'); var BluePromise = require('bluebird'); var chalk = require('chalk'); var debug = require('debug'); var fs = require('fs'); var Handlebars = require('handlebars'); var path = require('path'); var program = require('commander'); var dlog = debug('interpolate'); program ...
JavaScript
0
@@ -15,19 +15,21 @@ v node%0A%0A -var +const _ = req @@ -48,50 +48,13 @@ ');%0A -var BluePromise = require('bluebird');%0Avar +const cha @@ -76,19 +76,21 @@ halk');%0A -var +const debug = @@ -108,19 +108,21 @@ ebug');%0A -var +const fs = re @@ -134,19 +134,21 @@ ('fs');%0A -var +const Handleb @@ -176,19 ...
afefff324f94c521fb4e5f02867c954d6d505128
fix more than one instance bug and add cache Function
app/action/action.js
app/action/action.js
'use strict'; /* *@decription 公共数据统一管理 *@author xtx1130 */ const rp = require('request-promise'); //const tough = require('tough-cookie'); const assert = require('assert'); class koax { constructor(){ this.data = {}; this.nameCache = void 0; this.dataCache = {}; } //设置cookie 不做了,cookie独立出来一个类,也可以加到request中...
JavaScript
0
@@ -51,16 +51,44 @@ xtx1130%0A + *@memo %E6%AF%8F%E4%B8%80%E4%B8%AAkoax%E5%AE%9E%E4%BE%8B%E4%BC%9A%E7%9B%B8%E5%BA%94%E7%9A%84%E7%BB%B4%E6%8A%A4%E4%B8%80%E5%A5%97%E6%95%B0%E6%8D%AE%0A */%0A%0Acons @@ -196,16 +196,69 @@ ssert'); +%0Aconst isEmptyObj = require('../../deps/isEmptyObj'); %0A%0Aclass @@ -590,17 +590,34 ...
ba1d550cd3713d63807768d9986ccc7b67294771
Fix RandomImage
components/RandomImage.js
components/RandomImage.js
import React from 'react' import axios from 'axios' import Spinner from 'react-spinner' import { range, fileToDataURL } from '../lib/util' const RAND_RANGE = 1000000 const UPDATE_SIZE = 20 const WALLPAPER_COLLECTION_ID = 136026 const RANDOM_WALLPAPER_URL = `https://source.unsplash.com/collection/${WALLPAPER_COLLECTIO...
JavaScript
0.000018
@@ -2326,16 +2326,47 @@ ataURL%0A%0A + if (!bgImage) return null%0A%0A retu
71744e0dfd46d9799ff5f5d8f12db8ff9fa7e38a
Fix carpool sign up emails
lib/commuter/model.js
lib/commuter/model.js
var analytics = require('../analytics'); var async = require('async'); var uuid = require('node-uuid'); var config = require('../config'); var Email = require('../email/model'); var geocode = require('../geocode'); var mandrill = require('../mandrill'); var mongoose = require('../mongo'); var User = require('../user/m...
JavaScript
0.000001
@@ -3475,16 +3475,29 @@ s.name = + opts.name %7C%7C %7B%0A @@ -3508,18 +3508,19 @@ st: -opts.first +'Anonymous' ,%0A @@ -3533,17 +3533,18 @@ st: -opts.last +'Commuter' %0A
e894b9477f1249515d5b3037c628406a93a0915a
Optimize `buildParseFn`
src/locale/_lib/buildParseFn/index.js
src/locale/_lib/buildParseFn/index.js
/** * @name buildParseFn * @category Locale Helpers * @summary Build `match.weekday`, `match.month` and `match.timeOfDay` properties for the locale. * * @description * Build `match.weekday`, `match.month` and `match.timeOfDay` properties for the locale used by `parse` function. * The argument of the resulting fu...
JavaScript
0
@@ -1319,28 +1319,27 @@ urn -string.match(pattern +pattern.test(string )%0A
fa4e51a558928d53f86fbb6915287ad2f4ece815
set a capture timeout of 15 mins
karma.travis.conf.js
karma.travis.conf.js
'use strict'; // Karma configuration // Generated on Tue Sep 10 2013 18:12:14 GMT+0200 (CEST) var files = require('./files.conf.js'); var conf = require('./karma.shared.conf.js'); module.exports = function(config) { conf.files = files.testFilesBuild; conf.browserStack = { username: process.env.BROWSE...
JavaScript
0.000105
@@ -444,17 +444,29 @@ t: 90000 -, +0, // 15 mins %0A @@ -478,17 +478,17 @@ yLimit: -5 +3 %0A %7D;%0A
1ac82046adcb09cfb6f547633e5a7c806311f5c1
add correct mime type for css
bin/hekto.js
bin/hekto.js
#!/usr/bin/env node const koa = require('koa'); const app = koa(); const path = require('path'); const fs = require('fs'); const argument = require('argument.js'); const join = require('array-path-join'); const readChunk = require('read-chunk'); const fileType = require('file-type'); /* set argument options */ arg...
JavaScript
0.000004
@@ -3260,36 +3260,175 @@ this.type = ' -html +text/html';%0A this.body = fs.createReadStream(file);%0A %7D else if (path.extname(file) == '.css') %7B%0A this.type = 'text/css ';%0A thi @@ -3748,17 +3748,16 @@ %7D%0A%0A -%0A
9432cd2591ad6be8ed07e6cdf0b05ff95502e6ad
remove grunt e2e-cleanup
tasks/protractor_cucumber.js
tasks/protractor_cucumber.js
/* * grunt-protractor-cucumber * https://github.com/karthiktv006/grunt-protractor-cucumber * * Copyright (c) 2016 Karthik Viswanath * Licensed under the MIT license. */ 'use strict'; var _ = require('lodash'); var argv = require('yargs').argv; var configFile, baseTestDir, seleniumAddress, configurat...
JavaScript
0.000001
@@ -701,205 +701,8 @@ );%0A%0A - // grunt.registerTask('e2e-cleanup', 'Remove files from output folder', function () %7B%0A // if (grunt.file.exists('test/output')) %7B%0A // grunt.file.delete('test/output');%0A // %7D%0A // %7D);%0A%0A //
9d83da8aad34483e1c7eef4d5bc9ab2fbfab39ae
Fix initiation inside bs tabs
resources/js/input.js
resources/js/input.js
$(document).on('ajaxComplete ready', function () { // Initialize WYSIWYG editors. $('textarea[data-provides="anomaly.field_type.wysiwyg"]:not(.hasEditor)').each(function () { /** * Gather available buttons / plugins. */ var textarea = $(this); var buttons = textarea....
JavaScript
0.000001
@@ -27,16 +27,29 @@ te ready + shown.bs.tab ', funct
a60ddbab100220ebf3459dc55c73a5d05edfb28c
Add class to header description
components/about/index.js
components/about/index.js
const About = () => { return ( <header id="header" className="component"> <img className="header-logo" src="assets/images/online_logo.svg" alt="" /> <h1>Velkommen til Online, linjeforeningen for informatikkstudenter ved <a href="http://ntnu.no/">NTNU</a>.</h1> <p>Det er vi som sørger for at stud...
JavaScript
0.000001
@@ -280,16 +280,46 @@ %3Cp + className=%22about-description%22 %3EDet er
c1ec72482e24fdac3c9c988a697b3030b88c8b78
Use text area to edit equation
latex-images-support/wsAccess.js
latex-images-support/wsAccess.js
function applicationStarted(pluginWorkspaceAccess) { Packages.java.lang.System.err.println("Application started " + pluginWorkspaceAccess); imageHandler = { canHandle: function (a, b, c) {}, canHandleNamespace: function (ns) {return false;}, canHandleNodeContext: function (nodeContext) {return "late...
JavaScript
0.000002
@@ -38,32 +38,35 @@ kspaceAccess) %7B%0A + Packages.java.l @@ -137,16 +137,19 @@ ccess);%0A + imageHa @@ -158,16 +158,18 @@ ler = %7B%0A + ca @@ -197,19 +197,30 @@ b, c) %7B +%0A %7D,%0A + ca @@ -252,16 +252,29 @@ n (ns) %7B +%0A return f @@ -278,19 +278,30 @@ n ...
1e1941b8d22e821933296d00de2af7e4f612c568
use nextBuffering to read multiple values each time
lib/iterator.js
lib/iterator.js
var Iterator = function (binding, options) { this.binding = binding._iterator(options) this.buffer = [] } Iterator.prototype._getBuffer = function (callback, buffer) { var that = this buffer = buffer || [] if (buffer.length === 3) { callback(null, buffer) } else { this.binding.next(f...
JavaScript
0
@@ -121,477 +121,8 @@ %7D%0A%0A -Iterator.prototype._getBuffer = function (callback, buffer) %7B%0A var that = this%0A%0A buffer = buffer %7C%7C %5B%5D%0A%0A if (buffer.length === 3) %7B%0A callback(null, buffer)%0A %7D else %7B%0A this.binding.next(function (err, key, value) %7B%0A if (err)%0A ...
515c0a2e087818d05694c3d55ae63c2d3ec5a161
Make the grunt shell testing commands fail on error.
grunt.js
grunt.js
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " + ...
JavaScript
0
@@ -954,32 +954,59 @@ ts/index.html',%0A + failOnError: true,%0A stdout: @@ -1002,32 +1002,32 @@ stdout: true%0A - %7D,%0A m @@ -1113,32 +1113,59 @@ ts/index.html',%0A + failOnError: true,%0A stdout: @@ -1192,24 +1192,24 @@ mochadot: %7B%0A - comm @@ -1272,3...
7ed798483b49dbb2231cbdd1b873c3e24e546fb5
Remove indices from specs They add a crap-load of clutter
bin/index.js
bin/index.js
#!/usr/bin/env node var program = require('commander') , fs = require('fs') , path = require('path') , util = require('util') , extend = require('extend') , Handlebars = require('handlebars'); program .version('0.0.0') .usage('[options] <file ...>') .option('-o, --output [file]', 'write JSON output to...
JavaScript
0.000019
@@ -360,18 +360,18 @@ tests = -%7B%7D +%5B%5D %0A , con @@ -946,21 +946,19 @@ ests -%5Bname%5D = +.push( spec +) ;%0A
4429b1c3bfe20e48a56e7c854e1f694428c11255
support for unparsed get requests
src/helpers/api.js
src/helpers/api.js
import superagent from 'superagent' import Promise from 'bluebird' import parse from './parseJSON.js' import resolveUrl from './resolveUrl' import { apiHeaders } from '../lib/configuration.js' export const methods = ['get', 'post', 'put', 'patch', 'del'] let requestHandler = {} const createError = (err, body) => { ...
JavaScript
0
@@ -846,16 +846,27 @@ , attach +, parseJSON %7D = %7B%7D) @@ -1463,16 +1463,55 @@ text)) : + (parseJSON === false ? resolve(text) : resolve @@ -1524,16 +1524,17 @@ (text))) +) %0A %7D)%0A%7D)
9a34ec049778a466c87481ae32d7f9ca0ffba441
Add mina controller
app/build/project.js
app/build/project.js
var angMod = angular.module( "linksApp", [ "ngRoute", "linksApp.controllers", "linksApp.services" ] ); angMod.config( [ "$routeProvider", "$locationProvider", "$sceDelegateProvider", function ( $routeProvider, $locationProvider, $sceDelegateProvider ) { $routeProvider.when( "/", {...
JavaScript
0
@@ -553,16 +553,85 @@ %5B%5D );%0A%0A +ctlMod.controller( %22Main%22, %5B %22$scope%22, function ( $scope ) %7B%0A%0A%7D %5D );%0A %0ActlMod.
e0909c38390f420353f349024a3e28f76c316ba3
Add tests.
test/authorize/http/response/code.test.js
test/authorize/http/response/code.test.js
/* global describe, it */ var $require = require('proxyquire'); var expect = require('chai').expect; var sinon = require('sinon'); var factory = require('../../../../com/authorize/http/response/code'); describe('http/authorize/response/code', function() { it('should be annotated', function() { expect(factor...
JavaScript
0
@@ -1553,87 +1553,13 @@ ();%0A - acs.issue = sinon.stub().yieldsAsync(null, 'SplxlOBeZQQYbYS6WxSbIA');%0A %0A + @@ -1770,16 +1770,20 @@ before +Each (functio @@ -1788,24 +1788,107 @@ ion(done) %7B%0A + acs.issue = sinon.stub().yieldsAsync(null, 'SplxlOBeZQQYbYS6WxSbIA');%0A %0A fact...
b2ae4b6894790b47588cec628698817ff831895a
Fix version check that breaks install (#74)
bin/index.js
bin/index.js
#!/usr/bin/env node import { readFileSync } from 'fs'; import minimist from 'minimist'; import { stop, start } from '../lib/index.js'; const pkg = JSON.parse(readFileSync('./package.json')); const profiles = { '3g': { down: 1600, up: 768, rtt: 150 }, '3gfast': { down: 1600, up: 768, rtt...
JavaScript
0
@@ -134,65 +134,8 @@ ';%0A%0A -const pkg = JSON.parse(readFileSync('./package.json'));%0A%0A cons @@ -2310,22 +2310,15 @@ og(%60 -$%7Bpkg.version%7D +Unknown %60);%0A
f4404fd774d68504ebf0929a608f32a9fda7ae5d
Use rest
presentation/index.js
presentation/index.js
// Import React import React from "react"; // Import Spectacle Core tags import { Appear, BlockQuote, Cite, CodePane, Deck, Fit, Heading, Image, Layout, Link, ListItem, List, Markdown, Quote, Slide, Spectacle, Text } from "spectacle"; import CodeSlide from "spectacle-code-slide"; // ...
JavaScript
0.000001
@@ -1261,16 +1261,27 @@ n=%22true%22 + %7B...rest%7D %3E%3C/i%3E;%0A%7D
4752b873ae4394e7852ad7df2ff92f912aee75b3
Add producer logic
lib/producer.js
lib/producer.js
var amqp = require('amqplib'); var winston = require('winston');
JavaScript
0.000016
@@ -1,12 +1,46 @@ +var winston = require('winston');%0A var amqp = r @@ -51,49 +51,872 @@ re(' +./ amqp -lib');%0Avar winston = require('winston') +-layer')();%0A%0Avar channel, reqQueue, connected, connecting, config;%0Aconnected = connecting = false;%0AreqQueue = %5B%5D;%0A%0Avar produce = function(_queue, _msg) %...
5b2aa3bafe5c44d4c9babed57f3b4c5875c8c24b
resolve relative path before require
lib/readfile.js
lib/readfile.js
var path = require('path'); var fs = require('fs'); module.exports = function(file) { // check for existence first if (!fs.existsSync(file)) { throw new Error(file + ' doesn\'t exist'); } var ext = path.extname(file); // YAML file if (ext.match(/ya?ml/)) { var res = fs.readFi...
JavaScript
0
@@ -654,24 +654,122 @@ fee%7Cls/)) %7B%0A + if (!path.isAbsolute(file)) %7B%0A file = path.join(process.cwd(), file)%0A %7D%0A retu
097eb2cda1bd65b7dac776a521cf58ccbe007478
Update plugin documentation
core/Plugin.js
core/Plugin.js
/** * @callback extraRouting * @param {express} express * @param {app} app */ class Plugin{ constructor() { /** Folder relative to this folder used to serve web files. * @prop {?string} */ this.publicPath; /** * An array of paths relative to the publicPath to serve * javascript from...
JavaScript
0
@@ -1,88 +1,4 @@ -/**%0A * @callback extraRouting %0A * @param %7Bexpress%7D express%0A * @param %7Bapp%7D app%0A */%0A%0A clas @@ -34,16 +34,23 @@ %0A /** +%0A * Folder @@ -120,16 +120,21 @@ ?string%7D +%0A */%0A @@ -871,22 +871,25 @@ * @ -prop %7B +function extraRou @@ -896,83 +896,173 ...
d370fd779df733df6e8fe49a5733dfe61b652a50
Update CoffeeScript/TypeScript/typestring
frame/js/frame.js
frame/js/frame.js
/* * debugger.io: An interactive web scripting sandbox */ (function() { 'use strict'; // nothing to see here if (parent === self) { window.location = '//' + location.hostname.replace(/^frame\./, ''); return; } requirejs.config({ paths: { jquery: '//cdn.jsdelivr.net/jquery/2.2/jquery.min...
JavaScript
0
@@ -886,28 +886,43 @@ /cdn -. js -delivr.net +.cloudflare.com/ajax/libs /coffee +- scri @@ -926,17 +926,20 @@ cript/1. -7 +10.0 /coffee- @@ -977,37 +977,51 @@ api': '//cdn -. js -delivr.net +.cloudflare.com/ajax/libs /typescript/ @@ -1022,16 +1022,19 @@ cript/1. +8.1 0/typesc @@ -1069,28 +1069,38 @@ '//cdn...
9bc3e3076e413ca502c5dc6ff85f181db291dee8
Update TypeScript to 1.0.0
frame/js/frame.js
frame/js/frame.js
(function() { 'use strict'; // nothing to see here if (parent === self) { window.location = '//' + location.hostname.replace(/^frame\./, ''); return; } requirejs.config({ paths: { jquery: '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min', underscore: '//cdnjs.cloudflare.com/...
JavaScript
0.000153
@@ -1084,13 +1084,13 @@ ipt/ -0.9.7 +1.0.0 /typ
93b9540c24285406d37631c93608cc5c3c7e934b
Update stroke.js
draw/colors/stroke.js
draw/colors/stroke.js
if(!Draw.stroke) { Draw.stroke = function(r, g, b, a) { if(!Canvas.configured) { console.warn("KAPhy Warning - You must use Canvas.configure(); before you can draw!"); return; } switch(arguments.length) { case 0: Canvas.context.strokeStyle = "#FFFFFF"; break; case 1: Canvas.co...
JavaScript
0.000001
@@ -198,16 +198,628 @@ %7D%0A %0A + /*%0A If no arguments: Defaults to white%0A If one argument: Gray of brightness depending on argument%0A If one argument: Sets color based on the object's r, g, b, and a properties.%0A If two arguments: First argument is brightness; second is alpha%0A ...
0b49db24baa1d418cf7f2cbe25ab5106dee13954
Update sessions.js
lib/sessions.js
lib/sessions.js
var events = require('events'); var uuid = require('node-uuid'); var crypto = require('crypto'); var config = require('./config'); var Session = new Class( { initialize : function(req, res) { this.appConfig = config.appConfig(req.appPath); this.prefix = this.appConfig.cookiePrefix?this.appConfig.cookiePrefix:'';...
JavaScript
0.000001
@@ -1850,16 +1850,21 @@ h:'';%0A%09%09 +this. res.clea