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 |
|---|---|---|---|---|---|---|---|
6a41d7045f57347309a7a1486b9512b4cf20b21b | Remove all references to the runtime cache | service-worker.js | service-worker.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 applicable law or agreed to ... | JavaScript | 0.000001 | @@ -807,35 +807,8 @@
v5';
-%0Aconst RUNTIME = 'runtime';
%0A%0A//
@@ -1389,17 +1389,8 @@
ACHE
-, RUNTIME
%5D;%0A
@@ -2030,55 +2030,8 @@
urn
-caches.open(RUNTIME).then(cache =%3E (%0A
fetc
@@ -2056,17 +2056,16 @@
hen(
-(
response
) =%3E
@@ -2064,66 +2064,20 @@
onse
-)
=%3E
-%7B%0A ret... |
376ba2e3c1fdcfab57cb00153802eb3adfe6689e | Simplify StoreErrorNotice. | assets/js/components/StoreErrorNotice.js | assets/js/components/StoreErrorNotice.js | /**
* StoreErrorNotice component.
*
* 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/LICENSE-2.... | JavaScript | 0 | @@ -868,16 +868,31 @@
Data;%0A%0A
+export default
function
@@ -915,20 +915,8 @@
e( %7B
- moduleSlug,
sto
@@ -941,16 +941,28 @@
layError
+, moduleSlug
%7D ) %7B%0A%09
@@ -1043,16 +1043,20 @@
%09return
+(%0A%09%09
%3CErrorNo
@@ -1059,17 +1059,20 @@
orNotice
-
+%0A%09%09%09
error=%7B
@@ -1078,17 +1078,49 ... |
d44b9be6aed73de57add0fd17cc84d9c35ea5c6d | Make onChange optional in AccordionContainer and allow providing default items | src/AccordionContainer/AccordionContainer.js | src/AccordionContainer/AccordionContainer.js | // @flow
import { Component, type Node } from 'react';
export type Item = {
uuid: string | number,
expanded: boolean,
disabled: boolean,
};
export type ProviderState = {
items: Array<Item>,
onChange: Function,
};
export type ProviderProps = {
accordion: boolean,
onChange: Function,
c... | JavaScript | 0 | @@ -288,32 +288,33 @@
an,%0A onChange
+?
: Function,%0A
@@ -325,24 +325,49 @@
dren: Node,%0A
+ items?: Array%3CItem%3E,%0A
%7D;%0A%0Aexport t
@@ -1087,17 +1087,31 @@
stat
-e
+ic defaultProps
= %7B%0A
@@ -1126,16 +1126,105 @@
ms: %5B%5D,%0A
+ onChange: () =%3E %7B%7D,%0A %7D;%0A%0A ... |
2a3b09bb8a599a77316578180ce150314300ba52 | use TitleMessage to ensure same look | packages/tocco-util/src/notifier/modules/modalComponents/ModalContent.js | packages/tocco-util/src/notifier/modules/modalComponents/ModalContent.js | import React from 'react'
import PropTypes from 'prop-types'
import {Typography} from 'tocco-ui'
import {Content} from '../../components/TitleMessage'
import {StyledModelContent} from './StyledModelContent'
class ModalContent extends React.Component {
constructor(props) {
super(props)
this.state = {isClosin... | JavaScript | 0 | @@ -58,61 +58,28 @@
es'%0A
+%0A
import
-%7BTypography%7D from 'tocco-ui'%0A%0Aimport %7BContent%7D
+TitleMessage
fro
@@ -745,105 +745,43 @@
-%7Bt
+%3CT
itle
- && %3CContent content=%7Btitle%7D tag=%7BTypography.H4%7D /%3E%7D%0A %7Bmessage && %3CContent content
+Message title=%7Btitle%7D message
=%... |
ef98156f0968e7664eb54c3fa2c8b1bffb7f7ac0 | add helper to list plugins's api.js files | lib/helpers/plugin_api.js | lib/helpers/plugin_api.js | /**
* Serves static assets for Hoodie plugins
*
*/
var path = require('path');
var pluginsFrom = function (config) {
return Object.keys(config.plugins);
}
exports.metadata = function (config) {
return pluginsFrom(config).map(function (id) {
var meta = config.plugins[id].metadata;
var name = meta.name... | JavaScript | 0 | @@ -807,16 +807,487 @@
;%0A %7D, %7B%7D);%0A%0A%7D;%0A
+%0A/*%0A Return an object of plugin names and paths to all plugin's %60api.js%60 files%0A*/%0Aexports.pluginsWithApi = function (config) %7B%0A var makePath = function (acc, id) %7B%0A var plugin = config.plugins%5Bid%5D;%0A var name = plugin.metadata.na... |
9ac9caf3306e730a550f5e571196c263e83ac237 | Set MAX_SERVERS = 320 | lib/https/server-agent.js | lib/https/server-agent.js | var tls = require('tls');
var Q = require('q');
var ca = require('./ca');
var MAX_SERVERS = 360;
var MAX_PORT = 60000;
var curPort = 40000;
var TIMEOUT = 6000;
var DELAY = 100;
function ServerAgent() {
this._cache = {};
this._serverCount = 0;
}
var proto = ServerAgent.prototype;
proto.createServer = function cre... | JavaScript | 0.999996 | @@ -86,17 +86,17 @@
VERS = 3
-6
+2
0;%0Avar M
|
3806ec879d0ca828230bf24b1c040ff9408c150d | Check if token is an error | api/src/plugins/email-token-scheme.js | api/src/plugins/email-token-scheme.js | const Boom = require('boom');
const bookshelf = require('../lib/bookshelf');
exports.register = function (server, pluginOptions, next) {
server.auth.scheme('email_token', (server, schemeOptions) => {
return {
async authenticate(request, reply) {
try {
var token = await schemeOptions.findT... | JavaScript | 0.000035 | @@ -340,16 +340,108 @@
token);%0A
+ if (token.name === 'TypeError') %7B%0A reply(Boom.forbidden())%0A %7D%0A
|
a352e4652298c5a7b019ee7a246d47844f51a4fb | Add Redis Log | lib/storage.js | lib/storage.js | var Redis = require('ioredis');
var Url = require('url');
var sortRss = require('./sortRss');
redisUrl = process.env.REDIS_URL ? process.env.REDIS_URL : 'redis://localhost:6379';
var redis = new Redis(redisUrl);
var itemPrefix = 'zhuanlan-rss:item:';
var accessPrefix = 'zhuanlan-rss:last_access:';
var trimAccessTime... | JavaScript | 0 | @@ -177,39 +177,250 @@
9';%0A
-%0Avar redis = new Redis(redisUrl
+console.log('redis connecting to ' + redisUrl);%0Avar redis = new Redis(redisUrl);%0A%0Aredis.on('error', function(err)%7B%0A%09console.log('redis connecting err ' + err);%0A%7D);%0A%0Aredis.on('ready', function()%7B%0A%09console.log('redis connected su... |
3558fc9ebad17de5e3c1ba7ada85b5e5a5ab124e | Update footer | src/js/containers/app/main-footer.js | src/js/containers/app/main-footer.js | 'use strict'
import React from 'react'
const MainFooter = () => (
<footer className='footer' role='contentinfo'>
<div className='footer-inner'>
<div className='container-flex'>
<div className='footer-inner--main'>
<p>Esse projeto é uma iniciativa da organização {' '}
<a href=... | JavaScript | 0.000001 | @@ -34,16 +34,253 @@
react'%0A%0A
+const footerLinks = %5B%7B%0A href: 'https://github.com/frontendbr/forum',%0A title: 'Acesso nosso f%C3%B3rum',%0A content: 'F%C3%B3rum'%0A%7D, %7B%0A href: 'https://github.com/frontendbr/vagas',%0A title: 'Publique ou encontre uma vaga',%0A content: 'Vagas'%0A%7D%5D%0A%0A
con... |
7f3090b14564623b6ed467f763d19b61a1827647 | remove redundant get all providers require | src/js/page-all-service-providers.js | src/js/page-all-service-providers.js | // Page modules
var FastClick = require('fastclick')
var nav = require('./nav.js') // eslint-disable-line
// FastClick
FastClick.attach(document.body)
var _ = require('lodash')
require.ensure(['./get-all-providers', 'hogan.js'], function(require) {
var apiRoutes = require('./api')
var getApiData = require('./get... | JavaScript | 0 | @@ -193,31 +193,8 @@
re(%5B
-'./get-all-providers',
'hog
|
17da777efb4cdefe3a60f112636ff4fe0f126121 | Handle setTimeout loops without relying on ID allocation | src/Filters/HTML/ScriptsDeferring/rewrite.js | src/Filters/HTML/ScriptsDeferring/rewrite.js | /* global phast */
var Promise = phast.ES6Promise;
var go = phast.once(loadScripts);
phast.on(document, 'DOMContentLoaded').then(function () {
if (phast.stylesLoading) {
phast.onStylesLoaded = go;
setTimeout(go, 4000);
} else {
Promise.resolve().then(go);
}
});
var loadFiltered =... | JavaScript | 0 | @@ -623,16 +623,257 @@
%7D%0A%7D);%0A%0A
+var didSetTimeout = false;%0Avar originalSetTimeout = window.setTimeout;%0A%0Awindow.setTimeout = function (fn, delay) %7B%0A if (!delay %7C%7C delay %3C 0) %7B%0A didSetTimeout = true;%0A %7D%0A return originalSetTimeout.call(window, fn, delay);%0A%7D;%0A%0A
... |
610eeb852515267d1bb5e86a3ae0c01f553a996c | rename cb to sendUpdate since it's not really a callback because it is called multiple times | lib/watcher.js | lib/watcher.js |
var path = require("path");
var domain = require("domain");
var watchr = require('watchr');
var _ = require("underscore");
var minimatch = require("minimatch");
var log = require("./log");
function ensureArray(ob) {
return Array.isArray(ob) ? ob : [ob];
}
function matchAny(matchers, target) {
var matcher;
f... | JavaScript | 0 | @@ -686,18 +686,26 @@
e(opts,
-cb
+sendUpdate
) %7B%0A op
@@ -860,23 +860,18 @@
%0A%0A
-var debouncedCb
+sendUpdate
= _
@@ -934,10 +934,18 @@
-cb
+sendUpdate
(err
@@ -1492,19 +1492,18 @@
urn
-debouncedCb
+sendUpdate
(nul
|
7a45bd8143482ab070c4320900bd5bad1865f47a | Update getAccount api | samples/msal-browser-samples/VanillaJSTestApp2.0/app/b2c/auth.js | samples/msal-browser-samples/VanillaJSTestApp2.0/app/b2c/auth.js | let signInType;
let accountId = "";
// Create the main myMSALObj instance
// configuration parameters are located at authConfig.js
const myMSALObj = new msal.PublicClientApplication(msalConfig);
// Register Callbacks for Redirect flow
myMSALObj.handleRedirectPromise().then(response => {
if (response) {
ha... | JavaScript | 0.000001 | @@ -1181,23 +1181,55 @@
ntAcc =
+myMSALObj.getAccountByHomeId(
account
+Id)
;%0A my
@@ -1655,16 +1655,20 @@
ccountBy
+Home
Id(accou
|
630a9579edc45e0b8f45deafb2cee6ba6e255350 | add strategy | config/strategies.js | config/strategies.js | module.exports = {
STRAGETIES: {
main: [
{ crawler: 'r18', condition: /^asw-\d{3}$/ },
{ crawler: 'r18', condition: /^ght-\d{3}$/ },
{ crawler: 'caribbeancom', condition: /^(carib|caribbean) \d{6}-\d{3}$/ },
{ crawler: 'caribbeancompr', condition: /^(caribpr|c... | JavaScript | 0.000011 | @@ -752,32 +752,92 @@
mkbd-s)%5Cd+$/ %7D,%0A
+ %7B crawler: 'avent', condition: /%5Ecld%5Cd%7B2%7D%7D$/ %7D,%0A
%5D,%0A %0A
|
aa88754c7efdec9ec6732b0dd34b79e7f46bd2e6 | Add push()/pop() loggers and vis | lib/node-console/index.js | lib/node-console/index.js | /**
* Create a console logger w/ formatting, timestamp, color, namespace
*
* Licensed under MIT.
* Copyright (c) 2013 David Smith <https://github.com/codeactual/>
*/
/*jshint node:true*/
'use strict';
module.exports = {
create: create,
NodeConsole: NodeConsole,
mixin: mixin,
requireComponent: require, //... | JavaScript | 0 | @@ -727,24 +727,51 @@
mespace: '',
+ // Prepend to each message
%0A quiet:
@@ -796,35 +796,122 @@
rue,
-%0A traceDepth: false,%0A
+ // Prepend toUTCString()%0A traceIndent: ' ', // Represent a trace level%0A traceLanes: true // Prepend each
tra
@@ -918,20 +918,24 @@
ceIndent
-: '
+ with '%7C
... |
6b26898ffca54ab89301b07c9f9da868411eba32 | Attach sub-reporters to the multiple reporter | lib/reporters/multiple.js | lib/reporters/multiple.js | // Load modules
var Path = require('path');
var Hoek = require('hoek');
var Reporters = require('./index');
// Declare internals
var internals = {};
exports = module.exports = internals.Reporter = function (options) {
internals.reporters = [];
options.reporter.forEach(function (reporter, index) {
... | JavaScript | 0.998953 | @@ -218,34 +218,51 @@
ons) %7B%0A%0A
-internals.
+var self = this;%0A self._
reporters =
@@ -708,26 +708,22 @@
while (
-internals.
+self._
reporter
@@ -867,34 +867,30 @@
%7D%0A%0A
-internals.
+self._
reporters%5Bre
@@ -1057,34 +1057,30 @@
(var key in
-internal
+thi
s.
+_
reporters) %7B
@@ -1... |
7b4a1e26050596a70e8510399a6ce50f911b74fb | Fix lint error naming conflict in upper scope | lib/rules_core/linkify.js | lib/rules_core/linkify.js | // Replace link-like texts with link nodes.
//
// Currently restricted by `inline.validateLink()` to http/https/ftp
//
'use strict';
var Autolinker = require('autolinker');
var LINK_SCAN_RE = /www|@|\:\/\//;
function isLinkOpen(str) {
return /^<a[>\s]/i.test(str);
}
function isLinkClose(str) {
return /^<\/a\s... | JavaScript | 0.000001 | @@ -614,20 +614,16 @@
nction (
-auto
linker,
|
e6fc6b0fce08bce8bca62ce1a763e7a73aa0a2dd | Make sure verify stops after an error. | lib/schema/transaction.js | lib/schema/transaction.js | var mongoose = require('../../vendor/mongoose/lib/mongoose/index'); // database
var Script = require('../script').Script;
var Util = require('../util');
var bigint = require('bigint');
var Binary = require('../binary');
var Schema = mongoose.Schema,
ObjectId = Schema.ObjectId;
var TransactionIn = new Schema({
sc... | JavaScript | 0 | @@ -4975,16 +4975,30 @@
ack(e);%0A
+%09%09%09%09%09%09return;%0A
%09%09%09%09%09%7D%0A%0A
@@ -5082,16 +5082,28 @@
ack(e);%0A
+%09%09%09%09return;%0A
%09%09%09%7D%0A%09%09%7D
|
56dbb51d24709dccfd021485b5eff3e3dbf0e7ec | add volume sensitivity | lib/shredometerService.js | lib/shredometerService.js | const EventEmitter = require('events')
const Rx = require('rxjs')
const _ = require('lodash')
const d3 = require('d3')
const keyup$ = new Rx.Subject()
// from index.html
const shredbeat = window.shredbeat || {}
if (typeof shredbeat.osGlobalKeyPress === 'function') {
shredbeat.osGlobalKeyPress((event) => {
keyup... | JavaScript | 0.000001 | @@ -2488,69 +2488,8 @@
%7D
-%0A console.log(this.amplitudeSensitivity, this.amplitude)
%0A%0A
|
05175da54edf17b24a74a1634e6884c7a5b0853d | fix typo in Command constructor | lib/structures/Command.js | lib/structures/Command.js | /*
* patron - The cleanest command framework for discord.js and eris.
* Copyright (C) 2020 patron contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
*... | JavaScript | 0.002509 | @@ -1378,38 +1378,38 @@
sions = options.
-member
+client
Permissions == n
@@ -1457,38 +1457,38 @@
sions : options.
-member
+client
Permissions;%0A
|
0fc88659c28ed89dd86c6c15897816a713796307 | Remove outdated copyright/license header. | lib/support/statistics.js | lib/support/statistics.js | /**
* Browsertime (http://www.browsertime.net)
* Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog
* and other contributors
* Released under the Apache 2.0 License
*/
/*
* Utility functions for managing statistics of collected metrics and timings.
*/
'use strict';
let Stats = require('fast-stats').Stats;
fu... | JavaScript | 0 | @@ -1,179 +1,4 @@
-/**%0A * Browsertime (http://www.browsertime.net)%0A * Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog%0A * and other contributors%0A * Released under the Apache 2.0 License%0A */%0A%0A
/*%0A
|
5191ccb638beea5075c1c52138b819ed5be13883 | write fixed user-script.log to /tmp/sivart/logs | saveLogs.js | saveLogs.js | 'use strict';
var fs = require('fs');
var path = require('path');
var Filestore = require('sivart-data/Filestore');
// Get info
var logDir = process.env.SIVART_BASE_LOG_DIR;
var repoName = process.env.TRAVIS_REPO_SLUG;
var branch = process.env.TRAVIS_BRANCH;
var buildId = process.env.SIVART_BUILD_ID;
var buildNumber ... | JavaScript | 0.000001 | @@ -1150,32 +1150,44 @@
eFileSync('/tmp/
+sivart/logs/
user-script.log'
|
6a151592344a3d54a76693ec417e19b458a21181 | rename reserve-word variable | lib/core/src/server/preview/iframe-webpack.config.js | lib/core/src/server/preview/iframe-webpack.config.js | import path from 'path';
import fse from 'fs-extra';
import { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin } from 'webpack';
import Dotenv from 'dotenv-webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import WatchMissi... | JavaScript | 0.000179 | @@ -1345,17 +1345,19 @@
(acc,
-p
+sbP
ackage)
@@ -1389,25 +1389,27 @@
storybook/$%7B
-p
+sbP
ackage%7D%60%5D: p
@@ -1464,17 +1464,19 @@
ybook/$%7B
-p
+sbP
ackage%7D/
|
cf5c39db96fbdec2c05d0a52c9c6e8afda588c39 | disable parallel terserwebpackplugin it seems to have a memory leak | lib/core/src/server/preview/iframe-webpack.config.js | lib/core/src/server/preview/iframe-webpack.config.js | import path from 'path';
import { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin } from 'webpack';
import Dotenv from 'dotenv-webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';
import WatchMissingNodeModulesPlugin from 're... | JavaScript | 0 | @@ -3203,19 +3203,20 @@
rallel:
-tru
+fals
e,%0A
|
53be53b091280070b28ad35ff17a135fad942499 | Fix lint errors | lib/node_modules/@stdlib/utils/contains/test/test.js | lib/node_modules/@stdlib/utils/contains/test/test.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var contains = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof contains, 'function', 'main export is a function' );
t.end();
});
tape( 'the function throws an error if ... | JavaScript | 0.000396 | @@ -453,34 +453,40 @@
%09%09%7B%7D,%0A%09%09function
+ noop
()
+
%7B%7D%0A%09%5D;%0A%0A%09for ( i
@@ -663,32 +663,41 @@
%09return function
+ badValue
() %7B%0A%09%09%09contains
@@ -1173,34 +1173,40 @@
%09%09%7B%7D,%0A%09%09function
+ noop
()
+
%7B%7D%0A%09%5D;%0A%0A%09for ( i
@@ -1383,32 +1383,41 @@
%09retur... |
0ea3e4ca3d95e890b65eb3f2a44298ad7149bdaf | Add minify-css task. Add DEST_PATH_JS, DEST_PATH_CSS constants | NoteWrangler/gulpfile.babel.js | NoteWrangler/gulpfile.babel.js | // gulpfile.js
"use strict";
import gulp from "gulp";
import path from "path";
import fs from "fs";
import htmlmin from "gulp-htmlmin";
import uglify from "gulp-uglify";
import rename from "gulp-rename";
import babel from "gulp-babel";
import flatten from "gulp-flatten";
import concatCss from "gulp-concat-css";
impo... | JavaScript | 0.999996 | @@ -920,16 +920,116 @@
ssets%22);
+%0Aconst DEST_PATH_JS = path.join(DEST_PATH, %22js%22);%0Aconst DEST_PATH_CSS = path.join(DEST_PATH, %22css%22);
%0A%0Agulp.t
@@ -1081,28 +1081,30 @@
ulp.src(
-APP_CSS
+%5BDEST
_PATH
+_CSS
+ %22/*.c
@@ -1112,109 +1112,14 @@
s%22,
-%7Bread: false%7D);%0A let appJs = gulp.src(A... |
c3daa0ec76415e64f0cfbaaf5b945e4d71c158bf | remove unnecessary console log line | Resources/public/js/history.js | Resources/public/js/history.js | //cache params
var parent = document.querySelector('#logHistory'),
items = parent.querySelectorAll('.history-log-wrap'),
loadMoreBtn = document.querySelector('#loadMore'),
maxItems = 5,
hiddenClass = "hidden";
[].forEach.call(items, function(item, idx){
if (idx > maxItems ) {
item.classLi... | JavaScript | 0.000013 | @@ -556,39 +556,8 @@
x)%7B%0A
- console.log(item);%0A
|
689ecd9074648af061ac26a864a7202807e6b1d6 | Set width icon_umbrella.png | Resources/ui/common/window3.js | Resources/ui/common/window3.js | function Window3(title){
var win = Ti.UI.createWindow({
title: title
});
// base view
var view = Ti.UI.createView({
backgroundImage: '/images/bg_sample.png'
});
// top view
var view_top = Ti.UI.createView({
height: '35%',
width: 'auto',
fill: false,
top: 0
});
var view_top_back = Ti.UI.creat... | JavaScript | 0.000012 | @@ -496,24 +496,38 @@
mbrella.png'
+,%0A%09%09width: 110
%0A%09%7D);%0A%0A%09// b
|
67affe4c0a94bc8ade95e9821c55999a1ff1b9d4 | check length of diffs / do not send update when 0 | Service/SharedObjectService.js | Service/SharedObjectService.js | "use strict";
var clone = require("../misc/clone");
var doValidate = require("../misc/Validation").SharedObjectValidation;
var differ = require("deep-diff");
class SharedObjectService{
constructor(endpoint, transports, initial){
if (!transports.rpc || !transports.source)
throw new Error("Share... | JavaScript | 0 | @@ -2047,32 +2047,48 @@
s%0A%0A if (diffs
+ && diffs.length
) %7B%0A diff
|
0dddb1b6c27b705764a4a1b81b535d7aad9d0369 | fix burn | src/modules/ui/directives/transactionInfo/types/burn/BurnInfo.js | src/modules/ui/directives/transactionInfo/types/burn/BurnInfo.js | (function () {
'use strict';
const { Money } = require('@waves/data-entities');
const ds = require('data-service');
/**
* @param {typeof Base} Base
* @param {$rootScope.Scope} $scope
* @param {Waves} waves
* @param {BalanceWatcher} balanceWatcher
* @return {BurnInfo}
*/
... | JavaScript | 0 | @@ -2239,19 +2239,21 @@
asset)).
-add
+minus
(toReiss
@@ -2315,19 +2315,21 @@
uantity.
-add
+minus
(toReiss
|
aabde906b5fbd56ecce3234d30f1eb2712c03929 | Remove unnecessary changes | src/parser/shared/modules/spells/bfa/azeritetraits/Tradewinds.js | src/parser/shared/modules/spells/bfa/azeritetraits/Tradewinds.js | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import { formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
const trad... | JavaScript | 0.000017 | @@ -1606,17 +1606,17 @@
ty.guid
-!
+=
== SPELL
@@ -1638,99 +1638,8 @@
) %7B%0A
- return;%0A %7D%0A%0A if (event.type === %22applybuff%22 %7C%7C event.type === %22refreshbuff%22) %7B%0A
|
78bca080acf3eef4fb6a52110996cc3dad3931ba | Add options param in AlertWindowMenu, in order to change the Yes/No default button labels | src/wirecloud/platform/static/js/wirecloud/ui/AlertWindowMenu.js | src/wirecloud/platform/static/js/wirecloud/ui/AlertWindowMenu.js | /*global gettext, StyledElements, Wirecloud*/
(function () {
"use strict";
/**
* Specific class representing alert dialogs
*/
var AlertWindowMenu = function AlertWindowMenu() {
Wirecloud.ui.WindowMenu.call(this, gettext('Warning'));
// Warning icon
this.iconElement = do... | JavaScript | 0 | @@ -191,20 +191,28 @@
dowMenu(
+options
) %7B%0A
+%0A
@@ -689,24 +689,137 @@
-// Accept button
+options = Wirecloud.merge(%7B%0A acceptLabel: gettext('Yes'),%0A cancelLabel: gettext('No')%0A %7D, options);%0A
%0A
@@ -895,30 +895,35 @@
text:
-gettext('Yes')
+options... |
8c74405b30c45416e48c65b2cd8c2ada51482989 | Refactor styled alert buttons | src/wirecloud/platform/static/js/wirecloud/ui/AlertWindowMenu.js | src/wirecloud/platform/static/js/wirecloud/ui/AlertWindowMenu.js | /*global gettext, StyledElements, Wirecloud*/
(function () {
"use strict";
/**
* Specific class representing alert dialogs
*/
var AlertWindowMenu = function AlertWindowMenu(options) {
Wirecloud.ui.WindowMenu.call(this, gettext('Warning'), 'wc-alert-dialog');
this.msgElement = ... | JavaScript | 0 | @@ -700,29 +700,50 @@
-'class': 'btn-danger
+state: 'danger',%0A extraClass: %22
btn-
@@ -748,17 +748,17 @@
n-accept
-'
+%22
%0A
@@ -1095,30 +1095,62 @@
-'c
+state: 'default',%0A extraC
lass
-'
:
-'
+%22
btn-
-primary'
+cancel%22
%0A
|
72b704b0897e5086ec02ea8545abe3555f4c7d9f | change priority for decisions navigation tab | webapps/ui/cockpit/plugins/base/app/views/dashboard/decisions.js | webapps/ui/cockpit/plugins/base/app/views/dashboard/decisions.js | 'use strict';
module.exports = [ 'ViewsProvider', function(ViewsProvider) {
ViewsProvider.registerDefaultView('cockpit.navigation', {
id: 'decisions',
label: 'COCKPIT_DECISIONS',
pagePath: '#/decisions',
checkActive: function(path) {
return path.indexOf('#/decision') > -1;
},
template: '... | JavaScript | 0 | @@ -401,9 +401,9 @@
ty:
-3
+9
0%0A
|
b95fbfa49629be478a19817d7d067ec00f1f2f6e | Update Operation_Pointwise_ConstantWhenPassThrough.js | CNN/Conv/Operation/Operation_Pointwise_ConstantWhenPassThrough.js | CNN/Conv/Operation/Operation_Pointwise_ConstantWhenPassThrough.js | export { Pointwise_ConstantWhenPassThrough };
export { Pointwise_ConstantWhenPassThroughPool };
import * as ValueDesc from "../../Unpacker/ValueDesc.js";
import * as Pool from "../../util/Pool.js";
import { Pointwise } from "./Operation_Pointwise.js";
/**
* Pointwise convolution whose output will be constant value (... | JavaScript | 0.000001 | @@ -2326,16 +2326,73 @@
super(
+ %22Operation.Pointwise_ConstantWhenPassThroughPool%22,%0A
Pointwi
|
e690b2f425c27f6f0c4ab276d13b239fae79931d | Access test fix | aura-components/src/test/components/auratest/access/accessTest.js | aura-components/src/test/components/auratest/access/accessTest.js | /*
* Copyright (C) 2013 salesforce.com, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | JavaScript | 0 | @@ -843,32 +843,48 @@
est.assertEquals
+IgnoreWhitespace
(expected,actual
@@ -3607,16 +3607,32 @@
rtEquals
+IgnoreWhitespace
(expecte
|
69ed6ed37c3e3e8284199fe0f44a4a1b8bdf571e | Add error field to reveal fetch error | src/graphql/models/Hyperlink.js | src/graphql/models/Hyperlink.js | import { GraphQLObjectType, GraphQLString } from 'graphql';
function resolveUrl(field) {
return async function({ url }, args, { loaders }) {
const urlEntry = await loaders.urlLoader.load(url);
return urlEntry[field];
};
}
const Hyperlink = new GraphQLObjectType({
name: 'Hyperlink',
description: 'Data ... | JavaScript | 0 | @@ -674,16 +674,82 @@
us') %7D,%0A
+ error: %7B type: GraphQLString, resolve: resolveUrl('error') %7D,%0A
%7D,%0A%7D);
|
b42f8fd11cac563d8c59324f2c24a44a40cb3ed9 | Update leaguecommands.js | custom/leaguecommands.js | custom/leaguecommands.js | var fs = require('fs');
exports.commands = {
/***********************
Set Gym Leader
***********************/
sgl: 'setgymleader',
setgymleader: function (target, room, user) {
if (!this.can('makeroom')) return;
if (!target) return this.sendReply('/setgymleader [league], [type], [user] - Adds user to GL list... | JavaScript | 0.000001 | @@ -1102,33 +1102,33 @@
eaderlist%5Btarget
-0
+1
%5D = target2;%0A %09
@@ -1346,17 +1346,17 @@
t%5Btarget
-0
+1
%5D = targ
|
96c573f50a3276e5b4a098413b1cd11f645f8d63 | fix list error when workers are running after the app was removed | daemon/operation/list.js | daemon/operation/list.js | const Worker = require('../lib/class/Worker')
const states = Worker.states
const mergePorts = require('../lib/mergePorts')
module.exports = function list(config) {
return new Promise(resolve => {
const stats = {}
/**
* @typedef appStats
* @property {string} dir
* @property {number} pending
... | JavaScript | 0.000001 | @@ -1261,16 +1261,32 @@
ddApp(%7B%0A
+ name,%0A
|
995026b034a731c8e2c1f55ece69dc805f4f7c7b | Fix pdf link again | view/components/business-process-document.js | view/components/business-process-document.js | // Document view
'use strict';
var _ = require('mano').i18n.bind('User Submitted')
, isReadOnlyRender = require('mano/client/utils/is-read-only-render')
, normalizeOptions = require('es5-ext/object/normalize-options')
, includes = require('es5-ext/array/#/contains')
... | JavaScript | 0 | @@ -3650,16 +3650,17 @@
ml?file=
+/
' + path
|
b41a052e70d6cbacfdf5804808ec835ea6f767d8 | Enforce consistent assertion methods | lib/node_modules/@stdlib/plot/sparklines/unicode/base/test/test.js | lib/node_modules/@stdlib/plot/sparklines/unicode/base/test/test.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.000132 | @@ -807,25 +807,31 @@
ename );%0A%09t.
-e
+strictE
qual( typeof
@@ -1001,17 +1001,23 @@
e();%0A%09t.
-e
+strictE
qual( sp
|
9264fde5ecdb2f33192b95c02ecada77a1ecb74e | Remove console.log | frontend/src/lib/redux-form-lite/FormController.js | frontend/src/lib/redux-form-lite/FormController.js | import { PureComponent } from 'react';
import { connect } from 'react-redux';
import { renderProps } from 'lib/react-powerplug';
import {
register,
unregister,
submit,
setSubmitting,
setError,
setResponse,
} from './actions';
class FormController extends PureComponent {
componentDidMount() {
consol... | JavaScript | 0.000004 | @@ -307,52 +307,8 @@
) %7B%0A
- console.log('FormController didMount');%0A
|
eeb9a6213ec744adac1205e293f45323c6ac07df | Update location derivation | go-track-api/services/LocationCalculatorService.js | go-track-api/services/LocationCalculatorService.js | 'use strict';
const _ = require('lodash');
const { multilateration } = require('../utils/GeometryHelper');
const logger = require('../logger');
class LocationCalculatorService {
constructor(firebaseService) {
this.firebaseService = firebaseService;
}
calculateDerived(locationTimestamps) {
... | JavaScript | 0 | @@ -725,18 +725,18 @@
ons(id,
+1
2
-0
)%0A
@@ -1163,10 +1163,10 @@
h %3C
+1
2
-0
) %7B%0A
|
e896882baff89527ae9025221608bc3e5c2ac6ea | Save previously used dev tools dock config | packages/coinstac-ui/app/main/utils/boot/configure-dev-services.js | packages/coinstac-ui/app/main/utils/boot/configure-dev-services.js | 'use strict';
// Conditionally load development services if run from CLI
if (
process.defaultApp
&& process.env.NODE_ENV !== 'production'
&& process.env.NODE_ENV !== 'test'
) {
// active long stack trace
require('trace'); // eslint-disable-line global-require
const chain = require('stack-chain'); // eslint... | JavaScript | 0 | @@ -1128,16 +1128,42 @@
ls: true
+, devToolsMode: 'previous'
%7D); //
|
4bc6310b346502521c14bd99ab5e152bfce39d84 | add separate section in constant class | src/main/webapp/constants.js | src/main/webapp/constants.js | /**Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | JavaScript | 0.000002 | @@ -966,31 +966,8 @@
pe%22;
-%0Aconst CLICK = %22click%22;
%0A%0A//
@@ -1036,8 +1036,53 @@
tCount%22;
+%0A%0A// js eventListeners%0Aconst CLICK = %22click%22;
|
428bab6bd8bdd244fe75919d23bcb010064d0333 | Update InspectorResourcesList to use es6 class. | jujugui/static/gui/src/app/components/inspector/resources/list/list.js | jujugui/static/gui/src/app/components/inspector/resources/list/list.js | /*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2016 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License vers... | JavaScript | 0 | @@ -797,20 +797,20 @@
ict';%0A%0Ac
-onst
+lass
Inspect
@@ -829,142 +829,33 @@
ist
-= React.createClass(%7B%0A%0A propTypes: %7B%0A acl: React.PropTypes.object.isRequired,%0A resources: React.PropTypes.array.isRequired%0A %7D,
+extends React.Component %7B
%0A /
@@ -976,26 +976,16 @@
esources
-: function
... |
182b2e5a6716250728a09e59447dccbfaea344ed | Test fix for eeprom read | src/system-plugins/platform-manager/platforms/beaglebone/cpu.js | src/system-plugins/platform-manager/platforms/beaglebone/cpu.js | var Promise = require( "bluebird" );
var fs = Promise.promisifyAll( require( "fs" ) );
var path = require( "path" );
var CPUInterface = function()
{
var self = this;
};
CPUInterface.prototype.Compose = function( platform )
{
console.log( "CPU: Composing BBB cpu interface..." );
// Temporary container used ... | JavaScript | 0 | @@ -1600,22 +1600,61 @@
on (
-result) %0A%09%09%09%09%7B
+bytesRead, buffer) %0A%09%09%09%09%7B%0A%09%09%09%09%09console.log( buffer );
%0A%09%09%09
@@ -1714,17 +1714,14 @@
urn
-result%5B1%5D
+buffer
;%0A%09%09
|
9549072840645a2c4db316c8ee6aca817b216912 | Fix hound issues | lib/assets/test/spec/new-dashboard/unit/specs/core/map-service.spec.js | lib/assets/test/spec/new-dashboard/unit/specs/core/map-service.spec.js | import mapService from 'new-dashboard/core/map-service';
import { visualizations as fakeVisualizations } from '../fixtures/visualizations';
jest.mock('carto-node');
describe('mapService', () => {
describe('.fetchMaps', () => {
describe('when no parameters are given', () => {
let response;
beforeAll(d... | JavaScript | 0.000001 | @@ -58,16 +58,18 @@
import %7B
+%0A
visuali
@@ -97,17 +97,17 @@
izations
-
+%0A
%7D from '
@@ -321,17 +321,16 @@
(done =%3E
-
%7B%0A
@@ -421,24 +421,25 @@
;%0A %7D)
+;
%0A %7D)%0A
@@ -435,16 +435,17 @@
%7D)
+;
%0A i
@@ -652,14 +652,8 @@
es',
- async
()
@@ -884,14 +884,16... |
b2816ad90021dd26eac65545a5e2953e0771625b | Handle error in avatar module | src/modules/avatar/avatar.js | src/modules/avatar/avatar.js | /* @flow */
import route from 'koa-route';
import { bus, cache } from '../../core-server';
import buildAvatarURLForSize from './buildAvatarURLForSize';
bus.on('http/init', app => {
app.use(route.get('/i/picture', function *() {
const query = this.request.query;
if (query && query.user) {
const {
user,
... | JavaScript | 0 | @@ -335,16 +335,26 @@
query;%0A%0A
+%09%09%09try %7B%0A%09
%09%09%09const
@@ -406,16 +406,17 @@
%3E %7B%0A%09%09%09%09
+%09
cache.ge
@@ -450,16 +450,17 @@
%7B%0A%09%09%09%09%09
+%09
if (err)
@@ -458,24 +458,25 @@
%09if (err) %7B%0A
+%09
%09%09%09%09%09%09reject
@@ -487,16 +487,17 @@
);%0A%09%09%09%09%09
+%09
... |
5fbd146339d499ace69ffcc85dad7bc79728ebda | remove xmlhttp | src/modules/system/system.js | src/modules/system/system.js | import fallback from './fallback';
import retryAjax from '../ajax/retryAjax';
export var server = document.location.protocol + '//' +
document.location.host + '/';
export var imageServer = window.HCS && window.HCS.defines &&
window.HCS.defines.fileserver &&
window.HCS.defines.fileserver.slice(0, -1);
export fun... | JavaScript | 0.001063 | @@ -31,51 +31,8 @@
ck';
-%0Aimport retryAjax from '../ajax/retryAjax';
%0A%0Aex
@@ -1713,190 +1713,4 @@
;%0A%7D%0A
-%0Aexport function xmlhttp(theUrl, func, theCallback) %7B%0A return retryAjax(theUrl).done(function(responseDetails) %7B%0A if (func) %7B%0A func(responseDetails, theCallback);%0A %7D%0A %... |
c36c1e7a211cf6e5e51a8a15e867fbb1445eee8a | update items purchase request | test/data-util/garment-purchasing/purchase-request-data-util.js | test/data-util/garment-purchasing/purchase-request-data-util.js | "use strict";
var helper = require("../../helper");
var PurchaseRequestManager = require("../../../src/managers/garment-purchasing/purchase-request-manager");
var codeGenerator = require("../../../src/utils/code-generator");
var buyer = require("../master/buyer-data-util");
var unit = require("../master/unit-data-util... | JavaScript | 0 | @@ -1182,52 +1182,8 @@
%7D%60,%0A
- refNo: %22UT/PR/GARMENT%22,%0A
@@ -1658,16 +1658,67 @@
ems: %5B%7B%0A
+ refNo: %22UT/PR/GARMENT/01%22,%0A
@@ -2073,16 +2073,71 @@
%7D, %7B%0A
+ refNo: %22UT/PR/GARMENT/02%22,%0A
|
5076a4834b8a9694e2de43cea1dedf78e5faeb4c | Update tensors.js | Unordered-javascript-examples/deeplearnjs-examples/tensors/tensors.js | Unordered-javascript-examples/deeplearnjs-examples/tensors/tensors.js | // To run as a webpage
// The comment out the import lines below.
// To use IntelliSense uncomment the import lines
//import * as dl from 'deeplearn';
// div as a string, Tensor as a tensor, NumberRows as an integer, Title as a string
async function myTensorTable(myDiv, myOutTensor, myCols, myTitle){
docu... | JavaScript | 0 | @@ -3710,11 +3710,247 @@
%7D)%0A %0A
+ myAlgorithm.scope(function() %7B%0A alert('flatten')%0A var mySig = myAlgorithm.flatten(myInputs)%0A document.getElementById('myDiv01').innerHTML += 'flatten 2D Inputs array to 1D array = '+mySig.getValues() +'%3Cbr%3E%3Chr%3E'%0A %7D)%0A %0A %0A
%0A%7D%0A
|
a1f1a9bd3991c4f32469549fe833e3f0ce3c0189 | remove log | public/modules/forms/base/controllers/submit-form.client.controller.js | public/modules/forms/base/controllers/submit-form.client.controller.js | 'use strict';
// SubmitForm controller
angular.module('forms').controller('SubmitFormController', [
'$scope', '$rootScope', '$state', '$translate', 'myForm', 'Auth',
function($scope, $rootScope, $state, $translate, myForm, Auth) {
$scope.authentication = Auth;
$scope.myform = myForm;
console.log(myForm);
$tr... | JavaScript | 0.000001 | @@ -289,30 +289,8 @@
rm;%0A
-%09%09console.log(myForm);
%0A%09%09$
|
e0e4809408eeaa387c1d56812602b7ab0e22ae75 | Fix conditional testing for validity of phone number | app/imports/ui/components/modals/modal-join-queue/modal-join-queue.js | app/imports/ui/components/modals/modal-join-queue/modal-join-queue.js | import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { ReactiveArray } from 'meteor/manuel:reactivearray';
import { ReactiveDict } from 'meteor/reactive-dict';
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { _ } from 'meteor/underscore';
import { $ } from 'me... | JavaScript | 0.00006 | @@ -6775,18 +6775,8 @@
mber
- && number
.len
|
bc2d3de6db9117f99b4908660bacbf6ac2e89193 | fix display of work biography label | redef/patron-client/src/frontend/components/work/fields/Biographies.js | redef/patron-client/src/frontend/components/work/fields/Biographies.js | import React, { PropTypes } from 'react'
import { injectIntl, intlShape, defineMessages } from 'react-intl'
import MetaItem from '../../MetaItem'
const Biographies = ({ biographies, intl }) => {
if (biographies.length > 0) {
return (
<MetaItem label={messages.labelBiographies} data-automation-id="work_biog... | JavaScript | 0.000001 | @@ -395,16 +395,19 @@
iography
+.id
%7D)).joi
|
218cc261d1681a24f6330a53bf7b9589faa721ec | Add the domain blocks UI to Getting Started Misc | app/javascript/flavours/glitch/features/getting_started_misc/index.js | app/javascript/flavours/glitch/features/getting_started_misc/index.js | import React from 'react';
import PropTypes from 'prop-types';
import Column from 'flavours/glitch/features/ui/components/column';
import ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_slim';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-imm... | JavaScript | 0 | @@ -938,16 +938,107 @@
ers' %7D,%0A
+ domain_blocks: %7B id: 'navigation_bar.domain_blocks', defaultMessage: 'Hidden domains' %7D,%0A
mutes:
@@ -2557,24 +2557,130 @@
/blocks' /%3E%0A
+ %3CColumnLink icon='ban' text=%7Bintl.formatMessage(messages.domain_blocks)%7D to='/domain_blocks' /%3E%0A
%3... |
2d49564ea8112c335bcd28a88e7fad8946d21cd6 | Fix for missing closure reference. | aura-components/src/main/components/aura/iteration/iterationHelper.js | aura-components/src/main/components/aura/iteration/iterationHelper.js | /*
* Copyright (C) 2013 salesforce.com, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | JavaScript | 0 | @@ -719,24 +719,49 @@
mInfo = %5B%5D;%0A
+ var helper=this;%0A
this
|
da7834476b96a2dad86c288772a3230ebe8ac92b | remove inadverdent scope variable that was added | awx/ui/client/src/access/add-rbac-resource/rbac-resource.directive.js | awx/ui/client/src/access/add-rbac-resource/rbac-resource.directive.js | /*************************************************
* Copyright (c) 2015 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
import controller from './rbac-resource.controller';
/* jshint unused: vars */
export default ['templateUrl', '$state',
'addPermissionsUsersList', 'ad... | JavaScript | 0 | @@ -1090,63 +1090,8 @@
0);
-%0A%0A scope.objectType = scope.object.type;
%0A
|
63962c87db87d46fef8f48c621dc898360339b8c | Add log | api/serverless.js | api/serverless.js | module.exports = (req, res) => {
res.send({val: Math.PI})
}
| JavaScript | 0.000002 | @@ -26,16 +26,36 @@
s) =%3E %7B%0A
+ console.log(req);%0A
res.se
|
f45baf9562b3357ddceb067637f6ad940ed7be88 | Return removed code from previous merge | users.js | users.js | angular.module('myApp', []).controller('userCtrl', function($scope, $http) {
$scope.fName = '';
$scope.lName = '';
$scope.passw1 = '';
$scope.passw2 = '';
$scope.updateData = {}
$scope.first_name2 = "test";
function getData(){
var response = $http.get("http://localhost/teambrewer/API/user-list.php?rand=" + new... | JavaScript | 0 | @@ -204,16 +204,195 @@
est%22;%0A%0A%0A
+$(document).ready(function () %7B%0A $('#datetimepicker2').datetimepicker();%0A $(%22#datetimepicker2%22).on(%22dp.change%22, function (e) %7B%0A $scope.ebirthdate = e.date;%0A %7D);%0A%7D);%0A
%0A%0Afuncti
@@ -748,23 +748,763 @@
%7D);%0A%7D%0A%0A
-getData
+fun... |
c0373d6d9664fd766838f670def3bff96f0d8995 | Remove remnants of Foundation gem from Application.js | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -619,31 +619,8 @@
ujs%0A
-//= require foundation%0A
//=
@@ -661,48 +661,4 @@
e .%0A
-$(function()%7B $(document).foundation(); %7D);%0A
|
754e7428fb14d731249898ab76e58004dffa785f | add js for number count on name to only allow 12 or under | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... | JavaScript | 0 | @@ -1712,16 +1712,28 @@
rName)%7B%0A
+// debugger%0A
if (pl
@@ -1779,16 +1779,189 @@
yer%22%0A %7D
+ else if (playerName.lenght %3C 4 )%7B%0A playerName = playerName + %22 %22 + %22 %22 + %22 %22%0A %7D else if (playerName.length %3E 12)%7B%0A playerName = playerName.substring(0,9) + %22...%22%0A %7D
%0A... |
48715cf170393ee3b50c26b7e45a0cea134d98f2 | Set up AngularJS. | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -670,8 +670,28 @@
rockets%0A
+//= require angular%0A
|
b8863aa4baced839a70af97291e88b7b94a66348 | Add amounts to nodes | demo1/js/treemap.js | demo1/js/treemap.js | var container = document.getElementById("main")
// create hashes from strings
// from https://stackoverflow.com/a/7616484
String.prototype.hashCode = function() {
var hash = 0, i, chr, len;
if (this.length == 0) return hash;
for (i = 0, len = this.length; i < len; i++) {
chr = this.c... | JavaScript | 0.000001 | @@ -633,24 +633,86 @@
) + min;%0A%7D%0A%0A
+function formatAmount(amount) %7B%0A return amount + %22 %E2%82%AC%22;%0A%7D%0A%0A%0A
function get
@@ -2900,21 +2900,207 @@
an%22) //
-title
+amount%0A .attr(%22class%22, %22node-amount%22)%0A .text(function(d) %7B return formatAmount(d.amount); %7D);... |
24c0868e5c27acc3ba9a756de7cb921fb25b8355 | Remove turbolinks require directive. | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0 | @@ -672,31 +672,8 @@
bar%0A
-//= require turbolinks%0A
//=
|
2de9d5ca65f110914acfc8071761cf3f6e6eb1b6 | Remove extra semicolon | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.999967 | @@ -1319,20 +1319,14 @@
%7D)
-%0A
.get()
-;
%0A %7D
|
f8eb896bc988a7f92dc65596b3f1e4d680e3082f | Create global app variable | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | JavaScript | 0.000001 | @@ -719,16 +719,134 @@
_tree .%0A
+// The following object is a global app object that can%0A// be used to store variables needed globally%0Avar pulse = %7B%7D;%0A
$(docume
|
b4d620acca3ab23101a52551104488e15f33a06a | Use the jquery.cookie. | app/assets/javascripts/application.js | app/assets/javascripts/application.js | // Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
//
//= require prototype-legacy/prototype
//= require prototype-legacy/effects
//= require prototype-legacy/dragdrop
//= require prototype-legacy/controls
//= require proto... | JavaScript | 0 | @@ -1719,16 +1719,42 @@
ery_ujs%0A
+//= require jquery.cookie%0A
//= requ
|
6b6fc83db7880ed82b66ebfe16666cfdd860b208 | Update yahoo id | demos/client_ids.js | demos/client_ids.js | //
// Client IDS
// Defines the CLIENT_ID (AppID's) of the OAuth2 providers
// relative to the domain host where this code is presented.
// Register your domain with Facebook at and add here
var FACEBOOK_CLIENT_ID = {
'adodson.com' : '160981280706879',
'local.knarly.com' : '285836944766385',
'mrswitch.github.com' ... | JavaScript | 0.000011 | @@ -1236,24 +1236,24 @@
Jmk9
-S2p6ZGE4VWpNTnNT
+dkVoREN1R3BLTThh
JmQ9
@@ -1314,12 +1314,12 @@
QmeD
-05NQ
+1mNw
--'%0A
|
278d7f4c9d89da3579b50961c6d438f178512fb9 | Fix linebreak in logged in message. | app/assets/javascripts/loungechats.js | app/assets/javascripts/loungechats.js | (function() {
var formatMessage;
$(function() {
var socket;
socket = new WebSocket("ws://" + window.location.host + "/chat");
socket.onmessage = function(event) {
var $output, output;
if (event.data.length) {
handleMessage(event.data);
}
};
$("body").on("submit", "form.chat", function(event) {... | JavaScript | 0 | @@ -1321,18 +1321,16 @@
ppend(%22-
-
%22 + new
@@ -1351,16 +1351,22 @@
ogged in
+%3Cbr /%3E
%22);%0A%09%09%7D%0A
|
e3e0e2b3e44ee58acfe277dce9c992106c6aeacb | refactor radio input selection script to handle checkboxes | app/assets/javascripts/radio-input.js | app/assets/javascripts/radio-input.js | //radio button selection, active class
require(["jquery"],function($) {
var radiosWrap = $('div.radio');
var radioLabel = radiosWrap.find('.form-radio.selectable');
var radio = radioLabel.children('input:radio');
radio.each(function() {
$(this).on('change', function() {
if($('input:radio:checked').l... | JavaScript | 0.000044 | @@ -5,14 +5,20 @@
dio
-button
+and checkbox
sel
@@ -37,16 +37,23 @@
ve class
+ toggle
%0Arequire
@@ -89,187 +89,185 @@
var
-radiosWrap = $('div.radio');%0A var radioLabel = radiosWrap.find('.form-radio.selectable');%0A var radio = radioLabel.children('input:radio');%0A%0A radio.each(function() %7B%0A $(th... |
678f1a9fce286af9a712727923d1ab03b2652f2b | Change default parameter to pm2.5 | app/assets/scripts/views/world-map.js | app/assets/scripts/views/world-map.js | import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import qs from 'qs';
import config from '../config';
import { HeaderMessage } from '../components/header';
import MapComponent from '../components/map';
import LocationsSource from '../components/map/locatio... | JavaScript | 0.000001 | @@ -2853,9 +2853,9 @@
%7C%7C
-7
+2
,%0A
|
cbf177452fd06a0f5d39d03530d91c859033dc9c | Fix lastpass filling in safari and chrome on ios | app/components/LoginForm/LoginForm.js | app/components/LoginForm/LoginForm.js | import React, { Component } from 'react';
import cx from 'classnames';
import { debounce } from 'lodash';
import { Form, TextInput } from '../Form';
import Button from '../Button';
import { login } from 'app/actions/UserActions';
import { connect } from 'react-redux';
type Props = {
login: (username: string, passwor... | JavaScript | 0 | @@ -387,44 +387,8 @@
= %7B%0A
- username: '',%0A password: '',%0A
@@ -401,24 +401,24 @@
ted: false,%0A
+
submitti
@@ -682,38 +682,121 @@
-if (this.state.username.trim()
+const username = this.usernameRef.value.trim();%0A const password = this.passwordRef.value;%0A if (username
===
@... |
6fbb7570aaf278e4777c4561ed23d00629da8ce4 | Remove runloop complication from scroll listener | app/components/dashboard-myreports.js | app/components/dashboard-myreports.js | import Component from '@ember/component';
import { computed } from '@ember/object';
import { next } from '@ember/runloop';
import { inject as service } from '@ember/service';
import { task, timeout } from 'ember-concurrency';
import DomMixin from 'ember-lifeline/mixins/dom';
import ReportTitleMixin from 'ilios/mixins/r... | JavaScript | 0 | @@ -81,47 +81,8 @@
t';%0A
-import %7B next %7D from '@ember/runloop';%0A
impo
@@ -2372,29 +2372,8 @@
) %7B%0A
- next(() =%3E %7B%0A
@@ -2396,39 +2396,23 @@
istener(
-'.dashboard-block-body'
+element
, 'scrol
@@ -2423,18 +2423,16 @@
() =%3E %7B%0A
-
@@ -2495,20 +2495,8 @@
p);%0A
- ... |
9ea30e8e4ec32a4713646b9ad5b74577a4bbb5b1 | Reword password reset console.info messages. | app/controllers/passwordController.js | app/controllers/passwordController.js | /**
* Created by preciousr on 07/01/2016.
*/
var async = require('async'),
crypto = require('crypto'),
unirest = require('unirest'),
Model = require('../model/models.js'),
common = require('../../config/common.js'),
envVariables = common.config(),
ValidationService = require('../services/Vali... | JavaScript | 0 | @@ -968,68 +968,8 @@
/;%0A%0A
- console.info('Password reset requested.');%0A%0A
@@ -1056,16 +1056,42 @@
e.info('
+Password reset requested.
Invalid
@@ -1107,26 +1107,8 @@
tern
- on password reset
.');
@@ -1540,29 +1540,9 @@
fo('
-Email not found for p
+P
assw
@@ -1558,16 +1558,35 @@
req... |
c1b11f26ea1ba699430b25ee68efc12ab980b310 | Tweak findFirstAvailableYear | app/helpers/findFirstAvailableYear.js | app/helpers/findFirstAvailableYear.js | import * as Immutable from 'immutable'
import findMissingNumberBinarySearch from 'helpers/findMissingNumberBinarySearch'
// Takes a list of schedules and finds the first open year. If they go [2012,
// 2013, 2015] findFirstAvailableYear will return 2014. If it goes [2013,
// 2014, 2015] findFirstAvailableYear will ret... | JavaScript | 0.000001 | @@ -581,35 +581,8 @@
les%0A
-%09%09.sortBy(sch =%3E sch.year)%0A
%09%09.m
@@ -615,20 +615,8 @@
et()
-%0A%09%09.toList()
%0A%0A%09/
@@ -736,15 +736,11 @@
ars.
-unshift
+add
(mat
@@ -756,16 +756,39 @@
n - 1)%0A%0A
+%09years = years.sort()%0A%0A
%09var mis
@@ -831,16 +831,23 @@
ch(years
+.toJS()
)%0A%09if (m
|
f393b458e487ca0032bf9efefcd6ead2ab725e8a | Fix background color for filter button | app/hotels/src/filter/FilterButton.js | app/hotels/src/filter/FilterButton.js | // @flow strict
import * as React from 'react';
import { View } from 'react-native';
import { Button, ButtonTitle, Icon, StyleSheet } from '@kiwicom/mobile-shared';
import type { TranslationType } from '@kiwicom/mobile-localization';
import { defaultTokens } from '@kiwicom/mobile-orbit';
type Props = {|
+title: Tra... | JavaScript | 0 | @@ -1371,22 +1371,26 @@
ens.
-backgroundBody
+paletteCloudNormal
,%0A
|
3fb6fc039ce50c9987a36c8a016a5d5a60a35392 | Load treebank data through $http | app/js/services/treebank_retriever.js | app/js/services/treebank_retriever.js | "use strict";
angular.module('arethusa').service('treebankRetriever', function($http) {
// tokens should always be loaded synchronous - the app should
// not start anything without knowing an initial state
var xmlToState = function(token) {
// One could formalize this to real rules that are configurable...
... | JavaScript | 0 | @@ -1259,119 +1259,55 @@
-var request = $.ajax(%7B%0A url: './static/example_treebank.xml',%0A async: false%0A %7D);%0A%0A request.done
+$http.get('./static/example_treebank.xml').then
(fun
@@ -1304,36 +1304,35 @@
).then(function(
-data
+res
) %7B%0A return
@@ -1325,23 +1325,16 @@
%7B%0A ... |
b0cdd4bfadf9f8fa1f64948ed6ba5c77cbe091df | remove check xml | app/scripts/controllers/adminlabel.js | app/scripts/controllers/adminlabel.js | 'use strict';
/**
* @ngdoc function
* @name tracklistmeApp.controller:AdminlabelCtrl
* @description
* # AdminlabelCtrl
* Controller of the tracklistmeApp
*/
angular.module('tracklistmeApp')
.controller('AdminlabelCtrl', function($location, $scope, $state, $auth, $stateParams, $http, Account, FileUploader, CO... | JavaScript | 0 | @@ -7410,32 +7410,34 @@
ases();%0A
+//
$scope.getDropZo
|
ba6301240ded3a940a13e3bba59949afb0aaefdb | Add missing parenthesis | app/scripts/services/schema-loader.js | app/scripts/services/schema-loader.js | 'use strict';
/**
* @ngdoc function
* @name groongaAdminApp.service:schemaLoader
* @description
* # schemaLoader
* Groonga database schema loader.
*/
angular.module('groongaAdminApp')
.factory('schemaLoader', [
'$q', '$http', '$timeout',
function ($q, $http, $timeout) {
var fetching = false;
... | JavaScript | 0.999999 | @@ -6865,16 +6865,18 @@
UNKNOWN)
+ %7B
%0A
@@ -6890,16 +6890,30 @@
return;%0A
+ %7D%0A
|
4225e998203cf4d19d7de276d5b8f1e6882983e5 | Add HMR to the webpack config for storybooks | .storybook/webpack.config.js | .storybook/webpack.config.js | const path = require("path");
module.exports = {
devtool: "#inline-source-map", // Otherwise getting errors about e.g. `Relay` not being defined.
resolve: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
module: {
loaders: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
load... | JavaScript | 0 | @@ -18,16 +18,173 @@
ire(
-%22path%22);
+'path')%0Aconst webpack = require('webpack')%0A%0Aconst %7B OccurenceOrderPlugin, includePaths, excludePaths %7D = require('@storybook/react-native/dist/server/config/utils')%0A
%0A%0Amo
@@ -623,15 +623,334 @@
%0A %5D,%0A
-
%7D,%0A
+ entry: %7B%0A manager: %5Brequir... |
e9c265c12703a61e15416f4d7d7316f473ddd7a4 | use dataformat module explicitely | IPython/html/static/notebook/js/savewidget.js | IPython/html/static/notebook/js/savewidget.js | // Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define([
'base/js/namespace',
'jquery',
'base/js/utils',
'base/js/dialog',
'base/js/keyboard',
], function(IPython, $, utils, dialog, keyboard) {
"use strict";
var SaveWidget = function (... | JavaScript | 0 | @@ -212,16 +212,34 @@
board',%0A
+ 'dateformat',%0A
%5D, funct
@@ -277,16 +277,28 @@
keyboard
+, dateformat
) %7B%0A
@@ -5507,16 +5507,20 @@
+ d
-.
+ate
format(
+d,
'mmm
@@ -5793,17 +5793,17 @@
s compat
-a
+i
bility.%0A
|
f812a552345c1feed2e6de8f0254f823f42f0e5f | Fix ym's path resolving | techs/prepend-modules.js | techs/prepend-modules.js | /**
* prepend-modules
* =================
*
* Добавляет js-код для работы модульной системы
*
* **Опции**
*
* * *String* **source** – Исходный source. Обязательная опция.
* * *String* **target** — Результирующий target. По умолчанию — `?.js`.
*
* **Пример**
*
* ```javascript
* nodeConfig.addTech([ require... | JavaScript | 0.000028 | @@ -829,58 +829,27 @@
e =
-path.join(__dirname, '..', '..', 'ym', 'modules.js
+require.resolve('ym
'));
|
a6492cdf543d2804ef60762d4155ccdb295d478b | Update ec2_describeaddresses.js | javascript/example_code/ec2/ec2_describeaddresses.js | javascript/example_code/ec2/ec2_describeaddresses.js | /*
Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
This file is licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License. A copy of
the License is located at
http://aws.amazon.com/apache2.0/
This fi... | JavaScript | 0 | @@ -1,9 +1,6 @@
/
-*%0A
+/
Cop
@@ -77,26 +77,12 @@
ed.%0A
-%0A This file is l
+// L
icen
@@ -105,428 +105,80 @@
ache
- License, Version 2.0 (the %22License%22).%0A You may not use this file except in compliance with the License. A copy of%0A the License is located at%0A%0A http://aws.amazon.com/apache2... |
3b9a3cc2069a6c2b37621a7f3897229dc155350c | fix the promise | src/service/JeniusService.js | src/service/JeniusService.js | /*jshint esversion: 6 */
/*jshint -W097 */
/*jslint node: true */
'use strict';
const { apiToJson } = require('./api');
const Pattern = require('../model/pattern');
class JeniusService {
totalNumberOfTeams() {
return Promise.resolve(0);
}
// pattern matches
getPatternMatches() {
const patterns = []... | JavaScript | 0.999999 | @@ -425,27 +425,8 @@
) =%3E
- %7B%0A return
%60Nu
@@ -455,26 +455,17 @@
er%7D%60
-;
+)
%0A
- %7D))%0A
+)
);%0A%0A
|
ffc77a6b1099e017a89613d4f9264ebac8e87fa1 | remove log | src/playbacks/flash/flash.js | src/playbacks/flash/flash.js | // Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var UIObject = require('../../base/ui_object')
var Styler = require('../../base/styler')
var JST = require('../../base/jst')
var Mediator = require('.... | JavaScript | 0.000001 | @@ -1118,40 +1118,8 @@
ns)%0A
- console.log(%22flash plugin%22)%0A
|
4fe5cd5a1b44e76cde71c657a3a1a1ae2e9f3c61 | Remove conditioned authenticated box | src/javascript/app/pages/user/account/settings.js | src/javascript/app/pages/user/account/settings.js | const Client = require('../../../base/client');
const BinarySocket = require('../../../base/socket');
const localize = require('../../../../_common/localize').localize;
const State = require('../../../../_common/storage').State;
const Settings = (() => {
const onLoad = () => {
BinarySocket... | JavaScript | 0 | @@ -1341,166 +1341,8 @@
%7D%0A%0A
- if (!State.getResponse('get_account_status.prompt_client_to_authenticate')) %7B%0A $('#authenticate').setVisibility(0);%0A %7D%0A%0A
|
c02f5bb51285917849cb4e0d3e8a5a4ade599c48 | Create Pod or Application instances | plugins/services/src/js/components/modals/CreateServiceJsonOnly.js | plugins/services/src/js/components/modals/CreateServiceJsonOnly.js | import React, {PropTypes} from 'react';
import JSONEditor from '../../../../../../src/js/components/JSONEditor';
import AppValidators from '../../../../../../src/resources/raml/marathon/v2/types/app.raml';
import DataValidatorUtil from '../../../../../../src/js/utils/DataValidatorUtil';
import PodValidators from '../... | JavaScript | 0 | @@ -30,24 +30,114 @@
m 'react';%0A%0A
+import Application from '../../structs/Application';%0Aimport Pod from '../../structs/Pod';%0A
import JSONE
@@ -1813,24 +1813,213 @@
onObject) %7B%0A
+ let newObject;%0A if (ServiceValidatorUtil.isPodSpecDefinition(jsonObject)) %7B%0A newObject = new Pod(jsonObject);... |
c7f911421040ce1ad0e0e3930581194cb626a64f | Add storage for "level passed" info | leaderboard.js | leaderboard.js | const LEADERBOARD_SIZE = 10;
class leaderboard {
constructor () {
this.db = fbApp.database();
}
refresh (callback) {
this.db.ref('leaderboard').orderByValue().limitToLast(LEADERBOARD_SIZE).once('value', (snapshot) => {
this.board = [];
snapshot.forEach((data) => {
... | JavaScript | 0 | @@ -119,16 +119,22 @@
refresh
+Scores
(callba
@@ -257,29 +257,28 @@
-this.
+var
board = %5B%5D;%0A
@@ -330,29 +330,24 @@
-this.
board.push(%7B
@@ -411,21 +411,16 @@
-this.
board.re
@@ -432,38 +432,8 @@
();%0A
- if (callback)%0A
@@ -449,21 +449,16 @@
a... |
ad880fecdd0b64f605cc1aca105ed975843814c9 | Disable caching functionality. | applications/default/public/js/app.js | applications/default/public/js/app.js | 'use strict';
// Declare app level module which depends on services, directives and filters.
angular.module('choko', ['ngRoute', 'ngResource', 'ngSanitize', 'summernote', 'restangular', 'angularFileUpload', 'choko.services', 'choko.directives', 'choko.filters', 'choko.controllers'])
.config(['$locationProvider', func... | JavaScript | 0 | @@ -486,24 +486,180 @@
('/rest');%0A%0A
+ // @todo: We need improve the caching functionality.%0A // The items list not change after add an %C3%ADtem, because%0A // he get the items list from the cach%C3%A9.%0A
Restangula
@@ -697,19 +697,20 @@
%7Bcache:
-tru
+fals
e%7D);%0A%0A
|
2941a484711b48bdc29d0c9d203bc1377f72a212 | remove sinon spy from post preview | src/js/components/PostPreview/tests/index.test.js | src/js/components/PostPreview/tests/index.test.js | import { shallow } from 'enzyme';
import { shallowToJson } from 'enzyme-to-json';
import React from 'react';
import { spy } from 'sinon';
import PostPreview from '../index';
describe('<PostPreview />', () => {
it('should render with default props', () => {
const wrapper = shallow(
<PostPreview />
);
... | JavaScript | 0 | @@ -106,37 +106,8 @@
t';%0A
-import %7B spy %7D from 'sinon';%0A
impo
|
e2a64884af39a338b4879e8d49096edcf8cecbed | include judge javascript | config/nap.js | config/nap.js | var env = require('./env');
var util = require('util');
global.nap = require('nap');
// TODO: put this somewhere better
process.chdir(__dirname+"/../");
// util.debug('NAP CURRENT DIRECTORY: ' + process.cwd());
nap({
assets: {
js: {
'2013': [
"/public/javascripts/vendor/jquery-1.10.2.min.js",
... | JavaScript | 0.000001 | @@ -643,16 +643,61 @@
.coffee%22
+,%0A %22/public/javascripts/judges.coffee%22
%0A %5D
|
2bf1fef3350f028a3564bf87f26f31994272c084 | fix email links and mailer | utils.js | utils.js | var Boom = require('boom');
var Config = require('getconfig');
var Crypto = require('crypto');
var Nodemailer = require('nodemailer');
var Jwt = require('jsonwebtoken');
var Uuid = require('uuid');
exports.userToken = function (user) {
var token = {
entity: 'user',
user: {
id: user.get... | JavaScript | 0.000001 | @@ -2316,22 +2316,8 @@
ate?
-action=verify&
code
@@ -2481,16 +2481,27 @@
sendMail
+.bind(this)
);%0A%0A
@@ -2885,16 +2885,9 @@
over
-/verify&
+?
code
|
a812043266828080bf5ba10f975e0b5c2e718b79 | Fix typo | commands/games/slot-machine.js | commands/games/slot-machine.js | const { Command } = require('discord.js-commando');
const stripIndents = require('common-tags').stripIndents;
const Currency = require('../../currency/Currency');
const Inventory = require('../../currency/Inventory');
const ItemGroup = require('../../currency/ItemGroup');
const Store = require('../../currency/Store');... | JavaScript | 0.999999 | @@ -1168,17 +1168,16 @@
of coin
-t
s',%0A%09%09%09%09
|
a4a1e3a9f265f80bccbc1122adef1fc02d0b21ab | Add a tiny bit of logging | modules/finders/Bungie.net.js | modules/finders/Bungie.net.js | const https = require( 'https' );
const url = require( 'url' );
const cheerio = require( 'cheerio' );
const chalk = require( 'chalk' );
const loadPage = require( '../load.js' );
const notifyy = require( '../notifyy.js' );
const JSON_INDENT = 4;
const NOTIFYY_DELAY = 1500;
// eslint-disable-next-line no-process-env
... | JavaScript | 0.000008 | @@ -3205,32 +3205,94 @@
, reject ) =%3E %7B%0A
+ console.log( %60Loading $%7B this.sections%5B 0 %5D %7D%60 );%0A
load
|
fcbf9d132cbb614c5cce843cb12ad6d36e986364 | remove dispatch from add button | app/components/ServerList.js | app/components/ServerList.js | import Radium from 'radium'
import { Link } from 'react-router'
import React, { Component, PropTypes } from 'react'
import styles from './ServerList.styles.js'
import { connect } from 'react-redux'
@Radium
class ServerList extends Component {
render() {
return <div style={ styles.base }>
<AddButton />
... | JavaScript | 0.000001 | @@ -156,46 +156,8 @@
.js'
-%0Aimport %7B connect %7D from 'react-redux'
%0A%0A@R
@@ -295,19 +295,8 @@
%0A%7D%0A%0A
-@connect()%0A
@Rad
@@ -328,32 +328,32 @@
ds Component %7B%0A%0A
+
render() %7B%0A
@@ -353,45 +353,8 @@
) %7B%0A
- const %7B dispatch %7D = this.props%0A%0A
|
9d2f7941b4260585b81a6f4b50a27cd676eb61c0 | Update addkeyword.js | app/components/addkeyword.js | app/components/addkeyword.js | import React from 'react'
import Fluxxor from 'fluxxor'
require("font-awesome-webpack");
import Color from '../services/linechartcolor.js'
var FluxMixin = Fluxxor.FluxMixin(React);
export default React.createClass({
mixins: [FluxMixin],
getInitialState: function() {
return {
hidden: false,
value... | JavaScript | 0.000002 | @@ -1011,1322 +1011,33 @@
%0A%0A
-// handleRemoveKeyword: function(keywordIndex) %7B%0A // this.getFlux().actions.removeKeyword(this.props.chartID, keywordIndex);%0A // %7D,%0A%0A render: function() %7B%0A // var divStyle = %5B%7B%0A // borderBottomColor: Color.Fill%5B0%5D,%0A // borderBottomWidth:... |
111b74c7f4ea84c0a760ec7c03b87a5d05a179e5 | remove redundant timeout | app/actions/likes.js | app/actions/likes.js | import Alt from 'alt_flux';
import { createActions } from 'alt-utils/lib/decorators';
import likesSource from 'sources/likes';
@createActions(Alt)
export default class LikesActions {
constructor() {
this.generateActions('setLikeProcessing');
}
create(imageId) {
return (dispatch) => {
this.setLikeP... | JavaScript | 0.000741 | @@ -338,35 +338,8 @@
);%0A%0A
- setTimeout(() =%3E %7B%0A
@@ -403,39 +403,24 @@
ult.like));%0A
- %7D, 150);%0A
%7D;%0A %7D%0A%0A
@@ -513,35 +513,8 @@
);%0A%0A
- setTimeout(() =%3E %7B%0A
@@ -587,23 +587,8 @@
));%0A
- %7D, 150);%0A
|
428022fd0e6fa114be33e18613d3aca761066ccf | add only websocket example | web.js | web.js | // app.js
var http = require('http');
var server = http.createServer(app);
server.listen(port);
var express = require("express");
var logfmt = require("logfmt");
var app = express();
app.use(logfmt.requestLogger());
app.get('/', function(req, res) {
res.send('Hello World!');
});
var port = Number(process.env.P... | JavaScript | 0 | @@ -1,107 +1,77 @@
-// app.js%0A%0Avar http = require('http'); %0A%0Avar s
+var WebSocketServer = require('ws').S
erver
- =
+%0A ,
http
-.createServer(app);%0Aserver.listen(port);%0A%0Avar
+ = require('http')%0A ,
exp
@@ -89,266 +89,205 @@
ire(
-%22
+'
express
-%22);%0Avar logfmt = require(%22logfmt%22);%0Avar... |
468f8c0bec43d1cf3e15cf50281efaa04cae7b76 | stop spurious js_log errors | bika/lims/browser/js/bika.lims.common.js | bika/lims/browser/js/bika.lims.common.js | /**
* Global vars
*/
function CommonUtils() {
var that = this;
/**
* Entry-point method for CommonUtils
*/
that.load = function() {
window.bika = window.bika || {
lims: {}
};
/**
* Analysis Service dependants and dependencies retrieval
*... | JavaScript | 0.000001 | @@ -2160,24 +2160,115 @@
nction(e) %7B%0A
+%09%09%09if (window.location.url == undefined %7C%7C window.location.url == null) %7B%0A%09%09%09%09return;%0A%09%09%09%7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.