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 |
|---|---|---|---|---|---|---|---|
c0df19293939a7d706fb00748b5521af7376bdf0 | Fix issue with data refresh rate configuration | app/components/app/index.js | app/components/app/index.js | import numeral from 'numeral'
import WS from 'websocket'
import subscriptions from 'resources/subscriptions'
class LocalStorage {
get(key) {
var value = localStorage.getItem(key)
if (typeof value !== 'undefined') {
try {
value = JSON.parse(value)
}
catch (e) {
console.error('Invalid storage objec... | JavaScript | 0.000001 | @@ -1396,17 +1396,27 @@
)%0A%09%09var
-r
+telemachusR
efreshRa
@@ -1437,16 +1437,27 @@
(config.
+telemachus.
refreshR
@@ -1469,16 +1469,178 @@
%7C 1) : 1
+%0A%09%09var telemachusRefreshInterval = parseInt(1 / telemachusRefreshRate * 1000)%0A%09%09if (config) %7B%0A%09%09%09config.telemachus.refreshInterval = tele... |
c9ff3546b1819e256e8ca47b51f9f9818d0e5b02 | Update FirstUsePage propTypes | src/pages/FirstUsePage.js | src/pages/FirstUsePage.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Image, StyleSheet, Text, TextInput, View } from 'react-native';
import { Button } from 'react-native-ui-components';
import { SyncState } from '../widgets';
import { getAppVersion... | JavaScript | 0 | @@ -119,25 +119,24 @@
rop-types';%0A
-%0A
import %7B Ima
@@ -246,24 +246,65 @@
mponents';%0A%0A
+import %7B Synchroniser %7D from '../sync';%0A%0A
import %7B Syn
@@ -6878,53 +6878,8 @@
e;%0A%0A
-/* eslint-disable react/forbid-prop-types */%0A
Firs
@@ -6963,38 +6963,56 @@
iser: PropTypes.
-object
+instanceOf(Sync... |
8eda3ea7d42ac0986577b1f73d9af18cac7428a0 | remove test image uri | src/MessageImage.js | src/MessageImage.js | import PropTypes from 'prop-types';
import React from 'react';
import {
Image,
StyleSheet,
View,
ViewPropTypes,
Dimensions,
TouchableWithoutFeedback,
Modal,
} from 'react-native';
import Lightbox from 'react-native-lightbox';
import PhotoView from 'react-native-photo-view';
import GiftedChatInteractionMan... | JavaScript | 0.000002 | @@ -3458,112 +3458,22 @@
ri:
-'http://1.bp.blogspot.com/_7ErfTFmlXs8/S7LVbJN0EHI/AAAAAAAAAXg/9NpEDjUxMws/s1600/%25E7%2586%258A%25E5%2590%2589.JPG'
+this.state.uri
%7D%7D%0A%09
|
bef2d7ca9d21a31d5ba663c1ee533ca3eb51a1b4 | Fix the z-index problem with other front-end libs, like Bootstrap | gulpfile.js | gulpfile.js | /* eslint-env node */
/* eslint strict:0 */
var gulp = require("gulp");
var insert = require("gulp-file-insert");
var uglify = require("gulp-uglify");
var cssnano = require("gulp-cssnano");
var eslint = require("gulp-eslint");
var autoprefixer = require("gulp-autoprefixer");
var sass = require("gulp-sass");
var size = ... | JavaScript | 0.000826 | @@ -767,16 +767,33 @@
cssnano(
+%7B zindex: false %7D
))%0A
|
651942a878833813753d1309d237c0e34dba53aa | I might know where is the problem | public/js/controllers/calculations.js | public/js/controllers/calculations.js | updateCalculations = function (inputSet, voltages) {
//Epsilon - relative permittivity, hardcoded for now
var epsilon = inputSet.e;
var a0_anion = Number(inputSet.a0Anion);
var a0_cation = Number(inputSet.a0Cation);
var gamma_anion = Number(inputSet.gammaAnion);
var gamma_cation = Number(in... | JavaScript | 0.688868 | @@ -2801,32 +2801,55 @@
/Constant value%0A
+ var c1 = 16.02177;%0A
var c2 = 0.8
@@ -3056,16 +3056,21 @@
(sigma /
+ c1 /
electro
@@ -3140,16 +3140,21 @@
((sigma
+/ c1
- electr
|
21c9f0c6f54925e677edcbcc5e21f44c15c54656 | Call private method (Fix #70) | src/Menu.js | src/Menu.js | import React from 'react';
import PropTypes from 'prop-types';
import {
Animated,
Dimensions,
Easing,
Modal,
Platform,
StatusBar,
StyleSheet,
TouchableWithoutFeedback,
View,
ViewPropTypes,
} from 'react-native';
const STATES = {
HIDDEN: 'HIDDEN',
ANIMATING: 'ANIMATING',
SHOWN: 'SHOWN',
};
c... | JavaScript | 0 | @@ -2541,16 +2541,83 @@
;%0A %7D;%0A%0A
+ // @@ TODO: Rework this%0A _hide = () =%3E %7B%0A this.hide();%0A %7D;%0A%0A
render
@@ -4465,24 +4465,25 @@
Close=%7Bthis.
+_
hide%7D%0A
@@ -4786,24 +4786,25 @@
Press=%7Bthis.
+_
hide%7D access
|
addfa716d8c67acac90676786768d0bd15e42cd8 | fix house menu | src/Modules/Web/js/houseMenu.js | src/Modules/Web/js/houseMenu.js | /**
* @name: PyHouse/src/Modules/Web/js/houseMenu.js
* @author: D. Brian Kimmel
* @contact: D.BrianKimmel@gmail.com
* @Copyright (c) 2012-2014 by D. Brian Kimmel
* @license: MIT License
* @note: Created about 2012
* @summary: Displays the house menu element
*
*/
// import Nevow.Athena
// import globals
// impo... | JavaScript | 0.000004 | @@ -1858,17 +1858,16 @@
'Ligh
-h
ting Con
@@ -1872,16 +1872,17 @@
ontrol',
+
'Cont
@@ -3195,20 +3195,21 @@
%09%09case '
-Room
+Level
s':%0A%09%09%09s
@@ -3224,21 +3224,31 @@
Widget('
-Rooms
+ControlLighting
');%0A%09%09%09b
@@ -3607,32 +3607,87 @@
es');%0A%09%09%09break;%0A
+%09%09case 'Rooms':%0A%09%09... |
74791ac1f4049094bb84e30645e3cbc7d7e7c04f | Allow smaller rockety.yml file by removing configurations which are not needed. For example you may not need any "copy" directive, or "watch". There are project which do not require JavaScript (or CSS, lol). It is possible to comment/remove these rows from the config file and it will not break the build/watch process | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var fs = require('fs');
var merge = require('merge2');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var less = require('gulp-less');
var sass = require('gulp-sass');
var cleancss = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var so... | JavaScript | 0.000001 | @@ -886,16 +886,62 @@
, css;%0A%0A
+ if (!config.css) %7B%0A return;%0A %7D%0A%0A
(con
@@ -980,32 +980,32 @@
nction (item) %7B%0A
-
vendors.
@@ -2462,16 +2462,61 @@
cript;%0A%0A
+ if (!config.js) %7B%0A return;%0A %7D%0A%0A
(con
@@ -3866,24 +3866,25 @@
) %7B%0A
+... |
eea11678c5960cbce7ba827296c91b7d0af1465a | Update master.js | js/master.js | js/master.js | var Master = function(){
var main = "";
return {
init: function(){
$('main').html(main);
}
};
}();
| JavaScript | 0.000001 | @@ -73,24 +73,81 @@
function()%7B%0A
+ %0A console.log(main);%0A %0A
|
0c114883e1bd09873e1450e8cb28c3552b1813c4 | Add unique ids to CurveLocation. | src/path/CurveLocation.js | src/path/CurveLocation.js | /*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
/**
* @name ... | JavaScript | 0 | @@ -1321,16 +1321,123 @@
ance) %7B%0A
+%09%09// Define this CurveLocation's unique id.%0A%09%09this._id = CurveLocation._id = (CurveLocation._id %7C%7C 0) + 1;%0A
%09%09this._
|
aaba6612761d2f1498c531d2217ea7be9b629fdf | Build all files in `src`. | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var babel = require('gulp-babel');
gulp.task('default', function() {
return gulp.src('src/URTSI.js')
.pipe(babel())
.pipe(gulp.dest('dist'));
});
| JavaScript | 0 | @@ -118,13 +118,12 @@
src/
-URTSI
+**/*
.js'
|
798b3018d1123ac9eb6c5b3cf1d4498973e1a71e | Fix problem with interleaving upserts | src/storage/electronSqlite.js | src/storage/electronSqlite.js | import path from 'path';
// NOTE: We use window.require instead of require or import so that
// Webpack doesn't transform it. These requires happen at runtime
// via Electron loading mechanisms.
const {app} = window.require('electron').remote;
const db = window.require('sqlite');
class ElectronSqliteBackend {
con... | JavaScript | 0.998319 | @@ -746,137 +746,489 @@
TE:
-If we had other writers, this would need to be in a transaction%0A await db.run('UPDATE kv SET v = ? WHERE k = ?', value, key);%0A
+This wouldn't really be safe if we had multiple calls%0A // to setItem for same key back to back. There could be a race%0A // where they both try ... |
aa648ed13fa2a3c488989468dd5c41420abba37d | Update docusaurus.config.js (#18577) | docs/docusaurus.config.js | docs/docusaurus.config.js | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | JavaScript | 0 | @@ -3798,11 +3798,8 @@
docs
--v2
',%0A
|
e84017440250b7c10063f04a5a985c885f04fae9 | update cli help info | bin/commands/open.js | bin/commands/open.js | /**
* @file command `open`
* @author zdying
*/
'use strict';
var fs = require('fs');
var path = require('path');
var homedir = require('os-homedir');
var openBrowser = require('op-browser');
var hiproxyDir = path.join(homedir(), '.hiproxy');
module.exports = {
command: 'open',
describe: 'Open browser and set... | JavaScript | 0 | @@ -332,24 +332,34 @@
usage: 'open
+ %5Boptions%5D
',%0A options
|
182c40c55e36d7e626c1780d2ec2c95c54f62ebe | Add more selenium tests | tests/selenium/start.js | tests/selenium/start.js | var server = require('../../server');
server.start(function() {
var webdriver = require('selenium-webdriver'),
By = require('selenium-webdriver').By;
var driver = new webdriver.Builder().
withCapabilities(webdriver.Capabilities.firefox()).
build();
driver.manage().timeouts().implicitlyWait(30000);
dri... | JavaScript | 0 | @@ -35,36 +35,8 @@
');%0A
-server.start(function() %7B%0A
var
@@ -78,18 +78,16 @@
iver'),%0A
-
By = r
@@ -119,19 +119,16 @@
r').By;%0A
-%0A
var driv
@@ -227,60 +227,326 @@
);%0A%0A
- driver.manage().timeouts().implicitlyWait(30000
+server.start(function() %7B%0A test(false, 'http://localhost:3000/de/'... |
27be0da31cfddc6465945d8b0b2c083cf6ceed1e | correct parameter name | defaults.js | defaults.js |
var Blake2s = require('blake2s')
var crypto = require('crypto')
var ecc = require('eccjs')
var codec = require('./codec')
var curve = ecc.curves.k256
// this is all the developer specifiable things
// you need to give secure-scuttlebutt to get it to work.
// these should not be user-configurable, but it wi... | JavaScript | 0.000955 | @@ -933,19 +933,20 @@
nction (
-pub
+keys
, hash)
@@ -976,19 +976,20 @@
(curve,
-pub
+keys
, hash)%0A
|
33160a487f5e0812f645aaecf89c0c5507273224 | fix mochaTest failures | apps/test/levelTests.js | apps/test/levelTests.js | /**
* The level test driver.
* Tests collections are specified in .js files in the solutions directory.
* To extract the xml for a test from a workspace, run the following code in
* your console:
* Blockly.Xml.domToText(Blockly.Xml.blockSpaceToDom(Blockly.mainBlockSpace));
*/
// todo - should we also have tests ... | JavaScript | 0.000014 | @@ -2740,24 +2740,64 @@
resetIds();%0A
+ Studio.JSInterpreter = undefined;%0A
%7D%0A %7D);%0A
|
894949a3b1896fa1e92a1ecbb2e6e5a05a1b0377 | use merge() instead of extend() for when collecting route definitions from source files | src/support/startup/routes.js | src/support/startup/routes.js | "use strict";
var debug = require('debug')('waigo-startup-routes'),
queryString = require('query-string');
var waigo = global.waigo,
_ = waigo._;
/**
* Build URL to given route.
* @param {App} app The app.
* @param {String} routeName Name of route.
* @param {Object} [urlParams] URL params... | JavaScript | 0 | @@ -1532,22 +1532,21 @@
%0A%0A _.
-extend
+merge
(app.rou
|
40932674d7a1504bf8c126d5d3b550b96bd5813c | fix myBootstrapFormGroup for multi with no label (the col-xx-offset must be handled in first multi) | app/directives/Bootstrap.js | app/directives/Bootstrap.js | 'use strict';
angular.module('myApp')
.directive("myHasError", function() {
return {
restrict: 'A',
transclude: true,
template: function(element, attrs) {
// cleanup element:
element.removeAttr('my-has-error');
var name = attrs.myHasError;
return "<div ng-class=\"{'has-error': submitte... | JavaScript | 0 | @@ -1766,16 +1766,31 @@
s.label
+%7C%7C attrs.multi
? '' : '
|
fc6a8e0d2cd15f6162ec5f811d94e6ac18f0e8a8 | add more test unit in client | src/api-test/domain/client/client-validate-spec.js | src/api-test/domain/client/client-validate-spec.js | 'use strict';
const ClientValidate = require('../../../api/domain/client/client-validate');
describe('api domain client validate', () => {
const APP = {};
let CLIENT;
let clientValidate;
beforeEach(() => {
dottie.set(APP, 'domain.client.ClientModel', {});
CLIENT = {
active: true,
color: '... | JavaScript | 0 | @@ -379,16 +379,28 @@
name: '
+Grower games
'%0A %7D;
@@ -3071,13 +3071,1436 @@
);%0A %7D);
+%0A%0A describe('# onCreate', () =%3E %7B%0A beforeEach(() =%3E %7B%0A delete CLIENT.id;%0A APP.domain.client.ClientModel.findOne = simpleMock.stub().resolveWith();%0A %7D);%0A%0A it('create a new va... |
7292b665dc486a84708605923dac85fb9c90ab67 | remove SpectraProcessor from vh | eln/libs.js | eln/libs.js | export { default as OCLE } from './libs/OCLE';
export { OCLUtils, OCL } from './libs/OCLUtils';
export { default as SD } from './libs/SD';
export { default as elnPlugin } from './libs/elnPlugin';
export { default as Image } from './libs/Image';
export { default as MolecularFormula } from './libs/MolecularFormula';
expo... | JavaScript | 0 | @@ -471,64 +471,4 @@
r';%0A
-export %7B SpectraProcessor %7D from './libs/SpectraProcessor';%0A
|
733e94ad0a092c3ae078982fd0b510e266c32a79 | Improve error reporting in arangosh with kickstarter. | js/client/modules/org/arangodb/cluster.js | js/client/modules/org/arangodb/cluster.js | /*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, regexp: true plusplus: true */
/*global require, exports */
////////////////////////////////////////////////////////////////////////////////
/// @brief ArangoShell client API for cluster operation
///
/// @file
///
/// DISCLAIMER
///
... | JavaScript | 0 | @@ -2338,42 +2338,8 @@
));%0A
- arangosh.checkRequestResult(r);%0A
th
@@ -2354,32 +2354,32 @@
fo = r.runInfo;%0A
+
return r;%0A%7D;%0A%0A
@@ -2792,42 +2792,8 @@
));%0A
- arangosh.checkRequestResult(r);%0A
re
@@ -3147,42 +3147,8 @@
));%0A
- arangosh.checkRequestResult(r);%0A
th
@@ -3528,42 +3528,8 @@
... |
8ac7f47ac0f1b75ec0ad238c4545952aa52db530 | Add Enter handler to confirm | app/components/Fields/Group/NewBlockModal.js | app/components/Fields/Group/NewBlockModal.js | import React, { Component, PropTypes } from 'react';
import Input from 'components/Input';
import Button from 'components/Button';
import { slugify } from 'utils/helpers';
export default class NewBlockModal extends Component {
static propTypes = {
confirm: PropTypes.func.isRequired,
close: PropTypes.func,
... | JavaScript | 0 | @@ -513,20 +513,78 @@
(this);%0A
+ this.handleKeyPress = this.handleKeyPress.bind(this);%0A
%7D%0A
-
%0A state
@@ -889,16 +889,86 @@
);%0A %7D%0A%0A
+ handleKeyPress(e) %7B%0A if (e.key === 'Enter') this.confirm();%0A %7D%0A%0A
render
@@ -1306,32 +1306,32 @@
%0A full%0A
-
autoFo
... |
f3f3b9b33ce8af8fafcdfff92b6ad0a16c7c2498 | Add uniqId to CardModel | src/redux/modules/card.js | src/redux/modules/card.js | import { Record as record } from 'immutable';
export const CardModel = record({
id: null,
name: '',
mana: null,
attack: null,
defense: null,
});
| JavaScript | 0 | @@ -52,12 +52,12 @@
rt c
-onst
+lass
Car
@@ -67,9 +67,15 @@
del
-=
+extends
rec
@@ -153,10 +153,95 @@
null,%0A%7D)
-;
+ %7B%0A constructor(obj) %7B%0A super(obj);%0A this.uniqId = this.id + +new Date();%0A %7D%0A%7D
%0A
|
d7bedcb13737ef41e859f598c604cd26b0ab27b4 | Add api argument in exported function of events.js | src/components/transactions/src/controller/events.js | src/components/transactions/src/controller/events.js | 'use strict';
module.exports = function (options, imports) {
var logger = imports.logger.get('General Ledgers ctrl - Events');
}; | JavaScript | 0.000001 | @@ -51,16 +51,21 @@
imports
+, api
) %7B%0A%0A%09va
|
e400603d54bce1d235be5aa1aa761c9665edd328 | fix indentation in module render-template | src/assets/js/modules/functions/render-template.js | src/assets/js/modules/functions/render-template.js | 'use strict';
/**
* template cache
* @type {Object}
*/
var cache = {};
/**
* render a html/js template
* inspired by john resig's micro templating:
* http://ejohn.org/blog/javascript-micro-templating/
*
* @param {string} str template string
* @param {object} data template data object
* @return {HTM... | JavaScript | 0.000004 | @@ -385,18 +385,16 @@
data) %7B%0A
-
var do
@@ -449,18 +449,16 @@
,%0A
-
fn = cac
@@ -489,20 +489,16 @@
-
-
new Func
@@ -554,22 +554,16 @@
-
-
'var p=%5B
@@ -623,22 +623,16 @@
-
'with(ob
@@ -657,22 +657,16 @@
-
-
str.repl
@@ -687,24 +687,... |
d1901765e0e7e9197b7803701be4cf4b7829db12 | Add delay | src/bridge3d/obj/Bridge.js | src/bridge3d/obj/Bridge.js | import { Object3D } from "mx3d";
export default class Bridge extends Object3D
{
sensors = [];
selection = null;
bridgeMaterial = new THREE.MeshPhongMaterial( { color: 0x9999aa, specular: 0x555555, shininess: 10 } );
sensorMaterial = new THREE.MeshPhongMaterial( { color: 0xffbc78, specular: 0x555555, ... | JavaScript | 0.00002 | @@ -3757,32 +3757,218 @@
Sensor(sensor);%0A
+ if (!sensor.mesh.geometry.boundingSphere)%0A %7B%0A setTimeout(() =%3E %7B%0A this.focusOnSensor(sensor);%0A %7D, 100);%0A return;%0A %7D%0A
const v1
|
eb343e8ca35aebd131c1260bf7c423f79de2b86f | Set select2 container CSS class to :all: | src/dal_select2/static/autocomplete_light/select2.js | src/dal_select2/static/autocomplete_light/select2.js | ;(function ($) {
if (window.__dal__initListenerIsSet)
return;
$(document).on('autocompleteLightInitialize', '[data-autocomplete-light-function=select2]', function() {
var element = $(this);
// Templating helper
function template(text, is_html) {
if (is_html) {
... | JavaScript | 0 | @@ -2254,16 +2254,56 @@
: true,%0A
+ containerCssClass: ':all:',%0A
|
bcae1122364138b75e5cbd6470387777c8f15d9d | fix capitalization | src/reporting/Reporter.js | src/reporting/Reporter.js | const XUnitReport = testResults => {
let testCaseToXML = (suiteName, testName, testCase) => {
var passed = testCase.expected == testCase.actual;
var xml = ' <testcase classname="' + suiteName + '" name="' + testName + '"';
if (passed) {
xml += '/>\n';
} else {
xml +=
'>\n ... | JavaScript | 0.001343 | @@ -1261,17 +1261,17 @@
jsonToX
-u
+U
nit(test
|
ac3758e226af958b56ef7ded70622c81f2fc8101 | Improve the subscriptions grid layout | src/client/javascript/pages/subscriptions.react.js | src/client/javascript/pages/subscriptions.react.js | const Player = React.createClass({
onStateChange: function (event) {
switch (event.data) {
case YT.PlayerState.PLAYING:
Socket.emit('video/start', this.state.player.getVideoData()['video_id']);
break;
case YT.PlayerState.PAUSED:
Socket.emit('video/pause', this.state.player.getV... | JavaScript | 0.000001 | @@ -3231,16 +3231,34 @@
deo
+col-xl-2 col-lg-3
col-md-
-3
+4
col
|
c3523d5e933462ebaf3d4d8f2defe21ccc9dc718 | Update index.js | src/routes/Email/index.js | src/routes/Email/index.js | /**
* Created by user on 2016/12/16.
*/
export default (store) => ({
path : 'email',
/* Async getComponent is only invoked when route matches */
getComponent (nextState, cb) {
/* Webpack - use 'require.ensure' to create a split point
and embed an async module loader (jsonp) when bundling */... | JavaScript | 0.000002 | @@ -498,12 +498,12 @@
mail
-Menu
+Cont
').d
|
8754bb9bc3f53694a4c36b377fcca9f1e33153d5 | Fix the import cluster issue | lib/shared/addon/components/cru-cluster/component.js | lib/shared/addon/components/cru-cluster/component.js | import Component from '@ember/component';
import { get, set, computed, observer, setProperties } from '@ember/object';
import { inject as service } from '@ember/service';
import ViewNewEdit from 'shared/mixins/view-new-edit';
import ChildHook from 'shared/mixins/child-hook';
import { alias } from '@ember/object/compute... | JavaScript | 0.000048 | @@ -5401,16 +5401,22 @@
perties(
+this,
%7B%0A
|
21e26b276e88346984a95683cd558292ad9ea964 | make comments to posts have course_ID too | client/views/courses/details/course.discussion.js | client/views/courses/details/course.discussion.js | //load template-content
Template.discussion.helpers({
post: function() {
//get all first-level posts
var posts = CourseDiscussions.find({
course_ID: this._id,
parent_ID: { $exists: false },
},
{sort: {time_updated: -1, time_created: -1}}
);
var ordered_posts = [];
// loop over first-level post, s... | JavaScript | 0 | @@ -1279,38 +1279,53 @@
%09%09%09%09%22course_ID%22:
+this.parent.
course
+_ID
,%0A%09%09%09%09%22time_crea
|
bcf4eb5691e266af25ea7f463923d065f6d97895 | Add default divisor for Price | packages/components/components/price/Price.js | packages/components/components/price/Price.js | import React from 'react';
import PropTypes from 'prop-types';
const CURRENCIES = {
USD: '$',
EUR: '€',
CHF: 'CHF'
};
const Price = ({ children: amount = 0, currency = '', className = '' }) => {
const symbol = CURRENCIES[currency] || currency;
const value = Number(amount).toFixed(2);
const pre... | JavaScript | 0.000001 | @@ -193,16 +193,25 @@
ame = ''
+, divisor
%7D) =%3E %7B
@@ -295,16 +295,48 @@
r(amount
+ %3E 0 ? amount / divisor : amount
).toFixe
@@ -737,16 +737,119 @@
s.string
+,%0A divisor: PropTypes.number.isRequired%0A%7D;%0A%0APrice.defaultProps = %7B%0A children: 0,%0A divisor: 100
%0A%7D;%0A%0Aexp
|
39f9b8ee35196e49375b9e6761053cf10e08d46b | refactor badges by user to be consistent with other routes | src/routes/users/index.js | src/routes/users/index.js | 'use strict';
var returnBadges, badgerService;
var mongoose = require('mongoose');
var User = mongoose.model('User');
function getBadgeResponse(orcid) {
return badgerService.getBadges(orcid);
}
function getBadges(request, response) {
var orcid = request.params.orcid;
if (!orcid) {
response.status(400).end(... | JavaScript | 0 | @@ -134,88 +134,14 @@
adge
-Response(orcid) %7B%0A return badgerService.getBadges(orcid);%0A%7D%0A%0Afunction getBadges
+ByUser
(req
@@ -156,36 +156,29 @@
sponse) %7B%0A
-var orcid =
+if (!
request.para
@@ -181,38 +181,24 @@
params.orcid
-;%0A if (!orcid
) %7B%0A resp
@@ -249,57 +249,53 @@
turn
-B
+ b
a... |
82d20b00937392af7c1118ab9743e3b286e9ea12 | Fix bug https://github.com/rancher/rancher/issues/11803 | lib/shared/addon/components/empty-table/component.js | lib/shared/addon/components/empty-table/component.js | import { inject as service } from '@ember/service';
import Component from '@ember/component';
import layout from './template';
export default Component.extend({
layout,
app: service(),
scope: service(),
classNames: ['row border-dash'],
showNew: true,
disabled: false,
ctx: 'projectId', // or clusterId
}... | JavaScript | 0.000005 | @@ -203,16 +203,33 @@
vice(),%0A
+ app: service(),
%0A class
|
3202d09db9e2388f68283554ad2817d27e7b69c2 | add js to make center of map responsive | source/javascripts/directory.js | source/javascripts/directory.js | (function() {
var handler = Gmaps.build('Google');
// console.dir(handler);
var mapOptions = $('meta[name=mapOptions]').attr('content');
var locations = $('meta[name=locations]').attr('content');
var categories = $('meta[name=categories]').attr('content');
var markerLocations = [];
var filteredLocations... | JavaScript | 0 | @@ -4686,16 +4686,238 @@
ions);%0A%0A
+ google.maps.event.addDomListener(window, %22resize%22, function() %7B%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0var center = handler.getMap().getCenter();%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0google.maps.event.trigger(handler.getMap(), %22resize%22);%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0handler.ge... |
142cc761aa23044a97bca78a7779506d235a65ff | Remove UpgradeModal | packages/components/containers/payments/PlansSection.js | packages/components/containers/payments/PlansSection.js | import React, { useState, useEffect } from 'react';
import { c } from 'ttag';
import {
SubTitle,
Alert,
DowngradeModal,
MozillaInfoPanel,
useSubscription,
Loader,
usePlans,
useApi,
useUser,
useModals,
useEventManager,
useNotifications
} from 'react-components';
import { ... | JavaScript | 0 | @@ -699,64 +699,8 @@
s';%0A
-import UpgradeModal from './subscription/UpgradeModal';%0A
impo
@@ -1113,77 +1113,8 @@
);%0A%0A
- const %5BshowUpgradeModal, setShowUpgradeModel%5D = useState(false);%0A
@@ -3035,303 +3035,45 @@
- if (isFree) %7B%0A setShowUpgradeModel(true);%0A %7D%0A... |
d7bc8bc780bd8d9cb675e4d448a3e4e1ec6f609f | Fix wrong parameter name check | packages/core/strapi/lib/core-api/service/pagination.js | packages/core/strapi/lib/core-api/service/pagination.js | 'use strict';
const _ = require('lodash');
const { has, toNumber, isUndefined, isPlainObject } = require('lodash/fp');
/**
* Default limit values from config
* @return {{maxLimit: number, defaultLimit: number}}
*/
const getLimitConfigDefaults = () => ({
defaultLimit: toNumber(strapi.config.get('api.rest.defaultL... | JavaScript | 0.000005 | @@ -1154,32 +1154,36 @@
on) %7C%7C has('page
+Size
', pagination);%0A
|
e5eecc9e4cd25c0e8a255c3039d0c5342aece6ad | Update gulpfile.js with better defaults | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync');
// Static Server / Watching files
gulp.task('serve', ['styles'], function() {
browserSync.init({
server: './'
});
gulp.watch('src/scss/**/*.scss'... | JavaScript | 0 | @@ -1,8 +1,104 @@
+// *************************************%0A// Gulpfile%0A// *************************************%0A%0A
'use str
@@ -113,16 +113,24 @@
ar gulp
+
= requir
@@ -149,16 +149,24 @@
ar sass
+
= requir
@@ -246,16 +246,17 @@
serSync
+
= requir
@@ -282,38 +282,333 @@
%0A//
-Stati... |
ba0c1c5f47a0254784bdf522f51cf36e3478d281 | Align Babel targets with browsers that have CSS grid support | assets/brunch-config.js | assets/brunch-config.js | exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: {
"js/app.js": /^js/,
"js/vendor.js": /^(?!js)/,
},
},
stylesheets: {
joinTo: "css/app.css",
order: {
after: ["web/static/css/app.css"], // concat app.css l... | JavaScript | 0 | @@ -1589,10 +1589,10 @@
x: %22
-49
+52
%22,%0A
@@ -1622,9 +1622,9 @@
: %225
-3
+7
%22,%0A
@@ -1651,16 +1651,18 @@
ari: %2210
+.3
%22,%0A
@@ -1686,9 +1686,9 @@
: %221
-4
+6
%22,%0A
|
0da6bb6419b260bdd0f733d871f75a4561bde0cb | Remove import from dictionary | source/views/dictionary/list.js | source/views/dictionary/list.js | // @flow
import React from 'react'
import {StyleSheet, RefreshControl, Platform} from 'react-native'
import {SearchableAlphabetListView} from '../components/searchable-alphabet-listview'
import {Column} from '../components/layout'
import {
Detail,
Title,
ListRow,
ListSectionHeader,
ListSeparator,
} from '../... | JavaScript | 0.000002 | @@ -52,24 +52,8 @@
eet,
- RefreshControl,
Pla
|
eb068c345fa34f865af56fd2dfe69fef23c57fe3 | Swap y axis coordinates to fix bug | jquery.flot.image.js | jquery.flot.image.js | /*
Flot plugin for plotting images, e.g. useful for putting ticks on a
prerendered complex visualization.
The data syntax is [[image, x1, y1, x2, y2], ...] where (x1, y1) and
(x2, y2) are where you intend the two opposite corners of the image to
end up in the plot. Image must be a fully loaded Javascript image (you
ca... | JavaScript | 0.000001 | @@ -5370,23 +5370,23 @@
sy
-1
+2
+= (sy
-2
+1
- sy
-1
+2
) *
@@ -5534,23 +5534,23 @@
sy
-2
+1
+= (sy
-2
+1
- sy
-1
+2
) *
@@ -5625,32 +5625,48 @@
%7D%0A
+
%0A
|
3becb8edbbe5644c56b08e0b64de7eb5cf819330 | fix connectors when inputs/outputs are undefined | packages/elements/src/input-connector-linkable/index.js | packages/elements/src/input-connector-linkable/index.js | import InputConnectorElement from '../input-connector/index.js';
const CONNECTORS = new Set();
let activeConnector = null;
/**
* Handle connector elements linking
*/
class InputConnectorLinkableElement extends InputConnectorElement {
constructor() {
super();
this.shadowRoot.querySelector('slot style').i... | JavaScript | 0.000014 | @@ -2470,32 +2470,96 @@
Connector.type &
+ InputConnectorLinkableElement.TYPE_INPUT %7C%7C hitConnector.type &
InputConnectorL
@@ -2587,22 +2587,19 @@
UTPUT ?
-active
+hit
Connecto
@@ -2602,19 +2602,22 @@
ector :
-hit
+active
Connecto
@@ -2647,18 +2647,20 @@
ector =
-h
i
+npu
tConnect
@@ -2665,56 +2665,28 ... |
73a48318a19a207c63f6d03ecea8ce35b7e2364a | Fix error when rendering limited account in web UI (#19413) | app/javascript/mastodon/components/avatar.js | app/javascript/mastodon/components/avatar.js | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
import classNames from 'classnames';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTyp... | JavaScript | 0 | @@ -1610,24 +1610,25 @@
bel=%7Baccount
+?
.get('acct')
|
26b66284d6442cb8e15beff8952bb0e208ac124d | update .jsdoc.js by add protos and remove double quotes (#71) | packages/google-devtools-cloudbuild/.jsdoc.js | packages/google-devtools-cloudbuild/.jsdoc.js | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -950,16 +950,32 @@
ild/src'
+,%0A 'protos'
%0A %5D,%0A
@@ -1202,17 +1202,16 @@
%7B%0A
-%22
outputSo
@@ -1219,17 +1219,16 @@
rceFiles
-%22
: false%0A
|
11b16b870615e4929ff17e8762faca9b068ec692 | Reset tile keys | player.js | player.js | var _ = require('lodash')
var inherits = require('inherits')
var aabb = require('aabb-2d')
var math = require('mathjs')
var transform = require('./transform.js')
var circle = require('./geo/circle.js')
var Collision = require('./collision.js')
var Fixmove = require('./fixmove.js')
var Automove = require('./automove.js'... | JavaScript | 0 | @@ -1584,45 +1584,8 @@
) %7B%0A
- var keysDown = keyboard.keysDown%0A
@@ -1616,16 +1616,25 @@
eypress(
+keyboard.
keysDown
@@ -1861,16 +1861,25 @@
compute(
+keyboard.
keysDown
@@ -1946,16 +1946,47 @@
= true%0A
+ self.movement.tile.reset()%0A
delt
|
f96020b2f8b62d2efca0d69321c785befbde3a7c | Fix DraftEditorPlaceholder shouldComponetUpdate | src/component/base/DraftEditorPlaceholder.react.js | src/component/base/DraftEditorPlaceholder.react.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
* @emails oncall+draft_js
*/
'use strict';
import type {DraftTextAlignment} from 'DraftTextAlig... | JavaScript | 0.000003 | @@ -1144,16 +1144,17 @@
%7C%0A
+!
shallowE
|
b6cb93a163fa14afd6589966fa7eb3905f90fc6e | remove logging from solver function | src/arithmetic/solveRational.js | src/arithmetic/solveRational.js | import * as mats from './matrices';
import { intMatrices, matrices, residueClassRing } from './types';
const iops = intMatrices;
const fops = matrices;
const p = 9999991;
const pops = mats.extend(residueClassRing(p), ['Integer'], true);
const invModP = M => {
const ops = pops;
const n = M.length;
const A = M.... | JavaScript | 0.000001 | @@ -1298,139 +1298,25 @@
cons
-ole.log(%60solve($%7BA%7D, $%7Bb%7D)%60);%0A const C = invModP(A);%0A console.log(%60 C = $%7BC%7D%60);%0A console.log(%60 A * C = $%7Bpops.times(A, C)%7D%60);%0A
+t C = invModP(A);
%0A c
@@ -1365,49 +1365,8 @@
b);
-%0A console.log(%60 nrSteps = $%7BnrSteps%7D%60);
%0A%0A
@... |
7ad4a158d6ba7876a340f0fd97a6299ea0997233 | update on start | job/index.js | job/index.js | var CronJob = require('cron').CronJob;
var moment = require('moment');
var updateData = require('./updateData');
var cleanData = require('./cleanData');
//var time = '0 */1 * * * *';
var twoHours = '0 */2 * * *';//2 hours
var sixHours = '0 */6 * * *'; // 6 hours
//var time = '00 30 3 * * *';
var clean = function() {
... | JavaScript | 0 | @@ -629,31 +629,19 @@
%0A%0Aclean(
-function() %7B%0A
+);%0A
update()
@@ -641,19 +641,16 @@
pdate();
-%0A%7D)
%0A%0Aupdate
|
e3ca70f8a0ba584e1e37c184a2c7d819ed12b782 | Add compile:typescript:aot task. Remove unnecessary tasks from watch task | gulpfile.js | gulpfile.js | "use strict";
const fs = require( "fs" );
const del = require( "del" );
const gulp = require( "gulp" );
const util = require( "gulp-util" );
const runSequence = require( "run-sequence" );
const sourcemaps = require( "gulp-sourcemaps" );
const ts = require( "gulp-typescript" );
const dts = require( "dts-generator" )... | JavaScript | 0.000168 | @@ -477,16 +477,62 @@
lint%22 );
+%0Aconst exec = require( %22child_process%22 ).exec;
%0A%0Alet co
@@ -778,16 +778,18 @@
ence(%0A%09%09
+%5B
%22clean:d
@@ -793,16 +793,36 @@
n:dist%22,
+ %22clean:compiled%22 %5D,
%0A%09%09%5B %22co
@@ -837,16 +837,20 @@
pescript
+:aot
%22, %22prep
@@ -1285,32 +1285,194 @@
t ... |
7ad00ae0bbd599e742448a71ce4f83160490c6af | put a more recent strict_min_version | tools/manifests/firefox.js | tools/manifests/firefox.js | const {config} = require('node-config-ts');
module.exports = {
...require('./common.js'),
optional_permissions: ['tabs'],
applications: {
gecko: {
id: config.FirefoxId,
strict_min_version: '52.0',
},
},
};
| JavaScript | 0.000016 | @@ -210,10 +210,10 @@
n: '
-52
+84
.0',
|
177bdb56f18c5ce4d3d0215b5cf6e66febc371e9 | Add a check for history and replaceState. | src/auth.js | src/auth.js | window.extractToken = (hash) => {
const match = hash.match(/access_token=(\w+)/);
let token = !!match && match[1];
if (!token) {
token = localStorage.getItem('ello_access_token');
}
return token;
}
window.checkAuth = () => {
const token = extractToken(document.location.hash);
window.history.replaceSt... | JavaScript | 0 | @@ -287,16 +287,73 @@
.hash);%0A
+ if (window.history && window.history.replaceState) %7B%0A
window
@@ -438,16 +438,29 @@
thname)%0A
+ %7D else %7B%0A
docume
@@ -515,16 +515,20 @@
IE %3C 10%0A
+ %7D%0A
if (to
|
1f701b4ea816392af783333c66bf7d3c77899995 | add bet strategy | player.js | player.js | var NAME = "Crazy Penguins";
module.exports = {
VERSION: "0.0.6",
bet_request: function (game_state, bet) {
var player = game_state.players[game_state.in_action];
var maxbet = game_state.players.reduce(function (p, n) { return n.bet > p ? n.bet : p }, 0);
if (player.hole_cards[0] && player.hole_cards... | JavaScript | 0.000006 | @@ -374,24 +374,94 @@
%5B1%5D.rank) %7B%0A
+ bet(player.stack);%0A %7D else if (maxbet %3C player.stack / 10) %7B%0A
bet(ma
|
8c2b69876fc028d5e3be65cb53f2f84f5a239330 | Fix variable names in two loops. | src/chat/narrowsReducer.js | src/chat/narrowsReducer.js | /* @flow strict-local */
import union from 'lodash.union';
import type { NarrowsState, Action } from '../types';
import {
DEAD_QUEUE,
LOGOUT,
LOGIN_SUCCESS,
ACCOUNT_SWITCH,
MESSAGE_FETCH_COMPLETE,
EVENT_NEW_MESSAGE,
EVENT_MESSAGE_DELETE,
EVENT_UPDATE_MESSAGE_FLAGS,
} from '../actionConstants';
import {... | JavaScript | 0 | @@ -1059,19 +1059,24 @@
const
-msg
+newState
= %7B%7D;%0A
@@ -1462,27 +1462,32 @@
true;%0A
-msg
+newState
%5Bkey%5D = %5B...
@@ -1537,19 +1537,24 @@
%7B%0A
-msg
+newState
%5Bkey%5D =
@@ -1581,32 +1581,8 @@
%7D);%0A
- const newState = msg;%0A
re
@@ -1705,23 +1705,19 @@
const
-updated
+ne... |
dfb97e28de0104012fecbc20d58bba1577e25655 | Test for proxy to be applied | spec/Layers/BasemapLayerSpec.js | spec/Layers/BasemapLayerSpec.js | /* eslint-env mocha */
describe('L.esri.BasemapLayer', function () {
function createMap () {
// create container
var container = document.createElement('div');
// give container a width/height
container.setAttribute('style', 'width:500px; height: 500px;');
// add container to body
document.b... | JavaScript | 0 | @@ -3069,32 +3069,305 @@
bogus');%0A %7D);%0A%0A
+ it('will prepend proxy when fetching tiles if necessary', function () %7B%0A var proxyURL = 'http://example.proxy';%0A var baseLayer = L.esri.basemapLayer('Streets', %7Bproxy: proxyURL%7D);%0A map.addLayer(baseLayer);%0A expect(baseLayer._url).to.contain... |
b7151e690e22e30832dd309ce37987beef63bba1 | update some. remove unnecessary return statement | src/understreck.some/index.js | src/understreck.some/index.js | import isArray from '../understreck.isarray'
import isFunction from '../understreck.isfunction'
function some (collection, predicate) { //, thisArg
const length = collection ? collection.length : 0
if (isArray(collection) && isFunction(predicate)) {
let index = -1
while (++index < length) {
if (predi... | JavaScript | 0.999246 | @@ -378,25 +378,8 @@
%7D%0A
- return false%0A
%7D%0A
|
d67b5967a5ec833a928dd328b9e247cc2094b183 | Scroll to top after hitting button | src/components/narrative/MobileNarrativeDisplay.js | src/components/narrative/MobileNarrativeDisplay.js | import React from "react";
import { connect } from "react-redux";
import queryString from "query-string";
import { changePage, EXPERIMENTAL_showMainDisplayMarkdown } from "../../actions/navigation";
import { TOGGLE_NARRATIVE } from "../../actions/types";
import {
linkStyles,
MobileBannerTop,
MobileBannerBottom,
... | JavaScript | 0.998932 | @@ -516,16 +516,117 @@
T = 50;%0A
+%0Aconst scrollToTop = () =%3E %7B%0A document.getElementById('MobileNarrativeBlock').scrollIntoView();%0A%7D;%0A%0A
/**%0A * A
@@ -2861,24 +2861,46 @@
e%0A %7D));
+%0A%0A scrollToTop();
%0A %7D;%0A
|
d0181114bf8572b5152743e4d032865475dce9dd | Optimize startsWith algorithm in HeaderCtrl | app/scripts/controllers/header-controller.js | app/scripts/controllers/header-controller.js | 'use strict';
/**
* @ngdoc function
* @name otaniemi3dApp.controller:HeaderCtrl
* @description
* # HeaderCtrl
* Controller of the otaniemi3dApp
*/
angular.module('otaniemi3dApp')
.controller('HeaderCtrl', function ($scope, $location, $rootScope) {
// Check if current URL-location matches the highlighted i... | JavaScript | 0 | @@ -418,17 +418,21 @@
.path().
-i
+lastI
ndexOf(v
@@ -442,16 +442,19 @@
Location
+, 0
) === 0;
|
766f788534822d52fea329b0ad8a89650dddce4b | Drop unnecessary dataType check. | js/Column.js | js/Column.js | /*eslint-env browser */
/*globals require: false, module: false */
'use strict';
var React = require('react');
var _ = require('./underscore_ext');
var MenuItem = require('react-bootstrap/lib/MenuItem');
var SplitButton = require('react-bootstrap/lib/SplitButton');
var Resizable = require('react-resizable').Resizable;... | JavaScript | 0 | @@ -1338,50 +1338,8 @@
%3E 1
- && column.dataType !== 'geneProbesMatrix'
) %7B%0A
|
ad5396938d329e79daa3195423ef627aff95fa05 | Fix wildcard template inclusion from dynamic require | src/scripts/shell/content/content.controller.js | src/scripts/shell/content/content.controller.js | export default class ContentController {
constructor(dimActivityTrackerService, dimState, ngDialog, $rootScope, loadingTracker, dimPlatformService, $interval, hotkeys, $timeout, dimStoreService, dimXurService, dimSettingsService, $window, $scope, $state, dimFeatureFlags, dimVendorService) {
'ngInject';
var v... | JavaScript | 0 | @@ -1,8 +1,388 @@
+import settingsTemplate from 'app/views/settings.template.html';%0Aimport aboutTemplate from 'app/views/about.template.html';%0Aimport supportTemplate from 'app/views/support.template.html';%0Aimport filtersTemplate from 'app/views/filters.template.html';%0Aimport xurTemplate from 'app/views/xur.temp... |
95711b3fc86b247383306c39ad42ebab520dec38 | break up post into smaller functions. | src/server/routes/film.js | src/server/routes/film.js | const express = require('express');
const path = require('path');
const Film = require('../model/Film');
const filmData = require('../methods/getFilmData/FilmData');
const script = require('../methods/script');
const getBechdelResults = require('../methods/bechdel/getBechdelResults');
const multer = require('multer');
... | JavaScript | 0 | @@ -1436,378 +1436,52 @@
nst
-handleResponse = (res, data) =%3E %7B%0A%09return res.json(data);%0A%7D;%0A%0Aconst handlePostFilm = async (req, res) =%3E %7B%0A%09const %7B file %7D = req;%0A%09const scriptPath = file.path;%0A%0A%09if (fileWasNotUploadedCorrectly(file)) %7B%0A%09%09return handleError
+processScript = ... |
81020cfce422a230b75b3c8e9371a5cae925fbaa | Connect behaviour : remove state, use forceUpdate | src/behaviours/store/connect.js | src/behaviours/store/connect.js | import {isArray, isFunction} from 'lodash/lang';
import {capitalize} from 'lodash/string'
import {keys} from 'lodash/object';
import React, {Component} from 'react';
// - Provide the component
// - Provide the store configuration `[{store: yourStore, properties: ['property1', 'property2']}]`
// - Provide a function to... | JavaScript | 0 | @@ -1,16 +1,17 @@
import %7B
+
isArray,
@@ -21,16 +21,17 @@
Function
+
%7D from '
@@ -52,16 +52,17 @@
import %7B
+
capitali
@@ -63,16 +63,17 @@
pitalize
+
%7D from '
@@ -95,20 +95,22 @@
import %7B
+
keys
+
%7D from '
@@ -140,16 +140,17 @@
React, %7B
+
Componen
@@ -150,16 +150,17 @@
omponent
+
%7D... |
795d9019504759733dc0c435b6c146874e8badc9 | revert value for the fieldByFormat.v2 (set the "deps" value again) | packages/decl/lib/stringify.js | packages/decl/lib/stringify.js | 'use strict';
const assert = require('assert');
const JSON5 = require('json5');
const format = require('./format');
const DEFAULTS = { exportType: 'json', space: 4 };
// different format exports declaration in different fields
// and this specific point is used for detecting input format
// if it isn't passed. This... | JavaScript | 0 | @@ -450,16 +450,20 @@
v2: '
+deps
'%0A%7D;%0A%0Aco
|
bcd38a4c67ddb54069da16344da5571e6eb12447 | Fix lint error | tests/unit/move-test.js | tests/unit/move-test.js | import { run } from '@ember/runloop';
import { module, test } from 'qunit';
import Sprite from 'ember-animated/-private/sprite';
import { Move } from 'ember-animated/motions/move';
import {
equalBounds,
approxEqualPixels,
visuallyConstant,
} from '../helpers/assertions';
import { MotionTester, TimeControl } from ... | JavaScript | 0.000035 | @@ -5227,15 +5227,14 @@
ng:
-(v)
+v
=%3E
+(
v %3C
@@ -5249,16 +5249,18 @@
: 2 - v
+),
%0A %7D);
|
4f2a49335f3fc2d03e052c91746ec88eb750e3ba | Add docs | src/services/domMocker.js | src/services/domMocker.js | window.getJasmineRequireObj().domMocker = function () {
var oldDocument,
getElementById = function (parent, id) {
var children = parent.childNodes,
child,
result,
i;
for (i = 0; i < children.length; i++) {
child = chil... | JavaScript | 0.000001 | @@ -1,8 +1,81 @@
+/**%0A * Service to mock the document API%0A *%0A * @constructor domMocker%0A */%0A
window.g
@@ -1784,32 +1784,120 @@
ts;%0A %7D;%0A%0A
+ /**%0A * @param %7BHTMLElement%7D dom Virtual dom%0A * @memberof domMocker%0A */%0A
this.mockWit
@@ -3862,24 +3862,67 @@
%7D;%0A ... |
50a6c1f907194606257e25fb54acbf3fdaf2e532 | fix broken formatting | planet/js/StringHelper.js | planet/js/StringHelper.js | // Copyright (c) 2018 Euan Ong
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the The GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
// You should have r... | JavaScript | 0.000041 | @@ -706,19 +706,18 @@
Planet%22
+)
,
-_(
%22data-to
@@ -714,33 +714,32 @@
),%22data-tooltip%22
-)
%5D,%0A %5B%22pla
@@ -779,19 +779,18 @@
om file%22
+)
,
-_(
%22data-to
@@ -787,33 +787,32 @@
),%22data-tooltip%22
-)
%5D,%0A %5B%22pla
@@ -843,19 +843,18 @@
project%22
+)
,
-_(
%22data-to
@@ -85... |
29fabb5e8bb9327514cd1f56c2aea84c25c067f8 | fix depreciated geo url | src/belt.js | src/belt.js | const request = require('request');
const config = require('./config');
const db = require('./db');
const { promisify } = require('util');
const reqAsync = promisify(request);
const path = require('path');
const debug = require('./debug');
const REGEX_RAW_GIST_URL = /^https?:\/\/gist\.githubusercontent\.com\/(.+?\/[0-9... | JavaScript | 0 | @@ -526,30 +526,38 @@
http
+s
://
-freegeoip.net/json/
+api.ipgeolocation.io/ipgeo
';%0A%0A
@@ -2682,32 +2682,113 @@
ip =%3E %7B%0A try %7B%0A
+ const geourl = %60$%7BGEO_IP%7D?apiKey=$%7Bprocess.env.GEO_KEY%7D&ip=$%7Bip%7D&fields=geo%60%0A
const res =
@@ -2813,19 +2813,14 @@
rl:
-GEO_IP + ip
+geourl
,... |
8b89a3cfbf419866673067b647eca69c06e3a737 | update Tbody | src/_Tbody/Tbody.js | src/_Tbody/Tbody.js | /**
* @file Tbody component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
// Components
import Tr from '../_Tr';
// Statics
import HorizontalAlign from '../_statics/HorizontalAlign';
import SelectMode from '../_statics/SelectMode'... | JavaScript | 0.000001 | @@ -1249,37 +1249,36 @@
eEnter = (e, row
-Index
+Data
) =%3E %7B%0A c
@@ -1345,21 +1345,20 @@
over(row
-Index
+Data
);%0A %7D
@@ -1390,19 +1390,8 @@
= (
-e, rowIndex
) =%3E
@@ -7709,21 +7709,16 @@
hoverRow
-Index
: PropTy
@@ -7717,30 +7717,30 @@
: PropTypes.
-number
+object
,%0A startI
|
45e59032265587c79161e59333419ef34a6818b1 | fix uninitialised state and eventlistener leak | src/components/views/rooms/RoomUpgradeWarningBar.js | src/components/views/rooms/RoomUpgradeWarningBar.js | /*
Copyright 2018 New Vector 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, software
... | JavaScript | 0.000001 | @@ -10,16 +10,21 @@
ght 2018
+-2020
New Vec
@@ -999,24 +999,103 @@
ed,%0A %7D;%0A%0A
+ constructor(props) %7B%0A super(props);%0A this.state = %7B%7D;%0A %7D%0A%0A
componen
@@ -1371,24 +1371,205 @@
ts);%0A %7D%0A%0A
+ componentWillUnmount() %7B%0A const cli = MatrixClientPe... |
0820ad27b0f7b6a29614f03f2570c99e50a4f5a7 | Package settings now read from package file in parent folder | plugin.js | plugin.js | var through = require('through2')
var gutil = require('gulp-util')
var superagent = require('superagent')
var extend = require('extend')
var PluginError = gutil.PluginError
var defaultConfig = {
port: 23956
}
function gulpVSDTE(config) {
var options = extend({}, defaultConfig, config || {});
var fi... | JavaScript | 0 | @@ -130,16 +130,53 @@
extend')
+%0Avar pkg = require('../package.json')
%0A%0Avar Pl
@@ -226,16 +226,23 @@
onfig =
+extend(
%7B%0A po
@@ -252,16 +252,39 @@
23956%0A%7D
+, pkg.notifyDte %7C%7C %7B%7D);
%0A%0Afuncti
|
0009f646092c5e0ead10b0f491f10ba1a74c6506 | Access the array, not the item! | src/client/vogue-client.js | src/client/vogue-client.js | // Vogue - Client
// Copyright (c) 2011 Andrew Davey (andrew@equin.co.uk)
(function () {
var script,
hop = Object.prototype.hasOwnProperty,
head = document.getElementsByTagName("head")[0];
function vogue() {
var stylesheets,
socket = io.connect(script.rootUrl);
/**
* Watch for all... | JavaScript | 0.000001 | @@ -4177,16 +4177,17 @@
eet(link
+s
%5Bi%5D)) co
|
fcd8979670c80ca156b233200b2fe3ee28c59238 | change wzrd.in to own fork | src/belt.js | src/belt.js | const request = require('request');
const config = require('./config');
const db = require('./db');
const {promisify} = require('util');
const reqAsync = promisify(request);
const path = require('path');
const debug = require('./debug');
const REGEX_RAW_GIST_URL = /^https?:\/\/gist\.githubusercontent\.com\/(.+?\/[0-9a-... | JavaScript | 0 | @@ -628,15 +628,33 @@
s://
-wzrd.in
+umdfied-cdn.herokuapp.com
/sta
|
ea63835e905fa9205ae5123e6bed8e26d9a9af79 | Fix incorrect response in unlock | packages/components/containers/api/ApiProvider.js | packages/components/containers/api/ApiProvider.js | import { useReducer, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import { updateServerTime } from '@proton/crypto';
import configureApi from '@proton/shared/lib/api';
import {
getApiError,
getApiErrorMessage,
getIsOfflineError,
getIsUnreachableError,
} from '@proton/shared/lib... | JavaScript | 0.998882 | @@ -3188,23 +3188,45 @@
current(
+%7B ...
options
+, output: 'raw' %7D
));%0A
|
a6a8951c64f37ad9d813819dfbc80a543ef19314 | Remove timeout from runTestcafe | packages/core/resolve-scripts/src/run_testcafe.js | packages/core/resolve-scripts/src/run_testcafe.js | import { getInstallations } from 'testcafe-browser-tools'
import fetch from 'isomorphic-fetch'
import path from 'path'
import respawn from 'respawn'
import fsExtra from 'fs-extra'
import webpack from 'webpack'
import spawnAsync from './spawn_async'
import getWebpackConfigs from './get_webpack_configs'
import writePack... | JavaScript | 0.000001 | @@ -2950,37 +2950,16 @@
await
-Promise.race(%5B%0A
new Prom
@@ -3004,67 +3004,8 @@
00))
-,%0A new Promise(resolve =%3E server.stop(resolve))%0A %5D)
%0A %7D
@@ -3035,29 +3035,8 @@
ait
-Promise.race(%5B%0A
new
@@ -3085,67 +3085,8 @@
00))
-,%0A new Promise(resolve =%3E server.stop(re... |
554fbc6dc63c1d1e418f470330b03b123b006084 | tweak width of alignment track qual display | src/JBrowse/View/Track/Alignments.js | src/JBrowse/View/Track/Alignments.js | define( ['dojo/_base/declare',
'dojo/_base/array',
'JBrowse/Util',
'JBrowse/View/Track/HTMLFeatures'
],
function( declare, array, Util, HTMLFeatures ) {
return declare( HTMLFeatures,
/**
* @lends JBrowse.View.Track.Alignments
*/
{
constructor: function() {
},
... | JavaScript | 0 | @@ -8131,17 +8131,17 @@
.round(6
-5
+0
/fieldWi
|
3c091a8fa54541db7ca48d37678f99c7cf0d04a0 | Add event listener for convert button click | js/FatTweet.class.js | js/FatTweet.class.js | class FatTweet {
constructor(){
this.processTweetBoxes();
}
processTweetBoxes(){
var FT = this;
var $tweetBoxes = $('.tweet-box[name="tweet"]:not(.fat-tweet-processed)');
if(!$tweetBoxes.length) return;
$tweetBoxes
.addClass('fat-tweet-processed')
... | JavaScript | 0 | @@ -59,24 +59,245 @@
eetBoxes();%0A
+ var FT = this;%0A $('body').on('click', '.fat-tweet-convert-text', function(e)%7B%0A e.preventDefault();%0A var $form = $(this).closest('form');%0A FT.convertText($form);%0A %7D);%0A
%7D%0A pr
|
3f04cce7ffea23df2735588c7197823f6474c522 | Remove unused dependencies from main controller | src/client/app/newrelic/main.js | src/client/app/newrelic/main.js | (function() {
"use strict";
/* @ngInject */
function MainController($scope, $log, poller, localStorageService, User,
BoxService, ServerPoller, HEALTH_CHECK_RANK, GROUP_POLLING_CONFIG,
$, _) {
$scope.applications = {};
$scope.servers = {};
$scope.size = {};
... | JavaScript | 0.000001 | @@ -91,37 +91,8 @@
log,
- poller, localStorageService,
Use
|
1f7644147cc413491b9e998435cf73efb7a1fe75 | make purge-translations windows compatible | gulpfile.js | gulpfile.js | const gulp = require('gulp');
const webpack = require('webpack');
const webpackStream = require('webpack-stream');
const mainWebpackConfig = require('./source/main/webpack.config');
const rendererWebpackConfig = require('./source/renderer/webpack.config');
const shell = require('gulp-shell');
const electronConnect = re... | JavaScript | 0 | @@ -1822,12 +1822,12 @@
k('r
-m -r
+imra
f ./
|
be7273a7704830f3e9a8e8c4b78903af75020f15 | add start timer function | js/script.js | js/script.js | // Declare global variables
var mainTimer = document.getElementById('startTimer');
var timerState = document.getElementById('displayTimer');
// Event handler for user clicks on main timer
mainTimer.addEventListener('click', startTimer);
function startTimer() {
if (timerState.style.zIndex == '-1') {
timerS... | JavaScript | 0.000002 | @@ -133,16 +133,113 @@
Timer');
+%0Avar currentTimer = document.getElementById('displayTimer').innerHTML;%0Aconsole.log(currentTimer);
%0A%0A// Eve
@@ -315,21 +315,24 @@
click',
-start
+activate
Timer);%0A
@@ -341,21 +341,24 @@
unction
-start
+activate
Timer()
@@ -502,8 +502,85 @@
%7D%0A%0A%7D
+%0A%0Afunc... |
11e5e994cf9e2a98fcc900d09c68e0452095af10 | Add docs.rs integration | app/routes/crate/version.js | app/routes/crate/version.js | import Ember from 'ember';
import ajax from 'ic-ajax';
export default Ember.Route.extend({
refreshAfterLogin: Ember.observer('session.isLoggedIn', function() {
this.refresh();
}),
model(params) {
const requestedVersion = params.version_num === 'all' ? '' : params.version_num;
cons... | JavaScript | 0 | @@ -2451,32 +2451,524 @@
e));%0A %7D%0A%0A
+ if (!crate.get('documentation')) %7B%0A let crateName = crate.get('name');%0A let crateVersion = params.version_num;%0A ajax(%60https://docs.rs/crate/$%7BcrateName%7D/$%7BcrateVersion%7D/builds.json%60)%0A .then(... |
d83a0b04f6f44356f6106a82159cf1bdfc561191 | fix for swagger | packages/custom/icapi/server/controllers/users.js | packages/custom/icapi/server/controllers/users.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
User = mongoose.model('User'),
utils = require('./utils');
/**
* Find all users
*/
exports.all = function(req, res) {
var query = {};
var Query = User.find(query);
Query.limit(200 || req.query.limit);
Query.exec(function(err, u... | JavaScript | 0 | @@ -769,16 +769,56 @@
rch!!!!%0A
+%09res.status(200);%0A%09return res.json(%5B%5D);%0A
%09var que
|
3d296db30ac5bf3ee68d67ebcd4a1f58e97a1ba4 | use setUrlParameters for tests fo viewPossibleMovements | src/main/webapp/inc/js/app/tests/game/ctrl.spec.js | src/main/webapp/inc/js/app/tests/game/ctrl.spec.js | 'use strict';
describe('game', function () {
var $scope, controller, $httpBackend;
var square;
var cardName = 'King';
var cardColor = 'Red';
var createGameUrl = '/aot/rest/createGame';
var createGameMethod = 'POST';
var viewPossibleMovementsUrl = '/aot/rest/getPossibleSquares?card_color='... | JavaScript | 0 | @@ -304,60 +304,9 @@
ares
-?card_color=' + cardColor + '&card_name=' + cardName
+'
;%0A
@@ -1670,32 +1670,270 @@
%7D);%0A%0A
+ var viewPossibleMovementsParameters = %7Bcard_color: cardColor, card_name: cardName%7D;%0A var viewPossibleMovementsUrlWithParameters = setUrlParameters(viewPossib... |
8c38705cf69221c9903a25a9d938a41c8dab825e | Add RawConsoleLogger to output log records to console | handlers.js | handlers.js | var LEVELS = require('./levels');
var compileFormat = require('./utils/message');
/**
* Basic handler. Does not actually handle anything.
* Usefull for extensions and stubs. All implementors must implement _handle(record)
* method. record instance shared among all handlers, do not modify it.
*
*/
function NullHa... | JavaScript | 0 | @@ -3476,24 +3476,630 @@
leHandler;%0A%0A
+/**%0A * Like ConsoleHandler but output whole record to console. This can be usefull%0A * in browser to see inspections.%0A */%0Afunction RawConsoleHandler() %7B%0A BaseHandler.call(this);%0A%7D%0A%0ARawConsoleHandler.prototype = Object.create(BaseHandler.prototype);%0ARawCo... |
10bc0172efdfabd95c2c355883218e6cacfb055f | Add trivia | js/script.js | js/script.js | var trivia = [
"My favorite super hero is Spider-man.",
"My favorite color is red (that's probably obvious).",
"The first programming language I mastered was GML (Game Maker Language).",
"I chose Bulbasaur as my first pokemon.",
"I sang Mr. Grinch in a talent show; I didn't win.",
"I have an army of D... | JavaScript | 0.999411 | @@ -731,16 +731,104 @@
see it!%22
+,%0D%0A %22The copyright statement at the bottom is only there to make the page look better.%22
%0D%0A%5D%0D%0A%0D%0A$
|
5ebcc15da506b87cb82d8dad853e363459a67d35 | Add missing resolve parameter to refresh_all | src/ggrc/assets/javascripts/models/refresh_queue.js | src/ggrc/assets/javascripts/models/refresh_queue.js | /*!
Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
Created By: brad@reciprocitylabs.com
Maintained By: brad@reciprocitylabs.com
*/
(function(can, $) {
/* RefreshQueue
*
* enqueue(obj, force=fa... | JavaScript | 0 | @@ -5424,32 +5424,37 @@
).then(function(
+items
) %7B%0A
@@ -5461,32 +5461,37 @@
dfd.resolve(
+items
);%0A
|
a29fe2e87d7518cb8fae2a5fc918076dfd096e65 | Update script.js | js/script.js | js/script.js | $(document).ready(function() {
$('.scroll-link').on('click', function(event){
event.preventDefault();
var sectionID = $(this).attr("data-id");
scrollToID('#' + sectionID, 750);
});
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
$(".timeline-text-container").on("click", func... | JavaScript | 0.000002 | @@ -451,24 +451,147 @@
%09%7D else %7B%0A%09%09
+$('.project').hover(function()%7B%0A%09%09%09$(this).find(%22.hover%22).slideToggle();%0A%09%09//$(this).find(%22.hover%22).fadeIn(300);%0A%09%09%7D);%0A%09%09/*
$(%22.timeline
@@ -886,16 +886,18 @@
);%0A%09%09%7D);
+*/
%0A%09%7D%0A%0A%09na
|
70590c266ba3d20ad24ff6745cad277e79f65646 | fix database update saga | app/sagas/databaseUpdate.js | app/sagas/databaseUpdate.js | import firebaseApp from '../api/firebase'
import { eventChannel, buffers } from 'redux-saga'
import { put, take } from 'redux-saga/effects'
import { fetchDataSuccess, fetchDataFailure } from '../actions/index'
export default function * databaseUpdate () {
const chan = eventChannel(emit => {
const connectionRef =... | JavaScript | 0 | @@ -86,16 +86,49 @@
x-saga'%0A
+import %7B isEmpty %7D from 'lodash'%0A
import %7B
@@ -232,14 +232,8 @@
ions
-/index
'%0A%0Ae
@@ -411,16 +411,87 @@
pshot =%3E
+ %7B%0A // emitted value can't be null when there are no recipes%0A
emit(sn
@@ -502,17 +502,29 @@
ot.val()
-)
+ %7C%7C %7B%7D)%0A %7D
)%0A... |
3f5b2580957e240d927ea5a362eddb932c64dd9b | Add youtube video to !w.lewd | src/commands/image/lewd.js | src/commands/image/lewd.js | /**
* Created by Julian/Wolke on 15.11.2016.
*/
let RRACommand = require('../../structures/rraCommand');
class LewdImage extends RRACommand {
constructor({t}) {
super();
this.cmd = 'lewd';
this.cat = 'image';
this.needGuild = false;
this.t = t;
this.accessLevel = 0... | JavaScript | 0.000002 | @@ -48,19 +48,46 @@
*/%0A%0Alet
-RRA
+axios = require('axios');%0Alet
Command
@@ -118,12 +118,9 @@
res/
-rraC
+c
omma
@@ -153,11 +153,8 @@
nds
-RRA
Comm
@@ -306,16 +306,16 @@
.t = t;%0A
-
@@ -341,16 +341,492 @@
0;%0A %7D
+%0A%0A async run(msg) %7B%0A if (Math.random() %3E 0.7)%0A ... |
ec1e977084e805538951c52c14dfefa949a3e9ed | Fix "invalid weak map key" error when nodes in the layout inspector are empty strings | src/ui/components/elements-inspector/sidebar.js | src/ui/components/elements-inspector/sidebar.js | /**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import type {Element} from './ElementsInspector.js';
import type {PluginClient} from '../../../plugin';
import type Client from '../../../... | JavaScript | 0.000825 | @@ -3935,28 +3935,195 @@
ON,
-using string instead
+type is required to be an object%0A console.error(%0A %60ElementsInspector unable to parse extra section: $%7BextraSection%7D%60,%0A );%0A data = %7B%7D;
%0A
|
a6e47e408f9988f73993b84fa3d32b9dc45c1bc6 | add lazy-load margin so images load 100px below fold | js/agency.js | js/agency.js | $(document).ready(function() {
$("#texty").addClass("scrolling");
var topBtn = false;
$("body").scroll(function() {
if ($("#cor").isInViewport()) {
$("#cor").addClass("slideLeft");
} else if ($("#tow").isInViewport()) {
$("#tow").addClass("slideRight");
} else if ($("#sky").isInViewport()... | JavaScript | 0 | @@ -6046,19 +6046,68 @@
callback
+, %7B%0A rootMargin: %22200px%22,%0A threshold: 0%0A %7D
);%0A
-
nodes.
@@ -6208,160 +6208,4 @@
();%0A
-%0A%0Avar fontsUsed = %5B%0A %22Questrial%22,%0A %22Fjalla One%22, %0A %22Roboto Slab%22, %0A %22Helvetica Neue%22, %0A %22Helvetica%22, %0A %22Arial%22, %0A %22s... |
34fd1b9b81c2d248cafce92e02c14af3d79b60c2 | Put brackets around a statement to ensure proper order and combinations. | src/api/property.js | src/api/property.js | import assignSafe from '../util/assign-safe';
import dashCase from '../util/dash-case';
import data from '../util/data';
import maybeThis from '../util/maybe-this';
import notify from './notify';
// TODO: Lean out option normalisation.
function property (name, prop) {
var internalGetter, internalSetter, internalValu... | JavaScript | 0 | @@ -3457,33 +3457,20 @@
op.init
-!== undefined
&&
+(
!prop.at
@@ -3505,16 +3505,17 @@
p.attr))
+)
%7B%0A e
|
8193f309dc9c8d434e4244085496e65edc7b7165 | Update comment/documentation | lib/OpenLayers/Format/XML/VersionedOGC.js | lib/OpenLayers/Format/XML/VersionedOGC.js | /* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Format/XML.js
* @requires OpenLayers/... | JavaScript | 0 | @@ -484,16 +484,505 @@
rsions.%0A
+ *%0A * To enable checking if parsing succeeded, you will need to define a property%0A * called errorProperty on the parser you want to check. The parser will then%0A * check the returned object to see if that property is present. If it is, it%0A * assumes the parsing was successful.... |
36e30170acb856d092c689cc90bd3adf0fa401db | Update arrays.js | js/arrays.js | js/arrays.js | // ---------------------------------------------------------------
// Arrays
// @Author: Mark McCann
// @License: None, Public Domain
// ---------------------------------------------------------------
/**
* removes duplicates from an array
* @param {array} array
* @return {array}
*/
var uniqueArray = function (a... | JavaScript | 0.000001 | @@ -1078,8 +1078,345 @@
y( a );%0A
+%0A/**%0A * loops through an array runs callback and passes in key and value%0A * @param %7Barray%7D the array%0A * @param %7Bfunction%7D callback function%0A * @param %7Bobject%7D optional scope parameter %0A */%0Avar forEach = function ( array, callback, scope ) %7B%0A for (var... |
b4266b7eaca3604223fa0fca4b7e1dc33bb4d669 | check validation of token first | src/javascript/binary/static/virtual_acc_opening.js | src/javascript/binary/static/virtual_acc_opening.js | pjax_config_page("new_account/virtualws", function(){
return {
onLoad: function() {
if (getCookieItem('login')) {
window.location.href = page.url.url_for('user/my_accountws');
return;
}
Content.populate();
var virtualForm = $('#virtual-form');
handle_residence_st... | JavaScript | 0 | @@ -1807,16 +1807,83 @@
sidence)
+ && Validate.validateToken(verificationCode, errorVerificationCode)
)%7B%0A
|
bb1256dfc57de2af57295b4d02e1b33da5dc4ceb | Add move to top logic. | src/focus/controlbar.js | src/focus/controlbar.js | console.log( "=== simpread focus controlbar load ===" )
var fcontrol = ( function() {
var template = '<div class="ks-simpread-constrolbar">\
<ul>\
<li><span class="topicon"></span></li>\
<li><span class="settingicon"></span></li>\
... | JavaScript | 0 | @@ -88,16 +88,31 @@
var
+timer,%0A
template
@@ -1917,32 +1917,63 @@
p active ====%22)%0A
+ moveTop();%0A
@@ -1975,32 +1975,32 @@
break;%0A
-
@@ -2314,16 +2314,820 @@
%7D)
+;%0A /*$( document ).scroll( function( event ) %7B%0A... |
96ad6333ef8c595a3fa4b1885711c55ecc76b4ed | Abort creating geofences if no triggers are found | js/api/Geofencing.js | js/api/Geofencing.js | import _ from 'lodash';
import Store from '../data/Store';
import realm from '../data/Realm';
import { BackgroundGeolocation } from './BackgroundProcess';
import { loadCachedGeofenceTriggers } from './Triggers';
import { showToast, notifyOnBackground } from './Notifications';
// Cache a MapPage component for to updat... | JavaScript | 0 | @@ -4172,16 +4172,208 @@
s...%60);%0A
+ if (triggerGeofences.length === 0) %7B%0A console.log(%60Unable to add geofences: No triggers found.%60);%0A if (callback) %7B%0A callback();%0A %7D%0A return;%0A %7D%0A%0A
su
|
4a02bd15057030b956c53102cf3c4f250dbb84e9 | use array funciton | src/getLatestVersion.js | src/getLatestVersion.js | /**
* Created by kimxogus on 2016. 12. 15..
*/
import { isNil, defaultsDeep } from "lodash";
import { Platform } from "react-native";
import Native from "./native";
let latestVersion;
// Used by iOS Only
let appName;
let appID;
export function setAppName(_appName) {
appName = _appName;
}
export function setAppID... | JavaScript | 0.006988 | @@ -1556,23 +1556,8 @@
s =%3E
- %7B%0A return
res
@@ -1563,23 +1563,16 @@
s.text()
-;%0A %7D
)%0A .t
@@ -1579,14 +1579,12 @@
hen(
-(
text
-)
=%3E
|
a0c23fbb3b6262d80ebae0d98d98b59870e31710 | add a conditional for armatureScale in skeletal animation | src/library_animations/parse-skeletal-animations.js | src/library_animations/parse-skeletal-animations.js | var mat4Multiply = require('gl-mat4/multiply')
var mat4Scale = require('gl-mat4/scale')
var mat4Transpose = require('gl-mat4/transpose')
module.exports = ParseLibraryAnimations
// TODO: parse interpolation
// TODO: Don't hard code attribute location
// TODO: Don't assume that joint animations are in order
// TODO: In... | JavaScript | 0 | @@ -1573,16 +1573,49 @@
oint(s)%0A
+ if (armatureScale) %7B%0A
@@ -1681,16 +1681,28 @@
eScale)%0A
+ %7D%0A
|
d2cb18e92384cb5fd9b8f85216d1230a721c6c4f | Set up user input validation | bin/webScript.js | bin/webScript.js | $( document ).ready(function() {
var stageNum = 1;
$( "#addStage" ).click(function() {
var newStage = "<li class='stage' ><h4>Stage " + stageNum + "</h4>Number of people <input type='number' class='people' min='0' style='width:50px'><br>Rule <input type='number' class='rule' min='0' style='width:50px'></li>"... | JavaScript | 0.000002 | @@ -645,50 +645,645 @@
var
-inputData = R.zip(peopleArray, ruleArray);
+sumPeople = 0%0A %09%09for (var i = 0; i%3CpeopleArray.length, i++)%7B%0A %09%09%09if (peopleArray%5Bi%5D === %22%22 %7C%7C ruleArray%5Bi%5D === %22%22)%7B%0A %09%09%09%09var emptyBox = true%0A %09%09%09%7D%0A %09%09%09sumPeople +=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.