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 |
|---|---|---|---|---|---|---|---|
9f1ff42f098a04029805f67f6caa70d49028bd80 | Fix bug where UI redrawing would break | src/scripts/models/core.js | src/scripts/models/core.js | import m from 'mithril';
// The core back-end model consisting of shared functions and data
class Core {
// Fetch the HTML contents at the given URL (with the given GET parameters)
static getHTML(baseURL, getParams) {
return m.request({
url: baseURL,
data: getParams,
// By default, Mithril w... | JavaScript | 0.000914 | @@ -449,17 +449,95 @@
content
+,%0A // Do not redraw views after request completion%0A background: true
%0A
-
%7D);%0A
@@ -660,16 +660,23 @@
equest(%7B
+%0A
url: dat
@@ -684,16 +684,95 @@
FilePath
+,%0A // Again, no need to redraw upon completion%0A background: true%0A
%7D);%0A... |
78be29593175e94931e755bd3a64e79e38dc8873 | Update insurance selectors | src/selectors/insurance.js | src/selectors/insurance.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2020
*/
export const selectInsuranceDiscountRate = ({ insurance }) => {
const { selectedInsurancePolicy } = insurance;
const { discountRate = 0 } = selectedInsurancePolicy || {};
return discountRate;
};
export const selectInsuranceModalOpen = ({ insuranc... | JavaScript | 0 | @@ -88,16 +88,170 @@
nsurance
+PolicyIsActive = (%7B insurancePolicy %7D) =%3E %7B%0A const %7B isActive = true %7D = insurancePolicy ?? %7B%7D;%0A return isActive;%0A%7D;%0A%0Aexport const selectInsurancePolicy
Discount
@@ -261,32 +261,38 @@
e = (%7B insurance
+Policy
%7D) =%3E %7B%0A const
@@ -296,60 +296,197... |
456affb9261414bf50269e36f22dc18fb991c0df | send OK earlier and let async tasks for mail generation run afterwards | src/server/api/orderApi.js | src/server/api/orderApi.js | const fs = require('fs');
const { authorization, isAdmin } = require('./auth');
const bodyParser = require('body-parser');
const Logger = require('../logger');
const envConfig = require('../../config/envConfig');
const stripe = require('stripe')(envConfig.getSecretKey('PAYMENT_SECRET'));
const esrGenerator = require('.... | JavaScript | 0 | @@ -3991,32 +3991,75 @@
s))%0A )%0A
+ .then(() =%3E res.sendStatus(200))%0A
.then(
@@ -4060,24 +4060,24 @@
.then(() =%3E%0A
-
@@ -4357,51 +4357,8 @@
)%0A
- .then(() =%3E res.sendStatus(200))%0A
@@ -4932,16 +4932,47 @@
(items);
+%0A res.sendStatus(... |
802fff5ceddcfda42e2fb71f6306616d94cffbc7 | Draggable.position should return the "snapped" position | src/draggable.js | src/draggable.js | // =============================================================================
// Boost.js | Draggable Component
// (c) Mathigon
// =============================================================================
import { Evented, clamp } from '@mathigon/core';
import { roundTo } from '@mathigon/fermat';
import { Brow... | JavaScript | 0.999999 | @@ -500,20 +500,17 @@
snap =
-null
+1
) %7B%0A
@@ -1808,26 +1808,108 @@
return
-this._posn
+%7B%0A x: roundTo(this._posn.x, this.snap),%0A y: roundTo(this._posn.y, this.snap)%0A %7D
;%0A %7D%0A%0A
|
6384a56ca400c8bc811809a1d040960a61b822dc | Fix inconsistenct storage | src/server/services/dao.js | src/server/services/dao.js | var fs = require('fs');
var path = require('path');
var lowdb = require('lowdb');
var storage = require('lowdb/file-async');
var dao = {};
var REFRESH_RATE = 1000 * 60 * 10;
var dbPath = path.resolve(__dirname, 'db.json');
if (!isDbCreated()) {
createDb();
}
var db = getDb();
function getDb() {
return lowdb(d... | JavaScript | 0.000001 | @@ -215,16 +215,34 @@
.json');
+%0Avar db = getDb();
%0A%0Aif (!i
@@ -244,24 +244,24 @@
f (!isDb
-Created(
+Valid(db
)) %7B%0A
@@ -274,34 +274,16 @@
eDb();%0A%7D
-%0Avar db = getDb();
%0A%0Afuncti
@@ -376,125 +376,104 @@
isDb
-Created() %7B%0A try %7B%0A fs.statSync(dbPath);%0A return true;%0... |
a6ec8caa475d929508ba3624cc10146519f917a6 | Set cursor to hand when over simplestyle points. | src/simplestyle_factory.js | src/simplestyle_factory.js | function simplestyle_factory(feature) {
var sizes = {
small: [20, 50],
medium: [30, 70],
large: [35, 90]
};
var fp = feature.properties || {};
var size = fp['marker-size'] || 'medium';
var symbol = (fp['marker-symbol']) ? '-' + fp['marker-symbol'] : '';
var color = fp['marke... | JavaScript | 0 | @@ -683,16 +683,43 @@
+ 'px';
+%0A ds.cursor = 'pointer';
%0A%0A ds
|
c7fcfa3c9f46148180a10f5f6a9529ea25dc10a3 | change the header title and subtitle of comment #165 | src/intl/locale-data/es.js | src/intl/locale-data/es.js | export default {
// globals
'global--brand-name': '#VivosEnNosotros',
'footer--home': 'Habla con nosotros:',
// page memory create
'page--memory-create.form-description': '{strong} Después de publicada, usted podrá compartir esa página en las redes sociales y decir a todos como esa persona permanece viva en ... | JavaScript | 0 | @@ -762,17 +762,16 @@
'%C2%BFQuiere
-s
contrib
@@ -774,17 +774,19 @@
tribuir
-a
+con
ese hom
@@ -865,28 +865,35 @@
'Cu
-ente aqu%C3%AD su memoria
+%C3%A9ntanos tambi%C3%A9n su recuerdo
',%0A%0A
|
c50f713dedd1a7cec12fc5b7db3c7683d5cf34fb | return false to prevent form submitting | src/jQuery-image-upload.js | src/jQuery-image-upload.js | /*
* jQuery prioritize events
*
* A jQuery plugin that adds controls to the selected jQuery
* elements with a simple call.
*
* Example:
*
* $("img").imageUpload();
*
* Copyright (c) jillix GmbH
* License: MIT License
*
* */
(function ($) {
// defaults
var defaults = {
wrapCo... | JavaScript | 0.000004 | @@ -2512,28 +2512,146 @@
() %7B
- $fileInput.click();
+%0A $fileInput.click();%0A return false;%0A
%7D)%0A
|
9c1bcd9f8577ad507759fe90f3c0fa10b8c64e1c | Update extension.js | src/extension.js | src/extension.js | (function(exports) {
/*============================================================
===========================Variables==========================
============================================================*/
var prefix = 'doctyp-';
var header = {
'header1': {pattern: /\#/gm, regex: /^\#{1}(?!\#)(.*?)$/g... | JavaScript | 0.000001 | @@ -2180,32 +2180,40 @@
var temp =
+exports.
Prepare(match).r
@@ -2691,16 +2691,24 @@
temp =
+exports.
Prepare(
|
e118c37f896c68c964516bb7991ac23aebe9180b | Set default delay to 0 | src/extension.js | src/extension.js | // noinspection JSUnusedGlobalSymbols
const browser = this.chrome && chrome.runtime ? chrome : this.browser;
const extension = {
options: {
sync: new OptionSection(browser.storage.sync, {
delay: 900,
wrapNavigation: false,
hideOutline: false,
autoSelectFirst: true,
nextKey: ['down',... | JavaScript | 0.000009 | @@ -205,10 +205,8 @@
ay:
-90
0,%0A
|
401de39ee4cf2355c3fd5c6013c1f44907193cc2 | Return list of values from form_keys() | src/form_keys.js | src/form_keys.js | /**
* @file Manage a form that builds a set of keys
* @author Andrew Sayers
*/
/**
* @summary Manage a form that builds a set of keys
* @param {BulletinBoard} bb Bulletin board to retrieve data from
* @param {jQuery} form Form to manage
* @param {function} callback Called when the form cha... | JavaScript | 0.000003 | @@ -688,16 +688,27 @@
eys = %7B%7D
+, list = %5B%5D
;%0A
@@ -1271,24 +1271,102 @@
'value' );%0A
+ list.push(%7B element: this, text: value, value: data_value %7D);%0A
@@ -2449,16 +2449,22 @@
ck(keys,
+ list,
event);
@@ -2669,24 +2669,67 @@
d', true );%0A
+ element.r... |
b2ceaaf262a3224f6470ddd5affc3baec4935deb | Include conditional operators in in-builts | operators.js | operators.js | /**
* Spaghetti's in built operators
* @type {Object}
*/
let variables = {};
let operators = {};
// Console I/O operators
Object.assign(operators, require("./operators/consoleio"));
// Stack operators
Object.assign(operators, require("./operators/stack"));
// Arithmetic operators
Object.assign(operators, require(... | JavaScript | 0.000003 | @@ -428,16 +428,104 @@
al%22));%0A%0A
+// Conditional operators%0AObject.assign(operators, require(%22./operators/conditional%22));%0A%0A
module.e
|
6d916aed6b31f4d860efb52f6b94e3d3ce49d1ba | rename loadListener, errorListener to onInternalLoad, onInternalError, declare with "regular" function syntax | src/loaders/ImageLoader.js | src/loaders/ImageLoader.js | /**
* @author mrdoob / http://mrdoob.com/
*/
import { Cache } from './Cache.js';
import { DefaultLoadingManager } from './LoadingManager.js';
function ImageLoader( manager ) {
this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
}
Object.assign( ImageLoader.prototype, {
crossOrigin: 'A... | JavaScript | 0 | @@ -867,68 +867,31 @@
%0A%0A%09%09
-var loadListener, errorListener;%0A%0A%09%09loadListener = function
+function onInternalLoad
() %7B
@@ -926,36 +926,38 @@
er( 'load',
-loadListener
+onInternalLoad
, false );%0A%09
@@ -990,36 +990,38 @@
r( 'error',
-errorListene
+onInternalErro
r, false );%0A
@@ -1124,38 +11... |
c734f066a3e0421e64b4c1645e7604e88b3e26bd | Fix update profile | modules/users/server/controllers/users/user.profile.server.controller.js | modules/users/server/controllers/users/user.profile.server.controller.js | 'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
fs = require('fs'),
path = require('path'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
db = require(path.resolve('./config/lib/sequelize')).models,
User = db.user;
/**
* Update... | JavaScript | 0 | @@ -524,24 +524,25 @@
if (user) %7B%0A
+%0A
// Merge
@@ -567,16 +567,27 @@
user =
+User.build(
_.extend
@@ -602,17 +602,19 @@
eq.body)
-;
+);%0A
%0A use
|
c0130f585f9d67cd26bf98495cdabb67a7e74612 | create dispatcher | app/scripts/boot.js | app/scripts/boot.js | /*jshint esnext: true */
"use strict";
import * as ACTIONS from "./actions";
import OrientationStore from "./orientation-store";
import SplashComponent from "./splash-component";
var store = OrientationStore();
function Actions() {
window.console.log("Booting....");
return {
accelerometerReading: function (... | JavaScript | 0.000086 | @@ -174,17 +174,16 @@
nent%22;%0A%0A
-%0A
var stor
@@ -216,24 +216,554 @@
unction
-Actions(
+SplashStore() %7B%0A return Object.create(%7B%0A dispatch: function () %7B%0A console.log(%22splash store dispatching%22);%0A %7D%0A %7D);%0A%7D%0Avar splashStore = SplashStore();%0A%0Avar DispatcherPrototype =... |
21a09dbf0968b30a977701cda1980fb27fab325a | remove unnecessary stuff | app/scripts/data.js | app/scripts/data.js | import Spreadsheet from './spreadsheet.js';
export default class Data {
constructor() {
/**
* The data source.
*/
this.source = new Spreadsheet();
this.mandatoryItems = [];
}
/**
* Returns a promise which returns the data from source when resolves.
* @param {object} options The sour... | JavaScript | 0.000232 | @@ -2193,1207 +2193,7 @@
%0A %7D
-%0A%0A /**%0A * Returns the hotspot ids for all hotspots.%0A * @return %7BArray.string%7D The hotspot ids%0A */%0A getHotspotIds() %7B%0A const data = this.data%5Bthis.sheet%5D.data;%0A%0A return this.getIds(data);%0A %7D%0A%0A /**%0A * Returns all hotspot ids for a... |
37f371cf20e939c4a0bd8f8776ee585f3688ce6c | make map responsive | app/scripts/main.js | app/scripts/main.js | var mapId = '#map';
var width = $(mapId).width(),
height = 500;
var projection = d3.geo.conicConformal()
.rotate([98, 0])
.center([0, 38])
.parallels([29.5, 45.5])
.scale(1000)
.translate([width / 2, height / 2])
.precision(.1);
var path = d3.geo.path()
.projection(projection);
var s... | JavaScript | 0 | @@ -4,68 +4,68 @@
map
-Id
=
+d3.select(
'#map'
+)
;%0A%0Avar
-width = $(mapId).width(),%0A
+mapRatio = 0.5;%0Avar width,
height
- = 500
;%0A%0Av
@@ -179,65 +179,8 @@
5%5D)%0A
- .scale(1000)%0A .translate(%5Bwidth / 2, height / 2%5D)%0A
@@ -265,43 +265,199 @@
g =
-d3.select(mapId).append(%22... |
1359e8dff2200bdaa527d8938c5a9f340e779455 | Fix for 'start' option | assets/javascripts/more_paginate.js | assets/javascripts/more_paginate.js | (function($){
$.fn.extend({
morePaginate: function(options) {
var options = $.extend($.fn.morePaginateDefaults, options);
return this.each(function() {
var link = $(this);
if ("#" == link.attr("href")) {
link.addClass(options.disabledClass);
link.attr("data-sort-... | JavaScript | 0.998645 | @@ -694,59 +694,8 @@
t);%0A
- %7D,%0A ajaxStart: function() %7B%0A
|
8d386131d9cb504a7d85f662530b499f803152a8 | use the keyword field to filter categories (#1326) | assets/js/api/elasticSearchUtils.js | assets/js/api/elasticSearchUtils.js | import { ALPHABETICAL, RELEASE_DATE, VITALITY } from '../utils/constants.js';
import { lang } from '../utils/l10n.js';
export const buildFilter = (filters) => {
let { intendedAudiences, categories, developmentStatuses } = filters;
const { pnrr, pnrrTargets, pnrrMeasures } = filters;
intendedAudiences = Array.is... | JavaScript | 0.000001 | @@ -723,16 +723,24 @@
tegories
+.keyword
': filte
|
58ede508aa46914968669f9f7d826fd27a326f93 | Update pause_test.js | packages/ember-testing/lib/helpers/pause_test.js | packages/ember-testing/lib/helpers/pause_test.js | /**
@module ember
*/
import { RSVP } from 'ember-runtime';
import { assert, info } from '@ember/debug';
let resume;
/**
Resumes a test paused by `pauseTest`.
@method resumeTest
@return {void}
@public
*/
export function resumeTest() {
assert('Testing has not been paused. There is nothing to resume.', resume);
... | JavaScript | 0.000002 | @@ -707,16 +707,41 @@
qunit (
+timeout available to use
as of 2.
@@ -834,16 +834,74 @@
%0A%0A mocha
+ (timeout happens automatically as of ember-mocha v0.14.0)
:%0A%0A %60%60%60%0A
|
aa283b54bbc1c86bf53ab12d8f0b0e40cc7e9144 | Make aux comments opt in | babel-defaults.js | babel-defaults.js | /* eslint-disable object-shorthand */
module.exports = {
// We need to make sure that the transpiler hit the linoleum source since we are
// not building to npm or simliar.
ignore: function(filename) {
return ((/node_modules/.test(filename))
&& !(/linoleum(-[^/]*)?\/(electron|src|tasks|Gulpfile)/.test... | JavaScript | 0 | @@ -396,107 +396,8 @@
e',%0A
- auxiliaryCommentBefore: 'istanbul ignore start',%0A auxiliaryCommentAfter: 'istanbul ignore end',%0A
pr
|
2d4ca91e81d74dbb5aa5eacf20edea8cdce3172b | Update init.js | canvas/init.js | canvas/init.js | if(!Canvas) {
var Canvas = {
configured: false,
relWidth: null,
relHeight: null,
element: null,
context: null
};
}
| JavaScript | 0.000001 | @@ -3,16 +3,51 @@
(!Canvas
+ %7C%7C KAPhy.version !== KAPhy.current
) %7B%0A va
|
5dc0b0f1c650ac6fb073cf3397a3bbe120ae834a | Add test for the module function | test/typographic-fixer.js | test/typographic-fixer.js | import expect from 'expect.js'
import typo from '../src/typographic-fixer'
describe('rules', () => {
let [fixer] = []
beforeEach(() => {
fixer = typo()
})
it('throws when called without a lang', () => {
expect(() => { fixer.rules() }).to.throwError()
})
it('throws when called without a block', (... | JavaScript | 0.000002 | @@ -69,16 +69,254 @@
fixer'%0A%0A
+describe('typographyFixer', () =%3E %7B%0A it('returns a new fixer object', () =%3E %7B%0A const fixer = typo()%0A%0A expect(fixer.check).to.be.a(Function)%0A expect(fixer.fix).to.be.a(Function)%0A expect(fixer.rules).to.be.a(Function)%0A %7D)%0A%7D)%0A%0A
describe
|
b23fbf1e72dc8ba5d29729dea3936ca014fcdb25 | Implement TweetDeck alert popup check | Resources/code.js | Resources/code.js | (function($,$TD){
//
// Constant: List of valid font size classes.
//
var fontSizeClasses = [ "txt-base-smallest", "txt-base-small", "txt-base-medium", "txt-base-large", "txt-base-largest" ];
//
// Variable: Says whether TweetDick events was initialized.
//
var isInitialized = false;
//
// Var... | JavaScript | 0.000001 | @@ -1816,24 +1816,147 @@
%7D;%0A %0A
+ window.TD.controller.notifications.isPermissionGranted = function()%7B%0A return true;%0A %7D;%0A %0A // Finish init%0A
isInitia
@@ -2720,49 +2720,137 @@
-// TODO check if popups are enabled first
+%0A var data = TD.controller.columnManager... |
dcf5acfb7b25151c85374403e83862aed26cc6c8 | error view title is err.message | examples/app.js | examples/app.js | const flicker = require('../');
const favicon = require('serve-favicon');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const compress = require('compression');
const logger = require('morgan');
let app = flicker();
let fooRouter = app.Router();
let barRouter = require('./rou... | JavaScript | 0.999651 | @@ -2365,15 +2365,19 @@
le:
-'Error'
+err.message
, er
|
d6b7f920461e008c405c08c55a7250ba7cd2adab | 変更しました。 | Resources/win1.js | Resources/win1.js | //win1の内容を記述
//地図の情報を記述
var win = Ti.UI.currentWindow; //前のwinの情報をもらってる?
var user_id = win.user_id;
// Google Mapsを表示するView[mapView]を生成
var mapView = Ti.UI.createView();
//スポット情報の挿入
var spot = {} ;
(function() {
var ds = {};
var picture = Ti.Network.createHTTPClient();
var url = "http://www31092u.sakura.ne.jp/~g03... | JavaScript | 0.000003 | @@ -2610,17 +2610,16 @@
%09%09%09%7D)();
-
%0A%0A%09%7D%0A%0A%09p
@@ -3682,17 +3682,23 @@
%0A%7B%0A /
-/
+*%0A
alert(%22l
@@ -3708,16 +3708,19 @@
tude%22);%0A
+*/%0A
if (
|
70a05949c7b14402656c911e1e47330931a899d4 | Fix issue with True Color support | test/unit/FigText.test.js | test/unit/FigText.test.js | import {assert} from 'chai';
import Cursor from 'kittik-cursor';
import sinon from 'sinon';
import FigText from '../../src/FigText';
const cursor = Cursor.create();
describe('Shape::FigText', () => {
it('Should properly create FigText instance', () => {
const text = new FigText(cursor);
assert.instanceOf(te... | JavaScript | 0 | @@ -2101,37 +2101,38 @@
).withExactArgs(
-false
+'none'
).returns(cursor
@@ -2186,21 +2186,22 @@
actArgs(
-false
+'none'
).return
@@ -3346,37 +3346,38 @@
background:
-false
+'none'
,%0A foregr
@@ -3386,13 +3386,14 @@
nd:
-false
+'none'
,%0A
|
3fd963c6b3562d8c2cdfc9ee2e769879a68b8d79 | update formatting | lib/interfaces/hapi.js | lib/interfaces/hapi.js | /**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | JavaScript | 0.000002 | @@ -762,17 +762,17 @@
isString
-%0A
+
var isFu
@@ -995,17 +995,16 @@
.js');%0A%0A
-%0A
/**%0A * T
@@ -1495,17 +1495,16 @@
%0A%0A if (
-
isPlainO
@@ -1552,25 +1552,24 @@
viceContext)
-
) %7B%0A%0A ser
@@ -1812,42 +1812,8 @@
ice,
-%0A
ver
@@ -2918,17 +2918,16 @@
%0A%0A ... |
f10dde048ea0bbe53f4557da73f2cec195275ab8 | make sure promises returned by gatsby remark plugins are "awaited" (#101) | packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js | packages/gatsby-plugin-mdx/utils/get-source-plugins-as-remark-plugins.js | const visit = require("unist-util-visit");
const _ = require("lodash");
const HTMLtoJSX = require("htmltojsx");
const map = require("unist-util-map");
const debug = require("debug")("get-source-plugins-as-remark-plugins");
let fileNodes;
const htmlToJSXConverter = new HTMLtoJSX({
createClass: false
});
// ensure o... | JavaScript | 0 | @@ -2183,22 +2183,37 @@
;%0A
-return
+const wrappedPlugin =
() =%3E%0A
@@ -2271,16 +2271,22 @@
+await
required
@@ -2603,16 +2603,51 @@
%7D;
+%0A%0A return %5BwrappedPlugin, %7B%7D%5D;
%0A %7D);
@@ -2700,32 +2700,33 @@
...userPlugins,
+%5B
htmlToJSXPlugin%5D
@@ -2720,24 +2720,29 ... |
d16c1efd6745d1c24ce32f3498fb058337363e28 | update display name of tank when changing script name | packages/jsbattle-webpage/src/controller/action/editor/renameAiScript.js | packages/jsbattle-webpage/src/controller/action/editor/renameAiScript.js | export default (stateHolder, aiRepository) => {
return (newName, oldName) => {
stateHolder.setState((state) => {
aiRepository.renameScript(newName, oldName);
let battleSet = state.battle.battleSet;
battleSet.getTankByName(oldName).name = newName;
console.log(`Tank '${oldName}' renamed to... | JavaScript | 0.000001 | @@ -212,24 +212,35 @@
leSet;%0A
+ let tank =
battleSet.g
@@ -260,16 +260,28 @@
oldName)
+;%0A tank
.name =
@@ -289,16 +289,50 @@
ewName;%0A
+ tank.displayName = newName;%0A
co
@@ -384,16 +384,22 @@
wName%7D'%60
+, tank
);%0A%0A
|
0fe868fabd857bad931141cb57b379182fa8d364 | fix specs | test/unit/filter/range.js | test/unit/filter/range.js | 'use strict';
var assert = require('assert');
var Range = require('../../../lib/filter/range');
describe('range-filter', function () {
describe('without limits', function () {
it('should throw an error', function() {
var shouldThrow = function () {
this.column = 'age';
... | JavaScript | 0.000001 | @@ -583,16 +583,25 @@
with min
+_or_equal
value',
@@ -607,32 +607,32 @@
, function () %7B%0A
-
var EXPE
@@ -730,24 +730,1258 @@
ge %3E= 18';%0A%0A
+ beforeEach(function () %7B%0A this.column = %7B name: 'age' %7D;%0A this.filterParams = %7B%0A min_or_equal: 18%0... |
985b41c6450374539d433ab5eef04d64a9269543 | clean up | app/social/index.js | app/social/index.js | 'use strict';
angular.module('myApp.social', []).controller('SocialCtrl',
["$scope", "authService", "followerSvc", "$q", "userSvc", "$location",
function SocialCtrl($scope, authService, followerSvc, $q, usersService, $location) {
let loadFolloweds = () => {
$scope.loadingFolloweds = true;
au... | JavaScript | 0.000001 | @@ -2089,50 +2089,8 @@
h(%7B%0A
-%09%09%09 verbose: true,%0A%09%09%09 debug: true,%0A
%09%09%09
@@ -2124,30 +2124,17 @@
rl:
-'http://localhost:3000
+%60$%7BbeURL%7D
/use
@@ -2152,17 +2152,17 @@
=%7Bquery%7D
-'
+%60
%0A%09%09%09
@@ -2266,74 +2266,8 @@
) %7B%0A
-%09%09%09%09 %09console.log(%22QUE PA... |
8cfdb4ce091dc947ffe3f9b4a8a98c04b236f208 | Clarify initial event | src/stores/RoomViewStore.js | src/stores/RoomViewStore.js | /*
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | JavaScript | 0.999999 | @@ -1046,33 +1046,53 @@
o scroll to
-initially
+when the room is first viewed
%0A initial
|
61d8c049a9e91ff90f8665ed12ca40ae5bc94c4f | Add viewbox to empty svg | src/styles/Icons/_Sprite.js | src/styles/Icons/_Sprite.js | import React from "react";
import PropTypes from "prop-types";
import SVG from "./assets/_sprite.svg";
import s4e from "svg4everybody";
export default class Sprite extends React.Component {
static loaded = false;
static propTypes = {
id: PropTypes.string,
viewBox: PropTypes.string
};
state = {
re... | JavaScript | 0.000001 | @@ -983,16 +983,59 @@
urn %3Csvg
+ viewBox=%7BviewBox%7D className=%7B%22svg-sprite%22%7D
/%3E;%0A
|
27b146fe8214b3174c7268003ef1ae51ba78085c | Remove string polyfill to conform to standard lint | example/server/public/client.js | example/server/public/client.js | 'use strict'
// polyfill startsWith
if (!String.prototype.startsWith) {
// noinspection Eslint
String.prototype.startsWith = function (searchString, position) {
position = position || 0
return this.substr(position, searchString.length) === searchString
}
}
// This has been written to simulate dynamic lo... | JavaScript | 0.000001 | @@ -14,131 +14,168 @@
%0A//
-polyfill startsWith%0Aif (!String.prototype.startsWith) %7B%0A // noinspection Eslint%0A String.prototype.startsWith = function (
+This has been written to simulate dynamic loading of pages%0A// as a testbed for the tamarin module and has deliberate delays%0A%0Afunction startsWith (sour... |
5ebb3d6eecd37066d46f237c8b4d5cff6b9dd31a | clean up layer data in playback middleware on LAYER_REMOVE_ALL | src/middleware/playback.js | src/middleware/playback.js | import { LAYER_ADD, LAYER_REMOVE, LAYER_SET_VOLUME, PLAYBACK_LISTENER_ADD, PLAYBACK_LISTENER_REMOVE, PLAYBACK_START, PLAYBACK_STOP, VOLUME_SET } from '../actions';
import { layerLoadNotes } from '../actions';
import { NOTE_VALUE_OFF, NOTE_VALUE_ON, NOTE_VALUE_ACCENT } from '../constants';
import MessageBus from '../uti... | JavaScript | 0.000001 | @@ -26,16 +26,34 @@
_REMOVE,
+ LAYER_REMOVE_ALL,
LAYER_S
@@ -3577,32 +3577,38 @@
buffer
+Source
sByLayerId.delet
@@ -3622,24 +3622,235 @@
n.layerId);%0A
+ buffersByLayerId.delete(action.layerId);%0A break;%0A case LAYER_REMOVE_ALL:%0A gainsByLayerId.clear();%0A ... |
19246c88cf7b29e736773522bd669aa866c305f5 | Fix W3C test harness to work on node >= 0.11.7. | test/w3c/harness/index.js | test/w3c/harness/index.js | var fs = require('fs');
var vm = require('vm');
var assert = require('assert');
var util = require('util');
var Path = require('path');
var domino = require('../../../lib');
var impl = domino.createDOMImplementation();
var globals = {
assertEquals: function(message, expected, actual) {
assert.equal(actual, expec... | JavaScript | 0 | @@ -1103,24 +1103,29 @@
unction run(
+ctx,
file) %7B%0A
@@ -1204,16 +1204,45 @@
x;%0A %7D%0A%0A
+ function makeContext() %7B%0A
var ct
@@ -1299,16 +1299,18 @@
context%0A
+
Object
@@ -1350,16 +1350,18 @@
) %7B%0A
+
ctx%5Bk%5D =
@@ -1396,13 +1396,17 @@
e%0A
+
+
%7D);%0A%0A
+
ct
@@ ... |
436431a16e086c2eeec11d784930717438b2f277 | Add more parse test | test/wef.cssParserTest.js | test/wef.cssParserTest.js | /*!
* wef.cssParser tests
* Copyright (c) 2011 Pablo Escalada
* MIT Licensed
*/
module("cssParser");
test("namespace", function() {
notEqual(wef.cssParser , undefined, "is wef.cssParser namespace defined?");
equal(typeof wef.cssParser, "function", "is wef.cssParser a function?");
});
test("constructor", fu... | JavaScript | 0 | @@ -1325,15 +1325,319 @@
xception%22);%0A
+ notEqual(wef.cssParser().parse(%22body%7B%7D%22), null, %22empty cssRule throws an exception%22);%0A notEqual(wef.cssParser().parse(%22body%7B234%7D%22), null, %22invalid cssRule declaration throws an exception%22);%0A notEqual(wef.cssParser().parse(%22body%7B%7D h1... |
9011e3f17244071ce59522169f41e4d8d9f61ef1 | Rename bind methods | lib/jquery.gridList.js | lib/jquery.gridList.js | ;(function($, window, document, undefined) {
var DraggableGridList = function(element, options) {
this.options = $.extend({}, this.defaults, options);
this.$element = $(element);
this.init();
};
DraggableGridList.prototype.defaults = {
DOMDataKey: '_gridList',
listItemSelector: '> li',
i... | JavaScript | 0.000002 | @@ -717,24 +717,28 @@
tance.unbind
+Drag
Events();%0A
@@ -1513,24 +1513,28 @@
this.bind
+Drag
Events();%0A
@@ -1567,24 +1567,28 @@
ototype.bind
+Drag
Events = fun
@@ -1827,16 +1827,20 @@
e.unbind
+Drag
Events =
|
8d52324884af0e4fb2263a468b517dafe06d5dbc | Fix the mock-get-user-media now that opentok.js is using navigator.mediaDevices.getUserMedia | src/mock-get-user-media.js | src/mock-get-user-media.js | // Takes a mockOnStreamAvailable function which when given a webrtcstream returns a new stream
// to replace it with.
module.exports = function mockGetUserMedia(mockOnStreamAvailable) {
let oldGetUserMedia;
if (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia) {
oldGetUserMedi... | JavaScript | 0.002598 | @@ -918,21 +918,18 @@
%7D;%0A %7D
+%0A
-else
if (nav
@@ -1112,17 +1112,16 @@
serMedia
-
(constra
@@ -1153,25 +1153,16 @@
Promise(
-function
(resolve
@@ -1170,16 +1170,19 @@
reject)
+ =%3E
%7B%0A
|
52bb32c96ff197f933916e64eb0a767629111a67 | fix authUnAuth | src/model-services/user.js | src/model-services/user.js | import axios from 'axios';
import io from 'socket.io-client';
import { graphql } from './server-apis';
const authUser = (
{ email, password },
onSuccess = (() => {}),
onError = (() => {}),
) => {
axios
.post('/auth', { email, password })
.then((response) => (response.data.user))
.then(onSuccess)
.catc... | JavaScript | 0.999991 | @@ -325,24 +325,340 @@
Error);%0A%7D;%0A%0A
+const checkAuth = (%0A processResultAuth = (() =%3E %7B%7D),%0A processResultUnAuth = (() =%3E %7B%7D),%0A) =%3E %7B%0A axios%0A .get('/auth/checkAuth')%0A .then((response) =%3E response.data.user)%0A .then((user) =%3E %7B%0A if (user && user.email) %7B%0A pro... |
cf5c3af4cf27a9a6381f33cbad81ddc97a212adf | Use new popover gravity. Fix initial popup delay | client/common/init/usercard_popover.js | client/common/init/usercard_popover.js | 'use strict';
//
// Cache user profiles for 5 minutes
//
var CACHE = {};
var CACHE_TTL = 5 * 60 * 1000; // time in ms
//
// Time in milliseconds before showing a popover
//
var POPOVER_INTENT = 500;
//
// Cross-browser Date.now()
//
function now() {
return (new Date()).getTime();
}
//
// Returns user in... | JavaScript | 0.000001 | @@ -868,27 +868,55 @@
%5B 'n
-w', 'sw', 'ne', 'se
+e-nodeca', 'se-nodeca', 'nw-nodeca', 'sw-nodeca
' %5D;
@@ -1817,32 +1817,95 @@
-$.powerTip.showTip($this
+setTimeout(function () %7B%0A $.powerTip.showTip($this);%0A %7D, POPOVER_INTENT
);%0A
|
c95d03bec193cd1664229b29f4101f0c99e8156a | convert tabs to spaces | challengers.js | challengers.js | // Welcome!
// Add your github user if you accepted the challenge!
var players = [
'raphamorim',
'israelst',
'afonsopacifer',
'rafaelfragosom',
'brunokinoshita',
'paulinhoerry',
'enieber',
'alanrsoares',
'viniciusdacal',
'thiagosantana'
];
module.exports = players;
| JavaScript | 0.999944 | @@ -77,17 +77,20 @@
ers = %5B%0A
-%09
+
'raphamo
@@ -95,17 +95,20 @@
morim',%0A
-%09
+
'israels
@@ -111,17 +111,20 @@
aelst',%0A
-%09
+
'afonsop
@@ -132,17 +132,20 @@
cifer',%0A
-%09
+
'rafaelf
@@ -176,17 +176,20 @@
shita',%0A
-%09
+
'paulinh
@@ -196,17 +196,20 @@
oerry',%0A
-%09
+
'... |
eea034abf6b6b8600483488794934cb0ad7239cb | remove extra normalize method | src/transforms/normalize.js | src/transforms/normalize.js |
/**
* Only allow block nodes in documents.
*
* @type {Object}
*/
const DOCUMENT_CHILDREN_RULE = {
match: (node) => {
return node.kind == 'document'
},
validate: (document) => {
const { nodes } = document
const invalids = nodes.filter(n => n.kind != 'block')
return invalids.size ? invalids : ... | JavaScript | 0.00005 | @@ -1,2494 +1,4 @@
-%0A/**%0A * Only allow block nodes in documents.%0A *%0A * @type %7BObject%7D%0A */%0A%0Aconst DOCUMENT_CHILDREN_RULE = %7B%0A match: (node) =%3E %7B%0A return node.kind == 'document'%0A %7D,%0A validate: (document) =%3E %7B%0A const %7B nodes %7D = document%0A const invalids = nodes.fil... |
d9537ebbf43438777c1d0b87133f7f6a375ab665 | Fix getting proxy logs | src/modules/proxy/index.js | src/modules/proxy/index.js | import * as _ from 'underscore';
import { getDockerLogs, resolvePath, runTaskList } from '../utils';
import debug from 'debug';
import nodemiral from 'nodemiral';
const log = debug('mup:module:proxy');
export const PROXY_CONTAINER_NAME = 'mup-nginx-proxy';
export function help(/* api */) {
log('exec => mup proxy... | JavaScript | 0.000001 | @@ -801,16 +801,25 @@
etArgs()
+.slice(1)
;%0A cons
|
1cd9e7e23e10cca4056bc58830b5aeed76fedf70 | Handle weird MIME edge case with @ symbol | packages/isomorphic-core/src/sendmail-client.es6 | packages/isomorphic-core/src/sendmail-client.es6 | /* eslint no-useless-escape: 0 */
import fs from 'fs'
import nodemailer from 'nodemailer'
import mailcomposer from 'mailcomposer'
import {APIError} from './errors'
import {convertSmtpError} from './smtp-errors'
const MAX_RETRIES = 1;
const formatParticipants = (participants) => {
return participants.map(p => `${p.n... | JavaScript | 0.005716 | @@ -276,16 +276,249 @@
s) =%3E %7B%0A
+ // Something weird happens with the mime building when the participant name%0A // has an @ symbol in it (e.g. a name and email of hello@gmail.com turns into%0A // 'hello@ %3Cgmail.com hello@gmail.com%3E'), so replace it with whitespace.%0A
return
@@ -549,16 +549,34 @@
$%7... |
8c2ae74ab9dc7dfc1a1771f9ec8df693bb248d0d | Fix error message error | src/renderPosts.js | src/renderPosts.js | 'use strict';
const fs = require('fs-extra');
const util = require('./utils');
module.exports = function renderPosts(posts, template) {
if (!Array.isArray(posts)) {
posts = [posts];
}
if (!util.exists(template)) {
throw new Error('Error renderong posts. Check config.json.post_template');
}
const Post... | JavaScript | 0.000971 | @@ -268,16 +268,19 @@
. Check
+./_
config.j
|
e896c415c5f3deece904c9ee8ae97c3c9fc7792b | Add `LazyParser` case | packages/loquat-core/test/parser/extendParser.js | packages/loquat-core/test/parser/extendParser.js | /*
* loquat-core test / parser.extendParser()
* copyright (c) 2016 Susisu
*/
"use strict";
const chai = require("chai");
const expect = chai.expect;
const _parser = require("parser.js");
const AbstractParser = _parser.AbstractParser;
const Parser = _parser.Parser;
const extendParser = _parser.extendPars... | JavaScript | 0 | @@ -268,24 +268,67 @@
ser.Parser;%0A
+const LazyParser = _parser.LazyParser;%0A
const extend
@@ -1670,17 +1670,32 @@
r object
-%0A
+s%0A %7B%0A
@@ -1729,32 +1729,36 @@
=%3E %7B%7D);%0A
+
+
expect(parser.ex
@@ -1777,32 +1777,36 @@
l(%22x%22);%0A
+
+
expect(parser.e... |
c4f32d86c3477c56d40f3be82637590c8880ad64 | fix mapchart controller | frontend/app/Controller/GraphsControllers/MapChartController.js | frontend/app/Controller/GraphsControllers/MapChartController.js | /*jshint node: true */
'use strict';
/*
* Name : MapChartController.js
* Module : FrontEnd::Controller::GraphsController
* Location : /frontend/app/Controller/GraphsController
*
* History :
* Version Date Programmer Description
* ================================================... | JavaScript | 0 | @@ -713,99 +713,8 @@
er',
- %5B'$scope', '$location', 'MapChartFactory', 'MapChartFlowFactory', 'SocketServicesFactory',
fun
@@ -3230,11 +3230,10 @@
ts;%0D%0A%0D%0A%7D
-%5D
);
|
198d1cbc0012f51a2f5df6decd7c6a35af3695b5 | add comments on event.js todo namespace of event.js | frontend/scripts/common/event.js | frontend/scripts/common/event.js | /**
* Created by kelvinsun on 2015/10/23.
*/
define(['jquery'], function ($) {
var EventDom = $('<script>');
function on (events, handler, namespace) {
EventDom.on(events, function () {
var args = Array.prototype.slice.call(arguments),
eventType = args.shift();
... | JavaScript | 0 | @@ -40,17 +40,16 @@
23.%0A */%0A
-%0A
define(%5B
@@ -108,16 +108,123 @@
ipt%3E');%0A
+ /**%0A * %C2%BC%0A * @param events %C2%BC%0A * @param handler %C2%BC%0A * @param namespace %D5%BC, %D6%B9%C9%BE%0A */%0A
func
@@ -502,32 +502,83 @@
%7D);%0A %7D%0A
+ /**%0A * %C2%B... |
6cb8b50c098dd17bf7b17ffc03197d1cd3a28464 | Add missing key | js/components/MainWindow/MainContextMenu.js | js/components/MainWindow/MainContextMenu.js | import React from "react";
import { connect } from "react-redux";
import ClickedDiv from "../ClickedDiv";
import {
close,
setSkinFromUrl,
openMediaFileDialog,
loadMediaFiles,
openSkinFileDialog
} from "../../actionCreators";
import { LOAD_STYLE } from "../../constants";
import { ContextMenu, Hr, Node, Parent,... | JavaScript | 0.999253 | @@ -784,22 +784,27 @@
ers.map(
+(
picker
+, i)
=%3E (%0A
@@ -809,32 +809,52 @@
%3CNode%0A
+ key=%7Bi%7D%0A
onCl
|
f7ddf8aa13d33332871034512019de70eb2a3bd3 | Use checkboxes in attendee overlay | client/src/pages/reports/AttendeesOverlayTable.js | client/src/pages/reports/AttendeesOverlayTable.js | import React, { Component } from 'react'
import { Table } from 'react-bootstrap'
import { Classes, Icon } from '@blueprintjs/core'
import { IconNames } from '@blueprintjs/icons'
import classNames from 'classnames'
import {Person} from 'models'
import LinkTo from 'components/LinkTo'
const AttendeesOverlayTable = (prop... | JavaScript | 0 | @@ -9,23 +9,8 @@
eact
-, %7B Component %7D
fro
@@ -59,16 +59,17 @@
tstrap'%0A
+%0A
import %7B
@@ -73,94 +73,68 @@
t %7B
-Classes, Icon %7D from '@blueprintjs/core'%0Aimport %7B IconNames %7D from '@bluepri
+Person %7D from 'models'%0Aimport LinkTo from 'compone
nt
-j
s/
-icons
+LinkTo
'%0Aim
@@ -142,105 +142,... |
2eb2a0c9e2478cee48e2e1d2892e8e069d114fbe | Use require('lodash') over 'lodash-node' | lib/models/pipeline.js | lib/models/pipeline.js | 'use strict';
var Promise = require('ember-cli/lib/ext/promise');
var _ = require('lodash-node');
var chalk = require('chalk');
/* This is a generic implementation of a pipeline with ordered, promise-aware hooks,
* pleasant logging, and failure handling. It should not have any "deployment" domain
* logic or ... | JavaScript | 0 | @@ -93,13 +93,8 @@
dash
--node
');%0A
|
3182ccd9ee691b759ab253f562e54aa1ceefa60a | Write out.zip to generate tmp dir | packages/teraslice-cli/test/lib/assetSrc-spec.js | packages/teraslice-cli/test/lib/assetSrc-spec.js | 'use strict';
const path = require('path');
const fs = require('fs-extra');
describe('AssetSrc', () => {
const AssetSrc = require('../../lib/asset-src');
let testAsset;
const srcDir = path.join(__dirname, '../fixtures/testAsset');
beforeEach(() => {
testAsset = new AssetSrc(srcDir);
})... | JavaScript | 0 | @@ -71,16 +71,44 @@
xtra');%0A
+const tmp = require('tmp');%0A
%0A%0Adescri
@@ -1299,17 +1299,78 @@
nst
-outFile =
+tmpDir = tmp.dirSync();%0A const outFile = path.join(tmpDir.name,
'ou
@@ -1375,16 +1375,17 @@
out.zip'
+)
;%0A
@@ -1531,25 +1531,23 @@
toEqual(
-'
out
-.zip'
+File
);%0A
@@ -1... |
1e01ab9b9be5d2238054418a7432d5d2fce11b44 | Load the shell.abc in the inspector whenever running .abc files. | examples/inspector/inspector.js | examples/inspector/inspector.js | var BinaryFileReader = (function binaryFileReader() {
function constructor(url, responseType) {
this.url = url;
this.responseType = responseType || "arraybuffer";
}
constructor.prototype = {
readAll: function(progress, complete) {
var xhr = new XMLHttpRequest();
var async = true;
xh... | JavaScript | 0.000001 | @@ -976,20 +976,34 @@
VM2(next
+, loadShellAbc
) %7B%0A
-
var vm
@@ -1143,239 +1143,243 @@
v
-m.onConstruct = function (instance, args) %7B%0A var ci = instance.public$constructor.classInfo;%0A print(%22Creating: %22 + ci.instanceInfo.name.getQualifiedName() +%0A %22, with args: %5B%22 + a... |
143bb39a56b75dbfc33040759d7034c9bbcb170e | Add code to update the read count when reading items in the "all items" folder | backbone/models/all_items_folder.js | backbone/models/all_items_folder.js | var AllItemsFolder = Backbone.Model.extend({
initialize: function() {
this.items = new ItemCollection();
this.items.url = '/item';
this.set({
name: LANG.all_items_folder,
route: 'item',
iconclass: 'icon-asterisk'
});
},
getNextInList: function() {
return folders.first();
},
getPreviousInList... | JavaScript | 0.000001 | @@ -128,16 +128,132 @@
'/item';
+%0A%09%09this.listenTo(this.items, 'itemRead', this.itemRead);%0A%09%09this.listenTo(this.items, 'itemUnread', this.itemUnread);
%0A%0A%09%09this
@@ -464,13 +464,347 @@
s;%0A %7D
+,%0A%09itemRead: function(feed_id) %7B%0A%09%09folders.each(function(folder) %7B%0A%09%09%09var feed ... |
de74ddf0f337514ea9c00d82cf51660e2d91d6e4 | Fix typo in comment | packages/zent/src/upload/components/FileInput.js | packages/zent/src/upload/components/FileInput.js | /**
* 上传图片输入框
*/
import React, { PureComponent, Component } from 'react';
import toArray from 'lodash/toArray';
import createObjectURL from 'utils/createObjectURL';
import uploadLocalImage from './UploadLocal';
export default class FileInput extends (PureComponent || Component) {
onFileChange = evt => {
cons... | JavaScript | 0.000917 | @@ -401,9 +401,9 @@
// %E6%B8%85
-%E6%A5%9A
+%E9%99%A4
%E5%BD%93%E5%89%8D%E7%9A%84%E5%80%BC
|
b938ed3318945c6ba319fad89c9fda40e5c6b463 | Remove extra spaces. | backend/server/db/model/projects.js | backend/server/db/model/projects.js | module.exports = function(r) {
'use strict';
let run = require('./run');
let getSingle = require('./get-single');
return {
forUser: forUser,
get: function(id, index) {
return getSingle(r, 'projects', id, index);
}
};
///////////////
// forUser returns al... | JavaScript | 0.000121 | @@ -2400,13 +2400,11 @@
;%0A %7D%0A
-%0A%0A
%7D;%0A
|
410af16ece0d35c6bef765ab45b6ab74646b19da | Add defined-types-are-used to index.js | src/rules/index.js | src/rules/index.js | import { FieldsHaveDescriptions } from './fields_have_descriptions.js';
import { DeprecationsHaveAReason } from './deprecations_have_a_reason.js';
import { TypesHaveDescriptions } from './types_have_descriptions.js';
import { TypesAreCapitalized } from './types_are_capitalized.js';
import { EnumValuesSortedAlphabetical... | JavaScript | 0 | @@ -592,16 +592,83 @@
ptions';
+%0Aimport %7B DefinedTypesAreUsed %7D from './defined_types_are_used.js';
%0A%0Amodule
@@ -903,11 +903,34 @@
ptions,%0A
+ DefinedTypesAreUsed,%0A
%5D;%0A
|
4ad24a9d7804106f1654488ab7d71ac70d548b33 | change `articles` variable name to `data` | examples/node/freshlyPressed.js | examples/node/freshlyPressed.js |
/**
* Example usage of `wpcom-xhr-request` used in Node.js
*/
var request = require('../../');
request('/freshly-pressed', function (err, articles) {
if (err) throw err;
console.log('Freshly Pressed Posts:');
articles.posts.forEach(function (post) {
console.log(' %s - %s', post.title, post.short_URL);
... | JavaScript | 0.000001 | @@ -136,24 +136,20 @@
n (err,
-articles
+data
) %7B%0A if
@@ -213,16 +213,12 @@
;%0A
-articles
+data
.pos
|
f206ea583e497698eadd009859de153fc68677de | Add mass scales | src/scales/mass.js | src/scales/mass.js | /*
* Cookie Calculator / scales/mass.js
* copyright (c) 2016 Susisu
*/
"use strict";
import { SIUnit } from "../units.js";
let values = [
{
value: 9.11e-31,
description:
`Electron`
},
{
value: 1.9e-28,
description:
`Muon`
},
{
val... | JavaScript | 0.000003 | @@ -1250,16 +1250,637 @@
it fly%60%0A
+ %7D,%0A %7B%0A value: 2.5e-6,%0A description:%0A %60Mosquito%60%0A %7D,%0A %7B%0A value: 2e-5,%0A description:%0A %60Housefly%60%0A %7D,%0A %7B%0A value: 2e-4,%0A description:%0A %601 ca... |
88aa907bdfb4a2bc43de56e431567db2e7bdc55d | refactor send handler promises to not use arrow functions | handlers/send/handler.js | handlers/send/handler.js | 'use strict'
const mailBuilder = require('../../lib/mail/builder')
const mailService = require('../../lib/mail/service')
const utilityLog = require('../../lib/utility/log')
module.exports.handle = (event, context, callback) => {
let email = mailBuilder.build(event)
mailService.send(email)
.then(() => utilityL... | JavaScript | 0 | @@ -303,13 +303,27 @@
hen(
-() =%3E
+function () %7B%0A
uti
@@ -364,16 +364,22 @@
email')
+%0A %7D
)%0A .c
|
cffef4f1b4d5169e7bf01b0228b4de1fad9a6450 | debug rollback versions, not info | lib/workers/repository/process/lookup/rollback.js | lib/workers/repository/process/lookup/rollback.js | const versioning = require('../../../../versioning');
module.exports = {
getRollbackUpdate,
};
function getRollbackUpdate(config, versions) {
const { packageFile, versionScheme, depName, currentValue } = config;
const { getMajor, isLessThanRange, getNewValue, sortVersions } = versioning(
versionScheme
);
... | JavaScript | 0.000002 | @@ -857,26 +857,16 @@
entValue
-, versions
%7D,%0A
@@ -913,16 +913,93 @@
k%60%0A );%0A
+ logger.debug(%7B depName, versions %7D, 'Versions found before rolling back');%0A
lessTh
|
f9a8629967a52c526c4eddbe8938a458b4c28fd7 | Update translit.js | hawk/modules/translit.js | hawk/modules/translit.js | /**
* Translit module
*
* @param {String} string
* @param {Boolean} isUrl — if true, ignore punctuation marks and replace spaces with -
* @returns {string}
*/
module.exports = function (string, isUrl=false) {
let lettersTable = {
'а': 'a',
'б': 'b',
'в': 'v',
'г': 'g',
'д': 'd',
'е': 'e'... | JavaScript | 0 | @@ -1165,18 +1165,16 @@
);%0A %7D%0A%0A
-
return
@@ -1194,8 +1194,9 @@
ring;%0A%7D;
+%0A
|
7cd5f2b306841cd1271f98d1988ae86d35280482 | Remove log when open db connection | src/server/ping.js | src/server/ping.js | import os from 'os'
import pg from 'pg'
import { URL } from 'url'
const createPoolConnections = function (config, log) {
const myDb = new URL(config.databaseUrl)
const pool = new pg.Pool({
user: myDb.username,
database: myDb.pathname.substr(1),
password: myDb.password,
host: myDb.hostname,
port... | JavaScript | 0.000001 | @@ -478,45 +478,8 @@
%7D)%0A%0A
- log.info('Opened pool connection')%0A
re
|
895047f433dc1d22cb15808d06a1eeab404667f6 | Fix vertical algorithm bug - maxWidth is now correct | lib/packing/packing.js | lib/packing/packing.js | var binpacking = require('binpacking');
var algorithms = {
'binpacking': binpackingStrict,
'growing-binpacking': growingBinpacking,
'horizontal': horizontal,
'vertical': vertical
};
exports.pack = function (algorithm, files, options) {
algorithm = algorithm || 'growing-binpacking';
algorithms[algorithm](fi... | JavaScript | 0.000002 | @@ -2011,30 +2011,29 @@
Width, item.
-height
+width
);%0A y +=
|
f396cf830c7b626cd6fb1e174a7c4b2cffea7dc4 | Clarify when memory stores are being used | src/utils/StorageManager.js | src/utils/StorageManager.js | /*
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0.000066 | @@ -1940,354 +1940,107 @@
-try %7B%0A const dataInSyncStore = await Matrix.IndexedDBStore.exists(%0A indexedDB, SYNC_STORE_NAME,%0A );%0A log(%60Sync store contains data? $%7BdataInSyncStore%7D%60);%0A %7D catch (e) %7B%0A healthy = false;%0A ... |
b0fc8ea748975514cbec0ddffa86f542d998be77 | fix 726 | src/utils/get-form-value.js | src/utils/get-form-value.js | import mapValues from './map-values';
export default function getFormValue(form) {
if (form && !form.$form) {
return typeof form.loadedValue !== 'undefined'
? form.loadedValue
: form.initialValue;
}
const result = mapValues(form, (field, key) => {
if (key === '$form') return undefined;
... | JavaScript | 0.000051 | @@ -374,22 +374,108 @@
orm;%0A%0A
-return
+const isArray = Array.isArray(form.$form.value);%0A%0A return isArray ? Object.values(result) :
result;
|
995dd8572fffd3000068c7de480477007764ead2 | break the session list iteration loop if there is a vacant slot found | lib/random-grouping.js | lib/random-grouping.js | var _ = require("underscore"),
logger = require("./logging").getLogger(),
Promise = require("bluebird"),
deepCopy = require("deep-copy"),
models = require("./server-models");
module.exports = function(db, options) {
var group = {};
group.assignGroupToUser = function(userId, eventId) {
var user... | JavaScript | 0.000001 | @@ -1662,32 +1662,71 @@
%7D else %7B%0A
+ var vacantSlotFound = false;%0A
for(va
@@ -1769,24 +1769,24 @@
gth; c++) %7B%0A
-
@@ -2567,17 +2567,16 @@
*/%0A
-%0A
@@ -2601,17 +2601,18 @@
.length
-%3C
+%3E=
session
@@ -2629,17 +2629,106 @@
Cap%22)) %7B
-
+%0A ... |
4cc36d1a7ea334404ce1158db604949b5fdd6447 | Update the api endpoint. | src/js/config.js | src/js/config.js | /**
* @file Factual Config
* @name Factual
*
* Factual extension config code.
*
* @author Alexandru Badiu <andu@ctrlz.ro>
*/
export default {
api: 'www.factual.ro/api/',
};
| JavaScript | 0 | @@ -155,11 +155,11 @@
i: '
-www
+api
.fac
|
ba559833b441fb769b572ced46088cdfd64970ef | move realpath login to realpath with no validation - realpath calls it and validate | src/js/lib/fs.js | src/js/lib/fs.js | var CommandManager = require('./command-manager');
var FS = {};
FS.currentPath = FS.home = '/Users/guest';
FS.root = require('./file-system.json');
FS.currentDir = null;
FS.pwd = FS.root.Users.guest;
FS.realpath = function(path) {
var index;
if (path[0] !== '/') {
path = FS.currentPath + '/' + path;
}
... | JavaScript | 0 | @@ -200,21 +200,26 @@
st;%0A%0AFS.
-realp
+translateP
ath = fu
@@ -224,16 +224,17 @@
function
+
(path) %7B
@@ -248,16 +248,54 @@
index;%0A%0A
+ path = path.replace('~', FS.home);%0A%0A
if (pa
@@ -578,25 +578,24 @@
);%0A %7D%0A%0A
-%0A
-path =
+return
path.jo
@@ -598,24 +598,92 @@
h.join('/');
+%0A%7D... |
5e15b7e044a36da435c20be9a703331e4e7634ac | use upper http method | lib/resources/route.js | lib/resources/route.js | var _ = require('underscore')
, uri = '/api.v4/route.php';
module.exports = function(route4me) {
return {
// RouteId, Params, callback
get: function() {
var args = [].slice.call(arguments);
var callback = typeof args[args.length - 1] === 'function' && args.pop();
var params = args[args.le... | JavaScript | 0.000001 | @@ -961,19 +961,19 @@
ethod: '
-put
+PUT
'%0A
@@ -1245,22 +1245,22 @@
ethod: '
-delete
+DELETE
'%0A
|
f24ee1de9479ee248044fa8d7f8ebd323836cf85 | Use addOptions in KssBuilderBaseExample. | builder/base/example/kss_builder_base_example.js | builder/base/example/kss_builder_base_example.js | 'use strict';
/**
* The `kss/builder/base/example` module loads the KssBuilderBaseExample
* class, a `{@link KssBuilderBase}` using no templating.
* ```
* const KssBuilderBaseExample = require('kss/builder/base/example');
* ```
* @module kss/builder/base/example
*/
// Import the KssBuilderBase class. We will e... | JavaScript | 0 | @@ -1256,16 +1256,27 @@
his.
-o
+addO
ptions
-%5B
+(%7B%0A
'exa
@@ -1291,14 +1291,14 @@
ion'
-%5D =
+:
%7B%0A
+
@@ -1317,16 +1317,18 @@
,%0A
+
string:
@@ -1333,16 +1333,18 @@
: true,%0A
+
de
@@ -1419,17 +1419,26 @@
r.'%0A
-%7D
+ %7D%0A %7D)
;%0A %7D%0A%0A
|
5ad18b34230ad4fc323de9579e1b8abec3498763 | Fix typeError in lib/responseToError.js (#817) | lib/responseToError.js | lib/responseToError.js | "use strict";
var _ = require("lodash");
var FirebaseError = require("./error");
module.exports = function(response, body) {
if (response.statusCode < 400) {
return null;
}
if (!body.error) {
body.error = {
message: "Unknown Error",
};
}
var message = "HTTP Error: " + response.statusCode ... | JavaScript | 0.000016 | @@ -180,37 +180,112 @@
%7D%0A
+%0A
if (
-!body.error
+typeof body !== %22object%22) %7B%0A try %7B%0A body = JSON.parse(body);%0A %7D catch (e
) %7B%0A
+
body
.err
@@ -284,32 +284,62 @@
body
+ = %7B%7D;%0A %7D%0A %7D%0A%0A if (!body
.error
- =
+)
%7B%0A
-
+var
message
: %22U
@... |
d0f28f80921c97843181ab4bdabea7440b5c5c20 | Add setSpriteTexture to the SpriteSheet class | src/spritesheet.js | src/spritesheet.js | 'use strict';
import Sprite from './sprite';
export default class SpriteSheet {
constructor(texture, width, height) {
this.texture = texture;
this.width = width;
this.height = height;
this.spriteCoordinates = {};
}
register(name, x, y, width, height) {
this.spriteCoordinates[name] = {
x: ... | JavaScript | 0 | @@ -663,16 +663,271 @@
ture);%0D%0A
+%09%09setSpriteTextureFromCoordinates(sprite, info);%0D%0A%09%09return sprite;%0D%0A%09%7D%0D%0A%09setSpriteTexture(sprite, name) %7B%0D%0A%09%09let info = this.spriteCoordinates%5Bname%5D;%0D%0A%09%09setSpriteTextureFromCoordinates(sprite, info);%0D%0A%09%7D%0D%0A%09setSpriteTextu... |
bb7c0aa99a3cd56f730cdc515eb4c7f7f9894e1b | rename var | src/kea/index.js | src/kea/index.js | import { connect } from 'react-redux'
import { convertInputToLogic, convertPartialDynamicInput, clearLogicCache } from '../logic/index'
export function kea (input) {
const wrapper = (Klass) => {
injectActionsIntoClass(Klass)
return connect(
mapStateToPropsCreator(input),
mapDispatchToPropsCreat... | JavaScript | 0.001073 | @@ -728,38 +728,21 @@
const
-createdLogicEverything
+logic
= conve
@@ -818,38 +818,21 @@
entries(
-createdLogicEverything
+logic
.selecto
@@ -1008,38 +1008,21 @@
const
-createdLogicEverything
+logic
= conve
@@ -1139,30 +1139,13 @@
ies(
-createdLogicEverything
+logic
.act
|
6bf47937f3b6f93674efa3f84ee208d46450295e | use the native findIndex instead of lodash | layout/pulse/layer-menu-native/component.js | layout/pulse/layer-menu-native/component.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import findIndex from 'lodash/findIndex';
import Icon from 'components/ui/Icon';
class LayerMenuNativeComponent extends PureComponent {
render() {
const { layers, triggerClick } = this.props;
return (
<div className="c-l... | JavaScript | 0.000002 | @@ -78,50 +78,8 @@
es';
-%0Aimport findIndex from 'lodash/findIndex';
%0A%0Aim
@@ -538,16 +538,25 @@
index =
+g.layers.
findInde
@@ -561,18 +561,8 @@
dex(
-g.layers,
laye
|
53302cc7b3463eebb3cf6286bc44244bb195f992 | Fix audio loading issues | res/js/webAudioApi.js | res/js/webAudioApi.js | var BGM_SOUND = null;
var EVIL_LAUGH_SOUND = null;
var ACCESS_GRANTED_SOUND = null;
var ALARM_SOUND = null;
var BLIP_SOUND = null;
window.onload = initSound;
var context;
var bufferLoader;
function BufferLoader(context, urlList, callback) {
this.context = context;
this.urlList = urlList;
this.onload = callback;... | JavaScript | 0.000001 | @@ -2219,24 +2219,31 @@
RANTED_SOUND
+.buffer
= bufferLis
@@ -2248,16 +2248,16 @@
ist%5B2%5D;%0A
-
ACCESS
@@ -2357,24 +2357,31 @@
ALARM_SOUND
+.buffer
= bufferLis
@@ -2488,16 +2488,23 @@
IP_SOUND
+.buffer
= buffe
@@ -2556,9 +2556,10 @@
ation);%0A
-
%7D
+%0A
|
ae2637be5786338e35f586cbbcad9f87dd3d0774 | Add missing getCachedChannel channel service | src/web/services/channel.js | src/web/services/channel.js | const RedisChannel = require('../../structs/db/Redis/Channel.js')
/**
* @param {string} guildID
*/
async function getGuildChannels (guildID) {
const channelIDs = await RedisChannel.utils.getChannelsOfGuild(guildID)
const channels = await Promise.all(channelIDs.map(id => getCachedChannel(id)))
return channels.f... | JavaScript | 0 | @@ -60,16 +60,200 @@
l.js')%0A%0A
+/**%0A * @param %7Bstring%7D channelID %0A */%0Aasync function getCachedChannel (channelID) %7B%0A const channel = await RedisChannel.fetch(channelID)%0A return channel ? channel.toJSON() : null%0A%7D%0A%0A
/**%0A * @
@@ -533,16 +533,36 @@
rts = %7B%0A
+ getCachedChannel,%0A
... |
d77b95317cedae299605fb692e2c7c67796b17cb | handle special case for allowfullscreen on <embed> | src/platforms/web/runtime/modules/attrs.js | src/platforms/web/runtime/modules/attrs.js | /* @flow */
import { isIE9 } from 'core/util/env'
import {
extend,
isDef,
isUndef
} from 'shared/util'
import {
isXlink,
xlinkNS,
getXlinkProp,
isBooleanAttr,
isEnumeratedAttr,
isFalsyAttrValue
} from 'web/util/index'
function updateAttrs (oldVnode: VNodeWithData, vnode: VNodeWithData) {
const o... | JavaScript | 0 | @@ -1587,32 +1587,273 @@
y)%0A %7D else %7B%0A
+ // technically allowfullscreen is a boolean attribute for %3Ciframe%3E,%0A // but Flash expects a value of %22true%22 when used on %3Cembed%3E tag%0A value = key === 'allowfullscreen' && el.tagName === 'EMBED'%0A ? 'true'%0A : key%0A
... |
888b3cbb8e41d0293559ebe0a41bb4d43eab86b7 | fix magellan showing wrong active state fixes #5417 | js/foundation/foundation.magellan.js | js/foundation/foundation.magellan.js | ;(function ($, window, document, undefined) {
'use strict';
Foundation.libs['magellan-expedition'] = {
name : 'magellan-expedition',
version : '5.3.0',
settings : {
active_class: 'active',
threshold: 0, // pixels from the top of the expedition for it to become fixes
destination_thre... | JavaScript | 0 | @@ -5693,16 +5693,27 @@
ffset =
+Math.floor(
dest.off
@@ -5781,16 +5781,17 @@
Height()
+)
;%0A
|
b5d22e97014b0ca3c529803a97b1e24526687e45 | Update assets/js/modules/analytics/datastore/service.js | assets/js/modules/analytics/datastore/service.js | assets/js/modules/analytics/datastore/service.js | /**
* modules/analytics data store: service.
*
* Site Kit by Google, Copyright 2020 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... | JavaScript | 0 | @@ -1324,22 +1324,34 @@
return %7B
+(
string
+%7Cundefined)
%7D The UR
@@ -1366,16 +1366,47 @@
service
+, or %60undefined%60 if not loaded.
%0A%09 */%0A%09g
|
85b32b861ed2f6463ef640a4c4bd1ffb9e55783c | Add storedAt date for serialized environment state | src/state-store.js | src/state-store.js | 'use strict'
module.exports =
class StateStore {
constructor () {
this.dbPromise = new Promise((resolve, reject) => {
let dbOpenRequest = indexedDB.open('AtomEnvironments', 1)
dbOpenRequest.onupgradeneeded = (event) => {
let db = event.target.result
db.createObjectStore('states')
... | JavaScript | 0 | @@ -525,32 +525,77 @@
se.then(db =%3E %7B%0A
+ value.storedAt = new Date().toString()%0A
return new
|
a456c763cbef894d81df849fb8ef370441da07b1 | use cwd and env var to get version in dev | lib/routes/defaults.js | lib/routes/defaults.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var path = require('path')
var cp = require('child_process')
const util = require('util')
var version = require('... | JavaScript | 0 | @@ -263,37 +263,8 @@
ss')
-%0Aconst util = require('util')
%0A%0Ava
@@ -344,16 +344,43 @@
ceRepo%0A%0A
+const UNKNOWN = 'unknown'%0A%0A
// Produ
@@ -1338,88 +1338,53 @@
-var cmd = util.format('git --git-dir=%25s rev-parse HEAD', gitDir)%0A cp.exec(cmd
+cp.exec('git rev-parse HEAD', %7B cwd: gitDir %7D
, f... |
26e9a626d2d9c6122911dc022db3f77aaac94367 | Make sure that isPageBlock always returns boolean. | assets/src/stories-editor/helpers/isPageBlock.js | assets/src/stories-editor/helpers/isPageBlock.js | /**
* WordPress dependencies
*/
import { select } from '@wordpress/data';
const { getBlock } = select( 'core/block-editor' );
/**
* Check if block is page block.
*
* @param {string} clientId Block client ID.
* @return {boolean} Boolean if block is / is not a page block.
*/
export const isPageBlock = ( clientId... | JavaScript | 0 | @@ -363,23 +363,51 @@
);%0A%09
-return block &&
+if ( ! block ) %7B%0A%09%09return false;%0A%09%7D%0A%09return
'am
|
36c28296e9718b7ab1c3518161e6c2b942892204 | Remove extraneous logging | js/views/confirmation_dialog_view.js | js/views/confirmation_dialog_view.js | /*
* vim: ts=4:sw=4:expandtab
*/
(function () {
'use strict';
window.Whisper = window.Whisper || {};
Whisper.ConfirmationDialogView = Whisper.View.extend({
className: 'confirmation-dialog modal',
templateName: 'confirmation-dialog',
initialize: function(options) {
this... | JavaScript | 0.000001 | @@ -1146,74 +1146,8 @@
) %7B%0A
- console.log('ConfirmationDialogView onKeyup', event);%0A
|
53246bdf280fb3b30ae50476ef9b916eaf9a8a72 | fix no-window | lib/rules/no-window.js | lib/rules/no-window.js |
module.exports = function (context) {
const DEFAULT = ['postMessage', 'open', 'addEventListener', 'removeEventListener'];
const exclude = context.options[0] && context.options[0].exclude || DEFAULT;
function report(node) {
context.report({
node,
message: 'Avoid using window... | JavaScript | 0.000732 | @@ -529,32 +529,71 @@
ression(node) %7B%0A
+ if (!node.object) return;%0A%0A
cons
@@ -849,32 +849,69 @@
larator(node) %7B%0A
+ if (!node.init) return;%0A%0A
cons
|
d169a10b6a451af27e570e5c82e1ff9fafb95b45 | Update lib | lib/SchemeAuthenticate.js | lib/SchemeAuthenticate.js | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... | JavaScript | 0 | @@ -1358,106 +1358,114 @@
-session = %7B%7D;%0A session.redirectTo = request.path;%0A h.state(settings.cookie, session)
+const idpLoginUrl = new URL(loginUrl.toString());%0A idpLoginUrl.search = %60RelaySate=$%7Brequest.path%7D%60
;%0A
@@ -1488,17 +1488,20 @@
edirect(
-l
+idpL
oginUrl)
|
3e1b0e3057307479df1c9d1493e947580d287e8b | Add form-control class to select2 element | app/assets/javascripts/views/business_support/areas_relator.js | app/assets/javascripts/views/business_support/areas_relator.js | $(document).ready(function() {
"use strict";
var $relatedAreasWrapper = $(".related-areas"),
$relatedAreasTextArea = $("#edition_areas"),
prefillRelatedAreas = $relatedAreasTextArea.data("areas"),
bindAreasSelection = function (selector, filter) {
$(selector).change(function () {
... | JavaScript | 0 | @@ -1476,16 +1476,69 @@
nInput);
+%0A $relatedAreasHiddenInput.addClass('form-control');
%0A%0A $('#
|
42ad7354c2da501f7f40f3f9a5ec51bb10bc3843 | Format counter number | resources/js/count.js | resources/js/count.js | $(document).ready(function() {
$.get("/counter").done((res) => $('#counter').html(res));
// load initial counter
var socket;
$.get("/port").done((res) => {
socket = io.connect('localhost:'+res);
socket.on('update', function(data) {
$('#counter').html(data.counter);
});
});
howlerList = {};
sounds.index... | JavaScript | 0.000025 | @@ -24,16 +24,128 @@
ion() %7B%0A
+%09const formatNumber = (number) =%3E %7B%0A%09%09return number.toString().replace(/(%5Cd)(?=(%5Cd%5Cd%5Cd)+(?!%5Cd))/g, %22$1.%22);%0A%09%7D;%0A%0A
%09$.get(%22
@@ -192,13 +192,27 @@
tml(
+formatNumber(
res))
+)
;%0A%09/
@@ -381,16 +381,29 @@
').html(
+formatNumber(
data.cou
@... |
889faa1416a9dd44209e9109258ad003cceff3e7 | Make password not required for user creation. | models/user.js | models/user.js | var database = require('../lib/database');
var mongoose = database.mongoose;
var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var email = require('email');
var _ = require('underscore');
var SALT_WORK_FACTOR = 10;
var PASSWORD_MIN_LENGTH = 6;
var userSchema = new mongoose.Schema({
provider: {t... | JavaScript | 0 | @@ -483,32 +483,16 @@
: String
-, required: true
%7D,%0A rol
|
875a2068bfce88b93f14f157de9d817b7a0e7965 | Update blueprint installed package versions. | blueprints/ember-cli-qunit/index.js | blueprints/ember-cli-qunit/index.js | module.exports = {
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
},
afterInstall: function() {
var addonContext = this;
return this.addBowerPackageToProject('qunit', '~1.16.0')
.then(func... | JavaScript | 0 | @@ -295,9 +295,9 @@
~1.1
-6
+7
.0')
@@ -542,9 +542,9 @@
0.0.
-4
+5
');%0A
|
ff75ee91591e6c977cf0ceb716e73adb34c090f2 | Move sampler3D precision definition inside #ifdef (#21531) | examples/jsm/postprocessing/LUTPass.js | examples/jsm/postprocessing/LUTPass.js | import { ShaderPass } from './ShaderPass.js';
const LUTShader = {
defines: {
USE_3DTEXTURE: 1,
},
uniforms: {
lut3d: { value: null },
lut: { value: null },
lutSize: { value: 0 },
tDiffuse: { value: null },
intensity: { value: 1.0 },
},
vertexShader: /* glsl */`
varying vec2 vUv;
void main()... | JavaScript | 0 | @@ -451,37 +451,8 @@
*/%60
-%0A%09%09precision highp sampler3D;
%0A%0A%09%09
@@ -494,16 +494,45 @@
TEXTURE%0A
+%09%09precision highp sampler3D;%0A
%09%09unifor
|
804c454889337e55b65321d67b490187fac9dd9b | Allow providing an onFinish callback only once | lib/node_modules/@stdlib/bench/lib/bench.js | lib/node_modules/@stdlib/bench/lib/bench.js | 'use strict';
// MODULES //
var TransformStream = require( '@stdlib/streams/utils/transform' );
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var isFunction = require( '@stdlib/utils/is-function' );
var canEmitExit = require( './utils/can_emit_exit.js' );
var createExitHarness = require( './... | JavaScript | 0 | @@ -1987,19 +1987,37 @@
unction%0A
+* @returns %7Bvoid%7D%0A
*/%0A
-
function
@@ -2036,16 +2036,24 @@
lbk ) %7B%0A
+%09var i;%0A
%09if ( !i
@@ -2074,16 +2074,16 @@
k ) ) %7B%0A
-
%09%09throw
@@ -2173,16 +2173,154 @@
' );%0A%09%7D%0A
+%09// Allow adding a listener only once...%0A%09for ( i = 0; i %3C listeners.... |
da7c76e67bd1f0af1f7b2f7437ee9892ba09bb02 | Update of Gruntfile with removal of grunt packages | assets/Gruntfile.js | assets/Gruntfile.js | module.exports = function(grunt) {
// Execution time of grunt tasks
require('time-grunt')(grunt);
// Load all tasks
//require('load-grunt-tasks')(grunt);
require('jit-grunt')(grunt, {
useminPrepare: 'grunt-usemin'
});
// Project configuration.
grunt.initConfig({
pkg: g... | JavaScript | 0 | @@ -611,66 +611,8 @@
: %5B%0A
- require('node-bourbon').includePaths,%0A
@@ -675,24 +675,24 @@
ation/scss'%0A
+
@@ -2328,16 +2328,37 @@
%7D
+%0A
/*%0A
@@ -3728,566 +3728,8 @@
%7D,%0A
- 'sftp-deploy': %7B%0A build: %7B%0A ... |
b2edfe02a574b8b7ac382b907971da1ae7b49f3b | Add link to contact support in "Need help?" dropdown | applications/vpn-settings/src/app/containers/LoginContainer.js | applications/vpn-settings/src/app/containers/LoginContainer.js | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { c } from 'ttag';
import { LoginForm, Href, SimpleDropdown, DropdownMenu } from 'react-components';
import SignInLayout from '../components/layout/SignInLayout';
const LoginContainer = ({ history, onLogin }... | JavaScript | 0.00002 | @@ -1473,32 +1473,257 @@
%3C/div%3E%0A
+ %3Cdiv className=%22inbl w100 pt0-5 pb0-5 ellipsis%22%3E%0A %3CHref url=%22https://protonvpn.com/support/%22%3E%7Bc('Link').t%60Contact support%60%7D%3C/Href%3E%0A %3C/div%3E%0A
... |
75844c906f38541c4a0b7bb8827041e5b1552af5 | fix functional tests | features/support/hooks.js | features/support/hooks.js | 'use strict';
const
_ = require('lodash'),
minimist = require('minimist'),
{
After,
AfterAll,
Before,
BeforeAll
} = require('cucumber'),
Bluebird = require('bluebird'),
Http = require('./api/http'),
World = require('./world');
function bootstrapDatabase () {
const
fixtures = requir... | JavaScript | 0.000013 | @@ -1668,25 +1668,21 @@
return
-bootstrap
+clean
Database
@@ -1687,66 +1687,34 @@
se()
-;%0A%7D);%0A%0A// after last%0AAfterAll(function () %7B%0A return clean
+%0A .then(() =%3E bootstrap
Data
@@ -1715,24 +1715,25 @@
apDatabase()
+)
;%0A%7D);%0A%0ABefor
|
a47342bcc6124954f23fd0b3dc580269b18e9b0a | Update x-ags-container.js | formats/application/x-ags-container.js | formats/application/x-ags-container.js | define(['../dispatch'], function(dispatch) {
'use strict';
function split_contents(formatVersion, segment, entries, offset) {
switch (formatVersion) {
default: return Promise.reject('unsupported format version: ' + formatVersion);
case 6:
return segment.getBytes(offset + 8, 2).then(funct... | JavaScript | 0.000001 | @@ -3454,13 +3454,16 @@
ent.
-typeN
+format.n
ame
|
4ea1f12673b0635ca1c9729202ad2ddfca34d195 | remove duplicate code in routes | server/components/routes/passengerRoutesModel.js | server/components/routes/passengerRoutesModel.js | var mongoose = require('mongoose');
var PassengerRoutesSchema = new mongoose.Schema({
start: [Number],
end: [Number],
startLabel: String,
endLabel: String,
days: [{
type: Boolean,
default: [false, false, false, false, false, false, false]
}],
fromHour: {min: 0, max: 24, type: Number},
fromMinut... | JavaScript | 0.000453 | @@ -446,54 +446,12 @@
%0A%0A
-endLabel: String,%0A name: String,%0A startLabel
+name
: St
|
7cecfe2a0920d3880e9f7a1ec33db4ba61a082d6 | Update bot.js | modules/bot.js | modules/bot.js | const _ = require("lodash");
module.exports = function(Bot, cfg) {
let countMsg = 0;
let commands = _.union(
_.values(require('./joke-commands')(cfg, Bot)),
_.values(require('./mark-commands')(cfg, Bot))
);
Bot.on("chat", function (channel, { username, mod }, msg, self) {
if (username !== cfg.identity.usern... | JavaScript | 0.000001 | @@ -606,32 +606,30 @@
, %22@
-milana_lol + @Hikka_live
+8clever + @takumi_chan
= %3C
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.