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 |
|---|---|---|---|---|---|---|---|
dd7820ed84f2c7fe8dcd900073ee5533df2628f5 | fix typo with version | packages/inferno-scripts/scripts/init.js | packages/inferno-scripts/scripts/init.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var fs = r... | JavaScript | 0.00083 | @@ -2606,17 +2606,17 @@
ferno@1.
-0
+3
.0-beta1
|
b2bf96d1e14f5d9e15a93613cd3008d637ea0f14 | disable css minification | webpack.config.prod.js | webpack.config.prod.js | var webpack = require('webpack'),
path = require('path'),
ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = [
{
// Compiler ID
name: 'desktop',
// Production devtools
devtool: 'source-map',
// Define entry p... | JavaScript | 0.000001 | @@ -1568,12 +1568,22 @@
ader
+?-minimize
%22) %0A
-
@@ -1768,16 +1768,26 @@
s-loader
+?-minimize
!less-lo
@@ -1882,24 +1882,24 @@
/%5C.scss$/, %0A
-
@@ -1967,16 +1967,26 @@
s-loader
+?-minimize
!sass-lo
|
beb80ce987a9073f867589aad21f4c84d669159d | Assert that event target is a disposable | test/spec/ol/events/eventtarget.test.js | test/spec/ol/events/eventtarget.test.js | goog.provide('ol.test.events.EventTarget');
describe('ol.events.EventTarget', function() {
var called, events, eventTarget, spy1, spy2, spy3;
beforeEach(function() {
called = [];
events = [];
function spy(evt) {
called.push(this.id);
events.push(evt);
}
spy1 = spy.bind({id: 1});
... | JavaScript | 1 | @@ -558,32 +558,82 @@
s.EventTarget);%0A
+ expect(eventTarget).to.be.a(ol.Disposable);%0A
%7D);%0A it('
@@ -4521,16 +4521,47 @@
;%0A%7D);%0A%0A%0A
+goog.require('ol.Disposable');%0A
goog.req
|
f0926a8d177059aaa7710b56fcd8ff0dc4f8f56f | Switch from schedule to scheduleOnce | addon/components/ui-dropdown.js | addon/components/ui-dropdown.js | import Ember from 'ember';
import Base from '../mixins/base';
import DataAttributes from '../mixins/data-attributes';
import Item from './ui-dropdown-item';
export default Ember.Select.extend(Base, DataAttributes, {
classNames: ['ui', 'dropdown'],
module: 'dropdown',
tagName: 'div',
defaultTemplate: null,
o... | JavaScript | 0 | @@ -1480,16 +1480,20 @@
schedule
+Once
('afterR
|
f74f8404ddd732051a40bbbc90c9a8f037ef4ad5 | Fix false broken links (#1100) | test/website/test.js | test/website/test.js | 'use strict';
const blc = require('broken-link-checker');
const http = require('http');
const https = require('https');
const util = require('gulp-util');
const url = require('url');
const parse5 = require('parse5');
const Promise = require('pinkie');
const walk = require('dom-walk');
class Websi... | JavaScript | 0 | @@ -3826,16 +3826,38 @@
e: false
+, requestMethod: 'get'
%7D, %7B%0A
|
1845f216a6ffe4e97458237600ac5563b3a93552 | Allow Playlist.slug to be empty | src/repositories/sequelize/models/Playlist.js | src/repositories/sequelize/models/Playlist.js | 'use strict';
module.exports = function(sequelize, DataTypes) {
// Playlist should pretty much just have title and the author
// There will be a way to retrieve related MediaRefs for
// a given playlist.
const playlist = sequelize.define('playlist', {
id: {
type: DataTypes.UUID,
defaultValue:... | JavaScript | 0.000173 | @@ -425,61 +425,9 @@
true
-,%0A validation: %7B%0A notEmpty: true%0A %7D
%0A
+
@@ -565,19 +565,29 @@
be
-the same as
+able to be changed to
an
@@ -610,25 +610,104 @@
key
-, and vice versa.
+%0A // (unless it is the primary key for this clip);%0A // do we need a %22composite in... |
204d48dba743903b4b72e23a108e6a77ce4ccb02 | Add toggle false on click menu button | tests/actions/nav.js | tests/actions/nav.js | import { expect } from 'chai'
import types from '../../src/constants/actionTypes'
import { onClickMenuButton } from '../../src/actions/nav'
describe('actions/nav.js', () => {
it('should toggle sidebar menu when click on menu button', () => {
const isExpanded = false
expect(onClickMenuButton(isExpanded)... | JavaScript | 0.000001 | @@ -194,19 +194,268 @@
le s
-idebar menu
+tate %22true%22 when click on menu button', () =%3E %7B%0A const isExpanded = false %0A %0A expect(onClickMenuButton(isExpanded)).to.deep.equal(%7B%0A type: types.ON_CLICK_MENU_BUTTON,%0A isExpanded: ! isExpanded%0A %7D)%0A %7D)%0A %0A it('should toggl... |
8cd23ca4f661929c4545af7cdc79927c02f93301 | Validate logging settings (#13722) | tests/fast-integration/logging/index.js | tests/fast-integration/logging/index.js | const logging = require('./helpers');
const {lokiPortForward} = require('./client');
function loggingTests() {
const testStartTimestamp = new Date().toISOString();
describe('Logging Tests:', function() {
this.timeout(5 * 60 * 1000); // 5 min
this.slow(5 * 1000);
let cancelPortForward = null;
befo... | JavaScript | 0 | @@ -77,16 +77,63 @@
lient');
+%0Aconst %7BgetEnvOrDefault%7D = require('../utils');
%0A%0Afuncti
@@ -851,32 +851,195 @@
, async () =%3E %7B%0A
+ if ( getEnvOrDefault('EXECUTION_PROFILE', 'Default') == 'evaluation') %7B%0A console.log('Skipping PVC test due to evaluation profile');%0A %7D else %7B%0A... |
671db2df7f329ed0a23cd4d7f974cdc196e34e93 | Print a better message if assertion fails | tests/support/integration-assertions.js | tests/support/integration-assertions.js | /*global QUnit*/
import Emblem from '../../emblem';
export function compilesTo( emblem, handlebars, message ) {
var output = Emblem.compile(emblem);
if (!message) {
var maxLenth = 40;
var messageEmblem = emblem.replace(/\n/g, "\\n");
if (messageEmblem.length > maxLenth) {
messageEmblem = messageE... | JavaScript | 0.999999 | @@ -9,16 +9,55 @@
QUnit*/
+%0A%0Aimport %7B w %7D from '../support/utils';
%0Aimport
@@ -409,17 +409,67 @@
e =
-'Expected
+w(%0A 'compilesTo assertion failed:',%0A '%5CtEmblem:
%22'
@@ -492,22 +492,29 @@
+ '%22
- to compile to
+',%0A '%5CtExpected:
%22'
@@ -531,17 +531,60 @@
rs + '%22'
-;... |
97c1b9cd9c99e12eb8c8177ed080cdf4b88d1195 | Make test runner more robust in IE6-7 | tests/page-runner.js | tests/page-runner.js | (function(global) {
var result = global.result = {}
var currentPage, currentSuite
var isRunning, timeoutTimer
var startTime, endTime
var page
var publish = global.publish || function() {}
var consoleMode = location.search.indexOf('console') > 0
var container = document.getElementById('container')
v... | JavaScript | 0.000008 | @@ -253,16 +253,70 @@
le') %3E 0
+%0A var isIE67 = !document.documentElement.hasAttribute
%0A%0A var
@@ -1050,20 +1050,32 @@
'Pause'%0A
+%0A
+setTimeout(
testNext
@@ -1074,25 +1074,42 @@
testNextPage
-(
+, isIE67 ? 200 : 0
)%0A %7D%0A%0A fun
|
fa59050be01e66e295c7daf49d3c1c3f22b4a531 | Enforce exact version in cache | packages/pundle-core/src/cache.js | packages/pundle-core/src/cache.js | // @flow
import fs from 'sb-fs'
import path from 'path'
import lowdb from 'lowdb'
import mkdirp from 'mkdirp'
import debounce from 'lodash/debounce'
import FileAsync from 'lowdb/adapters/FileAsync'
import { getStringHash, getFileKey, type Context, type ImportResolved, type ImportTransformed } from 'pundle-api'
import... | JavaScript | 0 | @@ -354,71 +354,8 @@
n'%0A%0A
-const cacheVersion = version.split('.').slice(0, 2).join('.')%0A%0A
func
@@ -1462,22 +1462,8 @@
sion
-: cacheVersion
,%0A
@@ -1632,22 +1632,17 @@
e() !==
-cacheV
+v
ersion)
@@ -1746,14 +1746,9 @@
n',
-cacheV
+v
ersi
|
d2e0cd0baf15bba3eecb1bf81ad2807f0c46427b | NCL-4636 Set hash prefix to empty string | ui/app/pnc.module.js | ui/app/pnc.module.js | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014-2019 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 ... | JavaScript | 0.999756 | @@ -1573,16 +1573,112 @@
(false);
+%0A $locationProvider.hashPrefix(''); // remove a '!' prefix to restore the original behavior
%0A%0A //
|
e498d151b784e2ca93b619b6b3f1448fa56603dd | fix conditional premove validation - closes #975 | ui/analyse/src/forecast/forecastCtrl.js | ui/analyse/src/forecast/forecastCtrl.js | var m = require('mithril');
var partial = require('chessground').util.partial;
module.exports = function(cfg, saveUrl) {
var forecasts = cfg.steps || [];
var loading = m.prop(false);
var keyOf = function(fc) {
return fc.map(function(step) {
return step.ply + ':' + step.uci;
}).join(',');
};
... | JavaScript | 0 | @@ -467,39 +467,63 @@
fc1, fc2) %7B%0A
-return
+for (var i = 0, max = Math.min(
fc1.length === f
@@ -516,20 +516,17 @@
1.length
- ===
+,
fc2.len
@@ -532,74 +532,105 @@
ngth
- && keyOf(fc1.slice(0, -1)).indexOf(keyOf(fc2.slice(0, -1))) === 0
+); i %3C max; i++) %7B%0A if (fc1%5Bi%5D.uci !== fc2%5Bi%5D.uc... |
56ef6a2047baa44cbdce8078d485734539b4bb3a | Resolve lastModified only when necessary | view/_business-process-table-columns.js | view/_business-process-table-columns.js | 'use strict';
var formatLastModified = require('./utils/last-modified')
, _ = require('mano').i18n.bind('User')
, ProcessingStepStatus = require('mano').db.ProcessingStepStatus;
exports.getServiceIcon = function (businessProcess) {
return i({ class: "fa fa-user" });
};
exports.actionsColumn = {
class: 'actions... | JavaScript | 0 | @@ -2690,16 +2690,40 @@
bmitted,
+ function () %7B%0A%09%09%09return
isSubmi
@@ -2756,32 +2756,37 @@
matLastModified)
+;%0A%09%09%7D
);%0A%09%7D%0A%7D, %7B%0A%09head
@@ -2958,16 +2958,40 @@
pproved,
+ function () %7B%0A%09%09%09return
isAppro
@@ -3031,16 +3031,21 @@
odified)
+;%0A%09%09%7D
);%0A%09%7D%0A%7D,
|
736ffbc62f33f892cbd3635080c6a0d80d21cb54 | Simplify property names | view/components/render-sections-json.js | view/components/render-sections-json.js | /**
* Used to generate data overview from sections.
* This component should be used to display sections in part B.
*/
'use strict';
var normalizeOptions = require('es5-ext/object/normalize-options')
, ensureNaturalNumber = require('es5-ext/object/ensure-natural-number-value')
, isArray = Array.isArray, min ... | JavaScript | 0.001798 | @@ -567,23 +567,17 @@
nderers.
-renderV
+v
alue = r
@@ -936,31 +936,25 @@
ltRenderers.
-renderF
+f
ield = rende
@@ -1058,23 +1058,17 @@
nderers.
-renderF
+f
ields =
@@ -1162,31 +1162,25 @@
ltRenderers.
-renderE
+e
ntity = rend
@@ -1333,23 +1333,17 @@
nderers.
-renderE
+e
ntities
@@ -1547,23 +1547,17 @@
nde... |
65fe4e6219ec8e391884032ff60f79429635cb5b | fix up selectors so we don't grab random headings on the page | viewer/test/test_add_heading_anchors.js | viewer/test/test_add_heading_anchors.js | var assert = chai.assert;
describe('addHeadingAnchors', function () {
before(function () {
addHeadingAnchors.init('#testarea');
});
describe('HTML modification', function () {
before(function() {
this.headingsWithAnId = document.querySelectorAll('h1[id], h2[id], h3[id], h4[id],... | JavaScript | 0 | @@ -81,32 +81,93 @@
e(function () %7B%0A
+ this.testArea = document.getElementById('testarea');%0A
addHeadi
@@ -316,24 +316,150 @@
hAnId =
-document
+this.testArea.querySelectorAll('h1%5Bid%5D, h2%5Bid%5D, h3%5Bid%5D, h4%5Bid%5D, h5%5Bid%5D, h6%5Bid%5D');%0A this.headingsWithoutAnId = this... |
6df81d529f376834a1734cad6d5f0881bbf75226 | Remove OccurrenceOrderPlugin | v3/webpack.config.js | v3/webpack.config.js | const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const merge = require('webpack-merge');
const parts = require('./libs/parts');
const pkg = require(... | JavaScript | 0 | @@ -1596,56 +1596,8 @@
ugin
-,%0A new webpack.optimize.OccurrenceOrderPlugin
%0A %5D
|
d09e11c8ca2ec73f6596db1cb60722ca679e016d | Change sort | api/workers/ProfStatsWorker.js | api/workers/ProfStatsWorker.js | const pub = sails.hooks.publisher
const Promise = require('bluebird')
const profStatModel = require('../classes/profStatModel')
const updateProfStats = (profs) => {
return profs.reduce((promise, prof) => {
return promise.then(() => {
return prof.getReviews({
where: {'prof_id': p... | JavaScript | 0.000002 | @@ -2266,49 +2266,8 @@
ll(%7B
-%0A sort: %5B%5B'id', 'ASC'%5D%5D%0A
%7D)%0A
|
8cc80613d45ceb7f237244cf2ad845d270ac8862 | Update website link | ice/ice.js | ice/ice.js | /**
* @file Ingress-ICE, the main script
* @author Nikitakun (https://github.com/nibogd)
* @version 4.2.0
* @license MIT
* @see {@link https://github.com/nibogd/ingress-ice|GitHub }
* @see {@link https://ingress.divshot.io/|Website }
*/
"use strict";
/*global phantom */
/*global require */
/*global ice */
var system... | JavaScript | 0 | @@ -209,18 +209,19 @@
ess.
-divshot.io
+netlify.com
/%7CWe
|
85929c305cd42f4ee3fcd9327b7c31a97d89fee1 | add event handler to correct element | app/assets/javascripts/drop.js | app/assets/javascripts/drop.js | //Drop Model
SoapStone.Drop = function (args) {
if (args) {
this.setAttributes(args);
}
};
SoapStone.Drop.prototype.setAttributes = function (args) {
this.id = args.id;
if (args.coords) {
this.coords = {};
this.coords.longitude = args.coords.longitude;
this.coords.latitude = args.coords.latitud... | JavaScript | 0.000001 | @@ -4642,33 +4642,26 @@
);%0A $(%22
-%5Bdata-view='map'%5D
+.drop-list
%22).on('c
@@ -4752,24 +4752,70 @@
tDefault();%0A
+ var dropId = event.target.dataset.drop;%0A
self.c
@@ -4837,33 +4837,14 @@
rop(
-event.target.dataset.
drop
+Id
);%0A
|
a2f8fec4388f351df96e05a4809a9e502bd4069e | support back end error message in remote validation | javascript/zenvalidator.js | javascript/zenvalidator.js | (function($) {
$.entwine('ss.zenvalidator', function($) {
$('form.parsley').entwine({
onmatch: function() {
// Fix validation for optionset based class (attributes not set on child options)
$(this).find('.optionset').each(function() {
var attrs = $.makeArray(this.attributes);
var parsley = ... | JavaScript | 0 | @@ -828,32 +828,317 @@
%09%09%7D);%0A%09%09%09%7D%0A%09%09%7D);
+%0A%09%09%0A%09%09$.listen('parsley:field:error', function(fieldInstance) %7B%0A%09%09%09if(!fieldInstance._xhr) %7B%0A%09%09%09%09return;%0A%09%09%09%7D%0A%09%09%09if(fieldInstance._xhr.status %3C 400 %7C%7C fieldInstance._xhr.status %3E 499) %7B%0A%09%... |
3c0bb6c35d34528b551dda85ff5efc5c13bb412b | Add test for multiline disable-previous-line comment | test/comment-directives.js | test/comment-directives.js | const { noIndent } = require('./common/configs')
const {
assertNoErrors,
assertErrorCount,
assertWarnsCount,
assertErrorMessage
} = require('./common/asserts')
const linter = require('./../lib/index')
describe('Linter', () => {
describe('Comment Directives', () => {
it('should disable fixed compiler erro... | JavaScript | 0 | @@ -1367,32 +1367,45 @@
compiler error
+on next line
using multiline
@@ -1676,32 +1676,396 @@
ort, 1)%0A %7D)%0A%0A
+ it('should disable only one compiler error on previous line using multiline comment', () =%3E %7B%0A const report = linter.processStr(%0A %60%0A pragma solidity %... |
ae6e95453c6471f05ed1445049ddda8822956791 | fix margin size, and fix rtl no margin | app/components/Header/Title.js | app/components/Header/Title.js | /**
*
* Title
*
*/
import styled from 'styled-components'
const Title = styled.span`
padding-left: ${(props) => (props.docked ? '15em' : '0em')};
`
export default Title
| JavaScript | 0.000001 | @@ -131,9 +131,96 @@
? '1
-5
+2em' : '0em')%7D;%0A $%7B'' /* for rtl: */%7D%0A padding-right: $%7B(props) =%3E (props.docked ? '12
em'
|
68424fe88a48433cd537ad840fcdacb9f4a8dcaf | Test tuning | app/controllers/application.js | app/controllers/application.js | import Ember from 'ember';
export default Ember.Controller.extend({
session: Ember.inject.service('session'),
sitemap: {
nodes: [{
link: 'index',
title: 'Home',
children: null
}, {
link: null,
title: 'Objects',
children: [{
link: 'flexberry-ember-demo-application-user-l',
tit... | JavaScript | 0.000001 | @@ -779,16 +779,22 @@
() %7B%0A%09%09%09
+Ember.
$('.ui.s
|
d356e3eb5d21d69e3cca2060de1d0de938f0e08f | Fix transition out of invalid clone | src/reducers.js | src/reducers.js | //@flow
const Immutable = require('immutable')
const redux = require('redux')
const crypto = require('crypto')
//type State = {
// sessions : Immutable.Map<string, Session>
//}
type State = Immutable.Map<string, *>
const initial_state : State = Immutable.Map({
sessions: Immutable.Map()
})
type Action = {
... | JavaScript | 0.000002 | @@ -740,22 +740,20 @@
const
-status
+repo
= sessi
@@ -789,22 +789,20 @@
if (
-status
+repo
== null
@@ -805,22 +805,34 @@
null %7C%7C
+repo.get('
status
+')
=== 'do
@@ -834,16 +834,52 @@
= 'done'
+ %7C%7C repo.get('status') === 'invalid'
) %7B%0A
@@ -1310,27 +1310,8 @@
ion
-out of invalid and
... |
1613a4920926978ff7a045fc9aa50c580c97b2d9 | add lifecycle object | src/register.js | src/register.js | (function(env) {
var undefined;
var fox = env.fox;
function getTplAndAttribute(el) {
var tpl = el.querySelector('fox-template');
var meta = {
tmpl: null,
attributes: [],
extends: null
};
if (tpl) {
meta['tmpl'] = tpl;
}
meta['extends'] = el.getAttribute('extends');
var attributes = ... | JavaScript | 0.000001 | @@ -1455,16 +1455,52 @@
ption %7C%7C
+ %7B%7D;%0A%0A if (!option.lifecycle)
%7B%0A
@@ -1506,16 +1506,23 @@
+option.
lifecycl
@@ -1526,12 +1526,14 @@
ycle
-:
+ =
%7B%7D
+;
%0A
@@ -1538,17 +1538,16 @@
%7D
-;
%0A%0A%09%09own%5B
|
05cc532a1bf6a52fc8a675479ab9790f71771efd | Remove now dead code. | src/registry.js | src/registry.js | /*
* changes to previous patterns.register/scan mechanism
* - if you want initialised class, do it in init
* - init returns set of elements actually initialised
* - handle once within init
* - no turnstile anymore
* - set pattern.jquery_plugin if you want it
*/
define([
"jquery",
"./core/logger",
"./... | JavaScript | 0 | @@ -2548,161 +2548,8 @@
%7D,%0A%0A
- _rescan: function() %7B%0A log.debug(%22Retriggering document scan for new pattern%22);%0A registry.scan(document.body);%0A %7D,%0A%0A
|
6dadc612af4f5a3b68665293b5552d3c7ab991b5 | attach graphqlContext to findOptions | src/resolver.js | src/resolver.js | import { GraphQLList } from 'graphql';
import _ from 'lodash';
import argsToFindOptions from './argsToFindOptions';
import { isConnection, handleConnection, nodeType } from './relay';
import invariant from 'assert';
import Promise from 'bluebird';
import dataLoaderSequelize from 'dataloader-sequelize';
function whereQ... | JavaScript | 0 | @@ -1786,16 +1786,58 @@
logging;
+%0A findOptions.graphqlContext = context;
%0A%0A re
|
8058e2374aad34fb404a27b5379333e5922a40b8 | change as TextDecoder is firfox-only | src/seedlink.js | src/seedlink.js | /**
* Philip Crotwell
* University of South Carolina, 2016
* http://www.seis.sc.edu
*/
import * as miniseed from 'seisplotjs-miniseed';
import * as RSVP from 'rsvp';
import moment from 'moment';
/* reexport */
export { miniseed };
RSVP.on('error', function(reason) {
console.assert(false, reason);
});
export c... | JavaScript | 0.99221 | @@ -5256,92 +5256,123 @@
let
-decoder = new TextDecoder('utf-8');%0A let decodedString = decoder.decode(dataView
+out = %22%22;%0A for (let i=0; i%3C dataView.byteLength; i++) %7B%0A out += String.fromCharCode(dataView.getUint8(i)
);%0A
+ %7D%0A
re
@@ -5380,21 +5380,11 @@
urn
-decodedString
+out
;%0A%7D;... |
2d77bf787a0c996a75b25febdb446fb2af321a2c | switch back to chrome | test/fixtures/wdio.conf.js | test/fixtures/wdio.conf.js | var fs = require('fs')
var allureReporter = require('../../build/reporter')
allureReporter.reporterName = function () {
return 'allure'
}
exports.config = {
baseUrl: 'file:///' + fs.realpathSync(__dirname),
coloredLogs: true,
logLevel: 'silent',
reporters: [allureReporter],
framework: 'mocha',... | JavaScript | 0.000002 | @@ -457,17 +457,14 @@
e: '
-phantomjs
+chrome
'%0A
|
89aef51e82ebfb914810e92a9f26212546c03212 | complete tests | test/lib-api-model.test.js | test/lib-api-model.test.js | 'use strict';
const linz = require('../');
beforeAll((done) => {
linz.init({
options: {
'mongo': 'mongodb://mongodb:27017/lib-api-model',
'user model': 'user',
'load models': false,
'load configs': false
}
});
linz.once('initialised', () =>... | JavaScript | 0.000001 | @@ -956,9 +956,9 @@
ons(
-6
+9
);%0A%0A
@@ -1026,32 +1026,165 @@
odel.get('user')
+, %7B%0A form: %7B%0A name: true,%0A test: %7B%0A label: 'Custom test',%0A %7D,%0A %7D,%0A %7D
);%0A%0A expect(f
@@ -1443,16 +1443,208 @@
'name');
+%0A expect(fo... |
61859121eb140223071676eaa0244adb96db2e28 | Fix merge | test/node/transform/pad.js | test/node/transform/pad.js | import {Image, getHash} from '../common';
describe('check the pad transform', function () {
it.only('check the right pad extract for GREY image', function () {
let image=new Image(2, 2,
[
1, 2,
3, 4
],
{kind: 'GREY'}
);
A... | JavaScript | 0.000002 | @@ -96,13 +96,8 @@
it
-.only
('ch
|
51cc3a091a0ea5a1b9c3949db820589a1944f42a | Add hls playback network error test. | test/playbacks/hls_spec.js | test/playbacks/hls_spec.js | import HLS from 'playbacks/hls'
describe('HLS playback', () => {
// Disabled due to missing support for Firefox on Linux - breaks travis build
xit('should be able to identify it can play resources independently of the file extension case', function() {
expect(HLS.canPlay('/relative/video.m3u8')).to.be.true
... | JavaScript | 0 | @@ -1,8 +1,44 @@
+import Events from 'base/events.js'%0A
import H
@@ -60,16 +60,43 @@
cks/hls'
+%0Aimport HLSJS from 'hls.js'
%0A%0Adescri
@@ -2689,16 +2689,440 @@
)%0A %7D)%0A%0A
+ it('should trigger a playback error if source load failed', function(done) %7B%0A let options = %7Bsrc: 'http://dns.will.fail/not... |
2f375388e3cd12e376a12dbfc7a383b80ec35ce8 | add test case for supplying relative path (#2082) | test/plugin/plugin.test.js | test/plugin/plugin.test.js | const { existsSync } = require('fs');
const { join, resolve } = require('path');
const rimraf = require('rimraf');
const stripAnsi = require('strip-ansi');
const { run, runPromptWithAnswers } = require('../utils/test-utils');
const ENTER = '\x0D';
const firstPrompt = '? Plugin name';
const pluginName = 'test-plugin';
c... | JavaScript | 0 | @@ -11,16 +11,27 @@
istsSync
+, mkdirSync
%7D = req
@@ -38,24 +38,24 @@
uire('fs');%0A
-
const %7B join
@@ -226,24 +226,25 @@
st-utils');%0A
+%0A
const ENTER
@@ -253,16 +253,17 @@
'%5Cx0D';%0A
+%0A
const fi
@@ -325,16 +325,17 @@
lugin';%0A
+%0A
const pl
@@ -380,27 +380,18 @@
;%0Aconst
-customPlugi
+ge
nP... |
58119327eff80048395325784ad8599f96e0f67f | Add type comments | app/models/version-download.js | app/models/version-download.js | import Model, { belongsTo, attr } from '@ember-data/model';
export default class VersionDownload extends Model {
@attr downloads;
@attr date;
@belongsTo('version', { async: false }) version;
}
| JavaScript | 0 | @@ -113,24 +113,68 @@
%7B%0A
-@attr downloads;
+/** @type number */%0A @attr downloads;%0A /** @type string */
%0A @
|
b3e5dc6ed9a7dd6eae6cde9c0c9c7d67a276ed61 | Fix '_handleResize' function this binding | app/pages/frontpage/Lukkari.js | app/pages/frontpage/Lukkari.js | import React from 'react'
import moment from 'moment'
import {filter} from 'ramda'
import SearchList from '../../partials/SearchList'
import searchResults from '../../partials/searchResults'
import {addDataToCalendar} from '../../util/courseParser'
import {appState} from '../../store/lukkariStore'
import BigCalendar fr... | JavaScript | 0.000093 | @@ -1147,16 +1147,71 @@
%5D%0A %7D%0A
+ this._handleResize = this._handleResize.bind(this)%0A
%7D%0A%0A _
|
86a760690e3bd84353306cf8b9180d9c1e5239e2 | fix build | app/scripts/config/defaults.js | app/scripts/config/defaults.js | define("config", function () {
return {
"controls": {
// Toggle for "new map" option in main menu
"newMap": false,
// Toggle for "open map" option in main menu
"openMap": false,
// If true, a user can filter features on the map using a timeline.
"filter": true
},
"color... | JavaScript | 0.000001 | @@ -1033,89 +1033,60 @@
//
-If any of the tiles require authentication with mapbox, enter those details here.
+https://www.mapbox.com/help/create-api-access-token/
%0A
|
4612e48f1fbafcf4b09eb0225dd538c2d2bfdca7 | decrease boundary of build/repair rampart | src/util.war.js | src/util.war.js | //War logic goes there
var mod = {};
module.exports = mod;
const RampartMaintainThreshold = {
//this value shouldn't be too high since it is used by getRampartSitesCanBuild(),
// if it is too high, then rampart site can only be built by bigger builder which
// have many limitation.
Low: 30*Thousand,
... | JavaScript | 0 | @@ -291,16 +291,41 @@
tation.%0A
+ Lowest: 10*Thousand,%0A
Low:
@@ -350,18 +350,18 @@
Normal:
-30
+15
0*Thousa
@@ -889,16 +889,19 @@
hold.Low
+est
/REPAIR_
@@ -924,17 +924,17 @@
tly
-6
+1
0K/100=
-6
+1
00En
|
e7fed880943cee2171470260c8992f4e0695a0fa | use generic argument name | app/scripts/template-loader.js | app/scripts/template-loader.js | var myApp; // sublime-text-2
$(function(){
'use strict';
var compiledTemplate = myApp.Templates['app/templates/screenshots.hbs'];
$('.screenshot').each(function(i, sheet){
var url = $(sheet).data('json');
$.getJSON(url).then(function (json) {
var tpl = compiledTemplate( json );... | JavaScript | 0.000003 | @@ -171,21 +171,20 @@
tion(i,
-sheet
+hook
)%7B%0A
@@ -198,21 +198,20 @@
url = $(
-sheet
+hook
).data('
@@ -330,13 +330,12 @@
$(
-sheet
+hook
).ht
|
210b6a28547e0ea5c9ccd5ef7aa01fd247e27fda | allow WrapWithHits usage with a different index (#635) | stories/util.js | stories/util.js | import PropTypes from 'prop-types';
import React from 'react';
import {
InstantSearch,
ClearAll,
SearchBox,
Pagination,
Highlight,
Configure,
} from '../packages/react-instantsearch/dom';
import { connectHits } from '../packages/react-instantsearch/connectors';
import { linkTo } from '@storybook/react';
imp... | JavaScript | 0 | @@ -775,16 +775,106 @@
= true,%0A
+ appId = 'latency',%0A apiKey = '6be0576ff61c053d5f9a3225e2a90f76',%0A indexName = 'ikea',%0A
%7D) =%3E %7B%0A
@@ -1581,106 +1581,60 @@
arch
-%0A
appId=
-%22latency%22%0A apiKey=%226be0576ff61c053d5f9a3225e2a90f76%22%0A indexName=%22ikea%22%0A
+%7BappId%7D a... |
8bf479c92fc61b2e945c5e5194f2a5d386a6153d | Fix different playlists not loading | src/ui/components/Playlists/Playlist.react.js | src/ui/components/Playlists/Playlist.react.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import TracksList from '../Shared/TracksList.react.js';
import FullViewMessage from '../Shared/FullViewMessage.react';
import { Link } from 'react-router-dom';
import AppActions from '../../actions/... | JavaScript | 0.004946 | @@ -867,16 +867,279 @@
);%0A %7D%0A%0A
+ componentWillReceiveProps(nextProps) %7B%0A const playlistId = this.props.match.params.playlistId;%0A const nextPlaylistId = nextProps.match.params.playlistId;%0A%0A if(nextPlaylistId !== playlistId) %7B%0A AppActions.playlists.load(nextPlaylistId);%0A %7D%0A... |
0a29e47dd6f8496ee8c87e34d9c3308a6f62f6e6 | Fix debug display. | web/javascript/search.js | web/javascript/search.js | /**
* Main search page handler.
* Connects to the page, form & buttons. Deals with launching searches.
* @param results_handler: an alternative result handler.
*/
function SearchPage(results_handler) {
//hold the tab object
this._tab = null;
//hold signals for the page
this._signals = new Array();
//hold st... | JavaScript | 0.997484 | @@ -3759,22 +3759,38 @@
lt '%22 +
+JSON.stringify(
result
+)
+ %22' in
|
759148531f50bacfe42634219ab2800e58b727bb | Improve code styling (task #17305) | webroot/js/pickr.init.js | webroot/js/pickr.init.js | ;(function ($) {
$('.pickr').each(function () {
const pickr = new Pickr({
el: this,
useAsButton: true,
default: this.value ?? '#000000',
theme: 'classic',
swatches: [
'rgba(244, 67, 54, 1)',
'rgba(233, 30, 99, 1)',
... | JavaScript | 0 | @@ -148,17 +148,20 @@
+%22
default
+%22
:
+(
this
@@ -168,17 +168,29 @@
.value ?
-?
+ this.value :
'#00000
@@ -191,16 +191,17 @@
#000000'
+)
,%0A
@@ -224,17 +224,16 @@
assic',%0A
-%0A
|
27f9895145f75ee5ff1fcf57f4ca31ddc7d9576c | Remove one more unused variable | webroot/js/projectile.js | webroot/js/projectile.js | import { renderer, stage, globalState } from './globals';
import * as Utils from './utils.js';
import * as Constants from './constants';
export default class Projectile {
constructor (animationFrames, frameId, origin, ttl, velocity) {
this.frameId = frameId;
this.origin = origin;
this.ttl = ttl;
... | JavaScript | 0.000022 | @@ -413,71 +413,8 @@
);%0A%0A
- const frameOffset = frameId - globalState.physicsFrameID;%0A%0A
|
ba791e2b823a51153517bbcfa68acc74cad389d1 | Update image name in gatsby-config | website/gatsby-config.js | website/gatsby-config.js | module.exports = {
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/../content`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
icon: `src/images/kitura.svg`
},
},
{
resolve: `... | JavaScript | 0 | @@ -263,17 +263,17 @@
/images/
-k
+K
itura.sv
|
e28bbc88bfe5fd1dbeddafe71b3f4e3818fabb35 | Clear docblock for gettext missing i.e. msgfmt :) | tasks/potomo.js | tasks/potomo.js | /*
* grunt-potomo
* https://github.com/axisthemes/grunt-potomo
*
* Copyright (c) 2014 AxisThemes
* Licensed under the MIT license.
*/
'use strict';
var shell = require( 'shelljs' );
module.exports = function( grunt ) {
grunt.registerMultiTask( 'potomo', 'Compile .po files into binary .mo files with msgfmt.',... | JavaScript | 0 | @@ -390,45 +390,50 @@
%09//
-Check if Gettext is installed or not.
+Return warning if not found msgfmt command
%0A%09%09i
|
7d383dd6b7576034d92eda5005e2e0927363d226 | Configure express in server.js | tasks/server.js | tasks/server.js | JavaScript | 0.000001 | @@ -0,0 +1,673 @@
+module.exports = function(grunt) %7B%0A var express = require(%22express%22);%0A var compress = require(%22compression%22);%0A var errorHandler = require(%22errorhandler%22);%0A grunt.registerTask(%22server%22, %22static file development server%22, function() %7B%0A var app, webPort, webRoot;%... | |
9b8ac3760d7d090e4c8c2d79131d5d234334552a | Fix Build | testem.js | testem.js | module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
],
browser_args: {
Chrome: {
ci: [
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' :... | JavaScript | 0.000001 | @@ -371,43 +371,8 @@
u',%0A
- '--disable-dev-shm-usage',%0A
|
658ef9dc6e20dc1fcd8a74c1b0951dd8bf4050d3 | Fix test/at-rule.js | test/at-rule.js | test/at-rule.js | const AtRule = require('../lib/at-rule');
const parse = require('postcss/lib/parse');
describe('AtRule', () =>
describe('process()', () =>
it('adds prefixes', () => {
const keyframes = new AtRule('@keyframes', ['-moz-', '-ms-']);
const css = parse('@-moz-keyframes b {} @-ms-keyframes a {} @key... | JavaScript | 0.000198 | @@ -105,17 +105,22 @@
', () =%3E
-%0A
+ %7B%0A%0A
descri
@@ -140,22 +140,28 @@
', () =%3E
+ %7B
%0A%0A
+
+
it('adds
@@ -180,16 +180,20 @@
() =%3E %7B%0A
+
@@ -260,24 +260,28 @@
);%0A%0A
+
+
const css =
@@ -308,36 +308,106 @@
es b %7B%7D
-@-ms-keyframes a %7B%7D
+' +%0A ... |
94f4752a0a5ad07c38aa68cc79fef954a2379d1d | Use readFile instead of readFileSync in tests | test/compile.js | test/compile.js | const test = require('ava')
const path = require('path')
const { readdirSync, readFileSync } = require('fs')
const { compile, format } = require('../')
const fixtures = path.join(__dirname, 'fixtures')
const fixture = file => path.join(fixtures, file)
const testFiles = readdirSync(fixtures)
.filter(file => file.ends... | JavaScript | 0 | @@ -79,20 +79,16 @@
readFile
-Sync
%7D = req
@@ -363,16 +363,59 @@
js:
+ new Promise((resolve, reject) =%3E %7B%0A
readFil
@@ -407,36 +407,32 @@
readFile
-Sync
(fixture(file)).
@@ -433,31 +433,173 @@
ile)
-).toString(),%0A re:
+, (err, data) =%3E %7B%0A if (err) return reject(... |
e624b6b823f4c6123938a5b75f7968de8a8f6263 | remove dep on idb | test/e2e/e2e.js | test/e2e/e2e.js | 'use strict';
/* global before */
var idbUtils = require('../../scripts/orm/nosql/adapters/indexeddb/utils'),
IDBAdapter = require('../../scripts/orm/nosql/adapters/indexeddb');
describe('e2e', function () {
before(function () {
if (global.window && idbUtils.indexedDB()) { // using IndexedDB?
// Our t... | JavaScript | 0.000004 | @@ -12,740 +12,37 @@
';%0A%0A
-/* global before */%0A%0Avar idbUtils = require('../../scripts/orm/nosql/adapters/indexeddb/utils'),%0A IDBAdapter = require('../../scripts/orm/nosql/adapters/indexeddb');%0A%0Adescribe('e2e', function () %7B%0A%0A before(function () %7B%0A if (global.window && idbUtils.indexedDB())... |
8aaed914fd9b931e56aa5467f7f07c9c5f1a9a30 | Remove "test.only" | test/flatten.js | test/flatten.js | var pull = require('../')
var test = require('tape')
test('flatten arrays', function (t) {
pull(
pull.values([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]),
pull.flatten(),
pull.collect(function (err, numbers) {
t.deepEqual([1, 2, 3, 4, 5, 6, 7, 8, 9], numbers)
t.end()
})
)
... | JavaScript | 0.000038 | @@ -1030,13 +1030,8 @@
test
-.only
('fl
|
30a96f4383d4ca2abf9a6643bf0f9886dc29b45c | Update ORCIDFromEmail tests * check if it works for ORCID ending in X * use real ORCID | test/helpers.js | test/helpers.js | var helpers = require('../src/helpers.js');
var assert = require('assert');
describe('helpers', function () {
it('emailFromORCID creates an email address', function () {
assert.equal(helpers.emailFromORCID('test'), 'test@orcid.org');
});
it('ORCIDFromEmail strips email leaving username', function () {
a... | JavaScript | 0 | @@ -211,31 +211,230 @@
ID('
-test'), 'test@orcid.org
+0000-0003-4959-3049'), '0000-0003-4959-3049@orcid.org');%0A %7D);%0A%0A it('ORCIDFromEmail strips email leaving ORCID', function () %7B%0A assert.equal(helpers.ORCIDFromEmail('0000-0003-4959-3049@orcid.org'), '0000-0003-4959-3049
');%0A
@@ -486,16 +486,34 @@
... |
075d715f6a3703268fb73eee973f1a90e86887ee | Test import response w/ a hierarchy | test/imports.js | test/imports.js | "use strict";
var path = require("path"),
assert = require("assert"),
imports = require("../imports");
describe("postcss-css-modules", function() {
describe("imports", function() {
it("should walk dependencies", function() {
var result = imports.process("./test/specimens/imports/sta... | JavaScript | 0 | @@ -1078,32 +1078,423 @@
es);%0A %7D);
+%0A%0A it(%22should export identifiers and their classes%22, function() %7B%0A var result = imports.process(%22./test/specimens/imports/start.css%22),%0A exports = result.exports;%0A%0A assert.deepEqual(exports, %7B%0A ... |
db5d95149cefebb3307f7a7fbd7019658d369345 | enforce mozlog rules in test logger | test/lib/log.js | test/lib/log.js | /* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
var noop = function () {}
module.exports = {
trace: noop,
debug: noop,
info: noop,
warn: noop,
error: noop,
stat: noop
}
| JavaScript | 0.000001 | @@ -106,32 +106,951 @@
*/%0A%0A
-var noop = function () %7B
+const assert = require('assert');%0A%0A// all the promise wrapping in tests makes it unclear who actually %0A// called mozlog incorrectly. So, record this location directly.%0Afunction getMozlogCallerLocation() %7B%0A var err = new Error('getMozlogCallerLoc... |
7afa42d0aa5b23176a0f45ba214c12e11787175a | Fix profile test to rely on package.json's main field | test/profile.js | test/profile.js | /*
Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this l... | JavaScript | 0 | @@ -1395,23 +1395,16 @@
ire('../
-esprima
'),%0A
|
9473c04069f010c77e7ad3533613b4cd420c4f82 | add test | test/project.js | test/project.js | 'use strict'
const test = require('tape')
const fs = require('fs')
const winnow = require('../src')
const path = require('path')
const features = JSON.parse(fs.readFileSync(path.join(__dirname, 'fixtures', 'snow.geojson'))).features
test('Project to Web Mercator using 3857', t => {
t.plan(1)
const options = {
... | JavaScript | 0.000002 | @@ -483,32 +483,330 @@
005275469%5D)%0A%7D)%0A%0A
+test('Project to Web Mercator using 3857 with an esri style outSR', t =%3E %7B%0A t.plan(1)%0A const options = %7B%0A outSR: %7BlatestWkid: 3857%7D,%0A limit: 1%0A %7D%0A const results = winnow.query(features, options)%0A t.deepEqual(results%5B0%5D.geometry... |
dec3d86dd5769890f280ff3b7ec3ed53f5464188 | Make sure request stubs are called | test/request.js | test/request.js | 'use strict';
var assert = require('assert');
var sinon = require('sinon');
var Request = require('../lib/request');
describe('request', function () {
var authOptions = {
apiKey: 'key',
apiUser: 'user',
};
it('should set apiKey and apiUser', function () {
var request = new Request... | JavaScript | 0 | @@ -606,33 +606,32 @@
ew Request(%7B%7D);%0A
-%0A
sino
@@ -617,32 +617,62 @@
%7B%7D);%0A
+ var stub;%0A%0A stub =
sinon.stub(requ
@@ -841,32 +841,69 @@
pi.glesys.com');
+%0A%0A assert.ok(stub.called);
%0A %7D);%0A%0A
@@ -990,33 +990,32 @@
ew Request(%7B%7D);... |
b369652ed5114e432953b485b9c8f24ba5a2afc7 | Add some tests from the s3 lib | test/s3-test.js | test/s3-test.js | describe('getFolders()', function() {
it('should return the correct list of folders', function() {
var objects = [
{ Key: '/' },
{ Key: 'test/' },
{ Key: 'test/test/' },
{ Key: 'test/a/b' },
{ Key: 'test' },
];
chai.expect(dodgercms.utils.getFolders(objects)).to.have.members(... | JavaScript | 0 | @@ -3,26 +3,20 @@
scribe('
-getFolders
+init
()', fun
@@ -42,1003 +42,127 @@
uld
-return the correct list of folders', function() %7B%0A var objects = %5B%0A %7B Key: '/' %7D,%0A %7B Key: 'test/' %7D,%0A %7B Key: 'test/test/' %7D,%0A %7B Key: 'test/a/b' %7D,%0A %7B Key: 'test' %7D,%0A ... |
34ed769c7c25d8b6f063f861b666f0b0669f6a46 | Remove Incorrect Type Message | test/sources.js | test/sources.js | var test = require('tape').test,
glob = require('glob'),
fs = require('fs');
var manifest = glob.sync('sources/*.json');
var index = 0;
checkSource(index);
function checkSource(i){
var source = manifest[i];
if (i == manifest.lenght-1 || !source) {
process.exit(0);
}
test(source,... | JavaScript | 0.000001 | @@ -746,46 +746,8 @@
);%0A%0A
- t.pass('Incorrect Type');%0A
|
c94c4440cfd59dd080c811709210e08ccb703b65 | tweak report | report.js | report.js | #!/usr/bin/env node
var vsprintf = require("sprintf-js").vsprintf,
stats = require('stats-lite'),
_ = require('underscore'),
program = require('commander'),
db = require('./db'),
data = {},
contributorTypes;
program.option('--html', 'HTML output')
.parse(process.argv);
db.select(
... | JavaScript | 0.000001 | @@ -3822,16 +3822,126 @@
%5D;%0A
+ if (c.amount %3C 10000) %7B%0A return;%0A %7D%0A
@@ -5099,24 +5099,60 @@
ibutions();%0A
+ process.exit();%0A
|
b4386584566c73367be1722a6d98575f8b73be7b | Add `execute` method to driver mock | test/up.test.js | test/up.test.js | 'use strict';
const Promise = require('bluebird');
const assert = require('assert');
const sinon = require('sinon');
const path = require('path');
describe('migro up <db>', () => {
it('should have a description', () => {
const command = require('../lib/commands/up <db>');
assert(command.description.length >... | JavaScript | 0.000004 | @@ -951,16 +951,96 @@
(true));
+%0A DriverMock.prototype.execute = sinon.stub().returns(Promise.resolve(true));
%0A%0A co
@@ -1562,16 +1562,99 @@
dOnce);%0A
+ assert(driverMock.execute.calledOnce);%0A assert(driverMock.exit.calledOnce);%0A
%7D);%0A%7D)
|
ac53efea3371a42739814da7a2bbf06f3e0fc894 | Use Correct Poster Shape | twitch.js | twitch.js | var Stremio = require("stremio-addons");
var needle = require("needle");
var _ = require("lodash");
var bagpipe = require("bagpipe");
var twitch_chans = [];
var chanName = [];
var stremioCentral = "http://api9.strem.io";
var pkg = require("./package");
var manifest = {
"id": "org.stremio.twitch",
"types": [... | JavaScript | 0.000001 | @@ -1690,16 +1690,62 @@
medium,%0A
+ posterShape: 'landscape',%0A
|
e3157a08fa89a164233fd3b59a33b39900126939 | Test encrypt/decrypt with keyfiles | tests/crypto.js | tests/crypto.js | var lib = require("../source/index.js");
module.exports = {
setUp: function(done) {
(done)();
},
tearDown: function(done) {
(done)();
},
encryptWithPassword: {
testEncryptsCorrectly: function(test) {
var text = "some random text";
lib.crypto.encry... | JavaScript | 0 | @@ -35,16 +35,114 @@
.js%22);%0A%0A
+var path = require(%22path%22);%0A%0Avar filename = path.resolve(__dirname, %22./resources/gradient.png%22);%0A%0A
module.e
@@ -260,24 +260,608 @@
();%0A %7D,%0A%0A
+ encryptWithKeyFile: %7B%0A%0A encryptsCorrectly: function(test) %7B%0A var text = %22some... |
a8ee520e15338f6b216e29a5ac777f96c6fa4469 | Change const -> var as not supported in ie6 | tests/events.js | tests/events.js | (function () {
var span;
module('events', {
setup: function () {
span = $('<span data-ok-button="OK">Q</span>').appendTo($('#qunit-fixture'));
}
});
function click_ok() {
var ok = span.find('input[type=button]');
ok.click();
}
test('event jinplace:done triggered after finish', function() {
var al... | JavaScript | 0 | @@ -2203,13 +2203,11 @@
%0A%0A%09%09
-const
+var
cha
|
d579e5c70e914308d7e4fafa39698500e9a3166a | throw error on invalid oui.txt during update | update.js | update.js | #!/usr/bin/env node
"use strict";
const fs = require("fs");
const path = require("path");
const url = require("url");
const countries = require("country-data").countries;
const fetch = require("make-fetch-happen");
const stringify = require("json-stable-stringify");
const stringifyOpts = {
space: 1,
cmp: (a, b) ... | JavaScript | 0 | @@ -824,16 +824,198 @@
(body =%3E
+ %7B%0A if (!body %7C%7C !body.length %7C%7C !/%5E(OUI%7C%5B#%5D%7C%5BA-Za-z%5D)/.exec(body)) %7B%0A throw new Error(%22Downloaded file does not look like a oui.txt file%22);%0A %7D else %7B%0A return
parse(b
@@ -1030,16 +1030,31 @@
t(%22%5Cn%22))
+;%0A ... |
1c69d88ab6ca14a1e6a3cc4f6d1136e60b4a553d | Store more metadata | upload.js | upload.js | const P = require('bluebird');
const auth = require('./lib/auth');
const crypto = require('crypto');
const fse = require('fs-extra-promise');
const os = require('os');
const path = require('path');
const restify = require('restify');
module.exports = [
restify.bodyParser({
maxBodySize: 0,
mapParams: true,
... | JavaScript | 0 | @@ -1122,16 +1122,48 @@
team_id,
+ file: newname, name: file.name,
type: f
|
f2059586c9a270273b71127d6ddf19a173ef738e | Make REST module errors more informative. | ninja_modules/rest/index.js | ninja_modules/rest/index.js | /**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, http = require('http')
, path = require('path')
, stream = require('stream')
, util = require('util')
, helpers = require('./lib/helpers')
, devices = {};
util.inherits(rest,stream);
function rest(ninja) {
... | JavaScript | 0 | @@ -1098,19 +1098,42 @@
g.error(
-err
+%22REST: %25s (%25s)%22, err, guid
);%0A
|
24ea2e5d7dd7342eecabe164fece6907107f4a6c | Use native HTML #contains for elements that do not have #contains method e.g. SVGs | library/src/pivotal-ui-react/mixins/mixins/scrim_mixin.js | library/src/pivotal-ui-react/mixins/mixins/scrim_mixin.js | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
function rootClick(e) {
if (this.props.disableScrim || ReactDOM.findDOMNode(this).contains(e.target)) return;
this.scrimClick(e);
}
const privates = new WeakMap();
export default ParentClass => {
return class Scrim... | JavaScript | 0 | @@ -115,16 +115,164 @@
ck(e) %7B%0A
+ const node = ReactDOM.findDOMNode(this);%0A if (typeof node.contains !== 'function') %7B%0A node.contains = HTMLDivElement.prototype.contains;%0A %7D%0A%0A
if (th
@@ -300,34 +300,12 @@
%7C%7C
-ReactDOM.findDOMNode(this)
+node
.con
|
84c9d0fad12e50869301eb574a13969ae6b2afd4 | Add debug msg for WeixinApi | weixin.js | weixin.js | // 所有功能必须包含在 WeixinApi.ready 中进行
(function(zHelper) {
WeixinApi.ready(function (Api) {
// 微信分享的数据
var wxData = {
"imgUrl": 'http://www.baidufe.com/fe/blog/static/img/weixin-qrcode-2.jpg',
"link": 'http://www.baidufe.com',
"desc": '大家好,我是Alien,Web前端&Android客户端码农,喜... | JavaScript | 0.000001 | @@ -51,45 +51,132 @@
) %7B%0A
- WeixinApi.ready(function (Api) %7B%0A
+%0A zHelper.log(%22Wait for WeixinApi.ready!%22);%0A WeixinApi.ready(function (Api) %7B%0A zHelper.log(%22WeixinApi.ready!%22);
%0A
|
61d8bae087fcf2d208638e8948f7aa5ad48e0933 | Update core.server.controller.js | modules/core/server/controllers/core.server.controller.js | modules/core/server/controllers/core.server.controller.js | 'use strict';
/**
* Render the main application page
*/
exports.renderIndex = function (req, res) {
res.render('modules/core/server/views/index', {
user: req.user || null
});
};
/**
* Render the server error page
*/
exports.renderServerError = function (req, res) {
res.status(500).render('modules/core/s... | JavaScript | 0.000002 | @@ -1080,15 +1080,8 @@
r: '
-lardpvo
',%0A
@@ -1099,16 +1099,8 @@
y: '
-Jutro12!
'%0A %09
|
8920b74b1564eb90bd6579b50f8d8292569343ea | Support for FireFox Mozilla < 46 | worker.js | worker.js | self.onmessage = function(e) {
var fileReader = new FileReader();
fileReader.onloadend = function(chunk) {
postMessage({bin: (fileReader.result || chunk.srcElement || chunk.target).split(',')[1], chunkId: e.data.currentChunk, start: e.data.start});
};
fileReader.onerror = function(error) {
throw (erro... | JavaScript | 0 | @@ -24,16 +24,43 @@
on(e) %7B%0A
+ if (self.FileReader) %7B%0A
var fi
@@ -88,17 +88,18 @@
ader();%0A
-%0A
+
fileRe
@@ -129,24 +129,26 @@
on(chunk) %7B%0A
+
postMess
@@ -281,22 +281,26 @@
tart%7D);%0A
+
%7D;%0A%0A
+
fileRe
@@ -336,16 +336,18 @@
) %7B%0A
+
+
throw (e
@@ -386,22 +38... |
d08baff982f51775a8ce164122925908b7678420 | correct db key | worker.js | worker.js | var path = require('path')
var runner = require('run-qunit')
var createResultsHandler = function(ctx){
return function(res){
if (res.tracebacks){
for (var i = 0; i<res.tracebacks.length; i++){
ctx.striderMessage("\n\n[ERROR]" + res.tracebacks[i]);
}
}
console.log("strider-qunit > Resu... | JavaScript | 0.000026 | @@ -481,17 +481,16 @@
nit_file
-s
)%0A re
@@ -532,10 +532,73 @@
file
-s
%0A
+%0A console.log(%22Couldn't find a QUnit filename - using default%22)
%0A r
|
af4397e3c4e63032cc8433c6fb9915e4af789daa | fix worker | worker.js | worker.js | 'use strict';
const Agenda = require('agenda');
const config = require('./config');
const facebookEtl = require('./jobs/facebook-etl');
require('./lib/database'); // Has side effect of connecting to database
facebookEtl();
| JavaScript | 0.000001 | @@ -208,19 +208,343 @@
se%0A%0A
-facebookEtl(
+const agenda = new Agenda(%7Bdb: %7Baddress: config.mongoUri%7D%7D);%0A%0Aagenda.define('facebook-etl', facebookEtl);%0A%0Aagenda.on('start', function (job) %7B%0A console.log('Job %25s starting', job.attrs.name);%0A%7D);%0A%0Aagenda.on('ready', function () %7B%0A conso... |
6665475fcbf4239e5628415e421af35e41459793 | Add greater/less-than options to property filter | main.js | main.js | const filters = []
const filterTypes = [
{
name: 'Property Value',
options: {
property: 'version',
condition: 'equal',
value: '1.0'
},
apply: (input, opts) => input.filter(x => {
if (opts.condition === 'equal') {
return (x[opts.property] == opts.value)
} else if... | JavaScript | 0.000003 | @@ -506,24 +506,209 @@
opts.value)%0A
+ %7D else if (opts.condition === 'greater') %7B%0A return x%5Bopts.property%5D %3E opts.value%0A %7D else if (opts.condition === 'less') %7B%0A return x%5Bopts.property%5D %3C opts.value%0A
%7D%0A
@@ -1130,16 +1130,90 @@
s with'%5D
+,%0A ... |
1bb517a039b2638da689ee3ce482081250ded1b3 | Test settings window | main.js | main.js | 'use strict';
var app = require('app');
var Tray = require('tray');
var Menu = require('menu');
var path = require('path');
var cpanel = require('cpanel-lib');
var load, tid, appIcon;
var show = 'one';
var iconBright = path.join(__dirname, 'iconBright.png');
var options = {
host: 'whm.domain.... | JavaScript | 0.000001 | @@ -172,16 +172,63 @@
l-lib');
+%0Avar BrowserWindow = require('browser-window');
%0A%0Avar lo
@@ -1115,32 +1115,148 @@
r'%0A %7D,%0A %7B%0A
+ label: 'Settings',%0A click: function() %7B openSettingsWindow(); %7D,%0A type: 'normal'%0A %7D,%0A %7B%0A
label: '
@@ -1500,16 +150... |
b1989d5f2f6eb4904adb717da89d41e26c01580d | Add openstreetmap.org tile layer for testing | main.js | main.js | var Attr = 'Modified <a href="https://scihub.copernicus.eu/">Copernicus</a>' +
' Sentinel data 2016 by ' +
'<a href="http://sentinelmap.eu">SentinelMap</a>' ;
var lAttr = '© <a href="https://openstreetmap.org/copyright">OSM</a>' +
' contributors data by ' +
'<a href="https://mapzen.com">Mapzen</a>' ;
... | JavaScript | 0 | @@ -321,17 +321,16 @@
var sUrl
-
= 'http:
@@ -375,18 +375,22 @@
%7By%7D.jpg'
+,%0A
-;
%0A%0Avar au
@@ -392,17 +392,16 @@
ar aug16
-
= L.tile
@@ -464,24 +464,156 @@
n: Attr%7D);%0A%0A
+var testUrl= 'http://a.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png';%0Avar test= L.tileLayer( testUrl , %7Bid: 'te... |
dd5d3f7079546ac4b361741bac39194d0c1266d1 | support any version over 10.10 | main.js | main.js | var os = require('os');
if (os.release() == '1.3.1') {
var osx_version = '10.0';
} else if (os.release() == '1.4.1') {
var osx_version = '10.0';
} else if (os.release() == '5.1') {
var osx_version = '10.1.1';
} else if (os.release() == '5.5') {
var osx_version = '10.1.5';
} else if (os.releas... | JavaScript | 0 | @@ -22,466 +22,117 @@
);%0A%0A
- if (os.release() == '1.3.1') %7B%0A var osx_version = '10.0';%0A %7D else if (os.release() == '1.4.1') %7B%0A var osx_version = '10.0';%0A %7D else if (os.release() == '5.1') %7B%0A var osx_version = '10.1.1';%0A %7D else if (os.release() == '5.5') %7B%0A var osx_versio... |
5f6a5b14cab02526c59344f037ce438be75e6841 | remove /tweets | main.js | main.js | var express = require( "express" );
var Twitter = require( "twitter" );
var app = express();
var tokenList = [
{ name: "Consumer Key", value: process.env.TWITTER_CONSUMER_KEY },
{ name: "Consumer Secret", value: process.env.TWITTER_CONSUMER_SECRET },
{ name: "Access Token Key", value: process.env.T... | JavaScript | 0 | @@ -3546,107 +3546,8 @@
%0A%7D%0A%0A
-%0Aapp.get( '/tweets', function( req, res ) %7B%0A%0A res.send( %22%E6%8C%87%E5%AE%9A%E3%83%A6%E3%83%BC%E3%82%B6%E3%81%AE%E6%9C%80%E6%96%B0%E3%83%84%E3%82%A4%E3%83%BC%E3%83%88%E3%82%92%E5%8F%96%E5%BE%97%E4%B8%AD, %E3%81%97%E3%81%B0%E3%82%89%E3%81%8F%E3%81%8A%E5%BE%85%E3%81%A1%E3... |
a613eb56b309c56c2bff8363b95e3f6976eec661 | Use Services.io.newChannelFromURI2 | main.js | main.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
function AboutModule() {
}
AboutModule.prototype = {
uri: Services.io.newURI("chrome://about-addon... | JavaScript | 0 | @@ -629,17 +629,16 @@
wChannel
-
: functi
@@ -656,16 +656,38 @@
let
+chan;%0A try %7B%0A
chan = S
@@ -718,19 +718,301 @@
mURI
-(this.uri);
+2(%0A this.uri,%0A null,%0A Services.scriptSecurityManager.getSystemPrincipal(),%0A null,%0A Ci.nsILoadInfo.SEC_ALLOW_CROSS_O... |
5f3a9b0b10e13d17c322d31b747b56e36bba6655 | update main process message registry | main.js | main.js | module.exports = {
load: function () {
},
unload: function () {
},
'console:open': function () {
Editor.Panel.open('console.panel');
},
};
| JavaScript | 0 | @@ -1,8 +1,23 @@
+'use strict';%0A%0A
module.e
@@ -31,34 +31,22 @@
= %7B%0A
-
load
-: function
() %7B%0A
%7D,
@@ -45,24 +45,20 @@
%7B%0A
-
-
%7D,%0A%0A
-
unload
: fu
@@ -53,34 +53,24 @@
unload
-: function
() %7B%0A
%7D,%0A%0A
@@ -65,50 +65,42 @@
%7B%0A
-
-
%7D,%0A%0A
-
- '... |
a61336fe57284d3cb71932e79f6398a33b455e0e | make sharp works | main.js | main.js | 'use strict';
module.exports = {
load () {
// execute when package loaded
},
unload () {
// execute when package unloaded
},
// register your ipc messages here
messages: {
'unpack' () {
let currentSelection = Editor.Selection.curSelection('asset');
if (currentSelection.leng... | JavaScript | 0.000002 | @@ -6,16 +6,291 @@
strict';
+%0Aconst Fs = require('fire-fs');%0Aconst Async = require('async');%0Aconst Os = require('os');%0Aconst Path = require('fire-path');%0Avar sharpPath;%0Aif (Editor.dev) %7B%0A sharpPath = 'sharp';%0A%7D else %7B%0A sharpPath = Editor.url('unpack://utils/sharp');%0A%7D%0Aconst Sharp = requ... |
0f2cbef02d0f355b303becad184399112643e2a4 | add zeoring to example | main.js | main.js | var mraa = require('mraa');
var PUBNUB = require('pubnub');
console.log('MRAA Version: ' + mraa.getVersion()); //write the mraa version to the console
var x = new mraa.Aio(0);
var y = new mraa.Aio(1);
var z = new mraa.Aio(2);
var pubnub = PUBNUB.init({
publish_key: 'demo',
subscribe_key: 'demo'
});
setInterval(... | JavaScript | 0.000001 | @@ -222,16 +222,74 @@
io(2);%0A%0A
+var xo = x.read();%0Avar yo = y.read();%0Avar zo = z.read();%0A%0A
var pubn
@@ -401,24 +401,29 @@
v = x.read()
+ - xo
;%0A var yv
@@ -429,24 +429,29 @@
v = y.read()
+ - yo
;%0A var zv
@@ -461,16 +461,21 @@
z.read()
+ - zo
;%0A %0A
|
91ddac75df51f1e21e505a2ad868411114e822fd | add comment | main.js | main.js | var request_test = require('./mod_sample.js');
request_test.simpleRequest("http://www.yahoo.co.jp", function(error, status, body){
console.log("Status:" + status);
});
| JavaScript | 0 | @@ -1,8 +1,17 @@
+// entry%0A
var requ
|
ce0d459fabbb00f81e14faa2205a0eee2e878bcd | Replace uploadsPath variable with string literal. | main.js | main.js | 'use strict';
var fs = require('fs');
var readTextFileSync = require('read-text-file-sync');
var path = require('path');
var extname = path.extname;
var basename = path.basename;
var realpathSync = fs.realpathSync;
var express = require('express');
var app = express();
var uploadsPath = 'uploads';
var multer = require... | JavaScript | 0 | @@ -268,37 +268,8 @@
();%0A
-var uploadsPath = 'uploads';%0A
var
@@ -324,27 +324,27 @@
%7B dest:
+'./
uploads
-Path
+'
%7D);%0Avar
@@ -869,23 +869,18 @@
h =
+'./
uploads
-Path + '
/' +
@@ -1816,19 +1816,19 @@
tic(
+'./
uploads
-Path
+'
));%0A
|
de75a09568339bed2a34bc39d8b56c4226b1496e | enable ctrl-enter | main.js | main.js | define(function (require, exports, module) {
"use strict";
var $ = require('jquery');
var Jupyter = require('base/js/namespace');
var events = require('base/js/events');
var utils = require('base/js/utils');
var CodeCell = require('notebook/js/codecell').CodeCell;
var Scratchpad = function (nb) {
va... | JavaScript | 0.000011 | @@ -1786,24 +1786,60 @@
ute_action,%0A
+ 'ctrl-enter': execute_action,%0A
'ctrl-
|
a150e4ed048180af00b6b9d3eb2e193d054e3ff7 | update open file markers when auto-commands are executed | main.js | main.js | 'use strict';
var settings = require('./settings/settings'),
atomPerforce = require('./lib/atom-perforce'),
CompositeDisposable = require('atom').CompositeDisposable,
commandsSetup = false,
reactivateCommands = ['autoAdd', 'autoEdit', 'autoRevert'],
observers;
// TODO: if Atom ever publishes an ev... | JavaScript | 0.000001 | @@ -2459,18 +2459,76 @@
le.path)
+%0A .then(atomPerforce.markOpenFiles)
;%0A
-
@@ -3555,32 +3555,94 @@
etPath(), false)
+%0A .then(atomPerforce.markOpenFiles)
;%0A
@@ -4415,16 +4415,82 @@
, false)
+%0A .then(at... |
5e9e54fc83bd20a5b50434e52b25d1c6de30dc6d | fix build | main.js | main.js | const electron = require('electron');
require('electron-reload')(__dirname);
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow;
const path = require('path');
const url = require('url');
// Keep a global reference of... | JavaScript | 0.000001 | @@ -31,17 +31,26 @@
tron');%0A
-%0A
+try %7B%0A
require(
@@ -80,16 +80,35 @@
rname);%0A
+%7D catch (err) %7B%0A%0A%7D%0A
// Modul
|
fe84e63b864670bad83aac06fd193a02a3af24e5 | move to dynmic on dev | main.js | main.js | // setting env var
const env = process.env.NODE_ENV || 'prod';
const electron = require('electron');
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const settings = require('electron-settings');
let mainWindow
function createWindow () {
if (env === 'dev') {
const installExtension = requi... | JavaScript | 0 | @@ -774,16 +774,101 @@
w(win);%0A
+%0A if(env === 'dev') %7B%0A mainWindow.loadURL(%60http://localhost:4444%60);%0A %7D else %7B%0A
mainWi
@@ -919,16 +919,20 @@
.html%60);
+%0A %7D
%0A%0A main
|
0f7d890dff141f83239acc2b82925de921153431 | Add initial tray support | main.js | main.js | var app = require('app'); // Module to control application life.
var BrowserWindow = require('browser-window'); // Module to create native browser window.
// Report crashes to our server.
require('crash-reporter').start();
// Keep a global reference of the window object, if you don't, the window will
// be closed au... | JavaScript | 0 | @@ -18,17 +18,16 @@
('app');
-
// Modu
@@ -104,17 +104,16 @@
indow');
-
// Modu
@@ -148,16 +148,172 @@
window.%0A
+var Menu = require('menu');%0Avar MenuItem = require('menu-item');%0Avar Tray = require('tray');%0AEventEmitter = require('events').EventEmitter%0Avar tray = null;%0A
// Repor
@@ -996,16 +996,51 ... |
eb9f7db5e565b1691963ef2a27f5d6aa4a442efb | remove shouldaction stuff | main.js | main.js | const IP = "127.0.0.1";
const PORT = 8080;
// Enum of requests
var requestType = {
NullRequest : 0,
Handshake : 1,
GameData : 2
};
var buttonState = {
Released : 0,
Pressed : 1
};
var action = {
up : 0,
down: 1,
left: 2,
right: 3,
restart: 4
};
var prevStatus = [];
for (i = 4; i < 9; i++) {
prevStatus[i]... | JavaScript | 0.000001 | @@ -388,33 +388,8 @@
lse;
-%0Avar shouldAction = true;
%0A%0Ach
@@ -2445,32 +2445,8 @@
null
- && shouldAction == true
) %7B%0A
@@ -3191,39 +3191,8 @@
nt);
-%0A%0A%09%09%09%09%09%09//shouldAction = false;
%0A%09%09%09
@@ -3468,58 +3468,8 @@
%0A%7D%0A%0A
-function allowAction()%0A%7B%0A%09shouldAction = true;%0A%7... |
a0d6efb83b02c93969be766fece4b013b0a713a4 | add play button for sound on mobile device | main.js | main.js | var numPlanet = 0;
AFRAME.registerComponent('cursor-destroy', {
init : function () {
var explosion_image = document.getElementById('explosion');
var audio = document.getElementById("audio");
this.el.addEventListener('click', function () {
// audio.play();
var targ... | JavaScript | 0 | @@ -1011,17 +1011,48 @@
%7D%0A%7D);%0A%0A
-%0A
+window.onload = function()%7B%0A
var butt
@@ -1090,16 +1090,20 @@
asd%22);%0A%0A
+
button.o
@@ -1120,24 +1120,28 @@
unction() %7B%0A
+
var audi
@@ -1178,16 +1178,20 @@
udio%22);%0A
+
audi
@@ -1204,10 +1204,18 @@
();%0A
-%7D;
+ %7D;%0A%... |
dd2e221964eed82465ee052a1df3fb792f8b6a4a | remove twig from file extension since htmlmixed mode already declare it | main.js | main.js | /*jslint indent: 4 */
/*global brackets, define */
define(function (require) {
"use strict";
var CodeMirror = brackets.getModule("thirdparty/CodeMirror2/lib/codemirror"),
LanguageManager = brackets.getModule("language/LanguageManager"),
utils = require("src/utils"),
TwigMixedMode = re... | JavaScript | 0 | @@ -2037,16 +2037,8 @@
s: %5B
-%22twig%22,
%22htm
|
52a10877156511d779991807f5b04ade385b521f | Fix opening cloud accounts in new window | main.js | main.js | 'use strict';
// Require Electron modules
const app = require('electron').app;
const shell = require('electron').shell;
const ipc = require('electron').ipcMain;
const BrowserWindow = require('electron').BrowserWindow;
const Menu = require('electron').Menu;
// Require Node modules
... | JavaScript | 0.000011 | @@ -2367,18 +2367,24 @@
%0A%09%09if (/
+(app%7C
my
+)
%5C.active
|
027a1b073d22368e1bae2f2cebb6615dfc95bb04 | allow small rulers | main.js | main.js | 'use strict';
const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const globalShortcut = electron.globalShortcut;
const ipc = electron.ipcMain;
const Tray = electron.Tray;
const Menu = electron.Menu;
const path = require('path');
const dataStore = require('./src... | JavaScript | 0.00027 | @@ -1061,17 +1061,17 @@
idth': 1
-5
+0
1,%0A%09%09'mi
@@ -1082,18 +1082,18 @@
ight': 1
-26
+01
,%0A%09%09'sta
|
35f5821e7c6f58a09ec2a3845c3901832a4cc25e | add adapter-core | main.js | main.js | /* jshint -W097 */// jshint strict:false
/*jslint node: true */
'use strict';
const utils = require('./lib/utils'); // Get common adapter utils
const SimpleAPI = require('./lib/simpleapi.js');
const LE = require(utils.controllerDir + '/lib/letsencrypt.js');
const adapterName = require('./packa... | JavaScript | 0 | @@ -84,24 +84,16 @@
t utils
-
= requir
@@ -99,19 +99,30 @@
re('
-./lib/utils
+@iobroker/adapter-core
');
|
37885bdf5c5bb702d9b3d1c5a951be54ee8a56d7 | Change builders to 3 | main.js | main.js | /**
* Created by truthlighting on 9/14/2016.
*/
var roleHarvester = require('role.harvester');
var roleUpgrader = require('role.upgrader');
var roleBuilder = require('role.builder');
if (!Memory.hCreepID) {
Memory.hCreepID = 1;
}
if (!Memory.bCreepID) {
Memory.bCreepID = 1;
}
if (!Memory.uCreepID) {
Memor... | JavaScript | 0.000046 | @@ -1711,17 +1711,17 @@
ength %3C
-0
+3
&& harv
|
21788cd479794ae8fedfa48819aa9ff540a59748 | migrate config dir & file | moor.js | moor.js | #!/usr/bin/env node
'use strict'
const fs = require('fs')
const os = require('os')
const path = require('path')
const exec = require('child_process').exec
const OTP = require('otp')
const mkdirp = require('mkdirp')
const program = require('commander')
const notifier = require('update-notifier')
const pkg = require('.... | JavaScript | 0 | @@ -451,17 +451,20 @@
)%0Aconst
-c
+oldC
onfigPat
@@ -497,16 +497,112 @@
oorrc')%0A
+const configDir = path.join(homedir, '.moor')%0Aconst configPath = path.join(configDir, 'moorrc')%0A
const tu
@@ -788,24 +788,24 @@
'darwin') %7B%0A
-
exitWithEr
@@ -840,16 +840,301 @@
ed')%0A%7D%0A%0A
+// run migrations%0Ami... |
bbe75318b48a7820af99e33ffc661aa11019b4f4 | Revert mod-to-bitwise-and peephole optimization. | ncph.js | ncph.js | // Copyright (C) 2016 ncph Authors
// This file is free software: You can redistribute it and/or modify it under
// the terms of the GNU AGPLv3 or later. See COPYING for details.
// Implementation of the Fischer-Yates-Durstenfeld O(n) shuffle algorithm. This
// variant is non-destructive (does not modify the input arr... | JavaScript | 0 | @@ -1089,20 +1089,21 @@
23)
-& 0xffffffff
+%25 0x100000000
;%0A%7D;
|
2c3c097286859ce9ab373c24b6a9e8792d561721 | Update calc, removed e.deltaY | smooth.js | smooth.js | var Smooth = function(opt) {
if (!(this instanceof Smooth))
return new Smooth(opt)
opt = opt || {}
var rAF;
this.pos = { targetX: 0, targetY: 0, currentX: 0, currentY: 0 };
this.direction = opt.direction || 'vertical';
this.section = opt.section || document.querySelector('.vs-section');
this.ease =... | JavaScript | 0.000002 | @@ -1089,16 +1089,20 @@
e.deltaX
+; //
%7C%7C e.de
@@ -1105,17 +1105,16 @@
e.deltaY
-;
%0A%09%0A%09this
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.