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 |
|---|---|---|---|---|---|---|---|
c51e6907f0f28a63648e5550ab651bc63ae7454d | fix spinner on createroom | src/createRoom.js | src/createRoom.js | /*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | JavaScript | 0 | @@ -1479,24 +1479,53 @@
sGuest()) %7B%0A
+ setTimeout(()=%3E%7B%0A
Moda
@@ -1567,32 +1567,36 @@
, %7B%0A
+
title: %22Please R
@@ -1605,16 +1605,20 @@
ister%22,%0A
+
@@ -1721,33 +1721,51 @@
chat.%22%0A
-%7D
+ %7D)%0A %7D, 0
);%0A retur
@@ ... |
324a4981ffd24bce0ccdcf508e925cd0cc1589bd | update email description | src/data/index.js | src/data/index.js | export const patterns = [{
name:"Date in format dd/mm/yyyy",
regex:/^(0?[1-9]|[12][0-9]|3[01])([ /\-])(0?[1-9]|1[012])\2(19[0-9][0-9]|20[0-9][0-9])$/,
description:"Will match dates with dashes, slashes or with spaces dd-mm-yyyy dd/mm/yyyy dd mm yyyy",
tags:"date,time"
},
{
name: "Time in 24-hour format",
regex: /... | JavaScript | 0.000004 | @@ -1063,230 +1063,65 @@
on:%22
-Match standards complient email addresses. A stricter regex fully compliant with the standards is considered too complex to maintain. To actually verify an email address sending a conformation email is the only valid test.
+Verify that there is an @ symbol with something before it
%22... |
2c5a24de5ce1c0e198b9820c5ad076d74c0358dc | Revert "Fix call to builtInStore" | application/loading-bar/index.js | application/loading-bar/index.js | let builder = require('focus').component.builder;
let React = require('react');
let type = require('focus').component.types;
let requestStore = require('focus').network.builtInStore;
let assign = require('object-assign');
let ProgressBar = require('../../common/progress-bar').component;
let LoadingBarMixin = {
/** @i... | JavaScript | 0 | @@ -174,16 +174,18 @@
tInStore
+()
;%0Alet as
|
bfb56de219bc5997b03d4c0d8495fa6f3c16322e | Fix typo in dict | src/dict/dicts.js | src/dict/dicts.js | export default {
emailcode: {
code: {
codeInputPlaceholder: "Your code",
footerText: "",
headerText: "An email with the code has been sent to {email}.",
resendLabel: "Did not get the code?"
},
confirmation: {
success: "Thanks for signing in."
},
email: {
emailIn... | JavaScript | 0.999833 | @@ -3485,9 +3485,8 @@
uth0
-1
%22,%0A
|
f352459279f142d69c9d8fdbc921752393b694ae | fix elr-utility-lib include | src/elr-alerts.js | src/elr-alerts.js | import elrUtlities from 'elr-utilities';
const $ = require('jquery');
let elr = elrUtlities();
const elrAlerts = function({
speed = 300,
alertClass = 'js-dismissible-alert'
} = {}) {
const self = {
showAlert(type, message, $holder) {
const className = `elr-alert elr-${type}-alert ${ale... | JavaScript | 0 | @@ -28,19 +28,21 @@
r-utilit
-ies
+y-lib
';%0Aconst
|
e0ff0aa117fbe175bac97e145d23a855d17bd265 | update supply_is.js | assets/js/jsload-db/supply_is.js | assets/js/jsload-db/supply_is.js | var bs = zsi.bs.ctrl;
var tblPopup = "tblStoreLocSupp";
setInputs();
$(document).ready(function(){
$("#p_store_loc_id").dataBind(base_url + "select_options/code/store_locs");
markMandatory();
});
$("form[id=frm]").submit(function(){
if( zsi.form.checkMandatory()!==true) return false;
});
... | JavaScript | 0.000002 | @@ -1430,33 +1430,26 @@
%22%22;%7D
-
%0D%0A
+
@@ -1694,33 +1694,34 @@
s;%7D%0D%0A
-
+//
,function(d)%7B re
@@ -1797,24 +1797,56 @@
BackDone)%7B%0D%0A
+ var rowData =data;%0D%0A
@@ -1876,9 +1876,9 @@
d%22)%5B
-6
+0
%5D;%0D%0A
@@ -1903,17 +1903,88 @... |
b35bf4bb0e16735c35294422debc7ef616cf30fa | Update texture.js | src/gl/texture.js | src/gl/texture.js | function Texture(source, options, textureHandlers, ctx, compressedTextures, onloadstart, onrrror, onprogress, onload) {
var fileType = fileTypeFromPath(source),
handler = textureHandlers[fileType];
this.type = "texture";
this.source = source;
this.options = options || {};
this.handler =... | JavaScript | 0.000001 | @@ -84,17 +84,17 @@
tart, on
-r
+e
rror, on
@@ -1349,8 +1349,9 @@
%7D%0A%7D;
+%0A
|
4cf4d170e2dc70431e38ae685b11f1260a12c7ff | Fix _setSize and _setColor methods | src/ikonograph.js | src/ikonograph.js | const ICONS_SVG = {
"agenda-full": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\">\n<title>agenda-full</title>\n<path d=\"M16 0h-13c-0.553 0-1 0.447-1 1v22c0 0.553 0.447 1 1 1h13v-24zM9 7l-3 2v-7h6v7l-3-2z\"></path>\n<path d=\"M19 0h-1v24h1c1.654 0 3-1.346 ... | JavaScript | 0.000001 | @@ -2300,37 +2300,36 @@
ue) %7B%0A const
-color
+size
= this.getAttri
@@ -2325,37 +2325,36 @@
is.getAttribute(
-COLOR
+SIZE
_ATTR);%0A this
@@ -2373,20 +2373,19 @@
ild(
-value, color
+size, value
);%0A
@@ -2411,36 +2411,37 @@
ue) %7B%0A const
-size
+color
= this.getAttri
@@ -2437,36 +2437,37 @@
i... |
c170f6bd14895e9ad236c847162ff00e2703e17d | Remove a test | src/index.test.js | src/index.test.js | /* global
describe, it
*/
import { expect } from 'chai'
import _ from 'lodash'
import reactHtmlAttributes from './react-html-attributes.json'
import crawledReactHTMLAttributes from './crawled-react-html-attributes.test.json'
import crawledReactSVGAttributes from './crawled-react-svg-attributes.test.json'
import craw... | JavaScript | 0.000269 | @@ -838,135 +838,8 @@
%0A%7D%0A%0A
-function areArraysApatheticallySorted(array) %7B%0A return array.every(items =%3E items.join(' ') === _.sortBy(items).join(' '))%0A%7D%0A%0A
func
@@ -1702,153 +1702,8 @@
%7D)%0A%0A
- it('should have a store of apathetically sorted attributes', () =%3E %7B%0A expect(attributeL... |
eea7bef143c057827d95c707530aaff5a20a8291 | fix a typo | src/io/crystal.js | src/io/crystal.js | import * as spacegroups from '../geometry/spacegroups';
import * as sgtable from './sgtable';
import { coordinateChanges } from '../geometry/types';
const V = coordinateChanges;
const matrixError = (A, B) => V.div(V.norm(V.minus(A, B)), V.norm(A));
const eps = Math.pow(2, -50);
const trim = x => Math.abs(x) < eps ? ... | JavaScript | 1 | @@ -1776,12 +1776,8 @@
roup
-Spec
.err
|
6ecab852557f081d81f4ef3ffbd686c7dbd30826 | store elements once | src/ishido-web.js | src/ishido-web.js | var ishido = require('./ishido');
window.Ishido = function (element) {
var tile_set = new ishido.TileSet(
[ 'c1', 'c2', 'c3', 'c4', 'c5', 'c6' ],
[ 's1', 's2', 's3', 's4', 's5', 's6' ]
);
var game = new ishido.Game(tile_set);
var initialized = false;
function make_elem... | JavaScript | 0 | @@ -289,16 +289,64 @@
= false;
+%0A var board_elem;%0A var current_piece_elem;
%0A%0A fu
@@ -1507,158 +1507,8 @@
%7D%0A
- function board_elem () %7B%0A return element.children%5B0%5D;%0A %7D%0A function current_piece_elem () %7B%0A return element.children%5B1%5D;%0A %7D%0A
... |
23f02fbd02a472120ea11e4ed3446e0753bc994b | Add helper for calculating distance between points | src/js/helpers.js | src/js/helpers.js | 'use strict';
Darwinator.Helpers = {
convertTileMap: function(layer) {
var indexes = [];
for (var i = 0; i < layer.length; i++) {
indexes[i] = [];
for(var l = 0; l < layer.length; l++) {
indexes[i][l] = layer[i][l].index;
}
}
return indexes;
},
pixelsToTile: function(... | JavaScript | 0.000029 | @@ -818,8 +818,485 @@
%0A %7D
+,
%0A%0A
-%7D;
+ /**%0A * Calculates distance between two points. Works for both distance in pixels and distance in tiles.%0A * @method Darwinator.Helpers#calculateDistance%0A * @param %7BArray%7D - The first point, given as %5Bx,y%5D%0A * @param %7BArray%7D - The second point, gi... |
6dd867ee8cdf2b4034edcdeb3d188dd2c2dfdff9 | Add dev version info to options page | src/js/options.js | src/js/options.js | /**
* Handling of options/configuration.
*/
class PathmarksOptions {
static get KEY_ENTER() {
return 13;
};
constructor() {
this.core = new PathmarksCore();
}
start() {
document.querySelector('.add')
.addEventListener('click', () => this.addEntryFromInputFields());
document.querySelector('.configar... | JavaScript | 0 | @@ -354,19 +354,31 @@
, () =%3E
-thi
+PathmarksOption
s.valida
@@ -650,106 +650,8 @@
));%0A
-%09%09document.querySelector('.header-version')%0A%09%09%09.innerHTML = chrome.runtime.getManifest().version;%0A
%09%09th
@@ -707,24 +707,66 @@
ionsLink();%0A
+%09%09PathmarksOptions.createHeaderVersion();%0A
%09%7D%0A%0... |
e74145b265a74e8f895fbdf7e2f8f3c431b8d9c1 | update createNonClashingName | src/lib/helper.js | src/lib/helper.js | module.exports = {
shortenAddress: function (address, etherBalance) {
var len = address.length
return address.slice(0, 5) + '...' + address.slice(len - 5, len) + (etherBalance ? ' (' + etherBalance.toString() + ' ether)' : '')
},
shortenHexData: function (data) {
if (!data) return ''
if (data.leng... | JavaScript | 0 | @@ -452,20 +452,20 @@
ngName (
-path
+name
, filePr
@@ -503,85 +503,151 @@
-if (path.endsWith('.sol')) path = path.substring(0, path.lastIndexOf('.sol'))
+var ext = 'sol'%0A var reg = /(.*)%5C.(%5B%5E.%5D+)/g%0A var split = reg.exec(name)%0A if (split) %7B%0A name = split%5B1%5D%0A ext = spli... |
ddff196c591a4d93c387dad653f5f414b1e3b9db | Create ajax function in favroties.js to create new favorite | workshop/www/js/favorites.js | workshop/www/js/favorites.js | $(document).ready(function(){
$('.container').on('click', '#favorite-icon', function(event) {
var $favorite = $(event.target)
$.ajax({
type: "POST",
//dan's localhost below
url: "http://10.0.2.89:3000/favorites",
data: $favorite.data()
});
});
}); | JavaScript | 0 | @@ -89,16 +89,104 @@
vent) %7B%0A
+ var sessionInfo = window.localStorage.getItem(%22sessionId%22);%0A if (sessionInfo)%7B%0A
var
@@ -217,16 +217,18 @@
et)%0A
+
$.ajax(%7B
@@ -228,16 +228,18 @@
.ajax(%7B%0A
+
ty
@@ -256,16 +256,18 @@
,%0A
+
//dan's
@@ -282,16 +282,18 @@
t be... |
cac0aba95259ce61fc90d32a64a4897068456fc6 | Add grades links | users/admin-search/user-search-details.user.js | users/admin-search/user-search-details.user.js | // ==UserScript==
// @name Admin User Search Details
// @namespace https://github.com/jamesjonesmath/canvancement
// @description Show the Login ID and SIS User Id for users from the Admin Search Page
// @include /^https://.*\.instructure\.com/accounts/[0-9]+/users(\?|$)/
// @version 3
// @grant ... | JavaScript | 0 | @@ -299,9 +299,9 @@
-3
+4
%0A//
@@ -546,16 +546,26 @@
res' : %5B
+ 'grades',
'masque
@@ -1645,38 +1645,52 @@
res.
-indexOf('masquerade') %3E -1
+length %3E 0
) %7B%0A
+ var hasLinks = false;%0A
@@ -1793,16 +1793,17 @@
var link
+s
= docum
@@ -1821,21 +1821,248 @@
lement('
-a
+span
');%0A
+... |
9e43f2387d3a399e6c12e42541df3b1f33fab682 | Change sample module name from double quotes to single quotes | www/modules/sample/sample.js | www/modules/sample/sample.js | (function () {
'use strict';
angular.module("Sample", [])
.config(function ($stateProvider) {
$stateProvider
.state('sample', {
url: '/',
views: {
'main': {
templateUrl: './modules/sample/sample.html',
... | JavaScript | 0 | @@ -51,16 +51,16 @@
ule(
-%22
+'
Sample
-%22
+'
, %5B%5D
|
42ef810764cc3e8659da69cdf7eb31b832ee5fcd | remove obsolete eslint ignore | src/main/index.js | src/main/index.js | import path from 'path';
import { app, Menu } from 'electron';
import { autoUpdater } from 'electron-updater';
import electronDebug from 'electron-debug';
import createWindow from './helpers/window';
import { migrateSettings } from './migrate-settings';
import tray from './tray';
import getMenu from './get-menu';
cons... | JavaScript | 0.000001 | @@ -2553,43 +2553,8 @@
();%0A
- /* eslint-enable no-console */%0A
%7D%0A
|
4671e58de5de2444cddb544bdf5c0508060ef134 | Fix missing param. | web/src/scripts/controller/CartBlogListCtrl.js | web/src/scripts/controller/CartBlogListCtrl.js | 'use strict';
/* global _, uuid, CartConst, CartUtility */
module.exports = function ($scope, $location, $window, $routeParams, $modal, $dataService, $accessService) {
CartUtility.log('CartBlogListCtrl');
$scope.utility = CartUtility;
$scope.encodeURIComponent = encodeURIComponent;
$scope.isMaster = ... | JavaScript | 0.000005 | @@ -337,24 +337,97 @@
sMaster();%0A%0A
+ $scope.rootUrl = CartUtility.getPureRootUrlFromLocation($location);%0A%0A
$scope.c
|
c2247a3f4c6acc260d83f8efa0fb12868ca06e7f | Remove FOO voodoo | packages/@sanity/cli/src/commands/init/initSanity.js | packages/@sanity/cli/src/commands/init/initSanity.js | import resolveFrom from 'resolve-from'
import debug from '../../debug'
import getUserConfig from '../../util/getUserConfig'
import getProjectDefaults from '../../util/getProjectDefaults'
import resolveLatestVersions from '../../util/resolveLatestVersions'
import createProvisionalUser from '../../actions/user/createProv... | JavaScript | 0 | @@ -773,12 +773,8 @@
nt('
-FOO
This
|
6bcd65c477a19fd08ad685c7dbca725dd6af4acb | Change the way the schema resolve looks for title fields | packages/@sanity/desk-tool/src/schemaPaneResolver.js | packages/@sanity/desk-tool/src/schemaPaneResolver.js | import React, {PropTypes} from 'react'
import Pane from 'component:desk-tool/pane'
import QueryPane from 'component:desk-tool/query-pane'
import schema from 'schema:@sanity/base/schema'
import PaneContainer from 'component:desk-tool/pane-container'
import EditorContainer from 'component:desk-tool/editor-container'
impo... | JavaScript | 0.000001 | @@ -532,16 +532,101 @@
%7D))%0A%7D%0A%0A
+const looksLikeDisplayField = field =%3E %5B'name', 'title'%5D.indexOf(field.name) !== -1%0A%0A
class Sc
@@ -895,51 +895,14 @@
d =
-(%0A type.fields.find(field =%3E field.isD
+type.d
ispl
@@ -912,15 +912,8 @@
ield
-)%0A
%7C%7C
@@ -933,67 +933,29 @@
ind(
-fi... |
9c59e3519788f87483aaab71b09174e67bb3ab83 | remove disable class on edit button when a new record is added to the filtering select widget [ci skip] | app/assets/javascripts/rails_admin/ra.remote-form.js | app/assets/javascripts/rails_admin/ra.remote-form.js | /*
* RailsAdmin remote form @VERSION
*
* License
*
* http://www.railsadmin.org
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.dialog.js
*/
(function($) {
$.widget("ra.remoteForm", {
_create: function() {
var widget = this
var dom_widget = widget.element;
va... | JavaScript | 0 | @@ -3098,18 +3098,26 @@
length)
-//
+%7B // not a
replace
@@ -3165,16 +3165,99 @@
on.id);%0A
+ widget.element.find('.update').removeClass('disabled');%0A %7D
%0A
@@ -3290,17 +3290,16 @@
t input%0A
-%0A
|
84522a214b8d0f6da1cae22b4ffc6dfb864f781f | Update old MCAS score names to be inclusive ranges | app/assets/javascripts/student_profile/mcasScores.js | app/assets/javascripts/student_profile/mcasScores.js | export function shortLabelFromNextGenMcasScore(score) {
if (score >= 400 && score < 450) return 'NM'; // Not Meeting Expectations
if (score >= 450 && score < 500) return 'PM'; // Partially Meeting
if (score >= 500 && score < 550) return 'M'; // Meeting Expectations
if (score >= 550 && score < 600) return 'E'; /... | JavaScript | 0.000001 | @@ -439,16 +439,17 @@
score %3C
+=
218) re
@@ -498,16 +498,17 @@
score %3C
+=
238) re
@@ -568,16 +568,17 @@
score %3C
+=
258) re
@@ -630,16 +630,17 @@
score %3C
+=
280) re
|
8b97c204682131e7ee77da8932927766f9fa5d44 | add stub-router-context to istanbul ignore | app/client/components/helpers/stub-router-context.js | app/client/components/helpers/stub-router-context.js | import 'babel/polyfill';
import React from 'react/addons';
export default function(ComposedComponent, props = {}, stubs = {}) {
function RouterStub() { }
Object.assign(RouterStub, {
makePath () {},
makeHref () {},
transitionTo () {},
replaceWith () {},
goBack () {},
getCurrentPath () {},
... | JavaScript | 0.000001 | @@ -1,29 +1,4 @@
-import 'babel/polyfill';%0A
impo
@@ -28,16 +28,43 @@
dons';%0A%0A
+/* istanbul ignore next */%0A
export d
|
bbccf696772050498cce304eef9f34367d224a28 | Add date sorting | app/common-components/filters/sorting-type_module.js | app/common-components/filters/sorting-type_module.js | 'use strict';
var sortingTypeFilter = angular.module( 'sortingTypeFilter', [ ] );
sortingTypeFilter.filter( 'sortingType', function( )
{
return function( items, type, input )
{
if( input )
{
var out = [ ];
switch( type ) {
case 'alphabetical':
items.forEach( function( item ) {
if( item... | JavaScript | 0.000119 | @@ -757,33 +757,335 @@
%09%09%09%09
-console.log('year filter'
+var yearArray = input.split('-');%0A%09%09%09%09%09var startYear = parseInt(yearArray%5B0%5D);%0A%09%09%09%09%09var endYear = parseInt(yearArray%5B1%5D);%0A%09%09%09%09%09items.forEach( function( item ) %7B%0A%09%09%09%09%09%09var projectYear = parseInt(i... |
a28a4cd20e5166e43c961d54d62706f5de3abd56 | Fix regression on upload with Wowza | app/server/providers/mediaPlatforms/WowzaProvider.js | app/server/providers/mediaPlatforms/WowzaProvider.js | 'use strict';
/**
* @module providers
*/
var path = require('path');
var util = require('util');
var async = require('async');
var FTPS = require('ftps');
var shortid = require('shortid');
var MediaPlatformProvider = process.requirePublish('app/server/providers/mediaPlatforms/MediaPlatformProvider.js');
/**
* Def... | JavaScript | 0 | @@ -2407,17 +2407,18 @@
mediaId
-,
+ +
path.ex
|
8e74b660f4085623498cfba40228c3db1e585b59 | Update create-load-manifest.js | packages/cli/lib/lib/webpack/create-load-manifest.js | packages/cli/lib/lib/webpack/create-load-manifest.js | module.exports = assets => {
let mainJs, mainCss, scripts=[], styles=[];
for (let filename in assets) {
if (!/\.map$/.test(filename)) {
if (/route-/.test(filename)) {
scripts.push(filename);
} else if (/chunk\.(.+)\.css$/.test(filename)) {
styles.push(filename);
} else if (/^bu... | JavaScript | 0.000002 | @@ -1046,8 +1046,9 @@
est;%0A%7D;%0A
+%0A
|
f0ea8680f25625e0710f1de44f62c29516d2c487 | Fix calendar bootstrap loading | packages/components/hooks/useGetCalendarBootstrap.js | packages/components/hooks/useGetCalendarBootstrap.js | import { useCallback } from 'react';
import { getFullCalendar } from 'proton-shared/lib/api/calendars';
import createCache from 'proton-shared/lib/helpers/cache';
import useCache from '../containers/cache/useCache';
import useApi from '../containers/api/useApi';
import useCachedModelResult, { getPromiseValue } from './... | JavaScript | 0.000001 | @@ -511,16 +511,25 @@
allback(
+%0A
(calenda
@@ -535,16 +535,124 @@
arID) =%3E
+ %7B%0A if (!calendarID) %7B%0A return Promise.resolve();%0A %7D%0A return
api(get
@@ -680,15 +680,39 @@
ID))
-,
+;%0A %7D,%0A
%5Bapi%5D
+%0A
);%0A%0A
@@ -85... |
efa0ea7502e9b94e7f72b47afe312e56aba00253 | add focus styling to title input (#11017) | packages/story-editor/src/components/header/title.js | packages/story-editor/src/components/header/title.js | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0 | @@ -1503,16 +1503,120 @@
lipsis;%0A
+ border-radius: $%7B(%7B theme %7D) =%3E theme.borders.radius.small%7D;%0A%0A $%7BthemeHelpers.focusableOutlineCSS%7D;%0A%0A
$%7B(%7B i
|
4148ac74d3d59be4dee13c94b4bcbbe135124cdc | Update ChannelShuffler_Bag.js | CNN/Conv/ChannelShuffler/ChannelShuffler_Bag.js | CNN/Conv/ChannelShuffler/ChannelShuffler_Bag.js | export { Bag };
export { BagPool };
import * as MultiLayerMap from "../../util/MultiLayerMap.js";
import * as Pool from "../../util/Pool.js";
import * as Recyclable from "../../util/Recyclable.js";
import { ConcatPointwiseConvPool } from "./ChannelShuffler_ConcatPointwiseConv.js";
/**
* A container which provides sh... | JavaScript | 0 | @@ -12,28 +12,8 @@
g %7D;
-%0Aexport %7B BagPool %7D;
%0A%0Aim
@@ -175,92 +175,8 @@
js%22;
-%0Aimport %7B ConcatPointwiseConvPool %7D from %22./ChannelShuffler_ConcatPointwiseConv.js%22;
%0A%0A/*
@@ -634,16 +634,206 @@
se ) %7B%0A%0A
+ /**%0A * Used as default ChannelShuffler.Bag provider for conforming to Recy... |
84cb9ed056064d9f57f533b4d209af46a31d1a2c | Put back elasticsearch port | redef/patron-client/src/backend/routes/search.js | redef/patron-client/src/backend/routes/search.js | const fetch = require('isomorphic-fetch')
const searchBuilder = require('../utils/searchBuilder')
module.exports = (app) => {
app.get('/q', (request, response) => {
const queryString = request.originalUrl.substr(request.originalUrl.indexOf('?') + 1)
fetch('http://elasticsearch:8200/search/publication/_search... | JavaScript | 0 | @@ -286,9 +286,9 @@
rch:
-8
+9
200/
|
c52e8b6d37ee59c12c1508c0e1d2c23a81a10c6b | remove console.log | lib/SegmentKenBurns.js | lib/SegmentKenBurns.js | var assign = require("object-assign");
var rectClamp = require("rect-clamp");
var rectCrop = require("rect-crop");
var rectMix = require("rect-mix");
var BezierEasing = require("bezier-easing");
var SegmentTimeline = require("./SegmentTimeline");
function SegmentKenBurns (renderChannel, data) {
SegmentTimeline.call(... | JavaScript | 0.000006 | @@ -1982,39 +1982,8 @@
t);%0A
- console.log(image, bound);%0A
|
47b888650a78281bf0d67a7e21a542eda601feba | add types | lib/UseStrictPlugin.js | lib/UseStrictPlugin.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const ConstDependency = require("./dependencies/ConstDependency");
class UseStrictPlugin {
apply(compiler) {
compiler.hooks.compilation.tap(
"UseStrictPlugin",
(compilation, { normalModuleFactory... | JavaScript | 0.000002 | @@ -180,31 +180,161 @@
);%0A%0A
-class UseStrictPlugin %7B
+/** @typedef %7Bimport(%22./Compiler.js%22)%7D Compiler */%0A%0Aclass UseStrictPlugin %7B%0A%09/**%0A%09 * @param %7BCompiler%7D compiler Webpack Compiler%0A%09 * @returns %7Bvoid%7D%0A%09 */
%0A%09ap
|
2b2242e093bc6f78388f9754677c2282cfe8489b | Remove unnecessary empty line | build.config.js | build.config.js | var bundleName = "devextreme-angular2";
module.exports = {
tools: {
srcFilesPattern: ['tools/src/**/*.ts'],
distPath: 'tools/dist',
metadataGenerator: {
importFrom: './tools/dist/metadata-generator',
sourceMetadataFilePath: './metadata/StrongMetaData.json',
... | JavaScript | 0.11169 | @@ -1358,17 +1358,16 @@
late%5C''%0A
-%0A
|
6d056d2dbaff655f10339a88e7fd6bd81d6f0515 | add chaining api | data/modules/imtiaz.majeed/timeline/example/example.js | data/modules/imtiaz.majeed/timeline/example/example.js | BEST.module('imtiaz.majeed:timeline:example', {
behaviors: {
'#circle-container': {
'size': function(size) {
return size;
},
'origin': [0.5, 0.5],
'mount-point': [0.5, 0.5],
'align': [0.5, 0.5]
},
'#circle': {
... | JavaScript | 0 | @@ -1932,32 +1932,53 @@
$timelines
+%0A
.get('bouncySize
@@ -2001,34 +2001,28 @@
-$timelines
+
.get('bouncy
@@ -2237,32 +2237,57 @@
$timelines
+%0A
.get('bouncySize
@@ -2315,34 +2315,28 @@
-$timelines
+
.get('bouncy
@@ -24... |
bb8ed49bd2f8bd86c8c5eebc396c5970120d1c86 | fix typo | lib/WinEventEmitter.js | lib/WinEventEmitter.js | 'use strict';
const EventEmitter = require('events').EventEmitter;
const execSync = require('child_process').execSync;
const os = require('os');
function convertPowershellDate(date) {
const parts = date.toString().split(' ');
return `${parts[0]} ${parts[1]} ${parts[2]} ${parts[3]} ${parts[4]}`;
}
function proces... | JavaScript | 0.999991 | @@ -1798,16 +1798,17 @@
provider
+s
%5B0%5D=='*'
|
a59c64a01da063cdf8a872d384d5fa69da013c9e | Fix wonky scrolling animation when filtering results and a drawer is open. | resources/assets/js/components/CandidateIndex.js | resources/assets/js/components/CandidateIndex.js | import React from 'react/addons';
import Gallery from './Gallery';
import SearchForm from './SearchForm';
import includes from 'lodash/collection/includes';
class CandidateIndex extends React.Component {
constructor(props) {
super(props);
// Assign incremental key to candidates
let i = 1;
const cat... | JavaScript | 0 | @@ -842,16 +842,22 @@
tState(%7B
+%0A
query:
@@ -861,16 +861,46 @@
y: query
+,%0A selectedItem: null%0A
%7D);%0A %7D
|
a1c2fd85cbfbcb76858619968a3e3ede77c6a9c8 | Fix accidental overlap | plugins/editor/scroller.js | plugins/editor/scroller.js | 'use strict';
var _ = require('lodash');
function generateContent(lines, start, minLength) {
return _(lines)
.slice(start)
.thru(function(array){
if(array.length < minLength){
// pad whitespace at top of array
return _(new Array(minLength - array.length))
.fill('\u2009')
... | JavaScript | 0.002325 | @@ -3689,16 +3689,21 @@
height
+- 40
%3C scroll
@@ -3708,21 +3708,16 @@
llHeight
- - 40
)%7B%0A t
|
c9917bb01b43cfd490f1178d2136262bbdc99cae | clean up busmodule.js code | busmodule.js | busmodule.js | var rest = require('restler');
//See https://github.com/srt4/OneBusAway-Node-Client
var OBA_API_URL = 'http://api.onebusaway.org/api/where/';
var OBA_KEY = 'key=14f3bc28-6c02-4257-8a36-b1eaac4122aa';
//Find stops at http://pugetsound.onebusaway.org/where/standard/#m(route)route(1_102581)
var stopId = "3160";
//... | JavaScript | 0.000004 | @@ -628,35 +628,8 @@
; %0D%0A
- //console.log(data);%0D%0A
@@ -693,34 +693,32 @@
-//
console.log('sto
@@ -718,105 +718,18 @@
og('
-stops away ',arrivalsAndDepartures%5Bi%5D.numberOfStopsAway); %0D%0A console.log('bus
+bus number
',a
@@ -1134,214 +1134,8 @@
0;%0D%0A
... |
eeff755f6d7f74ab803828cb78331165f4341634 | remove first-run timestamp from sqlite adapter | lib/adapters/sqlite.js | lib/adapters/sqlite.js | var sqlite3 = require('sqlite3').verbose();
var log = require('../log');
/**
* Initialize the database with a configuration specific to the adapter.
* The initialization takes in a callback function which is called after the
* connection is established. If at any point in initialization there were
* errors the cal... | JavaScript | 0.000014 | @@ -4647,24 +4647,27 @@
+ //
task.first_
|
3cd63dd6b009eb7948bc9bfd7c43556f74cb264a | Load and display wondercall iframe | components/WonderCallEmbed.js | components/WonderCallEmbed.js | import { useState } from 'react';
import NoSsr from '@material-ui/core/NoSsr';
import { makeStyles } from '@material-ui/core/styles';
import MaterialUITooltip from '@material-ui/core/Tooltip';
import Fab from '@material-ui/core/Fab';
import ChatIcon from '@material-ui/icons/Chat';
import ClickAwayListener from '@materi... | JavaScript | 0 | @@ -23,24 +23,50 @@
om 'react';%0A
+import %7B t %7D from 'ttag';%0A
import NoSsr
@@ -117,16 +117,28 @@
keStyles
+, withStyles
%7D from
@@ -526,10 +526,528 @@
%7D,%0A
-%7D)
+%0A container: %7B%0A position: 'relative', // for .cover%0A %7D,%0A%0A cover: %7B%0A position: 'absolute',%0A top: 0,%0A r... |
6c863cfb113c683930934d40c9e91ad087ee11d2 | Use File Extras to get the document root so we can display an image. Also add cache busting to the image. | filerv7/www/js/app/views/imageNoteEditView.js | filerv7/www/js/app/views/imageNoteEditView.js | /**
*
* Image Note Edit View
*
* imageNoteEditView.js
* @author Kerri Shotts
* @version 1.0.0
*
* Copyright (c) 2013 PacktPub Publishing
* 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 Softw... | JavaScript | 0 | @@ -3481,35 +3481,33 @@
.UI.styleElement
- (
+(
self._imageConta
@@ -3545,47 +3545,853 @@
rit%22
- );%0A setTimeout ( function () %7B%0A
+);%0A var fe = cordova.require(%22org.apache.cordova.file-extras.FileExtras%22);%0A var template = %22url(file://%25ROOT%25%25URL%25?%25CACHE%25)%22;%0A ... |
58f2bbe0d1769ce18d9e9926172cef605822e2ad | remove debugger statement | sample/src/samples/datepicker/range-selection.js | sample/src/samples/datepicker/range-selection.js | export class RangeSelection {
constructor() {
}
startChange() {
debugger;
let startDate = this.startDatePicker.value();
let endDate = this.endDatePicker.value();
if (startDate) {
startDate = new Date(startDate);
startDate.setDate(startDate.getDate());
this.... | JavaScript | 0.00057 | @@ -75,24 +75,8 @@
) %7B%0A
- debugger;%0A
|
7fecba8ef81b915053825b5b058ef416c7b75140 | Remove the old Google Analytics snippet | components/app/layout/head.js | components/app/layout/head.js | import React from 'react';
import PropTypes from 'prop-types';
import HeadNext from 'next/head';
// Redux
import { connect } from 'react-redux';
import Package from '../../../package.json';
const TRANSIFEX_BLACKLIST = [
'/app/embed/EmbedDashboard',
'/app/embed/EmbedDataset',
'/app/embed/EmbedLayer',
'/app/em... | JavaScript | 0.998311 | @@ -1013,527 +1013,8 @@
%0A%0A
-static getGA() %7B%0A return %3Cscript async src=%22https://www.googletagmanager.com/gtag/js?id=UA-67196006-1%22 /%3E;%0A %7D%0A%0A static getGASettings() %7B%0A return (%0A %3Cscript%0A type=%22text/javascript%22%0A // eslint-disable-next-line react/no-dang... |
5340fbcc0d04b9f192bf104624d310fcd82d5ba8 | Fix schema | dev/app/table-schemas/section-projects-table-schema.js | dev/app/table-schemas/section-projects-table-schema.js | module.exports = {
headers: ['Id Proyecto', 'Nombre'],
rows: [
{ type: 'label', props: { text: obj => obj.Id } },
{ type: 'label', props: { text: obj => obj.Name } }
]
};
| JavaScript | 0.000004 | @@ -103,16 +103,23 @@
=%3E obj.
+Project
Id %7D %7D,
|
e58964d2ae8b0e33f84e4822cd0d52e9a423f3b6 | add desc | Algorithms/JS/arrays/matrices/gameOfLife.js | Algorithms/JS/arrays/matrices/gameOfLife.js | gameOfLife.js
| JavaScript | 0.000001 | @@ -1,14 +1,887 @@
-gameOfLife.js
+// According to the Wikipedia's article: %22The Game of Life, also known simply as Life,%0A// is a cellular automaton devised by the British mathematician John Horton Conway in 1970.%22%0A%0A// Given a board with m by n cells, each cell has an initial state live (1) or dead (0).%0A// ... |
af1f939c041fc57d9a6474a80cbab89dec2ac6f8 | Check if callback before invoking it | lib/common/lib/services/filters/redirectfilter.js | lib/common/lib/services/filters/redirectfilter.js | //
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | JavaScript | 0 | @@ -1222,16 +1222,30 @@
%7D else
+ if (callback)
%7B%0A
|
bd8aef5a811c42681801dcce20acc883bbcc5571 | add desc | Algorithms/JS/linkedList/linkedListCycle.js | Algorithms/JS/linkedList/linkedListCycle.js | linkedListCycle.js
| JavaScript | 0.000001 | @@ -1,19 +1,543 @@
+// Given a
linked
-ListCycle.js
+ list, determine if it has a cycle in it.%0A%0A// which would return true if the given Node is the first of a list with a loop, and false otherwise?%0A// How could you write so that it takes a constant amount of space and a reasonable amount of time?%0A%0A// Here's... |
28e31733fc1a023678eb83b92023eb5acfc02daa | Fix firefox scroll offset bug on project tool reordering | Allura/allura/public/nf/js/project_tools.js | Allura/allura/public/nf/js/project_tools.js | (function() {
// Provide CSRF protection
var cval = $.cookie('_session_id');
var csrf_input = $('<input name="_session_id" type="hidden" value="'+cval+'">');
// Install popup
var install_popup = $('#lightbox_install_modal');
var install_form = $('#install_form');
var new_ep_name = install_fo... | JavaScript | 0 | @@ -3666,13 +3666,401 @@
%7D);%0A
+ // fix firefox scroll offset bug%0A var userAgent = navigator.userAgent.toLowerCase();%0A if(userAgent.match(/firefox/)) %7B%0A $('#sortable').bind( %22sortstart%22, function (event, ui) %7B%0A ui.helper.css('margin-top', $(window).scrollTop() );%0A %7D... |
96028efbaa9c2ffc5109c5f89b8060bfbcc434aa | fix dialog: update the demo of dialog with canceled param | modules/dialog/demo/js/demo-dialog_controller.js | modules/dialog/demo/js/demo-dialog_controller.js | (function()
{
'use strict';
angular
.module('Controllers')
.controller('DemoDialogController', DemoDialogController);
DemoDialogController.$inject = ['$scope', 'LxDialogService', 'LxNotificationService'];
function DemoDialogController($scope, LxDialogService, LxNotificationService)
... | JavaScript | 0 | @@ -1904,32 +1904,43 @@
vent, _dialogId,
+ _canceled,
_params)%0A
@@ -2150,32 +2150,43 @@
vent, _dialogId,
+ _canceled,
_params)%0A
|
a4d6875879dfe466030f9fd9bfa12d6bddd545bd | Simplify argument checking for asserts | js/assert.js | js/assert.js | (function () {
'use strict';
function assert(actual, expectation, message) {
var outcome = arguments.length === 2 ? actual : actual === expectation,
description = arguments.length === 2 ? expectation : message,
para = document.createElement('p'),
text = docume... | JavaScript | 0.000049 | @@ -47,202 +47,44 @@
ion
-a
+logA
ssert
-(actual, expectation, message) %7B%0D%0A var outcome = arguments.length === 2 ? actual : actual === expectation,%0D%0A description = arguments.length === 2 ? expectation : message,
+ion(outcome, description) %7B
%0D%0A
@@ -81,35 +81,35 @@
ion) %7B%0D%0A ... |
eb89abe07267d25f7e929d90fcd7d7b3fb382fa5 | add files by wangpengfei | App/Lib/Controller/Home/CourseController.js | App/Lib/Controller/Home/CourseController.js | /**
* controller
* @return
*/
module.exports = Controller("Home/BaseController", function(){
"use strict";
var Service = require("../../Service/Service");
return {
indexAction: function(){
var self = this;
Service.getCourseOrderByWeight().then(function(data){
self.assign({
co... | JavaScript | 0 | @@ -3979,9 +3979,9 @@
eid
-%EF%BC%9B
+:
dat
|
9d6eaaf0baf3609208aeecb1beb963d638f639a7 | fix mouse wheel handler | django/applications/catmaid/static/js/widgets/input.js | django/applications/catmaid/static/js/widgets/input.js | /* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */
/* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */
/**
* input element with mousewheel-control and increase-decrease handles
*/
function Input(
name, size, onchange, defaultvalue) {
/**
* returns the containing span-eleme... | JavaScript | 0.999996 | @@ -2111,25 +2111,11 @@
(w
-== MOUSE_WHEEL_UP
+%3E 0
) %7B%0A
|
5aaa6e14a52844a5c8e1a96831357ef99944fe66 | Make the timeout parameter customizable | lib/bittorrent-sync.js | lib/bittorrent-sync.js | 'use strict';
var
events = require('events'),
request = require('request'),
util = require('util'),
methods = [
'get_folders',
'add_folder',
'remove_folder',
'get_files',
'set_file_prefs',
'get_folder_peers',
'get_secrets',
'get_folder_prefs',
'set_folder_prefs',
'ge... | JavaScript | 0.000004 | @@ -787,16 +787,35 @@
'secret'
+,%0A timeout : 1e4
%0A %7D;%0A
@@ -2206,16 +2206,30 @@
ut:
-30 * 1e3
+btsync.options.timeout
,%0A
|
c90b85644e7970a7995809eeb4c3ecfede35d8df | Add small sanity fix for DateTimeIso tests | test/components/date-time-iso.test.js | test/components/date-time-iso.test.js | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import DateTimeIso from '../../src/components/date-time-iso/date-time-iso';
describe('<DateTimeIso />', () => {
let component;
const defaultTimestamp = 1461756108561;
it('should show only the date if neither hour, minute... | JavaScript | 0 | @@ -447,22 +447,8 @@
t().
-split(' ')%5B0%5D.
matc
|
b7c7c49e759b700cbf16f390536e1fc43e347c53 | add token for google translate service | providers/google-translate.js | providers/google-translate.js | const Request = require('sdk/request').Request
function translationResult(str) {
let newstr = '['
let q = 0
let insideQuote = false
str = str.replace(/\\(?=[^u])/g, '\\')
for (var i = 1, len = str.length; i < len; i++) { //start at 1, take into acount opening brace
if (str[i] === '"' && str[i-1] !== '\\... | JavaScript | 0 | @@ -1588,24 +1588,243 @@
ull,%0A %7D%0A%7D%0A%0A
+//some sort of token google uses%0Afunction generateToken() %7B%0A var a = Math.floor((new Date).getTime() / 36E5) %5E 123456;%0A return a + %22%7C%22 + Math.floor((Math.sqrt(5) - 1) / 2 * (a %5E 654321) %25 1 * 1048576)%0A %0A%7D%0A%0A
function api
@@ -... |
0ad2d6b90b130e9f96342db86bd42a93eb05e3e5 | add plugin name | lib/bricks-compress.js | lib/bricks-compress.js | (function () {
var compress = require('compress-buffer').compress;
exports.plugin = function (request, response, options) {
if (response.statusCode() === 200 &&
(request.headers['accept-encoding'].match('gzip') || request.headers['accept-encoding'].match('*'))) {
var buffers = ... | JavaScript | 0.000001 | @@ -65,16 +65,55 @@
press;%0A%0A
+ exports.name = 'bricks compress';%0A%0A
expo
@@ -937,8 +937,9 @@
%7D;%0A%7D)();
+%0A
|
23595799bbedf2f525eb13201f1ae48196874f4e | patch for stylus upgrade | lib/system/init/bundle/styles/renderers/stylus.js | lib/system/init/bundle/styles/renderers/stylus.js | // Stylus Renderer that understands `@[<pkgName>]/filename` imports.
//
'use strict';
var _ = require('lodash');
var fs = require('fs');
var path = require('path');
var stylus = require('stylus');
////////////////////////////////////////////////////////////////////////////////
// keep reference to or... | JavaScript | 0 | @@ -354,22 +354,20 @@
var orig
-Lookup
+Find
= stylu
@@ -374,22 +374,20 @@
s.utils.
-lookup
+find
;%0A%0A%0A// r
@@ -1063,22 +1063,20 @@
s.utils.
-lookup
+find
= funct
@@ -1136,22 +1136,20 @@
urn orig
-Lookup
+Find
(resolve
@@ -1301,27 +1301,23 @@
ils.
-lookup
+find
= orig
-Lookup
+Find
;%0A%0A
|
49ba870f26619203643cb5c8f8e5e7cc55fccca0 | Fix ReferencedList field order | src/javascripts/ng-admin/Crud/column/maColumn.js | src/javascripts/ng-admin/Crud/column/maColumn.js | /*global define*/
define(function (require) {
'use strict';
function maColumn($location, $anchorScroll, $compile, Configuration) {
return {
restrict: 'E',
scope: {
field: '&',
entry: '&',
entity: '&'
},
lin... | JavaScript | 0 | @@ -1015,16 +1015,31 @@
fields()
+ %7C orderElement
%22' +%0A
|
d9ae0718feb3f536e1d6b1fc3b79bff444a912e0 | Test 10 | js/chrono.js | js/chrono.js |
var cpt = 1500 ;
var x ;
var pause=0;
var recommencer
function decompte()
{
if(cpt>=0){
if(pause==0)
{
if(cpt>60)
{
var m=Math.trunc(cpt/60);
var s=(cpt % 60);
var min = " minutes et ";
var sec = " secondes.";
}
... | JavaScript | 0 | @@ -1143,16 +1143,34 @@
= 1500;%0A
+%09%09%09recommencer=0;%0A
%09%09%09if(cp
|
011a06145aed6a5b4c8b9b6182c4ed698f3c2a28 | Use undefined for unknown modules | lib/build/pluginify.js | lib/build/pluginify.js | var _ = require('underscore');
var parse = require('./parse');
var opener = require('./open');
/**
*
* @param ids
* @param options
* @param callback
*/
function pluginify(ids, options, callback) {
opener(ids, options.steal || {}, function (error, rootSteals, opener) {
// Call pluginifySteals and extend the opt... | JavaScript | 0.000001 | @@ -2575,16 +2575,31 @@
ions.id%5D
+ %7C%7C 'undefined'
;%0A%09%09%09%09%7D)
|
8256212356fc4674f30744f07d298f59f1a3da8f | fix require | test/services/records-service.spec.js | test/services/records-service.spec.js | const RecordsService
= require('../../lib/services/works-service').RecordsService;
const HttpClient = require('../../lib/http-client').HttpClient;
describe('records service', () => {
const Record = new RecordsService( new HttpClient() );
it('has correct members', done => {
[
'get',
... | JavaScript | 0.000001 | @@ -52,12 +52,14 @@
ces/
-work
+record
s-se
|
3da37c7fc328139ccaf8e3cf8b0c220d10921a0f | add check for object before checking attrib value | lib/cached-document.js | lib/cached-document.js | const getAllFromArchive = require('../lib/get-full-archive');
const archiveTree = require('../lib/archive-tree');
const cache = require('../bin/cache.js');
const getPrimaryValue = require('./get-primary-value');
module.exports = (elastic, id, fondsId, callback) => {
cache.start()
.then(
cache.get({segment: 'do... | JavaScript | 0 | @@ -1325,16 +1325,40 @@
ce.level
+ && result._source.level
.value =
|
013b3b83cdc698ff7df6976b793cb54b4564d9f8 | use production env in staging also | config/deploy.js | config/deploy.js | /* jshint node: true */
module.exports = function(deployTarget) {
var ENV = {
build: {}
// include other plugin configuration that applies to all deploy targets here
};
ENV.s3 = {
bucket: process.env.AWS_BUCKET,
region: process.env.AWS_REGION
};
ENV['s3-index'] = {
bucket: process.env.AW... | JavaScript | 0 | @@ -911,23 +911,26 @@
ment = '
-staging
+production
';%0A /
|
d65c4ba4be2c7ac0759b55b020455d81b955c3e7 | Fix name of readyState signal. | src/Native/WebAPI/Document.js | src/Native/WebAPI/Document.js | Elm.Native = Elm.Native || {};
Elm.Native.WebAPI = Elm.Native.WebAPI || {};
Elm.Native.WebAPI.Document = Elm.Native.WebAPI.Document || {};
Elm.Native.WebAPI.Document.make = function (localRuntime) {
localRuntime.Native = localRuntime.Native || {};
localRuntime.Native.WebAPI = localRuntime.Native.WebAPI || {};
... | JavaScript | 0.000002 | @@ -1132,16 +1132,25 @@
'WebAPI.
+Document.
readySta
|
61064f341c127444cee1e2be2c9827444006a263 | Update differenceEngineInput.js | javascript/differenceEngineInput.js | javascript/differenceEngineInput.js | // Create the array
var x = new Array(7);
for (var i = 0; i < 7; i++) {
x[i] = new Array(8);
}
// Initalize the Array
for (var i = 0; i < 7; i++) {
for (var j = 0; j < 8; j++) {
x[i][j] = 0;
}
}
// Update the values from the start
function initalUpdateNumbers() {
for (var i = 0; i < 7; i++) {
for (var... | JavaScript | 0 | @@ -2710,28 +2710,240 @@
initalUpdateNumbers();%0A%7D);%0A
+%0A// Allows only Number Keys%0Afunction isNumberKey(evt) %7B%0A var charCode = (evt.which) ? evt.which : event.keyCode;%0A if (charCode %3E 31 && (charCode %3C 48 %7C%7C charCode %3E 57)) %7B%0A return false;%0A %7D%0A return true;%0A%7D%0A
|
e6972b60ee21433fce7deedb1348e2606271c76d | Bump the API requirement to v1.9 | config/deploy.js | config/deploy.js | /* eslint-env node */
module.exports = function(deployTarget) {
const API_VERSION = 'v1.8';
var ENV = {
build: {},
exclude: ['.DS_Store', '*-test.js']
};
ENV.s3 = {
acl: 'public-read',
region: 'us-west-2',
bucket: 'ilios-frontend-assets'
};
ENV['s3-index'] = {
region: 'us-west-2',... | JavaScript | 0.000001 | @@ -88,9 +88,9 @@
'v1.
-8
+9
';%0A
|
58993c66fe9eb8027e9831f2d5e95c224f9b6abb | integrate sections | public/js/controllers/home.js | public/js/controllers/home.js | // var uwaterlooapi = require('uwaterloo-api');
angular.module('MyApp')
.controller('homeCtrl', function ($scope, $auth, $http) {
$scope.isEmptyCourse = true;
$scope.courseInfo = {
subject: 'Subject',
catalog_number: 000
}
$scope.addCourse = function (subject, number) {
var data = {... | JavaScript | 0.000001 | @@ -122,16 +122,28 @@
h, $http
+, $rootScope
) %7B%0A
@@ -1979,40 +1979,8 @@
*/%0A%0A
- console.log(%22Hello World%22);%0A
|
313d0c4d9f1ffe06520c3ae99caecb9b7b799c42 | Fix `toc` height depending of the page scroll | js/common.js | js/common.js | //Mobile navigation toggle
$('#nav-icon-menu').click(function(){
$(this).toggleClass('open');
$('body').toggleClass('navigation-opened');
});
//Mobile navigation — doc-list toggle
$('.doc-list-toggle').click(function(){
$('.doc-list-inside').toggleClass('active');
$(this).toggleClass('active');
});
//... | JavaScript | 0.000001 | @@ -1,26 +1,27 @@
//
+
Mobile navigation toggle
@@ -143,24 +143,25 @@
d');%0A%7D);%0A%0A//
+
Mobile navig
@@ -315,16 +315,17 @@
%0A%7D);%0A%0A//
+
Mobile f
@@ -1409,16 +1409,341 @@
#toc');%0A
+var initialFooterHeight = $(%22.footer%22).innerHeight();%0Avar headerFixPosition = $(%22.nav-hero-container%22).inne... |
36a6ae79e6fd2f4b0a73701e521b00e66ef41261 | Fix stylejukebox on startup scrobbling issue | connectors/v2/stylejukebox.js | connectors/v2/stylejukebox.js | 'use strict';
/* global Connector */
Connector.artistSelector = '.song-artist';
Connector.trackSelector = '.song-title';
Connector.currentTimeSelector = '.seeking-time > div:first-child';
Connector.durationSelector = '.seeking-time > div:last-child';
Connector.playButtonSelector = '.play-button';
Connector.play... | JavaScript | 0 | @@ -255,56 +255,8 @@
';%0A%0A
-Connector.playButtonSelector = '.play-button';%0A%0A
Conn
@@ -354,8 +354,207 @@
%3E img';%0A
+%0AConnector.isPlaying = function () %7B%0A%09// Check pause button visibility instead of play button invisibility,%0A%09// to avoid automatic scrobbling on startup%0A%09return $('.pause-butto... |
e9436ba84f297aa4604744b601b0db5727df8c72 | reset module cache on engine reload | lib/client/resource.js | lib/client/resource.js | (function (global, body) {
/**
* Wrapper function for CommonJS modules.
*
* @public
* @param {string} The complete file path.
* @param {function} The wrapper function, which returns the module object
*/
var engine = global.E = function Engine (path, module) {
// create CommonJS module directly if path is no... | JavaScript | 0.000001 | @@ -881,16 +881,109 @@
= %7B%7D;%0A%0A
+// reset module cache on engine reload%0Aengine._r = %5Bfunction () %7B%0A moduleCache = %7B%7D;%0A%7D%5D;%0A%0A
// const
|
de658597b16d134f34599ea371e682955a3d0ab8 | Delete a function | client/lib/includes/helpFunctions.js | client/lib/includes/helpFunctions.js | // Renvoi a Number if the field value is a number otherwise return NaN
filterInt = function(value) {
if (/^(\-|\+)?([0-9]+|Infinity)$/.test(value)) {
return Number(value);
} else {
return NaN;
}
}
// Return null if field is empty
isFilled = function(element) {
if ($(element).val() === "") {
return null;
} e... | JavaScript | 0.000891 | @@ -202,162 +202,8 @@
%0A%7D%0A%0A
-// Return null if field is empty%0AisFilled = function(element) %7B%0A%09if ($(element).val() === %22%22) %7B%0A%09%09return null;%0A%09%7D else %7B%0A%09%09return $(element).val();%0A%09%7D%0A%7D%0A%0A
isVa
|
6a61612902c4928afa918dde1d21860800fd0aa1 | support webpack-bundle-analyzer and stats-webpack-plugin | config/plugin.js | config/plugin.js | 'use strict';
const path = require('path');
const WebpackTool = require('webpack-tool');
const webpack = WebpackTool.webpack;
const chalk = require('chalk');
const utils = require('../utils/utils');
exports.npm = {
enable: false,
name: 'npm-install-webpack-plugin',
args: {
dev: true
}
};
exports.module = ... | JavaScript | 0 | @@ -3945,24 +3945,651 @@
efault'%0A%7D;%0A%0A
+exports.analyzer = %7B%0A enable: false,%0A env: %5B'dev','test'%5D,%0A type: 'client',%0A name: 'webpack-bundle-analyzer',%0A entry: 'BundleAnalyzerPlugin',%0A args()%7B%0A return %7B%0A analyzerPort: this.ssr ? 9998 : 9999,%0A statsFilename: this.type... |
00a63a239b3a69fda706673ef60c529db1289225 | fix lint errors | js/dispatcher/__tests__/AppDispatcher-test.js | js/dispatcher/__tests__/AppDispatcher-test.js | jest.autoMockOff();
describe('AppDispatcher', function() {
var AppDispatcher;
beforeEach(function() {
AppDispatcher = require('../AppDispatcher').default;
});
it('sends actions to subscribers', function() {
var listener = jest.genMockFunction();
AppDispatcher.register(listener);
var payload ... | JavaScript | 0.000037 | @@ -1,12 +1,55 @@
+/* eslint-disable no-use-before-define */%0A%0A
jest.autoMoc
@@ -87,26 +87,21 @@
r',
-function()
+() =%3E
%7B%0A
-var
+let
App
@@ -126,26 +126,21 @@
oreEach(
-function()
+() =%3E
%7B%0A A
@@ -235,36 +235,33 @@
ibers',
-function()
+() =%3E
%7B%0A
-var
+const
listene
@@ -327,27... |
88f7b37661121dd06f54e1e9bc7e7d2111bd95e6 | make `ghost buster` command use yarn utility | lib/commands/buster.js | lib/commands/buster.js | 'use strict';
const npm = require('../utils/npm');
module.exports.execute = function execute() {
return this.ui.run(npm(['cache', 'clean']), 'Clearing npm cache');
};
| JavaScript | 0.000001 | @@ -13,19 +13,20 @@
;%0Aconst
-npm
+yarn
= requi
@@ -38,19 +38,20 @@
./utils/
-npm
+yarn
');%0A%0Amod
@@ -116,19 +116,20 @@
.ui.run(
-npm
+yarn
(%5B'cache
|
fbdb6b2e018d93b92a5a64ea1d152d30d8cb8344 | Allow HTML in Markdown | js/custom.js | js/custom.js | /* global $ */
/* jshint asi:true */
var md = window.markdownit({ typographer: true })
var attr = window.markdownItAttrs
md.use(attr)
function convert (markdown) {
var html = md.render(markdown)
$('.container').append(html)
}
function floats () {
$('p img').each(function () {
var img = $(this... | JavaScript | 0.000767 | @@ -62,16 +62,28 @@
downit(%7B
+ html: true,
typogra
|
3067d70e43073552960f3a5969c9fa332d5c2e5d | Improve storage manager with method validation and key prefixing | src/Storage/StorageManager.js | src/Storage/StorageManager.js | function StorageManager(storageMethod) {
this.storageMethod = storageMethod;
}
StorageManager.prototype.setCurrentLevel = function(level) {
this.storageMethod.setItem('currentLevel', level);
};
StorageManager.prototype.incrementCurrentLevel = function() {
this.setCurrentLevel(this.getCurrentLevel() + 1);
}... | JavaScript | 0 | @@ -30,19 +30,278 @@
geMethod
-) %7B
+, prefix) %7B%0A try %7B%0A storageMethod.setItem('__available__', true);%0A if(storageMethod.removeItem) %7B%0A storageMethod.removeItem('__available__');%0A %7D%0A %7D catch(e) %7B%0A throw %22Storage method is not currently available... |
ca697948a06eb0f0fac5f9faf581087242c426cf | Fix CORS issue caused by incorrect Origin header | lib/commands/launch.js | lib/commands/launch.js | /* eslint prefer-destructuring: ["error", {AssignmentExpression: {array: true}}] */
const path = require('path');
const fs = require('fs-extra');
const browsersync = require('browser-sync').create();
const del = require('del');
const chalk = require('chalk');
const open = require('open');
const validations = require(... | JavaScript | 0.000001 | @@ -960,24 +960,62 @@
e;%0A%09%09%7D%0A%09%7D;%0A%0A
+%09const url = new URL(config.appUrl);%0A%0A
%09const apexP
@@ -1205,60 +1205,17 @@
' +
-(request.connection._host %7C%7C request._headers
+url
.host)
-)
;%0A%09%09
|
441b9ba943f6fe094740e12033bc3dcbae373519 | add information about template option in render command and make options validation strict | lib/commands/render.js | lib/commands/render.js | 'use strict'
var description = 'Invoke a rendering process'
var command = 'render'
exports.command = command
exports.description = description
exports.builder = function (yargs) {
var commandOptions = {
out: {
description: 'Save rendering result into a file path',
type: 'string',
demandOption... | JavaScript | 0 | @@ -209,14 +209,262 @@
-out: %7B
+template: %7B%0A alias: 't',%0A description: 'Specifies a path to a json file containing options for template input or you can specify singular options doing --template.%5Boption_name%5D value',%0A requiresArg: true%0A %7D,%0A out: %7B%0A alias: 'o',
%0... |
01a3877dd53b1a6bd0c99419233989c4a65fb677 | Add new commit types | lib/commit-analyzer.js | lib/commit-analyzer.js | const _ = require('lodash');
const cmd = require('./cmd');
// For testing purposes
module.exports.getCommitHistory = (commitRange, cb) => cmd(`git log ${commitRange}`, cb);
module.exports.getLastTag = cb => cmd('git describe --tags --abbrev=0', cb);
/**
* Analyses all commits after last git tag and calls cb with on... | JavaScript | 0 | @@ -993,16 +993,66 @@
'patch'
+, 'premajor', 'preminor', 'prepatch', 'prerelease'
%5D, item
|
4c30cf29bb220295ef65e7d80b6200d53d4bfbb6 | FIX context saving | js/entity.js | js/entity.js | /* jshint devel: true */
var PewPew= {};
!function() {
'use strict';
/**
* Upgrade class
*/
function Upgrade(name, maxLevel) {
this.name = name;
this.maxLevel = maxLevel;
this.level = 0;
this.cost = function() {
return (this.level + 1) * 100;
};
this.getElementId = function() {
return "upgrad... | JavaScript | 0 | @@ -125,24 +125,41 @@
maxLevel) %7B%0A
+%09%09var self=this;%0A
%09%09this.name
@@ -250,20 +250,20 @@
return (
-this
+self
.level +
@@ -336,20 +336,20 @@
ade-%22 +
-this
+self
.name;%0A%09
@@ -399,36 +399,36 @@
.getElementById(
-this
+self
.getElementId()
@@ -450,20 +450,20 @@
rHTML =
-this
+self
%0A%09%0... |
70d4aaa8d364cf2fb000e056786e7645eaa56aaf | fix "Use Http" link | js/events.js | js/events.js | var helpers = require('./helpers')
var events = function(){
body = $('body')
stage = $('#stage')
back = $('a.back')
var file = null
var url = ''
var url = location.href
if ( ! SSL && url.split('://')[0] === 'https') {
$('footer').css('opacity', '1')
$('footer').html("You need to use HTTP. This ... | JavaScript | 0.000036 | @@ -483,17 +483,16 @@
lit('://
-/
')%5B1%5D%0A
|
dff2c065cbd1a4fcd731edd36b730eccc8db9870 | Fix error when loading without auth config | lib/configs/default.js | lib/configs/default.js | var _ = require('lodash');
var crc = require('crc');
// Base structure for a configuration
module.exports = function(options) {
options = _.defaults(options, {
// Port for running the webserver
'port': 3000,
// Root folder
'root': process.cwd(),
// Workspace id
'id... | JavaScript | 0.000001 | @@ -491,16 +491,72 @@
%7D,%0A%0A
+ // Authentication settings%0A 'auth': %7B%7D,%0A%0A
|
3825c6b1cba93daff1b462cf3e4e56cd01293161 | add django-debug-toolbar changelog (#2892) | lib/datasource/pypi.js | lib/datasource/pypi.js | const got = require('got');
const url = require('url');
const is = require('@sindresorhus/is');
const { isVersion, sortVersions, matches } = require('../versioning')('pep440');
module.exports = {
getPkgReleases,
};
function normalizeName(input) {
return input.toLowerCase().replace(/(-|\.)/g, '_');
}
// This is a... | JavaScript | 0 | @@ -1054,16 +1054,116 @@
ease/',%0A
+ 'django-debug-toolbar':%0A 'https://django-debug-toolbar.readthedocs.io/en/latest/changes.html',%0A
%7D;%0A%0Afunc
|
3eaed0d3fa0d20e3a36a8ba37303a29b9a66aafd | Update helper.js | js/helper.js | js/helper.js | $(document).ready(function () {
$('#searchTab .btn').click(function () {
$('.results.identify').hide();
if (this.id == 'ownerGo') {
//alert('dadfs');
SearchParcelByAttribute("Owner");
}
else if (this.id == "addressGo") {
SearchParcelByAttribute("Addres... | JavaScript | 0.000001 | @@ -29,1143 +29,8 @@
) %7B%0A
-%0A $('#searchTab .btn').click(function () %7B%0A $('.results.identify').hide();%0A if (this.id == 'ownerGo') %7B%0A%09%09 //alert('dadfs');%0A SearchParcelByAttribute(%22Owner%22);%0A %7D%0A else if (this.id == %22addressGo%22) %7B%0A ... |
48cdf9be25d8f998aec1188fac85a002d667d788 | fix minify invalid html | config/server.js | config/server.js | 'use strict';
const path = require('path');
const express = require('express');
const viewEngine = require('ejs-locals');
const minify = require('html-minifier').minify;
const app = express();
// Server Config ==========================================
app.engine('ejs', viewEngine);
app.set('views', path.join(__di... | JavaScript | 0.00212 | @@ -554,24 +554,46 @@
'string') %7B%0A
+ try %7B%0A
@@ -620,16 +620,20 @@
body, %7B%0A
+
@@ -683,32 +683,36 @@
+
collapseWhitespa
@@ -737,16 +737,20 @@
+
+
includeA
@@ -785,24 +785,28 @@
+
minifyCSS: t
@@ -822,24 +822,... |
926b6a8fe7aad0444d9bc97f2e6c8564023ab58f | allow aria-live="polite" on aria-errormessage target | lib/checks/aria/aria-errormessage-evaluate.js | lib/checks/aria/aria-errormessage-evaluate.js | import standards from '../../standards';
import { getRootNode } from '../../commons/dom';
import { tokenList } from '../../core/utils';
/**
* Check if `aria-errormessage` references an element that also uses a technique to announce the message (aria-live, aria-describedby, etc.).
*
* ##### Data:
* <table class="pr... | JavaScript | 0.000003 | @@ -1351,24 +1351,76 @@
sertive' %7C%7C%0A
+%09%09%09%09idref.getAttribute('aria-live') === 'polite' %7C%7C%0A
%09%09%09%09tokenLis
|
7c2bc5879f1413b0a5cacca7aea197d126fbf50f | Update animate_scatter.js | quicktests/animate_scatter.js | quicktests/animate_scatter.js | var quicktest = function(svg, data, Plottable) {
var doAnimate = true;
var circleRenderer;
var xScale = new Plottable.Scale.Linear();
var xAxis = new Plottable.Axis.XAxis(xScale, "bottom");
var yScale = new Plottable.Scale.Linear();
var yAxis = new Plottable.Axis.YAxis(yScale, "lef... | JavaScript | 0.000001 | @@ -747,71 +747,25 @@
= %22
-scatter_animate%22;%0Aquicktest.categories = %5B%22scatter%22, %22animate%22%5D
+animate_scatter%22;
%0Aqui
|
f922f58a954acc5180d18ba25b0b3fd9f65df362 | Change "motorway" to "highway" in checkbox desc. | lib/editor/components/pattern/EditSettings.js | lib/editor/components/pattern/EditSettings.js | // @flow
import React, {Component} from 'react'
import {Alert, Checkbox, Form, FormControl, ControlLabel} from 'react-bootstrap'
import Rcslider from 'rc-slider'
import {updateEditSetting} from '../../actions/active'
import {CLICK_OPTIONS} from '../../util'
import toSentenceCase from '../../../common/util/to-sentence... | JavaScript | 0 | @@ -1773,13 +1773,12 @@
oid
-motor
+high
ways
|
b4e761ccb02aecf2cfb92562fecdc0deba0405c4 | increase version | configuration.js | configuration.js | var libsConfiguration = {
knockout: {
javascript: {
local: 'node_modules/knockout/build/output/knockout-latest.debug.js',
dist: 'http://cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js'
}
},
jquery: {
javascript: {
local: 'bower_compon... | JavaScript | 0.000001 | @@ -1850,17 +1850,17 @@
= %220.0.
-2
+3
%22;%0Aexpor
|
cf44e80cfb48d5f3e537c34eb70e9eaf15694768 | return empty if nothing to decode | src/app/execution/txFormat.js | src/app/execution/txFormat.js | 'use strict'
var $ = require('jquery')
var ethJSABI = require('ethereumjs-abi')
var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN
var helper = require('./txHelper')
var TreeView = require('ethereum-remix').ui.TreeView
var executionContext = require('../../execution-context')
module.exports = {
/**
... | JavaScript | 0.99889 | @@ -5721,14 +5721,28 @@
%7D%0A %7D%0A
+ return %7B%7D%0A
%7D%0A%7D%0A
|
12796578c177de97e6e296196d2b91257521d5f6 | add user to dmcauserlist | src/app/utils/DMCAUserList.js | src/app/utils/DMCAUserList.js | const list = `
spaces
the-gaming-llama
cmgsteems
iamgod
bl-transporter
braini
cracked-games
gautampartapsoni
jimreitz
`
.trim()
.split('\n');
export default list;
| JavaScript | 0 | @@ -111,16 +111,27 @@
imreitz%0A
+bitchminer%0A
%60%0A .t
|
38a9771267a7a3e4c5fda3b498d01fbdd1db47e1 | Implement basic navigation to error views; | js/router.js | js/router.js | define(["lodash", "backbone", "jquery", "js/views/welcome", "js/views/level"],
function (_, Backbone, $, WelcomeView, LevelView) {
var router = Backbone.Router.extend({
currentView: null,
$container: null,
routes: {
"": "setDefault",
... | JavaScript | 0 | @@ -32,16 +32,27 @@
jquery%22,
+ %22js/enum%22,
%22js/vie
@@ -80,16 +80,62 @@
s/level%22
+, %22js/views/error%22, %22js/views/oldBrowserError%22
%5D,%0D%0A
@@ -159,16 +159,22 @@
bone, $,
+ Enum,
Welcome
@@ -188,16 +188,48 @@
evelView
+, ErrorView, OldBrowserErrorView
) %7B%0D%0A
@@ -432,24 +432,72 @@
... |
96565f9796e41b0c8174280ab9bcf56177307e5d | Add Runner basic attributes | js/runner.js | js/runner.js | function Runner(num_matches, strategy, game_manager) {
}
| JavaScript | 0 | @@ -48,10 +48,162 @@
ager) %7B%0A
+ this.num_matches = num_matches;%0A this.strategy = strategy;%0A this.game_manager = game_manager;%0A this.play_delay = 100;%0A this.new_game_delay = 500;%0A
%7D%0A
|
689b211126ce7a9e3b0f9ef3218c0d776533e00f | Update vyrVelky.adult.js | components/animals/vyrVelky.adult.js | components/animals/vyrVelky.adult.js | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/vyrVelky/01.jpg'),... | JavaScript | 0.000001 | @@ -1049,15 +1049,15 @@
ic%7D%3E
-e
+E
agle
-o
+O
wl%3C/
|
604bc8837cd8823289756dc2a8582cf077aa3924 | Update CKEditor | src/assets/ckeditor/config.js | src/assets/ckeditor/config.js | /**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#... | JavaScript | 0.000001 | @@ -453,16 +453,28 @@
let,
+'+%0A '
bt_table
';%0A
@@ -469,16 +469,23 @@
bt_table
+,btgrid
';%0A c
|
bc9d57f5ad73aa904a9742747e6cb7df13ddb06c | Update init js | js/script.js | js/script.js | $(document).ready(function(){
// IFRAME Layout
$('a.iframe').fancybox({
'scrolling' : 'auto',
'width' : '75%',
'height' : '100%',
'titleShow' : false,
'autoScale' : true,
'type' : 'iframe',
'openEffect' : 'elastic',
'closeEffect' : 'elastic'
});
// Tooltip
$('.showTooltip').tooltip(... | JavaScript | 0 | @@ -316,11 +316,690 @@
ltip();%0A
+%09%0A%09// DataTable%0A%09%0A%09$.extend( $.fn.dataTableExt.oStdClasses, %7B%0A%09%09%22sSortAsc%22: %22header headerSortDown%22,%0A%09%09%22sSortDesc%22: %22header headerSortUp%22,%0A%09%09%22sSortable%22: %22header%22%0A%09%7D);%0A%09%0A%09if($('#datatable, table.datatable').lengt... |
4b38ce9b358c0896d77c66092cbc46167a254aee | Update script.js | js/script.js | js/script.js | (function(window, document, undefined) {
window.onload = init;
function init() {
//get the canvas
var canvas = document.getElementById("mapcanvas");
var c = canvas.getContext("2d");
var width = 512;
var height = 288;
var blockSize = 16;
document.getE... | JavaScript | 0.000002 | @@ -566,56 +566,15 @@
%7C%7C
-i == blockSize -1 %7C%7C j == 0 %7C%7C j == blockSize -1
+j == 0
)%7B%0A
|
ea9d604e6a6d0f6edc11ac205c01126623a4453d | add colorSwitch function | js/script.js | js/script.js | var minutes;
var tensSec = 0;
var onesSec = 0;
var timer;
var timerOn = false;
//displays work timer in #elapsedTime area
function work(){
$("#timeTitle").html("Work");
minutes = $("#workTime").html();
$("#elapsedTime").html(parseInt(minutes) + ":" + tensSec + onesSec);
}
//displays rest timer in #elapsedTime a... | JavaScript | 0.000001 | @@ -1322,16 +1322,238 @@
;%0A %7D%0A%7D%0A
+// switch color of timer to green for work and red for break%0Afunction switchColor()%7B%0A $(%22#timeTitle%22).html() === %22Work%22 ? $(%22.clock%22).css(%22background-color%22, %22#C8FFBE%22) : $(%22.clock%22).css(%22background-color%22, %22#FE938C%22);%0A%7D%0A
//setT... |
a9987668807fe6a856066d519f8b2098fd6e4504 | Fix more derpy bugs | js/select.js | js/select.js | var addPlayer = function (playerID, userID, game) {
// WHERE THE REAL MAGIC IS!
console.log("Choosing " + playerID);
if (userID) {
// Validate selection
ref.child(game).child("choices").child(userID).once("value", function (snapshot) {
var choices = snapshot.val();
if... | JavaScript | 0.000001 | @@ -917,16 +917,17 @@
ject.key
+s
(choices
@@ -1133,16 +1133,33 @@
).child(
+%22choices%22).child(
ID).on(%22
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.