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 |
|---|---|---|---|---|---|---|---|
c85f46320e6062097c1e02d39944d697e5dd3cf3 | Add 'as' keyword (#7543) (#7582) | src/renderers/dom/shared/HTMLDOMPropertyConfig.js | src/renderers/dom/shared/HTMLDOMPropertyConfig.js | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... | JavaScript | 0 | @@ -1133,24 +1133,97 @@
alt: 0,%0A
+ // specifies target context for links with %60preload%60 type%0A as: 0,%0A
async: H
|
daffa0d61acaff92d3bd7accd52818e85478574b | simplify git identity handling | packages/deploy/deploy.js | packages/deploy/deploy.js | #!/usr/bin/env node
const path = require("path");
const meow = require("meow");
const execa = require("execa");
const sander = require("@marionebl/sander");
const git = (args, opts) => {
return execa("git", args, opts);
};
async function main(cli) {
const {stdout: hash} = await git(["rev-parse", "--short", "HEAD"... | JavaScript | 0.000067 | @@ -1359,484 +1359,140 @@
v =
-%7B%7D;%0A%0A if (identity) %7B%0A const cp = await execa(%22ssh-agent%22, %5B%22-s%22%5D);%0A env.SSH_AUTH_SOCK = cp.stdout.split('SSH_AUTH_SOCK=')%5B1%5D.split(';')%5B0%5D;%0A env.SSH_AGENT_PID = cp.stdout.split('SSH_AGENT_PID=')%5B1%5D.split(';')%5B0%5D;%0A await execa.s... |
cd9841b8d9aeb6f79f4d62822f7fcd97333b8476 | Fix reference to previous function name | verify-package-settings.js | verify-package-settings.js | "use strict";
const expect = require('chai').expect
const packageSettings = require('./package.json')
const Up = require('./' + packageSettings.main)
describe('The `main` field in package.json', () => {
it('points to the entry point of the library', () => {
expect(Up.toHtml('It *actually* worked?')).to.equal(... | JavaScript | 0.000227 | @@ -275,14 +275,22 @@
(Up.
-toHtml
+parseAndRender
('It
|
e0a3636446b6c4f3cedd2632341f72d261447daa | Change in radio button required feature | src/main/webapp/scripts/answerQuizCtrl.js | src/main/webapp/scripts/answerQuizCtrl.js | angular.module('quizControllers')
.controller('AnswerQuizCtrl', ['$scope', '$http',
function($scope, $http) {
var currentQuestion = 0;
$scope.questions = [];
$http({method: "GET",url: "quiz/"}).
success(function(data) {
$scope.questions = data;
}).
error(function(data,status) {
console.log("Er... | JavaScript | 0 | @@ -408,16 +408,19 @@
+;%0A%09%09%7D;%0A
+%09%09%0A
%09%09$scope
|
17305b6dd392c2513bfe236987330babaf06500d | fix space behaviour for adding a mention | src/mentionPlugin/modifiers/addMention.js | src/mentionPlugin/modifiers/addMention.js | import { Modifier, EditorState, Entity } from 'draft-js-cutting-edge';
import getSearchText from '../utils/getSearchText';
const addMention = (editorState, mention, selection) => {
// TODO allow the user to override if the mentions are SEGMENTED, IMMUTABLE or MUTABLE
const entityKey = Entity.create('mention', 'SEG... | JavaScript | 0.000003 | @@ -687,20 +687,18 @@
%7D);%0A%0A
-cons
+le
t mentio
@@ -885,24 +885,307 @@
);%0A
+%0A
-const spaceAdd
+// If the mention is insert at the end a space is append right away for a smooth%0A // writing experience.%0A const blockKey = mentionTextSelection.getAnchorKey();%0A const blockSize = editorState.getCu... |
43c2cadc6afd3153059fa4adbdab5ae820fe407d | introduce parameter | web/app/components/products/products.controller.server.spec.js | web/app/components/products/products.controller.server.spec.js | /*eslint dot-notation: "off"*/
import {replace, when} from '../../../../test-helper';
describe.only('the products controller', () => {
let productsService;
let ProductsController;
let productsController;
let makeProductsController = () => {
ProductsController = require('./products.controller')['ProductsCo... | JavaScript | 0.000066 | @@ -24,16 +24,45 @@
%22off%22*/%0A
+/*eslint no-shadow: %22off%22*/%0A%0A
import %7B
@@ -266,12 +266,31 @@
ller
- = (
+With = (productsService
) =%3E
@@ -710,17 +710,36 @@
ntroller
-(
+With(productsService
);%0A p
|
f763100de73b331d3e63982ea8f75b26ca609203 | fix indent | tasks/csscomb.js | tasks/csscomb.js | /*
* grunt-csscomb
* https://github.com/csscomb/grunt-csscomb
*
* Copyright (c) 2013 Koji Ishimoto, contributors
* Licensed under the MIT license.
*/
'use strict';
var path = require('path');
module.exports = function (grunt) {
grunt.registerMultiTask('csscomb', 'Sorting CSS properties in specific order.',... | JavaScript | 0.00006 | @@ -2632,28 +2632,24 @@
-
// Get CSS f
@@ -2667,20 +2667,16 @@
e file:%0A
-
@@ -2728,28 +2728,24 @@
-
// Comb it:%0A
@@ -2744,20 +2744,16 @@
omb it:%0A
-
@@ -2819,28 +2819,24 @@
-
var syntax =
@@ -2858,20 +2858,16 @@
.pop();%0A
- ... |
6e4b1216767bebbc96587f07ff8001699b83f57b | allow a custom async handler to be specified in accounting widgets js | corehq/apps/accounting/static/accounting/js/widgets.js | corehq/apps/accounting/static/accounting/js/widgets.js | hqDefine('accounting/js/widgets', [
'jquery',
'knockout',
'underscore',
'select2/dist/js/select2.full.min',
], function (
$,
ko,
_
) {
var asyncSelect2Handler = function (field, multiple) {
'use strict';
var self = {};
self.fieldName = field;
self.multipl... | JavaScript | 0 | @@ -211,16 +211,29 @@
multiple
+, handlerSlug
) %7B%0A
@@ -342,16 +342,77 @@
ultiple;
+%0A self.handlerSlug = handlerSlug %7C%7C 'select2_billing';
%0A%0A
@@ -1653,33 +1653,32 @@
andler:
-'
sel
-ect2_billing'
+f.handlerSlug
,%0A
|
b874d1de323a41134d871f3e5af83392219ebe2c | Fix test | test/chat_format_test.js | test/chat_format_test.js | var chai = require('chai'),
mocha = require('mocha'),
should = chai.should();
var io = require('socket.io-client');
var ioOptions = {
transports: ['websocket']
, forceNew: true
, reconnection: false};
var server, client1, client2;
describe("Chat Events", function(){
beforeEach(function(done){... | JavaScript | 0.000004 | @@ -1306,10 +1306,9 @@
%7D,
-18
+3
00);
|
3865fef3827556438f144b916d1f9d5432638265 | Insert test to try the collection engine | test/collectionEngine.js | test/collectionEngine.js | require("./loadDsl.js");
const fs = require("fs");
var mongoose = require("mongoose");
var chai = require("chai");
chai.use(require("chai-as-promised"));
var DSLEngine = require("../src/dslEngine");
var TokenAlreadyInsertException = require(
"../src/utils/tokenAlreadyInsertException"
);
var NoTokenConnectedExcept... | JavaScript | 0 | @@ -928,226 +928,8 @@
)
-%0A%0A%09mongoose.connect(%60mongodb://$%7Bprocess.env.npm_package_config_CONNECTION%7D/prova%60);%0A%0A%09var Model = mongoose.model('test', %7B user: String, pass: String %7D);%0A%09Model.find((err, data) =%3E %7B%0A%09 console.log(err %7C%7C data);%0A%09%7D)
;%0A%0A%09
@@ -1102,16 +1... |
4b7986102927caeddf9c7f7b5394e6ca20f6dda0 | add new params for meter creation | src/server/services/csvPipeline/uploadReadings.js | src/server/services/csvPipeline/uploadReadings.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const express = require('express');
const { CSVPipelineError } = require('./CustomErrors');
const success = requir... | JavaScript | 0.000001 | @@ -1751,16 +1751,38 @@
e.MAMAC,
+ undefined, undefined,
meterNa
|
0d443cf3bda6d795ed971148e20ea2fc8f90c7cc | Put grunt.log.ok back in for if options.report is not set | tasks/helpers.js | tasks/helpers.js | exports.init = function (grunt, silent) {
'use strict';
var libPath = 'istanbul/lib/',
Command = require(libPath + 'command'),
fs = require('fs'),
path = require('path');
require(libPath + 'register-plugins');
function convertArg(options, key) {
return '--' + key + '='... | JavaScript | 0.000001 | @@ -2715,16 +2715,190 @@
done);%0A
+ %7D else if (!options.report && !silent) %7B%0A grunt.log.ok('Coverage is at or over the minimum thresholds');%0A done(passed);%0A
|
e4149c565250b0aba69ab6ff0625fb2d8ae396a6 | Configure VuewJS to use Material Design. | web/src/main.js | web/src/main.js | // The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
t... | JavaScript | 0 | @@ -133,16 +133,158 @@
alias.%0A
+%0Aimport VueMaterial from 'vue-material';%0Aimport 'vue-material/dist/vue-material.min.css';%0Aimport 'vue-material/dist/theme/default-dark.css';%0A%0A
import V
@@ -390,16 +390,39 @@
false;%0A%0A
+Vue.use(VueMaterial);%0A%0A
/* eslin
|
0e4d08708e5d0e17b6419a97e21534a82000d461 | Removed redundant whitespace | custom/gnap-angular/js/develop/gnap/sidebar.service.js | custom/gnap-angular/js/develop/gnap/sidebar.service.js | /**
* @desc service for interacting with the sidebar
* @file sidebar.service.js
*/
(function () {
angular
.module('gnap')
.factory('sidebarService', ['localStorageService', sidebarService]);
function sidebarService(localStorageService) {
var settings = {
items: [],
... | JavaScript | 0.673751 | @@ -1010,25 +1010,24 @@
vel(item) %7B%0A
-%0A
|
de49cc89e58a48117f94e0c9ec8ad0243620f31c | Add items to cart UI on ITEM_ADDED | src/js/components/modal.js | src/js/components/modal.js | import { addClass, addId, button, div, h1, i, p, section, text, ul } from '../builders';
import { $ } from '../helpers';
import modalItem from './modalItem';
export default function modal(store, items = []) {
const close = addId(addClass(i(), 'fa', 'fa-times', 'close'), 'close');
const title = addClass(h1(text('Ca... | JavaScript | 0 | @@ -191,20 +191,8 @@
tore
-, items = %5B%5D
) %7B%0A
@@ -325,194 +325,87 @@
%0A%0A
-le
+cons
t cart
-;%0A if (items.length === 0) %7B%0A cart = p(text('Your cart is empty.'));%0A %7D else %7B%0A const cartItems = items.map(modalItem);%0A cart = addClass(ul(...
+Container = addId(div(p(text('Your cart i... |
8690f2f9d13a31c6613b875176300c3038da5f81 | Add profiles configurations | web/options.development.js | web/options.development.js | var _ = require('lodash');
var path = require('path');
var base = require('./options.base.js');
module.exports = _.defaults({
'mongo-store': {
name: 'cd-zen-platform-development',
host: '127.0.0.1',
port: 27017
},
'agreement-version' : 2,
'postgresql-store': {
name: 'cd-zen-platform-develo... | JavaScript | 0.000001 | @@ -1247,32 +1247,114 @@
-dojos,cmd:*'%7D,%0A
+ %7Btype: 'web', host: '127.0.0.1', port: 10301, pin: 'role:cd-profiles,cmd:*'%7D,%0A
%7Btype: 'web'
|
a576cc4d2f8bf3265feaecaf7f0e0163d1291afb | extract out argument validation | tasks/sshexec.js | tasks/sshexec.js | /*
* grunt-ssh
* https://github.com/ajones/grunt-ssh
*
* Copyright (c) 2012 Andrew Jones
* Licensed under the MIT license.
*/
// TODO: use passphrase
// TODO: unit tests
module.exports = function (grunt) {
'use strict';
grunt.util = grunt.util || grunt.utils;
grunt.registerMultiTask('sshexec', 'Executes ... | JavaScript | 0.999575 | @@ -365,16 +365,68 @@
on () %7B%0A
+ var utillib = require('./lib/util').init(grunt);
%0A var
@@ -550,53 +550,8 @@
ons%0A
- // TODO: can I do this with less typing?%0A
@@ -605,29 +605,24 @@
command%0A
-if (!
data.command
@@ -625,348 +625,55 @@
mand
-) %7B%0A grunt.warn('Missing command pro... |
b203acf8fa81e5225d08cb5d35b13bb47d6e1d12 | Remove unused vars | webapp/js/app/templates.js | webapp/js/app/templates.js | define(['text!templates/credits.html',
'text!templates/overlay.html',
'text!templates/popup.html',
'text!templates/sections.html',
'text!templates/sections_polling_tables.html',
'text!templates/cartocss.css',
'text!templates/feature_click.sql'],
function(credits, overlay, popup, sections, p... | JavaScript | 0.000001 | @@ -104,95 +104,8 @@
l',%0A
- 'text!templates/sections.html',%0A 'text!templates/sections_polling_tables.html',%0A
@@ -372,70 +372,8 @@
up,%0A
- sections: sections,%0A polling: polling,%0A
|
617094c507e4b3ed93c56ff42a58929996a2833c | implement mocha to run on bundle event for gulp dev | webapp/tasks/browserify.js | webapp/tasks/browserify.js | import path from 'path'
import _ from 'lodash'
import gulp from 'gulp'
import gutil from 'gulp-util'
import source from 'vinyl-source-stream'
import browserify from 'browserify'
import watchify from 'watchify'
import rename from 'gulp-rename'
import streamify from 'gulp-streamify'
import uglify from 'gulp-uglify'
co... | JavaScript | 0 | @@ -2196,24 +2196,81 @@
e(config)%0A%7D%0A
+function runTests (config = %7B%7D) %7B%0A gulp.start('mocha')%0A%7D
%0Afunction br
@@ -2475,16 +2475,76 @@
undler)%0A
+ config.bundler.on('bundle', runTests.bind(null, config))
%0A con
|
35a22df316ee0f149d3d4aa3be0535ab3e841644 | Use smaller reddit endpoint | test/fetch-https.test.js | test/fetch-https.test.js | 'use strict';
var assert = require('assertive');
var Bluebird = require('bluebird');
// This is important because PhantomJS has a non-writeable
// error.stack property and the resulting warnings make the tests fail...
Bluebird.config({ warnings: false });
var fetch = require('../').fetch;
var options = require('./mo... | JavaScript | 0.999982 | @@ -626,20 +626,21 @@
com/
-r/javascript
+user/ageitgey
/abo
@@ -660,80 +660,13 @@
.
-then(function (res) %7B%0A assert.equal(200, res.statusCode);%0A %7D
+json(
);%0A
|
7019a2001e2863f67d0dc7f0b0d8ca0bfe0c24bb | Remove opacity parameter from _updateOpacity, unused. | src/layer/marker/Marker.js | src/layer/marker/Marker.js | /*
* L.Marker is used to display clickable/draggable icons on the map.
*/
L.Marker = L.Class.extend({
includes: L.Mixin.Events,
options: {
icon: new L.Icon.Default(),
title: '',
clickable: true,
draggable: false,
zIndexOffset: 0,
opacity: 1
},
initialize: function (latlng, options... | JavaScript | 0 | @@ -4354,31 +4354,24 @@
: function (
-opacity
) %7B%0D%0A%09%09L.Dom
|
d3b11d3405d8f0500412cfb15c7696e02a344964 | add test: | test/App.spec.js | test/App.spec.js | /* eslint-env mocha */
const { expect } = require('chai')
const React = require('react')
const Search = require('../js/Search')
const { shallow } = require('enzyme')
describe('<Search />', () => {
it('should render the brand', () => {
const wrapper = shallow(<Search />)
expect(wrapper.contains(<h1 className... | JavaScript | 0.000001 | @@ -132,37 +132,125 @@
nst
-%7B shallow %7D = require('enzyme
+ShowCard = require('../js/ShowCard')%0A%0Aconst %7B shallow %7D = require('enzyme')%0Aconst %7B shows %7D = require('../public/data
')%0A%0A
@@ -439,12 +439,189 @@
rue%0A %7D)
+%0A%0A it('should render as many shows as there are data for', () =%3E %7B... |
e8184a9bc51e76f62d122a004a075b4b7f8c4e3b | fix browser api location in browser test | test/_browser.js | test/_browser.js | if (process.browser) {
require("../lib/6to5/browser");
require("./generation");
require("./transformation");
require("./traverse");
require("./util");
}
| JavaScript | 0.000001 | @@ -39,16 +39,20 @@
ib/6to5/
+api/
browser%22
|
7f390b108f03162f3bd343bd4805bf9173f5abdf | Add log to script | webdriverio/hello_world.js | webdriverio/hello_world.js | var webdriverio = require('webdriverio');
var options = { desiredCapabilities: { browserName: 'chrome' } };
var client = webdriverio.remote(options);
client.init()
.url('https://duckduckgo.com/')
.setValue('#search_form_input_homepage', 'WebdriverIO')
.click('#search_button_homepage')
.getTitle().then(... | JavaScript | 0 | @@ -1,12 +1,36 @@
+var fs = require('fs');%0A
var webdrive
@@ -55,24 +55,25 @@
driverio');%0A
+%0A
var options
@@ -75,16 +75,20 @@
ions = %7B
+%0A
desired
@@ -102,16 +102,24 @@
ities: %7B
+%0A
browser
@@ -136,11 +136,15 @@
ome'
- %7D
+%0A %7D%0A
%7D;%0Av
@@ -384,40 +384,165 @@
-console.l... |
5b55629e784742168f48e7aab49b6bb36a23f220 | Fix saucelabs tests -- OSX 10.6 no longer an option | test/browsers.js | test/browsers.js | var browsers = {
chrome: [
['Linux', 'chrome', ''],
],
'chrome-osx': [
['OSX 10.10', 'chrome', ''],
],
'chrome-win': [
['Windows 7', 'chrome', ''],
],
firefox: [
['Linux', 'firefox', ''],
],
'firefox-osx': [
['OSX 10.10', 'firefox', ''],
],... | JavaScript | 0 | @@ -614,35 +614,34 @@
%5B'Windows
-8.
1
+0
', 'internet exp
@@ -684,35 +684,34 @@
%5B'Windows
-8.
1
+0
', 'internet exp
@@ -1169,33 +1169,33 @@
%5B'OSX 10.1
-0
+1
', 'safari', '8'
@@ -1192,19 +1192,19 @@
fari', '
-8
'%5D
+,
%0A %5D,%0A
@@ -1444,32 +1444,70 @@
'chrome', ''%5D,%0A
+ ... |
ef66e34edc9a813d767c115a96fd36b71a1372ad | add 2 sample blocks to fake-backend | webui/fake-backend/fake.js | webui/fake-backend/fake.js | // index.js
const faker = require('faker');
module.exports = () => {
const data = {
rows: [],
datasets: [dataset1, dataset2]
};
for (let i = 0; i < 1000; i++) {
let height = faker.random.number({min: 1.40, max: 2.20, precision: 0.01});
let sportLevel = ['low', 'medium', 'high'];
data.rows... | JavaScript | 0 | @@ -129,16 +129,36 @@
ataset2%5D
+,%0A blocks: blocks
%0A %7D;%0A%0A
@@ -1923,28 +1923,341 @@
tring%22%0A %7D%0A %5D%0A %7D%0A%7D;%0A
+%0Aconst blocks = %5B%0A %7B%0A id: %22FileReader-1%22,%0A type: %22FileReader%22,%0A inputs: %5B%0A %5D,%0A params: %7B%0A url: %22/home/...%22%0A... |
1655249d7a9cd9403f868d71c7c0e29b2756f3d8 | use compileOptions when showing failing code | test/generate.js | test/generate.js | import spaces from '../src/utils/spaces.js';
import assert from 'assert';
import * as path from 'path';
import * as fs from 'fs';
import * as acorn from 'acorn';
import { addLineNumbers, loadConfig, svelte, env, setupHtmlEqual } from './helpers.js';
let showCompiledCode = false;
let compileOptions = null;
function g... | JavaScript | 0 | @@ -1475,16 +1475,32 @@
( source
+, compileOptions
);%0A%09%09%09%7D
|
d0e2be27d171742688e5e12406a403b6259c38ab | Add ES 1.0 support for geo shape tests | test/geo-test.js | test/geo-test.js | var mongoose = require('mongoose')
, elastical = require('elastical')
, esClient = new(require('elastical').Client)
, should = require('should')
, config = require('./config')
, Schema = mongoose.Schema
, ObjectId = Schema.ObjectId
, mongoosastic = require('../lib/mongoosastic');
var GeoSche... | JavaScript | 0 | @@ -1152,16 +1152,17 @@
+(
mapping.
@@ -1167,16 +1167,158 @@
g.geodoc
+ != undefined ?%0A mapping.geodoc: /* ES 0.9.11 */%0A mapping.geodocs.mappings.geodoc /* ES 1.0.0 */%0A )
.propert
|
aa965f7353f3a4720e0f7bfa428dd1387ab6eb31 | add source file | test/gulpfile.js | test/gulpfile.js | /**
* Created by nuintun on 2015/5/5.
*/
'use strict';
var gulp = require('gulp');
var util = require('../lib/util');
var colors = util.colors;
var through = require('through2');
var transport = require('../lib/transport');
var include = require('../lib/include');
function listen(){
return through.obj(function (... | JavaScript | 0.000001 | @@ -524,24 +524,47 @@
'));%0A %7D%0A%0A
+ console.log('%5Cn');%0A
console.
|
5da35080fadc3d112605fdcf1710431768de0218 | Add missing code to work with the pollify | test/has_lazy.js | test/has_lazy.js | import { describe, it } from 'mocha';
import { expect } from 'chai';
import { createObjectWith, buildObject } from './utils';
describe('Test HAS with { LAZY } action', () => {
describe('when the attribute is setted via initialization', () => {
it('must have the initialization value on the _jsmoo_', () => {
... | JavaScript | 0.000001 | @@ -120,16 +120,109 @@
tils';%0A%0A
+const _Promise = typeof Promise === 'undefined' ? require('es6-promise').Promise : Promise;%0A%0A
describe
@@ -2522,32 +2522,33 @@
return new
+_
Promise((resolve
@@ -3119,16 +3119,17 @@
urn new
+_
Promise(
|
ddb6e3f75495ff7289026826ab75897456dfa96a | clean up irl-test.js videos | test/irl-test.js | test/irl-test.js | const assert = require('assert');
const nock = require('nock');
const ytdl = require('..');
let videos = {
'Regular video': 'mgOS64BF2eU',
VEVO: 'qQ31INpjXX0',
'VEVO 2': 'pJk0p-98Xzc',
'Age restricted VEVO': 'B3eAMGXFw1o',
'Age restricted': 'BlhyROz85OU',
'Embed domain restricted': 'B3eAMGXFw1o',
'No em... | JavaScript | 0 | @@ -87,18 +87,20 @@
..');%0A%0A%0A
-le
+cons
t videos
@@ -144,128 +144,38 @@
,%0A
-VEVO: 'qQ31INpjXX0',%0A 'VEVO 2': 'pJk0p-98Xzc',%0A 'Age restricted VEVO': 'B3eAMGXFw1o',%0A 'Age restricted': 'BlhyROz85OU
+'Age restricted': 'LuZu9N53Vd0
',%0A
@@ -282,16 +282,51 @@
Lt_qU',%0A
+ 'Live broadcast': '5qap5aO4i... |
137224c9c48b6c4067270dfb57bd109e3129da86 | Tidy up | test/mriTests.js | test/mriTests.js | "use strict"
const mocha = require('mocha');
const expect = require('chai').expect;
const fs = require('fs');
const mri = require('../src/mri');
const gitLog = require('../src/gitLog');
const rewire = require('rewire');
const cg = require('../src/crystalgazer');
xdescribe("Mri tests", function(){
it("should dete... | JavaScript | 0.000027 | @@ -293,17 +293,16 @@
tion()%7B%0A
-%0A
it(%22
@@ -1264,759 +1264,7 @@
%7D);%0A
-%0A it(%22should read after and before from the log%22, function()%7B%0A const cgConfig = %7B%0A workingDirectory : %22test/testRepo%22,%0A name: %22withDates%22%0A %7D;%0A%0A cg.init(cg... |
4a19ce5c84bfeaff1437069444e155ed26f76f50 | add requiring test | test/prh-test.js | test/prh-test.js | // LICENSE : MIT
"use strict";
// test prh rule
// LICENSE : MIT
"use strict";
import TextLintTester from "textlint-tester";
var tester = new TextLintTester();
// 実際のテストはymlファイル自体に書かれている
// それを実行するために使うだけのテストファイル
tester.run("2.2.3.一部の助数詞の表記", require("../src/2.2.3.一部の助数詞の表記"), {
valid: [
"これは正常なテキストです"
... | JavaScript | 0.000331 | @@ -28,55 +28,44 @@
t%22;%0A
-// test prh rule%0A// LICENSE : MIT%0A%22use strict%22;
+require(%22../src/%22);%0A// test prh rule
%0Aimp
|
d518e5ad60e3b51a2fcb84a73d85d82386d2eda9 | change in js redirect for in app | www/js/index.js | www/js/index.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0 | @@ -1533,11 +1533,45 @@
ion=
-yes
+no,hidden=yes,closebuttoncaption=Done
,too
|
78056fc0b26447096603ae907732a94399abe5bb | Update index.js | www/js/index.js | www/js/index.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0.000002 | @@ -1913,523 +1913,8 @@
-scan: function() %7B%0A console.log('scanning');%0A try %7B%0A cordova.plugins.barcodeScanner.scan(%0A function (result) %7B%0A alert(%22We got a barcode%5Cn%22 +%0A %22Result: %22 + result.text + %22%5Cn%22 +%0A %22Form... |
2ff52653525ec7199d46b85a8008fa63653b5c2b | Add channel. | www/js/index.js | www/js/index.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0 | @@ -1781,14 +1781,10 @@
lrb/
-Stream
+Me
') !
@@ -1919,32 +1919,225 @@
%09%7D%0A %0A
+ %09if(event.url.indexOf('Blrb/Stream') != -1)%0A %09%7B%0A %09%09debugger;%0A %09%09alert(%22Stream%22);%0A %09%09alert(event.url);%0A %09%09alert(event);%0A %... |
c098e705c21818669f12d3ad5a74a4e743adb68c | move utility methods for showing/hiding elements down | www/js/index.js | www/js/index.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0 | @@ -2401,219 +2401,8 @@
%7D,%0A
- showElementById: function(id) %7B%0A document.getElementById(id).classList.remove('hidden');%0A %7D,%0A hideElementById: function(id) %7B%0A document.getElementById(id).classList.add('hidden');%0A %7D,%0A
@@ -5705,24 +5705,235 @@
%7D%0A %7D,%0A
... |
dd0ff9223765f37ce83fbc3b6502b9a154bf4725 | fix containerParams and devicePixelRatio on Android | www/phonertc.js | www/phonertc.js | var exec = require('cordova/exec');
var videoViewConfig;
function Session(config) {
// make sure that the config object is valid
if (typeof config !== 'object') {
throw {
name: 'PhoneRTC Error',
message: 'The first argument must be an object.'
};
}
if (typeof config.isInitiator === 'undef... | JavaScript | 0 | @@ -3347,62 +3347,8 @@
n %7B%0A
- devicePixelRatio: window.devicePixelRatio %7C%7C 2,%0A
@@ -3713,19 +3713,49 @@
%0A%0A
-if (config.
+var container = config.container;%0A%0A if (
cont
@@ -3808,16 +3808,39 @@
tParams(
+container);%0A delete
config.c
@@ -3847,24 +3847,82 @@
ontainer
-)
;%0A %7D%... |
5ce24c52b02e96491989e818dbd07bf6a81d65bb | Add 100% test coverage for kss.js. #267 | test/test_kss.js | test/test_kss.js | /* eslint-disable max-nested-callbacks */
'use strict';
const mockStream = require('mock-utf8-stream'),
Promise = require('bluebird');
const fs = Promise.promisifyAll(require('fs-extra'));
const testKss = function(options) {
options.pipes = options.pipes || {};
// For our tests, feed kss() mock stdout and st... | JavaScript | 0 | @@ -2059,49 +2059,8 @@
) %7B%0A
- expect(response.error).to.exist;%0A
@@ -2128,24 +2128,108 @@
ecified.');%0A
+ return kss().catch(error =%3E %7B%0A expect(error).to.exist;%0A %7D);%0A
%7D);%0A
|
af42c3d434f424eb14c97ea472a7b477b8f724e3 | Reformat test_max | test/test_max.js | test/test_max.js | require('../dist/array_extensions');
var assert = require('chai').assert;
var sinon = require('sinon');
var jsonfile =require('jsonfile');
var file = './fixtures/data.json';
var fixtures = jsonfile.readFileSync(file);
describe('Array #max', function () {
it('Should return empty', function () {
//Execute
var re... | JavaScript | 0.000001 | @@ -299,35 +299,35 @@
%7B%0A%09%09//Execute%0A%09%09
-var
+let
result = fixtur
@@ -462,35 +462,35 @@
) %7B%0A%09%09//Setup%0A%09%09
-var
+let
expected = %7B %22n
@@ -515,27 +515,27 @@
e%22: 20 %7D;%0A%09%09
-var
+let
callback =
@@ -538,34 +538,17 @@
k =
-function(a, b) %7B%0A%09%09%09return
+(a, b) =%3E
a... |
849094162498b5e9bf27766820dcf127dfd4fe93 | Add tests for Monitor#ping() | tests/monitor.js | tests/monitor.js | import Monitor from '../monitor';
import assert from 'assert';
describe('Monitor', () => {
describe('#constructor()', () => {
it('should return an instance of the Monitor class', () => {
const mon = new Monitor();
assert(mon instanceof Monitor);
});
it('should not have any default values', () => {
cons... | JavaScript | 0 | @@ -839,12 +839,728 @@
);%0A%09%7D);%0A
+%09describe('#ping()', () =%3E %7B%0A%09%09it('should update the last ping time', () =%3E %7B%0A%09%09%09const lastPing = new Date(Date.now() - 1000); // 1 second ago%0A%09%09%09const mon = new Monitor(%7B lastPing %7D);%0A%09%09%09mon.ping();%0A%09%09%09assert.notEqual(mon.las... |
d0a64a1e6180a2f1cfca9b5cecfb3b2fe0ab9adc | change messages scroller behavior when scroll to top | actor-sdk/sdk-web/src/components/dialog/MessagesScroller.react.js | actor-sdk/sdk-web/src/components/dialog/MessagesScroller.react.js | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component, PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import PeerUtils from '../../utils/PeerUtils';
/**
* On which scrollTop value start loading older messages
*/
const MAX_LOAD_HEIGHT = 100;
class MessagesScr... | JavaScript | 0 | @@ -929,22 +929,19 @@
._scroll
-Height
+Top
= scrol
@@ -937,30 +937,27 @@
Top = scroll
-Height
+Top
;%0A this
@@ -956,35 +956,38 @@
this._scroll
-Top
+Height
= scrollTop;%0A
@@ -971,35 +971,38 @@
lHeight = scroll
-Top
+Height
;%0A this._sh
@@ -1159,49 +1159,92 @@
-setImmediate(() =%3E %7... |
7af68faaeed6875bdc49d4567f0cf810d5925e1d | Fix resolved | app/assets/javascripts/compare/presenters/CompareGridPresenter.js | app/assets/javascripts/compare/presenters/CompareGridPresenter.js | define([
'backbone',
'mps',
'compare/presenters/PresenterClass',
'compare/services/CompareService',
'widgets/collections/WidgetCollection',
], function(Backbone, mps, PresenterClass, CompareService, WidgetCollection) {
'use strict';
var CompareGridPresenter = PresenterClass.extend({
status: new (Ba... | JavaScript | 0.000001 | @@ -2349,24 +2349,65 @@
ompare2)) %7B%0A
+ console.log(params.options);%0A
@@ -5411,99 +5411,91 @@
-r%5Bthis.objToSlug(params.compare1,'')%5D = params.options%5Bthis.objToSlug(this.oldCompare1,'')%5D
+var options = _.map(params.options, function(opt,key)%7B%0A return opt;%0A ... |
97563018d047d715dc41e306785c00cd0ca87b26 | Add a javascript method to fetch braintree tokens | app/assets/javascripts/spree/frontend/solidus_paypal_braintree.js | app/assets/javascripts/spree/frontend/solidus_paypal_braintree.js | // Placeholder manifest file.
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'
window.SolidusPaypalBraintree = {
APPLE_PAY_API_VERSION: 1,
initialize: function(authToken, clientReadyCallback) {
braintree.client.create({
authorizatio... | JavaScript | 0.000001 | @@ -208,16 +208,411 @@
ON: 1,%0A%0A
+ fetchToken: function(tokenCallback) %7B%0A Spree.ajax(%7B%0A dataType: 'json',%0A type: 'POST',%0A url: Spree.pathFor('solidus_paypal_braintree/client_token'),%0A success: function(response) %7B%0A tokenCallback(response.client_token, response.paymen... |
be9352266c9ec7595c6354a8d98c990a2dc91bf8 | Fix hashtag column not subscribing to stream on mount (#10040) | app/javascript/flavours/glitch/features/hashtag_timeline/index.js | app/javascript/flavours/glitch/features/hashtag_timeline/index.js | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container';
import Column from 'flavours/glitch/components/column';
import ColumnHeader from 'flavours/glitch/components/column_header... | JavaScript | 0 | @@ -1464,16 +1464,17 @@
ms.id%5D;%0A
+%0A
if (
@@ -1533,32 +1533,42 @@
FormattedMessage
+ key='any'
id='hashtag.col
@@ -1680,32 +1680,33 @@
al%7D' /%3E);%0A %7D%0A
+%0A
if (this.add
@@ -1757,32 +1757,42 @@
FormattedMessage
+ key='all'
id='hashtag.col
@@ -1909,24 +1909,25 @@
/%3E);%0A %7D%0A
+%... |
ac16f48a945747a7611cad14bf611a02cc45c868 | add another test case | tests/test_fd.js | tests/test_fd.js | /*
* Copyright 2011 Rackspace
*
* 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... | JavaScript | 0.000089 | @@ -694,16 +694,15 @@
est_
-all_good
+obvious
'%5D =
@@ -1088,16 +1088,221 @@
0.01);%0A%0A
+%0A assert.ok(d.phi(Date.now() + 120 * 1000) %3E 9.0);%0A assert.ok(d.phi(Date.now() + 120 * 1000) %3C 9.2);%0A%0A assert.ok(d.phi(Date.now() + 200 * 1000) %3E 40);%0A assert.ok(d.phi(Date.now() + 200 * 1000) %3C 50);%0A%... |
1a7a70480368cfbd0ab7be8723ea6d4981a60c67 | you can also find an ami, so the wording here is not correct | app/scripts/modules/pipelines/config/stages/deploy/deployStage.js | app/scripts/modules/pipelines/config/stages/deploy/deployStage.js | 'use strict';
angular.module('deckApp.pipelines.stage.deploy')
.config(function (pipelineConfigProvider) {
pipelineConfigProvider.registerStage({
label: 'Deploy',
description: 'Deploys the previously baked AMI',
key: 'deploy',
templateUrl: 'scripts/modules/pipelines/config/stages/deploy/d... | JavaScript | 0.998875 | @@ -218,16 +218,25 @@
y baked
+or found
AMI',%0A
|
8b88425f68e94262bc7fa5b4d5fcf75df764e1b0 | use classic gruvbox foreground colors | .gulp/palette.js | .gulp/palette.js | const dark0_hard = '#1D2021';
const dark0 = '#282828';
const dark0_soft = '#32302F';
const dark1 = '#3C3836';
const dark2 = '#504945';
const dark3 = '#665C54';
const dark4 = '#7C6F64';
const gray = '#928374';
const light0_hard = '#F9F5D7';
const light0... | JavaScript | 0 | @@ -1453,38 +1453,33 @@
hard: light
-0_hard
+1
,%0A medium:
@@ -1475,33 +1475,33 @@
medium: light
-0
+1
,%0A soft: li
@@ -1495,38 +1495,33 @@
soft: light
-0_soft
+1
,%0A %7D,%0A fg0
@@ -2183,38 +2183,33 @@
hard: dark
-0_hard
+1
,%0A medium:
@@ -2204,33 +2204,33 @@
... |
91398d921084b8115cad142f1b906e9dd1d46efa | Fix bug in genjava. Wasn't including inherited properties. | tools/genjava.js | tools/genjava.js | /**
* @license
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0 | @@ -827,16 +827,32 @@
gv%5B3%5D;%0A%0A
+model.create();%0A
fs.write
|
41ca2ece672fa0837ac9d05f7b1c08b9bb9b9cb6 | Add last action time calc. | server/api/controllers/time/index.js | server/api/controllers/time/index.js | 'use strict';
function getTimeInList(actions) {
actions.reverse();
var duration = [];
var listBefore = {};
var listAfter = {};
actions.forEach(function(action) {
// get date and listAfter
listAfter = {
date: action.date,
list: action.data.listAfter
};
// if isset list before get... | JavaScript | 0 | @@ -128,16 +128,29 @@
er = %7B%7D;
+%0A var i = 1;
%0A%0A acti
@@ -188,33 +188,21 @@
-// get date and listAfter
+var diff = 0;
%0A
@@ -287,50 +287,8 @@
%7D;%0A%0A
- // if isset list before get date diff%0A
@@ -412,28 +412,24 @@
ate);%0A
-var
diff = updat
@@ -561,16 +561,17 @@
;%0A %... |
337432f078aab19118f482e8af6c40542ee57220 | Fix ci error | packages/components/rtl.setup.js | packages/components/rtl.setup.js | import '@testing-library/react/cleanup-after-each';
import '@testing-library/jest-dom/extend-expect';
// Silence warnings on expect to throw https://github.com/testing-library/react-testing-library/issues/157
console.error = (err) => {
throw new Error(err);
};
console.warn = (warning) => {
throw new Error(warn... | JavaScript | 0.000018 | @@ -224,106 +224,38 @@
= (
-err
) =%3E %7B
-%0A throw new Error(err);%0A%7D;%0Aconsole.warn = (warning) =%3E %7B%0A throw new Error(warning);%0A
+%7D;%0Aconsole.warn = () =%3E %7B
%7D;%0A
|
2e65e1f90ea470d5168ea2b09acac47255c07360 | reset password fix | server/controllers/passport/reset.js | server/controllers/passport/reset.js | var LocalStrategy = require('passport-local').Strategy,
User = require('../../models/user'),
bCrypt = require('bcryptjs'),
md5 = require('MD5'),
async = require('async'),
_ = require('underscore'),
mailer = require('../emailer'),
Error = require('../error');
module.exports = function(req, res,... | JavaScript | 0.000002 | @@ -90,16 +90,70 @@
ser'),%0D%0A
+%09%09UserProfile = require('../../models/userprofile'),%0D%0A
%09%09bCrypt
|
e19ec6ff54080aff830bee95a8865be239279138 | Update min file | translate.min.js | translate.min.js | (function(e,t,n){"use strict";e.translate={};var r={MAX_SIZE:1500,progressIndicator:e('<div class="translating">Translating</div>')};var i={push:function(e){r.textSize+=e.length;if(r.textSize>r.MAX_SIZE){r.textCollectionIndex++;r.textCollection[r.textCollectionIndex]=[];r.textSize=e.length}r.textCollection[r.textCollec... | JavaScript | 0 | @@ -1,16 +1,165 @@
+/*!%0A* jQuery Google Translate API 2.0 plugin%0A* https://github.com/michaeldewildt/jquery-translate%0A* Copyright 2013 Michael De Wildt - MIT License%0A*/%0A
(function(e,t,n)
@@ -208,11 +208,10 @@
ZE:1
-500
+e3
,pro
@@ -2337,13 +2337,12 @@
ar u
-=0;u%3C
+ in
r.te
@@ -2357,19 +2357,8 @@
tion... |
cd433970b0c23416e59bb76236f087677ad15502 | Fix forum "not found" | web_modules/Footer/index.js | web_modules/Footer/index.js | import React, { Component, PropTypes } from "react"
import { Link } from "react-router"
import cx from "classnames"
import SVGIcon from "../SVGIcon"
export default class Footer extends Component {
static contextTypes = {
metadata: PropTypes.object.isRequired,
}
render() {
const { metadata } = this.co... | JavaScript | 0 | @@ -1178,24 +1178,25 @@
%3Cli key=%7B
+
i18n.forum%7D%3E
@@ -1185,32 +1185,33 @@
key=%7B i18n.forum
+
%7D%3E%0A
@@ -1222,17 +1222,17 @@
%3C
-Link to
+a href
=%7B
+
i18n
@@ -1237,16 +1237,17 @@
8n.forum
+
%7D%3E%0A
@@ -1260,24 +1260,25 @@
%7B
+
i18n.forumLa
@@ -1276,24 ... |
c4ab0c4b474f9b1051ab3b4856b75e7981947cc6 | Update text.js | txt/text/text.js | txt/text/text.js |
var passage = `
There are a good many people of the same kind as Harry. Many artists are of his kind. These persons all have two souls, two beings within them. There is God and the devil in them; the mother’s blood and the father’s; the capacity for happiness and the capacity for suffering; and in just ... | JavaScript | 0.000002 | @@ -15,18 +15,8 @@
= %60%0A
- %0A %0A %0A %0A %0A
@@ -1924,21 +1924,16 @@
tality.%0A
- %0A
@@ -1981,8 +1981,11 @@
enwolf%22%0A
+ %60%0A
|
e45d1964f92fce47a4ce6b5edd24c052ba78e494 | fix to pass callback function for savePost | src/services/ecmascript-daily/ESDailyCommitter.js | src/services/ecmascript-daily/ESDailyCommitter.js | "use strict";
/*
This module work on Node.js
*/
const path = require("path");
const fs = require("fs");
const yaml = require("js-yaml");
const moment = require("moment");
const slugg = require("slugg");
const mkdirp = require('mkdirp');
import storage from "../../node/storage/accounts";
import {exec} from "child_p... | JavaScript | 0 | @@ -620,32 +620,42 @@
serializedObject
+, callback
) %7B%0A if (!ser
@@ -792,16 +792,26 @@
rom(item
+, callback
);%0A%7D%0A%0Afu
|
d2a53ca0a4a6069d30ee19831d106675bcf06ef0 | Fix for uploading not completing after 100% | src/share/web/ext/share/js/src/filesystem/Node.js | src/share/web/ext/share/js/src/filesystem/Node.js | /** @namespace ext.share.filesystem */
js.extend('ext.share.filesystem', function (js) {
var CDataNode = js.data.Node;
/**
* @class Node
*/
var CNode = this.Node = function (data, tree) {
CDataNode.apply(this);
this.data = data;
this.tree = tree;
this.hasPopulated = false;
this.alData... | JavaScript | 0 | @@ -5235,19 +5235,120 @@
-return true
+var dnode = this.getDataNode();%0A return dnode.isFile() %7C%7C dnode.isDirectory() %7C%7C dnode.getType() == 'loading'
;%0A
|
d71a5b059fff30da2f7534fa29dc33f9714be3f9 | Remove commented code | src/shared/components/form/formInput/formInput.js | src/shared/components/form/formInput/formInput.js | /* eslint-disable */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Label from 'shared/components/label/label';
import styles from './formInput.css';
class FormInput extends Component {
constructor() {
super();
this.state = {
text: '',
isValid: true
};
... | JavaScript | 0 | @@ -1008,85 +1008,8 @@
%7D%0A%0A
- // componentWillReceiveProps(nextProps)%7B%0A // this.revalidate();%0A // %7D%0A%0A
re
|
450afe46bde98c6b3639fa3b9f11390624a1f213 | Add displayName props to Toggle and TwoOptionTogggle | src/components/common/controls/TwoOptionToggle.js | src/components/common/controls/TwoOptionToggle.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | JavaScript | 0 | @@ -1814,24 +1814,75 @@
quired,%0A%7D;%0A%0A
+%0ATwoOptionToggle.displayName = 'TwoOptionToggle';%0A%0A
export const
@@ -2387,16 +2387,48 @@
ed,%0A%7D;%0A%0A
+Toggle.displayName = 'Toggle';%0A%0A
export d
|
c0a01336d368349f87774489989fc2f6758499a3 | Fix link to the index. | ui/src/side_nav/containers/SideNav.js | ui/src/side_nav/containers/SideNav.js | import React, {PropTypes} from 'react'
import {withRouter} from 'react-router'
import {connect} from 'react-redux'
import {
NavBar,
NavBlock,
NavHeader,
NavListItem,
} from 'src/side_nav/components/NavItems'
const {bool, shape, string} = PropTypes
const SideNav = React.createClass({
propTypes: {
params... | JavaScript | 0 | @@ -50,16 +50,22 @@
thRouter
+, Link
%7D from '
@@ -967,14 +967,15 @@
%3C
-a href
+Link to
=%22/%22
@@ -1015,17 +1015,20 @@
rm%22 /%3E%3C/
-a
+Link
%3E%0A
|
e84e4ed5f5804639493d04ddb695ebd9adcca18c | Add CSS classes to group ID input in CreateGroupDialog | src/components/views/dialogs/CreateGroupDialog.js | src/components/views/dialogs/CreateGroupDialog.js | /*
Copyright 2017 Vector Creations 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, sof... | JavaScript | 0 | @@ -4764,47 +4764,138 @@
%3Cdiv
-%3E%0A %3Cspan
+ className=%22mx_CreateGroupDialog_input_group%22%3E%0A %3Cspan className=%22mx_CreateGroupDialog_input_prefix%22
%3E+%3C/
@@ -4981,32 +4981,54 @@
roupDialog_input
+ has_prefix has_suffix
%22%0A ... |
2fc06db1d875f5101c688e80bd4836cfb6f00f0a | Update RightSidebar | src/components/views/rightsidebar/RightSidebar.js | src/components/views/rightsidebar/RightSidebar.js | import React from 'react';
import { Link, IndexLink } from 'react-router';
import domtoimage from 'dom-to-image';
function filter (node) {
try {
return (node.getAttribute("class") !== 'statetooltip' && node.getAttribute("class")!== "tcontainer" && node.getAttribute("class")!== "select-container" && node.nodeType !=... | JavaScript | 0 | @@ -352,22 +352,24 @@
!=%22
-know-more-link
+see-details-text
%22);%0A
@@ -1080,12 +1080,14 @@
Id('
-card
+report
-con
@@ -1155,17 +1155,17 @@
(blob, '
-v
+V
isualiza
@@ -1168,18 +1168,18 @@
lization
--r
+ R
eport.pn
@@ -1217,53 +1217,8 @@
) %7B%0A
-%09%09%09console.error(%22Promise Rejected%22, error);%0A
%... |
4897a8cafd045d53797c3ca675df074a1d19d886 | Add missed semicolon | src/middlewares/express.js | src/middlewares/express.js | 'use strict';
/**
* @author: Popov Gennadiy <me@westtrade.tk>
* @Date: 2016-12-15T01:44:37+03:00
* @Email: me@westtrade.tk
* @Last modified by: dio
* @Last modified time: 2016-12-20T02:08:10+03:00
*/
const Cleantalk = require('../Cleantalk');
const CleantalkRequest = require('../CleantalkRequest');
const ALLOWE... | JavaScript | 0.000057 | @@ -2353,16 +2353,17 @@
);%0A%09%7D;%0A%7D
+;
%0A%0Amodule
|
354f5013c1570963d04de5f641ed2888cc2ea135 | fix jsfiddle for legend.el example | src/documentation/fiddle/config.legend.el/demo.js | src/documentation/fiddle/config.legend.el/demo.js | $(function () {
var redLine = [{x: 0, y: 170},{x: 88, y: 170},{x: 178, y: 149},{x: 201, y: 106},{x: 287, y: 83},{x: 331, y: 105},{x: 353, y: 172},{x: 400, y: 219}];
var greenLine = [{x: 0, y: 220},{x: 87, y: 130},{x: 154, y: 197},{x: 197, y: 195},{x: 220, y: 214},{x: 286, y: 215},{x: 332, y: 263},{x: 378, y: 24... | JavaScript | 0 | @@ -684,16 +684,17 @@
%7B el: '
+.
myLegend
|
ce8bab9c4431e086f649173ff575ca0ac745cd40 | add study to opencga track from opencgaSession in GB #TASK-438 | src/webcomponents/visualization/genome-browser.js | src/webcomponents/visualization/genome-browser.js | import {LitElement, html} from "lit";
import UtilsNew from "./../../core/utilsNew.js";
import Region from "../../core/bioinfo/region.js";
import GenomeBrowser from "../../genome-browser/genome-browser.js";
import FeatureTrack from "../../genome-browser/tracks/feature-track.js";
import GeneOverviewTrack from "../../gen... | JavaScript | 0 | @@ -4290,32 +4290,101 @@
.opencgaClient,%0A
+ opencgaStudy: this.opencgaSession.study.fqn,%0A
|
eba2afaaa71d15be3dc8cf37f186a2f77e3fe0e9 | update client-side stage 2 controller to POST all the required info | static/ng-app/controllers/pr_stage2_controller.js | static/ng-app/controllers/pr_stage2_controller.js | app.controller(
'PRStage2Controller',
[
'$scope',
'$controller',
'ModelService',
function ($scope, $controller, ModelService) {
// PRVisualizationController pushes necessary vars through to this
// controller
console.log();
$scope... | JavaScript | 0 | @@ -573,16 +573,19 @@
_subset.
+id.
toString
@@ -661,14 +661,8 @@
ster
-_index
);%0A
@@ -858,17 +858,36 @@
.push(p.
-i
+full_name_underscore
d);%0A
@@ -1046,16 +1046,19 @@
arent_pr
+_id
: $scope
@@ -1138,27 +1138,24 @@
nce.
-request_description
+cell_subset.name
,%0A
@@ -1396,32 +1396,32 @@
.cluster_c... |
0ec1adc4912a39850e48ddea2845f911434d0826 | Fix bug: disconnect always return error | www/cordova-plugin-mqtt.js | www/cordova-plugin-mqtt.js | /*
Adding new router config.
routerConfig:{
router:type Object
publishMethod:type String,
useDefaultRouter:type Boolean
}*/
var exec = require('cordova/exec'), cordova = require('cordova'),
channel = require('cordova/channel'),
utils = require('cordova/utils');
var url,uname,pass,iscls,router = null... | JavaScript | 0.000015 | @@ -6595,37 +6595,39 @@
if (args.
-error
+success
!==undefined) %7B%0A
@@ -6647,37 +6647,39 @@
args.
-error
+success
(data);%0A
|
cd206cce1df3bd28a2bfbafc1ab87c8071c939ed | fix weak type bug | src/es6/core/controller/FeatureRouteController.js | src/es6/core/controller/FeatureRouteController.js | /**
* Created by Gaplo917 on 29/1/2016.
*/
import * as HKEPC from '../../data/config/hkepc'
import * as URLUtils from '../../utils/url'
import {HKEPCHtml} from "../model/hkepc-html"
import {FindMessageRequest} from "../model/FindMessageRequest"
import {NotificationBadgeUpdateRequest} from "../model/NotificationBadgeU... | JavaScript | 0.000001 | @@ -1591,40 +1591,30 @@
e =
+String(
data
+)
==
-undefined ? false : data
+'true'
%0A
|
3a216ddffab2be4448e256f8bc3d4afc68ea3179 | add end of file | validators/missingLayerBridges/map.js | validators/missingLayerBridges/map.js | 'use strict';
var turf = require('turf');
// Find bridges that does not have a layer tag
module.exports = function(tileLayers, tile, writeData, done) {
var layer = tileLayers.osm.osm;
var majorRoads = {
'motorway': true,
'trunk': true,
'primary': true,
'secondary': true,
'tertiary': true,
'... | JavaScript | 0.000005 | @@ -1409,8 +1409,9 @@
';%0A %7D%0A%7D
+%0A
|
a753604f6aaf3522812ebee6d0746d7e058c93ca | clarify some of the writing | src/ng/directive/ngBind.js | src/ng/directive/ngBind.js | 'use strict';
/**
* @ngdoc directive
* @name ng.directive:ngBind
*
* @description
* The `ngBind` attribute tells Angular to replace the text content of the specified HTML element
* with the value of a given expression, and to update the text content when the value of that
* expression changes.
*
* Typically, ... | JavaScript | 0.000035 | @@ -462,41 +462,33 @@
%0A *
-One scenario in which the
+It is preferrable to
use
-of
%60ngB
@@ -497,24 +497,17 @@
d%60 i
-s preferred over
+nstead of
%60%7B%7B
@@ -526,62 +526,14 @@
%7D%7D%60
-binding is when%0A * it's desirable to put bindings into
+when a
tem
@@ -538,21 +538,16 @@
emplate
-that
is m... |
76ee1d8d10dcc1a2cfdb1b78de8fcd44d377ba2f | Update config to add CNAME to docs | docs/webpack.config.production.js | docs/webpack.config.production.js | const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const TransferWebpackPlugin = require('transfer-webpack-plugin');
module.exports = ... | JavaScript | 0 | @@ -1786,74 +1786,10 @@
%7D
-%5D
,
-path.resolve(__dirname, './')),%0A new TransferWebpackPlugin(%5B
%7B%0A
|
f3baea55f83f0c646246f26f1103b78d6e69e652 | add test that error message is not displayed when input proper json | tests/e2e/specs/auth-client-configuration.test.js | tests/e2e/specs/auth-client-configuration.test.js | /**
* WordPress dependencies
*/
import { activatePlugin, visitAdminPage } from '@wordpress/e2e-test-utils';
describe( 'Providing client configuration', () => {
beforeEach( async() => {
await activatePlugin( 'google-site-kit' );
await visitAdminPage( 'admin.php', 'page=googlesitekit-splash' );
} );
it( 'Shou... | JavaScript | 0.000007 | @@ -551,128 +551,8 @@
);%0A%0A
-%09%09// const proceedButton = await page.$x(%0A%09%09// %09'//button%5B@disabled%5D%5Bcontains(@id,%22wizard-step-one-proceed%22)%5D'%0A%09%09// );%0A%0A
%09%09ex
@@ -594,24 +594,24 @@
Equal( 0 );%0A
+
%09%7D );%0A%0A%0A%09it(
@@ -855,18 +855,8 @@
);%0A%0A
-%09%09//error%0A
%09%09... |
90833fc4963f0eb90599886cda37381717cb870c | Update CustomSkins.js | src/scripts/CustomSkins.js | src/scripts/CustomSkins.js | // ==UserScript==
// @name Agar.io custom skins
// @version 0.1
// @description Custom Skins for Agar.io
// @author Megabyte918
// @match *.agar.io/*
// @grant none
// ==/UserScript==
function setSkin() {
if (document.getElementById('skin').value.match(/^http(s)?:\/\/(.*?)/)) {
... | JavaScript | 0 | @@ -68,17 +68,17 @@
0.
-1
+2
%0A// @des
@@ -2212,46 +2212,60 @@
ch(/
-%5E
+(
http(s
-)?:%5C/%5C/(.*?)+(jpg%7Cbmp%7Cpng%7Cgif)$
+?):)%7C(%5B/%7C.%7C%5Cw%7C%5Cs%5D)*%5C.(?:jpg%7Cjpeg%7Cgif%7Cpng%7Cbmp)
/))
|
b70f7885150fd420998254a2c605b4ce1029ad91 | fix handling of submenus | src/services/Navigation.js | src/services/Navigation.js |
"use strict";
let paths = {};
let loc = undefined;
let auth = undefined;
let cache = {};
let defaults = {
menu: 'main',
authentication: undefined,
notify: () => {}
};
class Menu {
}
/**
* Service to handle navigatable menus in Monad.
*/
export default class Navigation {
/**
* Class construc... | JavaScript | 0.000001 | @@ -2762,16 +2762,174 @@
.items;%0A
+ %7D else %7B%0A let down = angular.copy(found);%0A found.items = found.items %7C%7C %5Bdown%5D;%0A work = found.items;%0A
|
d08b7beca6115e6505a1b9a84b10d8f4718970c1 | Update reconnecting-websocket.js | reconnecting-websocket.js | reconnecting-websocket.js | // MIT License:
//
// Copyright (c) 2010-2012, Joe Walnes
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, m... | JavaScript | 0.000001 | @@ -2535,16 +2535,45 @@
ocols);%0A
+ self.onconnecting();%0A
|
3345c275ceea84fc102546baa437e336672e6f9d | update LinearProgressExample | examples/containers/app/modules/progress/LinearProgressExample.js | examples/containers/app/modules/progress/LinearProgressExample.js | import React, {Component} from 'react';
import LinearProgress from 'src/LinearProgress';
import Widget from 'src/Widget';
import WidgetHeader from 'src/WidgetHeader';
import PropTypeDescTable from 'components/PropTypeDescTable';
import doc from 'assets/propTypes/LinearProgress.json';
import 'sass/containers/app/modu... | JavaScript | 0 | @@ -360,23 +360,8 @@
';%0A%0A
-export default
clas
@@ -404,16 +404,16 @@
onent %7B%0A
+
%0A con
@@ -523,174 +523,8 @@
%7D%0A%0A
- componentDidMount() %7B%0A this.timer = setTimeout(() =%3E this.progress(0), 1000);%0A %7D%0A%0A componentWillUnmount() %7B%0A clearTimeout(this.timer);%0A ... |
a6c879e920016aba2bd7a0d7eb50d73cef5e3ba4 | Build randomly fails on oroui/js/app/models/sync-machine-proxy-cache test (#18298) | src/Oro/Bundle/UIBundle/Tests/JS/app/models/sync-machine-proxy-cacheSpec.js | src/Oro/Bundle/UIBundle/Tests/JS/app/models/sync-machine-proxy-cacheSpec.js | define(function(require) {
'use strict';
var _ = require('underscore');
var Backbone = require('backbone');
var SyncMachineProxyCache = require('oroui/js/app/models/sync-machine-proxy-cache');
var exposure = require('requirejs-exposure').disclose('oroui/js/app/models/sync-machine-proxy-cache');
... | JavaScript | 0 | @@ -7342,24 +7342,25 @@
+x
it('time mar
@@ -7395,32 +7395,60 @@
e', function() %7B
+ // skipped due to BAP-16852
%0A
|
294a830393911ebeaf68f14d20febef1c191ac82 | update debug/var-diff — use object/assign | src/debug/var-diff.js | src/debug/var-diff.js | 'use strict';
var chalk = require('../util/colorz');
var objectAssign = require('../object/object-assign');
var typeColors = {
modified: 'yellow',
added: 'green',
removed: 'red'
};
var options = {
indent: 2,
indentChar: ' ',
newLineChar: '\n',
wrap: function wrap(type, text) {
return chalk[typeColo... | JavaScript | 0 | @@ -89,15 +89,8 @@
ect/
-object-
assi
|
7058127d0cddb434cd67c58ea3dc98a3eb61fc47 | Reset rooms state slice on sign-out | src/store/modules/rooms.js | src/store/modules/rooms.js | import {
REQUEST_ROOMS,
ROOM_EDITOR_OPEN,
ROOM_EDITOR_CLOSE,
ROOM_FILTER_STATUS,
ROOM_UPDATE,
ROOM_CREATE,
ROOM_REMOVE,
_SUCCESS,
_ERROR,
} from 'shared/actionTypes'
import HttpApi from 'lib/HttpApi'
const api = new HttpApi('rooms')
// ------------------------------------
// Actions
// -------------... | JavaScript | 0.000011 | @@ -2,16 +2,26 @@
mport %7B%0A
+ LOGOUT,%0A
REQUES
@@ -3171,16 +3171,93 @@
ERS = %7B%0A
+ %5BLOGOUT + _SUCCESS%5D: (state, %7B payload %7D) =%3E (%7B%0A ...initialState,%0A %7D),%0A
%5BREQUE
|
ef5432df57c58725f90943ae8c5f24e76cb8018a | add "flac" sound type support | src/device/Audio.js | src/device/Audio.js | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Browser = require('./Browser');
/**
* Determines the audio playback capabilities of the device running this Phaser Game instance.
* These... | JavaScript | 0.000001 | @@ -876,32 +876,99 @@
play aac files.%0A
+ * @property %7Bboolean%7D flac - Can this device can play flac files.%0A
* @property %7Bbo
@@ -1354,16 +1354,33 @@
io = %7B%0A%0A
+ flac: false,%0A
aac:
@@ -2805,24 +2805,66 @@
lay('aac');%0A
+ Audio.flac = CanPlay('flac');%0A
|
ba842d35b98ca030acb59e0da20d21fb8ab2b1f0 | remove unstable acceptance test (reset password) | src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/UserLoginSpec.js | src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/UserLoginSpec.js | "use strict";
var UserPages = require("./UserPages.js");
var fs = require("fs");
var _ = require("lodash");
var shared = require("./shared");
describe("user registration", function() {
it("can register", function() {
var mailsBeforeMessaging = fs.readdirSync(browser.params.mail.queue_path + "/new");
... | JavaScript | 0 | @@ -2815,11 +2815,11 @@
n(%22S
-PAM
+pam
%22);%0A
@@ -3756,24 +3756,103 @@
antEmail);%0A%0A
+ expect(element(by.css(%22.login-success%22)).getText()).toContain(%22Spam%22);%0A
var
@@ -4026,1057 +4026,82 @@
-var newMails = _.difference(mailsAfterMessaging, mailsBeforeMessaging);%0A v... |
c7078443c891b12d4b0083911467ae2132ec41a7 | Stop setting all attrs as props too | src/template/stacks/dom.js | src/template/stacks/dom.js | 'use strict';
var _ = require('underscore');
var DefaultStack = require('./default');
var htmlParser = require('../html_parser');
function applyProperties(node, props) {
for (var propName in props) {
var propValue = props[propName];
if (propName === 'attributes') {
for (var attrName in propValue) {
... | JavaScript | 0 | @@ -477,20 +477,21 @@
%7D%0A %7D
-%0A
+ else
if (_.i
@@ -579,62 +579,8 @@
e %7B%0A
- if (propName.toLowerCase() !== 'autofocus') %7B%0A
@@ -609,24 +609,16 @@
pValue;%0A
- %7D%0A
%7D%0A
|
edb076811ff5a4002758df668f64cd69a486d404 | comment out non-working pagination component | src/templates/blog-post.js | src/templates/blog-post.js | import React from 'react';
import Helmet from 'react-helmet';
import styled, { keyframes } from 'styled-components';
import BackIcon from 'react-icons/lib/fa/chevron-left';
import ForwardIcon from 'react-icons/lib/fa/chevron-right';
import Link from '../components/Link';
import Tags from '../components/Tags';
import P... | JavaScript | 0.000001 | @@ -301,24 +301,27 @@
ents/Tags';%0A
+//
import Pagin
|
69cec67827314e012b3d712dfcd1bfa40916a148 | Version in test label | test/http_binding_0_1.js | test/http_binding_0_1.js | var expect = require("chai").expect;
var Cloudevent = require("../index.js");
var nock = require("nock");
const type = "com.github.pull.create";
const source = "urn:event:from:myapi/resourse/123";
const webhook = "https://cloudevents.io/webhook";
const contentType = "application/cloudev... | JavaScript | 0 | @@ -636,16 +636,30 @@
Binding
+ - Version 0.1
%22, () =%3E
|
64b524e3545df4968989ef886394006c2d6702f4 | Refactor tests some more, reducing duplication | test/isitholiday_test.js | test/isitholiday_test.js | 'use strict';
var isitholiday = require('../lib/isitholiday.js');
exports['initialize'] = {
setUp: function(done) {
function nextDayAsTimestamp(d) {
return new Date(d.getTime() + 86400 * 1000);
}
this.NO_HOLIDAY = new Date('2011-11-11');
this.KNOWN_HOLIDAY = nextDayAsTimestamp(this.NO_HOLIDAY)... | JavaScript | 0 | @@ -70,26 +70,27 @@
xports%5B'
-initialize
+constructor
'%5D = %7B%0A
@@ -876,20 +876,8 @@
%0A '
-constructor
vari
@@ -893,68 +893,114 @@
-'should accept an array of event objects': function(test
+setUp: function(done) %7B%0A this.testInitializationAndLookup = function(test, testSource, testDate
) %7... |
aa9edc2a9c6c6b3f51c1a635684f5edccd0b7bfb | Set HTML DOM property "open" to HAS_BOOLEAN_VALUE | src/browser/ui/dom/HTMLDOMPropertyConfig.js | src/browser/ui/dom/HTMLDOMPropertyConfig.js | /**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... | JavaScript | 0.00055 | @@ -3914,20 +3914,33 @@
open:
-null
+HAS_BOOLEAN_VALUE
,%0A pa
|
7cc0068cf9919b35f1a670fbdfc1bcc9a49fc917 | update 7.3 file | week-7/variables-objects.js | week-7/variables-objects.js | // JavaScript Variables and Objects
// I paired [by myself, with:] on this challenge.
// __________________________________________
// Write your code below.
// __________________________________________
// Test Code: Do not alter code below this line.
function assert(test, message, test_number) {
if (!... | JavaScript | 0 | @@ -57,15 +57,8 @@
self
-, with:
%5D on
@@ -74,16 +74,16 @@
llenge.%0A
+
%0A// ____
@@ -148,16 +148,135 @@
below.%0A%0A
+var secretNumber = 7;%0Avar password = %22just open the door%22;%0Avar allowedIn = false;%0Avar members = %5B%22John%22, 2, 3, %22Mary%22%5D;
%0A%0A%0A%0A%0A%0A%0A/
|
30f22739f23054abb79a71cd3b261df536d4c6d4 | add arrayCmpFilter | src/editor/utils.js | src/editor/utils.js | var _doGetTrimRect = function (pixelBuffer, w, h, trimThreshold) {
// A B C
// D x F
// G H I
var tx = w, ty = h,
tw = 0, th = 0,
ditch = w * 4;
var x, y, i;
var index; // alpha index in pixels
// trim A B C
for (y = 0; y < h; y++) {
index = y * ditch + 3; /... | JavaScript | 0.000005 | @@ -1527,8 +1527,776 @@
th);%0A%7D;%0A
+%0AFire.arrayCmpFilter = function ( items, func ) %7B%0A var results, item, i, j;%0A%0A results = %5B%5D;%0A for ( i = 0; i %3C items.length; ++i ) %7B%0A item = items%5Bi%5D;%0A var add = true;%0A%0A for ( j = 0; j %3C results.length; ++j ) %7B%0A ... |
abd102db3a9e8154d1470e82d7f7ba37c56cfaee | disable pixman freeing until we can fix it properly | compositor/web/src/Region.js | compositor/web/src/Region.js | // Copyright 2019 Erik De Rijcke
//
// This file is part of Greenfield.
//
// Greenfield 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, either version 3 of the License, or
// (at your option) any lat... | JavaScript | 0 | @@ -1828,32 +1828,35 @@
manRegion) %7B%0A
+ //
pixman._pixman_
@@ -3087,32 +3087,35 @@
manRegion) %7B%0A
+ //
pixman._pixman_
@@ -3141,24 +3141,27 @@
nRegion)%0A
+ //
pixman._fre
|
9ef46f9002d1e5511ae9e08a97b239caf81f2325 | Add $localStorage service | conFusion/www/js/services.js | conFusion/www/js/services.js | 'use strict';
angular.module('conFusion.services', ['ngResource'])
.constant("baseURL","http://localhost:3000/")
.factory('menuFactory', ['$resource', 'baseURL', function($resource,baseURL) {
return $resource(baseURL+"dishes/:id",null, {
'update': {
met... | JavaScript | 0.000001 | @@ -1706,10 +1706,683 @@
%7D%5D)%0A%0A
+ .factory('$localStorage', %5B'$window', function($window) %7B%0A return %7B%0A store: function(key, value) %7B%0A $window.localStorage%5Bkey%5D = value;%0A %7D,%0A get: function(key, defaultVal... |
5cad712d2a0d0e9ce32f502c7c29d8e62439e1d7 | Add hook function to load the script properly | YouTube_FairBlock/YouTube_FairBlock.user.js | YouTube_FairBlock/YouTube_FairBlock.user.js | // ==UserScript==
// @name YouTube FairBlock
// @version 2.0.0-dev
// @description Mutes and skips ads on YouTube automatically
// @description:de Schaltet YouTube-Werbung automatisch stumm und überspringt sie
// @autor VVind0wM4ker
// @namespace https://g... | JavaScript | 0 | @@ -878,20 +878,855 @@
s%0A// ==/UserScript==
+%0A%0Aconst DEBUG = true;%0A%0A// ----- Debug functions -----%0Afunction log(msg) %7B%0A if (DEBUG === true)%0A console.log(%22%5BDEBUG%5D %22 + msg);%0A%7D%0A%0Afunction logFunc(funcName, param = %22%22) %7B%0A log(funcName + %22(%22 + param + %22)%22);%0A%7D%0A// -... |
6f78449249a32d7830f79f9f5dc3c8e1740992d2 | revert to guild posting | src/events/ready.js | src/events/ready.js | const fs = require('fs');
module.exports = bot => {
bot.on('ready', () => {
if (bot.loadCommands) {
let meme;
localeManager.loadLocales().then(() => {
logger.info(`Loaded ${Object.keys(localeManager.locales).length} locales.`);
return require(`${__bas... | JavaScript | 0 | @@ -2300,175 +2300,29 @@
-if (bot.config.discordBotsKey) %7B%0A bot.postGuildCount();%0A bot.postShardCount();%0A %7D else %7B%0A return;%0A %7D
+bot.postGuildCount();
%0A
|
14c951bf32a67b77969ec3e07b177622e1c8a40d | add test to check preinstall does not break npx | test/pre-install.spec.js | test/pre-install.spec.js | 'use strict';
/* eslint-disable no-unused-vars */
const should = require('should');
const requireUncached = require('import-fresh');
const packageName = require('./utils/publish-please-version-under-test');
const copy = require('./utils/copy-file-sync');
const mkdirp = require('mkdirp');
describe('Pre-Install Executi... | JavaScript | 0.000001 | @@ -2449,13 +2449,1071 @@
%0A %7D);
+%0A%0A it('Should not return an error message if npm args are not recognized', () =%3E %7B%0A // Given%0A process.env%5B%0A 'npm_config_argv'%0A %5D = %60%7B%22remain%22:%5B%22$%7BpackageName%7D%5D,%22cooked%22:%5B%22install%22,%22--global%22,%... |
22c6062dc6f7e91fd680b3436281f71b34e847e7 | Update expected lifts in unit test. | test/resorts/parkcity.js | test/resorts/parkcity.js | var assert = require('assert');
var fs = require('fs');
var parser = require('../../lib/lifts/parser');
var parse = require('../../lib/resorts/parkcity');
/*global describe, it */
describe('parse parkcity', function() {
it('should return lift status', function(done) {
var stream = fs.createReadStream(__dirname ... | JavaScript | 0 | @@ -488,39 +488,239 @@
-Crescent: 'open',%0A Eagle
+'Bonanza Express': 'open',%0A 'Cabriolet Gondola': 'open',%0A 'Crescent Express': 'open',%0A 'Daybreak': 'open',%0A 'DreamCatcher': 'open',%0A 'Dreamscape': 'open',%0A 'Eagle': 'open',%0A 'Eaglet'
: 'o
@@ ... |
b0426f303a76420fdd3136714b14a8cf10f50fab | Update count cells | snippets/sheets/count_cells/index.js | snippets/sheets/count_cells/index.js | /**
* @file
* @see
* {@link https://support.google.com/docs/thread/37070239}
*/
/**
*
* @param {Array.<Array.<object>>} array
* @param {ReduceCallback} reduceCallback
*
*/
function getCountCells_(array, reduceCallback) {
return array.reduce(reduceCallback, { count: 0, total: 0 });
}
/**
*
* @param {Array... | JavaScript | 0 | @@ -1522,32 +1522,91 @@
untCells.count%7D.
+ With values: $%7BcountCells.total -%0A countCells.count%7D.
Total: $%7BcountC
|
e8f6feb49c2ce74139c042b3883af6dc90666c8e | Fix lint warrning. | test/test.combinators.js | test/test.combinators.js | describe('Combinators', () => {
describe('constant', () => {
jsc.property(
'should always return given value.',
'json',
(v) => {
return v === ke.constant(v).generate();
});
});
describe('elements', () => {
jsc.property(
'picks one of argument array.',
'nearr... | JavaScript | 0 | @@ -1773,16 +1773,17 @@
);%0A%0A %7D)
+;
%0A%0A desc
|
99a4d829354a1eb887a236bd81f9b29435bc3808 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
/* jshint expr: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
console.log();
var fileContentI... | JavaScript | 0 | @@ -3939,39 +3939,56 @@
%7D%0A%0A
-expect(
+var licenseFileExists =
fs.existsSync(__
@@ -4015,33 +4015,8 @@
SE')
-, 'A LICENSE must exist')
;%0A
@@ -4141,23 +4141,25 @@
xOf('##
-License
+Changelog
') === -
@@ -4240,14 +4240,336 @@
##
-Licens
+Changelog');%0A console.log();%0A ... |
51b5ce74a1e7830145fe9bbc9d04b87918c51165 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
/* jshint expr: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
console.log();
var fileContentI... | JavaScript | 0 | @@ -86,19 +86,36 @@
true */%0A
-var
+'use strict';%0A%0Aconst
expect
@@ -144,17 +144,16 @@
ct;%0A
-var fs
+const fs
@@ -225,18 +225,13 @@
n',
-function()
+() =%3E
%7B%0A
@@ -262,23 +262,15 @@
s',
-function (
done
-)
+ =%3E
%7B%0A
@@ -292,35 +292,37 @@
log();%0A%0A
-var
+const
fileCon... |
d7350eee333383cc268ac4d95d88fec179b63838 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
/* jshint expr: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
console.log();
var fileContentI... | JavaScript | 0 | @@ -4107,38 +4107,35 @@
utf8');%0A
-expect
+if
(fileContentRead
@@ -4158,19 +4158,61 @@
icense')
-, '
+ === -1) %7B%0A console.log('Warning:
The READ
@@ -4213,32 +4213,30 @@
e README.md
-needs to
+should
have a sect
@@ -4255,83 +4255,145 @@
se')
-.not.equal(-1);%0A expect(fileConten... |
87b33b1f404a41cd9ff0b5a86b4e0082fc26e33e | add basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */// jshint strict:false
/*jslint node: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
var fileContentIOPackage = fs.readFileSync(__dirname + '/../io-packag... | JavaScript | 0 | @@ -941,16 +941,42 @@
mon.news
+ %7C%7C !ioPackage.common.news
%5BioPacka
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.