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
db91610d7d8094355edbdef87ca2c2836fcdfae0
fix work with selfhosted ngrokd
tasks/ngrok.js
tasks/ngrok.js
/* * grunt-ngrok * https://github.com/bazilio91/grunt-ngrok * * Copyright (c) 2014 "bazilio91" Vasiliy Ostanin * Licensed under the MIT license. */ 'use strict'; var yaml = require('js-yaml'), fs = require('fs'), os = require('os'), spawn = require('child_process').spawn, fetcher = require('../li...
JavaScript
0
@@ -1612,231 +1612,8 @@ );%0A%0A - if (options.files !== null) %7B%0A fetcher.files = options.files;%0A %7D%0A%0A fetcher.getBinary(function (err, binaryPath) %7B%0A if (err) %7B%0A grunt.fatal(err);%0A %7D%0A%0A @@ -1669,36 +1669,32 @@ o:...
7bd7d5454ddcb05bc3e7fd5d1856528a6fe342ee
Set up env variables
server/index.js
server/index.js
const express = require('express'); const app = express(); const path = require('path'); // const bodyParser = require('body-parser'); // production settings: // const url = '138.197.204.0'; // const port = 80; // development settings: const url = '127.0.0.1'; const port = 3000; // middlewares: // app.use(bodyPa...
JavaScript
0.000007
@@ -136,18 +136,19 @@ %0A// -production +development set @@ -153,20 +153,18 @@ ettings: -%0A// +%0A const ur @@ -166,16 +166,73 @@ st url = + (process.env.NODE_ENV === 'development') ? '127.0.0.1' : '138.19 @@ -242,19 +242,16 @@ 04.0'; %0A -// const po @@ -259,81 +259,59 @@ t = -80;%0A%0A// development...
046b0b27ba99255765feab7914e50b9c8a46560a
Update index.js
server/index.js
server/index.js
const polka = require("polka"); const next = require("next"); const port = parseInt(process.env.PORT, 10) || 3000; const dev = process.env.NODE_ENV !== "production"; const app = next({ dev }); const handle = app.getRequestHandler(); const render = name => (req, res) => app.render(req, res, name, { ...req.query, ...r...
JavaScript
0.000002
@@ -503,38 +503,14 @@ *%22, -(req, res) =%3E handle(req, res) +handle )%0A
7bf3852c71ea28d0f8f80369f2d2933088dab308
Add autoprefixer
tasks/style.js
tasks/style.js
/*************************************************************** STYLES TASK path: scr/stylus/*.styl save to: public/css/style.css dependence: gulp-stylus, gulp-plumber, gulp-minify-css ***************************************************************/ var gulp = require('gulp'), config = require('../gul...
JavaScript
0.000012
@@ -566,24 +566,73 @@ p-rename'),%0A + autoprefixer = require('gulp-autoprefixer'),%0A plumber @@ -913,16 +913,48 @@ l.log))%0A + .pipe(autoprefixer(%7B%7D))%0A
21c2e763dd8b511a2250403ec451a2cb9c0382e2
fix validation test
src/server/models/ScreenshotBucket.test.js
src/server/models/ScreenshotBucket.test.js
import { assert } from 'chai' import ScreenshotBucket from './ScreenshotBucket' const baseData = { name: '878', branch: 'BUGS-130', commit: 'ff4474843ccab36e72814e321cbf6ab6a6303385', } describe('ScreenshotBucket', () => { describe('validation commit', () => { it('should throw if the screenshot buckets ar...
JavaScript
0.001045
@@ -519,19 +519,8 @@ ect( -JSON.parse( erro @@ -533,19 +533,14 @@ age) -) .to -Equal(%7B +Be( %0A @@ -546,24 +546,25 @@ +' commit: %5B%0A @@ -559,48 +559,8 @@ it: -%5B%0A %7B%0A message: ' shou @@ -610,158 +610,8 @@ - keyword: 'pattern',%0A p...
99382d3481439a30630cc20043afd56f1fcd49ef
remove conference talk cors header
server/index.js
server/index.js
var compress = require('compression') var cors = require('cors') var express = require('express') var http = require('http') var pug = require('pug') var path = require('path') var twilio = require('twilio') var url = require('url') var util = require('util') var config = require('../config') var PORT = Number(proces...
JavaScript
0
@@ -522,81 +522,8 @@ dio' -,%0A%0A // Conference talk%0A 'http://nordicjs.fun',%0A 'https://nordicjs.fun' %0A%5D%0A%0A
b7b15d5b8a094b1a8f6603ab45063685d1a15e38
use baseUrl for e2e tests also for production
tasks/tests.js
tasks/tests.js
'use strict'; var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var Config = require('./config'); /* jshint camelcase:false*/ var webdriverUpdate = require('gulp-protractor').webdriver_update; //update webdriver if necessary, this task will be used by e2e task gulp.task('tests:update-webdriver', w...
JavaScript
0
@@ -676,34 +676,8 @@ avis - && !Config.isOnProduction ) %7B%0A
b3848863d9700cbcea8844b10d7b8a2b7a42f4f1
Load grunt-parallel plugin for watch configuration.
tasks/watch.js
tasks/watch.js
module.exports = function(grunt) { /** * Define "watch" tasks. * * Add a watch task that automatically runs the test suite when a file in * the Drupal docroot changes (except for files in sites/.../files) or when * a file in the testing features directory changes. */ grunt.loadNpmTasks('grunt-con...
JavaScript
0
@@ -327,16 +327,57 @@ atch');%0A + grunt.loadNpmTasks('grunt-parallel');%0A%0A grunt.
b29896d12ab28d8890b20484cf18f9a9ff491a5d
copy all files, not just assets (because `clean`)
tasks/watch.js
tasks/watch.js
var gulp = require('gulp') var browserify = require('./support/browserify') gulp.task('watch', ['copy'], function () { gulp.watch('app/**/*.{css,html}', ['copy:assets']) return browserify(true) })
JavaScript
0
@@ -159,15 +159,8 @@ copy -:assets '%5D)%0A
49e840ee2420580b65b7cd2230009b4035b846f4
Add an option to toggle the comment spacing regex. Fixes #1
tasks/wpcss.js
tasks/wpcss.js
/* * grunt-wp-css * http://www.cedaro.com/ * * Copyright (c) 2014 Cedaro * Licensed under the MIT license. */ 'use strict'; module.exports = function( grunt ) { var _ = require( 'underscore' ), Comb = require( 'csscomb' ), cssbeautify = require( 'cssbeautify' ), fs = require( 'fs' ), path = require( '...
JavaScript
0.000001
@@ -512,16 +512,41 @@ tions(%7B%0A +%09%09%09commentSpacing: true,%0A %09%09%09confi @@ -1627,24 +1627,60 @@ ontents );%0A%0A +%09%09%09if ( options.commentSpacing ) %7B%0A%09 %09%09%09// Add tw @@ -1719,13 +1719,14 @@ hat -trail +follow a c @@ -1745,16 +1745,17 @@ brace.%0A +%09 %09%09%09conte @@ -1801,24 +...
8d86a12e268d3c95358af6219f5ce8320c071580
fix editor bugs
server/proxy.js
server/proxy.js
var http = require('http'); var httpProxy = require('http-proxy'); var https = require('https'); var fs = require('fs'); var path = require('path'); var options = { ca: fs.readFileSync(path.join(__dirname, '/www_yvanwang_com/www_yvanwang_com.ca-bundle')), key: fs.readFileSync(path.join(__dirname, '/www_yvanwang...
JavaScript
0.000001
@@ -2059,375 +2059,667 @@ res. -redirect('https://www.yvanwang.com');%0A break;%0A case 'www.yvanwang.com':%0A res.redirect('https://www.yvanwang.com');%0A break;%0A case 'blog.yvanwang.com':%0A res.redirect('https://blog.yvanwang.com');%0A break;%0A...
2034afc7e5a7ec06855a576b0db142738a1a05d0
Add keyCaptures for navigator
app/js/arethusa.core/navigator.js
app/js/arethusa.core/navigator.js
'use strict'; angular.module('arethusa.core').service('navigator', [ '$injector', 'configurator', '$cacheFactory', function ($injector, configurator, $cacheFactory) { var self = this; this.sentences = []; this.sentencesById = {}; this.currentPosition = 0; this.status = {}; var citeMappe...
JavaScript
0
@@ -114,16 +114,32 @@ ctory',%0A + 'keyCapture',%0A functi @@ -180,16 +180,28 @@ eFactory +, keyCapture ) %7B%0A @@ -4659,16 +4659,537 @@ ;%0A %7D; +%0A%0A function initKeyCaptures() %7B%0A var kC = keyCapture;%0A var conf = kC.conf('navigation');%0A var nextKey = conf.nextSentence;%0A ...
0861be95caf205b0f0dde01a91ccb9815df44ac1
remove loc with location
services/wit.js
services/wit.js
'use strict' var Config = require('../config') var FB = require('../connectors/facebook') var Wit = require('node-wit').Wit var request = require('request') var firstEntityValue = function (entities, entity) { var val = entities && entities[entity] && Array.isArray(entities[entity]) && entities[entity].length >...
JavaScript
0.000033
@@ -1071,16 +1071,21 @@ %09var loc +ation = first @@ -1127,16 +1127,21 @@ %09if (loc +ation ) %7B%0A%09%09%09c @@ -1154,14 +1154,24 @@ .loc +ation = loc +ation %0A%09%09%7D @@ -1883,16 +1883,21 @@ text.loc +ation ) %7B%0A%09%09 %09 @@ -1918,16 +1918,21 @@ text.loc +ation )%0A%09%09 %09%09.
de8ff6818b4ec6b04641d1166be2f2914f835cc3
fix late WAYLAND_DISPLAY env for forked child
local/src/DesktopShellAppsController.js
local/src/DesktopShellAppsController.js
'use strict' const util = require('util') const execFile = util.promisify(require('child_process').execFile) const WebSocket = require('ws') module.exports = class DesktopShellAppsController { /** * @param request * @param socket * @param head * @param {ShimSession}shimSession * @return {DesktopShel...
JavaScript
0.000001
@@ -3379,16 +3379,69 @@ ss.env)%0A + childEnv.WAYLAND_DISPLAY = this._waylandSocket%0A co @@ -3495,24 +3495,16 @@ e, %5B%5D, %7B -%0A env: ch @@ -3513,70 +3513,11 @@ dEnv -%0A %7D)%0A childEnv.WAYLAND_DISPLAY = this._waylandSocket + %7D) %0A
70451658e499184b13829b58d133acb44398f1af
Move event binding into its own method so it can be extended
backbone.list-view.js
backbone.list-view.js
/* General purpose list view * Expects a Backbone collection and a itemView (name of a Backbone view resembling a li-row) */ Backbone.ListView = Backbone.View.extend({ tagName: 'ul', initialize: function(options){ this.itemView = options.itemView; this.itemViews = []; //Events this.listen...
JavaScript
0
@@ -285,16 +285,72 @@ = %5B%5D;%0A%0A + this.eventBinder();%0A %7D,%0A eventBinder: function()%7B%0A //Ev
8fab7bf192c75c40a43c7b4043fbfda748dd9201
use node-mysql driver if NODE_MYSQL1 variable is set
test/common.js
test/common.js
module.exports.createConnection = function() { // hrtime polyfill for old node versions: if (!process.hrtime) process.hrtime = function(start) { start = [0, 0] || start; var timestamp = Date.now(); var seconds = Math.ceil(timestamp/1000); return [seconds - start[0], (timestamp-seconds*10...
JavaScript
0.000002
@@ -386,59 +386,47 @@ ');%0A -%0A -// uncomment to benchmark against mysql:%0A //var +if (process.env.BENCHMARK_MYSQL1)%0A dri
edb7a7982d8387a3cb89bda79d0d50f2a7c35334
Fix config tests
test/config.js
test/config.js
var t = require('tap'); var path = require('path'); var mkdirp = require('mkdirp'); var config = require('../packages/mendel-config/config'); var origEnv = process.env.NODE_ENV; var where; var opts; mkdirp.sync('/tmp/1/2/3/'); process.chdir('/tmp/'); t.contains(config('./1/2/3/').basedir, '1/2/3', "recurses an...
JavaScript
0.000004
@@ -2054,33 +2054,8 @@ ain' -, transform: %5B'reactify'%5D %7D,%0A @@ -3035,33 +3035,8 @@ ain' -, transform: %5B'reactify'%5D %7D,%0A
d29d2a1f1703bd8b09aa63167f0296a1c8d21b83
fix testing error in old node
test/config.js
test/config.js
const assert = require('assert'); const { resolveServerAddr, getConfig } = require('../lib/config'); const ip = require('ip'); describe('config', () => { describe('resolveServerAddr', () => { it('should keep the ivp4 `serverAddr`', done => { const config = { proxyOptions: { serverAddr: '1...
JavaScript
0.000001
@@ -37,40 +37,9 @@ nst -%7B resolveServerAddr, getConfig %7D +c = r @@ -90,16 +90,93 @@ 'ip');%0A%0A +const resolveServerAddr = c.resolveServerAddr%0Aconst getConfig = c.getConfig%0A%0A describe
e4d8d1eb0189c1f75bdf94c8ab584f08e6a8f23e
fix #1679 some more
web-src/examples/header.js
web-src/examples/header.js
!function() { var path = document.location.pathname; var dir = /^.*\/([a-z]+)\//.exec(path)[1]; var filename = path.substring(path.lastIndexOf('/')+1); document.write([ '<div id="header">', '<a href="//dc-js.github.io/dc.js"><img src="../dc.logo.png" style="float:left; padding-right: 1em...
JavaScript
0
@@ -516,14 +516,15 @@ ree/ -master +develop /web
3d178759af09b81dfe4f5646c79ba52bf91b2d3c
Update gridlines.js
quicktests/gridlines.js
quicktests/gridlines.js
var quicktest = function(svg, data, Plottable) { console.log(data); var xScale = new Plottable.Scale.Linear(); var xAxis = new Plottable.Axis.XAxis(xScale, "bottom"); varyScale = new Plottable.Scale.Linear(); var yAxis = new Plottable.Axis.YAxis(yScale, "left").tickLabelPosition("bottom"); yAxis.tickForm...
JavaScript
0.000001
@@ -174,16 +174,17 @@ ;%0A%0A var + yScale =
63944bad7372796023ab74ec400d537c125fe675
完成插入,删除,添加,删除整张表的功能
stone/数据结构和算法/列表/list.js
stone/数据结构和算法/列表/list.js
function List() { this.listSize = 0; // this.pos = 0; this.dataStore = []; // this.clearList = clearList; this.find = find; this.toString = toString; // this.insert = insert; this.append = append; this.remove = remove; // this.front = front; // this.end = end; // this.prev = prev; // this.nextElement = nex...
JavaScript
0
@@ -32,19 +32,16 @@ e = 0;%0A%09 -// this.pos @@ -69,19 +69,16 @@ = %5B%5D;%0A%09 -// this.cle @@ -144,19 +144,16 @@ tring;%0A%09 -// this.ins @@ -928,16 +928,316 @@ ore;%0A%7D%0A%0A +function insert(element,after) %7B%0A%09var insertPos = this.find(after);%0A%09if (insertPos %3E -1) %7B%0A%09%09this.dataSto...
96e985fe6f5cd5a403b7faedd0b529140613794e
Fix prod scssLoader
web/conf/webpack.config.js
web/conf/webpack.config.js
var path = require("path"); var webpack = require("webpack"); var ExtractTextPlugin = require("extract-text-webpack-plugin"); var Clean = require("clean-webpack-plugin"); var git = require('git-rev-sync'); require('es6-promise').polyfill(); // BASE APP DIR var root_dir = path.resolve(__dirname, ".."); // FUNCTION TO ...
JavaScript
0.000001
@@ -4146,185 +4146,8 @@ %7D,%0A - %7B%0A test: /%5C.scss$/,%0A loaders: options.prod ? scssLoaders : %5B%22style%22, %22css?sourceMap%22, %22sass?sourceMap%22%5D%0A %7D,%0A @@ -5317,16 +5317,276 @@ %7D;%0A%0A + var scssLoader = %7B%0A ...
90b02e51fec9935b89d47ee728b0dc5f3fa4821c
use show_flash helper to display errors
lib/assets/javascripts/spree/backend/solidus_braintree.js
lib/assets/javascripts/spree/backend/solidus_braintree.js
//= require "vendor/braintree-2.9.0" var getClientToken = function(onSuccess) { return Spree.ajax({ url: "/api/payment_client_token", type: "post", error: function(serverResponse) { alert("You done goof'd! Go talk to allie!"); }, success: function(data) { onSuccess(data); } }); ...
JavaScript
0
@@ -31,16 +31,99 @@ 2.9.0%22%0A%0A +Spree.routes.payment_client_token_api = Spree.pathFor(%22api/payment_client_token%22)%0A%0A var getC @@ -192,14 +192,21 @@ rl: -%22/api/ +Spree.routes. paym @@ -221,17 +221,20 @@ nt_token -%22 +_api ,%0A ty @@ -242,12 +242,12 @@ e: %22 -post +POST %22,%0A @@ -269,74 +269...
8f27389c06650a64a3b334a212b50c7c5e4f7abf
Move sentry setup
webpack.renderer.config.js
webpack.renderer.config.js
"use strict"; const path = require("path"); const packageJSON = require(`${"./package.json"}`); const productName = packageJSON.productName; require("dotenv").config(); const webpack = require("webpack"); const outputDir = path.join(__dirname, "output"); const HtmlWebpackPlugin = require("html-webpack-plugin"); c...
JavaScript
0.000001
@@ -2526,59 +2526,8 @@ )),%0A - new webpack.EnvironmentPlugin(%5B%22SENTRY_DSN%22%5D),%0A @@ -3363,16 +3363,17 @@ -map%22;%0A%0A +%0A render @@ -3391,24 +3391,75 @@ ugins.push(%0A + new webpack.EnvironmentPlugin(%5B%22SENTRY_DSN%22%5D),%0A new webp
c9f014708bf84ade72f537bacd79f1a00d9b4765
remove require('fs')
parser.js
parser.js
var express = require('express'); var fs = require('fs'); var request = require('request'); var cheerio = require('cheerio'); var app = express(); app.get('/scrape', function(req, res){ // just a static test url, later the client will send a week and a year url = "https://lsf.hft-stuttgart.de/qisserver/rd...
JavaScript
0.000076
@@ -31,37 +31,8 @@ ');%0A -var fs = require('fs');%0A var @@ -1573,17 +1573,16 @@ e array. - %0A
a46d9b6f24d88fe66b1ba233cbe2dbf6206a2177
fix view in store link
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/site/public/theme/defaultTheme.js
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/site/public/theme/defaultTheme.js
const APP_CONTEXT = '/publisher'; const STORE_APP_CONTEXT = '/store'; const Configurations = { themes: { light: { palette: { primary: { // light: will be calculated from palette.primary.main, main: '#15b8cf', // dark: wi...
JavaScript
0
@@ -55,21 +55,25 @@ EXT = '/ -store +devportal ';%0Aconst
1c110703b4e042510e4347d47bef359e218d4ad9
fix attach pdf test
docker_e2e/consol_cm_test_suites/test_attach_pdf/test_case_1/tc_pdf_attachment.js
docker_e2e/consol_cm_test_suites/test_attach_pdf/test_case_1/tc_pdf_attachment.js
/* * Sakuli - Testing and Monitoring-Tool for Websites and common UIs. * * Copyright 2013 - 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
JavaScript
0
@@ -2009,11 +2009,12 @@ ame/ -532 +1155 %22;%0A
85236a2318085256a15526be5aead19a2dbea989
Remove S in path
player.js
player.js
var _ = require('lodash') var inherits = require('inherits') var aabb = require('aabb-2d') var math = require('mathjs') var transform = require('./transform.js') var circle = require('./geo/circle.js') var Collision = require('./collision.js') var Fixmove = require('./fixmove.js') var Automove = require('./automove.js'...
JavaScript
0.000006
@@ -1265,21 +1265,16 @@ p: %5B'A', - 'S', 'D'%5D, %0A @@ -1296,13 +1296,8 @@ 180, - 180, 180 @@ -1317,11 +1317,8 @@ %5B8, - 8, 8%5D,
ef2662f87896338ad1505b9670a6fdd827cd2da8
Move function out
player.js
player.js
l = console.log(); function toNum(c) { switch(c) { case 'J': return 11; break; case 'Q': return 12; break; case 'K': return 13; break; case 'A': return 14; break; default: ...
JavaScript
0.000006
@@ -344,69 +344,16 @@ %0A%7D%0A%0A -module.exports = %7B%0A%0A VERSION: %22Jofogas's Zsozsobot v3%22,%0A%0A +function com @@ -366,26 +366,16 @@ vg_stack -: function (players @@ -374,26 +374,24 @@ (players) %7B%0A - var sum @@ -395,18 +395,16 @@ um = 0;%0A - for @@ -432,18 +432,16 @@ ...
8f7cffeecdd79bb6da0070577c1b50192a253c73
Update eregistrations package
node_modules/eregistrations/client/legacy/error-logger.js
node_modules/eregistrations/client/legacy/error-logger.js
'use strict'; var nonReportableMessages = {}; nonReportableMessages['Script error.'] = true; nonReportableMessages['Script error'] = true; var nonReportableCodes = {}; nonReportableCodes.XHR_REQUEST_ERRORED = true; nonReportableCodes.XHR_REQUEST_ABORTED = true; var onError = function (message, source, line, column, ...
JavaScript
0
@@ -2196,16 +2196,190 @@ return;%0A +%09%09if (error && error.stack) %7B%0A%09%09%09if ((source.slice(-3) !== '.js') && (error.stack.indexOf('addHighlightToIndex@') !== -1)) %7B%0A%09%09%09%09// iOS interface errors%0A%09%09%09%09return;%0A%09%09%09%7D%0A%09%09%7D%0A %09%7D%0A%0A%09var
46d146d6927da2b9ab046b1b09836bb5c74b8ae2
resolve conflict of feature merge master
components/radio/__tests__/group.test.js
components/radio/__tests__/group.test.js
import React from 'react'; import { mount, render } from 'enzyme'; import { fireEvent, render as testLibRender } from '@testing-library/react'; import Radio from '..'; import { render, fireEvent } from '../../../tests/utils'; describe('Radio Group', () => { function createRadioGroup(props) { return ( <Rad...
JavaScript
0.000002
@@ -24,125 +24,8 @@ t';%0A -import %7B mount, render %7D from 'enzyme';%0Aimport %7B fireEvent, render as testLibRender %7D from '@testing-library/react';%0A impo @@ -7266,16 +7266,9 @@ %7D = -testLibR +r ende
78c26a44f91057cc43b4ff147b98169010a5a953
Add configurable tint color option, defaults to [0,0,0,0]
gl-css3d.js
gl-css3d.js
'use strict'; var matrixToCSS = require('matrix-to-css'); var mat4 = require('gl-mat4'); var createMesh = require('gl-mesh'); var glslify = require('glslify'); module.exports = function(element, opts) { return new GLCSS3D(element, opts); }; function GLCSS3D(element, opts) { if (!element) throw new Error('gl-css3...
JavaScript
0
@@ -1417,16 +1417,172 @@ ht %7C%7C 2; +%0A //this.tint = opts.tint %7C%7C %5B0.5,0,0,0%5D; // reddish tint, etc.. useful? (note gl blending mode)%0A this.tint = opts.tint %7C%7C %5B0,0,0,0%5D; // fully transparent %0A%0A this @@ -2295,23 +2295,22 @@ %5C%0A -varying +uniform vec4 -vC +c olor @@ -2356,32 +235...
e5b09f1c4b6a141617b1aca56e2f6cfc5d4cbc64
fix radio_button
lib/dedalo/component_radio_button/js/component_radio_button.js
lib/dedalo/component_radio_button/js/component_radio_button.js
"use strict"; /** * COMPONENT_RADIO_BUTTON * * */ var component_radio_button = new function() { this.radio_button_objects = {} this.save_arguments = {} /** * INIT * @return */ this.init = function( options) { const self = this if(options.mandatory && options.mandatory===true) { self....
JavaScript
0.000027
@@ -767,32 +767,34 @@ G===true) %7B%0A%09%09%09%09 +// console.log(%22%5Bco
1c3b756a32927ebd8c3dceef05b765494de21049
Add failing test where getting Path#strokeBounds on a path without a stroke returns the wrong bounds.
test/tests/Path_Bounds.js
test/tests/Path_Bounds.js
module('Path Bounds'); test('path.bounds', function() { var path = new Path([ new Segment(new Point(121, 334), new Point(-19, 38), new Point(30.7666015625, -61.53369140625)), new Segment(new Point(248, 320), new Point(-42, -74), new Point(42, 74)), new Segment(new Point(205, 420.94482421875), new Point(66.78906...
JavaScript
0
@@ -2373,8 +2373,588 @@ %7D');%0A%7D); +%0A%0Atest('path.strokeBounds on path without stroke', function() %7B%0A%09var path = new Path(%5B%0A%09%09new Segment(new Point(121, 334), new Point(-19, 38), new Point(30.7666015625, -61.53369140625)),%0A%09%09new Segment(new Point(248, 320), new Point(-42, -74), new Point(42,...
cfd06ba4e9aa829824722e137444b63e623b8761
oops. duplicate describe
packages/cli/bildit-here/test/e2e/local-dir-no-publish.test.js
packages/cli/bildit-here/test/e2e/local-dir-no-publish.test.js
'use strict' const path = require('path') const {describe, it} = require('mocha') const {expect} = require('chai') const {exec} = require('child_process') const {promisify: p} = require('util') const {fileContents, writeFile} = require('../utils/file-utils') const {setupFolder, setupGitRepo} = require('../utils/setup'...
JavaScript
1
@@ -1679,47 +1679,8 @@ %7D)%0A - %7D)%0A describe('with git', () =%3E %7B %0A
48fcd0782c0a915f2306c2ce771b384fe5e15502
Make newsletter checkbox disabled by default
packages/daheim-app-ui/src/components/auth/RegistrationPage.js
packages/daheim-app-ui/src/components/auth/RegistrationPage.js
import React, {Component, PropTypes} from 'react' import {push} from 'react-router-redux' import {connect} from 'react-redux' import {Link} from 'react-router' import {injectIntl} from 'react-intl' import {FormattedMessage} from 'react-intl' import LoadingPanel from '../LoadingPanel' import {register} from '../../acti...
JavaScript
0
@@ -757,19 +757,20 @@ letter: -tru +fals e,%0A a
ae28f6301ed91714510c4393b736185f285358c0
revert accidently pushed commit
packages/netlify-cms-backend-git-gateway/src/implementation.js
packages/netlify-cms-backend-git-gateway/src/implementation.js
import GoTrue from 'gotrue-js'; import jwtDecode from 'jwt-decode'; import { get, pick, intersection } from 'lodash'; import { unsentRequest } from 'netlify-cms-lib-util'; import { GitHubBackend } from 'netlify-cms-backend-github'; import { GitLabBackend } from 'netlify-cms-backend-gitlab'; import { BitBucketBackend, A...
JavaScript
0
@@ -2872,587 +2872,25 @@ hen( -async res =%3E -%7B%0A const contentType = res.headers.get('Content-Type');%0A if (contentType !== 'application/json' && contentType !== 'text/json') %7B%0A throw new APIError(%60Your Git Gateway backend is not returning valid settings. Please make sure it...
e314af16167bdc59fbc3fde4b3958d945eeb1b47
use @webex loading screen
packages/node_modules/@ciscospark/widget-meet/src/container.js
packages/node_modules/@ciscospark/widget-meet/src/container.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import classNames from 'classnames'; import {compose} from 'recompose'; import Ringtone, { RINGTONE_TYPE_RINGBACK, RINGTONE_TYPE_INCOMING } from '@ciscospark/react-component-ringtone'; import LoadingScr...
JavaScript
0.000001
@@ -320,34 +320,29 @@ reen from '@ -ciscospark +webex /react-compo
d438362025368bd80054cfdd02a67de15409aa19
remove console.log statement
packages/redux/actionCreatorDispatcher/mixin.runtime-common.js
packages/redux/actionCreatorDispatcher/mixin.runtime-common.js
const React = require('react'); const PropTypes = require('prop-types'); const { matchPath, withRouter } = require('react-router-dom'); const { Mixin } = require('@untool/core'); const Dispatcher = withRouter( // eslint-disable-next-line react/display-name class extends React.Component { static propTypes = { ...
JavaScript
0.000011
@@ -1795,40 +1795,8 @@ %5D;%0A%0A - console.log(this.options);%0A%0A
b25d692c535c11eaa52683a9a5c22d7687d831cb
Fix import
remoteappmanager/static/js/home/views/application_list_view.js
remoteappmanager/static/js/home/views/application_list_view.js
define([ 'urlutils', 'vue' ], function (urlutils, Vue) { 'use strict'; /* Create application_list ViewModel (will next be wrapped in a main ViewModel which will contain the applicationListView and the applicationView) */ var applicationListView = new Vue({ el: '#applist', d...
JavaScript
0.000002
@@ -23,16 +23,42 @@ ',%0A ' +../../components/vue/dist/ vue'%0A%5D,
205b9797493d8fcc0a2b7ee35513d8016d3136de
fix for file path
server/utils/render.js
server/utils/render.js
"use strict"; import q from "q"; import {match, RouterContext} from "react-router"; import React from "react"; // eslint-disable-line no-unused-vars import ReactDOM from "react-dom/server"; import Html from "../../client/assets/js/components/Html"; import appRoutes from "../../client/assets/js/routes/app"; import em...
JavaScript
0.000018
@@ -193,19 +193,19 @@ import H -tml +TML from %22. @@ -238,19 +238,19 @@ onents/H -tml +TML %22;%0A%0Aimpo @@ -545,19 +545,19 @@ arkup(%3CH -tml +TML %7B...par @@ -1540,13 +1540,12 @@ .promise;%0A%7D%0A -%0A
2bae1718bf805dc6274260bc32e3e66ab1da4a67
introduce options
js/inverted-pendulum-view.js
js/inverted-pendulum-view.js
(function($){ var View = $.InvertedPendulumView = function(parent, problem){ this.parent = parent; this.problem = problem; this.update(); }; View.prototype.update = function(){ var container = this.container(); new CanvasView(container, this.problem); }; View.prototype.container = function(){ ...
JavaScript
0.00005
@@ -638,41 +638,201 @@ );%0A%09 -ctx.strokeRect(0, 0, 640, 479 +var options = %7B%0A%09 'width': 640,%0A%09 'height' : 480,%0A%09 'horizon': 10,%0A%09 'wheel': 5,%0A%09 'thickness': 2,%0A%09 'length': 100,%0A%09%7D%0A%09ctx.strokeRect(0, 0, options.width, options.height );%0A%0A +%0A %09ctx @@ -862...
ebdf17018e0fa7072ce43bba726a0e3358ec501f
Update app.js
nodejs_app/app.js
nodejs_app/app.js
var http = require12345('http'); var server = http12we3421.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World\n"); }); server.listen(8000); console.log("Server is running at http://127.0.0.1:8000/");
JavaScript
0.000002
@@ -15,13 +15,8 @@ uire -12345 ('ht @@ -43,16 +43,8 @@ http -12we3421 .cre
939568a7470c9a4c4e3dfb3f674f35bf7b7565a1
fix segments page
js/segments/segmentsState.js
js/segments/segmentsState.js
import segmentsTemplate from './segmentsTemplate.html'; import segments from './segments'; export default function ($stateProvider) { $stateProvider.state('segments', { parent: 'main', url: '/segments', params: { }, controller: ['$scope', ($scope) => { $scope.segments = ...
JavaScript
0.000001
@@ -188,10 +188,14 @@ t: ' +ng-ad m -a in',
3ec2c1bcfad69536069e581d5b6c1e2e769af9bf
Revert "site: use cdn to improve performance, close: #3646"
site/bisheng.config.js
site/bisheng.config.js
const path = require('path'); const CSSSplitWebpackPlugin = require('css-split-webpack-plugin').default; function pickerGenerator(module) { const tester = new RegExp(`^docs/${module}`); return (markdownData) => { const filename = markdownData.meta.filename; if (tester.test(filename) && !/\/demo$/.t...
JavaScript
0
@@ -582,74 +582,8 @@ %5D,%0A - root: 'https://cdn.rawgit.com/ant-design/ant-design/gh-pages/',%0A la
40b0edd18b6da43adbb43b2dc807a0a6e73d1d70
Change param name `key` to `url`
src/Layers/HeatMapFeatureLayer/HeatMapFeatureLayer.js
src/Layers/HeatMapFeatureLayer/HeatMapFeatureLayer.js
L.esri.Layers.HeatmapFeatureLayer = L.esri.Layers.FeatureManager.extend({ /** * Constructor */ initialize: function (url, options) { L.esri.Layers.FeatureManager.prototype.initialize.call(this, url, options); options = L.setOptions(this, options); this._cache = {}; this._active = {}; ...
JavaScript
0.000002
@@ -2147,35 +2147,35 @@ ayer = function( -key +url , options)%7B%0A re @@ -2209,35 +2209,35 @@ mapFeatureLayer( -key +url , options);%0A%7D;%0A%0A @@ -2274,19 +2274,19 @@ unction( -key +url , option @@ -2340,11 +2340,11 @@ yer( -key +url , op @@ -2333,28 +2333,29 @@ atureLayer(url, options);%0A%7D; +%0A
06397565a74823970681d297329f4bab7b688848
fix frontend problem
static/chat.js
static/chat.js
$(function() { // When we're using HTTPS, use WSS too. var ws_scheme = window.location.protocol == "https:" ? "wss" : "ws"; var chatsock = new ReconnectingWebSocket(ws_scheme + '://' + window.location.host + "/chat" + window.location.pathname); chatsock.onmessage = function(message) { var d...
JavaScript
0.000056
@@ -641,18 +641,10 @@ ) -%0A %0A + @@ -1274,32 +1274,33 @@ false;%0A %7D);%0A +%0A $(%22#identifi @@ -1586,32 +1586,33 @@ false;%0A %7D);%0A +%0A $(%22#jugdemen @@ -2200,32 +2200,33 @@ false;%0A %7D);%0A +%0A $(%22#save%22).o @@ -2505,32 +2505,33 @@ false;%0A %7D);%...
9f181b7dcb5219f3ecc5a91a9476840411d16b1c
Make key length dynamic
static/game.js
static/game.js
'use strict'; var GameController = function(board, passBtn, key, black, white) { var notice; var title = black + ' vs. ' + white + ' - Go'; var cells = board.getElementsByClassName('cell'); var title = document.getElementById('title'); for (var i=0; i<cells.length; i++) { cells[i].addEventL...
JavaScript
0.001603
@@ -489,18 +489,30 @@ (key) + +key.length + 1 -0 , 5);%0A
f68f71629b0e45149569cb1bcce461e6cd119c10
add unit tests which fail for the bug
src/common/__tests__/timeUtils/timeUtils-getValidMoment-test.js
src/common/__tests__/timeUtils/timeUtils-getValidMoment-test.js
jest.dontMock('../../timeUtils.js'); var moment = require('moment'); require('jasmine-check').install(); describe('timeUtils.getValidMoment', function() { var timeUtils; beforeEach(function() { timeUtils = require('../../timeUtils.js'); }); describe('getValidMoment', function() { it...
JavaScript
0
@@ -3429,14 +3429,8 @@ 30', - true, tru
15db6ce0ca626b3f2ec9127429dd00f44a5a1346
Work around spotify importer crashes
scripts/SpotifyImporter.js
scripts/SpotifyImporter.js
function SpotifyImporter() { this.wait = 200; this.longWait = 0; this.spotifyIds = []; this.added = 0; this.max = 0; this.callbackUpdate = null; this.callbackDone = null; this._cancel = false; this.cancel = function() { this._cancel = true; }; function dummyFunction() { } this.start = function(...
JavaScript
0
@@ -2497,36 +2497,131 @@ qXHR -);%0A%09%09%09%09alert(jqXHR.statusTex +.statusText);%0A%09%09%09%09self.spotifyIds.shift();%0A%09%09%09%09setTimeout(function() %7B self.addFromSpotifyToPlaylist(playlist); %7D, self.wai t);%0A @@ -3477,24 +3477,49 @@ unction() %7B%0A + var self = this;%0A %09%09if (this.s @@ ...
295988149e5bbe0d996d71f0752aee7e0e9f2222
Improve the stats output
stats/index.js
stats/index.js
'use strict'; // Based on gulp-size by @sindresorhus var chalk = require('chalk'); var gzipSize = require('gzip-size'); var mixIn = require('mout/object/mixIn'); var prettyBytes = require('pretty-bytes'); module.exports = function (options) { options = mixIn({ showFiles: true, gzip: true }, o...
JavaScript
0.999989
@@ -283,28 +283,8 @@ les: - true,%0A gzip: tru @@ -375,17 +375,49 @@ var -t +rawTotalSize = 0;%0A var gzT otalSize @@ -557,16 +557,36 @@ + gzipSize(node.data, functio @@ -591,21 +591,17 @@ ion -finish (err, -s +gzS ize) @@ -654,40 +654,123 @@ me, -s +rawS ize: -size %7D;%0A%...
c9ae02275b2c388bb5d58571b0b155a3ab60ea7e
Fix IE issues.
draganddrop.js
draganddrop.js
/** * Created with IntelliJ IDEA. * User: Ganaraj.Pr * Date: 11/10/13 * Time: 11:27 * To change this template use File | Settings | File Templates. */ angular.module("ngDragDrop",[]) .directive("uiDraggable", [ '$parse', '$rootScope', function ($parse, $rootScope) { return ...
JavaScript
0
@@ -1110,19 +1110,14 @@ ata( -'drag/text' +%22Text%22 , se @@ -1200,24 +1200,24 @@ dChannel);%0A%0A - @@ -1217,32 +1217,212 @@ %7D);%0A%0A + //For IE%0A element.bind(%22selectstart%22,function() %7B%0A this.dragDrop();%0A r...
2dafe13cbaea786ea24bbcc8266e8e307777f0d4
test changes
drawCompany.js
drawCompany.js
// HTML and CSS_style to go here. // init src="d3/d3.js" // size of the captable.svg bars var w = 500; var h = 100; var barPadding = 1; // insert source captable data here // create SVG element for making a bar chart var svg = d3.select("body") .append("svg") .attr("width", w) .attr("height", h); sv...
JavaScript
0.000001
@@ -1192,8 +1192,54 @@ hite%22);%0A +%0A%0Ahello i am everyone is seeing the changes! %0A
8217ae348bff9eccf28252473744a62e37c18e53
Add transition to page window resizing
sashimi-webapp/src/logic/inputHandler/DocumentNavigator/core.js
sashimi-webapp/src/logic/inputHandler/DocumentNavigator/core.js
import unitConverter from 'src/helpers/unitConverter'; const guard = { translateY(translateY, parentEle) { const bottomLimit = (() => { const numberOfElement = parentEle.childNodes.length; const pageHeight = unitConverter.get(parentEle.childNodes[0].style.height, 'px', false); const pageMargin ...
JavaScript
0.000001
@@ -1159,16 +1159,52 @@ h = 60;%0A + const transitionDuration = 500;%0A // R @@ -1235,16 +1235,94 @@ sformer%0A + this.el.container.style.transition = %60transform $%7BtransitionDuration%7Dms%60;%0A this @@ -1400,24 +1400,122 @@ element %7D);%0A + setTimeout(() =%3E %7B%0A this.el.container.s...
8e29a90ff787d0c963703254f19d12bfb1d5c667
update sort order
app/js/actions/packages.js
app/js/actions/packages.js
import Parse from './parseConfig'; import * as actionTypes from '../util/actionsTypes'; import * as notificationActions from './notification'; function requestPackages() { return { type: actionTypes.REQUEST_PACKAGES, }; } function receivePackages(packages) { return { type: actionTypes.RECEIVE_PACKAGES, ...
JavaScript
0.000001
@@ -2087,24 +2087,59 @@ ('vendor');%0A + query.descending(%22createdAt%22);%0A query.fi
cc194ec4984a0a6711cd9ed9833b241d5ea2e4a9
remove wallet docs phrase
app/js/wallet/WalletApp.js
app/js/wallet/WalletApp.js
import PropTypes from 'prop-types' import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import SecondaryNavBar from '@components/SecondaryNavBar' import Navbar from '@components/Navbar' function mapStateToProps() { return { } } function mapDis...
JavaScript
0.004251
@@ -1230,158 +1230,8 @@ ong%3E - See %3Ca href=%22https://docs.blockstack.org/org/wallet-install.html%22 target=%22_blank%22%3Ethe Stacks Wallet software documentation%3C/a%3E for more information. %0A
f594e5796ff37a87c92cb507d3af823b8724b6b4
check if a moment is after another moment
playground.js
playground.js
function onOpen() { // get today's date var sheet = SpreadsheetApp.getActiveSheet(); var data = sheet.getRange(2, 1); Logger.log(data); // check if a moment is before another moment // generate new sheet // var moment = Moment.moment(); // moment.locale('ja', { // weekdays: ["日曜日","月曜日","火曜日","水曜日","木曜日","...
JavaScript
0.000135
@@ -875,47 +875,451 @@ var -moment = Moment.moment(values%5B0%5D%5B0%5D);%0A%09 +today = Moment.moment();%0A%09var yesterday = Moment.moment(values%5B0%5D%5B0%5D);%0A%0A%09if (today.isAfter(yesterday, 'day')) %7B%0A%09%09// inset new date%0A%09%7D%0A%0A%0A%09// moment.locale('ja', %7B%0A%09// %09weekdays: %5B%22%E6%9...
2a619bee4b99eeeab583553905f53a08a472e39e
Fix imports in Image helper
helper/Image.js
helper/Image.js
var React = require('react-native') var { Image, Dimensions, } = React var {width} = Dimensions.get('window') var baseStyle = { backgroundColor: 'transparent', } var ResizableImage = React.createClass({ getInitialState: function() { return { // set width 1 is for preventing the warning // You ...
JavaScript
0.000001
@@ -1,43 +1,36 @@ -var +import React -= require('react-native')%0Avar +from 'react'%0Aimport %7B%0A @@ -55,21 +55,30 @@ ns,%0A%7D = -R +'r eact +-native' %0A%0Avar %7Bw
8d362700afeaa78d1741b91c7bf9f31553debfa3
Change div to p when creating new logs
public/src/js/logger.js
public/src/js/logger.js
/** * public/src/js/logger.js - delish * * Licensed under MIT license. * Copyright (C) 2017 Karim Alibhai. */ const util = require('util') , debounce = require('debounce') let currentLog = document.querySelector('.lead') , nextLog = document.querySelector('.lead.next') /** * Updates the current log stat...
JavaScript
0
@@ -881,11 +881,9 @@ nt(' -div +p ')%0A
34c7c0b20951b77ddee5b541bb6f3ff67556a4a1
Remove 'only'
interfaces/associations/manyToMany/find.populate.where.js
interfaces/associations/manyToMany/find.populate.where.js
var assert = require('assert'), _ = require('lodash'); describe('Association Interface', function() { describe.only('n:m association :: .find().populate([WHERE])', function() { ///////////////////////////////////////////////////// // TEST SETUP //////////////////////////////////////////////////// ...
JavaScript
0.998818
@@ -111,21 +111,16 @@ describe -.only ('n:m as @@ -1501,13 +1501,8 @@ it -.only ('sh @@ -1856,24 +1856,126 @@ %5D.taxis));%0A%0A + console.log('%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5%C3%A5...
6f6efd7f664efdc0f67d551785849b974c74874f
Change server config to make Redhat Openshift happy
sports-roster-server.js
sports-roster-server.js
var express = require('express'); var fs = require("fs"); var app = express(); function readJsonFile(file){ var filepath = __dirname + '/' + file; var file = fs.readFileSync(filepath, 'utf8'); return JSON.parse(file); } var jsonFiles = { 'nfl': readJsonFile('./nfl.json'), 'nba': readJsonFile('./nba.j...
JavaScript
0
@@ -1348,114 +1348,202 @@ rver - = app.listen(8081, function () %7B +_port = process.env.OPENSHIFT_NODEJS_PORT %7C%7C 8080; %0D%0A -%09 var - host = server -. +_ip_ address -().address + = process.env.OPENSHIFT_NODEJS_IP %7C%7C '127.0.0.1'; %0D%0A -%09 var +server = app.listen(server_ port - = +, server -. ...
d1ee1016fa123893dc9c44856112f6468b32561d
Add the `skipLibCheck` option to TypeScript compiler settings (closes #1537) (#1733)
src/compiler/test-file/formats/typescript/compiler.js
src/compiler/test-file/formats/typescript/compiler.js
import path from 'path'; import OS from 'os-family'; import APIBasedTestFileCompilerBase from '../../api-based'; import ESNextTestFileCompiler from '../es-next/compiler'; const RENAMED_DEPENDENCIES_MAP = new Map([['testcafe', APIBasedTestFileCompilerBase.EXPORTABLE_LIB_PATH]]); export default class TypeScriptTestFil...
JavaScript
0
@@ -1016,16 +1016,59 @@ ck: true +,%0A skipLibCheck: true %0A
fd20a18d7fdbb6858b3354e6e26074c5c2363aaa
Fix typo
www/locale-notification.js
www/locale-notification.js
/** * locale-notification.js * Cordova LocalNotification Plugin * * Created by Sebastian Katzer (github.com/katzer) on 10/08/2013. * Copyright 2013 Sebastian Katzer. All rights reserved. * GPL v2 licensed */ var LocalNotification = function () { }; LocalNotification.prototype = { /** * Fügt eine...
JavaScript
0.999999
@@ -473,16 +473,17 @@ e: + false,%0A @@ -504,16 +504,17 @@ sage: + '',%0A @@ -531,16 +531,17 @@ sAction: + true,%0A @@ -562,16 +562,17 @@ ion: + 'View',%0A @@ -589,16 +589,17 @@ badge: + 0,%0A @@ -617,24 +617,25 @@ id: + 0,%0A @@ -643,16 +643,17 @@ sound...
82766f36c1a6d064f7428c3dabc9814c33fb3f96
Update ses_sendbulktemplatedemail.js
javascript/example_code/ses/ses_sendbulktemplatedemail.js
javascript/example_code/ses/ses_sendbulktemplatedemail.js
/* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This fi...
JavaScript
0.000001
@@ -1,9 +1,6 @@ / -*%0A +/ Cop @@ -77,26 +77,12 @@ ed.%0A -%0A This file is l +// L icen @@ -105,428 +105,80 @@ ache - License, Version 2.0 (the %22License%22).%0A You may not use this file except in compliance with the License. A copy of%0A the License is located at%0A%0A http://aws.amazon.com/apache2...
15ba0fbe3e22f85a61bfae00481ec5ad18022e78
Remove set_route after optimization
frappe/core/doctype/file/file.js
frappe/core/doctype/file/file.js
frappe.ui.form.on("File", "refresh", function(frm) { if(!frm.doc.is_folder) { frm.add_custom_button(__('Download'), function() { var file_url = frm.doc.file_url; if (frm.doc.file_name) { file_url = file_url.replace(/#/g, '%23'); } window.open(file_url); }, "fa fa-download"); } var wrapper = frm....
JavaScript
0.000012
@@ -1067,46 +1067,8 @@ ));%0A -%09%09%09%09frappe.set_route(%22List%22, %22File%22);%0A %09%09%09%7D
21ed9a016659683d960d359050f4694f1fba4a23
fix so viewer method can work with drop-and-drag viewing
src/notebook/ipython_profiles/profile_narrative/kbase_templates/static/kbase/js/widgets/function_output/kbaseAbundanceDataTable.js
src/notebook/ipython_profiles/profile_narrative/kbase_templates/static/kbase/js/widgets/function_output/kbaseAbundanceDataTable.js
/** * KBase widget to display table of BIOM data */ (function($, undefined) { $.KBWidget({ name: 'AbundanceDataTable', version: '1.0.0', options: { id: null, ws: null, auth: null, name: 0 }, ws_url: window.kbconfi...
JavaScript
0.000001
@@ -94,28 +94,24 @@ t(%7B%0A - name: 'Abund @@ -126,24 +126,64 @@ Table',%0A + parent: %22kbaseAuthenticatedWidget%22,%0A vers @@ -196,24 +196,41 @@ 1.0.0',%0A + token: null,%0A opti @@ -245,20 +245,16 @@ - - id: null @@ -264,20 +264,16 @@ - - ...
8f9ae23cc287ba7e53362ede15f12107416503ec
Use same vis model as used in public pages
lib/assets/test/spec/cartodb/public/public_header.spec.js
lib/assets/test/spec/cartodb/public/public_header.spec.js
describe("Public pages header tests", function() { var view, $el, model; beforeEach(function() { $el = $('<header>').addClass("cartodb-public-header"); model = new cdb.open.AuthenticatedUser({ can_fork: false }); table = new cdb.admin.CartoDBTableMetadata({ name: 'test_table', geometry_types: ['...
JavaScript
0
@@ -96,21 +96,17 @@ ion() %7B%0A - %0A + $el @@ -1457,37 +1457,33 @@ ame: %22test%22 %7D);%0A - %0A + expect(view. @@ -1987,37 +1987,33 @@ ame: %22test%22 %7D);%0A - %0A + expect(view. @@ -2449,22 +2449,27 @@ new cdb. -admin. +open.Public Visualiz @@ -2521,41 +2521,8 @@ e_2%22 -, ta...
8a577eac357ff634ea8222b0e7c61a613a50a308
Enable filter by application ID
yarnitor/static/js/main.js
yarnitor/static/js/main.js
$(document).ready(function() { 'use strict'; var MAX_NAME_LENGTH = 50; var BANNER_HEIGHT = 160; // Prep templates located in the HTML var name_tmpl = $('#name_tmpl').html(); var progress_tmpl = $('#progress_tmpl').html(); var progress_container_tmpl = $('#progress_container_tmpl').html(); ...
JavaScript
0
@@ -5508,32 +5508,105 @@ %0A %7D,%0A + %7B%22data%22: %22id%22, %22title%22: %22Application ID%22, %22visible%22: false%7D,%0A %5D%0A %7D)
39847158592a17a0a3f8c45cf07a2631227c743d
update spec description
lib/core/authorizations/tests/user-authorizations-spec.js
lib/core/authorizations/tests/user-authorizations-spec.js
/*global availity, inject, describe, it, module, beforeEach, expect */ describe('avUserAuthorizations', function() { 'use strict'; var avUserAuthorizations; var $httpBackend; var fixtures = { valid: { "axiUserPermissions": [{"id": "452", "description": "Eligibility and Benefits Inquiry", "organiza...
JavaScript
0
@@ -940,36 +940,16 @@ %0A%0A it(' -avUserAuthorizations #toPermi
8ff820b0ddb0e1ccbc2f4db5ce8701ea7f1db3ad
update ascii banner
greasemonkey.js
greasemonkey.js
// ==UserScript== // @name hackernews|feed // @namespace https://github.com/CatherineZeng/hackernews-newsfeed // @author Anthony Pizzimenti // @author Catherine Zeng // @description Tired of your cluttered Facebook newsfeed? // @include https://www.facebook.com/* // @version 0.0.2 // @grant ...
JavaScript
0.000001
@@ -2904,16 +2904,18 @@ + %7C%5Cn%22 +%0A @@ -3002,32 +3002,33 @@ EEEEE DDDDDDD + %7C%5Cn%22 +%0A %22 @@ -3107,32 +3107,33 @@ DD DD + %7C%5Cn%22 +%0A %22 @@ -3212,32 +3212,33 @@ DD DD + %7C%5Cn%22 +%0A %22 @@ -3325,16 +3325,17 @@ DD + %7C%5Cn...
85aae837ec92b9d0b6881d5caaa17d7cab95d985
Fix relationship context for people
src/ggrc/assets/javascripts/components/people_list.js
src/ggrc/assets/javascripts/components/people_list.js
/*! Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> Created By: andraz@reciprocitylabs.com Maintained By: andraz@reciprocitylabs.com */ (function (can) { can.Component.extend({ tag: "people-list", ...
JavaScript
0.019134
@@ -3353,12 +3353,27 @@ xt: -null +destination.context ,%0A
5bc09e98e84fae4618486c05e513f6574989e636
Fix catching unwanted key combinations like a Ctrl+L instend of only "L" key.
roumen.js
roumen.js
var scaleHandler; if(/(rouming|maso)Show\.php/.test(location.href)) { var olderButton = document.querySelector('.roumingButton a[title="Starší obrázek"],.masoButton a[title="Starší obrázek"]'); var targetA = document.querySelector('td[height="600"] a'); targetA.href = olderButton.href; var targetImg = document.que...
JavaScript
0
@@ -1868,24 +1868,128 @@ ent. -keyCode == 39) %7B +altKey %7C%7C event.ctrlKey %7C%7C event.metaKey %7C%7C event.shiftKey) %7B%0A%09%09return;%0A%09%7D%0A%09if(event.keyCode == 39) %7B // right arrow key %0A%09%09b @@ -2254,16 +2254,34 @@ == 37) %7B + // left arrow key %0A%09%09butto @@ -2539,16 +2539,25 @@ == 76)...
3634c3aa0f22f7e7ce5888a387dbfab4d627181e
remove hardcoding at file upload
router.js
router.js
const googleVision = require('./controllers/googleVision'); module.exports = function(app) { app.get('/', function (req, res) { res.render('./public/index.html'); }) /** * Gets an binary image data as request, validates it as a PAN * and returns the extracted information. */ app.post("/api/uplo...
JavaScript
0
@@ -339,24 +339,26 @@ res) %7B%0A +// console.log( @@ -410,24 +410,26 @@ .body);%0A +// const imgDat @@ -477,16 +477,18 @@ a);%0A +// const ba
4a5b666618df49700a7c35ddfcd390c1bbcf8d95
comment out routes
routes.js
routes.js
/* --------------------- routes.js For web clients (http and https) you can define an optional RESTful mapping to help route requests to actions. If the client doesn't specify and action in a param, and the base route isn't a named action, the action will attempt to be discerned from this routes.js file. - routes re...
JavaScript
0
@@ -895,16 +895,19 @@ //////%0A%0A +// exports. @@ -921,11 +921,11 @@ = %7B%0A - %0A +// us @@ -927,24 +927,27 @@ users: %7B%0A +// get: %7B%0A @@ -937,32 +937,35 @@ %7B%0A// get: %7B%0A +// action: %22u @@ -999,20 +999,28 @@ ers%0A +// %7D%0A +// %7D,%0A -%0A +// us @@ -...
acab8ba417641bfda06819e495442dfa161f5375
change requested by laurin
routes.js
routes.js
var card_model = require('./models/modelCard'); var media_model = require('./models/modelMedia'); var deck_model = require('./models/modelDeck'); var crypto = require('crypto'); var fs = require('fs'); exports.get_all_cards = function(req, res, next){ card_model.find(function(err, docs){ if(err) return nex...
JavaScript
0
@@ -1330,24 +1330,58 @@ es.send( -filename +%7B'url': filename, 'media_type': file_type%7D );%0A %7D
51cb252f33dd39a65433e8c95c1f15320ede2a0f
Update EarthEngineTileSource usage, to work with latest API version.
modules/gui/frontend/src/app/home/map/earthEngineLayer.js
modules/gui/frontend/src/app/home/map/earthEngineLayer.js
import {map} from 'rxjs/operators' import {of} from 'rxjs' import {sepalMap} from './map' import _ from 'lodash' import ee from 'earthengine-api' import guid from 'guid' export default class EarthEngineLayer { constructor({layerIndex, bounds, mapId$, props, onProgress}) { this.layerIndex = layerIndex ...
JavaScript
0
@@ -639,50 +639,33 @@ rce( -'https://earthengine.googleapis.com/map', +%0A toMapId( this @@ -692,17 +692,34 @@ -) + )%0A )%0A%0A%0A %0A%0A @@ -3500,8 +3500,507 @@ %7D%0A%7D%0A +%0A%0Aconst toMapId = (mapid, token) =%3E %7B%0A const path = %60https://earthengine.googl...
2ff0913864790a456a38445b9ccfe4af1bbfd7c1
Use filter for create-next-app template (#10496)
packages/create-next-app/templates/default/pages/index.js
packages/create-next-app/templates/default/pages/index.js
import React from 'react' import Head from 'next/head' const Home = () => ( <div className="container"> <Head> <title>Create Next App</title> <link rel="icon" href="/favicon.ico" /> </Head> <main> <h1 className="title"> Welcome to <a href="https://nextjs.org">Next.js!</a> ...
JavaScript
0
@@ -1116,16 +1116,31 @@ .co/new? +filter=next.js& utm_sour
9aca7f90504724a9a91173ece31afaad7dc29c44
rearrange imports in Specimen
packages/styleguide/src/screens/Patterns/Modals/Modals.js
packages/styleguide/src/screens/Patterns/Modals/Modals.js
import React, { Component } from 'react'; import cx from 'classnames'; import dedent from 'dedent'; import Specimen from '../../../components/Specimen/Specimen'; import { D, H, T, C, Note, Placeholder } from '../../../components/Scaffold/Scaffold'; import { ModalAnimator, ModalWindow, ModalWindowTitle, ModalWi...
JavaScript
0.000002
@@ -339,16 +339,34 @@ Markdown +,%0A Modifiers as m %0A%7D from @@ -579,60 +579,8 @@ ss'; -%0Aimport %7B Modifiers as m %7D from '@appearhere/bloom'; %0A%0Aex
d924800cb224334f8091455ffe14df82b189ee88
Remove deprecated fieldset
lib/adapters/jugglingdb.js
lib/adapters/jugglingdb.js
"use strict"; var _ = require('lodash'), Promise = require('mpromise'), Fields = require('../forms/fields'), JugglingDB; module.exports = function (jugglingdb) { JugglingDB = jugglingdb; adaptModel(jugglingdb.AbstractClass); var models = {}; module.exports.getAdminUser = function (req) { ...
JavaScript
0.000002
@@ -1164,19 +1164,8 @@ lude -, fieldsets ) %7B%0A @@ -1670,59 +1670,8 @@ );%0A%0A - fieldsets.push(%7Bfields: Object.keys(fields)%7D);%0A
81e61557617c529c5072747cafb27898c3cbcddf
Fix noSort
src/directives/jf_multi_dropdown/jf_multi_dropdown.js
src/directives/jf_multi_dropdown/jf_multi_dropdown.js
class jfMultiDropdownController { constructor($scope, $filter, $element) { this.$scope = $scope; this.$element = $element; this.filter = $filter('filter'); this.opened = false; this.handleOutsideClick(); this.$scope.$watch('jfMultiDropdown.items', (newVal, oldVal)...
JavaScript
0.003455
@@ -2409,19 +2409,19 @@ if ( +! this. -noSort +items ) re @@ -2438,55 +2438,86 @@ -if (!this.items) return;%0A let s +let selected = this.noSort ? _.filter(this.items, (item) =%3E item.isS elected - = +) : _.s @@ -2604,16 +2604,81 @@ lected = + this.noSort ? _.filter(this.items, (item) =%3E !item.is...
4805f948a8d04ffaff269be09ececd0e5054f9e0
Update protobuf.js
lib/components/protobuf.js
lib/components/protobuf.js
var fs = require('fs'); var path = require('path'); var protobuf = require('pomelo-protobuf'); var Constants = require('../util/constants'); var logger = require('pomelo-logger').getLogger('pomelo', __filename); module.exports = function(app, opts) { return new Component(app, opts); }; var Component = function(app,...
JavaScript
0.000002
@@ -957,32 +957,33 @@ serverProtos %7C%7C +( fs.existsSync(or @@ -1052,16 +1052,17 @@ rverPath +) ;%0A this @@ -1102,16 +1102,17 @@ otos %7C%7C +( fs.exist @@ -1189,16 +1189,17 @@ ientPath +) ;%0A%0A thi @@ -3365,12 +3365,13 @@ Tick(cb);%0A%7D; +%0A
e4505322b6789f2b58a2f1f2958e3f066556edd4
Rename getCroppedImage to getProcessedImage; return image also when not cropped
lib/configuration/image.js
lib/configuration/image.js
// Copyright 2015 Yahoo! Inc. // Copyrights licensed under the Mit License. See the accompanying LICENSE file for terms. var fs = require('fs'); var Base = require('./base'); var PNGImage = require('pngjs-image'); var Rect = require('./atoms/rect'); var Structure = require('./structure/structure'); /** * @class Im...
JavaScript
0
@@ -3793,21 +3793,23 @@ ets the -cropp +process ed image @@ -3830,21 +3830,23 @@ thod get -Cropp +Process edImage%0A @@ -3880,21 +3880,23 @@ */%0A%09%09get -Cropp +Process edImage: @@ -3932,16 +3932,98 @@ coord;%0A%0A +%09%09%09if (!this.isCropped()) %7B%0A%09%09%09%09return PNGImage.copyImage(this.getImage());...
4913052bcc05fb7f7f6025a93d0a9c6d3a7945ae
Fix for test
src/encoded/static/components/__tests__/about-test.js
src/encoded/static/components/__tests__/about-test.js
'use strict'; /** * Written by Alex, based on Carl's homepage test, to test the 'About' page * rendered by about.js, including navigation and other app components. * * Unlike for other components, because the 'About' page is relatively simple, * the ENTIRE App is loaded and initialized to the /about/ page so t...
JavaScript
0.000001
@@ -1586,16 +1586,28 @@ g/about%22 + alerts=%7B%5B%5D%7D context
f2622553ed1703b488f1397a700da1e431c917f8
Add isSkeletonVisible accessor to M_SkeletalMesh.js
src/js/middle_level/elements/meshes/M_SkeletalMesh.js
src/js/middle_level/elements/meshes/M_SkeletalMesh.js
import GLBoost from '../../../globals'; import M_Mesh from './M_Mesh'; import M_Joint from '../skeletons/M_Joint'; import Matrix44 from '../../../low_level/math/Matrix44'; import AABB from '../../../low_level/math/AABB'; export default class M_SkeletalMesh extends M_Mesh { constructor(glBoostContext, geometry, mater...
JavaScript
0
@@ -4639,16 +4639,207 @@ ));%0A %7D%0A +%0A set isSkeletonVisible(flg) %7B%0A for (let joint of this._joints) %7B%0A joint.isGizmoVisible = flg;%0A %7D%0A %7D%0A%0A get isSkeletonVisible() %7B%0A return this._joints%5B0%5D.isGizmoVisible;%0A %7D%0A%0A %7D%0A%0AGLBoo
0c2a557dbef6674d3d352cd49e9c13f4ed2f8362
Move unnecessary things out of env schema
src/js/schemas/service-schema/EnvironmentVariables.js
src/js/schemas/service-schema/EnvironmentVariables.js
let EnvironmentVariables = { description: 'Set environment variables for each task your service launches in addition to those set by Mesos.', type: 'object', title: 'Environment Variables', properties: { variables: { type: 'array', duplicable: true, addLabel: 'Add Environment Variable', ...
JavaScript
0.000003
@@ -1,12 +1,46 @@ +import %7BHooks%7D from 'PluginSDK';%0A%0A let Environm @@ -499,97 +499,8 @@ n %5B%7B -%0A key: null,%0A value: null,%0A usingSecret: null%0A %7D%5D;%0A @@ -584,333 +584,128 @@ -let value = variableMap%5Bkey%5D;%0A let usingSecret = null;%0...
4440e964b663e3be212ab69fc2fd982ed9ffc08c
Add level 1 sidenav click event tracking. (#12545)
src/platform/site-wide/side-nav/components/SideNav.js
src/platform/site-wide/side-nav/components/SideNav.js
// Dependencies import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import recordEvent from 'platform/monitoring/record-event'; import { find, filter, get, map, orderBy } from 'lodash'; // Relative import NavItem from './NavItem'; class SideNav extends Com...
JavaScript
0
@@ -1555,24 +1555,69 @@ ,%0A %7D);%0A + recordEvent(%7B event: 'nav-sidenav' %7D);%0A return
e568e306395a76c57e67f04d1bb1850aa6d11210
update weaving sales contract router
src/routers/v1/sales/weaving-sales-contract-router.js
src/routers/v1/sales/weaving-sales-contract-router.js
var Manager = require("dl-module").managers.sales.WeavingSalesContractManager; var JwtRouterFactory = require("../../jwt-router-factory"); const apiVersion = '1.0.0'; function getRouter() { var router = JwtRouterFactory(Manager, { version: apiVersion, defaultOrder: { "_updatedDate": -1 ...
JavaScript
0
@@ -1,12 +1,41 @@ +%0Aconst apiVersion = '1.0.0';%0A var Manager @@ -109,90 +109,1450 @@ var -JwtRouterFactory = require(%22../../jwt-router-factory%22);%0Aconst apiVersion = '1.0.0' +resultFormatter = require(%22../../../result-formatter%22);%0Avar db = require(%22../../../db%22);%0A%0Avar JwtRouterFactory = requi...
617e0599ee55a3e7a53571e28b3ff3beb3d058c3
Define functions for prevent_double_click to allow re-use
timepiece/static/timepiece/js/prevent_double_click.js
timepiece/static/timepiece/js/prevent_double_click.js
/* IMPORTANT: Some ad block extensions prevent the browser from loading Javascript files with 'doubleclick' in the name. */ $(function() { /* Prevents double-click of a form submit button by disabling the button and adding the 'disabled' class. Assumes that the name of the submit button is submit. Usag...
JavaScript
0.000001
@@ -122,34 +122,11 @@ */%0A%0A -$(function() %7B%0A /*%0A +/*%0A Prev @@ -184,20 +184,16 @@ ing the%0A - button a @@ -249,20 +249,16 @@ name of%0A - the subm @@ -289,20 +289,16 @@ ge:%0A - - %3Cform ac @@ -356,20 +356,16 @@ - %3Cinput t @@ -409,20 +409,16 @@ mit! /%3E%0A -...
ee72db886c8f214409a4a3a7a3152964c5661683
update Root
examples/containers/Root.js
examples/containers/Root.js
/** * @file Root.js * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {useCallback, useEffect} from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {renderRoutes} from 'react-router-config'; import * as actions fro...
JavaScript
0.000001
@@ -654,24 +654,98 @@ cation%7D) %7B%0A%0A + /**%0A * handle switch between desktop mode and mobile mode%0A */%0A const ha
a3ab4aeda6c7aba5123773b112acbd9527281de5
(new repl) Makes browser a parametric module
packages/repl/src/index.js
packages/repl/src/index.js
//--------------------------------------------------------------------- // // This source file is part of the Meta:Magical project. // // See LICENCE for licence information. // See CONTRIBUTORS for the list of contributors to the project. // //--------------------------------------------------------------------- // -...
JavaScript
0.999345
@@ -514,33 +514,32 @@ s = -%7B%0A browse(metadata +function(metamagical ) %7B%0A - re @@ -563,18 +563,30 @@ meta -data);%0A %7D +magical.for(Browser)); %0A%7D;%0A
b87f31707fce7f73d8a3c1d774afb1b5f4020f3c
remove block to disallow running internal modules
packages/tacoscript/src/cli/index.js
packages/tacoscript/src/cli/index.js
#!/usr/bin/env node import minimist from "minimist"; import usage from "./usage"; import omit from "lodash/omit"; import baseArgs from "./base-args"; export default function(argv, processExit) { const args = minimist(argv, { ...baseArgs, // The first non-option argument is the subcommand: stopEarly: t...
JavaScript
0
@@ -1278,164 +1278,8 @@ %5D;%0A%0A - if (subcommand === %22index%22 %7C%7C subcommand%5B0%5D === %22_%22) %7B%0A console.warn(%22Unknown command%5Cn%22);%0A forcedError = true;%0A return usage(false, exit);%0A %7D%0A%0A le
e721ff5fc8e0540d030d3d49a2a584a3f5791623
Update threads.js
example/routes/threads.js
example/routes/threads.js
var express = require('express'); var router = express.Router(); router.get('/top', function (req, res, next) { var nylas = Nylas.with(req.query.token); nylas.threads.first().then(function(thread) { res.render('thread', { }) }); }) module.exports = router;
JavaScript
0.000001
@@ -230,16 +230,41 @@ ead', %7B%0A + thread: thread%0A %7D)%0A
d4308c7d2177fec8c7f740c30bc9759f5b623906
Fix typo.
tests/plugins/autolink.js
tests/plugins/autolink.js
(function() { module("tinymce.plugins.Autolink", { setupModule: function() { QUnit.stop(); tinymce.init({ selector: "textarea", add_unload_trigger: false, skin: false, plugins: 'autolink', autosave_ask_before_unload: false, indent: false, init_instance_callback: function(ed) { ...
JavaScript
0.00001
@@ -415,16 +415,25 @@ editor. +settings. default_
692a606dda3251f4b8d3d28487d1e7c3680d6f3d
Update example config to use v1 api
example/webpack.config.js
example/webpack.config.js
/* eslint-disable no-var */ var path = require('path'); var StaticSitePlugin = require('../dist'); module.exports = { devtool: 'source-map', entry: { app: './src/index.js', }, output: { path: path.join(__dirname, 'public'), filename: '[name].js', libraryTarget: 'umd', publicPath: '/', ...
JavaScript
0
@@ -367,17 +367,32 @@ -src: 'app +routes: './src/routes.js ',%0A
12fbf6563fcfbded8999d9d500abb8353b2b3e60
fix fetchorders ex
examples/js/fetch-orders.js
examples/js/fetch-orders.js
"use strict"; const ccxt = require ('../../ccxt') const asTable = require ('as-table') const log = require ('ololog') require ('ansicolor').nice const exchange = new ccxt.bittrex ({ apiKey: "471b47a06c384e81b24072e9a8739064", secret: "694025686e9445589787e8ca212b4cff", enableRateLimit: true, }) async fu...
JavaScript
0
@@ -195,88 +195,47 @@ y: %22 -471b47a06c384e81b24072e9a8739064%22,%0A secret: %22694025686e9445589787e8ca212b4cff +YOUR_API_KEY%22,%0A secret: %22YOUR_SECRET %22,%0A
aadb9256fbcb11688cc0526199ddc1ded36e6e52
make repo match server, pt. 2
example_post/soundcite.js
example_post/soundcite.js
$(document).ready(function () { SC.initialize({ client_id: "5ba7fd66044a60db41a97cb9d924996a", redirect_uri: "http://localhost:9292/soundcite", }); SC.stream(id, function(sound) { sound.load(); $('.soundcite').css({'border' : '1px solid rgba(0,0,0,.5)', 'border-radius' : '10px', 'padding' : '0 5px 0 5...
JavaScript
0.000006
@@ -369,18 +369,17 @@ nter'%7D); - %0A + %09%09%09$('.s @@ -417,21 +417,23 @@ %09%09%09%09var -start +clicked = $(thi @@ -426,32 +426,57 @@ licked = $(this) +;%0A%09%09%09%09var start = clicked .attr('data-star @@ -494,23 +494,23 @@ r end = -$(this) +clicked .attr('d @@ -549,17 +549,16 @@ (start); - %0A...
67c8b5a1ad4e4bb4772ec3011fd451157a284dfe
Use different error generation to result in different grouping for each example
examples/plain/app/index.js
examples/plain/app/index.js
import React, { Component } from 'react'; import { View, Text, Button, ScrollView, StyleSheet, Platform } from 'react-native'; import bugsnag from 'lib/bugsnag'; import NativeCrash from 'lib/native_crash'; function triggerException() { bogusFunction(); // eslint-disable-line no-undef } function triggerNativeExcept...
JavaScript
0.000002
@@ -285,16 +285,114 @@ ndef%0A%7D%0A%0A +function triggerHandledException() %7B%0A bogusHandledFunction(); // eslint-disable-line no-undef%0A%7D%0A%0A function @@ -419,16 +419,16 @@ ion() %7B%0A - Native @@ -1506,32 +1506,39 @@ trigger +Handled Exception();%0A @@ -1918,32 +1918,48 @@ t -rig...
09cf23dddb1f9541111de993df9d0679e45e51b7
Add another test for the getApiResponse.
tests/simple/util-http.js
tests/simple/util-http.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0
@@ -2473,16 +2473,21 @@ qHandler +Error (req, re @@ -2487,24 +2487,24 @@ req, res) %7B%0A - ht @@ -2578,47 +2578,217 @@ -server_.get('/1.0/test-url', reqHandler +function reqHandlerBody(req, res) %7B%0A httpUtil.returnJson(res, 200, req.body);%0A %7D%0A%0A server_.get('/1.0/te...
6a32f752ba8137aaa00b46abd177a8208dde0ebe
Add another test for tailFile.
tests/simple/util-tail.js
tests/simple/util-tail.js
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
JavaScript
0
@@ -790,16 +790,40 @@ e.%0A */%0A%0A +var fs = require('fs');%0A var path @@ -877,24 +877,55 @@ nstants');%0A%0A +var async = require('async');%0A%0A var tail = r @@ -2882,36 +2882,1414 @@ assert) %7B%0A -test.finish( +var filePath = path.join(cwd, '.tests/temp-file-multisubs-test.txt');%0A var writeStream = fs...
82d0160849fa615e93c550507e719e1f5c4b6abb
Fix path to built components catalog
scripts/components-scanner.js
scripts/components-scanner.js
var pick = require('lodash/object/pick'); var dir = require('node-dir'); var components = []; var assign = require('object-assign'); var exampleIndex = {}; var fs = require('fs'); function _processFileName(fileName){ var path = fileName.split('src\\')[1]; return {dot: path.replace(/\\/g, '.'), path: './src/' + ...
JavaScript
0
@@ -1155,16 +1155,20 @@ nts, './ +src/ showcase