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
f07aacbefc4270196f49e8e7308e13d7fe8d6634
update array/uneek -- format and lint
src/array/uneek.js
src/array/uneek.js
// uniq <https://github.com/mikolalysenko/uniq> // Copyright (c) 2013 Mikola Lysenko (MIT) "use strict" function unique (list, compare, sorted) { if(list.length === 0) return list if(compare) { if(!sorted) list.sort(compare) return unique_pred(list, compare) } if(!sorted) list.sort() return unique...
JavaScript
0
@@ -85,17 +85,17 @@ (MIT)%0A%0A -%22 +' use stri @@ -100,9 +100,9 @@ rict -%22 +' %0A%0Afu @@ -145,16 +145,17 @@ ) %7B%0A if + (list.le @@ -179,24 +179,25 @@ n list%0A%0A if + (compare) %7B%0A @@ -198,24 +198,25 @@ re) %7B%0A if + (!sorted) li @@ -279,16 +279,17 @@ %7D%0A%0A if + (!sorted @@ -44...
ffb165d7974ed6d168148f4e86b38824bf2e6dcb
Put word in subject
words-short.js
words-short.js
(function() { "use strict"; var R = require('ramda'); var w = require('./get-word'); var mail = require('./sendmail'); // custom R functions var r = {}; // make function that tests if a word contains a character r.strContains = R.curry(function(ch, word) { return R.strInd...
JavaScript
0.750936
@@ -1312,18 +1312,21 @@ the day -', +: ' + word);%0A
af7d3b465af7c4c46177e2e3e038488b87b13699
improve wizard prop
src/components/props/wizard-prop.js
src/components/props/wizard-prop.js
import SchemaProp from './schema-prop.js' import findIndex from 'lodash-es/findIndex' import { getWidget } from '@/utils' import objectMixin from '../mixins/object-mixin' export default { name: 'wizard-prop', mixins: [objectMixin], methods: { getSteps (steps) { return Object.keys(steps).map(step => {...
JavaScript
0.000001
@@ -411,24 +411,285 @@ %7D)%0A %7D,%0A + getPageProps (props) %7B%0A return props.map(prop =%3E %7B%0A const removedProps = this.props.splice(findIndex(this.props, %7Bname: prop%7D), 1)%0A if (removedProps && removedProps.length %3E 0) %7B%0A return removedProps%5B0%5D%0A %7D...
fb4baf66624373964ff885f0d696d25d20a1df44
Update schedule.js
utils/scripts/schedule.js
utils/scripts/schedule.js
/** * schedule.js: Fetch your UoG schedule from WebAdvisor. * * Author: Nick Presta * Copyright: Copyright 2012 * License: GPL * Version: 0.0.1 * Maintainer: Nick Presta * Email: nick@nickpresta.ca */ var casper = require('casper').create(); var fs = require('fs'), input = fs.open('/dev/stdin', 'r'); if ...
JavaScript
0.000002
@@ -125,11 +125,11 @@ se: -GPL +MIT %0A *
97b66042ba678c862052987438e18fad8514eb0d
fix bad use of PropTypes
src/components/vis/Word2VecChart.js
src/components/vis/Word2VecChart.js
import PropTypes from 'prop-types'; import React from 'react'; import * as d3 from 'd3'; import ReactFauxDOM from 'react-faux-dom'; import { injectIntl, FormattedHTMLMessage } from 'react-intl'; import fontSizeComputer from '../../lib/visUtil'; import { WarningNotice } from '../common/Notice'; const localMessages = { ...
JavaScript
0.000113
@@ -5284,14 +5284,8 @@ ds: -React. Prop
744af911f4f28669a2f477145d93e63db951f0ec
Deploy Flow v0.85 to www
src/model/immutable/SampleDraftInlineStyle.js
src/model/immutable/SampleDraftInlineStyle.js
/** * Copyright (c) 2013-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. * * @format ...
JavaScript
0
@@ -450,404 +450,2164 @@ %7B%0A -BOLD: OrderedSet.of('BOLD'),%0A BOLD_ITALIC: OrderedSet.of('BOLD', 'ITALIC'),%0A BOLD_ITALIC_UNDERLINE: OrderedSet.of('BOLD', 'ITALIC', 'UNDERLINE'),%0A BOLD_UNDERLINE: OrderedSet.of('BOLD', 'UNDERLINE'),%0A CODE: OrderedSet.of('CODE'),%0A ITALIC: OrderedSet.of('ITALIC'),%0A IT...
22a2270702def2540f2f5055168ff8ed21c46297
add 'whoami' API
js/common.js
js/common.js
/* Generate random string */ function generateString(len) { var string = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < len; i++) { string += possible.charAt(Math.floor(Math.random() * possible.length)); } // Done. return string; } /* Show/H...
JavaScript
0.000241
@@ -1682,12 +1682,13 @@ nd(null);%0A%7D%0A +%0A
dd8b0cc1ac6d266f720eb30b03b71d4762270f05
change ak sk
config.example.js
config.example.js
// # Ghost Configuration // Setup your Ghost install for various [environments](http://support.ghost.org/config/#about-environments). // Ghost runs in `development` mode by default. Full documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Produ...
JavaScript
0.000017
@@ -4097,90 +4097,90 @@ : ' -01e5d6a04c35477b840f57e0784e9568',%0A%09%09%09password : '6210dd278617490982a9009e5013e131 +471e718af6ac492f80a14112beb46b27',%0A%09%09%09password : '38a60ebc773c40718bc1484da8ecd187 ',%0A%09 @@ -4510,84 +4510,84 @@ k: ' -b2c13c638be641ea98bd7bd335a7e3b4',%0A%09%09%09%09sk: 'ab948346d10...
0f62c0fff3e29bb56e1a450330cb024fd9cf3f36
add barpolar mock to svg mock list
test/jasmine/assets/mock_lists.js
test/jasmine/assets/mock_lists.js
// list of mocks that should include *all* plotly.js trace modules var svgMockList = [ ['1', require('@mocks/1.json')], ['4', require('@mocks/4.json')], ['5', require('@mocks/5.json')], ['10', require('@mocks/10.json')], ['11', require('@mocks/11.json')], ['17', require('@mocks/17.json')], ...
JavaScript
0
@@ -1269,32 +1269,97 @@ ection.json')%5D,%0A + %5B'polar_wind-rose', require('@mocks/polar_wind-rose.json')%5D,%0A %5B'range_sele
e06a75327f6a7fe9c706d72d3d92b50ca4d0c0b3
use PhetFont(20)
js/bucket/BucketFront.js
js/bucket/BucketFront.js
// Copyright 2002-2013, University of Colorado Boulder /* * The front of a bucket (does not include the hole) */ define( function( require ) { 'use strict'; // Includes var Color = require( 'SCENERY/util/Color' ); var inherit = require( 'PHET_CORE/inherit' ); var LinearGradient = require( 'SCENERY/util/Li...
JavaScript
0
@@ -1036,20 +1036,10 @@ nt( -%7B size: 20 %7D +20 )%0A
5360d7e4d1d3b81920a72a76193e3a2fdc465f18
Update oauth_authenticator.js
lib/auth/oauth_authenticator.js
lib/auth/oauth_authenticator.js
var util = require('util'); var Bluebird = require('bluebird'); var Authenticator = require('./authenticator'); /** * Creates an authenticator that uses Oauth for authentication. * * @param {Object} options Configure the authenticator; must specify one * of `flow` or `credentials`. * @option {App} a...
JavaScript
0.000001
@@ -3978,16 +3978,17 @@ lback != += null) %7B @@ -4466,20 +4466,21 @@ OauthAuthenticator; +%0A
edfa54776dca8dbae2dc274c222c3b22be17dace
Fix typo from prev. commit.
lib/waterline/utils/query/transform-uniqueness-error.js
lib/waterline/utils/query/transform-uniqueness-error.js
/** * Module dependencies */ var util = require('util'); var _ = require('@sailshq/lodash'); var getModel = require('../ontology/get-model'); /** * transformUniquenessError() * * Given a raw uniqueness error from the adapter, examine its `footprint` property in order * to build a new, normalized Error insta...
JavaScript
0.000001
@@ -2166,16 +2166,26 @@ ssError. +footprint. keys)) %7B
a2ed81716fb7d6d38f92154e0b79b4e91b5e0f61
Fix task test
test/js/unit/tasks/routes_test.js
test/js/unit/tasks/routes_test.js
pavlov.specify('Project Task List Route Tests', function() { describe('App.ProjectTaskListRoute Class', function () { it('should be an Ember.Route', function() { assert(App.ProjectTaskListRoute).isDefined(); assert(Ember.Route.detect(App.ProjectTaskListRoute)).isTrue(); }); ...
JavaScript
0.999999
@@ -80,28 +80,30 @@ .ProjectTask -List +sIndex Route Class' @@ -200,28 +200,30 @@ .ProjectTask -List +sIndex Route).isDef @@ -279,28 +279,30 @@ .ProjectTask -List +sIndex Route)).isTr @@ -514,28 +514,30 @@ .ProjectTask -List +sIndex Route.create
edc3fe89d10802fc1f08a72629cf7f1a4f95aef6
Remove done TODO
middleware/process-aoi.js
middleware/process-aoi.js
'use strict' const fork = require('child_process').fork const path = require('path') const async = require('async') const queue = require('../lib/queue') const redis = require('../lib/redis') const UPLOAD_PATH = path.join(__dirname,'../uploaded_aois') exports.runner = function (options){ return function (req...
JavaScript
0.000009
@@ -1282,74 +1282,8 @@ ist%0A - // TODO get oauth working so we know which user this is%0A
8dce649933212445a8210ed9d53a64b972ad4b9e
Use last_value as a fallback if model value isn't set - Did this to avoid repeated value set of datetime value which causes browser to freeze. This happens only with the datetime control is used in filters (with a default value) and is not linked with a form.
frappe/public/js/frappe/form/controls/datetime.js
frappe/public/js/frappe/form/controls/datetime.js
frappe.ui.form.ControlDatetime = class ControlDatetime extends frappe.ui.form.ControlDate { set_formatted_input(value) { if (this.timepicker_only) return; if (!this.datepicker) return; if (!value) { this.datepicker.clear(); return; } else if (value === "Today") { value = this.get_now_date(); } val...
JavaScript
0
@@ -2408,16 +2408,77 @@ alue();%0A +%09%09if (!value && !this.doc) %7B%0A%09%09%09value = this.last_value;%0A%09%09%7D%0A %09%09return
a70fadfdc93a0bb67433fe1c102c1f236fc9593e
Add support for other numbers
components/prism-haskell.js
components/prism-haskell.js
Prism.languages.haskell= { 'comment': { pattern: /(^|[^-!#$%*+=\?&@|~.:<>^\\])(--[^-!#$%*+=\?&@|~.:<>^\\].*(\r?\n|$)|{-[\w\W]*?-})/gm, lookbehind: true }, 'string': /("|')(\\?.)*?\1/g, 'keyword' : /\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\...
JavaScript
0
@@ -2533,24 +2533,191 @@ With3)%5Cb/g,%0A +%09// decimal integers and floating point numbers %7C octal integers %7C hexadecimal integers%0A%09'number' : /%5Cb(%5Cd+(%5C.%5Cd+)?(%5BeE%5D%5B+-%5D?%5Cd+)?%7C0%5BOo%5D%5B0-7%5D+%7C0%5BXx%5D%5B0-9a-fA-F%5D+)%5Cb/g,%0A %09// Most of @@ -3412,42 +3412,8 @@ /g,%0A -%09'numb...
9bf9699084a6c32aa4dc7b9b9cd65362501f628b
fix site title typo
config/env/all.js
config/env/all.js
'use strict'; module.exports = { app: { title: 'BraverHerder', description: 'Brave Frontier Unit Database with MongoDB, Express, AngularJS, and Node.js', keywords: 'Brave Frontier, Units, Characters, Database, Team Building, BraverHerder' }, port: process.env.PORT || 3000, templateEngine: 'swig', sessionSec...
JavaScript
0.000098
@@ -46,25 +46,24 @@ itle: 'Brave -r Herder',%0A%09%09d
0b8b1fbe670286777d741d5a27b88629ebff4220
Fix hero background for firefox
components/sections/hero.js
components/sections/hero.js
import Button from '../Button' import Confetti from 'react-dom-confetti' import Logo from '../../static/images/kap.svg' import KapWindowImage from '../../static/images/kap-window@2x.png' import colors from '../../lib/colors' const Info = () => ( <div> <a href="https://github.com/wulkano/kap">View and contribute ...
JavaScript
0.000001
@@ -3580,17 +3580,16 @@ (-50%25);%0A -%0A @@ -4592,63 +4592,8 @@ %7D%0A - .hero %7B%0A min-height: 56rem;%0A %7D%0A
ee6368d20cf9b9fc296c4cc9207d2b13c48d6d4c
Test cases for constructor.
test/patterns/constructor.test.js
test/patterns/constructor.test.js
/* global describe, it, expect */ var Constructor = require('../../lib/patterns/constructor'); describe('Constructor', function() { describe('instantiated with too many arguments', function() { function Animal(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { } var ctor = new Constructor('animal', [], ...
JavaScript
0
@@ -134,21 +134,330 @@ %7B%0A -%0A describe(' +function Animal(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) %7B%0A this._a0 = a0;%0A this._a1 = a1;%0A this._a2 = a2;%0A this._a3 = a3;%0A this._a4 = a4;%0A this._a5 = a5;%0A this._a6 = a6;%0A this._a7 = a7;%0A this._a8 = a8;%0A this._a9 = a9;...
7432f216bb357c2aeba176d0a47eeabd974a3056
add handler for missing configuration errors
js/controllers/signin.js
js/controllers/signin.js
'use strict'; angular.module('copay.signin').controller('SigninController', function($scope, $rootScope, $location, walletFactory, controllerUtils, Passphrase) { var cmp = function(o1, o2){ var v1 = o1.show.toLowerCase(), v2 = o2.show.toLowerCase(); return v1 > v2 ? 1 : ( v1 < v2 ) ? -1 : 0; }; ...
JavaScript
0.000001
@@ -1000,16 +1000,54 @@ ined');%0A + var w, errMsg;%0A try%7B%0A @@ -1122,24 +1122,87 @@ ssphrase%7D);%0A + %7D catch (e)%7B%0A errMsg = e.message;%0A %7D;%0A%0A if ( @@ -1250,32 +1250,32 @@ ailure = false;%0A - $rootS @@ -1305,16 +1305,26 @@ mess...
372991c7efb80d2b04c3c6a09d600d512769b959
Capitalize a character in a string
lib/commands/ember-cli-jsdoc.js
lib/commands/ember-cli-jsdoc.js
'use strict'; module.exports = { name: 'ember-cli-jsdoc', run: function() { var exec = require( 'child_process' ).exec; var rsvp = require( 'rsvp' ); var path = require( 'path' ); var chalk = require( 'chalk' ); var cmdPath = ( Number( process.version.match( /^v(\d+)/ )...
JavaScript
1
@@ -831,17 +831,17 @@ C: ERROR -s +S have oc
21ef434850c956e3df1ff655c94853c56b0200d3
add allStepsCompleted prop to component
components/progressTracker/ProgressTracker.js
components/progressTracker/ProgressTracker.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import theme from './theme.css'; import Box from '../box'; import ProgressStep from './ProgressStep'; class ProgressTracker extends PureComponent { render() { const { color, children, activeStep } = th...
JavaScript
0
@@ -306,16 +306,35 @@ tiveStep +, allStepsCompleted %7D = thi @@ -638,16 +638,44 @@ active: + allStepsCompleted ? false : index = @@ -718,16 +718,37 @@ mpleted: + allStepsCompleted %7C%7C index %3C @@ -869,16 +869,101 @@ pes = %7B%0A + /** Whether or not all steps are completed */%0A allStepsCompleted: Pro...
ea76a4b3f63f0d6ddddca7c428ea497ed7da0f6a
Test attribute is set correctly for Nam = Val
tests/commands/sgaTests.js
tests/commands/sgaTests.js
var sga = require("__buttercup/classes/commands/command.sga.js"); module.exports = { setUp: function(cb) { this.command = new sga(); (cb)(); }, errors: { groupNotFoundForId: function(test) { var fakeSearching = { findGroupByID: function(a, b) { return false; } }...
JavaScript
0.000261
@@ -689,12 +689,640 @@ %7D%0A %7D, +%0A%0A setAttribute: %7B%0A setsAttributeValueValForNameNam: function(test) %7B%0A var attributeName = 'Nam',%0A attributeValue = 'Val';%0A%0A var fakeGroup = %7B%0A attributes: %7B%7D%0A %7D;%0A%0A var fakeSearching = %7B%0A findGro...
f20f7aa9f6708bf1a7171d76136737f3009df032
fix theatre mode
common/content/theatre-mode.js
common/content/theatre-mode.js
(function (){ var theatreBtnSelector = '.qa-theatre-mode-button'; const MAX_TRIES = 400; function waitUntilVisible(selector, callback){ var tries = 0; var tm = setInterval(function (){ var el = document.querySelector(selector); if ( ++tries > MAX_TRIES ) { clearInterval(tm); ...
JavaScript
0.000001
@@ -40,11 +40,30 @@ = ' -.qa +%5Bdata-a-target=%22player -the @@ -78,16 +78,18 @@ e-button +%22%5D ';%0A con @@ -986,34 +986,34 @@ if ( /mode=theat -e r +e /i.test(ref) %7C%7C @@ -1023,18 +1023,18 @@ de=theat -e r +e /i.test(
d9a98bb71830aab192d2e37368bb69dbbf04b07d
Add application started global var
www/lib/global.js
www/lib/global.js
var recipes = null; var recipe_images = null; var favs = []; var interval_ready_id = null; var registered = false; var last_updated = "1984-01-01"; Storage.prototype.setObj = function(key, obj) { return this.setItem(key, JSON.stringify(obj)); }; Storage.prototype.getObj = function(key) { return JSON.parse(this.ge...
JavaScript
0
@@ -140,16 +140,49 @@ -01-01%22; +%0Avar application_started = false; %0A%0AStorag
d279fd6705936c8d944a49612a9415d7b876c606
package script updates
package-scripts.js
package-scripts.js
const { series, crossEnv, concurrent, rimraf } = require('nps-utils'); const { config: { port: E2E_PORT } } = require('./test/protractor.conf'); module.exports = { scripts: { default: 'nps webpack', test: { default: 'nps test.jest', jest: { default: crossEnv('BABEL_TARGET=node jest'), ...
JavaScript
0.000001
@@ -265,32 +265,90 @@ default: + series(%0A rimraf('test/coverage-jest'),%0A crossEnv('BABEL @@ -362,24 +362,34 @@ =node jest') +%0A ) ,%0A ac @@ -490,16 +490,17 @@ -watch') +, %0A %7D
d4eda0963cc512bf46005f89ce9e5e0e78ee15ad
Deal with more complex wrappings, get first three tests passing.
wapper.js
wapper.js
var Wapper = { split: function(range) { var startParent = range.startContainer var endParent = range.endContainer if (startParent == endParent) { // Achtung! Zero-length selection. if (range.startOffset == range.endOffset) return endParent.splitText(range.endOffset) var middle = ...
JavaScript
0
@@ -2079,16 +2079,58 @@ t(range) +%0A var currentParent%0A var groups = %5B%5D %0A%0A fu @@ -2201,24 +2201,71 @@ an%22)%0A %7D%0A%0A + // Group contained nodes by shared parent.%0A for (var @@ -2311,157 +2311,490 @@ var -wrapper = createWrapper()%0A var elem = elems%5Bi%5D%0A wrapper....
aba326e0f9ed0ba8b1708532ec80dc95ede7f89d
add support for inlined view-kind definitions in application kinds
source/kernel/ViewController.js
source/kernel/ViewController.js
//*@public /** The _enyo.ViewController_ is an abstract class designed to allow a controller to own a _view_ and designate its state rather than the other way around. It has the ability to render its _view_ into the DOM on demand. */ enyo.kind({ //*@public name: "enyo.ViewController", //*@p...
JavaScript
0
@@ -835,99 +835,8 @@ ted%0A - constructor: function () %7B%0A this.inherited(arguments);%0A %7D,%0A //*@protected%0A @@ -2150,32 +2150,128 @@ iew;%0A if +(%22object%22 === typeof view && view.kind) %7B%0A view = enyo.kind(view);%0A %7D else if (%22string%22 === ty
6748773551c629d82338978c47544334fa31e5a5
debug events in drawbot
communication/communication.js
communication/communication.js
var root = require('../root'), fs = require('fs'), util = require('util'), events = require('events'), serialport = require("serialport"), SerialPort = serialport.SerialPort; // localize object constructor /** * Communication class to talk with the drawbot */ var Communication = function() { var firstA...
JavaScript
0.000001
@@ -2819,20 +2819,25 @@ (cmd - === +.indexOf( 'M200') +) %7B%0A @@ -2984,20 +2984,25 @@ (cmd - === +.indexOf( 'M201') +) %7B%0A
5d640ae55adb74fc72cf751ae4bc2fdb7db6e231
print user's ip
UIServer.js
UIServer.js
var express = require('express'); var http = require('http'); var path = require('path'); var fs = require('fs'); var favicon = require('serve-favicon'); var bodyParser = require('body-parser'); var config = require('./config.json'); var db = require('./model/db.js'); var log = require('./model/log.js'); /* * Projec...
JavaScript
0.000388
@@ -1635,16 +1635,194 @@ %22%22%0A%7D;%0A%0A +// get IP%0Aapp.use(function(req, res, next) %7B%0A var ip = req.headers%5B'x-forwarded-for'%5D %7C%7C req.connection.remoteAddress;%0A log.info(%22New request, ip: %22 + ip);%0A next();%0A%7D);%0A %0A// API:
92a922c89bae8cf188ef160ac0023f4592a9fc7d
Support params when deriving mark:set commands
defaultschema.js
defaultschema.js
import {SchemaSpec, Schema, Block, Textblock, Inline, Text, Attribute, MarkType} from "./schema" // ;; The default top-level document node type. export class Doc extends Block { static get kinds() { return "doc" } } // ;; The default blockquote node type. export class BlockQuote extends Block {} // ;; The default ...
JavaScript
0
@@ -543,39 +543,8 @@ %22 %7D%0A - get isList() %7B return true %7D%0A ge @@ -731,39 +731,8 @@ %22 %7D%0A - get isList() %7B return true %7D%0A %7D%0A%0A/
bc8f0f74ac71dc24ba1f074da63890da6d6628b6
Fix calendar rendering and for loops
js/cowCal.js
js/cowCal.js
/* * cowCal Javascript calendar plugin * Author: Dave Russell Jr (drussell393) * License: MIT */ /* * Here's something fun to blow minds. Below is the conversion function for timezones. * Because the server (this was originally built for WordPress) has a different saved * timezone from our local timezone in som...
JavaScript
0
@@ -2397,41 +2397,8 @@ r%3E'; -%0A var i = this.firstDayofWeek; %0A%0A @@ -2473,24 +2473,53 @@ for ( +var i = this.firstDayofWeek; i %3C 7; i++;) @@ -2512,25 +2512,24 @@ ; i %3C 7; i++ -; ) %7B%0A @@ -2600,24 +2600,29 @@ %7D%0A +for ( var i = 0;%0A @@ -2619,30 +2619,17 @@ r i = ...
6e60a0f7b169abe358a88b10d83fbde15ccf79de
修复html-loader解析错误问题
lib/config/genConfig/mp/html.js
lib/config/genConfig/mp/html.js
'use strict' let _ = require('lodash'); let path = require('path'); let glob = require('glob'); let webpack = require('webpack'); let HtmlWebpackPlugin = require('html-webpack-plugin'); let WebpackSrcmapPlugin = require('webpack-srcmap-plugin'); let FaviconsWebpackPlugin = require('favicons-webpack-plugin'); let HtmlW...
JavaScript
0.000001
@@ -5722,16 +5722,23 @@ r: 'html +-loader ',%0A
78789e7b62e11c1e242037481b03dc03185eca93
Add vote results back to entries
voting-server/src/core.js
voting-server/src/core.js
import {List, Map} from 'immutable'; export function setEntries(state, entries) { return state.set('entries', List(entries)); } export function next(state) { const entries = state.get('entries'); return state.merge({ vote: Map({pair: entries.take(2)}), entries: entries.skip(2) }); } e...
JavaScript
0
@@ -123,24 +123,445 @@ tries));%0A%7D%0A%0A +function getWinners(vote) %7B%0A if (!vote) %7B%0A return %5B%5D;%0A %7D%0A%0A const %5BmovieA, movieB%5D = vote.get('pair');%0A const movieAVotes = vote.getIn(%5B'tally', movieA%5D, 0);%0A const movieBVotes = vote.getIn(%5B'tally', movieB%5D, 0);%0A%0...
7863ee5594e25a757c685179d5f86032721fed69
Add google analythics and facebook pixel widget
js/custom.js
js/custom.js
(function($){ "use strict"; // ______________ SUPERFISH jQuery('#navigation').superfish({ speed : 1, animation: false, animationOut: false }); // ______________ MOBILE MENU $(function(){ $('#navigation').slicknav({ label: "", closedSymbol: "&...
JavaScript
0
@@ -2066,8 +2066,877 @@ jQuery); +%0A%0A// Google Analytics%0A(function(i,s,o,g,r,a,m)%7Bi%5B'GoogleAnalyticsObject'%5D=r;i%5Br%5D=i%5Br%5D%7C%7Cfunction()%7B%0A(i%5Br%5D.q=i%5Br%5D.q%7C%7C%5B%5D).push(arguments)%7D,i%5Br%5D.l=1*new Date();a=s.createElement(o),%0Am=s.getElementsByTagName(o)%5B0%5D;a.async=1;a.src=g;m....
7e89d60fb7f4c5f99f2e1793d086303949968ab3
Add `large` to the size prop values
src/components/iconButton/IconButton.js
src/components/iconButton/IconButton.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import Icon from '../icon'; import cx from 'classnames'; import buttonTheme from '../button/theme.css'; import theme from './theme.css'; class IconButton extends Component { handleMouseUp = (event) => { this.b...
JavaScript
0.000006
@@ -2042,16 +2042,25 @@ 'medium' +, 'large' %5D),%0A co
9739dd717a7a284f15814ec0fe52a77efb1f2856
Move stylesheet to react-atlas package when building for production.
scripts/buildPackages.js
scripts/buildPackages.js
var fs = require("fs"); var path = require("path"); var spawn = require("cross-spawn"); var glob = require("glob"); var path = require("path"); // get packages paths var packages = glob.sync(path.join(__dirname, "../packages/react-atlas*/"), { realpath: true }); packages.push(packages.shift()); packages.forEach(func...
JavaScript
0
@@ -764,12 +764,405 @@ );%0A %7D%0A %7D);%0A +%0A /* If we are building for production move the stylesheet from react-atlas-default-theme/lib to react-atlas/lib */%0A if(process.env.NODE_ENV === 'production') %7B%0A var oldPath = path.join(__dirname, %22../packages/react-atlas-default-theme/lib/atlasThemes.min.css%...
cdee4b6c176d0e59a7882a9801256ab7a4211071
add some classic rules, fix typo
src/components/profile/profile.style.js
src/components/profile/profile.style.js
import styled, { css } from 'styled-components'; import Portrait from '../portrait'; import baseTheme from '../../style/themes/base'; import { THEMES } from '../../style/themes'; const portraitSizes = { 'extra-small': { dimensions: 24, nameSize: '13px', emailSize: '12px', lineHeight: '12px', marg...
JavaScript
0.000022
@@ -710,17 +710,17 @@ marginL -E +e ft: '24p @@ -1279,24 +1279,115 @@ %5D.nameSize%7D; +%0A%0A $%7B(%7B theme %7D) =%3E theme.name === THEMES.classic && css%60%0A display: inline;%0A %60%7D; %0A%60;%0A%0Aconst P @@ -1480,16 +1480,107 @@ ilSize%7D; +%0A%0A $%7B(%7B theme %7D) =%3E theme.name === THEM...
f3c23239c7bb29640de1f658c5a21b87f94ba493
update etl for dim supplier
src/etl/dim-supplier-etl-manager.js
src/etl/dim-supplier-etl-manager.js
'use strict' // external deps var ObjectId = require("mongodb").ObjectId; var BaseManager = require('module-toolkit').BaseManager; var moment = require("moment"); var startedDate = new Date(); // internal deps require('mongodb-toolkit'); var SupplierManager = require('../managers/master/supplier-manager'); module...
JavaScript
0
@@ -2372,22 +2372,21 @@ time%5B0%5D. -finish +start );%0A
77a94a27b989a9887df099353af9cc843afa75a9
Fix error when showing "add moderator" dialog in ACP
client/admin/forum/section/index.js
client/admin/forum/section/index.js
'use strict'; const _ = require('lodash'); const Bloodhound = require('corejs-typeahead/dist/bloodhound.js'); let $moderatorSelectDialog; let bloodhound; require('jqtree'); N.wire.on('navigate.done:' + module.apiPath, function page_setup() { $('.aforum-index__scontent').tree({ data: N.runtime.pa...
JavaScript
0.000001
@@ -3253,16 +3253,30 @@ false %7D) +.modal('show') ;%0A%7D);%0A%0A%0A
263e0d66b54185067d1f48b491315347c17b9219
Add cookie policy link to menu (#112)
components/GlobalMenu/index.js
components/GlobalMenu/index.js
// @flow /** * Part of GDL gdl-frontend. * Copyright (C) 2018 GDL * * See LICENSE */ import React, { Fragment } from 'react'; import { withRouter } from 'next/router'; import { Trans } from '@lingui/react'; import Link from 'next/link'; import config from '../../config'; import type { Language, ReadingLevel } fr...
JavaScript
0
@@ -5266,32 +5266,195 @@ %3C/MenuItem%3E%0A + %3CMenuItem href=%22https://home.digitallibrary.io/the-global-digital-library-uses-cookies/%22%3E%0A %3CTrans%3ECookie policy%3C/Trans%3E%0A %3C/MenuItem%3E%0A %3CMenuI
73372fbc0dba9520484c94550e4519977ad0070d
Update characteristic.js
RC/ble/characteristic.js
RC/ble/characteristic.js
var util = require('util'); var bleno = require('bleno'); var redis = require("redis"); var BlenoCharacteristic = bleno.Characteristic; var DBCCharacteristic = function() { EchoCharacteristic.super_.call(this, { uuid: 'ac5636ee-3d36-4afe-9662-ec47fbfe1dd0', properties: ['read', 'write', 'notify'], valu...
JavaScript
0.000001
@@ -132,16 +132,75 @@ istic;%0A%0A +var characterID = '9a10ba1d-cd1c-4f00-9cca-1f3178d5fe8a';%0A%0A var DBCC @@ -230,20 +230,19 @@ n() %7B%0A -Echo +DBC Characte @@ -282,46 +282,19 @@ id: -'ac5636ee-3d36-4afe-9662-ec47fbfe1dd0' +characterID ,%0A @@ -566,36 +566,35 @@ %0A console.log(' -Echo +DBC Character...
78bca165ffd99ba50f04369f314f7baeb54e05fe
update views for Crunch Lab user and capability selection
src/foam/u2/crunch/lab/CrunchLab.js
src/foam/u2/crunch/lab/CrunchLab.js
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.crunch', name: 'CrunchLab', extends: 'foam.u2.Controller', implements: [ 'foam.mlang.Expressions' ], css: ` ^ svg { height: calc(100% - 4...
JavaScript
0
@@ -336,16 +336,93 @@ /%0A %7D%0A + %5E .foam-u2-view-RichChoiceView-selection-view %7B%0A width: 30vw;%0A %7D%0A %60,%0A%0A @@ -1011,106 +1011,641 @@ ity' -%0A %7D,%0A %7B%0A name: 'crunchUser',%0A class: 'Reference',%0A of: 'foam.nanos.auth.User' +,%0A view: function(_, ...
e9e9987070099eeff6614316675596cfeabdf42b
fix month issue
lib/entities/banktransaction.js
lib/entities/banktransaction.js
var _ = require('lodash') , Entity = require('./entity') , logger = require('../logger') , ContactSchema = require('./contact').ContactSchema , Contact = require('./contact') , LineItemSchema = require('./shared').LineItemSchema var BankTransactionSchema = new Entity.SchemaObject({ Contact: { t...
JavaScript
0.000001
@@ -2273,24 +2273,25 @@ lYear()+'-'+ +( this.Date.ge @@ -2299,16 +2299,19 @@ Month()+ +1)+ '-'+this
65695cf8b0356d5f290ba75d2830e0998368ead2
add missing type field
components/SentenTree/index.js
components/SentenTree/index.js
import { select } from 'd3-selection'; import VisComponent from '../../VisComponent'; import { SentenTreeBuilder, SentenTreeVis } from 'sententree/dist/SentenTree'; export default class SentenTree extends VisComponent { static get options () { return [ { name: 'data', description:...
JavaScript
0.000001
@@ -743,32 +743,56 @@ text sample.',%0A + type: 'string',%0A domain:
096063db0de5ce44725c8ec10993af3521b7f3d2
Add update to dataTableStyles for more verbose styling
src/globalStyles/dataTableStyles.js
src/globalStyles/dataTableStyles.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import { Dimensions } from 'react-native'; import { BACKGROUND_COLOR, BLUE_WHITE, LIGHT_GREY, WARM_GREY, DARK_GREY, SUSSOL_ORANGE, } from './colors'; import { APP_FONT_FAMILY } from './fonts'; export const dataTableColors = { checkableCe...
JavaScript
0
@@ -650,16 +650,42 @@ white',%0A + flexDirection: 'row',%0A %7D,%0A h @@ -829,57 +829,309 @@ ,%0A -%7D,%0A row: %7B%0A backgroundColor: BACKGROUND_COLOR + flexDirection: 'row',%0A alignItems: 'center',%0A justifyContent: 'space-between',%0A %7D,%0A row: %7B%0A backgroundColor: BACKGROUND_COLO...
5416fc7e98d1cfc1fe841536c363433807f7f602
load results sooner
ReleaseDisplay/js/app.js
ReleaseDisplay/js/app.js
function moreHeadlines(strAPI) { "use strict"; //Call StellBioTech NewsRelease $.getJSON(strAPI, function (pressReleases) { pressReleases.news.forEach(function (headline) { var $panel = $('<div class="panel panel-default">'), $h2 = $("<h2>"), $p = $("<p>"...
JavaScript
0
@@ -1261,17 +1261,17 @@ ght() - -2 +5 00) %7B%0A
d82cd9b7bd03708f4940b4508acd0394713b8869
fix post order when new posts appear between loading index and expanding
js/expand.js
js/expand.js
/* *expand.js * https://github.com/savetheinternet/Tinyboard/blob/master/js/expand.js * * Released under the MIT license * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org> * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; * $config['additional_javascript'][] = 'js/expand....
JavaScript
0
@@ -957,19 +957,34 @@ %0A%09%09%09%09%09%09%09 -if( +var post_in_doc = thread.f @@ -1012,16 +1012,39 @@ r('id')) +;%0A%09%09%09%09%09%09%09if(post_in_doc .length @@ -1364,24 +1364,84 @@ %09%09%0A%09%09%09%09%09%09%09%7D%0A +%09%09%09%09%09%09%09else %7B%0A%09%09%09%09%09%09%09%09last_expanded = post_in_doc;%0A%0...
9a3dc17fae2b4806402c54fd28b78e796a2c92a0
Update spec/unit/BridgedClient.spec.js
spec/unit/BridgedClient.spec.js
spec/unit/BridgedClient.spec.js
"use strict"; const { BridgedClient, BridgedClientStatus } = require("../../lib/irc/BridgedClient.js"); const STATE_DISC = { status: BridgedClientStatus.DISCONNECTED } const STATE_CONN = { status: BridgedClientStatus.CONNECTED, client: {} } const STATE_CONN_MAX5 = { status: BridgedClientStatus.CONNEC...
JavaScript
0
@@ -828,16 +828,28 @@ it(%22 -nick mus +will allow nicks tha t st @@ -861,17 +861,9 @@ ith -letter of +a spe
79f55be52a77d67f4daf63bcfb83f1c6795966c1
Handle secondary commands when creating the keyboardControlMap in popup
src/core/pages/popup/event-callbacks.js
src/core/pages/popup/event-callbacks.js
/* Main DOM event-handlers */ import keyboard, { TAB_NEXT } from 'core/keyboard'; import { injectTabsInList, addHeadTabListNodeSelectedStyle, } from './utils/dom'; import { navigateResults } from './utils/keyboard'; import { switchActiveTab, restoreClosedTab, deleteTab, openBookmark, openHistoryItem, } fr...
JavaScript
0
@@ -1900,16 +1900,327 @@ s();%0A%7D%0A%0A +// Merges maps into the one specified in target%0Afunction mapAssign(target, ...sources) %7B%0A return sources.reduce(%0A (acc, map) =%3E %7B%0A // eslint-disable-next-line no-restricted-syntax%0A for (const %5Bkey, value%5D of map) %7B%0A acc.set(key, va...
6ddd8d83c51ef1610f334e856ae3dc9551142643
Noting event that should be emitted
src/core/pipelines/pipeline-executor.js
src/core/pipelines/pipeline-executor.js
'use strict' let connection = require('../../db/connection') let logger = require('tracer').colorConsole() let extensionRegistry = require('../../extensions/registry') let Stage = require('./stage').Stage /** * @prop {int|string} executionId * @prop {object} execution * @prop {object} config * @prop {object} conf...
JavaScript
0.999323
@@ -2236,24 +2236,79 @@ allback) %7B%0A%0A + // TODO: emit event for pipeline_execution update%0A%0A if (this
2abce000bee32d936ce36d3440b0211fd19cc642
Add timestamp to location messages
vor-backend/app/index.js
vor-backend/app/index.js
'use strict'; const Rx = require('rx'); const Cache = require('app/cache'); const viewRoute = require('app/views/routes'); const views = require('app/views'); module.exports = function (app, router, configs, sharedConfigs) { // listen socket connections const socketConnectionSource$ = Rx.Observable.fromEvent(app....
JavaScript
0.000015
@@ -634,32 +634,155 @@ = 'location');%0A%0A + // Add timestamp to every location message.%0A deviceSource$.subscribe(message =%3E message.date = (new Date()).toJSON());%0A%0A // listen sock
0ace2f6aed942796df6c9a8b4fa1abe349bc7fd8
Fix some lint
opentreemap/treemap/js/src/mapManager.js
opentreemap/treemap/js/src/mapManager.js
"use strict"; var $ = require('jquery'), _ = require('underscore'), OL = require('OpenLayers'), makeLayerFilterable = require('./makeLayerFilterable'); exports.ZOOM_DEFAULT = 11; exports.ZOOM_PLOT = 18; exports.init = function(options) { var config = options.config, map = createMap($(options....
JavaScript
0.018536
@@ -62,24 +62,60 @@ derscore'),%0A + google = require('googlemaps'),%0A OL = req @@ -3521,16 +3521,25 @@ %7D) +%0A %5D;%0A %7D @@ -4127,16 +4127,25 @@ ls: 22%7D) +%0A %5D;%0A %7D
d601aa88189b3dfed546c196f40e3df7566a596c
Update app.js
web/app.js
web/app.js
//core libraries var express = require('express'); var http = require('http'); var path = require('path'); var connect = require('connect'); var app = express(); //this route will serve as the data api (whether it is the api itself or a proxy to one) var api = require('./routes/api'); //express configuration //Eexpr...
JavaScript
0.000002
@@ -578,11 +578,11 @@ %7C%7C 3 -000 +857 );%0A%0A
55822ac3a8ce0d762d38c76583b1e63dcb869397
Fix `environment.js`
tests/dummy/config/environment.js
tests/dummy/config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'ember-app', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-c...
JavaScript
0.000029
@@ -59,16 +59,79 @@ ment) %7B%0A + var backendUrl = 'https://northwindodata.azurewebsites.net';%0A var EN @@ -136,16 +136,16 @@ ENV = %7B%0A - modu @@ -522,9 +522,12 @@ ted%0A -%09 + ba @@ -540,68 +540,2043 @@ rl: -'http://flexberry-ember-dummy.azurewebsites.net/odata'%0A %7D +backendUrl,%0A%0A ...
a7a96eba4982b7ee6c1bac4921daac913a915531
Update backend URLs
tests/dummy/config/environment.js
tests/dummy/config/environment.js
/* jshint node: true */ module.exports = function (environment) { var backendUrl = 'http://bi-vm1.cloudapp.net:12001'; if (environment === 'development-loc') { // Use `ember server --environment=development-loc` command for local backend usage. backendUrl = 'http://localhost:63138'; } if (environment...
JavaScript
0.000001
@@ -288,12 +288,11 @@ st:6 -3138 +500 ';%0A @@ -455,33 +455,38 @@ //flexberry- -ember-gis +gis-test-stand .azurewebsit @@ -636,17 +636,22 @@ rry- -ember-gis +gis-test-stand .azu @@ -2175,17 +2175,16 @@ ,%0A %7D, - %0A%0A us
f9ca52fbc5bf431bd81dc7991cc258ec85872546
Fix shields down crashing Brave
js/state/siteSettings.js
js/state/siteSettings.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/. */ const Immutable = require('immutable') const urlParse = require('url').parse module.exports.braveryDefaults = (ap...
JavaScript
0
@@ -2204,25 +2204,17 @@ pConfig%5B -resourceN +n ame%5D.shi
70e1e3c920ccd1a127c2ba2081afffec30f2cd8f
Remove unused utility functions
js/helper.js
js/helper.js
(function(app) { 'use strict'; var helper = {}; helper.encodePath = function(str) { return str.split('/').map(function(s) { return encodeURIComponent(s); }).join('/'); }; helper.clamp = function(number, lower, upper) { return Math.min(Math.max(number, lower), upper); }; helper.inheri...
JavaScript
0.000001
@@ -302,393 +302,8 @@ %7D;%0A%0A - helper.inherits = function(ctor, superCtor) %7B%0A ctor.super_ = superCtor;%0A ctor.prototype = Object.create(superCtor.prototype, %7B%0A constructor: %7B%0A value: ctor,%0A enumerable: false,%0A writable: true,%0A configurable: true,%0A %...
3cd80d3f1e182320713ec51f51d10f2fd85b2f20
Remove tool tip from unregistered user errors
js/views/message_view.js
js/views/message_view.js
/* * vim: ts=4:sw=4:expandtab */ (function () { 'use strict'; window.Whisper = window.Whisper || {}; var URL_REGEX = /(^|[\s\n]|<br\/?>)((?:https?|ftp):\/\/[\-A-Z0-9\u00A0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD+\u0026\u2019@#\/%?=()~_|!:,.;]*[\-A-Z0-9+\u0026@#\/%=~()_|])/gi; var ErrorIconView = Whisper.Vi...
JavaScript
0
@@ -416,64 +416,32 @@ -render_attributes: function() %7B%0A var message; +initialize: function() %7B %0A @@ -504,60 +504,8 @@ ) %7B%0A - message = i18n('unregisteredUser');%0A @@ -554,32 +554,32 @@ d-user-error');%0A + %7D%0A @@ -580,49 +580,8 @@ %7D%0A - ...
0d41b41ed9f7a5114804c462b4fca17195f599eb
Rename command db to command store
xpl-db.js
xpl-db.js
/*jslint node: true, vars: true, nomen: true */ 'use strict'; var Xpl = require("xpl-api"); var commander = require('commander'); var os = require('os'); var debug = require('debug')('xpl-db'); var Mysql = require('./lib/mysql'); var Server = require('./lib/server'); commander.version(require("./package.json").versio...
JavaScript
0.999251
@@ -928,18 +928,21 @@ ommand(%22 -db +store %22).actio
9157ef7be18368030ebd69e7d9e5bd519e2be159
fix resolving node_modules
src/defaults/compiler_config_factory.js
src/defaults/compiler_config_factory.js
// @flow export default function defaultConfigFactory(env: string): WebpackConfig { const config = { output: { filename: '[name].[chunkhash].js', path: '~public/assets', chunkFilename: '[name].[chunkhash].chunk.js', }, resolve: { modules: [ '~app/assets', '~lib/ass...
JavaScript
0.000008
@@ -273,16 +273,40 @@ ules: %5B%0A + 'node_modules',%0A
05ab1f5f7daed94b2527c62b74c2cafe6a896963
Fix merging tests
tests/integration/mergingTests.js
tests/integration/mergingTests.js
var lib = require("../../source/module.js"); var Workspace = lib.Workspace, Archive = lib.Archive, createCredentials = lib.createCredentials; //var Comparator = require(GLOBAL.root + "/system/ArchiveComparator.js"); module.exports = { setUp: function(cb) { var diffArchiveA = new Archive(), ...
JavaScript
0.000047
@@ -145,83 +145,92 @@ ials -;%0A%0A//var Comparator = require(GLOBAL.root + %22/system/ArchiveComparator.js%22) +,%0A encodingTools = lib.tools.encoding;%0A%0Aconst E = encodingTools.encodeStringValue ;%0A%0Am @@ -545,16 +545,17 @@ ry Group +%22 ',%0A @@ -2812,17 +2812,17 @@ indexOf( -' +%60 tgr 3 %22T @@...
808436f17334010440b414cf82b01e8049f5b63b
Delete obsolete todo.
features/opensocial-current/jsonperson.js
features/opensocial-current/jsonperson.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
JavaScript
0.001851
@@ -970,65 +970,8 @@ %7D;%0A%0A - // TODO: doesn't handle drinker, smoker, or gender yet%0A Js
f4560a20abc3d1259674b4d1f18319fc8eeafc57
update cta copy
client/app/views/pages/home.tmpl.js
client/app/views/pages/home.tmpl.js
// TODO-3 move copy to content directory const { div, header, img, hgroup, h1, h2, h3, h5, h6, p, a, strong, ul, ol, li, iframe, footer, span, section, } = require('../../modules/tags') const icon = require('../components/icon.tmpl') const spinner = require('../components/spinner.t...
JavaScript
0
@@ -688,26 +688,31 @@ '),%0A -' Sign Up' +%22 Let's Learn!%22 %0A )%0A%0A
3e433a2eb63e552f5d8b83dc978852cafa6ef371
Use https for images on home
client/app/views/pages/home.tmpl.js
client/app/views/pages/home.tmpl.js
/* eslint-disable */ // TODO-3 move copy to content directory const {div, header, img, hgroup, h1, h2, h3, h4, h5, h6, p, a, hr, strong, ul, ol, li, iframe, br, footer, span, em, section} = require('../../modules/tags') const icon = require('../components/icon.tmpl') // TODO-1 Include unique CTAs throughout module.e...
JavaScript
0
@@ -2623,32 +2623,33 @@ (img(%7Bsrc: 'http +s ://i.imgur.com/q @@ -2710,32 +2710,33 @@ (img(%7Bsrc: 'http +s ://i.imgur.com/9 @@ -2798,32 +2798,33 @@ (img(%7Bsrc: 'http +s ://i.imgur.com/u @@ -2892,16 +2892,17 @@ c: 'http +s ://i.img
b88216b42291988a767e9e2be8c6e3f931ed549a
Use MinimalModule in testModuleFactory
tests/js/app/testModuleFactory.js
tests/js/app/testModuleFactory.js
// Copyright 2015 Endless Mobile, Inc. const Lang = imports.lang; const GObject = imports.gi.GObject; const ModuleFactory = imports.app.moduleFactory; const Module = imports.app.interfaces.module; const MOCK_APP_JSON = { version: 2, modules: { 'test': { type: 'TestModule' }, }...
JavaScript
0
@@ -97,16 +97,55 @@ bject;%0A%0A +const Minimal = imports.tests.minimal;%0A const Mo @@ -188,54 +188,8 @@ ory; -%0Aconst Module = imports.app.interfaces.module; %0A%0Aco @@ -316,388 +316,8 @@ %7D;%0A%0A -const TestModule = new Lang.Class(%7B%0A Name: 'TestModule',%0A Extends: GObject.Object,%0A Implements...
ce7997b12500a10b8d82d6181b92c422c0ebcb52
Repair attachments tests
server/api/send-mail/send-mail-actions.spec.js
server/api/send-mail/send-mail-actions.spec.js
'use strict'; import sinon from 'sinon'; import proxyquire from 'proxyquire'; require('sinon-as-promised'); describe('Send Mail Actions', function() { describe('sendMailNotificationAgent', function() { let sendMailSpy = sinon.spy(); const SendMailAction = proxyquire('./send-mail-actions', { './send-...
JavaScript
0
@@ -1233,24 +1233,32 @@ esolves( +%7B path: fakePath );%0A%0A @@ -1249,16 +1249,18 @@ fakePath + %7D );%0A%0A
5fb1af1d75789e3ade3c83982c644c049ed55b8e
Fix bug in haversine distance calculator.
client/js/services/route-service.js
client/js/services/route-service.js
"use strict"; angular.module("hikeio"). factory("route", ["$q", function($q) { var parseXml = function(xmlStr) { if (typeof window.DOMParser !== "undefined") { return (new window.DOMParser()).parseFromString(xmlStr, "text/xml"); } else if (typeof window.ActiveXObject !== "undefined" && new window.ActiveX...
JavaScript
0
@@ -1431,13 +1431,47 @@ qrt( -d * d +horizontalDistance * horizontalDistance + e @@ -1533,18 +1533,16 @@ raveled; -%09%09 %0A%09%09%09%7D el @@ -2506,32 +2506,8 @@ ) %7B%0A -%09%09%09console.log(geoJSON)%0A %09%09%09v
7e6902ca10f94d61df0df348bdda937b89aff8b6
update to make sure that sub-classed binding kinds will have the appropriate values
source/kernel/AutoBindingSupport.js
source/kernel/AutoBindingSupport.js
(function () { var remapped = { bindFrom: "from", bindTo: "to", bindTransform: "transform", bindOneWay: "oneWay", bindAutoSync: "autoSync", bindDebug: "debug" }; var defaults = { to: ".content", transform: null, oneWay: true, ...
JavaScript
0
@@ -1332,16 +1332,22 @@ rototype +, true ));%0A
583e57d876f683e9b77ff9df19611b38f0d77740
Add Keyelems method to Map
web/client/scripts/map.js
web/client/scripts/map.js
/*--------------------------------------------------------------------------- Copyright 2013 Microsoft Corporation. This is free software; you can redistribute it and/or modify it under the terms of the Apache License, Version 2.0. A copy of the License can be found in the file "license.txt" at the root ...
JavaScript
0
@@ -2381,24 +2381,238 @@ ;%0D%0A %7D%0D%0A%0D%0A + Map.prototype.keyElems = function() %7B%0D%0A var self = this;%0D%0A var res = %5B%5D;%0D%0A self.forEach( function(name,elem) %7B%0D%0A res.push( %7Bkey:name,value:elem%7D );%0D%0A %7D);%0D%0A return res;%0D%0A %7D%0D%0A%0D%0A...
6bb997cda18613a56a02e7c22bee4844642c5fc0
allow extension properties on any chat type
src/extplug/plugins/custom-chat-type.js
src/extplug/plugins/custom-chat-type.js
define(function (require, exports, module) { const { around } = require('meld'); const Events = require('plug/core/Events'); const ChatView = require('plug/views/rooms/chat/ChatView'); const util = require('plug/util/util'); const emoji = require('plug/util/emoji'); const settings = require('plug/store/set...
JavaScript
0
@@ -2569,24 +2569,30 @@ update';%0A + %7D%0A if (!m @@ -2607,26 +2607,24 @@ imestamp) %7B%0A - mess @@ -2705,30 +2705,26 @@ 24);%0A - %7D%0A +%7D%0A // ins @@ -2754,26 +2754,24 @@ ement%0A - joinpoint.pr @@ -2779,24 +2779,23 @@ ceed();%0A - +%0A - if (me...
baea3ec33de2a1fda2ff5ba224d67a7b4952c608
Fix referror in leveling script.
scripts/player/player.js
scripts/player/player.js
'use strict'; var LevelUtil = require('../../src/levels').LevelUtil, Skills = require('../../src/skills').Skills, CommandUtil = require('../../src/command_util').CommandUtil, util = require('util'); exports.listeners = { //// Function wrappers needed to access "this" (Player obj) //TODO: Do regenHealth, reg...
JavaScript
0
@@ -2036,16 +2036,21 @@ ainedMut +ation ) %7B%0A
ac260edac48a842054e8c49d3d8c0df157b83e6b
fix publish script
scripts/publish-to-s3.js
scripts/publish-to-s3.js
require('dotenv').config() const AWS = require('aws-sdk') const path = require('path') const fs = require('fs') const { promisify } = require('util') const pkg = require('../package.json') const getVersionTypes = version => [ version, version.replace(/^(\d+\.\d+)\.\d+/, '$1.x'), version.replace(/^(\d+)\.\d+\.\...
JavaScript
0.000013
@@ -1651,16 +1651,19 @@ ise.all( +%0A pkg.file @@ -1672,15 +1672,73 @@ map( -name =%3E +filePath =%3E %7B%0A const name = path.basename(filePath)%0A return Pro @@ -1769,17 +1769,22 @@ , name%5D) -) +%0A %7D)%0A )%0A .the @@ -1810,16 +1810,23 @@ ise.all( +%0A files.ma @@ -1884,16 +1884,21 @@ al...
d660ae21cc4e3879eab0b2b0b8cef35e41c2e3c0
update to grab continuous values on midi
js/myMIDI.js
js/myMIDI.js
var midi = null; // global MIDIAccess object var midiIn = null; var midiOut = null; var midiData = Array.apply(null, Array(128)).map(function() { return 0; }); function onMIDISuccess(midiAccess) { console.log("MIDI ready!"); midi = midiAccess; // store in the global (in real usage, would probably keep in a...
JavaScript
0
@@ -2744,24 +2744,116 @@ break; +%0A%0A case 0xb0:%0A midiData%5Bevent.data%5B1%5D%5D = event.data%5B2%5D;%0A break; %0A %7D%0A%0A
62eed47760a012473a76a2c7a502f93099d85074
Fix a deprecation notice (#13904)
scripts/release-build.js
scripts/release-build.js
'use strict'; const fs = require('fs').promises; const path = require('path'); const directory = './build/'; const verbatimFiles = ['LICENSE', 'README.md', 'index.d.ts', 'types.d.ts']; // Returns a string representing data ready for writing to JSON file function createDataBundle() { const bcd = require('../index....
JavaScript
0.000207
@@ -1820,19 +1820,16 @@ %0A .rm -dir (directo
6a3548bedbe6722207d09d4ec9d9729c328c148e
Update values from curves.
editor/js/Properties.js
editor/js/Properties.js
var Properties = function ( editor ) { var container = new UI.Panel(); // signals var signals = editor.signals; editor.signals.elementSelected.add( function ( element ) { container.clear(); var elementPanel = new UI.Panel(); container.add( elementPanel ); elementPanel.add( new UI.Text( element.name )...
JavaScript
0
@@ -112,16 +112,52 @@ gnals;%0A%0A +%09var selected = null;%0A%09var values;%0A%0A %09editor. @@ -227,24 +227,62 @@ r.clear();%0A%0A +%09%09selected = element;%0A%09%09values = %7B%7D;%0A%0A %09%09var elemen @@ -522,14 +522,8 @@ ters -.input ;%0A%0A%09 @@ -595,16 +595,56 @@ key %5D;%0A%0A +%09%09%09if ( paramete...
231173a99ffe129efac872a6646e61684924c309
Fix babel always enabled HMR
src/internals/webpack/features/babel.js
src/internals/webpack/features/babel.js
import findCacheDir from 'find-cache-dir'; import findBabelConfig from 'find-babel-config'; import frameworkMetadata from '../../../shared/framework-metadata'; import { resolveProject } from '../../../shared/resolve'; import { getDefault } from '../../../shared/util/ModuleUtil'; import BaseFeature from '../BaseFeature'...
JavaScript
0
@@ -795,16 +795,18 @@ is.isDev +() ) %7B%0A
c980d16691cc1b13f9cbf76c2d3819cbe674df66
enable source maps on production
config/webpack.js
config/webpack.js
import path from './path' import * as Env from './env' import webpack from 'webpack' import ProgressPlugin from '../src/hacks/webpack-progress' let config = { context: path('src'), resolve: { alias: { bemuse: path('src'), }, extensions: ['', '.webpack.js', '.web.js', '.js'...
JavaScript
0.000001
@@ -2186,16 +2186,17 @@ %0A %7D)%0A%7D%0A +%0A if (proc @@ -2217,32 +2217,52 @@ _MAPS === 'true' + %7C%7C Env.production() ) %7B%0A config.dev
abc24a1bf969fbac588078e056ffc238c8b04a3a
Revert "Apply eslint feedback to models/question.js."
models/question.js
models/question.js
function exports(sequelize, DataTypes) { const Question = sequelize.define('Question', { title: DataTypes.TEXT, }, { classMethods: { associate(models) { // associations can be defined here models.Question.hasMany(models.Choice); models.Question.hasMany(models.Response); ...
JavaScript
0
@@ -1,12 +1,43 @@ +'use strict';%0Amodule.exports = function exp @@ -32,24 +32,16 @@ function - exports (sequeli @@ -63,13 +63,11 @@ %7B%0A -const +var Que @@ -130,17 +130,16 @@ pes.TEXT -, %0A %7D, %7B%0A @@ -173,16 +173,26 @@ ssociate +: function (models) @@ -348,16 +348,14 @@ %7D -, %0A %7D -...
9eaa87d917bd85a0c17323ee471b71394ec91dca
Add content-length header information to file post
tasks/lib/servlet.js
tasks/lib/servlet.js
var fs = require("fs"); var path = require("path"); var util = require("util"); var request = require("request"); /** * Remove the trailing slash from a URL path. * @param {String} path The path to be normalized. * @return {String} The normalized path. */ function removeTrailingSlash(path) { if (path === "/")...
JavaScript
0
@@ -1467,16 +1467,84 @@ operty.%0A + * @param %7BObject%7D %5Boptions%5D property for form element is optional%0A */%0Afunc @@ -1576,24 +1576,33 @@ name, value +, options ) %7B%0A if ( @@ -1861,24 +1861,33 @@ (name, value +, options );%0A %7D%0A%7D%0A%0A @@ -4913,16 +4913,66 @@ am(file) +, %7B%0A k...
da8ac050226f835b0034b37f50c739718fd2aa20
Put emoji after numbers in decklist info
formatting.js
formatting.js
'use strict'; var colours = require('./colours.json'); var headings = [ ['Event', 'Hardware', 'Resource', 'Agenda', 'Asset', 'Upgrade', 'Operation'], ['Icebreaker', 'Program', 'ICE'] ]; var stats = [ ['baselink', ' :_link:'], ['cost', ':_credit:'], ['memoryunits', ' :_mu:'], ['strength', ' str...
JavaScript
0.00002
@@ -2315,16 +2315,8 @@ '%5Cn -:_deck: ' + @@ -2327,16 +2327,24 @@ size + ' + :_deck: (min '; @@ -2609,26 +2609,16 @@ t += ' - - :_agenda: ' + age @@ -2626,16 +2626,31 @@ dapoints + + ' :_agenda:' ;%0A re
73f357e4ed6f4e62a196282ce74a9ce43dba0630
Update moves.js
mods/nuv2/moves.js
mods/nuv2/moves.js
exports.BattleMovedex = { "waterpulse": { inherit: true, basePower: 80 } }, "submission": { inherit: true, accuracy: 100, basePower: 120, category: "Physical", seconda...
JavaScript
0.000001
@@ -949,17 +949,16 @@ %09%09spe: 1 -, %0A%09%09%7D,%0A%09%09
6fb1c4085b460c3e39c74f0d31ba45b8441d6df4
Properly forward NODE_ENV in as process.env.NODE_ENV
webpack/_common.config.js
webpack/_common.config.js
const { DefinePlugin, ProgressPlugin } = require("webpack"); const {CheckerPlugin} = require("awesome-typescript-loader"); const ScriptExtHtmlWebpackPlugin = require("script-ext-html-webpack-plugin"); const { root, DEFAULT_RESOLVE_EXTENSIONS, ...
JavaScript
0.998045
@@ -1669,32 +1669,272 @@ veral variables. + %22process.env.NODE_ENV%22 is forwarded so that libraries may%0A * react on it (e.g. by skipping some of their code). Please keep in mind that this is only possible%0A * since our node config enables shimming the %22process%22 variable.%0A * %0A * Note: We @...
db2f5186a6abf20b4bdab6628671ab5da38a0c3a
Make ships slower
src/common/Ship.js
src/common/Ship.js
'use strict'; const Serializer = require('incheon').serialize.Serializer; const DynamicObject = require('incheon').serialize.DynamicObject; const Point = require('incheon').Point; class Ship extends DynamicObject { static get netScheme() { return Object.assign({ showThrust: { type: Serializer...
JavaScript
0.000301
@@ -1025,17 +1025,17 @@ return -5 +3 .0; %7D%0A%0A
075e1e2c933cfa30d41b124d08136a5c551ad363
Add percentage to sentiment
modules/concern.js
modules/concern.js
/** * concern.js * * !concern * Toggles whether the bot should interrupt charged conversations * with an unhelpful message. */ var isEmotional = require('emotional_alert') var nox = false var verbose = false // TODO: cvar module.exports = { commands: { sentiment: { help: 'Runs a phrase through very n...
JavaScript
0.999979
@@ -187,16 +187,51 @@ = false%0A +var colors = require('irc').colors%0A var verb @@ -256,16 +256,16 @@ O: cvar%0A - %0Amodule. @@ -478,51 +478,222 @@ ayes -.prediction) return result.bayes.prediction +) %7B%0A let percentage = (result.bayes.proba * 100).toFixed(2)%0A return %5B%0A resu...
e594c41dc2a51be0b9aed0c23a64a39cb866c17b
Remove test.only
test.js
test.js
'use strict' var test = require('tape') var read = require('read-all-stream') var toStream = require('string-to-stream') var child = require('child_process') var htmlify = require('./') test.only('api', function (t) { t.plan(3) var html = toStream('var foo = "bar"').pipe(htmlify()) read(html, 'utf8', function...
JavaScript
0.000001
@@ -189,13 +189,8 @@ test -.only ('ap
e05f001cc78be58b3b126aed9878f74222127479
Check for property and value support for CSS custom properites (#2387)
feature-detects/css/customproperties.js
feature-detects/css/customproperties.js
/*! { "name": "CSS Custom Properties", "property": "customproperties", "caniuse": "css-variables", "tags": ["css"], "builderAliases": ["css_customproperties"], "notes": [{ "name": "MDN Docs", "href": "https://developer.mozilla.org/en-US/docs/Web/CSS/--*" },{ "name": "W3C Spec", "href": "ht...
JavaScript
0
@@ -560,16 +560,17 @@ tsFn && +( supports @@ -580,15 +580,40 @@ '--f:0') + %7C%7C supportsFn('--f', 0)) );%0A%7D);%0A
b0c8d20c6e20db218c2a7afea4f18dada911aa70
document behaviour of entrypoint adder method
webpack/addEntrypoints.js
webpack/addEntrypoints.js
/** * Merge in `entry` array to a webpack config * * @see withEntry.js * * @package: Everledger JS Toolchain * @author: pospi <sam@everledger.io> * @since: 2016-10-06 * @flow */ const { curry } = require('ramda'); const rConcatArrayKey = require('../helpers/rConcatArrayKey'); module.exports = curry(entry...
JavaScript
0
@@ -42,24 +42,410 @@ k config%0A *%0A + * :WARNING: the order in which you apply multiple calls to this method matters!%0A * Webpack is rather particular about the order of entrypoints.%0A * We do the concatenation in reverse so that entries added later come last, which%0A * means the final (app-specific) entrypoint c...
2db35c8b61b5e50b5095747d016e78ddbdd10201
Remove console.log
scripts/build-data.js
scripts/build-data.js
"use strict"; const fs = require("fs"); const path = require("path"); const flatten = require("lodash/flatten"); const flattenDeep = require("lodash/flattenDeep"); const mapValues = require("lodash/mapValues"); const pluginFeatures = require("../data/plugin-features"); const builtInFeatures = require("../data/built-i...
JavaScript
0.000004
@@ -2123,41 +2123,8 @@ );%0A%0A -console.log(invertedEqualsEnv);%0A%0A cons
5ef67b34d911cb245c77d221a2358352a12d0910
Changing 409 to 400
features/step_definitions/mypassword.js
features/step_definitions/mypassword.js
const { defineSupportCode } = require('cucumber'); const chai = require('chai'); const dhis2 = require('../support/utils.js'); const assert = chai.assert; defineSupportCode(function ({Given, When, Then, Before, After}) { Before({tags: '@createUser'}, function () { this.userId = dhis2.generateUniqIds(); this...
JavaScript
0.999685
@@ -3689,17 +3689,17 @@ atus, 40 -9 +0 , 'Statu @@ -3716,9 +3716,9 @@ e 40 -9 +0 ');%0A
68815eec8a1ea5ac9aa022a305fcbfb5bf0e6ecf
Remove webpack process.env injection
webpack/webpack.config.js
webpack/webpack.config.js
const path = require('path'); const webpack = require('webpack'); const config = require('../config'); function contains(arr, val) { return arr.indexOf(val) > -1; } const DEBUG = !(process.env.NODE_ENV === 'production' || contains(process.argv, '-p')); const ENV = process.env.NODE_ENV || 'development'; const AUTOPR...
JavaScript
0.000001
@@ -27,44 +27,8 @@ ');%0A -const webpack = require('webpack');%0A cons @@ -218,59 +218,8 @@ ));%0A -const ENV = process.env.NODE_ENV %7C%7C 'development';%0A cons @@ -2269,168 +2269,8 @@ %7D,%0A - plugins: %5B%0A new webpack.DefinePlugin(%7B%0A 'process.env': Object.assign(%7B%7D, process.env, %7B%0A ...
7d5d327f1582ebd2b0569b4d01fb72e4b5a47a02
change build api name
newspaperjs/lib/source.js
newspaperjs/lib/source.js
const _ = require('lodash') const extractor = require('./extractor'); const article = require('./article'); const network = require('./network') const path = require('path') /** * * @param {string} url - News website url you want to build * @param {array} cateOfInterest - News categories you interested in * @retu...
JavaScript
0.000001
@@ -580,16 +580,17 @@ tArticle +s Url = as
c982f8cebf53ed624ab250f7051f4c924e692780
Use chat_random; add post command.
scripts/almanaccheler.js
scripts/almanaccheler.js
// Description: // Script per inviare carte del mercante in fiera // // Commands: // // Notes: // <optional notes required for the script> // // Author: // batt module.exports = function (robot) { var room = "G4GJDGVE3" var CronJob = require('cron').CronJob; var job = new CronJob('00 30 * * * 1-5', funct...
JavaScript
0
@@ -216,18 +216,33 @@ = %22 -G4GJDGVE3%22 +C02AN2FPY%22 // chat_random %0A%0A @@ -311,17 +311,18 @@ ('00 30 -* +09 * * 1-5 @@ -1649,28 +1649,39 @@ function(res +, chat_room ) %7B%0A - var img_ @@ -1882,33 +1882,138 @@ -res.reply(img_list%5Brnd%5D); +if (chat_room != null) %7B%0A res.reply(img...
3b31d35d40b6d8740e1c4a4fa98ebf422ee05d12
disable DataTables pagination (task #2274)
webroot/js/data-tables.js
webroot/js/data-tables.js
(function($) { $(document).ready(function() { $('.table-datatable').DataTable(); }); })(jQuery);
JavaScript
0
@@ -83,16 +83,53 @@ taTable( +%7B%0A paging: false%0A %7D );%0A %7D
3af2befe99f43557426e5763f982ce0ce1875f5b
Update prices.js
js/prices.js
js/prices.js
var iphone4sLCD = 55; var iphone5sGlass = 45; var iphone5sLCD = 60; var iphone6Glass = 49; var iphone6LCD = 60; var iphone6PlusGlass = 60; var iphone6PlusLCD = 69; var iphone6SGlass = 60; var iphone6SLCD = 75; var iphone6SPlusGlass= 70; var iphone6SPlusLCD = 85; var iphone7Glass = ...
JavaScript
0.000001
@@ -1219,17 +1219,17 @@ LCD = 2 -6 +5 5;%0Avar g
4b54a10c64247b96f05cb274eb52ecfb6f40c02b
update frp.config.js v2.0.0
frp.config.js
frp.config.js
'use strict'; // https://github.com/frontainer/frontplate-cli/wiki/6.%E8%A8%AD%E5%AE%9A module.exports = function(production) { global.FRP_DEST = global.FRP_DEST || 'public'; return { clean: {}, html: {}, style: production ? {} : {}, script: production ? {} : {}, server: {}, copy: {}, sp...
JavaScript
0
@@ -138,14 +138,22 @@ FRP_ -DEST = +SRC = 'src';%0A glo @@ -169,10 +169,9 @@ EST -%7C%7C += 'pu
d3cbed16f2bcdf087fc7109e037c48459d30b425
Fix ffmpeg path access (#847)
ffmpeg-convert-audio/functions/index.js
ffmpeg-convert-audio/functions/index.js
/** * Copyright 2017 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
JavaScript
0
@@ -2712,13 +2712,8 @@ atic -.path )%0A
d14e397c8bcd79cb72f18a579492ae7a37dcba61
Fix identing of include code
quickstarts/uppercase/functions/index.js
quickstarts/uppercase/functions/index.js
/** * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
JavaScript
0.000144
@@ -1803,16 +1803,22 @@ rigger%5D%0A + // %5BSTAR @@ -2377,20 +2377,18 @@ e);%0A -%7D);%0A + // %5BEND @@ -2406,16 +2406,24 @@ seBody%5D%0A + %7D);%0A // %5BEND
e7b61708bcfd9665ec20492fc272c87773627acb
Remove trailing whitespace
js/reddit.js
js/reddit.js
var Reddit = { downloadPost: function(name, callback) { // post factory, download from reddit console.log('Loading post ' + name); $.get('post.php', { name: name }, function(postList) { var post = postList.data.children[0].data; callback(new Reddi...
JavaScript
0.999999
@@ -2634,36 +2634,16 @@ ems%5Bi%5D;%0A - %0A
94d0e3f5e07877cae2ac2e28b031890ba863c7d5
Fix incorrect executive rights on `test.js`
test.js
test.js
'use strict'; /** * Dependencies. */ var emoji, gemoji, assert; emoji = require('./data/emoji.json'); gemoji = require('./'); assert = require('assert'); /** * Tests for basic structure. */ describe('gemoji', function () { it('should have a `name` property', function () { assert( ...
JavaScript
0.001299