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 |
|---|---|---|---|---|---|---|---|
e8b0ee8080c0f5ca76b771723f1ffc547a99258d | Allow dynamic import proposal in node_modules (#5047) | packages/babel-preset-react-app/dependencies.js | packages/babel-preset-react-app/dependencies.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = function(api, opts) {
if (!opts) {
opts = {};
}
// This is similar to how `env` works in Babel... | JavaScript | 0 | @@ -3118,32 +3118,136 @@
%7D,%0A %5D,%0A
+ // Adds syntax support for import()%0A require('@babel/plugin-syntax-dynamic-import').default,%0A
%5D.filter(Boo
|
a1495671a8dc2a27d708976fffbf11b41def445d | Call createNum() after AJAX success | js/main.js | js/main.js | var xmlhttp = new XMLHttpRequest(),
questions;
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
questions = JSON.parse(xmlhttp.responseText);
}
};
xmlhttp.open("GET", "js/questions.json", true);
xmlhttp.send();
var question = document.getElementById('... | JavaScript | 0 | @@ -198,16 +198,31 @@
eText);%0A
+%09%09createNum();%0A
%7D%0A%7D;
@@ -2186,32 +2186,4 @@
Ans;
-%0A%0Awindow.onload = createNum;
|
e5bed88d9227a3f78325a88d107b2ac9b85fcc65 | add to error message | lib/handlers/accounts.js | lib/handlers/accounts.js | var send = require('appa/send')
var error = require('appa/error')
module.exports = function (db, config) {
var township = config.township
var reset = config.reset
var email = config.email
var scopes = config.scopes
var publicRegistration = config.publicRegistration
var allowedEmails = config.allowedEmails
... | JavaScript | 0 | @@ -1150,18 +1150,16 @@
ople */%0A
-
%7D else
@@ -1171,20 +1171,18 @@
scopes.a
-dmin
+pp
&& scop
@@ -1189,19 +1189,16 @@
es.a
+pp.a
dmin
-.length
) %7B%0A
@@ -1459,20 +1459,26 @@
ey,
+%5B
scopes.
+app.
admin
+%5D
, fu
@@ -1630,24 +1630,24 @@
%7D else %7B%0A
-
return
@@ -1685,16 +1685,76 @@
... |
c9735eb146800d9d72567ba18fb55832c51804a4 | tweak address | components/postit.js | components/postit.js | 'use strict';
import {
View,
Text,
TouchableHighlight,
Alert,
TextInput,
ListView,
ScrollView,
} from 'react-native'
import axios from 'axios'
import React, { Component, PropTypes } from 'react';
import styles from '../styles/styles';
import Rating from './rating';
import ImageBar from './imagebar'
ex... | JavaScript | 0.000001 | @@ -1274,16 +1274,19 @@
%0A
+ //
formatt
@@ -1344,16 +1344,50 @@
.trim()%0A
+ formattedAddress: '37204'%0A
%7D)
|
0dd2421df93ac976802e73df3a5384551bf42083 | Add comment in code to explain the main file of the module | src/index.js | src/index.js | export { mdlUpgrade } from './lib/mdlUpgrade';
| JavaScript | 0 | @@ -1,8 +1,69 @@
+// Just export this function from react-to-mdl %22root module%22%0A
export %7B
|
7808f9c6791f13e165040e46ea126ea50383a00a | Add info to update | jsrange.js | jsrange.js | class JSRange {
constructor (el, options) {
this._updateObject = this._update
this.options = options
this.selected = {
min: this.options.min,
max: this.options.max
}
this._createBody(el)
this.update()
}
// Propably we want to update everything
update () {
this._update.... | JavaScript | 0 | @@ -2113,16 +2113,85 @@
ct %7C%7C %7B%0A
+ // Here goes every function which should be updated via .all()%0A
_t
@@ -2216,17 +2216,17 @@
'info'%5D,
-%0A
+
%0A a
@@ -2451,22 +2451,20 @@
//
-Update
+Calc
rail co
@@ -2466,16 +2466,25 @@
il color
+ position
%0A
@@ -2829,24 +2829,24 @@
... |
d5560fe80a0b135080102713f869ef712b68de8a | Fix cache option bug | src/EasyReactNative.js | src/EasyReactNative.js | import Router from 'mini-routerjs';
import JSONStore from 'jsonstore-js';
import React, {Component, PropTypes} from 'react';
import {
View,
StyleSheet,
Dimensions
} from 'react-native';
import Page from './Page';
const emptyFunc = () => {};
const SCREEN_HEIGHT = Dimensions.get('window').height;
class EasyReactN... | JavaScript | 0.000001 | @@ -2786,32 +2786,82 @@
%7D%0A return
+ props._pageHide && route.cache === false ? null :
(%0A %3CPage%0A
|
7165ed19686c5f62bb752b76a64cad3e0572dfd2 | Fix for icon preview on selection window config | components/SelectionWindowConfig.js | components/SelectionWindowConfig.js | /*
* Copyright (C) 2012 B3Partners B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | JavaScript | 0 | @@ -3574,16 +3574,136 @@
alue();%0A
+ var iconurl = textField.getValue();%0A if(Ext.isEmpty(iconurl) %7C%7C !Ext.isDefined(iconurl)) iconurl = null;%0A
@@ -3739,36 +3739,24 @@
m.src =
-textField.getValue()
+iconurl;
%0A %7D%0A%7D
|
9986959d687d1fdcb401c0540b1cd4eaab63145b | Update index.js | tpa/index.js | tpa/index.js | 'use strict'; // dont touch
this.command = []; // dont touch
this.commandName = []; // dont touch
this.gamemodeId = []; // dont touch
this.gamemode = []; // dont touch
this.addToHelp = []; // dont touch
var tpa;
// [General]
this.name = "TPA"; // Name of plugin REQUIRED
this.author = "LegitSoulja"; // author REQUIRED
t... | JavaScript | 0.000002 | @@ -200,17 +200,8 @@
uch%0A
-var tpa;%0A
// %5B
@@ -537,16 +537,81 @@
plit) %7B%0A
+ var pid = parseInt(split%5B1%5D);%0A var id = parseInt(split%5B2%5D);%0A
if (s
@@ -647,24 +647,19 @@
(isNaN(
-split%5B1%5D
+pid
) %7C%7C isN
@@ -661,24 +661,18 @@
%7C isNaN(
-split%5B2%5D
+id
)) %7B%0A
@@ -772,10 +77... |
ba97d10d526c9d742fcb0ef9c13ac470dcb94e23 | Remove unused function | src/FeathersVuexGet.js | src/FeathersVuexGet.js | export default {
props: {
service: {
type: String,
required: true
},
query: {
type: Object,
default: null
},
queryWhen: {
type: [ Boolean, Function ],
default: true
},
// For get requests
id: {
type: [ Number, String ],
default: null
... | JavaScript | 0.000004 | @@ -3228,268 +3228,4 @@
%7D%0A%7D%0A
-%0Afunction randomString (length) %7B%0A let text = ''%0A let possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'%0A%0A for (let i = 0; i %3C length; i++) %7B%0A text += possible.charAt(Math.floor(Math.random() * possible.length))%0A %7D%0A%0A retur... |
1a83dbace2fde1bcabd3649abdce0a3f2e6e52b5 | remove merge conflict | addon/components/bc-sortable-list.js | addon/components/bc-sortable-list.js | /**
* @module component
*
*/
import { camelize } from '@ember/string';
import EmberObject from '@ember/object';
import { A } from '@ember/array';
import { assert } from '@ember/debug';
import { isNone } from '@ember/utils';
import Component from '@ember/component';
import layout from '../templates/components/bc-sort... | JavaScript | 0.000003 | @@ -3161,162 +3161,8 @@
) %7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A%0A%09%09%09const sort = Ember.String.camelize(item.machineName) %7C%7C Ember.String.camelize(item.header);%0A%09%09%09const sortBy = %60$%7Bsort%7D.content%60;%0A=======%0A
%09%09%09c
@@ -3221,32 +3221,8 @@
er);
-%0A%3E%3E%3E%3E%3E%3E%3E busybusy/master... |
bd1e9d8e089c9c83b27d87d126b0b3a95e85792c | use nodeName instead of tagName | htdocs/components/00_jquery_selecttotoggle.js | htdocs/components/00_jquery_selecttotoggle.js | /**
* selectToToggle - Show/hide an HTML block(s) according to value selected in a <select>, or <input type="radio"> element
* Reserved JS class prefix: _stt
* Reserved CSS class prefix: none
* Note: Be careful if there are more than one selectToToggle elements on a page with one or more options having same values ... | JavaScript | 0.000002 | @@ -1350,19 +1350,20 @@
(this.
-tag
+node
Name ==
|
ed6914003f516d3752a433037b1dab30ab1535f4 | Fix error handler | server/app.js | server/app.js | const createError = require('http-errors')
const express = require('express')
const path = require('path')
const cookieParser = require('cookie-parser')
const logger = require('morgan')
const validator = require('express-validator')
const cors = require('cors')
const indexRouter = require('./routes/index')
const users... | JavaScript | 0 | @@ -1440,19 +1440,23 @@
.render(
-res
+'error'
)%0A%7D)%0A%0Amo
|
aabcf5160d22bac0199c490572b9eb79f958eba1 | Update neko.js | commands/neko.js | commands/neko.js | module.exports = {
commands: [
'neko',
'nekos'
],
usage: 'neko',
description: 'OwO',
category: 'Information',
execute: (bot, msg, args) => {
const superagent = require("superagent")
superagent.get("https://nekos.life/api/neko", (err, res) => {
if (err) { return msg.channel.send(":x... | JavaScript | 0 | @@ -1,8 +1,49 @@
+const snekfetch = require('snekfetch');%0A%0A
module.e
@@ -203,61 +203,17 @@
-const superagent = require(%22superagent%22)%0A superagent
+snekfetch
.get
@@ -246,20 +246,18 @@
eko%22
-, (err,
+).then(
res
-)
=%3E
@@ -268,21 +268,30 @@
- if (err
+if (res.status !== 200
) %7B
... |
a4b435ff93f09f31048d5273dd14639525f70a31 | Add support for onlyExternal | addon/components/swiper-container.js | addon/components/swiper-container.js | import Ember from 'ember';
import layout from '../templates/components/swiper-container';
export default Ember.Component.extend({
layout,
classNames: ['swiper-container'],
swiper: false,
swiperOptions: Ember.computed('pagination', 'loop', 'vertical', function() {
let options = {};
if (this.get('pagin... | JavaScript | 0 | @@ -253,16 +253,32 @@
rtical',
+ 'onlyExternal',
functio
@@ -859,32 +859,151 @@
r = false;%0A %7D
+%0A %0A // disable all user interactions%0A if (this.get('onlyExternal')) %7B%0A options.onlyExternal = true;%0A %7D
%0A%0A if (this.g
|
0e3f8510d4269ca8b4974cd562745fc3dfa399c5 | Fix command handling | server/app.js | server/app.js | var SLACK_BOT_NAME = process.env.SLACK_BOT_NAME || 'Tesla Model S';
var env = process.env.NODE_ENV || 'dev';
if (env === 'production') {
require('newrelic');
}
var express = require('express'),
tesla = require('./tesla'),
Bacon = require('baconjs').Bacon,
bodyParser = require('body-parser');
var app ... | JavaScript | 0.001199 | @@ -886,23 +886,20 @@
var
-command
+args
= req.b
@@ -917,51 +917,79 @@
im()
-%0A console.log('Command: ' + command)
+.split(' ')%0A var command = args.length %3E 1 ? args%5B1%5D : undefined
%0A
|
d8f2f05d83269e00316bd8c1f4229ecbc3980008 | remove auto expanding images of bahamut | greasemonkey/tiny-customize/tiny-customize.user.js | greasemonkey/tiny-customize/tiny-customize.user.js | // ==UserScript==
// @name Tiny-Customize
// @description 为常用网站添加功能定制。例如:3DMGame、贴吧、淘宝、京东、GitHub...
// @homepageURL https://github.com/nonoroazoro/firefox/tree/master/greasemonkey/tiny-customize
// @namespace https://greasyfork.org/zh-CN/scripts/19823-tiny-customize
// @author nonoroazoro
// @include ... | JavaScript | 0 | @@ -741,9 +741,9 @@
1.2.
-5
+6
%0A//
@@ -3726,264 +3726,8 @@
===
- %22forum.gamer.com.tw%22)%0A %7B%0A // %E5%B7%B4%E5%93%88%E5%A7%86%E7%89%B9%E3%80%82%0A%0A // %E8%87%AA%E5%8A%A8%E5%BC%80%E5%90%AF%E5%9B%BE%E7%89%87%E3%80%82%0A actions.push(() =%3E%0A %7B%0A if (window.for... |
d374c2d4b12e9b1c67ec4a4abe0005f50b320ffa | Add support for amd, node & global | src/index.js | src/index.js | 'use strict';
(function () {
var slik = function (position) {
var slikObject = {
position: position,
animations: {},
requestAnimationFrame: function (func) {
var requestAnimationFrame = window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webki... | JavaScript | 0 | @@ -6602,30 +6602,594 @@
%0A%0A
-module.exports = slik;
+// Establish the root object, %60window%60 in the browser, or %60exports%60 on the server.%0A var root = this %7C%7C window;%0A%0A // Export for commonjs / browserify%0A if (typeof exports !== 'undefined') %7B%0A if (typeof module !== 'undefined' && modu... |
695f2757e80067e8466b869aeb4afc3233223ae2 | update store.store related tests | tests/unit/stores-test.js | tests/unit/stores-test.js | import { run } from '@ember/runloop';
import module from '../helpers/module-for-db';
import { test } from '../helpers/qunit';
import Model from 'documents/document/model';
module('stores');
test('stores exist', function(assert) {
assert.ok(this.stores);
});
test('store is created only once', function(assert) {
l... | JavaScript | 0 | @@ -125,22 +125,34 @@
;%0Aimport
+ %7B Stores,
Model
+ %7D
from 'd
@@ -163,23 +163,8 @@
ents
-/document/model
';%0A%0A
@@ -198,237 +198,340 @@
ores
- exist', function(assert) %7B%0A assert.ok(this.stores);%0A%7D);%0A%0Atest('store is created only once', function(assert) %7B%0A let url = 'http://127.0.0.1:5984... |
6105d5533866de6ebd46090f367d7b059b604bd6 | Convert <vellum-stat-block-divider> to LitElement | vellum-stat-block-divider.js | vellum-stat-block-divider.js | import { PolymerElement } from '../@polymer/polymer/polymer-element.js'
import { html } from '../@polymer/polymer/lib/utils/html-tag.js'
class StatBlockDivider extends PolymerElement {
static get template() {
return html`
<style>
svg {
fill: var(--stat-block-divider-color, lightgrey);
... | JavaScript | 0.999998 | @@ -6,134 +6,49 @@
t %7B
-PolymerElement %7D from '../@polymer/polymer/polymer-element.js'%0Aimport %7B html %7D from '../@polymer/polymer/lib/utils/html-tag.js
+LitElement, html, css %7D from 'lit-element
'%0A%0Ac
@@ -81,15 +81,11 @@
nds
-Polymer
+Lit
Elem
@@ -108,16 +108,14 @@
get
-template
+styles
() %7B
@@... |
8d34af72ba0d83d855b852aa76cadc2165e1e54e | change iframe height after getHeight | validator.js | validator.js | var task;
var platform;
var taskLoaded = false;
function loadUrl () {
var href = window.location.href;
var root = window.location.href.substr(0, href.lastIndexOf('/'));
var taskUrl = $('#taskUrl').val()+'#'+root;
$('#task-view').prop('src', taskUrl);
taskLoaded = false;
}
function msgLog(msg) {
cons... | JavaScript | 0.000001 | @@ -1761,16 +1761,102 @@
eight);%0A
+ msgLog('setting iframe height: '+height);%0A $('#task-view').height(height);%0A
%7D);%0A%7D
|
15d05fd5f17afb0fcc22e5e510349962436eb60b | update player def for human race | common/Player.js | common/Player.js | /**
* Created by ionagamed on 8/11/16.
*/
import { Card } from './Card';
export class Player {
constructor() {
/**
* An array of cards which are in player's hand (not on the table)
*
* @type [string]
*/
this.hand = [];
/**
* An array ... | JavaScript | 0 | @@ -4075,33 +4075,33 @@
.hasCardWielded(
-r
+c
);%0A %7D%0A%0A /*
@@ -4297,30 +4297,30 @@
his.
-wielded.indexOf
+hasCardWielded
('super
+_
munc
@@ -4325,21 +4325,16 @@
nchkin')
- %3E -1
;%0A
@@ -4600,106 +4600,265 @@
-/**%0A * The player for now has race advantages if and only if he has... |
e282e7846bd1bb6141d929ffb0243cba88ca4058 | Set field for major documents | db/db.js | db/db.js | var mongoose = require('mongoose');
var models = require("./models.js");
/*
var dbUser = 'aida-master';
var dbPassword = 'dbpassword';
var url = 'mongodb://' +
dbUser + ':' +
dbPassword +
'@ds029735.mlab.com:29735/heroku_qdmfvghp'
*/
var url = 'mongodb://localhost/appdb';
var connect = function(callback) {
... | JavaScript | 0 | @@ -1894,24 +1894,247 @@
me%0A %7D);%0A%7D%0A%0A
+// Set a user document field, searching user by ID%0Amodule.exports.setUserField = function(id, field, value) %7B%0A var fieldSet = %5B%5D;%0A fieldSet%5Bfield%5D = value;%0A return models.User.findByIdAndUpdate(id, %7B$set: fieldSet%7D);%0A%7D%0A%0A
// Get indiv
... |
1c88b820321941f8284ae092fbebb5531d420a55 | add target node check | bin/phylotree-distance.js | bin/phylotree-distance.js | #!/usr/bin/env node
const fs = require("fs"),
phylotree = require("../dist/phylotree.js"),
commander = require("commander"),
_ = require("underscore");
commander
.arguments("<newick>", "Input newick file")
.requiredOption("-s --source <node>", "Source Node")
.requiredOption("-t --target <node>", "Target N... | JavaScript | 0.000001 | @@ -1108,16 +1108,137 @@
target);
+%0A%0A if(_.isUndefined(targetNode)) %7B%0A throw new Error('Could not find target node with name ' + commander.target)%0A %7D%0A%0A
%0A const
@@ -1491,16 +1491,17 @@
e);%0A %7D%0A
+%0A
consol
|
68ed172d64644d08395dbdaf60bec201669d78db | Fix typo (#13) | src/index.js | src/index.js | import sort from './sort';
function sleepSort(numbers, callback) {
if (!Array.isArray(numbers)) {
throw new TypeError(
'[SleepSort] Expected to be called with an array of numbers but' +
`instead received ${numbers === null ? 'null' : typeof numbers}.`
)
}
const providedCallback = typeof call... | JavaScript | 0.002722 | @@ -188,16 +188,17 @@
bers but
+
' +%0A
|
bb1b4500915baae29e4d1d6a94b0ace1ccfcf6ec | Revert "Remove moment local" | app/common/date-service.js | app/common/date-service.js | import moment from 'moment';
const DATE_FORMAT = 'Do MMMM YYYY, h:mm a';
const DATE_EXPORT_FORMAT = 'DD-MM-YYYY-hhmm';
export function getCurrentDate() {
return moment().format(DATE_FORMAT);
}
export function getCurrentDateForExport() {
return moment().format(DATE_EXPORT_FORMAT);
}
export function parseDateToSt... | JavaScript | 0 | @@ -23,16 +23,38 @@
ment';%0A%0A
+moment.locale('es');%0A%0A
const DA
|
f2faad239b0a0d969436807436378cbfbaa34327 | Fix write on a read-only property | lib/js/core/bootstrap.js | lib/js/core/bootstrap.js | (function() {
'use strict';
// Inject SVG icons into the DOM
var element = document.createElement('div');
element.id = 'darkroom-icons';
element.style = 'height: 0; width: 0; position: absolute; visibility: hidden';
element.innerHTML = '<!-- inject:svg --><!-- endinject -->';
document.body.appendChild(element);
})()... | JavaScript | 0.000003 | @@ -148,41 +148,68 @@
tyle
- = '
+.
height
-: 0;
+ = 0;%0Aelement.style.
width
-: 0;
+ = 0;%0Aelement.style.
position
: ab
@@ -208,18 +208,20 @@
tion
-:
+= '
absolute
; vi
@@ -220,10 +220,25 @@
lute
-;
+';%0Aelement.style.
visi
@@ -247,10 +247,12 @@
lity
-:
+= '
hidd
@@ -354,15 +354,14 @@
ment);%0... |
f2de4c30c3cb529c7d2155b21ed636cf198196e2 | increase listen repeat interval | js/navi.js | js/navi.js | /*** NAVI ***/
var x = 0, y = 0;
var heartShape = new THREE.Shape();
heartShape.moveTo( x + 5, y + 5 );
heartShape.bezierCurveTo( x + 5, y + 5, x + 4, y, x, y );
heartShape.bezierCurveTo( x - 6, y, x - 6, y + 7,x - 6, y + 7 );
heartShape.bezierCurveTo( x - 6, y + 11, x - 3, y + 15.4, x + 5, y + 19 );
var win... | JavaScript | 0 | @@ -2172,10 +2172,10 @@
%0A%7D,
-18
+27
000)
|
4db03c1d9e5f2892f3f4575c9943420fe2effdfe | add max width to body | app/common/globalStyles.js | app/common/globalStyles.js | import Nexa from './fonts/Nexa.woff';
import OpenSans from './fonts/OpenSans.woff';
export default {
'@font-face': {
fontFamily: 'Nexa',
src: `url(${Nexa})`,
fontWeight: 'normal',
fontStyle: 'normal'
},
'@font-face ': {
fontFamily: 'Open Sans',
src: `url(${OpenSans})`,
fontWeight: 'no... | JavaScript | 0.000002 | @@ -563,16 +563,38 @@
100vh',%0A
+ minWidth: '652px'%0A
%7D,%0A '
|
d6c813a261f3222f465f7b7fb31c2f9d0d5808fd | put delete function as string to avoid possible clash with keyword. | api/controllers/UserController.js | api/controllers/UserController.js | /**
* UserController
*
* @description :: Server-side logic for managing Users
* @help :: See http://links.sailsjs.org/docs/controllers
*/
module.exports = {
hasPermission: function (req, res) {
User.findOne(1).exec(function (err, user) {
res.send(user.hasPermission(req.param('perm')... | JavaScript | 0 | @@ -992,14 +992,16 @@
+'
delete
+'
: fu
|
61ab3a72eb5439c8bfb8b2a7466b0e633577f9e2 | add fetcher driver | src/index.js | src/index.js | import Cycle from '@cycle/core';
import {makeDOMDriver} from '@cycle/dom';
import intent from './intent';
import model from './model';
import view from './view';
Cycle.run(
((responses) => view(model(intent(responses)))),
{
DOM: makeDOMDriver('#app')
}
);
| JavaScript | 0 | @@ -34,16 +34,17 @@
import %7B
+
makeDOMD
@@ -48,16 +48,17 @@
OMDriver
+
%7D from '
@@ -70,16 +70,84 @@
e/dom';%0A
+import %7B makeFetcherDriver %7D from '@r7kamura/cycle-fetcher-driver';%0A
import i
@@ -322,16 +322,47 @@
('#app')
+,%0A HTTP: makeFetcherDriver()
%0A %7D%0A);%0A
|
e1c0889bc03a4b7024a021746d27dc8842aa0310 | add trunk provider | astools.js | astools.js | // Using NAMI: https://github.com/marcelog/Nami/
var namiLib = require("nami");
var namiConfig = {
host: "localhost",
port: 5038,
username: "admin",
secret: "secret5"
};
var logger = require('log4js').getLogger('App.astools');
var nami = new namiLib.Nami(namiConfig);
var amiConnected = false;
/*
nami.on('nami... | JavaScript | 0 | @@ -130,16 +130,18 @@
5038,%0A
+//
username
@@ -153,16 +153,18 @@
min%22,%0A
+//
secret:
@@ -173,17 +173,110 @@
ecret5%22%0A
-%7D
+ username: %22local_mgr%22,%0A secret: %22RpfpkKOYLilLwUSAqgSz%22%0A%7D;%0A%0Avar SIPPROVIDER = %22FonalityVoIP%22
;%0A%0Avar l
@@ -1343,17 +1343,16 @@
), ' ');
-;
%0A logge... |
d5ad7cdb21b3b12bfd5f060ef9602486a1c0b422 | remove shareWX's jquery | requirejs.config.js | requirejs.config.js | require.config({
baseUrl: './src/',
paths: {
jquery : '_lib/jquery.min',
swiper : '_lib/swiper/swiper.min',
gaodeMap : '_lib/gaodeMap',
jqueryCookie : '_lib/jquery.cookie.min',
jqueryLazyload: '_lib/jquery.lazyload.min',
jweixin : '_lib/jweixin-1.0.0',
alert... | JavaScript | 0 | @@ -2101,26 +2101,16 @@
: %5B
-'jquery',
'jweixin
|
59b206173d2005b5ac3e95fb4d0247dd164cefbb | remove dumb jsdoc from index.js; tweak exports | src/index.js | src/index.js | 'use strict';
/**
* Mocha's main entry point. Loads shims/globals (async-listener/zone.js
* depending on context)
* @module index
* @see https://www.npmjs.com/package/source-map-support
* @see https://www.npmjs.com/package/async-listener
* @see https://www.npmjs.com/package/zone.js
*/
import 'source-map-suppo... | JavaScript | 0.000001 | @@ -12,648 +12,253 @@
';%0A%0A
-/**%0A * Mocha's main entry point. Loads shims/globals (async-listener/zone.js%0A * depending on context)%0A * @module index%0A * @see https://www.npmjs.com/package/source-map-support%0A * @see https://www.npmjs.com/package/async-listener%0A * @see https://www.npmjs.com/package/zone.js... |
8653006d38cd784e4e0690b047fce76413e7dc24 | Add comments | src/index.js | src/index.js | const got = require('got');
const NodeCache = require('node-cache');
const querystring = require('querystring');
const pkg = require('../package.json');
const cache = new NodeCache();
const baseUrl = 'https://onionoo.torproject.org';
const endpoints = [
'summary',
'details',
'bandwidth',
'... | JavaScript | 0 | @@ -351,16 +351,63 @@
me'%0A%5D;%0A%0A
+// Returns cache max age from response headers%0A
function
@@ -634,16 +634,75 @@
%5B1%5D;%0A%7D%0A%0A
+// Returns a function to make requests to a given endpoint%0A
function
@@ -1583,16 +1583,61 @@
%7D);%0A%7D%0A%0A
+// Return object containing endpoint methods%0A
module.e... |
b8b03454737c2408a5d84f87a4e08f95f3e19735 | FIX update bootstrap dialogs to work with later versions of jquery | javascript/dashboard-bootstrap-dialogs.js | javascript/dashboard-bootstrap-dialogs.js |
window.SS = window.SS || {}
;(function($) {
var dialog = function(url, opts) {
var defaults = {
width: 400,
height: 400,
modal: true,
draggable: false,
resizable: false
};
var dialog = $("<div class='dialog-loading'></div>");
var options = $.extend({}, defaults, opts);
if ($(... | JavaScript | 0 | @@ -71,19 +71,64 @@
rl, opts
-) %7B
+, params) %7B%0A%09%09if (!params) %7B%0A%09%09%09params = %7B%7D;%0A%09%09%7D
%0A%09%09var d
@@ -497,16 +497,24 @@
get(url,
+ params,
functio
@@ -1323,16 +1323,38 @@
);%0A%09%0A%09$(
+document).on('click',
%22%5Bdata-d
@@ -1364,22 +1364,8 @@
og%5D%22
-).live(%22click%22
,... |
bf7c33c679a8c6f459f9341dbb160dcd3ba9a916 | Update format of welcome message and notification | api/services/formatter-service.js | api/services/formatter-service.js | let Config = require('../../config');
let url = require('url');
let webHook = url.resolve(Config.app.url, '/codeship/');
class FormatterService {
format(type, build) {
return defaultFormat(build)
}
getStartMessage(chatId) {
let hook = this.getWebHook(chatId);
return `${FormatterService.EMOJI.ship} Add this ... | JavaScript | 0 | @@ -308,72 +308,350 @@
ip%7D
-Add this URL to your Codeship notification settings:%0A%09%09%09%09$%7Bhook%7D
+Hi! I see you want to receive Codeship notifications.%0A%09%09%09%09Just add this URL as a Webhook to your Codeship notification settings to receive notifications in this conversation.%0A%09%09%09%09%0A%09%09... |
174cfe6a4881ab3a7dbdd6bbf5ff12a5812cad86 | add default mongodb config | api/src/config/default/mongodb.js | api/src/config/default/mongodb.js | module.exports = {
}
| JavaScript | 0.000001 | @@ -12,10 +12,55 @@
rts = %7B%0A
+ host: 'localhost:27017',%0A name: 'station'%0A
%7D%0A
|
d45ecd3133ecbb924ab2df127f1915e15ca58812 | Fix linter issues in Facebook module | js/components/legacy/creators/facebook.js | js/components/legacy/creators/facebook.js | /*jshint strict:false */
/*global FB */
define(function() {
return function(sandbox, $) {
'use strict';
var bEnabled = false;
var sPerms = 'public_profile,email,user_hometown,publish_actions';
function isEnabled() {
return bEnabled;
}
function showConnecting() {
$('.cnr-facebook... | JavaScript | 0 | @@ -2142,16 +2142,17 @@
val() !=
+=
1) %7B%0A
|
047605190b12cd91a4c361ad43e82b83922ca96d | Fix abbreviation list not showing | src/HeaderBoardList.js | src/HeaderBoardList.js | import React, { Component } from 'react';
import { Link } from 'react-router';
import Endpoints from './Endpoints';
import './styles/HeaderBoardList.css';
class HeaderBoardList extends Component {
componentDidMount() { this.fetchBoards(); }
componentWillReceiveProps() { this.fetchBoards(); }
render() {
let ... | JavaScript | 0.000018 | @@ -420,14 +420,20 @@
map(
-b
+d
=%3E
-b
+d.board
.abb
|
e1d4c81cf40868b9824b230d980125f320fbdddc | Make keyword searchable in resource viewing mode. | theme/static/js/custom.js | theme/static/js/custom.js | (function ($) {
// Used to instantiate clickable urls in dynamically generated items
$.fn.urlClickable = function () {
var item = $(this);
if (item.find(".isUrlClickable").length) {
return this; // Items already initiated
}
var originalText = item.text().trim();
... | JavaScript | 0 | @@ -4474,24 +4474,92 @@
/a%3E%3C/li%3E%22);%0A
+ li.find('a').attr(%22href%22, %22/search/?q=%22 + keywords%5Bi%5D);%0A
|
f7a450c8b8ea2c0fa24e5ad8befac73e05d8a644 | add kit func | kit/req.js | kit/req.js | /**
* Simple AMD Loader
*
* @create: 2014.11.3
* @update: 2014.11.6
* @author: enimo <enimong@gmail.com>
* @refer: define, require, AMD Draft
* @formatter&jslint: fecs xx.js --check
*/
(function(win, doc){
var require, define;
var _module_map = {},
_factory_map = {};
var head = doc.getElements... | JavaScript | 0 | @@ -607,16 +607,17 @@
quire_'%5D
+
= requir
@@ -959,32 +959,42 @@
urn void%0A **/%0A
+ require =
function requir
@@ -987,23 +987,16 @@
unction
-require
(deps, c
@@ -1292,24 +1292,33 @@
void%0A **/%0A
+ define =
function d
@@ -1315,23 +1315,16 @@
unction
- define
(argumen
@@ -2677,16 +2677,50 @@
%7B... |
f189aa9179146499941f5bee37cec0069019f81c | Use connectIf | grunt/tasks/browsers.js | grunt/tasks/browsers.js | "use strict";
module.exports = function (grunt) {
configuration.selenium.forEach(function (browser) {
grunt.registerTask(browser, [
"connect:server",
"exec:test" + browser.charAt(0).toUpperCase() + browser.substr(1) + "Verbose"
]);
});
};
| JavaScript | 0 | @@ -162,15 +162,10 @@
nect
-:server
+If
%22,%0A
|
8d9f781514cdb07a33e2dbaa3431928f0e08733b | Use strict node === node.parentNode comparison | js/pomf.js | js/pomf.js | /**
* Copyright (c) 2013 Peter Lejeck <peter.lejeck@gmail.com>
* Copyright (c) 2015 the Pantsu.cat developers <hostmaster@pantsu.cat>
*
* 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 w... | JavaScript | 0.000021 | @@ -2004,16 +2004,18 @@
(node =
+==
node.pa
|
d57bfc05c5081e06be6bc810c5751547880e8e33 | add error bg on error text | app/assets/javascripts/handler.js | app/assets/javascripts/handler.js | var errorHandler = {
Display: function(errorDiv, error) {
$(errorDiv).html('<p class="error">Error fetching ' + error + '.</p>');
},
Clear: function(id) {
var errorDiv = '#trend-' + id + ' .errors-txt';
$(errorDiv).remove();
}
};
| JavaScript | 0 | @@ -91,20 +91,24 @@
class=%22
-erro
+bg-dange
r%22%3EError
@@ -213,17 +213,16 @@
+ id + '
-
.errors-
|
87f3734ae8b3e020670b7c424c8f97d85a4badc7 | Remove console.log | src/index.js | src/index.js | // Description:
// Notify when a GitHub issue has a label applied.
// Dependencies:
// None
// Configuration:
// HUBOT_GITHUB_NOTIFIER_LABEL_FILTER (optional, comma seperated)
// Commands:
// None
// Notes:
// This script listens for webhooks configured on GitHub.
// Configure the GitHub webhooks to submit ... | JavaScript | 0.000004 | @@ -826,33 +826,8 @@
%5B%5D;%0A
-console.log(labelFilter);
%0A
|
a4746f6a0b1af583d6ab3b4bb144df919460d798 | Update rect.js | js/rect.js | js/rect.js | function Rect() {
this.x = Math.floor(Math.random() * (640 - 30));;
this.y = Math.floor(Math.random() * (480 - 30));;
this.velocity = Math.random() > 0.5 ? -1 : 1;
this.veleftright = 0;
};
Rect.prototype.draw = function(context) {
context.fillRect(this.x, this.y, 30, 30);
};
Rect.prototype.update = function... | JavaScript | 0 | @@ -508,55 +508,246 @@
put.
-right == true)%7B%0A this.veleftright = -5;%0A %7D
+left == true && player.input.jump == true)%7B%0A this.veleftright = 10;%0A %7Delse if(player.input.right == true)%7B%0A this.veleftright = -5;%0A %7Delse if(player.input.right == true && player.input.jump == true)%7B%0A th... |
99de549a08528960a132acb06d3cfd262ca5ce6a | refresh browsersync on changes in misc folder | gulpfile.js/tasks/misc.js | gulpfile.js/tasks/misc.js | var changed = require('gulp-changed');
var gulp = require('gulp');
var config = require('../config').misc;
gulp.task('misc', function() {
return gulp.src(config.src)
.pipe(changed(config.dest)) // Ignore unchanged files
.pipe(gulp.dest(config.dest));
});
| JavaScript | 0 | @@ -112,16 +112,60 @@
').misc;
+%0Avar browserSync = require('browser-sync');
%0A%0Agulp.t
@@ -310,14 +310,59 @@
g.dest))
+%0A .pipe(browserSync.reload(%7Bstream:true%7D))
;%0A%7D);%0A
|
51ea4c67745b1290bf2cac84c7bd2f54d7fa0550 | add volume up/down events | remote.js | remote.js | /*
* Remote controller uses socket.io to manage
* communications between the mobile app and
* the desktop popcorn-time app running
*/
try {
var os=require('os');
var localname = os.hostname();
console.log("local machine name: " +localname);
var ifaces=os.networkInterfaces();
// local IP's logs
for (var dev... | JavaScript | 0.000002 | @@ -1255,16 +1255,539 @@
%7D%0A%09%09%7D);%0A
+%0A%09%09socket.on(%22volume up%22, function()%7B%0A%09%09%09try %7B %0A%09%09%09%09var howLoudIsIt = videojs(%22video_player%22).volume(); %0A%09%09%09%09howLoudIsIt = howLoudIsIt + 0.1 %3E 1 ? 1 : howLoudIsIt + 0.1;%0A%09%09%09%09videojs(%22video_player%22).volume(howL... |
9e629e383317e80b14a6acb56605f2da9e089085 | Add en_US translation as fallback | translate.js | translate.js | import translations from './translations/accessibility-cloud.js-widget/translations';
function findLocaleWithCountry(localeWithoutCountry) {
const regexp = new RegExp(`^${localeWithoutCountry}_`);
return Object.keys(translations).find(locale => locale.match(regexp));
}
function translate(string, locale) {
const... | JavaScript | 0.000008 | @@ -522,16 +522,49 @@
locale);
+%0A const defaultLocale = 'en_US';
%0A%0A cons
@@ -770,16 +770,90 @@
%5D %7C%7C %7B%7D;
+%0A const translationWithDefaultLocale = translations%5BdefaultLocale%5D %7C%7C %7B%7D;
%0A%0A retu
@@ -960,24 +960,60 @@
%5Bstring%5D %7C%7C%0A
+ translationWithDefaultLocale %7C%7C%0A
... |
edb354596b739d04bc2d2f1dd973429520f2a1d1 | use lcovonly for line coverage to file | config/karma.conf.js | config/karma.conf.js | module.exports = function(config) {
var testWebpackConfig = require('./webpack.test.js');
var configuration = {
basePath: '',
frameworks: ['jasmine'],
// list of files to exclude
exclude: [],
/*
* list of files / patterns to load in the browser
*
... | JavaScript | 0 | @@ -844,17 +844,16 @@
'
-text-
lcov
+only
': '
|
46ab98cfa611616b002f9515c4b34a87b07daa8b | Change topic 'LayerControl' to 'layerControl' | viewer/js/gis/dijit/LayerControl/controls/_DynamicSublayer.js | viewer/js/gis/dijit/LayerControl/controls/_DynamicSublayer.js | /*eslint strict: 0*/
define([
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/on',
'dojo/dom-class',
'dojo/dom-style',
'dojo/dom-attr',
'dojo/fx',
'dojo/html',
'dijit/Menu',
'dijit/MenuItem',
'dojo/topic',
'dijit/_WidgetBase',
'dijit/_TemplatedM... | JavaScript | 0.000118 | @@ -3306,17 +3306,17 @@
ublish('
-L
+l
ayerCont
@@ -5637,8 +5637,9 @@
yer;%0A%7D);
+%0A
|
1d25ad82b60706ccd6cff6310b38a43f1a0be0b4 | Update karma.conf.js | config/karma.conf.js | config/karma.conf.js | module.exports = function(config){
var browsers, basePath, coverageReporter;
if(process.env.TRAVIS){
browsers = ["Firefox"];
basePath = '/home/travis/virtualenv/python2.7/src/opal/opal/static/js';
coverageReporter = {
type: 'lcovonly', // lcov or lcovonly are required for generating lco... | JavaScript | 0.000001 | @@ -361,19 +361,16 @@
'/../../
-../
coverage
|
566c1e2938ac7c03cc7559d60f8ba8c1f8dfd4ad | add meeting link grabber function | app/assets/javascripts/quizzes.js | app/assets/javascripts/quizzes.js | $(document).ready(function() {
console.log("Grabs meeting link!!!!!!");
var request = $.ajax({
url: "https://sandbox.liveh2h.com/tutormeetweb/rest/v1/meetings/createInstantMeeting",
method: "POST",
headers: {"Content-Type": "application/json"},
data: JSON.stringify({
"application... | JavaScript | 0 | @@ -1,9 +1,8 @@
-
$(docume
@@ -28,54 +28,112 @@
) %7B%0A
-%0A
-console.log(%22Grabs meeting link!!!!!!%22);%0A
+meetingLinkGrabber();%0A%0A%7D);%0A%0A// Grabs meeting URL and meeting ID%0Avar meetingLinkGrabber = function() %7B%0A
va
@@ -153,18 +153,16 @@
.ajax(%7B%0A
-
url:
@@ -248,18 +248,16 @@
g... |
fcd6e44c53ba2777f9153754f6e788d6b57dc10d | Use symmetric API for constantLayout | src/Layout/constant.js | src/Layout/constant.js | module.exports = constant;
var merge = require('ngraph.merge');
var random = require('ngraph.random').random;
var Rect = require('../Utils/rect.js');
/**
* Does not really perform any layouting algorithm but is compliant
* with renderer interface. Allowing clients to provide specific positioning
* callback and get... | JavaScript | 0.000001 | @@ -5017,16 +5017,18 @@
on (node
+Id
, x, y)
@@ -5063,26 +5063,25 @@
utNodes%5Bnode
-.i
+I
d%5D;%0A
|
5560a49cf968d86e379a9263a7cc7109add9a33d | use `return false` rather than `event.preventDefault()`. | app/assets/javascripts/replies.js | app/assets/javascripts/replies.js | jQuery(function() {
var current_selection = '';
jQuery(document).on('mouseup', 'body', function() {
current_selection = window.getSelection().toString();
})
jQuery('.split-off-ticket').bind('click', function(event) {
if (current_selection != '') {
var url = jQuery(this).attr('href') + '.json';
... | JavaScript | 0.000001 | @@ -578,30 +578,20 @@
-event.preventDefault()
+return false
;%0A
|
8fb6654e2439fc3e3e231207eb7532001666a267 | disable no-control-regex | addons/actions/src/lib/retrocycle.js | addons/actions/src/lib/retrocycle.js | import reviver from './reviver';
import { muteProperty } from './util';
import { CYCLIC_KEY } from './';
const pathReg = /^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\([\\"/bfnrt]|u[0-9a-zA-Z]{4}))*")])*$/;
export default function retrocycle(json) {
const $ = JSON.parse(json, reviver);
if (typeof $ !== 'object' || $... | JavaScript | 0.000001 | @@ -99,16 +99,61 @@
'./';%0A%0A
+// eslint-disable-next-line no-control-regex%0A
const pa
|
d469623c6b16273ec42676965f57fd0e55c5be15 | Update loading of modules in main entry point | src/index.js | src/index.js | define('mygame', ['lyria/game', 'lyria/localization/group', 'mygame/achievements', 'mygame/scenelist', 'mygame/prefablist', 'mygame/assetlist', 'mygame/i18n', 'lyria/prefab/manager'], function(Game, LocalizationGroup, achievements, sceneList, prefabList, assetList, i18n, PrefabManager) {'use strict';
// Create a new... | JavaScript | 0 | @@ -4,145 +4,406 @@
ine(
-'mygame', %5B'lyria/game', 'lyria/localization/group', 'mygame/achievements', 'mygame/scenelist', 'mygame/prefablist', 'mygame/assetlist',
+%5B'require'%5D, function(require) %7B'use strict';%0A%0A // Loading all necessary modules%0A var Game = require('lyria/game');%0A var LocalizationGr... |
5b3d6c1498159e9e221ad2a870147076c001de2b | Fix wrong MongoDB driver method name | src/database/adapters/mongodb/query/upsert.js | src/database/adapters/mongodb/query/upsert.js | 'use strict';
// Modify models
const upsert = function ({ collection, newData }) {
const func = newData.length === 1 ? upsertOne : upsertMany;
return func({ collection, newData });
};
const upsertOne = function ({ collection, newData: [data] }) {
const { _id: id } = data;
return collection.upsertOne({ _id: id... | JavaScript | 0.022958 | @@ -294,22 +294,23 @@
lection.
-upsert
+replace
One(%7B _i
@@ -322,16 +322,34 @@
%7D, data
+, %7B upsert: true %7D
);%0A%7D;%0A%0Ac
|
3ccad89eb5a56bf63d9d6b31ace917600c05c48c | Improve js framework | app/assets/javascripts/tuning.es6 | app/assets/javascripts/tuning.es6 | //= require rails-ujs
//= require turbolinks
const {matches, setData, getData} = Rails;
function meta(name) {
let meta = find(`meta[name=${name}]`);
return meta.getAttribute('content');
}
function find() {
let elements = findAll(...arguments);
return (elements.length > 0 ? elements[0] : null);
}
function fi... | JavaScript | 0.000002 | @@ -92,17 +92,20 @@
unction
-m
+getM
eta(name
@@ -126,16 +126,31 @@
= find(
+document.head,
%60meta%5Bna
@@ -457,24 +457,29 @@
e = document
+.body
;%0A select
@@ -603,22 +603,25 @@
unction
-closes
+findParen
t(elemen
@@ -1448,14 +1448,17 @@
t =
-closes
+findParen
t(ta
@@ -1769,16 +1769,31 @@
%7B%0A ... |
64652e9b83a1005f8fb0a7602e5c2510d3d74e31 | Remove unused deps | src/deep-db/lib/DynamoDB/AutoscaleDynamoDB.js | src/deep-db/lib/DynamoDB/AutoscaleDynamoDB.js | /**
* Created by AlexanderC on 3/14/16.
*/
'use strict';
import AWS from 'aws-sdk';
import Core from 'deep-core';
import DynamoDBThroughput from 'dynamodb-throughput';
export class AutoScaleDynamoDB {
/**
* @param {AWS.DynamoDB|AWS.DynamoDB.DocumentClient|*} dynamoDb
* @param {AWS.DynamoDB|AWS.DynamoDB.Doc... | JavaScript | 0.000001 | @@ -65,66 +65,9 @@
ort
-AWS from 'aws-sdk';%0Aimport Core from 'deep-core';%0Aimport D
+d
ynam
@@ -1965,17 +1965,17 @@
ghput =
-D
+d
ynamoDBT
|
65b0b3c1b973addcf54f626bf2e25048a6897ca5 | Update the JS simple-grid example | examples/simple-grid.js | examples/simple-grid.js | const Emeus = imports.gi.Emeus;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
Emeus.ConstraintLayout.prototype.pack = function(child, name=null, constraints=[]) {
let layout_child = new Emeus.ConstraintLayoutChild({ name: name });
layout_child.add(child);
this.add(layout_child);
layout_child.s... | JavaScript | 0 | @@ -393,16 +393,150 @@
d);%0A%7D;%0A%0A
+Emeus.ConstraintLayout.prototype.add_constraints = function(constraints=%5B%5D) %7B%0A constraints.forEach(this.add_constraint, this);%0A%7D;%0A%0A
const My
@@ -2891,16 +2891,45 @@
+this._layout.add_constraints(
%5B%0A
@@ -7792,58 +7792,8 @@
%5D
-.forEa... |
b50a7df5f66c8f2ee01130298eaaed04fedad3e9 | Clean up JS example | examples/simple-grid.js | examples/simple-grid.js | const Emeus = imports.gi.Emeus;
const GObject = imports.gi.GObject;
const Gio = imports.gi.Gio;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
Emeus.ConstraintLayout.prototype.pack = function(child, constraints=[]) {
let layout_child = new Emeus.ConstraintLayoutChild();
layout_child.add(child);
Gtk... | JavaScript | 0 | @@ -29,72 +29,8 @@
us;%0A
-const GObject = imports.gi.GObject;%0Aconst Gio = imports.gi.Gio;%0A
cons
@@ -250,47 +250,17 @@
-Gtk.Container.prototype.add.call(this,
+this.add(
layo
@@ -279,17 +279,8 @@
-for (let
cons
@@ -289,35 +289,18 @@
aint
- of constraints) %7B%0A
+s.forEach(
layo
@@ -326,... |
11400c3b36b3c6628b4095f7a14ca52cede63933 | make require.context filter more strictly, close: #30 | packages/bisheng-core/lib/utils/template-wrapper.nunjucks.js | packages/bisheng-core/lib/utils/template-wrapper.nunjucks.js | 'use strict';
const React = require('react');
const chain = require('ramda/src/chain');
const toReactComponent = require('jsonml-to-react-component');
const exist = require('exist.js');
const NotFound = require('{{ themePath }}/template/NotFound');
const data = require('./data.js');
const NProgress = require('nprogres... | JavaScript | 0.000002 | @@ -1128,16 +1128,24 @@
Path %7D%7D/
+template
$%7Btempla
@@ -1161,16 +1161,24 @@
e(/%5E%5C.%5C/
+template
/, '')%7D%60
|
8dacd57ac670d37a8cd2071e768458aefaaf8501 | fix comments | packet.js | packet.js |
var BROADCAST_MAC = "ff:ff:ff:ff:ff:ff";
function Packet(receiverAddress, transmitterAddress , sourceAddress, destinationAddress, step = 0) {
/* Required fields */
// One hop source and target
this.receiverAddress = receiverAddress;
this.transmitterAddress = transmitterAddress ;
// Multi-hop source and tar... | JavaScript | 0.000001 | @@ -173,33 +173,48 @@
One hop
-source and target
+receiver and transmitter address
%0A this.
@@ -329,14 +329,27 @@
and
-target
+destination address
%0A t
|
f0bc1f99edbd19316b1769a8ff0e03aac7355fbf | extend app.js controller | controller/app.js | controller/app.js | /**
*
* @author Andriy Oblivantsev <eslider@gmail.com>
*/
$(function() {
// create frontend controller to manipulate User inputs
window.application = new function() {
/**
* Request api
*/
this.query = function(act, request) {
if(!request) {
re... | JavaScript | 0.000002 | @@ -740,16 +740,23 @@
password
+, email
) %7B%0A
@@ -853,32 +853,62 @@
pass: password
+,%0A email: email
%0A %7D);
@@ -1602,24 +1602,488 @@
);%0A %7D
+;%0A%0A this.logout = function()%7B%0A this.query(%22logout%22);%0A %7D;%0A%0A this.getLogged... |
b3b100c572eee5d51d653d52f2f3b3579c5ba79f | fix failing coin toss function | jssnips/algorithms/coin_toss/coin_toss.js | jssnips/algorithms/coin_toss/coin_toss.js | function coinToss(n) {
// check if the parameter is valid
if (n instanceof String) {
throw `Invalid parameter ${n}`;
}
// counter variable to represent each toss
// this will be incremented after each toss as long as it is less that n
var tossCount = 0;
// create initial counter variables for eac... | JavaScript | 0.000018 | @@ -708,16 +708,20 @@
%0A%09return
+ %7BH:
headCou
@@ -722,16 +722,31 @@
eadCount
+, T: tailCount%7D
;%0A%7D%0A%0Amod
|
4d495f00498b2e91760daed6b27eba4d892ba3f9 | Add invite URL generation with accompanying command | src/index.js | src/index.js | import Rx from 'rxjs/Rx';
import Discord from 'discord.js';
import Keyv from 'keyv';
import randomItem from 'random-item';
import { pokemon as pokemonModel } from './pokemon';
const client = new Discord.Client();
const isLanguage = langName => entry => entry.language.name === langName;
const getNameOf = pkmn => pkm... | JavaScript | 0 | @@ -2679,16 +2679,481 @@
) =%3E %7B%0A%0A
+ if(process.env.DISCORD_CLIENT_ID != null) %7B%0A const clientId = process.env.DISCORD_CLIENT_ID;%0A const inviteUrl = %60https://discordapp.com/oauth2/authorize?&client_id=$%7BclientId%7D&scope=bot&permissions=0%60;%0A%0A console.log(%60Invite URL: $%... |
9aed55e43d3c04fba39fc36a3f0d71776dcb62f4 | add a workaround for prevent array iteration deoptimisation in v8, fixes #377 | packages/core-js/internals/check-correctness-of-iteration.js | packages/core-js/internals/check-correctness-of-iteration.js | var ITERATOR = require('../internals/well-known-symbol')('iterator');
var SAFE_CLOSING = false;
try {
var iteratorWithReturn = [7][ITERATOR]();
iteratorWithReturn['return'] = function () { SAFE_CLOSING = true; };
// eslint-disable-next-line no-throw-literal
Array.from(iteratorWithReturn, function () { throw 2;... | JavaScript | 0 | @@ -96,16 +96,34 @@
%0A%0Atry %7B%0A
+ var called = 0;%0A
var it
@@ -145,54 +145,88 @@
n =
-%5B7%5D%5BITERATOR%5D();%0A iteratorWithReturn%5B
+%7B%0A next: function () %7B%0A return %7B done: !!called++ %7D;%0A %7D,%0A
'return'
%5D =
@@ -221,19 +221,17 @@
'return'
-%5D =
+:
functio
@@ -236,... |
b7beda0d0eceb33ce82cba854c01d32b2285cc96 | Replace legacy grid dimensions. | src/user-picker/AvatarItem.js | src/user-picker/AvatarItem.js | /* @flow */
import React, { PureComponent } from 'react';
import { Animated, Easing, StyleSheet, View } from 'react-native';
import { Avatar, ComponentWithOverlay, RawLabel } from '../common';
import { IconCancel } from '../common/Icons';
const styles = StyleSheet.create({
wrapper: {
flexDirection: 'column',
... | JavaScript | 0 | @@ -327,17 +327,17 @@
inLeft:
-5
+8
,%0A ma
@@ -344,35 +344,19 @@
rgin
-Top: 5,%0A marginBottom: 5
+Vertical: 8
,%0A
|
b64ac31e65df646de5574dbcc88537a0f92c8fbf | Add colour to execution status. | minify.js | minify.js | #!/usr/bin/env node
const
fs = require('fs')
program = require('commander');
program
.version('0.0.1')
.description('A command line script to minify files.')
.option('-f, --file <file>', 'Specify the file to minify: minify -f thisFile.js')
.parse(process.argv);
if (program.file) {
/* Read the file... | JavaScript | 0 | @@ -46,16 +46,46 @@
e('fs')%0A
+ colours = require('colors')%0A
progra
@@ -110,16 +110,16 @@
nder');%0A
-
%0Aprogram
@@ -647,16 +647,95 @@
(err) %7B
+%0A console.log(filePath.blue.underline + ' minify unsuccessful'.red);%0A
throw e
@@ -737,16 +737,20 @@
row err;
+%0A
%7D;%0A
@@ -765,64 +7... |
c4419b2b7f7fc6c57fc40c050326791977b15800 | add word wrap and remove sync onChangeScrollTop | src/index.js | src/index.js | var cmark = require('commonmark');
var hljs = require('highlight.js');
var DomCreator = require('commonmark-dom-creator');
var htmlRenderer = new cmark.HtmlRenderer;
var creator = new DomCreator();
var parser = new cmark.Parser();
creator.onUpdate['CodeBlock'] = (node) => {
var info_words = node.info ? node.info.s... | JavaScript | 0 | @@ -3396,24 +3396,70 @@
markdown');%0A
+ editor.getSession().setUseWrapMode(true);%0A
var prev
@@ -4010,346 +4010,8 @@
%7D);%0A
- editor.getSession().on('changeScrollTop', function(e) %7B%0A var cursor = %7Brow: editor.getFirstVisibleRow(), column: 0%7D;%0A var d = mapCursor(creator.tree, cur... |
b83e65d58fcb40f2af915806877ec1dbad84cd11 | Remove repeated accordion label (#11950) | src/platform/site-wide/side-nav/components/DuplicateLineLabel.js | src/platform/site-wide/side-nav/components/DuplicateLineLabel.js | // Dependencies
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { get } from 'lodash';
// Relative
import { NavItemPropTypes } from '../prop-types';
import LabelText from './LabelText';
const DuplicateLineLabel = ({ depth, item }) => {
// Derive the item pro... | JavaScript | 0 | @@ -76,45 +76,8 @@
s';%0A
-import classNames from 'classnames';%0A
impo
@@ -102,16 +102,16 @@
odash';%0A
+
// Relat
@@ -167,45 +167,8 @@
es';
-%0Aimport LabelText from './LabelText';
%0A%0Aco
@@ -341,88 +341,8 @@
n');
-%0A const href = get(item, 'href');%0A const isSelected = get(item, 'isSelected');
%0A%0A ... |
933230961aab560885d717e1cd61d8eea26ebaeb | Update css function (#7) | template/config/rollup-plugin-vue.config.js | template/config/rollup-plugin-vue.config.js | import each from 'lodash/each';
import path from 'path';
import fs from 'fs';
import sass from 'node-sass';
export const pack = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'package.json'), 'utf8'));
function ensureDirectoryExistence(filePath) {
const directory = path.dirname(filePath);
if (directoryExists(... | JavaScript | 0 | @@ -881,17 +881,34 @@
s, (data
-,
+) =%3E %7B%0A const
filenam
@@ -908,22 +908,26 @@
filename
-)
=
-%3E %7B
+ data.id
%0A c
@@ -1208,13 +1208,10 @@
a.co
-ntent
+de
, (e
|
25d7fc160c4945e20fcee4e31bc6d17b19d2fac0 | Update tags.js | js/tags.js | js/tags.js | var audio = undefined;
function parseQuery(q)
{
var stage1 = q.slice(1).split("&");
var stage2 = [];
var stage3 = {};
for(var i=0;i<stage1.length;++i)
{
stage2[i] = stage1[i].split("=");
stage3[stage2[i][0]] = stage2[i][1];
}
return stage3;
}
var query = parseQuery(window.location.hash);
if(q... | JavaScript | 0.000001 | @@ -649,20 +649,40 @@
%22audio/
-scot
+lang/SCOTscotlandforever
.mp3%22;%0A
|
8430874b0edbad5a0a80f71e34965b8e539074e3 | allow unpublishing | api/controllers/ProjectController.js | api/controllers/ProjectController.js | var crypto = require('crypto');
var placeholderSlug = function() {
return crypto.randomBytes(3).toString('hex');
};
var editableAttributes = [
'community_id', 'title', 'intention', 'details', 'video_url', 'image_url', 'visibility'
];
var projectAttributes = project => _.extend(project.toJSON(), {
contributor_c... | JavaScript | 0.000001 | @@ -1331,16 +1331,93 @@
Date();
+%0A else if (req.param('unpublish'))%0A updatedAttrs.published_at = null;
%0A%0A Pr
|
88a03f23ba6fa1f40579d9ad6d4315f67fea9421 | replace console.log with logger | lib/message-generator.js | lib/message-generator.js | 'use strict';
const async = require('async');
const _ = require('underscore');
module.exports = class MessageGenerator {
constructor(scope, nodeManager, messageEmitter) {
this.scope = scope;
this.currentNode = 0;
this.sendInterval = 1;
this.deliveryTimeoutTime = 500;
this.n... | JavaScript | 0.998967 | @@ -1228,27 +1228,28 @@
-console.log
+logger.trace
('node d
@@ -1530,19 +1530,19 @@
-console.log
+logger.info
(%60se
|
a4abeb4fcb12cb2a94f7a5016f2dee7165fbd4bf | Remove now-unused fs require | models.js | models.js | var fs = require('fs');
var sequelize = require('sequelize');
var debug = require('debug')('echo:models');
var dbpath = process.env.DBPATH || 'db.sqlite';
var db = new sequelize('', '', '', {
dialect: 'sqlite',
storage: dbpath,
logging: debug
});
exports = module.exports = {
db: db,
Event: require('./models/ev... | JavaScript | 0 | @@ -1,28 +1,4 @@
-var fs = require('fs');%0A
var
|
12242e20a02656cc19bcbb0bb1b69a074967a5e2 | Add terpene search terms | app/queryterm/queryterm.js | app/queryterm/queryterm.js | 'use strict'
angular.module('antismash.db.ui.queryterm', [])
.controller('QueryTermCtrl', ['$scope', '$http', 'CategorySvc',
function ($scope, $http, CategorySvc) {
var vm = this;
vm.categories = CategorySvc.categories;
vm.getTerms = getTerms;
vm.remove = remove;
vm.add = add;
vm.swap = s... | JavaScript | 0.000003 | @@ -1826,32 +1826,354 @@
predictions'%7D,%0A
+ %7Bval: 'terpene', desc: 'Terpene synthase type', category: 'antiSMASH predictions'%7D,%0A %7Bval: 'terpenefromcarbon', desc: 'Terpene cyclisation from carbon atom', category: 'antiSMASH predictions'%7D,%0A %7Bval: 'terpenetocarbon', desc: 'Terpene c... |
65d6d38bae96269390434420829ade1372b30668 | Apply replacement with enter key | webextension/popup-events.js | webextension/popup-events.js | /* LanguageTool for Chrome
* Copyright (C) 2015 Daniel Naber (http://www.danielnaber.de)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or ... | JavaScript | 0 | @@ -850,55 +850,8 @@
%22;%0A%0A
-console.log(%22binding keys events for popup%22);%0A%0A
cons
@@ -3341,32 +3341,465 @@
EY:%0A %7B%0A
+ const row = selectedRow();%0A if (row) %7B%0A const replacements = row.getElementsByClassName(%0A REPLACEMENT_ACTIVE%0A ... |
9345537aba08753a6a3078d10e24df0f5f68d278 | Add stop sound for iphone | src/routes/BarmenOrder/components/BarOrdersView/BarOrdersView.js | src/routes/BarmenOrder/components/BarOrdersView/BarOrdersView.js | import React from 'react'
import classNames from 'classnames'
import BarOrdersList from '../BarOrdersList'
import './BarOrdersView.scss'
export class BarOrdersView extends React.Component {
componentWillReceiveProps (nextProps) {
const {
isNeedDingDong,
notNeedDingDong
} = nextProps
if (i... | JavaScript | 0.000003 | @@ -572,16 +572,20 @@
ySound (
+stop
) %7B%0A
@@ -770,16 +770,58 @@
.play()%0A
+ if (stop) %7B%0A audio.pause()%0A %7D%0A
%7D%0A%0A r
@@ -1156,16 +1156,24 @@
nClick=%7B
+() =%3E %7B
this.pla
@@ -1178,16 +1178,20 @@
laySound
+() %7D
%7D /%3E%0A
@@ -1978,37 +1978,114 @@
pleteOrder=%7B
-comp... |
02fffac9d8ccbd0fbdb003ed6aadf225ae23ffca | set width of team page | js/team.js | js/team.js | var startIndexs = new Array();
var designerPhotos = new Array(
"fandong/fandongZuopin/photo.jpg",
"fandong/tangxiZuopin/photo.jpg",
"fandong/xiaochunZuopin/photo.jpg"
);
function setStartIndexs()
{
initDesigners();
startIndexs[0] = designerInfoArray[0].numCases;
startIndexs[1] = 0;
startIndexs[2] = designerInfoA... | JavaScript | 0.000001 | @@ -1127,24 +1127,73 @@
oc ready%22);%0A
+ if(($(document).innerWidth()*0.7)%3C800)%0A%09%7B%0A
$(%22#left
@@ -1240,24 +1240,27 @@
)-800)/2);%0A%09
+
$(%22#body_mid
@@ -1274,24 +1274,27 @@
idth(800);%0A%09
+
$(%22#body_rig
@@ -1339,16 +1339,19 @@
00)/2);%0A
+%09%7D%0A
$(%22r
|
9b79417dedef86b32d472c386f23d0c75327d802 | update toDOM using firstElementChild | src/utils/formatters/toDOM.js | src/utils/formatters/toDOM.js | /* global parsers */
define('toDOM', function () {
var htmlToDOM = function (htmlStr) {
var container = document.createElement('div');
container.innerHTML = htmlStr;
return container.firstChild;
};
return htmlToDOM;
});
| JavaScript | 0 | @@ -210,16 +210,23 @@
er.first
+Element
Child;%0A
|
87ba287567a959f8ae64d8137237ed030bf19dac | add link to the legacy collection API | addon/-private/properties/collection.js | addon/-private/properties/collection.js | import { deprecate } from '@ember/application/deprecations';
import { warn } from '@ember/debug';
import { collection as mainCollection } from './collection/main';
import { collection as legacyCollection } from './collection/legacy';
/**
* @public
*
* Creates a enumerable that represents a collection of items. The... | JavaScript | 0 | @@ -247,16 +247,246 @@
blic%0A *%0A
+ * %3Cdiv class=%22alert alert-warning%22 role=%22alert%22%3E%0A * %3Cstrong%3ENote:%3C/strong%3E v1.14.x introduces the new collection API.%0A * You can see the legacy collection API in the %5Bv1.13.x docs%5D(/docs/v1.13.x/api/collection).%0A * %3C/div%3E%0A *%0A
* Creat
|
dc571ff68de288ce2a6c894b887d4108054f3fcf | Add url validation on frontend | app/components/generator-start.js | app/components/generator-start.js | import Ember from 'ember';
export default Ember.Component.extend({
siteUrl: null,
file: null,
fileName: null,
message: '',
isSaving: false,
actions:{
startComplete: function(){
var siteUrl = this.get('siteUrl');
var file = this.get('file');
if(!siteUrl && !file){
this.set('mes... | JavaScript | 0.000001 | @@ -21,16 +21,109 @@
mber';%0A%0A
+var isValidUrl = function(siteUrl) %7B%0A return /%5E(http%7Chttps):%5C/%5C/%5B%5E %22%5D+$/.test(siteUrl);%0A%7D;%0A%0A
export d
@@ -382,16 +382,40 @@
&& !file
+ %7C%7C !isValidUrl(siteUrl)
)%7B%0A
|
e875827a52ad23f635ce44ee22067098c3adce41 | fix issue where number of selected traits always showed the number 5 | js/source/legacy/CXGN/BreedersToolbox/FieldBook.js | js/source/legacy/CXGN/BreedersToolbox/FieldBook.js | /*jslint browser: true, devel: true */
/**
=head1 FieldBook.js
Dialogs for field book tools
=head1 AUTHOR
Jeremy D. Edwards <jde22@cornell.edu>
Bryan Ellerbrock <bje24@cornell.edu>
=cut
*/
var $j = jQuery.noConflict();
jQuery(document).ready(function($) {
get_select_box('traits', 'select_traits_for_trai... | JavaScript | 0.000002 | @@ -831,32 +831,35 @@
show_list_counts
+_fb
('trait_select_c
@@ -927,32 +927,32 @@
file%22).length);%0A
-
%7D%0A%0A
@@ -1263,24 +1263,41 @@
ait_file
-').val()
+ option:selected').length
;%0A
@@ -1322,16 +1322,19 @@
t_counts
+_fb
('trait_
@@ -1364,23 +1364,16 @@
selected
-.length
);%0A
... |
6725025e1ab3cfebad19f773283d77b701526119 | Improve naming for a method | lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js | lib/cartodb/models/mapconfig/adapter/aggregation-mapconfig-adapter.js | const AggregationProxy = require('../../aggregation/aggregation-proxy');
const { MapConfig } = require('windshaft').model;
const queryUtils = require('../../../utils/query-utils');
const MISSING_AGGREGATION_COLUMNS = 'Missing columns in the aggregation. The map-config defines cartocss expressions,'+
' interactivity fi... | JavaScript | 0.000337 | @@ -4813,37 +4813,24 @@
is._
-checkLayerAggregationMetadata
+shouldAdaptLayer
(con
@@ -5695,37 +5695,24 @@
_
-checkLayerAggregationMetadata
+shouldAdaptLayer
(co
|
6b2fca05fc967e08d68ed3241d7aada17a95f8ae | Make sure the icon gets shown when refreshing the page and grabbing suggestions from the cache. | extension/background.js | extension/background.js | const URL_REGEXS = [
/abcnews.go.com\/.+/i,
/arstechnica.com\/.+/i,
/bbc.co.uk\/.+/i,
/bbc.com\/.+/i,
/business-standard.com\/.+/i,
/cnn.com\/.+/i,
/economist.com\/.+/i,
/guardian.co.uk\/.+/i,
/theguardian.com\/.+/i,
/hollywoodreporter.com\/.+/i,
/huffingtonpost.com\/.+/i,
... | JavaScript | 0 | @@ -2556,16 +2556,50 @@
b) =%3E %7B%0A
+ chrome.pageAction.hide(tab.id);%0A
if (ch
@@ -2770,42 +2770,8 @@
%7D%0A
- chrome.pageAction.hide(tab.id);%0A
%7D);%0A
|
d956e545bb7e956620df80b3488c07e9cdf662e4 | fix failing tests | addon/components/lazy-render-wrapper.js | addon/components/lazy-render-wrapper.js | import Ember from 'ember';
const { get, $ } = Ember;
// https://github.com/emberjs/rfcs/issues/168
// TODO how will this work with "-on-component" instances?
export default function getParent(view) {
if (get(view, 'tagName') === '') {
// Beware: use of private API! :(
if (Ember.ViewUtils && Ember.ViewUtils.... | JavaScript | 0.000003 | @@ -2527,14 +2527,13 @@
S.in
-cludes
+dexOf
(pro
@@ -2538,16 +2538,21 @@
ropName)
+ %3E= 0
) %7B%0A%09%09%09%09
|
5292ce88f47dc431e1b03f7a42934e4b2568aeb0 | fix finish show icon custom markers | app/assets/javascripts/bus_routes.js | app/assets/javascripts/bus_routes.js | function drawPathGoogleRoutes(choose_routes_bus, choose_true_or_false, mypath) {
$.ajax({
url: "/bus_way",
data: {choose_routes_bus: choose_routes_bus, choose_true_or_false: choose_true_or_false},
success: function(data) {
var coordinate_bus = eval(data);
for(var i = 0; i < coordinate_bus.le... | JavaScript | 0 | @@ -2166,22 +2166,17 @@
on:
-%22./app
+'
/assets/
imag
@@ -2175,15 +2175,8 @@
ets/
-images/
mapi
@@ -2191,22 +2191,22 @@
ber_
-%22
+'
+ i +
-%22
+'
.png
-%22
+'
%0A
|
919b8dd65c0e7e324ba2dc03a639659b22690679 | Consolidate conditionals | lib/node_modules/@stdlib/math/base/dist/beta/quantile/lib/quantile.js | lib/node_modules/@stdlib/math/base/dist/beta/quantile/lib/quantile.js | 'use strict';
// MODULES //
var betaincinv = require( '@stdlib/math/base/special/betaincinv' );
var isnan = require( '@stdlib/math/base/utils/is-nan' );
// MAIN //
/**
* Evaluates the quantile function for a beta distribution with first shape parameter `alpha` and second shape parameter `beta` at a probability `p`... | JavaScript | 0.000023 | @@ -1214,37 +1214,14 @@
ta )
-%0A%09) %7B%0A%09%09return NaN;%0A%09%7D%0A%09if (
+ %7C%7C%0A%09%09
alph
@@ -1231,17 +1231,19 @@
= 0.0 %7C%7C
-
+%0A%09%09
beta %3C=
@@ -1250,35 +1250,13 @@
0.0
-) %7B%0A%09%09return NaN;%0A%09%7D%0A%09if (
+%7C%7C%0A%09%09
p %3C
@@ -1265,17 +1265,20 @@
0 %7C%7C
-
+%0A%09%09... |
4887edf58a69f0c6f94e66dc6029c32856b9c8c7 | Remove console.log | extension/js/content.js | extension/js/content.js | var getDatasetKeyFromURL = function () {
var pathArray = window.location.pathname.split('/'),
datasetKey = "";
if (pathArray[1] === "dataset") { // On GBIF website, get datasetKey from URL.
datasetKey = pathArray[2];
} else { // Elsewhere, e.g. demo pages, use demo datasetKey.
datase... | JavaScript | 0.000004 | @@ -2369,39 +2369,16 @@
rences;%0A
- console.log(rank);%0A
if (
@@ -2799,31 +2799,8 @@
es;%0A
- console.log(rank);%0A
|
033fb3bb0ffb4f9fe3ce0bc66f12c7fcbdd0cc44 | add button for addon | addon/instance-initializers/addroute.js | addon/instance-initializers/addroute.js | import Ember from 'ember';
export function initialize(applicationInstance) {
let router = applicationInstance.__container__.lookupFactory('router:main');
router.map(function(){
this.route('gittest');
});
navbarService: Ember.inject.service('navbar'),
activate(){
this.get('navbarService').navbarLabels.addObjec... | JavaScript | 0.000001 | @@ -75,22 +75,19 @@
) %7B%0Alet
-router
+app
= appli
@@ -139,131 +139,123 @@
oute
-r:mai
+:applicatio
n');%0A
-%09%0A
+let
router
-.map(function()%7B%0A%09this.route('gittest');%0A%7D);%0A%0A navbarService: Ember.inject.service('navbar'),%0Aactivate
+ = applicationInstance.__container__.lookupFactory('router:... |
e9507fe50dba96d52787b5b25f651e99c501cbbe | Fix indentation on example | addon/mixins/application-route-mixin.js | addon/mixins/application-route-mixin.js | import Ember from 'ember';
import Configuration from './../configuration';
const { inject, on } = Ember;
/**
The mixin for the application route; __defines methods that are called when
the session was successfully authenticated (see
{{#crossLink "SessionService/authenticationSucceeded:event"}}{{/crossLink}})
... | JavaScript | 0.000154 | @@ -629,26 +629,24 @@
ance) %7B%0A
-
var applicat
@@ -700,26 +700,24 @@
lication');%0A
-
var sess
@@ -777,26 +777,24 @@
sion');%0A
-
session.on('
@@ -828,26 +828,24 @@
unction() %7B%0A
-
applic
@@ -882,24 +882,20 @@
');%0A
-
%7D);%0A
-
sess
@@ -941,26 +941,24 @@
n() %7B... |
4555987670353867b7afadb87f335466f02a4b59 | read workers to run parallel tests | tasks/cucumber.js | tasks/cucumber.js | /*
* grunt-cucumberjs
* https://github.com/mavdi/grunt-cucumberjs
*
* Copyright (c) 2013 Mehdi Avdi
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
grunt.registerMultiTask('cucumberjs', 'Run cucumber.js features', function() {
var done = this.async();
va... | JavaScript | 0 | @@ -960,18 +960,24 @@
= %5B%5D;%0A%0A
-%09%09
+
if (opti
@@ -1018,19 +1018,28 @@
kers) %7B%0A
-%09%09%09
+
commands
@@ -1068,18 +1068,24 @@
rkers);%0A
-%09%09
+
%7D%0A%0A
@@ -1281,32 +1281,33 @@
forEach(function
+
(element, index,
@@ -1528,13 +1528,23 @@
) %7B%0A
-%09%09%09
+... |
1277485d54ccb7d9e0e1db9ac071f260df1d9506 | Increase test suite time out period | test/integration/modules/api/models/User.js | test/integration/modules/api/models/User.js | /* global require, module, process, console, describe, it, before, __dirname */
/* jshint -W097 */
/* jshint expr: true */
'use strict';
var
// paths
projectRootDir = '../../../../../',
appRootDir = projectRootDir + 'src/',
// test dependencies
mocha = require('mocha'),
expect =... | JavaScript | 0.000001 | @@ -690,16 +690,40 @@
on() %7B%0A%0A
+ this.timeout(10000);%0A%0A
before
|
5b23229f7697676a35060d0abe1db571e53b4dd8 | Support both nested arrays (categories) and plain arrays | src/UniversalSearch.js | src/UniversalSearch.js | import React from 'react';
class UniversalSearch extends React.Component {
constructor(props) {
super(props);
this.state = {
query: '',
results: new Set(),
};
this.inputQuery = this.inputQuery.bind(this);
this.filterMatches = this.filterMatches.bind(this);
this.renderMatches = t... | JavaScript | 0.000001 | @@ -707,23 +707,30 @@
if (
-typeof
+Array.isArray(
listToSe
@@ -750,21 +750,9 @@
%5Bi%5D%5D
- === 'object'
+)
) %7B%0A
@@ -1187,108 +1187,61 @@
-Object.keys(this.props.listToSearch).forEach((category) =%3E %7B%0A this.props.listToSearch%5Bcategory%5D
+const scan = (inputArr, category) =%3E %7B%0A ... |
e9d341085913bf52c5058a982656cc826f478a8d | Use static.simile.mit.edu/timeline/. | src/webapp/api/exhibit-api.js | src/webapp/api/exhibit-api.js | /*==================================================
* Simile Exhibit API
*
* Include Exhibit in your HTML file as follows:
* <script src="http://simile.mit.edu/exhibit/api/exhibit-api.js" type="text/javascript"></script>
*
*==================================================
*/
(function() {
var loadMe... | JavaScript | 0 | @@ -4087,32 +4087,39 @@
%22http://
+static.
simile.mit.edu/t
|
7500cdbb5fb2554e4dda66b9ad5aaa34fec42e5d | fix node version check | tools/nodeVersionCheck.js | tools/nodeVersionCheck.js | /* eslint-disable */
var exec = require('child_process').exec;
exec('node -v', function (err, stdout, stderr) {
if (err) throw err;
if (parseFloat(stdout) < 4) {
throw new Error('ERROR: React Slingshot requires node 4.0 or greater.');
process.exit(1);
}
}); | JavaScript | 0 | @@ -56,16 +56,17 @@
).exec;%0A
+%0A
exec('no
@@ -98,16 +98,8 @@
dout
-, stderr
) %7B%0A
@@ -120,16 +120,17 @@
ow err;%0A
+%0A
if (pa
@@ -144,16 +144,25 @@
t(stdout
+.slice(1)
) %3C 4) %7B
@@ -187,15 +187,8 @@
or('
-ERROR:
Reac
@@ -236,32 +236,12 @@
');%0A
- process.exit(1);%0A
%7D%0A%7D);
+%0A
|
1a09cf30a390af5516fe5365ab238650443ce7bf | remove default_text_search | app/assets/javascripts/front_page.js | app/assets/javascripts/front_page.js | // ...
//= require savage_beast/application
//= require jquery
//= require jquery_no_conflict
//= require prototype
//= require prototype_ujs
//= require effects
//= require dragdrop
//= require boxover
//= require scriptaculous
//= require controls
//= require builder
//= require top_menu
//= require dynamic_menu
//= ... | JavaScript | 0.000019 | @@ -343,36 +343,5 @@
dex%0A
-//= require default_text_search
%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.