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
cb30e3dc29fb4ff3a2aae6aec410fb3476dc075f
Create jquery.jumpAndEqualizeHeight.js
jquery.jumpAndEqualizeHeight.js
jquery.jumpAndEqualizeHeight.js
JavaScript
0.000002
@@ -0,0 +1,2933 @@ +/*!%0A * jumpAndEqualizeHeight v0.6%0A * by Yury Ka%0A *%0A * More info:%0A * ....later....%0A *%0A * Copyright 2015, 2016 Yury Karpov%0A * Released under the MIT license%0A * https://opensource.org/licenses/mit-license.php%0A */%0A%0A(function( $ ) %7B%0A $.fn.jumpAndEqualizeHeight = functio...
925d6d10d5a582402c7cbbcfb74871861755167e
add __DEV__, __TEST__, and __PROD__ globals
interfaces/globals.d.js
interfaces/globals.d.js
JavaScript
0.000068
@@ -0,0 +1,92 @@ +declare var __DEV__: boolean;%0Adeclare var __TEST__: boolean;%0Adeclare var __PROD__: boolean;%0A
f5490c5d31197b01b8dbc47b378e859e69b4229a
Create buttoncontroller.js
js/buttons/buttoncontroller.js
js/buttons/buttoncontroller.js
JavaScript
0
@@ -0,0 +1,496 @@ +function ButtonController(options)%7B%0A%09this.buttonClickedCallback = options.callback;%0A%09this.model = options.buttonModel;%0A%09this.view - new package.CALC.buttons.button.view(%7B%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09el : options.el,%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%09model : t...
e9615594bbf397e5d4e72fbde433ca1bc00c5f61
Build v0.0.1
dist/bemact.min.js
dist/bemact.min.js
JavaScript
0.000011
@@ -0,0 +1,1213 @@ +!function(e)%7Bfunction r(n)%7Bif(t%5Bn%5D)return t%5Bn%5D.exports;var i=t%5Bn%5D=%7Bexports:%7B%7D,id:n,loaded:!1%7D;return e%5Bn%5D.call(i.exports,i,i.exports,r),i.loaded=!0,i.exports%7Dvar t=%7B%7D;return r.m=e,r.c=t,r.p=%22/dist%22,r(0)%7D(%5Bfunction(e,r,t)%7Be.exports=t(1)%7D,function(e,r,t)%7...
253f507ca142ca4909ce76e46ba398952b68256d
add users api
src/api/user.js
src/api/user.js
JavaScript
0.000001
@@ -0,0 +1,180 @@ +import axios from 'axios';%0Aconst apiBaseUrl = 'http://localhost:9090/api'%0A%0Aexport function registerUser(user, mode)%7B%0A return axios.post(%60$%7BapiBaseUrl%7D/users%60, %7B...user, mode%7D)%0A%7D
ec2a98e76b6f9990a82e7a711bc560cd89593a7d
Create jquery.font-awesome-rater.js
jquery.font-awesome-rater.js
jquery.font-awesome-rater.js
JavaScript
0.000003
@@ -0,0 +1,3397 @@ +(function($) %7B%0A $.fn.fontAwesomeRating = function(options) %7B%0A var $this = this;%0A var _far = %7B%0A settings : $.extend(%0A %7B%0A icon : 'star',%0A classes : '',%0A preset ...
e0969cd95c4e4c9e5b705e91d3b80fae2e73b1f7
add some debug messages
js/plugins/InsightStorage.js
js/plugins/InsightStorage.js
var request = require('request'); var cryptoUtil = require('../util/crypto'); var bitcore = require('bitcore'); var buffers = require('buffer'); var querystring = require('querystring'); var Identity = require('../models/Identity'); var log = require('../log'); var SEPARATOR = '|'; function InsightStorage(config) { ...
JavaScript
0.000001
@@ -1335,19 +1335,29 @@ ) %7B%0A -console.log + if (err) log.info ('%5BI @@ -1374,33 +1374,21 @@ age. -js.49: + err -: %5D', + err); - //TODO %0A @@ -1788,17 +1788,16 @@ erations - %0A * for @@ -1880,17 +1880,16 @@ ings are - %0A * not @@ -2182,16 +2182,17 @@ ion() %7B%0A + return @@ -2478,5...
04d66d652efc8051269085ed98b2c99f2b555977
Add sandbox module which just acts as a proxy to require().
modules/sandbox.js
modules/sandbox.js
JavaScript
0
@@ -0,0 +1,214 @@ +/*%0A * @fileoverview A compatibility module for Narwhal's sandbox.%0A * RingoJS is auto-reloading by default, so this is just a proxy%0A * to require().%0A */%0A%0Aexports.Sandbox = function(options) %7B%0A return require;%0A%7D;%0A
2891b47baf595cd95097d12708defd9790e070d6
Add subclass test.
test/oauth2.subclass.test.js
test/oauth2.subclass.test.js
JavaScript
0
@@ -0,0 +1,2610 @@ +var OAuth2Strategy = require('../lib/strategy')%0A , AuthorizationError = require('../lib/errors/authorizationerror')%0A , chai = require('chai')%0A , util = require('util');%0A%0A%0Adescribe('OAuth2Strategy subclass', function() %7B%0A %0A describe('that overrides tokenParams', function() %7B%...
cfce862605d9984debb6c2bc164011ae2e229ac3
Create fadeInOnScroll.js
fadeInOnScroll.js
fadeInOnScroll.js
JavaScript
0.000001
@@ -0,0 +1,1284 @@ +(function () %7B%0A%09%0A%09var fadeInOnScroll = function(element) %7B%0A%09%09this.element = element;%0A%09%09this.$element = $(element);%0A%09%09this.options = %7B%0A%09%09%09duration: this.$element.data(%22duration%22),%0A%09%09%09delay: this.$element.data(%22delay%22),%0A%09%09%09fromBottom: thi...
50a5ee0ef6c0356bf8e939e31ea61e56d372b645
Add basic object detection
canvasengine.js
canvasengine.js
JavaScript
0.00009
@@ -0,0 +1,1633 @@ +%22use strict%22;%0A%0Afunction getRandomColor() %7B%0A var letters = '0123456789ABCDEF'.split('');%0A var color = '#';%0A for (var i = 0; i %3C 6; i++ ) %7B%0A color += letters%5BMath.floor(Math.random() * 16)%5D;%0A %7D%0A return color;%0A%7D%0Avar randomColors = %5B%5D;%0Ava...
796cb166fd1b01bfce8f512ddb3d42699b54564b
add tests
test/index.spec.js
test/index.spec.js
JavaScript
0
@@ -0,0 +1,2137 @@ +describe(%22#ws-mock%22, function () %7B%0A var assert = require(%22assert%22),%0A sinon = require('sinon'),%0A WsServerMock = require('../index').WsServer,%0A srv = new MyServer(new WsServerMock());%0A%0A it(%22should add connection%22, function (done) %7B%0A var w...
16ac383ffd237ed54b9dab769f44bb77f1eb54b0
Create mocha_test.js
test/mocha_test.js
test/mocha_test.js
JavaScript
0.000095
@@ -0,0 +1,1918 @@ +var Ping = require('ping-lite'),%0A assert = require('assert');%0A%0Adescribe('ping-lite.js', function() %7B%0A describe('new Ping()', function() %7B%0A it('should fail w/o a host', function(done) %7B%0A assert.throws(function() %7B%0A var ping = new Ping();%0A %7D, Error);%0...
578281f4c6596a1dae2e5426d352ddfea45fe7d2
Create installer.js
src/installer.js
src/installer.js
JavaScript
0.000001
@@ -0,0 +1,1081 @@ +ScratchExtensions.loadExternalJS('http://www.googledrive.com/host/0BwZCk9UtDHYoTHdDUGlFa0Q2aXM');%0AScratchExtensions.loadExternalJS('http://www.googledrive.com/host/0BwZCk9UtDHYoUHdSQklzYjlkeHM');%0AScratchExtensions.loadExternalJS('http://www.googledrive.com/host/0BwZCk9UtDHYoTkUwLXIxNE1SN1k');%0A...
b91031159593446783189d979375e71cc8e7601c
Remove render and use the built-in simpleBody.
lib/connect/providers/router.js
lib/connect/providers/router.js
// This provider is the core functionality of node-router put in a middleware var Buffer = require('buffer').Buffer; var routes = []; function addRoute(method) { return function (pattern, handler, format) { if (typeof pattern === 'string') { pattern = new RegExp("^" + pattern + "$"); ...
JavaScript
0
@@ -654,131 +654,8 @@ );%0A%0A - res.render = function (body) %7B%0A var type = %22text/html%22;%0A res.simpleBody(200, body, %22text/html%22);%0A %7D;%0A%0A @@ -672,24 +672,24 @@ ispatch() %7B%0A + var @@ -773,21 +773,43 @@ res. -render(result +simpleBody(200, result, %22text/htm...
9a9a49855f852c26d093ba8611803c06dc61023e
add test_encryption.js
test_encryption.js
test_encryption.js
JavaScript
0.000001
@@ -0,0 +1,1516 @@ +var crypto = require('crypto');%0D%0A%0D%0Avar KEY = 'foobar!';%0D%0A%0D%0A%0D%0Avar int32Max = Math.pow(2, 32);%0D%0A// do a mod for large number%0D%0A// since js only support 2%5E53%0D%0A// div must be a very small number%0D%0Afunction modInt64(high, low, div) %7B%0D%0A return ((high %25 div) *...
332f393ac7527800036ca24bf5b76d84af531a41
Implement a proper Fisher-Yates shuffle.
src/deck.js
src/deck.js
const Card = require('./card.js'); class Deck { constructor() { this.cards = []; for (let suit of Card.Suits()) { for (let rank of Card.Ranks()) { let card = new Card(rank, suit); this.cards.push(card); } } } shuffle() { let numberOfCards = this.cards.length; ...
JavaScript
0.000321
@@ -251,46 +251,169 @@ %7D%0A +%0A -%0A shuffle() %7B%0A let numberOfCards +// Public: Performs a proper Fisher-Yates shuffle.%0A //%0A // Returns nothing; the shuffle is in-place.%0A shuffle() %7B%0A let temp, idx;%0A let cardsRemaining = t @@ -434,148 +434,236 @@ th;%0A +%0A -%0A for (...
ea97e5d0190a1d3981244389a8515af6bfb1d756
add cli cmd tempalte gen script
cli/template.js
cli/template.js
JavaScript
0
@@ -0,0 +1,774 @@ +// %E6%96%B0%E5%BB%BA%E7%BB%84%E4%BB%B6%E8%BE%85%E5%8A%A9%0A%0Aconst fs = require(%22fs%22)%0Aconst path = require(%22path%22)%0A%0Aconst name = process.argv%5B2%5D%0Aif (!name) %7B%0A console.log(%22%E7%BB%99%E4%B8%AA%E7%BB%84%E4%BB%B6%E5%90%8D%E5%AD%97%22)%0A return%0A%7D%0Aconst dir = process.ar...
7085c6d0ead87a3e2de0e27853220343adef837b
Fix validate reference
lib/services/webSiteManagement/lib/credentials/basicAuthenticationCloudCredentials.js
lib/services/webSiteManagement/lib/credentials/basicAuthenticationCloudCredentials.js
// // Copyright (c) Microsoft and contributors. 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 requi...
JavaScript
0.000001
@@ -632,24 +632,27 @@ / %0A%0Avar -validate +azureCommon = requi @@ -659,27 +659,59 @@ re(' -../../util/ +azure-common');%0Avar validate = azureCommon. validate ');%0A @@ -706,18 +706,16 @@ validate -') ;%0A%0A/**%0A*
b86260435d4f970ae60d3f9cd143b704b4cf593e
add psuedo code for repeat logger
src/foam/nanos/logger/RepeatLogger.js
src/foam/nanos/logger/RepeatLogger.js
JavaScript
0
@@ -0,0 +1,1253 @@ +/**%0A * @license%0A * Copyright 2018 The FOAM Authors. All Rights Reserved.%0A * http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0Afoam.CLASS(%7B%0A package: 'foam.nanos.logger',%0A name: 'RepeatLogger',%0A extends: 'foam.nanos.logger.ProxyLogger',%0A%0A documentation: %60takes a st...
21558110b60b9023bdda724d810dee07449e8249
Add missing navigator.js
src/navigator.js
src/navigator.js
JavaScript
0.000212
@@ -0,0 +1,474 @@ +import %7B StackNavigator %7D from 'react-navigation'%0A%0Aimport SignedInNavigator from './navigators/SignedInNavigator'%0Aimport SignedOutNavigator from './navigators/SignedOutNavigator'%0A%0Aexport const createRootNavigator = (signedIn = false) =%3E %7B%0A return StackNavigator(%7B%0A Signed...
94415b6dd5b69d6a9b22feb53a03964a9e054025
Add test assertions for domains.js
test/domains.js
test/domains.js
JavaScript
0.000001
@@ -0,0 +1,1406 @@ +'use strict';%0A%0Aconst express = require('express');%0Aconst expect = require('expect');%0Aconst request = require('supertest');%0Aconst config = require('../src/config');%0Aconst domains = require('../src/domains');%0A%0Adescribe('domains.js', () =%3E %7B%0A const app = express();%0A let userDo...
870772a0b70a5196a7a8ac317708a8bfc70f74c3
Add test for civetweb.getoption
test/page3.ssjs
test/page3.ssjs
JavaScript
0
@@ -0,0 +1,1310 @@ +print = conn.write %7C%7C print%0A%0Aopts = %5B%0A%22cgi_pattern%22,%0A%22cgi_environment%22,%0A%22put_delete_auth_file%22,%0A%22cgi_interpreter%22,%0A%22protect_uri%22,%0A%22authentication_domain%22,%0A%22ssi_pattern%22,%0A%22throttle%22,%0A%22access_log_file%22,%0A%22enable_directory_listing%22,%0...
634b632fc99b5363db3ac884305c9f4d711f5720
Add SetAndTrack
eln/SetAndTrack.js
eln/SetAndTrack.js
JavaScript
0
@@ -0,0 +1,1154 @@ +define(%5B%0A 'src/util/api',%0A%5D, function (API) %7B%0A var externalInfo = JSON.parse(window.localStorage.getItem('external_cache') %7C%7C %22%7B%7D%22);%0A var smiles = externalInfo.smiles;%0A var molfile = externalInfo.molfile;%0A API.createData('nmr',%5B%5D);%0A API.createDat...
4931a268f601dcd6b36649d2fc05a9ada08ada10
Add simple test node server to print out endpoints
tools/server.js
tools/server.js
JavaScript
0
@@ -0,0 +1,477 @@ +const http = require('http');%0A%0Aconst port = 1234;%0A%0Aconst handler = (req, res) =%3E %7B%0A console.log(req.url);%0A res.setHeader('Access-Control-Allow-Origin', '*');%0A res.setHeader('Access-Control-Request-Method', '*');%0A res.setHeader('Access-Control-Allow-Methods', 'OPTIONS, ...
77244d0062b099d8c009a50a404b7a7d62f6bbe3
add tests from fix_228 branch
test/cmd.js
test/cmd.js
JavaScript
0
@@ -0,0 +1,1049 @@ +var Embark = require('../lib/index');%0Avar Cmd = require('../lib/cmd');%0A%0Adescribe('embark.Cmd', function () %7B%0A var cmd = new Cmd(Embark);%0A%0A describe('#new', function () %7B%0A it('it should not create an app without a name', function (done) %7B%0A cmd.newApp(undefined, functio...
f0a1aa2d5dd603e66c509d92aa560c0ac6d32b92
add tests
test/mse.js
test/mse.js
JavaScript
0
@@ -0,0 +1,715 @@ +var mse = require('../');%0Avar test = require('tap').test;%0A%0Avar original_1x1 = %5B128%5D;%0Avar noisy_1x1 = %5B136%5D;%0Avar original_2x2 = %5B0, 128, 192, 255%5D;%0Avar noisy_2x2 = %5B0, 128, 179, 255%5D;%0A%0Atest('1x1 identical', function (t) %7B%0A t.plan(1);%0A%0A var result = m...
a55b25d18831edbd3fb259cb75dfcec696986f41
add tests for mul
test/mul.js
test/mul.js
JavaScript
0
@@ -0,0 +1,743 @@ +'use strict'%0A%0Avar tape = require('tape')%0Avar rv = require('../index')%0Avar equal = require('../equal')%0Avar mul = require('../mul')%0Avar bn = require('../lib/num-to-bn');%0A%0Atape('multiply wholes', function(t) %7B%0A var a = rv(%5B5%5D);%0A var b = rv(%5B3%5D);%0A var e = rv(%5B15%5D);%...
24c3ebc526b42151b92a8f4cfc8afff1f5e9af21
FIX linting
packages/addon-options/src/preview/index.js
packages/addon-options/src/preview/index.js
import addons from '@kadira/storybook-addons'; import { EVENT_ID } from '../shared'; // init function will be executed once when the storybook loads for the // first time. This is a good place to add global listeners on channel. export function init() { // NOTE nothing to do here } // setOptions function will send ...
JavaScript
0.000001
@@ -530,21 +530,23 @@ NT_ID, %7B + options + %7D);%0A%7D%0A
e4b5ae2dd4fce532a6117df60b2513748643d3cc
Add missing file
src/helper/etag.js
src/helper/etag.js
JavaScript
0.000006
@@ -0,0 +1,369 @@ +import %7B MD5 %7D from 'object-hash';%0A%0Aexport default function handleEtag(request, response, value, end) %7B%0A const hash = MD5(value);%0A%0A if (request.header('x-etag') === hash) %7B%0A response.status(304);%0A%0A if (end === true) %7B%0A response.end();%0A %7D else %7B%0A ...
de4a7ee9cb31e257a3fe5ceb494586b19a412ba2
Add story for bookmarklet component
src/v2/stories/Bookmarklet.stories.js
src/v2/stories/Bookmarklet.stories.js
JavaScript
0
@@ -0,0 +1,312 @@ +import React from 'react'%0Aimport %7B storiesOf %7D from '@storybook/react'%0A%0Aimport Specimen from 'v2/stories/__components__/Specimen'%0A%0Aimport Bookmarklet from 'v2/components/Bookmarklet/components/Blocks'%0A%0AstoriesOf('Bookmarklet', module).add('Bookmarklet', () =%3E (%0A %3CSpecimen%3E%...
3fdad99f31266c5367fed2b2d4b8c38079e09814
Fix name confirm
modules_basic/avatar-edit.js
modules_basic/avatar-edit.js
'use strict' var dataurl = require('dataurl-') var hyperfile = require('hyperfile') var hypercrop = require('hypercrop') var hyperlightbox = require('hyperlightbox') var h = require('hyperscript') var pull = require('pull-stream') var getAvatar = require('ssb-avatar') var plugs = require('../plugs') var ref = require('...
JavaScript
0.000001
@@ -3994,16 +3994,28 @@ +api.message_ confirm(
d215c4a32591ec4cf2e5ed50bfc18aab527a7f32
Add missing date file
src/rule/date.js
src/rule/date.js
JavaScript
0.000009
@@ -0,0 +1,333 @@ +goog.provide('ngeo.rule.Date');%0A%0Agoog.require('ngeo.rule.Rule');%0A%0A%0Angeo.rule.Date = class extends ngeo.rule.Rule %7B%0A%0A /**%0A * A date rule.%0A *%0A * @struct%0A * @param %7B!ngeox.rule.DateOptions%7D options Options.%0A */%0A constructor(options) %7B%0A%0A options.type =...
58f3dfc804c04311706fcec0b27b1d7b9186be08
add main executable
src/ramdb.es6
src/ramdb.es6
JavaScript
0.000004
@@ -0,0 +1,333 @@ +%0Avar BaseQuery = %7B%0A%0A filter: function () %7B%0A%0A %7D,%0A%0A run: function () %7B%0A%0A %7D%0A%0A%7D%0A%0Avar BaseDB = %7B%0A%0A query: function () %7B%0A var query = Object.create(BaseQuery)%0A%0A query.db = this%0A query.ops = %5B%5D%0A%0A return query%0A %7D%0A%0A%7D%0A%...
7e4844b92baa1bc38e7737c655603584448878bd
Add test for quoted property keys, closes #135
packages/babel-plugin-flow-runtime/src/__tests__/__fixtures__/bugs/135-quoted-property-keys.js
packages/babel-plugin-flow-runtime/src/__tests__/__fixtures__/bugs/135-quoted-property-keys.js
JavaScript
0
@@ -0,0 +1,944 @@ +/* @flow */%0A%0Aexport const input = %60%0Atype ODataAST = %7B%0A '$path'?: $path,%0A '$select'?: $select,%0A '$expand'?: $expand,%0A '$filter'?: $filter,%0A '$orderby'?: $orderby,%0A '$callback'?: string,%0A '$format'?: string,%0A '$search'?: string,%0A '$count'?: boolean,%0A '$skip'?: nu...
1d8280d8c887674d9ce1ab7cd1c29e647832a79b
Create strongEval.js
strongEval.js
strongEval.js
JavaScript
0.000001
@@ -0,0 +1,805 @@ +(function(g,strongEval) %7B%0A if (exports) %7B%0A exports=strongEval;%0A %7Delse%7B%0A g.strongEval=strongEval;%0A %7D%0A%7D)(this,(function() %7B%0A%09var strongEval=function(str,globalObj) %7B%0A%09%09var obj=%7B%7D;%0A%09%09/*for (var index in window) %7B//overwrite all of the items in t...
137c0fe188513ffa60553186ef940ebad2f89072
add i18n task
gulp/tasks/i18n.js
gulp/tasks/i18n.js
JavaScript
0.999997
@@ -0,0 +1,196 @@ +/**%0A * Created by huangxinghui on 2015/8/15.%0A */%0A%0Avar gulp = require('gulp');%0A%0Agulp.task('i18n', function () %7B%0A return gulp.src('./src/locales/*')%0A .pipe(gulp.dest('./build/i18n/'));%0A%7D);
adfbde3b95ad1ca984851c9822793816157cd9d2
declare external dep on `angular/core` in webpack bundle Closes #2687
packages/ng2/webpack.config.js
packages/ng2/webpack.config.js
// <package>/../../src/ is copied to <package>/src // This config is then copied to <package>/src/webpack.config.js var pkg = require('../package.json'); var banner = pkg.description + '\n' + '@version v' + pkg.version + '\n' + '@link ' + pkg.homepage + '\n' + '@license MIT License, http://www.opensource.o...
JavaScript
0
@@ -1050,32 +1050,54 @@ 'angular2/core', + amd: 'angular2/core', commonjs2: 'ang
03e6980bf012f8d3daeb5d1a8f2a95735894b292
Add getQuota tests
test/node/operations/getQuota.spec.js
test/node/operations/getQuota.spec.js
JavaScript
0
@@ -0,0 +1,2082 @@ +const fs = require(%22fs%22);%0Aconst path = require(%22path%22);%0Aconst %7B%0A SERVER_PASSWORD,%0A SERVER_PORT,%0A SERVER_USERNAME,%0A createWebDAVClient,%0A restoreRequests,%0A returnFakeResponse%0A%7D = require(%22../../helpers.node.js%22);%0A%0Afunction useInvalidQuota() %7B%0...
7c013a8f49760a2f22964e8102030041afb66d39
Add example AirPlay Server
examples/server.js
examples/server.js
JavaScript
0
@@ -0,0 +1,308 @@ +'use strict';%0A%0Avar debug = require('debug')('airplay');%0Avar airplay = require('../')();%0A%0Aairplay.on('request', function (req, res) %7B%0A console.log(req.method, res.url);%0A debug(req.headers);%0A%7D);%0A%0Aairplay.listen(function () %7B%0A debug('AirPlay server is now listening on port...
af0acc4e388502e8be84770662ffd4a8b6eff9fa
Replace window.onload with $.ready() to fix unit tests.
test/SpecRunner.js
test/SpecRunner.js
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
JavaScript
0
@@ -1535,17 +1535,16 @@ %22text%22 - : %22third @@ -1555,16 +1555,16 @@ y/text%22%0A + %7D%0A%7D) @@ -2900,57 +2900,8 @@ er() -,%0A currentWindowOnload = window.onload ;%0A @@ -5432,142 +5432,46 @@ +$( window. -onload = function () %7B%0A if (currentWindowOnload) %7B%0A ...
f2ee88fccd4d8b87f83a827878fbd2e33844cb6e
Add tests for flags
test/test-flags.js
test/test-flags.js
JavaScript
0
@@ -0,0 +1,969 @@ +/* jslint node: true */%0A/* global describe: false, it: false */%0A'use strict';%0A%0Avar Client = require('../'),%0A expect = require('chai').expect;%0A%0A// Tests%0A%0Adescribe('flags', function() %7B%0A%0A var client;%0A beforeEach(function() %7B%0A client = new Client(%7Blocation: '127.0...
f1c10cb6f4e0a6b957514a64500a9c8c48aff546
Use old though
test/util/index.js
test/util/index.js
JavaScript
0.000001
@@ -0,0 +1,148 @@ +'use strict';%0A%0Avar through = require('through');%0A%0Amodule.exports.noop = function () %7B%0A%09return through(function (data) %7B%0A%09%09this.queue(data);%0A%09%7D);%0A%7D;%0A
bc287c1c15684c83cf7c2370a2e0baf51873b483
add helper method create an app's default email address
apps/api/helpers/app-email.js
apps/api/helpers/app-email.js
JavaScript
0.000003
@@ -0,0 +1,288 @@ +/**%0A * Returns the from-email of the app%0A *%0A * @param %7Bstring%7D aid app id%0A * @return %7Bstrin%7D app email address%0A */%0A%0A// TODO : move INBOUND_MAIL_DOMAIN to config.js%0Avar INBOUND_MAIL_DOMAIN = 'mail.userjoy.co';%0A%0Amodule.exports = function (aid) %7B%0A return aid + '@' + INBO...
55a6ed8613fce314644972a8fb87d25f79c27b4a
Add utilities file for querying database
server/db/utils.js
server/db/utils.js
JavaScript
0.000001
@@ -0,0 +1,79 @@ +module.exports = %7B%0A getAllUsers: () =%3E %7B%0A %0A %7D,%0A%0A getUser: () =%3E %7B%0A%0A %7D%0A%0A%7D
f7119676cae543ab4371da7ce4e66da2dfce43ab
Fix datepicker to use the value of input field.
app/assets/javascripts/cyt.js
app/assets/javascripts/cyt.js
// Combobox function addComboboxBehaviour() { $("select.combobox").select2({ allowClear: true }); } // Autofocus element having attribute data-autofocus function addAutofocusBehaviour() { $('*[data-autofocus=true]') .filter(function() {return $(this).parents('.form-view').length < 1}) .first().focus(...
JavaScript
0
@@ -415,104 +415,8 @@ ()%7B%0A - if ($(this).hasClass('date')) %7B%0A $(this).data('date', new Date().toISOString());%0A %7D%0A
57e26cded75e689ddda442b799416d4a9befac11
Fix ISO matching for IE8
src/lib/create/from-string.js
src/lib/create/from-string.js
import { configFromStringAndFormat } from './from-string-and-format'; import { hooks } from '../utils/hooks'; import { deprecate } from '../utils/deprecate'; import getParsingFlags from './parsing-flags'; // iso 8601 regex // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +...
JavaScript
0.000006
@@ -2248,24 +2248,16 @@ match%5B3%5D - != null ) %7B%0A @@ -2809,24 +2809,16 @@ match%5B4%5D - != null ) %7B%0A
ffed94d209cd0ef0146d48d35a68e86923883718
improve a module loading failure error message
vendor/resolver.js
vendor/resolver.js
define("resolver", [], function() { "use strict"; /* * This module defines a subclass of Ember.DefaultResolver that adds two * important features: * * 1) The resolver makes the container aware of es6 modules via the AMD * output. The loader's _seen is consulted so that classes can be *...
JavaScript
0.000001
@@ -2732,54 +2732,104 @@ or(%22 -Module: '%22 + name + %22' was found but returned + Expected to find: '%22 + parsedName.fullName + %22' within '%22 + normalizedModuleName + %22' but got ' unde @@ -2833,16 +2833,17 @@ ndefined +' . Did yo @@ -2870,16 +2870,54 @@ default%60 + within '%22 + normalizedModuleName + %...
c171cb4341feacc96503542624846e45ebaf51bd
move conf
unit-tests.conf.js
unit-tests.conf.js
JavaScript
0.000002
@@ -0,0 +1,2315 @@ +// Karma configuration%0A// Generated on Fri Jun 24 2016 23:41:04 GMT+0200 (CEST)%0A%0Amodule.exports = function(config) %7B%0A config.set(%7B%0A%0A // base path that will be used to resolve all patterns (eg. files, exclude)%0A basePath: '',%0A%0A%0A // frameworks to use%0A // available...
076d1f5d6ebff8ceddfd1b03235c7bebcb25ba80
Create script.js
Day-54/script.js
Day-54/script.js
JavaScript
0.000005
@@ -0,0 +1 @@ +%0A
afc358d4176ce88515698e499dcb4f3ca8a4bc9f
Add question for server requirement
prompts/server.js
prompts/server.js
JavaScript
0.000029
@@ -0,0 +1,427 @@ +module.exports = %7B%0A%0A required: function() %7B%0A if (this.options%5B'server-required'%5D !== undefined) %7B%0A this.log('server requirement already specified');%0A return;%0A %7D%0A return this.prompt(%7B%0A type: 'confirm',%0A name: 'server-required',%0A mess...
d8b89e1d4bd4b6c0b58b3804f9b3502f9f80a5eb
Write the second version of "Fizz Buzz."
ch02/fizz_buzz_2.js
ch02/fizz_buzz_2.js
JavaScript
0.999743
@@ -0,0 +1,315 @@ +/**%0A * Created by larry on 8/28/16.%0A */%0A%0Afor(var i = 1; i %3C= 100; i++) %7B%0A if (i %25 3 == 0 && i %25 5 == 0) %7B%0A console.log(%22FizzBuzz%22);%0A %7D%0A else if (i %25 3 == 0) %7B%0A console.log(%22Fizz%22);%0A %7D%0A else if (i %25 5 == 0) %7B%0A co...
ee01c3716ffb6a823a0c10cd596c926a43a47f37
Update proptypes order
Swipeable.js
Swipeable.js
var React = require('react') var assign = require('object-assign') var Swipeable = React.createClass({ propTypes: { onSwiped: React.PropTypes.func, onSwipingUp: React.PropTypes.func, onSwipingRight: React.PropTypes.func, onSwipingDown: React.PropTypes.func, onSwipingLeft: React.PropTypes.func, ...
JavaScript
0
@@ -323,20 +323,18 @@ onSwiped -Left +Up : React. @@ -394,34 +394,36 @@ nc,%0A onSwiped -Up +Down : React.PropType @@ -434,36 +434,36 @@ nc,%0A onSwiped -Down +Left : React.PropType
66c315a0772d272b40be49be35a912e3538ea3e6
Fix typo
lib/amd-helpers.js
lib/amd-helpers.js
/* * AMD Helper function module * Separated into its own file as this is the part needed for full AMD support in SFX builds * */ hookConstructor(function(constructor) { return function() { var loader = this; constructor.call(this); var commentRegEx = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg; va...
JavaScript
0.999999
@@ -4631,17 +4631,17 @@ faultJSE -X +x tensions
6e537606b061ed0d36deca24959fb94c595283c3
Create tagmanager.js
tagmanager.js
tagmanager.js
JavaScript
0.000002
@@ -0,0 +1,506 @@ +%3Cnoscript%3E%3Ciframe src=%22//www.googletagmanager.com/ns.html?id=GTM-N7RXFS%22%0Aheight=%220%22 width=%220%22 style=%22display:none;visibility:hidden%22%3E%3C/iframe%3E%3C/noscript%3E%0A%3Cscript%3E(function(w,d,s,l,i)%7Bw%5Bl%5D=w%5Bl%5D%7C%7C%5B%5D;w%5Bl%5D.push(%7B'gtm.start':%0Anew Date().get...
0f5effe2dc79a5a44f1883dfda8f0cf76f9f4283
Revert "Fix bug 49, still need to add e2e test"
lib/functions/listScriptFiles.js
lib/functions/listScriptFiles.js
JavaScript
0
@@ -0,0 +1,2041 @@ +var google = require('googleapis');%0Avar colors = require('colors');%0Avar constants = require('../constants.js');%0A%0A/**%0A * Lists the names and IDs of script files.%0A *%0A * @param %7Bgoogle.auth.OAuth2%7D auth - An authorized OAuth2 client.%0A * @param %7Bstring%7D nameFilter - String to fil...
ef34816032d1c7b4aa341499c62ad630e68bcee6
update for NodeBB 1.0
lib/controllers.js
lib/controllers.js
JavaScript
0
@@ -0,0 +1,168 @@ +'use strict';%0A%0Avar Controllers = %7B%7D;%0A%0AControllers.renderAdminPage = function (req, res, next) %7B%0A%0A%09res.render('admin/plugins/jwt', %7B%7D);%0A%7D;%0A%0Amodule.exports = Controllers;
475caf350e9fcbebdaea415f88a1a56ca16a496d
Add executed tests
test/index/executed.test.js
test/index/executed.test.js
JavaScript
0.000005
@@ -0,0 +1,2826 @@ +'use strict';%0A%0Avar _ = require('lodash');%0Avar Bluebird = require('bluebird');%0Avar expect = require('expect.js');%0Avar helper = require('../helper');%0Avar Migration = require('../../lib/migration');%0Avar Migrator = require('../../index');%0Avar sinon = require('sinon');...
a96eb6547c23131f48eecabce3ec7180ce1e83d3
Add spec for useManualEventHandlers
packages/react-jsx-highcharts/test/components/UseManualEventHandlers/useManualEventHandlers.spec.js
packages/react-jsx-highcharts/test/components/UseManualEventHandlers/useManualEventHandlers.spec.js
JavaScript
0
@@ -0,0 +1,3298 @@ +import React from 'react';%0Aimport useManualEventHandlers from '../../../src/components/UseManualEventHandlers';%0A%0Aimport %7B Highcharts %7D from '../../test-utils';%0Aimport HighchartContext from '../../../src/components/HighchartsContext';%0A%0Adescribe('useManualEventHandlers', () =%3E %7B%0A...
7b2f08e8f3744febd257812d8b07324f96dcc6b6
Refactor selectorNaming position reporting (#417)
lib/linters/selector_naming.js
lib/linters/selector_naming.js
'use strict'; const parseSelector = require('../utils/parse-selector'); const util = require('util'); module.exports = { name: 'selectorNaming', nodeTypes: ['rule'], message: 'Selector "%s" should follow naming conventions.', lint: function selectorNamingLinter (config, node) { const selector...
JavaScript
0
@@ -1010,110 +1010,191 @@ -results.push(%7B%0A column: node.source.start.column + selector.source.start +const position = node.positionBy(%7B%0A word: selector.toString().trim()%0A %7D);%0A%0A results.push(%7B%0A column: positi...
e2e28269a8f5b3700ff35273ec38ce6fec0b1f56
update pan handlers in IntercationManager callback if the panResponder gets recreated during an interaction (e.g. - swipe gesture), it never clears the interaction handle. so we avoid recreating the panResponder during an interaction
src/TabViewPage.js
src/TabViewPage.js
/* @flow */ import React, { Component, PropTypes } from 'react'; import { Animated, PanResponder, StyleSheet, View, } from 'react-native'; import shallowCompare from 'react-addons-shallow-compare'; import TabViewPanResponder from './TabViewPanResponder'; import TabViewStyleInterpolator from './TabViewStyleInte...
JavaScript
0.000001
@@ -80,16 +80,38 @@ imated,%0A + InteractionManager,%0A PanRes @@ -1185,72 +1185,166 @@ -if ( this. -props.navigationState !== nextProps.navigationState +_callbackId++;%0A const currentId = this._callbackId;%0A InteractionManager.runAfterInteractions(() =%3E %7B%0A if (currentId === this._callbac...
ad92cc62753a654505408dbba1ae62dc96531ef0
add buffer.unit
test/unit/is/buffer.unit.js
test/unit/is/buffer.unit.js
JavaScript
0.000102
@@ -0,0 +1,250 @@ +import * as datatypes from 'fixtures/datatypes.fixture.js';%0Aimport * as is from '~/is';%0A%0Adescribe('#buffer', () =%3E %7B%0A%09it('O m%C3%A9todo %22buffer%22 deve existir no escopo do m%C3%B3dulo %22is%22', () =%3E %7B%0A%09%09expect(is.buffer).toEqual(jasmine.any(Function));%0A%09%7D);%0A%7D);%...
bb4fb818f19c624f7f233fe6c80277c3d56f93e3
Add error handling for list subscribers
client/actions/listActions.js
client/actions/listActions.js
import axios from 'axios'; import { API_SUBSCRIBERS_ENDPOINT, API_IMPORTCSV_ENDPOINT, API_MANAGELIST_ENDPOINT, API_LISTSUBSCRIBERS_ENDPOINT } from '../constants/endpoints'; import { REQUEST_ADD_SUBSCRIBERS, COMPLETE_ADD_SUBSCRIBERS, REQUEST_GET_LISTS, COMPLETE_GET_LISTS, REQUEST_GET_LIST_SUBSCRIBERS, COMPLETE_GET...
JavaScript
0
@@ -365,16 +365,73 @@ nTypes'; +%0Aimport %7B notify %7D from '../actions/notificationActions'; %0A%0Aexport @@ -1349,61 +1349,104 @@ -console.log(%22broke it%22);%0A console.log(response +dispatch(completeGetListSubscribers(%5B%5D));%0A dispatch(notify(%7B message: response.message %7D) );%0A
cb260529a8585a8a5e34ff7962602e560be08e39
Add test coverage for actions
app/actions/__tests__/tasks.js
app/actions/__tests__/tasks.js
JavaScript
0
@@ -0,0 +1,1563 @@ +import * as actions from '../tasks';%0A%0Adescribe('Task Actions', () =%3E %7B%0A let defaultId,%0A defaultTask;%0A%0A beforeEach(() =%3E %7B%0A defaultId = 'someUniqueId';%0A defaultTask = %7B%0A id: 'someIdString',%0A name: 'Some task name'%0A ...
c9d86ff3a3d8d9889cae2216f61e519054c8e3ee
Update current Firefox ESR to 38 in Autoprefixer settings
grunt/autoprefixer-settings.js
grunt/autoprefixer-settings.js
module.exports = { settings: { browsers: [ // // Official browser support policy: // http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers // 'Chrome >= 35', // Exact version number here is kinda arbitrary // Rather than using Autoprefixer's nati...
JavaScript
0
@@ -1057,17 +1057,17 @@ fox %3E= 3 -1 +8 ', // Cu
3403530d0fca137f870b61156208366dd2efba03
add strip-maps plugin
strip-maps/index.js
strip-maps/index.js
JavaScript
0
@@ -0,0 +1,620 @@ +'use strict';%0A%0Avar mixlib = require('mix/lib');%0A%0Amodule.exports = function () %7B%0A return function (tree) %7B%0A var counter = 0;%0A%0A var nodes = tree.nodes.map(function (node) %7B%0A var outputNode = tree.cloneNode(node);%0A var hadMap = mixlib.tree...
864b760933f164eb7ea139e80f1120d07ce50037
Bring set-basal up to date with oref 0.7.0
app/src/main/assets/OpenAPSSMB/basal-set-temp.js
app/src/main/assets/OpenAPSSMB/basal-set-temp.js
'use strict'; function reason(rT, msg) { rT.reason = (rT.reason ? rT.reason + '. ' : '') + msg; console.error(msg); } var tempBasalFunctions = {}; tempBasalFunctions.getMaxSafeBasal = function getMaxSafeBasal(profile) { var max_daily_safety_multiplier = (isNaN(profile.max_daily_safety_multiplier) || profile.ma...
JavaScript
0
@@ -221,17 +221,20 @@ ile) %7B%0A%0A -%09 + var max_ @@ -394,17 +394,20 @@ iplier;%0A -%09 + var curr @@ -587,11 +587,13 @@ er;%0A -%09%0A%09 +%0A retu @@ -950,20 +950,16 @@ basal);%0A - %0A var @@ -1019,16 +1019,20 @@ ofile);%0A + var roun @@ -1067,20 +1067,16 @@ asal');%0A - %0A...
4c1d9ce7bf38f6365d205711b101923708321da2
Implement copy task for the test module
tasks/grunt/copy.js
tasks/grunt/copy.js
JavaScript
0.000004
@@ -0,0 +1,274 @@ +module.exports = %7B%0A testModule: %7B%0A files: %5B%7B%0A expand: true,%0A dot: false,%0A filter: 'isFile',%0A cwd: './tests/unit/',%0A dest: './modules/',%0A src: %5B%0A 'test-module/**/*'%0A %5D%0A %7D...
d253fb77ffae3ec12c8868bf25e03c2919a1ef75
添加time.js
helpers/time.js
helpers/time.js
JavaScript
0
@@ -0,0 +1,484 @@ +function Time()%7B%7D%0A%0Amodule.exports = Time;%0A%0ATime.get = function()%7B%0A%09%0A%09var date = new Date();%0A%09%0A%09var time = %7B%0A%09%09date:date,%0A%09%09year:date.getFullYear(),%0A%09%09month:date.getFullYear()+ '-' + (date.getMonth()+ 1),%0A%09%09day: date.getFullYear() + '-' + (date.g...
13d9b7595982ceda3a90c9aeb0a9bcb97c145d42
increase timeout for basic tests
test/basic-tests.js
test/basic-tests.js
'use strict' import css from 'css' import { describe, it } from 'global-mocha' import path from 'path' import penthouse from '../lib/' import { readFileSync as read } from 'fs' import chai from 'chai' chai.should() // binds globally on Object // becasuse dont want to fail tests on white space differences function nor...
JavaScript
0
@@ -681,43 +681,92 @@ // -phantomjs takes a while to start up +some of these tests take quite a while,%0A // as we're starting up phantomjs for each %0A t @@ -781,9 +781,10 @@ out( -5 +10 000)
2fa50c03eb6e20a320651643da50a06104363fee
Add zoom tests
test/jasmine/tests/zoom_test.js
test/jasmine/tests/zoom_test.js
JavaScript
0.000001
@@ -0,0 +1,1497 @@ +var d3 = require('d3');%0A%0Avar Plotly = require('@lib/index');%0Avar Lib = require('@src/lib');%0A%0Avar createGraphDiv = require('../assets/create_graph_div');%0Avar destroyGraphDiv = require('../assets/destroy_graph_div');%0Avar mouseEvent = require('../assets/mouse_event');%0A%0A%0Adescribe('zo...
89490169927a9a88b0984cf9f4062ea0bcbc0c99
Fix failing eslint rule
lib/cli/traverse.js
lib/cli/traverse.js
/** * @author Titus Wormer * @copyright 2015 Titus Wormer. All rights reserved. * @module Traverse * @fileoverview Get applicable input files from * the file system to be processed by mdast, respecting * ignored paths and applicable extensions. */ 'use strict'; /* * Dependencies. */ var fs = require('fs...
JavaScript
0.000008
@@ -3369,24 +3369,45 @@ irectory) %7B%0A + var self = this;%0A var resu @@ -3503,28 +3503,28 @@ %7D);%0A%0A -this +self .depth++;%0A%0A @@ -3578,28 +3578,28 @@ his));%0A%0A -this +self .depth--;%0A%0A
73773ae3cf7f70099ecc428199adfb560fe2f4fa
add more test
test/test-locate.js
test/test-locate.js
JavaScript
0
@@ -0,0 +1,548 @@ +'use strict';%0A%0Avar assert = require('chai').assert,%0A locate = require('../lib/locate.js'); %0Adescribe('locate', function () %7B%0A it('should return undefined when directory not found', function (done) %7...
e6271ada596af0ba43660789a8e3e8a7ad5cda5d
test for utimes
test/test-utimes.js
test/test-utimes.js
JavaScript
0.000001
@@ -0,0 +1,563 @@ +var test = require('./test');%0A%0Atest('utimes', function(fs, t) %7B%0A%09fs.mkdir('/foo', function() %7B%0A%09%09fs.utimes('/foo', new Date(0), new Date(0), function(err) %7B%0A%09%09%09t.notOk(err);%0A%09%09%09fs.stat('/foo', function(err, stat) %7B%0A%09%09%09%09t.same(stat.atime.getTime(), 0);%0...
821aa5dc0cf063509302356fd3e3fa00d1854179
Test broadcast messages for test purposes.
src/testFunctional/js/broadcast.js
src/testFunctional/js/broadcast.js
JavaScript
0
@@ -0,0 +1,565 @@ +%7B %22_id%22 : %7B %22$numberLong%22 : %220%22 %7D, %22text%22 : %22Groovy 2.3.0 final has been released!%22, %22date%22 : %7B %22$date%22 : %222014-05-12T00:00:00.000+0200%22 %7D %7D%0A%7B %22_id%22 : %7B %22$numberLong%22 : %221%22 %7D, %22text%22 : %22Groovy 2.3.0-rc-1 has been released.%22, %22d...
ee7d6840b79398ff4c58a310850455d39b670879
add failing tests for _node.children immutability
tests/_node.spec.js
tests/_node.spec.js
JavaScript
0.000005
@@ -0,0 +1,538 @@ +var _tree = require(%22_tree%22),%0A _ = require(%22underscore%22);%0A%0Adescribe(%22_node.children%22, function () %7B%0A it(%22is immutable%22, function () %7B%0A var tree, push, kids, tmpLen;%0A tree = _tree.inflate(%7Ba: 1, children: %5B%7Ba: 2%7D%5D%7D);%0A expect(Obje...
56e988a4ab9e2a64034a18b2ab0b7fbfe5370b23
add file
src/utils/addStyleSheet.js
src/utils/addStyleSheet.js
JavaScript
0.000001
@@ -0,0 +1,322 @@ +export default function addStyleSheet(styles) %7B%0A if (document.getElementById('react-custom-scrollbars-styles')) return;%0A const style = document.createElement('style');%0A style.type = 'text/css';%0A style.id = 'react-custom-scrollbars-styles';%0A style.innerHTML = styles;%0A d...
49dabf2206d9640a4028e4f9c8ec4cf8588a16df
Create jQuery.popup.js
jQuery.popup.js
jQuery.popup.js
JavaScript
0.000002
@@ -0,0 +1,2195 @@ +// set the same 'name' for next tags:%0A// %5Bdata-popup-link='name'%5D - for link which calls popup%0A// %5Bdata-popup-content='name'%5D - for popup%0A// %5Bdata-popup-close='name'%5D - for close popup button%0A%0A(function($) %7B%0A $.fn.popup = function(options) %7B%0A%0A var showOverlay = fu...
7f2f3503e51b207bf29b961c01156b1ebb2ad47f
correct mode-handlers
lib/handler/mode.js
lib/handler/mode.js
// function(cmd, value) function mode(s) { return function(cmd, value) { this.buffer.mode[s] = value; } } var modes = { '?1': mode('appKeypad'), // Cursor Key Mode - Application // '?3': mode('132col'), // Column mode - 132 col '4': mode('insert'), // '?4': mode('insert'), // Scrolling Mode - Smooth '?5': mode...
JavaScript
0.000004
@@ -107,16 +107,21 @@ %7D%0A%7D%0A -var mode +module.export s =
7ab980b34e3637f8ad5a2e30ebb639936d57e4ba
add Gruntfile.js
Gruntfile.js
Gruntfile.js
JavaScript
0.000002
@@ -0,0 +1,306 @@ +module.exports = function(grunt) %7B%0A %0A grunt.initConfig(%7B%0A csslint: %7B%0A strict: %7B%0A options: %7B%0A csslintrc: '.csslintrc'%0A %7D,%0A src: %5B'test/css/test.css'%5D%0A %7D%0A %7D%0A %7D);%0A %0A grunt.loadNpmTasks('grunt-contrib-csslint...
f48f44abefd3ec27edb6e2a7198b00af163857c6
Create Gruntfile.js
Gruntfile.js
Gruntfile.js
JavaScript
0.000001
@@ -0,0 +1,232 @@ +module.exports = function(grunt) %7B%0A // Project configuration.%0A grunt.initConfig(%7B%0A qunit: %7B%0A files: %5B'test/index.html'%5D%0A %7D%0A %7D);%0A%0A // Task to run tests%0A grunt.registerTask('test', 'qunit');%0A%7D;%0A
4a1908d09698f8e74928fa93b63cb4ef9c303740
fix asset path
Gruntfile.js
Gruntfile.js
/* * * Copyright (c) 2013 Oleg Smetanin * MIT License */ "use strict"; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Project metadata pkg : grunt.file.readJSON('package.json'), clean: { dist: ['dist/'], }, assemble: { options: { f...
JavaScript
0.000003
@@ -345,17 +345,20 @@ ssets: ' -. +dist ',%0A
38e6f482ca48cb202c9317400e21a7fdc95fe6ed
Create Gruntfile.js
Gruntfile.js
Gruntfile.js
JavaScript
0.000001
@@ -0,0 +1,667 @@ +module.exports = function (grunt) %7B%0A grunt.initConfig(%7B%0A uglify: %7B%0A build: %7B%0A src: 'js/css3clock.js',%0A dest: 'js/css3clock.min.js'%0A %7D%0A %7D,%0A cssmin: %7B%0A target: %7B%0A fi...
0d4d50660930f1a1cad7e3ee7e97dcba82463da3
Add node-session from https://github.com/josephwegner/node-session
lib/node-session.js
lib/node-session.js
JavaScript
0
@@ -0,0 +1,2202 @@ + var sessions = %5B%5D;//Blank object literal%0A%0A var start = function(res, req) %7B%0A %0A var conn = %7B res: res, req: req %7D;%0A %0A var cookies = %7B%7D;%0A %0A if(typeof conn.req.headers.cookie !== %22undefined%22) %7B%0A %0A conn.req.headers.cookie.split(...
328123416aaa09fdc91211130860c0c147eb8c63
Add file for challenge
week-9/jquery/jquery_example.js
week-9/jquery/jquery_example.js
JavaScript
0
@@ -0,0 +1,1868 @@ +// U3.W9:JQuery%0A%0A%0A// I worked on this challenge %5Bby myself, with: %5D.%0A// This challenge took me %5B#%5D hours.%0A%0A$(document).ready(function()%7B%0A%0A//RELEASE 0:%0A //link the image%0A%0A//RELEASE 1:%0A%0A //Link this script and the jQuery library to the jQuery_example.html file and...
87b6cf0ca350cb82b803b1fb81f0b50418ea1f4b
add execve + read env in JSON test
test/test-os-fork-execve-json.js
test/test-os-fork-execve-json.js
JavaScript
0
@@ -0,0 +1,895 @@ +'use strict';%0A%0Aconst assert = require('assert');%0Aconst os = require('os');%0Aconst path = require('path');%0Aconst system = require('system');%0A%0A%0Avar p = os.pipe();%0Avar rfd = p%5B0%5D;%0Avar wfd = p%5B1%5D;%0A%0A%0Avar pid = os.fork();%0A%0Aif (pid == 0) %7B%0A // child%0A os.dup2(...
16fbad9406c35cca3491107e343199300931dc6f
Introduce Kotlin language add category
src/languages/kotlin.js
src/languages/kotlin.js
/* Language: Kotlin Author: Sergey Mashkov <cy6erGn0m@gmail.com> */ function (hljs) { var KEYWORDS = 'val var get set class trait object public open private protected ' + 'final enum if else do while for when break continue throw try catch finally ' + 'import package is as in return fun override default reifie...
JavaScript
0.000003
@@ -1,12 +1,11 @@ /*%0A - Language @@ -13,17 +13,16 @@ Kotlin%0A - Author: @@ -58,16 +58,33 @@ il.com%3E%0A +Category: common%0A */%0A%0A%0Afu
5b0f9249512ed3162e7ba1882aef52e0f5c777ac
Fix bug on scaled images
crop_filebrowser/static/cropper/js/image_crop.js
crop_filebrowser/static/cropper/js/image_crop.js
var jcrop_api = null; function randomString(string_length) { var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var randomstring = ''; for (var i=0; i<string_length; i++) { var rnum = Math.floor(Math.random() * chars.length); randomstring += chars.substring(rnum,rnum+1); } return ran...
JavaScript
0
@@ -14,16 +14,34 @@ = null; +%0Avar scale = null; %0A%0Afuncti @@ -848,19 +848,44 @@ ();%0A -var +if (scale == null) %7B%0A scale = @@ -934,17 +934,20 @@ th : 1;%0A -%0A + orig @@ -981,16 +981,23 @@ scale)%0A + %7D%0A%0A orig @@ -1026,17 +1026,16 @@ width()%0A -%0A var
8bdeb98b554ba2530fef1539fecf6c264d864094
Create zero.js
newstrap/js/zero.js
newstrap/js/zero.js
JavaScript
0.00216
@@ -0,0 +1 @@ +%0A
d7caac49686fcdab0e7f91fc021cdfb6bba4a293
Add reducers
src/reducers/Main.js
src/reducers/Main.js
JavaScript
0.000002
@@ -0,0 +1,266 @@ +import %7B getInitialState %7D from '../utils/InitialState';%0A%0Aconst initialState = getInitialState();%0A%0Aexport const reducer = function (state = initialState, action = 'DEFAULT') %7B%0A switch (action.type) %7B%0A default:%0A return state;%0A %7D%0A%7D;%0A%0Aexport default reducer;%0...
07c5460714c9ae44466147fad47ad61e3790f775
Create review-tag-reposition.user.js
review-tag-reposition.user.js
review-tag-reposition.user.js
JavaScript
0
@@ -0,0 +1,1153 @@ +// ==UserScript==%0A// @name Tag Reposition%0A// @description Repositions Tags at top of question in review queue%0A// @namespace https://stackoverflow.com/users/1454538/%0A// @author %E1%B4%89%CA%9Eu%C7%9D%0A// @match *://*.stackoverflow.com/review/*%0A// @run-at document-e...
31a2db38bb4ca6439ce16c396abb889ddb2e23cd
Create hot-fix.js
app/hot-fix.js
app/hot-fix.js
JavaScript
0.000067
@@ -0,0 +1,12 @@ +// hot-fix %0A
a5cdd695b55f44a08133d321bb617b4e6c0aa395
Create bookmarklet.js
bookmarklet.js
bookmarklet.js
JavaScript
0
@@ -0,0 +1,340 @@ +javascript:var u; try %7B u=document.querySelector(%22link%5Brel=canonical%5D%22).href; %7D catch (e) %7B%7D if(u)%7B if(prompt(%22Canonical URL: - Press OK to navigate%22, u)) %7B window.location=u; %7D else %7B /* Chrome goes silly if I don't do something here */ u=null; %7D %7D else %7B prompt(%22...
98f7b68700fa8edabc1b0b96fb9162f421df8be1
Remove redundant statement in css-rotation.js
src/css-rotation.js
src/css-rotation.js
// 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 required by applicable...
JavaScript
0.999267
@@ -2725,13 +2725,8 @@ s2D -== 1 ? x
54a184ad3b88ef58ef8cf59d0498bc2aa2593c68
Create {id}.js
handlers/strategery_map/{id}.js
handlers/strategery_map/{id}.js
JavaScript
0.00001
@@ -0,0 +1,223 @@ + 'use strict';%0A%0A var repository = require('../../lib/strategery_mapRepository');%0A%0A module.exports = %7B%0A get: function StrategeryMap_getById(req, res) %7B%0A res.json(repository.get(req.params%5B'id'%5D));%0A %7D %0A %7D;%0A
934f8b9f48612449e93c38eea86b8476ba3512e2
add bump version script
prisma2/scripts/bump-version.js
prisma2/scripts/bump-version.js
JavaScript
0
@@ -0,0 +1,272 @@ +#!/usr/bin/env node%0A%0Aconst currentVersion = process.argv%5B2%5D%0A%0Aconst lastDot = currentVersion.lastIndexOf('.')%0Aconst alphaNumber = currentVersion.slice(lastDot + 1)%0Aconst newVersion = currentVersion.slice(0, lastDot + 1) + (Number(alphaNumber) + 1)%0A%0Aconsole.log(newVersion)%0A
80d792d37151a38590df58aab761e068249f272c
Update bundle-size.js (#15160)
build-system/tasks/bundle-size.js
build-system/tasks/bundle-size.js
/** * Copyright 2018 The AMP HTML Authors. 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 require...
JavaScript
0
@@ -871,9 +871,9 @@ 77.4 -5 +9 KB';
85cab15be9f7be77a366e538f858588ea6b75092
Create beta_check_digit.js
Solutions/beta/beta_check_digit.js
Solutions/beta/beta_check_digit.js
JavaScript
0.000991
@@ -0,0 +1,129 @@ +function checkDigit(number, i1, i2, digit) %7B%0A return (''+number).slice(Math.min(i1,i2),Math.max(i1,i2)+1).includes(''+digit)%0A%7D;%0A
8101a42d99fdcb9bdd7a642376ca6526824ddb9e
Create forward-message.multiple.test.js
forward-message/forward-message.multiple.test.js
forward-message/forward-message.multiple.test.js
JavaScript
0
@@ -0,0 +1,317 @@ +exports.handler = function(context, event, callback) %7B%0A let twiml = new Twilio.twiml.MessagingResponse();%0A twiml.message(%60From: $%7Bevent.From%7D. Body: $%7Bevent.Body%7D%60, %7B%0A to: '+1XXXXXXXXXX'%0A %7D);%0A twiml.message(%60From: $%7Bevent.From%7D. Body: $%7Bevent.Body%7D%60, %7B...
4b9b4601bfc7ac9684daa995d36ccf83e2b833ff
Add test cases.
packages/vega-force/test/force-test.js
packages/vega-force/test/force-test.js
JavaScript
0.000001
@@ -0,0 +1,774 @@ +var tape = require('tape'),%0A vega = require('vega-dataflow'),%0A Collect = require('vega-transforms').collect,%0A Force = require('../').force;%0A%0Atape('Force places points', function(test) %7B%0A var data = %5B%0A %7Blabel: 'a'%7D,%0A %7Blabel: 'b'%7D,%0A %7Blabel: 'c'%7D,%0A ...