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
63e1d11e97af7ec805b491501f0c8498a10bc90a
Add a minimal fixed size queue.
src/js/circularbuffer.js
src/js/circularbuffer.js
JavaScript
0
@@ -0,0 +1,578 @@ +/* Fixed size queue implemented as a circular array */%0A%0Afunction Ring(size) %7B%0A this.length = size;%0A this.maxIndex = this.length - 1;%0A this.start = 0;%0A this.buffer = new Float32Array(this.length);%0A%7D%0A%0ARing.prototype.push = function (element) %7B%0A %0A this.buffer%5Bt...
525a840f068b93082cf6b9f2b5e9f934989054db
Add leaderboard page
src/pages/leaderboard.js
src/pages/leaderboard.js
JavaScript
0.000001
@@ -0,0 +1,78 @@ +import React from %22react%22%0A%0Aexport default () =%3E %3Cdiv%3EHello Leaderboard!%3C/div%3E%0A
32af4e79cac1ff7476c823387fe73b5f574e60d8
Add safeHtml pipe, mainly for editor
src/safeHtmlPipe.pipe.js
src/safeHtmlPipe.pipe.js
JavaScript
0
@@ -0,0 +1,425 @@ +import %7B Pipe %7D from '@angular/core';%0Aimport %7B DomSanitizer %7D from %22@angular/platform-browser%22;%0A%0Aexport default class safeHtmlPipe %7B%0A static get annotations() %7B%0A return %5B%0A new Pipe(%7B%0A name: 'safeHtml'%0A %7D)%0A %5D;%0A %7D%0A constructor(sa...
26e38b0e545951310c503779b26060eadf5fdf88
add `transform` example
examples/transform.js
examples/transform.js
JavaScript
0.000537
@@ -0,0 +1,753 @@ +const write = require('csv-write-stream')%0Aconst through = require('through2')%0Aconst parse = require('../')%0Aconst path = require('path')%0Aconst fs = require('fs')%0A%0A// Read a file, transform it and send it%0A// to stdout. Optionally could also write%0A// to a file instead of stdout with:%0A/...
6b1044d365349c480afbb9fc1a2fd52ffebcb569
add l1 doc.
L1/新建文本文档.js
L1/新建文本文档.js
JavaScript
0
@@ -0,0 +1,9 @@ +//main.js
0bb538568321e936b83b4a130b1992af957c3a49
add WeakMap Polyfill
src/class/weakmap.js
src/class/weakmap.js
JavaScript
0
@@ -0,0 +1,1145 @@ +/* global%0A%09global, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout, storage,%0A%09objectDefineProperty,%0A%09AbstractUuid,%0A%09ClassDescriptor%0A*/%0A%0A//=require constants.js%0A//=require shortcuts.js%0A//=require abstract/uuid.js%0A//=require class/descriptor....
66ada9d7c7d183f69860c11a463a796a38d6c5d6
Add script to change URLs
src/js/select-url.js
src/js/select-url.js
JavaScript
0
@@ -0,0 +1,357 @@ +document.addEventListener('DOMContentLoaded',function() %7B%0A document.querySelector('select%5Bname=%22selectUrl%22%5D').onchange=changeEventHandler;%0A%7D,false);%0Afunction changeEventHandler(event) %7B%0A // You can use %E2%80%9Cthis%E2%80%9D to refer to the selected element.%0A if(!even...
1cef3d03d70ad974c757c4064844b410534960e8
create the browserify task
tasks/browserify.task.js
tasks/browserify.task.js
JavaScript
0.026575
@@ -0,0 +1,249 @@ +/**%0A * @fileOverview The Browserify task operation.%0A */%0Amodule.exports = function(grunt) %7B%0A grunt.config('browserify', %7B%0A dist: %7B%0A files: %7B%0A 'front/static/scripts/city.src.js': %5B'front/styles-city/app.js'%5D,%0A %7D,%0A %7D%0A %7D);%0A%0A%7D;%0A%0A
d160a1c57750431ddab827d43d6e89f08ed0a5fa
Write tests for group creation
src/test/scenarios/createGroup.test.js
src/test/scenarios/createGroup.test.js
JavaScript
0
@@ -0,0 +1,2557 @@ +import %7Bexpect%7D from %22chai%22;%0Aimport nock from %22nock%22;%0Aimport expectAsync from %22./../helpers/expectAsync%22;%0A%0Aimport config from %22../../js/config/config%22;%0A%0Aimport GroupsActions from %22../../js/actions/GroupsActions%22;%0Aimport GroupsEvents from %22../../js/events/Group...
85092204c991cd1e685aa1223f8c5cdb331a31bf
Create coversall.js
coversall.js
coversall.js
JavaScript
0
@@ -0,0 +1,367 @@ +var handleInput = require('../lib/handleInput');%0Avar logger = require('../lib/logger');%0A%0A%0Aprocess.stdin.resume();%0Aprocess.stdin.setEncoding('utf8');%0A%0Avar input = '';%0A%0Aprocess.stdin.on('data', function(chunk) %7B%0A input += chunk;%0A%7D);%0A%0Aprocess.stdin.on('end', function() %...
450479e9cedf93e06778b05ece511085c559cf12
Add tests
test/src/images-tests.js
test/src/images-tests.js
JavaScript
0.000001
@@ -0,0 +1,77 @@ +import test from 'tape'%0Aimport %7BImages%7D from '../../build/components/images'%0A
4e2d7f6a0317f17c1e1c33079821308ec27beee2
add basic package-file testing
test/testPackageFiles.js
test/testPackageFiles.js
JavaScript
0
@@ -0,0 +1,1146 @@ +/* jshint -W097 */// jshint strict:false%0A/*jslint node: true */%0Avar expect = require('chai').expect;%0Avar fs = require('fs');%0A%0Adescribe('Test package.json and io-package.json', function() %7B%0A it('Test package files', function (done) %7B%0A var fileContentIOPackage = fs.r...
7771d3ff0c695e4f2669af0ffbf81ddce7e1d3ed
Create testPackageFiles.js
test/testPackageFiles.js
test/testPackageFiles.js
JavaScript
0.000002
@@ -0,0 +1,1172 @@ +/* jshint -W097 */// jshint strict:false%0A/*jslint node: true */%0Avar expect = require('chai').expect;%0Avar fs = require('fs');%0A%0Adescribe('Test package.json and io-package.json', function() %7B%0A it('Test package files', function (done) %7B%0A var fileContentIOPackage = fs.r...
2ad820184bb7f17d02a0462c0aec7dae93a7956c
Define lazy stream abstraction.
stream.js
stream.js
JavaScript
0.000001
@@ -0,0 +1,1202 @@ +/* vim:set ts=2 sw=2 sts=2 expandtab */%0A/*jshint asi: true undef: true es5: true node: true browser: true devel: true%0A forin: true latedef: false globalstrict: true */%0A'use strict';%0A%0Avar List = require('./list').List%0A%0Avar eventuals = require('eventual/eventual'),%0A defer = ...
8bf8c3be3339def1bf95332f406dc8527b535924
Create index.js
src/index.js
src/index.js
JavaScript
0.000002
@@ -0,0 +1,174 @@ +import React from 'react';%0Aimport ReactDOM from 'react-dom';%0Aimport App from './App';%0Aimport './index.css';%0A%0AReactDOM.render(%0A %3CApp /%3E,%0A document.getElementById('root')%0A);%0A
1fa4fe519f9ce83bfdb891d78a255ae79d4a908d
Create 263_ugly_number.js
263_ugly_number.js
263_ugly_number.js
JavaScript
0.999965
@@ -0,0 +1,412 @@ +/**%0A * @param %7Bnumber%7D num%0A * @return %7Bboolean%7D%0A */%0Avar isUgly = function(num) %7B%0A if(num%3C=0)%7B%0A return false;%0A %7D%0A else if(num==1)%7B%0A %09return true;%0A %7Delse%7B%0A %09if(num%252==0)%7B%0A %09return isUgly(num/2);%0A %7De...
cf8727935a8d3c0d6fa7e6884ba9f4fcbf705c01
change tests to match post 1.0 elasticsearch
test/elasticsearch.test.js
test/elasticsearch.test.js
/* jshint indent: 2, asi: true, unused: false */ /* global describe, it, before, beforeEach, after, afterEach */ // vim: noai:ts=2:sw=2 var assert = require('assert'); var should = require('should'); var elasticsearch = require('elasticsearch'); var esPlugin = require('../elasticsearch.js'); var...
JavaScript
0
@@ -1745,22 +1745,21 @@ ok(resp. -exists +found );%0A @@ -2706,18 +2706,21 @@ ok(resp. -ok +found );%0A
170090812f8f2c92128be3e5ef1b430b662e0b24
add extra karma config
test/jasmine/karma.conf.js
test/jasmine/karma.conf.js
/* eslint-env node*/ // Karma configuration /* * Test file globs can be passed with an argument. * * Example: * * $ npm run test-jasmine -- tests/axes_test.js * * will only run the tests in axes_test.js * */ var constants = require('../../tasks/util/constants'); var arg = process.argv[4]; var testFileGlo...
JavaScript
0.000001
@@ -1041,16 +1041,301 @@ _INFO;%0A%0A + // without this, console logs in the plotly.js code don't print to%0A // the terminal since karma v1.5.0%0A //%0A // See https://github.com/karma-runner/karma/commit/89a7a1c#commitcomment-21009216%0A func.defaultConfig.browserConsoleLogOptions = %7B%0A leve...
e57d29e0769a1cbe0932121e90f28e5956849ca1
rewrite tests further
test/mini-testium-mocha.js
test/mini-testium-mocha.js
'use strict'; // This is a minimal version of `testium-mocha`. // We're trying to avoid cyclic dependencies. const getTestium = require('testium-core').getTestium; const createDriver = require('../'); const browser = {}; exports.browser = browser; browser.beforeHook = () => { const currentTest = new Error().stack...
JavaScript
0.000002
@@ -103,21 +103,85 @@ encies.%0A +// eslint-disable-next-line import/no-extraneous-dependencies%0A const + %7B getTest @@ -183,16 +183,18 @@ tTestium + %7D = requi @@ -215,19 +215,8 @@ re') -.getTestium ;%0A%0Ac @@ -246,17 +246,16 @@ uire('.. -/ ');%0A%0Acon
aff31e6a23d4b14bc0649022b21457ecd49da922
Add autokey tests
test/unit/lib/list/autokey.js
test/unit/lib/list/autokey.js
JavaScript
0
@@ -0,0 +1,1690 @@ +var keystone = require('../../../../index.js');%0Avar demand = require('must');%0Avar utils = require('keystone-utils');%0A%0Akeystone.mongoose = require('../../../helpers/getMongooseConnection.js');%0A%0Akeystone.import('../models');%0A%0Avar Post = keystone.list('Post');%0A%0Adescribe('Test autoke...
1a1b78f5847e9568cc289ae60db005fd428fd57e
create node with type
test/node.js
test/node.js
JavaScript
0.000001
@@ -0,0 +1,256 @@ +%0A/**%0A * Test dependencies.%0A */%0A%0Avar Node = require('../lib/node');%0Avar assert = require('assert');%0A%0A%0Adescribe(%22node api%22, function() %7B%0A%09%0A%09it('should create node with type', function() %7B%0A%09%09var node = new Node(1);%0A%09%09assert.equal(node.nodeType, 1);%0A%09%7D)...
96a6f5fc254726478d123a90dfedd9e610177e48
Add connection test case
test/test.js
test/test.js
JavaScript
0.000003
@@ -0,0 +1,1510 @@ +'use strict';%0A%0A%0A//Load Config File%0Avar fs = require('fs');%0Avar settingFile = JSON.parse(fs.readFileSync('../config/setting.json'));%0Avar queryListFile = JSON.parse(fs.readFileSync('../config/querylist.json'));%0A%0Avar dbConfig = settingFile%5B'database'%5D%0Avar queryConfig = queryListFi...
4a670167dd33555726a6ea9b7971ed9f13fab06e
Add unit tests for user service
test/user.js
test/user.js
JavaScript
0
@@ -0,0 +1,386 @@ +import test from 'ava';%0Aimport * as service from '../src/service/user';%0A%0Atest('should return users', t =%3E %7B%0A const users = service.getUsers();%0A%0A t.is(users.length, 4);%0A%7D);%0A%0Atest('should return valid names', t =%3E %7B%0A const %5Bava, boyd, raylan, winona%5D = service.getUs...
b5f5984c826ce9b699d1038c1294838d7e33c905
implement fa-touch-move
app/scripts/directives/fa-touch-move.js
app/scripts/directives/fa-touch-move.js
JavaScript
0.000007
@@ -0,0 +1,664 @@ +// %0A// %C2%A9 2014 Thomas Street LLC. All rights reserved%0A//%0A%0Aangular.module('famous.angular')%0A .directive('faTouchMove', function () %7B%0A return %7B%0A restrict: 'A',%0A compile: function() %7B%0A return %7B %0A post: function(scope, element, attrs) %7B%0A ...
89886ad9e2dca38a13ce918c3cc528578b025b4f
Add division by zero testcase
tests/ecmascript/test-dev-div-by-zero.js
tests/ecmascript/test-dev-div-by-zero.js
JavaScript
0
@@ -0,0 +1,1012 @@ +/*%0A * Floating point division by zero is undefined behavior (in C99+)%0A * so the internal implementation must work around it by implementing%0A * the division manually for portability.%0A *%0A * Exercise a few cases in compiler/executor.%0A */%0A%0A/*===%0A0.5 1 -1 NaN 0 0%0Acompiler%0AInfini...
1f1c037d41949061bc84420f13e7f3b0b7651fe2
fix NaN on astral powerwasted
src/Parser/Druid/Balance/Modules/ResourceTracker/AstralPowerDetails.js
src/Parser/Druid/Balance/Modules/ResourceTracker/AstralPowerDetails.js
import React from 'react'; import Tab from 'Main/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Analyzer from 'Parser/Core/Analyzer'; import ResourceBreakdown from 'Parser/Core/Modules/ResourceTracker/ResourceBreakdown'; import { formatPercentage } from 'common/format'; import Icon fro...
JavaScript
0.000002
@@ -771,16 +771,21 @@ 000 * 60 + %7C%7C 0 ;%0A %7D%0A%0A
c58e3dc1a159a87ca38a6d227c3b66081d4deed1
Update static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt.js
static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt.js
static/vendors/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt.js
JavaScript
0
@@ -0,0 +1,713 @@ +/**%0A * Portuguese translation for bootstrap-datepicker%0A * Original code: Cauan Cabral %3Ccauan@radig.com.br%3E%0A * Tiago Melo %3Ctiago.blackcode@gmail.com%3E%0A */%0A;(function($)%7B%0A%09$.fn.datepicker.dates%5B'pt'%5D = %7B%0A%09%09days: %5B%22Domingo%22, %22Segunda%22, %22Ter%C3%A7a%22, %22Qu...
a334fc2c0d15d7d1b2c7dda6a293091aae8f7f9f
add error_handler.js
lib/error_handler.js
lib/error_handler.js
JavaScript
0.000002
@@ -0,0 +1,144 @@ +module.exports = exports = function(err) %7B%0A console.log(err);%0A this.response.status(500);%0A this.response.body = 'Internal server error.';%0A%7D;%0A
f2e3f6868e2499c0054ba858d18114b3cfbcb143
Clear GoLineForm findField on show
lib/ui/GoLineForm.js
lib/ui/GoLineForm.js
var blessed = require('blessed'); var _ = require('lazy.js'); var Slap = require('./Slap'); var BaseElement = require('./BaseElement'); var BaseFindForm = require('./BaseFindForm'); var markup = require('../markup'); GoLineForm._label = " line number: "; function GoLineForm (opts) { var self = this; if (!(self ...
JavaScript
0
@@ -976,16 +976,88 @@ = this;%0A + self.on('show', function () %7B self.findField.textBuf.setText(''); %7D);%0A self.o
a18ca2b132a6153e76216de5bdea871bc201898a
swap variables with destructuring
05_destructuring/swap-variables.js
05_destructuring/swap-variables.js
JavaScript
0.000001
@@ -0,0 +1,124 @@ +let myFavorite = 'La La Land';%0Alet herFavorite = 'Antman';%0A%0A// swap%0A%5B myFavorite, herFavorite%5D = %5BherFavorite, myFavorite%5D;%0A
f9abcd7703bea60cb2461a80c496e94c487a6f0c
Add util.js for common functions that does not belong anywhere :(
src/m_play/gnovel/static/gnovel/js/gnovel/util.js
src/m_play/gnovel/static/gnovel/js/gnovel/util.js
JavaScript
0
@@ -0,0 +1,278 @@ +//namespace %0Avar GNOVEL = GNOVEL %7C%7C %7B%7D;%0A%0A(function() %7B%0A%09%22use strict%22;%0A%0A%09GNOVEL.Util = %7B%7D;%0A%0A%09GNOVEL.Util.findElement = function(arr, obj) %7B%0A%09%09var index = -1;%0A%0A%09%09for(var i=0;i%3Carr.length;i++) %7B%0A%09%09%09if(arr%5Bi%5D === obj) %7B%0A%09%09%09...
2e4cfd34a6c8afce0c5a58eb11932a7bee7aa06d
add pgr_production
src/main/resources/static/js/assets/fileUpload.js
src/main/resources/static/js/assets/fileUpload.js
JavaScript
0
@@ -0,0 +1,2654 @@ +$( document ).ready(function() %7B%0D%0A %0D%0A var url = window.location;%0D%0A var validation=false;%0D%0A %0D%0A // SUBMIT FORM%0D%0A $(%22#btnSubmit%22).click(function (event) %7B%0D%0A // Prevent the form from submitting via the browser.%0D%0A event.preventDefau...
edba589baae1fcf8de284c793008440bb539e5df
Add global eslint conf for Set and Promise in common file
packages/zmarkdown/common.js
packages/zmarkdown/common.js
const inspect = require('unist-util-inspect') const unified = require('unified') const visit = require('unist-util-visit') const shortid = require('shortid') const clone = require('clone') const createWrapper = require('./utils/wrappers') const remarkParse = require('remark-parse') const remarkAbbr = require('remark...
JavaScript
0
@@ -1,12 +1,39 @@ +/* global Promise, Set */%0A%0A const inspec
07d090f691313c896f879172f938219d3fd8583f
fix a small mistake => use doErrorTooltip instead of doError
phobos/source/ProjectCtrl.js
phobos/source/ProjectCtrl.js
enyo.kind({ name: "ProjectCtrl", kind: "enyo.Component", debug: false, published: { projectData: null, pathResolver: null, fullAnalysisDone: false // true when done *and* successfull }, events: { onErrorTooltip: '', onErrorTooltipReset: '' }, handlers:{ onError: 'raiseErrorTooltip', }, components:...
JavaScript
0.000056
@@ -2817,16 +2817,23 @@ .doError +Tooltip (%7Bmsg: %22
8d6fefd6be59b38b34506fe4dd768507781864f7
add implementation / testing for problem 5
src/problems-1-through-10.js
src/problems-1-through-10.js
/** * Created by dougiefresh49 on 1/23/16. */ module.exports = { multiplesOf3and5: multiplesOf3and5, evenFibNumbers: evenFibonacciiNumbers, largestPrimeFactor: largestPrimeFactor, largestPalindrome: largestPalindrome }; // Problem 1: Multiples of 3 and 5 function multiplesOf3and5(limit) { var s...
JavaScript
0.000555
@@ -42,16 +42,62 @@ 6.%0A */%0A%0A +var commons = require('./common-algorithms');%0A %0Amodule. @@ -275,16 +275,56 @@ lindrome +,%0A smallestMultiple: smallestMultiple %0A%7D;%0A%0A// @@ -1826,12 +1826,370 @@ lindrome;%0A%7D%0A +%0A// Problem 5: Smallest Multiple%0A// Solution based off of the following%0A// S...
cd66fcddfda5c57f56f6bfe6153ac6af64497925
Create Backbone models for analysis mode (#351)
leaf-ui/rappid-extensions/AnalysisModels.js
leaf-ui/rappid-extensions/AnalysisModels.js
JavaScript
0
@@ -0,0 +1,2464 @@ +/** Models for the Analysis Mode AnalysisInspector.js and Analysis Configuration Sidebars */%0A%0A/**%0A * Model for results%0A * %0A * Attributes:%0A * %7BString%7D name%0A * %7BAnalysisResult%7D analysisResult%0A * %0A */%0A// TODO: Break AnalysisResult into params%0Avar ResultModel = Backbone.Mod...
6ed194a9cae1420a9f2e620f78adff08faeb2818
Bring Christmas even earlier
ui/src/shared/components/LineGraph.js
ui/src/shared/components/LineGraph.js
import React, {PropTypes, Component} from 'react' import Dygraph from 'shared/components/Dygraph' import shallowCompare from 'react-addons-shallow-compare' import SingleStat from 'src/shared/components/SingleStat' import timeSeriesToDygraph from 'utils/timeSeriesToDygraph' import {SINGLE_STAT_LINE_COLORS} from 'src/s...
JavaScript
0
@@ -1803,293 +1803,293 @@ -labels,%0A connectSeparatedPoints: true,%0A labelsKMB: true,%0A axisLineColor: '#383846',%0A gridLineColor: '#383846',%0A title,%0A rightGap: 0,%0A yRangePad: 10,%0A axisLabelWidth: 60,%0A drawAxesAtZero: true,%0A underlayCallback,%0A ...
e433a629daccd737170858844d3668550eebf28b
Make the entire white square a link
ui/src/side_nav/containers/SideNav.js
ui/src/side_nav/containers/SideNav.js
import React, {PropTypes} from 'react' import {withRouter, Link} from 'react-router' import {connect} from 'react-redux' import { NavBar, NavBlock, NavHeader, NavListItem, } from 'src/side_nav/components/NavItems' import {DEFAULT_HOME_PAGE} from 'shared/constants' const {bool, shape, string} = PropTypes con...
JavaScript
0.000029
@@ -957,38 +957,12 @@ %3C -div className=%22sidebar__logo%22%3E +Link %0A @@ -974,14 +974,8 @@ -%3CLink to=%7B @@ -1013,20 +1013,67 @@ _PAGE%7D%60%7D -%3E %0A + className=%22sidebar__logo%22%0A %3E%0A @@ -1129,18 +1129,16 @@ - %3C/Link%3E%0A @@ -1137,25 +11...
a5607ad8104e8121327eb03e89990273bee3f87c
Add analytics code
src/analytics.js
src/analytics.js
JavaScript
0.000001
@@ -0,0 +1,428 @@ + var _gaq = _gaq %7C%7C %5B%5D;%0A _gaq.push(%5B'_setAccount', 'UA-877593-4'%5D);%0A _gaq.push(%5B'_trackPageview'%5D);%0A%0A (function() %7B%0A var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;%0A ga.src = ('https:' == document.location.protocol ? 'ht...
380167b227b007cd80baa2a2efa70e9491de2ea2
Create script.js
Aborea/script.js
Aborea/script.js
JavaScript
0
@@ -0,0 +1,437 @@ +%7B%0A %22name%22: %22Aborea Character Sheet AutoCalculations%22,%0A %22script%22: %22Aborea Character Sheet AutoCalculations.js%22,%0A %22version%22: %221.0%22,%0A %22previousversions%22: %5B%5D,%0A %22description%22: %22Provides some automatted calculations for values that cannot be ...
f80623d7bd508a2d1ac1bd704386fca75b18deca
read file from fs when unicode-data is installed
install.js
install.js
#!/usr/bin/env node var fs = require('fs'), path = require('path'), http = require('http'), BufferStream = require('bufferstream'), // http://www.ksu.ru/eng/departments/ktk/test/perl/lib/unicode/UCDFF301.html keys = ['value', 'name', 'category', 'class', 'bidirectional_category', 'mapping', 'decimal...
JavaScript
0
@@ -471,16 +471,67 @@ ping'%5D,%0A +systemfile = %22/usr/share/unicode/UnicodeData.txt%22,%0A unicoded @@ -965,36 +965,21 @@ );%0A%7D -;%0A%0Ahttp.get(unicodedatafile, +,%0A%0A%0A%0Aparser = fun @@ -985,19 +985,16 @@ nction ( -res ) %7B%0A @@ -1056,141 +1056,8 @@ );%0A%0A - console.log(%22fetching %25s%2...
b1bd4bf47586ccdb44edb9cf0c809a44b7cda91f
put our vector calls inside onLoad instead of update
hud.js
hud.js
room.onLoad = function () { // create our text object room.createObject('Text', { js_id : 'JanusVR-HUD', text : 'JanusVR-HUD', pos : Vector(0, 0, 0), fwd : scalarMultiply(player.view_dir, -1) // face player }); }; room.update = function (dt) { // keep the object in the user's view var console...
JavaScript
0
@@ -225,16 +225,120 @@ er%0A %7D); +%0A%0A // create our vector references%0A var player_facing = Vector(1);%0A var hud_pos = Vector(0, 1.40, 0); %0A%7D;%0A%0Aroo @@ -446,25 +446,29 @@ er.pos, -Vector(1) +player_facing );%0A%0A // @@ -834,34 +834,23 @@ w_dir), -Vector(0, 1.40, 0) +hud_pos );%0A roo
8de468807d3dd0fe6e976d354fc63ebf68074665
add javascript for the site
js/main.js
js/main.js
JavaScript
0
@@ -0,0 +1,230 @@ + $('.button-collapse').sideNav(%7B%0A menuWidth: 300, // Default is 240%0A edge: 'right', // Choose the horizontal origin%0A closeOnClick: true // Closes side-nav on %3Ca%3E clicks, useful for Angular/Meteor%0A %7D%0A );%0A %0A
3bc23d5831e2cc3dd517f7ddf2c48717c1eb9709
Create main.js
main.js
main.js
JavaScript
0.000002
@@ -0,0 +1 @@ +%0A
a0bfaf819dbbe34c78b378d7574da116431e0d55
Create index-min.js
src/index-min.js
src/index-min.js
JavaScript
0.000002
@@ -0,0 +1,207 @@ +const uniqueRandomArray = require('unique-random-array');%0Aconst starWarsNames = require('./starwars-names.min.json');%0A%0Amodule.exports = %7B%0A all: starWarsNames,%0A random: uniqueRandomArray(starWarsNames),%0A%7D;%0A
d2b310a5c62299ae38b93f2db386a2d83ed31853
add Jest mock implementation
mock.js
mock.js
JavaScript
0
@@ -0,0 +1,737 @@ +/**%0A * Library mock for test runners. e.g.:%0A *%0A * %60%60%60js%0A * jest.mock('react-native-sensors', () =%3E require('react-native-sensors/mock'));%0A * %60%60%60%0A */%0A%0Aconst sensorMock = (observerValue) =%3E (%7B%0A subscribe: (observer) =%3E %7B%0A observer(observerValue %7C%7C %7B x...
19b3a25e2ba4cde028119eafa3a5cffb688072e6
Create excel-sheet-column-numbers.js
excel-sheet-column-numbers.js
excel-sheet-column-numbers.js
JavaScript
0.000701
@@ -0,0 +1,500 @@ +/*%0AThat given a column title as it appears in an Excel sheet, returns its corresponding column number.%0AAll column titles will be uppercase.%0A*/%0A%0Afunction titleToNumber(title) %7B%0A var dict = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';%0A%0A var res = 0;%0A for(var i = 0; i %3C title.length - 1; i++) ...
5807bd2fd8cffa51c5f999467b2a8ff7c479adb7
Fix up.
lib/cli.js
lib/cli.js
'use strict'; var version = process.version; var verDigit = parseInt(ver.match(/^v(\d+)\./)[1]); if (verDigit < 4) { console.error( 'Your global Brunch installation is trying to load local Brunch 2+, ' + 'which only supports node.js v4 or higher (you have ' + version + ').\n' + 'You have two choices:\n...
JavaScript
0.000004
@@ -66,16 +66,20 @@ eInt(ver +sion .match(/ @@ -450,22 +450,16 @@ Adjust -local package. @@ -490,18 +490,17 @@ outdated - & +, not rec
dfd4ade26cf487d2e23ddd7c77fefd610e9cd545
Add tests for SourceLink change.
assets/js/components/SourceLink.test.js
assets/js/components/SourceLink.test.js
JavaScript
0
@@ -0,0 +1,1877 @@ +/**%0A * SourceLink 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 * https://ww...
77f8620968a6645fe6d7550162785b3b615c35d9
Add Hunt/Target Solver
solvers/huntTarget.js
solvers/huntTarget.js
JavaScript
0
@@ -0,0 +1,1702 @@ +var battleship = require(%22../game%22)%0Avar _ = require(%22underscore%22)%0Afunction validTiles(size)%7B%0A%09var tiles = %5B%5D;%0A%09for(var x=0;x%3Csize;x++)%7B%0A%09%09for(var y=0;y%3Csize;y++)%7B%0A%09%09%09tiles.push(%5Bx,y%5D.join(%22%22))%0A%09%09%7D%09%09%0A%09%7D%0A%09return tiles%0A%7D%...
bf9e67db9f00e9f807198ac323b1c3b04d569c61
Add library.js
library.js
library.js
JavaScript
0.000004
@@ -0,0 +1,49 @@ +(function (module)%09%7B%0A%09'use strict';%0A%0A%7D(module));%0A
9a6ab1e4032f091273f2e7fae7f6df8fc0e3f5dd
Fix import in engines
index.js
index.js
/* jshint node: true */ 'use strict'; module.exports = { name: 'ember-remodal', included: function(app) { this._super.included(app); if (!process.env.EMBER_CLI_FASTBOOT) { app.import(app.bowerDirectory + '/remodal/dist/remodal.js'); } app.import(app.bowerDirectory + '/remodal/dist/remodal....
JavaScript
0.000003
@@ -137,16 +137,309 @@ (app);%0A%0A + // In nested addons, app.bowerDirectory might not be available%0A var bowerDirectory = app.bowerDirectory %7C%7C 'bower_components';%0A // In ember-cli %3C 2.7, this.import is not available, so fall back to use app.import%0A var importShim = typeof this.import !== 'und...
3cb9716d94f6e6b71a8ad74bf5ccb28b56c96919
Add addSampleInfos middleware.
server/middlewares/sample/addSampleInfos.js
server/middlewares/sample/addSampleInfos.js
JavaScript
0
@@ -0,0 +1,1433 @@ +const audio = require('../../audio')%0A%0A/**%0A * Adds audio infos to a sample object.%0A *%0A * res.extra.sample or res.extra.samples is required and is normally set in sampleCreate, sampleUpdate,%0A * sampleFindById, sampleFindAll middlewares.%0A *%0A * @see middlewares/sample/create%0A * @see mi...
cf8ce1e757a908019e2af1ab8dad6f67f001d0a7
create table helper object
src/js/core/Helpers.js
src/js/core/Helpers.js
JavaScript
0.000002
@@ -0,0 +1,672 @@ +export default class Helpers%7B%0A%0A%09static elVisible(el)%7B%0A%09%09return !(el.offsetWidth %3C= 0 && el.offsetHeight %3C= 0);%0A%09%7D%0A%0A%09static elOffset(el)%7B%0A%09%09var box = el.getBoundingClientRect();%0A%0A%09%09return %7B%0A%09%09%09top: box.top + window.pageYOffset - document.docume...
a513e8454a5d2a0cf6e59e8c78ef33f3bdfd5d70
Handle undefined info before full options are found
src/index.js
src/index.js
import React from 'react'; import _Story from './components/Story'; export const Story = _Story; const defaultOptions = { inline: false, header: true, source: true, }; export default { addWithInfo(storyName, _info, _storyFn, _options) { const options = { ...defaultOptions, ..._options }; ...
JavaScript
0
@@ -215,16 +215,14 @@ me, -_ info, -_ stor @@ -242,177 +242,8 @@ ) %7B%0A - const options = %7B%0A ...defaultOptions,%0A ..._options%0A %7D;%0A%0A this.add(storyName, (context) =%3E %7B%0A let info = _info;%0A let storyFn = _storyFn;%0A%0A @@ -275,26 +275,24 @@ unction') %7B%...
9684b0a34030eed48de7f9a7a81b5b9b284a735d
Add preview methods
src/index.js
src/index.js
export class AddonStore { constructor() { this._loaders = {}; this._panels = {}; this._channel = null; } getChannel() { return this._channel; } setChannel(channel) { this._channel = channel; } getPanels() { return this._panels; } addPanel(name, panel) { this._panels[nam...
JavaScript
0
@@ -110,16 +110,42 @@ = null;%0A + this._preview = null;%0A %7D%0A%0A g @@ -243,24 +243,130 @@ annel;%0A %7D%0A%0A + getPreview() %7B%0A return this._preview;%0A %7D%0A%0A setPreview(preview) %7B%0A this._preview = preview;%0A %7D%0A%0A getPanels(
7ee5073921a1249cf20af85d9b264dc7edec71c0
Fix bad merge
spec/core/SpecSpec.js
spec/core/SpecSpec.js
describe("Spec", function() { it("#isPendingSpecException returns true for a pending spec exception", function() { var e = new Error(j$.Spec.pendingSpecExceptionMessage); expect(j$.Spec.isPendingSpecException(e)).toBe(true); }); it("#isPendingSpecException returns true for a pending spec exception (eve...
JavaScript
0.000239
@@ -7505,16 +7505,23 @@ ueRunner +Factory : functi
facf7c23c2a288a8c105d7363cc04e368bdc2f45
add appdispatcher
app/public/js/dispatcher/AppDispatcher.js
app/public/js/dispatcher/AppDispatcher.js
JavaScript
0
@@ -0,0 +1,594 @@ +// source : http://facebook.github.io/flux/docs/todo-list.html#content%0A%0Avar Dispatcher = require('./Dispatcher');%0Avar assign = require('object-assign');%0A%0Avar AppDispatcher = assign(%7B%7D, Dispatcher.prototype, %7B%0A%0A /**%0A * A bridge function between the views and the dispatcher, ma...
ae29cc68c7b3ce7cafcbadea6f071fc5574f32a6
Add index.js file to resource-list folder
app/screens/shared/resource-list/index.js
app/screens/shared/resource-list/index.js
JavaScript
0
@@ -0,0 +1,73 @@ +import ResourceList from './ResourceList';%0A%0Aexport default ResourceList;%0A
b9cf07e0a909281b452059071b95d289ba3abf54
fix bezier curve test
tests/unit/specs/path.test.js
tests/unit/specs/path.test.js
const pureimage = require('pureimage') const fs = require('fs') describe('draw curve',() => { let image; let c; const WHITE = 0xFFFFFFFF const BLACK = 0x000000FF beforeEach(() => { image = pureimage.make(200,200) c = image.getContext('2d') c.fillStyle = 'white' c.fil...
JavaScript
0
@@ -1382,35 +1382,32 @@ ng')%0A - // expect(image.ge @@ -1429,26 +1429,21 @@ )).toBe( -0xFFFFFFFF +WHITE )%0A @@ -1443,27 +1443,24 @@ %0A - // expect(imag @@ -1478,17 +1478,17 @@ GBA(19, -1 +3 9)).toBe @@ -1492,18 +1492,13 @@ oBe( -0x0C0CFFFF +BLACK )%0A
e05ff643e6daec5d7b10a92dcf046e77cdd2ea4c
Update static/js/pages/form-image-crop.js
static/js/pages/form-image-crop.js
static/js/pages/form-image-crop.js
JavaScript
0
@@ -0,0 +1,809 @@ +$( document ).ready(function() %7B%0D%0A %0D%0A %22use strict%22;%0D%0A %0D%0A var $image = $(%22.image-crop %3E img%22);%0D%0A%0D%0A $image.cropper(%7B%0D%0A aspectRatio: 7 / 5,%0D%0A preview: %22.img-preview%22%0D%0A %7D);%0D%0A %0D%0A $(%22#zoomIn%22).click(fu...
08ec52e866afee4e635752b6ec6af4baca053444
add link component example
stories/components/link.stories.js
stories/components/link.stories.js
JavaScript
0.000001
@@ -0,0 +1,422 @@ +import React from 'react'%0Aimport %7B storiesOf %7D from '@storybook/react'%0Aimport %7B Link %7D from 'components/UI'%0A%0AstoriesOf('Components', module).addWithChapters('Link', %7B%0A subtitle: 'For linking to content.',%0A info: %60The Link component is used to link to external content.%60,%0A...
ecbcf07f118b914eee918b12eb0dca924f82eccc
Set default template to {{ variable }}
init.d/9.underscore.config.js
init.d/9.underscore.config.js
JavaScript
0.000671
@@ -0,0 +1,97 @@ +var _ = require('underscore');%0A%0A_.extend(_.templateSettings, %7B%0A%09interpolate: /%5C%7B%5C%7B(.+?)%5C%7D%5C%7D/g%0A%7D);
b22dd25890d2d18132803d43b1028fde9acf32ad
Create package.js
package.js
package.js
JavaScript
0.000003
@@ -0,0 +1,486 @@ +/* jshint ignore:start */%0APackage.describe(%7B%0A name: 'tcoulter:meteor-ether-pudding',%0A version: '0.0.1',%0A summary: 'Pudding - a (more) delightful contract abstraction, based on web3',%0A git: 'https://github.com/tcoulter/meteor-ether-pudding',%0A documentation: 'README.md'%0A%7D);%0A%0A...
b4cddea3e7d2ddeacafe4f65e459da53b3c75074
fix View#translate
src/bindings/html/view.js
src/bindings/html/view.js
'use strict'; import { getResourceLinks } from '../../bindings/html/head'; import { setAttributes, getAttributes, dispatchEvent, translateDocument, translateFragment, translateMutations } from './dom'; const observerConfig = { attributes: true, characterData: false, childList: true, subtree: true, attri...
JavaScript
0
@@ -1700,16 +1700,22 @@ hen(%0A + () =%3E transla
9ee848d0f6f24a3ff745e9976f03224aa5bee14a
Create background.js
background.js
background.js
JavaScript
0
@@ -0,0 +1,622 @@ +chrome.webRequest.onCompleted.addListener(%0A function (details) %7B%0A if (details.statusCode == 503 && details.type == 'main_frame') %7B%0A details.responseHeaders.forEach(function(v) %7B%0A if (v.value === 'cloudflare-nginx') %0A chrome.tabs.e...
7902391b75e2ca1bb490be3a0c312b89a241ec32
Add command component
src/components/command.js
src/components/command.js
JavaScript
0.000015
@@ -0,0 +1,267 @@ +export default (trigger, executeFn) =%3E %7B%0A const proto = %7B%0A load(loaders) %7B%0A loaders.push(state =%3E %7B%0A state.modules.addCommand(trigger, executeFn)%0A %7D)%0A %7D%0A %7D;%0A%0A return Object.assign(Object.create(proto), %7B...
036671efcf57e24724b44c37c038b291d23a80ff
increase coverage of _expandproduction
test/src/grammar/invalid-format.js
test/src/grammar/invalid-format.js
JavaScript
0
@@ -0,0 +1,436 @@ +import test from 'ava' ;%0A%0Aimport %7B list , map %7D from '@aureooms/js-itertools' ;%0A%0Aimport %7B grammar , ll1 %7D from '../../../src' ;%0A%0Atest( 'invalid node type in _expandproduction (_makenode)' , t =%3E %7B%0A%0A%09const start = 'S';%0A%09const eof = '$';%0A%0A%09const productions = %7B...
61a0e53988d8011a302d136bda738a33f351d7f1
fix overlapping in media-queries
src/core/util/constant.js
src/core/util/constant.js
angular.module('material.core') .factory('$mdConstant', MdConstantFactory); function MdConstantFactory($$rAF, $sniffer) { var webkit = /webkit/i.test($sniffer.vendorPrefix); function vendorProperty(name) { return webkit ? ('webkit' + name.charAt(0).toUpperCase() + name.substring(1)) : name; } return { ...
JavaScript
0
@@ -1289,35 +1289,35 @@ ': '(max-width: -600 +599 px)',%0A 'gt- @@ -1384,34 +1384,34 @@ nd (max-width: 9 -60 +59 px)',%0A 'gt- @@ -1482,27 +1482,27 @@ max-width: 1 -200 +199 px)',%0A
0bce60ddd6b05d1a27348386ab5201a262d81076
Create jquery.hash.js
jquery.hash.js
jquery.hash.js
JavaScript
0.000002
@@ -0,0 +1,709 @@ +/*!%0A * jquery.hash.js V1.0%0A * operate url hash as url params%0A *%0A * Github: https://github.com/wclssdn/jquery.hash.js%0A * Copyright (c) 2013 Wclssdn %3Cssdn@vip.qq.com%3E%0A * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php).%0A * 2013/10/11%0A **/%0A(functi...
7235fd719677717f6a50fcab6c4fbe8bb5120ccd
Include jquery.lock.js
jquery.lock.js
jquery.lock.js
JavaScript
0.000001
@@ -0,0 +1,1513 @@ +//%0A// jQuery Lock Plugin%0A//%0A(function ( $ ) %7B%0A $.fn.lock = function( options ) %7B%0A%09%09// Keep the reference for later usage%0A%09%09var elements = this;%0A%09%09%0A%09%09// Save the html of the elements%09%09%0A%09%09var savedHtmlList = elements.map(function(i, el)%7B%0A%09%09%09re...
8336b0d9269fe024c41a56be6a7c42de2a1d8ebd
Create livePerf.js
js/livePerf.js
js/livePerf.js
JavaScript
0
@@ -0,0 +1,904 @@ +function init() %7B%0A var navigationTiming = performance.timing;%0A var now = new Date().getTime();%0A var url = %22mattshull.com%22+location.pathname;%0A var clientBackend = ((navigationTiming.responseEnd-navigationTiming.requestStart)/1000).toFixed(2);%0A var clientFrontend = ((now-navig...
3b4214f0b176b6df45f9d09ef347efc8dcf6b943
Add utility for working with document fragments and single nodes using a single function.
src/util/each.js
src/util/each.js
JavaScript
0
@@ -0,0 +1,402 @@ +// Does something for a single node or a DocumentFragment. This is useful when%0A// working with arguments that are passed to DOM methods that work with either.%0Aexport default function (node, func) %7B%0A if (node instanceof DocumentFragment) %7B%0A const chs = node.childNodes;%0A const chsL...
d6c617e28965e9dc6342d5c52c3c0ed37048c6cc
Create SmallIntegerWithChecks.js
benchmark/libs/SmallIntegerWithChecks.js
benchmark/libs/SmallIntegerWithChecks.js
JavaScript
0
@@ -0,0 +1,1755 @@ +/*jslint plusplus: true, vars: true, indent: 2 */%0A%0A(function (global) %7B%0A %22use strict%22;%0A%0A function SmallInteger(value) %7B%0A this.value = value;%0A %7D%0A%0A SmallInteger.add = function (x, y) %7B%0A var value = x.value + y.value;%0A if (value %3E= -9007199254740991 && v...
a9ac7f39115352d85a5039ddd0bb3079908998ab
Add Unveil library
client/vendor/scripts/jquery.unveil.js
client/vendor/scripts/jquery.unveil.js
JavaScript
0
@@ -0,0 +1,1324 @@ +/**%0A * jQuery Unveil%0A * A very lightweight jQuery plugin to lazy load images%0A * http://luis-almeida.github.com/unveil%0A *%0A * Licensed under the MIT license.%0A * Copyright 2013 Lu%C3%ADs Almeida%0A * https://github.com/luis-almeida%0A */%0A%0A;(function($) %7B%0A%0A $.fn.unveil = function(...
5d135dafa8d0ebf8f8af27274a9beba5668abf41
Create SheetsToDocTemplateAndEmailMerge.js
SheetsToDocTemplateAndEmailMerge.js
SheetsToDocTemplateAndEmailMerge.js
JavaScript
0
@@ -0,0 +1,1738 @@ +function SheetsToDocTemplateAndEmailMerge() %7B%0A var ss = SpreadsheetApp.openById('IDOFSPREADSHEET');%0A var ss_sheet = ss.getSheetByName(%22NAMEOFWORKSHEETONSPREADSHEET%22);%0A var range = ss_sheet.getDataRange();%0A var values = range.getValues();%0A%0A // Start your loop%0A for ( j = 0; j...
05f5602830806bd3e982c4365a3cf24edf84e981
fix #19
examples/newapi/effect.radialvelocity.js
examples/newapi/effect.radialvelocity.js
JavaScript
0
@@ -0,0 +1,955 @@ +/**%0A * Shortcut to create Fireworks.EffectRandomDriftVelocity%0A*/%0AFireworks.EffectsStackBuilder.prototype.radialVelocity%09= function(minSpeed, maxSpeed)%0A%7B%0A%09Fireworks.createEffect('radialVelocity', %7B%0A%09%09minSpeed%09: minSpeed,%0A%09%09maxSpeed%09: maxSpeed%09%0A%09%7D).onCreate(fun...
7e4c147559c89e9bf8fbcb23ad7cf19f9b0b92cf
Add an example
examples/server.js
examples/server.js
JavaScript
0
@@ -0,0 +1,472 @@ +#!/usr/bin/env node%0A%0Avar dnsserver = require('../lib/dnsserver');%0A%0Avar server = dnsserver.createServer();%0Aserver.bind(8000, '127.0.0.1');%0A%0Aserver.addListener('request', function(req, res) %7B%0A console.log(%22req = %22, req);%0A%0A if (req.question.domain == 'tomhughescroucher.com') ...
1e022005b3f6635305271e10b2dc96672535e597
fix bug in grid.js when removing rows
public/examples/scripts/grid.js
public/examples/scripts/grid.js
/* * Copyright 2014, Gregg Tavares. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
JavaScript
0.000001
@@ -4202,10 +4202,10 @@ th; --- +++ ii)
8e7b086daebe4985457336128f0ae1e43bee23f5
add boolean test
test/boolean1.js
test/boolean1.js
JavaScript
0.999345
@@ -0,0 +1,76 @@ +%0Avar a = new Boolean(true);%0Aconsole.log(Object.prototype.toString.call(a));%0A
e4373f0cecd175583a00d3e56754b9b99d0bfb4d
Put JS stuff in a dedicated lib
lib/bma_gis.js
lib/bma_gis.js
JavaScript
0
@@ -0,0 +1,1689 @@ +/*%0A%0Abma_gis.js%0A%0Acarto helpers %0A%0A*/%0A%0A%0Awindow.BG = %7B%0A // MUST be called first to setup everything%0A init: function(wms, pg_bridge, layer, title)%0A %7B%0A this.wms_url_ = wms;%0A this.layer_name_ = layer;%0A this.title_ = title %7C%7C 'bMa & OpenStr...
13717a012f639d1328340230dcf47aa2c29edd31
Create musique tests.
test/spec.js
test/spec.js
JavaScript
0
@@ -0,0 +1,1190 @@ +var musique = new Musique(%7B%0A 'playlist': %5B%7B%0A 'title': 'Ilumine',%0A 'artist': 'Efflugence',%0A 'album': 'Ilumine EP',%0A 'poster': '#c0392b',%0A 'src': 'https://github.com/RoamTouch/demo-gkplayer-web/raw/gh-pages/tracks/track01.mp3'%0A %7D,%0A %7...
9655730d592bc3f5813234f53bc87339b66b18f7
Revert "Remove outdated test."
test/test.js
test/test.js
JavaScript
0
@@ -0,0 +1,1090 @@ +document = require(%22jsdom%22).jsdom(%22%3Chtml%3E%3Chead%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E%22);%0Awindow = document.createWindow();%0Anavigator = window.navigator;%0ACSSStyleDeclaration = window.CSSStyleDeclaration;%0A%0Arequire(%22../lib/d3/d3%22);%0A%0Avar fs = require(%22fs%22);%0A%...
f5f6ea8dec9676ace8d92d393b6392448c171590
Add AVA tests
test.js
test.js
JavaScript
0
@@ -0,0 +1,630 @@ +import test from 'ava';%0Aimport b3m from './lib';%0A%0Atest('Returns the passed block-class and build a class-string', t =%3E %7B%0A const cn = b3m('button')%0A t.is(cn(), 'button')%0A%7D)%0A%0Atest('Returns the passed string as block in BEM format', t =%3E %7B%0A const cn = b3m('button')%0A t.i...
19e17f2813abb4eed90bb7a28874b311af957e2a
allow full widget customization
js/jquery.mobile.mobiscroll.js
js/jquery.mobile.mobiscroll.js
/* Copyright (c) 2012 Sergio Gabriel Teves All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program i...
JavaScript
0
@@ -864,24 +864,25 @@ : false, +%0A %0A %7D,%0A @@ -869,24 +869,38 @@ se,%0A +preset: 'date' %0A %7D,%0A @@ -1079,68 +1079,9 @@ ler( -%7Bpreset: 'date', theme: o.theme, mode: o.mode, lang: o.lang%7D +o );%0A
0ed9e909a363d5dbc3729dfe5bcf37df784527ec
add get-form-data
src/util/get-form-data.js
src/util/get-form-data.js
JavaScript
0.000001
@@ -0,0 +1,1076 @@ +'use strict';%0A%0Aimport React from 'react';%0A%0Afunction getFormData(formComponent) %7B%0A const formNode = React.findDOMNode(formComponent);%0A const formData = %5B%5D.slice.call(formNode.elements, 0)%0A .filter(x =%3E x.name)%0A .reduce((accum, elem) =%...
1a216c1a6bcdee863e152654ab3387eb8a915bfd
add test wifi
test/wifi.js
test/wifi.js
JavaScript
0
@@ -0,0 +1,63 @@ +var wifi = require('../src/os/modules/wifi');%0A%0Awifi.connect();%0A
dce6d3c7284f247e859a88d3c48c699e998a2965
resolve promise shortcut
lib/resolve.js
lib/resolve.js
'use strict'; var Promise = require('./promise'); var INTERNAL = require('./INTERNAL'); var handlers = require('./handlers'); module.exports = resolve; var FALSE = handlers.resolve(new Promise(INTERNAL), false); var NULL = handlers.resolve(new Promise(INTERNAL), null); var UNDEFINED = handlers.resolve(new Promise(INT...
JavaScript
0.000001
@@ -486,24 +486,86 @@ f (value) %7B%0A + if (value instanceof Promise) %7B%0A return value;%0A %7D%0A return h
4e9f81efa3a76c4e15f8c10a29ba673b11022ad3
Add initial route.
client/routes.js
client/routes.js
JavaScript
0
@@ -0,0 +1,59 @@ +Router.route('/', function () %7B%0A this.render('main');%0A%7D);%0A
ccb1c7a1e80b42923672ab63005b138490d29559
Create select2_locale_ru.js
select2_locale_ru.js
select2_locale_ru.js
JavaScript
0
@@ -0,0 +1,898 @@ +/**%0A * Select2 Russian translation%0A */%0A(function ($) %7B%0A %22use strict%22;%0A%0A $.extend($.fn.select2.defaults, %7B%0A formatNoMatches: function () %7B return %22%D0%A1%D0%BE%D0%B2%D0%BF%D0%B0%D0%B4%D0%B5%D0%BD%D0%B8%D0%B9 %D0%BD%D0%B5 %D0%BD%D0%B0%D0%B9%D0%B4%D0%B5%D0%BD%D0%BE...
63a90a8e1f76169179449f054fa66e87197efc6b
Add the basic layout out AttackInspection page
frontend/src/pages/AttackInspection.js
frontend/src/pages/AttackInspection.js
JavaScript
0
@@ -0,0 +1,1463 @@ +import React from 'react';%0Aimport %7B browserHistory%7D from 'react-router';%0Aimport DeleteNotification from '../containers/DeleteNotification';%0Aimport AttackDetails from '../containers/AttackDetails';%0Aimport axios from 'axios';%0A%0Aexport default class AttackInspection extends React.Compone...
5669b45b9c0b24fb8b8b163af29ae32a125d0c59
Create topic8_http-collect.js
topic8_http-collect.js
topic8_http-collect.js
JavaScript
0
@@ -0,0 +1,362 @@ +var http = require('http');%0A%0Avar result = '';%0Ahttp.get(process.argv%5B2%5D, function(response) %7B%0A response.setEncoding(%22utf8%22);%0A response.on(%22data%22, function(data) %7B%0A result += data;%0A %7D);%0A %0A response.on('error',function(error)%7B%0A console.log(error);%0A %...
f3a2497e9f88a754f6a9b1bf385cf7e3288b790a
add emitter test
test/eventEmitter.spec.js
test/eventEmitter.spec.js
JavaScript
0.000001
@@ -0,0 +1,664 @@ +import EventEmitter from '../src/EventEmitter';%0A%0Adescribe('i18next', () =%3E %7B%0A let emitter;%0A%0A before(() =%3E %7B%0A emitter = new EventEmitter();%0A %7D);%0A%0A describe('published', () =%3E %7B%0A it('it should convert options', (done) =%3E %7B%0A // test on%0A emitt...
235a357e7adae4d19746d9abe4eaa271bb4ffe43
Implement an update server spec file
test/updateServer_spec.js
test/updateServer_spec.js
JavaScript
0.000002
@@ -0,0 +1,707 @@ +import chai from 'chai';%0Aimport fetch from 'node-fetch';%0Aimport https from 'https';%0A%0Achai.should();%0A%0Adescribe('Update Server', () =%3E %7B%0A it('should be online', (done) =%3E %7B%0A https.get('https://update.gpmdp.xyz', () =%3E done())%0A .on('error', () =%3E done(new Error('Up...
dd3c6b3470f679e78dab14584481a52e3ba211d1
test for array.js
mocha/array.js
mocha/array.js
JavaScript
0.000004
@@ -0,0 +1,965 @@ +var rootDir = __dirname.split('/').slice(0, -1).join('/');%0A%0Avar aStream = require(rootDir),%0A%09should = require('should');%0A%09%0Adescribe(%22Array%22, function() %7B%0A%0A%09it('should return all values in roder by event', function(done)%7B%0A%09%09var testArray = %5B1, 2, 3, 'four', true%5D;...
2378952a75977592ab640f90d045a26242904941
test commit
Hello.js
Hello.js
JavaScript
0.000001
@@ -0,0 +1,22 @@ +alert('hello world!');
f6cf6d6e164d66502653f3c7e5c245062f497eed
Add D3.geo.tile plugin
lib/d3.geo.tile.js
lib/d3.geo.tile.js
JavaScript
0.000001
@@ -0,0 +1,1309 @@ +var d3 = require('d3');%0A%0Amodule.exports = function() %7B%0A var size = %5B960, 500%5D,%0A scale = 256,%0A translate = %5Bsize%5B0%5D / 2, size%5B1%5D / 2%5D,%0A zoomDelta = 0;%0A%0A function tile() %7B%0A var z = Math.max(Math.log(scale) / Math.LN2 - 8, 0),%0A z0 = Math.round(...
b407f7a1fe99cfba478741ef3026349c826de506
Create openlibrary.js
openlibrary.js
openlibrary.js
JavaScript
0.000003
@@ -0,0 +1,8 @@ +sdfasdg%0A
9714afa826567226900044ead02241d2454a0d34
Use fixmystreet zoom level if set
web/js/map-wmts-zurich.js
web/js/map-wmts-zurich.js
/* * Maps for FMZ using Zurich council's WMTS tile server */ /* * set_map_config() is called on dom ready in map-OpenLayers.js * to setup the way the map should operate. */ function set_map_config(perm) { // This stuff is copied from js/map-bing-ol.js // var permalink_id; // if ($('#map_permalink'...
JavaScript
0
@@ -3074,17 +3074,37 @@ -7 +fixmystreet.zoom %7C%7C 5 %0A
141686690867cf2b27a12e40123abb89667e7853
add xml2json library
source/js/xml2json.js
source/js/xml2json.js
JavaScript
0.000008
@@ -0,0 +1,924 @@ +// Changes XML to JSON%0Afunction xmlToJson(xml) %7B%0A%09%0A%09// Create the return object%0A%09var obj = %7B%7D;%0A%0A%09if (xml.nodeType == 1) %7B // element%0A%09%09// do attributes%0A%09%09if (xml.attributes.length %3E 0) %7B%0A%09%09obj%5B%22@attributes%22%5D = %7B%7D;%0A%09%09%09for (var j = 0...