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
7971983af0a0b50e090fdaba872695d1bed11aff
fix formatting
src/jsxc.lib.tab.js
src/jsxc.lib.tab.js
/** * Provides communication between tabs. * * @namespace jsxc.tab */ jsxc.tab = { CONST: { MASTER: 'master', SLAVE: 'slave' }, exec: function(target, cmd, params) { params = Array.prototype.slice.call(arguments, 2); if (params.length === 1 && $.isArray(params[0])) { para...
JavaScript
0.001459
@@ -940,19 +940,16 @@ %7B%0A - var args @@ -996,19 +996,16 @@ ;%0A - args.uns @@ -1035,27 +1035,24 @@ VE);%0A%0A - - jsxc.tab.exe @@ -1075,24 +1075,18 @@ gs);%0A - %7D%0A +%7D%0A /*jsh
0df28b36718ebae15dd6a8099191fd59322aab13
Add check for notiflist to redirect correctly to login
src/routes/NotifList/index.js
src/routes/NotifList/index.js
import React from 'react' import { checkAuth } from '../../api/utils' import NotifListView from './components/NotifListView' export default (store) => ({ path : 'home', getComponent (nextState, cb) { require.ensure([], () => { const state = store.getState() cb(null, () => <NotifListView {...state.u...
JavaScript
0
@@ -434,16 +434,45 @@ if(!user + && !Object.keys(user).length ) %7B%0A
42609efc4f6829dbaf8d1e369e276b739cabfe0c
Fix countdown bug
src/routes/rewards/Rewards.js
src/routes/rewards/Rewards.js
import React, { Component, PropTypes } from 'react'; import CutScene from '../../components/CutScene'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Rewards.css'; import history from '../../core/history'; const title = 'Destiny'; class Reward extends Component { constructor({ pl...
JavaScript
0.000002
@@ -433,9 +433,9 @@ n: 1 -5 +0 %0A @@ -1058,31 +1058,71 @@ -history.push(%7Bpathname: + console.log('redirect to orbit');%0A window.location.href = '/o @@ -1126,18 +1126,16 @@ '/orbit' -%7D) ;%0A %7D%0A
1dd3b905bed2908a9d90d2086c68172be4d186df
Fix raid name for Bastion of the Penitent
src/legacy/raids.js
src/legacy/raids.js
export default [ {id: 'vale_guardian', raid: 'Forsaken Thicket', wing: 'Spirit Vale', name: 'Vale Guardian', type: 'Boss'}, {id: 'spirit_woods', raid: 'Forsaken Thicket', wing: 'Spirit Vale', name: 'Spirit Woods', type: 'Checkpoint'}, {id: 'gorseval', raid: 'Forsaken Thicket', wing: 'Spirit Vale', name: 'Gorseval...
JavaScript
0
@@ -1235,39 +1235,46 @@ rn', raid: ' -Forsaken Thicke +Bastion of the Peniten t', wing: 'B @@ -1358,39 +1358,46 @@ er', raid: ' -Forsaken Thicke +Bastion of the Peniten t', wing: 'B @@ -1483,39 +1483,46 @@ og', raid: ' -Forsaken Thicke +Bastion of the Peniten t', wing: 'B @@ -1598,39 +1598,46 @@ os', raid: ' -Fo...
13b3c51fef41a388c4960d0303a832caca6455c5
remove emitter
plugin/nodebb.js
plugin/nodebb.js
(function (Module, NodeBB) { 'use strict'; Module.exports = { adminSockets : NodeBB.require('./src/socket.io/admin').plugins, cache : NodeBB.require('./src/posts/cache'), db : NodeBB.require('./src/database'), emitter : NodeBB.require('./src/emitter'), ...
JavaScript
0.000127
@@ -257,64 +257,8 @@ '),%0A - emitter : NodeBB.require('./src/emitter'),%0A @@ -1883,8 +1883,9 @@ e.main); +%0A
8883caf7d2d9525601e089e167b9d3263cdcd198
Fix for Chrome 21
src/lib/pinboard.js
src/lib/pinboard.js
/* * Copyright (c) 2012 mono * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distr...
JavaScript
0
@@ -2375,24 +2375,36 @@ .POSTS_STORE +, 'readonly' );%0A var sto @@ -2929,42 +2929,19 @@ RE, -Pinboard.IDBTransaction.READ_WRITE +'readwrite' );%0A
a48235fe595ce567bff19779e863adfbd1da7728
remove bum url from defaults list
plugins/reset.js
plugins/reset.js
/* Description: * pushes a default URL to screens when /reset is hit * * Dependencies: * settings * * Optional Dependencies: * command - if present, the reset lines can be commands. * * * Configuration: * defaultUrl * * Author: * lonnen, mythmon, potch */ module.exports = function (corsic...
JavaScript
0.000001
@@ -101,17 +101,16 @@ tings%0A * - %0A * Opti @@ -190,19 +190,16 @@ ands.%0A * - %0A *%0A * C @@ -454,25 +454,8 @@ l: %5B -'/default.html', 'htt
fc0a4f8f873155807e5c9eaf7d58c7e19cfa161d
change wording
l10n/ru_suprolftpd.js
l10n/ru_suprolftpd.js
l10n.lftpd = { lang: 'ru' //!!! локализация используется только в UI (для простоты обновления) ,modname: "Обмен данными" ,tooltip: "запуск управления модулем suprolftpd" ,title: 'СУПРО по Интернету обмениваЮтся данными через `lftp`' ,refreshLog: 'Обновить журнал' ,noload: '== Не загружен журнал...
JavaScript
0
@@ -508,14 +508,12 @@ ' -%D0%92%D0%BA%D0%BB%D1%8E%D1%87%D0%B8 +%D0%9D%D0%B0%D1%87%D0%B0 %D1%82%D1%8C: @@ -552,22 +552,23 @@ ,stop: ' -%D0%97%D0%B0%D0%B2%D0%B5%D1%80%D1%88 +%D0%9F%D1%80%D0%B5%D0%BA%D1%80%D0%B0%D1%82 %D0%B8%D1%82%D1%8C: %D0%BF%D1%80%D0%B8
a23585f69d5b13bb70b7be996f868814bbc75f6e
Add results to group solution
week-7/group-project/group_project_solution.js
week-7/group-project/group_project_solution.js
/* As a user, I want to find the total of a list of numbers added together! As a user, I want to find the mean of a list of numbers! As a user, I want to find the median of a list of numbers! My list of numbers can be either an *even* number of numbers or an *odd* number of numbers!! */ // Pseudocode // Define a func...
JavaScript
0
@@ -4428,8 +4428,297 @@ thin.%0A*/ +%0A%0A%0A/*%0AResults:%0A%0ALooks like we nailed it for the first couple of %22Sum%22 tests! Admittedly, I had to swap the terms %22total%22 and %22sum%22 to get it to work with the tests.%0A%0AUnfortunately, we error out at the 3rd test, %22sum should return the sum of all elements...
16138712c37aa27b5dd97d9655b9663b0f3aebcf
remove max extent error
src/main/js/controller/timeseriesController.js
src/main/js/controller/timeseriesController.js
/* * Copyright (C) 2014-2014 52°North Initiative for Geospatial Open Source * Software GmbH * * 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/licens...
JavaScript
0.000051
@@ -4427,36 +4427,13 @@ ue() - %7C%7C elem.getLastValue() ) %7B%0D%0A + @@ -4501,74 +4501,8 @@ );%0D%0A - var end = moment(elem.getLastValue().timestamp);%0D%0A @@ -4610,24 +4610,24 @@ t = start;%0D%0A - @@ -4625,32 +4625,153 @@ %7D%0D%0A + %7D%0D%0A...
0f803901a2f9c820fc355e28a99bfb7a585a8171
fix loading of reference value data when panning diagram
src/main/js/controller/timeseriesController.js
src/main/js/controller/timeseriesController.js
/* * Copyright (C) 2014-2014 52°North Initiative for Geospatial Open Source * Software GmbH * * 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/LICEN...
JavaScript
0
@@ -4025,32 +4025,99 @@ n(index,elem) %7B%0A + if (elem.getFirstValue() %7C%7C elem.getLastValue()) %7B%0A var @@ -4172,24 +4172,28 @@ + + var end = mo @@ -4221,32 +4221,36 @@ e().timestamp);%0A + if ( @@ -4316,16 +4316,20 @@ + + earliest...
6d37b5f7eb93fbc971099e7615329b492c61f617
fix the wrong override function.
transition.js
transition.js
define(["dojo/_base/kernel", "dojo/_base/array","dojo/_base/html","dojo/DeferredList","./animation"], function(dojo, darray, dhtml, DeferredList,animation){ return function(from, to, options){ var rev = (options && options.reverse) ? -1 : 1; if(!options || !options.transition || !animation[options.transition]){ ...
JavaScript
0.000001
@@ -891,25 +891,27 @@ on,%0A%09%09%09%09 -a +onA fterEnd: fun @@ -1305,17 +1305,19 @@ -a +onA fterEnd:
57b486e32f5d748260e512b2b74bc899be388272
Add currency to the salary request
src/bot/helpers/salary.js
src/bot/helpers/salary.js
import { get } from 'lodash'; import { getUserByPageScopedId } from '../../lib/postgres'; import { getDocument } from '../../lib/couchdb'; export const showSalary = async (page_scoped_id, reply) => { const user = await getUserByPageScopedId(page_scoped_id); if (!user) { return await reply({ text: 'Some...
JavaScript
0.000364
@@ -510,16 +510,68 @@ e', 0);%0A + const currency = get(ebudgie, 'currency', '$');%0A awai @@ -626,16 +626,27 @@ %7Bsalary%7D +$%7Bcurrency%7D %60%0A %7D)
d3bd277287c6d5ac16464a8b122d3cfe1179929c
Update reducers.js
src/main/react-front-end/src/model/reducers.js
src/main/react-front-end/src/model/reducers.js
/*accountInformation [credentials] credentials:{key: validation} */ /* queue [{endpoint1: string, endpoint2: string, speed: number}] */ import { LOGIN, LOGOUT, PROMOTE, ENDPOINT_PROGRESS, ENDPOINT_UPDATE, UPDATE_HASH } from './actions'; import { transferOptimizations } from "./actions"; export const cookies = requi...
JavaScript
0.000001
@@ -1492,18 +1492,16 @@ ', email -, );%0A%09%09 c @@ -1519,26 +1519,24 @@ 'hash', hash -, );%0A coo @@ -1566,18 +1566,16 @@ ublicKey -, );%0A %09 @@ -2768,37 +2768,35 @@ ction.endpoint%7D) -, );%0A + return @@ -3013,18 +3013,16 @@ dpoint%7D) -, );%0A @@ -3232,18 +3232,16 @@ ion....
f1979f42665eaed8c4dd0f66b12af6e27e2f2de2
Set the operation timeout in the correct place.
dataload.js
dataload.js
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var couchbase = require('couchbase'); var _ = require('underscore'); var Q = require('q'); var AWS = require('aws-sdk'); AWS.config.region = 'us-east-1'; var argv = require('yargs').argv; var BUCKET = 's3-logs.couchbase.com'; var config = require('config'); var ...
JavaScript
0.000003
@@ -346,16 +346,47 @@ R = 128; +%0Avar OPERATION_TIMEOUT = 65536; %0A%0A// con @@ -695,38 +695,8 @@ rd') -,%0A operationTimeout : 65536 %0A%7D;%0A @@ -1282,32 +1282,81 @@ unction (err) %7B%0A + db.operationTimeout = OPERATION_TIMEOUT;%0A if (err)
893b26eab29b8f48705cf54897138034e12ff8a7
Add missing suffix to inline citation token stream
src/md_citations.js
src/md_citations.js
"use strict"; var parseLinkLabel = require('markdown-it/lib/helpers/parse_link_label') , citeRegex = /(.* )?@@d(\d+)(, .*)?/ , impliedDocumentCiteRegex = /^\[[^@;]+\]$/ function getCitations(label, makeURL) { var citations citations = label .split(';') .map(function (ref) { return ref.match(citeRege...
JavaScript
0.000008
@@ -2018,24 +2018,149 @@ miter;%0A %7D +%0A%0A if (inlineCitation.suffix) %7B%0A token = makeToken('text', '', 0);%0A token.content = inlineCitation.suffix;%0A %7D %0A %7D);%0A%0A to
0f7015178cf5034024d3c8695f86e3091730a9f9
Add group delete to permissions list
src/classes/Permission.js
src/classes/Permission.js
import i18next from 'i18next' import localisationResources from '../../localisations.json' import { Group, User } from '../db/index' import { ForbiddenAPIError } from './APIError' i18next.init({ lng: 'en', resources: localisationResources, }) const permissionLocaleKeys = { 'read': 'permissionRead', 'write'...
JavaScript
0.000001
@@ -5469,16 +5469,38 @@ p.write' +,%0A 'group.delete' %0A %5D%0A
7a4cc9d618e0821296e2c35007e7b30fd932062e
make strict `kpm check` check that installed modules match the satisfied versions - fixes #115
src/cli/commands/check.js
src/cli/commands/check.js
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
JavaScript
0
@@ -672,16 +672,48 @@ c.js%22;%0A%0A +let semver = require(%22semver%22);%0A let path @@ -713,16 +713,18 @@ et path + = requir @@ -2652,146 +2652,1125 @@ -if (!(await fs.exists(loc))) %7B%0A reporter.error(%60Module not installed: $%7Bpath.relative(process.cwd(), loc)%7D%60);%0A valid = false...
8ac8a34104de993068eacc5a0d8055f021c8e9ee
Remove window when undefined
src/client/batchUpdate.js
src/client/batchUpdate.js
// fallback to timers if rAF not present const stopUpdate = (typeof window !== 'undefined' ? window.cancelAnimationFrame : null) || clearTimeout const startUpdate = (typeof window !== 'undefined' ? window.requestAnimationFrame : null) || ((cb) => window.setTimeout(cb, 0)) /** * Performs a batched update. Uses request...
JavaScript
0.000003
@@ -240,23 +240,16 @@ (cb) =%3E -window. setTimeo
89d13f788ab9deb1486bf48758f2ff6a1bd1c5dd
Fix login redirect not working
src/client/public/main.js
src/client/public/main.js
function byID(id) { return document.getElementById(id); } // Login form submission byID("login-form").onsubmit = function() { console.log("Form was submitted"); var userL = byID("user").value; var passL = byID("pass").value; console.log(userL, passL); // Hide the login screen byID("login-background").h...
JavaScript
0.000001
@@ -407,16 +407,17 @@ %22 + user +L + %22&pas @@ -426,16 +426,17 @@ %22 + pass +L );%0A%0A //
c932f34c8ff0060d6f38598c731f996860772def
Update NodeJS example test runner
integrations/node_js/server.js
integrations/node_js/server.js
var http = require('http'); var express = require('express'); var path = require('path'); var app = express(); var exec = require('child_process').exec; function run_my_first_test_in_firefox() { exec("nosetests my_first_test.py --with-selenium --browser=firefox"); } function run_my_first_test_in_chrome() { ex...
JavaScript
0
@@ -226,32 +226,16 @@ test.py ---with-selenium --browse @@ -328,32 +328,16 @@ test.py ---with-selenium --browse @@ -445,32 +445,16 @@ test.py ---with-selenium --browse @@ -578,24 +578,8 @@ .py ---with-selenium --br @@ -1583,13 +1583,31 @@ 000/ + (CTRL-C to stop) ');%0A%7D);%0A %0A @@ -1605,9 +1605,8...
9ee7fc2a5823a8920937b07ea7b3a737c01fdeae
verify that the correct placeholder is being returned
src/minify/index.js
src/minify/index.js
import { makePlaceholder, splitByPlaceholders } from '../css/placeholderUtils' const makeMultilineCommentRegex = newlinePattern => new RegExp('\\/\\*[^!](.|' + newlinePattern + ')*?\\*\\/', 'g') const lineCommentStart = /\/\//g const symbolRegex = /(\s*[;:{},]\s*)/g // Counts occurences of substr inside str const c...
JavaScript
0
@@ -73,16 +73,200 @@ Utils'%0A%0A +let i = 0%0A%0Aconst injectUniquePlaceholders = strArr =%3E%0A strArr.reduce((str, val, index, arr) =%3E %7B%0A return str + val + (index %3C arr.length - 1 ? makePlaceholder(i++) : '')%0A %7D, '')%0A%0A const ma @@ -2784,26 +2784,19 @@ Raw( -rawValues.join(mak +injectUniqu e...
407cae62cfbc5eddb10eca3095c112bea3b0a976
add 'list' alias
src/commands/LsCommand.js
src/commands/LsCommand.js
"use strict"; const chalk = require("chalk"); const columnify = require("columnify"); const Command = require("../Command"); const output = require("../utils/output"); exports.handler = function handler(argv) { // eslint-disable-next-line no-use-before-define return new LsCommand(argv); }; exports.command = "ls...
JavaScript
0.000022
@@ -313,24 +313,53 @@ nd = %22ls%22;%0A%0A +exports.aliases = %5B%22list%22%5D;%0A%0A exports.desc @@ -375,18 +375,13 @@ ist -all public +local pac
c81774ca42fe2efdbaa353e630c699fb4274b0c2
Move issues out of comments and into GitHub issues.
src/mixins/scale.js
src/mixins/scale.js
import { scaleLinear } from "d3-scale"; var scaleConstructors = { linear: scaleLinear // TODO support all scales https://github.com/datavis-tech/reactive-vis/issues/26 }; export default function Scale (my, name, options){ options = options || {}; var type = options.type || "linear"; var nice = options.nic...
JavaScript
0
@@ -292,43 +292,8 @@ ar%22; -%0A var nice = options.nice %7C%7C true; %0A%0A @@ -336,257 +336,8 @@ );%0A%0A -%0A // (name + %22Domain%22) and (name + %22Range%22)%0A // must be defined on the model before incoking this mixin.%0A // TODO throw an error if they are not defined at this point.%0A // GitHub issue ...
b900b3a2d57ab87dac29a773764fee4cbfcf542d
Remove Add conference link
src/components/App/App.js
src/components/App/App.js
import React, {Component} from 'react'; import {format, isPast} from 'date-fns'; import {sortByDate} from './utils'; import styles from './App.scss'; import Footer from '../Footer'; import Link from '../Link'; import Heading from '../Heading'; import Icon from '../Icon'; import ConferenceList from '../ConferenceList';...
JavaScript
0
@@ -3146,224 +3146,8 @@ /%3E%0A - %3C/div%3E%0A %3Cdiv%3E%0A %3CLink%0A url=%22https://github.com/nimzco/the-conference-list/issues/new%22%0A external%0A %3E%0A Add a conference%0A %3C/Link%3E%0A
c9564234be3f012e4d927557f93c2cc3493c7ba4
Add thumbs prop
src/models/Image.js
src/models/Image.js
import cuid from 'cuid'; import { storage, database } from '@/config/firebase'; const getFileExtension = str => str.substring(str.lastIndexOf('.'), str.length); export default function Image(img = {}) { this.file = img.file || null; this.downloadURL = img.downloadURL || null; this.id = img.id || cuid(); cons...
JavaScript
0.000037
@@ -272,24 +272,68 @@ RL %7C%7C null;%0A + this.thumbnails = img.thumbnails %7C%7C null;%0A this.id =
f6a555ee706389c5a816d2482ffb61bc320ac113
Add the AlertForm to the Bitcoin component
src/components/Bitcoin.js
src/components/Bitcoin.js
var React = require('react'); var Stats = require("./Stats"); var BitcoinChart = require("./BitcoinChart"); var Bitcoin = React.createClass({ handlePriceChange: function(priceObject){ // Logic for handling the price change goes here }, render: function() { return ( <div> ...
JavaScript
0
@@ -55,16 +55,56 @@ tats%22);%0A +var AlertForm = require(%22./AlertForm%22);%0A var Bitc @@ -440,24 +440,54 @@ oinChart /%3E%0A + %3CAlertForm /%3E%0A
fa428921c4cfdd9ef4914f072f384f4c904bece8
Allow clicks on past calls only when call status is idle
src/components/CallLog.js
src/components/CallLog.js
import React from 'react'; import _ from 'lodash'; import styled from 'styled-components'; import Paper from 'material-ui/Paper'; import { compose, withHandlers } from 'recompose'; import { connect } from 'react-redux'; import List, { ListItem, ListItemText, ListSubheader } from 'material-ui/List'; const Wrapper = st...
JavaScript
0
@@ -20,16 +20,52 @@ react';%0A +import PropTypes from 'prop-types';%0A import _ @@ -181,38 +181,115 @@ se, -withHandlers %7D from 'recompose +getContext, withHandlers, withPropsOnChange %7D from 'recompose';%0Aimport %7B CALL_STATUS_IDLE %7D from 'react-sip ';%0Ai @@ -546,16 +546,37 @@ temClick +, allowListItemCl...
e640b5901207f17332a19c17ea82c6628e5e5167
fix truncating long comments
src/components/Comment.js
src/components/Comment.js
import React from 'react'; import PropTypes from 'prop-types'; import withIntl from '../lib/withIntl'; import { defineMessages, FormattedMessage, FormattedDate } from 'react-intl'; import { graphql } from 'react-apollo' import gql from 'graphql-tag' import Avatar from './Avatar'; import Link from './Link'; import Small...
JavaScript
0.000285
@@ -2927,41 +2927,8 @@ is;%0A - white-space: nowrap;%0A
2c3babd4f72bb31d1d90e653e6b774dd8e50966a
Update skill model
src/models/skill.js
src/models/skill.js
import firebase from 'config/firebase'; import cuid from 'cuid'; const defaultSkill = { name: '', }; export default class Skill { constructor(skill) { this.id = cuid(); const populated = Object.assign({}, defaultSkill, skill); for (const key in populated) { if (populated.hasOwnProperty(key)) { ...
JavaScript
0
@@ -63,47 +63,8 @@ ';%0A%0A -const defaultSkill = %7B%0A name: '',%0A%7D;%0A%0A expo @@ -133,16 +133,124 @@ cuid();%0A + this.name = '';%0A this.user = null;%0A this.created = Date.now();%0A%0A // Prefill values from payload %0A con @@ -286,20 +286,12 @@ %7B%7D, -defaultSkill +this , sk
ead6a4bb5376efebbe5d8866df63ceab10624df8
rearrange the array
findPeak.js
findPeak.js
var array = [3, 4, 5, 6, 1, 2]; /*find the peak when given an sorted array and number of rotations *@param a Array *@param n integer */ var findPeak = function (a, n) { // debugger; if (a.length === 1 || (a.length !== 0 || n == 0) { return a[a.length - 1]; } else if (a.length > 1) { v...
JavaScript
0.999999
@@ -1,12 +1,234 @@ +/*Question : Given an array and is rotated n number of times find the number where the peak happens. %0A*The array is sorted in increasing order. %0A*Follow up question: How will you rearrange them in normal sorted order.%0A*/%0A%0A var array = @@ -944,20 +944,588 @@ %0A%7D;%0A -//test cases +%0A...
e4984014e15758ba3185cfdd177d6635aa37ff35
fix return value in cross auth
src/server/middleware/auth.js
src/server/middleware/auth.js
'use strict'; const error = require('../error'); const FlavorUtils = require('flavor-utils'); const authPlugins = [['google', 'oauth2'],['couchdb'], ['facebook', 'oauth2'],['github','oauth2']]; const auths = []; const url = require('url'); const superagent = require('superagent-promise')(require('superagent'), Promise)...
JavaScript
0.000008
@@ -4423,16 +4423,21 @@ .userCtx +.name : 'anon
ab12b27ce2aabe84c572984d3094b4a46f01895d
fix log output
accessories/Slat.js
accessories/Slat.js
/* eslint unicorn/filename-case: "off", func-names: "off", camelcase: "off", no-unused-vars: "off" */ module.exports = function (iface) { const {mqttPub, mqttSub, mqttStatus, log, newAccessory, Service, Characteristic} = iface; /* // Required Characteristics this.addCharacteristic(Characteristic.SlatT...
JavaScript
0.000115
@@ -1467,15 +1467,28 @@ ic.s -etActiv +tatusCurrentSlatStat e, v
abafff75f5b25483a39732232f2e1973f585b993
Fix warning when isolating bootstrap
scripts/bootstrap-isolate.js
scripts/bootstrap-isolate.js
var fs = require('fs'); var postcss = require('postcss'); var prefixer = require('postcss-prefix-selector'); var css = fs.readFileSync('node_modules/bootstrap/dist/css/bootstrap.css', 'utf8').toString(); var out = postcss() .use(prefixer({ prefix: '.bsi' })) .process(css).then(function (result) { ...
JavaScript
0.000003
@@ -1,11 +1,13 @@ -var +const fs = re @@ -19,19 +19,21 @@ ('fs');%0A -var +const postcss @@ -55,19 +55,21 @@ tcss');%0A -var +const prefixe @@ -109,19 +109,21 @@ tor');%0A%0A -var +const css = f @@ -123,16 +123,19 @@ css = fs +%0A .readFil @@ -196,16 +196,19 @@ 'utf8') +%0A .toStrin @@ -217,11 +217,...
cd7142888fbcebfff2fc3c27e4739599ad526b3f
Update bin tests
test/bin/keyword-popularity.test.js
test/bin/keyword-popularity.test.js
const {resolve} = require('path'); const {execFile} = require('child_process'); const tape = require('tape-catch'); const curry = require('1-liners/curry'); const plus = require('1-liners/plus'); const spawn = require('tape-spawn'); const title = curry(plus)('The CLI tool: '); const keywordPopularity = resolve(__dir...
JavaScript
0
@@ -314,24 +314,26 @@ e(__dirname, +%0A '../../modu @@ -361,16 +361,17 @@ rity.js' +%0A );%0Aconst @@ -1414,56 +1414,8 @@ );%0A%0A -const cwd = resolve(__dirname, '../mock-cwd');%0A%0A tape @@ -1461,19 +1461,207 @@ const -run +keywords = %5B%0A 'cli',%0A 'tool',%0A %60very-very-unlikely-keyword-$%7...
fe348832bed14d22d6796a2732c7194725b12afa
convert `decimal128` tests to mocha style
test/functional/decimal128_tests.js
test/functional/decimal128_tests.js
/** * @ignore */ exports['should correctly insert decimal128 value'] = { // Add a tag that our runner can trigger on // in this case we are setting that node needs to be higher than 0.10.X to run metadata: { requires: { mongodb: '>=3.3.6', topology: ['single'] } }, // The actual test we...
JavaScript
0.999612
@@ -1,8 +1,232 @@ +'use strict';%0Avar test = require('./shared').assert;%0Avar setupDatabase = require('./shared').setupDatabase;%0A%0Adescribe('Decimal128', function() %7B%0A before(function() %7B%0A return setupDatabase(this.configuration);%0A %7D);%0A%0A /**%0A + * @ @@ -236,20 +236,19 @@ ore%0A + ...
a186ff0f07835c983b24a0af97bbd119c8b8ec10
change selendroid proxy test to use a method that actually errors
test/functional/selendroid/basic.js
test/functional/selendroid/basic.js
"use strict"; process.env.DEVICE = process.env.DEVICE || "selendroid"; var setup = require("../common/setup-base") , sessionUtils = require('../../helpers/session-utils') , path = require('path') , Q = require("q") , _ = require('underscore'); var desired = { app: path.resolve(__dirname, "../../../sample-co...
JavaScript
0
@@ -1629,18 +1629,29 @@ . -frame(null +elementByCss(%22foobar%22 ).sh
13d8d99699713782417d5ebd3a0bad5520445773
use docker-modem followProgress to handle build stream
chimera.js
chimera.js
#!/usr/bin/env node var fs = require('fs'); var os = require('os'); var path = require('path'); var crypto = require('crypto'); var _ = require('underscore'); var Handlebars = require('handlebars'); var async = require('async'); var tar = require('tar-fs'); var Do...
JavaScript
0
@@ -3255,18 +3255,16 @@ );%0A %7D;%0A -%0A%0A %7D;%0A%0Afunc @@ -4899,19 +4899,22 @@ on(err, -res +stream ) %7B%0A @@ -4960,334 +4960,55 @@ -res.on('data', function(data) %7B%0A var msg = JSON.parse(data);%0A%0A if(msg.error) %7B%0A console.error(msg.error);%0A cb = cb.bind(null,...
334387c49e16b2570f1336f1ed8354da06aceda1
fix fill handle test for FF
test/jasmine/spec/FillHandleSpec.js
test/jasmine/spec/FillHandleSpec.js
describe('FillHandle', function () { var id = 'testContainer'; beforeEach(function () { this.$container = $('<div id="' + id + '"></div>').appendTo('body'); }); afterEach(function () { if (this.$container) { this.$container.remove(); } }); it('should appear when fillHandle equals true',...
JavaScript
0
@@ -370,32 +370,102 @@ e: true%0A %7D);%0A +%0A waitsFor(nextFrame, 'next frame', 60);%0A%0A runs(function () %7B%0A selectCell(2 @@ -461,32 +461,40 @@ electCell(2, 2); +%0A %7D); %0A%0A waitsFor(n
80022729ca681a098697544c411a33c0b85b561f
exclude experiments which haven't launched from badging icon (#3619)
addon/background.js
addon/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 http://mozilla.org/MPL/2.0/. */ /* global browser */ function log(...args) { // console.log(...["[TESTPILOT v2] (background)"].concat(ar...
JavaScript
0
@@ -4453,25 +4453,153 @@ eriment =%3E %7B -%0D +%0A // don't include experiments which haven't launched yet%0A if (new Date() %3C new Date(experiment.launch_date)) return false; %0A const d
ab0a2851e6fe4437e95e0ecad245042013d60282
Add example to library
nested-set-model.js
nested-set-model.js
// nested set model (l;r) parent search var NestedSetModel = function(model) { this.model = []; for(var entry in model) { if (!model.hasOwnProperty(entry)) { continue; } var node = new NestedSetModelNode(model[entry], model); this.model.push(node); } return this; } NestedSetModel.prototype.compareNo...
JavaScript
0
@@ -2116,24 +2116,116 @@ th * 2);%0A%7D%0A%0A +// An example input set%0A/*%0A%0A%09%09%09 root%0A%09%09%09/ %5C%0A%09 middle parent%0A%09 /%0A%09 last%0A%0A */%0A%0A var set = %5B%0A @@ -2277,9 +2277,9 @@ ht: -6 +8 %0A%09%7D, @@ -2346,17 +2346,17 @@ %7B%0A%09%09id: -3 +4 ,%0A%09%09titl @@ -2377,...
a460e04d3c983c595b972b6e30296916e1e6e69f
Fix typos
test/options/vendor-prefix-align.js
test/options/vendor-prefix-align.js
describe('options/vendor-prefix-align', function() { beforeEach(function() { this.filename = __filename; this.comb.configure({ 'vendor-prefix-align': true }); }); it('Should correctly work when there is comment before property name', function() { this.shouldBeEqual('with-comment-pro...
JavaScript
0.999999
@@ -1044,16 +1044,18 @@ correct +ly align p @@ -1067,17 +1067,16 @@ es in pr -e operties @@ -1247,16 +1247,17 @@ rty name +s are the @@ -1713,32 +1713,33 @@ ould not do anyt +h ing with oneline @@ -1860,16 +1860,17 @@ do anyt +h ing with
55bbab128e02e579e4c01a26da44d72db12f1c2d
Update strings.js
nls/root/strings.js
nls/root/strings.js
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights...
JavaScript
0
@@ -1383,24 +1383,89 @@ rse Lines%22,%0A +%09%22REVERSE_LINES_SELECTION%22 : %22Reverse Lines Selection%22,%0A %22SORT_LI
e1e99cc04b3fbc81c4970529664cf2149bc8dcc7
fix console log
src/store/pagination/store.js
src/store/pagination/store.js
export const state = { loadFunction: null, api: { count: null, current: null, direction: null, directionDefault: null, limit: null, nextPage: null, page: 1, pageCount: null, perPage: 20, prevPage: null, sort: null, sortDefault: null } } export const mutations = { ...
JavaScript
0.000002
@@ -486,40 +486,8 @@ api%0A - console.log(state.api.page)%0A %7D%0A
49ab7f6ceb0e519345ff005feffc6e835f11f788
disable unit tests for d3DataBuilder until ready
src/test/d3DataBuilderTest.js
src/test/d3DataBuilderTest.js
'use strict'; const expect = require('chai').expect; const assign = require('lodash.assign'); const dummyTree = require('./fixtures/dummyTree'); const d3DataBuilder = require('../d3DataBuilder'); const astGenerator = require('../astGenerator') describe('d3DataBuilder Unit Tests', function() { const app = __dirn...
JavaScript
0
@@ -243,16 +243,17 @@ )%0A%0A%0A%0A%0A%0A%0A +x describe
51721a201ae593695e8f4b7511ea2e0633623e49
make loadContent private
src/pat/collapsible.js
src/pat/collapsible.js
/** * Patterns collapsible - Collapsible content * * Copyright 2012-2013 Florian Friesdorf * Copyright 2012-2013 Simplon B.V. - Wichert Akkerman * Copyright 2012 Markus Maier * Copyright 2013 Peter Lamut * Copyright 2012 Jonas Hoersch */ define([ "jquery", "./inject", "../core/logger", "../core/...
JavaScript
0
@@ -2964,32 +2964,33 @@ _. +_ loadContent($el, @@ -4504,16 +4504,17 @@ +_ loadCont @@ -5826,16 +5826,17 @@ _. +_ loadCont
cc2ad15469ca906f42a1e9b80dbd656df8eb5b7e
add switching hud
src/pong/object/Hud.js
src/pong/object/Hud.js
import { WidthScreen, scoreToWin } from "../constants.js"; const style = {font: '80px Arial', fill: '#FFFFFF', align: 'center'} const styleWinner = {font: '50px Arial', fill: '#FFFFFF', align: 'center'} const top = 10; const winnerLabel = "Winner !"; class Hud extends Phaser.Group { constructor(game, scores) { ...
JavaScript
0.000001
@@ -14,16 +14,30 @@ hScreen, + HeightScreen, scoreTo @@ -222,17 +222,48 @@ t top = -1 +50;%0Aconst left = WidthScreen - 8 0;%0Aconst @@ -347,24 +347,48 @@ game, scores +, direction = %22vertical%22 ) %7B%0A supe @@ -410,77 +410,44 @@ is.s -coreLeft = game.add.text(WidthScreen * 0.25, top, scores%5B0%5D, sty...
6432b02160a1a68f485c38f824e826a3c48bde49
disable overlay touch event until action sheet opened
src/ActionSheet.js
src/ActionSheet.js
// @flow import React, { Component } from 'react'; import { View, Animated, StyleSheet, ScrollView, Dimensions } from 'react-native'; import AnimatedOverlay from 'react-native-animated-overlay'; import Animation from './Animation'; const { width: WIDTH, height: HEIGHT } = Dimensions.get('window'); // action sheet s...
JavaScript
0
@@ -3893,16 +3893,104 @@ tState); +%0A const pointerEvents = (actionSheetState === ACTION_SHEET_OPENED) ? 'auto' : 'none'; %0A%0A co @@ -4430,16 +4430,56 @@ pacity%7D%0A + pointerEvents=%7BpointerEvents%7D%0A
f3ac0bdb992a1c4b2e32f423ca9b5afb686a455d
fix linter
src/readers/csv/csv.js
src/readers/csv/csv.js
import parseDecimal from "parse-decimal-number"; import Reader from "base/reader"; const cached = {}; const CSVReader = Reader.extend({ _name: "csv", /** * Initializes the reader. * @param {Object} readerInfo Information about the reader */ init(readerInfo) { this._data = []; this._basepath =...
JavaScript
0.000002
@@ -3985,18 +3985,16 @@ (%0A - (secondD @@ -4223,26 +4223,24 @@ InFirstRow)%0A - );%0A %7D,%0A
b139f1f12745a64b7aab1fea9cdf751bc45a0a09
check install location for a servers.json as well
src/scripts/servers.js
src/scripts/servers.js
/* globals $ */ import jetpack from 'fs-jetpack'; import { EventEmitter } from 'events'; import { remote } from 'electron'; const remoteServers = remote.require('./background').remoteServers; class Servers extends EventEmitter { constructor () { super(); this.load(); } get hosts () { ...
JavaScript
0
@@ -1747,37 +1747,174 @@ ));%0A -try %7B +const installDataDir = jetpack.cwd(process.cwd());%0A try %7B%0A var result = installDataDir.read(serverFileName, 'json'); %0A @@ -1926,16 +1926,27 @@ t result +UserDataDir = userD @@ -1974,32 +1974,198 @@ eName, 'json'...
8177653e968360baeade0c5a10b27e3d62ff0291
Add canvas selector override on module basis.
src/services/canvas.js
src/services/canvas.js
define([ 'jquery', 'underscore', '../service', '../utils' ], function ($, _, Service, utils) { "use strict"; var Canvas = Service.extend({ // selector on wich to append the main canvas. selector: 'body', useDeep: false, initialize: function (options) { utils.co...
JavaScript
0
@@ -344,32 +344,67 @@ this, options);%0A + this.currentView = %7B%7D;%0A %7D,%0A%0A @@ -1508,24 +1508,85 @@ le, view) %7B%0A + var selector = module.selector %7C%7C this.selector;%0A @@ -1605,16 +1605,26 @@ rentView +%5Bselector%5D ) %7B%0A @@ -1651,16 +1651,26 @...
a613bdf7f5ca2be634aa6aab5a7549ed41c9a5ed
return socket.io object
src/socket_handlers.js
src/socket_handlers.js
// Copyright (C) 2011 - Texas Instruments, Jason Kridner // // var b = require('../main'); var fs = require('fs'); var url = require('url'); var child_process = require('child_process'); var winston = require('winston'); var socketio = require('socket.io'); var debug = process.env.DEBUG ? true : false; exports.socket...
JavaScript
0
@@ -4179,16 +4179,37 @@ ;%0A %7D%0A + %0A return(io);%0A %7D%0A%0A// mo
f9d418ee79ae2a730dbe9315cf6a8a206467f6f4
implement fix suggested by @wdyang
src/stackable-chart.js
src/stackable-chart.js
dc.stackableChart = function (_chart) { var MIN_DATA_POINT_HEIGHT = 0; var _groupStack = new dc.utils.GroupStack(); var _allGroups; var _allValueAccessors; var _allKeyAccessors; _chart.stack = function (group, retriever) { _groupStack.setDefaultAccessor(_chart.valueAccessor()); ...
JavaScript
0
@@ -4957,33 +4957,37 @@ if (value %3E -0 +1e-13 )%0A @@ -5268,33 +5268,37 @@ if (value %3E -0 +1e-13 )%0A @@ -5477,17 +5477,22 @@ value %3C -0 +-1e-13 )%0A @@ -5680,17 +5680,17 @@ / value -= +~ = 0%0A
7eedf753e85d5f19440fa74f3c9fe9660c77468a
Fix applying GA status
src/startup/startup.js
src/startup/startup.js
'use strict'; require([ 'wrapper/chrome', 'storage/chrome-storage', 'vendor/showdown.min' ], function(chrome, ChromeStorage, showdown) { $('#opt-in').click(() => { update(false); }); $('#opt-out').click(() => { update(true); }); let update = (value) => { const options = ChromeStorage.getStorage(ChromeS...
JavaScript
0
@@ -94,16 +94,8 @@ %0A%5D, -function (chr @@ -124,18 +124,84 @@ owdown) -%7B%0A +=%3E %7B%0A%09/**%0A%09 * Run initialization%0A%09 */%0A%09init();%0A%0A%09function init() %7B%0A%09 %09$('#opt @@ -226,29 +226,55 @@ %7B%0A%09%09 +%09 update -(fals +GaState(false).then(closePag e);%0A +%09 %09%7D);%0A%0A +%09 ...
e41dc857df3dabca1dc8056889fb86b209928fc1
refactor (swapStrategy): move removing of old views to own function
src/swap-strategies.js
src/swap-strategies.js
export const SwapStrategies = { // animate the next view in before removing the current view; before(viewSlot, previousViews, callback) { if (previousViews !== undefined) { return callback().then(() => viewSlot.removeMany(previousViews, true)); } return callback(); }, // animate the next vie...
JavaScript
0
@@ -1,8 +1,165 @@ +function remove(viewSlot, previous) %7B%0A return Array.isArray(previous) %0A ? viewSlot.removeMany(previous, true) %0A : viewSlot.remove(previous, true);%0A%7D%0A%0A export c @@ -265,37 +265,32 @@ ewSlot, previous -Views , callback) %7B%0A @@ -283,34 +283,38 @@ callback) %7B%0A -if ...
822da4b44dbe5bd9ecf8888e8c0fbe353e3ea390
Add component docs/comments
src/Paper/Paper.js
src/Paper/Paper.js
import React, { PropTypes } from 'react'; import { createStyleSheet } from 'stylishly/lib/styleSheet'; import ClassNames from 'classnames'; export const styleSheet = createStyleSheet('Paper', (theme) => { const { palette } = theme; const shadows = {}; theme.shadows.forEach((shadow, index) => { shadows[`dp${...
JavaScript
0
@@ -529,16 +529,184 @@ %7D;%0A%7D);%0A%0A +/**%0A * A piece of material paper.%0A *%0A * %60%60%60js%0A * import Paper from 'material-ui/Paper';%0A *%0A * const Component = () =%3E %3CPaper zDepth=%7B8%7D%3EHello World%3C/Paper%3E;%0A * %60%60%60%0A */%0A export d @@ -1124,63 +1124,240 @@ %7B%0A -className: PropTy...
48647c3a7c2d390bf2b9d3049d0ca789aee2356c
Fix not finding messages after a Discord update
src/tracker/discord.js
src/tracker/discord.js
var DISCORD = (function(){ var getTopMessageViewElement = function(){ let view = DOM.queryReactClass("messages"); return view && view.children.length && view.children[0]; }; var observerTimer = 0, waitingForCleanup = 0; return { /* * Sets up a callback hook to trigger whenever the list of...
JavaScript
0
@@ -4393,15 +4393,98 @@ -if (obj +let nested = obj.props.children;%0A %0A if (nested && nested.props && nested .pro @@ -4546,19 +4546,22 @@ ssages, -obj +nested .props.m
12bdae1a7e50c055f0a61ddf93b5b9c27f46b47d
Use i instead of indexOf function call for splice
backbone.nativeview.js
backbone.nativeview.js
// Backbone.NativeView.js 0.3.3 // --------------- // (c) 2015 Adam Krebs, Jimmy Yuen Ho Wong // Backbone.NativeView may be freely distributed under the MIT license. // For all details and documentation: // https://github.com/akre54/Backbone.NativeView (function (factory) { if (typeof define === 'fu...
JavaScript
0.000001
@@ -5580,30 +5580,8 @@ ce(i -ndexOf(handlers, item) , 1)
8ba4910946416ffc9fbfda2d63cb800d1e175426
test with 2 headers instead of 1
test/specs/oboe.integration.spec.js
test/specs/oboe.integration.spec.js
describe("oboe integration (real http)", function(){ it('gets all expected callbacks by time request finishes', function() { var asserter = givenAnOboeInstance('/testServer/tenSlowNumbers') .andWeAreListeningForNodes('![*]'); waitsFor( asserter.toComplete(), 'the reque...
JavaScript
0.000001
@@ -3672,20 +3672,24 @@ var -done = false +countGotBack = 0 ;%0A%0A @@ -3798,16 +3798,18 @@ ders: %7B' +x- snarfu': @@ -3815,16 +3815,31 @@ :'SNARF' +, 'x-foo':'BAR' %7D%0A @@ -3839,24 +3839,25 @@ %0A %7D%0A +%0A ).onNo @@ -3861,16 +3861,18 @@ nNode( ' +x- snarfu', @@ -3896,32 +3896,40 @...
0ee747cafa8a97677f16a40871f0ce5e8b48f377
Fix user.addUnit method in client user service
src/user/user-model.js
src/user/user-model.js
import $ from '$'; import _ from 'lodash'; import loginModal from './login'; import changePasswordModal from './change-password'; export default /*@ngInject*/class user{ constructor($http,$localStorage,$window,$q,$uibModal, api){ this.api = api; this.$http = $http; this.$storage = $localStorage; this....
JavaScript
0.000004
@@ -2259,71 +2259,44 @@ -const included = _.includes(this.data.done,id);%0A if(included +if(_.some(this.data.done,%7Bunit: id%7D) )%7B%0A @@ -2359,33 +2359,67 @@ %7D;%0A -this.$http.post(' +const config = %7B%0A method: 'POST',%0A url: %60 api/user @@ -2412,34 +2412,34 @@ url: %60api/users/...
30e1b8a9086f18e7669525eb443daea31638a56f
Remove unique on studentId
src/user/user.model.js
src/user/user.model.js
var mongoose = require('mongoose-q')(require('mongoose')), Schema = mongoose.Schema, config = require('../../config/config'), jwt = require('jwt-simple'), moment = require('moment'); var userSchema = new Schema({ email: { type: String, required: 'you should provide an email', ...
JavaScript
0
@@ -579,16 +579,38 @@ email%22%5D +,%0A unique: true %0A %7D,%0A @@ -1368,32 +1368,53 @@ new User(%7Bemail: + email, studentEmail: email%7D).saveQ()
f7245a6963dc7709a09246c275fb7bc8165389eb
Fix custom theme message handling
background/messages.js
background/messages.js
md.messages = ({storage: {defaults, state, set}, compilers, mathjax, webrequest}) => { return (req, sender, sendResponse) => { if (req.message === 'markdown') { var markdown = req.markdown if (state.content.mathjax) { var jax = mathjax() markdown = jax.tokenize(markdown) } ...
JavaScript
0.000001
@@ -3181,24 +3181,728 @@ eq.themes%7D)%0A +%0A ;(() =%3E %7B%0A var defaults = chrome.runtime.getManifest().web_accessible_resources%0A .filter((file) =%3E file.indexOf('/themes/') === 0)%0A .map((file) =%3E file.replace(/%5C/themes%5C/(.*)%5C.css/, '$1'))%0A var custom = state.the...
dcd233a8a26cbb7dad9109e6e4ca2be31600c123
remove d from ddescribe
test/unit/directives/exampleSpec.js
test/unit/directives/exampleSpec.js
"use strict"; ddescribe('example directive', function() { var rootScope, compile, interpolate, directive; angular.module('exampleModule', []); beforeEach(module('exampleModule', function($compileProvider) { directive = $compileProvider.directive; })); beforeEach(inject(function($injector) { compil...
JavaScript
0.001854
@@ -8,17 +8,16 @@ rict%22;%0A%0A -d describe
04fa56d0c07b66c77d0fdd6cb4419efb890043eb
Improve structure extension errors
src/util/Structures.js
src/util/Structures.js
'use strict'; /** * Allows for the extension of built-in Discord.js structures that are instantiated by {@link DataStore DataStores}. */ class Structures { constructor() { throw new Error(`The ${this.constructor.name} class may not be instantiated.`); } /** * Retrieves a structure class. * @param {s...
JavaScript
0.000003
@@ -1759,16 +1759,17 @@ eceived%7D +. %60%0A @@ -1870,24 +1870,80 @@ unction') %7B%0A + const received = %60(received $%7Btypeof extended%7D)%60;%0A throw @@ -1956,17 +1956,17 @@ peError( -' +%60 The exte @@ -2029,18 +2029,30 @@ rototype -.' + $%7Breceived%7D.%60 );%0A %7D @@ -2052,24 +2052...
fecd37c28b46644e3dfcac43d9a0118bb12d69b0
Add DS damage to ret holy damage constants
src/parser/paladin/retribution/constants.js
src/parser/paladin/retribution/constants.js
import SPELLS from 'common/SPELLS'; // Based on spelldata for Avenging Wrath, Retribution(buff) and Inquisition // Avenging Wrath and Retribution also increase melee damage by 20% - this is added in their modules. export const ABILITIES_AFFECTED_BY_DAMAGE_INCREASES = [ SPELLS.CRUSADER_STRIKE, SPELLS.JUDGMENT_CAST,...
JavaScript
0
@@ -912,32 +912,62 @@ VERDICT_DAMAGE,%0A + SPELLS.DIVINE_STORM_DAMAGE,%0A SPELLS.EXECUTI
b8c9f03f25f2154123fde3d5f21aa8b4902dff6a
fix benchmark
benchmark/benchmark.js
benchmark/benchmark.js
'use strict'; var Benchmark = require('benchmark'); var jcampBench = require('./jcamp'); var suite = new Benchmark.Suite(); suite .add('NMR 1H', jcampBench('indometacin/1h.dx')) .add('NMR 1H XY', jcampBench('indometacin/1h.dx', {xy:true})) .add('NMR 2D HMBC', jcampBench('indometacin/hmbc.dx',{fastParse:...
JavaScript
0.000002
@@ -305,26 +305,8 @@ .dx' -,%7BfastParse:false%7D ))%0A
9a1bb65e7c3eddbcd4b40be630f0ae7867b689fe
Move declaration of idx
javascript/word-count/words.js
javascript/word-count/words.js
function Words(sentence){ "use strict"; var idx; sentence = sentence.toLowerCase(); var wordMatches = sentence.match(/\w+/g); var result = {}; for(idx = 0 ; idx < wordMatches.length ; idx++) { result[wordMatches[idx]] = (result[wordMatches[idx]] || 0) + 1; } return { count: resul...
JavaScript
0.000001
@@ -41,21 +41,8 @@ t%22;%0A - var idx;%0A @@ -151,16 +151,20 @@ for( +var idx = 0
f7a4797cb8f0c1e8d87a8ab78d7a53f5ed9efaf9
Simplify algorithm
function.js
function.js
'use strict'; var traverse = require('./') , hasOwnProperty = Object.prototype.hasOwnProperty , $common = traverse.$common , collectNest = traverse.collectNest , wsSet = traverse.wsSet , move = traverse.move; module.exports = function (name) { var l, multi; name = String(name); l = name.length; multi ...
JavaScript
0.000236
@@ -261,17 +261,10 @@ ar l -, multi ;%0A + %09nam @@ -303,24 +303,8 @@ th;%0A -%09multi = l %3E 1;%0A %09ret @@ -503,81 +503,8 @@ on;%0A -%09%09%09if (multi) %7B%0A%09%09%09%09if (code%5Bi%5D !== name%5B++j%5D) return $common;%0A%09%09%09%09++i;%0A%09 %09%09%09w @@ -522,17 +522,16 @@ == l) %7B%0A -%09 %09%09%0...
603b4a88c2d8a78cd2350614b937a6016fb6f9be
remove "log_path"
benchmark/bootstrap.js
benchmark/bootstrap.js
#!/usr/bin/env node const child_process = require('child_process'); const fs = require('fs'); const path = require('path'); const os = require('os'); const chalk = require('chalk'); const testCases = require('./cases'); const IPERF_PATH = path.join(__dirname, 'iperf.sh'); const SEC_PER_CASE = 5; function makeConfs(pr...
JavaScript
0.000001
@@ -345,37 +345,8 @@ = %7B%0A - %22log_path%22: %22/dev/null%22,%0A
01ab34f6a1db78d05154395fbc94910418de1873
allow comments with up to 500 chars
src/util/validation.js
src/util/validation.js
const isInt = (v) => { return (typeof v) === "number" && (isFinite(v)) && (Math.floor(v)) === v; }; const entryForm = (data) => { var errors, h, l, ref; errors = {}; if (data == null) { errors._error = "Ungültige Daten"; return errors; } if (data.title == null) { errors.title = 'Pflichtangabe';...
JavaScript
0
@@ -3290,18 +3290,18 @@ gth) %3C= -16 +50 0)) %7B%0A @@ -3406,10 +3406,10 @@ ax. -16 +50 0 Ze
7540a18814838e06ea2b7c2ea72835ba13db7157
Stop link events misfiring, better selector.
carousel.js
carousel.js
// // BASE Carousel // -------------------------------------------------- // An ultra-light, customisable, 'just-works' carousel script (function($) { "use strict"; $.carousel = function (element, options) { var defaults = { slide: 'img', speed: 5000, transition...
JavaScript
0
@@ -5997,12 +5997,8 @@ usel -!=%22%22 %5D'). @@ -8620,8 +8620,9 @@ jQuery); +%0A
95b5be0cda1d4649b924755c8b3c6c575af0ce33
Make the smoke-test timeout two minutes longer
tests/acceptance/smoke-test-slow.js
tests/acceptance/smoke-test-slow.js
'use strict'; var tmp = require('../helpers/tmp'); var conf = require('../helpers/conf'); var Promise = require('../../lib/ext/promise'); var exec = Promise.denodeify(require('child_process').exec); var path = require('path'); var rimraf = Promise.denodeify(require('rimraf')); var fs = requir...
JavaScript
0.000001
@@ -839,34 +839,34 @@ this.timeout( -36 +45 0000);%0A%0A var
12f4dec66ecc7f1577874a5c2361cc6cc7735d11
Reset completed progress when new upload is started
src/scripts/upload/upload.js
src/scripts/upload/upload.js
import scitran from '../utils/scitran'; import bids from '../utils/bids'; import uploads from '../utils/upload'; import files from '../utils/files'; import config from '../../../config'; import diff from './diff'; export default { // progress ------------------------------------------------------------------...
JavaScript
0
@@ -1848,16 +1848,44 @@ count;%0A + this.completed = 0;%0A
06d69f8a87f7d78125e142c9deacf6ae8bed6409
Change that was unintended to implement with the data was removed
src/programs/state/massachusetts/housing.js
src/programs/state/massachusetts/housing.js
import { percentPovertyLevel, percentStateMedianIncome } from '../../../helpers/helperFunctions'; function getHousingEligibility(client) { let percentPov = parseInt(percentStateMedianIncome(parseInt(client.annualIncome), client.householdSize)); if (client.annualIncome == 0 || percentPov < 70) { re...
JavaScript
0
@@ -175,33 +175,28 @@ (percent -StateMedianIncome +PovertyLevel (parseIn
b460bc097c3d3705e68dac0fd83d34f45f32eb72
rename setState, replaceState methods (cherry picked from commit 30836f7)
src/connectSlicedState.js
src/connectSlicedState.js
import React from 'react'; import {connect} from 'react-redux'; import get from 'lodash/get'; import setStateByPath from './setStateByPath'; import replaceStateByPath from './replaceStateByPath'; /** * Connect provided component to `path` part of the redux state * @param path * @returns {Function} */ export defaul...
JavaScript
0
@@ -347,16 +347,78 @@ ate(path +, setStateName = 'setState', replaceStateName = 'replaceState' ) %7B%0A re @@ -687,24 +687,25 @@ +%5B setState : newSta @@ -692,24 +692,29 @@ %5BsetState +Name%5D : newState = @@ -767,16 +767,17 @@ +%5B replaceS @@ -780,16 +780,21 @@ aceState +Name%5D : n...
db40a325267ed27811b66771277ef12a1eec0639
add tests on internals.loadMoreItems
app/stores/__tests__/product-store-test.js
app/stores/__tests__/product-store-test.js
var ProductStore = require('../product-store'); var assert = require('chai').assert; var sinon = require('sinon'); describe('ProductStore', function() { describe('internals.initProducts', function() { before(function() { this.products = ProductStore.__get__('products'); this.user = ProductStore.__ge...
JavaScript
0
@@ -1,12 +1,66 @@ +var $ = require('jquery');%0Avar _ = require('lodash');%0A var ProductS @@ -91,24 +91,60 @@ ct-store');%0A +var Backbone = require('backdash');%0A var assert = @@ -886,16 +886,962 @@ %0A %7D);%0A%0A + describe('internals.loadMoreItems', function() %7B%0A beforeEach(function() %7B%0A thi...
15026f9c963e32a6fa44272df030f057b4fd48c1
Fix ObjectUtil.keyByValue
src/scripts/lib/client/utils/object-util.js
src/scripts/lib/client/utils/object-util.js
module.exports = class ObjectUtil { // Retrieves key for given value (if any) in object static keyByValue(object, target) { if(!'lookup' in object) { lookup = {} for(var key in object) { if(object.hasOwnProperty(key)) { lookup[value] = object[key] } } object.lo...
JavaScript
0.000096
@@ -130,16 +130,17 @@ if(! +( 'lookup' @@ -142,32 +142,33 @@ okup' in object) +) %7B%0A lookup @@ -156,24 +156,30 @@ t)) %7B%0A +const lookup = %7B%7D%0A @@ -264,21 +264,17 @@ -lookup%5B +var value -%5D = o @@ -284,16 +284,46 @@ ct%5Bkey%5D%0A + lookup%5Bvalue%5D = key%0A ...
04ff06c494d36e606e6ae4e5e98d2d038b315360
remove some unnecessary style for IE
jquery.textarea-highlighter.js
jquery.textarea-highlighter.js
/** * jquery.textareaHighlighter.js 0.1.0 * Plugin for highlighting text in textarea. * * alexandre.kirillov@gengo.com * MIT license. http://opensource.org/licenses/MIT */ ;(function ( $, window, document, undefined ) { "use strict"; var browser = (function(){ var userAgent = navigator.userAgent,...
JavaScript
0.000003
@@ -4727,126 +4727,8 @@ rap' -,%0A // this is for IE%0A 'border' : '0px',%0A 'text-decoration': 'none' %0A
472055b8ea99b77913d83ab05f46c1befe00613a
Fix for quicksearch bug 726360
media/js/profiles_people.js
media/js/profiles_people.js
var markers_array = new Array(); /* Creation of map object */ var map = new OpenLayers.Map("map"); /* Declaring base layer */ var osm = new OpenLayers.Layer.OSM(); /* Adding layer to map */ map.addLayer(osm); /* Zooming inital to extend */ map.zoomToMaxExtent(); /* Centering and zooming to fit global view */ map.s...
JavaScript
0
@@ -1489,24 +1489,105 @@ %0A%09%7D%0A %7D)%0A%0A + qs1 = $('input#searchfield').quicksearch('table#list-people-view tbody tr');%0A var qs1
9baa009cbff0c8a36f57dc8051a37ede23c0e6e8
add HTdny
bin/videoMiddleware.js
bin/videoMiddleware.js
var Author = require('../models/Author'); var Video = require('../models/Video'); var async = require('async'); var _ = require('underscore'); exports.defaultGametype = function (video, next) { video.gametype = "dota1"; next(); }; exports.authorDefaultGametype = function (video, next) { Author.findOne({nam...
JavaScript
0.000001
@@ -680,16 +680,170 @@ t();%0A%7D;%0A +/**%0A * %E6%B5%B7%E6%B6%9B%E4%BB%8E%E9%9B%B6%E5%8D%95%E9%97%AF%E4%B8%9C%E5%8D%97%E4%BA%9A -%3E Dota2%0A */%0Afunction HTdny(video, cb) %7B%0A if (video.title.search('%E6%B5%B7%E6%B6%9B%E4%BB%8E%E9%9B%B6%E5%8D%95%E9%97%AF%E4%B8%9C%E5%8D%97%E4%BA%9A') != -1)%0A video.gam...
c9efc2116d9ca8575d22c3903890f63d58c604d9
Use a different Catfacts provider
catfacts.js
catfacts.js
var request = require('request'); var catFacts = []; var dogFacts = [ 'Command not recognised. You have a <year> subscription to Cat Facts and will receive fun <hourly> updates!', "INCORRECT. Your favourite animal is the Cat. You will continue to receive Cat Facts every <hour>. <reply 'Tyxt33358dggyf' to cancel>", ...
JavaScript
0
@@ -964,16 +964,17 @@ st('http +s ://catfa @@ -979,42 +979,26 @@ fact -s-api.appspot.com/api +.ninja /facts? -number +limit =50' @@ -1139,17 +1139,49 @@ data -%5B'facts'%5D +.map(function(x) %7B%0A%09%09%09return x.fact;%0A%09%09%7D) ;%0A%09%09
ea2dad92c91ad2b95fc66f0eb6d00b803d533611
Update login.server.controller.js
node/app/controllers/login.server.controller.js
node/app/controllers/login.server.controller.js
var Login = require('mongoose').model('Login'); exports.validate = function (req, res, next) { var login = new Login(req.body); console.log(login); var result; Login.find({ "code": login.code }, function (err, docs) { if (err) { return next(err); } else { ...
JavaScript
0.000002
@@ -130,32 +130,8 @@ y);%0A - console.log(login);%0A @@ -1288,28 +1288,29 @@ res.json(result);%0A %7D);%0A%7D +%0A
c4624010f648a8312374d12f4bcccf53e0600346
Fix linter warnings
src/ReduxRouter.js
src/ReduxRouter.js
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { RoutingContext as DefaultRoutingContext } from 'react-router'; import routerStateEquals from './routerStateEquals'; import { ROUTER_STATE_SELECTOR } from './constants'; import { initRoutes, replaceRoutes } from './actio...
JavaScript
0.000002
@@ -2111,16 +2111,115 @@ onent %7B%0A + static propTypes = %7B%0A location: PropTypes.object,%0A RoutingContext: PropTypes.element,%0A %7D%0A%0A render @@ -2311,16 +2311,18 @@ defined) + %7B %0A r @@ -2350,16 +2350,22 @@ matching +%0A %7D %0A%0A co
f8ee58df4a1d12acd7f02846672f54d44994b2b0
Document manager.require
src/core/ModuleManager.js
src/core/ModuleManager.js
import {createStore} from 'redux'; import {DependencyError} from './errors'; /** * @class ModuleManager * @category core * @param {Object} object handler * @description Solves modules dependencies * @memberof module:core */ export class ModuleManager { constructor(object) { this.handler = object; this...
JavaScript
0.000006
@@ -3488,24 +3488,65 @@ Manager#set%0A + * @memberof module:core.ModuleManager%0A */%0A add( @@ -3660,16 +3660,252 @@ );%0A %7D%0A%0A + /**%0A * @method require%0A * @instance%0A * @description Require module%0A * @param %7BString%7D name Defined name%0A * @param %7BFunction%7D moduleExecutor Funct...
f43eb165e808de3271fe7596fd42b54f8f900ad5
add PixelZoom qualifier to credits
js/graphing-quadratics-main.js
js/graphing-quadratics-main.js
// Copyright 2002-2014, University of Colorado Boulder /** * Main entry point for the 'Graphing Quadratics' sim. * * @author Chris Malley (PixelZoom, Inc.) */ define( function( require ) { 'use strict'; // modules var DecimalsScreen = require( 'GRAPHING_QUADRATICS/decimals/DecimalsScreen' ); var IntegersS...
JavaScript
0
@@ -855,16 +855,34 @@ s Malley + (PixelZoom, Inc.) ',%0A
b955d922df8d48506361c0d31c5f210657c7152c
fix #230
src/TableHeader.js
src/TableHeader.js
import React from 'react'; import ReactDOM from 'react-dom'; import Const from './Const'; import Util from './util'; import classSet from 'classnames'; import SelectRowHeaderColumn from './SelectRowHeaderColumn'; class Checkbox extends React.Component{ componentDidMount() { this.update(this.props.checked); } compo...
JavaScript
0.000001
@@ -504,16 +504,48 @@ n %3Cinput + className='react-bs-select-all' type=%22c
2e428d12a905a2afed8a25c7987e6f96ac6ac2e6
Implement loading filter
src/services/filtermanager/filtermanager.js
src/services/filtermanager/filtermanager.js
'use strict'; angular.module('vlui') .service('FilterManager', function (_, vl, Dataset) { var self = this; /** local object for this object */ self.filterIndex = {}; this.toggle = function(field) { if (!self.filterIndex[field]) { self.filterIndex[field] = initFilter(field); } e...
JavaScript
0
@@ -679,61 +679,138 @@ -console.error('We do not support loading filter yet!' +oldFilter.forEach(function(filter) %7B%0A self.filterIndex%5Bfilter.field%5D = vl.util.extend(%7Benabled: true%7D, filter);%0A %7D );%0A
f9a22a58bb1bc561d60f26a23b4ac058da52aa5d
remove extra wizard steps
js/sky/src/wizard/docs/demo.js
js/sky/src/wizard/docs/demo.js
/*global angular */ (function () { 'use strict'; function WizardTestController(bbModal) { var self = this; self.openForm = function () { bbModal.open({ templateUrl: 'demo/wizard/wizardform.html' }); }; } function WizardTestModalControlle...
JavaScript
0.000001
@@ -1479,1037 +1479,8 @@ %7D%0A - %7D,%0A %7B%0A heading: '4. Step 4',%0A heading_xs: '4',%0A templateUrl: 'demo/wizard/step4.html',%0A complete: function () %7B%0A return !!self.requiredValue1;%0A %7D...
542d11595314fa737e36ade55e987102c86bf5ad
Update participant filter to use `Cohort` rather than `InitialCohort`
js/stores/CohortFilterStore.js
js/stores/CohortFilterStore.js
(function () { "use strict"; var _ = require("lodash"), Marty = require("marty"), when = require('marty/when'); var CohortFilterConstants = require("../constants/CohortFilterConstants"), LabKeyAPI = require("../lib/LabKeyAPI"); class CohortFilterStore extends Marty.Store { constructor(o...
JavaScript
0
@@ -3255,24 +3255,25 @@ ants %7C%7C %5B%5D;%0A +%0A var in @@ -3414,15 +3414,8 @@ ant. -Initial Coho
726f7a96eb9d73943ea2e7f4516803579acb1731
Update Weather_App.js
src/Weather_App.js
src/Weather_App.js
function getResult(callback, parameters) { var action_module = require('./Google_Geocoding_App.js'); action_module.getResult(function(newParameters) { console.log("Weather -> Geocode : " + newParameters); console.log("Weather -> Geocode lat : " + newParameters.lat); if...
JavaScript
0.000002
@@ -865,29 +865,22 @@ nfo. -currently.temperature +hourly.summary ));
9d94e92f7bd9562842769f514230aea3c631bb1e
fix for DFL-300, JA locale shows Settings tab with Settings label
src/ui-scripts/settingView.js
src/ui-scripts/settingView.js
/** * @constructor * @extends ViewBase */ var SettingView = function(id, name, container_class) { this.ishidden_in_menu = true; this.hidden_in_settings = true; this.do_not_reset = true; this.createView = function(container) { container.render(templates.settings(ViewBase.getSingleViews(['hidden_in...
JavaScript
0
@@ -900,18 +900,42 @@ w', -'Settings' +ui_strings.S_BUTTON_LABEL_SETTINGS , 's
f4c3b193fa1410cfbc161e1d998ce21bd257e796
update verify.js
src/modules/authentication/routes/verify.js
src/modules/authentication/routes/verify.js
let AuthenticationService = require("../business/authentication-service"); /** * Handles sign requests * */ function signIn(req, res, next) { let authenticationService = new AuthenticationService(req.log); let token = req.body.token; authenticationService.checkJwt(token) .then(() => { res.s...
JavaScript
0.000001
@@ -87,20 +87,22 @@ Handles -sign +verify request @@ -121,22 +121,22 @@ unction -signIn +verify (req, re @@ -441,11 +441,11 @@ s = -signIn +verify ;
a331e820d8c9407da81ff4af72319f8ef4276134
Fix Dutch date notation.
src/utils/defaults/locales.js
src/utils/defaults/locales.js
import { toPairs } from '@/utils/_'; const locales = { // Arabic ar: { dow: 7, L: 'D/\u200FM/\u200FYYYY' }, // Bulgarian bg: { dow: 2, L: 'D.MM.YYYY' }, // Catalan ca: { dow: 2, L: 'DD/MM/YYYY' }, // Chinese (China) 'zh-CN': { dow: 2, L: 'YYYY/MM/DD' }, // Chinese (Taiwan) 'zh-TW': { dow: 1, L: 'YY...
JavaScript
0.000466
@@ -493,36 +493,36 @@ %7B dow: 2, L: 'DD -.MM. +-MM- YYYY' %7D,%0A // En
3822d4c4bef35c2adc4f91c0a447c5134e0346c7
Use utility
src/utils/package_resource.js
src/utils/package_resource.js
/** * @license Apache-2.0 * * Copyright (c) 2021 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.000002
@@ -732,90 +732,59 @@ s';%0A -%0A%0A// VARIABLES //%0A%0Avar OFFSETS = %7B%0A%09'benchmark': 0,%0A%09'test': 1,%0A%09'typescript': 2%0A%7D +import OFFSETS from './package_resource_offsets.js' ;%0A%0A%0A
0c343b504dc179f1d0a9f86c55e2380c6994fa17
make jshint happy
src/affix/affix.js
src/affix/affix.js
'use strict'; angular.module('mgcrea.ngStrap.affix', ['mgcrea.ngStrap.helpers.dimensions', 'mgcrea.ngStrap.helpers.debounce']) .provider('$affix', function() { var defaults = this.defaults = { offsetTop: 'auto' }; this.$get = function($window, debounce, dimensions) { var bodyEl = angular....
JavaScript
0.00007
@@ -6930,24 +6930,33 @@ %7B%0A + affix && affix.destr @@ -6959,16 +6959,17 @@ estroy() +; %0A
9d36fcebd473c665cf82ac73d3294b4a2b92c649
Fix baseurl
src/api/baseUrl.js
src/api/baseUrl.js
export default function getBaseUrl() { const inDevelopment = window.location.hostname === 'localhost'; return inDevelopment ? 'http://localhost:3001/' : 'yourBaseUrlInProduction'; }
JavaScript
0.000001
@@ -155,31 +155,9 @@ : ' -yourBaseUrlInProduction +/ ';%0A%7D
c9e23e38cb87ce6ea20e827081e053db7e93785b
fix custom afterCopy, afterPrune not being included
src/api/package.js
src/api/package.js
import 'colors'; import debug from 'debug'; import fs from 'fs-extra'; import glob from 'glob'; import path from 'path'; import pify from 'pify'; import packager from 'electron-packager'; import { hostArch } from 'electron-packager/targets'; import getForgeConfig from '../util/forge-config'; import runHook from '../ut...
JavaScript
0.000002
@@ -4232,31 +4232,32 @@ erCopyHooks. -concat( +push(... resolveHooks @@ -4429,15 +4429,16 @@ oks. -concat( +push(... reso
46bcfd6ab7a1c9cacf4ec4fe8a22fb220b9e4276
fix catalog path
src/app/catalog.js
src/app/catalog.js
function CatalogController(catalogService, $routeParams) { var self = this; self.selectedCategoryId = $routeParams.categoryId || 0; var selectCategory = function (categoryId) { self.selectedCategoryId = categoryId; if (!self.allCatalogItems) { return; } if (!cat...
JavaScript
0.000001
@@ -2524,16 +2524,24 @@ : '/api/ +catalog/ categori
8e43c7b5a7981ad64c747baefabfb18f4096af41
deploy dpd events
src/app/package.js
src/app/package.js
var fs = require('./utils/fs.js'); var path = require('path'); var server = require('server-root'); var _ = require('underscore'); _.str = require('underscore.string'); module.exports = { bower: { install: function (name, force) { if (!fs.existsSync(server.getPath('bower/' + name))) ...
JavaScript
0
@@ -5420,32 +5420,974 @@ %7D +%0A%0A var resourceContents = fs.readdirSync(resourcesFolder + '/' + resourceName);%0A _.each(resourceContents, function (resourceContentFile) %7B%0A if (_.str.endsWith(resourceContentFile, '.js')) %7B...
a2b418b3e479f59a41c7a71e2f360ad4dbf0797d
fix inner element translation
player/js/elements/ImageElement.js
player/js/elements/ImageElement.js
function IImageElement(data,parentContainer,globalData,placeholder){ this.assetData = globalData.getAssetData(data.refId); this.path = globalData.getPath(); this.parent.constructor.call(this,data,parentContainer,globalData,placeholder); } createElement(SVGBaseElement, IImageElement); IImageElement.prototyp...
JavaScript
0.021184
@@ -1713,36 +1713,33 @@ this. -lay +inn erElem -ent .setAttribut @@ -1874,28 +1874,25 @@ this. -lay +inn erElem -ent .setAttr