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 |
|---|---|---|---|---|---|---|---|
edb8df5e5897f567b57f38a9533c31ea6e347bd9 | correct the url for production, will need fixed for dev | app/modules/screen-sharing/controllers/AuthenticationCtrl.js | app/modules/screen-sharing/controllers/AuthenticationCtrl.js | App.controllers.authenticationCtrl = (function ($, App) {
'use strict';
// The Authentication Controller
return function (options) {
var $el;
var chromeUrl = 'https://chrome.google.com/webstore/detail/jlpojfookfonjolaeofpibngfpnnflne';
// A callback when the name is submitted
... | JavaScript | 0.000001 | @@ -1814,16 +1814,29 @@
examples
+/web-examples
-respoke
|
d540fbf7e1bd4ac5b04801e40cd6a18d483fdae8 | Use hooks, simplify PauseButton | app/js/PauseButton.js | app/js/PauseButton.js | /* @flow */
import React from 'react';
const TW = chrome.extension.getBackgroundPage().TW;
// Unpack TW.
const { settings } = TW;
type State = {
paused: boolean,
};
export default class PauseButton extends React.PureComponent<{}, State> {
constructor() {
super();
this.state = {
paused: settings.g... | JavaScript | 0.000017 | @@ -38,16 +38,40 @@
';%0A%0A
-const TW
+// Unpack TW.%0Aconst %7B settings %7D
= c
@@ -115,275 +115,192 @@
W;%0A%0A
-// Unpack TW.%0Aconst %7B settings %7D = TW;%0A%0Atype State = %7B%0A paused: boolean,%0A%7D;%0A%0Aexport default class PauseButton extends React.PureComponent%3C%7B%7D, State%3E %7B%0A constructor... |
ae360486d866539ac26f4036d1e8b2f33719fd52 | change order of counter columns | frontend/src/containers/jobs.js | frontend/src/containers/jobs.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { NomadLink } from '../components/link'
class Jobs extends Component {
counterColumns() {
return ['Queued', 'Complete', 'Failed', 'Running', 'Starting', 'Lost'];
}
getJobStatisticsHeader() {
let output... | JavaScript | 0.000002 | @@ -193,16 +193,39 @@
return %5B
+'Starting', 'Running',
'Queued'
@@ -251,31 +251,8 @@
ed',
- 'Running', 'Starting',
'Lo
|
a8d31a629389091299c7348d73477b5a34d4dfa2 | fix fs records | src/scrapers/familysearch-record.js | src/scrapers/familysearch-record.js | var debug = require('debug')('genscrape:scrapers:familysearch-record'),
utils = require('../utils'),
GedcomX = require('gedcomx-js');
var urls = [
utils.urlPatternToRegex("https://familysearch.org/pal:/MM9.1.1/*"),
utils.urlPatternToRegex("https://familysearch.org/ark:/61903/1:1:*")
];
module.exports = fu... | JavaScript | 0.000006 | @@ -438,16 +438,53 @@
on.href,
+ %7BAccept:'application/x-fs-v1+json'%7D,
functio
|
deae7aa2895bce928c25c4e0d0f8155213fc5320 | Update controllers.js | app/js/controllers.js | app/js/controllers.js | 'use strict';
var carApp = angular.module('carApp', ['ngRoute']);
carApp.config(['$routeProvider', function($routeProvider){
$routeProvider
.when('/buy',{
templateUrl: 'template/buy.html',
controller: 'BuyController'
})
.when('/',{
templateUrl: 'template/home.html',
controller: 'HomeCon... | JavaScript | 0.000001 | @@ -822,32 +822,35 @@
%7B%0D%0A%09%09$http.get('
+../
cars/cars.json')
|
a9ad69bfa4ea4c4e803f2386ea0c36b7d71483f1 | Include path.sep in escapeRegExp argument. | frontend_tests/zjsunit/index.js | frontend_tests/zjsunit/index.js | "use strict";
const fs = require("fs");
const Module = require("module");
const path = require("path");
const Handlebars = require("handlebars/runtime");
const _ = require("lodash");
const handlebars = require("./handlebars");
const stub_i18n = require("./i18n");
const namespace = require("./namespace");
const stub ... | JavaScript | 0 | @@ -604,25 +604,24 @@
/static/js%22)
-)
+ path.sep)
@@ -620,16 +620,17 @@
ath.sep)
+)
,%0A
@@ -725,17 +725,16 @@
red/js%22)
-)
+ path.
@@ -736,16 +736,17 @@
path.sep
+)
,%0A
|
8fcb015085e02b7fc4abf702cec57ccf827c8299 | add server ip addresses | functions/commands/xmservers.js | functions/commands/xmservers.js | const lib = require('lib')({token: process.env.STDLIB_TOKEN});
/**
* /hello
*
* Basic "Hello World" command.
* All Commands use this template, simply create additional files with
* different names to add commands.
*
* See https://api.slack.com/slash-commands for more details.
*
* @param {string} user The user ... | JavaScript | 0 | @@ -948,206 +948,1029 @@
%0A %7D
+;
%0A%0A
-%0A if(Object.values(team).indexOf(user) %3E -1)%7B%0A%0A if(team%5Btext%5D) %7B%0A callback(null, %7B%0A response_type: 'ephemeral',%0A text: %60Hey %3C@$%7Buser%7D%3E here is the info for $%7Btext%7D's sever:%60
+ var servers = %7B%0A dennis: %... |
37905608230e85a0c6c38a9f1b5cdb0efcdf9cbe | Update Redux DevTools to log only in production env | src/redux/configureStore.js | src/redux/configureStore.js | import {
applyMiddleware,
combineReducers,
createStore,
} from 'redux';
import thunk from 'redux-thunk';
import enhancer from './storeEnhancer';
import { composeWithDevTools } from 'redux-devtools-extension';
export default (preloadedState, preloadedReducers) => createStore(
preloadedReducers ? combineReducers... | JavaScript | 0 | @@ -205,16 +205,36 @@
xtension
+/logOnlyInProduction
';%0A%0Aexpo
|
240138cb352642ad7d8f9ddf0640e4582b5648eb | fix preventDefault | client/views/regions/regions.js | client/views/regions/regions.js | Template.region_sel_outer.created = function(){
this.subscribe("Regions");
var instance = this;
instance.searchingRegions = new ReactiveVar(false);
};
Template.region_sel_outer.helpers({
searchingRegions: function() {
return Template.instance().searchingRegions.get();
}
});
Template.regionsDisplay.helpers({... | JavaScript | 0.000003 | @@ -2354,16 +2354,42 @@
tance)%7B%0A
+%09%09event.preventDefault();%0A
%09%09var re
@@ -3016,30 +3016,8 @@
e);%0A
-%09%09e.preventDefault();%0A
%09%7D,%0A
|
f09b70b251769891f1a2cf8c5fea810c9b0b23c4 | Set 'exact' prop to Route to PatientView | src/web/components/App.react.js | src/web/components/App.react.js | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... | JavaScript | 0.000001 | @@ -1461,24 +1461,30 @@
%3CRoute
+exact
path=%22/patie
|
368be6e935365a9e680824198f471275726ec3d2 | Add function delete() | app/js/controllers.js | app/js/controllers.js | 'use strict';
/* Controllers */
var app = angular.module('toDoList.controllers', []);
app.controller('IndexCtrl', ['$scope', '$routeParams', '$location', '$http', function ($scope, $routeParams, $location, $http) {
$scope.tasks = [{"text" : "clean", "done" : false}];
$scope.count = 1;
$scope.addTask ... | JavaScript | 0.000001 | @@ -481,25 +481,24 @@
n () %7B %0A
-%0A
for (var
@@ -493,151 +493,146 @@
-for (var i = 0; i %3C= $scope.tasks.length; i++) %7B%0A console.log($scope.tasks%5Bi%5D.done);%0A if ($scope.tasks%5Bi%5D.done == %22true%22)
+var oldTasks = $scope.tasks;%0A $scope.tasks = %5B%5D;%0... |
2ed93b24be877f979d4feaf441e95d33046efcb9 | delete query collection in RESMI | src/resources/collection.js | src/resources/collection.js | (function() {
//@exclude
'use strict';
/*globals corbel */
//@endexclude
/**
* Collection requests
* @class
* @memberOf Resources
* @param {String} type The collection type
* @param {CorbelDriver} corbel instance
*/
corbel.Resources.Collection = corbel.Resources.B... | JavaScript | 0 | @@ -2254,16 +2254,754 @@
%7D);%0A
+ %7D,%0A%0A /**%0A * Delete a collection%0A * @method%0A * @memberOf Resources.CollectionBuilder%0A * @param %7Bobject%7D options Options object with dataType request option%0A * @return %7BPromise%7D ES6 prom... |
af1519d7f0725b099075ff5634a3306b9de5260e | clear search results on empty string | client/views/sections/search.js | client/views/sections/search.js | function search (collectionName, query, sortBy) {
Session.set("waiting", true);
EasySearch.search(collectionName, query, function (err, data) {
var results = data.results;
if (collectionName === "instructors") {
Session.set("profCount", results.length)
} else {
Session.set("courseCount", res... | JavaScript | 0.000005 | @@ -39,24 +39,208 @@
, sortBy) %7B%0A
+ if (query == %22%22) %7B%0A Session.set(%22profCount%22, 0);%0A Session.set(%22courseCount%22, 0);%0A Session.set(%22instructorsSearch%22, %5B%5D);%0A Session.set(%22coursesSearch%22, %5B%5D);%0A %7D%0A else %7B%0A
Session.se
@@ -261,16 +261,18 @@
rue);%0A ... |
8692ad389f7f4a44c06531a50b9b8ffc989fe21f | Update profileCtrl.js | app/js/profileCtrl.js | app/js/profileCtrl.js | //profileCtrl
app.controller("profileCtrl",
// Implementation the todoCtrl
function($scope, Auth, $firebaseArray, $firebaseObject,$window) {
Auth.$onAuthStateChanged(function(authData){
//initialize
$scope.authData = authData;
ref = firebase.database().ref("users/"+$scope.authData.uid+"/readOnly/info");... | JavaScript | 0.000002 | @@ -1,18 +1,4 @@
-//profileCtrl%0A
app.
@@ -27,41 +27,8 @@
l%22,
-%0A%0A%09// Implementation the todoCtrl
%0A%09f
@@ -88,19 +88,41 @@
,$window
+, $stateParams,Helper
) %7B
+%09
%0A%09%09Auth.
@@ -177,16 +177,36 @@
tialize%0A
+%09%09%09if (authData) %7B%0A%09
%09%09%09$scop
@@ -228,16 +228,17 @@
thData;%0A
+%... |
d252a22fdb3201b2e53345a744026dba3a601967 | Use stdin to send messages to the #oftn channel | hub/irc/Manager.js | hub/irc/Manager.js | var Connection = require ("./Connection.js");
var IRCManager = function (config) {
this.config = config;
this.connections = [];
};
/* This function takes the server profile from the config and extends
* it with the defaults from the config so that when the defaults
* change or the server profile changes, it will ... | JavaScript | 0 | @@ -922,16 +922,137 @@
oftn%22);%0A
+%09%09%09var stdin = process.openStdin();%0A%09%09%09stdin.on('data', function(chunk) %7B connection.send (%22PRIVMSG #oftn :%22+chunk); %7D);%0A
%09%09%7D);%0A%09%09
|
ceabcc8bcab863000fd3047c79afac24a9b3da71 | Fix syntax error in last commit | src/wrappers/node-interfaces.js | src/wrappers/node-interfaces.js | // Copyright 2013 The Polymer Authors. All rights reserved.
// Use of this source code is goverened by a BSD-style
// license that can be found in the LICENSE file.
(function(scope) {
'use strict';
var NodeList = scope.wrappers.NodeList;
function forwardElement(node) {
while (node && node.nodeType !== Node... | JavaScript | 0.000012 | @@ -1266,16 +1266,26 @@
remove
+: function
() %7B%0A
|
c3ad27ec2e6d61366c9230f922588164354b5179 | Add functionality to cancel file read in saga | src/sagas/getArrayBuffer.js | src/sagas/getArrayBuffer.js | import { eventChannel, END } from 'redux-saga'
import { take, put, call } from 'redux-saga/effects'
import { saveArrayBuffer, saveProgress } from '../actions'
const createFileReadChannel = (file) => {
return eventChannel((emitter) => {
let reader = new FileReader()
const onLoad = () => { emitter({ arrayBuf... | JavaScript | 0 | @@ -64,16 +64,22 @@
ut, call
+, race
%7D from
@@ -108,16 +108,26 @@
import %7B
+ saveFile,
saveArr
@@ -168,16 +168,76 @@
actions'
+%0Aimport %7B CANCEL_FILE_READ %7D from '../constants/ActionTypes'
%0A%0Aconst
@@ -527,64 +527,8 @@
) %7D%0A
- const onAbort = () =%3E %7B emitter(%7B progress: -1 %7D) %7D%0A... |
9ef233f3e2ca3ab250b66149390c833c117c27e7 | Use isBigNumber to check for a type | chai-bignumber.js | chai-bignumber.js | module.exports = function(BigNumber){
BigNumber = BigNumber || require('bignumber.js');
return function (chai, utils) {
chai.Assertion.addProperty('bignumber', function() {
utils.flag(this, 'bignumber', true);
});
var convert = function(value, dp, rm) {
var number;
if (typeof value... | JavaScript | 0 | @@ -424,20 +424,11 @@
alue
- instanceof
+.is
BigN
|
f8fc1afe3ff8614955799ed1c69174925a45f184 | use config variable for graphql endpoint | src/server/graphql/index.js | src/server/graphql/index.js | const graphqlExpress = require('graphql-server-express').graphqlExpress;
// format Error
const ensureAuthenticated = require('../middleware/ensure_authenticated');
// format Error
const formatError = require('./format_error').formatError();
// get executable schema
const { getExecutableSchema } = require('./schema')... | JavaScript | 0 | @@ -529,16 +529,70 @@
/db');%0A%0A
+const %7B%0A graphql_endpoint%0A%7D = require('../config');%0A%0A
module.e
@@ -699,16 +699,30 @@
use(
-'/
+%60/$%7B
graph
-'
+ql_endpoint%7D%60
, en
|
cee78b01d6e25bfea716aedc3312308992c18159 | Add guid to checkbox select | addon/components/form-controls/ff-checkbox-select.js | addon/components/form-controls/ff-checkbox-select.js | import FormControlsAbstractSelectComponent from './abstract-select';
import { action } from '@ember/object';
import { arg } from 'ember-arg-types';
import { string, bool } from 'prop-types';
import { get } from '@ember/object';
import { A } from '@ember/array';
export default class FormControlsFfCheckboxSelectComponen... | JavaScript | 0 | @@ -254,16 +254,67 @@
/array';
+%0Aimport %7B guidFor %7D from '@ember/object/internals';
%0A%0Aexport
@@ -686,16 +686,33 @@
.idKey)%7D
+-$%7BguidFor(this)%7D
%60;%0A %7D%0A%0A
|
42306a7907aee5773f8cf255d7602c6c7198ea9d | use 1 and 0 | src/views/home.js | src/views/home.js | "use strict"
const title = document.getElementById("title")
const msg = document.getElementById("msg")
const msg2 = document.getElementById("msg2")
const form = document.getElementById("form")
const input = document.getElementById("input")
const onePrep = e => {
e.preventDefault()
if (input.value.trim() === "... | JavaScript | 0.999975 | @@ -1659,17 +1659,17 @@
tent = %22
-Y
+1
%22%0A
@@ -1813,15 +1813,15 @@
? %22
-N
+0
%22 : %22
-Y
+1
%22%0A
|
6f80467f0953dd777910fb1161c21adaf2c835d6 | Fix linter | src/virtualDom.js | src/virtualDom.js | /**
* Wrapper on top of the Document object model javascript API,
* to make our life easier when we need to interact with such API in our tests
*
* @constructor VirtualDom
*/
window.getJasmineRequireObj().VirtualDom = function () {
var oldDocument,
spyElement = function (el) {
var original = el.addEv... | JavaScript | 0.000002 | @@ -1516,24 +1516,16 @@
%7D%0A
-
%0A
@@ -1950,16 +1950,50 @@
perty;%0A%0A
+ /* jshint forin: false */%0A
@@ -2069,32 +2069,65 @@
erty%5D;%0A %7D
+%0A /* jshint forin: true */
%0A%0A for (p
@@ -4308,26 +4308,16 @@
n (id) %7B
-
%0A
|
aecdbc68854f8b74aa24128ac39186e3e14a5b67 | fix port in heroku | src/startup/configuration-heroku.js | src/startup/configuration-heroku.js | let fs = require("fs");
let winston = require("winston");
let logger = require("../logger");
let env = process.env;
logger.configure({
level: 'verbose',
transports: [
new (winston.transports.Console)()
]
});
module.exports = {
server: {
port: env.NODE_PORT,
ip: env.NODE_IP... | JavaScript | 0 | @@ -282,21 +282,16 @@
rt: env.
-NODE_
PORT,%0D%0A
@@ -301,19 +301,17 @@
ip:
-env.NODE_IP
+undefined
%0D%0A
|
c2eea8c23cdee12d1de74b78e6a2c68ba9af2ade | remove the hardcode current date | app/assets/javascripts/map/views/layers/LossLayer.js | app/assets/javascripts/map/views/layers/LossLayer.js | /**
* The UMD loss map layer view.
*
* @return LossLayer class (extends CanvasLayerClass)
*/
define([
'd3',
'moment',
'uri',
'abstract/layer/CanvasLayerClass',
'map/presenters/layers/UMDLossLayerPresenter'
], function(d3, moment, UriTemplate, CanvasLayerClass, Presenter) {
'use strict';
var LossLaye... | JavaScript | 0.999999 | @@ -531,56 +531,8 @@
png'
-,%0A currentDate: %5B'2001-01-01','2017-01-01'%5D
%0A
|
9c53f183795b689156aabce67726c0d8e6afad90 | Update and remove leftover pre tag in prototype | app/assets/javascripts/student_profile/ElaDetails.js | app/assets/javascripts/student_profile/ElaDetails.js | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import {toMomentFromRailsDate} from '../helpers/toMoment';
import {high, medium, low} from '../helpers/colors';
import DetailsSection from './DetailsSection';
import StarChart from './StarChart';
import {McasNextGenChart, McasOldChar... | JavaScript | 0 | @@ -2155,17 +2155,16 @@
%22Fountas
-s
and Pin
@@ -2203,54 +2203,94 @@
%3C
-pre%3E%7BJSON.stringify(fAndP)%7D%3C/pre%3E%0A %3Cdiv
+div%3E%0A %3Cspan style=%7B%7Bpadding: 5, backgroundColor: '#ccc', fontWeight: 'bold'%7D%7D
%3ELev
@@ -2330,16 +2330,40 @@
ybeCode%7D
+%3C/span%3E%0A %3Cspa... |
114052d37d48dba50f4d43631514cb78a68986df | Fix Settings showing BusyIndicator indefinitely | src/Views/Settings.js | src/Views/Settings.js | import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import connect from 'dojo/_base/connect';
import _CardLayoutListMixin from './_CardLayoutListMixin';
import List from 'argos/List';
const resource = window.localeContext.getEntitySync('settings').attributes;
/**
* @class crm.Views.Settings... | JavaScript | 0 | @@ -3885,24 +3885,57 @@
%7D%0A %7D
+%0A this.set('listContent', '');
%0A%0A this.p
|
b8e5b38562b0cce18b0aca5d47af257f2e78ef38 | fix @param variable names | src/actions/movies.js | src/actions/movies.js | import 'whatwg-fetch';
import {
MOVIES_LOADED,
MOVIES_QUERY_CHANGED,
} from '../config/constants';
import { startAjaxCall, finishAjaxCall } from './ajax';
/**
* Action fired after the movies are loaded via the omdb API
*
* @export
* @param {array} tweets
*/
export const moviesLoaded = (results) => {
return ... | JavaScript | 0.000001 | @@ -254,12 +254,13 @@
ay%7D
-twee
+resul
ts%0A
@@ -451,36 +451,37 @@
@param %7Bstring%7D
+q
u
-s
er
+y
%0A */%0Aexport cons
|
7c2c9e45d1ac389c811de1e5dc66628a09501532 | Fix saving a slide as a blueprint with an empty name. [IQSLDSH-273] | app/controllers/slideBlueprints.server.controller.js | app/controllers/slideBlueprints.server.controller.js | /*global require, exports, console*/
(function () {
'use strict';
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
SlideBlueprint = mongoose.model("SlideBlueprint"),
lodash = require('lodash'),
Promise = require('promise'),
NamesA... | JavaScript | 0 | @@ -1845,32 +1845,193 @@
ide, req.body);%0A
+ if (!slide.name) %7B%0A return res.status(400).send(%7B%0A message: 'Please enter a name for the blueprint.'%0A %7D);%0A %7D%0A
SlideBlu
|
a02427f953fcbca41df0752e456fd0335f53240c | return entities into game | client/js/game.js | client/js/game.js | /* global _ */
define(['entities/player', 'gameclient', 'entityfactory', 'map'], function (Player, GameClient, EntityFactory, Map) {
var Game = Class.extend({
map: new Map(),
init: function (renderer) {
this.renderer = renderer;
this.keybindings['w'] = this.moveUp.bind(this);
this.keybindings['s'] = th... | JavaScript | 0.000917 | @@ -1329,18 +1329,16 @@
%7B%7D;%0A%09%09%09%09
-/*
_.each(e
@@ -1664,18 +1664,16 @@
%0A%09%09%09%09%7D);
-*/
%0A%09%09%09%09sel
|
ebaef33953a98ed01d2c95a2171f7439ea5619f5 | Send browser credentials with fetch instead of hard coding them | client/src/api.js | client/src/api.js | export default {
fetch(url) {
return fetch(url, {
headers: {
accept: "application/json",
authorization: "Basic " + btoa("nick:Nicholson")
}
}).then(response => response.json())
.then(function(data) {
console.log(data);
return data;
})
}
}
| JavaScript | 0 | @@ -46,16 +46,47 @@
(url, %7B%0A
+%09%09%09credentials: %22same-origin%22,%0A
%09%09%09heade
@@ -125,62 +125,8 @@
son%22
-,%0A%09%09%09%09authorization: %22Basic %22 + btoa(%22nick:Nicholson%22)
%0A%09%09%09
|
e134a7afe8647c6f5d8c057309869a6b595a740d | add scrolling animation | static/js/init.js | static/js/init.js | (function($){
$(function(){
$('.button-collapse').sideNav();
$('.parallax').parallax();
}); // end of document ready
})(jQuery); // end of jQuery name space | JavaScript | 0.000001 | @@ -91,16 +91,456 @@
allax();
+%0A $('a%5Bhref*=#%5D').click(function() %7B%0A%09%09if (location.pathname.replace(/%5E%5C//,'') == this.pathname.replace(/%5E%5C//,'') && location.hostname == this.hostname) %7B%0A%09%09%09var $target = $(this.hash);%0A%09%09%09$target = $target.length && $target %7C%7C $('%5Bname=' ... |
6d549713f81ebc9b80aa605d4fb0a4b9f8ebdeae | tweak scroll speed | static/js/main.js | static/js/main.js | var scroll_start = 0;
var startchange, offset;
var animationAdded = false;
var initiallyRun = false;
function updateNav() {
var nav = $("nav")
if (initiallyRun && !animationAdded) {
console.log("ok")
animationAdded = true;
nav.addClass("nav-animate")
}
initiallyRun = true;
scroll_start = $(this).scrollTo... | JavaScript | 0.000001 | @@ -1140,9 +1140,9 @@
%7D,
-2
+3
50,
|
165afc20ebc35aafedce81aa2d1d0c4521c3fe3a | make the analyzer more robust. | server/analyzer.js | server/analyzer.js | //#!/bin/env node
/* Copyright 2014 Krzysztof Daniel
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 i... | JavaScript | 0.000001 | @@ -2943,27 +2943,26 @@
ernal =
-JSON.parse(
+'true' ==
currentN
@@ -2973,17 +2973,31 @@
external
-)
+ ? true : false
;%0A%09%09curr
@@ -3019,19 +3019,18 @@
d =
-JSON.parse(
+'true' ==
curr
@@ -3045,17 +3045,31 @@
userneed
-)
+ ? true : false
;%0A%09%09%0A%09%09i
|
281a899a87d6c49910978e611cbbb09e8834e600 | Stop using deprecated assert.equal | test/index.js | test/index.js | var nocache = require('..')
var assert = require('assert')
var connect = require('connect')
var request = require('supertest')
describe('nocache', function () {
it('sets headers properly', function () {
var app = connect()
app.use(function (req, res, next) {
res.setHeader('ETag', 'abc123')
next(... | JavaScript | 0.000004 | @@ -778,33 +778,39 @@
() %7B%0A assert.
-e
+strictE
qual(nocache.nam
@@ -834,17 +834,23 @@
assert.
-e
+strictE
qual(noc
|
b0eb98e1e744d8723f05634757e2f970a53924fc | Remove duplicate test | test/index.js | test/index.js | var chai = require('chai'),
expect = chai.expect,
hiscore = require('../index').hiscore,
nock = require('nock');
describe('Mocked Hiscore API', function () {
this.slow(100);
var createNock = function (player, mode) {
if(mode === undefined) {
mode = '';
}
return n... | JavaScript | 0.000014 | @@ -5357,312 +5357,8 @@
);%0A%0A
- it('can communicate with Jagex servers', function (done) %7B%0A this.slow(1000);%0A nock.cleanAll();%0A hiscore.standard('king_karthas', function (err, data) %7B%0A expect(err).to.be.a('null');%0A expect(data).to.not.be.a('null');%0A ... |
4c76fd6904501979db62db885e86358d19866eb0 | add onchange for autosave capabilities | addon/components/form-for/component.js | addon/components/form-for/component.js | import Component from '@ember/component';
import { set, get, computed } from '@ember/object';
import { tryInvoke } from '@ember/utils';
import RSVP from 'rsvp';
import Changeset from 'ember-changeset';
import layout from './template';
export default Component.extend({
layout,
tagName: 'form',
multiple: false,
... | JavaScript | 0 | @@ -1826,24 +1826,150 @@
ue);%0A %7D
+%0A%0A if (get(this, 'onchange')) %7B%0A get(this, 'onchange')(() =%3E %7B%0A return this.submit();%0A %7D);%0A %7D
%0A %7D,%0A%0A
|
fb50c79eab6a9ed3c275d6492eee9c4afd5cbbe7 | Update tests | test/index.js | test/index.js | var test = require('tape');
var url = require('url');
var matrixUrl = require('../');
var defaults = {
href: 'http://matrix.dev/_admin'
};
test('Basic functionality', function(t) {
var search = [
'?SQ_BACKEND_PAGE=main',
'&backend_section=am',
'&am_section=edit_asset',
'&assetid=',
'&asset_ei_... | JavaScript | 0.000001 | @@ -25,34 +25,8 @@
');%0A
-var url = require('url');%0A
var
@@ -58,24 +58,24 @@
);%0A%0Avar
-defaults
+DEFAULTS
= %7B%0A h
@@ -104,17 +104,139 @@
v/_admin
-'
+/'%0A%7D;%0A%0Avar testRunner = function testRunner(test) %7B%0A this.equal(test.test, DEFAULTS.href + test.search, test.description);
%0A%7D;%0A%0Ate... |
d3e7e0d56cb5eb8732cfa12f07612fe2729906f2 | Fix ava | test/index.js | test/index.js | import test from 'ava';
import plugin from '../postcss-rem-phi-units';
import postcss from 'postcss';
import { readFileSync } from 'fs';
test('Settingless units', async t => {
postcss(plugin)
.process(readFileSync('in.css'))
.then(result =>
t.same(result.css, readFileSync('expected.css', 'utf8'));
);
});
| JavaScript | 0.000778 | @@ -299,17 +299,16 @@
'utf8'))
-;
%0A%09%09);%0A%7D)
|
19e040de15b268ad23d5013941a84f08a699d42a | add unit tect create | test/index.js | test/index.js | function test(name, path) {
describe(name, function() {
require(path);
})
}
describe('#dl-module', function(done) {
this.timeout(2 * 60000);
// Auth
// test('@auth/account-manager', './auth/account-manager-test');
// test('@auth/role-manager', './auth/role-manager-test');
//Master
... | JavaScript | 0 | @@ -296,24 +296,29 @@
ger-test');%0A
+ %0A
//Master
@@ -317,27 +317,24 @@
//Master%0A
- //
test('@mast
@@ -375,35 +375,32 @@
ager-test');%0A
- //
test('@master/s
@@ -447,35 +447,32 @@
ager-test');%0A
- //
test('@master/b
@@ -513,35 +513,32 @@
ager-test');%0A
- //
test('@master/p
@@ -583... |
38755eaa8eabc75088546fab9e7285ca9fd1eda2 | Test 'hotel rm' failures | test/index.js | test/index.js | process.env.HOME = `${__dirname}/home`
process.env.USERPROFILE = `${__dirname}/home`
let assert = require('assert')
let cp = require('child_process')
let fs = require('fs')
let path = require('path')
let supertest = require('supertest')
let untildify = require('untildify')
let rmrf = require('rimraf')
let pkg = requir... | JavaScript | 0.998208 | @@ -547,32 +547,15 @@
let
-out = cp.execSync(%60node
+bin = %60
$%7B__
@@ -580,16 +580,64 @@
bin%7D
+%60%0A let proc = cp.spawnSync('sh', %5B'-c', %60$%7Bbin%7D
$%7Bcmd%7D%60
, %7B%0A
@@ -632,16 +632,17 @@
$%7Bcmd%7D%60
+%5D
, %7B%0A
@@ -669,16 +669,43 @@
pp%60%0A %7D)
+%0A %0A let out = proc.stdout... |
ea3ca815850cdf66da009b3b57bed985bb2ae2cd | simplify tests | test/index.js | test/index.js | var Hook = require('../');
var Path = require('path');
var Lab = require('lab');
var lab = exports.lab = Lab.script();
var expect = Lab.expect;
var describe = lab.experiment;
var it = lab.test;
var internals = {};
internals.getMatcher = function () {
var sep = new RegExp(Path.sep, 'g');
var path = Path.jo... | JavaScript | 0.999411 | @@ -610,34 +610,13 @@
.to.
-match(internals.getMatcher
+equal
(__d
@@ -614,33 +614,32 @@
equal(__dirname)
-)
;%0A done()
@@ -852,34 +852,13 @@
.to.
-match(internals.getMatcher
+equal
(__d
@@ -856,33 +856,32 @@
equal(__dirname)
-)
;%0A done()
@@ -1064,34 +1064,13 @@
.to.
-match(internals.getMatche... |
dbeee6df71d4f8609ab8cd8eaa13e58eed0df056 | Fix typo | test/index.js | test/index.js | import test from 'ava'
import rollup from 'rollup'
import fs from 'fs'
import { join } from 'path'
import riot from '../dist/rollup-plugin-riot.cjs.js'
const
fixturesDir = join(__dirname, 'fixtures'),
expectDir = join(__dirname, 'expect'),
expected = name => fs.readFileSync(join(expectDir, n... | JavaScript | 0.999999 | @@ -1053,17 +1053,18 @@
t('skip
-j
+cs
s', t =%3E
|
75ab9bdf4416370d2c3f453506e2430829060695 | Fix broken assert | test/index.js | test/index.js | /* global describe it beforeEach */
/* eslint no-new-wrappers: 0 */
'use strict';
var assert = require('assert');
var keys = require('keys');
var sinon = require('sinon');
var each = require('../');
// TODO: Tighten up these tests, remove duplicates
describe('each', function() {
var identity;
beforeEach(functio... | JavaScript | 0.000004 | @@ -538,24 +538,30 @@
%7B%0A assert
+.equal
(each.length
|
cedb20ed96f912ac1b5ee258abcd8d6f5f1c220f | test new rules | test/index.js | test/index.js | // This file cannot be written with ECMAScript 2015 because it has to load
// the Babel require hook to enable ECMAScript 2015 features!
require('babel-core/register');
require('babel-core').transform('code', {
plugins: ['transform-runtime'],
});
// The tests, however, can and should be written with ECMAScript 2015.... | JavaScript | 0.999734 | @@ -429,21 +429,24 @@
./rules/
-field
+argument
s_have_d
@@ -481,77 +481,77 @@
les/
-fields_are_camel_cased.js');%0Arequire('./rules/types_have_descripti
+defined_types_are_used');%0Arequire('./rules/deprecations_have_a_reas
on
-s
');%0A
@@ -573,32 +573,34 @@
s/de
-preca
+scrip
tions_
-have_a_reason
+are_capital... |
401413e1bb26317a3a69bccb9a3702d1f6bc175c | Improve a few tests | test/index.js | test/index.js | // Load modules
var Lab = require('lab');
var Hapi = require('hapi');
// Declare internals
var internals = {};
// Test shortcuts
var expect = Lab.expect;
var before = Lab.before;
var after = Lab.after;
var describe = Lab.experiment;
var it = Lab.test;
var S = Hapi.types.String;
describe('Lout', function () {
... | JavaScript | 0.000232 | @@ -279,16 +279,42 @@
String;%0A
+var O = Hapi.types.Object;
%0A%0Adescri
@@ -1176,16 +1176,164 @@
alse %7D %7D
+ %7D,%0A %7B method: 'GET', path: '/nested', config: %7B handler: handler, validate: %7B query: %7B param1: O(%7B nestedparam1: S().required() %7D) %7D %7D %7D
%7D%0A
@@ -1614,32 +1614,9... |
dec2640b6a5af29903874248ab43ebf85dacbaa9 | fix https://github.com/JunoLab/Juno.jl/issues/99 | lib/util/pane-item.js | lib/util/pane-item.js | 'use babel'
import { CompositeDisposable, TextEditor } from 'atom'
let subs = new CompositeDisposable
let panes = new Set
function ensurePaneVisible(pane) {
if (!(pane && pane.getFlexScale)) return
if (pane.getFlexScale() < 0.1) {
pane.parent.adjustFlexScale()
pane.setFlexScale(1)
}
ensurePaneVisible... | JavaScript | 0 | @@ -1194,16 +1194,23 @@
if (uri
+ && uri
.match(n
|
ed81dbf230cea3de2c03439b31a67850a930a094 | Make registry less noisy | lib/utils/registry.js | lib/utils/registry.js |
// utilities for working with the js-registry site.
exports.publish = publish
exports.tag = tag
exports.adduser = adduser
exports.get = get
var npm = require("../../npm")
, http = require("http")
, url = require("url")
, log = require("./log")
, uuid = require("./uuid")
, sha = require("./sha")
, sys = r... | JavaScript | 0.000622 | @@ -2268,32 +2268,8 @@
%7D%0A
- log(u, %22registryGET%22)%0A
va
@@ -2294,32 +2294,32 @@
ol === %22https:%22%0A
+
, client = h
@@ -3173,36 +3173,8 @@
at)%0A
- log(where, %22registryPUT%22)%0A
wh
@@ -3477,45 +3477,8 @@
%0A %7D
-%0A log(sys.inspect(u), %22registryPUT%22)
%0A%0A
@@ -3659,60 +3659,8 ... |
dab9c3e37fa917982760dd0c4e7cf9972e272867 | return sorted and sliced candidates array | api/controllers/LoadCrawlController.js | api/controllers/LoadCrawlController.js | /**
* CrawlsController
*
* @description :: Server-side logic for managing crawls
* @help :: See http://links.sailsjs.org/docs/controllers
*/
var FocusedCrawler = require('../../bindings/FocusedCrawler/app');
module.exports = {
create: function(req, res, next) {
var crawlId = req.param('crawl_id');
... | JavaScript | 0.000004 | @@ -310,18 +310,58 @@
awl_id')
+,%0A count = req.param('count') %7C%7C 50
;%0A
-
%0A con
@@ -395,16 +395,52 @@
rawlId);
+%0A console.log('count: ' + count);
%0A%0A va
@@ -631,17 +631,8 @@
-res.send(
cand
@@ -637,16 +637,308 @@
ndidates
+ = JSON.parse(candidates);%0A candidates.sort(funct... |
5eb667d1819c99efcc4a4f784f0e07b6ff1e7641 | Refactor scope test to use more describe and it blocks which makes the overall test clearer | test/scope.js | test/scope.js | require('./support/helper');
var expect = require("expect.js")
, fs = require("fs")
, generateTemplate = require("./support/generate_template")
, Backbone = require('backbone')
, variableReaction = require('../lib/reactions/variable');
describe ("With a template that has a polymorphic key but no scope chang... | JavaScript | 0 | @@ -243,18 +243,16 @@
);%0A%0A
-
describe
(%22W
@@ -251,38 +251,43 @@
ribe
- (%22With a template that has a
+('scope', function()%7B%0A describe (%22
poly
@@ -718,40 +718,24 @@
-it(%22should not record any
+describe('
model
-/
+
scop
@@ -747,17 +747,29 @@
eactions
-%22
+ stubbed out'
, functi
@@ -... |
165d49b19a9dd0c3a044a8d02e47643e01fe2679 | Add proxyquire to test setup | test/setup.js | test/setup.js | import fs from 'fs';
import chai from 'chai';
import sinon from 'sinon';
import schai from 'sinon-chai';
global.sinon = sinon;
global.expect = chai.expect;
chai.use(schai);
// Global spies
import output from './../src/lib/output';
global.logSpy = sinon.spy(output, 'log');
process.env.LAM_TEST = true; | JavaScript | 0 | @@ -1,25 +1,4 @@
-import fs from 'fs';%0A
impo
@@ -247,16 +247,86 @@
log');%0A%0A
+import proxyquire from 'proxyquire';%0Aglobal.proxyquire = proxyquire;%0A%0A
process.
|
cd071d2e00356007a640d27a6bc2003d775b5b8d | Remove IE11 from saucelabs. | test/sauce.js | test/sauce.js | var user = process.env.SAUCE_USER;
var key = process.env.SAUCE_KEY;
var path = require('path');
var brtapsauce = require('brtapsauce');
// list of browsers & versions that you want to test
var capabilities = [
{ browserName: 'chrome' , platform: 'Windows 8' , version: '40' },
{ browserName: 'chrome' ... | JavaScript | 0 | @@ -850,88 +850,8 @@
%7D,%0A
- %7B browserName: 'internet explorer' , platform: 'Windows 8' , version: '11' %7D,%0A
%7B
|
8fafcf546e376497ff80972b30f0120577b580cb | Remove stray console.log | test/scope.js | test/scope.js | var test = require('tap').test;
var browserify = require('browserify');
var path = require('path');
test('scope', function (t) {
t.plan(4);
var b = browserify({ node: true });
b.add(__dirname + '/files/scope');
b.transform(path.dirname(__dirname));
b.bundle(function (err, src) {
i... | JavaScript | 0.000002 | @@ -401,33 +401,8 @@
();%0A
- console.log(src)%0A
|
2094880b575fc03e7c4e944d91b4e67cde7f276c | Add test for unmock | test/smock.js | test/smock.js | /**
* Tests for smock
*
*/
var expect = require('chai').expect;
var smock;
// Export
describe('Export', function() {
before(function() {
smock = require('..');
});
it('should be an object', function() {
expect( smock ).to.be.an('object');
});
it('should have a mock() function'... | JavaScript | 0.000001 | @@ -2038,20 +2038,1207 @@
%7D);%0A %7D);%0A%0A%7D);
+%0A%0Adescribe('unmock()', function() %7B%0A%0A beforeEach(function() %7B%0A // Reset the require cache%0A require.cache = %7B%7D;%0A smock = require('..');%0A %7D);%0A%0A it('should take one argument', function() %7B%0A e... |
95fb92313834f45c616c0a162584b0bf9c495378 | Update session-test.js | test/tests/acceptance/session-test.js | test/tests/acceptance/session-test.js | import startApp from 'test/helpers/start-app';
import DummyAdapter from 'test/helpers/dummy-adapter';
import DummySuccessProvider from 'test/helpers/dummy-success-provider';
import DummyFailureProvider from 'test/helpers/dummy-failure-provider';
var torii, app, session, container, adapter;
function signIn(sessionData... | JavaScript | 0.000001 | @@ -5900,37 +5900,37 @@
);%0A var adapter
-Fetch
+Close
CalledWith = nul
@@ -6041,37 +6041,37 @@
)%7B%0A adapter
-Fetch
+Close
CalledWith = opt
@@ -6236,37 +6236,37 @@
equal(adapter
-Fetch
+Close
CalledWith, opts
|
4fcdb66f57d5e1e55d5cc6cb733d4c60789a5993 | Add tests for unmockAll() | test/smock.js | test/smock.js | /**
* Tests for smock
*
*/
var expect = require('chai').expect;
var smock;
// Export
describe('Export', function() {
before(function() {
smock = require('..');
});
it('should be an object', function() {
expect( smock ).to.be.an('object');
});
it('should have a mock() function'... | JavaScript | 0 | @@ -2052,16 +2052,36 @@
;%0A%0A%7D);%0A%0A
+%0A// unmock function%0A
describe
@@ -2858,16 +2858,1285 @@
, str);%0A
+ expect( fn ).to.throw();%0A %7D);%0A %7D);%0A%0A it('should correctly mock using callbacks', function() %7B%0A var filter = function(str) %7B return 0 === str.indexOf('b... |
64eace3b901435e8e5687c365c967d7c929bce73 | Add test for localized spoken language name | test/unit/extension_text_to_speech.js | test/unit/extension_text_to_speech.js | const test = require('tap').test;
const TextToSpeech = require('../../src/extensions/scratch3_text2speech/index.js');
const fakeStage = {
textToSpeechLanguage: null
};
const fakeRuntime = {
getTargetForStage: () => fakeStage,
on: () => {} // Stub out listener methods used in constructor.
};
const ext = n... | JavaScript | 0.000009 | @@ -1056,28 +1056,443 @@
(), 'ja');%0A t.end();%0A%7D);%0A
+%0Atest('use localized spoken language name in place of localized written language name', t =%3E %7B%0A ext.getEditorLanguage = () =%3E 'es';%0A const languageMenu = ext.getLanguageMenu();%0A const localizedNameForChineseInSpanish = languageMenu.f... |
5be769837f5b089c7c6f7ac087e06c85653b6e9a | Return value onChange | components/input/Input.js | components/input/Input.js | import React, { PureComponent, createElement } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { IconChevronUpSmallOutline, IconChevronDownSmallOutline } from '@teamleader/ui-icons';
import Counter from '../counter';
import theme from './theme.css';
export default class Input exte... | JavaScript | 0.000002 | @@ -1907,24 +1907,35 @@
ps.onChange(
+this.state.
value);%0A
@@ -2003,52 +2003,13 @@
nge(
-new Event('input', %7B bubbles: true,
value
- %7D)
);%0A
|
d91eda8556f8148c12505a662fab0d4bf39e4b97 | add options el tests (#2967) | test/unit/features/options/el.spec.js | test/unit/features/options/el.spec.js | JavaScript | 0 | @@ -0,0 +1,2033 @@
+import Vue from 'vue'%0A%0Adescribe('Options el', () =%3E %7B%0A it('basic usage', () =%3E %7B%0A const el = document.createElement('div')%0A el.innerHTML = '%3Cspan%3E%7B%7Bmessage%7D%7D%3C/span%3E'%0A const vm = new Vue(%7B%0A el,%0A data: %7B message: 'hello world' %7D%0A %... | |
ede7a15ddf3860446d8207cdb7eb1701b70cd926 | update test/test-runner — minor edits | test/testr.js | test/testr.js | // use this file to automate the running of tests.
var runr = require('../src/task/runr')
var execa = require('../src/cli/execa-commands')
var spawn = require('../src/cli/spawn-commands')
var concur = require('../src/async/concurrent').each
var glob = require('../src/glob/globby')
var map = require... | JavaScript | 0 | @@ -688,269 +688,8 @@
y')%0A
- // spawn(%5B%7Bcmd: 'node', args: %5B'lint.js', '-a'%5D%7D%5D, opts('array'))%0A // concur(%5B%0A // // lint files%0A // spawn(%5B%7Bcmd: 'node', args: %5B'lint.js', '-a'%5D%7D%5D, opts('array')),%0A // // execute tests%0A // execute('array')%0A // %5D, () =%3E %7B%0A // ... |
7ac014c44052cc19a5678aaab5ef47c674a3590f | check error message in track time-exception tests | test/track.js | test/track.js | var Mixpanel = require('../lib/mixpanel-node'),
Sinon = require('sinon'),
mock_now_time = new Date(2016, 1, 1).getTime();;
exports.track = {
setUp: function(next) {
this.mixpanel = Mixpanel.init('token');
this.clock = Sinon.useFakeTimers(mock_now_time);
Sinon.stub(this.mix... | JavaScript | 0 | @@ -131,17 +131,16 @@
tTime();
-;
%0A%0Aexport
@@ -3780,32 +3780,45 @@
test.throws(
+%0A
this.mixpanel.tr
@@ -3837,32 +3837,185 @@
s, event, props)
+,%0A /%60track%60 not allowed for event more than 5 days old/,%0A %22track didn't throw an error when time was more than 5 days ... |
3d86fe9403acdf0278cc2ec42924a11db2818ecb | update comment | assets/scripts/sw/sync/push.js | assets/scripts/sw/sync/push.js | /***
* Copyright (c) 2015, 2016 Alex Grant (@localnerve), LocalNerve LLC
* Copyrights licensed under the BSD License. See the accompanying LICENSE file for terms.
*
* Synchronize push subscription.
*/
/* global Promise, fetch */
'use strict';
var sync = require('./index');
var serviceable = require('./serviceable... | JavaScript | 0 | @@ -632,155 +632,8 @@
*%0A *
- 1. Initializes the subscription.id store.key if never established.%0A * 2. Sets the subscription.id to false if given subscriptionId is falsy.%0A * 3.
Det
@@ -688,19 +688,16 @@
than%0A *
-
the giv
@@ -720,11 +720,8 @@
.%0A *
- 4.
If
@@ -786,19 +786,16 @@
r the%0A *
-
s... |
3c5725e7af9452f383f39b4f53b5908805e095b6 | fix Buffer tests to work in node < 4.5 and node < 5.10 | test/utils.js | test/utils.js | 'use strict';
var test = require('tape');
var inspect = require('object-inspect');
var SaferBuffer = require('safer-buffer').Buffer;
var forEach = require('for-each');
var utils = require('../lib/utils');
test('merge()', function (t) {
t.deepEqual(utils.merge(null, true), [null, true], 'merges true into null');
... | JavaScript | 0.000001 | @@ -4942,32 +4942,66 @@
er = Buffer.from
+ ? Buffer.from('abc') : new Buffer
('abc');%0A t.e
|
786ce2b0f4b6bfe1a6b85e9a9a6f241e53fe43d9 | remove console.log at start | testrunner.js | testrunner.js | /**
*
*/
console.log(trace);
var sites = [{ "url":"http://newspoverty.geolive.ca", "test":"http://newspoverty.geolive.ca/unitest.js" }];
console.log('Hello World');
phantom.exit(0);
sites.forEach(function(site){
var url=site.url;
var test=site.test;
console.log('testing: '+url+' with: '+test);
var pag... | JavaScript | 0.000001 | @@ -5,35 +5,16 @@
* %0A */%0A
-console.log(trace);
%0A%0Avar si
|
d83569df0fd4e34ee2210859ea2d0de8a61d8668 | remove references to legacy relations | tests/main.js | tests/main.js | var expect = require('expect.js');
require('source-map-support').install();
describe('main module', function () {
it('should be able to load using require', function () {
var objection = require('../');
expect(objection.Model).to.equal(require('../lib/model/Model').default);
expect(objection.ModelBase)... | JavaScript | 0 | @@ -1329,239 +1329,8 @@
t);%0A
- expect(objection.OneToManyRelation).to.equal(require('../lib/relations/hasMany/HasManyRelation').default);%0A expect(objection.OneToOneRelation).to.equal(require('../lib/relations/belongsToOne/BelongsToOneRelation').default);%0A
|
2eeef5c7e6de27fd5061a9d169f1f644a7722d5d | Add security question tests (partially disabled) | test/client/forgotpasswordControllerSpec.js | test/client/forgotpasswordControllerSpec.js | describe('controllers', function () {
var scope, controller, $httpBackend
beforeEach(module('juiceShop'))
beforeEach(inject(function ($injector) {
$httpBackend = $injector.get('$httpBackend')
$httpBackend.whenGET(/\/i18n\/.*\.json/).respond(200, {})
}))
afterEach(function () {
$httpBackend.verif... | JavaScript | 0.000001 | @@ -2340,16 +2340,1088 @@
%0A %7D))
+%0A%0A xit('should find the security question of a user with a known email address', inject(function () %7B%0A $httpBackend.whenGET('rest/user/security-question?email=known@user.test').respond(200, %7B question: 'What is your favorite test tool?' %7D)%0A scope.email... |
3eebcb16f09d5a700365327250faec68c5e9fea0 | add test restart all on same ports add count (number of clients to test connect) | tests/test.js | tests/test.js | /**
*
*/
var assert=require('assert');
assert.equal(true, true);
var ws=require('ws');
function EchoTest(BridgeProxy, AutoConnectProxy, ports, callback){
//a ws server that just echos back all messages...
var echo=(new ws.Server({
port: ports.echo
})).on('connection', function(wsclient){
wsclient.on('... | JavaScript | 0 | @@ -137,21 +137,22 @@
tProxy,
-ports
+config
, callba
@@ -245,21 +245,22 @@
%09%09port:
-ports
+config
.echo%0A%09%7D
@@ -626,21 +626,22 @@
%0A%09%09port:
-ports
+config
.bridge,
@@ -832,29 +832,30 @@
localhost:'+
-ports
+config
.bridge, des
@@ -881,21 +881,22 @@
lhost:'+
-ports
+config
.echo%7D);
@@ -927,1... |
d2049e7982a02e3470321f0274a26bea846f6a84 | remove done, block tests | tests/test.js | tests/test.js | /*jshint esversion: 6 */
const assert = require('assert');
const axios = require('axios');
const cheerio = require('cheerio');
describe('result crawling', function() {
it('should return "Libur Nasional 2013" when the index array 0', function() {
const listYears = "http://www.liburnasional.com/... | JavaScript | 0 | @@ -888,12 +888,8 @@
ion(
-done
) %7B%0D
|
1dfc9ee6a1c2a3e8fb014a9e693c8a5d8b5cab0b | Handle driver not loaded cleaner | thermostat.js | thermostat.js | import cli from 'cli';
import {Gpio} from 'chip-gpio';
import sensor from 'ds18x20';
var options = cli.parse();
var interval = 2000;
var threshold = 25;
var heater = new Gpio(0, 'out');
function setHeater(on) {
console.log('Heater:', on ? 'on' : 'off');
heater.write(on ? 0 : 1);
}
function setHeaterOn() {
set... | JavaScript | 0.000001 | @@ -427,31 +427,79 @@
%7B%0A
-console.log(isL
+if (!isLoaded) %7B%0A console.log('Driver not l
oaded
+'
);%0A
+ return;%0A %7D%0A
se
|
a5627cb1f5abf902ce44133f30f01bdc88c43057 | Set _zooming=false inside _zoomEnd() for non-animated zooms. | leaflet-mapbox-gl.js | leaflet-mapbox-gl.js | L.MapboxGL = L.Layer.extend({
options: {
updateInterval: 32
},
initialize: function (options) {
L.setOptions(this, options);
if (options.accessToken) {
mapboxgl.accessToken = options.accessToken;
} else {
throw new Error('You should provide a Mapbox GL... | JavaScript | 0 | @@ -6196,32 +6196,62 @@
offset), scale);
+%0A%0A this._zooming = false;
%0A %7D,%0A%0A _tr
@@ -6732,45 +6732,8 @@
) %7B%0A
- this._zooming = false;%0A
|
63a56ad9e5fa1ec9ebb485dfcc3422bcdc72e15c | removed timer from component. not used | src/Timer/TimerEditWidget.js | src/Timer/TimerEditWidget.js | import React, { Component } from 'react';
import TimerDashboardWidget from './TimerDashboardWidget';
import TimerNew from './TimerNew';
class TimerEditWidget extends Component {
constructor() {
super(); // super() must be called in our constructor.
// Initial state.
this.state = {
widgetIsOpen: tr... | JavaScript | 0.999569 | @@ -206,54 +206,8 @@
r();
- // super() must be called in our constructor.
%0A%0A
@@ -344,67 +344,8 @@
se,%0A
- timer: %7B%7D // We manage the current timer here, only!%0A
|
32ed71e9483bb291fd10a18a7e3ab6699772925d | throw on multiple calls to `observe` on the same cursor | lib/client/cursor.js | lib/client/cursor.js | /* eslint-disable no-param-reassign */
// eslint-disable-next-line no-unused-vars
var LoggerFactory = require('slf').LoggerFactory;
var uuid = require('node-uuid').v4;
var Logger = require('slf').Logger;
var LOG = Logger.getLogger('lx:viewdb-persistence-store-remote');
var _ = require('lodash');
var Cursor = require('v... | JavaScript | 0 | @@ -1656,16 +1656,300 @@
= this;
+%0A if (self._isObserving) %7B%0A LOG.error('Already observing this cursor. Collection: %25s - Query: %25j', _.get(self, '_collection._name'), self._query)%0A throw new Error('Already observing this cursor. Collection: ' + _.get(self, '_collection._name'));%0A %7D%0A self._i... |
cb9761f9a9f2024f46912a09cadb429eabdf93ee | Support Blaze._getTemplate API. | lib/client/layout.js | lib/client/layout.js | var currentLayoutName = null;
var currentLayout = null;
var currentRegions = new ReactiveDict();
var currentData;
var _isReady = false;
BlazeLayout.setRoot = function(root) {
BlazeLayout._root = root;
};
BlazeLayout.render = function render(layout, regions) {
regions = regions || {};
Meteor.startup(function() {... | JavaScript | 0 | @@ -2819,24 +2819,563 @@
);%0A %7D;%0A%7D;%0A%0A
+BlazeLayout._getTemplate = function (layout, rootDomNode) %7B%0A if (Blaze._getTemplate) %7B%0A // if Meteor 1.2%0A return Blaze._getTemplate(layout, function () %7B%0A var view = Blaze.getView(rootDomNode);%0A // find the closest view with a template... |
a7d40ba8f47b822c5fa331b6c7012099055fedb3 | Clarify the description of --filter option | lib/commands/test.js | lib/commands/test.js | 'use strict';
var Command = require('../models/command');
var Watcher = require('../models/watcher');
var Builder = require('../models/builder');
var fs = require('fs');
var path = require('path');
module.exports = Command.extend({
name: 'test',
aliases: ['test', 't'],
description: 'Runs your apps test s... | JavaScript | 0.999999 | @@ -785,13 +785,14 @@
'A
-regex
+string
to
@@ -804,18 +804,21 @@
r tests
-ra
+to ru
n', alia
|
b7ed0728db81e48f15e7a6f25f58e847311909d4 | remove waterline logging for #147 | lib/common/logger.js | lib/common/logger.js | // Copyright 2014, Renasar Technologies Inc.
/* jshint node: true, newcap: false */
'use strict';
var di = require('di');
var os = require('os');
module.exports = loggerFactory;
di.annotate(loggerFactory, new di.Provide('Logger'));
di.annotate(loggerFactory,
new di.Inject(
'Constants',
'Assert',
... | JavaScript | 0 | @@ -2362,577 +2362,8 @@
og;%0A
- %7D).then(function(log) %7B%0A return waterline.logs.create(%7B%0A module: self.module,%0A level: level,%0A message: message,%0A context: log.context,%0A trace: log.trace,%0A tim... |
f502891cde3f7f8ec17d05c6b1a0205c83f50e72 | Revert OPT output changes for LDC | lib/compilers/ldc.js | lib/compilers/ldc.js | // Copyright (c) 2016, Matt Godbolt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of con... | JavaScript | 0 | @@ -1481,60 +1481,8 @@
%22),%0A
- compilerOptInfo = require(%22compiler-opt-info%22),%0A
@@ -3354,552 +3354,8 @@
%7D
-%0A%0A processOptOutput(hasOptOutput, optPath) %7B%0A let output = %5B%5D;%0A return new Promise(resolve =%3E %7B%0A fs.createReadStream(optPath, %7Bencoding: %... |
71d88d3ead78dc17fc5f4e7000c37fc798f23ebe | allow connectFridge to pass null or undefined if not pre-fetch is needed | lib/connectFridge.js | lib/connectFridge.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import hoistNonReactStatics from 'hoist-non-react-statics'
export default getProps => ComposedComponent => {
let id
class Fridge extends Component {
static contextTypes = {
fridge: PropTypes.object.isRequired,
store: PropT... | JavaScript | 0 | @@ -586,16 +586,72 @@
() =%3E %7B%0A
+ if (typeof getProps !== 'function') return false%0A%0A
co
|
c68bca5b179099ea3eb864f92597b7c4f5422ae4 | Clean up logging | lib/content/image.js | lib/content/image.js | var Image = require('../image')
var utils = require('../utils')
module.exports = exports = function(img, opts) {
var image = new ImageInstance(this, img, opts)
this.contents.push(image)
return this
}
var ImageInstance = function(doc, img, opts) {
this.doc = doc.doc || doc
this.image = img instan... | JavaScript | 0 | @@ -1109,38 +1109,8 @@
%7D%0A%0A
- console.log(width, height)%0A%0A
//
|
64e3ac7914046c5a5257487bdb16edb3250be24f | Add sendMessages to EventManager | lib/event-manager.js | lib/event-manager.js | 'use strict';
/**
* Provides an interface for communication between BEST nodes in a
* BEST application. One instance is created per BEST node.
*/
function EventManager(stateManager, publicEvents, name) {
this.stateManager = stateManager;
this.publicEvents = publicEvents || {};
this.name = name;
}
/**
... | JavaScript | 0 | @@ -671,16 +671,229 @@
%7D%0A%7D;
+%0AEventManager.prototype.sendMessage = EventManager.prototype.sendMessage;%0A%0AEventManager.prototype.sendMessages = function(messages) %7B%0A for (var key in messages) %7B%0A this.send(key, messages%5Bkey%5D);%0A %7D%0A%7D;
%0A%0Amodule
|
cc7e6b63c111925ebdeda7d37bfcc7ef98348e76 | fix tolerance | lib/expander-hook.js | lib/expander-hook.js | module.exports = ExpanderHook
function ExpanderHook (needsExpand) {
return expander.bind(null, needsExpand)
}
function expander (needsExpand, element) {
var handler = { handleEvent, needsExpand, element }
handleEvent.call(handler)
if (element.querySelector('img')) {
// just in case images are still loadi... | JavaScript | 0.000004 | @@ -623,37 +623,8 @@
hild
- && element.firstElementChild
.cli
@@ -633,16 +633,20 @@
tHeight
++ 5
%3E elemen
|
4ae1b28ff522b8ca6a88e4778c6bacad2df5e16d | Fix handling of grid node id | lib/grid-register.js | lib/grid-register.js | import request from 'request-promise';
import { fs } from 'appium-support';
import logger from './logger';
async function registerNode (configFile, addr, port) {
let data;
try {
data = await fs.readFile(configFile, 'utf-8');
} catch (err) {
logger.error(`Unable to load node configuration file to registe... | JavaScript | 0.000001 | @@ -1931,19 +1931,235 @@
= port;%0A
-%0A
+%7D%0A // if the node config does not have id automatically add it%0A if (!jsonObject.configuration.id) %7B%0A jsonObject.configuration.id = %60http://$%7BjsonObject.configuration.host%7D:$%7BjsonObject.configuration.port%7D%60;%0A %7D%0A%0A
// re-
@@ -2215,18 +22... |
b38b46697057105f62eb523ba353ed26e2a4c594 | Fix devwatch not ignoring certain paths | lib/init/devwatch.js | lib/init/devwatch.js | 'use strict';
var allowedPattern,
extensions,
prevcount,
watchlog,
chokidar,
watcher,
allowed,
ignored,
count,
cwd,
fs;
if (process.argv.indexOf('--disable-devwatch') > -1) {
return;
}
if (alchemy.settings.kill_on_file_change) {
chokidar = alchemy.use('chokidar');
if (!ch... | JavaScript | 0 | @@ -2240,36 +2240,35 @@
7) %7B%0A%09%09%09return
-fals
+tru
e;%0A%09%09%7D%0A%0A%09%09if (co
@@ -2393,36 +2393,35 @@
%09%09%09%7D%0A%0A%09%09%09return
-fals
+tru
e;%0A%09%09%7D%0A%0A%09%09if (is
|
fe210a3e71b55e4bae418ad3505c6dfa612dfa7e | use path.sep instead of `/` | lib/lock/resolver.js | lib/lock/resolver.js | const request = require('request')
const path = require('path')
const fs = require('fs')
const readdirSync = require('fs').readdirSync
const npmrc = require('../utils/npmrc')
const nm = require('../utils/nm')
const resolver = (dep, base, resolve, reject) => {
base = base || nm
const pkgJSON = require(path.join(bas... | JavaScript | 0.00324 | @@ -899,19 +899,24 @@
e.split(
-'/'
+path.sep
).slice(
|
ddc22541a52af1f89e27f10ecfe4494974d1b89b | remove redundant line | lib/machines/show.js | lib/machines/show.js | 'use strict';
'use strict';
var method = require('./../method');
var assign = require('lodash.assign');
/**
* @memberof machines
* @method show
* @description Show machine information for the machine with the given id.
* @param {object} params - Machine show parameters
* @param {string} params.machineId - Id of... | JavaScript | 0.999999 | @@ -1,23 +1,8 @@
-'use strict';%0A%0A
'use str
|
23daccd4383981effd82bdbb5791236c581f8fa5 | fix wechat access token wrong request method | lib/routes/wechat.js | lib/routes/wechat.js | var express = require('express');
var router = express.Router();
var config = require('config');
var request = require('request');
var handlebars = require('handlebars');
var service = require('../service/service');
var urlTpl = handlebars.compile(config.app.integration.wechatAccessTokenURL);
router.get('/', functio... | JavaScript | 0.000001 | @@ -499,22 +499,34 @@
%7D)
-).on(%22
+, function(error,
response
%22, f
@@ -525,28 +525,66 @@
onse
-%22
,
-function(response
+body) %7B%0A if (!error && response.statusCode == 200
) %7B%0A
@@ -591,16 +591,20 @@
+
var cred
@@ -623,25 +623,16 @@
N.parse(
-response.
body);%0A
@@ -642,12 ... |
ade5e01c240553e228610ebee166dd5977c23c35 | remove unused code | lib/server/router.js | lib/server/router.js | 'use strict';
const fs = require('fs');
const path = require('path');
const EventEmitter = require('events');
const root = require('window-or-global');
const detectPort = require('detect-port');
const macacaReporterRender = require('macaca-reporter/lib/render');
root.mockData = require('macaca-reporter/test/mock');
... | JavaScript | 0.000017 | @@ -3197,35 +3197,8 @@
%3E %7B%0A
- socketed.disconnected();%0A
pr
|
89bde4bd4ce27a44474d7a7f59a0add52160073d | Fix TabListView with empty panes | lib/tab_list_view.js | lib/tab_list_view.js | 'use babel'
import { Emitter } from 'atom'
import { $$, SelectListView } from 'atom-space-pen-views'
import _ from 'underscore-plus'
export default class TabListView extends SelectListView {
constructor(tabControllers = []) {
super()
this.emitter = new Emitter
this.tabControllers = tabControllers
th... | JavaScript | 0 | @@ -1228,28 +1228,26 @@
const
-primaryTitle
+activeItem
= tabCo
@@ -1279,27 +1279,104 @@
veItem()
-.getTitle()
+%0A const primaryTitle = %60$%7Bi + 1%7D $%7BactiveItem ? activeItem.getTitle() : 'No name'%7D%60
%0A c
|
9b6c1e26835a9cacac3cd41fe722235c03d245a9 | update wdio registration | lib/wdio-commands.js | lib/wdio-commands.js | var _ = require('lodash');
function isWdioContext() {
return _.isObject(browser) && _.isFunction(browser.addCommand);
}
function registerLogCommands(log) {
if (isWdioContext()) {
browser.addCommand('testableLogTrace', function async() {
return log.trace.apply(log, arguments);
});
browser.addCommand('testab... | JavaScript | 0 | @@ -1359,37 +1359,77 @@
c(result
-, name, val, units) %7B
+) %7B%0A%09%09%09const args = Array.prototype.slice.call(arguments, 1);
%0A%09%09%09retu
@@ -1444,32 +1444,34 @@
t.timing
-(name, val, unit
+.apply(result, arg
s);%0A%09%09%7D)
@@ -1537,29 +1537,69 @@
sult
-, name, val, units) %7B
+) %7B%0A%09%09%09const a... |
48bb32716a07a2c2ab3188a1aa64305b0fe5b628 | add character selection | renderer/game_queue/game-queue.js | renderer/game_queue/game-queue.js | 'use strict'
const {ipcRenderer} = require('electron')
const $ = require('jquery')
ipcRenderer.on('load', (event, data) => {
console.log(data)
let chars = data.options.characters
for (let i = 0; i < chars.length; i++) {
if (i === 0) {
$('#character_0').append(`<li class="list-group-item">Character ID: ... | JavaScript | 0.000001 | @@ -699,32 +699,109 @@
st-group-item%22%3E%3C
+button class=%22btn btn-primary%22 id=%22view_$%7Bi%7D%22%3ESelect Character $%7Bi%7D%3C/button%3E%3C
/li%3E%60)%0A %7D%0A
@@ -1284,16 +1284,93 @@
-item%22%3E%3C
+button class=%22btn btn-primary%22 id=%22view_$%7Bi%7D%22%3ESelect Character $%7Bi%7D%3C/button%3E%3C... |
9a619cc204653f56436dff327bcfc6b5567e7879 | treat input as number instead of string | src/main/webapp/js/app.js | src/main/webapp/js/app.js | $(function() {
$('#inputNumber').change(function(event) {
var inputValue = event.target.value,
outputValue = square(inputValue);
$('#outputAnswer').text(outputValue);
});
}); | JavaScript | 0.155873 | @@ -74,16 +74,23 @@
Value =
+Number(
event.ta
@@ -99,16 +99,17 @@
et.value
+)
,%0A ou
|
1ce2a128186d928995d0330bb34006791ec8237a | fix mirrored scrolling in markdown editor | ghost/admin/components/-markdown.js | ghost/admin/components/-markdown.js | var Markdown = Ember.Component.extend({
adjustScrollPosition: function () {
var scrollWrapper = this.$('.entry-preview-content').get(0),
// calculate absolute scroll position from percentage
scrollPixel = scrollWrapper.scrollHeight * this.get('scrollPosition');
scrollWrapper.scr... | JavaScript | 0 | @@ -108,16 +108,26 @@
this.$(
+).closest(
'.entry-
|
ce959463b0e59236f11e26857d7e33eb5f9d0e6e | Use child_process.execFile to prevent unescaped stuff (#2206) | app/plugins/install.js | app/plugins/install.js | const cp = require('child_process');
const queue = require('queue');
const ms = require('ms');
const {yarn, plugs} = require('../config/paths');
module.exports = {
install: fn => {
const spawnQueue = queue({concurrency: 1});
function yarnFn(args, cb) {
const env = {
NODE_ENV: 'production',
... | JavaScript | 0 | @@ -520,12 +520,50 @@
exec
-(cmd
+File(process.execPath, %5Byarn%5D.concat(args)
, %7B%0A
@@ -608,31 +608,8 @@
nv,%0A
- shell: true,%0A
@@ -647,46 +647,30 @@
-stdio: %5B'ignore', 'ignore', 'inherit'%5D
+maxBuffer: 1024 * 1024
%0A
|
214498f2e38051c8ca73dc47f81b07f890ca69b2 | add debug in src/model/track_item.js | src/model/history_item.js | src/model/history_item.js | module.exports = class HistoryItem {
constructor({ track, playCount = 1, updatedAt = null }) {
this.track = track;
this.playCount = playCount;
this.updatedAt = updatedAt || Date.now();
}
serialize() {
return {
playCount: this.playCount,
updatedAt: this.updatedAt,
track: this.tra... | JavaScript | 0.000001 | @@ -1,8 +1,65 @@
+const debug = require('debug')('jukebox:history_item');%0A%0A
module.e
@@ -143,24 +143,108 @@
= null %7D) %7B%0A
+ debug('create history item, %25o', %7B track_id: track.id, playCount, updatedAt %7D);%0A
this.tra
|
cf8fcf58a15f497c8ba9c148a30755352929c287 | update js | js/jquery.media.box.js | js/jquery.media.box.js | ;(function($) {
'use strict';
var pluginName = 'mediaBox';
/**
* class MediaBox
* @param {string} elementName
* @param {object} params
* @constructor
*/
var MediaBox = function MediaBox(elementName, params) {
this._TYPE = {VIDEO: 'video', IMAGE: 'image'};
this._params = params;
this... | JavaScript | 0 | @@ -2874,24 +2874,44 @@
ction($e) %7B%0A
+ alert('click');%0A
if ($(th
|
a0701eb0c7830579f217f25de8d3c866830db907 | Fix exports in modules/app | src/modules/app/export.js | src/modules/app/export.js | export * from './ElementModule';
export * from './CameraModule';
export * from './HelpersModule';
export * from './RenderingModule';
export * from './SceneModule';
export * from './ResizeModule';
export * from './PostProcessorModule';
export * from './VirtualMouseModule';
| JavaScript | 0.000009 | @@ -62,41 +62,8 @@
e';%0A
-export * from './HelpersModule';%0A
expo
|
974942830f5cc23adcb370cc10ef2c472aab7ce8 | Handle "EMFILE: too many open files, scandir" | src/modules/tradePairs.js | src/modules/tradePairs.js | 'use strict';
const fs = require('graceful-fs');
const settings = require('./settings');
class TradePairs {
constructor() {
this.regExp = this.buildRegExp();
}
getTradePairs() {
this.initTradePairs();
return new Promise((resolve, reject) => {
try {
let files = fs.readdirSync(settings... | JavaScript | 0 | @@ -160,16 +160,42 @@
gExp();%0A
+ this.tradePairs = %5B%5D;%0A
%7D%0A%0A g
@@ -308,59 +308,464 @@
-let
+fs.readdir(settings.pathToGunbot, (error,
files
+)
=
- fs.readdirSync(settings.pathToGunbot);%0A
+%3E %7B%0A // If there is an error ...%0A if (error) %7B%0A // ... and... |
3e932ff89d4f869c7548f8c598cf15b7d91ea56a | Add support for setting layer.popup to a Popup instance | js/src/layers/Layer.js | js/src/layers/Layer.js | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var widgets = require('@jupyter-widgets/base');
var _ = require('underscore');
var PMessaging = require('@phosphor/messaging');
var PWidgets = require('@phosphor/widgets');
var L = require('../leaflet.js');
var utils... | JavaScript | 0 | @@ -3716,16 +3716,43 @@
ew(value
+, %7Bmap_view: that.map_view%7D
).then(f
@@ -3763,24 +3763,240 @@
ion(view) %7B%0A
+ // If it's a Popup widget%0A if (value.name == 'LeafletPopupModel') %7B%0A that.obj.bindPopup(view.obj, that.popup_options());%0A ... |
f8350af9c094ad48ff50028c004710f8ca8b0984 | Support for importing sass files from @import.css | js/views/style/menu.js | js/views/style/menu.js | define([
'jquery',
'underscore',
'backbone',
'text!templates/style/menu.html',
'jscssp',
'config',
'libs/marked/marked'
],
function($, _, Backbone, dashboardPageTemplate, jscssp, config, marked) {
var DashboardPage = Backbone.View.extend({
el: '.js-kalei-menu',
render: function () {
var that = this;
... | JavaScript | 0 | @@ -2494,24 +2494,78 @@
esult = %5B%5D;%0A
+%09%09%09%09%09%09// If the style sheet is a .sass or .scss file:%0A
%09%09%09%09%09%09if((re
@@ -2706,25 +2706,68 @@
%0A%09%09%09%09%09%09%09
-result%5B0%5D
+// Returns the path before 'scss/'.%0A%09%09%09%09%09%09%09sheetPath
= resul
@@ -2808,15 +2808,17 @@
Of('
-/
s... |
136736709c76c260948c4ad8d5688215fbc1f3a1 | allow plugin to be bound to player after player has already been ready | jwoverlay/jwoverlay.js | jwoverlay/jwoverlay.js | (function() {
var Overlay = function(player) {
var overlay = document.createElement('div');
// any element with class 'jwoverlay-close' will close the overlay
overlay.addEventListener('click', function(evt) {
var clicked = evt.target || evt.toElement;
if(clicke... | JavaScript | 0 | @@ -96,22 +96,129 @@
t('div')
-;
+,%0A addOverlay = function() %7B%0A player.getContainer().appendChild(overlay);%0A %7D
%0A%0A
@@ -1888,24 +1888,448 @@
one'; %0A
+ if(player.getState() && player.getContainer() && player.getContainer().className.ind... |
16aaaea4bbc61ce4192238d2148407a573005933 | Use core-js instead of es6-shim | karma/shared.config.js | karma/shared.config.js | var _ = require('lodash');
var fs = require('fs');
exports.baseConfig = function(karma) {
return {
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'chai', 'sinon'],
// enable / disable watching file and executing tests whenever any file cha... | JavaScript | 0 | @@ -1408,25 +1408,31 @@
les/
-es6-shim/es6-shim
+core-js/client/shim.min
.js'
|
e430f6952357775b82b05100b9ab16cee3d87bfe | use default export | src/no-dropping-the-ra.js | src/no-dropping-the-ra.js | // LICENSE : MIT
"use strict";
import { RuleHelper } from "textlint-rule-helper";
import { tokenize } from "kuromojin";
function isTargetVerb(token) {
return (
token.pos == "動詞" &&
token.pos_detail_1 == "自立" &&
token.conjugated_type == "一段" &&
token.conjugated_form == "未然形"
);
}... | JavaScript | 0.000005 | @@ -715,24 +715,22 @@
%0A%7D%0A%0A
-module.exports =
+export default
fun
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.