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 |
|---|---|---|---|---|---|---|---|
bae9b17187385c5f8fc7f7b6f31d56eb9ca3384a | Refactor IPC | ipc.js | ipc.js | "use strict";
function ipcManager(ipcMain, BrowserWindow) {
/**
* Taken from https://github.com/konsumer/electron-prompt/blob/master/main.js
*/
ipcMain.on('terminate', function() {
process.exit();
});
var promptResponse;
ipcMain.on('prompt', function(eventRet, arg) {
promptResponse = null;
... | JavaScript | 0.000001 | @@ -1,18 +1,4 @@
-%22use strict%22;%0A
%0Afun
@@ -157,33 +157,16 @@
minate',
- function() %7B%0A
process
@@ -174,24 +174,17 @@
exit
-();%0A %7D
);%0A%0A
-var
+let
pro
@@ -220,24 +220,16 @@
rompt',
-function
(eventRe
@@ -231,24 +231,27 @@
entRet, arg)
+ =%3E
%7B%0A promp
@@ -276,11 +276,11 @@
... |
89507883a963cd8a143cb9d7b542434a0b59714d | Update currency for Azerbaijan Manat (AZN) | map.js | map.js | module.exports = {
'AED': 'د.إ',
'AFN': '؋',
'ALL': 'L',
'AMD': '֏',
'ANG': 'ƒ',
'AOA': 'Kz',
'ARS': '$',
'AUD': '$',
'AWG': 'ƒ',
'AZN': 'ман',
'BAM': 'KM',
'BBD': '$',
'BDT': '৳',
'BGN': 'лв',
'BHD': '.د.ب',
'BIF': 'FBu',
'BMD': '$',
'BND': '$',
'BOB': '$b',
'BRL': 'R$',
'BSD'... | JavaScript | 0 | @@ -155,11 +155,9 @@
': '
-%D0%BC%D0%B0%D0%BD
+%E2%82%BC
',%0A
|
345a82fca03bbc4e4ec4fd9e94650208892ee74e | Add optimization for changed values for passed objects | nom.js | nom.js | /* Nom version 0.0.5, @license MIT, (c) 2015 Vesa Piittinen */
;(function(isBrowser, hasNode, hasRAF) {
function returnNull() { return null; }
var nom = { el: returnNull, mount: returnNull, supported: isBrowser && hasRAF, version: '0.0.5' };
if (!isBrowser || !hasRAF) return nom;
var htmlToDOM = docume... | JavaScript | 0 | @@ -12,17 +12,17 @@
ion 0.0.
-5
+6
, @licen
@@ -237,17 +237,17 @@
n: '0.0.
-5
+6
' %7D;%0A
@@ -3847,16 +3847,51 @@
ty(item)
+ && obj%5Bprop%5D%5Bitem%5D !== value%5Bitem%5D
)%0A
|
4ad715b554928c5dbc7c165f2526d04389cb16f8 | Remove marked redos filter | nsp.js | nsp.js | var async = require("async")
, request = require("request")
, metaMarked = require("meta-marked")
, github = require("./github")
var ghOpts = {user: "nodesecurity", repo: "nodesecurity-www", path: "advisories"}
var rawUrl = "https://raw.githubusercontent.com/nodesecurity/nodesecurity-www/master/advisories"
var ... | JavaScript | 0 | @@ -752,39 +752,8 @@
.md%22
- && a.name != %22marked_redos.md%22
%0A
|
e57e60f7f012b6ae345a28d093195c4b0abcb74a | add process.exit on child error | lib/helpers/Childs.js | lib/helpers/Childs.js | "use strict";
var fork = require('child_process').fork;
var Child = function(tasksPerProcess) {
this.ttl = tasksPerProcess;
this.available = true;
this.process = fork(__dirname + '/child-process.js', {silent: true});
this.reset = function() {
this.process.kill('SIGKILL');
this.process = fork(__dirna... | JavaScript | 0.000001 | @@ -993,16 +993,39 @@
nd !%22);%0A
+ process.exit(1);%0A
%7D%0A
|
6ed4f4798f4e9a7d267dbca04adb1f988b921e6b | Enable sourcemaps | packages/truffle-core/cli.js | packages/truffle-core/cli.js | #!/usr/bin/env node
var Config = require("truffle-config");
var Command = require("./lib/command");
var TaskError = require("./lib/errors/taskerror");
var TruffleError = require("truffle-error");
var version = require("./lib/version");
var OS = require("os");
var command = new Command(require("./lib/commands"));
var ... | JavaScript | 0.000001 | @@ -13,16 +13,56 @@
nv node%0A
+require('source-map-support/register')%0A%0A
var Conf
|
c4a327a47bd2eb8c4f8b51abdb1717080ec9a142 | Version number got out of sync in the header; removed it as it's redundant. | src/logger.js | src/logger.js | /*!
* js-logger 0.9.0 - http://github.com/jonnyreeves/js-logger
* Jonny Reeves, http://jonnyreeves.co.uk/
* js-logger may be freely distributed under the MIT license.
*/
/*jshint sub:true*/
/*global window:true,define:true, module:true*/
(function (window) {
"use strict";
// Top level module for ... | JavaScript | 0 | @@ -15,14 +15,8 @@
ger
-0.9.0
- ht
|
a16a5697e5f8de48e609519578e87c685fea3386 | Correct typo | packages/truffle-core/cli.js | packages/truffle-core/cli.js | #!/usr/bin/env node
require('source-map-support/register')
const TaskError = require("./lib/errors/taskerror");
const TruffleError = require("truffle-error");
const nodeMajorVersion = parseInt(process.version.slice(1));
if (nodeMajorVersion < 8) {
console.log(`You are currently using version ${process.version.slice... | JavaScript | 0.999884 | @@ -357,17 +357,16 @@
must use
-r
version
|
6b3d40b285cd3bf67308b38f8d7a4f0a1041bf7a | Convert to async | packages/local-sync/src/local-api/routes/auth.js | packages/local-sync/src/local-api/routes/auth.js | const { AuthHelpers } = require('isomorphic-core');
const DefaultSyncPolicy = require('../default-sync-policy')
const LocalDatabaseConnector = require('../../shared/local-database-connector')
const SyncProcessManager = require('../../local-sync-worker/sync-process-manager')
const upsertAccount = (accountParams, creden... | JavaScript | 0.999999 | @@ -269,21 +269,30 @@
ager')%0A%0A
-const
+async function
upsertA
@@ -297,19 +297,16 @@
tAccount
- =
(account
@@ -329,82 +329,11 @@
als)
- =%3E
%7B%0A
- return LocalDatabaseConnector.forShared().then((%7BAccount%7D) =%3E %7B%0A
ac
@@ -375,18 +375,16 @@
cPolicy%0A
-
accoun
@@ -420,20 +420,98 @@
%5... |
15e2417a3b7bff6993824234edc4a61d3c488878 | bring orthographic view "closer" (again) re #83 | js/lib/CombinedCamera.js | js/lib/CombinedCamera.js | /**
* @author zz85 / http://twitter.com/blurspline / http://www.lab4games.net/zz85/blog
*
* A general perpose camera, for setting FOV, Lens Focal Length,
* and switching between perspective and orthographic views easily.
* Use this only if you do not wish to manage
* both a Orthographic and Perspective Camera
... | JavaScript | 0 | @@ -1760,16 +1760,115 @@
ustum%0A%0A%09
+// tpm: midway i.e. divide by 2 is too far. 1/8 is better%0A%09var hyperfocus = ( near + far ) / 8;%0A%09//
var hype
|
e0aa5e205feee53043ce1ae8726fe732866e6ea7 | Add Scheduling Profiler GK link to Timeline UI for FB build (#22730) | packages/react-devtools-timeline/src/Timeline.js | packages/react-devtools-timeline/src/Timeline.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {DataResource} from './createDataResourceFromImportedFile';
import type {ViewState} from './types';
impor... | JavaScript | 0 | @@ -304,24 +304,94 @@
'./types';%0A%0A
+import %7BisInternalFacebookBuild%7D from 'react-devtools-feature-flags';%0A
import * as
@@ -2638,24 +2638,444 @@
tionsList%7D%3E%0A
+ %7BisInternalFacebookBuild && (%0A %3Cli className=%7Bstyles.WelcomeInstructionsListItem%7D%3E%0A Enable the%0A %3Ca%0A... |
d4651c7889b0aaf5b699e459dfaf06352acb0e9e | Add localStorage save on expectation complete. | js/models/Expectation.js | js/models/Expectation.js | var Expectation = Backbone.Model.extend({
initialize: function(){
},
defaults: {
complete: false,
},
validate: function(attributes){
if(attributes.title === undefined){
return "Remember to set a title for your expectation.";
}
},
delete: function() {
this.destroy();
... | JavaScript | 0 | @@ -355,12 +355,19 @@
is.s
-et(%7B
+ave(%7B%0A %09%09%09
comp
@@ -393,16 +393,21 @@
mplete')
+%0A %09%09
%7D);%0A %09%7D
|
b0db17f216feeea3826ca0c75d312879fe7c012f | remove useless onChange handler | components/input/InputBase.js | components/input/InputBase.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import omit from 'lodash.omit';
import Box, { omitBoxProps, pickBoxProps } from '../box';
import ValidationText from '../validationText';
import theme from './theme.css';
class InputBase extends PureComponent... | JavaScript | 0.999998 | @@ -508,113 +508,8 @@
%7D;%0A%0A
- handleChange = event =%3E %7B%0A if (this.props.onChange) %7B%0A this.props.onChange(event);%0A %7D%0A %7D;%0A%0A
ha
@@ -1143,26 +1143,8 @@
e',%0A
- 'onChange',%0A
@@ -1298,43 +1298,8 @@
ur,%0A
- onChange: this.handleChange,%0A
@@ -3799,113 +37... |
fe643439beafd77b8c097b84ccff285a5680ee3d | remove _full | apps/portal/extensions/themes/basic/js/dashboard.js | apps/portal/extensions/themes/basic/js/dashboard.js | $(function () {
var componentToolbarHbs = Handlebars.compile($("#ues-component-toolbar-hbs").html());
var componentMaxViewHbs = Handlebars.compile($("#ues-component-full-hbs").html());
var gadgetSettingsViewHbs = Handlebars.compile($('#ues-gadget-setting-hbs').html());
var page;
/**
* initiali... | JavaScript | 0.001905 | @@ -1892,26 +1892,16 @@
t-' + id
- + '_full'
);%0A%0A
|
672d7f9c3973bda9513b0f49150c67eb992445b1 | modify source/js/photo.js github addr | themes/yilia2/source/js/photo.js | themes/yilia2/source/js/photo.js | define([], function () {
return {
page: 1,
offset: 20,
init: function () {
var that = this;
$.getJSON("/photo/output.json", function (data) {
that.render(that.page, data);
that.scroll(data);
});
},
render: ... | JavaScript | 0.000004 | @@ -645,16 +645,18 @@
+
'%3Ca clas
@@ -707,33 +707,38 @@
/github.com/
-lwzhang/b
+WymanY/WymanyB
log/blob/mas
@@ -841,17 +841,22 @@
com/
-lwzhang/b
+WymanY/WymanyB
log/
|
96dd8f1729ad72e29dbe08dd01bc0ba08446dbe6 | set resolvedResponseType on resolve(), fixes #497 | src/method.js | src/method.js | "use strict";
module.exports = Method;
var ReflectionObject = require("./object");
/** @alias Method.prototype */
var MethodPrototype = ReflectionObject.extend(Method);
var Type = require("./type"),
util = require("./util");
var _TypeError = util._TypeError;
/**
* Constructs a new service method.
* @classdesc... | JavaScript | 0 | @@ -1346,20 +1346,16 @@
Type%22);%0A
-
%0A Ref
@@ -3818,24 +3818,66 @@
questType);%0A
+ this.resolvedResponseType = resolved;%0A
return R
|
49ab8d118ad15e0faaaaa70cc6dfe269f2200673 | Add fontFamily() fontSize() layout(). | src/service/stylesheet.js | src/service/stylesheet.js | console.log( "=== simpread stylesheet load ===" )
import {browser} from 'browser';
const [ bgcolorstyl, bgcls ] = [ "background-color", ".simpread-focus-root" ];
/**
* Get background opacity value
*
* @param {string} background-color, e.g. rgba(235, 235, 235, 0.901961)
* @return {string} e.g. 0.901961
*/
cons... | JavaScript | 0 | @@ -1840,16 +1840,581 @@
%7D%0A%7D%0A%0A
+/**%0A * Set read mode font family%0A * %0A * @param %7Bstring%7D font family name e.g. PingFang SC; Microsoft Yahei%0A */%0Afunction fontFamily( family ) %7B%0A $( %22sr-read%22 ).attr( %22style%22, %60font-family: $%7Bfamily%7D!important%60 );%0A%7D%0A%0A/**%0A * Set r... |
eaff42bf0de9de5a1067947f5d07656a207d98a5 | Remove unused parameter in infinite shortcut | src/shortcuts/infinite.js | src/shortcuts/infinite.js | (function() {
'use strict'
var $ = window.jQuery
var Waypoint = window.Waypoint
/* http://imakewebthings.com/waypoints/shortcuts/infinite-scroll */
function Infinite(options) {
this.options = $.extend({}, Infinite.defaults, options)
this.container = this.options.element
if (this.options.containe... | JavaScript | 0.000001 | @@ -688,17 +688,8 @@
ion(
-direction
) %7B%0A
|
b6266d3dd099c42d27265abaf46ebe40df0b676c | Call cythsInit function after internationalization | software/var/www/html/cyths/js/cyths-i18n.js | software/var/www/html/cyths/js/cyths-i18n.js | // 2016-10-21 V 1.0.0
// - Initial release
//
// i18next configuration
//
var i18nextOptions =
{
// evtl. use language-detector https://github.com/i18next/i18next-browser-languageDetector
lng: navigator.language || navigator.userLanguage,
fallbackLng: 'en',
load: 'currentOnly',
backend:
{
// i18nextLoadP... | JavaScript | 0 | @@ -1,8 +1,179 @@
+//%0A// Author: CYOSP%0A// Created: 2016-10-21%0A// Version: 1.1.0%0A//%0A%0A// 2016-10-22 V 1.1.0%0A// - Execute cythsInit function (if it exists)%0A// after internationalization %0A
// 2016-
@@ -926,8 +926,178 @@
e();
+%0A%0A%09// Internationalization is performed%0A%09// Call CYTHS init fu... |
b0fed062aef876a61cc58bccd48094c694ab7cb9 | Fix env var name | tools/tool-env/install-reify.js | tools/tool-env/install-reify.js | let cacheDir;
if (process.env.METEOR_TOOLS_ENABLE_REIFY_RUNTIME_CACHE === 'true') {
const path = require("path");
const toolsPath = path.dirname(__dirname);
const meteorPath = path.dirname(toolsPath);
cacheDir = path.join(meteorPath, ".reify-cache");
}
// Enable the Reify module runtime: Module.prototype.{lin... | JavaScript | 0.999981 | @@ -39,9 +39,8 @@
TOOL
-S
_ENA
|
9429f118db1da076c372fec4e935ef3050bc8079 | Add test for export declarations to findUsedIdentifiers | lib/__tests__/findUsedIdentifiers-test.js | lib/__tests__/findUsedIdentifiers-test.js | import findUsedIdentifiers from '../findUsedIdentifiers';
import parse from '../parse';
it('finds used variables', () => {
expect(
findUsedIdentifiers(
parse(
`
api.something();
const foo = 'foo';
foo();
bar();
`,
),
),
).toEqual(new Set(['api', 'foo', 'bar']));
});
i... | JavaScript | 0 | @@ -688,32 +688,253 @@
%5B'Car'%5D));%0A%7D);%0A%0A
+it('knows about export declarations', () =%3E %7B%0A expect(%0A findUsedIdentifiers(%0A parse(%0A %60%0A export %7B foo as bar %7D%0A export %7B baz %7D%0A %60,%0A ),%0A ),%0A ).toEqual(new Set(%5B'foo', 'baz'%5D));%0A%7D);%0A... |
7d629a378efc999f999e26885156273607d019ea | missing semicolon | lib/checks/ExcessiveParameterListCheck.js | lib/checks/ExcessiveParameterListCheck.js | var Check = require("./Check.js"),
Index = require("../../lib"),
Grammar = Index.Grammar;
module.exports = Check.inherit({
options: {
/***
* the maximum number of parameters
* @type Number
*/
maxFunctionParameters: 7,
/***
* an array of function... | JavaScript | 0.999988 | @@ -545,16 +545,17 @@
)
+;
%0A %7D,%0A
|
9d3c344ed1145c3e07c2819bd15d578a503da1a4 | fix formatting | core/column-type/row.expand.column.js | core/column-type/row.expand.column.js | import {ColumnView} from '../scene/view';
import {ColumnModel} from './column.model';
import {TemplatePath} from '../template';
TemplatePath.register('row-expand-cell', (template, column) => {
return {
model: template.for,
resource: column.key
};
});
class RowExpandColumnModel extends ColumnModel {
constructor... | JavaScript | 0.001459 | @@ -417,32 +417,26 @@
it = false;%0A
-
+%09%09
this.canResi
@@ -443,32 +443,26 @@
ze = false;%0A
-
+%09%09
this.canFilt
@@ -477,16 +477,10 @@
se;%0A
-
+%09%09
this
|
cb49047ca10d0051def763188907f6a452f24907 | remove console log | 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');
const AssetSrc = require('../../lib/asset-src');
describe('AssetSrc', () => {
let testAsset;
const srcDir = path.join(__dirname, '../fixtures/testAsset');
beforeEach(() => {
testAsset = new AssetSrc(srcDir);
});
... | JavaScript | 0.000003 | @@ -1043,68 +1043,8 @@
();%0A
- console.log(%60build $%7BJSON.stringify(r, null, 2)%7D%60);%0A
|
300728bdb8fff37b4ed8f2bddd471a0af89033e8 | translate 'open in new windows' to de-DE | lang/summernote-de-DE.js | lang/summernote-de-DE.js | (function ($) {
$.extend($.summernote.lang, {
'de-DE': {
font: {
bold: 'Fett',
italic: 'Kursiv',
underline: 'Unterstreichen',
strike: 'Durchgestrichen',
clear: 'Zurücksetzen',
height: 'Zeilenhöhe',
size: 'Schriftgröße'
},
image: {
i... | JavaScript | 0.999999 | @@ -931,16 +931,68 @@
Links?'
+,%0A%09%09openInNewWindow: 'In einem neuen Fenster %C3%B6ffnen'
%0A %7D
|
5ff1d620710742229a9112d7cd2c8fc4ac09b84b | Fix for files | src/struct/CommandUtil.js | src/struct/CommandUtil.js | /**
* Extra properties applied to the Discord.js message object.
* @typedef {Object} MessageExtensions
* @prop {?CommandUtil} util - Utilities for command responding.
* Available on all messages after 'all' inhibitors and built-in inhibitors (bot, client, notSelf).
* Not all properties of the util are available, d... | JavaScript | 0 | @@ -1939,26 +1939,11 @@
mand
-) %7B%0A if
+ &&
(!t
@@ -2000,16 +2000,17 @@
ditable)
+)
return;
@@ -2010,27 +2010,16 @@
return;%0A
- %7D%0A%0A
@@ -2652,16 +2652,17 @@
e) && (!
+(
options.
@@ -2665,16 +2665,34 @@
ons.file
+s %7C%7C options.file)
%7C%7C this
@@ -2888,16 +2888,33 @@
... |
13d2634cb6003aea46e8729c26e656de932dd891 | check on mesh size. | medea/medea.sceneloader_assimp2json.js | medea/medea.sceneloader_assimp2json.js |
/* medea - an Open Source, WebGL-based 3d engine for next-generation browser games.
* (or alternatively, for clumsy and mostly useless tech demos written solely for fun)
*
* medea is (c) 2011, Alexander C. Gessler
* licensed under the terms and conditions of the 3-clause BSD license.
*/
// note: json2.j... | JavaScript | 0 | @@ -2560,24 +2560,314 @@
s%22;%0D%0A%09%09%7D%0D%0A%0D%0A
+%09%09// the same applies to the number of unique vertices in the mesh -%0D%0A%09%09// with the original assimp2json tool, we can always fit them %0D%0A%09%09// into 16 bit index buffers.%0D%0A%09%09if(inmesh.vertices.length %3E= 65536) %7B%0D%0A%09%09%09throw... |
05b10d2b5b40bd0a3e5b504495ccd163d61a688a | Add `enablePadding` option, IE strikes again with padding-bottom CSS | lib/jquery.spoiler.js | lib/jquery.spoiler.js | /*
* jQuery Spoiler
* Created 2014 Triangle717
* <http://Triangle717.WordPress.com/>
*
* Licensed under The MIT License
* <http://opensource.org/licenses/MIT/>
*/
/**
* jQuery-based Spoiler system
*/
(function($) {
"use strict";
$.fn.spoiler = function(options) {
// Default options
var settings ... | JavaScript | 0 | @@ -326,16 +326,49 @@
xtend(%7B%0A
+ enablePadding : true,%0A
pa
@@ -391,24 +391,13 @@
: %22
-0.375em%22, //
6px
+%22,
%0A
@@ -2105,24 +2105,399 @@
poilerID);%0A%0A
+ // The container's collapsed/expanded height values%0A var showContent = %7B%22height%22: spoilerHeights%5BspoilerNu... |
6776429a3d2dd22161855fe014dbb530b6ef22c9 | add config for jQuery | config/webpack/environment.js | config/webpack/environment.js | const { environment } = require('@rails/webpacker');
const erb = require('./loaders/erb');
environment.loaders.prepend('erb', erb);
module.exports = environment;
console.log('=== Environment ===');
console.log(JSON.stringify(environment, null, 2));
console.log('===================');
| JavaScript | 0.000001 | @@ -1,16 +1,15 @@
const %7B
-
environm
@@ -11,17 +11,16 @@
ironment
-
%7D = requ
@@ -43,16 +43,414 @@
acker');
+%0Aconst webpack = require('webpack');%0A%0Aenvironment.plugins.prepend('Provide',%0A new webpack.ProvidePlugin(%7B%0A $: 'jquery/dist/jquery',%0A jQuery: 'jquery/dist/jquery',%0A Popper: 'po... |
7e6f7487439f03859351407b7ac0185f1e4d4868 | Update region tags for including snippets in docs | end-to-end/search-interface/public/app.js | end-to-end/search-interface/public/app.js | // Update the client ID and search app ID for your deployment.
// [START cloud_search_github_tutorial_search_config]
let searchConfig = {
clientId: "[client-id]",
searchAppId: "searchapplications/[application-id]"
};
// [END cloud_search_github_tutorial_search_config]
// Reference to the results container to clear... | JavaScript | 0.000002 | @@ -653,16 +653,58 @@
_load%5D%0A%0A
+// %5BSTART cloud_search_tutorial_init_app%5D%0A
/**%0A * I
@@ -791,58 +791,8 @@
*/%0A
- // %5BSTART cloud_search_github_tutorial_init_app%5D%0A
asyn
|
8fce6f5caa2736016bd6c64250b88cb7ab4db1da | Add error if browser binary not set on given platform | lib/launchers/Base.js | lib/launchers/Base.js | var spawn = require('child_process').spawn;
var path = require('path');
var log = require('../logger').create('launcher');
var fs = require('fs');
var env = process.env;
var BaseBrowser = function(id) {
var exitCallback = function() {};
this.id = id;
this.isCaptured = false;
this._tempDir = path.normalize(... | JavaScript | 0.000008 | @@ -876,22 +876,25 @@
) %7B%0A
-return
+var cmd =
path.no
@@ -958,16 +958,195 @@
tform%5D);
+%0A%0A if (!cmd) %7B%0A log.error('No binary for %22%25s%22 browser on your platform.%5Cn%5Ct' +%0A 'Please, set %22%25s%22 env variable.', this.name, this.ENV_CMD);%0A %7D%0A%0A return cmd;
%0A ... |
4329af49db8c9874de22691d1a3f4611190cfde8 | remove temporary hack | src/06-components/atoms/lightbox/lightbox.js | src/06-components/atoms/lightbox/lightbox.js | import registerElement from '../../../07-utilities/helpers.js';
export default function (tagName) {
function attachedCallback() {
let lb = {
parent: this.parentElement,
container: this.querySelector('.sc-lightbox-container') /*remove*/ || this.querySelector('.sc-lightbox__container... | JavaScript | 0 | @@ -1730,111 +1730,8 @@
%3E %7B%0A
- if(document.querySelector('.sc-lightbox__overlay'))%7B%0A return; //temporary%0A %7D%0A
|
0627d70289352206f943379d51c8a264a5e20723 | Remove dup comment | lib/CANNON-mesh2shape.js | lib/CANNON-mesh2shape.js | var CANNON = require('cannon');
/**
* Given a THREE.Object3D instance, creates a corresponding CANNON shape.
* @param {THREE.Object3D} object
* @return {CANNON.Shape}
*/
module.exports = CANNON.mesh2shape = function (object, options) {
options = options || {};
if (options.type === 'BoxGeometry') {
return... | JavaScript | 0 | @@ -4264,176 +4264,8 @@
ed.%0A
- *%0A * NOTE: Only clone geometry when required, because doing so loses type%0A * information - PlaneBufferGeometry will be converted to BufferGeometry, for%0A * example.%0A *%0A
* @
|
4fb5a2b166d7cfeda81a1783c71b1d550c0760ca | add comment to describe how trace._base is different than trace.base for funnel traces | src/traces/funnel/calc.js | src/traces/funnel/calc.js | /**
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Axes = require('../../plots/cartesian/axes');
var arraysToCalcdata = require('./arrays_to_calcdata');
var ca... | JavaScript | 0.000004 | @@ -963,24 +963,225 @@
erieslen);%0A%0A
+ // Unlike other bar-like traces funnels do not support base attribute.%0A // bases for funnels are computed internally in a way that%0A // the mid-point of each bar are located on the axis line.%0A
trace._b
@@ -1689,23 +1689,21 @@
-0.5 *
-size%5Bi%5D
+cdi.s
;... |
27b92d3180db11751fcdbff48fedfe5cb97e1c60 | return deleted item from DeleteItemBuilder | lib/DeleteItemBuilder.js | lib/DeleteItemBuilder.js | var common = require('./common')
var DynamoRequest = require('./DynamoRequest')
var Builder = require('./Builder')
/**
* @param {Object} options
* @constructor
* @extends {Builder}
*/
function DeleteItemBuilder(options) {
Builder.call(this, options)
}
require('util').inherits(DeleteItemBuilder, Builder)
DeleteI... | JavaScript | 0.000001 | @@ -671,26 +671,98 @@
.then(
-returnTrue
+function (data) %7B%0A return data%0A %7D)%0A .then(this.prepareOutput.bind(this)
)%0A .s
|
198ce290d3f48f4c1c0361ebdf0aa8b4960a46c6 | Use {subscribers} in config.feeds.defaultText | src/util/config/schema.js | src/util/config/schema.js | const Joi = require('@hapi/joi')
const decodeValidator = require('./validation/decode.js')
const timezoneValidator = require('./validation/timezone.js')
const localeValidator = require('./validation/locale.js')
const logSchema = Joi.object({
level: Joi.string().strict().valid('silent', 'trace', 'debug', 'info', 'own... | JavaScript | 0.000015 | @@ -2421,13 +2421,11 @@
scri
-ption
+ber
s%7D')
|
da91580132f58b3f2ce3c1a898ce001990bf673d | Fix loading without SSR. | lib/navigators/dom.js | lib/navigators/dom.js | /**
* The DomNavigator is responsible for navigation between components, both via
* a top-level DOM `click` event handler and on-request.
*/
var when = require('when');
var Context = require('../context');
var DomRenderer = require('../renderers/dom');
/**
* Creates a new instance of DomNavigator with the provided... | JavaScript | 0 | @@ -4053,13 +4053,41 @@
on,
-false
+!global.LITTLEST_ISOMORPH_CONTEXT
);%0A
|
f7c418aac65f2b9b28da673fbeba0e985b46c657 | fix babel-core dependency error | src/util/watch_compile.js | src/util/watch_compile.js | 'use strict';
import fs from 'fs';
import path from 'path';
//babel not export default property
//so can not use `import babel from 'babel-core'`
let babel = require('babel-core');
/**
* watch compile
*/
export default class {
/**
* store compiled files last mtime
* @type {Object}
*/
compiledMtime = {... | JavaScript | 0.000001 | @@ -59,130 +59,8 @@
';%0A%0A
-//babel not export default property%0A//so can not use %60import babel from 'babel-core'%60%0Alet babel = require('babel-core');%0A%0A
/**%0A
@@ -1225,16 +1225,155 @@
nLines;%0A
+ //babel not export default property%0A //so can not use %60import babel from 'babel-core'%60%0A ... |
9726e6979a0eefc12d8eebec18d547a439f0b72e | Update component flags | lib/ngts-component.js | lib/ngts-component.js | #!/usr/bin/env node
const program = require('commander');
const utils = require('./utils');
const chalk = require('chalk');
var dest = '';
program
.usage('<component-name> [options]')
.arguments('<component-name>')
.action(function (componentName) {
cmdComponentName = componentName;
})
.op... | JavaScript | 0.000001 | @@ -433,22 +433,19 @@
n('-
--no-stylesheet
+n, --noscss
', '
@@ -1307,18 +1307,12 @@
m.no
-Stylesheet
+scss
) %7B%0A
@@ -1550,10 +1550,27 @@
me, true
+, !program.noscss
);
|
25efd3d39ee9e3cd6255e4736434ec8cf5ef1430 | Fix passion of processors number to calculation functions | src/plalib.js | src/plalib.js | import {initSync} from './plalib-sync-master';
export default class Plalib {
constructor({workersAmount = 4, workerUrl = '/src/plalib-worker.js'} = {}) {
this.workersAmount = workersAmount;
this.workerUrl = workerUrl;
this._createWorkers();
}
terminate() {
this._workers.forEach(function(worker) ... | JavaScript | 0.000012 | @@ -1122,34 +1122,26 @@
nitSync(
-this.workersAmount
+useWorkers
);%0A%0A
@@ -1173,16 +1173,37 @@
workers.
+slice(0, useWorkers).
map((wor
@@ -1375,34 +1375,26 @@
, b, i,
-this.workersAmount
+useWorkers
, sync%5D,
|
d0557085f2b4e19175151f164640751ac2b0b958 | Export the upsert method. AMAAS-1625 | src/utils/assets/index.js | src/utils/assets/index.js | /**
* @namespace Assets
* @memberof module:api
*/
import { retrieve, insert, amend, partialAmend, search, fuzzySearch, fieldsSearch, deactivate, reactivate } from './assets.js'
export { retrieve, insert, amend, partialAmend, search, fuzzySearch, fieldsSearch, deactivate, reactivate }
| JavaScript | 0.999346 | @@ -51,24 +51,26 @@
*/%0A%0Aimport %7B
+%0A
retrieve, i
@@ -63,32 +63,34 @@
%0A retrieve,
+%0A
insert,
amend, part
@@ -69,39 +69,53 @@
rieve,%0A insert,
+%0A upsert,%0A
amend,
+%0A
partialAmend, s
@@ -108,32 +108,34 @@
artialAmend,
+%0A
search,
fuzzySearch
@@ -114,32 +114,34 @@
Amend,%0A sea... |
3af070cede3e3d83225618989d50e35b469a4f5d | deal with version. Reset the preferences if version changes | eln/util/getChartFromMass.js | eln/util/getChartFromMass.js | import { convert } from '../libs/jcampconverter';
import { parseXY } from '../libs/parseXY';
// we extract the data from an object
// the data may be in experiment.content
// or in experiment.jcamp.
/**
* Create a chart object from a clicked row
* @param {object} experiment
* @param {object} [options]
* @return {P... | JavaScript | 0.000001 | @@ -563,16 +563,45 @@
amp.data
+ && !experiment.jcamp.content
) return
|
be6ff23043d155796b49c5e548c033d5a8c989a3 | use CSSPropertyOperations from the local React version | src/utils/inject-style.js | src/utils/inject-style.js | import {map, flatten} from '../utils/helpers';
import CSSPropertyOperations from '../vendor/react/lib/CSSPropertyOperations';
import { canUseDOM } from 'react/lib/ExecutionEnvironment';
import animations from '../style/animations';
let styleElement;
const styleStorage = {};
/**
* Injects the provided style into the ... | JavaScript | 0.000001 | @@ -79,18 +79,8 @@
om '
-../vendor/
reac
|
e611a20c813088bf1196bacc599c8775f1bee493 | Introduce StandingOrderListContainer | src/OutgoingOrderListContainer.js | src/OutgoingOrderListContainer.js | import React, {Component} from 'react';
import {Table} from 'react-bootstrap';
import OutgoingOrderList from './OutgoingOrderList'
class OutgoingOrderListContainer extends Component {
constructor(props){
super(props)
this.state = {
outgoingOrders: [],
account: props.account... | JavaScript | 0 | @@ -203,16 +203,101 @@
props)%7B%0A
+ console.log(%22OutgoingOrderListContainer props: %22)%0A console.log(props)%0A
@@ -434,32 +434,158 @@
entDidMount() %7B%0A
+ console.log(%22OutgoingOrderList DidMount%22)%0A if (this.props.factoryInstance === 'undefined')%0A return... |
c6311277c78218d7bafe144996eac6c7fc1f31e2 | Improve error message if no session is available | src/plugin.js | src/plugin.js | var Promise = require('bluebird');
var Helpers = require('./helpers');
var EventEmitter = require('./event-emitter');
var JanusError = require('./error');
var TTransactionGateway = require('./traits/t-transaction-gateway');
var Transaction = require('./transaction');
var JanusPluginMessage = require('./janus-plugin-mes... | JavaScript | 0.000002 | @@ -1672,16 +1672,41 @@
is._id;%0A
+ if (this._session) %7B%0A
return
@@ -1727,32 +1727,106 @@
.send(message);%0A
+ %7D else %7B%0A return Promise.reject(new Error('No active session'));%0A %7D%0A
%7D;%0A%0A/**%0A * @retu
|
d2064cb3370f09f3b1b9f9e0cd65dbe4775258c3 | Fix Iframe Size Typos | src/plugin.js | src/plugin.js | // LICENSE : MIT
"use strict";
require(['gitbook'], function (gitbook) {
function addBeforeHeader(element) {
jQuery('.book-header > h1').before(element)
}
function createButton({
user,
repo,
type,
size,
count
}) {
var width = size === "large" ... | JavaScript | 0 | @@ -323,18 +323,16 @@
%22170
-px
%22 : %22160
xp%22;
@@ -327,18 +327,16 @@
%22 : %22160
-xp
%22;%0A
@@ -384,10 +384,8 @@
%2220
-xp
%22;%0A
@@ -737,16 +737,18 @@
$%7Bwidth%7D
+px
%22 height
@@ -758,16 +758,18 @@
%7Bheight%7D
+px
%22%3E%3C/ifra
|
7cb19ad2ff1b441010c4dc65db0cec3bda74720c | Fix nuxt.config | lib/_view/nuxt.config.js | lib/_view/nuxt.config.js | // const preset = require('@nju33/postcss-preset').default;
module.exports = {
/*
** Headers of the page
*/
head: {
title: 'Yosuga',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: ... | JavaScript | 0.000017 | @@ -690,24 +690,37 @@
%0A build: %7B%0A
+ // base:%0A
/*%0A *
@@ -938,24 +938,70 @@
fig, ctx) %7B%0A
+ if (/node_modules/.test(__dirname)) %7B%0A
config
@@ -1063,16 +1063,24 @@
nuxt)/;%0A
+ %7D%0A
//
|
f64895b70545f83cca92750532ba7efb17afad2e | Version 0.1.18 | src/pmatch.js | src/pmatch.js | "use strict";
/**
* @name pattern matching
* @type higher order function
* @example
*
const K = x => _ => x;
const otherwise = K;
const shortc_ = (f, y) => x => x === true && f(y);
const xs = [[1], [2], [3]],
ys = [1],
zs = {};
const checkType = pmatch(
({length: len}) => shortc_(I,... | JavaScript | 0 | @@ -195,67 +195,8 @@
);%0A%0A
- const xs = %5B%5B1%5D, %5B2%5D, %5B3%5D%5D,%0A ys = %5B1%5D,%0A zs = %7B%7D;%0A%0A
c
@@ -791,10 +791,23 @@
ype(
-xs
+%5B%5B1%5D, %5B2%5D, %5B3%5D%5D
); /
@@ -857,10 +857,11 @@
ype(
-ys
+%5B1%5D
); /
@@ -907,10 +907,10 @@
ype(
-zs
+%7B%7D
); /
|
03c8bd62075bb90bb85b31966d35ab6f2e78ac03 | Fix removal of library workers from helpdesk widget | widgets/next-up-at-helpdesk.js | widgets/next-up-at-helpdesk.js | command: 'echo ""',
refreshFrequency: 10000,
style: [
"left: 25%",
"top: 0",
"width: 20%",
"height: 50vh",
"text-align: center",
".details",
" padding-top: 0.5rem",
".time",
" font-weight: 200",
" font-size: 2em",
" color: rgba(255, 255, 255, 0.65)",
" padding-bottom: 0.5rem",
".workers",
" font-wei... | JavaScript | 0 | @@ -1272,12 +1272,12 @@
, %7B'
-Posi
+loca
tion
|
068b75422e892a245fff361ec0209a901be8fed4 | copy paste syndrome | lib/api/register_user.js | lib/api/register_user.js | var data = require(__dirname+'/../data/');
var sql = require(__dirname +'/../data/sequelize.js');
var config = require(__dirname+'/../../config/environment.js');
var validator = require(__dirname+'/../validator.js');
var RippleRestClient = require('ripple-rest-client');
var uuid = require('node-uuid');
/*... | JavaScript | 0 | @@ -2806,33 +2806,24 @@
nt:
-config.get('COLD_WALLET')
+userOpts.address
,%0A
|
676a16e9f52685c608bc149e044c1838a25694c4 | Return some results even if there is no search term | lib/apps/autocomplete.js | lib/apps/autocomplete.js | var express = require('express'),
Error404 = require('../errors').Error404,
regexp_quote = require('regexp-quote'),
_ = require('underscore');
var app = module.exports = express.createServer();
app.mounted(function(parent){
var app = this;
app.get('/organisation_name', ... | JavaScript | 0.000348 | @@ -972,52 +972,225 @@
) %7B%0A
+%0A
-if (!term) return cb(null, %5B%5D);%0A%0A var
+// create the default query%0A var query = model%0A .distinct(field_path)%0A .limit(10);%0A %0A // if we have something to search for add it%0A var term_re = false; // used later%0A if ( term ) %7B%0A... |
f9cdaafa737eee65a9743b40bdc1dfd4f5859ab4 | Add links to opinion rules | lib/rules/opinions.js | lib/rules/opinions.js | 'use strict';
/**
* Rules in this file are ultimately random choices.
*
* No human should have to type on a keyboard to comply.
* If it can't be --fix'ed, it doesn't belong in here.
*/
module.exports = {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'es5',
},
],
... | JavaScript | 0 | @@ -209,163 +209,619 @@
%7B%0A
-'prettier/prettier': %5B%0A 'error',%0A %7B%0A singleQuote: true,%0A trailingComma: 'es5',%0A %7D,%0A %5D,%0A 'lines-around-directive': %5B'error', 'always'%5D,
+/**%0A * Everything reported by prettier will be fixed by prettier.%0A *%0A * See: https://githu... |
9a679fb9bed5c813c33886572b81bc1e4bcd2f6a | Add approvedApplications and totalApplications to tickets | lib/search-tickets.js | lib/search-tickets.js | 'use strict';
function searchTickets (args, callback) {
var seneca = this;
var ticketsEntity = seneca.make$('cd/tickets');
var query = args.query || {};
if (!query.limit$) query.limit$ = 'NULL';
ticketsEntity.list$(query, callback);
}
module.exports = searchTickets;
| JavaScript | 0 | @@ -8,16 +8,47 @@
rict';%0A%0A
+var async = require('async');%0A%0A
function
@@ -152,16 +152,196 @@
kets');%0A
+ var plugin = args.role;%0A%0A async.waterfall(%5B%0A loadTickets,%0A getNumberOfApplications,%0A getNumberOfApprovedApplications%0A %5D, callback);%0A%0A function loadTickets (done) %7B%0A
... |
2313dabd341eb550e610c265430c5ab7eb2647b4 | Fix Portfolio page routing | src/router.js | src/router.js | import Vue from 'vue';
import VueRouter from 'vue-router';
import Index from './pages/index.vue';
import Contacts from './pages/contacts.vue';
import Blog from './pages/blog.vue';
import Blogpost from './pages/blogpost.vue';
import Portfolio from './pages/portfolio.vue';
import Portfolio2 from './pages/portfolio-2.vue... | JavaScript | 0 | @@ -590,20 +590,16 @@
'/index
-(.*)
', compo
@@ -632,20 +632,16 @@
contacts
-(.*)
', compo
@@ -673,20 +673,16 @@
: '/blog
-(.*)
', compo
@@ -714,20 +714,16 @@
blogpost
-(.*)
', compo
@@ -760,20 +760,16 @@
ortfolio
-(.*)
', compo
@@ -809,20 +809,16 @@
tfolio-2
-(.*)
', compo
@@ -859,20 +859,16 @@
tfolio-3
... |
f81206fd0ae5e0c608bb233ef7675f807dda41fd | Return walkSchema if node is not an object | src/router.js | src/router.js | const path = require('path')
const yaml = require('yamljs')
/**
* Placeholder for schema object
* @parameter {Object} schema
*/
export let schema = null
/**
* Placeholder for routes array
* @parameter {Array} routes
*/
export let routes = []
/**
* Loads the schema from specified file
* @param {String} file ... | JavaScript | 0.000019 | @@ -52,16 +52,44 @@
yamljs')
+%0Aconst _ = require('lodash')
%0A%0A/**%0A *
@@ -1096,24 +1096,66 @@
e, prop)) %7B%0A
+ if (!_.isObject(node%5Bprop%5D)) return%0A
if (me
|
1a813b2fc0242a10b19d6fc7c075f9a53d8c3b2a | add /app route for mobile apps | src/routes.js | src/routes.js | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Signup from './containers/Signup'
import Login from './containers/Login'
import App from './containers/App'
import { AllPosts, MyPosts, FollowedPosts } from './containers/home'
import AllCommunities from './containers/AllCommunities'
impo... | JavaScript | 0.000001 | @@ -3292,24 +3292,172 @@
munity()%7D/%3E%0A
+ // /app route is for compatibility with iOS v1.6 and Android v1.0.10%0A %3CRoute path='/app' component=%7BAllPosts%7D onEnter=%7BrequireCommunity()%7D/%3E%0A
%3CRoute p
|
b04cc750652642e8e2593128c7c0f5de3ef6b0d7 | Fix missing localization on 'add' button | ui/scripts/ui/widgets/tagger.js | ui/scripts/ui/widgets/tagger.js | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | JavaScript | 0.000001 | @@ -2074,16 +2074,19 @@
t').val(
+_l(
'label.a
@@ -2089,16 +2089,17 @@
el.add')
+)
;%0A%0A
|
3d9fe0f197499cb81ef791c79bc17e0e422594e5 | replace deprecated substr with substring (#13040) | ui/src/components/icon/QIcon.js | ui/src/components/icon/QIcon.js | import { h, computed, getCurrentInstance } from 'vue'
import useSize, { useSizeProps } from '../../composables/private/use-size.js'
import { createComponent } from '../../utils/private/create.js'
import { hSlot, hMergeSlot } from '../../utils/private/render.js'
const defaultViewBox = '0 0 24 24'
const sameFn = i =>... | JavaScript | 0.000001 | @@ -3326,16 +3326,19 @@
n.substr
+ing
(3) %7D%60%0A
|
4aa1a0e2917e1d32c4e4a4e8b2f9ced522e7bc44 | Fix stray character in doc comment | src/schema.js | src/schema.js | // Helper for creating a schema that supports tables.
function getCellAttrs(dom, extraAttrs) {
let widthAttr = dom.getAttribute("data-colwidth")
let widths = widthAttr && /^\d+(,\d+)*$/.test(widthAttr) ? widthAttr.split(",").map(s => Number(s)) : null
let colspan = Number(dom.getAttribute("colspan") || 1)
let ... | JavaScript | 0 | @@ -1996,17 +1996,16 @@
Object)
-%3E
%0A//
|
6b81ac438f9001975d1b443d45dde68d46257139 | fix lodash | src/schema.js | src/schema.js | const _ = require('lodash');
import {
GraphQLList,
GraphQLObjectType,
GraphQLSchema,
GraphQLString,
GraphQLInt,
GraphQLFloat,
GraphQLEnumType,
GraphQLNonNull,
GraphQLInterfaceType
} from 'graphql';
const mongo = require('promised-mongo');
const db = mongo('mongodb://localhost/mydb');
const postsColle... | JavaScript | 0.000006 | @@ -2222,182 +2222,79 @@
-const authors = %5B%5D;%0A _.forIn(data.val(), function (value, key) %7B%0A value._
+return _.map(data.val(), (value,
id
+)
=
- key;%0A authors.push(value);%0A %7D);%0A return authors
+%3E _.assign(%7B%7D, value, %7B_id: id%7D))
;%0A ... |
69bc5f6101900e8c1d83250d863b98213ccad25c | Update container.js | static/views/container.js | static/views/container.js | define([
'jquery', 'underscore', 'views/base', 'globals/eventbus', 'bootbox', 'modules/cloudstore', 'codemirror', 'cm.vim', 'cm.clike', 'cm.placeholder',
'add2home', 'css!libs/add2home/add2home.css', 'sha256', 'aes'],
function($, _, BaseView, EventBus, bootbox, CloudStore, CodeMirror) {
"use strict";
consol... | JavaScript | 0.000001 | @@ -5322,34 +5322,32 @@
%0A if(
- !
isiOS() ) %7B%0A
@@ -5355,48 +5355,145 @@
-console.log('Initializing CodeMirror.');
+$('#keyMapVim').hide();%0A %7D else %7B%0A console.log('Initializing CodeMirror.');%0A %0A $('#keyMapVim').show();%0A
%0A
|
7ac7753da3a8cef91eedb6a840f42584baee0e5e | Move CSRF middleware order | src/server.js | src/server.js | require('dotenv').config()
const path = require('path')
const bodyParser = require('body-parser')
const compression = require('compression')
const config = require('../config')
const express = require('express')
const raven = require('raven')
const flash = require('connect-flash')
const csrf = require('csurf')
const sl... | JavaScript | 0 | @@ -1984,45 +1984,8 @@
))%0A%0A
-app.use(csrf())%0Aapp.use(csrfToken())%0A
app.
@@ -2666,16 +2666,53 @@
store())
+%0Aapp.use(csrf())%0Aapp.use(csrfToken())
%0A%0A// rou
|
d06ecf281ab1bbf2408e19b07b8966f0a5513e23 | Include origin header in check for supporting multiple hosts. | src/server.js | src/server.js | 'use strict'
const micro = require('micro')
const { send, createError } = require('micro')
const { router, get, post, put, patch, del } = require('microrouter')
const signale = require('./utils/signale')
const pipe = require('./utils/pipe')
const isDefined = require('./utils/isDefined')
const customTrackerUrl = requi... | JavaScript | 0 | @@ -1679,16 +1679,55 @@
igin) =%3E
+ origin.includes(req.headers.origin) %7C%7C
origin.
|
e35c470ddf60ff0bcc7a9c7ab3f70fcfc61a8ef7 | Remove unused variable | src/server.js | src/server.js | export default (controller, bot) => {
controller.setupWebserver(process.env.PORT || 3000, function (err, webserver) {
if (err) {
console.log(err)
throw err
}
controller.createWebhookEndpoints(webserver, bot, function () {
console.log('SPARK: Webhooks set up!')
})
webserver.post(... | JavaScript | 0.000015 | @@ -338,13 +338,8 @@
(req
-, res
) =%3E
|
41f607d625e5bbe551ce194b0c6d9d3ff80c2812 | configure models on server instantiation | src/server.js | src/server.js | import bodyParser from 'body-parser';
import EventEmitter from 'events';
import mongoose from 'mongoose';
import readline from 'readline';
import Promise from 'bluebird';
import express from 'express';
import Redis from 'ioredis';
import debug from 'debug';
import http from 'http';
mongoose.Promise = Promise;
export ... | JavaScript | 0.000001 | @@ -277,16 +277,48 @@
http';%0A%0A
+import models from './models';%0A%0A
mongoose
@@ -756,32 +756,53 @@
.redis = null;%0A%0A
+ models()(this);%0A%0A
this.log = d
|
79b7b453b1a8e2763fd236bbf4846dcc82a8ae86 | Fix for issue with the progress bar not going fully to the right. | src/app/wahvee-progress-slider.js | src/app/wahvee-progress-slider.js | /**
* Slider property defaults to "slider"
*/
Mojo.Widget.WahveeProgressSlider = Class.create({
initialize: function() {
this.seeking = false;
this.dragStartHandler = this.dragStartHandlerFunc.bindAsEventListener(this);
},
setup: function() {
// The HTML element for this widget is found in...this.controller.... | JavaScript | 0 | @@ -3500,18 +3500,16 @@
e(%7B%0A%09%09%09%09
-//
left: lo
@@ -3563,16 +3563,16 @@
centage%0A
+
%09%09%09%09widt
@@ -4672,14 +4672,8 @@
send
-.defer
(thi
@@ -5763,32 +5763,32 @@
l: function() %7B%0A
-
%09%09var pos = this
@@ -5831,16 +5831,30 @@
fsetLeft
+ + this.offset
);%0A%09%09if
|
0ac20a6f623420e1a77b954ad179eb3071a71c03 | Add isDisabled flag to uni-button | addon/components/uni-button.js | addon/components/uni-button.js | import Ember from 'ember';
import layout from '../templates/components/uni-button';
export default Ember.Component.extend({
tagName: 'button',
classNameBindings: ['isPrimary:uni-button--primary'],
classNames: ['uni-button'],
layout,
isPrimary: false
});
| JavaScript | 0.000001 | @@ -192,16 +192,51 @@
primary'
+, 'isDisabled:uni-button--disabled'
%5D,%0A cla
@@ -283,16 +283,37 @@
Primary:
+ false,%0A isDisabled:
false%0A%7D
|
e15da453405e4060c99e37f37f592b2f3475cafe | Fix a typo in 'readonly' query param | addon/controllers/edit-form.js | addon/controllers/edit-form.js | import Ember from 'ember';
import ErrorableControllerMixin from '../mixins/errorable-controller';
import FlexberryLookupMixin from '../mixins/flexberry-lookup-mixin';
/**
* Edit form base controller.
*/
export default Ember.Controller.extend(Ember.Evented, FlexberryLookupMixin, ErrorableControllerMixin, {
/**
*... | JavaScript | 0.999951 | @@ -454,17 +454,17 @@
/%0A read
-O
+o
nly: fal
|
56e95cb8462a44f5ddf43b6128616b26b07a14b0 | Update window.js | src/window.js | src/window.js | //https://developer.chrome.com/extensions/manifest/sandbox
//https://developer.chrome.com/apps/app_external
//https://developer.chrome.com/apps/tags/webview
//$:/core/modules/browser-messaging.js
//chrome://inspect/#apps
//https://developer.chrome.com/apps/tags/webview#type-ContentWindow
//TODO:
//Investigate context ... | JavaScript | 0.000001 | @@ -1042,16 +1042,122 @@
rigin);%0A
+ %0A //webview.executeScript(%7Bfile: 'tiddlyChromeFoxer.js'%7D);%0A
%0A
|
40298b6efac2c4651f3c866f66f036d026ed5363 | Fix comment | src/Parser/Core/Modules/AlwaysBeCasting.js | src/Parser/Core/Modules/AlwaysBeCasting.js | import React from 'react';
import Icon from 'common/Icon';
import { formatMilliseconds, formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Abilities from... | JavaScript | 0 | @@ -1913,77 +1913,121 @@
//
-This cast
+Only add active time for this channel, we do this when the
c
+h
an
- still be interrupted. Only add the active time when the
+nel is finished and use the highest of the GCD and
cha
@@ -2035,13 +2035,12 @@
nel
-ends.
+time
%0A
|
db0bb0aa0152ba465ffb6474d1828c8a0b916cb2 | Update test to match code behavior for non-existent hooks | node-tests/unit/tasks/run-hook-test.js | node-tests/unit/tasks/run-hook-test.js | 'use strict';
var expect = require('../../helpers/expect');
var HookTask = require('../../../lib/tasks/run-hook');
var mockProject = require('../../fixtures/ember-cordova-mock/project');
var Promise = require('ember-cli/lib/ext/promise');
describe('Run Hook Task', function() {
it('runs a... | JavaScript | 0.000001 | @@ -660,36 +660,36 @@
%7D);%0A%0A it('is re
-ject
+solv
ed if the hook d
@@ -804,38 +804,39 @@
nvalid')).to.be.
-reject
+fulfill
ed;%0A %7D);%0A%0A it(
|
09924aaf5abb24cc3b7d370661ad5d97c1d8f238 | Remove lodash require | ui/js/component/dropdown/item.js | ui/js/component/dropdown/item.js | 'use strict';
var _ = require('lodash');
module.exports = {
replace : true,
template: require('./item.html'),
data: function () {
return {
open : false,
selected: false,
children: []
};
},
computed: {
hasChildren: function () {
return this.children && this.children.length > 0;
},
},
... | JavaScript | 0 | @@ -12,36 +12,8 @@
';%0A%0A
-var _ = require('lodash');%0A%0A
modu
|
6094d4587ed53dba37ba181217339c0c7e70d031 | add jquerify builder | example/builders/jquerify.js | example/builders/jquerify.js | import {noConflict} from 'jquery';
var $ = noConflict();
import {Builder} from '../../es6/lib/ceb.js';
export class JquerifyBuilder extends Builder {
constructor() {
super();
}
build(proto, on) {
on('before:createdCallback').invoke(el => {
el.$ = $(el);
});
}
}
ex... | JavaScript | 0.000001 | @@ -282,16 +282,40 @@
el.$ =
+ $;%0A el.$el =
$(el);%0A
|
8e87702d00a6adada4a111dee36fd2458d6aeb3a | complete storing date | www/javascripts/controllers.js | www/javascripts/controllers.js |
window.fn = {};
window.fn.open = function() {
var menu = document.getElementById('menu');
menu.open();
};
window.fn.load = function(page) {
var content = document.getElementById('content');
var menu = document.getElementById('menu');
content.load(page)
.then(menu.close.bind(menu));
};
//logout functi... | JavaScript | 0.000046 | @@ -2788,41 +2788,161 @@
%0A%0A
-console.log(last_menstrual_period
+var lmp_date = last_menstrual_period.getFullYear()+'-'+ last_menstrual_period.getMonth() +'-'+ last_menstrual_period.getDate();%0A %0A console.log(lmp_date
);%0A%0A
@@ -3875,36 +3875,23 @@
rname, l
-ast_menstrual_period
+mp_date
, thedat
|
68952cb0d102c31bacd99ae1fd4416fa597612c4 | Fix travis error | src/Parser/Druid/Guardian/CombatLogParser.js | src/Parser/Druid/Guardian/CombatLogParser.js | import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import HealingDone from 'Parser/Core/Modules/HealingDone';
import DamageDone from 'Parser/Core/Modules/DamageDone';
import DamageTaken from 'Parser/Core/Modules/DamageTaken';
import Abilities... | JavaScript | 0.000004 | @@ -295,16 +295,72 @@
eTaken';
+%0Aimport DeathRecapTracker from 'Main/DeathRecapTracker';
%0A%0Aimport
@@ -905,64 +905,8 @@
am';
-%0Aimport DeathRecapTracker from 'Main/DeathRecapTracker';
%0A%0Aim
|
b638ab6dc45115283d61f67636ea1cd7f4aa7019 | Update newitemval.js | resources/newitemval.js | resources/newitemval.js | // JavaScript source code
function validate(formObj) {
//Variables
var fix = "";
var valid = true;
//Valid Category
if (formObj.catagory.value == "") {
valid = false;
fix = fix.concat("\nCatagory");
}
if (formObj.item.value == "") {
valid = false;
fix = fix.... | JavaScript | 0.000001 | @@ -438,201 +438,14 @@
/*
+%0A
var
- s=document.getElementById(%22mySelect%22);%0A if (s.options%5Bs.selectedIndex%5D.text == %22None%22 )%7B%0A document.getElementById(%22select%22).style.color = %22#ff0000%22;%0A c++;%0A return false;%0A %7D%0A int
a =
@@ -713,16 +713,188 @@
.value;%0A
+ var s=d... |
fd684ddab77fc5cef3d8f1b688662e8cfce695cb | Repair validation needed for replication. | validate_doc_update.js | validate_doc_update.js | function (newDoc, oldDoc, userCtx) {
function forbidden(message) {
throw({forbidden : message});
};
function unauthorized(message) {
throw({unauthorized : message});
};
if (userCtx.roles.indexOf('hf_app_admins') == -1) {
// admin can edit anything, only check when not admin...
if (newD... | JavaScript | 0 | @@ -190,16 +190,64 @@
%7D;%0A%0A if
+ ((userCtx.roles.indexOf('_admin') == -1)%0A &&
(userCt
@@ -281,24 +281,25 @@
ins') == -1)
+)
%7B%0A // ad
|
2c0b314cfdb518f893dd64507a11cbd6b01cb7d0 | Resolve a shuttle issue on the maps tab p3 | app/views/map/SearchShuttleMenu.js | app/views/map/SearchShuttleMenu.js | import React from 'react'
import {
View,
Text,
StyleSheet,
Dimensions,
FlatList,
StatusBar,
Platform,
TouchableOpacity
} from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons'
import COLOR from '../../styles/ColorConstants'
import LAYOUT from '../../styles/LayoutConstants'
import { doPRM, get... | JavaScript | 0 | @@ -60,52 +60,16 @@
t,%0A%09
-Dimensions,%0A%09FlatList,%0A%09StatusBar,%0A%09Platform
+FlatList
,%0A%09T
@@ -204,24 +204,24 @@
rConstants'%0A
+
import LAYOU
@@ -261,220 +261,8 @@
nts'
-%0Aimport %7B doPRM, getPRM, getMaxCardWidth %7D from '../../util/general'%0A%0A%0Aconst deviceHeight = Dimensions.get('window').... |
1c9d09871ee0ecb9aa843d19a81a941722fb7f9d | Fix redundant route | webapp/core/src/main/public/static/js/find/app/app.js | webapp/core/src/main/public/static/js/find/app/app.js | /*
* Copyright 2014-2017 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'underscore',
'jquery',
'backbone',
'find/app/util/test-browser',
'find/app/model/window-sc... | JavaScript | 0.000006 | @@ -4097,18 +4097,16 @@
ch/query
-/*
'%0A
|
ac996c2d66c3a32963cf30c5704ae96885420d99 | Remove stale comment. | static/app.js | static/app.js | ( function()
{
var appVersion = "17.06-03";
//
angular.module( "CanteenApp", [ "Canteen.Login", "Canteen.Store", "Canteen.ShopDialog", "Canteen.Event", "Canteen.Customer", "Canteen.PurchaseItemDialog", "Canteen.Setup", "Canteen.Supply", "Canteen.CustomersTable", "Canteen.About", "Canteen.Directives", "ui.router", "u... | JavaScript | 0 | @@ -39,18 +39,16 @@
6-03%22;%0A%09
-//
%0A%09angula
|
06175eeec1af9cdc2eca6c5d807372f3037c94e4 | Use underscore methods | static/app.js | static/app.js | var nad = nad || {};
nad.fmtCmd = function(data) {
return 'Main.' + [data.Variable, data.Value].join(data.Operator);
};
nad.send = function(ctrl, req) {
m.request({method: 'POST', url: '/api/v1/nad', data: req})
.then(function (data) {
var state = ctrl.model().state;
state[data.Variable] = data.Va... | JavaScript | 0.000321 | @@ -1656,27 +1656,25 @@
;%0A if (
-Object.keys
+_.isEmpty
(ctrl.mo
@@ -1682,21 +1682,15 @@
el()
-).length %3C= 1
+.state)
) %7B%0A
@@ -2509,20 +2509,23 @@
%7D,
+_.map(
sources
-.map(
+,
func
@@ -3087,35 +3087,21 @@
r =
-Object.keys(e).length !== 0
+!_.isEmpty(e)
;%0A
|
176597b0ffe6e08b6b4ab2af04ef6048856dc2dc | Update IndexController.js | App/Lib/Controller/Home/IndexController.js | App/Lib/Controller/Home/IndexController.js | /**
* controller
* @return
*/
module.exports = Controller("Home/BaseController", function(){
"use strict";
var Service = require("../../Service/Service");
var c_data = {
navLinks : navLinks,
section : 'home'
};
return {
indexAction: function(){
var self = this;
var userInfo = null;
... | JavaScript | 0.000001 | @@ -515,9 +515,9 @@
age:
-0
+1
%7D);
|
280796f433e3aca870b6a66521ed7021fe441236 | Add category mapping for "onsdagsdebatt" | server/import/import_scripts/category_mapping.js | server/import/import_scripts/category_mapping.js | module.exports = {
"Dagens bedrift": "PRESENTATIONS",
"Fest og moro": "NIGHTLIFE",
"Konsert": "MUSIC",
"Kurs og events": "PRESENTATIONS",
"Revy og teater": "PERFORMANCES",
"Foredrag": "PRESENTATIONS",
"Møte": "DEBATE",
"Happening": "NIGHTLIFE",
"Kurs": "OTHER",
"Show": "PERFORMAN... | JavaScript | 0.000005 | @@ -819,16 +819,48 @@
tm%C3%B8te%22 :
+ %22DEBATE%22,%0A %22Onsdagsdebatt%22 :
%22DEBATE
|
dcabc9b50d2ca84b656da9904bb5eec4df4fc1d4 | Use setTimeout instead of setInterval to get unread count | src/browser/webview/mattermost.js | src/browser/webview/mattermost.js | 'use strict';
const electron = require('electron');
const ipc = electron.ipcRenderer;
const webFrame = electron.webFrame;
const notification = require('../js/notification');
Reflect.deleteProperty(global.Buffer); // http://electron.atom.io/docs/tutorial/security/#buffer-global
function hasClass(element, className) {... | JavaScript | 0 | @@ -169,16 +169,53 @@
ion');%0A%0A
+const UNREAD_COUNT_INTERVAL = 1000;%0A%0A
Reflect.
@@ -511,20 +511,8 @@
%0A%7D%0A%0A
-setInterval(
func
@@ -535,16 +535,16 @@
unt() %7B%0A
+
if (!t
@@ -874,24 +874,79 @@
nCount = 0;%0A
+ setTimeout(getUnreadCount, UNREAD_COUNT_INTERVAL);%0A
return;%0A
@@ -2181,24 +21... |
9237999864c66225b06102b281fc585d6f3f16b5 | add req.body.key | routes/keys.js | routes/keys.js | var express = require('express');
var router = express.Router({mergeParams: true});
var Key = require('../models/keys');
var middleware = require('../middleware');
router.get('/', function(req, res) {
var allTags = [];
Key.find({}, function(err, allKeys){
if(err){
console.log(err);
... | JavaScript | 0.000002 | @@ -2422,32 +2422,46 @@
e(req.params.id,
+ req.body.key,
function(err, f
|
4b731a076dd6596ec01b3118ae3b6bbf9c235095 | test img | angular/app/filters/filters.js | angular/app/filters/filters.js | 'use strict';
/* Filters */
var myappFilters = angular.module('myappFilters', []);
myappFilters.filter('checkmark', function() {
return function(input) {
return input ? '\u2713' : '\u2718';
};
});
myappFilters.filter('textFormat', function() {
return function(input) {
return input.replace(/\n/g, "<"+"br/>");... | JavaScript | 0.000009 | @@ -519,16 +519,323 @@
%5C/img%5C%5D/
+i;%0A%0A%09//var replace = %22%3Ca href=%5C%22%22+img+%22%5C%22 target=%5C%22_blank%5C%22%3E%3Cimg style=%5C%22border: 5px solid dodgerblue;%5C%22 id=%5C%22imgB64%5C%22 src=%5C%22$1%5C%22 alt=%5C%22test%5C%22%3E%3C/a%3E%22;%0A%09var imgReplace = %22%3Cimg style=%5C%22cursor: poin... |
176377f6e56e8d94fa84064fcf45721f45b3b8a3 | Fix position exploit | routes/views/profile.js | routes/views/profile.js | var keystone = require('keystone');
var User = keystone.list('User');
var FileData = keystone.list('FileUpload');
exports = module.exports = function(req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
FileData.model.find({ "name": res.locals.user.id }).exec(function(err, item) ... | JavaScript | 0.000029 | @@ -1395,45 +1395,8 @@
= %7B%0A
- avatar: req.body.avatar,%0A
@@ -1461,49 +1461,8 @@
%7D,%0A
- position: req.body.position,%0A
|
5233e772ebee78f2d9271e9d702ea528aa1851d5 | add time_historical_cutoff param to example to really load only active offers | storehouse.js | storehouse.js | var username = '';
var password = '';
var steamGuard = require('fs').existsSync('sentry') ? require('fs').readFileSync('sentry')
: ''; // code received by email
var admin = ''; // put your steamid here so the bot can accept your offers
var Steam = require('steam');
var SteamTradeOffers = require('./'); // change t... | JavaScript | 0 | @@ -925,16 +925,23 @@
Offers(%7B
+%0A
get_rece
@@ -955,16 +955,22 @@
fers: 1,
+%0A
active_
@@ -976,16 +976,82 @@
_only: 1
+,%0A time_historical_cutoff: Math.round(Date.now() / 1000)%0A
%7D, funct
|
2d89ca0e3ee874b335513adae19556655efa2fc3 | Fix for local domains | src/client/CookieTokenProvider.js | src/client/CookieTokenProvider.js | import doubleApi from "../doubleApi";
import BaseTokenProvider from "./BaseTokenProvider";
import { decodeToken } from "../jwt";
const TOKEN_COOKIE_NAME = "blank-token";
export default class CookieTokenProvider extends BaseTokenProvider {
constructor() {
super();
}
canIUse() {
return /^((... | JavaScript | 0.000001 | @@ -1478,9 +1478,9 @@
h -
-2
+1
; i
|
e7b0743bb46540f43028854e88dfe16fdc69f94a | Set all nonces | migrations/current.js | migrations/current.js | // 1 Rename project.group to project.accessGroup and set all project.statusCode to DONE
db.projects.update({},{
$rename:{"group":"accessGroup"},
$set:{"statusCode":"DONE"}
},{multi:true});
// 2 Rename `modifications.scenario` to `modifications.scenarioId`
db.modifications.update({},{$rename:{"scenario":"scenarioId"}... | JavaScript | 0.999433 | @@ -2171,20 +2171,8 @@
te(%7B
-%22nonce%22:null
%7D,%7B$
|
0e452735c0d82e4708326ceb04c1e5fdc6c76ceb | Add missing parameters to function signature | src/app/utilities/api-clients/collections.js | src/app/utilities/api-clients/collections.js | import http from '../http';
export default class collections {
static getAll() {
return http.get(`/zebedee/collections`)
.then(response => {
return response;
})
}
static addDataset(collectionID, datasetID) {
const body = {state: "inProgress"};
... | JavaScript | 0.000002 | @@ -1731,32 +1731,54 @@
ionID, datasetID
+, editionID, versionID
) %7B%0A cons
@@ -2098,32 +2098,54 @@
ionID, datasetID
+, editionID, versionID
) %7B%0A cons
|
01960d07463499d34a8c79cecb766394c8e9e9f0 | update CheckboxGroup | src/CheckboxGroup/CheckboxGroup.js | src/CheckboxGroup/CheckboxGroup.js | /**
* @file CheckboxGroup component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import cloneDeep from 'lodash/cloneDeep';
import isArray from 'lodash/isArray';
import classNames from 'classnames';
import Checkbox from '../Checkbo... | JavaScript | 0 | @@ -645,60 +645,8 @@
%7D;%0A%0A
- this.changeHandler = ::this.changeHandler;%0A%0A
@@ -665,22 +665,26 @@
eHandler
-(
+ =
item
-)
+ =%3E
%7B%0A%0A
@@ -1222,24 +1222,25 @@
%7D);%0A%0A %7D
+;
%0A%0A compon
|
53f778c5a51abaae784f87a2c3125f812a89aad7 | Update proposed command structure for 1.x | example/1.x/example.js | example/1.x/example.js | /**
* @file this is an example file of the proposed 1.x command system
* @author Capuccino
*/
/**
* unlike the 0.x system, we use a class based approach to our commands, we parse the class name as the name of the commands
* due to the limitation of the 0.x command system of not being able to use decl... | JavaScript | 0 | @@ -1,368 +1,148 @@
/*
-*%0D%0A * @file this is an example file of the proposed 1.x command system%0D%0A * @author Capuccino%0D%0A
+ eslint-disable
*/%0D%0A
-
%0D%0A/
-**%0D%0A * unlike the 0.x system, we use a class based approach to our commands, we p
+/ %60Command%60 and %60SubCommand%60
ar
-s
e
-the cla... |
3fc7c08bc19641c96978472238bf6e0ee8c128af | remove unneeded collections call | src/app/utilities/api-clients/collections.js | src/app/utilities/api-clients/collections.js | import http from "../http";
export default class collections {
static get(collectionID) {
return http.get(`/zebedee/collectionDetails/${collectionID}`);
}
static getAll() {
return http.get(`/zebedee/collections`).then(response => {
return response;
});
}
static... | JavaScript | 0 | @@ -924,274 +924,8 @@
%7D%0A%0A
- static saveAndSubmitPageContentForReview(collectionID, contentURI, body) %7B%0A this.savePageContent(collectionID, contentURI, body).then(() =%3E %7B%0A return http.post(%60/zebedee/complete/$%7BcollectionID%7D?uri=$%7BcontentURI%7Ddata.json%60);%0A %7D);%... |
30951f7bbbf5a94593c7aa89ffff639022e055c5 | fix error messages localisation error | actor-sdk/sdk-web/src/stores/LoginStore.js | actor-sdk/sdk-web/src/stores/LoginStore.js | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import { Store } from 'flux/utils';
import Dispatcher from '../dispatcher/ActorAppDispatcher';
import { ActionTypes, AuthSteps } from '../constants/ActorAppConstants';
import ActorClient from '../utils/ActorClient';
import Bugsnag from '../utils/Bugsnag';
imp... | JavaScript | 0.000008 | @@ -362,17 +362,20 @@
mport %7B
-i
+getI
ntlData
@@ -700,17 +700,17 @@
tructor(
-D
+d
ispatche
@@ -724,17 +724,17 @@
super(
-D
+d
ispatche
@@ -736,16 +736,48 @@
atcher);
+%0A%0A this.intl = getIntlData();
%0A %7D%0A%0A
@@ -2257,32 +2257,33 @@
ors.login =
+this.
intl
-Data
.messages.lo
@@ -2382,24 ... |
eef2eeef64190d1b0aca86370179ece2fd563673 | move font-weight declaration; saves no bytes | submission.js | submission.js | // jshint ignore: start
/*
a = canvases
b = body
s = canvas size
T = tick
X, Y, Z, and _ are temporary
*/
document.documentElement.style.cssText = 'width:100%;height:100%;display:table;background:#333;font-family:"Helvetica Neue",sans-serif;font-weight:100';
b.style.cssText = 'display:table-cell;vertical-align:m... | JavaScript | 0.000002 | @@ -171,16 +171,32 @@
ht:100%25;
+font-weight:100;
display:
@@ -256,32 +256,16 @@
ns-serif
-;font-weight:100
';%0Ab.sty
|
c6a6c40c554af0652cbbf6e9a909f404a75e44da | fix user list trailing slash | lumify-web-war/src/main/webapp/js/service/user.js | lumify-web-war/src/main/webapp/js/service/user.js | define(
[
'service/serviceBase'
],
function (ServiceBase) {
'use strict';
function UserService() {
ServiceBase.call(this);
return this;
}
UserService.prototype = Object.create(ServiceBase.prototype);
UserService.prototype.isLoginReq... | JavaScript | 0.000044 | @@ -1602,17 +1602,16 @@
: '/user
-/
'%0A
|
c8a4f6066a7eaaec74d9dfef345eaf1626694fbc | use context | src/commands/Worldstate/Alerts.js | src/commands/Worldstate/Alerts.js | 'use strict';
const Command = require('../../models/Command.js');
const AlertEmbed = require('../../embeds/AlertEmbed.js');
const { createPageCollector } = require('../../CommonFunctions');
/**
* Displays the currently active alerts
*/
class Alerts extends Command {
/**
* Constructs a callable command
* @pa... | JavaScript | 0.99865 | @@ -590,16 +590,21 @@
(message
+, ctx
) %7B%0A
@@ -1075,72 +1075,20 @@
%7C%7C
-await this.settings.getChannelSetting(message.channel, '
+ctx.
platform
');%0A
@@ -1083,18 +1083,16 @@
platform
-')
;%0A co
|
bb1fcaf63439257d88f154f3195ed2a32448d447 | Optimize regexes and performance | skeleton/modules/autoupdate/isDesktopInjector.js | skeleton/modules/autoupdate/isDesktopInjector.js | 'use strict';
/**
* Until we would have a `web.desktop` arch in Meteor we need to provide a way to distinguish
* the desktop specific code. The easiest approach is to have a Meteor.isDesktop. Since we do not
* want the `Meteor.isCordova` to be true we just replace it with `isDesktop`.
* Also we need to change the ... | JavaScript | 0 | @@ -497,17 +497,148 @@
('%5C%5C
-(
+.isCordova%5C%5C)%5B%5C%5CS%5C%5Cs%5D*?startupDidComplete%5C%5C(', 'gm');%0A%0A this.startupDidCompleteRegExReplace =%0A new RegExp('(%5C%5C
(%5C%5Cw+
+%5C%5C
.)(
+?:
isCo
@@ -647,12 +647,12 @@
ova)
+(
%5C%5C)
-(
%5B%5C%5CS
@@ -657,18 +657,143 @@
%5CS%5C%5Cs... |
d6df8c9f7a74508518301abd65536725e679d483 | Fix travis | addon/serializers/base.js | addon/serializers/base.js | import Ember from 'ember';
import DS from 'ember-data';
import { singularize } from 'ember-inflector';
import { capitalize, camelize, dasherize } from '../utils/string-functions';
/**
* Base serializer class.
*
* @module ember-flexberry-data
* @namespace Serializer
* @class Base
*/
export default DS.RESTSerializ... | JavaScript | 0.000008 | @@ -2268,24 +2268,25 @@
e) %7B%0A
+
let newTypeC
@@ -2324,16 +2324,17 @@
Model);%0A
+
r
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.