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
c22758cc0ae7f1395332cc736c11489fbc23faed
Fix display_name in test.js
test/test.js
test/test.js
const request = require('supertest'); const app = require('../app'); describe('transforms the name of the object in a coordinate', function () { it('Input place name-string,base coordinate, return coordinate and full name point', function (done) { request(app) .post('/searchCoordinate') ...
JavaScript
0.000078
@@ -649,27 +649,20 @@ e: ' -OldCity, 17 +27/1 , %D1%83%D0%BB%D0%B8%D1%86%D0%B0 %D0%94%D1%83%D0%B1%D0%BA @@ -661,13 +661,14 @@ %D0%B8%D1%86%D0%B0 -%D0%94%D1%83%D0%B1%D0%BA%D0%BE +%D0%9B%D0%B8%D0%BC%D0%BE%D0%B6%D0%B0 , %D0%94%D0%B5 @@ -674,16 +674,18 @@ %D0%B5%D0%B2%D1%8F%D1%82%D0%BE%D0%B2%D0%BA%D0%B0 +%E2%80%934...
6fd2f02642aff6839f05eabe4d1d52ef67afbcd6
update code style
routes/users_routes.js
routes/users_routes.js
var express = require('express'); var bodyParser = require('body-parser'); var User = require(__dirname + '/../models/user'); var usersRouter = module.exports = exports = express.Router(); usersRouter.get('/users', function(req, res) { User.find({}, function(err, data) { if (err) return handleError(err, res); r...
JavaScript
0
@@ -999,12 +999,8 @@ );%0A%7D);%0A%0A -%0A%0A%0A%0A
695f1aa6752d192eb3ecba875285b32214c7eacf
fix missing comment bracket
vendor/assets/javascripts/pubsub.js
vendor/assets/javascripts/pubsub.js
opyright (c) 2010,2011,2012,2013,2014 Morgan Roderick http://roderick.dk License: MIT - http://mrgnrdrck.mit-license.org https://github.com/mroderick/PubSubJS */ /*jslint white:true, plusplus:true, stupid:true*/ /*global setTimeout, module, exports, define, require, window */ (function(root, factory){ 'u...
JavaScript
0.000066
@@ -1,8 +1,12 @@ +/*%0AC opyright
6bda993fe34bcbcde68b0c9a1e3517b2599c0d13
Update mataro.conf.js
app/javascript/gobierto_investments/webapp/mixins/mataro.conf.js
app/javascript/gobierto_investments/webapp/mixins/mataro.conf.js
import axios from "axios"; export default { title: { id: "title_translations" }, description: { id: "descripcio-projecte" }, phases: { id: "estat" }, location: { id: "wkt", center: [41.536908, 2.4418503], minZoom: 13, maxZoom: 16 }, availableFilters: [ { id: "dat...
JavaScript
0
@@ -2904,16 +2904,21 @@ /v1/data +/data %60;%0A
d9e8291734af682257ee2039798ab3efab48fca2
Fix modal lock requirements
client/src/js/references/components/Import.js
client/src/js/references/components/Import.js
import React from "react"; import { Modal, ButtonToolbar } from "react-bootstrap"; import { connect } from "react-redux"; import { push } from "react-router-redux"; import { upperFirst, find, noop } from "lodash-es"; import ReferenceForm from "./Form"; import { Button, UploadBar, ProgressBar } from "../../base"; import...
JavaScript
0.000001
@@ -832,16 +832,14 @@ ess -=== 0 %7C%7C +%3E 0 && pro @@ -836,35 +836,33 @@ %3E 0 && progress -=== +%3C 100) %7B%0A @@ -868,20 +868,19 @@ return -fals +tru e;%0A %7D @@ -880,16 +880,17 @@ ;%0A %7D%0A +%0A retu @@ -892,19 +892,20 @@ return -tru +fals e;%0A%7D;%0A%0Ac
8971543a0bdc01b188e511fea751b26ff93488e4
Make sure function doesn't fail if className is undefined
src/common/res/features/act-on-change/main.js
src/common/res/features/act-on-change/main.js
(function poll() { if (ynabToolKit.pageReady === true && typeof ynabToolKit.shared.feedChanges !== 'undefined') { // When this is true, the feature scripts will know they can use the mutationObserver ynabToolKit.actOnChangeInit = {}; // Set 'ynabToolKit.debugNodes = true' to print changes the mutationOb...
JavaScript
0.000533
@@ -1094,16 +1094,80 @@ +if ( typeof $node%5B0%5D.className !== 'undefined' ) %7B%0A %09 nodeClas @@ -1212,16 +1212,30 @@ (' '));%0A + %7D%0A
1bcee65c870580462a06da18438b489f349b99cf
replace jsdom with cheerio in wrap.js (with support of raw index.html files) (cherry picked from commit 081a30b)
core/middleware/wrap.js
core/middleware/wrap.js
'use strict'; var fs = require('fs-extra'); var ejs = require('ejs'); var jsdom = require('jsdom'); var path = require('path'); var viewResolver = require(path.join(global.pathToApp + '/core/lib/viewResolver.js')); var getHeaderAndFooter = require(global.pathToApp + '/core/headerFooter.js').getHeaderAndFooter; var spe...
JavaScript
0
@@ -68,38 +68,8 @@ ');%0A -var jsdom = require('jsdom');%0A var @@ -350,16 +350,50 @@ tils')); +%0Avar cheerio = require('cheerio'); %0A%0A/**%0A * @@ -1732,478 +1732,365 @@ -// TODO: remove JSDom%0A jsdom.env(%0A '%3Chtml id=%22data%22%3E'+data+'%3C/html%3E',%0A func...
dfb602a001f9eeb9c4eb14dba0cfaeb6012789da
Add promise test
test/test.js
test/test.js
var chai = require('chai') var chaiAsPromised = require('chai-as-promised') chai.use(chaiAsPromised) var expect = chai.expect var rewire = require('rewire') var juiceShopCtfCli = rewire('../index') describe('#isUrl()', function () { var isUrl = juiceShopCtfCli.__get__('isUrl') it('should recognize a valid HTTP UR...
JavaScript
0.000003
@@ -1511,32 +1511,36 @@ URL', function ( +done ) %7B%0A expect(f @@ -1582,14 +1582,24 @@ .to. -become +eventually.equal ('ZJ @@ -1617,16 +1617,33 @@ P!QC2T') +.and.notify(done) %0A %7D)%0A%7D)
fdeda08e34f914936811eb6441894ec9a145dd23
fix autosave config
web/js/tinymce.js
web/js/tinymce.js
var openZIMtinyMce = { config : { theme : "advanced", theme_advanced_buttons1 : "bold,italic,underline,|,numlist,bullist,|,undo,redo,|,cut,copy,pastetext,|,newdocument,tinyautosave,|,fullscreen", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", plugins: "autosave, tin...
JavaScript
0
@@ -343,16 +343,88 @@ creen%22,%0A +%09%09tinyautosave_retention_minutes : 1440,%0A%09%09tinyautosave_minlength : 10,%0A %09%09paste_
5c50f6865f236e12419bc335e59b0e6553fa4e5a
fix #776
client/views/regions/splash/regions.splash.js
client/views/regions/splash/regions.splash.js
Template.regionsSplash.onRendered(function () { var instance = this; instance.$('#regionsSplash').modal('show'); instance.$('#regionsSplash').on('shown.bs.modal', function() { instance.$('.js-region-search').select(); }); }); Template.regionsSplash.events({ 'click .js-region-link, submit .js-region-search-form...
JavaScript
0
@@ -495,21 +495,24 @@ et(' -regionGuessed +showRegionSplash ', f
62c90020ea943bebfabd366485fe9f3fd6b80087
fix gasLimit
test/common/genesishashes.js
test/common/genesishashes.js
var genesisData = require('../../../tests/genesishashestest.json'), assert = require('assert'), Blockchain = require('../../lib/blockchain.js'), levelup = require('levelup'), // async = require('async'), utils = require('../../lib/utils'), rlp = require('rlp'), SHA3 = require('sha3'); var blockDB = level...
JavaScript
0.000002
@@ -1517,30 +1517,33 @@ t = -'0f4240', // todo: fix + utils.intToHex(1000000), %0A
8333add54f798581c176df3f2358f63998a47323
add toIDs CALLBACK!
core/utils/idmanager.js
core/utils/idmanager.js
'use strict' var config = require('config') var redis = require("redis") //will call callback after call done() for n times exports.IdManager = function () { var me = this; function zip(number) { return toRadix(number, 61); } function unzip(string) { return fromRadix(string, 61); } function fromRadix(v, ...
JavaScript
0
@@ -1993,24 +1993,317 @@ d);%0A%09%09%7D%0A%09%7D%0A%0A +%09var me = this;%0A%09this.toIDs = function (names, callback) %7B%0A%09%09var outs = %7B%7D;%0A%09%09var n = names.length()%0A%09%09for (var i in names) %7B%0A%09%09%09(function (j) %7B%0A%09%09%09%09me.toID(names%5Bj%5D).then(function (out) %7B%0A%09%09%09%09%...
4098e68983b15b4a3c702ca43285166485a37674
Use `render.bundleRenderer`
examples/cached-components/nuxt.config.js
examples/cached-components/nuxt.config.js
module.exports = { build: { ssr: { cache: require('lru-cache')({ max: 1000, maxAge: 1000 * 60 * 15 }) } } }
JavaScript
0
@@ -18,21 +18,22 @@ %7B%0A -build +render : %7B%0A ssr: @@ -32,10 +32,21 @@ -ss +bundleRendere r: %7B
de49896d524a600e57304642db3d2b3278959ed4
reset page to 1 when doing a new search, re #1431
arches/app/media/js/views/search.js
arches/app/media/js/views/search.js
require([ 'jquery', 'underscore', 'knockout', 'arches', 'viewmodels/alert', 'views/search/base-filter', 'views/search/time-filter', 'views/search/term-filter', 'views/search/map-filter', 'views/search/resource-type-filter', 'views/search/search-results', 'views/base-manag...
JavaScript
0
@@ -555,37 +555,8 @@ ) %7B%0A - var self = this;%0A @@ -1686,36 +1686,36 @@ s;%0A%0A -self +this .isNewQuery = tr @@ -1717,16 +1717,185 @@ = true; +%0A this.pageChanged = false;%0A%0A this.viewModel.searchResults.page.subscribe(function()%7B%0A this...
4155820786d862875f3189685d7422afe9dfa9c2
Rename subject blocks
test/test.js
test/test.js
import {on, off, fire} from '../delegated-events'; describe('delegated event listeners', function() { describe('firing custom events', function() { it('fires custom events with detail', function() { const observer = function(event) { assert(event.bubbles); assert(event.cancelable); ...
JavaScript
0.000001
@@ -112,15 +112,8 @@ be(' -firing cust @@ -112,33 +112,41 @@ be('custom event -s + dispatch ', function() %7B%0A @@ -1881,20 +1881,8 @@ be(' -registering even @@ -1883,33 +1883,45 @@ ('event observer -s + registration ', function() %7B%0A
9b0ed6f821219ee07ca8684b7a99b6dd3b4d03c3
Remove all pages from the DOM at once, rather than using a loop, in `PDFViewer._regroupSpreads`
web/pdf_viewer.js
web/pdf_viewer.js
/* Copyright 2014 Mozilla Foundation * * 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...
JavaScript
0.000001
@@ -2881,23 +2881,20 @@ const -contain +view er = thi @@ -2899,33 +2899,14 @@ his. -_setDocumentViewerElement +viewer , pa @@ -2932,81 +2932,87 @@ -while (container.firstChild) %7B%0A container.firstChild.remove();%0A %7D +// Temporarily remove all the pages from the DOM.%0A viewer.textContent =...
d209cfcfceba1c54ba0223475abc6ea8864a6bf8
Add active to Bot model, to know if bot is on pause or not
models/bot.js
models/bot.js
var mongoose = require('mongoose'); var timestamps = require('mongoose-timestamp'); var Schema = mongoose.Schema; var botSchema = new Schema({ name: {type: String, unique: true, required: true}, zone: { type: { type: String, default: 'Polygon'}, coordinates: [[ {type: Number, required: true} ]] }, nb_...
JavaScript
0
@@ -308,16 +308,58 @@ %5D%5D%0A %7D,%0A + active: %7Btype: Boolean, default: true%7D,%0A nb_dri
51c86de3d6fee125a99a0f6a2abacbbdf5887d79
Remove unnecessary linter override
src/components/DemographicDetailView/index.js
src/components/DemographicDetailView/index.js
import React, { PropTypes } from 'react'; import RechartsPie from '@hackoregon/component-library/lib/RechartsPie/RechartsPie'; const colors = ['#3e75ac', '#4c8ccd', '#68a3df', '#87baed', '#abd1f7', '#d3e8fd']; const contentBlockStyle = { display: 'inline-block', verticalAlign: 'top', width: '33.333%', minWidt...
JavaScript
0.000001
@@ -1445,40 +1445,8 @@ ons%7D - // eslint-disable-line max-len %0A
f08687b86f8909dbcbe46826e45614163b80aad9
Fix feedback page
client/feedback-table-page/feedback.js
client/feedback-table-page/feedback.js
var config = require('config') var fmt = require('fmt') var otp = require('otp') var request = require('request') var view = require('view') var Feedback = module.exports = view(require('./feedback.html')) Feedback.prototype.link = function () { return fmt('%s/planner?%s', config.base_url(), decodeURIComponent(this...
JavaScript
0.000001
@@ -564,17 +564,8 @@ uter -.toJSON() : %7B
be0ace2e27e84fbcef8ce36ea9c19cb10a6ff6ba
test out console.log the access token on new auth
brianwilliams.js
brianwilliams.js
// Config =============================================== var Q = require('q'); var moment = require('moment'); var Botkit = require('botkit'); var responses = require('./responses.js'); var whitelistedUsers = ['tyler shambora', 'daniel lerman', 'ryan litt...
JavaScript
0.000001
@@ -1288,37 +1288,210 @@ );%0A%0A -bot.startRTM(function(err) %7B%0A +controller.on('create_bot',function(bot, config) %7B%0A bot.startRTM(function(err, bot, payload) %7B%0A console.log('err: ' + err);%0A console.log('bot: ' + bot);%0A console.log('payload: ' + payload);%0A if @@ -1495,24 +1495,26 @@ ...
1a480d0a8e66b35158751a010f10d45320440d7a
Remove '-table__body-item-wrap' and add '-table__body-row--no-data' classes.
assets/js/components/ReportTable.js
assets/js/components/ReportTable.js
/** * Report Table 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-2.0 *...
JavaScript
0
@@ -2946,32 +2946,71 @@ -table__body-row + googlesitekit-table__body-row--no-data %22%3E%0A%09%09%09%09%09%09%09%3Ctd%0A%09%09 @@ -3060,44 +3060,8 @@ item - googlesitekit-table__body-item-wrap %22%0A%09%09 @@ -3317,24 +3317,63 @@ le__body-row + googlesitekit-table__body-row--no-data %22%3E%0A%09%09%09%09%09%09%09...
da9e368f3c99c75a747bfb7703f030494d8ebbe9
Update Conditionizr-spec.js
test/Conditionizr-spec.js
test/Conditionizr-spec.js
/** * Conditionizr */ describe('Conditionizr', function () { /** * We should get an Object returned */ it('should return an Object', function () { expect(typeof conditionizr).toBe('object'); }); it('should have all methods', function() { var methods = 'config on add polyfill load'.split(); ...
JavaScript
0
@@ -734,14 +734,15 @@ toBe -Truthy +Defined ();%0A
e6317e77ed3a0286238bccb7b4d438f6ee38498c
remove debug line
examples/express/app.js
examples/express/app.js
'use strict'; var express = require('express'), env = process.env.NODE_ENV, ConnectMincer = require('../../') ; var app = express(); // set up connect-mincer middleware var mincer = new ConnectMincer({ root: __dirname, production: env === 'production' || env === 'staging', mountPoint: '/assets', mani...
JavaScript
0.000119
@@ -1274,58 +1274,8 @@ );%0A%0A -console.log(mincer.getHelper('css')('all.css'));%0A%0A app.
54954508a6094db5dd84bd72d13a42b13090ee86
fix #10248
src/model/mixin/dataFormat.js
src/model/mixin/dataFormat.js
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may no...
JavaScript
0.000001
@@ -3597,24 +3597,333 @@ unction') %7B%0A + if ((params.value instanceof Array) && dimIndex == null) %7B%0A let labelDims = data.mapDimension('defaultedLabel', true)%0A if (labelDims instanceof Array) %7B%0A params.value = labelDims.map(i =%3E retrieveRawValue(data, ...
aa865fd7c6f25c2137a810aae5004b73ba48f2c1
修复了 textare 不进行 resize 的 bug
src/TextField/TextFieldEnhancedTextarea.js
src/TextField/TextFieldEnhancedTextarea.js
/** * @file enhancedTextarea component * @author liuchaofan(asd123freedom@gmail.com) */ import san from 'san'; export default san.defineComponent({ template: ` <div class="sm-text-field-multiline"> <textarea class="sm-text-field-textarea-hide sm-text-field-input" value="{= value =}"></texta...
JavaScript
0
@@ -957,24 +957,50 @@ extarea() %7B%0A + console.log(456);%0A let @@ -2242,32 +2242,62 @@ rowsMax') %7C%7C 0;%0A + console.log(rowsMax);%0A let minH @@ -2901,98 +2901,8 @@ %3E %7B%0A - if (value === this.data.get('value')) %7B%0A return;%0A %7D%0A...
3d086543ceafba49fab5f329d7d93484cf2fa810
Fix #202.
endpoints/sports/index.js
endpoints/sports/index.js
/***************************** * Name: Sports API * Author: Jón Orri Kristjánsson * Created: March 2014 */ var request = require('request'); var parseString = require('xml2js').parseString; var h = require('apis-helpers'); var app = require('../../server'); var cheerio = require('cheerio'); /* Fetches the ...
JavaScript
0
@@ -1738,38 +1738,24 @@ -tafla tr'). -not(':first'). each(functio @@ -1755,32 +1755,32 @@ function(key) %7B%0A + if (ke @@ -1826,33 +1826,33 @@ %09 $( -this.cell +'td', thi s).each(func @@ -2165,34 +2165,8 @@ if ( -!$.isEmptyObject(game) && game @@ -2270,16 +2270,18 @@ wayTeam) + %7B %0A ...
b35026bb5015926a2186a0cc0939f77ee4ea0751
Ajuste validaciones
assets/js/validate/admin/usuario.js
assets/js/validate/admin/usuario.js
$( document ).ready( function () { $("#firstName").bloquearNumeros().maxlength(25); $("#lastName").bloquearNumeros().maxlength(25); $("#documento").bloquearTexto().maxlength(12); $( "#form" ).validate( { rules: { firstName: { required: true, minlength: 3, maxlength:25 }, lastName: { required: tru...
JavaScript
0
@@ -500,24 +500,53 @@ quired: true +, minlength: 4, maxlength:15 %7D,%0A%09%09%09movil @@ -567,24 +567,52 @@ quired: true +, minlength: 4, maxlength:15 %7D,%0A%09%09%09email
c78d2ad57573f30694e24e2b11db5b8a5d668b36
Make tickets expand on edit, if not already expanded
src/itsallagile/ScrumboardBundle/Resources/public/js/views/ticket.js
src/itsallagile/ScrumboardBundle/Resources/public/js/views/ticket.js
/** * View for tickets */ itsallagile.View.Ticket = Backbone.View.extend({ tagName: 'div', className: 'ticket', template: '<p class="ticket-content">' + '<%= content %></p><textarea class="ticket-input"><%= content %></textarea>' + '<div class="ticket-actions">' + '<i class="icon-z...
JavaScript
0
@@ -1657,32 +1657,152 @@ t: function() %7B%0A + if (!$('p', this.$el).is(':hidden') && !this.$el.hasClass('zoomed')) %7B%0A this.zoomToggle();%0A %7D%0A $('p',th @@ -2242,24 +2242,108 @@ s%7D); %0A + if (this.$el.hasClass('zoomed')) %7B%0A this.zoomToggle();%0...
2ab35e0894c5c739b6f51a4ed9212625571ba1f9
Handle dates properly
bread.js
bread.js
var bake = require('bake'); var Reg = require('reg'); var pandoc = require('pdc'); var isodate = require('isodate'); var mongo = require('mongodb'); var append = require('append'); var clone = require('clone'); var Set = require('Set'); var write = require('./write.js'); // empty callback var x = function () {}; // ...
JavaScript
0.000004
@@ -1226,72 +1226,29 @@ -// Parse ISO 8601 dates%0A hooks.created = function(f, prop +function fixDate(date , cb @@ -1311,16 +1311,19 @@ te, try +to parse it @@ -1344,28 +1344,20 @@ (typeof -prop.cre +d ate -d != 'dat @@ -1358,16 +1358,46 @@ = 'date' + && typeof date != 'undefined' ) %7B%0A ...
27b008a99b2b4a77ef218c57078ab972b74bf9b8
Fix error
src/uniqueName.js
src/uniqueName.js
import React, {PureComponent} from 'react' import seededRandom from 'seed-random' const TOKENS = /[xy]/g const uuid = (seed) => { const random = seed === undefined ? Math.random : seededRandom(seed) return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(TOKENS, (c) => { const r = random() * 16 | 0 const v...
JavaScript
0.000004
@@ -429,23 +429,16 @@ =%3E %7B%0A -return class Un @@ -745,11 +745,32 @@ get.name +%0A%0A return UniqueName %0A%7D%0A
67421992719e7488f8e3a2502167f2bb9e332553
Update generated webpack-config.js
webpack-config.js
webpack-config.js
var path = require('path') var webpack = require('webpack') var HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = function(options) { var plugins = [] var loaders = [] var production = process.env['NODE_ENV'] === 'production' var src = options.sourceDirectory || 'src' var main = options.m...
JavaScript
0.000002
@@ -1310,45 +1310,8 @@ y: %7B - // Minifying it while it is parsed() %0A @@ -1638,111 +1638,8 @@ true - // inject all files that are generated by webpack, e.g. bundle.js, main.css with the correct HTML tags %0A %7D
577763fb55358f8a7e235081a6e28f8cd77b14da
Add Clock getters, noLongerUpdate function, cleanup
src/Clock.js
src/Clock.js
'use strict'; var GlobalDispatch = require('./GlobalDispatch'); var FRAME = 'FRAME'; function Clock () { this.dispatch = new GlobalDispatch(); this.roots = []; var _this = this; this.dispatch.targetedOn('engine', FRAME, function(time) { _this.step(time); }); } Clock.prototype.step = func...
JavaScript
0
@@ -63,30 +63,8 @@ );%0A%0A -var FRAME = 'FRAME';%0A%0A func @@ -84,25 +84,32 @@ %7B%0A this. -d +_globalD ispatch = ne @@ -137,20 +137,23 @@ this. -root +_update s = %5B%5D;%0A @@ -175,33 +175,40 @@ this;%0A this. -d +_globalD ispatch.targeted @@ -224,13 +224,15 @@ e', +' FRAME +' , fu @@ -237,1...
39f4f8a3fb1a003bcedfd45ef7c715f0514bc031
Remove subtitle from the welcome page
client/src/components/welcome/index.js
client/src/components/welcome/index.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'connected-react-router' import withStyles from '@material-ui/core/styles/withStyles'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui...
JavaScript
0.000001
@@ -3345,161 +3345,8 @@ hy%3E%0A - %3CTypography variant=%22title%22 paragraph color=%22inherit%22%3E%0A 3D atomic views of real materials%0A %3C/Typography%3E%0A
20c658728acab2241b2e8415ff2ad4d565af2fb0
Fix test
test/test.js
test/test.js
'use strict' const fs = require('fs') exports.debian = function (test) { test.expect(1) const actual = fs.readFileSync('dist/demo_0.1-1/DEBIAN/control').toString() const expected = fs.readFileSync('test/control').toString() test.equal(actual, expected, 'CONTROL file created should equal sample.') test.done(...
JavaScript
0.000004
@@ -134,16 +134,21 @@ mo_0.1-1 +_i386 /DEBIAN/
55c02c29c103c898113889e773357a9bde826ddc
Update input example
examples/input/input.js
examples/input/input.js
var CONST = require('../../index').CONST; var Rock = require('../../index').Rock; var step = function(){ rock.get(CONST.J15_P38, function(err, val){ if(err){ console.error(err.stack||err); process.exit(1); } console.log(val); rock.set(CONST.J15_P37, val); return process.nextTick(step)...
JavaScript
0.000002
@@ -76,16 +76,33 @@ .Rock;%0A%0A +var pinVal = 0;%0A%0A var step @@ -116,16 +116,16 @@ tion()%7B%0A - rock.g @@ -249,59 +249,184 @@ -console.log +val = parseInt (val) +%7C%7C0 ;%0A -rock.set(CONST.J15_P37, val); +if(val!==pinVal)%7B%0A return rock.set(CONST.J15_P37, val, function()%7B%0A p...
0d17d8e06a0b7d801a43264c213974df0c5b46b4
Fix for missing options in new optionset
VotingApplication/VotingApplication.Web.Api/Scripts/Admin.js
VotingApplication/VotingApplication.Web.Api/Scripts/Admin.js
require(['jquery', 'knockout', 'Common'], function ($, ko, Common) { function AdminViewModel() { var self = this; var sessionId = 0; self.votes = ko.observableArray(); self.sessions = ko.observableArray(); self.options = ko.observableArray(); self.selectedDeleteOpti...
JavaScript
0.000007
@@ -3655,16 +3655,18 @@ .options +() %0A
1a75ecf3da212b6fabe0af4f6003325c737b9ae7
send button now work;
apps/actor-web/src/app/components/dialog/ComposeSection.react.js
apps/actor-web/src/app/components/dialog/ComposeSection.react.js
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import MessageActionCreators from '../../actions/MessageActionCreators'; import TypingActionCreators from '../../actions/TypingActionCreators'; const ENTER_KEY_CODE = 13; var ComposeSection = React.createClass({ pro...
JavaScript
0
@@ -735,24 +735,88 @@ efault();%0A + this._sendTextMessage();%0A %7D%0A %7D,%0A%0A _sendTextMessage() %7B%0A var text @@ -835,26 +835,24 @@ e.text;%0A - if (text) %7B%0A @@ -847,26 +847,24 @@ if (text) %7B%0A - Messag @@ -923,22 +923,18 @@ t);%0A - - %7D%0A - this @@ -95...
b6e317647a847041c216bfaf3fc88b82c3b64442
Fix stickers briefly being 2x the size
src/components/views/messages/MStickerBody.js
src/components/views/messages/MStickerBody.js
/* Copyright 2018 New Vector Ltd 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
@@ -3478,32 +3478,606 @@ px';%0A %7D%0A%0A + // The pixel size of sticker images is generally larger than their intended display%0A // size so they render at native reolution on HiDPI displays. We therefore need to%0A // explicity set the size so they render at the intended size.%0A ...
b0d0f4920e5e4ef303f9f454c522b747c37963fc
Remove updateSites action dispatch in import view entry point module
client/src/views/git-importer/entry.js
client/src/views/git-importer/entry.js
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store'; import GitImporterContainer from './containers/git-importer'; import { updateSites } from 'src/views/git-importer/actions'; let store = configureStore(); store.dispatch(updateSi...
JavaScript
0
@@ -200,130 +200,37 @@ r';%0A -import %7B updateSites %7D from 'src/views/git-importer/actions';%0A%0A%0Alet store = configureStore();%0Astore.dispatch(updateSites() +%0A%0Alet store = configureStore( );%0A%0A
9cba7be27d1b9206b1793b2c98e5b62b384c9695
Update helloworld.js
intro/helloworld.js
intro/helloworld.js
/* @deploy @title Hello World! */ module.exports = function(req, res, next) { res.send('Hello World!'); };
JavaScript
0.000004
@@ -28,16 +28,18 @@ ld!%0A*/%0A%0A +/* module.e @@ -104,8 +104,12 @@ d!');%0A%7D; +%0A*/%0A
0a1443c18faa7998be9deae2f3cfbaad2764f729
Enable caching in webpack & babel
webpack.config.js
webpack.config.js
const webpack = require("webpack"); const path = require("path"); const fs = require("fs"); const CleanWebpackPlugin = require("clean-webpack-plugin"); const config = { context: path.resolve(__dirname, "assets/static"), // eslint-disable-line entry: { unsee: "./unsee.js", help: "./help.js" ...
JavaScript
0
@@ -163,16 +163,33 @@ fig = %7B%0A + cache: true,%0A cont @@ -3631,24 +3631,70 @@ options: %7B%0A + cacheDirectory: true,%0A
312a281bb0e6d21078be87690d2f2c85eeba1beb
Remove useless render() call
backbone/views/feed.js
backbone/views/feed.js
var FeedView = Backbone.Marionette.ItemView.extend({ tagName: 'li', attributes: { 'draggable': true }, className: 'feed', template: '#tmpl-feed', events: { 'click .markFeedReadAction' : 'markFeedRead', 'click .markFeedUnreadAction' : 'markFeedUnread', 'click .syncFeedAction' : 'syncFeed', 'click .editFe...
JavaScript
0.000001
@@ -981,25 +981,8 @@ l);%0A -%09%09this.render();%0A %09%7D,%0A
31f96fea6d1a6a18e42dfa42ab7720697dfa0881
Fix a bug in the Link.handleClick helper method
src/utils/Link.js
src/utils/Link.js
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import invariant from 'react/lib/invariant'; import AppActions from '../actions/AppActions'; function handleClick(event) { // If not left mouse click if (event.button !== 0) { return; } // If modified event if (event.metaKey || e...
JavaScript
0.000008
@@ -397,17 +397,24 @@ = event. -t +currentT arget;%0A%0A
55788ae10402a3c857148f5a9bc31d5199bc4ac1
Fix play test
test/actions/test-play.js
test/actions/test-play.js
var play = require(libDir + '/actions/play'); describe('Play Action', function(){ beforeEach(function() { var player, ui; this.services = {}; this.player = fakeRadiodan('player'); this.ui = fakeRadiodan('ui'); this.eventBus = { emit: sinon.spy() }; this.subject = play.create(this.player...
JavaScript
0.000142
@@ -353,16 +353,19 @@ ventBus) +%5B0%5D ;%0A%0A t
dbc8c62593ef0633c3ca06d70addeda4772e69eb
clean webpack config
webpack.config.js
webpack.config.js
'use strict'; const path = require('path'); const autoprefixer = require('autoprefixer'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const CleanPlugin = require('clean-webpack-plugin'); const NpmInstall...
JavaScript
0
@@ -300,135 +300,8 @@ n'); -%0Aconst NpmInstallPlugin = require('npm-install-webpack-plugin');%0A%0A//const BowerWebpackPlugin = require(%22bower-webpack-plugin%22); %0A%0Ava @@ -821,42 +821,8 @@ = %5B%0A - // new BowerWebpackPlugin(),%0A ne @@ -1397,16 +1397,16 @@ react',%0A + Reac @@ -1430,183 +1430,8...
a01387f7a63757fc64eac730165a7d288c801ebd
Use an AccessibleButton for unpinning from the pane.
src/components/views/rooms/PinnedEventTile.js
src/components/views/rooms/PinnedEventTile.js
/* Copyright 2017 Travis Ralston 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
@@ -2607,162 +2607,188 @@ n = -%3Cimg src=%22img/cancel-red.svg%22 className=%22mx_PinnedEventTile_unpinButton%22 width=%228%22 height=%228%22%0A onClick=%7Bthis.onUnpinClicked%7D +(%0A %3CAccessibleButton onClick=%7Bthis.onUnpinClicked%7D className=%22mx_PinnedEventTile_u...
79129b2e723b74ac289497811fe0a1d62c417d97
remove whitespace
bluebottle/payments/static/js/bluebottle/payments/controllers.js
bluebottle/payments/static/js/bluebottle/payments/controllers.js
App.OrderPaymentController = Em.ObjectController.extend({ needs: ['application', 'projectDonationList', 'fundRaiserDonationList'], errorsFixedBinding: 'paymentMethodController.errorsFixed', validationErrorsBinding: 'paymentMethodController.validationErrors', isBusyBinding: 'paymentMethodController.isB...
JavaScript
0.999999
@@ -47,25 +47,24 @@ er.extend(%7B%0A -%0A needs: %5B @@ -998,17 +998,16 @@ ).then(%0A -%0A
02bd0bb5868bebc9e5f43d65021a5ef5fb857a06
make sure to cancel pending requests when unloading
worker.js
worker.js
/** * !!! This file can be found as worker.js in the quick_server folder !!! * * Provides worker oriented networking interface. * * Created by krause on 2016-06-22. */ "use strict"; window.quick_server = window.quick_server || {}; // init namespace window.quick_server.Worker = function() { var that = this; ...
JavaScript
0
@@ -4883,16 +4883,240 @@ %7D);%0A %7D; +%0A%0A window.addEventListener(%22beforeunload%22, function() %7B%0A Object.keys(tokens).forEach(function(ref) %7B%0A // we probably won't read the results but the server still cancels properly%0A that.cancel(ref);%0A %7D);%0A %7D); %0A%7D // qu
1ed6051cc2096bb0a2af26508f519ed88340bcd7
fix login cypress tests
cypress/plugins/rest.js
cypress/plugins/rest.js
/* eslint-disable no-console */ const fetch = require('isomorphic-fetch') const getPrimaryKeyFromLocation = location => location.substring(location.lastIndexOf('/') + 1) const getHeaders = config => { const headers = new Headers() headers.set('Content-Type', 'application/json') headers.set('Authorization', 'Bas...
JavaScript
0.000004
@@ -786,16 +786,194 @@ ation')%0A + if (response.status %3E= 400) %7B%0A console.error(%60cannot add entity '$%7Bentity%7D':%60, response.status)%0A throw new Error(%60cannot add entity '$%7Bentity%7D', $%7Bresponse.status%7D%60)%0A %7D%0A consol @@ -2589,16 +2589,118 @@ paths: %7B +%0A relBusiness_...
46d5282db1a7c67f05ac22c08b0ed00aaa21fe26
Fix the test.
test/api-sample-search.js
test/api-sample-search.js
var fs = require('fs'); var async = require('async'); var StepList = require('../step-list'); module.exports = function(ctx, lab) { // Test shortcuts var expect = require('code').expect; var before = lab.before; var after = lab.after; var describe = lab.experiment; var it = lab.test; var testUserId = 'test_use...
JavaScript
0.000661
@@ -1710,25 +1710,8 @@ ual( -origNumSamples + test
37546e2f115639adeef43730aca59715da797975
remove getMyRole from manager-bot example
examples/manager-bot.js
examples/manager-bot.js
'use strict'; const Agent = require('./../lib/AgentSDK'); const agent = new Agent({ accountId: process.env.LP_ACCOUNT, username: process.env.LP_USER, password: process.env.LP_PASS, csdsDomain: process.env.LP_CSDS // 'hc1n.dev.lprnd.net' }); let subscriptionId; let openConvs = {}; agent.on('connected...
JavaScript
0
@@ -257,28 +257,8 @@ );%0A%0A -let subscriptionId;%0A let @@ -390,16 +390,71 @@ LINE%22%7D); + // Do not route me conversations, I'll join by myself. %0A age @@ -516,541 +516,111 @@ EN'%5D -%0A %7D, (err, resp) =%3E %7B%0A subscriptionId = resp.subscriptionId;%0A console.log('subscribed succes...
71c1711be489b1c07c0421afbbdc878bcd327057
debug bm
bot/commands.js
bot/commands.js
/** * On load get all the list of commands */ const commands = {}; const settings = require('./../settings.json'); const list = require('./commandlist'); const getcommands = () => { Object.entries(list).forEach( ([key, value]) => { commands[key] = require('./commands/' + value); } ...
JavaScript
0.000017
@@ -701,18 +701,16 @@ -// console.
e088e37e36c06559961a4741ea3dd9b8062a0b60
Fix console error in IE
src/utils/warn.js
src/utils/warn.js
/* global console */ define( function () { 'use strict'; if ( typeof console !== undefined && typeof console.warn === 'function' && typeof console.warn.apply === 'function' ) { return function () { console.warn.apply( console, arguments ); }; } return function () {}; });
JavaScript
0.00001
@@ -79,16 +79,17 @@ ole !== +' undefine @@ -89,16 +89,17 @@ ndefined +' && type @@ -282,8 +282,9 @@ %7B%7D;%0A%0A%7D); +%0A
2c587c0785547f37deedab88c9bc6b6ccd4f05b4
Make BlogIndex extend React.Component
pages/blog/index.js
pages/blog/index.js
import React, { Component, PropTypes } from 'react' import { Link } from 'react-router' import Helmet from 'react-helmet' export default class BlogIndex extends Component { static propTypes = { route: PropTypes.object } render () { const pageLinks = [] const siteTitle = this.props....
JavaScript
0.000002
@@ -116,16 +116,56 @@ elmet'%0A%0A +import s from 'styles/blog.module.css'%0A%0A export d @@ -211,72 +211,8 @@ t %7B%0A - static propTypes = %7B%0A route: PropTypes.object%0A %7D%0A%0A @@ -266,24 +266,19 @@ const -siteTitl +nam e = this @@ -311,16 +311,11 @@ ata. -siteTitl +nam e%0A @@ -4...
e307760241bfb22169937f97dafeb13e9acf8164
fix reasonml cdn
poi.config.js
poi.config.js
const nodeModules = require('webpack-node-modules') const repoLatestCommit = require('repo-latest-commit') const pkg = require('./package') const cdns = { BABEL_CDN: 'https://cdn.jsdelivr.net/npm/@babel/standalone@7.0.0-beta.32/babel.min.js', PUG_CDN: 'https://cdn.jsdelivr.net/npm/browserified-pug@0.1.0/index.js',...
JavaScript
0.998406
@@ -1690,16 +1690,19 @@ thub.io/ +js/ bs.js',%0A @@ -1739,16 +1739,19 @@ thub.io/ +js/ refmt.js
8cb939e851997c65d36d94fd3b5b61887325348f
Update script.js
code/js/script.js
code/js/script.js
var ref = new Firebase("https://paktutor.firebaseio.com"); var auth = ref.getAuth(); var user; // Logged in if(ref.getAuth() != null) { user = new Firebase("https://paktutor.firebaseio.com/users/" + auth.uid); user.push(); } // function loginGoogle() { ref.authWithOAuthRedirect("google", function(error) { if (er...
JavaScript
0.000002
@@ -215,13 +215,45 @@ ser. -push( +set(%7B%22name%22: auth.google.displayName%7D );%0A%7D
c87e98d9d57e1256f531fe97e0df37c5b2f61ca9
switch to Array.find
client/app/components/group/_pickupList/pickupList.controller.js
client/app/components/group/_pickupList/pickupList.controller.js
class PickupListController { constructor(Authentication, PickupDate, PickupDateSeries, Store, $filter, $mdDialog, $document) { "ngInject"; Object.assign(this, { Authentication, PickupDate, PickupDateSeries, Store, $filter, $mdDialog, $document }); } $onInit(...
JavaScript
0.000003
@@ -5381,157 +5381,54 @@ -let pickupToJoin = this.$filter(%22filter%22)(this.allPickups, %7B id: pickupId %7D);%0A if (pickupToJoin && pickupToJoin.length %3E 0)%7B%0A pickupToJoin%5B0%5D +this.allPickups.find((e) =%3E e.id === pickupId) .col @@ -5457,23 +5457,16 @@ serId);%0A - %7D%0A%0A %7D%0A%0...
91e53d855248e66eb8a3ae6056845f224fed3ddc
Fix toolbar start/stop bug where no sound is defined
app/components/toolbar.js
app/components/toolbar.js
import ko from "knockout"; import workList from "work-list"; import template from "components/toolbar.html!text"; function createToolbarViewModel() { return { stop: () => { console.log("STOP"); workList().forEach(w => w.sound.stop()); }, pause: () => { console.log("PAUSE"); workLi...
JavaScript
0.000001
@@ -174,43 +174,8 @@ ) =%3E - %7B%0A console.log(%22STOP%22);%0A wor @@ -186,32 +186,43 @@ t().forEach(w =%3E + w.sound && w.sound.stop()) @@ -221,23 +221,16 @@ .stop()) -;%0A %7D ,%0A pa @@ -243,44 +243,8 @@ ) =%3E - %7B%0A console.log(%22PAUSE%22);%0A wor @@ -255,32 +255,43 @@ t(...
2659fb99ba1cbb3c136a027fb1f091a97ebf560c
Fix spacing violation in webpack config
webpack.config.js
webpack.config.js
const path = require("path"); const webpack = require("webpack"); const includeEditor = process.env.INCLUDE_EDITORS === "true"; const prod = process.env.NODE_ENV === "production"; const externalVals = { // We inject React libs, underscore, and jQuery into the page in // development. These are the paths on `wi...
JavaScript
0
@@ -2544,17 +2544,16 @@ (null, %7B - %22this%22: @@ -2573,17 +2573,16 @@ request%5D - %7D, %22this
f3ffe0543e54d02c72f9edb84a35a945137ee7be
fix memory leak test failing spuriously
test/avoid-memory-leak.js
test/avoid-memory-leak.js
var importFresh = require('import-fresh'); var t = require('tap') var v8 try { v8 = require('v8') } catch (er) {} var previousHeapStats function checkHeap (t) { var v8stats = v8 ? v8.getHeapStatistics() : {} var stats = process.memoryUsage() if (typeof v8stats.number_of_detached_contexts === 'number') t.e...
JavaScript
0.000003
@@ -554,17 +554,18 @@ ageMB %3C -2 +10 , 'expec @@ -576,17 +576,18 @@ ss than -2 +10 MB diffe
ee4dbd885d87f7e11b35320e8f93a55ba78cb70f
Check location on iPad
public/src/js/app/services/locationService.js
public/src/js/app/services/locationService.js
function LocationService ($rootScope, $q, $timeout, $log, $cookieStore) { var LocationService = {}; var _location = { position: null, promise: null, resolved: false }; var _watchId = null; function onLocationFound (position) { if (!angular.isObject(position.coords)...
JavaScript
0
@@ -99,16 +99,17 @@ e = %7B%7D;%0A +%0A var @@ -200,16 +200,45 @@ %0A %7D;%0A + var _geolocation = null;%0A var @@ -309,294 +309,50 @@ -if (!angular.isObject(position.coords) %7C%7C%0A !angular.isNumber(position.coords.latitude) %7C%7C%0A !angular.isNumber(position.coords...
347828d36c7fdaa6492bc9154548e9bbbcd1cd64
Add send message unit test.
syweb/webclient/test/unit/room-controller.spec.js
syweb/webclient/test/unit/room-controller.spec.js
describe("RoomController ", function() { var rootScope, scope, ctrl, $q, $timeout, routeParams; var userId = "@foo:bar"; var displayName = "Foo"; var avatarUrl = "avatar.url"; var roomId = "!ygsffwe:matrix.org"; var dialogService = { showError: function(err){}, // will be spyed ...
JavaScript
0
@@ -859,16 +859,59 @@ , dir)%7B%7D +,%0A sendMessage: function(rm,input)%7B%7D %0A %7D;%0A @@ -3443,34 +3443,52 @@ return resolve( -%7B%7D +%22!roomid:matrix.org%22 );%0A %7D);%0A @@ -3937,18 +3937,18 @@ resolve( -%7B%7D +id );%0A @@ -4084,24 +4084,24 @@ edWith(id);%0A - %0A @...
2621a7f24557f489e4999fd111492d05e801e006
increase max number of temporary sessions to 10
phovea.js
phovea.js
/* ***************************************************************************** * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
JavaScript
0.000329
@@ -2008,17 +2008,18 @@ to the -5 +10 recent
ca1ecaa106ad1f65f16d7835c25ee29a02551765
add Go-SCP-jaJP
build.js
build.js
// MIT © 2017 azu "use strict"; import cpx from "cpx"; import url from "node:url"; import path from "node:path"; import fs from "fs"; import addTextToMarkdown from "add-text-to-markdown"; import { References as Refs } from "./index.js"; const __filename__ = url.fileURLToPath(import.meta.url); const __dirname = path.di...
JavaScript
0.000001
@@ -1601,24 +1601,74 @@ 0,1%7D*.md%22),%0A + copy(Refs%5B%22Go-SCP-jaJP%22%5D, %22src/**/*.md%22),%0A %5D);%0A%7D%0A%0Af
4a1f61a30a25b84538f61324b3ad4b9a8c33b463
add primitive method
lib/is.js
lib/is.js
var typeOf = require('./of'); var typify = require('./typify'); var isBuffer = require('./is.buffer'); var isArrayLike = require('./is.array-like'); function is(expected, value) { return new RegExp('(' + typify(expected, true) + ')').test(typeOf(value)); } is.not = function isnt(expected, value) { return !is(expect...
JavaScript
0.001876
@@ -971,16 +971,178 @@ e);%0A%7D;%0A%0A +is.primitive = function isPrimitive(value) %7B%0A%09return value !== Object(value);%0A%7D;%0A%0Ais.not.primitive = function isntPrimitive() %7B%0A%09return !is.primitive(value);%0A%7D;%0A%0A is.buffe
b1d7c34086ec95a2b0507c595e3a353cdc550b9b
remove log
js/bootstrap-dropdown.js
js/bootstrap-dropdown.js
/* ============================================================ * bootstrap-dropdown.js v2.0.3 * http://twitter.github.com/bootstrap/javascript.html#dropdowns * ============================================================ * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "Lice...
JavaScript
0.000001
@@ -3482,68 +3482,8 @@ ) %7B%0A - console.log(toggle + ', ' + toggle + ' + %5Brole=menu%5D')%0A%0A
1e6cb55fe62cd116d21b397e76930b43c105be10
add name define
webpack.config.js
webpack.config.js
'use strict' const webpack = require('webpack') const ExtractTextPlugin = require('extract-text-webpack-plugin') const config = { context: __dirname, entry: { 'one-page-scroll': './one-page-scroll.js' }, output: { path: __dirname, filename: '[name].min.js' }, stats: { colors: true, reaso...
JavaScript
0.000016
@@ -265,24 +265,106 @@ ame%5D.min.js' +,%0A library: 'onePageScroll',%0A libraryTarget: 'umd',%0A umdNamedDefine: true %0A %7D,%0A stat
39046e78eb512285d6ebbef6187205d8a6aaa471
fix tests
test/test.js
test/test.js
/*global describe, beforeEach, it */ 'use strict'; var path = require('path'); var helpers = require('yeoman-generator').test; describe('H5BP Mobile Boilerplate generator', function () { beforeEach(function (cb) { var deps = ['../../app']; helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { i...
JavaScript
0.000001
@@ -590,17 +590,16 @@ rator, %7B - docs: tr @@ -600,17 +600,16 @@ cs: true - %7D);%0A%0A%09%09t @@ -630,12 +630,8 @@ run( -%7B%7D, func
7567225660ac95fbbe3efee97fa348bb4176b88c
update test to reflect 10k numeric values
test/basic-unique.test.js
test/basic-unique.test.js
var getSchema = require('../'); var assert = require('assert'); var _ = require('lodash'); describe('has_duplicates', function() { var docs = _.map(_.range(11111), function(val) { return { num: val, str: String(val) }; }); var schema; before(function(done) { schema = getSchema('has_dup...
JavaScript
0.000001
@@ -567,16 +567,18 @@ have 100 +00 number @@ -691,32 +691,34 @@ lues.length, 100 +00 );%0A %7D);%0A%0A it('
344ef6246d67b31d9edca0e59dee2aa77bfef21c
increase test timeout
test/test.js
test/test.js
import chai from 'chai'; import forward from '../src/index.js'; const expect = chai.expect; import TestServer from './server'; import request from 'supertest'; const local = new TestServer(); // const base = `http://${local.hostname}:${local.port}/`; const urls = [ 'https://www.gome.com.cn/', 'https://www.gomep...
JavaScript
0.000002
@@ -1562,15 +1562,48 @@ on, -() =%3E %7B +function() %7B%0A this.timeout(5000); %0A
f18e1a0299e38c8eaf492c307e2888f876bb4c69
fix a bug >_<
bot_Engineer.js
bot_Engineer.js
function Engineer_setup(t){return {c:t,C:"red0blue".split(0)[+(t=="red")],d:function(x1,y1,x2,y2){return Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))},enemyDist:function(g){return b.d(g[b.c+"_x"],g[b.c+"_y"],g[b.C+"_x"],g[b.C+"_y"]);},hS:function(g){return b.d(g.sun_x,g.sun_y,g[b.c+"_x"],g[b.c+"_y"])<50},hSm:function(g){...
JavaScript
0
@@ -863,22 +863,16 @@ e?*/if(b -otVars .hS(g)%7C%7C @@ -872,22 +872,16 @@ hS(g)%7C%7Cb -otVars .hSm(g)) @@ -930,22 +930,16 @@ e?*/if(b -otVars .enemyDi @@ -1017,22 +1017,16 @@ sh(b -otVars .lOr(g,b otVa @@ -1025,14 +1025,8 @@ (g,b -otVars ));%09
c0e1918bae6ba25d0380b76d0f232de32b0481b7
disable VR mode for aframe
public/visifile_drivers/apps/intro_logo_3d.js
public/visifile_drivers/apps/intro_logo_3d.js
function intro_logo_3d(args) { /* created_timestamp(-1) base_component_id("into_logo_3d") is_app(true) display_name("Intro Logo 3D") description('Intro logo app, this will return a spinning logo') uses_javascript_librararies(["aframe"]) load_once_from_file(true) */ Vue.component('intro_logo_3d',{ template: `...
JavaScript
0
@@ -389,16 +389,44 @@ embedded + vr-mode-ui=%22enabled: false%22 %3E%0A
b022a525de63d4a5c075494f20f6bfadcbedbcc8
Update arguments for each panel
website/static/js/filepage/index.js
website/static/js/filepage/index.js
var $ = require('jquery'); var m = require('mithril'); var waterbutler = require('js/waterbutler'); // Local requires var utils = require('./util.js'); var FileTree = require('./tree.js'); var FileRenderer = require('./render.js'); var FileEditor = require('./editor.js'); var FileRevisionsTable = require('./revisions....
JavaScript
0
@@ -1098,16 +1098,38 @@ FileTree +, %5Bself.node.urls.api%5D ),%0A @@ -1159,16 +1159,42 @@ leEditor +, %5Bself.file.urls.content%5D ),%0A @@ -1321,16 +1321,27 @@ elf.file +, self.node %5D, true)
58aa19e08eae06e079e888e94abaaa51f933f0f0
Fix alingment problem with multiline inputs
src/Label.js
src/Label.js
import React from 'react' import { Text, View } from 'react-native' import styled from 'styled-components/native' import defaultTheme from './theme' const LabelWrapper = styled.View` flex:.5; marginTop: ${props => props.inlineLabel ? 0 : 5}; ` const LabelText = styled.Text` color: ${props => props.theme.Label.c...
JavaScript
0.000038
@@ -181,19 +181,8 @@ ew%60%0A - flex:.5;%0A ma
4720dab485f8175b56315bada2541fd8e1423427
refactor block options
src/components/inspector/BlockOptionsAlt.js
src/components/inspector/BlockOptionsAlt.js
import {createElement, Component} from 'react'; import Form from 'react-jsonschema-form'; import {setBlockOptions} from '../../actions/index'; import {connect} from 'react-redux'; import env from '../../larissa/environment'; import {TextField, Toggle} from 'material-ui'; const FieldTemplate = (props) => { return ...
JavaScript
0.000004
@@ -95,50 +95,44 @@ rt %7B -setBlockOptions%7D from '../../actions/index +TextField, Toggle%7D from 'material-ui ';%0Ai @@ -171,102 +171,108 @@ x';%0A +%0A import -env from '../../larissa/environment';%0Aimport %7BTextField, Toggle%7D from 'material-ui +%7BsetBlockOptions%7D from '../../actions/index';%0Aimport en...
4b09035a64bf0a577c2131157487330f5d6038aa
Add bars events draft
src/assets/js/renderer/renderer.js
src/assets/js/renderer/renderer.js
import structureParser from './structureParser.js'; import { listenOn } from '../helpers.js'; const defaultBodyStructure = { root: { classes: ['jsr'], children: ['railOuter'], count: 1 }, railOuter: { classes: ['jsr_rail-outer'], children: ['rail'], count: 1 }, rail: { classes: ['...
JavaScript
0
@@ -1379,22 +1379,16 @@ / Slider - click %0A lis @@ -2973,16 +2973,256 @@ / Slider +%0A%0A // Bar%0A // listenOn(this.body.bars, 'mousedown', (event) =%3E %7B%0A %0A // %7D);%0A // listenOn(document, 'mousemove', (event) =%3E %7B%0A %0A // %7D);%0A // listenOn(document, 'mouseup', (eve...
74bd8cd47a2df661cd92412fca62711ea2ec419a
Fix polls.
javascript/polls.js
javascript/polls.js
var num_poll_options; function showPoll(elem) { if($("#topic_poll").css("display") == "none") { $(elem).text("[-] Poll"); $("#topic_poll").show(); $("#poll_option_"+(num_poll_options-1)).focus(); $("#enable_poll").val(1); }else{ $(elem).text("[+] Poll"); $("#topic_poll").hide(); $("#enable_poll").val(0...
JavaScript
0
@@ -16,16 +16,44 @@ tions;%0A%0A +window.showPoll = showPoll;%0A function @@ -826,16 +826,46 @@ );%0A%7D);%0A%0A +window.pollFocus = pollFocus;%0A function @@ -1010,18 +1010,17 @@ e;%0A%09%7D);%0A -%09 %0A + %09if(!con @@ -1224,18 +1224,17 @@ nput%22);%0A -%09 %0A + %09if(num_ @@ -1406,18 +1406,17 @@ nimal';...
019f02081fd38ed0bb71075036608889dafdc302
fix bug
server/app.js
server/app.js
"use strict"; const http = require('http'); const request = require('request'); const url = require('url'); const querystring = require('querystring'); const cheerio = require('cheerio'); const iconv = require('iconv-lite'); var fetchListData = function (num, cb){ num = num || 1; let api = `http://club.autohome.c...
JavaScript
0.000001
@@ -1664,19 +1664,19 @@ %7B%0A -var +let image = @@ -1693,24 +1693,40 @@ ind('img');%0A + let item;%0A if(ima @@ -1743,36 +1743,32 @@ rc9'))%7B%0A -var item = image.att @@ -1801,20 +1801,16 @@ -var item = i
3e72aef5d95d38fb2e611cd0ea21bc898bd50f9d
Build script updates
build.js
build.js
var fs = require('fs'); exports.build = function(app){ buildApplication(app) } function buildApplication(app){ var mcss , mjs , foundCSS=false , foundJS=false if ( app.settings.env == 'development' ){ return; } // Remove the old css files fs.readdir(__dirname+'/public/styles/', function...
JavaScript
0
@@ -2184,48 +2184,8 @@ s%22,%0A - %22jquery.qtip.min.js%22,%0A @@ -2603,16 +2603,106 @@ over.js%22 +,%0A %22lib/bootstrap-typeahead.js%22,%0A %22lib/bootstrap-tab.js%22 %0A @@ -2734,20 +2734,16 @@ = %22%22;%0A - %0A for (
f01e8043de06287ad4133256102d74e88c546b0c
enable all tests
test/test.js
test/test.js
'use strict' const sort = require('..') const test = require('ava') const desc = (a, b) => { if (a > b) { return -1 } if (b > a) { return 1 } return 0 } test('sort returns non-array/non-object as is', t => { const nonSortables = ['foo', null, 34] nonSortables.forEach(nonSortable => t.deepE...
JavaScript
0.000002
@@ -1174,13 +1174,8 @@ test -.only ('so
35210e5b756b9fcfcae4a8488aef618e5b86ace4
Revert "Do not show outside days when fromMonth/toMonth"
src/Month.js
src/Month.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Weekdays from './Weekdays'; import Day from './Day'; import { ENTER } from './keys'; import * as ModifiersUtils from './ModifiersUtils'; import * as Helpers from './Helpers'; import * as DateUtils from './DateUtils'; export default ...
JavaScript
0.000001
@@ -766,92 +766,8 @@ ng), -%0A fromMonth: PropTypes.instanceOf(Date),%0A toMonth: PropTypes.instanceOf(Date), %0A%0A @@ -2993,302 +2993,8 @@ );%0A%0A - const %7B showOutsideDays, fixedWeeks, toMonth, fromMonth %7D = this.props;%0A const empty =%0A (isOutside && !showOutsideDays && !fixedWeeks) %7C...
8555d0ce0438c4aa034115a30ade5caa415639bd
fix for title count
core/app/assets/javascripts/backbone/views/notifications_view.js
core/app/assets/javascripts/backbone/views/notifications_view.js
(function(){ window.NotificationsView = Backbone.CollectionView.extend({ views: {}, tagName: "li", id: "notifications", containerSelector: "ul", _unreadCount: 0, events: { "click": "clickHandler" }, initialize: function () { this.useTemplate("notifications", "_notifications"); this.col...
JavaScript
0.000081
@@ -1267,16 +1267,52 @@ = count; +%0A this._unreadTitleCount = count; %0A%0A if @@ -1456,32 +1456,37 @@ this._unread +Title Count = %229%3Csup%3E+ @@ -1494,16 +1494,47 @@ /sup%3E%22;%0A + this._titleCount = %229+%22;%0A %7D%0A @@ -1674,24 +1674,24 @@ unt %3E 0 ) %7B%0A - docume @@ -17...
fef7fe0e1e653df7bf90fdfbb23d9a92cdbd85df
Update chai_assert_tests.js
test/chai_assert_tests.js
test/chai_assert_tests.js
/* Test using Mocha with Chai. Style using chai Assert eg: assert.typeOf(foo, 'string'); assert.equal(foo, 'bar'); assert.lengthOf(foo, 3) assert.property(tea, 'flavors'); assert.lengthOf(tea.flavors, 3); */ const assert = require('assert'); // New comment const Suminator...
JavaScript
0.000002
@@ -297,16 +297,18 @@ comment + 2 %0Aconst S
d12951ed1d7ac64d59fd97785750c4951df015a6
add docs
src/client/state/stateWrapper.component.js
src/client/state/stateWrapper.component.js
import React from 'react'; export default class StateWrapper extends React.Component { constructor(props) { super(props); this.state = props.globalState.getState(props.listenTo); } componentDidMount() { this.listener = this.props.globalState.listenTo(this.props.listenTo, (newState) => { this....
JavaScript
0.000001
@@ -1,8 +1,213 @@ +/**%0A * @file%0A * Wrap a component in a statefull container.%0A *%0A * Props are updated when globalState changes.%0A * It is possible to transfer props to the wrapped component, using the transfer property.%0A */%0A%0A import R
2b9c143f2cbc28adf43fe469856cd76ec6cce39f
combined two phrases into one by using gender neutral pronoun
javascripts/main.js
javascripts/main.js
var phrases = [ "No. Your genes are inferior.", "No. Donate to shouldihavesex.com instead.", "Yes. Lie back and think of England.", "10/10 fertility gods agree that you should have sex.", "No. Sex is weird and gross.", "Yeah girl. Tap that shit.", "No. Leave it to the professionals.", "Yeah baby. Call me. 867-5309", "N...
JavaScript
0.999999
@@ -1543,81 +1543,15 @@ ll, -she's not going to love you for your personality.%22,%0A%22Yes. After all, he's +they're not
db3b704edfcf4a200c8779c6056f21c04bb7fc5e
switch to realtive urls
webpack.config.js
webpack.config.js
var path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.join(__dirname, 'build'), publicPath: '/build/', filename: 'bundle.js' }, module: { loaders: [ { test: /\.js$/i, include: path.join(__...
JavaScript
0.000001
@@ -150,17 +150,16 @@ cPath: ' -/ build/',
2800fdfe0bfc9ac616ba1fe70469fa4242d268bd
test use relative dep path
test/test.js
test/test.js
var assert = require('assert'); var binaryjs = require('binaryjs'); var BinaryServer = binaryjs.BinaryServer; var BinaryClient = binaryjs.BinaryClient; var http = require('http'); var server, client, serverUrl = 'ws://localhost:9101'; describe('BinaryServer', function(){ describe('creating servers', functi...
JavaScript
0.000001
@@ -50,24 +50,19 @@ equire(' -binaryjs +../ ');%0D%0Avar
3dad25b48327e8ea8c15d925a7c2895f624d316d
Refactor test.js
test/test.js
test/test.js
var expect = chai.expect; function resetModals() { modal = undefined; $("#gentle-alerts-modal").remove(); } describe("modalHTML", function() { beforeEach(resetModals); it("should be available", function() { expect(modalHTML).to.have.length.above(0); }); }); describe("Modal", function() { ...
JavaScript
0.000001
@@ -1274,32 +1274,352 @@ h(resetModals);%0A + function closeAndAssertClosed(triggerEvent, done) %7B%0A $.when($(%22#gentle-alerts-modal%22).trigger(triggerEvent)).done(function()%7B%0A expect($(%22#gentle-alerts-modal-content-text%22).length).to.equal(0);%0A expect($(%22#gentle-alerts-m...
4e99007977d9feadc15c0f51879ec5c78cc8ecad
Drop browser directive.
js/controllers/server.js
js/controllers/server.js
/*eslint-env browser */ /*global require: false, module: false */ 'use strict'; var _ = require('../underscore_ext'); var paths = require('./paths'); var Rx = require('rx'); var makeGroups = require('../models/km'); var xenaQuery = require('../xenaQuery'); var datasetFeatures = xenaQuery.dsID_fn(xenaQuery.dataset_fe...
JavaScript
0
@@ -1,28 +1,4 @@ -/*eslint-env browser */%0A /*gl @@ -35,17 +35,16 @@ alse */%0A -%0A 'use str
1632495dd2484c3c8a99e3c11421a7b9a6d3eaf7
Handle errors when fetching strand.
js/controllers/server.js
js/controllers/server.js
/*global require: false, module: false */ 'use strict'; var _ = require('../underscore_ext'); var Rx = require('rx'); var {reifyErrors, collectResults} = require('./errors'); var {closeEmptyColumns, reJoinFields, resetZoom, setCohort, fetchDatasets, fetchSamples, fetchColumnData, matchSamples} = require('./common'); ...
JavaScript
0
@@ -2360,16 +2360,49 @@ p, gene) +.catch(Rx.Observable.return('+')) , id%5D);%0A
6611f128e69600bdbf09dff817400d66265fae78
improve code style.
src/detectors/invisible_element_overflow.js
src/detectors/invisible_element_overflow.js
// @author : luyuan.china@gmail.com addScriptToInject(function() { chrome_comp.CompDetect.declareDetector( 'invisibleElementOverflow', chrome_comp.CompDetect.ScanDomBaseDetector, null, // constructor /*【思路】 * 检测所有宽度或者高度为 0 的元素 * 判断其包含块的 overflow 特性是否为 auto 或 scroll * */ function checkNode...
JavaScript
0.000001
@@ -1,39 +1,613 @@ / -/ @author : luyuan.china@gmail.com +*%0D%0A * Copyright 2010 Google Inc.%0D%0A *%0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A *%0D%0A * ...
bb610df2bd1ca87381bdac6798fa6a5d0a4a35f4
Update d3.dependencyWheel.js
js/d3.dependencyWheel.js
js/d3.dependencyWheel.js
d3.chart = d3.chart || {}; /** * Dependency wheel chart for d3.js * * Usage: * var chart = d3.chart.dependencyWheel(); * d3.select('#chart_placeholder') * .datum({ * packageNames: [the name of the packages in the matrix], * matrix: [your dependency matrix] * }) * .call(chart); * * // Data m...
JavaScript
0.000001
@@ -1174,17 +1174,17 @@ idth = 1 -2 +0 00;%0A va
a86ece66b540c19965bd87b0b43ea1ca368bb119
Add chunkhash to filename only when running production build.
webpack.config.js
webpack.config.js
/* eslint-disable */ var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require("extract-text-webpack-plugin"); var WebpackBuildNotifierPlugin = require('webpack-build-notifier'); var path = require('path'); var redashBackend = process.env.REDASH_BACKEND ...
JavaScript
0
@@ -540,28 +540,16 @@ '%5Bname%5D. -%5Bchunkhash%5D. js',%0A @@ -3613,16 +3613,68 @@ /dist';%0A + config.output.filename = '%5Bname%5D.%5Bchunkhash%5D.js';%0A config
235739ec1af0e3bceac1311860b8adc2b67d93de
Fix potential marionette missing error
scripts/application.js
scripts/application.js
/* Application */ define([ 'jquery', 'underscore', 'backbone', 'marionette', 'models/session', 'vent', 'router', 'views/user_nav_menu', 'views/alert' ], function($, _, Backbone, Marionette, session, vent, Router, UserNavMenuView, AlertView) { var application = new Marionette.Application(); // Application...
JavaScript
0.001074
@@ -270,16 +270,25 @@ n = new +Backbone. Marionet
21c4c6f4fe64e94073be6fb6e126753f12fcdf27
add comment system
server/app.js
server/app.js
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); mongoose.connect("mongodb://localhost:27017/blog"); require('./p...
JavaScript
0
@@ -809,16 +809,59 @@ ntent'); +%0Avar comment = require('./routes/comment'); %0A%0Avar ap @@ -2589,24 +2589,53 @@ ogContent);%0A +app.use('/comment',comment);%0A app.get('*',
3397ee845bbaa750cfaea3bc1736210261a69699
indent index.json
build.js
build.js
#!/usr/bin/env node "use strict"; const jsYaml = require("js-yaml"); const fs = require("fs"); const path = require("path"); const input = path.join(__dirname, ".eslintrc"); const output = path.join(__dirname, "index.json"); fs.writeFileSync(output, JSON.stringify(jsYaml.safeLoad(fs.readFileSync(input, "utf8"))));
JavaScript
0.000026
@@ -225,48 +225,21 @@ );%0A%0A -fs.writeFileSync(output, JSON.stringify( +const yaml = jsYa @@ -281,12 +281,67 @@ %22utf8%22)) +;%0Afs.writeFileSync(output, JSON.stringify(yaml, null, 2 ));%0A
278b072582668d228e3bbe0acfd41cac46a41bd7
Create webpack config specifically for example case
webpack.config.js
webpack.config.js
/* global process */ const webpack = require('webpack'); const fs = require('fs'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const env = process.env; // eslint-disable-line no-process-env const isProduction = env.NODE_ENV === 'production'; function makeExampleConfig(name...
JavaScript
0
@@ -428,24 +428,22 @@ %60%0A -monolith +%5Bname%5D : %60./exa @@ -807,38 +807,8 @@ n(%7B%0A - chunks: %5B'monolith'%5D,%0A @@ -872,17 +872,17 @@ mplate: -' +%60 ./exampl @@ -884,24 +884,23 @@ xamples/ -monolith +$%7Bname%7D /main.ht @@ -897,25 +897,25 @@ e%7D/main.html -' +%60 ,%0A f...
44c9f337f29086c7dc226197e424820e29aec4d8
Add a few '-' cases
test/test.js
test/test.js
var assert = require('assert'); var domain = require('..'); describe('domain-regex', function() { // https://publicsuffix.org/list/effective_tld_names.dat it('should handle a wide array of domains', function() { var validDomains = ['some-example.construction', 'example.co.uk', 'example.aerodrome.aero', 'g.co'...
JavaScript
0.999999
@@ -595,24 +595,93 @@ valid.com',%0A + '-notvalid.com',%0A 'notvalid-.com',%0A 'notvalid.com-',%0A 'this.
b8bd768515e464b5c643f4ea369c252a6ee94f28
fix test case
test/test.js
test/test.js
require('chai').should() const Liqui = require('../') let liqui = new Liqui() describe('Liqui', () => { it('info', async () => { let info = await liqui.info() info.should.not.null }) it('ticker', async () => { let ticker = await liqui.ticker('eth_btc') ticker.should.not.null }) it('depth'...
JavaScript
0.000022
@@ -57,26 +57,104 @@ let -liqui = new Liqui( +key = process.env.key%0Alet secret = process.env.secret%0A%0Alet liqui = new Liqui(%7B%0A key,%0A secret%0A%7D )%0A%0Ad @@ -665,25 +665,16 @@ getInfo( -'eth_btc' )%0A pr @@ -768,32 +768,51 @@ .trade('eth_btc' +, 'buy', 0.01, 0.01 )%0A trade.shou @@ -827,48 +8...
0d4af6190ffb3b990ec370ce4002b5fe13df8f00
Copy icons folder in webpack
webpack.config.js
webpack.config.js
const CopyWebpackPlugin = require('copy-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const path = require('path'); const isProduction = process.env.NODE_ENV === 'production'; // Keep this constant because CopyWebPack changes dirs const DIRNAME = __dirname; const distFolder = path.join(...
JavaScript
0.000001
@@ -959,24 +959,137 @@ p'),%0A %7D,%0A + %7B%0A from: path.join(distFolder, 'icons'),%0A to: path.join(releaseFolder('firefox'), 'icons'),%0A %7D,%0A // Chrom @@ -1314,32 +1314,144 @@ ),%0A %7D,%0A %7B%0A + from: path.join(distFolder, 'icons'),%0A to: path.join(releaseFolder('c...