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 |
|---|---|---|---|---|---|---|---|
62ae160fd2db21de05f096e160df144d48e3485d | Fix source CTA in ModulePopularPagesWidget for unified dashboard. | assets/js/modules/analytics/components/module/ModulePopularPagesWidget/Header.js | assets/js/modules/analytics/components/module/ModulePopularPagesWidget/Header.js | /**
* Header component of the ModulePopularPagesWidget widget.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.a... | JavaScript | 0 | @@ -1049,24 +1049,86 @@
constants';%0A
+import %7B useFeature %7D from '../../../../../hooks/useFeature';%0A
import Widge
@@ -1451,16 +1451,84 @@
der() %7B%0A
+%09const unifiedDashboardEnabled = useFeature( 'unifiedDashboard' );%0A%0A
%09const d
@@ -2376,16 +2376,53 @@
le %7D /%3E%0A
+%09%09%09%7B ! unifiedDashboa... |
450d098d8f684749b389afedf5dd411d3059d036 | Remove underscore dependancies | W.DisplayViewMixin.js | W.DisplayViewMixin.js | // Copyright The Workers Ltd. 2012 (theworkers.net)
// @author Ross Cairns
(function () {
var root = this;
var W = root.W || {};
if (typeof module !== 'undefined' && module.exports) {
module.exports = W;
root.W = W;
} else {
root.W = W;
}
W.DisplayViewMixin = {
... | JavaScript | 0.998296 | @@ -426,20 +426,37 @@
if (
-_.is
+typeof x === %22%5Bobject
Array
-(x)
+%5D%22
) %7B%0A
@@ -542,21 +542,29 @@
if (
-_.isN
+typeof x === %22n
umber
-(x)
+%22
) %7B%0A
@@ -859,26 +859,23 @@
if (
-_.isElement(width)
+!!width.tagName
) %7B%0A
@@ -995,25 +995,33 @@
if (
-_.isNumber(width)
+typeof width === %22numb... |
a1dbb2a0bfba07f4e9164521881a0a9250fe481c | Fix navigation on Android | senic_hub/setup_app/components/SetupHub.js | senic_hub/setup_app/components/SetupHub.js | import React from 'react';
import {
ActivityIndicator,
FlatList,
StyleSheet,
Text,
View,
} from 'react-native';
import { BleManager } from 'react-native-ble-plx';
import { List, ListItem } from 'react-native-elements'
import HubOnboarding from '../HubOnboarding'
import Screen from './Screen'
export defaul... | JavaScript | 0.000072 | @@ -3057,24 +3057,297 @@
)%0A %7D%0A
+ else %7B%0A // HACK for Android: screen is not activated & willAppear doesn't get called if render() doesn't return any content %22right away%22. Here we return an empty Text component to trigger the screen activation...%0A return (%0A %3CText%3E%3C/Tex... |
242f2f2109ab1107ed15a0b920859c706a1dfca4 | fix make_transfer test | server/api/create_bank/create_bank.spec.js | server/api/create_bank/create_bank.spec.js | 'use strict';
var sinon = require('sinon');
var app = require('../../app');
var chai = require('chai');
var io = require('socket.io');
var Q = require('q');
var expect = chai.expect;
var ripple = require('ripple-lib');
var sinonChai = require("sinon-chai");
chai.use(sinonChai);
var TestingUtils = require('./../../../... | JavaScript | 0.000001 | @@ -1266,28 +1266,23 @@
-TestingUtils
+emitSpy
.restore
All(
@@ -1281,11 +1281,8 @@
tore
-All
();%0A
@@ -1285,39 +1285,44 @@
();%0A
-emitSpy
+TestingUtils
.restore
();%0A
@@ -1301,32 +1301,35 @@
ingUtils.restore
+All
();%0A Test
@@ -2047,32 +2047,37 @@
%0A %7D);%0A%0A it
+.o... |
3c88f5d5fd5f06a65476a59a333fc59870be0f19 | Fix error in display of reputation gain. | js/app.js | js/app.js | 'use strict';
(function() {
var game = new Game.Game();
game.load();
var lab = game.lab;
var research = game.research;
var workers = game.workers;
var upgrades = game.upgrades;
var achievements = game.achievements;
var allObjects = game.allObjects;
var lastSaved;
UI.validateVersion(lab.version);
... | JavaScript | 0 | @@ -2555,16 +2555,22 @@
%22, item.
+state.
reputati
|
5f29bce2d3b84297e69644c18a9ea49a255ea077 | Add localStorage into the mix so that the list persists. | js/app.js | js/app.js | // app.js
//
// the main application file for PickSix
(function() {
var items = [];
// grab the static UI elements to work with
var itemElements = document.querySelectorAll('#main .todo-item');
var itemTitleElements = document.querySelectorAll('#main .todo-item .todo-item-text');
var itemCheckboxElements =... | JavaScript | 0 | @@ -430,24 +430,100 @@
var items =
+ JSON.parse(localStorage.getItem('items'));%0A if( !items ) %7B%0A items =
%5B%5D;%0A for
@@ -519,16 +519,18 @@
%5B%5D;%0A
+
+
for(var
@@ -548,32 +548,34 @@
6; i++) %7B%0A
+
var item = %7B%0A
@@ -579,16 +579,18 @@
+
+
title: '
@@ -592... |
d5cf0e44fd268a047fd44769fe7de27b94794041 | Bla bla bla | js/app.js | js/app.js | var app = angular.module("quicklist", []);
app.factory("StorageService",function(){
return{
set: function(key,value){
localStorage[key] = JSON.stringify(value);
},
get: function(key){
if(localStorage[key])
return JSON.parse(localStorage[key]);
else
throw "invalid key ... | JavaScript | 0.99985 | @@ -1191,20 +1191,33 @@
ne:false
+, type:%22text%22
%7D);%0A
-
$s
@@ -1432,24 +1432,26 @@
+//
alert('Lat:'
@@ -1449,16 +1449,17 @@
rt('Lat:
+
' + posi
@@ -1517,24 +1517,419 @@
longitude);%0A
+ //url = %22https://www.google.it/maps?t=m&ll=%22 + position.coords.latitude + %22,%22 + ... |
5617f56f2123993679b8bd10450b7d249ee59bd2 | fix title | js/app.js | js/app.js | $(function(){
//initiate the client
var client = "responsetool"
var oh = Ohmage("/app", client)
//debugging
window.oh = oh;
//attach global callbacks
oh.callback("done", function(x, status, req){
//for debugging only
//console.log(x);
})
//global error handler. In... | JavaScript | 0.000797 | @@ -3161,24 +3161,121 @@
%22).empty();%0A
+ $(%22.modal-title%22).html(%22Response by %3Cu%3E%22 + survey.user + %22%3C/u%3E at %22 + survey.timestamp);%0A
$(%22#
|
bf61cce1981be92e361602aa10be531f0c823939 | update net.js | js/net.js | js/net.js | var isReady=false;
this.socket.on("nameerror",function(){
document.getElementById("tips").innerHTML="你输入的昵称已经有人在用了";
});
this.socket.on("loginsuccess",function(){
var p=new Player(new Position(300,300),0,document.getElementById("text").value,0);
e.Players.push(p);
isReady=true;
document.getElementById("ipt").styl... | JavaScript | 0.000001 | @@ -193,15 +193,57 @@
ion(
-300,300
+maps%5Be.level%5D.startpos.x,maps%5Be.level%5D.startpos.y
),0,
@@ -889,28 +889,32 @@
te,name,
-socekt_index
+e.Players.length
));%0A%09%7D%0A%7D
@@ -1020,14 +1020,443 @@
sh(dir);%0A%09%7D%0A
-
%7D)
+%0A%0Athis.socket.on(%22Playerup%22,function(name,spd)%7B%0A%09if(e.Players%5B... |
5d3bae193a4258fe1310f677f09df68de082590f | Fix remote computation document's start date bug. | packages/coinstac-common/src/models/computation/remote-computation-result.js | packages/coinstac-common/src/models/computation/remote-computation-result.js | 'use strict';
const ComputationResult = require('./computation-result');
const joi = require('joi');
/* istanbul ignore next */
/**
* @class RemoteComputationResult
* @extends ComputationResult
* @description RemoteComputationResult result container
* @property {string[]} usernames
* @property {string} _id exten... | JavaScript | 0 | @@ -1019,16 +1019,21 @@
estamp()
+%0A
.default
@@ -1033,16 +1033,22 @@
default(
+() =%3E
Date.now
@@ -1049,16 +1049,36 @@
te.now()
+, 'time of creation'
),%0A use
|
403798bfe4ea2db78c98f97011165240ae04fc4a | Make semicolons in `CurrentTime.js` consistent | Sources/HaCWebsiteLib/ViewModels/Hackathons/CurrentTime.js | Sources/HaCWebsiteLib/ViewModels/Hackathons/CurrentTime.js | function updateClock() {
const id = {{id}}
const current = new Date();
document.getElementById(id).innerHTML = current.getHours()+":"+(current.getMinutes()<10?"0":"") + current.getMinutes();
}
updateClock();
setInterval(updateClock,1000);
| JavaScript | 0.999312 | @@ -39,16 +39,17 @@
= %7B%7Bid%7D%7D
+;
%0A con
|
70cd9ee488adf1ca7ca38ded245e19df7a3c3235 | remove unnecessary escapes | app/assets/javascripts/components/ops/tenant-component.js | app/assets/javascripts/components/ops/tenant-component.js | ManageIQ.angular.app.component('tenantComponent', {
bindings: {
recordId: '@?',
divisible: '=',
ancestry: '@?',
redirectUrl: '@',
},
controllerAs: 'vm',
controller: tenantFormController,
templateUrl: '/static/ops/tenant/tenant.html.haml',
});
tenantFormController.$inject = ['API', 'miqService... | JavaScript | 0.000002 | @@ -1268,37 +1268,35 @@
sprintf(__('%25s
-%5C
%22%25s
-%5C
%22 has been succe
@@ -1683,21 +1683,19 @@
(__('%25s
-%5C
%22%25s
-%5C
%22 has be
@@ -2665,13 +2665,11 @@
%25s
-%5C
%22%25s
-%5C
%22 wa
|
184638cf53d62a8faf5684f963306b621d6202d9 | Mark contrast errors with alpha transparency as warnings | Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_4/1_4_3.js | Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_4/1_4_3.js | /**
* +--------------------------------------------------------------------+
* | This HTML_CodeSniffer file is Copyright (c) |
* | Squiz Pty Ltd (ABN 77 084 670 600) |
* +--------------------------------------------------------------------+
* | IMPORTANT: Your... | JavaScript | 0 | @@ -1904,16 +1904,80 @@
%7C false;
+%0A var bgColour = failures%5Bi%5D.bgColour %7C%7C false;
%0A%0A
@@ -3088,16 +3088,376 @@
if
+(bgColour && bgColour.indexOf('rgba') === 0) %7B%0A code += '.Alpha';%0A HTMLCS.addMessage(HTMLCS.WARNING, element, 'Thi... |
3123ae1d3a3168e1ae50c78799a5a449c65386d9 | Stop markdown value being reset if not change made | src/main/web/florence/js/functions/_loadMarkdownEditor.js | src/main/web/florence/js/functions/_loadMarkdownEditor.js | /**
* Manages markdown editor
* @param content
* @param onSave
* @param pageData
* @param notEmpty - if present, markdown cannot be left empty
*/
function loadMarkdownEditor(content, onSave, pageData, notEmpty) {
if (content.title == undefined) {
var html = templates.markdownEditorNoTitle(content);
... | JavaScript | 0.000018 | @@ -656,22 +656,49 @@
markdown
+ = $('#wmd-input').val()
;%0A%0A
+ //
if (not
@@ -705,24 +705,27 @@
Empty) %7B%0A
+ //
markdow
@@ -750,24 +750,27 @@
).val();%0A
+ //
%7D%0A%0A // D
@@ -905,274 +905,8 @@
l();
-%0A%0A // Just a little test to see if the markdown is ever getting set to nu... |
5c95ac9a8cd6bfa71dd22a7af5c70636d9761551 | Clean up whitespace | js/plt.js | js/plt.js | /*
* plt.js 0.2.0
*
* http://github.com/nasser/pltjs
*
* Copyright (c) 2014 Ramsey Nasser
* Licensend under the MIT license.
*/
// configuration object
// refreshes every second by default
var PLT = {
refresh: false,
refreshTime: 1000,
parser: null
};
$(function() {
// inject css style to format code ... | JavaScript | 0.999999 | @@ -3248,17 +3248,19 @@
Column %22
-+
+ +
err.colu
|
168dcae9ae03ad961f3f3f930574f2557fab3e76 | fix test that was missing router stub | app/frontend/test/unit/specs/submissions/SubmissionsHome.spec.js | app/frontend/test/unit/specs/submissions/SubmissionsHome.spec.js | import { shallowMount, createLocalVue } from '@vue/test-utils'
import Vuex from 'vuex'
import SubmissionsHome from '@/submissions/views/SubmissionsHome.vue'
import { FETCH_CODES } from '@/submissions/store/actions.types.js'
const localVue = createLocalVue()
localVue.use(Vuex)
describe('SubmissionsHome.vue', () => {
... | JavaScript | 0.000001 | @@ -80,16 +80,51 @@
'vuex'%0A
+import VueRouter from 'vue-router'%0A
import S
@@ -185,16 +185,16 @@
me.vue'%0A
-
%0Aimport
@@ -306,16 +306,72 @@
se(Vuex)
+%0AlocalVue.use(VueRouter)%0A%0Aconst router = new VueRouter()
%0A%0Adescri
@@ -718,32 +718,46 @@
e,%0A store,%0A
+ router,%0A
sync: fals
@... |
97916806e6d38099d962c2e84dd0c688af3c39d1 | Disable the flexible height panel from facility list grid | modules/openlmis-web/src/main/webapp/public/js/reports/facilitylist/controller/list-facilitylist-controller.js | modules/openlmis-web/src/main/webapp/public/js/reports/facilitylist/controller/list-facilitylist-controller.js | function ListFacilitiesController($scope, FacilityList, ReportFacilityTypes, GeographicZones, $http, $routeParams, $location) {
//to minimize and maximize the filter section
var section = 1;
$scope.section = function (id) {
section = id;
};
$scope.show = function (... | JavaScript | 0 | @@ -7542,24 +7542,26 @@
utoFit :true
+//
,%0A pl
@@ -7557,16 +7557,18 @@
%0A
+//
plugins
|
389d3606fcce1633e0f2d00ee8fcceb7cd98026d | fix bugs | jsbind.js | jsbind.js | 'use strict';
(function(scope) {
// const nodeProto = document.registerElement('jsbind-node');
/**
* @param {string} value
* @this {Attr}
*/
function bindAttribute(value) {
this.value = value;
}
/**
* @param {string} value
* @this {Node}
*/
function bindTextContent(value) {
this.... | JavaScript | 0.000001 | @@ -1069,19 +1069,21 @@
er.child
-ren
+Nodes
.length)
@@ -1124,19 +1124,21 @@
er.child
-ren
+Nodes
%5B0%5D);%0A
@@ -2269,17 +2269,18 @@
Index =
-0
+-1
;%0A le
|
059e8a6e60f48627d8146d83902cc08b37d5907c | replace nCommentsHymns with nCommentsTotal | src/modules/commenters/graphql/queries/commentersQuery.js | src/modules/commenters/graphql/queries/commentersQuery.js | import { gql, graphql } from 'react-apollo';
const query = gql`
query commenters ($tenantId: String) {
commenters (tenantId: $tenantId) {
_id
avatar {
src
}
name
slug
tenantId
bio
featureOnHomepage
nCommentsHymns
tagline
}
}
`;
const commentersQuery = (function commentersQueryFunc() {
return ... | JavaScript | 0.999907 | @@ -227,13 +227,13 @@
ents
-Hymns
+Total
%0A%09%09t
|
1178d8d86a2b8774ad9636de8d29ca30d352db51 | Allow importing RAR files in the UI | lib/assets/javascripts/cartodb/common/background_polling/models/upload_config.js | lib/assets/javascripts/cartodb/common/background_polling/models/upload_config.js |
/**
* Default upload config
*
*/
module.exports = {
uploadStates: [
'enqueued',
'pending',
'importing',
'uploading',
'guessing',
'unpacking',
'getting',
'creating',
'complete'
],
fileExtensions: [
'csv',
'xls',
'xlsx',
'zip',
'kml',
'geojson',
... | JavaScript | 0 | @@ -462,16 +462,27 @@
'sql'
+,%0A 'rar'
%0A %5D,%0A
@@ -530,8 +530,9 @@
ger: 3%0A%7D
+%0A
|
9e84f0d5dfdc5557d2c92548afc25a4c27cd1efe | Fix require path | lib/node_modules/@stdlib/math/base/assert/is-prime/benchmark/benchmark.primes.js | lib/node_modules/@stdlib/math/base/assert/is-prime/benchmark/benchmark.primes.js | /**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib 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 a... | JavaScript | 0.000003 | @@ -1017,18 +1017,16 @@
rimes.js
-on
' );%0Avar
|
7dfcdb8b369d96f4811e2baa738e7bd935466a38 | fix delay? | assets/javascripts/discourse/controllers/tags-show.js.es6 | assets/javascripts/discourse/controllers/tags-show.js.es6 | import BulkTopicSelection from 'discourse/mixins/bulk-topic-selection';
export default Ember.Controller.extend(BulkTopicSelection, {
tag: null,
list: null,
canAdminTag: Ember.computed.alias('currentUser.staff'),
canFavorite: true,
showFavoriteButton: false,
canFavoriteTag: function() {
const s... | JavaScript | 0 | @@ -2379,23 +2379,16 @@
//%7D);%0A
- %0A
ad
@@ -2432,24 +2432,62 @@
'tag.id'));%0A
+ self.set('canFavorite', false);%0A
%7D,%0A u
|
1f43ab666df24bd6962345e99ad3c4f659ec7e20 | Update single URL dashboard All Traffic header with new copy. | assets/js/modules/analytics/components/dashboard-details/AnalyticsDashboardDetailsWidgetTopAcquisitionSources.js | assets/js/modules/analytics/components/dashboard-details/AnalyticsDashboardDetailsWidgetTopAcquisitionSources.js | /**
* AnalyticsDashboardDetailsWidgetTopAcquisitionSources component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https:... | JavaScript | 0 | @@ -1465,19 +1465,20 @@
_( '
-All
+Your
Traffic
', '
@@ -1473,16 +1473,28 @@
Traffic
+ at a Glance
', 'goog
|
93b9b0830da90943324e79e99446d07cc5d306c6 | Add images to showcase. | app/assets/javascripts/spree/frontend/spree_cwilt_theme.js | app/assets/javascripts/spree/frontend/spree_cwilt_theme.js | // Placeholder manifest file.
// the installer will append this file to the app vendored assets here: vendor/assets/javascripts/spree/frontend/all.js'
var index = 1;
var next = 2;
$(document).ready(function() {
startSlider();
});
function startSlider() {
count = $("#showcase_inner_container > img").size();
... | JavaScript | 0 | @@ -358,17 +358,18 @@
if(next
-%3E
+==
count)
|
58d8e60b32987db7af2911d819e9f29da8c0abda | Use styled loading to fix positioning | app/assets/scripts/views/location/temporal-measurements.js | app/assets/scripts/views/location/temporal-measurements.js | import React, { useEffect, useState } from 'react';
import { PropTypes as T } from 'prop-types';
import styled from 'styled-components';
import LoadingMessage from '../../components/loading-message';
import InfoMessage from '../../components/info-message';
import TemporalChart from '../../components/bar-chart-measureme... | JavaScript | 0 | @@ -470,16 +470,89 @@
ctor';%0A%0A
+const StyledLoading = styled(LoadingMessage)%60%0A grid-column: 1 / -1;%0A%60;%0A%0A
const Er
@@ -602,16 +602,17 @@
-1;%0A%60;%0A
+%0A
const Ca
@@ -3245,30 +3245,29 @@
return %3C
+Styled
Loading
-Message
/%3E;%0A %7D
|
1a2361027467ff455af222be30e95f95d60b3181 | add link_target prop | components/dash-core-components/src/components/Markdown.react.js | components/dash-core-components/src/components/Markdown.react.js | import {asyncDecorator} from '@plotly/dash-component-plugins';
import PropTypes from 'prop-types';
import React, {Component, Suspense} from 'react';
import markdown from '../utils/LazyLoader/markdown';
import lazyLoadMathJax from '../utils/LazyLoader/mathjax';
// eslint-disable-next-line valid-jsdoc
/**
* A component... | JavaScript | 0.000001 | @@ -1601,32 +1601,169 @@
PropTypes.bool,
+%0A %0A %0A /**%0A * A string for the target attribute to use on links (such as %22_blank%22)%0A */%0A link_target: PropTypes.string,
%0A%0A /**%0A *
|
bb3a49b3073ac528a657c9c3cebacc83bf183538 | Update header sentence | app/javascript/pages/dashboards/header/header-selectors.js | app/javascript/pages/dashboards/header/header-selectors.js | import { createSelector, createStructuredSelector } from 'reselect';
import { biomassToCO2 } from 'utils/calculations';
import isEmpty from 'lodash/isEmpty';
import { format } from 'd3-format';
import upperFirst from 'lodash/upperFirst';
import { deburrUpper } from 'utils/data';
import tropicalIsos from 'data/tropical-... | JavaScript | 0.000054 | @@ -5137,44 +5137,8 @@
ce =
- sentences%5BcountrySpecific%5Badm0%5D%5D %7C%7C
sen
@@ -5448,16 +5448,97 @@
Initial;
+%0A if (adm0 in countrySpecific) %7B%0A sentence = countrySpecific%5Badm0%5D;%0A %7D
%0A%0A re
|
216c841d3b50be0cc2f93d8d9ad5968335635283 | Update fetch_appdata_folder.js | drive/snippets/drive_v3/appdata_snippets/fetch_appdata_folder.js | drive/snippets/drive_v3/appdata_snippets/fetch_appdata_folder.js | /**
* Copyright 2022 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | JavaScript | 0.000003 | @@ -609,22 +609,21 @@
ive_
-upload
+fetch
_appdata
%5D%0A%0A%0A
@@ -618,16 +618,23 @@
_appdata
+_folder
%5D%0A%0A%0A/**%0A
|
ae69027f276c44a51b292ec9d904f1464f34184a | Make similar documents model extend document-model | find-core/src/main/public/static/js/find/app/page/find-search.js | find-core/src/main/public/static/js/find/app/page/find-search.js | /*
* Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'jquery',
'backbone',
'js-whatever/js/base-page',
'find/app/model/indexes-collection',
'find/app/model... | JavaScript | 0 | @@ -249,24 +249,61 @@
base-page',%0A
+ 'find/app/model/document-model',%0A
'find/ap
@@ -331,16 +331,16 @@
ction',%0A
-
'fin
@@ -592,16 +592,31 @@
asePage,
+ DocumentModel,
Indexes
@@ -855,16 +855,16 @@
-lg-6';%0A
-
var
@@ -965,16 +965,136 @@
md-7';%0A%0A
+ var DocumentContentModel = Documen... |
6036f9dc45160fc69c5617f76617602468cbba25 | Fix type errors | decls/index.js | decls/index.js | // @flow
/* eslint-disable */
declare type Api = {
next: Progresser,
finish: Progresser,
back: Back,
save: SaveRestore,
restore: SaveRestore,
restart: Restart,
throw: ThrowError,
takeEvery: TakeHelperProgresser,
takeLatest: TakeHelperProgresser,
throttle: ThrottleHelperProgresser,
};
declare type ... | JavaScript | 0.001334 | @@ -5053,24 +5053,58 @@
: Function,%0A
+ provideInForkedTasks?: boolean,%0A
put?: Func
@@ -5145,24 +5145,44 @@
: Function,%0A
+ spawn?: Function,%0A
take?: Fun
|
f53d300fa40330d49fb76c51c0796dae5aebf7a6 | fix empty group home | pkg/interface/src/views/landscape/components/Home/GroupHome.js | pkg/interface/src/views/landscape/components/Home/GroupHome.js | import React from 'react';
import { Box } from '@tlon/indigo-react';
import { EnableGroupFeed } from './EnableGroupFeed';
import { EmptyGroupHome } from './EmptyGroupHome';
import { GroupFeed } from './GroupFeed';
import { AddFeedBanner } from './AddFeedBanner';
import { Route } from 'react-router-dom';
import useGro... | JavaScript | 0.000002 | @@ -1658,18 +1658,103 @@
Home
- %7B...props
+%0A groups=%7Bgroups%7D%0A associations=%7Bassociations%7D%0A groupPath=%7BgroupPath
%7D /%3E
|
d4e0052f101aca14e4f89b3e474edeab056e25fb | Add NamedModulesPlugin (#1118) | internals/webpack/webpack.base.babel.js | internals/webpack/webpack.base.babel.js | /**
* COMMON WEBPACK CONFIGURATION
*/
const path = require('path');
const webpack = require('webpack');
// PostCSS plugins
const cssnext = require('postcss-cssnext');
const postcssFocus = require('postcss-focus');
const postcssReporter = require('postcss-reporter');
module.exports = (options) => ({
entry: option... | JavaScript | 0 | @@ -2241,16 +2241,54 @@
%7D),%0A
+ new webpack.NamedModulesPlugin(),%0A
%5D),%0A
|
cae83f77807c8534917baba86400156578500e62 | write checkbox function for accessibility | html/base/inputs/checkbox.js | html/base/inputs/checkbox.js | import getElements from '../../utilities/getElements';
import { uniqueId } from 'lodash';
// Need some help naming this one.
const generateIdForCheckbox = (element) => {
// This is going to change based on the structure we decide to go with - currently accounts for prototypes 1-3
const labelElement = (element.nex... | JavaScript | 0.000001 | @@ -88,43 +88,8 @@
';%0A%0A
-// Need some help naming this one.%0A
cons
@@ -133,121 +133,63 @@
%3E %7B%0A
-%0A
//
-This is going to change based on the structure we decide to go with - currently accounts for prototypes 1-3
+Account for label being after the input or before.
%0A c
@@ -364,16 +364,32 @@
('id');... |
c35b21407a12071fd6eb28adcdba270f26f62692 | Call list of work in progress job | batch/job_service.js | batch/job_service.js | 'use strict';
var debug = require('./util/debug')('job-service');
var JobFactory = require('./models/job_factory');
var jobStatus = require('./job_status');
function JobService(jobBackend, jobCanceller) {
this.jobBackend = jobBackend;
this.jobCanceller = jobCanceller;
}
module.exports = JobService;
JobServi... | JavaScript | 0 | @@ -2910,12 +2910,136 @@
llback);%0A%7D;%0A
+%0AJobService.prototype.listWorkInProgressJob = function (callback) %7B%0A this.jobBackend.listWorkInProgressJob(callback);%0A%7D;%0A
|
65d6b1d0af5d47c8ff28a2668605956a4a7ba697 | Change location instead of closing | oauth_server.js | oauth_server.js | var Fiber = Npm.require('fibers');
Oauth = {};
OauthTest = {};
RoutePolicy.declare('/_oauth/', 'network');
var registeredServices = {};
// Internal: Maps from service version to handler function. The
// 'oauth1' and 'oauth2' packages manipulate this directly to register
// for callbacks.
//
Oauth._requestHandlers =... | JavaScript | 0 | @@ -6046,15 +6046,34 @@
dow.
+location = %22webview
close
-()
+%22;
%3C/sc
|
175f0d09e7d6336fe0ff777454bb5dfeeb21d48e | Extend usage to work with most semantic-ui settings. | dropdown.js | dropdown.js | import can from 'can';
import $ from 'jquery';
import 'semantic-ui-transition/transition';
import 'semantic-ui-transition/transition.css';
import 'semantic-ui-dropdown/dropdown.css';
import 'semantic-ui-dropdown/dropdown';
// import 'semantic-ui-transition/transition';
/**
* A can.view.attr wrapper around SemanticUI... | JavaScript | 0 | @@ -639,16 +639,17 @@
Data) %7B%0A
+%0A
let at
@@ -689,68 +689,71 @@
-$el = $(el);%0A%0A let options = %7B%0A action: attrs.action%0A %7D
+options = getDropdownSettingsFromConfig(attrs),%0A $el = $(el)
;%0A%0A
@@ -885,20 +885,22 @@
if (
-attr
+option
s.show)
@@ -994,16 +994,18 @@
%7D%0A %... |
2b778641af7ec24ce159c1e919373a9127f9c9b1 | Clean up code | reporters/json-reporter.js | reporters/json-reporter.js | function print (data) {
process.stdout.write(`${ JSON.stringify(data, null, 2) }\n`)
}
module.exports = {
error (msg) {
print({ error: msg })
},
results (results) {
print(results.map(result => {
let out = {
name: result.file.name,
passed: !result.failed,
size: result.file... | JavaScript | 0.000004 | @@ -44,12 +44,8 @@
ite(
-%60$%7B
JSON
@@ -74,12 +74,14 @@
2)
-%7D%5Cn%60
++ '%5Cn'
)%0A%7D%0A
|
8b8a3694c1ab866d6b5b55b0054c9667b02bc66f | Use $cookies instead of $cookieStore | angular-authentication-service.js | angular-authentication-service.js | (function (window, _, angular, undefined) {
'use strict';
var module = angular.module('authentication.service', ['ngCookies', 'local.storage']);
module.controller('SecurityController', ['$authentication', '$location', '$scope', function ($authentication, $location, $scope) {
$scope.permit = function () {
... | JavaScript | 0 | @@ -538,16 +538,17 @@
ectPath)
+;
%0A %7D
@@ -1544,16 +1544,28 @@
$get = %5B
+'$cookies',
'$cookie
@@ -1605,16 +1605,26 @@
unction(
+$cookies,
$cookieS
@@ -1848,18 +1848,10 @@
okie
-Store.get(
+s%5B
conf
@@ -1869,25 +1869,25 @@
uthCookieKey
-)
+%5D
) %7B%0A
|
e1a4cefff4201503d2caa78973572c6f474e6205 | Add whistle | lib/startProxy.js | lib/startProxy.js | var startWhistle = require('../../../github/whistle');
var path = require('path');
var proxyServer;
module.exports = function(options) {
if (proxyServer) {
return proxyServer;
}
var pluginPaths = [path.resolve(__dirname, 'plugins')];
var storage = '.koa-whistle/' + options.name;
if (typeof options.baseDi... | JavaScript | 0.000003 | @@ -25,24 +25,8 @@
re('
-../../../github/
whis
|
19c9ad30143a106ecff8eceb1e03d1b0dc68a208 | Fix redis syntax error if third argument is undefined | packages/redis/index.js | packages/redis/index.js | const Redis = require('ioredis');
module.exports = url => {
const redis = new Redis(url);
redis.setJSON = async (...arguments) => {
arguments[1] = JSON.stringify(arguments[1]);
if (typeof arguments[2] === 'object' && arguments[2].asSeconds) {
arguments[2] = parseInt(arguments[2].asSeconds());
}
... | JavaScript | 0.020815 | @@ -427,32 +427,133 @@
%5D = 'EX';%0A %7D%0A
+ if (typeof arguments%5B2%5D === 'undefined') %7B%0A arguments = %5Barguments%5B0%5D, arguments%5B1%5D%5D;%0A %7D%0A
return await
|
64e0aeeb18e61a27b695df0b71d38f5b45b9cac1 | Fix demo | demo/demo12.js | demo/demo12.js | const docx = require("../build");
var doc = new docx.Document();
var paragraph = new docx.Paragraph("Hello World");
doc.addParagraph(paragraph);
const image = doc.createImage("./demo/images/pizza.gif");
const image2 = doc.createImage("./demo/images/pizza.gif");
const image3 = doc.createImage("./demo/images/pizza.gif... | JavaScript | 0.000001 | @@ -412,25 +412,25 @@
ale(1)%0Aimage
-4
+3
.scale(2.5);
|
475f1468fab44b8c007e445ebd3fedfbf23818b4 | Add namespaces for throttlers | client-vendor/after-body/promise-throttler/promise-throttler.js | client-vendor/after-body/promise-throttler/promise-throttler.js | /*
* Author: CM
*/
(function(global) {
/**
* @callback PromiseThrottled
* @param {...Object|String|Number} any number of optional params
* @return {Promise}
*/
/**
* @param {PromiseThrottled} fn
* @param {Object|null} options
* @param {Boolean} options.cancel Whether to cancel the previous... | JavaScript | 0.000001 | @@ -396,32 +396,32 @@
unction
-promiseThrottler
+throttleFunction
(fn, opt
@@ -460,16 +460,22 @@
(options
+ %7C%7C %7B%7D
, %7Bcance
@@ -542,26 +542,8 @@
if (
-options.cancel &&
prom
@@ -568,16 +568,46 @@
ending()
+)
+ %7B%0A if (options.cancel
&& prom
@@ -633,24 +633,26 @@
) %7B%0A
+
prom... |
87f5054b206cac2bc48cd908a83ebdce5723da62 | Add `.e.c-ts` to `.gitignore` on install. | blueprints/ember-cli-typescript/index.js | blueprints/ember-cli-typescript/index.js | /* eslint-env node */
const path = require('path');
module.exports = {
description: 'Initialize files needed for typescript compilation',
files() {
return [
path.join(this.path, 'files', 'tsconfig.json'),
path.join(this.path, 'files', 'app', 'config', 'environment.d.ts'),
];
},
mapFile()... | JavaScript | 0 | @@ -1,8 +1,42 @@
+import %7B existsSync %7D from 'fs';%0A%0A
/* eslin
@@ -971,16 +971,22 @@
%7D,%0A%0A
+async
afterIns
@@ -990,24 +990,151 @@
Install() %7B%0A
+ if (existsSync('.gitignore')) %7B%0A await this.insertIntoFile('.gitignore', '%5Cn# Ember CLI TypeScript%5Cn.e-c-ts');%0A %7D%0A%0A
re... |
491f678c0be9687cf73f14c7fd4cadaebb3b4d62 | Remove "dynamic js" and .map files from appcache (app.manifest). (#9434) | packages/appcache/appcache-server.js | packages/appcache/appcache-server.js | var crypto = Npm.require('crypto');
var fs = Npm.require('fs');
var path = Npm.require('path');
var _disableSizeCheck = false;
Meteor.AppCache = {
config: function (options) {
_.each(options, function (value, option) {
if (option === 'browsers') {
disabledBrowsers = {};
_.each(value, funct... | JavaScript | 0 | @@ -1090,16 +1090,209 @@
e%5D;%0A%7D;%0A%0A
+function isDynamic(resource) %7B%0A return resource.type === 'dynamic js' %7C%7C%0A (resource.type === 'json' &&%0A resource.url.startsWith('/dynamic/') &&%0A resource.url.endsWith('.map'))%0A%7D%0A%0A
WebApp.a
@@ -3418,32 +3418,65 @@
fy(resource.url)
+ &&%0... |
00a3ae805ab77a3adb4f53723ef982bd420b70b5 | Update minsoo.js | minsoo/minsoo.js | minsoo/minsoo.js | var count = document.getElementById("count");
var canvas = document.getElementById("canvas");
var dc = canvas.getContext("2d");
var ms = new Array();
var gen_color = function(){
return "rgb(" +
parseInt(Math.random()*255) + "," +
parseInt(Math.random()*255) + "," +
parseInt(Math.random()*255) + ")";
}
v... | JavaScript | 0.000001 | @@ -687,14 +687,12 @@
= %22
-darker
+copy
%22;%0A
|
40f8f6a0db7da66aeba2239fa7cd111da35f0641 | Print the logs directory on startup | docker-chaos.js | docker-chaos.js | #!/usr/bin/env node
var fs = require('fs');
var nopt = require("nopt");
var ChaosPlanFactory = require('./lib/ChaosPlanFactory');
var ChaosPlanExecutor = require('./lib/ChaosPlanExecutor');
var DockerLogger = require('./lib/DockerLogger');
var Executor = require('./lib/Executor');
var knownOpts = {
"file" : [Stri... | JavaScript | 0.000001 | @@ -1058,16 +1058,291 @@
(1);%0A%7D%0A%0A
+var logPath = '/tmp/logs-' + (new Date().toISOString());%0Aif (options.logPath) %7B%0A logPath = options.logPath;%0A if (fs.existsSync(logPath))%7B%0A console.log(%22Log path %22 + logPath + %22 already exists. Aborting%22);%0A process.exit(1);%0A %7D%0... |
b00bf0c89a1098936406faa07968e65837f379c3 | Revert "quickfix bug in menu items (#6735)" | centreon/www/front_src/src/components/navigation/index.js | centreon/www/front_src/src/components/navigation/index.js | import React, { Component } from "react";
import logo from "../../img/centreon.png";
import miniLogo from "../../img/centreon-logo-mini.svg";
import { Link, withRouter } from "react-router-dom";
import axios from "../../axios";
import routeMap from "../../route-maps/index";
class NavigationComponent extends Componen... | JavaScript | 0 | @@ -3960,21 +3960,23 @@
-$%7Bitem.
-label
+menu_id
.toLower
|
8af036de15259944341a952f8db0e82b8a8b01bb | fix merge errors | jasmine/src/invertedIndex.js | jasmine/src/invertedIndex.js | /* eslint no-unused-vars: "error"*/
/* global Index*/
class Index {
makeIndex(books) {
// this method creates the index and is to be called after the JSON file has been read
this.indexObject = {};
books.forEach((book, docIndex) => {
/* self.bookString is now a string without any special
... | JavaScript | 0.000007 | @@ -1845,24 +1845,25 @@
ents%0A */%0A
+%0A
if (Arra
@@ -2070,25 +2070,24 @@
n array%0A
-%0A
%7D%0A
%0A i
@@ -2082,93 +2082,8 @@
%7D%0A
-%0A if (Array.isArray(wordInput) === true) %7B%0A const resultsObject = %7B%7D;%0A%0A
@@ -2108,26 +2108,24 @@
h(word =%3E %7B%0A
-
... |
fd0db8de5cc41d704148a4b5ad64c8161754e146 | Test case two for comment contents | tests/commands/cmmTests.js | tests/commands/cmmTests.js | var cmm = require("__buttercup/classes/commands/command.cmm.js");
module.exports = {
setUp: function(cb) {
this.command = new cmm();
(cb)();
},
callbackInjected: {
callsToCallback: function(test) {
var callbackCalled = false;
var callback = function(comment)... | JavaScript | 0 | @@ -1169,32 +1169,652 @@
test.done();%0A
+ %7D,%0A%0A callsToCallbackWithCommentTestCaseTwo: function(test) %7B%0A var providedComment = %22The second test case, that is what I am%22;%0A%0A var callbackCalled = false;%0A var callback = function(comment) %7B%0A ... |
b1a6a33176e5f6071e8e0a1211c40fa16ecf0107 | Change "HTML5 not supported" conditions to exclude IE8 *and lower*, instead of just IE8. (And similarly for other browsers, for the sake of consistency.) This makes sure the tests are excluded even in compatibility mode, where IE8 advertises itself as IE7, but still exposes APIs for certain features, even though those ... | javascript/atoms/html5/html5_browser.js | javascript/atoms/html5/html5_browser.js | // Copyright 2011 WebDriver committers
// Copyright 2011 Google Inc.
//
// 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 req... | JavaScript | 0 | @@ -1331,17 +1331,37 @@
er is IE
-8
+ version 8 or earlier
.%0A * @pr
@@ -1407,16 +1407,27 @@
.IS_IE8_
+OR_EARLIER_
= goog.
@@ -1449,44 +1449,8 @@
%0A
- bot.userAgent.isEngineVersion(8) &&
!bo
@@ -1528,17 +1528,36 @@
Safari
-4
+version 4 or earlier
.%0A * @pr
@@ -1607,16 +1607,27 @@
SAFARI4_
+OR_EARLIER... |
7ec9499d58e853587495ec414295fd8ff9d4231c | Make override IP used by default | packetAnalyzer/sniff.js | packetAnalyzer/sniff.js | (() => {
window.overrideIP = '127.0.0.1:5000';
window.useOverrideIP = false;
var mySid = null;
let log = console.debug; // Can change to console.log if needed
console.clear();
if (localStorage['load_local_script']) {
log('Local script loaded');
}
let init = () => {
// Th... | JavaScript | 0 | @@ -75,12 +75,11 @@
P =
-fals
+tru
e;%0A
@@ -5725,8 +5725,9 @@
);%0A%7D)();
+%0A
|
db7ccac58f0719ec3626e9073806475188df2928 | Fix the bug on user cancel in the suggest app dialog | chrome/browser/resources/file_manager/js/app_installer.js | chrome/browser/resources/file_manager/js/app_installer.js | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* Manage the installation of apps.
*
* @param {string} itemId Item id to be installed.
* @constructor
* @extends {cr.EventType}
*... | JavaScript | 0.000112 | @@ -1726,16 +1726,24 @@
error
+.message
== AppI
|
b0b0342f7253a2684613ccd34cce84e3aad16026 | Fix browser behavior | destructure.js | destructure.js | /*globals module, define*/
/**
* Simple workaround for non-universal array destructuring assignment
* @param {array} arr Array of values to destructure
* @param {function} unpackCb The callback which will be passed each value of the array in order
* @returns {*} Returns the result of the unpackCb() execution
* @example... | JavaScript | 0.000001 | @@ -905,20 +905,22 @@
e %7B%0A
-this
+window
.destruc
|
3161948c8fb0c6e3a3dbe0b062ea9243dfc9dae1 | allow spaces in expression | static/js/expr-respond.js | static/js/expr-respond.js | /*
* expr-respond.js
*
* Include jquery and expr-parser before including this.
*
*/
$("#expr-submit").click(function() {
var expr = $("#expr-input").val();
if (expr.length > 0) {
try {
var exprval = parser.parse(expr);
var epsilon = 0.000001;
if (Math.abs(exprva... | JavaScript | 0.003646 | @@ -200,16 +200,68 @@
try %7B%0A
+ var space_re = new RegExp(%22%5C%5Cs+%22, %22g%22);%0A
@@ -295,16 +295,38 @@
rse(expr
+.replace(space_re, %22%22)
);%0A
|
9470b868b811632a6db59a5161a7dfdb943d0503 | increase size of matrices | benchmark/mmulSvd.js | benchmark/mmulSvd.js | 'use strict';
const { Matrix, SVD } = require('..');
const m = Matrix.randInt(100, 200);
const n = Matrix.randInt(200, 100);
function test() {
const x = n.mmul(m);
x.add(10);
return new SVD(x);
}
test();
test();
test();
console.log('now test');
console.time('test');
for (var i = 0; i < 10; i++) {
test();
... | JavaScript | 0.000003 | @@ -77,14 +77,14 @@
Int(
-1
+2
00,
-2
+3
00);
@@ -113,14 +113,14 @@
Int(
-2
+3
00,
-1
+2
00);
|
73419f13fdb6a10cc0362a108375c062721b612d | Change beat to fractional values | eg/piezo.js | eg/piezo.js | var five = require("../lib/johnny-five.js"),
board = new five.Board();
board.on("ready", function() {
// Creates a piezo object and defines the pin to be used for the signal
var piezo = new five.Piezo(3);
// Injects the piezo into the repl
board.repl.inject({
piezo: piezo
});
// Plays a song
piez... | JavaScript | 0.000001 | @@ -547,32 +547,34 @@
%5B%0A %5B%22C4%22, 1
+/4
%5D,%0A %5B%22D4%22,
@@ -566,32 +566,34 @@
,%0A %5B%22D4%22, 1
+/4
%5D,%0A %5B%22F4%22,
@@ -585,32 +585,34 @@
,%0A %5B%22F4%22, 1
+/4
%5D,%0A %5B%22D4%22,
@@ -604,32 +604,34 @@
,%0A %5B%22D4%22, 1
+/4
%5D,%0A %5B%22A4%22,... |
9d2b81ef26246426f0d2733d811712faf9931923 | Use strict in todo kernel. | samples/todo/src/kernel.js | samples/todo/src/kernel.js | define('kernel', [
'jquery',
'./application',
'fossil/engines/underscore',
'fossil/services/routing',
'fossil/services/template',
'fossil/services/canvas'
], function ($, Application, Engine, Routing, Template, Canvas) {
var engine = new Engine();
var routing = new Routing();
var te... | JavaScript | 0 | @@ -26,16 +26,34 @@
query',%0A
+ 'underscore',%0A
'./a
@@ -205,16 +205,19 @@
tion ($,
+ _,
Applica
@@ -258,16 +258,34 @@
anvas) %7B
+%0A %22use strict%22;
%0A%0A va
|
a357a92a303f03731dfc477a18c675e08692aa97 | Disable electron redirection on fail load while investigating slack login flow breaking app | electron.js | electron.js | /* jshint node: true */
'use strict';
const electron = require('electron');
const path = require('path');
const storage = require('electron-json-storage');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const dirname ... | JavaScript | 0 | @@ -1688,32 +1688,34 @@
-load', () =%3E %7B%0A
+//
mainWindow.l
@@ -2494,18 +2494,16 @@
he urls%0A
-
electr
@@ -2558,18 +2558,16 @@
ceived(%0A
-
%7B ur
@@ -2659,18 +2659,16 @@
%3E %7B%0A
-
-
if (deta
@@ -2707,26 +2707,24 @@
llback%60)) %7B%0A
-
const
@@ -2775,18 +2775,16 @@
ie'%5... |
a648083b22ee10a1bd05e0cfda1544aa0ec23834 | Add argument check in compose | src/compose.js | src/compose.js | const compose = (reducers = []) => {
for (let i = 0; i < reducers.length; i += 1) {
if (typeof reducers[i] !== 'function') {
throw new Error(`Element at position ${i} in "compose" is not a reducer`);
}
}
const getNext = (position, action) => (state) => {
if (position >= reducers.length) {
... | JavaScript | 0.000001 | @@ -30,16 +30,128 @@
%5D) =%3E %7B%0A
+ if (!Array.isArray(reducers)) %7B%0A throw new Error('%22reducers%22 argument to %22compose%22 must be an array');%0A %7D%0A
for (l
|
fea90532323814194be6f171ead3300ed790c770 | add comment | electron/platforms/github.js | electron/platforms/github.js | import GitHubAPI from 'github'
import PlatformHandler from './handler'
import {REQUEST_TIMEOUT} from '../const'
export default class GitHubHandler extends PlatformHandler {
static alias = 'github'
whoAmI() {
let {username, password, repo} = this
return new Promise((resolve, reject) => {
if (!usernam... | JavaScript | 0 | @@ -194,16 +194,82 @@
ithub'%0A%0A
+ /**%0A * %E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E7%94%A8%E4%BA%8E%E9%AA%8C%E8%AF%81%E5%BD%93%E5%89%8D%E8%B4%A6%E6%88%B7%E4%BF%A1%E6%81%AF%E6%98%AF%E5%90%A6%E6%9C%89%E6%95%88%0A * %E5%9B%A0%E4%B8%BA%E8%BE%93%E5%85%A5%E7%9A%84%E6%98%AF%E8%B4%A6%E6%88%B7%E5%90%8D%E5%AF%86%E7%A0%81%... |
9699d99315da74e439647a3e69196edd9ba6d153 | Update typescript.js | lib/typescript.js | lib/typescript.js | 'use strict';
var _ = require('lodash');
/**
* Recursively converts a swagger type description into a typescript type, i.e., a model for our mustache
* template.
*
* Not all type are currently supported, but they should be straightforward to add.
*
* @param swaggerType a swagger type definition, i.e., the right... | JavaScript | 0.000001 | @@ -1642,16 +1642,17 @@
= 'any'
+;
%0A
|
a99f5025e09a5847eb75d6d9dfd733085832ab8c | update molecular formula to 0.5.2 | eln/libs/MolecularFormula.js | eln/libs/MolecularFormula.js | export {
default
} from 'https://www.lactame.com/lib/molecular-formula/0.5.1/molecular-formula.js';
| JavaScript | 0.999936 | @@ -74,9 +74,9 @@
0.5.
-1
+2
/mol
|
321c69d1e0d824056efb81f0a728b3a03068501d | Update rust keywords: Add async/await/try | static/modes/rust-mode.js | static/modes/rust-mode.js | // Copyright (c) 2017, Matt Godbolt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of con... | JavaScript | 0 | @@ -1521,16 +1521,34 @@
', 'as',
+ 'async', 'await',
'become
@@ -1965,16 +1965,23 @@
'trait',
+ 'try',
'true',
|
2fefbf221b1b0f6358ac7e3ccac8de376bee8167 | Fix race condition where media is briefly added to <iframe> | js/webtorrent/components/mediaViewer.js | js/webtorrent/components/mediaViewer.js | const React = require('react')
const SUPPORTED_VIDEO_EXTENSIONS = [
'm4v',
'mkv',
'mov',
'mp4',
'ogv',
'webm'
]
const SUPPORTED_AUDIO_EXTENSIONS = [
'aac',
'mp3',
'ogg',
'wav',
'm4a'
]
module.exports = class MediaViewer extends React.Component {
render () {
const { torrent, serverUrl, ix ... | JavaScript | 0 | @@ -364,16 +364,73 @@
les%5Bix%5D%0A
+ const fileURL = serverUrl && (serverUrl + '/' + ix)%0A%0A
cons
@@ -606,64 +606,8 @@
Ext)
-%0A const fileURL = serverUrl && (serverUrl + '/' + ix)
%0A%0A
@@ -628,24 +628,34 @@
if (
+!file %7C%7C !
serverUr
l == nul
@@ -650,16 +650,8 @@
erUr
-l == nul
l) %7B... |
55fd278d53e18573ae3547a7f4bd08e61dec6036 | Update retry.js | lib/util/retry.js | lib/util/retry.js | var _ = require('underscore');
var defaultOptions = {
retries: 10,
delay: 1000
};
/**
* function download(url, filename, callback) {
* var operation = retry.attemps(function() {
* ...
* if (error) {
* if (operation.retry()) {
* return;
* }
* ... | JavaScript | 0.000001 | @@ -1,13 +1,20 @@
var
-_
+defaults
= requi
@@ -21,18 +21,18 @@
re('
-underscore
+./defaults
');%0A
@@ -521,10 +521,8 @@
ns:
-_.
defa
|
51d1d528d9e1ee392c32e9fc976d12a889cd03fd | Fix incorrect ref to File#base. | lib/views/body.js | lib/views/body.js | "use strict";
var dateFormat = require('dateformat');
const COMMENT_INTRO = `<!--
This comment and the below content is programatically generated.`;
const COMMENT_BODY = ` You may add a comma-separated list of anchors you'd like a
direct link to below (e.g. #idl-serializers, #idl-sequence):`;
const COMMENT... | JavaScript | 0 | @@ -2762,16 +2762,22 @@
po && f.
+merge_
base.own
|
4d0cc51b72edfc67d0fd09b780a0a2213d5daa18 | fix Cannot convert null to object at hasOwnProperty (#3) | src/country.js | src/country.js | /* global _, ajax, Callback */
/* jshint ignore:start */
import lib.Callback as Callback;
import util.underscore as _;
import util.ajax as ajax;
/* jshint ignore:end */
exports = (function (callback) {
"use strict";
var cbs = [],
sites = [
['http://ip-api.com/json', 'countryCode'],
['http://freeg... | JavaScript | 0 | @@ -174,17 +174,16 @@
ports =
-(
function
@@ -356,17 +356,16 @@
%5D,%0A%0A
-
request
@@ -475,16 +475,23 @@
next(
+res &&
_.has(re
@@ -879,9 +879,7 @@
();%0A
-%0A%7D)
+%7D
;%0A
|
7bfcaa2ded3f5dcf2eea1343959854290f26d7fe | remove logging ref. #8 | src/crontab.js | src/crontab.js | $(function () {
'use strict';
var crontabInputId = 'crontab';
var resultId = 'result';
var submitButtonId = 'check';
var daysOfWeek = '日月火水木金土日';
var rangeOfUnits = {
'分': [0, 59],
'時': [0, 23],
'日': [1, 31],
'月': [1, 12],
'曜日': [0, 7]
};
var erro... | JavaScript | 0.000001 | @@ -2646,42 +2646,8 @@
%7D%0A
- console.log('a');%0A
@@ -2702,48 +2702,8 @@
) %7B%0A
- console.log('err');%0A
@@ -2775,24 +2775,24 @@
tedValue');%0A
+
@@ -2800,42 +2800,8 @@
%7D
-%0A console.log('c');
%0A%0A
|
7cf3bfff85d4538fd91cd8074f23ab3bbed7966a | update table ref. #10 | src/crontab.js | src/crontab.js | $(function () {
'use strict';
var crontabInputId = 'crontab';
var resultId = 'result';
var submitButtonId = 'check';
var daysOfWeek = '日月火水木金土日';
var rangeOfUnits = {
'分': [0, 59],
'時': [0, 23],
'日': [1, 31],
'月': [1, 12],
'曜': [0, 7]
};
var error... | JavaScript | 0 | @@ -1308,21 +1308,8 @@
th%3E%3C
-th%3E%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%3C/th%3E%3C
/tr%3E
@@ -1338,25 +1338,24 @@
t = '%3Ctr%3E';%0A
-%0A
resu
@@ -1581,24 +1581,77 @@
nute, '%E5%88%86');%0A
+ result += '%3C/tr%3E';%0A%0A result += '%3Ctr%3E';
%0A res
@@ -1674,16 +1674,28 @@
s=%22... |
c59facc454287375408cff3a013e376f4a970ae8 | fix nit | byway/src/main/webapp/track-interests.js | byway/src/main/webapp/track-interests.js | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0.000451 | @@ -3149,21 +3149,22 @@
hPlaces(
-%0A
+tripId
, /* opt
|
366f8b32ac0f93b55819780b050f81078cd335d6 | disable use strict, as it causes problems on QJSEngine | scripts/compile-scripts.js | scripts/compile-scripts.js | #!/usr/bin/env node
const { promisify } = require('util')
const path = require('path')
const mkdirp = promisify(require('mkdirp'))
const fs = require('fs')
const rollup = require('rollup')
const nodeResolve = require('rollup-plugin-node-resolve')
const babel = require('rollup-plugin-babel')
const commonjs = require('... | JavaScript | 0 | @@ -1409,16 +1409,121 @@
.write(%7B
+%09 %0A strict: false, // FIXME: see https://github.com/mixxxdj/mixxx/pull/1795#discussion_r251744258
%0A f
|
66a406bdc20c49cbeb2e2dce0b926a7c2000a459 | Bump `ffmpeg` | scripts/download-ffmpeg.js | scripts/download-ffmpeg.js | #!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const execa = require('execa');
const got = require('got');
const ora = require('ora');
let spinner = ora({text: 'Installing 7zip', stream: process.stdout}).start();
const FFMPEG_URL = 'http://evermeet.cx/ffmp... | JavaScript | 0 | @@ -328,21 +328,21 @@
eg-8
-1632-g09317e3
+2622-g42ae9c6
.7z'
|
816f228881d7169506c0472f65447c2873966e63 | convert 'html' to string because sometimes is buffer | scripts/helpers/excerpt.js | scripts/helpers/excerpt.js | 'use strict';
const downsize = require('downsize');
const handlebars = require('handlebars');
module.exports = function(html, limit, options) {
if (!options) {
limit = 26;
}
// strip html tags
html = html.replace(/<\/?[^>]+>/gi, '');
html = html.replace(/(\r\n|\n|\r)+/gm, ' ');
retu... | JavaScript | 0.000042 | @@ -186,16 +186,43 @@
;%0A %7D%0A
+ html = html.toString();
%0A //
|
a0e6431934f1636665eaf9d89a72df734386b5c4 | support "script" parameter | lib/adapter/api/rest-request-builder.js | lib/adapter/api/rest-request-builder.js | var inflection = require('inflection');
var NUMERIC = /^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)$/;
function getNumericValue(params, key) {
var value = params[key];
if (!NUMERIC.test(value))
throw new Error(key + ': ' + value + ' is invalid number');
return parseFloat(value);
}
var INTEGER = /^-?[0-9]+$/;
functi... | JavaScript | 0.000006 | @@ -703,17 +703,50 @@
;%0A var
-c
+queryCondition = %7B%7D;%0A var scriptC
ondition
@@ -1552,33 +1552,38 @@
= 'string')%0A
-c
+queryC
ondition.matchEs
@@ -1705,33 +1705,38 @@
= 'string')%0A
-c
+queryC
ondition.matchTo
@@ -1819,17 +1819,22 @@
g')%0A
-c
+queryC
ondition
@@ -1871,88 +1871,465 @@
if... |
677fa6a1ed92775a77a5f5ed1a95697d49791bba | Add lazy loader script to gallery bundle and initialize it | src/gallery.js | src/gallery.js | import mediumZoom from 'src/config/medium-zoom';
import lqip from 'src/modules/lqip';
window.addEventListener('DOMContentLoaded', () => {
lqip({
afterReplace: (lqipImage, originalImage) => {
if (lqipImage) lqipImage.remove();
mediumZoom(originalImage);
},
});
});
| JavaScript | 0 | @@ -83,60 +83,379 @@
p';%0A
-%0Awindow.addEventListener('DOMContentLoaded', () =%3E %7B
+import galleryLoader from 'src/modules/gallery-lazy-load';%0A%0Awindow.addEventListener('DOMContentLoaded', () =%3E %7B%0A galleryLoader(%7B%0A afterInsert(lastPost) %7B%0A lqip(%7B%0A selectorRoot: lastPost,%0A ... |
5801a84602754a229d8bf89078b2d4e672e27cb4 | Fix trailing whitespace | linkStackTrace.js | linkStackTrace.js | "use strict";
/* exported linkStackTrace */
/*
* oauthToken: GitHub OAuth Token string
* stackTrace: stack trace string
* userOrRepo: GitHub user or user/repo string
* commitIsh: commit-ish string or null to keep GitHub’s SHA (latest commit on main branch that touched the file)
* callback: function(result, rateL... | JavaScript | 0.999999 | @@ -3109,17 +3109,16 @@
code?%22 +
-
%0A
|
3cf475a48d8780d211a76d95c3b5849c9fe0bb4a | Consolidate conditionals | lib/node_modules/@stdlib/math/base/dist/beta/cdf/lib/factory.js | lib/node_modules/@stdlib/math/base/dist/beta/cdf/lib/factory.js | 'use strict';
// MODULES //
var betainc = require( '@stdlib/math/base/special/betainc' );
var isnan = require( '@stdlib/math/base/utils/is-nan' );
var nan = require( './nan.js' );
// MAIN //
/**
* Returns a function for evaluating the cumulative distribution function (CDF) for a beta distribution with first shape ... | JavaScript | 0.000023 | @@ -724,36 +724,11 @@
ta )
-%0A%09) %7B%0A%09%09return nan;%0A%09%7D%0A%09if (
+ %7C%7C
%0A%09%09a
|
e513455d27aad423afe5bed9d34054430af82473 | Update for plug-in : wallhaven.cc | plugins/wallhaven_cc.js | plugins/wallhaven_cc.js | var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name: 'wallhaven.cc',
prepareImgLinks: function (callback) {
var res = [];
hoverZoom.urlReplace(res,
'img[src*="/th.wallhaven.cc/"]',
/\/th.wallhaven.cc\/(.*)\/(.*)\/(.*)\.(.*)$/,
'/w.wall... | JavaScript | 0 | @@ -91,16 +91,35 @@
en.cc',%0A
+ version:'3.0',%0A
prep
@@ -149,24 +149,25 @@
callback) %7B%0A
+%0A
var
@@ -176,16 +176,17 @@
s = %5B%5D;%0A
+%0A
@@ -380,16 +380,145 @@
);%0A
+%0A hoverZoom.urlReplace(res,%0A 'img%5Bsrc%5D',%0A /%5C/avatar%5C/%5Cd+%5C//,... |
b71d3c5990c88720c34a5b7bde409f6bdd763ef6 | remove old template dir | src/install.js | src/install.js | import fs from 'fs'
import os from 'os'
import co from 'co'
import ora from 'ora'
import rc from './utils/rc'
import request from 'request'
import defs from './utils/defs'
import Progress from 'progress'
import tree from './utils/tree'
import { parse, sep } from 'path'
import output from './utils/output'
import { check... | JavaScript | 0.000001 | @@ -2492,18 +2492,16 @@
%0A if
-(!
(yield e
@@ -2512,17 +2512,16 @@
s(dest))
-)
%7B%0A
@@ -2529,18 +2529,18 @@
yield
+r
m
-k
dir(dest
@@ -2543,24 +2543,28 @@
dest)%0A %7D%0A
+
%0A info =
@@ -2686,16 +2686,38 @@
aster%60%0A%0A
+ yield mkdir(dest)%0A
yiel
|
acd2f61662eb786570182c95e71a13d0ad7c3e5f | fix conversion | src/js/Game.js | src/js/Game.js | define(["./Constants","./Cube"],
function(Constants,Cube) {
var BRIDGE_CALL = {
nick: "setNick",
status: "setStatus",
posX: "setPosX",
posY: "setPosY",
posZ: "setPosZ",
rotX: "setRotX",
rotY: "setRotY",
rotZ: "setRotZ",
rotW: "setRotW",
dVx: "setDVX",
dVy: "setDVY",
... | JavaScript | 0.000001 | @@ -2579,24 +2579,25 @@
%7D%0A
+
%0A ite
@@ -2826,13 +2826,14 @@
etMy
-Float
+Double
(fro
|
76c615dfc9dc8565cb6133857544d9d69b1ddd1f | move photoThumb out of init | src/js/main.js | src/js/main.js | $(document).ready(function ready() {
function init() {
photoModal()
}
var $photoThumb = $('.photo-thumb')
var $modalImg = $('#photoModal img')
// tells the modal which photo to open
function photoModal() {
$photoThumb.on('click', function(e) {
var dataUrl = $(this).attr('src')
$modalI... | JavaScript | 0.000003 | @@ -35,50 +35,8 @@
%7B%0A%0A
- function init() %7B%0A photoModal()%0A %7D%0A%0A
va
@@ -109,16 +109,38 @@
img')%0A%0A
+ function init() %7B%0A
// tel
@@ -176,34 +176,8 @@
pen%0A
- function photoModal() %7B%0A
|
5847e7c71a249f07fb09c51f90c0b5a16af32b80 | Remove streetview image on info window | src/js/main.js | src/js/main.js | // Initialize Firebase
var config = {
apiKey: "AIzaSyAKzyUWsDXRQzIJesKLpl9Ox1d757pbLRc",
authDomain: "tptrashcan.firebaseapp.com",
databaseURL: "https://tptrashcan.firebaseio.com",
storageBucket: "tptrashcan.appspot.com",
};
firebase.initializeApp(config);
//Get user location
var defaultLocationLatit... | JavaScript | 0 | @@ -2815,24 +2815,26 @@
4%3E'%0A
+//
+ '%3Cp%3E%3Cimg
@@ -2915,24 +2915,26 @@
n='%0A
+//
+ data.lat
|
9054aad14e441c64d460e66bb7220381d960de21 | Comment unused var | src/js/menu.js | src/js/menu.js | import { focusin, focusout, handleKeyboardNavigationBetweenElementFromCollection } from './keyboard-a11y';
import ready from './ready';
ready(() => {
const checkboxIsMenuHidden = document.getElementById('gf-IsMenuHidden');
const menuButton = document.querySelector('.gf-MenuButton');
const menu = document.getElem... | JavaScript | 0 | @@ -280,24 +280,26 @@
Button');%0A
+//
const menu =
|
16a75e120781b2c7655a4c9a784d93e55f855f84 | Add Ship containsPoint() method. | src/js/ship.js | src/js/ship.js | import THREE from 'three';
const rotationMatrix = new THREE.Matrix4()
.makeRotationFromEuler( new THREE.Euler( -Math.PI / 2, 0, 0 ) );
export default class Ship extends THREE.Mesh {
constructor() {
const geometry = new THREE.CylinderGeometry( 0, 0.1, 0.5, 3 );
geometry.applyMatrix( rotationMatrix );
g... | JavaScript | 0 | @@ -136,77 +136,8 @@
);%0A%0A
-export default class Ship extends THREE.Mesh %7B%0A constructor() %7B%0A
cons
@@ -191,28 +191,24 @@
, 0.5, 3 );%0A
-
geometry.app
@@ -235,20 +235,16 @@
trix );%0A
-
geometry
@@ -266,20 +266,16 @@
mals();%0A
-
geometry
@@ -300,20 +300,16 @@
als();%0A%0A
-
con... |
71047b466fbab1ab79243aebe4b4904d7f63c849 | Fix Failed Test When No Block & Label Width Is 12 | src/js/util.js | src/js/util.js | import cx from 'classnames'
import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
const errorList = (errors) => {
let i = 0
return (errors || []).map((msg) => module.exports.error(msg, i++))
}
const error = (msg, i = 0) => { // eslint-disable-line react/display-name
c... | JavaScript | 0.99793 | @@ -2970,25 +2970,24 @@
s: false %7D)%0A
-%0A
return cx(
@@ -2993,33 +2993,27 @@
(%7B%0A %5B
-horizontalClasses
+'col-xs-12'
%5D: props
@@ -3032,33 +3032,32 @@
'horizontal' &&
-!
props.block,%0A
@@ -3054,35 +3054,41 @@
block,%0A %5B
-'col-xs-12'
+horizontalClasses
%5D: props.lay
@@ -3103,32 +3103,33... |
847e3164ee844596a9db2bd98c2b60423c6f4b88 | remove debugger statement | src/lib/url.js | src/lib/url.js | /*
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http:... | JavaScript | 0.00057 | @@ -3971,68 +3971,8 @@
) %7B%0A
- if (targetUrl.href.slice(-1) === '#') %7B%0A debugger;%0A %7D%0A
va
|
a42cbdfdba09701c5f6a16b727cbca89a64079d7 | Add release note | src/menubar.js | src/menubar.js | import crel from "crel"
import {Plugin} from "prosemirror-state"
import {renderGrouped} from "./menu"
const prefix = "ProseMirror-menubar"
function isIOS() {
if (typeof navigator == "undefined") return false
let agent = navigator.userAgent
return !/Edge\/\d/.test(agent) && /AppleWebKit/.test(agent) && /Mobile\... | JavaScript | 0 | @@ -1985,32 +1985,32 @@
entListener(
-'
+%22
scroll
-'
+%22
, this.scrol
|
574ba634d27537d0c709fe2c4ca7f676a33cc2c0 | add shortcut for instantiate Contact from from/to/room | src/message.js | src/message.js | /**
*
* wechaty: Wechat for Bot. and for human who talk to bot/robot
*
* Licenst: ISC
* https://github.com/zixia/wechaty
*
*/
const co = require('co')
const Contact = require('./contact')
const Room = require('./room')
const webUtil = require('./web-util')
const log = require('./npmlog-env')
class M... | JavaScript | 0 | @@ -2295,32 +2295,45 @@
m() %7B return
+Contact.load(
this.obj.from %7D%0A
@@ -2329,16 +2329,17 @@
obj.from
+)
%7D%0A to(
@@ -2346,32 +2346,45 @@
) %7B return
+Contact.load(
this.obj.to %7D%0A
@@ -2378,16 +2378,17 @@
s.obj.to
+)
%7D%0A con
@@ -2435,32 +2435,42 @@
m() %7B return
+Room.load(
... |
4733a9955957cf852bb7d54cfb4efae88427dd51 | Bump v0.2.1 | src/nerdbox.js | src/nerdbox.js | /* Nerdbox
* v0.2.0
*
* Nerdbox is a fully-tested, simple lightbox designed for programmers.
*/
Nerdbox = function(selector, delegate, options) {
// Allows Nerdbox to be called with or without new
if(this instanceof Nerdbox) {
this.init(selector, delegate, options);
} else {
new Nerdbox(selector, del... | JavaScript | 0.000003 | @@ -12,17 +12,17 @@
* v0.2.
-0
+1
%0A *%0A * N
|
4ce77d3f0924cf548302417a19681ea487b889a3 | correct return type | src/npm-run.js | src/npm-run.js | // LICENSE : MIT
"use strict";
var which = require("which");
var Promise = require("bluebird");
var npm = require("npm");
/**
* load `npm` config
* @returns {*}
*/
function loadNpmAsync() {
return new Promise((resolve, reject)=> {
npm.load(function (err, npm) {
if (err) {
reje... | JavaScript | 0.000002 | @@ -157,10 +157,75 @@
ns %7B
-*%7D
+Promise%7D the promise was filled when have finished load npm config.
%0A */
|
4595729cbbe599df4ea0778cdb954f2d3fe9fc8f | fix issue as a result of refactor (#5867) | packages/babel-cli/src/babel/util.js | packages/babel-cli/src/babel/util.js | import commander from "commander";
import readdir from "fs-readdir-recursive";
import * as babel from "babel-core";
import includes from "lodash/includes";
import path from "path";
import fs from "fs";
export function chmod(src, dest) {
fs.chmodSync(dest, fs.statSync(src).mode);
}
export function readdirFilter(file... | JavaScript | 0 | @@ -392,19 +392,8 @@
urn
-babel.util.
isCo
|
506b354c1b60d1d19fc1f7f25c46aed1843a9be6 | Remove lint | spec/fixtures/module/preload-pdf-loaded.js | spec/fixtures/module/preload-pdf-loaded.js | const {ipcRenderer} = require('electron')
window.addEventListener('pdf-loaded', function (event) {
ipcRenderer.send('pdf-loaded', event.detail);
})
| JavaScript | 0.000042 | @@ -143,9 +143,8 @@
ail)
-;
%0A%7D)%0A
|
5cf318838a54185e916fd2dfe269f47fd5d71c8c | Add reveal:opened and reveal:closed events | javascripts/jquery.reveal.js | javascripts/jquery.reveal.js | /*
* jQuery Reveal Plugin 1.0
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($) {
$('a[data-reveal-id]').live('click', function (event) {
event.preventDefault();
var modalLocation = $(this).attr('data-reveal-... | JavaScript | 0.000195 | @@ -1831,35 +1831,97 @@
ationSpeed,
+f
un
-lockModal
+ction () %7B%0A modal.trigger('reveal:opened');%0A %7D
);%0A
@@ -2261,27 +2261,89 @@
nSpeed,
+f
un
-lockModal
+ction () %7B%0A modal.trigger('reveal:opened');%0A %7D
);%0A
@@ -2544,36 +2544,53 @@
... |
630c6282d5f98eb5fdfe5725a06de33220841995 | fix typo | simple-static-server.js | simple-static-server.js | "use strict";
// REQUIREMENTS
var path = require('path');
var http = require('http');
var nodeStatic = require('node-static');
var colors = require('colors');
module.exports = function (options) {
options || (options = {});
// DEFAULT OPTIONS
var settings = {
port: 9000, // server port
dir... | JavaScript | 0.999991 | @@ -757,22 +757,23 @@
th.join(
-option
+setting
s.cwd, s
@@ -1583,12 +1583,12 @@
t:'.
-blue
+cyan
, (s
@@ -1606,20 +1606,19 @@
t + '').
-cyan
+red
,%0A%09%09%09'%5Cn
|
a8c390b2125089eb843564b24f8817c302db123c | Change version for tour. | assets/js/feature-tours/pagespeed-insights-force-active.js | assets/js/feature-tours/pagespeed-insights-force-active.js | /**
* Page Speed Insight Force Active tour for the dashboard.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.ap... | JavaScript | 0 | @@ -1235,30 +1235,13 @@
'1.4
-3
+4
.0',
- // @TODO version
%0A%09ga
|
458bcd1862d189b99776595ae7543fac15e2a114 | Store plug before trying to get info from it ;) | plugins/rrdstats/rrd.js | plugins/rrdstats/rrd.js | var PluginInstance = require(__core + "PluginInstance.js");
var rrd = new PluginInstance();
var request = require("request");
var plugAPI = require("plugapi");
rrd.init = function() {
rrd.statsTimer = setInterval(function () {
this.save_stats();
}, 30 * 1000);
this.save_stats();
this.plug = t... | JavaScript | 0 | @@ -175,24 +175,117 @@
unction() %7B%0A
+ this.plug = this.manager.getPlugin(%22plug%22).plugin.plug; //TODO: implement better method%0A%0A
rrd.stat
@@ -391,101 +391,8 @@
s();
-%0A%0A this.plug = this.manager.getPlugin(%22plug%22).plugin.plug; //TODO: implement better method
%0A%7D;%0A
|
5efa3b47a079292829814c8a591b40e62a4f1fb3 | change globalObject to 'this' to fix problems with web workers | build-tools/config/webpack/webpack.partial.conf.output.js | build-tools/config/webpack/webpack.partial.conf.output.js | const path = require('path');
module.exports = ({ config, isDevelopment }) => webpackConfig => ({
...webpackConfig,
output: {
path: path.join(config.projectRoot, 'dist'),
publicPath: isDevelopment ? '/' : config.dist.publicPath,
filename: isDevelopment
? '[name].js'
: path.posix.join('', co... | JavaScript | 0 | @@ -235,16 +235,42 @@
icPath,%0A
+ globalObject: 'this',%0A
file
|
bfe88a6c3505358036b106599749aeb341251207 | fix failing karma test in LinkManager_spec.js | spec/javascripts/tests/LinkManager_spec.js | spec/javascripts/tests/LinkManager_spec.js | describe('LinkManager', function() {
'use strict';
var sandbox;
beforeEach(function(done) {
var self = this;
requirejs([
'phantom-shims',
'jquery',
'LinkManager',
'eventsWithPromises'
],
function(
phantomShims,
$,
LinkManager,
eventsWithPromises
... | JavaScript | 0.000001 | @@ -4177,14 +4177,14 @@
n').
-size()
+length
).to
|
0977c5bc633ca3089e3aff3f8c53ad57edf9869e | Add b-order-group test suite | client/tests/integration/components/b-order-group-test.js | client/tests/integration/components/b-order-group-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('b-order-group', 'Integration | Component | b order group', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle... | JavaScript | 0.000005 | @@ -206,182 +206,358 @@
);%0A%0A
-test('it renders', function(assert) %7B%0A // Set any properties with this.set('myProperty', 'value');%0A // Handle any actions with this.on('myAc
+const ownerStub = Ember.Object.create(%7B displayName: 'me', phone: 'hidden' %7D);%0Aconst portionsStub = Ember.A(%5B%0A Ember.Object.... |
691aa5a7f648e69d5dc24b7c49c72bd617a284de | Add file type to query | priv/static/smoothie.js | priv/static/smoothie.js | var Smoothie = (function (Erl) {
// protocols
var SmoothieProtocols = [];
SmoothieProtocols['bert'] = (function () {
return {
encode: function (data) { return Erl.encode(data) },
decode: function (data) { return Erl.decode(data) }
}
})();
SmoothieProtocols['re... | JavaScript | 0.000001 | @@ -5210,13 +5210,9 @@
%22%5D%5B%22
-fileN
+n
ame%22
@@ -5266,16 +5266,68 @@
%22%5D%5B%22
+size%22%5D =
file
-S
+.s
ize
+;%0A options%5B%22queryParams%22%5D%5B%22type
%22%5D =
@@ -5324,35 +5324,35 @@
%5B%22type%22%5D = file.
-siz
+typ
e;%0A%0A
@@ -5719,94 +5719,73 @@
-webSocket.sen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.