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
bdb9d0e6473fcef81c770912491ab51c3167a113
Remove reference to customFooter, which no longer exists
Apps/UseUI/dashboard-client.js
Apps/UseUI/dashboard-client.js
/* * * Copyright (C) 2011, The Locker Project * All rights reserved. * * Please see the LICENSE file for more information. * */ var express = require('express'), connect = require('connect'), path = require('path'), async = require('async'), fs = require('fs'), socketio = require('socket.io'), ...
JavaScript
0
@@ -1230,44 +1230,8 @@ rd,%0A - customFooter: customFooter,%0A
3b95b1734cdfa3b7bb5cb38990265dc1db683ab1
Use expect.shift instead of building an array of arguments for expect when delegating to the next assertion.
lib/unexpectedMockCouchdb.js
lib/unexpectedMockCouchdb.js
var BufferedStream = require('bufferedstream'); var createMockCouchAdapter = require('./createMockCouchAdapter'); var http = require('http'); var mockCouch = require('mock-couch-alexjeffburke'); var url = require('url'); function generateCouchdbResponse(databases, req, res) { var responseObject = null; var co...
JavaScript
0
@@ -958,83 +958,88 @@ -var nextAssertionArgs = this.args.slice(1);%0A var args = %5Bsubject +return expect(function () %7B%0A return expect.shift();%0A %7D , 'w @@ -1149,82 +1149,24 @@ %7D -%5D.concat(nextAssertionArgs);%0A%0A return expect.apply(expect, args +...
0529342dadeeaa9de717efd495a81f7c47b50020
Fix popupStyle check
wrappers/map.js
wrappers/map.js
'use strict'; var L = require('../vendor/leaflet.js') require('../vendor/leaflet.markercluster-src.js')(L) var EventEmitter = require('events').EventEmitter var mapTileLayer = require('./tilelayer') var mediator = require('../lib/mediator') var nn = require('nevernull') L.Icon.Default.imagePa...
JavaScript
0.000001
@@ -1321,16 +1321,17 @@ erties)%0A +%0A if ( @@ -1456,24 +1456,25 @@ %7D)%0A %7D%0A +%0A if (conf @@ -1814,15 +1814,8 @@ if ( -typeof conf @@ -1831,44 +1831,8 @@ tyle -(feature.properties) !== 'undefined' ) %7B%0A @@ -2126,24 +2126,25 @@ %7D%0A %7D%0A +%0A if (conf @@ -2153,24 +2153,...
6e84516cafa972981ec1fc7847cbf1fb51809778
bump minimum supported ghost version to 1.0.0-rc.1
lib/utils/resolve-version.js
lib/utils/resolve-version.js
'use strict'; const semver = require('semver'); const Promise = require('bluebird'); const filter = require('lodash/filter'); const includes = require('lodash/includes'); const yarn = require('./yarn'); const errors = require('../errors'); const MIN_RELEASE = '>= 1.0.0-beta.1'; /** * Resolves the ghost vers...
JavaScript
0
@@ -277,12 +277,10 @@ 0.0- -beta +rc .1';
52f072e3e2761a21d28f834bcc00a7437f0f5ebf
Add model.CARD in CardController
js/myapp/card.js
js/myapp/card.js
// ---------------------------------------------------------------- // Card Class class CardModel extends SwitchModel { constructor({ name, lsKeyView, triggerSelector, switchSelector } = {}) { super({ name: name, lsKeyView: lsKeyView, triggerSelector: triggerSelector, s...
JavaScript
0.000001
@@ -1772,24 +1772,52 @@ OAD = null;%0A + this.model.CARD = null;%0A %0A thi @@ -2544,16 +2544,53 @@ = true;%0A + this.model.CARD = _data;%0A
9a4358f6f1726f7834fa009b18ef57c781a5937b
Modify the configuration of fis to remove the useless configurations
fis-conf.js
fis-conf.js
// default settings. fis3 release // Global start fis.match('src/ui-p2p-lending.less', { parser: fis.plugin('less'), rExt: '.css' }) fis.match('src/*.less', { packTo: 'dist/ui-p2p-lending.css' }) // Global end // default media is `dev` // extends GLOBAL config
JavaScript
0.000001
@@ -1,55 +1,4 @@ -// default settings. fis3 release%0A%0A// Global start%0A fis. @@ -80,142 +80,46 @@ css' -%0A%7D)%0A%0Afis.match('src/*.less', %7B%0A packTo: 'dist/ui-p2p-lending.css'%0A%7D)%0A%0A// Global end%0A%0A// default media is %60dev%60%0A%0A// extends GLOBAL config +,%0A release: 'dist/ui-p2p-lending.css...
9698103cfa452b083f035ac63426d1a2525575dc
add copyright comments
fis-page.js
fis-page.js
/* * fis-page * * Licensed under the MIT license. * https://github.com/exp-team/fis-page/blob/master/LICENSE */ 'use strict'; module.exports = function(fis) { //TODO }
JavaScript
0
@@ -11,16 +11,53 @@ page%0A *%0A + * Copyright (c) 2015 Baidu EXP Team%0A * Licen
abded4b08c2b385dc1c187db73b40acf313c5e9d
fix to loading page
www/js/index.js
www/js/index.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
0.000001
@@ -1513,24 +1513,77 @@ ction(id) %7B%0A + $(%22#loadingpage%22).append(%22%3Cdiv%3EDone%3C/div%3E%22);%0A wind
d8ccdfcd4a43df13878e732c04f42fd920bc4d09
use styled-components instead of styled-jsx
src/pages/button.js
src/pages/button.js
import React from 'react'; class ButtonPage extends React.Component { static getInitialProps ({ query: { color, collectiveSlug, verb } }) { return { color, collectiveSlug, verb } } render() { const { color = 'white', collectiveSlug, verb = 'donate' } = this.props; return ( <div> <styl...
JavaScript
0.000193
@@ -24,886 +24,158 @@ t';%0A -%0Aclass ButtonPage extends React.Component %7B%0A static getInitialProps (%7B query: %7B color, collectiveSlug, verb %7D %7D) %7B%0A return %7B color, collectiveSlug, verb %7D%0A %7D%0A%0A render() %7B%0A const %7B color = 'white', collectiveSlug, verb = 'donate' %7D = this.prop...
61fe248104b1623c67c00c3e11e9f7f6d7a6fa29
this ad-hoc log level reading is bollocks
modules/module-operator.js
modules/module-operator.js
// Channel op module var Q = require('q'); var _ = require('underscore'); var logger = new require('toplog')({concern: 'operator'}); exports.type = 'command'; var util = null; exports.listAll = function() { return Object.keys(exports.getHelp()); }; exports.getHelp = function() { return { '*': 'can I use ad...
JavaScript
0.999999
@@ -1,8 +1,9 @@ +2 // Chann @@ -3938,16 +3938,19 @@ = u;%0A%0A + // logger.
e39c79203483bae56b0ece785eb6b03e61d84c1b
add temp constant
index.android.js
index.android.js
var React = require('react-native'); var { requireNativeComponent, PropTypes, NativeModules, View } = React; var ReactNativeCameraModule = NativeModules.ReactCameraModule; var ReactCameraView = requireNativeComponent('ReactCameraView', { name: 'ReactCameraView', propTypes: { ...View.propTypes, ...
JavaScript
0.000009
@@ -1292,16 +1292,40 @@ 'disk',%0A + 'temp': 'temp',%0A
670cd621eee55e914db479de17931e910c0611bd
Update index.js
www/js/index.js
www/js/index.js
//listen for deviceready event and launch onDeviceReady when phonegap is fully running document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { initializeApp(); //launch the initializeApp function } function initializeApp(){ // add a watch for compass. navigator.compas...
JavaScript
0.000002
@@ -362,24 +362,62 @@ sError);%0A%7D%0A%0A +var saturation = 50;%0Avar value = 50;%0A%0A function onC @@ -476,23 +476,21 @@ var -heading +value = headi @@ -516,17 +516,17 @@ toFixed( -0 +2 );%0A v @@ -552,16 +552,35 @@ (heading +, saturation, value );%0A v @@ -697,16 +697,235 @@ sColor;%0A + doc...
55cb8fb6429e444fcf6991631121e573f65cddf2
validate that id must be a hex value
modules/user/view/route.js
modules/user/view/route.js
'use strict'; const handler = require('./handler'); module.exports = [ { method: 'GET', path: '/recipe/manage-users', handler: handler.redirect, config: { description: 'User Management', plugins: { lout: false } } }, ...
JavaScript
0.000011
@@ -45,16 +45,44 @@ ndler'); +%0Aconst Joi = require('joi'); %0A%0Amodule @@ -712,32 +712,158 @@ lout: false%0A + %7D,%0A validate: %7B%0A params: %7B%0A id: Joi.string().hex()%0A %7D%0A %7D%0A
500bacd7a6ce7b00bbf168319edfa0acfeed528c
Add code to send error info from client to kadira server
lib/client/kadira.js
lib/client/kadira.js
Kadira = {}; Kadira.options = __meteor_runtime_config__.kadira; if(Kadira.options && Kadira.options.endpoint) { Kadira.syncedDate = new Ntp(Kadira.options.endpoint); Kadira.syncedDate.sync(); }
JavaScript
0
@@ -193,8 +193,847 @@ nc();%0A%7D%0A +%0A/**%0A * Send error metrics/traces to kadira server%0A * @param %7BObject%7D payload Contains browser info and error traces%0A */%0Afunction sendPayload (payload) %7B%0A var retryCount = 0;%0A var endpoint = Kadira.options.endpoint + '/errors';%0A var retry = new Retry(%7B%...
2026a194d16b6fc2b4a8a61075ce6b4c5f1e109f
rewrite test cases to use `beforeEach`
test/strategy/DebugConfigStrategyTest.js
test/strategy/DebugConfigStrategyTest.js
'use strict'; var common = require('../common'); var assert = common.assert; var strategy = require('../../lib/strategy'); var DebugConfigStrategy = strategy.DebugConfigStrategy; function MockLogger(listener) { this.listener = listener; } MockLogger.prototype.debug = function (message) { this.listener('debug', ...
JavaScript
0
@@ -856,23 +856,34 @@ be(' -when +. process -ing +(config, callback) ', f @@ -903,39 +903,44 @@ -it('should log debug message', +var returnedConfig;%0A%0A beforeEach( func @@ -1011,32 +1011,151 @@ rr, config) %7B%0A + returnedConfig = config;%0A%0A done(err);%0A %7D);%0A %7D);%0A%0...
003b0e721f2c7a181bc3d514848b9e9353a9a5c5
Fix bamboo location.
js/Objects.js
js/Objects.js
var VeggieWar = VeggieWar || {}; VeggieWar.Bamboo = function (game, location) { this.game = game.game; this.veggie = game; this.location = location; this.GROW_SPEED = 2000; this.bamboo = null; }; VeggieWar.Bamboo.prototype = { isOccupied: function() { return this.bamboo != null; ...
JavaScript
0.000002
@@ -940,16 +940,118 @@ %7D%0A%0A + this.bamboo.anchor.setTo(0.5, 0.5);%0A this.bamboo.position.y -= this.bamboo.height / 2;%0A
aa688e6d5d58eb1a5822c02a9289282acbfb1e6a
fix minor buffering issue
js/alexcam.js
js/alexcam.js
/*global $, jQuery, console, LocalMediaStream, MediaStreamRecorder */ var mirror = {}; function playbackVideo(stream) { 'use strict'; var video; video = document.querySelector('video'); if (stream instanceof LocalMediaStream) { video.src = window.URL.createObjectURL(stream); // initial page playback } else { ...
JavaScript
0.000001
@@ -1217,32 +1217,17 @@ Stream, -mirror.delay * 5 +1 00);%0A
5fe9ae344085416fe83759ac5bc929c43e93a80e
implement a js alert if you don't pick a state. closes #423. closes #422
www/js/stack.js
www/js/stack.js
var $welcomeScreen = null; var $welcomeButton = null; var $statePickerScreen = null; var $statePickerSubmitButton = null; var $statePickerForm = null; var $header = null; var $headerControls = null; var $fullScreenButton = null; var stack = []; var nextStack = []; var currentSlide = 0; var isRotating = false; var sta...
JavaScript
0.000022
@@ -3788,24 +3788,113 @@ or').val();%0A +%0A if (!(state)) %7B%0A alert(%22Please pick a state!%22);%0A return false;%0A %7D%0A%0A $.cookie
3d6aaf0e1fc68d17211a82d0f8a2daeba42cae2a
Fix a bug with theme.js
www/js/theme.js
www/js/theme.js
(function () { var c = document.cookie.split(";").map(function (s) { return s.trim(); }); var theme = "/css/themes/slate.css"; for (var i = 0; i < c.length; i++) { if (c[i].indexOf("cytube-theme=") === 0) { theme = c[i].split("=")[1]; break; } } if (theme == null || !theme.match(/^...
JavaScript
0.000012
@@ -332,11 +332,11 @@ es%5C/ -%5Cw+ +.+? .css
6e9f49c8fc4ef2a23fe78b9f66322fabe1b0bc3a
add correct order of nitnem baanies
js/baanies.js
js/baanies.js
module.exports = [ 'Japji' ,'Jaap Sahib' ,'Anand Sahib' ,'Tva Prasad Svaye' ,'Kabyo Bach Baynti Chaupai' ,'Rehiras' ,'Kirtan Sohila' ,'Ardas' ,'Arti' ,'Asa Di Var' ,'Baareh Maahaa' ,'Basant Ki Var' ,'Chandi Di Var' ,'Lawa' ,'Raag Mala' ,'Shabad Hazarai Patsahi 10' ,'Shabad Hazarey' ,...
JavaScript
0.999999
@@ -42,25 +42,8 @@ ib'%0A - ,'Anand Sahib'%0A ,' @@ -91,16 +91,33 @@ haupai'%0A + ,'Anand Sahib'%0A ,'Rehi
25cfd4b07dd543d52a70dfad6b54ebc878edb572
Convert Auth plugin to onCommand
src/plugins/Auth.js
src/plugins/Auth.js
import Plugin from "./../Plugin"; import Util from "./../Util"; import Auth from "./../helpers/Auth"; export default class AuthPlugin extends Plugin { static get plugin() { return { name: "Auth", description: "Plugin to handle authentication", help: "", vis...
JavaScript
0.999247
@@ -420,16 +420,17 @@ ext( +%7B message, rep @@ -425,16 +425,32 @@ message, + command, args%7D, reply) @@ -529,25 +529,24 @@ hat.id;%0A -%0A if (mess @@ -541,39 +541,82 @@ -if (message.text === +let targetId = args%5B0%5D;%0A%0A switch (command) %7B%0A case %22 -/ modlist%22 ...
7ab812289206f994448522f733b6af5a0c679a14
use forEach vs for loop
astrology.js
astrology.js
#!/usr/bin/env node var github = require('octonode'); var client = github.client(process.argv[2]); var ghme = client.me(); var ghsearch = client.search(); var repository = require('./repository.json'); if(process.argv.length < 3) { return console.log('Please pass access token in argument'); } for(var i = 0; i < re...
JavaScript
0
@@ -296,49 +296,40 @@ %0A%7D%0A%0A -for(var i = 0; i %3C repository.length; i++ +repository.forEach(function(repo ) %7B%0A @@ -372,17 +372,8 @@ repo -sitory%5Bi%5D ,%0A @@ -564,12 +564,13 @@ %7D%0A %7D) -; %0A%7D +); %0A
a826710b9c2edc2fd896614ae32b61c956f2278b
rename pixelHeight and pixelWidth to height and width
libs/ktx2image.js
libs/ktx2image.js
const VERSION = [ 0xAB, 0x4B, 0x54, 0x58, 0x20, 0x32, 0x30, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A ]; const VERSION_OFFSET = 0; const VERSION_LENGTH = VERSION.length; const HEADER_OFFSET = VERSION_OFFSET + VERSION_LENGTH; const HEADER_LENGTH = 9 * 4; // 9 uint32s const INDEX_OFFSET = HEADER_OFFSET + HEADER_LENGTH; const INDEX_LE...
JavaScript
0.999849
@@ -524,30 +524,25 @@ this. -pixelW +w idth = 0;%0A @@ -544,38 +544,33 @@ 0;%0A this. -pixelH +h eight = 0;%0A @@ -2242,30 +2242,25 @@ this. -pixelW +w idth = getNe @@ -2274,30 +2274,25 @@ this. -pixelH +h eight = getN @@ -3864,14 +3864,9 @@ his. -pixelW +w idth @@ -3927,14 ...
b0a04f0b605c2df741c981aa443ad989e223dd22
DEbug stuff
gameCode.js
gameCode.js
'use strict'; const mongoURI = process.env.MONGODB_URI; var fs = require('fs'), readline = require('readline'), MongoClient = require('mongodb').MongoClient, assert = require('assert'), dict = "dict", codeCounter = "codeCounter"; function init() { MongoClient.connect(mongoURI, function(err, db) { if (err) { ...
JavaScript
0
@@ -2795,17 +2795,17 @@ .find(%7B%22 -G +g ameCode%22 @@ -2964,19 +2964,16 @@ %09if (res -%5B0%5D .length @@ -3012,24 +3012,75 @@ nd%22;%0A%09%09%09%09%09%7D%0A +%09%09%09%09%09//Check game is init or not and then do stuff%0A %09%09%09%09%09return;
709dd04d8395d7c6de39f653cec9e01717c24edf
Add comments and reformat coding style
src/qUnitScraper.js
src/qUnitScraper.js
var qUnitScraper = { init: function() { // validate page here var failedMessages = this._readResults(); console.log( failedMessages ); }, _readResults: function( ) { var failedModules = jQuery("#qunit-tests .fail[id^=qunit-test-output]"); var failedMessages =...
JavaScript
0
@@ -1,182 +1,902 @@ -var qUnitScraper = %7B%0A init: function() %7B%0A // validate page here%0A %0A var failedMessages = this._readResults();%0A console.log( failedMessages );%0A %7D, +/**%0A * qUnitScraper object%0A */%0Avar qUnitScraper = %7B%0A /**%0A * Start here!%0A * T...
7d66838fe3137ca120ce4f731c8a293cfcf0b949
Fix some brokenness in the block menu
autoinput.js
autoinput.js
import {Pos} from "../model" import {defineOption} from "../edit" import {Rule, addInputRules, removeInputRules} from "./inputrules" defineOption("autoInput", false, function(pm, val, old) { if (val && !old) addInputRules(pm, rules) else if (!val && old) removeInputRules(pm, rules) }) export var rules = [ new R...
JavaScript
0.000102
@@ -1777,16 +1777,21 @@ m.tr.set +Block Type(pos
08722e7a74a5e6da91e6978f920d262ce9d2c668
Fix query processing
src/rails-ranger.js
src/rails-ranger.js
import Axios from 'axios' class RailsRanger { constructor (configs = {}) { // Falls back to Axios configurations this.client = Axios.create(configs) } // // Methods // get (path, params) { // This will translate '/users/:id' to '/users/1' let prepared = prepareArguments(path, params) /...
JavaScript
0.000321
@@ -2070,32 +2070,37 @@ nction (path + = '' , params ) %7B%0A let pr @@ -2079,32 +2079,37 @@ ath = '', params + = %7B%7D ) %7B%0A let proces @@ -2122,23 +2122,12 @@ h = -deepClone( path -) %0A l
56bc52e0b9781afe327d06f5d5cfc1a65f5b1f76
support class prop
src/react/styled.js
src/react/styled.js
/* @flow */ const React = require('react'); // eslint-disable-line import/no-extraneous-dependencies /* :: type Options = { name: string, class: string, vars?: { [string]: [string | number | ((props: *) => string | number), string | void] } } */ function styled(tag /* : React.ComponentType<*> | string */) { ...
JavaScript
0
@@ -94,16 +94,52 @@ ndencies +%0Aconst %7B cx %7D = require('../index'); %0A%0A/* ::%0A @@ -850,16 +850,34 @@ t = tag, + class: className, ...rest @@ -892,158 +892,85 @@ ps;%0A +%0A -const next = Object.assign(rest, %7B%0A ref,%0A className: props.className%0A ? %60$%7Boptions.class...
0b6eec7be285779554a67485a66af0c5b63f6651
Make swiper update for virtual mode React.StrictMode compatible
src/react/swiper.js
src/react/swiper.js
import React, { useRef, useState, useEffect, forwardRef } from 'react'; import { getParams } from './get-params'; import { initSwiper, mountSwiper } from './init-swiper'; import { needsScrollbar, needsNavigation, needsPagination, uniqueClasses, extend } from './utils'; import { renderLoop, calcLoopedSlides } from './lo...
JavaScript
0
@@ -1521,233 +1521,8 @@ );%0A%0A - const changedParams = getChangedParams(%0A passedParams,%0A oldPassedParamsRef.current,%0A slides,%0A oldSlides.current,%0A );%0A%0A oldPassedParamsRef.current = passedParams;%0A oldSlides.current = slides;%0A%0A @@ -3815,32 +3815,271 @@ tEffect...
d7e7f526c5b9cc1c4c979d9e1c4091fd7cb8ceb1
add plugin initializion
lib/doc-processor.js
lib/doc-processor.js
var _ = require('lodash'); var log = require('winston'); var extractTagsFactory = require('./utils/extract-tags'); /** * Build a function to process the documents by running the given plugins * @param {object} tagParser The thing that will parse the tags from the documents * @param {object} tagDefs The definiti...
JavaScript
0
@@ -53,66 +53,8 @@ n'); -%0Avar extractTagsFactory = require('./utils/extract-tags'); %0A%0A/* @@ -495,98 +495,59 @@ ory( -tagParser, tagDefs, plugins) %7B%0A%0A var extractTags = extractTagsFactory(tagParser, tagDefs) +config) %7B%0A%0A var plugins = config.processor.plugins ;%0A%0A @@ -710,22 +710,16 @@ ) %7B...
30b1b73bf79a0f2ad6d010410435fc6d9a2697d8
Change bubble messages and emojis
js/bubbles.js
js/bubbles.js
/* * This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/. * Copyright (c) 2016 Ivan Aracki */ window.onload = function() { var messagesEl = document.querySelector('.messages')...
JavaScript
0.000001
@@ -651,16 +651,18 @@ nice day + %F0%9F%8C%85 ';%0A i @@ -722,16 +722,18 @@ evening + %F0%9F%8C%87 ';%0A i @@ -790,16 +790,18 @@ od night + %F0%9F%8C%8C ';%0A %7D;%0A @@ -966,10 +966,8 @@ ' -%E2%9B%B5 I.A. @@ -1945,25 +1945,25 @@ var getDimen -t +s ions = funct @@ -2674,17 +2674,17 @@ getDimen -t...
94e97712b47306dd72e1ff814a8708a080722be6
Fix City.
js/capture.js
js/capture.js
var secs_to_capture = 3; var makeAnimation = null; var captureFrame = null; var CAPTURE = window.location.href.indexOf('capture') != -1; if (CAPTURE) { // Load jquery, we only need it for AJAX requests for capturing PNGs. var tag = document.createElement('script'); tag.src = "https://code.jquery.com/jquery-2.1.4...
JavaScript
0
@@ -44,16 +44,29 @@ = null;%0A +var $ = null; %0Avar cap
6c50648406daaa4fb1816c12c17f1cc4bf4c0bf7
update to version 1.3.0
lib/executeScalar.js
lib/executeScalar.js
/** * Created by nuintun on 2014/4/2. */ 'use strict'; var util = require('util'), proxy = require('./proxy'), eventemitter = require('events').EventEmitter; function ExecuteScalar(connection, sql, scalar,encoding){ eventemitter.call(this); this.encoding = encoding; this.params = { connection: conne...
JavaScript
0
@@ -30,16 +30,17 @@ 2014/4/2 +0 .%0A */%0A%0A' @@ -208,16 +208,17 @@ scalar, + encoding
11a2aa17b0c5ae6cde5e901a15fb15d90c89d1f1
Update responseXlsx.js
src/responseXlsx.js
src/responseXlsx.js
import Promise from 'bluebird' import httpRequest from 'request' import toArray from 'stream-to-array' const toArrayAsync = Promise.promisify(toArray) const preview = (request, response, options) => { return new Promise((resolve, reject) => { const req = httpRequest.post(options.publicUriForPreview || 'http://js...
JavaScript
0
@@ -1338,17 +1338,16 @@ ml.sheet -f '%0A resp @@ -1563,12 +1563,13 @@ (buf)%0A %7D)%0A%7D +%0A
b4cfc1aaa437d0ece34ecbbf7597d50cf2dfe373
Update gruppoc.js
js/gruppoc.js
js/gruppoc.js
gruppo.innerHTML = "<p><iframe width="100%" height="400" src="https://www.youtube.com/embed/hJdG664iams" frameborder="0" allowfullscreen=""></iframe></p>";
JavaScript
0.000001
@@ -18,11 +18,8 @@ = %22%3C -p%3E%3C ifra @@ -31,14 +31,13 @@ dth= -%22100%25%22 +'560' hei @@ -45,18 +45,18 @@ ht=%22 -400 +315 %22 src= -%22 +' http @@ -86,19 +86,19 @@ ed/h -JdG664iams%22 +fRKsYbt4S0' fra @@ -110,11 +110,11 @@ der= -%220%22 +'0' all @@ -129,11 +129,8 @@ reen -=%22%22 %3E%3C/i @@ -139...
c14c9321a5d7b0b02c67bf866d1b31cd47f8d998
Use node's crypto when available
git-sha1.js
git-sha1.js
"use strict"; // Input chunks must be either arrays of bytes or "raw" encoded strings module.exports = function sha1(buffer) { if (buffer === undefined) return create(); var shasum = create(); shasum.update(buffer); return shasum.digest(); }; // A streaming interface for when nothing is passed in. function cr...
JavaScript
0
@@ -12,300 +12,863 @@ %22;%0A%0A -// Input chunks must be either arrays of bytes or %22raw%22 encoded strings%0Amodule.exports = function sha1(buffer) %7B%0A if (buffer === undefined) return create();%0A var shasum = create();%0A shasum.update(buffer);%0A return shasum.digest();%0A%7D;%0A%0A// A streaming interfac...
dc52dff8b80e6f5e2718296a09a16d0b268c6502
Repair the navigate function
src/router.react.js
src/router.react.js
import ReactDOM from 'react-dom'; /** * React Router, done slim */ class Router { /** * Binds the event that listens for URL changes */ constructor(viewport) { this.routes = []; this.defineRoutes(); this.viewport = viewport; } /** * Defines the default rout...
JavaScript
0.000003
@@ -2182,61 +2182,8 @@ ()); -%0A var targetDOM = this.getApplicationTarget(); %0A%0A
4e285d9d4c0c01c9701498aa9dfd38afe0fa318c
Fix unexpected bracket
src/routes/pizza.js
src/routes/pizza.js
const express = require('express'); const router = express.Router(); const Pizza = require('../models/pizzas'); const debug = require('debug')('route:pizza'); const responder = require('../modules/responder'); router.get('/pizza', (req, res, next) => { let {id} = req.query; let query = {}; let labels = {}; if ...
JavaScript
0.000005
@@ -318,18 +318,16 @@ if (!id) - %7B %0A lab
0e6e9fb8d6c10f76119798df182199e9ac3eed72
Update compat.js (#305)
src/rules/compat.js
src/rules/compat.js
// @flow import memoize from 'lodash.memoize'; import { lintCallExpression, lintMemberExpression, lintNewExpression } from '../Lint'; import DetermineTargetsFromConfig, { Versioning } from '../Versioning'; import type { ESLintNode, Node, BrowserListConfig } from '../LintTypes'; import { rules } from '../providers...
JavaScript
0.000001
@@ -2447,22 +2447,22 @@ -fixable: 'code +type: 'problem ',%0A
398dd5f2e7949066800b0dae2b874472e2ffafe4
Bump Version
js/osg/osg.js
js/osg/osg.js
/** -*- compile-command: "jslint-cli osg.js" -*- */ var osg = {}; osg.version = '0.0.7'; osg.copyright = 'Cedric Pinson - cedric.pinson@plopbyte.com'; osg.instance = 0; osg.version = 0; osg.log = function (str) { if (window.console !== undefined) { window.console.log(str); } }; osg.info = function (str...
JavaScript
0
@@ -83,9 +83,9 @@ 0.0. -7 +8 ';%0Ao
1823d644979590fc172eb7b777d8c0786b52626d
Update the converter
src/sass-to-scss.js
src/sass-to-scss.js
import _ from 'lodash'; import p from 'prelude-ls'; var mixin_alias_regex = /(^\s*)=(\s*)/; var include_alias_regex = /(^\s*)\+(\s*)/; var warnOnEmptyFile = function (path) { console.log('Destination (' + path + ') not written because compiled files were empty.'); }; var replaceIncludeAlias = function(line){ ret...
JavaScript
0.000002
@@ -42,16 +42,26 @@ elude-ls +/lib/index ';%0A%0Avar
646d18032ed9a8ce8771c8ad426a3fa160ff7140
changed pi_times_two to tau
js/qjnyyap.js
js/qjnyyap.js
function draw(){ buffer.clearRect( 0, 0, width, height ); buffer.save(); buffer.translate( x, y ); for(var vertex in vertices){ buffer.fillStyle = vertices[vertex]['color']; buffer.fillRect( vertices[vertex]['x'], vertice...
JavaScript
0.998693
@@ -785,28 +785,19 @@ on'%5D %3E= -pi_times_two +tau )%7B%0A @@ -835,28 +835,19 @@ on'%5D -= -pi_times_two +tau ;%0A @@ -936,28 +936,19 @@ on'%5D += -pi_times_two +tau ;%0A @@ -1675,60 +1675,51 @@ var -pi_times_two = Math.PI * 2;%0Avar rotation_rate = .005 +rotation_rate = .005;%0Avar tau = ...
b153a1a269b12dc2c53f97265c25b3006b30b57e
refactor game
src/scripts/game.js
src/scripts/game.js
// Description: // 遊ぶ // Commands: // attack {user} - attack // cure {user} - cure // raise {user} - ふっかつ // "use strict" const Cron = require("cron").CronJob; const NodeQuest = require("node-quest"); const UserStates = NodeQuest.UserStates; const Game = NodeQuest.Game; const SpellRepository = requ...
JavaScript
0.000019
@@ -1578,62 +1578,8 @@ %7B%7D); -%0A const shakai = monsterRepository.getByName(%22%E7%A4%BE%E4%BC%9A%22); %0A%0A @@ -3194,32 +3194,90 @@ .*/, (res) =%3E %7B%0A + const shakai = monsterRepository.getByName(%22%E7%A4%BE%E4%BC%9A%22);%0A if ( sha @@ -3285,32 +3285,32 @@ ai === null ) %7B%0A - ...
1ee0865acdec369267b64faa3b39c784f51ebf1d
Allow open rowlink with ctrl/middle-mouse click (fixes #422)
js/rowlink.js
js/rowlink.js
/* ============================================================ * Bootstrap: rowlink.js v3.1.3 * http://jasny.github.io/bootstrap/javascript/#rowlink * ============================================================ * Copyright 2012-2014 Arnold Daniels * * Licensed under the Apache License, Version 2.0 (the "License...
JavaScript
0
@@ -1075,16 +1075,35 @@ .rowlink + mouseup.bs.rowlink ', 'td:n @@ -1236,16 +1236,25 @@ nction(e +, ctrlKey ) %7B%0A @@ -1328,16 +1328,17 @@ get)%5B0%5D%0A +%0A if ( @@ -1375,42 +1375,186 @@ urn%0A -%0A e.preventDefault();%0A%0A if ( + if (e.type === 'mouseup' && e.which !== 2) return%0A%0A e....
e689162e6e7c582b280e3441554759e30f8432f9
Fix import paths.
src/scripts/main.js
src/scripts/main.js
import Boot from './states/Boot'; import Preload from './states/Preload'; import Logo from './states/Logo'; import Title from './states/Title'; import StageSelect from './states/StageSelect'; import CreditsAI from './states/CreditsAI'; import CreditsRB from './states/CreditsRB'; import Game ...
JavaScript
0
@@ -14,26 +14,24 @@ from ' -./ states/Boot' @@ -53,26 +53,24 @@ d from ' -./ states/Prelo @@ -95,26 +95,24 @@ from ' -./ states/Logo' @@ -134,26 +134,24 @@ from ' -./ states/Title @@ -174,26 +174,24 @@ elect from ' -./ states/Stage @@ -216,34 +216,32 @@ editsAI from ' -./ states/Cred...
c790af12b667d4dc7656703b5d32bb0896aa4da9
Remove defaults on main query builder call
src/search/index.js
src/search/index.js
import QueryBuilder from './query-builder' import * as index from './search-index' import mapResultsToPouchDocs from './map-search-to-pouch' /** * Results should always contain a `document` key containing the indexed doc. * In some special cases (if something is being removed, but t hasn't finished yet), * this cou...
JavaScript
0
@@ -797,49 +797,9 @@ uery - %7C%7C '*') // Search by wildcard by default +) %0A @@ -878,21 +878,8 @@ skip - %7C%7C undefined )%0A @@ -900,14 +900,8 @@ imit - %7C%7C 10 )%0A
c0f132ff1554e7359bf02c1c81d98f2d9e273896
Update UDPefef
benchmark.js
benchmark.js
// /** * Created by tungtouch on 2/9/15. */ var cluster = require('cluster'); var numCPUs = require('os').cpus().length; var colors = require('colors'); 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"...
JavaScript
0
@@ -1223,18 +1223,16 @@ -// process.
3b7551dff9449a7729c0262b065b0a6120910a37
read only mode
js/toolbar.js
js/toolbar.js
define(['jquery','underscore','events','mustache','mybackbone','conf', "text!../templates/toolbar.html", "qtip", "editor"], function ($,_,events,mustache,mybackbone,conf,toolbartpl, qtip, ed) { "use strict"; // handle keyboard shortcuts also var keyboardShortcuts = {}; var widgets = {}; va...
JavaScript
0.000001
@@ -2366,18 +2366,16 @@ donly);%0A -%0A%0A @@ -2376,24 +2376,25 @@ %7D) +; %0A %7D%0A v @@ -2624,32 +2624,52 @@ d editor render%0A + ping();%0A this @@ -2837,25 +2837,24 @@ cut,this));%0A -%0A
5b262c2a6f44cf5932b18db007becd12293f93f0
Change server listen port
src/server/index.js
src/server/index.js
import "babel-polyfill"; import InfernoServer from "inferno-server"; import createMemoryHistory from "history/createMemoryHistory"; import favicon from "koa-favicon"; import handlebars from "koa-handlebars"; import koa from "koa"; import mount from "koa-mount"; import route from "koa-route"; import serve from "koa-sta...
JavaScript
0.000001
@@ -1467,12 +1467,12 @@ ten( -3000 +9428 );%0A%7D
ddc5af1ef249f50ebfd0a6eeab36eb0980981839
add multi view handler supports
src/server/index.js
src/server/index.js
import Koa from 'koa'; import serve from 'koa-static'; import dotenv from 'dotenv'; import path from 'path'; import winston from 'winston'; import config from './config'; import bootstrap from './apps'; dotenv.config(); const server = new Koa(); winston.level = config.debug ? 'debug' : 'info'; if (config.env === 'st...
JavaScript
0
@@ -52,37 +52,8 @@ c';%0A -import dotenv from 'dotenv';%0A impo @@ -173,25 +173,8 @@ ';%0A%0A -dotenv.config();%0A cons
dcf3b88a466c82c06715badb541e09f3c9d64f1b
Add single player wrapper div
src/singlePlayer.js
src/singlePlayer.js
import React, { Component } from 'react' import { propTypes, defaultProps } from './props' import Player from './Player' import { isEqual, getConfig } from './utils' export default function createSinglePlayer (activePlayer) { return class SinglePlayer extends Component { static displayName = `${activePlayer.dis...
JavaScript
0
@@ -71,100 +71,179 @@ rops - %7D from './props'%0Aimport Player from './Player'%0Aimport %7B isEqual, getConfig %7D from './utils' +, DEPRECATED_CONFIG_PROPS %7D from './props'%0Aimport %7B getConfig, omit, isEqual %7D from './utils'%0Aimport Player from './Player'%0A%0Aconst SUPPORTED_PROPS = Object.keys(propTypes) ...
618fb80a5efd8d16c57cf916d07a112ab9de4742
tidy up benchmark
benchmark.js
benchmark.js
require('web-audio-test-api'); /* global WebAudioTestAPI*/ WebAudioTestAPI.setState('AudioContext#createStereoPanner', 'enabled'); const Benchmark = require('benchmark'); const PublishedVirtualAudioGraph = require('virtual-audio-graph'); const DevelopmentVirtualAudioGraph = require('./dist/index'); const pingPongDelayP...
JavaScript
0.000001
@@ -2404,25 +2404,13 @@ h', -function () %7B%0A +() =%3E run @@ -2452,29 +2452,24 @@ udioGraph()) -;%0A %7D )%0A .add('De @@ -2497,32 +2497,21 @@ Graph', -function() %7B%0A +() =%3E runBenc @@ -2555,21 +2555,16 @@ Graph()) -;%0A %7D )%0A .on( @@ -2576,29 +2576,16 @@ e', -function(event) %7B%0A ...
8e05651d55171e48caf2cf77922a9e66f37b82e9
Fix weird movement
src/sprites/Ship.js
src/sprites/Ship.js
import Phaser from 'phaser' export default class extends Phaser.Sprite { constructor ({ game, x, y, asset }) { super(game, x, y, asset) this.anchor.setTo(0.5) // Set up the physics for this ship. game.physics.enable(this, Phaser.Physics.ARCADE) this.body.drag.set(100) this.body.maxVelocity.s...
JavaScript
0.000017
@@ -22,16 +22,43 @@ haser'%0A%0A +const movementSpeed = 500%0A%0A export d @@ -343,19 +343,29 @@ ity.set( -200 +movementSpeed )%0A %7D%0A%0A @@ -481,12 +481,21 @@ on, -2000 +movementSpeed , th
61b6b65a8aff238fc4b5ed887ba005e3500d7f5c
fix config heroku file
src/startup/boot.js
src/startup/boot.js
let fs = require("fs"); let https = require("https"); let sequelize = require("./start-sequelize"); let logger = require('../logger.js'); module.exports = app => { if (process.env.NODE_ENV !== "test") { const configuration = app.configuration.server; app.sequelize.sync().done(() => { const port = confi...
JavaScript
0
@@ -559,14 +559,8 @@ in -$%7Bip%7D: $%7Bpo
66c40eaa8b4301902ddd0bd7a491ece90457d2af
Fix octal literal error
bin/build.js
bin/build.js
#!/usr/bin/env node --use_strict const broccoli = require('broccoli') const ncp = require('ncp') const path = require('path') const chalk = require('chalk') const program = require('commander') const utils = require('../lib/utils') program .option('-w, --watch', 'Rebuild site if files change') .parse(process.arg...
JavaScript
0.999187
@@ -19,18 +19,15 @@ e -- -use_strict +harmony %0A%0Aco
49b02a4b7155057a5d7ca9a6b8017ab0c94b6c8b
update focus style
src/style/select.js
src/style/select.js
"use strict"; var selectStyle = { style: { borderBottom: '1px #ccc solid', boxSizing: 'border-box', cursor: 'pointer', height: 34, padding: '7px 0 5px 0', position: 'relative' }, focusStyle: { borderBottom: '1px #53C7F2 solid', boxSizing: 'border-box', cursor: 'pointer', ...
JavaScript
0.000002
@@ -67,18 +67,18 @@ 1px -#ccc solid + #CCC ',%0A @@ -246,21 +246,21 @@ 1px -#53C7F2 solid +solid #6EB8D4 ',%0A @@ -428,21 +428,21 @@ 1px +solid #92D6EF - solid ',%0A
57bc8c1f631f914c12534ccc91c61976b1deb643
fix hook registration #9
src/trigger/Hook.js
src/trigger/Hook.js
const compare = function (a, b) { if (a.name < b.name) return -1; if (a.name > b.name) return 1; return 0; } const types = [ { id: '/hubs/hooks/hub_incoming_message_hook', name: '/hubs/hooks/hub_incoming_message_hook' } , { id: '/hubs/hooks/hub_outgoing_m...
JavaScript
0
@@ -1943,22 +1943,16 @@ 3%5D, -scriptFunction +callback );%0A%7D @@ -2158,8 +2158,9 @@ iption%0A%7D +%0A
93537c78eb1b1ccc033409b558e3057b79e978b3
fix detect orientation bug, close #91
src/util/browser.js
src/util/browser.js
/** * Hilo * Copyright 2015 alibaba.com * Licensed under the MIT License */ /** * @language=en * @class Browser feature set * @static * @module hilo/util/browser */ /** * @language=zh * @class 浏览器特性集合 * @static * @module hilo/util/browser */ var browser = (function(){ var ua = navigator.userAgent; ...
JavaScript
0
@@ -2124,32 +2124,63 @@ entation' in win + %7C%7C 'orientation' in win.screen ,%0A%0A /**%0A
9bfac6be01684cc9335ee6d7312232eaa120c634
Remove domain name, that isnt necessary
static/js/common.js
static/js/common.js
/*! * Author: Pierre-Henry Soria <hello@ph7cms.com> * Copyright: (c) 2012-2017, Pierre-Henry Soria. All Rights Reserved. * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. */ /** * Allows you to include a JavaScript file in an HTML page. * * ...
JavaScript
0
@@ -1963,43 +1963,8 @@ 1 == - href.indexOf('hizup.com') && -1 == hre
342b0bf2df6819c7b08ac9990044a689d96f2313
disable archive post-processing
tasks/after-pack.js
tasks/after-pack.js
const handlers = [ require('./after-pack/register-archive-hook'), require('./after-pack/add-version'), require('./after-pack/add-platform-files') ]; async function afterPack(context) { return await handlers.map(h => h(context)); } module.exports = afterPack;
JavaScript
0.000001
@@ -16,57 +16,8 @@ = %5B%0A - require('./after-pack/register-archive-hook'),%0A re
8b822368f2cbb981a69d356dd978bf930a27eff5
Use winningCombinations for calculating current game result (score)
client/helpers.js
client/helpers.js
const getRandomEl = (arr) => ( arr[Math.floor(Math.random() * arr.length)] ); export const flipPlayer = (player) => { return player === 'o' ? 'x' : 'o'; } export const isFieldFilled = (prevValue) => { return typeof prevValue !== 'undefined' && prevValue !== ''; } export const shouldComputerPlay = (nextPlayer, pla...
JavaScript
0
@@ -488,34 +488,24 @@ const check -Horizontal Result = (ch @@ -524,306 +524,97 @@ %7B%0A%09 -for (let i = 0; i %3C 3; i++) %7B%0A%09%09let row = checkboard.slice(i * 3, i * 3 + 3);%0A%09%09if(%0A%09%09%09row%5B0%5D === row%5B1%5D &&%0A%09%09%09row%5B0%5D === row%5B2%5D &&%0A%09%09%09row%5B0%5D !== ''%0A%09%09)%0A%...
71bdf6ed1d0bb316448145bb7df297d3ccf738eb
enforce service request ticket number counter prefix rev.2
app/models/counter_model.js
app/models/counter_model.js
'use strict'; /** * @module Counter * @name Counter * @description A record of service request(issue) ticket number. * * Used to generate sequencial ticket number for * service request(issue) based on jurisdiction, service and year. * * The format for the ticket number ...
JavaScript
0.000002
@@ -5687,18 +5687,18 @@ ction%5D.j -i o +i n(%0A
bf9975c7d3dbbb5d423f3ce42924a89e38847144
Update libs.js
eln/libs.js
eln/libs.js
"use strict"; define([ 'https://www.lactame.com/lib/openchemlib-extended/1.11.0/openchemlib-extended.js', 'https://www.lactame.com/lib/sdv/0.1.16/sdv.js', 'https://www.lactame.com/lib/chemcalc-extended/1.27.0/chemcalc-extended.js', 'https://www.lactame.com/lib/eln-plugin/0.0.2/eln-plugin.js', 'htt...
JavaScript
0
@@ -147,17 +147,17 @@ dv/0.1.1 -6 +7 /sdv.js'
596af700a604c89978caf393703994a5b8aa00a0
Update Learnergroup Summary test
tests/integration/components/learnergroup-summary-test.js
tests/integration/components/learnergroup-summary-test.js
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, click, fillIn } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; module('Integration | Component | learnergroup s...
JavaScript
0
@@ -2083,37 +2083,34 @@ Location = ' -.learnergroup +%5Bdata-test -overview .d @@ -2098,32 +2098,33 @@ ta-test-overview +%5D .defaultlocatio @@ -2168,37 +2168,34 @@ tructors = ' -.learnergroup +%5Bdata-test -overview .d @@ -2183,32 +2183,33 @@ ta-test-overview +%5D .defaultinstruc @@ -2241,37 +2241,34 @@ rse...
d52055429b9aa7c698a490e6c772d66fc0a21be4
fix rewing logic
lib/timelines/timelines.js
lib/timelines/timelines.js
'use strict'; var EventHandler = require('./../utilities/event-handler'); var converter = require('best-timelineUI').converter; var timelineHelper = require('./../helpers/helpers').timeline; function Timelines(timelineGroups, states) { EventHandler.apply(this); this._timelineGroups = timelineGroups || {}; ...
JavaScript
0.000057
@@ -2539,70 +2539,8 @@ ) %7B%0A - var time = this._timelineGroups%5Bthis._currName%5D.duration;%0A @@ -2556,23 +2556,16 @@ lapsed = - time - this._s
ffd8b19bca3235c4b65b754c03bfc7d5f58b3c57
Fix for disabled checkboxes
FormFactory.Templates/Scripts/FormFactory/FormFactory.js
FormFactory.Templates/Scripts/FormFactory/FormFactory.js
//** Property.System.Object **// var ff = { behaviours: {}, transforms: {} }; $(document).on("focus", ".ff-behaviour", function () { var behaviour = $(this).data("ff-behaviour"); if (ff.behaviours[behaviour]) { ff.behaviours[behaviour](this); } }); $(document).on("change", ".ff-choices inp...
JavaScript
0
@@ -6408,20 +6408,17 @@ n(%22click -%22, %22 +, keydown%22 @@ -6507,96 +6507,5 @@ %7D);%0A -$(document).on(%22click%22, %22select%22, function () %7B%0A return !($(this).attr(%22readonly%22));%0A%7D);%0A +
16d183e67c3eb2710a6e90243372516b7a21881b
add ability to animate multiple behaviors on a single timeline
lib/timelines/timelines.js
lib/timelines/timelines.js
'use strict'; var EventHandler = require('./../utilities/event-handler'); var converter = require('framework-utilities/converter'); var toSalty = converter.sweetToSalty; var piecewise = require('./../helpers/helpers').piecewise; function Timelines(timelineGroups, states) { EventHandler.apply(this); this._ti...
JavaScript
0.000005
@@ -770,32 +770,36 @@ or (var timeline +Name in this._timeli @@ -867,16 +867,20 @@ timeline +Name %5D;%0A%0A @@ -909,16 +909,20 @@ timeline +Name + 'Time @@ -976,24 +976,25 @@ Group);%0A +%0A var time @@ -989,63 +989,111 @@ -var timeline = saltyTimeline%5BObject.keys(saltyTimeline) +for (v...
bb03359cfccfa8a1300435339ef91911e4b611af
Use unix fs-watch for OSX because of problems with OSX Lion
lib/fs-watch-tree.js
lib/fs-watch-tree.js
module.exports = process.platform === "linux" ? require("./watch-tree-unix") : require("./watch-tree-generic");
JavaScript
0.000001
@@ -38,16 +38,49 @@ %22linux%22 + %7C%7C process.platform === %22darwin%22 ?%0A r
a151b7b9ae44d977f17d4b1bc2936b8d6d071ce4
Fix list item styles
thingmenn-frontend/src/widgets/list-item-content/index.js
thingmenn-frontend/src/widgets/list-item-content/index.js
import React from 'react' import './styles.css' const ListItemContent = ({ title, description, }) => { return ( <div className="ListItemContent"> <h2 className="ListItemContent-name">{title}</h2> {description ? <p className="ListItemContent-party">{description}</p> : null} </d...
JavaScript
0.000001
@@ -191,12 +191,15 @@ ent- -name +content %22%3E%7Bt @@ -272,13 +272,19 @@ ent- -party +description %22%3E%7Bd
957a55c9276191a1a50ec621084141c5735ebb25
Fix for geolocation.load
client/js/maps.js
client/js/maps.js
if (Meteor.isClient) { Meteor.startup(function() { GoogleMaps.load(); Geolocation.load(); Tracker.autorun(function () { if (Geolocation.error() !== null) { var center = new google.maps.LatLng(Geolocation.latLng().lat, Geolocation.latLng().lng); GoogleMaps.maps.gmap.instance.panTo(cen...
JavaScript
0.000002
@@ -73,32 +73,8 @@ ();%0A - Geolocation.load();%0A
97062b82fbdefc04fc4c9fede9c68646d1dcd3aa
fix typo: docs mention Observable#forEach twice
lib/typedefs/Observable.js
lib/typedefs/Observable.js
/** * @constructor Observable */ /** * The forEach method is a synonym for {@link Observable.prototype.subscribe} and triggers the execution of the Observable, causing the values within to be pushed to a callback. An Observable is like a pipe of water that is closed. When forEach is called, we open the valve and ...
JavaScript
0.000015
@@ -1406,39 +1406,41 @@ bject.%0A * @name -forEach +subscribe %0A * @memberof Ob
aa1a17d8bc79f8fca64fc9e1ca52f8beddd477c1
Remove html reporters
karma.conf.js
karma.conf.js
// Karma configuration // Generated on Fri Feb 12 2016 17:46:34 GMT+0900 (東京 (標準時)) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyw...
JavaScript
0.000003
@@ -948,16 +948,8 @@ pec' -, 'html' %5D,%0A%0A @@ -1617,19 +1617,20 @@ gleRun: -tru +fals e,%0A%0A @@ -1856,11 +1856,86 @@ %7D%0A %7D) +;%0A if(process.env.TRAVIS)%7B%0A config.browsers = %5B'Chrome_travis_ci'%5D;%0A %7D %0A%7D%0A
3967dcf899472af97570cf1d5b0b1e001479bebf
set default browser to instead of
karma.conf.js
karma.conf.js
// This setup is based on Julie Ralph's `ng2-test-seed` project. // See https://github.com/juliemr/ng2-test-seed // Hopefully Angular2 and Karma integration will be more seamless in the future. // Unit tests are currently only implemented to run again the development target. module.exports = function(config) { config...
JavaScript
0.000001
@@ -1775,30 +1775,263 @@ %0A%0A%09%09 -browsers: %5B'PhantomJS2 +/**%0A%09%09 * @param browsers %7BArray%7D List of browsers for Karma to run the tests against.%0A%09%09 * We can use %60Chrome%60 or %60PhantomJS2%60 out-of-the-box here.%0A%09%09 * Unfortunately %60PhantomJS2%60 support is limited for Linux users or Tr...
f95880580820d17c62d41834d2a9a714013813fa
fix issue #143
lib/utils/cache-browser.js
lib/utils/cache-browser.js
import 'promise-polyfill/src/polyfill'; import 'whatwg-fetch'; import md5 from './md5'; import configDefault from '../config-default.js'; if (typeof self === 'undefined') { throw 'IndexedDB is available only in Browser ENV'; } const indexedDBAvailable = 'indexedDB' in self; let cachingEnabled = true; if (!indexe...
JavaScript
0
@@ -175,14 +175,20 @@ %7B%0A -throw +console.log( 'Ind @@ -227,16 +227,17 @@ ser ENV' +) ;%0A%7D%0A%0Acon @@ -259,16 +259,47 @@ ilable = + typeof self !== 'undefined' && 'indexe @@ -310,17 +310,17 @@ in self -; +%0A %0Alet cac
d2ee8f79e8725954968e5875f3e89be402ca951d
Remove outdated default options from CLI
bin/idyll.js
bin/idyll.js
#! /usr/bin/env node const idyll = require('../src/'); var argv = require('yargs') .usage('Usage: idyll index.idl') .example('$0 index.idl', 'Turn index.idl into output') .demandCommand(1) .alias({ m: 'components', c: 'css', d: 'datasets', q: 'defaultComponents', f: 'inputFile', s: 'in...
JavaScript
0.000001
@@ -812,62 +812,8 @@ d')%0A - .default('defaultComponents', 'components/default')%0A .d @@ -1392,46 +1392,8 @@ e')%0A - .default('template', '_index.html')%0A .a @@ -2145,16 +2145,163 @@ check;%0A%0A +// delete undefined keys so Object.assign won't use them%0AObject.keys(argv).forEach((key) =%3E %7B%0A if (...
7e5da238ee869201fdb9027c27b79b0f76b440a8
fix Windows perms regression
lib/utils/correct-mkdir.js
lib/utils/correct-mkdir.js
var chownr = require('chownr') var dezalgo = require('dezalgo') var fs = require('graceful-fs') var inflight = require('inflight') var log = require('npmlog') var mkdirp = require('mkdirp') // memoize the directories created by this step var stats = {} var effectiveOwner module.exports = function correctMkdir (path, c...
JavaScript
0.000001
@@ -946,44 +946,147 @@ -var uid = +process.getuid()%0A var +effectiveOwner = %7B uid: 0, gid: 0 %7D%0A%0A if (process.getuid) effectiveOwner.uid = +process.getuid()%0A if (process.getgid) effectiveOwner. gid @@ -1114,16 +1114,31 @@ if ( +effectiveOwner. uid === @@ -1174,16 +1174,31 @@ DO_UID) ...
f1586476fadc8c0e55eb40ad4827de755759749f
add support for recursive option in cli
bin/index.js
bin/index.js
#! /usr/bin/env node // sudo npm link const colors = require('colors/safe'); const utils = require('../lib/utils'); const safeReportSync = require('../lib').safeReportSync; const safe = require('../lib').safe; const safeReport = require('../lib'); const help = ` ${colors.bgWhite.gray('--------------------------------...
JavaScript
0
@@ -970,16 +970,22 @@ OPTION +LIMIT : number @@ -1199,24 +1199,291 @@ l 35 -w%60)%7D%0A%0A +- OPTION RECURSIVE : indicates whether all subdirectories should be tested or watched, or only the current directory (false by default)%0A%0A$ safe-regex dir%7Cfile -recursive%7C-r%0A$%7Bcolors.gray(%60examples:%0A safe-r...
48c020916c56f379f840368d1b3a42f2c94c2c6f
Fix keyboard shortcuts
lib/views/world_toolbar.js
lib/views/world_toolbar.js
var _ = require('underscore') , Backbone = require('backbone') , getKey = require('../helpers/get_key') module.exports = Backbone.View.extend({ initialize: function() { this.initButtons() this.initKeyboard() }, initButtons: function() { var robot = this.model.get('robot') this.$('i...
JavaScript
0.999879
@@ -475,27 +475,28 @@ + left: - ' -linksDrehen +turnLeft ',%0A @@ -504,16 +504,20 @@ + + right: ' rech @@ -516,44 +516,42 @@ t: ' -rechtsDrehen',%0A +turnRight',%0A + up: - 'schritt +'move ',%0A @@ -559,33 +559,32 @@ + + down: - ' -schrittRue +moveBa ck...
0e57d28336abfe9fb180c96e3f78f8d9214ffb8c
fix typo
karma.conf.js
karma.conf.js
// Karma configuration // Generated on Tue Jul 18 2017 18:01:48 GMT+0800 (CST) const path = require('path') const webpack = require('webpack') const coverage = String(process.env.COVERAGE) !== 'false' const ci = String(process.env.CI).match(/^(1|true)$/gi) const realBrowser = String(process.env.BROWSER).match(/^(1|tru...
JavaScript
0.999702
@@ -2057,29 +2057,24 @@ es/es5-shim/ -dist/ es5-shim.js' @@ -2110,13 +2110,8 @@ him/ -dist/ es5-
ff799d8ab5a30fd41176ec662720ff024ca46f8a
Enable Firefox for karma tests locally
karma.conf.js
karma.conf.js
// Karma configuration file // // For all available config options and default values, see: // https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54 module.exports = function (config) { 'use strict'; config.set({ // base path, that will be used to resolve files and exclude basePath: '', ...
JavaScript
0
@@ -1280,19 +1280,16 @@ ',%0A - // 'Firefo
d9956aa2b8f08fabf7cb41554398d2167dfe6cee
fix karma coverage paths
karma.conf.js
karma.conf.js
// Karma configuration // Generated on Sat Feb 01 2014 15:17:26 GMT-0800 (PST) module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to use frameworks: ['jasmine'], // list of files / patterns to load in the...
JavaScript
0.000044
@@ -504,16 +504,20 @@ %0A ' +lib/ random.j
7193fb6dddfbba6e452c65b89145ebd5c0d058a2
fix karma-coverage path
karma.conf.js
karma.conf.js
/*globals module*/ // Karma configuration // Generated on Thu Aug 13 2015 23:57:08 GMT-0400 (EDT) module.exports = function(config) { "use strict"; config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: "", // frameworks to use // available frameworks: ...
JavaScript
0.002723
@@ -840,39 +840,8 @@ : %7B%0A - %22js/*.js%22: %5B%22coverage%22%5D,%0A
59b1c5a57198214e86a79494b0c3d9bd29a48c86
Fix test path
karma.conf.js
karma.conf.js
// Karma configuration // Generated on Fri Feb 07 2014 08:31:06 GMT+0100 (CET) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '.', // frameworks to use frameworks: ['mocha', 'chai-sinon'], // list of files / patterns to...
JavaScript
0.00001
@@ -789,33 +789,27 @@ est/ -decorator-factory-service +services/decorators -tes
301017373353443755665acf8f4494384c6c9725
Disable hardware acceleration for unit tests
karma.conf.js
karma.conf.js
/* eslint camelcase: 0 */ module.exports = function(karma) { var args = karma.args || {}; var config = { browsers: ['Firefox'], frameworks: ['browserify', 'jasmine'], reporters: ['progress', 'kjhtml'], preprocessors: { './test/jasmine.index.js': ['browserify'], './src/**/*.js': ['browserify'] }, ...
JavaScript
0
@@ -105,33 +105,8 @@ = %7B%0A -%09%09browsers: %5B'Firefox'%5D,%0A %09%09fr @@ -178,16 +178,445 @@ jhtml'%5D, +%0A%09%09browsers: %5B'chrome', 'firefox'%5D,%0A%0A%09%09// Explicitly disable hardware acceleration to make image%0A%09%09// diff more stable when ran on Travis and dev machine.%0A%09%09// https://github.c...
f86ec1bb62cc85cbd84a718bb72c73a2112749ac
添加input sizes of >500KB 的参数 compact
karma.conf.js
karma.conf.js
"use strict"; const path = require("path"); const webpackConfig = require("./webpack.config.js"); module.exports = function(config) { config.set({ frameworks: ["mocha"], files: ["test/*.js"], plugins: [ "karma-babel-preprocessor", "karma-webpack", "karma-mocha", "karma-phantomjs-launcher", // "ka...
JavaScript
0
@@ -696,16 +696,183 @@ %09%7D%0A%09%09%7D,%0A +%09%09babelPreprocessor: %7B%0A%09%09%09options: %7B%0A%09%09%09%09// presets: %5B'es2015','react','stage-0'%5D,%0A%09%09%09%09// sourceMap: 'inline',%0A%09%09%09%09// input sizes of %3E500KB%0A%09%09%09%09compact:true%0A%09%09%09%7D%0A%09%09%7D,%0A %09%09report @@ -1774...
80590108b318f201e410bf417e15b61847669d6f
use ChromeHeadless
karma.conf.js
karma.conf.js
var path = require('path'); module.exports = function(config) { var options = { files: ['test/index.spec.js'], preprocessors: { 'test/index.spec.js': ['webpack'] }, webpack: { module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, ...
JavaScript
0
@@ -803,333 +803,53 @@ rome -'%5D,%0A customLaunchers: %7B%0A ChromeTravisCI: %7B%0A base: 'Chrome',%0A flags: %5B'--no-sandbox'%5D%0A %7D%0A %7D,%0A%0A frameworks: %5B'mocha', 'chai'%5D,%0A%0A plugins: %5B%0A 'karma-mocha',%0A 'karma-chai',%0A 'karma-coverage',%0A ...
dcb1e484445be8b8eb3857b9618fb35ea7a62a8f
Reduce browser concurrency to 1
karma.conf.js
karma.conf.js
'use strict'; const path = require('path'); const resolve = require('rollup-plugin-node-resolve'); const commonjs = require('rollup-plugin-commonjs'); const nodeBuiltins = require('rollup-plugin-node-builtins'); const globals = require('rollup-plugin-node-globals'); const babel = require('rollup-plugin-babel'); const ...
JavaScript
0.999993
@@ -2943,16 +2943,9 @@ cy: -Infinity +1 %0A%09%7D,
cc5f9abfddc8bbee3e0a0d5801932cf282729a70
Modify the port of karma conf and add a hostname into karma conf.
karma.conf.js
karma.conf.js
// Karma configuration // Generated on Sat Nov 14 2015 08:16:16 GMT+0000 (UTC) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
JavaScript
0
@@ -1249,16 +1249,24 @@ env.PORT + %7C%7C 9876 , // rep @@ -1286,16 +1286,70 @@ r port%0A%0A + hostname: process.env.IP %7C%7C 'localhost',%0A %0A %0A //
0f04ab297258188e162fcd3439106f3aba6309a7
fix sorting
controller/message.js
controller/message.js
'use strict'; var log = require('log-to-file-and-console-node'); var Message = require('../model/message'); var moment = require('moment'); var _ = require('lodash'); exports.getAllGroupIds = function (callback) { Message.find().distinct('chatId', callback); }; exports.addMessage = function (msg, callback) { var...
JavaScript
0.000011
@@ -1085,72 +1085,8 @@ %7B%0A - $sort: %7B%0A count: -1%0A %7D%0A %7D,%0A %7B%0A @@ -1286,24 +1286,88 @@ %7D%0A %7D%0A + %7D,%0A %7B%0A $sort: %7B%0A count: -1%0A %7D%0A %7D%0A
ffb2c7b798c6a70971b3fa09079ddbc58e773551
Refactor Forgot controller
controllers/forgot.js
controllers/forgot.js
'use strict'; /** * Module dependencies. */ var async = require('async'); var bcrypt = require('bcrypt-nodejs'); var crypto = require('crypto'); var mongoose = require('mongoose'); var nodemailer = require("nodemailer"); var User = require('../models/User'); var secrets = require('../config/secrets'); /** * Forgot...
JavaScript
0
@@ -1,1840 +1,343 @@ -'use strict';%0A%0A/**%0A * Module dependencies.%0A */%0Avar async = require('async');%0Avar bcrypt = require('bcrypt-nodejs');%0Avar crypto = require('crypto');%0Avar mongoose = require('mongoose');%0Avar nodemailer = require(%22nodemailer%22);%0Avar User = require('../models/User');%0Avar secret...
d9c36b938008e9114e054f7452453fad6883fade
document inability to be run on a path below an URL with a hostname - as discussed in https://ghost.org/forum/installation/341-how-do-i-run-ghost-on-a-subdirectory
config.example.js
config.example.js
// # Ghost Configuration // Setup your Ghost install for various environments var path = require('path'), config; config = { // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in RSS and email. url: 'http://my-ghost-blog.com', ...
JavaScript
0.000001
@@ -263,16 +263,115 @@ email.%0A + // must not contain a path suffix after the hostname - %22subdirs%22 are not (yet) supported! %0A @@ -1462,32 +1462,131 @@ production: %7B%0A + // must not contain a path suffix after the hostname - %22subdirs%22 are not (yet) supported! %0A url: ...
bee0cc7a0554c76fe4635b149c3d9a9d97156dd5
tweak colours and numbers on tectonic sketch
tectonic2/sketch.js
tectonic2/sketch.js
let sketch = function(p) { let THE_SEED; let width = 500; let resolution = 250; let noise_zoom = 150; let magnitude = 100; let plate_padding = 0; let number_of_blocks = 70; let blocks = []; let palette; p.setup = function() { p.createCanvas(1200, 1800); p.noLoop(); p.strokeWeight(...
JavaScript
0
@@ -101,17 +101,17 @@ zoom = 1 -5 +8 0;%0A let @@ -352,21 +352,20 @@ lor( -145, 172 +240, 204 , 18 -3 ),%0A @@ -381,19 +381,19 @@ lor( -182, 32, 36 +236, 65, 38 ),%0A @@ -410,18 +410,19 @@ or(1 -55, 80, 43 +70, 132, 94 ),%0A @@ -438,18 +438,20 @@ lor( -81, 82, 11 +244, 188, 19 1),%0A @@ -468,21 +468,21 @...
05d3d7ff6beff0cfdbc6c5229d0888ccb7c5694a
update example config to relevant format
config.example.js
config.example.js
module.exports = { "appId" : "", "appPassword" : "" }
JavaScript
0
@@ -11,11 +11,11 @@ orts - = +%C2%A0=%C2%A0 %7B%0A @@ -23,19 +23,18 @@ %22appId%22 - : +:%C2%A0 %22%22,%0A @@ -50,11 +50,130 @@ ord%22 - : %22%22%0A%7D +:%C2%A0%22%22,%0A %22dbEndpoint%22:%C2%A0%22%22,%0A %22dbKey%22:%C2%A0%22%22,%0A %22dbSProc%22:%C2%A0%7B%0A %22getRandomWord%22:%C2%A0%22...
01c3baa8c43e976267c47934b99f7f4b210d36b6
Disable async/await to run on v6
tests/unit/core/randomGeneration.spec.js
tests/unit/core/randomGeneration.spec.js
import { expect } from 'chai'; import jsf from '../../../src'; /* global describe, it */ describe('Random Generation', () => { it('should generate all the fields with alwaysFakeOptionals option and additionalProperties: true', async () => { jsf.option({ alwaysFakeOptionals: true, }); const schema...
JavaScript
0
@@ -223,22 +223,16 @@ : true', - async () =%3E %7B @@ -499,53 +499,56 @@ -const resolved = await jsf.resolve(schema);%0A%0A +return jsf.resolve(schema).then(resolved =%3E %7B%0A @@ -599,24 +599,32 @@ t.least(2);%0A + %7D);%0A %7D);%0A it(' @@ -723,14 +723,8 @@ se', - async () @@ -996,53 +99...
87f7450aaef32a85b47d3f742abca30c27310a41
add temp filter on workflow completeness
src/reducers/workflows.js
src/reducers/workflows.js
import * as types from 'constants/actions'; const initialState = { workflowsFetched: false, allWorkflows: [], activeWorkflows: [], inactiveWorkflows: [], }; export function workflows(state = initialState, action) { switch (action.type) { case types.WORKFLOWS_REQUESTED: return Object.assign({}, st...
JavaScript
0
@@ -689,32 +689,56 @@ tch(/Template/i) + && w.completeness === 1 ),%0A %7D);%0A%0A
e67d77b6d5f1b640b7ac2401d3a553959d426fd1
Fix deep-db RUM logging when used in deploy hooks
src/deep-db/lib/DB.js
src/deep-db/lib/DB.js
/** * Created by AlexanderC on 6/15/15. */ 'use strict'; import Kernel from 'deep-kernel'; import Vogels from 'vogels'; import {ExtendModel} from './Vogels/ExtendModel'; import {ModelNotFoundException} from './Exception/ModelNotFoundException'; import Validation from 'deep-validation'; import Utils from 'util'; imp...
JavaScript
0
@@ -1579,24 +1579,67 @@ odelName%5D;%0A%0A + if (this.kernel instanceof Kernel) %7B%0A // injec @@ -1689,24 +1689,26 @@ events%0A + model.logSer @@ -1737,16 +1737,22 @@ ('log'); +%0A %7D %0A%0A re
b16a5c02e39fd854dd3b6adcaa23aa030b9abcad
Handle the situation where there is a block re-arrangment after the block has been found and the transaction is now pending again.
blobstore.js
blobstore.js
var Web3 = require('web3'); var web3 = new Web3(); web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); var blobstoreAbi = require('./blobstore.abi.json'); var blobstoreContract = web3.eth.contract(blobstoreAbi); var blobstoreAddress = '0x3c531591cb807e01404574076f429d205f5ee981'; var blobstore =...
JavaScript
0
@@ -3078,32 +3078,176 @@ lse %7B%0A +// There has just been a re-arrangement and the trasaction is now back to%0A // pending. Let's try again from the start.%0A getBlob(hash, callback ('error');%0A @@ -3230,32 +3230,24 @@ sh, callback -('error' );%0A %7D%0A %7D
8a2c4c46f0103bb2151d4d5226323126d89c67c7
Add more tests
tests/unit/services/params-relay-test.js
tests/unit/services/params-relay-test.js
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:params-relay', 'Unit | Service | params relay', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); test('setting a param', function(assert) { let service = this.subject(); assert.notOk(service.getParam(...
JavaScript
0
@@ -1,8 +1,35 @@ +import Ember from 'ember';%0A import %7B @@ -522,12 +522,692 @@ john');%0A%7D);%0A +%0Atest('subscribe fired on set', function(assert) %7B%0A let service = this.subject();%0A%0A service.subscribe('test', (key, val) =%3E %7B%0A assert.equal(key, 'test');%0A assert.equal(val, 'blah');%0A %7D)...
a2e7ac367e9053da9e3df6b468164f031d748c62
fix adding attachments to slack inbound messages
lib/helpers/slack.js
lib/helpers/slack.js
'use strict'; /** * Slack helper */ module.exports = { /** * parseBody - parses properties out of the body of a Slack request * * @param {object} req * @return {promise} */ parseBody: function parseBody(req) { req.platform = 'slack'; req.platformUserId = req.body.slackId; req.slackCha...
JavaScript
0
@@ -8,16 +8,63 @@ rict';%0A%0A +const attachments = require('./attachments');%0A%0A /**%0A * S @@ -442,45 +442,207 @@ Id;%0A +%0A -req.mediaUrl = req.body.mediaUrl; +const attachmentObject = attachments.parseFromReq(req);%0A%0A if (attachmentObject.url) %7B%0A req.mediaUrl = attachmentObject.url;%0A ...
ff6d6cd0428c3c8334a7b85e573b54b145250397
add weinre
biz/index.js
biz/index.js
var url = require('url'); var https = require('https'); var http = require('http'); var util = require('../util'); var config = util.config; var FULL_WEINRE_HOST = config.WEINRE_HOST + ':' + config.weinreport; function request(req, res, port) { var options = url.parse(util.getFullUrl(req)); options.host = '127.0.0.1...
JavaScript
0.000104
@@ -316,16 +316,46 @@ 0.0.1';%0A +%09options.method = req.method;%0A %09options