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 |
|---|---|---|---|---|---|---|---|
9c840f23f2e6f74fab22c24f4f3814782fae2e78 | Simplify Clip.play() since offset always given. | ncph.js | ncph.js | // Copyright (C) 2016 ncph Authors
// This file is free software: You can redistribute it and/or modify it under
// the terms of the GNU AGPLv3 or later. See COPYING for details.
// Implementation of the Fischer-Yates-Durstenfeld O(n) shuffle algorithm. This
// variant is non-destructive (does not modify the input arr... | JavaScript | 0 | @@ -1577,84 +1577,8 @@
e %7B%0A
- if (offset === undefined) %7B%0A vid.src = this.path();%0A %7D else %7B%0A
@@ -1624,22 +1624,16 @@
/ 1000;%0A
- %7D%0A
%7D%0A vi
|
f05eedc88b63cbf52d01eca1ab77996194a6e902 | Add a few more triggers. | nope.js | nope.js | ~function() {
var WRITE_LIFECYCLE_MODE = "write";
var knownLifecycleModes = [ "read", WRITE_LIFECYCLE_MODE ];
var lifecycleMode = WRITE_LIFECYCLE_MODE;
define(HTMLDocument.prototype, 'write', nope);
define(HTMLDocument.prototype, 'writeln', nope);
define(HTMLDocument.prototype, 'open', nope);
define(HTMLDocument.prot... | JavaScript | 0 | @@ -1125,24 +1125,232 @@
%5D,%0A %7D,%0A
+ 'Range': %7B%0A 'method': %5B%0A 'getClientRects',%0A 'getBoundingClientRect',%0A %5D,%0A %7D,%0A 'MouseEvent': %7B%0A 'getter': %5B%0A 'layerX',%0A 'layerY',%0A 'offsetX',%0A 'offsetY',%0A %5D,%0A %7D,%0A
'HTMLButto
@@ -1... |
de5b9fc0e83a810097014387f1d7a128ba469a3f | use node-notify-send instead of doing it myself | alert.js | alert.js | #!/usr/bin/env node
// generally the idea is:
// 1: create stream
// 2: wait for push tickle
// 3: fetch updates since the last time we checked
var Pushbullet = require('pushbullet'),
pusher = new Pushbullet(process.env.ALERT_PUSH_API),
stream= pusher.stream(),
time = new Date().getTime() /... | JavaScript | 0 | @@ -324,20 +324,24 @@
00,%0A
-exec
+notifier
= requi
@@ -348,56 +348,42 @@
re('
-child_process').exec,%0A _sq ='%5C'', _esq='%5C%5C%5C''
+notify-send').normal.timeout(5000)
,%0A
@@ -1061,19 +1061,20 @@
y =
+(
msg.
-url + (
+body ?
msg.
@@ -1082,31 +1082,30 @@
ody
-?
++
'%5Cn'
+: '')
+ msg.
-bod... |
459bcd5a7d22f7634113f0d2012e37030bd48b33 | Update SPAControllers.js | App/Controllers/SPAControllers.js | App/Controllers/SPAControllers.js | // TODO: add here AngularJS Module
| JavaScript | 0 | @@ -1,35 +1,2307 @@
-// TODO: add here AngularJS Module
+var oOrchidsApp = angular.module('OrchidsApp', %5B'ngRoute'%5D);%0A%0AoOrchidsApp.config(%5B'$routeProvider', function ($routeProvider) %7B%0A%0A $routeProvider%0A%0A .when('/',%0A %7B%0A templateUrl: %22/App/Views/OrchidsList.html%22,%0A ... |
7e04b0e810ab5caf058a30e2f8f9b7666d17fabd | Fix the file header for the styleguide options file | Build/Grunt-Options/styleguide.js | Build/Grunt-Options/styleguide.js | /**
* Grunt-Contrib-Clean
* @description Cleans files and folders.
* @docs https://github.com/gruntjs/grunt-contrib-clean
*/
var config = require("../Config");
module.exports = {
options: {
template: {
src: 'Documentation/Private/Template'
},
framework: {
name: 'kss'
}
},
all: {
files: [{
'D... | JavaScript | 0 | @@ -10,21 +10,18 @@
unt-
-Contrib-Clean
+Styleguide
%0A *
@@ -37,89 +37,203 @@
ion
-Cleans files and folders.%0A * @docs https://github.com/gruntjs/grunt-contrib-clean
+Universal CSS styleguide generator for grunt. Easily integrate Styledocco or KSS styleguide generation into your development workflow.%0A * @docs ... |
9c3b3bec9c0a4d73ef384e9bdfeab012d7740a84 | Fix test | routes/authenticated.js | routes/authenticated.js | module.exports = [
{
// shortcut for viewing your own stars
path: "/star",
method: "GET",
handler: require('../handlers/star'),
}, {
paths: [
"/~",
"/profile",
],
method: "GET",
handler: require('../facets/user/show-profile')
}, {
path: "/profile-edit",
method: ... | JavaScript | 0.000004 | @@ -2990,32 +2990,134 @@
updateOrg%0A %7D,%7B%0A
+ path: %22/org/%7Borg%7D%22,%0A method: %22DELETE%22,%0A handler: require('../handlers/org').deleteOrg%0A %7D,%7B%0A
path: %22/org/
|
a1e4b77163a59c41ff9b320be44862f51949b8c2 | add data | routes/views/contact.js | routes/views/contact.js | var keystone = require('keystone'),
Enquiry = keystone.list('Enquiry');
Navbar = keystone.list('Navbar'),
MenuList = keystone.list('Menu'),
FooterList = keystone.list('Footer'),
CompanyInfoListMenu = keystone.list('CompanyInfoListMenu'),
exports = module.exports = function(req, res) {
var view = new keys... | JavaScript | 0.000819 | @@ -909,808 +909,8 @@
;%0A%0A%09
-// Load the current Navbar%0A%09view.on('init', function(next) %7B%0A%09%09var q = Navbar.model.find();%0A%09%09q.exec(function(err, results) %7B%0A%09%09%09locals.data.navbars = results;%0A%09%09%09next(err);%0A%09%09%7D);%0A%09%7D);%0A%0A%09// Load the current MenuList%0A%09view.on(... |
46916f84ec7023af894b2b3230ed9d888fa4ba1f | Fix quickAlgo final test rerun | quickAlgo/taskPlatformAdapter.js | quickAlgo/taskPlatformAdapter.js | var taskPlatformAdapterPlatform = {
validate: function(mode, success, error) {
$('#validateOk').show();
},
getTaskParams: function(key, defaultValue, success, error) {
var res = {'minScore': 0, 'maxScore': 100, 'noScore': 0, 'readOnly': true, 'randomSeed': "0", 'options': {}}; // TODO :: ran... | JavaScript | 0.000002 | @@ -1641,34 +1641,108 @@
-task.displayedSubTask.run(
+setTimeout(function() %7B%0A task.displayedSubTask.run();%0A %7D, 1000
);%0A
|
a0e0f9b17ca713650526249b59d14587b8d1bfb3 | Fix module paths in unloading code in bootstrap.js. | recipe-client-addon/bootstrap.js | recipe-client-addon/bootstrap.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const {utils: Cu} = Components;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defi... | JavaScript | 0 | @@ -908,20 +908,18 @@
ap%22);%0A
-cons
+le
t module
@@ -928,38 +928,8 @@
= %5B%0A
- %22content/AboutPages.jsm%22,%0A
@@ -1467,17 +1467,181 @@
js%22,%0A %5D
-;
+.map(m =%3E %60resource://shield-recipe-client/$%7Bm%7D%60);%0A modules = modules.concat(%5B%0A %22AboutPages.jsm%22,%0A %5D.map(m =%3E %60... |
4f27802ef185b4410cb4cb612bb7b8d852eac8ce | optimize Guide | src/Guide/Guide.js | src/Guide/Guide.js | /**
* @file Guide component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TriggerPop from '../_TriggerPop';
import AnchorButton from '../AnchorButton';
import Position from '../_statics/... | JavaScript | 0 | @@ -1743,17 +1743,8 @@
ose,
-parentEl,
%0A%0A
@@ -2304,52 +2304,8 @@
de%22%0A
- parentEl=%7BparentEl%7D%0A
|
274cd7eb9a05c1b32dab563a871c557097bc3392 | make every/fps,fpsWhen work well together | src/Native/Time.js | src/Native/Time.js | Elm.Native.Time = {};
Elm.Native.Time.make = function(elm) {
elm.Native = elm.Native || {};
elm.Native.Time = elm.Native.Time || {};
if (elm.Native.Time.values) return elm.Native.Time.values;
var Signal = Elm.Signal.make(elm);
var NS = Elm.Native.Signal.make(elm);
var Maybe = Elm.Maybe.make(elm);
var Ut... | JavaScript | 0.000001 | @@ -394,24 +394,74 @@
ir._0;%0A %7D%0A%0A
+ function snd(pair) %7B%0A return pair._1;%0A %7D%0A%0A
function f
@@ -537,18 +537,26 @@
var pr
-ev
+ogramStart
= elm.t
@@ -569,332 +569,103 @@
ow()
-, curr = prev, diff = 0, wasOn = true;%0A var ticker = NS.input(diff);%0A function tick(zero) %7B%0A ... |
d9d920ce268b151b70ef5fb6798ede794ce0afb0 | add logger | public_html/app.js | public_html/app.js | /*
* The MIT License
*
* Copyright 2014 filippov.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | JavaScript | 0.000026 | @@ -1208,34 +1208,43 @@
og')
-%5B0%5D.textValue += msg;%0A
+.val($('.log').val() + '%5Cn' + msg);
%0A %7D%0A
@@ -1746,24 +1746,26 @@
lank');%0A
+//
var report =
@@ -1805,16 +1805,18 @@
);%0A%0A
+//
report.d
|
a3f7a39fd0ebf270b3fcfbcf681f41000284510b | Fix the style of limitations | src/botPage/view/react-components/LimitsPanel.js | src/botPage/view/react-components/LimitsPanel.js | import React, { PureComponent, PropTypes } from 'react'
import ReactDOM from 'react-dom'
import { translate } from '../../../common/i18n'
import { Panel } from './Panel'
const errorStyle = {
color: 'red',
fontSize: '0.8em',
}
const saveButtonStyle = {
display: 'block',
float: 'right',
marginTop: '1em',
}
c... | JavaScript | 0.999998 | @@ -164,16 +164,59 @@
Panel'%0A%0A
+const contentStyle = %7B%0A width: '18em',%0A%7D%0A%0A
const er
@@ -294,16 +294,32 @@
yle = %7B%0A
+ width: '4em',%0A
displa
@@ -344,31 +344,56 @@
t: '
-right',%0A marginTop: '1
+left',%0A marginLeft: '7em',%0A marginBottom: '0.5
em',
@@ -410,32 +410,52 @@
limitsStyle =... |
1788a9dfa1695bee35388c5bbe73c595eeb0769c | Increase testserver verbosity. | example-server.js | example-server.js | /*
Prerequisites:
1. Install node.js and npm
2. npm install ws
See also,
http://einaros.github.com/ws/
To run,
node example-server.js
*/
"use strict"; // http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
var WebSocketServer = require('ws').Server;
var http = require('http');
var... | JavaScript | 0 | @@ -582,21 +582,16 @@
le.log('
-/foo
%3E%3E%3E ' +
@@ -625,24 +625,51 @@
'goodbye') %7B
+ console.log('%3C%3C%3C galaxy');
ws.send('ga
@@ -708,16 +708,42 @@
ello') %7B
+ console.log('%3C%3C%3C world');
ws.send
|
1e197e5c11e5bde5c543bb789f9e212454010816 | Fix Registers.sizeof | webui/js/OpenTI/Core/Registers.js | webui/js/OpenTI/Core/Registers.js | define(["../wrap"], function(Wrap) {
var Registers = function(pointer) {
if (!pointer) {
throw "This object can only be instantiated with a memory region predefined!";
}
this.pointer = pointer;
Wrap.UInt16(this, "AF", pointer);
Wrap.UInt8(this, "F", pointer);
... | JavaScript | 0 | @@ -2112,20 +2112,16 @@
eturn 26
- + 2
;%0A %7D%0A
|
957f5c95ee51c29828b5f06edc8a153c307c97a9 | Fix the relative require paths for Node. | example/person.js | example/person.js | /* Copyright (c) 2011 Darryl Pogue
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
... | JavaScript | 0.000003 | @@ -1194,24 +1194,25 @@
= require('.
+.
/key.js').Ke
@@ -1233,32 +1233,33 @@
ger = require('.
+.
/resmgr.js').Res
@@ -1290,16 +1290,17 @@
quire('.
+.
/resmgr.
@@ -1341,16 +1341,17 @@
quire('.
+.
/keyedob
|
dae8c6871fe112c23ab1b42d03d1a919dbee0f06 | Make success notification stay until clicked | www/js/duplicate-app.js | www/js/duplicate-app.js |
var d = [];
var s;
var duplicatorService = 'https://localhost:8000';
var app = new Vue({
el: "#app",
// validator: null, // private reference
data: {
app: {
error: false
},
isCreatingApp: false,
showAppCreated: false,
selected: "",
options: d,
... | JavaScript | 0 | @@ -1515,16 +1515,28 @@
gSuccess
+, stay: true
%7D);%0A
|
6be65d85cb61b314013138dcd8f62b9d8ad6d83c | Fix unsaved typo corrections. | example/simple.js | example/simple.js | /*
* netsuite-js
* https://github.com/CrossLead/netsuite-js
*
* Copyright (c) 2015 Christian Yang
* Licensed under the Apache license.
*/
'use strict';
var denodeify = require('denodeify');
var NetSuite = require('../');
var credentials = require('./credentials.json');
var config = new NetSuite.Configuration(cr... | JavaScript | 0.000001 | @@ -616,21 +616,8 @@
'
-platformMsgs:
base
@@ -966,16 +966,18 @@
ole.log(
+c.
lastRequ
@@ -979,18 +979,16 @@
tRequest
-.c
);%0A %7D
|
bd6a2d4aba552713803bac109b5f099e7b4fa9ad | fix js stream-fn | resources/public/browser_test.js | resources/public/browser_test.js | var r = replikativ.js;
var user = "mail:alice@stechuhr.de";
var ormapId = cljs.core.uuid("07f6aae2-2b46-4e44-bfd8-058d13977a8a");
var uri = "ws://127.0.0.1:31778";
var props = {captures: []};
var streamEvalFuncs = {"add": function(old, params) {
var oldCaptures = old.captures;
var newCaptures = oldCaptures.push(... | JavaScript | 0.000002 | @@ -342,19 +342,19 @@
ptures:
-new
+old
Captures
@@ -1211,12 +1211,8 @@
og(%22
-foo
asso
@@ -1227,11 +1227,17 @@
ith
-42%22
+%22 + value
);%0A
@@ -1276,9 +1276,8 @@
tiv();%0A%0A
-%0A
|
866559c434743fbc7f6b7b2227b666b9b6da462f | Implement `delegate.on()` | delegate.js | delegate.js | /*! delegate.js v0.0.0 - MIT license */
;(function (global) { function moduleDefinition(matches) {
// ---------------------------------------------------------------------------
var elem;
/**
* Specify the event delegate element
*
* @param {Element} node
* @return {delegate}
* @api public
*/
function delegat... | JavaScript | 0.000003 | @@ -481,24 +481,1592 @@
elegate;%0A%7D%0A%0A
+/**%0A * Delegate the handling of an event type to the given ancestor-element of%0A * nodes matching a given CSS selector. The callback function is invoked when%0A * an event bubbles up through any nodes that delegated their event handling to%0A * the ancestor.%0A *%0A * @... |
98794aa03d3cb570f2ab1678898056e72f36c965 | move npm root to an internal variable on the require-auto module, and don't fetch that info every time we require a file (cause it's slow) | require-auto.js | require-auto.js | var _path = require ("path");
var _fs = require ("fs");
var _cp = require ("child_process");
var _os = require ("os");
// fileExists - internal helper function because the Node.js "fs" package has
// deprecated the "exists" method, and the "approved" async way of getting stat throws
// an exception if the file doesn't... | JavaScript | 0 | @@ -545,20 +545,17 @@
%0A%7D;%0A%0A//
-getN
+n
pmRoot -
@@ -586,76 +586,179 @@
n to
- synchronously run npm and return the output%0A// as a string
+... WELLLLL (church lady voice) - npm is %0A// *SPECIAL*. Rather than try to look simply for where npm will put the included%0A// packages, I'll have to ask npm directl... |
afaf0ab5e73137505e5c4a93d647c5a40100fd2c | update main server for outer league wrapper methods | score-tweets.js | score-tweets.js | var http = require('http')
, file = require('fs')
, db = require('./my_modules/db.js')
, NHLScore = require('./my_modules/nhl.js')
, NFLScore = require('./my_modules/nfl.js');
var league = Object.create(NHLScore);
var rawResponse = '';
var request = http.get(league.updateURL, function(res) {
res.on('data',... | JavaScript | 0 | @@ -1,34 +1,8 @@
var
-http = require('http')%0D%0A,%09
file
@@ -59,24 +59,22 @@
js')%0D%0A,%09
-NHLScore
+config
= requi
@@ -94,11 +94,14 @@
les/
-nhl
+config
.js'
@@ -110,15 +110,10 @@
%0A,%09N
-FLScore
+HL
= r
@@ -134,17 +134,17 @@
odules/n
-f
+h
l.js');%0D
@@ -160,256 +160,232 @@
ague
+s
=
-Object.c... |
1bfb89f49688dae66428f27632321f6dfb96d726 | test hotfix | app/js/user/index.js | app/js/user/index.js | module.exports = function(app) {
require('./controllers')(app);
require('./directives')(app);
};
| JavaScript | 0.000001 | @@ -63,39 +63,7 @@
p);%0A
- require('./directives')(app);%0A
%7D;%0A
|
c906b99e7cfa0cae75ebbf14e59576187315a3eb | Fix parser bugs reading disabled/checked, and also b="false" and foo="" type attributes (which should be obeyed not ignored). | form/TimeTextBox.js | form/TimeTextBox.js | dojo.provide("dijit.form.TimeTextBox");
dojo.require("dojo.date");
dojo.require("dojo.date.locale");
dojo.require("dojo.date.stamp");
dojo.require("dijit.form._TimePicker");
dojo.require("dijit.form.ValidationTextBox");
dojo.declare(
"dijit.form.TimeTextBox",
dijit.form.RangeBoundTextBox,
{
// summary:
// A v... | JavaScript | 0.000023 | @@ -601,10 +601,20 @@
ate(
-),
+%22%22),%09// NaN%0A
%0A%09%09_
|
9174b6ae37a8e7b0eae456ccc778adf516e2d42a | Update ByteCount after inserting | res/public/o.js | res/public/o.js | function genUni(){
var code = prompt("Generate Unicode Character:");
$('#code').val($('#code').val() + String.fromCharCode(parseInt(code)));
};
function getByteCount(s) {
var count = 0, stringLength = s.length;
s = String(s || "");
for(var i = 0; i < stringLength; i++){
var partCount = encodeURI... | JavaScript | 0 | @@ -141,16 +141,38 @@
de)));%0D%0A
+ updateByteCount();%0D%0A
%7D;%0D%0A%0D%0Afu
|
09e34298780290bace6b9a36747fdf57bb4ac479 | support tts | scripts/back.js | scripts/back.js | /**
* Copyright (C) 2015 yanni4night.com
* back.js
*
* changelog
* 2015-09-14[15:49:25]:revised
*
* @author yanni4night@gmail.com
* @version 0.1.0
* @since 0.1.0
*/
require(['./scripts/meetings'], function (Meetings) {
var MeetingsChecker = function () {
var started = false;
var inError ... | JavaScript | 0 | @@ -1386,20 +1386,16 @@
eckingin
-Size
= sched
@@ -1492,39 +1492,32 @@
%7D)
-.length
;%0A%0A
@@ -1626,22 +1626,53 @@
eckingin
-Size +
+.length +%0A
')'%0A
@@ -1729,20 +1729,23 @@
eckingin
-Size
+.length
) %7B%0A
@@ -1860,32 +1860,33 @@
... |
a24beb6e52f769a608c545976272d564b8c65905 | Update game.js | scripts/game.js | scripts/game.js | var text = document.getElementById('textArea');
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
function arrows() {
thingie = '<button onclick="up()">⇑</button><br>';
thingie += '<button onclick="left()">⇐</button> ';
thingie += '<... | JavaScript | 0.000001 | @@ -40,16 +40,74 @@
tArea');
+%0Avar sumbit = document.getElementById('submitButtonArea');
%0A%0A
|
ab2012a4791437a0c22b78dbbe3ae587d584bcb7 | Update game.js | scripts/game.js | scripts/game.js | var game= {
resources: {},
tick: function() {
for(var res in game.resources) {
game.resources[res].update();
}
}
};
game.tick.bind(game);
game.interval = window.setInterval(game.tick,100);
game.buttons = document.getElementById('buttons');
game.labels = document.getElementById('stats');
game.resource = fu... | JavaScript | 0.000001 | @@ -2926,16 +2926,76 @@
es.house
+.value*game.resources.human*vlaue*game.resources.human*value
)));%0A%7D);
|
2876057ba7b759c111971fdac8a17415038dc233 | bump version number | poly.js | poly.js | /**
* polyfill / shim plugin for AMD loaders
*
* (c) copyright 2011-2012 Brian Cavalier and John Hann
*
* poly is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
*/
define(['exports'], function (expor... | JavaScript | 0.000004 | @@ -344,17 +344,17 @@
= '0.2.
-2
+3
';%0A%0A%09exp
|
91a3e23125540bee2634be84878bd2237f02235c | Fix to the less-error-prone ++ | web/party/profile.js | web/party/profile.js | 'use strict';
app.controller('party/profile', [
'$scope', 'displayService', 'party', 'pageService','constantService',
function ($scope, display, party, page, constants) {
var getUsers = function(volumes){
var users = {};
users.sponsors = [];
users.labGroupMembers = [];
users.no... | JavaScript | 0.999995 | @@ -3353,21 +3353,18 @@
ength; i
- += 1
+++
)%7B%0A
@@ -3413,37 +3413,34 @@
l%5Bi%5D.v.length; j
- += 1
+++
)%7B%0A for
@@ -3494,21 +3494,18 @@
ccess; k
- += 1
+++
)%7B%0A
@@ -3830,37 +3830,34 @@
r%5Bi%5D.v.length; j
- += 1
+++
)%7B%0A for
@@ -3912,37 +3912,34 @@
access.length; k
- ... |
4b5c27a2ff971486fca6decb6ede1bf3f4f8868c | Fix bug | scripts/main.js | scripts/main.js | var percentRef = new Firebase('https://indoor-proto.firebaseio.com/percent');
percentRef.on('value', function(snapshot) {
onData(snapshot.val());
});
var ROOMS = {
'TB109': {
location: [1824, 1792],
distance: 50,
zoom: 0.15,
pan: [-371, -231],
route: 'M3576,1704 L3372,... | JavaScript | 0.000001 | @@ -519,20 +519,16 @@
'%0A %7D,
-
%0A 'TC
@@ -3997,16 +3997,20 @@
S.length
+ - 1
) %7B%0A
|
55887a887b188da7ee90123c65f1295559e03fa7 | Update main.js | scripts/main.js | scripts/main.js | $(document).ready(function(){
// ---------- vars ----------
var imgsDir = "imgs/";
var extSlideshow = document.getElementById('extSlideshow');
// ---------- functions ----------
function createSlides(slides, slidesEl) {
// populate slides & thumbnails
var tempStr = "";
for (var i = 0; i < sl... | JavaScript | 0.000001 | @@ -2224,56 +2224,60 @@
http
-s
://
-raw.github.com/username/repo/master/src/file
+freginold.github.io/fontSwitcher/fontSwitcher.min
.js%22
|
0cf33bd0a824f1f6be676956adf5d3f004953e4f | Fix race condition between FB.child_added and createRecord | web/static/js/app.js | web/static/js/app.js | window.App = Ember.Application.create({});
App.Router.map(function(){
this.resource('insight', { path: ':insight_id' }, function(){
this.route('chart');
this.route('describe');
this.route('comment');
});
this.resource('queries', { path: '/query' }, function(){
this.route('new');
this.resour... | JavaScript | 0.000004 | @@ -715,16 +715,17 @@
com/%22,%0A%0A
+%0A
emptyP
@@ -991,24 +991,46 @@
tion(type)%7B%0A
+ console.log(type)%0A
return n
@@ -1443,30 +1443,28 @@
);%0A
-record
+data
.id = childR
@@ -1478,29 +1478,81 @@
();%0A
+
%0A
-resolve(record
+console.log(%22adding%22, type.typeKey, data)%0A ... |
c4155a6c8032eb398f818d3b987a3af8cc41dd13 | Update amazon.js | web.to.plex/scripts/amazon.js | web.to.plex/scripts/amazon.js | // Web to Plex - Toloka Plugin
// Aurthor(s) - @ephellon (2019)
/* Minimal Required Layout *
script {
url: string,
init: function => ({ type:string, title:string, year:number|null|undefined })
}
*/
alert('Running amazon.js [GitHub]');
// REQUIRED [script:object]: The script object
let script = {
// ... | JavaScript | 0.000003 | @@ -210,46 +210,8 @@
*/%0A%0A
-alert('Running amazon.js %5BGitHub%5D');%0A%0A
// R
|
9be344a18fb6e17e17e32406f693be36553e0367 | Refactor statements to function call | web/js/coordinator-console.js | web/js/coordinator-console.js | /**
* Created by nkmathew on 05/07/2016.
*/
var source = $("#email-list-template").html();
function addEmailToList() {
var inputboxVal = $('#email-input-box').val();
if (inputboxVal.trim() == '') {
$('#email-input-box').focus();
return;
}
var email = inputboxVal + '@st... | JavaScript | 0.000001 | @@ -1477,33 +1477,20 @@
-$('.
alert
--box .msg').html
+Success
('Si
@@ -1525,253 +1525,8 @@
');%0D
-%0A $('.alert-box').addClass('alert-success');%0D%0A $('.alert-box').show();%0D%0A $(%22#alert-box%22).fadeTo(3000, 500).slideUp(500, function () %7B%0D%0A ... |
8798e672394dd089aef892c9787a0bb31e23fe3d | 修正亂鬥營利紀錄插入時的 data | server/arena.js | server/arena.js | 'use strict';
import { _ } from 'meteor/underscore';
import { dbArena } from '/db/dbArena';
import { dbArenaFighters, MAX_MANNER_SIZE, getAttributeNumber } from '/db/dbArenaFighters';
import { dbArenaLog } from '/db/dbArenaLog';
import { dbCompanies } from '/db/dbCompanies';
import { dbLog } from '/db/dbLog';
import { ... | JavaScript | 0 | @@ -4606,22 +4606,24 @@
-amount:
+data: %7B
profit
+ %7D
%0A
|
3b67c7067aca6d7b1f1e6a8e6020a809402aa7ef | Change To Port: Heroku Fix | server/index.js | server/index.js | const express = require('express')
const bodyParser = require('body-parser');
const path = require('path');
const { User, Template, Activity, History } = require('../db/mongoose-schemas.js')
const app = express();
const logger = require('morgan');
const PORT = 3000;
app.use(logger('dev'));
app.use(bodyParser.json());
... | JavaScript | 0.000002 | @@ -245,25 +245,83 @@
');%0A
-const
+%0A%0Aapp.set('port', (process.env.
PORT
-=
+%7C%7C
3000
+));%0Aconst PORT = app.get('port')
;%0A%0Aa
@@ -2127,20 +2127,30 @@
og(%60
-connected to
+Node app is running on
htt
|
5b98988df71ddbe4b25de7511ea942101d5b0e3b | Fix index.js | server/index.js | server/index.js | const Express = require('express');
const Path = require('path');
const Server = Express();
// handle some redirections
var redirect_map = require('./redirect-map.json');
Server.locals.redirect_map = redirect_map;
for (var key in redirect_map) {
Server.get(key, (req, res) => {
res.redirect(301... | JavaScript | 0.001282 | @@ -871,16 +871,17 @@
%60);%0A%7D;%0A%0A
+%0A
/**%0A * S
@@ -988,89 +988,8 @@
)%0A%0A
-%09// Let's make sure we had the password passed in%0A%09.get( '*', AddFakePassword )%0A%0A
%09//
|
79590afd5227421a5f9471a1b33aa2cab64227cd | Update server to run on port 3000 | server/index.js | server/index.js | const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'build')));
app.get('/', function (req, res) {
res.sendFile(path.join(__dirname, '..', 'build', 'index.html'));
});
app.listen(80);
console.log('Listening to port 80');
| JavaScript | 0 | @@ -87,31 +87,28 @@
);%0A%0A
-app.use(express.static(
+const buildFolder =
path
@@ -123,16 +123,22 @@
dirname,
+ '..',
'build'
@@ -138,16 +138,53 @@
'build')
+;%0A%0Aapp.use(express.static(buildFolder
));%0A%0Aapp
@@ -244,32 +244,19 @@
oin(
-__dirname, '..', 'build'
+buildFolder
, 'i
@@ -285,17 +285,19 @@
.l... |
fc647c79538f83f446a874108db63bc6582a62b7 | add file.pizza | server/index.js | server/index.js | var compress = require('compression')
var cors = require('cors')
var debug = require('debug')('instant')
var downgrade = require('downgrade')
var express = require('express')
var fs = require('fs')
var http = require('http')
var https = require('https')
var jade = require('jade')
var parallel = require('run-parallel')
... | JavaScript | 0.000003 | @@ -633,16 +633,63 @@
rent.io'
+,%0A 'http://file.pizza',%0A 'https://file.pizza'
%0A%5D%0A%0Avar
|
a059fa5a67e26ca0805c4e5402bdc7eef4eb251c | remove extension 404 middleware | server/start.js | server/start.js | 'use strict'
const path = require('path')
const express = require('express')
const bodyParser = require('body-parser')
const {resolve} = require('path')
const passport = require('passport')
const PrettyError = require('pretty-error')
const finalHandler = require('finalhandler')
// PrettyError docs: https://www.npmjs.c... | JavaScript | 0.000001 | @@ -1819,16 +1819,19 @@
))%0A%0A //
+ //
any req
@@ -1887,16 +1887,19 @@
to 404%0A
+ //
.use((r
@@ -1920,18 +1920,21 @@
=%3E %7B%0A
+//
+
if (path
@@ -1959,24 +1959,27 @@
.length) %7B%0A
+ //
const e
@@ -2007,16 +2007,19 @@
ound')%0A
+ //
err
@@ -2033,16 +2033,19 @@
= 404%0A
+ //
... |
266d9b39ee5ba3441518335daf4733ca0c2d2827 | Update store signature on server | server/store.js | server/store.js | var fs = require('fs'),
miso = require('../server/miso.util.js');
// Simulated store
// TODO: This should interact with the API once we have it.
module.exports = function(scope) {
// Add a binding object, so we can block till ready
scope._misoReadyBinding = miso.readyBinderFactory();
return {
load: function(typ... | JavaScript | 0.000001 | @@ -622,23 +622,73 @@
n(type,
-args)
+model)%7B%0A%09%09%09var v = model.isValid();%0A%09%09%09if(v === true)
%7B%0A
+%09
%09%09%09conso
@@ -712,14 +712,69 @@
pe,
-args);
+model);%0A%09%09%09%7D else %7B%0A%09%09%09%09console.log('Model invalid', v);%0A%09%09%09%7D
%0A%09%09%7D
|
76684d270f48dfef92304d0d5a1c0924105411d3 | add reviews subroute to users router | server/users.js | server/users.js | 'use strict'
const db = require('APP/db')
const User = db.model('users')
const {mustBeLoggedIn, forbidden} = require('./auth.filters')
module.exports = require('express').Router()
.get('/',
// The forbidden middleware will fail *all* requests to list users.
// Remove it if you want to allow anyone to list ... | JavaScript | 0 | @@ -66,16 +66,62 @@
'users')
+%0Aconst reviews = require('APP/server/reviews')
%0A%0Aconst
@@ -1644,70 +1644,137 @@
t))%0A
-%0A// put created to update user%0A// delete created to destroy user%0A
+ .use('/:id/reviews', (req, res, next) =%3E %7B%0A req.queryIdString = 'user'%0A req.queryId = req.params.id%0A ... |
bf22d763df75200e31b77c655f190e4f0cdb5dc1 | Update sidebars.js (#602) | website/sidebars.js | website/sidebars.js | module.exports = {
Sidebar: [
"getting_started",
{
type: "category",
label: "Guides",
collapsed: false,
items: [
"cookbooks/testing",
//"cookbooks/refresh",
],
},
{
type: "category",
label: "Concepts",
items: [
"concepts/providers... | JavaScript | 0 | @@ -2359,32 +2359,229 @@
type: %22link%22,%0A
+ label: %22Firebase Phone Authentication with Riverpod%22,%0A href: %22https://github.com/julienlebren/flutter_firebase_phone_auth_riverpod%22,%0A %7D,%0A %7B%0A type: %22link%22,%0A
label:
|
2c3ea015bfad934560a2abdaa4a637a53b37794c | Address sources of update leaks in event daemon | websocket/daemon.js | websocket/daemon.js | var config = require('./config');
var set = require('simplesets').Set;
var queue = require('qu');
var WebSocketServer = require('ws').Server;
var wss_receiver = new WebSocketServer({host: config.get_host, port: config.get_port});
var wss_sender = new WebSocketServer({host: config.post_host, port: config.post_port});
va... | JavaScript | 0 | @@ -4907,24 +4907,25 @@
turn;%0A %7D%0A
+%0A
var chan
@@ -4964,24 +4964,198 @@
split('%7C');%0A
+ if (channels.length == 1 && !channels%5B0%5D.length) %7B%0A res.writeHead(400, %7B'Content-Type': 'text/plain'%7D);%0A res.end('400 Bad Request');%0A return;%0A %7D%0A%0A
req.chan
... |
aa8a3518ab36054d2666688d12850e290628f454 | Fix confirm buttons display | ui/src/admin/components/UsersTable.js | ui/src/admin/components/UsersTable.js | import React, {PropTypes} from 'react'
import UserRow from 'src/admin/components/UserRow'
import EmptyRow from 'src/admin/components/EmptyRow'
import FilterBar from 'src/admin/components/FilterBar'
const UsersTable = ({users, hasRoles, isEditingUsers, onClickCreate, onEdit, onSave, onCancel, onDelete, onFilter}) => (... | JavaScript | 0.000001 | @@ -817,11 +817,9 @@
ter(
-(u)
+u
=%3E
@@ -837,17 +837,12 @@
map(
-(
user
-, i)
=%3E%0A
@@ -889,17 +889,31 @@
key=%7B
-i
+user.links.self
%7D%0A
|
eb6bc748838fa14ccfc05ba7ab162a5182cd8446 | Fix resize animation height caluculation to work in Safari. | www/javascript/swat-disclosure.js | www/javascript/swat-disclosure.js | function SwatDisclosure(id)
{
this.image = document.getElementById(id + '_img');
this.input = document.getElementById(id + '_input');
this.div = document.getElementById(id);
this.animate_div = this.div.firstChild.nextSibling.firstChild;
// prevent closing during opening animation and vice versa
this.semaphore = ... | JavaScript | 0 | @@ -2236,16 +2236,121 @@
height%0A
+%09this.animate_div.parentNode.style.overflow = 'hidden';%0A%09this.animate_div.parentNode.style.height = '0';%0A
%09this.an
@@ -2380,32 +2380,32 @@
ity = 'hidden';%0A
-
%09this.animate_di
@@ -2480,55 +2480,8 @@
k';%0A
-%09this.animate_div.style.position = 'absolute';%0A
%09th... |
b9eeba80f524039c436990c2573083da39807fed | add background gray to global file | src/components/organisms/FileMostRecent/index.js | src/components/organisms/FileMostRecent/index.js | import React, {PropTypes} from 'react';
import styled from 'styled-components';
import {palette} from 'styled-theme';
import Divider from 'material-ui/Divider';
import Paper from 'material-ui/Paper';
import {Grid, Row, Col} from 'react-flexbox-grid';
import Copyright from 'material-ui/svg-icons/action/copyright';
impor... | JavaScript | 0 | @@ -564,16 +564,56 @@
kground:
+ rgba(242,242,242,0.93);%0A /*background:
$%7Bpalet
@@ -631,16 +631,18 @@
le',0)%7D;
+*/
%0A heigh
@@ -748,32 +748,91 @@
1;%0A box-shadow:
+ 0 -22px 180px 80px rgba(242,242,242,0.93);%0A /*box-shadow:
0 -22px 180px 8
@@ -861,16 +861,18 @@
le',0)%7D;
+*/
%0A%7D%0A%0A mar
|
a964141d4059d06bb635efd642bb47e119cd3e24 | Add check before calculating labelStyle/labelProps | src/components/victory-scatter/helper-methods.js | src/components/victory-scatter/helper-methods.js | import { values, pick, omit, defaults } from "lodash";
import { Helpers, Events } from "victory-core";
import Scale from "../../helpers/scale";
import Domain from "../../helpers/domain";
import Data from "../../helpers/data";
export default {
getBaseProps(props, fallbackProps) {
props = Helpers.modifyProps(props... | JavaScript | 0 | @@ -271,24 +271,62 @@
backProps) %7B
+ // eslint-disable-line max-statements
%0A props =
@@ -1135,24 +1135,62 @@
um, index);%0A
+ if (!text && !props.events) %7B%0A
const
@@ -1255,24 +1255,26 @@
%7C %7B%7D;%0A
+
+
const labelP
@@ -1286,24 +1286,26 @@
= %7B%0A
+
style: label
@@... |
f062a7e0868ec8918767e32978a83c81c45a0c04 | Add a 10s timeout to reachable-url | resolve/urls.js | resolve/urls.js | #!/usr/bin/env node
'use strict';
var stdin = process.openStdin();
var async = require('async');
var reachableUrl = require('reachable-url')
if (require.main === module) {
main();
} else {
module.exports = resolveUrls;
}
function main() {
stdin.setEncoding('utf8');
stdin.on('data', function(err, da... | JavaScript | 0.000014 | @@ -719,16 +719,36 @@
rl(d.url
+, %7B timeout: 10000 %7D
).then((
|
bc1c878037f8b5d823a3c7b28d1bc5139dca5c4a | fix typo | server/lib/points_usdan.js | server/lib/points_usdan.js | //points of usdan, schwartz, brown, perlman
points_usdan = [
{
"id": "schwartz_c01",
"coordinate":new Point(42.367527, -71.257568),
"type": "crossing",
},
// buildings behind usdan
{
"id":"schwartz_e01",
"coordinate":new Point(42.367605, -71.257126),
"type":"entrance"
},
{
"id":... | JavaScript | 0.999991 | @@ -2027,17 +2027,16 @@
ance%22%0A%09%7D
-,
%0A%5D%0Afunct
|
fd8c2ab9d04cc7530609ca9e0cc9dafd5d184010 | Add "cardsInList" helper | tpl/src/helpers/eachCardInList.js | tpl/src/helpers/eachCardInList.js |
'use strict';
module.exports = function() {
// silence is golden
};
| JavaScript | 0.000001 | @@ -39,34 +39,362 @@
ion(
-) %7B%0A // silence is golden
+listId, options) %7B%0A var ret = ''%0A , listIdNameMap = %7B%7D;%0A%0A (this.allLists %7C%7C %5B%5D).forEach(function(l) %7B%0A listIdNameMap%5Bl.id%5D = l.name;%0A %7D);%0A%0A (this.allCards %7C%7C %5B%5D)%0A .filter(function(c) %7B%0A retu... |
ca64b6f321be38ac05c2fdc2eab3dded7f50a9af | Add a bit of usability | web/source/javascripts/all.js | web/source/javascripts/all.js | //= require lodash
//= require victor
//= require d3
//= require jquery
//= require angular
//= require_tree .
$(function () {
var width = 400,
height = width/2,
radius = width/2,
duration = 750
var arc = d3.svg.arc()
.outerRadius(radius - 10)
.innerRadius(100);
var pie = d3.layo... | JavaScript | 0.000371 | @@ -2429,16 +2429,121 @@
g(text)%0A
+ if (!/%5Ehttp/.test(text)) text = 'http://'+text;%0A d3.select('#url_query').node().value = text;%0A
d3
|
9fb8addb7cd04029d8a203640890e66475584e39 | move click action handling into dedicated function | prismatic.js | prismatic.js | var INTERVAL_MS_CHECK_CURRRENT_TIME = 10;
var MARGIN_S_CHECK_MOVE_ACTION = (INTERVAL_MS_CHECK_CURRRENT_TIME / 1000) * 2;
/**
* Base object, with option init
*/
var Prismatic = function (options) {
this.registeredAction = {
'move': [],
'click': [],
};
if (!options) {
options = {};
}
this.vid... | JavaScript | 0 | @@ -1450,24 +1450,1040 @@
T_TIME);%0A%7D%0A%0A
+/**%0A * Handle each %22click%22 action%0A */%0APrismatic.prototype.handleClickAction = function (data, player) %7B%0A var prismatic = this;%0A var videoCanva = $('.' + prismatic.videoClass);%0A videoCanva.click(function (e) %7B%0A $.each(prismatic.registeredAction... |
5d364e35a57378aefe860e088206ac7486bf3d08 | Fix missing directory | Jakefile.js | Jakefile.js | var fs = require('fs'),
jasmine = require('jasmine-node'),
browserify = require('browserify');
desc('Runs the tests against node.');
task('testNode', {async: true}, function () {
console.log("Testing Node.js integration");
jasmine.executeSpecsInFolder({
specFolders: ['tests/specs'],
onC... | JavaScript | 0.000039 | @@ -643,24 +643,44 @@
%7D);%0A%7D);%0A%0A
+directory(%22dist%22);%0A%0A
desc('Builds
@@ -718,16 +718,26 @@
rowser',
+ %5B'dist'%5D,
functio
|
d74d68541b2073855f8c2404373aba1dde1d3d3c | Set attachTo.setImmediate only once, for better minification. | setImmediate.js | setImmediate.js | (function (global, undefined) {
"use strict";
if (global.setImmediate) {
return;
}
var nextHandle = 1; // Spec says greater than zero
var tasksByHandle = {};
var currentlyRunningATask = false;
var doc = global.document;
function addFromSetImmediateArguments(args) {
var... | JavaScript | 0 | @@ -250,16 +250,38 @@
ocument;
+%0A var setImmediate;
%0A%0A fu
@@ -2548,33 +2548,24 @@
0.9%0A
-attachTo.
setImmediate
@@ -3739,33 +3739,24 @@
ers%0A
-attachTo.
setImmediate
@@ -4214,33 +4214,24 @@
%7D;%0A%0A
-attachTo.
setImmediate
@@ -4541,33 +4541,24 @@
nt;%0A
-attachTo... |
4fcb2e1b65c9ec5aa84107b01a208dfd77e88d4d | fix typo | Keyboard.js | Keyboard.js | define(["dojo/_base/lang", "dojo/_base/event", "dcl/dcl", "dojo/on", "dojo/keys", "dojo/dom-attr",
"./_utils", "dui/_FocusMixin"],
function (lang, event, dcl, on, keys, domAttr, utils, _FocusMixin) {
return dcl(_FocusMixin, {
// summary:
// Specializes TreeMap to support keyboard navigation and accessibility.
... | JavaScript | 0.999991 | @@ -2048,16 +2048,18 @@
nI.index
+Of
(selecte
|
e9d53274d7764b22924a8779d77d17637c21f257 | Add storage space stubs | source/datasources/TextDatasource.js | source/datasources/TextDatasource.js | const EventEmitter = require("events");
const hash = require("hash.js");
const Credentials = require("../credentials/Credentials.js");
const { credentialsAllowsPurpose } = require("../credentials/channel.js");
const { detectFormat, getDefaultFormat } = require("../io/formatRouter.js");
const { fireInstantiationHandlers... | JavaScript | 0.000001 | @@ -2926,32 +2926,532 @@
rted%22));%0A %7D%0A%0A
+ /**%0A * Get the available storage space, in bytes%0A * @returns %7BNumber%7Cnull%7D Bytes of free space, or null if not%0A * available%0A * @memberof TextDatasource%0A */%0A getAvailableStorage() %7B%0A return Promise.resolve(null... |
e730fbcbea887ddef8dc6f6be9ee97559dc8f9ea | Fix _decodePayload() | src/deep-resource/lib/Resource/LambdaResponse.js | src/deep-resource/lib/Resource/LambdaResponse.js | /**
* Created by AlexanderC on 6/10/15.
*/
'use strict';
import {Response} from './Response';
import {ValidationError} from './Exception/ValidationError';
/**
* Response object
*/
export class LambdaResponse extends Response {
/**
* @param {*} args
*/
constructor(...args) {
super(...args);
thi... | JavaScript | 0.000013 | @@ -2802,24 +2802,42 @@
codedPayload
+ && decodedPayload
.hasOwnPrope
|
67f28d5eff3ef16bfc524b3588adb9cdf9358c06 | Allow for pinning columns to the left hand side of the table. | src/main/webapp/resources/js/pages/projects/linelist/reducers/fields.js | src/main/webapp/resources/js/pages/projects/linelist/reducers/fields.js | import { List, fromJS } from "immutable";
/*
Special handler for formatting the sample Name Column;
*/
const sampleNameColumn = {
sort: "asc",
pinned: "left",
cellRenderer: "SampleNameRenderer",
checkboxSelection: true,
headerCheckboxSelection: true,
headerCheckboxSelectionFilteredOnly: true,
editable: ... | JavaScript | 0 | @@ -6,20 +6,20 @@
t %7B
-List,
fromJS
+, List
%7D f
@@ -318,16 +318,36 @@
e: false
+,%0A lockPinned: true
%0A%7D;%0A%0A/**
@@ -564,30 +564,8 @@
el,%0A
- lockPinned: true,%0A
|
4958040fc01a6754616bcf5f083a14cea248cab5 | add index to support distinct operation | serverbuild/mongo_setup.js | serverbuild/mongo_setup.js | db.triangles.createIndex( { valid_date : 1, valid_time : 1, parameter_name : 1, triangle : "2dsphere" } );
db.triangles.createIndex( { valid_date : 1, valid_time : 1, parameter_name : 1 } );
db.hourlydata.createIndex( { measurement_key: 1, valid_date : 1, valid_time : 1 } );
db.hourlydata.createIndex( { valid_date ... | JavaScript | 0 | @@ -347,20 +347,75 @@
eter_name : 1 %7D );%0D%0A
+db.hourlydata.createIndex( %7B measurement_key : 1 %7D );%0D%0A
|
1c213d57d1783e6edee5a12d725d9368d49c4509 | version bump | web/webpack/webpack.common.js | web/webpack/webpack.common.js | const SPECMATE_VERSION = '0.2.5'
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const GitRevisionPlugin = require('git-revision-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const helpers = require('./helpers');
const gitRevisionPlugin = ne... | JavaScript | 0.000001 | @@ -23,17 +23,17 @@
= '0.2.
-5
+6
'%0A%0Aconst
|
ca5e680eba942868c00ccf8e7b34c7dc3cf56364 | make myself crazy with this path thing | routes/hello.js | routes/hello.js | var DtoProvider = require('../dto/DtoProvider').DtoProvider;
var helloProvider= new DtoProvider('localhost', 27017, 'asok');
helloProvider.setCollectionName('greetings');
var basePath = '/backend/hello';
var random_json = function(req, res) {
helloProvider.findAll(function(error, items){
var rand = items[Math.... | JavaScript | 0 | @@ -190,17 +190,37 @@
/backend
-/
+';%0Avar moduleName = '
hello';%0A
@@ -1358,32 +1358,51 @@
irect(basePath +
+ '/' + moduleName +
'/')%0A %7D);%0A
@@ -1728,32 +1728,51 @@
irect(basePath +
+ '/' + moduleName +
'/')%0A %7D);%0A%0A%7D;%0A
@@ -1948,24 +1948,43 @@
t(basePath +
+ '/' + moduleName +
'/')%0A... |
6cc1258cd5c0f50ab25718df9fae4357a613a8bd | Clean up console log | routes/icons.js | routes/icons.js | module.exports = function(app, security) {
var api = require('../api')
, access = require('../access')
, fs = require('fs-extra')
, archiver = require('archiver');
var p***REMOVED***port = security.authentication.p***REMOVED***port
, authenticationStrategy = security.authentication.authenticationSt... | JavaScript | 0.000001 | @@ -1245,56 +1245,8 @@
);%0A%0A
- console.log('getting image', iconPath);%0A
|
75045566c00673bb6377cd8f386acf0510d61f62 | use auth config | routes/index.js | routes/index.js | exports.main = function (req, res) {
// return res.render('manager', {
// roles: req.session.roles
// });
if (req.session.roles && req.session.roles.length) {
return res.render('manager', {
roles: req.session.roles
});
}
return res.render('main', {
roles: req.session.roles
});
};
ex... | JavaScript | 0.000001 | @@ -1,16 +1,66 @@
+var authConfig = require('../config/auth.json');%0A%0A
exports.main = f
@@ -699,42 +699,26 @@
ect(
-'https://liud-dev.nscl.msu.edu/cas
+authConfig.cas + '
/log
|
a5827135765aa90c8df492d26c3652b394176b5b | update getClientAddress | routes/index.js | routes/index.js | import express from 'express'
const router = express.Router()
const { ROOT_PATH } = require('../config.js')
import { scrapePrice } from '../scraper.js'
/* GET home page. */
router.get('/', async function(req, res) {
res.render('index', {
title: 'Care Force Lumber Calculator',
description: 'Optimize... | JavaScript | 0.000001 | @@ -482,16 +482,44 @@
return (
+req.headers%5B'forwarded'%5D %7C%7C
req.head
@@ -730,16 +730,59 @@
(price)%0A
+ const clientIp = getClientAddress(req)%0A
cons
@@ -839,13 +839,15 @@
l),
-req.i
+clientI
p)%0A
@@ -879,31 +879,8 @@
ntIp
-: getClientAddress(req)
%7D)%0A
|
776b144cb073695005a794ba419194aec4ca6ff6 | add login + register routes | routes/index.js | routes/index.js | //Home page
exports.addRoutes = function(app) {
app.get('/', function(req, res){
res.render('index', { body: 'This is LetsGit' });
});
}; | JavaScript | 0.000001 | @@ -136,6 +136,247 @@
%7D);%0A
+%09app.get('/login', function(req, res)%7B%0A res.render('login', %7B body: 'This is LetsGit' %7D);%0A %7D);%0A%09app.get('/register', function(req, res)%7B%0A res.render('register', %7B body: 'This is LetsGit' %7D);%0A %7D);%0A
%7D;
+%0A
|
9db0ebd95b97cecc1d01e336d2f82769faacdcb6 | Update index.js | routes/index.js | routes/index.js | var express = require('express');
var fs = require('file-system');
var router = express.Router();
var mongo = require('mongodb');
var monk = require('monk');
var db = monk('mongodb://akshaykumargowdar:h4SY8SfdQFcd11VL@mycluster-shard-00-00-rplbd.mongodb.net:27017,mycluster-shard-00-01-rplbd.mongodb.net:27017,mycluste... | JavaScript | 0.000002 | @@ -561,17 +561,16 @@
5000 %7D )
-;
%0A%0A%0Avar T
|
eae31acd546beaca7bd8ddeaf0ee4042c7f9ca7a | Update PUT / | routes/index.js | routes/index.js | 'use strict'
// Packages dependencies
const express = require('express')
const router = express.Router()
const jwt = require('jsonwebtoken')
// Exports
module.exports = function (UsersApiPackage, app, config, db, auth) {
// Get pages
router.get('/', (req, res, next) => {
const lang = req.query.lang || 'en'
... | JavaScript | 0 | @@ -2439,24 +2439,28 @@
page.toJSON(
+lang
))%0A %7D)%0A
|
2963dba7c017342393a99b51cbdd23347437d956 | Update index.js | routes/index.js | routes/index.js | var express = require('express'),
R = require('ramda'),
Promise = require('bluebird'),
router = express.Router(),
Bluemix = require('../lib/bluemix');
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', {
title: 'Bluemix Status Demo',
});
});
router.get('/api/bluemix/or... | JavaScript | 0.000002 | @@ -272,16 +272,22 @@
tus Demo
+ again
',%0A %7D);
|
473c382c5c7d4d63a88fb88d19ceaf0b9ca6ae2d | add relevant response when GETing the api home resource | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
module.exports = router;
| JavaScript | 0 | @@ -133,44 +133,59 @@
res.
-render('index', %7B title: 'Express' %7D
+send('API Backend supporting Codingpedia Bookmarks'
);%0A%7D
|
0526ef083c8f13cceefa6637f9cb0df8f9f423a1 | Add retries to download-archive | shared/download-archive.js | shared/download-archive.js | 'use strict';
const Promise = require('bluebird');
const request = require('request-promise');
Promise.promisifyAll(request);
module.exports = function(url) {
return request({ uri: url, encoding: null });
};
| JavaScript | 0 | @@ -8,16 +8,84 @@
rict';%0A%0A
+const log = require('util').log;%0Aconst f = require('util').format;%0A%0A
const Pr
@@ -113,16 +113,16 @@
bird');%0A
-
const re
@@ -231,51 +231,382 @@
-return request(%7B uri: url, encoding: null %7D
+// httpredir.debian.org is fairly unreliable, so we retry 5 times.%0A retu... |
1a0da8df19efaa3c8be7cc2b14511611d3004902 | Update index.js | routes/index.js | routes/index.js | var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Got Milk?', pun: randomPun() });
});
function randomPun() {
var puns = [
'Leaves you wanting mooo-re!',
'Udderly amazing!',
// 'Vitamins, you ... | JavaScript | 0.000002 | @@ -582,16 +582,37 @@
stuff',%0A
+ 'Cow-dy partner'%0A
%5D;%0A%0A
|
7c0ba1c4771addd1de758fd90ecaf8c7876199ec | change sence | routes/photo.js | routes/photo.js | var express = require('express');
var router = express.Router();
var request = require('superagent');
var db = require('../utils/dbUtils');
var config = require('../configs/config');
const CDN = 'https://static1.ioliu.cn/';
/* GET photo listing. */
router.get('/:photo', function(req, res, next) {
var forc... | JavaScript | 0.000004 | @@ -2036,16 +2036,19 @@
+ //
.set(%7B%0D
@@ -2063,24 +2063,27 @@
+ //
'User-A
@@ -2109,24 +2109,27 @@
+ //
referer
@@ -2175,18 +2175,43 @@
-%7D)
+// %7D)%0D%0A
.pipe(re
|
83dad88ad3646edbfd9274ec3d02ca91e930367b | Fix debug reporting of warning/errors | nodes/core/core/58-debug.js | nodes/core/core/58-debug.js | /**
* Copyright 2013 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | JavaScript | 0.000117 | @@ -4437,14 +4437,20 @@
===
-%22warn%22
+RED.log.WARN
%7C%7C
@@ -4467,15 +4467,21 @@
===
-%22error%22
+RED.log.ERROR
) %7B%0A
|
af77dd4b12042e138edba5dfc2fe0b303939a849 | set 'staleOk' config to false to avoid false data from the registry hits | plugin/registry.js | plugin/registry.js | var _ = require('underscore'),
npm = require('npm'),
Registry = require('npm-registry-client'),
npmconf = require('npmconf'),
path = require('path'),
config = require('./config'),
options,
client,
connectionConfig = {
timeout: 1000,
staleOk: true
};
function initLocalNPM() {
npm.load({
loaded: false
... | JavaScript | 0 | @@ -251,11 +251,12 @@
Ok:
-tru
+fals
e%0A%09%7D
|
18c5f36f4807515c5f16fb3c327e1aef44ac4dd1 | use cloneDeep so data isn't polluted and spec is deterministic | tutor/specs/models/course.spec.js | tutor/specs/models/course.spec.js | import { map, clone, shuffle } from 'lodash';
import Courses from '../../src/models/courses-map';
import Course from '../../src/models/course';
import PH from '../../src/helpers/period';
import { autorun } from 'mobx';
import { bootstrapCoursesList } from '../courses-test-data';
import COURSE from '../../api/courses/... | JavaScript | 0 | @@ -12,16 +12,20 @@
p, clone
+Deep
, shuffl
@@ -3616,16 +3616,20 @@
= clone
+Deep
(COURSE)
|
6503932c942f03cd24d46ab91614dd01f561d905 | Update loading.js | public/app/directives/loading.js | public/app/directives/loading.js | app.directive('loading', ['$http' ,function ($http)
{
return {
restrict: 'A',
template: '<div class="loading-spiner"><img src="img/loading.gif" /> </div>',
link: function (scope, elm, attrs){
scope.isLoading = function () {
return $http.pendin... | JavaScript | 0.000001 | @@ -499,22 +499,27 @@
-elm%5B0%5D
+jQuery(elm)
.show();
@@ -572,14 +572,19 @@
-elm%5B0%5D
+jQuery(elm)
.hid
|
cb557eda9e55ca56304089c519e4f96b72fb23f4 | support streams comming with _publish as well as _all | dvr-ws/routes/index.js | dvr-ws/routes/index.js | var express = require('express');
var router = express.Router();
var config = require('../../common/Configuration');
var logger = require('../logger/logger');
var qio = require('q-io/fs');
var path = require('path')
var persistenceFormat = require('../../common/PersistenceFormat');
var request = require('request');
var... | JavaScript | 0 | @@ -631,19 +631,31 @@
%5E%5C%5C/%5D*)_
-all
+(?:all%7Cpublish)
%5C.smil%5C/
|
0d0e5bfe429c3b6cb79c977dbec15ff3ce18bea2 | Fix tabs shown on reload | front_end/console_counters/WarningErrorCounter.js | front_end/console_counters/WarningErrorCounter.js | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as BrowserSDK from '../browser_sdk/browser_sdk.js';
import * as Common from '../common/common.js';
import * as Host from '../host/host.js';
impor... | JavaScript | 0.000137 | @@ -5140,24 +5140,103 @@
iolations);%0A
+ const violationsEnabled = Root.Runtime.experiments.isEnabled('spotlight');%0A
this._to
@@ -5281,16 +5281,17 @@
ings %7C%7C
+(
violatio
@@ -5292,16 +5292,48 @@
olations
+Enabled && violations) %7C%7C issues
));%0A%0A
@@ -5795,55 +5795,25 @@
if (
-Root.Runtime.e... |
6c732deb9eb0d04b7d95787f762fc563c4d97a92 | Fix spacing (#464) | frontend/src/components/profile/country-picker.js | frontend/src/components/profile/country-picker.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import {
withStyles,
Button,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
Typography
} from '@material-ui/core'
const countryCodes = [
{ country: 'Australia', code: 'AU', image: 'australia' },
{ co... | JavaScript | 0.000068 | @@ -3098,16 +3098,18 @@
+
Please c
|
13c7c003f36142547f86f15e3435fda46afe5e65 | update keg after pour | RightpointLabs.Pourcast.Web/Scripts/app/model/keg.js | RightpointLabs.Pourcast.Web/Scripts/app/model/keg.js | define(['jquery', 'ko', 'app/events'], function($, ko, events) {
function Keg(kegJSON, beer) {
var self = this;
self.id = ko.observable(kegJSON.Id);
self.percentRemaining = ko.observable(Math.floor(kegJSON.PercentRemaining * 100));
self.isEmpty = ko.observable(kegJSON.IsEmpty);
... | JavaScript | 0 | @@ -923,118 +923,106 @@
d%22,
-self.pourStarted);%0A events.on(%22PourStopped%22, self.pourStopp
+function(e) %7B%0A console.log(%22PourStart
ed
+%22
);%0A
+
-%7D;%0A%0A Keg.prototype.pourStarted =
+ %7D);%0A events.on(%22PourStopped%22,
fun
@@ -1024,32 +1024,36 @@
, function(e... |
c7ca01989eb3d78d9db0db8db0d5b571f8383ed9 | fix not found | client-raspberry/core/js/controller/signin.js | client-raspberry/core/js/controller/signin.js | var controller = angular.module('myLazyClock.controller.signin', []);
controller.controller('myLazyClock.controller.signin', ['$scope', '$localStorage', '$interval', '$state', 'GApi',
function signinCtl($scope, $localStorage, $interval, $state, GApi) {
var interval;
var interval2;
var chec... | JavaScript | 0.000006 | @@ -663,32 +663,82 @@
unction(resp) %7B%0A
+ if(resp.code = 404) %7B%0A
@@ -789,32 +789,36 @@
+
$localStorage.$r
@@ -819,18 +819,37 @@
age.
-$reset();%0A
+alarmClockId = undefined;%0A
@@ -860,32 +860,33 @@
+
check();%0A ... |
1ba7ff873ca0fc1a1ff139e81457d547d3e9894c | remove excess newline | packages/babel-core/test/fixtures/transformation/es6.arrow-functions/default-parameters/expected.js | packages/babel-core/test/fixtures/transformation/es6.arrow-functions/default-parameters/expected.js | var some = function () {
let count = arguments.length <= 0 || arguments[0] === undefined ? "30" : arguments[0];
console.log("count", count);
};
var collect = function () {
let since = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];
let userid = arguments[1];
console.log(userid);
};... | JavaScript | 0.000003 | @@ -143,17 +143,16 @@
t);%0A%7D;%0A%0A
-%0A
var coll
|
933a7307cd94e7fbcdf4c5756fc52202dfacc5a3 | set init size to adjust parent height | src/js/components/AdminTemplate/Widgets/index.js | src/js/components/AdminTemplate/Widgets/index.js | import React from 'react';
// import ChartComponent from '../../Widgets/ChartComponent';
import options from './optionIndex';
// import Warpper from '../../Widgets/Warpper';
import ReactEcharts from 'echarts-for-react';
// import ReEcharts from 're-echarts';
// class ChartTemplate extends ChartComponent {
// compone... | JavaScript | 0 | @@ -24,395 +24,130 @@
t';%0A
-// import ChartComponent from '../../Widgets/ChartComponent';%0Aimport options from './optionIndex';%0A// import Warpper from '../../Widgets/Warpper';%0Aimport ReactEcharts from 'echarts-for-react';%0A// import ReEcharts from 're-echarts';%0A%0A// class ChartTemplate extends ChartComponen... |
c7e7f8475d9c51817bb76f2cbf608ac02b135428 | Fix object amount at narrow dev-width | src/js/graphic/background/geometric/geometric.js | src/js/graphic/background/geometric/geometric.js | export default class Geometric
{
static draw(p)
{
Geometric.translateByMouse(p)
Geometric.generateGeometric(p)
}
static generateGeometric(p)
{
p.normalMaterial()
const radianX2 = p.PI * 2
let radius = p.width * 1
let xMax = 17
let yMax = 1... | JavaScript | 0.000105 | @@ -214,49 +214,8 @@
2%0A%0A
- let radius = p.width * 1%0A
@@ -266,32 +266,104 @@
= 17%0A
+ let geometricSizeMulti = 1%0A let radius = p.width * 1%0A
let rotateX
@@ -511,39 +511,8 @@
010%0A
- let geometricSizeMulti = 1%0A
@@ -579,16 +579,76 @@
*= ... |
77e69c4461c170091454826b159607d5a61b1be0 | fix warning | packages/fela/menu/item.es6 | packages/fela/menu/item.es6 | import React from 'react';
import { createComponent } from 'olymp-fela';
import Image from './image';
const Content = createComponent(
({ theme }) => ({
ellipsis: true,
flexGrow: 1,
opacity: theme.collapsed ? 0 : 1,
transition: 'opacity 200ms ease-out',
overflowY: 'hidden',
'> small': {
... | JavaScript | 0.000004 | @@ -1252,24 +1252,35 @@
f,%0A ref,%0A
+ color,%0A
...rest%0A
|
f07be703aa0654df5adaab376f9668edf99452e9 | Upgrade NodeJS to v16 - fixed console.log in grib2json (#2) | packages/grib2json/index.js | packages/grib2json/index.js | import fs from 'fs-extra'
import os from 'os'
import path from 'path'
import { fileURLToPath } from 'url'
import { execFile } from 'child_process'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const grib2jsonCommand = process.env.GRIB2JSON ||
path.join(__dirname, 'bin', os.platform() === 'win32' ? ... | JavaScript | 0 | @@ -2314,32 +2314,34 @@
%7D%0A
+//
console.log(stdo
|
61dbe88cf0d1bef2b8acdbba4d001a91d2e91daa | move to createIndex | packages/loodb/src/index.js | packages/loodb/src/index.js | const mongoose = require('mongoose');
const LooSchema = require('./schemae/loo');
const ReportSchema = require('./schemae/report');
module.exports = exports = function connect(url) {
const db = mongoose.createConnection(url);
return {
Loo: db.model('NewLoo', LooSchema),
Report: db.model('NewReport', Repo... | JavaScript | 0.000001 | @@ -178,16 +178,56 @@
(url) %7B%0A
+ mongoose.set('useCreateIndex', true);%0A
const
|
4ed1cc4d6574954ad6e3465929b027e697557381 | Update namespace | lib/node_modules/@stdlib/ndarray/base/assert/lib/index.js | lib/node_modules/@stdlib/ndarray/base/assert/lib/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.000001 | @@ -3403,32 +3403,256 @@
is-order' ) );%0A%0A
+/**%0A* @name isReadOnly%0A* @memberof ns%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/ndarray/base/assert/is-read-only%7D%0A*/%0AsetReadOnly( ns, 'isReadOnly', require( '@stdlib/ndarray/base/assert/is-read-only' ) );%0A%0A
/**%0A* @name isRo
|
569dc0a7fbbe5626f5c9ebe37d42d3b6b458695a | Handle non-string values in arrays and sets used as filters. | django_cradmin/staticsources/django_cradmin/scripts/django_cradmin/widgets/ApiDataListWidget.js | django_cradmin/staticsources/django_cradmin/scripts/django_cradmin/widgets/ApiDataListWidget.js | import HttpDjangoJsonRequest from 'ievv_jsbase/http/HttpDjangoJsonRequest';
import typeDetect from 'ievv_jsbase/utils/typeDetect';
import AbstractDataListWidget from "./AbstractDataListWidget";
export default class ApiDataListWidget extends AbstractDataListWidget {
// getDefaultConfig() {
// const defaultConfi... | JavaScript | 0 | @@ -1508,24 +1508,134 @@
== 'set') %7B%0A
+ let values = %5B%5D;%0A for(let value of filterValue) %7B%0A values.push(%60$%7Bvalue%7D%60);%0A %7D%0A
quer
@@ -1661,35 +1661,30 @@
(filterKey,
-filterV
+v
alue
+s
);%0A %7D e
|
1f447239e8ef34b45b65c7ee94f4e44e0fbcca7e | Add fallback if translation is not found | options/options.js | options/options.js | function restoreOptions() {
browser.storage.local.get([
"mode",
"blacklist",
"whitelist",
"notificationPopupEnabled",
"notificationDuration",
]).then(
result => {
setTextValue("blacklist", result.blacklist.join("\n"));
setTextValue("whiteli... | JavaScript | 0.000001 | @@ -1106,42 +1106,150 @@
-if (typeof browser === %22undefined%22
+let translationKey = element.getAttribute(%22data-i18n%22);%0A if (typeof browser === %22undefined%22 %7C%7C !browser.i18n.getMessage(translationKey)
) %7B%0A
@@ -1394,41 +1394,22 @@
age(
-element.getAttribute(%22data-i18n%22)
+translation... |
bb95834998e21b041e45d1167aeab285b1c3fbcb | Update BoundsArraySet_Depthwise.js | CNN/Conv/BoundsArraySet/BoundsArraySet_Depthwise.js | CNN/Conv/BoundsArraySet/BoundsArraySet_Depthwise.js | export { Depthwise };
import * as Pool from "../../util/Pool.js";
import * as FloatValue from "../../Unpacker/FloatValue.js";
import * as ValueDesc from "../../Unpacker/ValueDesc.js";
import { ConvBiasActivation } from "./BoundsArraySet_ConvBiasActivation.js";
import { ChannelPartInfo, FiltersBiasesPartInfo } from ".... | JavaScript | 0.000001 | @@ -1283,41 +1283,8 @@
unt0
-, channelShuffler_inputGroupCount
);%0A
@@ -1570,41 +1570,8 @@
unt0
-, channelShuffler_inputGroupCount
);%0A
@@ -1674,77 +1674,12 @@
unt0
-, channelShuffler_inputGroupCount ) %7B%0A // Infer channelMultiplier.
+ ) %7B
%0A
@@ -1746,16 +1746,44 @@
elCount;
+ // Infer channelMul... |
a89e45e5b162eedda7daee3825cd66096dd2b3e4 | Update BoundsArraySet_Pointwise.js | CNN/Conv/BoundsArraySet/BoundsArraySet_Pointwise.js | CNN/Conv/BoundsArraySet/BoundsArraySet_Pointwise.js | export { Pointwise };
export { PointwisePool };
import * as FloatValue from "../../Unpacker/FloatValue.js";
import * as ValueDesc from "../../Unpacker/ValueDesc.js";
import * as Weights from "../../Unpacker/Weights.js";
import { ConvBiasActivation } from "./BoundsArraySet_ConvBiasActivation.js";
import { ChannelPartIn... | JavaScript | 0 | @@ -3208,16 +3208,48 @@
super(
+ %22BoundsArraySet.PointwisePool%22,
Pointwi
|
8bab75249e848f199b08676e5a744aaa6fddbb8e | Enable first ad render audit for AdSense (#126) | lighthouse-plugin-publisher-ads/audits/first-ad-render.js | lighthouse-plugin-publisher-ads/audits/first-ad-render.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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -838,87 +838,8 @@
e');
-%0Aconst %7BisAdIframe, isGptIframe%7D = require('../utils/resource-classification');
%0A%0Aco
@@ -2399,237 +2399,8 @@
tc.%0A
- // Currently only GPT ads are supported by this audit.%0A const nonGptAdSlots = artifacts.IFrameElements.filter(%0A (iframe) =%3E isAdIframe(ifra... |
6b57036255e0055ce1fbdb91928c1924d7308142 | update botmanager | botManager.js | botManager.js | var fs = require('fs');
var separator = '############################################################################\n';
var respId = 0;
var variables = require('./variables');
var feedback_chatId = variables['feedback_chatId'];
function processOnText(msg, match) {
var resp = null;
var timestamp = new Date... | JavaScript | 0.000001 | @@ -4436,32 +4436,203 @@
%7D%0A
+ if (resp === null)%7B%0A resp = %22Tut mir Leid, aber es sieht so aus als g%C3%A4be es f%C3%BCr diese Mensa heute leider kein Men%C3%BC.%22;%0A %7D%0A
%7D%0A
|
513f4f28081594d8994122cf43c2ad47d234caff | Update browser filename. | browserify.js | browserify.js | 'use strict';
/**
* Dependencies
*/
var fs = require('fs');
var browserify = require('browserify');
/**
* Create directories
*/
if (!fs.existsSync('./browser')) {
fs.mkdirSync('./browser');
}
/**
* Browserify
*/
browserify({ 'entries': './src/index.js', 'standalone': 'bus', 'debug': true })
.transform('bab... | JavaScript | 0 | @@ -473,18 +473,20 @@
browser/
-bus
+index
.js'));
|
993025c478950440118a81d4a33fc2abad354fd0 | Update .pa11yci-pr.conf.js (#42148) | .pa11yci-pr.conf.js | .pa11yci-pr.conf.js | var config = {
defaults: {
concurrency: 1,
runners: ['axe'],
useIncognitoBrowserContext: false,
chromeLaunchConfig: {
args: ['--no-sandbox'],
},
},
urls: [
{
url: '${HOST}/login',
wait: 500,
rootElement: '.main-view',
threshold: 12,
},
{
url: '$... | JavaScript | 0 | @@ -284,17 +284,17 @@
shold: 1
-2
+3
,%0A %7D,
@@ -690,25 +690,25 @@
threshold: 1
-3
+4
,%0A root
|
82abd4455890ab2fe46ae926feb689b93cee2a8e | Fix JS | modules/chat/client/controllers/chat.client.controller.js | modules/chat/client/controllers/chat.client.controller.js | 'use strict';
// Create the 'chat' controller
angular.module('chat').controller('ChatController', ['$scope', '$location', 'Authentication', 'Socket',
function ($scope, $location, Authentication, Socket) {
// Create a messages array
$scope.discussion = Discussion.get({ discussionId: $stateParams.discussionId ... | JavaScript | 0.000591 | @@ -143,16 +143,46 @@
Socket',
+ 'Discussion', '$stateParams',
%0A funct
@@ -223,24 +223,50 @@
tion, Socket
+, Discussion, $stateParams
) %7B%0A // C
|
1a8df5324d1ef2bf5c9951d38f9b6efc6ae285ef | Update girls.js | js/girls.js | js/girls.js |
function fetch(url){
$.getJSON(url,function(x,st){
if(st==='success'){
if(x.count>0){
var _ts=x.topics;
$.each(_ts,function(i,t){
//well
if(t.comments_count>10){
var _ps=t.photos;
$.each(_ps,function(j,p){
addIMG(p.alt,p.title);
});
}else{
//not popular
... | JavaScript | 0 | @@ -397,16 +397,18 @@
alt)%7B%0A%0A%09
+//
%09var img
@@ -482,16 +482,68 @@
%225%25%22 %3E';
+%0A%09%09var img='%3Cimg src=%22'+alt+'%22 title=%22'+title+'%22 %3E';
%0A%0A%09%09$(im
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.