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 |
|---|---|---|---|---|---|---|---|
51eefe3a52ad5a30d6b6d7d387b5cec07d8adcd5 | remove county entry from list. | src/app/counties.js | src/app/counties.js | define([], function () {
return ['Beaver',
'Box Elder',
'Cache',
'Carbon',
'Counties',
'Daggett',
'Davis',
'Duchesne',
'Emery',
'Garfield',
'Grand',
'Iron',
'Juab',
'Kane',
'Millard',
'Morgan',
... | JavaScript | 0 | @@ -100,28 +100,8 @@
n',%0A
- 'Counties',%0A
|
9fe26a632772cb8a2b5e410f94168264731db773 | handle recursive traces | src/core/util/debug.js | src/core/util/debug.js | import config from '../config'
import { noop } from 'shared/util'
let warn = noop
let tip = noop
let formatComponentName
if (process.env.NODE_ENV !== 'production') {
const hasConsole = typeof console !== 'undefined'
const classifyRE = /(?:^|[-_])(\w)/g
const classify = str => str
.replace(classifyRE, c => c... | JavaScript | 0.000001 | @@ -1463,20 +1463,461 @@
-while (vm) %7B
+let currentRecursiveSequence = 0%0A while (vm) %7B%0A if (tree.length %3E 0) %7B%0A const last = tree%5Btree.length - 1%5D%0A if (last.constructor === vm.constructor) %7B%0A currentRecursiveSequence++%0A vm = vm.$parent%... |
6f460ca0a08ce7f587c7c85f0ff3539c651ecf0b | Use importNode to avoid issues cloning a template with custom elements in it. | minimalComponent.js | minimalComponent.js | /*
* A minimal set of helper functions to go on top of polymer-micro:
*
* 1. <template> instantiation
* 2. Polymer-style automatic node finding
*/
(function() {
// Polymer-style automatic node finding.
// See https://www.polymer-project.org/1.0/docs/devguide/local-dom.html#node-finding.
// This feature is no... | JavaScript | 0 | @@ -882,67 +882,103 @@
-this.root.appendChild(this.template.content.cloneNode(true)
+var clone = document.importNode(this.template.content, true);%0A this.root.appendChild(clone
);%0A%0A
|
e0fc44b27c24d05daf189f0cb0f8649e6d9fea87 | Update controllerUtils.js | src/backend/rest/subscriber/controllerUtils.js | src/backend/rest/subscriber/controllerUtils.js |
var enforce = require("enforce");
function validEmail(email){
//use node-enfore library
return enforce.patterns.email([email])
}
function validPassword(password){
return enforce.range.length(8[, 16[, password ]])
}
function validToken(token){
return enforce.ranges.length(36[, 36[, token ]])
}
exports.validPass... | JavaScript | 0.000001 | @@ -123,16 +123,17 @@
%5Bemail%5D)
+;
%0A%7D%0A%0Afunc
@@ -208,24 +208,25 @@
password %5D%5D)
+;
%0A%7D%0A%0Afunction
@@ -294,16 +294,17 @@
oken %5D%5D)
+;
%0A%7D%0A%0Aexpo
|
42b39d74d66281a143833afde4e97060bdd4aaab | fix null error | src/botPage/view/blockly/blocks/trade/index.js | src/botPage/view/blockly/blocks/trade/index.js | import { observer as globalObserver } from '../../../../../common/utils/observer';
import { translate } from '../../../../../common/i18n';
import config from '../../../../common/const';
import { setBlockTextColor, findTopParentBlock, deleteBlockIfExists } from '../../utils';
import { defineContract } from '../images';
... | JavaScript | 0.000007 | @@ -4366,32 +4366,60 @@
ev);%0A %7D%0A%0A
+ decorateTrade(ev);%0A%0A
const in
@@ -4420,24 +4420,20 @@
nst init
-Statemen
+Inpu
t = this
@@ -4468,24 +4468,54 @@
LIZATION');%0A
+%0A if (initInput) %7B%0A
cons
@@ -4532,24 +4532,20 @@
d = init
-Statemen
+Inpu
t.getChi
@@ -45... |
7c78b2af30a8c08cf3783dffd1ce9e266c7ea544 | check for close and ready state of socket, implement buffersend | src/javascript/binary/pages/trade/socket.js | src/javascript/binary/pages/trade/socket.js | var TradeSocket = (function () {
'use strict';
var tradeSocket,
socketUrl = "wss://www.devbin.io/websockets/contracts";
var status = function () {
return tradeSocket && tradeSocket.readyState;
};
var isReady = function () {
return tradeSocket && tradeSocket.readyState == 1... | JavaScript | 0 | @@ -128,16 +128,44 @@
ntracts%22
+,%0A bufferedSends = %5B%5D
;%0A%0A v
@@ -339,16 +339,17 @@
State ==
+=
1;%0A
@@ -360,22 +360,23 @@
var
-onOpen
+isClose
= funct
@@ -372,37 +372,32 @@
ose = function (
-token
) %7B%0A trad
@@ -396,85 +396,157 @@
-tradeSocket.send(JSON.stringify... |
106e2a0d9a294837c7469a7cce11ae269066ee46 | Stop retries after a few errors (#2233) | gui/js/updater.window.js | gui/js/updater.window.js | const Promise = require('bluebird')
const WindowManager = require('./window_manager')
const { autoUpdater } = require('electron-updater')
const { translate } = require('./i18n')
const { dialog } = require('electron')
const path = require('path')
const log = require('../../core/app').logger({
component: 'GUI:autoupda... | JavaScript | 0 | @@ -952,17 +952,16 @@
= 10000%0A
-%0A
const UP
@@ -983,16 +983,41 @@
Y = 1000
+%0Aconst UPDATE_RETRIES = 5
%0A%0Amodule
@@ -1067,16 +1067,51 @@
nager %7B%0A
+ /*::%0A retriesLeft: number%0A */%0A%0A
window
@@ -2722,33 +2722,86 @@
')%0A %7D else
-%7B
+if (this.retriesLeft %3E 0) %7B%0A this.retr... |
3a578dcf5c671048d8ecaaa0f49af8f805850c38 | clean up | src/js/app/controllers/post/PostCardCtrl.js | src/js/app/controllers/post/PostCardCtrl.js | var RichText = require('../../services/RichText')
var TimeText = require('../../services/TimeText')
var truncate = require('html-truncate')
module.exports = function ($scope, $state, $rootScope, $modal, $dialog, $analytics, growl, Post, User, UserCache, CurrentUser) {
'ngInject'
$scope.singlePost = $state.current... | JavaScript | 0.000001 | @@ -5879,572 +5879,8 @@
%7D
-%0A%0A /*%0A if (!$scope.isFollowing) %7B%0A $analytics.eventTrack('Post: Join', %7Bpost_id: post.id%7D)%0A post.followers.push(%7B%0A id: user.id,%0A name: user.name,%0A avatar_url: user.avatar%0A %7D)%0A Post.follow(%7Bid: post.id%7D)%0A ... |
9ad44449bdb56a832f53dea502b79f18252c736c | Fix coverage folder for mocha | gulp_tasks/tasks/test.js | gulp_tasks/tasks/test.js | 'use strict';
var gulp = require('gulp');
var runSequence = require('run-sequence');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');
var gutil = require('gulp-util');
var constants = require('../common/constants')();
gulp.task('mocha', 'Runs the mocha tests.', function() {
return gulp.... | JavaScript | 0.000001 | @@ -802,16 +802,61 @@
ports(%7B%0A
+ dir: './coverage/mocha',%0A
|
71e0a4bf1e250471f29d9e7f7e90a3b81cd5a53d | add account models | src/core/account.js | src/core/account.js | JavaScript | 0 | @@ -0,0 +1,361 @@
+'use strict'%0A%0Avar BaseModel = require('capital-models').BaseModel;%0A%0Amodule.exports = class Account extends BaseModel %7B%0A constructor(source) %7B%0A super('account', '1.0.0');%0A%0A // Define properties. %0A this.username = '';%0A this.password = '';%0A ... | |
05343351e888f09548f5ef9654a4d1f104234db7 | Fix disable method for unrendered tooltips. Fixes #565 | src/core/disable.js | src/core/disable.js | PROTOTYPE.disable = function(state) {
if(this.destroyed) { return this; }
if('boolean' !== typeof state) {
state = !(this.tooltip.hasClass(CLASS_DISABLED) || this.disabled);
}
if(this.rendered) {
this.tooltip.toggleClass(CLASS_DISABLED, state)
.attr('aria-disabled', state);
}
this.disabled = !!state;
... | JavaScript | 0 | @@ -115,16 +115,32 @@
ate = !(
+this.rendered ?
this.too
@@ -173,10 +173,9 @@
ED)
-%7C%7C
+:
thi
|
dda245cca3708336a90423ff1fbab43438a90acd | fix capture ressources avec plusieurs personnes | app/js/controllers/foyer/ressources/ressources.js | app/js/controllers/foyer/ressources/ressources.js | 'use strict';
angular.module('ddsApp').controller('FoyerRessourcesCtrl', function($scope, $state, ressourceTypes, SituationService, IndividuService) {
$scope.momentDebutAnnee = moment().subtract('years', 1);
$scope.momentFinAnnee = moment().startOf('month').subtract('months', 1);
$scope.debutAnnee = $scope... | JavaScript | 0 | @@ -1462,32 +1462,74 @@
', function() %7B%0A
+ $scope.initIndividusRessources();%0A
if (!_.f
@@ -1659,50 +1659,8 @@
%7D%0A
- $scope.initIndividusRessources();%0A
|
4ddd28d7934fab57c4685a1be09fca6bb1eff687 | Add React VR and Javascript ES6+ to skillset | src/data/profile.js | src/data/profile.js | const PROFILE = {
summary: `Den Temple is a Javascript Developer specializing in Web and Mobile Design. He has additional expertise with SEO consulting, API integration, and Machine Learning analytics.`,
email: 'developer@dentemple.com',
forHire: true,
location: 'Scranton, PA',
year: 'April 2017',
clientSki... | JavaScript | 0 | @@ -136,22 +136,22 @@
ith
-SEO consulting
+VR experiences
, AP
@@ -173,34 +173,22 @@
and
-Machine Learning analytics
+SEO consulting
.%60,%0A
@@ -441,16 +441,57 @@
s: %5B
+%0A
'React
-',
+/React VR',%0A 'Javascript ES6+',%0A
'No
@@ -497,16 +497,20 @@
ode.js',
+%0A
'Agile/
@@ -516,16 +516,20 @@... |
7cd0a80c0b72b2144ca5478f119373d5f6d03110 | Add email address #4 | form-faker.js | form-faker.js | console.log('form-faker: faking data...');
const dictionary = getDictionary();
var inputs = document.getElementsByTagName('input');
for (var i = 0; i < inputs.length; i++) {
var input = inputs[i];
if (input.type.toLowerCase() !== 'text' || input.value) {
continue;
}
var name = input.name.toLowerCase();
... | JavaScript | 0.001053 | @@ -639,32 +639,107 @@
);%0A break;%0A
+ case 'email':%0A input.value = faker.internet.email();%0A break;%0A
case 'accoun
@@ -1278,24 +1278,156 @@
lastName'%5D,%0A
+ // email%0A %5B'email', 'email'%5D,%0A %5B'emailaddress', 'email'%5D,%0A %5B'email_address', 'email'%5D,%0A %5B'em... |
f1710f41b421f0ef91d7081163f7558af564d889 | Change yul test to use gas() and identity precompile | packages/debugger/test/data/yul.js | packages/debugger/test/data/yul.js | import debugModule from "debug";
const debug = debugModule("test:data:more-decoding");
import { assert } from "chai";
import Ganache from "ganache-core";
import { prepareContracts, lineOf } from "../helpers";
import Debugger from "lib/debugger";
import solidity from "lib/solidity/selectors";
import * as Codec from... | JavaScript | 0 | @@ -574,17 +574,21 @@
ticcall(
-0
+gas()
, 0, 0,
@@ -595,16 +595,30 @@
0, 0, 0)
+ //identity fn
%0A i
|
f8a300ecfe680e2d3768671b9bc69280c57571e6 | remove some jQuery | user/static/js/es6_modules/contacts/index.js | user/static/js/es6_modules/contacts/index.js | import {teammemberTemplate} from "./templates"
import {deleteMemberDialog} from "./manage"
import {addDropdownBox, postJson, addAlert, OverviewMenuView} from "../common"
import {SiteMenu} from "../menu"
import {menuModel} from "./menu"
export class ContactsOverview {
constructor() {
let smenu = new SiteMen... | JavaScript | 0.000002 | @@ -595,22 +595,38 @@
-jQuery
+document.querySelector
('#team-
@@ -643,15 +643,21 @@
y').
-append(
+innerHTML +=
team
@@ -700,17 +700,16 @@
embers%7D)
-)
%0A
|
1b1b361cb1859f9aa40c07a680aebc6c6aa29064 | add topic css | modules/components/topic.js | modules/components/topic.js | /**
* Created by natefang on 1/14/16.
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
import fetch from 'isomorphic-fetch';
import moment from 'moment';
class Topic extends Component {
constructor(props) {
super(props);
this.state = {
topic: {
strategies:[],
owner:{
... | JavaScript | 0 | @@ -182,16 +182,44 @@
oment';%0A
+import './style/topic.css';%0A
class To
|
a3da68fc0d357cdb97dc01dc09e4d8f59c7b5d16 | Update scenarios and remove a few to speed up tests (#3720) | packages/ember/config/ember-try.js | packages/ember/config/ember-try.js | 'use strict';
const getChannelURL = require('ember-source-channel-url');
const { embroiderSafe } = require('@embroider/test-setup');
module.exports = async function() {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-3.12',
npm: {
devDependencies: {
'ember... | JavaScript | 0 | @@ -250,166 +250,10 @@
s-3.
-12',%0A npm: %7B%0A devDependencies: %7B%0A 'ember-source': '~3.12.0',%0A %7D,%0A %7D,%0A %7D,%0A %7B%0A name: 'ember-lts-3.16
+20
',%0A
@@ -331,10 +331,10 @@
'~3.
-16
+20
.0',
@@ -723,894 +723,23 @@
-%7B%0A name:... |
b930765612687c3d6f9de91b5ff803d93313e5d9 | Add option docs | src/edit/options.js | src/edit/options.js | import {defaultSchema} from "../model"
import {AssertionError} from "../util/error"
import {ParamPrompt} from "../ui/prompt"
import {CommandSet, updateCommands} from "./command"
class Option {
constructor(defaultValue, update, updateOnInit) {
this.defaultValue = defaultValue
this.update = update
this.up... | JavaScript | 0.000002 | @@ -177,111 +177,472 @@
d%22%0A%0A
-class Option %7B%0A constructor(defaultValue, update, updateOnInit) %7B%0A this.defaultValue = defaultValue
+// An option encapsulates functionality for an editor instance,%0A// e.g. the amount of history events that the editor should hold%0A// onto or the document's schema.%0Ac... |
4c9669f95dada19392c7da679476f212ebb11f24 | Update help.js | cmd/help.js | cmd/help.js | exports.run = (bot, message, params, config) => {
if (!params[0]) {
message.channel.sendMessage("check your dms :rocket:").catch(console.error);
let modRole = message.guild.roles.find("name", "Staff");
let adminRole = message.guild.roles.find("name", "Owner");
var cmds = ``;
cmds += `*... | JavaScript | 0.000001 | @@ -29,16 +29,23 @@
params,
+ perms,
config)
|
e344ccb6ec4837462af02f54203de6c5f0710568 | convert geojson string to obj | client/shared/placeReference/placeReferenceDirective.js | client/shared/placeReference/placeReferenceDirective.js | angular.module('pteraformer').directive('placeReference', function() {
return {
restrict: 'E',
transclude: 'true',
scope: {
id: '@',
geo: '@'
},
template: '<span class="place-ref"> {{geo}} <ng-transclude></ng-transclude></span>',
link: function ($scope, element, attrs) {
ele... | JavaScript | 0.999999 | @@ -212,17 +212,8 @@
ef%22%3E
- %7B%7Bgeo%7D%7D
%3Cng-
@@ -341,24 +341,26 @@
) %7B%0A
+//
element.html
@@ -411,16 +411,90 @@
pan%3E');%0A
+ var geoObj = JSON.parse($scope.geo);%0A console.log(geoObj);%0A
%7D)
|
85afff2c4edccaf584cd7b073203c61db898d856 | update ColGroup | src/_ColGroup/ColGroup.js | src/_ColGroup/ColGroup.js | /**
* @file ColGroup component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
// Statics
import TableFragment from '../_statics/TableFragment';
import HorizontalAlign from '../_statics/HorizontalAlign';
import SelectMode from '../_s... | JavaScript | 0 | @@ -991,16 +991,32 @@
umnWidth
+, minColumnWidth
%7D = this
@@ -1374,24 +1374,43 @@
%0A
+ (minColumnWidth %7C%7C
result.widt
@@ -1410,16 +1410,17 @@
lt.width
+)
;%0A%0A
|
c4b7a32751474e450b45bf72214ccd2bc6673ae6 | Add stability annotation to ol.geom.SimpleGeometry | src/ol/geom/simplegeometry.js | src/ol/geom/simplegeometry.js | goog.provide('ol.geom.SimpleGeometry');
goog.require('goog.asserts');
goog.require('goog.functions');
goog.require('goog.object');
goog.require('ol.extent');
goog.require('ol.geom.Geometry');
goog.require('ol.geom.flat');
/**
* @constructor
* @extends {ol.geom.Geometry}
*/
ol.geom.SimpleGeometry = function() {
... | JavaScript | 0.000427 | @@ -270,16 +270,48 @@
ometry%7D%0A
+ * @todo stability experimental%0A
*/%0Aol.g
@@ -2340,32 +2340,64 @@
Layout%7D Layout.%0A
+ * @todo stability experimental%0A
*/%0Aol.geom.Simp
|
5b127aacd86ef3ea1d330629025b0fcb3c9f188e | add appendPlaceContent method to append content to a place | src/plugin/modules/places.js | src/plugin/modules/places.js | /*global define*/
/*jslint white:true,browser:true*/
define([
'kb/common/html'
], function (html) {
'use strict';
function factory(config) {
var root = config.root, places = {},
div = html.tag('div');
// IMPLEMENTATION
function addPlace(name) {
... | JavaScript | 0.000001 | @@ -1378,32 +1378,291 @@
tent;%0A %7D%0A
+ function appendPlaceContent(name, content) %7B%0A var place = getPlaceNode(name),%0A temp = document.createElement('div');%0A %0A temp.innerHTML = content;%0A place.appendChild(temp.firstChild)%0A ... |
a2ff3f38b75733dba47e2d6d54e710344c72a218 | update TableRow | src/_TableRow/TableRow.js | src/_TableRow/TableRow.js | /**
* @file TableRow component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
export default class TableRow extends Component {
constructor(props, ...restArgs) {
super(props, ...restArgs);
this.contentRenderer ... | JavaScript | 0 | @@ -205,24 +205,454 @@
omponent %7B%0A%0A
+ static propTypes = %7B%0A%0A rowIndex: PropTypes.number,%0A columns: PropTypes.array,%0A data: PropTypes.object,%0A isChecked: PropTypes.bool,%0A disabled: PropTypes.bool,%0A%0A onRowTouchTap: PropTypes.func,%0A onCellTouch... |
45634342da8f58dda572fc8ecd37329827f76e61 | Add Link Route component in the Home for example purpose. | src/ui/components/Home/Home.view.js | src/ui/components/Home/Home.view.js | import React from 'react';
function HomeView (props) {
return (
<div>
<p>Hello {props.user.user || 'empty'}</p>
</div>
);
}
export default HomeView; | JavaScript | 0 | @@ -19,16 +19,52 @@
'react';
+%0Aimport %7B Link %7D from 'react-router'
%0A%0Afuncti
@@ -133,16 +133,33 @@
p%3EHello
+%3CLink to=%22Login%22%3E
%7Bprops.u
@@ -180,16 +180,23 @@
mpty'%7D%3C/
+Link%3E%3C/
p%3E%0A
|
f27ad3c93fa334e1cbf3f397dd81d98bd8649d39 | fix #1187 html char codes for navbar icon | packages/mjml-navbar/src/Navbar.js | packages/mjml-navbar/src/Navbar.js | import { BodyComponent } from 'mjml-core'
import crypto from 'crypto'
import conditionalTag, {
msoConditionalTag,
} from 'mjml-core/lib/helpers/conditionalTag'
export default class MjNavbar extends BodyComponent {
static allowedAttributes = {
align: 'enum(left,center,right)',
'base-url': 'string',
ham... | JavaScript | 0 | @@ -968,16 +968,18 @@
open': '
+&#
9776',%0A
@@ -995,16 +995,18 @@
lose': '
+&#
8855',%0A
@@ -4211,36 +4211,16 @@
$%7B
-String.fromCharCode(
this.get
@@ -4240,17 +4240,16 @@
o-open')
-)
%7D%0A
@@ -4434,28 +4434,8 @@
$%7B
-String.fromCharCode(
this
@@ -4460,17 +4460,16 @@
-close')
-)
%7D%0A ... |
83c97079c6f90b058ce4569e52a83f612c68b078 | Refactor sign_up component. | src/open/components/signup.js | src/open/components/signup.js | /* @flow */
const React = require('react')
const { connect } = require('react-redux')
const { reduxForm } = require('redux-form')
const MemberFields = require('../../shared/components/member_fields.js')
const { validate, sign_up_required, read_only_sign_up } = require('../../shared/form_fields/member.js')
const { ide... | JavaScript | 0 | @@ -122,16 +122,54 @@
x-form')
+%0Aconst %7B identity %7D = require('ramda')
%0A%0Aconst
@@ -344,47 +344,8 @@
')%0A%0A
-const %7B identity %7D = require('ramda')%0A%0A
cons
@@ -478,23 +478,22 @@
%0A%0Aconst
-buttons
+SignUp
= (prop
@@ -501,325 +501,159 @@
) =%3E
+ %7B
%0A
-%3Cdiv%3E%0A %3Cbutton%3ENext%... |
72c85cc2a405af158d7c5097a0d91520f6ef7d44 | fix nested scrollbar switching | src/events/touch.js | src/events/touch.js | /**
* @module
* @prototype {Function} __touchHandler
*/
import { SmoothScrollbar } from '../smooth-scrollbar';
import { GLOBAL_ENV } from '../shared/';
const MIN_VELOCITY = 100;
let activeScrollbar = null;
/**
* @method
* @internal
* Touch event handlers builder
*/
function __touchHandler() {
const {
... | JavaScript | 0.000052 | @@ -523,47 +523,8 @@
Drag
- %7C%7C this.__eventFromChildScrollbar(evt)
) re
@@ -901,41 +901,8 @@
t();
-%0A%0A activeScrollbar = this;
%0A
@@ -978,62 +978,62 @@
if (
-!activeScrollbar) activeScrollbar = this;%0A if (
+this.__isDrag) return;%0A if (activeScrollbar &&
acti
@@ -1056,25 +1056,... |
b87637fee116e6704413f39b529b030c37066701 | Add has() utility | src/utilities/functional/get_set.js | src/utilities/functional/get_set.js | 'use strict';
const { assignArray } = require('./reduce');
const { result } = require('./result');
// Similar to Lodash get(), but do not mutate, and faster
const get = function (obj, keys) {
if (keys.length === 0) { return obj; }
const [childKey, ...keysA] = keys;
const child = obj[childKey];
return get(chi... | JavaScript | 0.000022 | @@ -1926,16 +1926,180 @@
%5D%5D;%0A%7D;%0A%0A
+// Similar to Lodash has(), but faster%0Aconst has = function (obj, keys) %7B%0A try %7B%0A get(obj, keys);%0A %7D catch (error) %7B%0A return false;%0A %7D%0A%0A return true;%0A%7D;%0A%0A
module.e
@@ -2143,11 +2143,18 @@
setAll,%0A
+ has,%0A
%7D;%0A
|
484e78f3928d3d32d5a70394f2e59d496dc3ee14 | Send project id on GET request for games | public/javascripts/app/views/projectManager.js | public/javascripts/app/views/projectManager.js | define([
'Backbone',
//Model
'app/models/project',
//Collection
'app/collections/projects',
//View
'app/views/taskController',
'app/views/projectsController',
'app/views/filterController',
'app/views/gameController',
//Templates
'text!templates/project-page/gamePageTemplate.html',
'text!t... | JavaScript | 0 | @@ -1725,34 +1725,211 @@
his.
-taskList.collection.fetch(
+filter.setElement('.fn-filter-task');%0A this.games.setElement('.js-game-list');%0A%0A this.taskList.collection.fetch();%0A this.games.collection.fetch(%7Bdata: %7Bproject_id: this.options.projectId%7D%7D
);%0A%0A
@@ -2043,103 +2043,8 @@
%7D%... |
8daab4b50747087d779ba89148b3b443aa50343f | Update moving.js | javascripts/moving.js | javascripts/moving.js | /*!
* moving.js
*
* Copyright © 2016 Jorge M. Peláez | MIT license
* http://j-pel.github.io/adjustjs
*
*/
(function(exports) {
'use strict';
/* properties */
var storeChanges = function(changes){return(0)};
var ongoingTouches = new Array();
var moving = new Object();
var touchMoving = false;
/* cli... | JavaScript | 0.000001 | @@ -93,16 +93,16 @@
.io/
-adjustjs
+dynamize
%0A *
|
e1528572f138d349d625e59abc8311340b5d27f4 | ____ usual | mongo-scripts/datathon.js | mongo-scripts/datathon.js | const _ = require('lodash');
const nconf = require('nconf');
const Promise = require('bluebird');
const JSDOM = require('jsdom').JSDOM;
const debug = require('debug')('datathon');
const moment = require('moment');
const utils = require('../lib/utils');
const mongo = require('../lib/mongo');
const l = require('../parse... | JavaScript | 0.999997 | @@ -4013,31 +4013,114 @@
-debug(%22Saving %25d object
+const successString = _.size(copyable) ? %60+saving $%7B_.size(copyable)%7D objects%60 : %22_____%22;%0A debug(%22%25
s, t
@@ -4193,32 +4193,29 @@
-_.size(copyable)
+successString
, progre
|
7e088f242d070a020921aeb4371c1ec832ea9a70 | Remove executable flag from JS file. | htdocs/js/wikitoolbar.js | htdocs/js/wikitoolbar.js | function addWikiFormattingToolbar(textarea) {
if ((typeof(document["selection"]) == "undefined")
&& (typeof(textarea["setSelectionRange"]) == "undefined")) {
return;
}
var toolbar = document.createElement("div");
toolbar.className = "wikitoolbar";
function addButton(id, title, fn) {
var a = doc... | JavaScript | 0.002005 | |
07c13a431a386f31e5dab84cb42233991dc81019 | Remove executable flag from JS file. | htdocs/js/wikitoolbar.js | htdocs/js/wikitoolbar.js | function addWikiFormattingToolbar(textarea) {
if ((typeof(document["selection"]) == "undefined")
&& (typeof(textarea["setSelectionRange"]) == "undefined")) {
return;
}
var toolbar = document.createElement("div");
toolbar.className = "wikitoolbar";
function addButton(id, title, fn) {
var a = doc... | JavaScript | 0.005383 | |
a0cb3c76154fb010a44c0d8d5dc5c9defb523964 | remove crap | src/filter/index.js | src/filter/index.js | const DocumentDBClient = require('documentdb').DocumentClient;
const config = {
DatabaseId: "mean-dev",
CollectionId: "users",
Host: process.env.DocDb_Host,
AuthKey: process.env.DocDb_AuthKey,
};
config.CollLink = 'dbs/' + config.DatabaseId + '/colls/' + config.CollectionId
module.exports = function (... | JavaScript | 0.00005 | @@ -334,17 +334,16 @@
age) %7B%0A%0A
-%0A
let
@@ -449,482 +449,8 @@
%7D);%0A
- const querySpec = %7B%0A query: 'SELECT * FROM c WHERE (c.twitter%5B%5C'$id%5C'%5D = %5C'@userid%5C' AND %5C'twitter%5C' = %5C'@platform%5C')',// OR (c.instagram%5B%5C'$id%5C'%5D = %5C'@userid%5C' AND %5C'instagram%5C' = %5... |
efcca8a064a5c6b29abf6bde0ed52f2745a69c9d | implement sprite pooling for player lasers | src/entities/Player.js | src/entities/Player.js | /**
* Player.js
*
* Foofighter.js — Player entity
*
* This class represents the data model and display entity for a
* Player's startship in the game environment.
*/
;(function( FooFighter ){
'use strict';
function Player ( gameState, group ) {
this.gameState = gameState;
this.config = {};
this.spr... | JavaScript | 0 | @@ -3549,90 +3549,48 @@
-laser;%0A%0A // Create our laser sprite entity%0A laser = game.add.sprite(
+pos,%0A laser;%0A%0A pos = %7B
%0A
thi
@@ -3577,32 +3577,35 @@
pos = %7B%0A
+ x:
this.sprite.bod
@@ -3636,32 +3636,34 @@
idth/2,%0A
+y:
this.sprite.body
@@ -3673,152 ... |
701dfff2352dad2eff5df92897d1c0a848dc2041 | remove useless code | src/entities/player.js | src/entities/player.js | "use strict";
var axisUp = new THREE.Vector3(0, 1, 0),
PI_2 = Math.PI / 2;
var Player = function Player (camera, input, pointer) {
this.height = 100;
this.width = 100;
this.jumpCount = 0;
this.jumpStrength = 5;
this.currentJumpStrength = 0;
this.position = new THREE.Vector3(0, 0, 0);
... | JavaScript | 0.000006 | @@ -1520,82 +1520,8 @@
%7D
- else %7B%0A this.movement.y = -this.viewYMinusCommand.value * 2;%0A %7D
%0A%0A
|
b47f0ae3ac50e7b85af395e2fa79edfa8e50fb2d | fix end | src/game/history.js | src/game/history.js | // @flow
import React, { Component } from 'react';
import styled from 'styled-components';
type Props = {
history: string[],
index: number,
onChangeIndex: (index: number) => any,
};
const isFirst = (index: number): boolean => index === -1;
const isLast = <T>(history: T[], index: number) => index >= history.len... | JavaScript | 0.000295 | @@ -316,16 +316,20 @@
y.length
+ - 1
;%0A%0Aclass
|
f45862868974c1ef4320e6bfc4ef603a5a34bd1e | Fix log typo | src/globalStream.js | src/globalStream.js | /* Opt-in, convenience construct used to update a global stream imperatively and in a type safe fashion */
import most from 'most';
import defaultLog from './log';
/*
* A stream piloted by type-safe messages. Meant to be a global (application wide), never ending stream.
*/
export function GlobalStream(initialState,... | JavaScript | 0.000008 | @@ -1423,12 +1423,14 @@
New
-Push
+Global
Stre
|
a91192dfd41761ba1292e7444247db4c1a13fb68 | Disable Dragging | static/assets/javascripts/common.js | static/assets/javascripts/common.js | // Copyright (c) 2013 Ryan Clark
// https://gist.github.com/rclark/5779673
L.TopoJSON = L.GeoJSON.extend({
addData: function (jsonData) {
if (jsonData.type === "Topology") {
for (key in jsonData.objects) {
geojson = topojson.feature(jsonData, jsonData.obje... | JavaScript | 0.000003 | @@ -3560,17 +3560,17 @@
xZoom:
-6
+7
.9, minZ
@@ -3733,24 +3733,66 @@
in(%5B0, 1%5D);%0A
+ map.dragging.disable();%0A%0A
map.
|
c2026b15d22f2ef16f43ec4822c4ac00e85cef65 | remove redundant code | motion/js/motion.js | motion/js/motion.js | function start()
{
if(animating)
return;
animating = true;
var ctx = canvas.getContext('2d');
var path = knownPath[pathSelect.value];
var x = path[0].x; //x coordinate
var y = path[0].y; //y coordinate
var dir = atan2(path[1].y-path[0].y, path[1].x-path[0].x); //orientation in radians
var motionModel = n... | JavaScript | 0.999999 | @@ -555,35 +555,16 @@
w(ctx);%0A
-%09animating = true;%0A
%09lastFra
|
812ddf0a3599497b6422fda421d6920e265d4707 | Remove useless variable | lib/Client.js | lib/Client.js | var Chrome = require('chrome-remote-interface');
var events = require('events');
var util = require('util');
var common = require('./common.js');
var Page = require('./Page.js');
var CLEANUP_SCRIPT =
'chrome.benchmarking.closeConnections();' +
'chrome.benchmarking.clearHostResolverCache();';
var Client = func... | JavaScript | 0.000433 | @@ -360,39 +360,8 @@
his;
-%0A var currentPageIndex = -1;
%0A%0A
@@ -407,24 +407,69 @@
(chrome) %7B%0A
+ // load the next URL or exit if done%0A
func
@@ -514,26 +514,25 @@
d =
-++currentPageIndex
+self.pages.length
;%0A
@@ -1406,25 +1406,20 @@
ages
-%5BcurrentPageIndex
+.slice(-1)%5B0
%5... |
577e9feb213a09cd2e05dfdfb00cca0a3394eb54 | Remove restivus package version | packages/rocketchat-api/package.js | packages/rocketchat-api/package.js | Package.describe({
name: 'rocketchat:api',
version: '0.0.1',
summary: 'Rest API',
git: ''
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'coffeescript',
'underscore',
'rocketchat:lib',
'nimble:restivus@0.8.4'
]);
api.addFiles('server/api.coffee', 'server');
api.addFiles('server... | JavaScript | 0 | @@ -236,14 +236,8 @@
ivus
-@0.8.4
'%0A%09%5D
|
0a75035996204c5a6f73fde9041fa7304274a8af | Fix site URL maybe 🦆 | packages/site/docusaurus.config.js | packages/site/docusaurus.config.js | module.exports = {
title: 'Mrm',
tagline: 'Codemods for your project config files',
url: 'https://github.com/sapegin/mrm',
baseUrl: '/',
favicon: 'img/favicon.png',
organizationName: 'sapegin',
projectName: 'mrm',
themeConfig: {
disableDarkMode: true,
prism: {
theme: require('prism-react-renderer/themes/... | JavaScript | 0 | @@ -94,38 +94,33 @@
https://
-github.com/sapegin/mrm
+mrmjs.netlify.app
',%0A%09base
|
18ff97377640393e91d3da5f904b49935c6e94d4 | Remove library property which was namespacing library.bundled | packages/truffle/webpack.config.js | packages/truffle/webpack.config.js | const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const webpack = require("webpack");
const pkg = require("./package.json");
const rootDir = path.join(__dirname, "../..");
const outputDir = path.join(__dirname, "build"... | JavaScript | 0.000015 | @@ -1598,32 +1598,8 @@
s%22,%0A
- library: %22truffle%22,%0A
|
2e57cd497d4e4ca9b4a85ed501adf84cc766d81b | Add comment | step-capstone/src/components/Map.js | step-capstone/src/components/Map.js | import React, { createRef } from 'react'
/**
* Props:
* zoom : 13 - higher the number, the more zoomed the map is on center
* center: {lat:0.0, lng:0.0} - coordinates for center of map
*/
class MapComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
finalized: this... | JavaScript | 0 | @@ -2673,24 +2673,97 @@
, bounds) %7B%0A
+ // construct hashmap with key: travelObject id, value: marker object%0A
return t
@@ -2942,138 +2942,8 @@
())%0A
- // return this.state.unfinalized.map((item) =%3E %7B%0A // this.addMarker(map, item.coordinates, bounds, item.type);%0A // %7D)%0A
%7D%0A
|
897b17358e9ee24c72b199500b390afbb8764045 | Remove redundant call for reset camera | src/gl/planeFeature.js | src/gl/planeFeature.js | //////////////////////////////////////////////////////////////////////////////
/**
* Create a new instance of planeFeature
*
* @class
* Create a plane feature given a lower left corner point {geo.latlng}
* and and upper right corner point {geo.latlng}
* @param lowerleft
* @param upperright
* @returns {geo.plane... | JavaScript | 0 | @@ -1952,68 +1952,8 @@
e);%0A
- m_this.renderer()._contextRenderer().resetCamera();%0A
|
2dd02fa601324a52ee0509aec340fd02739c6625 | add judgement for ns | lib/legacy.js | lib/legacy.js | var ElementType = require("domelementtype");
var isTag = exports.isTag = ElementType.isTag;
exports.testElement = function(options, element){
for(var key in options){
if(!options.hasOwnProperty(key));
else if(key === "tag_name"){
if(!isTag(element) || !options.tag_name(element.name)){
return false;
}
... | JavaScript | 0.000724 | @@ -1167,16 +1167,71 @@
%5Bhref%5D;%0A
+%09%09%09if(nsList == null && elem.ns != null) return false;%0A
%09%09%09var i
|
c4b7f1d1627683875ad98b82d04ec67c4027266a | Update loki-storage.js | src/provider/loki-storage.js | src/provider/loki-storage.js | var WinJS = require('winjs'),
base = require('./base'),
ioc = require('../ioc'),
log = require("../log");
var _constructor = function(options) {
base.call(this, arguments);
this._lokiStorageKey = "-lokiStorage.json";
this._storageProvider = ioc.getProvider("localStorage");
};
var instanceMembers = {
loa... | JavaScript | 0 | @@ -353,36 +353,35 @@
back) %7B%0A log.
-info
+log
(%22LokiStorage:lo
@@ -976,12 +976,11 @@
log.
-info
+log
(%22Lo
|
000705f6e8c90c6752fbb07ea5da287e010eec0d | fix child data access | lib/mailer.js | lib/mailer.js | 'use strict';
// --- Dependencies ---
var debug = require('debug')('arkivo:mailer');
var assert = require('assert');
var slice = Array.prototype.slice;
var properties = Object.defineProperties;
var config = require('arkivo/lib/config');
var common = require('arkivo/lib/common');
var extend = common.ext... | JavaScript | 0.000001 | @@ -342,16 +342,44 @@
mon.md5;
+%0Avar base64 = common.base64;
%0A%0Avar B
@@ -1842,22 +1842,26 @@
+'X-
Mailer
+'
: this.n
@@ -2103,24 +2103,30 @@
ction (error
+, info
) %7B%0A if
@@ -2156,16 +2156,71 @@
error);%0A
+%0A // Todo: check mail was delivered to recipient%0A%0A
re
@@ -2225,... |
7431bfd58c9e911ee56c602f9ad7ac2c12cfa335 | changing to geo_lat_lon | lib/models.js | lib/models.js | "use strict"
var puree = require('../index'),
glob = require("glob"),
debug = require('debug')('koala-puree:models'),
waterline = require('waterline'),
fdbsql = require("sails-fdbsql");
var DEFAULTCONFIG = {
"base": "app/model/",
adapters: {
'sails-fdbsql': fdbsql
},
connections: {
fdbsql: {
adapter: 'sa... | JavaScript | 0.999874 | @@ -3074,15 +3074,11 @@
= %60
-z_order
+geo
_lat
|
56dd84e46a79d3ff851576b63973d1395914c553 | remove [WARNING] and [ERROR] | lib/statis.js | lib/statis.js | var http = require('http')
var socket = require('net')
var mysql = require('mysql')
var events = require('events');
var eventEmitter = new events.EventEmitter();
module.id = 'statis'
var Statis = {
// events: eventEmitter,
notify: function(message)
{
eventEmitter.emit('result', message)
// Statis.events.emi... | JavaScript | 0.000024 | @@ -600,24 +600,16 @@
abel + %22
- %5BERROR%5D
Status
@@ -1892,32 +1892,24 @@
de_label + %22
- %5BERROR%5D
%22 + err.mes
|
33450b00dbcc282df35a38a5b17aa9f98e71c8af | allow implementers to provide highWaterMark option | lib/stream.js | lib/stream.js | var util = require('util');
var async = require('async');
var Transform = require('readable-stream').Transform;
/**
* @param {Object} options
* @param {Number} [options.concurrency]
* @constructor
*/
function ParallelWriteStream(options) {
options = options || {};
this._concurrency = typeof options.concurrency ... | JavaScript | 0 | @@ -430,16 +430,41 @@
erMark =
+ options.highWaterMark %7C%7C
this._c
|
dea8a4ab090ac2395314ee12ef93604ecb2063dd | add blog link to nav | packages/vx-demo/components/nav.js | packages/vx-demo/components/nav.js | import Link from 'next/link';
import GithubButton from 'react-github-button';
export default () => (
<div className='nav'>
<div className='nav-inner'>
<Link href="/">
<div className="logo" />
</Link>
<ul>
<Item href="/">Home</Item>
<Item href="/docs">Docs</Item>
... | JavaScript | 0 | @@ -346,24 +346,84 @@
lery%3C/Item%3E%0A
+ %3CItem href=%22https://medium.com/vx-code%22%3EBlog%3C/Item%3E%0A
%3C/ul%3E%0A
|
a19154bc3a74bd1450e199c5bc49365d0f63cfc8 | copy typings to lib #466 | packages/web/scripts/copy-types.js | packages/web/scripts/copy-types.js | const path = require('path');
const fse = require('fs-extra'); // eslint-disable-line
const glob = require('glob'); // eslint-disable-line
function typescriptCopy(from, to) {
const files = glob.sync('**/*.d.ts', { cwd: from });
const cmds = files.map(file =>
fse.copy(path.resolve(from, file), path.resolve(to, file... | JavaScript | 0 | @@ -204,10 +204,8 @@
*/*.
-d.
ts',
|
e720ee05045e715b84d1edcad6dea4f9b74703f8 | Call google analytics event logger | src/hook/controller.js | src/hook/controller.js | /* eslint camelcase: 0 */
const { get, assign } = require('lodash')
const {
accessTokenForInstallation,
branchHasFixup,
createCommitStatus
} = require('../github')
const { log } = require('../logging')
/* POST Github hook
* Accepts a webhook call from Github details a Git Push.
* Analyses the push and sets a... | JavaScript | 0 | @@ -176,16 +176,26 @@
st %7B log
+, logEvent
%7D = req
@@ -1903,24 +1903,68 @@
nd' %7D)%0A%0A
+await createCommitStatus(status)%0A%0A await
log(%7B%0A
@@ -2120,33 +2120,29 @@
ait
-createCommitStatus
+logEvent
(status
+.state
)%0A
|
fae0d8889e4abddca8d91695440a12b3322f5030 | Fix get group permissions in authorize | src/hooks/authorize.js | src/hooks/authorize.js | import { Forbidden } from 'feathers-errors';
import fp from 'mostly-func';
import { AceBuilder, Aces, toMongoQuery } from 'playing-permissions';
import { getHookDataAsArray } from '../helpers';
function getPermissions(user) {
if (user) {
const groupPermissions = fp.flatMap(fp.path(['group', 'permissions']), user... | JavaScript | 0 | @@ -281,17 +281,23 @@
(fp.path
-(
+Or(%5B%5D,
%5B'group'
@@ -2256,64 +2256,283 @@
-params.query.$limit = 0; // TODO skip the mongoose query
+context.result = %7B%0A message: 'No data found for your account permissions',%0A metadata: %7B%0A total: 0,%0A limit: context.par... |
fc33aef8241cdb1e19dc9ea66c78ed812ccdde42 | Allow calling all master methods from worker | lib/worker.js | lib/worker.js |
/*!
* Cluster - Worker
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, spawn = require('child_process').spawn
, binding = process.binding('net')
, utils = require('./utils')
, net = require('net');
... | JavaScript | 0.997724 | @@ -1212,24 +1212,132 @@
arguments);%0A
+ // Allow calling master methods that don't take worker as first argument%0A if (args%5B0%5D !== false) %7B%0A
args.uns
@@ -1351,16 +1351,22 @@
lf.id);%0A
+ %7D%0A
retu
|
5f1ec2cfe856b505c38fdaa655cef4cdf41242d2 | make the compiler respect the NODE_PATH environment variable | compiler.js | compiler.js | var fs = require('fs'),
path = require('path'),
util = require('./lib/util')
module.exports = {
compile: compileFile,
compileHTML: compileHTMLFile,
compileCode: compileCode,
dontAddClosureForModule: dontAddClosureForModule,
dontIncludeModule: dontIncludeModule,
addPath: addPath,
addFile: addFile,
addReplacem... | JavaScript | 0.000003 | @@ -3077,24 +3077,74 @@
urn code%0A%7D%0A%0A
+var _nodePaths = process.env.NODE_PATH.split(':')%0A
var _pathnam
@@ -3197,17 +3197,16 @@
%5B'%22%5D%5C)/%0A
-%0A
var _rep
@@ -3498,19 +3498,19 @@
%7B%0A%09%09var
-raw
+sub
ModulePa
@@ -3518,135 +3518,65 @@
h =
-requireStatement.match(_pathnameGroupingRegex)%5B1%5D... |
9ade886fc2644829ba95c4d8a01f54d1a9e4a458 | Make link to webpack context explanation permanent | compiler.js | compiler.js | /* eslint-disable prefer-arrow-callback, func-names, class-methods-use-this */
import loader from 'graphql-tag/loader';
export default class GraphQLCompiler {
processFilesForTarget(files) {
// Fake webpack context
// @see https://github.com/apollographql/graphql-tag/blob/master/loader.js#L43
const contex... | JavaScript | 0 | @@ -280,14 +280,48 @@
lob/
-master
+57a258713acecde5ebef0c5771a975d6446703c7
/loa
|
d8646e8fb70b4b87f7ed36e9de09330e07c395ae | Use disableViewBox option | src/react/components/Line.js | src/react/components/Line.js | import LeaderLine from 'leader-line';
import React from 'react';
function shimPointAnchor (point) {
return point instanceof Element
? LeaderLine.pointAnchor( point, { x: 0, y: 0 } )
: LeaderLine.pointAnchor( document.body, point )
;
}
export default class Line extends React.Component {
componentWillUn... | JavaScript | 0.000001 | @@ -784,16 +784,44 @@
: true,%0A
+ disableViewBox: true,%0A
%7D);%0A
@@ -1523,21 +1523,16 @@
osition(
-false
);%0A %7D
|
ca52f84ee58dc21855ac7033bf553795d7c488a7 | Use window.addEventListener() to support multiple keydown listeners | assets/crx/js/embed.js | assets/crx/js/embed.js | // Get webview element
var webview = document.getElementById('webview');
// Get find box elements
var findBox = document.getElementById('find-box');
var findInput = document.getElementById('find-text');
// Get dialog box elements
var dialogBox = document.getElementById("dialog-box");
var dialogOk = document.getElemen... | JavaScript | 0.000001 | @@ -616,19 +616,35 @@
dow.
-on
+addEventListener('
keydown
- =
+',
fun
@@ -2759,16 +2759,17 @@
%0A %7D%0A%7D
+)
;%0A%0A// Li
|
7d09f05c966b32a06b4704034c63376e69361003 | add resolve alias for assets and components | template/build/webpack.base.conf.js | template/build/webpack.base.conf.js | var path = require('path')
var config = require('../config')
var cssLoaders = require('./css-loaders')
var projectRoot = path.resolve(__dirname, '../')
module.exports = {
entry: {
app: './src/main.js'
},
output: {
path: config.build.assetsRoot,
publicPath: config.build.assetsPublicPath,
filename:... | JavaScript | 0 | @@ -497,16 +497,140 @@
../src')
+,%0A 'assets': path.resolve(__dirname, '../src/assets'),%0A 'components': path.resolve(__dirname, '../src/components')
%0A %7D%0A
|
ff56bf3f3fe1541ada0e7105cad1bdae1d6dc20c | Revert "Move section creation logic to Section instead of inside Collapse constructor" | src/jquery.collapse.js | src/jquery.collapse.js | /*
* Collapse plugin for jQuery
* --
* source: http://github.com/danielstocks/jQuery-Collapse/
* site: http://webcloud.se/jQuery-Collapse
*
* @author Daniel Stocks (http://webcloud.se)
* Copyright 2013, Daniel Stocks
* Released under the MIT, BSD, and GPL Licenses.
*/
(function($) {
// Constructor
functi... | JavaScript | 0 | @@ -886,57 +886,497 @@
-_this.sections.push(new Section($(this), _this));
+var section = new Section($(this), _this);%0A _this.sections.push(section);%0A%0A // Check current state of section%0A var state = _this.states%5Bsection._index()%5D;%0A if(state === 0) %7B%0A section.$summary.re... |
b0e586c9e5f28df9b6e856e748c17bd812ede17b | Use include for es6-promise polyfill (#1027) | src/ie-compat/ie.js | src/ie-compat/ie.js | /* eslint-disable no-extend-native */
require('es6-promise').polyfill()
if (!Number.isInteger) {
Number.isInteger = function (value) {
return typeof value === 'number' &&
isFinite(value) &&
Math.floor(value) === value
}
}
(function (arr) {
arr.forEach(function (item) {
if (item.hasOwnProper... | JavaScript | 0 | @@ -36,16 +36,36 @@
*/%0A%0A
-require(
+import * as es6Promise from
'es6
@@ -73,17 +73,28 @@
promise'
-)
+%0A%0Aes6Promise
.polyfil
|
e757c027294cf84ce51f56e5224fc02de4c1604c | Revert "make Dom accessible in Context for plugins" | src/js/base/Context.js | src/js/base/Context.js | define([
'jquery',
'summernote/base/core/func',
'summernote/base/core/list',
'summernote/base/core/dom'
], function ($, func, list, dom) {
/**
* @param {jQuery} $note
* @param {Object} options
* @return {Context}
*/
var Context = function ($note, options) {
var self = this;
var ui = $.s... | JavaScript | 0 | @@ -428,28 +428,8 @@
ons;
-%0A this.dom = dom;
%0A%0A
|
d4e2d545388d58b5ede62a9f8b07ca4b9b1bb576 | improve docs | src/js/common/index.js | src/js/common/index.js | /****************************************************
*
* All the code in this file will be bundled into a
* 'common.js' file. By separating code that won't
* change much as you push updates into production,
* users' browsers can keep the common.js bundle
* cached (as long as no changes were made to it),
* allow... | JavaScript | 0.000004 | @@ -512,72 +512,32 @@
t %7B
-$, throttle %7D = libs%0A//%0Alibs.$ = libs.jQuery = require('jquery')
+sanitizeHTML %7D = libs%0A//
%0Alib
|
c21c28800fcee74c0c1ce341aa4316c2dd9a927e | add contextmenu on input field | src/js/pages/Layout.js | src/js/pages/Layout.js |
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { ipcRenderer } from 'electron';
import Loader from 'components/Loader';
import Snackbar from 'components/Snackbar';
import Header from './Header';
import Footer from './Footer';
import Login from './Login';
import UserInf... | JavaScript | 0.000001 | @@ -103,16 +103,24 @@
Renderer
+, remote
%7D from
@@ -794,16 +794,1164 @@
onent %7B%0A
+ componentDidMount() %7B%0A var templates = %5B%0A %7B%0A label: 'Undo',%0A role: 'undo',%0A %7D, %7B%0A label: 'Redo',%0A role: 'redo'... |
682cd20a3fcf2560dd9f5cd901684176ba826d78 | Remove TITLE from interpolated strings | src/languages/swift.js | src/languages/swift.js | /*
Language: Swift
Author: Chris Eidhof <chris@eidhof.nl>
*/
function(hljs) {
var SWIFT_KEYWORDS =
'class deinit enum extension func import init let protocol static ' +
'struct subscript typealias var break case continue default do ' +
'else fallthrough if in for return switch where while as dynamicType... | JavaScript | 0.000129 | @@ -1110,25 +1110,8 @@
ODE,
- hljs.TITLE_MODE,
QUO
|
98ca05e0670bf499056f69e5ee9e9e479199bf23 | fix lint error | src/adapters/sequelize.js | src/adapters/sequelize.js | import _ from 'lodash'
import Promise from 'bluebird'
import util from 'util'
export const ID_SEPARATOR = '--'
export const PATH_SEPARATOR = '.'
export const VALUE_SEPARATOR = ','
export function idQuery(model, id) {
const fields = primaryKeys(model)
const values = id.split(ID_SEPARATOR)
if (fields.length !== ... | JavaScript | 0.000164 | @@ -1896,17 +1896,16 @@
break
-;
%0A %7D%0A
|
6f9cd7c548b09971f7830bec637bd36551b61352 | Allow custom measure assignment function. | src/aggregate/measures.js | src/aggregate/measures.js | var util = require('../util');
var stats = require('../stats');
var countmap = require('./countmap');
var types = {
"count": measure({
name: "count",
set: "this.cell.num"
}),
"nulls": measure({
name: "nulls",
set: "this.cell.num - this.cell.valid"
}),
"valid": measure({
name: "valid",
... | JavaScript | 0 | @@ -3442,21 +3442,20 @@
nction c
-ompil
+reat
e(agg, a
@@ -3461,16 +3461,25 @@
accessor
+, mutator
) %7B%0A va
@@ -4096,16 +4096,27 @@
assign =
+ mutator %7C%7C
assign;
@@ -4663,13 +4663,12 @@
= c
-ompil
+reat
e;%0Am
|
91db74b669d4e815b8b05fea58ddb4a3d8000009 | fix exception if this.options is null | aurelia-bootstrap-tagsinput/src/abp-tags-input.js | aurelia-bootstrap-tagsinput/src/abp-tags-input.js | import {inject, bindable, bindingMode, DOM} from 'aurelia-framework';
import $ from 'jquery';
import 'bootstrap-tagsinput/dist/bootstrap-tagsinput';
import {globalExtraOptions, globalPickerOptions} from './picker-global-options';
@inject(Element)
export class AbpTagsInputCustomElement {
@bindable({defaultBindingMode... | JavaScript | 0.998306 | @@ -1289,22 +1289,23 @@
if (!
-this.o
+pickerO
ptions.t
@@ -1866,22 +1866,23 @@
ptions:
-this.o
+pickerO
ptions,%0A
|
218c58f002b92d3b6d5a49b4f22ea2ccc9b43cd2 | Remove unneeded code | redux/src/main/renderer/registries/electron.js | redux/src/main/renderer/registries/electron.js | import { remote } from 'electron'
export const twitterCredential = remote.getGlobal('twitterCredential');remote.getGlobal('twitterCredential');
export const credential = remote.getGlobal('credential');
| JavaScript | 0.000018 | @@ -103,46 +103,8 @@
l');
-remote.getGlobal('twitterCredential');
%0Aexp
|
cdf64fb60bdd79545eb8056d3e83cee47659be0e | Remove unused dependencies | backend/authenticatedroutes/gitHubProxyHelpers.js | backend/authenticatedroutes/gitHubProxyHelpers.js | const config = require('../../config');
const https = require('https');
const url = require('url');
const request = require('request');
const GITHUB_API_ROOT = 'https://api.github.com';
// const getlocalAppRootUrl = request => {
// return process.env.NODE_ENV == 'production'
// ? url.format({
// protoco... | JavaScript | 0.000002 | @@ -43,2296 +43,779 @@
nst
-https = require('https');%0Aconst url = require('url');%0Aconst request = require('request');%0A%0Aconst GITHUB_API_ROOT = 'https://api.github.com';%0A%0A// const getlocalAppRootUrl = request =%3E %7B%0A// return process.env.NODE_ENV == 'production'%0A// ? url.format(%7B%0A// ... |
8a7091e4f0af12ec178218e177ddb657eb6daea7 | Add missing space | projects/bugpack-registry/js/src/BugPackKey.js | projects/bugpack-registry/js/src/BugPackKey.js | //-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@Package('bugpack')
//@Export('BugPackKey')
//@Require('Class')
//@Require('Obj')
//--------------------------------------------------... | JavaScript | 0.999999 | @@ -966,16 +966,17 @@
gPackKey
+
= Class.
|
b2d1c7194bab2d2a2f22e5a56d3526a11861bd6e | update time | assets/js/countdown.js | assets/js/countdown.js | var ringer = {
countdown_to: "6/13/2015",
rings: {
'DAYS': {
s: 86400000, // mseconds in a day,
max: 365
},
'HOURS': {
s: 3600000, // mseconds per hour,
max: 24
},
'MINUTES': {
s: 60000, // mseconds per minute
max: 60
},
'SECONDS': {
s: 1000,
... | JavaScript | 0 | @@ -29,12 +29,13 @@
o: %22
-6/13
+10/17
/201
|
6e8ab7b4deb7bee289434418db7c342e3ad1b270 | Fix night mode | assets/js/dark-mode.js | assets/js/dark-mode.js | (function () {
const themeStorage = new Proxy(localStorage, {
get: function (target, prop) {
return function (...args) {
return target[prop + "Item"]("dark-mode", ...args);
};
},
});
const skin_dir = "/assets/css/skins/";
const themes = {
dark: "dark.css",
light: "default.css... | JavaScript | 0.000065 | @@ -420,16 +420,21 @@
Dark.add
+Event
Listener
@@ -434,16 +434,26 @@
istener(
+'change',
function
@@ -455,24 +455,57 @@
ction (e) %7B%0A
+ if (!themeStorage.get()) %7B%0A
changeTh
@@ -527,16 +527,22 @@
false);%0A
+ %7D%0A
%7D);%0A%0A
|
c04220c317e9917f572bb012029541cfb824b1d0 | _ is an allowed first character of mqlkeys | webapp/WEB-INF/js/mjt/src/freebase/mqlkey.js | webapp/WEB-INF/js/mjt/src/freebase/mqlkey.js |
(function (mjt) {
/**
*
* routines to quote and unquote javascript strings as valid mql keys
*
*/
var mqlkey_start = 'A-Za-z0-9';
var mqlkey_char = 'A-Za-z0-9_-';
var MQLKEY_VALID = new RegExp('^[' + mqlkey_start + '][' + mqlkey_char + ']*$');
var MQLKEY_CHAR_MUSTQUOTE = new RegExp('([^' + mqlkey_char + '])... | JavaScript | 0.998455 | @@ -784,30 +784,8 @@
'-'
- %7C%7C x.charAt(0) == '_'
) %7B%0A
|
75f4f50ddb3cfd052e170bc516aca34ae93e5266 | set default date format to ISO | webapps/client/scripts/camunda-cockpit-ui.js | webapps/client/scripts/camunda-cockpit-ui.js | define('camunda-cockpit-ui', [
'./directives/main',
'./filters/main',
'./pages/main',
'./resources/main',
'./services/main',
'camunda-commons-ui',
'camunda-bpm-sdk-js',
'ngDefine'
], function () {
'use strict';
var APP_NAME = 'cam.cockpit';
var pluginPackages = window.PLUGIN_PACKAGES || [];
var... | JavaScript | 0 | @@ -2320,24 +2320,469 @@
leConfig);%0A%0A
+ appNgModule.config(%5B%0A 'camDateFormatProvider',%0A function(%0A camDateFormatProvider%0A ) %7B%0A var formats = %7B%0A monthName: 'MMMM',%0A day: 'DD',%0A abbr: 'lll',%0A normal: 'YYYY-MM-DD%5BT%5DHH:mm:SS', // yyyy-MM-d... |
1687c7e2744a025ad461e69fa3c2c2ddbd7d55eb | Fix minor bugs | src/visits.js | src/visits.js | import url from "url";
import Clipboard from "clipboard";
import "whatwg-fetch";
import "./common.css";
import "./visits.css";
function hookCopyPaste(element) {
new Clipboard(element);
element.disabled = false;
}
function timeout(delay) {
return new Promise(resolve => {
setTimeout(resolve, delay)... | JavaScript | 0.000007 | @@ -1054,24 +1054,115 @@
(%22td%22);%0A
+if (text && text.trim()) %7B%0A element.textContent = text.trim();%0A %7D else %7B%0A
element.text
@@ -1174,23 +1174,8 @@
nt =
- text.trim() %7C%7C
%22%5Cu
@@ -1181,16 +1181,22 @@
u00a0%22;%0A
+ %7D%0A
row.
|
60bb65402520984d51abcd05991c1c953fa194f7 | Fix typo in comment | jquery.still-alive.js | jquery.still-alive.js | /*!
* StillAlive v1.0
* http://github.com/sidewaysmilk/still-alive
*
* Copyright 2011, Justin Force
* Licensed under the 3-clause BSD License
*/
/*jslint browser: true, indent: 2 */
/*global jQuery */
(function ($) {
'use strict';
// default values for optional arguments
var DEFAULT_WAKEEVENTS = 'mousemove mo... | JavaScript | 0.000917 | @@ -118,21 +118,21 @@
the
+BSD
3-
-c
+C
lause
-BSD
Lice
|
66580f6c6f269e25e6bd9cd9379419a73277a9af | add beforeSend function | jquery.typesuggest.js | jquery.typesuggest.js | (function($) {
function TypeSuggest(el, data, options, callback){
var defaults = {
min_characters: 2,
display_key: undefined,
search_key: undefined,
ignored: [
' ',
',',
'.'
],
ajax: false,
url: '',
param: 'q'
};
this.config = $.ext... | JavaScript | 0.000001 | @@ -281,16 +281,45 @@
ram: 'q'
+,%0A beforeSend: undefined
%0A %7D;%0A
@@ -2398,16 +2398,126 @@
.ajax)%7B%0A
+ if(self.config.beforeSend)%7B%0A val = self.config.beforeSend(val);%0A %7D%0A%0A
@@ -2585,16 +2585,18 @@
=%22 + val
+;%0A
%0A
|
de10dff7d3e7e0c0dbcbabb507bbc8e4b71adb7e | rename parentContainerTagName --> containerTagName, https://github.com/phetsims/scenery/issues/748 | js/AquaRadioButton.js | js/AquaRadioButton.js | // Copyright 2013-2017, University of Colorado Boulder
/**
* Radio button with a pseudo-Aqua (Mac OS) look. See "options" comment for list of options.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
define( function( require ) {
'use strict';
// modules
var AquaRadioButtonIO = require( 'SUN/AquaRadioButtonIO'... | JavaScript | 0 | @@ -1709,15 +1709,9 @@
-parentC
+c
onta
|
827cc6c7bf50b3b8a7c159f5e478e443d4d7b830 | drop old comment | js/chart/ChartView.js | js/chart/ChartView.js | var React = require('react');
import PureComponent from '../PureComponent';
import {showWizard} from './utils';
var _ = require('../underscore_ext').default;
var isBinary = (codes, data) => !codes && data &&
_.flatten(data).every(c => _.indexOf([0, 1], c) !== -1 || c == null);
// XXX should we cache this for larger ... | JavaScript | 0 | @@ -1187,117 +1187,8 @@
rt;%0A
-%09%09// XXX Why do we pick chart vs. wizard here, and also in the wizard?%0A%09%09// Also see note in Chart::render()%0A
%09%09re
|
a991f21aa472d597ec1200fbf6ea07954ef3dd13 | Make method to get the key value of module-data | js/components/body.js | js/components/body.js | (function(app) {
'use strict';
var helper = app.helper || require('../helper.js');
var dom = app.dom || require('../dom.js');
var Component = app.Component || require('./component.js');
var Content = app.Content || require('./content.js');
var Sidebar = app.Sidebar || require('./sidebar.js');
var Module... | JavaScript | 0.000007 | @@ -562,24 +562,118 @@
%7C %5B%5D;%0A %7D;%0A%0A
+ ModuleData.prototype.key = function() %7B%0A return this.packageName + '/' + this.src;%0A %7D;%0A%0A
var Module
@@ -1065,36 +1065,16 @@
is.data%5B
-packageName + '/' +
moduleDa
@@ -1076,19 +1076,21 @@
uleData.
-src
+key()
%5D = modu
|
56ad907a3766a40c3daf2170882b19ddeeab06e7 | Refactor code for scrolling of list | js/components/list.js | js/components/list.js | (function(app) {
'use strict';
var IScroll = require('iscroll');
var dom = app.dom || require('./dom.js');
var Location = app.Location || require('../models/location.js');
var List = function(el, props) {
this.el = el;
this.scroll = null;
this._locations = props.locations;
this._selectedLoca... | JavaScript | 0.000001 | @@ -232,32 +232,8 @@
el;%0A
- this.scroll = null;%0A
@@ -351,16 +351,42 @@
s = %7B%7D;%0A
+ this._iScroll = null;%0A
%7D;%0A%0A
@@ -1497,25 +1497,27 @@
if (this.
-s
+_iS
croll) %7B%0A
@@ -1522,25 +1522,27 @@
this.
-s
+_iS
croll.destro
@@ -1554,17 +1554,16 @@
%7D%0A
-%0A
... |
81b92a1eab0bd5ac4c43493ea9f27043e2d49c53 | Update index.js | test/index.js | test/index.js | import test from 'ava';
import module, {boilerplate} from '../dist';
test('should return default', t => {
const moduleResponse = module();
t.is(moduleResponse, "default");
});
test('should return boilerplate', t => {
const boilerplateResponse = boilerplate();
t.is(boilerplateResponse, "boilerplate");
});
| JavaScript | 0.000002 | @@ -4,74 +4,278 @@
ort
-test from 'ava';%0Aimport module, %7Bboilerplate%7D from '../dist';%0A%0Ates
+chai, %7Bexpect%7D from 'chai';%0Aimport chaiAsPromised from 'chai-as-promised';%0Aimport %7B it, before, after, beforeEach, afterEach %7D from 'arrow-mocha/es5'%0Aimport module, %7Bboilerplate%7D from '../dist';%0A%... |
8fcd51659d861a783f41e779bbb8944d9b9a5e44 | set timer back to 60 sec. | js/countdown_timer.js | js/countdown_timer.js |
/* config */
// seconds to countdown from
var countdownSeconds = 15;
// countdown
function Counter(options) {
var timer;
var instance = this;
var seconds = options.seconds || 10;
var onUpdateStatus = options.onUpdateStatus || function() {};
var onCounterEnd = options.onCounterEnd || function() {}... | JavaScript | 0 | @@ -63,10 +63,10 @@
s =
-15
+60
;%0A%0A%0A
|
762c796c6851ca2075b5afbae24bfa7e5b66687a | Fix index test | test/index.js | test/index.js | 'use strict';
var isFunction = require('es5-ext/lib/Function/is-function')
, convert = require('es5-ext/lib/String/prototype/hyphen-to-camel')
, path = require('path')
, readdir = require('fs').readdir
, indexTest = require('tad/lib/utils/index-test')
, dir = path.dirname(__dirname);
module.ex... | JavaScript | 0.00001 | @@ -376,16 +376,39 @@
n (o) %7B%0A
+%09%09delete o.assimilate;%0A
%09%09delete
|
9cd681e5f8109b8db0b4e502819bb8ed2e07ab77 | revert back time changes | modules/team-data-parser.js | modules/team-data-parser.js | const R = require('ramda');
const removeUserNameAndLevelTime = (rawString) => R.replace(/\(.*?\)/g, ',', rawString);
const parseLevelTime = (str) => R.pipe(
R.split('.'),
R.dropLast(1),
R.insert(3, 'T'),
R.join('')
)(str);
const getCorrectTimeFromString = (type, strArray) => R.pipe(
R.indexOf(typ... | JavaScript | 0.000002 | @@ -167,31 +167,13 @@
plit
-('.'),%0A R.dropLas
+A
t(1
+0
),%0A
@@ -188,9 +188,9 @@
ert(
-3
+1
, 'T
|
3d191615fc74dd359cf219d19eefc8294657929a | set initial cursor position in html body | js/editors/editors.js | js/editors/editors.js | //= require "codemirror"
//= require "mobileCodeMirror"
//= require "library"
//= require "unsaved"
var focusPanel = 'javascript';
var editors = {};
window.editors = editors;
editors.html = CodeMirror.fromTextArea(document.getElementById('html'), {
parserfile: [],
tabMode: 'shift',
mode: 'text/html',
onChange... | JavaScript | 0.000001 | @@ -716,24 +716,60 @@
pt.ready) %7B%0A
+%0A editors.html.setCursor(7, 8);%0A%0A
clearInt
|
e2b4b99ab4a7601c3e6db635f15ed548c0085387 | work in IE8 | csv-line.js | csv-line.js | module.exports = function (options) {
var separator = options && options.separator ? options.separator : ','
, escapeNewlines = options && options.escapeNewlines === true
, regexp = new RegExp('[' + separator + '\r\n"]')
, escape = function (cell) {
if (typeof(cell) === 'string') {
if (... | JavaScript | 0 | @@ -1,8 +1,196 @@
+var map = function (input, fn) %7B%0A var result = Array(input.length)%0A%0A for(var i = 0; i %3C input.length; ++i) %7B%0A result%5Bi%5D = fn(input%5Bi%5D)%0A %7D%0A%0A return result%0A %7D%0A%0A
module.e
@@ -742,18 +742,19 @@
urn
+map(
array
-.map(
+,
esca
|
7bf6ab3f8f2eb146b09c6506cd0007946425630e | Fix for thumbnail view loading multiple pages | js/infinite-scroll.js | js/infinite-scroll.js | /* global jQuery:true */
/*
* Fuel UX Infinite Scroll
* https://github.com/ExactTarget/fuelux
*
* Copyright (c) 2014 ExactTarget
* Licensed under the BSD New license.
*/
// -- BEGIN UMD WRAPPER PREFACE --
// For more information on UMD visit:
// https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(functi... | JavaScript | 0 | @@ -2474,16 +2474,43 @@
op === 0
+ %7C%7C height === scrollHeight
) %7B%0A%09%09%09%09
|
3cb1cfc098c9e009970f3e26ce54fbf18ef8ba07 | Remove unused space | js/live-validation.js | js/live-validation.js | $('document').ready(function(){
// Listen to the username input field
$('#username').blur( checkUsername );
});
function checkUsername() {
// Obtain the username
var username = $(this).val();
// Leave if the username is blank
if( username.length < 5 ) {
$('#username-message').html('Needs to be at least 5 c... | JavaScript | 0.000877 | @@ -686,17 +686,9 @@
%7D%0A%09%7D);%0A%0A
-%0A%0A%0A%0A%0A%0A%0A%0A
%7D
|
004c42ee893476b3b07f5e65cb29f7b85dc08db0 | fix start job types| | js/pages/start_job.js | js/pages/start_job.js | var onPageLoad = require('../shared/pageload');
var FLImage = require('../models/image');
var Thumbnail = require('../views/thumbnail');
var Executable = require('../views/executable');
$(function(){
onPageLoad('start_job');
var gallery = $('#gallery');
api.getImages(function(data) {
if (data.res... | JavaScript | 0.000001 | @@ -1327,40 +1327,136 @@
e =
-1;%0A var images = %5B1, 2, 3
+'4dafc690d01355d335169c52609bf08e';%0A var images = %5B'b3639a00751454b1fa0f0cc39fb5992c', '11d70a64fee30a8dacb58f7bdfcf25f3'
%5D;%0A%0A
|
82f0802a759cc54431ddf18c9e494fbedaa03256 | change font sizes on comments | src/manager/components/CommentList/style.js | src/manager/components/CommentList/style.js | const commentItem = {
display: 'flex',
paddingBottom: '5px',
WebkitFontSmoothing: 'antialiased',
transition: 'opacity 0.5s',
}
export default {
wrapper: {
flex: 1,
overflow: 'auto',
padding: '7px 15px',
},
commentItem: {
...commentItem,
},
commentItemloading: {
...commentItem,
... | JavaScript | 0 | @@ -590,17 +590,17 @@
tSize: 1
-2
+3
,%0A li
@@ -837,33 +837,33 @@
%0A fontSize: 1
-1
+3
,%0A lineHeight
@@ -861,21 +861,23 @@
ineHeight: 1
+.7
,%0A %7D,%0A%7D%0A
|
2652b2cb886ef87be2115f63ab9847e35bddd79d | Set lastPopup-Date only if readed | src/js/adminInfo.js | src/js/adminInfo.js | /* global socket, systemLang */
function InfoAdapter(main) {
var that = this;
this.main = main;
this.checkVersion = function (smaller, bigger) {
smaller = smaller.split('.');
bigger = bigger.split('.');
smaller[0] = parseInt(smaller[0], 10);
bigger[0] = parseInt(bigger[0],... | JavaScript | 0 | @@ -2304,32 +2304,71 @@
or%22);%0A %7D%0A
+ if (messages.length %3E 0) %7B%0A
that.mai
@@ -2455,24 +2455,34 @@
ck: true%7D);%0A
+ %7D%0A
%7D;%0A%0A
|
bf3691071ddce26f8f77fa4bf06483d087574149 | Update functions.js | src/js/functions.js | src/js/functions.js | // button handler
document.getElementById("searchButton").addEventListener("click", buttonHandler);
// button handler
function buttonHandler() {
var acronym = document.getElementById("acronymInput").value;
var definition = lookupAcronym(acronym);
console.log("The meaning of " + acronym + " is " + definition)... | JavaScript | 0.000002 | @@ -1,27 +1,9 @@
-// button handler%0A
document
@@ -359,17 +359,16 @@
ion;%0A%7D%0A%0A
-%0A
// func
@@ -435,16 +435,34 @@
onym) %7B%0A
+%09var def = %22...%22;%0A
%09if (acr
@@ -471,24 +471,25 @@
ym) %7B%0A%09
+%09
var xmlhttp
@@ -517,16 +517,17 @@
);%0A%09
+%09
var url
@@ -620,24 +620,25 @@
N%... |
81844346138041e31542104299b398b97345efc2 | Use let instead of var | src/js/utils/app.js | src/js/utils/app.js | import nedb from 'nedb';
import fs from 'fs';
import path from 'path';
import teeny from 'teeny-conf';
import AppActions from '../actions/AppActions';
const remote = electron.remote;
const app = remote.app;
const screen = remote.screen;
/*
|-------------------------------------------------------------... | JavaScript | 0.000001 | @@ -424,19 +424,19 @@
---%0A*/%0A%0A
-var
+let
browser
@@ -503,19 +503,19 @@
dow();%0A%0A
-var
+let
pathUse
@@ -756,19 +756,19 @@
---%0A*/%0A%0A
-var
+let
conf =
@@ -1017,19 +1017,19 @@
---%0A*/%0A%0A
-var
+let
support
@@ -1426,19 +1426,19 @@
e music%0A
-var
+let
audio =
@@ -1452,19 +1452,19 @@
dio();%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.