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
398717726c06e289a1607d75fa6adcc00a051f8e
Remove unused variable
tests/unit/lib/remap.js
tests/unit/lib/remap.js
define([ 'intern!object', 'intern/chai!assert', '../../../lib/node!istanbul/lib/collector', '../../../lib/loadCoverage', '../../../lib/remap' ], function (registerSuite, assert, Collector, loadCoverage, remap) { registerSuite({ name: 'remap-istanbul/lib/remap', 'remapping': function () { var coverage = re...
JavaScript
0.000015
@@ -5495,39 +5495,24 @@ %5B%5D;%0A%09%09%09%0A%09%09%09 -var coverage = remap(loadCo
3aa18b30575d851ece72de1ce1dadbfd18585331
Fix donationsThermometer error when empty
app/javascript/state/thermometer/index.js
app/javascript/state/thermometer/index.js
// @flow import type { ChampaignGlobalObject } from '../../types'; import { isEmpty, mapValues } from 'lodash'; export type Action = | { type: '@@chmp:initialize', payload: ChampaignGlobalObject } | { type: '@@chmp:thermometer:update', attrs: State } | { type: '@@chmp:thermometer:increment', temperature: number ...
JavaScript
0.000123
@@ -610,111 +610,8 @@ = %7B -%0A active: false,%0A goals: %7B%7D,%0A offset: 0,%0A remainingAmounts: %7B%7D,%0A title: '',%0A totalDonations: %7B%7D,%0A %7D;%0A%0A @@ -1235,23 +1235,8 @@ rn %7B - active: false %7D;%0A
321cfa90d832f8004ccc783eaf8cd7f29ab154ab
Fix crash when opening some new datasets
app/resonant-laboratory/models/Dataset.js
app/resonant-laboratory/models/Dataset.js
import MetadataItem from './MetadataItem'; import datalib from 'datalib'; let girder = window.girder; let COMPATIBLE_TYPES = { boolean: ['boolean'], integer: ['integer', 'boolean'], number: ['number', 'integer', 'boolean'], date: ['date'], string: ['string', 'date', 'number', 'integer', 'boolean'], 'strin...
JavaScript
0.000003
@@ -428,16 +428,96 @@ b) =%3E %7B%0A + if (!(a instanceof Object) %7C%7C !(b instanceof Object)) %7B%0A return false;%0A %7D%0A let aK
ef646ca6a9fdbc43ff709a6171053c63ca7188b2
Remove console.log.
app/scripts/Widget/plugins/Match/Match.js
app/scripts/Widget/plugins/Match/Match.js
import React, { Component, PropTypes } from 'react' import * as Paths from '../../../Paths' import { isValidEmail } from '../../../../util/validation-helper' import { Error, Input } from '../../../../components/FormUtil' import { TellAFriend, OverlayWidget } from '../../../components' import { addActivistMatch } from ...
JavaScript
0
@@ -1632,50 +1632,8 @@ %7D%0A%0A - console.log(%7B matchId, activist %7D);%0A
c70db31f7a58d516795f2ff4e4a29ff5a291d6c1
Update misc.js
src/misc.js
src/misc.js
(function(ext) { // Cleanup function when the extension is unloaded ext._shutdown = function() {}; // Status reporting code // Use this to report missing hardware, plugin or unsupported browser ext._getStatus = function() { return {status: 2, msg: 'Ready'}; }; ext.comment = functio...
JavaScript
0.000001
@@ -675,19 +675,27 @@ = %22url( -url +%22 + url + %22 ) no-rep
a59b98a1dfe7cfa511b57bd75ff213272de124cb
enforce callback
src/cli_list.js
src/cli_list.js
var _ = require("lodash"); var Table = require("cli-table"); var clc = require("cli-color"); var SauceBrowsers = require("./browsers"); module.exports = function (callback) { console.log("Available Sauce Browsers:"); var browsers = SauceBrowsers.filter(function () { return true; }); var families = _.groupBy(bro...
JavaScript
0.000001
@@ -1996,26 +1996,8 @@ );%0A%0A - if(callback)%7B%0A ca @@ -2015,10 +2015,6 @@ e);%0A - %7D%0A %7D;
b1a7845386f262c05632ecdbac3d44b7f454a03e
Fix selector
R7.Documents.Dnn/js/selectDocuments.js
R7.Documents.Dnn/js/selectDocuments.js
function r7d_selectDocument(documentId, checked, value) { var values = JSON.parse(value); var index = values.indexOf(documentId); if (checked) { if (index < 0) { values.push(documentId); } } else { if (index >= 0) { values.splice(index, 1); } }...
JavaScript
0.000001
@@ -945,13 +945,14 @@ %22 . -EditC +edit-c ell
70022bbe7a319c03986e5f14ce80c5d0d5bd5ee5
Use an ANSI colored prompt for the REPL
bin/client.js
bin/client.js
#!/usr/bin/env node var repl = require('repl'); var util = require('util'); var fs = require('fs'); var path = require('path'); var program = require('commander'); var Chrome = require('../'); function display(object) { return util.inspect(object, { 'colors': process.stdout.isTTY, 'depth': null ...
JavaScript
0.000002
@@ -846,11 +846,26 @@ ': ' -%3E%3E%3E +%5C033%5B32m%3E%3E%3E%5C033%5B0m ',%0A
70a79440ea0afa283fc83a3d2812a16e916836e5
Define default implementation of accumulate polymorphic method.
core.js
core.js
/* vim:set ts=2 sw=2 sts=2 expandtab */ /*jshint asi: true undef: true es5: true node: true browser: true devel: true forin: true latedef: false globalstrict: true */ 'use strict'; var create = Object.create var Method = require('method') var Box = require('./box') // Define a shortcut for `Array.prototype...
JavaScript
0
@@ -680,16 +680,80 @@ Method( +function(self, next, start) %7B%0A next(end(), next(self, start))%0A%7D )%0Aexport
26b18511625dbc6416decfc56c41d41b372d402d
Find next staff
src/page.js
src/page.js
/* Copyright (C) 2011 by Gregory Burlet, Alastair Porter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
JavaScript
0.998782
@@ -2952,24 +2952,455 @@ s%5BsInd%5D;%0A%7D%0A%0A +/**%0A * Given a staff, get the next staff on the page%0A *%0A * @methodOf Toe.Model.Page%0A * @param %7BToe.Model.Staff%7D staff %0A * @returns %7BStaff%7D nextStaff the next staff%0A */%0AToe.Model.Page.prototype.getNextStaff = function(staff) %7B%0A // for each ...
cd849727f447d76e39248e24225ff7b2fef69f5d
Remove use of window inside closure
src/confetti.js
src/confetti.js
// Based off of http://stackoverflow.com/questions/16322869/trying-to-create-a-confetti-effect-in-html5-how-do-i-get-a-different-fill-color // and http://codepen.io/linrock/pen/Amdhr (function (global) { 'use strict'; var DEFAULT_NUM_CONFETTI = 500, animate = window.requestAnimationFrame || window.webk...
JavaScript
0.000001
@@ -262,22 +262,22 @@ imate = -window +global .request @@ -302,22 +302,22 @@ -window +global .webkitR @@ -348,22 +348,22 @@ -window +global .mozRequ @@ -1603,22 +1603,22 @@ is;%0A -window +global .removeE @@ -2343,22 +2343,22 @@ ;%0A -window +global .addEven
42476d365fb1e1e493e98fade100591530b87cd3
Improve Pipe function
src/pipe.js
src/pipe.js
import _ from 'lodash'; import { isPipeline } from './Pipeline'; /** * Pipes in pipeline can be functions (pipes) or pipeline (multiple pipes connected). * When piping stream pipe is needed. * @param pipeline * @returns {*} */ function resolvePipe(pipeline) { // TODO - better name if (isPipeline(pipeline)) { ...
JavaScript
0.000002
@@ -315,117 +315,8 @@ ) %7B%0A - // TODO - find better way then creating new function (optimization)%0A // Maybe bind when adding pipe?%0A @@ -339,23 +339,8 @@ pipe -.bind(pipeline) ;%0A @@ -1120,16 +1120,18 @@ x = 0) %7B +%0A // TODO @@ -1139,28 +1139,82 @@ - re -name (and this file) +move new p...
9893d7bfacf47bf183fefa05e02fe3fc50ac18a6
add decade, make colors lower case
data.js
data.js
'use strict' const fetch = require('isomorphic-fetch') const groupBy = require('lodash.groupBy') const endpoint = 'http://199.217.112.113:8080/picture/picture' const filters = ['collection', 'color', 'location', 'motif', 'view'] const err = (e) => {throw e} const data = fetch(endpoint) .then((res) => res.json()...
JavaScript
0.999751
@@ -174,16 +174,26 @@ ters = %5B +'decade', 'collect @@ -537,16 +537,104 @@ ght%0A%09%09%7D%0A +%09%09, year: p.Decade%0A%09%09, decade: ((p.Decade - p.Decade %25 10) %7C%7C '?').toString()%0A %09%09, coll @@ -677,16 +677,30 @@ p.Color +.toLowerCase() %0A%09%09, loc
f1bdfe4bccad190a884df362112976d6536ac250
--clean.
src/repl.js
src/repl.js
var repl = module.exports = {}; var req = require('./req'); var path = require('path'), std = require('repl'); var extend = req.local('aux.js/object/extend'), colors = req.local('cli-color'), minimist = req.local('minimist'); var uconsole = require('./console'), log = require('./log'), dir = require...
JavaScript
0.999814
@@ -429,16 +429,23 @@ rgv);%0A%0A%09 +return repl.sta @@ -447,16 +447,33 @@ l.start( +%7B argopts: argv %7D );%0A%7D%0A%0Are @@ -497,85 +497,134 @@ on ( -)%0A%7B%0A%09var instance = std.start(%7B%0A%09%09prompt: 'js %3E ',%0A%09%09ignoreUndefined: true%0A%09%7D +options)%0A%7B%0A%09options = extend(%7B%7D, defaul...
ea4c3b7106d111380ed15bfbaeb54440a4c7416d
fix demo
demo.js
demo.js
'use strict'; const exec = require('child_process').exec; const chalk = require('chalk'); const config = require('./demo-config'); const engine = require('./index'); console.log(config) engine.on('tournament:aborted', function() { console.log(chalk.bold.red('Tournament aborted.')); }); engine.on('tournament:com...
JavaScript
0.000001
@@ -513,32 +513,15 @@ ;%0A -// TODO should call done +(); %0A%7D); @@ -602,228 +602,43 @@ s;%0A%0A -startPlayerServices().then(function() %7B%0A engine.start(tournamentID, players);%0A%7D);%0A%0A%0A%0A%0A%0Afunction startPlayerServices() %7B%0A return Promise.all(players.map(function(player)%7B%0A return ne...
218ff20cf0f5213a275677cd211baf9bffce5450
Fix test.js path
src/test.js
src/test.js
var fs = require('fs'); var ts2hx = require('./ts2hx'); var hx = ts2hx(fs.readFileSync(__dirname+'/../Example.ts')); process.stdout.write(hx);
JavaScript
0.000032
@@ -97,16 +97,24 @@ me+'/../ +example/ Example.
6a7138dab6088ceff07b253e3720709f23651b51
Implement tree.leaves on tree.filter.
src/tree.js
src/tree.js
import "heap"; function Tree(root) { this.root = root; } Tree.prototype = { leaves: tree_leaves, search: tree_search, filter: tree_filter }; function tree_leaves() { var leaves = [], node, nodes = [this.root]; while ((node = nodes.pop()) != null) { if (node.children) { var i = -1, ...
JavaScript
0
@@ -176,275 +176,64 @@ %7B%0A -var leaves = %5B%5D,%0A node,%0A nodes = %5Bthis.root%5D;%0A%0A while ((node = nodes.pop()) != null) %7B%0A if (node.children) %7B%0A var i = -1, n = node.children.length;%0A while (++i %3C n) nodes.push(node.children%5Bi%5D);%0A %7D else %7B%0A leaves.p...
157d716e5e6f468ce106a27b76f52c28da9b5fc3
Fix isOwnerOrStaff function [WAL-739]
app/scripts/services/customers-service.js
app/scripts/services/customers-service.js
'use strict'; (function() { angular.module('ncsaas') .service('customersService', [ 'baseServiceClass', '$state', '$q', '$http', 'ENV', 'currentStateService', 'usersService', customersService]); function customersService(baseServiceClass, $state, $q, $http, ENV, currentStateService, usersService) { ...
JavaScript
0
@@ -1085,12 +1085,10 @@ ply( -null +vm , re
1f684919c7f8c2e8a486ba53c4b2d210247684f9
Use parent launch id from URL for Unique errors (#2950)
app/src/controllers/uniqueErrors/sagas.js
app/src/controllers/uniqueErrors/sagas.js
/* * Copyright 2021 EPAM Systems * * 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 ...
JavaScript
0
@@ -1004,32 +1004,50 @@ eChangedSelector +, launchIdSelector %7D from 'control @@ -1055,24 +1055,24 @@ ers/pages';%0A - import %7B PAG @@ -1562,16 +1562,67 @@ ayload;%0A + const launchId = yield select(launchIdSelector);%0A let pa @@ -2162,25 +2162,8 @@ chId -: parentLaunch.id %7D %7D @@ -2422,22 +2422,15 ...
66b6ced07319da19b696944b1dfca516fc299b53
update writeFile to writeFileSync
src/util.js
src/util.js
var _ = require('lodash') var fs = require('fs') module.exports = { getLatestData(db, filter) { return _.chain(db) .filter(filter) .sortBy('version') .reverse() .head() .value() }, getDBIndex(db, filter) { return _.findIndex(db, filter) }, getNow() { ...
JavaScript
0
@@ -476,24 +476,81 @@ h, data) %7B%0D%0A + var JSONString = JSON.stringify(data, null, ' ')%0D%0A return f @@ -560,16 +560,20 @@ riteFile +Sync (filePat @@ -583,38 +583,22 @@ JSON -.s +S tring -ify(data, null, ' ') +, 'utf8' )%0D%0A
d270ce54311c6fbc7148c6efdb3b41edcf79ad0f
add on delete
lib/dialects/base/scheme.js
lib/dialects/base/scheme.js
var SchemeParser = function () { } var types = { "Number": {syntax: "int"}, "BigInt": {syntax: "bigint"}, "String": {syntax: "varchar", length: true}, "Text": {syntax: "text"}, "Real": {syntax: "real"}, "Boolean": {syntax: "tinyint", default_length: 1}, "Blob": {syntax: "blob"}, "Binary": {syntax: "binary", le...
JavaScript
0.000001
@@ -1580,16 +1580,71 @@ ld + %22)%22 + + (key.on_delete ? %22 ON DELETE %22 + key.on_delete : %22%22) ;%0A%09%09if (
2de718365e3afd4ed278a4220916615eca563c4d
Fix environment detecting
src/util.js
src/util.js
import {DEBUGGING} from './constants' /** * Define property with value. * * @param {Object} object * @param {String} property * @param {*} value * @param {Boolean} [enumerable] */ export function defineValue (object, property, value, enumerable) { Object.defineProperty(object, property, { value, enum...
JavaScript
0.000002
@@ -2010,24 +2010,25 @@ BUGGING !== +' undefined && @@ -2024,16 +2024,17 @@ ndefined +' && DEBU
ea8dd1bc079ad6e6354f1633e83d3fbdda9053f2
fix posts initial load
source/pages/feed.js
source/pages/feed.js
import React from "react" import { connect } from 'react-redux' import { List, ListItem, Paper, Toolbar, ToolbarGroup, ToolbarTitle } from "material-ui" import { FormattedMessage } from "react-intl" import DefaultRawTheme from 'material-ui/lib/styles/raw-themes/light-raw-theme'; import PostForm from "co...
JavaScript
0
@@ -577,27 +577,27 @@ eturn %7B%0A -loa +fin dPosts: (que @@ -764,27 +764,207 @@ -const %7B params, loa +this.loadPosts()%0A %7D,%0A%0A componentWillReceiveProps(newProps) %7B%0A if (this.props.params.pageId != newProps.params.pageId) %7B%0A this.loadPosts()%0A %7D%0A %7D,%0A%0A loadPosts() %...
15cfa010f0b56c46d814ca7153f736b7437959c8
fix parse.
scraper-engine/services/parseXml.js
scraper-engine/services/parseXml.js
var fs = require('fs') var xml2js = require('xml2js') var parser = new xml2js.Parser() var dataFiled = require(global.appRoot + '/models/data-field') var navFiled = require(global.appRoot + '/models/navigation-field') var collections = require(global.appRoot + '/models/xmlFile') var parse = { parseFile : fun...
JavaScript
0.000001
@@ -852,16 +852,34 @@ +%0A data_s @@ -898,32 +898,33 @@ h(data_element)%0A +%0A @@ -929,16 +929,17 @@ %7D%0A + %0A%0A @@ -1485,16 +1485,85 @@ ectors)%0A +//console.log('global.xmlfile parse '+global.xmlfile.data.length)%0A// console.
ed45e45cd4ee03e2e76aa099dffcedd003854100
update _create & _init prosess of View, fix bug of _delegateEvent of View.
src/view.js
src/view.js
/** * [description] * @return {[type]} [description] */ window.$MR.View = (function($, $MR) { 'use strict'; var View; View = $MR.Utils.extend($MR.Bone, { defaults: {}, events: {}, _create: function(options) { this.el = options.el; this.$el = $(t...
JavaScript
0
@@ -322,16 +322,56 @@ is.el);%0A + this.model = options.model;%0A @@ -519,16 +519,55 @@ tion() %7B +%0A this._delegate();%0A %7D,%0A%0A @@ -1903,16 +1903,33 @@ lement = + (argsLen %3E 1) && tagElem
5ff7de06362804911b3b027b3ecc450af02ca407
Update support for visibilityState
src/wait.js
src/wait.js
import * as Utils from './utils'; const P = Utils.P; let domReady = false; export function dom() { if (domReady) return P(); const d = new Utils.Deferred(); if (document.readyState == "complete") { domReady = true; setTimeout(d.ok); return d.promise; } function readyLsn() { document.removeEventListener(...
JavaScript
0
@@ -684,16 +684,99 @@ t.hidden + %7C%7C document.visibilityState == %22hidden%22 %7C%7C document.visibilityState == %22prerender%22 ) %7B%0A%09%09p @@ -1069,24 +1069,92 @@ istener() %7B%0A +%09%09if (!document.hidden %7C%7C document.visibilityState == %22visible%22) %7B%0A%09 %09%09document.r @@ -1212,16 +1212,17 ...
29e3d126ec12c71679c47046b191a9ec357362cc
Update html/js/user_actions.js
html/js/user_actions.js
html/js/user_actions.js
// This file contains all custom client side scripts var draw_pie = function() { ///// STEP 0 - setup // source data table and canvas tag var data_table = document.getElementById('piechart-table'); var canvas = document.getElementById('piechart'); var td_index = 0; // which TD contains the data var colors = new...
JavaScript
0.000001
@@ -5638,85 +5638,8 @@ );%0A%0A - $(%22#initiative-detail%22).css('height', $(%22#initiative-detail%22).height());%0A @@ -5792,87 +5792,8 @@ );%0A%0A - $(%22#initiative-history%22).css('height', $(%22#initiative-history%22).height());%0A
b7642cc89f14818a1a41fd4f4f94de6fff297f0a
fix issue
pages/list.js
pages/list.js
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <ul class="table-view"> <li class="table-vi...
JavaScript
0.000002
@@ -267,1325 +267,29 @@ %3C -ul class=%22table-view%22%3E%0A %3Cli class=%22table-view-cell media%22%3E%0A %3Ca class=%22navigate-right%22%3E%0A %3Cimg class=%22media-object pull-left%22 src=%22http://placehold.it/42x42%22%3E%0A %3Cdiv class=%22media-body%22%3E%0A ...
1186d8ec200a9333d228f34cb478148b137a7743
Remove as it was covered by previous if-then; cleanup
src/core/run.js
src/core/run.js
import { JSONPath } from 'jsonpath-plus'; import optionAPI from '../api/option'; import traverse from './traverse'; import random from './random'; import utils from './utils'; function pick(data) { return Array.isArray(data) ? random.pick(data) : data; } function cycle(data, reverse) { if (!Array.isArray...
JavaScript
0
@@ -4149,53 +4149,8 @@ %3E %7B%0A - if (copy.properties) %7B%0A @@ -4198,30 +4198,8 @@ y%5D;%0A - %7D%0A
4ffad7130b818c3c7ead3b6063b9e6c9f88e0130
Use currency database file
src/currency.js
src/currency.js
( function( global, factory ) { if ( typeof module === "object" && typeof module.exports === "object" ) { module.require( "../resources/currency-names" ); module.require( "./resource-bundle" ); module.require( "./locale" ); module.exports = factory( global ); } else { fa...
JavaScript
0
@@ -204,24 +204,69 @@ -bundle%22 );%0A + module.require( %22./currency-data%22 );%0A modu @@ -1342,339 +1342,1398 @@ = %7B -%0A %22EUR%22: new Currency( %22EUR%22, 2, 0 ),%0A %22GBP%22: new Currency( %22GBP%22, 2, 0 ),%0A %22USD%22: new Currency( %22USD%22, 2, 0 )%0A %7D;%0A%0...
c5fea028fee0fbe24620f75d72cf6212fa47536b
add missing function
src/database.js
src/database.js
const knex = require('knex'); const cfg = require('../config'); const db = knex(cfg.db); module.exports = { async createUser(telegramId) { return db('user') .insert({ telegram_id: telegramId }); }, async linkUser(telegramId, username) { return db('user') .where({ telegram_id: telegramId }) ...
JavaScript
0.000004
@@ -1007,12 +1007,172 @@ %7D);%0A %7D, +%0A%0A async setDefaultGroup(telegramId, groupName) %7B%0A return db('user')%0A .where(%7B telegram_id: telegramId %7D)%0A .update(%7B default_group: groupName %7D);%0A %7D, %0A%7D;%0A
094a08638a442e1197a0d8f3ba7b29d86dbac8af
Add back lowercase map for iLike
src/db/index.js
src/db/index.js
/* eslint-disable */ import Sequelize from 'sequelize' import PaperTrail from 'sequelize-paper-trail' import path from 'path' import config from '../config' const { database, username, password, hostname, port } = config.postgres const { Op } = Sequelize const operatorsAliases = { eq: Op.eq, ne: Op.ne, gte: Op...
JavaScript
0.000007
@@ -459,16 +459,35 @@ otLike,%0A + ilike: Op.iLike,%0A iLike:
e782815985055d2ef53c50a348a80e6fdf03151c
change evidence spec test
spec/evidenceSpec.js
spec/evidenceSpec.js
/* global describe it expect belhop */ describe('belhop', function() { 'use strict'; var locations = []; var evidence = null; describe('evidence can be', function() { it('created', function(done) { var onSucc = function(response, status, xhr) { expect(xhr.status).toEqual(201); var e...
JavaScript
0
@@ -793,30 +793,90 @@ t = -%7BSpecies +%5B%0A %7Bname: 'Species', value : +%5B 9606, -Cell +10090%5D%7D,%0A %7Bname: 'Cell', value : +%5B 'fib @@ -883,17 +883,39 @@ roblast' -%7D +, 'leukocyte'%5D%7D%0A %5D ;%0A
c6789ff6d39868cd231edbc000c45fcf15d0c258
Add timer parser
specs/parser-spec.js
specs/parser-spec.js
describe("Parser", function () { beforeEach(function () { jasmine.clock().install(); jasmine.Ajax.install(); }); afterEach(function () { jasmine.clock().uninstall(); jasmine.Ajax.uninstall(); }); it("parse data", function () { var ew = new EchoesWorks({element: 'slide', source: 'data/data.json'}); // ...
JavaScript
0.000004
@@ -206,41 +206,8 @@ );%0A%0A -%09it(%22parse data%22, function () %7B%0A%09 %09var @@ -275,20 +275,48 @@ son'%7D);%0A -%09%09// +%0A%09it(%22parse data%22, function () %7B %0A%09%09spyOn @@ -604,16 +604,8 @@ 51%22, -' +%0A%09%09%09' %22cod @@ -736,20 +736,30 @@ (%22parse -time +data correctly %22, funct @@ -7...
1cebe2d8d150e92357b812ae28ce16894522fc96
Remove extra logs from debug UI
src/adapters/debug/public/js/index.js
src/adapters/debug/public/js/index.js
$(function() { window.chat = { init: function() { this.chatLog = $('.chat-history'); this.chatLogList = this.chatLog.find('ul'); this.userList = $('.people-list .list'); this.sendButton = $('button'); this.textArea = $('#message-to-send'); ...
JavaScript
0
@@ -1558,71 +1558,8 @@ ) %7B%0A - console.log(('%5Bdata-user-id=%22' + user.id + '%22%5D'));%0A @@ -1620,24 +1620,24 @@ th === 0) %7B%0A + @@ -2687,68 +2687,8 @@ ) %7B%0A - console.log('appendResponse', incomingMessage);%0A @@ -3673,55 +3673,8 @@ ) %7B%0A - ...
7294b8d0fbb277111b1fb005cffb6225b6c815a2
add a few inputs to test tabbing through
src/demo/App.js
src/demo/App.js
/* eslint no-magic-numbers: 0 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {Table} from '../lib'; import {mockData} from './data.js'; const clone = o => JSON.parse(JSON.stringify(o)); class App extends Component { constructor() { super(); this.state = { ...
JavaScript
0
@@ -672,24 +672,100 @@ e=%22text%22 /%3E%0A + %3Cinput type=%22text%22 /%3E%0A %3Cinput type=%22text%22 /%3E%0A
2f9c96f72bc1fac8234bf0d374c6de524d18b9f5
include required id
src/demo/App.js
src/demo/App.js
/* eslint no-magic-numbers: 0 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {Table} from '../lib'; import {mockData} from './data.js'; import Dropdown from 'react-select'; import TestFixtures from '../../tests/fixtures.json'; import {merge} from 'ramda'; const clone = o => JSON....
JavaScript
0.000118
@@ -456,16 +456,45 @@ rops: %7B%0A + id: 'table',%0A
f98e9ddd8fa02c5d16f7d94c8b811b21e2c39b8f
Update Siddhi quick start guide link
src/main/resources/web/js/tool-editor/constants.js
src/main/resources/web/js/tool-editor/constants.js
/** * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.o...
JavaScript
0
@@ -968,53 +968,43 @@ s:// -docs.wso2.com/display/SP400/Q +siddhi.io/en/v5.0/docs/q uick -+S +-s tart -+Guide +/ %22 + @@ -1038,17 +1038,21 @@ d with S -P +iddhi editor.
d09143029b0d45288e06b5b8c9dfb25997304b50
use Promise.all when crawling filesystem
lib/crawlfs.js
lib/crawlfs.js
'use strict' const pify = require('pify') const fs = process.versions.electron ? require('original-fs') : require('fs') const glob = pify(require('glob')) module.exports = function (dir, options) { const metadata = {} return glob(dir, options) .then(filenames => { for (const filename of filenames) { ...
JavaScript
0.000002
@@ -48,16 +48,21 @@ st fs = +pify( process. @@ -119,16 +119,17 @@ re('fs') +) %0Aconst g @@ -161,110 +161,35 @@ ))%0A%0A -module.exports = function (dir, options) %7B%0A const metadata = %7B%7D%0A return glob(dir, options)%0A .then +function determineFileType (fil @@ -197,103 +197,60 @@ name -s =%3E +) ...
a5efc9d95fd2f8442856ce79c2bb9ff3db545cf4
Update Comments in CustomSwipeGesture
src/awesome_map/CustomSwipeGesture.js
src/awesome_map/CustomSwipeGesture.js
define(function(require) { 'use strict'; var Hammer = require('hammerjs'); var EVALUATION_DEPTH = 2; var FRICTION = 2; var moves = []; function getDirection() { var start = moves[0]; var end = moves[moves.length - 1]; var deltaX = Math.abs(end.deltaX - start.deltaX); ...
JavaScript
0
@@ -1191,17 +1191,17 @@ // -s +S et 0 for @@ -1248,16 +1248,17 @@ ransform +. %0A @@ -1674,19 +1674,38 @@ // -max touches +Enforce the max touchs option. %0A @@ -2422,120 +2422,120 @@ // -when the distance we moved is too small we skip this gesture%0A // or we can be already in...
d48cafba711c35247ce3428ddb1f7276e525e309
Make Function#bind existence checking simpler. (Thanks @vvakame!)
lib/empower.js
lib/empower.js
/** * empower.js - Power Assert feature enhancer for assert function/object. * * https://github.com/twada/empower * * Copyright (c) 2013-2014 Takuto Wada * Licensed under the MIT license. * https://raw.github.com/twada/empower/master/MIT-LICENSE.txt * * A part of extend function is: * Copyright 2012 jQuer...
JavaScript
0
@@ -1838,20 +1838,26 @@ of ( -f +F unction -()%7B%7D +.prototype .bin
df30eb9b68fd248e7109a7f8a4debc257c98b8d9
add from_user_name and to_user_name to balance_transactions copy
src/c/user-balance-transaction-row.js
src/c/user-balance-transaction-row.js
import m from 'mithril'; import h from '../h'; const I18nScope = _.partial(h.i18nScope, 'users.balance'); const userBalanceTrasactionRow = { controller(args) { const expanded = h.toggleProp(false, true); if (args.index == 0) { expanded.toggle(); } return { ...
JavaScript
0
@@ -3480,32 +3480,196 @@ ntributor_name,%0A + from_user_name: transaction.origin_objects.from_user_name,%0A to_user_name: transaction.origin_objects.to_user_name,%0A
e3291a535f7749931ab682d5b20968a661a09d7d
remove old 'extension extractor' code, not being used any longer
lib/extract.js
lib/extract.js
var fs = require( 'fs' ) , path = require( 'path' ) , extractorPath = path.join( __dirname, "extractors" ) , XmlEntities = require('html-entities').XmlEntities , entities = new XmlEntities() , extensionExtractors = {} , typeExtractors = {} , regexExtractors = [] , WHITELIST_PRESERVE_LINEBREAKS = /[^A-Za...
JavaScript
0
@@ -196,37 +196,8 @@ s()%0A - , extensionExtractors = %7B%7D%0A , @@ -212,24 +212,24 @@ actors = %7B%7D%0A + , regexExt @@ -1286,157 +1286,8 @@ %0A %7D -%0A%0A if ( extractor.extensions ) %7B%0A extractor.extensions.forEach( function( ext ) %7B%0A extensionExtractors%5Bext%5D = extractor.extract;%0...
6329e020cc0d133d1d5b16a0d24cbc172f15fe2e
Check the iframe existence before closing an application frame tab
seava.e4e.impl/src/main/resources/webapp/js/e4e/base/FrameNavigatorWithIframe.js
seava.e4e.impl/src/main/resources/webapp/js/e4e/base/FrameNavigatorWithIframe.js
/** * DNet eBusiness Suite. Copyright: Nan21 Electronics SRL. All rights reserved. * Use is subject to license terms. */ e4e.base.FrameNavigatorWithIframe = { /** * Maximum number of tabs (application frames) which are allowed to be * opened at a certain moment. Use -1 for unlimited. * * @type Integer *...
JavaScript
0
@@ -3280,20 +3280,26 @@ ) %7B%0A%09%09%09%09 -if ( +var _fr = window.f @@ -3314,32 +3314,76 @@ is.n21_iframeID%5D +;%0A%09%09%09%09if (_fr && _fr.theFrameInstance && _fr .theFrameInstanc
e034731cdc07565e324f18988834c5d510133170
Order classes.
assets/js/components/DateRangeSelector.js
assets/js/components/DateRangeSelector.js
/** * Date range selector component. * * 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/licenses/LICENSE...
JavaScript
0
@@ -2891,63 +2891,8 @@ es(%0A -%09%09%09%09%09'googlesitekit-header__date-range-selector-menu',%0A %09%09%09%09 @@ -2951,24 +2951,79 @@ _dropdown',%0A +%09%09%09%09%09'googlesitekit-header__date-range-selector-menu',%0A %09%09%09%09%09%7B%0A%09%09%09%09%09
44a91211ff7fb2c8f51b4e6fed06f5d8460bcd3b
fix eslint
bin/plugin.js
bin/plugin.js
var os = require('os'); var cp = require('child_process'); var fs = require('fs'); var path = require('path'); var fse = require('fs-extra2'); var CMD_SUFFIX = process.platform === 'win32' ? '.cmd' : ''; var WHISLTE_PLUGIN_RE = /^((?:@[\w-]+\/)?whistle\.[a-z\d_-]+)(?:\@([\w.^~*-]*))?$/; var PLUGIN_PATH = path.join(get...
JavaScript
0.998292
@@ -2374,16 +2374,17 @@ + '%22%7D,') +; %0A %7D%0A f
6c38ca4b3af365dec1dd6fc7479ebe893e9ee77a
Add deleteItemsById to customerInvoice
src/pages/dataTableUtilities/reducer/getReducer.js
src/pages/dataTableUtilities/reducer/getReducer.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ /** * Method using a factory pattern variant to get a reducer * for a particular page or page style. * * For a new page - create a constant object with the * methods from reducerMethods which are composed to create * a reducer. Add to PAGE_REDUCER...
JavaScript
0.000001
@@ -672,16 +672,35 @@ Object,%0A + deleteItemsById,%0A %7D from ' @@ -1097,16 +1097,35 @@ Object,%0A + deleteItemsById,%0A %7D;%0A%0Acons
c7569ac7e342e8ff1b635850a5c41d72f63adf20
use the right server.js
bin/server.js
bin/server.js
/* eslint no-console: 0 */ import express from 'express'; import http from 'http'; import httpProxy from 'http-proxy'; import path from 'path'; import { port, apiHost, apiPort } from '../config/env'; const targetUrl = `http://${apiHost}:${apiPort}`; const app = express(); const server = new http.Server(app); const prox...
JavaScript
0.000002
@@ -7,1075 +7,461 @@ int -no-console: 0 */%0Aimport express from 'express';%0Aimport http from 'http';%0Aimport httpProxy from 'http-proxy';%0Aimport path from +global-require: 0 */%0A%0Aconst path = require( 'path' +) ;%0A -import %7B port, apiHost, apiPort %7D from '../config/env';%0Aconst targetUrl = %60http://...
0464f06fa4a2555bfc65ca8d6404760986e565ab
Add creation of programSupplierRequisition reducer
src/pages/dataTableUtilities/reducer/getReducer.js
src/pages/dataTableUtilities/reducer/getReducer.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ /** * Method using a factory pattern variant to get a reducer * for a particular page or page style. * * For a new page - create a constant object with the * methods from reducerMethods which are composed to create * a reducer. Add to PAGE_REDUCER...
JavaScript
0
@@ -3292,24 +3292,356 @@ cktake,%0A%7D;%0A%0A +const programSupplierRequisition = %7B%0A ...BASE_TABLE_PAGE_REDUCER,%0A filterData,%0A selectRow,%0A deselectRow,%0A deselectAll,%0A openBasicModal,%0A closeBasicModal,%0A editTheirRef,%0A editComment,%0A refreshData,%0A addMasterListItems,%0A addItem,%0A cr...
86098625e2d0b912209f14f459f7274c507734b0
fix for $.extend to du.extend.
lib/filters/QueryStringFilter.js
lib/filters/QueryStringFilter.js
/** * Parases a query string into a query object */ Doppelganger.Filters.QueryStringFilter = new Filter('QueryString', function(request){ if (!(routeData && routeData.params)) { // Only need to read query parameters on first load. routeData = $.extend(routeData, {params: Arg.all()}); } //@todo figure out reque...
JavaScript
0
@@ -247,9 +247,10 @@ a = -$ +du .ext
51bce92bc8bfc2ee0201c851626d862989919bfd
Set intercept right
extension/chrome/background.js
extension/chrome/background.js
"use strict"; const DOMAIN = "http://127.0.0.1:8000" const SUBMIT_URL = DOMAIN + "/bookmarks/create"; const CHECK_URL = DOMAIN + "/autotags/check"; const REFER_VALUE = DOMAIN + "/.chrome_extension"; let intercept = false; // Call the callback with the csrf token (read from a cookie) let getCsrf = function(callback) ...
JavaScript
0.000013
@@ -1024,38 +1024,8 @@ a);%0A - intercept = true;%0A @@ -1058,32 +1058,66 @@ rf((token) =%3E %7B%0A + intercept = true;%0A @@ -1760,32 +1760,66 @@ rf((token) =%3E %7B%0A + intercept = true;%0A
47c2adc7c35a165e1f5f3568cbf7c7dc3369ab0b
fix sms elections creation
avAdmin/admin-directives/create/create.js
avAdmin/admin-directives/create/create.js
angular.module('avAdmin') .directive('avAdminCreate', ['$q', 'Authmethod', 'ElectionsApi', '$state', '$i18next', function($q, Authmethod, ElectionsApi, $state, $i18next) { // we use it as something similar to a controller here function link(scope, element, attrs) { scope.creating = false; scop...
JavaScript
0.998978
@@ -1556,24 +1556,167 @@ .title%7D));%0A%0A + if (el.census.config.subject && el.census.auth_method !== 'email') %7B%0A delete el.census.config.subject;%0A %7D%0A%0A
d688b37bb087c2998688c248770c2fa140921c11
Remove unnecesary code
lib/helpers.js
lib/helpers.js
/* Copyright 2017 Bitnami. 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 ...
JavaScript
0.99772
@@ -2006,18 +2006,20 @@ user;%0A -le +cons t userIn @@ -2094,27 +2094,31 @@ ) %7B%0A -console.log +throw new Error (%60Unable @@ -2173,27 +2173,8 @@ %60);%0A - userInfo = %7B%7D;%0A %7D%0A @@ -4793,34 +4793,8 @@ else - if (!_.isEmpty(userInfo)) %7B%0A
93c32000bc05cde289c57600e129c1e38791c62c
Add back intlBlock
lib/helpers.js
lib/helpers.js
(function (root, factory) { var lib = factory(); if (typeof module === 'object' && module.exports) { // node.js/CommonJs module.exports = lib; } if (typeof define === 'function' && define.amd) { // AMD anonymous module define(lib); } if (root) { root.Handl...
JavaScript
0.000001
@@ -1554,16 +1554,647 @@ %0A %7D%0A%0A + /**%0A Creates a new context for the given code. This allows you to define new%0A values on the context for things like %60locale%60 and %60currency%60%0A @method intlBlock%0A @para %7BObject%7D options Options passed to the method from the handlebars hand...
d602a2a4c9b2aca9ca330768025fd594ad2f0037
Add helper for container “created”-status checking
lib/helpers.js
lib/helpers.js
var exec = require('child_process').exec, _ = require('lodash') module.exports.asyncIterate = function(array, callback, done) { function iterate(idx) { var current = array[idx] if (current) { callback(current, function() { iterate(idx+1) }, function(err) { done(err) }) ...
JavaScript
0
@@ -747,12 +747,215 @@ %7D%0A %7D)%0A%7D%0A%0A +module.exports.checkCreated = function(container, callback) %7B%0A exec('docker inspect ' + container.name, function(err) %7B%0A var isCreated = err ? false : true%0A callback(isCreated)%0A %7D)%0A%7D%0A
dd5e784bca525b41e828a41d6b217e4527eee698
add ipUtils.getRequestIpAddress to get the ip address of a request
lib/iputils.js
lib/iputils.js
/* * Copyright 2014, Gregg Tavares. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
JavaScript
0
@@ -3810,35 +3810,512 @@ );%0A%0A -exports.getIpAddresses = ge +function getRequestIpAddresses(req) %7B%0A var ips = req.headers%5B'x-forwarded-for'%5D %7C%7C%0A req.connection.remoteAddress %7C%7C%0A req.socket.remoteAddress %7C%7C%0A req.connection.socket.remoteAddress;%0A if (ips) %7B%0A if (...
0460931823ac1e5fd3b3b78a8e6ae70da3e7b0c7
use context
src/commands/Worldstate/Syndicates.js
src/commands/Worldstate/Syndicates.js
'use strict'; const Command = require('../../models/Command.js'); const SyndicateEmbed = require('../../embeds/SyndicateEmbed.js'); const { createPageCollector } = require('../../CommonFunctions'); const values = ['all', 'arbiters of hexis', 'perrin sequence', 'cephalon suda', 'steel meridian', 'new loka', 'red veil'...
JavaScript
0.99865
@@ -942,16 +942,21 @@ (message +, ctx ) %7B%0A @@ -1434,72 +1434,20 @@ %7C%7C -await this.settings.getChannelSetting(message.channel, ' +ctx. platform ');%0A @@ -1442,18 +1442,16 @@ platform -') ;%0A co
d47564807a5cdf1e2ea1200ce599c9e83dee9dbd
add comment creation
domo.js
domo.js
!function() { var global = Function("return this")() var tags = [ "A", "ABBR", "ACRONYM", "ADDRESS", "AREA", "ARTICLE", "ASIDE", "AUDIO", "B", "BDI", "BDO", "BIG", "BLOCKQUOTE", "BODY", "BR", "BUTTON", "CANVAS", "CAPTION", "CITE", "CODE", "COL", "COLGROUP", "COMMAND", "DATALIST", "DD", "DEL", "DETA...
JavaScript
0
@@ -1512,16 +1512,54 @@ eCSSRule +%0A domo.COMMENT = domo.createComment %0A%0A wh @@ -2602,24 +2602,134 @@ urn el%0A %7D%0A%0A + Domo.prototype.createComment = function(nodeValue) %7B%0A return this.document.createComment(nodeValue)%0A %7D%0A%0A Domo.proto
9f8773c1a5cde4fd5bcf2429ab5625d3d6aa1284
disable youtube annotations in player
src/components/Video/YouTubePlayer.js
src/components/Video/YouTubePlayer.js
import cx from 'classnames'; import React from 'react'; import YouTube from 'react-youtube'; import VideoBackdrop from './VideoBackdrop'; const debug = require('debug')('uwave:component:video:youtube'); export default class YouTubePlayer extends React.Component { static propTypes = { className: React.PropTypes....
JavaScript
0.000001
@@ -1261,45 +1261,315 @@ : 0, -%0A rel: 0,%0A showinfo: 0, + // do not show player controls in the bottom%0A rel: 0, // do not show related videos after the video finishes%0A showinfo: 0, // do not show video title etc in the frame%0A iv_load_policy: 3, // ...
fa2b0a3797467aa027a082d7afdb2b77b5d16eca
Update linebot.js
lib/linebot.js
lib/linebot.js
var linebot = require('linebot'); var express = require('express'); var google = require('googleapis'); var googleAuth = require('google-auth-library'); var bot = linebot({ channelId: '1541948237', channelSecret: '9a8c7887c8ed7ceb3f963ce8f73d64a9', channelAccessToken: '3cL4zroJybMhWDUTZPUnLbxzPjfsoNu5FO0...
JavaScript
0.000001
@@ -2803,26 +2803,24 @@ sage.type == -= 'text')%7B%0D%0A
0b43912af93468dcb1dbb973297c4135dc0da17b
Revert "utils.lang.js.ds: Fix Map & Set hashing to work with JPlus objects properly"
edgedb/lang/common/lang/javascript/ds.js
edgedb/lang/common/lang/javascript/ds.js
/* * Copyright (c) 2013 Sprymix Inc. * All rights reserved. * * See LICENSE for details. **/ // %from metamagic.utils.lang.javascript import sx (function(global) {'use strict'; if (!sx.ds) { var HASH = 0, hop = Object.prototype.hasOwnProperty; var _key = function(key) { var type = typeof key; switch ...
JavaScript
0.000001
@@ -631,17 +631,125 @@ ass__) %7B -%0A + // sx.class, and we're fine with modifying it%0A var hash = key.$hash;%0A if (hash != null) %7B%0A @@ -759,30 +759,71 @@ urn -' hash --' + sx.objId(key +;%0A %7D%0A return (key.$hash = ('hash' + (++HASH)) );%0A
5bea630e12d5c59dec5178044d34a89d7b583d15
Clean up
src/components/fieldinfo/fieldinfo.js
src/components/fieldinfo/fieldinfo.js
'use strict'; /** * @ngdoc directive * @name vleApp.directive:fieldInfo * @description * # fieldInfo */ angular.module('vleApp') .directive('fieldInfo', function (Dataset, Drop) { return { templateUrl: 'components/fieldinfo/fieldinfo.html', restrict: 'E', replace: true, scope: { ...
JavaScript
0.000002
@@ -1184,18 +1184,16 @@ %7D;%0A%0A -%0A%0A @@ -1707,12 +1707,13 @@ %7D;%0A %7D); +%0A
87f92ce2364c3dca67022ae0febe8649785516af
Fix tab indent
editor/extensions/ext-overview_window.js
editor/extensions/ext-overview_window.js
/*globals svgEditor, svgedit, $ */ /*jslint es5: true, vars: true*/ /* * ext-overview_window.js * * Licensed under the MIT License * * Copyright(c) 2013 James Sacksteder * */ var overviewWindowGlobals = {}; svgEditor.addExtension("overview_window", function() { 'use strict'; // Temporarily disabled in Chrome, ...
JavaScript
0.000002
@@ -470,14 +470,10 @@ ) %7B%0A - +%09%09 retu
f3abfec1588b7ca9494b859b0429a5013b6e4697
Optimize Executor
src/extender.js
src/extender.js
let Tools = require("./tools.js"); let P_NAME = "[_$a-zA-Z][_$a-zA-Z0-9]*"; let P_PATH = `${P_NAME}(?:\\.(?:${P_NAME}|[0-9]+))*`; let P_NUMB = "-?[0-9]+(\\.[0-9]+)?"; let P_EXPR = `{(?:(${P_PATH})|(${P_NUMB}))}`; let P_EACH = `{(${P_NAME}) in (${P_PATH})}`; let GRE_WS = /\s+/g; let GRE_EXPR = RegExp(P_EXPR, "g"); le...
JavaScript
0.000004
@@ -257,29 +257,8 @@ %60;%0A%0A -let GRE_WS = /%5Cs+/g;%0A let @@ -799,25 +799,16 @@ rn value -%0A .replace @@ -833,20 +833,16 @@ - let res @@ -865,20 +865,16 @@ data);%0A - @@ -923,59 +923,9 @@ - %7D)%0A .replace(GRE_WS, %22 %22)%0A .trim( +%7D );%0A...
def08f8b60ab50d5c947f1ffc0e339fa804ecd69
replace two functions with one function
src/components/link/link.component.js
src/components/link/link.component.js
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { assign } from 'lodash'; import { Link as RouterLink } from 'react-router'; import Icon from '../icon'; import { validProps } from '../../utils/ether'; import Event from '../../utils/helpers/events'; import tagCo...
JavaScript
0.999998
@@ -895,169 +895,80 @@ %0A%0A -get iconLeft() %7B%0A if (!this.props.icon %7C%7C this.props.iconAlign !== 'left') %7B%0A return null;%0A %7D%0A return this.icon;%0A %7D%0A%0A get iconRight() %7B%0A if (! +renderLinkIcon = (currentAlignment) =%3E %7B%0A const hasProperAlignment = this @@ -979,...
7ebbd39ef881d6afb8ede14a534ba7842f8a07ba
Fix dependencies
models/vm-template.js
models/vm-template.js
'use strict'; module.exports = (sequelize, DataTypes) => { var VMTmpl = sequelize.define('vm_templates', { distroname: { type: DataTypes.STRING(64), allowNull: false }, uuid: { type: DataTypes.STRING(36), allowNull: false }, repourl : { type: DataTypes.STRING(255), ...
JavaScript
0.000004
@@ -507,14 +507,17 @@ mpl. -hasOne +belongsTo (mod
cb92521b4c237e8a6d7b26f0fe02c26b10187c3a
Fix the potential XSS in URI-like strings with <, > and "
modifyurl@2ch.user.js
modifyurl@2ch.user.js
// ==UserScript== // @id Modify URL @2ch // @name Modify URL @2ch // @version 0.0.5 // @namespace curipha // @author curipha // @description Modify "ttp://" text to anchor and redirect URIs to direct link. // @include http://*.2ch.net/* // @include http://*.bbs...
JavaScript
0.000373
@@ -108,9 +108,9 @@ 0.0. -5 +6 %0A// @@ -808,16 +808,33 @@ /%5C/%5B%5Cx21 +%5Cx23-%5Cx3b%5Cx3d%5Cx3f -%5Cx7E%5D+)
c165aece12c95123d5a8af20c3f53bc6040bf08b
Trim JSON in cases
each.js
each.js
var path = require('path'); var fs = require('fs'); function read(file) { return fs.readFileSync(path.join(__dirname, 'cases', file)); } var extra = require('./extra-cases'); module.exports = function (callback) { fs.readdirSync(path.join(__dirname, 'cases')).filter(function (i) { if ( path.extname...
JavaScript
0.000133
@@ -376,16 +376,23 @@ String() +.trim() ;%0A
3f73367146fd4f20784c5cd97d2513f298b3fdf3
Add comment in script.js
http/js/script.js
http/js/script.js
/* * This file is part of mesamatrix. * * Copyright (C) 2014 Romain "Creak" Failliot. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at y...
JavaScript
0
@@ -4293,24 +4293,75 @@ );%0A %7D);%0A%0A + // Change mesa score color based on completion%0A $('.mesa
c515c365778b609c1e54a24bc670f23d3ef2fac4
Set topic rather than queue.
lib/message.js
lib/message.js
/** * Creates an instance of `Message`. * * This class is used as a mock when testing Crane handlers, substituted in * place of a `Message` from the underlying message queue adapter. * * @constructor * @api protected */ function Message(cb) { this.queue = '/'; this.headers = {}; this.__cb = cb; } Message...
JavaScript
0
@@ -251,21 +251,21 @@ %0A this. -queue +topic = '/';%0A @@ -397,23 +397,22 @@ Expose %60 -Respons +Messag e%60.%0A */%0A @@ -432,14 +432,13 @@ s = -Respons +Messag e;%0A
29dc093c490b8c9a4b9d45260228343908ec83af
remove dependency on full handlebars in production
app-addon/components/un-calendar-month.js
app-addon/components/un-calendar-month.js
import moment from 'moment'; import Ember from 'ember'; var DATE_SLOT_HBS = Handlebars.compile( '<li class="{{classNames}}" data-date="{{jsonDate}}">' + '{{date}}' + '</li>' ); function containsDate(dates, date) { if (!dates || !Ember.get(dates, 'length')) { return false; } return dates.any(functio...
JavaScript
0.000001
@@ -54,138 +54,8 @@ ';%0A%0A -var DATE_SLOT_HBS = Handlebars.compile(%0A '%3Cli class=%22%7B%7BclassNames%7D%7D%22 data-date=%22%7B%7BjsonDate%7D%7D%22%3E' +%0A '%7B%7Bdate%7D%7D' +%0A '%3C/li%3E'%0A);%0A%0A func @@ -2334,16 +2334,26 @@ ar attrs +, template ;%0A%0A @@ -2593,24 +2593,25 @@ slot);%0A +%0A...
0fd368ce10cbdf4d561192daab092f2926955bcb
Implement cron
echo.js
echo.js
var login = require("facebook-chat-api"); var Forecast = require('forecast'); var forecast = new Forecast({ service: 'forecast.io', key: '78526c408f187d3668e14c3e79aa6202', units: 'f', // Only the first letter is parsed cache: true, // Cache API requests? ttl: { // How long to cache requests...
JavaScript
0.999518
@@ -1,12 +1,38 @@ +require('./cronjobs.js')%0A%0A var login =
f96b76dd20b6bd3c89a3a597cc51ffbc949409e5
Add stub for the choice of author
subscene.js
subscene.js
// ==UserScript== // @name SubScene Filter // @namespace www.subscene.com // @description Add filter to subscene searches // @include https://*subscene.com/subtitles/* // @exclude https://*subscene.com/subtitles/title?q* // @exclude https://*subscene.com/subtitles/*/* // @require http://ajax.googl...
JavaScript
0.000001
@@ -877,24 +877,127 @@ %3C/select%3E%5C%0A + %3Cselect id=%22authorChoice%22%3E%5C%0A %3Coption id=%22authorDefault%22 value=%22%22%3EAny%3C/option%3E%5C%0A %3C/select%3E%5C%0A %3Cbutton @@ -1041,24 +1041,24 @@ r%3C/button%3E%5C%0A - %3Cbutton @@ -1201,24 +1201,45 @@ text();%0A%7D);%0A +var f...
401bcbd8a0d6927fe4289a6da77c70f8fdb71562
update case todo
case/todo/app/scripts/controllers/main.js
case/todo/app/scripts/controllers/main.js
'use strict'; /** * @ngdoc function * @name yoTodoApp.controller:MainCtrl * @description * # MainCtrl * Controller of the yoTodoApp */ angular.module('yoTodoApp') // .controller('MainCtrl', function ($scope,localStorageService) { .controller('MainCtrl', function ($scope) { $scope.todos = []; // v...
JavaScript
0
@@ -164,19 +164,16 @@ oApp')%0A - // .contro @@ -230,16 +230,19 @@ ice) %7B%0A + // .contro @@ -311,16 +311,38 @@ // +use localStorage%0A var tod @@ -388,27 +388,24 @@ dos');%0A - // $scope.todo @@ -461,19 +461,16 @@ %5D;%0A - // $scope. @@ -503,19 +503,16 @@ %7B%0A - // ...
f364c6d4e2614a074dcc97c0bff54413d5dec455
Fix util-linux testcase
tests/pkgs/utillinux.js
tests/pkgs/utillinux.js
var nijs = require('nijs'); exports.pkg = function(args) { return args.stdenv().mkDerivation({ name : "util-linux-2.30", src : args.fetchurl()({ url : new nijs.NixURL("https://www.kernel.org/pub/linux/utils/util-linux/v2.30/util-linux-2.30.tar.xz"), sha256 : "13d0ax8bcapga8phj2nclx86w57ddqxbr98aj...
JavaScript
0.009628
@@ -518,16 +518,91 @@ n:/sbin%22 +,%0A %22--disable-makeinstall-setuid%22,%0A %22--disable-makeinstall-chown%22 %0A %5D,%0A
9f68ceeffa822a70de9192a30e24272cf18718f3
remove log
SingularityUI/app/actions/api/base.es6
SingularityUI/app/actions/api/base.es6
import fetch from 'isomorphic-fetch'; const JSON_HEADERS = {'Content-Type': 'application/json', 'Accept': 'application/json'}; export function buildJsonApiAction(actionName, httpMethod, opts={}) { const JSON_BOILERPLATE = { method: httpMethod, headers: JSON_HEADERS } let options; if (typeof opts === ...
JavaScript
0.000001
@@ -1235,36 +1235,8 @@ s);%0A - console.log(options);%0A
c7e229896f64b8408d33fc78a28bab099a0ef097
switch GlobalStyleComponent to a PureComponent
src/constructors/createGlobalStyle.js
src/constructors/createGlobalStyle.js
// @flow import React from 'react' import { IS_BROWSER, STATIC_EXECUTION_CONTEXT } from '../constants' import _GlobalStyle from '../models/GlobalStyle' import StyleSheet from '../models/StyleSheet' import { StyleSheetConsumer } from '../models/StyleSheetManager' import StyledError from '../utils/error' import determine...
JavaScript
0
@@ -992,16 +992,20 @@ s React. +Pure Componen
71fc6a3595690f04c800bcf1cdf17a4f92288212
Enable ckeditor spell check
app/assets/javascripts/ckeditor/config.js
app/assets/javascripts/ckeditor/config.js
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: /* Filebrowser routes */ // The location of an external file browser, that should be launched when "Browse Server" button is pressed. config.filebrowserBrowseUrl = "/ckeditor/attachment_files"; // The l...
JavaScript
0
@@ -1302,16 +1302,83 @@ iles%22;%0A%0A + //Enable spellcheck%0A config.disableNativeSpellChecker = false;%0A%0A config
02c059525a88ea411474ad72129b7140587263f0
Save source and target information
adjacencyMatrix/d3.layout.adjacencyMatrix.js
adjacencyMatrix/d3.layout.adjacencyMatrix.js
(function() { d3.layout.adjacencyMatrix = function() { var directed = true, size = [1,1], nodes = [], edges = [], edgeWeight = function (d) {return 1}, nodeID = function (d) {return d.id}; function matrix() { var width = size[0], height = size[1], nodeWidth = w...
JavaScript
0
@@ -1688,32 +1688,72 @@ eID(targetNode), + source: sourceNode, target: targetNode, x: xScale(b), y @@ -2187,16 +2187,56 @@ etNode), + source: sourceNode, target: targetNode, x: xSca
fa326f82f9a5786ccb576a608cd95ad2d50d3c1a
rename the app to manga
preinstall.js
preinstall.js
const fs = require('fs'); const path = require('path'); fs.chmod(path.join(__dirname,'bin/app'),0755,(err)=>{ if (err) throw err; });
JavaScript
0.999999
@@ -57,13 +57,15 @@ %0Afs. -chmod +readdir (pat @@ -89,14 +89,210 @@ 'bin -/app') +'),(err, files) =%3E %7B%0A files.filter(file =%3E file.indexOf('manga-') === 0 %7C%7C file === 'manga')%0A .map(file =%3E path.join(__dirname,'bin',file))%0A .forEach(file =%3E %7B%0A fs.chmod(file ,075 @...
1dabed199a7087054b64896d523983f1539802af
Replace .jsx requires in .js to be able to require e.g. timeago
prepublish.js
prepublish.js
'use strict'; var fs = require('fs'); var visitors = require('react-tools/vendor/fbtransform/visitors'); var jstransform = require('jstransform'); var visitorList = visitors.getAllVisitors(); var getJsName = function(filename) { var dot = filename.lastIndexOf("."); var baseName = filename.substring(0, dot); ...
JavaScript
0
@@ -704,16 +704,70 @@ s).code; +%0A transformed = transformed.replace('.jsx', '.js'); %0A%0A fs
861a980be7e39f7de32058f4d1e1f36a3c268403
Allow any SSL (TLS) protocol in PhantomJS
lib/phantom.js
lib/phantom.js
'use strict'; var async = require('async'), fs = require('fs'), phantom = require('node-phantom-simple'), _ = require('underscore'), phantomPath = require('phantomjs').path; var instances; /** * Return the PhantomJS instance in {instances} that has the least amount of pages open. */ fu...
JavaScript
0
@@ -1456,16 +1456,37 @@ eters: %7B +%0A 'ignore- @@ -1503,16 +1503,75 @@ ': 'yes' +,%0A 'ssl-protocol':'any'%0A %7D%0A
e6ff00e6476e4d455bedf05903376b7f71ec328d
remove unnecessary function, rename options
lib/triggers/chatReplyTrigger.js
lib/triggers/chatReplyTrigger.js
var util = require("util"); var BaseTrigger = require("./baseTrigger.js").BaseTrigger; /* Trigger that responds to certain messages with specified responses. matches = array of strings - messages that trigger the response responses = array of strings - the response will be a randomly selected string from this array e...
JavaScript
0.000007
@@ -591,23 +591,22 @@ l users%0A -respond +source = strin @@ -725,16 +725,21 @@ = bool - + only respond @@ -743,106 +743,54 @@ ond -in groupchat (default) or privately? (will always respond in private if command was sent privately +privately (true)? or everywhere (default/false )%0A*/ @@ -1179,23 +1179,22 @@ ...
5c5c73ae774f62548f52f652c5314595d4b96556
Improve test coverage
server/apps/routes/auth.js
server/apps/routes/auth.js
const express = require('express'); const passport = require('passport'); const mongoose = require('mongoose'); const randtoken = require('rand-token'); const sendEmail = require('../../utils/emails/sendEmail'); const User = mongoose.model('User'); const UserGroup = mongoose.model('UserGroup'); const router = express....
JavaScript
0.000002
@@ -1222,38 +1222,15 @@ r, ( -err ) =%3E %7B%0A - if (!err) %7B%0A @@ -1276,61 +1276,8 @@ %7D);%0A - %7D else %7B%0A throw new Error(err);%0A %7D%0A
787e38191a8c75c351df06279ec69cff582a7cd4
Improve default branch field description
app/components/pipeline/schedules/Form.js
app/components/pipeline/schedules/Form.js
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay'; import FormTextField from '../../shared/FormTextField'; import FormTextarea from '../../shared/FormTextarea'; import ValidationErrors from '../../../lib/ValidationErrors'; class Form extends React.Component { static prop...
JavaScript
0.000002
@@ -2526,16 +2526,26 @@ branch ( +currently %E2%80%9C$%7Bthis.
3cc81df86513a2f0be1a72ff8043ec8d8a0b15d3
Use the error name
lib/utilities/find-build-file.js
lib/utilities/find-build-file.js
'use strict'; var findUp = require('findup-sync'); var path = require('path'); module.exports = function(file) { var buildFilePath = findUp(file); // Note // In the future this should throw if (buildFilePath === null) { return null; } var baseDir = path.dirname(buildFilePath); process.chdir(baseD...
JavaScript
0.004054
@@ -413,14 +413,18 @@ ror( -'Error +err.name+' : Co
cb5ef51202e4008c0d68e3ba0d72c30540b304d8
clean checks for available profile entry
lib/profile.js
lib/profile.js
'use strict'; /** * Parse profile. * * @param {Object|String} json * @return {Object} * @api private */ exports.parse = function(json) { if ('string' === typeof json) { json = JSON.parse(json); } var profile = {}; profile.id = json.entry.id; profile.displayName = json.entry.displayName; profile....
JavaScript
0
@@ -413,18 +413,16 @@ s = %5B%5D;%0A - %0A if (j @@ -434,12 +434,20 @@ ntry - && +) %7B%0A if ( Arra @@ -474,24 +474,26 @@ .emails)) %7B%0A + profile. @@ -520,16 +520,243 @@ emails;%0A + %7D%0A if (json.entry.appData && json.entry.appData.connections)%7B%0A profile.isExternal = !!json.ent...
66fe23afe61b00faff09d7302811d81b745a14fe
update Drawer
src/Drawer/Drawer.js
src/Drawer/Drawer.js
/** * @file Drawer component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import {findDOMNode} from 'react-dom'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import query from 'dom-helpers/query'; import PositionPop from '../_PositionPop'...
JavaScript
0.000001
@@ -1915,24 +1915,93 @@ rContent);%0A%0A + if (!visible %7C%7C !triggerEl) %7B%0A return;%0A %7D%0A%0A let
489fc24ee20b21cddb12ff27fe28d5ed24952b9d
Fix border
src/Drawer/Drawer.js
src/Drawer/Drawer.js
// @flow weak import React, { Component, PropTypes } from 'react'; import { createStyleSheet } from 'jss-theme-reactor'; import classNames from 'classnames'; import Paper from '../Paper'; import Modal from '../internal/Modal'; import Slide from '../transitions/Slide'; export const styleSheet = createStyleSheet('Drawe...
JavaScript
0
@@ -759,29 +759,34 @@ uto',%0A +'& $ paper +' : %7B%0A
b8b67ce0ae919091ee89adf975cc067d08c2fb53
Fix access to undefined error.
src/EventsEmitter.js
src/EventsEmitter.js
/** * EventsEmitter. * This class is equal to its base one but exposes the fireEvent method. */ define([ './MixableEventsEmitter' ], function (MixableEventsEmitter) { 'use strict'; var getListenerIndex = MixableEventsEmitter.getListenerIndex; function EventsEmmiter() {} EventsEmmiter.prototyp...
JavaScript
0
@@ -1514,16 +1514,26 @@ for (x = + (events ? events. @@ -1538,16 +1538,21 @@ s.length + : 0) - 1; x
0d5b15948944f0aef48d0192f14e5d4044509134
Adapt to new lodash
lib/sensors.js
lib/sensors.js
var RSVP = require('rsvp'), querystring = require('querystring'), _ = require('lodash'); module.exports = function (api) { /** * Returns all sensors * @returns {RSVP.Promise} */ function getSensors () { return api.get('/sensors/list', 'sensor'); } /** * Returns the ...
JavaScript
0.999315
@@ -1242,29 +1242,28 @@ eturn _. -pluck(_.wh +map(_.filt er -e (results
2cae43d44058618468ea442ffdfbb2c85f67da07
add code in document and routes
src/domain/document/document-route.js
src/domain/document/document-route.js
module.exports = app => { const Documents = app.domain.document.Documents; const sequelize = app.sequelize; app.route("/service/document") //.all(app.auth.authenticate()) .get((req, res) => { Documents.findAll({order: 'sigla ASC'}) .then(result => res.json(result)) .catch(error => { ...
JavaScript
0
@@ -228,37 +228,36 @@ indAll(%7Border: ' -sigla +code ASC'%7D)%0D%0A .th @@ -684,21 +684,20 @@ q.query. -sigla +code )%0D%0A @@ -703,21 +703,20 @@ where. -sigla +code = %7Blike @@ -733,21 +733,20 @@ q.query. -sigla +code + '%25'%7D%0D @@ -764,17 +764,17 @@ .query.n -o +a me)%0D%0A @@ -783,17 +...
be8fbe49679e72f14da0a3f88db4576df7605d57
Use standard style.
pstar-args.js
pstar-args.js
/** * -F pidfile Restrict matches to a process whose PID is stored in the pidfile file. * * -G gid Restrict matches to processes with a real group ID in the comma-separated list gid. * * -I Request confirmation before attempting to signal each process. * * -L The pidfile file given...
JavaScript
0
@@ -2901,22 +2901,8 @@ */%0A%0A -var options = modu
424946b4f05d95a5498942729e68fe91ae48ff68
Set model matrix from mesh (for chunking, rendered translated)
aoshader.js
aoshader.js
var fs = require("fs") var createShader = require("gl-shader") var mat4 = require('gl-matrix').mat4 module.exports = function(game, opts) { return new ShaderPlugin(game, opts); }; module.exports.pluginInfo = { clientOnly: true, loadAfter: ['voxel-stitch', 'voxel-mesher', 'game-shell-fps-camera'], }; function S...
JavaScript
0.000001
@@ -1956,132 +1956,8 @@ ();%0A - this.modelMatrix = mat4.identity(new Float32Array(16)) // TODO: merge with view into modelView? or leave for flexibility?%0A %7D;%0A%0A @@ -3226,51 +3226,8 @@ rix%0A - shader.uniforms.model = this.modelMatrix%0A sh @@ -3475,16 +3475,61 @@ hes%5Bi%5D;%0A + shader.uniforms.mod...
1350dd466e341bfdae8985443ebba379fe6388ce
Remove item from api
api/shop.js
api/shop.js
/** * Mocking client-server processing */ const _products = [ {"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2}, {"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10}, {"id": 3, "title": "Charli XCX - Sucker CD", "price": 19.99, "inventory": 5}, {"id": 4, "title": "Kitty st...
JavaScript
0
@@ -285,86 +285,8 @@ : 5%7D -,%0A %7B%22id%22: 4, %22title%22: %22Kitty stuffed animal%22, %22price%22: 59.99, %22inventory%22: 1%7D %0A%5D%0A%0A
3e1f0ab719845969ae82f73713374cd15342d51d
Fix foreign import declaration for byteLength
src/Node/Encoding.js
src/Node/Encoding.js
/* global exports */ /* global Buffer */ "use strict"; // module Node.Encoding exports.byteLength = function (str) { return function (enc) { return Buffer.byteLength(str, enc); }; };
JavaScript
0.000017
@@ -92,16 +92,20 @@ teLength +Impl = funct @@ -115,17 +115,16 @@ (str) %7B - %0A retur @@ -141,17 +141,16 @@ (enc) %7B - %0A ret @@ -181,17 +181,16 @@ r, enc); - %0A %7D;%0A%7D;
5636cbdbc711bfad96883634d992c4075bed7965
Add first version of bcvParser service
client/app/bcvParser/bcvParser.service.js
client/app/bcvParser/bcvParser.service.js
'use strict'; angular.module('biyblApp') .service('bcvParser', function () { // AngularJS will instantiate a singleton by calling "new" on this function });
JavaScript
0
@@ -69,16 +69,26 @@ nction ( +dbpGrabber ) %7B%0A @@ -162,15 +162,2064 @@ function +%0A%0A var bcv = new bcv_parser;%0A%0A bcv.set_options(%7B%0A %22consecutive_combination_strategy%22: %22combine%22,%0A %22ref_compaction_strategy%22: %22b%22%0A %7D);%0A%0A return %7B%0A ref_str: %...
461ee824667bb3dc7d221dcd37c4db7285721306
Fix breaking change in react-overlays@0.8.3 (#258)
src/Overlay.react.js
src/Overlay.react.js
import cx from 'classnames'; import {isEqual} from 'lodash'; import React, {Children, cloneElement} from 'react'; import PropTypes from 'prop-types'; import {findDOMNode} from 'react-dom'; import {Portal} from 'react-overlays'; import {componentOrElement} from 'prop-types-extra'; const DROPUP_SPACING = -4; // When ap...
JavaScript
0.000003
@@ -2136,16 +2136,56 @@ TSIDE),%0A + ref: (menu) =%3E this._menu = menu,%0A st @@ -2851,39 +2851,30 @@ e = -this._portal.getOverlayDOMNode( +findDOMNode(this._menu );%0A
10c70595fb339dffa9ad8a703949942412d0feed
Make all URL request paths relative
client/app/scripts/utils/web-api-utils.js
client/app/scripts/utils/web-api-utils.js
const debug = require('debug')('scope:web-api-utils'); const reqwest = require('reqwest'); const AppActions = require('../actions/app-actions'); const WS_URL = window.WS_URL || 'ws://' + location.host; const apiTimerInterval = 10000; const reconnectTimerInterval = 5000; const topologyTimerInterval = apiTimerInterva...
JavaScript
0.000011
@@ -195,16 +195,55 @@ ion.host + + location.pathname.replace(/%5C/$/, '') ;%0A%0A%0Acons @@ -1328,24 +1328,50 @@ logyUrl;%0A%7D%0A%0A +/* keep URLs relative */%0A%0A function get @@ -1431,17 +1431,16 @@ url = ' -/ api/topo @@ -1970,16 +1970,26 @@ oin('/') +.substr(1) ;%0A re @@ -2330,17 +2330,16 @@ url = ...
171a2df713aef59cddf5700ecbfb3df8f60992ad
Fix fuzzy search of users using object data structure
client/src/components/Admin/Users/List.js
client/src/components/Admin/Users/List.js
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Fuse from 'fuse.js'; import { requestUserList, adminToggleCanVote } from '../../../actionCreators/users'; import User from './User'; import css from './List.css'; class UserList extends React.Component { constructor(props) { ...
JavaScript
0.000063
@@ -1772,74 +1772,285 @@ // -Use Fuse for +Show all users if there is no filter in the box.%0A let presentedUsers = state.users;%0A%0A // Filter users by using Fuse fuzzy -- + search -. %0A -const fuse = new Fuse(state.users +if (state.userFilter && state.userFilter.length %3E 0) %7B%0A presentedUsers = ...