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 |
|---|---|---|---|---|---|---|---|
cb7a5d595b14d47349030ed29725ee959cd0f99b | Fix syntax error in blueprint's example code | blueprints/ember-cli-mirage/files/__root__/mirage/config.js | blueprints/ember-cli-mirage/files/__root__/mirage/config.js | export default function() {
// These comments are here to help you get started. Feel free to delete them.
/*
Config (with defaults).
Note: these only affect routes defined *after* them!
*/
// this.urlPrefix = ''; // make this `http://localhost:8080`, for example, if your API is on a different serv... | JavaScript | 0.00004 | @@ -1950,17 +1950,16 @@
tactId%7D)
-;
%0A %7D
|
ae747250105b84d8edd97ec4ecefcebbd6ddaf17 | 修复database,js读取不到平台信息的错误 | install/public/static/js/install/database.js | install/public/static/js/install/database.js | define(["jquery", 'jquery-ui', "text!templates/database.html"], function($, ui, tpl) {
var Database = function() {
this.isShow = false;
this.$container = $('#step-database');
this.platform = $('#step-environment').data('platform') || 'default';
this.init();
... | JavaScript | 0 | @@ -204,90 +204,8 @@
');%0A
- this.platform = $('#step-environment').data('platform') %7C%7C 'default';%0A
@@ -1861,32 +1861,101 @@
console.hide();%0A
+ this.platform = $('#step-environment').data('platform');%0A
if (
|
9cf5e3ab11cff21a8ebf996eb08f1f70012adb72 | remove untranslated langs | packages/docs/src/i18n/locales.js | packages/docs/src/i18n/locales.js | module.exports = [
{
title: 'English',
locale: 'en',
},
{
title: 'Deutsch',
locale: 'de-DE',
alternate: 'de',
},
{
title: 'Français',
locale: 'fr-FR',
alternate: 'fr',
},
{
title: 'Русский',
locale: 'ru-RU',
alternate: 'ru',
},
{
title: '简体中文',
local... | JavaScript | 0.000003 | @@ -69,441 +69,8 @@
%7B%0A
- title: 'Deutsch',%0A locale: 'de-DE',%0A alternate: 'de',%0A %7D,%0A %7B%0A title: 'Fran%C3%A7ais',%0A locale: 'fr-FR',%0A alternate: 'fr',%0A %7D,%0A %7B%0A title: '%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9',%0A locale: 'ru-RU',%0A alternate: 'ru',%0A %7... |
cb895718465d42ca223be7b513fc178757d92319 | add option to use dynamic origin on fetch requests | packages/dynamic-import/client.js | packages/dynamic-import/client.js | var Module = module.constructor;
var cache = require("./cache.js");
var meteorInstall = require("meteor/modules").meteorInstall;
// Call module.dynamicImport(id) to fetch a module and any/all of its
// dependencies that have not already been fetched, and evaluate them as
// soon as they arrive. This runtime API makes ... | JavaScript | 0 | @@ -3378,19 +3378,21 @@
ey;%0A%7D;%0A%0A
-var
+const
fetchUR
@@ -3429,16 +3429,125 @@
chURL;%0A%0A
+function inIframe() %7B%0A try %7B%0A return window.self !== window.top;%0A %7D catch (e) %7B%0A return true;%0A %7D%0A%7D%0A%0A
function
@@ -4127,21 +4127,411 @@
essary.%0A
+%0A
-var
+let url = fetchU... |
b61fa33416d9533fbbbee1a7b927e1d422b3e692 | Fix "onChange" is read-only error | src/js/components/ui/DateInput.js | src/js/components/ui/DateInput.js | import React, { PropTypes, Component } from 'react';
export default class DateInput extends Component {
static propTypes = {
label : PropTypes.string.isRequired,
placeholder : PropTypes.string.isRequired,
defaultValue: PropTypes.string
};
constructor(props) {
super(... | JavaScript | 0.000001 | @@ -264,16 +264,54 @@
s.string
+,%0A onChange : PropTypes.func
%0A %7D;%0A
@@ -1939,54 +1939,26 @@
-const %7BonChange%7D = this.props;%0A typeof
+typeof this.props.
onCh
@@ -1964,16 +1964,17 @@
hange ==
+=
'functi
@@ -1997,16 +1997,27 @@
Timeout(
+this.props.
onChange
|
cb98f4ce831f490e5e85f1cb12b46ab9cb28c7f4 | Fix conflict | src/js/controllers/paperWallet.js | src/js/controllers/paperWallet.js | angular.module('copayApp.controllers').controller('paperWalletController',
function($scope, $http, $timeout, $rootScope, profileService, go, addressService, isCordova, gettext, bitcore) {
self = this;
var fc = profileService.focusedClient;
var rawTx;
if (isCordova) self.message = "Decrypting a paper ... | JavaScript | 0.00644 | @@ -107,20 +107,8 @@
out,
- $rootScope,
pro
@@ -154,17 +154,8 @@
ova,
- gettext,
bit
@@ -241,17 +241,17 @@
Tx;%0A
-%0A
-if (
+self.
isCo
@@ -259,137 +259,21 @@
dova
-) self.message = %22Decrypting a paper wallet could take around 5 minutes on this device. please be patient and keep the app open.%22
+ = i... |
209d2dca2d0c56da471cd9cd538a930034006c7a | Refactor onChange callback to a prototype method | src/js/settings/AutoWootToggle.js | src/js/settings/AutoWootToggle.js | /**
* Stores the state of the Auto-Woot setting
* @module settings/AutoWootToggle
*/
/**
* AutoWoot setting constructor
* @constructor
* @param {object} toggler - The Toggle API used to keep track of state.
*/
function AutoWoot( toggler, userId ){
this.toggler = toggler || {};
this.userId = userId;
this.loca... | JavaScript | 0 | @@ -363,193 +363,40 @@
nge(
-function( isOn )%7B%0A%09%09if( isOn )%7B%0A%09%09%09startWooting();%0A%09%09%09API.on( API.DJ_ADVANCE,
this.s
-tar
+e
tWoot
-ing.bind(this) );%0A%09%09%7Delse%7B%0A%09%09%09API.off( API.DJ_ADVANCE, this.startWooting
+State
.bind(
+
this
-)
)
-;%0A%09%09%7D%0A%09%7D
+
);%0A%0A
@@... |
f8b51149c33cc2a78a5889dcea7734c50fb16ae4 | Simplify method | hypem-resolver.js | hypem-resolver.js | // Copyright 2015 Fabian Dietenberger
"use strict";
var request = require('request-promise'),
url = require('url'),
_ = require('lodash');
var hypemResolver = {},
timeout = 5000,
cookie = "AUTH=03%3A406b2fe38a1ab80a2953869a475ff110%3A1412624464%3A1469266248%3A01-DE";
hypemResolver.urlToId = functio... | JavaScript | 0.000016 | @@ -2190,118 +2190,27 @@
-var hypemUrl = %22http://hypem.com/serve/source/%22 + hypemId + %22/%22 + key;%0A getMP3(hypemUrl
+getMP3(hypemId, key
, ca
@@ -2664,20 +2664,28 @@
P3(hypem
-Link
+Id, hypemKey
, callba
@@ -2750,17 +2750,67 @@
rl:
-hypemLink
+%22http://hypem.com/serve/source/%... |
4982141f985aecdf63cd6b51afaf1920c7fbaa04 | Remove icon from VoicingHighlight, see https://github.com/phetsims/joist/issues/700 | js/accessibility/speaker/VoicingHighlight.js | js/accessibility/speaker/VoicingHighlight.js | // Copyright 2020, University of Colorado Boulder
/**
* A focus highlight for the voicing prototype. Has a different color than the
* default focus highlight and includes an icon to indicate that interacting with
* the object will result in some speech. This highlight may also appear on
* mouse over as well as foc... | JavaScript | 0 | @@ -106,247 +106,124 @@
s a
-different color than the%0A * default focus highlight and includes an icon to indicate that interacting with%0A * the object will result in some speech. This highlight may also appear on%0A * mouse over as well as focus in the SpeakerHighlighter
+unique color to indicate that focus is not... |
9a795296f5534d044090e198c46cceb4a81958a4 | add ts-nocheck | js/buttons/BooleanRectangularToggleButton.js | js/buttons/BooleanRectangularToggleButton.js | // Copyright 2013-2022, University of Colorado Boulder
/**
* This toggle button uses a boolean Property and a trueNode and falseNode to display its content.
*/
import merge from '../../../phet-core/js/merge.js';
import Tandem from '../../../tandem/js/Tandem.js';
import BooleanToggleNode from '../BooleanToggleNode.j... | JavaScript | 0.000031 | @@ -48,16 +48,30 @@
Boulder%0A
+// @ts-nocheck
%0A/**%0A *
|
605aa55b395e8f7acd404ffc13af3bcca854ad89 | Fix for previous commit. | js/components/report/question-for-student.js | js/components/report/question-for-student.js | import React, { PureComponent } from "react";
import Answer from "./answer";
import QuestionHeader from "./question-header";
import SelectionCheckbox from "../../containers/report/selection-checkbox";
import Feedback from "../../containers/report/feedback";
import "../../../css/report/question.less";
import Prompt fro... | JavaScript | 0 | @@ -450,16 +450,28 @@
nswerMap
+, trackEvent
%7D = thi
|
3b3c649071eae7909d5631a4dcaf9cef355134d1 | put some template changes in compile | js/ext/angular/src/directive/ionicContent.js | js/ext/angular/src/directive/ionicContent.js | (function() {
'use strict';
angular.module('ionic.ui.content', ['ionic.ui.service'])
/**
* Panel is a simple 100% width and height, fixed panel. It's meant for content to be
* added to it, or animated around.
*/
.directive('pane', function() {
return {
restrict: 'E',
link: function(scope, element, attr) ... | JavaScript | 0 | @@ -984,16 +984,17 @@
%0A %7D,%0A
+%0A
comp
@@ -1040,149 +1040,8 @@
) %7B%0A
- return function($scope, $element, $attr) %7B%0A var clone, sc, sv,%0A addedPadding = false,%0A c = $element.eq(0);%0A%0A
@@ -1065,33 +1065,39 @@
er == %22true%22) %7B
-c
+element
.addClass('... |
67a8216038b19e82070bd4746c93a17af94c99b5 | Fix missing icons in weekly BestOf email | app/mailers/BestOfDigestMailer.js | app/mailers/BestOfDigestMailer.js | import { promisifyAll } from 'bluebird';
import createDebug from 'debug';
import { default as juice } from 'juice';
import ReactDOMServer from 'react-dom/server';
import Mailer from '../../lib/mailer';
import { load as configLoader } from '../../config/config';
import { SummaryEmail } from '../views/emails/best-of-dige... | JavaScript | 0.00869 | @@ -1906,16 +1906,58 @@
a-lock'%5D
+, fa%5B'fa-comment-o'%5D, fa%5B'post-protected'%5D
%5D;%0A%0A re
|
8d060053de44d006f6fd1ae4ee9c207539b8bacd | Make sure to make the request for a list if the user mousedowns on the last active button | public/js/render/saved-history-preview.js | public/js/render/saved-history-preview.js | // inside a ready call because history DOM is rendered *after* our JS to improve load times.
if (!jsbin.embed) $(function () {
var listLoaded = false;
function loadList() {
if (listLoaded) {
return;
}
listLoaded = true;
$.ajax({
dataType: 'html',
url: '/list',
error: function () {
setT... | JavaScript | 0 | @@ -1,133 +1,4 @@
-// inside a ready call because history DOM is rendered *after* our JS to improve load times.%0Aif (!jsbin.embed) $(function () %7B%0A%0A
var
@@ -170,24 +170,50 @@
nction () %7B%0A
+ listLoaded = false;%0A
setTim
@@ -338,518 +338,11 @@
%7D);%0A
+
%7D%0A%0A
-// this code attempts to o... |
bae1d12948b69d5d6a4eb4b92dcd231cd89cbddb | return null, instead of empty union | type-checker/lib/get-union-without-bool.js | type-checker/lib/get-union-without-bool.js | 'use strict';
var JsigAST = require('../../ast/');
module.exports = getUnionWithoutBool;
function getUnionWithoutBool(type, truthy) {
if (type.type !== 'unionType') {
if (truthy && !isAlwaysFalsey(type)) {
return type;
} else if (!truthy && !isAlwaysTruthy(type)) {
return ... | JavaScript | 0.999365 | @@ -618,24 +618,83 @@
%7D%0A %7D%0A%0A
+ if (unions.length === 0) %7B%0A return null;%0A %7D%0A%0A
if (unio
|
632435eeaa52df6cec366b6aa115f37f76eb4a2b | Fix TOC layout for large screen (#31953) | docs/src/modules/components/AppTableOfContents.js | docs/src/modules/components/AppTableOfContents.js | /* eslint-disable react/no-danger */
import * as React from 'react';
import PropTypes from 'prop-types';
import throttle from 'lodash/throttle';
import { styled } from '@mui/material/styles';
import Typography from '@mui/material/Typography';
import NoSsr from '@mui/material/NoSsr';
import Link from 'docs/src/modules/c... | JavaScript | 0 | @@ -532,38 +532,9 @@
op:
-'var(--MuiDocs-header-height)'
+0
,%0A
@@ -611,50 +611,13 @@
t: '
-calc(100vh - var(--MuiDocs-header-height))
+100vh
',%0A
@@ -661,17 +661,59 @@
spacing(
-2
+'calc(var(--MuiDocs-header-height) + 1rem)'
, 4, 2,
|
076feb591f5c9a8b1982864dad3d3008f7d98cb1 | Update tests | Workshops/21-February-2017/tests/task-1-tests-playlist.js | Workshops/21-February-2017/tests/task-1-tests-playlist.js | // Generated by CoffeeScript 1.9.3
const { expect } = require('chai');
const result = require('../tasks/task-1')();
describe('Sample exam tests', function () {
describe('PlayList', function () {
describe('With valid input', function () {
it('expect getPlaylist to exist, to be a function and to ... | JavaScript | 0.000001 | @@ -1,54 +1,17 @@
-// Generated by CoffeeScript 1.9.3%0A
const %7B
-
expect
-
%7D =
@@ -87,25 +87,25 @@
be('
-Sample exam
+Audio Player
test
-s
', f
|
c6c59740770e68b3899367b0db53a445849e57de | Allow to compile only one section through webpack | gulp/tasks/common.js | gulp/tasks/common.js | var argv = require( 'minimist' )( process.argv );
var gulp = require( 'gulp' );
var shell = require( 'gulp-shell' );
var FwdRef = require( 'undertaker-forward-reference' );
// https://github.com/gulpjs/undertaker-forward-reference
// https://github.com/gulpjs/gulp/issues/802
gulp.registry( FwdRef() );
module.exports ... | JavaScript | 0 | @@ -1250,24 +1250,95 @@
%7C%7C 'app';%0A%0A
+%09if ( argv%5B'section'%5D ) %7B%0A%09%09config.sections = %5B argv%5B'section'%5D %5D;%0A%09%7D%0A%0A
%09config.proj
|
466176d2c0ee453325f7044267809e1b32861240 | update gulp serve task | gulp/tasks/server.js | gulp/tasks/server.js | var gulp = require('gulp');
var plugins = require('gulp-load-plugins')({lazy: false});
var argv = require('yargs').argv;
var sass = require('gulp-sass');
var sassSync = require('node-sass');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var fs = require('fs-extra');
var appDir = '... | JavaScript | 0.000001 | @@ -1746,20 +1746,28 @@
ppDir +
-'tmp
+serveDir + '
/fonts')
@@ -1812,20 +1812,28 @@
ppDir +
-'tmp
+serveDir + '
/img');%0A
@@ -2410,28 +2410,36 @@
appDir +
-'tmp
+serveDir + '
/**/*.html',
@@ -2452,28 +2452,36 @@
appDir +
-'tmp
+serveDir + '
/**/*.js',%0A
@@ -2500,12 +2500,20 @@
r +
-'tmp
+serveDi... |
5f7db3d03cb3641b464a531f3f68986bd169526e | Update autoprefixer to use default settings | gulp/tasks/styles.js | gulp/tasks/styles.js | /* ***** ----------------------------------------------- ***** **
/* ***** Gulp - Styles
/* ***** ----------------------------------------------- ***** */
// Require all development dependencies
var addSrc = require('gulp-add-src'),
autoprefixer = require('gulp-autoprefixer'),
browserSync = require('browser-sync'),
... | JavaScript | 0 | @@ -1878,68 +1878,8 @@
xer(
-%7B%0A%09%09%09%09browsers: %5B'last 2 versions'%5D,%0A%09%09%09%09cascade: false%0A%09%09%09%7D
))%0A%09
|
308d4df2abee090cc6af821f167e566145026236 | update example with filter | node_craftsman/mongodb-test/index.js | node_craftsman/mongodb-test/index.js | 'use strict';
var MongoClient = require('mongodb').MongoClient;
MongoClient.connect('mongodb://127.0.0.1:27017/accounting',
function (err, connection) {
var collection = connection.collection('customers2');
var listDocuments = function (callback) {
// comma separates AND parameters
... | JavaScript | 0 | @@ -946,71 +946,8 @@
own%0A
- 'limit': 5,%0A 'skip': 2,%0A
@@ -971,17 +971,16 @@
sort': %5B
-
%5B'v', 'a
@@ -998,17 +998,16 @@
'desc'%5D
-
%5D%0A
@@ -2443,32 +2443,1011 @@
%7D);%0A %7D;%0A%0A
+ var doUpdate = function () %7B%0A // incre... |
e6cca539679c1b84c73572146f9f89380fb60f8a | revert incorrect fix for login flickering, try another one that works in monodb mode | addons/portal_anonymous/static/src/js/portal_anonymous.js | addons/portal_anonymous/static/src/js/portal_anonymous.js | openerp.portal_anonymous = function(instance) {
instance.web.Session.include({
load_translations: function() {
var self = this;
// browser_lang can contain 'xx' or 'xx_XX'
// we use the 'xx' to find matching languages installed in the DB
var browser_lang = (n... | JavaScript | 0.000003 | @@ -2434,17 +2434,64 @@
-if (!this
+var self = this;%0A var anonymous_mode = (!self
.ses
@@ -2519,20 +2519,20 @@
() && !(
-this
+self
.params.
@@ -2540,20 +2540,20 @@
oken %7C%7C
-this
+self
.params.
@@ -2559,16 +2559,49 @@
.login))
+;%0A if (anonymous_mode)
%7B%0A
@@ -2607,28 ... |
cfb3c5f3b26194c35d7b37e8b8f0a6f647191dca | Set Timeout Counter | get-started/promises/data.js | get-started/promises/data.js | var dataVar = new Promise((resolve, reject) => {
if (false) {
resolve('RESOLVE');
} else {
reject('REJECT');
}
});
dataVar.then((data) => console.log('success: ', data));
dataVar.catch((error) => console.error('error: ', error));
| JavaScript | 0 | @@ -48,16 +48,38 @@
%7B%0A
-if (fals
+setTimeout(() =%3E %7B%0A if (tru
e) %7B
@@ -140,16 +140,28 @@
');%0A %7D%0A
+ %7D, 2000);%0A
%7D);%0A%0Adat
|
b066596f11e8e468af205da69e86fb5ccf52e8f8 | add more option for nmr annotations | eln/nmrGUI.js | eln/nmrGUI.js | var options1D = {
type: 'rect',
line: 0,
lineLabel: 1,
labelColor: 'red',
strokeColor: 'red',
strokeWidth: '1px',
fillColor: 'green',
width: 0.05,
height: 10,
toFixed: 1,
maxLines: Number.MAX_VALUE,
selectable: true,
fromToc: false
};
var options2D = {type: 'rect', l... | JavaScript | 0 | @@ -3072,18 +3072,80 @@
-var height
+let %7B%0A height,%0A line,%0A dy = %5B0, 0%5D,%0A y%0A %7D
= o
@@ -3146,31 +3146,24 @@
%7D = options
-.height
;%0A var an
@@ -3394,24 +3394,16 @@
.line =
-options.
line;%0A
@@ -4050,32 +4050,45 @@
y:
+ (y) ? y%5B0%5D ... |
a24210c043940213089f75fbea14ec15cc3bf971 | add breadcrumbs | src/components/admin/app-breadcrumbs/Breadcrumbs.js | src/components/admin/app-breadcrumbs/Breadcrumbs.js | export default {
root: {
path: '/',
displayName: 'Home'
},
routes: [
{
path: 'dashboard',
displayName: 'menu.dashboard'
},
{
path: 'statistics',
displayName: 'menu.statistics',
disabled: true,
children: [
{
path: 'charts',
display... | JavaScript | 0.000019 | @@ -1210,32 +1210,129 @@
%7D,%0A %7B%0A
+ path: 'color-pickers',%0A displayName: 'menu.colorPickers'%0A %7D,%0A %7B%0A
path:
|
6659c189596f0a32f5cf38cfa7ef6f8dee92f08d | Update stories | src/components/silentBanner/silentBanner.stories.js | src/components/silentBanner/silentBanner.stories.js | import React from 'react';
import { addStoryInGroup, MID_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { boolean, select, text } from '@storybook/addon-knobs/react';
import SilentBanner from './SilentBanner';
import Link from '../link';
const statusValues = ['info', 'error', 'success', 'warning'];
export de... | JavaScript | 0 | @@ -648,16 +648,50 @@
ntBanner
+ inline=%7Bboolean('Inline', false)%7D
title=%7B
@@ -740,16 +740,16 @@
age')%7D%3E%0A
-
Lore
@@ -998,32 +998,70 @@
%3CSilentBanner%0A
+ inline=%7Bboolean('Inline', false)%7D%0A
onClose=%7B()
@@ -1427,24 +1427,62 @@
ilentBanner%0A
+ inline=%7Bboolean('Inline', fal... |
cd0aae5b54f1bd2da20e1a996f382c64b5fb548d | Remove need for status section of api. | backfeed.js | backfeed.js | /* backfeed.js */
var Backfeed = (function() {
"use strict";
//define classes to add/remove
const errorStatusClass = 'glyphicon-remove';
const errorGroupClass = 'has-error';
const successStatusClass = 'glyphicon-ok';
const successGroupClass = 'has-success';
const formGroupClass = 'form-group';
const for... | JavaScript | 0 | @@ -585,29 +585,8 @@
ut'%5D
-, currInput%5B'status'%5D
);%0A
@@ -1428,24 +1428,16 @@
element
-, status
) %7B%0A
|
ed30fa7cfe659ae082322c1f61a2b372f118bf81 | Fix login test by mocking device url function. | kolibri/core/assets/test/state/store.spec.js | kolibri/core/assets/test/state/store.spec.js | /* eslint-env mocha */
import Vue from 'vue';
import Vuex from 'vuex';
import assert from 'assert';
import _ from 'lodash';
import * as s from '../../src/state/store';
import * as getters from '../../src/state/getters';
import * as coreActions from '../../src/state/actions';
import * as constants from '../../src/consta... | JavaScript | 0 | @@ -1916,16 +1916,85 @@
=%3E '';%0A
+ urls%5B'kolibri:managementplugin:device_management'%5D = () =%3E '';%0A
Ob
|
5558af6e7096d19fc03305847f7c17fa8e5caf23 | fix fontSize rendering | rendering/renderer.js | rendering/renderer.js | import { promise } from "lively.lang";
import { addOrChangeCSSDeclaration, addOrChangeLinkedCSS } from "./dom-helper.js";
const defaultCSS = `
.no-html-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: non... | JavaScript | 0.000002 | @@ -4708,16 +4708,23 @@
fontSize
+ + %22px%22
;%0A tr
|
9726d9c1ab7ea2ad5335aba696098a4b7e1cb064 | Add tests for hypothesis service | app/components/hypothesis/service.hypo-hypothesis.test.js | app/components/hypothesis/service.hypo-hypothesis.test.js |
describe('Service: hypo.hypoHypothesis', function() {
'use strict';
var hypoHypothesis;
beforeEach(module('hypo.hypothesis.service'));
beforeEach(inject(function(_hypoHypothesis_) {
hypoHypothesis = _hypoHypothesis_;
}));
var h;
beforeEach(function() {
h = hypoHypothesis(1,2,3,4);
});
it... | JavaScript | 0.000001 | @@ -466,24 +466,190 @@
unction() %7B%0A
+ var h1, h2, h3;%0A%0A beforeEach(function() %7B%0A h1 = hypoHypothesis(1,1,4,4);%0A h2 = hypoHypothesis(1,1,3,3);%0A h3 = hypoHypothesis(3,3,5,5);%0A %7D);%0A%0A
it('shou
@@ -1069,167 +1069,874 @@
hen
-another hypothesis is less generic', functio... |
98df16c76c1b89bddfc4d60544c1e77e1925a5d0 | Change undefined to null in users.password.server.controller.js | app/controllers/users/users.password.server.controller.js | app/controllers/users/users.password.server.controller.js | 'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
errorHandler = require('../errors.server.controller'),
mongoose = require('mongoose'),
passport = require('passport'),
User = mongoose.model('User'),
config = require('../../../config/config'),
nodemailer = require('nodemailer'),
async = r... | JavaScript | 0.000009 | @@ -3535,25 +3535,20 @@
Token =
-undefined
+null
;%0A%09%09%09%09%09%09
@@ -3579,17 +3579,12 @@
s =
-undefined
+null
;%0A%0A%09
|
3902f3437bb757d2b4d9a56cb7b6d16b3d19e158 | Add opened class on drop | app/javascript/gobierto_admin/modules/terms_controller.js | app/javascript/gobierto_admin/modules/terms_controller.js | import Sortable from 'sortablejs';
window.GobiertoAdmin.TermsController = (function() {
function TermsController() {}
TermsController.prototype.index = function() {
_handleTermsList();
_handleSortableList();
};
function _handleTermsList() {
// Toggle selected element child
$('.v_container .v_... | JavaScript | 0.000001 | @@ -2651,24 +2651,67 @@
ction (e) %7B%0A
+ $(e.item).addClass('el-opened');%0A
le
|
25f9a60cf67627abdf7065d367cfe6b587bf2ce1 | remove near real time and change to commodities | app/javascript/pages/map/components/menu/menu-sections.js | app/javascript/pages/map/components/menu/menu-sections.js | import forestChange from 'assets/icons/forest-change.svg';
import landCover from 'assets/icons/land-cover.svg';
import landUse from 'assets/icons/land-use.svg';
import climate from 'assets/icons/climate.svg';
import biodiversity from 'assets/icons/biodiversity.svg';
import explore from 'assets/icons/explore.svg';
impor... | JavaScript | 0.000001 | @@ -936,44 +936,8 @@
rts'
-,%0A subTitle: 'near real time'
%0A
@@ -1010,44 +1010,8 @@
rts'
-,%0A subTitle: 'near real time'
%0A
@@ -1478,24 +1478,24 @@
tle: 'Co
-ncession
+mmoditie
s'%0A
|
896a87b740c5e228a81f23a11a26845aa849e346 | Rename parameters from photo to gif to get more meaningful names | constants.js | constants.js | // URLs grom telegram
const TELEGRAM_BASE_URL = 'https://api.telegram.org';
const TELEGRAM_MESSAGE_PHOTO_ENDPOINT = '/sendPhoto';
const DEFAULT_PHOTO_URL = 'http://media.salemwebnetwork.com/cms/CROSSCARDS/17343-im-sorry-pug.jpg';
// URLs from giphy
const {GIPHY_PUBLIC_API_KEY} = require('./variables');
const GIPHY_BA... | JavaScript | 0 | @@ -84,37 +84,35 @@
ELEGRAM_MESSAGE_
-PHOTO
+GIF
_ENDPOINT = '/se
@@ -117,12 +117,12 @@
send
-Phot
+Vide
o';%0A
@@ -131,29 +131,27 @@
nst DEFAULT_
-PHOTO
+GIF
_URL = 'http
@@ -157,71 +157,22 @@
p://
-media.salemwebnetwork.com/cms/CROSSCARDS/17343-im-sorry-pug.jpg
+gph.is/1KuNTVa
';%0A%0A
@@ -559,21 +559,19 @@
... |
e7f04d006bb00678c0acc145e3d6204cbea73bd1 | Add RESPONSE_LIMIT in constants.js | constants.js | constants.js | const SUPPORTED_LANGUAGES = [
{
twoLetterCode: "en",
name: "English",
},
{
twoLetterCode: "fr",
name: "French",
},
{
twoLetterCode: "de",
name: "German",
},
{
twoLetterCode: "es",
name: "Spanish",
},
{
twoLetterCode: "zh",
name: "Chinese",
},
{
twoLetter... | JavaScript | 0.000064 | @@ -482,16 +482,43 @@
/jpeg%22%5D;
+%0Aconst RESPONSE_LIMIT = 20;
%0A%0Amodule
|
9fd6fd939f455a5a5d0e5a95596ef8646ffe7319 | check for error codes rather than error message | src/javascript/binary/static/virtual_acc_opening.js | src/javascript/binary/static/virtual_acc_opening.js | pjax_config_page("new_account/virtualws", function(){
return {
onLoad: function() {
if (getCookieItem('login')) {
window.location.href = page.url.url_for('user/my_accountws');
return;
}
Content.populate();
var virtualForm = $('#virtual-form');
if ($.cookie('verify... | JavaScript | 0 | @@ -2618,60 +2618,285 @@
if (
-/account opening is unavailable/.test(error.message)
+error.code === 'InvalidAccount') %7B%0A errorAccount.textContent = error.message;%0A Validate.displayErrorMessage(errorAccount);%0A return;%0A %... |
719c2ce691fc5f2ee50f9c73d930393b7020f168 | Update tags-show.js.es6 | assets/javascripts/discourse/controllers/tags-show.js.es6 | assets/javascripts/discourse/controllers/tags-show.js.es6 | import BulkTopicSelection from 'discourse/mixins/bulk-topic-selection';
export default Ember.Controller.extend(BulkTopicSelection, {
tag: null,
list: null,
canAdminTag: Ember.computed.alias('currentUser.staff'),
isTrue: true,
canFavorite: true,
canFavoriteTag: function() {
const self = this... | JavaScript | 0.000001 | @@ -981,16 +981,22 @@
+ ' is a
+lready
favorit
@@ -1041,23 +1041,38 @@
));
-favable =
+self.set('canFavorite',
false
+)
; %7D%0A
@@ -1085,32 +1085,34 @@
%7D%0A
+//
console.log('fav
@@ -1145,52 +1145,8 @@
%0A
- self.set('canFavorite', favable);%0A
@@ -1257,24 +1257,26 @@
;%0A ... |
c67cc0c900c0fc338bb3cafa5826f974fdf2ccba | Update getMatchingWebDataStream selector. | assets/js/modules/analytics-4/datastore/webdatastreams.js | assets/js/modules/analytics-4/datastore/webdatastreams.js | /**
* `modules/analytics-4` data store: webdatastreams.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.o... | JavaScript | 0 | @@ -5089,353 +5089,92 @@
%0A%0A%09%09
-const normalizeURL = ( incomingURL ) =%3E incomingURL%0A%09%09%09.replace( /%5Ehttps?:%5C/%5C/(www%5C.)?/i, '' ) // Remove protocol and optional %22www.%22 prefix from the URL.%0A%09%09%09.replace( /%5C/$/, '' ); // Remove trailing slash.%0A%0A%09%09const url = normalizeURL( sele... |
c5a0a986ae747eeb60619affaaa9042536c5724a | Simplify datastore base. | assets/js/modules/subscribe-with-google/datastore/base.js | assets/js/modules/subscribe-with-google/datastore/base.js | /**
* `modules/subscribe-with-google` base data store
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org... | JavaScript | 0.000001 | @@ -859,29 +859,22 @@
';%0A%0A
-let baseModuleStore =
+export default
Mod
@@ -1119,368 +1119,9 @@
es,%0A
+
%7D );%0A
-%0A// Rename generated pieces to adhere to our convention.%0AbaseModuleStore = ( ( %7B actions, selectors, ...store %7D ) =%3E %7B%0A%09const %7B ...restActions %7D = actions;%0A%09const %7B ...res... |
33b03de385c4d845c114ccd764d7d9097d7b6677 | Fix somewhat broken timing-test by being less anal about output. | test/StatsDClient.js | test/StatsDClient.js | var StatsDClient = require('../lib/statsd-client'),
FakeEphemeralSocket = require('./fakeEphemeralSocket'),
assert = require('chai').assert;
/*global describe before it*/
describe('StatsDClient', function () {
describe('Namespaces', function () {
it('test → test.', function () {
assert... | JavaScript | 0.000001 | @@ -2745,17 +2745,17 @@
Date(-2
-5
+0
ms)) ~%E2%86%92
@@ -2760,20 +2760,21 @@
%E2%86%92 %22foo:2
-5
+0
%7Cms
+%22
', funct
@@ -2903,16 +2903,17 @@
o', d);%0A
+%0A
@@ -2916,39 +2916,79 @@
-assert(
+// Figure out if we git a right-looking message
%0A
@@ -2984,35 +2984,5... |
8e91a5d9f7f415fe681cf377fc9f6dbf1d0cf1e5 | add small molecule menu to build | client/build/build.js | client/build/build.js | ({
findNestedDependencies: true,
baseUrl: '../js',
dir: '../dist',
mainConfigFile: '../js/main.js',
optimize: 'uglify2',
preserveLicenseComments: false,
removeCombined: true,
modules: [
{
name: "main",
include: ['backbone', 'marionette', 'jquery', 'unders... | JavaScript | 0 | @@ -705,32 +705,73 @@
types/em/menu',%0A
+ 'modules/types/sm/menu',%0A
|
388a1332e7cc0813c5602b048ce3e56894c1186b | Fix scroll to Top | reflow-maven-skin/src/main/resources/js/reflow-scroll.js | reflow-maven-skin/src/main/resources/js/reflow-scroll.js | // Support for smooth scrolling
// (simplified version, taken from http://stackoverflow.com/a/14805098/1173184)
$(window).load(function(){
$('a[href^="#"]:not([href^="#carousel"]):not([data-toggle="dropdown"])').on('click', function(e) {
// prevent default anchor click behavior
e.preventDefault();
//... | JavaScript | 0 | @@ -1,115 +1,4 @@
-// Support for smooth scrolling%0A// (simplified version, taken from http://stackoverflow.com/a/14805098/1173184)
%0A$(w
@@ -123,16 +123,248 @@
n(e) %7B%0A%0A
+ function scrollTo(el, offset, clbck) %7B%0A var pos = (el && el.length %3E 0) ? el.offset().top : 0;%0A pos = pos + (offset ?... |
3d390b15a87b49cb5776e9010d1d3417107adfb1 | Refactor Browser Matcher tests. | test/browser.test.js | test/browser.test.js | describe('Browser', function() {
describe('toBeWindow', function() {
it('should assert value is a host Window object', function() {
expect(window).toBeWindow();
expect({}).not.toBeWindow();
});
});
describe('toBeDocument', function() {
it('should assert value is a host Document object', ... | JavaScript | 0 | @@ -73,106 +73,328 @@
-it('should assert value is a host Window object', function() %7B%0A expect(window).toBeWindow();%0A
+describe('when invoked', function() %7B%0A describe('when value is a host Window object', function() %7B%0A it('should confirm', function() %7B%0A expect(window).to... |
dc249889fc5570f718588ce4f225a0960f41f11c | make sure remotes works without notes plugin being loaded #607 | plugin/remotes/remotes.js | plugin/remotes/remotes.js | /**
* Touch-based remote controller for your presentation courtesy
* of the folks at http://remotes.io
*/
(function(window){
/**
* Detects if we are dealing with a touch enabled device (with some false positives)
* Borrowed from modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-d... | JavaScript | 0 | @@ -650,27 +650,27 @@
var
-rem
+isN
otesAndI
sNotes =
@@ -661,22 +661,21 @@
otesAndI
-sNotes
+frame
= (func
@@ -692,17 +692,17 @@
+
return
-!(
wind
@@ -719,16 +719,18 @@
otes &&
+!(
self ==
@@ -771,19 +771,19 @@
&& !
-rem
+isN
otesAndI
sNot
@@ -778,22 +778,21 @@
otesAndI
-sNotes
+frame
)%... |
f7425dbd22b7fe17aa749196e10217d2f335d75e | Fix app title & isEditLink | src/javascripts/ng-admin/Main/component/service/config/ReferencedList.js | src/javascripts/ng-admin/Main/component/service/config/ReferencedList.js | /*global define*/
define(function (require) {
'use strict';
var Configurable = require('ng-admin/Main/component/service/config/Configurable'),
Reference = require('ng-admin/Main/component/service/config/Reference'),
utils = require('ng-admin/lib/utils');
function defaultValueTransformer(v... | JavaScript | 0 | @@ -665,19 +665,20 @@
itLink:
-tru
+fals
e,%0A
|
145007245641f528272b9696034a7687984d4067 | fix duplicating in certain situations | web/app/assets/javascripts/formeditor/duplicate.js | web/app/assets/javascripts/formeditor/duplicate.js | /* Implements functions that allow duplicating sections and questions.
* It works by copying the DOM of that element and adjusting the IDs
* for that question/section to an unused one. */
/* @public
* Shows/hides the duplication buttons on sections/questions.
* @param enable if the buttons should be shown/hidden ... | JavaScript | 0.99997 | @@ -2106,20 +2106,19 @@
d%0A var
-last
+old
Path = e
@@ -2197,32 +2197,58 @@
id%22)
-.match(r),%0A
+;%0A var oldId = oldPath.match(r)%5B1%5D;%0A var
oldPath
= %22
@@ -2239,24 +2239,27 @@
var oldPath
+Seg
= %22/%22 + pat
@@ -2277,32 +2277,26 @@
%22 +
-lastPath%5B1%5D
+oldId
+ %22/%22
-,%0A
+... |
13153e740f23ddb102fd11f34fc3a5f1edd4131d | Check for error in kbox binary before throwing | bin/kbox.js | bin/kbox.js | #!/usr/bin/env node
'use strict';
/**
* This file is meant to be linked as a "kbox" executable.
*/
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var argv = require('minimist')(process.argv.slice(2));
var chalk = require('chalk');
var Liftoff = require('liftoff');
var tildify = re... | JavaScript | 0 | @@ -3468,24 +3468,33 @@
r) %7B%0A
+ if (err)
throw err;
@@ -3492,18 +3492,16 @@
row err;
-
%0A %7D
|
cd6dc7192e543869479cbfcc5cb1eabdf39c4817 | Remove watchContentBase option (#725) | package/environments/development.js | package/environments/development.js | const Environment = require('../environment')
const { dev_server } = require('../config')
const assetHost = require('../asset_host')
const webpack = require('webpack')
module.exports = class extends Environment {
constructor() {
super()
if (dev_server.hmr) {
this.plugins.set('HotModuleReplacement', ne... | JavaScript | 0 | @@ -1057,38 +1057,8 @@
ue,%0A
- watchContentBase: true,%0A
|
3f436b282bab1a3ec5a7c6c0ff36e01dde05dd6e | Remove cache time limits | ostrio:neo4jreactivity_collection.js | ostrio:neo4jreactivity_collection.js | if (!this.neo4j) {
this.neo4j = {};
}
if (!this.neo4j.uids) {
if(Meteor.isClient){
Session.setDefault('neo4juids', [null]);
}
this.neo4j.uids = (Meteor.isServer) ? [] : Session.get('neo4juids');
}
this.Neo4jCacheCollection = new Meteor.Collection('Neo4jCache');
if (Meteor.isServer) {
Neo4jCacheCollect... | JavaScript | 0.000001 | @@ -698,87 +698,8 @@
ids%0A
- %7D,%0A created: %7B%0A $gte: new Date(new Date() - 24 * 60 * 60000)%0A
|
a71d5427611acf44bb775a380c6be94922e606fe | fix underscore unit tests | packages/patternengine-node-mustache/test/engine_underscore_tests.js | packages/patternengine-node-mustache/test/engine_underscore_tests.js | (function () {
"use strict";
var path = require('path');
var pa = require('../core/lib/pattern_assembler');
var testPatternsPath = path.resolve(__dirname, 'files', '_underscore-test-patterns');
try {
require('underscore');
} catch (err) {
console.log('underscore renderer not installed; skipping te... | JavaScript | 0.000009 | @@ -1185,26 +1185,20 @@
loworld.
-underscore
+html
'%0A
@@ -1835,26 +1835,20 @@
ithdata.
-underscore
+html
'%0A
|
2d4086345cbda50833fd70c3befa68b8498e38ee | Fix month aprox of division to more close round | lib/dedalo/extras/mdcat/calculation/mdcat.js | lib/dedalo/extras/mdcat/calculation/mdcat.js | var expressos = new function() {
this.calculate_period = function(options){
const data = options.data
const total_days = data.total_days
const years = Math.floor(total_days / 365)
const years_days = total_days - (years * 365)
const total_months = Math.floor(total_days / 30.42)
let months = Math.fl... | JavaScript | 0 | @@ -282,32 +282,187 @@
_days / 30.42)%0A%0A
+%09%09const check_months = total_days / 30.42%0A%09%09const rest_months = check_months - total_months%0A%09%09%0A%09%09if(rest_months %3E 0.99)%7Btotal_months = total_months + 1%7D%0A%0A%0A
%09%09let months %09=
@@ -1934,32 +1934,186 @@
_days / 30.42)%0A%0A
+%09%09const ... |
48f04cc783125a352a788b2f061558c3021f0131 | fix buttons on separate line from dashboard | website/static/js/home-page/ShareWindowDropzone.js | website/static/js/home-page/ShareWindowDropzone.js | var m = require('mithril');
var $osf = require('js/osfHelpers');
var waterbutler = require('js/waterbutler');
var AddProject = require('js/addProjectPlugin');
require('css/dropzone-plugin.css');
require('css/quick-project-search-plugin.css');
require('loaders.css/loaders.min.css');
var Dropzone = require('dropzone');... | JavaScript | 0.000001 | @@ -3137,18 +3137,39 @@
('h2
-.col-xs-4'
+', %7Bstyle: %7Bdisplay: 'inline'%7D%7D
, 'D
@@ -3177,16 +3177,17 @@
shboard'
+
),%0A
@@ -3200,17 +3200,17 @@
m('
-m
+p
-b-lg.co
@@ -3230,16 +3230,27 @@
one-disp
+.pull-right
', %7Bstyl
|
01334e779a80ec7d65ca99487afec2194abe9c54 | Fix l10n extraction on ES2015. (#3963) r=vladikoff | grunttasks/l10n-extract.js | grunttasks/l10n-extract.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/. */
// grunt task to extract strings.
var fs = require('fs');
var path = require('path');
var mkdirp = require('mkdir... | JavaScript | 0.000184 | @@ -553,13 +553,11 @@
sk('
-l10n-
+jsx
extr
@@ -567,55 +567,46 @@
', '
-Extract strings from templates for localization
+Do not call directly, see l10n-extract
.',
@@ -826,11 +826,12 @@
', '
-app
+.es5
', '
@@ -1569,13 +1569,263 @@
);%0A %7D);
+%0A%0A grunt.registerTask('l10n-extract', 'Extract strings from t... |
fc174739e87f2641a3b66ee33a21aef2fba90e86 | Fix typo | helpers/schedules.js | helpers/schedules.js | var hue = require("node-hue-api"),
config = require("config"),
HueApi = hue.HueApi,
schedule = require('node-schedule'),
lightState = hue.lightState;
const DINING_CEILING = 1,
SOFA_CEILING = 2,
CARS_LIGHTS = 3,
BED = 4,
DESK_LAMP = 5,
DINING_UPLIGHT = 6,
TV_LIGHTS = 7,
SOFA_UPLIGHT = ... | JavaScript | 0.999999 | @@ -318,11 +318,9 @@
= 8
-;%09%09
+,
%0A%09
@@ -360,17 +360,17 @@
TOM = 10
-,
+;
%0A%0Avar di
|
248352fa0b4062cd6b194de714d7ec35e6e4277e | Update output-modal.js | client/app/scripts/liveblog-edit/directives/output-modal.js | client/app/scripts/liveblog-edit/directives/output-modal.js | import outputModalTpl from 'scripts/liveblog-edit/views/output-modal.html';
/**
* @desc directive to open a modal to create or edit a channel output
* @example <output-modal modal-active="x" outputs="array" output="object" blog="blog"></output-modal>
*/
export default function outputModal() {
return {
... | JavaScript | 0.000002 | @@ -718,18 +718,8 @@
ice'
-, '$scope'
%5D;%0A%0A
@@ -812,16 +812,8 @@
vice
-, $scope
) %7B%0A
@@ -4312,8 +4312,9 @@
%0A %7D%0A%7D
+%0A
|
161fc9ef5943045de69edffbfc01f787c47b74ab | Remove properties from tests that do not always show up | test/e2e/e2e.spec.js | test/e2e/e2e.spec.js | var expect = require('chai').expect,
debug = require('debug')('bp:test:e2e'),
browserPerf = require('../../');
var expectedMetrics = {
chrome: [
// ChromeTracingMetrics & RafRenderingMetrics
'mean_frame_time',
'meanFrameTime',
// Network Timings
'firstPaint',
'connectStart',
'domainLooku... | JavaScript | 0 | @@ -718,16 +718,18 @@
es',%0D%0A%09%09
+//
'Evaluat
@@ -741,16 +741,18 @@
pt',%0D%0A%09%09
+//
'EventDi
@@ -807,16 +807,18 @@
ll',%0D%0A%09%09
+//
'GCEvent
@@ -823,16 +823,18 @@
nt',%0D%0A%09%09
+//
'XHRRead
|
6031c94e1a00ce8dc900ac5eaa69ca6569c9bb4b | update molecular-formula to 0.1.3 | eln/libs/EMDB.js | eln/libs/EMDB.js | export {
default
} from 'https://www.lactame.com/lib/molecular-formula/0.1.3/emdb.js';
| JavaScript | 0.999991 | @@ -76,12 +76,25 @@
1.3/
-emdb
+molecular-formula
.js'
|
c3a9667a3143ff66b9d1936c241672bfdc3a3e37 | Add WhiteLabel to Mongoose Schema for Vendors. White Labeled vendors will have special view logic, so we need to add a default value of false to check against. In Mongoose, default values will be set without setting a required validator as well. | server/app/models/vendor.js | server/app/models/vendor.js | /**
* Module dependencies.
*/
var mongoose = require('mongoose'),
env = process.env.NODE_ENV || 'development',
config = require('../../config/config')[env],
Schema = mongoose.Schema,
_ = require('lodash');
var customNameSchema = new Schema({
type: Schema.ObjectId,
displayName: String
});
var... | JavaScript | 0 | @@ -1567,32 +1567,127 @@
im: true%0A %7D,%0A
+ %22whiteLabel%22: %7B%0A type: Boolean,%0A %22default%22: false,%0A trim: true%0A %7D,%0A
%22businessPho
@@ -7098,8 +7098,9 @@
Schema);
+%0A
|
419597b99a83656f3ea9a5494fe5d00cc1e4638b | make drop zone clickable | website/static/js/home-page/ShareWindowDropzone.js | website/static/js/home-page/ShareWindowDropzone.js | var m = require('mithril');
var $osf = require('js/osfHelpers');
var waterbutler = require('js/waterbutler');
require('css/quick-project-search-plugin.css');
require('loaders.css/loaders.min.css');
var Dropzone = require('dropzone');
// Don't show dropped content if user drags outside dropzone
window.ondragover = f... | JavaScript | 0.000001 | @@ -1700,17 +1700,16 @@
%3C/div%3E'%0A
-%0A
@@ -1796,10 +1796,11 @@
m('
-h1
+div
.p-v
@@ -1853,16 +1853,29 @@
opzone',
+m('p',m('h1',
'Drag
@@ -1905,16 +1905,90 @@
d them')
+), %22Having trouble click anywhere in this box to manually upload a file%22);
%0A %7D%0A%7D;%0A
|
fd942ab58761ff09cd5cd12040cb71fbf54f300d | reformat parser spec | spec/parser_spec.js | spec/parser_spec.js | 'use strict';
var Parser = require('../parser.js');
describe('#consumeTo', function(){
var parser;
beforeEach(function(){
parser = new Parser('first this# then this.');
});
context('FINISHED', function(){
beforeEach(function(){
parser.consumeTo('then this.');
});
it('returns null', fun... | JavaScript | 0.000003 | @@ -47,16 +47,49 @@
.js');%0A%0A
+describe('Parser', function()%7B%0A
describe
@@ -115,16 +115,18 @@
tion()%7B%0A
+
var pa
@@ -132,16 +132,18 @@
arser;%0A%0A
+
before
@@ -155,24 +155,26 @@
function()%7B%0A
+
parser =
@@ -212,16 +212,18 @@
his.');%0A
+
%7D);%0A%0A
@@ -215,32 +215,34 @@
.'... |
797eaf829b56c9937f023b218378a33b64c776ed | Fix rejection of signature | src/services/authentication/index.js | src/services/authentication/index.js | 'use strict';
const auth = require('feathers-authentication');
const jwt = require('feathers-authentication-jwt');
const local = require('feathers-authentication-local');
const logger = require('winston');
const system = require('./strategies/system');
const hooks = require('./hooks');
let authenticationSecret = nul... | JavaScript | 0.000009 | @@ -867,16 +867,47 @@
d'%0A%09%09%7D,%0A
+%09%09secret: authenticationSecret%0A
%09%7D);%0A%0A%0A%09
|
d1d0bafac967cc2f368ef8058a0a9810068ddc04 | fix typo | client/opencps-pki.js | client/opencps-pki.js | /*!
* OpenCPS PKI; version: 1.0.0
* https://github.com/VietOpenCPS/pki
* Copyright (c) 2016 OpenCPS Community;
* Licensed under the AGPL V3+.
* https://www.gnu.org/licenses/agpl-3.0.html
*/
(function($) {
"use strict";
function hex2Array(hex) {
if(typeof hex == 'string') {
var len = Math.floor(hex.le... | JavaScript | 0.999991 | @@ -1971,32 +1971,34 @@
sponse) %7B%0A
+
console.log('Deb
@@ -2041,24 +2041,26 @@
rr) %7B%0A
+
console.log(
@@ -2082,24 +2082,26 @@
: ' + err);%0A
+
return
|
f5a1c6feddc4d06c3ca4db3a840d81e0885c46a5 | manage defaultSensor if it’s available for comfort | server/consumptions-yearly-aggregates/publications.js | server/consumptions-yearly-aggregates/publications.js | import {getUserObjectsIds} from "../publications-commons";
function getId (sensorId, year, source, measurementType) {
return `${sensorId}-${year}-${source}-${measurementType}`;
}
Meteor.publish("yearlyConsumptions", (sensorId, year, source, measurementType) => {
check(sensorId, String);
check(year, String... | JavaScript | 0 | @@ -971,63 +971,416 @@
%7D);%0A
- const sensorIds = site.defaultSensor %7C%7C id;
+%0A const sensors = Sensors.find(%7B%0A _id: %7B%0A $in: site.sensorsIds%0A %7D%0A %7D).fetch();%0A%0A const comfort = sensors.find(x =%3E %7B%... |
cab08c464f53f22d62ddc2e19eda61d50ef87714 | Fix missing webp support in create command | packages/cli/lib/commands/create.js | packages/cli/lib/commands/create.js | const ora = require('ora');
const glob = require('glob');
const gittar = require('gittar');
const fs = require('fs.promised');
const copy = require('ncp');
const { green } = require('chalk');
const { resolve, join } = require('path');
const { prompt } = require('inquirer');
const { promisify } = require('bluebird');
co... | JavaScript | 0.000001 | @@ -605,16 +605,21 @@
png%7Cgif%7C
+webp%7C
mp4%7Cmov%7C
|
0ff7e3557804006f90ffee7ca6922df910df8954 | Update failure.js | empty/failure.js | empty/failure.js | use "strict";
function no_close_bracket() {
} // comment for failure
| JavaScript | 0.000001 | @@ -1,18 +1,4 @@
-use %22strict%22;%0A
func
|
90a914f03f279115731d8014dc193418b7f1f669 | add category only in the event of a two word message resolves issue #3 | client/src/app/app.js | client/src/app/app.js | (function() {
'use strict';
angular.element(document).ready(function() {
angular.bootstrap(document, ['app']);
});
function config($stateProvider, $urlRouterProvider, $logProvider, $httpProvider) {
$urlRouterProvider.otherwise('/');
//$logProvider.debugEnabled(true);
$httpProvider.interceptors... | JavaScript | 0.000001 | @@ -1059,30 +1059,181 @@
-if (data.$valu
+var lastUserMessage = data.$value;%0A var numberOfWordsInMessage = lastUserMessage.split(' ').length;%0A if (numberOfWordsInMessage === 2 && lastUserMessag
e.includ
|
7f25781bfcdc5d9704e733906fc948118ab3e096 | Update common error logger | gulp/util/compileLogger.js | gulp/util/compileLogger.js | import gulpUtil from 'gulp-util';
import prettifyTime from './prettifyTime';
import handleErrors from './handleErrors';
export default ( err, stats ) => {
if ( err ) throw new gulpUtil.PluginError( 'webpack', err );
let statColor = stats.compilation.warnings.length < 1 ? 'green' : 'yellow';
if ( stats.compilat... | JavaScript | 0 | @@ -905,16 +905,94 @@
age ));%0A
+ if ( err.stack ) %7B%0A gulpUtil.log( gulpUtil.colors.red( err.stack ));%0A %7D%0A
return
|
d92fda5e9630a8fe9648874b4c360b3ed64e592f | Correct codekit include example | inc/js/plugins.js | inc/js/plugins.js | // https://incident57.com/codekit/help.html#javascript
// e.g. // @codekit-prepend plugins/jquery.js
| JavaScript | 0.000001 | @@ -76,16 +76,17 @@
prepend
+%22
plugins/
@@ -94,9 +94,10 @@
query.js
+%22
%0A
|
2c8a923851402afef5af304063d22fdeeb4904ab | comment typo fix | example/index.js | example/index.js | const startsWithEmoji = require("../lib");
console.log(startsWithEmoji(":house: sweet home!"));
// => { startsWithEmoji: true, emoji: ':house:' }
console.log(startsWithEmoji("What a nice :gift:!"));
// => { startsWithEmoji: false, emoji: undefined }
| JavaScript | 0 | @@ -99,40 +99,8 @@
/ =%3E
- %7B startsWithEmoji: true, emoji:
':h
@@ -105,18 +105,16 @@
:house:'
- %7D
%0A%0Aconsol
@@ -169,41 +169,8 @@
/ =%3E
- %7B startsWithEmoji: false, emoji:
und
@@ -179,7 +179,5 @@
ined
- %7D
%0A
|
a79fdba9ef6da083fe8c7f3455bd1a031afada09 | Use octokit/rest | bin/todo.js | bin/todo.js | #!/usr/bin/env node
const program = require('commander')
const chalk = require('chalk')
const GitHubAPI = require('github')
const pushHandler = require('../src/push-handler')
const fs = require('fs')
const path = require('path')
program
.option('-o, --owner <owner>', 'owner')
.option('-r, --repo <repo>', 'repo')
... | JavaScript | 0 | @@ -88,25 +88,23 @@
)%0Aconst
-GitHubAPI
+octokit
= requi
@@ -111,15 +111,24 @@
re('
-github'
+@octokit/rest')(
)%0Aco
@@ -480,41 +480,8 @@
am%0A%0A
-const github = new GitHubAPI(%7B%7D)%0A
if (
@@ -490,22 +490,23 @@
le) %7B%0A
-github
+octokit
.repos.g
@@ -580,22 +580,23 @@
') %7D)%0A
-github
+octokit
... |
ab860c8b09b17ef49bc584716f8235b898f05dde | clear code | source/jquery.autoload.js | source/jquery.autoload.js | /**
* Autoload
*/
(function($) {
// Autoload namespace: private properties and methods
var Autoload = {
/**
* Include necessary CSS file
*/
css: function(file, options) {
var collection = $("link[rel=stylesheet]");
var path = options.basePath + options.cssPath + file;
for (var i in collection) {
if (p... | JavaScript | 0.000081 | @@ -311,32 +311,33 @@
%7B%0A%09%09%09if (path ==
+=
collection%5Bi%5D.h
@@ -339,24 +339,24 @@
%5Bi%5D.href) %7B%0A
-
%09%09%09%09// is lo
@@ -1140,16 +1140,10 @@
r i
-= 0; i %3C
+in
col
@@ -1153,20 +1153,8 @@
tion
-.length; i++
) %7B%0A
@@ -1167,16 +1167,17 @@
(path ==
+=
collect
@@ -2013,26 +2013,48 @@
... |
67f2aaf0407eb22d8d8b8b55a941c311ab7359be | Update employment-support-allowance.js | lib/projects/employment-support-allowance.js | lib/projects/employment-support-allowance.js | {
"id":3,
"name":"Apply for Employment Support Allowance (ESA)",
"description": "",
"theme": "Health & Disability",
"location": "Leeds",
"phase":"discovery",
"sro":"Justin Russell",
"service_man":"Adam Tostevin",
"phase-history":{
"discovery": [
{"label":"Started", "date": "Nov 2015"}
]
... | JavaScript | 0 | @@ -80,19 +80,127 @@
tion%22: %22
+Discovery is looking at how we can engage better with new ESA customers and allow users to claim ESA online.
%22,%0A
-
%22theme
@@ -420,16 +420,284 @@
%22%7D%0A %5D
+,%0A %22alpha%22: %5B%0A %7B%22label%22:%22Predicted%22, %22date%22: %22Jan 2016%22%7D%0A %5D,%0A ... |
9abc8fc165714929d76a1780b9e31f56225f5d4e | Allow listeners to be added for end of queue event | app/utils/asyncQueueStructures.js | app/utils/asyncQueueStructures.js | class Stack {
constructor() {
this.storage = [];
this.size = 0;
}
push(val) {
this.storage[this.size++] = val;
}
pop() {
if (this.size) {
return this.storage.splice(--this.size, 1)[0];
}
}
}
class Queue {
constructor() {
this.inbox = new Stack();
this.outbox = new Stack(... | JavaScript | 0 | @@ -715,24 +715,62 @@
s.size = 0;%0A
+ this._endListeners = new Queue();%0A
%7D%0A add(ac
@@ -1217,85 +1217,389 @@
-%7D else %7B%0A this.active = false;%0A %7D%0A action.apply(action, args
+ action.apply(action, args);%0A %7D else %7B%0A action.apply(action, args);%0A ... |
bb816d369325b02f2c0fc22956918147e8c09a0d | Improve handling to multipel concurrent diffs | js/components/WindowManager.js | js/components/WindowManager.js | import React from "react";
import PropTypes from "prop-types";
import {
snapDiffManyToMany,
boundingBox,
snapWithinDiff,
snap,
traceConnection
} from "../snapUtils";
const WINDOW_HEIGHT = 116;
const WINDOW_WIDTH = 275;
const abuts = (a, b) => {
const wouldMoveTo = snap(a, b);
return wouldMoveTo.x !== u... | JavaScript | 0 | @@ -425,16 +425,41 @@
.y%0A%7D);%0A%0A
+// TODO: This should not%0A
const ap
@@ -503,24 +503,244 @@
) =%3E
+ %7B
%0A
-diffs.reduce(
+const metaDiff = diffs.reduce((meta, diff) =%3E (%7B%0A // Use the smallest non-zero diff for each axis.%0A x: meta.x === 0 ? diff.x : Math.min(meta.x, diff.x),%0A y: meta.... |
df9842ce1be11165aa98a179e14b6e1836d7c842 | Stop overwriting mode commands. | app/js/modes.js | app/js/modes.js | /*global define, _, zed */
define(function(require, exports, module) {
"use strict";
plugin.consumes = ["eventbus", "command"];
plugin.provides = ["modes"];
return plugin;
function longestFirst(a, b) {
return b.length - a.length;
}
function endsWith(str, suffix) {
return st... | JavaScript | 0 | @@ -6140,88 +6140,8 @@
= %7B%0A
- doc: %22Begin using this mode for the current document.%22,%0A
|
5a8db2173a6caeb37de5cf84c5f56ecdb3d68a3d | fix bad reference to pockets. | js/frontend/providers/watch.js | js/frontend/providers/watch.js | 'use strict';
define(['./module', 'darkwallet'], function (providers, DarkWallet) {
providers.factory('watch', ['$wallet', function($wallet) {
// - start provider
/**
* Watch / ReadOnly Pockets from contact
*/
function WatchProvider() {
}
// Remove a watch only pocket from a contact
WatchProvider... | JavaScript | 0.000001 | @@ -3091,32 +3091,39 @@
cket = identity.
+wallet.
pockets.getPocke
@@ -3454,16 +3454,23 @@
dentity.
+wallet.
pockets.
|
24b867ea19647e149929cc0ec7ede97d6a7d530d | Make modal contents scrollable | client/utils/Modal.js | client/utils/Modal.js | import React from "react";
import Modal from "react-modal";
export const modalStyles = {
overlay: {
backgroundColor: "rgba(238, 238, 238, 0.98)"
},
content: {
backgroundColor: "transparent",
border: "none",
maxWidth: "800px",
top: "50%",
left: "50%",
right: "auto",
bottom: "auto",... | JavaScript | 0.000001 | @@ -144,17 +144,90 @@
, 0.98)%22
+,%0A overflow: %22auto%22,%0A display: %22flex%22,%0A justifyContent: %22center%22
%0A
-
%7D,%0A c
@@ -324,21 +324,17 @@
top:
-%2250%25%22
+0
,%0A le
@@ -341,13 +341,9 @@
ft:
-%2250%25%22
+0
,%0A
@@ -351,22 +351,17 @@
right:
-%22auto%22
+0
,%0A bo
@@... |
b644515b3ebb82593c6303cd102d3920ebfc72bb | populate a contact email address | js/routes/application_route.js | js/routes/application_route.js | /**
*
*/
App.ApplicationRoute = Ember.Route.extend(
{
actions:
{
error: function(reason, transition)
{
console.log('--------------------------------------- error ---------------------------------------------------');
console.log(reason);
console.log(transition);
if (typeof reason.... | JavaScript | 0.999992 | @@ -1781,17 +1781,24 @@
', %22
+Cashback
Catalog
-ue
%22);%0A
@@ -1855,15 +1855,170 @@
ies'));%0A
+ controller.set('contact', App.contact.email);%0A controller.set('contactMailto', 'mailto: ' + App.contact.email + '?subject=' + App.contact.subject);%0A
%7D%0A%7D);
|
64481ec868c515c4591a0bbe1a19687081eb97ad | stop travis failing on gdax trade timestamps | js/test/Exchange/test.trade.js | js/test/Exchange/test.trade.js | 'use strict'
// ----------------------------------------------------------------------------
const log = require ('ololog')
, ansi = require ('ansicolor').nice
, chai = require ('chai')
, expect = chai.expect
, assert = chai.assert
/* -------------------------------------------... | JavaScript | 0 | @@ -1276,16 +1276,162 @@
0 : 0)%0A%0A
+ const exchangesExcludedFromTimestampCheck = %5B%0A 'gdax',%0A %5D%0A%0A if (!exchangesExcludedFromTimestampCheck.includes (exchange.id))%0A
asse
@@ -1607,16 +1607,17 @@
(now))%0A
+%0A
//--
|
79c2d22c2598aa61cee20db34078313a74d12dc1 | remove assert require | spec/api-debugger-spec.js | spec/api-debugger-spec.js | const chai = require('chai')
const assert = require('assert')
const dirtyChai = require('dirty-chai')
const http = require('http')
const path = require('path')
const {closeWindow} = require('./window-helpers')
const BrowserWindow = require('electron').remote.BrowserWindow
const {expect} = chai
chai.use(dirtyChai)
des... | JavaScript | 0.000004 | @@ -26,41 +26,8 @@
i')%0A
-const assert = require('assert')%0A
cons
|
697a67cf15ebbc563cfb76194bd80a2c7dbcd67f | resolve conflicts | src/themes/default/webpack.config.js | src/themes/default/webpack.config.js | // You can extend default webpack build here. Read more on docs: https://github.com/DivanteLtd/vue-storefront/blob/master/doc/Working%20with%20webpack.md
module.exports = function (config, { isClient, isDev }) {
return config
}
| JavaScript | 0.00004 | @@ -122,26 +122,28 @@
/doc
-/Working%2520with%2520
+s/guide/core-themes/
webp
|
ad2927b3b22310909672ce51bf9a7b5d575a52a1 | Add remote initialisation support | source/node/system/archiveManagement/ArchiveSource.js | source/node/system/archiveManagement/ArchiveSource.js | const VError = require("verror");
const AsyncEventEmitter = require("../events/AsyncEventEmitter.js");
const getUniqueID = require("../../tools/encoding.js").getUniqueID;
const createCredentials = require("../credentials.js");
const credentialsToSource = require("./marshalling.js").credentialsToSource;
const DefaultCo... | JavaScript | 0 | @@ -4893,32 +4893,58 @@
k(masterPassword
+, initialiseRemote = false
) %7B%0A if (
@@ -5556,11 +5556,8 @@
als,
- /*
ini
@@ -5567,16 +5567,13 @@
lise
- */ fals
+Remot
e)%0A
|
d9724eef0316f5488b2125e4232c2b6a11a1a31a | Allow instance deletion to be called independently of addSnapshot. | src/tracing/model/object_instance.js | src/tracing/model/object_instance.js | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* @fileoverview Provides the ObjectSnapshot and ObjectHistory classes.
*/
base.require('base.range');
base.require('base.sorted_a... | JavaScript | 0.00025 | @@ -1663,32 +1663,38 @@
Ts');%0A if (
+ts %3E=
this.deletionTs
@@ -1692,36 +1692,16 @@
letionTs
- != Number.MAX_VALUE
)%0A
@@ -1723,98 +1723,98 @@
or('
-The instance has been deleted. ' +%0A 'No more snapshots can be added
+Snapshots cannot be added after ' +%0A ... |
e622d7cfb075e8a3e567b8a5bdfb59f451e70493 | Return 415 in case an image media type is not supported | routes/attachments.js | routes/attachments.js | "use strict";
var Page = require("../models/page");
var parse = require("url").parse;
var moveFiles = require("../lib/move-files");
var supportedMediaTypes = require("../config").supportedMediaTypes;
var fs = require("fs");
var path = require("path");
var loadPage = function (req, res, next) {
if (!req.headers.r... | JavaScript | 0.000001 | @@ -1983,16 +1983,96 @@
%7D);%0A%0A
+ if (unsupportedImageType) %7B%0A return res.send(415);%0A %7D%0A
%0A
|
d404a5d65837c8626f4afa294e5773cea0b4299d | Update StaggerConfig.js | src/tweens/typedefs/StaggerConfig.js | src/tweens/typedefs/StaggerConfig.js | /**
* @typedef {object} Phaser.Types.Tweens.StaggerConfig
* @since 3.19.0
*
* @property {any} targets - The object, or an array of objects, to run the tween on.
* @property {number} [delay=0] - The number of milliseconds to delay before the tween will start.
* @property {number} [duration=1000] - The duration of ... | JavaScript | 0 | @@ -76,94 +76,8 @@
%0A *%0A
- * @property %7Bany%7D targets - The object, or an array of objects, to run the tween on.%0A
* @
|
237be8847a763cc8e7e2799afa8fa1dcf82456e7 | make file helper a little more readable | test/helpers/file.js | test/helpers/file.js | var fs = require('fs');
module.exports.copy = function (source, target, callback) {
var finished = false;
var readStream = fs.createReadStream(source);
readStream.on("error", function(error) {
done(error);
});
var writeStream = fs.createWriteStream(target);
writeStream.on("error", fu... | JavaScript | 0.000001 | @@ -515,32 +515,42 @@
if (error) %7B
+%0D%0A
console.log('una
@@ -565,25 +565,41 @@
opy file');
-%7D
+%0D%0A %7D%0D%0A
%0D%0A fini
@@ -756,16 +756,24 @@
rror) %7B
+%0D%0A
console.
@@ -802,17 +802,29 @@
file');
-%7D
+%0D%0A %7D%0D%0A
%0D%0A ca
|
b172bc4b845c6745f66076753b55c745c0978555 | Fix quote and reply | src/ui/components/views/ChatInput.js | src/ui/components/views/ChatInput.js | /* @flow */
import React, { Component, PropTypes } from 'react';
import ReactNative from 'react-native';
import shallowEqual from 'shallowequal';
import ImageChooser from 'react-native-image-chooser';
import Colors from '../../Colors';
import Icon from './Icon';
import GrowingTextInput from './GrowingTextInput';
impor... | JavaScript | 0 | @@ -1924,20 +1924,23 @@
o: text.
-from
+creator
,%0A%09%09%09quo
@@ -1953,20 +1953,20 @@
t: text.
-text
+body
%0A%09%09%7D);%0A%09
@@ -2050,20 +2050,23 @@
o: text.
-from
+creator
%0A%09%09%7D);%0A%09
|
068850e087f11dedba23ce978bb7c90670946a0b | tag.name is lowercase, BREAKING CHANGE | test/multi_stream.js | test/multi_stream.js | var trumpet = require('../');
var test = require('tape');
var fs = require('fs');
var through = require('through');
var concat = require('concat-stream');
test('multiple read streams', function (t) {
t.plan(7);
var tr = trumpet();
tr.pipe(through(null, function () { output.end() }));
var output = ... | JavaScript | 0.999975 | @@ -586,12 +586,12 @@
e, '
-SPAN
+span
');%0A
|
08d4abd8ac0f11098ac3d463b58f06200d374b2c | Add back browser refresh at the top of prefill test case | test/e2e/specs/recordedit/data-independent/add/00-recordedit.add.spec.js | test/e2e/specs/recordedit/data-independent/add/00-recordedit.add.spec.js | var chaisePage = require('../../../../utils/chaise.page.js'), IGNORE = "tag:isrd.isi.edu,2016:ignore", HIDDEN = "tag:misd.isi.edu,2015:hidden";
var recordEditHelpers = require('../../helpers.js'), chance = require('chance').Chance();
describe('Record Add', function() {
var params, testConfiguration = browser.para... | JavaScript | 0 | @@ -4459,32 +4459,183 @@
ll(function() %7B%0A
+ // Refresh the page%0A browser.get(browser.params.url + %22:%22 + testParams.tables%5B0%5D.table_name);%0A browser.sleep(3000);%0A%0A
// W
|
8b42ab14890c1bcb8da5555e9ffb9281e37462c2 | Update tests | test/notification.js | test/notification.js | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'mocha-jsdom';
import expect from 'expect';
import Notification from '../src/notification';
const MOCK = {
message: 'Test',
action: 'Dismiss',
onClick: function handleClick() {
return;
},
style: {
bar: {
... | JavaScript | 0.000001 | @@ -137,16 +137,18 @@
;%0Aimport
+ %7B
Notific
@@ -152,16 +152,37 @@
fication
+, NotificationStack %7D
from '.
@@ -187,28 +187,21 @@
'../src/
-notification
+index
';%0A%0Acons
@@ -1520,12 +1520,291 @@
;%0A %7D);%0A%7D);%0A
+%0Adescribe('NotificationStack', () =%3E %7B%0A jsdom();%0A%0A it('should be a valid... |
2f543ef202f8f14861696e6af37193d687e8f3e5 | test push | app/js/painter.js | app/js/painter.js | define([],function() {
var canvas = document.getElementById("game");
var ctx = canvas.getContext("2d");
var painter = {
drawBG: function() {
ctx.save();
ctx.fillStyle = "#FFFFFF";
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.restore();
... | JavaScript | 0.000001 | @@ -4,11 +4,8 @@
ine(
-%5B%5D,
func
|
3e7027f16a8c5fcaec69b77c1cd092ddbcb6dbbd | fix update account name in UI after name changed | src/frontend/electron_vue/src/store/modules/wallet.js | src/frontend/electron_vue/src/store/modules/wallet.js | const wallet = {
namespaced: true,
state: {
accounts: [],
activeAccount: null,
balance: null,
mutations: null,
receiveAddress: null,
walletBalance: null,
walletPassword: null
},
mutations: {
SET_ACCOUNTS(state, accounts) {
state.accounts = accounts;
},
SET_ACTIVE_AC... | JavaScript | 0 | @@ -1073,16 +1073,8 @@
mit(
-%7B type:
%22SET
@@ -1097,20 +1097,8 @@
unts
-: accounts %7D
);%0A
|
29e745b56b2d41510f5075be37ac3e13553dc410 | Fix karma coverage | app/karma.conf.js | app/karma.conf.js | 'use strict';
// Karma configuration
// Generated on Fri Apr 21 2017 19:34:22 GMT-0400 (EDT)
module.exports = function(config) {
var sourcePreprocessors = 'coverage';
function isDebug(argument) {
return argument === '--debug';
}
if (process.argv.some(isDebug)) {
sourcePreprocessors = [];
}
c... | JavaScript | 0.000026 | @@ -165,16 +165,17 @@
erage';%0A
+%0A
functi
@@ -2038,14 +2038,9 @@
lic/
-script
+j
s/**
@@ -2388,137 +2388,69 @@
-dir : 'reports/coverage',%0A reporters: %5B%0A %7B type: 'lcov', subdir: '.' %7D,%0A %7B type: 'json', subdir: '.' %7D%0A %5D
+type: 'lcov',%0A dir : 'reports',%0A ... |
8fac55cafc520feba9d0e6d2a7699a53544593f3 | revert accidental boolean flip, this test doesn't make much sense any more | share/www/script/test/update_documents.js | share/www/script/test/update_documents.js | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed u... | JavaScript | 0.00003 | @@ -4158,36 +4158,35 @@
h-Full-Commit%22:%22
-fals
+tru
e%22%7D%0A %7D);%0A %0A d
|
3f7cb80f4eb3054e4d3e8fe92e4e8a3d0b48de57 | Add sensor stats schema | app/lib/models.js | app/lib/models.js | var mongoose = require( 'mongoose' );
var Schema = mongoose.Schema;
var SensorReadingSchema = Schema( {
date: Date,
temp_c: Number,
temp_f: Number,
humidity: Number,
pressure: Number,
luminosity: Number
} );
SensorReadingSchema.statics = {
add: function ( sensorReadingData, cb ) {
... | JavaScript | 0.000001 | @@ -31,17 +31,16 @@
ose' );%0A
-%0A
var Sche
@@ -59,24 +59,655 @@
e.Schema;%0A%0A%0A
+// Sensor Stats%0Avar SensorStatsSchema = Schema( %7B%0A date: Date,%0A type: String,%0A avg_temp_c: Number,%0A min_temp_c: Number,%0A max_temp_c: Number,%0A avg_temp_f: Number,%0A min_temp_f: Number,%0A max... |
8e422e61f9e1aeb91d5d0a4c7db368f390af2953 | remove unneccessary stopPropagation | assets/js/ui.js | assets/js/ui.js | (function (window, Cryptoloji, $, undefined) {
/*
methods prefixed with _ are "private"
to see exposed method goto bottom :)
*/
function _createKeyElement (key) {
return '<p class="key" key="' + key + '">' + Cryptoloji.twemoji(key) + '</p>'
}
//
// Encrypt / key select
//
function _keySele... | JavaScript | 0.999992 | @@ -548,36 +548,8 @@
d')%0A
- event.stopPropagation()%0A
@@ -792,36 +792,8 @@
d')%0A
- event.stopPropagation()%0A
|
e438b7cd353c0e6230393368871f7a90f0069ddd | check to see if field is non-null | ast/function.js | ast/function.js | 'use strict';
/* @jsig */
var assert = require('assert');
var uuid = require('uuid');
var LiteralTypeNode = require('./literal.js');
var LocationLiteralNode = require('./location-literal.js');
var JsigASTReplacer = require('../type-checker/lib/jsig-ast-replacer.js');
module.exports = FunctionNode;
function Functio... | JavaScript | 0.000072 | @@ -2983,16 +2983,54 @@
sGeneric
+ && ast.genericIdentifierUUID !== null
) %7B%0A
|
43e6a3be74bf077397131d6fbf7f5557beafa07c | Remove linebreaks from words in input file | app/initialize.js | app/initialize.js | var Trie = require('trie');
trie = new Trie();
/* Request words file */
var wordRequest = new XMLHttpRequest();
wordRequest.addEventListener('load', transferComplete, false);
wordRequest.addEventListener('progress', updateProgress, false);
wordRequest.open('get', 'words.txt', true);
var percentElement = document.ge... | JavaScript | 0.000016 | @@ -664,16 +664,40 @@
ds%5Bword%5D
+.replace(/%5Cr?%5Cn%7C%5Cr/, '')
);%0A %7D%0A%0A
|
f9ddc8c1da4a0e9fdbc788caebf63f1e23863d1a | fix addthis share link for root angular url | app/js/addthis.js | app/js/addthis.js | "use strict";
/**
* AddThis widget directive, Re-renders addthis buttons as angular changes
* views in our app since the add this buttons only load by default on page
* load and not when the DOM is updated. based on:
* {@link http://stackoverflow.com/questions/15593039/angularjs-and-addthis-social-plugin}
* @examp... | JavaScript | 0 | @@ -3626,16 +3626,234 @@
bsUrl();
+%0A%0A // Fix addthis share link for root url%0A if ($location.path() === '/') %7B%0A $scope.share.url = $scope.share.url + '#/';%0A %7D
%0A
|
2585f209f98f91da68739bdb33b599df45b3a6e6 | fix test missing assertion | test/res.download.js | test/res.download.js |
var after = require('after');
var assert = require('assert');
var Buffer = require('safe-buffer').Buffer
var express = require('..');
var request = require('supertest');
describe('res', function(){
describe('.download(path)', function(){
it('should transfer as an attachment', function(done){
var app = exp... | JavaScript | 0.002886 | @@ -2496,22 +2496,19 @@
ument',
-done);
+cb)
%0A %7D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.