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 |
|---|---|---|---|---|---|---|---|
779794493ea8f9947cdedbbcf20414c47445c4e7 | remove console.log in modulePrefsManager | util/ModulePrefsManager.js | util/ModulePrefsManager.js | import API from 'src/util/api';
import UI from 'src/util/ui';
import Renderer from 'src/util/typerenderer';
import getViewInfo from './getViewInfo';
// ModulePrefsManager is created in the init script
// Any module may have a gear in the settings allowing to change preferences
// the system will either store in Roc o... | JavaScript | 0.000001 | @@ -4105,55 +4105,8 @@
();%0A
- console.log('------------------', record);%0A
|
44a84f99c5367864049cc99966a8931294e523ab | Set storageRootURL correctly, for getStorageURL(). | src/models/AccountModel.js | src/models/AccountModel.js | /**
* AccountModel.js
*/
(function (spiderOakApp, window, undefined) {
"use strict";
var console = window.console || {};
console.log = console.log || function(){};
var Backbone = window.Backbone,
_ = window._,
$ = window.$;
// @TODO Arrange so that base_domain can vary by... | JavaScript | 0 | @@ -1743,28 +1743,46 @@
ss(login_url
+, locationResponse
) %7B%0A
-
@@ -1919,27 +1919,21 @@
var
-b32username
+splat
= login
@@ -1961,16 +1961,20 @@
+var
b32usern
@@ -1983,43 +1983,176 @@
e =
-b32username%5Bb32username.length - 2%5D
+splat%5Bsplat.length - 2%5D;%0A var st... |
613de950ee1ee3f290c3072fe7d76479bfb9c9ea | fix typo | src/ng/directive/ngInit.js | src/ng/directive/ngInit.js | 'use strict';
/**
* @ngdoc directive
* @name ng.directive:ngInit
* @restrict AC
*
* @description
* The `ngInit` directive allows you to evaluate an expression in the
* current scope.
*
* <div class="alert alert-error">
* The only appropriate use of `ngInit` for aliasing special properties of
* {@link api/ng... | JavaScript | 0.000001 | @@ -369,17 +369,16 @@
demo bel
-l
ow. Besi
|
3e88c224c8347f5b236998897cfa51f4667bbb8b | Make MittNRK bouncer method | routes/auth.js | routes/auth.js |
/**
* GET home page
*/
module.exports = function (app, options) {
"use strict";
var underscore = require('underscore');
var client = options.dntConnect;
var APP_URL = process.env.APP_URL;
var WWW_PORT = process.env.WWW_PORT || null;
var BASE_URL = APP_URL + (WWW_PORT !== null ? ':' + WWW_... | JavaScript | 0.000083 | @@ -1949,24 +1949,372 @@
%5D%0A );%0A%0A
+ var getLoginNrkBounce = function (req, res, next) %7B%0A relyingParty.authenticate('http://mitt.nrk.no/user.aspx', false, function (err, authUrl) %7B%0A if (err) %7B return next(err); %7D%0A if (!authUrl) %7B return next(new Error('Unable ... |
91505c90fe3e7ad757c0b5e228aa1149673fc52f | Fix #28 - Executable name being 'Electron' always under Windows (PR #389) | src/options/optionsMain.js | src/options/optionsMain.js | import log from 'loglevel';
import inferOs from './../infer/inferOs';
import normalizeUrl from './normalizeUrl';
import packageJson from './../../package.json';
import { ELECTRON_VERSION, PLACEHOLDER_APP_DIR } from './../constants';
import asyncConfig from './asyncConfig';
const { inferPlatform, inferArch } = inferOs... | JavaScript | 0 | @@ -564,24 +564,165 @@
tions.name,%0A
+ win32metadata: %7B%0A ProductName: inpOptions.name,%0A InternalName: inpOptions.name,%0A FileDescription: inpOptions.name,%0A %7D,%0A
targetUr
|
125fa30154fc6aa6f786c0a29923552c0abc80cd | make handler scripts debuggable | video5.js | video5.js | var VideoHandlers = {
handlers: [],
register: function() {
for (var idx in arguments) {
var url = chrome.extension.getURL('handlers/' + arguments[idx] + '.js');
chrome.extension.sendRequest({action: 'ajax',
args: {
type: 'GET',
url: url
}}, function(response) {
... | JavaScript | 0.000001 | @@ -294,57 +294,433 @@
%7D%7D,
- function(response) %7B%0A var handler = eval(
+%0A // If we just write the callback function, all handler scripts would be%0A // associated with one single URL. See%0A // http://blog.jbrantly.com/2010/04/creating-javascript-function-inside.html%0A (function(... |
4afcbf8802bb50ca517b8de88810bc72efc286f8 | Remove CSS | videos.js | videos.js | var iframe_config = 'frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen';
// ------------------------------------
// youtube 9:16
// ------------------------------------
module.exports.youtube = function (args, content) {
var id = args[0];
return '<div class="owl-media owl-video owl-youtube">... | JavaScript | 0.000001 | @@ -87,18 +87,115 @@
lscreen'
+,%0A embed_config = 'type=%22application/x-shockwave-flash%22 quality=%22high%22 allowfullscreen=%22true%22'
;%0A
-
%0A// ----
@@ -881,39 +881,8 @@
%22no%22
- style=%22border:solid 1px #CCC;%22
' +
@@ -1423,107 +1423,8 @@
bed
-height=%22452%22 width=%22544%22 quality=%22high%22... |
4b2c2f0855279b72f8fcea1bc8650b34c6cfdf2c | fix syntax and add cloudinary | server/api/screenshot/screenshotController.js | server/api/screenshot/screenshotController.js | var Screenshot = require('./screenshotModel');
var User = require('../user/userModel');
var takeScreenshot = require('../../screenshotCapture/script.js');
/**
* retrieveAll
* ======
* Returns all screenshots from all users
*
*/
exports.retrieveAll = function(req, res, next){
Screenshot.find({ access: 'public' ... | JavaScript | 0 | @@ -147,16 +147,56 @@
pt.js');
+%0Avar cloudinary = require('cloudinary');
%0A%0A/**%0A *
@@ -3929,16 +3929,17 @@
%7D)
+;
%0A /
|
d5036192808aa70711cbdee0eadc9d7d5cffc92e | fix windowslive button | admin/components/login.js | admin/components/login.js | import React from 'react'
import FontAwesome from 'react-fontawesome'
import {Paper} from 'material-ui'
import appStyles from '../App.scss'
import styles from './login.scss'
import cx from 'classnames'
import Logo from '../assets/logo_blue_2x.png'
const Login = (props) =>
<div className={appStyles.appContainer}>
... | JavaScript | 0.000001 | @@ -966,16 +966,20 @@
/windows
+live
%60%0A
|
66ba68cd9c88585d84d603088e0a73ebe41bb1d1 | disable alphabetical sort | rules/react.js | rules/react.js | 'use strict';
module.exports = {
rules: {
/* added rules */
// Enforce event handler naming conventions in JSX
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
// 'react/jsx-handler-names': [
// 'error',
// {
// eventHandlerPrefix: '... | JavaScript | 0.000273 | @@ -758,36 +758,35 @@
Alphabetically:
-fals
+tru
e,%0A reser
@@ -1058,20 +1058,19 @@
ically:
-fals
+tru
e,%0A
|
1319197a2365e64de871d631013c788139ffccf6 | Add publication for addMangaForUser | server/publications/mangasDataPublications.js | server/publications/mangasDataPublications.js | // Send back all mangas
Meteor.publish('allMangasCover', function() {
return MangasData.find({}, {
fields: {
"cover": 1
}
});
});
| JavaScript | 0 | @@ -63,20 +63,17 @@
ion() %7B%0A
-
+%09
return M
@@ -93,24 +93,18 @@
d(%7B%7D, %7B%0A
-
+%09%09
fields:
@@ -109,45 +109,227 @@
: %7B%0A
- %22cover%22: 1%0A %7D%0A
+%09%09%09%22cover%22: 1,%0A%09%09%09%22names.fr%22: 1%0A%09%09%7D%0A%09%7D);%0A%7D);%0A%0AMeteor.publish('allMangasD... |
573c116d1a9928600b8273987af58ec50d8f804f | Order by date on server side before finding uniques | server/src/controllers/HistoriesController.js | server/src/controllers/HistoriesController.js | const {
History,
Song
} = require('../models')
const _ = require('lodash')
module.exports = {
async index (req, res) {
try {
const userId = req.user.id
const histories = await History.findAll({
where: {
UserId: userId
},
include: [
{
model: ... | JavaScript | 0 | @@ -330,16 +330,76 @@
%7D%0A
+ %5D,%0A order: %5B%0A %5B'createdAt', 'DESC'%5D%0A
|
6a60a2a90685bef5c21b683078c1bfc4443a72d1 | make observables exposed as vm.$observables (#25) | vue-rx.js | vue-rx.js | (function () {
function VueRx (Vue, Rx) {
var warn = Vue.util.warn || function () {}
function hasRx (vm) {
if (!Rx) {
warn(
'$watchAsObservable requires Rx to be present globally or ' +
'be passed to Vue.use() as the second argument.',
vm
)
return f... | JavaScript | 0 | @@ -750,28 +750,26 @@
vm.$
-subscription
+observable
s = %7B%7D%0A
@@ -918,28 +918,26 @@
b = vm.$
-subscription
+observable
s%5Bkey%5D =
|
b6f0683f54002017e5cf09eccc256ac7221ba854 | Change interpolation | ring.js | ring.js | var _ = require('lodash')
var inherits = require('inherits')
var color = require('d3-color')
var notch = require('./geo/notch.js')
var cap = require('./geo/cap.js')
var Entity = require('crtrdg-entity')
module.exports = Ring;
inherits(Ring, Entity);
function Ring(opts){
var fill = opts.fill
var offset = opts.off... | JavaScript | 0.000001 | @@ -2029,10 +2029,10 @@
late
-Rg
+La
b('r
|
75800d033294c5dd8b2df4bc2029fe32c0a27372 | Save log | save.js | save.js | !function (async, fs, linq, mkdirp, path) {
'use strict';
module.exports = function (inputs, outputs, dirpath, callback) {
var options = this.options,
isDir = /\/$/.test(dirpath);
if (!isDir && linq(outputs).count().run() > 1) {
return callback(new Error('Cannot save mu... | JavaScript | 0.000001 | @@ -137,16 +137,41 @@
var
+that = this,%0A
options
@@ -174,18 +174,18 @@
ons = th
-is
+at
.options
@@ -435,23 +435,90 @@
-linq(inputs.all
+dirpath = path.resolve(options.output, dirpath);%0A%0A linq(inputs.newOrChanged
).as
@@ -611,32 +611,16 @@
resolve(
-options.output,
dirpath,
... |
c78388448ef9e0cee629161a48a910da6e841270 | clean up several things | seed.js | seed.js | // Load Environment
const dotenv = require('dotenv');
dotenv.load();
process.env.MONGO_DATABASE = 'mongodb://localhost:27017/connect';
process.env.OUTPUT_LOG = './log.txt';
// create a password
const crypto = require('crypto');
const app = require('express')();
// stub out the schema
require('./app/helpers/database')... | JavaScript | 0.000053 | @@ -171,29 +171,8 @@
';%0A%0A
-// create a password%0A
cons
@@ -238,32 +238,8 @@
)();
-%0A%0A// stub out the schema
%0Areq
@@ -278,33 +278,8 @@
pp);
-%0A%0A// create an admin user
%0Acon
@@ -732,19 +732,16 @@
min();%0A
- //
let gam
@@ -834,19 +834,16 @@
min,%0A
- //
game,%0A
@@ -1572,18 +1572,8 @@
e: ... |
385172a005b941a8e9a5749de0cbe76afa9c7d81 | change color of polygon without data | population-map-iran/main.js | population-map-iran/main.js | //# require=d3,topojson
var width = root.clientWidth;
var height = root.clientHeight;
var svg = d3.select(root).append('svg')
.attr('width', width)
.attr('height', height)
.attr('style', 'display: block; margin: auto;');
var projection = d3.geo.mercator()
.center([53, 35])
.scale(1200)
.translate([width /... | JavaScript | 0.000002 | @@ -1512,48 +1512,8 @@
e %7B%0A
- console.dir(d.properties.name);%0A
@@ -1525,22 +1525,22 @@
eturn '#
-ffffff
+cccccc
';%0A
|
a7954f21b67e5d23731505ade95846b261e7a9cd | 修改客户端错误信息提示等级,将error下降为warn | serv.js | serv.js | var notice = require('./lib/notice.js'),
rl = require('./lib/apps/readcmd.js'),
_conf = require('./conf.js'),
devServ = require('./lib/apps/devserv.js'),
downServ = require('./lib/apps/downserv.js'),
infoServ = require('./lib/apps/infoserv.js'),
viewServ = require('./lib/apps/viewserv.js'),
spliceServ = require... | JavaScript | 0 | @@ -429,34 +429,36 @@
%0A%09%09%09%09notice.
-error('SYS
+warn('Client
', name+'('+
|
ea5d1100c6ccef0055b95ee14ceac696ca9ac14e | Swap single quotes for double | productsDataToProductsFiles.js | productsDataToProductsFiles.js | const fs = require('fs');
const products = require('./_data/products.json');
const productFilesDir = './products/';
products.forEach(product => {
const fileContent = `---
layout: product
published: ${product.currentListing ? true : false}
permalink: /${product.slug}/
productID: ${product.id}
id: ${product.id}
name:... | JavaScript | 0 | @@ -25,24 +25,20 @@
;%0Aconst
-products
+data
= requi
@@ -71,56 +71,180 @@
);%0A%0A
-const productFilesDir = './products/';%0A%0Aproducts
+function jsArray2Yaml(arr) %7B%0A return arr.length %3E 0%0A ? arr%0A .map(%0A item =%3E %60%0A - %22$%7Bitem%7D%22%60%0A )%0A .join('')%0A ... |
21d057c287bec78e2cc2bdbcb70226ab83bf6e2d | Add TODO to change path. | proj/src/main/webapp/script.js | proj/src/main/webapp/script.js | /*
Authentication
*/
// Elements of login container
const fname = document.getElementById("fname")
const txtEmail = document.getElementById("email");
const txtPassword = document.getElementById("pass");
const tagStr = document.getElementById("tags");
const btnLogin = document.getElementById("btnLogin");
const btn... | JavaScript | 0 | @@ -3555,112 +3555,104 @@
u8'%0A
-const PATH = '/chat/test/'+CHAT_ID+'/messages'; // can make this more detailed (for example add user ID)
+// TODO: not hardcode, use path to an actual tag%0Aconst PATH = '/chat/test/'+CHAT_ID+'/messages';
%0Acon
|
b24b4f0e37016754c0ce26b509d20eb7bedd1705 | Use messages header field to get tenant id for zetta usage data, strip non-usefull headers out | worker.js | worker.js | #! /usr/bin/env node
var program = require('commander');
var ReceiveSqs = require('./lib/recv-sqs');
program
.version('0.0.0')
.option('-r, --region [region]', 'AWS Region', 'us-east-1')
.option('-l, --limit [number]', 'Limit the number of message processed to a fixed number')
.parse(process.argv);
var maps ... | JavaScript | 0 | @@ -474,31 +474,101 @@
-msg.tenant = msg.
+if (msg.hasOwnProperty('headers')) %7B%0A msg.tenant = msg.headers%5B'x-apigee-iot-
tenant
+-id'%5D
%7C%7C
@@ -574,24 +574,251 @@
'default';%0A
+ %5B'connection', 'sec-websocket-version', 'upgrade', 'sec-websocket-key', 'authorization', 'host'%5D.forEach(... |
4ced96dffa570d4efd03771112e711e4f803cb4a | Handle quote sets and escape periods. | docs/source/_static/scripts.js | docs/source/_static/scripts.js | function cleanUpText(codebox){
/// Not currently used
/// Strips a whole IPython session of input and output prompts
//escape quotation marks
codebox = codebox.replace(/"/g, "\'");
// newlines
codebox = codebox.replace(/[\r\n|\r|\n]$/g, ""); // remove at end
codebox = codebox.replace(/[\r\n... | JavaScript | 0 | @@ -602,21 +602,23 @@
ce(/
+(
%5B%22
-%7C
'%5D
+)
/g, %22%5C%5C
-'
+%5C1
%22);%0A
@@ -973,16 +973,17 @@
(/%5E(%5Cs)*
+%5C
.+:/))%7B%0A
@@ -1040,16 +1040,17 @@
(/%5E(%5Cs)*
+%5C
.+: /,%22%22
|
f52802ee28b3434b2608b4b43a30f841ea54cb89 | Test to see if filter gets blur | test.js | test.js | import postcss from 'postcss';
import test from 'ava';
import plugin from './';
function run(t, input, output) {
return postcss([ plugin ]).process(input)
.then( result => {
t.is(result.css, output);
t.is(result.warnings().length, 0);
});
}
test('adds blur to css', t =>... | JavaScript | 0.000001 | @@ -535,16 +535,152 @@
(5px); %7D');%0A%7D);%0A
+%0Atest('adds blur to filter', t =%3E %7B%0A run(t, 'a %7B filter: contrast(1.5) %7D',%0A 'a %7B filter: blur(5px) contrast(1.5); %7D');%0A%7D);%0A
|
dda90a965e115c145d20a98b580ebeac0d6f61b0 | replace arrow functions with traditional function expressions | test.js | test.js | import postcss from 'postcss';
import test from 'ava';
import plugin from './';
function run( t, input, output, opts = { } ) {
return postcss( [ plugin( opts ) ] ).process( input )
.then( result = > {
t.deepEqual( result.css, output );
t.deepEqual( result.warnings( ).lengt... | JavaScript | 0.00021 | @@ -211,16 +211,27 @@
hen(
+ function (
result
= %3E
@@ -226,19 +226,17 @@
result
-= %3E
+)
%7B%0A
@@ -347,18 +347,14 @@
);%0A
-
%7D%0A
+
%0A//
@@ -416,13 +416,22 @@
)',
-t = %3E
+function ( t )
%7B%0A
@@ -475,24 +475,20 @@
*/', %7B %7D );%0A
-
%7D );
|
2808d2f0a93d94a97a3aaa22172607a6684434c3 | fix for loop mistake | test.js | test.js | var unirest = require('unirest');
var moment = require('moment');
var sections = [];
var classes = {};
var innerFlag = 0;
var please = "11";
/*
{
className: [
{
section: CMSC132-0101
times: [
{
days: MWF,
start: fdsa,
... | JavaScript | 0.000034 | @@ -2080,17 +2080,16 @@
ring();%0A
-%0A
@@ -2144,12 +2144,8 @@
ngth
- - 1
; i+
@@ -2489,37 +2489,8 @@
%7D%0A
- %0A
@@ -3579,24 +3579,50 @@
classes1) %7B%0A
+ console.log(classes1)%0A
var good
@@ -5354,32 +5354,34 @@
%7D%0A
+//
console.log(good
@@... |
9f6d78e0bba17c54c38fc78db882c593d32806cf | fix cdn issue | test.js | test.js | import test from 'ava';
import fn from './';
test('full', async t => {
const ipp = await fn('iama_rishi');
t.is(ipp, 'https://scontent-lga3-1.cdninstagram.com/19440301fb5b335423628339609b6896/5B395F35/t51.2885-19/s1080x1080/28766707_802539189946973_8583808796109832192_n.jpg');
});
test('medium', async t => {
cons... | JavaScript | 0.000005 | @@ -377,39 +377,40 @@
s://
-instagram.fpat1-1.fna.fbcdn.net
+scontent-iad3-1.cdninstagram.com
/vp/
@@ -624,39 +624,40 @@
s://
-instagram.fpat1-1.fna.fbcdn.net
+scontent-iad3-1.cdninstagram.com
/vp/
@@ -903,39 +903,40 @@
s://
-instagram.fpat1-1.fna.fbcdn.net
+scontent-iad3-1.cdninstagram.com
/vp/
@@ -1178,39 +1178... |
6bc3b527847c14ca110e588395560409ca6db52f | Fix test by wrapping in setTimeout | test.js | test.js | import test from 'ava';
import fs from 'fs';
import del from 'del';
import pify from 'pify';
import readCache from './';
const readFile = pify(fs.readFile);
const writeFile = pify(fs.writeFile);
test.serial('async', t => {
readCache.clear();
t.is(readCache.get('fixture'), null);
return writeFile('fixture', 'data'... | JavaScript | 0.000005 | @@ -1391,17 +1391,15 @@
%09set
-Immediate
+Timeout
(fun
@@ -1949,16 +1949,22 @@
e();%0A%09%09%7D
+, 1000
);%0A%09%7D);%0A
|
94cc11706b5e37861149e7bd57f88f49866e8a22 | update ButtonRadioGroup | src/ButtonRadioGroup/ButtonRadioGroup.js | src/ButtonRadioGroup/ButtonRadioGroup.js | /**
* @file ButtonRadioGroup component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import List from '../List';
import Tip from '../Tip';
import Theme from '../Theme';
import Util from '../_ve... | JavaScript | 0 | @@ -5573,234 +5573,8 @@
c,%0A%0A
- /**%0A * Callback function fired when the ButtonRadio select.%0A */%0A onItemSelect: PropTypes.func,%0A%0A /**%0A * Callback function fired when the ButtonRadio deselect.%0A */%0A onItemDeselect: PropTypes.func,%0A%0A
|
9b962959ddefe92c87d7b3efa7c8244984023bfb | Update tests | test.js | test.js | 'use strict'
var test = require('tape')
var unified = require('unified')
var remark = require('remark')
var frontmatter = require('remark-frontmatter')
var html = require('remark-html')
var yamlConfig = require('.')
test('remark-yaml-config', function (t) {
t.equal(
remark()
.use(frontmatter)
.use(y... | JavaScript | 0.000001 | @@ -710,451 +710,51 @@
ync(
-%0A %5B'---', 'remark:', ' commonmark: true', '---', '', '1) Foo', ''%5D.join(%0A '%5Cn'%0A )%0A )%0A .toString(),%0A %5B'---', 'remark:', ' commonmark: true', '---', '', '1. Foo', ''%5D.join(%0A '%5Cn'%0A ),%0A 'should set parse options'%... |
9a57055311d0f7d32eb6ada5f31fb5eefb674c1c | Fix test | test.js | test.js | var Take = require('./index');
var test = require('tape');
var assert = require('assert');
test('passes through elements while less than the desired maximum', function (t) {
var take = Take(10),
out = [];
take.on('data', function (d) {
out.push(d);
});
take.on('end', function () {
... | JavaScript | 0.000004 | @@ -1318,24 +1318,63 @@
= Take(1);%0A
+ assert.equal(take.write(1), true);%0A
take.wri
@@ -1401,17 +1401,40 @@
urn
-tru
+fals
e but
+we have to workaround
http
|
4a6b51300776dac29128190ab275646ee365af2c | Refactor tests a little | test.js | test.js | 'use strict';
var assert = require('assert');
var gutil = require('gulp-util');
var sass = require('./index');
var EOL = require('os').EOL;
it('should compile Sass with sourcemaps', function (cb) {
this.timeout(20000);
var stream = sass({
sourcemap: true,
quiet: true
});
stream.on('data', function (file) {
... | JavaScript | 0 | @@ -132,16 +132,231 @@
s').EOL;
+%0Avar testFile = new gutil.File(%7B%0A%09cwd: __dirname,%0A%09base: __dirname + '/fixture',%0A%09path: __dirname + '/fixture/nested/fixture.scss',%0A%09contents: new Buffer('$blue:#3bbfce;.content-navigation%7Bborder-color:$blue;%7D')%0A%7D);
%0A%0Ait('sh
@@ -864,10 +864,44 @@
emap
... |
d57fc3aa687e89879030889b96a9e910af25b41b | Add expect.noReject | test.js | test.js | export const expect = actual => ({
toEqual(expected) {
expected = JSON.stringify(expected)
if (actual && typeof actual != 'string' && actual[Symbol.iterator]) {
actual = [...actual]
}
actual = JSON.stringify(actual)
if (expected != actual) {
throw Error(`expected ${expected}; got ${act... | JavaScript | 0.000008 | @@ -1,12 +1,355 @@
+function log(message, isError) %7B%0A if (isError) %7B%0A console.error(message)%0A %7D else %7B%0A console.log(message)%0A %7D%0A const p = document.createElement('p')%0A p.textContent = message%0A if (isError) %7B%0A p.style.color = 'red'%0A %7D%0A document.body.appendChild(p)%0A%... |
fb9cc0a0c6ae67610757985015d39eac57be5d52 | Fix test hanging when JSON format is wrong, closes #133 | test.js | test.js | var fs = require('fs')
var rawData = fs.read('emojis.json').toString()
var data = JSON.parse(fs.read('emojis.json'))
var keys = rawData.match(/"(.+)":/g).map(function(key){return key.replace(/"|:/g,'')})
var buildFailed = false
var passed = function() { console.log("\x1B[92mPASSED\x1B[0m... | JavaScript | 0.000001 | @@ -81,61 +81,8 @@
g()%0A
-var data = JSON.parse(fs.read('emojis.json'))%0A
var
@@ -361,16 +361,515 @@
= true%0A%7D
+%0Avar reveal = function() %7B%0A if(buildFailed) %7B%0A console.log(%22:cry: %5Cx1B%5B91mNo good, something failed.%5Cx1B%5B0m :boom:%5Cn%22)%0A phantom.exit(buildFailed)%0A %7D else ... |
81f8c3ef53bdb9f9d5c2cba1b8b2e3d1392fa4c9 | make prep messages look nicer | test.js | test.js | /**
* DiscordForge - a plugin system for Discord.
* Copyright (C) 2017 DiscordForge Development
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your ... | JavaScript | 0 | @@ -1712,16 +1712,62 @@
(done) %7B
+ // needs to be function() to use this.timeout
%0A%09%09this.
@@ -1799,16 +1799,20 @@
.log('%5Cn
+
This tes
@@ -1966,64 +1966,223 @@
it.
-%5Cn%5BTimeout: 1 minute%5D%5Cn');%0A%09%09let setup = fork('setup.js'
+');%0A%09%09console.log('%5Cn %5BTimeout Interval: 1 minute%5... |
645881b882413234c398da80828b13a1e465c5a6 | Test Migrated to ES6 | test.js | test.js | /*!
* pretty <https://github.com/jonschlinkert/pretty>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
require('mocha');
var assert = require('assert');
var pretty = require('./');
describe('pretty', function() {
it('should format HTML.', function() {
... | JavaScript | 0.000001 | @@ -176,19 +176,21 @@
ocha');%0A
-var
+const
assert
@@ -210,19 +210,21 @@
sert');%0A
-var
+const
pretty
@@ -261,26 +261,21 @@
retty',
-function()
+() =%3E
%7B%0A it(
@@ -297,36 +297,33 @@
HTML.',
-function()
+() =%3E
%7B%0A
-var
+const
fixture
@@ -465,27 +465,29 @@
html%3E';%0A
-var
+const
... |
ca34f4558f371459fa2abfb594b5959b8554b15d | add tests for match (#8) | test.js | test.js | 'use strict';
var assert = require('assert');
var semverRegex = require('./');
var fixture = [
'0.0.0',
'0.10.0',
'v1.0.0',
'0.0.0-foo',
'1.2.3-4',
'2.7.2+asdf',
'1.2.3-a.b.c.10.d.5',
'2.7.2-foo+bar',
'1.2.3-alpha.10.beta.0',
'1.2.3-alpha.10.beta.0+build.unicorn.rainbow',
'foo 0.0.0 bar 0.0.0'
];
it('shoul... | JavaScript | 0 | @@ -336,16 +336,24 @@
versions
+ on test
', funct
@@ -596,12 +596,391 @@
8.0'));%0A%7D);%0A
+%0Ait('should return semver on match', function () %7B%0A%09assert.deepEqual('0.0.0'.match(semverRegex()), %5B'0.0.0'%5D);%0A%09assert.deepEqual('foo 0.0.0 bar 0.1.1'.match(semverRegex()), %5B'0.0.0', '0.1.1'%5D);%0A%7D);%0A... |
4bba33e32d2f57ef4cbd7d74a1ebf34adfbf0520 | Clean up tests | test.js | test.js | 'use strict';
var http = require('http');
var assert = require('assert');
var requestStats = require('./index');
assert.stats = function (stats) {
assert(stats.ok);
assert(stats.time >= 9); // The reason we don't just do >= 10, is because setTimeout is not that precise
assert(stats.req.bytes > 0); // different ... | JavaScript | 0.000001 | @@ -115,21 +115,28 @@
%0Aassert.
+_
stats
+Common
= funct
@@ -153,135 +153,8 @@
) %7B%0A
- assert(stats.ok);%0A assert(stats.time %3E= 9); // The reason we don't just do %3E= 10, is because setTimeout is not that precise%0A
as
@@ -387,184 +387,765 @@
sert
-(stats.res.bytes %3E 0); // different headers will r... |
5a747f1f3084fb68c3650961502df0735c2a4dd9 | Use strict equality check in tests | test.js | test.js | /*!
* array-last <https://github.com/jonschlinkert/array-last>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
require('mocha');
var assert = require('assert');
var last = require('./');
describe('last', function () {
it('should throw an error if invalid ... | JavaScript | 0 | @@ -650,33 +650,39 @@
() %7B%0A assert.
-e
+strictE
qual(last(%5B'a',
@@ -725,17 +725,23 @@
assert.
-e
+strictE
qual(las
|
e19e7abc2478977519e901df4e9137bcc5e38d87 | Improve do not modify non-accented strings test | test.js | test.js | var tape = require('tape');
var removeAccents = require('./');
tape('remove accents from string', function(t) {
var input = 'ÀÁÂÃÄÅẤẮÆẦẰÇḈÈÉÊËẾḖỀḔÌÍÎÏḮÐÑÒÓÔÕÖØỐṌṒÙÚÛÜÝßàáâãäåấắæầằçḉèéêëếḗềḕìíîïḯñòóôõöøốṍṓùúûüýÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģǴǵĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķḰḱĹĺĻļĽľĿŀŁłḾḿŃńŅņŇňʼnŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨ... | JavaScript | 0.000006 | @@ -903,226 +903,102 @@
= 'A
-AAAAAAECEEEEIIIIDNOOOOOOUUUUYsaaaaaaaeceeeeiiiinoooooouuuuyyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIiIJijJjKkLlLlLlLlllNnNnNnnOoOoOoOEoeRrRrRrSsSsSsSsTtTtTtUuUuUuUuUuUuWwYyYZzZzZzsfOoUuAaIiOoUuUuUuUuUuAaAEaeOo
+BCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789.,:;~%60!... |
1f5f852ef4a8a15eac2ad3762b5c188615db1063 | Add vertical movement option | FirstPersonVRControls.js | FirstPersonVRControls.js | /**
* @author brianpeiris / http://brian.peiris.io/
*
* Based on code from THREE.FirstPersonControls
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
* @author paulirish / http://paulirish.com/
*/
THREE.FirstPersonVRControls = function ( camera, scene ) {
var ZAXIS = new TH... | JavaScript | 0.000005 | @@ -442,16 +442,49 @@
= true;%0A
+ this.verticalMovement = false;%0A
this.m
@@ -3323,32 +3323,57 @@
eed );%0A%0A if (
+ this.verticalMovement &&
this.moveUp ) t
@@ -3414,32 +3414,57 @@
peed );%0A if (
+ this.verticalMovement &&
this.moveDown )
|
99c09bd8ed37a593ee93d4d2001abb49dfd98e52 | test example expect/element/active. | examples/tests/github/github.js | examples/tests/github/github.js | module.exports = {
tags: ['git'],
// 'Demo test GitHub' : function (client) {
// client
// .url('http://github.com/nightwatchjs/nightwatch')
// .expect.title().to.contain('GitHub - nightwatchjs/nightwatch')
// // // .expect.title().to.be.present
// // .waitForElementVisible('body', 1000)... | JavaScript | 0 | @@ -1248,34 +1248,12 @@
nt('
-.branch-select-menu button
+body
').t
|
3713d27cbf0bfe78e48b4df1bc5ebaca5340f3a2 | Add copyright header | src/wirecloud/fiware/static/js/WirecloudAPI/NGSIAPI.js | src/wirecloud/fiware/static/js/WirecloudAPI/NGSIAPI.js | (function () {
"use strict";
var key, manager = window.parent.NGSIManager, NGSIAPI = {};
if (MashupPlatform.operator != null) {
NGSIAPI.Connection = function Connection(url, options) {
manager.Connection.call(this, 'operator', MashupPlatform.operator.id, url, options);
};
... | JavaScript | 0 | @@ -1,8 +1,869 @@
+/*%0A * Copyright (c) 2013 CoNWeT Lab., Universidad Polit%C3%A9cnica de Madrid%0A *%0A * This file is part of Wirecloud Platform.%0A *%0A * Wirecloud Platform is free software: you can redistribute it and/or%0A * modify it under the terms of the GNU Affero General Public License as%0A... |
4334aabeb521aab27d4c53ce97abbbbd70ad0e0f | Add better error handling | server/main.js | server/main.js | var http = require('http')
var WebSocketServer = require('websocket').server
var server = new http.createServer(function (req, res) {
res.end("hi")
}).listen(8000)
var webSocketServer = new WebSocketServer({
httpServer: server
})
webSocketServer.on('request', function (req) {
var connection = req.accept('echo-... | JavaScript | 0.000007 | @@ -353,16 +353,59 @@
nection)
+ %7B%0A console.log(%22Connection failed%22)%0A
return
@@ -410,16 +410,20 @@
n false%0A
+ %7D%0A
setInt
|
071aa5c304b183ba1ddc0c90367490f58d399f80 | Update the main to use the submodules | server/main.js | server/main.js | 'use strict'
const WebSocket = require('websocket')
const WebSocketServer = WebSocket.server
const http = require('http')
const crypto = require('crypto')
const fs = require('fs')
const scmp = require('scmp')
const koa = require('koa')
const koaStatic = require('koa-static')
const mount = require('koa-mount')
const m... | JavaScript | 0 | @@ -2268,21 +2268,41 @@
require(
-'/var
+%60$%7B__dirname%7D/../subsites
/elm-int
@@ -2318,17 +2318,17 @@
/main.js
-'
+%60
)(app, '
@@ -2348,29 +2348,40 @@
e(koaStatic(
-'/var
+%60$%7B__dirname%7D/..
/elm-intro/c
@@ -2392,17 +2392,17 @@
t/assets
-'
+%60
))%0Aapp.u
@@ -2444,21 +2444,41 @@
aStatic(
-'/var
+%60$%... |
c7d7289fbace750769cd3694cdfcfebd4ca5d123 | Use `let` instead of `var` | esm/parse-query.js | esm/parse-query.js | export function parseQuery (query) {
const chunks = query.split(/([#.])/);
let tagName = '';
let id = '';
const classNames = [];
for (var i = 0; i < chunks.length; i++) {
const chunk = chunks[i];
if (chunk === '#') {
id = chunks[++i];
} else if (chunk === '.') {
classNames.push(chunks... | JavaScript | 0.000001 | @@ -142,11 +142,11 @@
or (
-var
+let
i =
|
edbe2e4af7a1c39462ca7775835a1d4b7c80fca4 | add safe url joining function | screenshots.js | screenshots.js | 'use strict';
var system = require('system');
var webpage = require('webpage');
var fs = require('fs');
var configFile,
configPath,
currentActionCounter,
scriptArguments,
totalActionsCounter;
function takeAScreenshot(address, output, size, zoom, timer) {
var page = webpage.create();
t... | JavaScript | 0.000001 | @@ -211,16 +211,431 @@
unter;%0A%0A
+%0Afunction joinUrlElements() %7B%0A var isAbsolute = false,%0A regex = new RegExp('%5E%5C%5C/%7C%5C%5C/$','g'),%0A paths = Array.prototype.slice.call(arguments),%0A url = '';%0A%0A if (paths%5B0%5D%5B0%5D === '/') %7B%0A isAbsolute = true;%0A %... |
d6109242ad872b1088005bbea2bccef843a41809 | Handle case where backbone is set to undefined | js/backboneAgent/controllers/backboneController.js | js/backboneAgent/controllers/backboneController.js | Modules.set('controllers.backboneController', function() {
// imports
var Component = Modules.get('Component');
var u = Modules.get('utils');
var hidden = Modules.get('hidden');
var backboneController = new (Component.extend({ // singleton
initialize: function() {
// function t... | JavaScript | 0.000201 | @@ -723,27 +723,144 @@
ind(
-this.handleBackbone
+function (backbone) %7B%0A if (backbone) %7B%0A this.handleBackbone(backbone);%0A %7D%0A %7D
, th
@@ -3559,8 +3559,9 @@
ler;%0A%7D);
+%0A
|
028afb782dfe54fdfa57b1c08442abc463d94e69 | enable logtopic development for recovery tests | js/client/modules/@arangodb/testsuites/recovery.js | js/client/modules/@arangodb/testsuites/recovery.js | /* jshint strict: false, sub: true */
/* global print */
'use strict';
// //////////////////////////////////////////////////////////////////////////////
// / DISCLAIMER
// /
// / Copyright 2016 ArangoDB GmbH, Cologne, Germany
// / Copyright 2014 triagens GmbH, Cologne, Germany
// /
// / Licensed under the Apache Licen... | JavaScript | 0.000015 | @@ -2465,16 +2465,198 @@
);%0A %7D%0A%0A
+ // enable development debugging if extremeVerbosity is set%0A if (options.extremeVerbosity === true)%7B%0A argv = argv.concat(%5B%0A '--log.level', 'development=info',%0A %5D);%0A %7D%0A%0A
argv =
|
9e6177e315ef7fe0eda293eb95a91af13666a2dd | Update telemetry tests that rely on window.innerWidth/Height. | telemetry/telemetry/internal/actions/gesture_common.js | telemetry/telemetry/internal/actions/gesture_common.js | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file provides common functionality for synthetic gesture actions.
'use strict';
(function() {
// Returns the bounding rectangle wrt to the top... | JavaScript | 0.000004 | @@ -1239,16 +1239,523 @@
%0A %7D%0A%0A
+ // TODO(ymalik): Remove the fallback path once the visualViewportHeight and%0A // visualViewportWidth properties roll into stable.%0A var visualViewportHeight = window.innerHeight;%0A var visualViewportWidth = window.innerWidth;%0A if (chrome.gpuBenchmarking.v... |
c0717858d116f898cb9f9109fd97dc4e402da971 | Print response headers on publish failure | grafana/publish.js | grafana/publish.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | 0 | @@ -2790,32 +2790,77 @@
+ state.title);%0A
+ console.log(createResp.headers);%0A
cons
|
e70fb50cad9409a7b5fd7653e4d2b5873cafc4e7 | Resolve exports | source/index.js | source/index.js | // Imports
// -------------------------------------------------------------------------------------------------
var nodeUtil = require('util');
var pluck = require('101/pluck');
var AMDFormatter = require('6to5/lib/6to5/transformation/modules/amd');
var t = require('6to5/lib/6to5/types');
var util = require('6to5/lib... | JavaScript | 0.000001 | @@ -921,35 +921,8 @@
am;%0A
- var body = program.body;%0A
va
@@ -1458,20 +1458,93 @@
atement(
-body
+%0A program.body%0A .concat(template('resolve-exports'))%0A
)%0A );
|
426a6765a8aeda93adf4ef41f16f8c16823762c9 | fix yabbler file writing not working on macosx | utils/yabbler/yabbler.js | utils/yabbler/yabbler.js | /*
* Copyright (c) 2010 James Brantly
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, ... | JavaScript | 0.000274 | @@ -4159,32 +4159,63 @@
outStream = new
+java.io.OutputStreamWriter(new
java.io.FileOutp
@@ -4231,16 +4231,27 @@
fileObj)
+, encoding)
;%0A%09%09outS
@@ -4266,59 +4266,16 @@
ite(
-(new java.lang.String(contents)).getBytes(encoding)
+contents
);%0A%09
@@ -5397,8 +5397,9 @@
r), '');
+%0A
|
7b5c0a7a6b1d3bfe2d60fc1c024e46321206d9a9 | clean up models/order.test.js | db/models/order.test.js | db/models/order.test.js | 'use strict'
const db = require('APP/db'),
{ Order } = db,
{ expect } = require('chai'),
Promise = require('bluebird')
describe.only('The `Order` model', () => {
/**
* First we clear the database and recreate the tables before beginning a run
*/
before('Await database sync', () => db.didSync)
/**
... | JavaScript | 0.000002 | @@ -884,738 +884,8 @@
%7D)
-%0A%0A describe('Validations', () =%3E %7B%0A it('requires %60status%60', () =%3E %7B%0A order.status = null%0A return order.validate()%0A .then(function(result) %7B%0A expect(result).to.be.an.instanceOf(Error)%0A expect(result.message).to.contain('c... |
7dbc9755253cde547daee0a3b023f1e6e133e4cc | Fix issue with removing active users from sharejs. | shareServer.js | shareServer.js | // Configuration options
// TODO: Can these be grabbed from python settings?
var port = 7007;
var dbHost = 'localhost';
var dbPort = 27017;
var dbName = 'sharejs';
// Library imports
var sharejs = require('share');
var livedb = require('livedb');
var Duplex = require('stream').Duplex;
var WebSocketServer = require('ws... | JavaScript | 0 | @@ -3805,24 +3805,105 @@
ocs%5BdocId%5D;%0A
+ %7D else %7B%0A delete docs%5BdocId%5D%5BuserId%5D;%0A
|
4d9558739c4ab1c137ebaeac7f95a8e707c99641 | add volume to sound manager | audio/SoundManager.js | audio/SoundManager.js | import {Howler, Howl} from "howler";
let soundMap = new Map();
let muteLooped = /\bmutelooped\b/.test(window.location.search);
let enabled = true;
let muted = false;
export default class SoundManager {
static add(url) {
let split = url.split("/");
let name = split[split.length - 1].split(".")[0];
if(s... | JavaScript | 0.000001 | @@ -527,16 +527,28 @@
= false
+, volume = 1
%7D = %7B%7D)
@@ -700,16 +700,58 @@
p(loop);
+%0A sound.volume(volume %7C%7C sound.volume);
%0A%0A if
|
420c7e66469341da2196910b1a68ad752b0c48a3 | Fix for Firefox 4. XPCNativeWrapper throws if it's passed a literal - catch nhis exception and move on to returning the value itself. | firefox/src/js/firefox-utils.js | firefox/src/js/firefox-utils.js | /*
Copyright 2010 WebDriver committers
Copyright 2010 Google Inc.
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 la... | JavaScript | 0.000002 | @@ -2071,16 +2071,17 @@
533596%0A
+%0A
if (XP
@@ -2126,24 +2126,36 @@
eWrapper) %7B%0A
+ try %7B%0A
return X
@@ -2185,16 +2185,232 @@
thing);%0A
+ %7D catch(e) %7B%0A //Unwrapping will fail for JS literals - numbers, for example. Catch%0A // the exception and proceed, it will eventually be... |
b96fa1cf6e3bc12d28be8954303353b9e164ed50 | work on site | site/syntax.js | site/syntax.js | /* syntax.js
* apply simple syntax highlighting to Tetra code
*/
keywords = ["def", "if", "elif", "else", "while", "for", "in", "parallel"];
function applySyntax() {
/* find all the <pre><code> blocks */
var snippets = document.querySelectorAll('pre code');
/* highlight each one */
for (i = 0; i < ... | JavaScript | 0 | @@ -542,27 +542,20 @@
-highlighted
+text
= text.
@@ -663,19 +663,12 @@
t =
-highlighted
+text
;%0A
|
26b6b312d2d4276ab47322ec1519313374ced231 | Update matomo location | server/Html.js | server/Html.js | /* eslint-disable react/no-danger */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import serialize from 'serialize-javascript';
class Html extends Component {
getInitialStateHtml(initialState) {
return `window.INITIAL_STATE = ${serialize(initialState)};`;
}
renderAnalyticsC... | JavaScript | 0 | @@ -578,22 +578,16 @@
l.ninja/
-piwik/
%22;%0A
@@ -620,21 +620,22 @@
rl', u+'
-piwik
+matomo
.php'%5D);
@@ -872,21 +872,22 @@
.src=u+'
-piwik
+matomo
.js';%0A
|
5a25691cda002fa9a9a30c7c659408153c25cda5 | change middleware order for detailed logging | server/main.js | server/main.js | const express = require('express');
const logger = require('winston');
//=========================================================
// SETUP
//---------------------------------------------------------
const PROJECT_ROOT_DIR = process.cwd();
const app = express();
app.set('host', process.env.HOST || 'localhost');
ap... | JavaScript | 0 | @@ -351,24 +351,59 @@
%7C%7C 3000);%0A%0A
+app.use(require('morgan')('dev'));%0A
app.use(expr
@@ -449,43 +449,8 @@
));%0A
-app.use(require('morgan')('dev'));%0A
%0A%0A//
|
cab9dbe1477978a33b40f44a9d2aa9a363a06686 | update method of setting process env MAIL_URL | server/smtp.js | server/smtp.js | if ('smtp' in Meteor.settings.private) {
process.env.MAIL_URL = Meteor.settings.private.smtp;
}
| JavaScript | 0.000002 | @@ -1,8 +1,121 @@
+import %7B Meteor %7D from 'meteor/meteor';%0A%0Aif (Meteor.isServer) %7B%0A%09console.log('mail_URL', process.env.MAIL_URL);%0A%09
if ('smt
@@ -147,16 +147,17 @@
vate) %7B%0A
+%09
%09process
@@ -202,10 +202,209 @@
e.smtp;%0A
+%09%09console.log('mail_URL', process.env.MAIL_URL);%0A%0A%09%09/*%0A%... |
b52b4bd963f36c897d9041ce589d56f42e2aefa5 | debug multi-modal | assets/javascript/script.js | assets/javascript/script.js | // Navigation 1.0 ALPHA
//
// * Highlights the appropriate element in the navigation when scrolling through the page
// * Scrolls to appropriate section of the page when the navigation is clicked
var sections = [];
var articleSections = $();
var autoscrolling = false;
$(document).ready(function(){
$("nav").on("cli... | JavaScript | 0.000002 | @@ -1215,87 +1215,8 @@
);%0A%0A
- // Get the modal%0A//var modal = document.getElementsByClassName(%22.modal%22);%0A %0A
// G
@@ -1316,33 +1316,26 @@
ent.
-getElementsByClassName
+querySelectorAll
(%22
-.
moda
@@ -1339,26 +1339,24 @@
odal-img%22);%0A
-//
var modalImg
@@ -1356,11 +1356,9 @@
odal
-Img
+s
= d
... |
ef7e95abe0980cf516033cfeb1c486b18bb9d53c | fix code order for better comprehension | assets/javascripts/alert.js | assets/javascripts/alert.js | (function() {
Discourse.TopicFooterButtonsView.reopen({
addAlertButton: function() {
this.attachViewClass(Discourse.AlertButton);
}.on("additionalButtons")
});
Discourse.AlertButton = Discourse.ButtonView.extend({
text: 'alert',
title: 'display the topic title in an alert',
click: fun... | JavaScript | 0.675134 | @@ -11,173 +11,10 @@
) %7B%0A
-%0A
-Discourse.TopicFooterButtonsView.reopen(%7B%0A addAlertButton: function() %7B%0A this.attachViewClass(Discourse.AlertButton);%0A %7D.on(%22additionalButtons%22)%0A %7D);%0A
%0A D
@@ -334,14 +334,179 @@
%0A %7D);%0A%0A
+ Discourse.TopicFooterButtonsView.reopen(%7... |
1eb3ead854041502ccdf63a1251da2f35fe15872 | add 'months ago' | assets/js/libs/datetools.js | assets/js/libs/datetools.js | /* Copyright (C) 2012, Code for America
* This is open source software, released under a standard 2-clause
* BSD-style license; see the file LICENSE for details.
*/
var dateTools = {
ONE_DAY: 24 * 60 * 60 * 1000,
DAY_NAMES:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
DAY_NAMES_SHO... | JavaScript | 0.99998 | @@ -3330,46 +3330,226 @@
else
-%7B%0A timeSpanString = %22over a month
+ if (elapsedTime %3C 5184000)%7B%0A timeSpanString = %221 month%22;%0A %7Delse if (elapsedTime %3C 77760000)%7B%0A timeSpanString = Math.floor(elapsedTime / 2592000) + %22 months%22;%0A %7Delse%7B%0A timeSpanString = %22o... |
e888153efcd327e3fc318768be54f70b9fd493c8 | Check parameters | functions/entity-picture-get.js | functions/entity-picture-get.js | 'use strict'
console.log('Loading function')
const _ = require('lodash')
const _h = require('./_helpers')
const async = require('async')
const aws = require('aws-sdk')
const crypto = require('crypto')
const fs = require('fs')
const https = require('https')
const path = require('path')
const sql = fs.readFileSync(pa... | JavaScript | 0.000001 | @@ -488,217 +488,84 @@
-try %7B%0A https.get(%7B host: 'api.ipify.org' %7D, (response) =%3E %7B%0A var ip = ''%0A%0A response.on('data', (d) =%3E %7B%0A ip += d%0A %7D)%0A%0A response.on('end', () =%3E
+if(!_.get(event, 'pathParameters.db') %7C%7C ... |
6a4bf871cfefc714c42fdb4180a5c794b7bdbbb5 | task 141 | web/js/manage.records.js | web/js/manage.records.js | function initialize_records_form() {
$('#diskDiameters_lbl').hide();
$('#reelDiameters_lbl').hide();
$('#mediaDiameters_lbl').hide();
$('#tapeThickness_lbl').hide();
$('#trackTypes_lbl').hide();
$('#cassetteSize_lbl').hide();
$("#formatVersion_lbl").hide();
if (selectedMediaType)
... | JavaScript | 0.999996 | @@ -6434,32 +6434,71 @@
on (response) %7B%0A
+ console.log(response);%0A
|
6d1d4c18d2f796a0049ef3508393dfb82dceacad | Fix bug | src/ApiState.js | src/ApiState.js | const getInitialState = () => ({
token: undefined,
balance: false,
contracts: new Set(),
allContract: false,
transactions: false,
ticks: new Set(),
ticksHistory: new Map(),
candlesHistory: new Map(),
proposals: new Set(),
streamIdMapping: new Map(),
});
export default class ApiS... | JavaScript | 0.000001 | @@ -822,32 +822,82 @@
if (streamId) %7B%0A
+ this.state.contracts.add(contractId);%0A
this
@@ -2203,32 +2203,79 @@
if (streamId) %7B%0A
+ this.state.proposals.add(options);%0A
this
|
05fc157414596c1d4253e01e99f4015132604175 | Remove .only | test/ethregistrar/TestExponentialPremiumPriceOracle.js | test/ethregistrar/TestExponentialPremiumPriceOracle.js | const { expect } = require('chai')
const namehash = require('eth-ens-namehash')
const sha3 = require('web3-utils').sha3
const toBN = require('web3-utils').toBN
const ENS = artifacts.require('./registry/ENSRegistry')
const BaseRegistrar = artifacts.require('./BaseRegistrarImplementation')
const DummyOracle = artifacts.... | JavaScript | 0.000001 | @@ -691,13 +691,8 @@
ribe
-.only
('Ex
|
d27559faecedfde743caba3de8f80c7af2758d39 | Fix syntax error. | ui/app/js/controllers/user_edit_controller.js | ui/app/js/controllers/user_edit_controller.js | /*global sweetAlert swal */
angular.module('app').controller('UserPermissionsCtrl',
function ($scope, $modalInstance, CSRF, Permissions, user, users) {
$scope.loading = true;
$scope.users = users;
$scope.is_edit = true;
$scope.original_user = user;
$scope.user = angular.copy(user);
$scope.permission = {
... | JavaScript | 0 | @@ -3930,32 +3930,33 @@
ns: %7B%7D%0A %7D
+;
%0A sweetAl
|
13f900bbcbf4b4dc51b3d063f5b41635c0438545 | add usermode option to tool.js | tool.js | tool.js | #!/usr/bin/env node
var yaml = require("yamljs");
var glob = require('glob');
// define the required arguments
opt = require('node-getopt').create([
['', 'cluster=NAME', 'name of cluster to join'],
['', 'storage-type=TYPE', 'storage service type, supports: etcd'],
['', 'storage-host=IP', 'ip address of storage ... | JavaScript | 0.000001 | @@ -597,16 +597,79 @@
vice'%5D,%0A
+ %5B'', 'usermode', 'always run services as the calling user'%5D,%0A
//%5B'',
@@ -4625,16 +4625,124 @@
t.js %22;%0A
+ // add usermode option if required%0A if (options.usermode) %7B%0A runcommand += %22usermode %22;%0A %7D%0A
runc
|
da27ebf5ab13d1a22cf5b5258933e7ea7d3c5dfa | change cdn | tour.js | tour.js | require(['//cdnjs.cloudflare.com/ajax/libs/intro.js/0.5.0/intro.min.js', 'jquery'], function(introJs, $) {
var paths = window.tours;
function getCurrentSteps() {
var path = window.location.pathname;
if (paths[path]) {
return paths[path].steps;
}
for (path in paths) {... | JavaScript | 0.00004 | @@ -12,35 +12,21 @@
/cdn
+.
js
-.cloudflare.com/ajax/libs
+delivr.net
/int
@@ -37,9 +37,9 @@
s/0.
-5
+9
.0/i
|
d044479b9947d49b37b4dfd0a2ec31bd1a7ea0d7 | and return the data | server/routers/coalitioncalculator/index.js | server/routers/coalitioncalculator/index.js | 'use strict';
var app = require('../../util/app');
var parties = require('uk-political-parties');
var viewLocals = require('../../middleware/view-locals');
var siteNav = require('../../middleware/site-navigation');
var forecastData = require('../data/').forecastData;
var _ = require('lodash');
var data, expiry, fetchi... | JavaScript | 1 | @@ -669,24 +669,36 @@
, true);%0A
+ data.data =
data.data.m
|
ba13e5aee956b8376d4e044c678b5ba84329c516 | work on site | site/syntax.js | site/syntax.js | /* syntax.js
* apply simple syntax highlighting to Tetra code
*/
keywords = ["def", "if", "elif", "else", "while", "for", "in", "parallel", "return", "open", "import", "lambda", "background", "wait", "lock", "construct", "global", "constant"];
types = ["int", "real", "string", "bool", "task", "mutex"];
builtins = ["... | JavaScript | 0 | @@ -1391,79 +1391,8 @@
*/%0A
- var retext = %22#.*$%22;%0A var re = new RegExp(retext, %22g%22);%0A
@@ -1407,34 +1407,39 @@
= text.replace(
-re
+/#.*$/g
, %22%3Cspan class=%5C
|
6ca71c49b31d49c110bc82b8c8024ca4865e4a8a | Update Info.js | skills/Info.js | skills/Info.js | module.exports = function(skill, info, bot, message) {
var os = require('os');
var hostname = os.hostname();
var uptime = formatUptime(process.uptime());
var sysload = os.loadavg();
var cpus = os.cpus();
var freemem = os.freemem();
var totalmem = os.totalmem();
bot.reply(message,
... | JavaScript | 0.000001 | @@ -517,16 +517,61 @@
me off!'
+ +%0A cpus + freemem + totalmem%0A
);%0A%0Afunc
|
e7d066c3007997b7be3dd817cbdb409f0a4541f9 | correct lost client | slave/index.js | slave/index.js | 'use strict';
const md5 = require('nyks/crypto/md5');
const contains = require('mout/array/contains');
const forIn = require('mout/object/forIn');
const ubkClient = require('ubk/client/tcp');
const SSH_Host = require('./ssh_host.js');
const utils = require('ssh2').utils;
const debug = require('de... | JavaScript | 0.000001 | @@ -2384,38 +2384,39 @@
s._localClients%5B
-client
+details
.client_key%5D;%0A
|
69c4df27369ce29e44210f9ddc216a749acf168d | Update onyx.Item to use new API, addRemoveFlyweightClass, that simplifies the code needed to toggle this class. | source/Item.js | source/Item.js | /**
A control designed to display a group of stacked items, typically used in
lists. By default, items are highlighted when tapped. Set *tapHighlight* to
false to prevent the highlighting.
{kind: "onyx.Item", tapHighlight: false}
*/
enyo.kind({
name: "onyx.Item",
classes: "onyx-item",
//* When true, the item w... | JavaScript | 0 | @@ -635,16 +635,22 @@
Item.add
+Remove
Flyweigh
@@ -693,32 +693,38 @@
onyx-highlight%22,
+ true,
inEvent);%0A%09%09%7D%0A%09
@@ -806,17 +806,20 @@
yx.Item.
-r
+addR
emoveFly
@@ -875,16 +875,23 @@
hlight%22,
+ false,
inEvent
@@ -934,16 +934,22 @@
%7B%0A%09%09add
+Remove
Flyweigh
@@ -991,480 +991,17 @@
, in... |
01023ae5c79ee1eee1e9d3632849ff52c4318dcb | test setting and changing disabledDates | tests/integration/components/bs-datetimepicker-test.js | tests/integration/components/bs-datetimepicker-test.js | import $ from 'jquery';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, focus } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | bs datetimepicker', function(hooks) {
setupRenderingTest(hooks);
test... | JavaScript | 0 | @@ -2047,13 +2047,784 @@
);%0A %7D);
+%0A%0A test('disabled dates are disabled', async function(assert) %7B%0A assert.expect(4);%0A%0A this.set('disabledDates',%5B'2016-01-02','2016-01-03'%5D);%0A await render(hbs%60%7B%7Bbs-datetimepicker date='2016-01-01' disabledDates=disabledDates openOnFocus=true%7D%7D... |
ccc722394e3f2d308e5955c7378b482077d40a7a | Rename onRestCheckInterval -> checkTimeout prop | src/Collapse.js | src/Collapse.js | import React from 'react';
import PropTypes from 'prop-types';
export class Collapse extends React.Component {
static propTypes = {
theme: PropTypes.shape({
collapse: PropTypes.string,
content: PropTypes.string
}),
isOpened: PropTypes.bool.isRequired,
initialStyle: PropTypes.shape({
... | JavaScript | 0 | @@ -442,35 +442,28 @@
nc,%0A
-onRestCheckInterval
+checkTimeout
: PropTy
@@ -729,35 +729,28 @@
ed,%0A
-onRestCheckInterval
+checkTimeout
: 50%0A %7D
@@ -1974,35 +1974,28 @@
Opened,
-onRestCheckInterval
+checkTimeout
%7D = this
@@ -2316,25 +2316,16 @@
onRest(%7B
-%0A
isFullyO
@@ -2378,39 +2378,... |
7476bced4f82718b33f49720001d13581ec3df28 | remove comment | lib/assets/javascripts/esphinx/ui/windows/modal.js | lib/assets/javascripts/esphinx/ui/windows/modal.js | // require ../support/jquery
// require esphinx_ui
// require esphinx/support/ajax
// require esphinx/support/function
// require esphinx/support/array
// require esphinx/observer
"use strict";
var
jQuery,
esPhinx,
Singleton,
Ajax,
Constructor;
(function ($module) {
var
minimized = [... | JavaScript | 0 | @@ -2623,16 +2623,19 @@
+ //
debugge
|
6eea1fada0279510f9d772efcf0e2c01abf713cd | Reduce oauth token length from 256 to 32 | api/controllers/oauth2.js | api/controllers/oauth2.js | 'use strict'
let oauth2orize = require('oauth2orize')
let crypto = require('crypto')
let Client = require('../models/client')
let Token = require('../models/token')
let Code = require('../models/code')
let server = oauth2orize.createServer()
server.serializeClient(function (client, callback) {
return callback(null... | JavaScript | 0.999995 | @@ -1498,11 +1498,10 @@
tes(
+3
2
-56
).to
|
fc4a41d57a6a23025f8713404aaff8e03ad32d87 | create list return original state | src/reducers/ListReducer.js | src/reducers/ListReducer.js | import { createReducer } from 'reduxsauce';
import R from 'ramda';
import Types from '../actions/Types';
// helperfunctions
const handleListModification = (modifyId, newData, original) => {
var index = R.find(id => id === modifyId, original);
if (index === -1) return original;
var clone = R.clone(original);
cl... | JavaScript | 0.015772 | @@ -839,109 +839,8 @@
%3E %7B%0A
- var newState = Object.assign(%7B%7D, state);%0A newState.lists = R.append(action.data, newState.lists);%0A
re
@@ -848,12 +848,9 @@
urn
-newS
+s
tate
|
b6ab8c8a90f1a1b4c04436822e8e2cdc1a2a4746 | expire Files after 3 days | libs/hunter.js | libs/hunter.js | var subOfficeName=process.argv[2];
var search=process.argv[3];
var url=require("url");
var path=require("path");
var fs=require("fs");
require("../webapp/Morgas/src/NodeJs/Morgas.NodeJs");
var logger=require("../logger")(subOfficeName);
var errorSerializer=require("../logger").errorSerializer
var SC=µ.short... | JavaScript | 0.000005 | @@ -295,24 +295,47 @@
rializer%0D%0A%0D%0A
+var MAX_FILE_AGE=3;%0D%0A%0D%0A
var SC=%C2%B5.sho
@@ -738,16 +738,36 @@
;%0D%0A%7D%0D%0A%0D%0A
+var useFile=false;%0D%0A
if(subOf
@@ -821,16 +821,244 @@
h))%0D%0A%7B%0D%0A
+%09useFile=true;%0D%0A%09var age=(Date.now()-fs.statSync(targetFilePath).mtime)/864E5;%0D%0A%09if(... |
1dc21c9325122138ae44836221d681534f12bd74 | Fix Notification title in fallback render. | assets/js/components/activation/activation-app.js | assets/js/components/activation/activation-app.js | /**
* Activation App component.
*
* 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://www.apache.org/licenses/LICENSE-2.0
... | JavaScript | 0 | @@ -1475,16 +1475,24 @@
=%7B error
+.message
%7D%0A%09%09%09%09d
|
462ae1b2d42e8468c6fed6f5d30127c5f8fd877c | Fix typo | tests/errors.js | tests/errors.js | 'use strict';
var expect = require('chai').expect,
uncss = require('./../lib/uncss.js');
describe('Error reporting', function () {
this.timeout(5000);
it('No callback', function () {
var throw_test = function () {
uncss('<html></html>', { stylesheets: ['nonexistant'] });
... | JavaScript | 0.999999 | @@ -1962,17 +1962,16 @@
port sho
-p
uld be g
|
769f34db487f5fe9c0d227bf4ae884269ddfbbec | fix date time format | src/constants/Constants.js | src/constants/Constants.js | export const REPORT_DATA_TOKEN = '{report-data-to-replace}';
export const REPORT_HEADER_IMAGE_RIGHT_TOKEN = '{report-header-image-right}';
export const REPORT_HEADER_IMAGE_LEFT_TOKEN = '{report-header-image-left}';
export const SECTION_TYPES = {
globalSection: 'globalSection',
header: 'header',
text: 'text',
... | JavaScript | 0.999994 | @@ -4566,18 +4566,15 @@
YY, h:mm
-:ss
a z';%0A
|
2e47f39adce1e1116df520c19efb7cbf35ea4783 | set default execution context if there was no context provided | packages/message-dispatcher/MessageDispatcher.js | packages/message-dispatcher/MessageDispatcher.js | import { ExecutionContext, ImmediateExecutor } from 'execution-context';
export default class MessageDispatcher {
constructor() {
const executor = new ImmediateExecutor();
const context = new ExecutionContext(executor);
}
dispatch() { }
}
| JavaScript | 0.000004 | @@ -126,12 +126,41 @@
tor(
-) %7B%0A
+context) %7B%0A if (!context) %7B%0A
@@ -205,21 +205,17 @@
();%0A
-const
+
context
@@ -249,16 +249,51 @@
cutor);%0A
+ %7D%0A%0A this.context = context;%0A
%7D%0A%0A d
|
94bcf97695232beb95b26444ac25f69d16e1f51b | Fix a method comment | lib/UseCaseExecutor.js | lib/UseCaseExecutor.js | const EventEmitter = require('events').EventEmitter;
const Rx = require('rxjs/Rx');
const UseCase = require('./UseCase');
/**
* @fires UseCaseExecutor#resolved
* @fires UseCaseExecutor#rejected
*/
class UseCaseExecutor extends EventEmitter {
/**
* @param {Object.<string, function>} useCaseLogics
* @param {... | JavaScript | 0.003269 | @@ -275,32 +275,49 @@
string, function
+(Object, ...*): *
%3E%7D useCaseLogics
@@ -810,16 +810,33 @@
function
+(Object, ...*): *
%3E%7D useCa
@@ -2724,24 +2724,33 @@
ute it%0A *%0A
+ * %3Cp%3E%0A
* Use-cas
@@ -2806,14 +2806,13 @@
are
-reques
+accep
ted,
@@ -2878,24 +2878,43 @@
event.%0A *
+ %3C/p%3E... |
000d1e1eb5525c9cf563263244c4aa1c00f84021 | Remove unused code | NI-allbrowsers.js | NI-allbrowsers.js | const file = "http://michotastico.github.io/assets/images/space.jpg";
var self = null;
function NIJS(){
this.speed_result = null;
this.network_info = null;
this.total_time = 0;
this.current_speed = 0; //Mbps
this.latlon_coords = [0, 0];
self = this;
this.askLatlon = function(ploting_method){
var set... | JavaScript | 0.000006 | @@ -2862,81 +2862,8 @@
00;%0A
- var _MB = timings.dataSizeKB/1000;%0A var _speed = (_MB/_time)*8;%0A%0A
|
e37782e5b79db41292701a759cd3bb4b1f8740bf | Fix edge case for attachments download auth checks | gui/app/components/document/sidebar-attachment.js | gui/app/components/document/sidebar-attachment.js | // Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a comme... | JavaScript | 0 | @@ -1286,16 +1286,328 @@
ents);%0A%0A
+%09%09// For authenticated users we send server auth token.%0A%09%09let qry = '';%0A%09%09if (this.get('session.hasSecureToken')) %7B%0A%09%09%09qry = '?secure=' + this.get('session.secureToken');%0A%09%09%7D else if (this.get('session.authenticated')) %7B%0A%09%09%09qry = '?toke... |
78df32a0a02e92a8911f01b9711deee3f64ca4af | Use same interface as for other loaders, returning an editorSession. | dar/loadManifest.js | dar/loadManifest.js | import { Configurator, EditorSession } from '../ui'
import { registerSchema, XMLDocumentImporter } from '../xml'
import ManifestSchema from './ManifestSchema'
import ManifestDocument from './ManifestDocument'
export default function loadManifest(xmlStr) {
let configurator = new Configurator()
registerSchema(config... | JavaScript | 0 | @@ -601,20 +601,8 @@
turn
- %7B manifest,
edi
@@ -615,8 +615,7 @@
sion
- %7D
%0A%7D
+%0A
|
333cf9ff650df5871aef0da4ba35b0deed2845bc | Switch base generator to es6 | generators/base/index.js | generators/base/index.js | var generators = require('yeoman-generator');
module.exports = generators.Base.extend({
prompting: function() {
return this.prompt([{
type : 'input',
name : 'appName',
message : 'Your react native app directory name',
default : 'example',
}]).then(function (answers) {
this... | JavaScript | 0.000001 | @@ -1,8 +1,55 @@
+const Base = require('yeoman-generator').Base;%0A
var gene
@@ -91,48 +91,41 @@
);%0A%0A
-module.exports = generators.Base.extend(
+class BaseGenerator extends Base
%7B%0A
@@ -133,26 +133,16 @@
rompting
-: function
() %7B%0A
@@ -312,25 +312,16 @@
%5D).then(
-function
(answers
@@ -321,16 +... |
0520e9f4258c2547596961f253cd88b5a09116e4 | Use string interpolation | browser/ipc.js | browser/ipc.js | const {ipcRenderer, clipboard, shell} = require('electron')
const view = require('./view')
const setting = require('../modules/setting')
let menudata = {
newfile: () => sabaki.newFile(true),
newwindow: () => ipcRenderer.send('new-window'),
loadfile: () => sabaki.loadFile(),
savefile: () => sabaki.saveF... | JavaScript | 0.000011 | @@ -3827,33 +3827,33 @@
ll.openExternal(
-'
+%60
https://github.c
@@ -3853,36 +3853,34 @@
ithub.com/yishn/
-' +
+$%7B
app.getName()),%0A
@@ -3872,24 +3872,26 @@
pp.getName()
+%7D%60
),%0A repor
@@ -3923,17 +3923,17 @@
xternal(
-'
+%60
https://
@@ -3953,12 +3953,10 @@
shn/
-' +
+$%7B
app.
@@ -3968,20 +396... |
2a89f2e9ac40bb6c767111b09f83547d473aede2 | remove console | number-pb.js | number-pb.js | (function($) {
var NumberProgressBar = function(element, options) {
var settings = $.extend ({
duration: 10000,
min: 0,
max: 100,
current: 0,
shownQuery: '.number-pb-shown',
numQuery: '.number-pb-num'
}, options || {});
this.duration = settings.duration;
if (settin... | JavaScript | 0.000002 | @@ -817,67 +817,8 @@
);%0A%0A
- console.log('bar', this.min, this.max, this.duration)%0A%0A
|
c6d1f8c9d3153e7c757f0095320d8724b3ae92d4 | Add Analytics selector for isFetchingAccounts. | assets/js/modules/analytics/datastore/accounts.js | assets/js/modules/analytics/datastore/accounts.js | /**
* modules/analytics data store: accounts.
*
* 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://www.apache.org/license... | JavaScript | 0 | @@ -5554,16 +5554,336 @@
);%0A%09%7D ),
+%0A%0A%09/**%0A%09 * Checks whether accounts are currently being fetched.%0A%09 *%0A%09 * @since n.e.x.t%0A%09 * @private%0A%09 *%0A%09 * @param %7BObject%7D state Data store's state.%0A%09 * @return %7Bboolean%7D Whether accounts are currently being fetched or not.%0A%09 */%0A... |
7a0e95d6ba44751a4832d3da0e522ef19a38d7d6 | make it clear that the browser tests are testing the browser | Test/document.styleSheets.test.js | Test/document.styleSheets.test.js | if (typeof exports == 'undefined') var exports = {};
exports ["test (document.styleSheets) DOM styleSheet"] =
API ["DOM styleSheet"] (Sheet.DOM.createSheet);
exports ["test (document.styleSheets) DOM style attribute"] =
API ["DOM style attribute"] (Sheet.DOM.createStyle);
| JavaScript | 0.000669 | @@ -54,32 +54,47 @@
%0Aexports %5B%22test
+Browser Native
(document.styleS
@@ -185,16 +185,31 @@
%5B%22test
+Browser Native
(documen
|
322d8ef9acbcf000512fc97c7da73a53081912d0 | Rename redundant 'audioCtx' to 'context'; move intializations in 'initialize' | src/core/audio/AudioAPI.js | src/core/audio/AudioAPI.js |
define([
"core/framework/Tundra",
"core/framework/ITundraAPI",
"core/asset/AssetFactory",
"core/audio/asset/AudioAsset",
"core/audio/entity-components/EC_Sound_WebAudio",
"core/audio/entity-components/EC_SoundListener_WebAudio"
], function(Tundra, ITundraAPI, AssetFa... | JavaScript | 0.000815 | @@ -503,386 +503,8 @@
s);%0A
-%0A // define audio context%0A this.audioCtx = new (window.AudioContext %7C%7C window.webkitAudioContext)();%0A %0A // Master GainNode to be used as destination of other sources%0A this.masterGainNode = this.audioCtx.createGain();%0A this.masterGa... |
5db9751fccc276758a9e72c6eeb0a8143a4b72c4 | Fix events | unify/framework/source/class/unify/business/CompletedEvent.js | unify/framework/source/class/unify/business/CompletedEvent.js | /*
===============================================================================================
Unify Project
Homepage: unify-project.org
License: MIT + Apache (V2)
Copyright: 2009-2010 Deutsche Telekom AG, Germany, http://telekom.com
=======================================================================... | JavaScript | 0.000134 | @@ -1187,16 +1187,51 @@
true; %7D,
+%0A%09%09resetDispatched : function() %7B%7D,
%0A%0A%09%09/**%0A
|
f98b003ebce19dd0a23de33810963c2b7a903267 | Remove unused constant. | assets/js/modules/idea-hub/datastore/constants.js | assets/js/modules/idea-hub/datastore/constants.js | /**
* `modules/idea-hub` data store constants.
*
* Site Kit by Google, Copyright 2021 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://www.apache.org/licens... | JavaScript | 0.000001 | @@ -1101,90 +1101,8 @@
4;%0A
-export const IDEA_HUB_ACTIVITY_IS_PROCESSING = 'IDEA_HUB_ACTIVITY_IS_PROCESSING';%0A
expo
|
92f33576fae90a7a995e4eef1c0168e010bd55d0 | Clean up | app/resources/js/utils/waitUntil.js | app/resources/js/utils/waitUntil.js | const DEFAULT_TIMEOUT = 30 * 1000; // 30 seconds
const DEFAULT_INTERVAL = 0; // 0 seconds
/**
* Provide promise that will be resolved when callback will return truthy value.
*
* @param {Function} callback
* @param {number} interval
* @param {number} timeout
* @return {Promise<*>}
*/
export default function (cal... | JavaScript | 0.000002 | @@ -948,16 +948,17 @@
peration
+.
%60));%0A
|
e551a216314f69b6fb98f18737e6ed290af22e1a | replace static ids with variable | lib/adapters/cayley.js | lib/adapters/cayley.js | 'use strict'
const LRU = require('lru-cache');
const cayley = require('cayley');
const array_stream = require('../array_stream');
const cache_options = {
max: 500,
dispose: (key, value) => {
//console.log('Cache remove:', key);
}
};
module.exports = (entrypoint) => {
entrypoint.module_root = ... | JavaScript | 0.000212 | @@ -1711,45 +1711,17 @@
-'http://doma.in/_i/DQWJaVwQ/9Xwu6zpn'
+event_iri
%0A
@@ -2396,45 +2396,17 @@
-'http://doma.in/_i/DQWJaVwQ/9Xwu6zpn'
+event_iri
%0A
|
014a28fef022b4bb60afea8267dd934be45e5b72 | Fix type registration in hello_world | modules/examples/src/hello_world/index_static.js | modules/examples/src/hello_world/index_static.js | import * as app from './index_common';
import {Component, Decorator, Template, NgElement} from 'angular2/angular2';
import {Lexer, Parser, ChangeDetection, ChangeDetector} from 'angular2/change_detection';
import {ExceptionHandler} from 'angular2/src/core/exception_handler';
import {LifeCycle} from 'angular2/src/core... | JavaScript | 0.000001 | @@ -5493,16 +5493,26 @@
tDom, el
+, selector
) =%3E new
@@ -5532,16 +5532,26 @@
tDom, el
+, selector
),%0A %22
@@ -5590,32 +5590,42 @@
om%5D, %5BNgElement%5D
+, %5BString%5D
%5D,%0A %22annotati
@@ -5636,46 +5636,8 @@
: %5B
-new Decorator(%7Bselector: '%5Bcontent%5D'%7D)
%5D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.