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 |
|---|---|---|---|---|---|---|---|
48afe292ecf2c97840d9757b6f2417e9dd0f009e | Remove debugging messages | server.js | server.js | var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var fs = require('fs');
var list = require('badwords-list');
var Firebase = require("firebase");
var mongojs = require('mongojs');
app.use(express.static(__dirname));
var db = mongojs('... | JavaScript | 0.000002 | @@ -4000,99 +4000,8 @@
);%0A%0A
-%09%09console.log(userObj.name);%0A%09%09console.log(bannedList);%0A%09%09bannedList.forEach(console.log);%0A
%0A%09%09i
|
8ad2a4a9d9dde00b6bdf2ab5a49d6d31e89a8d05 | streamline test code | test/test.js | test/test.js | /* globals require, Buffer, describe, it */
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var File = require('vinyl');
var mdinclude = require('../src/index');
var basePath = path.resolve('test/data');
var dataFilePath = function (name) {
return path.join(basePath, name);
};
... | JavaScript | 0.001697 | @@ -1220,36 +1220,31 @@
%09%09var source
- = loadFile(
+Path =
dataFilePath
@@ -1249,24 +1249,61 @@
th('csv.md')
+;%0A%09%09%09var source = loadFile(sourcePath
);%0A%09%09%09var re
@@ -1341,38 +1341,26 @@
cePath:
-dataFilePath('csv.md')
+sourcePath
%7D);%0A%09%09%09
@@ -1659,36 +1659,31 @@
%09%09var source
- ... |
45d1e492dbbe6026c8576d271dd604d9033f4437 | Fix missing `p` | lib/node_modules/@stdlib/utils/papply/lib/index.js | lib/node_modules/@stdlib/utils/papply/lib/index.js | 'use strict';
/**
* Partially apply function arguments.
*
* @module @stdlib/utils/papply
*
* @example
* var papply = require( '@stdlib/utils/papply' );
*
* function add( x, y ) {
* return x + y;
* }
*
* var add2 = apply( add, 2 );
*
* var sum = add2( 3 );
* // returns 5
*/
// MODULES //
var papply = require( './... | JavaScript | 0.999965 | @@ -212,16 +212,17 @@
add2 =
+p
apply( a
|
1f5f1b8cd215f8486a1a79be0726053fd67248dd | Delete useless parameter | examples/scripts/deploy.js | examples/scripts/deploy.js | var spawn = require('child_process').spawn;
hexo.on('generateAfter', function(target){
spawn('hexo', ['deploy']);
}); | JavaScript | 0.000002 | @@ -76,14 +76,8 @@
ion(
-target
)%7B%0A
|
3364c0173d9d5fc3164598076949f7db19901012 | Use implicit restrict and bindings | client/app/components/login/login.component.js | client/app/components/login/login.component.js | import template from "./login.html";
import controller from "./login.controller";
import "./login.styl";
let loginComponent = {
restrict: "E",
bindings: {},
template,
controller,
controllerAs: "ctrl"
};
export default loginComponent;
| JavaScript | 0 | @@ -126,41 +126,8 @@
= %7B%0A
- restrict: %22E%22,%0A bindings: %7B%7D,%0A
te
|
85eb05c2931b15f7b79a71fdee10ec3aadc05cf8 | remove params from bookmarks Api | client/src/services/BookmarksService.js | client/src/services/BookmarksService.js | import Api from '@/services/Api'
export default {
index (bookmark) {
return Api().get('bookmarks', {
params: bookmark
})
},
post (bookmark) {
return Api().post('bookmark', bookmark)
},
delete (bookmarkId) {
return Api().get(`bookmark/${bookmarkId}`)
}
}
| JavaScript | 0.000001 | @@ -101,40 +101,8 @@
rks'
-, %7B%0A params: bookmark%0A %7D
)%0A
|
b17b51811fe02e5c0e556473e29e4ffa54aa4643 | Remove unused function | src/featureFlags.js | src/featureFlags.js | import _ from 'lodash'
import chalk from 'chalk'
import log from './util/log'
const featureFlags = {
future: ['removeDeprecatedGapUtilities'],
experimental: [
'uniformColorPalette',
'extendedSpacingScale',
'defaultLineHeights',
'extendedFontSizeScale',
'applyComplexClasses',
],
}
export func... | JavaScript | 0.000004 | @@ -638,250 +638,8 @@
%0A%7D%0A%0A
-function futureFlagsEnabled(config) %7B%0A if (config.future === 'all') %7B%0A return featureFlags.future%0A %7D%0A%0A return Object.keys(_.get(config, 'future', %7B%7D)).filter(%0A flag =%3E featureFlags.future.includes(flag) && config.future%5Bflag%5D%0A )%0A%7D%0A%0A
f... |
0fb3109626da22b5d98056a2cbf9e62c94e67fb9 | Update test.js | test/test.js | test/test.js | <<<<<<< HEAD
'use strict';
let context = require('../main');
let myConfig = require('./db.json');
context.initialize(myConfig);
//var content = JSON.stringify(mappingFile);
//var data = JSON.parse(content);
//console.log(data[1].properties);
//let profile = new obj.profile("","Msat","Msattour... | JavaScript | 0.000001 | @@ -1,16 +1,5 @@
-%3C%3C%3C%3C%3C%3C%3C HEAD
+%0D
%0A'us
@@ -122,656 +122,6 @@
);%0D%0A
+
%0D%0A
-//var content = JSON.stringify(mappingFile);%0D%0A%0D%0A//var data = JSON.parse(content);%0D%0A%0D%0A//console.log(data%5B1%5D.properties);%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A//let profile = new obj.profile(%22%22,%22Ms... |
6ba61e74d0245cef2ad3da05c84f485bded9847e | improve escaping logic | index.js | index.js | /*!
* parse-glob <https://github.com/jonschlinkert/parse-glob>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
'use strict';
var pathRe = require('glob-path-regex');
var isGlob = require('is-glob');
/**
* Parse a glob pattern into sections
*
* When no paths or '**' are in the glob... | JavaScript | 0.000066 | @@ -2347,89 +2347,155 @@
-var temp = inner.replace(/%5C//g, '__ESC_SLASH__');%0A temp = temp.replace(/%5C./g,
+return match.split(inner).join(esc(inner));%0A %7D);%0A%7D%0A%0Afunction esc(str) %7B%0A str = str.split('/').join('__ESC_SLASH__');%0A str = str.split('.').join(
'__E
@@ -2506,18 +2506,16 @@
OT... |
eebff3b313ba96c9284d8cd317cb38d5c332a94c | update example | tools/demo/src/filters/crt.js | tools/demo/src/filters/crt.js | export default function() {
const app = this;
app.addFilter('CRTFilter', {
enabled: true,
global: false,
opened: false,
args: [{
lineWidth: 3,
lineContrast: 0.3,
noise:0.2,
time:0.5,
}],
oncreate(folder) {
... | JavaScript | 0.000001 | @@ -337,16 +337,233 @@
this;%0A%0A
+ filter.animating = true;%0A%0A app.events.on('enable', function(enabled) %7B%0A if (enabled && filter.animating) %7B%0A filter.time = 0;%0A %7D%0A %7D);%0A%0A
@@ -600,24 +600,68 @@
unction... |
7c2f182109df343975e95146199bb78d45e02324 | Fix for Expandables on Blog | cfgov/unprocessed/js/routes/sheer.js | cfgov/unprocessed/js/routes/sheer.js | /* ==========================================================================
Common scripts that are used on old sheer templates
These should be removed as templates are moved to wagtail
========================================================================== */
'use strict';
// List of modules often used... | JavaScript | 0 | @@ -768,8 +768,274 @@
;%0A %7D%0A%7D%0A
+%0Avar expandableDom = document.querySelectorAll( '.content_main .m-expandable' );%0Avar expandable;%0Aif ( expandableDom ) %7B%0A for ( var i = 0, len = expandableDom.length; i %3C len; i++ ) %7B%0A expandable = new Expandable( expandableDom%5Bi%5D );%0A expandable.ini... |
3ca2659bb1350e6b37107ceafc15d4cfceef395b | Fix heading | lib/node_modules/@stdlib/stats/incr/mcovariance/examples/index.js | lib/node_modules/@stdlib/stats/incr/mcovariance/examples/index.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.000646 | @@ -936,13 +936,12 @@
'%5Cn
-Value
+x%5Cty
%5CtSa
|
4a90979a13923ca1bd23c0ad2f0aaee7f33345f4 | clean promises units | units/promises.js | units/promises.js | /**
* @author Gilles Coomans <gilles.coomans@gmail.com>
*/
if (typeof define !== 'function') {
var define = require('amdefine')(module);
}
define(["require","../deep", "../lib/unit"], function (require, deep, Unit) {
//_______________________________________________________________ GENERIC STORE TEST CA... | JavaScript | 0 | @@ -513,34 +513,24 @@
return
-deep.when(
deep.when(%22
@@ -538,33 +538,32 @@
orld %22).delay(1)
-)
%0A
@@ -611,26 +611,16 @@
return
-deep.when(
deep.whe
@@ -632,17 +632,16 @@
delay(1)
-)
%0A
@@ -2458,682 +2458,8 @@
%7D
-/*, //________________________________________________ S... |
2aeffca09bed95c8fb2263b55e9edfbb52b212d8 | add api version test | test/test.js | test/test.js | /* global describe before it */
const Bot = require('..')
// const assert = require('assert')
const peer = process.env.TEST_PEER_ID
const token = process.env.TEST_VK_TOKEN
describe('Bot', function () {
let engbot, rusbot, bot, pollingbot
before(function beforeAll () {
bot = new Bot({ token })
engbot = ne... | JavaScript | 0 | @@ -234,17 +234,32 @@
llingbot
+, oldVersionBot
%0A
-
%0A befor
@@ -447,24 +447,85 @@
u' %7D%0A %7D)%0A
+ oldVersionBot = new Bot(%7B token, api: %7Bversion: 5.37%7D %7D)%0A
pollingb
@@ -919,11 +919,12 @@
be('
-API
+#api
', f
@@ -1448,32 +1448,32 @@
row new Error()%0A
-
%7D)%0A
@@ -1480... |
4d1ce8e59b84fa71c0aa52c1ad20b357ce2ca4bf | Use strict equality operator | handler.js | handler.js | 'use strict';
const url = require('url');
const url2Domain = require('./ext/url2domain');
const categorize = require('./ext/categorize');
const credibleSources = require('./data/credible');
const notCredibleSources = require('./data/notCredible');
module.exports.check = (event, context, callback) => {
const origin =... | JavaScript | 0.000011 | @@ -1887,16 +1887,17 @@
eUrl) ==
+=
'https:
|
246c9fc38cba58abb220df2c7d40700214a98af2 | Remove typo | apps/orams/components/SellerCatalogue/SellerCatalogue.js | apps/orams/components/SellerCatalogue/SellerCatalogue.js | /* eslint-disable */
import React, { Component } from 'react'
import { connect } from 'react-redux'
import RegionsAccordionRadioList from 'orams/components/AccordionRadioList/RegionsAccordionRadioList'
import CategoriesAccordionRadioList from 'orams/components/AccordionRadioList/CategoriesAccordionRadioList'
import Res... | JavaScript | 0.999292 | @@ -994,9 +994,8 @@
-;
%3CPag
|
544349a4eb2cd21c48d321895199c929c53345ae | update to Web UI 2.5.0 (#746) | add-on/src/lib/state.js | add-on/src/lib/state.js | 'use strict'
/* eslint-env browser, webextensions */
const { safeURL } = require('./options')
const offlinePeerCount = -1
// CID of a 'blessed' Web UI release
// which should work without setting CORS headers
const webuiCid = 'QmYTRvKFGhxgBiUreiw7ihn8g95tfJTWDt7aXqDsvAcJse' // v2.4.7
function initState (options) {
... | JavaScript | 0 | @@ -228,60 +228,60 @@
'Qm
-YTRvKFGhxgBiUreiw7ihn8g95tfJTWDt7aXqDsvAcJse
+NyMYhwJUS1cVvaWoVBhrW8KPj1qmie7rZcWo8f1Bvkhz
' // v2.
4.7%0A
@@ -280,11 +280,11 @@
v2.
-4.7
+5.0
%0A%0Afu
|
6c26715a142edf9e8d1811264fa75dc3a1750625 | Make hashes unique so that they do not conflict with hashes from module_edit_spec.coffee. | cms/static/js/spec/views/xblock_spec.js | cms/static/js/spec/views/xblock_spec.js | define(["jquery", "URI", "common/js/spec_helpers/ajax_helpers", "common/js/components/utils/view_utils",
"js/views/xblock", "js/models/xblock_info", "xmodule", "coffee/src/main", "xblock/cms.runtime.v1"],
function ($, URI, AjaxHelpers, ViewUtils, XBlockView, XBlockInfo) {
"use strict";
descr... | JavaScript | 0 | @@ -2802,24 +2802,36 @@
%5B%22
+xblock_spec_
hash1%22, %7B mi
@@ -2908,24 +2908,36 @@
%5B%22
+xblock_spec_
hash2%22, %7B mi
@@ -3428,17 +3428,57 @@
%5B%22
-hash3%22, %7B
+xblock_spec_hash3%22, %7B%0A
mim
@@ -3550,16 +3550,40 @@
= 100;%22
+%0A ... |
d632e9fa9651d5059227248b9f15af0d67071d7e | Convert to expect syntax | test/test.js | test/test.js | 'use strict';
var should = require('chai').should();
var numFormatter = require('../index');
describe('#numFormatter', function() {
it('should convert single digits', function() {
numFormatter(1).should.equal('1');
});
it('should convert double digits', function() {
numFormatter(12).shoul... | JavaScript | 0.999999 | @@ -12,22 +12,22 @@
';%0A%0Avar
-should
+expect
= requi
@@ -41,16 +41,14 @@
i').
-should()
+expect
;%0Ava
@@ -176,32 +176,45 @@
tion() %7B%0A
+ var result =
numFormatter(1)
@@ -213,23 +213,43 @@
atter(1)
-.should
+;%0A expect(result).to
.equal('
@@ -313,32 +313,45 @@
tion() %7B%0A
+ var... |
b15aaebbcf79d8385d8d6bb909e5669943f14dcf | handle empty store | examples/todos/js/todos.js | examples/todos/js/todos.js | (function() {
//a custom binding to handle the enter key (could go in a separate library)
o_O.bindings.enterKey = function(func, $el) {
$el.keyup(function(e) {
if(e.keyCode === 13)
func.call(this)
})
}
//represent a single todo item
var Todo = o_O.Model({
conte... | JavaScript | 0.999232 | @@ -3710,16 +3710,22 @@
'todos')
+ %7C%7C %5B%5D
;%0A st
|
6d422541dbcb00fc303207245ad9408b8e59d5fa | fix build heroku | app/routes/util.js | app/routes/util.js | var config = require('../../config');
var bcrypt = require('bcrypt');
var jwt = require('jsonwebtoken');
var userSchema = require('../model/user');
var mongoose = require('mongoose');
module.exports = function () {
this.authorization = function (req, res, db) {
if (req.body.email && req.body.password) {
... | JavaScript | 0 | @@ -94,24 +94,26 @@
webtoken');%0A
+//
var userSche
@@ -139,24 +139,26 @@
del/user');%0A
+//
var mongoose
|
5b1f492fca12ca62b6a3534ab93dd94f56bea64a | Add .distanceComparator function to polygon. | src/geom/polygon.js | src/geom/polygon.js | 'use strict';
var Point = require('./point'),
clipper = require('../../lib/clipper');
var SCALE = 100;
// Converts a given polygon to a clipper path.
function toPath(polygon) {
var path = polygon.vertices.map(function(point) {
return {X: point.x, Y: point.y};
});
clipper.JS.ScaleUpPath(path, SCALE);... | JavaScript | 0 | @@ -16,15 +16,15 @@
var
-Point
+clipper
= r
@@ -36,13 +36,54 @@
e('.
-/poin
+./../lib/clipper'),%0A F = require('fki
t'),
@@ -87,23 +87,23 @@
'),%0A
-clipper
+Point
= requi
@@ -107,32 +107,22 @@
quire('.
-./../lib/clipper
+/point
');%0A%0Avar
@@ -694,16 +694,33 @@
ices) %7B%0A
+ var centro... |
d7dcc65e360c4c99027571c87c2debefb45e28dd | Enable tunnel only through environment variable | app/config.js | app/config.js | module.exports = {
// Minimal configuration needed
'SLACK_CLIENT_ID': process.env.SLACK_CLIENT_ID || 'YOUR_SLACK_CLIENT_ID',
'SLACK_SECRET': process.env.SLACK_SECRET || 'YOUR_SLACK_SECRET',
'VERIFICATION_TOKEN': process.env.VERIFICATION_TOKEN || 'YOUR_VERIFICATION_TOKEN',
'API_KEY': process.env.API_KEY || 'YO... | JavaScript | 0 | @@ -966,19 +966,8 @@
NNEL
- %7C%7C 'false'
,%0A%7D;
|
482f9dc08e36c964ef28a5979c22dc6660f268df | remove true param for enforces | server.js | server.js | var express = require('express');
var geoip = require('geoip-lite');
var _ = require('lodash');
var countries = require('./data/countries-full');
var express_enforces_ssl = require('express-enforces-ssl');
var app = express();
var port = process.env.PORT || 5000;
app.enable('trust proxy');
app.use(express_enforces_s... | JavaScript | 0.000142 | @@ -326,12 +326,8 @@
TPS(
-true
));%0A
|
f3c95afa2235b355a7a35c3f45aa2e8f969b0bec | remove root route | client/src/router/index.js | client/src/router/index.js | import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Register from '@/components/Register'
import Login from '@/components/Login'
import Songs from '@/components/Songs/Index'
import CreateSong from '@/components/CreateSong'
import ViewSong from '@/components/ViewSong/Index... | JavaScript | 0.000003 | @@ -51,47 +51,8 @@
er'%0A
-import Hello from '@/components/Hello'%0A
impo
@@ -389,81 +389,8 @@
%7B%0A
- path: '/',%0A name: 'root',%0A component: Hello%0A %7D,%0A %7B%0A
@@ -899,24 +899,77 @@
t: EditSong%0A
+ %7D,%0A %7B%0A path: '*',%0A component: Songs%0A
%7D%0A ... |
201778e19d5ce3c879555f92780e82ea69873de2 | Use stderr by default | index.js | index.js | var ProgressBar = require('progress');
var chalk = require('chalk');
var _ = require('lodash');
var webpack = require('webpack');
require('object.assign').shim();
module.exports = function ProgressBarPlugin(options) {
options = options || {};
var isInteractive = process.stdout.isTTY;
var barLeft = chalk.bold(... | JavaScript | 0.000001 | @@ -274,19 +274,37 @@
cess.std
-out
+err && process.stderr
.isTTY;%0A
@@ -1056,27 +1056,27 @@
process.std
-out
+err
.write('%5Cn')
@@ -1129,27 +1129,27 @@
process.std
-out
+err
.write(pream
@@ -1388,27 +1388,27 @@
process.std
-out
+err
.write(_.rep
@@ -1792,11 +1792,11 @@
.std
-out
+err
.wri
@@ -1858,19 +1... |
4e3717bd5ccf789efc818da5ce89352e13e48a4a | Update config | app/config.js | app/config.js | module.exports = {
projectStartYear: '2015', // e.g. 2018
projectName: 'Project Name', // e.g. Twitter
siteUrl: 'Site Url', // e.g. https://twitter.com/
twitterCardEnabled: true, // e.g. true
twitterCardType: 'summary_large_image', // e.g. summary_large_image
twitterUserName: 'Twitter User Name... | JavaScript | 0.000001 | @@ -20,16 +20,9 @@
-projectS
+s
tart
@@ -51,20 +51,45 @@
2018
-%0A project
+ - used in footer copyright%0A%0A site
Name
@@ -428,16 +428,90 @@
witter%0A%0A
+ facebookAppId: '',%0A%0A openGraphMarkupEnabled: false, // e.g. false%0A%0A
face
@@ -840,16 +840,16 @@
nkratz,%0A
-
inst
@@ -932,1... |
bac07638cce3ba6ba9a032136a96fc1b0dfbfdb5 | move fetchEvent out of componentDidMount to make eslint happy | source/views/convocations/upcoming-detail.js | source/views/convocations/upcoming-detail.js | // @flow
import * as React from 'react'
import {Text, ScrollView, StyleSheet, Image} from 'react-native'
import {Cell, Section, TableView} from 'react-native-tableview-simple'
import type {EventType, PoweredBy} from '../calendar/types'
import type {TopLevelViewPropsType} from '../types'
import {ShareButton} from '../co... | JavaScript | 0 | @@ -3135,22 +3135,16 @@
',%0A%09%7D%0A%0A%09
-async
componen
@@ -3157,16 +3157,68 @@
unt() %7B%0A
+%09%09this.fetchEvent()%0A%09%7D%0A%0A%09fetchEvent = async () =%3E %7B%0A
%09%09let %7Be
|
3de2b38cdc703460afe6e01ba876dcdf4b02f2cc | Set default app port | server.js | server.js | const { ENV } = require('./constants.js');
const nunjucks = require('nunjucks');
const express = require('express');
const compression = require('compression')
const app = express();
const Scrambo = require('scrambo');
const threebythree = new Scrambo();
if (ENV !== 'production') {
const webpack = require('webpack... | JavaScript | 0.000001 | @@ -1714,16 +1714,24 @@
env.PORT
+ %7C%7C 3000
, functi
|
cc354b9e19dd98a614551c5af24636ad5ab8a767 | add scope to controller for user | src/frontend/src/app/user/user.login.controller.js | src/frontend/src/app/user/user.login.controller.js | /**
* Created by nightpaws on 08/02/2016.
*/
angular.module('user')
.controller('user.login.controller', ['$scope', 'user.service', function($scope, userService){
$scope.user = {
username: null,
password: null,
email: null
};
$scope.login = function(is... | JavaScript | 0 | @@ -207,32 +207,54 @@
username: null,%0A
+ sn: null,%0A
pass
@@ -277,21 +277,127 @@
-email
+givenNam: null,%0A cn: null,%0A email: null,%0A isAdmin: null,%0A createdOn
: null%0A
|
911d3794b1646faa1bd3434b2f81f8a1251cd4f2 | fix missing tmb on background image | client_src/js/c-gallery.js | client_src/js/c-gallery.js | /**
* TODO Rename the files it also show normal files
* TODO use repeat to render the view elements
*/
var trade = require('./trade'),
octicons = require('octicons'),
stringToColor = require('string-to-color');
function getRandomColor() {
function c() {
return Math.floor(Math.random()*256).toS... | JavaScript | 0.000004 | @@ -1813,16 +1813,20 @@
Name + %22
+?tmb
)%22;%0A
|
07f8d41dbd4689f4e4d6c1c04068b71818768b08 | Add CORS headers to api | routes/api.js | routes/api.js | var apicache = require('apicache');
var cache = apicache.middleware;
var async = require('async');
var express = require('express');
var url = require('url');
var router = express.Router();
var Cantina = require("../libs/cantina");
var Coffee = require("../libs/coffee");
var Hackerspace = require("../libs/hackerspace"... | JavaScript | 0 | @@ -437,24 +437,238 @@
servant%22);%0A%0A
+// Add CORS headers%0Arouter.use((req, res, next) =%3E %7B%0A res.header(%22Access-Control-Allow-Origin%22, %22*%22);%0A res.header(%22Access-Control-Allow-Headers%22, %22Origin, X-Requested-With, Content-Type, Accept%22);%0A next();%0A%7D);%0A%0A
router.get('
|
7abdf8d41d4b797f0f405ea3fdce7cef6f08f6ef | increase delay for creating push groups | app/scripts/app.js | app/scripts/app.js | /*
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.gi... | JavaScript | 0 | @@ -3765,17 +3765,17 @@
%0A %7D,
-3
+5
000); %0A
@@ -5910,32 +5910,32 @@
ocument.
-querySelector
+getElementById
('
-#
paperDra
|
806270345a0b8d577dc38961cad17d2c108e758f | Use System.import until jest supports it | templates/js/screen-definitions.js | templates/js/screen-definitions.js | import Definition, { asyncComponent } from 'hippo/screens/definition';
import Group from 'hippo/screens/group';
<% Hippo::Screen.each_group do | group | %>
Group.register( <%= group.to_json %> );
<% end -%>
const Screens = {};
<% Hippo::Screen.each do | screen | -%>
Screens['<%= screen.identifier %>'] = <%= screen.t... | JavaScript | 0 | @@ -469,16 +469,23 @@
: () =%3E
+System.
import(%3C
|
2f8cf5c1203b379ac691bad684d9f69bb6537369 | load stuff | routes/api.js | routes/api.js | 'use strict';
var express = require('express');
var router = express.Router();
var extend = require('node.extend');
var redis = require("redis");
var client = redis.createClient();
var request = require('request');
var lxc = require('../lxc');
var os = require('os');
var spawn = require('child_process').spawn;
var t... | JavaScript | 0.000001 | @@ -4110,16 +4110,64 @@
;%0A%0A%7D);%0A%0A
+// freeMem: 97700 totalmem 513818624 usedMem: 0%0A
var star
@@ -4244,23 +4244,34 @@
.round((
+(totalMem-
freeMem
+)
/totalMe
|
5dddedbe07f537c60226ab10001b7a02d6d921ac | add homework class event tag | app/consts.js | app/consts.js | export default {
colors: [
"ff4d40",
"ffa540",
"f2ec0f",
"3c6d2b",
"40ff73",
"4071ff",
"ff4086",
"40ccff",
"5940ff",
"ff40f5",
"a940ff",
"e6ab68",
"4d4d4d"
],
EVENT_TYPE_PLAIN: 1,
EVENT_TYPE_HOMEWORK: 2,
EVENT_TYPE_SCHEDULE: 3,
EVENT_TAG_RESERVED: 0,
EVENT_TAG_DESCRIPTION: 1,
EVENT_T... | JavaScript | 0.000001 | @@ -803,16 +803,47 @@
AME: 20,
+%0A%09EVENT_TAG_HOMEWORK_CLASS: 21,
%0A%0A%09CALEN
|
536e04d0043e463091b1dbaebcf45f9c77568aa2 | Fix #3050: Fix selection of vertical nav item in dashboard (#3047) | agent/www/app.module.js | agent/www/app.module.js | angular.module('enmasse', ['patternfly.navigation', 'ui.router', 'patternfly.views', 'ui.grid', 'ui.grid.autoResize',
'ui.grid.resizeColumns', 'ui.bootstrap', 'patternfly.toolbars', 'patternfly.charts', 'patternfly.wizard',
'patternfly.validation', 'patternfly.modals', 'address_service']).config(
fu... | JavaScript | 0 | @@ -1349,285 +1349,262 @@
-var connectionsNavItem = $scope.navigationItems.find(item =%3E item.title === title);%0A $timeout(function() %7B%0A //If already navigated to the page, the click will only mark the menu item as active.%0A angular.element(selector).parent().click(... |
0c6674b7d2c83bc10899e32e69e34304e7120925 | Remove console.log | controllers/Challenges.js | controllers/Challenges.js | const email = require('../utils').email;
const { logger } = require('../utils');
const models = require('../models');
const Challenge = models.Challenge;
const Performance = models.Performance;
function ChallengersController() {
this.create = (req, res) => {
const { spotId } = req.body;
const userId = req.us... | JavaScript | 0.000004 | @@ -1542,47 +1542,8 @@
%3E %7B%0A
- console.log(challengeableUsers);%0A
|
715ef3af850c4616fb7d78bdb98f372a4d65a0df | Make FileInput stateless | src/App/Body/InputOptions/FileInput/index.js | src/App/Body/InputOptions/FileInput/index.js | import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import FileHandler from './FileHandler';
export default class FileInput extends React.Component {
render() {
const { sectionStyle, buttonStyle, requestResults } = this.props;
return (
<div style={sectionStyle}>
... | JavaScript | 0.000066 | @@ -139,13 +139,16 @@
ult
-class
+function
Fil
@@ -157,58 +157,9 @@
nput
- extends React.Component %7B%0A render() %7B%0A const
+(
%7B se
@@ -203,26 +203,12 @@
ts %7D
- = this.props;%0A%0A
+) %7B%0A
re
@@ -214,18 +214,16 @@
eturn (%0A
-
%3Cdiv
@@ -251,18 +251,16 @@
%3E%0A
-
%3CRaisedB... |
fce55bcbfe2bb7d2142b49b27d251c935da5e119 | Remove verbose console logs | app/garmin.js | app/garmin.js | 'use strict'
const Events = require('events')
const fs = require('fs')
const path = require('path')
const volumes = getVolumes()
module.exports = class Garmin extends Events {
startWatching() {
this.update()
fs.watch(volumes, {persistent: true, recursive: false}, () => this.update())
}
update() {
... | JavaScript | 0.000027 | @@ -2125,69 +2125,8 @@
%3E %7B%0A
- console.log('isDirectory', parent, stat.isDirectory())%0A
@@ -2149,24 +2149,24 @@
ectory()) %7B%0A
+
retu
@@ -2222,64 +2222,8 @@
%3E %7B%0A
- console.log('Entries for', parent, entries)%0A
@@ -2301,16 +2301,16 @@
child)%0A
+
@@ -231... |
508645c370f9376c3303cc5047891a5f9657f44b | Remove logging from tests | test/test.js | test/test.js | var should = require('should');
var request = require('request');
var Q = require('q');
var PactPublisher = require('../lib/pact-publisher');
// Global test details
var version = '1.2.3';
var brokerBaseUrl = 'http://localhost:8080';
var pactsDir = __dirname;
var pactsFiles = [__d... | JavaScript | 0.000001 | @@ -2729,35 +2729,36 @@
l,%0A logging:
-tru
+fals
e%0A %7D);%0A var pa
@@ -2891,19 +2891,20 @@
ogging:
-tru
+fals
e%0A %7D);%0A
|
51e5520bf6137c5141fa02c0bfa180b04251e3e5 | remove "Hudson" | app/helper.js | app/helper.js | import React from 'react';
import {Icon} from 'react-material-icons-blue';
import { Link } from 'react-router';
export function getScoreClassName(score) {
score = score || '4';
return `i scr_${score}`;
}
export function getCategories(items,itemIndex){
const categories = [];
if (!items) return;
for (let i=0; ... | JavaScript | 0.999844 | @@ -2707,16 +2707,38 @@
Jenkins
+','').replace('Hudson
','');%0A%7D
|
d07211dd848799cca5874ac413167e16a61b0dbf | remove unnecessary expressions | index.js | index.js | import AWS from 'aws-sdk'
import http from 'http'
import cheerio from 'cheerio'
import config from './config.js'
function getBlackLotusSrcPromise () {
return new Promise((resolve, reject) => {
http.get('http://magiccards.info/al/en/232.html', res => {
let html = null
res.on('data', (chunk) => html +=... | JavaScript | 0.000062 | @@ -273,12 +273,10 @@
l =
-null
+''
%0A
@@ -351,39 +351,8 @@
%3E %7B%0A
- html = html.toString()%0A
@@ -433,14 +433,8 @@
mg')
-.eq(0)
%0A
@@ -759,16 +759,44 @@
'jpg',%0A
+ ACL: 'public-read',%0A
@@ -1084,9 +1084,28 @@
lt)%0A
-
%7D()
+.catch(console.log)
%0A%0A
|
08bb261bed700b0b0cae9cc80388042299f2cdb3 | add requiresLogin flag for routes and redirect to explore state | app/scripts/app.js | app/scripts/app.js | 'use strict';
angular
.module('openSenseMapApp', [
'ngResource',
'ngSanitize',
'ngDialog',
'ui-leaflet',
'ui.bootstrap',
'ui.bootstrap.datetimepicker',
'osemFilters',
'flow',
'pascalprecht.translate',
'ui.router',
'gridshore.c3js.chart',
'angularMoment',
'tmh.dynam... | JavaScript | 0 | @@ -2485,24 +2485,81 @@
ccount.html'
+,%0A data: %7B%0A requiresLogin: true%0A %7D
%0A %7D)%0A
@@ -3783,24 +3783,330 @@
d');%0A %7D%5D)%0A%0A
+ .run(function($rootScope, $state, SignupLoginService) %7B%0A $rootScope.$on('$stateChangeStart', function(e, to) %7B%0A if (to.data &... |
be9aec9f536ccb2c3af2d295d065f4526f0825e7 | Test leaderboard component | client/components/__test__/Leaderboard.spec.js | client/components/__test__/Leaderboard.spec.js | import React from 'react';
import { shallow, mount, render } from 'enzyme';
import { Leaderboard, LeaderboardItem } from '../Leaderboard'
describe('Leaderboard component test', () => {
it('should render leaderbaord item message'), () => {
const props = {
developers: [{
profile: {
first_n... | JavaScript | 0.000001 | @@ -136,116 +136,8 @@
d'%0A%0A
-describe('Leaderboard component test', () =%3E %7B%0A%0A it('should render leaderbaord item message'), () =%3E %7B%0A
cons
@@ -140,36 +140,32 @@
const props = %7B%0A
-
developers: %5B%7B
@@ -157,36 +157,32 @@
developers: %5B%7B%0A
-
profile: %7B%0A
@@ -172,36 +... |
b38873a628128d28be0709b0ee489155e29803dd | test for vq decypt | index.js | index.js | let express = require('express')
let builder = require('botbuilder')
let YiBan = require('yiban-sdk')
let app = express()
let yb = new YiBan('484b6cb2a841acbd','b419227786ef48b206a690f97c2cddf5','','')
let connector = new builder.ChatConnector({
appId: '3685e916-b8a6-4f3d-8a9e-e4e9231c25a7',
appPasswor... | JavaScript | 0.000001 | @@ -560,32 +560,24 @@
sion.message
-.user.id
)%0D%0A yb.de
|
706e2a11911f7501c9f69816277c9a5ab3e1ee7f | Remove useless definition | src/Acme/PocBundle/Resources/public/js/app.js | src/Acme/PocBundle/Resources/public/js/app.js | YUI.add('poc-app', function (Y) {
var POC = Y.POC,
AcmePoc,
Templates = Y.namespace('POC').Templates = {};
AcmePoc = Y.Base.create('acmePoc', Y.App, [], {
/*
render: function() {
var routeInfo = this.getPathInfo(this.getPath());
Y.log('render: ' + routeInfo.view);
Y.... | JavaScript | 0.000099 | @@ -169,291 +169,8 @@
%7B%0D%0A
- /*%0D%0A render: function() %7B%0D%0A var routeInfo = this.getPathInfo(this.getPath());%0D%0A Y.log('render: ' + routeInfo.view);%0D%0A Y.log(Y.one('#main'));%0D%0A this.showContent(Y.one('#main'), %7B%0D%0A view: routeInfo.view%0D%0A ... |
7797f03fb5d00648ea3ca920738f4eaaaf80cf06 | Improve comments | client/js/components/Location/Entriex/model.js | client/js/components/Location/Entriex/model.js | var entryModel = require('./Entry/model');
var models = require('tresdb-models');
var forwardEntry = models.forwardOne(entryModel, function (entry, ev) {
return entry._id === ev.data.entryId;
});
exports.forward = models.forward({
'location_entry_changed': forwardEntry,
'location_entry_comment_created': forward... | JavaScript | 0 | @@ -746,12 +746,29 @@
ies
-wi
th
+at have one or more
ima
|
6f631ebfdf9e476aacd0eae243addb25063d5766 | change function name addFabric to fabric, hyphens to dasherize | .dvlp/scripts/brahma/methods/application.js | .dvlp/scripts/brahma/methods/application.js | Brahma.applications.addFabric('default',['events','fabrics','tie'], function() {});
Brahma.applications.execute = function() {
// > Test for plugin exists
if (typeof Brahma.applications.modules[arguments[0]] != 'object') {
throw('Brahma: require `'+arguments[0]+'` application. Please, download it.');
};... | JavaScript | 0 | @@ -17,12 +17,9 @@
ons.
-addF
+f
abri
@@ -892,15 +892,17 @@
hma.
-hyphens
+dasherize
(pro
@@ -2535,247 +2535,8 @@
%0D%0A%09%09
-/*%0D%0A%09%09%D0%AD%D1%82%D0%BE%D1%82 %D0%BC%D0%BE%D0%BC%D0%B5%D0%BD%D1%82 %D0%BD%D1%83%D0%B6%D0%BD%D0%BE %D0%B5%D1%89%D1%91 %D0%BF%D1%80%D0%BE%D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%... |
bec5fcf65f62ec1638b02701ef176eddbd3a4512 | delete list component import | src/bundle.js | src/bundle.js | /**
* Created by huangxinghui on 2015/5/20.
*/
require('./locale');
require('./utils/validator');
require('./utils/ajax');
require('./utils/block');
require('./utils/image');
require('./components/autocomplete/email');
require('./components/block');
require('./components/button');
require('./components/tabs');
requ... | JavaScript | 0 | @@ -650,38 +650,8 @@
');%0A
-require('./components/list');%0A
requ
|
5c7d733888d06087f997d7b08dde704670b4c331 | Remove transition after it's been faded in. | client/js/directives/photo-stream-directive.js | client/js/directives/photo-stream-directive.js | "use strict";
angular.module("hikeio").
directive("photoStream", ["$document", "$rootScope", "$timeout", "config", function($document, $rootScope, $timeout, config) {
var normalImage = "small";
var biggerImage = "medium";
var template = "<div class='preview-list'>" +
"<a href='/hikes/{{hike.string_id}}' data... | JavaScript | 0 | @@ -1518,32 +1518,91 @@
opacity%22, %221%22);%0A
+%09%09%09%09%09%09%09element.find(%22.preview%22).addClass(%22no-transition%22);%0A
%09%09%09%09%09%09%7D).each(fu
@@ -1693,59 +1693,8 @@
%09%09%09%09
-element.find(%22.preview%22).addClass(%22no-transition%22);
%0A%09%09%09
|
e3f3fc238024829a7f86b60d30ee26ae0bcef8b6 | Fix Typo | controller/dns-main.js | controller/dns-main.js | 'use strict';
const express = require('express');
const router = express.Router();
const models = require('../models');
const Sanitizer = require('../helper/strig-sanitize');
const Checker = require('../helper/helper/dns-check');
/**
* SubApp for handling some group of functions
*/
const search = require('./dns-se... | JavaScript | 0.000009 | @@ -119,63 +119,8 @@
');%0A
-const Sanitizer = require('../helper/strig-sanitize');%0A
cons
@@ -150,23 +150,16 @@
/helper/
-helper/
dns-chec
@@ -1223,39 +1223,37 @@
ecords.findById(
-Sanitiz
+Check
er.sanitize(req.
@@ -1434,39 +1434,37 @@
ecords.findById(
-Sanitiz
+Check
er.sanitize(req.
@@ -1890,15 +1890,13 @@... |
4fb9b9ca2c8119c6c5ec4b8251781b86943c8ab6 | Use key as the key instead of index | .storybook/stories/illustrations.stories.js | .storybook/stories/illustrations.stories.js | import React from 'react';
import { addStoryInGroup, FOUNDATION } from '../utils';
import * as Illustrations from '@teamleader/ui-illustrations';
import { Box, TextSmall } from '../../src';
const gridStyles = {
display: 'flex',
flexWrap: 'wrap',
};
const itemProps = {
alignItems: 'center',
display: 'inline-fl... | JavaScript | 0.000038 | @@ -591,36 +591,27 @@
ations).map(
-(
key
-, index)
=%3E %7B%0A
@@ -726,37 +726,35 @@
%3CBox key=%7B
-index
+key
%7D style=%7BitemSty
@@ -1106,36 +1106,27 @@
ations).map(
-(
key
-, index)
=%3E %7B%0A
@@ -1241,37 +1241,35 @@
%3CBox key=%7B
-index
+key
%7D style=%7BitemSty
@@ -1621,36 ... |
678731d02486f56dd2c2d1bc3223bea5f787621a | Remove testData.js from index.html | app/js/app.js | app/js/app.js | 'use strict';
// Declare app level module which depends on filters, and services
angular.module('hgApp', [
// Libs / modules
'ngRoute',
'firebase',
'angularFileUpload',
'angular-gapi',
'ui.router',
'waitForAuth',
'authSecurity',
'ng-shortId',
'checklist-model',
// Configuration
'hgApp.config',... | JavaScript | 0.000005 | @@ -508,66 +508,8 @@
er',
-%0A 'hgApp.service.testData', // Temporary for testing only
%0A%0A
|
d21e309784f011fe2d41b42553859604e2df29f0 | fix type | server.js | server.js | var express = require('express');
var cors = require('cors');
var app = express();
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var Play = require('./models/play');
var db = mongoose.connection;
db.on('error', console.error);
db.once('open', function(){
console.log("Connected to mong... | JavaScript | 0.000003 | @@ -423,17 +423,16 @@
.85.179'
-'
%0A%7D;%0A%0Aapp
|
fbb4bdcd0bf8b069f85e2e248d1ca1f0ad54d2f9 | Correct outdated comment for Room.isEmpty | app/server/room.js | app/server/room.js | import moment from 'moment';
import Player from './player.js';
import Game from './game.js';
class Room {
constructor({ code, players = [], game = new Game({ players }) }) {
this.code = code;
this.players = players;
this.game = game;
// The date/time the room was last seen completely empty (i.e. bo... | JavaScript | 0.000372 | @@ -1139,29 +1139,22 @@
if a
-t least one
+ll
player
- is
+s are
cur
@@ -1160,16 +1160,19 @@
rrently
+dis
connecte
@@ -1173,18 +1173,20 @@
nnected
-to
+from
the roo
@@ -1186,17 +1186,17 @@
the room
-,
+;
%0A // ot
@@ -1202,16 +1202,17 @@
therwise
+,
return
|
2d77259385619d180b209be11ba12fa96ac2d5f5 | Add route for records, i.e. all input data | app/js/app.js | app/js/app.js | 'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'partials/ho... | JavaScript | 0.000001 | @@ -361,16 +361,133 @@
er'%7D);%0A
+ $routeProvider.when('/records', %7B%0A templateUrl: 'partials/records.html', %0A controller: 'RecordsController'%7D);%0A
$routeP
|
222796b7802de01f7854bca253b6f867f5e4099f | Fix bug in rich presence rx handler. | handlers/rich_presence.js | handlers/rich_presence.js | var CSGO = require("../index"),
util = require("util"),
protos = require("steam-resources"),
vdf = require('../helpers/VDF');
CSGO.CSGOClient.prototype.richPresenceRequest = function(steamids, callback){
this._gc._client.send({
msg: protos.EMsg.ClientRichPresenceRequest,
proto: {
... | JavaScript | 0 | @@ -1176,14 +1176,16 @@
tos.
-schema
+Internal
.CMs
|
0d247e69b5f23b4fa8a25ddfbbc8a5dc6e1eb016 | Enable wrapConsole | examples/config/logger.js | examples/config/logger.js | /*jshint esversion:6, node:true*/
'use strict';
module.exports = {
dirname: '.',
filenamePrefix: '${app.name}'
};
module.exports.afterSolver = require('../../lib/logger').afterSolver;
| JavaScript | 0.000002 | @@ -79,16 +79,39 @@
e: '.',%0A
+ wrapConsole: true,%0A
file
|
91fedee9f8a139f6ec654d371efc356c895023ed | Drop redundant import | server.js | server.js | 'use strict';
var url = require('url');
var express = require('express');
var errorHandler = require('errorhandler');
var bodyParser = require('body-parser');
var swagger = require('swagger-n');
var config = require('./config');
var spec = require('./spec');
var handlers = require('./handlers');
main();
function ... | JavaScript | 0.000001 | @@ -12,35 +12,8 @@
';%0A%0A
-var url = require('url');%0A%0A
var
|
9026d02cec0c2afc15f13b2730533a1843359f7f | Fix #98. Add blank alternatives. | client/src/components/Admin/IssueForm/index.js | client/src/components/Admin/IssueForm/index.js | import React from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import Button from '../../Button';
import { createIssue } from '../../../actionCreators/adminButtons';
import { RESOLUTION_TYPES } from '../../../../../common/actionTypes/voting';
import { activeIssueExists } ... | JavaScript | 0 | @@ -613,24 +613,87 @@
E_CHOICE';%0A%0A
+const DEFAULT_ALTERNATIVES = %5B%0A %7B%0A text: 'Blank',%0A %7D,%0A%5D;%0A%0A
const YES_NO
@@ -2202,16 +2202,103 @@
%0A %7D%0A%0A
+ DEFAULT_ALTERNATIVES.forEach(alternative =%3E issueAlternatives.push(alternative));%0A%0A
this
|
1d514555c8872fe3f189d2eb8a188ee4d852a419 | fix recents not updating on key press | shared/src/popup.js | shared/src/popup.js | (function() {
// local vars for linting (and performance)
var vendor = window.vendor;
var VERSION = "0.5.0";
// upper bar
var logos = document.querySelectorAll(".group-logo");
logos = Array.prototype.slice.call(logos);
var recentButton = document.querySelector(".group-logo[data-group=recent]");
var s... | JavaScript | 0 | @@ -6279,24 +6279,48 @@
show recent%0A
+ updateRecent();%0A
setA
|
a032200b10927b2e81ce1a058cd60259d663d9fa | Rename const as max events per cell should be configurable | extensions/google_calendar_workflow/js/google_calendar_move_to_date.js | extensions/google_calendar_workflow/js/google_calendar_move_to_date.js | const TEST_ENV = 'TEST';
const PROD_ENV = 'PROD';
class GoogleCalendarMoveToDate {
// Maximum number of events to keep in a cell.
#MAX_EVENTS_PER_CELL = 14;
// Oldest available cell date that has been found and should be used.
topCellDate;
constructor(options) {
this.options = options;
... | JavaScript | 0.000002 | @@ -133,16 +133,24 @@
l.%0A #
+DEFAULT_
MAX_EVEN
@@ -3011,24 +3011,32 @@
d === this.#
+DEFAULT_
MAX_EVENTS_P
@@ -3301,16 +3301,24 @@
%3C this.#
+DEFAULT_
MAX_EVEN
|
ae835ec8ff8a9b2cecad69af488fa9159d8a89ae | add comment | server.js | server.js | var httpProxy = require('http-proxy');
var url = require('url');
var http = require('http');
exports.createServer = function(port, subProxyHost, options) {
httpProxy.createServer(
function (req, res, proxy) {
if(req.headers.host.indexOf(subProxyHost) == req.headers.host.length - subProxyHost.lengt... | JavaScript | 0 | @@ -141,16 +141,38 @@
roxyHost
+ /* e.g., localhost */
, option
|
481a6d748adb4f44c24003f35005a95e1bb175d2 | Fix race condition on test. | node/send_receive/tests/sender_test.js | node/send_receive/tests/sender_test.js | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var chai = require('chai');
chai.should();
var uuid = require('uuid');
var amqp10 = require('amqp10');
var ConnectionConfig = require('../lib/config.js'... | JavaScript | 0.000001 | @@ -2482,26 +2482,60 @@
done, done)
-;
%0A
+ .then(function() %7B%0A
se
@@ -2572,24 +2572,28 @@
;%0A
+
sender.send(
@@ -2605,24 +2605,40 @@
tId: id %7D);%0A
+ %7D);%0A
%7D);%0A
|
0e398c594a7332756bfd16c71647eaee163404e1 | use old js / error in container | server.js | server.js | // CREATER ADD & ADD MIDDLEWARES
const express = require('express');
const morgan = require('morgan');
const proxy = require('http-proxy').createProxyServer({});
const app = express();
// Configure options
app.use(morgan('dev'));
app.set('views', `${__dirname}/app`);
app.set('view engine', ... | JavaScript | 0 | @@ -1,12 +1,26 @@
+'use strict';%0A
// CREATER A
@@ -40,21 +40,19 @@
LEWARES%0A
-const
+var
express
@@ -79,21 +79,19 @@
ress');%0A
-const
+var
morgan
@@ -117,21 +117,19 @@
rgan');%0A
-const
+var
proxy
@@ -185,13 +185,11 @@
%7D);%0A
-const
+var
app
@@ -328,19 +328,19 @@
ejs');%0A%0A
-let
+var
apiUrl
... |
3ff225d7457b81e7bf6e43410c457c6c1c75fe0b | update and save email if provided | nodejs/lib/parameter_authentication.js | nodejs/lib/parameter_authentication.js | var wompt = require("./includes"),
Url = require('url'),
util = require('util');
env = require('../environment');
var MAX_REQUEST_AGE = 24 * 60 * 60; // 24 hours in seconds
// Looks up the account for a request
//
// for a url of /a/account_name/room_name
// this sets req.account = Account.find(name==account_name)
//... | JavaScript | 0.000001 | @@ -3352,16 +3352,133 @@
= user;%0A
+%09%09%09var email = req.query.email;%0A%09%09%09if (email && user.email != email) %7B%0A%09%09%09%09user.email = email;%0A%09%09%09%09user.save();%0A%09%09%09%7D%0A
%09%09%09wompt
@@ -3728,16 +3728,34 @@
ser_name
+,%0A%09%09email: q.email
%0A%09%7D);%0A%09%0A
|
6a0d0774554d74b2a99d7f96212245668a93198f | Increase timeout for mocha tests. | test/test.js | test/test.js | var request = require('supertest');
var app = require('../app.js').app;
var assert = require('assert');
var cookies;
describe('Availability tests', function() {
describe('GET /', function() {
it('Respond with a webpage.', function(done) {
request(app)
.get('/')
.expect(200)
.end(fu... | JavaScript | 0 | @@ -711,40 +711,8 @@
0%5D;%0A
- console.log(cookies);%0A
@@ -888,32 +888,59 @@
unction(done) %7B%0A
+ this.timeout(10000);%0A
request(ap
@@ -1185,32 +1185,59 @@
unction(done) %7B%0A
+ this.timeout(10000);%0A
request(ap
|
c6d0ad7919e097a161b1c23afd5a805efdf48704 | Remove useless logs | core/cb.core/workspace.js | core/cb.core/workspace.js | // Requires
var Q = require('q');
var _ = require('underscore');
var uuid = require('uuid');
var User = require('./user').User;
var qfail = require('../utils').qfail;
function Workspace(options, events) {
options = _.defaults({}, options, {
'id': uuid.v4(),
'secret': uuid.v4(),
'name': '... | JavaScript | 0.000001 | @@ -797,55 +797,8 @@
ers;
-%0A console.log(%22limit users%22, this.maxUsers);
%0A%0A
|
dbbb033054ecd7f3544ab88b63b96ff2f661271a | fix format property to allow integers | index.js | index.js | /**
* Expose the compile function
*/
exports = module.exports = compile;
/**
* Expose the interpolate function
*/
exports.interpolate = interpolate;
/**
* Interpolate a string without a compilation step
*
* THIS IS NOT RECOMMENDED FOR PRODUCTION USE
*
* @param {String} string
* @param {Object?} params
* ... | JavaScript | 0.000004 | @@ -1614,18 +1614,22 @@
re = /%5E
+%5B
%5Cw
+%5Cd%5D
+$/;%0Afun
|
e991c310d031858df0c5950debc6770dc58ac331 | fix mod range not possible to put less than 3 months | components/map/components/legend/components/timeline/index.js | components/map/components/legend/components/timeline/index.js | import { createElement, PureComponent } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { trackEvent } from 'utils/analytics';
import moment from 'moment';
import TimelineComponent from './component';
import { getMarks } from './selectors';
const mapStateToProps = (
s... | JavaScript | 0 | @@ -1519,78 +1519,72 @@
-newRange%5B0%5D = outsideMinDate ? minDate : modDate.format('YYYY-MM-DD');
+if (outsideMinDate) %7B%0A newRange%5B0%5D = minDate;%0A %7D
%0A
@@ -1872,24 +1872,25 @@
%7D%0A %7D%0A
+%0A
handleCh
|
3ea8e13975ffd703a9c0f7dd8caaeac79e6c68cb | alex test query | index.js | index.js | var express = require('express');
var exphbs = require('express-handlebars');
var app = express();
var BME280 = require('node-bme280');
var barometer = new BME280({address: 0x77});
var latestTemp;
var latestPressure;
var latestHumidity;
var latestTime;
var ready = false;
var Datastore = require('nedb')
, db = new D... | JavaScript | 0.968156 | @@ -1339,16 +1339,49 @@
: true,%0A
+%09%09%09alextest: req.query.alextest,%0A
%09%09%09measu
@@ -1928,16 +1928,49 @@
y: false
+,%0A%09%09%09alextest: req.query.alextest
%0A%09%09%7D);%0A%09
|
a00cff51725e8723d945569074063540eb9437c5 | handle success in the create reducer | src/reducers/create.js | src/reducers/create.js | /**
* The start action for the create reducer
* @param {Immutable.Map} state - reducer configuration
* @param {Object} action - action object
*
* @return {Immutable.Map} - updated state
*/
export const start = (state, action) => {
return state.setIn(['raw', action.data.get(action.uidField)], action.data)
}
e... | JavaScript | 0 | @@ -312,16 +312,719 @@
ata)%0A%7D%0A%0A
+/**%0A * The success action for the create reducer%0A * @param %7BImmutable.Map%7D state - reducer configuration%0A *%0A * @return %7BImmutable.Map%7D - updated state%0A */%0Aexport const success = (state) =%3E %7B%0A // Currently we do nothing on success because%0A // the r... |
f43eae5676c81c3f81bcad1f569f8bf7a155388e | add basic p2p test | test/test.js | test/test.js | // This is a basic test file for use with testling.
// The test script language comes from tape.
var test = require('tape');
m = require('../adapter.js');
test('Browser identified', function(t) {
t.plan(2);
t.ok(m.webrtcDetectedBrowser, 'Browser detected');
t.ok(m.webrtcDetectedVersion, 'Browser version detecte... | JavaScript | 0.000044 | @@ -1,12 +1,26 @@
+'use strict';%0A
// This is a
@@ -104,16 +104,40 @@
m tape.%0A
+/* jshint node: true */%0A
var test
@@ -157,16 +157,20 @@
ape');%0A%0A
+var
m = requ
@@ -191,16 +191,16 @@
r.js');%0A
-
%0Atest('B
@@ -299,16 +299,16 @@
cted');%0A
-
t.ok(m
@@ -364,8 +364,2583 @@
');%0A%7D);%0A
+%0Atest('bas... |
1a7bb473680d5e1b86e00b042b27d7ea77031931 | Update angleTool.js | src/imageTools/angleTool.js | src/imageTools/angleTool.js | import external from '../externalModules.js';
import mouseButtonTool from './mouseButtonTool.js';
import touchTool from './touchTool.js';
import drawTextBox from '../util/drawTextBox.js';
import roundToDecimal from '../util/roundToDecimal.js';
import toolColors from '../stateManagement/toolColors.js';
import drawHandle... | JavaScript | 0.000001 | @@ -2775,18 +2775,20 @@
%0A%0A
-le
+cons
t lines
|
d422d98163f9bcd3e4b3322f9574008172049aed | Revert "Fix TLS for local dev" | server.js | server.js |
// =====================================
// SETUP
// =====================================
var port = (process.argv[2] && !isNaN(process.argv[2]) ? process.argv[2] : (process.env.PORT || 4321));
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var morgan = require('morga... | JavaScript | 0 | @@ -1007,61 +1007,8 @@
tls:
- process.env.NODE_ENV === 'development' ? undefined :
%7B%7D%0A
|
a1d9ef43a6e91c02e8610f41f6217a27c3190c59 | add test | test/test.js | test/test.js | 'use strict';
var assert = require('assert');
var util = require('..');
describe('test', function () {
util.BASE_BYTE_PER_SATOSHI = 1;
describe('p2pkh test', function () {
it('p2pkh', function () {
assert.equal(util.p2pkh_tx_calc_fee(1, 1), 192)
assert.equal(util.p2pkh_tx_c... | JavaScript | 0.000002 | @@ -778,108 +778,692 @@
-%7D)%0A it('p2sh 2 of 3', function () %7B%0A assert.equal(p2sh_tx_calc_fee_2of3(1, 1), 339
+ assert.equal(p2sh_tx_calc_fee_1of1(1, 2), 232)%0A assert.equal(p2sh_tx_calc_fee_1of1(2, 2), 386)%0A %7D)%0A it('p2sh 1 of 2', function () %7B%0A ... |
02c0372110ef4f793f22918c4f737115c0060d17 | fix select options text color | addons/knobs/src/components/types/Options.js | addons/knobs/src/components/types/Options.js | import React from 'react';
import PropTypes from 'prop-types';
import ReactSelect from 'react-select';
import styled from '@emotion/styled';
import RadiosType from './Radio';
import CheckboxesType from './Checkboxes';
const OptionsSelect = styled(ReactSelect)({
width: '100%',
maxWidth: '300px',
});
const Options... | JavaScript | 0.000057 | @@ -295,16 +295,34 @@
300px',%0A
+ color: 'black',%0A
%7D);%0A%0Acon
|
3a9fa9b1d4218d3ac3ce0bd3edb4724dd456aecf | rollback cors change | routes: { cors: { origin: 'ignore' } | server.js | server.js | const Hapi = require('@hapi/hapi');
const routes = require('./routes');
const auth = require('./auth');
module.exports = async (elastic, config, cb) => {
const server = new Hapi.Server({ port: config.port, routes: { cors: { origin: 'ignore' }, log: { collect: true } } });
server.route(routes(elastic, config));
... | JavaScript | 0.000005 | @@ -222,28 +222,12 @@
rs:
-%7B origin: 'ignore' %7D
+true
, lo
|
2eb5b887e48c293496ab6e7fc40aff6f75bcf5ad | update RemoteAutoComplete | src/RemoteAutoComplete/RemoteAutoComplete.js | src/RemoteAutoComplete/RemoteAutoComplete.js | /**
* @file RemoteAutoComplete component
* @author chao(chao.zhang@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Event from '../_vendors/Event';
import classNames from 'classnames';
import TextField from '../TextField/TextField';
import CircularLoading from '.... | JavaScript | 0 | @@ -169,37 +169,38 @@
ort
-Event from '../_vendors/Event
+debounce from 'lodash/debounce
';%0Ai
@@ -392,22 +392,37 @@
ort
-_
+Event
from '
-lodash
+../_vendors/Event
';%0A%0A
@@ -1698,10 +1698,8 @@
e =
-_.
debo
|
46f8db7ec1308ebb3aff6f3bf12a93083e706717 | Update getGcData.js | util/getGcData.js | util/getGcData.js | /**
* Issues a request to the retriever to get GC (Game Coordinator) data for a match
* Calls back with an object containing the GC data
* */
const moment = require('moment');
const zlib = require('zlib');
const utility = require('../util/utility');
const config = require('../config');
const queries = require('../st... | JavaScript | 0 | @@ -3141,10 +3141,10 @@
0 *
-36
+24
, zl
|
6e963c852ef9c860c6e13ebafa753f3a46c89943 | update msg handling | server.js | server.js | 'use strict'
const express = require('express')
const Slapp = require('slapp')
const ConvoStore = require('slapp-convo-beepboop')
const Context = require('slapp-context-beepboop')
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
// use `PORT` env var on Beep Boop - default to 3000 locally
var port ... | JavaScript | 0.000001 | @@ -1065,19 +1065,60 @@
tionGif(
-)%7B%0A
+msg)%7B%0A%09msg.say(%22Fetching Reaction Gifs...%22);
%0A%09var xh
@@ -1370,21 +1370,19 @@
se);%0A%09%09%09
-slapp
+msg
.say(jso
@@ -1604,16 +1604,16 @@
g) =%3E %7B%0A
-
%09getReac
@@ -1620,16 +1620,19 @@
tionGif(
+msg
);%0A%0A%09msg
|
ead10409cd00475bddb12ae5948302858973fd3d | comment out deprecated/deleted metadata properties | client/app/ercView/erc.controller.js | client/app/ercView/erc.controller.js | (function(){
'use strict';
angular
.module('starter')
.controller('ErcController', ErcController);
ErcController.$inject = ['$scope', '$stateParams', '$log', '$state', 'erc', 'publications', 'icons', 'header', '$mdSidenav', 'env', 'ngProgressFactory', 'httpRequests', 'login'];
function... | JavaScript | 0 | @@ -1714,16 +1714,27 @@
e = %5B%5D;%0A
+ /*%0A
@@ -1950,16 +1950,35 @@
%7D);%0A
+ */%0A
%0A
|
1957ff51adad61badf30e6297f860df138e1088f | Fix server path | server.js | server.js | /**
Webhook listener.
*/
"use strict"
const program = require("commander")
const http = require('http')
const main = require('./pull_request')
const seqqueue = require('seq-queue')
const config = require('./config')
// Pull request actions to process
const pullRequestActions = ['opened', 'synchronize', 'reopened'... | JavaScript | 0.000001 | @@ -125,16 +125,20 @@
uire('./
+src/
pull_req
|
67774384eaf54807ed4e608d83596e27f8c50b9d | Fix lint issue (#6) | index.js | index.js | 'use strict';
const timeZone = require('time-zone');
module.exports = options => {
options = Object.assign({
date: new Date(),
local: true,
showTimeZone: false,
showMilliseconds: false
}, options);
let date = options.date;
if (options.local) {
// Offset the date so it will return the correct value when... | JavaScript | 0 | @@ -208,20 +208,22 @@
;%0A%0A%09let
+%7B
date
+%7D
= optio
@@ -228,13 +228,8 @@
ions
-.date
;%0A%0A%09
|
65796b277e659215c6b3d7d5e420497ceb299812 | modify syntax sugar | test/test.js | test/test.js | 'use strict';
const {
assert,
expect,
should
} = require('chai');
const smarty = require('../');
const gutil = require('gulp-util');
const path = require('path');
const vinyl = require('vinyl')
const fs = require('fs');
const createVinyl = (TPL, contents) => {
let base = path.join(__dirname, 'tpl');
let fil... | JavaScript | 0.000006 | @@ -18,40 +18,14 @@
nst
-%7B%0A
assert
-,%0A expect,%0A should%0A%7D
= r
@@ -38,16 +38,23 @@
('chai')
+.assert
;%0Aconst
|
56d120184a6a0d245c401418236ee1aa0cf608a5 | Update antiaircraft2_temp.js | content/temp_json/antiaircraft2_temp.js | content/temp_json/antiaircraft2_temp.js | {
'type': 'Arcade', // game or console
'name': 'Anti-Aircraft 2',
'authors': [],
'company': ['Atari'],
'year': '1975',
'date': '06-06-1975', // Day, Month, Year
'headline': 'O primeiro jogo a possuir um MOD',
'resume': [
'Anti-Aircraft 2 foi ... | JavaScript | 0.000002 | @@ -2430,35 +2430,39 @@
'caption': %22
-description
+ArmChair Arcade
%22%7D,%0A
@@ -2552,35 +2552,33 @@
'caption': %22
-description
+Wikip%C3%A9dia
%22%7D,%0A
@@ -2678,27 +2678,29 @@
tion': %22
-description
+Arcade Museum
%22%7D,%0A
@@ -2783,19 +2783,14 @@
': %22
+Sli
des
-cription
%22%7D%0... |
50fa465e0db7404d5df4d73f508f40de9a3e9a28 | Connect component to upVote and downvote book methods | client/components/BookDetailsPage.js | client/components/BookDetailsPage.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getBook, favoriteBook } from '../actions/book';
import PreLoader from './Preloader';
import BookDetails from './BookDetails';
import Review from './Reviews';
class BookDetailsPage extends Component {
componentDidMount() {
c... | JavaScript | 0 | @@ -104,16 +104,42 @@
riteBook
+, upvoteBook, downvoteBook
%7D from
@@ -1577,16 +1577,174 @@
d)); %7D,%0A
+ upvoteBook: (userId, bookId) =%3E %7B dispatch(upvoteBook(userId, bookId)); %7D,%0A downvoteBook: (userId, bookId) =%3E %7B dispatch(downvoteBook(userId, bookId)); %7D,%0A
%7D);%0A%0Aexp
|
ae0590449654595b74ea1ee3860ec3874b0e89b3 | test bin | test/test.js | test/test.js | #!/usr/bin/env node
//
// Detects triangles and quadrilaterals
//
// sourced from: https://github.com/peterbraden/node-opencv/tree/master/examples
var cv = require('opencv'),
fs = require("fs"),
PNG = require("png").Png,
PNGdecoder = require('png-js');
var image_path = "./";
/*
var image = new PNGdecoder("te... | JavaScript | 0.000001 | @@ -628,16 +628,20 @@
%0A%0A var
+b64_
buf = ne
@@ -685,12 +685,57 @@
ng('
-utf8
+binary');%0A var buf = new Buffer(b64_buf, 'binary
');%0A
|
c394e37bae5d5ee1a1ade08e36caaf01e371afb9 | remove tls.. nothing but issues | server.js | server.js | 'use strict';
const Hapi = require('hapi');
const fs = require('fs');
const server = new Hapi.Server();
const tlsOptions = {
tls: {
ca: fs.readFileSync('/home/kamil/cert/ca-bundle.crt'),
key: fs.readFileSync('/home/kamil/cert/myserver.key'),
cert: fs.readFileSync('/home/kamil/cert/domaincert.crt')
}
}... | JavaScript | 0.000105 | @@ -103,225 +103,8 @@
);%0A%0A
-const tlsOptions = %7B%0A tls: %7B%0A ca: fs.readFileSync('/home/kamil/cert/ca-bundle.crt'),%0A key: fs.readFileSync('/home/kamil/cert/myserver.key'),%0A cert: fs.readFileSync('/home/kamil/cert/domaincert.crt')%0A %7D%0A%7D;%0A%0A
serv
@@ -134,25 +134,8 @@
2935
-, tls: tlsO... |
fbd830f5beb5d527a30be5b541af7228f5c3e5ef | use POST instead of GET | source/App.js | source/App.js | enyo.kind({
name: "App",
kind: "FittableRows",
fit: true,
tokens: [],
components:[
{kind: "onyx.Toolbar", content: "WebLetter"},
{kind: "enyo.Scroller", fit: true,
components: [
//{name: "mylogger", content: "log", allowHtml: true},
{name: "main", classes: "nice-padding", allowHtml: true, compo... | JavaScript | 0.000001 | @@ -1234,16 +1234,32 @@
ter.php%22
+, method: %22post%22
%7D, showi
|
e310ed72bf0352ea6abf47caedfeac539b630faf | Fix lazy loading bug. | rookie.js | rookie.js | /**
* Rookie.js v0.0.1
* (c) 2014 wangyi
*/
(function (window) {
'use strict';
window.rookie = window.rookie || {
getTimes: function () {
var timing = window.performance.timing;
var times = {};
if (timing) {
/*网络耗时*/
times.network... | JavaScript | 0 | @@ -131,16 +131,23 @@
get
+MainDoc
Times: f
@@ -619,19 +619,52 @@
ole.
-table
+log(times);%0A //console.log
(tim
-es
+ing
);%0A
@@ -722,24 +722,75 @@
urn
-rookie.getTimes(
+setTimeout(function () %7B%0A rookie.getMainDocTimes();%0A %7D, 0
);%0A%0A
|
f4559a9e2c4587b996295b1235c3adc4d8762bf7 | read form from index.html | server.js | server.js | #!/usr/bin/env node
var formidable = require('formidable'),
http = require('http'),
util = require('util'),
os = require('os'),
fs = require('fs'),
crypto = require('crypto'),
uploadDir = os.tmpDir() + "/uplodr",
config = require('./config.js');
if (typeof config.customUploadDir !== 'undef... | JavaScript | 0 | @@ -2014,478 +2014,246 @@
m%0A
-res.writeHead(200, %7B'content-type': 'text/html'%7D);%0A res.end(%0A '%3Cform action=%22/upload%22 enctype=%22multipart/form-data%22 method=%22post%22%3E'+%0A '%3Cinput type=%22text%22 name=%22title%22%3E%3Cbr%3E'+%0A '%3Cinput type=%22file%22 name=%22upload%22%3E%3Cbr%3E'+... |
4bff451b2f8cd13d21fae61abb31ee427c12b5cf | fix pathname vacio | web/web-app/js/core.js | web/web-app/js/core.js |
$("[name='jobRow']").on('click', function(){
var jobId = $(this).attr("data-jobId");
$.ajax("/itemsByJob?jobId="+jobId, {
success: function(data) { $("#itemsTable").html(data); },
error: function(data) { $("#itemsTable").html("No se pudieron obtener los artículos."); }
});
});
$("[name='deleteCop']").on('c... | JavaScript | 0.000275 | @@ -840,16 +840,72 @@
', '');%0A
+%09if (pathname === '')%0A%09 pathname = 'listar-trabajos';
%0A%09docume
|
8d8f4b7bff4c14f39aa7734a9fbc7811522fafa2 | Fix import path of timepicker css | src/main/javascript/components/timepicker/index.js | src/main/javascript/components/timepicker/index.js | import "timepicker";
import "timepicker/dist/jquery.timepicker.css";
| JavaScript | 0.000001 | @@ -37,13 +37,8 @@
ker/
-dist/
jque
|
eda3bdde47df54adaab4e2c04f57c0b97472a417 | Update angular.named-routes.js | angular.named-routes.js | angular.named-routes.js | "use strict";
angular.module("zj.namedRoutes", [])
// as a non standard way to fix html5Mode
// set this to something like :
// .constant("NamedRoutesPrefix", "#!")
.constant("NamedRoutesPrefix", "")
.factory("$NamedRouteService", ['$rootScope', '$route', '$location', '$log', 'NamedRoutesPrefix',
... | JavaScript | 0 | @@ -49,172 +49,8 @@
%5B%5D)%0A
- // as a non standard way to fix html5Mode%0A // set this to something like :%0A // .constant(%22NamedRoutesPrefix%22, %22#!%22)%0A .constant(%22NamedRoutesPrefix%22, %22%22)
%0A
@@ -130,29 +130,8 @@
og',
- 'NamedRoutesPrefix',
%0A%09
@@ -199,16 +199,62 @@
refix)%7B... |
17b624e01e52e7967bacadb6069cdab6128936d7 | Fix a bug in our goToIndex function when checking the whispers size. (#190) | client/navigation/action-creators.js | client/navigation/action-creators.js | import { routerActions } from 'react-router-redux'
// Pick a location to direct the user to given data from the store, used as an "index" page since we
// don't really have a root content page
export function goToIndex(transitionFn = routerActions.push) {
return (dispatch, getState) => {
const { lobby, whispers,... | JavaScript | 0 | @@ -312,16 +312,30 @@
whispers
+: %7B sessions %7D
, chat:
@@ -592,23 +592,23 @@
lse if (
-whisper
+session
s.size)
@@ -669,23 +669,23 @@
mponent(
-whisper
+session
s.get(0)
|
c6aabf603d789f6779d65cc0d2de43e13f8deb78 | set window size | code/src/emulator/index.js | code/src/emulator/index.js | 'use strict';
module.exports = emulator;
var fs = require('fs'),
path = require('path'),
Q = require('q'),
phantom = require("phantom-wd");
var root = '../../'; // ./code
function emulator(options, cb) {
var map = fs.readFileSync(path.join(__dirname, root, 'data/maps/' + options.map +'.map'), { enc... | JavaScript | 0.000001 | @@ -1005,16 +1005,129 @@
browser.
+windowHandle().then(function (handle) %7B%0A return browser.setWindowSize(2000, 2000, handle);%0A %7D).
get(game
@@ -1933,32 +1933,35 @@
%0A
+ //
console.log('sc
|
c6b2e9b513fb3acb4a6b87f590cd25eee0f1da13 | Add custom route channels. | router.js | router.js | 'use strict';
var value = require('observ');
var source = require('geval/source');
var window = require('global/window');
var document = require('global/document');
var routeMap = require('route-map');
var atom = router.atom = value(String(document.location.href));
function router(channels_map, args) {
... | JavaScript | 0 | @@ -669,18 +669,54 @@
if
-
(
+channels_map)%7B%0A if (args &&
args.bas
@@ -716,24 +716,26 @@
rgs.base) %7B%0A
+
@@ -775,16 +775,18 @@
ls_map)%0A
+
@@ -852,16 +852,18 @@
+
acc%5Bargs
@@ -896,16 +896,18 @@
p%5Bstr%5D;%0A
+
@@ -946,16 +946,18 @@
... |
8487d7137972f02cf44ffbc05fefc1b56f4e7d07 | update how to upload subs | opensubs_client/index.js | opensubs_client/index.js | const os = require('opensubtitles-api');
const config = require('../config');
const firebase = require('firebase-admin');
const osClient = new os({
useragent: config.OS_USER_AGENT,
ssl: true,
});
class OpenSubsClient {
constructor() {
this.bucket = firebase.storage().bucket();
}
getSubsLink... | JavaScript | 0 | @@ -30,24 +30,56 @@
tles-api');%0A
+const axios = require('axios');%0A
const config
@@ -653,21 +653,24 @@
his.
-bucket.upload
+downloadSubtitle
(sub
@@ -686,45 +686,110 @@
.url
-, %7B%0A destination:
+)%0A .then(stream =%3E %7B%0A const subtitleFile = t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.