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 |
|---|---|---|---|---|---|---|---|
31cee1367ecf1a08ca9bcbe598b3c410121f0351 | Remove file ambiguety from tests | test/test.js | test/test.js | var gulp = require('gulp'),
through = require('through2'),
expect = require('chai').expect,
minifyInline = require('../');
describe('gulp-minify-html', function ( )
{
var fixture = __dirname + '/fixture/index.html';
it('should use default options', function ( done )
{
gulp.src(fixture)
.pipe(minifyInline()... | JavaScript | 0 | @@ -3037,54 +3037,8 @@
%0A%09%7B%0A
-%09%09gulp.src(__dirname + '/fixture/index.html')%0A
%09%09gu
|
6f013c9137b1c1148a21b74c4572304b5f0f5192 | write the full expected array in assertions | test/test.js | test/test.js | 'use strict';
var padArray = require('..');
describe('Array test', function () {
it('Default test', function () {
var data = [1, 2, 3, 4];
var model = padArray(data);
// model.should.equal([0, 1, 2, 3, 4, 0]);
model[0].should.equal(0);
});
it('Output option test', functio... | JavaScript | 0.002397 | @@ -194,11 +194,8 @@
- //
mod
@@ -206,18 +206,16 @@
hould.eq
-ua
l(%5B0, 1,
@@ -233,42 +233,8 @@
%5D);%0A
- model%5B0%5D.should.equal(0);%0A
@@ -394,35 +394,32 @@
);%0A model
-%5B0%5D
.should.equal(0)
@@ -416,13 +416,28 @@
d.eq
-ual(0
+l(%5B0, 1, 2, 3, 4, 0%5D
);%0A
@@ -653,35 +653,3... |
033a8860b3cd8557230c82949e4d3ece5def9f2c | Change to unfinished tests. | test/test.js | test/test.js | var expect = require("chai").expect,
resMan = require("../src/wrtc-res-man.js");
describe("WebRTC Conductor", () => {
describe("Initialisation", () => {
var firstChannel;
before(() => {
firstChannel = {
internalID: "first",
send: (a,b,c) => {},
onmessage: (a,b) => {}
};
});
it("should fa... | JavaScript | 0 | @@ -2447,20 +2447,102 @@
hannel:
-null
+%7B%0A%09%09%09%09%09internalID: %22stub%22,%0A%09%09%09%09%09send: (a,b,c) =%3E %7B%7D,%0A%09%09%09%09%09onmessage: (a,b) =%3E %7B%7D%0A%09%09%09%09%7D
// TODO
|
4d93269786e87279f03970b7d992cf8e9021fd2f | Fix Bing Layer in https | layer/tile/Bing.js | layer/tile/Bing.js | L.BingLayer = L.TileLayer.extend({
options: {
subdomains: [0, 1, 2, 3],
type: 'Aerial',
attribution: 'Bing',
culture: ''
},
initialize: function(key, options) {
L.Util.setOptions(this, options);
this._key = key;
this._url = null;
this.meta = {};
this.loadMetadata();
},
tile2quad: function(x, y... | JavaScript | 0.000001 | @@ -821,58 +821,8 @@
z))%0A
-%09%09%09%09.replace('http:', document.location.protocol)%0A
%09%09%09%09
@@ -1467,16 +1467,28 @@
+ cbid +
+%0A%09%09
%22&key=%22
@@ -1499,16 +1499,74 @@
his._key
+ + %22&UriScheme=%22 + document.location.protocol.slice(0, -1)
;%0A%09%09var
|
f2b83d1226957e287d15d3fbcc3721e667f40a34 | Add wait to fix broken tests | spec/generalStepDefs/the_should_be_displayed.spec.js | spec/generalStepDefs/the_should_be_displayed.spec.js | describe('the "___" should be displayed', function() {
this.timeout(6000);
before(function() {
browser.manage().timeouts().implicitlyWait(100);
return browser.get('http://localhost:9001/');
});
describe('regex', function() {
before(function() {
stepPattern = 'the "{elementName}"{elementType}... | JavaScript | 0 | @@ -2971,17 +2971,16 @@
);%0A%0A
-x
describe
@@ -3020,24 +3020,257 @@
unction() %7B%0A
+ before(function() %7B%0A return browser.wait(function() %7B%0A return world.currentPage.testSpan.isPresent().then(function(isPresent) %7B%0A return isPresent === false;%0A %7D);%0A ... |
332f0b420ba67fe74f0b5b48e95abfdaf9d8c2e6 | fix update path undefined | packages/omix/utils/create.js | packages/omix/utils/create.js | /*!
* omix v2.0.0 by dntzhang
* Github: https://github.com/Tencent/omi
* MIT Licensed.
*/
import obaa from './obaa'
import { getPath, needUpdate, fixPath } from './path'
const ARRAYTYPE = '[object Array]'
const OBJECTTYPE = '[object Object]'
const FUNCTIONTYPE = '[object Function]'
function create(store, opti... | JavaScript | 0.000371 | @@ -2134,16 +2134,36 @@
teAll %7C%7C
+ ins.__updatePath &&
needUpd
|
a9d54ef959509aaefdb2a68e5ce911e0a31e056c | Fix for too many reddit items | scripts/translators/reddit.js | scripts/translators/reddit.js | elation.require(['elation.collection'], function() {
elation.component.add('janusweb.translators.reddit', function() {
this.init = function() {
var datapath = elation.config.get('janusweb.datapath', '/media/janusweb');
var fullfile = datapath + 'assets/translator/reddit/RedditRoomConcept.html';
... | JavaScript | 0.000002 | @@ -2595,16 +2595,65 @@
numlinks
+ && i %3C items.length && i %3C roomdata.links.length
; i++) %7B
|
84344eca899a1a87440645f6db9150212763a552 | add more document methods | MainProgram/workers/domio.js | MainProgram/workers/domio.js | var walk = require('acorn/util/walk');
module.exports = function (tree) {
walk.recursive(tree.data.cfg, {}, {
CallExpression: function (node, state, c) {
if(node.callee.type === 'MemberExpression'
&& node.callee.name === 'document'){
if(node.callee.property.name === 'getElementById'){
... | JavaScript | 0 | @@ -240,32 +240,1264 @@
== 'document')%7B%0A
+ if(node.callee.property.name === 'adoptNode')%7B%0A tree.data.problems.push(%7B%0A 'type': 'warning',%0A 'message': 'Output',%0A 'weight': 5,%0A 'position': %7B%0A 'start': node.start,%0A ... |
784c60c4e4958d9556e523d0fc8ca0c329d07410 | fix test, changed web server pattern | test/test.js | test/test.js | /* global describe, it */
process.env.GEOIP_ENABLED = 'true'
// var util = require('util')
var Logagent = require('../lib/parser/parser.js')
describe('Logagent parse JSON', function () {
it('should return correct message with timestamp', function (done) {
this.timeout(150000)
var la = new Logagent()
la.pa... | JavaScript | 0 | @@ -2153,25 +2153,16 @@
/about/
- HTTP/1.1
' && dat
|
963cbf0faba15124bac71cf2ed4012ddaaffd492 | Mark failing tests as pending | test/test.js | test/test.js | const assert = require('assert');
const { Client } = require('pg');
const request = require('request');
const dummyData = require('../database/dummydata.js');
const db = require('../database/index.js');
const serverURL = 'http://127.0.0.1:1337';
describe ('Restaurant API routes', function() {
//drops database and re... | JavaScript | 0.000002 | @@ -240,16 +240,17 @@
1337';%0A%0A
+x
describe
|
54addeca7cdcdda965fdf3e99151a17dfbba5d41 | Use the right duration lib | packages/throttle/index.js | packages/throttle/index.js | const duration = require('@maxdome/duration');
const Throttle = require('redis-throttle');
module.exports = config => {
Throttle.configure(config);
return (key, limit, callback, fallback) => {
let span = '1 second';
if (typeof limit === 'string') {
[limit, span] = limit.split(' per ');
}
span... | JavaScript | 0.000006 | @@ -24,14 +24,12 @@
e('@
-maxdom
+dnod
e/du
|
4da5673272599d5eb70bd82f54bfeefaa260c970 | resolve TypeError for inputDirective.link | src/components/checkbox/checkbox.js | src/components/checkbox/checkbox.js | /**
* @ngdoc module
* @name material.components.checkbox
* @description Checkbox module!
*/
angular.module('material.components.checkbox', [
'material.animations',
'material.services.aria'
])
.directive('materialCheckbox', [
'inputDirective',
'$materialInkRipple',
'$materialAria',
MaterialChe... | JavaScript | 0.000001 | @@ -3187,16 +3187,20 @@
ive.link
+.pre
(scope,
|
51ef34f66b6d10ea327ede6177cde90152c318b8 | Fix tests [#6773] | test/view.js | test/view.js | import {jsdom} from 'jsdom';
import _test from './test-tools/test';
import _createElement from 'virtual-dom/create-element';
import h from 'virtual-dom/h';
import {curryRight2} from '1-liners';
import _view from '../module/view';
const test = _test('The view');
const createElement = curryRight2(_createElement)({docum... | JavaScript | 0 | @@ -661,32 +661,58 @@
a',%0A %7D),%0A
+ %5D),%0A h('li', %5B%0A
h('input
@@ -804,24 +804,50 @@
%7D),%0A
+ %5D),%0A h('li', %5B%0A
h('i
@@ -2344,25 +2344,8 @@
%3E %7B%0A
- let executed;%0A%0A
co
@@ -2376,43 +2376,39 @@
k);%0A
-%0A is.pass('the %60options%60 c... |
87fd7e6d063d1328273fd6566891e2b3b9996e4b | comment out tests that break under phantom | test/view.js | test/view.js | (function() {
module('BackboneBase.View', {
setup: function() {
}
});
test('class name sanitizer', 1, function() {
var view = new BackboneBase.View();
equal(view.toClassName('aB_Cd-e/f**g'), 'ab-cd-e-f-g', 'class name converted to lowercase and _ replaced with hyphens')
}... | JavaScript | 0 | @@ -4220,32 +4220,39 @@
%7D);%0A %7D);%0A
+ /*%0A
test('templa
@@ -8014,24 +8014,35 @@
.restore();%0A
+ */%0A
%7D);%0A%7D)()
|
5637ad99324126c27cf117fefc5f40448e74c438 | Fix initial tests | test/vmta.js | test/vmta.js | // node.js built-in modules
var assert = require('assert');
// npm modules
var fixtures = require('haraka-test-fixtures');
//Default config
var default_config = {
main: {},
mta1: { ip: "1.1.1.1", host: "host1" },
mta2: { ip: "2.2.2.2", host: "host2" }
};
beforeEach(function (done) {
//this.outbound... | JavaScript | 0.001479 | @@ -392,14 +392,53 @@
in('
-vmta')
+index');%0A this.plugin.cfg = default_config
;%0A%0A
@@ -692,17 +692,16 @@
it('load
-s
', funct
@@ -918,24 +918,25 @@
('loads
+%22
vmta.ini
from co
@@ -931,14 +931,16 @@
.ini
+%22
from
+%22
conf
@@ -950,16 +950,17 @@
vmta.ini
+%22
', funct
@@ -1005,24 +1005,25 @@
... |
63709c9794f0403accd61b728f629867a1596574 | refactor toward next test | server/03-stack/stack.spec.js | server/03-stack/stack.spec.js | describe('the stack spec', () => {
it('shows the infrastructure works', () => {
true.should.be.true();
});
const stack = {
isEmpty: () => true,
size: () => 0
};
describe('a stack should', () => {
it('start empty', () => {
stack.isEmpty().should.be.true();
});
it('start with st... | JavaScript | 0.000001 | @@ -109,16 +109,117 @@
%0A %7D);%0A%0A
+ const makeStack = () =%3E %7B%0A return %7B%0A isEmpty: () =%3E true,%0A size: () =%3E 0%0A %7D;%0A %7D;%0A%0A
const
@@ -830,11 +830,12 @@
%0A %7D);%0A%7D
+%0A
);%0A
|
2c255a14ea15b4db25f391439943e33a08ffea64 | Create getReviews function on recipe controller to fetch reviews on a recipe | server/controllers/recipes.js | server/controllers/recipes.js | import models from '../models';
const recipe = models.Recipe;
const review = models.Review;
/**
* @exports createRecipe
* @param {obj} req request object
* @param {obj} res result object
* @return {obj} newUser object
*/
export const createRecipe = (req, res) => {
const name = req.body.name;
const ingredi... | JavaScript | 0 | @@ -4428,12 +4428,475 @@
wReview;%0A%7D;%0A
+%0A/**%0A * @exports getReviews%0A * @param %7Bobj%7D req request object%0A * @param %7Bobj%7D res result object%0A * @return %7Bobj%7D newUser object%0A */%0Aexport const getReviews = (req, res) =%3E %7B%0A const recipeId = req.params.recipeId;%0A const newReview = re... |
ca1a48dbc55b2f9d1ed5a2e33ca55a07d8b31c32 | Add comment on unused /config route | server/router/configRouter.js | server/router/configRouter.js | // Handle endpoints for /config in this file
const configRouter = require('express').Router();
const keys = require('../config.js');
configRouter.get('/db', (req, res) => {
res.status(200).send(keys.firebaseKey);
});
configRouter.get('/mapbox', (req, res) => {
res.status(200).send(keys.mapboxKey);
});
module.ex... | JavaScript | 0 | @@ -211,24 +211,103 @@
eKey);%0A%7D);%0A%0A
+// Not currently used due to syncState issue%0A// that is noted in resultBox.jsx%0A
configRouter
|
3d1309debdc298cc7bd1fc0957c8b80f7517dc3d | update MaterialDropdownFilter | src/MaterialDropdownFilter/MaterialDropdownFilter.js | src/MaterialDropdownFilter/MaterialDropdownFilter.js | /**
* @file MaterialDropdownFilter component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import DropdownFilter from '../DropdownFilter';
import MaterialProvider from '../MaterialProvider';
imp... | JavaScript | 0 | @@ -389,16 +389,61 @@
ctMode';
+%0Aimport Position from '../_statics/Position';
%0A%0Aimport
@@ -585,16 +585,48 @@
= Theme;
+%0A static Position = Position;
%0A%0A co
@@ -3374,24 +3374,87 @@
e(Theme)),%0A%0A
+ position: PropTypes.oneOf(Util.enumerateValue(Position)),%0A%0A
/**%0A
|
c355d9b0ab95f06171eedfd4518bb97a3e5a6834 | Add Cache-Control header to uploadDownloadResponder | server/src/uploads/uploads.js | server/src/uploads/uploads.js | // @flow
import type { Viewer } from '../session/viewer';
import type { $Request } from 'express';
import type {
UploadMultimediaResult,
UploadDeletionRequest,
} from 'lib/types/media-types';
import multer from 'multer';
import fileType from 'file-type';
import { fileInfoFromData } from 'lib/utils/media-utils';
... | JavaScript | 0 | @@ -1839,32 +1839,84 @@
res.
-set(%22Content-Type%22
+type(mime);%0A res.set('Cache-Control', 'public, max-age=31557600
,
-m
im
-e
+mutable'
);%0A
|
843330daa2b88b8f190a17327bf6e29682f4d8b3 | Remove unused require('fs') | server/textsearch/searcher.js | server/textsearch/searcher.js | /*******************************************************************************
* @license
* Copyright (c) 2012 VMware, Inc. All Rights Reserved.
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEP... | JavaScript | 0.000003 | @@ -688,32 +688,8 @@
*/%0A%0A
-var fs = require('fs');%0A
var
@@ -1560,17 +1560,16 @@
n%0A%09);%0A%7D%0A
-
%0Aexports
|
ca55e9475945ddfaff5b7bb79d4e5f2b2f87fe54 | Delete unnecessary WorkersJobs and ClientsJobs | server/user/userController.js | server/user/userController.js | //we reference the models here
//expecting models/index.js from Scott
//http://architects.dzone.com/articles/sequelize-javascript-orm
var Q = require('q'),
jwt = require('jwt-simple');
var express = require('express');
var app = express();
var Worker = require('../models').Workers;
var Client = require('../models').... | JavaScript | 0.000001 | @@ -326,112 +326,8 @@
ts;%0A
-var WorkersJobs = require('../models').WorkersJobs;%0Avar ClientsJobs = require('../models').ClientsJobs;%0A
var
|
fa9a12f26c0dffe2f3da8c5548a8ba1e0554bc3b | remove console log | service/src/DatabaseDriver.js | service/src/DatabaseDriver.js | import {
INSERT,
HAS_ALL_KEYS,
} from './symbols';
import _ from 'lodash';
import rethinkdb from 'rethinkdb';
import rethinkdbInit from 'rethinkdb-init';
rethinkdbInit(rethinkdb);
export default class DatabaseDriver {
constructor(options = {}) {
this.config = options.config;
this.tableConfig = options.ta... | JavaScript | 0.000003 | @@ -3365,117 +3365,33 @@
=%3E
-%7B%0A console.log('result', result.changes%5B0%5D.new_val);%0A return result.changes%5B0%5D.new_val;%0A %7D
+result.changes%5B0%5D.new_val
);%0A
|
148aa480bb2af6bb24cae9005b667746044c6555 | Add meta field to UserAction model | services/models/UserAction.js | services/models/UserAction.js | 'use strict'
const Model = require('objection').Model
const _ = require('lodash')
const User = require('./User')
const Substance = require('./Substance')
const ActionType = require('../enums/ActionType')
class UserAction extends Model {
static get tableName () {
return 'UserAction'
}
static get jsonSchema... | JavaScript | 0.000001 | @@ -563,32 +563,159 @@
pe: 'integer'%7D,%0A
+ meta: %7B%0A type: 'object',%0A properties: %7B%0A message: %7Btype: 'string'%7D%0A %7D%0A %7D,%0A
createdA
|
2b887410ef59d293074b308b07dfeb888ef3136c | Fix edit more than two ChainedSelectWidget | chained_selects/static/chained_selects/delayed_fill.js | chained_selects/static/chained_selects/delayed_fill.js | (function($) {
$(document).ready(function(){
function get_initial_value ($target) {
var initial_value = $target.val();
if (initial_value === null) {
initial_value = $target.data('initial');
if (typeof initial_value === 'undefined') {
... | JavaScript | 0 | @@ -80,16 +80,15 @@
alue
-
($
-targe
+selec
t) %7B
@@ -104,38 +104,28 @@
var
-initial_
val
-ue
= $
-targe
+selec
t.val();
@@ -145,29 +145,11 @@
if (
-initial_value === nul
+!va
l) %7B
@@ -169,30 +169,20 @@
-initial_
val
-ue
= $
-targe
+selec
t.da
@@ -223,29 +223,19 @@
(typeof
-initial_
val
... |
afc640290f023ebd9ce5a9817153f0a4ecab7bea | add a getDuration method in mpris service | packages/app/server/mpris.js | packages/app/server/mpris.js | import { ipcMain } from 'electron';
import Player from 'mpris-service';
import { autobind, ipcListener, mprisListener } from './lib/decorators';
import { store } from './store';
import {
onPlayPause,
onNext,
onPrevious,
onPause,
onPlay,
onVolume,
onStop,
getPlayingStatus,
onSettings,
onSelectTrack... | JavaScript | 0.000001 | @@ -1175,24 +1175,154 @@
: %5B%5D);%0A %7D%0A%0A
+ _getDuration(streams) %7B%0A return (streams && streams.length) ? streams%5B0%5D.duration * 1000 * 1000 : 0; // In microseconds%0A %7D%0A%0A
@autobind%0A
@@ -1515,110 +1515,40 @@
': t
-rack.streams && track.streams.length ? track.streams%5B0%5D.duration * 10... |
d400bd66e84ab5b5e87cfb65dd23af595b8125c6 | Fix (Grunt) polyfill path. | gruntfile.js | gruntfile.js | module.exports = function(grunt) {
// Initialize config
grunt.initConfig({
// Load package.json
pkg: require('./package.json'),
// Project paths
project: {
assets: 'assets',
styles: '<%= project.assets %>/stylesheets',
styles_scss: '<%= project.styles %>/scss',
styles_dev: '<%= project.styles %... | JavaScript | 0 | @@ -3007,37 +3007,39 @@
roject.scripts_p
-lugin
+olyfill
s %25%3E/respimage.j
@@ -3033,34 +3033,32 @@
%3E/respimage.js',
-
// O
@@ -5057,29 +5057,31 @@
ct.scripts_p
-lugin
+olyfill
s %25%3E/respima
@@ -5079,34 +5079,32 @@
%3E/respimage.js',
-
// O
|
f58fc4ac5221224c30695a789c5a790a74830bfd | Use custom header to avoid clash with the DNT standard (#461) | packages/core/utils/fetch.js | packages/core/utils/fetch.js | import $ from 'jquery';
export default async (urls, doTrack) => {
for (const { url, func, method = 'HEAD' } of urls) {
try {
if (func) {
return {
// eslint-disable-next-line
url: await func(),
};
}
const doNotTrack = window.navigator.doNotTrack || !doTrack;
... | JavaScript | 0 | @@ -263,51 +263,43 @@
nst
-doNotTrack = window.navigator.do
+headers = %7B%0A 'Do-
Not
+-
Track
- %7C%7C
+':
!do
@@ -303,16 +303,43 @@
!doTrack
+ ? '1' : undefined,%0A %7D
;%0A%0A
@@ -630,60 +630,8 @@
ders
-: %7B%0A DNT: doNotTrack ? '1' : '0',%0A %7D
,%0A
|
c4fbeb0996c5942e747569fdb50635bfb77d0623 | Change update method to find, modify and upsert in to minimongo befor… (#227) | src/Collection.js | src/Collection.js | import Tracker from 'trackr';
import EJSON from 'ejson';
import _ from 'underscore';
import Data from './Data';
import Random from '../lib/Random';
import call from './Call';
import { isPlainObject } from "../lib/utils.js";
class Cursor {
constructor(collection, docs) {
this._docs = docs || [ ];
this._colle... | JavaScript | 0 | @@ -2734,24 +2734,138 @@
%7D%60%0A %7D);%0A%0A
+ // change mini mongo for optimize UI changes%0A this._collection.upsert(%7B _id: id, ...modifier.$set %7D);%0A %0A
Data.wai
|
b22e6a2c2a12654d5810ce7aa03bd6b2472666f7 | Remove redundant comment | src/ContactHub.js | src/ContactHub.js | // @flow
import type { Auth } from './types';
import type API from './API';
/* Dependencies */
import APIEntity from './APIEntity';
import Customer from './Customer';
export default class ContactHub extends APIEntity {
auth: Auth
api: API
addCustomer(customer: Customer): Promise<Customer> {
return this.ap... | JavaScript | 0.000002 | @@ -75,27 +75,8 @@
';%0A%0A
-/* Dependencies */%0A
impo
|
6c764315615e2aaa518dd044fdb5776d4eb6c1e4 | Fix tests. | gulp/test.js | gulp/test.js | 'use strict';
var gulp = require('gulp');
var tape = require('gulp-tape');
var tapColorize = require('tap-colorize');
//EXPL: tests aren't included in npm package
try {
const TestHelper = require('../tests/test-helper.js');
}
catch (error) {
return
}
gulp.task('test', ['test-unit'], function() {
return TestHel... | JavaScript | 0 | @@ -111,16 +111,36 @@
orize');
+%0Avar TestHelper = %7B%7D
%0A%0A//EXPL
@@ -190,14 +190,8 @@
%7B%0A
-const
Test
|
86d4decf7dfd2b3337eae036bf8addd846bbcf85 | debug output deleted | habr.user.js | habr.user.js | // ==UserScript==
// @name habrUserJS
// @description модификация отображения комментариев на хабрахабре habrahabr
// @author Ruslan Login
// @license MIT
// @version 1.0
// @include http://habrahabr.ru/*
// ==/UserScript==
// [1] Оборачиваем скрипт в замыкание, для кроссбраузерности (opera, ie)
var minGoodCommentRatin... | JavaScript | 0.000001 | @@ -1437,47 +1437,8 @@
%22);%0A
- console.log(commentRating)%0A
|
53c5901ad0e8dee7f54fc1e33918a9770006461e | fix test | e2e-tests/scenarios.js | e2e-tests/scenarios.js | 'use strict';
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe('my app', function() {
browser.get('index.html');
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
expect(browser.getLocationAbsUrl()).toMatch("/view1");
});
descri... | JavaScript | 0.000002 | @@ -121,29 +121,28 @@
rowser.get('
-index
+home
.html');%0A%0A
|
eec84fa39e8b041ce8203ff04202646c9b3a4563 | Fix list-style-type: none (Fix #1340) | src/NodeParser.js | src/NodeParser.js | /* @flow */
'use strict';
import type ResourceLoader, {ImageElement} from './ResourceLoader';
import type Logger from './Logger';
import StackingContext from './StackingContext';
import NodeContainer from './NodeContainer';
import TextContainer from './TextContainer';
import {inlineInputElement, inlineTextAreaElement, ... | JavaScript | 0.000003 | @@ -399,16 +399,69 @@
stItem';
+%0Aimport %7BLIST_STYLE_TYPE%7D from './parsing/listStyle';
%0A%0Aexport
@@ -2996,14 +2996,28 @@
!==
-'none'
+LIST_STYLE_TYPE.NONE
%0A
|
d864220e2ef816ba3828fd29cb25ea78b6cddeb9 | Clean up `Node#{insertBefore,appendChild}`. | src/Patch/Node.js | src/Patch/Node.js | import BuiltIn from './BuiltIn';
import {CustomElementInternals} from '../CustomElementInternals';
import * as CustomElementInternalSymbols from '../CustomElementInternalSymbols';
/** @type {CustomElementInternalSymbols.CustomElementState} */
const CustomElementState = CustomElementInternalSymbols.CustomElementState;
i... | JavaScript | 0.000002 | @@ -622,35 +622,33 @@
) %7B%0A
-let nodes;%0A if (
+const inserted =
node ins
@@ -671,33 +671,18 @@
Fragment
-) %7B%0A nodes =
+ ?
%5B...nod
@@ -698,36 +698,10 @@
des%5D
-;%0A %7D else %7B%0A nodes =
+ :
%5Bno
@@ -697,39 +697,32 @@
odes%5D : %5Bnode%5D;%0A
- %7D%0A%0A
const native
... |
f64216ed76078c22464e322d3f398eb06ea9b457 | add example of expected data for hasFromData | editor/source/utils.js | editor/source/utils.js | import {settings} from './constants'
/** Return a pseudo-random color for a given fips code */
function fipsColor(fips) {
return `hsl(${parseInt(fips) * settings.hueScalar % 25.5 * 10.0}, 90%, 70%)`
}
/** Create DOM element. Options may include 'id' */
function createElement(options) {
const div = document.create... | JavaScript | 0.000009 | @@ -1477,16 +1477,43 @@
objects
+ (eg: %5B%7Bkey: 0, value: 0%7D%5D)
to hash
|
1b846a7bd35a8774ba884508ea4bee0e83e8e6f9 | Support babelized shit | src/Superchain.js | src/Superchain.js | 'use strict'
const co = require('co-utils')
class Superchain {
constructor (conf) {
conf = conf || {}
this.clear()
}
add (link) {
if (typeof link !== 'function') {
throw new TypeError(`Unsupported chain-link type. Only functions are allowed. Input value was ${this.getLinkType(link)}`)
}
... | JavaScript | 0 | @@ -2538,32 +2538,42 @@
%7D%0A%0A
+ const p =
fn.apply(thisCo
@@ -2608,16 +2608,183 @@
nish%5D))%0A
+ if (p && p.then && p.catch) %7B%0A p.then((res) =%3E %7B%0A %7D).catch((err) =%3E %7B%0A reject(err)%0A %7D)%0A %7D%0A
... |
345c4950ea0a86a491856f90ea19f8acd81c3e7f | Fix key bug | src/Transition.js | src/Transition.js | /**
* Copyright (c) 2016, Felipe Thomé
* 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.
*/
var React = require('react');
var TransitionHooks = require('react-transition-hooks');
var TransitionChild = require... | JavaScript | 0.000004 | @@ -1179,11 +1179,8 @@
hild
-, i
) %7B%0A
@@ -1231,30 +1231,8 @@
ild%0A
- key=%7Bi%7D%0A
|
9b10b5f871f10f76f4c0223c82e98f801f5e2f21 | add test | packages/starry.size/test.js | packages/starry.size/test.js | const size = require('.')
const t = require('ava')
function* letters() {
yield 'a'
yield 'b'
yield 'c'
}
t('generator size', t => {
let result = size(letters())
t.is(result, 3)
})
t('array size', t => {
t.is(size([]), 0)
t.is(size(['a', 'b', 'c']), 3)
})
t('set size', t => {
t.is(size(new Set(['a', ... | JavaScript | 0.000016 | @@ -400,12 +400,56 @@
%5D%5D)), 2)%0A%7D)%0A
+%0At('empty arg', t =%3E %7B%0A t.is(size(), 0)%0A%7D)%0A
|
02d7bda3e88d399d6dd41d1aa4ade2f7b2d983f2 | remove size | packages/zent/src/tag/Tag.js | packages/zent/src/tag/Tag.js | import React, { Component, PureComponent } from 'react';
import Icon from 'icon';
import cx from 'classnames';
import PropTypes from 'prop-types';
import isFunction from 'lodash/isFunction';
// 支持的color style
const colorTypes = ['red', 'green', 'yellow', 'blue', 'darkgreen'];
export default class Tag extends (PureCom... | JavaScript | 0.0011 | @@ -421,36 +421,8 @@
ol,%0A
- size: PropTypes.string,%0A
@@ -818,28 +818,8 @@
ue,%0A
- size: 'normal',%0A
@@ -1317,20 +1317,8 @@
ne,%0A
- size,%0A
|
6ad595d35d7ca205227da61f6ab77c803c63dde5 | Convert mediator config to json | generator-mediator-js/app/templates/_register.js | generator-mediator-js/app/templates/_register.js | /* ################################## */
/* ##### Mediator Registration ##### */
/* ################################## */
exports.registerMediator = function(apiConfig, mediatorConfig){
var needle = require('needle');
var crypto = require('crypto');
// used to bypass self signed certificates
process.env.NOD... | JavaScript | 0.000001 | @@ -1395,16 +1395,34 @@
ons = %7B%0A
+ json: true,%0A
he
@@ -2263,28 +2263,29 @@
######################### */
+%0A
|
31051c959c1027da39fb574176133b055330d1c6 | remove link funktion | web/src/main/webapp/js/controller/index.js | web/src/main/webapp/js/controller/index.js |
IndexController = function(pageId) {
self = this
self.page = new easy.Page(pageId);
document.title = pageId
$('#title').text(pageId)
self.page.onContentReady(function(data) {
$('#editor').html(data.content);
$("#editor").jqte({
change: function(){
... | JavaScript | 0 | @@ -275,16 +275,70 @@
jqte(%7B%0D%0A
+ link: false,%0D%0A unlink: false,%0D%0A
|
2a3d9fb7b50d3754494d30326b6e1c57fe4f6387 | change subpage link html | web/src/main/webapp/js/controller/index.js | web/src/main/webapp/js/controller/index.js |
IndexController = function(pageId) {
self = this
self.page = new easy.Page(pageId);
self.subpages = new easy.Subpages(pageId);
self.parentPage = new easy.ParentPage(pageId)
document.title = pageId
$('#title').text(pageId)
self.page.onContentReady(function(content) {
... | JavaScript | 0.000001 | @@ -1212,22 +1212,18 @@
nk%22
-data-page-id=%22
+href=%22/?p=
' +
@@ -1250,37 +1250,37 @@
ata-
-role=%22button%22 href=%22#page_mai
+ajax=%22false%22 data-role=%22butto
n%22%3E'
@@ -1368,151 +1368,8 @@
%7D%0D%0A
- $('#page_navigation a.subpagelink').click(function(a) %7B window.location.href = '/?p=' + $... |
d73759bcc38f91e63e4a73de6bfe8c34af67a7cc | Test all providers | quilt-tester/config/infrastructure.js | quilt-tester/config/infrastructure.js | const {Machine} = require("@quilt/quilt");
function MachineDeployer(nWorker) {
this.nWorker = nWorker;
}
MachineDeployer.prototype.deploy = function(deployment) {
var baseMachine = new Machine({
provider: "Amazon",
region: "us-west-1",
sshKeys: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC... | JavaScript | 0 | @@ -220,44 +220,86 @@
er:
-%22Amazon%22,%0A region: %22us-west-1
+process.env.PROVIDER %7C%7C %22Amazon%22,%0A size: process.env.SIZE %7C%7C %22m3.medium
%22,%0A
@@ -798,16 +798,136 @@
rker();%0A
+ // Preemptible instances are currently only implemented on Amazon.%0A if (baseMachine.provider ==... |
5e192f2188268b5ebab383e6e1ffa49d1f3f4550 | Create anchors in richtextpage via tinymce anchor plugin #198 | website/static/website/js/tinymce_setup.js | website/static/website/js/tinymce_setup.js |
// Map Django language codes to valid TinyMCE language codes.
// There's an entry for every TinyMCE language that exists,
// so if a Django language code isn't here, we can default to en.
var language_codes = {
'ar': 'ar',
'ca': 'ca',
'cs': 'cs',
'da': 'da',
'de': 'de',
'es': 'es',
'et': '... | JavaScript | 0 | @@ -2233,16 +2233,25 @@
llscreen
+ %7C anchor
%22),%0A
|
5055fb823b9eddee141ec0b7c956323dd462779e | use onload function for lazy initialization | skylines/frontend/static/js/ol-CesiumSwitcher.js | skylines/frontend/static/js/ol-CesiumSwitcher.js | CESIUM_BASE_URL = '/cesium/Cesium/';
var CesiumSwitcher = function(opt_options) {
var options = opt_options || {};
var control = this;
var enabled = false;
var ol3d = undefined;
var element = document.createElement('div');
element.className = 'CesiumSwitcher ol-unselectable';
var draw = function() {
... | JavaScript | 0 | @@ -1272,32 +1272,53 @@
= function() %7B%0A
+ var _this = this;%0A%0A
if (typeof Ces
@@ -1444,248 +1444,115 @@
-document.body.appendChild(cesium);%0A %7D%0A%0A var _this = this;%0A%0A // poor man's dom check%0A var check = setInterval(function() %7B%0A if (typeof Cesium !== 'undefined') %7B%0A c... |
7a756a73269bdde358b056e1ce4411f946d41465 | add sponsorpay | customEntries.js | customEntries.js | const customEntries = [
`52e901f500821d2b94000005.api.5rocks.io`,
`api.5rocks.io`,
`androidads23.adcolony.com`,
`events3alt.adcolony.com`,
`app.adjust.com`,
`cast-cs-j.adtdp.com`,
`action.adzcore.com`,
`setting.adzcore.com`,
`bypass.ad-stir.com`,
`supersonicads-a.akamaihd.net`,
`device-metrics-us.... | JavaScript | 0 | @@ -1027,16 +1027,43 @@
at.jp%60,%0A
+ %60engine.sponsorpay.com%60,%0A
%60www.s
@@ -1234,8 +1234,9 @@
Entries;
+%0A
|
9deb5f5ce585ba0b4c9a5cb6b6197de769543973 | define controls consistently | propertyfrontend/static/build/javascripts/map.js | propertyfrontend/static/build/javascripts/map.js | //Define coordinate system using PROJ4 standards
var osgb = new L.Proj.CRS('EPSG:27700',
'+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000' +
'+ellps=airy +datum=OSGB36 +units=m +no_defs',
{
resolutions: [2500, 1000, 500, 200, 100, 50, 25, 10, 5, 2.5, 1],
bounds: L.bounds([1300000,... | JavaScript | 0 | @@ -490,29 +490,22 @@
10,%0A
+%0A
-zoomC
+// c
ontrol
-: false,
+s
%0A d
@@ -522,145 +522,184 @@
alse
-%0A%7D);%0A%0Amap.touchZoom.disable();%0Amap.doubleClickZoom.disable();%0Amap.scrollWheelZoom.disable();%0Amap.boxZoom.disable();%0Amap.keyboard.disable(
+,%0A touchZoom: false,%0A doubleClickZoom: false,%0... |
35c64f056ee799d5472d5a729b9d0f17199b4433 | fix focus return on discussion page | app/coffeescripts/widget/assignmentRubricDialog.js | app/coffeescripts/widget/assignmentRubricDialog.js | //
// Copyright (C) 2012 - present Instructure, Inc.
//
// This file is part of Canvas.
//
// Canvas is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License as published by the Free
// Software Foundation, version 3 of the License.
//
// Canvas is distribut... | JavaScript | 0.07813 | @@ -1437,33 +1437,25 @@
-this.$focusReturnsTo
+const selector
=
-$(
$tri
@@ -1481,17 +1481,117 @@
urnsTo')
-)
+%0A try %7B%0A this.$focusReturnsTo = $(document.querySelector(selector))%0A %7D catch(err) %7B%7D
%0A%0A
|
7af4bd6dad9733ecaa88baf90349bdbb315db620 | add icon for leaders tab | App/NBAreact.js | App/NBAreact.js | import React, { Component } from 'react'
import { Text, View, Image } from 'react-native'
import { StackNavigator, TabNavigator } from 'react-navigation'
import ScoresScreen from './components/ScoresScreen'
import GameDetailScreen from './components/GameDetailScreen'
import StandingsScreen from './components/Standings... | JavaScript | 0 | @@ -2598,136 +2598,8 @@
: %7B%0A
- header: %3CSearchBar /%3E,%0A // header: null%0A // header: TODO: add searchinput with drop down filter list of players%0A
@@ -3240,16 +3240,64 @@
conName%0A
+ let iconStyle = %7B height: 42, width: 42 %7D%0A
if
@@ -3493,16 +3493,160 @@
%0A %7D... |
79197106ad33a0fa48a15ab890c7cf521916b177 | Set whitelist default in startup(). | bootstrap.js | bootstrap.js | /* exported startup, shutdown, install, uninstall */
'use strict';
Components.utils.import('resource://gre/modules/Services.jsm');
const windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator);
const preferences = Components.classes['@mozill... | JavaScript | 0 | @@ -2641,16 +2641,205 @@
ason) %7B%0A
+%09Components.classes%5B'@mozilla.org/preferences-service;1'%5D%0A%09%09.getService(Components.interfaces.nsIPrefService)%0A%09%09.getDefaultBranch('extensions.safeguard.')%0A%09%09.setCharPref('whitelist', '');%0A%0A
%09reloadW
@@ -3290,196 +3290,8 @@
) %7B%0A
-%09Components.c... |
634be2c1b86fb00b628cd28069fc61ac55c0973a | Update ember to 1.13.12 | web/app/router.js | web/app/router.js | import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function () {
this.resource("article", {
path: "/article/:article_id"
});
this.resource("plant", {
path: "/plant/:plant_id"
});
... | JavaScript | 0 | @@ -101,18 +101,16 @@
xtend(%7B%0A
-
locati
|
460d7c95ea5a874edc6f494b9f9dcc9fd0c13067 | Change now state in withTimer HoC to Date | imports/ui/hocs/withTimer.js | imports/ui/hocs/withTimer.js | import { compose, withHandlers, withState } from 'recompose';
import moment from 'moment';
/**
* Higher order component that gives a 'now' prop that indicates the current
* time, a handler to keep udpating it and a handler to stop the update.
*/
const withTimer = compose(
withState('now', 'updateNow', moment()),
... | JavaScript | 0 | @@ -310,16 +310,25 @@
moment()
+.toDate()
),%0A wit
@@ -603,16 +603,25 @@
moment()
+.toDate()
);%0A
@@ -669,16 +669,25 @@
moment()
+.toDate()
), 1000)
|
79cb0b1a2b9ca2dc934e60e37755d9c3b3913a42 | set seed file to remove all the games and draws | seed.js | seed.js | var db = require('./models');
db.Game.find({}, function(err, games) {
console.log(games);
db.Game.remove({}, function (err, games) {
if(err) { return console.log("ERROR: ", err);}
console.log("Delete all games!!");
process.exit();
});
});
| JavaScript | 0 | @@ -227,33 +227,237 @@
;%0A
- process.exit();%0A %7D);%0A%0A%7D
+%7D);%0A%7D);%0A%0Adb.Draw.find(%7B%7D, function(err, draws) %7B%0A console.log(draws);%0A db.Draw.remove(%7B%7D, function (err, draws) %7B%0A if(err) %7B return console.log(%22ERROR: %22, err);%7D%0A console.log(%22Delete all draws!!%22);%0A... |
3c4321cb7d409a983cc4679a7294421f8c3c7cd8 | add pure-render to EditorArea component | src/components/editor/EditorArea.js | src/components/editor/EditorArea.js | import React, { Component } from 'react';
export default class EditorArea extends Component {
render() {
return (
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'flex-start', height: '50' }}>
<button onClick={this.props.handlePlay}>Play</button>
<button onClick={this.p... | JavaScript | 0 | @@ -39,60 +39,182 @@
t';%0A
-%0Aexport default class EditorArea extends Component %7B
+import shouldPureComponentUpdate from 'react-pure-render/function';%0A%0Aexport default class EditorArea extends Component %7B%0A shouldComponentUpdate = shouldPureComponentUpdate;%0A
%0A r
|
14310938c8dc44f52c3e5b2b6a5753ef75a14b97 | remove debugger | pages/category/category.js | pages/category/category.js | const product = require('../../utils/product.js')
Page({
data: {
items: []
},
onLoad: function(params) {
var that = this
wx.setNavigationBarTitle({
title: params.type
})
product.getCategories(params.type).then(function(result) {
var data = getApp().store.sync(result.data)
t... | JavaScript | 0.000133 | @@ -796,21 +796,8 @@
%7D)
-%0A debugger
%0A%0A
|
0677f364c2e4395f5b3b2fd0bcd4bbe45ee7ad5f | Fix eslint error with props in FormControl. | src/components/forms/FormControl.js | src/components/forms/FormControl.js | import React from 'react'
class FormControl extends React.Component {
constructor(props, context) {
super(props, context)
const { text, hasFocus } = this.props
this.state = {
text: text || '',
hasValue: text ? text.length : false,
hasFocus: hasFocus || false,
}
}
handleChange(... | JavaScript | 0 | @@ -203,14 +203,8 @@
text
- %7C%7C ''
,%0A
@@ -225,30 +225,15 @@
text
- ? text.length : false
+.length
,%0A
@@ -258,17 +258,8 @@
ocus
- %7C%7C false
,%0A
@@ -503,16 +503,173 @@
%0A %7D%0A%7D%0A%0A
+FormControl.defaultProps = %7B%0A hasFocus: false,%0A text: '',%0A%7D%0A%0AFormControl.propTypes = %7B%0A ... |
b2322e0384dfda30c3294a3b5a091158f77d97f3 | update radio styles logic | src/components/interactive/Radio.js | src/components/interactive/Radio.js | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import styled from 'styled-components';
import { Text } from '~components/primitives/Text';
// ──────────────────────────────────────────────────... | JavaScript | 0 | @@ -755,16 +755,186 @@
: 50%25;%0A%0A
+ & ~ $%7BText%7D %7B%0A cursor: pointer;%0A font-size: 2rem;%0A text-transform: initial;%0A color: hsla(var(--hsl-text), 0.5);%0A %7D%0A%0A &:not(:read-only):not(:disabled) %7B%0A
&:hove
@@ -936,16 +936,18 @@
:hover,%0A
+
&:focu
@@ -950,16 +950,18 @@
fo... |
c574e44bafecd81effafc3f2d04f26ab90d2243a | Update PresentationScreen.js | traveller/App/Containers/PresentationScreen.js | traveller/App/Containers/PresentationScreen.js |
import React from 'react'
import { ScrollView, Text, Image, View } from 'react-native'
import { Images } from '../Themes'
import RoundedButton from '../Components/RoundedButton'
import { Actions as NavigationActions } from 'react-native-router-flux'
// Styles
import styles from './Styles/PresentationScreenStyle'
exp... | JavaScript | 0 | @@ -1,16 +1,27 @@
+// @flow%09%09%0A
%0Aimport React fr
|
4e376bbb6957bfd81e25b5b1e38fa11ae22a8cb2 | Rename "TS" to "TreeSitter in function names | atom/init.js | atom/init.js | // Your init script
//
// Atom will evaluate this file each time a new window is opened. It is run
// after packages are loaded/activated and after the previous editor state
// has been restored.
'use strict';
const {exec} = require('child_process');
// Set preferred size of current Atom window while preserving wind... | JavaScript | 0.998318 | @@ -948,33 +948,41 @@
xtendJavaScriptT
-S
+reeSitter
Grammar() %7B%0A co
@@ -1757,17 +1757,25 @@
aScriptT
-S
+reeSitter
Grammar(
@@ -1873,33 +1873,41 @@
on extendPythonT
-S
+reeSitter
Grammar() %7B%0A //
@@ -3709,17 +3709,25 @@
dPythonT
-S
+reeSitter
Grammar(
|
1018ee27d3fe907218e52dca9ed1c1a9ea704f8f | Fix monitor drawing. | src/components/monitors/monitors.js | src/components/monitors/monitors.js | import $ from 'jquery';
import Signal from '../../utils/signal';
import { state } from '../../state';
import { song } from '../../utils/songmanager';
import { player } from '../../audio/player';
import monitorsTemplate from './templates/monitors.marko';
import styles from './styles.css';
export default class Monito... | JavaScript | 0 | @@ -2108,14 +2108,16 @@
h *
+(
1.0 /
+(
buff
@@ -2124,16 +2124,22 @@
erLength
+ - 1))
;%0A
@@ -2447,61 +2447,8 @@
%7D%0A%0A
- ctx.lineTo(canvas.width, canvas.height / 2);%0A
|
c100697d14d0754015e5bf4a5807381b43af9fe5 | Remove attribute from MODE | src/Whiteboard.js | src/Whiteboard.js | import React from 'react';
import EventEmitter from 'events';
import d3 from 'd3';
import CursorPane from './CursorPane';
import CanvasPane from './CanvasPane';
const MODE = {
HAND: {id: 'hand'},
LINE: {id: 'line'}
};
export default class Whiteboard extends React.Component {
static get propTypes() {
... | JavaScript | 0.000001 | @@ -186,18 +186,8 @@
D: %7B
-id: 'hand'
%7D,%0A
@@ -200,18 +200,8 @@
E: %7B
-id: 'line'
%7D%0A%7D;
|
67f253830fd41ff8a8ff119a9340e3f7380f61f7 | Add Prometheus metricFindQuery unit tests | public/test/specs/prometheus-datasource-specs.js | public/test/specs/prometheus-datasource-specs.js | define([
'./helpers',
'moment',
'app/plugins/datasource/prometheus/datasource',
'app/services/backendSrv',
'app/services/alertSrv'
], function(helpers, moment) {
'use strict';
describe('PrometheusDatasource', function() {
var ctx = new helpers.ServiceTestContext();
beforeEach(module('grafana.ser... | JavaScript | 0 | @@ -81,65 +81,9 @@
rce'
-,%0A 'app/services/backendSrv',%0A 'app/services/alertSrv'
%0A
+
%5D, f
@@ -271,59 +271,8 @@
));%0A
- beforeEach(ctx.providePhase(%5B'templateSrv'%5D));%0A
@@ -1722,16 +1722,1887 @@
%7D);%0A%0A
+ describe('When performing metricFindQuery', function() %7B%0A var result... |
e1e196f7882b4b82619b3c0d3960b67f77cf7b29 | Convert ResultList to es6 class (#2548) | src/components/shared/ResultList.js | src/components/shared/ResultList.js | // @flow
import { DOM as dom, PropTypes, createClass } from "react";
import classnames from "classnames";
import "./ResultList.css";
type ResultListItem = {
id: string,
subtitle: string,
title: string,
value: string
};
const ResultList = createClass({
propTypes: {
items: PropTypes.array.isRequired,
... | JavaScript | 0.008143 | @@ -34,27 +34,25 @@
pTypes,
-createClass
+Component
%7D from
@@ -225,213 +225,59 @@
%7D;%0A%0A
-const ResultList = createClass(%7B%0A propTypes: %7B%0A items: PropTypes.array.isRequired,%0A selected: PropTypes.number.isRequired,%0A selectItem: PropTypes.func.isRequired,%0A size: PropTypes.string%0A ... |
71ff5efe1963d9fd4be0e0eeef76361dcece3289 | fix sortable index problem | src/components/slides/well/index.js | src/components/slides/well/index.js | 'use strict'
var React = require('react')
import ReactDOM from 'react-dom'
import 'jquery-ui/jquery-ui.js'
import 'jquery-ui/themes/smoothness/jquery-ui.min.css'
import lang from 'i18n/lang'
var WellSlide = require('./wellSlide')
require('./index.less')
var SlideWell = React.createClass({
componentDidMount() {
... | JavaScript | 0.000022 | @@ -362,16 +362,31 @@
ode(this
+.refs%5B'slides'%5D
))%0A t
@@ -2121,24 +2121,26 @@
creator%22
+%3E
%0A
-%3E
+
%3Cspan cl
@@ -2191,32 +2191,33 @@
s'%0A
+
onClick=%7Bthis.ne
@@ -2230,24 +2230,26 @@
(-1)%7D%0A
+
+
%3E%3C/span%3E%0A
@@ -2268,16 +2268,56 @@
-%7Bslides%7D
+... |
d5571c46d43d6ddab65c7425fb1ea259263384c8 | Clarify error message | app/features/settings/components/ServerURLField.js | app/features/settings/components/ServerURLField.js | // @flow
import { FieldTextStateless } from '@atlaskit/field-text';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import type { Dispatch } from 'redux';
import config from '../../config';
import { getExternalApiURL } from '../../utils';
import { setServerURL } from '../actions';
... | JavaScript | 0.000003 | @@ -1483,32 +1483,84 @@
sage
- = %7B 'Invalid Server URL
+%0A = %7B 'Invalid Server URL or external API not enabled
' %7D%0A
|
05db868c7f89e96c5bb07de04c518443823fb89f | update padding | src/components/toast/toast.style.js | src/components/toast/toast.style.js | import styled from 'styled-components';
import { classicToastStyle, classicToastTypeStyle, classicToastContentStyle } from './toast-classic.style';
import MessageStyle from '../message/message.style';
import MessageContentStyle from '../message/message-content/message-content.style';
import TypeIcon from '../message/ty... | JavaScript | 0.000001 | @@ -509,17 +509,16 @@
, 0.2);%0A
-%0A
$%7Bclas
@@ -670,16 +670,46 @@
Style)%60%0A
+padding: 10px 20px 11px 20px;%0A
$%7Bcl
|
00b1edf5011fc576d263c1b434787425025e31ae | Fix moduleName in constant | app/javascript/app/data/data-explorer-constants.js | app/javascript/app/data/data-explorer-constants.js | export const DATA_EXPLORER_BLACKLIST = [
'id',
'iso_code3',
'iso_code2',
'emissions'
];
export const DATA_EXPLORER_FIRST_TABLE_HEADERS = [
'region',
'data_source',
'gwp',
'sector',
'gas',
'location',
'model',
'scenario',
'category',
'subcategory',
'indicator',
'definition',
'unit'
];
... | JavaScript | 0.000504 | @@ -609,20 +609,16 @@
e: '
-ndcs-content
+pathways
'%0A
@@ -678,32 +678,36 @@
oduleName: '
-pathways
+ndcs-content
'%0A %7D%0A%7D;%0A%0Aex
|
b3781619603cd04a7e27b7fcbecef233a3caf038 | Update webpack.test.config.js | client/webpack.test.config.js | client/webpack.test.config.js | /* global module, require, __dirname */
/**
* Creates a test bundle in dist that will be fed to mocha.
*/
var webpack = require('webpack'),
path = require('path');
module.exports = {
devtool: 'eval',
entry: [
// entrypoint to resolve dependencies
'./lib/common/test/bootstrap',
'./... | JavaScript | 0.000003 | @@ -2362,16 +2362,140 @@
PLATE',%0A
+ APPLICATION_BASE_URL: 'YTENV_APPLICATION_BASE_URL',%0A APPLICATION_LINK_TITLE: 'YTENV_APPLICATION_LINK_TITLE',%0A
|
734e053eaad0c64cc225e573b1924418978b1549 | Use bugsnag in the library with option to skip. | brightstream.js | brightstream.js | /**************************************************************************************************
*
* Copyright (c) 2014 Digium, Inc.
* All Rights Reserved. Licensed Software.
*
* @authors : Erin Spiceland <espiceland@digium.com>
*/
/**
* @author Erin Spiceland <espiceland@digium.com>
* @namespace brightstre... | JavaScript | 0 | @@ -331,20 +331,121 @@
bal%0A */%0A
-var
+/*global Bugsnag: true, brightstream: true*/%0A(function brightstreamInit() %7B%0A 'use strict';%0A window.
brightst
@@ -457,16 +457,20 @@
= %7B%0A
+
+
streams:
@@ -478,16 +478,20 @@
%7B%7D,%0A
+
+
instance
@@ -496,19 +496,27 @@
ces: %7B%7D%0A
-%7D... |
43b46bd2097f21a46c5e89ec2c66d356fd29c452 | Simplify check (WAL-37) | app/scripts/controllers/initial-data-controller.js | app/scripts/controllers/initial-data-controller.js | 'use strict';
(function() {
angular.module('ncsaas')
.controller('InitialDataController', InitialDataController);
InitialDataController.$inject = ['usersService',
'invitationService',
'baseControllerClass',
'$q',
'$state',
'ENV',
'ncUtils'];
function InitialDataController(
user... | JavaScript | 0 | @@ -580,16 +580,38 @@
: null,%0A
+ invitation: %7B%7D,%0A
ge
@@ -1853,103 +1853,8 @@
bled
- %7C%7C%0A (ENV.invitationsEnabled && !this.invitation.customer && !this.invitation.project)
) %7B%0A
@@ -2002,37 +2002,8 @@
if (
-!this.invitation.customer &&
this
|
08525172fcd6468fd0fbbd01471c46883a5c6168 | Improve exception reports | src/app/google.js | src/app/google.js | import _ from 'underscore';
window.ga = window.ga || function(...args) { (ga.q = ga.q || []).push(args); }; ga.l = Number(new Date());
ga('create', $DIM_FLAVOR === 'release' ? 'UA-60316581-1' : 'UA-60316581-5', 'auto');
ga('set', 'dimension1', $DIM_VERSION);
ga('set', 'dimension2', $DIM_FLAVOR);
// If we're hooked i... | JavaScript | 0.000001 | @@ -671,17 +671,25 @@
: $%7B
-e.message
+JSON.stringify(e)
%7D%60,%0A
@@ -790,16 +790,61 @@
'error',
+ (msg, url, lineNo, columnNo, error) =%3E %7B%0A
reportE
@@ -855,15 +855,10 @@
tion
-.bind('
+(%60
Glob
@@ -865,18 +865,61 @@
al Error
-')
+ ($%7BlineNo%7D:$%7BcolumnNo%7D) $%7Bmsg%7D%60, error);%0A %7D
);... |
fe7c4f796a0cefe14144aed7789684092155fe09 | add query | persistencia/VersiculoDao.js | persistencia/VersiculoDao.js | function VersiculoDao(connection) {
this._connection = connection;
}
VersiculoDao.prototype.buscaPorId = function (version, liv, cap, vers, callback) {
var query = " select * from versiculos where 1 = 1 ";
if(version){
query = query + " and ver_vrs_id = " + version;
}
if(liv){
query... | JavaScript | 0.000329 | @@ -539,16 +539,20 @@
y(query,
+ %22%22,
callbac
|
6d3bcf8cc052768e0ffb850c622ab409c9a816c1 | fix spacing in constant in SaveZPoint (#6584) | app/src/components/CalibrationPanels/SaveZPoint.js | app/src/components/CalibrationPanels/SaveZPoint.js | // @flow
import * as React from 'react'
import { css } from 'styled-components'
import {
PrimaryBtn,
Flex,
Text,
FONT_WEIGHT_SEMIBOLD,
FONT_SIZE_HEADER,
FONT_SIZE_BODY_2,
DIRECTION_ROW,
SPACING_3,
SPACING_5,
BORDER_SOLID_LIGHT,
JUSTIFY_CENTER,
ALIGN_CENTER,
TEXT_TRANSFORM_UPPERCASE,
} from '@o... | JavaScript | 0 | @@ -3386,16 +3386,20 @@
%3Cb%3E%7B
+%60 $%7B
TARGET_S
@@ -3402,16 +3402,18 @@
ET_SLOT%7D
+%60%7D
.%3C/b%3E%0A
|
d9fd6d667339bcf4850bc0c051e008357e627022 | Stop using export default | autoinput.js | autoinput.js | import {Pos, Node} from "../model"
import {defineOption} from "../edit"
import {Rule, addInputRules, removeInputRules} from "./inputrules"
defineOption("autoInput", false, function(pm, val, old) {
if (val && !old) addInputRules(pm, rules)
else if (!val && old) removeInputRules(pm, rules)
})
export var rules = [
... | JavaScript | 0 | @@ -405,66 +405,8 @@
%22),%0A
- // FIXME this isn't appropriate for English apostrophes%0A
ne
|
541a99bbc5f2af42ee65c852f95c1193d4a373f5 | Fix item removal. | packages/xo-lib/collection.js | packages/xo-lib/collection.js | 'use strict';
//====================================================================
var forEach = require('lodash.foreach');
var indexOf = require('lodash.indexof');
//====================================================================
function defaultKey(item) {
return item.id || item._id || item;
}
//=======... | JavaScript | 0 | @@ -2613,16 +2613,103 @@
item) %7B%0A
+ var key = this._key(item);%0A item = this._data%5Bkey%5D;%0A if (!item) %7B%0A return;%0A %7D%0A%0A
unset.
|
41340f128e779dc6685c2aba3a09b0de04492198 | remove alert | webapp/main.js | webapp/main.js | function moveRover(direction){
$.ajax({
url: "/rover?c=" + direction + "&v=1",
context: document.body
}).done(function() {
alert("made it");
});
};
| JavaScript | 0.000001 | @@ -131,13 +131,19 @@
%0A%09
-alert
+console.log
(%22ma
|
a00856268787afe3ce1bb223d1fc8cb1d74e80c3 | Swap ids for classes in completion rate template | app/common/views/visualisations/completion_rate.js | app/common/views/visualisations/completion_rate.js | define([
'extensions/views/view',
'common/views/visualisations/volumetrics/number',
'common/views/visualisations/volumetrics/completion-graph'
],
function (View, VolumetricsNumberView, CompletionGraphView) {
var CompletionRateView = View.extend({
valueAttr: 'completion',
totalAttr: 'totalCompletion',
... | JavaScript | 0 | @@ -213,32 +213,14 @@
%7B%0A
-var CompletionRateView =
+return
Vie
@@ -336,33 +336,33 @@
turn %7B%0A '
-#
+.
volumetrics-comp
@@ -674,9 +674,9 @@
'
-#
+.
volu
@@ -835,43 +835,14 @@
%7D%0A
+%0A
%7D);
-%0A%0A return CompletionRateView;
%0A%7D);
|
0d1f18637799fff6e84142166f767598cd615d82 | Fix bad location of launch image | src/containers/Launch/LaunchView.js | src/containers/Launch/LaunchView.js | /**
* Launch Screen
* - Shows a nice loading screen whilst:
* - Checking if user is logged in, and redirects from there
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component, PropTypes } from 'react';
import {
View,
Image,
StatusBar,
StyleSheet,... | JavaScript | 0.001537 | @@ -1395,16 +1395,19 @@
ire('../
+../
images/l
|
b3d61c99170dff588e60c6913609666eaddc2718 | Fix xaxis tests since removal of matrix collection | spec/client/extensions/views/graph/spec.xaxis.js | spec/client/extensions/views/graph/spec.xaxis.js | define([
'extensions/views/graph/xaxis',
'extensions/collections/collection'
],
function (XAxis, Collection) {
describe('XAxisComponent', function () {
var el, wrapper, svg;
beforeEach(function () {
el = $('<div></div>').appendTo($('body'));
wrapper = d3.select(el[0]).append('svg').append('g'... | JavaScript | 0 | @@ -848,17 +848,16 @@
n.reset(
-%5B
%7B%0A
@@ -862,46 +862,28 @@
-values: new Collection(
+data:
values
-)
%0A %7D
%5D);%0A
@@ -878,17 +878,33 @@
%0A %7D
-%5D
+, %7B parse: true %7D
);%0A%0A
|
2cedf565fa702c0842629edac5e080e10a9ebe1a | load table data | pages/app/embed/EmbedTable.js | pages/app/embed/EmbedTable.js | import React from 'react';
import PropTypes from 'prop-types';
import isEmpty from 'lodash/isEmpty';
import 'isomorphic-fetch';
// Redux
import withRedux from 'next-redux-wrapper';
import { initStore } from 'store';
import { bindActionCreators } from 'redux';
import { getWidget } from 'redactions/widget';
import { set... | JavaScript | 0.000002 | @@ -1555,16 +1555,57 @@
(query)%0A
+ .then(response =%3E response.json())%0A
.t
@@ -1705,16 +1705,21 @@
response
+.data
%0A
@@ -2263,63 +2263,8 @@
%7D
-%0A debugger;%0A console.log('tableData', tableData);
%0A%0A
|
cc0c9446daef92b71e6ef35ee20b53b43bde6725 | fix(tasks):fix typo | client/scripts/filter/directives/cam-tasklist-tasks.js | client/scripts/filter/directives/cam-tasklist-tasks.js | define([
'angular',
'moment',
'text!./cam-tasklist-tasks.html'
], function(
angular,
moment,
template
) {
'use strict';
function indexOfId(items, id) {
for (var i in items) {
if (items[i].id === id) { return i; }
}
return -1;
}
return [function(){
return {
restrict: '... | JavaScript | 0.999927 | @@ -693,24 +693,16 @@
= null;%0A
-
%0A
@@ -1885,22 +1885,21 @@
-filter
+tasks
Data.obs
|
ed714ba395da060b37a82e7f78fc87a54fd0e5fa | Make npm fail to test travis ci | webpack.mix.js | webpack.mix.js | const {mix} = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel app... | JavaScript | 0.000011 | @@ -470,11 +470,11 @@
/js/
-vue
+app
.js'
|
9e5a267924ddfb0c58648e64d8e5370ebbe74e6a | Allow public/guest to query for comment docs | modules/project-comments/server/routes/comment.routes.js | modules/project-comments/server/routes/comment.routes.js | 'use strict';
// =========================================================================
//
// Routes for comments
//
// =========================================================================
var CommentModel = require ('../controllers/comment.controller');
var CommentPeriod = require ('../controllers/commentper... | JavaScript | 0 | @@ -4180,28 +4180,29 @@
ll(policy ('
-user
+guest
'))%0A%09.get (r
|
5cffee7ce6c9d25272d6b5bfb9c8b5c23072548c | stop matrix client on logout please | src/controllers/pages/MatrixChat.js | src/controllers/pages/MatrixChat.js | /*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0 | @@ -2973,32 +2973,84 @@
resence.stop();%0A
+ MatrixClientPeg.get().stopClient();%0A
|
cff945d097c8c78b08c662c30751c7602911d8e0 | Add Cache Busting in Production Code | webpack.mix.js | webpack.mix.js | const { mix } = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel a... | JavaScript | 0 | @@ -596,8 +596,56 @@
Maps();%0A
+%0Aif (mix.inProduction()) %7B%0A mix.version();%0A%7D%0A
|
b214ad50b117c5aeba17fd5bcc00b0502b7a62b9 | fix loopelement blur/focus with autoplay | customelements/LoopElement.js | customelements/LoopElement.js | import Ticker from "../utils/Ticker.js";
export default class LoopElement extends HTMLElement {
constructor({autoplay = true, background = false} = {}) {
super();
this._autoplay = autoplay || this.hasAttribute("autoplay");
this._background = background || this.hasAttribute("background");
this.paused... | JavaScript | 0 | @@ -321,16 +321,47 @@
= true;
+%0A this._pausedByBlur = true;
%0A%0A th
@@ -508,22 +508,55 @@
is._
-pauseBinded
+onBlur = () =%3E %7B%0A this._pausedByBlur
=
+!
this
@@ -561,27 +561,48 @@
is.pause
-.bind(this)
+d;%0A this.pause();%0A %7D
);%0A
@@ -645,41 +645,99 @@
is._
-playBin... |
1efcf56f288eafc556838237db16e24a175e157b | Rearrange variable declaration | cloud/jobs/updateChampions.js | cloud/jobs/updateChampions.js | var _ = require('underscore');
Parse.Cloud.job("updateChampions", function(request, status) {
var RIOT_API_KEY;
Parse.Cloud.useMasterKey();
var Champion = Parse.Object.extend("Champion")
var champions;
Parse.Config.get().then(function(config){
RIOT_API_KEY = config.get('RIOT_API_KEY')
return RIOT_A... | JavaScript | 0.00005 | @@ -92,28 +92,8 @@
) %7B%0A
- var RIOT_API_KEY;%0A
Pa
@@ -118,17 +118,16 @@
rKey();%0A
-%0A
var Ch
@@ -166,16 +166,82 @@
ampion%22)
+;%0A%0A // variables that persist across promises%0A var RIOT_API_KEY;
%0A var c
@@ -818,16 +818,17 @@
crement%0A
+%0A
retu
|
445d6e3ed5e88a95823aa7bbb22b1abb1dc8fccb | Fix tests. | src/converter/r2t/ImportEntities.js | src/converter/r2t/ImportEntities.js | const TYPES = {
'journal': 'journal-citation',
'book': 'book-citation'
}
const ELEMENT_CITATION_ENTITY_DB_MAP = {
'articleTitle': 'article-title',
'chapterTitle': 'chapter-title',
'source': 'source',
'publisherLoc': 'publisher-loc',
'publisherName': 'publisher-name',
'volume': 'volume',
'year': 'year... | JavaScript | 0 | @@ -31,24 +31,23 @@
journal-
-citation
+article
',%0A 'bo
@@ -56,25 +56,16 @@
': 'book
--citation
'%0A%7D%0A%0Acon
|
a136631f1f456e73a6c553bd2bee536bfa72236e | remove unused props from container | src/components/PlaybackCtrl/PlaybackCtrlContainer.js | src/components/PlaybackCtrl/PlaybackCtrlContainer.js | import { connect } from 'react-redux'
import PlaybackCtrl from './PlaybackCtrl'
import { requestPlay, requestPause, requestVolume, requestPlayNext } from 'routes/Player/modules/player'
// Object of action creators (can also be function that returns object).
const mapActionCreators = {
requestPlay,
requestPlayNext... | JavaScript | 0.000001 | @@ -403,113 +403,8 @@
n %7B%0A
- queueId: state.status.queueId,%0A position: state.status.position,%0A volume: state.status.volume,%0A
@@ -442,28 +442,22 @@
ng,%0A
-isAtQueueEnd
+volume
: state.
@@ -467,20 +467,14 @@
tus.
-isAtQueueEnd
+volume
,%0A
|
095b431e08e8518b9b291bb6a6d4d2d4abf3afad | Refactor webpack build file. | webpack.mix.js | webpack.mix.js | const mix = require('laravel-mix');
const path = require('path');
const webpack = require('webpack');
const publicPath = path.resolve('public_html');
const isDev = process.env.NODE_ENV === 'development';
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------... | JavaScript | 0 | @@ -39,64 +39,44 @@
nst
-path = require('path');%0Aconst webpack = require('webpack
+autoprefixer = require('autoprefixer
');%0A
@@ -99,21 +99,8 @@
h =
-path.resolve(
'pub
@@ -108,17 +108,16 @@
ic_html'
-)
;%0Aconst
@@ -611,157 +611,59 @@
mix.
-webpackConfig(%7B%0A plugins: %5B%0A new webpack.ProvidePlugi... |
fa0eeec36b532b87bb8c188690268306f107bc16 | Fix title when disabled | src/background.js | src/background.js | if (!document.pictureInPictureEnabled) {
chrome.browserAction.setTitle('Picture-in-Picture is NOT supported.');
} else {
chrome.browserAction.onClicked.addListener(tab => {
const code = `
(async () => {
const video = document.querySelector('video');
if (video.hasAttribute('__pip__... | JavaScript | 0.000001 | @@ -66,16 +66,25 @@
etTitle(
+%7B title:
'Picture
@@ -99,11 +99,8 @@
ure
-is
NOT
@@ -112,10 +112,11 @@
rted
-.
'
+ %7D
);%0A%7D
|
f3c5f790104d5cd7e4226023bd84738cfd22cd96 | Replace gcm with node-gcm | lib/GCMNotification.js | lib/GCMNotification.js | var util = require('util');
var _ = require('lodash');
var Promise = require('bluebird');
var gcm = require('gcm');
var BaseNotification = require('./BaseNotification');
util.inherits(GCMNotification, BaseNotification);
/**
* Create new push notification to Android devices
* @param {Object} options
* @constructor
... | JavaScript | 0.999999 | @@ -102,16 +102,21 @@
equire('
+node-
gcm');%0Av
|
fb757b87780e4d82854ca2816d7f29d66caabb5c | add tracking code | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
title: `TulsaJS`,
description: `A community of Javascript developers in and around Tulsa, Oklahoma`,
author: `@nearbycoder`,
},
plugins: [
`gatsby-plugin-emotion`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {... | JavaScript | 0 | @@ -1035,20 +1035,19 @@
head:
-fals
+tru
e,%0A
@@ -1403,16 +1403,20 @@
omain: %22
+www.
tulsajs.
|
a504c1bfa5a1df164345068d1d3c34b91dbccf53 | remove purge css | gatsby-config.js | gatsby-config.js | module.exports = {
siteMetadata: {
title: "Casper Wang",
author: {
name: "Casper Wang",
summary: "Software and more",
},
description: "A Blog site from Casper Wang",
siteUrl: "https://casprwang.com",
social: {
twitter: "casprwang",
},
},
plugins: [
{
resolve... | JavaScript | 0.000001 | @@ -1775,73 +1775,8 @@
s%22,%0A
- %22gatsby-plugin-purgecss%22, // must be after other CSS plugins%0A
|
71d6f504bcf0cc643aeefc2feccdcfa724504c6c | update styles | src/components/snippets/ajax-select/selectWrapper.js | src/components/snippets/ajax-select/selectWrapper.js | import React, {Component} from 'react';
class SelectOption extends Component{
render(){
return(
<option className="select-option" value={this.props.value}>{this.props.display}</option>
);
}
}
export default class SelectWrapper extends Component{
render(){
let selectOptionNodes = this.props.dat... | JavaScript | 0.000001 | @@ -505,16 +505,34 @@
%3Clabel
+ className=%22label%22
%3E%7Bthis.p
@@ -564,48 +564,189 @@
-%3Cselect onChange=%7Bthis.props.onChange%7D%3E%0A
+ %3Cp className=%22control%22%3E%0A %3Cspan className=%22select%22%3E%0A %3Cselect onChange=%7Bthis.props.onChange%7D%3E%0A %3... |
f5096abdbf9cdcc5a97c35994f30bd9de80e5f16 | Use angular.forEach | app/scripts/controllers/table-search-controller.js | app/scripts/controllers/table-search-controller.js | 'use strict';
/**
* @ngdoc function
* @name groongaAdminApp.controller:TableSearchController
* @description
* # TableSearchController
* Controller of the groongaAdminApp
*/
angular.module('groongaAdminApp')
.controller('TableSearchController', function ($scope, $routeParams, $http) {
function escapeCommand... | JavaScript | 0.000008 | @@ -525,34 +525,55 @@
-for (var key in parameters
+angular.forEach(parameters, function(value, key
) %7B%0A
@@ -620,16 +620,14 @@
-continue
+return
;%0A
@@ -626,32 +626,33 @@
turn;%0A %7D%0A
+%0A
componen
@@ -675,46 +675,8 @@
ey);
-%0A%0A var value = parameters%5Bkey%5D;
%0A ... |
10dd276819b84073f760737da99083bd10a8a632 | Update app.js | content/docs/theming/overriding-ionic-variables/app.js | content/docs/theming/overriding-ionic-variables/app.js | $(document).ready(function() {
var debounce = function (fn) {
var timeout;
return function () {
var args = Array.prototype.slice.call(arguments),
ctx = this;
clearTimeout(timeout);
timeout = setTimeout(function () {
fn.apply(ctx, args);
}, 50);
}
}
// Contro... | JavaScript | 0.000003 | @@ -2409,14 +2409,14 @@
lob/
-master
+v3.9.2
/' +
|
a0f6ecc1d345c2acd7c1072b4edbea3dd9c6b19a | replace unsupported documentDb method ;-/ | data/dbutils.js | data/dbutils.js |
var Promise = require("bluebird")
var MongoClient = require("mongodb").MongoClient // Doesn't require promisification
var DbUtils = function() {
}
function newConnection() {
return MongoClient
.connect(process.env.MONGO_URL, {
promiseLibrary: Promise // Here you instruct to use bluebird
})
}
... | JavaScript | 0 | @@ -903,35 +903,32 @@
n)%0A .find
-One
(query, select)%0A
|
dde657c432c68dc037784d81b348eb73ac127838 | Bump version. | buffering.js | buffering.js | /**
* @license Videogular v0.6.1 http://videogular.com
* Two Fucking Developers http://twofuckingdevelopers.com
* License: MIT
*/
"use strict";
/**
* @ngdoc directive
* @name com.2fdevs.videogular.plugins.buffering:vgBuffering
* @restrict E
* @description
* Shows a spinner when Videogular is buffering or prepa... | JavaScript | 0 | @@ -25,17 +25,17 @@
ar v0.6.
-1
+2
http://
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.