commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 624 | message stringlengths 15 4.7k | lang stringclasses 3
values | license stringclasses 13
values | repos stringlengths 5 91.5k |
|---|---|---|---|---|---|---|---|---|---|
95986222a1313f9eb37651adf0ed9270c9a8961f | migrations/20170326151414_add_event_id_for_feed_items.js | migrations/20170326151414_add_event_id_for_feed_items.js |
exports.up = function(knex, Promise) {
return knex.schema.table('feed_items', function(table) {
table.integer('event_id').index();
table.foreign('event_id')
.references('id')
.inTable('events')
.onDelete('RESTRICT')
.onUpdate('CASCADE');
});
};
exports.down = function(knex, Promise... | Add event_id column to feed_items table | Add event_id column to feed_items table
| JavaScript | mit | kaupunki-apina/prahapp-backend,futurice/wappuapp-backend,kaupunki-apina/prahapp-backend,futurice/wappuapp-backend | |
f8e10ed2f67af93d6a4c00099959af6821c9051e | frontend_tests/node_tests/common.js | frontend_tests/node_tests/common.js | var common = require("js/common.js");
set_global('$', function (f) {
if (f === '#home') {
return [{ focus: function () {} }];
}
f();
});
(function test_basics() {
common.autofocus('#home');
}());
| Add test coverage to autofocus. | node_tests: Add test coverage to autofocus.
| JavaScript | apache-2.0 | timabbott/zulip,brainwane/zulip,hackerkid/zulip,andersk/zulip,jrowan/zulip,brockwhittaker/zulip,synicalsyntax/zulip,punchagan/zulip,rishig/zulip,shubhamdhama/zulip,jrowan/zulip,j831/zulip,shubhamdhama/zulip,zulip/zulip,synicalsyntax/zulip,mahim97/zulip,vabs22/zulip,showell/zulip,jackrzhang/zulip,timabbott/zulip,tommyip... | |
86d9855400fcbbd53e84e1668b92ba14abcf5d34 | scripts/babel-relay-plugin/src/__tests__/BuildChecker-test.js | scripts/babel-relay-plugin/src/__tests__/BuildChecker-test.js | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @fullSyntaxTrans... | Add Build Checker for OSS Plugin | Relay: Add Build Checker for OSS Plugin
Summary: I keep forgetting to do this. Others will, too.
This adds a test that makes sure that `lib/` matches `src/`.
Reviewed By: @josephsavona
Differential Revision: D2520980
fb-gh-sync-id: ab8881ea0d22aed9b863ce52c276e263073ecce3
| JavaScript | mit | venepe/relay,yungsters/relay,voideanvalue/relay,NevilleS/relay,cesarandreu/relay,IlyasM/relayWorking,chentsulin/relay,iamchenxin/relay,cpojer/relay,facebook/relay,xuorig/relay,almasakchabayev/relay,josephsavona/relay,facebook/relay,freiksenet/relay,atxwebs/relay,wincent/relay,gabelevi/relay,facebook/relay,dbslone/relay... | |
e639dd204db6cd8dfffa0f70f711988c8048f72e | rules.js | rules.js | {
"rules": {
// All data is readable by anyone.
".read": true,
"people": {
// A list of users with their names on the site.
"$userid": {
// Only the user can write their own entry into this list.
".write": "$userid == auth.id"
}
},
"users": {
"$userid": {
... | Check if syntax highlighting is better with .js | Check if syntax highlighting is better with .js
| JavaScript | mit | dieface/firefeed,googlearchive/firefeed,prisacaru/firefeed,googlearchive/firefeed,prisacaru/firefeed,prisacaru/firefeed,dieface/firefeed,googlearchive/firefeed,prisacaru/firefeed,dieface/firefeed,googlearchive/firefeed,dieface/firefeed | |
8f5ac9ea7ebf07fb3debc18657f4ba43503d1240 | src/js/framework/dom.js | src/js/framework/dom.js | import {styler as Styler} from "./styler";
class DOM {
constructor() {
this.cache = {};
}
get controls() {
if (this.cache.controls) { return this.cache.controls; }
return this.cache.controls = this.reveal.querySelector(".controls");
}
get controlsLock() {
if (this.cache.controlsLock) { retu... | Add helper for retrieving specific DOM elements | Add helper for retrieving specific DOM elements
| JavaScript | mit | tdg5/js4pm,tdg5/js4pm,tdg5/front-end-skills-for-pms,tdg5/front-end-skills-for-pms | |
80555770d64384332f2f1c18cf93232097027933 | http/examples/random-user/random-user.js | http/examples/random-user/random-user.js | import Cycle from '@cycle/core';
import {h, makeDOMDriver} from '@cycle/web';
import {makeHTTPDriver} from '@cycle/http';
function main(responses) {
const USERS_URL = 'http://jsonplaceholder.typicode.com/users/';
let getRandomUser$ = responses.DOM.get('.get-random-user', 'click')
.map(() => {
let randomN... | Add "get random user" example | Add "get random user" example
| JavaScript | mit | maskinoshita/cyclejs,cyclejs/cycle-core,cyclejs/cyclejs,ntilwalli/cyclejs,usm4n/cyclejs,usm4n/cyclejs,feliciousx-open-source/cyclejs,ntilwalli/cyclejs,staltz/cycle,cyclejs/cycle-core,maskinoshita/cyclejs,ntilwalli/cyclejs,usm4n/cyclejs,maskinoshita/cyclejs,feliciousx-open-source/cyclejs,maskinoshita/cyclejs,usm4n/cycle... | |
41712642e22faaeddb9d850d37b22d8e1429aa8f | ui/browser/browser-style.js | ui/browser/browser-style.js | /*
Copyright 2016 Mozilla
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
u... | Create a single Style instance for the entire browser | Create a single Style instance for the entire browser
Signed-off-by: Victor Porof <7d8eebacd0931807085fa6b9af29638ed74e0886@mozilla.com>
| JavaScript | apache-2.0 | jsantell/tofino,mozilla/tofino,jsantell/tofino,jsantell/tofino,mozilla/tofino,bgrins/tofino,bgrins/tofino,mozilla/tofino,victorporof/tofino,jsantell/tofino,mozilla/tofino,bgrins/tofino,bgrins/tofino,victorporof/tofino | |
a5d6e22390cf381767bdd57757211081f973711f | js/components/module-wire.js | js/components/module-wire.js | (function(app) {
'use strict';
var jCore = require('jcore');
var helper = app.helper || require('../helper.js');
var ModuleWire = helper.inherits(function() {
ModuleWire.super_.call(this);
}, jCore.Component);
if (typeof module !== 'undefined' && module.exports)
module.exports = ModuleWire;
els... | Add a constructor for a component of the module wire | Add a constructor for a component of the module wire
| JavaScript | mit | ionstage/modular,ionstage/modular | |
bb8dbc205387dc84799140dd53f12c9f6ee92df5 | server/migrations/20140722230151-change-recyclingAvailable-to-integer-on-reports-table.js | server/migrations/20140722230151-change-recyclingAvailable-to-integer-on-reports-table.js | module.exports = {
up: function(migration, DataTypes, done) {
migration.changeColumn(
'reports',
'recyclingAvailable',
{type: "integer USING 0"}
).complete(done);
},
down: function(migration, DataTypes, done) {
migration.changeColumn('reports', 'recyclingAvailable', {type: "boolean u... | Change recyclingAvailable column type to integer | Change recyclingAvailable column type to integer
| JavaScript | mit | open-city/recycling,open-city/recycling,open-austin/mybuildingdoesntrecycle,open-city/recycling,open-austin/mybuildingdoesntrecycle,davidjamesknight/recycling,open-austin/mybuildingdoesntrecycle,davidjamesknight/recycling,davidjamesknight/recycling | |
2a5bedd9051c1e77ffff22b527ac53eecbb04b9d | src/storage/sessionStorage.js | src/storage/sessionStorage.js | const DEFAULT_KEY = 'redux-simple-auth-session'
export default ({ key = DEFAULT_KEY } = {}) => ({
persist: data => {
sessionStorage.setItem(key, JSON.stringify(data || {}))
},
restore: () => JSON.parse(sessionStorage.getItem(key)) || {}
})
| Write a session storage implementation | Write a session storage implementation
| JavaScript | mit | jerelmiller/redux-simple-auth | |
52c592d303fa43837c85c01cad69e787d74c6c93 | config/dependency-lint.js | config/dependency-lint.js | /* eslint-env node */
'use strict';
module.exports = {
allowedVersions: {
'ember-getowner-polyfill': '^1.0.0 || ^2.0.0',
'ember-inflector': '^1.0.0 || ^2.0.0',
'ember-hash-helper-polyfill': '^0.1.2 || ^0.2.0' // workaround for dep. conflict ember-tooltips/liquid-fire
}
};
| /* eslint-env node */
'use strict';
module.exports = {
allowedVersions: {
'ember-get-config': '^0.2.0', // workaround for dep. conflict ember-cli-mirage/ember-light-table
'ember-getowner-polyfill': '^1.0.0 || ^2.0.0',
'ember-inflector': '^1.0.0 || ^2.0.0',
'ember-hash-helper-polyfill': '^0.1.2 || ^0.... | Allow range of ember-get-config versions | Allow range of ember-get-config versions
| JavaScript | mit | jrjohnson/frontend,djvoa12/frontend,ilios/frontend,ilios/frontend,djvoa12/frontend,thecoolestguy/frontend,dartajax/frontend,jrjohnson/frontend,dartajax/frontend,thecoolestguy/frontend |
72ba56e76d83c0cd0082ffcb17718c0db4fc9c15 | server/db/db.js | server/db/db.js | const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/codr');
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() {
// we're connected to codr!
});
| Set up database in mongoose | Set up database in mongoose
| JavaScript | mit | OrderlyPhoenix/OrderlyPhoenix,OrderlyPhoenix/OrderlyPhoenix | |
86f35f94e89e201263e008a171525bfe6c302b7c | test/specs/deleteFile.spec.js | test/specs/deleteFile.spec.js | var path = require("path"),
fileExists = require("exists-file").sync,
directoryExists = require("directory-exists").sync;
var localFilePath = path.resolve(__dirname, "../testContents/text document.txt"),
localDirPath = path.resolve(__dirname, "../testContents/sub1");
describe("deleteFile", function() {
... | Add tests for deleteFile (failing due to webdav-server DELETE bug) | Add tests for deleteFile (failing due to webdav-server DELETE bug)
| JavaScript | mit | perry-mitchell/webdav-client,perry-mitchell/webdav-client | |
2839dbc4204609571a2ccb7167970dde201be6f4 | core/client/tests/test-helper.js | core/client/tests/test-helper.js | import resolver from './helpers/resolver';
import { setResolver } from 'ember-mocha';
setResolver(resolver);
/* jshint ignore:start */
mocha.setup({
timeout: 5000,
slow: 500
});
/* jshint ignore:end */
| import resolver from './helpers/resolver';
import { setResolver } from 'ember-mocha';
setResolver(resolver);
/* jshint ignore:start */
mocha.setup({
timeout: 15000,
slow: 500
});
/* jshint ignore:end */
| Increase timeout in ember tests | Increase timeout in ember tests
no issue
- increases individual test timeout from 5sec to 15sec
It seems Travis is occasionally _very_ slow and will timeout on heavier acceptance tests resulting in random failures. Hopefully this will reduce the number of random test failures we see.
| JavaScript | mit | RufusMbugua/TheoryOfACoder,benstoltz/Ghost,allanjsx/Ghost,acburdine/Ghost,barbastan/Ghost,daimaqiao/Ghost-Bridge,ngosinafrica/SiteForNGOs,kaychaks/kaushikc.org,kevinansfield/Ghost,hnarayanan/narayanan.co,Japh/shortcoffee,petersucks/blog,syaiful6/Ghost,chris-yoon90/Ghost,edsadr/Ghost,weareleka/blog,madole/diverse-learne... |
ce7533923404c8bd74b5b767c27cde0f4765b444 | modules/openlmis-web/src/main/webapp/public/js/vaccine/inventory/module/inventory-module.js | modules/openlmis-web/src/main/webapp/public/js/vaccine/inventory/module/inventory-module.js | /*
* Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.
*
* Copyright (C) 2015 Clinton Health Access Initiative (CHAI). This program was produced for the U.S. Agency for International Development (USAID). It was prepa... | Add Stock on Hand Module | Add Stock on Hand Module
| JavaScript | agpl-3.0 | USAID-DELIVER-PROJECT/elmis,OpenLMIS/open-lmis,USAID-DELIVER-PROJECT/elmis,OpenLMIS/open-lmis,USAID-DELIVER-PROJECT/elmis,USAID-DELIVER-PROJECT/elmis,OpenLMIS/open-lmis,OpenLMIS/open-lmis | |
4b1ec7b112d30e0888f8361b01561241d8c301e4 | spec/appSpec.js | spec/appSpec.js | /* eslint-env jasmine */
describe('Launching the app', () => {
it('creates a visible window', async () => {
const Application = require('spectron').Application
let app = new Application({
path: 'node_modules/.bin/electron',
args: ['built/index.js']
})
await app.start()
// expect(app.b... | Test if the app window is visible | Test if the app window is visible
| JavaScript | agpl-3.0 | briandk/transcriptase,briandk/transcriptase | |
f0f71c7845c3da22db40df6013e09cfe7beecc46 | expository/towerOfHanoi.js | expository/towerOfHanoi.js | 'use strict';
/*
* Hannoi
*
* Tower solved progress look like as below:
*
* | | | | | | | | | 1 | |
* | 1 | => | | | => | | | => 2 | |
* | 2 | | | 1 3 | 1 3 | |
* 4 3 | 4 3 2 4 | 2 4 | |
*
* The less one must be set on the top of the greater one.
* Greater and less one represe... | Add tower of hannoi problem. | Add tower of hannoi problem.
| JavaScript | mit | vanpipy/AlgorithmsBase | |
0483d3505810bd8aabd2aeafc26bfda816813f5a | app/projects/model.js | app/projects/model.js | var mongoose = require('mongoose');
var schema = require('validate');
var Project = mongoose.model('Project', {
name: {type: String, unique: true},
created: {type: Date, default: new Date()},
rating: {type: Number, default: 0}
});
var validate = function (project) {
var test = schema({
name: {
required: ... | Write simple schema for projects | Write simple schema for projects
| JavaScript | mit | hacksu/kenthackenough,hacksu/kenthackenough | |
bf00ce887f1f0a8887a05121cc2cca8ffb00c7ea | mapreduce_jobs.js | mapreduce_jobs.js | /* Functions for extracting stats.
* To run these, start the mongo shell w/ the processed db and this file:
* mongo --shell processed mapreduce_jobs.js
* ... then call functions.
* If you need more specifics, like job completion times, it may be easier
* to just copy/paste the lines into the mongo shell.
*/
//... | Add sample MapReduce stats jobs | Add sample MapReduce stats jobs
To compute the most popular locations, projects, etc.
| JavaScript | mit | emarschner/gothub,emarschner/gothub,emarschner/gothub,emarschner/gothub | |
c7932da821fb5b11ec76a9aedeafe17d9d6dfdb3 | week-7/variables-objects.js | week-7/variables-objects.js | // JavaScript Variables and Objects
// I worked on this challenge alone
// __________________________________________
// Write your code below.
var secretNumber = 7
var password = "just open the door"
var allowedIn = false
var members = []
members[0] = "John"
members[3] = "Mary"
// ______________________________... | Add file with all test passing | Add file with all test passing
| JavaScript | mit | Michael-Jas/phase-0,Michael-Jas/phase-0,Michael-Jas/phase-0 | |
143d05297d369507d04044bf8161eb0c64c935b3 | src/utils/package_description.js | src/utils/package_description.js | /**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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 a... | Add utility to return a package description for a specified version | Add utility to return a package description for a specified version
| JavaScript | apache-2.0 | stdlib-js/www,stdlib-js/www,stdlib-js/www | |
d377f6d6e45f3593403b27cf3e828268bb7a1fec | js/views/modals/about/BTCTicker.js | js/views/modals/about/BTCTicker.js | import loadTemplate from '../../../utils/loadTemplate';
import baseVw from '../../baseVw';
import { getExchangeRate } from '../../../utils/currency';
import app from '../../../app';
const RATE_EXPIRY_S = '300';
export default class extends baseVw {
constructor(options = {}) {
super({
className: 'aboutBTC... | import loadTemplate from '../../../utils/loadTemplate';
import baseVw from '../../baseVw';
import { getExchangeRate } from '../../../utils/currency';
import app from '../../../app';
const RATE_EXPIRY_S = '300';
export default class extends baseVw {
constructor(options = {}) {
super({
className: 'aboutBTC... | Remove unused classes in btc ticker. | Remove unused classes in btc ticker.
| JavaScript | mit | jjeffryes/openbazaar-desktop,srhoulam/openbazaar-desktop,OpenBazaar/openbazaar-desktop,jjeffryes/openbazaar-desktop,srhoulam/openbazaar-desktop,jashot7/openbazaar-desktop,OpenBazaar/openbazaar-desktop,srhoulam/openbazaar-desktop,jashot7/openbazaar-desktop,jjeffryes/openbazaar-desktop,OpenBazaar/openbazaar-desktop,jasho... |
7bc2711c29d39466d1bfec43ac85bf936fe7a49f | test/coffee_script_redux_test.js | test/coffee_script_redux_test.js | var empower = require('../lib/empower'),
CoffeeScript = require('coffee-script-redux'),
q = require('qunitjs'),
util = require('util'),
tap = (function (qu) {
var qunitTap = require("qunit-tap").qunitTap;
var tap = qunitTap(qu, util.puts, {showSourceOnFailure: false});
qu.init();... | Add test for CoffeeScriptRedux support. | Add test for CoffeeScriptRedux support.
| JavaScript | mit | twada/empower-core,falsandtru/power-assert,power-assert-js/power-assert,twada/power-assert,yagitoshiro/power-assert,twada/power-assert,power-assert-js/empower,power-assert-js/power-assert,twada/empower-core,falsandtru/power-assert,azu/power-assert,saneyuki/power-assert,yagitoshiro/power-assert,power-assert-js/empower,j... | |
a37c35478735ffd52fb8ef0a7d409a5ab678a30d | logic/account/suspensionChecker.js | logic/account/suspensionChecker.js | var redisClient = require('../redis_client/redisClient').getClient()
var configuration = require('../config/configuration.json')
var utility = require('../utility')
module.exports = {
addToSuspensionList: function(accountHashID, suspendType, callback) {
var suspendTable = TableAccountModel.SuspendStatus[... | Implement Account Suspension Checker Module for Add/Remove/Check Suspension | Implement Account Suspension Checker Module for Add/Remove/Check Suspension
| JavaScript | mit | Flieral/AAA-Service | |
88d4ed807e0a3ebe06d4573722dca44df9ea2d92 | node/src/main/generic-plugin.js | node/src/main/generic-plugin.js |
'use strict';
var common = require('./common');
function Parser(selector, name, fields) {
this.name = name;
this.parse = function parse(services) {
var instance = common.getInstance(services, selector);
if (!instance) {
return null;
}
var details = instance.crede... | Add a plugin that can be configured through the constructor. | Add a plugin that can be configured through the constructor.
| JavaScript | mit | mattunderscorechampion/vcap-services-parser | |
fa56f9ba64a32e8e998ccc2a598227f67ddd5090 | utils/word-count.js | utils/word-count.js | export default function (s) {
s = s.replace(/(^\s*)|(\s*$)/gi, ''); // exclude start and end white-space
s = s.replace(/[ ]{2,}/gi, ' '); // 2 or more space to 1
s = s.replace(/\n /, '\n'); // exclude newline with a start spacing
return s.split(' ').length;
} | export default function (s) {
s = s.replace(/(^\s*)|(\s*$)/gi, ''); // exclude start and end white-space
s = s.replace(/[ ]{2,}/gi, ' '); // 2 or more space to 1
s = s.replace(/\n /gi, '\n'); // exclude newline with a start spacing
s = s.replace(/\n+/gi, '\n');
return s.split(/ |\n/).length;
} | Fix word count in ember. | Fix word count in ember.
| JavaScript | mit | JohnONolan/Ghost-Admin,dbalders/Ghost-Admin,airycanon/Ghost-Admin,dbalders/Ghost-Admin,acburdine/Ghost-Admin,airycanon/Ghost-Admin,acburdine/Ghost-Admin,TryGhost/Ghost-Admin,kevinansfield/Ghost-Admin,kevinansfield/Ghost-Admin,TryGhost/Ghost-Admin,JohnONolan/Ghost-Admin |
b833aa48e93095896448d1bf8bf998256a5567ee | test/mjsunit/test-keep-alive.js | test/mjsunit/test-keep-alive.js | // This test requires the program "ab"
process.mixin(require("./common"));
http = require("http");
sys = require("sys");
PORT = 8891;
body = "hello world\n";
server = http.createServer(function (req, res) {
res.sendHeader(200, {
"Content-Length": body.length,
"Content-Type": "text/plain",
});
res.send... | Add test to ensure the server can handle keep-alive | Add test to ensure the server can handle keep-alive
| JavaScript | apache-2.0 | dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,dreamllq/node,isaacs/nshtools,dreamllq/node,dreamllq/node,dreamllq/node | |
b56581fb002c5d54fe1a83c5d2c738912ab680b5 | js/components/developer/job-preview-screen/jobTypeCardPreview.js | js/components/developer/job-preview-screen/jobTypeCardPreview.js | import React, { Component } from 'react';
import { Card } from 'native-base';
import CardImageHeader from '../common/cardImageHeader';
import SimpleCardBody from '../common/simpleCardBody';
export default class JobTypeCardPreview extends Component {
static propTypes = {
title: React.PropTypes.string.isRequired,... | Create job type card preview component | Create job type card preview component
| JavaScript | mit | justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client,justarrived/p2p-client | |
71d4bea94ed2b822d8efae09d1f2e0a657ace1fd | js/lib/saveable.js | js/lib/saveable.js | /*global lib, JSON */
lib.saveable = function (_public, _protected, key) {
if (!JSON) {
throw new Error("JSON does not exist");
}
_public.save = function () {
return lib.storage.setItem(key, JSON.stringify(_public.attributes()));
};
_public.fetch = function () {
var data = ... | Add a way to save & fetch a model's attributes to/from local storage. | Add a way to save & fetch a model's attributes to/from local storage. | JavaScript | mit | rapportive-oss/model-r,rapportive-oss/model-r | |
0e4fe82f6f0b4ed5a9d93a626fb780023bca156b | test/unit/UserTest.js | test/unit/UserTest.js |
define(
[
'chai',
'sinon',
'fixtures',
'argumenta/widgets/User',
'argumenta/widgets/Base',
'argumenta/config'
],
function(chai, undefined, fixtures, User, Base, Config) {
var assert = chai.assert;
var baseUrl = Config.baseUrl;
// Helpers
var withUser = function() {
va... | Add basic tests for user widget. | Add basic tests for user widget.
| JavaScript | mit | argumenta/argumenta-widgets,argumenta/argumenta-widgets | |
61a136ef8639eba98c058bb04698813552e7ade8 | src/commands/general/delet-this.js | src/commands/general/delet-this.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const Commando = require('discord.js-commando');
const Helpers = require('../../util/helpers.js');
module.export... | Add deletthis command, for when images are just that bad | Add deletthis command, for when images are just that bad
| JavaScript | mpl-2.0 | BytewaveMLP/Randibooru.js | |
cd54d10d9f9cd27e93b6c0119f0daa20c729ceeb | files/bootstrap.hover-dropdown/2.0.11/bootstrap-hover-dropdown.min.js | files/bootstrap.hover-dropdown/2.0.11/bootstrap-hover-dropdown.min.js | /**
* Project: Bootstrap Hover Dropdown
* Author: Cameron Spear
* Contributors: Mattia Larentis
*
* Dependencies: Bootstrap's Dropdown plugin, jQuery
*
* A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
*
* License: MIT
*
* http://cameronspear.com/blog/boot... | Update project bootstrap-hover-dropdown to 2.0.11 | Update project bootstrap-hover-dropdown to 2.0.11
| JavaScript | mit | spud2451/jsdelivr,Sneezry/jsdelivr,markcarver/jsdelivr,afghanistanyn/jsdelivr,royswastik/jsdelivr,stevelacy/jsdelivr,MaxMillion/jsdelivr,evilangelmd/jsdelivr,siscia/jsdelivr,leebyron/jsdelivr,CTres/jsdelivr,leebyron/jsdelivr,MenZil/jsdelivr,cake654326/jsdelivr,MenZil/jsdelivr,dandv/jsdelivr,fchasen/jsdelivr,asimihsan/j... | |
e7accd8135d9847c02efbc3c445eceb7b2454a09 | scripts/blueRed.js | scripts/blueRed.js | var conn = new Mongo();
var db = conn.getDB("local");
db.matches.find().forEach(function(doc){
var red = 0, games = [];
doc.games.forEach(function(game){
if (game.redScore > game.blueScore) red++;
else red--;
});
var winner = red > 0 ? "red" : "blue";
var loser = red < 0 ? "red" : "blue";
if (red === 0) db.ma... | Add script to convert data from blue/red to winner/loser | Add script to convert data from blue/red to winner/loser
| JavaScript | mit | jshemas/PingPong,jshemas/PingPong | |
339e8e1ea11aef45a78dd8bf6a0defd6d3004efa | test/cases/resolving/commomjs-local-module/index.js | test/cases/resolving/commomjs-local-module/index.js | var should = require("should");
define("regular", function(require, exports, module) {
module.exports = "regular-module";
});
define("override-exports", function(require, exports, module) {
exports = "this one overrides exports reference";
});
define("return-module", function(require, exports, module) {
return... | Fix tests — let's default to an empty object if exports keyword is overriden | Fix tests — let's default to an empty object if exports keyword is overriden
| JavaScript | mit | ts-webpack/webpack,g0ddish/webpack,NekR/webpack,g0ddish/webpack,SimenB/webpack,SimenB/webpack,ts-webpack/webpack,SimenB/webpack,NekR/webpack,SimenB/webpack,webpack/webpack,EliteScientist/webpack,EliteScientist/webpack,g0ddish/webpack,ts-webpack/webpack,ts-webpack/webpack,webpack/webpack,webpack/webpack,webpack/webpack | |
fb04081962f07efa9359b0b0bc6fd526d24324d8 | src/userlist/UserStatusIndicator.js | src/userlist/UserStatusIndicator.js | import React, { Component } from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import { UserStatus } from '../api';
const styles = StyleSheet.create({
common: {
width: 16,
height: 16,
borderRadius: 100,
},
active: {
borderColor: 'pink',
backgroundColor: 'green',
},
idle:... | import React, { Component } from 'react';
import {
StyleSheet,
View,
} from 'react-native';
import { UserStatus } from '../api';
const styles = StyleSheet.create({
common: {
width: 12,
height: 12,
borderRadius: 100,
},
active: {
backgroundColor: '#44c21d',
},
idle: {
backgroundColor:... | Make status indicators more like current site | Make status indicators more like current site
| JavaScript | apache-2.0 | Sam1301/zulip-mobile,nashvail/zulip-mobile,vishwesh3/zulip-mobile,saketkumar95/zulip-mobile,nashvail/zulip-mobile,Sam1301/zulip-mobile,vishwesh3/zulip-mobile,nashvail/zulip-mobile,kunall17/zulip-mobile,Sam1301/zulip-mobile,nashvail/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,saketkumar95/zulip-mobile,Sam... |
e2fac6bb350ac744eb8ea66f8ff227e3d09ecaf7 | test/groupexists.js | test/groupexists.js | var assert = require('assert');
var ActiveDirectory = require('../index');
var config = require('./config');
describe('ActiveDirectory', function() {
describe('#groupExists()', function() {
var ad;
var settings = require('./settings').groupExists;
beforeEach(function() {
ad = new ActiveDirectory(co... | Add unit tests for groupExists() method call. | Add unit tests for groupExists() method call.
| JavaScript | mit | jsumners/node-activedirectory,BenPaster/node-activedirectory,gheeres/node-activedirectory,kattsushi/node-activedirectory | |
18dd550415a86928b8a5bd1ddc0c6963d57172ad | app/app.js | app/app.js | (function(){
angular.module('MeanSocial', ['ui.router'])
.config(function ($stateProvider) {
$stateProvider
.state('signUp', {
url: '/signup',
templateUrl: "app/signup/signup.html",
controller: 'SignUpController'
... | Add signup state; inject ui-router | Add signup state; inject ui-router
| JavaScript | mit | DavidMax/mean-social,DavidMax/mean-social | |
c70d24c5f3492c85734a1975a51af96c3f5c18e9 | test/functional/realtime-session.js | test/functional/realtime-session.js | import SocketIO from 'socket.io-client';
const eventTimeout = 2000;
const silenceTimeout = 500;
/**
* Session is a helper class
* for the realtime testing
*/
export default class Session {
socket = null;
name = '';
static create(port, name = '') {
const options = {
transports: ['websocket']... | Add a helper class for simplyfy realtime testing | Add a helper class for simplyfy realtime testing
| JavaScript | mit | FreeFeed/freefeed-server,FreeFeed/freefeed-server | |
1e1b0f3563c758f583cb3f00eaf1b2b7fcf0bff9 | tests/e2e/matchers/to-be-checked.js | tests/e2e/matchers/to-be-checked.js | /**
* Custom matcher for testing if a checkbox is checked or not.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://ww... | Add toBeChecked custom matcher for E2E. | Add toBeChecked custom matcher for E2E.
| JavaScript | apache-2.0 | google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp | |
533d1dd6f31fc174d9620ae935f19d0311c261db | js/Utilities/BackAndroid.windows.js | js/Utilities/BackAndroid.windows.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | Add BackAndroid JS module for Windows platform | feat(BackAndroid): Add BackAndroid JS module for Windows platform
The BackAndroid module provides a JS API for the native DeviceEventEmitter module to hook into back-button presses. This is needed, e.g., for Navigator.
Fixes #246
| JavaScript | mit | lbochenek/react-native-windows,lbochenek/react-native-windows,lbochenek/react-native-windows,lbochenek/react-native-windows | |
651cd79f2ae92afeff6c519cdf30472b82c1a830 | webpack-hot-only-dev-server.js | webpack-hot-only-dev-server.js | // Modified copy of https://github.com/webpack/webpack/blob/v1.11.0/hot/only-dev-server.js
// (Added window.instrumentCodeGroupAsyncTopLevel)
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
/*globals window __webpack_hash__ */
if(module.hot) {
var lastData;
var... | Add modified version of a Webpack hot loading file | Add modified version of a Webpack hot loading file
Which makes use of grouping calls, so you don’t get a crazy amount of
top-level calls when re-rendering React components. | JavaScript | mit | janpaul123/omniscient-debugging,Tug/omniscient-debugging | |
a4f50092575e1037d2bff0f992df836de797bb2e | src/mpayrollAPI.js | src/mpayrollAPI.js | const Hapi = require("hapi");
let port = 3000;
let ip = 'localhost';
const server = new Hapi.Server();
server.connection({
host: ip,
port: port
});
//Add Routes
server.route({
method: 'POST',
path: '/api_mpayroll/employees',
handler: function(request, reply){
//Stub out sending the emplo... | ADD - Minimal code for mPayroll API | ADD - Minimal code for mPayroll API
| JavaScript | mit | Bill-A/Correctness-DrivenDevelopment | |
1e50ee02fb2e7ff80e62e6701fc9f8aa7e35c391 | lib/collections/questionsGroupsCollection.js | lib/collections/questionsGroupsCollection.js | QuestionsGroups = new Mongo.Collection('questionsGroups');
var Schemas = {};
Schemas.QuestionsGroups = new SimpleSchema({
level: {
type: Number,
label: 'Question group level'
},
version: {
type: Number,
label: 'Question group version'
},
deprecated: {
type: Boolean,
label: 'Is the question group depr... | Add collection managment for the questionsGroup | Add collection managment for the questionsGroup
| JavaScript | mit | EKlore/EKlore,EKlore/EKlore | |
c1ddf25cfecccf75c006f79a38c45c380bb7e65f | bin/run-simple-global-site-test.js | bin/run-simple-global-site-test.js | //
// Ref) https://www.browserstack.com/automate/node#getting-started
//
var webdriver = require('browserstack-webdriver');
var browserstackConf = require('../browserstack-conf.json');
// Input capabilities
var capabilities = {
'browserName' : 'firefox',
'browserstack.user' : browserstackConf['browserstack.user'... | Add a simple global test | Add a simple global test
| JavaScript | mit | kjirou/browserstack-with-express | |
0fdd3fd1f0df888cf13e1e13e2418307bca407ae | week-7/game.js | week-7/game.js | // Design Basic Game Solo Challenge
// This is a solo challenge
// Your mission description:
// Overall mission:
//You're an astronaut and you need to get back to the spaceship. There is a martian trying to stop you so you have to shoot at him as you make your way back to safety.
// Goals:
//Get back to spaceship... | Add mission outline and pseudocode | Add mission outline and pseudocode
| JavaScript | mit | cstallings1/phase-0,cstallings1/phase-0,cstallings1/phase-0 | |
a2748c414a629b1b909de14bd927428055f30adc | migrations/1.3.0.js | migrations/1.3.0.js | 'use strict';
var async = require('async');
var openVeoAPI = require('@openveo/api');
var db = openVeoAPI.applicationStorage.getDatabase();
module.exports.update = function(callback) {
process.logger.info('Publish 1.3.0 migration launched.');
db.get('videos', {}, null, null, function(error, value) {
if (erro... | Add migration script to rewrite files property into sources property | Add migration script to rewrite files property into sources property
| JavaScript | agpl-3.0 | veo-labs/openveo-publish,veo-labs/openveo-publish,veo-labs/openveo-publish | |
4736c2be21a62e675ff895a0201416c6b660a019 | experiments/GitHubGistUserCreator.js | experiments/GitHubGistUserCreator.js | const bcrypt = require('bcrypt');
const github = require('github-api');
const { User } = require('../models');
const { email } = require('../utils');
const GITHUB_API_TOKEN = process.env.GITHUB_TOKEN;
const GITHUB_GIST_ID = process.env.GITHUB_GIST_ID;
// Authenticate using a GitHub Token
const ghClient = new github(... | Create users from static data | Create users from static data
This pulls down a given GitHub Gist that contains a JSON file.
It then parses the data, creates a new password, creates a User, and
then it emails the user with their new password.
| JavaScript | mit | osumb/challenges,osumb/challenges,osumb/challenges,osumb/challenges | |
53e25a15e0444f525166ed04305dcd6889815b2d | magnum_ui/static/dashboard/container-infra/cluster-templates/create/cluster-template-model.spec.js | magnum_ui/static/dashboard/container-infra/cluster-templates/create/cluster-template-model.spec.js | /**
* (c) Copyright 2016 NEC Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | Add javascript tests for ClusterTemplateModel | Add javascript tests for ClusterTemplateModel
This patch adds javascript tests for the following modules.
- horizon.dashboard.container-infra.cluster-templates.model
Change-Id: I7f7b720ef8d8e69ecf8ea7994db77f74baba4cd2
| JavaScript | apache-2.0 | openstack/magnum-ui,openstack/magnum-ui,openstack/magnum-ui,openstack/magnum-ui | |
722e50efcd1d64f36472f0722cf5e95933ed2767 | js/util.js | js/util.js | // 使い方
// getCurrentLocation()
// .done(function(location) {
// // success
// })
// .fail(function() {
// // faile
// });
function getCurrentLocation() {
var dfd = $.Deferred();
if(!navigator.geolocation) {
alert('Geolocation API is unavalable.');
dfd.reject();
}
navigator.geoloca... | Implement function getting current location by using jQuery.Defferred | Implement function getting current location by using jQuery.Defferred
| JavaScript | mit | otknoy/michishiki | |
366c22009a3bda07c84790c91f567f57d8fa381c | src/reducers/r.spec.js | src/reducers/r.spec.js | import reducer from './r'
describe('r', () => {
it('Should return the initial state', () => {
expect(
reducer(undefined, {})
)
.toEqual(null)
})
it('Should handle LOGIN_SUCCESS', () => {
expect(
reducer(
// State,
null,
// Action
{
type: 'LOG... | Add reddit client reducer tests | Add reddit client reducer tests
| JavaScript | mit | antoinechalifour/Reddix,antoinechalifour/Reddix | |
69d5639b0e71f598a2830f01195adb6628aec744 | src/app/controllers/MainController.js | src/app/controllers/MainController.js | (function(){
angular
.module('app')
.controller('MainController', [
'navService', '$mdSidenav', '$mdBottomSheet', '$log', '$q', '$state', '$mdToast',
MainController
]);
function MainController(navService, $mdSidenav, $mdBottomSheet, $log, $q, $state, $mdToast) {
var vm... | Build a main layout for home page and customize layout sizes. | Build a main layout for home page and customize layout sizes.
| JavaScript | mit | happyboy171/DailyReportDashboard-Angluar-,happyboy171/DailyReportDashboard-Angluar- | |
201eecdca92ac97ed3f84717d1fa69f4155a09de | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var psi = require('psi');
var site = 'http://www.html5rocks.com';
var key = '';
// Please feel free to use the `nokey` option to try out PageSpeed
// Insights as part of your build process. For more frequent use,
// we recommend registering for your own API key. For more info:
// https://d... | var gulp = require('gulp');
var psi = require('psi');
var site = 'http://www.html5rocks.com';
var key = '';
// Please feel free to use the `nokey` option to try out PageSpeed
// Insights as part of your build process. For more frequent use,
// we recommend registering for your own API key. For more info:
// https://d... | Use tabs rather as psi is using tabs | Use tabs rather as psi is using tabs | JavaScript | mit | Jazz-Man/psi-gulp-sample,addyosmani/psi-gulp-sample |
9e3d376c072775c93f456402786871c1f7060cdf | spec/helpers-spec.js | spec/helpers-spec.js | const path = require('path')
const helpers = require('../lib/helpers')
describe('Helpers', () => {
describe('getFullExtension', () => {
it('returns the extension for a simple file', () => {
expect(helpers.getFullExtension('filename.txt')).toBe('.txt')
})
it('returns the extension for a path', () => {
expe... | Add dedicated specs for getFullExtension | Add dedicated specs for getFullExtension
| JavaScript | mit | jarig/tree-view,atom/tree-view | |
c4be15ab7481215f39571fd7ec4c6ccff75457a6 | spec/all-spec.js | spec/all-spec.js | var FS = require("q-io/fs");
var PATH = require("path");
var RELATIVE_LIB = PATH.join("..", "lib");
var ABSOLUTE_LIB = PATH.join(__dirname, RELATIVE_LIB);
FS.listTree(ABSOLUTE_LIB, function (path, stat) {
return !!path.match(/.js$/);
})
.then(function (tree) {
tree.forEach(function (path) {
require(p... | Add "spec" to load all lib files | Add "spec" to load all lib files
To get true code coverage
| JavaScript | bsd-3-clause | pchaussalet/mop,thibaultzanini/mop | |
a65eafa20a6862ddea627cf1dde438e680fa3fc1 | addon/-private/apollo/setup-hooks.js | addon/-private/apollo/setup-hooks.js | import Component from '@ember/component';
import Route from '@ember/routing/route';
const hooks = {
willDestroyElement() {
this.unsubscribeAll(false);
},
beforeModel() {
this.markSubscriptionsStale();
},
resetController(_, isExiting) {
this.unsubscribeAll(!isExiting);
},
willDestroy() {
... | Add setup hooks thanks @tchak | Add setup hooks thanks @tchak
The original idea here came from @tchak in his branch https://github.com/tchak/ember-apollo-client/tree/drop-mixins.
The only difference is that I default to willDestroy hook, not only for ember objects. This is to add support for Glimmer Components, in which they don't extend EmberObjec... | JavaScript | mit | bgentry/ember-apollo-client,bgentry/ember-apollo-client | |
b1f3cbd648ab6245ce13219f83173e2c2619fa5d | Specs/Scene/PrimitivePipelineSpec.js | Specs/Scene/PrimitivePipelineSpec.js | /*global defineSuite*/
defineSuite([
'Scene/PrimitivePipeline',
'Core/BoundingSphere',
'Core/BoxGeometry',
'Core/Cartesian3',
'Core/ComponentDatatype',
'Core/Geometry',
'Core/GeometryAttribute',
'Core/GeometryAttributes',
'Core/PrimitiveTy... | Add specs for PrimitivePipline geometry packing. | Add specs for PrimitivePipline geometry packing.
| JavaScript | apache-2.0 | omh1280/cesium,aelatgt/cesium,kiselev-dv/cesium,kiselev-dv/cesium,jason-crow/cesium,emackey/cesium,hodbauer/cesium,soceur/cesium,AnimatedRNG/cesium,denverpierce/cesium,AnimatedRNG/cesium,emackey/cesium,CesiumGS/cesium,likangning93/cesium,wallw-bits/cesium,AnalyticalGraphicsInc/cesium,geoscan/cesium,denverpierce/cesium,... | |
599b32f2b2c0c29337a053a6b6a28d61f92c1241 | karma.conf.js | karma.conf.js | module.exports = function (config) {
config.set({
frameworks: ['mocha'],
exclude: ['build/test/external.spec.js'],
files: [
'vendor/rsvp.js',
'vendor/unexpected-magicpen.min.js',
'build/test/promisePolyfill.js',
'unexpected.js',
'build/test/common.js',
'build/test/**/... | module.exports = function (config) {
config.set({
frameworks: ['mocha'],
exclude: ['build/test/external.spec.js'],
files: [
'vendor/rsvp.js',
'vendor/unexpected-magicpen.min.js',
'build/test/promisePolyfill.js',
'unexpected.js',
'build/test/common.js',
'build/test/**/... | Set browserStack timeout in an attempt to fix failing CI builds | Set browserStack timeout in an attempt to fix failing CI builds
| JavaScript | mit | unexpectedjs/unexpected |
4f76060e328e0ef864bde3a138bce7c3135d60a2 | lib/moment.js | lib/moment.js | moment.locale('fr', {
months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
weekda... | Add config to display date in french | Add config to display date in french
| JavaScript | mit | dexterneo/mangatek,dexterneo/mangatek,dexterneo/mangas,dexterneo/mangas | |
a3519ec3e332e9825645cf02e614c724c30c8a46 | src/dsp/DiscontinuityDetector.js | src/dsp/DiscontinuityDetector.js | /**
* @depends ../core/AudioletNode.js
*/
var DiscontinuityDetector = new Class({
Extends: PassThroughNode,
initialize: function(audiolet, threshold, callback) {
PassThroughNode.prototype.initialize.apply(this, [audiolet, 1, 1]);
this.linkNumberOfOutputChannels(0, 0);
this.threshold ... | Add discontinuity detector - a debugging tool for my crappy dsp | Add discontinuity detector - a debugging tool for my crappy dsp
| JavaScript | apache-2.0 | kn0ll/Audiolet,mcanthony/Audiolet,kn0ll/Audiolet,oampo/Audiolet,Kosar79/Audiolet,oampo/Audiolet,Kosar79/Audiolet,mcanthony/Audiolet,Kosar79/Audiolet,bobby-brennan/Audiolet,bobby-brennan/Audiolet | |
dc76f34b8688ecaab77e43d3c74521c640f70971 | support/find_urls.js | support/find_urls.js | // Find urls within selected domain in posts
//
'use strict';
const _ = require('lodash');
const argparse = require('argparse');
const Promise = require('bluebird');
const mongoose = require('mongoose');
const pump = require('pump');
const stream = require('stream');
const URL = require('url');
... | Add script to dump links from a particular domain | Add script to dump links from a particular domain
| JavaScript | mit | rcdesign/rcd-nodeca,rcdesign/rcd-nodeca | |
bb1a00d28bb36c0919968bb1ee02510dccd3caf0 | test/virtual-loopback-test.js | test/virtual-loopback-test.js | var midi = require("../build/default/midi.node");
var output = new midi.output();
var input = new midi.input();
output.openVirtualPort("node-midi Virtual Output");
input.on('message', function(deltaTime, message) {
console.log('m:' + message + ' d:' + deltaTime);
output.sendMessage([
message[0],
message[1... | Add a test that uses a virtual input and virtual output to make a loopback. | Add a test that uses a virtual input and virtual output to make a loopback.
| JavaScript | mit | Cycling74/node-midi,drewish/node-midi,Cycling74/node-midi,brandly/node-midi,brandly/node-midi,szymonkaliski/node-midi,drewish/node-midi,Cycling74/node-midi,Cycling74/node-midi,drewish/node-midi,brandly/node-midi,justinlatimer/node-midi,brandly/node-midi,julianduque/node-midi,drewish/node-midi,julianduque/node-midi,Cycl... | |
a6f899f06258ca0b01eb33d965b10cfcde74a92a | test/unit/traderTickerTest.js | test/unit/traderTickerTest.js | 'use strict';
var assert = require('chai').assert;
var hock = require('hock');
var uuid = require('node-uuid').v4;
var Trader = require('../../lib/trader.js');
var PostgresqlInterface = require('../../lib/protocol/db/postgresql_interface.js');
var db = 'psql://lamassu:lamassu@localhost/lamassu-test';
var psqlInterfac... | Add a unit test for ticker | Add a unit test for ticker
| JavaScript | unlicense | lamassu/lamassu-server,joshmh/lamassu-server,naconner/lamassu-server,naconner/lamassu-server,joshmh/lamassu-server,joshmh/lamassu-server,naconner/lamassu-server,joshmh/lamassu-server,lamassu/lamassu-server,evan82/lamassu-server,lamassu/lamassu-server | |
ae753386502263230e7616e9436a41dd43c07e21 | direct-demo/direct-demo.js | direct-demo/direct-demo.js | /**
* Copyright (C) 2009-2013 Akiban Technologies, Inc.
*
* This program 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) any later version.
... | Add a small demo file | Add a small demo file | JavaScript | agpl-3.0 | ngaut/sql-layer,jaytaylor/sql-layer,qiuyesuifeng/sql-layer,relateiq/sql-layer,jaytaylor/sql-layer,relateiq/sql-layer,relateiq/sql-layer,shunwang/sql-layer-1,jaytaylor/sql-layer,shunwang/sql-layer-1,wfxiang08/sql-layer-1,qiuyesuifeng/sql-layer,ngaut/sql-layer,shunwang/sql-layer-1,wfxiang08/sql-layer-1,relateiq/sql-layer... | |
17a2a18e5c7cf0b52059ef70a28dccfd66de6c1b | packages/activemodel-adapter/tests/integration/active-model-adapter-serializer-test.js | packages/activemodel-adapter/tests/integration/active-model-adapter-serializer-test.js | var env, store, adapter, User;
var originalAjax;
module("integration/active_model_adapter_serializer - AMS Adapter and Serializer", {
setup: function() {
originalAjax = Ember.$.ajax;
User = DS.Model.extend({
firstName: DS.attr()
});
env = setupStore({
user: User,
adapter: DS.Activ... | Test that active model adapter passes errors to serializer | Test that active model adapter passes errors to serializer
Thanks to @pangratz for putting this test together. Currently we only have tests
for the adapter and serializer correctly behaving in isolation.
| JavaScript | mit | HeroicEric/data,simaob/data,PrecisionNutrition/data,yaymukund/data,minasmart/data,danmcclain/data,splattne/data,yaymukund/data,tonywok/data,H1D/data,offirgolan/data,Eric-Guo/data,duggiefresh/data,intuitivepixel/data,gabriel-letarte/data,webPapaya/data,dustinfarris/data,greyhwndz/data,fsmanuel/data,kappiah/data,dustinfa... | |
dbe09fc00bb05ada08a0497e7242199e0935f464 | solutions/uri/1006/1006.js | solutions/uri/1006/1006.js | const input = require('fs').readFileSync('/dev/stdin', 'utf8')
const [a, b, c] = input
.trim()
.split('\n')
.map(x => parseFloat(x))
console.log(`MEDIA = ${((a * 2.0 + b * 3.0 + c * 5.0) / 10.0).toFixed(1)}`)
| Solve Average 2 in javascript | Solve Average 2 in javascript
| JavaScript | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
352ab0a798ed1529f30563cfec997b24569a81a9 | src/framework/framework_pack.js | src/framework/framework_pack.js | pc.extend(pc, function () {
var Pack = function (data) {
this.hierarchy = data.hierarchy;
this.settings = data.settings;
};
Pack.prototype = {
};
return {
Pack: Pack,
/**
* @function
* @name pc.loadPack
* @description Load ... | pc.extend(pc, function () {
var Pack = function (data) {
this.hierarchy = data.hierarchy;
this.settings = data.settings;
};
return {
Pack: Pack
};
}()); | Remove pc.loadPack from the docs since the function doesn't actually exist - it's commented out in the sourcebase. | Remove pc.loadPack from the docs since the function doesn't actually exist - it's commented out in the sourcebase.
| JavaScript | mit | SuperStarPL/engine,nizihabi/engine,MicroWorldwide/PlayCanvas,RainsSoft/engine,horryq/engine-1,shinate/engine,guycalledfrank/engine,aidinabedi/playcanvas-engine,horryq/engine-1,sanyaade-teachings/engine,sanyaade-teachings/engine,sereepap2029/playcanvas,H1Gdev/engine,guycalledfrank/engine,playcanvas/engine,nizihabi/engin... |
3dc57d08a8944ebc3b4a60622118e10ceaeca116 | lib/bramqp.js | lib/bramqp.js | var specification = require('./specification');
var ConnectionHandle = require('./connectionHandle');
exports.initialize = function(socket, spec, callback) {
socket.on('error', callback);
socket.on('connect', function() {
var handle = new ConnectionHandle(socket, spec);
handle.once('init', function() {
callb... | var specification = require('./specification');
var ConnectionHandle = require('./connectionHandle');
exports.initialize = function(socket, spec, callback) {
socket.once('connect', function() {
var handle = new ConnectionHandle(socket, spec);
handle.once('init', function() {
callback(null, handle);
});
});... | Fix initialize running callback multiple times | Fix initialize running callback multiple times
| JavaScript | mit | bakkerthehacker/bramqp,sega-yarkin/bramqp |
40d3b9d9bd8657769d9ea162dc0a41b4322f4af2 | lib/withdrawal_payments_queue.js | lib/withdrawal_payments_queue.js | var gateway = require('./gateway');
var EventEmitter = require("events").EventEmitter;
var util = require('util');
var queue = new EventEmitter;
function pollIncoming(fn) {
gateway.payments.listIncoming(function(err, payments) {
if (err) {
console.log('error:', err);
} else {
if (payments[0]) {... | Add withdrawal payments queue event emitter. | [FEATURE] Add withdrawal payments queue event emitter.
| JavaScript | isc | whotooktwarden/gatewayd,xdv/gatewayd,Parkjeahwan/awegeeks,crazyquark/gatewayd,zealord/gatewayd,xdv/gatewayd,crazyquark/gatewayd,Parkjeahwan/awegeeks,zealord/gatewayd,whotooktwarden/gatewayd | |
a7642fe014cf295e43d65435879b96789c6509dd | cli/main.js | cli/main.js | #!/usr/bin/env node
'use strict'
require('debug').enable('UCompiler:*')
const UCompiler = require('..')
const knownCommands = ['go', 'watch']
const parameters = process.argv.slice(2)
if (!parameters.length || knownCommands.indexOf(parameters[0]) === -1) {
console.log('Usage: ucompiler go|watch [path]')
process.ex... | Add a basic cli script | :new: Add a basic cli script
| JavaScript | mit | steelbrain/UCompiler | |
d5f135f198a4855564c381e375f4c3a8fad97a63 | Native/Test/Fabric/fixed-array-member-access.js | Native/Test/Fabric/fixed-array-member-access.js |
FABRIC = wrapFabricClient(createFabricClient());
node = FABRIC.DependencyGraph.createNode("foo");
node.addMember( "foo", "Integer[5]" );
node.setData( "foo", [6,4,7,2,1] );
print( node.getDataSize( "foo", 0 ) );
print( node.getDataElement( "foo", 0, 3 ) );
| FC = createFabricClient();
FABRIC = wrapFabricClient(FC);
node = FABRIC.DependencyGraph.createNode("foo");
node.addMember( "foo", "Integer[5]" );
node.setData( "foo", [6,4,7,2,1] );
print( node.getDataSize( "foo", 0 ) );
print( node.getDataElement( "foo", 0, 3 ) );
FABRIC.flush();
FC.dispose();
| Verify no memory leaks in test | Verify no memory leaks in test
| JavaScript | agpl-3.0 | chbfiv/fabric-engine-old,chbfiv/fabric-engine-old,chbfiv/fabric-engine-old,errordeveloper/fe-devel,errordeveloper/fe-devel,chbfiv/fabric-engine-old,chbfiv/fabric-engine-old,errordeveloper/fe-devel,chbfiv/fabric-engine-old,errordeveloper/fe-devel,errordeveloper/fe-devel,chbfiv/fabric-engine-old,errordeveloper/fe-devel,e... |
cbd87c2bff4d9c03d21853079734e7ed3efdd58a | app/mixins/tooltip-enabled.js | app/mixins/tooltip-enabled.js | import Ember from 'ember';
export default Ember.Mixin.create({
/**
* Attribute bindings for mixin's component element
* @property {array} attributeBindings
*/
attributeBindings: [ 'data-placement', 'title' ],
/**
* Enables the tooltip functionality, based on a passed-in `title` attrib... | Add TooltipEnabled mixin for title-based tooltips | Add TooltipEnabled mixin for title-based tooltips
| JavaScript | mit | juwara0/sl-ember-components,Suven/sl-ember-components,alxyuu/sl-ember-components,theoshu/sl-ember-components,azizpunjani/sl-ember-components,jonathandavidson/sl-ember-components,softlayer/sl-ember-components,Suven/sl-ember-components,notmessenger/sl-ember-components,alxyuu/sl-ember-components,notmessenger/sl-ember-comp... | |
4201b52166149eba80a446731517e7ef4532fdd7 | src/store/configureStore.dev.js | src/store/configureStore.dev.js | // This file merely configures the store for hot reloading.
// This boilerplate file is likely to be the same for each project that uses Redux.
// With Redux, the actual stores are in /reducers.
import {createStore, compose, applyMiddleware} from 'redux';
import reduxImmutableStateInvariant from 'redux-immutable-state... | // This file merely configures the store for hot reloading.
// This boilerplate file is likely to be the same for each project that uses Redux.
// With Redux, the actual stores are in /reducers.
import {createStore, compose, applyMiddleware} from 'redux';
import reduxImmutableStateInvariant from 'redux-immutable-state... | Upgrade for the Redux DevTools extension. | Upgrade for the Redux DevTools extension.
| JavaScript | mit | danpersa/remindmetolive-react,svitekpavel/chatbot-website,coryhouse/react-slingshot,flibertigibet/react-redux-starter-kit-custom,akataz/theSite,barbel840113/testapp,garusis/up-designer,aaronholmes/yelp-clone,barbel840113/testapp,luanatsainsburys/road-runner,danpersa/remindmetolive-react,svitekpavel/Conway-s-Game-of-Lif... |
c1a1cdd460d1057be1ea1ca322950640d2823944 | src/components/InfiniteList.react.js | src/components/InfiniteList.react.js | import React, { Component, PropTypes } from 'react';
class InfiniteList extends Component {
constructor(props, context) {
super(props, context);
}
render() {
return null;
}
}
export default InfiniteList;
| Add in an infinite list component. | Add in an infinite list component.
| JavaScript | mit | mareksuscak/surfing-gallery,mareksuscak/surfing-gallery | |
d8eb90edcf34e1c15cf862eece8fef831f10c105 | packages/core/src/contexts/listSpacing.js | packages/core/src/contexts/listSpacing.js | // #FIXME: use React navive context API when upgraded to v16+
import createReactContext from 'create-react-context';
const ListSpacingContext = createReactContext(true);
export default ListSpacingContext;
| Create a context for configuring vertical spacing of <List> | Create a context for configuring vertical spacing of <List>
| JavaScript | apache-2.0 | iCHEF/gypcrete,iCHEF/gypcrete | |
5135bd1a50894c11f09cc982f0f140222fe0d691 | backend/servers/mcapi/db/model/sample-common.js | backend/servers/mcapi/db/model/sample-common.js | module.exports = function(r) {
return {
removeUnusedSamples
};
function* removeUnusedSamples(sampleIds) {
for (let i = 0; i < sampleIds.length; i++) {
let sampleId = sampleIds[i];
let p2s = yield r.table('process2sample').getAll(sampleId, {index: 'sample_id'});
... | Create a module for commonly needed sample functionality. | Create a module for commonly needed sample functionality.
| JavaScript | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | |
894ca9adcb73e6f799aa6e1ca4bb59ba3ea45166 | src/create-schedule.js | src/create-schedule.js | const fs = require('fs');
const PDFDocument = require('pdfkit');
var doc = new PDFDocument();
doc.pipe(fs.createWriteStream('templates/resources/pdf/schedule.pdf'));
doc
.moveTo(0,0)
.lineTo(100, 100)
.stroke();
doc.end();
| Create a skeletal pdf generation file | Create a skeletal pdf generation file
| JavaScript | mit | Balletboetiek/website,Balletboetiek/website,Balletboetiek/website | |
6dc3d5db2efcd632b0a46f86394408aefe868967 | test/pem_as_hmac_key_spec.js | test/pem_as_hmac_key_spec.js |
describe('pem-as-hmac-key', function ()
{
var token;
before(function ()
{
// generate HS256 token using public PEM string as key
var expires = new Date();
expires.setSeconds(expires.getSeconds() + 60);
token = new jsjws.JWT().generateJWTByKey({ alg: 'HS256' }, payload, exp... | Add test to check we can restrict alg when PEM is used | Add test to check we can restrict alg when PEM is used
| JavaScript | mit | davedoesdev/node-jsjws,davedoesdev/node-jsjws,davedoesdev/node-jsjws | |
058ec9922c74ee76837b0a91bf5e4b85a7ac07e2 | test/exception-bad-this.js | test/exception-bad-this.js | // Copyright (C) 2014 Domenic Denicola. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Array.prototype.includes should fail if used on a null or undefined this
---*/
assert.throws(TypeError, function () {
Array.prototype.includes.call(null, 'a');
});... | Add test for throwing on bad `this` | Add test for throwing on bad `this`
Fixes @caitp's review comment at https://codereview.chromium.org/771863002/diff/60001/test/mjsunit/harmony/array-includes-to-object.js.
| JavaScript | bsd-2-clause | tc39/Array.prototype.includes,tc39/Array.prototype.includes,tc39/Array.prototype.includes | |
4295d68d536a8f9597cae00f932170523e4b89c0 | static/script/devices/exit/openclosewindow.js | static/script/devices/exit/openclosewindow.js | /**
* @fileOverview Requirejs module for openclosewindow exit strategy.
* Uses a workaround to make the browser think the current window
* was opened by JavaScript, allowing window.close() to close it.
*
* @preserve Copyright (c) 2013 British Broadcasting Corporation
* (http://www.bbc.co.uk) and TAL Contrib... | Add a new exit strategy, calling window.open() before window.close(), as a workaround for LG devices that do not currently allow window.close() if the current window was not opened by a script. | Add a new exit strategy, calling window.open() before window.close(), as a workaround for LG devices that do not currently allow window.close() if the current window was not opened by a script.
| JavaScript | apache-2.0 | ZeboFranklin/tal,joeyjojo/tal,ZeboFranklin/tal,joeyjojo/tal,joeyjojo/tal,ZeboFranklin/tal,ZeboFranklin/tal,joeyjojo/tal,joeyjojo/tal,ZeboFranklin/tal | |
823b15e51314bf335a50d775d0e5399f489c5066 | examples/_mac-terminal-app/index.js | examples/_mac-terminal-app/index.js | #!/usr/bin/env node
//
// Can Terminal.app (Mac OS X) accept mouse events?
//
// * click needs "Option" pressing
//
console.log('Start');
process.stdin.setRawMode(true);
process.stdin.resume();
var onData = function onData(aInput) {
console.log(aInput, aInput.toString());
if (aInput.toString() === 'q') {
pr... | Add a sample of Terminail.app mouse events | Add a sample of Terminail.app mouse events
| JavaScript | mit | kjirou/nodejs-codes | |
bbfd9a2a613d55a16a7db5ef1e6b572137861cb4 | web/src/js/components/General/AuthUserComponent.js | web/src/js/components/General/AuthUserComponent.js | import React from 'react';
import FullScreenProgress from 'general/FullScreenProgress';
import { getCurrentUser } from '../../utils/cognito-auth';
import { goToLogin } from 'navigation/navigation';
class AuthUserComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
userId... | Add a wrapper component for the queryrenders that requiere the userId. Pass any extra variables to the wrapper instead. | Add a wrapper component for the queryrenders that requiere the userId. Pass any extra variables to the wrapper instead.
| JavaScript | mpl-2.0 | gladly-team/tab,gladly-team/tab,gladly-team/tab | |
8dcdaa48cf23a5fec53013b4af63a29fc4d786d2 | app/assets/javascripts/sencha_base/placeholder_fallback.js | app/assets/javascripts/sencha_base/placeholder_fallback.js | // Placeholder fallback for browsers that don't support it.
//
// Requirements:
// Modernizr
//
// Instructions:
// 1. Require sencha_base/placeholder_fallback after Modernizr and before any
// other on submit events are binded, so the placeholder attribute is reset and
// not posted as the field value.
//
// 2. Add 'p... | Add placeholder fallback for older browsers. | Add placeholder fallback for older browsers.
| JavaScript | mit | jvcanote/SenchaBase,hypertiny/SenchaBase,hypertiny/SenchaBase,jvcanote/SenchaBase,hypertiny/SenchaBase,jvcanote/SenchaBase | |
c86b7b6126ce716d8ff685c1dd105ed660054ac9 | client/components/lists/ManageSubscribersTable.js | client/components/lists/ManageSubscribersTable.js | import React, { PropTypes } from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import BSTyle from 'react-bootstrap-table/dist/react-bootstrap-table.min.css';
export default class ManageSubscribersTable extends React.Component {
constructor(props) {
super(props);
this.st... | import React, { PropTypes } from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import BSTyle from 'react-bootstrap-table/dist/react-bootstrap-table.min.css';
export default class ManageSubscribersTable extends React.Component {
constructor(props) {
super(props);
this.st... | Fix initial state of list subscribers table | Fix initial state of list subscribers table
| JavaScript | bsd-3-clause | zhakkarn/Mail-for-Good,zhakkarn/Mail-for-Good,karuppiah7890/Mail-for-Good,zhakkarn/Mail-for-Good,karuppiah7890/Mail-for-Good,karuppiah7890/Mail-for-Good |
86ab0e203fb62f1d3b1e13445966f72567f6cbd8 | bin/cliHelper.js | bin/cliHelper.js | var q = require('q');
var childProcess = require('child_process');
var CLI_PATH = 'node /Users/andresdom/dev/protractor/lib/cli.js ' +
'--elementExplorer true ' +
'--debuggerServerPort 6969';
var startProtractor = function() {
var deferred = q.defer();
console.log('Starting protractor with command: [%s]'... | Add helper to start protractor | Add helper to start protractor
| JavaScript | mit | andresdominguez/elementor,andresdominguez/elementor | |
5acf747c9025491ab5198dc80a5b0c13c2e568ac | projectSlug.js | projectSlug.js | var rest = require('./rest');
/**
* Fetches a project by project id, then fetches its project slug for use
* when working with tasks.
*
* @param {int} projectid - AC project id
* @param {Function} cb - function to be called once project slug has
* been fetched and calculated
... | Add module 2 work out project slug from project id | Add module 2 work out project slug from project id
| JavaScript | mit | mediasuitenz/node-activecollab | |
8f4d41cecdeb357cdc1ebb6ca2bc3a3a1661467b | BakinBaconApi.js | BakinBaconApi.js | 'use strict';
import React, {
AsyncStorage,
AlertIOS
} from 'react-native';
var SERVER_URL = 'https://ziiwfyoc40.execute-api.us-east-2.amazonaws.com/prod
var BACON_URL = SERVER_URL + '/bacon-bit';
export class BakinBaconApi
{
constructor() {
}
postBaconBit(baconBit, onBaconing) {
try... | Add initial client API with bacon bit post | Add initial client API with bacon bit post
| JavaScript | mit | bakin-bacon/app | |
111688be26d8647ca3c2a42633007f9e298ff2d7 | website/static/js/fileRevisions.js | website/static/js/fileRevisions.js | 'use strict';
var ko = require('knockout');
require('knockout-punches');
var $ = require('jquery');
var $osf = require('osfHelpers');
var bootbox = require('bootbox');
var waterbutler = require('waterbutler');
ko.punches.enableAll();
var Revision = function(data) {
var self = this;
$.extend(self, data);
... | Add @jmcarp filerevision ko model from osfstorage | Add @jmcarp filerevision ko model from osfstorage
| JavaScript | apache-2.0 | felliott/osf.io,pattisdr/osf.io,lyndsysimon/osf.io,kushG/osf.io,lamdnhan/osf.io,kushG/osf.io,bdyetton/prettychart,DanielSBrown/osf.io,barbour-em/osf.io,caseyrollins/osf.io,GaryKriebel/osf.io,doublebits/osf.io,cslzchen/osf.io,abought/osf.io,cldershem/osf.io,amyshi188/osf.io,dplorimer/osf,RomanZWang/osf.io,zachjanicki/os... | |
eaa48afb8c904527c71a7953d037133b92e90015 | i18n/jquery.spectrum-fr.js | i18n/jquery.spectrum-fr.js | // Spectrum Colorpicker
// French (fr) localization
// https://github.com/bgrins/spectrum
(function ( $ ) {
var localization = $.spectrum.localization["fr"] = {
cancelText: "Annuler",
chooseText: "Valider",
clearText: "Effacer couleur sélectionnée",
noColorSelectedText: "Aucune cou... | // Spectrum Colorpicker
// French (fr) localization
// https://github.com/bgrins/spectrum
(function ( $ ) {
var localization = $.spectrum.localization["fr"] = {
cancelText: "Annuler",
chooseText: "Valider",
clearText: "Effacer couleur sélectionnée",
noColorSelectedText: "Aucune cou... | Fix capitalization in French language file. | Fix capitalization in French language file.
| JavaScript | mit | bgrins/spectrum,ajssd/spectrum,bgrins/spectrum,ginlime/spectrum,GerHobbelt/spectrum,safareli/spectrum,armanforghani/spectrum,kotmatpockuh/spectrum,shawinder/spectrum,GerHobbelt/spectrum,maurojs25/spectrum,kotmatpockuh/spectrum,liitii/spectrum,safareli/spectrum,maurojs25/spectrum,c9s/spectrum,armanforghani/spectrum,ginl... |
1c8dd493e796d7b576e4b1b09e8415306a6ab1b6 | src/lib/convertInventorySlotId.js | src/lib/convertInventorySlotId.js | module.exports = { fromNBT, toNBT };
const replace = {
"100": 8, "101": 7, "102": 6, "103": 5, "-106": 45
}
function fromNBT(slotId) {
let slot;
if (slotId >= 0 && slotId < 9) {
slot = 36 + slotId
}
return replace[String(slotId)] || slot;
}
function toNBT(slotId) {
let slot;
const invertReplace = O... | Add library for converting slot IDs from/to NBT format | Add library for converting slot IDs from/to NBT format
| JavaScript | mit | mhsjlw/flying-squid,demipixel/flying-squid,PrismarineJS/flying-squid | |
80ad17a9ce1223e19fd0be5cbfa5bd901a40ecb8 | 3/moment-setfulltime_utc.js | 3/moment-setfulltime_utc.js | var moment = require('moment');
console.log(moment("2014-12-11 21+0800").format());
console.log(moment("2014-W50-4 21+08:00").format());
console.log(moment("2014-12-11 21Z").format());
| Add the example to use moment to set a full time with utc. | Add the example to use moment to set a full time with utc.
| JavaScript | mit | nicebook/Node.js-Reference,nicebook/Node.js-Reference,nicebook/Node.js-Reference | |
e1fa882726ce18c9a9fb4092d8663d33b75ad96a | app/marked/Dedicated/script.js | app/marked/Dedicated/script.js | const input = document.getElementById("input-message");
const output = document.getElementById("output-message");
let worker;
function onMessageReceived(event) {
// progressively display worker's messages
console.log("OUTSIDE::received MessageEvent", event, "\ndata:", event.data);
output.value += (output.value ... | Add code to run on the main thread for Dedicated Worker example | feat(worker-example): Add code to run on the main thread for Dedicated Worker example
| JavaScript | mit | Velenir/workers-journey,Velenir/workers-journey | |
a9227099dc30d67315ba7a6075c0243fc9b87504 | blueprints/app/files/config/environment.js | blueprints/app/files/config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: '<%= modulePrefix %>',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.... | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: '<%= modulePrefix %>',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.... | Disable default lookup & active generation logging | Disable default lookup & active generation logging | JavaScript | mit | airportyh/ember-cli,aceofspades/ember-cli,tsing80/ember-cli,HeroicEric/ember-cli,dosco/ember-cli,slindberg/ember-cli,beatle/ember-cli,kanongil/ember-cli,scalus/ember-cli,pzuraq/ember-cli,trabus/ember-cli,samselikoff/ember-cli,alefteris/ember-cli,acorncom/ember-cli,searls/ember-cli,eoinkelly/ember-cli,michael-k/ember-cl... |
91564336b9e0dc02bf0025b90e15c34801b20fbe | frontend/src/components/ViewTrips/change-collaborator-type-button.js | frontend/src/components/ViewTrips/change-collaborator-type-button.js | import React from 'react';
import app from '../Firebase';
import Button from 'react-bootstrap/Button';
import authUtils from '../AuthUtils';
import * as DB from '../../constants/database.js';
const db = app.firestore();
/**
* {@link TripData} defined originally in `ViewTrips/trip.js`.
*/
/**
* Component that op... | Add button that moves the collaborator from one collaborator type (uid arr) to the other. | Add button that moves the collaborator from one collaborator type (uid arr) to the other.
| JavaScript | apache-2.0 | googleinterns/SLURP,googleinterns/SLURP,googleinterns/SLURP | |
99dd1d8abc174cb8682958ad1bd9138989c8a6c4 | examples/getting-started.js | examples/getting-started.js |
/* Outside of this project, change to:
*
* const SBOLDocument = require('sboljs')
*/
const SBOLDocument = require('../lib/SBOLDocument')
/* prefix string for example purposes
*/
const prefix = 'http://sbolstandard.org/example/'
/* create a new empty SBOL doc
*/
const doc = new SBOLDocument()
/* create compo... | Add getting started example to the repo | Add getting started example to the repo
| JavaScript | bsd-2-clause | ICO2S/sboljs,ICO2S/sboljs | |
76ae0e7258d2a952f2a187c2abd574dadd87ef21 | spec/store/markers-spec.js | spec/store/markers-spec.js | "use babel";
import { Range } from "atom";
import MarkerStore from "../../lib/store/markers";
describe("MarkerStore", () => {
let store;
beforeEach(() => {
store = new MarkerStore();
});
it("correctly initializes MarkerStore", () => {
expect(store.markers).toEqual(new Map());
});
it("clears mar... | Add tests for marker store | Add tests for marker store
| JavaScript | mit | nteract/hydrogen,nteract/hydrogen,xanecs/hydrogen,rgbkrk/hydrogen | |
9f88221838c29374d8845e5dd7c5895953ba37af | test/RowSpec.js | test/RowSpec.js | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Row from '../src/Row';
describe('Row', function () {
it('uses "div" by default', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Row />
);
assert.equal(React.findDOMNode(instance).nodeName, 'D... | Add missing tests for 'Row' | Add missing tests for 'Row'
| JavaScript | mit | dongtong/react-bootstrap,egauci/react-bootstrap,gianpaj/react-bootstrap,JimiHFord/react-bootstrap,HorizonXP/react-bootstrap,react-bootstrap/react-bootstrap,jakubsikora/react-bootstrap,Sipree/react-bootstrap,Terminux/react-bootstrap,chrishoage/react-bootstrap,xuorig/react-bootstrap,azmenak/react-bootstrap,mmarcant/react... | |
a07c46d7cc3861ac98c98bcf0a179f8285dc9182 | app/assets/javascripts/autosave.js | app/assets/javascripts/autosave.js | function autosaveSnippet () {
var $url = $('.edit_snippet')[0].action;
var $data = $('.edit_snippet').serialize();
$.ajax({
type: "PATCH",
url: $url,
data: $data,
dataType: "text"
}).done(function(response){
console.log(response);
$(".autosave").html(response);
});
}
function autosave... | function autosaveSnippet () {
var $url = $('.edit_snippet')[0].action;
var $data = $('.edit_snippet').serialize();
$.ajax({
type: "PATCH",
url: $url,
data: $data,
dataType: "text"
}).done(function(response){
console.log(response);
$(".autosave").html(response);
});
}
function autosave... | Add an extra blank line | Add an extra blank line
| JavaScript | mit | pearlshin/StoryVine,mxngyn/StoryVine,mxngyn/StoryVine,SputterPuttRedux/storyvine_clone,SputterPuttRedux/storyvine_clone,mxngyn/StoryVine,pearlshin/StoryVine,pearlshin/StoryVine,SputterPuttRedux/storyvine_clone |
daa98b6991b4997deb5202ae4e5dbc307d720226 | src/main/webapp/resources/marketplace/js/AlertManager.js | src/main/webapp/resources/marketplace/js/AlertManager.js | /**
* Copyright (c) 2015, CoNWeT Lab., Universidad Politécnica de Madrid
* Code licensed under BSD 3-Clause (https://github.com/conwetlab/WMarket/blob/master/LICENSE)
*/
WMarket.alerts = (function () {
"use strict";
var AlertManager = {
'info': function info(messageContent, extraClass) {
... | Add module JS to manage alerts | Add module JS to manage alerts
Signed-off-by: Aitor Magán García <a93a7d273b830b2e8a26461c1a80328a1d7ad27a@conwet.com>
| JavaScript | bsd-3-clause | Fiware/apps.WMarket,conwetlab/WMarket,conwetlab/WMarket,Fiware/apps.WMarket,Fiware/apps.WMarket,conwetlab/WMarket,Fiware/apps.WMarket,conwetlab/WMarket | |
f0fff4fe4f8e5fffa984b55d90c0a70d6e302fe2 | openstack_dashboard/static/app/core/images/details/details.module.spec.js | openstack_dashboard/static/app/core/images/details/details.module.spec.js | /**
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* ... | Add unit test for image detail | Add unit test for image detail
Change-Id: I8ae82e37be53b8b7642534e4f6772cb1e52ef3d6
| JavaScript | apache-2.0 | openstack/horizon,openstack/horizon,NeCTAR-RC/horizon,openstack/horizon,NeCTAR-RC/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,NeCTAR-RC/horizon,ChameleonCloud/horizon,openstack/horizon,ChameleonCloud/horizon,NeCTAR-RC/horizon | |
41667f629da4f51769d8849df9465ef9da75ea47 | gulpfile.babel.js | gulpfile.babel.js | const gulp = require('gulp'),
bs = require('browser-sync').create(),
nunjucks = require('gulp-nunjucks-render'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps');
function html() {
return gulp.src('src/index.njk')
.pipe(nunjucks({
path: 'src/'
}))
.pipe(g... | Rename Gulpfile to use Babel. | Rename Gulpfile to use Babel.
| JavaScript | mit | majtom2grndctrl/design-guide-scaffold,majtom2grndctrl/design-guide-scaffold |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.