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
ae6c001111facee754350b4134ae21490cff150d
move dom manipulation to view
dionysus-client/yo/app/scripts/admin/articles.js
dionysus-client/yo/app/scripts/admin/articles.js
/* * TODO: should remove duplicate model definition */ Dionysus.module('DionysusApp.AdminArticle', function(Article, Dionysus, Backbone, Marionette, $, _) { 'use strict'; var ArticleModel = Backbone.Model.extend({ urlRoot: '/api/v1/articles' }); var ArticleCollection = Backbone.Collection.extend({ u...
JavaScript
0
@@ -1009,32 +1009,165 @@ sName: 'ui form' +,%0A onRender: function() %7B%0A this.$('.editor').editable(%7BinlineMode: false%7D);%0A this.$('select.dropdown').dropdown();%0A %7D %0A %7D);%0A%0A var Ar @@ -1301,16 +1301,149 @@ ui form' +,%0A onRender: function() %7B%0A this.$('.editor').edita...
42bd0486c3152c0e9c2b07f93453e1c48f88dee0
add action types constants
lib/jekyll-admin/public/src/constants/actionTypes.js
lib/jekyll-admin/public/src/constants/actionTypes.js
// Config export const FETCH_CONFIG_REQUEST = 'FETCH_CONFIG_REQUEST'; export const FETCH_CONFIG_SUCCESS = 'FETCH_CONFIG_SUCCESS'; export const FETCH_CONFIG_FAILURE = 'FETCH_CONFIG_FAILURE'; export const PUT_CONFIG_REQUEST = 'PUT_CONFIG_REQUEST'; export const PUT_CONFIG_SUCCESS = 'PUT_CONFIG_SUCCESS'; export const PUT_...
JavaScript
0.000001
@@ -2851,16 +2851,800 @@ IELD';%0A%0A +// Datafiles%0Aexport const FETCH_DATAFILES_REQUEST = 'FETCH_DATAFILES_REQUEST';%0Aexport const FETCH_DATAFILES_SUCCESS = 'FETCH_DATAFILES_SUCCESS';%0Aexport const FETCH_DATAFILES_FAILURE = 'FETCH_DATAFILES_FAILURE';%0A%0Aexport const FETCH_DATAFILE_REQUEST = 'FETCH_DATAFILE_REQU...
bfa9c8cd33674a3f34aed3447326e1a455e589da
Use the Amazon Signature V4
awssum-amazon-iam.js
awssum-amazon-iam.js
// -------------------------------------------------------------------------------------------------------------------- // // iam.js - class for AWS Identity and Access Management // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: ...
JavaScript
0.000001
@@ -821,76 +821,8 @@ s'); -%0Avar awsSignatureV4 = require('awssum-amazon/lib/aws-signature-v4'); %0A%0A// @@ -1699,16 +1699,27 @@ n.Amazon +SignatureV4 );%0A%0A// - @@ -2470,188 +2470,8 @@ tml%0A -Iam.prototype.strToSign = awsSignatureV4.strToSign;%0AIam.prototype.signature = awsSignatureV4.signatur...
dd61b4cbc94c707aebb7e5e5ecfbcd1e6b8b4b2f
Fix explicit cluster sizing
src/ckmeans.js
src/ckmeans.js
'use strict'; var sortedUniqueCount = require('./sorted_unique_count'); var numericSort = require('./numeric_sort'); var makeMatrix = require('./make_matrix'); var makeRange = require('./make_range'); /** * The real work of Ckmeans clustering happens in the matrix generation: * the generated matrices encode all pos...
JavaScript
0.00001
@@ -1490,17 +1490,17 @@ if (k %3E -1 +0 ) %7B%0A @@ -2171,20 +2171,21 @@ ber%7D nCl -asse +uster s number @@ -2403,20 +2403,21 @@ ata, nCl -asse +uster s) %7B%0A%0A @@ -2425,20 +2425,21 @@ if (nCl -asse +uster s %3E data @@ -3046,32 +3046,43 @@ ix = makeMatrix( +nClusters, sorted.length, u @@ -3074,3...
2f665969b0bfbe574237d624abba1ec7e94779db
swap array notation for functional get
src/command.js
src/command.js
const _ = require('redash') const command = { /** * @property {object} available args parsing instructions, matches config name * with command argument */ args: { expose: '-p', volumes: '-v', env: '-e', hosts: '--add-host' }, /** * Parses host environment variables specified with ${...
JavaScript
0.000001
@@ -2835,24 +2835,26 @@ =%3E %7B%0A +// return acc.c @@ -2950,16 +2950,146 @@ 0%5D%7D%60 %5D)%0A + return acc.concat(%5B '--link', %60$%7Bcommand.getName(_.head(_.keys(svc)), svc%5B_.head(_.keys(svc))%5D)%7D:$%7B_.head(_.keys(svc))%7D%60 %5D)%0A %7D, %5B
01093d1612cd7023d6cfe3c1241dc418aacecf2d
Clean up code in IconLabelButton example (#9211)
docs/src/pages/demos/buttons/IconLabelButtons.js
docs/src/pages/demos/buttons/IconLabelButtons.js
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import Delete from 'material-ui-icons/Delete'; import Done from 'material-ui-icons/Done'; import FileUpload from 'material-ui-icons/FileUpload'; import ...
JavaScript
0
@@ -848,38 +848,32 @@ lete className=%7B -props. classes.rightIco @@ -870,32 +870,32 @@ s.rightIcon%7D /%3E%0A + %3C/Button @@ -997,38 +997,32 @@ Send className=%7B -props. classes.rightIco @@ -1154,38 +1154,32 @@ load className=%7B -props. classes.rightIco @@ -1314,38 +1314,32 @@ Done className=%7B -p...
f1cd48b71cedd8233151e16eb6de56cc076c0c34
update autoprefixer browser list
_grunt-configs/config.js
_grunt-configs/config.js
/** * Global Grunt vars * Many of the Grunt tasks use these vars. Change as much as you like :) */ module.exports = { src : "./_grunt-configs/*.js", // This directory. Has all the Grunt tasks grouped into specific js files srcDir : './assets/src', // <%=config.srcDir%> distDir : './assets/dist', // <%=config....
JavaScript
0
@@ -883,25 +883,8 @@ ns', - 'firefox %3E 3.6', 'ie
3eaca502077fbc11d79fae1eb1667fa51556c703
Fix showing login page when loading lots of data
lumify-web/src/main/webapp/js/service/serviceBase.js
lumify-web/src/main/webapp/js/service/serviceBase.js
define(['atmosphere'], function() { 'use strict'; function ServiceBase(options) { options = options || {}; if (!document.$socket) { document.$socket = $.atmosphere; } //define deafault options var defaults = { // the base url to find...
JavaScript
0
@@ -833,16 +833,215 @@ cketId;%0A + var string = JSON.stringify(data);%0A if (string.length %3E 1024*1024) %7B%0A return console.warn('Unable to push data, too large: ', string.length, data)%0A %7D%0A @@ -1076,36 +1076,22 @@ et.push( -JSON. string -ify(data) ...
c8130d5caddf90517b8981e03362918919186ddc
Add license header
media/src/js/subtitle-editor/directives/subtitles.js
media/src/js/subtitle-editor/directives/subtitles.js
(function ($) { var directives = angular.module("amara.SubtitleEditor.directives", []); directives.directive("subtitleList", function (SubtitleFetcher) { var isEditable; var selectedScope, selectedController, activeTextArea; /** * Triggered with a key is up on a text area for ...
JavaScript
0
@@ -1,16 +1,792 @@ +// Amara, universalsubtitles.org%0A//%0A// Copyright (C) 2012 Participatory Culture Foundation%0A//%0A// This program is free software: you can redistribute it and/or modify%0A// it under the terms of the GNU Affero General Public License as%0A// published by the Free Software Foundation, either ver...
8c6b1acdea5bc5cb54e0ed29a21101adb1ee33e1
Remove redundant logging in team JS
_includes/js/teamPart.js
_includes/js/teamPart.js
let teamImages = $(".team-photo-pictures").clone(); let currentIndexTeam = 0; let stepTeam = 1; $(".left-button-team").on('click', function () { console.log("currentIndexFirst" + currentIndexTeam); console.log("step" + stepTeam); if (currentIndexTeam > 0) { ...
JavaScript
0
@@ -151,118 +151,8 @@ ) %7B%0A - console.log(%22currentIndexFirst%22 + currentIndexTeam);%0A console.log(%22step%22 + stepTeam);%0A%0A @@ -183,24 +183,24 @@ Team %3E 0) %7B%0A + @@ -384,118 +384,8 @@ ) %7B%0A - console.log(%22currentIndexFirst%22 + currentIndexTea...
bab112bdbaefe29879eb47a0c34982ac0b5866e4
update shorts feed url
_lambda/publish-notes.js
_lambda/publish-notes.js
const fetch = require('node-fetch'); const Twitter = require('twitter'); const Entities = require('html-entities').AllHtmlEntities; require('dotenv').config; const FEED = 'https://danmatthew.co.uk/feed.json'; const twitter = new Twitter({ consumer_key: process.env.TWITTER_CONSUMER_KEY, consumer_secret: process.e...
JavaScript
0.000001
@@ -192,16 +192,23 @@ w.co.uk/ +shorts/ feed.jso
750822796c35865629eaf5b216ca2a28e912aaaa
disable css-loader esModule
webpack/styleLoaders.config.js
webpack/styleLoaders.config.js
const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const PRODUCTION = process.env.NODE_ENV === 'production'; const cssIdentifier = PRODUCTION ? '[hash:base64:10]' : '[name]__[local]'; module.exports = options => { return Object.assign({ miniCssExtractLoader: { ...
JavaScript
0.000003
@@ -564,32 +564,57 @@ ier,%0A %7D,%0A + esModule: false,%0A %7D,%0A %7D,%0A
49c92f804c63b60b5992bd0fdfce81e2e90a1430
修改如果没有父类,则不集成方法和变量
tools/lib/tools/addExtends.js
tools/lib/tools/addExtends.js
/** * Created by huanghaiying on 15/2/6. */ var path = require("path"); var file = require("../core/file.js"); /** * * @param tempClassArr 已经排除了不需要的方法以及属性 */ exports.addChildClasses = function (tempClassArr) { var classChildren = {}; for (var tempKey in tempClassArr) { var item = tempClassArr[tem...
JavaScript
0
@@ -2288,32 +2288,92 @@ Info == null) %7B%0A + console.log(extendsArr%5Bi%5D + %22%E4%BB%8Eapi%E4%B8%AD%E7%A7%BB%E9%99%A4%22);%0A
dbbbecfba8600c21b389c2245d0046e4abc113d9
Remove dest from the generated searchMap.json
generators/search-map.js
generators/search-map.js
var fs = require('fs'); var path = require('path'); var filename = require("../util/filename"); var Q = require('q'); var writeFile = Q.denodeify(fs.writeFile); var mkdirs = Q.denodeify(require("fs-extra").mkdirs); var striptags = require("striptags"); var bitDocsHelpers = require('bit-docs-generate-html/build/make_def...
JavaScript
0
@@ -1435,51 +1435,50 @@ %09%09%09%09 -name: docObj.name,%0A%09%09%09%09%09title: docObj.title +collection: docObj.collection %7C%7C undefined ,%0A%09%09 @@ -1522,203 +1522,71 @@ HTML -,%0A%09%09%09%09%09url: filename(docObj, siteConfig),%0A%09%09%09%09%09dest: 'doc/'%0A%09%09%09%09%7D;%0A%09%09%09%09if (docObj.colle...
6bd55c3b2a5d0170f4f218006cb1c8f2660e3908
remove unused module
feature-detects/fullscreen-api.js
feature-detects/fullscreen-api.js
/*! { "name": "Fullscreen API", "property": "fullscreen", "caniuse": "fullscreen", "notes": [{ "name": "MDN documentation", "href": "https://developer.mozilla.org/en/API/Fullscreen" }], "polyfills": ["screenfulljs"], "builderAliases": ["fullscreen_api"] } !*/ /* DOC Detects support for the ability...
JavaScript
0.000002
@@ -404,23 +404,8 @@ zr', - 'domPrefixes', 'pr @@ -437,21 +437,8 @@ izr, - domPrefixes, pre
5b7a195242e5c792e198a6088f2288b7b9d564bc
Set the domain of plugin by cli
bin/whistle.js
bin/whistle.js
#! /usr/bin/env node /*eslint no-console: "off"*/ var program = require('starting'); var path = require('path'); var os = require('os'); var config = require('../lib/config'); var colors = require('colors/safe'); function getIpList() { var ipList = []; var ifaces = os.networkInterfaces(); Object.keys(ifaces).for...
JavaScript
0
@@ -4260,32 +4260,144 @@ ing, undefined)%0A + .option('-L, --pluginHost %5Bhostname%5D', 'plugin ui host (as: script=a.b.com&vase=x.y.com)', String, undefined)%0A .option('-n, - @@ -5770,32 +5770,117 @@ ing, undefined)%0A + .option('-U, --upload %5Burl%5D', 'the url use to upload sessions', String, undefined)%0A...
9c66ce4af30104302271ae5cc5b23c0220781b75
Use let instead of var
accel-k.js
accel-k.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; const windows = require("sdk/window/utils"); const tabs = require("sdk/tabs/utils"); const prefs = r...
JavaScript
0.000001
@@ -426,19 +426,19 @@ () %7B%0A%09%09 -var +let tab = t @@ -499,11 +499,11 @@ ;%0A%09%09 -var +let tab
ca6773496d11712dc4bc323a3fae919a674aef6c
fix generation
boilerplate.js
boilerplate.js
const options = require('./options') const { merge, pipe, assoc, omit, __ } = require('ramda') /** * Is Android installed? * * $ANDROID_HOME/tools folder has to exist. * * @param {*} context - The gluegun context. * @returns {boolean} */ const isAndroidInstalled = function (context) { const androidHome = proc...
JavaScript
0.000001
@@ -6364,26 +6364,22 @@ dd i -r-boilerplate-2016 +gnite-jhipster $%7Bd
7273e0c87852e1209416c77ffee31ca4623718e0
Fix typo in Mongoose backend
backends/mongoose.js
backends/mongoose.js
module.exports = function(Model, options) { options || (options = {}) options.idAttribute || (options.idAttribute = '_id') var idQuery = function(model) { var query = {}; query[options.idAttribute] = model[options.idAttribute]; }; this.create = function(model, callback) { M...
JavaScript
0.000438
@@ -246,24 +246,46 @@ Attribute%5D;%0A + return query;%0A %7D;%0A%0A
0d78eca9b08f1a4811e66efb8c92085dae882044
Make app into module to allow loading to bind to port of tests
mb-logging-api/mb-logging-api-server.js
mb-logging-api/mb-logging-api-server.js
var express = require('express'); var mongoose = require('mongoose'); var bodyParser = require('body-parser'); var FileStreamRotator = require('file-stream-rotator'); var fs = require('fs'); var morgan = require('morgan'); var routes = require('./routes/routes'); va...
JavaScript
0
@@ -1600,241 +1600,89 @@ ;%0A%0A/ -**%0A * Start server.%0A */%0Avar port = process.env.MB_LOGGING_API_PORT %7C%7C mb_config.default.port;%0Aapp.listen(port, function() %7B%0A console.log('Message Broker Logging API server listening on port %25d in %25s mode.', +/ Assign to module to allow testing vs binding to a po...
9f34cb31b7fd7e5de79ff06e5883c59812be5a70
fix %% typo
app/services.js
app/services.js
'use strict'; var docServices = angular.module("docServices", []); docServices.factory("authentication", ["$resource", function($resource){ var authService = {}; authService.authToken = null; authService._xhr = $resource("api/authenticate/:verify", {}, { verify: {method: "POST", params:{verify: "verify"}, isAr...
JavaScript
0.000303
@@ -3861,10 +3861,10 @@ ull -%25%25 +&& cal
3cc1adda3d382d558e1b3248961d1967e08b1595
fix callback null issues
app/services.js
app/services.js
'use strict'; var docServices = angular.module("docServices", []); docServices.factory("authentication", ["$resource", function($resource){ var authService = {}; authService.authToken = null; authService._xhr = $resource("api/authenticate/:verify", {}, { verify: {method: "POST", params:{verify: "verify"}, isAr...
JavaScript
0.000001
@@ -2997,32 +2997,58 @@ allback !== null + && callback !== undefined )%7B%0A%09%09%09%09callback( @@ -3848,17 +3848,38 @@ allback -= +!== null %25%25 callback ! == null) @@ -4203,32 +4203,58 @@ allback !== null + && callback !== undefined )%7B%0A%09%09%09%09callback(
47fb50efe9453976e764f62e2cb3cddaf64b4460
Add _.equals
underscore.js
underscore.js
var _ = {}; _.modulo = function(a, b) { var c = a % b; return c >= 0 ? c : c + b; } _.enumerate = function(list) { if (!Array.isArray(list) && typeof list !== 'string') return Object.keys(list); return list } _.inOp = function(el, list) { if (!Array.isArray(list) && typeof list !== 'stri...
JavaScript
0.999999
@@ -126,59 +126,83 @@ -if (!Array.isArray(list) && typeof list ! +var classname = toString.call(list);%0A if (classname == += ' -string +%5Bobject Object%5D ')%0A @@ -250,16 +250,17 @@ urn list +; %0A%7D%0A%0A_.in @@ -293,122 +293,1101 @@ -if (!Array.isArray(list) && typeof list +var classname = ...
514f4e8f2aab505a9e5be106df76a617c1b297be
change time format
src/performance.js
src/performance.js
/** * @file: PoliceDog web performance script for client side * @author: zhangxiang * @updated: 2017.05.29 14:29 */ (function(){ let win = window; Object.prototype.each = function(callback){ for(var key in this) { if(this.hasOwnProperty(key)) { if(callback.call(th...
JavaScript
0.000031
@@ -4462,16 +4462,26 @@ w Date() +.getTime() ;%0A
83a4e427fc8476652875210e9d4ce1c37792b3e2
use pure component for FormItem
rnmobile/src/common/services/Form.js
rnmobile/src/common/services/Form.js
import React, { Component, PureComponent } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import createRcForm from 'rc-form/lib/createForm'; const FIELD_META_PROP = 'data-__meta'; // Docs - https://ant.design/components/form/#Form.create(options) export const ...
JavaScript
0
@@ -1417,32 +1417,36 @@ ormItem extends +Pure Component %7B%0A st
c77dfe5f27ad15f3cd052602787fa108c2ebd86d
Remove log
app/src/main.js
app/src/main.js
/** * Created by JiaHao on 4/7/15. */ var fs = require('fs'); var path = require('path'); var electron = require('electron'); var createMainWindow = require('./components/mainWindow/mainWindow'); var createLoginWindow = require('./components/login/loginWindow'); var helpers = require('./helpers/helpers'); var app = ...
JavaScript
0.000001
@@ -1745,34 +1745,8 @@ %7D%0A - console.log(isOSX());%0A
4bf692fa4af911f27e1fc0d30a8d88eb70757f1c
check if component is mounted before setting state
src/connect.js
src/connect.js
var Reflux = require('./index'), _ = require('./utils'); module.exports = function(listenable,key){ return { getInitialState: function(){ if (!_.isFunction(listenable.getInitialState)) { return {}; } else if (key === undefined) { return listenable...
JavaScript
0.000001
@@ -625,41 +625,135 @@ (v)%7B -me.setState(_.object(%5Bkey%5D,%5Bv%5D)); +%0A if (me.isMounted()) %7B%0A me.setState(_.object(%5Bkey%5D,%5Bv%5D)); %0A %7D%0A %7D);%0A
93a5939662295be16a72a65d118419029b21ba6f
Change wording according to suggestion on PR
union-type.js
union-type.js
var curryN = require('ramda/src/curryN'); var isString = function(s) { return typeof s === 'string'; }; var isNumber = function(n) { return typeof n === 'number'; }; var isBoolean = function(b) { return typeof b === 'boolean'; }; var isObject = function(value) { var type = typeof value; return !!value && (type == ...
JavaScript
0
@@ -1140,16 +1140,25 @@ guments +supplied to const
68f085a2b6177dc4c698015887613e6a9b55eca7
Fix lint warning in Logger
packager/react-packager/src/Logger/index.js
packager/react-packager/src/Logger/index.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow * ...
JavaScript
0.000001
@@ -336,95 +336,64 @@ ';%0A%0A -import type %7B%0A ActionLogEntryData,%0A ActionStartLogEntry,%0A LogEntry,%0A%7D from './Type +const chalk = require('chalk');%0Aconst os = require('o s' +) ;%0A%0Ac @@ -438,64 +438,95 @@ );%0A%0A -const chalk = require('chalk');%0Aconst os = require('o +import type %7B%0A Actio...
0b2a6669c29d48b60a4fb048989923b28bb71381
send separated theme values to lighline render
src/convert.js
src/convert.js
'use strict' const mkdirp = require('mkdirp') const path = require('path') const fs = require('./super-fs') const renderThemes = require('./render-themes.js') const yaml = require('js-yaml') const renderLightline = require('./render-lightline.js') const renderAirline = require('./render-airline.js') /** * convert *...
JavaScript
0
@@ -5657,16 +5657,28 @@ fo.name, + theme.name, lighlin @@ -5685,24 +5685,31 @@ eTmpl, theme +.colors )%0A // s
8d8e069d58cc5ab459de3096306c98353b635ede
Use analyzer -si to produce SI units
providers/n2kAnalyzer.js
providers/n2kAnalyzer.js
/* * Copyright 2014-2015 Fabian Tollenaar <fabian@starting-point.nl> * * 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 requ...
JavaScript
0
@@ -886,16 +886,20 @@ er -json + -si '%5D);%0A t
26247d510821bd6092f1a8564c3debf269deec9e
resolve #7 日曜日は0でも7でもいける
src/crontab.js
src/crontab.js
$(function () { 'use strict'; var crontabInputId = 'crontab'; var resultId = 'result'; var submitButtonId = 'check'; var daysOfWeek = '日月火水木金土日'; var rangeOfUnits = { '分': [0, 59], '時': [0, 23], '日': [1, 31], '月': [1, 12], '曜日': [0, 6] }; $('#' +...
JavaScript
0.000013
@@ -295,9 +295,9 @@ %5B0, -6 +7 %5D%0A
1973249fcc9da41372d7866d623d0d5263281fcc
update test new test
test/managers/purchasing/purchase-order/new-test.js
test/managers/purchasing/purchase-order/new-test.js
/*jshint esversion: 6 */ var should = require("should"); var helper = require("../../../helper"); var purchaseRequestDataUtil = require("../../../data-util/purchasing/purchase-request-data-util"); var validatePR = require("bateeq-models").validator.purchasing.purchaseRequest; var PurchaseRequestManager = require("../...
JavaScript
0
@@ -1168,16 +1168,17 @@ );%0A%0A +%0A it(%22#01. Sho @@ -1173,17 +1173,16 @@ it(%22#01. - Should S @@ -1197,19 +1197,15 @@ hen -c +C reate -new Purc @@ -1209,21 +1209,23 @@ urchase -Order +Request %22, funct @@ -1219,33 +1219,32 @@ quest%22, function - (done) %7B%0A pur @@ -1270,16 +1270,20 @@ l....
99aabf8c8189c4ac1fba3146de0225b12b785d68
Allow adding --link to first run command so that plugins will be --link'ed
src/pre-prepare.js
src/pre-prepare.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 may n...
JavaScript
0
@@ -5846,38 +5846,41 @@ ugin) %7B%0A -return +var ret = %5B'plugin', 'add @@ -5883,32 +5883,120 @@ 'add', plugin%5D;%0A + if (argv.link) %7B%0A ret.push(%7Blink:true%7D);%0A %7D%0A return ret;%0A %7D).concat(
d2cefa475661bc182691d0e1573ee46a39f672ae
check hostname and port of CMD_NEW_CONN frame
src/presets/mux.js
src/presets/mux.js
import {AdvancedBuffer, dumpHex, getRandomChunks, numberToBuffer as ntb} from '../utils'; import {IPresetAddressing, MUX_CLOSE_CONN, MUX_DATA_FRAME, MUX_NEW_CONN} from './defs'; const CMD_NEW_CONN = 0x00; const CMD_DATA_FRAME = 0x01; const CMD_CLOSE_CONN = 0x02; /** * @description * TCP multiplexing protocol. * ...
JavaScript
0.000001
@@ -42,16 +42,46 @@ mChunks, + isValidHostname, isValidPort, numberT @@ -2109,16 +2109,22 @@ roadcast +, fail %7D) %7B%0A @@ -2321,24 +2321,168 @@ chunk%5B2%5D);%0A + if (!isValidHostname(host) %7C%7C !isValidPort(port)) %7B%0A return fail(%60invalid host or port, host=$%7Bhost%7D port=$%7Bpor...
4663ea1583525e6e4c9dea079f68fc48b800b4c1
test commit please ignore (should be last one)
dcommands/update.js
dcommands/update.js
var e = module.exports = {}; var bu; var exec = require('child_process').exec; var bot; e.init = (Tbot, blargutil) => { bot = Tbot; bu = blargutil; e.category = bu.CommandType.CAT; }; e.requireCtx = require; e.isCommand = true; e.hidden = false; e.usage = 'Yo shit waddup we\'re updating'; e.info = 'Does...
JavaScript
0
@@ -150,17 +150,16 @@ rgutil;%0A -%0A e.ca
5ccb6bd1dac78fa993551a2adff908e077b62d31
Update ThemeProvider.js
modules/bindings/react/ThemeProvider.js
modules/bindings/react/ThemeProvider.js
import { Component, PropTypes } from 'react' export default class ThemeProvider extends Component { static propTypes = { theme: PropTypes.object, flat: PropTypes.bool, overwrite: PropTypes.bool }; static childContextTypes = { theme: PropTypes.object, flat: PropTypes.bool }; static contextTypes = { theme: P...
JavaScript
0.000001
@@ -392,16 +392,17 @@ return %7B +%0D %0A f @@ -429,24 +429,15 @@ %7C%7C -this.props.flat, +false,%0D %0A @@ -447,16 +447,17 @@ theme: %7B +%0D %0A @@ -506,16 +506,17 @@ .theme), +%0D %0A @@ -539,16 +539,17 @@ heme +%0D %0A %7D %0A @@ -548,14 +548,16 @@ %7D +%0D %0A %7...
97f9f50d39e820e80355a4bf2cff94f839a0ba6a
Add titles to some icons
frontend/src/components/topbar.js
frontend/src/components/topbar.js
import React, { Component } from 'react'; import Sidebar from './sidebar'; import {globalState} from '../state'; import {withRouter} from 'react-router'; class Topbar extends Component { constructor() { super(); this.state = { showAllGuilds: globalState.showAllGuilds, }; globalState.events.on(...
JavaScript
0
@@ -1061,16 +1061,32 @@ t fa-fw%22 + title=%22Log Out%22 %3E%3C/i%3E%3C/a @@ -1171,16 +1171,43 @@ andIcon%7D + title=%22Toggle All Servers%22 %3E%3C/i%3E%3C/a
f12e42770c9840059fa4855b992563ee6b99df6d
Add github
asset/js/app.js
asset/js/app.js
// Initialize Firebase var config = { apiKey: "AIzaSyD-IT1RWXi-7bMSjtTsPmpaTD2SXadFxC0", authDomain: "shipit-7427d.firebaseapp.com", databaseURL: "https://shipit-7427d.firebaseio.com", projectId: "shipit-7427d", storageBucket: "", messagingSenderId: "601650858338" }; firebase.initializeApp(config); //Database C...
JavaScript
0.000001
@@ -320,16 +320,73 @@ Control%0A +const provider = new firebase.auth.GithubAuthProvider();%0A const da @@ -749,16 +749,622 @@ ected;%0A%0A +function githubSignin() %7B%0A firebase.auth().signInWithPopup(provider)%0A %0A .then(function(result) %7B%0A var token = result.credential.accessToken;%0A var u...
2df0068a930db3ff663a0b0c3375b366831eadab
Add lodash to scope
src/reverse_url.js
src/reverse_url.js
(function (angular) { 'use strict'; angular.module('angular-reverse-url', ['ngRoute']) .filter('reverseUrl', ['$route', function ($route) { var regexp = /:([A-Za-z0-9]*)\\*?\\??/g; return _.memoize(function (name, params) { var targetRoute; angul...
JavaScript
0
@@ -11,16 +11,19 @@ (angular +, _ ) %7B%0A @@ -1523,12 +1523,22 @@ .angular +, window._ ));%0A
edcc117eb5ab67e86f8d4d4c01654745bbe81efb
add boilerplate reducers + actions
src/rootReducer.js
src/rootReducer.js
import { combineReducers } from 'redux' const rootReducer = combineReducers({ }) export default rootReducer
JavaScript
0
@@ -32,16 +32,58 @@ 'redux' +%0Aimport fileReducer from './kesey/reducer' %0A%0Aconst @@ -114,16 +114,31 @@ ucers(%7B%0A + fileReducer,%0A %7D)%0A%0Aexpo
5d86fe41099e5bbda33dab836a2dd68f551f782c
Update version of internal dependencies base on main package.json
scripts/removeSymlinkDependencies.js
scripts/removeSymlinkDependencies.js
const fs = require('fs'); const path = require('path'); try { const pkgJSON = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), 'package.json'), 'utf8')); const packages = fs.readdirSync(path.resolve(process.cwd(),'packages'), 'utf8'); packages.filter(pkg => pkg.indexOf('strapi') !== -1).forEach(pkg => { ...
JavaScript
0
@@ -609,84 +609,8 @@ %3E %7B%0A - if (packageJSON.dependencies%5Bdependency%5D.indexOf('file:') !== -1) %7B%0A @@ -673,24 +673,16 @@ ersion;%0A - %7D%0A %7D);%0A @@ -864,92 +864,8 @@ %3E %7B%0A - if (packageJSON.devDependencies%5BdevDependency%5D.indexOf('file:') !== -1) %7B%0A ...
cba6bce25a9295bd83fa2dac9691b72df5bea76d
Allow JSON and Markdown through the view route
packages/commuter-server/src/routes/view.js
packages/commuter-server/src/routes/view.js
const express = require("express"); const { isDir } = require("./util"); const Log = require("log"), log = new Log("info"); const path = require("path"); const router = express.Router(); router.get("*", (req, res) => { log.info("on the view path"); if ( req.path.endsWith(".ipynb") || req.path.endsWith(...
JavaScript
0.000001
@@ -321,24 +321,123 @@ %22.html%22) %7C%7C%0A + req.path.endsWith(%22.json%22) %7C%7C%0A req.path.endsWith(%22.md%22) %7C%7C%0A req.path.endsWith(%22.Rmd%22) %7C%7C%0A req.path
e7c60bf404a908ae3b36ecfa67585ef46a632aa1
reset next_anchor after scroll to top on click
src/scrollpoint.js
src/scrollpoint.js
(function($){ /* jQuery Viewport Checker Version 1.7.4 The MIT License (MIT) Copyright (c) 2014 Dirk Groenen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including w...
JavaScript
0
@@ -5719,16 +5719,74 @@ : 0%7D);%0A%0A +%09%09%09%09//reset next_anchor%0A%09%09%09%09next_anchor = $(anchors%5B0%5D);%0A%0A %09%09%09//oth
3fc3fec3bba1fd20826ff557ec20175ca3b03bff
Fix tests for request endpoint
src/server.test.js
src/server.test.js
import request from 'supertest'; import portscanner from 'portscanner'; import PortStore from './stores/PortStore'; import ResponseStore from './stores/ResponseStore'; import RequestStore from './stores/RequestStore'; import { start, stop } from './server'; const portInUse = (port) => { return new Promise((resolve, ...
JavaScript
0.000001
@@ -2572,29 +2572,24 @@ %0A let get -State RequestStub; @@ -2978,37 +2978,32 @@ All');%0A get -State RequestStub = si @@ -3039,21 +3039,16 @@ pe, 'get -State ');%0A @@ -3276,37 +3276,32 @@ ore();%0A get -State RequestStub.rest @@ -5102,29 +5102,44 @@ s = +%5B %7B -GET: %5B'Requests'%5D +pat...
0ae5b577748ab432db84ce6fe93272cd8f56d2eb
remove logs
src/server/send.js
src/server/send.js
import bs from 'brisky-stamp' import { get, getKeys, getType } from 'brisky-struct' const progress = (client) => { if (!client.inProgress) { client.inProgress = {} bs.on(() => { if (client.val !== null) { var isEmpty = true for (let i in client.inProgress) { //eslint-disable-line ...
JavaScript
0.000001
@@ -4280,81 +4280,8 @@ ) %7B%0A - if (!s) %7B%0A throw new Error('???')%0A %7D%0A @@ -4543,187 +4543,8 @@ %7D%0A - // dont send the val as an extra%0A if (!s %7C%7C typeof s !== 'object') %7B%0A console.log(s, t)%0A throw new E...
cba66bf31cd20ed3421d8de00907b9762a643eb1
improve api compatibility
src/server/util.js
src/server/util.js
"use strict"; exports.log = log; exports.request = request; function log(...args) { console.log(new Date().toTimeString(), ...args); /* eslint no-console:off */ } const urlParse = require("url").parse; const https = require("https"); const querystring = require("querystring"); function request({ url = "", ...
JavaScript
0.000003
@@ -724,20 +724,36 @@ gth%22%5D = +JSON.stringify( body +) .length;
6891ef6a863469343db71db5741ff3c5b6808c50
Disable eslint checking in babel config
babel.config.js
babel.config.js
module.exports = function(api) { var validEnv = ['development', 'test', 'production'] var currentEnv = api.env() var isDevelopmentEnv = api.env('development') var isProductionEnv = api.env('production') var isTestEnv = api.env('test') if (!validEnv.includes(currentEnv)) { throw new Error( 'Please...
JavaScript
0
@@ -1,12 +1,33 @@ +/* eslint-disable */%0A module.expor @@ -39,16 +39,17 @@ function + (api) %7B%0A
16cad3cfcefc56a7b9f2bb287f38a5a535319acf
Use template literal to improve readability
google_personal_blocklist.user.js
google_personal_blocklist.user.js
// ==UserScript== // @name Google personal blocklist // @namespace curipha // @description Obscure annoying pages from search result // @include https://www.google.tld/search?* // @version 0.3.9 // @grant none // @noframes // ==/UserScript== (function(){ 'use strict'; cons...
JavaScript
0
@@ -1203,17 +1203,17 @@ RegExp( -' +%60 %5Ehttps?: @@ -1221,12 +1221,10 @@ /(?: -' + +$%7B bloc @@ -1265,14 +1265,11 @@ $1') - + ')' +%7D)%60 , 'i
5f603fca2835ebfc8798a9e956b7cf078b7a8789
bump distribution for dist/snuggsi.min.js
dist/snuggsi.min.js
dist/snuggsi.min.js
var HTMLLinkElement=function(t){var e={},n=document.querySelector("link#"+t+"[rel=import], link[href*="+t+"][rel=import]"),o=function(t,e){return HTMLImports&&!HTMLImports.useNative?HTMLImports.whenReady(function(t){return e({target:n})}):n.addEventListener(t,e)};return Object.defineProperties(e,{addEventListener:{writ...
JavaScript
0
@@ -1292,11 +1292,8 @@ t%5Be%5D -%7C%7Cn )%7D%7D(
87565f1f3785ceb48ebcc5b64cd7100be5ab8eca
remove debugging
harmony/static/js/src/notation.js
harmony/static/js/src/notation.js
define(['lodash', 'vexflow', 'radio'], function(_, Vex, radio) { /** * Notation object for converting MIDI notes to musical notation and * displaying the notes on the screen as they are played. */ var Notation = function() { this.init(); }; _.extend(Notation.prototype, { /** * Size of the canvas and ...
JavaScript
0.000065
@@ -3508,80 +3508,8 @@ ) %7B%0A -%09%09%09%09%09console.log(_.pluck(notes, 'name'), _.pluck(notes, 'accidental'));%0A %09%09%09%09
89d0d839d5c87b1076b97473413a2f05d17633e3
Add flowtype support in fib-gen
src/fib-gen.js
src/fib-gen.js
import console from 'better-console'; const fib = function* fib(n) { const isInfinite = n === undefined; let current = 0; let next = 1; // eslint-disable-next-line no-param-reassign while (Number.isFinite(current) && isInfinite || n--) { yield current; [current, next] = [next, current + next]; } ...
JavaScript
0
@@ -1,8 +1,18 @@ +// @flow%0A%0A import c
8c6d15b3a277bb76789a4aae9d17701016889f89
increase js timeout?
src/static/site.js
src/static/site.js
// Author is Fredrik A. Madsen-Malmo $('tr').hide() // For cool transitions later function getOnline() { // Gets the online status with a simple ajax request $('.entry').each(function(index, element) { $.ajax({ type: 'POST', url: $(element).data('url'), timeout: 1500, error: function(x, t, m) { ...
JavaScript
0
@@ -275,10 +275,10 @@ ut: -15 +70 00,%0A
f5813c6b987792389e99fb52b49d50ab14bd7839
Improve comment
src/store/store.js
src/store/store.js
import { createStore, combineReducers } from 'redux' import collectionReducer from './collectionReducer' import testReducer from './testReducer' // This statement replaces the initial state. The state for each piece of data // is initialised by its reducer. const rootReducer = combineReducers({ collections: collect...
JavaScript
0
@@ -152,81 +152,74 @@ his -statement replaces the initial state. The state for each piece of data%0A// +creates a rootReducer function. The initial state for data subtree is
59e16e474a05d979d84b79abbfa7398d5b9c2e96
Handle result of aborted tasks
src/store/tasks.js
src/store/tasks.js
/* eslint-disable no-param-reassign */ import Vue from 'vue'; let handleTask; let failTask; let initP; let pending = 0; let ignoreErrors = false; const pollTask = (store, resolve, reject, delay = 5000, attempt = 1) => { setTimeout(() => { Vue.http.get('api/task', { timeout: 5000 * attempt, ...
JavaScript
0.000009
@@ -3785,32 +3785,83 @@ return +new Promise((resolve, reject) =%3E %7B%0A Vue.http.patch(' @@ -3872,17 +3872,16 @@ task', %7B - status: @@ -3890,16 +3890,209 @@ borting' +%7D).then(%0A response =%3E handleTask(response, store, resolve, reject),%0A r...
1bf42fc41a85e02cb20011bb4af3cdb88a42164b
Fix bug where Lane-height increased too much when hovering over
src/styles/Base.js
src/styles/Base.js
import styled, {createGlobalStyle} from 'styled-components' export const GlobalStyle = createGlobalStyle` .comPlainTextContentEditable { -webkit-user-modify: read-write-plaintext-only; } .comPlainTextContentEditable--has-placeholder::before { content: attr(placeholder); opacity: 0.5; color: inhe...
JavaScript
0.000006
@@ -1478,61 +1478,12 @@ om: -$%7Bprops =%3E (props.isDraggingOver ? '130px' : '30px')%7D +30px ;%0A
6d0cb26769477938e9b136377bd5600eab586796
Prevent string replace error if transform support is false
src/globals.js
src/globals.js
// Global variables var G = Optiscroll.G = { isTouch: 'ontouchstart' in window, cssTransition: cssTest('transition'), cssTransform: cssTest('transform'), nativeScrollbarSize: getScrollbarWidth(), instances: [], checkTimer: null, pauseCheck: false }; G.cssTransformDashed = (G.cssTransform === 'transform'...
JavaScript
0.998496
@@ -151,16 +151,22 @@ nsform') + %7C%7C '' ,%0A nati
70debcb9b496d619f3c9a4b7bb2974938041648c
Resolve issue where number one hit was not being returned
billboard-top-100.js
billboard-top-100.js
var request = require("request"); var cheerio = require("cheerio"); const baseUrl = "http://www.billboard.com/charts/"; function toTitleCase(str) { return str.replace(/\w\S*/g, function(txt){ return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); } // list all data from requested chart...
JavaScript
0
@@ -655,65 +655,322 @@ );%0A%0A -%09%09%09covers.push(undefined); // top song has no cover image + //add first song in its own format%0A%09%09%09covers.push($('.chart-number-one__image').attr('src')); //unfortunately, still no real image for #1. Pushing the placeholder billboard uses%0A%09%09%09artists.push($('.c...
9f3eada6b9343fa3df0d516a3d4b8193b46888a3
Remove HMR contents from memory after 60 seconds
packages/pundle-dev-middleware/lib/index.js
packages/pundle-dev-middleware/lib/index.js
// @flow import path from 'path' import mime from 'mime/lite' import invariant from 'assert' import pick from 'lodash/pick' import { Router } from 'express' import getPundle, { type Master } from 'pundle-core' import { getChunk, getUniqueHash, type Job, type ImportResolved } from 'pundle-api' import { getOutputForma...
JavaScript
0
@@ -2749,32 +2749,259 @@ nfo)%7D%5Cn%60)%0A %7D) +%0A%0A // Remove HMR contents from memory after 60 seconds%0A setTimeout(() =%3E %7B%0A outputs.forEach((%7B filePath %7D) =%3E %7B%0A if (filePath) %7B%0A urlToHMRContents%5BfilePath%5D = null%0A %7D%0A %7D)%0A %7D, 60 * 10...
81345d4e44749cf4d72ef16df6985ff9f3e10006
No need to capture the context when done
bin/lambda-deploy.js
bin/lambda-deploy.js
"use strict"; require('../lib/helpers/string-additions'); const parseEnvironment = require('../lib/helpers/environment-parser'); require('colors'); const AWS = require('aws-sdk'); const path = require('path'); const program = require('commander'); const Promise = require('bluebird'); const prompt = require('readline-...
JavaScript
0.999999
@@ -2842,11 +2842,8 @@ ion( -ctx ) %7B%0A
8a0bca029a823793391884c83484e182fa91b36f
Fix yarn not exist
packages/strapi-utils/lib/packageManager.js
packages/strapi-utils/lib/packageManager.js
const fs = require('fs'); const shell = require('shelljs'); const { includes } = require('lodash'); // let isStrapiInstalledWithNPM = true; // let skipCheck = false; const watcher = (cmd) => { const data = shell.exec(cmd, { silent: true, }); if (includes(data.stderr, 'command not found') && data.code !== 0...
JavaScript
0.000009
@@ -1027,24 +1027,80 @@ 'strapi');%0A%0A + if (isNPM) %7B%0A return isNPM;%0A %7D%0A%0A try
5a2a1bcd11c0a77e9901c4da77220dc13c529677
Update reference to math module
src/types/color.js
src/types/color.js
import clamp from 'gamebox/math/clamp'; import colorConstants from 'flockn/constants/color'; class Color { constructor(r = 0, g = 0, b = 0, a = 1) { this.set(r, g, b, a); } set(r = 0, g = 0, b = 0, a = 1) { this.r = r; this.g = g; this.b = b; this.a = a; } lighten(factor) { factor =...
JavaScript
0
@@ -1,20 +1,21 @@ import -clamp +%7BMath%7D from 'g @@ -24,19 +24,8 @@ ebox -/math/clamp ';%0Ai @@ -77,16 +77,39 @@ olor';%0A%0A +const %7Bclamp%7D = Math;%0A%0A class Co
5bfea06b55a0e352a759a5f4b0daef967ec65a1e
Add KeyEvent documentation.
src/ui/KeyEvent.js
src/ui/KeyEvent.js
/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Distributed under the MIT license. See LICENSE file for details. * * Copyright (c) 2011, Juerg ...
JavaScript
0
@@ -496,180 +496,1073 @@ %7B%0A%09%09 -initialize: function(down, key, character, event) %7B%0A%09%09%09this.base(event);%0A%09%09%09this.type = down ? 'keydown' : 'keyup';%0A%09%09%09this.key = key;%0A%09%09%09this.character = character;%0A%09%09%7D,%0A%09 +/** @lends KeyEvent# */%0A%0A%09%09beans: true,%0A%0A%09%09/...
e02828bd2d4c4d97fa151f499689aa7a5b764576
Remove unused functions
src/utils/utils.js
src/utils/utils.js
import { TOAST } from './constants' import queryString from 'query-string' import { CrowdsaleConfig } from '../components/Common/config' export function getQueryVariable(variable) { return queryString.parse(window.location.search)[variable] } export function setFlatFileContentToState(file) { return fetchFile(file...
JavaScript
0.000004
@@ -2164,262 +2164,83 @@ date -Name = (name) =%3E typeof name === 'string' && name.length %3E 0 && name.length %3C= 30%0A%0Aexport const validateSupply = (supply) =%3E isNaN(Number(supply)) === false && Number(supply) %3E 0%0A%0Aexport const validateTicker = (ticker) =%3E /%5E%5Ba-z0-9%5D%7B1,5%7D$/i.test(ticker) +Su...
226585a4f8fd23ddd18a85bd13b3f005d65eafc8
Update mute.js
bot/commands/mute.js
bot/commands/mute.js
/** * This method should return the response directly to the channel * @param {*string array} params * @param {*message} message */ async function command(params, message) { let muted = message.guild.roles.find(function (r) { if (r.name.toLowerCase().includes('mute') && !r.name.toLowerCase().includes(...
JavaScript
0.000001
@@ -469,10 +469,14 @@ =%3E m -sg +essage .gui
a6a79a7f08e24b26dcf1e328e63cf9ad437cd0f8
fix typo
src/history.js
src/history.js
/* Module for Game Closure Devkit to handle native back button. * * Authors: Jishnu Mohan <jishnu7@gmail.com>, * Ramprasad rajendran <r.ramprasad@gmail.com> * * Copyright: 2014, Hashcube (http://hashcube.com) * */ /* global _, Callback, console, device */ /* jshint ignore:start */ import util.undersco...
JavaScript
0.999991
@@ -3165,17 +3165,17 @@ .setBack -b +B uttonHan
da36ed3e6f73144378d6e0770bed3c9f80554f23
remove unneeded elLk element
htdocs/components/10_SearchBox.js
htdocs/components/10_SearchBox.js
// $Revision$ Ensembl.Panel.SearchBox = Ensembl.Panel.extend({ init: function () { var panel = this; this.base(); this.elLk.search = $('table.search', this.el); this.elLk.img = $('.search_image', this.elLk.search); this.elLk.sites = $('.sites', this.elLk.search); this.e...
JavaScript
0.00003
@@ -132,62 +132,8 @@ %0A - this.elLk.search = $('table.search', this.el);%0A @@ -176,33 +176,24 @@ ge', this.el -Lk.search );%0A this. @@ -232,17 +232,8 @@ s.el -Lk.search );%0A
03b74b067aef6fff64b0c0a3ea16771a08d998fd
Fix Regression
packages/test-in-console/puppeteerRunner.js
packages/test-in-console/puppeteerRunner.js
const puppeteer = require('puppeteer'); async function runNextUrl(browser) { const page = await browser.newPage(); page.on('console', msg => { console.log(msg._text); }); if (!process.env.URL) { await page.close(); await browser.close(); process.exit(0); return; } await page.goto(pro...
JavaScript
0
@@ -207,59 +207,8 @@ ) %7B%0A - await page.close();%0A await browser.close();%0A @@ -220,17 +220,17 @@ ss.exit( -0 +1 );%0A r @@ -548,34 +548,52 @@ -setTimeout(runNextUrl, 100 +await browser.close();%0A process.exit( 0);%0A
da824eef43f6f26feac21908af6f9980cf6eb7ec
Update help.js
app/help.js
app/help.js
//open the tab of the main extension var url = chrome.extension.getURL('index.html'); chrome.tabs.create({ url: url })
JavaScript
0.000001
@@ -1,10 +1,11 @@ // + open the @@ -116,8 +116,9 @@ : url%0A%7D) +%0A
ae9057f8b162ce179a5c5fef99d490e9b0423b8b
Update moneystuff.js
filewriter/moneystuff.js
filewriter/moneystuff.js
var fs = require('fs'); var moneyStuff = exports.moneyStuff = { checkAmt: function(name, target) { var userdata = fs.readFileSync('config/userdata.json'); var amt = JSON.parse(userdata); if (!amt[toId(name)]) return 0; if (amt[toId(name)][target]) { return amt[toId(name)...
JavaScript
0.000001
@@ -632,33 +632,24 @@ -parseInt( amt%5BtoId(nam @@ -663,19 +663,28 @@ get%5D -) = +parseInt( target1 +) ;%0A @@ -1291,33 +1291,24 @@ 0;%0A -parseInt( amt%5BtoId(nam @@ -1318,17 +1318,16 @@ %5Btarget%5D -) -= pars @@ -1751,33 +1751,24 @@ 0;%0A -parseInt( amt%5BtoId(use @@ ...
2033010e0df14cd23253473018fc26f39fddc269
Implement a "circuit breaker" to limit the max number of the generated objects
app/main.js
app/main.js
var counter; var header = 150; var effectiveWindowWidth, effectiveWindowHeight; function setup() { effectiveWindowWidth = windowWidth - 16; effectiveWindowHeight = windowHeight - header; var canvas = createCanvas(effectiveWindowWidth, effectiveWindowHeight); canvas.parent('play'); counter = ne...
JavaScript
0.000113
@@ -1707,16 +1707,41 @@ , 10));%0A + var newPosition;%0A @@ -1779,24 +1779,189 @@ s.number) %7B%0A + newPosition = this.findNewPosition();%0A if (!newPosition)%0A %7B%0A this.number--;%0A continue;%0A %7D%0A @@ -2...
57ba5ec5a481e651d00ec7af610cb1ca5d2c066c
Check if not NAN
server/discord/cogs/roll/index.js
server/discord/cogs/roll/index.js
const utils = require('./../../utils.js'); const regex = /(-?\d+)d?(-?\d+)/; function randInt(d) { return Math.floor(Math.random() * d) + 1; } module.exports.info = { name: 'Dice Roll', description: 'Roll a dice or die, with an arbitary number of sides and/or an arbitary number of rolls.', category: 'Fun', alia...
JavaScript
0.000029
@@ -708,24 +708,31 @@ nst rolls = +!isNaN( parseInt(par @@ -742,19 +742,45 @@ %5B1%5D, 10) - %7C%7C +) ? parseInt(parsed%5B1%5D, 10) : 1;%0A%09con @@ -790,16 +790,23 @@ sides = +!isNaN( parseInt @@ -820,19 +820,45 @@ %5B2%5D, 10) - %7C%7C +) ? parseInt(parsed%5B2%5D, 10) : 6;%0A%09con
5802ce53fd6a4134956e55002be46e155e987a99
Handle fullscreen events for MacOS
app/main.js
app/main.js
'use strict' // Handle the Squirrel.Windows install madnesss if (require('electron-squirrel-startup')) return const electron = require('electron') const contextMenu = require('./context-menu') const autoUpdater = require('./auto-updater') const dockMenu = require('./dock-menu') const errorHandlers = require('./error-...
JavaScript
0.000003
@@ -2452,24 +2452,536 @@ %7D%0A %7D)%0A%0A + // For MacOS, disable 'close' and 'minimize' buttons on fullscreen event%0A mainWindow.on('enter-full-screen', (e, cmd) =%3E %7B%0A if (process.platform == 'darwin') %7B%0A mainWindow.setMinimizable(false);%0A mainWindow.setClosable(false);%0A %7D%0A ...
041be20358965e77af1d08003a9955583e5860fe
Add documentation.
app/main.js
app/main.js
/** * Main script. * * This component provides a main script that handles HTTP requests using the * Express framework. * * This package provides a default service component which eliminates the * boilerplate typically used in most applications. It is expected that most * applications will take advantage of thi...
JavaScript
0
@@ -519,19 +519,412 @@ created -... +, the gateway between the application and the%0A * World Wide Web (WWW) will be instantiated to dispatch requests. This gateway%0A * is typically an HTTP server upstream from an HTTP proxy in production%0A * environments, or connected to directly in development environments. How...
657d9653d6c6413683417294e1729f978c07b1ea
Update app.js
TodoSPA/App/Scripts/app.js
TodoSPA/App/Scripts/app.js
'use strict'; angular.module('todoApp', ['ngRoute','AdalAngular']) .config(['$routeProvider', '$httpProvider', 'adalAuthenticationServiceProvider', function ($routeProvider, $httpProvider, adalProvider) { $routeProvider.when("/Home", { controller: "homeCtrl", templateUrl: "/App/Views/Home.html", ...
JavaScript
0.000002
@@ -886,67 +886,180 @@ %22 -https://localhost:44327/%22:%0A %22https://strockisdev +Enter the root location of your To Go API here, e.g. https://contosotogo.azurewebsites.net/%22:%0A %22Enter the App ID URI of your To Go API here, e.g. https://contoso .onm @@ -1075,22 +1075,15 @@ com/ -scrat...
669e2187cbdffd7738489c758c1bf45ffeee0494
Add log to server console when a new room is created
server/helpers/request-handler.js
server/helpers/request-handler.js
const util = require('./utils.js'); module.exports = { logger: (req, res, next) => { console.log(`Serving ${req.method} request @ ${req.path}`); next(); }, getNewBoard: (req, res, next) => { const newId = util.doGenerateNewId(); util.doGetNewBoard(newId); res.json(newId); }, // getBoar...
JavaScript
0
@@ -243,16 +243,74 @@ ewId();%0A + console.log(%60Creating new board with id: #$%7BnewId%7D%60);%0A util
c0e0e20bf646bf3b2608b7afe6226ef15a4b9123
Load a static file that loads other files from team metadata
app/main.js
app/main.js
'use strict'; var app = require('app'); var scanner = require('portscanner'); var BrowserWindow = require('browser-window'); var Menu = require("menu"); var env = require('./vendor/electron_boilerplate/env_config'); var devHelper = require('./vendor/electron_boilerplate/dev_helper'); var windowStateKeeper = require('./...
JavaScript
0
@@ -1270,38 +1270,60 @@ c',' -%22 + url + %22/assets/application +https://dinosaur.s3.amazonaws.com/slack-hacks-loader .js'
4bec49e8ce36af60555a0db89597485ff5fdc342
Use the WebComponentsReady event as that is future-compatible
app/main.js
app/main.js
var exported = { noflo: require('noflo'), underscore: require('underscore'), 'coffee-script': require('coffee-script'), 'child_process': null, 'uuid': require('uuid'), 'flowhub-registry': require('flowhub-registry'), 'noflo-ui/src/JournalStore': require('../src/JournalStore'), 'noflo-ui/runtimeinfo': re...
JavaScript
0.000001
@@ -580,17 +580,22 @@ er(' -polymer-r +WebComponentsR eady
6444b791f72a27b8662fe973833b66852edf1a65
Make the slider autoslide (Podio Feature_41) (#30)
dev/js/main/contentElements/slider.js
dev/js/main/contentElements/slider.js
/* global Swiper*/ (function($) { 'use strict'; // document load event $(document).ready(function() { // initialize swiper when document ready // http://idangero.us/swiper/api/ var swiper = new Swiper('.js__img-slider', { nextButton: '.js__img-slider__btn-next', ...
JavaScript
0
@@ -216,45 +216,167 @@ var -swiper = new Swiper('.js__img-slider' +$elem = $('.js__img-slider');%0A $elem.each(function() %7B%0A var time = $(this).attr('data-autoplay');%0A var slider = new Swiper($(this) , %7B%0A @@ -387,16 +387,20 @@ + nextButt @@ -432,16 +432,20 @@ -n...
b95ef27fa91be7a2f5f7adefbf500751483e64a2
Use lodash/kebab case instead of custom util function.
tests/backstop/scenarios.js
tests/backstop/scenarios.js
const storybookHost = require( './detect-storybook-host' ); const rootURL = `${ storybookHost }iframe.html?id=`; const storybookStories = require( '../../.storybook/storybook-data' ); // does not work as these paths are relative to this file // const filePaths = require( '../../.storybook/main' ); const glob = require(...
JavaScript
0
@@ -501,169 +501,54 @@ );%0A -%0A const -camelCaseToKebabCase = ( string ) =%3E%0A%09string%0A%09%09.replace( /(%5Ba-z0-9%5D)(%5BA-Z%5D)/g, '$1-$2' )%0A%09%09.replace( /(%5BA-Z%5D)(%5BA-Z%5D)(?=%5Ba-z%5D)/g, '$1-$2' )%0A%09%09.toLower +kebabCase = require( 'lodash/kebab Case -( +' );%0A%0A @@ -1971,20 +1971,9 @@...
96221855f1e35edaba43aa94a961474717c6c45e
Update edge class
src/js/edge.js
src/js/edge.js
var Edge = function(parent, child, type) { 'use strict'; this.parent = parent; this.child = child; this.typeRelationship = type; this.init(); }; Edge.prototype = { init: function() { var self = this; this.calcCoordinatesOfType = { 'marriage': function() { self.calcCoordinatesTypeMarrige(); }...
JavaScript
0
@@ -1741,32 +1741,40 @@ olor(this, 'red' +, 'line' );%0A %7D)%0A @@ -1825,35 +1825,45 @@ setColor(this, ' -red +black', 'line ');%0A %7D)%0A @@ -2107,24 +2107,45 @@ on (edge) %7B%0A + var self = this;%0A var line @@ -2279,32 +2279,44 @@ olor(this, 'red' +, 'polyline' );%0A %7D)%0A ...
60f08083872f7087ad5abaf265af1520622692a6
Update main.js
src/js/main.js
src/js/main.js
JavaScript
0.000001
@@ -0,0 +1,1471 @@ +(function($,W,D)%0D%0A%7B%0D%0A var JQUERY4U = %7B%7D;%0D%0A %0D%0A JQUERY4U.UTIL =%0D%0A %7B%0D%0A setupFormValidation: function()%0D%0A %7B%0D%0A //form validation rules%0D%0A $(%22#register-form%22).validate(%7B%0D%0A rules: %7B%0D%0A ...
78f13e8aed022655ed62a9e6ba7307242c887595
version bump
src/js/main.js
src/js/main.js
'use strict'; /* Controllers */ angular.module('app') .controller('AppCtrl', ['$scope', '$translate', '$localStorage', '$window', function($scope, $translate, $localStorage, $window) { // add 'ie' classes to html var isIE = !!navigator.userAgent.match(/MSIE/i); isIE && ...
JavaScript
0.000001
@@ -582,17 +582,17 @@ n: '0.0. -2 +3 ',%0A
2784be7abe7483eefb2275de41c6052515076ec9
fix setting hasFooter and withFooter
src/jsx/tab.js
src/jsx/tab.js
var TabButton = React.createClass({ mixins: [Mixins.StyleableWithEvents], getDefaultProps: function () { return { "icon": "", "title": "", "index": 0, "showTitle": true }; }, contextTypes: { selectedIndex: React.PropTypes.number, numTabs: React.PropTypes.number }, ...
JavaScript
0.000001
@@ -3908,16 +3908,62 @@ active;%0A + this.hasToolbar=this.hasFooter=false;%0A %0A var @@ -4608,18 +4608,108 @@ %7D - else if ( +%0A sheet = self.getSheet(%22Tab%22, mods);%0A %7D%0A if (i == self.props.children.length-1 && type @@ -4713,26 +4713,24 @@ ype == 2) %7B%0A - th...
f84c06f07e080ad52383c69a98c48d848bf4f512
Update ja.js
src/lang/ja.js
src/lang/ja.js
/* eslint-disable */ const cn = { headings: { contact: '連絡方法', experience: '職務経歴', education: '学歴', skills: 'スキル', about: '自己紹介' } }; export default cn;
JavaScript
0.000001
@@ -61,10 +61,9 @@ '%E9%80%A3%E7%B5%A1 -%E6%96%B9%E6%B3%95 +%E5%85%88 ',%0A
766ca1c27da96d996e50bd1a1e19b006c6b5d39f
Fix a score problem
src/layouts.js
src/layouts.js
'use strict'; module.exports = { multiplayerLobby: [ {name: 'matchId', type: 'int16'}, {name: 'inProgress', type: 'boolean'}, {name: 'matchType', type: 'byte'}, {name: 'activeMods', type: 'uint32'}, {name: 'gameName', type: 'string'}, {name: 'gamePassword', type: 'st...
JavaScript
0.999999
@@ -1853,33 +1853,32 @@ dScore', type: ' -u int64'%7D,%0A @@ -1993,17 +1993,16 @@ type: ' -u int64'%7D,
314d41db6ab2c972732b88b03b6b687148fa0ec4
Add introductory text to Quest view
src/views/Quest.js
src/views/Quest.js
import React from 'react'; import { connect } from 'react-redux'; import * as Quest from '../Quest.js'; import * as Components from '../Components/index.js'; import * as mkAi from '../mkAi.js'; import * as store from '../store.js'; function QuestButton({ sel, x, y, area, user, onClick }) { return ( <span style=...
JavaScript
0.000001
@@ -1778,34 +1778,51 @@ /%3E%0A%09%09%09%09 -%7BselectedQuest && +%3CComponents.Text%0A%09%09%09%09%09text=%7B%0A%09%09%09%09%09%09 selected @@ -1836,68 +1836,163 @@ nfo -&& ( +%7C%7C %0A%09%09%09%09%09 -%3CComponents.Text%0A%09%09%09%09%09%09text=%7BselectedQuest.info +%09%22Click the list items to see the ques...
abe044fb3757fb00b4855748bcbf5c2117f3d785
Update modula.Regex.js with Propertizer
inProgress/modula.select.Regex.js
inProgress/modula.select.Regex.js
/** * @project : modula.js * @package : select * @internal : Regex * @type : object * @dependencies : none * * @description : * the 'Regex' contains regular expressions for the modula.js */ /** * define regular expressions for selector engine */ Regex = { // trim and escaping trim : new RegExp( "^\...
JavaScript
0
@@ -104,12 +104,19 @@ s : -none +Propertizer %0A *%0A @@ -270,16 +270,39 @@ %09Regex = + Propertizer( %22Regex%22 , %7B%0A%09%09// @@ -2678,5 +2678,8 @@ )%0A%09%7D -; + );%0A
4672b71c2ad9467167578f004a51df58a5d84b59
store encrypted token
src/worker/auth.js
src/worker/auth.js
'use strict' var fs = require('fs') var Path = require('path') var Rand = require('crypto-rand') var Crypto = require('crypto-js') var Log = require(Path.join(__base, 'src/worker/log.js')) function Auth () { this.passwords = require(Path.join(__base, 'data/passwords.json')) this.invites = [] } Auth.prototype.lo...
JavaScript
0.001077
@@ -626,21 +626,47 @@ en.push( -token +Crypto.SHA256(token).toString() )%0A th @@ -816,16 +816,71 @@ gout.')%0A + var encryptedToken = Crypto.SHA256(token).toString()%0A if (th @@ -958,33 +958,42 @@ %5D.token.indexOf( -t +encryptedT oken) !== -1) %7B%0A @@ -1068,25 +1068,34 @@ ken.indexOf( -t +encryptedT ...
4c6950da933d1364de1167c3e34628659a9dc0b5
missing semicolon
static/js/utils.js
static/js/utils.js
var asNumber = function(value) { if (isNaN(value)) { return 0; } else { return value; } }; var getValue = function(id) { return asNumber(parseInt(document.getElementById(id).value)); }; var getSelected = function(elementId) { var element = document.getElementById(elementId); return element.options...
JavaScript
0.999988
@@ -971,16 +971,17 @@ al);%0A %7D +; %0A%0A retu @@ -1277,24 +1277,25 @@ );%0A %7D%0A %7D +; %0A%7D;%0A%0Avar loa
496e059da1226ba54dc5a71a88b6b1e0374ce334
Include dex in range damage.
src/monster.js
src/monster.js
/** * Exports: Monster */ function Monster(x, y, name) { this.x = x || 0; this.y = y || 0; this.timer = 0; this.thrown = false; } Monster.prototype.sleepRadius = 10; Monster.prototype.display = function() { if (world.isVisible(this.x, this.y)) { display.add(this.x, this.y, this.construc...
JavaScript
0
@@ -1735,113 +1735,19 @@ ge') -;%0A if (base === 'strength') %7B%0A damage + -= b -onus(this.strength + place.modify('strength'));%0A %7D +asemod; %0A
2ef4a7b13d8b22691d1688cd69fa7191d90a0ae2
Fix connection point for source creation
ui/src/select_source/containers/SelectSourcePage.js
ui/src/select_source/containers/SelectSourcePage.js
import React, {PropTypes} from 'react'; import {withRouter} from 'react-router'; import FlashMessages from 'shared/components/FlashMessages'; import {createSource, getSources} from 'shared/apis'; export const SelectSourcePage = React.createClass({ propTypes: { router: PropTypes.shape({ push: PropTypes.func...
JavaScript
0.000016
@@ -1128,16 +1128,40 @@ ).then(( +%7Bdata: sourceFromServer%7D ) =%3E %7B%0A @@ -1168,11 +1168,8 @@ - // thi @@ -1201,16 +1201,17 @@ mServer) +; %0A %7D);
05cb92b104aafdcada71d147bef73db99e0862be
Use new header on files. (#15631)
shared/fs/header/header.native.js
shared/fs/header/header.native.js
// @flow import * as React from 'react' import {styleSheetCreate, collapseStyles, globalColors, globalStyles, globalMargins} from '../../styles' import {BackButton, Box, Icon, Text} from '../../common-adapters' import AddNew from './add-new-container' import {type FolderHeaderProps} from './header' const Header = ({ti...
JavaScript
0
@@ -44,142 +44,15 @@ ort -%7BstyleSheetCreate, collapseStyles, globalColors, globalStyles, globalMargins%7D from '../../styles'%0Aimport %7BBackButton, Box, Icon, Text%7D +* as Kb fro @@ -245,590 +245,169 @@ %0A %3C -Box style=%7Bstyles.stylesFolderHeaderContainer%7D%3E%0A %3CBox style=%7Bstyles.stylesFolderHe...
e7d7b96a73e8532d3a916511347865806403f4fd
apply global styles to fix datepicker
packages/widgets/address-update/src/main.js
packages/widgets/address-update/src/main.js
import PropTypes from 'prop-types' import { actionEmitter, appFactory, cache, errorLogging, externalEvents, notification, formData, form } from 'tocco-app-extensions' import EntityListApp from 'tocco-entity-list/src/main' import {reducer as reducerUtil, env, appContext} from 'tocco-util' import Address...
JavaScript
0
@@ -231,16 +231,54 @@ c/main'%0A +import %7BGlobalStyles%7D from 'tocco-ui'%0A import %7B @@ -638,16 +638,54 @@ ontent = + (%0A %3C%3E%0A %3CGlobalStyles /%3E%0A %3CAddres @@ -694,16 +694,28 @@ pdate /%3E +%0A %3C/%3E%0A ) %0A%0A cons
278acfb642e2a930bdb02bfde2612e35ff6cc707
Change default behaviour to not preload (#11)
flowplayer.thumbnails.js
flowplayer.thumbnails.js
/*jslint browser: true, node: true */ /*global window */ /*! Thumbnail image plugin for Flowplayer HTML5 Copyright (c) 2015-2016, Flowplayer Oy Released under the MIT License: http://www.opensource.org/licenses/mit-license.php requires: - Flowplayer HTML5 version 6.x or greater revision: $GIT_...
JavaScript
0
@@ -2479,34 +2479,24 @@ f (c.preload - !== false ) %7B%0A
5712e0c3eb7a84be15edac4c352ba5d7f895216a
Change WebWiew to WebView
Libraries/Components/WebView/WebView.android.js
Libraries/Components/WebView/WebView.android.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
JavaScript
0.000001
@@ -4801,33 +4801,33 @@ this.getWeb -W +V iewHandle(),%0A @@ -4968,33 +4968,33 @@ this.getWeb -W +V iewHandle(),%0A @@ -5136,25 +5136,25 @@ this.getWeb -W +V iewHandle(), @@ -5513,17 +5513,17 @@ getWeb -W +V iewHandl
d8f2a6d7400b7782aa7c433094e4c7087aaaffba
switch view menu displays based on current user role
Orderys/src/main/webapp/resources/js/control.js
Orderys/src/main/webapp/resources/js/control.js
var usr = document.getElementById("userId").value; orderysApp.controller('profileController', function($scope, $http, dataFactory) { $scope.User; console.log(usr); dataFactory.getUser(usr).success(function (data) { console.log(data); $scope.User = data; }); /* $scope.isManager = function() { ...
JavaScript
0.000001
@@ -152,27 +152,8 @@ ;%0A%09%0A -%09console.log(usr);%0A %09%0A%09d @@ -206,29 +206,8 @@ ) %7B%0A -%09%09console.log(data);%0A %09%09$s @@ -231,18 +231,16 @@ %0A%09%7D);%0A%09%0A -/* %09$scope. @@ -265,24 +265,84 @@ on() %7B%0A%09 %0A +%09%09if($scope.User === undefined)%0A%09%09%7B%0A%09%09%09return false;%0A...
ea334972500ed6e5c2ab563b5309914f3ca1fa9c
Remove adroll script as per @jdorfman's request. (#756)
public/assets/js/main.js
public/assets/js/main.js
/* eslint-env browser */ (function() { 'use strict'; window.tryIt = function (n) { window.location.search = 'theme=' + n; }; window.toggleCode = function (el, name) { $('#' + name).toggleClass('hidden'); $(el).find('i').toggleClass('fa-caret-down'); $(el).find('i').togg...
JavaScript
0
@@ -966,498 +966,8 @@ */%0A -window.adroll_adv_id = 'P2URKLNIJJHPJGQLX4X2FG';%0Awindow.adroll_pix_id = 'WJFDYQ7CEZAXHPVFWBMMIY';%0A(function () %7B%0A var oldonload = window.onload;%0A window.onload = function() %7B%0A window.__adroll_loaded = true;%0A var scr = document.createElement('script');%0...
03d66233ff78a17e1483daed586a9623447ab453
Make sure we're registering a hotkey for a command that exists
public/config/default.js
public/config/default.js
window.config = { // default: '/' routerBasename: '/', // default: '' relativeWebWorkerScriptsPath: '', servers: { dicomWeb: [ { name: 'DCM4CHEE', wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado', qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DC...
JavaScript
0
@@ -796,21 +796,23 @@ mmand: ' -S +s cale +Up Viewport @@ -868,21 +868,23 @@ : %7B%0A -S +s cale +Up Viewport @@ -891,9 +891,9 @@ : %5B' -+ +s '%5D,%0A
b03bd7714e82096dc165846c78cd51689758df48
Update date in form.js
wordpress/mpec-meta.min.js
wordpress/mpec-meta.min.js
"use strict";jQuery(document).ready(function(){var e=window.location.search,t={},a=Date.now();if(e&&""!==e&&(e=e.replace("?","").split("&"),e&&e.length>0)){for(var r in e){var o=e[r].split("=");"mpec_"===o[0].substr(0,5)&&(t[o[0].substr(5,o[0].length-5)]=o[1])}t.date=a}if("undefined"!=typeof t.transform&&null!==localSt...
JavaScript
0.000002
@@ -258,16 +258,147 @@ 1%5D)%7D -t.date=a +%22undefined%22==typeof t.transform&&Object.keys(t).length%3E0&&(t.date=a),%22undefined%22!=typeof t.transform&&1===Object.keys(t).length&&(t.date=a) %7Dif(