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 |
|---|---|---|---|---|---|---|---|
b01d5177bd61d2869e4c903a334a9ab5edbfd3f2 | add frst stub test, test/spa.js | test/spa.js | test/spa.js | JavaScript | 0 | @@ -0,0 +1,154 @@
+/*jshint -W030 */%0Avar should = require('chai').should(),%0A benv = require('benv'),%0A _ = require('underscore'),%0A puzzle = require('../js/puzzle');%0A
| |
de061ed2d5a6ca68a9b305fdb75de01f4e171c7c | refactor to helpers | src/helpers/helpers.js | src/helpers/helpers.js | JavaScript | 0.999492 | @@ -0,0 +1,1361 @@
+function guid() %7B%0A%09function s4() %7B%0A%09%09return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);%0A%09%7D%0A%09return s4() + s4() + '-' + s4() + '-' + s4() + '-' +s4() + '-' + s4() + s4() + s4();%0A%7D%0A%0Afunction getValidTags() %7B%0A%09// TODO: recreate this list as... | |
faa21f0e99832eb884c0da7fc70e6780d0aa68ca | Test the layout | test/layout-test.js | test/layout-test.js | JavaScript | 0.000003 | @@ -0,0 +1,2910 @@
+// layout-test.js%0A//%0A// Test that the home page shows an invitation to join%0A//%0A// Copyright 2012, StatusNet Inc.%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 t... | |
9a3bda39e7fbe6fb27fda17e2c760c8bb6bb017b | Add paging validation schema | src/schemas/PagingSchema.js | src/schemas/PagingSchema.js | JavaScript | 0 | @@ -0,0 +1,259 @@
+export default %7B%0A type: 'object',%0A properties: %7B%0A page: %7B%0A type: 'integer',%0A default: 1,%0A minimum: 1,%0A required: true,%0A %7D,%0A limit: %7B%0A type: 'integer',%0A default: 2,%0A minimum: 1,%0A required: true,%0A %7D,%0A %7D,%... | |
1ad2faf22317dbb00f745116ad0f3425faec307a | Add minimal schema validation for transactional notif | config/parameters/transactional.js | config/parameters/transactional.js | JavaScript | 0 | @@ -0,0 +1,1305 @@
+module.exports = %7B%0A %22type%22: %22object%22,%0A %22properties%22: %7B%0A %22group_id%22: %7B%0A %22type%22: %22string%22%0A %7D,%0A %22recipients%22: %7B%0A %22type%22: %22object%22,%0A %22properties%22: %7B%0A %22tokens... | |
81079ee8b8b43e104ca89f8b7970273ba81a0ee9 | Create mashape.js | scripts/mashape.js | scripts/mashape.js | JavaScript | 0.000002 | @@ -0,0 +1,1699 @@
+op = optparser3%0Avar parser = new op.Parser(%0A %22mashape FIELD API OPTIONS%22,%0A %7B%0A FIELD: %5B%22The name of the field to be filled in by stdin%22, op.filters.position(%22field%22)%5D%0A API: %5B%22The name of the API%22, op.filters.position(%22api%22)%5D,%0A OPTIO... | |
bb182f897889ee2eedcc60302d57ae8e7aef5f9f | Create strategery.js | tests/strategery.js | tests/strategery.js | JavaScript | 0.000001 | @@ -0,0 +1,3150 @@
+'use strict';%0Avar Test = require('tape');%0Avar Express = require('express');%0Avar BodyParser = require('body-parser');%0Avar Swaggerize = require('swaggerize-express');%0Avar Path = require('path');%0Avar Request = require('supertest');%0Avar Mockgen = require('../data/mockgen.js');%0Avar Parser... | |
6f9edd68a786ae5638a8d776527999e94e46afdf | Handle non-404 errors when checking if a user exists | handlers/user.js | handlers/user.js | var User = require('../models/user'),
Joi = require('joi'),
userValidate = require('npm-user-validate');
exports.showSignup = function signup(request, reply) {
var opts = {
errors: []
};
request.timing.page = 'signup-form';
request.metrics.metric({
name: 'signup-form'
});
return reply.view('... | JavaScript | 0.000006 | @@ -1476,24 +1476,199 @@
erExists) %7B%0A
+ if (err && err.statusCode != 404) %7B%0A request.logger.warn('Unable to get user to validate');%0A return reply.view('errors/internal', opts).code(403);%0A %7D%0A
if (us
@@ -4099,12 +4099,11 @@
;%0A %7D);%0A
-%0A
%7D;%0A
|
aef61c007bce96d8bbf28db03fe45c8423ff6d96 | add template for E2E testing | app/templates/karma-e2e.conf.js | app/templates/karma-e2e.conf.js | JavaScript | 0 | @@ -0,0 +1,1048 @@
+// Karma E2E configuration%0A%0A// base path, that will be used to resolve files and exclude%0AbasePath = '';%0A%0A// list of files / patterns to load in the browser%0Afiles = %5B%0A ANGULAR_SCENARIO,%0A ANGULAR_SCENARIO_ADAPTER,%0A 'test/e2e/**/*.js'%0A%5D;%0A%0A// list of files to exclude%0Aexc... | |
7929ea93a2c43d0225c6a73f7a8e14c1a0e9b496 | Add missing file | apps/crbug/QIssuePreviewView.js | apps/crbug/QIssuePreviewView.js | JavaScript | 0.000006 | @@ -0,0 +1,168 @@
+var QIssuePreviewView = FOAM(%7B%0A model_: 'Model',%0A%0A name: 'QIssuePreviewView',%0A%0A extendsModel: 'DetailView',%0A%0A templates: %5B%0A %7B%0A name: 'toHTML'%0A %7D%0A %5D%0A%7D);%0A
| |
98429c23381d47cd08b295e4294b81c28c6a053a | Increase ServiceConnection handshake timeout | tools/service-connection.js | tools/service-connection.js | var Future = require("fibers/future");
var _ = require("underscore");
var uniload = require("./uniload.js");
// Wrapper to manage a connection to a DDP service. The main difference between
// it and a raw DDP connection is that the constructor blocks until a successful
// connection is made; you can't call methods or ... | JavaScript | 0 | @@ -1757,10 +1757,10 @@
Ms:
-15
+30
000,
|
586189a8b6712dd38764a0141734cf9c8c127868 | move out old graph sketches | public.src/sketch2.js | public.src/sketch2.js | JavaScript | 0 | @@ -0,0 +1,1570 @@
+%0Aconst nodes = new Map%0A%0Aconst add = (ref, source, inputs, outputs) =%3E%0A nodes.set(ref, %7Bsource, inputs, outputs%7D)%0A%0A%0Aadd(1, 'a = Math.random()', %5B'Math'%5D, %5B'a'%5D)%0Aadd(2, 'b = a * 2', %5B'a'%5D, %5B'b'%5D)%0Aadd(3, 'c = 42', %5B%5D, %5B'c'%5D)%0Aadd(4, 'd = c * 2', %5B'c'%... | |
2060d39c9d2690095ce5520ea0cf25bad1015c70 | Add Physics placeholder. Planned to be implemented soon. | lib/core/behaviour/physics.js | lib/core/behaviour/physics.js | JavaScript | 0 | @@ -0,0 +1,238 @@
+/**%0A * @module Joy.Behaviour%0A */%0A(function(J) %7B%0A /**%0A * TODO: Wouldn't it be nice?%0A */%0A var Physics = J.Behaviour.extend(%7B%0A INIT: function (options) %7B%7D,%0A UPDATE: function () %7B%7D%0A %7D);%0A%0A J.Behaviour.Physics = Physics;%0A%7D)(Joy);%0A
| |
031001054207f59a2cab62d44d1901926e3137b9 | test for colParser #9 | spec/col-parser.js | spec/col-parser.js | JavaScript | 0 | @@ -0,0 +1,1590 @@
+var colParser = require('../bin/col-parser');%0Avar fs = require('fs');%0Avar async = require('async');%0Avar assert = require('chai').assert;%0Avar dirname = __dirname.replace(/%5C%5C/g, '/') + '/';%0Avar opfile = %7B%0A twoLines: function(callback) %7B%0A fs.readFile(dirname + 'assets/MOCK_DAT... | |
d51504f6e8c51c3e372240795047984ee711fb54 | add function w/working tests | easy-challenges/hammingDistance.js | easy-challenges/hammingDistance.js | JavaScript | 0.000005 | @@ -0,0 +1,602 @@
+const assert = require('assert');%0A// loop through one of the strings, check if the characters at each position in both strings are equal to each other%0A%0Aconst HammingDistance = strArr =%3E %7B%0A const word1 = strArr%5B0%5D;%0A const word2 = strArr%5B1%5D;%0A let count = 0;%0A%0A for (let i ... | |
5adb64ed14d1a69064556ad3106cc999042c1713 | Set max memory to use in redis instead of total | lib/taskQueue.js | lib/taskQueue.js | //Copyright 2012 Telefonica Investigación y Desarrollo, S.A.U
//
//This file is part of RUSH.
//
// RUSH is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)... | JavaScript | 0 | @@ -1403,21 +1403,16 @@
if mem%3C(
-0.20*
max_mem)
|
abdd1713c606135bc35028c6021698b52f27872b | Remove resetPose functionality. | examples/js/controls/VRControls.js | examples/js/controls/VRControls.js | /**
* @author dmarcos / https://github.com/dmarcos
* @author mrdoob / http://mrdoob.com
*/
THREE.VRControls = function ( object, onError ) {
var scope = this;
var vrDisplay, vrDisplays;
var standingMatrix = new THREE.Matrix4();
var frameData = null;
if ( 'VRFrameData' in window ) {
frameData = new VRFr... | JavaScript | 0.000001 | @@ -2408,370 +2408,8 @@
%7D;%0A%0A
-%09this.resetPose = function () %7B%0A%0A%09%09if ( vrDisplay ) %7B%0A%0A%09%09%09vrDisplay.resetPose();%0A%0A%09%09%7D%0A%0A%09%7D;%0A%0A%09this.resetSensor = function () %7B%0A%0A%09%09console.warn( 'THREE.VRControls: .resetSensor() is now .resetPose().' );%0A%09%09this.resetPose(... |
dddd5ce4ae23b51a95cc65a1575b6e596c2d1225 | test for StringInput | src/components/StringInput.spec.js | src/components/StringInput.spec.js | JavaScript | 0.000001 | @@ -0,0 +1,432 @@
+import React from 'react';%0Aimport %7Bshallow%7D from 'enzyme';%0Aimport chai, %7Bexpect%7D from 'chai';%0Aimport sinon from 'sinon';%0Aimport sinonChai from 'sinon-chai';%0Aimport StringInput from './StringInput';%0A%0Achai.use(sinonChai);%0A%0Adescribe('%3CStringInput /%3E', () =%3E %7B%0A it('... | |
7095f5f3d0e63d21e250bebabaded05fd902a0dd | Add fix for a bug in extjs 4.2.2 AbstractMixedCollection | src/main/webapp/overrides/AbstractMixedCollection.js | src/main/webapp/overrides/AbstractMixedCollection.js | JavaScript | 0 | @@ -0,0 +1,703 @@
+Ext.define('overrides.AbstractMixedCollection', %7B%0A%09override: 'Ext.util.AbstractMixedCollection',%0A%0A%09updateKey: function(oldKey, newKey) %7B%0A%09%09var me = this, map = me.map, index = me.indexOfKey(oldKey),%0A%09%09// Important: Take reference to indexMap AFTER indexOf call which may rebu... | |
5d5058e492dc92a875482a282319cd483c8629c9 | add a way to control the came through device motion | src/device_orientation_controls.js | src/device_orientation_controls.js | JavaScript | 0.000001 | @@ -0,0 +1,917 @@
+import %7B%0A Math as TMath,%0A Vector2,%0A Vector3,%0A Quaternion,%0A Euler,%0A%7D from 'threejs360'%0A%0Aexport default class DeviceOrientationControls %7B%0A constructor(camera) %7B%0A this.camera = camera;%0A this.euler = new Euler();%0A this.orientation = new Quaternion();%0A t... | |
d17e54bb43d44e9255abcb181ae7ccfabd007c02 | Create user model for DB | server/models/user.js | server/models/user.js | JavaScript | 0.000001 | @@ -0,0 +1,681 @@
+var db = require('../../db/db');%0Avar Listing = require('./listing');%0A%0Avar User = db.define('users', %7B%0A 'userId': %7B type: Sequelize.INTEGER, allowNull: false, primaryKey: true %7D,%0A 'username': %7B type: Sequelize.STRING(100), allowNull: false %7D,%0A 'firstName': %7B type: Sequelize.... | |
e3ab8d38851757f99e51c4c89d2e0eb5eece33fa | Implement makeRandomHex | backend/url-shortener-microservice/src/makeRandomHex.js | backend/url-shortener-microservice/src/makeRandomHex.js | JavaScript | 0.013262 | @@ -0,0 +1,149 @@
+const %7B randomBytes %7D = require('crypto');%0Aconst makeRandomHex = () =%3E %7B%0A return randomBytes(3).toString('hex');%0A%7D%0A%0Amodule.exports = makeRandomHex;%0A
| |
5147852896755dc1291825e2e40556f964411fb2 | Add tests for private claims in the payload (#555) | test/claim-private.tests.js | test/claim-private.tests.js | JavaScript | 0 | @@ -0,0 +1,2048 @@
+'use strict';%0A%0Aconst expect = require('chai').expect;%0Aconst util = require('util');%0Aconst testUtils = require('./test-utils');%0A%0Afunction signWithPayload(payload, callback) %7B%0A testUtils.signJWTHelper(payload, 'secret', %7Balgorithm: 'none'%7D, callback);%0A%7D%0A%0Adescribe('with a p... | |
8a36ad5246f0a91c5f4788b7342ad1eeed0d42e6 | Rename .effect and ._effect to _normalizedKeyframes and _keyframes in keyframe-effect-constructor.js | src/keyframe-effect-constructor.js | src/keyframe-effect-constructor.js | // Copyright 2014 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.000002 | @@ -734,22 +734,25 @@
ameList(
-effect
+keyframes
) %7B%0A
@@ -792,22 +792,25 @@
yframes(
-effect
+keyframes
);%0A %7D%0A%0A
@@ -959,180 +959,81 @@
ects
- (including in groups/sequences).%0A // Rename to Effect & add scope.KeyframeEffect alias? Won't matter once changes to custom effects%0A // are added, ... |
127ec2448784833117026cd0c6463e2f32061b9a | Add Homepage component | src/Homepage/index.js | src/Homepage/index.js | JavaScript | 0.000001 | @@ -0,0 +1,1059 @@
+import React from 'react';%0Aimport Header from '../Header';%0A%0Aexport default class Homepage extends React.Component %7B%0A constructor(props) %7B%0A super(props);%0A %7D%0A%0A render() %7B%0A const general = this.props.config.general;%0A const fullName = %60$%7Bgeneral.firstName%... | |
e7106661871a2d26bccc7ced98ca979b420058e8 | Skip empty lines when computing message title | modules_basic/message-name.js | modules_basic/message-name.js |
var sbot_get = require('../plugs').first(exports.sbot_get = [])
function title (s) {
var m = /^[^\n]{0,40}/.exec(s)
return m && (m[0].length == 40 ? m[0]+'...' : m[0])
}
exports.message_name = function (id, cb) {
sbot_get(id, function (err, value) {
if(err && err.name == 'NotFoundError')
return cb(nu... | JavaScript | 0.99944 | @@ -92,16 +92,20 @@
r m = /%5E
+%5Cn*(
%5B%5E%5Cn%5D%7B0,
@@ -107,16 +107,17 @@
n%5D%7B0,40%7D
+)
/.exec(s
@@ -135,17 +135,17 @@
m && (m%5B
-0
+1
%5D.length
@@ -155,17 +155,17 @@
40 ? m%5B
-0
+1
%5D+'...'
@@ -168,17 +168,17 @@
..' : m%5B
-0
+1
%5D)%0A%7D%0A%0Aex
|
726cb66fe7374e0fe28af29d4ff015a794976148 | Fix error logging in test | tests/outbound_protocol/basic_outbound_trial_test.js | tests/outbound_protocol/basic_outbound_trial_test.js | 'use strict';
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "queue_dir", "args": "none" }]*/
// This test file is executed by tests/outbound_protocol.js (see there)
//
// Important to understand the code: This is file is - for running the test - appended to outbound.js.
test.expect(4);
// What is tested... | JavaScript | 0.000002 | @@ -1660,16 +1660,51 @@
= true;
+%0A mock_socket.__acquired = true;
%0A%0A //
|
aab1cf38bdf1d4b9bdc714d9ca607d1b0a992f10 | add missing resjs/src/res.js | flask_restaction/resjs/src/res.js | flask_restaction/resjs/src/res.js | JavaScript | 0.000004 | @@ -0,0 +1,1792 @@
+require('es6-promise').polyfill();%0Avar ajax = require('axios');%0Avar res = %7B%0A ajax: ajax,%0A clearToken: function() %7B%0A window.localStorage.removeItem('resjs-auth-token');%0A %7D,%0A setToken: function(token) %7B%0A window.localStorage%5B'resjs-auth-token'%5D = to... | |
85364e332e12033828ab94af5940d712ca88bb54 | add host status component | plugins/Hosting/js/components/hoststatus.js | plugins/Hosting/js/components/hoststatus.js | JavaScript | 0.000001 | @@ -0,0 +1,371 @@
+import React, %7B PropTypes %7D from 'react'%0A%0Aconst HostStatus = (%7Bonline%7D) =%3E (%0A%09%3Cdiv className=%22host-status%22%3E%0A%09%09%3Cspan%3E Host Status: %3C/span%3E%0A%09%09%7B online ? (%0A%09%09%09%3Ci className=%22fa fa-check fa-2x online-icon%22 /%3E%0A%09%09) : (%0A%09%09%09%3Ci cla... | |
d8f2fc2df20504bfe9ff89ea64f2e0573ec61297 | add notes | notes.js | notes.js | JavaScript | 0 | @@ -0,0 +1,309 @@
+// How to add snippets to ace:%0Avar snippetManager = ace.require(%22ace/snippets%22).snippetManager;%0Avar snippets = snippetManager.parseSnippetFile(%22snippet test%5Cn TEST!%22);%0Asnippets.push(%7B%0A content: %22hello $%7B1:world%7D...!%22,%0A name: %22hello%22,%0A tabTrigger: %22h%22%0A%7D)... | |
6678788bd29d965ddf08fd5fbd0f243533abd60c | Create mScroll.js | mScroll.js | mScroll.js | JavaScript | 0.000001 | @@ -0,0 +1,2329 @@
+%3Cscript%3E%0A /**%0A * JavaScript Momentum Scroll%0A * This will transform the native scroll of the browser into a very smooth scroll with momentum effect%0A * https://github.com/iahnn/mScroll/%0A * licensed under MIT%0A * version 1.0%0A */%0A (function() %7B%0A%0A ... | |
a336f367ca647406158ad1a210f6e5ec82452cef | add preprocessor to use for testing | preprocessor.js | preprocessor.js | JavaScript | 0 | @@ -0,0 +1,133 @@
+var ReactTools = require('react-tools');%0A%0Amodule.exports = %7B%0A process: function(src) %7B%0A return ReactTools.transform(src);%0A %7D%0A%7D;%0A
| |
808418af51a76e3a6d09b9caabbaa54ccfbe257a | add application JS file for small UI scripts | public/js/ui.js | public/js/ui.js | JavaScript | 0 | @@ -0,0 +1,283 @@
+YUI().use('node-base', function (Y) %7B%0A var menu = Y.one('#menu'),%0A menuLink = Y.one('.yui3-menu-link'),%0A layout = Y.one('#layout');%0A%0A Y.one(menuLink).on('click', function (e) %7B%0A layout.toggleClass('active');%0A menu.toggleClass('active');%0A %7D);%... | |
c68a566f58c74f9c5426de32015ef1ebc290d4cb | add sendHeartbeat monitor module | monitors/modules/sendHeartbeat.js | monitors/modules/sendHeartbeat.js | JavaScript | 0.000001 | @@ -0,0 +1,468 @@
+/**%0A * @file sendHeartbeat%0A * @author Sankarsan Kampa (a.k.a k3rn31p4nic)%0A * @license GPL-3.0%0A */%0A%0A/**%0A * Send a heartbeat to Bastion Web API.%0A * @param %7BTesseractClient%7D Bastion Tesseract client object%0A * @returns %7Bvoid%7D%0A */%0Amodule.exports = async Bastion =%3E %7B%0A t... | |
4cf0f8bdca0285a3e3b1e0d4214e263738eb1cc3 | Fix lint errors | src/rules/at-rule-empty-line-before/index.js | src/rules/at-rule-empty-line-before/index.js | import {
hasBlock,
report,
ruleMessages
} from "../../utils"
export const ruleName = "at-rule-empty-line-before"
export const messages = ruleMessages(ruleName, {
expected: "Expected empty line before at-rule",
rejected: "Unexpected empty line before at-rule",
})
/**
* @param {"always"|"never"} expectation... | JavaScript | 0.000396 | @@ -1620,24 +1620,19 @@
essGroup
-
(a
-tRule
+R
) %7B%0A
@@ -1657,21 +1657,17 @@
Node = a
-tRule
+R
.prev()%0A
@@ -1807,21 +1807,17 @@
sBlock(a
-tRule
+R
))%0A
|
99980db7cd7431fa0e0d07f2195a7880b33fccab | create root component | src/components/App.js | src/components/App.js | JavaScript | 0.000002 | @@ -0,0 +1,840 @@
+import React from 'react';%0Aimport %7BLink%7D from 'react-router';%0A%0Aconst App = (props) =%3E %7B%0A return(%0A %3Cdiv className=%22container%22%3E%0A %3Cnav className=%22navbar navbar-default%22%3E%0A %3Cdiv className=%22container-fluid%22%3E%0A %3Cdiv className=%22navba... | |
eef0b263f7d8fc8f4f86fa1ddc28db9cd0bb37e4 | bump version to 1.0.6 | package.js | package.js | Package.describe({
summary: 'Reactive urls that work in IE8/9 and modern browsers.',
version: '1.0.4',
git: 'https://github.com/eventedmind/iron-location.git'
});
Package.on_use(function (api) {
api.versionsFrom('METEOR@0.9.2');
api.use('underscore');
api.use('tracker');
api.use('jquery');
api.use(... | JavaScript | 0 | @@ -96,17 +96,17 @@
n: '1.0.
-4
+6
',%0A git
@@ -324,25 +324,25 @@
on:core@1.0.
-4
+6
');%0A api.im
@@ -388,9 +388,9 @@
1.0.
-4
+6
');%0A
|
6088dceecde8bd76c02bc3860b17e3d4ba932289 | Add an extra safety check to trailingSemicolon | lib/linters/trailing_semicolon.js | lib/linters/trailing_semicolon.js | 'use strict';
module.exports = {
name: 'trailingSemicolon',
nodeTypes: ['rule', 'atrule'],
message: 'All property declarations should end with a semicolon.',
lint: function trailingSemicolonLinter (config, node) {
var others = 0;
if (node.ruleWithoutBody || !node.nodes.length) {
... | JavaScript | 0.000002 | @@ -285,16 +285,31 @@
tBody %7C%7C
+ (node.nodes &&
!node.n
@@ -320,16 +320,17 @@
.length)
+)
%7B%0A
|
a45f169d1917b5e5275818142a9033cdcdd25766 | Add support for auth0-side application access restriction override This fails authentication for specific applications directly from auth0, instead of letting the application decide. Mainly used for applications that do not have proper OIDC or SAML support with authorization management capabilities. | rules/application_access_override.js | rules/application_access_override.js | JavaScript | 0 | @@ -0,0 +1,788 @@
+function (user, context, callback) %7B%0A // Applications that are restricted%0A var MOCO_MOFO_APPS = %5B'phonebook.mozilla.com', 'phonebook-dev.mozilla.com', 'login.mozilla.com', 'passwordreset.mozilla.com'%5D;%0A // LDAP groups allowed to access these applications%0A var ALLOWED_GROUPS = %5B'te... | |
efdf64567548a52776c29f432911fce1a78a9bf5 | Add initial tests for inView.offset | test/in-view.offset.spec.js | test/in-view.offset.spec.js | JavaScript | 0 | @@ -0,0 +1,320 @@
+import test from 'ava';%0Aimport inView from '../src/in-view';%0A%0Atest('inView.offset returns the offset', t =%3E %7B%0A t.true(inView.offset(50) === 50);%0A%7D);%0A%0Atest('inView.offset returns current offset if it doesn%5C't receive a number', t =%3E %7B%0A t.true(inView.offset(10) === 10)... | |
1a9dd3b5df6ac4d1934d8f9845d336fa281756a7 | Add Indonesian translation | src/locale/lang/id.js | src/locale/lang/id.js | JavaScript | 0.000786 | @@ -0,0 +1,1842 @@
+export default %7B%0A el: %7B%0A datepicker: %7B%0A now: 'Sekarang',%0A today: 'Hari ini',%0A cancel: 'Batal',%0A clear: 'Kosongkan',%0A confirm: 'YA',%0A selectDate: 'Pilih tanggal',%0A selectTime: 'Pilih waktu',%0A startDate: 'Tanggal Mulai',%0A sta... | |
e20572270751d3a74088d2116959edb03b63a7fb | Update random value generation | public/js/app.js | public/js/app.js | /* global Immutable, angular */
var benchmarks = angular.module('benchmarks', ['immutable']);
function RevisionList(list) {
'use strict';
Object.defineProperty(this, '_list', {
enumerable: false,
value: list || []
});
this._version = 0;
}
function defineMethod(proto, name, implementation) {
'use st... | JavaScript | 0.000001 | @@ -2194,20 +2194,14 @@
) *
-(
length
- - 1)
);%0A
|
6d435c7da8a100b1520d0aedbb1974f0f41ee84f | Test for multiple addBatch() calls | test/test-multiple-batch.js | test/test-multiple-batch.js | JavaScript | 0 | @@ -0,0 +1,1418 @@
+// test-multiple-batch.js -- Multiple calls to addBatch()%0A//%0A// Copyright 2016 fuzzy.ai %3Cevan@fuzzy.ai%3E%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 Licens... | |
b401d484676b8c503da762448035d5eb2dd7a6b9 | Change API URL | public/js/app.js | public/js/app.js | var app = angular.module('myApp', ['ngRoute', 'ngStorage', 'ngFileUpload', 'angular.vertilize', 'ngMask']);
var API_ENDPOINT = "/api";
app.config(function($routeProvider, $locationProvider, $httpProvider) {
$routeProvider
.when('/', {
pageTitle: 'Lista de Presentes',
templateUrl: '/views/home.html'... | JavaScript | 0.000001 | @@ -122,16 +122,54 @@
OINT = %22
+https://listadepresentes.herokuapp.com
/api%22;%0A%0A
|
2617f8a633a96336cc74a5250cb35dbf567af976 | set image source to "" on error should make areas with missing data prettier | js/ImageTrack.js | js/ImageTrack.js | function ImageTrack(trackMeta, url, refSeq, browserParams) {
Track.call(this, trackMeta.label, trackMeta.key,
false, browserParams.changeCallback);
this.refSeq = refSeq;
this.tileToImage = {};
this.zoomCache = {};
this.baseUrl = (browserParams.baseUrl ? browserParams.baseUrl : "");
... | JavaScript | 0.000023 | @@ -345,16 +345,132 @@
+ url);
+%0A%0A this.imgErrorHandler = function(ev) %7B%0A var img = ev.target %7C%7C ev.srcElement;%0A img.src=%22%22;%0A %7D;
%0A%7D%0A%0AImag
@@ -2242,24 +2242,71 @@
ent(%22img%22);%0A
+ im.onerror = this.imgErrorHandler;%0A
|
a162dc8cc6bffb5c9d19d1c96879da7bc4d8afce | Fix RefreshControl's dependency on AndroidSwipeRefreshLayout | Libraries/Components/RefreshControl/RefreshControl.js | Libraries/Components/RefreshControl/RefreshControl.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RefreshControl
* @flow
*/
'use strict';
const ColorPropType = require('ColorPropType');
const NativeMethodsMixin = r... | JavaScript | 0.000001 | @@ -657,28 +657,42 @@
droid') %7B%0A
-var
+const AndroidSwipe
RefreshLayou
@@ -692,24 +692,22 @@
shLayout
-Consts =
+ =%0A
require
@@ -749,18 +749,122 @@
yout
-.Constants
+;%0A var RefreshLayoutConsts = AndroidSwipeRefreshLayout%0A ? AndroidSwipeRefreshLayout.Constants%0A : %7BSIZE: %7B%7D%7D
;%0A%7... |
a926f5eece489f0fb462eade258a5a2902a5c108 | Create engine to run game | javascripts/engine.js | javascripts/engine.js | JavaScript | 0 | @@ -0,0 +1,1469 @@
+var GameEngine, canvas, WIDTH, HEIGHT, engine, game, update, render, step, animate;%0A%0AGameEngine = function(canvas, width, height, FPS) %7B%0A this.canvas = canvas;%0A this.canvas.width = width;%0A this.canvas.height = height;%0A this.FPS = FPS;%0A this.ctx = this.canvas.getContext('2d');%0A... | |
519ff2a9173c535956e1507f514443989e1429da | Add uploadDummy for testing | src/uploadDummy.js | src/uploadDummy.js | JavaScript | 0 | @@ -0,0 +1,742 @@
+const Lang = imports.lang;%0Aconst Signals = imports.signals;%0Aconst Mainloop = imports.mainloop;%0A%0Aconst Upload = new Lang.Class(%7B%0A Name: %22Upload%22,%0A%0A _init: function (file) %7B%0A %7D,%0A%0A start: function () %7B%0A const testImage = 'http://i.imgur.com/Vkapy8W.png';%0A co... | |
92167a11f65666809c87d2f3b0bb14f59f304e70 | Add HeaderRow component | src/widgets/DataTable/HeaderRow.js | src/widgets/DataTable/HeaderRow.js | JavaScript | 0 | @@ -0,0 +1,490 @@
+/* eslint-disable react/forbid-prop-types */%0A%0Aimport React from 'react';%0Aimport PropTypes from 'prop-types';%0A%0Aimport %7B View, StyleSheet %7D from 'react-native';%0A%0Aconst HeaderRow = React.memo((%7B renderCells %7D) =%3E (%0A %3CView style=%7BdefaultStyles.row%7D%3E%7BrenderCells()%7D%3... | |
ee42da5e6fed91cfc157635c958305a774754eb0 | Create curp-validation.js | js/curp-validation.js | js/curp-validation.js | JavaScript | 0.000001 | @@ -0,0 +1,1279 @@
+var CURP = (function () %7B%0A%09%0A%09var modulo = %7B%7D;%0A%0A%09/**%0A%09 * Valida que la cadena proporcionada se apegue a la definici%C3%B3n de la CURP%0A%09 */%0A%09modulo.valida = function (curp) %7B%0A%09%09var reg = %22%22;%0A%09%09console.log(curp.length);%0A%09%09if(curp.length == 18)%0A%... | |
1095f97e1a25be7fb77bda21faeebf05ccd0eedf | resolve a inner class name | src/namespace.js | src/namespace.js | /*!
* Copyright (C) 2016 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-reflection/graphs/contributors
* @url http://glayzzle.com
*/
var block = require('./block');
var _const = require('./constant');
/**
* **Extends from [block](BLOCK.md)**
*
* The namespace is an organisational unit that... | JavaScript | 0.999999 | @@ -851,16 +851,89 @@
n('/');%0A
+ if (this.name%5B0%5D != '/') %7B%0A this.name = '/' + this.name;%0A %7D
%0A thi
@@ -1597,24 +1597,304 @@
) %7B%0A
-// @todo
+if (Array.isArray(name)) %7B%0A if (name%5B0%5D === 'ns' && Array.isArray(name%5B1%5D)) %7B%0A name = name%5B1%5D;%0A ... |
6c0b7d9c87bc91e0e9a8ef34bafbb988d77c2fc4 | Improve compatibility across contexts: nodejs, web ui and web worker | runtime/JavaScript/src/antlr4/FileStream.js | runtime/JavaScript/src/antlr4/FileStream.js | //
// [The "BSD license"]
// Copyright (c) 2012 Terence Parr
// Copyright (c) 2012 Sam Harwell
// Copyright (c) 2014 Eric Vergnaud
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are... | JavaScript | 0.000004 | @@ -1806,16 +1806,49 @@
ndow ===
+ 'undefined' && importScripts ===
'undefi
|
8c0f77e1a632b2c991e88774864ed8da766849b9 | Write converted text to new field instead of overwriting req.text | parse.js | parse.js | /*jslint node: true*/
"use strict";
var N3 = require('n3');
var jsonld = require('jsonld');
var async = require('async');
module.exports.parseHandler = function(req, res, next) {
module.exports.convertToTurtle(req.text, req, function(err, result) {
if (!err) {
req.text = result;
}
... | JavaScript | 0.000002 | @@ -284,17 +284,26 @@
req.
-t
+convertedT
ext = re
|
ddd45ae9be6d3c72cd6bfbb9db1f2cfc5a93c92c | Add domains routes | packages/shared/lib/api/domains.js | packages/shared/lib/api/domains.js | JavaScript | 0.000002 | @@ -0,0 +1,835 @@
+export const queryDomains = () =%3E (%7B%0A url: 'domains',%0A method: 'get'%0A%7D);%0A%0Aexport const getDomains = (domainID) =%3E (%7B%0A url: %60domains/$%7BdomainID%7D%60,%0A method: 'get'%0A%7D);%0A%0Aexport const getDomainAddresses = (domainID) =%3E (%7B%0A url: %60domains/$%7Bdo... | |
61a7bfb9426c36b7cac0058f5fe5a0c5c6d4ae71 | use 'a' ACL search instead of 'm' ACL search for mod_sources | view/js/mod_sources.js | view/js/mod_sources.js | $(document).ready(function() {
var a;
a = $("#id_name").autocomplete({
serviceUrl: baseurl + '/acl',
minChars: 2,
width: 250,
id: 'id-name-ac',
onSelect: function(value,data) {
$("#id_xchan").val(data);
}
});
});
| JavaScript | 0 | @@ -227,13 +227,73 @@
%09%0A%09%7D);%0A%0A
+%09a.setOptions(%7B autoSubmit: true, params: %7B type: 'a' %7D%7D);%0A%0A
%7D); %0A
|
e136f21c800ae122d9b4a8e5e46fddfa83079fe2 | add fps aggregator | src/fps-aggregator.js | src/fps-aggregator.js | JavaScript | 0.000001 | @@ -0,0 +1,3190 @@
+import FpsMeter from './fps-meter';%0A%0A%0Aexport default class FpsAggregator %7B%0A /**%0A * @constructor FpsMeter - saves distinct (difference greater than %60minFpsDifference%60)%0A * average FPS values from calling start to finish%0A * @param %7BNumber%7D %5BminFpsDifference=... | |
de3d1a3c4cfbabc50e24c4acad51822daa7476e8 | Add temporary simple LED button | fakehue/simplebutton.js | fakehue/simplebutton.js | JavaScript | 0 | @@ -0,0 +1,1636 @@
+var MeshbluSocketIO = require('meshblu');%0Avar SerialPort = require('serialport');%0Avar tinycolor = require('tinycolor2');%0A%0Avar cfg = require('./meshblu.json');%0A%0Avar serport = null;%0Avar meshblu = null;%0A%0ASerialPort.list(function (err, ports) %7B%0A ports.forEach(function(port) %7B%0A... | |
0bd776f0b0c4a69555a022c9f2e9177cad637efa | add tests for parameter string creation | test/test-createParameterString.js | test/test-createParameterString.js | JavaScript | 0 | @@ -0,0 +1,384 @@
+const assert = require('assert')%0Aconst createParameterString = require('../gulpfile').createParameterString%0A%0Adescribe('createParameterString takes a links object and returns a complete url parameter string', function () %7B%0A it('returns empty string if the links object is empty', function ()... | |
9c72de6eba93beb439e1b37ac64cbc76e9401445 | copy .npmignore to dist to prevent zip file from being published to npm | build/build.post.js | build/build.post.js | #!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const shelljs = require('shelljs');
const cwd = process.cwd();
const dist = path.resolve(cwd, 'dist');
function moveCommonFiles() {
const source = path.resolve(dist, 'common', '*');
shelljs.mv(source, dist);
shelljs.rm('-rf', path.res... | JavaScript | 0 | @@ -366,16 +366,69 @@
les() %7B%0A
+ shelljs.cp(path.resolve(cwd, '.npmignore'), dist);%0A
shellj
|
37e23fbdfaa3d0838a629b40b3dd7318539b1893 | add testcase checkCombo | test/checkCombo.js | test/checkCombo.js | JavaScript | 0 | @@ -0,0 +1,590 @@
+var expect = require('expect.js');%0Avar checkurl = require('../lib/checkurl');%0A%0Adescribe('checkCombo', function() %7B%0A it('should combo', function(done) %7B%0A var url = 'https://a.alipayobjects.com/??seajs/1.3.1/sea.js,seajs/1.3.1/combo.js,jquery/jquery/1.7.2/jquery.js';%0A checkurl(ur... | |
59553a309182dfca8121b7cf976ae388a805459d | add load test with prior run cleanup | test/_general.js | test/_general.js | JavaScript | 0 | @@ -0,0 +1,477 @@
+// test/main.js%0Avar should = require('should')%0A , fs = require('fs')%0A;%0A%0A// clean up from prior run%0Aif (fs.existsSync('/tmp/GeoLiteCity.dat')) %7B%0A%09fs.unlinkSync('/tmp/GeoLiteCity.dat'));%0A%7D%0Aif (fs.existsSync('/tmp/GeoLiteCity.dat.gz')) %7B%0A%09fs.unlinkSync('/tmp/GeoLiteCit... | |
35a437c79194848e8d97bff918ce0d61094debb5 | add unit tests to valid component name module | tests/unit/utilities/valid-component-name.js | tests/unit/utilities/valid-component-name.js | JavaScript | 0.000001 | @@ -0,0 +1,721 @@
+'use strict';%0A%0Avar validComponentName = require('../../../lib/utilities/valid-component-name');%0Avar SilentError = require('../../../lib/errors/silent');%0Avar expect = require('chai').expect;%0A%0Adescribe('validate component name', function()%7B%0A it('throws silent error w... | |
d813242f98caf279f239ab91b92635249d7db958 | Create colorWheel.js | scripts/colorWheel.js | scripts/colorWheel.js | JavaScript | 0.000001 | @@ -0,0 +1 @@
+%0A
| |
d06631f38636b3aa6675965a15034862fa28cafb | make single app work on multi - paths | paths.js | paths.js | JavaScript | 0 | @@ -0,0 +1,343 @@
+var src = %7B%7D;%0A%0Asrc.app = %5B%0A 'src/clinic.js',%0A 'src/app.js'%0A%5D;%0A%0Asrc.prd = %5B%0A 'src/index.js'%0A%5D.concat(src.app, %5B%0A 'src/init.js'%0A%5D);%0A%0Amodule.exports = %7B%0A src: src,%0A dest: %7Bprd: 'go-app.js'%7D,%0A test: %7B%0A spec: %5B%0A ... | |
d48a7efce91d5e61798112df5fd7895fe4f89124 | Add match.js | src/match.js | src/match.js | JavaScript | 0.000005 | @@ -0,0 +1,3062 @@
+'use strict';%0A%0Avar xhr = require('xhr'),%0A tidy = require('geojson-tidy'),%0A polyline = require('polyline'),%0A queue = require('queue-async');%0A%0Afunction match(geojson, options, callback) %7B%0A%0A options = options %7C%7C %7B%7D;%0A%0A // Configure mapmatching API and creat... | |
28fcbe75385247a7a9615b1232a8ba62e7db4cfc | Put back refresh of top content | public/javascripts/content.js | public/javascripts/content.js | (function(root){
"use strict"
if(typeof root.matrix === 'undefined'){ root.matrix = {} }
var content = {
pages: [],
el: false,
endpoint: function(){
return "/realtime?ids=ga:"+matrix.settings.profileId+"&metrics=rt%3Apageviews&dimensions=rt%3ApageTitle&max-results=10&sort=-rt%3Apageviews"
... | JavaScript | 0 | @@ -1,8 +1,40 @@
+/* This is for the top pages */%0A
(functio
@@ -1266,19 +1266,16 @@
rs%0A
- //
window.
|
ba5cb655163ee7e2f646f0716ba3e9125567156b | Update project require-css to 0.1.8 | files/require-css/0.1.8/css.min.js | files/require-css/0.1.8/css.min.js | JavaScript | 0 | @@ -0,0 +1,1417 @@
+define(function()%7Bif(%22undefined%22==typeof window)return%7Bload:function(e,t,n)%7Bn()%7D%7D;var e=document.getElementsByTagName(%22head%22)%5B0%5D,t=window.navigator.userAgent.match(/Trident%5C/(%5B%5E ;%5D*)%7CAppleWebKit%5C/(%5B%5E ;%5D*)%7COpera%5C/(%5B%5E ;%5D*)%7Crv%5C:(%5B%5E ;%5D*)(.*?)Ge... | |
029bb067b2544fc21e845e2caebeaa70ba456d78 | Create xtras.js | xtras.js | xtras.js | JavaScript | 0.000001 | @@ -0,0 +1,1499 @@
+%0A(function ()%7B var style = document.createElement('style'), styleContent = document.createTextNode(%0A'p,footer,header,a,article,soundmanager,video,input,post,h1,hr,h3%7B animation-delay:1.5s; animation:fly-in-from-right 0.93s 1s ease both; transform-origin:top right; %7D top-panels,h4,h5,img,.b... | |
519c4b40d8022e169a75fa0446d5870d3d124a79 | add npmversioncheck | internals/scripts/npmcheckversion.js | internals/scripts/npmcheckversion.js | JavaScript | 0.000001 | @@ -0,0 +1,278 @@
+/* eslint no-unreachable: 0 */%0Aconst exec = require('child_process').exec%0Aexec('npm -v', (err, stdout, stderr) =%3E %7B%0A if (err) throw err%0A if (parseFloat(stdout) %3C 3) %7B%0A throw new Error('%5BERROR: React Redux Boilerplate%5D You need npm version @%3E=3')%0A process.exit(1)%0A ... | |
78a033820dcdb0b267ff64dd9ef2ea0a1516bc2e | Add test | test/media-test.js | test/media-test.js | JavaScript | 0 | @@ -0,0 +1,894 @@
+/* Global Includes */%0Avar testCase = require('mocha').describe;%0Avar pre = require('mocha').before;%0Avar preEach = require('mocha').beforeEach;%0Avar post = require('mocha').after;%0Avar postEach = require('mocha').afterEach;%0Avar assertions = require('mocha').it;%0Avar asser... | |
4f767408af5018f02075ea3842cb653c6d4e97a6 | add methodSpec | test/methodSpec.js | test/methodSpec.js | JavaScript | 0.000013 | @@ -0,0 +1,482 @@
+var cfg = require('../dummyserver-config');%0Avar httpinvoke = require('../httpinvoke-node');%0A%0Adescribe('supported HTTP methods', function() %7B%0A this.timeout(10000);%0A var method = function(method) %7B%0A it('include the %22' + method + '%22 method', function(done) %7B%0A ... | |
f160497d455639bf9e58046ea6afd2db7d4829d1 | add tests for PING frame | test/test-frame.js | test/test-frame.js | JavaScript | 0 | @@ -0,0 +1,2069 @@
+var assert = require(%22assert%22)%0Avar fs = require('fs');%0Avar h2frame = require('../lib/frame');%0A%0Adescribe('Http2PingFrame:', function () %7B%0A describe('Created frame', function () %7B%0A var frame = new h2frame.Http2PingFrame();%0A it('should have 8 octets of payload', f... | |
1e1f051715d149dcc579772370641ac20602adb1 | Create likely.js | likely.js | likely.js | JavaScript | 0 | @@ -0,0 +1,832 @@
+/**%0A * Likely.js %0A * %0A * Javascript library for collaborative filtering / recommendation engine. %0A */%0A %0ADESCENT_STEPS = 2000; // number of iterations to execute gradient descent. %0AALPHA = 0.0005; // learning rate%0ABETA = 0.0007; // regularization factor%0A %0Atrain(inputMa... | |
cfcb6c207149a59a65c863e18d7a2c51af06054f | add script for downloading freetype | vendor/download-freetype.js | vendor/download-freetype.js | JavaScript | 0 | @@ -0,0 +1,1219 @@
+const freetypeVersion = '2.10.1';%0Aconst freetypeName = %60freetype-$%7BfreetypeVersion%7D%60%0A%0Aconst fs = require('fs-extra-plus')%0Aconst path = require('path')%0Aconst download = require('download')%0Aconst decompress = require('decompress');%0Aconst decompressTarxz = require('decompress-tarx... | |
def1a65a68922e64add2c74668e6c1e8a07d1bdc | fix cwd issue in typescript test | test/typescript.js | test/typescript.js | var test = require('tape')
var path = require('path')
var spawn = require('child_process').spawn
var vm = require('vm')
var os = require('os')
var tmpdir = path.join((os.tmpdir || os.tmpDir)(), 'mobservable-' + Math.random())
test('typescript', function (t) {
t.plan(2)
var ps = spawn(path.resolve(__dirname, '../... | JavaScript | 0 | @@ -268,16 +268,44 @@
lan(2)%0A%0A
+ process.chdir(__dirname)%0A%0A
var ps
|
a1414ad8f59a3dac25307d146d933c95cdfe45c7 | Create main.js | scripts/main.js | scripts/main.js | JavaScript | 0.000002 | @@ -0,0 +1 @@
+%0A
| |
e3f3e344eef2dadf3781a54d0fad7231d7e20ec0 | Create function that merge 2 arrays | array/array_merge2.js | array/array_merge2.js | JavaScript | 0.002023 | @@ -0,0 +1,171 @@
+//function to combine two one dimensional arrays to one%0A%0Afunction array_merge2(arr1, arr2) %7B%0A%09return arr1.concat(arr2);%0A%7D%0A%0Aconsole.log(array_merge2(%5B1, 2, 3%5D, %5B4, 5%5D));%0A%09%0A
| |
e837d8b2cdc97e2862a068e0a7ccd8a3d209e562 | add missing file | js/nls/strings.js | js/nls/strings.js | JavaScript | 0.000003 | @@ -0,0 +1,324 @@
+%EF%BB%BFdefine(%7B%0D%0A root: (%7B%0D%0A map: %7B%0D%0A error: %22Unable to create map%22%0D%0A %7D%0D%0A %7D),%0D%0A%22ar%22:1,%0D%0A%22cs%22:1,%0D%0A%22da%22:1,%0D%0A%22de%22:1,%0D%0A%22es%22:1,%0D%0A%22et%22:1,%0D%0A%22fi%22:1,%0D%0A%22fr%22:1,%0D%0A%22he%22:1,%0D%0A%22it%22:1,%0D%0... | |
bf41ef3d954264164effd21be5a6c40efabc3ad0 | update data | js/search_line.js | js/search_line.js |
var search_list = [];
function updateData(frm){
search_list.push(frm);
d3.csv("http://singaporenews.github.io/transposed_terms.csv", function(error, data){
console.log(data);
color.domain(d3.keys(
data[0]).filter(function(key){ return key !== 'headline_year'; }
)
);
var headline_terms... | JavaScript | 0.000001 | @@ -1380,16 +1380,21 @@
);%0A%0A
+line_
x.domain
@@ -1456,16 +1456,21 @@
);%0A%0A
+line_
y.domain
@@ -1708,32 +1708,77 @@
.append('text')%0A
+ .transition()%0A .duration(750)%0A
.attr('c
@@ -2493,16 +2493,21 @@
ctAll('.
+line_
y.axis')
@@ -4910,16 +4910,21 @@
lass', '
+line_
x ax... |
c8f8c75b21d6593c830ddb4c183d6db922c2dede | Update version of top bar. | js/foundation/foundation.topbar.js | js/foundation/foundation.topbar.js | /*jslint unparam: true, browser: true, indent: 2 */
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.topbar = {
name : 'topbar',
version : '4.1.0',
settings : {
index : 0,
stickyClass : 'sticky',
init : false
},
init : function (scope, method, op... | JavaScript | 0 | @@ -181,11 +181,11 @@
'4.
-1.0
+0.1
',%0A%0A
|
2f781995a0a3d49b39889a2599fcaa3f3aa48ced | bump oauth version | packages/oauth/package.js | packages/oauth/package.js | Package.describe({
summary: "Common code for OAuth-based services",
version: "1.1.4"
});
Package.onUse(function (api) {
api.use('routepolicy', 'server');
api.use('webapp', 'server');
api.use('mongo', 'server');
api.use('reload', 'client');
api.use('base64', 'client');
api.use(['underscore', 'service-c... | JavaScript | 0 | @@ -79,17 +79,17 @@
n: %221.1.
-4
+5
%22%0A%7D);%0A%0AP
|
6de93f4f6f876a197edc80a272ba5d301f50e2a9 | Create script.js | src/Syntax/syntaxhighlighter/script.js | src/Syntax/syntaxhighlighter/script.js | JavaScript | 0.000005 | @@ -0,0 +1 @@
+%0A
| |
f19324347b7fff8bed42dd3163c016a8b7d2356e | add ws2 order example | examples/websockets-2-new-order.js | examples/websockets-2-new-order.js | JavaScript | 0.000001 | @@ -0,0 +1,1437 @@
+'use strict'%0A%0Aconst BFX = require('../')%0A// const BFX = require('bitfinex-api-node')%0A%0Aconst API_KEY = ''%0Aconst API_SECRET = ''%0A%0Aconst opts = %7B version: 2, transform: false, autoOpen: false %7D%0Aconst bws = new BFX(API_KEY, API_SECRET, opts).ws%0A%0Abws.open()%0A%0Abws.on('open', (... | |
1fca9091d6ac96ceb7a2ab767a2b9222213f4b0f | use DOMElement as Element class name | lib/component.js | lib/component.js | 'use strict';
var Emitter = require('./module/emitter');
var Controller = require('./module/controller');
var Element = require('./element');
var api = require('./component/api');
var bind = require('./module/bind');
var defaults = require('./component/options');
/**
* Base class for all ui components
* @class
* ... | JavaScript | 0.000001 | @@ -104,16 +104,19 @@
');%0Avar
+DOM
Element
@@ -1482,16 +1482,19 @@
t = new
+DOM
Element(
@@ -1805,32 +1805,33 @@
eturn this;%0A%09%7D%0A%0A
+%0A
%09/**%0A%09 * Init co
|
14f9ee8730d2acfdc74a4963b1e1a8ea3f5ef47e | Add a github release upload script | bin/upload-release.js | bin/upload-release.js | JavaScript | 0.000001 | @@ -0,0 +1,938 @@
+%22use strict%22%0A%0Alet version = process.argv%5B2%5D%0Alet auth = process.argv%5B3%5D%0A%0Aif (!auth) %7B%0A console.log(%22Usage: upload-release.js %5BTAG%5D %5Bgithub-user:password%5D%22)%0A process.exit(1)%0A%7D%0A%0Arequire('child_process').exec(%22git --no-pager show -s --format='%25s' %22 ... | |
b73099ff1d5196809bdb75ed2c3e24b715e86c48 | Create bind.js | src/bind.js | src/bind.js | JavaScript | 0.000001 | @@ -0,0 +1,264 @@
+Vue.directive('touch', %7B%0A acceptStatement: true,%0A%0A update: function (fn) %7B%0A hammer(this.el, this.arg, fn)%0A %7D%0A%0A%7D)%0A%0Afunction hammer (element, event, callback)%7B%0A%0A var touchable = new Hammer(element)%0A%0A touchable.on(event, function(ev) %7B%0A callback()%0A %... | |
7edbb82f900d5e5bfcccc98c280df6e1b217f59b | add disabled specs for jshint | spec/js-hint.js | spec/js-hint.js | JavaScript | 0 | @@ -0,0 +1,223 @@
+describe( 'js-hint task', function() %7B%0A%0A xit( 'uses few jshintrc as the root' );%0A xit( 'uses cwd jshintrc as 1st override' );%0A xit( 'uses few.jshintrc as a 2nd override' );%0A xit( 'few.jshint as a 3rd override' );%0A%0A%7D );%0A
| |
5317ec25cebf890b1e283244c8f95832c76c9e04 | Refresh command | commands/refresh.js | commands/refresh.js | JavaScript | 0.000004 | @@ -0,0 +1,301 @@
+exports.names = %5B'.refresh'%5D;%0Aexports.hidden = false;%0Aexports.enabled = true;%0Aexports.matchStart = false;%0Aexports.handler = function (data) %7B%0A bot.sendChat('If you can not see the video, please click refresh on the video itself to select an alternate version (this may take more tha... | |
3b8c160858db578fe625bf5d7d19100c17428415 | Create index.js | generators/app/index.js | generators/app/index.js | JavaScript | 0.000002 | @@ -0,0 +1,265 @@
+var Generator = require('yeoman-generator');%0A%0Amodule.exports = class extends Generator %7B%0A // The name %60constructor%60 is important here%0A constructor(args, opts) %7B%0A super(args, opts);%0A this.option('babel'); // This method adds support for a %60--babel%60 flag%0A%7D%7D;%0A
| |
6645e40afb8e5c76fa6abeb5d9a578f63c5f56fe | Fix invalid listener count notification | lib/server/connect.js | lib/server/connect.js | var SubHandlers = {
timeline: [],
listeners: []
};
var uniqueId = 0;
Meteor.methods({
"kadira.debug.updateTimeline": function(browserId, clientId, data) {
check(browserId, String);
check(clientId, String);
check(data, Object);
// update timeline
SubHandlers.timeline.forEach(function(sub) {
... | JavaScript | 0.000017 | @@ -904,32 +904,32 @@
this;%0A var
-liste
+timeli
ne
-r
Count = SubH
@@ -932,33 +932,32 @@
SubHandlers.
-listeners
+timeline
.length;%0A s
@@ -998,32 +998,32 @@
t', %7Bcount:
-liste
+timeli
ne
-r
Count%7D);%0A s
@@ -1035,16 +1035,17 @@
ady();%0A%0A
+%0A
SubHan
@@ -1161,32 +1161,33 @@
SubHandlers.
-tim... |
6f4e4b5d77bfb84572a8be06d5b7f6b911014437 | Implement tests for userController | server/user/userControllerSpec.js | server/user/userControllerSpec.js | JavaScript | 0.000004 | @@ -0,0 +1,2600 @@
+// Here lies the tests for userController%0A%0A'use strict';%0A%0Avar expect = require('chai').expect;%0Avar request = require('request');%0Avar express = require('express');%0Avar User = require('./userController.js');%0A%0A%0Adescribe('Controller: UserCtrl', function () %7B%0A beforeEach(function... | |
b5220db0148ab95e09d26f76a8afa3209b357692 | reset phrases callback added | catchphrase/phrases.js | catchphrase/phrases.js | //upload file callback
var uploadFile = function(event) {
var input = event.target;
var reader = new FileReader();
reader.onload = function(){
var text = reader.result;
phrasesLeft = phrasesLeft.concat(text.split("\n"));
phrasesTotal = phrasesTotal.concat(text.split("\n"));
localStorage... | JavaScript | 0.000001 | @@ -16,17 +16,16 @@
allback%0A
-%0A
var uplo
@@ -491,16 +491,165 @@
));%0A%7D;%0A%0A
+// clear phrases button callback%0Avar resetPhrases = function()%7B%0A%09localStorage.removeItem(%22phrasesSaved%22);%0A%09phrasesLeft = %5B%5D;%0A%09phrasesTotal = %5B%5D;%0A%7D;%0A%0A
// liste
|
53889bf307f072a8db31af5460474f0d020bc90e | Create Firefox_00_admin-prefs.js | recipes/Firefox_00_admin-prefs.js | recipes/Firefox_00_admin-prefs.js | JavaScript | 0.000001 | @@ -0,0 +1,236 @@
+// Any comment. You must start the file with a single-line comment!%0A// https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment_before_60%0Apref(%22general.config.filename%22, %22mozilla.cfg%22);%0Apref(%22general.config.obscure_value%22, 0);%0A
| |
9e6b5c5569cb6e09788d85f574c62bc72bd45adb | Fix Position.js typo `componentWillRecieveProps` | src/Position.js | src/Position.js | import React, { cloneElement } from 'react';
import domUtils from './utils/domUtils';
import { calcOverlayPosition } from './utils/overlayPositionUtils';
import CustomPropTypes from './utils/CustomPropTypes';
class Position extends React.Component {
constructor(props, context){
super(props, context);
this.s... | JavaScript | 0.000001 | @@ -521,10 +521,10 @@
lRec
-i
e
+i
vePr
|
214be8d1d91eafbdec1f619b378aa090e8c26e0e | Create LocationSource.js | src/LocationSource.js | src/LocationSource.js | JavaScript | 0.000001 | @@ -0,0 +1,1336 @@
+var LocationActions = require('../actions/LocationActions');%0A%0Avar mockData = %5B%0A %7B id: 0, name: 'Abu Dhabi' %7D,%0A %7B id: 1, name: 'Berlin' %7D,%0A %7B id: 2, name: 'Bogota' %7D,%0A %7B id: 3, name: 'Buenos Aires' %7D,%0A %7B id: 4, name: 'Cairo' %7D,%0A %7B id: 5, name: 'Chicago' %... | |
71545bc0ae00b5e29c7f9069cfd269ed378c8b0f | Add basic serialization module. | lib/serialization.js | lib/serialization.js | JavaScript | 0 | @@ -0,0 +1,1474 @@
+'use strict';%0A/**%0A * serialization helpers%0A * --------------------------------------------------------------------------*/%0A%0A/**%0A * Serializes an object, merging its %60context_type%60 and %60context_id%60 paths into%0A * one path, obtained through converting its %60context_type%60 to sna... | |
4bbc2eefe6a89f38a5cf2b21a757acc86047b010 | Add YoutubeTrack class to represent a youtube track For future soundcloud support. | lib/youtube-track.js | lib/youtube-track.js | JavaScript | 0 | @@ -0,0 +1,503 @@
+var ytdl = require('ytdl-core');%0A%0Amodule.exports = YoutubeTrack = function(vid, cb) %7B%0A var _this = this;%0A var requestUrl = 'http://www.youtube.com/watch?v=' + vid;%0A ytdl.getInfo(requestUrl, (err, info) =%3E %7B%0A if (err) cb(err, undefined);%0A else %7B%0A _this.vid = info.... | |
6fee85ad1e49ee899960caf631dcdc0269075e9c | Clear searchResult when searchInput change | src/components/App.js | src/components/App.js | import React, {Component} from 'react';
import {MainWrapper} from './MainWrapper/MainWrapper';
import Warnings from './Warnings';
import Top from './Top/Top';
import Footer from './Footer/Footer';
import {getAddressBalance} from '../lib/dAppService';
import {entries} from '../lib/ensService';
import 'typeface-roboto';
... | JavaScript | 0.000001 | @@ -2250,24 +2250,82 @@
chClick(e);%0A
+ %7D else %7B%0A this.setState(%7B searchResult: null %7D);%0A
%7D%0A %7D%0A%0A
@@ -2391,32 +2391,33 @@
this.setState(%7B
+
searchValue: ''%7D
@@ -2415,16 +2415,36 @@
alue: ''
+, searchResult: null
%7D);%0A
|
d9350a3749a7d33a425c3f5f499984ff52c8690b | Create exports folder for namespacing imports/exports. | src/exports/assets.js | src/exports/assets.js | JavaScript | 0 | @@ -0,0 +1,1256 @@
+import %7B%0A Asset,%0A BondBase,%0A BondCorporate,%0A BondGovernment,%0A BondMortgage,%0A Currency,%0A CustomAsset,%0A Derivative,%0A BondOption,%0A CFD,%0A Equity,%0A ForeignExchangeOption,%0A Fund,%0A ExchangeTradedFund,%0A ForeignExchange,%0A NonDeliverableForward,%0A Index,%0A ... | |
8bb7b023d9310d1dac11b9a44ba10f2ea6e63664 | Test against Ember Alpha | config/ember-try.js | config/ember-try.js | /*jshint node:true*/
module.exports = {
useVersionCompatibility: true
};
| JavaScript | 0.000001 | @@ -64,12 +64,243 @@
ty: true
+,%0A scenarios: %5B%0A %7B%0A name: 'ember-alpha',%0A allowedToFail: true,%0A bower: %7B%0A dependencies: %7B%0A %22ember%22: %22alpha%22%0A %7D,%0A resolutions: %7B%0A %22ember%22: %22alpha%22%0A %7D%0A %7D%0A %7D%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.