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
06164aff052d6922f1506398dc60a7dde78a9f98
Remove ability to get last memoize result by passing falsy argument
resolve-cache.js
resolve-cache.js
'use strict'; const _ = require('lodash'); const tests = { db: (value) => { const keys = ['query', 'connect', 'begin']; return keys.every((key) => _.has(value, key)); }, }; const ok = require('ok')(tests); const previous = []; module.exports = (obj) => { const result = obj ? previous.find((item) => ...
JavaScript
0
@@ -272,20 +272,18 @@ %7B%0A -cons +le t result = o @@ -282,16 +282,36 @@ sult - = obj ? +;%0A%0A if (obj) %7B%0A result = pre @@ -356,28 +356,13 @@ bj)) - : _.last(previous); +;%0A %7D %0A%0A
319aaf9c72e56a93762a5fbe63245d0dd4a86c38
simplify externals config
rollup.config.js
rollup.config.js
import alias from '@rollup/plugin-alias'; import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import copy from 'rollup-plugin-copy'; import json from '@rollup/plugin-json'; import reactSvg from 'rollup-plugin-react-svg'; import resolve from '@rollup/plugin-node-resolve'; import pk...
JavaScript
0.000154
@@ -608,15 +608,8 @@ al: -id =%3E ( %5B%0A @@ -650,25 +650,26 @@ ,%0A -' +/%5E @bpmn-io /propert @@ -652,32 +652,33 @@ /%5E@bpmn-io +%5C /properties-pane @@ -683,70 +683,15 @@ nel' +/ %0A %5D -.includes(id) %7C%7C /%5E@bpmn-io%5C/properties-panel/.test(id)) ,%0A
cf6459fa58b9439e9815215573d9d052535930ac
switch back to 500m radius
routes/places.js
routes/places.js
'use strict'; const boom = require('boom'); const express = require('express'); const request = require('request-promise'); const router = express.Router(); // eslint-disable-line new-cap router.get('/api/places/:location', (req, res, next) => { const { location } = req.params; request({ uri: // eslint-disable-...
JavaScript
0.000009
@@ -425,17 +425,16 @@ &radius= -1 500&type
3ded5c238e9a70e4e39f2aade2bff6fd3d47786a
use slidetoggle
app/assets/javascripts/nav.js
app/assets/javascripts/nav.js
$(document).ready(function(){ $('.menu-toggle').on('mouseenter',function() { $('.nav-list').css('display', 'inline') }); $('.menu-toggle').bind('mouseleave', function(){ $('.nav-list').css('display', 'inline') $('.nav-list').hide(); }); });
JavaScript
0.000001
@@ -47,12 +47,8 @@ e'). -on(' mous @@ -53,18 +53,17 @@ useenter -', +( function @@ -68,17 +68,16 @@ on() - %7B%0A $( '.na @@ -64,33 +64,33 @@ nction()%7B%0A $( -' +%22 .nav-list').css( @@ -86,43 +86,38 @@ list -').css('display', 'inline') +%22).slideToggle(%22fast%22); %0A %7D);%0A -%0A $( @@ -136...
aeb9dc6cf1f25124039280e86bb175cbb8cf837d
truncate 's value based on params.limit
app/both/collections/texts.js
app/both/collections/texts.js
/** * Texts is a collection that represents a mapping from strings to bundles of * metadata that describe each known occurrence of it. For now, metadata includes * the following: * * url: a URL pointing to the text's occurrence, or null * date: the date the URL was crawled, or null * corpus: the co...
JavaScript
0.00002
@@ -5393,21 +5393,8 @@ List -.slice(10000) %7D,%0A @@ -6364,32 +6364,212 @@ %7D */%0A%0A var +coll;%0A%0A if (mongoQuery._custom_id) %7B%0A mongoQuery._custom_id.$in = mongoQuery._custom_id.$in.slice(0, params.limit);%0A coll = Texts.find(mongoQuery);%0A %7D else %7B%0A coll = Texts.fin...
5b5bf6b403cbec6bbd324a0ab91d37e2d1ae5e64
tweak height of pop pyramid
app/components/age-pyramid.js
app/components/age-pyramid.js
import HorizontalBar from '../components/horizontal-bar'; const translation = function(x, y) { return `translate(${x},${y})`; }; export default HorizontalBar.extend({ margin: { top: 25, right: 12, bottom: 20, left: 12, middle: 28, }, height: 280, createChart: function createChart() { ...
JavaScript
0.000001
@@ -267,17 +267,17 @@ ight: 28 -0 +6 ,%0A%0A cre
c06749e366004dc2a9072800af24e38a29bc2352
Add fix thanks to @dvv
query.js
query.js
// This plugin adds simple queries to nStore module.exports = function QueryPlugin() { return { // Get all the records as either a single object or a document/key stream all: function all(callback) { return this.find(undefined, callback); }, // Find records using a query find: function fin...
JavaScript
0
@@ -559,16 +559,63 @@ length;%0A + if (!counter) return callback(null, %5B%5D);%0A if
906729373178518befcef3a036ac9e0ec8102819
add notes #2.5 refresh after add
scripts/notes.js
scripts/notes.js
/** * Created by Pavel on 02.12.2016. */ function prepareNoteFormAndFillNotes(place_name) { //TODO zmenit na podminku jestli ma ten user place u sebe nebo ne .. takhle to bere i mista co pridali ostatni checkIfPlaceAlreadyExistsInDb(place_name, function (place_id) { if(place_id != null && place_id !=...
JavaScript
0
@@ -2017,24 +2017,82 @@ (response);%0A + getAndShowNotesForPlace(place_id);//refresh notes%0A %7D)%0A%7D%0A%0Afu @@ -2479,16 +2479,53 @@ otes');%0A + notesElement.innerHTML = %22%22;%0A @@ -2630,16 +2630,61 @@ ontent+%22 + %3Ca onclick='removeNote(%22+note._id+%22)'%3Ex%3C/a%3E %3Cbr%3...
ed3f1252239085c45b0897183d0f33c0fdfb9389
add styles to watch script
scripts/watch.js
scripts/watch.js
const chokidar = require('chokidar') const path = require('path') const mainDir = path.resolve(__dirname, '../main') const jsDir = path.resolve(__dirname, '../js') const preloadDir = path.resolve(__dirname, '../js/preload') const buildMain = require('./buildMain.js') const buildBrowser = require('./buildBrowser.js') ...
JavaScript
0
@@ -217,16 +217,75 @@ reload') +%0Aconst browserStylesDir = path.resolve(__dirname, '../css') %0A%0Aconst @@ -421,16 +421,78 @@ oad.js') +%0Aconst buildBrowserStyles = require('./buildBrowserStyles.js') %0A%0Achokid @@ -815,16 +815,16 @@ cript')%0A - buildP @@ -831,12 +831,142 @@ reload()%0A%7D)%0A +%0Achokid...
dd9676faa6f012ab33b974849e5f64640158864b
add controller
app/controllers/controller.js
app/controllers/controller.js
/* *@author: xietianxin@qiyi.com *@description: 整合projects下面的controller文件夹 */
JavaScript
0.000001
@@ -72,8 +72,371 @@ er%E6%96%87%E4%BB%B6%E5%A4%B9%0A*/ +%0A'use strict';%0A%0Aconst controllerMap = Symbol.for('koas#controllerMap');%0A%0Alet controllerConf = require('../../koasConfig').controller;%0Aclass Controller %7B%0A%09constructor(isTest)%7B%0A%09%09isTest&&controllerConf = require('../../test/koasConfig').co...
c2925bff74cd7bef578c91ec09ebea6681caa779
test auto install
server/router.js
server/router.js
const glob = require('glob'); const path = require('path'); const logger = require('morgan'); const helmet = require('helmet'); const express = require('express'); const favicon = require('serve-favicon'); const expressVue = require('express-vue'); const bodyParser = require('body-parser'); const compression = require(...
JavaScript
0
@@ -378,17 +378,16 @@ tor');%0A%0A -%0A module.e
4971be55925ee2840e51565ee4ad839e5901f0e7
Remove disconnect on unload
ready.js
ready.js
/* * ready * Watch for when an element becomes available in the DOM * @param {String} selector * @param {Function} fn */ (function(win){ 'use strict'; var listeners = [], doc = win.document, MutationObserver = win.MutationObserver || win.WebKitMutationObserver, observer; function ready(selector, fn){ ...
JavaScript
0.000002
@@ -617,137 +617,8 @@ %7D);%0A -%09%09%09// Disconnect on %60unload%60 to avoid memory leaks%0A%09%09%09win.addEventListener('unload', observer.disconnect.bind(observer), false);%0A %09%09%7D%0A
3a54e2a9a93cae31f788e561369b423fb4273345
fix webhook
server/server.js
server/server.js
// Dependencies var express = require('express'), http = require('http'), io = require('socket.io'), crypto = require('crypto'), mongo = require('mongodb').MongoClient, hookshot = require('hookshot'); // Set up our app with Express framework var app = express(); // Create our HTTP server var serve...
JavaScript
0.000017
@@ -2568,12 +2568,12 @@ ten( -3000 +9001 ));%0A
149819b230026168c58f09e0b5b9d4d6096f904e
Fix a bug that would prevent the chart from showing in the dashboards
app/javascript/helpers/api.js
app/javascript/helpers/api.js
export const ALLOWED_FIELD_TYPES = [ // --- NUMBER ---- { name: 'esriFieldTypeSmallInteger', type: 'number' }, { name: 'esriFieldTypeInteger', type: 'number' }, { name: 'esriFieldTypeSingle', type: 'number' }, { name: 'esriFieldTypeDouble', type: 'number' }, { name: 'numeric', type: 'number' }, { name: 'n...
JavaScript
0.000005
@@ -4139,21 +4139,20 @@ -field +name : f.name
a53034c6220824acc2659c6840e7bcbea9a56db7
Add pagination offset to issues API
server/server.js
server/server.js
import 'babel-polyfill'; import path from 'path'; import SourceMapSupport from 'source-map-support'; import express from 'express'; import bodyParser from 'body-parser'; import { ObjectId, MongoClient } from 'mongodb'; import Issue from './issue.js'; SourceMapSupport.install(); const app = express(); let db; app.use...
JavaScript
0.000001
@@ -1410,24 +1410,100 @@ ndefined) %7B%0A + const offset = req.query._offset ? parseInt(req.query._offset, 10) : 0;%0A let limi @@ -1609,24 +1609,39 @@ ;%0A %7D%0A%0A + const cursor = db.collecti @@ -1648,24 +1648,31 @@ on('issues') +%0A .find(filter @@ -1676,30 +1676,117 @@ ter) -.limit(limi...
9dc43651cc2099b08e84010d9b2f395cfbc2d79e
add injector to recognize header
app/js/controllers/profile.js
app/js/controllers/profile.js
'use strict'; angular.module('backAnd.controllers') .controller('profileController', ['$scope','Global', 'menuService', function($scope, Global , menuService) { $scope.global = Global; $scope.init = function() { menuService.queryjsonp({ table: $s...
JavaScript
0.000001
@@ -94,16 +94,17 @@ $scope', + 'Global' @@ -119,16 +119,25 @@ ervice', + '$http', %0A @@ -160,17 +160,16 @@ , Global - , menuSe @@ -173,16 +173,23 @@ uService +, $http ) %7B%0A @@ -441,17 +441,16 @@ ompany;%0A -
e79d2f9ec9d4001e970d9645de59bca393693eeb
Simplify packageSourceUri binding.
app/mixins/base-controller.js
app/mixins/base-controller.js
import Ember from 'ember'; export default Ember.Mixin.create({ _packageSourceUriBinding: 'restClient.packageSourceUri', packageSourceUri: function() { return this.get('_packageSourceUri') || 'loading...'; }.property('_packageSourceUri') });
JavaScript
0
@@ -61,17 +61,16 @@ e(%7B%0A -_ packageS @@ -81,17 +81,25 @@ eUri -Binding: +: Ember.computed( 'res @@ -124,37 +124,28 @@ rceUri', + %7B %0A -packageSourceUri + get : functi @@ -151,17 +151,16 @@ ion() %7B%0A - r @@ -175,17 +175,27 @@ is.get(' -_ +restClient. packageS @@ -230,38 +230,17 @@ ...
35dec21ed191c8f5968fe1c42cc82c6b26f4f5b4
Change puppy position
hungrydog.js
hungrydog.js
var puppy = { x: 40, y: 500, alive: true, won: false, canMove: true, }; var bone1 = { x: 560, y: 80, alive: true, }; var bone2 = { x: 560, y: 200, alive: true, }; var bacon = { x: 560, y: 320, alive: true, }; document.getElementById("up").onclick = function() {move(38);}; document.getEle...
JavaScript
0.000001
@@ -16,17 +16,18 @@ x: -4 +10 0,%0A y: 500, @@ -22,17 +22,18 @@ 0,%0A y: -5 +10 00,%0A al
9d75d945dc46c54abea0e9f83ecc66b960c977c8
Remove sync data from etcd
cron.js
cron.js
var EventEmitter = require('events').EventEmitter; var util = require('util'); var _ = require('lodash'); // To check all the links every 1 minute var CHECK_INTERVAL = process.env.CHECK_INTERVAL || 30 * 1000; var emitter = new EventEmitter(); function Cron(db, channel) { this.models = db.models; this.db = db.inst...
JavaScript
0.000001
@@ -724,853 +724,8 @@ %7D%0A%0A - function sync() %7B%0A function fetch(hosts) %7B%0A var problems = %5B%5D,%0A perfix = models.Hostvars.perfix;%0A models.Benchs.fetchCurrentAll()%0A .on('data', function(data) %7B%0A problems.push(data);%0A models.Hostvars.get(util.format...
4815fec1397aed796d2bee2d0099737fdd198cfe
add getInfo getSockets in tcp.js
local_messager/js/tcp.js
local_messager/js/tcp.js
function tcp(){ var _tcp = chrome.sockets.tcp; this.option = {}, this.socketId = 0, this.create = function(callback){ _tcp.create(this.option, function(socketInfo){ this.socketId = socketInfo.socketId; callback(); }.bind(this)); }.bind(this), this.update = function(){ _tcp.update(t...
JavaScript
0.000001
@@ -1743,11 +1743,196 @@ .');%0A %7D +,%0A%0A this.getInfo = function(callback)%7B%0A _tcp.getInfo(this.socketId, callback);%0A %7D.bind(this),%0A%0A this.getSockets = function(callback)%7B%0A _tcp.getSockets(callback);%0A %7D.bind(this) %0A%7D%0A
96429f689ead93d3c81e7095eaf2025369219584
Update buildURL docstring
addon/adapters/drf.js
addon/adapters/drf.js
import DS from 'ember-data'; import Ember from 'ember'; const ERROR_MESSAGES = { 401: 'Unauthorized', 500: 'Internal Server Error' }; /** * The Django REST Framework adapter allows your store to communicate * with Django REST Framework-built APIs by adjusting the JSON and URL * structure implemented by Ember D...
JavaScript
0
@@ -1014,15 +1014,15 @@ %0A -* Build +s a U @@ -1036,19 +1036,25 @@ a given -typ +model nam e and op @@ -1064,25 +1064,20 @@ nal ID.%0A - * %0A -* By defa @@ -1135,17 +1135,16 @@ ost'%0A -* becomes @@ -1184,25 +1184,20 @@ ople').%0A - * %0A -* If an I @@ -1252,17 +1252,16 @@ ated +%0...
4be49f19ebd4c222b45a6ea22e8b70ec2a59fd3f
add the app.readEzmasterConfig function to get the /etc/ezmaster.json JSON content from the docker image
helpers/app.js
helpers/app.js
/*eslint no-sync: "off"*/ 'use strict'; var path = require('path') , basename = path.basename(__filename, '.js') , debug = require('debug')('ezmaster:' + basename) //, util = require('utile') , fs = require('fs') , Docker = require('dockerode') , glob = require('glob') , docker = new Docker({ socketPa...
JavaScript
0
@@ -279,16 +279,57 @@ 'glob')%0A + , exec = require('child_process').exec%0A , dock @@ -1397,8 +1397,846 @@ %7D);%0A%7D;%0A +%0A/**%0A * Returns the ezmaster configuration from the specified application image%0A * the config path is /etc/ezmaster.json%0A * cb is called with two parameters:%0A * - err: is null...
81fdad455ce3f12fc5ba009930f71c8bedc1f1b0
use the validate delegate in admin models. closes #1
app/templates/admin/models/_model.js
app/templates/admin/models/_model.js
var BaseModel = require('cf-base-model') , schemata = require('../../../../service/widget/model/base-widget')() module.exports = BaseModel.extend( { schemata: schemata , defaults: function () { return schemata.makeDefault({ type: this.type || '<%= widgetId %>' }) } , validate: function (attributes) {...
JavaScript
0.000026
@@ -106,16 +106,105 @@ dget')() +%0A , validateDelegate = require('../../../../../admin/source/js/lib/validate-delegate')() %0A%0Amodule @@ -255,16 +255,17 @@ chemata%0A +%0A , defa @@ -366,16 +366,17 @@ )%0A %7D%0A +%0A , vali @@ -385,348 +385,24 @@ te: -function (attributes) %7B%0A var returnValu...
5f4de4f57c55b1f8b7f2f37e6603a90b7d779652
Make sure screens is always up to date
home/.slate.js
home/.slate.js
// Docs at https://github.com/jigish/slate/wiki/JavaScript-Configs // TODO Refresh on change screens count slate.log('Loading config') var getKeystroke = function(key) { return key + ':ctrl,shift' } var screens = {} slate.eachScreen(function(screen) { // Screen IDs are ordered from left to right so external...
JavaScript
0
@@ -196,24 +196,58 @@ l,shift'%0A%7D%0A%0A +var getScreens = function() %7B%0A var screens @@ -251,16 +251,20 @@ ns = %7B%7D%0A + slate.ea @@ -287,24 +287,28 @@ n(screen) %7B%0A + // Scree @@ -377,16 +377,20 @@ e left %0A + // o @@ -402,16 +402,20 @@ ernal-1%0A + var @@ -474,...
c70d9a1dd7dc7fc34890cf7bc1653ae4f3b1d8e0
Version bump!
identicon.js
identicon.js
/** * Identicon.js v1.2.1 * http://github.com/stewartlord/identicon.js * * Requires PNGLib * http://www.xarg.org/download/pnglib.js * * Copyright 2013, Stewart Lord * Released under the BSD license * http://www.opensource.org/licenses/bsd-license.php */ (function() { var PNGlib; if (typeof module !==...
JavaScript
0
@@ -20,11 +20,11 @@ v1. -2.1 +3.0 %0A *
d3bb7da669ba8535be2f83312ce97fdff50fa36b
Remove old throw
fuzzy.js
fuzzy.js
'use strict'; var URL = require('./') , url = new URL(); /** * A dictionary with all kind of different options that should generate a valid * and parse-able URL. * * @type {Object} * @api private */ var combinations = {}; combinations.protocol = ['http:', 'https:', 'ws:', 'wss:', 'blob:'/*, ''*/]; combinatio...
JavaScript
0.000001
@@ -1447,32 +1447,8 @@ e%5D;%0A - if (!data) throw name; %0A r
57319f71755b960862e22e8c1d07ee3fd68ded90
use ECMAScript 6 destructuring
index-es6.js
index-es6.js
'use strict'; var through = require('through2'); var PluginError = require('gulp-util').PluginError; var flexSvg = require('flex-svg'); const PLUGIN_NAME = 'gulp-flex-svg'; // Plugin level function (dealing with files) module.exports = () => { // Creating a stream through which each file will pass let stream ...
JavaScript
0
@@ -47,16 +47,17 @@ ');%0Avar +%7B PluginEr @@ -59,16 +59,17 @@ ginError +%7D = requi @@ -87,20 +87,8 @@ il') -.PluginError ;%0Ava
a06648f30ffcc7ee63bb1829e7bb5a927f6eee97
Remove white lines
demo.js
demo.js
var NODE_COUNT = 8; var OFFSET = 50; var RADIUS = 250; var NODE_RADIUS = 20; var perm = getPermMatrix(8); var matrix = perm['matrix']; function doClick(p,q) { var res = []; for (var i = 0; i < NODE_COUNT; i++) { res[i] = []; for (var j = 0; j < NODE_COUNT; j++) { if ((matrix[i][p] ...
JavaScript
0.000711
@@ -10,17 +10,18 @@ COUNT = -8 +12 ;%0Avar OF @@ -101,9 +101,18 @@ rix( -8 +NODE_COUNT );%0Av @@ -709,17 +709,21 @@ var -c +edgeC olor = m @@ -734,31 +734,39 @@ %5D%5Bj%5D ? ' -black' : 'white +#000000FF' : '#00000000 ';%0A @@ -836,38 +836,30 @@ or: -mat%5Bi%5D%5Bj%5D ? 'black' : 'white' +color.pa...
057a6ba835d986bfe495dd476a6c4db1d5f9503c
Fix passing token to GitHub
start.js
start.js
'use strict'; const spawn = require('child_process').spawn; const path = require("path"); const https = require('https'); const get = (url, options = {}) => new Promise((resolve, reject) => https .get(url, options, (res) => { const chunks = []; res.on('data', (chunk) => chunks.push(chunk)); ...
JavaScript
0.000012
@@ -1753,32 +1753,38 @@ if (process.env. +INPUT_ GITHUB_TOKEN) he @@ -1822,24 +1822,30 @@ process.env. +INPUT_ GITHUB_TOKEN
dfcfaddb55287b93cfd0429d4f1c7706a0f2e76e
fix bz6160815: port argument must be an integer
start.js
start.js
/* * Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ /*jslint anon:true, nomen:true, sloppy:true, stupid:true*/ var path = require('path'), utils = require(path.join(__dirname, '../../management/util...
JavaScript
0.998952
@@ -2289,16 +2289,25 @@ .port = +parseInt( params%5B0 @@ -2307,16 +2307,21 @@ arams%5B0%5D +, 10) %7C%7C appC @@ -2333,16 +2333,49 @@ .appPort +;%0A options.port = options.port %7C%7C proc @@ -2396,16 +2396,17 @@ %7C 8666;%0A +%0A if (
50373ebc73f64df3896f6e551b13cdccd79e4723
Fix silly mistake in docs generation
docs.js
docs.js
var acquit = require('acquit'); var content = require('fs').readFileSync('./test/examples.test.js').toString(); var blocks = acquit.parse(content); var mdOutput = '# kareem\n\n' + 'Next-generation take on the [hooks](http://npmjs.org/package/hooks), ' + 'meant to offer additional flexibility in allowing you to ...
JavaScript
0.001077
@@ -707,16 +707,18 @@ 0%22%3E%5Cn%5Cn' + + %0A '# AP
8853ec0ee38b01f65cf21816297401f58870384b
remove micro optimizations on initialization
graph.js
graph.js
// javascript-astar // http://github.com/bgrins/javascript-astar // Freely distributable under the MIT License. // Includes Binary Heap (with modifications) from Marijn Haverbeke. // http://eloquentjavascript.net/appendix2.html var GraphNodeType = { OPEN: 0, WALL: 1 }; // Creates a Graph class used in th...
JavaScript
0.000003
@@ -387,51 +387,8 @@ %5D;%0A%0A - var row, rowLength, len = grid.length;%0A @@ -403,27 +403,35 @@ x = 0; x %3C -len +grid.length ; x++) %7B%0A @@ -439,63 +439,8 @@ -row = grid%5Bx%5D;%0A rowLength = row.length;%0A node @@ -445,24 +445,33 @@ des%5Bx%5D = %5B%5D; +%0A %0A ...
c814727e414bec9346af290926d44dd1f515c2a7
stop minifying
grunt.js
grunt.js
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ meta: { version: '0.1.0', banner: '/*! Stypi Editor - v<%= meta.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '* https://www.stypi.com/\n' + '* Copyrigh...
JavaScript
0.000005
@@ -540,152 +540,8 @@ %7D,%0A - min: %7B%0A dist: %7B%0A src: %5B'%3Cbanner:meta.banner%3E', '%3Cconfig:concat.dist.dest%3E'%5D,%0A dest: 'build/scribe.min.js'%0A %7D%0A %7D,%0A @@ -620,12 +620,8 @@ ncat - min ');%0A
98bde3e347fe5b68df08bba93d7b3f3bc45766be
Make library inclusion order stable
grunt.js
grunt.js
/*global module:false*/ module.exports = function (grunt) { grunt.initConfig({ meta: { banner: "/*! Mopidy.js - built " + "<%= grunt.template.today('yyyy-mm-dd') %>\n" + " * http://www.mopidy.com/\n" + " * Copyright (c) <%= grunt.template.today('y...
JavaScript
0.000001
@@ -789,32 +789,53 @@ src: %5B +%0A %22%3Cbanner:meta.ba @@ -845,39 +845,135 @@ r%3E%22, - %22lib/**/*.js%22, %22src/mopidy.js%22 +%0A %22lib/bane-*.js%22,%0A %22lib/when-*.js%22,%0A %22src/mopidy.js%22%0A %5D,%0A...
3bd3a0115d69f7c774159ac4e524056b21490dc7
update grunt config
grunt.js
grunt.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', test: { files: ['test/**/*.js'] }, lint: { files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js', 'src/app.js', 'src/routes/*.js', 'src/public/ui/*.js'] }, watch: { file...
JavaScript
0
@@ -222,26 +222,39 @@ est/**/*.js' -, +%5D,%0A src: %5B 'src/app.js' @@ -343,21 +343,19 @@ ig:lint. -files +src %3E',%0A @@ -767,20 +767,19 @@ ', 'lint - test +:src ');%0A%0A%7D;
b8c1ea638aedea41134c6f36acef45d5c934bff1
add 2 lines
hello.js
hello.js
console.log("Hello, World");
JavaScript
0.999998
@@ -21,8 +21,70 @@ World%22); +%0Aconsole.log(%22Tell his world%22);%0Aconsole.log(%22Tell her world%22);
3fa22c5199127eaffcf01d2feeeb11bd2e512031
Support moving files quickly if on the same drive
file.js
file.js
"use strict"; var base = require("xbase"), fs = require("fs"), path = require("path"), uuid = require("node-uuid"), tiptoe = require("tiptoe"); exports.searchReplace = searchReplace; function searchReplace(file, match, replace, cb) { tiptoe( function loadFile() { fs.readFile(file, {encoding:"utf8"}, this)...
JavaScript
0
@@ -2055,32 +2055,114 @@ %09%09%09this();%0A%09%09%7D,%0A +%09%09function tryRename()%0A%09%09%7B%0A%09%09%09this.capture();%0A%09%09%09fs.rename(src, dest, this);%0A%09%09%7D,%0A %09%09function copyF @@ -2165,22 +2165,116 @@ opyFile( +err )%0A%09%09%7B%0A +%09%09%09if(!err)%0A%09%09%09%09return this.finish();%0A%0...
cd45e0ddcd98cabac3ce0a9f637a4e2f2de46f88
use UMD for AMD and Node support
gajs.js
gajs.js
/** * Google Analytics JS v1 * http://code.google.com/p/google-analytics-js/ * Copyright (c) 2009 Remy Sharp remysharp.com / MIT License * $Date: 2009-02-25 14:25:01 +0000 (Wed, 25 Feb 2009) $ */ function gaTrack(urchinCode, domain, url) { function rand(min, max) { return min + Math.floor(Math.random(...
JavaScript
0
@@ -1,8 +1,668 @@ / -**%0A +/ https://github.com/umdjs/umd/blob/master/templates/returnExportsGlobal.js%0A(function (root, factory) %7B%0A if (typeof define === 'function' && define.amd) %7B%0A // AMD. Register as an anonymous module.%0A define(%5B%5D, function () %7B%0A return (root.gaTrac...
0cfe1f55937ca8c242d9bba68c097eb630541efd
Switch to show-all scaling mode
game.js
game.js
(function() { "use strict"; var gameWidth = 800; var gameHeight = 600; var columnsCount = 20; var spriteWidth = gameWidth / columnsCount; var spriteHeight = 1.5 * spriteWidth; var rowsCount = Math.floor((gameHeight / spriteHeight) / 2); var nucFac; var rt = null; var rowMan = null; var nrt...
JavaScript
0
@@ -46,10 +46,11 @@ h = -80 +192 0;%0A @@ -71,10 +71,11 @@ t = -60 +108 0;%0A%0A @@ -416,77 +416,20 @@ idth - * window.devicePixelRatio, %0A gameHeight * window.devicePixelRatio +, gameHeight , Ph @@ -1010,17 +1010,16 @@ ger. -EXACT_FIT +SHOW_ALL ;%0A @@ -1035,17 +1035,58 @@ ale. -refresh() +fullScreen...
dae4ecf63d798efec75a900cf60308bafc3cab0e
Test on watch
gulp.js
gulp.js
/* eslint strict: 0 */ /* eslint no-sync: 0 */ module.exports = function(options) { 'use strict'; const browserify = require('browserify'); const fs = require('fs'); const gulp = require('gulp'); const babel = require('gulp-babel'); const eslint = require('gulp-eslint'); const liveserver = ...
JavaScript
0
@@ -1241,24 +1241,32 @@ h:server', %5B +'jest', 'server'%5D, ( @@ -1342,16 +1342,24 @@ */*'%5D, %5B +'jest', 'server' @@ -1527,24 +1527,32 @@ :browser', %5B +'jest', 'watchify'%5D, @@ -1627,16 +1627,24 @@ */*'%5D, %5B +'jest', 'watchif
d6fd000c9b87ba53af0e82c5b24517aa6c28bc7b
Fix PropType
html.js
html.js
import React from 'react' import DocumentTitle from 'react-document-title' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes ()...
JavaScript
0.000001
@@ -335,21 +335,20 @@ %7B%0A -title +body : React.
5c7e00ac27910399ad55bc87fb995eeec87d8201
Update iOS9.js
iOS9.js
iOS9.js
/** * iOS9 'click', 'mousedown' and 'mouseup' fix * --------------------------------------------- * Include this script in your poject to fix 'click', 'mousedown' and 'mouseup' event * handling for $(window), $(document), $('body') and $('html'). By default iOS9 Safari is * suppressing those events in some si...
JavaScript
0.000001
@@ -2314,30 +2314,16 @@ amespace - !== undefined %0D%0A
0a46afda7bdf36e2a711471ec66cced3f7da0ff0
Add download demo button
src/_common/AppHeader/AppHeaderDemoButtons.js
src/_common/AppHeader/AppHeaderDemoButtons.js
import React from 'react' import { Link } from 'react-router-dom' import { makeStyles } from '@material-ui/core/styles' import Tooltip from '@material-ui/core/Tooltip' import Button from '@material-ui/core/Button' import IconCode from '@material-ui/icons/Code' import IconFavorite from '@material-ui/icons/Favorite' imp...
JavaScript
0
@@ -266,24 +266,20 @@ ort Icon -Favorite +Star from '@ @@ -296,24 +296,20 @@ i/icons/ -Favorite +Star '%0Aimport @@ -305,36 +305,40 @@ tar'%0Aimport Icon -Star +Download from '@material @@ -351,155 +351,15 @@ ons/ -Star'%0A%0A// const SupportLink = React.forwardRef%3CHTMLAnchorElement, LinkProps%3E((props, ref...
5fbed4743639369c4262f3e345a4d2995eb47407
Update flexiListService
angular/services/flexiListService.js
angular/services/flexiListService.js
/** * Created by anonymous on 26/12/15 15:10. */ /** * @ngdoc service * @name flexiListService * @private * @description * Provides functions to: * - Load data from server. * - Load data from a JSON file. * - Sort, filter, limit and page the dataset. */ (function() { 'use strict'; angula...
JavaScript
0
@@ -2128,18 +2128,16 @@ -// var v_ur @@ -2201,32 +2201,34 @@ +// var v_url = opti
dd4d93ed52c83ad9012604303119330565de3d2b
Update BoundsArraySet_Depthwise.js
CNN/Conv/BoundsArraySet/BoundsArraySet_Depthwise.js
CNN/Conv/BoundsArraySet/BoundsArraySet_Depthwise.js
export { Depthwise }; import * as Pool from "../../util/Pool.js"; import * as FloatValue from "../../Unpacker/FloatValue.js"; import * as ValueDesc from "../../Unpacker/ValueDesc.js"; import * as Weights from "../../Unpacker/Weights.js"; import { ConvBiasActivation } from "./BoundsArraySet_ConvBiasActivation.js"; impo...
JavaScript
0.000001
@@ -182,62 +182,8 @@ s%22;%0A -import * as Weights from %22../../Unpacker/Weights.js%22;%0A impo @@ -823,16 +823,17 @@ epthwise +. Pool%22, D
ba70aba5132157e1ec43264a2cc5257ba0ba880c
Rename CMS label to Pages
src/client/app/states/manage/cms/cms.state.js
src/client/app/states/manage/cms/cms.state.js
(function() { 'use strict'; angular.module('app.states') .run(appRun); /** @ngInject */ function appRun(routerHelper, navigationHelper) { routerHelper.configureStates(getStates()); navigationHelper.navItems(navItems()); navigationHelper.sidebarItems(sidebarItems()); } function getStates()...
JavaScript
0.000103
@@ -650,11 +650,13 @@ l: ' -CMS +Pages ',%0A
4cff6942d05ee5b85420e67cce4dda552775e76d
format the code
ascii-tree.js
ascii-tree.js
var levels = []; var freetree = require('freetree'); var chars = [ String.fromCharCode(9500), String.fromCharCode(9472), String.fromCharCode(9492), String.fromCharCode(9474)]; function generate(str) { var tree = freetree.parse(str); return _generate(tree, true); } function compose(tree, end) ...
JavaScript
0.999999
@@ -55,20 +55,11 @@ ar c -hars = %5B%0A +0 = Str @@ -80,21 +80,26 @@ de(9500) -,%0A +;%0Avar c1 = String. @@ -116,21 +116,26 @@ de(9472) -,%0A +;%0Avar c2 = String. @@ -156,13 +156,18 @@ 492) -,%0A +;%0Avar c3 = Str @@ -188,17 +188,16 @@ de(9474) -%5D ; %0A%0Afunc @@ -368,26 +368,13 @@ ? c -...
955b0807a4b2e156f1fa9bf25098c5221aa3ad93
fix test name
cypress/integration/click_spec.js
cypress/integration/click_spec.js
context('Scroll', () => { beforeEach(() => { cy.server() cy.viewport(800, 600) cy.visit('/cypress/fixtures/click.html') }) it('allows clicking links in popovers', () => { cy.findByTitle('See Footnote 1').click() cy.findAllByText('a link') .first() .click() cy.findByText('OK') ...
JavaScript
0.999665
@@ -6,14 +6,13 @@ xt(' -Scroll +Click ', ( @@ -261,23 +261,16 @@ nk') -%0A .first() %0A @@ -269,15 +269,8 @@ st() -%0A .cli
dcab314ba5e8c6f6a0fc9ed5d0925f06aff8df50
Add pieCornerRadius and piePadAngle
d3pie-source/_default-settings.js
d3pie-source/_default-settings.js
// --------- _default-settings.js -----------/** /** * Contains the out-the-box settings for the script. Any of these settings that aren't explicitly overridden for the * d3pie instance will inherit from these. This is also included on the main website for use in the generation script. */ var defaultSettings = { he...
JavaScript
0.000003
@@ -748,16 +748,17 @@ adius: %22 +4 0%25%22,%0A%09%09p @@ -772,24 +772,66 @@ Radius: null +,%0A%09%09pieCornerRadius :0,%0A%09%09piePadAngle:0.00 %0A%09%7D,%0A%09data:
d3eb461c8c08b3b14189c77707090e2c6d96450a
Add code clarification comment
packages/node_modules/pouchdb-req-http-query/lib/index.js
packages/node_modules/pouchdb-req-http-query/lib/index.js
/* Copyright 2014, Marten de Vries 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 in writing,...
JavaScript
0
@@ -2908,24 +2908,223 @@ %7D%0A %7D%0A + // Note: this is not missing a 'typeof'. %22undefined%22 is literally part of%0A // the request format. See for more info:%0A // http://docs.couchdb.org/en/2.0.0/json-structure.html#request-object%0A xhr.send
be1153e502a11a7076464c36d68d8c37afbb0152
add timeout before reflow
angular-floatThead.js
angular-floatThead.js
/** * floatThead wrapper for AngularJS * @version v0.1.0 - 2015-10-25 * @link https://github.com/brandon-barker/angular-floatThead * @author Brandon Barker * @license MIT License, http://www.opensource.org/licenses/MIT */ (function () { 'use strict'; angular .module('floatThead', []) .directive('floa...
JavaScript
0
@@ -1609,32 +1609,115 @@ , function () %7B%0A + //give time for rerender before reflow%0A $timeout(function() %7B%0A jQuery @@ -1740,32 +1740,51 @@ head('reflow');%0A + %7D, 100);%0A %7D, true)
ae6f47ff63a8d381fe4e98c25469244a27ecd125
improve test descriptions and add a check for failing conformity
spec/buffers_spec.js
spec/buffers_spec.js
'use strict'; require('comfychair/jasmine'); var comfy = require('comfychair'); var cb = require('../index'); describe('a ring buffer with an appropriate model', function() { var rb = { apply: function(command, args) { if (command == 'init') this._data = cb.impl.RingBuffer(args[0]); else ...
JavaScript
0
@@ -5177,34 +5177,8 @@ ffer - with an appropriate model ', f @@ -5203,32 +5203,48 @@ conforms to the +standard buffer model', function @@ -5330,49 +5330,23 @@ ('a -standard buffer with an appropriate model +dropping buffer ', f @@ -5371,32 +5371,48 @@ conforms to the +dropping buffer model', function @@ -5...
716ff89d44b7055d5385f655b8cc99c02b150316
check if message was passed
once.js
once.js
module.exports = function once(fn, message) { return function onetime(a) { var result; if (fn instanceof Function) { result = fn(a); fn = null; return result; } throw new Error(message); }; };
JavaScript
0.000001
@@ -173,16 +173,45 @@ t;%0A%09%09%7D%0A%0A +%09%09if (message !== void 0) %7B%0A%09 %09%09throw @@ -230,15 +230,19 @@ ssage);%0A +%09%09%7D%0A %09%7D;%0A%7D;%0A
dc605d96e0b6b9f040445e546eb7b3033c55ad48
Remove unused TAB_RECIPE_MAP
projects/recipeview/src/js/background.js
projects/recipeview/src/js/background.js
import WAE from 'web-auto-extractor'; import browser from 'webextension-polyfill'; import sanitize from './sanitize'; // Mapping of tab id -> recipe id const TAB_RECIPE_MAP = {}; // Mapping of tab id -> recipe that is not persisted to storage. const EPHEMERAL_TAB_MAP = {}; // Keys that should have `sanitize.common...
JavaScript
0.000005
@@ -149,77 +149,9 @@ ipe -id%0Aconst TAB_RECIPE_MAP = %7B%7D;%0A// Mapping of tab id -%3E recipe that is +( not @@ -170,17 +170,17 @@ storage -. +) %0Aconst E @@ -632,52 +632,8 @@ %3E %7B%0A - TAB_RECIPE_MAP%5Btab.id%5D = recipeId;%0A%0A @@ -902,24 +902,24 @@ tabId) =%3E %7B%0A + delete E @@...
98e84b65d506b20c0ee1fece44c9a497a310188f
Update test for completeSpec
spec/completeSpec.js
spec/completeSpec.js
describe('belhop', function() { it('can complete expressions', function() { expect(belhop.complete.apply).toBeDefined(); }); describe('completion', function() { it('can handle deletion actions', function() { var completion = { completion: { actions: [ { ...
JavaScript
0
@@ -716,32 +716,8 @@ = %7B%0A - completion: %7B%0A
7bb4a5bb8339c0aa0db9afe707989a6fd4aecef7
Fix some bugs in KeyStream
packages/ember-metal/lib/streams/key-stream.js
packages/ember-metal/lib/streams/key-stream.js
import Ember from 'ember-metal/core'; import merge from "ember-metal/merge"; import create from 'ember-metal/platform/create'; import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import { addObserver, removeObserver } from "ember-metal/observer"; import Stream from "embe...
JavaScript
0.000002
@@ -749,27 +749,86 @@ rce;%0A this. -obj +dependency = this.addDependency(source);%0A this.observedObject = undefined @@ -953,16 +953,19 @@ var obj +ect = read( @@ -989,16 +989,19 @@ if (obj +ect ) %7B%0A @@ -1016,16 +1016,19 @@ get(obj +ect , this.k @@ -1063,36 +1063,70 @@ ive() %7B%0A -if (thi...
ea73bb8e3c3d0acd945b3d39a10d9b4f1fd5f50c
fix route stack restore
src/RootScene.js
src/RootScene.js
import React, { Component } from 'react'; import { Navigator } from 'react-native'; import { initActions, actions, actionCreators } from './actions'; import { propTypes as navigationPropTypes } from './reducer'; import navigationBarRouteMapper from './navigationBarRouteMapper'; export default class RootScene extends ...
JavaScript
0
@@ -571,16 +571,28 @@ uteStack +.asMutable() %0A
5e242321c1932d372eca97967de4a1a656c93667
Fix ETH address
src/components/App/components/Footer/index.js
src/components/App/components/Footer/index.js
import React from 'react'; import communitySticker from './images/community.png'; import './index.css'; const SOCIAL_ICONS = [ { link: 'https://www.youtube.com/channel/UCCpJqoXegl501zfHevtTilQ', className: 'fa-youtube-play', }, { link: 'https://github.com/eltcoin', className: 'fa-github', }, ...
JavaScript
0.000109
@@ -2198,32 +2198,67 @@ xt-weight-light%22 + style=%7B%7B wordBreak: 'break-all' %7D%7D %3E%0A 0x4EEd
457970214c747c2406d65084c085bf555ed1611b
Fix issue where ads were not shown
src/admanager.js
src/admanager.js
/* global GCMath, logger, _, Emitter */ /* jshint ignore:start */ import event.Emitter as Emitter; import util.underscore as _; import math.util as GCMath; /* jshint ignore:end */ exports = new (Class(Emitter, function () { "use strict"; var is_dismissed = false, chosen = false, ad, available_networks...
JavaScript
0.000001
@@ -3846,24 +3846,25 @@ (chosen) %7B%0A +%0A if (!_ @@ -3879,34 +3879,38 @@ ined(ad_details%5B -ad +chosen %5D)) %7B%0A ad @@ -3926,16 +3926,20 @@ chosen%5D. +obj. show();%0A
9de45d1e1952cde6e48a1409758805345588f7e5
Add buzz animation
app/client/js/fink.js
app/client/js/fink.js
'use strict' ;(function (Fink, fetch, isURI) { Fink.isURI = function (uri) { return isURI(window.location.hostname, uri) } Fink.register = function (uri) { console.log("'here") console.log(fetch) return fetch(Fink.endpoint, { method: 'post', headers: { 'Accept': 'application/...
JavaScript
0
@@ -165,56 +165,8 @@ ) %7B%0A - console.log(%22'here%22)%0A console.log(fetch)%0A @@ -452,16 +452,221 @@ %7D)%0A %7D +%0A%0A Fink.buzz = function () %7B%0A var elem = document.getElementById('fink-logo')%0A elem.classList.add('toggleBuzz')%0A setTimeout(function () %7B%0A elem.classList....
89bc832da65878450657cc088ad80cd6c615e940
Add loading and empty state for dashboard
src/components/dashboardPage/DashboardPage.js
src/components/dashboardPage/DashboardPage.js
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as apiActions from '../../actions/apiActions'; import { Link } from 'react-router'; import Card from '../card'; import Button from '../button'; import Footer from '../footer'; import SearchInput from '../...
JavaScript
0
@@ -568,16 +568,21 @@ aracters + = %5B%5D , isFetc @@ -636,17 +636,461 @@ %3Cdiv%3E%0A -%0A + %7BisFetching && characters.length === 0 &&%0A %3Ch2%3ELoading...%3C/h2%3E%0A %7D%0A %7B!isFetching && characters.length === 0 &&%0A %3Cdiv%3E%0A ...
2f6ac8325106da091e0d414a72ee491555863b0d
improve api
src/api/index.js
src/api/index.js
import Vue from 'vue' import VueResource from 'vue-resource' import { Promise } from 'es6-promise' import conf from '../conf.json' import { objReduce } from '../utils' // Install plugin Vue.use(VueResource) /** * format Gihut Api url for content list * @returns {string} */ function getListUrl () { // @see https...
JavaScript
0.998522
@@ -143,16 +143,37 @@ bjReduce +, onlyTitle, onlyDate %7D from @@ -183,16 +183,16 @@ /utils'%0A - %0A// Inst @@ -227,33 +227,33 @@ ce)%0A%0A/**%0A * -f +F ormat Gi hut Api url @@ -232,35 +232,36 @@ /**%0A * Format Gi -hut +tHub Api url for con @@ -664,17 +664,17 @@ %0A * -f +F ormat Gi hut @@ -673,11...
1850c157e12a5cb4929db9d7a6ed7ee0a7d6163d
Refactor references to BranchesList to BranchesPage in BranchesPage.js
src/components/repos/branches/BranchesPage.js
src/components/repos/branches/BranchesPage.js
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {browserHistory} from 'react-router'; import toastr from 'toastr'; class BranchesList extends React.Component { constructor(props, context) { super(props, context); this.state = { repo: Object.assign({}, props.repo) ...
JavaScript
0
@@ -160,20 +160,20 @@ Branches -List +Page extends @@ -1237,20 +1237,20 @@ Branches -List +Page .propTyp @@ -1895,11 +1895,11 @@ ches -List +Page );%0A
d8a553d200194e9c091ef105bfb6a04d15269a12
rename project -> projectName
packages/selenium-ide/src/neo/IO/filesystem.js
packages/selenium-ide/src/neo/IO/filesystem.js
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
JavaScript
0.000001
@@ -5518,16 +5518,20 @@ project +Name : projec
76b52144abca3057c361c4b1369f61e2b5f467a9
update order of embedded_widget_use
impactstoryanalytics/static/js_widgets/embedded_widget_use.js
impactstoryanalytics/static/js_widgets/embedded_widget_use.js
var Embedded_widget_use = function() { } Embedded_widget_use.prototype = { create:function(data){ var baseOptions = { iaLabelWidth: "1" } var sparklineOptions = [ { iaClassName:"clickthroughs" }, { iaClassName:"...
JavaScript
0.000001
@@ -240,28 +240,24 @@ ssName:%22 -clickthrough +pageview s%22%0A @@ -373,9 +373,8 @@ sion -%25 %22,%0A @@ -590,32 +590,36 @@ aClassName:%22 -pageview +clickthrough s%22%0A
e125931012bfc026356f110f9de40f31d064cda0
complete jsdoc + pass instantsearch to view
src/connectors/search-box/connectSearchBox.js
src/connectors/search-box/connectSearchBox.js
import {checkRendering} from '../../lib/utils.js'; const usage = `Usage: var customSearchBox = connectMenu(function render(params, isFirstRendering) { // params = { // query, // onHistoryChange, // search, // } }); search.addWidget( customSearchBox({ [ onQueryHook ] }); ); Full documentation av...
JavaScript
0
@@ -214,16 +214,45 @@ search,%0A + // instantSearchInstance%0A // %7D%0A%7D @@ -872,16 +872,47 @@ g%7D query + the query from the last search %0A * @pro @@ -947,39 +947,248 @@ ange -%0A * @property %7Bfunction%7D search + set a callback when the browser history changes%0A * @property %7Bfunction%7D search tri...
69454caa8503cb7cfa7366d569ed16cd9bf4caa8
Remove redux-logger and setup redux devtools
app/configureStore.js
app/configureStore.js
import { createStore, applyMiddleware } from 'redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import oaaChat from './reducers' const configureStore = () => { const store = createStore( oaaChat, applyMiddleware(thunk, logger())) return store } export default configureStore
JavaScript
0
@@ -50,42 +50,8 @@ ux'%0A -import logger from 'redux-logger'%0A impo @@ -182,16 +182,99 @@ aaChat, +%0A%09%09window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),%0A%09%09 applyMid @@ -290,18 +290,8 @@ hunk -, logger() ))%0A%0A
b0e9586f742314c6e0981f80d358d5f03497445a
replace cheerio with native DOM in extractSituation
src/core/extractSituation/extractSituation.js
src/core/extractSituation/extractSituation.js
import cheerify from '../../utils/cheerify/cheerify'; const extractSituation = senseMarkup => { const $ = cheerify(senseMarkup); const situation = $('.REGISTERLAB') .text() .trim() return situation; } export default extractSituation;
JavaScript
0.000091
@@ -1,20 +1,18 @@ import -cheer +dom ify from @@ -29,27 +29,22 @@ ils/ -cheerify/cheer +domify/dom ify' -; %0A%0Aco @@ -87,106 +87,195 @@ %3E %7B%0A -%09 + const -$ = cheerify(senseMarkup);%0A%0A%09const situation =%0A%09%09$('.REGISTERLAB')%0A%09%09%09.text()%0A%09%09%09.trim()%0A%0A%09 +elements = %5B......
b68701d662145481e9c83863d33308ed4905fa53
Increase font size to 13.
hyper.js
hyper.js
// Future versions of Hyper may add additional config options, // which will not automatically be merged into this file. // See https://hyper.is#cfg for all currently supported options. module.exports = { config: { // default font size in pixels for all tabs fontSize: 12, // font family with optional fallbacks...
JavaScript
0
@@ -269,17 +269,17 @@ tSize: 1 -2 +3 ,%0A%0A%09%09//
f7d6d3ff62ac6de0022e4b014ac5b04096758d48
Tweak Content name to be not nullable
src/db/migrations/20161005172637_init_demo.js
src/db/migrations/20161005172637_init_demo.js
export async function up(knex) { await knex.schema.createTable('Resource', (table) => { table.uuid('id').notNullable().primary() table.string('name', 32).notNullable() table.string('mime', 32) table.string('md5') table.integer('status').notNullable() table.bigInteger('createdAt') table.big...
JavaScript
0.000011
@@ -508,32 +508,46 @@ ring('name', 32) +.notNullable() %0A table.strin
f6526043e8189ac97e4ed05e43e3d9dea969adc3
Refactor code and add refresh link expiration date
app/controllers/urlHandler.server.js
app/controllers/urlHandler.server.js
'use strict'; function urlHandler (db) { var urls = db.collection('urls'); urls.createIndex({ 'createdAt': 1 }, { expireAfterSeconds: 15552000 }); // expire links after 180 days. function generatePathName (callback) { var urlProjection = { '_id': false }; var pathName = String(Math.floor(M...
JavaScript
0
@@ -73,16 +73,56 @@ urls');%0A + var urlProjection = %7B _id: false %7D;%0A urls @@ -269,54 +269,8 @@ ) %7B%0A - var urlProjection = %7B '_id': false %7D;%0A @@ -511,33 +511,32 @@ urls.findOne(%7B -' short_url': 'htt @@ -520,33 +520,32 @@ dOne(%7B short_url -' : 'https://timol @@ -1053,54 +...
dc4fb228e4ecdda9f5b2e11a7fcebf90e15d4c11
make the 'cost' mask empty with the gauge
app/game/play/widgets/gauge/gauge.js
app/game/play/widgets/gauge/gauge.js
/* * Copyright (C) 2015-2016 by Arena of Titans Contributors. * * This file is part of Arena of Titans. * * Arena of Titans 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 Licens...
JavaScript
0
@@ -2680,32 +2680,359 @@ rentY %3C newY) %7B%0A + // Here we are emptiing the gauge. If the user still has its mouse over the trump,%0A // we adjust the height of the mask so the gauge empties to the original bottom of%0A // it.%0A if (this.heightForCost %3E ...
62ea1176bd1aa0438daaa3477dd81bacf8b657c3
Add OS object
importPhoto.js
importPhoto.js
// // Import user photo from AD to Directum // var $={Dir:{ // Global variable Server:'Dir9', // Directum server DB: 'Directum' // Directum database }}; //WScript.Interactive=false; goDB(); readUser(); goJpg(); //--[Functions] function goDir() { WScript.Echo("Connecting to Directum..."); var lp=new ActiveXObj...
JavaScript
0.000014
@@ -2679,24 +2679,491 @@ .Value);%0A%7D%0A%0A +function rnd(N)%0A%7B%0A for(var S=''; S.length%3C(N%7C%7C12); )%0A %7B%0A var n=Math.floor(62*Math.random());%0A S+=String.fromCharCode('Aa0'.charCodeAt(n/26)+n%2526);%0A %7D%0A return S;%0A%7D%0A%0Afunction objOS()%0A%7B%0A var os=%7B%7D;%0A os.fso=new ActiveXObject(%...
fcbaeb4705d02858f59c1142f77117e953c4db96
Update available locales to prioritise english
app/libs/locale/available-locales.js
app/libs/locale/available-locales.js
'use strict'; // Load our requirements const glob = require('glob'), path = require('path'), logger = require('../log'); // Build a list of the available locale files in a given directory module.exports = function(dir) { // Variables let available = []; // Run through the installed locales and add...
JavaScript
0
@@ -120,11 +120,22 @@ ire( -'.. +__base + 'libs /log @@ -274,16 +274,20 @@ able = %5B +'en' %5D;%0A%0A // @@ -510,81 +510,49 @@ // -Add to our object%0A logger.debug('Found the %22%25s%22 locale.', lang); %0A +Ignore english%0A if ( lang !== 'en' ) %7B ava @@ -569,16 +569,18 @@ h(lang); + %7D %0A ...
2dbfb45b12a53f7a11d2af7b8ed0012c1363a8ff
Fix bug on search change. Page doesn't reset so no programs are return.
reducers/programs.js
reducers/programs.js
import { fromJS } from 'immutable' const initialState = fromJS({ loading: null, error: false, data: false, search: '', page: 0, count: 0 }) function programsReducer (state = initialState, action) { switch (action.type) { case 'LOAD_PROGRAMS': return state .set('loading', true) ...
JavaScript
0
@@ -719,16 +719,40 @@ n.data)%0A + .set('page', 0)%0A case
9c5fccf3706194d6d2431287e54fc3a2095a225e
rename descriptor to dependency
core/arch/Injector.js
core/arch/Injector.js
'use strict' /** * Dependencies */ const _ = require('lodash') const DependencyCollection = require('./DependencyCollection') const Dependency = require('./Dependency') /** * Symbols */ const dependencies = Symbol() /** * Injector */ class Injector { /** * Constructor */ constructor () { this[d...
JavaScript
0.000008
@@ -164,17 +164,16 @@ ndency') - %0A%0A/**%0A * @@ -1879,32 +1879,32 @@ %7B%0A let de -scriptor +pendency = this%5Bdepe @@ -1926,32 +1926,32 @@ %0A%0A if (de -scriptor +pendency ) %7B%0A le @@ -1987,24 +1987,24 @@ ack = de -scriptor +pendency .callbac @@ -2010,32 +2010,32 @@ ck%0A%0A de -scri...
cf92201118e3c6e63e3e11e82b9183bd7c63ef66
Add 'toString()' overrides to 'id' and 'Class' instances
Class.js
Class.js
/** * Wraps up Objective-C 'Classes'. * There can only be 1 instance of a given class (i.e. no naming collisions, * this is C we're dealing with here), so this module keeps a cache of the * created classes for when they are re-requested. * * Now also houses the 'wrapId' stuff. So this file should be renamed at so...
JavaScript
0.000003
@@ -537,16 +537,174 @@ tClass%0A%0A +var classToString = function toString () %7B%0A return this.className;%0A%7D%0A%0Avar idToString = function toString () %7B%0A return this('description')('UTF8String');%0A%7D%0A%0A // Gets @@ -1325,16 +1325,49 @@ = name;%0A + wrap.toString = classToString;%0A // cac @@ -14...
12524c221430b9314ab8f689ebbd53c7fcd5ee2c
Define _ and flowplayer.
flowplayer/scripts/flowplayer.js
flowplayer/scripts/flowplayer.js
(function (angular, navigator) { 'use strict'; var flowplayerModule = angular.module('flowplayer', [ 'ngSanitize' ]); flowplayerModule.constant('FLOWPLAYER', { FLASH_CONFIG: {}, FLOWPLAYER_CONFIG: {} }); flowplayerModule.run(['$templateCache', function ($templateCache)...
JavaScript
0
@@ -12,16 +12,19 @@ angular, + _, navigat @@ -25,16 +25,28 @@ avigator +, flowplayer ) %7B%0A @@ -6646,21 +6646,50 @@ window. -navigato +_, window.navigator, window.flowplaye r));%0A
8482e235c1a6c35254d035b9f2d0d68e21d0de7d
Fix bug on Firefox where min-height is not supported with flexbox
assets/app.js
assets/app.js
/* particlesJS.load(@dom-id, @path-json, @callback (optional)); */ /* particlesJS.load('particles-js', 'assets/particles.json', function() { console.log('callback - particles.js config loaded'); var canvasElement = document.getElementsByClassName("particles-js-canvas-el"); for (var i=0; i<canvasElement.l...
JavaScript
0
@@ -447,24 +447,520 @@ ction()%7B%0D%0A%0D%0A +%09// Firefox fix to set height of project boxes on homepage%0D%0A%09window.addEventListener('resize', function()%7B%0D%0A%09%09$(%22.project%22).each(function()%7B%0D%0A%09%09%09$(this).css(%22height%22, $(this).css(%22width%22));%0D%0A%0D%0A%09%09%09$(this).find('*').ea...
fe997c161a0ccf59f6b4bd0f1779494e7feea67d
Fix the deprecated command to use the new version
auth/index.js
auth/index.js
(function (auth) { var data = require("../dataService"); var hasher = require("./hasher"); var passport = require("passport"); var localStrategy = require("passport-local").Strategy; function VerifyUser(username, password, next) { data.getUser(username, function (err, user) { if (!err && user){...
JavaScript
0.000276
@@ -717,20 +717,16 @@ ;%0A %7D%0A - %0A %7D;%0A%0A @@ -859,17 +859,24 @@ es.s -end(401, +tatus(401).send( %22Not
50198236a6b597235c9f128c2a4ef54ba668f36c
Fix spelling in comment
authHelper.js
authHelper.js
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file. var AuthenticationContext = require("adal-node").AuthenticationContext; // The application registration (must match Azure AD config) var credentials = { authority: "https://login.microsofto...
JavaScript
0.004129
@@ -1805,18 +1805,18 @@ in a tok -n e +n respons
0ca3e7c0473e567baea11b0acb64116fc1ee4284
Add some test output
tests.js
tests.js
#!/usr/bin/env node var assert = require('assert'); var express = require('express'); var client = require('./lib/rest-sugar-client'); main(); function main() { var port = 3000; var apiPrefix = '/api'; var app = express(); app.configure(function() { app.use(express.methodOverride()); // ha...
JavaScript
0.999897
@@ -791,32 +791,67 @@ body);%0A %7D);%0A%0A + console.log('Running tests!');%0A app.listen(3 @@ -1442,24 +1442,72 @@ , d.name);%0A%0A + console.log('Tests done!');%0A
f046e82182dfe6a5e7d6b3890ab42fc2c86217cb
prepare for new ref syntax
src/name-expression.js
src/name-expression.js
var hyphenMatcher = /-([a-z])/gi; function toUpperCase(match, char, index, str) { return char.toUpperCase(); } export class NameExpression { constructor(attribute, value){ this.attribute = attribute; this.property = attribute.replace(hyphenMatcher, toUpperCase); this.discrete = true; this.mode = ...
JavaScript
0.000002
@@ -1,281 +1,86 @@ -var hyphenMatcher = /-(%5Ba-z%5D)/gi;%0A%0Afunction toUpperCase(match, char, index, str) %7B%0A return char.toUpperCase();%0A%7D%0A%0Aexport class NameExpression %7B%0A constructor(attribute, value)%7B%0A this.attribute = attribute;%0A this.property = attribute.replace(hyphenMatcher, toUpper...
ba6e26abf6fc1eeb6689ecf05a01156cea225cd3
move reset event after event bindings
source/javascripts/formNoCarousel.js
source/javascripts/formNoCarousel.js
export default class FormHandler { constructor() { this.monthlyAmounts = [5, 10, 15, 25, 55, 85]; this.yearlyAmounts = [50, 75, 100, 250, 500, 1000]; this.defaultMonthlyAmountsIndex = 2; this.defaultYearlyAmountsIndex = 2; this.amountsAttach = $('#amounts-attach'); this.frequenciesRadiosClass ...
JavaScript
0.000001
@@ -4905,24 +4905,122 @@ 0%5D.reset();%0A + this.frequenciesRadios.prop('checked', false);%0A this.amountsRadios.prop('checked', false);%0A this.res @@ -5061,24 +5061,24 @@ ).change();%0A - this.res @@ -5140,31 +5140,8 @@ ) %7B%0A - this._resetForm();%0A @@ -5224,32 +5224,32 @@ ManualEvents...
30be2e4cab93debd7aef89795762a19eade856b7
use appium instead of selenium (#9)
protractor.config.js
protractor.config.js
const HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter'); const SpecReporter = require('jasmine-spec-reporter'); const webpackConfig = require('./webpack.config'); const args = require('yargs').argv; const e2eBaseFolder = './source/test/e2e'; const config = { baseUrl: `http://localhost:$...
JavaScript
0
@@ -454,18 +454,17 @@ terval: -90 +3 0 * 1000 @@ -3468,14 +3468,14 @@ e: ' -iphone +Safari ',%0A @@ -3489,45 +3489,15 @@ -platform: 'OS X 10.10',%0A v +appiumV ersi @@ -3505,11 +3505,14 @@ n: ' -9 +1.4 .1 +6 ',%0A @@ -3582,32 +3582,101 @@ on: 'portrait',%0A + platformVersion: '9....
bc6bf58f7ca82e927999c4b639e8a140394e0b66
Remove duplicate data fetching
src/FullTopicTree.js
src/FullTopicTree.js
import TopicTree from './TopicTree.js'; let raw; if (__SERVER__) { // TODO(jlfwong): Make this actually download data from KA instead of just // pulling from disk. /* const PROJECTION = JSON.stringify({ topics:[{ id: 1, slug: 1, translatedTitle: 1, translatedDesc...
JavaScript
0.000146
@@ -752,16 +752,179 @@ son%60));%0A + raw.topics.forEach(t =%3E %7B%0A t.childData = t.childData.filter(c =%3E (c.kind === %22Topic%22 %7C%7C%0A c.kind === %22Video%22));%0A %7D)%0A %7D else %7B
aedd111cbd9151aaf30b993cb8456489c9c498d3
Increase "modules - test app" self-test wait time to fix Circle (#8948)
tools/tests/modules.js
tools/tests/modules.js
var selftest = require('../tool-testing/selftest.js'); var Sandbox = selftest.Sandbox; var utils = require('../utils/utils.js'); import { getUrl } from '../utils/http-helpers.js'; var MONGO_LISTENING = { stdout: " [initandlisten] waiting for connections on port" }; function startRun(sandbox) { var run = sandbox.r...
JavaScript
0
@@ -748,9 +748,10 @@ ecs( -6 +18 0);%0A
19df6bd11dd33533892dd64f93fb65f27f548404
add toggleFullscreen(), fixes #3
public/js/scripts.js
public/js/scripts.js
$(document).ready(function() { var anchors = []; $('.section').each(function(i) { var gallery = $(this).attr('data-gallery'); anchors.push(gallery); }); var titleText = $('.title').text(); $('#fullpage').fullpage({ loopBottom: true, loopTop: true, controlArrows: false...
JavaScript
0
@@ -1036,24 +1036,126 @@ );%0A %7D);%0A%0A + $('#fullScreen').click(function(e) %7B%0A e.preventDefault();%0A toggleFullScreen();%0A %7D);%0A%0A %0A // @@ -1725,12 +1725,1182 @@ ce);%0A %7D);%0A%7D +%0A%0A// https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mod...
5eb44ac6669a61a21b9b817241ec55cb93b77502
Update crowd-tangle-content-service.js
lib/fetching/content-services/crowd-tangle-content-service.js
lib/fetching/content-services/crowd-tangle-content-service.js
var request = require('request'); var url = require('url'); var prettyjson = require('prettyjson'); var ContentService = require('../content-service'); var util = require('util'); var config = require('../../../config/secrets'); var request = require('request'); var dateFormat = require('dateformat'); var _ = requir...
JavaScript
0.000001
@@ -2358,17 +2358,16 @@ e body.. -' %0A%09 va @@ -2935,68 +2935,8 @@ %7D);%0A -%09 console.log('got here');%0A%09 console.log(reportData);%0A %09
a3a58a3be99aa306cb15c7d82eec5f8a29007bbd
Fix lint errors
lib/node_modules/@stdlib/math/base/special/cosm1/lib/cosm1.js
lib/node_modules/@stdlib/math/base/special/cosm1/lib/cosm1.js
'use strict'; /* * The original C code, long comment, copyright, license, and constants are from [Cephes]{@link http://www.netlib.org/cephes}. * * The implementation follows the original, but has been modified for JavaScript. */ /* * COPYRIGHT * * Cephes Math Library Release 2.8: June, 2000 * Copyright 1984, 1987, 1...
JavaScript
0.000396
@@ -1324,17 +1324,16 @@ 4621e-14 -, %0A%5D;%0Avar @@ -1841,17 +1841,16 @@ var - xx;%0A%0A%09if ( x @@ -1845,16 +1845,17 @@ xx;%0A%0A%09if + ( x %3C -P @@ -1920,16 +1920,18 @@ x;%0A%09xx = + ( -0.5 * @@ -1937,9 +1937,13 @@ xx -+ +) + ( xx @@ -1960,16 +1960,18 @@ yval( xx + ) );%0A%09ret
2cfab17645c742a5d66ca234afed3c252268c62d
Use unicode delta and expected value shortcut
lib/node_modules/@stdlib/math/base/special/cospi/test/test.js
lib/node_modules/@stdlib/math/base/special/cospi/test/test.js
'use strict'; // MODULES // var tape = require( 'tape' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var incrspace = require( '@stdlib/math/utils/incrspace' ); var PINF = require( '@stdlib/math/constants/float64-pinf' ); var NINF = require( '@stdlib/math/constants/float64-ninf' ); var EPS = require( '@...
JavaScript
0.000001
@@ -2147,23 +2147,16 @@ %5Bi%5D+'. E -xpected : 0' );%0A @@ -2474,31 +2474,24 @@ '+x%5Bi%5D+'. E -xpected : '+expected @@ -2650,23 +2650,16 @@ '+y+'. E -xpected : '+expe @@ -2683,21 +2683,17 @@ +tol+'. -delta +%CE%94 : '+delt
ca88ddb88ed94eac32417d0e4ba2b3006a220c02
increment & generate keys for welcome messages
src/settings/schema.js
src/settings/schema.js
'use strict'; module.exports = [ `CREATE TABLE IF NOT EXISTS channels ( id BIGINT UNSIGNED NOT NULL PRIMARY KEY, guild_id BIGINT UNSIGNED, language VARCHAR(5) NOT NULL DEFAULT 'en-US', platform VARCHAR(3) NOT NULL DEFAULT 'pc', webhook TEXT, respond_to_settings BOOLEAN NOT NULL DEFAULT TRUE, ...
JavaScript
0
@@ -3089,39 +3089,43 @@ guild_id -BIGINT UNSIGNED +bigint(20) unsigned NOT NULL,%0A @@ -3133,23 +3133,23 @@ is_dm -VARCHAR +varchar (1) NOT @@ -3173,59 +3173,131 @@ _id -BIGINT UNSIGNED NOT NULL,%0A message TEXT NOT NULL +bigint(20) unsigned NOT NULL,%0A message text NOT NULL,%0A welcome_messag...
0a120de7605abaf1325d51ca5e7764f6a816f904
change text
src/states/Commands.js
src/states/Commands.js
import { BackgroundColor } from "../Constants.js"; class Commands extends Phaser.State { create() { this.game.stage.setBackgroundColor(BackgroundColor); const moveText = "Arrows keys/ Left Pad"; const aimText = "Mouse cursor / A, Q, S, D"; const redoText = "Left mouse button / B key"; const era...
JavaScript
0.000422
@@ -325,19 +325,20 @@ yer = %22 -Lef +Righ t mouse
d56e38f355c501711f3905418d5926ccd3879398
Remove newlines from image data
utils.js
utils.js
var sys = require('sys') ; exports.parse_header_block = parse_header_block; function parse_header_block(content) { var result = new Array(); if (content == '') { return result; } var header_arr = content.split("\r\n"); var current_key = false; var extra = false; for (var i = 0; i < header_arr....
JavaScript
0.000008
@@ -2147,16 +2147,98 @@ %09break;%0A +%09case 'image/png':%0A%09case 'image/jpeg':%0A%09%09content = content.replace(/%5Cr%5Cn/mg, '');%0A %09default
4ecacd010b0b7c45f071788847a9c208f18ea81f
fix typo in last commit
batch.js
batch.js
'use strict'; const uuid = require('uuid'); const _ = require('lodash'); const url = require('url'); const qs = require('querystring'); const mime = require('mimelib'); const Odata = require('./odata'); const util = require('util'); const Expression = require('./expression'); var Batch = function(parent) { this.par...
JavaScript
0.000019
@@ -2533,13 +2533,13 @@ dary +%7D %5Cr%5Cn -%7D %60;%0A
8fdaba3dfb744485c8b29dd3ae44d66f2967e801
Use safer NaN check in query
Query.js
Query.js
/* eslint no-unused-vars: ["error", { "varsIgnorePattern": "_" }] */ /* globals isNumeric_, wrapValue_ */ /** * This callback type is called `queryCallback`. * Callback should utilize the Query parameter to send a request and return the response. * * @callback queryCallback * @param {object} query the Structured...
JavaScript
0.000001
@@ -1983,16 +1983,22 @@ if (isN +umberN aN(value
367eb39574916934cf52ffee1b79996cf995f4ad
purge useless code after discovering its not much cop
Reversi/reversi.js
Reversi/reversi.js
"use strict"; var assert = require('assert'); var WHITE = 1; var BLACK = 2; var isBlank = function(c) { return c === '.'; }; var isBlack = function(c) { return c === 'B'; }; var isWhite = function(c) { return c === 'W'; }; var opposite = function(c) { return isBlack(c) ? 'W' : 'B'; }; var capturableIndices = functi...
JavaScript
0
@@ -654,456 +654,85 @@ %0A%0A -var black = %5B%5D;%0A var white = %5B%5D;%0A%0A for (var i=0;i%3C8;++i) %7B%0A var row = lines%5Bi%5D;%0A for (var j=0;j%3C8;++j) %7B%0A if (isBlack(row%5Bj%5D)) %7B%0A black.push(%5Bi,j%5D);%0A %7D else if (isWhite(row%5Bj%5D)) %7B%0A white.push(%5Bi,j...
4a34993478c172487848b73fe2713152365a99a8
improve benchmarks a bit
bench.js
bench.js
var Benchmark = require('benchmark'); var cover = require('./index.js').tiles; var fs = require('fs'); var polygon = JSON.parse(fs.readFileSync('./test/fixtures/building.geojson')); var line = JSON.parse(fs.readFileSync('./test/fixtures/road.geojson')); var point = JSON.parse(fs.readFileSync('./test/fixtures/point.geo...
JavaScript
0.000001
@@ -101,23 +101,24 @@ );%0A%0Avar -polygon +building = JSON. @@ -319,24 +319,100 @@ geojson'));%0A +var russia = JSON.parse(fs.readFileSync('./test/fixtures/russia.geojson'));%0A var zooms = @@ -418,24 +418,17 @@ %5B6, -12,1 8, -20,22,25,2 +10,12,1 8%5D;%0A @@ -759,15 +759,16 @@ te, -polygon +building , '...
99d5e67936a72dcc395cf052603aa955304037fb
Rewrite clusterHide/clusterShow to not even change options.opacity. Refs #890
src/MarkerOpacity.js
src/MarkerOpacity.js
/* * Extends L.Marker to include two extra methods: clusterHide and clusterShow. * * They work as setOpacity(0) and setOpacity(1) respectively, but * they will remember the marker's opacity when hiding and showing it again. * */ L.Marker.include({ clusterHide: function () { this.options.opacityWhenUnclustered...
JavaScript
0
@@ -1,9 +1,8 @@ -%0A /*%0A* Ext @@ -148,89 +148,51 @@ t%0A* -they will remember the marker's opacity when hiding and showing it again. +don't overwrite the options.opacity %0A* %0A*/%0A%0A %0AL.M @@ -187,17 +187,16 @@ %0A* %0A*/%0A%0A -%0A L.Marker @@ -206,18 +206,16 @@ clude(%7B%0A -%09%0A %09cluster @@ -236,...
65e3bea63356f6fc37998207e353a9c99d081613
add branch to find road and container to repair
src/action.repair.js
src/action.repair.js
let mod = new ActionObj('Repair'); module.exports = mod; mod.nextTarget = function() { return Util.Mark.handleMark(this.creep, creep => { //First repair structure except rampart(which will be handled in maintain action) // and wall(whose priority is low) const target = creep.pos.findCloses...
JavaScript
0
@@ -278,21 +278,19 @@ -const +var target @@ -654,24 +654,372 @@ (!target) %7B%0A + target = creep.pos.findClosestByRange(FIND_STRUCTURES, %7B%0A filter: function(o) %7B%0A return (o.structureType==STRUCTURE_ROAD %7C%7C o.structureType==STRUCTURE_CONTAINER) %0A ...