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 |
|---|---|---|---|---|---|---|---|
a42850a15a6215bee18e22e608c60cd09ba20296 | update Row component | src/components/grid/Row.js | src/components/grid/Row.js | const Radium = require('radium');
const React = require('react');
const Row = React.createClass({
propTypes: {
style: React.PropTypes.object
},
render () {
const styles = this.styles();
return (
<div {...this.props} style={styles.component}>
{this.props.children}
</div>
);
... | JavaScript | 0 | @@ -1,38 +1,4 @@
-const Radium = require('radium');%0A
cons
@@ -64,438 +64,111 @@
%7B%0A
-propTypes: %7B%0A style: React.PropTypes.object%0A %7D,%0A%0A render () %7B%0A const styles = this.styles();%0A%0A return (%0A %3Cdiv %7B...this.props%7D style=%7Bstyles.component%7D%3E%0A %7Bthis.props.... |
949089caeac3a28025d028654f8c427d36ddc921 | Correct jshint | backend/config/express.js | backend/config/express.js | 'use strict';
/**
* Module dependencies.
*/
var express = require('express');
var mongoStore = require('connect-mongo')(express);
var flash = require('connect-flash');
var config = require('./config');
var path = require('path');
module.exports = function (app, env, passport, dbConnexion) {
app.set('showStackErro... | JavaScript | 0.998728 | @@ -1695,16 +1695,51 @@
ssion(%7B%0A
+ /*jshint camelcase: false */%0A
se
|
c318ea3b628914eab3af279d2c1b4e90e792cf15 | fix failing test due to undefined "params" in context | blueocean-dashboard/src/test/js/pipelines-spec.js | blueocean-dashboard/src/test/js/pipelines-spec.js | import React from 'react';
import { assert} from 'chai';
import sd from 'skin-deep';
import Immutable from 'immutable';
import Pipelines from '../../main/js/components/Pipelines.jsx';
import { pipelines } from './pipelines';
const
resultArrayHeaders = ['Name', 'Status', 'Branches', 'Pull Requests', '']
;
describ... | JavaScript | 0.000001 | @@ -400,16 +400,40 @@
%22%0A %7D;%0A%0A
+ const params = %7B%7D;%0A%0A
before
@@ -633,16 +633,36 @@
lines),%0A
+ params,%0A
@@ -671,16 +671,17 @@
config
+,
%0A
|
ca060ca3176f0db95c84fbfc0044ed374babebea | Remove line under the last sort by item | app/hotels/src/filter/order/OrderPopup.js | app/hotels/src/filter/order/OrderPopup.js | // @flow strict
import * as React from 'react';
import { View } from 'react-native';
import { ButtonPopup, Text, StyleSheet } from '@kiwicom/mobile-shared';
import { Translation } from '@kiwicom/mobile-localization';
import { defaultTokens } from '@kiwicom/mobile-orbit';
import { SeparatorFullWidth } from '@kiwicom/mo... | JavaScript | 0.000001 | @@ -1771,22 +1771,31 @@
ons.map(
+(
option
+, index)
=%3E (%0A
@@ -1834,16 +1834,198 @@
n.key%7D%3E%0A
+ %7Bindex !== 0 && (%0A %3CView style=%7Bstyles.separator%7D%3E%0A %3CSeparatorFullWidth color=%7BdefaultTokens.paletteInkLighter%7D /%3E%0A %3C/View%3E%0A ... |
88a9538d6692f3c9d28f38f9d417e183f19610c8 | Fix karma runner ports. It appears the port number for the karma server running unit tests in the background during 'grunt watch' was the same as the one used when running E2E tests. As a result, the 'karma:unit:run' test wasn't running properly. | karma/karma-e2e.tpl.js | karma/karma-e2e.tpl.js | module.exports = function ( karma ) {
karma.set({
/**
* From where to look for files, starting with the location of this file.
*/
basePath: '../',
/**
* This is the list of file patterns to load into the browser during testing.
*/
files: [
// Include the ng-scenario library... | JavaScript | 0 | @@ -1226,10 +1226,10 @@
: 90
-19
+20
,%0A
@@ -1245,17 +1245,17 @@
ort: 910
-1
+2
,%0A ur
|
f1b77735ac3b149894e465ccf0ae6d3a8de333be | redefine port to fix bundling error | backend/headlessServer.js | backend/headlessServer.js | import {Sessions} from './sessions';
import {Logger} from './logger';
import {SequelizeManager, OPTIONS} from './sequelizeManager';
import {ElasticManager} from './elasticManager';
import {serverMessageReceive,
CHANNEL} from './messageHandler';
import * as fs from 'fs';
import YAML from 'yamljs';
let mainWindo... | JavaScript | 0.000001 | @@ -298,16 +298,39 @@
yamljs';
+%0Aimport R from 'ramda';
%0A%0Alet ma
@@ -799,49 +799,176 @@
);%0A%0A
-console.warn('process.env: ', process.env
+let port;%0Aif (R.has('PORT', process.env) && process.env.PORT) %7B%0A port = process.env.PORT;%0A%7D else %7B%0A port = OPTIONS.port;%0A%7D%0Aconsole.log(%60listen... |
e204496472a91c3ed324cbf36581865e7cf24dfd | rename sn.fm.loadingScreen EVENTS => ROUTE_EVENTS | app/js/fm-loading-screen/loadingScreen.js | app/js/fm-loading-screen/loadingScreen.js | "use strict";
/**
* Implements a loading screen inbetween route changes
* @module sn.fm.loadingScreen
* @author SOON_
*/
angular.module("sn.fm.loadingScreen", [])
/**
* @constant
* @property EVENTS
* @type {Object}
*/
.constant("EVENTS", {
ROUTE_CHANGE_START: "$routeChangeStart",
ROUTE_CHANGE_SUCCESS: "... | JavaScript | 0.000002 | @@ -190,16 +190,22 @@
roperty
+ROUTE_
EVENTS%0A
@@ -236,16 +236,22 @@
nstant(%22
+ROUTE_
EVENTS%22,
@@ -627,16 +627,22 @@
%22,%0A %22
+ROUTE_
EVENTS%22,
@@ -729,16 +729,22 @@
bject%7D
+ROUTE_
EVENTS%0A
@@ -776,16 +776,22 @@
tScope,
+ROUTE_
EVENTS)%7B
@@ -1415,32 +1415,38 @@
$rootScope.$on(
+ROUTE_
... |
291dea97503abdd79637f7d58a67b33b9256ae63 | Handle error case | src/js/controllers/buy-bitcoin/kyc-status.controller.js | src/js/controllers/buy-bitcoin/kyc-status.controller.js | 'use strict';
(function () {
angular
.module('bitcoincom.controllers')
.controller('buyBitcoinKycStatusController',
buyBitcoinKycStatusController);
function buyBitcoinKycStatusController(
bitAnalyticsService
, gettextCatalog
, kycFlowService
, moonPayService
, moment
, ongoingProcess
... | JavaScript | 0.000002 | @@ -3180,32 +3180,102 @@
ase try again.')
+, function() %7B%0A $ionicHistory.goBack();%0A %7D
);%0A %7D
@@ -3469,32 +3469,128 @@
rors:', error);%0A
+ // Activate Retry Button%0A ongoingProcess.set('submitingKycInfo', false);%0A
popu
@@ -3722,1... |
df4d9121da36526d48584a75cc8f2c4122d0fa93 | set max filter date for user stats view to last Friday | app/js/users/controllers/UserStatsCtrl.js | app/js/users/controllers/UserStatsCtrl.js | "use strict";
/**
* @module FM.users.UserStatsCtrl
* @author SOON_
*/
angular.module("FM.users.UserStatsCtrl", [
"FM.api.UsersResource",
"FM.stats",
"ngRoute",
"chart.js",
"ui.bootstrap.datepicker"
])
/**
* @method config
* @param {Provider} $routeProvider
*/
.config([
"$routeProvider... | JavaScript | 0.000001 | @@ -5919,17 +5919,33 @@
e =
-new Date(
+DateUtils.lastOccurence(5
);%0A%0A
|
01d1b9467080c75679e38639f8a3e7cdd82eb4ce | add asynDataGet function | app/scripts/dataservice/CommonDatabase.js | app/scripts/dataservice/CommonDatabase.js | // CommonDatabase.js
import axios from 'axios';
import {getAPI} from './config.js';
var User=function(){
this.data=null;
}
User.prototype.asynLogin=function(email,psw){
var userAPI=getAPI('Login');
var scope=this;
return axios[userAPI.method](userAPI.url,{
email:email,
password:psw,
}).then(function(data... | JavaScript | 0.000001 | @@ -77,16 +77,52 @@
ig.js';%0A
+import Util from '../core/Util.js';%0A
%0A%0Avar Us
@@ -759,16 +759,17 @@
user;%0A%7D%0A
+%0A
var user
@@ -785,17 +785,255 @@
();%0A
-export%7Buser
+%0Afunction asynData(apiName, data=%7B%7D)%7B%0A%09return axios%5BapiName.method%5D(apiName.url,data)%0A%09.then(function(data)%7B%0A%... |
18c3941f75d5376f9f730abec6bf380bd1018bc5 | Remove vm. for local variable in function. | app/scripts/services/bodyclass-service.js | app/scripts/services/bodyclass-service.js | 'use strict';
(function() {
angular.module('ncsaas')
.service('BodyClassService', [BodyClassService]);
function BodyClassService() {
var vm = this;
vm.getBodyClass = getBodyClass;
function getBodyClass(name) {
var stateWithProfile = [
'profile',
'profile-edit',... | JavaScript | 0 | @@ -230,24 +230,48 @@
ass(name) %7B%0A
+ var bodyClass;%0A%0A
var
@@ -638,35 +638,32 @@
) %7B%0A
-vm.
bodyClass = 'app
@@ -691,35 +691,32 @@
return
-vm.
bodyClass;%0A
@@ -733,35 +733,32 @@
e %7B%0A
-vm.
bodyClass = 'app
@@ -785,35 +785,32 @@
retur... |
f96b5bd8444ef5c46c5a6aeccfe3fde289c4286b | Tweak cookie expiry to 12hrs | app/scripts/views/home/home-controller.js | app/scripts/views/home/home-controller.js |
(function() {
'use strict';
/**
* Controller for the imls app home view
*/
/* ngInject */
function HomeController($cookies, $log, $q, $scope, $geolocation, $state, Config, Geocoder, Museum) {
var ctl = this;
var map = null;
var searchMarker = null;
var SEARC... | JavaScript | 0.000002 | @@ -3772,24 +3772,77 @@
%7D, %7B%0A
+ // Set expiry to 12hrs from set time%0A
@@ -3885,16 +3885,21 @@
Time() +
+ 12 *
3600 *
|
c46650e67e217430ceab71947a985e1f6f106dab | Correct server error on errorController.errorAction and offer the possibilty to add an error message | app/server/controllers/errorController.js | app/server/controllers/errorController.js | 'use strict';
/**
* @module core-controllers
*/
/**
* Provides route actions to deal with errors.
*
* @class errorController
*/
var errors = process.require('app/server/httpErrors.js');
var defaultController = process.require('app/server/controllers/defaultController.js');
/**
* Handles requests which does n... | JavaScript | 0.000001 | @@ -857,16 +857,31 @@
(!error
+ %7C%7C !error.code
)%0A er
@@ -1496,16 +1496,21 @@
e.send(%7B
+%0A
error: %7B
@@ -1510,24 +1510,26 @@
rror: %7B%0A
+
+
code: error.
@@ -1526,32 +1526,34 @@
de: error.code,%0A
+
module: erro
@@ -1560,20 +1560,55 @@
r.module
+,%0A message: error.message%0A... |
92f8af02ef21b6a8cd741d5d694cba5a8e17ea51 | fix syntax error | app/services/database/removeDuplicates.js | app/services/database/removeDuplicates.js | "use strict"
const mongoose = require('mongoose'),
Concept = require('../../models/Concept');
module.exports = () => {
let data = {}
Concept.find()
.sort('label')
.select('label _id')
.exec((err, collection)=>{
if (err) throw err
let dupes = {}
collection.forEach((entr... | JavaScript | 0.000003 | @@ -394,16 +394,27 @@
dupes%5B
+entry.label
.replace
|
f1c867010229011fb6c4cfa7853f301885566cc7 | Remove unnecessary script attributes | src/util/dom_misc.js | src/util/dom_misc.js | (function() {
var _slice = Array.prototype.slice;
/**
* Takes id and returns an element with that id (if one exists in a document)
* @memberOf fabric.util
* @param {String|HTMLElement} id
* @return {HTMLElement|null}
*/
function getById(id) {
return typeof id === 'string' ? fabric.document.ge... | JavaScript | 0.000003 | @@ -5971,98 +5971,8 @@
e;%0A%0A
- scriptEl.type = 'text/javascript';%0A scriptEl.setAttribute('runat', 'server');%0A%0A
|
ec297cddbf0e1e0c05eaf8dd61b56b240f73fd43 | debug Alexa | lib/api/alexa/index.js | lib/api/alexa/index.js | 'use strict';
var moment = require('moment');
var _ = require('lodash');
function configure (app, wares, ctx, env) {
var entries = ctx.entries;
var express = require('express')
, api = express.Router( )
;
// invoke common middleware
api.use(wares.sendJSONStatus);
// text body typ... | JavaScript | 0.000003 | @@ -3565,32 +3565,62 @@
;%0A %7D%0A
+ console.log(sbx);%0A
cons
|
4b6dd3c26619683187f428519dae5d5caa52cb0a | handle not existing rest folders | NiWAappWorker.js | NiWAappWorker.js |
var SC=µ.shortcut({
File:"File"
});
var LOG=require("./logger");
var logger;
var rest={};
worker.init=function(param)
{
logger=LOG.setCoreLogger(LOG("apps/"+param.name));
return new SC.File("rest").listFiles().then(files=>
files.filter(s=>s.slice(-3)===".js").map(s=>s.slice(0,-3))//cut ".js"
.forEach(script... | JavaScript | 0.000001 | @@ -199,16 +199,60 @@
%22rest%22).
+exists()%0A%09.then(function()%0A%09%7B%0A%09%09return this.
listFile
@@ -268,16 +268,17 @@
files=%3E%0A
+%09
%09%09files.
@@ -343,16 +343,17 @@
%22.js%22%0A%09%09
+%09
.forEach
@@ -362,16 +362,17 @@
cript=%3E%0A
+%09
%09%09%09rest%5B
@@ -449,19 +449,218 @@
th())%0A%09%09
+%... |
0a83ef05290b10f684ac1b6de913b959adb6b059 | use default import as it is default exported | lib/grammars/javascript.js | lib/grammars/javascript.js | 'use babel';
import path from 'path';
import GrammarUtils, { command, OperatingSystem } from '../grammar-utils';
const babel = path.join(__dirname, '../..', 'node_modules', '.bin', OperatingSystem.isWindows() ? 'babel.cmd' : 'babel');
const babelConfig = path.join(__dirname, 'babel.config.js');
const args = ({ filep... | JavaScript | 0.000002 | @@ -55,38 +55,8 @@
tils
-, %7B command, OperatingSystem %7D
fro
@@ -146,16 +146,29 @@
'.bin',
+GrammarUtils.
Operatin
@@ -821,24 +821,46 @@
sed': %7B%0A
+command: GrammarUtils.
command,%0A
@@ -1055,16 +1055,38 @@
sed': %7B
+command: GrammarUtils.
command,
|
c989609ae35743be72c46b2f55e44f55028356d2 | Remove unused response parameter | lib/haibu/drone/service.js | lib/haibu/drone/service.js | /*
* service.js: RESTful JSON-based web service for the drone module.
*
* (C) 2010, Nodejitsu Inc.
*
*/
var haibu = require('../../haibu');
//
// ### function createRouter (dron, logger)
// #### @drone {Drone} Instance of the Drone resource to use in this router.
//
// Creates the Journey router which represents... | JavaScript | 0.000001 | @@ -792,80 +792,8 @@
//%0A
- // TODO (indexzero): Consume %60haibu.version%60 instead of journey.%0A //%0A
ha
@@ -826,32 +826,24 @@
, function (
-response
) %7B%0A this
|
5e8fb351544773f0095baea1afc0c3b084c5497f | Simplify some type syntax to make tsc happy | modules/add-to-device-calendar/add-to-calendar.js | modules/add-to-device-calendar/add-to-calendar.js | // @flow
import * as React from 'react'
import type {EventType} from '@frogpond/event-type'
import {addToCalendar} from './lib'
import delay from 'delay'
type Props = {
event: EventType,
compactMessages?: boolean,
render: ({
message: string,
disabled: boolean,
onPress: () => any,
}) => React.Node,
}
type S... | JavaScript | 0.000002 | @@ -221,17 +221,16 @@
ender: (
-%7B
%0A%09%09messa
@@ -285,17 +285,16 @@
%3E any,%0A%09
-%7D
) =%3E Rea
@@ -535,41 +535,8 @@
AGES
-: $Shape%3Ctypeof VERBOSE_MESSAGES%3E
= %7B
|
ef5c908a35a544d57c9e78eb629a6d7d0dcc8ca9 | Change output path and add images and logos alias path | cfg/base.js | cfg/base.js | var path = require('path');
var port = 8000;
var srcPath = path.join(__dirname, '/../src');
var publicPath = '/assets/';
module.exports = {
port: port,
debug: true,
output: {
path: path.join(__dirname, '/../dist/assets'),
filename: 'app.js',
publicPath: publicPath
},
devServer: {
contentBase:... | JavaScript | 0 | @@ -222,16 +222,21 @@
t/assets
+/app/
'),%0A
@@ -690,20 +690,54 @@
,%0A
-styl
+calls: srcPath + '/calls/',%0A imag
es: srcP
@@ -744,20 +744,20 @@
ath + '/
-styl
+imag
es/',%0A
@@ -752,36 +752,36 @@
images/',%0A
-call
+icon
s: srcPath + '/c
@@ -771,36 +771,36 @@
ns: srcPath + '/
-call
+ic... |
dc3bd1a2aa96987c2edba58372f2362199a5ad43 | Use the minified version of Bootstrap CSS (#900) | docs/lib/Home/index.js | docs/lib/Home/index.js | import React from 'react';
import { PrismCode } from 'react-prism';
import { Button, Container, Row, Col, Jumbotron } from 'reactstrap';
import { Link } from 'react-router';
import Example from '../examples/import-basic';
const importBasic = require('!!raw!../examples/import-basic');
export default () => {
return (... | JavaScript | 0.000009 | @@ -3154,16 +3154,20 @@
otstrap.
+min.
css';%3C/P
|
d68e9aeb60b3e071a1c61aa642123b1c88f226af | Remove the unnecessary depthTest parameter | browser/plugins/three_meshline_material.plugin.js | browser/plugins/three_meshline_material.plugin.js | (function() {
var ThreeMeshLineMaterialPlugin = E2.plugins.three_meshline_material = function(core) {
AbstractThreeMaterialPlugin.apply(this, arguments)
this.desc = 'THREE.js MeshLine Material'
this.input_slots = [
{ name: 'color', dt: core.datatypes.COLOR, def: new THREE.Color(0xffffff) },
{ name: 'sizeAtte... | JavaScript | 0.000018 | @@ -546,71 +546,8 @@
%7D,%0A
-%09%09%7B name: 'depthTest',%09%09dt: core.datatypes.BOOL, def: true %7D,%0A
%09%09%7B
|
e0434005308fd74f344f61ed168b4581e152508e | remove null state | skm-spa/clocks-react/main.js | skm-spa/clocks-react/main.js | let e = React.createElement;
class Clocks extends React.Component {
constructor(props) {
super(props);
this.state = {
clocks: [
{ name: 'Tel Aviv', offset: 0, start: Date.now() },
{ name: 'London', offset: -2, start: Date.now() },
{ name: 'New York', offset: -7, start: Date.now... | JavaScript | 0.000472 | @@ -914,20 +914,62 @@
time:
-null
+Clock.getOffsetTime(props.start, props.offset)
,%0A
@@ -1306,31 +1306,8 @@
if (
-state.time === null %7C%7C
stat
|
6a1315d6220ece5154b354115f9636b2a35cc1ef | Auth::Controller:Set APIError | server/controllers/auth.js | server/controllers/auth.js | import jwt from 'jsonwebtoken'
import config from '../../config/env'
import logger from '../../config/winston'
import User from '../models/user'
import httpStatus from 'http-status'
/**
* Returns jwt token if valid username and password... | JavaScript | 0.999377 | @@ -4,16 +4,16 @@
ort
-jwt
+APIError
@@ -33,20 +33,27 @@
om '
-jsonwebtoken
+../helpers/APIError
'%0Aim
@@ -104,16 +104,115 @@
ig/env'%0A
+import httpStatus from 'http-status'%0Aimport jwt from 'jsonwebtoken'%0A
import l
@@ -317,57 +317,8 @@
er'%0A
-import httpStatus ... |
4a832ea8776aca8bc35b8a7f047cee0e2debdcaf | throw error instead of console | server/controllers/auth.js | server/controllers/auth.js | 'use strict';
const version = require('../package.json').version;
const router = require('express').Router;
const app = router();
const ntb = require('turbasen');
const userAgent = `Hytteadmin/${version}`;
process.env.NTB_USER_AGENT = userAgent;
process.env.DNT_CONNECT_USER_AGENT = userAgent;
process.env.DNT_API_USE... | JavaScript | 0.000005 | @@ -2425,17 +2425,19 @@
-console.e
+throw new E
rror
@@ -2472,17 +2472,20 @@
iled: $%7B
-e
+ntbE
rr.messa
@@ -2494,51 +2494,8 @@
%7D%60);
- // eslint-disable-line no-console, max-len
%0A
|
02071c91d210984c8fde9420280a672121803623 | fix clean script | packages/coinstac-server-core/scripts/clean-db.js | packages/coinstac-server-core/scripts/clean-db.js | /* eslint-disable no-console */
'use strict';
const async = require('async');
const CoinstacServer = require('../src/coinstac-server.js');
const dbmap = require('/coins/config/dbmap.json');
const rimraf = require('rimraf');
const superagent = require('superagent');
const urlBase = dbmap.coinstac ?
`http://${dbmap.c... | JavaScript | 0.000019 | @@ -264,24 +264,73 @@
');%0A
-%0Aconst urlBase =
+const url = require('url');%0A%0Aconst urlBase = url.format(%7B%0A auth:
dbm
@@ -346,19 +346,9 @@
ac ?
-%0A %60http://
+%60
$%7Bdb
@@ -396,53 +396,77 @@
ord%7D
-@localhost:5984%60 :%0A 'http://localhost:5984';
+%60 : '',%0A hostname: 'localhost',%0A port: 598... |
3c511406cdfbc407eb69fa54aa2d9765e0e7e796 | Correct option processing. | source/scripts/wizard_tags.js | source/scripts/wizard_tags.js | var WizardTags = (function() {
var MakeDefaultTagsGenerator = function(tags) {
return function(query) {
return tags.filter(
function(tag) {
return tag.substr(0, query.length) == query;
}
);
};
};
var GetTagsGenerator = function(options) {
var tags_generator = function() {
return [];
};
... | JavaScript | 0.000001 | @@ -24,16 +24,55 @@
ion() %7B%0A
+%09var OptionsProcessor = (function() %7B%0A%09
%09var Mak
@@ -112,16 +112,17 @@
tags) %7B%0A
+%09
%09%09return
@@ -139,24 +139,25 @@
query) %7B%0A%09%09%09
+%09
return tags.
@@ -168,16 +168,17 @@
er(%0A%09%09%09%09
+%09
function
@@ -181,24 +181,25 @@
tion(tag) %7B%0A
+%09
%0... |
57d5869a5b5efe1e980cecad243a4402d6f97a41 | Add check for config key matching style rule | lib/layerStylePresenter.js | lib/layerStylePresenter.js | 'use strict';
var assert = require('assert')
var merge = require('object-merge')
var each = require('foreach')
/**
* Looks up config and gets style rules object for a given property
* @param {string|number|boolean} propertyValue
* @param {object} configProperties
* @return {object}
*/
function styleRulesFor... | JavaScript | 0 | @@ -529,16 +529,18 @@
%0A%0A if (
+!!
configPr
@@ -1591,16 +1591,106 @@
y) =%3E %7B%0A
+ // If the config style matches on the current property key%0A if (!!config%5Bkey%5D) %7B%0A
styl
@@ -1708,16 +1708,17 @@
styles,
+(
styleRul
@@ -1754,16 +1754,17 @@
fig%5Bkey%5D
+)
%7C%7C %7B%7D))
@@ -1764,16... |
e1fda050ea463b9f83341578d78e511f3852f84f | Fix issues on password reset | server/controllers/auth.js | server/controllers/auth.js | require('dotenv').config();
const User = require('../database/models').User;
const jwt = require('jsonwebtoken');
const bcrypt = require('bcrypt-nodejs');
const _ = require('lodash');
const Validator = require('validatorjs');
const { handleError, handleSuccess, sendMail } = require('../helpers/helpers');
module.export... | JavaScript | 0.000002 | @@ -2967,16 +2967,39 @@
);%0A %7D,%0A
+ // password Recovery%0A
passwo
|
80b456e0a7a42dbe02d2f41025bc0f11a6637a78 | fix prettier issue | packages/components/bolt-ratio/__tests__/ratio.js | packages/components/bolt-ratio/__tests__/ratio.js | import {
isConnected,
render,
renderString,
stopServer,
html,
} from '../../../testing/testing-helpers';
const timeout = 60000;
const imageVrtConfig = {
failureThreshold: '0.005',
failureThresholdType: 'percent',
};
describe('<bolt-ratio> Component', () => {
let page, context;
beforeEach(async () ... | JavaScript | 0.000025 | @@ -3554,24 +3554,36 @@
ed === true)
+%0A
return '_wa
|
a3ddbb08bdf5efd0830b2c1647cfa4a3dbefbbc6 | Add deregisterInstance to $ionDrawerVerticalHandle Controller | ion-drawer-vertical/ionic.contrib.drawer.vertical.js | ion-drawer-vertical/ionic.contrib.drawer.vertical.js | (function() {
'use strict';
angular.module('ionic.contrib.drawer.vertical', ['ionic'])
.controller('$ionDrawerVerticalHandle', function($element, $attrs, $ionicGesture, $timeout) {
// We need closure
var self = this;
// Possible states the drawer can have
var STATE_CLOSE = 'closed';
var STATE_OPEN = 'o... | JavaScript | 0 | @@ -134,16 +134,24 @@
unction(
+$scope,
$element
@@ -183,16 +183,65 @@
$timeout
+, $ionicHistory, $ionDrawerVerticalHandleDelegate
) %7B%0A%0A%09%09/
@@ -952,28 +952,25 @@
wrapper');%0A%09
-
+%09
$wrapper.add
@@ -984,20 +984,17 @@
tate);%0A%09
-
+%09
$wrapper
@@ -1021,12 +1021,281 @@
;%0A%0A%09
-
... |
fedb810414e70689690629138621622779a5eb8e | Remove reference to old imagescaling in infinite scroll | source/themes/quis/js/init.js | source/themes/quis/js/init.js | // =============================================
//
// WWW.QUIS.CC
// ---------------------------------------------
//
// By Chris Hill-Scott, except where noted.
//
// =============================================
$(function() {
for (var module in QUIS) {
if (QUIS[module].init) QUIS[mo... | JavaScript | 0 | @@ -773,133 +773,8 @@
%7B%0A%0A
- // size newly-loaded images%0A $(%22#%22 + pageID + %22 %22 + QUIS.imageSelector)%0A .imageScale();%0A%0A
|
0ff0d381b0d61c3f100c3c1858cbe61d38ed665f | Update buttons.js | packages/materialize/views/collections/buttons.js | packages/materialize/views/collections/buttons.js | Template.materializeButtons.rendered = function() {
Session.set("orion_autoformLoading", undefined);
};
| JavaScript | 0.000001 | @@ -25,19 +25,19 @@
ons.
-r
+onR
endered
- =
+(
func
@@ -97,10 +97,11 @@
ined);%0A%7D
+)
;%0A
|
fc8f46363721ed3f9b8aea61ae7df9d73438c7c4 | fix status code to be BadMonitoredItemFilterUnsupported when a DeadbandPercent filter is requested and the uaVariable has no euRange | packages/node-opcua-server/src/validate_filter.js | packages/node-opcua-server/src/validate_filter.js | var assert = require("node-opcua-assert");
var _ = require("underscore");
var subscription_service = require("node-opcua-service-subscription");
var StatusCodes = require("node-opcua-status-code").StatusCodes;
var AttributeIds = require("node-opcua-data-model").AttributeIds;
var UAVariable = require("node-opcua-addre... | JavaScript | 0 | @@ -1562,38 +1562,52 @@
tusCodes.Bad
-FilterNotAllow
+MonitoredItemFilterUnsupport
ed;%0A
|
f74c3e5ec350b78d8047268d6d2e9ee87646c841 | add cases for json and verbose (#1573) | packages/webpack-cli/__tests__/StatsGroup.test.js | packages/webpack-cli/__tests__/StatsGroup.test.js | const StatsGroup = require('../lib/groups/StatsGroup');
describe('StatsGroup', function () {
{
StatsGroup.validOptions().map((option) => {
it(`should handle ${option} option`, () => {
const statsGroup = new StatsGroup([
{
stats: option... | JavaScript | 0.000001 | @@ -503,13 +503,514 @@
);%0A %7D
+%0A%0A it('should handle verbose', () =%3E %7B%0A const group = new StatsGroup(%5B%0A %7B%0A verbose: true,%0A %7D,%0A %5D);%0A%0A const result = group.run();%0A expect(result.options.stats).toEqual('verbose');%0A ... |
e7553a8598db88d4215a2ed0f5b3cce2fa909b64 | fix click after filter is reset | src/app/ResultsGrid.js | src/app/ResultsGrid.js | define([
'dojo/text!app/templates/ResultsGrid.html',
'dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
'dojo/store/Memory',
'dojo/topic',
'dojo/dom-class',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dgrid/OnDemandGrid',
'dgrid/Selection',
'esri/tasks/... | JavaScript | 0 | @@ -350,18 +350,19 @@
function
+
(%0A
-
temp
@@ -881,32 +881,33 @@
Create: function
+
() %7B%0A
@@ -1174,32 +1174,33 @@
ctions: function
+
() %7B%0A
@@ -1600,16 +1600,17 @@
function
+
() %7B%0A
@@ -2464,16 +2464,17 @@
function
+
(events)
@@ -3316,32 +3316,33 @@
ics.map(func... |
bddbc2f86bd0002fef6790905da77bc07e8d08c6 | use platform specific EOL | lib/plugins/input/files.js | lib/plugins/input/files.js | 'use strict'
/*
* See the NOTICE.txt file distributed with this work for additional information
* regarding copyright ownership.
* Sematext licenses logagent-js to you 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 cop... | JavaScript | 0 | @@ -4307,24 +4307,85 @@
t = 0%0A %7D%0A
+ // pass platform specific EOL%0A pos.separator = os.EOL%0A
tail = n
|
ebf004ee3597f704d3ceb08e93f04056c92b25cb | Remove left over param | BrowserExtension/scripts/community/profile_inventory.js | BrowserExtension/scripts/community/profile_inventory.js | 'use strict';
if( document.getElementById( 'inventory_link_753' ) )
{
GetOption( {
'link-inventory': true,
'link-inventory-gift-subid': true,
'enhancement-inventory-sidebar': true,
'enhancement-inventory-update-urls': true,
'enhancement-inventory-quick-sell': true,
'enhancement-inventory-quick-sell-auto':... | JavaScript | 0 | @@ -186,53 +186,8 @@
ue,%0A
-%09%09'enhancement-inventory-update-urls': true,%0A
%09%09'e
|
72e0ef14c5c1a1fb034a5a59a4ed4093719d1489 | Fix for graph height issue. | ui/src/shared/components/ResizeContainer.js | ui/src/shared/components/ResizeContainer.js | import React, {PropTypes} from 'react'
import ResizeHandle from 'shared/components/ResizeHandle'
const {
node,
string,
} = PropTypes
const ResizeContainer = React.createClass({
propTypes: {
children: node.isRequired,
},
getInitialState() {
return {
topHeight: '60%',
bottomHeight: '40%',... | JavaScript | 0 | @@ -1736,16 +1736,23 @@
tState(%7B
+%0A
topHeigh
@@ -1781,16 +1781,22 @@
ent)%7D%25%60,
+%0A
bottomH
@@ -1832,16 +1832,22 @@
ent)%7D%25%60,
+%0A
topHeig
@@ -1850,24 +1850,56 @@
HeightPixels
+,%0A bottomHeightPixels,%0A
%7D)%0A %7D,%0A%0A r
@@ -2114,16 +2114,23 @@
const %7B
+%0A ... |
8ee6f4cbc96e29e79bad625f7a10e700468649b0 | Add cpython dedicated project to OSD event. | public/modules/events/controllers/events.client.controller.js | public/modules/events/controllers/events.client.controller.js | 'use strict';
angular.module('events').controller('EventsController', ['$scope',
function($scope) {
// TODO: Get events from a database or something. Don't hard code.
$scope.events = [
{
title: 'WWU Open Source Day',
day: 'Saturday',
dayNum: 9,
month: 'May',
monthNum: 5,
description: ... | JavaScript | 0 | @@ -1833,24 +1833,204 @@
r%3C/a%3E%3C/dd%3E%5C%0A
+%09%3Cdd%3E%3Cstrong%3Ecpython%3C/strong%3E (Alex Lord) %3Cbr%3E%3Ca target=%22_blank%22 href=%22https://openhatch.org/search/?q=&language=Python%22%3Ehttps://openhatch.org/search/?q=&language=Python%3C/a%3E%3C/dd%3E%5C%0A
%09%3Cdt%3EOther S
|
124f486d3719ce022db3e7eb36da3bbadbed6e32 | Fix some syntax bugs | public/modules/events/controllers/events.client.controller.js | public/modules/events/controllers/events.client.controller.js | 'use strict';
// Articles controller
angular.module('events').controller('EventsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Events',
function($scope, $stateParams, $location, Authentication, Events) {
$scope.authentication = Authentication;
// Create new Article
$scope.create = func... | JavaScript | 0.001012 | @@ -266,16 +266,32 @@
cation;%0A
+%09%09var%09searchBox;
%0A%09%09// Cr
@@ -382,17 +382,17 @@
Places()
-;
+,
%0A
@@ -398,14 +398,8 @@
- var
loca
@@ -408,22 +408,17 @@
on;%0A
-
+%0A
if
(go
@@ -413,17 +413,16 @@
if
-
(googleP
@@ -430,22 +430,16 @@
aces) %7B%0A
-
... |
26f135fbd3f95cf1a08a8e5611c643af4658843d | Update stripe key | source/javascripts/config.js | source/javascripts/config.js | Flynn.config = {
stripeJSURL: "https://js.stripe.com/v2/",
STRIPE_KEY: "pk_LHV1PeIYOXtG1OfgADW0j5JKl3ST4"
};
| JavaScript | 0 | @@ -74,37 +74,37 @@
%22pk_
-LHV1PeIYOXtG1OfgADW0j5JKl3ST4
+live_u7VRS3rSf1TjGLky5Im4ClH5
%22%0A%7D;
|
08cfa95c5efa508521ea28c8185d9a5b08997a12 | Fix falsy pass | src/geophoto/server.js | src/geophoto/server.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.000017 | @@ -1564,16 +1564,17 @@
tion' ==
+=
app.get
|
15798e240b7883ccf8c0bed54e55f3ebe969df6d | Fix `isEditable` property for question answers | Dashboard/app/js/lib/views/data/question-answer-view.js | Dashboard/app/js/lib/views/data/question-answer-view.js | // this function is also present in assignment-edit-views.js, we need to consolidate using moment.js
function formatDate(date) {
if (date && !isNaN(date.getTime())) {
return date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate();
} else return null;
}
FLOW.QuestionAnswerView = Ember.View.ext... | JavaScript | 0.000002 | @@ -1226,16 +1226,84 @@
ype'),%0A%0A
+ nonEditableQuestionTypes: %5B'GEO', 'PHOTO', 'VIDEO', 'GEOSHAPE'%5D,%0A%0A
form:
@@ -2132,139 +2132,77 @@
on()
+
%7B%0A
-var type = this.get('questionType');%0A return (type == 'GEO' %7C%7C type == 'PHOTO' %7C%7C type == 'VIDEO' %7C%7C type == 'GEOSHAPE' %7C%7C
+//... |
1d6080f4999635a54c3817b326a5dece893a6fd8 | Allow PhotoSwipeBase for lazyLoadData method | src/js/slide/loader.js | src/js/slide/loader.js | import PhotoSwipeBase from '../core/base.js';
import { getViewportSize, getPanAreaSize } from '../util/viewport-size.js';
import ZoomLevel from './zoom-level.js';
/** @typedef {import('./content.js').default} Content */
/** @typedef {import('./slide.js').default} Slide */
/** @typedef {import('./slide.js').SlideData} ... | JavaScript | 0 | @@ -1,50 +1,4 @@
-import PhotoSwipeBase from '../core/base.js';%0A
impo
@@ -276,24 +276,91 @@
lideData */%0A
+/** @typedef %7Bimport('../core/base.js').default%7D PhotoSwipeBase */%0A
/** @typedef
@@ -798,37 +798,24 @@
toSwipe
-or PhotoSwipeLightbox
+instance
%0A * @par
|
d8092243ea08717f683836273676ad7a964d4950 | Add corrected prop usage in BottomModalContainer | src/widgets/bottomModals/BottomModalContainer.js | src/widgets/bottomModals/BottomModalContainer.js | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Keyboard, StyleSheet, View } from 'react-native';
import Modal from 'react-native-modalbox';
import { DARKER_GREY } from '../../global... | JavaScript | 0 | @@ -735,16 +735,38 @@
ckdrop%7D%0A
+ isOpen=%7BisOpen%7D%0A
%7B.
|
5e9c717442bd45363d3ddf33c3febe4cad301892 | fix send command | reddcoin.js | reddcoin.js | var Future = Npm.require("fibers/future");
reddcoin = function(object) {
this.rdd = Npm.require("node-reddcoin")(object);
};
// reddcoind getbalance [account]
reddcoin.prototype.balance = function(account) {
var future = new Future();
if(account) {
this.rdd.exec("getbalance", account, function(er... | JavaScript | 0.000002 | @@ -3760,16 +3760,25 @@
ind send
+toaddress
to_addr
@@ -3916,16 +3916,25 @@
ec(%22send
+toaddress
%22, addre
@@ -5182,28 +5182,29 @@
%0A return future.wait();%0A%7D
+%0A
|
f8e11388481225fe10930ae05da94b149f485efa | Add CardForm alias for existing card fields | src/interface/button.js | src/interface/button.js | /* @flow */
import { isPayPalDomain } from '@paypal/sdk-client/src';
import { PopupOpenError as _PopupOpenError, destroy as zoidDestroy, destroyComponents } from 'zoid/src';
import type { LazyExport, LazyProtectedExport } from '../types';
import { allowIframe as _allowIframe } from '../lib';
import { getCheckoutCompo... | JavaScript | 0 | @@ -1381,32 +1381,166 @@
omponent())%0A%7D;%0A%0A
+export const CardForm : LazyProtectedExport%3CCardFieldsComponent%3E = %7B%0A __get__: () =%3E protectedExport(getCardFieldsComponent())%0A%7D;%0A%0A
export const Men
|
6eeaa8c5b998fc2853f82c6fcf3a6a546ecc8425 | Call getCheckoutComponent to register component in parent window | src/interface/button.js | src/interface/button.js | /* @flow */
import { isPayPalDomain } from '@paypal/sdk-client/src';
import { PopupOpenError as _PopupOpenError } from 'zoid/src';
import { setupLogger, allowIframe as _allowIframe } from '../lib';
import { getCheckoutComponent } from '../checkout';
import { getButtonsComponent } from '../buttons';
export const Butt... | JavaScript | 0 | @@ -296,16 +296,67 @@
tons';%0A%0A
+const CheckoutComponent = getCheckoutComponent();%0A%0A
export c
@@ -501,27 +501,24 @@
Checkout =
-get
CheckoutComp
@@ -522,18 +522,16 @@
omponent
-()
;%0A Po
|
d5ea6dfe0579968d953d2e00744adc8b41f2be59 | fix error with image-comp (doesn’t load image in full size) | src/core/cloudinary-url.js | src/core/cloudinary-url.js | // http://res.cloudinary.com/demo/image/upload/f_auto,q_auto,w_250,h_250,c_fit/sample.jpg
const defaultState = 'f_auto,q_auto,fl_lossy';
export default (url, { mode, maxWidth, effect, maxHeight, border, width, height, cropX, cropY, quality, blur, retina, crop: crop0 } = {}, crop) => {
if (!crop) crop = crop0;
if (... | JavaScript | 0 | @@ -1182,32 +1182,35 @@
&& height) %7B%0A
+ //
part = %60w_$%7Bwid
@@ -1241,24 +1241,401 @@
%7D/$%7Bpart%7D%60;%0A
+ // beni, solltest du das hier %C3%A4ndern wollen, dann sag mir Bescheid. Mit dieser Zeile wird eine URL wie folgt erzeugt:%0A // https://res.cloudinary.com/dhsf4vjjc/image/upload/w_2896,h_19... |
7621e0b9e81634a0d9764e57c50b37d32f484f89 | Move `frame` clearing | src/internal/machine.js | src/internal/machine.js | // @flow
/**
* Machine: contains all mutable state.
* @module machine
*
* The machine should be in charge of managing the animation frames, but it
* doesn't know anything about what to do in those frames, that's up to the
* Animator.
*/
import type { VoidFn, Machine } from './flow-types'
// TODO: use utils
con... | JavaScript | 0 | @@ -1245,24 +1245,30 @@
e(frame);%0A
+ %7D%0A
frame
@@ -1275,24 +1275,16 @@
= null;%0A
- %7D%0A
ma
|
7b82f48f7d9cf40bdb0734f0ee2fa0c272d6f2e8 | normalize ampcontext-lib (#6524) | build-system/tasks/size.js | build-system/tasks/size.js | /**
* Copyright 2015 The AMP HTML Authors. 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 require... | JavaScript | 0 | @@ -2763,32 +2763,129 @@
on.js', true);%0A%0A
+ normalizeRow(rows, 'current-min/ampcontext-lib.js',%0A 'current/ampcontext-lib.js', true);%0A%0A
// normalize a
|
55c0b66f8426b63c532b153357c016feb625fedb | Set install.js as main file | build/webpack.base.conf.js | build/webpack.base.conf.js | var path = require('path')
var fs = require('fs')
var utils = require('./utils')
var config = require('../config')
var vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
entry: {
app: './src/main.js'
},
output: {
path: co... | JavaScript | 0 | @@ -267,11 +267,14 @@
-app
+plugin
: '.
@@ -282,12 +282,15 @@
src/
-ma
in
+stall
.js'
|
7ba7cacf163f4a525d8bc5588414218b150164a4 | Make location thumbnails large and clickable | client/components/Location/Thumbnail/index.js | client/components/Location/Thumbnail/index.js | // A list of images from entries.
var Thumbnail = require('georap-components').Thumbnail;
var ThumbnailForm = require('./Form');
var template = require('./template.ejs');
var models = require('tresdb-models');
var rootBus = require('tresdb-bus');
var ui = require('tresdb-ui');
module.exports = function (location, ent... | JavaScript | 0.000062 | @@ -2806,32 +2806,99 @@
cation.thumbnail
+, %7B%0A size: 'xl',%0A makeLink: true,%0A %7D
);%0A chi
|
36fda00494fd30914dcf0acb1f6cb90de566c24e | clean up last checkin | BreezeCRM/Scripts/app/controllers.js | BreezeCRM/Scripts/app/controllers.js | 'use strict';
angular.module('crmApp.controllers', [])
.controller('CustomerListController', ['$scope', '$location', 'custDataService', function ($scope, $location, custDataService) {
$scope.search = function () {
debugger;
custDataService.getAllCustomers($scope.criteria, $sc... | JavaScript | 0 | @@ -227,38 +227,16 @@
on () %7B%0A
- debugger;%0A
@@ -749,411 +749,10 @@
rch(
-null, 'companyName', 1);%0A%0A //$scope.$watchCollection('customers', function (newValue) %7B%0A // setPagination(newValue);%0A //%7D);%0A%0A //function setPagination(newValue) %7B%0A ... |
e7ae7996da9f9c4383b297dd7de964f27976ed07 | set location instead of reload to avoid post page again. | src/Modules/UI/Dnn.EditBar.UI/editBar/scripts/ExitEditMode.js | src/Modules/UI/Dnn.EditBar.UI/editBar/scripts/ExitEditMode.js | define(['jquery'], function ($) {
'use strict';
var menuItem, util;
var init = function (menu, utility, params, callback) {
menuItem = menu;
util = utility;
if (typeof callback === 'function') {
callback();
}
};
var onClick = function () {
var ... | JavaScript | 0 | @@ -537,14 +537,38 @@
dow.
-parent
+top.location.href = window.top
.loc
@@ -577,16 +577,12 @@
ion.
+h
re
-load()
+f
;%0A
|
403db9112865994d1aedde036c2358d014dfdeb2 | Fix up template | src/directives/df-model.js | src/directives/df-model.js | angular.module('dynamicForms').directive('dfModel', function($compile, $templateCache, DfSchemaService) {
return {
restrict: 'EA',
priority: 1100,
compile: function(element, attrs) {
element.removeAttr('df-model');
var columns = DfSchemaService.extractColumns(... | JavaScript | 0.000013 | @@ -420,22 +420,8 @@
et('
-dynamic-forms/
temp
|
6479703ac413ab21f021583a002d8abbab8f9dff | remove comments | www/iroot.js | www/iroot.js | var exec = require('cordova/exec');
var IRoot = function () {
this.name = "IRoot";
};
IRoot.prototype.isRooted = function (successCallback, failureCallback) {
exec(successCallback, failureCallback, "iRoot", "isRooted", []);
};
module.exports = new IRoot();
// cordova.exec(
// function(winParam) {},
// ... | JavaScript | 0 | @@ -265,144 +265,4 @@
();%0A
-%0A// cordova.exec(%0A// function(winParam) %7B%7D,%0A// function(error) %7B%7D,%0A// %22service%22,%0A// %22action%22,%0A// %5B%22arguments...%22%5D%0A// );%0A
|
19af479841186d2fcbda8e76a3a97066451b0c8d | Fix external links not always updated | src/external_links_menu.js | src/external_links_menu.js |
(function(){
var menuClass = 'smi-external-links-menu';
var externalLinks = [{
title: 'steemd.com',
href: function(username) {
return 'https://steemd.com/@' + username;
}
}, {
title: 'SteemTracked',
href: function(username) {
return 'https://steemtracked.com/@' + username; ... | JavaScript | 0 | @@ -93,17 +93,17 @@
title: '
-s
+S
teemd.co
@@ -339,16 +339,22 @@
title: '
+Steem
Follower
@@ -358,14 +358,8 @@
wers
- graph
',%0A
@@ -1859,17 +1859,16 @@
if(
-!
el.lengt
@@ -1869,24 +1869,51 @@
.length)%7B%0A
+ el.remove();%0A %7D%0A
el = c
@@ -1931,26 +1931,24 @@
ame);%0A
-
... |
13b7b35f2f14e3afd4b657dd9ef1a017ac3979c5 | Allow stream to auto-resize (redo) | src/flash/net/URLStream.js | src/flash/net/URLStream.js | /* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/*
* Copyright 2013 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | JavaScript | 0 | @@ -1457,35 +1457,35 @@
f (self._stream.
-pos
+end
+ data.length %3E
@@ -1498,19 +1498,28 @@
_stream.
-end
+bytes.length
) %7B%0A
@@ -1550,19 +1550,19 @@
_stream.
-pos
+end
+ data.
@@ -1742,19 +1742,19 @@
_stream.
-pos
+end
));%0A
|
695e2719f51949c26d3f74cec982cf19796388f3 | use shared storage for logout as well | packages/@uppy/companion-client/src/Provider.js | packages/@uppy/companion-client/src/Provider.js | 'use strict'
const RequestClient = require('./RequestClient')
const _getName = (id) => {
return id.split('-').map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(' ')
}
module.exports = class Provider extends RequestClient {
constructor (uppy, opts) {
super(uppy, opts)
this.provider = opts.provider
... | JavaScript | 0 | @@ -1523,16 +1523,46 @@
this.
+uppy.getPlugin(this.pluginId).
storage.
|
e9446e379ce9a3155921fb07e4c355741913a027 | Add also check for attr | src/js/forms-handler.js | src/js/forms-handler.js | /*===============================================================================
************ Store and parse forms data ************
===============================================================================*/
app.formsData = {};
app.formStoreData = function (formId, formJSON) {
// Store form data in app... | JavaScript | 0 | @@ -6211,16 +6211,40 @@
nctype')
+ %7C%7C form.attr('enctype')
;%0A%0A v
|
a2ca517a86a8302a0d777846a4688f78ef1df1f7 | add spinner to update app update | src/front/screens/About.js | src/front/screens/About.js | import { useFocusEffect } from '@react-navigation/native';
import { Button, Divider, Layout, Text } from '@ui-kitten/components';
import Constants from 'expo-constants';
import { brand, modelName, osVersion } from 'expo-device';
import { channel, checkForUpdateAsync, fetchUpdateAsync, reloadAsync } from 'expo-updates';... | JavaScript | 0.000001 | @@ -669,39 +669,442 @@
';%0A%0A
-async function forceUpdate() %7B%0A
+const deleteCacheMessage = 'Deleting cache files...';%0Aconst updateMessage = 'Checking for updates...';%0Aexport default function AppInfoScreen() %7B%0A const %5BloaderMessage, setLoaderMessage%5D = useState(null);%0A const %5BcacheSize, setCache... |
6da73f42b2931a89daf72920e08982ea0878df29 | fix compatibility with IE (#1796) | docs/app/Components/ComponentDoc/ComponentProps.js | docs/app/Components/ComponentDoc/ComponentProps.js | import _ from 'lodash'
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { Header, Icon, Popup, Table } from 'src'
const extraDescriptionStyle = {
color: '#666',
}
const extraDescriptionContentStyle = {
marginLeft: '0.5em',
}
const Extra = ({ title, children, inline, ...rest }) =... | JavaScript | 0 | @@ -2417,17 +2417,17 @@
r(p =%3E !
-p
+_
.include
@@ -2428,16 +2428,19 @@
ncludes(
+p,
'.'))%0A
|
f3096d1cef56de5aa72c95ad59a625cff3305ac4 | revert refactoring because sort was important | packages/constraint-solver/dependencies-list.js | packages/constraint-solver/dependencies-list.js | var mori = Npm.require('mori');
////////////////////////////////////////////////////////////////////////////////
// DependenciesList
////////////////////////////////////////////////////////////////////////////////
// A persistent data-structure that wrapps persistent dictionary
ConstraintSolver.DependenciesList = fun... | JavaScript | 0.000001 | @@ -2525,16 +2525,85 @@
= %22%22;%0A%0A
+ var strs = %5B%5D;%0A self.each(function (d) %7B%0A strs.push(d);%0A %7D);%0A%0A
strs.s
@@ -2607,34 +2607,37 @@
s.sort();%0A
-self
+_
.each(
+strs,
function (d)
|
1cf711706c3d74ab307c29fc014a20540db8c319 | introduce recalcinvolved | src/js/libgeo/Prover.js | src/js/libgeo/Prover.js | var conjectures = [];
function guessIncidences(el) {
if (guessIncidences.hasOwnProperty(el.kind))
guessIncidences[el.kind](el);
}
guessIncidences.P = function(p) {
csgeo.lines.forEach(function(l) {
var conjecture = incidentPL(p, l);
if (conjecture.holds())
conjectures.push(... | JavaScript | 0 | @@ -2443,16 +2443,72 @@
var
+involved;%0A%0A var recalcInvolved = function()%7B%0A
involved
@@ -2510,24 +2510,28 @@
olved = %5B%5D;%0A
+
conjectu
@@ -2562,24 +2562,28 @@
) %7B%0A
+
+
var invs = c
@@ -2596,24 +2596,28 @@
Involved();%0A
+
invs
@@ -2655,24 +2655,28 @... |
5e6f08bbc4e64a4684a48b9c115857c899458198 | fix missing param | packages/easysearch:elasticsearch/lib/engine.js | packages/easysearch:elasticsearch/lib/engine.js | import ElasticSearchDataSyncer from './data-syncer'
if (Meteor.isServer) {
var Future = Npm.require('fibers/future'),
elasticsearch = Npm.require('elasticsearch');
}
/**
* The ElasticsearchEngine lets you search documents through an Elasticsearch Index.
*
* @type {ElasticSearchEngine}
*/
class ElasticSearc... | JavaScript | 0.000083 | @@ -3323,16 +3323,27 @@
dexType(
+indexConfig
)%0A%0A e
|
dfba3d8c5ee3434c0f70afbb83944c67b43774e5 | Remove unused [GLIMMER] flag | packages/ember-glimmer/tests/utils/test-case.js | packages/ember-glimmer/tests/utils/test-case.js | export { TestCase, moduleFor } from './abstract-test-case';
import {
AbstractApplicationTest,
AbstractRenderingTest
} from './abstract-test-case';
import assign from 'ember-metal/assign';
import { GLIMMER } from 'ember-application/system/engine';
import ComponentLookup from 'ember-views/component_lookup';
export c... | JavaScript | 0 | @@ -148,108 +148,8 @@
e';%0A
-import assign from 'ember-metal/assign';%0Aimport %7B GLIMMER %7D from 'ember-application/system/engine';%0A
impo
@@ -272,107 +272,8 @@
t %7B%0A
- get applicationOptions() %7B%0A return assign(super.applicationOptions, %7B %5BGLIMMER%5D: true %7D);%0A %7D%0A
%7D%0A%0Ae
|
51b0cbbcf49ae8e87894c96d3f6e1e829a5124b5 | Send data received from the watch to the configured URL | src/js/pebble-js-app.js | src/js/pebble-js-app.js | /*
* Copyright (c) 2016, Natacha Porté
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... | JavaScript | 0 | @@ -820,16 +820,541 @@
null;%0A%0A
+var to_send = %5B%5D;%0Avar sender = new XMLHttpRequest();%0A%0Afunction sendHead() %7B%0A if (to_send.length %3C 1) return;%0A var line = to_send.shift();%0A var data = new FormData();%0A data.append(cfg_data_field, line);%0A sender.open(%22POST%22, cfg_endpoint, true);%... |
5c3df97674aeaa069bd569f07df8179a4875aeda | REMOVE unnecessary log | lib/ui/src/core/context.js | lib/ui/src/core/context.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Events from '@storybook/core-events';
import initProviderApi from './init-provider-api';
import initKeyHandler from './init-key-handler';
import getInitialState from './initial-state';
import initAddons from './addons';
import init... | JavaScript | 0.000001 | @@ -2323,38 +2323,8 @@
);%0A%0A
- console.log(SET_STORIES);%0A
|
e5055c6cd80e04488c9e41b4ef2f4f524e0ff2b9 | Add getter for count | lib/views/bottom-status.js | lib/views/bottom-status.js | 'use strict';
class BottomStatus extends HTMLElement{
createdCallback() {
this.classList.add('inline-block')
this.classList.add('linter-highlight')
this.iconSpan = document.createElement('span')
this.iconSpan.classList.add('icon')
this.appendChild(this.iconSpan)
this.count = 0
this.ad... | JavaScript | 0 | @@ -454,26 +454,93 @@
%0A%0A
-set count(Value) %7B
+get count()%7B%0A return this._count%0A %7D%0A%0A set count(Value) %7B%0A this._count = Value
%0A
|
1b6f537f7b1fbf3abae850004491fc5c9e360335 | 支持在项目的 package.json 里配置 | lib/webpack.config.base.js | lib/webpack.config.base.js | /**
* @file webpack.config.base.js
* @author 刘巍峰 <weifeng3@staff.weibo.com>
* Created on 2016-02-13 23:53
*/
/**
* Created by liuweifeng on 16/1/14.
*/
'use strict';
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin'... | JavaScript | 0 | @@ -363,131 +363,135 @@
-var hwpConfig = %7B%0A title: options.title %7C%7C '%E5%92%B8%E9%B1%BC - %E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91%E8%84%9A%E6%89%8B%E6%9E%B6',%0A template: path.join(__dirname, 'index.ejs')%0A %7D
+const localConfig = require(process.cwd() + '/package.json')%5B'xianyu'%5D %7C... |
7e592a9cf4c7f1b178ba85d092c3a3497a1c5c3d | Complete * 判断文件是否存在,不存在就创建 | zhihu/app.js | zhihu/app.js | 'use strict'
/**
* TODO 下个版本1.2.0添加功能
* 不重复保存已保存的收藏
* 如果该收藏被删除,提示用户
* 在网络状态差的情况下,重新请求
* 介绍页面弄一下
*/
var zhihu = require('./zhihuapi/api.js').zhihu
var fs = require('fs')
var readline = require('readline')
/**
* [rl 命令行输入框]
*/
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
}... | JavaScript | 0.000001 | @@ -215,112 +215,27 @@
%0A *
-%5Brl %E5%91%BD%E4%BB%A4%E8%A1%8C%E8%BE%93%E5%85%A5%E6%A1%86%5D%0A */%0Avar rl = readline.createInterface(%7B%0A input: process.stdin,%0A output: process.stdout%0A%7D)%0A
+%E5%88%A4%E6%96%AD%E6%96%87%E4%BB%B6%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%EF%BC%8C%E4%B8%8D%E5%AD%98%E5%9C%A8%E5%B0... |
d75816043989851013fd795b76adaf8f75bdae92 | remove console.log | src/js/tabs/advanced.js | src/js/tabs/advanced.js | var util = require('util'),
webutil = require('../util/web'),
Tab = require('../client/tab').Tab,
Currency = ripple.Currency;
var AdvancedTab = function ()
{
Tab.call(this);
};
util.inherits(AdvancedTab, Tab);
AdvancedTab.prototype.tabName = 'advanced';
AdvancedTab.prototype.mainMenu = 'advanced';
Adv... | JavaScript | 0.000001 | @@ -3816,134 +3816,8 @@
se;%0A
- console.log('---- ServerRowCtrl::cancel index: ' + $scope.index);%0A console.log(JSON.stringify($scope.server));%0A
@@ -4056,121 +4056,8 @@
%5D);%0A
- console.log(JSON.stringify($scope.server));%0A console.log(JSON.stringify(Options.server.servers));%... |
1aabaec1584a1bc0bda9f63ab542d2daf20c0109 | Revert "comment out spammy CTD logging" | src/ConstantTimeDispatcher.js | src/ConstantTimeDispatcher.js | /*
Copyright 2017 Vector Creations 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 | @@ -1868,18 +1868,16 @@
-//
console.
|
e2b89801a4f84e0e9fe81d2f760798b6f05275be | test updated | lib/assets/test/spec/cartodb/table/tableview.spec.js | lib/assets/test/spec/cartodb/table/tableview.spec.js | /**
* test for table view
*/
describe("tableview", function() {
describe("headerview", function() {
var view;
var model = new cdb.admin.CartoDBTableMetadata({
name: 'test'
});
beforeEach(function() {
view = new cdb.admin.HeaderView({
el: $('<div>'),
column: ['name', 't... | JavaScript | 0 | @@ -3280,15 +3280,22 @@
row
-changes
+is being saved
%22, f
@@ -3403,15 +3403,14 @@
.row
-Changed
+Saving
();%0A
|
21a95ddc1269129c4d568af42f3b2bb6dbb3f30a | Clear the timeout timer in the catch | lib/cluster/services/cluster/backends/state-utils.js | lib/cluster/services/cluster/backends/state-utils.js | 'use strict';
const _ = require('lodash');
const parseError = require('@terascope/error-parser');
function _iterateState(clusterState, cb) {
return _.chain(clusterState)
.filter(node => node.state === 'connected')
.map((node) => {
const workers = node.active.filter(cb);
... | JavaScript | 0.000023 | @@ -1163,49 +1163,8 @@
) %7B%0A
- // eslint-disable-next-line no-undef%0A
@@ -3194,14 +3194,79 @@
tch(
+(
err
+)
=%3E
+ %7B%0A clearTimeout(timer);%0A
rej
@@ -3309,16 +3309,35 @@
: 500 %7D)
+;%0A %7D
);%0A%0A
|
1709f098aaaaf9358292a107e04795b12a6284cb | add another bad args catcher in applyPagination | lib/graphql-bookshelf-bridge/util/applyPagination.js | lib/graphql-bookshelf-bridge/util/applyPagination.js | import { countTotal } from '../../../lib/util/knex'
export const PAGINATION_TOTAL_COLUMN_NAME = '__total'
export default function applyPagination (query, tableName, opts) {
const { first, cursor, order, offset, sortBy = 'id' } = opts
if (cursor && offset) {
throw new Error('Specifying both cursor and offset ... | JavaScript | 0.000001 | @@ -324,13 +324,130 @@
not
-allow
+supported.')%0A %7D%0A%0A if (cursor && sortBy !== 'id') %7B%0A throw new Error('Specifying both cursor and sortBy is not support
ed.'
|
1dc3804e06a7e878a8b79407712623ac660a9ffc | Fix typo with event | lib/middleware/apiGatewayProxyWebsocket/lib/event.js | lib/middleware/apiGatewayProxyWebsocket/lib/event.js | const smash = require("../../../../smash");
const logger = smash.logger("Event");
const errorUtil = new smash.SmashError(logger);
class Event {
constructor(rawEvent, context, terminate) {
if (typeof rawEvent !== 'object') {
throw new Error("First parameter of Event() must be an object, " + error... | JavaScript | 0.99996 | @@ -1230,25 +1230,28 @@
s.headers =
-e
+rawE
vent.headers
@@ -1578,33 +1578,36 @@
ll;%0A if (
-e
+rawE
vent.requestCont
@@ -1605,33 +1605,36 @@
questContext &&
-e
+rawE
vent.requestCont
@@ -1663,17 +1663,20 @@
ct.keys(
-e
+rawE
vent.req
@@ -1755,17 +1755,20 @@
ign(%7B%7D,
-e
+rawE
vent.req
@@ -1806,... |
88cbdbcaa0069a92271ae7171196162dc7c023ce | Use navigator.language | src/lib/exceptionist.js | src/lib/exceptionist.js | var logger = require('./logger')
var transport = require('./transport')
var utils = require('./utils')
module.exports = {
normalizeFrame: function normalizeFrame (frame, options) {
options = options || {}
if (!frame.url) return
// normalize the frames data
var normalized = {
'filename': frame... | JavaScript | 0.000003 | @@ -2580,21 +2580,17 @@
'
-userL
+l
anguage'
@@ -2605,13 +2605,9 @@
tor.
-userL
+l
angu
@@ -2691,16 +2691,17 @@
platform
+,
%0A %7D
@@ -2822,16 +2822,17 @@
ion.href
+,
%0A %7D
|
ab0618427f30278f5529d427e6e7ba39633e523e | Correct mergeSchemas signature | src/lib/mergeSchemas.js | src/lib/mergeSchemas.js | import urljoin from "url-join"
import {
mergeSchemas as _mergeSchemas,
introspectSchema,
makeRemoteExecutableSchema,
} from "graphql-tools"
import { ApolloLink } from "apollo-link"
import { createHttpLink } from "apollo-link-http"
import { setContext } from "apollo-link-context"
import fetch from "node-fetch"
im... | JavaScript | 0.000002 | @@ -1903,38 +1903,141 @@
s: %5B
-localSchema, convectionSchema,
+%0A %7B name: %22local%22, schema: localSchema %7D,%0A %7B name: %22convection%22, schema: convectionSchema %7D,%0A %7B name: %22links%22, schema:
lin
@@ -2045,16 +2045,24 @@
TypeDefs
+ %7D,%0A
%5D,%0A /
|
471871ba295c3075c6f20d7021e2263c6606b29b | Allow string value in Value. | src/js/components/Value.js | src/js/components/Value.js | // (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
const CLASS_ROOT = "value";
export default class Value extends Component {
render () {
const classes = [CLASS_ROOT];
if (this.props.size) {
classes.push(`${CLASS_ROOT}--${this.props.s... | JavaScript | 0.000007 | @@ -1708,14 +1708,55 @@
pes.
-number
+oneOfType(%5BPropTypes.number, PropTypes.string%5D)
.isR
|
166cc9919188d43a1f4bedbace5282480b9dd467 | Fix tabs | lime/src/audio/audiomap.js | lime/src/audio/audiomap.js | goog.provide('lime.audio.AudioMap');
goog.require('goog.events');
goog.require('lime.userAgent');
goog.require('jukebox.Manager');
goog.require('jukebox.Player');
/**
* AudioMap object
* @constructor
* @param {object} config Configuration object.
*/
lime.audio.AudioMap = function(config) {
if (config.data && goo... | JavaScript | 0.000002 | @@ -286,25 +286,28 @@
n(config) %7B%0A
-%09
+
if (config.d
@@ -345,18 +345,24 @@
ata)) %7B%0A
-%09%09
+
config =
@@ -377,20 +377,26 @@
data();%0A
-%09%7D%0A%09
+ %7D%0A
this.con
@@ -413,11 +413,17 @@
ig;%0A
-%09%0A%09
+ %0A
if (
@@ -471,18 +471,24 @@
HONE) %7B%0A
-%09%09
+
go... |
e37382c814eda6e6e3e4a72254968d2e89c0bb9e | Manage close token | src/knockout_tokenfield.js | src/knockout_tokenfield.js | ;(function(factory) {
//CommonJS
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
factory(require("knockout"), require("jQuery"), exports);
//AMD
} else if (typeof define === "function" && define.amd) {
define(["knockout", "jQuery", "e... | JavaScript | 0.000001 | @@ -3211,75 +3211,12 @@
ount
+++
);
-%0A%0A counterCount++;%0A
%0A%0A
|
95847e2d74258dd02b8cf32e185540b4802892d5 | Refresh friends list on login | project/src/js/ui/loginModal.js | project/src/js/ui/loginModal.js | import session from '../session';
import push from '../push';
import challengesApi from '../lichess/challenges';
import * as utils from '../utils';
import * as helper from './helper';
import i18n from '../i18n';
import signupModal from './signupModal';
import backbutton from '../backbutton';
import * as m from 'mithril... | JavaScript | 0 | @@ -23,24 +23,56 @@
./session';%0A
+import socket from '../socket';%0A
import push
@@ -718,24 +718,92 @@
'center');%0A
+ // reconnect socket to refresh friends...%0A socket.connect();%0A
push.reg
|
8a1d9eb96a3cf191d24f734cd0a2bffd852567dd | Move comment around | src/scripts/browser/components/native-notifier/impl-darwin.js | src/scripts/browser/components/native-notifier/impl-darwin.js | /* eslint-disable babel/new-cap */
import $ from 'nodobjc';
import BaseNativeNotifier from 'browser/components/native-notifier/base';
class DarwinNativeNotifier extends BaseNativeNotifier {
constructor () {
super();
// Flag that this notifier has been implemented
this.isImplemented = true;
// Obj... | JavaScript | 0 | @@ -1,39 +1,4 @@
-/* eslint-disable babel/new-cap */%0A
impo
@@ -94,16 +94,51 @@
base';%0A%0A
+/* eslint-disable babel/new-cap */%0A
class Da
@@ -357,22 +357,21 @@
');%0A
-const
+this.
pool = $
@@ -410,46 +410,8 @@
t');
- // eslint-disable-line no-unused-vars
%0A%0A
|
116a58a2763831858aa34d46f64e8c46a860c1dd | Use wall time, not a timer | src/main/webapp/js/tile.js | src/main/webapp/js/tile.js | var Tile = function(sprite) {
this.sprite_ = sprite;
sprite.anchor.set(0.5);
sprite.width = Tile.WIDTH;
sprite.height = Tile.HEIGHT;
sprite.inputEnabled = true;
sprite.events.onInputDown.add(this.listener_, this);
sprite.events.onInputOver.add(this.showTimer_, this);
sprite.events.onInpu... | JavaScript | 0.001895 | @@ -376,94 +376,109 @@
-this.timer_ = game.time.create(false);%0A this.timer_.add(11000, this.finish_, this);
+// If there is a timer running for this tile.%0A this.timer_ = false;%0A // The text for the timer.
%0A
@@ -813,32 +813,24 @@
(this.timer_
-.running
) %7B%0A
@@ -833,89 +833,397 @@... |
fc93c675abff814d9c9c52e46e088c8be68f64fd | Fix to page scrolling | SideTube.user.js | SideTube.user.js | // ==UserScript==
// @name SideTube
// @namespace dairful
// @version 0.0.1
// @description Reorder content panels and resize panels into a scrollable panel
// @author Dairful
// @include *://www.youtube.com/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ... | JavaScript | 0.00001 | @@ -83,17 +83,17 @@
0.0.
-1
+2
%0A// @des
@@ -521,41 +521,23 @@
-// Reorder content panels%0A
+ var $upnext =
$(%22
@@ -566,16 +566,34 @@
ts%22)
-.before(
+;%0A var $comments =
$(%22#
@@ -602,33 +602,32 @@
tch-discussion%22)
-)
;%0A $(%22#wa
@@ -624,114 +624,149 @@
-$(%22#... |
462523fc8bbc30eb70a5062ff5e5399e7a2f6a88 | add documentations | src/main/webapp/components/directives/peptideViewer-directive/peptideViewer-directive.js | src/main/webapp/components/directives/peptideViewer-directive/peptideViewer-directive.js | /**
* @author Jose A. Dianes <jdianes@ebi.ac.uk>
*
* The prc-peptide-viewer directive allows us to reuse a list of Peptides everywhere we want to show it (e.g.
* in the clusterDetail-view)
*
*/
var peptideViewerDirective = angular.module('prideClusterApp.peptideViewerDirective', ['ngTable']);
peptideViewerDirec... | JavaScript | 0 | @@ -817,30 +817,147 @@
-$scope.peptides = %5B%5D;%0A
+// init an empty array of peptides%0A $scope.peptides = %5B%5D;%0A%0A // function to be called at init to get peptides using remote web service
%0A
@@ -1901,16 +1901,66 @@
%7D;%0A%0A
+ // setup ng-table with sorting and pagination%0A
$sc... |
3d8703d5aa344d6a94ce6dfec9de3dd5da21d389 | test getTokenFromHeader | api/src/routes/utils/__tests__/get-token-from-header.js | api/src/routes/utils/__tests__/get-token-from-header.js | // Things to know:
// - `test` is a global function from Jest:
// `test(messageString, testerFunction)`
// Learn more here: https://facebook.github.io/jest/docs/api.html#testname-fn
// - `expect` is a global function from Jest
// which allows you to make assertsions. For
// example:
// `expect(1).toBe(1)`
/... | JavaScript | 0.000001 | @@ -1,420 +1,171 @@
-// Things to know:%0A// - %60test%60 is a global function from Jest:%0A// %60test(messageString, testerFunction)%60%0A// Learn more here: https://facebook.github.io/jest/docs/api.html#testname-fn%0A// - %60expect%60 is a global function from Jest%0A// which allows you to make assertsions. For... |
d0bb38916fb17a92bc312630b633b419e84d6734 | Use $apply() in ngChanged to immediately propagate model changes. | app/assets/javascripts/angular/directives/ng_changed.js | app/assets/javascripts/angular/directives/ng_changed.js | angular.module("Prometheus.directives").directive('ngChanged', function() {
return {
restrict: "A",
link: function(scope, element, attrs) {
element.bind("change", function() {
scope.$eval(attrs.ngChanged);
});
}
};
});
| JavaScript | 0 | @@ -204,12 +204,13 @@
pe.$
-eval
+apply
(att
|
246f77c98d48df011a2e80ae5d33bee1104b6366 | tweak positioning when it has no room to right | app/assets/javascripts/discourse/views/user-card.js.es6 | app/assets/javascripts/discourse/views/user-card.js.es6 | import CleansUp from 'discourse/mixins/cleans-up';
var clickOutsideEventName = "mousedown.outside-user-card",
clickDataExpand = "click.discourse-user-card",
clickMention = "click.discourse-user-mention";
export default Discourse.View.extend(CleansUp, {
elementId: 'user-card',
classNameBindings: ['controll... | JavaScript | 0 | @@ -2500,18 +2500,25 @@
eft
-+= overage
+-= (width/2) - 10
;%0A
@@ -2561,17 +2561,17 @@
ght() +
-5
+8
;%0A
|
932e7eac2f0d1a58e5e93792331543985bd0e7ba | fix eslint error | test/unit/directives/mwlCalendarHourList.spec.js | test/unit/directives/mwlCalendarHourList.spec.js | 'use strict';
var angular = require('angular'),
moment = require('moment');
describe('mwlCalendarHourList directive', function() {
var MwlCalendarCtrl,
element,
scope,
$rootScope,
directiveScope,
calendarConfig,
showModal,
clock,
template =
'<mwl-calendar-hour-list ' +
... | JavaScript | 0.001996 | @@ -215,28 +215,8 @@
pe,%0A
- calendarConfig,%0A
@@ -1267,68 +1267,11 @@
ope_
-, _calendarConfig_) %7B%0A calendarConfig = _calendarConfig_;
+) %7B
%0A
|
35c75bc1c1b36a7f055ce3ca2dcdb0415e6418c9 | Fix discrete zoom test | testing/test-cases/jasmine-tests/discreteZoom.js | testing/test-cases/jasmine-tests/discreteZoom.js | /*global describe, it, expect, geo*/
describe('DiscreteZoom and ParallelProjection', function () {
'use strict';
var map, width = 800, height = 800;
var cam;
// create an osm map layer
map = geo.map({
'node': '#map',
'center': [0, 0],
'zoom': 3,
discreteZoom: true
});
map.createLayer('o... | JavaScript | 0.000003 | @@ -407,36 +407,32 @@
lue', function (
-done
) %7B%0A expect(m
@@ -474,100 +474,24 @@
map.
-geoOff(geo.event.transitionend)%0A .geoOn(geo.event.transitionend, function () %7B%0A
+zoom(5.75);%0A
-
expe
@@ -518,54 +518,8 @@
6);%0A
- done();%0A %7D);%0A map.zoom(5.75);%0A
%7D)
@@ -... |
1419dfc77db204e689e0a0ea2bdc2c17dc1e907a | fix the e2e fixture | tests/e2e/fixtures/default-researcher.fixture.js | tests/e2e/fixtures/default-researcher.fixture.js | 'use strict';
var encrypt = require('../../../server/utilities/encryption');
module.exports = {
load: function(mongoose, next) {
console.log('Create `User` fixture');
var salt = encrypt.createSalt(),
hash = encrypt.hashPwd(salt, 'jcust');
mongoose.model('User').create({
... | JavaScript | 0.000004 | @@ -262,13 +262,14 @@
t, '
-jcust
+cperry
');%0A
|
016927edd2155c2c28c61d4e6ba083aff52a9ac9 | fix voor refresh | Urireferencer.js | Urireferencer.js | define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dojo/text!./templates/Urireferencer.html',
'./controllers/UriController',
'dojo/dom-construct',
'dojo/dom-class',
'dojo/on',
'dojo/query',
'dojo/NodeList-traverse'
], function (
... | JavaScript | 0 | @@ -1248,24 +1248,26 @@
%7D,%0A%0A
+re
checkUri: fu
|
7f2282fdc51d488942a2840a5c853265fe5543fa | Update script.js | Web/js/script.js | Web/js/script.js | $(document).ready(function() {
// nav
// nav clase
$(".nav a").on("click", function(){
$(".nav").find(".active").removeClass("active");
$(this).parent().addClass("active");
});
// new
$('.navbar-collapse a').click(function (e) {
$('.navbar-collapse').collapse('toggle');
});
// end ne... | JavaScript | 0.000002 | @@ -196,16 +196,18 @@
// new%0A
+/*
$('.nav
@@ -303,16 +303,18 @@
%7D);
+*/
%0A // en
@@ -899,14 +899,8 @@
%0A %0A
- /*%0A%0A
//
@@ -2099,13 +2099,8 @@
%0A %0A
- */%0A
%7D);%0A
|
975f1fb21d60c7c9860dcb26ddb6de2185816b82 | Update apps/roundcube/src/js/mailFrameScripts.js | apps/roundcube/src/js/mailFrameScripts.js | apps/roundcube/src/js/mailFrameScripts.js | var buffer = 20; //scroll bar buffer
function pageY(elem) {
return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;
}
function resizeIframe() {
var height = document.documentElement.clientHeight;
height -= pageY(document.getElementById('roundcubeFrame'))+ buffer ;
he... | JavaScript | 0 | @@ -1,290 +1,105 @@
-var buffer = 20; //scroll bar buffer%0A%09%0Afunction pageY(elem) %7B%0A return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;%0A%7D%0A%09%0Afunction resizeIframe() %7B%0A var height = document.documentElement.clientHeight;%0A height -= pageY(document.get... |
5a6cfd069df05db7f452fec062590b0155292143 | use String.fromCodePoint in singleton implementation when available | src/Data/String/CodePoints.js | src/Data/String/CodePoints.js | var hasArrayFrom = typeof Array.from === 'function';
var hasStringIterator =
typeof Symbol !== 'undefined' &&
Symbol != null &&
typeof Symbol.iterator !== 'undefined' &&
typeof String.prototype[Symbol.iterator] === 'function';
var hasFromCodePoint = typeof String.prototype.fromCodePoint === 'function';
export... | JavaScript | 0 | @@ -1386,16 +1386,58 @@
gleton =
+ hasFromCodePoint ? String.fromCodePoint :
fromCod
@@ -2413,16 +2413,24 @@
t.apply(
+String,
cps);%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.