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
84e4bbb8091c84660f304ee28e08263e821d9066
update CursorPopoverProvider
src/CursorPopoverProvider/CursorPopoverProvider.js
src/CursorPopoverProvider/CursorPopoverProvider.js
/** * @file CursorPopoverProvider component */ import React, {Component, cloneElement, createRef} from 'react'; import PropTypes from 'prop-types'; // components import CursorPopover from '../CursorPopover'; // statics import Theme from '../Theme'; import Position from '../_statics/Position'; // vendors import {f...
JavaScript
0
@@ -1835,19 +1835,18 @@ dleMouse -Ent +Ov er = e = @@ -1893,19 +1893,18 @@ .onMouse -Ent +Ov er?.(e); @@ -2478,19 +2478,18 @@ onMouse -Ent +Ov er: this @@ -2504,11 +2504,10 @@ ouse -Ent +Ov er%0A
b4849c818fd319034b8911b5acee2d39c5bd1078
scale chart with group / raid size
src/Parser/Core/Modules/Features/RaidHealthTab/TabComponent/Graph.js
src/Parser/Core/Modules/Features/RaidHealthTab/TabComponent/Graph.js
import React from 'react'; import PropTypes from 'prop-types'; import Chart from 'chart.js'; import { Line } from 'react-chartjs-2'; import fetchWcl from 'common/fetchWclApi'; import ManaStyles from 'Interface/Others/ManaStyles.js'; const formatDuration = (duration) => { const seconds = Math.floor(duration % 60); ...
JavaScript
0
@@ -4287,18 +4287,30 @@ max: -20 +players.length * 100,%0A
7a02e16c5660683f2d6405fe106e68eaa599abed
Use enter and escape to stage changes to the cell name
ui/src/dashboards/components/VisualizationName.js
ui/src/dashboards/components/VisualizationName.js
import React, {Component, PropTypes} from 'react' class VisualizationName extends Component { constructor(props) { super(props) } handleInputBlur = e => { this.props.onCellRename(e.target.value) } render() { const {defaultName} = this.props return ( <div className="graph-heading"> ...
JavaScript
0
@@ -127,16 +127,62 @@ r(props) +%0A%0A this.state = %7B%0A reset: false,%0A %7D %0A %7D%0A%0A @@ -198,16 +198,25 @@ utBlur = + reset =%3E e =%3E %7B%0A @@ -223,47 +223,403 @@ -this.props.onCellRename(e.target.value) +console.log(reset, this.props.defaultName)%0A this.props.onCellRename(reset...
5e6791100e7f24ff2a31b4d1fc759ef80d12f9da
fix bad error handling in dev
api/policies/checkAndSetPost.js
api/policies/checkAndSetPost.js
module.exports = function checkAndSetPost (req, res, next) { var postId = req.param('postId') var fail = function (log, responseType) { sails.log.debug(`policy: checkAndSetPost: ${log}`) res[responseType || 'forbidden']() } return Post.find(postId, {withRelated: 'communities'}) .then(post => { i...
JavaScript
0.000001
@@ -130,16 +130,21 @@ onseType +, err ) %7B%0A @@ -231,16 +231,19 @@ idden'%5D( +err )%0A %7D%0A%0A @@ -794,13 +794,18 @@ erError' +, err ))%0A%7D%0A
d71aad66b33fce1e90c0cbfb4497e3716a1205a6
Update CameraVideoPageController.js
scripts/CameraVideoPageController.js
scripts/CameraVideoPageController.js
/* * * Assignment 1 web app * * Copyright (c) 2016 Monash University * * Written by Michael Wybrow * * * 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, inclu...
JavaScript
0
@@ -3402,16 +3402,23 @@ %22 data=%22 +images/ crosshai
7cd84b6d032c21c1a3d96968908a4fe953014ace
Refactor hw2 Q16 & Q17 code
hw2/main.js
hw2/main.js
import generateData from './data-generator.js'; import train from './train.js'; let eInTotal = 0; let eOutTotal = 0; for (let i = 0; i < 5000; i++) { let generatedData = generateData(20, true), { theta, s, eIn} = train(generatedData); eInTotal += eIn; eOutTotal += 0.5 + 0.3 * s * (Math.abs(theta) ...
JavaScript
0
@@ -74,16 +74,66 @@ n.js';%0A%0A +const CYCLE_COUNT = 5000;%0Aconst DATA_LENGTH = 20;%0A let eInT @@ -140,21 +140,21 @@ otal = 0 -;%0Alet +,%0A eOutTot @@ -159,16 +159,35 @@ otal = 0 +,%0A generatedData ;%0A%0Afor ( @@ -201,20 +201,27 @@ 0; i %3C -5000 +CYCLE_COUNT ; i++) %7B @@ -225,20 +225,16 @@ ) %...
ae646fe1ac1bb1c9a4a0bdcaf0fa3e84bb18b6e3
fix minify issue when in jspm bundle no-mangel=false
src/libs/customelement.js
src/libs/customelement.js
let Register = { /** * Prefix of component if used * e.g. com-foo */ prefix: 'com', /** * customElement * @param Class {function} * @param config {{extends: string, name: string}} */ customElement(Class, config = {}){ let name = config.name; if(!name){ let className = this._getClassName(Clas...
JavaScript
0.000272
@@ -1008,32 +1008,36 @@ assName %7Bstring%7D +ls l %0A%09 */%0A%09_getClass @@ -1069,31 +1069,20 @@ ass. -prototype.constructor.n +$$componentN ame;
34a696a480e29b281022b43eadee586d52ebaaf4
Fix tests for services generator
test/unit/services.test.js
test/unit/services.test.js
import path from 'path'; import os from 'os'; import { assert, test } from 'yeoman-generator'; describe('sails-rest-api:services', function () { describe('Should properly handle default configuration', () => { this.timeout(10000); before(done => { test .run(path.join(__dirname, '../../generato...
JavaScript
0
@@ -301,34 +301,27 @@ ame, '../../ -generators +src /services')) @@ -1420,16 +1420,104 @@ %5D) +;%0A%0A assert.fileContent('config/services/cipher.js', /secretOrKey: %22%5Ba-z0-9%5D%7B64%7D%22/); %0A %7D); @@ -2331,18 +2331,11 @@ /../ -generators +src /ser @@ -2566,16 +2566,61 @@ n(','),%0A + ...
d9ce89d0fe9c5daa0c5d8be3d5ddb79784eb764d
remove 640x480 restriction
apps/pipeland/src/classes/vertices/DelayVertex.js
apps/pipeland/src/classes/vertices/DelayVertex.js
import BaseVertex from "./BaseVertex"; import SK from "../../sk"; export default class DelayVertex extends BaseVertex { constructor({id}) { super({id}); this.videoOutputURL = this.getUDP(); this.audioOutputURL = this.getUDP(); this.inputURL = this.getUDP() + "reuse=1"; SK.vertices.update(id, { ...
JavaScript
0.000017
@@ -1270,53 +1270,8 @@ 0)'%5B -resize%5D%60,%0A %22%5Bresize%5Dscale=640:480%5B out_ @@ -1268,33 +1268,33 @@ 000)'%5Bout_video%5D -%22 +%60 ,%0A %5D.jo
e62a7de612c527620b6963757f8bcbcfa46d004a
Remove beta suffix from mobile-experience package version.
packages/mobile-experience/package.js
packages/mobile-experience/package.js
Package.describe({ name: 'mobile-experience', version: '1.0.5-beta.31', summary: 'Packages for a great mobile user experience', documentation: 'README.md' }); Package.onUse(function(api) { api.imply([ // A nicer appearance for the status bar in PhoneGap/Cordova apps "mobile-status-bar" ], "web.cord...
JavaScript
0
@@ -62,16 +62,8 @@ .0.5 --beta.31 ',%0A
3af2ab9022fb09fb5b355f494e3def4dec00b265
Handle when github api returns a null author, and other missing info
public/commits-widget/javascripts/commits-widget.js
public/commits-widget/javascripts/commits-widget.js
/* * Parameters: * limit: (integer) How many commits to render, starting with the most recent commit * width: (integer) Width of the widget * height: (integer) Height of the widget * heading: (string) Text in the header of the widget */ $(function(){ var $commitsList = $('.commits...
JavaScript
0
@@ -1419,158 +1419,569 @@ -$('%3Cdiv class=%22left%22%3E%3Cimg src=%22https://www.gravatar.com/avatar/' + commit.author.gravatar_id + '.png?s=38&r=pg&d=identicon%22%3E%3C/div%3E').appendTo( $li );%0A +if( commit.sha && commit.commit && commit.commit.message && commit.commit.author && commit.commit.committer && co...
dd53f5a1309c96b5b8bde8899a8cdf1c8227e308
check for outdated release
assets/common.js
assets/common.js
var release = null; function setRelease(release_) { if (release_ == null) { var node = $('#release-switch').find('.release-button').last(); release = node.id; } else release = release_; $.cookie('default-release', release, {expires: 365}); $('.release_name').html(release); $('a[class*="release...
JavaScript
0
@@ -61,17 +61,17 @@ elease_ -= +! = null) @@ -80,129 +80,450 @@ -var node = $('#release-switch').find('.release-button').last();%0A release = node.id;%0A %7D%0A else%0A release = release_; +// check if release is still present in the list%0A var found = false;%0A $('#release-switch').find('.rele...
3ad32e887216a414ecb08065493efc1eede56bc4
return on error
api/routes/data/members-list.js
api/routes/data/members-list.js
const request = require('request') const series = require('run-series') // does a small read to see if the members response has already been cached in // leveldb. Used to determine if a request to the proPublica api is needed. function checkCache(params, ctx, done) { const session = ctx.localConfig.congressSession c...
JavaScript
0.000033
@@ -2606,24 +2606,44 @@ RROR', err)%0A +%09%09%09return done(err)%0A %09%09%7D%0A%09%09try %7B%0A
eae0393c5a1c5d2340d3f72044cc142baea88a8f
add normal mode
scripts/com.r2studio.popcat/index.js
scripts/com.r2studio.popcat/index.js
var run = false; var x = 0; var y = 0; function loop() { console.log('Start Clicking...'); var count = 0; while (run) { for (var i = 0; i < 5; i++) { tapDown(x + i * 50, y + i * 50, 1, i); } sleep(5); for (var i = 0; i < 5; i++) { tapUp(x + i * 50, y + i * 50, 1, i); } sleep(5...
JavaScript
0.000008
@@ -31,16 +31,35 @@ r y = 0; +%0Avar normal = true; %0A%0Afuncti @@ -84,17 +84,17 @@ ole.log( -' +%22 Start Cl @@ -102,17 +102,17 @@ cking... -' +%22 );%0A var @@ -135,24 +135,111 @@ ile (run) %7B%0A + if (normal) %7B%0A tap(x, y, 20);%0A count++;%0A sleep(160);%0A %7D else %7B%0A fo...
dabcf1db320f97e66c57459d30a32de650e5f5bc
update broadcast mediator list on mediator status change
src/foam/nanos/medusa/ClusterConfigStatusDAO.js
src/foam/nanos/medusa/ClusterConfigStatusDAO.js
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.medusa', name: 'ClusterConfigStatusDAO', extends: 'foam.dao.ProxyDAO', documentation: `Monitor the ClusterConfig status and call election when quorum cha...
JavaScript
0
@@ -1774,24 +1774,57 @@ EDIATOR ) %7B%0A + broadcastMediators(x);%0A El @@ -2969,42 +2969,8 @@ x);%0A - broadcast2Mediators(x);%0A @@ -4577,33 +4577,32 @@ name: 'broadcast -2 Mediators',%0A @@ -4739,17 +4739,16 @@ roadcast -2 Mediator
de899463afcc64195f931ecc253257d5a42eaa15
Remove unreachable case when both trees do not have the same property
astraverse.js
astraverse.js
'use strict'; var patchSource = require('./source_replacer').patchSource; function isLiteral(element) { return Object(element) !== element; } function performOnParallellTraverse(action) { var parallelTraverse = function parallellTraverse(actual, expected, actualLastFunctionScope, expectedLastFunctionScope) {...
JavaScript
0.000006
@@ -333,16 +333,204 @@ attr;%0A%0A + function shouldBeChecked(attr) %7B%0A return attr !== 'type' && attr !== 'loc' && attr !== 'raw' && actual.hasOwnProperty(attr) && expected.hasOwnProperty(attr);%0A %7D%0A%0A @@ -1340,117 +1340,23 @@ if ( -attr !== 'type' && attr !== 'loc' && at...
8361ff9b8136b010b2cea45f21c49f558f90e63d
update copyright dates from daily grunt work
js/layout/constraints/ManualConstraintTests.js
js/layout/constraints/ManualConstraintTests.js
// Copyright 2021, University of Colorado Boulder /** * ManualConstraint tests * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ import Node from '../../nodes/Node.js'; import Rectangle from '../../nodes/Rectangle.js'; import ManualConstraint from './ManualConstraint.js'; QUnit.module( 'ManualConstrain...
JavaScript
0
@@ -10,16 +10,21 @@ ght 2021 +-2022 , Univer
2eb0c963c594904bb78f9ed0be89b94bae4a00d4
debug f
api/src/commands/_debug-feed.js
api/src/commands/_debug-feed.js
import program from 'commander'; import '../loadenv'; import '../utils/db'; import { ParseFeed, ParsePodcast } from '../parsers/feed'; import chalk from 'chalk'; import logger from '../utils/logger'; import Podcast from '../models/podcast'; import RSS from '../models/rss'; import config from '../config'; import normali...
JavaScript
0.000006
@@ -949,16 +949,22 @@ %7D%60);%0A%0A%09%09 +async function @@ -2987,16 +2987,49 @@ rget %7D;%0A +%09%09%09console.log(feedType, lookup)%0A %09%09%09if (p @@ -3101,24 +3101,99 @@ ll queue');%0A +%09%09%09%09let instance = await schema.findOne(lookup)%0A%09%09%09%09console.log(instance)%0A%0A %09%09%09%09schema%0A...
de51aad8963977ef6704c7b19ec0637adf4edd6f
Update events-counter.js
scripts/components/events-counter.js
scripts/components/events-counter.js
(function ($) { var apiKey = apiKeyService.getApiExploreKey(); var initialValObj; function initialVal(config) { var values = {}; config.forEach(function (el) { values[el] = $('#js-'+el+'-counter').text(); }); initialValObj = values; } $(function() { initEventCountersPanel(...
JavaScript
0.000001
@@ -647,9 +647,10 @@ && -7 +83 ,%0A @@ -720,24 +720,28 @@ e(el, val);%0A +%09%09%09%0A if(val @@ -1645,16 +1645,82 @@ %7C 'none' +, quantityObj = %7Bvalue: quantity, timestamp: new Date().getTime()%7D ;%0A @@ -1740,32 +1740,47 @@ torage(url, +JSON.stringify( quantity );%0A r @@ -1759,32...
48a798fd6bca973c7eefa3dc4fcfc46694cb4ac0
Correct pick component.
src/framework/components/pick/pick_component.js
src/framework/components/pick/pick_component.js
pc.extend(pc.fw, function () { /** * @component * @name pc.fw.PickComponent * @constructor Create a new PickComponent * @class Allows an Entity to be picked from the scene using a pc.fw.picking.Picker Object * @param {pc.fw.PickComponentSystem} system The ComponentSystem that created this Co...
JavaScript
0
@@ -882,16 +882,21 @@ eateBox( +this. system.c @@ -912,32 +912,32 @@ aphicsDevice, %7B%0A - @@ -1129,16 +1129,21 @@ eSphere( +this. system.c @@ -1305,16 +1305,16 @@ .TORUS:%0A - @@ -1364,16 +1364,21 @@ teTorus( +this. system.c
a611c5b4ac851d626167df4bedee33fe1e587e10
add timeout to before hook
api/content-items/models/ContentItem.test.js
api/content-items/models/ContentItem.test.js
'use strict'; const mongoose = require('mongoose'); mongoose.Promise = Promise; const Mockgoose = require('mockgoose').Mockgoose; const mockgoose = new Mockgoose(mongoose); const expect = require('chai').expect; const ContentItem = require('./ContentItem'); describe('ContentItem Model', function() { //extend timeo...
JavaScript
0.000001
@@ -380,16 +380,42 @@ (done) %7B +%0A this.timeout(120000); %0A%0A mo
c277aedadd9fde4f4cfab0990cfcecdbf0f50531
Update for line and text -v7
scripts/JSRootPainter.v7more.js
scripts/JSRootPainter.v7more.js
/// @file JSRootPainter.v7more.js /// JavaScript ROOT v7 graphics for different classes (function( factory ) { if ( typeof define === "function" && define.amd ) { define( ['JSRootPainter', 'd3'], factory ); } else if (typeof exports === 'object' && typeof module !== 'undefined') { factory(require...
JavaScript
0
@@ -984,24 +984,26 @@ text + = this.GetOb @@ -1031,16 +1031,18 @@ s + = text.f @@ -1064,24 +1064,26 @@ pp + = this.canv_ @@ -1106,32 +1106,34 @@ w + = this.pad_width @@ -1149,32 +1149,34 @@ h + = this.pad_heigh @@ -1201,16 +1201,18 @@ _frame ...
109886bf8171a1d02841af2aec39fcb303ec5ef0
Update release notes template
scripts/printReleaseNotesTemplate.js
scripts/printReleaseNotesTemplate.js
const CHANGELOG_COMMAND = "git log --pretty=format:'%aN | %s | %h' --abbrev-commit --reverse origin/master..origin/next" const execa = require('execa') const TEMPLATE = ` Upgrade with: sanity upgrade And install the latest Command Line Interface (CLI) with: npm install --global @sanity/cli # ✨ Highlights...
JavaScript
0
@@ -179,57 +179,11 @@ ade -with:%0A%0A sanity upgrade%0A%0AAnd install the latest +the Com @@ -212,17 +212,16 @@ LI) with -: %0A%0A np @@ -252,16 +252,70 @@ ty/cli%0A%0A +Upgrade the Content Studio with:%0A%0A sanity upgrade%0A%0A # %E2%9C%A8 High
d394493eea15170743c1b6864bcbf2509ed3b001
remove extraneous jasmine code in klassy-spec.js
spec/klassy-spec.js
spec/klassy-spec.js
;(function() { 'use strict'; describe('Klassy', function() { describe('#isEmpty', function() { it('exists as a function', function() { expect(window.Klassy.isEmpty).toEqual(jasmine.any(Function)); }); it('takes an object as a parameter and returns true if the object is empty', funct...
JavaScript
0.000074
@@ -1,9 +1,8 @@ -%0A ;(functi @@ -612,3737 +612,4 @@ ();%0A -%0A%0A%0A// describe('The %60implements%60 method on the constructor function returned from invoking the Klass function', function() %7B%0A// var FooClass;%0A// beforeEach(function() %7B%0A// FooClass = Klass(%7B%0A// initialInstanceMethod: fu...
f1d26334f4976c8682f7a96c5a14f5b2a40ffc7a
Improve angular-module-name error message
rules/angular-module-name.js
rules/angular-module-name.js
'use strict'; const path = require('path'); const angularUtils = require('../utils/angular-utils'); 'use strict'; module.exports = { meta: { docs: { description: 'enforce naming modules after folder path to file', category: 'Stylistic Issues', recommended: false, ...
JavaScript
0.000066
@@ -1484,16 +1484,42 @@ leName%7D%22 + to match folder hierarchy %60);%0A
50c753fd19994314fdad7667e21413f61b663b1a
Rename function
lib/node_modules/@stdlib/utils/timeit/lib/sync.js
lib/node_modules/@stdlib/utils/timeit/lib/sync.js
'use strict'; // MAIN // /** * Generates a source code body for synchronous execution. * * #### Notes * * * Example output: * * ``` javascript * "use strict"; * * var ctx = this; * var t1, d1, i1; * * // {{before}} * * t1 = ctx.tic(); * for ( i1 = 0; i1 < 1e6; i1++ ) { * // {{code}} * } * d1 =...
JavaScript
0.000005
@@ -724,20 +724,24 @@ unction -body +generate ( id, co @@ -1525,20 +1525,24 @@ UNCTION -body +generate ()%0A%0A%0A// @@ -1570,14 +1570,18 @@ ports = -body +generate ;%0A
3d59e230b170f1e2ab2a9be2eabe664c0102de5d
Allow group tandems to recreate specific IDs for load, see https://github.com/phetsims/together/issues/319
js/Tandem.js
js/Tandem.js
// Copyright 2015, University of Colorado Boulder /** * Tandem is a general instance registry that can be used to track creation/disposal of instances in PhET Simulations. * It is used for together.js instrumentation for PhET-iO support. * * @author Sam Reid (PhET Interactive Simulations) */ define( function( req...
JavaScript
0
@@ -5292,16 +5292,296 @@ ndem, %7B%0A +%0A /**%0A * @param %5Bid%5D %7Bstring%7D optional override, used when loading a state and the tandems must be restored exactly as%0A * they were saved%0A * @returns %7BTandem%7D%0A */%0A createSpecificTandem: function( id ) %7B%0A return new Tandem( th...
5ba332feb93296cf5c697e6f568cbbf2d52e60df
Add password confirmation validation
server/controllers/authController.js
server/controllers/authController.js
const jwt = require('jsonwebtoken'); const bcrypt = require('bcrypt'); const emailValidator = require('email-validator'); const { createNewUser, findUserByUsername } = require('../models/services/user'); const { INVALID_INPUT_STATUS } = require('../utils/http'); const { transformOne } = require('../transformers/userTra...
JavaScript
0.000001
@@ -1235,32 +1235,62 @@ password,%0A + passwordConfirmation,%0A username @@ -1503,32 +1503,175 @@ ong' %7D);%0A %7D%0A%0A + if (password !== passwordConfirmation) %7B%0A return res.status(INVALID_INPUT_STATUS).json(%7B message: 'passwords must match' %7D);%0A %7D%0A%0A if (!...
0dbc4cc303b128a9178e9a261b3e42c8b2486f37
Fix for double-timer issue in suggestions
media/js/impala/suggestions.js
media/js/impala/suggestions.js
$.fn.highlightTerm = function(val) { // If an item starts with `val`, wrap the matched text with boldness. val = val.replace(/[^\w\s]/gi, ''); var pat = new RegExp(val, 'gi'); this.each(function() { var $this = $(this), txt = $this.html(), matchedTxt = txt.replace(pat, '<...
JavaScript
0
@@ -5248,16 +5248,20 @@ pollVal + = 0 ;%0A%0A i @@ -5312,32 +5312,173 @@ us(function() %7B%0A + // If we've already got a timer, clear it.%0A if (pollVal != 0) %7B%0A clearInterval(pollVal);%0A %7D%0A poll
59db8493b2df11eddf7ee1c889237d164af416bd
fix chromecast plugin on native apps
modules/Chromecast/resources/chromecastLib.js
modules/Chromecast/resources/chromecastLib.js
(function() {var chrome = window.chrome || {}; chrome.cast = chrome.cast || {}; chrome.cast.media = chrome.cast.media || {}; chrome.cast.ApiBootstrap_ = function() { }; chrome.cast.ApiBootstrap_.EXTENSION_IDS = ["boadgeojelhgndaghljhdicfkmllpafd", "dliochdbjfkdbacpmhlcpmleaejidimm", "hfaagokkkhdbgia...
JavaScript
0
@@ -6,16 +6,97 @@ tion() %7B +%0A%09if ( navigator.userAgent.match(/kalturaNativeCordovaPlayer/) ) %7B%0A%09%09return;%0A%09%7D%0A%09 var chro
b3c9903954f96f0e62bd949d0973770fe33a45ac
Update custom consequence colors.
src/VariantLegendDialog.js
src/VariantLegendDialog.js
/*jslint node: true */ /*jshint laxbreak: true */ /*jshint laxcomma: true */ "use strict"; var d3 = require("d3"); var _ = require("underscore"); var LegendDialog = function() { var createLegendRow = function(self, background, text) { var row = self.dialog.append('div').classed('up_pftv_legend', true); ...
JavaScript
0
@@ -1658,44 +1658,14 @@ %5B%22# -66c2a5%22,%22#8da0cb%22,%22#e78ac3%22,%22#e5c494 +e78ac3 %22,%22# @@ -1678,34 +1678,36 @@ %22,%22# -ffd92f +e5c494 %22, + %22# -a6d854 +762A83 %22, + %22# -b3b3b3 +B35806 %22%5D,%0A
3405b8ce4fd8058b6ca1a1701e2fe4d90707b5f7
fix optimization of JavaScript method calls
runtime/jslib_js_of_ocaml.js
runtime/jslib_js_of_ocaml.js
// Js_of_ocaml library // http://www.ocsigen.org/js_of_ocaml/ // Copyright (C) 2010 Jérôme Vouillon // Laboratoire PPS - CNRS Université Paris Diderot // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Sof...
JavaScript
0.000001
@@ -2538,23 +2538,21 @@ utable, -mutable +const , shallo
1b87026df4716bb114cbf00aef4023d9ca319b93
Use camel case in js
app/assets/javascripts/likes.js
app/assets/javascripts/likes.js
$(document).ready(function() { $('.like-btn').show(); $('.post-like').on('ajax:success', function(event, data) { var like_button = $('#post-' + data.id + ' .post-like'); var like_badge = $('#post-'+ data.id + ' .like-badge'); $('#post-' + data.id + ' .like-count').text(data.like_count); if (data.l...
JavaScript
0.00039
@@ -115,34 +115,33 @@ ) %7B%0A var like -_b +B utton = $('#post @@ -175,34 +175,33 @@ ');%0A var like -_b +B adge = $('#post- @@ -331,34 +331,33 @@ er) %7B%0A like -_b +B adge.addClass('l @@ -366,34 +366,33 @@ ed');%0A like -_b +B utton.data('meth @@ -409,34 +409,33 @@ te');%0A like -_b +B...
6f2e1dc5a6a7bb593bc54500a4ff559a2d00086c
Add back in lost bugfix
js/backup.js
js/backup.js
oT.backup = {}; oT.backup.openPanel = function(){ oT.backup.populatePanel(); $('.backup-window').height( $('.textbox-container').height() * (3/5) ); $('.backup-panel').fadeIn('fast'); } oT.backup.closePanel = function(){ $('.backup-panel').fadeOut('fast',function(){ $('.backup-window').empty()...
JavaScript
0
@@ -5281,32 +5281,144 @@ out(function()%7B%0A + // prevent l10n from replacing user text%0A $('#textbox p%5Bdata-l10n-id%5D').attr('data-l10n-id','');%0A setInter
f56ea1d936fca9f24e50e90e1f217f84112091d2
remove cache task imagemin
gulpfile.js
gulpfile.js
var gulp = require('gulp'), plumber = require('gulp-plumber'), cache = require('gulp-cache'), uglify = require('gulp-uglify'), concat = require('gulp-concat'), minifyCss = require('gulp-minify-css'), imagemin = require('gulp-imagemin'); /** * Imagemin Task */ gulp...
JavaScript
0.000004
@@ -438,14 +438,8 @@ ipe( -cache( imag @@ -506,17 +506,16 @@ true %7D)) -) %0A
cd898673f999c34c2679f9cd015ad666bf0c01ba
remove semi-colons
index.es6.js
index.es6.js
import createVirtualAudioGraph from 'virtual-audio-graph'; export default ({audioContext = new AudioContext(), output = audioContext.destination} = {}) => { const virtualAudioGraph = createVirtualAudioGraph({audioContext, output}); return nodeParams$ => nodeParams$.subscribe(nodeParams => virtualA...
JavaScript
0.999999
@@ -50,17 +50,16 @@ o-graph' -; %0A%0Aexport @@ -242,17 +242,16 @@ output%7D) -; %0A retur @@ -344,9 +344,7 @@ ms)) -; %0A%7D -; %0A
50e8a0a41f940d420d6d2d2fe8d0382c17af682c
Update gulp pipe to br more semantic
gulpfile.js
gulpfile.js
var gulp = require('gulp'), header = require('gulp-header'), include = require('gulp-include'), rename = require('gulp-rename'), uglify = require('gulp-uglify'); var pkg = require('./bower.json') fs = require('fs'); var dev = { mangle: false, compress: true, preserveComments: 'some', outpu...
JavaScript
0
@@ -235,22 +235,48 @@ );%0A%0A -var dev = +%0Afunction dev() %7B%0A return uglify( %7B%0A + + mang @@ -286,16 +286,18 @@ false,%0A + compre @@ -298,32 +298,34 @@ compress: true,%0A + preserveCommen @@ -338,16 +338,18 @@ ome',%0A + + output: @@ -346,24 +346,26 @@ output: %7B%0A + b...
75d4a274d8edbec19d2111fa37d26c5e786a0c83
define usage target for cssnext (autoprefixer & rem/px fallback) to last 2 version
gulpfile.js
gulpfile.js
// jchck_'s gulpfile // // site's dev URL (used in the watch task below) // var devUrl = 'http://vagrant.local/jchck/'; // // gulp plugin registry // var gulp = require('gulp'); var postcss = require('gulp-postcss'); var cssnext = require('postcss-cssnext'); var atImport = require('postcss-import');...
JavaScript
0
@@ -717,16 +717,57 @@ %09cssnext +(%7B%0A%09%09%09'browsers': %5B'last 2 version'%5D%0A%09%09%7D) ,%0A%09%09mqpa
c999457337214ab105626cb331ea0fe80115bc96
fix ios index file
index.ios.js
index.ios.js
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class strava extends Component { render() { return ( <View style={styles.container}> ...
JavaScript
0.000001
@@ -1,1006 +1,92 @@ -/**%0A * Sample React Native App%0A * https://github.com/facebook/react-native%0A * @flow%0A */%0A%0Aimport React, %7B Component %7D from 'react';%0Aimport %7B%0A AppRegistry,%0A StyleSheet,%0A Text,%0A View%0A%7D from 'react-native';%0A%0Aexport default class strava extends Component %7B%0A r...
45b8423d525a84a45145ed0e055bad2d89b860cb
update localhost
gulpfile.js
gulpfile.js
var gulp = require('gulp'), plumber = require('gulp-plumber'), sass = require('gulp-sass'), cssnano = require('gulp-cssnano'), postcss = require('gulp-postcss'), autoprefixer = require('autoprefixer'), rename = require('gulp-rename'), concat = require('gulp-concat'), uglify = require('g...
JavaScript
0.000002
@@ -449,19 +449,25 @@ irboaca. -com +github.io ';%0A%0Avar
1186ae1d44441ec7b72ef482e419e4bd472a0e5b
use exclude_geometry: true
app/isochrones/route.js
app/isochrones/route.js
import Ember from 'ember'; import setLoading from 'mobility-playground/mixins/set-loading'; export default Ember.Route.extend(setLoading, { queryParams: { isochrone_mode: { replace: true, refreshModel: true, }, pin: { replace: true, refreshModel: true }, departure_time: { replace: true, r...
JavaScript
0.999999
@@ -4579,16 +4579,40 @@ perators +, exclude_geometry: true %7D);%0A%09%09%09%7D @@ -4689,24 +4689,48 @@ params.bbox +, exclude_geometry: true %7D);%0A%09%09%09%7D%0A%0A%09%09 @@ -4727,16 +4727,17 @@ ;%0A%09%09%09%7D%0A%0A +%0A %09%09%09retur
e209764100d3690ecedeffe55ec4d935ce937a1b
add eow
background.js
background.js
chrome.contextMenus.create({ "title": "LookUpInOALD", "type": "normal", "contexts": ["selection"], "onclick":function() { chrome.tabs.query({ active: true, currentWindow: true }, function(tabs) { var activeTab = tabs[0]; chrome.tabs.sendMessage(activeTab.id, { "message": "clicked_browser_action...
JavaScript
0.999628
@@ -561,40 +561,143 @@ -chrome.tabs.create(%7B %22url%22: oald +var eow = 'http://eow.alc.co.jp/search?q=' + request.word;%0A chrome.tabs.create(%7B %22url%22: oald %7D);%0A chrome.tabs.create(%7B %22url%22: eow %7D);
feb2e5fc7ca547222a89b55be1bca88d4bf007b4
Remove stray unused import
assets/scripts/app/load_resources.js
assets/scripts/app/load_resources.js
/** * load_resources * * Loads images, etc and tracks progress. (WIP) * TODO: Rely on Promises to resolve progress */ import { checkIfEverythingIsLoaded } from './initialization' // Image tileset loading // TODO: Deprecate in favor of inlined SVGs const TILESET_IMAGE_VERSION = 55 const IMAGES_TO_BE_LOADED = [ ...
JavaScript
0
@@ -121,70 +121,8 @@ */%0A%0A -import %7B checkIfEverythingIsLoaded %7D from './initialization'%0A%0A // I
c577f1a55758416fe7e886ba89749265f7a746b5
fix link to user manual
src/menu/views/HelpMenu.js
src/menu/views/HelpMenu.js
import MenuBuilder from "../menubuilder"; const HelpMenu = MenuBuilder.extend({ initialize: function(data) { return this.g = data.g; }, render: function() { this.setName("Help"); this.addNode("About the project", () => { return window.open("https://github.com/wilzbach/msa"); }); this....
JavaScript
0.000001
@@ -524,16 +524,28 @@ msa/wiki +/User-manual %22);%0A
a9976001a710c4aebadca04a245b2c7f700a2fb9
Test nouvelle facon de tourner
src/public/script/RoyalPac.js
src/public/script/RoyalPac.js
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); function preload() { game.load.tilemap('ClassicMap', '../assets/RoyalPac-mapV2.json', null, Phaser.Tilemap.TILED_JSON); game.load.image('tiles', '../assets/TileSet.png'); game.load.image('star', '....
JavaScript
0
@@ -1520,18 +1520,18 @@ tion.x - -30 +25 , player @@ -1621,18 +1621,18 @@ tion.x + -30 +25 , player @@ -1738,18 +1738,18 @@ tion.y + -30 +25 , 25, 25 @@ -1838,18 +1838,18 @@ tion.y - -30 +25 , 25, 25 @@ -1957,32 +1957,34 @@ = (leftTile == 1 +36 );%0A if (isW @@ -2262,32 +2262,34 @@ (rightTile == 1 +36 ...
e533dc26eef3f50395a770f72c9ac4fbf15d69c6
Remove now deprecated modulr.cache method.
assets/modulr.js
assets/modulr.js
// modulr (c) 2010 codespeaks sàrl // Freely distributable under the terms of the MIT license. // For details, see: // http://github.com/codespeaks/modulr/blob/master/LICENSE var modulr = (function(global) { var _modules = {}, _moduleObjects = {}, _exports = {}, _oldDir = '', _currentDir = ...
JavaScript
0
@@ -3026,138 +3026,8 @@ %0A %0A - function cache(id, fn) %7B%0A var key = PREFIX + id;%0A %0A log('Cached module %22' + id + '%22.');%0A _modules%5Bkey%5D = fn;%0A %7D%0A %0A fu @@ -3696,26 +3696,8 @@ uire -,%0A cache: cache %0A %7D
04ca801e967fa2f6d258d3341090a39ca26c3826
remove logger function
gulpfile.js
gulpfile.js
/*global require*/ var gulp = require('gulp'); var args = require('yargs').argv; var config = require('./gulp.config')(); var del = require('del'); var $ = require('gulp-load-plugins')({lazy: true}); //var jshint = require('gulp-jshint'); //var jscs = require('gulp-jscs'); //var util = require('gulp-util'); //var gulp...
JavaScript
0.000018
@@ -1073,132 +1073,8 @@ );%0A%0A -function errorLogger(error) %7B%0A log('Start of Error');%0A log(error);%0A log('End of Error');%0A this.emit('end');%0A%7D%0A%0A%0A gulp
7de88604790efd932ca321eb313e40fcab4bc556
remove safari from test suite
test/e2e.travis.conf.js
test/e2e.travis.conf.js
/* global exports */ // An example configuration file. exports.config = { specs: ['e2e/**/*Spec.js'], baseUrl: 'http://localhost:8000', sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, multiCapabilities: [{ browserName: 'chrome', 'tunnel-identifier': process.env.TRAVIS_J...
JavaScript
0
@@ -506,32 +506,35 @@ VIS_JOB_NUMBER%0A + // %7D, %7B%0A browse @@ -518,32 +518,35 @@ ER%0A // %7D, %7B%0A + // browserName: 's @@ -552,24 +552,27 @@ safari',%0A + // 'tunnel-ide @@ -619,32 +619,8 @@ %7D%5D -,%0A getPageTimeout: 2000 %0A%7D;%0A
1f447ee30c61301f28f75fad027572011db59213
debug logs for heroku
public/javascripts/main.js
public/javascripts/main.js
//Start Parallax Animation $('.parallax').parallax(); //Declare JQuery Selectors var $submitBtn = $(".submit-btn"); var $nextBtn = $(".next-btn"); var $downExplainBtn = $("#down-explain"); var $downEmotchaBtn = $("#down-emotcha"); var $loginBtn = $(".login-btn"); var $exampleImg = $("#example-img"); //Initialize Vide...
JavaScript
0
@@ -3588,34 +3588,39 @@ ataURL('image/jp +e g' +, .5 );%0A postImage
017c6f7b1b3434a1c74d9db05241419acde09db8
fix (build)
gulpfile.js
gulpfile.js
'use strict'; // generated on 2017-03-03 using generator-gulp-bootstrap 0.0.4 var gulp = require('gulp'); var browserSync = require('browser-sync'); var pump = require('pump'); var reload = browserSync.reload; var gutil = require('gulp-util'); var sassJson = require('gulp-sass-json'); // load plugins var $ = require(...
JavaScript
0
@@ -4795,24 +4795,25 @@ /*.spec.js', + 'app/scripts
c24c32b1559d8fc1b85a46b4accdf792d77df2b9
remove logs
app/js/pages/FAQPage.js
app/js/pages/FAQPage.js
'use strict' import { Component } from 'react' import DocumentTitle from 'react-document-title' import marked from 'marked' import docs from '../../docs.json' marked.setOptions({ renderer: new marked.Renderer(), gfm: true, tables: true, breaks: false, pedantic: false, sanitize: fa...
JavaScript
0.000001
@@ -646,31 +646,8 @@ %5B%5D%0A - console.log(docs);%0A
80778e82ce608e4d7b58ff6e133e30f5dc91b29b
Fix default quality value
background.js
background.js
; "use strict"; var duk = (function() { var streams = { "40" : "http://radio.4duk.ru/4duk40.mp3" , "64" : "http://radio.4duk.ru/4duk64.mp3" , "128" : "http://radio.4duk.ru/4duk128.mp3" }; var audio = new Audio(); var playing = false; function isPlay...
JavaScript
0.000025
@@ -484,19 +484,21 @@ y%22 %5D %7C%7C +%22 128 +%22 ; %7D%0A
43e54e98c7ccd52b6e6270801a6eb146585897a5
correlate black text to light bg, etc
assets/script.js
assets/script.js
$( document ).ready(function() { $(document).click(function() { // generate random hue, saturation, lightness for page background color var hueValue = Math.floor(Math.random()*360); var saturationValue = Math.floor(Math.random()*100); var lightnessValue = Math.floor(Math.random()*100); // splice values i...
JavaScript
0.998608
@@ -634,24 +634,23 @@ is -light +dark , use -black +white tex @@ -698,29 +698,29 @@ s('color', ' -black +white ');%0A%09%09%09$('a' @@ -739,13 +739,13 @@ ', ' -black +white ');%0A @@ -802,37 +802,37 @@ ).css('color', ' -white +black ');%0A%09%09%09$('a').cs @@ -839,29 +839,29 @@ s('color', ' -white +black...
49d7442bfed695c322bb70e21f32287273c16b11
Update test reporter.
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'), jshint = require('gulp-jshint'), mocha = require('gulp-mocha'), qunit = require('./index'), jscs = require('gulp-jscs'); var paths = { scripts: ['./*.js', './test/*.js', '!./lib', '!./gulpfile.js'] }; gulp.task('lint', function() { return gulp.src(pat...
JavaScript
0
@@ -594,11 +594,12 @@ r: ' -dot +spec '%7D))
d0c99b1cdbb0af08ce035ba6b2f3f1f6d320ad17
make modal test more stable in chrome (all e2e tests pass)
test/e2e/specs/modal.js
test/e2e/specs/modal.js
module.exports = { 'modal': function (browser) { browser .url('http://localhost:8080/examples/modal/') .waitForElementVisible('#app', 1000) .assert.elementNotPresent('.modal-mask') .click('#show-modal') .assert.elementPresent('.modal-mask') .assert.elementPresent('.modal-wrapper'...
JavaScript
0
@@ -439,33 +439,33 @@ .waitFor(3 -5 +0 0)%0A .assert @@ -811,32 +811,51 @@ ('.modal-mask')%0A + .waitFor(50)%0A .assert.cs @@ -921,17 +921,17 @@ aitFor(3 -5 +0 0)%0A
5b58cba753ab9a97e3a10390ab1084f79b100c1b
Remove unused $q dependency
app/js/service.login.js
app/js/service.login.js
angular.module('myApp.service.login', ['firebase', 'myApp.service.firebase']) .factory('loginService', ['$rootScope', '$firebaseSimpleLogin', 'firebaseRef', 'profileCreator', '$timeout', '$q', function($rootScope, $firebaseSimpleLogin, firebaseRef, profileCreator, $timeout, $q) { var auth = null; ...
JavaScript
0.000001
@@ -188,14 +188,8 @@ ut', - '$q', %0A @@ -275,12 +275,8 @@ eout -, $q ) %7B%0A @@ -939,190 +939,27 @@ -//todo-bug https://github.com/firebase/angularFire/issues/199%0A $timeout(function() %7B%0A callback(null, user);%0A %7D +callback(n...
0b2c710996cf5234f5200d25ac7de382224f5710
Update neuron.js
neuron.js
neuron.js
/** * Instantiating a neuron can be initialized empty * var node = new Neuron(); * or by passing JSON obj with * var obj = { * input: [1], // an array of initial inputs * weights: [w], // an array of initial weights * bias: 1, // pass the starting initial...
JavaScript
0.999534
@@ -1344,21 +1344,8 @@ AT, -math.matrix(%5B this @@ -1357,10 +1357,8 @@ bias -%5D) );// @@ -1549,8 +1549,9 @@ bias%0A%7D; +%0A
fc50679e09003906e1ffe2ed04ff0a3b02b63089
Use NuvolaPlayer coding style
integrate.js
integrate.js
/* * Copyright 2015 SkyghiS <skyghis@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the followin...
JavaScript
0
@@ -3974,29 +3974,37 @@ btn%22);%0A %7D +%0A else +%0A %7B%0A s @@ -5857,32 +5857,44 @@ (playerElement) +%0A %7B%0A @@ -6079,21 +6079,45 @@ %7D - else +%0A else%0A %7B%0A @@ -6241,16 +6241,32 @@ Element) +%0A %7B%0A ...
6cccd1a070e88f5b6e0e9157b65a5cdf5f1e83df
Set MAX_DESCRIPTION_SIZE as constant
assets/search.js
assets/search.js
require([ 'gitbook', 'jquery' ], function(gitbook, $) { // DOM Elements var $body = $('body'); var $bookSearchResults; var $searchInput; var $searchList; var $searchTitle; var $searchResultsCount; var $searchQuery; var MAX_RESULTS = 15; // Throttle search function t...
JavaScript
0.999547
@@ -53,24 +53,87 @@ tbook, $) %7B%0A + var MAX_RESULTS = 15;%0A var MAX_DESCRIPTION_SIZE = 500;%0A%0A // DOM E @@ -316,35 +316,8 @@ y;%0A%0A - var MAX_RESULTS = 15;%0A%0A @@ -2032,16 +2032,23 @@ res.body +.trim() ;%0A @@ -2074,19 +2074,36 @@ ength %3E -500 +MAX_DESCRIPTION_SIZE ) %7B%0A...
d2c06a78dfb8ff8ca8b922cdd6bf5e1332a18ef9
Change implementation for classify method
jssnips/math_numbers/perfect-numbers/perfect-numbers.js
jssnips/math_numbers/perfect-numbers/perfect-numbers.js
class PerfectNumbers{ /** * Classifies numbers to either perfect, abundant or deficient base on their aliquot sum @param {Number} number to classify @returns {String} whether the number is perfect, abundant or deficient */ classify(number){ // classify perfect numbers //classify abundant numbers...
JavaScript
0
@@ -257,43 +257,106 @@ -// classify perfect numbers%0A +if(number %3C= 0)%7B%0A return %22Classification is only possible for natural numbers.%22%0A %7D %0A // + clas @@ -364,33 +364,233 @@ ify -abundant numbers%0A +deficient numbers%0A if(this.getAliquotSum(number) %3C number %7C%7C number ===...
f47272e71751d0f63b92d6010f9ad442e6c67889
change default application timeout to 3600
src/localhostd_console.js
src/localhostd_console.js
import React from "react"; import { compose, withProps } from "recompose"; import _ from "lodash"; import { Nav, NavItem, Panel, Button, ButtonGroup, ButtonToolbar } from "react-bootstrap"; import ApplicationForm from "./application_form.js"; import ApplicationTerminal from "./application_terminal.js"; imp...
JavaScript
0.000004
@@ -4426,16 +4426,17 @@ imeout: +3 600%0A
460dc5c216b486d4d12396a26ff784d6b55c9657
Create brick ball bounce function
js/bounce.js
js/bounce.js
var ballContactsPaddle = function(ball, paddle){ if( ball.bottomEdge().y == paddle.topSide()){ if (ball.x >= paddle.surfaceRange()[0] && ball.x <= paddle.surfaceRange()[1]){ return true; } } return false } var paddleBounce = function(ball, paddle){ if ( ball.x.isBetween(paddle.leftEdge()[0],p...
JavaScript
0.008063
@@ -1456,8 +1456,55 @@ %0A %7D;%0A%7D%0A +%0Avar brickBounce = function(ball, brick)%7B%0A %0A%7D%0A
403329f6dfa88540edf107b734ff1627dc4cdff4
Add watch task to gulp
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var browserify = require('browserify'); var babelify = require('babelify'); // var mocha = require('gulp-mocha'); var through2 = require('through2'); gulp.task('bundle', function () { // return bundler.bundle() // .pipe(gulp.dest('./client/public/scripts')); ret...
JavaScript
0.000032
@@ -32,24 +32,152 @@ re('gulp');%0A +var sourcemaps = require('gulp-sourcemaps');%0Avar source = require('vinyl-source-stream');%0Avar buffer = require('vinyl-buffer');%0A var browseri @@ -200,24 +200,60 @@ owserify');%0A +var watchify = require('watchify');%0A var babelify @@ -276,19 +276,17 @@ lify');%0A -// +%...
11ead6685986ba7eb7565ad54b6c5cda3ad2b736
Update search API usage
app/controllers/records/list.js
app/controllers/records/list.js
var facetsDef = [ { name: 'type', label: 'Type de résultat', valueLabels: { dataset: 'Jeu de données', service: 'Service', map: 'Carte', other: 'Autre', none: 'Non renseigné' } }, { name: 'representationType'...
JavaScript
0
@@ -1002,32 +1002,97 @@ s'%0A %7D,%0A %7B%0A + name: 'catalog',%0A label: 'Catalogue'%0A %7D,%0A %7B%0A name: 'd @@ -2106,23 +2106,22 @@ _id + '/ -dataset +record s', %7B pa
f3b66a24761b4e121ab4374496cf7505b1393ce4
Make widget independent from jquery
payments/static/payments/js/wallet.js
payments/static/payments/js/wallet.js
// Success handler var successHandler = function(status){ if (window.console != undefined) { console.log("Purchase completed successfully: ", status); } window.location = $('input#google-wallet-id').data('success-url'); }; // Failure handler var failureHandler = function(status){ if (window.co...
JavaScript
0
@@ -1,9 +1,27 @@ -%0A +(function() %7B%0A%0A // Succe @@ -27,24 +27,28 @@ ess handler%0A + var successH @@ -70,32 +70,36 @@ on(status)%7B%0A + if (window.conso @@ -109,32 +109,36 @@ != undefined) %7B%0A + console. @@ -183,38 +183,46 @@ %22, status);%0A -%7D%0A + %7D%0A ...
011481deb3604bb6308d1fa55f48dac7af416041
Fix for event handling
dist/leaflet.easyPrint.js
dist/leaflet.easyPrint.js
L.Control.EasyPrint = L.Control.extend({ options: { title: 'Print map', position: 'topleft' }, onAdd: function () { var container = L.DomUtil.create('div', 'leaflet-control-easyPrint leaflet-bar leaflet-control'); this.link = L.DomUtil.create('a', 'leaflet-control-easyPrint-button leaflet-bar-part...
JavaScript
0.000001
@@ -470,24 +470,16 @@ ge, this -.options );%0D%0A%09%09L. @@ -671,32 +671,40 @@ )%7B%0D%0A%0D%0A%09if (this. +options. elementsToHide)%7B @@ -755,32 +755,40 @@ electorAll(this. +options. elementsToHide); @@ -943,32 +943,33 @@ %0A%09%09%7D%0D%0A%09%7D%0D%0A%09this. +_ map.fire(%22before @@ -1002,16 +1002,17 @@ ...
386608d8a3562e55874527909ddb3b74a72bc547
Fix oauth/slack route
server/back-end/routes/oauth.js
server/back-end/routes/oauth.js
// Routes for oauth // /oauth var express = require('express'); var router = express.Router(); var errors = require('@holmwell/errors'); var ensure = require('circle-blvd/auth-ensure'); var guard = errors.guard; var handle = require('circle-blvd/handle'); var request = require('request'); module.exports = function ...
JavaScript
0.999775
@@ -393,14 +393,8 @@ t('/ -oauth/ slac
65774e04adea7546642b921f7e39affc58ff76d0
remove console statements
src/modules/count/count.js
src/modules/count/count.js
/* @flow */ import { TABLES, ROLES } from '../../lib/schema'; import { bus, cache } from '../../core-server'; import * as Constants from '../../lib/Constants'; import log from 'winston'; import User from '../../models/user'; import Counter from '../../lib/counter'; // import ThreadRel from '../../models/threadrel'; //...
JavaScript
0.00002
@@ -2145,24 +2145,27 @@ ty.item;%0A%09%09%09 +// console.log( @@ -2453,24 +2453,27 @@ ;%0A%09%09%09%09%7D%0A%09%09%09%09 +// console.log( @@ -2679,24 +2679,27 @@ 0) %7B%0A%09%09%09%09%09%09 +// console.log(
5c4792038474fe2c8107f925c066c260be09b2a5
Remove String.prototype.split polyfill warning (#7629)
src/renderers/dom/ReactDOM.js
src/renderers/dom/ReactDOM.js
/** * Copyright 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. * * @providesModu...
JavaScript
0
@@ -4336,38 +4336,8 @@ ys,%0A - String.prototype.split,%0A
9cc428864a593468f7f28fe59dbbd7f1d60a4359
rename var mocha to fix redefinition
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'); var jscs = require('gulp-jscs'); var jshint = require('gulp-jshint'); var mocha = require('gulp-mocha'); var javascriptGlobs = ['*.js', 'src/**/*.js', 'test/**/*.js']; var testGlobs = ['test/**/*.js']; gulp.task('style', function() { gulp.src(javascriptGlobs) .pipe(jsc...
JavaScript
0
@@ -110,17 +110,21 @@ ');%0Avar -m +gulpM ocha = r @@ -611,17 +611,21 @@ .pipe( -m +gulpM ocha());
2516a52873b70afb1b90b0b0ed13b8f7240be2e1
Change init.
src/mb/app/Application.js
src/mb/app/Application.js
import AdaptiveApplication from "sap/a/app/Application"; import MapView from "../map/MapView"; export default class Application extends AdaptiveApplication { init() { super.init(); this.addStyleClass("mb-app"); this._initMapView(); } _initMapView() { this.mapView =...
JavaScript
0.000001
@@ -157,17 +157,22 @@ n%0A%7B%0A -i +afterI nit()%0A @@ -189,17 +189,22 @@ super. -i +afterI nit();%0A
99906dadc8d35af503fac9c068be02d7c75397cc
add "focus" to focused btns with button plugin
js/button.js
js/button.js
/* ======================================================================== * Bootstrap: button.js v3.1.1 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootst...
JavaScript
0
@@ -2676,24 +2676,235 @@ this%0A %7D%0A%0A%0A + // FOCUS SHIM (FOR BUTTON GROUPS)%0A // ==============================%0A%0A function getBtnTarget(target) %7B%0A var $target = $(target)%0A return $target.hasClass('btn') ? $target : $target.parent('.btn')%0A %7D%0A%0A%0A // BUTTON @@ -2947,16 +2947,21 @...
2fdb07200ab712e0f731a63d53a43378690c2fd0
Change type to ordinal if there are few unique values.
src/app/dataset/dataset.js
src/app/dataset/dataset.js
'use strict'; var datasets = [{ name: 'Barley', url: 'data/barley.json', table: 'barley_json' },{ name: 'Cars', url: 'data/cars.json', table: 'cars_json' },{ name: 'Crimea', url: 'data/crimea.json', table: 'crimea_json' },{ name: 'Driving', url: 'data/driving.json', table: 'driving_json' },{ ...
JavaScript
0
@@ -3293,32 +3293,468 @@ response.data);%0A +%0A _.each(Dataset.dataschema, function(field) %7B%0A // if fewer than 2%25 of values or unique, assume the field to be ordinal,%0A // or %3C= 7 unique values%0A var stats = Dataset.stats%5Bfield.name%5D;%0A if (stats !==...
86f87b1269c6a7cd5a55703ab314793e5c579bd4
Remove deprecated auth code
public/app/auth/auth.js
public/app/auth/auth.js
angular.module('headcount.auth', []) .controller('AuthController', function ($scope, $window, $location, $http, Auth) { /** * $scope.user holds onto any input on the signin.html and signup.html input * fields. */ $scope.user = {}; /** * $scope.signin & $scope.signup both make a POST request to the...
JavaScript
0.000021
@@ -1778,41 +1778,8 @@ ();%0A - $scope.auth = Auth.isAuth();%0A
1345bfe6bb2adc0511e7bd9395a3b40359bea993
update docs
lib/packages/browser/js/views/example/index.js
lib/packages/browser/js/views/example/index.js
var BaseView = require("../base"), AceEditor = require("./ace/index.js"), paperclip = require("paperclip"), BindableObject = require("bindable-object"), traverse = require("traverse"); module.exports = BaseView.extend({ template: require("./index.pc"), willRender: function () { var self = t...
JavaScript
0.000001
@@ -1467,32 +1467,8 @@ e;%0A%0A - console.log(conf);%0A%0A
dcd245438d276171e4ded51d3d0717657576d283
Switch to /server as soon as the connection opens
scripts/controllers/login.js
scripts/controllers/login.js
Controllers.controller("LoginCtrl", ["$log", "$scope", "$http", "$rootScope", "$location", "$timeout", "$filter", "Connection", "User", "Channel", "Parser", function ($log, $scope, $http, $rootScope, $location, $timeout, $filter, Connection, User, Channel, Parser) { var mustKill = false; ...
JavaScript
0
@@ -3057,32 +3057,80 @@ nected = true;%0A%0A + $location.path(%22/server%22);%0A%0A
a119ad216b8e9c9ae84e43dbdbb82fdc3468717d
remove log
app/lib/handlers/sqs-message.js
app/lib/handlers/sqs-message.js
'use strict'; var LAMBDA_WORKER_FUNCTION_NAME = process.env.LAMBDA_FUNCTION; var validate = require('../validate.js') , parseJson = require('../parse-json.js') , lambda = require('../lambda.js'); var errorHandlers = require('./errors.js'); var forwardMessageToLambdaWorker = function(req, res, body) { var sqsM...
JavaScript
0.000001
@@ -394,16 +394,19 @@ %0A %7D);%0A + // console
6033fe51b7f679bf970e42a80c3dc2e4f3cef573
fix text field: better height for textarea
modules/text-field/js/text-field_directive.js
modules/text-field/js/text-field_directive.js
/* global angular */ 'use strict'; // jshint ignore:line angular.module('lumx.text-field', []) .filter('unsafe', ['$sce', function($sce) { return $sce.trustAsHtml; }]) .directive('lxTextField', ['$timeout', function($timeout) { return { restrict: 'E', scope:...
JavaScript
0.000006
@@ -1887,16 +1887,57 @@ __input%22 + style=%22width: ' + $field.width() + 'px;%22 %3E' + $fi
3e70dd6490f8691f39288640a7e95e4cb0c366af
Change server URL to openkudos.com/api without www
src/app/services/server.js
src/app/services/server.js
/** * Created by vytautassugintas on 06/04/16. */ "use strict"; angular.module("myApp").constant("SERVER", { "ip": "http://www.openkudos.com/api" })
JavaScript
0
@@ -123,12 +123,8 @@ p:// -www. open
352c53322dfd78f0acc6d1671fc84b6d7d498f19
correct mapping
app/model/Collection.js
app/model/Collection.js
Ext.define('doweown.model.Collection', { extend: 'Ext.data.Model', config: { belongsTo: 'Branch', hasMany: { model: 'ItemRecord', name: 'items', associationKey: 'itemrecord' }, hasOne: { model: 'HoldTag', name: 'holdtag', associationKey: 'holdtag' }, hasOne: { model: 'Online', name: 'online', assoc...
JavaScript
0.000329
@@ -127,16 +127,30 @@ model: ' +doweown.model. ItemReco @@ -194,14 +194,9 @@ item -record +s ' %7D, @@ -216,16 +216,30 @@ model: ' +doweown.model. HoldTag' @@ -282,16 +282,17 @@ holdtag' + %7D,%0A%09has @@ -307,16 +307,30 @@ model: ' +doweown.model. Online',
bd67d0b44d093410faff4b26ea2e7ba114821aae
Store the position metadata
scripts/createsearchindex.js
scripts/createsearchindex.js
console.log(" 🌙 Creating Lunr index..."); const lunr = require('lunr'); const fs = require('fs'); const data = fs.readFileSync('site/documents.json'); const documents = JSON.parse(data); // field and document BOOST docs: // https://github.com/olivernn/lunr.js/issues/267 const index = lunr(function() { this.field(...
JavaScript
0.998749
@@ -417,16 +417,56 @@ f('id'); +%0A%09this.metadataWhitelist = %5B'position'%5D; %0A%0A%09docum
cd5d1bb8bd7371b62ba783ccad074c587a8b7c82
Change from default delay to 800 ms (#91)
src/main/javascript/form/SearchRegisterenhet.js
src/main/javascript/form/SearchRegisterenhet.js
/** * Combobox that searches from LM with type ahead. */ Ext.define('OpenEMap.form.SearchRegisterenhet', { extend : 'Ext.form.field.ComboBox', alias: 'widget.searchregisterenhet', require: ['Ext.data.*', 'Ext.form.*'], initComponent : function() { var registeromrade; var ...
JavaScript
0
@@ -240,16 +240,37 @@ rm.*'%5D,%0A + queryDelay: 800,%0A init
ef08eb1ff593bb5383cb9162c753b50166f7c594
fix file sys test
source/controllers/filesysManager.js
source/controllers/filesysManager.js
/** * Created by chendi on 9/3/16. */ var mkdirp = require('mkdirp'); var fs = require('fs'); var app = require('../../app'); var path = require ('path'); var del = require('del'); var File = require('../Models/File'); /** * Get user file directory, if directory not exists then create one * * @param userID * @re...
JavaScript
0.000001
@@ -199,17 +199,17 @@ ire('../ -M +m odels/Fi
3cac1cad6ceee5c7f53a3a42876024251d3eb70a
fix bug
db/index.js
db/index.js
var r = require('rethinkdb'); var service = require('../Service'); r.connect({ host: 'localhost', port: 28015, db: 'FJCU' }, function (err, conneciton){ if(err){ console.log(err); process.exit(); } global.connection = conneciton; r.table('people').changes().run(global.con...
JavaScript
0.000001
@@ -54,9 +54,9 @@ '../ -S +s ervi
64684e13cef7f67ca2b6cff46183658bfb2cd452
test live data v3
server/v1/sockets/connection.js
server/v1/sockets/connection.js
import jwt from 'jsonwebtoken'; import config from '../../../config/config'; import User from '../models/user.model'; const debug = true; const socketConnection = (io) => { io.on('connection', (client) => { client.on('authenticate', async (data) => { try { const decoded = jwt.verify(data.token, con...
JavaScript
0
@@ -132,16 +132,34 @@ = true;%0A +let clients = %7B%7D;%0A const so @@ -217,24 +217,25 @@ lient) =%3E %7B%0A +%0A client.o @@ -677,32 +677,72 @@ it user.save();%0A + clients%5Bdecoded.id%5D = client;%0A client @@ -785,59 +785,8 @@ %7D);%0A - io.to(user._id).emit('update_feed', %7B...
f94b55a274adf1d1a20089d6c1f597dc13fa7d8e
add the followup calls
app/scripts/branches.js
app/scripts/branches.js
var branches = new Vue({ el: '#branches', data: { payload: [], count: 0 }, methods: { load_branches: function(){ this.make_gh_call(); }, make_gh_call: function() { vt = this; auth_data = this.creds().username + ":" + this.creds().token; jQuery.ajax ({ ty...
JavaScript
0.000001
@@ -712,382 +712,1977 @@ -creds: function() %7B%0A return github_details();%0A %7D,%0A%0A buildBranches: function (data, payload) %7B%0A payload = %5B%5D;%0A $.each(data, function (_, v) %7B%0A name = v.name;%0A isStale = '',%0A status = ''%0A payload.push(%7B%0A ...
6005497df9a6157a09fee61067b00c05842d5577
Allow settings to disable jshint
public/js/chrome/errors.js
public/js/chrome/errors.js
// (function () { // return //= require "../vendor/jshint/jshint" var jshint = function () { var source = editors.javascript.editor.getCode(); var ok = JSHINT(source); return ok ? true : JSHINT.data(); }; var detailsSupport = 'open' in document.createElement('details'); // yeah, this is happening. Fucking...
JavaScript
0
@@ -3240,16 +3240,95 @@ %7D%0A%7D;%0A%0A +if (jsbin.settings.jshint === true %7C%7C jsbin.settings.jshint === undefined) %7B%0A $(docume @@ -3383,16 +3383,18 @@ 1000));%0A + $(docume @@ -3432,16 +3432,19 @@ Errors); +%0A%7D %0A%0A// %7D)(
c0e4c54ea3085ce29b824d97750352d08637db9e
Use `instantiate` instead of `invoke` for controller
app/providers/extended-route.js
app/providers/extended-route.js
define(['require', 'app', 'angular', 'ngRoute', 'authentication'], function(require, app, angular) { 'use strict'; var baseUrl = require.toUrl(''); app.provider('extendedRoute', ["$routeProvider", function($routeProvider) { var __when = $routeProvider.when.bind($routeProvider); //===========...
JavaScript
0.000001
@@ -2426,11 +2426,16 @@ r.in -vok +stantiat e(co @@ -2447,19 +2447,8 @@ ler, - undefined, loc
40ec1ae7d5c2c29f608c96b31595ac90669b374c
Fix RadioButton depth
public/js/object/button.js
public/js/object/button.js
/** Constructor for Button @constructor */ var ButtonObject = function() { //Call the parent constructor!!!! RealObject.call(this); //Add a property "font" and "text" to button this.font = "18px Arial"; this.text = ""; this.checkForInput = true; //Let's override the method "update" //Even though the up...
JavaScript
0.000001
@@ -2679,18 +2679,17 @@ depth = -10 +5 00;%0A
0dd45088f4dbbca490df2b073712c5da0cc41708
configure gulp tasks
gulpfile.js
gulpfile.js
JavaScript
0.000034
@@ -0,0 +1,1893 @@ +var gulp = require('gulp');%0Avar gutil = require('gulp-util')%0Avar uglify = require('gulp-uglify');%0Avar concat = require('gulp-concat');%0Avar browserify = require('browserify');%0Avar reactify = require('reactify');%0Avar watchify = require('watchify');%0Avar nodemon = require('gulp-nodemon');%...
d23ffd0c9bf7c389d425db1295487bf85f0ad2bd
Add missing task dependencies.
gulpfile.js
gulpfile.js
/* global __dirname */ (function (pkg, gulp, jshint, jscs, stylish, mocha, connect, less, requirejs, uglify, replace, header, yargs, rimraf, mkdirp, recursive) { 'use strict'; var environment = yargs.argv.env || 'development', headerTemplate = '/**\n' + ' * ${pkg.name}\n' + ...
JavaScript
0.000001
@@ -1425,32 +1425,79 @@ 'build:less',%0A + %5B%0A 'build:clean'%0A %5D,%0A function @@ -1494,32 +1494,32 @@ function () %7B%0A - retu @@ -2245,32 +2245,81 @@ 'package:less',%0A + %5B%0A 'package:clean'%0A %5D,%0A function @@ -2789,3...
5ca38c66f6391c9f09123bd742ce1d365a04a985
create the 'test' task
gulpfile.js
gulpfile.js
var gulp = require('gulp')
JavaScript
1
@@ -20,8 +20,139 @@ 'gulp')%0A +var mocha = require('gulp-mocha')%0A%0Agulp.task('test', function () %7B%0A gulp.src('./tests/connect-sequence.spec.js').pipe(mocha())%0A%7D)%0A
52d6463f2c1473198c3c554bf7d84848581ca760
Tag releases
gulpfile.js
gulpfile.js
/* * Copyright 2015 The Closure Compiler Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
JavaScript
0
@@ -3922,32 +3922,83 @@ ction(err, data) + %7B%7D)%0A .addTag(newVersion.version, function() %7B%0A gut
b5214d1ca91ac14c9700ff7ad35276d7ed33e59e
Modify loadUsers.js script - now registers users and reset passwords
scripts/zen-etl/loadUsers.js
scripts/zen-etl/loadUsers.js
'use strict' var fs = require('fs'); var seneca = require('seneca')(); var async = require('async'); var dojos = JSON.parse(fs.readFileSync('./data/users.json', 'utf8')); var plugin = "load-users"; var config = require('config'); var ENTITY_NS = "cd/users"; seneca.use('mongo-store', config.db) seneca.ready(function...
JavaScript
0
@@ -100,20 +100,20 @@ );%0A%0Avar -dojo +user s = JSON @@ -148,16 +148,21 @@ ta/users +-test .json', @@ -255,16 +255,21 @@ cd/users +-test %22;%0A%0Asene @@ -300,16 +300,36 @@ nfig.db) +%0Aseneca.use('user'); %0A%0Aseneca @@ -348,16 +348,109 @@ ion() %7B%0A + var userpin = seneca.pin(%7Brole:'user',cmd:'*'%...
483240a7a11e1b9cb6d62a99d834d5abb3f00e4a
Make the chart move constantly
public/scripts/chart.js
public/scripts/chart.js
define(['chart-pings'], function(pings) { var element = d3.select('#chart').append('svg:svg') var elementWidth = parseInt(element.style('width')) var elementHeight = parseInt(element.style('height')) var maxPing = 5000 // TODO DRY var yScale = d3.scale.linear().domain([0, maxPing]).range([0, elem...
JavaScript
0.000009
@@ -241,16 +241,55 @@ TODO DRY +%0A var pingInterval = 500 // TODO DRY %0A%0A va @@ -363,16 +363,76 @@ Height%5D) +%0A var xScale = d3.scale.linear().range(%5B0, elementWidth%5D) %0A%0A // @@ -592,16 +592,18 @@ nter +ed , update , ex @@ -602,14 +602,17 @@ date +d , exit +ed %0A @@ -671,16 +671,...
07bc10fa503513bd49014d8c9c5df424bd2a5c9b
Update sass task options
gulpfile.js
gulpfile.js
var browsersync = require('browser-sync'); var reload = browsersync.reload; var gulp = require('gulp'); var runSequence = require('run-sequence'); var pngquant = require('imagemin-pngquant'); var pkg = require( process.cwd() + '/package.json'); var autoprefixerBrowsers = ['> 1%', 'last 2 version...
JavaScript
0.000001
@@ -784,20 +784,16 @@ p.task(' -ruby sass', f @@ -842,20 +842,16 @@ + '/lib/ -ruby sass')(%7B @@ -919,20 +919,16 @@ x/build/ -ruby sass/',%0A @@ -939,23 +939,16 @@ rubySass -Options : %7B%0A @@ -1002,68 +1002,98 @@ -autoprefixer: autoprefixerBrowsers,%0A fallback:%7B +fallback:%7B%0A autoprefi...
7fefb1afd657b69345487c8a2d81a3d14afb7042
Update beta flag
js/consts.js
js/consts.js
var consts = {}; consts.isBeta = false;
JavaScript
0
@@ -31,10 +31,9 @@ a = -fals +tru e;
e04e87dfc09668b15e4acddf3ffdb22f7bb7f40b
add missing prop doc for "cookieExpiration"
src/CookieBanner.js
src/CookieBanner.js
import React from 'react'; import cx from 'classnames'; import omit from 'lodash.omit'; import { t, props } from 'tcomb-react'; import { cookie as cookieLite } from 'browser-cookie-lite'; import styleUtils from './styleUtils'; t.interface.strict = true; const Props = { children: t.maybe(t.ReactChildren), message: ...
JavaScript
0
@@ -1508,16 +1508,79 @@ -policy%0A + * @param cookieExpiration - used to set the cookie expiration%0A * @para @@ -1603,16 +1603,17 @@ l - whet +h er the c
00f7a562e774cd6875a1acf4e2d250286f383f46
Add option to livereload css.
gulpfile.js
gulpfile.js
'use strict'; var gulp = require('gulp'), sass = require('gulp-sass'), gutil = require('gulp-util'), buffer = require('vinyl-buffer'), source = require('vinyl-source-stream'), connect = require('gulp-connect'), plumber = require('gulp-plumber'), babelify = require('babelify'), sourcemap...
JavaScript
0
@@ -1772,16 +1772,20 @@ %7Bjs,html +,css %7D')%0A
e54a6a0ded7b6f6a0061141c2c39d85d32ccfa95
Update custom.js
js/custom.js
js/custom.js
/*! * Custom Code file for kraftychocolates */ function show_callus_modal() { console.log("Callus modal shown"); return false; } var callus_switcher = function() { if($(window).width() <=768) { $('.callus').addClass("callus-popup"); $(".callus-popup").on("click",show_callus_modal); } else { ...
JavaScript
0.000001
@@ -192,9 +192,9 @@ h() -%3C +%3E =768