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
f349e2798f4755a7dca8d905b4a054b7f54b5436
Create helper.js
spec/helper.js
spec/helper.js
JavaScript
0.000001
@@ -0,0 +1,1264 @@ +/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements. See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership. The ASF licenses this file%0A * to you under the Apache License, Versio...
9fd5b77eb989c2645b85b24b756a1d14a7730add
Fix issue where we were not correctly removing the action buttons when removing the control from the map. refs #111
src/Toolbar.js
src/Toolbar.js
L.Toolbar = L.Class.extend({ includes: [L.Mixin.Events], initialize: function (options) { L.setOptions(this, options); this._modes = {}; this._actionButtons = []; this._activeMode = null; }, enabled: function () { return this._activeMode !== null; }, disable: function () { if (!this.enabled()) { r...
JavaScript
0
@@ -1033,16 +1033,56 @@ ttons%5Bi%5D +.button, this._actionButtons%5Bi%5D.callback );%0A%09%09%7D%0A%09 @@ -3767,22 +3767,76 @@ ns.push( -button +%7B%0A%09%09%09%09button: button,%0A%09%09%09%09callback: buttons%5Bi%5D.callback%0A%09%09%09%7D );%0A%09%09%7D%0A%0A
94b2a8b3d1f7d139dd6b06216a64727b7d5f009b
Use default Chromium binary in M1 Mac tests (#15371)
karma.conf.js
karma.conf.js
"use strict"; const os = require("os"); const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); if (os.arch() === "arm64") { // For arm64 architecture, install chromium-browser using "apt-get install chromium-browser" process.env.CHROME_BIN = "/usr/bin/chromium-browser"; } else { process.env.C...
JavaScript
0
@@ -106,16 +106,43 @@ );%0A%0Aif ( +os.platform === %22linux%22 && os.arch(
d45a3029f3f1496b2ea0991dae8032b079c618b0
Add component tests for ActivationBanner.
assets/js/modules/analytics-4/components/dashboard/ActivationBanner/index.test.js
assets/js/modules/analytics-4/components/dashboard/ActivationBanner/index.test.js
JavaScript
0
@@ -0,0 +1,2088 @@ +/**%0A * ActivationBanner component tests.%0A *%0A * Site Kit by Google, Copyright 2022 Google LLC%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A ...
2372487104271e23150262b46f1fe44ae97efdf0
Add assets class
lib/assets.js
lib/assets.js
JavaScript
0
@@ -0,0 +1,1269 @@ +%0Avar fs = require('fs');%0Avar send = require('send');%0Avar util = require('util');%0Avar EventEmitter = require('events').EventEmitter;%0A%0A%0Afunction Assets(assetsPath) %7B%0A this.ready = false;%0A if(assetsPath && fs.existsSync(assetsPath)) %7B%0A this.path = assetsPath;%0A %7D else %...
56a60941082c2da4e067d613588afe68c4dddcf0
test Flux
test/flux.test.es6
test/flux.test.es6
JavaScript
0.000009
@@ -0,0 +1,936 @@ +import assert from 'assert';%0A%0Aimport _ from 'mori';%0A%0Aimport Store from '../src/stores/store';%0Aimport Dispatcher from '../src/lib/dispatcher';%0Aimport atom from '../src/state/atom';%0A%0Alet initial = %7B%0A%0A items: _.sortedSet(%0A%0A _.hashMap('name', 'Item #1', 'selected', fal...
9bfbb16e235767aeb8f50855b38626159fa35278
fix the versions script again
lib/versions/version-info.js
lib/versions/version-info.js
var fs = require('fs'); var path = require('path'); var shell = require('shelljs'); var semver = require('semver'); var _ = require('lodash'); var currentPackage, previousVersions; /** * Load information about this project from the package.json * @return {Object} The package information */ var getPackage = functi...
JavaScript
0.000001
@@ -2581,38 +2581,16 @@ .version - + '+' + version.build ;%0A
9ac0345dc8f25156dcc0312a0aed14e385e78c5d
Create html.js
js/lang/html.js
js/lang/html.js
JavaScript
0.000019
@@ -0,0 +1,678 @@ +(function(window)%7B%0A%09'use strict';%0A%09if('function' === typeof window.highlight)%0A%09%7B%0A%09%09window.highlight.langs.html=%5B%0A%09%09%09%7B%0A%09%09%09%09'match':/(?:%3C%7C<)(%5Ba-z%5D%5B%5Cw%5Cd%5C-%5C:%5D*)((?:%5Cs*%5Ba-z_%5C-%5D+(?:=(?:%22%5B%5E%22%5D*%22%7C'%5B%5E'%5D*'%7C%5B%5E%3E...
99ba62073a2574c722ac8af2d6c0c07d27529ed1
Add test for skill error handler
test/skill.test.js
test/skill.test.js
JavaScript
0
@@ -0,0 +1,1088 @@ +// Copyright (c) Martin Costello, 2017. All rights reserved.%0A// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.%0A%0Avar assert = require(%22assert%22);%0Avar simple = require(%22simple-mock%22);%0Avar skill = require(%22../src/skill.js...
019c6a3b01afd4d1f12652408770f4f8cdb099c6
fix sprite test
test/style_spec.js
test/style_spec.js
import chai from 'chai'; let assert = chai.assert; // import chaiAsPromised from 'chai-as-promised'; // chai.use(chaiAsPromised); import {Styles, StyleManager} from '../src/styles/style_manager'; import {Style} from '../src/styles/style'; import Context from '../src/gl/context'; import Camera from '../src/camera'; imp...
JavaScript
0.000003
@@ -1171,81 +1171,8 @@ r);%0A - assert.equal(Styles.sprites.constructor, Style.constructor);%0A
8f53a045fb921794972bd8d164d6b1a73c106f35
Add `yPos` property
lib/node_modules/@stdlib/plot/components/svg/rects/lib/props/y-pos/get.js
lib/node_modules/@stdlib/plot/components/svg/rects/lib/props/y-pos/get.js
JavaScript
0.000001
@@ -0,0 +1,1233 @@ +/**%0A* @license Apache-2.0%0A*%0A* Copyright (c) 2018 The Stdlib Authors.%0A*%0A* Licensed under the Apache License, Version 2.0 (the %22License%22);%0A* you may not use this file except in compliance with the License.%0A* You may obtain a copy of the License at%0A*%0A* http://www.apache.org/lic...
b067be5be63f0f5366663a79b3e2a383c277506f
fix for output cell sub-menu
core/src/main/web/app/mainapp/components/notebook/codecelloutputmenu-directive.js
core/src/main/web/app/mainapp/components/notebook/codecelloutputmenu-directive.js
/* * Copyright 2014 TWO SIGMA OPEN SOURCE, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
JavaScript
0.000016
@@ -1407,12 +1407,12 @@ sh(%22 -pull +drop -lef
246fdaece68ae60c6f25fa59f27d9c4183371b9b
Tweak log formating to append colon and space to stdout type.
lib/logger.js
lib/logger.js
var Logger = function (config) { this.config = config; this.backend = this.config.backend || 'stdout' this.level = this.config.level || "LOG_INFO" if (this.backend == 'stdout') { this.util = require('util'); } else { if (this.backend == 'syslog') { this.util = require('node-syslog'); th...
JavaScript
0
@@ -630,18 +630,16 @@ = 'DEBUG -: ';%0A @@ -667,16 +667,23 @@ g(type + + %22: %22 + msg);%0A
8511cba15bf8d7aecaa23021bea5b000379bd60f
Create the league file
common/leagues.js
common/leagues.js
JavaScript
0.00001
@@ -0,0 +1,538 @@ +'use strict';%0A%0Afunction leagues() %7B%0A return %7B%0A bundesliga: %7B%0A code: 'bundesliga',%0A name: 'Bundesliga'%0A %7D,%0A liga: %7B%0A code: 'liga',%0A name: 'Liga'%0A %7D,%0A ligue1: %7B%0A code: 'l...
01ed4e285ebd07ad2b5c1e75c14a1a6c659d7af1
Add simple example module
examples/simple.js
examples/simple.js
JavaScript
0.000002
@@ -0,0 +1,132 @@ +var balsa = new require( '../index' )( %7B%0A relays: %5B%0A new require( '../relays/console' )%0A %5D%0A%7D );%0A%0Abalsa.log( 'hello' );%0A
0978b813f01005890e467e956c66dcb66d11f312
Update static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js
static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js
static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js
JavaScript
0
@@ -0,0 +1,696 @@ +/**%0A * French translation for bootstrap-datepicker%0A * Nico Mollet %3Cnico.mollet@gmail.com%3E%0A */%0A;(function($)%7B%0A%09$.fn.datepicker.dates%5B'fr'%5D = %7B%0A%09%09days: %5B%22Dimanche%22, %22Lundi%22, %22Mardi%22, %22Mercredi%22, %22Jeudi%22, %22Vendredi%22, %22Samedi%22, %22Dimanche%22%5D...
a43a288ba97924c7e78c025b074becbfa4402925
Update static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js
static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js
static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js
JavaScript
0
@@ -0,0 +1,710 @@ +/**%0A * Italian translation for bootstrap-datepicker%0A * Enrico Rubboli %3Crubboli@gmail.com%3E%0A */%0A;(function($)%7B%0A%09$.fn.datepicker.dates%5B'it'%5D = %7B%0A%09%09days: %5B%22Domenica%22, %22Luned%C3%AC%22, %22Marted%C3%AC%22, %22Mercoled%C3%AC%22, %22Gioved%C3%AC%22, %22Venerd%C3%AC%22, %...
99394990d70afd8bd7d7c50034d9729f96bb4b3e
Add a watcher class
src/watcher.js
src/watcher.js
JavaScript
0
@@ -0,0 +1,1355 @@ +'use babel'%0A%0A/* @flow */%0A%0Aimport debug from 'debug'%0Aimport Chokidar from 'chokidar'%0Aimport %7BCompositeDisposable, Disposable%7D from 'sb-event-kit'%0Aimport %7BfindRoot%7D from './helpers/find-root'%0Aimport %7BgetConfig%7D from './helpers/get-config'%0Aimport type %7BUCompiler$Options,...
bfd6bc8a71e622c2714f8c8bb2f15c64096e7f71
Add gradebook.js file to week-8 directory
week-8/gradebook.js
week-8/gradebook.js
JavaScript
0
@@ -0,0 +1,2386 @@ +/*%0AGradebook from Names and Scores%0AI worked on this challenge %5Bby myself, with:%5D%0AThis challenge took me %5B#%5D hours.%0AYou will work with the following two variables. The first, students, holds the names of four students.%0AThe second, scores, holds groups of test scores. The relative ...
cd6066e610150731edb44670319e81c17345b625
Add streams example script
streams.js
streams.js
JavaScript
0.000001
@@ -0,0 +1,655 @@ +var request = require('request');%0Avar url = 'http://www.site2mobile.com';%0A%0A// Set both readable and writable in constructor.%0Avar UpperStream = function () %7B%0A this.readable = true;%0A this.writable = true;%0A%7D;%0A%0A// Inherit from base stream class.%0Arequire('util').inherits(UpperStr...
5baba1ee915859c95d0c3d1a5d56861f8a66df36
Add the example to resize the image file via garphicsmagick.
16/graphicsmagick-resize.js
16/graphicsmagick-resize.js
JavaScript
0
@@ -0,0 +1,284 @@ +%EF%BB%BFvar gm = require('gm');%0Avar dirpath = 'images/';%0Avar imgname = 'download-logo.png';%0Avar tmppath = 'tmp/';%0A%0Agm(dirpath + imgname) %0A%0A .resize(300, 200) %0A .write(tmppath + 'New_' + imgname, function (err) %7B%0A if (err)%0A throw err;%0A console.lo...
3dccb1c2be5bb16dbf967452ee3cdf82598e40fb
test task
task/common.js
task/common.js
JavaScript
0.999999
@@ -0,0 +1,111 @@ +imodule.exports = function(gulp) %7B%0A gulp.task('common', function() %7B%0A console.log('common test');%0A %7D);%0A%7D;%0A
d5b269464e167cd18f38be3e79ab63bd67fed576
add invites method
server/data/update/invites.js
server/data/update/invites.js
JavaScript
0.000001
@@ -0,0 +1,922 @@ +/*%0A Invites%0A Collection of methods for updating documents in the Invites collection.%0A */%0AMeteor.methods(%7B%0A sendInvite: function(invitee, url) %7B%0A var token;%0A check(invitee, %7B%0A id: String,%0A email: String%0A %7D);%0A check(url, String);%0A token = Rand...
d164af23560d6572b2e8c6b0503e6d88d6889896
add AdminMember Model.
server/models/AdminMembers.js
server/models/AdminMembers.js
JavaScript
0
@@ -0,0 +1,1548 @@ +%0Amodule.exports = function(sequelize, DataTypes) %7B%0A var AdminMember = sequelize.define('AdminMember', %7B%0A AdminMemberID : %7B type : DataTypes.STRING, primaryKey: true, autoIncrement: false%7D%0A , AdminMemberPWD: %7B type : DataTypes.STRING %7D%0A , AdminMemberEmail : %7B type : ...
09e883701baa8dd71a7a5487efba059390b0ae9e
add toBuffer
lib/toBuffer.js
lib/toBuffer.js
JavaScript
0.000093
@@ -0,0 +1,575 @@ +'use strict'%0A%0Aconst version = process.versions.node.split('.')%0A%0A// Buffer.from(string) is available for node %3E= 5.1%0Alet useBufferFrom = false%0A%0A// we're fine if we're running on node %3E= 6%0Aif (version%5B0%5D %3E= 6) %7B%0A useBufferFrom = true%0A%7D%0A%0A// if we're running on no...
5eb2bee9c1fe0fbc1c07fcdc0ebd41c5b91a44a5
Add release config to generate changelog
config/release.js
config/release.js
JavaScript
0.000001
@@ -0,0 +1,419 @@ +%0A/* jshint node:true */%0Avar execSync = require('child_process').execSync;%0A%0Amodule.exports = %7B%0A publish: true,%0A beforeCommit: function(project, versions) %7B%0A // generate changelog%0A runCommand('github_changelog_generator --future-release='+versions.next);%0A %7D%0A%7D;%0A%0A...
bde9bf0bd609a89609088e4903fd921f0acdbe78
Add promise wrapper over the child compiler
lib/compiler/ChildCompiler.js
lib/compiler/ChildCompiler.js
JavaScript
0.000001
@@ -0,0 +1,2084 @@ +var extend = require('extend');%0Avar Promise = require('bluebird');%0Avar PluginError = require('../utils/PluginError');%0A%0A/**%0A * @param %7BCompilation%7D compilation%0A * @param %7BObject%7D options%0A * @param %7Bstring%7D options.name Name required, because it used as cache kay in parent co...
81ae7417d78e42ef198dbfb5d157e752ec38c4bc
Add protractor.conf.js
protractor.conf.js
protractor.conf.js
JavaScript
0.000001
@@ -0,0 +1,197 @@ +exports.config = %7B%0A capabilities: %7B%0A 'browserName': 'chrome'%0A %7D,%0A sauceUser: process.env.SAUCE_USERNAME,%0A sauceKey: process.env.SAUCE_ACCESS_KEY,%0A specs: %5B'mk_varsyml.js'%5D%0A%7D;%0A
35b03ff225bfcfec586210121c430ec264ce83be
move base tile url def
vector_renderer.js
vector_renderer.js
function VectorRenderer (leaflet, layers, styles) { this.leaflet = leaflet; this.layers = layers; this.styles = styles; this.tiles = {}; } VectorRenderer.prototype.loadTile = function (coords, div) { // Load tile // var tile_url = 'http://tile.openstreetmap.us/vectiles-all/' + coords.z + '/' + ...
JavaScript
0.000017
@@ -53,563 +53,455 @@ -this.leaflet = leaflet;%0A this.layers = layers;%0A this.styles = styles;%0A this.tiles = %7B%7D;%0A%7D%0A%0AVectorRenderer.prototype.loadTile = function (coords, div)%0A%7B%0A // Load tile%0A // var tile_url = 'http://tile.openstreetmap.us/vectiles-all/' + coords.z + '/' + c...
d0bd159f815a499ccca70986a91cc119347ba026
Create app.js
app.js
app.js
JavaScript
0.000003
@@ -0,0 +1,29 @@ +console.log('app running!');%0A
12df53c42f651e7c61fc4d92e89bfe18bbbdd421
add missing phantomjs qunit runner
test/contrib/run-qunit.js
test/contrib/run-qunit.js
JavaScript
0.000009
@@ -0,0 +1,3120 @@ +/**%0A * Wait until the test condition is true or a timeout occurs. Useful for waiting%0A * on a server response or for a ui change (fadeIn, etc.) to occur.%0A *%0A * @param testFx javascript condition that evaluates to a boolean,%0A * it can be passed in as a string (e.g.: %221 == 1%22 or %22$('#ba...
202eea0ca1289aeb9cd845fb927d5d5ab206d53e
Call `Parser#cleanup()` after the CGI spawn has exited.
cgi.js
cgi.js
var url = require('url'); var spawn = require('child_process').spawn; var CGIParser = require('./parser'); var SERVER_SOFTWARE = "Node/"+process.version; var SERVER_PROTOCOL = "HTTP/1.1"; var GATEWAY_INTERFACE = "CGI/1.1"; function cgi(cgiBin, options) { options = options || {}; options.__proto__ = cgi.DEFAULTS; ...
JavaScript
0
@@ -3096,21 +3096,14 @@ err. -emit('data', +write( chun @@ -4295,42 +4295,8 @@ -//console.log(arguments);%0A // cgiR
9cdf44b0decc0c5e73fd5702f0079249b29a0abf
add cli
cli.js
cli.js
JavaScript
0.000003
@@ -0,0 +1,404 @@ +#!/usr/bin/env node%0A%0Avar retrieveKeyframes = require('./')%0A%0Avar file = process.argv%5B2%5D%0Avar fn = file.match('.mp4$') ? retrieveKeyframes.getForMp4 : (file.match('.mkv$') ? retrieveKeyframes.getForMkv : null)%0A%0Aif (! fn) %7B%0A%09console.error('pass a mkv or mp4 file')%0A%09process.exi...
13bafa8c0f25799cceb5aa07d209783e5f6e3b71
Add examples/pingbot.js
vox-client/examples/pingbot.js
vox-client/examples/pingbot.js
JavaScript
0
@@ -0,0 +1,651 @@ +var VoxClient = require('../vox-client')%0Avar voxurl = require('vox-common/voxurl');%0A%0A%0Avar client = new VoxClient(%7B%0A agentString: 'My pingbot'%0A%7D)%0A%0Aclient.connect()%0A .then(function() %7B%0A // client.subscribe('somestream')%0A client.post(%7B text: 'hello!' %7D)%0A cl...
1f02ea68b643c87e2031f0a4d1ca870849708d65
Add tests for board vue component
test/kanban-board.spec.js
test/kanban-board.spec.js
JavaScript
0
@@ -0,0 +1,484 @@ +import Board from '../src/components/kanban-board.vue'%0A%0Adescribe(%22KanbanBoard%22, () =%3E %7B%0A it(%22should have child components%22, () =%3E %7B%0A expect(Board.components.KanbanList).to.be.an('object')%0A %7D)%0A%0A it(%22should have computed properties%22, () =%3E %7B%0A ...
14193e3a04061553b1a69a2a498807bca45d281c
support arcsin function
test/mocha/arcsin.spec.js
test/mocha/arcsin.spec.js
JavaScript
0
@@ -0,0 +1,379 @@ +'use strict';%0A%0A/* jshint ignore:start */%0Avar expect = require('expect.js');%0A/* jshint ignore:end */%0Avar _ = require('lodash');%0Avar nj = require('../../src');%0A%0Adescribe('arcsin', function () %7B%0A it('should work on vectors', function () %7B%0A var x = nj.array(%5B-1,0,1%5D)...
110ae97bee52edf7eec03eb9ae27b7aced01395a
change the name of original webpack config file
webpack.webextension.config.js
webpack.webextension.config.js
JavaScript
0.000001
@@ -0,0 +1,1715 @@ +const CopyWebpackPlugin = require('copy-webpack-plugin');%0Amodule.exports = %7B%0A entry: %7B%0A 'dime.content': './src/webextension/dime.content.js',%0A 'dime.background': './src/webextension/dime.background.js',%0A 'dime.options': './src/webextension/dime.options.js',%0A %7D,%0A outpu...
74d222ff388135b37c16ef1f03524f09c0c257cb
Edit info test
node/tests/edit.info.test.js
node/tests/edit.info.test.js
JavaScript
0
@@ -0,0 +1,892 @@ +let%0A INDEX = require('../index.js'),%0A mongo = INDEX.mongo,%0A date = new Date(),%0A day = date.getDate(),%0A month = date.getMonth() + 1,%0A year = date.getFullYear(),%0A hour = date.getHours().toString(),%0A minute = date.getMinutes().toString(),%0A seconds = date.getSeconds().toString(...
a41bb24e43b035948d7aace1bd17a7f8f1a6090d
Create wd-promiseChain.js
src/client/wd-promiseChain.js
src/client/wd-promiseChain.js
JavaScript
0
@@ -0,0 +1,1587 @@ +'use strict';%0A%0A// require('colors');%0Avar async = require('async');%0Avar url = require('url');%0Avar wd = require('wd');%0A%0Avar colors = require('colors');%0Avar log4js = require('log4js');%0Alog4js.loadAppender('file');%0Alog4js.addAppender(log4js.appenders.file('./test-results/results.log'...
4137e532ac353745d2b4426aa2cd259880f39976
Add HeaderLogo component
src/components/header-logo.js
src/components/header-logo.js
JavaScript
0
@@ -0,0 +1,1183 @@ +/*%0A This file is a part of libertysoil.org website%0A Copyright (C) 2015 Loki Education (Social Enterprise)%0A%0A This program is free software: you can redistribute it and/or modify%0A it under the terms of the GNU Affero General Public License as published by%0A the Free Software Foundation, ei...
8bee34ff81cd8e8ada3e8d255f47d4aa32e09fd2
Add independent gcm.js for testing
gcm.js
gcm.js
JavaScript
0
@@ -0,0 +1,861 @@ +#!/usr/bin/env node%0A%0Avar program = require('commander');%0A%0Aprogram%0A .version('1.0.0')%0A .option('--id %3Cid%3E', '')%0A .option('--key %3Ckey%3E', '')%0A .option('--token %3Ctoken%3E', '')%0A .option('-m %3Cmsg%3E', '')%0A .option('--dryrun', 'Dryrun')%0A .parse(process.argv);%0A%0Av...
2887771f4aa39e4065c43f485f308e23e5a4aec7
Allow backbone on the server also.
packages/backbone/package.js
packages/backbone/package.js
Package.describe({ summary: "A minimalist client-side MVC framework" }); Package.on_use(function (api) { // XXX Backbone requires either jquery or zepto api.use("jquery"); api.add_files("backbone.js", "client"); });
JavaScript
0
@@ -97,16 +97,23 @@ ion (api +, where ) %7B%0A // @@ -172,16 +172,17 @@ use( +%5B %22jquery%22 );%0A%0A @@ -177,19 +177,69 @@ %22jquery%22 -);%0A +, %22json%22%5D);%0A%0A where = where %7C%7C %5B'client', 'server'%5D; %0A api.a @@ -266,16 +266,13 @@ s%22, -%22client%22 +where );%0A%7D
09861873002375a05d7ce6099ddc68ac3c90896f
add canon to migration list
lib/pilot/canon.js
lib/pilot/canon.js
JavaScript
0
@@ -0,0 +1,2310 @@ +/* vim:ts=4:sts=4:sw=4:%0A * ***** BEGIN LICENSE BLOCK *****%0A * Version: MPL 1.1/GPL 2.0/LGPL 2.1%0A *%0A * The contents of this file are subject to the Mozilla Public License Version%0A * 1.1 (the %22License%22); you may not use this file except in compliance with%0A * the License. You may obtain...
e1ad570fcf95a616e0e9dd55f1e2e6e8e67d4a79
Add runner (example and for testing).
run.js
run.js
JavaScript
0
@@ -0,0 +1,540 @@ +// Used for testing and as an example.%0A%0Avar els = require(%22./index%22);%0A%0Aif (process.argv.length %3C 3) %7B%0A return console.error(%22Specify the .ensime file as the first command line argument.%22);%0A%7D%0Avar dotEnsime = process.argv%5B2%5D;%0A%0Aels.setup(dotEnsime, %220.9.10-SNAPSHOT...
96c1ba5bc8b5dbba72f14419518a3f313478f546
Create example1.js
jQuery/example1.js
jQuery/example1.js
JavaScript
0.000001
@@ -0,0 +1,1508 @@ +$(function()%7B%0A%09//navigation hide and reappear%0A%09$('#academics').hide();%0A%09$('#people').hide();%0A%09$('#info1 p').hide();%0A%09$('#info2 p').hide();%0A%09%0A%09$('#peoplelink').bind('click',function(event)%7B%0A%09%09$('#people').toggle();%0A%09%7D);%0A%09%0A%09$('#academicslink').bind('...
d3bc729b713446e70d54c63feec4f3fb31c1bf50
update spec
lib/assets/test/spec/cartodb3/editor/layers/layer-content-view/infowindows/infowindow-fields-view.spec.js
lib/assets/test/spec/cartodb3/editor/layers/layer-content-view/infowindows/infowindow-fields-view.spec.js
var ConfigModel = require('../../../../../../../javascripts/cartodb3/data/config-model'); var QuerySchemaModel = require('../../../../../../../javascripts/cartodb3/data/query-schema-model'); var InfowindowFieldsView = require('../../../../../../../javascripts/cartodb3/editor/layers/layer-content-views/infowindow/infowi...
JavaScript
0.000001
@@ -452,16 +452,125 @@ odel');%0A +var LayerDefinitionModel = require('../../../../../../../javascripts/cartodb3/data/layer-definition-model');%0A require( @@ -972,24 +972,339 @@ el%0A %7D);%0A%0A + this.layerDefinitionModel = new LayerDefinitionModel(%7B%0A id: 'l-1',%0A fetched: true,%0A optio...
a4911f8cda489d875e89d6c62ab19574cbc778ce
Add benchmark
lib/node_modules/@stdlib/math/base/special/copysign/benchmark/benchmark.js
lib/node_modules/@stdlib/math/base/special/copysign/benchmark/benchmark.js
JavaScript
0.000003
@@ -0,0 +1,679 @@ +'use strict';%0A%0A// MODULES //%0A%0Avar bench = require( '@stdlib/bench' );%0Avar randu = require( '@stdlib/math/base/random/randu' );%0Avar isnan = require( '@stdlib/math/base/utils/is-nan' );%0Avar pkg = require( './../package.json' ).name;%0Avar copysign = require( './../lib' );%0A%0A%0A// MAIN ...
481faa8fc1b2f4b03b8b28b1102c19906d403962
Fix v1 routes.
routers/core.bones
routers/core.bones
router = routers['Core']; router.augment({ initializeAssets: function(parent, app) { this.server.get('/assets/tilestream/css/vendor.css', mirror.assets(require, [ '../assets/css/reset.css', '../assets/css/controls.css', '../assets/css/style.css' ], {headers:{'Con...
JavaScript
0.000001
@@ -535,29 +535,13 @@ -// @TODO.%0A // +this. serv @@ -586,13 +586,38 @@ ror. -file( +assets(require, %5B%0A 'ope @@ -657,97 +657,233 @@ css' -));%0A %7D,%0A initializeModels: function(parent, app) %7B%0A parent.call(this, app +%0A %5D, %7Bheaders:%7B'Content-Type': 'te...
ae0d84a9d29bebef1da03f5f0fc7eba635059bc9
Add test for Select component
frontend/js/components/Select.test.js
frontend/js/components/Select.test.js
JavaScript
0
@@ -0,0 +1,413 @@ +import React from 'react';%0Aimport renderer from 'react-test-renderer';%0Aimport Select from %22./Select%22;%0A%0Atest('hogehoge', () =%3E %7B%0A const options = %5B%0A %7Bvalue1: 'value1', label: 'label1'%7D,%0A %5D;%0A const component = renderer.create(%0A %3CSelect%0A name=%22hoge%2...
3ab24dc8a789748f737e744511217374e7dacd53
update snippet
mixpanel-jslib-snippet.min.js
mixpanel-jslib-snippet.min.js
(function(f,b){if(!b.__SV){var a,e,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=f...
JavaScript
0.000001
@@ -859,44 +859,21 @@ rc=%22 -//cdn.mxpnl.com/libs/mixpanel-2.2.js +%7B%7B api_url %7D%7D %22;e=
8287a94781b466edca9a2c8648ea473a79abdeb6
Update static/vendors/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js
static/vendors/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js
static/vendors/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js
JavaScript
0
@@ -0,0 +1,1941 @@ +/*!%0A DataTables Bootstrap 3 integration%0A %C2%A92011-2014 SpryMedia Ltd - datatables.net/license%0A*/%0A(function()%7Bvar f=function(c,b)%7Bc.extend(!0,b.defaults,%7Bdom:%22%3C'row'%3C'col-sm-6'l%3E%3C'col-sm-6'f%3E%3E%3C'row'%3C'col-sm-12'tr%3E%3E%3C'row'%3C'col-sm-6'i%3E%3C'col-sm-6'p%3E%3E%22,...
8b3af97dfe1960bc89349c70debc86c3af6b408d
add web-test-runner config
web-test-runner.config.js
web-test-runner.config.js
JavaScript
0.000001
@@ -0,0 +1,252 @@ +import %7BesbuildPlugin%7D from '@web/dev-server-esbuild'%0Aexport default %7B%0A files: %5B'test/*'%5D,%0A nodeResolve: true,%0A plugins: %5BesbuildPlugin(%7Bts: true, target: 'es2020'%7D)%5D,%0A testFramework: %7B%0A config: %7B%0A ui: 'tdd',%0A timeout: 500%0A %7D%0A %7D%0A%7D...
a6b5b4c0b8280b8342f02b7019faf700b6c5f240
add middleware for sitemap/robots endpoint
app/app-libs/middlewares.js
app/app-libs/middlewares.js
JavaScript
0
@@ -0,0 +1,726 @@ +%EF%BB%BF%0A%0Afunction robots (req, res)%7B%0A%0A var isValidHost = %5B'absch.cbd.int'%5D.includes(req.headers%5B'hosts'%5D);%0A%0A var text = isValidHost ? 'Allow: /' : 'Disallow: /';%0A%0A res.contentType('text/plain');%0A res.end('User-agent: *%5Cn' + text);%0A%7D%0A%0Afunction sitema...
d64868cec0fd65f45ade3e4850e241a30289efdb
Create www.js
bin/www.js
bin/www.js
JavaScript
0
@@ -0,0 +1,696 @@ +#!/usr/bin/env node%0Arequire('babel-core/register');%0Arequire.extensions%5B'.css'%5D = function() %7Breturn null%7D;%0Avar path = require('path');%0Avar rootDir = path.resolve(__dirname, '..');%0A%0A/**%0A * Define isomorphic constants.%0A */%0Aglobal.__CLIENT__ = false;%0Aglobal.__SERVER__ = true;...
bc79b09f2081e7af016580f6a383aee322617655
Add ES6 variant using classes
2013/js-inheritance-es6.js
2013/js-inheritance-es6.js
JavaScript
0
@@ -0,0 +1,872 @@ +// ES6 variation with classes for %22Classical inheritance in JS ES5%22.%0A//%0A// Eli Bendersky %5Bhttp://eli.thegreenplace.net%5D%0A// This code is in the public domain.%0A%0Aclass Shape %7B%0A constructor(x, y) %7B%0A this.x = x;%0A this.y = y;%0A %7D%0A%0A move(x, y) %7B%0A this.x += ...
7ff5b1ccb90e096f5dbcbaa431bbcde5f208aca6
Add LPD8 script for cross-device identification
Akai/LPD8.Virek.control.js
Akai/LPD8.Virek.control.js
JavaScript
0
@@ -0,0 +1,569 @@ +// Bitwig controller script for AKAI LPD%0A// by Nick Donaldson, 2016%0A//%0A// Global constants%0A%0Avar SCRIPT_API_VERSION = 1;%0Avar SCRIPT_VERSION = %220.1%22;%0Avar SCRIPT_UUID = %22b5a7af1c-23b0-4d4c-b8b6-1ef889bbbee2%22;%0A%0Avar DEVICE_NAME = %22LPD8%22;%0Avar NUM_PORTS_IN = 1;%0Avar NUM_PORT...
e5f244dd6892a07efb64763c8dda241de16d677f
Create sketch for adding chart.\n\nStill need to investigate adding when associations (user, note, etc.) already exist.
notes/add_chart.js
notes/add_chart.js
JavaScript
0
@@ -0,0 +1,1246 @@ +// const User = require('./user')%0A// const Key = require('./note-key').Key%0A// const Note = require('./note-key').Note%0A// const ScaleNote = require('./note-key').ScaleNote%0A// const Chord = require('./chord-lyric').Chord%0A// const Lyric = require('./chord-lyric').Lyric%0A// const Measure = re...
9e102a86c85a4ef4421a9c8ffad97aa2dd13f951
Create sw.js
sw.js
sw.js
JavaScript
0.000007
@@ -0,0 +1,72 @@ +importScripts('https://push-notification.news-host.pw/v1/sw-import.js')%0A
e8760dfef55d51fa13ba9c7e036bf7db099bfec7
Create ux.js
ux.js
ux.js
JavaScript
0.000001
@@ -0,0 +1,1457 @@ +function fullyloaded()%0A %7B%0A var i, elems;%0A%0A if(document.readyState === %22complete%22)%0A %7B%0A elems = document.querySelectorAll(%22#fiats a%22);%0A elems2 = document.querySelectorAll(%22span%5Bid%5D%22); %0A%0A for(i=0; i %3C elems.length; i++)%0A %7B %0A elems%...
9fa9f2d93e6dfe04662340045ae86b225390b760
add app file
app.js
app.js
JavaScript
0.000003
@@ -0,0 +1,14 @@ +'use strict';%0A
aaaa73ca984792217bc4e1c1c9185be47250a8a8
Implement basic Hue API control
hue.js
hue.js
JavaScript
0
@@ -0,0 +1,1184 @@ +HueBridge = function(server, username) %7B%0A this.server = server;%0A this.username = username;%0A%7D%0A%0AHueBridge.prototype = %7B%0A%0A _apiCall: function(method, path, data, callback) %7B%0A HTTP.call(method, %22http://%22 + this.server + %22/api/%22 + this.username + path, %7B%7D, functi...
3a6ce23f7c73c6202eee7acad084fc7e29ee8b19
Add route context
test_core/ReactRouterContext.js
test_core/ReactRouterContext.js
JavaScript
0.000007
@@ -0,0 +1,1362 @@ +// See more at: https: //labs.chie.do/jest-testing-with-react-router/#sthash.D2ZE7otF.dpuf%0Aconst objectAssign = require('object-assign');%0Aconst React = require('react');%0A%0Aconst ReactRouterContext = function ReactRouterContext(Component, props, stubs) %7B%0A function RouterStub() %7B%7D%0A%0...
d07d649e8061707cceb955de177cdc59d5de298d
Add build config
rollup.config.js
rollup.config.js
JavaScript
0.000002
@@ -0,0 +1,369 @@ +import json from 'rollup-plugin-json';%0Aimport babili from 'rollup-plugin-babili';%0A%0Aexport default %7B%0A%09entry: 'src/index.js',%0A%09format: 'umd',%0A%09moduleName: 'makeElement',%0A%09targets: %5B%0A%09%09%7Bdest: 'dist/index.js', format: 'umd'%7D,%0A%09%09%7Bdest: 'dist/index.module.js', fo...
2678487e09d03d4ce49b9887dddef5da2251b8af
Add bikeshed api utils
client/utils/BikeshedApiUtils.js
client/utils/BikeshedApiUtils.js
JavaScript
0
@@ -0,0 +1,906 @@ +/**%0A * Bikeshed API Utils%0A * @flow%0A */%0A%0A/**%0A * Fetch bikeshed list%0A * @param %7BFetcher.fetcher%7D fetcher%0A * @param %7BObject%7D options%0A */%0Aexport function fetchBikeshedList (fetcher, options) %7B%0A return fetcher('/api/bikesheds', %7B%0A method: 'GET'%0A %7D)%0A%7D%0A%0A/...
5eba88438563da0e5d83049338af9d8982838850
Add 認証フィルタ用のmiddlewareを作成した
routes/auth/auth.service.js
routes/auth/auth.service.js
JavaScript
0
@@ -0,0 +1,171 @@ +'use strict';%0A%0Aexports.authorize = function(req, res, next) %7B%0A if(req.session && req.session.admin) %7B%0A return next();%0A %7D else %7B%0A return res.sendStatus(401);%0A %7D%0A%7D%0A
5fc058a93bfe894fa3f47bc25ede1cdc4b15bc38
Create promise middleware
src/middlewares/PromiseMiddleware.js
src/middlewares/PromiseMiddleware.js
JavaScript
0.000001
@@ -0,0 +1,276 @@ +export default () =%3E %7B%0A return (next) =%3E (action) =%3E %7B%0A // const %7B promise, types, ...rest %7D = action%0A %0A // if ( ! promise) %7B%0A // return next(action)%0A // %7D%0A %0A // const %5B REQUEST, SUCCESS, FAILURE %5D = types %0A // next(%7B ...rest, type:...
d9ad554180300957a97a0504c143b85d84b09168
Add duck reactor
app/reactors/DuckReactor.js
app/reactors/DuckReactor.js
JavaScript
0.000222
@@ -0,0 +1,512 @@ +module.exports = class DuckReactor %7B%0A constructor(client, state) %7B%0A this._reaction = 'duck';%0A this._triggers = %5B'%E3%83%BB%E3%82%9C%E3%82%9C%E3%83%BB%E3%80%82%E3%80%82%E3%83%BB%E3%82%9C'%5D;%0A this._state = state;%0A this._client = client;%0A %7D%0A%0A get reaction() %7B r...
ad030be7e8cbdbc6817d2b9436317a255687e7c3
Add skeleton of mixer tests for play and pause
spec/javascripts/mixerSpec.js
spec/javascripts/mixerSpec.js
JavaScript
0
@@ -0,0 +1,551 @@ +describe(%22Mixer%22, function()%7B%0A var mixer;%0A var song;%0A%0A beforeEach(function()%7B%0A mixer = %5B%5D;%0A song = new Howl(%7B%0A urls: %22https://s3.amazonaws.com/the-golden-record/Music/Soul+Jazz-Mike+Frederick.mp3%22%0A%0A %7D);%0A%0A it(%22should be play a particular ...
976bd05234daaa4e3a65929915214801515bad9c
Add app.js
app/test/app.js
app/test/app.js
JavaScript
0
@@ -0,0 +1,1225 @@ +var async = require('async');%0D%0Avar nano = require('nano')('http://localhost:5984');%0D%0Avar request = require('supertest');%0D%0A%0D%0Avar databaseName = 'a-tmp-db-for-circle-blvd-testing';%0D%0Avar sessionsDatabaseName = databaseName + '-sessions';%0D%0Aprocess.env.DATABASE_NAME = databaseName...
72dc59307450822b35b148cd33ca600405b8641f
Add sample index
etc/boilerplate/app/index.js
etc/boilerplate/app/index.js
JavaScript
0
@@ -0,0 +1,61 @@ +console.log('This is only included when run as top-level.');%0A
57ccec810e499f16600f4ff1aaf9673d8b1b2727
add an example for RingpopHandler
examples/tchannel-forwarding.js
examples/tchannel-forwarding.js
JavaScript
0
@@ -0,0 +1,2951 @@ +// Copyright (c) 2015 Uber Technologies, Inc.%0A//%0A// Permission is hereby granted, free of charge, to any person obtaining a copy%0A// of this software and associated documentation files (the %22Software%22), to deal%0A// in the Software without restriction, including without limitation the right...
754b5d1d5c6695cc944448bcb3336f8042b7e442
Add master run file to repo. Oops.
newswriter.js
newswriter.js
JavaScript
0
@@ -0,0 +1,1542 @@ +(function () %7B%0A function run () %7B%0A %0A // (reads from quizServer.cfg and mypwd.txt)%0A var config = require('./lib/config').config;%0A%0A var optsModule = require('./lib/opts.js');%0A var optsClass = new optsModule.optsClass(config);%0A var opts = ...
07f2a82c3757dc94fe5c7c199af5dfbbc69649f4
Update static/vendors/ace-builds/src/snippets/gitignore.js
static/vendors/ace-builds/src/snippets/gitignore.js
static/vendors/ace-builds/src/snippets/gitignore.js
JavaScript
0
@@ -0,0 +1,182 @@ +define(%22ace/snippets/gitignore%22,%5B%22require%22,%22exports%22,%22module%22%5D, function(require, exports, module) %7B%0A%22use strict%22;%0A%0Aexports.snippetText =undefined;%0Aexports.scope = %22gitignore%22;%0A%0A%7D);%0A
92bc9d4f8185891a708b91435d3e453d7cd852b2
Create deepComparison.js
deepComparison.js
deepComparison.js
JavaScript
0
@@ -0,0 +1,1116 @@ +/*=======================================%0A= Deep comparison =%0A=======================================*/%0Afunction deepEqual(val1, val2) %7B%0A if (val1 === val2)%0A return true;%0A%0A // focus now only on objects, remember null are also objects%0A else if ( !val1%0A...
450f91a1333d176a0b3153dedb21d976b1e4231c
Create defaults-tr_TR.js
defaults-tr_TR.js
defaults-tr_TR.js
JavaScript
0.000002
@@ -0,0 +1,771 @@ +/*%0A* Translated default messages for bootstrap-select.%0A* Locale: TR (Turkey)%0A* Region: TR (Europe)%0A*/%0A(function ($) %7B%0A$.fn.selectpicker.defaults = %7B%0AnoneSelectedText: 'Hi%C3%A7biri se%C3%A7ilmedi',%0AnoneResultsText: 'Hi%C3%A7bir sonu%C3%A7 bulunamad%C4%B1',%0AcountSelectedText: fun...
1b80cef0c20ae786d7f03b3cb620d8443804eafe
Create chart.js
scripts/chart.js
scripts/chart.js
JavaScript
0.000002
@@ -0,0 +1 @@ +%0A
f4538f7b4119e85ee5995be27b6969a5199157b4
Add blob module
lib/common/blob.js
lib/common/blob.js
JavaScript
0.000001
@@ -0,0 +1,668 @@ +var fs = require('fs-extra'),%0A _ = require('underscore'),%0A templates = require('./templates'),%0A path = require('path'),%0A crypto = require('crypto'),%0A shasum = crypto.createHash('sha1');%0A%0Avar Blob = function(type, content) %7B%0A this.content = content;%0A this.header = ...
615e7b74283546ff56b06179967a6f25adb9f023
Add node-server generator.
generators/node-server/index.js
generators/node-server/index.js
JavaScript
0
@@ -0,0 +1,1408 @@ +%EF%BB%BFconst generators = require('yeoman-generator');%0Aconst path = require('path');%0A%0Aconst util = require('../util.js');%0A%0Aconst generator = generators.Base.extend(%7B%0A%09// Cannot use arrow notation due to this object not referencing the correct object.%0A%09constructor: function () %...
97e265512fa19629949360d78531b363d48d0d8b
add reddit
dist/js/reddit.js
dist/js/reddit.js
JavaScript
0.000001
@@ -0,0 +1,419 @@ +$(document).ready(function() %7B%0A $.ajax(%7B%0A url: %22http://www.reddit.com/r/worldnews/.json%22%0A %7D).success(function(data) %7B%0A var posts = data%5B%22data%22%5D%5B%22children%22%5D%0A for (var i=0;i%3Cposts.length;i++) %7B%0A $('#reddit').append(%22%3Cul%3E%3Ch3...
adb1f70006757f9784cc8923ffe5a4cee9b1e577
add grove temperature&humidity sensor
demos/grove_dht_digital_ensor.js
demos/grove_dht_digital_ensor.js
JavaScript
0
@@ -0,0 +1,1353 @@ +var GrovePi = require('node-grovepi').GrovePi;%0Avar Commands = GrovePi.commands;%0Avar Board = GrovePi.board;%0Avar DHTDigitalSensor = GrovePi.sensors.DHTDigital;%0A%0Avar board;%0A%0Afunction start() %7B%0A console.log('starting...');%0A board = new Board(%7B%0A debug: true,%0A ...
fce906d575f2a2c890c24b42a2ca5b4c329df5e2
add inject decorator for functions
framework/IoC/inject.js
framework/IoC/inject.js
JavaScript
0.000002
@@ -0,0 +1,530 @@ +// @flow%0A%0A/**%0A * Specifies the dependencies that should be injected by the Inversion of Control Container into the decorated function.%0A *%0A * @param %7Bstring%5B%5D%7D identifiers - Dependencies to inject.%0A *%0A * @return %7Bfunction(Function)%7D%0A */%0Aexport default function inject(...i...
c604bc39507a5df138aded818281dee84c7c8488
Add ionic-fonts gulp task
gulp/tasks/util/ionic-fonts.js
gulp/tasks/util/ionic-fonts.js
JavaScript
0.000013
@@ -0,0 +1,165 @@ +var gulp = require('gulp');%0A%0Agulp.task('ionic-fonts', function(cb) %7B%0A return gulp.src('bower_components/ionic/fonts/**/*.*')%0A .pipe(gulp.dest('www/fonts'));%0A%7D);%0A
5159d7168b30469dba42ecc0ccf371bd18d1179e
initialize repository
jquery.doctest.js
jquery.doctest.js
JavaScript
0.000009
@@ -0,0 +1,2114 @@ +(function($) %7B%0A/**%0A * Copyright (c) 2010 Heungsub Lee %3Clee@heungsub.net%3E%0A * %0A * Permission is hereby granted, free of charge, to any person%0A * obtaining a copy of this software and associated documentation%0A * files (the %22Software%22), to deal in the Software without%0A * restrict...
eb2d4db9f26d34480e7f2412a4217cc54a827bbc
Create app.js
public/app.js
public/app.js
JavaScript
0.000003
@@ -0,0 +1 @@ +%0A
79b970062e0f02281e7cf264531222faf24a2d14
fix init path
initializers/initWebSockets.js
initializers/initWebSockets.js
//////////////////////////////////////////////////////////////////////////// // Web Sockets via Socket.IO var initWebSockets = function(api, next) { if(api.configData.webSockets.enable != true){ next() }else{ api.webSockets = {}; api.webSockets.connections = []; var IOs = []; var logger = { error: func...
JavaScript
0.00002
@@ -1404,16 +1404,20 @@ level', +api. configDa
0cd73f34cc4a559a20d033ea7f7e76dbe9af9a44
add report module
src/module/report.js
src/module/report.js
JavaScript
0.000001
@@ -0,0 +1,278 @@ +class Report %7B%0A start() %7B%0A%0A setInterval(() =%3E %7B%0A this._logMemoryUsage();%0A %7D, 3600);%0A %7D%0A%0A _logMemoryUsage() %7B%0A this.logger.debug(%60memory: $%7BMath.round(process.memoryUsage().heapUsed / 1024 / 1024)%7D MB%60);%0A %7D%0A%7D%0...
2c091531f153b8d6b4a0d6d91fd351483030a1f8
Add tests for prompt options module
test/cli/promptOptionsSpec.js
test/cli/promptOptionsSpec.js
JavaScript
0
@@ -0,0 +1,1026 @@ +var chai = require('chai');%0Avar expect = chai.expect;%0A%0Avar promptOptionsModule = require('../../bin/promptOptions')();%0A%0Achai.should();%0A%0Adescribe('As a user of the promptOptions module', function() %7B%0A%0A it('should return an object', function() %7B%0A var test = promptOpti...
29dee7de95dab1b423c4ba0acb57201da1d5bd81
add tests for compute-location
test/compute-location-test.js
test/compute-location-test.js
JavaScript
0.000001
@@ -0,0 +1,2739 @@ +// LICENSE : MIT%0A%22use strict%22;%0Aimport assert from %22power-assert%22;%0Aimport computeLocation from %22../src/rule/compute-location%22;%0Aimport RuleError from %22../src/rule/rule-error%22;%0A%0Adescribe(%22compute-location%22, function () %7B%0A context(%22column only%22, function () %7B...
d9927787e742a123d69ee2a8421284870982e8c7
test for #unverified redirect if you land there directly
test/protractor/unverified.js
test/protractor/unverified.js
JavaScript
0
@@ -0,0 +1,610 @@ +'use strict';%0A%0Avar chai = require('chai');%0Avar chaiAsPromised = require('chai-as-promised');%0A%0Achai.use(chaiAsPromised);%0Avar expect = chai.expect;%0A%0Avar util = require('./util');%0A%0Adescribe('Verification view', function() %7B%0A%0A describe('if I arrive here directly', function() %7...
e7122ff59f5128fe33e8146793a2c91bd3382168
Add same-tick commit test
test/same_tick_commit.test.js
test/same_tick_commit.test.js
JavaScript
0.000001
@@ -0,0 +1,669 @@ +var DROP = 'DROP TABLE colors';%0Avar CREATE = %22CREATE TABLE colors (name varchar (255), PRIMARY KEY (name))%22;%0A%0Arequire('./helpers').allDrivers(%22sync-style transaction%22, function (conn, t) %7B%0A%09t.plan(3)%0A%0A%09conn.query(DROP, function (err) %7B /* swallow errors */ %7D)%0A%09conn.q...
5235263808b608f64fd359b4dc3d803db1ce667e
Create zh_tw.js
src/langs/zh_tw.js
src/langs/zh_tw.js
JavaScript
0.001413
@@ -0,0 +1,1290 @@ +/* ===========================================================%0A * zh_tw.js%0A * Traditional Chinese translation for Trumbowyg%0A * http://alex-d.github.com/Trumbowyg%0A * ===========================================================%0A * Author : Peter Dave Hello (PeterDaveHello)%0A * Twitt...
9b88b36ff1bd5f778b928eb6aab9310d60dc9928
Create test.js
assets/src/test/images/test.js
assets/src/test/images/test.js
JavaScript
0.000002
@@ -0,0 +1 @@ +%0A
ee3e4a943a7077547af7dffcb12c4c42b613efcb
Add working draft of a saving scenario
tests/e2e/saving-scenario_.js
tests/e2e/saving-scenario_.js
JavaScript
0.000001
@@ -0,0 +1,1032 @@ +'use strict';%0A%0A//https://github.com/angular/protractor/blob/master/docs/api.md%0A//GetAttribute() returns %22boolean%22 values and will return either %22true%22 or null%0Adescribe('Reports', function()%7B%0A%0A var id = '1fueA5hrxIHxvRf7Btr_J6efDJ3qp-s9KV731wDc4OOaw';%0A var Report = requi...
59ca7667af5e6ecd2e375426eae52916d8b7ca7b
Resolved question regarding struct types
specs/astruct.js
specs/astruct.js
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0.998409
@@ -2943,105 +2943,8 @@ ) %7B%0A - // TODO maybe require struct to be an instance of the Struct data object%0A // constructor.%0A
724e44ced255efd3fc155d1ed9759702e2e1ebcb
add iframe component
docs/src/Frame.js
docs/src/Frame.js
JavaScript
0.000001
@@ -0,0 +1,706 @@ +import React from 'react'%0Aimport ReactDOM from 'react-dom'%0Aimport %7BBorderBox%7D from '@primer/components'%0A%0Aexport default class Frame extends React.Component %7B%0A componentDidMount() %7B%0A this.doc = this.node.contentDocument%0A this.forceUpdate()%0A %7D%0A%0A render() %7B%0A ...
df3f4dcdf8dd0f3ee71e271b7b61d63dd0c19a14
create Item model (example)
src/models/Item.js
src/models/Item.js
JavaScript
0
@@ -0,0 +1,216 @@ +import %7B DatabaseModel %7D from './../../framework/dist/myfirebase'%0A%0Aclass Item extends DatabaseModel %7B%0A constructor(ref) %7B%0A super(ref)%0A %7D%0A%0A required() %7B%0A return %5B%5D%0A %7D%0A%7D%0A%0Aexport default Item;%0A
17a2a05136ab3432ce8734599a99003ffff416d3
put function after class in ApiClient to make some versions of babel happier. #31
src/ApiClient.js
src/ApiClient.js
/*global __SERVER__*/ import superagent from 'superagent'; import config from 'config'; function formatUrl(path) { let adjustedPath = path[0] !== '/' ? '/' + path : path; if (__SERVER__) { // Prepend host and port of the API server to the path. return 'http://localhost:' + config.apiPort + adjustedPath; ...
JavaScript
0
@@ -86,337 +86,8 @@ ';%0A%0A -function formatUrl(path) %7B%0A let adjustedPath = path%5B0%5D !== '/' ? '/' + path : path;%0A if (__SERVER__) %7B%0A // Prepend host and port of the API server to the path.%0A return 'http://localhost:' + config.apiPort + adjustedPath;%0A %7D%0A // Prepend %60/api%60 to relativ...
97b5b5dbbd42ed6f940ec606ee21fb4a7a481a32
Add macro
macro/pipeline.sjs
macro/pipeline.sjs
JavaScript
0.000003
@@ -0,0 +1,529 @@ +/*%0A * This file is part of pipeline.sjs%0A *%0A * Copyright (c) 2014 Andrew Lawson %3Chttp://adlawson.com%3E%0A *%0A * For the full copyright and license information, please view the LICENSE%0A * file that was distributed with this source code.%0A *%0A * @see https://github.com/adlawson/pipeline.s...
cb1b2b677230e8b7756518204edcce06334e8a7b
Add constants/actionTypes.js
frontend/constants/actionTypes.js
frontend/constants/actionTypes.js
JavaScript
0
@@ -0,0 +1,122 @@ +export const MOVE_PIECE = 'MOVE_PIECE';%0Aexport const HOLD_PIECE = 'HOLD_PIECE';%0Aexport const CHANGE_TURN = 'CHANGE_TURN';%0A
d830269b87bd4e4b8f32f8543528fb68b3f1318b
Create replacexml.js
replacexml.js
replacexml.js
JavaScript
0.000001
@@ -0,0 +1,1806 @@ +#! /usr/bin/env node%0A%0Avar path = require('path');%0Avar fs = require('fs');%0A%0Avar pathutils = require('pathutils');%0Avar dom = require('xmldom').DOMParser;%0Avar xpath = require('xpath');%0A%0Aif(process.argv.length == 2) %7B%0A console.log('Usage: replacexml %3C%5Bxpath=n...