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
862310138a7b4d83ba96f32cba19b0ea93906a6c
add brand data service
src/services/brand.js
src/services/brand.js
JavaScript
0
@@ -0,0 +1,63 @@ +export const name = 'Webcrow';%0Aexport const version = '1.0.0';%0A
29b40157fa0e01c8f9c989c77d7bd2d9788a5c6c
Add link to contentString in infow windows
static/js/cart-map.js
static/js/cart-map.js
$(function () { "use strict"; //Google maps initialization var mapOptions = { center: new google.maps.LatLng(-34.397, 150.644), zoom: 11, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map($("#map-canvas").get(0), mapOptions), markers ...
JavaScript
0
@@ -1782,17 +1782,48 @@ '%3C -p +a href=/carts/' + value._id + ' %3E' + val
aabb2035f591ebe161a37da77bcf12e9bfb9b0bc
Create robinhood.js
test/robinhood.js
test/robinhood.js
JavaScript
0.002133
@@ -0,0 +1,171 @@ +/**%0A * Robinhood API NodeJS Wrapper - Tests%0A * @author Alejandro U. Alvarez%0A * @license AGPLv3 - See LICENSE file for more details%0A * @version 0.0.1%0A */%0A%0A// Not ready yet%0A
5bc0f8d6603b437ef1994e53a835d1e88507aed6
Add js file to load templates and objects from specific urls
src/main/webapp/scripts/load.js
src/main/webapp/scripts/load.js
JavaScript
0
@@ -0,0 +1,740 @@ +/**%0A * Loads an array of urls using the loadFunction given by the user.%0A * Returns a promise.all of all the urls.%0A */%0Afunction loadUrls(urls, loadFunction) %7B%0A let promises = %5B%5D;%0A for (url of urls) %7B%0A let promise = loadFunction(url);%0A promises.push(promise);%0A %7D%0A ...
253faa292f626fc2bbc5ea36d0caa843336098cf
add github graphql client
src/github/graphql.js
src/github/graphql.js
JavaScript
0
@@ -0,0 +1,1430 @@ +var https = require('https');%0A%0Arequire('native-promise-only');%0A%0Afunction Request (options) %7B%0A var token = options.token;%0A var query = options.query;%0A var variables = options.variables %7C%7C %7B%7D;%0A%0A if (!token) %7B%0A throw Error('Missing GitHub token');%0A %7D else if ...
a45ba3c0722c9af6139b71de6cc4f5e9e1d6c9d0
Remove redundant field
karma.conf.js
karma.conf.js
module.exports = function (config) { var webpackConfig = require('./webpack.config.js'); config.set({ basePath: '', frameworks: ['mocha', 'sinon'], files: [ 'test/main.ts', 'test/**/*.test.ts', 'test/**/*.test.tsx', 'test/**/*.html' ], preprocessors: { 'test/main...
JavaScript
0.000003
@@ -506,38 +506,8 @@ %7D,%0A%0A - reporters: %5B'progress'%5D,%0A%0A
7a4856264317ab04395ce926c65b00d130642444
Replace wrong chromium flag
karma.conf.js
karma.conf.js
// Karma configuration // Generated on Wed Apr 06 2016 14:18:09 GMT+0200 (CEST) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/...
JavaScript
0.9988
@@ -1440,26 +1440,25 @@ '--j -s-flags=%22- +avascript -harmony %22', @@ -1457,9 +1457,8 @@ mony -%22 ', '
b30d41b4c479f80355ccff9377489385250eb5bd
change to PhantomJS
karma.conf.js
karma.conf.js
module.exports = function (config) { config.set({ basePath: '', frameworks: [ 'jasmine', 'requirejs', 'chai', 'chai-as-promised', 'sinon-chai', 'ng-scenario' ], // preprocessors: { // '**/*.html': ['ng-html2js'] // }, files: [ {pattern: 'bower_...
JavaScript
0.000028
@@ -1431,22 +1431,25 @@ sers: %5B' -Chrome +PhantomJS '%5D,%0A%0A
bf839cef609197c84f0629999b4acd18e75bd711
Add file for all browser globals
client/lib/browser.js
client/lib/browser.js
JavaScript
0
@@ -0,0 +1,413 @@ +/**%0A * Browser APIs%0A * Used in order for browser dependencies to be easily stubbed in tests%0A * @flow%0A */%0A%0A/**%0A * matchMedia%0A * https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia%0A */%0Aexport const matchMedia = global.matchMedia%0A%0A/**%0A * FormData%0A */%0Aexport c...
dce6f6ba0af831253b4351dd99735b3a28692335
Add tests for the Scrollbar component
test/components/Scrollbar/Scrollbar.spec.js
test/components/Scrollbar/Scrollbar.spec.js
JavaScript
0
@@ -0,0 +1,1630 @@ +import React from 'react';%0Aimport %7B mount %7D from 'enzyme';%0Aimport Scrollbar from '../../../src/components/Scrollbar/Scrollbar';%0A%0Adescribe('%3CScrollbar /%3E', function () %7B%0A beforeEach(function () %7B%0A this.update = sinon.spy();%0A %7D);%0A%0A describe('when mounted', functi...
7a1eef1379ab3a2c1d129cdde49e02a05eb9f820
Create visualization_example_2.js
animations/spiraly/visualization_example_2.js
animations/spiraly/visualization_example_2.js
JavaScript
0.000724
@@ -0,0 +1,585 @@ +// https://www.khanacademy.org/computer-programming/visualization-example-2/4958741536702464%0A%0A/**%0A * Visualization Example 2%0A * Raphael Rouvinov-Kats%0A */%0A%0AstrokeWeight(5);%0Avar draw = function() %7B%0A background(255, 255, 255);%0A %0A for(var theta = 0; theta %3C 360; theta +...
4bcec4c7a716f9f831e681f3f2c43da0064fe2f3
Add repeater
libs/repeater.js
libs/repeater.js
JavaScript
0.000485
@@ -0,0 +1,506 @@ +(function(module)%7B%0A var _ = require(%22underscore%22);%0A%0A function Repeater(func, subject, max)%7B%0A this.func = func;%0A this.count = 0;%0A this.max = max;%0A this.subject = subject;%0A%0A _.bindAll(this, '_callback');%0A %7D%0A%0A var fn = Repeater.prototype;%0A%0A fn.ca...
a941dcc471d71660b36fff683b3ac26b56ad5cc3
Add the Gate component
client/src/components/gate/Gate.js
client/src/components/gate/Gate.js
JavaScript
0
@@ -0,0 +1,272 @@ +import React from 'react'%0A%0Aexport default class Gate extends React.Component %7B%0A static propTypes = %7B%0A open: React.PropTypes.bool.isRequired,%0A children: React.PropTypes.node.isRequired,%0A %7D%0A%0A render() %7B%0A return this.props.open ? this.props.children : null%0A %7D%0...
b8a8bed1020c1ddc5174d95635be4a5815fab092
Add concatCssFiles
scripts/concatCssFiles.js
scripts/concatCssFiles.js
JavaScript
0.000003
@@ -0,0 +1,663 @@ +/*%0A Copyright (c) 2016, Nik Graf (https://www.draft-js-plugins.com)%0A https://raw.githubusercontent.com/draft-js-plugins/draft-js-plugins/master/scripts/concatCssFiles.js%0A*/%0A%0Aconst fs = require('fs');%0Aconst path = require('path');%0Aconst dirname = path.join(process.argv%5B2%5D, 'lib-css...
d9c1e2d3d4d29060a947d6d67cb025986f099e48
Add 'location-factory' for returning the current geolocation position.
app/location-factory.js
app/location-factory.js
JavaScript
0.000001
@@ -0,0 +1,631 @@ +'use strict';%0A%0Avar angular = require('angular');%0A%0Amodule.exports = angular.module('app').factory('locationFactory', function ($q) %7B%0A return %7B%0A getCurrentPosition: function () %7B%0A return $q(function (resolve, reject) %7B%0A function success(positi...
86b9840fdaa44248fe4462c9b3ce18023ad4d7a0
Create function.js
src/function.js
src/function.js
JavaScript
0.000016
@@ -0,0 +1,2670 @@ +/*#ifndef(UMD)*/%0A%22use strict%22;%0A/*global _gpfFunc*/ // Create a new function using the source%0A/*global _gpfJsCommentsRegExp*/ // Find all JavaScript comments%0A/*global _gpfStringReplaceEx*/ // String replacement using dictionary map%0A/*exported _GpfFunctionBuilder*/%0A/*#endif*/%0A%0Afunc...
5aede168e85b6ddda76d0978739efaf40f611235
Create imageUploader.js
imageUploader.js
imageUploader.js
JavaScript
0.000002
@@ -0,0 +1,2375 @@ + document.getElementById('files1').addEventListener('change', handleFileSelect1, false);%0A document.getElementById('files2').addEventListener('change', handleFileSelect2, false);%0A document.getElementById('files3').addEventListener('change', handleFileSelect3, false);%0A%0A function handleFileSel...
3890f660bc99dfa830a9fd039153d684266a85ba
Add endpoint chain tests
test/endpoint_test.js
test/endpoint_test.js
JavaScript
0.000001
@@ -0,0 +1,1327 @@ +'use strict';%0A%0Avar mocha = require('mocha')%0Avar coMocha = require('co-mocha')%0AcoMocha(mocha)%0A%0Avar assert = require('assert');%0Avar should = require('should');%0Avar util = require('util');%0Avar co = require('co');%0Avar isGenerator = require('is-generator');%0Avar isGeneratorFn = requi...
ae944c96ad2f83588f6cf4805a42b82bb1f69b9a
Add useAfterInteractions as a hook
src/hooks/useAfterInteractions.js
src/hooks/useAfterInteractions.js
JavaScript
0
@@ -0,0 +1,552 @@ +import %7B useEffect %7D from 'react';%0Aimport %7B InteractionManager %7D from 'react-native';%0Aimport %7B useIsFocused %7D from '@react-navigation/native';%0Aimport %7B useMountProtectedState %7D from './useMountProtectedState';%0A%0Aexport const useAfterInteractions = () =%3E %7B%0A const %5Brea...
c8b7927c889f8c6207e787f6e125b0daee2e656a
Fix Flow tests (#727)
src/users/UserItem.js
src/users/UserItem.js
/* @flow */ import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; import { Avatar, RawLabel, Touchable, UnreadCount } from '../common'; import { BRAND_COLOR } from '../styles'; const styles = StyleSheet.create({ row: { height: 44, flexDirection: 'row', alignItems: 'c...
JavaScript
0
@@ -757,16 +757,41 @@ oolean,%0A + showEmail?: boolean,%0A unre
3f28248d026e78404719dd0902f5a9554ac10a7c
Create Gruntfile.js
Gruntfile.js
Gruntfile.js
JavaScript
0.000001
@@ -0,0 +1,2221 @@ +module.exports = function(grunt) %7B%0A%0A // Project configuration.%0A grunt.initConfig(%7B%0A pkg: grunt.file.readJSON('package.json'),%0A uglify: %7B%0A main: %7B%0A src: 'js/%3C%25= pkg.name %25%3E.js',%0A dest: 'js/%3C%25= pkg.name %2...
cd7389b5f770b6047d4b7251b90a7655544bad36
Add GameHUD for displaying playerShip's lives
src/scenes/GameHUD.js
src/scenes/GameHUD.js
JavaScript
0
@@ -0,0 +1,1407 @@ +/**%0A * CG Space Invaders%0A * CG45179 16'17%0A *%0A * @author: Rui Ventura ( ist181045 )%0A * @author: Diogo Freitas ( ist181586 )%0A * @author: Sara Azinhal ( ist181700 )%0A */%0A%0Aimport %7B Scene %7D from '../lib/threejs/scenes/Scene';%0Aimport %7B OrthographicCamera %7D from '../lib/threejs/c...
d87847891466bdc4af0f316d8c8a89381a308554
add sample config
config/auth.example.js
config/auth.example.js
JavaScript
0.000001
@@ -0,0 +1,159 @@ +module.exports = %7B%0A 'weiboAuth' : %7B%0A 'appkey' : 'YOUR_APP_KEY',%0A 'secret' : 'YOUR_APP_SECRET',%0A 'oauth_callback_url' : 'YOUR_APP_CALLBACK_URL'%0A %7D%0A%7D;
3ef8e118ecf2474039dad8937183c5d57319697d
Add ReportTable component
src/widgets/ReportTable/ReportTable.js
src/widgets/ReportTable/ReportTable.js
JavaScript
0
@@ -0,0 +1,2507 @@ +/* eslint-disable react/prop-types */%0A/* eslint-disable no-unused-vars */%0A/* eslint-disable react/forbid-prop-types */%0A/**%0A * mSupply Mobile%0A * Sustainable Solutions (NZ) Ltd. 2018%0A */%0A%0Aimport React, %7B useState %7D from 'react';%0Aimport %7B View, StyleSheet %7D from 'react-native'...
a613e494ac51869dba3901f5cbbd8aa2a8ea9f2d
use decodeURI to unescape paths
js/bbplayer.js
js/bbplayer.js
/*global $, document, alert*/ (function () { //Pad a number with leading zeros function zeroPad(number, places) { var zeros = places - number.toString().length + 1; return new Array(+(zeros > 0 && zeros)).join("0") + number; } // Convert seconds to mm:ss format function toTimeString(seconds) { ...
JavaScript
0.000001
@@ -560,12 +560,8 @@ cape - %2520 %0A f @@ -602,32 +602,22 @@ h = -path.replace(/%2520/g, %22 %22 +decodeURI(path );%0A
f3e05a520f16fe0de740c53ebf0051d11a33fd53
add basic test
test/imagebox_spec.js
test/imagebox_spec.js
JavaScript
0.000022
@@ -0,0 +1,145 @@ +describe(%22ImageBox%22, function() %7B%0A it(%22exposes itself globally%22, function() %7B%0A expect(typeof window.ImageBox).toEqual(%22function%22);%0A %7D);%0A%7D);%0A
2b95e91aa3fc738101f2152a0871ea82601da657
Fix #1 - Invoke the service method inside the handler methods How to tell in the issue this improve the semantic to get the services offert by the methods.
lib/handler.js
lib/handler.js
var Dao = require('./connection/dao'); var HandlerHttpDelete = require('./http_handler/delete'); var HandlerHttpGet = require('./http_handler/get'); var HandlerHttpPost = require('./http_handler/post'); var HandlerHttpPut = require('./http_handler/put'); var handlerHttpDelete; var handlerHttpGet; var handlerHttpPost; ...
JavaScript
0
@@ -713,18 +713,28 @@ tpDelete +.service() ;%0A - %7D;%0A%0AHand @@ -796,16 +796,26 @@ rHttpGet +.service() ;%0A%7D;%0A%0AHa @@ -881,16 +881,26 @@ HttpPost +.service() ;%0A%7D;%0A%0AHa @@ -931,32 +931,32 @@ = function () %7B%0A - return handl @@ -964,16 +964,26 @@ rHttpPut +.service() ;%0A%7D;%0A%0Amo
5dd7903b1d0b94923dd843592a2f5bb0f5cbe999
add new getCertificateInfo() function
lib/openssl.js
lib/openssl.js
/* jshint node: true */ 'use strict'; var spawn = require('child_process').spawn; module.exports = { checkCertificateExpiration: function (cert, cb) { var openssl = spawn('openssl', ['x509', '-noout', '-enddate']); openssl.stdout.on('data', function (out) { var data = out.toString().trim(); var certEx...
JavaScript
0
@@ -102,13 +102,11 @@ %7B%0A -check +get Cert @@ -116,18 +116,12 @@ cate -Expiration +Info : fu @@ -140,16 +140,114 @@ , cb) %7B%0A + var infoObject = %7B%7D,%0A issuerElements = %5B%5D,%0A subjectElements = %5B%5D,%0A err;%0A%0A %09var o @@ -297,15 +297,36 @@ , '- -end +issuer', '-su...
d07137a32f17f8e83d0aeddf5eaa089416d0f22e
Use boom util for 415
lib/payload.js
lib/payload.js
// Load modules var Stream = require('stream'); var Zlib = require('zlib'); var Querystring = require('querystring'); var Multiparty = require('multiparty'); var Boom = require('boom'); var Utils = require('./utils'); // Declare internals var internals = {}; internals.validDeflate = new Buffer(['0x78', '0x9c']); i...
JavaScript
0
@@ -1810,32 +1810,18 @@ new Boom -(415)); // U +.u nsupport @@ -1822,27 +1822,29 @@ upported - Media - Type +()); %0A %7D%0A%0A @@ -7093,24 +7093,10 @@ Boom -(415)); // U +.u nsup @@ -7105,19 +7105,21 @@ rted - Media - Type +()); %0A%7D;%0A
30f33d254d5809298f4368ee48a0fcfa5a1f9b9f
Create toggleinactivity.js
commands/toggleinactivity.js
commands/toggleinactivity.js
JavaScript
0.000001
@@ -0,0 +1,1882 @@ +const Discord = require('discord.js');%0Aconst ms = require('ms');%0Aexports.run = (client, message) =%3E %7B%0A const modlog = client.channels.find('name', 'pie-log');%0A if (!modlog) return message.reply('I cannot find a pie-log channel').catch(console.error);%0A const muteRole = client.guilds....
3d8610f89bf9ba5759ac1c8fb70eee3e065a636e
add index2.js for test
test/assets/index2.js
test/assets/index2.js
JavaScript
0.000001
@@ -0,0 +1,50 @@ +function function_name2(argument) %7B%0A%09// body...%0A%7D%0A
c1a9ff569e6cf25f5f639b048c566af87f1bfedb
Create user.model.js
backend/user/user.model.js
backend/user/user.model.js
JavaScript
0.000004
@@ -0,0 +1,160 @@ +var bookshelf = require('../config/bookshelf');%0A%0A%0Avar User = bookshelf.Model.extend(%7B%0A tableName: 'users',%0A hasTimestamps: true,%0A%7D);%0A%0A%0Amodule.exports = User;%0A
0cfed9a54865e15deb6c8a2a957c2cbbcc70dc60
complete stream-adventure/http-client
stream-adventure/http-client.js
stream-adventure/http-client.js
JavaScript
0
@@ -0,0 +1,154 @@ +var request = require('request');%0Avar postRequest = request.post('http://localhost:8099');%0A%0Aprocess.stdin%0A .pipe(postRequest)%0A .pipe(process.stdout);%0A %0A
7f7cc1a2c7dcd1870c802af0717da626692844c6
Create nodejs-server.js
nodejs-server.js
nodejs-server.js
JavaScript
0.000003
@@ -0,0 +1,797 @@ +%0Avar net = require('net');%0A%0A%0A%0A%0Avar server = net.createServer(function(socket)%7B%0A console.log(%22Someone connected from %22 + socket.remoteAddress + %22:%22 + socket.remotePort + %22!%22);%0A process.stdout.write('%3E%3E ');%0A process.stdin.on('data', function(d) %7B%0A d = d.toS...
b138dbe58cd4a88e8d8fa891ddc2753f027d0fd9
add first challange
week-7/eloquent.js
week-7/eloquent.js
JavaScript
0.999647
@@ -0,0 +1,870 @@ +// Eloquent JavaScript%0A%0A// Run this file in your terminal using %60node my_solution.js%60. Make sure it works before moving on!%0A%0A// Program Structure%0A// Write your own variable and do something to it.%0Avar number = 35;%0Aconsole.log(number + 5)%0A%0A%0A%0A%0A// Complete one of the exercise...
79169b7d5e133b80d8f3b8498c452575ac1ff5d7
Create test6.js
test6.js
test6.js
JavaScript
0
@@ -0,0 +1,9 @@ +test6.js%0A
1382492b3d9d52707e481e2432f9c7ea66a5d376
Add Legacy extractor
src/Extractors/LegacyExtractor.js
src/Extractors/LegacyExtractor.js
JavaScript
0.000003
@@ -0,0 +1,134 @@ +class LegacyExtractor %7B%0A static extract(content) %7B%0A return content.split(/%5B%5Ea-z%5D/g)%0A %7D%0A%7D%0A%0Aexport default LegacyExtractor%0A
5e00a12d11ff54570d7288a31a26212fb52bc4c6
Create PromotionalUpdate.js
PromotionalUpdate.js
PromotionalUpdate.js
JavaScript
0
@@ -0,0 +1,1327 @@ +%3Cscript%3E%0A/*******************************************************************************%0A*%0A*%09Promotion Switch Automation%0A*%09By: Joseph Preston%0A*%09Date: December 31, 2014%0A*%09Version: 0.0.1%0A*%09Description: This script was created in order to automate the updating of%0A*%09%09%...
d5d0857ddc0f1a1b92f20096531ed8e54cd6c142
Create shell.js
shell.js
shell.js
JavaScript
0.000004
@@ -0,0 +1,224 @@ +shell = %7B%7D;%0Ashell.currDir = %22/%22;%0Ashell.resolve = function(dir) %7B%0A return (shell.currDir + %22/%22 + dir).replace(%22//%22,%22/%22);%0A%7D%0Ashell.setDir = function(dir) %7B%0A shell.currDir = dir;%0A%7D%0Ashell.dir = function() %7B%0A return currDir;%0A%7D%0A
2b353b0c220b4cd1275ea4dc99d835e0f1d3991e
add index to lib for an easier require
lib/index.js
lib/index.js
JavaScript
0
@@ -0,0 +1,347 @@ +var source = require('./source')%0Avar frontmatter = require('./frontmatter')%0Avar data = require('./data')%0Avar helpers = require('./helpers')%0Avar template = require('./template')%0Avar build = require('./build')%0A%0Amodule.exports = %7B%0A source: source,%0A frontmatter: frontmatter,%0A dat...
cf039a890a6d807b6d423a3653035ce330bffeeb
add forgotten module
lib/spawn.js
lib/spawn.js
JavaScript
0.000001
@@ -0,0 +1,492 @@ +//spawn wrapper from https://davidwalsh.name/async-generators%0Amodule.exports = function(generator)%7B%0A var it = generator(), ret;%0A%0A (function iterate(val)%7B%0A try %7B%0A ret = it.next(val);%0A if (!ret.done)%7B%0A if (%22then%22 in ret.value) %7B%0A ret.value....
c27b0cfc6401bcd3315f536f265dec5bd7c20289
Add mime.js
make/mime.js
make/mime.js
JavaScript
0.000039
@@ -0,0 +1,622 @@ +make.mime = %7B%0A type: function () %7B%0A return random.pick(%5B%0A %22text/html%22,%0A %22text/plain%22,%0A %22text/css%22,%0A %22text/javascript%22,%0A %22image/jpeg%22,%0A %22image/gif%22,%0A %22image/png%22,%0A %22application/rss+xml%22,%0A %22ap...
09ed72cc8a3cd3da2d461a957df3ee1d835f8828
Create share.js
share.js
share.js
JavaScript
0.000001
@@ -0,0 +1,644 @@ +function get(name)%7B%0A var url = window.location.search;%0A var num = url.search(name);%0A var namel = name.length;%0A var frontlength = namel+num+1; //length of everything before the value%0A var front = url.substring(0, frontlength);%0A url = url.replace(front, %22%22);%0A nu...
28941712b540a593c087db2ea95e25aff5f5efd7
add translate.js
lib/translate.js
lib/translate.js
JavaScript
0.000002
@@ -0,0 +1,662 @@ +export class Translate %7B%0A%0A constructor() %7B%0A%0A %7D%0A %0A exec(target) %7B%0A var LANG_JA = %22ja%22;%0A var LANG_EN = %22en%22;%0A var lang_param = %7B%22ja%22 : %22%E6%97%A5%E6%9C%AC%E8%AA%9E%22, %22en%22 : %22%E8%8B%B1%E8%AA%9E%22%7D%0A%0A var first = /%5E(%5CS+)%5Cs((?:%...
216b497877d64916353184942fe4ecfb10b50e26
add fat checkbox implementation
templates/js/ui.fat_checkbox.js
templates/js/ui.fat_checkbox.js
JavaScript
0.000001
@@ -0,0 +1,1355 @@ +/* Welcome to Agile Toolkit JS framework. This file implements fat checkbox. */%0A%0A/* (c) Agile Technologies Limtied */%0A//%0A// The following HTML structure should be used:%0A//%0A// %3Cinput type=%22checkbox%22%3E %3C!-- binding to this element --%3E%0A//%0A%0A$.widget(%22ui.fat_checkbox%22...
8948357c7b03a662588d0fec010d458427ec7324
Add colorful animation script.
radius.js
radius.js
JavaScript
0
@@ -0,0 +1,999 @@ +var lights = require(%22offgrid-lights%22);%0Avar data = require(%22./leds.json%22);%0Avar radius = 100;%0A%0Aconsole.log(process.argv);%0A%0Avar cx = 0, cy = 0;%0Adata.forEach(function (xy) %7B%0A cx += xy%5B0%5D;%0A cy += xy%5B1%5D;%0A%7D);%0Acx /= data.length;%0Acy /= data.length;%0A%0Avar veloc...
65b310ea4627780528ced1dd3acc667de7522351
Add tests for locateFile option
__tests__/locateFile.test.js
__tests__/locateFile.test.js
JavaScript
0
@@ -0,0 +1,473 @@ +import %7B resolve %7D from 'path'%0A%0Aimport MediaInfo from '../dist/mediainfo'%0A%0Aconst distDir = resolve(__dirname, '..', 'dist')%0A%0Adescribe('locateFile', () =%3E %7B%0A it('should use locateFile callback', async () =%3E %7B%0A expect.assertions(2)%0A const locateFile = jest.fn((filen...
559e62649fb746869f89a8a542ad23efbdbd622b
fix typo in sample e2e test
test/e2e/scenarios.js
test/e2e/scenarios.js
'use strict'; /* http://docs.angularjs.org/guide/dev_guide.e2e-testing */ describe('my app', function() { beforeEach(function() { browser().navigateTo('../../app/index.html'); }); it('should automatically redirect to /view1 when location hash/fragment is empty', function() { expect(browser().location...
JavaScript
0.002261
@@ -767,33 +767,33 @@ ould render view -1 +2 when user navig
f615d04f5a282e7e24f0f38c9fc97aaea904f924
add test/example.js
test/example.js
test/example.js
JavaScript
0.000001
@@ -0,0 +1,371 @@ +var net = require('net');%0Avar chroot = require('../index');%0A%0Avar server = net.createServer();%0Aserver.listen(81, function(err) %7B%0A if (err) %7B throw err; %7D%0A%0A try %7B%0A chroot('/var/empty', 'nobody');%0A console.log('changed root to %22/var/empty%22 and user to %22nobody%22')...
e69f9eeafed19f3c299e6252538ec323529d9505
Create netjs.full.min.js
dist/netjs.full.min.js
dist/netjs.full.min.js
JavaScript
0.000006
@@ -0,0 +1,19 @@ +#netjs.full.min.js%0A
7711f4041765c5e2ff5b38f5bed5ff11eff60b32
Add files via upload
controllers/navmap.js
controllers/navmap.js
JavaScript
0.000001
@@ -0,0 +1,850 @@ +define(%5B%5D,function()%7B%0D%0A%09%22use strict%22;%0D%0A%0D%0A%09let ctrl = %5B%22$scope%22,function($scope)%7B%0D%0A%0D%0A%09%09let pureCoverage = false;%0D%0A%0D%0A%09%09$scope.init = function()%7B%0D%0A%09%09%09let wmsSource = new ol.source.TileWMS(%7B%0D%0A%09%09%09%09url:%22https://ahocevar.c...
7dbb6fe6271e64b2ec91eb00b0f83c3b63392e86
not-working statwatcher
test/not-working/15_statwatcher.js
test/not-working/15_statwatcher.js
JavaScript
0.998764
@@ -0,0 +1,705 @@ +'use strict';%0A%0Aconst test = require('tape').test%0Aconst fs = require('fs')%0Aconst persistents = require('../../')%0Aconst provider = require('../util/get-provider')('STATWATCHER')%0A%0Afunction inspect(obj, depth) %7B%0A console.error(require('util').inspect(obj, false, depth %7C%7C 5, true));...
a84494f3982401dd9aa4cb562a77f9ce8aa8b847
Add services.response.js to test folder
test/response/services.response.js
test/response/services.response.js
JavaScript
0.000001
@@ -0,0 +1,274 @@ +'use strict';%0A%0Amodule.exports = %7B%0A body: %5B%0A %7B%0A version: 3,%0A id: '5IwGxivGVTUMZ5iF0RvaHG'%0A %7D,%0A %7B%0A version: 2,%0A id: '37zPl5ELMgZ2iGVv02qIac'%0A %7D%0A %5D,%0A error: %7B%0A 401: %7B%0A message: 'Error: Request failed with status c...
f2bfa594cb9b31c3b6533d0780a0c3e6dfd87d99
Create base.js
matrix/web/src/main/webapp/base.js
matrix/web/src/main/webapp/base.js
JavaScript
0.000001
@@ -0,0 +1,129 @@ +// layer%E7%BB%84%E4%BB%B6%EF%BC%8C%E5%85%B3%E9%97%AD%E5%BD%93%E5%89%8D%E5%AF%B9%E8%AF%9D%E6%A1%86%0Afunction goback() %7B%0A var index = parent.layer.getFrameIndex(window.name);%0A parent.layer.close(index);%0A%7D%0A
22035b7ac93170fba8cc91144b4ff99e1a99fb73
Create demo.js
express/demo.js
express/demo.js
JavaScript
0.000001
@@ -0,0 +1,396 @@ +var express = require('express');%0Avar app = express();%0A%0Avar http = require('http');%0A%0Aapp.set('port', 3000);%0A%0Aapp.get('/', function(req, res)%7B%0A%09res.send('Hi');%0A%7D)%0A%0Aapp.get('/home', function(req, res)%7B%0A%09res.send('Home');%0A%7D)%0A%0Aapp.get('/about', function(req, res)...
5c35e0ee5fd8002edafe6821071c0b2c57c766dd
add bill page.
js/bill.js
js/bill.js
JavaScript
0
@@ -0,0 +1,2031 @@ +/**%0A * Created by schoeu on 2015/2/15.%0A */%0Arequire.config(%7B%0A baseUrl:%22js/common%22,%0A paths:%7B%0A jquery:%22jquery-2.1.3.min%22,%0A fastC:%22fastC%22,%0A confirm_pop:%22confirm_pop%22%0A %7D%0A%7D);%0A%0Arequire(%5B%22jquery%22,%22fastC%22,%22confirm_pop%2...
7f8fc48bae4e002ea3a56650f0e88a0eaa8b5c2b
Create init.js
js/init.js
js/init.js
JavaScript
0.000001
@@ -0,0 +1,2 @@ +/%0A
4faf90905177ebac70ca6342ab663a909436f4db
add lib
router.js
router.js
JavaScript
0.000001
@@ -0,0 +1,3200 @@ +(function (root, factory) %7B%0A if (typeof exports === 'object') %7B%0A factory(exports);%0A %7D else if (typeof define === 'function' && define.amd) %7B%0A define(%5B'exports'%5D, factory);%0A %7D else %7B%0A factory(window);%0A %7D%0A%7D)(this, function (exports) ...
f6b2e366048308c44de85eb573417d9d12472974
Add pairs with given difference
src/Problems/PairsWithDifferenceK.js
src/Problems/PairsWithDifferenceK.js
JavaScript
0.999999
@@ -0,0 +1,1693 @@ +const test = require('tape')%0A%0A/**%0A * Given an array arr of distinct integers and a nonnegative integer k,%0A * write a function that returns an array of all pairs %5Bx,y%5D,%0A * such that x - y = k. If no such pairs exist, return an empty array.%0A *%0A * Examples:%0A *%0A * input = %5B0, -1,...
9f11ceed655407049e1eed44ca13b143e47d718e
add missing lib/log
lib/log.js
lib/log.js
JavaScript
0.00001
@@ -0,0 +1,1422 @@ +'use strict';%0A%0Aconst Stream = require('stream'),%0A bunyan = require('bunyan'),%0A %7B config %7D = require('./utils'),%0A path = require('path');%0A%0Aconst consoleStream = new Stream();%0AconsoleStream.writable = true;%0AconsoleStream.write = function (obj) %7B%0A /* eslint-disable no-cons...
c1d4232fd72eb00aef5c2fb72ed3936382add57a
Fix indexOf MongoDB
library.js
library.js
"use strict"; var plugin = {}; var Socket = module.parent.require('./socket.io/modules'), User = module.parent.require('./user'), db = module.parent.require('./database'); plugin.init = function (data, callback) { plugin.uid = data.uid; callback(null, data); } /** * Parsea todos los posts del hilo en busca de...
JavaScript
0.000372
@@ -610,21 +610,16 @@ if ( -uids. indexOf( post @@ -614,16 +614,22 @@ indexOf( +uids, post.uid @@ -1376,16 +1376,364 @@ k);%0A%7D;%0A%0A +/**%0A * Implementaci%C3%B3n del indexOf que no compara estrictamente (===) ya que Redis devuelve los uids en forma %5B1, 2, 3%5D y mongo %5B'1', '2', '3'%5D, de esta forma, s...
1847a575c922fa607becd7747439f45fd9db644f
Add debug helper for handlebars.
plugins/debug.js
plugins/debug.js
JavaScript
0
@@ -0,0 +1,160 @@ +var fs = require('fs')%0A , Handlebars = require('handlebars')%0A%0AHandlebars.registerHelper('debug', function(obj) %7B%0A console.log(obj)%0A debugger%0A return obj%0A%7D)%0A
f6f8468ea9e576dfb65cb3ec335b0858607d3ab1
implement clydas (#2815)
server/game/cards/15-DotE/Clydas.js
server/game/cards/15-DotE/Clydas.js
JavaScript
0
@@ -0,0 +1,633 @@ +const DrawCard = require('../../drawcard.js');%0D%0A%0D%0Aclass Clydas extends DrawCard %7B%0D%0A setupCardAbilities(ability) %7B%0D%0A this.action(%7B%0D%0A title: 'Move 1 gold to your gold pool',%0D%0A chooseOpponent: opponent =%3E opponent.gold %3E 0,%0D%0A ...
49a737515285a4df18bd6d174432c39c3910e975
Create script.js
script.js
script.js
JavaScript
0.000005
@@ -0,0 +1,1139 @@ +var fs = require('fs');%0Avar mkdirp = require('mkdirp');%0Avar wrap = require('word-wrap');%0A%0Amkdirp('Web-Template', function(err) %7B %0A%09if (err) console.error(err)%0A else console.log('Created main directory!')%0A%7D);%0A%0Amkdirp('Web-Template/css', function(err) %7B %0A%09if (err) cons...
f5b2b81e1b87583f54ecc6b3578e072205566875
Add script to pull piwik data, inject into posts
popular_posts.js
popular_posts.js
JavaScript
0
@@ -0,0 +1,1877 @@ +var superagent = require('superagent');%0Avar _ = require('lodash');%0Avar fs = require('fs');%0Avar path = require('path');%0Avar frontMatter = require('front-matter');%0A%0Avar postsPath = path.join(__dirname, 'pages/posts');%0A%0Avar postFiles = fs.readdirSync(postsPath);%0Avar posts = _.map(post...
b0c46f702ec58a495242c77107eb7b90adfc2aa8
Add gzip output logging
gulpfile.js
gulpfile.js
var gulp = require('gulp'), gutil = require('gulp-util'), es = require('event-stream'); var plugins = require('gulp-load-plugins')({ camelize: true }); var config = require('./gulpfile.config'); // Default values var isProduction = false; if(gutil.env.prod === true) { isProduction = true; } ...
JavaScript
0.000001
@@ -1933,32 +1933,44 @@ les', showFiles: + true, gzip: true%7D))%0A .pipe @@ -2901,32 +2901,44 @@ showFiles: false +, gzip: true %7D))%0A .pipe(gulp
34717eeab8341355588115c843e3e6f82a441446
Create Memory.js
Memory.js
Memory.js
JavaScript
0.000001
@@ -0,0 +1,122 @@ +/**%0A * Memory - Used to store arbitrary memory entries in arbitrary keys.%0A * @type %7BObject%3Cstring, any%3E%7D%0A */%0AMemory = %7B%7D;%0A
65e6fc2170d247e9d1025f98dc4718cfe1825b5c
Create fundsindia.js
fundsindia.js
fundsindia.js
JavaScript
0.000001
@@ -0,0 +1,804 @@ +/*%0A// Created by Chandu Nannapaneni on Jan 13 2015%0ASimple Casper script that logins in on your behalf to %0Ayour fundsindia login and generates status.png%0A*/%0A%0A%0Avar casper = require('casper').create();%0A%0Acasper.start('https://www.fundsindia.com/content/jsp/registration/login.jsp#SignIn'...
628b5ee16ab949cf29c1ab5ec7b5709589026cac
Add files via upload
ga-events.jquery.js
ga-events.jquery.js
JavaScript
0
@@ -0,0 +1,1648 @@ +/**%0A * Listen and send Events to analytics.js%0A * @author Mark Unthank%0A * @deps jQuery%0A * @license MIT%0A**/%0A(function( $ )%7B%0A // Listeners%0A var _track = %5B $( %22.ga-track%22 ) %5D;%0A%0A _track.forEach( setup );%0A%0A function setup( element, index, array ) %7B%0A ...
b19f769397bad0e88bbdf79a5e8eca662086efb0
support functions
select.js
select.js
module.exports = match function isString (s) { return 'string' === typeof s } function isObject (o) { return o && 'object' === typeof o } function isNullish (o) { return null == o } var isArray = Array.isArray function match (obj, path, opts) { opts = opts || {} if(!path.length) return obj if(isNullis...
JavaScript
0.000001
@@ -186,16 +186,78 @@ == o%0A%7D%0A%0A +function isFunction (f) %7B%0A return 'function' === typeof f%0A%7D%0A%0A var isAr @@ -1193,16 +1193,75 @@ %5D, opts) +%0A else%0A if(isFunction(_path)) o%5Bkey%5D = _path(obj) %0A%0A %7D%0A
3a96e282b8bf229358f5b0b23380aed7251b549f
update projectConfig
projectConfig.js
projectConfig.js
var projectConfig = { //////////////////////////////////////////////////// // YOU CAN'T CHANGE THIS OPTIONS AFTER FIRST INIT // //////////////////////////////////////////////////// // File structure settings fs: { //Name of folder with static files, such *.css, *.js and so on staticFolderName:...
JavaScript
0.000001
@@ -288,16 +288,47 @@ d so on%0A + // 'static' by default%0A @@ -389,24 +389,52 @@ with images%0A + // 'img' by default%0A imag
9790f3343da8d8fa9c57425a3ef4bfe1e0e2c4cd
Add custom Modernizr rules.
client-vendor/after-body/modernizr/modernizr.custom.js
client-vendor/after-body/modernizr/modernizr.custom.js
JavaScript
0
@@ -0,0 +1,191 @@ +/*%0A * Author: CM%0A * Custom CM rules for Modernizr.%0A */%0A%0A(function() %7B%0A Modernizr.addTest('inputfixed', function() %7B%0A return !navigator.userAgent.match(/(iPad%7CiPhone%7CiPod)/i);%0A %7D);%0A%7D)();%0A
68bed37ca83ff7f5c4a654676d601e5d63d78073
add http server config
server.js
server.js
JavaScript
0
@@ -0,0 +1,382 @@ +// https://github.com/koajs/static%0Avar serve = require('koa-static');%0Avar koa = require('koa');%0Avar app = koa();%0Aconst hostname = '127.0.0.1';%0Aconst port = 3000;%0A%0A// static files%0Aapp.use(serve(__dirname));%0A%0A// start http server%0Aapp.listen(port, hostname, () =%3E %7B%0A console....
713cb887ea2c3b9d4a3d4a631a7b19f793661ec6
add vim_rbql.js broker module
rbql_core/vim_rbql.js
rbql_core/vim_rbql.js
JavaScript
0.000001
@@ -0,0 +1,2191 @@ +const os = require('os');%0Aconst path = require('path');%0Aconst fs = require('fs');%0A%0Aconst rbql = require('./rbql.js');%0A%0Avar tmp_worker_module_path = null;%0A%0A%0Afunction get_error_message(error) %7B%0A if (error && error.message)%0A return error.message;%0A return String(er...
2f8de9a482d6e5f03fd39a87cb0cae9da39e6019
add ejs test to apps
apps/test/ejsTest.js
apps/test/ejsTest.js
JavaScript
0.000001
@@ -0,0 +1,293 @@ +// nonstandard EJS behavior we rely upon in our templates%0Adescribe(%22ejs test%22, function () %7B%0A it(%22renders empty string on undefined object property access%22, function () %7B%0A var ejs = require('ejs').render('%3C%25- data.test %25%3E', %7Bdata:%7B%7D%7D);%0A require('chai').asser...
40775bd199fb5d58674f6ba51d1c0303eea33eb6
Add the utility module replacer.
lib/utilities/replacer.js
lib/utilities/replacer.js
JavaScript
0
@@ -0,0 +1,399 @@ +'use strict'%0A%0Afunction replace (content, properties, property) %7B%0A const find = new RegExp(%60%3C%25$%7Bproperty%7D%25%3E%60, 'g')%0A const replace = properties%5Bproperty%5D%0A%0A return content.replace(find, replace)%0A%7D%0A%0Amodule.exports = (content = '', properties) =%3E %7B%0A cons...
1eb8fe766fd181998041973bdd867ccd17076e24
Add stories for Garmon
packages/garmon/src/index.stories.js
packages/garmon/src/index.stories.js
JavaScript
0
@@ -0,0 +1,769 @@ +import %7B storiesOf %7D from '@storybook/react'%0Aimport %7B createElement as r %7D from 'react'%0A%0Aimport %7B Accordion, AccordionItem, Body, Button, Collapsible %7D from './index.ts'%0A%0AstoriesOf('Garmon', module)%0A .add('Accordion', () =%3E%0A r(%0A Accordion,%0A %7B%7D,%0A ...
8f6f8621917fc8972f987c1750959f7b4f92ec29
add boilerplate for clusterkeys #1
clusterkeys.js
clusterkeys.js
JavaScript
0.000001
@@ -0,0 +1,683 @@ +#!/usr/bin/env node%0A%0Avar os = require(%22os%22);%0Avar promise = require(%22deferred%22);%0A%0Avar vccutil = require(%22./vccutil.js%22);%0Avar logger = require(%22./log.js%22);%0A%0A/**%0A * Represents a VCC container's network configuration%0A * @constructor%0A * @param %7BObject%7D config - A ...
019c6ed79e5c433b8488fe07318ff0e1da52a691
add classInEs5
classInEs5/src/glass.js
classInEs5/src/glass.js
JavaScript
0.000002
@@ -0,0 +1,1484 @@ +;(function(global, factory) %7B%0A%0A if(typeof module !== 'undefined' && typeof module.exports === 'function') module.exports = factory();%0A else if(typeof define !== 'undefined') define(factory);%0A else global.glass = factory();%0A%0A%7D)(this, function() %7B%0A var proto = 'prototye...
3cb8c3eb9695cdfcbd0269cec8961c3e3082642e
Add benchmark
lib/node_modules/@stdlib/math/base/dist/gamma/mgf/benchmark/benchmark.js
lib/node_modules/@stdlib/math/base/dist/gamma/mgf/benchmark/benchmark.js
JavaScript
0.000003
@@ -0,0 +1,1230 @@ +'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 EPS = require( '@stdlib/math/constants/float64-eps' );%0Avar pkg = require( './../package.json' )....
d56ebf2b2b1fe8b279544f9e6b2facb7a72ff8b5
Add comment
ui/src/shared/actions/notifications.js
ui/src/shared/actions/notifications.js
export function publishNotification(notification) { return { type: 'PUBLISH_NOTIFICATION', payload: {notification}, } } export function dismissNotification(id) { return { type: 'DISMISS_NOTIFICATION', payload: {id}, } }
JavaScript
0
@@ -1,24 +1,39 @@ +// add comment%0A export function publishN
59fb31a1bab91deef421410a934701766dc43539
Remove notification shape transformer
ui/src/shared/actions/notifications.js
ui/src/shared/actions/notifications.js
<<<<<<< HEAD <<<<<<< HEAD export const publishNotification = notification => ({ type: 'PUBLISH_NOTIFICATION', payload: {notification}, }) export const dismissNotification = id => ({ type: 'DISMISS_NOTIFICATION', payload: {id}, }) export const publishNotification = notification => ({ type: 'PUBLISH_NOTIFICATI...
JavaScript
0
@@ -1,30 +1,4 @@ -%3C%3C%3C%3C%3C%3C%3C HEAD%0A%3C%3C%3C%3C%3C%3C%3C HEAD%0A expo @@ -210,216 +210,4 @@ %0A%7D)%0A -export const publishNotification = notification =%3E (%7B%0A type: 'PUBLISH_NOTIFICATION',%0A payload: %7Bnotification%7D,%0A%7D)%0A%0Aexport const dismissNotification = id =%3E (%7B%0A type: 'DISMIS...
bcd3077d4ce080a33358a8bb7f3162eb545102bd
Optimise checkbox
app/components/shared/FormCheckbox.js
app/components/shared/FormCheckbox.js
import React from 'react'; import classNames from 'classnames'; import FormInputHelp from './FormInputHelp'; import FormInputErrors from './FormInputErrors'; export default class FormCheckbox extends React.Component { static propTypes = { label: React.PropTypes.string.isRequired, name: React.PropTypes.strin...
JavaScript
0.000008
@@ -56,16 +56,75 @@ snames'; +%0Aimport shallowCompare from 'react-addons-shallow-compare'; %0A%0Aimport @@ -556,16 +556,124 @@ y%0A %7D;%0A%0A + shouldComponentUpdate(nextProps, nextState) %7B%0A return shallowCompare(this, nextProps, nextState);%0A %7D%0A%0A render
2c35d7e7ecf5176a9adf1456046014ed22453990
Create Interface.PlayerInfo.js
Interface.PlayerInfo.js
Interface.PlayerInfo.js
JavaScript
0.000001
@@ -0,0 +1,3142 @@ +(function(plugin) %7B%0A 'use strict';%0A%0A var Module = (function() %7B%0A var _version = '0.1.0';%0A var _namespace = 'CTW2.Plugin.Interface.PlayerInfo';%0A%0A var _world = null;%0A%0A function addInfoLink(e) %7B%0A setTimeout(function() %7B%0A ...
f8a44713232f28d7aff46a95b3e62a4ac0854ab1
remove variable swapping
app/scripts/directives/info-window.js
app/scripts/directives/info-window.js
/** * @ngdoc directive * @name info-window * @requires Attr2Options * @requires $compile * @description * Defines infoWindow and provides compile method * * Requires: map directive * * Restrict To: Element * * @param {Boolean} visible Indicates to show it when map is initialized * @param {Boolean} ...
JavaScript
0.000001
@@ -3018,100 +3018,8 @@ ) %7B%0A - var tempTemplate = infoWindow.__template; // set template in a temporary variable%0A @@ -3367,88 +3367,8 @@ %7D%0A - infoWindow.__template = tempTemplate; // reset template to the object%0A
16527c4edb9da4b5c28cb8447d41eb70ce8238bd
Update relevancy checking to match repo size
share/spice/github/github.js
share/spice/github/github.js
(function(env) { "use strict"; env.ddg_spice_github = function(api_result) { if (!api_result || !api_result.meta.status === 200) { return Spice.failed('github'); } var script = $('[src*="/js/spice/github/"]')[0], source = $(script).attr("src"), ...
JavaScript
0
@@ -2167,16 +2167,17 @@ false %7D +, // Reje @@ -2209,16 +2209,95 @@ iption.%0A + %7B key: 'size', match: /%5E%5B1-9%5D%5B0-9%5D*$/, strict: false %7D%0A
bcada373d7b6ab64a95b5af6c02fd648e8963a54
Create jsPerf_CNNChannelShuffle.js
CNN/jsPerf/jsPerf_CNNChannelShuffle.js
CNN/jsPerf/jsPerf_CNNChannelShuffle.js
JavaScript
0
@@ -0,0 +1,1666 @@ +%0A/**%0A * Test different channel shuffle implementation for CNN ShuffleNet.%0A *%0A * @see %7B@link https://jsperf.com/colorfulcakechen-cnn-channel-shuffle%7D%0A */%0A%0A%0A// concat-reshape-transpose-reshape-split%0Afunction by_ConcatReshapeTransposeReshapeSplit( dataTensor3dArray ) %7B%0A tf.ti...
d813b904e66ea744f2caf840bdc9a09867e0152f
Add tests for universes methods
imports/api/universes/methods.tests.js
imports/api/universes/methods.tests.js
JavaScript
0
@@ -0,0 +1,1651 @@ +import %7B Meteor %7D from 'meteor/meteor';%0Aimport %7B chai, assert %7D from 'meteor/dispatch:mocha-phantomjs';%0A%0Aimport %7B Universes %7D from './schema.js';%0A%0Adescribe('universes methods', function() %7B%0A%09it('should insert universe in the Universes collection', function() %7B%0A%09%09l...
a35e6ee45bfb9fd8bfd7db3d305c6a8ff8efc5ab
Create pokedex.js
mods/dmxy/pokedex.js
mods/dmxy/pokedex.js
JavaScript
0.000001
@@ -0,0 +1,5 @@ +lelz%0A
11891c9bb252f44a2a987992f334510259fbc89d
add minified version
marginalia.min.js
marginalia.min.js
JavaScript
0.000001
@@ -0,0 +1,1389 @@ +!function()%7Bfunction e(a,b)%7Ba.parentNode.insertBefore(b,a.nextSibling)%7Dfunction f(a,b)%7Bfor(var e,c=a.childNodes,d=0,g=%5B%5D;e=c%5Bd%5D;++d)1==e.nodeType&&-1!==(e.innerText%7C%7Ce.textContent%7C%7C%22%22).replace(/%5Cs+/g,%22 %22).indexOf(b)&&(g=g.concat(f(e,b)));return g.length?g:a%7Dfuncti...
8a06d12361e87758e8017f6d58c072c9873d1d29
Add content api class
src/app/utilities/api-clients/content.js
src/app/utilities/api-clients/content.js
JavaScript
0.000001
@@ -0,0 +1,478 @@ +import http from '../http';%0A%0Aexport default class content %7B%0A%0A static getAllDeleted() %7B%0A return http.get(%60/zebedee/deletedContent%60)%0A .then(response =%3E %7B%0A return response;%0A %7D)%0A %7D%0A%0A static restoreDeleted(deletedCo...
3d3aa4030bf15b8b5b379d7b907e969ccc633516
Add longtouch custom event
src/config/longtouch.js
src/config/longtouch.js
JavaScript
0
@@ -0,0 +1,819 @@ +%0Aexport default function registerDispatcher(element) %7B%0A let lastTime;%0A const lastPosition = %7B x: 0, y: 0 %7D;%0A%0A element.addEventListener('touchstart', (e) =%3E %7B%0A console.log(e);%0A lastPosition.x = e.changedTouches%5B0%5D.clientX;%0A lastPosition.y = e.changedTouches%5B...
5b28c92458698d05cadcfa4b54ec314169ed9966
add test helper module
frontend/test-helper.js
frontend/test-helper.js
JavaScript
0.000001
@@ -0,0 +1,196 @@ +module.exports = %7B%0A captureExceptions: function (done, fn) %7B%0A return function () %7B%0A try %7B%0A fn();%0A done();%0A %7D catch (error) %7B%0A done(error);%0A %7D%0A %7D;%0A %7D%0A%7D;%0A
d48e71c3d1ccc113d5e9b786cdcfd22391044b44
Add indicator for CCI which uses LRC as basic moving indicator.
methods/indicators/CCI.js
methods/indicators/CCI.js
JavaScript
0
@@ -0,0 +1,1698 @@ +/*%0A * CCI%0A */%0Avar log = require('../../core/log');%0Avar LRC = require('./LRC');%0A%0Avar Indicator = function(settings) %7B%0A this.tp = 0.0;%0A this.TP = new LRC(settings.history);%0A this.result = false;%0A this.hist = Array(); // needed for mean?%0A this.mean = 0.0;%0A this.size = 0;...
0f86fee31cf2f3a832564f90ab90bfe4cfa0e91c
Kill electron on OSX too
launcher/electron/main.js
launcher/electron/main.js
/* * Copyright 2015 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.000001
@@ -1157,46 +1157,8 @@ ) %7B%0A - if (process.platform != 'darwin')%0A ap
d5064e647ed1f5f093981addd01fe26b4fa46f4c
add side menu
api-sandbox/components/tree/ApiTree.js
api-sandbox/components/tree/ApiTree.js
JavaScript
0.000002
@@ -0,0 +1,1957 @@ +%0Avar treeModel = %5B%0A %7B%0A text: %22ScaleCube%22,%0A id : %22529621b7e4b0a808adf48a31%22,%0A type : %22ORG%22,%0A backColor:%22black%22,%0A nodes: %5B%0A %7B%0A text: %22Service Message%22,%0A id : %22629621b7e4b0a8...
990dd869cf721ecc563544bcba062d37befe1b51
Move DebugEnvironment helper to open source
Libraries/Utilities/DebugEnvironment.js
Libraries/Utilities/DebugEnvironment.js
JavaScript
0
@@ -0,0 +1,500 @@ +/**%0A * Copyright (c) Facebook, Inc. and its affiliates.%0A *%0A * This source code is licensed under the MIT license found in the%0A * LICENSE file in the root directory of this source tree.%0A *%0A * @format%0A * @flow strict-local%0A */%0A%0A'use strict';%0A%0Aexport let isAsyncDebugging: boolean...
47800706e1a1fe58c81bce94c769e0cf1316e498
Create app.js
restaurant/app.js
restaurant/app.js
JavaScript
0.000003
@@ -0,0 +1,918 @@ +%0A/**%0A * Module dependencies.%0A */%0A%0Avar express = require('express');%0Avar routes = require('./routes');%0Avar user = require('./routes/user');%0Avar http = require('http');%0Avar path = require('path');%0A%0Avar app = express();%0A%0A// all environments%0Aapp.set('port', process.env.PORT %7...
7011b1f7ceaf214f413d9f1c8fb6457b2ee8c9bb
Implement ObservableMap
lib/observe/ObservableMap.js
lib/observe/ObservableMap.js
JavaScript
0.000001
@@ -0,0 +1,2097 @@ +'use strict';%0A%0Aconst EventDispatcher = require('../event/EventDispatcher');%0Aconst delegateEventDispatcher = require('./delegateEventDispatcher');%0Aconst dispatcher = require('./symbols').dispatcher;%0A%0A/**%0A * Provides listeners with the key and value of the element set on the map.%0A *%0A...
8ecd1d54f51722a06d4a6b1c37d846f044d42fd1
Fix ESLint errors
connectors/.eslintrc.js
connectors/.eslintrc.js
module.exports = { 'globals': { 'Connector': false, 'MetadataFilter': false, 'Util': false, }, }
JavaScript
0.022289
@@ -1,8 +1,23 @@ +'use strict';%0A%0A module.e @@ -26,17 +26,16 @@ orts = %7B -%0D %0A%09'globa @@ -40,17 +40,16 @@ bals': %7B -%0D %0A%09%09'Conn @@ -110,14 +110,12 @@ lse, -%0D %0A%09%7D, -%0D %0A%7D -%0D +; %0A