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 |
|---|---|---|---|---|---|---|---|
ddeb23f9debf691616a97dd0df502dd9748be510 | Make refresh_ transient; not intended for serialization. | js/foam/oauth2/OAuth2.js | js/foam/oauth2/OAuth2.js | /**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0 | @@ -1307,16 +1307,39 @@
resh_',%0A
+ transient: true,%0A
la
|
60f1e1d37b58e7b19bc0d9849509ccf6306c5f92 | Remove code removing a key I removed from package.json (#4859) | scripts/build/build.js | scripts/build/build.js | "use strict";
const chalk = require("chalk");
const execa = require("execa");
const minimist = require("minimist");
const path = require("path");
const stringWidth = require("string-width");
const bundler = require("./bundler");
const bundleConfigs = require("./config");
const util = require("./util");
const Cache = ... | JavaScript | 0 | @@ -2080,36 +2080,8 @@
es;%0A
- delete pkg%5B%22jest-junit%22%5D;%0A
pk
|
45f0906fbbdbc0d057bb64eacce2879d30c3e6b0 | set valid coordinates for checkin | test/fixtures/checkins.js | test/fixtures/checkins.js | 'use strict';
const objectId = require('mongoose').Types.ObjectId;
module.exports = [
{
_id: objectId('200000000000000000000000'),
timestamp: new Date('2016-07-07T20:32:49.923Z'),
location: { type: 'Point', coordinates: [-117.220406, 32.719464] },
public: false,
ntb_steder_id: objectId('40000000... | JavaScript | 0.000001 | @@ -230,38 +230,52 @@
nates: %5B
--117.220406, 32.719464
+8.312466144561768, 61.63644183145977
%5D %7D,%0A
|
37ff560439d52d5b753abae17d501c150402a4dd | Tweak constructor.name test to work in older IE (which doesn't support the property in the first place). | test/test.js | test/test.js | // if testing via the CLI, use the --require options to grab the helper:
// `mocha --require test_helper_node.js`
describe("Newless functions", function() {
it("should make a constructor work without `new`", function() {
var Construct = newless(function() {});
var obj = Construct();
expect(obj).to.be.a(... | JavaScript | 0 | @@ -1515,32 +1515,78 @@
%22, function() %7B%0A
+ var implementation = function Maker() %7B%7D;%0A
var Construc
@@ -1597,35 +1597,30 @@
newless(
-function Maker() %7B%7D
+implementation
);%0A e
@@ -1654,15 +1654,27 @@
ual(
-%22Maker%22
+implementation.name
);%0A
|
56488b4afa345a4805348f6b3a5888f34f85176b | Fix image visualization displaying out of bonds for large images | js/i2mx_image_manager.js | js/i2mx_image_manager.js | /*
#
# i2mx_image_manager.js - v0.1-Alpha
# Apache v2 License
#
*/
window.i2mx.ImageManager = new (function() {
this.files = [];
this.event = {};
this.event.addFiles = function() {
var files = i2mx.Elements.fileInput().files;
for(var i=0; i<files.length; i++) {
i2mx.ImageManag... | JavaScript | 0 | @@ -1063,16 +1063,60 @@
nt(%22%3Cimg
+ style=%5C%22max-height: 100%25; max-width: 100%25%5C%22
src=%5C%22%22
|
da50bf5019d8e0701504dd908955e8823d552234 | Update E2E-ws.js | test/functional/E2E-ws.js | test/functional/E2E-ws.js | /** jshint node:true */
/**
* E2E test for Push Notifications.
* This is not a unit test. Just first run the server with the default
* configurations (in config.js.template in the src/ dir)
*
* $ node start.js
*
* and then run this test with:
*
* $ node E2E.js 'wss://ua.push.tefdigital.com:443/'
*
* It expec... | JavaScript | 0 | @@ -632,17 +632,17 @@
IZED = '
-1
+0
';%0A%0A(fun
@@ -6113,8 +6113,9 @@
%7D%0A %7D%0A);
+%0A
|
c6a05b01ce7a806fc036d12ad2f782e1364862f9 | Update absolute path for test artist.model location to a relative | test/test.js | test/test.js | require('dotenv').config();
const mongoose = require('mongoose'),
should = require('should'),
Artist = require('/Users/acr/www/rapworldmap/app/modules/artists/artist.model');
// Connect to db
mongoose.connect(process.env.DB_URI, {
useMongoClient: true
});
describe('Artists', function(){
beforeEach(function(d... | JavaScript | 0 | @@ -114,34 +114,10 @@
re('
-/Users/acr/www/rapworldmap
+..
/app
|
3ca791a8c26261727ce30e21a73d69719ce19ced | support jsonp | server/app.js | server/app.js | var fs = require("fs");
var express = require('express');
var bodyParser = require('body-parser');
var md5 = require("md5");
var app = express();
var log4js = require('log4js');
log4js.configure({
appenders: [
{type: 'file', filename: 'logs/app.log', maxLogSize: 10485760, backups: 10, category: 'info'}
... | JavaScript | 0 | @@ -780,24 +780,70 @@
r.json());%0A%0A
+app.use('/static', express.static('public'));%0A
app.get('/',
@@ -2481,36 +2481,37 @@
%7D%0A res.
-send
+jsonp
(data);%0A %7D);%0A
|
3bdaab0bb3d46865099133e1d7da01f35fa555c4 | Fix dragging a node to another node | js/id/modes/drag_node.js | js/id/modes/drag_node.js | iD.modes.DragNode = function(context) {
var mode = {
id: 'drag-node',
button: 'browse'
};
var nudgeInterval,
activeIDs,
wasMidpoint,
cancelled,
hover = iD.behavior.Hover().altDisables(true);
function edge(point, size) {
var pad = [30, 100, 30, 10... | JavaScript | 0.000002 | @@ -3653,32 +3653,127 @@
== entity.id) %7B%0A
+ // %60entity%60 is last so it will survive and it's parent ways can be selected below.%0A
cont
@@ -3825,20 +3825,20 @@
ct(%5B
+d.id,
entity
-.id, d
.id%5D
|
30445ff3f5f3de2eb76efabb477dabf79fd4d56c | Comment out queue for now | scripts/contextmenu.js | scripts/contextmenu.js | $(window).keyup(function (event) {
if (event.keyCode === 27 && $('#contextmenu').length) {
$('#context-menu-blocker, #contextmenu').remove();
}
});
function showContextMenu(buttons, x, y) {
var contextmenu = $('<ul id="contextmenu" />');
$.each(buttons, function(i, item) {
$('<li class... | JavaScript | 0 | @@ -5981,16 +5981,18 @@
%7D,%0A%09%09
+/*
%7B%0A
@@ -6289,16 +6289,18 @@
%7D,
+*/
%0A%09%09%7B%0A%09%09%09
|
bfd89e2d14066c294c2674c2827abbc8c922dcfe | Fix enter key on feature list | js/id/ui/feature_list.js | js/id/ui/feature_list.js | iD.ui.FeatureList = function(context) {
var geocodeResults;
function featureList(selection) {
var header = selection.append('div')
.attr('class', 'header fillL cf');
header.append('h3')
.text(t('inspector.feature_list'));
function keypress() {
var q... | JavaScript | 0.000001 | @@ -340,16 +340,78 @@
'value')
+,%0A items = list.selectAll('.feature-list-item')
;%0A
@@ -455,16 +455,32 @@
q.length
+ && items.size()
) %7B%0A
@@ -501,56 +501,13 @@
ick(
-list.selectAll('.feature-list-item:first-child')
+items
.dat
|
d786e90c9e6eb1c521dea9a0d64e487e5c261c8d | Update banner text | webpack.config.js | webpack.config.js | var pkg = require('./package.json');
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var nib = require('nib');
var publicname = pkg.name.replace(/^@\w+\//, ''); // Strip out "@trendmicro/" from package name
var banner = [
publicname + ' v... | JavaScript | 0.000001 | @@ -383,17 +383,16 @@
nd Micro
-,
Inc.',%0A
|
bc3aef5a924da891847f3962f7b921e720694b6a | add testnet bip49 example | test/integration/bip32.js | test/integration/bip32.js | /* global describe, it */
var assert = require('assert')
var bigi = require('bigi')
var bip39 = require('bip39')
var bitcoin = require('../../')
var crypto = require('crypto')
var ecurve = require('ecurve')
var secp256k1 = ecurve.getCurveByName('secp256k1')
describe('bitcoinjs-lib (BIP32)', function () {
it('can i... | JavaScript | 0 | @@ -1747,32 +1747,846 @@
38sP5Au')%0A %7D)%0A%0A
+ it('can create a BIP49, bitcoin testnet, account 0, external address', function () %7B%0A var mnemonic = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about'%0A var seed = bip39.mnemonicToSeed(mnemonic)%0A var root... |
b34f6d22de643a84536c67e5cfb3dad174d49e94 | Make sure server gets stopped even in error cases. Assert that initial url list is as expected | test/test.js | test/test.js | 'use strict';
var assert = require("assert");
var fs = require('fs');
var middleware = require('../index.js');
//Helper Functions
function fakeReq(server, callback) {
var headers = [];
var buf = [];
server(null, {
end: function(s) {
if (typeof s === 'string') {
buf.push(s);
... | JavaScript | 0.000006 | @@ -3087,137 +3087,8 @@
);%0D%0A
- assert.deepEqual(manifest%5B'NETWORK'%5D, %5B'*'%5D, 'Network section doesn%5C't hold expected value'); //TODO: pull this from opts%0D%0A
@@ -5207,32 +5207,58 @@
done(err);%0D%0A
+ server.stop();%0D%0A
return
@@ -5365,36 +5365,254 @@
%0D%0A ... |
904afdce35c2eb930f4a5ebfd56ad7a9df7ab6b5 | Print path to dropbox folder | scripts/folder/load.js | scripts/folder/load.js | var fs = require("fs-extra");
var helper = require("helper");
var join = require("path").join;
var blog_dir = join(helper.rootDir, "blogs");
var git_data_dir = join(helper.rootDir, "app", "clients", "git", "data");
var load_db = require("../db/load");
var dumps = join(__dirname, "data", "dumps");
var gitClientData = jo... | JavaScript | 0.000001 | @@ -696,24 +696,64 @@
unction() %7B%0A
+ console.log(DROPBOX_FOLDER_PATH);%0A
proces
|
72dce7db863dd944231a21f49d00c9063d3968b0 | Add rerun and empty to integration tests | test/integration/index.js | test/integration/index.js | /* eslint-disable no-console, global-require, import/no-extraneous-dependencies, import/no-dynamic-require */
const Fs = require('fs');
const Path = require('path');
process.chdir(__dirname); // Enable running from package script
const assert = require('assert');
const { exec } = require('child_process');
function... | JavaScript | 0 | @@ -1965,16 +1965,284 @@
%0A %7D);
+%0A%0A // empty%0A const arr = %5B1, 2, 4%5D;%0A modules.empty(arr);%0A assert.equal(arr.length, 0);%0A%0A // rerun%0A let counter = 0;%0A modules%0A .rerun(() =%3E counter += 1)%0A .every(1)%0A .asLongAs(() =%3E counter %3C 2)%0A .start();%0A%0A setTimeout(()... |
1f9459951ebc2565932f7b546a62914181782151 | Fix auth-flow example | examples/auth-flow/app.js | examples/auth-flow/app.js | import React from 'react';
import HashHistory from 'react-router/lib/HashHistory';
import { Router, Route, Link, Navigation } from 'react-router';
import auth from './auth';
var App = React.createClass({
getInitialState() {
return {
loggedIn: auth.loggedIn()
};
},
setStateOnAuth(loggedIn) {
th... | JavaScript | 0.002134 | @@ -5,16 +5,33 @@
rt React
+, %7B findDOMNode %7D
from 'r
@@ -1323,61 +1323,28 @@
var
-%7B nextPathname %7D = this.props.query;%0A var email =
+email = findDOMNode(
this
@@ -1354,28 +1354,16 @@
fs.email
-.getDOMNode(
).value;
@@ -1378,16 +1378,28 @@
pass =
+findDOMNode(
this.ref
@@ -1408,20 +1408,8 @@
... |
56d4aa11fac3cfaabe9ece2526de68b18c87352b | fix es6 stuff for now | app/assets/javascripts/minimum_viable_product/init/modals.js | app/assets/javascripts/minimum_viable_product/init/modals.js | $(function() {
$('.modal').on('shown.bs.modal', ()=>{
$('form').resetClientSideValidations()
})
});
| JavaScript | 0 | @@ -47,12 +47,19 @@
l',
-()=%3E
+function(e)
%7B%0A
|
9d3888b311eff7dc33752af61996bf8b1e1d10a6 | Add back missing externals configuration for jQuery | webpack.config.js | webpack.config.js | 'use strict';
var path = require('path');
var webpack = require('webpack');
module.exports = {
context: path.join(__dirname, "public"),
entry: "./index.js",
output: {
path: path.join(__dirname, "public"),
filename: "bundle.js"
},
devtool: false, //'source-map',
target: 'web',
module: {
l... | JavaScript | 0.000001 | @@ -650,16 +650,57 @@
()%0A %5D,%0A
+ externals: %7B%0A jquery: 'jQuery'%0A %7D,%0A
node:
|
015c728e4b8e788c7419213db05e881b0d2d38d4 | change sourcemap style | webpack.config.js | webpack.config.js | const path = require('path')
const fs = require('fs')
const webpack = require('webpack')
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
const _ = require('lodash')
const banner = fs.readFileSync('res/templates/banner.txt', 'utf-8')
const env = _.has(process.env, 'NODE_ENV') ? process.env.NODE_E... | JavaScript | 0 | @@ -465,16 +465,29 @@
al' : '#
+cheap-module-
source-m
|
fc4c51a8ab20e102ac555520cf36b2ae211f162f | Include services and new notes in the newsfeed. | app/assets/javascripts/student_profile_v2/profile_details.js | app/assets/javascripts/student_profile_v2/profile_details.js | (function() {
window.shared || (window.shared = {});
var dom = window.shared.ReactHelpers.dom;
var createEl = window.shared.ReactHelpers.createEl;
var merge = window.shared.ReactHelpers.merge;
var FeedHelpers = window.shared.FeedHelpers;
var QuadConverter = window.shared.QuadConverter;
var styles = {
... | JavaScript | 0 | @@ -3751,24 +3751,536 @@
;%0A %7D);%0A
+ _.each(this.props.feed.event_notes, function(obj)%7B%0A events.push(%7B%0A type: 'Note',%0A message: obj.text,%0A date: moment(obj.updated_at).toDate() // TODO: should we care more about created vs updated?%0A %7D);%0A %7D... |
27496d30fb71eabd0ed1b4aae561eabcce36b2e7 | clean up redundant block in tests | test/test.js | test/test.js | /*eslint no-unused-expressions: 0*/
'use strict';
var postcss = require('postcss'),
expect = require('chai').expect,
plugin = require('../');
var test = function (input, output, opts, done) {
postcss([ plugin(opts) ]).process(input).then(function (result) {
expect(result.css).to.eql(output);
expect(... | JavaScript | 0.000001 | @@ -460,131 +460,8 @@
() %7B
-%0A var input = '',%0A output = '',%0A opts = %7B%7D;%0A%0A afterEach(function(done) %7B%0A test(input, output, opts, done);%0A %7D);
%0A%0A
|
69e231fb83889d58ab4c7f0bc2f1287a01d121e3 | use setter for onDetached | test/integration/utils.js | test/integration/utils.js | const config = require('../../server/init/configuration')
const Promise = require('bluebird')
const rewire = require('rewire')
const consumeMessages = rewire('../../messages/consumeMessages')
function sendAndWaitUntilMessageProcessed (message) {
console.log('Send and read a message', message)
const resultPromise =... | JavaScript | 0 | @@ -780,37 +780,27 @@
ges.
-__set__('d
+onD
etached
-',
+ =
()
-
=%3E
-
%7B%7D
-)
%0A%0A
|
e572b0e31789a1b2c720f279651eb7f945586d99 | Undo code deduplication attempts. | webpack.config.js | webpack.config.js | 'use strict'
var webpack = require('webpack');
var nodeExternals = require('webpack-node-externals');
// generating banner
var fs = require('fs');
var license = fs.readFileSync('./LICENSE', 'utf8').toString()
var config = {
output: {
path: __dirname + '/build',
filename: '[name].js',
libra... | JavaScript | 0 | @@ -1803,99 +1803,8 @@
%7D,%0A
- externals: %5BnodeExternals()%5D, // in order to ignore all modules in node_modules folder%0A
%7D%0A%0Am
|
d8b25254972fee52b01ef6ea38f08fddd520122b | disable hovering | app/components/visualization/page-setup/timeline/timeline.js | app/components/visualization/page-setup/timeline/timeline.js | import Component from '@ember/component';
import { inject as service } from "@ember/service";
import Evented from '@ember/object/evented';
import debugLogger from 'ember-debug-logger';
import Chart from "chart.js";
import $ from 'jquery';
export default Component.extend(Evented, {
// No Ember generated container
... | JavaScript | 0.000002 | @@ -4049,35 +4049,36 @@
enabled:
-tru
+fals
e,%0A
|
7fabb31e17f6240840cbe11ec5ff1cfa16e4a5fe | Include src directory in linter targets | webpack.config.js | webpack.config.js | var webpack = require('webpack');
var path = require('path');
var CleanPlugin = require('clean-webpack-plugin');
var HtmlPlugin = require('html-webpack-plugin');
module.exports = {
devtool: 'source-map',
entry: {
candela: ['./src/index.js'],
demo: './app/demo/index.js',
resize: './app/resize/index.js'... | JavaScript | 0 | @@ -1065,24 +1065,78 @@
include:
+ %5B%0A path.resolve(__dirname, 'src'),%0A
path.resolv
@@ -1154,16 +1154,26 @@
, 'app')
+%0A %5D
,%0A
|
67f0fecd6a4b03a15899abcb64a2f3a81ed58326 | update build to work on node projects | webpack.config.js | webpack.config.js | const path = require('path');
const { CheckerPlugin } = require('awesome-typescript-loader')
module.exports = {
entry: path.join(__dirname, 'src/index'),
output: {
path: path.join(__dirname, 'dist'),
filename: 'bayes.js',
library: 'bayesjs',
libraryTarget: 'umd',
},
resolve: {
extensions: [... | JavaScript | 0.000001 | @@ -278,16 +278,79 @@
'umd',%0A
+ globalObject: %60typeof self !== 'undefined' ? self : this%60,%0A
%7D,%0A r
|
bce973fa925fb24526f1cbbbb4f71fc5e7429682 | Add test for multiple arguments. | test/test.js | test/test.js | var expect = require('chai').expect;
var tadpole = require('..');
var fib = function (n) {
if (n === 0){
return 0;
}
if (n === 1){
return 1;
}
else {
return fib(n-1) + fib(n-2);
}
function fib (n) {
if (n === 0){
return 0;
}
if (n === 1){
return 1;
}
else {
... | JavaScript | 0 | @@ -2374,12 +2374,553 @@
%0A %7D);%0A%0A
+ it('handles functions with multiple arguments', function(done)%7B%0A var sum = function()%7B%0A return Array.prototype.reduce.call(arguments, function(a, b)%7B%0A return a+b;%0A %7D);%0A %7D;%0A%0A tadpole.addFunction(%7Bname: 'sum', func: sum%7D)%... |
bd145a326c34f4d83a099840cd77d577de48e8be | add lowercase name test | test/test.js | test/test.js | const assert = require('assert');
const fs = require('fs-extra');
const Validator = require('jsonschema').Validator;
describe('name files', () => {
it('should contain valid JSON', done => {
(async () => {
const files = await fs.readdir('./collection');
for (const fileName of files)... | JavaScript | 0.999899 | @@ -109,16 +109,93 @@
lidator;
+%0Aconst path = require('path');%0A%0Aconst files = fs.readdirSync('./collection');
%0A%0Adescri
@@ -292,69 +292,8 @@
%3E %7B%0A
- const files = await fs.readdir('./collection');%0A%0A
@@ -382,38 +382,32 @@
const contents =
- await
fs.readFile('./
@@ -394,32 +394,3... |
9b7497ec0ca8310885dfce53a21f06f8bfd558a0 | fix test error | test/test.js | test/test.js | 'use strict';
let chai = require('chai');
let expect = chai.expect;
let Post = require('./database/models/Post');
let User = require('./database/models/User');
let knex = require('./database').knex;
let bookshelf = require('./database').bookshelf;
let Promise = require('bluebird');
describe('bookshelf-slug', () => {
... | JavaScript | 0.000002 | @@ -350,20 +350,16 @@
before((
-done
) =%3E %7B%0A
@@ -361,16 +361,23 @@
%3E %7B%0A
+return
knex.raw
@@ -449,69 +449,8 @@
%22))%0A
- .then(model =%3E done())%0A .catch(err =%3E done(err));%0A
%7D)
|
384e85322a18f00e9c4a090964e33cc7c98b8bdc | Fix tests | test/test.js | test/test.js | var raf = require('raf');
var Gridr = require('../index.js');
require('insert-css')('#c{outline:#000 solid 1px;height:45vmin;width:90vmin;}body,html{height:100vh}body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:box;display:flex;-webkit-box-align:center;-o-box-align:center;-ms-flex-align:center... | JavaScript | 0.000003 | @@ -54,16 +54,22 @@
dex.js')
+.Gridr
;%0Arequir
@@ -488,71 +488,8 @@
ter%7D
-.controlls%7Bposition:absolute;top:0;left:0%7D*%7Bmargin:0;padding:0%7D
');%0A
|
f21b2da857e52162c9e096ad8c67cb9deb3d2c2d | update test/test-runner — streamline args | test/test.js | test/test.js | // use this file to automate the running of tests.
var runr = require('../task/runr')
var spawn = require('../src/cli/spawn-commands')
var lint = require('./lint')
function defs () {
spawn([{cmd: './painless', args: ['spec/**/*.js']}])
}
function cover () {
var type = runr.opts.text ? 'text' : 'html'
... | JavaScript | 0 | @@ -454,29 +454,8 @@
gs =
- runr.opts.file%0A ?
%60sp
@@ -484,34 +484,16 @@
file
-%7D.js%60%0A : %60spec/$%7Bdir%7D/*
+ %7C%7C '*'%7D
.js%60
|
760246375944ea8c3eff1984933dbb3f45de8bb0 | Change package to `var` from `const` | webpack.config.js | webpack.config.js | "use strict";
var path = require('path');
var webpack = require('webpack');
// for PostCSS
var precss = require('precss');
var autoprefixer = require('autoprefixer')
// Plugin imports:
var Clean = require('clean-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CompressionPlugin = ... | JavaScript | 0 | @@ -913,13 +913,11 @@
%5D;%0A%0A
-const
+var
pkg
|
a609d03f1a5385f2719c543f8fcf44bc27d2b2ee | Update webpack config to work on windows | webpack.config.js | webpack.config.js | var path = require('path');
module.exports = {
entry: [
"es6-shim",
"zone.js",
"reflect-metadata",
"angular2/angular2",
"ionic/ionic",
"web-animations.min",
"./www/app/app.js"
],
output: {
path: __dirname + "/www",
filename: path.join(__dirname, 'build', 'js', 'app.bundle.js'),... | JavaScript | 0 | @@ -21,16 +21,150 @@
path');%0A
+var wwwPath = path.resolve(__dirname, 'www');%0Avar appPath = path.join(wwwPath, 'app');%0Avar appJsPath = path.join(appPath, 'app.js');%0A%0A
module.e
@@ -313,16 +313,19 @@
in%22,%0A
+ //
%22./www/
@@ -336,16 +336,30 @@
app.js%22%0A
+ appJsPath%0A
%5D,%0A o
@@ -381,79 +... |
598538198bab1c4b297606cb0a500f4183a4752d | Fix production website | webpack.config.js | webpack.config.js | const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const sourceDirectory = path.resolve(__dirname, 'examples/src');
const targetDirectory = path.resolve(__dirname, 'examples/dist');... | JavaScript | 0.000052 | @@ -1179,17 +1179,32 @@
icPath:
-'
+isDev ? '/' : '.
/',%0A %7D,
|
e5adc5a37cc014ce6ca83a4be2fd4b8bc2557fe0 | Add 'coveragePathIgnorePatterns' to jest config | scripts/jest/config.js | scripts/jest/config.js | 'use strict';
module.exports = {
rootDir: process.cwd(),
roots: ['<rootDir>/packages'],
setupFiles: ['raf/polyfill'],
setupTestFrameworkScriptFile: require.resolve('./setupFramework.js'),
snapshotSerializers: ['enzyme-to-json/serializer'],
testEnvironment: 'jsdom',
timers: 'fake'
};
| JavaScript | 0.000006 | @@ -27,16 +27,117 @@
rts = %7B%0A
+ coveragePathIgnorePatterns: %5B'/node_modules/', '%3CrootDir%3E/packages/react-native-web/src/vendor/'%5D,%0A
rootDi
|
d71b6579030499e33e0f9cc0cabfa27a757607ef | fix missing options | test/report/gardr.test.js | test/report/gardr.test.js | var referee = require('referee');
var assert = referee.assert;
var refute = referee.refute;
var help = require('../lib/validateHelpers.js');
var hook = require('../../lib/report/hook/gardr.js');
describe('Gardr hooks', function () {
it('should store probes', function () {
var options = {
'ke... | JavaScript | 0.999998 | @@ -1283,24 +1283,57 @@
Options = %7B%0A
+ width: 980,%0A height: 225,%0A
options:
@@ -3591,32 +3591,81 @@
var options = %7B%0A
+ width: 980,%0A height: 225,%0A
opti
@@ -3726,17 +3726,17 @@
eight: 4
-5
+0
0%0A
@@ -3920,32 +3920,90 @@
.error.length, 1
+, '400 is h... |
a968c8e4dc56351c07e36e51b1548aaaa4551d43 | improve build speed by ignoring node_modules | webpack.config.js | webpack.config.js | var _ = require("lodash");
var glob = require("glob");
var path = require("path");
var exports = [];
glob.sync('{app/modules/**,app/installer/**,app/system/**,packages/**}/webpack.config.js').forEach(function (file) {
var dir = path.join(__dirname, path.dirname(file));
exports = exports.concat(require('./' + f... | JavaScript | 0.000002 | @@ -13,16 +13,16 @@
ire(
-%22
+'
lodash
-%22
+'
);%0Av
@@ -43,14 +43,14 @@
ire(
-%22
+'
glob
-%22
+'
);%0Av
@@ -71,14 +71,14 @@
ire(
-%22
+'
path
-%22
+'
);%0Av
@@ -184,16 +184,57 @@
nfig.js'
+, %7Bignore: 'packages/**/node_modules/**'%7D
).forEac
|
39eb73ca7fd482d20723b9f8360946d803471459 | update to webpack | webpack.config.js | webpack.config.js | // For info about this file refer to webpack and webpack-hot-middleware documentation
// Rather than having hard coded webpack.config.js for each environment, this
// file generates a webpack config for the environment passed to the getConfig method.
import webpack from 'webpack';
import path from 'path';
import Extrac... | JavaScript | 0 | @@ -1639,16 +1639,90 @@
slint'%5D
+%7D,%0A %7B test: /%5C.(jpe?g%7Cpng%7Cgif%7Csvg)$/i, loaders: %5B'file'%5D
%7D%5D;%0A%0A i
|
4d9f6b1210c475bbfd90aa82a64f7260bbf35395 | Add empty lines | lib/node_modules/@stdlib/math/base/special/logit/lib/logit.js | lib/node_modules/@stdlib/math/base/special/logit/lib/logit.js | 'use strict';
// MODULES //
var isProbability = require( '@stdlib/math/base/assert/is-probability' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var ln = require( '@stdlib/math/base/special/ln' );
var PINF = require( '@stdlib/math/constants/float64-pinf' );
var NINF = require( '@stdlib/math/constants/f... | JavaScript | 0.999998 | @@ -513,16 +513,18 @@
~-1.386%0A
+*%0A
* @examp
@@ -518,32 +518,32 @@
86%0A*%0A* @example%0A
-
* var y = logit(
@@ -570,16 +570,18 @@
~2.197%0A
+*%0A
* @examp
@@ -617,32 +617,34 @@
// returns NaN%0A
+*%0A
* @example%0A* var
@@ -658,24 +658,24 @@
git( 1.5 );%0A
-
* // returns
@@ -679,16 +679,18 @@
rns NaN%0... |
8bee111ced8ee8652c9e02b3e7806a322a7572a7 | remove seemingly unnecessary NoErrorsPlugin | webpack.config.js | webpack.config.js | 'use strict'
var path = require('path')
var webpack = require('webpack')
var AssetsPlugin = require('assets-webpack-plugin')
var IS_DEVELOPMENT_MODE = require('./is-development-mode')
module.exports = {
debug: false,
devtool: IS_DEVELOPMENT_MODE ? 'cheap-module-eval-source-map' : 'source-map',
entry: {
... | JavaScript | 0.000006 | @@ -1495,96 +1495,8 @@
time
-%0A new webpack.NoErrorsPlugin() // This allows the server to continue after errors
%0A%0A
|
44915f7094278afa8d493be8f8d1c0b66303402e | Update errorDetails.js | lib/services/consumptionManagement/lib/models/errorDetails.js | lib/services/consumptionManagement/lib/models/errorDetails.js | /*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
/**
* The details of the error.
*
*/
class ErrorDetails {
/**
* Create a ErrorDetails.
* @member {string} [code] Error code.
* @member ... | JavaScript | 0.000001 | @@ -1,11 +1,177 @@
/*%0A
+ * Copyright (c) Microsoft Corporation. All rights reserved.%0A * Licensed under the MIT License. See License.txt in the project root for %0A * license information. %0A * %0A
* Code
|
bfdb6f24da8a91484aba11e5734cf9c9f39af8c7 | Integrate loaders with webpack | webpack.config.js | webpack.config.js | const path = require('path'),
webpack = require('webpack');
module.exports = {
entry: './app/js/main.js',
output: {
path: path.join(__dirname, './docs'),
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.js(x)?$/,
exclude: /node_modules/,
loader: "babel-loader",
... | JavaScript | 0.000001 | @@ -369,16 +369,108 @@
%7D%0A
+ %7D,%7B%0A test: /%5C.scss$/,%0A loaders: %5B'style-loader', 'css-loader', 'sass-loader'%5D%0A
%7D%5D%0A
|
1726002107b6592b8839ee92b70e769d70ffaea4 | Load index.html as a template in webpack | webpack.config.js | webpack.config.js | const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
// `CheckerPlugin` is optional. Use it if you want async error reporting.
// We need this plugin to detect a `--watch` mode. It may be removed later
// after https://github.com/webpack/webpack/issues/3460 will be resolved.
const { ... | JavaScript | 0 | @@ -1399,32 +1399,39 @@
filename: %22index
+_bundle
.js%22,%0A %7D,%0A %7D
@@ -1423,20 +1423,118 @@
js%22,%0A %7D,%0A
+ plugins: %5B%0A new HtmlWebpackPlugin(%7B%0A template: %22src/index.html%22,%0A %7D),%0A %5D,%0A
%7D,%0A%5D;%0A
|
b71aa53282a72cbf01cfcec35eea5401eda08022 | update imports in storer.js | webscraping/node/course-info/storer.js | webscraping/node/course-info/storer.js | /**
* storer.js description:
* After scrape-course-data.r scrapes and outputs json to
* the files in webscraping/r/course-info-jsonfiles/, storer.js
* takes those jsonfiles and pushes their contents to the database.
*
* stumash.js also speaks to people in a bad imperative accent
*/
/**
* imports
*/
let ... | JavaScript | 0 | @@ -32,264 +32,158 @@
*
-After scrape-course-data.r scrapes and outputs json to%0A * the files in webscraping/r/course-info-jsonfiles/, storer.js%0A * takes
+take the json output of scrape-course-data.r and validate it%0A * using json-schema/ajv. If
th
-os
e json
-files and pushes their contents to the da... |
c2d0000ec914af6e36d2d182a66428b3533029b9 | revert assert import | test/test.js | test/test.js | var path = require('path');
var generate = require('markdown-it-testgen');
var assert = require('assert');
describe('markdown-it-video', function requireMarkdownIt() {
var md = require('markdown-it')({
html: true,
linkify: true,
typography: true,
}).use(require('../'));
generate(path.join(__dirname, ... | JavaScript | 0.000001 | @@ -71,40 +71,8 @@
n');
-%0Avar assert = require('assert');
%0A%0Ade
|
64c57e6dfded4a63b74cee5689a1e31f97f3d109 | Disable versioning assets | webpack.config.js | webpack.config.js | let Encore = require("@symfony/webpack-encore");
Encore
.setOutputPath("public/build/")
.setPublicPath("/build")
.cleanupOutputBeforeBuild()
.enableSourceMaps(!Encore.isProduction())
.enableVersioning(Encore.isProduction())
.autoProvidejQuery()
.addEntry("js/app", "./assets/js/app.js")
... | JavaScript | 0.000001 | @@ -192,24 +192,27 @@
ction())%0A
+ //
.enableVers
|
b23f6f2201ef9f29927feb89fc783ff52574d75e | Update biosample.summary display | src/encoded/static/components/typeutils.js | src/encoded/static/components/typeutils.js | 'use strict';
var React = require('react');
// BIOSAMPLE UTILITIES
// Construct a biosample summary string from the biosamples summary_object object.
// `supressOrganism` should be true to NOT render the organism name.
var BiosampleSummaryString = module.exports.BiosampleSummaryString = function(biosample, supressO... | JavaScript | 0 | @@ -121,16 +121,17 @@
iosample
+'
s summar
@@ -151,78 +151,8 @@
ct.%0A
-// %60supressOrganism%60 should be true to NOT render the organism name.%0A%0A
var
@@ -263,29 +263,35 @@
var
-summaryObject
+organismlessSummary
= biosa
@@ -306,577 +306,136 @@
mary
-_object;%0A%0A // Filter out keys for summary_ob... |
b4f4f6c70f976801029f6a4b52087836dafe8454 | Add additional tests, this time for assets | test/test.js | test/test.js | var request = require( 'supertest' ); // bubbling blancmange
var should = require( 'should' );
var app = require( '..' );
describe( 'running Express.js', function () {
it( 'responds with a 404', function ( done ) {
request( app )
.get( '/foo' )
.expect( 404, done );
} );
} );
describe( 'index page', functio... | JavaScript | 0 | @@ -88,16 +88,87 @@
uld' );%0A
+var unlink = require( 'fs' ).unlinkSync;%0Avar path = require( 'path' );%0A
var app
@@ -345,32 +345,709 @@
);%0A%09%7D );%0A%7D );%0A%0A
+describe( 'static files', function () %7B%0A%09before( function () %7B%0A%09%09try %7B%0A%09%09%09unlink( path.join ( __dirname, '/public/index.c... |
0fcb5eb350be60e5a1b318da88b8f2a09965bae6 | change filename | webpack.config.js | webpack.config.js | const path = require('path')
const webpack = require('webpack')
const HtmlPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const FaviconsPlugin = require('favicons-webpack-plugin')
const sourcePath = path.join(__dirname, 'src')
const buildPath = path.join(__dirna... | JavaScript | 0.000109 | @@ -786,14 +786,92 @@
: '
-bundle
+%5Bname%5D.%5Bhash%5D.js',%0A chunkFilename: production ? '%5Bchunkhash%5D.js' : '%5Bname%5D.%5Bhash%5D
.js'
|
8723eeaf4828aae0d8122ff3881d4052554acafb | Comment for "ex6_trelica_mobius.js". | src/example-programs/ex6_trelica_mobius.js | src/example-programs/ex6_trelica_mobius.js |
const mapInInterval = (fn, a, b, n)=>
sequence.map(fn, sequence.intervalDivision(a, b, n));
const enumerateN = mapInInterval;
const enumerateMN = function(fn, u1, u2, m, v1, v2, n) {
return enumerateN((u)=>
enumerateN((v)=>fn(u, v), v1, v2, n),
u1, u2, m);
};
const distance = (p1, p2)=>vector.length(point... | JavaScript | 0 | @@ -2338,16 +2338,111 @@
nvalid.%0A
+ // On top of computing the middle coordinates, vector.scale also corrects the invalid value.%0A
return
|
1793e237317ebd4fd61d0687764b734af0ecfedd | Disable exact tile size check and only do coarse test | test/tile.js | test/tile.js | var OSRM = require('../');
var test = require('tape');
var berlin_path = "test/data/berlin-latest.osrm";
test('tile', function(assert) {
assert.plan(2);
var osrm = new OSRM(berlin_path);
osrm.tile([17603, 10747, 15], function(err, result) {
assert.ifError(err);
assert.ok(Math.abs(result.len... | JavaScript | 0 | @@ -103,16 +103,386 @@
%22;%0A%0Atest
+.test('tile check size coarse', function(assert) %7B%0A assert.plan(2);%0A var osrm = new OSRM(berlin_path);%0A osrm.tile(%5B17603, 10747, 15%5D, function(err, result) %7B%0A assert.ifError(err);%0A assert.ok(result.length %3E 35000);%0A %7D);%0A%7D);%0A... |
e63f410080cbdbaf4ba95cce9abe905ad4bbabe6 | fix eslint options reference issue | webpack.config.js | webpack.config.js | /**
* @author NHN Ent. FE Development Lab <dl_javascript@nhnent.com>
* @fileoverview webpack 설정파일
*/
'use strict';
var webpack = require('webpack');
var path = require('path');
var pkg = require('./package.json');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var ENTRY_PATH = './src/js/chart.js'... | JavaScript | 0.000001 | @@ -1884,38 +1884,75 @@
ing%0A
-Object.assign(
+config.module.preLoaders = %5BeslintLoader%5D;%0A
config.eslin
@@ -1952,17 +1952,18 @@
g.eslint
-,
+ =
%7B%0A
@@ -2000,61 +2000,8 @@
%7D
-);%0A%0A config.module.preLoaders = %5BeslintLoader%5D
;%0A
|
e4ecfee5ff8e50fab4efa34c0487379e3cb9d1d8 | Test .get(key) resolves to value | test/unit.js | test/unit.js | import test from 'ava';
import Keyv from '../';
test('Keyv is a function', t => {
t.is(typeof Keyv, 'function');
});
test('Keyv cannot be invoked without \'new\'', t => {
t.throws(() => Keyv()); // eslint-disable-line new-cap
t.notThrows(() => new Keyv());
});
test('Keyv is an instance of Keyv', t => {
t.true(ne... | JavaScript | 0.000001 | @@ -713,28 +713,179 @@
') instanceof Promise);%0A%7D);%0A
+%0Atest('.get(key) resolves to value', async t =%3E %7B%0A%09const store = new Keyv();%0A%09await store.set('foo', 'bar');%0A%09t.is(await store.get('foo'), 'bar');%0A%7D);%0A
|
e1939cef881706d7d2824010b04ff5af1dc8ccb1 | remove unnecessary require | sentinel-gateway/modules/sentinel-analyzer.js | sentinel-gateway/modules/sentinel-analyzer.js | 'use strict'
let Rx = require('rxjs/Rx')
let utf8 = require('./util').utf8
let tokenbucket = require('./sentinel-tokenbucket');
class SentinelAnalyzerModule {
create(broker, configuration) {
this.broker = broker
this.configuration = configuration
this.messages = new Rx.Subject()
this.subscription = ... | JavaScript | 0.00001 | @@ -72,61 +72,8 @@
utf8
-%0Alet tokenbucket = require('./sentinel-tokenbucket');
%0A%0Acl
|
89a7c175668d921a14198c882898606813d4a103 | update a title | webpack.config.js | webpack.config.js | var HtmlWebpackPlugin = require('html-webpack-plugin');
var SvgStorePlugin = require('webpack-svgstore-plugin');
module.exports = {
entry: [
// our entry file
'./app/main.js'
],
output: {
path: './build',
filename: 'bundle.[hash].js'
},
devtool: 'eval',
module: {... | JavaScript | 0.000013 | @@ -1347,27 +1347,28 @@
ck s
-tarter template 123
+vg sprite playground
',%0A
|
d76ef98f080994c265d9142cef6f36b6f8267123 | add pending util tests | test/util.js | test/util.js | var assert = require("assert");
var util = require("../lib/6to5/util");
suite("util", function () {
test("duplicate mutator map", function () {
var map = {
test: {
get: {}
}
};
assert.throws(function () {
util.pushMutatorMap(map, "test", "get", {});
}, /a get already exis... | JavaScript | 0 | @@ -1301,13 +1301,110 @@
);%0A %7D);
+%0A%0A test(%22getIds%22);%0A%0A test(%22isReferenced%22);%0A%0A test(%22removeProperties%22);%0A%0A test(%22ensureBlock%22);
%0A%7D);%0A
|
2d838b035ca4d65b763e392a0f7f4df398efca41 | add browser test | test/util.js | test/util.js | describe('util', function(){
describe('Ticker', function(){
var ticker, tickObj;
beforeEach('init Ticker', function(){
ticker = new Hilo.Ticker(60);
tickObj = {
tickNum:0,
tick:function(){
this.tickNum ++;
}
... | JavaScript | 0.001408 | @@ -3013,12 +3013,262 @@
%0A %7D);
+%0A%0A describe('browser', function()%7B%0A it('jsVendor', function()%7B%0A Hilo.browser.jsVendor.should.be.String();%0A %7D);%0A%0A it('cssVendor', function()%7B%0A Hilo.browser.cssVendor.should.be.String();%0A %7D);%0A %7D... |
3137dff3499e9ffd084b228c866ca2dfcd3a06ff | move mongo export to bottom to prevent confusion | server/config/mongo.js | server/config/mongo.js | 'use strict';
var comongo = require('co-mongo'),
connect = comongo.connect,
config = require('./config');
// extending top mongo namespace like this is not optimal but it saves the user from a lot of extra configuration & confusion
module.exports = comongo;
/**
* Opens a new connection to the mong... | JavaScript | 0 | @@ -119,164 +119,8 @@
%0D%0A%0D%0A
-// extending top mongo namespace like this is not optimal but it saves the user from a lot of extra configuration & confusion%0D%0Amodule.exports = comongo;%0D%0A%0D%0A
/**%0D
@@ -1004,12 +1004,168 @@
%5B0%5D.seq;%0D%0A%7D;
+%0D%0A%0D%0A// extending top mongo namespace like this i... |
fc1d21c4ad2d095523e6da6210d17f5082fa334d | fix accidental inclusion of debug code. | server/initial-data.js | server/initial-data.js | /*
Agora Forum Software
Copyright (C) 2016 Gregory Sartucci
License: AGPL-3.0, Check file LICENSE
*/
Meteor.startup(function() {
//Set up moderator account if it does not exist.
let moderatorEmail = "moderator@example.com";
if (!Meteor.users.findOne({
"emails.address": moderatorEmail
... | JavaScript | 0.000001 | @@ -1813,19 +1813,20 @@
if (
-tru
+fals
e) %7B%0A
|
228f704d3c037cc4718079999f53d689499f363e | remove duplicate model call | server/models/index.js | server/models/index.js | 'use strict'
const mongoose = require('mongoose')
const log = require('debug')('assemble:db-setup')
/*
* Get MONGOLAB_URI or use localhost
*/
let MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost:27017'
MONGODB_URI += '/assemble'
const models = 'user announcement action-item announcement session'.spli... | JavaScript | 0.000001 | @@ -287,29 +287,16 @@
on-item
-announcement
session'
|
2061f56cd3a5484bcd1b30854c7ff9ff1a1b16c8 | refresh route after auth changes | app/routes/application.js | app/routes/application.js | import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function() {
return this.get("session").fetch().catch(function() {});
},
actions: {
signIn: function(provider) {
this.get("session").open("firebase", { provider: provider}).then(function(data) {
console.log(data);
... | JavaScript | 0 | @@ -273,22 +273,17 @@
hen(
-function
(data)
+ =%3E
%7B%0A
@@ -308,16 +308,40 @@
(data);%0A
+ this.refresh();%0A
%7D)
@@ -371,24 +371,24 @@
unction() %7B%0A
-
this.g
@@ -406,24 +406,46 @@
%22).close();%0A
+ this.refresh();%0A
%7D%0A %7D%0A%7D)
|
238e7333052c71214e51d76434c7fdf5118e4ab5 | Handle removal and creation of tabs | app/scripts/background.js | app/scripts/background.js | 'use strict';
console.log('background.js');
(function() {
var tabs = [];
function sortTabs(tab) {
var index = tabs.indexOf(tab);
if (index === -1) {
tabs.unshift(tab);
} else {
tabs.unshift(tabs.splice(tabs.indexOf(tab), 1)[0]);
}
}
function getTabs() {
chrome.tabs.query({},... | JavaScript | 0 | @@ -688,24 +688,97 @@
ectTab) %7B%0A
+ selectTab(request.selectTab);%0A %7D%0A %7D%0A%0A function selectTab(tab) %7B%0A
chrome.w
@@ -791,31 +791,17 @@
.update(
-request.selectT
+t
ab.windo
@@ -829,18 +829,16 @@
%7D);%0A
-
chrome.t
@@ -848,31 +848,17 @@
.update(
-request.selectT
+t
ab.id, %7B... |
286e5bf7d6599f7ec13d094065c2a3230d6b592c | Use destructuring for ES6 import | app/src/static/preload.js | app/src/static/preload.js | /**
Preload file that will be executed in the renderer process
*/
import electron from 'electron';
import path from 'path';
import fs from 'fs';
const {ipcRenderer, webFrame} = electron;
const INJECT_JS_PATH = path.join(__dirname, '../../', 'inject/inject.js');
setNotificationCallback((title, opt) => {
ipcRende... | JavaScript | 0 | @@ -68,24 +68,39 @@
%0Aimport
-electron
+%7BipcRenderer, webFrame%7D
from 'e
@@ -158,50 +158,8 @@
fs';
-%0Aconst %7BipcRenderer, webFrame%7D = electron;
%0A%0Aco
|
862570b582425366190cffca46873a16d4859c41 | optimize livereload by placing before slow tasks | app/templates/gulpfile.js | app/templates/gulpfile.js | 'use strict';
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>
// Load plugins
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var csso = require('gulp-csso');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
v... | JavaScript | 0 | @@ -838,93 +838,71 @@
ipe(
-autoprefixer('last 1 version'))%0A .pipe(csso())%0A .pipe(livereload(server
+livereload(server))%0A .pipe(autoprefixer('last 1 version'
))%0A
@@ -906,36 +906,36 @@
)%0A .pipe(
-size
+csso
())%0A .pip
@@ -957,24 +957,46 @@
st/styles'))
+%0A .pip... |
572d05c8a85540fdb7edbedd2ce5f218f44b3bbf | set sourcemaps to be inline | app/templates/gulpfile.js | app/templates/gulpfile.js | 'use strict';
/**
* Import plugins
*/
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
browserSync = require('browser-sync'),
reload = browserSync.reload,
runSequence = require('run-sequence'),
argv = require('yargs').argv,
del = require('del');
/**
* Build vendors dependenci... | JavaScript | 0.000002 | @@ -3395,80 +3395,8 @@
ite(
-'.', %7B%0A includeContent: false,%0A sourceRoot: '/source'%0A %7D
)))%0A
|
43864a154179fdef4fa4cdd7039c28e888bf3ab4 | fix test | src/dd-datepicker/tests/dd-datepicker.spec.js | src/dd-datepicker/tests/dd-datepicker.spec.js | describe('datetimepicker', function () {
var $scope,
$sniffer,
$document,
$compile,
$timeout,
element,
currentYear = new Date().getFullYear();
beforeEach(function () {
module('dd.ui.dd-datepicker');
module('template/dd-datepicker/dd-datepicker.htm... | JavaScript | 0.000002 | @@ -1567,32 +1567,88 @@
'2016-02-09');%0A
+ var model = element.isolateScope().ngModel;%0A
expe
@@ -1649,32 +1649,39 @@
expectUtcTime(
+model,
12, 1, 0);%0A
@@ -6194,16 +6194,29 @@
UtcTime(
+$scope.date,
12, 1, 0
|
aee4f4825c1fe439ef48fd22b812e6d71dfbf098 | add router mock to navigation plans | test/navigation-plan.spec.js | test/navigation-plan.spec.js | import {BuildNavigationPlanStep} from '../src/navigation-plan';
import {NavigationInstruction} from '../src/navigation-instruction';
import {Redirect} from '../src/navigation-commands';
import {createPipelineState} from './test-util';
describe('NavigationPlanStep', () => {
let step;
let state;
let redirectInstru... | JavaScript | 0.000001 | @@ -398,16 +398,30 @@
ruction;
+%0A let router;
%0A%0A befo
@@ -511,16 +511,84 @@
State();
+%0A router = %7B viewPortDefaults: %7B default: %7B moduleId: null %7D %7D %7D;
%0A%0A re
@@ -722,16 +722,30 @@
econd' %7D
+,%0A router
%0A %7D);
@@ -904,32 +904,46 @@
ams: %7B id: '1' %7D
+,%0A route... |
558d9630b4dc719d7b8d05fa59019704ae9ecd6f | Add onRestarted listener, and restart app: crbug/167196, crbug/155221 | browser/main.js | browser/main.js | /**
* Listens for the app launching then creates the window
*
* @see http://developer.chrome.com/trunk/apps/app.runtime.html
* @see http://developer.chrome.com/trunk/apps/app.window.html
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('browser.html', {
'width': 1024,
'h... | JavaScript | 0 | @@ -243,16 +243,380 @@
ion() %7B%0A
+ runApp();%0A%7D);%0A%0A/**%0A * Listens for the app restarting then re-creates the window.%0A *%0A * @see http://developer.chrome.com/trunk/apps/app.runtime.html%0A */%0Achrome.app.runtime.onRestarted.addListener(function() %7B%0A runApp();%0A%7D);%0A%0A/**%0A * Creates the wind... |
ae68f2443828475605744c935c954164dba78fee | Remove duplication of end token generation in tests | test/regex-tokeniser.test.js | test/regex-tokeniser.test.js | var RegexTokeniser = require("../lib/regex-tokeniser").RegexTokeniser;
var Token = require("../lib/Token");
var StringSource = require("../lib/StringSource");
exports.emptyStringIsTokenisedToEndToken = stringIsTokenisedTo("", [
new Token("end", null, stringSourceRange("", 0, 0))
]);
exports.canMatchSingleToken = ... | JavaScript | 0.000003 | @@ -230,58 +230,19 @@
-new
+end
Token(%22
-end%22, null, stringSourceRange(%22%22, 0, 0)
+%22
)%0A%5D)
@@ -382,62 +382,23 @@
-new
+end
Token(%22
-end%22, null, stringSourceRange(%22blah%22, 4, 4)
+blah%22
)%0A%5D)
@@ -671,63 +671,24 @@
-new
+end
Token(%22
-end%22, null, stringSourceRange(%22a.... |
df9c632a618941d7e43c557a6184d146a8617979 | fix lint error | src/extensions/default/NoDistractions/main.js | src/extensions/default/NoDistractions/main.js | /*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights... | JavaScript | 0.000006 | @@ -3881,16 +3881,17 @@
if
+
(panelsT
|
28a3cb0632bf2b23bc73a032d923f0fc8902351e | make a test less flaky hopefully | test/unit/controllers/CommunityController.test.js | test/unit/controllers/CommunityController.test.js | var root = require('root-path')
require(root('test/setup'))
var factories = require(root('test/setup/factories'))
var Promise = require('bluebird')
var checkAndSetMembership = Promise.promisify(require(require('root-path')('api/policies/checkAndSetMembership')))
var CommunityController = require(root('api/controllers/C... | JavaScript | 0.000013 | @@ -4818,20 +4818,18 @@
before(
-done
+()
=%3E %7B%0A
@@ -5263,34 +5263,8 @@
%7D)%0A
- .then(() =%3E done())%0A
|
1ce4538b98f5bd9054ebd7bc701de5b64d2dfeb9 | Add success and error events tests | test/spec/jquery.paginate.js | test/spec/jquery.paginate.js | /*global describe, it */
"use strict";
(function () {
describe( "$.fn.paginate()", function () {
it( "should be defined", function() {
expect( $.fn.paginate ).to.be.a( "function" );
});
it( "should validate attributes.resource", function() {
[ undefined, null, 23, function() {} ].forEach(function( unval... | JavaScript | 0 | @@ -93,16 +93,407 @@
n () %7B%0A%0A
+%09%09var DummyResource = function( attributes ) %7B%0A%09%09%09attributes = attributes %7C%7C %7B flavor: %22success%22 %7D;%0A%09%09%09this.get = DummyResource.prototype.flavors%5B attributes.flavor %5D;%0A%09%09%7D;%0A%09%09DummyResource.prototype = %7B%7D;%0A%09%09DummyResource... |
050f80f94f373971695d6422856c5f2c97d0733d | Clean up unit test | test/unit/src/geometries/ExtrudeGeometry.tests.js | test/unit/src/geometries/ExtrudeGeometry.tests.js | /**
* @author TristanVALCKE / https://github.com/Itee
*/
/* global QUnit */
import { ExtrudeGeometry, ExtrudeBufferGeometry } from '../../../../src/geometries/ExtrudeGeometry';
export default QUnit.module( 'Geometries', () => {
QUnit.module( 'ExtrudeGeometry', () => {
// INHERITANCE
QUnit.todo( "Extending", ... | JavaScript | 0 | @@ -833,629 +833,8 @@
);%0A%0A
-%09%09// STATIC STUFF%0A%09%09QUnit.todo( %22WorldUVGenerator.generateTopUV%22, ( assert ) =%3E %7B%0A%0A%09%09%09assert.ok( false, %22everything's gonna be alright%22 );%0A%0A%09%09%7D );%0A%09%09QUnit.todo( %22WorldUVGenerator.generateSideWallUV%22, ( assert ) =%3E %7B%0A%0A%09%09%09a... |
ec9a08bb289b9f1eee6979c3e782dd4b14471420 | simplify button assertions | tests/e2e/specs/auth-client-configuration.test.js | tests/e2e/specs/auth-client-configuration.test.js | /**
* WordPress dependencies
*/
import { activatePlugin, deactivatePlugin, visitAdminPage } from '@wordpress/e2e-test-utils';
describe( 'Providing client configuration', () => {
beforeAll( async() => {
await activatePlugin( 'google-site-kit' );
} );
beforeEach( async() => {
await visitAdminPage( 'admin.php'... | JavaScript | 0.002986 | @@ -552,37 +552,23 @@
' );%0A%0A%09%09
-const proceedButton =
+expect(
await p
@@ -564,33 +564,32 @@
ct( await page.$
-$
eval( '#wizard-s
@@ -597,35 +597,39 @@
ep-one-proceed',
+ (
el
+ )
=%3E el.map( x =%3E
@@ -625,41 +625,25 @@
l.ma
-p( x =%3E x.hasAttribute
+tches
( '
+%5B
disabled
' )
@@ -642,69 +642... |
bcc9f1fb140b1c64ffe5f6e1b43897b2e6712ecb | Fix unused parameter that Unexpected 10.26 complains about. | test/unexpectedAssetGraph.js | test/unexpectedAssetGraph.js | var URL = require('url');
var urlTools = require('urltools');
var esprima = require('esprima');
var escodegen = require('escodegen');
module.exports = {
name: 'unexpected-assetgraph',
installInto: function (expect) {
expect.addType({
name: 'AssetGraph.asset',
base: 'object',
... | JavaScript | 0 | @@ -3452,32 +3452,24 @@
ct, queryObj
-, number
) %7B%0A
|
fd884a0a3285dcf9703a4e698b80f638d5811e97 | add cart itms | public/app.js | public/app.js | var somthing = function(){
var x = window.localStorage.getItem('ccc')
x = x*1 + 1
window.localStorage.setItem('ccc', x)
alert(x)
}
var addToCart = function(id){
alert("Added to cart")
} | JavaScript | 0 | @@ -1,12 +1,34 @@
-var
+(function(_this)%7B%0A _this.
somthing
@@ -47,21 +47,114 @@
()%7B%0A
-%0A
+localStorage.clear()%0A %7D%0A%0A _this.addToCart = function(id)%7B%0A var key = 'product_' + id%0A
var x =
wind
@@ -149,23 +149,16 @@
var x =
-window.
localSto
@@ -174,19 +174,13 @@
tem(
-'ccc')... |
185026156a8826a418b24d053d0c6826ab835cec | Fix extra space in input field | public/app.js | public/app.js | var autocomplete = (function() {
// global app variables
var inputField = document.querySelector(".input_field");
var suggestionElements = document.querySelectorAll(".suggestion_element");
var searchBtn = document.querySelector(".search_btn");
var inputSaved = '';
var inputLast = '';
inputField.onkeyup =... | JavaScript | 0.000052 | @@ -2200,19 +2200,39 @@
Saved +
-' '
+(inputSaved ? ' ' : '')
+ input
|
dcb9485358c9335c072c62914a9eb9e77f9d6c50 | increase polling frequency | public/app.js | public/app.js | var PlanningPoker = angular.module('PlanningPoker', ['chart.js', 'emguo.poller']);
PlanningPoker.controller('UserCtrl', ['$scope', '$http', 'poller', function ($scope, $http, poller) {
$scope.userName = '';
$scope.inSession = false;
$scope.voted = false;
$scope.legalEstimates = [0.5, 1, 2, 3, 5, 8, 13,... | JavaScript | 0.000001 | @@ -1709,17 +1709,17 @@
delay:
-5
+3
00,%0A
|
f7434a8522ac80571d92d891e3c10e6b8842a8dd | Add control flow for parallel operations | tasks/branch_portal.js | tasks/branch_portal.js | /*
* grunt-branch-portal
* https://github.com/robwierzbowski/grunt-branch-portal
*
* Copyright (c) 2013 Rob Wierzbowski
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var exec = require('child_process').exec;
var fs = require('fs');
grunt.registerMultiTask('branch_p... | JavaScript | 0 | @@ -606,24 +606,23 @@
= %7B%7D;%0A%0A
+%0A
//
-//
Get pro
@@ -668,24 +668,117 @@
fo (next) %7B%0A
+ // Super minimal flow control. Probably a better way to do this.%0A var count = 3;%0A%0A
projec
@@ -778,20 +778,16 @@
project
-Info
.name =
@@ -914,36 +914,32 @@
project
-Info
.b... |
f58b03e5f47675c925925039334dbeab065f568e | make sure we use the passed in prefix | tasks/lcov-reporter.js | tasks/lcov-reporter.js | 'use strict';
var f = function(){
var sonarResults = {};
return {
addResult : function(fileName, data) {
sonarResults[fileName] = data;
},
saveReport : function(outputDir, stripFilePrefix){
stripFilePrefix = /^\/jmvc\//; //TODO acutally use the parameters
var keys = Object.getOwnPropertyNames(... | JavaScript | 0.000036 | @@ -200,16 +200,19 @@
ix)%7B%0A%09%09%09
+if(
stripFil
@@ -223,57 +223,95 @@
fix
-= /%5E%5C/jmvc%5C//; //TODO acutally use the parameters
+&& stripFilePrefix.length %3E 0)%7B%0A%09%09%09%09stripFilePrefix = new RegExp(stripFilePrefix);%0A%09%09%09%7D
%0A%09
@@ -1067,17 +1067,16 @@
%0A%09%7D;%0A%7D;%0A
-
%0Amo... |
3e6be9d310bdfab2e41f7e955124b31b956fdea8 | Fix image editor in the dashboard example | website/src/examples/dashboard/app.es6 | website/src/examples/dashboard/app.es6 | require('es6-promise/auto')
require('whatwg-fetch')
const Uppy = require('@uppy/core')
const Dashboard = require('@uppy/dashboard')
const GoogleDrive = require('@uppy/google-drive')
const Dropbox = require('@uppy/dropbox')
const Instagram = require('@uppy/instagram')
const Facebook = require('@uppy/facebook')
const One... | JavaScript | 0.000084 | @@ -4416,37 +4416,84 @@
Dashboard %7D)%0A %7D
- else
+%0A if (!opts.ScreenCapture && screenCaptureInstance)
%7B%0A window.up
@@ -4716,13 +4716,56 @@
%0A %7D
- else
+%0A if (!opts.imageEditor && imageEditorInstance)
%7B%0A
|
6bfa7d5e266f638b3b070ec17c297c38f5fbfd6c | update ad names in postAds | wordpress/webpack/config/postAds.js | wordpress/webpack/config/postAds.js | module.exports = {
"lynda" : {
"lynda-javascript": "<a href=\"http://www.lynda.com/JavaScript-training-tutorials/244-0.html?utm_medium=ldc-partner&utm_source=SSPRC&utm_content=598&utm_campaign=CD2146&cid=l0:en:pt:le:prosc:s88:244:ind:ssprc:CD2146&bid=598&aid=CD2146\"><img src=\"http://lynda.directtrack.com/42/214... | JavaScript | 0 | @@ -16,34 +16,18 @@
= %7B%0A
- %22lynda%22 : %7B%0A
+%0A
-
%22lynda
--j
+J
avas
@@ -352,28 +352,24 @@
%3C/a%3E%22,%0A%0A
-
%22lynda
-html5%22:
@@ -364,10 +364,9 @@
ynda
--h
+H
tml5
@@ -682,28 +682,24 @@
%3C/a%3E%22,%0A%0A
-
%22lynda
-css%22: %22
@@ -694,10 +694,9 @@
ynda
--c
+C
ss%22:
@@... |
22a4471468697ed78e765e8058f6eb3322c06dce | update main controller | client/controllers/main.js | client/controllers/main.js | angular.module('ngKoaApp')
.controller('TodoCtrl', function($scope, TodoService) {
$scope.todos = TodoService.get();
$scope.add = function(todo) {
TodoService.add(todo);
$scope.newTodo = {};
};
$scope.remove = function(todo) {
TodoService.remove(todo);
};
$scope.complete = function(todo) {
... | JavaScript | 0 | @@ -13,351 +13,68 @@
le('
-ngKoaApp')%0A.controller('TodoCtrl', function($scope, TodoService) %7B%0A%0A $scope.todos = TodoService.get();%0A%0A $scope.add = function(todo) %7B%0A TodoService.add(todo);%0A $scope.newTodo = %7B%7D;%0A %7D;%0A%0A $scope.remove = function(todo) %7B%0A TodoService.remove(todo)... |
c0b4f746d1d25117361b35e4edca00876cc52167 | add owner to template mail | packages/custom/icapi/server/controllers/mailManager.js | packages/custom/icapi/server/controllers/mailManager.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
User = mongoose.model('User'),
_ = require('lodash'),
config = require('meanio').loadConfig(),
templates = require('../template'),
nodemailer = require('nodemailer'),
smtpTransport = require('nodemailer-smtp-transport'),
Em... | JavaScript | 0 | @@ -1605,20 +1605,16 @@
ssign);%0A
-
%0A dat
|
319246b99e6a9ba3981722d593d7b8c4e38988f9 | Use float64 pi constant | lib/node_modules/@stdlib/math/base/special/sin/examples/index.js | lib/node_modules/@stdlib/math/base/special/sin/examples/index.js | 'use strict';
var linspace = require( '@stdlib/math/generics/utils/linspace' );
var sin = require( './../lib' );
var x = linspace( 0, 2*Math.PI, 100 );
var i;
for ( i = 0; i < x.length; i++ ) {
console.log( sin( x[ i ] ) );
}
| JavaScript | 0.999594 | @@ -70,24 +70,81 @@
inspace' );%0A
+var PI = require( '@stdlib/math/constants/float64-pi' );%0A
var sin = re
@@ -192,13 +192,8 @@
, 2*
-Math.
PI,
|
e9f24bde0984929a92d2ee0f3a4e85c7cf13039a | Create user in Firestore when users sign up for an account. | client/src/SignUp/index.js | client/src/SignUp/index.js | import React, { Component } from 'react';
import { Link, withRouter } from 'react-router-dom';
import { compose } from 'recompose';
import { withFirebase } from '../Firebase';
import * as ROUTES from '../constants/routes';
const SignUpPage = () => (
<div>
<h1>SignUp</h1>
<SignUpForm />
</div>
);
const IN... | JavaScript | 0 | @@ -730,24 +730,272 @@
thUser =%3E %7B%0A
+ // Create a user in Firestore%0A return this.props.firebase%0A .user(authUser.user.uid)%0A .set(%7B%0A username,%0A email,%0A %7D,%0A %7B merge: true %7D,%0A );%0A %7D)%0A .then(() =%3... |
9b34ec09bcb3ac7bc66cb4c8ae2e50a864a41904 | remove log | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0.000001 | @@ -1460,32 +1460,35 @@
function() %7B%0A
+ //
console.log('vo
@@ -1491,32 +1491,32 @@
('vote click');%0A
-
var id = $(t
@@ -1790,32 +1790,35 @@
( data ) %7B%0A
+ //
console.log( da
@@ -2437,16 +2437,19 @@
() %7B%0A
+ //
console
@@ -2771,21 +2771,24 @@
ata ) %7B%0A
-
+ //
console
|
e8d2cdfec87dc748382232410fd6ad4df00dc797 | Allow partial updating of calculator results | app/assets/javascripts/calculators.js | app/assets/javascripts/calculators.js | (function($) {
'use strict';
var calculators = {
scrollSpeed: 700,
init: function() {
this._initDOM();
this._addListeners();
},
submitForm: function() {
var $form = this.$calculator.find('form');
this._toggleLoading(true);
return $.get($form.attr('action'), $form.ser... | JavaScript | 0 | @@ -68,16 +68,35 @@
ed: 700,
+%0A request: null,
%0A%0A in
@@ -282,28 +282,146 @@
(true);%0A
+%0A
-return
+if (this.request && typeof this.request.abort === 'function') %7B%0A this.request.abort();%0A %7D%0A%0A this.request =
$.get($
@@ -460,16 +460,44 @@
lize());
+%0A%0A retur... |
4d1ae4b6f7aa40be091e73e84b43ba1f6febd3ab | Apply command bar functionality on page laod as well | app/assets/javascripts/command_bar.js | app/assets/javascripts/command_bar.js | var applyTextcomplete = function($element) {
var textcompletesPath = $element.attr('data-textcomplete-path');
var strategies = [{
match: /(^|\s)((#|@|:)\w*)$/,
search: function(query, callback) {
$.getJSON(textcompletesPath, { query: query })
.done(function(response) {
callback(re... | JavaScript | 0 | @@ -3029,14 +3029,30 @@
nt).
+on('
ready
-(
+ page:load',
func
|
50196472ff9865de451e64eabc818bbfaa943d1a | Fix duplicate shuttle arrivals appearing in ShuttleSmallList | app/views/shuttle/ShuttleSmallList.js | app/views/shuttle/ShuttleSmallList.js | import React from 'react';
import {
View,
Text,
FlatList,
StyleSheet
} from 'react-native';
import { getMinutesETA } from '../../util/shuttle';
import {
MAX_CARD_WIDTH
} from '../../styles/LayoutConstants';
import {
COLOR_DGREY,
COLOR_BLACK
} from '../../styles/ColorConstants';
const ShuttleSmallList = ({ arri... | JavaScript | 0.000031 | @@ -697,44 +697,19 @@
e.id
- +%0A%09%09%09%09%09listItem.vehicle.lastUpdated
+.toString()
%0A%09%09%09
|
f38587b40cde38eca736669807a6b3a3ffaf6c30 | fix broken dev tasks #2 | templates/tasks/dev.js | templates/tasks/dev.js | 'use strict';
/* jshint camelcase: false */
var config = require('./config');
var gulp = require('gulp');
/**
* Dev Task File
*
*/
var sass = require('gulp-sass').sync;
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var wiredep = require('wiredep').stream;
var inj =... | JavaScript | 0.000001 | @@ -792,54 +792,8 @@
);%0A%0A
-var beautify = require('gulp-jsbeautifier');%0A%0A
// m
|
11aa379bb402ded12af916451c2b272c3e79d28d | fix sync params | insight.js | insight.js | 'use strict';
//Set the node enviornment variable if not set before
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
/**
* Module dependencies.
*/
var express = require('express'),
fs = require('fs'),
PeerSync = require('./lib/PeerSync').class(),
HistoricSync = require('./lib/HistoricSync').class... | JavaScript | 0.000005 | @@ -1018,36 +1018,8 @@
t(%7B%0A
- skipDbConnection: true,%0A
@@ -1037,24 +1037,24 @@
cast: true,%0A
+
networkN
@@ -1256,16 +1256,20 @@
tImport(
+%7B%7D,
function
@@ -1541,16 +1541,16 @@
Sync();%0A
+
ps.ini
@@ -1557,36 +1557,8 @@
t(%7B%0A
- skipDbConnection: true,%0A
|
886496a1c22150b77b742afa724f5299e5e363d3 | Clean up path.join | install.js | install.js | 'use strict';
//
// Compatibility with older node.js as path.exists got moved to `fs`.
//
var fs = require('fs')
, path = require('path')
, spawn = require('cross-spawn')
, hook = path.join(__dirname, './hook')
, root = path.resolve(__dirname, '../..')
, exists = fs.existsSync || path.existsSync;
//
// Gath... | JavaScript | 0.000001 | @@ -202,18 +202,16 @@
rname, '
-./
hook')%0A
@@ -247,17 +247,20 @@
ame, '..
-/
+', '
..')%0A ,
|
1d55037d92aa273984fa4182a6c7ea6cbecc4afb | update clean.article.js | js/clean.article.js | js/clean.article.js | (function() {
var f = function(selector) {
var article = $(selector);
var elem = article;
while (elem.length && elem.get(0).tagName.toUpperCase() !== 'BODY') {
elem.width(1024)
.css({minWidth: 1024})
.css({padding: 0})
.css({margin... | JavaScript | 0 | @@ -353,16 +353,117 @@
blings()
+%0A .filter(function(i, e) %7Breturn e.tagName.toUpperCase() !== 'LINK'%7D)%0A
.remove(
|
6cc81b53818f244118799f94db3a16dd462ded5b | fix $LAB is undefined | jsscheme/browser-load.js | jsscheme/browser-load.js | var loadScheme = function(rootdir, after) {
rootdir = (rootdir || "");
if(window['$LAB']) {
load();
} else {
var s = document.createElement("script");
s.src = rootdir + "./lib/LAB.min.js";
s.onload = load;
document.body.appendChild(s);
}
function load() {
var jsArr = [
"base/object",
"ba... | JavaScript | 0.999997 | @@ -114,18 +114,24 @@
else %7B%0A
-%09%09
+
var s =
@@ -164,18 +164,24 @@
ript%22);%0A
-%09%09
+
s.src =
@@ -210,18 +210,24 @@
in.js%22;%0A
-%09%09
+
s.onload
@@ -235,18 +235,24 @@
= load;%0A
-%09%09
+
document
@@ -297,18 +297,24 @@
oad() %7B%0A
-%09%09
+
var jsAr
@@... |
23ef9faa9fdb9b0f08c9681d7536ccf583dd52db | add ES6 version | disable-styles-tweet.js | disable-styles-tweet.js | x = document.querySelectorAll('link, style, [style]'), i = x.length;
while (i--) a=x[i], a.style[b = 'cssText'] ? a.style[b] = '' : a.outerHTML = ''
| JavaScript | 0 | @@ -1,8 +1,60 @@
-x =
+// 138 characters, 3 global variables, ES5%0Ajavascript:x=
docu
@@ -85,16 +85,14 @@
ink,
-
style,
-
%5Bsty
@@ -101,13 +101,10 @@
%5D'),
- i =
+i=
x.le
@@ -112,73 +112,238 @@
gth;
-%0A
while
-
(i--)
-
a=x%5Bi%5D,
-
+a.style.cssText?
a.style
-%5Bb = '
+.
cssText
-'%5D ? a.style%5... |
36abc53ca05bf6a0acc06272424031ee6e0a5be9 | fix relative hrefs | web-extension/utils.js | web-extension/utils.js | function getEbookPages(callback) {
chrome.runtime.sendMessage({
type: "get"
}, function(response) {
callback(response.allPages);
});
}
function saveEbookPages(pages) {
chrome.runtime.sendMessage({
type: "set",
pages: pages
}, function(response) {});
}
function remov... | JavaScript | 0.000003 | @@ -1698,36 +1698,148 @@
xt.indexOf('
-/') === 0) %7B
+http') !== 0) %7B%0A var separator = '/';%0A if (hrefTxt.indexOf('/') === 0) %7B%0A separator = '';%0A %7D
%0A hre
@@ -1905,16 +1905,28 @@
stname +
+ separator +
hrefTxt
|
89853a70a38bada64ff31ab1b34688e6478fc8f4 | Update Gruntfile.js | config/backbone-requirejs/Gruntfile.js | config/backbone-requirejs/Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
watch: {
js: {
// watch all the changes in these files
files: [
'assets/js/**/*.js'
],
// parse the index.html to get all the j... | JavaScript | 0.000001 | @@ -3117,959 +3117,8 @@
%7D,%0A
- ftpscript: %7B // see https://npmjs.org/package/grunt-ftpscript, also: http://www.tech-step.net/?p=515%0A staging: %7B%0A // remember to setup correctly the .ftppass file%0A options: %7B%0A host: 'sitehost.staging',%0... |
b5dcd1fb299c0297e9d16374fc326072ae49e509 | Move missplaced variable declaration | examples/js/nodes/accessors/CameraNode.js | examples/js/nodes/accessors/CameraNode.js | /**
* @author sunag / http://www.sunag.com.br/
*/
THREE.CameraNode = function( scope, camera ) {
THREE.TempNode.call( this, 'v3' );
this.setScope( scope || THREE.CameraNode.POSITION );
this.setCamera( camera );
};
THREE.CameraNode.fDepthColor = new THREE.FunctionNode( [
"float depthColor( float mNear, float m... | JavaScript | 0.000001 | @@ -1154,39 +1154,8 @@
) %7B
-%0A%09%09%09%0A%09%09var camera = this.camera
%0A%0A%09%09
@@ -1176,32 +1176,60 @@
eraNode.DEPTH:%0A%0A
+%09%09%09var camera = this.camera%0A
%09%09%09this.near = n
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.