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
910a58b14ea130115d01883432e86dfc8ebf7174
Create ghost.js
ghost.js
ghost.js
JavaScript
0.000001
@@ -0,0 +1,1474 @@ +window.addEventListener('load', onLoad, false);%0Afunction onLoad() %7B%0A var canvas = document.getElementsByTagName('canvas')%5B0%5D;%0A var context = canvas.getContext('2d');%0A%09draw_ghost(context, 400, 130);%0A%7D%0Afunction draw_ghost(ctx, center_x, center_y) %7B%0A %09this.x = cen...
07138562e63ddb905ec1ae582bda73e438dace2f
Update static/vendors/ace-builds/src-min/snippets/scheme.js
static/vendors/ace-builds/src-min/snippets/scheme.js
static/vendors/ace-builds/src-min/snippets/scheme.js
JavaScript
0
@@ -0,0 +1,131 @@ +define(%22ace/snippets/scheme%22,%5B%22require%22,%22exports%22,%22module%22%5D,function(e,t,n)%7B%22use strict%22;t.snippetText=undefined,t.scope=%22scheme%22%7D)
8e8533ca5735d7b872901c555bfe8f01505c1c1c
Fix resolve queueing
src/js/builtins/autobuilder.js
src/js/builtins/autobuilder.js
// Copyright (C) 2012,2013 Colin Walters <walters@verbum.org> // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2 of the License, or (at your option) any later versi...
JavaScript
0.000001
@@ -4159,16 +4159,38 @@ h.apply( +this._resolveSrcUrls, srcUrls)
41de9d0ac439057ce307bd62a2ecefa0e18a040a
bring events back to life
lib/multibrowser/instance.js
lib/multibrowser/instance.js
var webdriverio = require('../webdriverio'), child_process = require('child_process'), EventHandler = require('../utils/EventHandler'), PromiseHandler = require('../utils/PromiseHandler'), nonSeleniumCommands = require('./static').nonSeleniumCommands, chainIt = require('chainit'), path = require...
JavaScript
0
@@ -1114,24 +1114,545 @@ */%0A %7D;%0A%0A + this.onMessage = function(message) %7B%0A /**%0A * handling events%0A */%0A if(message.action === 'event') %7B%0A message.args.unshift(message.type);%0A message.args.push(message.instanceName);%0A return t...
7e2569db577c9dd247c803beb681ee226ea91637
Add Migration model
src/server/models/Migration.js
src/server/models/Migration.js
JavaScript
0
@@ -0,0 +1,830 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/. */%0A%0Aconst database = require('./database');%0A%0Aconst db = database.db;%0Aconst sqlFile = ...
69390a433d369316edb07150872aea287222b77a
Add HomeController test
tests/HomeController.spec.js
tests/HomeController.spec.js
JavaScript
0
@@ -0,0 +1,516 @@ +describe('HomeController', function() %7B%0A beforeEach(module('app'));%0A%0A var $controller;%0A%0A beforeEach(inject(function(_$controller_)%7B%0A $controller = _$controller_;%0A %7D));%0A%0A it('should have current year', function() %7B%0A var $scope = %7B%7D;%0A%0A var controller = ...
edd0a162bcbb4c27022deb5211f88199542d8fd4
Create 6kyu_the_hunger_games_foxes_and_chickens.js
Solutions/6kyu/6kyu_the_hunger_games_foxes_and_chickens.js
Solutions/6kyu/6kyu_the_hunger_games_foxes_and_chickens.js
JavaScript
0.000047
@@ -0,0 +1,743 @@ +var caged = new RegExp(/%5C%5B(%5BCF%5C.%5D+)%5C%5D/, 'g')%0Avar cage_remover = new RegExp(/%5C%5B%5BCF%5C.%5D+%5C%5D/, 'g')%0Avar outsiders = new RegExp(/(%5E%5BCF%5C.%5D+%5C%5B)%7C(%5C%5D%5BCF%5C.%5D+%5C%5B)%7C(%5C%5D%5BCF%5C.%5D+$)/, 'g')%0A%0A%0Avar hungryFoxes = function(farm) %7B%0A%0A // cag...
36a358a9460ec54648b154bba443f471654c084d
Add tests for queryManager macro + decorator
tests/unit/-private/query-manager-macro-decorator-test.js
tests/unit/-private/query-manager-macro-decorator-test.js
JavaScript
0
@@ -0,0 +1,2388 @@ +import EmberObject from '@ember/object';%0Aimport %7B queryManager, QueryManager %7D from 'ember-apollo-client';%0Aimport %7B module, test %7D from 'qunit';%0Aimport %7B setupTest %7D from 'ember-qunit';%0Aimport ApolloService from 'ember-apollo-client/services/apollo';%0A%0Aclass OverriddenApollo e...
042315600f1c421f88d93b76d9d0fe65d953e196
write utility function to format gps data
src/utils/format-gps-coords.js
src/utils/format-gps-coords.js
JavaScript
0.000002
@@ -0,0 +1,198 @@ +export default function formatGPSCoords(gpsData) %7B%0A const degrees = gpsData%5B0%5D;%0A const minutes = gpsData%5B1%5D;%0A const seconds = gpsData%5B2%5D;%0A return %60$%7Bdegrees%7D%C2%B0 $%7Bminutes%7D' $%7Bseconds%7D%22%60;%0A%7D
42bcd89d1ff9d21cc77fc388c81f95773b399866
create dummy test files - test to be written
test/index.js
test/index.js
JavaScript
0
@@ -0,0 +1,20 @@ +/*%0ATO BE WRITTEN%0A */
edf7fbb49be45baaf47c47b6c1f29d9e812bc8e0
Add failing tests
test/index.js
test/index.js
JavaScript
0.000032
@@ -0,0 +1,980 @@ +var assert = require('assert'),%0A%09capitalize = require('../index.js')%0A%0A%0Adescribe('Capitalizer', function () %7B%0A%0A%09it('Capitalizes the first letter of a string', function () %7B%0A%09%09assert.equal(capitalize('test'), 'Test')%0A%09%09assert.equal(capitalize.first('test'), 'Test')%0A%09...
37ff9eaba47cd63bab93a5cd0df6df14858878f4
add test case for type check
test/types.js
test/types.js
JavaScript
0
@@ -0,0 +1,354 @@ +var test = require('tape')%0Avar inject = require('../index.js')%0A%0Atest('invalid first argument', function (t) %7B%0A t.plan(1)%0A t.throws(function () %7B%0A var result = inject(%7B is: 'object' %7D, 'try', 1)%0A %7D)%0A%7D)%0A%0Atest('invalid third argument', function (t) %7B%0A t.plan(1)...
1114ca1ab651707abaf5d7505d9d5144cc1bbd89
fix assert usage mistake
test/app.js
test/app.js
var assert = require('assert') var express = require('..') var request = require('supertest') describe('app', function(){ it('should inherit from event emitter', function(done){ var app = express(); app.on('foo', done); app.emit('foo'); }) it('should be callable', function(){ var app = express(...
JavaScript
0
@@ -326,16 +326,22 @@ assert +.equal (typeof
165da3fd275f957fbaf3713bcdf63390e5198360
Create jquery.sortchildren.min.js
files/jquery.sortchildren/1.0.0/jquery.sortchildren.min.js
files/jquery.sortchildren/1.0.0/jquery.sortchildren.min.js
JavaScript
0.000002
@@ -0,0 +1,1166 @@ +/*!%0A * jQuery.sortChildren%0A *%0A * Version: 1.0.0%0A *%0A * Author: Rodney Rehm%0A * Web: http://rodneyrehm.de/%0A * See: http://blog.rodneyrehm.de/archives/14-Sorting-Were-Doing-It-Wrong.html%0A *%0A * @license%0A * MIT License http://www.opensource.org/licenses/mit-license%0A * GPL v3 http...
e967d9d1b3997baf6bb687cde319e9cae861d9f1
Add test for attempting to invalidly define signals.
tests/gtype-signal-exception.js
tests/gtype-signal-exception.js
JavaScript
0.000955
@@ -0,0 +1,908 @@ +#!/usr/bin/env seed%0A// Returns: 0%0A// STDIN:%0A// STDOUT:Signal definition needs name property%5CnSignal definition needs name property%0A// STDERR:%0A// Returns: 0%0A// STDIN:%0A// STDOUT:Hello%5CnGoodbye%0A// STDERR:%0A%0ASeed.import_namespace(%22Gtk%22);%0AGtk.init(null, null);%0A%0AHelloWindow...
af101b0bf43c4e5785c7104d738ab5e5806f58ed
Update static/js/pages/maps-vector.js
static/js/pages/maps-vector.js
static/js/pages/maps-vector.js
JavaScript
0
@@ -0,0 +1,1025 @@ +$( document ).ready(function() %7B%0A %0A %22use strict%22;%0A %0A jQuery('#vmap').vectorMap(%7B%0A map: 'world_en',%0A backgroundColor: '#fff',%0A borderColor: '#fff',%0A borderOpacity: 0.25,%0A borderWidth: 1,%0A color: '#e7e7e7',%0A ena...
53060d875854cb7b96f8231b1d948249d822eb1d
add Signature method testing
test/index.js
test/index.js
JavaScript
0
@@ -0,0 +1,1311 @@ +var expect;%0A%0A//Node.js%0Aif(typeof(module) !== 'undefined' && typeof(exports) !== 'undefined') %7B%0A expect = require('chai').expect;%0A var OAuth = require('../oauth-1.0a');%0A%7D else %7B //Browser%0A expect = chai.expect;%0A%7D%0A%0Adescribe(%22Signature method%22, function() %7B%0A...
44085d0fc3d6e75c86ab98d9d194f1a074d36698
add test suite
test/index.js
test/index.js
JavaScript
0
@@ -0,0 +1,1345 @@ +#!/usr/bin/env node%0A'use strict'%0Aconst chai = require('chai');%0Aconst jsObjectParser = require('../js-object-parser.js');%0Aconst path = require('path');%0A%0Aconst should = chai.should(),%0A assert = chai.assert,%0A expect = chai.expect;%0A%0Adescribe(%22js-object-parser%22, () =%3E ...
d3727d4f73f7facddd4ba93569b192f9b27b6bc5
Fix typo in test script
test/proxy.js
test/proxy.js
var fs = require('fs'); var http = require('http'); var https = require('https'); var cgi = require('cgi'); // The HTTPS SSL options var options = { key: fs.readFileSync(__dirname + '/ssl.key'), cert: fs.readFileSync(__dirname + '/ssl.crt') } var hander = cgi(__dirname + '/cgi-bin/nph-proxy.cgi', { nph: true, ...
JavaScript
0.000059
@@ -250,16 +250,17 @@ var hand +l er = cgi
4ad5f87c8456bfc99c67c8f9d52302964de13225
Add manifest.js to dummy app
spec/dummy/app/assets/config/manifest.js
spec/dummy/app/assets/config/manifest.js
JavaScript
0.000003
@@ -0,0 +1,101 @@ +//= link_tree ../images%0A//= link_directory ../javascripts .js%0A//= link_directory ../stylesheets .css%0A
ee7cb3ba9371428b71d4a7b3696525712a32f7d2
remove todo, mark score curve points as official (#10452)
lighthouse-core/audits/metrics/largest-contentful-paint.js
lighthouse-core/audits/metrics/largest-contentful-paint.js
/** * @license Copyright 2019 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
JavaScript
0
@@ -2091,99 +2091,309 @@ // -TODO: Reusing FCP's scoring curve. Set correctly once distribution of results is available. +75th and 95th percentiles HTTPArchive -%3E median and PODR.%0A // https://bigquery.cloud.google.com/table/httparchive:lighthouse.2020_02_01_mobile?pli=1%0A // Gives 2.5s roughly a score...
7fa0ffd3006f66dd779c62b9e5673fbd41a00ec6
Add module.api delegation layer for define, require, main, etc.
src/api/api.js
src/api/api.js
JavaScript
0
@@ -0,0 +1,403 @@ +module.api = def(%0A %5B%0A module.runtime%0A %5D,%0A %0A function (runtime) %7B%0A var delegate = function (method) %7B%0A return function () %7B%0A runtime%5Bmethod%5D.apply(null, arguments);%0A %7D;%0A %7D;%0A%0A return %7B%0A configure: delegate('configure'),...
2f9704e61715ef7089ac51bbcaea1485cb24d78e
Add emitter module
src/emitter.js
src/emitter.js
JavaScript
0.000001
@@ -0,0 +1,1046 @@ +var slice = %5B%5D.slice%0A%0Aexports = function(object) %7B%0A%0A object.on = function(name, fn, context, once) %7B%0A var map = this.listeners %7C%7C (this.listeners = Object.create(null))%0A var list = map%5Bname%5D %7C%7C (map%5Bname%5D = %5B%5D)%0A list.push(%7Bfn: fn, context: contex...
6020233fe8f953c8e34b29e73a92cd77a399c2e0
add copy of global handlers file to static/style/ko so that any bootstrap 3 updates that are needed do not affect functionality of original file
corehq/apps/style/static/style/ko/global_handlers.ko.js
corehq/apps/style/static/style/ko/global_handlers.ko.js
JavaScript
0
@@ -0,0 +1,1137 @@ +ko.bindingHandlers.hqbSubmitReady = %7B%0A update: function(element, valueAccessor) %7B%0A var value = (valueAccessor()) ? valueAccessor()() : null;%0A if (value)%0A $(element).addClass(%22btn-primary%22).removeClass(%22disabled%22);%0A else%0A $(element...
3685e07a4883435b33bf2bd52573120aedd1ecd8
add a test that mimics the shallowCopy method in nodevisitor
test/forin6.js
test/forin6.js
JavaScript
0
@@ -0,0 +1,379 @@ +%0Avar hasOwn = Object.prototype.hasOwnProperty;%0A%0Avar o = %7B a : 0, b : 1, c : 2, d : 3, e : 4, f : 5, g : 6, h : 7, i : 8 %7D;%0A%0Avar p = %7B%7D%0A%0Afor (var k in o) %7B%0A if (hasOwn.apply(o, %5Bk%5D)) %7B%0A p%5Bk%5D = o%5Bk%5D%0A %7D%0A%7D%0A%0Aconsole.log (p.a);%0Aconsole.log (p.b);...
1223bc355623ac602dbc2aa7012ff1dcfd7b63e2
Create test_team.js
app/unit_tests/test_team.js
app/unit_tests/test_team.js
JavaScript
0.000014
@@ -0,0 +1,246 @@ +describe(%22TeamApp module%22, function() %7B%0A%0A beforeEach(function () %7B%0A %0A module(%22teamApp%22,%22firebase%22);%0A %0A inject(function (_$controller_) %7B%0A %0A $controller = _$controller_;%0A %0A %7D);%0A %7D);%0A%7D);%0A
76a827a0fa33358ad7cdf65be381fc6d9ab8d993
Create module.js
module.js
module.js
JavaScript
0.000004
@@ -0,0 +1,59 @@ +typeof console != 'undefined' && console.log('module.js');%0A
1d1152c51d4c936ca5f46151214d427ded08553e
upgrade harpy and modify chart configs
src/main/webapp/js/app/services/harpy.js
src/main/webapp/js/app/services/harpy.js
JavaScript
0
@@ -0,0 +1,1979 @@ +/*global eyeballApp, Exos*/%0A%0AeyeballApp.service('harpy',function() %7B%0A%0A var prop, cfg;%0A%0A var baseConfig = %7B%0A backgroundColor: %7Bfill:'transparent'%7D,%0A legend : %7B%0A textStyle : %7B%0A color: '#FFF'%0A %7D%0A %7D,%...
b4ce2f951e5e49689cf9f9b6beb1764d32eca106
Add tests for getPageTitle
src/utils/__tests__/getPageTitle.spec.js
src/utils/__tests__/getPageTitle.spec.js
JavaScript
0
@@ -0,0 +1,913 @@ +import getPageTitle from '../getPageTitle';%0A%0Aconst baseTitle = 'Styleguide';%0A%0Adescribe('getPageTitle', () =%3E %7B%0A%09it('should return style guide title for the all view', () =%3E %7B%0A%09%09const result = getPageTitle(%5B%5D, baseTitle, 'all');%0A%09%09expect(result).toBe(baseTitle);%0A%...
544ae2408aad42edb13bf46328e34a337acafa78
add PathLocationStrategy support
addon/ng2/blueprints/ng2/files/config/environment.js
addon/ng2/blueprints/ng2/files/config/environment.js
JavaScript
0
@@ -0,0 +1,159 @@ +/* jshint node: true */%0A%0Amodule.exports = function(environment) %7B%0A return %7B%0A environment: environment,%0A baseURL: '/',%0A locationType: 'auto'%0A %7D;%0A%7D;%0A%0A
0ef1d4206db9c7bebb297dd815ce9f4668156d58
Create share-modal.js
__tests__/e2e/tests/share-modal.js
__tests__/e2e/tests/share-modal.js
JavaScript
0.000001
@@ -0,0 +1,696 @@ +const %7B WEB_ORIGIN %7D = require('../constants')%0A%0Amodule.exports = %7B%0A before: function (browser) %7B%0A browser%0A .url(%60$%7BWEB_ORIGIN%7D/%60)%0A%0A %7D,%0A 'Share Modal': function (browser) %7B%0A %0A browser.click(%60.mp-header__share%60)%0A browser.expect.e...
39c40f0804b740aa0bccf69e79ede3bebc67d743
add json bundler
src/commands/bundle/json.js
src/commands/bundle/json.js
JavaScript
0.000001
@@ -0,0 +1,1474 @@ +import %7B join as pathJoin %7D from %22path%22;%0Aimport %7B writeFile, shortHash, jsonStringify %7D from %22../../internal/util%22;%0A%0Aimport htmlParser from %22../../parser/html%22;%0Aimport ora from %22ora%22;%0Aimport prettyHr from %22pretty-hrtime%22;%0A%0Aexport default async function(eleme...
a59c282932cf469c4fa8ec9966650958a12ac512
update test code
test/CreateExp.js
test/CreateExp.js
JavaScript
0.000001
@@ -0,0 +1,516 @@ +%EF%BB%BF//create js expression%0Avar VerEx = require(%22verbal-expressions%22);%0Avar tester = VerEx()%0A .maybe(%22asasas%22)%0A .maybe(%2212121212%22)%0A .maybe(%22_#$%22)%0A .maybe(%22%E6%B1%89%E5%AD%97%22)%0A .endOfLine();%0A%0A //.startOfLine()%0A //.then(%22http%22)%0A ...
384b01c59836036435df96508ad9c01e2cbddeb6
add JSDoc JSON configuration related test
test/conf.spec.js
test/conf.spec.js
JavaScript
0
@@ -0,0 +1,3536 @@ +(function () %7B%0A%0A // core modules%0A var path = require('path');%0A // dep modules%0A var _ = require('lodash');%0A // own modules%0A var jsdocx = require('../src/index'),%0A helper = require('../src/lib/helper');%0A%0A describe('JSDoc configuration JSON (options suc...
2580ffb35b6da08d5afcc6b9183408ba4badb008
Increase column width offset to avoid horizontal scrolling
app/public/js/tt.view.js
app/public/js/tt.view.js
// Functions related to rendering and attaching DOM elements var TT = TT || {}; TT.View = (function () { var pub = {}; pub.MIN_COLUMN_WIDTH = 240; pub.Templates = {}; var initClickHandlers = function (context) { $(context || 'body').find('[data-click-handler]').each(function () { // window.consol...
JavaScript
0
@@ -1528,17 +1528,17 @@ fset = 1 -4 +8 ;%0A va
c52c13d4a83b59496a964cc08a8dc4c25a1d4403
Add simple test case for organismDetails helper
tests/jsx/helpers/organismDetailsSpec.js
tests/jsx/helpers/organismDetailsSpec.js
JavaScript
0.000002
@@ -0,0 +1,742 @@ +// chai is an assertion library%0Alet chai = require('chai');%0A%0A// @see http://chaijs.com/api/assert/%0Alet assert = chai.assert;%0A%0A// register alternative styles%0A// @see http://chaijs.com/api/bdd/%0Achai.expect();%0Achai.should();%0A%0A// fs for reading test files%0Alet fs = require('fs');%0...
8553006d9970bec3d43c97e79027b8c4dd947193
Add dynamicDirective directive
app/js/arethusa.core/directives/dynamic_directive.js
app/js/arethusa.core/directives/dynamic_directive.js
JavaScript
0.07785
@@ -0,0 +1,459 @@ +%22use strict%22;%0A%0Aangular.module('arethusa.core').directive('dynamicDirective', %5B%0A '$compile',%0A function($compile) %7B%0A return %7B%0A restrict: 'A',%0A scope: %7B%0A directive: '@dynamicDirective'%0A %7D,%0A link: function(scope, element, attrs) %7B%0A ...
31c9de2ed172c6cc4442ff81b0fc2c169aa2ffc6
Implement Ser Gregor Clegane (FotS) (#2565)
server/game/cards/14-FotS/SerGregorClegane.js
server/game/cards/14-FotS/SerGregorClegane.js
JavaScript
0
@@ -0,0 +1,793 @@ +const DrawCard = require('../../drawcard');%0A%0Aclass SerGregorClegane extends DrawCard %7B%0A setupCardAbilities() %7B%0A this.forcedReaction(%7B%0A when: %7B%0A afterChallenge: event =%3E this.isParticipating() && event.challenge.isMatch(%7B winner: this.control...
bcb08875f60666297ed4f7ad00255b11e2da719a
Implement Scaling the Wall (#985)
server/game/cards/events/07/scalingthewall.js
server/game/cards/events/07/scalingthewall.js
JavaScript
0
@@ -0,0 +1,1138 @@ +const DrawCard = require('../../../drawcard.js');%0A%0Aclass ScalingTheWall extends DrawCard %7B%0A setupCardAbilities() %7B%0A this.reaction(%7B%0A when: %7B%0A afterChallenge: (event, challenge) =%3E (%0A challenge.winner === this.controller &...
5eeb84598844087c405c514d4d9389abf5e21b7b
Test for load()
test/test-load.js
test/test-load.js
JavaScript
0
@@ -0,0 +1,558 @@ +process.mixin(require('./common'));%0A%0Avar%0A FILE = path.join(path.dirname(__filename), 'load.dirty'),%0A%0A TEST_ID = 'you-get-deleted',%0A TEST_DOC = %7BmakesMe: 'sad'%7D,%0A TEST_ID2 = 'you-stay',%0A TEST_DOC2 = %7BmakeMe: 'happy'%7D,%0A%0A db1 = new Dirty(FILE);%0A%0Adb1.set(TEST_ID, TES...
cf09b56f56f31b57b572156da7e7e43a7c6f4905
Add a maintenance script for counting the total number of entries
maintenance/count-entries.js
maintenance/count-entries.js
JavaScript
0.000001
@@ -0,0 +1,767 @@ +/*jslint node: true */%0A%0A/*%0A * Count all of the entries. Each Response object holds an array of one or more entries.%0A *%0A * Usage:%0A * $ envrun -e my-deployment.env node find-plural-entries.js%0A *%0A */%0A'use strict';%0A%0Avar mongo = require('../lib/mongo');%0Avar Response = require('.....
75cf184a76dd67d6e9828a1418d7a5a671cf1e3b
rename token to key in pendingCredentials to reduce confusion
packages/oauth/pending_credentials.js
packages/oauth/pending_credentials.js
// // When an oauth request is made, Meteor receives oauth credentials // in one browser tab, and temporarily persists them while that // tab is closed, then retrieves them in the browser tab that // initiated the credential request. // // _pendingCredentials is the storage mechanism used to share the // credential bet...
JavaScript
0
@@ -415,21 +415,19 @@ %0A// Has -to ke -n +y , creden @@ -621,21 +621,19 @@ eIndex(' -to ke -n +y ', %7Buniq @@ -1087,21 +1087,19 @@ res the -to ke -n +y and cre @@ -1227,39 +1227,27 @@ /%0A// @param -credentialTo ke -n +y %7Bstring%7D%0A// @@ -1345,31 +1345,19 @@ nction ( -credentialTo ke -n +y , c...
09a2c5cf9cefdaee77db4f1def6b63fdd1c64143
Write tests for spec.js
test/unit/spec.js
test/unit/spec.js
JavaScript
0.000009
@@ -0,0 +1,906 @@ +/* global beforeEach, describe, it */%0A/* jshint maxlen: 200 */%0A'use strict';%0A%0Avar assert = require('proclaim');%0A%0Adescribe('spec', function () %7B%0A var createSpec;%0A%0A beforeEach(function () %7B%0A createSpec = require('../../lib/spec');%0A %7D);%0A%0A it('should be ...
a0bd2fb6583a7a7eff366c6d31f38d4007c9e48c
Fix typo in date parsing code
src/twig.functions.js
src/twig.functions.js
// Twig.js // Copyright (c) 2011-2012 John Roepke // 2012 Hadrien Lanneau // Available under the BSD 2-Clause License // https://github.com/justjohn/twig.js // ## twig.functions.js // // This file handles parsing filters. var Twig = (function (Twig) { // Determine object type ...
JavaScript
0.022796
@@ -5460,20 +5460,8 @@ 1000 -, new Date() );%0A
754fe199dfc666f493615b7af8c22d2c88388bbc
add segmentio javascript file
totalimpactwebapp/static/js/segmentio.js
totalimpactwebapp/static/js/segmentio.js
JavaScript
0
@@ -0,0 +1,644 @@ +var analytics=analytics%7C%7C%5B%5D;(function()%7Bvar e=%5B%22identify%22,%22track%22,%22trackLink%22,%22trackForm%22,%22trackClick%22,%22trackSubmit%22,%22page%22,%22pageview%22,%22ab%22,%22alias%22,%22ready%22,%22group%22%5D,t=function(e)%7Breturn function()%7Banalytics.push(%5Be%5D.concat(Array.pr...
fe4d5a7cd83b285ebc804745cc3b6c12007623cb
add new file has the wow js JS code
app/assets/javascripts/init_wow.js
app/assets/javascripts/init_wow.js
JavaScript
0
@@ -0,0 +1,71 @@ +$( document ).on('turbolinks:load', function() %7B%0A new WOW().init();%0A%7D)
7f98d026ef9800b4fb26fd6255380f395449f82a
Create contentful-example-page.js
scripts/contentful/config-files/contentful-example-page.js
scripts/contentful/config-files/contentful-example-page.js
JavaScript
0.000001
@@ -0,0 +1,586 @@ +import React from 'react';%0Aimport %7B graphql, useStaticQuery %7D from 'gatsby';%0A%0Aconst ContentfulExamplePage = () =%3E %7B%0A const data = useStaticQuery(graphql%60%0A query %7B%0A flipbook(slug: %7B eq: %22how-bionic-eyes-will-progress%22 %7D) %7B%0A title%0A subhead%0A...
d2d710da1195823b6b41491573aca436d5d5797c
Create CheckCorrectParentheses.js
Short/CheckCorrectParentheses.js
Short/CheckCorrectParentheses.js
JavaScript
0
@@ -0,0 +1,70 @@ +k=readline()%0Awhile((c=k.replace(%22()%22,%22%22))!=k)k=c;%0Aprint(c?false:true)%0A
df1a48b18413dcf282fa162bb5eed6af4a9d0e8f
Improve Castform's stats
mods/springrandom/pokedex.js
mods/springrandom/pokedex.js
JavaScript
0.000001
@@ -0,0 +1,1325 @@ +exports.BattlePokedex = %7B%0Acastform:%7Bnum:351,species:%22Castform%22,types:%5B%22Normal%22%5D,baseStats:%7Bhp:100,atk:100,def:100,spa:100,spd:100,spe:100%7D,abilities:%7B0:%22Forecast%22%7D,heightm:0.3,weightkg:0.8,color:%22White%22,eggGroups:%5B%22Fairy%22,%22Amorphous%22%5D,otherFormes:%5B%22c...
996b289afc2f6ed7b928ebe2e368a13f4385a81f
add fixtures
server/fixtures.js
server/fixtures.js
JavaScript
0.000001
@@ -0,0 +1,396 @@ +if (Posts.find().count() === 0) %7B%0A Posts.insert(%7B%0A title: 'Introducing Telescope',%0A author: 'Sacha Greif',%0A url: 'http://sachagreif.com/introducing-telescope/'%0A %7D);%0A%0A Posts.insert(%7B%0A title: 'Meteor',%0A author: 'Tom Coleman',%0A url: 'http://meteor.com'%0A...
d8228bcdfffa935d4382b2fdb93c8bc28c08269a
Remove commented-out line in webpack
webpack.dev.js
webpack.dev.js
/* global module, __dirname, require */ const path = require('path'); const webpack = require('webpack'); const merge = require('webpack-merge'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HOST = 'localhost'; const PORT = '8080'; module.exports = merge.smart(require('./webpack.base.js'), ...
JavaScript
0
@@ -1574,51 +1574,8 @@ ue,%0A - // devTool: 'cheap-module-source-map',%0A
b733508284e8d48a513dd85e6984abaa6a078df4
Add sane policies for impersonation
server/policies.js
server/policies.js
JavaScript
0.00001
@@ -0,0 +1,410 @@ +let f = require('futil-js')%0A%0Amodule.exports = %7B%0A impersonate: async (req, res, %7Bid%7D) =%3E %7B%0A if (!id %7C%7C !req.tokenPayload) throw new Error('403 Forbidden')%0A let currentUser = req.tokenPayload.user.id%0A let sameUser = id === currentUser%0A%0A if (sameUser) throw new...
8a9bd267941316533126ac9f388ee5edbcbd8247
add win route
routes/win.js
routes/win.js
JavaScript
0.000001
@@ -0,0 +1,827 @@ +var request = require('request');%0A%0Amodule.exports = function (app) %7B%0A%0A app.post('/win', function (req, res) %7B%0A%0A var flubrUrl = 'http://flubr.herokuapp.com/api/images/random/pass';%0A%0A request(flubrUrl, function (error, response, body) %7B%0A if (!error && response.status...
91891a5686210349c37377d2c83aa8cdaab805c7
create unsplash.js and add phony output
unsplash.js
unsplash.js
JavaScript
0
@@ -0,0 +1,50 @@ +#! /usr/bin/env node%0A%0Aconsole.log(%22Hello world%22);%0A
3fd209cfb88a0f29ec07527cfbbd7eb362add843
Create 168_excel_sheet_column_title.js
168_excel_sheet_column_title.js
168_excel_sheet_column_title.js
JavaScript
0.001145
@@ -0,0 +1,269 @@ +/**%0A * @param %7Bnumber%7D n%0A * @return %7Bstring%7D%0A */%0Avar convertToTitle = function(n) %7B%0A var result = '';%0A while(n%3E0)%7B%0A var temp = n%2526==0?26:n%2526;%0A result=String.fromCharCode(temp+64)+result;%0A n-=temp;%0A n/=26;%0A %7D%0A return...
e6230f95d1cf32f619a9eced4cf30c7eb7953641
Create worldbounds.js
worldbounds.js
worldbounds.js
JavaScript
0.000001
@@ -0,0 +1,1363 @@ +game.module(%0A%09'plugins.worldbounds'%0A)%0A.body(function() %7B%0A%0Agame.collideWorldBounds = %7B%0A%0A%09bounds: %7B%0A%09%09top: true,%0A%09%09right: true,%0A%09%09bottom: true,%0A%09%09left: true%0A%09%7D,%0A%0A%09add: function(sprite, body, bounds) %7B%0A%09%09this.sprite = sprite;%0A%09%09t...
fde5e90ac532aee44e8b3f1aabc85e5842603a1f
Create helloWorld.js
helloWorld.js
helloWorld.js
JavaScript
0.999843
@@ -0,0 +1,1012 @@ +/*%0Avar l = false;%0AsetInterval(function() %7B%0A l = !l;%0A LED1.write(l);%0A%7D, 500);%0A*/%0A%0A//reset();%0A%0Afunction onInit() %7B%0A console.log(%22Modded%22);%0A digitalWrite(%5BLED1,LED2,LED3%5D,0b100);%0A setTimeout(%22digitalWrite(%5BLED1,LED2,LED3%5D,0b010);%22, 1000);%0A setTim...
cf62ffd16cc5e4e3de2aa206e8a4dd99c4dba569
Send proper HTTP status codes for wax failures.
server/wax.js
server/wax.js
var _ = require('underscore'), Step = require('step'), models = require('models'), path = require('path'); module.exports = function(app, settings) { // Loader for layers. Validates `req.query` to ensure it is usable. function load(req, res, next) { var valid = (_.isString(req.query.el) && ...
JavaScript
0
@@ -513,30 +513,24 @@ return -next(new Error +res.send ('Invali @@ -535,23 +535,22 @@ lid +re que -ry string.') +st.', 400 );%0A%0A @@ -1259,22 +1259,16 @@ -next(new Error +res.send ('In @@ -1290,17 +1290,21 @@ cified.' -) +, 400 );%0A @@ -1996,16 +1996,16 @@ %5B%5D=55.8%0A + // - @@ -2049,2...
75aa8d2098f0abea1804680ad5171bc0d2cf3377
Fix JS files not matching JSCS ruleset
horizon/static/horizon/js/angular/directives/serialConsole.js
horizon/static/horizon/js/angular/directives/serialConsole.js
/* Copyright 2014, Rackspace, US, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
JavaScript
0
@@ -909,17 +909,16 @@ le%0A * - %0A * @ @@ -3171,8 +3171,9 @@ );%0A%7D()); +%0A
da942e22abdc27315182ae35937ee89e338b48b1
Add stub file for "kindergarten garden" exercise (#770)
exercises/kindergarten-garden/kindergarten-garden.js
exercises/kindergarten-garden/kindergarten-garden.js
JavaScript
0
@@ -0,0 +1,280 @@ +//%0A// This is only a SKELETON file for the 'Kindergarten Garden' exercise.%0A// It's been provided as a convenience to get you started writing code faster.%0A//%0A%0Aexport class Garden %7B%0A%0A constructor() %7B%0A throw new Error('Remove this statement and implement this function');%0A %7D%...
07174368c6c33af127a356329389e8792b9604dc
add mediaList config to generic mediaListService
grails-app/assets/javascripts/streama/services/media-list-service.js
grails-app/assets/javascripts/streama/services/media-list-service.js
JavaScript
0
@@ -0,0 +1,1746 @@ +'use strict';%0A%0Aangular.module('streama').factory('mediaListService', function () %7B%0A var LIST_MAX = 30;%0A%0A return%7B%0A init: function (enpoint) %7B%0A var mediaListConfig = %7B%0A total: 0,%0A currentSort: %7Bsort: 'title', order: 'ASC'%7D,%0A list: %5B%5D,%...
220b66acbb398fac18fe98979908f194ea2aa90d
use latest theme-data
packages/text-link/src/__stories__/TextLink.new-stories.js
packages/text-link/src/__stories__/TextLink.new-stories.js
JavaScript
0
@@ -0,0 +1,787 @@ +import React from %22react%22;%0Aimport %7B ArgsTable, Primary %7D from %22@storybook/addon-docs%22;%0A%0Aimport TextLink from %22../index%22;%0Aimport %7B availableTargets %7D from %22../targets%22;%0Aimport Readme from %22../../README.md%22;%0A%0Aexport default %7B%0A title: %22Components/TextLink...
21d6e2bc8f7913b33d611cfd33400f80f7fee56c
Fix regex in javascript.js to remove semicolon(;)
application/app/scripts/services/fileTypes/javascript.js
application/app/scripts/services/fileTypes/javascript.js
/** * Prepros * (c) Subash Pathak * sbshpthk@gmail.com * License: MIT */ /*jshint browser: true, node: true, loopfunc: true*/ /*global prepros, _*/ prepros.factory('javascript', [ 'config', 'utils', function ( config, utils ) { 'use strict'; var fs = require('f...
JavaScript
0.003062
@@ -2836,16 +2836,18 @@ ace(/'%7C%22 +%7C; /gi, '') @@ -7389,8 +7389,9 @@ %7D%0A%5D); +%0A
538f2f19a0f83436d6b622d83140a58f8070a595
Create buffers.js
ExampleScripts/agario-bots2/buffers.js
ExampleScripts/agario-bots2/buffers.js
JavaScript
0.00001
@@ -0,0 +1,774 @@ +const Writer = require('./writer')%0A%0Amodule.exports = %7B%0A protocolVersion(version)%7B%0A const writer = new Writer(5)%0A writer.writeUint8(254)%0A writer.writeUint32(version)%0A return writer.buffer%0A %7D,%0A clientVersion(version)%7B%0A const writer...
9461bc93ba7eca6c26fefd155372217a27628fb3
Update project layzr.js to 1.2.2
files/layzr.js/1.2.2/layzr.min.js
files/layzr.js/1.2.2/layzr.min.js
JavaScript
0
@@ -0,0 +1,2395 @@ +!function(t,i)%7B%22function%22==typeof define&&define.amd?define(%5B%5D,i):%22object%22==typeof exports?module.exports=i():t.Layzr=i()%7D(this,function()%7B%22use strict%22;function t(t)%7Bthis._lastScroll=0,this._ticking=!1,t=t%7C%7C%7B%7D,this._optionsSelector=t.selector%7C%7C%22%5Bdata-layzr%5D%...
b1915dec70a714548b82540829158fe684256ed0
add dummy test file
template/test/test.js
template/test/test.js
JavaScript
0.000001
@@ -0,0 +1,103 @@ +const test = require('ava');%0A%0A// TODO: Replace this%0Atest('template dummy test', t =%3E %7B%0A t.pass();%0A%7D);%0A
63f4b715595be3ccf04f484419fd4aa8354ac689
Make regex match case insensitive
share/spice/plos/spice.js
share/spice/plos/spice.js
// TODO // - Maybe facets with highlighted terms? // - How about some altmetrics? http://api.plos.org/alm/faq/ function ddg_spice_plos(request) { // Get query and exclude the trigger. var query = DDG.get_query().replace(/plos/, ""); // Check if response is OK. var status = request['responseHeader']['st...
JavaScript
0.999422
@@ -231,16 +231,17 @@ e(/plos/ +i , %22%22);%0A%0A
00087175b1f95aa89500b92c1a930fddb0a2ab03
add printer model
app/models/printer.js
app/models/printer.js
JavaScript
0
@@ -0,0 +1,233 @@ +import Model from %22ember-data/model%22;%0Aimport attr from %22ember-data/attr%22;%0Aimport %7B hasMany %7D from %22ember-data/relationships%22;%0A%0Aexport default Model.extend(%7B%0A name: attr(%22string%22),%0A user: hasMany(%22user%22, %7B%0A async: false%0A %7D)%0A%7D);%0A
c9c1501b2c00faa056833335eb3700a244ac3dce
Enable "allowTemplateLiterals" option on "quotes" rule
.eslintrc.js
.eslintrc.js
module.exports = { root: true, parserOptions: { ecmaVersion: 6, }, extends: 'eslint:recommended', env: { browser: false, node: true, }, globals: { }, rules: { /*** Possible Errors ***/ 'no-console': 0, 'no-template-curly-in-string': 2, 'no-unsafe-negation': 2, /*** Be...
JavaScript
0
@@ -1981,16 +1981,62 @@ 'single' +, %7B%0A 'allowTemplateLiterals': true,%0A %7D %5D,%0A '
6fec9d6e1c85d113246215421a2bb1634d68b535
Create handshake.js
plugins/common/tasks/handshake.js
plugins/common/tasks/handshake.js
JavaScript
0.000003
@@ -0,0 +1,104 @@ +module.exports = function handshake () %7B%0A this.tasks.create('authenticate', %5B 'admin', '1234' %5D);%0A%7D;%0A
7f74023a235f25d92bfd9caa980eb4232a1f5976
Add example.js for app gallery
example.js
example.js
JavaScript
0
@@ -0,0 +1,489 @@ +define(function(require) %7B%0A var Collection = require('streamhub-sdk/collection');%0A var View = require('streamhub-gallery');%0A%0A return function(el) %7B%0A var collection = new Collection(%7B%0A network: %22labs-t402.fyre.co%22,%0A environment: %22t402.liv...
01cac555801845fe5f13c0dca93d7f5888e61445
add Manager.js
js/Manager.js
js/Manager.js
JavaScript
0.000001
@@ -0,0 +1,594 @@ +var His = function(i, j, c)%0A%7B%0A%09this.x = i;%0A%09this.y = y;%0A%09this.color = c;%0A%7D%0A%0Avar manager =%7B%0A%09history:new Array(),%0A%09color :%22red%22,%0A%09setColor:function(x,y)%0A%09%7B%0A%09%09//alert(%22%22 + x + y);%0A%09%09if(myContain.setColor(x,y,this.color))%0A%09%09%7B%0A%09%...
ffac7b6cf359f481dcf156e350eb21eb0f33f331
Add a localization for Chinese
lang/zh-cn.js
lang/zh-cn.js
JavaScript
0.997804
@@ -0,0 +1,72 @@ +CKEDITOR.plugins.setLang( 'lineheight', 'zh-cn', %7B%0A title: '%E8%A1%8C%E9%AB%98',%0A%7D );
42d24a94c593db8c180e1f45d724ecb74dc55a2b
Create Pointwise_SqueezeExcitation.js
CNN/Conv/Pointwise/Pointwise_SqueezeExcitation.js
CNN/Conv/Pointwise/Pointwise_SqueezeExcitation.js
JavaScript
0
@@ -0,0 +1,407 @@ +export %7B Base %7D;%0A%0A//import * as FloatValue from %22../../Unpacker/FloatValue.js%22;%0A//import * as ValueDesc from %22../../Unpacker/ValueDesc.js%22;%0A//import * as Weights from %22../../Unpacker/Weights.js%22;%0Aimport * as BoundsArraySet from %22../BoundsArraySet.js%22;%0Aimport %7B Base %...
c7002033eab222c838fba912f663e7f7a40ce40b
Fix incorrectly minified file
files/json-minify/0.1/minify.json.min.js
files/json-minify/0.1/minify.json.min.js
/*! JSON.minify() v0.1 (c) Kyle Simpson -- MIT License */ (function(e){"undefined"!=typeof e.JSON&&e.JSON||(e.JSON={});e.JSON.a=function(e){var k=/"|(\/\*)|(\*\/)|(\/\/)|\n|\r/g,d=!1,a=!1,b=!1,c,f,g=[],l=0,h=0,m,n;for(k.lastIndex=0;c=k.exec(e);)m=RegExp.leftContext,n=RegExp.rightContext,a||b||(f=m.substring(h),d||(f=f....
JavaScript
0.000009
@@ -12,10 +12,48 @@ nify -() + %3Chttps://github.com/getify/JSON.minify%3E v0. @@ -74,11 +74,9 @@ pson - -- +. MIT @@ -87,17 +87,17 @@ ense */%0A -( +! function @@ -97,17 +97,17 @@ unction( -e +a )%7B%22undef @@ -124,25 +124,25 @@ eof -e +a .JSON&& -e +a .JSON%7C%7C( e.JS @@ -137,17 +137,17 @@ .JSON%7C%...
de57019a64d2ced61f3bdb9dd21a973adf8f0a21
Create script to automatically create the list for Recommended Family Constellations.
updates/0.0.1-list_recommended-family-constellations.js
updates/0.0.1-list_recommended-family-constellations.js
JavaScript
0
@@ -0,0 +1,420 @@ +exports.create = %7B%0A%09'Recommended Family Constellation': %5B%7B%0A%09%09familyConstellation: '2-parent (male and female)'%0A%09%7D, %7B%09%0A%09%09familyConstellation: '2-parent (females)'%0A%09%7D, %7B%09%0A%09%09familyConstellation: '2-parent (males)'%0A%09%7D, %7B%0A%09%09familyConstellation:...
e2431dbffc288ff6735724773be4414e5c25f0a4
Add specs for grid controller
src/app/bookmarks/cards-grid/cards-grid.controller.spec.js
src/app/bookmarks/cards-grid/cards-grid.controller.spec.js
JavaScript
0
@@ -0,0 +1,1431 @@ +import CardsGridCtrl from './cards-grid.controller';%0A%0Aimport * as Id from '../bookmark/id';%0Aimport * as Bookmark from '../bookmark/bookmark.entity';%0A%0Adescribe('The %60CardsGrid%60 controller', () =%3E %7B%0A let ctrl, bookmarks, selector;%0A beforeEach(() =%3E %7B%0A bookmarks = jasmi...
b7837cf99f7ad5f61824aded4dd58cea8a2c4054
add additional tests for handling multiple stores
test/multiple.test.js
test/multiple.test.js
JavaScript
0
@@ -0,0 +1,1575 @@ +describe('multiple stores', () =%3E %7B%0A test('should not throw if multiple stores', () =%3E %7B%0A const %7B init %7D = require('../src')%0A const store1 = init(%7B%7D)%0A expect(() =%3E init(%7B%7D)).not.toThrow()%0A %7D)%0A%0A test('should store state for multiple stores', () =%3E %...
80fbcf8cc6242eb76d056d28307c9e44b7a9eeae
Fix highlight of ASP terms
resources/js/ace/mode/mode-asp.js
resources/js/ace/mode/mode-asp.js
define('ace/mode/asp', [], function (require, exports, module) { var oop = require("ace/lib/oop"); var TextMode = require("ace/mode/text").Mode; var Tokenizer = require("ace/tokenizer").Tokenizer; var aspHighlightRules = require("ace/mode/asp_highlight_rules").aspHighlightRules; var Mode = functio...
JavaScript
0.000313
@@ -2768,14 +2768,22 @@ x: %22 +%5C%5Cs* %5B,%7C.%5D* +%5C%5Cs* %22,%0A @@ -2997,12 +2997,13 @@ htRules;%0A%7D); +%0A
39f071b8c2b23824360945008e65d945b3c4c6e1
Create captcha.js
js/captcha.js
js/captcha.js
JavaScript
0.000004
@@ -0,0 +1,381 @@ +%0A function Draw()%0A %7B%0A var chars = %220123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz%22;%0A%09var string_length = 4;%0A%09var randomstring = '';%0A%09for (var i=0; i%3Cstring_length; i++) %7B%0A%09%09var rnum = Math.floor(Math.random() * chars.length);%0A%09%09random...
3e666a46b6cdd6d45f9c725f19ea0a0478431a2a
add ChangePasswordDialog component
renderer/components/Settings/Security/ChangePasswordDialog.js
renderer/components/Settings/Security/ChangePasswordDialog.js
JavaScript
0.000001
@@ -0,0 +1,3089 @@ +import React, %7B useEffect, useRef %7D from 'react'%0Aimport PropTypes from 'prop-types'%0Aimport %7B Flex %7D from 'rebass/styled-components'%0Aimport %7B FormattedMessage, useIntl %7D from 'react-intl'%0Aimport %7B Dialog, Heading, Message, Button, DialogOverlay %7D from 'components/UI'%0Aimport ...
14e1ce3a83145879c9f354c049d13b2bc90a43de
Create drag.js
html/chapter/lib/controls/drag.js
html/chapter/lib/controls/drag.js
JavaScript
0.000002
@@ -0,0 +1,1739 @@ +/**%0A * Created by tlzhang on 2015/6/4.%0A */%0Avar Drag = (function()%7B%0A function Drag(layer) %7B%0A this.layer = layer;%0A this.elem = layer.elem;%0A this.active();%0A this.dragging = false;%0A %7D%0A%0A Drag.prototype.startPan = function(e) %7B%0A t...
c8371e2b7e45b64b5b1aef195b3de0d21b75540a
Add database migration to add an index to event dateTime field, to speed up reporting queries that generate CSV files.
migrations/20200221232549-add-index-to-event-datetime.js
migrations/20200221232549-add-index-to-event-datetime.js
JavaScript
0
@@ -0,0 +1,310 @@ +'use strict';%0A%0Amodule.exports = %7B%0A up: async queryInterface =%3E %7B%0A await queryInterface.sequelize.query(%0A %60CREATE INDEX events_datetime ON %22Events%22 (%22dateTime%22);%60%0A );%0A %7D,%0A%0A down: async queryInterface =%3E %7B%0A await queryInterface.sequelize.quer...
207496c546e979dd5af49d410655849d66935a51
add itemprop to head-tag test
tests/integration/components/head-tag-test.js
tests/integration/components/head-tag-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import Ember from 'ember'; const keys = Object.keys || Ember.keys; moduleForComponent('head-tag', 'Integration | Component | head tag', { integration: true }); test('it render correct tagName', function(assert) { ...
JavaScript
0
@@ -1127,16 +1127,32 @@ roperty' +,%0A 'itemprop' %0A %5D).fo
7afd90a077aa6fcfff77b6ec766d90eb932ef9bf
Fix merge conflict
server/database/db.js
server/database/db.js
/* * @Author: kuychaco * @Date: 2015-05-28 15:33:28 * @Last Modified by: kuychaco * @Last Modified time: 2015-06-01 23:06:42 */ 'use strict'; var config = require('../../build-config'); var pg = require('pg'); var Promise = require('bluebird'); var readFile = Promise.promisify(require('fs').readFile); // creat...
JavaScript
0.000013
@@ -83,51 +83,8 @@ aco%0A -* @Last Modified time: 2015-06-01 23:06:42%0A */%0A%0A @@ -163,24 +163,61 @@ uire('pg');%0A +var fs = require('fs');%0A%0A%3C%3C%3C%3C%3C%3C%3C HEAD %0Avar Promise @@ -1369,8 +1369,905 @@ client;%0A +=======%0A// var conString = %22postgres://root:root@localhost/constellation%22;%0A// cr...
6f98663414bb51a28acdfa8f9d4321fa0bb27e18
Add proxy.pac for later use
www/proxy.pac
www/proxy.pac
JavaScript
0
@@ -0,0 +1,332 @@ +function FindProxyForURL(url, host) %7B%0A var proxy = %22PROXY nan.campjs:3128%22;%0A var direct = %22DIRECT%22;%0A%0A if(dnsDomainIs(host, %22.lvh.me%22)) %7B%0A return direct;%0A %7D%0A%0A // no proxy for local hosts without domain:%0A if(isPlainHostName(host)) %7B%0A r...
bcdb2a26c424eb72d039bd265e64d7930383ce6a
add httpDataProxy
data_proxies/http/httpDataProxy.js
data_proxies/http/httpDataProxy.js
JavaScript
0
@@ -0,0 +1,1653 @@ +var axious = require('axios');%0A%0Avar HttpDataProxy = function(entity) %7B%0A this._url = %60/$%7Bentity%7D%60;%0A%7D;%0A%0AHttpDataProxy.prototype.getAll = function(done) %7B%0A axios.get(this._url)%0A .then(response =%3E done(null, response.data))%0A .catch(done);%0A%7D%0A%0AHttpDa...
eade5a2479ac7995bf9a92a2b055c2c5b123e4c6
Update comment
GridFromHtml.js
GridFromHtml.js
define(["./OnDemandGrid", "dojo/_base/declare", "dojo/_base/lang", "dojo/dom-construct", "dojo/_base/Deferred", "require"], function(OnDemandGrid, declare, lang, domConstruct, Deferred, require){ // This module supports parsing grid structure information from an HTML table. // This module does NOT support ColumnSets;...
JavaScript
0
@@ -3460,16 +3460,27 @@ this is +ultimately the same @@ -3490,16 +3490,22 @@ ing that +%0A%09%09%09// dojo.pa @@ -3508,22 +3508,16 @@ o.parser -%0A%09%09%09// does fo @@ -3522,56 +3522,15 @@ for -data-dojo-props - which is what we want to mimic +objects .%0A%09%09
1e2d200c76f51dc6963dde639f91af31887c62c9
Add grunt file containing a lint task.
Gruntfile.js
Gruntfile.js
JavaScript
0
@@ -0,0 +1,812 @@ +'use strict';%0A%0Amodule.exports = function (grunt) %7B%0A%0A // Load external grunt task config.%0A grunt.loadTasks('./grunt');%0A%0A grunt.loadNpmTasks('grunt-contrib-jshint');%0A grunt.loadNpmTasks('grunt-jscs');%0A %0A grunt.initConfig(%7B%0A config: %7B%0A fi...
27f0fd2ff2237ad336c4f5d4a35c59c17eb03310
add nytimes api call
js/nytimes.js
js/nytimes.js
JavaScript
0
@@ -0,0 +1,379 @@ +// NY Times%0A$(function() %7B%0A $.ajax( %22http://api.nytimes.com/svc/topstories/v1/home.json?api-key=a54637a5d4a3416bdf7326d3d7d5fc44:17:72024629%22, %7B%0A format: %22json%22,%0A method: %22GET%22%0A %7D)%0A .done(function( data ) %7B%0A $.each(data.results, function(i, result)%7B%0A ...
d43ec3030e61107926b063167e93cae41429fc5c
add minified version
public/js/filemanager.min.js
public/js/filemanager.min.js
JavaScript
0.000001
@@ -0,0 +1,326 @@ +window.filemanager=function()%7Bvar n=arguments.length%3E0&&void 0!==arguments%5B0%5D?arguments%5B0%5D:%22/filemanager%22,e=arguments.length%3E1&&void 0!==arguments%5B1%5D?arguments%5B1%5D:%22FileManager%22,i=arguments.length%3E2&&void 0!==arguments%5B2%5D?arguments%5B2%5D:%22width=900,height=600%22;...
507263e5723e1949330d3f7f26dbc386402332bf
Add MobileWindow which sets <meta> viewport tags
js/foam/ui/layout/MobileWindow.js
js/foam/ui/layout/MobileWindow.js
JavaScript
0
@@ -0,0 +1,993 @@ +/**%0A * @license%0A * Copyright 2015 Google Inc. All Rights Reserved.%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/l...
cc2042db51447e4c176fba1578410559c24879ef
Add master easteregg command
src/commands/eastereggs/master.js
src/commands/eastereggs/master.js
JavaScript
0.00008
@@ -0,0 +1,1670 @@ +let Command = require('../../structures/command');%0A%0Alet config = remConfig;%0Aclass Master extends Command %7B%0A constructor(%7Bt%7D) %7B%0A super();%0A this.cmd = 'master';%0A this.cat = 'eastereggs';%0A this.needGuild = false;%0A this.t = t;%0A thi...
d67c306f40f5c9226f9a676f6cff26f3fc22f8b3
add missing files
judge/static/js/editorsettings.js
judge/static/js/editorsettings.js
JavaScript
0.000004
@@ -0,0 +1,1036 @@ +var editor;%0A%0A$(function() %7B%0A editor = CodeMirror.fromTextArea(document.getElementById('code_editor'), %7B%0A lineNumbers: true,%0A styleActiveLine: true,%0A matchBrackets: true,%0A mode: 'text/x-csrc',%0A lineWrapping: true,%0A tab: 4,%0A i...
0423a4405b5be5381f0fb7e4cd56a3bdd945afac
Create modal that opens on keyboard shortcut "Alt-S".
jupyter-spark/extensions/spark.js
jupyter-spark/extensions/spark.js
JavaScript
0
@@ -0,0 +1,563 @@ +define(function () %7B%0A var show_running_jobs = function() %7B%0A%0A var element = 'fffffffff';%0A %0A var modal = Jupyter.dialog.modal(%7B%0A title: %22Running Spark Jobs%22,%0A body: element,%0A buttons: %7B%0A %22Close%22: %...
c03380ae250756b9b41ca300ec7c801ab9d5c75a
Initialize OpenStreetMap tileset
app/scripts/controllers/main.js
app/scripts/controllers/main.js
'use strict'; /** * @ngdoc function * @name sdPlaygroundsParksApp.controller:MainCtrl * @description * # MainCtrl * Controller of the sdPlaygroundsParksApp */ angular.module('sdPlaygroundsParksApp') .controller('MainCtrl', function () { });
JavaScript
0.000001
@@ -239,16 +239,22 @@ on ( +$scope ) %7B%0A %0A %7D @@ -249,15 +249,397 @@ ) %7B%0A +angular.extend($scope, %7B%0A defaults: %7B%0A tileLayer: 'http://%7Bs%7D.tile.osm.org/%7Bz%7D/%7Bx%7D/%7By%7D.png',%0A attribution: '&copy; %3Ca href=%22http://osm.org/copyright%22%3EOpenStreetMap%3C/a%...
0ffe7b65b72fe7c346cb187726d45bddb53e0665
Create main.js
js/main.js
js/main.js
JavaScript
0.000002
@@ -0,0 +1,396 @@ +function setup() %7B%0A noCanvas();%0A%0A var svg_width = window.innerWidth;%0A var svg_height = window.innerHeight;%0A var centerx = svg_width / 2;%0A var centery = svg_height / 2;%0A%0A var body = d3.select('body');%0A%0A var svg = body.append('svg')%0A .attr('width', svg_width)%0A .at...
f92fd952c405ca940eff1defdd7d98c929fc1464
Improve DetailPropertyView CSS.
src/foam/u2/DetailPropertyView.js
src/foam/u2/DetailPropertyView.js
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * 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 requir...
JavaScript
0
@@ -1022,33 +1022,33 @@ padding: -2 +4 px 8px 2px 6px;%0A @@ -1034,33 +1034,33 @@ ng: 4px 8px 2px -6 +8 px;%0A text @@ -1102,16 +1102,45 @@ n: top;%0A + white-space: nowrap;%0A %7D%0A
16515a67ff2943a91c4e5678840933460b53e9c0
Fix bug introduced in 6c82d36307. Newline broke JS
js/pomf.js
js/pomf.js
/** * Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com> * * 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, c...
JavaScript
0
@@ -3704,16 +3704,31 @@ me=%22' + +%0A escape(f @@ -3744,29 +3744,16 @@ + '%22%5D') - +%0A %5Bhits%5Bfi
fa38a3e837355ddeba1de40e4912e3ec4145f952
require username and email
client/lib/accounts.js
client/lib/accounts.js
JavaScript
0.99846
@@ -0,0 +1,69 @@ +Accounts.ui.config(%7B%0A passwordSignupFields: 'USERNAME_AND_EMAIL'%0A%7D);