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 |
|---|---|---|---|---|---|---|---|
7c51a8f2baac9c0977d5a54551c8078f57cff09d | remove redundant functions, re #3201 | arches/app/media/js/views/graph-designer.js | arches/app/media/js/views/graph-designer.js | define([
'underscore',
'knockout',
'views/base-manager',
'models/graph',
'views/graph/graph-tree',
'graph-designer-data',
'bindings/resizable-sidepanel'
], function(_, ko, BaseManagerView, GraphModel, GraphTree, data) {
var viewModel = {
dataFilter: ko.observable(''),
pla... | JavaScript | 0.000003 | @@ -477,187 +477,8 @@
gn')
-,%0A expandAll: function()%7B%0A viewModel.graphTree.expandAll();%0A %7D,%0A collapseAll: function()%7B%0A viewModel.graphTree.collapseAll();%0A %7D,
%0A
|
67d0ce5928a0d9d837b3d90fd647b54a72da5b09 | Handle case where image doesn't have a src | sashimi-webapp/src/logic/renderer/core.js | sashimi-webapp/src/logic/renderer/core.js | import VirtualBook from './VirtualBook';
import VirtualPage from './VirtualPage';
import helper from './helper';
const CLASS_NAME_PREFIX = 'page-view';
// Setting up page-break-before mechanism
// These page-break-before are hardcoded for now.
// TODO: Refactor this code
const checkShouldPageBreak = function checkSho... | JavaScript | 0.001132 | @@ -2610,24 +2610,163 @@
dImageCount;
+%0A%0A // Handle case where image does not have a src attribute%0A if (!imageArray%5Bi%5D.getAttribute.src) increateLoadedImageCount();
%0A %7D%0A
|
dc6c840ef7c71f615ffb37b43ff59b574fda38a0 | Remove configuration options we no longer support; also send config object all the way through in certain build systems. | packages/truffle/lib/build.js | packages/truffle/lib/build.js | var async = require("async");
var mkdirp = require("mkdirp");
var del = require("del");
var fs = require("fs");
var Contracts = require("./contracts");
var BuildError = require("./errors/builderror");
var child_process = require("child_process");
var spawnargs = require("spawn-args");
var _ = require("lodash");
var exp... | JavaScript | 0 | @@ -956,94 +956,9 @@
tory
-,%0A WEB3_PROVIDER_LOCATION: %22http://%22 + options.rpc.host + %22:%22 + options.rpc.port
%0A
+
@@ -1949,94 +1949,8 @@
ory%22
-,%0A %22network%22,%0A %22network_id%22,%0A %22provider%22,%0A %22resolver%22,%0A %22rpc%22
%0A
@@ -3240,340 +3240,8 @@
)... |
d40873edace052c8de9c63c7517a3baf4693ed38 | test ok | src/scripts/modules/article/ArticleCtrl.spec.js | src/scripts/modules/article/ArticleCtrl.spec.js | //The tests
describe('<Unit Test>', function() {
describe('Article:', function() {
var $scope, ArticleCtrl;
beforeEach(module('arb'));
beforeEach(inject(function ($controller, _$httpBackend_, $rootScope, $state, _ArbRest_, conf) {
var baseUrl = conf.getApiUrl();
$scope = $rootScope... | JavaScript | 0.000003 | @@ -244,28 +244,24 @@
f) %7B%0A%0A
-
var baseUrl
@@ -282,28 +282,24 @@
rl();%0A
-
-
$scope = $ro
@@ -316,28 +316,24 @@
ew();%0A
-
-
ArticleCtrl
@@ -363,36 +363,32 @@
trl', %7B%0A
-
$scope: $scope,%0A
@@ -395,20 +395,16 @@
-
-
ArbRest:
@@ -416,37 +416,29... |
b73bf0f45e959b29eb75a61c9915d024a0475974 | Add no-sparse-arrays rule | .eslintrc.js | .eslintrc.js | module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'jasmine': true
},
'extends': [
'eslint:recommended',
'plugin:flowtype/recommended'
],
'globals': {
// The globals that (1) are accessed but not defined within many of ... | JavaScript | 0.000052 | @@ -1755,24 +1755,55 @@
-spaces': 2,
+%0A 'no-sparse-arrays': 2,
%0A%0A 'p
|
d2bab8ccb7be305db6629440b3dcb72a699fed35 | Fix welcome page authentication redirect not working | api/controllers/auth.js | api/controllers/auth.js | 'use strict'
let passport = require('passport')
let BasicStrategy = require('passport-http').BasicStrategy
let BearerStrategy = require('passport-http-bearer').Strategy
let crypto = require('crypto')
let LocalStrategy = require('passport-local').Strategy
let User = require('../db').User
let Rat = require('../db').Rat
l... | JavaScript | 0.000001 | @@ -4405,16 +4405,32 @@
n.legacy
+ %7C%7C isUserFacing
) %7B%0A
@@ -4560,16 +4560,37 @@
us(200)%0A
+ next()%0A
|
f00db50a1b27b0563bfb57e52c6fa17480893a01 | Remove parameter | helpText.js | helpText.js | const helpIntro = "This help command posts a list of commands.\
This list is not necessarily complete or acurate.\
Some commands may not yet be implemented.\n\n";
blockQuote = function(str) {
return ("```\n" + str + "\n```");
}
exports.help = function(msg) {
return blockQuote(helpIntro +
"Bot Admin ... | JavaScript | 0.000003 | @@ -261,11 +261,8 @@
ion(
-msg
) %7B%0A
|
77469e9a060d4c4b4301f8956d21faac19e760c8 | remove comments | src/searching/builder/HardwaresSearchBuilder.js | src/searching/builder/HardwaresSearchBuilder.js | 'use strict';
import SearchBuilder from './SearchBuilder';
import FieldFinder from '../../util/searchingFields/FieldFinder'
const BASE_URL = '/catalog/hardwares';
/**
* Defined a search over Devices
* @example ogapi.devicesSearchBuilder()
*/
export default class HardwaresSearchBuilder extends SearchBuil... | JavaScript | 0 | @@ -555,198 +555,8 @@
%0D%0A%0D%0A
- /**%0D%0A * The response will only have a summary information %0D%0A * @example%0D%0A *%09ogapi.HardwaresSearchBuilder().summary() %0D%0A * @return %7BHardwaresSearchBuilder%7D %0D%0A */%0D%0A%0D%0A%0D%0A
|
3b86889a99c8951835380fb5baae6d92e7dbd45d | Throw proper error | lib/jor1k.js | lib/jor1k.js | "use strict";
// jor1k compatibility
var VIRTIO_MAGIC_REG = 0x0;
var VIRTIO_VERSION_REG = 0x4;
var VIRTIO_DEVICE_REG = 0x8;
var VIRTIO_VENDOR_REG = 0xc;
var VIRTIO_HOSTFEATURES_REG = 0x10;
var VIRTIO_HOSTFEATURESSEL_REG = 0x14;
var VIRTIO_GUESTFEATURES_REG = 0x20;
var VIRTIO_GUESTFEATURESSEL_REG = 0x24;
var VIRTIO_GU... | JavaScript | 0.000002 | @@ -1224,15 +1224,36 @@
row
-%22abort%22
+new Error(%22message.Abort()%22)
;%0A
|
82bbb5267792b2d9220a2343ed34df10b9023fea | Update RestDAO to new sink interface. | src/foam/dao/RestDAO.js | src/foam/dao/RestDAO.js | /**
* @license
* Copyright 2017 Google Inc. 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 requir... | JavaScript | 0 | @@ -5818,16 +5818,22 @@
ink.put(
+null,
array%5Bi%5D
|
1be84c26866c142669626455a31a2b91ce4907fb | Update shake.js | js/shake.js | js/shake.js | //Origin https://gist.github.com/leecrossley/4078996
var shake = (function () {
var shake = {},
watchId = null,
options = { frequency: 300 },
previousAcceleration = { x: null, y: null, z: null },
shakeCallBack = null;
// Start watching the accelerometer for a shake gesture
shake.st... | JavaScript | 0.000001 | @@ -357,85 +357,22 @@
-alert('method called');%0A if (onShake) %7B%0A alert('shaking!');
+if (onShake) %7B
%0A
@@ -1577,16 +1577,48 @@
etected%0A
+ alert('shaking!!');%0A
@@ -1725,18 +1725,16 @@
-//
shake.st
|
f355f5f9e9dc95c5cebd594eba3e14b4526b19e2 | Fix dependency typo | lib/login.js | lib/login.js | 'use strict';
var delKey = require('key-del');
var get = require('lodash.get');
var tokenUtils = require('./token');
module.exports = function (options) {
return function (req, res) {
var getUser = options.getUser
var configureToken = options.configureToken || require('./configure-token');
var validateP... | JavaScript | 0.000256 | @@ -15,16 +15,19 @@
%0Avar del
+ete
Key = re
|
0e106c85948354fac279cf65fcf8572c5477ead9 | fix missing files | server/src/database.js | server/src/database.js | import dotenv from 'dotenv';
import Sequelize from 'sequelize';
import User from './../models/User';
import Group from './../models/Group';
import Message from './../models/Message';
import GroupMember from './../models/GroupMember';
import Archive from './../models/archive';
dotenv.config();
let connection;
if (pro... | JavaScript | 0.000365 | @@ -293,71 +293,13 @@
);%0A%0A
-let connection;%0A%0Aif (process.env.NODE_ENV !== 'production') %7B%0A
+const
con
@@ -315,34 +315,32 @@
new Sequelize(%0A
-
process.env.DB
@@ -344,21 +344,14 @@
.DB_
-TEST_
NAME,%0A
-
pr
@@ -367,21 +367,14 @@
.DB_
-TEST_
USER,%0A
-
pr
@@ -390,21 +390,16 @@
.DB_
... |
8b30e388fdaba3aa78169c037da7d9dd775749b1 | Disable buggy jsx-indent rule | .eslintrc.js | .eslintrc.js | const path = require('path');
module.exports = {
'root': true,
'parser': 'babel-eslint',
'env': {
'browser': true
},
'extends': [
'airbnb',
'plugin:import/errors'
],
'settings': {
'import/resolver': {
'webpack': {
'config': path.join(__dirname, 'src', 'webpack.config.bab... | JavaScript | 0.000001 | @@ -934,24 +934,119 @@
o-bind': 0,%0A
+ // https://github.com/yannickcr/eslint-plugin-react/issues/1176%0A 'react/jsx-indent': 0,%0A
'react/s
|
759146998f1a3f92f72f401648989b8b7705d7f2 | add fee limit and route limit arguments to get routes | lightning/get_routes.js | lightning/get_routes.js | const BN = require('bn.js');
const {isFinite} = require('lodash');
const {routesFromQueryRoutes} = require('./../lnd');
const defaultFinalCltvDelta = 144;
const defaultRoutesReturnCount = 10;
const intBase = 10;
const msatsPerToken = 1e3;
const pathNotFoundErrors = [
'noPathFound',
'noRouteFound',
'insufficien... | JavaScript | 0 | @@ -472,24 +472,105 @@
Key String%3E%0A
+ %5Bfee%5D: %3CMaximum Fee Tokens Number%3E%0A %5Blimit%5D: %3CLimit Results Count Number%3E%0A
lnd: %3CLN
@@ -1331,16 +1331,28 @@
ination,
+ fee, limit,
lnd, ti
@@ -1614,16 +1614,68 @@
tokens,%0A
+ fee_limit: !fee ? undefined : %7Bfee_limit: fee%7D,%0A
f... |
55926c63f80c1fcc38a613510b25f6694c80d57c | Rename /s to /small | builtins/core.other.js | builtins/core.other.js | const {Feature} = require('other')
const feature = new Feature({
name: 'Core',
version: '0.0.4',
dependencies: {
otherjs: '2.x'
}
})
feature.listen({
to: {commands: ['blockquote', 'caption', 'h1', 'h2', 'h3', 'p', 's']},
on({command, args}) {
return {stagedMessage: {format: command === 's' ? 'syst... | JavaScript | 0.000244 | @@ -95,9 +95,9 @@
0.0.
-4
+5
',%0A
@@ -127,17 +127,17 @@
herjs: '
-2
+3
.x'%0A %7D%0A
@@ -225,16 +225,20 @@
'p', 's
+mall
'%5D%7D,%0A o
@@ -258,16 +258,101 @@
rgs%7D) %7B%0A
+ // TODO: Remove this small -%3E system hack once the ioS client understands small.%0A
retu
@@ -393,16 +393,20 @@
d === 's
+m... |
fa67c36084076d263b1ffa57e79273623c97ec78 | fix homepage | lib/dao.js | lib/dao.js | 'use strict';
var dao = module.exports = {};
var parser = require('./parser');
var config = require('./config');
// a simple pool
dao._queue = [];
dao._pending = false;
// get the whole data tree
dao.tree = function (options, callback) {
if ( dao._data ) {
return callback(null, dao._data);
}
dao... | JavaScript | 0.000007 | @@ -1131,24 +1131,81 @@
'./lang');%0A%0A
+ // our logic make sure the %60ltree%60 always exists%0A
var
@@ -1278,38 +1278,171 @@
ound
- = null;%0A%0A if ( ltree )
+;%0A var slices = req_data.path_slices;%0A var is_homepage = slices.length === 0;%0A%0A if ( is_homepage ) %7B... |
9cb52a2ace65fd16a1d1ef1e51a18cf1f8f3844d | remove .only | src/components/user/services/user.service.v2.integration.test.js | src/components/user/services/user.service.v2.integration.test.js | const chai = require('chai');
const chaiHttp = require('chai-http');
const { ObjectId } = require('mongoose').Types;
const appPromise = require('../../../app');
const testObjects = require('../../../../test/services/helpers/testObjects')(appPromise);
chai.use(chaiHttp);
const { expect } = chai;
describe.only('user se... | JavaScript | 0.000001 | @@ -303,13 +303,8 @@
ribe
-.only
('us
|
634056ca739ca96cc6e3cad542602797a3808016 | work 100% of the time | lib/match.js | lib/match.js | 'use strict'
const Game = require('./game')
const EventEmitter = require('events')
const NewEvent = new EventEmitter()
const $ = require('jquery')
$(document).ready( () => {
resetGame(); trueKeys(); falseKeys(); startPlayers(); playGame(); logNames(); nextLevel(); updateRealScores()
})
let canvas = document.getEle... | JavaScript | 0.000103 | @@ -1894,24 +1894,54 @@
%22alive%22) %7B%0A
+ updatePlayersAndScores()%0A
levelUp
@@ -1976,39 +1976,8 @@
on%22%0A
- updatePlayersAndScores()%0A%0A
@@ -3701,16 +3701,45 @@
rl, '')%0A
+ updatePlayersAndScores()%0A
%7D)%0A%7D%0A%0A
@@ -4502,31 +4502,8 @@
on%22%0A
- updateRealScores()%0A
... |
862748ca527e804d6303dd768a951dbb731515e5 | update env vars name | bot_modules/trellotasks.js | bot_modules/trellotasks.js | // $ trelloTasks
// $ Authors: Zeh
// $ Created on: Mon Apr 4 22:04:38 BRT 2016
// - trello card: Me(r2d3) will create your week trello card
// Tasks
//-------------
// Check error
// Give some feedback if not find user
// Random anwsers when finish the process
// Add new checklist mode options
var Base = require('... | JavaScript | 0.000001 | @@ -407,49 +407,58 @@
env.
-TRELLO_KEY , process.env.TRELLO_TOKEN
+trellotasks_key , process.env.trellotasks_token
);%0A
-%0A
var
|
cb06de92c630dce65521f3eef6539fc31f5fe8a4 | Add no-irregular-whitespace rule | .eslintrc.js | .eslintrc.js | module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'jasmine': true
},
'extends': [
'eslint:recommended',
'plugin:flowtype/recommended'
],
'globals': {
// The globals that (1) are accessed but not defined within many of ... | JavaScript | 0.000111 | @@ -1592,24 +1592,62 @@
-regexp': 2,
+%0A 'no-irregular-whitespace': 2,
%0A%0A 'p
|
191abc51b60499e63cd59ff297b0159d47991c1b | Remove dead code (#1295) | lib/mixin.js | lib/mixin.js | 'use strict';
var _ = require("lodash");
function mixin(a, b) {
if (! a) { a = {}; }
if (! b) {b = {}; }
a = _.cloneDeep(a);
for(var prop in b) {
a[prop] = b[prop];
}
return a;
}
module.exports = mixin;
| JavaScript | 0 | @@ -62,51 +62,8 @@
) %7B%0A
-%09if (! a) %7B a = %7B%7D; %7D%0A%09if (! b) %7Bb = %7B%7D; %7D%0A
%09a =
|
d6b76c5ab6d8f4340354ba9eecaccd1dfd4cad4c | fix update users from keeper | src/modules/keeper/controllers/KeeperCtrl.js | src/modules/keeper/controllers/KeeperCtrl.js | (function () {
'use strict';
/**
* @param Base
* @param $scope
* @param {User} user
* @return {KeeperCtrl}
*/
const controller = function (Base, $scope, user) {
const signatureAdapter = require('@waves/signature-adapter');
class KeeperCtrl extends Base {
... | JavaScript | 0 | @@ -1547,16 +1547,93 @@
scope);%0A
+ this.adapter.onUpdate((state) =%3E this.onUpdateState(state));%0A
@@ -2607,32 +2607,255 @@
%0A %7D%0A%0A
+ onUpdateState(data) %7B%0A if (data && data.account && this.selectedUser && this.selectedUser.address !== data.a... |
53a070e727b5c6b40ed6b5cd12e5a470b201d29f | Change example | example/src/index.js | example/src/index.js | import Graph from 'react-graph-vis'
// import Graph from 'react-graph-vis'
import React from 'react'
import {render} from 'react-dom'
let graph = {
nodes: [
{id: 1, label: 'Node 1', color: '#e04141'},
{id: 2, label: 'Node 2', color: '#e09c41'},
{id: 3, label: 'Node 3', color: '#e0df41'},
{i... | JavaScript | 0.000001 | @@ -872,1078 +872,24 @@
%0A%7D%0A%0A
-class ExampleGraph extends React.Component %7B%0A constructor(%7BinitialGraph%7D) %7B%0A super();%0A this.state = %7B%0A graph: initialGraph%0A %7D;%0A %7D%0A clickHandler() %7B%0A const %7B graph %7D = this.state;%0A const no... |
499aa57e8781e3c22fce5c0a745dc56785ed89d6 | Fix dest vertex not updating edge labels on edge creation | web/war/src/main/webapp/js/data/withSocketHandlers.js | web/war/src/main/webapp/js/data/withSocketHandlers.js | define([], function() {
'use strict';
return withSocketHandlers;
function withSocketHandlers() {
this.after('initialize', function() {
this.on('socketMessage', this.onSocketMessage);
});
this.onSocketMessage = function(evt, message) {
var self = this,
... | JavaScript | 0.000001 | @@ -1532,16 +1532,18 @@
stVertex
+Id
%5D%0A
|
916dfff21ad276d7ae40d4c71558ec3f31b64d3a | Fix test warning | src/tests/structs/unit_DeliveryPipeline.test.js | src/tests/structs/unit_DeliveryPipeline.test.js | const DeliveryPipeline = require('../../structs/DeliveryPipeline.js')
const config = require('../../config.js')
const DeliveryRecord = require('../../models/DeliveryRecord.js')
const ArticleMessage = require('../../structs/ArticleMessage.js')
const ArticleRateLimiter = require('../../structs/ArticleMessageRateLimiter.j... | JavaScript | 0.000002 | @@ -4576,38 +4576,32 @@
ArticleFailure',
- async
() =%3E %7B%0A bef
|
0dbd623d0be0461c72db7ccc6f85e51695fd3e2c | Prepare for 1.1 release. | src/game/typingmania.js | src/game/typingmania.js | import Viewport from '../graphics/viewport.js'
import InputHandler from './input.js'
import Sound from '../media/sound.js'
import Sfx from '../media/sfx.js'
import SongSystem from '../song/songsystem.js'
import LoadingController from './controller/1-loading.js'
import MenuController from './controller/2-menu.js'
import... | JavaScript | 0 | @@ -1411,11 +1411,11 @@
'1.
-0.1
+1.0
')%0A
|
8843d46e5aff802f92ba4003030c310d1968048d | fix gremlin bindings | lib/gds.js | lib/gds.js | // 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
// distributed un... | JavaScript | 0.000001 | @@ -1569,18 +1569,18 @@
ndings:
-''
+%7B%7D
,%0A %7D,
|
64cd4c5c3324a7b20b6f9cda93770eca0e95c199 | support path option in get for debugging purposes | lib/get.js | lib/get.js | var hash = require('./hash')
var options = require('./options')
module.exports = get
function get (db, heads, key, opts, cb) {
if (typeof opts === 'function') return get(db, heads, key, null, opts)
var req = new GetRequest(db, key, opts)
req.start(heads, cb)
}
function GetRequest (db, key, opts) {
this.key ... | JavaScript | 0 | @@ -452,16 +452,29 @@
._path =
+ opts.path %7C%7C
hash(ke
|
27209ebff0889c987f37c8d7bc8d2522473629b1 | Stop counting png and ico | lib/mstat.js | lib/mstat.js | var fs = require('fs');
var path = require('path');
var gitignoreToGlob = require('gitignore-globs');
var micromatch = require('micromatch');
var readdir = require('recursive-readdir-sync');
var colors = require('colors');
var Analysis = require('./analysis');
function checkFileExists(path) {
try {
fs.lstatSync... | JavaScript | 0 | @@ -1136,16 +1136,210 @@
%0A %7D%0A%7D%0A%0A
+function isCode(filePath) %7B%0A const NON_CODE_PATTERNS = %5B%0A /.+%5C.png$/,%0A /.+%5C.ico$/%0A %5D;%0A%0A return ! NON_CODE_PATTERNS.some(function (pattern) %7B%0A return pattern.test(filePath);%0A %7D);%0A%7D%0A%0A
module.e
@@ -1656,16 +1656,32 @@
Patt... |
5a06a1e17f219920853c0562634edd988b7854e5 | Remove call to done. | lib/phases/routes.js | lib/phases/routes.js | /**
* Module dependencies.
*/
var scripts = require('scripts')
, path = require('path')
, fs = require('fs')
, existsSync = fs.existsSync || path.existsSync // <=0.6
/**
* Route drawing phase.
*
* This phase will `require` a routes file, allowing the application to draw its
* routes.
*
* This phase is... | JavaScript | 0 | @@ -1027,15 +1027,8 @@
turn
- done()
; %7D%0A
|
f4c5a647da2787e41fbab362c1a2ac48add63d60 | fix loaders wrong parameter | src/getDefaultConfig.js | src/getDefaultConfig.js | import { join } from 'path';
import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
let getCommonConfig = {
getLoders: function (args) {
let name = args.hash ? '[name].[hash:8].[ext]' : '[name].[ext]';
const babelQuery = {
presets: ['stage-0', 'es2015', 'react']
... | JavaScript | 0.000001 | @@ -622,33 +622,33 @@
%7B limit: 100, mi
-n
+m
etype: 'applicat
@@ -746,33 +746,33 @@
%7B limit: 100, mi
-n
+m
etype: 'applicat
@@ -873,25 +873,25 @@
mit: 100, mi
-n
+m
etype: 'appl
@@ -1091,17 +1091,17 @@
0000, mi
-n
+m
etype: '
|
895fc60774bd3ac258317a4f9afd2205bc627c52 | Simplify PulsarStatus | lib/pulsar/status.js | lib/pulsar/status.js | module.exports = (function () {
var PulsarStatus = function (status) {
this.status = status || 'CREATED';
}
PulsarStatus.STATUS_CREATED = 'CREATED';
PulsarStatus.STATUS_PENDING = 'PENDING';
PulsarStatus.STATUS_RUNNING = 'RUNNING';
PulsarStatus.STATUS_FINISHED = 'FINISHED';
PulsarStatus.STATUS_CANCEL... | JavaScript | 0.99994 | @@ -99,22 +99,41 @@
%7C%7C
-'
+PulsarStatus.STATUS_
CREATED
-'
;%0A %7D
+;
%0A%0A
@@ -177,51 +177,8 @@
D';%0A
- PulsarStatus.STATUS_PENDING = 'PENDING';%0A
Pu
@@ -265,55 +265,8 @@
D';%0A
- PulsarStatus.STATUS_CANCELLED = 'CANCELLED';%0A
Pu
@@ -408,32 +408,33 @@
this.status;%0A %7D
+;
%0A%0A Pulsa... |
b9f8624e7ecaa2b709b4942f4939c7d13da189c7 | Disable refresh button when already running | src/plugins/01_software/public/js/controller.js | src/plugins/01_software/public/js/controller.js | angular.module('Software.controllers', ['Software.services']).
controller('softwareController', function($scope, $q, $sce, BranchesApiService, softwareApiService, SocketAccess) {
var socket = SocketAccess();
$scope.showUpdatesOnly = true;
$scope.showOnlyLatest = true;
$scope.selectedBranch = undefine... | JavaScript | 0 | @@ -1479,24 +1479,106 @@
ewStatus) %7B%0A
+ $scope.refreshingPackages = newStatus.running? newStatus.running : false;%0A
$sco
@@ -2143,24 +2143,61 @@
ges = true;%0A
+ $scope.aptUpdateError = false;%0A
softwa
|
21e97dcb10a5efd5cfa62ce9a176dffd0148166a | fix matchtype.js v2 | src/utils/matchesType.js | src/utils/matchesType.js | import isArray from 'lodash/lang/isArray';
import intersection from 'lodash/array/intersection';
export default function matchesType(targetType, draggedItemType) {
var draggedItemTypeArr = draggedItemType.split('#');
if (isArray(targetType)) {
if (intersection(targetType, draggedItemTypeArr)) {
return true;... | JavaScript | 0.000004 | @@ -293,16 +293,23 @@
TypeArr)
+ !== %5B%5D
) %7B%0A %09%09
|
9017a368715117dac37623f23221b1b48b811639 | Add axios request to breweryDB through our API endpoint | server/api/breweries/breweryController.js | server/api/breweries/breweryController.js | 'use strict';
const axios = require('axios');
// const Post = require('./postModel')
const _API_KEY = require('../config/apiKeys.js').breweryDBKey;
const _API_ENDPOINT = 'http://api.brewerydb.com/v2/';
exports.get = (req, res, next) => {
console.log('brewery get controller');
// Post.find({})
// .then((pos... | JavaScript | 0 | @@ -158,16 +158,15 @@
API_
-ENDPOINT
+BASEURL
= '
@@ -197,16 +197,18 @@
/v2/';%0A%0A
+%0A
+%0A
exports.
@@ -239,215 +239,412 @@
%3E %7B%0A
+%0A
-console.log('brewery get controller');%0A %0A%0A // Post.find(%7B%7D)%0A // .then((post) =%3E %7B%0A // if (post
+// breweryDB endpoint%0A var endPoint = 'loc... |
58e81ef2a15cb23f45e15ba141b763760230f2b3 | increase plane distance | src/gltf/user_camera.js | src/gltf/user_camera.js | import { vec3 } from 'gl-matrix';
import { gltfCamera } from './camera.js';
import { jsToGl, clamp } from './utils.js';
import { getSceneExtents } from './gltf_utils.js';
const VecZero = vec3.create();
const PanSpeedDenominator = 1200;
const MaxNearFarRatio = 10000;
class UserCamera extends gltfCamera
{
construct... | JavaScript | 0.000055 | @@ -3634,32 +3634,146 @@
min, max)%0A %7B%0A
+ // Manually increase scene extent just for the camera planes to avoid camera clipping in most situations.%0A
const lo
@@ -3779,32 +3779,37 @@
ongestDistance =
+ 10 *
vec3.distance(m
|
dbabdeb5f7f29bafd2dc84a63478c568d37d93a0 | Add support for converting arrays | lib/parse.js | lib/parse.js | 'use strict';
/**
* Attempts to convert object properties recursively to numbers.
* @param {Object} obj - Object to iterate over.
* @param {Object} options - Options.
* @param {Function} options.parser - Parser to process string with. Should return NaN if not a valid number. Defaults... | JavaScript | 0.000001 | @@ -458,16 +458,42 @@
result =
+ Array.isArray(obj) ? %5B%5D :
%7B%7D,%0A
@@ -825,16 +825,40 @@
= Object
+ %7C%7C Array.isArray(value)
) %7B%0A
|
cb5a32d45ad68df534690024811c46065546bb68 | remove unnecessary state | packages/admin/src/components/table/LooTable.js | packages/admin/src/components/table/LooTable.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableHead from '@material-ui/core/TableHead';
import { TableFooter } from '@materi... | JavaScript | 0.000997 | @@ -654,470 +654,8 @@
t %7B%0A
- constructor(props) %7B%0A super(props);%0A%0A this.state = %7B%0A page: this.props.page,%0A rowsPerPage: this.props.rowsPerPage,%0A %7D;%0A %7D%0A%0A componentDidUpdate(prevProps) %7B%0A const %7B page: prevPage, rowsPerPage: prevRowsPerPage %7D = prevProps;%0A... |
fd47fed4ba176eefc1aaeeb7c6834575c4153187 | Simplify Button | packages/components/components/button/Button.js | packages/components/components/button/Button.js | import React from 'react';
import PropTypes from 'prop-types';
import keycode from 'keycode';
import Icon from '../icon/Icon';
const Button = ({
type = 'button',
role = 'button',
loading = false,
tabIndex,
buttonRef,
className = '',
children,
title,
disabled = false,
onClick,
... | JavaScript | 0.000004 | @@ -60,39 +60,8 @@
s';%0A
-import keycode from 'keycode';%0A
impo
@@ -275,950 +275,33 @@
-onClick,%0A onKeyDown,%0A onKeyUp,%0A onFocus,%0A onBlur,%0A icon,%0A ...rest%0A%7D) =%3E %7B%0A const handleClick = (event) =%3E %7B%0A if (!disabled && onClick) %7B%0A onClick(event... |
a69a2973b71a27e0fcc400714e73abebc214dbb5 | Update loop module | src/visual-novel.loop.js | src/visual-novel.loop.js | ( function( VN ) {
/**
* Variable: timers
*
* Hold timers for loop
*/
VN.prototype.timers = {};
/**
* Function: loop
*
* Repeat the action passed a number of times or infinitely
*
* @param id = reference to loop so it can cleared later
* @param repeat = no of times to repeat or repeat infinitel... | JavaScript | 0.000001 | @@ -2942,16 +2942,199 @@
%7D%0A%0A%09%7D;%0A%0A
+%09/**%0A%09 * Attach module to namespace%0A%09 */%0A%09VN.prototype.modules.push(%0A%09%09%7B%0A%09%09%09%22init%22: function init( novelId ) %7B%7D,%0A%09%09%09%22reset%22: function reset() %7B%0A%0A%09%09%09%09this.resetLoops();%0A%0A%09%09%09%7D%0A%09%09%7D%0A%09);%... |
2ecb47ba230427f03ec3dcba3f78c04fdd99d354 | use Date.now() instead of new Date().getTime() for the performance improvements | lib/ntp.js | lib/ntp.js | var http = Npm.require('http');
var logger = Npm.require('debug')("kadira:ntp");
var Fiber = Npm.require('fibers');
Ntp = function (endpoint) {
this.endpoint = endpoint + '/simplentp/sync';
this.diff = 0;
this.reSyncCount = 0;
this.reSync = new Retry({
baseTimeout: 1000*60,
maxTimeout: 1000*60*10,
... | JavaScript | 0.000003 | @@ -380,34 +380,24 @@
return
-(new Date).getTime
+Date.now
() + Mat
@@ -1241,34 +1241,24 @@
tTime =
-(new Date).getTime
+Date.now
();%0A
@@ -1400,34 +1400,24 @@
// (
-(new Date).getTime
+Date.now
() + sta
@@ -1497,26 +1497,16 @@
- (
-(new Date).getTime
+Date.now
() +
|
25964b41c3cf9b7c54f2ba1396d1383e7475a730 | Fix new api | packages/components/containers/app/createApi.js | packages/components/containers/app/createApi.js | import { fetchJson } from 'proton-shared/lib/fetch/fetch';
import configureApi from 'proton-shared/lib/api';
export default ({ CLIENT_ID, APP_VERSION, API_VERSION, API_URL }) => (UID) => {
return configureApi({
xhr: fetchJson,
UID,
API_URL,
CLIENT_ID,
API_VERSION,
AP... | JavaScript | 0.000058 | @@ -4,21 +4,11 @@
ort
-%7B fetchJson %7D
+xhr
fro
@@ -214,19 +214,8 @@
xhr
-: fetchJson
,%0A
|
15fb6a36871a7db8552eb18e2da7aef144373c12 | Define the way transitions work | json_api.js | json_api.js | /*jslint indent: 2, nomen: true, maxlen: 100 */
/*global require, applicationContext */
(function () {
"use strict";
var FoxxGenerator = require('./foxx_generator').Generator,
generator;
generator = new FoxxGenerator('example', {
mediaType: 'application/vnd.api+json',
applicationContext: application... | JavaScript | 0.000649 | @@ -433,17 +433,16 @@
ed to',%0A
-%0A
to:
@@ -452,108 +452,136 @@
e',%0A
-
//
-to: 'many',%0A%0A // action: function() %7B%0A // Find the person in its repository%0A // %7D,
+%7D).inverseTranstion('assigned', %7B%0A // description: 'Get all objects that are assigned to this person',%0A //... |
4ad923e7d39c8a4efa0e61f90a7e446f69e1f5e3 | Fix the piezo tone function | lib/piezo.js | lib/piezo.js | var Board = require("../lib/board.js"),
events = require("events"),
util = require("util");
function Piezo( opts ) {
opts = Board.options( opts );
// Hardware instance properties
this.board = Board.mount( opts );
this.firmata = this.board.firmata;
this.mode = this.firmata.MODES.PWM;
this.pin = op... | JavaScript | 0.999829 | @@ -704,67 +704,302 @@
);%0A%0A
-Piezo.prototype.tone = function( tone, duration ) %7B%0A%0A this
+/**%0A * Alternate between high/low pulses count number of times,%0A * changing every duration ms.%0A *%0A * This simulates different tone.%0A *%0A * From https://www.sparkfun.com/products/7950#comment-4eaad84d757b7fd35... |
3b4d08b80600e9203d76be813e3d6e281f69cc52 | fix proptype for error | src/routes/ExchangeRates/components/ControlPanel/ControlPanel.js | src/routes/ExchangeRates/components/ControlPanel/ControlPanel.js | import React, { PropTypes } from 'react'
import { reduxForm } from 'redux-form'
import { connect } from 'react-redux'
import './ControlPanel.scss'
import { validate, warn } from '../../modules/validation'
import { selectors, fetchRates } from '../../modules/exchangeRates'
import CurrencyPicker from '../CurrencyPicker'
... | JavaScript | 0.000001 | @@ -1514,25 +1514,65 @@
pes.
-string.isRequired
+oneOfType(%5B%0A PropTypes.string,%0A PropTypes.bool%0A %5D)
%0A%7D%0A%0A
|
0fb57542e6de23252de745f0fd4640724b8ef995 | Fix pip script when using pipenv | lib/pip.js | lib/pip.js | const fse = require('fs-extra');
const path = require('path');
const {spawnSync} = require('child_process');
const {quote} = require('shell-quote');
const values = require('lodash.values');
const {buildImage, getBindPath} = require('./docker');
/**
* Install requirements described in requirementsPath to targetPath
*... | JavaScript | 0.000001 | @@ -595,112 +595,8 @@
) %7B%0A
- if (!fse.existsSync(path.join(requirementsPath))) %7B%0A // No requirements file found%0A return;%0A %7D%0A
//
|
3cd72951e241badd47ece38a8715fd31b701bc84 | Update web-audio.js | web-audio/web-audio.js | web-audio/web-audio.js | var context;
window.addEventListener('load', init, false);
function init() {
try {
var dogBarkingBuffer = null;
// Fix up prefixing
window.AudioContext = window.AudioContext || window.webkitAudioContext;
var context = new AudioContext();
url = 'https://commons.wikimedia.org/wiki/File:Sound-of-dog.ogg';
... | JavaScript | 0 | @@ -77,16 +77,99 @@
%0A%09try %7B%0A
+%09 var dogBarkingUrl = 'https://commons.wikimedia.org/wiki/File:Sound-of-dog.ogg';%0A
%09%09var do
@@ -289,20 +289,16 @@
text;%0A%09%09
-var
context
@@ -324,80 +324,176 @@
);%0A%09
-%09
%0A%09%09
-url = 'https://commons.wikimedia.org/wiki/File:Sound-of-dog.ogg';%0A%09%09
... |
cb100dbbbd1feb5fe1931b484393886a51cee5cc | Add count + avoid to show orga as an assignee | extension/content.js | extension/content.js | let selectedAssignee = '';
function addHeaderOptionsIcon() {
const headerButtons = $('div.project-header > div.d-table.mt-1.float-right.f6');
headerButtons.prepend(Handlebars.templates['header-options-icon']());
}
function addProjectsOptionsPane() {
const panes = $('div.project-pane');
const panesParent = pan... | JavaScript | 0 | @@ -2659,10 +2659,10 @@
s =
-%5B%5D
+%7B%7D
;%0A
@@ -2685,16 +2685,33 @@
ls = $('
+.project-columns
img.avat
@@ -2900,16 +2900,20 @@
e;%0A%0A
+if (
assignee
@@ -2917,24 +2917,97 @@
nees
-.push(%7B
+%5Busername%5D) %7B%0A assignees%5Busername%5D.count += 1;%0A %7D else %7B%0A assignees%5B
u... |
83887be8cf61476c8ddc51870bd45adfb1ab7fb9 | Update docs | docs/index.js | docs/index.js | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Markdown } from 'markdownloader';
import { Header, Navbar, Nav, Row, Col } from 'rsuite';
import Affix from 'rsuite-affix';
import './less/index.less';
import DatePickerDefault from './example/DatePickerDefault';
import DatePickerDis... | JavaScript | 0.000001 | @@ -3069,38 +3069,42 @@
%3Chr id=%22
-loca
+control
le
+d
%22 className=%22tar
@@ -3276,32 +3276,85 @@
%3C/Markdown%3E%0A%0A
+ %3Chr id=%22api%22 className=%22target-fix%22 /%3E%0A
%3Ch
|
8c63a529370e84a0fba6478c9f08165db97cfc3d | Load date input component (task #8668) | resources/src/components/fh/index.js | resources/src/components/fh/index.js | import blobInput from './Text'
import booleanInput from './Boolean'
import countryInput from './List'
import currencyInput from './List'
import datetimeInput from './Datetime'
import decimalInput from './Decimal'
import dblistInput from './List'
import emailInput from './Email'
import integerInput from './Integer'
impo... | JavaScript | 0 | @@ -126,24 +126,55 @@
om './List'%0A
+import dateInput from './Date'%0A
import datet
@@ -722,24 +722,39 @@
rencyInput,%0A
+ dateInput,%0A
datetime
|
290722d69aa3014862237ce7ac2739cdaaba7b50 | Add Query.offset for easier app level paging. | lib/query.js | lib/query.js | "use strict";
// self.table('tableAlias')
// .query('primaryKeyValue', 'optionalRangeValue')
// .fetch(done);
//
// this.query('edit', id)
// .fetch(done);
// this.query('edit', id)
// .remove(done);
// this.put('edit', id, range)
// .set({})
// this.query('edit', id)
// .update()
// .se... | JavaScript | 0 | @@ -948,16 +948,38 @@
= null;%0A
+ this._offset = 0;%0A
%7D%0A%0A// @t
@@ -1275,16 +1275,112 @@
imit = l
+ + this._offset;%0A return this;%0A%7D;%0A%0AQuery.prototype.offset = function(o)%7B%0A this._offset = o
;%0A re
@@ -1967,16 +1967,37 @@
s = %7B%7D,%0A
+ self = this,%0A
@@ -2063,1... |
9472983845a17d4006eaf243681f2654e8592104 | missing semicolon | lib/query.js | lib/query.js | 'use strict';
var traverse = require('traverse');
var ObjectID = require('mongodb').ObjectID;
var TWO_DAYS = 172800000;
function default_options (opts) {
opts = opts || { };
if (opts) {
var keys = [null].concat(Object.keys(opts));
// if (keys.indexOf('laxDate') < 1) { opts.laxDate = false; }
if (keys... | JavaScript | 0.999988 | @@ -1215,16 +1215,17 @@
urn exec
+;
%0A%7D%0A%0Afunc
|
e809ee4c4d479bd96e9ca8ff14390b3b95cdb9fe | fix responsive tool docs | pages/docs/responsive-tool.js | pages/docs/responsive-tool.js | import React from 'react';
import withDocs from '../../site/withDocs';
const ResponsiveTool = ({ compile }) => {
return (
<div>
{compile(`
# Responsive Tool
Arwes has some utilities to handle responsive functionalities. You can use the
\`createResponsive\` module and create your tool.
\`\`\`javascript
i... | JavaScript | 0 | @@ -661,23 +661,25 @@
ten for
-viewpor
+breakpoin
t change
|
f9bf1483349b03a393e5ece209b16d477da94049 | move custom static middleware to top of stack | lib/tty.js | lib/tty.js | /**
* tty.js
* Copyright (c) 2012, Christopher Jeffrey (MIT License)
*/
process.title = 'tty.js';
/**
* Modules
*/
var path = require('path')
, fs = require('fs')
, EventEmitter = require('events').EventEmitter;
var express = require('express')
, io = require('socket.io')
, pty = require('pty.js');
/*... | JavaScript | 0 | @@ -859,24 +859,86 @@
use(auth);%0A%0A
+if (conf.static) %7B%0A app.use(express.static(conf.static));%0A%7D%0A%0A
app.use(expr
@@ -1016,70 +1016,8 @@
);%0A%0A
-if (conf.static) %7B%0A app.use(express.static(conf.static));%0A%7D%0A%0A
app.
|
7b58b32312075e28abcf507893b2dab489f29a39 | Move setting headers to a separate method | lib/reply.js | lib/reply.js | /* eslint-disable no-useless-return */
'use strict'
const pump = require('pump')
const safeStringify = require('fast-safe-stringify')
const xtend = require('xtend')
const validation = require('./validation')
const serialize = validation.serialize
const statusCodes = require('./status-codes.json')
const stringify = JS... | JavaScript | 0.000001 | @@ -1378,54 +1378,8 @@
de%0A%0A
- for (var k in payload.output.headers) %7B%0A
@@ -1393,12 +1393,10 @@
ader
+s
(
-k,
payl
@@ -1417,18 +1417,9 @@
ders
-%5Bk%5D)%0A %7D
+)
%0A%0A
@@ -3154,32 +3154,205 @@
return this%0A%7D%0A%0A
+Reply.prototype.headers = function (headers) %7B%0A var keys = Obje... |
50f865510c5ef9d73486e4ac63e898c39ef8c8d5 | Use camel case | lib/uri.js | lib/uri.js | 'use strict';
const path = require('path');
const url = require('url');
module.exports = function normalizeURI (uri) {
if (typeof uri === 'string') uri = url.parse(uri, true);
if (uri.hostname === '.' || uri.hostname === '..') {
uri.pathname = uri.hostname + uri.pathname;
delete uri.hostname;
... | JavaScript | 0.000885 | @@ -710,26 +710,25 @@
l_cache = as
-_b
+B
ool(uri.quer
@@ -1258,18 +1258,17 @@
nts = as
-_b
+B
ool(uri.
@@ -2028,26 +2028,25 @@
?%0A as
-_b
+B
ool(uri.quer
@@ -2194,18 +2194,17 @@
cs = as
-_b
+B
ool(uri.
@@ -2254,10 +2254,9 @@
n as
-_b
+B
ool(
|
645e33a4db91044e77752ace7c77b934cf9b74f7 | Fix v2 save_artwork test | src/schema/v2/me/__tests__/save_artwork.test.js | src/schema/v2/me/__tests__/save_artwork.test.js | /* eslint-disable promise/always-return */
import { runAuthenticatedQuery } from "schema/v2/test/utils"
import gql from "lib/gql"
describe("SaveArtworkMutation", () => {
it("saves an artwork", () => {
const mutation = gql`
mutation {
saveArtwork(input: { artwork_id: "damon-zucconi-slow-verb" }) {
... | JavaScript | 0.000001 | @@ -268,35 +268,34 @@
input: %7B artwork
-_id
+ID
: %22damon-zucconi
@@ -1189,19 +1189,18 @@
artwork
-_id
+ID
: %22damon
|
26abeeb7906fd3bd2a8f2610f9f33bef1a67a74f | add new line at end of serve.js | lib/serve.js | lib/serve.js | /*!
* Module dependencies.
*/
var events = require('events'),
http = require('http'),
localtunnel = require('localtunnel'),
middleware = require('./middleware'),
ip = require('./util/ip'),
socketServer = require('./util/socket-server'),
emitter = new events.EventEmitter(),
fs = require('fs... | JavaScript | 0.000001 | @@ -5006,8 +5006,10 @@
ort);%0A%7D;
+%0A%0A
|
2d3292f57631be626bcd1803ffc005c179de8b95 | Update HomeController.js | client/assets/js/controllers/HomeController.js | client/assets/js/controllers/HomeController.js | (function() {
'use strict';
angular
.module('lucidworksView.controllers.home', ['lucidworksView.services', 'angucomplete-alt', 'angular-humanize'])
.controller('HomeController', HomeController);
function HomeController($filter, $timeout, ConfigService, URLService, Orwell, AuthService, _) {
'ngInjec... | JavaScript | 0 | @@ -1522,40 +1522,8 @@
ange
- (and making the query)%0A //
one
@@ -1542,16 +1542,26 @@
e later
+%0A //
than the
@@ -1615,18 +1615,26 @@
// Th
-is
+e $timeout
is need
@@ -1648,25 +1648,39 @@
lse
-URL doe
+the query to fusion i
s not
-lo
+m
ad
+e
.%0A
|
cf946d4704bce840c6b7d12b86b418373243460c | Correct data type text | web/public/js/epirr.js | web/public/js/epirr.js | function init_facetlize() {
$.getJSON("./view/decorated/all", function(data) {
var item_template =
'<% var datatypes = ["bisulfite-seq","dnase-hypersensitivity","rna_seq","chip_seq_input","h3k4me3","h3k4me1","h3k9me3","h3k27ac","h3k27me3","h3k36me3"] %>' +
'<tr class="item">' +
'<td class="acces... | JavaScript | 0.99915 | @@ -135,17 +135,17 @@
isulfite
--
+_
seq%22,%22dn
@@ -151,9 +151,9 @@
nase
--
+_
hype
|
c5be8435307f949d9cdee1ea36e5e7ff39e14fe3 | Remove #addemoji selector | lib/slack.js | lib/slack.js |
/**
* Module dependencies.
*/
var cheerio = require('cheerio');
var thunkify = require('thunkify-wrap');
var request = thunkify(require('request'));
var write = require('./debug').write;
var req = require('request');
var fs = require('fs');
var ask = require('./prompt').prompt_ask;
var isPassword = require('./valid... | JavaScript | 0 | @@ -4046,20 +4046,8 @@
$('
-#addemoji %3E
inpu
|
db882e423ca47e9859b05a2cbf8b899e9b3e6f60 | Change moment for correct timezones | lib/send-to-slack.js | lib/send-to-slack.js | var https = require('https');
var querystring = require('querystring');
var moment = require('moment');
moment.locale('pt-br');
var slack = {
send : function(data, callback) {
var postData, stringToSend, options, req;
postData = {
"text": data.message,
"icon_emoji" : ":ch... | JavaScript | 0.000002 | @@ -93,16 +93,25 @@
('moment
+-timezone
');%0A%0Amom
@@ -1448,16 +1448,68 @@
, _data;
+%0A //actualDate = moment().format('LLLL');
%0A%0A
@@ -1552,16 +1552,17 @@
- - -%5Cn%22
+
+%0A
@@ -1573,39 +1573,24 @@
ment.tz(
-moment().format('LLLL')
+new Date
, 'Ameri
@@ -1603,16 +1603,31 @@
_pau... |
276ac225167a0d3879e9f3d46322337aef379801 | Make the plural entry detection tool more usable | maintenance/find-plural-entries.js | maintenance/find-plural-entries.js | /*jslint node: true */
/*
* Find all of the responses (in the old responseCollection and structure) that
* correspond to the same base feature as some other response.
*
* Usage:
* $ envrun -e my-deployment.env node find-plural-entries.js
*
* Or run on Heroku to mitigate network latency.
*/
'use strict';
var... | JavaScript | 0.002719 | @@ -310,16 +310,47 @@
rict';%0A%0A
+var async = require('async');%0A%0A
var mong
@@ -401,19 +401,239 @@
ion
-run(done) %7B
+getSurveys(done) %7B%0A db.collection('surveyCollection').find(%7B%7D).toArray(function (error, docs) %7B%0A if (error) %7B return done(error); %7D%0A done(null, docs);%0A %7D);%0A%7D%... |
58a17178356aaf879177acfa0fa0858bc10a02a5 | update Server.js to support latest version of Hapi | lib/server/Server.js | lib/server/Server.js | var EventEmitter = require('events').EventEmitter
, Hapi = require('hapi')
, Client = require('../client/Client')
, RedisData = require('./RedisData')
, axon = require('axon')
, ip = require('ip')
, pkg = require('../../package.json')
, util = require('util')
, stats = require('./stats')
;
/**
* `Se... | JavaScript | 0 | @@ -1686,16 +1686,20 @@
Server =
+ new
Hapi.Se
|
55c29686ccad9e060b527bc3f5e82ce25879d089 | Add activityTypeOptions helper | client/views/activities/latest/latestByType.js | client/views/activities/latest/latestByType.js | Template.latestActivitiesByType.created = function () {
// Subscribe to all activity types
this.subscribe('allActivityTypes');
};
| JavaScript | 0.000001 | @@ -127,8 +127,205 @@
s');%0A%7D;%0A
+%0ATemplate.latestActivitiesByType.helpers(%7B%0A 'activityTypeOptions': function () %7B%0A // Get all activity types%0A activityTypes = ActivityTypes.find().fetch();%0A%0A return activityTypes;%0A %7D%0A%7D);%0A
|
1997ff95eff309c4efb838ca244287b1bae67d10 | Return empty script for searchQuery entry point when building the newtab app | web/src/searchQuery.js | web/src/searchQuery.js | // eslint-disable-next-line no-unused-vars
import fetchBingSearchResults from 'js/components/Search/fetchBingSearchResults'
// This is a second entry point to speed up our query
// to fetch search results.
// We've patched react-scripts to add this as another entry
// point. After modifying files in react-scripts, com... | JavaScript | 0.000001 | @@ -1,129 +1,4 @@
-// eslint-disable-next-line no-unused-vars%0Aimport fetchBingSearchResults from 'js/components/Search/fetchBingSearchResults'%0A%0A
// T
@@ -259,15 +259,9 @@
%0A//
-TODO: r
+R
etur
@@ -308,16 +308,305 @@
ab app.%0A
+// The newtab app will still build this entry point because%0A// we share Webpac... |
cb6507195b28181a36cd8fa4d0d7a303b4c5e6e0 | Remove unused function along with unused cluster module | lib/start.js | lib/start.js | 'use strict';
/**
* Module dependencies
*/
// Node.js core.
const cluster = require('cluster');
// Public node modules.
const async = require('async');
/**
* `Strapi.prototype.start()`
*
* Loads the application, then starts all attached servers.
*
* @api public
*/
module.exports = function start(configOver... | JavaScript | 0 | @@ -44,62 +44,8 @@
*/%0A%0A
-// Node.js core.%0Aconst cluster = require('cluster');%0A%0A
// P
@@ -496,1174 +496,8 @@
%0A %5D
-,%0A%0A function strapiReady(err) %7B%0A if (err) %7B%0A return self.stop(function (errorStoppingStrapi) %7B%0A if (errorStoppingStrapi) %7B%0A self.log.error('When... |
904a8e37163baaf395ba4b1c9dcc350571cc36c2 | Update / redirect | lib/server/server.js | lib/server/server.js | "use strict";
var middleware = require('./middleware-boilerplate')
, express = require('express')
, routes = require('../route/all')
, ejs = require('ejs')
, favicon = require('serve-favicon')
, path = require('path')
, UserCtrl = require('../controller/user')
;
var app = express();
// middleware
middl... | JavaScript | 0 | @@ -596,24 +596,89 @@
, routes);%0A%0A
+app.get('/', function (req, res) %7B%0A res.redirect('/main');%0A%7D);%0A%0A
app.use('/ma
|
b24a7933d269e3a8e6b9518cd8de9e73a42c06d3 | Update library.js | library.js | library.js | (function(module) {
"use strict";
var Sketchfab = {},
embed = '<iframe class="sketchfab-embed" frameborder="0" height="480" width="854" allowFullScreen webkitallowfullscreen="true" mozallowfullscreen="true" src="http://sketchfab.com/embed/$1?autostart=0&transparent=0&autospin=0&controls=1"></iframe>';
http://sk... | JavaScript | 0 | @@ -581,12 +581,14 @@
?(?:
-show
+models
)%5C/?
|
dd8a1d060a3a66a329221be79ff80b14da90fdcc | Update protocols.js | src/platforms/mp-qq/runtime/api/protocols.js | src/platforms/mp-qq/runtime/api/protocols.js | import previewImage from '../../../mp-weixin/helpers/normalize-preview-image'
export const protocols = {
previewImage
}
export const todos = [
'startBeaconDiscovery',
'stopBeaconDiscovery',
'getBeacons',
'onBeaconUpdate',
'onBeaconServiceChange',
'addPhoneContact',
'getHCEState',
'startHCE... | JavaScript | 0.000002 | @@ -787,16 +787,74 @@
vibrate'
+,%0A 'loadFontFace',%0A 'getExtConfig',%0A 'getExtConfigSync'
%0D%0A%5D%0D%0Aexp
@@ -1453,27 +1453,8 @@
',%0D%0A
- 'loadFontFace',%0D%0A
'o
@@ -1503,50 +1503,8 @@
',%0D%0A
- 'getExtConfig',%0D%0A 'getExtConfigSync',%0D%0A
'r
|
34d69f883ebc501e189a0c876ad435c7e15e51eb | remove useless debug log | library.js | library.js | (function(module) {
"use strict";
var Charts = {};
var uuid = require('node-uuid');
Charts.parse = function(postContent, callback) {
var regularPattern = /@chart\[data:(.+)\]\{options\:( )*(\{[^]+\})\}/g;
//var regularPattern = /@chart\[data:(.+)\]\{options\:( )*(\{.*(\n)*\})\}/g;
/* var regularPa... | JavaScript | 0.000001 | @@ -298,409 +298,12 @@
%0D%0A%0D%0A
-%0D%0A%09/*%09var%09regularPatternMultiplesLines = /@chart%5C%5Bdata:(.+)%5C%5D%5C%7Boptions%5C:( )*(%5C%7B.*%5B%5E%5D+%5C%7D)%5C%7D/g;%0D%0A%09%09if (postContent.match(regularPatternMultiplesLines))%7B%0D%0A%09%09%09console.log(%22MULTIPLES LINES%22);%0D%0A%09%09%09console.log(pos... |
8ba420c35975583486308a55d31c1df7b195574a | Fix using one delay to control all transitions. (#3932) | src/platforms/web/runtime/transition-util.js | src/platforms/web/runtime/transition-util.js | /* @flow */
import { inBrowser, isIE9 } from 'core/util/index'
import { remove } from 'shared/util'
import { addClass, removeClass } from './class-util'
export const hasTransition = inBrowser && !isIE9
const TRANSITION = 'transition'
const ANIMATION = 'animation'
// Transition property/event sniffing
export let tran... | JavaScript | 0.000001 | @@ -3680,32 +3680,117 @@
ing%3E): number %7B%0A
+ while (delays.length %3C durations.length) %7B%0A delays = delays.concat(delays)%0A %7D%0A%0A
return Math.ma
|
1aecbb766b80970147e27c333fc56bc1441afb5c | Fix needle dependency warning typo. (#3630) | packages/less/src/less-node/url-file-manager.js | packages/less/src/less-node/url-file-manager.js | const isUrlRe = /^(?:https?:)?\/\//i;
import url from 'url';
let request;
import AbstractFileManager from '../less/environment/abstract-file-manager.js';
import logger from '../less/logger';
const UrlFileManager = function() {}
UrlFileManager.prototype = Object.assign(new AbstractFileManager(), {
supports(filename... | JavaScript | 0.000001 | @@ -809,29 +809,21 @@
ency %5C'n
-ative-request
+eedle
%5C' requi
|
2129ba8f5ff1c5b0969f1d9266139a3f174f8b9d | Reformat double-quotes | webpack.config-test.js | webpack.config-test.js | const webpack = require("webpack");
const nodeExternals = require("webpack-node-externals");
module.exports = {
target: "node",
externals: [nodeExternals()],
module: {
rules: [
{
enforce: "pre",
test: /\.js$/,
exclude: /node_modules/,
loader: "eslint-loader",
}, {
... | JavaScript | 0 | @@ -21,17 +21,17 @@
ire(
-%22
+'
webpack
-%22
+'
);%0Ac
@@ -59,17 +59,17 @@
require(
-%22
+'
webpack-
@@ -82,17 +82,17 @@
xternals
-%22
+'
);%0A%0Amodu
@@ -120,14 +120,14 @@
et:
-%22
+'
node
-%22
+'
,%0A
@@ -210,13 +210,13 @@
ce:
-%22pre%22
+'pre'
,%0A
@@ -285,17 +285,17 @@
loader:
-%22
+'
eslint-l... |
b417cc11e2c2c630bf89775072d92591d9bad3dd | Make Clock cooperate with serialization | idlegame.js | idlegame.js |
/* Dasca, an idle game by @CylonicRaider (github.com/CylonicRaider/dasca)
* Abstract engine for JS-based idle games */
'use strict';
/* Construct a new clock
* source is a function that, when called, returns the current time; scale
* and offset modify source's output in a linear fashion: the reading of
* source ... | JavaScript | 0 | @@ -1280,22 +1280,25 @@
et;%0A
-return
+var ret =
new Clo
@@ -1344,17 +1344,136 @@
set);%0A
-%7D
+ if (this._realTime) ret._realTime = true;%0A return ret;%0A %7D,%0A%0A /* Serialization boilerplate */%0A constructor: Clock
%0A%7D;%0A%0A/*
@@ -1597,16 +1597,23 @@
on(scale
+, start
) %7B%0A if
@@ -... |
59825ecfd3fd2d383fd61913ac9213eba570ed37 | Tweak viewMode logic | src/routes/Account/components/AccountForm.js | src/routes/Account/components/AccountForm.js | import React, { Component, PropTypes } from 'react'
import Login from './Login'
import Logout from './Logout'
export default class AccountForm extends Component {
static propTypes = {
user: PropTypes.object,
rooms: PropTypes.array,
viewMode: PropTypes.string.isRequired,
loginUser: PropTypes.func.isRe... | JavaScript | 0 | @@ -644,55 +644,97 @@
ops.
-defaultName,%0A email: this.props.defaultEmail
+user ? this.props.user.name : '',%0A email: this.props.user ? this.props.user.email : ''
%0A %7D
@@ -865,16 +865,8 @@
onst
- %7B user,
vie
@@ -870,18 +870,16 @@
viewMode
- %7D
= this.
@@ -883,16 +883,52 @@
is.props
+.user ? 'edi... |
cdd4c83e4fe603446d5578c448ac8062171504f2 | Add a new step for complete | install/js/install-script.js | install/js/install-script.js | var steps = [
{
name: 'intro',
text: 'Thanks for choosing Mods for HESK',
callback: undefined
},
{
name: 'db-confirm',
text: 'Confirm the information below',
backPossible: true,
callback: undefined
},
{
name: 'install-or-update',
... | JavaScript | 0.000101 | @@ -211,28 +211,24 @@
-backPossible
+showBack
: true,%0A
@@ -362,28 +362,49 @@
-backPossible
+showBack: false,%0A showNext
: false,
@@ -438,16 +438,157 @@
rUpdate%0A
+ %7D,%0A %7B%0A name: 'complete',%0A text: 'Installation / Upgrade Complete',%0A showBack: false... |
b8b17a71b3fd60eb316c61ff5a883679ef182427 | function with return statement | medium-challenges/arrayAddition.js | medium-challenges/arrayAddition.js | const assert = require('assert');
// take the array of numbers stored in arr and
// return the string true if any combination of
// numbers in the array can be added up to equal the
// largest number in the array, otherwise return the string false
function arrayAddition = arr => {
let max = Math.max.apply(null, arr... | JavaScript | 0.998646 | @@ -438,37 +438,184 @@
= (
-) =%3E %7B%0A%0A %7D%0A%0A%0A return false;
+arr, sum, length) =%3E %7B%0A if (sum === 0) %7B%0A return true;%0A %7D%0A if (sum != 0 && length === 0) %7B%0A return false;%0A %7D%0A return sumChecker(arr, sum, length -1)%0A %7D%0A
%0A%7D;%0A
|
c104538e4527a9a43068ce77c09d2d1645e7dfa3 | remove extra '}' | webpack.test.config.js | webpack.test.config.js | // @datatype_void
var helpers = require('./helpers');
// Webpack Plugins
var ProvidePlugin = require('webpack/lib/ProvidePlugin');
var DefinePlugin = require('webpack/lib/DefinePlugin');
var ENV = process.env.ENV = process.env.NODE_ENV = 'test';
/*
* Config
*/
module.exports = {
devtool: 'inline-source-map',
r... | JavaScript | 0.00211 | @@ -1461,24 +1461,16 @@
') %5D %7D,%0A
- %7D%0A
%5D,%0A
|
5a8dd877638da2fc32afda98695003e9048b4677 | Add alias for the extension path | webpack/base.config.js | webpack/base.config.js | import path from 'path';
import webpack from 'webpack';
const srcPath = path.join(__dirname, '../src/browser/');
const baseConfig = ({input, output = {}, globals = {}, plugins, loaders, entry = []}) => ({
entry: input || {
background: [ `${srcPath}extension/background/index`, ...entry ],
window: [ `${srcPat... | JavaScript | 0.000001 | @@ -889,16 +889,23 @@
alias: %7B
+%0A
app: pat
@@ -935,16 +935,88 @@
rc/app')
+,%0A extension: path.join(__dirname, '../src/browser/extension')%0A
%7D,%0A e
|
d557dfb074b0c0a44479c8d351c051dd04a59a18 | edit mlab account | keystone.js | keystone.js | // Simulate config options from your production environment by
// customising the .env file in your project's root folder.
require('dotenv').config();
// Require keystone
const keystone = require('keystone');
const handlebars = require('express-handlebars');
// Initialise Keystone with your project's configuration.
/... | JavaScript | 0 | @@ -643,16 +643,18 @@
nv.MONGO
+DB
_URI,%0A%0A%09
|
ededbe90c7d82fedddb768fb1515b6d9eb4afefe | split out vendor js file | webpack/prod.config.js | webpack/prod.config.js | const webpack = require('webpack')
const merge = require('webpack-merge')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const { GenerateSW } = require('workbox-webpack-plugin')
const baseConfig = require('./base.config.js')
modul... | JavaScript | 0.000007 | @@ -209,17 +209,16 @@
%0Aconst %7B
-
Generate
@@ -219,17 +219,16 @@
nerateSW
-
%7D = requ
@@ -1049,7 +1049,76 @@
%0A %5D
+,%0A optimization: %7B%0A splitChunks: %7B%0A chunks: 'all'%0A %7D%0A %7D
%0A%7D)
+%0A
|
86dbab326e87916c393509f22c0be366f785538e | Install dependencies in tiles | lib/tiles.js | lib/tiles.js | var fs = require( 'fs' ),
npmHelper = require( './npm-helper' ),
debug = require( 'debug' )( 'dashboard:lib:tiles' ),
express = require( 'express' ),
path = require( 'path' ),
mountAll, mountTileByFolder, mountTileByGitURL,
git = require('gift'),
rm = require('rimraf'),
request = require( 'request' ),... | JavaScript | 0.000001 | @@ -881,16 +881,56 @@
f = this
+, %0A mountTileByFolderFunctions = %5B%5D
;%0A%09callb
|
385261d80dd1be1ad3b009f92f3832af40003055 | Simplify bottom-tab | lib/ui/bottom-tab.js | lib/ui/bottom-tab.js | 'use babel'
export default class BottomTab extends HTMLElement {
createdCallback() {
this.nameElement = document.createTextNode('')
this.countElement = document.createElement('span')
this.countElement.classList.add('count')
this.appendChild(this.nameElement)
this.appendChild(document.createTextN... | JavaScript | 0.00001 | @@ -6,16 +6,58 @@
babel'%0A%0A
+import %7BCompositeDisposable%7D from 'atom'%0A%0A
export d
@@ -119,24 +119,100 @@
allback() %7B%0A
+ this.status = false%0A this.subscriptions = new CompositeDisposable()%0A%0A
this.nam
@@ -509,18 +509,16 @@
%7D%0A
-%0A
-set nam
+prepar
e(na
@@ -569,64 +569,277 @@
... |
e55c3c7bc33851007b746c9a44ee8467342f7de7 | Remove unused requires from lib/users.js | lib/users.js | lib/users.js |
var utils = require('./utils')
, models = require('./models')
, email = require('./email')
, Project = models.Project
, User = models.User
module.exports = {
makeAdmin: makeAdmin
}
function makeAdmin(user, done) {
if ('string' !== typeof user && user.email) user = user.email
User.update({email: user},... | JavaScript | 0.000001 | @@ -1,46 +1,27 @@
-%0Avar utils = require('./utils')%0A , models
+'use strict';%0A%0Avar User
= r
@@ -38,20 +38,26 @@
models')
-%0A ,
+.User;%0Avar
email =
@@ -79,61 +79,41 @@
il')
-%0A%0A , Project = models.Project%0A , User = models.User
+;%0Avar env = process.env.NODE_ENV;
%0A%0Amo
@@ -153,16 +153,17 @@
... |
8b1f5f757f4f1628bc3f88ff194c41483efbed00 | add test case for DefinePlugin | test/configCases/plugins/define-plugin/index.js | test/configCases/plugins/define-plugin/index.js | it("should define FALSE", function() {
FALSE.should.be.eql(false);
(typeof TRUE).should.be.eql("boolean");
var x = require(FALSE ? "fail" : "./a");
var y = FALSE ? require("fail") : require("./a");
});
it("should define CODE", function() {
CODE.should.be.eql(3);
(typeof CODE).should.be.eql("number");
if(CODE !=... | JavaScript | 0 | @@ -2604,9 +2604,131 @@
il%22);%0A%7D)
+;%0Ait(%22should assign to process.env%22, function() %7B%0A%09process.env.TEST = %22test%22;%0A%09process.env.TEST.should.be.eql(%22test%22);%0A%7D);
%0A
|
59e5600d8e267a7246bdca1a88911427bbe16869 | Fix validation message in UpdateHandler Class | lib/updateHandler.js | lib/updateHandler.js | var _ = require('underscore'),
async = require('async'),
keystone = require('../'),
utils = require('./utils');
/**
* UpdateHandler Class
*
* @param {Object} item to update
* @api public
*/
function UpdateHandler(list, item, req) {
if (!(this instanceof UpdateHandler))
return new UpdateHandler(list, ite... | JavaScript | 0.000005 | @@ -2740,35 +2740,29 @@
st: _.pluck(
-validationE
+err.e
rrors, 'mess
|
84575cf35b00d96ecbcba1f1d009cc5fec49ddaa | Return correct non darwin firewall setting | lib/util/firewall.js | lib/util/firewall.js | 'use strict';
/**
* Kalabox firewall utility module.
* @module kbox.util.firewall
*/
// Npm modules
var _ = require('lodash');
var Promise = require('bluebird');
// Kalabox modules
var shell = require('./shell.js');
/**
* Gets status of firewall blocking everything.
* **ONLY WORKS ON OSX**
*/
var isBlockingAl... | JavaScript | 0.000001 | @@ -417,16 +417,23 @@
) %7B%0A
+return
Promise.
@@ -440,19 +440,20 @@
resolve(
-tru
+fals
e);%0A %7D%0A
|
bf5cbd8c9fb90bbc4afa512402d444e00c5c4ddb | Move local definitions of the SUT inside 'beforeEach' blocks in order to let the framework handle setup and teardown. | spec/regularity_spec.js | spec/regularity_spec.js |
var Regularity = require('../lib/regularity.js');
describe("Regularity", function() {
var regularity;
beforeEach(function() {
regularity = new Regularity();
});
it("is an object constructor", function() {
expect(typeof regularity).toBe('object');
});
describe("return from do... | JavaScript | 0 | @@ -1144,39 +1144,46 @@
-it(%22matches positive%22,
+var regex;%0A beforeEach(
function
@@ -1176,32 +1176,33 @@
eEach(function()
+
%7B%0A va
@@ -1191,36 +1191,32 @@
) %7B%0A
-var
regex = regulari
@@ -1233,32 +1233,88 @@
th('a').done();%0A
+ %7D);%0A%0A it(%... |
aeda2f8e5814adcd4bc2cbf1bdb6372fa36b6507 | Add @private to all functions in lib/utils | lib/utils.js | lib/utils.js | /*
* EJS Embedded JavaScript templates
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* 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/L... | JavaScript | 0 | @@ -991,32 +991,44 @@
ring%0A * @static%0A
+ * @private%0A
*/%0Aexports.esca
@@ -1991,32 +1991,44 @@
ring%0A * @static%0A
+ * @private%0A
*/%0Aexports.esca
@@ -2429,32 +2429,44 @@
ject%0A * @static%0A
+ * @private%0A
*/%0Aexports.shal
@@ -2708,16 +2708,28 @@
@static%0A
+ * @private%0A
*/%0Aexpo
|
8efe0819be47ed515b557ad949e75ee15257eece | Fix issue #10 | lib/widget-images.js | lib/widget-images.js | var moment = require('moment'),
utils = require('./utils'),
wu = require('./widget-utils');
var self;
var Image = function(screen, showbox, docker) {
if (!(this instanceof Image))
return new Image(screen, showbox, docker);
self = this;
this.showbox = showbox;
this.screen = screen;
this.docker = docker;
this... | JavaScript | 0.000011 | @@ -577,25 +577,32 @@
sh(s.Id);%0A%09%09
-%09
+
row.push(s.R
@@ -598,16 +598,82 @@
ow.push(
+(
+s && s.RepoTags && s.RepoTags.length && s.RepoTags.length %3E 0) ?
s.RepoTa
@@ -688,16 +688,21 @@
String()
+ : ''
);%0A%09%09%09ro
@@ -1124,8 +1124,9 @@
= Image;
+%0A
|
91cf9b353a6aaff57bf23c8f23ccd68439f2ade3 | use new compareVersion method | lib/utils.js | lib/utils.js | var os = require('os'),
fs = require('fs'),
path = require('path'),
log = require('./display.js').log,
idLenStandard = require('../include/default.js').idLenStandard,
verLenStandard = require('../include/default.js').verLenStandard,
linkLenStandard = require('../include/default.js').linkLenStandard,
sizeLenStandard = ... | JavaScript | 0 | @@ -715,16 +715,28 @@
%7B%0A var
+ notSmaller,
arrayA
@@ -787,18 +787,35 @@
it('-'),
+
%0A
+ minorA, minorB,
mainA =
@@ -867,27 +867,16 @@
t('.'),
-notSmaller,
%0A len =
@@ -1414,126 +1414,417 @@
lse
-%7B%0A
+if (arrayA.length %3E arrayB.length) %7B%0A notSmaller = 1;%0A %7D e... |
141a432018fd83d18f5541b142e0d334035c6bc5 | update version number | hover_iframe_over_every_youtube_link.user.js | hover_iframe_over_every_youtube_link.user.js | // ==UserScript==
// @name pop-up video iframe over every youtube link
// @name:ru всплывающее видео при клике на youtube-ссылку
// @description to close video press ESC or click on the grey background
// @description:ru для закрытия видео нажмите ESC или кликнике на сервый фон вокруг видео... | JavaScript | 0.000002 | @@ -433,17 +433,17 @@
1.0.2.
-1
+2
%0D%0A// @do
|
076a41f2331aaf91130c4bc93a0e8dee2260f8ee | fix blueprint | blueprints/ember-cli-event-calendar/index.js | blueprints/ember-cli-event-calendar/index.js | JavaScript | 0.000001 | @@ -0,0 +1,91 @@
+module.exports = %7B%0A%09normalizeEntityName: function(entityName) %7B%0A%09%09return entityName;%0A%09%7D%0A%7D;
| |
e07a03b0b5097daee3ce072247922cda3f62b2e3 | Fix #145 for password protected pads too | static/js/clientHooks.js | static/js/clientHooks.js | /**
* # Client Hooks Module
*
* ## License
*
* 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 L... | JavaScript | 0 | @@ -1338,19 +1338,85 @@
%0A%0A
-var token =
+if (typeof params.auth_token !== 'undefined') %7B%0A updateLinks('auth_token',
par
@@ -1429,19 +1429,189 @@
th_token
+)
;%0A
-%0A
+ %7D else if (typeof params.mypadspassword !== 'undefined') %7B%0A updateLinks('mypadspassword', params.mypadspassword);%0A %7D%0... |
d19e1f2564941110b1265ae73c3df7bce5c82bba | fix tests for LessonController | test/integration/services/LessonService.test.js | test/integration/services/LessonService.test.js | 'use strict';
var should = require('should');
describe('LessonService', function() {
let lesson1 = {
name: 'serviceTest1Lesson',
datetime: new Date().toISOString(),
building: 7,
classroom: '214',
faculty: 'fizmat',
groupId: '36'
},
lesson2 = {
name: 'serviceTest2L... | JavaScript | 0.000001 | @@ -3480,16 +3480,44 @@
l.com',%0A
+ password: 'password',%0A
ro
@@ -3709,115 +3709,128 @@
-err.should.be.Error();%0A console.log('testSubscriber already created!%5Cn');%0A %7D%0A else %7B
+throw new Error('Error in UserService.createUser()');%0A %7D%0A else %7B%0... |
aca3a38d0add24957c80b038239c35a3c84a9277 | test for #79 | test/lib/rules/no-unused-vars/no-unused-vars.js | test/lib/rules/no-unused-vars/no-unused-vars.js | /**
* @fileoverview Tests for no-unused-vars rule
* @author Raghav Dua <duaraghav8@gmail.com>
*/
'use strict';
var Solium = require ('../../../../lib/solium');
var wrappers = require ('../../../utils/wrappers');
var toContract = wrappers.toContract;
var toFunction = wrappers.toFunction;
var userConfig = {
"cust... | JavaScript | 0.000038 | @@ -1667,24 +1667,452 @@
equal (0);%0A%0A
+%09%09Solium.reset ();%0A%09%09done ();%0A%09%7D);%0A%0A%09it ('should accept if the variable%5C's usage occurs above its declaration & definition.', function (done) %7B%0A%09%09var code = 'contract Owned %7B%5Cnfunction setOwner(address _new) onlyOwner %7B NewOwner(owner, _n... |
e60e67c9511836c58c82555e1696c9430c7bfeb2 | Fix grammar again | lib/value.js | lib/value.js | 'use strict';
/* Value.js
* Object to represent CSS Values.
*/
module.exports = exports = Value;
function Value(val, unit){
if (!(this instanceof Value)) return new Value(val, unit);
this.val = val;
this.unit = unit || null;
}
Value.prototype.compareUnits = function(otherValue){
if (!(otherValue instanceo... | JavaScript | 0.000164 | @@ -1099,20 +1099,20 @@
ertable
-unit
+type
s');%0A %7D
|
7863fbf16a7a8db8445b639a7dcf03bf0251a79c | Update Unit Test | test/purchasing/purchase-order/report/report.js | test/purchasing/purchase-order/report/report.js | require("should");
var helper = require("../../../helper");
var purchaseRequestDataUtil = require('../../../data').purchasing.purchaseRequest;
var validatePR = require("dl-models").validator.purchasing.purchaseRequest;
var PurchaseRequestManager = require("../../../../src/managers/purchasing/purchase-request-manager")... | JavaScript | 0 | @@ -4927,28 +4927,308 @@
done(e);%0A %7D);%0A%0A%7D);
+%0A%0Ait('#08. should success when get data report Per Supplier with date', function (done) %7B%0A purchaseOrderManager.getDataPOSupplier(startDate,endDate)%0A .then(po =%3E %7B%0A po.should.instanceof(Array);%0A done();%0A %7D).ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.