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 |
|---|---|---|---|---|---|---|---|
a257f3a382204d60ed9cdaa3872656312dbce44b | Fix JS errors when loading non-form pages | app/assets/js/app/modules/inline-feedback.js | app/assets/js/app/modules/inline-feedback.js | import domready from './domready'
import getTransitionEndEvent from '../helpers/transitionend'
const transitionEndEvent = getTransitionEndEvent()
export const classExpanded = 'is-expanded'
export const classCollapsed = 'is-collapsed'
export const classHidden = 'u-hidden'
export const classFeedbackThanks = '.js-feedb... | JavaScript | 0.000003 | @@ -1258,16 +1258,41 @@
= open%0A
+ if (this.open) %7B%0A
th
@@ -1318,16 +1318,23 @@
s.open)%0A
+ %7D
%0A t
@@ -1381,16 +1381,43 @@
cancel%0A
+ if (this.cancel) %7B%0A
th
@@ -1447,16 +1447,24 @@
cancel)%0A
+ %7D%0A
%7D%0A
@@ -1484,32 +1484,53 @@
Form(element) %7... |
28faf09978966db309b0b5e7881237990502ecab | Revert back to Local API | app/components/CommonComponents/constants.js | app/components/CommonComponents/constants.js | export const TYPE_STORIES = 'story';
export const TYPE_TACTICS = 'tactic';
export const TYPE_PRINCIPLES = 'principle';
export const TYPE_THEORIES = 'theory';
export const TYPE_METHODOLOGIES = 'methodology';
// RECAPTCHA FOR LOCALHOST
export const RECAPTCHA_SITE_KEY = '6LfeoicUAAAAADHJTSBd6PhfWyrJ1O_5f2Lx5GMe';
// REC... | JavaScript | 0 | @@ -228,16 +228,19 @@
CALHOST%0A
+//
export c
@@ -341,19 +341,16 @@
ND PROD%0A
-//
export c
|
17ead237328885d8c82d3bb6ccbadbc6beb55a9d | Mark new organization groups as leafs initially | sencha-workspace/SlateAdmin/app/controller/settings/Groups.js | sencha-workspace/SlateAdmin/app/controller/settings/Groups.js | /*jslint browser: true, undef: true *//*global Ext*/
Ext.define('SlateAdmin.controller.settings.Groups', {
extend: 'Ext.app.Controller',
// controller config
views: [
'groups.Manager'
],
stores: [
'people.Groups'
],
models: [
'person.Group'
],
routes: {
... | JavaScript | 0.000003 | @@ -2413,16 +2413,48 @@
ation',%0A
+ leaf: true,%0A
|
e622fb891650df4e09f21657a2110b93396e3484 | fix sorting result | app/containers/DeviceDetailPage/selectors.js | app/containers/DeviceDetailPage/selectors.js | /**
* Device Detail Page selectors
*/
import { createSelector } from 'reselect';
const selectDeviceDetailState = (state) => state.get('deviceDetail');
const makeSelectDeviceDetail = () => createSelector(
selectDeviceDetailState,
(deviceDetailState) => deviceDetailState.get('payload')[0]
);
const makeSelectDev... | JavaScript | 0.000001 | @@ -245,32 +245,54 @@
eDetailState) =%3E
+ %7B%0A const payload =
deviceDetailSta
@@ -312,11 +312,280 @@
ad')
-%5B0%5D
+;%0A if (payload.length %3E 0) %7B%0A payload.sort((a, b) =%3E %7B%0A if (a.DeviceName %3C b.DeviceName)%0A return -1;%0A if (a.DeviceName %3E b.DeviceName)%0A ... |
d6899491e222ede9b551d6c8529f313aeb59cd40 | Fix JSON parsing for new backend. | app/dashboard/static/js/linaro-jobs-1.0.2.js | app/dashboard/static/js/linaro-jobs-1.0.2.js | var csrftoken = $('meta[name=csrf-token]').attr('content');
$(document).ready(function () {
"use strict";
$('#li-job').addClass('active');
$('body').tooltip({
'selector': '[rel=tooltip]',
'placement': 'auto'
});
var table = $('#jobstable').dataTable({
'dom': '<"row"<"col-... | JavaScript | 0.999991 | @@ -1489,65 +1489,12 @@
-var parsed = JSON.parse(data);%0A parsed
+data
.res
@@ -1508,28 +1508,30 @@
SON.
-parse(parsed
+stringify(data
.result)
;%0A
@@ -1526,17 +1526,16 @@
.result)
-;
%0A
@@ -1558,30 +1558,12 @@
urn
-JSON.stringify(parsed)
+data
;%0A
|
8b1d622b48ab1231868a5381aea436cbdd0411e5 | Remove home and notifications column from the default columns | app/javascript/mastodon/reducers/settings.js | app/javascript/mastodon/reducers/settings.js | import { SETTING_CHANGE, SETTING_SAVE } from '../actions/settings';
import { COLUMN_ADD, COLUMN_REMOVE, COLUMN_MOVE } from '../actions/columns';
import { STORE_HYDRATE } from '../actions/store';
import { EMOJI_USE } from '../actions/emojis';
import { LIST_DELETE_SUCCESS, LIST_FETCH_FAIL } from '../actions/lists';
impor... | JavaScript | 0.000001 | @@ -1376,105 +1376,8 @@
%7D,%0A
- %7B id: 'HOME', uuid: uuid(), params: %7B%7D %7D,%0A %7B id: 'NOTIFICATIONS', uuid: uuid(), params: %7B%7D %7D,%0A
%5D);%0A
|
d526778f9b627b2726840f9a902428405db8fe74 | fix off by one error and refine relative date | script.js | script.js | (function() {
instagram_url = "https://docs.google.com/spreadsheets/d/1cJK_7uqOTtSR8zgc8toomNwcJObXFFPeR-U0QNBsklA/pubhtml";
github_url = "https://api.github.com/users/bunsenmcdubbs/events"
function tabletop_init(google_sheets_url, callback) {
Tabletop.init({
key: google_sheets_url,
callback: cal... | JavaScript | 0.000026 | @@ -3069,18 +3069,19 @@
(delta %3C
- 3
+= 6
0) %7B%0A
@@ -3300,16 +3300,85 @@
t) %3E 1;%0A
+ if (!plural) %7B%0A return %60a $%7Bbreakpoints%5Bidx%5D%5B1%5D%7D ago%60%0A %7D%0A
retu
@@ -3432,22 +3432,9 @@
dx%5D%5B
-plural ? 2 : 1
+2
%5D%7D a
|
b61ba90c340142a54e8358f64934a3d8c7750bed | Fix self DM (#17239) | app/lib/server/functions/createDirectRoom.js | app/lib/server/functions/createDirectRoom.js | import { Rooms, Subscriptions } from '../../../models/server';
import { settings } from '../../../settings/lib/settings';
import { getDefaultSubscriptionPref } from '../../../utils/server';
import { callbacks } from '../../../callbacks/server';
const generateSubscription = (fname, name, user, extra) => ({
alert: fals... | JavaScript | 0 | @@ -1290,17 +1290,18 @@
.length
-%3C
+==
= 2%0A%09%09?
@@ -1526,9 +1526,10 @@
gth
-%3C
+==
= 2
|
f70be77e39b37d78aa89221dd79ae632e562025c | Remove cached-run-in-this-context and use Node's 'vm' script caching | src/native-compile-cache.js | src/native-compile-cache.js | const Module = require('module')
const path = require('path')
const cachedVm = require('cached-run-in-this-context')
const crypto = require('crypto')
function computeHash (contents) {
return crypto.createHash('sha1').update(contents, 'utf8').digest('hex')
}
class NativeCompileCache {
constructor () {
this.cac... | JavaScript | 0.000001 | @@ -59,63 +59,8 @@
h')%0A
-const cachedVm = require('cached-run-in-this-context')%0A
cons
@@ -87,16 +87,41 @@
crypto')
+%0Aconst vm = require('vm')
%0A%0Afuncti
@@ -725,16 +725,599 @@
le%0A %7D%0A%0A
+ runInThisContext (code, filename) %7B%0A // produceCachedData is deprecated after Node 10.6, will need to up... |
f9eed220dedabfa3787855ed10a7e24f42ece350 | Add assertion to verify text content of pasted heading | tests/paste_events/paste_events.js | tests/paste_events/paste_events.js | /* bender-tags: editor,unit */
/* bender-ckeditor-plugins: clipboard,autoid */
/* bender-include: _helpers/pasting.js */
/* global assertPasteEvent */
'use strict';
(function() {
bender.editor = {
config: {
enterMode: CKEDITOR.ENTER_P,
autoid: {
autostart: false
}
}
};
bender.... | JavaScript | 0.000001 | @@ -1034,32 +1034,70 @@
lse%0A %7D));%0A%0A
+ console.log(editor.getData());%0A%0A
resumeAfte
@@ -4257,32 +4257,51 @@
ains original id
+ and pasted content
%0A asser
@@ -4340,32 +4340,95 @@
tribute('id'));%0A
+ assert.areSame('Pasted Heading', heading.getText());%0A
%7D);... |
5ae974d6a008296f42119a07a4cbf2b38770c326 | Update retire service test | tests/retire-service-modal.spec.js | tests/retire-service-modal.spec.js | describe('Retire Service Modal', function() {
beforeEach(module('app.components', 'gettext'));
describe('controller', function() {
var controller;
var $scope;
beforeEach(inject(function($rootScope, $injector, $controller) {
state = $injector.get('RetireServiceModal');
$scope = $rootScope.$... | JavaScript | 0 | @@ -422,14 +422,8 @@
vice
-Detail
s: a
|
e166913cafcedab5784a9969b4e9199e33f41b72 | Fix spaces | addon/mixins/flexberry-objectlistview-route.js | addon/mixins/flexberry-objectlistview-route.js | /**
* @module ember-flexberry
*/
import Ember from 'ember';
export default Ember.Mixin.create({
actions: {
/**
* Table row click handler.
*
* @param {Ember.Object} record Record related to clicked table row.
*/
objectListViewRowClick: function(record, editFormRoute) {
this.transi... | JavaScript | 0.999946 | @@ -2170,16 +2170,17 @@
a.%0A */%0A
+
objectL
@@ -2225,16 +2225,17 @@
s) %7B%0A
+
return u
@@ -2244,15 +2244,16 @@
efined;%0A
+
%7D%0A%7D);%0A
|
53a5e97af9652be7f4372a4b125518041de95737 | Fix bad indentation | app/scripts/views/bounding_box_collection.js | app/scripts/views/bounding_box_collection.js | /*global B2pick, Backbone, JST*/
B2pick.Views = B2pick.Views || {};
(function () {
'use strict';
B2pick.Views.BoundingBoxCollection = Backbone.View.extend({
template: JST['app/scripts/templates/bounding_box_collection.hbs'],
events: {
'click .js-download': 'onDownload',
... | JavaScript | 0.037102 | @@ -729,32 +729,34 @@
n() %7B%0A
+
this._boundingBo
@@ -768,32 +768,34 @@
dexView = null;%0A
+
this._
@@ -964,32 +964,34 @@
n() %7B%0A
+
if(!this._boundi
@@ -1005,32 +1005,36 @@
DownloadView) %7B%0A
+
this
@@ -1118,32 +1118,38 @@
%7B%0A
+
... |
c24d14fb1a0d6db91add62b90c42721835e1010a | Update app.js | script/app.js | script/app.js | var ThangProApp = angular.module("ThangProApp", [])
.controller("ViduController", function($scope,$http) {
$http({
method: 'POST',
url: 'https://thangapi.herokuapp.com'
}).then(function successCallback(response) {
console.log("ok");
console.log(response.a);
... | JavaScript | 0.000002 | @@ -199,16 +199,70 @@
app.com'
+,%0D%0A%09%09 %09%09headers:%7B'Access-Control-Allow-Origin':'*'%7D
%0D%0A%09%09%09%09%7D)
|
bc37600a2f6c23228480de51916e55bd0c2a36b3 | remove errant console.trace | src/InputManager.js | src/InputManager.js | import { findDOMNode } from 'react-dom'
import mouseMath from './mouseMath.js'
import Debug from './debug.js'
export default class InputManager {
constructor(ref, notify, component, findit = findDOMNode, mouse = mouseMath) {
this.node = findit(ref)
this.notify = notify
this.cancel = this.cancel.bind(th... | JavaScript | 0.000003 | @@ -1993,28 +1993,8 @@
) %7B%0A
- console.trace()%0A
|
60d0b2c2a740138a64485d0e20be2ffc4a3a1b8a | remove scroll bars | src/pages/happy-birthday.js | src/pages/happy-birthday.js | import { useEffect, useState } from "react";
const HappyBirthday = () => {
const [darkMode, setDarkMode] = useState(false);
const isDarkMode = () =>
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches;
useEffect(() => {
setDarkMode(isDarkMode());
}, []);
return (
... | JavaScript | 0.000001 | @@ -314,16 +314,53 @@
(%0A %3C
+div className=%22fixed overflow-hidden%22
%3E%0A
@@ -848,16 +848,19 @@
%3E%0A %3C/
+div
%3E%0A );%0A%7D
|
0ccd6982f6cc48ff61d88f2e2818bc85eff4011a | add status attribute in status endpont | app/src/routes/api/v1/microservice.router.js | app/src/routes/api/v1/microservice.router.js | const Router = require('koa-router');
const MicroserviceModel = require('models/microservice.model');
const VersionModel = require('models/version.model');
const appConstants = require('app.constants');
const logger = require('logger');
const MicroserviceService = require('services/microservice.service');
const Microse... | JavaScript | 0 | @@ -1280,16 +1280,27 @@
atus: 1,
+ status: 1,
_id: 0
|
c577a1dc936aa7555e9090b9474a94a474e19414 | fix links to CLI commands source code (#44835) | aio/tools/transforms/cli-docs-package/index.js | aio/tools/transforms/cli-docs-package/index.js | const {resolve} = require('canonical-path');
const semver = require('semver');
const Package = require('dgeni').Package;
const basePackage = require('../angular-base-package');
const contentPackage = require('../content-package');
const {CONTENTS_PATH, TEMPLATES_PATH, requireFolder} = require('../config');
const CLI_SO... | JavaScript | 0.000005 | @@ -2278,12 +2278,8 @@
n =
-%60v$%7B
semv
@@ -2310,10 +2310,8 @@
ion)
-%7D%60
;%0A
|
37b7ef3ee2442b92eca506ded2dd802b0a54f791 | Move function to reduce scope. | redef/catalinker/client/app/components/vocabulary/vocabularyService.js | redef/catalinker/client/app/components/vocabulary/vocabularyService.js | (function() {
function asNormalPromise($q, httpPromise) {
var deferred = $q.defer();
httpPromise
.success(function (data) {
deferred.resolve(data);
}).error(function (data, status, headers) {
deferred.reject({status: status, headers: headers,... | JavaScript | 0 | @@ -9,16 +9,245 @@
on() %7B%0A%0A
+ angular.module('catalinker.vocabulary', %5B%5D)%0A .constant('ontologyUri', 'http://192.168.50.12:8005/ontology')%0A .factory('ontologyFactory', %5B'$q', '$http', 'ontologyUri', function($q, $http, ontologyUri) %7B%0A
func
@@ -282,24 +282,32 @@
pPromis... |
459dd5f81de8b42b7ba935dd74a395d7817b3297 | Update scribe-superscript-prompt-plugin.js | src/blocks/scribe-plugins/scribe-superscript-prompt-plugin.js | src/blocks/scribe-plugins/scribe-superscript-prompt-plugin.js | "use strict";
var selectionRange = require('selection-range');
var Modal = require('../../packages/modal');
var Dom = require('../../packages/dom');
var MODAL_FORM_TEMPLATE = ({ modal, title, canRemove }) => {
return `
<p>
<input id="${modal.id}-sup-title" type="text" value="${title}" />
</p>
`;
}
... | JavaScript | 0.000001 | @@ -189,19 +189,8 @@
itle
-, canRemove
%7D)
@@ -2698,34 +2698,66 @@
nd('
-superscript', false, false
+insertHTML', false, %60%3Cspan%3E$%7BanchorNode.innerHTML%7D%3C/span%3E%60
);%0A%0A
|
e1b71294e2645373e54790c916115647521df625 | remove console.log | src/board/categories/category-directive/category-directive.js | src/board/categories/category-directive/category-directive.js | (function() {
"use strict";
var module = angular.module("categoryDirectiveModule", ["ui.router", "boardAPIModule"]);
module.directive("kbCategory", function() {
return {
scope: {
category: "=categoryModel",
board: "=boardModel"
},
restrict: "E",
replace: true,
templateUrl: "board/categorie... | JavaScript | 0.000006 | @@ -791,32 +791,8 @@
) %7B%0A
-%09%09%09console.log(%22ping%22);%0A
%09%09%09b
|
a7b6b231cb9be39069087f68237679c8a8458539 | Fix typo | toolkits/landcover/impl/dataset.js | toolkits/landcover/impl/dataset.js | /**
* @license
* Copyright 2019 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/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | JavaScript | 0.999999 | @@ -6890,17 +6890,16 @@
ng cloud
-s
and sha
|
8a8b4e9a178d507c72bbdc97f428dcc8f7a63756 | delete unreachable breanches (#466) | serializer.js | serializer.js | 'use strict'
module.exports = class Serializer {
constructor (options = {}) {
switch (options.rounding) {
case 'floor':
this.parseInteger = Math.floor
break
case 'ceil':
this.parseInteger = Math.ceil
break
case 'round':
this.parseInteger = Math.round
... | JavaScript | 0 | @@ -1435,36 +1435,24 @@
tetime (date
-, skipQuotes
) %7B%0A cons
@@ -1465,35 +1465,8 @@
es =
- skipQuotes === true ? '' :
'%22'
@@ -1579,36 +1579,24 @@
sString(date
-, skipQuotes
)%0A %7D%0A%0A asD
@@ -1612,36 +1612,24 @@
llable (date
-, skipQuotes
) %7B%0A retu
@@ -1672,36 +1672,24 @@
atetime(date
-,... |
58ef9cab08b0b3cc8dfbbec998dae6f5957b5e77 | Correct check for array fixes #21 | src/ResizeSensor.js | src/ResizeSensor.js | /**
* Copyright Marc J. Schmidt. See the LICENSE file at the top-level
* directory of this distribution and at
* https://github.com/marcj/css-element-queries/blob/master/LICENSE.
*/
;
(function() {
/**
* Class for dimension change detection.
*
* @param {Element|Element[]|Elements|jQuery} element... | JavaScript | 0 | @@ -4475,34 +4475,68 @@
if (
-'a
+%22%5Bobject A
rray
-'
+%5D%22
===
-typeof
+Object.prototype.toString.call(
element
+)
%0A
@@ -4960,8 +4960,9 @@
%7D%0A%0A%7D)();
+%0A
|
1af81f56f8124f7be91d227f915e95b749156933 | Fix bug | server/api.js | server/api.js | /* eslint prefer-arrow-callback: 0*/
const express = require('express');
const fetch = require('node-fetch');
const jwt = require('jsonwebtoken');
const User = require('./models/users');
const Book = require('./models/books');
const Request = require('./models/requests');
const searchUrl = (searchTerms, startIndex = ... | JavaScript | 0.000001 | @@ -3201,19 +3201,8 @@
a =
-JSON.parse(
req.
@@ -3216,17 +3216,16 @@
ogleData
-)
;%0A ne
|
52e499fbf46b9c12819c26b0ab87496b62ab2810 | Remove unused code | server/app.js | server/app.js | var express = require('express'),
bodyParser = require('body-parser'),
cors = require('cors'),
fayeWebsocket = require('faye-websocket'),
EventEmitter = require('events').EventEmitter,
EventSource = fayeWebsocket.EventSource;
var Match = require('./match');
module.exports = ... | JavaScript | 0.000006 | @@ -796,551 +796,8 @@
);%0A%0A
- app.post('/start', function (req, res, next) %7B%0A var body = req.body;%0A%0A match = new Match(events, body.a, body.b, Match.LengthSeconds);%0A match.on('change', function () %7B%0A sendSseEventScore();%0A if (match && match.done) %7B%0A MatchDb.save(match)... |
69e3a99cbb025b548d046dc24a82697c9c6c7786 | fix newUploadDir not existing | server.js | server.js | #!/usr/bin/env node
var formidable = require('formidable'),
http = require('http'),
util = require('util'),
os = require('os'),
fs = require('fs'),
uploadDir = os.tmpDir() + "/uplodr",
config = require('./config.js');
if (typeof config.customUploadDir !== 'undefined') uploadDir = config.custom... | JavaScript | 0.001243 | @@ -698,24 +698,112 @@
neOffset();%0A
+ var newUploadDir = uploadDir + '/' + dateString;%0A mkdirIfNotExist(newUploadDir);%0A
// parse
@@ -880,33 +880,36 @@
uploadDir =
-u
+newU
ploadDir
+ '/' + dat
@@ -896,35 +896,16 @@
ploadDir
- + '/' + dateString
;%0A fo
|
f7b324efffe17452e7c077e1b0498e802307d879 | Update comment component | src/ggrc/assets/javascripts/controllers/comment_controller.js | src/ggrc/assets/javascripts/controllers/comment_controller.js | /*!
Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
Created By: urban@reciprocitylabs.com
Maintained By: urban@reciprocitylabs.com
*/
(function (can, $) {
can.Component.extend({
tag: 'add-comment',
... | JavaScript | 0 | @@ -260,17 +260,24 @@
n, $
+, GGRC
) %7B%0A
-can
+GGRC
.Com
@@ -286,16 +286,24 @@
nent
-.extend(
+s('addComment',
%7B%0A
@@ -2650,18 +2650,18 @@
Notifica
-i
t
+i
on = thi
@@ -2748,18 +2748,18 @@
Notifica
-i
t
+i
on%5B0%5D.ch
@@ -4129,11 +4129,22 @@
is.can.$
+, this.GGRC
);%0A
|
7c94ea5a5bb8e87d35d1d8789dd81fc22bf90cbc | Fix parse error | src/actions/main.js | src/actions/main.js | import Cookies from 'js-cookie'
import {push} from 'react-router-redux'
import {withLabels} from './utils'
import {fetchMySQL} from '../utils'
var payloadActions = withLabels({})
function signin(screen_name) {
return dispatch => {
fetchMySQL(`INSERT IGNORE INTO user(screen_name) VALUES ("${screen_name}")`).the... | JavaScript | 0.000077 | @@ -4679,13 +4679,8 @@
BY
-DESC
hist
@@ -4693,16 +4693,21 @@
mestamp
+DESC
LIMIT 10
|
6b00ada8805de59045522a58a9062ccbfdebdad7 | Add onerror retry for flag loader | src/actions/quiz.js | src/actions/quiz.js | import {generateQuizOptions} from '../data/quiz';
export const SELECT_COUNTRY = 'SELECT_COUNTRY';
export const SET_QUIZ = 'SET_QUIZ';
export const setQuiz = (quiz) => ({
type: SET_QUIZ,
payload: quiz
});
export const fetchFlag = (country) => {
return new Promise(resolve => {
const flag = new Image();
f... | JavaScript | 0.000001 | @@ -221,28 +221,22 @@
nst
-fetchFlag = (country
+loadImg = (src
) =%3E
@@ -255,31 +255,41 @@
new Promise(
+(
resolve
+, reject)
=%3E %7B%0A co
@@ -292,19 +292,18 @@
const
-fla
+im
g = new
@@ -315,19 +315,20 @@
();%0A
-fla
+ im
g.onload
@@ -355,19 +355,129 @@
-flag.src =
+ img.onerror = ()... |
acb5500931114b2262b8c6da4b25038721983e3c | remove file extension check to allow edit files with other extensions like .sample .json | server.js | server.js | var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
var config = require('./config');
var fs = require('fs');
var path = require('path');
var requestHelper = {};
var FILE_EXTENSION = '.raml';
var homeDirectory = config.homeDirecto... | JavaScript | 0 | @@ -249,38 +249,8 @@
%7B%7D;%0A
-var FILE_EXTENSION = '.raml';%0A
var
@@ -1018,149 +1018,8 @@
) %7B%0A
- if (file && file.length %3E FILE_EXTENSION.length && file.lastIndexOf(FILE_EXTENSION) === (file.length - FILE_EXTENSION.length)) %7B%0A
@@ -1055,26 +1055,24 @@
-
path: path.r
@@... |
b0b50eb6e3ea1c3491de252a4704c247f4a2465b | Update api_2_call_2.js | src/api_2_call_2.js | src/api_2_call_2.js | function getResult(callback, json) {
console.log("Call made : api_2_call_2");
var input = json.input;
var all_required = false;
if(input.geoCode&&input.date){
var date = input.date;
var geoCode = input.geoCode;
all_required = true;
}
if(all_required){... | JavaScript | 0.000004 | @@ -462,24 +462,199 @@
01 += time;%0A
+ %0A var hour_min_sec_str = timhour_min_sec_stre.split(%22:%22);%0A var hour_str = hour_min_sec_str%5B0%5D;%0A var hour = parseInt(hour_str,10);%0A
%7Dels
@@ -824,32 +824,103 @@
_8601;%0A %0A
+ if(input.time)%7B%... |
8992628a1c2b71a11a1bcf8e3ab006a6bce07784 | Check for parsed and parsed[id] in location | server.js | server.js | var connect = require('connect');
var https = require('https');
var snout = require('snout');
var whiskers = require('whiskers');
var RedisStore = require('connect-redis')(connect);
var port = process.env.PORT || 8127;
var templates = snout.sniff(__dirname+'/templates');
connect(
connect.vhost('127.0.0.1|localhost... | JavaScript | 0 | @@ -1932,9 +1932,26 @@
if (
-!
+parsed.success &&
pars
@@ -1964,24 +1964,81 @@
cess%5Bid%5D) %7B%0A
+ var loc = parsed.success%5Bid%5D;%0A %7D else %7B%0A
re
@@ -2123,46 +2123,8 @@
%7D);%0A
- var loc = parsed.success%5Bid%5D;%0A
@@ -2290,99 +2290,13 @@
-res.writeHead(2... |
ead46301c8e5317fc057959b2c5b2503dd5b0ee9 | Fix express-request-proxy#9 (bodyparser ordering) | server.js | server.js | // Get dependencies
const express = require('express');
const path = require('path');
const http = require('http');
const bodyParser = require('body-parser');
// Load configuration
var config = require('./server/config');
// Get our API routes
const api = require('./server/routes/api');
// Get auth methods
const oau... | JavaScript | 0.000001 | @@ -630,24 +630,244 @@
%0A %7D)%0A);%0A%0A
+// Set our API proxy%0A// This needs to be the first definition to prevent this issue%0A// https://github.com/dvonlehman/express-request-proxy/issues/9%0A// affecting POST (and PUT) operations%0Aapp.use('/api/v1', api.router);%0A%0A
// Parsers f
@@ -965,62 +965,8 @@
);%... |
9b01b6ace2158534cd40b129de2e831292455ea9 | Fix port | server.js | server.js | 'use strict'
/**
* Load modules
*/
const http = require('http')
const express = require('express')
const fs = require('fs')
const request = require('request-promise')
const _ = require('lodash')
/**
* Set port to listening
* @type {Number}
*/
const PORT = Number(process.env.port) || Number(process.env.PORT) || 8... | JavaScript | 0.000002 | @@ -237,16 +237,25 @@
%7BNumber
+ %7C String
%7D%0A */%0Aco
@@ -265,23 +265,16 @@
PORT =
-Number(
process.
@@ -285,20 +285,12 @@
port
-)
%7C%7C
-Number(
proc
@@ -301,17 +301,16 @@
env.PORT
-)
%7C%7C 8080
|
4aea850146898a871ab9fd0c3cb690946bbb359a | Update demo app | server.js | server.js | var restify = require('restify')
, config = require('./config/app.js')
, routes = require('./app/routes.js')
, serverApp = require('./app/server-app.js')
, device = require('./app/device.js');
var app = new serverApp(config);
app.devices.push(new device(app.gpio.export(1), "exhaust"));
app.devices.push(new de... | JavaScript | 0.000001 | @@ -1,40 +1,7 @@
var
- restify = require('restify')%0A ,
con
@@ -41,57 +41,15 @@
,
-routes = require('./app/routes.js')%0A , serverApp
+biodome
= r
@@ -66,15 +66,8 @@
app/
-server-
app.
@@ -131,17 +131,15 @@
new
-serverApp
+biodome
(con
@@ -275,44 +275,28 @@
);%0A%0A
-server = routes(app);%0A
+app.
se... |
152f6a768bf653e6b1156f23458acf0b336d77ff | remove bad code | server.js | server.js | var PlayerModule = require('./public/Player.js');
var express = require('express');
var app = express();
var port = process.env.PORT || 8080;
var server = app.listen(port, function(){
console.log('Our app is running on http://localhost:' + port);
});
var io = require('socket.io')(server);
app.get('/', function(req... | JavaScript | 0.999685 | @@ -1,54 +1,4 @@
-var PlayerModule = require('./public/Player.js');%0A
var
|
1365e8df4f179ea2bc121c42d623d2566d1f183a | fix hash inserts | server.js | server.js | 'use strict';
var express = require('express');
var mysql = require('mysql');
var yelp = require('yelp-fusion');
var cache = require('memory-cache');
var expressValidator = require('express-validator');
var bodyParser = require('body-parser')
var bcrypt = require('bcryptjs');
require('dotenv').config();
var app = expr... | JavaScript | 0.000011 | @@ -4302,34 +4302,32 @@
rrors()%0A if (
-!!
err) %7B%0A c
@@ -4681,16 +4681,140 @@
omepage%0A
+ console.log('username: ' + username);%0A console.log('email: ' + email);%0A console.log('hash: ' + hash);%0A
@@ -4830,17 +4830,17 @@
n.query(
-'
+%22
INSERT I
@@ -4862,17 +4862,8... |
2aa7d3222fbb0e344f649e806dfc12409c4c32e2 | Rename 'connection' to 'socket' | server.js | server.js | 'use strict'
var getPort = require('get-port')
var server = require('net').createServer()
var cid = 0
server.on('connection', function (c) {
cid++
console.log('[server] event: connection (#%d)', cid)
var gotData = false
c.on('lookup', function (err, address, family) {
if (err) {
console.log('[conne... | JavaScript | 0.999999 | @@ -188,16 +188,22 @@
ection (
+socket
#%25d)', c
@@ -310,34 +310,30 @@
nsole.log('%5B
-connection
+socket
#%25d%5D event:
@@ -400,34 +400,30 @@
nsole.log('%5B
-connection
+socket
#%25d%5D event:
@@ -538,34 +538,30 @@
nsole.log('%5B
-connection
+socket
#%25d%5D event:
@@ -1031,34 +1031,30 @@
nsole.log('%5B
... |
2a86c0588491daf151381392a5efc4f14101fc11 | rename `endpoint` to `uri` | server.js | server.js | // server.js
// load the things we need
var express = require('express');
var ejs = require('ejs');
var fs = require('fs');
var path = require("path");
var app = express();
var distPath = 'dist';
var pages = [
{
fileName: 'index.html',
pageName: 'homepage.ejs',
endpoint: '/'
}, {
fileName: 'regula... | JavaScript | 0.00361 | @@ -267,32 +267,27 @@
e.ejs',%0A
-endpoint
+uri
: '/'%0A %7D, %7B
@@ -346,32 +346,27 @@
s.ejs',%0A
-endpoint
+uri
: '/regulami
@@ -436,32 +436,27 @@
t.ejs',%0A
-endpoint
+uri
: '/o-konkur
@@ -530,24 +530,19 @@
s',%0A
-endpoint
+uri
: '/zglo
@@ -679,24 +679,19 @@
default
-endpoint
+uri
s%0Apa... |
fd7ca25cb0b8a2f099ad9d65526a248aadc1493b | delete the user when they leave the room | server.js | server.js | var cloak = require('cloak');
var _ = require('underscore');
cloak.configure({
port: 8090,
roomLife: 1000*60*60*3,
autoJoinLobby: false,
minRoomMembers: 1,
pruneEmptyRooms: 1000,
reconnectWait: null,
messages: {
registerUsername: function(arg, user) {
var users = cloak.getUsers(... | JavaScript | 0.000004 | @@ -2503,24 +2503,46 @@
aveRoom();%0D%0A
+ user.delete();%0D%0A
%7D,%0D%0A%0D%0A
|
b7961c6b4d4f1ab243d0bfe1bb503e3506e49da4 | Remove debug | server.js | server.js | // Main - Cisco SIP Config Server
// Code by Adam Blunt 2017
// Created out of rage and major headaches of XML files
// Cisco make good phones but terrible software for them
// Clear console and display a loading message, simply because im coding on a slow network share
// and sometimes question if I hit enter on my r... | JavaScript | 0.000001 | @@ -3927,73 +3927,8 @@
e %7B%0A
- console.log(user.password + %22 %22 + user.username)%0A
@@ -4047,49 +4047,8 @@
me;%0A
- console.log(%22GOOD!%22)%0A
|
727da4044c0851e981a216767d32bdbc365dbfd0 | Add disconnect message handling | server-main.js | server-main.js | var socketio = require('socket.io');
module.exports = function (app, options) {
var
io = socketio(app),
config = options.config,
nsApp = io.of('/devicewallapp'),
nsCtrl = io.of('/devicewall'),
Q = require('q'),
devices = require('./server-devices'),
instances = require('./server-instances... | JavaScript | 0.000001 | @@ -761,16 +761,122 @@
%7D);%0A
+%0A socket.on('disconnect', function () %7B%0A console.log('DeviceWall device disconnected.');%0A %7D);%0A%0A
%7D);%0A%0A
@@ -1954,32 +1954,144 @@
%7D);%0A %7D);%0A%0A
+ socket.on('disconnect', function () %7B%0A console.log('DeviceWall control panel d... |
f13c1f0326f215535ffbcc8808ba085edaf95ff3 | fix monitor | svc/monitor.js | svc/monitor.js | /**
* Worker that monitors health metrics and saves results
**/
var config = require('../config');
var redis = require('../store/redis');
var db = require('../store/db');
var utility = require('../util/utility');
var request = require('request');
var api_key = config.STEAM_API_KEY.split(',')[0];
var health = {
ra... | JavaScript | 0.000001 | @@ -2156,16 +2156,17 @@
redis.
+h
get('mat
@@ -2175,17 +2175,27 @@
_seq_num
-'
+_hash', %220%22
, functi
|
686552dcda032e73afa1a4f1a97c29868bc3fde0 | correct collection name for provider config | src/models/ProviderConfig.js | src/models/ProviderConfig.js | // Import the neccesary modules.
import mongoose from 'mongoose';
import BaseProvider from '../scraper/providers/BaseProvider';
/**
* The provider schema used by mongoose.
* @type {Object}
* @see http://mongoosejs.com/docs/guide.html
*/
const _ProviderConfigSchema = new mongoose.Schema({
_id: {
type: String... | JavaScript | 0.000001 | @@ -977,16 +977,22 @@
Provider
+Config
', _Prov
|
de630511fcabb49da2075e6ae7c8f73b3ca33e08 | remove comment, edit function | Challenges/FizzBuzz.js | Challenges/FizzBuzz.js | const assert = require('assert');
// Print out all the numbers from 1 to 100. For every number divisible by 3 print replace it with
// the word "Fizz", for any number divisible by 5 replace it with the word "Buzz" and for a number divisible
// by both 3 and 5, replace it with the word "FizzBuzz".
// So, your program sh... | JavaScript | 0 | @@ -325,17 +325,16 @@
output:
-
%0A// 1%0A//
@@ -380,235 +380,30 @@
.%0A%0A
-/*%0A
cons
-ole.log(1-100);%0AXXX EXCEPTION: console.log(%22'Fizz' for multiples of 3%22);%0AXXX EXCEPTION: console.log(%22'Buzz' for multiples of 5%22);%0AXXX EXCEPTION: console.log(%22'FizzBuzz' for multiples of 3 and 5%22);%0A*/%0A%0... |
0e39c283a0aa4245a444897db3eb6897e191291f | Add `copy` method to dynamically resolved set | _setup/1.property/dynamic-multiple.js | _setup/1.property/dynamic-multiple.js | 'use strict';
var assign = require('es5-ext/object/assign')
, create = require('es5-ext/object/create')
, eq = require('es5-ext/object/eq')
, setPrototypeOf = require('es5-ext/object/set-prototype-of')
, forOf = require('es6-iterator/for-of')
, isIterable ... | JavaScript | 0.000001 | @@ -347,24 +347,75 @@
-iterable')%0A
+ , setCopy = require('es6-set/ext/copy')%0A
, d
@@ -1775,16 +1775,35 @@
tiple),%0A
+%09copy: d(setCopy),%0A
%09_doClea
|
58f34d5fd1238121bf738c37a923e8ec52ce8819 | Add tap input for level complete | src/States/CompleteState.js | src/States/CompleteState.js | function CompleteState(game) {
this.game = game;
var renderRegion = new RenderRegion(0, 0, game.canvas.width, game.canvas.height);
this.animation = new LevelCompleteAnimation(game.brush, renderRegion);
this.completeView = new LevelCompleteView(game.brush, renderRegion, game.config.numberColor);
this... | JavaScript | 0 | @@ -690,16 +690,561 @@
oller);%0A
+ var leftTapRegion = new TapRegion(new BoundingBox(0, renderRegion.height * .825, renderRegion.width * .5 - 1, renderRegion.height * .1), function() %7B%0A this.levelCompleteController.left();%0A %7D.bind(this));%0A var rightTapRegion = new TapRegion(new BoundingBox(r... |
1eba536636db7538e79394fdf7a950d76f3f53c2 | Remove module-specific logic from ErrorNotice. | assets/js/components/ErrorNotice.js | assets/js/components/ErrorNotice.js | /**
* ErrorNotice component.
*
* Site Kit by Google, Copyright 2020 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/licenses/LICENSE-2.0
*
... | JavaScript | 0 | @@ -676,58 +676,8 @@
*/%0A
-import isPlainObject from 'lodash/isPlainObject';%0A
impo
@@ -753,330 +753,55 @@
ort
-Data from 'googlesitekit-data';%0Aimport %7B STORE_NAME as CORE_MODULES %7D from '../googlesitekit/modules/datastore/constants';%0Aimport %7B isPermissionScopeError, isInsufficientPermissionsError %7D ... |
3fcb769ae2a89d499c6cd47c80784c903bf8cb98 | Update gameround.js | gameSrc/model/gameround.js | gameSrc/model/gameround.js | /**
* @namespace
*/
cwt.Gameround = {
/**
* The current active co mode.
*/
gamemode: model.co_MODES.AW1,
/**
* Holds the identical numbers of all objects that can act during
* the turn. After a unit has acted, it should be removed from this
* list with `model.actions_markUnitNonActable`.
... | JavaScript | 0 | @@ -1930,8 +1930,10 @@
;%0A %7D%0A%0A%7D
+;%0A
|
b23f977ec88c72002c05509faf53d07bd8bbe1b7 | Add map-combo-conflict test case | tests/config.js | tests/config.js |
;(function(factory) {
if (typeof define === 'function') {
define(factory)
}
else if (typeof exports !== 'undefined') {
factory(require, exports)
}
else {
factory(null, this)
}
})(function(require, exports) {
exports.testCases = [
'unit/util'
,'modules/alias'
,'modules/config-m... | JavaScript | 0.000008 | @@ -1596,24 +1596,57 @@
issues/map'%0A
+ ,'issues/map-combo-conflict'%0A
,'issues
|
9d9fb3630b6905043a12e41308861c1bbf2361a9 | Clean nwchem-exec | src/workflows/nwchem/nwchem-exec/components/root/NewSimulation.js | src/workflows/nwchem/nwchem-exec/components/root/NewSimulation.js | import React from 'react';
import { FileUploadEntry } from '../../../../../panels/ItemEditor';
export default React.createClass({
displayName: 'Simulation/New/NWChemExec',
propTypes: {
owner: React.PropTypes.func,
},
render() {
return (
<div>
<FileUploadEntry name="geom... | JavaScript | 0.000001 | @@ -124,143 +124,40 @@
ult
-React.createClass(%7B%0A%0A displayName: 'Simulation/New/NWChemExec',%0A%0A propTypes: %7B%0A owner: React.PropTypes.func,%0A %7D,%0A%0A render(
+function newSimulation(props
) %7B%0A
-
re
@@ -163,18 +163,16 @@
eturn (%0A
-
%3Cdiv
@@ -193,24 +193,34 @@
eUploadEntry
+%... |
ec15759fd03d3875661834963568de019dc06179 | reset send_form_input after sending a message | example/example.js | example/example.js | $(document).ready(function(){
var client, destination;
$('#connect_form').submit(function() {
var url = $("#connect_url").val();
var login = $("#connect_login").val();
var passcode = $("#connect_passcode").val();
destination = $("#destination").val();
client = Stomp.client(url);
// this ... | JavaScript | 0.000001 | @@ -2239,16 +2239,51 @@
text);%0A
+ $('#send_form_input').val(%22%22);%0A
retu
|
3d872b233b0bbf46eb47a1027759c20023ff9704 | Remove namedExports config | editors/code/rollup.config.js | editors/code/rollup.config.js | // @ts-check
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import nodeBuiltins from 'builtin-modules';
/** @type { import('rollup').RollupOptions } */
export default {
input: 'out/src/main.js',
plugins: [
resolve({
preferBuiltins: true
... | JavaScript | 0.000001 | @@ -345,290 +345,8 @@
njs(
-%7B%0A namedExports: %7B%0A // squelch missing import warnings%0A 'vscode-languageclient': %5B'CreateFile', 'RenameFile', 'ErrorCodes', 'WorkDoneProgress', 'WorkDoneProgressBegin', 'WorkDoneProgressReport', 'WorkDoneProgressEnd'%5D%0A %7D%... |
fad5d212bae828229b6b8fd745749a278084e553 | Fix IQR error on minimum exemplars | imagespace_smqtk/web_client/js/iqr.js | imagespace_smqtk/web_client/js/iqr.js | /**
* This is responsible for the IQR integration of the SMQTK ImageSpace plugin.
* This adds 2 new events, 1 new route, and wraps an existing method:
* New events:
* 1) Click to start a new IQR session
* This creates an IQR session on the server side and re-renders the search view.
* 2) Click to refine an exi... | JavaScript | 0.000008 | @@ -5557,67 +5557,8 @@
===
- 0 &&%0A _.size(session.get('meta').neg_uuids) ===
0)
@@ -5622,20 +5622,8 @@
ive
-or negative
exam
|
643c7e3ee01c3591f3d0cbaac024d693a25bb2ac | fix BASE_URL | app/components/pl-uploader.js | app/components/pl-uploader.js | import PlUploader from 'ember-plupload/components/pl-uploader';
import config from '../config/environment';
export default PlUploader.extend({
BASE_URL: config.PLUPLOAD_BASE_URL
});
| JavaScript | 0.000001 | @@ -173,13 +173,27 @@
BASE_URL
+ %7C%7C '/assets/'
%0A%7D);%0A
|
9010043e69948b5cae2aeaea9154c1afac16272f | correct bug | eln/request/RequestManager.js | eln/request/RequestManager.js | 'use strict';
import {confirm} from 'src/util/ui';
const statuses = {
// statusCode: [statusName, statusColor]
0: ['Cancelled', '#AAAAAA'],
10: ['Pending', '#FFDC00'],
20: ['Processing', '#0074D9'],
30: ['Finished', '#01FF70'],
90: ['Error', '#FF4136']
};
const muteSuccess = {muteSuccess: true... | JavaScript | 0.000004 | @@ -2046,36 +2046,34 @@
= %7B%7D) %7B%0A
-cons
+le
t groups = optio
@@ -2929,32 +2929,33 @@
oups%0A %7D;%0A
+%0A
return t
|
4a2481cfc9ead13a6abd788fac8bb84800fa8692 | Fix JSON parse test for new Vizsla. | t/reactor.t.js | t/reactor.t.js | require('proof')(20, require('cadence')(prove))
function prove (async, assert) {
var cadence = require('cadence')
var Dispatcher = require('..')
var UserAgent = require('vizsla')
var http = require('http')
var connect = require('connect')
var coalesce = require('extant')
var now = 0
fu... | JavaScript | 0 | @@ -4409,32 +4409,44 @@
fetch(session, %7B
+%0A
url: '/post', p
@@ -4443,16 +4443,89 @@
'/post',
+%0A headers: %7B 'content-type': 'application/json' %7D,%0A
post: n
@@ -4538,16 +4538,24 @@
fer('%7B')
+%0A
%7D, asyn
|
74fe7e7813c7fa6f9a9489b024592be43a82f115 | Update failure message to render dynamically from allowed types | test/solution-template-validation-tests/test/mainTemplateTests.js | test/solution-template-validation-tests/test/mainTemplateTests.js | var assert = require('assert');
var util = require('./util');
const filesFolder = './';
var path = require('path');
var chai = require('chai');
var assert = chai.assert; // Using Assert style
var expect = chai.expect; // Using Expect style
var should = chai.should(); // Using Should style
var folder = process.env.npm_... | JavaScript | 0 | @@ -7420,34 +7420,8 @@
rces
- (Compute/Network/Storage)
', (
@@ -8401,52 +8401,79 @@
OT a
- compute, network or a storage r
+n approved resource type (' + JSON.stringify(allowedR
esource
- t
+T
ype
+s) + ')
';%0A
|
cf212eec5ca7972bd1c359d222c3dfe862b2f940 | Add busy indication on data load | demo/pages/big-data/index.js | demo/pages/big-data/index.js | Controller.$inject = ['$http', 'qgrid'];
export default function Controller($http, qgrid) {
const ctrl = this;
ctrl.rows = [];
ctrl.model = qgrid.model();
ctrl.model.pagination({
// Number of item in viewport
size: 20
});
ctrl.model.scroll({
mode: 'virtual'
});
$http.get('data/people/100000.json')
.t... | JavaScript | 0.000001 | @@ -150,16 +150,60 @@
model();
+%0A%09const service = qgrid.service(ctrl.model);
%0A%0A%09ctrl.
@@ -315,16 +315,52 @@
'%0A%09%7D);%0A%0A
+%09const cancelBusy = service.busy();%0A
%09$http.g
@@ -409,16 +409,21 @@
onse =%3E
+%7B%0A%09%09%09
ctrl.row
@@ -439,12 +439,34 @@
nse.data
+;%0A%09%09%09cancelBusy();%0A%09... |
f53bd033e79994dbda112a091ddbf784a3c30aaf | Fix Jest call in the release script | scripts/release/build-commands/run-automated-tests.js | scripts/release/build-commands/run-automated-tests.js | #!/usr/bin/env node
'use strict';
const chalk = require('chalk');
const {exec} = require('child-process-promise');
const {logPromise} = require('../utils');
const runYarnTask = async (cwd, task, errorMessage) => {
try {
await exec(`yarn ${task}`, {cwd});
} catch (error) {
throw Error(
chalk`
... | JavaScript | 0 | @@ -638,9 +638,9 @@
d, '
-j
+t
est'
|
a1e6d70ec97766889b0491e3eeaeb111f885b0bf | Fix doc page for PushNotificationIOS | Examples/UIExplorer/PushNotificationIOSExample.js | Examples/UIExplorer/PushNotificationIOSExample.js | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... | JavaScript | 0 | @@ -1909,17 +1909,17 @@
,%0A
-%60
+'
Alert me
@@ -1929,10 +1929,12 @@
ge:
-$%7B
+' +
noti
@@ -1958,10 +1958,8 @@
ge()
-%7D%60
,%0A
|
8d71ba490a8ed365f820cccd63d5d6f15c4c71c7 | Convert quotes to a postgres array of jsonb objects to fix sequelize being confused by array being the root object | api/db/rescue.js | api/db/rescue.js | 'use strict'
module.exports = function (sequelize, DataTypes) {
let Rescue = sequelize.define('Rescue', {
id: {
type: DataTypes.UUID,
primaryKey: true,
defaultValue: DataTypes.UUIDV4
},
client: {
type: DataTypes.STRING,
allowNull: true
},
codeRed: {
type: DataT... | JavaScript | 0.000011 | @@ -710,38 +710,37 @@
ARRAY(DataTypes.
-STRING
+JSONB
),%0A allowNu
|
bbbdc19c89d621a7cd85becea75f9da6aa3afb35 | improve test coverage for Array.prototype.reduceright (#1629) | polyfills/Array/prototype/reduceRight/tests.js | polyfills/Array/prototype/reduceRight/tests.js | /* eslint-env mocha, browser */
/* global proclaim */
var spycalls = [];
var spy = function() {
spycalls.push([].slice.call(arguments));
};
beforeEach(function () {
spycalls = [];
});
it('should pass the correct arguments to the callback', function () {
[1,2,3].reduceRight(spy);
proclaim.equal(spycalls.length, ... | JavaScript | 0 | @@ -16,17 +16,8 @@
ocha
-, browser
*/%0A
@@ -25,16 +25,17 @@
* global
+s
proclai
@@ -40,16 +40,403 @@
aim */%0A%0A
+it('is a function', function () %7B%0A%09proclaim.isFunction(Array.prototype.reduceRight);%0A%7D);%0A%0Ait('has correct arity', function () %7B%0A%09proclaim.arity(Array.prototype.reduceRight, 1);%... |
37a47f0e5e653c71720c5637624817e4cf84b106 | Fix docs script (#421) | docs/webpack.config.js | docs/webpack.config.js | const {resolve} = require('path');
const isProd = process.env.NODE_ENV === 'production'; // eslint-disable-line
const entry = {
app: './app.js'
};
const moduleConfig = {
rules: [
{
test: /\.scss$/,
use: [
'style-loader',
'css-loader',
'sass-loader',
'autoprefixer-lo... | JavaScript | 0 | @@ -104,16 +104,46 @@
ble-line
+%0Aconst path = require('path');
%0A%0Aconst
@@ -819,19 +819,41 @@
path:
-'./
+path.resolve(__dirname, '
docs-dis
@@ -854,16 +854,17 @@
cs-dist'
+)
,%0A fi
|
288ed83d9158a468e391797e8fc0984fa767277f | Revert "Remove test with for loop to prevent errors with practicalmeteor:mocha" | imports/api/elements/elements.test.js | imports/api/elements/elements.test.js | /* eslint-env mocha */
import { Meteor } from 'meteor/meteor';
import { should, expect } from 'chai';
should();
import Elements from './elements.js';
if (Meteor.isServer) {
describe('Elements', () => {
it('should be an object', () => {
Elements.should.be.an('object');
});
});
describe('Elements.c... | JavaScript | 0 | @@ -1150,32 +1150,713 @@
%0A %7D);%0A %7D);%0A%0A
+ describe('Elements.types', () =%3E %7B%0A for (const type of Elements.types) %7B%0A describe(type.humanName, () =%3E %7B%0A it('should have property humanName of type string', () =%3E %7B%0A type.should.have.property('humanName');%0A ... |
32a075068c2a49dffefc475852fbf567b62fa8df | Fix phone, email and site methods | candidate.js | candidate.js | class Candidate {
constructor (config) {
if (!config) {
return;
}
this.setName(config.name);
this.setRole(config.role);
this.skills = [];
this.addSkill(config.skills || config.skill);
this.contact = {
phones: [],
emails: [],
sites : []
};
this.addPhone(config.phones || confi... | JavaScript | 0 | @@ -1112,34 +1112,45 @@
) %7B%0A%0A%09%09this.
-role = rol
+contact.phones = phon
e %7C%7C '';%0A%0A%09%7D
@@ -1175,35 +1175,45 @@
) %7B%0A%0A%09%09this.
-role = role
+contact.email = email
%7C%7C '';%0A%0A%09%7D%0A
@@ -1235,34 +1235,42 @@
) %7B%0A%0A%09%09this.
-rol
+contact.sit
e =
-rol
+sit
e %7C%7C '';%0A%... |
c922b0b6ab1a5546e60610c2585ce6d70f345872 | optimize some of findCourseWarnings | src/helpers/find-course-warnings.js | src/helpers/find-course-warnings.js | import map from 'lodash/map'
import flatten from 'lodash/flatten'
import compact from 'lodash/compact'
import some from 'lodash/some'
import zip from 'lodash/zip'
import ordinal from 'ord'
import {oxford} from 'humanize-plus'
import plur from 'plur'
import {findScheduleTimeConflicts} from 'sto-sis-time-parser'
import ... | JavaScript | 0.999707 | @@ -468,35 +468,138 @@
ear) %7B%0A%09let
-result =
+thisYear = new Date().getFullYear()%0A%0A%09if (course.year !== scheduleYear && scheduleYear %3C= thisYear) %7B%0A%09%09return
%7B%0A
+%09
%09%09warning: f
@@ -589,39 +589,39 @@
n %7B%0A%09%09%09warning:
-fals
+tru
e,%0A
+%09
%09%09type: 'invalid
@@ -624,24 +... |
6ba484cf590319d44e6150b12d4d12cb9e11a943 | Fix browse.js for removed API | examples/browse.js | examples/browse.js | #!/usr/bin/gjs
//
// Copyright (c) 2016, Jens Georg <mail@jensge.org>
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright... | JavaScript | 0 | @@ -1862,17 +1862,58 @@
cd,
-action)%0A%7B
+res)%0A%7B%0A var action = cd.call_action_finish(res)
%0A
@@ -2025,36 +2025,31 @@
%5D =
-cd.end_action_list (action,
+action.get_result_list(
%5B%22Re
@@ -2111,24 +2111,8 @@
oo);
-%0A cd.unref();
%0A%0A
@@ -2416,74 +2416,8 @@
);%0A%0A
- // FIXME: This ... |
6ed5bc0f379d97307ebdd0732c78bbe894ba1868 | simplify barebones.js | assets/js/barebones.js | assets/js/barebones.js | ;(function($, d, w, undefined) {
"use strict";
var $nav = $('header.navbar-fixed-top');
$(window).scroll({st: 0}, function(event) {
var sn = $(window).scrollTop();
(sn < this.st) ? $nav.slideDown() : $nav.slideUp();
this.st = sn;
});
$.fn.bootstrap = function(options) {... | JavaScript | 0.999979 | @@ -6,16 +6,34 @@
ction($,
+ disqus_shortname,
d, w, u
@@ -40,24 +40,24 @@
ndefined) %7B%0A
-
%22use str
@@ -116,639 +116,14 @@
');%0A
- $(window).scroll(%7Bst: 0%7D, function(event) %7B%0A var sn = $(window).scrollTop();%0A (sn %3C this.st) ? $nav.slideDown() : $nav.slideUp();%0A this... |
e39de366775c9b45ff79ef829f17fe293117248d | update auth.example.js for amazon | auth.example.js | auth.example.js | module.exports = {
facebook: {
appID: 'FACEBOOK_APP_ID',
appSecret: 'FACEBOOK_APP_SECRET',
callbackUrl: 'http://localhost:3000/auth/facebook/callback',
profileFields: ['id', 'displayName', 'name', 'email', 'gender', 'age_range', 'link', 'picture', 'locale', 'timezone', 'updated_time', 'verified']
}
... | JavaScript | 0.000001 | @@ -309,13 +309,156 @@
ified'%5D%0A
+ %7D,%0A amazon: %7B%0A appID: 'AMAZON_APP_ID',%0A appSecret: 'AMAZON_APP_SECRET',%0A callbackUrl: 'http://127.0.0.1:3000/auth/amazon/callback'%0A
%7D%0A%7D
|
b480d90657a780db5574a14a199d55a8b3497980 | Use full URL for Faye client | assets/js/nodeca/io.js | assets/js/nodeca/io.js | /**
* nodeca.io
*
* This module provides realtime communication methods for nodeca/nlib based
* applications.
**/
//= depend_on nodeca
//= require faye-browser
/*global window, $, _, Faye, nodeca*/
(function () {
'use strict';
var // registered events
events = {},
// underlying bayeux cl... | JavaScript | 0 | @@ -5048,24 +5048,54 @@
nction () %7B%0A
+ var l = window.location;%0A%0A
bayeux =
@@ -5115,30 +5115,29 @@
ent(
-'//' + window.location
+l.protocol + '//' + l
.hos
|
069593ed12f757cfa4d4e3070158bf88fcfefa8f | Remove a leftover comment from exercise 1.1 | probability-and-computing/chapter1/1.2_test.js | probability-and-computing/chapter1/1.2_test.js | define(['chai',
'mocha',
'probability-and-computing/chapter1/1.2'],
function(chai,
unusedMocha,
exercise) {
'use strict';
var expect = chai.expect;
describe('probability-and-computing-exercise-1.2', function() {
describe('sampleSpace', function() {
... | JavaScript | 0 | @@ -572,36 +572,8 @@
/36%0A
- // 10! / (5!5!) = 252%0A
|
d58cc46c2d6702cbbdf40ead9a513953ef524096 | Fix `<DayRangePicker />` date selection | components/Calendar/DayRangePicker/DayRangePicker.js | components/Calendar/DayRangePicker/DayRangePicker.js | import React, { Component, PropTypes } from 'react';
import keyMirror from 'key-mirror';
import momentPropTypes from 'react-moment-proptypes';
import noop from '../../../utils/noop';
import DayPicker from '../DayPicker/DayPicker';
import { defaultDayState } from '../DayPicker/DayPickerItem';
export const SELECT_DATE ... | JavaScript | 0.004963 | @@ -542,32 +542,33 @@
ndDate, 'day');%0A
+%0A
const isAfterS
@@ -741,21 +741,22 @@
qualToOr
-After
+Before
End = is
@@ -783,16 +783,111 @@
reEnd;%0A%0A
+ if (!startDate && isEqualToEnd) return true;%0A if (!endDate && isEqualToStart) return true;%0A%0A
return
@@ -923,21 +923,22 @@
qualToOr
-After
+Before
... |
6341eb80b60bbe0e00fa646c5307f69f29f2addd | Reformat long lines | tasks/bower.js | tasks/bower.js | /*
* grunt-bower
* https://github.com/curist/grunt-bower
*
* Copyright (c) 2012 curist
* Licensed under the MIT license.
*/
module.exports = function(grunt) {
// Please see the grunt documentation for more information regarding task and
// helper creation: https://github.com/gruntjs/grunt/blob/master/docs/t... | JavaScript | 0 | @@ -1678,11 +1678,8 @@
%7D%0A
-%09%09%09
%0A
@@ -3686,24 +3686,43 @@
= path.join(
+%0A
dests%5Bext_na
@@ -3733,16 +3733,34 @@
%7C%7C dest,
+%0A
options
@@ -3783,31 +3783,66 @@
me : '',
- dest_file_name
+%0A dest_file_name%0A
);%0A
@@... |
2e4539cfbf52f3fdf43490d4f86c1bdba949629e | Update autoComplete.js | autoComplete.js | autoComplete.js | /**
*
*/
/**
*
*/
var jsAutoComplete = function() {
function loadOptionsIntoSet(options) {
var set = new Set();
for (var o = 0; o < options.length; o++) {
var option = options[o]
for (var i = 1; i <= option.length; i++) {
set.add(option.slice(0, i));
}
set.add(option + '*');
}
return s... | JavaScript | 0 | @@ -822,19 +822,22 @@
rt,
-start + 100
+options.length
);%0A%09
@@ -861,11 +861,25 @@
i %3C
-100
+potentials.length
; i+
|
6a42c5eab34349a733101d481d1a63099e1af7bc | move to navigation controller | app/controllers/navigation.js | app/controllers/navigation.js | import Ember from "ember";
import ProgressDialog from "hospitalrun/mixins/progress-dialog";
import UserSession from "hospitalrun/mixins/user-session";
export default Ember.Controller.extend(ProgressDialog, UserSession,{
needs: 'application',
allowSearch: false,
currentSearchText: null,
currentRouteName:... | JavaScript | 0.000002 | @@ -213,16 +213,468 @@
ssion,%7B%0A
+ indexLinks: %5B%0A 'Appointments',%0A 'Labs',%0A 'Imaging',%0A 'Inventory',%0A 'Medication',%0A 'Patients',%0A 'Users'%0A %5D,%0A%0A setupPermissions: function() %7B%0A var permissions = this.get('defaultCapabilities... |
5b31c70587be03158702b000ebfaf2bb19a4bf31 | tidy eof | assets/scripts/init.js | assets/scripts/init.js | var MailMerge = MailMerge || {};
$.ajaxSetup ({
cache: false
});
jQuery(function() {
$(document).foundation();
$('form[ajax-form]').submit(function(e) {
var action = $(this).attr('action');
var params = $(this).serialize();
var callback = $(this).attr('ajax-callback');
$.post(action, params)
... | JavaScript | 0.000001 | @@ -515,13 +515,12 @@
;%0A %7D);%0A%7D);%0A
-%0A
|
70e84f9cf704e84646806255c8991775569213b8 | Add crude collisions between the player and the flails | server/main.js | server/main.js | var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
app.use('/static', express.static('web'));
app.get('/', function(req, res) {
res.send('Hello, world');
});
var geom = require('./geometry');
players = {};
io.on('connection', functi... | JavaScript | 0.000002 | @@ -663,16 +663,39 @@
use of%0A
+%09player.pos.size = 10;%0A
%09player.
@@ -1858,16 +1858,583 @@
.vel);%0A%0A
+%09%09// INSPIRATION:%0A%09%09// http://worldbuilding.stackexchange.com/questions/17239/how-to-make-flashy-fighting-practical-fighting?rq=1%0A%0A%09%09// this is not going to be efficient, but oh well%0A%0... |
e17fbe5c2a8542b7639221d37b7b852cc8af3384 | fix bug that tries to get activity streams (slow) before resolving the dialog on submit. | public/js/dialogs/instances/instance_edit_dialog.js | public/js/dialogs/instances/instance_edit_dialog.js | (function($, ns) {
ns.dialogs.InstancesEdit = chorus.dialogs.Base.extend({
className : "instances_edit",
title : t("instances.edit_dialog.title"),
events : {
"submit form" : "save"
},
makeModel : function() {
this.model = this.options.pageModel;
... | JavaScript | 0 | @@ -1927,17 +1927,64 @@
el.s
-av
e
+t
(attrs
+, %7B silent: true %7D)%0A this.model.save(
);%0A
|
25f1a64f63f0680b72ec5d7d99ae7a28a381abd4 | Add marionette to the test harness | public/scripts/app/tests/test-main.js | public/scripts/app/tests/test-main.js | var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;
// Get a list of all the test files to include
Object.keys(window.__karma__.files).forEach(function (file) {
if (TEST_REGEXP.test(file)) {
/*
var normalizedTestModule = file.replace(/^\/base\/|\.js$/g, '');
allTestFiles.push(norm... | JavaScript | 0.000003 | @@ -1109,16 +1109,59 @@
moment%22,
+%0A marionette: %22backbone.marionette%22,
%0A%0A
|
cee9623c262e5117ca965538209940652c187c02 | fix typo | tasks/build.js | tasks/build.js | var gulp = require('gulp')
, util = require('gulp-util')
, rename = require('gulp-rename')
, less = require('gulp-less')
, autoprefixer = require('gulp-autoprefixer')
, sourcemaps = require('gulp-sourcemaps')
, gulpif = require('gulp-if')
, csso = require("gulp-csso")
, uglify = require('gulp-uglify')
... | JavaScript | 0.999991 | @@ -3324,10 +3324,9 @@
log);%0A%7D;
-:
%0A
|
9c05dfd09561930d0cfba4cb020a8ab9396ad0fc | Add pushing to log on ADD_LOG action | src/app/reducers/scripts.js | src/app/reducers/scripts.js | import path from 'path';
import {promisify} from 'bluebird';
import fs from 'fs';
import safeEval from 'safe-eval';
import objectPath from 'immutable-path';
import lib from '../../client/lib/'
import {setUserRequire} from '../../client/util/'
import {log} from '../../client/util/'
import update from 'react/lib/update';... | JavaScript | 0.000001 | @@ -3660,32 +3660,129 @@
%7D%0A %7D%0A
+ %7D,%0A activeScript: %7B%0A logs: %7B%0A $push: %5Baction.log%5D%0A %7D%0A
%7D%0A
|
44651be103609fdb7f63ea1f6ee7be1d367bab61 | modify map creating function | Web/Content/MapResources/OpenlayersWrapper.js | Web/Content/MapResources/OpenlayersWrapper.js | function CreateMap(div) {
var map
map = new OpenLayers.Map(div);
map.addControl(new OpenLayers.Control.MousePosition());
map.setCenter(new OpenLayers.LonLat(39, 9), 6);
} | JavaScript | 0.000001 | @@ -19,16 +19,25 @@
(div
+, options
) %7B%0A
@@ -36,24 +36,61 @@
-
-
var map
-%0A%0A%09%09%09
+, draw, modify, snap, point, line, poly;%0A%0A
map
@@ -116,24 +116,16 @@
p(div);%0A
-
map.
@@ -180,33 +180,681 @@
));%0A
- %0A
+if (options) %7B%0A if (opt... |
e164249e89fc9ea32460c6f064e61f364e695529 | Remove old unauthorized listener | src/app/sessions/session.js | src/app/sessions/session.js | (function() {
'use strict';
var app = angular.module('radar.sessions');
function sessionFactory(authStore, $rootScope) {
function Session() {
this.setUser(null);
}
Session.prototype.logout = function() {
authStore.logout();
this.setUser(null);
$rootScope.$broadcast('sessions... | JavaScript | 0.000002 | @@ -1375,220 +1375,8 @@
ry);
-%0A%0A app.run(%5B'$rootScope', 'authService', '$state', function($rootScope, authService, $state) %7B%0A $rootScope.$on('unauthorized', function() %7B%0A authService.logout();%0A $state.go('login');%0A %7D);%0A %7D%5D);
%0A%7D)(
|
16b058f3c72efb6b031b73799101de0a802c4a67 | Add staff_id to musters parser | app/helpers/musters_parser.js | app/helpers/musters_parser.js | 'use strict';
const Utils = require('./utils');
const D3 = require('d3');
exports.block = function(rows) {
var cardsResponse = D3.values(rows[0]);
var stateResponse = D3.values(rows[1]);
var stateCode = stateResponse[0].state_code;
// Nest the cards response
var cards = D3.nest()
.ke... | JavaScript | 0 | @@ -500,32 +500,75 @@
return %7B%0A
+ 'staff_id': v%5B0%5D.staff_id,%0A
|
66851791eff47d4ab2c56ab7d91cf9866f41d69d | modify server proxy | server/main.js | server/main.js | const express = require('express')
const debug = require('debug')('app:server')
const webpack = require('webpack')
const request = require('request')
const webpackConfig = require('../config/webpack.config')
const project = require('../config/project.config')
const compress = require('compression')
const app = express... | JavaScript | 0.000001 | @@ -1025,16 +1025,17 @@
))%0A%0A //
+
%E4%BB%A3%E7%90%86%E8%BD%AC%E5%8F%91%EF%BC%8C%E8%A7%A3%E5%86%B3%E8%B7%A8
|
57d2d11e95e7226cc3db76bcb430ebdfc781afd8 | Update analyze.js | app/js/controllers/analyze.js | app/js/controllers/analyze.js | 'use strict';
/* global angular, L */
/* jshint unused:false */
var controllersModule = require('./_index');
var Leaflet = require('../components/leaflet');
var GeoJSON = require('../components/geojson');
var result;
var marker=[];
/**
* @ngInject
*/
controllersModule.controller('AnalyzeCtrl', ['$rootScope','$http... | JavaScript | 0.000001 | @@ -1261,31 +1261,28 @@
onp(
-%22http://loklak.org/api/
+AppSettings.apiUrl+%22
user
|
689a5f8ddc2135bf3e34cb93a1ec4e75235a6534 | Update .js | plug/.js | plug/.js | API.chatLog("HipHop Script Now activated!", true);
function initEnvironment(){
}
$(".background").html("<img src=\"http://img5.imageshack.us/img5/227/5y9c.png\" style=\"width: 921px; height: 285px; left: -218.5px;\">");
$('head').append('<link rel="stylesheet" type="text/css" url="https://raw.github.com/mv1/djplugbot2/... | JavaScript | 0.000001 | @@ -274,11 +274,12 @@
ss%22
-url
+href
=%22ht
|
e159c9df61ab9b409b972aa2a3e491a68c8bf72e | Fix source array is "0" | packages/uglify-es/src/uglify-es.js | packages/uglify-es/src/uglify-es.js | /*!
* node-minify
* Copyright(c) 2011-2019 Rodolphe Stoclin
* MIT Licensed
*/
/**
* Module dependencies.
*/
import uglifyES from 'uglify-es';
import { utils } from '@node-minify/utils';
/**
* Run uglifyES.
*
* @param {Object} settings
* @param {String} content
* @param {Function} callback
*/
const minifyU... | JavaScript | 0.000005 | @@ -369,16 +369,122 @@
%7D) =%3E %7B%0A
+ if (settings.options.sourceMap) %7B%0A content = %7B %5Bsettings.options.sourceMap.filename%5D: content %7D;%0A %7D%0A
const
|
7c2762ead67d4ee3261643e5ed567a706ac74ce2 | Use stage 1 for preset-env config | postcss.config.js | postcss.config.js | module.exports = {
plugins: [
require('postcss-import'),
require('postcss-preset-env')({
stage: 3,
features: {
'color-mod-function': {
unresolved: 'warn'
},
'custom-properties': {
preserve: false
},
'nesting-rules': true
}
}),
... | JavaScript | 0.000001 | @@ -109,9 +109,9 @@
ge:
-3
+1
,%0A
|
a1942a2f25d40906ddc98d56eacfd9e97b77e90f | fix lint | postcss.config.js | postcss.config.js | module.exports = (ctx) => ({
map: { inline: false },
plugins: {
'autoprefixer': {},
'postcss-import': { root: ctx.file.dirname },
'postcss-url': {
url: 'copy',
useHash: true,
assetsPath: 'assets'
},
'postcss-nesting': {},
'postcss-browser-reporter': {},
'postcss-reporte... | JavaScript | 0.000013 | @@ -65,17 +65,16 @@
: %7B%0A
-'
autopref
@@ -77,17 +77,16 @@
prefixer
-'
: %7B%7D,%0A
|
f25f4347e770ad0dbc969e68ead9b066081ad894 | remove unnecesasry console.log | src/fetch-ipns.js | src/fetch-ipns.js | var logger = require('./logger')
var ipfsAPI = require('ipfs-api')
exports = module.exports = fetchIPNS
// TODO update this to enable multiple nodes to be our
var updaterNodes = {
castor: {
addr: '/ip4/37.59.33.238/tcp/4001/ipfs/QmdNc4B89DxVeiuDKRN5bWdKsAPCmekgmJMkRSdUNa7x9z',
ipns: '/ipns/QmdNc4B89DxVeiuDK... | JavaScript | 0 | @@ -1314,37 +1314,8 @@
) %7B%0A
- console.log('hello')%0A
|
1e568b88a10e978af71846ac36e74f94a7b92046 | Remove implicit eval in order to comply to CSP | src/functional.js | src/functional.js | /**
* Partially complete a function.
*
* var add3 = partialComplete( function add(a,b){return a+b}, 3 );
*
* add3(4) // gives 7
*
* function wrap(left, right, cen){return left + " " + cen + " " + right;}
*
* var pirateGreeting = partialComplete( wrap , "I'm", ", a mighty pirate!" );
*
* pirate... | JavaScript | 0.000001 | @@ -2042,21 +2042,17 @@
urn
-new F
+f
unction(
'o',
@@ -2051,14 +2051,13 @@
ion(
-'o', '
+o) %7B
retu
@@ -2065,25 +2065,15 @@
n o%5B
-%22' + key + '%22%5D' )
+key%5D; %7D
;%0A%7D%0A
|
99db66731b6686c0cf152eb9654dff0c6e6175eb | Add and rotate the player in the world | src/game/world.js | src/game/world.js | export default class World {
constructor(game) {
this.width = game.width
this.height = game.height
this.velocity = 1
game.physics.startSystem(Phaser.Physics.ARCADE);
game.stage.backgroundColor = '#4AAAFF';
this.background = game.add.sprite(0, 0, 'sky')
this... | JavaScript | 0 | @@ -139,16 +139,35 @@
ity = 1%0A
+ this.score%0A
%0A%0A
@@ -304,16 +304,102 @@
add.
-sprite(0
+group()%0A%0A this.background.create(0, 0, 'sky')%0A this.background.create(this.width
, 0,
@@ -398,32 +398,33 @@
idth, 0, 'sky')%0A
+%0A
this.roc
@@ -453,14 +453,14 @@
ite(
-1
+2
00... |
355acb0fb9b90ac2b81e666d8eba884605f08f12 | Remove default value for discovery options | src/components/discovery.js | src/components/discovery.js | const Discover = require('@dashersw/node-discover');
// eslint-disable-next-line
const colors = require('colors');
const defaultOptions = {
helloInterval: 2000,
checkInterval: 4000,
nodeTimeout: 5000,
masterTimeout: 6000,
monitor: false,
log: true,
helloLogsEnabled: true,
statusLogsEna... | JavaScript | 0 | @@ -432,13 +432,8 @@
ions
- = %7B%7D
) %7B%0A
|
5d8cabc28918b9f5d6c344733bc0473ea6da65ba | Fix weird syntax | src/gitlet-api.js | src/gitlet-api.js | var fs = require("fs");
var files = require("./files");
var index = require("./index");
var objects = require("./objects");
var refs = require("./refs");
var diff = require("./diff");
var checkout = require("./checkout");
var util = require("./util");
var gitletApi = module.exports = {
init: function(_) {
if (fi... | JavaScript | 0.999853 | @@ -3770,18 +3770,16 @@
else if
-(!
(objects
@@ -3804,17 +3804,17 @@
(hash))
-=
+!
== %22comm
@@ -3817,17 +3817,16 @@
commit%22)
-)
%7B%0A
|
81e5e744dbd89a83dc4035c4e65ed0cea3d633b6 | Add mocha / chai globals to tests/.jshintrc | blueprints/ember-cli-mocha/index.js | blueprints/ember-cli-mocha/index.js | module.exports = {
name: 'ember-cli-mocha',
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
},
afterInstall: function() {
var addonContext = this;
return this.addBowerPackageToProject('mocha',... | JavaScript | 0 | @@ -1,8 +1,38 @@
+var EOL = require('os').EOL;%0A%0A
module.e
@@ -294,16 +294,330 @@
this;%0A%0A
+ this.insertIntoFile('tests/.jshintrc',%0A ' %22mocha%22,' + EOL +%0A ' %22chai%22,' + EOL +%0A ' %22describe%22,' + EOL +%0A ' %22it%22,' + EOL +%0A ' %22before%22,' + EOL +%0... |
348a3a487ac70e0ac7a376439c466b3b127bf109 | Bump ember-mocha | blueprints/ember-cli-mocha/index.js | blueprints/ember-cli-mocha/index.js | var EOL = require('os').EOL;
module.exports = {
name: 'ember-cli-mocha',
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actually matter
// to us
},
afterInstall: function() {
var addonContext = this;
return this.add... | JavaScript | 0.000002 | @@ -360,9 +360,9 @@
0.6.
-2
+3
')%0A
|
aba3361464e96bcf1540d2a96c3ee13f43b49c71 | Fix undefined values in access list of webapp | webapp/webapp/webapp/static/js/snippets/alloweds.js | webapp/webapp/webapp/static/js/snippets/alloweds.js |
function setAlloweds_viewer(div_id,id){
api.ajax('/isard-admin/alloweds/table/domains','POST',{'pk':id}).done(function(alloweds) {
var all=false;
$.each(alloweds,function(key, value)
{
if(typeof value !== 'undefined' && value.length == 0){all=tru... | JavaScript | 0.000541 | @@ -635,10 +635,11 @@
ues=
-%22%22
+%5B%5D;
%0A%09%09%09
@@ -683,74 +683,36 @@
%7B
- %0A%09%09%09%09values=values+data.text+','
+%0A%09%09%09%09values.push(data.name);
%0A%09%09%09
@@ -806,16 +806,27 @@
'+values
+.join(', ')
+'%3C/td%3E%3C
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.