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 |
|---|---|---|---|---|---|---|---|
33898e36b3e844d116066eae39b895d6e052a271 | Make use of the stored capabilities | test/integration/console.test.js | test/integration/console.test.js | import {browser} from '../mini-testium-mocha';
import assert from 'assertive';
describe('console', () => {
before(browser.beforeHook);
before(async () => {
await browser.navigateTo('/');
assert.equal(200, await browser.getStatusCode());
});
// Each browser fails to implement the WebDriver spec
// f... | JavaScript | 0.000002 | @@ -439,22 +439,16 @@
Name %7D =
- await
browser
@@ -452,16 +452,9 @@
ser.
-sessionC
+c
apab
@@ -460,18 +460,16 @@
bilities
-()
;%0A le
|
471282674f80c87d989f4aa26e869ff7820c6fba | Fix movies Limit | js/FeedEk.js | js/FeedEk.js | /*FeedEk jQuery RSS/ATOM Feed Plugin v2.0
* http://jquery-plugins.net/FeedEk/FeedEk.html
* https://github.com/enginkizil/FeedEk
* Author : Engin KIZIL http://www.enginkizil.com */
(function($){$.fn.FeedEk=function(opt){var def=$.extend({FeedUrl:"http://rss.cnn.com/rss/edition.rss",MaxCount:5,ShowDesc:true,ShowPubDat... | JavaScript | 0.998323 | @@ -291,9 +291,11 @@
unt:
-5
+300
,Sho
|
a524f484cb09a544f82137658bd590eebab5a65c | Add support for credential-less fetches | logic/service/rest-service.js | logic/service/rest-service.js | var DataService = require("logic/service/data-service").DataService,
DataSelector = require("logic/service/data-selector").DataSelector,
Map = require("collections/map"),
Promise = require("bluebird");
/**
* Provides utility methods for REST services.
*
* @class
* @extends external:DataService
*/
expo... | JavaScript | 0.000001 | @@ -3195,24 +3195,37 @@
unction (url
+, credentials
) %7B%0A
@@ -3632,20 +3632,56 @@
tials =
-true
+credentials %7C%7C credentials === undefined
;%0A
|
32cb934f50d705675e833c3d00065cf5d0803a5e | Remove unreachable path | lib/cli/cli-options.js | lib/cli/cli-options.js | "use strict";
var path = require("path");
var url = require("url");
var _ = require("lodash");
var Immutable = require("immutable");
var isList = Immutable.List.isList;
var defaultConfig = require("../default-config");
var immDefs = Immutable.fromJS(defaultConfig);
var opts = exports;
/**
* @type {{wrapPattern: ... | JavaScript | 0.000001 | @@ -4193,75 +4193,8 @@
%7B%0A%0A
- if (_.isUndefined(value)) %7B%0A return;%0A %7D%0A%0A
|
819d273476e245b48c2f18cf211142e1785f260d | Add 'loading' for first stage in AsyncLoad.story | stories/AsyncLoad.story.js | stories/AsyncLoad.story.js | import React, {Component} from 'react'
import {storiesOf} from '@storybook/react'
import Board from '../src'
const data = require('./data/base.json')
class AsyncBoard extends Component {
state = {boardData: {lanes: []}}
componentDidMount() {
setTimeout(this.getBoard.bind(this), 500)
}
getBoard() {
... | JavaScript | 0.000001 | @@ -214,16 +214,62 @@
lanes: %5B
+%7Bid: 'loading', title: 'loading..', cards: %5B%5D%7D
%5D%7D%7D%0A%0A c
@@ -334,9 +334,10 @@
s),
-5
+10
00)%0A
|
c81b2ac9ad7b346e6042ff33be4e931cbc75606c | Fix bug in comments hiding | base/app/assets/javascripts/social_stream/comment.js | base/app/assets/javascripts/social_stream/comment.js | //= require jquery.autosize
//
//= require social_stream/callback
SocialStream.Comment = (function(SS, $, undefined){
var callback = new SS.Callback();
var elAlwaysHidden = [
"input[type=submit]"
];
var elSometimesShown = [
".avatar",
"textarea"
];
var elAll = elAlwaysHidden.concat(elSometime... | JavaScript | 0 | @@ -2695,16 +2695,26 @@
showDiv.
+find('a').
html(I18
|
d66b2ec042b4603138f212691dab41d1de1411a1 | update test | test/test.js | test/test.js | var RealTimeCat = require('../lib/realtimecat.js');
var apiKey = "7615a724-7e23-43d6-b85a-512a876c21e8";
var apiSecret = "dde16be0-fb55-47f0-8fc6-4e25c1167bab";
var realTimeCat = new RealTimeCat(apiKey, apiSecret);
// Simple createSession Test
realTimeCat.createSession(function (err, sessionId) {
if (err) return ... | JavaScript | 0.000001 | @@ -64,100 +64,90 @@
= %22
-7615a724-7e23-43d6-b85a-512a876c21e8%22;%0Avar apiSecret = %22dde16be0-fb55-47f0-8fc6-4e25c1167bab
+xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx%22;%0Avar apiSecret = %22xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
%22;%0Av
|
bfdfae7b228ff8da88636a3f96f81becc96ae76f | Change namespace of adapter | app/adapters/application.js | app/adapters/application.js | import DS from 'ember-data';
import config from '../config/environment';
export default DS.JSONAPIAdapter.extend({
host: config.HOST,
namespace: 'dina-service/dina/v0',
headers: {
"Accept": "application/json",
"Content-type": "application/json"
},
/**
* Override to disable pl... | JavaScript | 0 | @@ -153,25 +153,19 @@
e: '
-dina-service/dina
+collections
/v0'
|
d850d37f65ef6b4afe558844e36da9a2b298c22b | Add selected test. | test/test.js | test/test.js | const webdriverio = require('webdriverio');
const expect = require('chai').expect;
const selectors = require('./support/selectors');
const options = {
host: 'localhost',
port: 4444,
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
binary: './Black Screen.app/Conten... | JavaScript | 0 | @@ -658,24 +658,237 @@
);%0A %7D);%0A%0A
+ it('selects the promts on start', done =%3E %7B%0A client%0A .isSelected(selectors.prompt)%0A .then((error, isSelected) =%3E expect(isSelected).to.be.true())%0A .call(done);%0A %7D);%0A%0A
it('exec
|
13dc190cc750f94fc076502243d5b18c093e320a | fix bug | javascriptv3/example_code/s3/src/s3_list1000plusobjects.js | javascriptv3/example_code/s3/src/s3_list1000plusobjects.js | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Developer Gui... | JavaScript | 0.000001 | @@ -1405,16 +1405,19 @@
);%0A
+ //
return
@@ -1424,16 +1424,34 @@
response
+; //For unit tests
%0A r
|
9ad132f6e53c59f18b22213a624d84c35a804d2c | Improve output in case test query error | tasks/28.js | tasks/28.js | 'use strict';
//var _ = require('lodash');
var Q = require('q');
var expand = require('glob-expand');
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var $28 = new (require('28').$28)('http://portal.28.io/api');
var Config = require('./config');
var credentials;
var Options = {
OVERWRITE_AL... | JavaScript | 0.002928 | @@ -4009,20 +4009,41 @@
g(error.
-body
+response.request.href.red
);%0A
@@ -5554,36 +5554,32 @@
ed: ' + error);%0A
-
defe
|
e6d3098d5167c19b03e5c2bac4125ef641695d61 | Add comments. | lib/system/init/bundle/client.js | lib/system/init/bundle/client.js | // `client` section processor
//
'use strict';
// stdlib
var fs = require('fs');
var path = require('path');
// 3rd-party
var _ = require('lodash');
var async = require('async');
var ejs = require('ejs');
var fstools = require('fs-tools');
var findRequires = require('find-requi... | JavaScript | 0 | @@ -1978,16 +1978,125 @@
ion));%0A%0A
+ // NOTE: %60browserify%60 is recursive. So it's needed to check for the%0A // destination already exists first.%0A
if (!f
@@ -2562,24 +2562,80 @@
dulePath);%0A%0A
+ // If the module is not bundled anyway, embed it.%0A
if (!h
|
9601014427bf3c0b17463ff2186a548ede36d7ac | Move signature normalization into util | lib/cloudfront-util.js | lib/cloudfront-util.js |
var crypto = require('crypto')
, fs = require('fs')
, util = require('util');
var CannedPolicy = function(url, expireTime) {
this.url = url;
this.expireTime = expireTime;
this.toJson = function() {
var policy = {
"Statement":[{
"Resource": this.url,
"Condition": {
"DateL... | JavaScript | 0.000002 | @@ -1239,72 +1239,36 @@
' +
-signature.replace(/%5C+/g,%22-%22).replace(/=/g,%22_%22).replace(/%5C//g,%22~%22
+normalizeSignature(signature
),%0A
@@ -1376,16 +1376,16 @@
'&'));%0A%0A
-
return
@@ -1398,8 +1398,548 @@
dUrl;%0A%7D%0A
+%0A/**%0A * Normalize all invalid AWS signature characters.%0A *%0A * For more ... |
d72ea21eb8e57b3fca187dd4f3eb79738960f9a6 | fix session check | api/services/PlaySession.js | api/services/PlaySession.js | var cookie = require('cookie');
var crypto = require('crypto');
var qs = require('querystring');
var _ = require('lodash');
var noop = function(x) { return x };
var PlaySession = function(request, opts) {
opts = opts || {};
this.secret = opts.secret || process.env.PLAY_APP_SECRET;
if (request.headers &... | JavaScript | 0 | @@ -432,16 +432,43 @@
ESSION;%0A
+ if (sessionString) %7B%0A
var
@@ -495,24 +495,26 @@
dexOf('-');%0A
+
this.sig
@@ -549,24 +549,26 @@
(0, i);%0A
+
+
this.body =
@@ -595,24 +595,26 @@
i + 1);%0A
+
this.data =
@@ -635,16 +635,22 @@
.body);%0A
+ %7D%0A
%7D%0A%7D;%0A%0A
|
1542471ea8d654d669586731c6fb3d7c0a7d53f3 | Fix search in applyMovement2d | lib/systems/apply-movement-2d.js | lib/systems/apply-movement-2d.js | "use strict";
module.exports = function(ecs, data) {
data.entities.registerSearch("applyMovement2d", ["velocity", "movement2d"]);
ecs.addEach(function(entity, elapsed) { // eslint-disable-line no-unused-vars
var velocity = data.entities.get(entity, "velocity");
var movement2d = data.entities.get(entity, "movemen... | JavaScript | 0.000001 | @@ -733,31 +733,23 @@
%09%09%7D%0A%09%7D,
-%5B%22velocity%22, %22m
+%22applyM
ovement2
@@ -750,15 +750,14 @@
ement2d%22
-%5D
);%0A%7D;%0A
|
9e39437c187ff7df0802f7eb2f50166cb73fb687 | Fix protractor tests | dws/dws-acc-tests/test/e2e/page/home.page.js | dws/dws-acc-tests/test/e2e/page/home.page.js | import expect from "config/chai.config";
import GalleryPage from "page/gallery.page";
export default class HomePage {
constructor() {
browser.get("");
browser.driver.manage().window().maximize();
}
assertTitle() {
expect(browser.getTitle()).to.eventually.equal("Pet Cupid");
... | JavaScript | 0.000014 | @@ -297,18 +297,16 @@
ual(%22Pet
-
Cupid%22);
|
282972ea1d7122a68dacf921a0056f166a58fb37 | Remove extraneous code from original project. | test/test.js | test/test.js | (function() {
function prepareTests() {
function setupTests(performTests) {
var framework = {
// When we started the framework
startTime: undefined,
// Start up the test process, passing in this framework.
start: function start() {
// Record when we started the framework.
framewor... | JavaScript | 0 | @@ -2013,214 +2013,8 @@
();%0D
-%0A%09 function loginHandler() %7B location.href=%22test-login.html%22 %7D%0D%0A%09 $('a%5Bhref*=%22Please%2520log%2520in%22%5D').on(%22click%22, loginHandler);%0D%0A%09 $('a%5Bhref*=%22Please%2520log%2520in%22%5D').attr(%22href%22, %22test-login.html%22);%0D
%0A%0D%0A%09
|
6e4168352d577e25ffee9b19915125ff8b524bb6 | add more options to context menu | lib/ui/components/ContextMenu.js | lib/ui/components/ContextMenu.js | import React from 'react';
import styled from 'styled-components';
import enhanceWithClickOutside from 'react-click-outside';
import API from 'api';
import UIState, { UIStateListener } from 'ui/UIState';
import deleteIcon from 'ui/assets/images/delete@2x.png';
import recordIcon from 'ui/assets/images/rec@2x.png';
impor... | JavaScript | 0 | @@ -2316,32 +2316,179 @@
%3C/MenuItem%3E%0A%0A
+ %3CMenuItem%3E%0A Duplicate%0A %3C/MenuItem%3E%0A%0A %3CSeparator/%3E%0A%0A %3CMenuItem%3E%0A Export to JSON%0A %3C/MenuItem%3E%0A%0A
%3CSeparat
|
d117ad0ee889a8c8c0f04364ebfb6dfc18f553c6 | Update test.js | test/test.js | test/test.js | var http = require('http'),
should = require('should'),
sysInfo = require('../lib/sysinfo.js'),
keyProcessor = require('../lib/keyprocessor.js'),
hock = require('hock');
describe('node-env/sdk/environment', function (done) {
var context = {};
before(function (done) {
done();
}),
it("Can l... | JavaScript | 0.000001 | @@ -453,9 +453,9 @@
ual(
-6
+5
);%0A
|
52b4647027a9ffc0ea4f8cd6f1350896bba699a9 | Fix remove pod issue | app/container/controller.js | app/container/controller.js | import Controller from '@ember/controller';
import {
get, set, observer, computed
} from '@ember/object';
import { once } from '@ember/runloop';
export default Controller.extend({
selectedContainer: null,
displayEnvironmentVars: computed('selectedContainer', function() {
var envs = [];
var environment ... | JavaScript | 0.000085 | @@ -1,12 +1,64 @@
+import %7B inject as service %7D from '@ember/service';%0A
import Contr
@@ -228,16 +228,38 @@
xtend(%7B%0A
+ router: service(),%0A%0A
select
@@ -874,16 +874,73 @@
removed'
+ && get(this, 'router.currentRouteName') === 'container'
) %7B%0A%0A
|
21891a943c865f86a3ce1704ea01d58f136140ff | fix bug #65: #main page throws Error: [:badcfg] | www/js/services/announcements.js | www/js/services/announcements.js | angular.module('app.services').factory('announcements',function ($q, AnnouncementsResource, iStorage) {
var announcements = [],
LAST_VIEWED_ANNOUNCEMENTS_KEY = 'announcements_viewed_date',
start = new Date(Date.now() - 86400000),
lastViewedDate = new Date(Date.now() - 86400000),
numberOfNew = 0... | JavaScript | 0 | @@ -1808,16 +1808,19 @@
+ '/api/
+v2/
announce
|
81b197107f21a79b0d1c97ba6a75d111b0f3d2c0 | Update test.js | test/test.js | test/test.js | var kettstreet = require( '../kettstreet' );
var request = require( 'request' );
var util = require( 'util' );
var moment = require( 'moment' );
var tape = require( 'tape' );
var provider = function ( url, callback ) {
function arraybuffer( buffer ) {
var ab = new ArrayBuffer( buffer.length );
var ar = new U... | JavaScript | 0.000001 | @@ -1059,11 +1059,9 @@
p( %22
-SST
+P
%22, %7B
|
7e9b3ee3dc8e95ba65e785c6c42beba8498bb4eb | Fix typo | lib/ctrls/getHotels.js | lib/ctrls/getHotels.js | 'use strict'
const Promise = require('bluebird')
const _ = require('lodash')
const getLocations = require('./getLocations')
const getHotelsByPath = require('./getHotelsByPath')
const getHotelItem = require('./getHotelItem')
const errors = require('../errors/classes')
const filterHotels = require('./filterHotels')
con... | JavaScript | 0.999999 | @@ -1403,13 +1403,8 @@
ound
-Error
('No
|
8605ecfdcae0c762850bff8def65f8373bf826f6 | define User | app/controllers/articles.js | app/controllers/articles.js |
var mongoose = require('mongoose')
, Imager = require('imager')
, async = require('async')
, Article = mongoose.model('Article')
, _ = require('underscore')
// New article
exports.new = function(req, res){
res.render('articles/new', {
title: 'New Article'
, article: new Article({})
})
}
// Cre... | JavaScript | 0.014445 | @@ -2626,16 +2626,53 @@
t, id)%7B%0A
+ var User = mongoose.model('User')%0A%0A
Articl
|
8c21eb7247caa0ddaaeec18c8082f8aa6fad2887 | Add tests for modifiers | test/test.js | test/test.js | var expect = require('chai').expect,
scheme = require('..');
describe('default', function() {
it('should return path + tech', function() {
expect('a/a.js')
.eql(scheme().path({ block: 'a' }, 'js'));
});
it('should return nested scheme by default', function() {
expect(schem... | JavaScript | 0 | @@ -1381,32 +1381,572 @@
);%0A %7D);%0A%0A
+ it('should return path for a block with boolean modifier', function() %7B%0A expect(%0A scheme('nested').path(%7B%0A block: 'a', modName: 'mn', modVal: true%0A %7D, 'js')%0A ).eql('a/_mn/a_... |
2ac67b4b9f5615f08a21c7aa50e8f9ed000a13c3 | add alias for window | js/config.js | js/config.js | var projectBuildFile = '<proj>/scripts/build.html';
var options = {
jsLintOpts: {
devel: true,
eqeqeq: false,
forin: true,
browser: true,
windows: false,
rhino: false,
onevar: false,
immed: true,
undef: true,
nomen: false,
plusp... | JavaScript | 0.000001 | @@ -785,16 +785,17 @@
es: %5B%5B'$
+.
', 'jQue
@@ -796,16 +796,34 @@
'jQuery
+.'%5D, %5B'', 'window.
'%5D%5D%0A
|
46033994013bfad69409f5d468b8460aa5e3e004 | Fix GitHub Ribbon overlapping Scrollbar. Issue #1 | js/custom.js | js/custom.js | $(function() {
$('.aj-nav').click(function(e) {
e.preventDefault();
$(this).parent().siblings().find('ul').slideUp();
$(this).next().slideToggle();
});
// Bootstrap Table Class
$('table').addClass('table');
// Responsive menu spinner
$('#menu-spinner-button').click(function() {
$('#sub-nav-collapse').sl... | JavaScript | 0.000502 | @@ -530,16 +530,167 @@
);%0A%7D);%0A%0A
+//Fix GitHub Ribbon overlapping Scrollbar%0Aif ($('article')%5B0%5D.scrollHeight %3E $('.right-column').height()) $('#github-ribbon')%5B0%5D.style.right = '16px'%0A%0A
//Toggle
|
f2f733080db7d374a31391445c12ba87938be3d2 | Remove BBDGG Bot Flairs | betterdgg/modules/flair.js | betterdgg/modules/flair.js | (function(bdgg) {
var BOTS = [ 'Logs', 'OPbot', 'Bot', 'HighlightBot' ];
var CONTRIBUTORS = [ 'downthecrop', 'PurpleCow', 'SgtMaximum', 'Sweetie_Belle', 'Polecat', 'Dashh' ];
var MOOBIES = [ 'Humankillerx', 'loldamar', 'Nate', 'Overpowered', 'Mannekino',
'Zanshin314', 'Tassadar', 'Bombj... | JavaScript | 0 | @@ -32,48 +32,8 @@
= %5B
- 'Logs', 'OPbot', 'Bot', 'HighlightBot'
%5D;%0A
|
225ea7f09122925b17303705c88d60da4b185438 | Add data.json for approval | src/main/web/florence/js/functions/_loadPageDataIntoEditor.js | src/main/web/florence/js/functions/_loadPageDataIntoEditor.js | function loadPageDataIntoEditor(path, collectionId) {
var pageData, isPageComplete;
var ajaxRequests = [];
ajaxRequests.push(
getPageData(collectionId, path,
success = function (response) {
pageData = response;
},
error = function (response) {
handleApiError(response);
... | JavaScript | 0.000001 | @@ -488,16 +488,31 @@
se, path
+ + '/data.json'
);%0A
|
52c64df49af201076597e9cad2360f0979ff4265 | fix test.js | test/test.js | test/test.js | var Nightmare = require('nightmare')
var assert = require('assert')
var fs = require('fs')
var path = require('path')
var pkg = require('../package.json')
require.extensions['.html'] = function (module, filename) {
module.exports = fs.readFileSync(filename, 'utf8')
}
var nightmare = Nightmare({
webPreferences ... | JavaScript | 0.000006 | @@ -475,21 +475,16 @@
me,%22test
-/test
.html%22);
|
c87e2b2c2630cd5dc04fa6eac9c12cde299b9d1c | Update Light1_accessory.js | accessories/Light1_accessory.js | accessories/Light1_accessory.js | var mqtt = require('mqtt');
console.log("Connecting to MQTT broker...");
var mqtt = require('mqtt');
var options = {
port: 1883,
host: '192.168.0.56',
clientId: 'Light1'
};
var client = mqtt.connect(options);
console.log("Light1 Connected to MQTT broker");
var Accessory = require('../').Accessory;
var Service = ... | JavaScript | 0 | @@ -145,12 +145,13 @@
168.
-0.56
+1.125
',%0A
@@ -3252,12 +3252,13 @@
%0A %7D%0A %7D);
+%0A
|
8059189e862f440d7a6bc5377e60d66b0b49a632 | disable desynchronized canvas | lib/canvas-layer.js | lib/canvas-layer.js | /** @babel */
"use strict"
/**
* @access private
*/
export default class CanvasLayer {
constructor() {
/**
* The onscreen canvas.
* @type {HTMLCanvasElement}
*/
this.canvas = document.createElement("canvas")
const desynchronized = process.platform !== "linux"
/**
* The onscree... | JavaScript | 0.000001 | @@ -261,36 +261,54 @@
d =
-process.platform !== %22linux%22
+false // TODO Electron 9 has color issues #786
%0A%0A
|
9a9e4786b9a212c0531d8405285e477402292f92 | Fix count discrepancy between import and search | app/assets/javascripts/fda_labels.js | app/assets/javascripts/fda_labels.js | window.FDA = {}
window.FDA.Labels = (function($, Handlebars) {
var labelsExport = {},
apiRoot = "https://api.fda.gov/drug/label.json",
defaultPerPage = 25;
// Private functions
function getTemplate(templateName) {
return Handlebars.compile($(FDA.Templates.labels).html());
}
function populateLabe... | JavaScript | 0.000004 | @@ -695,17 +695,25 @@
nce_name
-:
+.exact:%5C%22
%22 + ingr
@@ -722,18 +722,46 @@
ientName
- +
+.replace(/ /g, %22+%22) +%0A %22%5C
%22)%22 +%0A
|
9f5db5417386a74648c3fbf74583d36345ae064c | support for android kitkat and fixing lint errors | custom/icds_reports/static/js/icds_app_mobile.js | custom/icds_reports/static/js/icds_app_mobile.js |
var url = hqImport('hqwebapp/js/initial_page_data').reverse;
function MainMobileController($scope, $route, $routeParams, $location, $window, $http,
isWebUser, userLocationId, isMobile, haveAccessToFeatures) {
$scope.$route = $route;
$scope.$location = $location;
$scope.$routeParams = $routeParams;
... | JavaScript | 0 | @@ -143,16 +143,42 @@
$http,%0A
+
isWe
@@ -1783,18 +1783,17 @@
%7D
-;
%0A
+
%7D;%0A%0A
@@ -2202,44 +2202,8 @@
gent
- (works only on android 5 and above)
%0A
@@ -2256,16 +2256,113 @@
es('wv')
+ %7C%7C%0A (navigator.userAgent.includes(%22Version/%22) && navigato... |
6f9876c019056c14f56581c7abe1b47f9bf27380 | make code more stable by only saving subscription in webhook | app/controllers/webhooks.js | app/controllers/webhooks.js | /**
* Dependencies.
*/
var async = require('async');
/**
* Controller.
*/
module.exports = function(app) {
/**
* Internal Dependencies.
*/
var errors = app.errors;
var models = app.set('models');
var Card = models.Card;
var User = models.User;
var Transaction = models.Transaction;
var Grou... | JavaScript | 0 | @@ -48,16 +48,43 @@
async');
+%0Avar _ = require('lodash');
%0A%0A/**%0A *
@@ -927,209 +927,353 @@
-cb(err, ev);%0A %7D);%0A %7D,%0A%0A fetchTransaction: %5B'fetchEvent', function(cb, results) %7B%0A var invoice = results.fetchEvent.data.object;%0A var subscription = invoice.lines... |
247b6c8ce9e1098b7804cc0e5378faaadc9b8a2b | Test using colors | test/test.js | test/test.js | var Overlap = require("../index")
, Couleurs = require("couleurs")()
, a =
"+--------------+\n" +
"| |\n" +
"| " + Couleurs.rgb("Hello World", 0, 255, 0) + " |\n" +
"| |\n" +
"| |\n" +
"| |\n" +
"| " + Couleurs.rgb("Hello World", 0... | JavaScript | 0.000001 | @@ -72,24 +72,36 @@
, a =%0A
+Couleurs.bg(
%22+----------
@@ -112,42 +112,97 @@
+%5Cn%22
- +%0A %22%7C %7C%5Cn%22 +%0A
+, 142, 68, 173) +%0A Couleurs.bg(%22%7C %7C%5Cn%22, 142, 100, 200) +%0A Couleurs.bg(
%22%7C
@@ -207,35 +207,34 @@
%22 + Couleurs.
-rgb
+fg
(%22H... |
67599f79f957fa2289684d54b103caf9f49e8e58 | fix propTypes in containers/countries | app/containers/countries.js | app/containers/countries.js | import _ from 'lodash';
import {ComboboxField} from '../components/fields';
import {countriesActions} from '../actions/countries';
import {countriesSelector} from '../selectors/countries';
import {authable} from '../components/authmanager';
import { connect } from 'react-redux';
import {PropTypes} from 'react';
export... | JavaScript | 0.000003 | @@ -689,17 +689,17 @@
Country.
-P
+p
ropTypes
@@ -755,16 +755,34 @@
ntries:
+PropTypes.arrayOf(
PropType
@@ -789,16 +789,17 @@
s.object
+)
.isRequi
|
1435a920d62d70a1551b5cc893535f6ad9a5d82e | add parameter into the db.find of the controller article to prevent the leak of hashed password and salt | app/controllers/articles.js | app/controllers/articles.js | 'use strict';
/**
* Module dependencies.
*/
var StandardError = require('standard-error');
var db = require('../../config/sequelize');
/**
* Find article by id
* Note: This is called every time that the parameter :articleId is used in a URL.
* Its purpose is to preload the article on the req object then call th... | JavaScript | 0 | @@ -437,17 +437,16 @@
e.find(%7B
-
where: %7B
@@ -456,39 +456,86 @@
id%7D, include: %5B
-db.User
+%7Bmodel:db.User, attributes:%5B'id', 'username', 'name'%5D%7D
%5D%7D).then(functio
@@ -2613,23 +2613,71 @@
clude: %5B
-db.User
+%7Bmodel:db.User, attributes: %5B'id', 'username', 'name'%5D%7D
%5D%7D).then
|
80fa3977611faeb86dc4963448f979179efb0811 | fix we run command description | lib/commands/run.js | lib/commands/run.js | module.exports = function runCommand(program) {
/**
* Run one we.js project
*/
var helpers = require('../helpers');
program
.command('run')
.command('go')
.option('-d, --dev', 'Run project in development enviroment mode *default')
.option('-p, --prod', 'Run project in production enviroment mode')
... | JavaScript | 0.000035 | @@ -153,25 +153,8 @@
n')%0A
- .command('go')%0A
.o
|
a9d5884c0369967aaf84d0935651ec969c91cb95 | Clean up bridges after each test | test/test.js | test/test.js |
window.mockDomain = 'mock://www.merchant-site.com';
import './tests';
paypal.setup({
env: 'test'
});
const MAX_OVERALL_MEMORY = 400;
const MAX_TEST_MEMORY = 50;
let memoryReported = (window.performance && window.performance.memory &&
window.performance.memory.usedJSHeapSize);
function g... | JavaScript | 0.000002 | @@ -1401,27 +1401,24 @@
%7D%0A %7D%0A
-%0A
-return
+%0A
window.
@@ -1428,120 +1428,8 @@
pal.
-destroyAll().then(() =%3E %7B%0A // return new Promise(resolve =%3E setTimeout(resolve, 2000))%0A // return
post
@@ -1459,20 +1459,52 @@
dges();%0A
+%0A
-%7D
+return window.paypal.destroy... |
f9b8237d1041953dc18dc537db31362632e278d3 | Fix the server exiting too soon. | lib/commands/run.js | lib/commands/run.js | var common = require('../common');
var when = require('when');
function run(argv, options, loader) {
argv = [
options.device ? 'run' : 'emulate'
];
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.confi... | JavaScript | 0 | @@ -474,23 +474,104 @@
-npm.child.kill(
+console.log('');%0A console.log('Both client and server are now running. Press Ctrl-C to exit.'
);%0A%0A
|
2bb0d5ba830a18a9748329ad584ca64cfbe13c55 | Use Object.assign if no Ember.assign. And Ember.merge if no Object.assign | addon/utils/validators/index.js | addon/utils/validators/index.js | import Ember from 'ember'
const {assign} = Ember
import any from './any'
import array from './array'
import arrayOf from './array-of'
import bool from './bool'
import element from './element'
import emberObject from './ember-object'
import func from './func'
import instanceOf from './instance-of'
import nullFn from '.... | JavaScript | 0.000069 | @@ -23,30 +23,29 @@
er'%0A
+%0A
const
-%7B
assign
-%7D
= Ember
%0A%0Aim
@@ -40,17 +40,55 @@
= Ember
-%0A
+.assign %7C%7C Object.assign %7C%7C Ember.merge
%0Aimport
|
44f5d206399c635907412af505d8f9c69c0fe109 | Update tests. | test/test.js | test/test.js | if (typeof window === 'undefined') {
var decouple = require('../'),
assert = require('better-assert');
}
decouple(window, 'scroll', function(eve) {
document.body.setAttribute('data-scroll', window.pageYOffset);
});
describe('decouple', function () {
it('should be defined.', function () {
assert(decou... | JavaScript | 0 | @@ -1,118 +1,4 @@
-if (typeof window === 'undefined') %7B%0A var decouple = require('../'),%0A assert = require('better-assert');%0A%7D%0A%0A
deco
|
fc626a672410d8990eefb748f59d3a5ab5027c2d | Simplify loop | lib/config/index.js | lib/config/index.js |
'use strict'
const fs = require('fs')
const path = require('path')
const {merge} = require('lodash')
const deepFreeze = require('deep-freeze')
const {Environment, Permission} = require('./enum')
const appRootPath = path.join(__dirname, '../../')
const env = process.env.NODE_ENV || Environment.development
const debug... | JavaScript | 0.000035 | @@ -2987,19 +2987,24 @@
slcapath
- =
+.forEach
(functio
@@ -3010,199 +3010,78 @@
on (
-) %7B%0A var i, len, results%0A results = %5B%5D%0A for (i = 0, len = config.sslcapath.length; i %3C len; i++) %7B%0A results.push(path.resolve(appRootPath, config.sslcapath%5Bi%5D))%0A %7D%0A return results%0A%7D)(
+capa... |
e3aaf12fb846f324ddb0e600f39399b36d368f3a | Make dismiss button functional | app/js/home/browsercheck.js | app/js/home/browsercheck.js | Object.defineProperty(window, 'isChromium', {
get() { return !!window.chrome; },
enumerable: true,
configurable: true,
});
Object.defineProperty(window, 'isSafari', {
get() { return navigator.userAgent.includes('Safari'); },
enumerable: true,
configurable: true,
});
Object.defineProperty(window, 'isFirefo... | JavaScript | 0.000009 | @@ -538,34 +538,21 @@
-// Show gentle popup%0A
+const popup =
doc
@@ -606,32 +606,217 @@
ed')
-.classList.add('visible'
+;%0A // Show gentle popup%0A popup.classList.add('visible');%0A // Enable dismiss button%0A popup.getElementsByTagName('button')%5B0%5D.addEventListener('click', () ... |
a0792f5711d162d23c242c83f2e9fc91ee6c8528 | Add getAbsolutePageUrl to builder | lib/core/builder.js | lib/core/builder.js | 'use strict'
const fs = require('fs')
const path = require('path')
const chalk = require('chalk')
const packageVersion = require('../../package.json').version
const console = require('../helpers/color-console')
const sfs = require('../helpers/sfs')
const zip = require('../helpers/zip')
const {createTemplate} = requ... | JavaScript | 0 | @@ -3128,24 +3128,425 @@
ldFolder%0A%7D%0A%0A
+// Get an absolute page url from its location in the build process.%0Afunction getAbsolutePageUrl (dataFilePath, pageType) %7B%0A const buildFolder = createAndGetBuildFolder()%0A const pageFolder = getPageFolder(buildFolder, dataFilePath, pageType)%0A%0A const htmlFile... |
c8e2df22cd10eca3d2355ff0f2c495aa1a95ed75 | add '<dateCreated>' element to '<digitalObject>' in any case, as the sip-generator-tib demands this as only mandatory element in the buildm XML instance | bindings/jsonld2xml/app.js | bindings/jsonld2xml/app.js | /**
* sip-generator.js
*
* @description :: TODO: You might write a short summary of how this service works.
*/
var _ = require('underscore');
var Jsonld2xml = module.exports = function() {}
Jsonld2xml.prototype.toXML = function(jsonLd) {
// console.log('[Jsonld2xml::toXML] : ' + JSON.stringify(jsonLd, null, 4)... | JavaScript | 0.000001 | @@ -320,18 +320,32 @@
));%0A
-debugger
+ var hasDate = false
;%0A
+%0A
va
@@ -637,45 +637,8 @@
) %7B%0A
- console.log('PHYSICALASSET:');%0A
@@ -838,44 +838,8 @@
) %7B%0A
- console.log('DIGITALOBJECT');%0A
@@ -1116,24 +1116,161 @@
'@type') %7B%0A
+ hasDate = key === 'dateCreated' ?... |
63c745657a02d2ad336946394f339fcb41f23bc1 | create server side change table interface | lib/core/handler.js | lib/core/handler.js |
var url = require('url');
var fs = require('fs');
var path = require('path');
var connect = require('connect');
var common = require('../common.js');
var utils = common.utils;
exports.setup = function (piccolo) {
var handle = connect();
handle.use( connect.compress() );
handle.use( connect['static'](piccolo.d... | JavaScript | 0 | @@ -3058,16 +3058,17 @@
ar route
+r
= requi
@@ -3121,17 +3121,419 @@
req, res
-) %7B
+, next) %7B%0A // Parse query string%0A var query = url.parse(req.url);%0A%0A // Parse query using route%0A var resource = router.parse(query);%0A%0A // TODO: this need to be async%0A var Table = require(resource... |
601166e40e1a44889811575fff971f3a83eb0314 | Update level2.js | js/level2.js | js/level2.js | //Level2
/*
Now, when we start level2, it is time to interact with html file. HTML files is a structure
of our web-page - a skeleton. It combines all files from the project together, that is how
it know what to do. If you check on our index.html file on the bottom you will see tag
<script src="js/level1js"></s... | JavaScript | 0.000001 | @@ -5740,17 +5740,17 @@
ed Part
-1
+2
of Java
|
74fb734120ecd2d06415322b2ce0cc33b2a675fc | Validate regexp flags for match function | lib/functions/match.js | lib/functions/match.js | var utils = require('../utils')
, nodes = require('../nodes');
/**
* retrieves the matches when matching a `val`(string)
* against a `pattern`(regular expression).
*
* Examples:
* $regex = '^(height|width)?([<>=]{1,})(.*)'
*
* match($regex,'height>=sm')
* // => ('height>=sm' 'height' '>=' 'sm')
* //... | JavaScript | 0.000004 | @@ -59,16 +59,42 @@
des');%0A%0A
+var VALID_FLAGS = 'igm';%0A%0A
/**%0A * r
@@ -690,65 +690,153 @@
');%0A
-%0A if (flags) %7B%0A utils.assertString(val, 'string');%0A
+ var re = new RegExp(pattern.val, validateFlags(flags) ? flags.string : '');%0A return val.string.match(re);%0A%7D;%0A%0Afunction validateFla... |
b642316e3eb2952e3bc1cdb0eff32c3fa638268e | Add tests for nested conditions | test/test.js | test/test.js | var ying = require('../lib/main');
var assert = require('assert');
var util = require('util');
var specIndex = 1;
var specGroupIndex = 1;
function run_spec(func, pas, result) {
it(util.format('spec(%d) group(%d)', specIndex, specGroupIndex), function () {
assert.equal(func(pas), result);
specIndex... | JavaScript | 0 | @@ -3149,16 +3149,232 @@
e>'%5D%0A
+ %7D,%0A %7B%0A src: %60%7B%7B~ if(d.root)%7B %7D%7D1%7B%7B~ if(d.nested)%7B %7D%7D2%7B%7B~ %7D %7D%7D%7B%7B~ %7D %7D%7D%60,%0A pas: %5B%7Broot: true%7D, %7Broot: true, nested: true%7D, %7B%7D, %7Bnested: true%7D%5D,%0A exp: %5B'1', ... |
93daa3856d0165fda70c2102533e8a0aba8c3200 | update to RPS | app/js/rockpaperscissors.js | app/js/rockpaperscissors.js | ////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.");
return prompt();
}
function randomPlay() {
var randomNumber ... | JavaScript | 0 | @@ -1,159 +1,4 @@
-////////////////////////////////////////////////%0A/* Provided Code - Please Don't Edit */%0A////////////////////////////////////////////////%0A'use strict';
%0A%0Afu
@@ -343,746 +343,106 @@
%7D%0A%7D%0A
-////////////////////////////////////////////////%0A/* Write Your Code Below ... |
c13151a1f0c2ec5e62433b2c9b700824618e19e0 | Add more newlines. | test/test.js | test/test.js | var i = 0
function assert(expect) {
var assert = require('assert')
var args = Array.prototype.slice.call(arguments, 1)
var msg = 'assert(format(' + args.map(JSON.stringify).join(', ')
+ ')) === ' + JSON.stringify(expect)
var formatFunction = require('../lib/python-format')
var result
res... | JavaScript | 0 | @@ -644,16 +644,17 @@
msg))%0A%7D%0A
+%0A
assert('
@@ -798,16 +798,17 @@
'a%7B%7Bb')%0A
+%0A
// Examp
@@ -1007,16 +1007,17 @@
'Fred')%0A
+%0A
// Real
|
e46d6b9c19c8b25856ee93ec436f3546c7a7f938 | Update createStore for new function names | lib/create-store.js | lib/create-store.js | const { StateSnapshot } = require('./state-snapshot');
class Store {
constructor(backingStore) {
this._backingStore = backingStore;
}
registerReducer(reducer) {
if (this.reducer) {
throw new Error(
'Attempted to register reducer to store that already has one'
);
}
this.reduc... | JavaScript | 0 | @@ -655,16 +655,21 @@
e.select
+Items
(selecto
@@ -838,24 +838,31 @@
tore.discard
+Changes
(%7B meta, ite
@@ -933,24 +933,31 @@
Store.commit
+Changes
(%7B meta, ite
|
5e1b97870671b7d2c0e8c776e917372b5c5a28c8 | comment tweak | src/routes/student/routes/course-table/components/semester.js | src/routes/student/routes/course-table/components/semester.js | import React, {PropTypes} from 'react'
import cx from 'classnames'
import {Link} from 'react-router'
import plur from 'plur'
import semesterName from '../../../../../helpers/semester-name'
import countCredits from '../../../../../area-tools/count-credits'
import Button from '../../../../../components/button'
import Ic... | JavaScript | 0 | @@ -725,16 +725,17 @@
le%0A%0A%09//
+%60
recommen
@@ -744,16 +744,17 @@
dCredits
+%60
is 4 fo
|
935c7550e348bb94bac2b5073d17304f9d90ab7b | Fix code that caused changes to break in MS Edge | polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.js | polygerrit-ui/app/elements/change/gr-label-score-row/gr-label-score-row.js | // Copyright (C) 2017 The Android Open Source Project
//
// 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 ... | JavaScript | 0.001294 | @@ -1872,16 +1872,37 @@
abel%5D %7C%7C
+ !this.labelValues %7C%7C
%0A
|
d75fc02b3df12ec7ea960c6688551fd2fc8b5ac2 | include info about which slide the assertion applies to | test/test.js | test/test.js |
Reveal.addEventListener( 'ready', function() {
QUnit.module( 'API' );
test( 'Reveal.isReady', function() {
ok( Reveal.isReady() === true, 'returns true' );
});
test( 'Reveal.isOverview', function() {
ok( Reveal.isOverview() === false, 'returns false' );
Reveal.toggleOverview();
ok( Reveal.isOverview()... | JavaScript | 0 | @@ -864,24 +864,48 @@
returns true
+ after Reveal.slide( 0 )
' );%0A%0A%09%09Reve
@@ -975,34 +975,41 @@
false after
-navigation
+Reveal.slide( 1 )
' );%0A%0A%09%09Reve
@@ -1077,34 +1077,41 @@
true after
-navigation
+Reveal.slide( 0 )
' );%0A%09%7D);%0A%0A%09
@@ -1224,37 +1224,68 @@
ns false
-' );%0A%0A%09%09R... |
c237f963d36ec932b4731e33749948593f5d13f4 | Remove deprecated Ember.K | addon/components/smart-banner.js | addon/components/smart-banner.js | /* global window, navigator */
import Ember from 'ember';
import layout from '../templates/components/smart-banner';
import getOwner from 'ember-getowner-polyfill';
import bannerStorage from '../utils/banner-storage';
const {
computed,
} = Ember;
const {
getDayClosed,
getDayVisited,
setDayClosed,
setDayVis... | JavaScript | 0.000002 | @@ -3506,23 +3506,29 @@
visit',
-Ember.K
+function() %7B%7D
);%0A
@@ -3734,15 +3734,21 @@
e',
-Ember.K
+function() %7B%7D
);%0A
|
53a2e0887269d4336da3d77a6056f2b9f4942723 | FIX forgotten console.log | app/reducers/webentities.js | app/reducers/webentities.js | // This reducer should handle web entities status transitions, not implemented yet
import createReducer from '../utils/create-reducer'
import {
DECLARE_PAGE_SUCCESS,
SET_WEBENTITY_HOMEPAGE_REQUEST,
SET_WEBENTITY_HOMEPAGE_SUCCESS,
SET_WEBENTITY_HOMEPAGE_FAILURE,
SET_WEBENTITY_NAME_REQUEST,
SET_WEBENTITY_NAM... | JavaScript | 0.000001 | @@ -1893,69 +1893,8 @@
%3E %7B%0A
- console.log('UPDATE', %7B request, webentity, payload %7D)%0A
@@ -1896,32 +1896,32 @@
%0A return %7B%0A
+
%5Bfield%5D:
@@ -2113,93 +2113,14 @@
ty((
-webentity, payload) =%3E %7B%0A console.log('UPDATE', %7B success, webentity, payload %7D)
+) =%3E %7B... |
5aafceee781e66f014327204229a49867ad46013 | implement running code from the editor | app/js/components/PythonContainer.js | app/js/components/PythonContainer.js | var pythonRepl = window.require('pypyjs');
var React = require('react');
require('../../css/terminal.css');
// Note this are initiated from the global
// window in index.html
var jqconsole;
var PythonContainer = React.createClass({
componentWillReceiveProps: function(nextProps) {
// Retrieve code in editor
... | JavaScript | 0.000003 | @@ -319,22 +319,21 @@
%0A if(
-this.p
+nextP
rops.edi
@@ -1496,24 +1496,375 @@
%7D);%0A %7D,%0A%0A
+ testCrap: function() %7B%0A var self = this;%0A var vm = new pythonRepl()%0A%0A vm.stdout = this.resultOutput;%0A vm.stderr = this.errorCallback;%0A%0A vm.ready().then(function() %7B%0A ret... |
00e982136e0ffe333970fd0b469ba82e2c3bdded | Add a new variable "process.env.ENDPOINT" | libs/coap-to-websocket-broker.js | libs/coap-to-websocket-broker.js | /**
*
* The MIT License (MIT)
*
* Devify Platform
*
* Copyright (c) 2016-present, Mokoid Capital Limited. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wit... | JavaScript | 0.000005 | @@ -3074,16 +3074,69 @@
lhost';%0A
+ var endpoint = process.env.ENDPOINT %7C%7C 'wot.city';%0A
var op
@@ -3555,16 +3555,40 @@
st: host
+,%0A endpoint: endpoint
%0A %7D);%0A
|
1209a82290455841fbc2ab35ba98c90e5a01cade | Remove unnecessary relative path in root-bindings.js. | app/shared/root-bindings.js | app/shared/root-bindings.js | define([
'app/shared/config', 'locale/resources', 'locale/strings', 'util/google-analytics', 'jquery', 'sugar', 'materialize',
'css!../../node_modules/materialize-css/dist/css/materialize.css', 'css!./shared.css'
/* TODO: add other common dependencies and root bindings most pages need (this module is implicitly r... | JavaScript | 0 | @@ -133,14 +133,8 @@
css!
-../../
node
|
087f0a8d131b97f94c4fbe64deb06010c09ccb45 | Update script.js | js/script.js | js/script.js | JavaScript | 0.000002 | @@ -1 +1,405 @@
+$(document).ready(function() %7B%0A%09$.ajax(%7B%0A%09%09url : %22https://api.blockcypher.com/v1/btc/main%22,%0A%09%09dataType : %22json%22,%0A%09%09contentType : %22application/json; charset=utf-8%22,%0A%09%09type : %22GET%22,%0A%09%09timeout:%09%225000%22,%0A%09%09async : false,%0A%0A%09%09success : ... | |
7992fe63fd08646d1e8979388f87992d8a585fbf | Update script.js | js/script.js | js/script.js | // miner ver01
//Thanks to Giulia Alfonsi <electric.g@gmail.com>
//for providing the stopwatch timer JS (stopwatch.js)
// James & Matt of WDI Purple-Rain for some troubleshooting!
$(document).ready(function(){
// define some items on the DOM using Jquery
var $button = $('.start-pass');
var $button2 = $('.guess').hi... | JavaScript | 0.000002 | @@ -2240,28 +2240,8 @@
e();
-%0A $input = ' ';
%0A%0A
@@ -2488,26 +2488,8 @@
();%0A
- $input = ' ';%0A
/
|
8d448d6cb3376f1615c6142c7a0316cd3fe94726 | Use hash history in routing | app/store/configureStore.js | app/store/configureStore.js | import createHistory from 'history/lib/createBrowserHistory';
import { compose, createStore, applyMiddleware } from 'redux';
import { apiMiddleware } from 'redux-api-middleware';
import loggerMiddleware from 'redux-logger';
import { reduxReactRouter } from 'redux-react-router';
import routes from 'app/routes';
import ... | JavaScript | 0 | @@ -42,15 +42,12 @@
eate
-Browser
+Hash
Hist
|
f97fb229868daa20360b13b03c9b0cd38670c139 | Update editor plugin handling | extensions/system/assets/js/editor/editor.js | extensions/system/assets/js/editor/editor.js | define('editor', ['jquery', 'uikit!htmleditor', 'marked', 'codemirror'], function($, uikit, marked, codemirror) {
return {
attach: function(element, options) {
return uikit.htmleditor(element, $.extend({}, { marked: marked, CodeMirror: codemirror }, options));
}
};
});
require(['j... | JavaScript | 0.000001 | @@ -737,181 +737,8 @@
%7B%0A%0A
- var plugins = Object.keys(uikit.components.htmleditor.plugins).filter(function(plugin) %7B%0A return (plugin != 'base' && plugin != 'markdown');%0A %7D);%0A%0A
@@ -837,24 +837,52 @@
-plugins.forEach(
+$.each(uikit.components.htmleditor.plugins,
... |
9e044043843401bf04ee1471bf5136b24cb5c514 | fix add function | js/script.js | js/script.js | // Declare global variables
var mainTimer = document.getElementById("startTimer");
var timerState = document.getElementById("displayTimer");
var breakState = document.getElementById("displayBreak");
var count = parseInt(document.getElementById("displayTimer").innerHTML);
var breakCount = parseInt(document.getElementByI... | JavaScript | 0.000027 | @@ -2088,32 +2088,46 @@
nction(event) %7B%0A
+ count += 1;%0A
if (count %3C 10
@@ -2130,32 +2130,16 @@
%3C 10) %7B%0A
- count += 1;%0A
time
@@ -2230,24 +2230,8 @@
) %7B%0A
- count += 1;%0A
|
040d35145e293821ff7b1ab8036d5bee24c74f59 | Update rockpaperscissors.js | app/js/rockpaperscissors.js | app/js/rockpaperscissors.js | ////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
var randomNumber =... | JavaScript | 0 | @@ -2392,24 +2392,369 @@
ODE HERE */%0A
+ if (i = 0; i %3C 5; i++) %7B%0A getPlayerMove();%0A getComputerMove();%0A getWinner();%0A if (winner = 'player') %7B%0A playerWins = i++%0A %7D else if (winner = 'computer') %7B%0A computerWins = i++%0A %7D%0A ... |
d8f6d7dbe1e39d1d36e9eb40f917d351227e5cf2 | Fix CSS lint property | app/templates/_Gruntfile.js | app/templates/_Gruntfile.js | /*
* <%= props.name %>
* <%= props.homepage %>
*
* Copyright (c) <%= props.currentYear %> <%= props.authorName %>
* Licensed under the <%= props.license %> license.
*/
'use strict';
module.exports = function (grunt) {
var lintel = {
test: 'test',
dist: 'dist'
};
// Load all npm grunt tasks
req... | JavaScript | 0.000002 | @@ -1237,25 +1237,30 @@
%3E/%3C%25= props.
-n
+shortN
ame %25%3E.css'%5D
|
1732ccfd2084217fd0c3b6c18753cc7bef798ad6 | add missing requirement to map.js | lib/frame/goaway.js | lib/frame/goaway.js | var util = require('util');
var h2frame = require('../frame');
var Http2Frame = h2frame.Http2Frame;
var TYPE_CODE = 0x07;
/******************
* GOAWAY FRAME
******************/
var Http2GoawayFrame = module.exports = function (buf) {
if (!(this instanceof Http2GoawayFrame)) {
return new Http2GoawayFrame... | JavaScript | 0.000001 | @@ -17,24 +17,55 @@
re('util');%0A
+var h2map = require('../map');%0A
var h2frame
|
239cce8a4c332de94e2559e38b0e9c932f9bed00 | Initialize domains on first use. | app/renderer/js/utils/domain-util.js | app/renderer/js/utils/domain-util.js | 'use strict';
const {app} = require('electron').remote;
const JsonDB = require('node-json-db');
const request = require('request');
class DomainUtil {
constructor() {
this.db = new JsonDB(app.getPath('userData') + '/domain.json', true, true);
}
getDomains() {
return this.db.getData('/doma... | JavaScript | 0 | @@ -242,32 +242,118 @@
', true, true);%0A
+ if (!this.getDomains()) %7B%0A this.db.push(%22/domains%22, %5B%5D);%0A %7D%0A
%7D%0A%0A getDo
|
7c57a80f691d51d516a561f111247288473b86e0 | Fix filename param; Fix values export from api data. [ci skip] #108 | app/scripts/actions/ExportActions.js | app/scripts/actions/ExportActions.js | import superagent from 'superagent'
import download from 'downloadjs'
import XLSX from 'xlsx'
export const EXPORT_DATACLIP_REQUEST = 'EXPORT_DATACLIP_REQUEST'
export const EXPORT_DATACLIP_SUCCESS = 'EXPORT_DATACLIP_SUCCESS'
export const EXPORT_DATACLIP_FAILURE = 'EXPORT_DATACLIP_FAILURE'
export const EXPORT_DATACLIP_F... | JavaScript | 0 | @@ -452,17 +452,16 @@
ch =%3E %7B%0A
-%0A
disp
@@ -739,16 +739,26 @@
es.body)
+, filename
)%0A
@@ -879,16 +879,26 @@
okBase64
+, filename
) =%3E %7B%0A
@@ -964,42 +964,27 @@
)%0A
-download(workbookBuffer, filename,
+const contentType =
'ap
@@ -1047,19 +1047,90 @@
l.sheet'
-)
%0A
+ download(work... |
2cf6d6b27adf1eb9e9d0eb6da5453b24bd7b96f5 | simplify test utils | test/util.js | test/util.js | const os = require('os');
const path = require('path');
const fs = require('fs-extra');
const webpack = require('webpack');
const merge = require('webpack-merge');
const dircompare = require('dir-compare');
const { tap } = require('../src/compat');
const fixtures = path.resolve(__dirname, 'fixtures');
module.exports.e... | JavaScript | 0.001244 | @@ -745,16 +745,17 @@
gins: %5B%5D
+,
%0A %7D,%0A
@@ -1124,244 +1124,8 @@
) =%3E
- %7B%0A tap(compiler, 'emit', 'Test', (%7B assets %7D, callback) =%3E %7B%0A Object.keys(assets)%0A .filter(asset =%3E asset.match(/.js$/))%0A .forEach(asset =%3E %7B%0A delete assets%5Basset%5D;%0A %7D);%0... |
4af40a7a23c08fab00a9ead7bafd4abf0950e361 | Add a new comply 'navbar:show' to appNavbar. | app/scripts/apps/navbar/appNavbar.js | app/scripts/apps/navbar/appNavbar.js | /* global define */
define([
'underscore',
'jquery',
'marionette',
'app',
'apps/navbar/show/controller'
], function (_, $, Marionette, App, Show) {
'use strict';
/**
* Module which shows navbar
*/
var AppNavbar = App.module('AppNavbar', { startWithParent: false }),
con... | JavaScript | 0 | @@ -128,17 +128,16 @@
function
-
(_, $, M
@@ -273,17 +273,16 @@
vbar', %7B
-
startWit
@@ -295,17 +295,16 @@
t: false
-
%7D),%0A
@@ -321,53 +321,53 @@
ller
- = new Show();%0A%0A function showNavbar (args
+;%0A%0A AppNavbar.on('before:start', function(
) %7B%0A
@@ -388,73 +388,95 @@
ller
-.show(args... |
23f26f6bca5e570da49733beff4800f40a1fd985 | Update script.js | js/script.js | js/script.js | (function(window, document, undefined) {
window.onload = init;
function init() {
//get the canvas
var canvas = document.getElementById("mapcanvas");
var c = canvas.getContext("2d");
var width = 720;
var height = ;
var blockSize = 16;
document.getElem... | JavaScript | 0.000002 | @@ -232,10 +232,11 @@
h =
-72
+128
0;%0A
@@ -255,16 +255,19 @@
eight =
+720
;%0A
|
88b8b13dbf31a8ccf0fd4baacbcd96c0f1b6496b | Stop importing submodule of prosemirror-state | test/view.js | test/view.js | const {selFor} = require("prosemirror-state/test/state")
const {EditorView} = require("../dist")
const {EditorState} = require("prosemirror-state")
const {schema} = require("prosemirror-test-builder")
let tempView = null
function tempEditor(inProps) {
let space = document.querySelector("#workspace")
if (tempView)... | JavaScript | 0 | @@ -1,61 +1,4 @@
-const %7BselFor%7D = require(%22prosemirror-state/test/state%22)%0A
cons
@@ -51,16 +51,57 @@
torState
+, Selection, TextSelection, NodeSelection
%7D = requ
@@ -179,16 +179,301 @@
lder%22)%0A%0A
+function selFor(doc) %7B%0A let a = doc.tag.a%0A if (a != null) %7B%0A let $a = doc.resolve(a)%0A ... |
ada056b5c33019b608ba189ae398dbb806b49477 | Return draggables script | js/script.js | js/script.js | $(function() {
console.log( "ready!" );
});
$(function() {
var $wheel_activated = false;
$( ".cards .card" ).draggable({
stack: ".cards .stackable",
snap: ".hr-invisible",
scroll: false,
start: function() {
if (!$wheel_activated){
$( "#box2" ).t... | JavaScript | 0.000001 | @@ -46,28 +46,406 @@
%0A%7D);%0A%0A$(
-function() %7B
+ document ).ready(function() %7B%0A%0A $('.draggable').each(function(i, obj) %7B%0A //console.log(obj);%0A $(obj).data(%22Left%22, $(obj).position().left)%0A .data(%22Top%22, $(obj).position().top)%0A .data(%22Z-index%22, $(o... |
7d8d60c169194cda39cfaf163ca5890cd8240f6d | fix issue that graph wasn't being removed on route change | app/scripts/directives/networkvis.js | app/scripts/directives/networkvis.js | angular.module('globiProtoApp')
.directive('networkVis', function() {
return {
restrict: 'E',
scope: {
val: '='
},
link: function(scope) {
scope.$watch('val', function(newVal) {
if (!newVal) {return; }
var width = 960;
var height = 500;
... | JavaScript | 0 | @@ -66,18 +66,16 @@
on() %7B%0A%0A
-%0A%0A
retu
@@ -171,68 +171,30 @@
cope
-) %7B%0A%0A scope.$watch('val', function(newVal
+, element
) %7B%0A
+%0A
if
@@ -193,36 +193,21 @@
- if (!newVal) %7Breturn; %7D%0A
+// Constants%0A
@@ -227,18 +227,16 @@
= 960;%0A
-
@@ -2... |
5667cbdac1176e4a793146ee5f2bcd640d4408fe | use a div for each message with a typed class | js/script.js | js/script.js | /**
* ownCloud - ocsms
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Loic Blot <loic.blot@unix-experience.fr>
* @copyright Loic Blot 2014
*/
function fetchConversation(phoneNumber) {
$.getJSON(OC.generateUrl('/apps/ocsms/get/conversat... | JavaScript | 0.000002 | @@ -390,114 +390,402 @@
%0A%09%09%09
-var conversationBuf = %22%22;%0A%0A%09%09%09$.each(jsondata%5B%22conversation%22%5D, function(id, vals) %7B%0A%09%09%09%09conversationBuf +=
+// Improve jQuery performance%0A%09%09%09var conversationBuf = %22%22;%0A%09%09%09// Improve JS performance%0A%09%09%09var msgClass = '';%0... |
c765673d87e48d9733dccf78f9e6ade8f7fc273d | Add missing semicolon | app/scripts/filters/date.js | app/scripts/filters/date.js | 'use strict';
angular.module('ludwig')
.filter('formatDate', function() {
return function(dateString) {
return moment(dateString).format('DD MMMM YYYY');
}
});
| JavaScript | 0.999999 | @@ -178,16 +178,17 @@
%7D
+;
%0A %7D);
|
151bffaad49d554e1b44ada602b97eea3e12fdfe | return to avoid further errors | app/services/stream_copy.js | app/services/stream_copy.js | const PSQL = require('cartodb-psql');
const copyTo = require('pg-copy-streams').to;
const copyFrom = require('pg-copy-streams').from;
const { Client } = require('pg');
const ACTION_TO = 'to';
const ACTION_FROM = 'from';
const DEFAULT_TIMEOUT = "'5h'";
module.exports = class StreamCopy {
constructor(sql, userDbPa... | JavaScript | 0 | @@ -1866,16 +1866,23 @@
+return
done(err
|
d8252c2db4ad95d9510725bb9ba8d823968958df | Remove debugger statement. Fix indentation | lib/github-utils.js | lib/github-utils.js | 'use babel';
import GitHubApi from 'github';
import Shell from 'shell';
let github = new GitHubApi({
version: '3.0.0',
host: 'api.github.com'
});
function getGitHubCredentials() {
let {githubUsername, githubAuthorizationToken} = atom.config.get('github-utils');
if (githubUsername === '' || githubAuthorizati... | JavaScript | 0.000981 | @@ -864,16 +864,17 @@
se;%0A %7D%0A
+
let %5Bgi
@@ -1655,22 +1655,8 @@
%3E %7B%0A
- debugger;%0A
|
2695f63f7bba430ad70542aa13a21a315edb7671 | Reset the error state when reopen is called. | lib/handler/file.js | lib/handler/file.js | /*
* Copyright (c) 2012 Mathieu Turcotte
* Licensed under the MIT license.
*/
var fs = require('fs'),
path = require('path'),
util = require('util');
var Handler = require('./handler');
function File(formatter, filename) {
Handler.call(this);
this.formatter = formatter;
this.filename = filen... | JavaScript | 0 | @@ -1453,24 +1453,48 @@
is.close();%0A
+ this.error = false;%0A
this.ope
|
6ea79b9f639b35b4c41465fbb3bd7a0e37ab45c0 | Remove idea after split | desktop/app/components/ideas/ideas_controller.js | desktop/app/components/ideas/ideas_controller.js | /*
eslint no-shadow: ["error", { "allow": ["$scope"] }]
*/
/*
eslint no-underscore-dangle: ["error", { "allow": ["_id",] }]
*/
const ideaControl = function ideaControl($scope, $rootScope, $mdDialog, $mdToast, db) {
$scope.isShown = true;
$scope.current = undefined;
$scope.remove = (idea) => {
db.removeIdea(... | JavaScript | 0.000001 | @@ -1889,16 +1889,21 @@
it = (ev
+, cur
) =%3E %7B%0A
@@ -2377,47 +2377,170 @@
-$rootScope.$broadcast('Update tasks');%0A
+db.removeIdea(cur._id, (err) =%3E %7B%0A if (!err) %7B%0A $rootScope.$broadcast('Update tasks');%0A $rootScope.$broadcast('Update ideas');%0A
@@ -2... |
76a8d10abd7e7640a3af87e5c3a8c9a28bad3279 | Test refactoring, reducing copy paste. | features-support/step_definitions/parsing.js | features-support/step_definitions/parsing.js | "use strict";
/* eslint new-cap: 0 */
require('should');
var GherkinParser = require('../../lib/parser/gherkin.js');
function unwrapSingleColumnTable(singleColumnTable) {
return (singleColumnTable.raw()).map(function (valueWrappedInArray) {return valueWrappedInArray[0]});
}
module.exports = function() {
// Shar... | JavaScript | 0 | @@ -1039,67 +1039,55 @@
%0A%0A
-this.Then(/%5Efeature tags are associated with features%5C.?$/,
+function compareFeatureValues(key) %7B%0A return
fun
@@ -1084,32 +1084,39 @@
return function
+compare
(table) %7B%0A va
@@ -1101,32 +1101,34 @@
ompare(table) %7B%0A
+
var featureT
@@ -1126,19 +1126,21 ... |
74f90689ca13a699ff4f1ccbf3117bfb2895d543 | add missing semi-colon | app/scripts/services/matchService.js | app/scripts/services/matchService.js | 'use strict';
angular.module('volleyApp')
.service('MatchService', function MartchService() {
// AngularJS will instantiate a singleton by calling "new" on this function
var self = this;
this.initGame = function() {
return {
currentSet : 1,
team1Name : '',
team2Name : '',
... | JavaScript | 0.999999 | @@ -2406,24 +2406,25 @@
== 16;%0A %7D
+;
%0A%0A this.i
|
5c10bac026c91e907f5f14a460a05883a615d65d | Replace all the occurences of $ with jQuery for consistency. | app/soc/content/js/melange.action.js | app/soc/content/js/melange.action.js | /* Copyright 2011 the Melange authors.
*
* 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 | @@ -1365,25 +1365,30 @@
= null;%0A
-$
+jQuery
(document).r
@@ -1430,17 +1430,22 @@
arseInt(
-$
+jQuery
(name).c
@@ -1468,11 +1468,28 @@
ing(
-0,$
+%0A 0, jQuery
(nam
@@ -1520,25 +1520,30 @@
x%22)))%0A
-$
+jQuery
(window).scr
@@ -1559,17 +1559,16 @@
ion () %7B
-
%0A
@@ -1589,10 +1589... |
11aa338170447bfb6a7f0442aedd93e4ca1707d9 | add result map function. | lib/model/engine.js | lib/model/engine.js | const Promise = require('bluebird');
const db = {
registerDsn: (dsns) => {
if (dsns) {
dsns.forEach((dsn) => {
db.conn(dsn);
})
}
},
_conn: {},
conn: (dsn) => {
var key;
if (typeof(dsn) == 'string') {
key = dsn;
... | JavaScript | 0 | @@ -2183,16 +2183,27 @@
age, rpp
+, resultMap
) =%3E %7B%0A
@@ -2467,16 +2467,118 @@
knex);%0A%0A
+ if (typeof(resultMap) == 'function') %7B%0A result = result.map(resultMap);%0A %7D%0A%0A
|
15cae83c50b202e53c78c8b7de8ac56698c1e117 | Update breadcrumbs.js | frappe/public/js/frappe/views/breadcrumbs.js | frappe/public/js/frappe/views/breadcrumbs.js | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.breadcrumbs = {
all: {},
preferred: {
File: "",
Dashboard: "Customization",
"Dashboard Chart": "Customization",
"Dashboard Chart Source": "Customization",
},
module_map: {
Core: "Settings",
Em... | JavaScript | 0.000001 | @@ -654,14 +654,8 @@
,%0A%0A%09
-async
add(
@@ -837,52 +837,8 @@
%09%09%7D%0A
-%09%09await frappe.model.with_doctype(doctype);%0A
%09%09th
@@ -3348,24 +3348,30 @@
%7D%0A%09%09%7D%0A%09%7D,%0A%0A%09
+async
set_list_bre
@@ -3424,32 +3424,76 @@
crumbs.doctype;%0A
+%09%09await frappe.model.with_doctype(doctype);%0... |
b505cb412764bb84019b4c63f70437f69dbea564 | Change 'storylink' to 'titlelink'. | src/content.js | src/content.js | // Returns the ID corresponding to the current Hacker News page.
var getStoryId = function() {
var qs = window.location.search.substring(1);
var items = qs.split('&');
for (var i = 0; i < items.length; ++i) {
var item = items[i];
var pair = item.split('=');
if (pair.length !== 2) con... | JavaScript | 0.998632 | @@ -546,21 +546,21 @@
ssName('
-story
+title
link');%0A
|
c046ca3b470448250bf9ae95b15cb242d8db5240 | rework `exec` arguments, fix jsHint complaint | src/convert.js | src/convert.js | 'use strict';
var path = require('path');
var cp = require('child_process');
var rimraf = require('rimraf');
var Q = require('q');
var rmdir = Q.denodeify(rimraf);
/**
* Execute a child process command.
* @see {@link http://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callb... | JavaScript | 0.000001 | @@ -426,17 +426,8 @@
mand
-, options
) %7B%0A
@@ -479,11 +479,8 @@
ents
-, 0
);%0A
|
805948af176b33893a4a328061b005526dd0e20e | fix a ={''} instead of ="" in a test | modules/gob-web/components/__tests__/avatar-letter.test.js | modules/gob-web/components/__tests__/avatar-letter.test.js | import React from 'react'
import {mount} from 'enzyme'
import {AvatarLetter} from '../avatar-letter'
describe('AvatarLetter', () => {
it('renders a component', () => {
const wrapper = mount(<AvatarLetter />)
expect(wrapper).toBeTruthy()
})
it('accepts other classes via className', () => {
... | JavaScript | 0.999996 | @@ -569,18 +569,16 @@
lue=
-%7B'
+%22
Hawken
-'%7D
+%22
/%3E)
|
c0e8eb76aa7e4935ab99918c6dd0a8c5c1ff4693 | fix lint error | test/integration/request-body/protocolProfileBehavior.test.js | test/integration/request-body/protocolProfileBehavior.test.js | var net = require('net'),
sinon = require('sinon');
describe.only('request body', function () {
var server,
testrun,
PORT = 5050,
URL = 'http://localhost:' + PORT;
before(function (done) {
// Echo raw request message to handle body for http methods (GET, HEAD)
// No... | JavaScript | 0.000001 | @@ -62,13 +62,8 @@
ribe
-.only
('re
|
af1c85c9b609b121cefc3db6f891904ae2ec1116 | Add index field to item schema | src/db/item.js | src/db/item.js | import mongoose, { Schema } from "mongoose"
import { rsbuddy } from "./rsbuddy"
const item = new Schema({
id: {
type: Number,
required: true,
index: true
},
name: {
type: String,
required: true
},
store: {
type: Number,
required: true
},
rsbuddy: {
type: [rsbuddy],
def... | JavaScript | 0.000001 | @@ -200,32 +200,49 @@
g,%0A required:
+ true,%0A index:
true%0A %7D,%0A sto
|
fdd4c7b7b4f843c5f8684ee32ede3ea01e48b90f | Use faster way of invoking callbacks for upto 5 params in emitter | src/emitter.js | src/emitter.js | 'use babel'
import {Disposable} from './disposable'
export class Emitter {
constructor() {
this.disposed = false
this.handlers = {}
}
dispose(){
this.disposed = true
this.handlers = null
}
on(eventName, handler){
if (this.disposed) {
throw new Error('Emitter has been disposed')
... | JavaScript | 0 | @@ -1330,16 +1330,316 @@
ams%5B1%5D)%0A
+ %7D else if (paramsLength === 3) %7B%0A callback(params%5B0%5D, params%5B1%5D, params%5B2%5D)%0A %7D else if (paramsLength === 4) %7B%0A callback(params%5B0%5D, params%5B1%5D, params%5B2%5D, params%5B3%5D)%0A %7D else if (paramsLength === 5) %7B%0A... |
38402e9b1c6d1b0bb967334704621025da74f246 | Simplify dateGetter() within the date filter. | src/filters.js | src/filters.js | angularFilter.currency = function(amount){
this.$element.toggleClass('ng-format-negative', amount < 0);
return '$' + angularFilter['number'].apply(this, [amount, 2]);
};
angularFilter.number = function(amount, fractionSize){
if (isNaN(amount) || !isFinite(amount)) {
return '';
}
fractionSize = typeof fra... | JavaScript | 0 | @@ -1362,18 +1362,9 @@
ame%5D
-.call(date
+(
);%0A
|
0f6f35a13e8fad3cad04d8ee89ca1e5c05106fe0 | add option to save when adding a setting | api/models/mixins/HasSettings.js | api/models/mixins/HasSettings.js | import { merge, unset } from 'lodash'
export default {
addSetting: function (value) {
return this.set('settings', merge({}, this.get('settings'), value))
},
removeSetting: function (path, save = false) {
unset(this.get('settings'), path)
if (save) {
return this.save({settings: this.get('settin... | JavaScript | 0.000001 | @@ -82,22 +82,29 @@
alue
+, save = false
) %7B%0A
- return
thi
@@ -161,16 +161,110 @@
value))%0A
+ if (save) %7B%0A return this.save(%7Bsettings: this.get('settings')%7D, %7Bpatch: true%7D)%0A %7D%0A
%7D,%0A%0A
|
1122d8857fcfcc8bcbd11bbf95ccdcef202cff05 | Fix reference error | packages/@sanity/document-store/src/createDocumentStore.js | packages/@sanity/document-store/src/createDocumentStore.js | const Observable = require('@sanity/observable')
const createCache = require('./utils/createCache')
const canonicalize = require('./utils/canonicalize')
const omit = require('lodash/omit')
const pubsub = require('nano-pubsub')
const assert = require('assert')
const {BufferedDocument, Mutation} = require('@sanity/mutato... | JavaScript | 0.000003 | @@ -3722,39 +3722,31 @@
%0A return
-bufferedDocumen
+checkou
t(documentId
@@ -3832,39 +3832,31 @@
%0A return
-bufferedDocumen
+checkou
t(documentId
@@ -3935,31 +3935,23 @@
return
-bufferedDocumen
+checkou
t(docume
|
2f48f50b53a4377c9666db234e9fcb930cbe09ee | Make plugin compatible with babel 7 | packages/babel-plugin-lingui-extract-messages/src/index.js | packages/babel-plugin-lingui-extract-messages/src/index.js | import fs from "fs"
import fsPath from "path"
import mkdirp from "mkdirp"
import generate from "babel-generator"
import getConfig from "lingui-conf"
// Map of messages
const MESSAGES = Symbol("I18nMessages")
// We need to remember all processed nodes. When JSX expressions are
// replaced with CallExpressions, all chi... | JavaScript | 0 | @@ -6040,18 +6040,8 @@
name
-, basename
%7D =
@@ -6438,16 +6438,82 @@
getDir)%0A
+ const %5Bbasename%5D = fsPath.basename(filename).split(%22.%22, 2)%0A%0A
fs
|
de1e6984a5898b5a56412b78537314a9f4f55679 | update e2e test to reflect new playback rate in demo | packages/components/bolt-video/__tests__/bolt-video.e2e.js | packages/components/bolt-video/__tests__/bolt-video.e2e.js | let currentBrowser;
module.exports = {
tags: ['component', 'video'],
'Bolt Video Playback Rate': function(browser) {
const { testingUrl } = browser.globals;
console.log(`global browser url: ${testingUrl}`);
currentBrowser = '--' + browser.currentEnv || 'chrome';
let testName = 'bolt-video-playback-... | JavaScript | 0 | @@ -1124,17 +1124,18 @@
e === 1.
-3
+25
,%0A
@@ -1504,17 +1504,18 @@
=== '1.
-3
+25
x',%0A
@@ -1573,17 +1573,18 @@
reads 1.
-3
+25
x.%60,%0A
@@ -1694,17 +1694,18 @@
ck-at-1.
-3
+25
x--$%7Bcur
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.