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
93fba4dc1d0e6fd85577e8ae3936d9ccb6e2ecad
add error message in m.mount
api/mount.js
api/mount.js
"use strict" var Vnode = require("../render/vnode") var autoredraw = require("../api/autoredraw") module.exports = function(renderer, pubsub) { return function(root, component) { if (component === null) { renderer.render(root, []) pubsub.unsubscribe(root.redraw) delete root.redraw return } var run...
JavaScript
0.000002
@@ -302,16 +302,129 @@ turn%0A%09%09%7D +%0A%09%09%0A%09%09if (component.view == null) throw new Error(%22m.mount(element, component) expects a component, not a vnode%22) %0A%0A%09%09var
94f65cff2dd53943c9eceb23de042e517c6d3956
Create an add function for user model.
model/user.js
model/user.js
var pool = require('./db'); function User(pid, name, passport, email, password, contact) { this.pid = pid; this.name = name; this.passport = passport; this.email = email; this.password = password; this.contact = contact; } User.get = function(pid, callback) { pool.getConnection(function(err, connection) { ...
JavaScript
0
@@ -680,16 +680,703 @@ %7D);%0A%7D;%0A%0A +User.prototype.add = function(name, passport, email, password, contact, callback) %7B%0A%09var md5 = crypto.createHash('md5'),%0A%09%09password_MD5 = md5.update(password).digest('hex');%0A%09%09console.log(password_MD5);%0A%0A%09var user = %7B%0A%09%09name = this.name;%0A%09%...
631d4d8b4ff03629417012338ef9cfec52f0d298
Add HyperTerm HyperLinks plugin
hyperterm.js
hyperterm.js
module.exports = { config: { // default font size in pixels for all tabs fontSize: 12, // font family with optional fallbacks fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █ cursorShape: 'BLOCK', // custom css to em...
JavaScript
0
@@ -947,16 +947,34 @@ gins: %5B%0A + 'hyperlinks',%0A 'hyp
09e1f1931303f1264c1c3135b1de8706f594e390
fix typo
config.example.js
config.example.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.999991
@@ -2486,16 +2486,17 @@ ncs.com' +, //%E9%98%BF%E9%87%8C%E4%BA%91%E7%9A%84
f55ce9e169a600693f6337711e823d28787e970a
Update translations
client/lang/en.js
client/lang/en.js
// This file was generated by silverstripe/cow from client/lang/src/en.json. // See https://github.com/tractorcow/cow for details if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { if (typeof(console) !== 'undefined') { // eslint-disable-line no-console console.error('Class ss.i18n not defined')...
JavaScript
0
@@ -2223,162 +2223,10 @@ nel%22 -,%0A %22Admin.NOT_FOUND_COMPONENT%22: %22The component here (%7Bcomponent%7D) failed to load, there is a chance that you may lose data when saving due to this.%22 %0A%7D);%0A%7D -%0A
8d09dfad15a50aedee015cb13be2324717bc908f
add '**/.git' to ignore patterns, or nothing will build, https://github.com/phetsims/chipper/issues/565
js/grunt/lint.js
js/grunt/lint.js
// Copyright 2015, University of Colorado Boulder /** * Runs the lint rules on the specified files. * * @author Sam Reid (PhET Interactive Simulations) */ /* eslint-env node */ 'use strict'; // modules var eslint = require( 'eslint' ); var assert = require( 'assert' ); // constants var CLIEngine = eslint.CLIEngi...
JavaScript
0
@@ -1638,16 +1638,33 @@ tern: %5B%0A + '**/.git',%0A '*
0e942007fefcd01dd997ba61b99c5941fe698484
add key to avoid warning
src/mentionPlugin/MentionSearch/index.js
src/mentionPlugin/MentionSearch/index.js
import React, { Component } from 'react'; import Dropdown from './Dropdown'; import MentionOption from './MentionOption'; import addMention from '../modifiers/addMention'; import styles from './styles'; export default (mentions) => { class MentionSearch extends Component { onMentionSelect = (mention) => { ...
JavaScript
0
@@ -1367,16 +1367,57 @@ nOption%0A + key=%7B mention.handle %7D%0A
7ac1da6709fc6d5671f3bedaf80dd8d8abd8a716
Fix submit check?
public/js/submit.js
public/js/submit.js
var select = document.getElementById('existing-type'); var input = document.getElementById("bottype"); var channel = document.getElementById("channel"); var username = document.getElementById("username"); var description = document.getElementById("type"); var form = document.getElementById("submit-form"); var stNew = d...
JavaScript
0
@@ -2147,16 +2147,50 @@ quest(); +%0A%0A xhr.open(%22HEAD%22, url, true); %0A xhr @@ -2319,42 +2319,8 @@ n'); -%0A%0A xhr.open(%22HEAD%22, url, true); %0A
7fc7fce91305df35c7283399564aba0c52482bd7
make plugin chainable
js/onebox.min.js
js/onebox.min.js
(function($){jQuery.fn.exists=function(){return this.length>0;};})(jQuery);(function($){jQuery.fn.onebox=function(){if($(this).exists()){return this.each(function(){var $this=$(this),url=$(this).children().eq(0).attr("href"),title="",description="";if($(this).data("title"))title=$(this).data("title");if($(this).data("...
JavaScript
0
@@ -1771,24 +1771,42 @@ s();%7D%7D);%7D);%7D +%0Aelse return this; %7D;%7D)(jQuery) @@ -2038,16 +2038,34 @@ an);%7D);%7D +%0Aelse return this; %7D;%7D)(jQu
9278e9ebd52c030e7be203eba6de08058ec6719c
Revert compact() back to an array filter()
lib/findJsModulesFor.js
lib/findJsModulesFor.js
// @flow import escapeRegExp from 'lodash.escaperegexp'; import minimatch from 'minimatch'; import sortBy from 'lodash.sortby'; import uniqBy from 'lodash.uniqby'; import Configuration from './Configuration'; import JsModule from './JsModule'; import findMatchingFiles from './findMatchingFiles'; import formattedToReg...
JavaScript
0
@@ -683,195 +683,8 @@ %0A%7D%0A%0A -function compact%3CT%3E(arr: Array%3C?T%3E): Array%3CT%3E %7B%0A const result = %5B%5D;%0A for (let i = 0; i %3C arr.length; i++) %7B%0A if (!!arr%5Bi%5D) %7B%0A result.push(arr%5Bi%5D);%0A %7D%0A %7D%0A return result;%0A%7D%0A%0A func @@ -716,16 +716,16 @@ geJson(%...
7b679fa06d2d2427fb6797723e976f50c9098fd1
add missing istanbul ignore
template/content/server.js
template/content/server.js
#!/usr/bin/env node 'use strict'; var fileStart = Date.now(); var hostname = require('os').hostname; var process = require('process'); var path = require('path'); var getRepoInfo = require('git-repo-info'); var parseArgs = require('minimist'); var setTimeout = require('timers').setTimeout; var Application = require(...
JavaScript
0.998638
@@ -2027,24 +2027,49 @@ );%0A %7D%0A%7D%0A%0A +/*istanbul ignore next*/%0A function abo
f360fa1bd09a47b3c9e49cd90c8dddd136a13e0c
Enable lint rule strict and autofix all occurrences, see https://github.com/phetsims/chipper/issues/814
js/assert.js
js/assert.js
// Copyright 2013-2021, University of Colorado Boulder /* * @author Jonathan Olson <jonathan.olson@colorado.edu> */ ( function() { 'use strict'; window.assertions = window.assertions || {}; window.assertions.assertFunction = window.assertions.assertFunction || function( predicate, message ) { if ( !predi...
JavaScript
0
@@ -134,21 +134,8 @@ %7B%0A -'use strict'; %0A%0A
db1a0853d3b4338ea5114f949a22029c4eb09c38
Use production react-onsenui to avoid errors.
js/config.js
js/config.js
/* global app */ app.config = {}; app.config.platform = 'ios'; app.config.codeType = 'javascript'; app.config.cdn = 'https://unpkg.com/'; app.config.ci = 'https://circleci.com/api/v1/project/OnsenUI/OnsenUI/latest/artifacts/0/$CIRCLE_ARTIFACTS/'; app.config.nightly = window.sessionStorage.getItem('nightly') === 'true'...
JavaScript
0
@@ -3080,32 +3080,36 @@ t/react-onsenui. +min. js', forceRemote
a7ed648a58e73c21e4ba8fb99a19ca761f3767ff
Update header.js
js/header.js
js/header.js
document.write('\ \ <div class="logo">\ <a href="https://cont3mpo.github.io" title="Inicio"><span class="red">O</span>Contempo</a>\ </div>\ <nav>\ <ul>\ <li><a href="../../blog.html" title="Blog">Blog</a></li>\ <li><a href="../../articulos.html" title="Artículos del blog">Artículos</a></li>\ ...
JavaScript
0.000001
@@ -316,78 +316,8 @@ i%3E%5C%0A - %3Cli%3E%3Ca href=%22../../contacto.html%22 title=%22Sobre m%C3%AD%22%3EYo%3C/a%3E%3C/li%3E%5C%0A
d66d497af789cbbfcc1caa6967e0724fee9f1755
clean up use of var
src/commands/restart.js
src/commands/restart.js
'use strict'; const chalk = require('chalk'); const _ = require('lodash'); const shell = require('shelljs'); var kexec = require('kexec'); const console = require('../console'); module.exports = { command: 'restart', config: { description: 'Restarts Fractal. Use if you have made changes to...
JavaScript
0.000006
@@ -117,18 +117,22 @@ ');%0A -var +const kexec + = re
59c0e6ce3242e835f50642f2432865c7f8f60b94
remove `ForeignFunction.build()`
lib/foreign_function.js
lib/foreign_function.js
var ffi = require('./ffi') , assert = require('assert') , debug = require('debug')('ffi:ForeignFunction') , ref = require('ref') , EventEmitter = require('events').EventEmitter , POINTER_SIZE = ref.sizeof.pointer , FFI_ARG_SIZE = ffi.Bindings.FFI_ARG_SIZE /** * Represents a foreign function in another li...
JavaScript
0
@@ -3790,115 +3790,4 @@ ion%0A -%0AForeignFunction.build = function () %7B%0A debug('DEPRECATED')%0A return ForeignFunction.apply(null, arguments)%0A%7D%0A
de8d7e0593bc9b9112b11b421f314ab26cccd5ac
Update script.js
js/script.js
js/script.js
var c = documnet.getElementById("mapCanvas"); var ctx = c.getContext("2d"); ctx.beginPath(); ctx.arc(95,50,40,0,2*Math.PI); ctx.stroke();
JavaScript
0.000002
@@ -10,10 +10,10 @@ ocum -n e +n t.ge
0c9faca0982126c8cd21767ebb81bac2fdbbcda0
remove run and stop functions, add reduce check the position of the elements
js/script.js
js/script.js
var items = document.querySelectorAll('.parallax'); for (var i = 0; i < items.length; i++ ) { var item = items[i]; parallax(item); } function parallax(item) { var current = item, currentFriction = current.getAttribute('data-friction'), wrap = current.getBoundingClientRect(), top ...
JavaScript
0
@@ -92,31 +92,8 @@ ) %7B%0A -%09var item = items%5Bi%5D;%0A%0A %09par @@ -102,16 +102,20 @@ lax(item +s%5Bi%5D );%0A%7D%0A%0Afu @@ -544,9 +544,11 @@ fset -* + * curr @@ -609,16 +609,33 @@ () %7B -%0A%09%09%09%0A%09%09%09 + %0A if(t @@ -681,291 +681,193 @@ ) %7B%0A -%09%09%09%09parallaxR...
bb633c0519f383a4f2a83aa7a63558df8f7196a7
Add more sugar to helper for iterating compound operations.
src/operation_helpers.js
src/operation_helpers.js
var Helpers = {}; Helpers.last = function(op) { if (op.type === "compound") { return op.ops[op.ops.length-1]; } return op; }; Helpers.each = function(op, iterator, context) { if (op.type === "compound") { for (var i = 0; i < op.ops.length; i++) { var child = op.ops[i]; if (child.type === "...
JavaScript
0.999999
@@ -127,24 +127,291 @@ urn op;%0A%7D;%0A%0A +// Iterates all atomic operations contained in a given operation%0A// --------%0A//%0A// - op: an Operation instance%0A// - iterator: a %60function(op)%60%0A// - context: the %60this%60 context for the iterator function%0A// - reverse: if present, the operations are iterate...
461c4fc0a27a1910c2e0b2e3c3c71cc4f2e3f8c8
Remove dead code
js/script.js
js/script.js
/*jslint browser: true */ (function() { "use strict"; var originalTitle = document.title, // originalURL = document.location.origin + "?name=", originalURL = document.location.href.replace(document.location.search, "") + "?name=", QshareURL = document.querySelector("section a")...
JavaScript
0.001497
@@ -92,81 +92,8 @@ le,%0A - // originalURL = document.location.origin + %22?name=%22,%0A
c17ababf00db25a6cd6657aaa99791299a4cf7fe
Comment Juxta.Uptime
js/uptime.js
js/uptime.js
/** * @class Server uptime * @param {jQuery, String} Container */ Juxta.Uptime = function(container) { /** * @type {jQuery} */ var _container = $(container); /** * @type {String} */ var _selector = _container.selector; /** * @type {Number} */ var _time; /** * @type {String} */ var _interv...
JavaScript
0
@@ -1,12 +1,60 @@ /**%0A + * Counts the time since the server was started%0A * @clas
9c72c1d91f87fbeb363fb8d7ad72648be5b2bfd7
check size of README
bids-validator/validators/bids/checkReadme.js
bids-validator/validators/bids/checkReadme.js
const Issue = require('../../utils').issues.Issue const checkReadme = fileList => { const issues = [] const fileKeys = Object.keys(fileList) const hasReadme = fileKeys.some(key => { const file = fileList[key] return file.relativePath && file.relativePath == '/README' }) if (!hasReadme) { issues.p...
JavaScript
0.000001
@@ -1,12 +1,53 @@ +import isNode from '../../utils/isNode'%0A%0A const Issue @@ -384,16 +384,447 @@ 101 %7D))%0A + %7D else %7B%0A // Get the README file object%0A for (var key in fileList) %7B%0A if (fileList%5Bkey%5D.name == 'README') %7B%0A var readmeFile = fileList%5Bkey%5D%0A break%0A ...
e896f6b18db8a4928ae81d1c726f28b1195adce9
Bump schema
src/database/schema.js
src/database/schema.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import { Address, Item, ItemBatch, ItemCategory, ItemDepartment, ItemStoreJoin, MasterList, MasterListItem, MasterListNameJoin, Name, NameStoreJoin, NumberSequence, NumberToReuse, Options, Requisition, RequisitionItem, ...
JavaScript
0.000001
@@ -3274,17 +3274,17 @@ ersion: -8 +9 ,%0A%7D;%0A%0Aex
e1857a89e37cf03cb193137405be9b1f9eb228b2
update fix token -- dateFormat
src/date/dateFormat.js
src/date/dateFormat.js
var kindOf = require('../lang/kindOf') var pad = require('../number/pad') var ordinal = require('../number/ordinal') var frmt = require('./dateMasks') var nameOfDay = require('./nameOfDay') var nameOfMonth = require('./nameOfMonth') var isLeapYear ...
JavaScript
0
@@ -3459,11 +3459,32 @@ turn + token.replace(/'/g, '' +) %0A %7D
d76b46648a349271767e166b81bf31ef1f24361f
fix makeDOMDriver import
test/browser/perf/index.js
test/browser/perf/index.js
import {run} from '@motorcycle/core' import {makeDomDriver, h} from '../../../src' import most from 'most' import {combineArray} from 'most/lib/combinator/combine' import map from 'fast.js/array/map' function InputCount(dom, initialValue) { const id = `.component-count` const value$ = dom.select(id) .events(...
JavaScript
0
@@ -39,26 +39,26 @@ mport %7BmakeD -om +OM Driver, h%7D f @@ -1716,18 +1716,18 @@ m: makeD -om +OM Driver(%60
c56493649c6b412a97f05e0003fdda6a0fe9f415
document integration test library
lib/integration_test.js
lib/integration_test.js
module.exports = IntegrationTest = function() { this._client = null; this._server = null; this._port = 8000 + Math.floor(Math.random() * 1000); Test.call(this); } inherits(IntegrationTest, Test); IntegrationTest.prototype.start_server = function(base_path) { this._server = new Server(path.join(Gourdian.ROOT...
JavaScript
0.000001
@@ -1,8 +1,26 @@ +/* constructor */%0A module.e @@ -213,24 +213,710 @@ st, Test);%0A%0A +/* @returns %7BBoolean%7D is test server bound to port and accepting connections */%0AIntegrationTest.prototype.__defineGetter__(%22bound%22, function() %7B%0A return this._server && this._server.bound_to_port%0A%7D);%0A%0A/* is...
96835c0d6b0aefa0c3d337b3832bb1ae397a6223
active attribute test
test/ceb.attribute.spec.js
test/ceb.attribute.spec.js
import {element, attribute} from '../src/ceb.js'; /*jshint -W030 */ describe('ceb.attribute()', () => { let sandbox, builder; beforeEach(() => { if (sandbox) { sandbox.parentNode.removeChild(sandbox); } document.body.appendChild((sandbox = document.createElement('div'))); ...
JavaScript
0.000001
@@ -3991,30 +3991,8 @@ -done();%0A /* el.r @@ -4054,32 +4054,34 @@ +// expect(listener, @@ -4127,32 +4127,34 @@ +// expect(listener, @@ -4251,18 +4251,16 @@ %7D, 10); -*/ %0A
79cd1a3b275235a956cd125d7f681ec684b088fa
Remove verbose logging
lib/interfaceFactory.js
lib/interfaceFactory.js
'use strict'; var uuid = require('uuid'); var Interface = function (params) { // Schema defines fields and can be used for validation and form generation (optional) this.schema = params.schema; // The name of the interface, this must be unique this.name = params.name; // Additional properties that...
JavaScript
0.000019
@@ -515,16 +515,19 @@ %0A + // console
0a9df605bb02e4511b9f5bf69f0d36670636a00f
Fix typo in bin/esgenerate.js
bin/esgenerate.js
bin/esgenerate.js
#!/usr/bin/env node /* Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this l...
JavaScript
0.001077
@@ -1588,20 +1588,23 @@ g(' es -pars +generat e file.j
d9113c8d7d84f67d9f3a6b695fcdafc811bec308
Fix url check for requirements
test/check-requirements.js
test/check-requirements.js
'use strict'; let loadMetadata = require('../browser/services/metadata'); let reqs = loadMetadata(require('../requirements.json'), process.platform); let request = require('request'); let data = new Object(); let fileNames = new Object(); let count = 0; function checkRequirements() { for (let attribute in reqs) { ...
JavaScript
0.000001
@@ -1276,33 +1276,33 @@ es%5B'7zip'%5D = '7- -Z +z ip';%0A fileNames @@ -1325,9 +1325,9 @@ '7- -Z +z ip';
c666554156a3d01fb8a4ba18f1a83ef4def8f50c
implement tests for shaperFunction
lib/json-shaper.spec.js
lib/json-shaper.spec.js
import { isObject, forEach, } from './json-shaper' import sinon from 'sinon'; describe('isObject helper', () => { it('should recognize objects', () => { expect(isObject({})).to.be.true expect(isObject({ any: 'thing' })).to.be.true expect(isObject(['a', 'b'])).to.be.true }) it('should re...
JavaScript
0
@@ -3,16 +3,34 @@ mport %7B%0A + shaperFunction,%0A isObje @@ -1625,20 +1625,1237 @@ equal(0)%0A%0A %7D)%0A%0A%7D)%0A%0A +%0A%0Adescribe('shaperFunction', () =%3E %7B%0A%0A const schema = %7B%0A id: 'id',%0A firstName: 'first_name',%0A lastName: 'last_name',%0A workplace: %7B%0A id: 'office_id'...
5710e90529613d8e1bed12e99f511d29f39aa1ed
Update page-manipulation.js
src/page-manipulation.js
src/page-manipulation.js
(function($){ //Storages var pinnedActivities = [] //Utils functions function setActivities(){ var activities = activityList.find(".notification li"); activities.removeClass("chidden"); if(!activityList.hasClass("fullList")){ for(var i = 7; i<activities.length; i++){ $(activities.g...
JavaScript
0.000001
@@ -646,16 +646,23 @@ ()%7B%0A +window. localSto @@ -806,16 +806,23 @@ N.parse( +window. localSto @@ -3038,17 +3038,16 @@ hash: -$ activity @@ -3082,17 +3082,16 @@ before: -$ activity @@ -3151,16 +3151,19 @@ ies. -unshift( +push(pinned );%0A @@ -3202,21 +3202,13 @@ -console.log(p +saveP inne @...
56eabb129450bfb6d7a118cc66f5f3b8eee099a3
fix kill tests on windows
test/commands/kill.spec.js
test/commands/kill.spec.js
'use strict' var path = require('path') var fs = require('fs') var childProcess = require('child_process') var should = require('should') var utils = require('../utils') var keepAliveProcess = require('../../lib/keepAliveProcess') var kill = require('../../lib/commands/kill').handler function tryCreate (dir) { try ...
JavaScript
0.000001
@@ -3059,14 +3059,18 @@ l, ' -xXsfrt +zzzzzzzzzz '%5D%0A @@ -4132,32 +4132,36 @@ id).be.eql(child +Info .pid)%0A %7D) @@ -4398,24 +4398,28 @@ %5Bnull, child +Info .pid%5D%0A @@ -4542,16 +4542,20 @@ ql(child +Info .pid)%0A
2e75af9429c9e81cd10ddd659fb695c341903d10
update transition detection
src/dialog-renderer.js
src/dialog-renderer.js
import {DOM} from 'aurelia-pal'; import {transient} from 'aurelia-dependency-injection'; let containerTagName = 'ai-dialog-container'; let overlayTagName = 'ai-dialog-overlay'; let transitionEvent = (function() { let transition = null; return function() { if (transition) return transition; let t; let...
JavaScript
0
@@ -734,17 +734,16 @@ function - () %7B%0A c @@ -751,38 +751,26 @@ nst -defaultDuration = '0s';%0A let +unprefixedName = ' tran @@ -787,23 +787,17 @@ tion +' ;%0A -let t;%0A le +cons t el @@ -843,82 +843,52 @@ let -transitions = %7B%0A 'transition': 'transitionDuration',%0A 'OTransition': +prefix...
0801d838561b2bd29cef2d421a424596cbf4cb1d
add github icon in GlobalFooter
src/pages/login/index.js
src/pages/login/index.js
import React, { PureComponent, Fragment } from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Button, Row, Form, Input } from 'antd' import router from 'umi/router' import { GlobalFooter } from 'ant-design-pro' import { Trans, withI18n } from '@lingui/react' import config from 'utils/...
JavaScript
0
@@ -140,16 +140,22 @@ w, Form, + Icon, Input %7D @@ -890,32 +890,193 @@ nks = %5B%0A %7B%0A + key: 'github',%0A title: %3CIcon type=%22github%22 /%3E,%0A href: 'https://github.com/zuiidea/antd-admin',%0A blankTarget: true,%0A %7D,%0A %7B%0A key: 'En
22ddd7a37ef86b2c91c52516a56c160ca416f31c
Implement CompoundPath#curves.
src/path/CompoundPath.js
src/path/CompoundPath.js
/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Copyright (c) 2011, Juerg Lehni & Jonathan Puckey * http://lehni.org/ & http://jonathanpuckey.co...
JavaScript
0
@@ -2810,16 +2810,337 @@ );%0A%09%7D,%0A%0A +%09/**%0A%09 * All the curves contained within the compound-path, from all its child%0A%09 * %7B@link Path%7D items.%0A%09 *%0A%09 * @type Curve%5B%5D%0A%09 * @bean%0A%09 */%0A%09getCurves: function() %7B%0A%09%09var curves = %5B%5D;%0A%09%09for (var i = 0, l = this._childr...
b833b9ac918f780df8512406d6c2d49d522b33f7
Remove erroneous console.log
src/patterns/mediator.js
src/patterns/mediator.js
function mediator() { mediator.base.call(this); this._observers = $.hash(); } mediator.prototype = { subscribe: function(name, method, scope, id) { var observers = this._observers; if(observers.containsKey(name)) observers.find(name).add(method, scope, id); else observers.add(name, $...
JavaScript
0.000009
@@ -937,30 +937,8 @@ gs;%0A - console.log()%0A
fc3e38b9de6b23553b7a17d8852faaababb49888
Add page scrolling to sortable pattern.
src/patterns/sortable.js
src/patterns/sortable.js
define([ 'jquery', "../registry" ], function($, patterns) { var _ = { name: "sortable", trigger: "ul.pat-sortable", init: function($el) { if ($el.length > 1) return $el.each(function() { _.init($(this)); }); // use only direct descendants to ...
JavaScript
0
@@ -865,32 +865,868 @@ %7D);%0A%0A + // invisible scroll activation areas%0A var scrollup = $('%3Cdiv id=%22pat-scroll-up%22%3E&nbsp;%3C/div%3E'),%0A scrolldn = $('%3Cdiv id=%22pat-scroll-dn%22%3E&nbsp;%3C/div%3E'),%0A scroll = $().add(scrollup).add(scroll...
685695d53d5123c5512091c4558c119da9ee581a
add warn log for duplicate out res
relay_handler.js
relay_handler.js
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0
@@ -2413,24 +2413,219 @@ f.outres) %7B%0A + self.channel.logger.warn('relay request already responded', %7B%0A // TODO: better context%0A remoteAddr: self.inreq.remoteAddr,%0A id: self.inreq.id%0A %7D);%0A retu
5b91be77409948be12828afeec75f9f17edd7ce4
fix superfluous requests to conversation
lib/middleware/index.js
lib/middleware/index.js
/** * Copyright 2016 IBM Corp. 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 required by applica...
JavaScript
0.000006
@@ -2043,25 +2043,24 @@ ge, next) %7B%0A -%0A var be @@ -2454,16 +2454,34 @@ reply_to + %7C%7C message.bot_id ) %7B%0A
576f2da7c323363c97f1472e79db6065b46af2b1
Update boilerplate, fix http server body request, fix validators on empty scenarios
lib/mysql/Connection.js
lib/mysql/Connection.js
'use strict'; /** * @namespace Jii * @ignore */ var Jii = require('jii'); var mysql = require('mysql'); require('../BaseConnection'); /** * * @class Jii.sql.mysql.Connection * @extends Jii.sql.BaseConnection */ Jii.defineClass('Jii.sql.mysql.Connection', { __extends: Jii.sql.BaseConnection, /** * @typ...
JavaScript
0
@@ -1670,16 +1670,18 @@ ull;%0A%0A%09%09 +// console.
fd0be9da73742ac2ad913bfa227387a5cde26e1e
Make Epsilon an optional arg that falls back to the global
lib/numeric/calculus.js
lib/numeric/calculus.js
var calculus = exports; /** * Calculate point differential for a specified function at a * specified point. For functions of one variable. * * @param {Function} math function to be evaluated * @param {Number} point to be evaluated * @return {Number} result */ calculus.pointDiff = function (func, point) { va...
JavaScript
0
@@ -1080,36 +1080,32 @@ on') %7B%0A for ( -var i = start; i %3C f @@ -1197,20 +1197,16 @@ for ( -var i = star @@ -2092,60 +2092,60 @@ er%7D -error bound (epsilon)%0A * @param %7BNumber%7D total value +total value%0A * @param %7BNumber%7D Error bound (epsilon) %0A * @@ -2252,18 +2252,18 @@ b, -eps, ...
ff768d1d5d5a50566582a5132a8451dad8f6fe38
add checks for left/rightButton existance
test/e2e/viewState/test.js
test/e2e/viewState/test.js
describe('tabs test page', function() { var P; beforeEach(function() { browser.get('http://localhost:8080/test/e2e/viewState/test.html'); P = protractor.getInstance(); }); function navTitle() { return element(by.css('h1.title')); } function navButtons(dir) { return dir == 'back' ? ele...
JavaScript
0.000001
@@ -1513,35 +1513,32 @@ eft-c');%0A - // expect( P.isElementP @@ -1525,35 +1525,16 @@ expect( -P.isElementPresent( navButto @@ -1535,32 +1535,43 @@ vButtons('left') +.isPresent( )).toBe(false);%0A @@ -1569,35 +1569,32 @@ (false);%0A - // expect( P.isElementP @@ -1581,35 +1581,16 @@ expect( -P.isEle...
eea540b0fbea9897d146f1e2322c9af804d3f73e
Use moment.utc() over moment() since we're currently always dealing with UTC times
src/plugins/webserver.js
src/plugins/webserver.js
const http = require('http'); const mime = require('mime'); const url = require('url'); const fs = require('fs'); const moment = require('moment'); const config = require('../config'); const threads = require('../data/threads'); const attachments = require('../data/attachments'); const {THREAD_MESSAGE_TYPE} = require(...
JavaScript
0
@@ -991,16 +991,20 @@ $%7Bmoment +.utc (message
f9f5af8d5fe9ddae0bed612a756c51ce75f589b1
Fix Collapsed Output
lib/output-collapsed.js
lib/output-collapsed.js
/* * lib/output-collapsed.js: emits StackSets in collapsed format, compatible with * Brendan Gregg's FlameGraph tool. */ var mod_assert = require('assert'); /* * Arguments: * * stacks StackSet Stacks to visualize * * output WritableStream Output file */ exports.emit = function emitCollapsed(args, cal...
JavaScript
0
@@ -700,20 +700,17 @@ %7B%0A%09%09 -process.stdo +args.outp ut.w @@ -759,11 +759,24 @@ );%0A%09%7D);%0A +%09callback();%0A %7D;%0A
f3cf96cc38baa24a41bf60b59f4adec556397645
Fix primitive and update issues. (fixes #243, #248)
src/primitives/a-tube.js
src/primitives/a-tube.js
/** * Tube following a custom path. * * Usage: * * ```html * <a-tube path="5 0 5, 5 0 -5, -5 0 -5" radius="0.5"></a-tube> * ``` */ module.exports.Primitive = AFRAME.registerPrimitive('a-tube', { defaultComponents: { tube: {}, }, mappings: { path: 'tube.path', segments: ...
JavaScript
0
@@ -371,30 +371,33 @@ s',%0A +' radial -S +-s egments +' : 'tube. @@ -1499,16 +1499,138 @@ ;%0A %7D,%0A%0A + update: function (prevData) %7B%0A if (!Object.keys(prevData).length) return;%0A%0A this.remove();%0A this.init();%0A %7D,%0A%0A remove
dfffc00922865aed35871fbf488e19facb3a8df1
Exclude URLs in uppercase, too (eg HTTP://...).
lib/rules/heuristic/date-format.js
lib/rules/heuristic/date-format.js
'use strict'; exports.name = 'heuristic.date-format'; exports.check = function (sr, done) { // Pseudo-constants: var MONTHS = 'jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|oct|october|nov|november|dec|december' , POSSIBLE_DATE = new RegExp('([0123]?\\d|' ...
JavaScript
0.000028
@@ -870,16 +870,17 @@ /%5C/%5CS+/g +i , '').ma
361239704a0f9cd9be7260e619f8523fe8b9d5b1
Add events for Split View
app/alloy.js
app/alloy.js
/* global Alloy, ENV_PROD */ // The contents of this file will be executed before any of // your view controllers are ever executed, including the index. // You have access to all functionality on the `Alloy` namespace. // // This is a great place to do any initialization for your app // or create any global variables...
JavaScript
0
@@ -23,16 +23,43 @@ ROD */%0A%0A +var log = require('log');%0A%0A // The c @@ -1425,16 +1425,1058 @@ rted);%0A%0A + if (OS_IOS && Alloy.isTablet) %7B%0A%0A // This event fires when the app was still active in the background when it Slides Over another app%0A Ti.App.addEventListener('resume', function(e) %7B%0...
c4c349276ed3f66584bfeb4d8663cdfc9d8840ff
add comment
component.config.js
component.config.js
var bower = require('./bower.json'); var pkg = require('./package.json'); module.exports = { bower: bower, buildFonts: true, // or false. Set to false if you are doing your own thing in the fonts directory buildTool: 'gulp', // grunt not yet available buildStyles: 'sass', // less not yet available ...
JavaScript
0
@@ -791,16 +791,57 @@ onents/' + //prefix your target release destination %0A %7D,%0A
b5d22957205f6e8cd4cdc936fe17e88b28f991f4
use this.props.children demo
app/index.js
app/index.js
var USER_DATA = { name: 'Kevin', username: 'wedgedeadly', image: 'https://avatars0.githubusercontent.com/u/3848154?v=3&s=460' } var React = require('react'); var ReactDOM = require('react-dom'); var ProfilePic = React.createClass({ render: function() { return ( <img src={this.props.imageUrl} style={...
JavaScript
0
@@ -45,19 +45,26 @@ e: ' -wedgedeadly +kevinhamiltonsmith ',%0A @@ -133,16 +133,17 @@ s=460'%0A%7D +; %0A%0Avar Re @@ -200,24 +200,325 @@ act-dom');%0A%0A +var Link = React.createClass(%7B%0A changeUrl: function() %7B%0A window.location.replace(this.props.href);%0A %7D,%0A render: function() %7B%0A retur...
0910e867863501d9015e87c72966bde65d702ed3
Increase post size limit
app/index.js
app/index.js
#!/usr/bin/env node const express = require('express') const bodyParser = require('body-parser') const browserify = require('browserify-middleware') const sanitizeHtml = require('sanitize-html') const session = require('express-session') const studentHtml = require('./student.html') const mathImg = require('./mathImg')...
JavaScript
0
@@ -1790,24 +1790,38 @@ ended: false +, limit: '5mb' %7D))%0Aapp.use( @@ -1848,24 +1848,13 @@ it: -20 * 1024 * 1024 +'5mb' , st
b7555bd1ee6043f414cd10502195fe54bcea2bcb
Install npm and bower
app/index.js
app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var path = require('path'); var cgUtils = require('../utils.js'); var _ = require('underscore'); var glob = require('glob'); module.exports = yeoman.Base.extend({ constructor: function(args, options, config) { yeoman.Base.apply(this, argu...
JavaScript
0
@@ -3798,11 +3798,8 @@ - // thi
38d01bfec637df5dd9bee48b75a97cccef2f9558
Remove conditional in index for inuit
app/index.js
app/index.js
'use strict'; var fs = require('fs'), util = require('util'), path = require('path'), spawn = require('child_process').spawn, yeoman = require('yeoman-generator'), yosay = require('yosay'), chalk = require('chalk'), wiredep = require('wiredep'); var FrancisCraftGenerator = yeoman.generator...
JavaScript
0.000015
@@ -4879,33 +4879,8 @@ tml' -%3C%25 if (includeInuit) %7B %25%3E ,%0A @@ -4922,15 +4922,8 @@ ss'%5D -%3C%25 %7D %25%3E %0A
2f1aacc7a2fa234382b7e993fe5d9ebc0d635294
fix index.js
app/index.js
app/index.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var AppGenerator = yeoman.generators.Base.extend({ init: function () { this.pkg = require('../package.json'); this.on('end', function (...
JavaScript
0.000046
@@ -1882,20 +1882,24 @@ this. -copy +template ('gulpfi
5c5df520ac6c345c224715f251d6279a51e625ff
Replace deprecated Buffer constructor with Buffer.from
lib/raygun.transport.js
lib/raygun.transport.js
/* * raygun * https://github.com/MindscapeHQ/raygun4node * * Copyright (c) 2015 MindscapeHQ * Licensed under the MIT license. */ 'use strict'; var http = require('http'); var https = require('https'); var API_HOST = 'api.raygun.io'; var getFullPath = function(options) { var useSSL = options.useSSL, ...
JavaScript
0
@@ -514,19 +514,20 @@ ta = - new Buffer +.from (JSO @@ -558,16 +558,8 @@ age) -, 'utf8' );%0A
f7b90b76335fd4fc0fda51ac4592cf5423773991
fix menu options
app/index.js
app/index.js
'use strict' const fs = require('fs') const os = require('os') const path = require('path') const { app, BrowserWindow, Menu, ipcMain } = require('electron') const windowStateKeeper = require('electron-window-state') const event = require('./eme/event') const buildMenu = require('./eme/menu') const emeWindow = ...
JavaScript
0.000011
@@ -1342,28 +1342,22 @@ nst -appMenu = buildMenu( +menuOptions = %7B%0A @@ -1413,16 +1413,55 @@ Window%0A%7D +%0A%0Aconst appMenu = buildMenu(menuOptions )%0A%0Aconst @@ -1522,54 +1522,19 @@ enu( -%7B%0A createWindow: emeWindow.createWindow%0A %7D +menuOptions ))%0A%7D
da3bbdf2e316288bfde2ab906f7fe294b9e62540
bump version number on example and docs
lib/release-override.js
lib/release-override.js
// While galaxy apps are on their own special meteor releases, override // Meteor.release here. if (Meteor.isClient) { Meteor.release = Meteor.release ? "0.6.6.1" : undefined; }
JavaScript
0
@@ -159,9 +159,9 @@ 6.6. -1 +2 %22 :
6b1cc4ae9776e4b755ad353652466616a74c1ba2
Add support for direct requests
lib/request-analyzer.js
lib/request-analyzer.js
/** * Request Analyzer * Belongs to Decentraleyes. * * @author Thomas Rientjes * @since 2014-05-30 * @license MPL 2.0 * * 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:...
JavaScript
0
@@ -762,24 +762,61 @@ plit(%22;%22);%0A%0A + if (httpChannel.referrer) %7B%0A%0A for (var @@ -845,24 +845,28 @@ Domains) %7B%0A%0A + if ( @@ -938,16 +938,20 @@ + + // Remov @@ -981,16 +981,20 @@ equest.%0A + @@ -1056,32 +1056,36 @@ );%0A%0A + + ...
c0c2a060f6829cb11ccec6d727bd571b9d6cbbb9
make object susan
codeacad_this2.js
codeacad_this2.js
// here we define our method using "this", before we even introduce bob var setAge = function (newAge) { this.age = newAge; }; // now we make bob var bob = new Object(); bob.age = 30; bob.setAge = setAge;
JavaScript
0.999828
@@ -204,8 +204,126 @@ Age;%0A %0A +// make susan here, and first give her an age of 25%0Avar susan = new Object();%0Asusan.age = 25;%0Asusan.setAge = setAge;%0A%0A
97821d120b0664b244624620fedf4a4719c73336
Return listening to $locationChangeSuccess back because it is not the source of broken query error
lib/web/angular-base-workaround.js
lib/web/angular-base-workaround.js
if ('angular' in window) { angular.module('ng').run(['$rootScope', '$window', function ($rootScope, $window) { $rootScope.$watch(function() { return $window.location.pathname + $window.location.search; }, function (newUrl, oldUrl) { if (newUrl === oldUrl) { return; } var evt = do...
JavaScript
0.000003
@@ -65,19 +65,8 @@ pe', - '$window', fun @@ -86,209 +86,63 @@ cope -, $window) %7B%0A%0A %09$rootScope.$watch(function() %7B%0A%09%09 return $window.location.pathname + $window.location.search;%0A %09%7D, function (newUrl, oldUrl) %7B%0A if (newUrl === oldUrl) %7B%0A return;%0A %7D%0A +) %7B%0A%...
b8befe3fbb95efda2df36471f8a0d22237afab44
Add watch option to wee build command
commands/build.js
commands/build.js
const exec = require('child_process').exec; const spawn = require('child_process').spawn; const name = 'build'; const assets = { images: '--images', styles: '--styles', scripts: '--scripts' }; module.exports = { name: name, description: 'Compile project assets', usage: '- wee build [options]', options: [ ['-i...
JavaScript
0
@@ -486,16 +486,50 @@ cripts'%5D +,%0A%09%09%5B'-w, --watch', 'watch files'%5D %0A%09%5D,%0A%09ac @@ -1776,16 +1776,274 @@ );%0A%09%09%09%09%7D +%0A%0A%09%09%09%09if (options.watch) %7B%0A%09%09%09%09%09// Execute npm build %5Boptions%5D%0A%09%09%09%09%09let child = spawn('npm', %5BbaseCommand, 'watch', ansi%5D, %7B...
48e250c715b3a424b41d5cd198b23e2e83b8b4f6
Update greet.js
commands/greet.js
commands/greet.js
exports.run = function(client, message){ console.log("Margarine greeted someone."); message.channel.send("Hello!"); }; exports.conf = { enabled: true, guildOnly: false, aliases: ["greet"], permLevel: 0 }; exports.help = { name: "Greet", description: "Have Margarine greet you with a h...
JavaScript
0
@@ -1,16 +1,53 @@ +const moment = require(%22moment%22);%0D%0A%0D%0A exports.run = fu @@ -92,36 +92,108 @@ log( -%22Margarine greeted someone.%22 +%60%5B$%7Bmoment().format('YYYY-MM-DD HH:mm')%7D%5D Margarine greeted someone.%60);%0D%0A message.delete().catch( );%0D%0A @@ -221,16 +221,43 @@ end( -%22 +%60 Hello...
956e73b73b7db1ca75ec12ada9b42f55b95cb0c2
debug code
app/js/ui.js
app/js/ui.js
//------------Input Button Stuff----------------------// document.getElementById('upload_link').onclick = function() { document.getElementById('input_csv').click(); }; document.getElementById('upload_link_topo').onclick = function() { document.getElementById('input_topo').click(); }; function clearContents(eleme...
JavaScript
0.000007
@@ -323,30 +323,8 @@ ) %7B%0A - switch(element) %7B%0A co @@ -349,24 +349,44 @@ ntents()%22);%0A + switch(element) %7B%0A case %22En
e670d6d2319a8274cd162958e8cde61b5ca5841d
Add simply API request proxy.
app/proxy.js
app/proxy.js
var http = require('http'); var sys = require('sys'); http.createServer(function(request, response) { sys.log(request.connection.remoteAddress + ": " + request.method + " " + request.url); var proxy = http.createClient(6800, request.headers['host']) var proxy_request = proxy.request(request.method, reques...
JavaScript
0
@@ -29,12 +29,56 @@ var -sys +child_process = require('child_process');%0Avar fs = r @@ -85,18 +85,17 @@ equire(' -sy +f s');%0A%0Aht @@ -114,348 +114,811 @@ ver( -function(request, response) %7B%0A sys.log(request.connection.remoteAddress + %22: %22 + request.method + %22 %22 + request.url);%0A var proxy...
d144e40af05b4053d7ebaa818f9edc24f1a04c5b
Test 2
lib/components/announcements.js
lib/components/announcements.js
'use strict'; var Zermelo = require('../index.js'); Zermelo.prototype.getAnnouncements = function(bool, callback) { var a = true; if(a) { console.log('b'); } else { console.log('c'); } };
JavaScript
0
@@ -111,18 +111,16 @@ back) %7B%0A -%0A%0A var @@ -120,16 +120,28 @@ var a +nUnknownBool = true; @@ -150,16 +150,28 @@ if(a +nUnknownBool ) %7B%0A @@ -186,16 +186,24 @@ e.log('b +bbbbbbbb ');%0A @@ -235,16 +235,24 @@ e.log('c +cccccccc ');%0A
76a6f972d1cc7e6d65e9e8b5d8c97ec273f7ef7e
Include query string when retrieving window path
lib/stores/url-store.js
lib/stores/url-store.js
var invariant = require('react/lib/invariant'); var warning = require('react/lib/warning'); var ExecutionEnvironment = require('react/lib/ExecutionEnvironment'); var normalizePath = require('../path').normalize; var CHANGE_EVENTS = { hash: 'hashchange', history: 'popstate' }; var _location; function getWindowPat...
JavaScript
0
@@ -383,16 +383,41 @@ athname ++ window.location.search : window
d0b3be1c9064bfab402ec825bf08b2acac8cfb9e
add startsWith string polyfill
lib/test/cases/build.js
lib/test/cases/build.js
var fs = require("fs"); //------------------------------------------------------------------------------ // Result Data //------------------------------------------------------------------------------ function getInitialResult() { var result = { cases: [], currLabel: null, // "in" or "out" currCase: get...
JavaScript
0.000006
@@ -18,16 +18,503 @@ %22fs%22);%0A%0A +//------------------------------------------------------------------------------%0A// String Polyfill%0A//------------------------------------------------------------------------------%0A%0A// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String...
d4bdcb60a01ca3988e9c5aebb1036d7fc304386c
Make template token objects adhere to token object structure (#343)
lib/token-translator.js
lib/token-translator.js
/** * @fileoverview Translates tokens between Acorn format and Esprima format. * @author Nicholas C. Zakas */ /* eslint no-underscore-dangle: 0 */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-------------------------------------------------------...
JavaScript
0.999999
@@ -1599,17 +1599,16 @@ ken. -range +start = -%5B firs @@ -1622,17 +1622,37 @@ range%5B0%5D -, +;%0A token.end = lastTem @@ -1670,16 +1670,63 @@ range%5B1%5D +;%0A token.range = %5Btoken.start, token.end %5D;%0A %7D
afacc582841cd5e57e8bdced690e9e3f2703a515
Return null if a transaction hasn't been verified yet.
lib/transactionstore.js
lib/transactionstore.js
var assert = require('assert'); var sys = require('sys'); var TransactionStore = exports.TransactionStore = function (node) { events.EventEmitter.call(this); this.node = node; this.txIndex = {}; }; sys.inherits(TransactionStore, events.EventEmitter); /** * Add transaction to memory pool. * * Note that transac...
JavaScript
0
@@ -1645,16 +1645,77 @@ ing');%0A%0A +%09if (Array.isArray(this.txIndex%5Bhash%5D)) %7B%0A%09%09return null;%0A%09%7D%0A%0A %09return
5f16dd85542745fc6f4b3f6ae24493871ad971be
clean up SortableSet
lib/util/SortableSet.js
lib/util/SortableSet.js
"use strict"; module.exports = class SortableSet extends Set { constructor(initialIterable, defaultSort) { super(initialIterable); this._sortFn = defaultSort; this._lastActiveSortFn = null; this._isSorted = false; } /** * @param {any} value - value to add to set * @returns {SortableSet} - returns itse...
JavaScript
0.000002
@@ -196,37 +196,11 @@ ll;%0A -%09%09this._isSorted = false;%0A %09%7D%0A + %0A%09/* @@ -346,34 +346,8 @@ ll;%0A -%09%09this._isSorted = false;%0A %09%09su @@ -385,129 +385,8 @@ %09%7D%0A%0A -%09/**%0A%09 * @returns %7Bvoid%7D%0A%09 */%0A%09clear() %7B%0A%09%09this._lastActiveSortFn = null;%0A%09%09this._isSorted ...
c298afe08aa38fbee990ef09e24bbb912b8d3c0c
rename to PonosErrorCat
lib/error.js
lib/error.js
'use strict'; var util = require('util'); var ErrorCat = require('error-cat'); var log = require('./logger'); /** * Custom ErrorCat error handler. * @class */ function PonosError () { ErrorCat.apply(this, arguments); } util.inherits(PonosError, ErrorCat); /** * Logs errors via default ponos logger. * @param {...
JavaScript
0.999998
@@ -176,16 +176,19 @@ nosError +Cat () %7B%0A @@ -246,16 +246,19 @@ nosError +Cat , ErrorC @@ -340,16 +340,19 @@ nosError +Cat to log. @@ -384,16 +384,19 @@ nosError +Cat .prototy @@ -478,24 +478,27 @@ * PonosError +Cat handling vi @@ -600,12 +600,15 @@ nosError +Cat ();%0A
19adac4676483a5b42aed2540099c93426598d60
Remove forgotten console.error (sorry)
lib/htmly.js
lib/htmly.js
var extend = require('extend') var concatStream = require('concat-stream') var createReadStream = require('fs').createReadStream var lrio = require('lrio') var transform = require('./transform.js') var processor = require('./processor.js') var chokidar = require('chokidar') var resolve = require('resolve').sync var rem...
JavaScript
0.000001
@@ -3858,37 +3858,8 @@ ) %7B%0A - console.error(err)%0A
7c7588219c020a7482f5498745b8eec159ddfe32
Add TODO about refactoring for greater reuse of RPC module
lib/index.js
lib/index.js
var _ = require('lodash'); var derbyServices = require('derby-services'); var DefaultCollection = require('./DefaultCollection'); var DefaultItem = require('./DefaultItem'); var rpc = require('./rpc'); // TODO: Split up into one separate file for the server and one for the client for faster loading and less useless co...
JavaScript
0
@@ -163,24 +163,89 @@ aultItem');%0A +// TODO: Move RPC into separate module for greater re-usability?%0A var rpc = re
8352f9765fa8c1a8dc759796212221701b82c1c2
remove extra semi colon
lib/index.js
lib/index.js
'use strict' import readCache from './read-cache' import serialize from './serialize' import memoryStore from './memory' import exclude from './exclude' function cache (config = {}) { config.store = config.store || memoryStore const key = config.key || cache.key config.maxAge = config.maxAge || 0 config.read...
JavaScript
0.000085
@@ -1559,9 +1559,8 @@ res -; %0A
233fc26152ad8044a71d0524cac8c60cd2387d86
remove https keepalive for local testing
lib/index.js
lib/index.js
'use strict'; var Schema = require('./Schema'); var Model = require('./Model'); var https = require('https'); var debug = require('debug')('dynamoose'); function Dynamoose () { this.models = {}; this.defaults = { create: true, waitForActive: true, // Wait for table to be created waitForActiveTimeout...
JavaScript
0
@@ -2099,144 +2099,8 @@ URL) -,%0A httpOptions: %7B%0A agent: new https.Agent(%7B%0A rejectUnauthorized: true,%0A keepAlive: true%0A %7D)%0A %7D %0A
bbc3e042ee0032b36b327ee9c337077e12e6b9f1
fix missing attr error
lib/utils/xml-stream.js
lib/utils/xml-stream.js
const _ = require('./under-dash'); const utils = require('./utils'); // constants const OPEN_ANGLE = '<'; const CLOSE_ANGLE = '>'; const OPEN_ANGLE_SLASH = '</'; const CLOSE_SLASH_ANGLE = '/>'; const EQUALS_QUOTE = '="'; const QUOTE = '"'; const SPACE = ' '; function pushAttribute(xml, name, value) { xml.push(SPAC...
JavaScript
0.000002
@@ -1625,32 +1625,65 @@ t open');%0A %7D%0A + if (value !== undefined) %7B%0A pushAttribut @@ -1709,16 +1709,22 @@ value);%0A + %7D%0A %7D%0A%0A a
bd34ed766cbf2e42325b8c181bd4e8ddd63847f3
Update style of textarea in Modal preview
lib/mcide.js
lib/mcide.js
'use babel'; import { CompositeDisposable } from 'atom'; const child_process = require('child_process'); const fs = require('fs'); const net = require('net'); const tls = require('tls'); const ooc = require('./onlyonecommand'); export default { subscriptions: null, config: { onlyOneCommand: { type: '...
JavaScript
0
@@ -3909,15 +3909,98 @@ rea. -style.w +className = %22form-control%22;%0A textarea.style.width = %22100%25%22;%0A textarea.style.maxW idth
22344041caccd5a1843015619cb7e4add6494658
set monday as the first day of the week
src/domain/calendar.js
src/domain/calendar.js
export default class Calendar { constructor(firstWeekDay = 0){ this.firstWeekDay = firstWeekDay; } _weekStartDate(date) { var startDate = new Date(date.getTime()); while (startDate.getDay() !== this.firstWeekDay) { startDate.setDate(startDate.getDate() - 1); } return startDate; } _...
JavaScript
0.000907
@@ -54,17 +54,17 @@ ekDay = -0 +1 )%7B%0A t
6d1d4f9fb0036281353b1e27e04df497507fb65c
fix comment
lib/pi-io.js
lib/pi-io.js
'use strict'; var LinuxIO = require('linux-io'), pigpio = require('pigpio'), Gpio = pigpio.Gpio, util = require('util'), pins = require('./pins'), controller = require('./controller'), RangeFinder = require('./range-finder'); function PiIO() { LinuxIO.call(this, { name: 'Pi-IO', pins: pins, ...
JavaScript
0
@@ -438,17 +438,18 @@ ze wait -5 +10 0ms for
a7732df5577a69a49aa04f055df232784faa5cde
fix typo breaking `getClients` method
lib/websocket-server.js
lib/websocket-server.js
module.exports = (function() { var each = require('foreach'); var extend = require('extend'); function WebSocketServer() { this._clients = { }; } extend(WebSocketServer.prototype, { _randomAsync: function(client, fn) { var self = this; window.setTimeout(...
JavaScript
0.000006
@@ -2591,18 +2591,17 @@ ._client -Id +s %5BclientI
8873b7e28e83f9adbf6c3a28ec639c9151a838ae
Fix jshint error
test/lib/test-selection.js
test/lib/test-selection.js
var Selection = require('../../lib/selection'); var Range = Selection.Range; var TextOperation = require('../../lib/text-operation'); exports.testCreateCursor = function (test) { test.ok(Selection.createCursor(5).equals(new Selection([new Range(5, 5)]))); test.done(); }; exports.testFromJSON = function (test) { ...
JavaScript
0.000006
@@ -1,12 +1,28 @@ +(function () %7B%0A%0A var Selectio @@ -1520,28 +1520,36 @@ se(b), b);%0A test.done();%0A%7D; +%0A%0A%7D)();%0A
323bd333884f330b0a22ba0a73d60b52375aaeef
add specs for custom projection
test/map/ProjectionSpec.js
test/map/ProjectionSpec.js
describe('#Projection', function () { var container; var map; var center = new maptalks.Coordinate(118.846825, 32.046534); beforeEach(function () { container = document.createElement('div'); container.style.width = '800px'; container.style.height = '600px'; document.bod...
JavaScript
0
@@ -603,32 +603,1133 @@ iner);%0A %7D);%0A%0A + it('customize projection', function () %7B%0A var custom = %7B%0A project : function (c) %7B%0A return c.add(1, 1);%0A %7D,%0A%0A unproject : function (c) %7B%0A return c.sub(1, 1);%0A ...
85fb324791c671729c9852e9befc2c466857cb5b
Refactor and move some functions to utils
lib/utils.js
lib/utils.js
var spark = require('textspark'); var generateMetricParams = function(namespace, metric, unit, instance_id, dimension, period) { var endDate = new Date(); var startDate = new Date(endDate); var durationMinutes = 120; return { EndTime: endDate, MetricName: metric, Namesp...
JavaScript
0
@@ -604,16 +604,171 @@ rts = %7B%0A + bold: function(message)%7B%0A return '*' + message + '*';%0A %7D,%0A makeMention: function(userId) %7B%0A return '%3C@' + userId + '%3E';%0A %7D,%0A disp
c2116573c2d6839bdeb29e77f973f70b979b3425
Extend the max path length
lifeforce.js
lifeforce.js
/** * Set up imports that are required at this level for the application */ const restify = require("restify"); const corsMiddleware = require("restify-cors-middleware"); const fs = require("fs"); const os = require("os"); const path = require("path"); /** * Set up imports from local files */ const log = require("...
JavaScript
0.925573
@@ -924,12 +924,12 @@ th: -1000 +2048 %0A%7D);
c16841c1a591bdd7376b75d7cf4d25ef48c09464
Use PresetManager.populateFromPairs.
src/gemooy-launcher.js
src/gemooy-launcher.js
function launch(prefix, container, config) { if (typeof container === 'string') { container = document.getElementById(container); } config = config || {}; function loadThese(deps, callback) { var loaded = 0; for (var i = 0; i < deps.length; i++) { var elem = document.createElement('script'); ...
JavaScript
0
@@ -1830,299 +1830,59 @@ %7D) -;%0A function makeCallback(sourceText) %7B%0A return function(id) %7B%0A sourceManager.loadSource(sourceText);%0A %7D%0A %7D%0A for (var i = 0; i %3C examplePrograms.length; i++) %7B%0A presetManager.add(examplePrograms%5Bi%5D%5B0%5D, makeCa...
5ceac54b1adec1149c10aef27853bb1db82dbeef
Remove .only().
test/unit/api/component.js
test/unit/api/component.js
import { Component, define } from '../../../src'; import { classStaticsInheritance } from '../../lib/support'; import createSymbol from '../../../src/util/create-symbol'; describe('api/Component', () => { if (!classStaticsInheritance()) { return; } describe('property getters', () => { it('observedAttrib...
JavaScript
0.000392
@@ -1340,13 +1340,8 @@ it -.only ('sh
552bc677d9020e02c0a4f8a1aa8eeb21448d6e99
fix prop type again
src/components/Entry.js
src/components/Entry.js
import React from 'react'; import { Paper } from 'material-ui'; import _ from 'underscore'; const Entry = React.createClass({ propTypes: { entry: React.PropTypes.shape({ title: React.PropTypes.string.isRequired, url: React.PropTypes.string.isRequired, authors: React.PropTypes.string.isRequired,...
JavaScript
0
@@ -354,13 +354,15 @@ f(%5B' -story +feature ', '
369b534ead78de35b55182374893eb69441e0d22
Make `<Katex />` a pure component
src/components/Katex.js
src/components/Katex.js
/** * Simple KaTeX bindings, compatible with server-side rendering due to * doing everything synchronously. */ import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {renderToString as katexSync} from 'katex'; import {dedentRaw} from '../dedent'; // Rendering context that detects wheth...
JavaScript
0.000016
@@ -159,16 +159,20 @@ React, %7B +Pure Componen @@ -850,16 +850,20 @@ extends +Pure Componen
e4d740c0f7ff99601272be36197cfd657e51290a
Implement optional for num range
src/components/Range.js
src/components/Range.js
import React from 'react'; import Select from 'react-select'; import masterdata from '../store/masterdata.js'; import _ from 'lodash'; import Nouislider from 'react-nouislider'; export default React.createClass({ getInitialState() { let sortedProp = _.sortBy(masterdata, this.props.propname).map(o => {...
JavaScript
0.000001
@@ -490,32 +490,33 @@ %7D);%0A +%0A this @@ -591,24 +591,258 @@ ength - 1%5D;%0A +%0A let filterEventDetailsObj = this.filterEventDetails(%5Bthis.min, this.max%5D, !this.props.optional);%0A let event = new CustomEvent('filterChange', filterEventDetailsObj);%0A ...
4e593d113f54abc387bc9bba3ef7a775904faec9
add constructor
src/compressor/index.js
src/compressor/index.js
'use strict'; var fs = require('fs'); var path = require('path'); var Fontmin = require('fontmin'); var utils = require('./utils'); var Adapter = require('../adapter'); // http://font-spider.org/css/style.css // var RE_SERVER = /^(\/|http\:|https\:)/i; var RE_SERVER = /^https?\:/i; var TEMP = '.FONT_SPIDER_TEMP'; ...
JavaScript
0.000001
@@ -568,38 +568,36 @@ -number++;%0A%0A%0A var source +var source;%0A number++ ;%0A%0A%0A @@ -1684,16 +1684,42 @@ ype = %7B%0A + constructor: Compress, %0A%0A%0A /
9e23eb42720daba4c48d0b7381d3d8fcf3917a01
Add Filename Override
Generator.js
Generator.js
/** * Module dependencies */ var util = require('util'); var _ = require('lodash'); _.defaults = require('merge-defaults'); /** * sails-generate-humpback-view * * Usage: * `sails generate humpback-view` * * @description Generates a humpback-view * @help See http://links.sailsjs.org/docs/generators */ modu...
JavaScript
0.000002
@@ -1529,16 +1529,118 @@ it(%22/%22); +%0A var filenameOverride = typeof scope.args%5B1%5D !== 'undefined' ? scope.args%5B1%5D.toLowerCase() : null; %0A%0A // @@ -1710,24 +1710,63 @@ .filename = +filenameOverride ? filenameOverride : ( args.length @@ -1802,16 +1802,17 @@ 'index' +) ;%0A sc
d7db0583105cb6623cdfd96eb83800f6739eda2d
Add useYarn: true to ember-try config
config/ember-try.js
config/ember-try.js
'use strict'; const getChannelURL = require('ember-source-channel-url'); module.exports = function() { return Promise.all([ getChannelURL('release'), getChannelURL('beta'), getChannelURL('canary') ]).then((urls) => { return { scenarios: [ { env: { EMBER_OPTIONAL...
JavaScript
0.000011
@@ -1958,16 +1958,37 @@ %0A %5D +,%0A useYarn: true %0A %7D;%0A
6cb0e4e238443e3d65d4439acce9bb545b013972
add useYarn to see if fixes build
config/ember-try.js
config/ember-try.js
/* eslint-env node */ module.exports = { scenarios: [ { name: 'ember-lts-2.8', bower: { dependencies: { 'ember': 'components/ember#lts-2-8' }, resolutions: { 'ember': 'lts-2-8' } }, npm: { devDependencies: { 'ember-sourc...
JavaScript
0
@@ -34,16 +34,33 @@ rts = %7B%0A + useYarn: true,%0A scenar
1dd6cf66136b6a5c94f546ccd8b68da239427478
add browserify watch to Gruntfile
Gruntfile.js
Gruntfile.js
/* * holonomy-website * https://github.com/holonomy/website * licensed under the AGPLv3 license. */ 'use strict'; var _ = require('lodash'); var banner = '/* <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'; var lessPaths = [ 'node_modules/semantic/src', 'node_modules/font-a...
JavaScript
0
@@ -3098,24 +3098,117 @@ : %5B'less'%5D,%0A + browserify: %7B%0A files: 'scripts/**/*.js',%0A tasks: %5B'browserify:develop'%5D,%0A %7D,%0A
8cf46dc434a2e7a6d4cd760918446b48d4e43b49
Add python junk files in ignore list when packing
Gruntfile.js
Gruntfile.js
/*jshint globalstrict: true*/ 'use strict'; var configuration = require('splunkdev-grunt/lib/configuration'), splunkEnvironment = require('splunkdev-grunt/lib/environment'), splunkWatchConfig = require('splunkdev-grunt/lib/watchConfig'), path = require('path'); var pkg = require('./package.json'); module...
JavaScript
0
@@ -1236,16 +1236,58 @@ ar.gz',%0A + '!./**/*.pyo',%0A '!./**/*.pyc',%0A '!
12c9f855e55a124396bd2bf6f49e4e1804dbd7d3
add clean and rebuild tasks
Gruntfile.js
Gruntfile.js
/** Copyright © 2015 Luis Sieira Garcia This file is part of Planète. Planète is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later...
JavaScript
0.000002
@@ -953,19 +953,16 @@ , %7B%7D);%0A%0A -// var clea @@ -982,19 +982,16 @@ .sync(%22%7B -**/ node_mod @@ -1003,17 +1003,55 @@ !(grunt* -) +%7Cglob*),!(node_modules)/**/node_modules /,**/bow @@ -1065,20 +1065,16 @@ onents%7D%22 -, %7B%7D );%0A%0Afile @@ -1336,18 +1336,16 @@ son'),%0A%0A -// clea @@ -2385,5...
d05ffb55d73e3966d84924299e96246104b2905e
Add tests around title setting for tgr command
tests/commands/tgrTests.js
tests/commands/tgrTests.js
var tgr = require("__buttercup/classes/commands/command.tgr.js"); module.exports = { errors: { groupNotFoundThrowsError: function (test) { var command = new tgr(); var fakeSearching = { findGroupByID: function (a, b) { return false; } }; command.injectSearching...
JavaScript
0
@@ -504,15 +504,1065 @@ ;%0A %7D%0A + %7D,%0A%0A titleSet: %7B%0A titleSetCorrectlyForBla: function (test) %7B%0A var expectedTitle = 'Bla';%0A var command = new tgr();%0A%0A var fakeGroup = %7B%0A title: ''%0A %7D;%0A%0A var fakeSearching = %7B%0A findGroupByID: function...
6848c44547ce8e415ce45f4e5b02b012fb5cba9b
Remove unused hack from start-app helper
tests/helpers/start-app.js
tests/helpers/start-app.js
import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; import './sign-in-user'; export default function startApp(attrs) { let application; let attributes = Ember.merge({}, config.APP); attributes = Ember.merge(attributes, attrs); // use defaults, but you ...
JavaScript
0
@@ -486,253 +486,8 @@ );%0A%0A - // TODO: I'm not sure if this is the best thing to do, but it seems%0A // easiest for now. That way in tests I can just write:%0A //%0A // application.auth.signInForTests()%0A application.auth = application.__container__.lookup('auth:main');%0A%0A re
133b4828be0af0dca481be41d1ce0b64158fcf0d
set default properties to event
src/jquery.editable.js
src/jquery.editable.js
(function($){ $.fn.editable = function(event, callback){ if(typeof callback != 'function') callback = function(arg){}; if(typeof event == "string"){ var trigger = this; var action = event; } else{ var trigger = event.trigger; var action = event.action; } var target = ...
JavaScript
0.000002
@@ -78,16 +78,17 @@ lback != += 'functi @@ -146,17 +146,18 @@ t == - %22 += ' string -%22 +' )%7B%0A @@ -256,16 +256,24 @@ .trigger + %7C%7C this ;%0A @@ -297,16 +297,27 @@ t.action + %7C%7C 'click' ;%0A %7D%0A @@ -412,32 +412,33 @@ unbind(action == += 'clickhold' ? ' @@ -470,32 +470,33 @@ if...
15aaa6dc12af90931a63be35ea383a3fa4520080
Fix comment URL 404 (#577)
auth/auth.js
auth/auth.js
/** * Copyright 2017, Google, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
JavaScript
0
@@ -1782,36 +1782,37 @@ ://g +ithub.com/G oogle -c +C loud -p +P latform -.github.io /goo @@ -1830,40 +1830,23 @@ ode/ -#/docs/google-cloud/latest/guide +blob/master/doc s/au @@ -1857,16 +1857,19 @@ tication +.md %0A const