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 |
|---|---|---|---|---|---|---|---|
bacd732df659a42d02057b07647b02867cb3a574 | Automatically expand the current panel group on dashboard expansion | horizon/static/horizon/js/horizon.accordion_nav.js | horizon/static/horizon/js/horizon.accordion_nav.js | horizon.addInitFunction(function() {
var allPanelGroupBodies = $('.nav_accordion > dd > div > ul');
allPanelGroupBodies.each(function(index, value) {
var activePanels = $(this).find('li > a.active');
if(activePanels.length === 0) {
$(this).slideUp(0);
}
});
// mark the active panel group
v... | JavaScript | 0.999916 | @@ -1844,24 +1844,75 @@
(%22active%22);%0A
+ activeDashPanel.closest('ul').slideDown();%0A
allP
|
60364ae99ffa63eae12dbf3c47b26e0db58044f9 | set all languages as default | app/client_config.js | app/client_config.js | // sometimes it's impossible to use html tags to style coin name, hence usage of _UPPERCASE modifier
export const APP_NAME = 'Голос'
// sometimes APP_NAME is written in non-latin characters, but they are needed for technical purposes
// ie. "Голос" > "Golos"
export const APP_NAME_LATIN = 'Golos'
export const APP_NAME_U... | JavaScript | 0.000202 | @@ -4434,18 +4434,19 @@
STIC = '
-ru
+all
'%0Aexport
|
4b69dc395aa1ec12f3b7ad0d07e2db3765c56418 | Set up endpoint for resetting an email | web.js | web.js | #!/usr/bin/env node
var express = require("express");
var app = express();
var Spooky = require('spooky');
// adoped from Heroku's [Getting Started][] and [Spooky][]'s sample
// [Getting Started]: https://devcenter.heroku.com/articles/getting-started-with-nodejs
// [Spooky]: https://github.com/WaterfallEngineering/Sp... | JavaScript | 0.000045 | @@ -791,27 +791,38 @@
unction
-spookyTest(
+resetAllWebsites(email
) %7B%0A
@@ -994,30 +994,13 @@
%5D':
-'login@codyhoover.com'
+email
%7D,
@@ -1072,23 +1072,218 @@
.get
-PageContent());
+CurrentUrl());%0A %7D);%0A casper.thenOpen('https://www.dropbox.com/forgot', function() %7B%0A this.fill(... |
56cb63ae61b200a74ecb34f58a2c6752b249fcd3 | Remove debug logging | lib/Element.js | lib/Element.js | /**
* `<Element />` component renders form value into one of then `<Field />`,
* `<Fieldset />` or `<RepeatingFieldset />` component:
*
* <Element value={...} />
*
* This component is the main building block for composite form elements such as
* `<Fieldset />` and `<RepeatingFieldset />` which use it to rende... | JavaScript | 0.000002 | @@ -2323,60 +2323,8 @@
e);%0A
- console.log(value.path, shouldComponentUpdate);%0A
|
6974cfb7b4b413d223b75b06f20cfaa9a784af01 | check Deps.run arg | packages/deps/deps.js | packages/deps/deps.js | (function () {
Deps = {};
Deps.active = false;
Deps.currentComputation = null;
var setCurrentComputation = function (c) {
Deps.currentComputation = c;
Deps.active = !! c;
};
var _debugFunc = function () {
// lazy evaluation because `Meteor` does not exist right away
return (typeof Meteor !... | JavaScript | 0.000001 | @@ -1580,29 +1580,9 @@
c =
-(f %7C%7C function () %7B%7D)
+f
;%0A
@@ -6664,24 +6664,126 @@
ction (f) %7B%0A
+ if (typeof f !== 'function')%0A throw new Error('Deps.run requires a function argument');%0A%0A
constr
|
0e4e504bc1a6ad8ea52e91eb6bf3453fa83c5cb8 | Test fix | app/controllers/frontpage.js | app/controllers/frontpage.js | document.addEventListener("DOMContentLoaded",function(){
$("#sendMessage").click(sendMessageClickEvent);
$("#sendMessageBox").click(sendMessageClickEvent);
setupPage({
bar: true
});
$("#messageField").focus(function() {
$("#message-hidden").show();
});
$("#close").click... | JavaScript | 0.000001 | @@ -1393,16 +1393,19 @@
ream=get
+Own
Stream('
|
f10e823f746f0cb4348dd7910f90544037b1e29e | Remove check for hostname | app/js/utils/window-utils.js | app/js/utils/window-utils.js | import { REGTEST_CORE_API_ENDPOINT } from '../account/store/settings/default'
export function openInNewTab(url) {
const win = window.open(url, '_blank')
win.focus()
}
export function isWindowsBuild() {
const isWindowsBuildCompileFlag = false
return isWindowsBuildCompileFlag === true
}
export function isWebA... | JavaScript | 0 | @@ -329,86 +329,8 @@
) %7B%0A
- const isWebAppHostnameFlag = ( getHostname() === 'browser.blockstack.org' )%0A
co
@@ -431,34 +431,8 @@
turn
- ( isWebAppHostnameFlag %7C%7C
isW
@@ -451,139 +451,12 @@
Flag
- )
%0A%7D%0A%0A
-function getHostname() %7B%0A const URL = document.createElement('a')%0A URL.href = wi... |
ba1c81359b007bd9e436649ec82c3646296421ed | Fix options.baseUrl | plugins/c9.static/unpacked_helper.js | plugins/c9.static/unpacked_helper.js | "use strict";
plugin.consumes = [
"db", "connect.static"
];
plugin.provides = [
"unpacked_helper"
];
module.exports = plugin;
function plugin(options, imports, register) {
var connectStatic = imports["connect.static"];
var assert = require("assert");
var baseUrl = options.baseUrl;
var ideBase... | JavaScript | 0.000006 | @@ -347,84 +347,112 @@
-var apiBaseUrl = options.apiBaseUrl;%0A var vfsBaseUrl = options.vfsBaseUrl
+assert(options.baseUrl, %22baseUrl must be set%22);%0A assert(options.ideBaseUrl, %22ideBaseUrl must be set%22)
;%0A
|
453333143c95f5e3e6a553091c0bbd448d6adcfe | Fix it | app/gist/route.js | app/gist/route.js | import Ember from 'ember';
export default Ember.Route.extend({
beforeModel () {
return this.session.fetch('github-oauth2').catch(function() {
// Swallow error for now
});
},
actions: {
saveGist (gist) {
var newGist = gist.get('isNew');
gist.save().then(() => {
this.notify.i... | JavaScript | 1 | @@ -934,32 +934,24 @@
ave().then((
-response
) =%3E %7B%0A
@@ -988,27 +988,23 @@
.edit',
-response.id
+newGist
);%0A
|
46c2d106af4fd3454de1e27fc01bf428387b95ec | Turkish language localize | plugins/history/trumbowyg.history.js | plugins/history/trumbowyg.history.js | /*/* ===========================================================
* trumbowyg.history.js v1.0
* history plugin for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Sven Dunemann [dunemann@forelabs.eu]
*/
(function ($) {
'use strict';
$... | JavaScript | 0.999807 | @@ -1928,32 +1928,182 @@
%0A %7D,%0A
+ tr: %7B%0A history: %7B%0A redo: 'Geri al',%0A undo: 'Yinele'%0A %7D%0A %7D,%0A
zh_t
|
99460f3fe552ada7b50a8d91129cbca075d71dea | remove debugger per susan | lumify-web-war/src/main/webapp/js/fields/date.js | lumify-web-war/src/main/webapp/js/fields/date.js |
define([
'flight/lib/component',
'tpl!./date',
'./withPropertyField',
'util/formatters',
'chrono'
], function(defineComponent, template, withPropertyField, formatters, chrono) {
'use strict';
return defineComponent(DateField, withPropertyField);
function DateField() {
this.be... | JavaScript | 0.000002 | @@ -1637,46 +1637,8 @@
) %7B%0A
- debugger;%0A
|
77fec66f6ae428df135db4c653ce00a88af6df08 | NOJIRA Default for isDev is false, not true | dev/configuration/env.js | dev/configuration/env.js | define(["/dev/configuration/config.js"], function(config) {
config.isDev = true;
// Tracking and statistics
config.Tracking = {
GoogleAnalytics: {
WebPropertyID : "UA-21809393-1"
}
};
});
| JavaScript | 0.9983 | @@ -76,11 +76,12 @@
v =
-tru
+fals
e;%0A%09
|
54944ea68c4cab6fd0db436c0b92523986055ac1 | change dbName and token-receiving for browserid2couch | controller.js | controller.js | define([
'require',
'./ajax',
'./oauth',
'./session',
'./sync',
'./versioning',
'./webfinger',
'./button'
], function(require, ajax, oauth, session, sync, versioning, webfinger, button) {
var deadLine;
var working=false;
var intervalTimer;
var options = {
onChange: function(key, oldValue, ne... | JavaScript | 0 | @@ -697,16 +697,40 @@
tegory:
+(location.protocol+'__'+
location
@@ -734,16 +734,17 @@
ion.host
+)
.replace
@@ -750,16 +750,35 @@
e(/%5C./g,
+ '_').replace(/:/g,
'_')%0A
@@ -1832,18 +1832,329 @@
uccess:
-cb
+function(data) %7B%0A try %7B%0A var responseObj = JSON.parse(data);%0A cb(... |
39e30ac8aafee4cb99c49b9541e98cc7bdf50e8f | refactor OrgList to use eS6 and array map | components/OrganisationList.js | components/OrganisationList.js | import React, { Component } from 'react'
import OrganisationListRow from './OrganisationListRow'
class OrganisationList extends Component {
render() {
var numberOfOrgs = this.props.organisations.length;
var rows = [];
var counter = 0;
for(var i=0; i<numberOfOrgs; i++) {
rows.push(<OrganisationListRow n... | JavaScript | 0.000001 | @@ -154,23 +154,18 @@
) %7B%0A
-%09%09var numberOfO
+ %09let o
rgs
@@ -194,237 +194,169 @@
ions
-.length;%0A%09%09var rows = %5B%5D;%0A%09%09var counter = 0;%0A%09%09for(var i=0; i%3CnumberOfOrgs; i++) %7B%0A%09%09%09rows.push(%3COrganisationListRow name=%7Bthis.props.organisations%5Bi%5D.name%7D id=%7Bthis.prop... |
0ae3c1072dc909a0c49fe8ba7ffedc4193916f5b | Add classname and default value to ui.input | components/ui/scripts/input.js | components/ui/scripts/input.js | /**
* Handles text input from users
*
* @class input
* @augments elation.ui.base
* @memberof elation.ui
*
* @param {object} args
* @param {string} args.type
* @param {string} args.value
* @param {string} args.inputname
* @param {string} args.placeholder
* @param {boolean} args.disabled
* @param {boolean} ... | JavaScript | 0.000001 | @@ -1441,24 +1441,128 @@
is.hide();%0A%0A
+ if (this.args.classname) %7B%0A elation.html.addclass(this.container, this.args.classname); %0A %7D%0A
elation.
@@ -2173,16 +2173,86 @@
v; %7D %7D);
+%0A%0A if (this.args.value) %7B%0A this.value = this.args.value;%0A %7D
%0A %7D%0A /
|
e97141f48cbe9a0e39eeffd8eac5e554d6b468e2 | add server address to resource whitelist | app/js/api/api.js | app/js/api/api.js | "use strict";
/**
* Module which communicates with thisissoon api to provide
* data and infomation to display in app
* @module thisissoon.api
* @author SOON_
*/
angular.module("thisissoon.api", ["config"]);
| JavaScript | 0 | @@ -197,16 +197,21 @@
%22, %5B
+%0A
%22config%22
%5D);%0A
@@ -206,12 +206,541 @@
%22config%22
+,%0A %22ngSanitize%22%0A%5D)%0A%0A.config(%5B%0A %22$sceDelegateProvider%22,%0A %22ENV%22,%0A /**%0A * @class config%0A * @param %7BService%7D $sceDelegateProvider%0A * @param %7BObject%7D ENV... |
c037ea8cffb148c8f5860ebad104e4e45967e0dd | Add more gemstore toys | src/static/gemstoreToyIds.js | src/static/gemstoreToyIds.js | export default [
67356, // Magic Carpet
49948, // Sonic Tunneling Tool
42664, // Sonic Tunneling Tool
49941, // Bloody Prince's Staff Toy
43092, // Bloody Prince's Staff Toy
39133, // Bouquet of Roses
49933, // Bouquet of Roses
43528, // Box of Chocolates
49935, // Enchanted Broom
49932, // Enchante... | JavaScript | 0 | @@ -800,16 +800,17 @@
%0A 43076
+,
// Wind
@@ -815,10 +815,115 @@
nd Kite%0A
+ 67881, // Aviator's Memory Box%0A 36172, // Bobblehead Laboratory%0A 66342 // Water Fight Balloon Bucket%0A
%5D%0A
|
873a2dfebe97754435811a43a6835e0b2efab4ed | Remove `crypto` dependency. | app/models/badge-instance.js | app/models/badge-instance.js | const dateFromUnixtime = require('../lib/date-from-unixtime')
const crypto = require('crypto')
const db = require('../lib/db');
const makeValidator = require('../lib/make-validator')
const sha1 = require('../lib/hash').sha1
const BadgeInstances = db.table('badgeInstances', {
fields: [
'id',
'slug',
'emai... | JavaScript | 0.000002 | @@ -59,41 +59,8 @@
e')%0A
-const crypto = require('crypto')%0A
cons
|
7f5ddd5a9afe8cb585ea758d6f3bf6d951cfc225 | remove console log | extra/commonStores.js | extra/commonStores.js | var querystring = require('querystring');
var fluxex = require('fluxex');
module.exports = {
// All current page and location related things stay here.
// We do not emitChange() in this store because this store should not trigger re-rendering directly.
// set fluxex.protocol to override default url.protoco... | JavaScript | 0.000003 | @@ -2461,56 +2461,8 @@
) %7B%0A
- console.log('different host!');%0A
|
77dcb98301ebd6f87dca3381d495a5f7c4dd0e36 | Remove extra character from whitespace replacement | app/js/filters.js | app/js/filters.js | 'use strict';
/* Filters */
angular.module('myApp.filters', []).
filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
}
}])
.filter('mapUrl', function() {
return function(e) {
var str = "";
fo... | JavaScript | 0.000426 | @@ -451,17 +451,16 @@
=== 0 ?
-
%0A
@@ -600,17 +600,16 @@
/g, '%2520
-C
');%0A
|
510fa19c8598353aac46108aaa49129710154118 | Remove commented out code. | website/app/application/provenance/iosteps/iostep/iostep-controller.js | website/app/application/provenance/iosteps/iostep/iostep-controller.js | Application.Provenance.Controllers.controller('provenanceIOStepsIOStep',
["$scope", "ProvDrafts", "$stateParams", "mcapi",
function ($scope, ProvDrafts, $stateParams, mcapi) {
$scope.model = {
additionalProperty: {},
pick_sample: {}
};
$sc... | JavaScript | 0 | @@ -1241,1448 +1241,8 @@
%7D;%0A%0A
-// $scope.loadMaterials = function () %7B%0A// mcapi('/materials')%0A// .success(function (data) %7B%0A// $scope.materials = data;%0A//%0A// if ($scope.doc.material) %7B%0A// ... |
42b416f44a3eedc7c0739ed9ea157c1f2431c2f2 | Rewrite getValue and add style and name. | common/select/classic/index.js | common/select/classic/index.js | //Dependencies.
var builder = require('focus').component.builder;
var React = require('react');
var type = require('focus').component.types;
/**
* Input text mixin.
* @type {Object}
*/
var inputTextMixin = {
/** @inheritdoc */
getDefaultProps: function getInputDefaultProps() {
return {
multiple: false... | JavaScript | 0 | @@ -1094,24 +1094,26 @@
urn
-this.get
+React.find
DOMNode(
).va
@@ -1108,16 +1108,20 @@
DOMNode(
+this
).value;
@@ -2016,16 +2016,88 @@
.value%7D%0A
+ className=%7Bthis.style.className%7D%0A name=%7Bthis.props.name%7D%0A
@@ -2127,16 +2127,25 @@
nChange%7D
+%0A
%3E%0A
|
9045c819473d7a19847230bfa95fa166cef7b8f8 | fix import path | src/stores/modals_reducer.js | src/stores/modals_reducer.js | import ModalsConstants from '../constants/modal_constants';
const initialState = {
showSettings: false,
showError: false,
errorMessage: null,
};
const modals = (state = initialState, action) => {
switch(action.type) {
case ModalsConstants.MODALS_OPEN_SETTINGS:
return {
...state,
show... | JavaScript | 0.000007 | @@ -40,16 +40,17 @@
ts/modal
+s
_constan
|
d03329519501abce9f755fb3f907d0a27f3c3aa9 | Fix React import for Jest | server/zanata-frontend/src/scripts/silence-React-15-deprecations.js | server/zanata-frontend/src/scripts/silence-React-15-deprecations.js | import React from 'react';
// From https://gist.github.com/turadg/9bcf08a7279e82a030a645250639fe6e
// Also needed for TypeScript, not just Flow
/**
* Since React v15.5, there's a warning printed if you access `React.createClass` or `React.PropTypes`
* https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#new-depre... | JavaScript | 0.000002 | @@ -1,15 +1,20 @@
import
+* as
React fr
|
112445f4fe2ed1704038f13bf48579dec52defe8 | drop the getCollection helper | app/js/mongodb.js | app/js/mongodb.js | const Settings = require('settings-sharelatex')
const { MongoClient, ObjectId } = require('mongodb')
const clientPromise = MongoClient.connect(Settings.mongo.url)
async function getCollection(name) {
return (await clientPromise).db().collection(name)
}
async function waitForDb() {
await clientPromise
}
const db... | JavaScript | 0 | @@ -162,101 +162,8 @@
l)%0A%0A
-async function getCollection(name) %7B%0A return (await clientPromise).db().collection(name)%0A%7D%0A%0A
asyn
@@ -263,16 +263,65 @@
on () %7B%0A
+ const internalDb = (await clientPromise).db()%0A%0A
db.mes
@@ -324,34 +324,36 @@
.messages =
-await getC
+internalDb.c
ollection('... |
f98e7ae6ac2794aa18eb84df0e4ab9b1d5190c30 | Bump bootstrap and bootswatch deps | blueprints/ember-cli-bootswatch/index.js | blueprints/ember-cli-bootswatch/index.js | /*jshint node:true*/
module.exports = {
description: 'Add bower dependencies for bootstrap and bootswatch to the project',
normalizeEntityName: function() {
// allows us to run ember -g ember-bootstrap-switch and not blow up
// because ember cli normally expects the format
// ember generate <entitiyNa... | JavaScript | 0 | @@ -464,16 +464,17 @@
tstrap',
+
target:
@@ -480,17 +480,17 @@
: '%5E3.3.
-6
+7
'%7D,%0A
@@ -530,9 +530,9 @@
3.3.
-6
+7
'%7D%0A
|
2dc2bee7d7ee9b1021d1f3a574cbbd81b8d43776 | Update Message.js | lib/Message.js | lib/Message.js | "use strict";
function Message(options) {
this.raw ='';
this.imei = '';
this.command = '';
this.commandText = '';
this.event = '';
this.eventText = '';
this.data = '';
// Fill in properties
if (typeof options === 'object') {
for (var key in options) {
if (typeof this[key] !== 'undefined') ... | JavaScript | 0.000001 | @@ -1204,22 +1204,35 @@
unction
-Config
+ServerConfiguration
(options
@@ -1432,16 +1432,101 @@
seconds%0A
+ this.tracker_baseport%09 = 5005;%09// first port to start tracker protocol servers on%0A
%0A //
@@ -1781,23 +1781,49 @@
n,%0A%09
-Config%09:%09Config
+ServerConfiguration%09:%09ServerConfiguration
%0... |
30dbc64e247046a5b76ba521dceb00aee39bd4d5 | fix karma tests by including unique filter | app/karma.conf.js | app/karma.conf.js | // Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
... | JavaScript | 0 | @@ -740,24 +740,81 @@
p-tpls.js',%0A
+ 'app/bower_components/angular-ui-utils/unique.js',%0A
'app/b
|
122d2c03149494ec3cd98aa596b4b89a538396bf | Fix bug | app/scripts.babel/friends.js | app/scripts.babel/friends.js | const PAGE_SIZE = 1000;
const PAGES_TO_LOAD = 3;
function parseRow(row, hasFlag) {
const profileLink = row.children[1 + hasFlag].firstChild;
const profile = {
id: getQueryVariable('id', profileLink.getAttribute('href')),
rank: +row.children[0].innerHTML,
name: profileLink.innerHTML,
rating: +row.ch... | JavaScript | 0.000001 | @@ -5628,23 +5628,64 @@
d);%0A
-profile
+if (friends.hasOwnProperty(myId)) %7B%0A friend
s%5BmyId%5D.
@@ -5691,24 +5691,26 @@
.me = true;%0A
+
replaceR
@@ -5720,16 +5720,22 @@
list();%0A
+ %7D%0A
%7D);%0A%7D)
|
70a420fec56981f49e19e6d5aeae32fe5f1397ec | fix typo | lib/NIWAapp.js | lib/NIWAapp.js | var µ=require("Morgas");
(function(µ,SMOD,GMOD,HMOD,SC){
var WORKER=GMOD("nodeWorker");
SC=SC({
File:"File",
Promise:"Promise",
fillResponse:require.bind(null,"./lib/fillResponse")
});
var LOG=require("../logger");
var URL=require("url");
var querystring=require("querystring");
var NIWAapp=µ.Class(WOR... | JavaScript | 0.999991 | @@ -169,12 +169,8 @@
,%22./
-lib/
fill
|
327b08ad5c882f0551996059c86d742013014fe0 | Create and set model association objects in the initialize method, | app/scripts/models/resume.js | app/scripts/models/resume.js | define([
'underscore',
'backbone',
'models/profile',
'models/address',
'collections/item'
], function (_, Backbone, Profile, Address, ItemCollection) {
'use strict';
var ResumeModel = Backbone.Model.extend({
defaults: {
name: ''
},
hasOne: ['profile', 'address'],
hasMany: ['items'... | JavaScript | 0 | @@ -321,20 +321,25 @@
%5D,%0A%0A
-pars
+initializ
e: funct
@@ -346,135 +346,30 @@
ion(
-response) %7B%0A var r;%0A if (response.resume) %7B%0A r = response.resume;%0A %7D else %7B%0A r = response;%0A %7D
+attributes, options) %7B
%0A
@@ -418,19 +418,27 @@
-r.
+this.set... |
04d78151bbc345afb0cb1c69ad2022c225c891f5 | Set function that builds request link for trains station nearby | app/services/trasport-api.js | app/services/trasport-api.js | import Ember from 'ember';
/**
* @name TrasportApi service
* @desc Fetches a data from trasportApi
* @param { Object } data - lat and lng from google api, time and date are optional
*/
export default Ember.Service.extend({
requestDataFromTrasportApi (data) {
/* global fetch */
return fetch(this.buildRequestL... | JavaScript | 0 | @@ -2286,16 +2286,282 @@
;%0A %7D%0A
+ %7D,%0A%0A buildNearbyStationsLink (data) %7B%0A const apiKey = '210cd3d0b88f32603edc631a13ce14f9';%0A const apiId = '81d2c3ad';%0A return %60http://transportapi.com/v3/uk/train/stations/near.json?app_id=$%7BapiId%7D&app_key=$%7BapiKey%7D&lat=$%7Bdata.lat%7D&lon=$%7... |
8fe6121e33ffd5b7e30e83bfa8194ecad8f74f20 | add here basemap | lib/assets/javascripts/cartodb3/editor/layers/basemap-content-view.js | lib/assets/javascripts/cartodb3/editor/layers/basemap-content-view.js | var _ = require('underscore');
var Backbone = require('backbone');
var CoreView = require('backbone/core-view');
var BasemapHeaderView = require('./basemap-content-views/basemap-header-view');
var BasemapCategoryView = require('./basemap-content-views/basemap-category-view');
var BasemapSelectView = require('./basemap-... | JavaScript | 0 | @@ -1071,16 +1071,91 @@
om.tpl')
+,%0A here: require('./basemap-content-views/basemap-icons/basemap-here.tpl')
%0A%7D;%0A%0Amod
|
7edd0fb3ff354e9dfde00a5438dddcaa149fdca7 | disable componentWillReceiveProps in loginmodal to see if build succeeds | components/Login/LoginModal.js | components/Login/LoginModal.js | import React from 'react';
import Modal from 'react-modal';
import {connectToStores} from 'fluxible-addons-react';
import {navigateAction} from 'fluxible-router';
import userSignIn from '../../actions/user/userSignIn';
import userSignOut from '../../actions/user/userSignOut';
import UserProfileStore from '../../stores/... | JavaScript | 0 | @@ -1627,32 +1627,35 @@
n false;%0A %7D%0A%0A
+/*%0A
componentWil
@@ -2010,24 +2010,31 @@
%7D%0A %7D
+%0A */
%0A%0A compon
|
f335eace4bd95cbf610f2511aa75eb72172d6c44 | Simplify threshold-dependent mouse click suppression. | src/scripts/commons/event-handlers.js | src/scripts/commons/event-handlers.js | /* eslint no-shadow: 0 */
// External
import * as d3 from 'd3';
import isFunction from '../../../node_modules/lodash-es/isFunction';
// Internal
import { ExtendableError } from './errors';
import { mergeSelections } from './d3-utils';
export class LimitsUnsupportedFormat extends ExtendableError {
constructor (mess... | JavaScript | 0 | @@ -2259,37 +2259,9 @@
et d
-X;%0A let dY;%0A let mouseMoved
+2
;%0A%0A
@@ -2295,21 +2295,9 @@
d
-X = 0;%0A dY
+2
= 0
@@ -2700,55 +2700,21 @@
);%0A
- if (!mouseMoved) %7B%0A
+%0A
d
-X
+2
+=
-Math.abs
(d3.
@@ -2725,150 +2725,54 @@
t.dx
-);%0A dY += Math.abs(d3.event.dy);%0A ... |
ff90c9ea931ca669f339696299ab1bbddb39f549 | Use a link tag instead of style, to get sourcemaps to work | ChunkWithStyleTagTemplate.js | ChunkWithStyleTagTemplate.js | var ConcatSource = require("webpack/node_modules/webpack-core/lib/ConcatSource");
function ChunkWithStyleTagTemplate(chunkTemplate) {
this.chunkTemplate = chunkTemplate;
}
module.exports = ChunkWithStyleTagTemplate;
ChunkWithStyleTagTemplate.prototype.updateHash = function(hash) {
hash.update("ChunkWithStyleTagTemp... | JavaScript | 0 | @@ -642,20 +642,75 @@
es)+%22));
+%5Cn%22);%0A%09%09source.add(%22function ___go_js_go_go_go___() %7B%5Cn
%22);%0A
-
%09%7D%0A%09sour
@@ -781,16 +781,67 @@
ents));%0A
+%09if (chunk._chunkStyles) %7B%0A%09%09source.add(%22%5Cn%7D%22);%0A%09%7D%0A
%09source.
@@ -908,21 +908,20 @@
%7B%0A%09var
-style
+link
= doc... |
83cee78380944f271def49c0b134608729e9d6b8 | clear search | display/resources/app.js | display/resources/app.js | "use strict";
var columns = 0,
target = '',
API_KEY = 'd1b885b8d202ab320717b54d9265e360db151e69be811f38da2f24fdd09333a5',
VTRANS_API = 'https://vtransapi.aot.state.vt.us/api/v2/',
searchIndex=[],
tags = [],
tagIcons = ["chart","map","data"],
iconPath = "http://www.aot.state.vt.us/legos/display/resources/icons... | JavaScript | 0.000001 | @@ -3461,30 +3461,75 @@
emoveClass('
-active
+btn-primary');%0A%09%09$('.tags .btn').addClass('btn-info
');%0A%09%09search
@@ -3594,32 +3594,46 @@
%0A%09%09$('.tags .btn
+:not(%22.clear%22)
').removeClass('
@@ -3636,22 +3636,24 @@
ss('
-active
+btn-info
');%0A%09%09$(
'thi
@@ -3652,67 +3652,196 @@
%09%09$(
-'
... |
b65f79e215077365076540486657d84c860ef82d | Make the vue Account title dynamic. | components/account/form.vue.js | components/account/form.vue.js | const app = require('remote').require('app');
const jetpack = require('fs-jetpack').cwd(app.getAppPath());
var Vue = require('vue');
//exports.formAccount = new Vue({
exports.formAccount = Vue.component('comp-4yb-form-account', {
data: function () {
return {
title: "Add an Account",
... | JavaScript | 0.000002 | @@ -1864,16 +1864,101 @@
ewData;%0A
+ this.account._id ? this.title = %22Edit Account%22 : this.title = %22Add Account%22;%0A
|
c9b9d49ee3372aabf16ce6397c525967a7e1d243 | change onStackEnd context to self to be conssistent | lib/Runtime.js | lib/Runtime.js | 'use strict';
var util = require('./util');
var Stack = require('./Stack');
var __slice = Array.prototype.slice;
exports = module.exports = Runtime;
/**
# Runtime API
**/
function Runtime(props){
if(!(this instanceof Runtime)){
return new Runtime(props);
}
util.merge(this, props);
this.Stack = Stack.cre... | JavaScript | 0.99995 | @@ -2428,20 +2428,19 @@
.apply(s
-tack
+elf
, %5Bnull%5D
|
e2a6ce6ae18f16b5ceed4eb2966827835aad2c91 | Update license header | lib/node_modules/@stdlib/_tools/eslint/rules/no-redeclare/lib/main.js | lib/node_modules/@stdlib/_tools/eslint/rules/no-redeclare/lib/main.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -612,40 +612,46 @@
e.%0A*
-/%0A%0A'use strict';%0A%0A/*%0A* This code
+%0A*%0A* ## Notice%0A*%0A* This implementation
is
@@ -822,20 +822,16 @@
Volodin.
-%0A*%0A*
The imp
@@ -1024,21 +1024,17 @@
t.%0A*
-/%0A%0A/*%0A* ESLin
+%0A* %60%60%60tex
t%0A*
@@ -2161,17 +2161,38 @@
TWARE.%0A*
-/
+ %60%60%60%0A*/%0A%0... |
6b92b9b57b0251b8e41bc545db364a7e61b197b3 | Fix confirm owner | components/accounts/factory.js | components/accounts/factory.js | const Property = use('core/property');
const Errors = use('core/errors');
const AccountsRepository = require('./repository');
const ROLES = require('./enums/roles');
const Tools = require('./tools');
const AccountsDefinition = {
... | JavaScript | 0 | @@ -1382,17 +1382,16 @@
.account
-s
.id)) %7B%0A
|
7f5b15d546e12cbd9edce9dabb8f5090ae10864d | add autokana script | assets/js/custom_head.js | assets/js/custom_head.js | $("h1.page__title").text(
$.trim(
$("h1.page__title").text()
)
).lettering();
$(function() {
var topBtn = $('#page-top');
topBtn.hide();
//スクロールが100に達したらボタン表示
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
topBtn.fadeIn();
} else {
topBtn.fadeOut();
}
});
//スクロールしてトップ
topBtn.clic... | JavaScript | 0.000001 | @@ -408,16 +408,93 @@
);%0A%7D);%0A%0A
+$(document).ready(%0A%09function() %7B%0A%09%09$.fn.autoKana('#name', '#kana', %7B%7D);%0A%7D);%0A%0A
$(docume
|
bbd821afbf99f25e209446171880a06823cb22aa | change card submission form (#1377) | imports/store/give/saga/paymentForm.js | imports/store/give/saga/paymentForm.js | import { PropTypes } from "react";
const CreditCardForm = ({ num, exp, ccv }) => (
<fieldset>
<input readOnly name="billing-cc-number" value={num} />
<input readOnly name="billing-cc-exp" value={exp} />
{ccv && <input readOnly name="billing-cvv" value={ccv} />}
</fieldset>
);
CreditCardForm.propTypes ... | JavaScript | 0 | @@ -58,16 +58,19 @@
= (%7B num
+ber
, exp, c
@@ -148,16 +148,19 @@
lue=%7Bnum
+ber
%7D /%3E%0A
@@ -328,16 +328,19 @@
%7B%0A num
+ber
: PropTy
|
190f7cf249f054aac8d03cd27cd44865c830938b | Add Chokidar to Watcher | lib/Watcher.js | lib/Watcher.js | class Watcher {
constructor(basePath, emitter, log) {
this.basePath = basePath;
this.emitter = emitter;
this.log = log;
}
}
module.exports = Watcher;
| JavaScript | 0 | @@ -1,8 +1,77 @@
+const chokidar = require(%22chokidar%22);%0Aconst path = require(%22path%22);%0A%0A
class Wa
@@ -196,16 +196,245 @@
= log;%0A
+ this.watch = chokidar.watch();%0A%0A this.watch.on(%22change%22, filePath =%3E %7B%0A const location = path.relative(basePath, filePath);%0A log.info(%22Ch... |
7923070455f6ba540b64426229780e134ebeac73 | fix tmp dir | lib/android.js | lib/android.js | 'use strict';
const fs = require('fs');
const path = require('path');
const ADB = require('macaca-adb');
const logger = require('./common/logger');
const xml2map = require('xml2map');
const UIAutomator = require('uiautomator-client');
const _ = require('./common/helper');
var adb;
var uiautomator;
exports.dumpXMLAn... | JavaScript | 0.000003 | @@ -422,127 +422,131 @@
%0A%0A
-const tmpDir = adb.getTmpDir();%0A const xmlData = yield adb.shell(%60cat $%7BtmpDir%7D/macaca-dump.xml%60)
+var result = yield uiautomator.send(%7B%0A cmd: 'getTmpDir',%0A args: %7B%0A %7D%0A %7D);%0A var tmpDir = result.value
;%0A
+%0A
-const xmlHackData
+var xml
... |
e255657f2e8f159388f18c302f2d846366cb9d64 | update file /lib/account.js | lib/account.js | lib/account.js | var mbaasApi = require('fh-mbaas-api');
var q = require('q');
var http = require('http');
var Account = function () {
this.login = oAuthPostLogin;
/**
* This function consumes the sessionToken, and the authResponse
*
* @param {String} sessionToken session token returned by the OAuth mbaas
... | JavaScript | 0.000002 | @@ -563,16 +563,21 @@
.log(req
+.body
);%0A
|
275c8c255c8e6c891b7ba4a0e892029f6f94abac | clean up enable AP | app/public/app.js | app/public/app.js | "use strict";
/***
* Define the app and inject any modules we wish to
* refer to.
***/
var app = angular.module("RpiWifiConfig", []);
/******************************************************************************\
Function:
AppController
Dependencies:
...
Description:
Main application controller
\*... | JavaScript | 0 | @@ -4841,20 +4841,19 @@
eplace:
-fals
+tru
e,
|
808314f0a50fab04f4ec303a168264da4ce34f89 | Fix AMEX scraper. | application/chrome/content/wesabe/fi-scripts/com/americanexpress/login.js | application/chrome/content/wesabe/fi-scripts/com/americanexpress/login.js | wesabe.provide('fi-scripts.com.americanexpress.login', {
dispatch: function() {
tmp.authenticated = page.present(e.logout.link);
if (!tmp.authenticated) {
if (page.present(e.login.error.general)) {
job.fail(401, 'auth.creds.invalid');
} else if (page.present(e.login.error.blank)) {
... | JavaScript | 0 | @@ -100,31 +100,31 @@
ated = page.
-present
+visible
(e.logout.li
@@ -1197,32 +1197,106 @@
@type=%22text%22%5D',%0A
+ '//form%5B@name=%22ssoform%22%5D//input%5B@name=%22UserID%22%5D%5B@type=%22text%22%5D',%0A
'//inp
@@ -1741,32 +1741,112 @@
e=%22password%22%5D',%0A
+ '//form%5B@name=%22... |
8179ec83f10cbc3439ad5e04ed0b6abd4361953e | remove some varriables for readability | tests/cases/dom/manipulate/replace.js | tests/cases/dom/manipulate/replace.js | import QUnit from "qunitjs";
import {replace} from "../../../../dom/manipulate";
QUnit.module("dom/manipulate/replace()",
{
beforeEach: () =>
{
document.getElementById("qunit-fixture").innerHTML = `
<div id="before"></div>
<div id="test"></div>
... | JavaScript | 0.000004 | @@ -459,24 +459,24 @@
const
-elements
+children
= docum
@@ -541,178 +541,46 @@
t re
-ference = document.getElementById(%22test%22);%0A const replacement = document.createElement(%22p%22);%0A const index = Array.prototype.indexOf.call(elements, reference
+placement = document.createElement(%22p%22
... |
a6f26363c23adaf8d4a4f30022a08c15496eb5fd | Fix #547 add farfrommoscow | connectors/v2/farfrommoscow.js | connectors/v2/farfrommoscow.js | 'use strict';
/* global Connector */
Connector.playerSelector = '.player-name';
Connector.artistSelector = '#playing h2';
Connector.trackSelector = '#playing h3';
Connector.isPlaying = function () {
return !$('#controls a[title=Play] i').is(':visible');
};
| JavaScript | 0 | @@ -65,198 +65,835 @@
= '.
-player-name';%0A%0AConnector.artistSelector = '#playing h2';%0A%0AConnector.trackSelector = '#playing h3';%0A%0AConnector.isPlaying = function (
+global-content';%0A%0AConnector.isPlaying = function () %7B%0A%09return $('.player-buttonPause').length ? true : $('.Artist-Mini-Playing').length... |
c37821c2490cddacfa33620fae5b3ae815535fa5 | fix console/882 | tests/content/console/882/issue882.js | tests/content/console/882/issue882.js | function runTest()
{
FBTest.sysout("issue882.START");
FBTest.openNewTab(basePath + "console/882/issue882.html", function(win)
{
FBTest.openFirebug();
FBTest.enableScriptPanel();
FBTest.selectPanel("console");
FBTest.enableConsolePanel(function(win)
{
var ... | JavaScript | 0.000001 | @@ -592,16 +592,21 @@
(%22logRow
+-info
%22);%0A%0A
|
2657f2fdbc4b99ad2d3b8b44cc4dbe79408db5cd | Reorder require statements | lib/node_modules/@stdlib/namespace/lib/math/index.js | lib/node_modules/@stdlib/namespace/lib/math/index.js | 'use strict';
// MODULES //
var baseDist = require( './base.dist.js' );
var baseRandom = require( './base.random.js' );
var baseSpecial = require( './base.special.js' );
var baseTools = require( './base.tools.js' );
var baseUtils = require( './base.utils.js' );
var genericUtils = require( './generics.utils.js' );
var... | JavaScript | 0.004265 | @@ -268,20 +268,20 @@
generic
-Util
+Stat
s = requ
@@ -297,20 +297,25 @@
enerics.
-util
+statistic
s.js' );
@@ -318,36 +318,36 @@
' );%0Avar generic
-Stat
+Util
s = require( './
@@ -351,33 +351,28 @@
'./generics.
-statistic
+util
s.js' );%0A%0A%0A/
|
311f6e77518a7a18a6f6f878a95046346b01cca9 | add the last step to the reduced trace | src/util/internalCallTree.js | src/util/internalCallTree.js | 'use strict'
var SourceLocationTracker = require('../code/sourceLocationTracker')
var AstWalker = require('./astWalker')
var EventManager = require('../lib/eventManager')
var decodeInfo = require('../solidity/decodeInfo')
var util = require('../helpers/util')
/**
* Tree representing internal jump into function.
* Tr... | JavaScript | 0.000019 | @@ -1566,16 +1566,82 @@
ready')%0A
+ this.reducedTrace.push(traceManager.trace.length - 1)%0A
|
bc8e66b6e4e01df02bffced57347f629511a3f45 | format detect prefixes | src/utils/detect-prefixes.js | src/utils/detect-prefixes.js | /**
* Detecting prefixes for saving time and bytes
*/
export default function detectPrefixes () {
let transform;
let transition;
let transitionEnd;
let hasScale3d;
(function () {
let el = document.createElement('_');
let style = el.style;
let prop;
if (style[prop... | JavaScript | 0.000005 | @@ -68,41 +68,18 @@
ult
-function detectPrefixes ()
+() =%3E
%7B%0A
-
-
let
@@ -89,18 +89,16 @@
nsform;%0A
-
let tr
@@ -107,18 +107,16 @@
sition;%0A
-
let tr
@@ -128,18 +128,16 @@
ionEnd;%0A
-
let ha
@@ -153,35 +153,25 @@
%0A%0A
- (function () %7B%0A le
+(() =%3E %7B%0A cons
t... |
19840665df79549a6b7744704e329b39faf6fae4 | Build release | dist/smartquotes.js | dist/smartquotes.js | (function(a,b){'object'==typeof exports&&'object'==typeof module?module.exports=b():'function'==typeof define&&define.amd?define([],b):'object'==typeof exports?exports.smartquotes=b():a.smartquotes=b()})(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return... | JavaScript | 0.000001 | @@ -2473,13 +2473,8 @@
ping
-diddd
URL=
@@ -2491,9 +2491,8 @@
s.js.map
-%0A
|
dd533d478c24e93f10d424579002b31b91196d25 | Fix flow | app/routes/pages/components/subcomponents/TextWithTitle/index.js | app/routes/pages/components/subcomponents/TextWithTitle/index.js | //@flow
import React from 'react';
import styles from './TextWithTitle.css';
type Props = {
title: string,
text: React.component,
extraStyle?: Object,
};
const TextWithBoldTitle = ({ title, text, extraStyle }: Props) => {
return (
<div className={styles.container} style={extraStyle}>
<h2 className={... | JavaScript | 0.000001 | @@ -13,16 +13,29 @@
rt React
+, %7Btype Node%7D
from 'r
@@ -128,23 +128,12 @@
xt:
-React.component
+Node
,%0A
|
4c2844867cd00f204a7dc3e5d4a46f333309f68f | change log | lib/adaptor.js | lib/adaptor.js | "use strict";
var Cylon = require("cylon");
var bluetoothserial = require('bluetooth-serial-port');
var Adaptor = module.exports = function Adaptor(opts) {
Adaptor.__super__.constructor.apply(this, arguments);
opts = opts || {};
};
Cylon.Utils.subclass(Adaptor, Cylon.Adaptor);
Adaptor.prototype.connect = functio... | JavaScript | 0.000002 | @@ -350,29 +350,8 @@
is;%0A
- self.ready = false;
%0A s
@@ -870,24 +870,60 @@
onnected');%0A
+ self.ready = true;%0A
@@ -935,28 +935,26 @@
ylon.Logger.
-debu
+lo
g(%22Connected
@@ -1156,15 +1156,12 @@
it(%22
-message
+data
%22, b
@@ -1295,20 +1295,18 @@
.Logger.
-debu
+lo
g(%22C... |
4c629db3dcf18e7f2e6989261f2c53b0141a0327 | Make sure the presentation listen on the right port | presentation/index.js | presentation/index.js | var express = require('express');
var ejs = require('ejs');
var app = express();
app.configure(function() {
app.use(express.bodyParser());
app.set('dirname', __dirname);
app.use(app.router);
app.use(express["static"](__dirname + "/public/"));
app.use(express.errorHandler({
dumpExceptions: true,
showS... | JavaScript | 0 | @@ -494,12 +494,12 @@
%7C%7C
-7
+50
00
-1
;%0Aap
|
5166891523759aad353a815a0aa9b2461d7530e3 | Remove placeholder script language values (#2322) | app/scripts/modules/azure/serverGroup/serverGroup.transformer.js | app/scripts/modules/azure/serverGroup/serverGroup.transformer.js | 'use strict';
let angular = require('angular');
module.exports = angular.module('spinnaker.azure.serverGroup.transformer', [
])
.factory('azureServerGroupTransformer', function () {
function normalizeServerGroup(serverGroup) {
return serverGroup;
}
function convertServerGroupCommandToDeployCon... | JavaScript | 0 | @@ -506,20 +506,8 @@
e: '
-$%7BimageName%7D
',%0A
@@ -530,19 +530,12 @@
m: '
-$%7BisCustom%7D
+true
',%0A
@@ -559,20 +559,8 @@
r: '
-$%7Bpublisher%7D
',%0A
@@ -580,16 +580,8 @@
r: '
-$%7Boffer%7D
',%0A
@@ -599,19 +599,8 @@
u: '
-$%7Bimagesku%7D
',%0A
@@ -622,18 +622,8 @@
n: '
-$%7Bversion%7D
',%0A
@@ ... |
69efdf353b4fb7526854f4e2d081b24cbf783fdc | implement refCount like behavior | src/utils/shareObservable.js | src/utils/shareObservable.js | /* eslint-disable import/prefer-default-export */
import createObservable from './createObservable'
const shareObservable = (observable) => {
const observers = []
let emitted
let lastValue
observable.subscribe({
next: (value) => {
emitted = true
lastValue = value
observers.forEach(o => o... | JavaScript | 0 | @@ -172,16 +172,24 @@
emitted
+ = false
%0A let l
@@ -197,18 +197,160 @@
stValue%0A
-%0A
+ let subscription = null%0A%0A return createObservable((observer) =%3E %7B%0A observers.push(observer)%0A%0A if (!subscription) %7B%0A subscription =
observa
@@ -369,16 +369,20 @@
e(%7B%0A
+
+
next:... |
79c65a89874071e1f2e9d2c6e9ead795846b7486 | Remove lint from PR #98 | spec/composer-spec.js | spec/composer-spec.js | "use babel";
import helpers from "./spec-helpers";
import fs from "fs-plus";
import _ from "lodash";
import Composer from "../lib/composer";
describe("Composer", function() {
let composer;
beforeEach(function() {
composer = new Composer();
});
describe("build", function() {
let editor, builder;
... | JavaScript | 0 | @@ -95,16 +95,41 @@
odash%22;%0A
+import path from %22path%22;%0A
import C
@@ -4862,43 +4862,8 @@
) %7B%0A
- const path = require('path')%0A
|
a546a671b90dfa54043a8969393faab2bc85bcdc | bump MINIFIED distribution dist/snuggsi.min.js | dist/snuggsi.min.js | dist/snuggsi.min.js | var HTMLLinkElement=function(t){var e={},n=document.querySelector("link[href*="+t+"][rel=import]"),r=function(t,e){return HTMLImports&&!HTMLImports.useNative?HTMLImports.whenReady(function(t){return e({target:n})}):n.addEventListener(t,e)};return Object.defineProperties(e,{addEventListener:{writable:!1,value:function(t... | JavaScript | 0 | @@ -1333,22 +1333,29 @@
urn
-Object.assign(
+t=%22string%22==typeof t?
docu
@@ -1396,16 +1396,34 @@
%22+t+%22%5D%22)
+:t,Object.assign(t
,%7Bbind:f
|
072d42686bc8b2443edd5b1f78230c3229e53db4 | Fix potential issue with asynchronous function immediately after synchronous one | lib/Phantom.js | lib/Phantom.js | "use strict";
var when = require("when");
var os = require("os");
var instances = require("./instances.js");
var Page = require("./Page.js");
var serializeFn = require("./serializeFn.js");
var phantomMethods = require("./phantom/methods.js");
var pageId = 0;
var slice = Array.prototype.slice;
var heartbeatInterval = ... | JavaScript | 0.99852 | @@ -3825,24 +3825,53 @@
ct%7D message%0A
+ * @param %7Bboolean%7D fnIsSync%0A
* @returns
@@ -4296,40 +4296,55 @@
if (
-self._pending === 0 && !fnIsSync
+!fnIsSync && self._heartbeatIntervalId === null
) %7B%0A
@@ -5861,24 +5861,66 @@
ntervalId);%0A
+ this._heartbeatIntervalId = null;%0A
%7D%0A%0A ... |
2d23b49c35a8b28d72b27ad916aab6f2edc56c8a | add baseURL and extract common config to variable | lib/builder.js | lib/builder.js | var gulp = require('gulp');
var treeWalker = require('./tree-walker');
var builder = require('systemjs-builder');
var RSVP = require('rsvp');
var insert = require('gulp-insert');
var appTree;
var routeTrees = [];
var promises = [];
var treeCache = {};
RSVP.on('error', function(reason) {
console.assert(false, reason... | JavaScript | 0 | @@ -392,24 +392,22 @@
es...')%0A
+%0A
-return
+var
treeWal
@@ -405,38 +405,35 @@
r treeWalker
-.getTrees(%7B%0A
+Config = %7B%0A
main: co
@@ -443,26 +443,24 @@
g.main,%0A
-
config: conf
@@ -468,20 +468,97 @@
g.config
-%0A %7D
+,%0A baseURL: config.baseURL%0A %7D;%0A%0A return treeWalker.ge... |
55ce745565f46a78afcb971efc5bc6fc9a2e444c | Change to JS | assets/scripts/script.js | assets/scripts/script.js | var sequence = []; // array to hold sequence
var playerSequence = 0; // Count position in sequence player is testing
var playerGo = false; // Player's turn?
var computerGo = true; // Computer's turn?
var round = 0; // counter on display
var strict = false; // Strict game?
var startButton = document.getElementById("star... | JavaScript | 0.00044 | @@ -973,18 +973,23 @@
k%22,
+function
(event)
- =%3E
%7B%0A
|
2403a3b2abe8ef8099c73204b280f47a31fa526f | use configurable relay time | lib/cascade.js | lib/cascade.js |
/**
* Module dependencies
*/
var co = require('co');
var gpio = require('rpi-gpio');
var log = require('logule').init(module, 'cascade');
var model = require('./model.js');
var thunkify = require('thunkify');
var usb = require('usb-detection');
var wait = require('co-wait');
var w... | JavaScript | 0.000001 | @@ -53,24 +53,63 @@
uire('co');%0A
+var config = require('./config.js')%0A
var gpio
@@ -1224,16 +1224,37 @@
cleSlot(
+config.relayCycleTime
);%0A%7D;%0A%0A/
|
a547199c169792075e5944d45ae5920c8c8f7a8e | Update adding_topics_1.js | OpenSocial/Gadget/Tutorial/Tutorial_04_Adding_topics/adding_topics_1.js | OpenSocial/Gadget/Tutorial/Tutorial_04_Adding_topics/adding_topics_1.js | /**
* STEP 2 (Implementing the "Add Topic" button)
* - Encode object as JSON string -> toJSON(obj)
* - Decode JSON string into an object -> toObject(str)
* - Stores data in the OpenSocial gadget -> addInput()
*/
/** Encode object as JSON string */
function toJSON(obj) {
return gadgets.json.stringify(obj);
}
/... | JavaScript | 0.000002 | @@ -1900,19 +1900,19 @@
%0A
+
if
-
(url)%7B%0A
v
@@ -1907,16 +1907,85 @@
(url)%7B%0A
+ %09frame_snap='yes';%0A %7D%0A else%7B%0A %09frame_snap='no';%0A %7D%0A //
var f
@@ -2245,23 +2245,8 @@
ap;%0A
- %7D%0A else %7B%0A
@@ -2426,24 +2426,24 @@
%3C/button%3E';%0A
+
docume... |
4889c4b238c74807271dc3d59ebe6ddf7a9d9a83 | Allow hooking up listeners with a nice dictionary-passing style | ocradmin/static/js/ocrbase.js | ocradmin/static/js/ocrbase.js |
// Initialise OCRJS namespace
if (OCRJS === undefined) {
var OCRJS = {};
}
OCRJS.OcrBase = Base.extend({
constructor: function(options) {
this._log = [];
this.options = {
log: false,
}
$.extend(this.options, options);
this._listeners = {};
},
... | JavaScript | 0 | @@ -621,20 +621,37 @@
y%5D = %5B%5D;
+%0A
+ return this;
@@ -839,26 +839,363 @@
(func);%0A
-%7D,
+ return this;%0A %7D,%0A%0A addListeners: function(obj) %7B%0A if (typeof obj != %22object%22)%0A throw %22addListeners except an object parameter, got %22 + (typeof obj)... |
e0fdd9d218e80e53c70048dba8ffc0b561823ea2 | Update Boot.js | projects/game1/src/js/states/Boot.js | projects/game1/src/js/states/Boot.js | (function() {
'use strict';
function Boot() {
}
Boot.prototype.preload = function() {
var Constants = {}; // todo: Edit later on...
// Load animations before game start
game.load.json('preload-loading-icon',
'assets/img/preload/loading-icon.json');
... | JavaScript | 0.000001 | @@ -463,18 +463,8 @@
ktop
- && 1 == 2
) %7B%0A
|
62b240e90d368aca3127dbb7d26d09294d4d46b5 | update forward (#2866) | lib/api/protocol/forward.js | lib/api/protocol/forward.js | const ProtocolAction = require('./_base-action.js');
/**
* Navigate backwards in the browser history, if possible.
*
* @link /#back
* @param {function} [callback] Optional callback function to be called when the command finishes.
* @api protocol.navigation
*/
module.exports = class Action extends ProtocolAction ... | JavaScript | 0 | @@ -67,17 +67,15 @@
ate
-back
+for
ward
-s
in
@@ -106,16 +106,71 @@
possible
+ (the equivalent of hitting the browser forward button)
.%0A *%0A *
|
8f4569b54bff4dde7c24eb27e471cf2ab9a9f28c | Add secret for cookie-parser | lib/bigrest.js | lib/bigrest.js | "use strict";
var fs = require('fs');
var path = require('path');
var xutil = require('./xutil');
var commons = require('./commons');
var methods = require('./methods');
var services = require('./services');
var text404 = '<html>'
+ '<head><title>404 Not Found</title></head>'
+ '<body bgcol... | JavaScript | 0.000004 | @@ -2569,16 +2569,27 @@
eParser(
+opts.secret
));%0D%0A
|
b637f10232e6c775b332c8b9d2bab0e8f9bcbe8e | Update eval.js | commands/eval.js | commands/eval.js | const Discord = require('discord.js');
const config = require("./config.json");
exports.run = async (bot, message) => {
var embed = new Discord.RichEmbed()
.setTitle("Restricted")
.setColor("#f45f42")
.addField("You are restricted from this command", "Its for the bot owner only!")
const randomColor = "#0... | JavaScript | 0.000001 | @@ -1450,39 +1450,32 @@
$%7Bargs%7D%5Cn%5C%60%5C%60%5C%60%60
-, false
)%0A .addFiel
@@ -1536,39 +1536,32 @@
n(err)%7D%5Cn%5C%60%5C%60%5C%60%60
-, false
)%0A message.
|
907478e6f1e8e702975d213a33a75d9f700c5a59 | Add file size verification in upload script | app/routes/upload.js | app/routes/upload.js | var express = require('express');
var router = express.Router();
var mongoose = require('mongoose');
var Upload = require('../models/Upload.js');
var multer = require('multer');
var dest = multer({dest: 'uploads/'});
function fileNameExists(name) {
Upload.count({name: name}, function(err, count) {
return... | JavaScript | 0 | @@ -779,17 +779,17 @@
tatus(40
-1
+3
).json(%7B
@@ -845,16 +845,201 @@
%0A %7D%0A%0A
+ // Size must be below 128 Megabytes (1024*1024*128 Bytes)%0A if (req.file.size %3E= 134217728) %7B%0A res.status(413).json(%7B'message': 'File too large.'%7D);%0A return;%0A %7D%0A%0A
var
|
0beb16dcb9bd04b7073f7a2550e31c4f084f67f0 | set default ecmaVersion to 2022 | lib/ast-properties/index.js | lib/ast-properties/index.js | const ecmaVersions = {
2022: require('./es2022'),
2021: require('./es2020'), // no change in AST Node level
2020: require('./es2020'),
2019: require('./es2018'), // no change in AST Node level
2018: require('./es2018'),
2017: require('./es2017'),
2016: require('./es2015'), // no change in AST Node level
... | JavaScript | 0.000001 | @@ -440,14 +440,12 @@
%7C%7C
-'
202
-0'
+2
;%0A
|
1dfc011b0364e0323b7591ee0780af338b808224 | add missing dependency when adding `bazel` module | app/validators.js | app/validators.js | 'use strict';
const semver = require('semver');
const _ = require('lodash');
const NG_MODULES_DEPENDENCIES = {
'core': ['rxjs', 'zone.js'],
'common': ['core'],
'forms': ['core', 'common'],
'http': ['core', 'platform-browser', 'rxjs'],
'compiler': ['core'],
'router': ['core', 'common', 'platform-browser', ... | JavaScript | 0.000005 | @@ -842,16 +842,45 @@
common'%5D
+,%0A 'bazel': %5B'compiler-cli'%5D
%0A%7D;%0A%0Amod
|
5d71fe66a3ac0d632ea6cb618c32d2ded2d47060 | Fix typo in code comment: propogation errata changed to propagation. | core/index.js | core/index.js | // # Ghost bootloader
// Orchestrates the loading of Ghost
// When run from command line.
var when = require('when'),
bootstrap = require('./bootstrap');
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
function startGhost(options) {
// When we no longer need to require('./server')
// i... | JavaScript | 0 | @@ -839,17 +839,17 @@
the prop
-o
+a
gation o
|
a77fb9066b39438861a3094ab3d354c5296c8f0f | allow require array as requirejs | smodular.js | smodular.js | // define/require part
var define;
(function (global, undefined) {
var modules = {},
document = global.document,
registredModules = {},
ASTERISK = '*',
APP = 'app.',
MAX_LOOP_DEEP = 30,
SPLITTER = '.',
NOT_FOUND = 'Module not found: ',
requires = [],
modulesMap = {};
function mapModuleName(defName,... | JavaScript | 0.000002 | @@ -990,16 +990,26 @@
ire(name
+, callback
) %7B%0A%09%09va
@@ -1064,16 +1064,268 @@
xport;%0A%0A
+%09%09if (typeof name !== 'string' && name.length) %7B%0A%09%09%09returnExport = %5B%5D;%0A%09%09%09for(i = 0; i %3C name.length; i++) %7B%0A%09%09%09%09returnExport.push(require(name%5Bi%5D));%0A%09%09%09%7D%0A%09%09%... |
c01aa36a3d9d86743a5ffbd61074062493c05f1e | Add a comment to clarify gathering data checks. | assets/js/components/notifications/ZeroDataStateNotifications.js | assets/js/components/notifications/ZeroDataStateNotifications.js | /**
* ZeroDataStateNotifications component.
*
* Site Kit by Google, Copyright 2022 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/... | JavaScript | 0 | @@ -2098,16 +2098,330 @@
()%0A%09);%0A%0A
+%09// If any of the checks for gathering data or zero data states have%0A%09// no finished loading, we don't show any notifications. This%0A%09// prevents one notification from briefly showing while the other%0A%09// notification loads and then replaces the first one.%0A%09//... |
b4dcc1b0539b7f90763bd5bf54a46a0038dc4c33 | Remove accidental change. | assets/js/modules/tagmanager/components/settings/SettingsView.js | assets/js/modules/tagmanager/components/settings/SettingsView.js | /**
* Tag Manager Settings View component.
*
* 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/licenses/L... | JavaScript | 0 | @@ -3997,29 +3997,19 @@
_( '
-Subscribe with Google
+Tag Manager
Cod
|
833e0ab3cc928cdfcde72c8222940877a0d6ed94 | changed outerHTML to innerHTML | client/modules/Post/components/ComponentStyler/ComponentStyler.js | client/modules/Post/components/ComponentStyler/ComponentStyler.js | import React, { PropTypes, Component } from 'react';
import ReactDOM from 'react-dom';
import autobind from 'autobind-decorator';
import { transform } from 'babel-standalone';
// Import Style
import styles from './ComponentStyler.css';
import styled from 'styled-components';
import CodeMirror from 'react-codemirror'... | JavaScript | 0.999564 | @@ -1180,11 +1180,11 @@
%5B0%5D.
-out
+inn
erHT
|
2f533d4dc3ce68031250bf0bea99c89d326e7189 | Fix uuid change missing from merge | client/src/components/AdvisorReports/OrganizationAdvisorsTable.js | client/src/components/AdvisorReports/OrganizationAdvisorsTable.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Table } from 'react-bootstrap'
import _isEqual from 'lodash/isEqual'
import pluralize from 'pluralize'
import AdvisorReportsModal from 'components/AdvisorReports/AdvisorReportsModal'
import AdvisorReportsRow from 'components/AdvisorRep... | JavaScript | 0 | @@ -2604,16 +2604,18 @@
+uu
id=%7B org
|
7f61f2d59fafff6fb287f47295f1297bc36b604f | switch to use grunt 0.4 + some server code cleanup | test/jqliteExtrasSpec.js | test/jqliteExtrasSpec.js | describe('\njqLite: testing against jQuery\n', function () {
'use strict';
var sandbox = angular.element('<div/>');
var extras = undefined;
beforeEach(module('ui.scroll.jqlite'));
beforeEach(function(){
angular.element(document).find('body').append(sandbox = angular.element('<div></div>'));
inject(function(... | JavaScript | 0 | @@ -2609,18 +2609,16 @@
%3E',%0A%09%09%09%09
-//
'%3Cdiv st
|
003c5b021dbabd0a4898bab0f90d404b3e6b80d9 | Set as "body is modified" | content/typicalReplyCompose.js | content/typicalReplyCompose.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const TypicalReplyCompose = {
log(...args) {
if (!Services.prefs.getBoolPref('extensions.typical-reply@clear... | JavaScript | 0 | @@ -2833,32 +2833,101 @@
dy, 0);%0A %7D%0A
+ gMsgCompose.bodyModified = true;%0A gContentChanged = true;%0A
this.log('
@@ -3546,24 +3546,93 @@
ge, false);%0A
+ gMsgCompose.bodyModified = true;%0A gContentChanged = true;%0A
%7D%0A %7D,%0A
|
119ab08977d1d8c80fd854951cbbff115790bf0c | Fix site expansion | doc/site/js/main.js | doc/site/js/main.js | var editor;
var embedded_editor;
$(function() {
hljs.initHighlighting();
editor = ace.edit("ace_editor_demo");
embedded_editor = ace.edit("embedded_ace_code");
editor.getSession().setMode("ace/mode/javascript");
editor.getSession().setMode("ace/mode/javascript");
embedded_editor.getSession().set... | JavaScript | 0.000001 | @@ -3609,24 +3609,8 @@
dx +
- %22&%22 + section +
%22'%5D
|
47d446f0d9c07cbd9a5e83499d1651194cb2c590 | fix warning | test/lib/discoverTest.js | test/lib/discoverTest.js | /*
* MIT License
*
* Copyright (c) 2017-2017 Jan Dockx
*
* 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, m... | JavaScript | 0.000004 | @@ -4004,24 +4004,78 @@
nction () %7B%0A
+ // noinspection JSPotentiallyInvalidUsageOfThis%0A
this.t
|
9d9c3a793693f92441f0ea75c5ad72371c8ad0f0 | Use escalated privileges to access Lorax API | core/utils.js | core/utils.js | /* global somefunction welderApiHost:true */
/* global somefunction welderApiScheme:true */
/* global somefunction welderApiPort:true */
/* global somefunction welderApiRelative:true */ // eslint-disable-line no-unused-vars
let cockpit;
let cockpitHttp;
welderApiHost = welderApiHost || 'localhost';
welderApiScheme = ... | JavaScript | 0 | @@ -575,16 +575,37 @@
efined,%0A
+ superuser: 'try'%0A
%7D);%0A%7D%0A
|
d869f33d0aad88d6a93166061abd1e9da05b912c | Handle sync fallback on models with no collection or backend | lib/browser.js | lib/browser.js | (function() {
var socket = io.connect();
var origSync = Backbone.sync;
Backbone.sync = function(method, model, options) {
var backend = model.backend || model.collection.backend;
var error = options.error || function() {};
var success = options.success || function() {};... | JavaScript | 0 | @@ -170,16 +170,37 @@
ckend %7C%7C
+ (model.collection &&
model.c
@@ -208,32 +208,33 @@
llection.backend
+)
;%0A %0A
|
7bbdc69ddc06b4b84cdd84cb0d817690aab17332 | Add escaping symbols | leaderboard.js | leaderboard.js | "use strict";
const LEADERBOARD_SIZE = 10;
class Leaderboard {
constructor () {
this.db = fbApp.database();
}
getUserInfo (username, callback) {
this.db.ref('userdata/' + username).once('value', (snapshot) => {
callback(username, snapshot.val());
});
}
getHig... | JavaScript | 0 | @@ -188,32 +188,51 @@
f('userdata/' +
+encodeURIComponent(
username).once('
@@ -224,16 +224,17 @@
sername)
+)
.once('v
@@ -788,32 +788,51 @@
serdata/' +
+encodeURIComponent(
username
+ '/totalSc
@@ -811,32 +811,33 @@
mponent(username
+)
+ '/totalScore'
@@ -902,32 +902,51 @@
serdata/' +
+encodeURIComponen... |
f88be7eba4ba3f7f1ff09b1ab9ecd0861a0439c6 | Update SymphonyInterop.js | minuet/symphony/Symphony/Symphony/SymphonyInterop.js | minuet/symphony/Symphony/Symphony/SymphonyInterop.js | var symphony = symphony || {};
symphony.interop = {createChannel: function(){
var mb = meow.messagebroker();
var sysstatus = "Ready";
mb.subscribe("api.symphony.com", function (envelope) {
window.postMessage(envelope.message, "*");
});
mb.subscribe("system.symphony.com", function ... | JavaScript | 0 | @@ -193,32 +193,106 @@
n (envelope) %7B%0D%0A
+ console.log(%22api.symphony.com/incoming envelope: %22, envelope);%0D%0A%0D%0A
window.p
@@ -323,24 +323,26 @@
age, %22*%22);%0D%0A
+%0D%0A
%7D);%0D%0A%0D%0A
@@ -362,51 +362,306 @@
be(%22
-system.symphony.com%22, function (envelope) %7B
+com.sympho... |
a235709c8e77e3ede96446077957c33523627718 | Change value to 0.5 for threshold instead of 127 | test/node/filter/mask.js | test/node/filter/mask.js | 'use strict';
import {IJ} from '../common';
describe('Create a mask from a greyA image', function () {
let image = new IJ(4,1,[255, 255, 0, 255, 255, 0, 0, 0], {
kind: 'GREYA'
});
it('should create a mask for a threshold of 127 using alpha channel', function () {
var mask=image.mask(127)... | JavaScript | 0.000028 | @@ -241,19 +241,19 @@
hold of
-127
+0.5
using a
@@ -309,19 +309,19 @@
ge.mask(
-127
+0.5
);%0A%0A
@@ -670,19 +670,19 @@
hold of
-127
+0.5
not usi
@@ -742,19 +742,19 @@
ge.mask(
-127
+0.5
, %7BuseAl
@@ -1085,21 +1085,17 @@
);%0A%0A%7D);%0A
-//%0A//
+%0A
describe
@@ -1172,21 +1172,17 @@
on () %7B%0A
-/... |
0e7dacfc0460bd45ae61c4febcfd9fb4e016880c | Allow connection string options to be passed as an options array. | lib/cluster.js | lib/cluster.js | 'use strict';
var connstr = require('./connstr');
var Bucket = require('./bucket');
var ClusterManager = require('./clustermgr');
/**
* Represents a singular cluster containing your buckets.
*
* @param {string} [cnstr] The connection string for your cluster.
*
* @constructor
*
* @since 2.0.0
* @committed
*/... | JavaScript | 0.00001 | @@ -256,24 +256,148 @@
cluster.%0A *
+ @param %7BObject%7D %5Boptions%5D%0A * @param %7Bstring%7D %5Boptions.certpath%5D%0A * The path to the certificate to use for SSL connections
%0A * @constru
@@ -460,16 +460,25 @@
er(cnstr
+, options
) %7B%0A th
@@ -510,16 +510,255 @@
(cnstr);
+%0A%0A // Copy passed optio... |
7535953e886606019ae5884648b95e8c0cbaf68e | Add key prop to column containers | lib/columns.js | lib/columns.js | import React from "react/addons";
import times from "lodash.times";
const BATCH_SIZE = 2;
class Columns extends React.Component {
constructor(props) {
super(props);
}
convertChildren(children) {
if (children.length === 0) {
return []
}
if (children.length) {
return children;
} ... | JavaScript | 0.000001 | @@ -1078,22 +1078,27 @@
ion.map(
+(
column
+, i)
=%3E %7B%0A
@@ -1148,16 +1148,22 @@
ement, %7B
+key: i
%7D, colum
|
7e14ffddb0cc1e9c8dfa9f05ce7205677b7789df | -- whitespace | test/object/copy-deep.js | test/object/copy-deep.js | "use strict";
var stringify = JSON.stringify;
module.exports = function (t, a) {
var o = { 1: "raz", 2: "dwa", 3: "trzy" }
, no = t(o);
a.not(no, o, "Return different object");
a(stringify(no), stringify(o), "Match properties and values");
o = { foo: "bar",
raz: { dwa: "dwa",
trzy: { cztery: "pięć", sześć:... | JavaScript | 0.999392 | @@ -122,12 +122,8 @@
y%22 %7D
-%0A%09
, no
@@ -245,17 +245,19 @@
%0A%0A%09o = %7B
-
+%0A%09%09
foo: %22ba
@@ -264,15 +264,20 @@
r%22,%0A
+%09%09
raz: %7B
-
+%0A%09%09%09
dwa:
@@ -284,16 +284,17 @@
%22dwa%22,%0A
+%09
%09%09trzy:
@@ -330,16 +330,19 @@
dem%22 %7D,%0A
+%09%09%09
osiem: %7B
@@ -344,16 +344,... |
e8e79ac8c7bc7a65aa81c0a57087a74d53ef771a | remove default run function | lib/command.js | lib/command.js | const Rx = require('rx');
const Response = require('./response');
const CommandContext = require('./command-context');
class Command {
constructor(options) {
let allowedProps = [
'name',
'description',
'args',
'adminOnly',
'run',
];
this.name = 'Name';
this.descriptio... | JavaScript | 0.000002 | @@ -380,141 +380,8 @@
e;%0A%0A
- this.run = (message, response) =%3E %7B%0A response.type = Response.TYPE_NONE;%0A return Rx.Observable.just(response);%0A %7D;%0A%0A
|
39d380b886a96ef0cb7cc9a9f1b866b72e799f16 | Fix issue #6: minify=0 seems to be causing content to still be minified | lib/connect.js | lib/connect.js | var gracie = require('./server'),
url = require('url'),
crypto = require('crypto');
var handleRequest = function(req, res, gracieServer) {
var files, query;
query = url.parse(req.url, true).query;
if (typeof(query) === 'undefined' || typeof(query.sources) === 'undefined' || /\.\./.test(query.sourc... | JavaScript | 0 | @@ -548,16 +548,40 @@
y.minify
+ && query.minify === '1'
) minify
|
38b2d0d2804b05e77e450393d46410b6359db6eb | fix channel queues setup roles | lib/channel.js | lib/channel.js | var events = require('events');
var util = require('util');
var Logger = require('./logger');
var Queue = require('./queue');
/**
* Creates a new bi-directional message channel between two endpoints utilizing message queues.
* @param bus
* @param name
* @param local
* @param remote
* @constructor
*/
function Ch... | JavaScript | 0 | @@ -1441,22 +1441,21 @@
+ this.
-remote
+local
+ ':' +
@@ -1516,37 +1516,38 @@
hannel:' + this.
-local
+remote
+ ':' + this.na
|
2130eeab5f7ae663fb287e2fe4963bcd2617a7db | Update up to changes in es5-ext | lib/console.js | lib/console.js | 'use strict';
var inspect = require('util').inspect
, sequence = require('es5-ext/lib/Function/sequence')
, curry = require('es5-ext/lib/Function/curry').call
, callBind = require('es5-ext/lib/Function/call-bind')
, flog = require('es5-ext/lib/Function/log').call
, peek = require('es5-ext/l... | JavaScript | 0 | @@ -214,17 +214,17 @@
ion/call
--
+/
bind')%0A
|
0b9d4350b197941e3c60bb678f9e39770a5b7607 | Update classes.js | lib/classes.js | lib/classes.js | /**
* classes.js
* Andrea Tino - 2015
*/
/**
* Detects and collects classes in the ScriptSharp source code.
*/
module.exports = function() {
var nodeTypes = require('./JSParser/nodeTypes.js');
var regex = require('./regex.js');
var ast = null; // AST browser
var src = null; // Source locator
retur... | JavaScript | 0 | @@ -667,16 +667,32 @@
= _ast;
+ // %5BASTBrowser%5D
%0A s
@@ -701,16 +701,35 @@
= _src;
+ // %5BSourceBrowser%5D
%0A %7D,%0A
@@ -1074,16 +1074,43 @@
ion(d) %7B
+ // d: %5BASTBrowserCallback%5D
%0A
|
a75ac277e377f1f380ffd21232c1e3b8017cd478 | test api | lib/editors.js | lib/editors.js | const fs = require('fs');
const path = require('path');
const Twit = require('twit');
const Feed = require('rss');
const sortFeedByDate = require('./helpers.js').sortFeedByDate;
// helper functions
// fetch recent tweets of editor
const getEditor = async function (editor) {
return T.get('statuses/user_timeline', {
... | JavaScript | 0.000007 | @@ -3889,16 +3889,119 @@
y) =%3E %7B%0A
+ T.get('application/rate_limit_status').then( res =%3E console.log(JSON.stringify(res.data)))%0A return;%0A
for (l
|
e91dac6d0e3c3201021e57aed62432afff618554 | fix doc | lib/gamepad.js | lib/gamepad.js | /**
* Events manager.
* @constructor
*/
var EventEmitter = function() {
this.callbacks_ = {};
};
/**
* Listen for a specific signal.
* @param {string} signal Signal to listen on.
* @param {Function} callback Callback.
*/
EventEmitter.prototype.on = function(signal, callback) {
var callbacks = this.callback... | JavaScript | 0.000001 | @@ -2213,16 +2213,54 @@
amepad.%0A
+ * @param %7BObject%7D params Parameters.%0A
* @cons
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.