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 |
|---|---|---|---|---|---|---|---|
cbc7e3d81f6a0c7cbcb62cc57cede833e8653925 | Tweak to unbreak bundle | config/prod.js | config/prod.js | const webpackMerge = require('webpack-merge');
const commonConfig = require('./common.js');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
module.exports = function(env){
return webpackMerge(commonConfig(... | JavaScript | 0 | @@ -409,16 +409,259 @@
e-map',%0A
+ // Uglify is blowing up trying to further minify mapbox-gl%0A // so for now just do not parse it -- it is already minified.%0A // https://github.com/mapbox/mapbox-gl-js/issues/4359%0A module: %7B%0A noParse: /(mapbox-gl)%5C.js$/,%0A %7D,%0A
plug
|
50daaecac787ace1fa481d56ba8e17d55f5d61cc | Print clients | console/app.js | console/app.js | var app = {
token : function() {
return localStorage['token'];
},
username : function() {
return localStorage['username'];
},
apiErr : function(resp) {
alert(resp.error);
},
showPage : function(name) {
var currentPage = $('.page-visible');
var currentPageName = currentPage.attr('data-name');
curre... | JavaScript | 0 | @@ -156,16 +156,164 @@
resp) %7B%0A
+%09%09if (resp.error.indexOf('authorized') !== -1) %7B%0A%09%09%09delete localStorage%5B'token'%5D;%0A%09%09%09delete localStorage%5B'username'%5D;%0A%09%09%09app.showPage('login');%0A%09%09%7D%0A
%09%09alert(
@@ -1285,148 +1285,357 @@
;%0A%09%09
-console.log(opts);%0A%09%09retur... |
aecea1524533c36829bc9ebc933a925acb091f74 | Check for process.env.PORT before using config.port | config/site.js | config/site.js | module.exports = function(config) {
if(!config.port || !_.isNumber(config.port)) throw new Error('Port undefined or not a number');
var domain = 'changethisfool.com';
var c = {
defaults: {
title: 'Change This Fool',
name: 'change-this-fool',
protocol: 'http',
get host() {
return this.port ? this.... | JavaScript | 0.000001 | @@ -522,16 +522,36 @@
_PORT %7C%7C
+ process.env.PORT %7C%7C
config.
|
509375e9fed069829f1c39dae8611090760ce3d3 | introduce separate class for Partials | copv2/scope.js | copv2/scope.js | const events = [
'beforeActivation',
'afterActivation',
'beforeDeactivation',
'afterDeactivation',
'beforeActivationFor',
'afterActivationFor',
'beforeDeactivationFor',
'afterDeactivationFor'
];
export class Scope {
constructor() {
this.activatedItems = new Set();
... | JavaScript | 0 | @@ -235,21 +235,145 @@
t class
-Scope
+Partial %7B%0A activate() %7B%7D%0A deactivate() %7B%7D%0A activateFor() %7B%7D%0A deactivateFor() %7B%7D%0A%7D%0A%0Aexport class Scope extends Partial
%7B%0A c
@@ -383,24 +383,42 @@
tructor() %7B%0A
+ super();%0A%0A
this
@@ -447,24 +447,16 @@
... |
272565333a22185dcddc132cb8c7acc3beb41df8 | Fix delta of stats | js/osgViewer/stats.js | js/osgViewer/stats.js | /** -*- compile-command: "jslint-cli stats.js" -*-
*
* Copyright (C) 2010 Cedric Pinson
*
* GNU LESSER GENERAL PUBLIC LICENSE
* Version 3, 29 June 2007
*
* Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
* Everyone is permitted to copy and distribute ve... | JavaScript | 0.000663 | @@ -1309,16 +1309,139 @@
%7D%0A%0A
+ var report = delta - Math.floor(delta);%0A t -= report/(2.0*60.0/1000.0);%0A delta = Math.floor(delta);%0A%0A
|
b45ff4ab04208b62ac2196006d4c0682c61c1b30 | Fix Safari listener binding issue | core/events.js | core/events.js | var registry_ = [];
var addEventListener_ = window.addEventListener || function fallbackAddRemoveEventListener_(type, listener) {
var target = this;
registry_.unshift([target, type, listener, function (event) {
event.currentTarget = target;
event.preventDefault = function () { event.returnValue = false; }... | JavaScript | 0 | @@ -14,19 +14,24 @@
= %5B%5D;%0A%0A
-var
+function
addEven
@@ -44,64 +44,89 @@
ner_
- = window.addEventListener %7C%7C function fallbackAddRemove
+(target, type, listener) %7B%0A if (target.addEventListener) %7B%0A return target.add
Even
@@ -126,33 +126,32 @@
addEventListener
-_
(type, listener)
@@ -154,33 ... |
b2e873f5cce7e56efa6545b91129bf69af24bbd8 | Fix jscs issue | tasks/contributors.js | tasks/contributors.js | var cache = require("./cache/contributors")
var fs = require("fs")
var path = require("path")
var gutil = require("gulp-util")
var async = require("async")
var Promise = require("promise")
// var bs64 = require("bs64")
var bs64 = false
var convertString = require("convert-string")
var exec = Promise.denodeify(require("... | JavaScript | 0.000001 | @@ -596,17 +596,16 @@
hub%22))(%7B
-
version
@@ -613,17 +613,16 @@
%223.0.0%22
-
%7D)%0A%0Avar
|
4d2267001ab7cdbeafc5911acbd6ec67a243bc4c | change devServer location | lib/commands/serve.js | lib/commands/serve.js | "use strict";
const inquirer = require("inquirer");
const path = require("path");
const chalk = require("chalk");
const spawn = require("cross-spawn");
const List = require("webpack-addons").List;
const processPromise = require("../utils/resolve-packages").processPromise;
/**
*
* Installs WDS using NPM with --save ... | JavaScript | 0 | @@ -1746,30 +1746,11 @@
ver/
-bin/webpack-dev-server
+cli
.js%22
|
f1dac8058f8bb4fa070dcbcff845352b4c845a64 | Remove undefined argument. | lib/passport/index.js | lib/passport/index.js | /**
* Module dependencies.
*/
var fs = require('fs')
, path = require('path')
, util = require('util')
, Strategy = require('./strategy')
, SessionStrategy = require('./strategies/session')
, initialize = require('./middleware/initialize')
, authenticate = require('./middleware/authenticate');
/**
* `P... | JavaScript | 0.000006 | @@ -4781,34 +4781,24 @@
egy, options
-, callback
).bind(this)
|
f9ed83f581c23ca88b05125efa7f6dc0eb17f4f9 | simplify infosnow parser | lib/tools/infosnow.js | lib/tools/infosnow.js | var domutil = require('./domutil');
var select = require('../select');
var debug = require('debug')('liftie:resort:infosnow');
function parse(dom) {
var nodes = select(dom, '.block table tr'), liftStatus;
nodes.some(function (node) {
if (domutil.childText(node, 0).split(' ').shift() !== 'Lifts') {
retu... | JavaScript | 0 | @@ -60,24 +60,62 @@
./select');%0A
+var entities = require('./entities');%0A
var debug =
@@ -491,40 +491,40 @@
-var name, status;%0A%0A name =
+return %7B%0A name: entities(
node
@@ -557,18 +557,21 @@
%5B0%5D.data
-;%0A
+),%0A
st
@@ -574,18 +574,17 @@
status
- =
+:
node.at
@@ -625,... |
39bfe5c847ed546659eb08d2124362dd73b0ef48 | fix #134 context menu post creation | javascripts/content_scripts/posting.service.js | javascripts/content_scripts/posting.service.js | /**
* @fileOverview Handle the creation and control
* of the resource object, which is associated to
* the target element.
*
* This module will broadcast the following internal
* messages to other modules:
*
* posting/internal/targetActivated
* when the target element is activated (got
* focu... | JavaScript | 0 | @@ -4942,25 +4942,27 @@
rvice.on
-MouseDown
+ContextMenu
= funct
@@ -4976,37 +4976,8 @@
) %7B%0A
- if (ev.button === 2) %7B%0A
@@ -5019,22 +5019,16 @@
target;%0A
- %7D%0A
%7D;%0A%0A
@@ -5350,17 +5350,19 @@
er('
-mousedown
+contextmenu
', s
@@ -5374,17 +5374,19 @@
e.on
-MouseDown
+ContextMenu
... |
ec9b91531abaf7754ce79cbd96b034356ec06382 | json can be pluginified | lang/json/json.js | lang/json/json.js | /*
* jQuery JSON Plugin
* version: 2.1 (2009-08-14)
*
* This document is licensed as free software under the terms of the
* MIT License: http://www.opensource.org/licenses/mit-license.php
*
* Brantley Harris wrote this plugin. It is based somewhat on the JSON.org
* website's http://www.json.org/json2.js, which... | JavaScript | 0.998923 | @@ -534,16 +534,38 @@
o.%0A */%0A
+steal.then(function()%7B
%0A(functi
@@ -6702,8 +6702,10 @@
Query);%0A
+%7D)
|
559b02da0ea0b3446ca95750f658928e5d68925f | Support promise-arrays as groups' options | tests/integration/components/power-select/groups-test.js | tests/integration/components/power-select/groups-test.js | import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import { typeInSearch, clickTrigger } from '../../../helpers/ember-power-select';
import { groupedNumbers } from '../constants';
import { find, findAll, click } from 'ember-native-dom-helpers';
moduleForComponent('emb... | JavaScript | 0 | @@ -288,16 +288,70 @@
elpers';
+%0Aimport DS from 'ember-data';%0Aimport RSVP from 'rsvp';
%0A%0Amodule
@@ -5260,16 +5260,531 @@
l opened');%0A%7D);%0A
+%0Atest('it works if the options of a group is an array-proxy', function(assert) %7B%0A let smallOptions = DS.PromiseArray.create(%7B%0A promise: RSVP.resolve(%... |
a109bdbade4485964830e7ceff05a158d529895c | Switch default GitHub URLs to https:// over git:// | default-input.js | default-input.js | var fs = require('fs')
var path = require('path')
var glob = require('glob')
// more popular packages should go here, maybe?
function isTestPkg (p) {
return !!p.match(/^(expresso|mocha|tap|coffee-script|coco|streamline)$/)
}
function niceName (n) {
return n.replace(/^node-|[.-]js$/g, '')
}
function readDeps (tes... | JavaScript | 0.000005 | @@ -4120,19 +4120,21 @@
com:/, '
-git
+https
://githu
|
1740ff825ae83255df970bd538bd529c8f531dcf | fix .max-legth to .maxlength | demo/js/index.js | demo/js/index.js | $(function(){
var getUniqueArray = function( array ){
return array.filter(function(elem, pos, self) {
return self.indexOf(elem) === pos;
});
};
var getUniqueWordListFromSource = function( $target ){
var tmpArray = [];
$target.each(function(){
tmpArra... | JavaScript | 0.001667 | @@ -1758,17 +1758,16 @@
nd('.max
--
length')
|
c57ca263e9ae3ef65e695038b165270bdec01420 | update conceptnet algo outline; need nlp next | scripts/conceptnet.js | scripts/conceptnet.js | var ConceptNet = require('concept-net')
var cn = ConceptNet(null, null, '5.4')
// refer: https://github.com/commonsense/conceptnet5/wiki
// https://github.com/commonsense/conceptnet5/wiki/API
// algo to convert input to parameter:
// 1. determine language
// 2. need uri standardization
//
// examples
// cn.URIstd('e... | JavaScript | 0 | @@ -225,16 +225,61 @@
ameter:%0A
+// 0. higher level NLP interface for this KB%0A
// 1. de
@@ -326,16 +326,256 @@
ization%0A
+// 3. determine parameters, and what graph user looks for: either just concept, or assertations, rel. See URI hierarchy https://github.com/commonsense/conceptnet5/wiki/URI-hierarchy%0A// 4. o... |
2c97dc22e5a77d16b2770d22e5042a1eb77552e1 | add robots.txt file and configuration. #27 | site/gatsby-config.js | site/gatsby-config.js | module.exports = {
siteMetadata: {
title: `AJ Fisher Website`,
description: `Personal website of AJFisher - technologist`,
author: `@ajfisher`,
siteURL: 'https://ajfisher.me'
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
n... | JavaScript | 0 | @@ -56,15 +56,26 @@
her
-Website
+%7C Blog %7C Portfolio
%60,%0A
@@ -95,18 +95,9 @@
n: %60
-Personal w
+W
ebsi
@@ -1893,24 +1893,55 @@
%7D,%0A %7D,%0A
+ %60gatsby-plugin-robots-txt%60%0A
// this
|
f816875632fa37c0d2e2a35173123d8e5cf6dbde | fix strange issue with session became null in handleConnect this is somewhat weird case. Not sure exactly, what's happening anyway, we'll do a check and make sure kadira won't crash the app | lib/models/system.js | lib/models/system.js | var os = Npm.require('os');
SystemModel = function () {
var self = this;
this.startTime = Ntp._now();
this.newSessions = 0;
this.sessionTimeout = 1000 * 60 * 30; //30 min
try {
var usage = Kadira._binaryRequire('usage');
this.usageLookup = Kadira._wrapAsync(usage.lookup.bind(usage));
} catch(ex) {... | JavaScript | 0 | @@ -2048,24 +2048,190 @@
(session) %7B%0A
+ // sometimes, we get session as null due to no reason%0A // so, we don't need crash the apps%0A if(!session %7C%7C !session.socket) %7B%0A return this.newSessions++;%0A %7D%0A%0A
if(!isLoca
|
b2934d1e03c8a571ce32fdc1646a73868708d3a5 | Use translated pagination dir in index | scripts/generators.js | scripts/generators.js | var pagination = require('hexo-pagination');
var _ = require('lodash');
hexo.extend.generator.register('category', function(locals) {
var config = this.config;
var categories = locals.data.categories;
if (config.category_generator) {
var perPage = config.category_generator.per_page;
} else {
var perPage = 10;
... | JavaScript | 0 | @@ -2143,16 +2143,61 @@
%09format:
+ _c('pagination_dir', lang, config, locals) +
'/%25d/',
|
8ca4c0e7e621da5fa50e38040139d1e32592cdb8 | fix color system <var> styles | docs/src/color-system.js | docs/src/color-system.js | import React from 'react'
import PropTypes from 'prop-types'
import chroma from 'chroma-js'
import colors from 'primer-colors'
import titleCase from 'title-case'
import {BorderBox, Box, Flex, Heading, Text} from '@primer/components'
const gradientHues = ['gray', 'blue', 'green', 'purple', 'yellow', 'orange', 'red']
c... | JavaScript | 0 | @@ -4458,16 +4458,34 @@
=%7Bvalue%7D
+ color=%7BtextColor%7D
%7B...res
@@ -4589,34 +4589,16 @@
%3CVar
- color=%7BtextColor%7D
%3E$%7Bname%7D
@@ -4659,75 +4659,33 @@
ext
-color=%7BtextColor%7D fontFamily=%22mono%22%3E%0A %7Bvalue%7D%0A
+fontFamily=%22mono%22%3E%7Bvalue%7D
%3C/Te
@@ -4993... |
01fd81a1556b574ad03c85dc2cd336cd9bfed60e | add getElementById(weathercon) for icon switch | scripts/javascript.js | scripts/javascript.js | //Geolocation Function is listed below.
function geoLocation() {
var output = document.getElementById("out");
if (!navigator.geolocation) {
output.innerHTML = "<p>Geolocation is not supported by your browser</p>";
return;
}
function success(position) {
var latitude = position.... | JavaScript | 0 | @@ -1853,32 +1853,104 @@
lyDescription;%0A%0A
+ var weatherIcon = document.getElementById(weathercon);%0A%0A
@@ -2031,16 +2031,318 @@
.icon);%0A
+ /* switch (icon) %7B%0A case 'clear-night':%0A return weathercon.inner... |
d4261f9b3daf68a982a10a8ddf562e264e81a54c | Add missing return on error | lib/notifications.js | lib/notifications.js | 'use strict';
var aws = require('aws-sdk');
var async = require('async');
var bunyan = require('bunyan');
module.exports = function (config, logger) {
logger = logger || bunyan.createLogger({name: 'autoscaling-notifications'});
var sns = new aws.SNS(config);
var sqs = new aws.SQS(config);
var autoScaling = n... | JavaScript | 0.000037 | @@ -3301,24 +3301,31 @@
) %7B%0A
+return
cb(err);%0A
|
4d626114a13ea932cc704efe269c7c74b15b02e3 | Fix offset validation/setup | lib/ntfserver/api.js | lib/ntfserver/api.js | var global = require('./global')
var plusWhere = function(where, text) {
if (typeof(where) !== 'string') where = ''
if (!text) return where
return where ? where + ' ' + text + ' ' : ' WHERE ' + text + ' '
}
var setupListRequest = function(req, cb) {
if (typeof(cb) !== 'function') throw new Error('callback req... | JavaScript | 0.000001 | @@ -638,36 +638,37 @@
if (typeof(req.
-limi
+offse
t) !== 'number'
|
5a18e7bc20eea459c4cef4fe41aa94b5c6f87175 | Create a user if they don't exist | controllers/hemera/updateSlackProfile.js | controllers/hemera/updateSlackProfile.js | var hemera = require('./index');
var controller;
/**
* Every time a user posts a message, we update their slack profile so we can stay up to date on their profile
* @param {Object} bot
* @param {Object} message
*/
module.exports = function updateSlackProfile(bot, message) {
controller = hemerga.getController... | JavaScript | 0.000006 | @@ -297,17 +297,16 @@
= hemer
-g
a.getCon
@@ -597,32 +597,154 @@
%0A %7D%0A%0A
+ if (!user) %7B%0A user = %7B%0A id: message.user,%0A %7D;%0A %7D%0A%0A
user
|
b4a2fe0f9c5e024b07566d245f9028c18bdf1fe7 | increase interval between checkAlive calls | lib/phantomWorker.js | lib/phantomWorker.js | var childProcess = require('child_process'),
phantomjs = require("phantomjs"),
cluster = require("cluster"),
http = require('http'),
netCluster = require("net-cluster"),
checkPortStatus = require("./checkPortStatus.js"),
portScanner = require('portscanner');
var findFreePort = function (host, ... | JavaScript | 0 | @@ -3042,17 +3042,18 @@
%7D,
-5
+10
0);%0A
|
ba3147083f0d41be4835098a77f988b2d49b545c | Add twitter and Facebook links | www/js/controllers/home_controller.js | www/js/controllers/home_controller.js | controllers.controller('HomeCtrl', function($scope, Settings, AdUtil) {
function showHomeAd() {
if(AdMob){//Because android need this on start up apparently
var platform = Settings.getPlatformSettings();
console.log('<GFF> HomeCtrl showHomeAd Banner AdUnit: ' + platform.developerBanner );
AdUti... | JavaScript | 0 | @@ -716,24 +716,25 @@
w.open('http
+s
://www.faceb
@@ -736,24 +736,55 @@
facebook.com
+/Give-For-Free-643061692510804/
', '_system'
@@ -879,23 +879,20 @@
en('http
+s
://
-www.
twitter.
@@ -894,16 +894,30 @@
tter.com
+/_giveforfree_
', '_sys
|
7651a5abc1c6dbffece4dab59205e219690a61c7 | Increase lookup cache for longer client caching | script/background.js | script/background.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
"use strict";
// local cache to not request a new resolution on every page navigation
var cache = new Cache({trim... | JavaScript | 0 | @@ -322,9 +322,9 @@
60*
-3
+5
, tt
@@ -329,18 +329,18 @@
ttl: 60*
-15
+20
%7D);%0A// c
|
1ff7b1b2bb6d2699449d6f2301afb40582253a6a | Update optimizeCss configuration | webpack/plugins/optimizeCss.js | webpack/plugins/optimizeCss.js | const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const cssnano = require('cssnano');
module.exports = (config) => {
config.plugins = [
...config.plugins,
new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.css$/g,
cssProcessor: cssnano,
cssProcessorOptions: requi... | JavaScript | 0 | @@ -76,33 +76,100 @@
');%0A
+%0A
const
-cssnano = require('
+processor = require('cssnano');%0Aconst processorOptions = require('../postcss/plugins/
cssn
@@ -173,16 +173,18 @@
ssnano')
+()
;%0A%0Amodul
@@ -341,23 +341,25 @@
cessor:
-cssnano
+processor
,%0A
@@ -383,47 +383,24 @@
ns:
-require('../postcss... |
085dc23a09961761413c0a942e460a060192c064 | Define additional labels for tags. | webroot/common/ui/js/labels.js | webroot/common/ui/js/labels.js | /*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
define([
'underscore'
], function (_) {
var Labels = function () {
this.get = function (key) {
var keyArray, newKey;
if (_.has(labelMap, key)) {
return labelMap[key];
} else {
... | JavaScript | 0 | @@ -1968,118 +1968,157 @@
%22
-datacenter%22: %22Datacenter%22,%0A %22floor%22: %22Floor%22,%0A %22hall%22: %22Hall%22,%0A %22rack%22: %22Rack
+reservedby%22: %22Reserved By%22,%0A %22custom_tag1%22: %22Custom Tag 1%22,%0A %22custom_tag2%22: %22Custom Tag 2%22,... |
faa121f04691284ee1990a6464ba1a0773168ac3 | add info_only and spec_only options to apis.guru script | scripts/apis-guru.js | scripts/apis-guru.js | const request = require('request');
const async = require('async');
const fs = require('fs');
const path = require('path');
const integrate = require('./integrate');
const args = require('yargs').argv;
const APIS_GURU_URL = "https://api.apis.guru/v2/list.json";
const SUFFIXES = [
'.com', '.org', '.net', '.co.uk', ... | JavaScript | 0 | @@ -1968,24 +1968,111 @@
%5D;%0A if
+(args.info_only) %7B%0A updateSpec(name, api.swaggerUrl, true, acb)%0A %7D else if
(args.spec_o
@@ -2118,16 +2118,23 @@
ggerUrl,
+ false,
acb)%0A
@@ -2416,16 +2416,26 @@
me, url,
+ infoOnly,
callbac
@@ -2439,16 +2439,126 @@
back) %7B%0A
+ let specFile ... |
f79d16adf06dfa8faa32d82653d203b20ccc5c17 | fix time for reading | lib/public/script.js | lib/public/script.js | var RENDER_NEW_QUOTE_TIMEOUT,
LOAD_QUOTE_TIMEOUT;
$(function() {
History.Adapter.bind(window, 'statechange', function() {
clearTimeout(RENDER_NEW_QUOTE_TIMEOUT);
clearTimeout(LOAD_QUOTE_TIMEOUT);
var quote = History.getState().data;
if (quote.id && quote.id != CURRENT_QUOTE.id)
renderNewQuo... | JavaScript | 0.000086 | @@ -2565,44 +2565,20 @@
turn
- Math.ceil(Math.min(5,
time
-)
* 1000
-)
;%0A
|
5d988139616610134607e30cb9475b29dabc2e1b | Improve 'git' command | commands/base-basic.js | commands/base-basic.js | /*
Basic Commands
*/
Settings.addPermissions(['say']);
exports.commands = {
credits: 'about',
bot: 'about',
about: function () {
this.restrictReply(this.trad('about') + ". " + this.trad('author') + ": " + Settings.package.author.name + ". (" + Settings.package.homepage + ")", 'info');
},
git: 'github',
gith... | JavaScript | 0.99853 | @@ -325,32 +325,65 @@
function () %7B%0A%09%09
+if (Settings.package.repository)
this.restrictRep
@@ -422,24 +422,30 @@
package.
-homepage
+repository.url
), 'info
|
80b62ec531677b25b18bc0cd6a35e836d8e2c197 | Exit loop using break instead of value change. | chrome/chrome.js | chrome/chrome.js | if (sessionStorage.length == 0) {
sessionStorage.setItem('debug', 1);
window.location.reload();
}
window.addEventListener('load', function (event) {
setTimeout(function () {
var container = document.createElement('div');
container.setAttribute('class', 'container');
var row = document.createElement(... | JavaScript | 0 | @@ -2360,24 +2360,13 @@
-i = nodes.length
+break
;%0A
|
f0fea42311fbe278a161d0b6bbd1f291acbc54f9 | Add close to reader stream | lib/reader_stream.js | lib/reader_stream.js | var nsq = require("nsqjs"),
Readable = require("stream").Readable,
util = require("util");
function ReaderStream(topic, channel, options) {
if (!(this instanceof ReaderStream)) {
return new ReaderStream(topic, channel, options);
}
Readable.call(this, { objectMode: true });
var self =... | JavaScript | 0 | @@ -1427,16 +1427,89 @@
alse*/%0A%0A
+ReaderStream.prototype.close = function () %7B%0A this.reader.close();%0A%7D%0A%0A
module.e
|
9125215f1a978b574efad4db4c0db814db2d5e36 | Change to an arrow function | lib/rebel-request.js | lib/rebel-request.js | class Request {
constructor(baseUrl, method, params, payload) {
this.xhr = new XMLHttpRequest();
this.baseUrl = baseUrl;
this.path = undefined;
this.params = params;
this.payload = payload;
this.method = method;
}
at(path) {
this.path = path || "";
... | JavaScript | 0.000343 | @@ -638,23 +638,18 @@
e =
-function
(event)
+ =%3E
%7B%0A
|
61734a19a98eb206a0ac57a1b4e393ed44ff8301 | fix token middleware | middleware/session.js | middleware/session.js | var User = require('../proxy').User;
var jwt = require('jwt-simple');
var secret = require('../config').secret;
var exp = require('../config').expire;
var User = require('../proxy/user');
module.exports = {
loginRequire: function (req,res,next) {
// if(req.session.user){
// next();
// }else{
// /... | JavaScript | 0.000044 | @@ -618,16 +618,41 @@
var
+uid;%0A try %7B%0A
uid = jw
@@ -675,24 +675,113 @@
ecret).uid;%0A
+ %7D catch (e) %7B%0A return res.json(%7Bstatus:101,message:'wrong token'%7D);%0A %7D%0A
// if(
|
de91c4103165bfd512a0beda018ffdd9a927b6d6 | fix crash if missing options | lib/routes/result.js | lib/routes/result.js | var Hapi = require('hapi');
var hoek = require('hoek');
var moment = require('moment');
var storage = require('../storage.js');
var prepare = require('../view.js');
function handler(request, reply) {
var id = request.query.id;
storage.get(id, function (err, data) {
var view;
if (!da... | JavaScript | 0.000015 | @@ -327,25 +327,24 @@
-
view = %7B%0A
@@ -336,25 +336,24 @@
view = %7B%0A
-
@@ -389,17 +389,15 @@
-
err: %7B%0A
-
@@ -448,36 +448,34 @@
-
%7D%0A
-
%7D;%0A
@@ -491,17 +491,16 @@
else %7B%0A
-
@@ -527,32 +527,24 @@
e(dat... |
1f4adc92b938e9795570971dc75ffed21c1fe161 | Fix the duplicate check | lib/schemas/index.js | lib/schemas/index.js | const Ajv = require('ajv');
const predefined = require('./predefined');
const ajv = new Ajv({
schemas: predefined
});
const buildKey = (type, name) => `${type}:${name}`;
const registeredKeys = [];
function register (type, name, schema) {
const key = buildKey(type, name);
if (schema && registeredKeys.findIndex... | JavaScript | 0.000446 | @@ -344,9 +344,9 @@
ey)
-!
+=
== -
|
f72f124afc77d67a7421fabab620df7134e024d5 | Fix more optionsToSend bugs | lib/sheets/create.js | lib/sheets/create.js | var utils = require('../utils/httpUtils.js');
var _ = require('underscore');
exports.create = function(options) {
var optionsToSend = {
url: options.apiUrls.sheets,
accessToken : options.accessToken,
maxRetryTime : options.maxRetryTime,
calcRetryBackoff: options.calcRetryBackoff
};
var createShe... | JavaScript | 0 | @@ -375,32 +375,36 @@
s.post(_.extend(
+%7B%7D,
optionsToSend, p
@@ -836,35 +836,38 @@
) %7B%0A
-optionsToSend.url =
+var urlOptions = %7Burl:
options
@@ -909,32 +909,33 @@
erId + '/sheets'
+%7D
;%0A return uti
@@ -943,32 +943,36 @@
s.post(_.extend(
+%7B%7D,
optionsToSend, p
@@ -961,32 +961,44 @@
, o... |
28bcffbb0030e94f7a515c2027059ab698c53540 | add customizing | resource/modules/utils/windowUtils.jsm | resource/modules/utils/windowUtils.jsm | Modules.VERSION = '2.3.2';
Modules.UTILS = true;
Modules.CLEAN = false;
// PrivateBrowsing - Private browsing mode aid
this.__defineGetter__('PrivateBrowsing', function() { Observers; delete this.PrivateBrowsing; Modules.load('utils/PrivateBrowsing'); return PrivateBrowsing; });
// toCode - allows me to modify a func... | JavaScript | 0 | @@ -18,11 +18,11 @@
'2.
-3.2
+4.0
';%0AM
@@ -717,16 +717,649 @@
l; %7D);%0A%0A
+// customizing - quick access to whether the window is (or will be) in customize mode or not%0Athis.__defineGetter__('customizing', function() %7B%0A%09// duh%0A%09if(!window.gCustomizeMode) %7B return false; %7D%0A%09%0A%09if(window.gC... |
1bfacf40635324d3b141acb15b2f509dc7ea06fb | Add newline | scripts/powerPick.js | scripts/powerPick.js |
var _ = require('underscore');
// Credits: https://github.com/documentcloud/underscore-contrib
// Sub module: underscore.object.selectors
// License: MIT (https://github.com/documentcloud/underscore-contrib/blob/master/LICENSE)
// https://github.com/documentcloud/underscore-contrib/blob/master/underscore.object.sel... | JavaScript | 0.000872 | @@ -1995,8 +1995,9 @@
lt; %0A%7D;
+%0A
|
7722b3d044759960284e604a3df9943f1b354b95 | Update static_server.js | lib/static_server.js | lib/static_server.js | // Designed by rjf
var os = require( 'os' ),
http = require("http"),
url = require("url"),
qs = require("querystring"),
path = require("path"),
fs = require("fs"),
ct = 0,
port = process.argv[2] || 8888, // 启动端口 port
tp = process.argv[3] || 'ftp', // 输出类型 type
wp = process.argv[4] |... | JavaScript | 0.000003 | @@ -2082,16 +2082,87 @@
ct + ')
+. author %3Ca href=%22http://www.runjf.com%22 target=%22_blank%22%3Eruanjiefeng%3C/a%3E
';%0A
|
1b25ffe01a88f074ac6b85e689581633fa8bdf12 | remove testing | lib/tools/Globals.js | lib/tools/Globals.js | /**
* Created by apizzimenti on 1/1/17.
*/
var Error = require("./Error").Error,
chalk = require("chalk");
function paramExist (param, type) {
return (typeof(param) == type && param !== undefined && param !== null);
}
function Location (location) {
if (paramExist(location, "object")) {
... | JavaScript | 0.000001 | @@ -1023,67 +1023,8 @@
t,%0A
- msg = %22The temperature parameter does not exist.%22,%0A
@@ -1045,11 +1045,8 @@
ror(
-msg
);%0A
@@ -1087,25 +1087,16 @@
er%22)) %7B%0A
- %0A
@@ -1104,16 +1104,17 @@
= units
+
? 0 : 32
@@ -1119,17 +1119,8 @@
32;%0A
- %0A
@@ -1186,24 +1... |
e0b9ffe3111954c000e6b780443bf2efa0571c46 | Add error handling | lib/twitter/utils.js | lib/twitter/utils.js | /*
* Avocore : twitter/api.js
* copyright (c) 2015 Susisu
*/
"use strict";
function end_module() {
module.exports = Object.freeze({
"tweetRandom" : tweetRandom,
"replyMentions" : replyMentions,
"replyHomeTimeline": replyHomeTimeline,
"followBack" : followBack
}... | JavaScript | 0.000002 | @@ -1070,23 +1070,136 @@
Text
- = func(tweet);
+;%0A try %7B%0A replyText = func(tweet);%0A %7D%0A catch (error) %7B%0A console.log(error);%0A %7D
%0A
|
5c60a40aa0caa9f323665e453795bea9a0f55d8c | Fix `batch` utility function | lib/utility/batch.js | lib/utility/batch.js | 'use strict';
var qs = require('querystring');
/**
* Send the given GET calls as a single batch request.
* @param {Object} calls An object mapping the endpoint to params. The params can be `null`.
* Each object can specify the keys `endpoint` and an object of `params`
* @param {Function} cb(err, results)
* ... | JavaScript | 0.000315 | @@ -487,29 +487,20 @@
-pages.push(endpoint +
+var params =
qs.
@@ -522,16 +522,114 @@
dpoint%5D)
+;%0A var page = endpoint;%0A if (params) %7B%0A page += '?' + params;%0A %7D%0A pages.push(page
);%0A %7D%0A
@@ -666,8 +666,9 @@
cb);%0A%7D;
+%0A
|
0ca44d7ffb9478b50478c6d940bd3bee7a0c11b3 | VersionedMap.delete() should return true/false | lib/versioned-map.js | lib/versioned-map.js | /**
* Copyright 2013-2017 Zaid Abdulla
*
* This file is part of GenieACS.
*
* GenieACS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any... | JavaScript | 0.999999 | @@ -2630,16 +2630,17 @@
e;%0A %7D%0A%0A
+%0A
delete
@@ -2996,19 +2996,20 @@
return
-old
+true
;%0A %7D%0A%0A%0A
|
26987ddcfd1677d30b9e61733eb02a2460cc67ab | Improve ES locale | select2_locale_es.js | select2_locale_es.js | /**
* Select2 Spanish translation
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "No se encontraron resultados"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor adicione " + n + " caracter"... | JavaScript | 0 | @@ -288,17 +288,20 @@
avor
- adicione
+, introduzca
%22 +
@@ -302,33 +302,59 @@
ca %22 + n + %22 car
-a
+%22 + (n == 1? %22%C3%A1%22 : %22a%22) + %22
cter%22 + (n == 1?
@@ -466,16 +466,17 @@
or favor
+,
elimine
@@ -489,17 +489,43 @@
+ %22 car
-a
+%22 + (n == 1? %22%C3%A1%22 : %22a%22) + %22
cter%22 +
@@ -60... |
416c70dd03785c2627e9072f3a622165572969fc | clean up some of the implementation of queryCourseDatabase | modules/gob-web/helpers/query-course-database.js | modules/gob-web/helpers/query-course-database.js | import {db} from './db'
import {buildQueryFromString} from '@gob/search-queries'
import compact from 'lodash/compact'
import filter from 'lodash/filter'
import map from 'lodash/map'
import some from 'lodash/some'
import toPairs from 'lodash/toPairs'
import fromPairs from 'lodash/fromPairs'
import debug from 'debug'
con... | JavaScript | 0.000004 | @@ -1,16 +1,26 @@
+// @flow%0A%0A
import %7Bdb%7D from
@@ -132,248 +132,85 @@
ort
-filter from 'lodash/filter'%0Aimport map from 'lodash/map'%0Aimport some from 'lodash/some'%0Aimport toPairs from 'lodash/toPairs'%0Aimport fromPairs from 'lodash/fromPairs'%0Aimport debug from 'debug'%0Aconst log = debug('web:databas... |
1f2abd4e448a8c29df583c21ad11f01135ee7fbb | Add support for selecting files and directories of files. | website/app/application/services/select-items-service.js | website/app/application/services/select-items-service.js | (function (module) {
module.factory('selectItems', selectItemsService);
selectItemsService.$inject = ["$modal"];
function selectItemsService($modal) {
return {
open: function () {
var tabs = {
processes: false,
files: false,
... | JavaScript | 0 | @@ -2861,32 +2861,85 @@
%7D);%0A%0A
+ var selectedFiles = getSelectedFiles();%0A%0A
$mod
@@ -3043,31 +3043,870 @@
dSamples
-%0A %7D)
+,%0A files: selectedFiles%0A %7D);%0A %7D%0A%0A function getSelectedFiles() %7B%0A var ... |
2caea723c87b1b7726264e7ff03621ad101ec0f9 | Add way to quit application via offcanvas menu | main.js | main.js | 'use strict';
var app = require('app');
var mainWindow = null;
var dribbbleData = null;
var menubar = require('menubar')
var mb = menubar({
index: 'file://' + __dirname + '/app/index.html',
icon: __dirname + '/app/assets/HotshotIcon.png',
width: 400,
height: 700,
'max-width': 440,
'min-height': 300,
'm... | JavaScript | 0 | @@ -33,16 +33,41 @@
'app');%0A
+var ipc = require('ipc');
%0Avar mai
@@ -509,16 +509,18 @@
ocus');%0A
+//
mb.win
@@ -536,17 +536,84 @@
evTools();%0A%7D);%0A%0A
+ipc.on('quit-button-clicked', function(event) %7B%0A app.quit();%0A%7D);%0A%0A
%0A
|
c71fdef22de9c53d1271d27fd8691d0dc43c550d | fix suggestion bar issue | client/navbar.js | client/navbar.js | Template.minimal_navbar.helpers({
loggedIn() { return Meteor.user() },
showDesktopMode: window.showDesktopMode,
cardListContainerHidden () {
if(Session.get('cardListContainerHidden')){
return true;
}
return false;
},
showShowSuggestionsButton (){
return Session.get('curateMode') && this.... | JavaScript | 0.000001 | @@ -2794,24 +2794,72 @@
ataType'));%0A
+ Session.set('showSuggestionBrowser', null);%0A
Session.
|
a641cf51a7d5fb36ef6ec87220f6005e15c8f27d | Fix padding issue | qml/dublin-bus-api.js | qml/dublin-bus-api.js | var api = (function () {
"use strict";
var routeCache = {};
function networkCall(url, callback, errorcallback) {
var request = new XMLHttpRequest();
request.onreadystatechange = function() {
if (request.readyState === XMLHttpRequest.DONE) {
if (request.status === ... | JavaScript | 0.000001 | @@ -603,16 +603,32 @@
r out, i
+, originalLength
;%0A
@@ -650,24 +650,61 @@
toString();%0A
+ originalLength = out.length;%0A
for
@@ -720,20 +720,24 @@
%3C 5 - o
-ut.l
+riginalL
ength; i
@@ -776,32 +776,58 @@
out;%0A %7D%0A
+ console.log(out);%0A
return o
|
59f8e23c6789d04d61a54177584f088d68f06f98 | Fix countdown | public/js/countdown.js | public/js/countdown.js | var countDown = function(theSelector, time){
var output = "";
var dTime = Date.parse(time);
var theDate = Date.parse(new Date());
var difference = dTime - theDate;
var milliseconds = difference % 1000;
function addZero(number){
if(number <= 9){
number = "0" + number;
}
return number;
}
... | JavaScript | 0.999529 | @@ -912,12 +912,12 @@
= %22
-7/11
+6/15
/201
|
52b9e9552b3d0a13fb769c163707dad945705754 | fix so tiles show in order | public/js/dashboard.js | public/js/dashboard.js | $(document).ready(function() {
//alert(value.id);
var dashboard = $('#dashboard');
var devices = [];
$.getJSON('/api/dashboard/' + dashboard[0].dataset.id + '/devices', function(data, status) {
devices = data.sort(function(a, b) {
var sortStatus = 0;
if (parseInt(a.order... | JavaScript | 0 | @@ -1,16 +1,51 @@
+var tiles = %5B%5D;%0Avar devices = %5B%5D;%0A%0A
$(document).read
@@ -124,30 +124,8 @@
');%0A
- var devices = %5B%5D;%0A
@@ -745,24 +745,43 @@
rie.jpg)');%0A
+ var i = 1;%0A
devi
@@ -964,32 +964,55 @@
-$(dashboard).append(
+tiles.push(%7B %22order%22: dev.order, %22... |
4efbc8526fd1ffd8c8120cdbe25089832fcecdbb | fix conflict loginPage.js | public/js/loginPage.js | public/js/loginPage.js | 'use strict';
$(document).ready(function() {
// LOGIN: sumbit button pressed
var textfield = $("input[name=user]");
$('button[type="submit"]').click(function(e) {
e.preventDefault();
//little validation just to check username
if (textfield.val() != "") {
//$("#output").ad... | JavaScript | 0.000009 | @@ -1747,13 +1747,12 @@
, 3000);%0A%7D%0A
-%0A
|
f529257fcf9b29e47346c5399d01b090126f9a4f | solve error | public/js/stargraph.js | public/js/stargraph.js | function callback(response) {
var date = new Date();
$("#loader").hide();
var chart = new CanvasJS.Chart("chartContainer",
{
zoomEnabled: true,
title:{
text: "Repo with " + response.data.length + " stars created at " + response.created_at
},
data: [
{
... | JavaScript | 0.000378 | @@ -793,33 +793,8 @@
) %7B%0A
- $(%22#loader%22).hide();%0A
@@ -1412,16 +1412,21 @@
if (obj.
+data.
length !
@@ -1473,16 +1473,21 @@
p = obj.
+data.
pop().x;
@@ -1629,17 +1629,59 @@
-%7D
+$(%22#loader%22).hide();%0A %7D%0A
);%0A %7D
|
21ef032bd4d63499aa24ce974147986d8157096d | Add additional logging | public/scripts/xmpp.js | public/scripts/xmpp.js | $(window.document).ready(function() {
var socket = new Primus('//' + window.document.location.host)
socket.on('error', function(error) { console.error(error) })
var handleItems = function(error, items) {
if (error) return console.error(error)
$('ul.posts').empty()
var content
items.forE... | JavaScript | 0 | @@ -247,24 +247,72 @@
rror(error)%0A
+ console.log('Node items received', items)%0A
$('ul.
@@ -676,32 +676,75 @@
= function() %7B%0A
+ console.log('Retrieving node items')%0A
socket.sen
|
bc83f7216b79458cf26d16623e1d346994bb21ac | Use ramda | imports/ui/components/header/header.js | imports/ui/components/header/header.js | import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { Router } from 'meteor/iron:router';
import './header.jade';
Template.header.helpers({
isClubAdmin() {
if (Meteor.user().profile.clubAdmin) {
return true;
} else {
return false;
}
}
});
| JavaScript | 0.000017 | @@ -90,43 +90,21 @@
ort
-%7B Router %7D from 'meteor/iron:router
+R from 'ramda
';%0A%0A
@@ -177,34 +177,44 @@
%7B%0A%09%09
-if (Meteor.user().
+return R.equals(R.path(%5B'
profile
-.
+', '
club
@@ -222,59 +222,34 @@
dmin
-) %7B%0A%09%09%09return true;%0A%09%09%7D else %7B%0A%09%09%09return false;%0A%09%09%7D
+'... |
ca59baba98e7792effd9e898b00c43f7bd6627e9 | remove log | frontend/src/components/partners/profile/overview/partnerOverviewSummary.js | frontend/src/components/partners/profile/overview/partnerOverviewSummary.js | import React from 'react';
import R from 'ramda';
import { browserHistory as history } from 'react-router';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import Button from 'material-ui/Button';
import Grid from 'material-ui/Grid';
import HeaderList from '../../../common/list/head... | JavaScript | 0.000001 | @@ -4465,31 +4465,8 @@
ps;%0A
- console.log(partner);
%0A r
|
1ddb5939321dc304e5539dc5074b0a78c0ee6f6f | Remove snapshots notification. | app/assets/javascripts/nilavu/components/vm-management-snapshots.js.es6 | app/assets/javascripts/nilavu/components/vm-management-snapshots.js.es6 | import NilavuURL from 'nilavu/lib/url';
import {
buildCategoryPanel
} from 'nilavu/components/edit-category-panel';
import computed from 'ember-addons/ember-computed-decorators';
import {
observes
} from 'ember-addons/ember-computed-decorators';
export default buildCategoryPanel('snapshots', {
showSnapshot... | JavaScript | 0 | @@ -3729,32 +3729,35 @@
+ //
self.notificati
@@ -3913,32 +3913,35 @@
);%0A
+ //
self.notificati
|
677e80519d49dd02e5b80af23ee69b87822c2804 | Fix layout for url_select | Resources/views/add_process/url_select.js | Resources/views/add_process/url_select.js | Ti.include('/includes/lib/json.i18n.js');
var win = Ti.UI.currentWindow;
var Utils = require('/includes/utils');
var view = Ti.UI.createView({
height: Ti.UI.SIZE
});
win.add(view);
var lbl_url = Ti.UI.createLabel({
left: 20,
width: 280,
color: 'white',
shadowColor: 'darkGray',
shadowOffset: {
x: 1,
y: 1
... | JavaScript | 0.000001 | @@ -157,16 +157,47 @@
.UI.SIZE
+,%0A%09top: 50,%0A%09layout: 'vertical'
%0A%7D);%0A%0Awi
@@ -634,17 +634,17 @@
%0A%09top: 1
-0
+5
,%0A%09left:
|
df80667f18f559d046b4e9e821bf793e1378ce4e | call no longer fails when developer tries to link a nonexistent resource | addLink.js | addLink.js | var parseUrlDocs = require('./parseUrlDocs.js');
var cache = {};
module.exports = (server, options) => {
var attachHALObj = require('./attachHALObj.js')(options);
var findLink = (method, urlWithoutQuery) => {
for (var i = 0; i < server.router.routes[method].length; i++) {
var route = server.router.route... | JavaScript | 0 | @@ -1225,58 +1225,230 @@
-cache%5Bmethod%5D%5BurlWithoutQuery%5D = findLink(
+var cacheEntry = findLink(method, urlWithoutQuery);%0A if (cacheEntry) %7B%0A cache%5Bmethod%5D%5BurlWithoutQuery%5D = cacheEntry;%0A %7D else %7B%0A console.error(%60addLink.js: no match was found for $%... |
ecc35fe0b4a721332f3d6ecfbf71e156db0b3ef7 | make dedup more reliable | server/activities.js | server/activities.js | generateActivity = function(type, details){
check(type, String);
check(details, Object);
if(details.fanout){
throw new Meteor.Error('Fanout should not be set');
}
var fullDetails = _.extend({}, details, {type: type});
var dedupDetails = {
type: type
};
_.each(['actor', 'object', 'target'], fu... | JavaScript | 0.000001 | @@ -657,16 +657,28 @@
.content
+.toString();
%0A %7D
|
78c79f23576aebf2b0b2c166e2b30b047e660d30 | test 4 | complete/1-6/common.js | complete/1-6/common.js | $(function() {
$(".menu>a").click(function(e) {
$(".menu>a.selected").removeClass();
$(".content").load($(this).addClass("selected").attr("href"));
e.preventDefault();
}).first().click();
}); | JavaScript | 0.000002 | @@ -9,17 +9,20 @@
ion() %7B%0A
-%09
+
$(%22.menu
@@ -46,18 +46,24 @@
on(e) %7B%0A
-%09%09
+
$(%22.menu
@@ -91,18 +91,24 @@
lass();%0A
-%09%09
+
$(%22.cont
@@ -166,10 +166,16 @@
));%0A
-%09%09
+
e.pr
@@ -194,9 +194,12 @@
();%0A
-%09
+
%7D).f
|
d55f6f0bb6a79325f91e38159ad233c26e6b5e71 | Remove extra spaces from link title before persisting. | server/api-server.js | server/api-server.js | var express = require('express');
var bodyParser = require('body-parser');
var MetaInspector = require('node-metainspector');
var Datastore = require('nedb');
var app = express();
var db = new Datastore({ filename: 'links.db', autoload: true });
// TODO: Improve CSP
// http://enable-cors.org/server_expressjs.html
app... | JavaScript | 0 | @@ -241,16 +241,169 @@
ue %7D);%0A%0A
+var sanitizeTitle = function (title) %7B%0A // http://stackoverflow.com/a/7764370/349353%0A return title.replace(/%5Cn/g, ' ').replace(/%5Cs+/g,' ').trim();%0A%7D;%0A%0A
// TODO:
@@ -926,46 +926,34 @@
le:
-client.title.replace(/%5Cn/g, ' ').trim(
+sanitizeTitle(client.title
... |
c126e1a8bdcae2833486da3ef11ba3fc1a64b295 | clean up | server/lib/ilsapi.js | server/lib/ilsapi.js | 'use strict';
var _ = require('lodash');
var request = require('request');
var util = require('util');
var settings = require('../config/settings');
// https://catalog.library.edu:54620/PATRONAPI/21913000482538
var ILSApi = {
_patronApiFieldMap: {
'REC INFO' : 'recordInfo',
'EXP DATE' : 'expirati... | JavaScript | 0.000001 | @@ -8,16 +8,136 @@
rict';%0A%0A
+%0A/*%0A * This is a temporary mini ILS API layer and will be replaced by the full%0A * modular API layer in the future.%0A */%0A%0A
var _ =
@@ -216,16 +216,50 @@
'util');
+%0Avar cheerio = require('cheerio');
%0A%0Avar se
@@ -1938,27 +1938,87 @@
%7B%7D;%0A
-console.log(
+ // T... |
9691869457a0a0983d23d682a12ae2105f91b50d | set smtp mailer auth options only if we have a non-null user | server/lib/mailer.js | server/lib/mailer.js | //
// Copyright 2009-2015 Ilkka Oksanen <iao@iki.fi>
//
// 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 b... | JavaScript | 0 | @@ -2331,25 +2331,24 @@
'smtp:port')
-,
%0A
@@ -2340,33 +2340,108 @@
t')%0A
-
+%7D;%0A%0A if (conf.get('smtp:user').length !== 0) %7B%0A smtpOptions.
auth
-:
+ =
%7B%0A
@@ -2529,32 +2529,33 @@
')%0A %7D
+;
%0A %7D;%0A%0A
@@ -2540,33 +2540,32... |
5522c80cf05d2477b485956df59cfd903326cb25 | Fix the context generation for the layout | server/lib/routes.js | server/lib/routes.js | const _ = require('lodash')
const router = require('koa-router')()
const view = require('./view')
const parallelPromise = require('../../common/lib/parallelPromise')
const handlebars = require('../../common/lib/handlebars')
const config = require('../../common/config')
const serverRoutes = require('../routes')
const c... | JavaScript | 0.000193 | @@ -882,24 +882,71 @@
esults =%3E %7B%0A
+ // Compile the content of the layout%0A
co
@@ -1005,16 +1005,48 @@
lts%5B1%5D)%0A
+ // Compile the layout%0A
@@ -1100,64 +1100,178 @@
ile(
-results%5B0%5D%5B0%5D, _.extend(config, results%5B1%5D))(%7B content %7D
+%0A result... |
ef53b9c673c71526affa97dffe1e44a9d9a366a7 | Update api.js | server/routes/api.js | server/routes/api.js | var express = require('express');
//var db = require('../db');
var assert = require('assert');
var mongoose = require('mongoose');
var User = require('../schemas/User');
var Challenge = require('../schemas/Challenge');
var router = express.Router(); // get router instance
// Connection URL
var db_url = 'mongodb://... | JavaScript | 0.000001 | @@ -1075,18 +1075,11 @@
ser.
-organizer,
+_id
%0A
|
8f281e69025305256aaaa8e5d6a6e0e10bce66fe | Refactor code to its own method | lib/assets/javascripts/cartodb3/components/modals/add-analysis/body-view.js | lib/assets/javascripts/cartodb3/components/modals/add-analysis/body-view.js | var _ = require('underscore');
var CoreView = require('backbone/core-view');
var createTemplateTabPane = require('../../tab-pane/create-template-tab-pane');
var tabPaneButtonTemplate = require('./tab-pane-button-template.tpl');
var tabPaneTemplate = require('./tab-pane-template.tpl');
/**
* View to select widget opti... | JavaScript | 0.000003 | @@ -1214,24 +1214,667 @@
ometryModel;
+%0A%0A this._generateTabPaneItems();%0A %7D,%0A%0A render: function () %7B%0A this.clearSubViews();%0A%0A var options = %7B%0A tabPaneOptions: %7B%0A template: tabPaneTemplate,%0A tabPaneItemOptions: %7B%0A tagName: 'li',%0A classNa... |
e450b47170ea9bbca9420eb82ee47bbca5bb45ee | Make prettier happier | source/views/help/wifi-tools.js | source/views/help/wifi-tools.js | // @flow
import deviceInfo from 'react-native-device-info'
import networkInfo from 'react-native-network-info'
import {Platform} from 'react-native'
import pkg from '../../../package.json'
export const getIpAddress = (): Promise<?string> =>
new Promise(resolve => {
try {
networkInfo.getIPAddress(resolve)
} ca... | JavaScript | 0.000123 | @@ -455,16 +455,17 @@
%3E %7B%0A%09%09if
+
(Platfor
|
79988e736a3392acc99490a3b824feb32387e97b | Combine checks to simplify | source/views/news/fetch-feed.js | source/views/news/fetch-feed.js | // @flow
import {fastGetTrimmedText} from '../../lib/html'
import qs from 'querystring'
import {AllHtmlEntities} from 'html-entities'
import {parseString} from 'xml2js'
import pify from 'pify'
import type {
StoryType,
FeedResponseType,
RssFeedItemType,
WpJsonItemType,
WpJsonResponseType,
} from './types'
con... | JavaScript | 0.000001 | @@ -2274,32 +2274,41 @@
fo) %7B%0A if (
+%0A
featuredMediaInf
@@ -2328,19 +2328,19 @@
ls.sizes
-) %7B
+ &&
%0A
@@ -2336,28 +2336,24 @@
&&%0A
-if (
featuredMedi
@@ -2390,22 +2390,27 @@
um_large
+%0A
) %7B%0A
-
@@ -2425,18 +2425,16 @@
Image =%0A
-
@@ -25... |
c8a1317bf56c81ad44d85080476b0d7ec3778c99 | make Flow happy | source/views/streaming/radio.js | source/views/streaming/radio.js | // @flow
/**
* All About Olaf
* KSTO page
*/
import React from 'react'
import {
StyleSheet,
View,
ScrollView,
Text,
Dimensions,
Image,
} from 'react-native'
import * as c from '../components/colors'
import Icon from 'react-native-vector-icons/Ionicons'
import Video from 'react-native-video'
import {Touc... | JavaScript | 0.000001 | @@ -607,16 +607,33 @@
ber,%0A%7D%0A%0A
+type Props = %7B%7D%0A%0A
type Sta
@@ -794,20 +794,21 @@
t%3Cvoid,
-void
+Props
, State%3E
|
21e390649a0848c2382df093316b6810ced9ccd5 | Fix example code | lib/node_modules/@stdlib/math/base/dist/binomial/quantile/examples/index.js | lib/node_modules/@stdlib/math/base/dist/binomial/quantile/examples/index.js | 'use strict';
var randu = require( '@stdlib/math/base/random/randu' );
var round = require( '@stdlib/math/base/special/round' );
var quantile = require( './../lib' );
var r;
var i;
var n;
var p;
var y;
for ( i = 0; i < 10; i++ ) {
r = randu();
n = round( randu() * 100 );
p = randu();
y = quantile( r, n, p );
co... | JavaScript | 0.998089 | @@ -400,15 +400,20 @@
xed( 4 )
+,%0A%09%09y
%0A%09);%0A%7D%0A
|
f5fac1df43fd7f34b04126c1a0ae682b102e606c | Update discover apis in discover script | test-data/discover.js | test-data/discover.js | /**
* Run `node import.js` to import the test data into the db.
*/
var weapons = require('./weapons.json');
var asteroid = require('asteroid');
var fs = require('fs');
var path = require('path');
var db = require('../data-sources/oracle');
var modelsDir = path.join(__dirname, '..', 'models');
// tables we care abou... | JavaScript | 0 | @@ -226,22 +226,18 @@
sources/
-oracle
+db
');%0Avar
@@ -454,22 +454,18 @@
tables%0A
-oracle
+db
.discove
@@ -482,22 +482,16 @@
nitions(
-null,
function
@@ -690,22 +690,18 @@
-oracle
+db
.discove
@@ -708,22 +708,16 @@
rSchema(
-null,
def.name
@@ -2052,25 +2052,16 @@
ase());%0A
- %0A
... |
71ccde1b4b76ce799a58b9c6a9ba69c322ac1fef | Update eval.js | commands/eval.js | commands/eval.js | const Discord = require('discord.js');
const config = require("./config.json");
exports.run = async (bot, message) => {
var embed = new Discord.RichEmbed()
.setTitle("Restricted")
.setColor("#f45f42")
.addField("You are restricted from this command", "Its for the bot owner only!")
const randomColor = "#0... | JavaScript | 0.000001 | @@ -893,34 +893,38 @@
de));%0A if(m
-sg
+essage
.flags.includes(
@@ -949,26 +949,30 @@
;%0A if(m
-sg
+essage
.flags.inclu
@@ -988,34 +988,38 @@
return;%0A m
-sg
+essage
.channel.send(%60%5C
@@ -1084,18 +1084,22 @@
if(m
-sg
+essage
.flags%5B0
@@ -1104,18 +1104,22 @@
%5B0%5D && m
-sg
+essage
... |
421350287d3bb6bda66518547739195dcfb62848 | Update info.js | commands/info.js | commands/info.js | /*
© Copyright Adam Aharony (a.k.a. Cringy Adam)
All rights reserved
Twitter: @AdamAharony, Discord: @Cringy Adam#4611
*/
exports.run = (client, message, args) => {
message.delete();
message.channel.send('', {
embed: {
author: {
... | JavaScript | 0 | @@ -498,32 +498,68 @@
by Adam Aharony
+(bot origionally from @XeliteXirish
(a.k.a. Cringy A
|
0e07124e7b314fba5e322643f7852c575b354ebb | stop command: check for bosco-service.json first | commands/stop.js | commands/stop.js | var _ = require('lodash');
var async = require('async');
var NodeRunner = require('../src/RunWrappers/Node');
var DockerRunner = require('../src/RunWrappers/Docker');
var runningServices = [];
module.exports = {
name: 'stop',
description: 'Stops all of the microservices (or subset based on regex pattern)',
... | JavaScript | 0.000001 | @@ -1342,406 +1342,8 @@
%7B%0A%0A
- if (bosco.exists(packageJson)) %7B%0A pkg = require(packageJson);%0A if (pkg.scripts && pkg.scripts.start) %7B%0A // Assume node%0A if (_.contains(runningServices, repo)) %7B%0A ... |
208975c2f8eb9c3e5ca5cb9a211bb3458a18ac19 | include masked account number for email | give/observers/transactions.js | give/observers/transactions.js |
import { api } from "../../core/util/rock"
import { makeNewGuid } from "../../core/util/guid"
import { TransactionReciepts } from "../collections/transactions"
const transactions = () => {
if (api._ && api._.baseURL) {
TransactionReciepts.find().observe({
added: function (Transaction) {
/*
... | JavaScript | 0.000003 | @@ -5120,16 +5120,116 @@
tAmounts
+%0A mergeFields%5B%22AccountNumberMasked%22%5D = FinancialPaymentDetail.AccountNumberMasked.slice(-4)
%0A%0A
|
b94413399fccead24570d63cbbf77da6a7e54174 | Change column width on layoutChange | lib/components/artist/related_artists/index.js | lib/components/artist/related_artists/index.js | /* @flow */
'use strict';
import Relay from 'react-relay';
import React from 'react';
import { ScrollView, StyleSheet, View, Dimensions } from 'react-native';
import colors from '../../../../data/colors';
import SerifText from '../../text/serif';
import ImageView from '../../opaque_image_view';
import RelatedArtist f... | JavaScript | 0 | @@ -384,16 +384,689 @@
onent %7B%0A
+ constructor(props) %7B%0A super(props);%0A this.state = %7B columns: this.columnCount()%7D;%0A this.onLayout = this.onLayout.bind(this);%0A %7D%0A %0A columnCount() %7B%0A const isPhone = Dimensions.get('window').width %3C 700;%0A const isPadHorizontal = Dimen... |
489ccb24fd3135988ab6be59e44cf7567d888bb6 | change migration mode 2 | lib/modules/migration/lib/manager.migration.js | lib/modules/migration/lib/manager.migration.js | module.exports = function(self,deps){
var preprocessProperties = self.require('lib/properties');
var getAppScheme = self.require('lib/getAppScheme');
var compareDescriptors = self.require('lib/difference');
var g = require('grunt');
var Sync = require('sql-ddl-sync').Sync;
var Q = require('q');
... | JavaScript | 0 | @@ -1887,53 +1887,8 @@
%7D%0A
- magic.run = require(mjcPath);%0A
@@ -2680,16 +2680,75 @@
%7D
+%0A magic.run = require(mjcDir+magic.id+%22.js%22);
%0A
|
c19c070b5cfffa009e705aa8fd318e4677b870b8 | Update comment | lib/node_modules/@stdlib/iter/flow/lib/main.js | lib/node_modules/@stdlib/iter/flow/lib/main.js | /**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -6052,18 +6052,19 @@
the
-%60Itera
+construc
tor
-%60
pro
|
e138b2827f184a16722a3f1ae9cbae27f78f3c48 | use default table based on database | lib/sails-migrations/helpers/database_tasks.js | lib/sails-migrations/helpers/database_tasks.js | const exec = require('child_process').exec;
const _ = require('lodash');
const errors = require('../errors');
const PG_CLIENT_NAME = 'pg';
const MYSQL_CLIENT_NAME = 'mysql';
function DatabaseTasks() {}
DatabaseTasks.executeQuery = function (config, query, cb) {
//config.debug = true;
database = config.connectio... | JavaScript | 0 | @@ -169,16 +169,91 @@
ysql';%0A%0A
+const clientToDefaultDbTable = %7B%0A 'pg': 'postgres',%0A 'mysql': 'mysql'%0A%7D%0A%0A
function
@@ -434,17 +434,45 @@
e =
-undefined
+clientToDefaultDbTable%5Bconfig.client%5D
; //
|
577edcb75d9e8ca964c05c1276f9ddb037de2a00 | FIX the page story for desktop & mobile | lib/ui/src/components/layout/layout.stories.js | lib/ui/src/components/layout/layout.stories.js | import { setInterval, window } from 'global';
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, number } from '@storybook/addon-knobs';
import { styled } from '@storybook/theming';
import { Desktop } from '... | JavaScript | 0.000007 | @@ -4839,35 +4839,34 @@
viewMode=
-%7Bundefined%7D
+%22settings%22
%0A /%3E%0A ))
@@ -5729,19 +5729,18 @@
ode=
-%7Bundefined%7D
+%22settings%22
%0A
|
f5f0be534aafd4a2bf1acd9b9154537343fff66e | remove problematic plugins from karma's webpack config | config/karma.config.js | config/karma.config.js | var path = require('path');
var webpackConfig = require('./webpack.config.js');
var ROOT_PATH = path.resolve(__dirname, '..');
// add coverage instrumentation to babel config
if (webpackConfig && webpackConfig.module && webpackConfig.module.rules) {
var babelConfig = webpackConfig.module.rules.find(function (rule) {... | JavaScript | 0 | @@ -17,24 +17,58 @@
re('path');%0A
+var webpack = require('webpack');%0A
var webpackC
@@ -103,24 +103,24 @@
onfig.js');%0A
-
var ROOT_PAT
@@ -220,33 +220,16 @@
ckConfig
- && webpackConfig
.module
@@ -499,16 +499,16 @@
%7C%7C %5B%5D;%0A
-
babelC
@@ -550,16 +550,288 @@
l');%0A%7D%0A%0A
+// remove problematic... |
99e343de4d6a11ece95be8a9bbd5796796a896d9 | change order of inheritance and use return | mail_tracking/static/src/js/discuss/discuss.js | mail_tracking/static/src/js/discuss/discuss.js | odoo.define("mail_tracking/static/src/js/discuss/discuss.js", function (require) {
"use strict";
const {attr} = require("mail/static/src/model/model_field.js");
const {
registerInstancePatchModel,
registerFieldPatchModel,
registerClassPatchModel,
} = require("mail/static/src/mod... | JavaScript | 0.00083 | @@ -608,51 +608,8 @@
) %7B%0A
- this._super(...arguments);%0A
@@ -1079,32 +1079,82 @@
%7D);%0A
+ return this._super(...arguments);%0A
%7D,%0A
|
39bb37227410b30df4154130baf3db109dd21a64 | Update share.js | res/js/front/share.js | res/js/front/share.js | new Clipboard("#saveButton");
function saveButton() {
$("#saveButton").text("Playlist copied!");
setTimeout(function() {
resetSaveButton();
}, 2000);
}
function resetSaveButton() {
if ($(window).width() <= 600) {
$("#saveButton").text("Save");
}
else {
$("#saveButton").text("Save playlist");
... | JavaScript | 0 | @@ -1,8 +1,585 @@
+/**%0A Copyright 2018 LNFWebsite%0A Licensed under the Apache License, Version 2.0 (the %22License%22);%0A you may not use this file except in compliance with the License.%0A You may obtain a copy of the License at%0A http://www.apache.org/licenses/LICENSE-2.0%0A Unless required by applicab... |
c5894dfb9a8770fc82a42314eccdec6a89f914e2 | Fix bug that the solution will be undefined when exercise has no solution. | server/static/lecturer/js/store/components/group.js | server/static/lecturer/js/store/components/group.js | /**
* Created by Elors on 2017/1/3.
* Exercise-Group component
*/
define(['Exercise'], function () {
$(function () {
Vue.component('exercise-group', {
template: '\
<div class="row store-row content-pane">\
<el-form ref="form" :model="form" label-width="0px" class="page-pane">\
<... | JavaScript | 0 | @@ -2535,16 +2535,52 @@
ptions;%0A
+ exercise.solution = '';%0A
@@ -2935,20 +2935,18 @@
id:
-null
+''
,%0A
@@ -2988,12 +2988,10 @@
on:
-null
+''
,%0A
|
cce8bc08a8725142b99d480d8f0103f6d714af09 | fix for failed test (C:\Program), one more quote | test/api_base.test.js | test/api_base.test.js | 'use strict';
var gdal = require('../lib/gdal.js');
var assert = require('chai').assert;
var fs = require('fs');
var path = require('path');
if (process.env.GDAL_DATA !== undefined) {
throw new Error("Sorry, this test requires that the GDAL_DATA environment option is not set");
}
describe('gdal', function() {
afte... | JavaScript | 0 | @@ -2371,16 +2371,14 @@
%09%09//
- attempt
+quotes
to
@@ -2387,43 +2387,14 @@
oid
-quoting problem that leads to
error
+s
lik
@@ -2481,16 +2481,17 @@
ath = '%22
+%22
' + exec
|
17d95a7737b18369bf76462e4681d033cd8c6560 | fix auto-fix coverage | test/auto-fix-func.js | test/auto-fix-func.js | import testRule from 'stylelint-test-rule-tape'
import declarationStrictValue, { ruleName } from '../src'
const { rule } = declarationStrictValue
// eslint-disable-next-line consistent-return, no-unused-vars
function autoFixFunc(node, validation, root, config) {
const { value, prop } = node
if (prop === 'color'... | JavaScript | 0.000256 | @@ -104,545 +104,456 @@
rc'%0A
-%0Aconst %7B rule %7D = declarationStrictValue%0A%0A// eslint-disable-next-line consistent-return, no-unused-vars%0Afunction autoFixFunc(node, validation, root, config) %7B%0A const %7B value, prop %7D = node%0A%0A if (prop === 'color') %7B%0A // eslint-disable-next-line default-ca... |
c436f91eca5b40fea9a501e1b8d179e31f72e35a | Add check that child is properly attached to parent the other way too... | test/children_test.js | test/children_test.js | /*global QUnit:false, module:false, test:false, asyncTest:false, expect:false*/
/*global start:false, stop:false ok:false, equal:false, notEqual:false, deepEqual:false*/
/*global notDeepEqual:false, strictEqual:false, notStrictEqual:false, raises:false*/
(function(el) {
test("the third param is to create nested elem... | JavaScript | 0 | @@ -469,35 +469,43 @@
a child');%0A
-ok(
+var child =
e.childNodes%5B0%5D
@@ -496,32 +496,47 @@
e.childNodes%5B0%5D
+;%0A ok( child
.nodeName.match(
@@ -536,32 +536,66 @@
.match(/a/i) );%0A
+ equal( child.parentNode, e );%0A
%7D);%0A%0A test(%22i
|
502fadc64e885faf27b56c5a740a6ffe658ad398 | test fixes | test/commands-spec.js | test/commands-spec.js | var proxyquire = require('proxyquire').noPreserveCache(),
Q = require('q'),
_ = require('underscore'),
Queries = require('../lib/commands/queries'),
Utils = require('../lib/commands/utils'),
Invoker = require('../lib/commands').Invoker;
describe('Invoker', () => {
var readline, exit, invoker, ... | JavaScript | 0.000001 | @@ -884,16 +884,56 @@
pause:
+ jasmine.createSpy(),%0A close:
jasmine
@@ -5901,20 +5901,16 @@
return
-new
Q(0);%0A
|
a6567d5365a83a20a6fc17ea3c45980c80de0a4b | fix e2e tests | test/e2e/scenarios.js | test/e2e/scenarios.js | 'use strict';
/* https://github.com/angular/protractor/blob/master/docs/getting-started.md */
describe('my app', function() {
browser.get('index.html');
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
expect(browser.getLocationAbsUrl()).toMatch("/view1");
})... | JavaScript | 0.00003 | @@ -192,21 +192,23 @@
ect to /
-view1
+counter
when lo
@@ -302,21 +302,23 @@
Match(%22/
-view1
+counter
%22);%0A %7D)
@@ -333,21 +333,23 @@
scribe('
-view1
+counter
', funct
@@ -416,21 +416,23 @@
x.html#/
-view1
+counter
');%0A
@@ -459,21 +459,23 @@
render
-view1
+counter
when us
@@ -495,13 +495,15 @... |
582c4beeeab3da4bac3b1eb31824bb2240c13140 | fix assertion in e2e tests for tokens that never expire | test/e2e/token.e2e.js | test/e2e/token.e2e.js | const { expect } = require('../setup');
const { delay } = require('../lib/mocha-utils');
const matches = require('../lib/capture-matches');
const stripANSI = require('../lib/ansi-strip');
const cli = require('../lib/cli');
const {
PASSWORD
} = require('../lib/env');
describe('Token Commands', () => {
const help = [... | JavaScript | 0 | @@ -3147,31 +3147,29 @@
s token
-does not
+never
expire
+s
');%0A%09%09ex
|
32ed136f83653db977b47abcfa105eb6e1b13c74 | fix try-example yarn install | test/fixtures/util.js | test/fixtures/util.js | 'use strict';
const shell = require('shelljs');
const path = require('path');
const glob = require('glob');
const rootDir = path.join(path.resolve(__dirname), '..', '..');
const fs = require('fs-extra');
const silent = true;
const getWorkspaceDirs = (absolute = false) => {
const rootJson = JSON.parse(fs.readFile... | JavaScript | 0 | @@ -4174,32 +4174,51 @@
cd(stagePath);%0A%0A
+ yalcAddAll();%0A%0A
shell.exec(%22
@@ -4297,35 +4297,16 @@
%7D) %7D);%0A%0A
- yalcAddAll();%0A%0A
shel
|
4d927fbf159f311ee42eb3850fb41cf95726a4dd | disable 'text-summary' coverage report in Travis | test/karma.travis.es6 | test/karma.travis.es6 | import karmaCommon from './karma.common';
export default function(config) {
config.set({
...karmaCommon,
singleRun: true,
logLevel: config.LOG_INFO,
reporters: [ 'dots', 'coverage' ],
coverageReporter: {
...karmaCommon.coverageReporter,
reporters: [
... | JavaScript | 0.000001 | @@ -218,231 +218,8 @@
%5D,%0A
- coverageReporter: %7B%0A ...karmaCommon.coverageReporter,%0A reporters: %5B%0A ...karmaCommon.coverageReporter.reporters,%0A %7B type: 'text-summary' %7D%0A %5D%0A %7D,%0A
|
d48930aedf9c1001f2090e88a4bae5f0fab0e193 | Consolidate conditionals | lib/node_modules/@stdlib/math/base/dist/triangular/logcdf/lib/logcdf.js | lib/node_modules/@stdlib/math/base/dist/triangular/logcdf/lib/logcdf.js | 'use strict';
// MODULES //
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var pow = require( '@stdlib/math/base/special/pow' );
var ln = require( '@stdlib/math/base/special/ln' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
// MAIN //
/**
* Evaluates the natural logarithm of the cumula... | JavaScript | 0.000023 | @@ -1418,59 +1418,32 @@
c )
-%0A%09) %7B%0A%09%09return NaN;%0A%09%7D%0A%09if ( !( a %3C= c && c %3C= b )
+ %7C%7C%0A%09%09a %3E c %7C%7C%0A%09%09c %3E b%0A%09
) %7B%0A
@@ -1459,17 +1459,16 @@
NaN;%0A%09%7D%0A
-%0A
%09if ( x
|
7818af50ba8fc7299d085e020cb55457ef4699a2 | add contacts to services.js | server-ce/services.js | server-ce/services.js | module.exports =
[{
name: "web",
repo: "https://github.com/sharelatex/web-sharelatex.git",
version: "master"
}, {
name: "real-time",
repo: "https://github.com/sharelatex/real-time-sharelatex.git",
version: "master"
}, {
name: "document-updater",
repo: "https://github.com/sharelatex/document-updater-sharelatex... | JavaScript | 0 | @@ -1076,11 +1076,118 @@
master%22%0A
+%7D, %7B%0A%09name: %22contacts%22,%0A%09repo: %22https://github.com/sharelatex/contacts-sharelatex.git%22,%0A%09version: %22master%22%0A
%7D%5D%0A
|
11acaa40c365a7fa2ab63db27169b3e98a51f8d9 | update decision's dimensions | test/spec/xml/read.js | test/spec/xml/read.js | 'use strict';
var Helper = require('../../helper');
describe('dmn-moddle - read', function() {
var moddle = Helper.createModdle();
function read(xml, root, opts, callback) {
return moddle.fromXML(xml, root, opts, callback);
}
function fromFile(file, root, opts, callback) {
var contents = Helper.re... | JavaScript | 0.000003 | @@ -3659,17 +3659,17 @@
width: 1
-0
+8
0,%0A
@@ -3695,10 +3695,10 @@
ht:
-55
+80
%0A
|
2df528d81a60e1a8a71d5cdc3fb7ac063d235902 | Use the async version of readFile | test/special/index.js | test/special/index.js | 'use strict';
var _ = require('lodash');
var fs = require('fs');
var hljs = require('../../build');
var jsdom = require('jsdom').jsdom;
var utility = require('../utility');
describe('special cases tests', function() {
before(function() {
var blocks,
filename = utility.buildPath('fixtures... | JavaScript | 0 | @@ -243,24 +243,28 @@
re(function(
+done
) %7B%0A var
@@ -267,24 +267,8 @@
var
-blocks,%0A
file
@@ -321,28 +321,14 @@
ml')
-,%0A page =
+;%0A%0A
fs.
@@ -339,12 +339,8 @@
File
-Sync
(fil
@@ -353,20 +353,61 @@
'utf-8'
-)
+, function(err, page) %7B%0A var blocks
;%0A%0A
+
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.