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 |
|---|---|---|---|---|---|---|---|
f9aaa39212a4f814c33acb4e9571329253d389fa | Put as-genome component into a wide-container div | app/routing.js | app/routing.js | angular.module('antismash.db.ui.routing', [
'ui.router',
'antismash.db.ui.query',
'antismash.db.ui.stats',
'antismash.db.ui.browse',
'antismash.db.ui.genome',
]).config([
'$stateProvider',
'$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/start');
... | JavaScript | 0 | @@ -1046,16 +1046,44 @@
late: '%3C
+div class=%22wide-container%22%3E%3C
as-genom
@@ -1120,16 +1120,22 @@
-genome%3E
+%3C/div%3E
',%0A
|
c6c9bd86d7378cafa65dcd9410a7a27e1b02c147 | add search field to listings reducer | client/src/reducers/listings.js | client/src/reducers/listings.js | import { FETCHING_LISTINGS, GET_ALL_LISTINGS_SUCCESS } from '../constants';
export const initialState = {
allListings: [],
isFetching: false,
};
export const listings = (state = initialState, action) => {
switch (action.type) {
case GET_ALL_LISTINGS_SUCCESS:
return ({ ...state, allListings: action.pa... | JavaScript | 0 | @@ -45,16 +45,37 @@
_SUCCESS
+, CHANGE_SEARCH_FIELD
%7D from
@@ -162,16 +162,35 @@
false,%0A
+ searchField: '',%0A
%7D;%0A%0Aexpo
@@ -452,24 +452,110 @@
ng: true%7D);%0A
+ case CHANGE_SEARCH_FIELD:%0A return (%7B ...state, searchField: action.value %7D);%0A
default:
|
a9a9959c5346c4ac0006c8083f7e3c22d9bac459 | allow a non-native event for triggering navbar re-sort | src/collapsible.navbar.js | src/collapsible.navbar.js | /* collapsible extension for navbar functionality */
;(function( w ){
var $ = w.jQuery;
$( w.document ).bind( "init", function( e ){
var pluginName = "collapsible";
var extName = "navbar";
var itemClass = extName + "_item";
var overflowActiveClass = extName + "-overflow";
var itemMe... | JavaScript | 0.000001 | @@ -2358,16 +2358,55 @@
apsible%0A
+ .bind(%22navbarsort%22, initItems)%0A
|
e7706a84fde72f424db6db005d983e1d532552da | remove `ember-native-dom-event-dispatcher` check | ember-cli-build.js | ember-cli-build.js | 'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
// Add options here
autoprefixer: {
browsers: ['last 2 version', '> 10%'],
cascade: false,
},
snippetSearchPaths: ['tests/dummy/app'... | JavaScript | 0.000001 | @@ -327,137 +327,8 @@
);%0A%0A
- if (defaults.project.findAddonByName('ember-native-dom-event-dispatcher')) %7B%0A app.vendorFiles = %7B 'jquery.js': null %7D;%0A %7D%0A%0A
/*
|
adcbc39db1b50960286bda60283ff792b3e0c0c4 | Exclude emoji images from fingerprinting to speed up production builds | ember-cli-build.js | ember-cli-build.js | /*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var fingerprint,
assetsHost;
if (process.env.DISABLE_FINGERPRINTS) {
fingerprint = false;
} else {
fingerprint = {
extensions: ['js', 'css', 'pn... | JavaScript | 0 | @@ -278,16 +278,49 @@
int = %7B%0A
+ exclude: %5B'images/emoji'%5D,%0A
ex
|
eb930adce58e59885c213773856bddaddb79b1e7 | add babel-core devDependency | server/zip.js | server/zip.js | var Zip = require('node-zip');
var db = require('./database');
var fs = require('fs');
var path = require('path');
var mime = require('mime');
var createLoaders = require('./createLoaders');
var loadersToDependencies = require('./loadersToDependencies');
var defaultFiles = {
'webpack.config.js': fs.readFileSync(path... | JavaScript | 0 | @@ -2064,16 +2064,77 @@
6.2.4';%0A
+ packageJson.devDependencies%5B'babel-core'%5D = '6.9.1';%0A
|
ac30e95b13eb207d4ad870e233f4a8419d47df63 | update file /application.js | application.js | application.js | var mbaasApi = require('fh-mbaas-api');
var express = require('express');
var mbaasExpress = mbaasApi.mbaasExpress();
var cors = require('cors');
var bodyParser = require('body-parser');
var app = express();
// Enable CORS for all requests
app.use(cors());
// Note: the order which we add middleware to Express here ... | JavaScript | 0.000002 | @@ -327,16 +327,55 @@
ortant!%0A
+app.use('/sys', mbaasExpress.sys(%5B%5D));%0A
app.use(
@@ -622,46 +622,8 @@
));%0A
-app.use('/sys', mbaasExpress.sys(%5B%5D));
%0Aapp
|
1770ab21470b058036c7a7a4f0aebb910e90e466 | put print outside | src/commands/man/index.js | src/commands/man/index.js | const Discord = require("discord.js");
const MSS = require("./../../functions/");
const config = require("./../../config.json");
const meta = require("./meta.json");
const fs = require("fs");
var commands = [];
//Construct the "full" list
fs.readdir("./commands/", function(err, items) {
var print = "\n`@MSS man <comm... | JavaScript | 0.000002 | @@ -203,16 +203,61 @@
ds = %5B%5D;
+%0Avar print = %22%5Cn%60@MSS man %3Ccommand%3E%60%5Cn%60%60%60%5Cn%22;
%0A%0A//Cons
@@ -331,55 +331,8 @@
) %7B%0A
-%09var print = %22%5Cn%60@MSS man %3Ccommand%3E%60%5Cn%60%60%60%5Cn%22;%0A%0A
%09ite
|
91f2c22d7459a6215616995f4548933757f997ad | implement nextseen and many fixes | src/commands/workhours.js | src/commands/workhours.js | import { request, findEmployee, getWeekday, clockEmoji } from '../utils';
import { capitalize } from 'lodash';
import humanDate from 'date.js';
import moment from 'moment';
const printHours = hours => {
if (!hours.length) {
return 'Oops! I got nothing to show! 😶';
}
let output = (hours.length > 1)
? ':ti... | JavaScript | 0.000001 | @@ -1636,40 +1636,8 @@
ch;%0A
- console.log(message.match);%0A
|
d57c965cf1fc9ec8a8386e596a21cd668af1e818 | clear list on every refresh | client/js/Panels/Grid/GridPanelSetsControl.js | client/js/Panels/Grid/GridPanelSetsControl.js | "use strict";
define(['logManager',
'clientUtil',
'js/Constants',
'js/NodePropertyNames'], function (logManager,
util,
CONSTANTS,
nodePropertyNames) {
var GridPanelSetsControl;
GridPanelSet... | JavaScript | 0 | @@ -2322,16 +2322,55 @@
+ %22)%22;%0A%0A
+ this._dataGridWidget.clear();%0A%0A
|
ea8089c8d5ee06a4286cbbabbd12f6f1e43d9ab7 | update karma | mirrorgate-dashboard/karma.conf.js | mirrorgate-dashboard/karma.conf.js | /*
* Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A.
*
* 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 ap... | JavaScript | 0.000001 | @@ -1941,19 +1941,19 @@
ore/
-s
+S
erver
-sidee
+SentE
vent
|
09c025803cd921de81d9025c65745f3f85acd1f6 | Add submissionNumber to search string | model/business-process-new/base.js | model/business-process-new/base.js | // Base BusinessProcess model
'use strict';
var memoize = require('memoizee/plain')
, defineStringLine = require('dbjs-ext/string/string-line')
, defineUInteger = require('dbjs-ext/number/integer/u-integer')
, defineUrl = require('dbjs-ext/string/string-line... | JavaScript | 0 | @@ -2055,163 +2055,8 @@
ne)%0A
-%09%09// Below implementation just provides businessName, but it also shows%0A%09%09// how many properties can be reliably grouped into one result string for search%0A
%09%09se
@@ -2122,16 +2122,66 @@
arr = %5B%5D
+, submissionNumber = String(this.submissionNumber)
;%0A%09%09%09if
@... |
30f6d93725bc472bf8cc35741182e3819a6886b9 | Add catch() to download chain | assets/main.js | assets/main.js | $(function() {
'use strict';
var client = ZAFClient.init(),
attachments = [], // attachments is "global" so we don't have to get the list repeatedly
COMMENT_PATH = "ticket.comments",
$container = $('#container'),
$download = $('#download'),
$list = $('#list'),
$message = $('#message'),
... | JavaScript | 0 | @@ -1183,33 +1183,104 @@
%09%7D, 2000);%0D%0A%09%09%7D)
-;
+%0D%0A%09%09.catch(function(err) %7B%0D%0A%09%09%09message(err);%0D%0A%09%09%09show($interface);%0D%0A%09%09%7D)
%0D%0A%09%7D);%0D%0A%09%0D%0A%09$mes
|
29d91d171aa10a9859b9ece4589285245a67c1d5 | Handle errors, and turn off after delay | pi-alarm.js | pi-alarm.js | var http = require('http');
var gpio = require('pi-gpio');
var currentState = false;
var actuator = function(outputValue) {
console.log('Switching relay: '+outputValue);
currentState = outputValue;
gpio.open(11, "output", function(err) {
gpio.write(11, outputValue, function(err) {
gpio.close(11);
}... | JavaScript | 0 | @@ -322,16 +322,127 @@
;%0A %7D);%0A
+ if (outputValue) %7B%0A // Turn off after 5sec%0A setTimeout(actuator, proces.env.DELAY %7C%7C 5000, false);%0A %7D%0A
%7D;%0A%0Avar
@@ -1062,16 +1062,51 @@
ngReq);%0A
+ res.on('error', doPollingReq);%0A
%7D);%0A
|
9ceab2c3f51e1fcf97627fb2e32f4a416d048bd6 | load `node-webkit` binary module | node_modules/mongodb/node_modules/bson/ext/index.js | node_modules/mongodb/node_modules/bson/ext/index.js | var bson = null;
// Load the precompiled win32 binary
if(process.platform == "win32" && process.arch == "x64") {
bson = require('./win32/x64/bson');
} else if(process.platform == "win32" && process.arch == "ia32") {
bson = require('./win32/ia32/bson');
} else {
bson = require('../build/Release/bson');
}
e... | JavaScript | 0.000002 | @@ -223,32 +223,37 @@
bson = require(
+%0A
'./win32/ia32/bs
@@ -250,25 +250,88 @@
32/ia32/
-bson');
+' +%0A (process.versions%5B'node-webkit'%5D ? 'nw/' : '') +%0A 'bson'%0A );
%0A%7D else
|
0965a042a587c716048af96f59d20c62c6c2a569 | Update Content.js | src/components/Content.js | src/components/Content.js | /**
* The description / explanation of the chart and table, explains
* data source, data aggregation, trend calculation, ...
* Compiles markdown into html, content.md -> html
* @author Fabian Beuke <mail@beuke.org>
* @license AGPL-3.0
*/
export default function Content() {
return (
<div
s... | JavaScript | 0.000001 | @@ -610,32 +610,36 @@
%3Cp class
+Name
=%22responsivity-m
@@ -644,32 +644,32 @@
-mobile-modif%22%3E%0A
-
@@ -1829,24 +1829,28 @@
%3Cp class
+Name
=%22responsivi
@@ -3231,32 +3231,36 @@
%3Cli class
+Name
=%22responsivity-m
@@ -3650,32 +3650,36 @@
%3Cli class
+Name
=%2... |
46ee014d135ecdf27cf81ca07342562ff46fa0e5 | update resume with material-ui | src/components/Landing.js | src/components/Landing.js | import React, { Component } from 'react';
import About from './About';
import Projects from './Projects';
import Skills from './Skills';
class Landing extends Component {
render() {
return (
<div className="container">
<div className="banner-text">
<h1>CARLO FRANCISCO</h1>
<h6>FULL STACK DEVELOPER<... | JavaScript | 0 | @@ -1491,40 +1491,40 @@
/d/1
-piQYkvEQLyMP-RQ0ajbD3CD5P8CZK8d3
+K9Mid4L1DPGrLJSvyj_1bOX9VvHOfDgz
/vie
|
8d671f59658e368a2c117d839866e843bf72f7fe | Improve logging on mongoose | app/src/app.js | app/src/app.js | const config = require('config');
const logger = require('logger');
const Koa = require('koa');
const koaLogger = require('koa-logger');
const koaQs = require('koa-qs');
const koaBody = require('koa-body');
const loader = require('loader');
const koaSimpleHealthCheck = require('koa-simple-healthcheck');
const koaValida... | JavaScript | 0.000003 | @@ -874,38 +874,544 @@
-mongoose.set('debug', true);%0A%7D
+logger.debug('Setting mongoose debug logging on');%0A mongoose.set('debug', true);%0A%7D%0A%0Amongoose.connection.on('connecting', () =%3E %7B%0A logger.debug('Mongoose attempting to connect');%0A%7D);%0Amongoose.connection.on('connected', () =%3E ... |
43b0b66ada6378bc00c8661bd9b54739bda4ace4 | Fix coding style and improve comment in settings.js | web/settings.js | web/settings.js | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | JavaScript | 0.000001 | @@ -795,17 +795,21 @@
ict';%0A%0A/
-/
+**%0A *
Setting
@@ -861,89 +861,217 @@
ings
-%0A// First we see if localStorage is available%0A// If not, we use FUEL in FF%0A// U
+.%0A *%0A * The way that settings are stored depends on how PDF.js is built,%0A * for 'node make %3Cflag%3E' the following cases exist:%0A * - F... |
1aed61e11290ab0c8653d84ecced94a5183374a3 | fix left nav link for events in all communities | src/components/LeftNav.js | src/components/LeftNav.js | import React from 'react'
import { A, IndexA } from './A'
import Icon from './Icon'
import { VelocityTransitionGroup } from 'velocity-react'
import { isEmpty, filter } from 'lodash'
// this value is dupicated in CSS
export const leftNavWidth = 208
export const leftNavEasing = [70, 25]
const animations = {
enter: {... | JavaScript | 0 | @@ -2168,32 +2168,39 @@
%3CA to=%7B
+slug ?
%60/c/$%7Bslug%7D/even
@@ -2202,16 +2202,28 @@
/events%60
+ : '/events'
%7D%3E%0A
|
3841d565b7ef957ddedc297abed7a12429c66ff8 | Fix 'column filled' error | application.js | application.js | $(document).ready(function() {
turn = 1
columnSelector();
unsaturated();
})
var unsaturated = function(){
$( ".standardcolumn").hover( function(){
var open_cell = find_open_cell(this.id);
if (turn % 2 == 0) {
$(open_cell).addClass("unsaturatedred");
} else {
$(open_cell).addClass("unsat... | JavaScript | 0.000232 | @@ -161,32 +161,38 @@
var open_cell =
+small_
find_open_cell(t
@@ -176,37 +176,32 @@
small_find_open
-_cell
(this.id);%0A i
@@ -362,32 +362,38 @@
var open_cell =
+small_
find_open_cell(t
@@ -385,21 +385,16 @@
ind_open
-_cell
(this.id
@@ -788,24 +788,24 @@
%0A %7D;%0A
-
%7D);%0A%7D;
%0A%0Avar fi
@@... |
187dad25a03800a4138b1638b1a4f8e65489037a | Remove blank line | webpack.prod.js | webpack.prod.js | const path = require("path");
const webpack = require("webpack");
const merge = require("webpack-merge");
const common = require("./webpack.common.js");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = merge(common, {
mode: "production",
output: {
filename: "app.[hash:6... | JavaScript | 0.999999 | @@ -1866,17 +1866,16 @@
%5D.css%22,%0A
-%0A
|
bfc8b866b49aec490948c1a7894f1be543d61b80 | Set editor read-only if no session (all tabs closed) | app/js/services/editor.js | app/js/services/editor.js | TD.factory('EditSession', function() {
return ace.require("ace/edit_session").EditSession;
});
// TODO(vojta): lazy load handlers
TD.factory('VimHandler', function() {
return ace.require("ace/keyboard/vim").handler;
});
TD.factory('EmacsHandler', function() {
return ace.require("ace/keyboard/emacs").handler;
}... | JavaScript | 0 | @@ -2923,16 +2923,46 @@
ssion);%0A
+ ace.setReadOnly(false);%0A
%7D,%0A%0A
@@ -3031,24 +3031,53 @@
ssion(''));%0A
+ ace.setReadOnly(true);%0A
%7D,%0A%0A
|
e175d130570bbea10bd56cf98266404e9a66b1ab | Add missing pipeline index relay query data | app/lib/RelayPreloader.js | app/lib/RelayPreloader.js | import Relay from 'react-relay/classic';
import fromGraphQL from 'react-relay/lib/fromGraphQL';
const QUERIES = {
"build_header/build": Relay.QL`
query BuildsShowBuild($build: ID!) {
build(slug: $build) {
id
createdBy {
__typename
...on UnregisteredUser {
nam... | JavaScript | 0.000003 | @@ -1200,33 +1200,33 @@
teams(first:
-5
+1
00) %7B%0A
@@ -1325,32 +1325,151 @@
description%0A
+ permissions %7B%0A pipelineView %7B%0A allowed%0A %7D%0A %7D%0A
%7D%0A
|
2649dc25a78f6750bf752e9072368056c124e1a9 | fix - plopfile bug | plopfile.js | plopfile.js | 'use strict'
// Plop: https://github.com/amwmedia/plop
// inquirer prompts: https://github.com/SBoudrias/Inquirer.js/#objects
module.exports = function (plop) {
plop.setGenerator('js', {
prompts: [{
type: 'input',
name: 'filename',
message: 'Enter a relative filename/path:',
filter: function (filename)... | JavaScript | 0 | @@ -466,30 +466,34 @@
('/'))%0A%09%09%09%09%09
-return
+filename =
filename +
|
75053145e91762bd71ce1a330d097f8fa4cfe7b2 | add entries to the ignore patterns | src/config/jest.config.js | src/config/jest.config.js | const path = require('path')
const {ifAnyDep, hasFile, hasPkgProp, fromRoot} = require('../utils')
const here = p => path.join(__dirname, p)
const useBuiltInBabelConfig = !hasFile('.babelrc') && !hasPkgProp('babel')
const ignores = [
'/node_modules/',
'/fixtures/',
'/__tests__/helpers/',
'__mocks__',
]
cons... | JavaScript | 0 | @@ -537,31 +537,36 @@
rePatterns:
+%5B...
ignores
+%5D
,%0A coverage
@@ -589,16 +589,20 @@
ns:
+%5B...
ignores,
%0A t
@@ -597,16 +597,48 @@
ignores,
+ 'src/(umd%7Ccjs%7Cesm)-entry.js$'%5D,
%0A trans
|
245e9d4067be60c82b081b79a820641896724389 | USE double quotes . | src/controller/pokemon.js | src/controller/pokemon.js | 'use strict';
const path = require('path');
const dao = require(path.resolve('src/dao/pokemon'));
const pagarMeProvider = require(path.resolve('src/provider/pagarme'));
const request = require('request-promise');
const controller = {
getAll: function(req, res) {
dao.findAll().then(function(results) {
res.stat... | JavaScript | 0 | @@ -1,9 +1,9 @@
-'
+%22
use stri
@@ -4,17 +4,17 @@
e strict
-'
+%22
;%0A%0Aconst
@@ -33,14 +33,14 @@
ire(
-'
+%22
path
-'
+%22
);%0Ac
@@ -67,25 +67,25 @@
ath.resolve(
-'
+%22
src/dao/poke
@@ -87,17 +87,17 @@
/pokemon
-'
+%22
));%0Acons
@@ -137,17 +137,17 @@
resolve(
-'
+%22
src/prov
@@ -158,17 +158,17 @@
/... |
a8d70158a28988b94bdd2426a9f53377f5ebbfd4 | change results array to array of objects named url | src/controllers/Scrape.js | src/controllers/Scrape.js | var _ = require('underscore');
var models = require('../models');
var Scrape = models.Scrape;
var makerPage = function(req, res) {
Scrape.ScrapeModel.findByOwner(req.session.account._id, function(err, docs) {
if(err) {
console.log(err);
return res.status(400).json({error:'An ... | JavaScript | 0.000005 | @@ -684,29 +684,33 @@
s: %5B
-'result 1','result 2'
+%7Burl: 'one'%7D,%7Burl: 'two'%7D
%5D,%0A
|
7b85031a8ae32f8d9d53113b0782f7816ae92ead | fix issue with nonprofit show views not loading | server/boot/nonprofits.js | server/boot/nonprofits.js | var Rx = require('rx');
var debug = require('debug')('freecc:nonprofits');
var observeMethod = require('../utils/rx').observeMethod;
var unDasherize = require('../utils').unDasherize;
var dasherize = require('../utils').dasherize;
module.exports = function(app) {
var router = app.loopback.Router();
var Nonprofit =... | JavaScript | 0 | @@ -2161,24 +2161,115 @@
%7D%0A%0A
+//We need to create logic that verifies completion. Defaulting to false for now.%0A //
var buttonAc
@@ -2286,24 +2286,26 @@
se;%0A
+//
if (%0A
@@ -2297,32 +2297,34 @@
//if (%0A
+//
req.user &&%0A
@@ -2333,63 +2333,10 @@
-
- req... |
cd711a05eda48d7a34716fb0f7dfa001e2a9123a | Remove TURN server from config | app/scripts/cyclondemo.js | app/scripts/cyclondemo.js | 'use strict';
var cyclon = require("cyclon.p2p");
var rtc = require("cyclon.p2p-rtc-client");
var rtcComms = require("cyclon.p2p-rtc-comms");
var StorageService = require("./services/StorageService");
/**
* RTC Module
*/
rtc.buildAngularModule(angular)
.factory("StorageService", StorageService)
.value("IceS... | JavaScript | 0.000001 | @@ -410,204 +410,8 @@
2'%5D%7D
-,%0A // Turn over TCP on port 80 for networks with totalitarian security regimes%0A %7Burls: %5B'turn:54.187.115.223:80?transport=tcp'%5D, username: 'cyclonjsuser', credential: 'sP4zBGasNVKI'%7D
%0A
|
e024243bd4824c3d964b452858830c5c84c1aac2 | allow reset user. need this here otherwise the page doesn't load when not logged in for some reason | app/services/user-auth.js | app/services/user-auth.js | import Ember from 'ember';
import config from '../config/environment';
export default Ember.Service.extend({
tokenHandler: Ember.inject.service("token-handler"),
store: Ember.inject.service('store'),
authRequest: Ember.inject.service(),
isAuthenticated: true,
getCurrentUserFromServer:function () {
let ... | JavaScript | 0.000004 | @@ -1058,32 +1058,102 @@
%7D);%0A %7D,%0A%0A
+ resetCurrentUser() %7B%0A localStorage.currentUserID = null;%0A %7D,%0A%0A
getCurrentUser
|
c0895628b82e652b082b59f83667efd9593ca827 | change sortie pill color | src/embeds/SortieEmbed.js | src/embeds/SortieEmbed.js | 'use strict';
const BaseEmbed = require('./BaseEmbed.js');
/**
* Generates sortie embeds
*/
class SortieEmbed extends BaseEmbed {
/**
* @param {Genesis} bot - An instance of Genesis
* @param {Sortie} sortie - The sortie to be included in the embed
*/
constructor(bot, sortie) {
super();
this.co... | JavaScript | 0.000001 | @@ -325,12 +325,12 @@
= 0x
-00ff
+a843
00;%0A
|
9b5ea813f033618dec473b3dd044b4a4ffae192a | Use lowercase | app/static/script/myjs.js | app/static/script/myjs.js | // Use '[[' and ']]' tags since Django using Mustache's default template tags.
Mustache.tags = ['[[', ']]'];
$(function(){
var swiper = new Swiper('.swiper-container', {
loop : true,
pagination: '.swiper-pagination',
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
slidesPerV... | JavaScript | 0.988331 | @@ -992,17 +992,17 @@
var
-U
+u
rl = win
@@ -1129,17 +1129,17 @@
ex.test(
-U
+u
rl)) %7B%0A
@@ -1154,17 +1154,17 @@
ewUrl =
-U
+u
rl.repla
@@ -1218,17 +1218,17 @@
ewUrl =
-U
+u
rl + %22&n
|
9a15e7b11003a9e4e052b8b3f1f3cd965e77db76 | Fix bug with gulp.spritesmith being required incorrectly | app/templates/gulpfile.js | app/templates/gulpfile.js | /* global $:true */
'use strict';
var gulp = require('gulp');
var browserSync = require('browser-sync');
<% if (includeJekyll) { %>var cp = require('child_process');<% } %>
var $ = require('gulp-load-plugins')();
<% if (includeSprites) { %>var spritesmith = require('spritesmith');<% } %>
gulp.task('styles', function ... | JavaScript | 0 | @@ -261,16 +261,21 @@
equire('
+gulp.
spritesm
|
519d6615ab0a8d3ccfe59875bfa7d42cf7c4ddf0 | Update felixge/node-mysql benchmarking code, disable reconnectAsyncBenchmark | src/felixge-node-mysql.js | src/felixge-node-mysql.js | /*
Copyright (C) 2010, Oleg Efimov <efimovov@gmail.com>
See license text in LICENSE file
*/
// Require modules
var
sys = require('sys'),
Mysql = require('../deps/felixge-node-mysql/lib/mysql').Client,
conn,
rows;
function selectAsyncBenchmark(callback, cfg) {
var
start_time,
total_time;
start_... | JavaScript | 0 | @@ -1471,32 +1471,34 @@
,%0A i = 0;%0A %0A
+
start_time = n
@@ -1502,35 +1502,39 @@
= new Date();%0A
-%0A
+ %0A
+
function reconne
@@ -1541,32 +1541,34 @@
ctAsync() %7B%0A
+
i += 1;%0A if (
@@ -1555,32 +1555,34 @@
i += 1;%0A
+
+
if (i %3C= cfg.rec
@@ -1599,24 +1599,26 @@
nt)... |
8e291a91fed804597409c9dd02c44a6c2be79eab | Send button submitting as form value after beautifying | public/js/client.js | public/js/client.js | // INITIALIZE SOCKET
var socket = io();
// BIND BROWSER EVENTS TO SOCKET EVENT EMITTERS
function afterReady() {
var regPopup = new $.Popup();
console.log(regPopup.options);
// regPopup.open('views/register.html');
$('.popup').popup({
width: 500,
heigth: 150,
afterOpen: functio... | JavaScript | 0 | @@ -678,32 +678,33 @@
.click(function(
+e
) %7B%0A cons
@@ -728,16 +728,44 @@
send%22)%0A
+ e.preventDefault();%0A
|
75368c636192b93ae0870037249934f9c281c65b | Update config.js | public/js/config.js | public/js/config.js | var Config = (function(){
"use strict";
/* -------- DO NOT BEAUTIFY ---------*/
var initialContent = [
{
name: "index.html",
fileId: "welcome",
content: `<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Welcome to MultiHac... | JavaScript | 0.000002 | @@ -874,16 +874,20 @@
ultihack
+-web
%22 target
@@ -1809,8 +1809,9 @@
%7D%0A%7D());
+%0A
|
02809f995ed85a2e3262d0ac68ea8ff92b2b70ed | clean up | Resources/ui/common/FirstView.js | Resources/ui/common/FirstView.js | //FirstView Component Constructor
var _ = require("/lib/underscore");
function FirstView() {
var self = Ti.UI.createScrollView({backgroundColor: '#666'});
var SpriteCore = require('/sprite/SpriteCore');
var SpriteConfig = require('/sprite/SpriteConfig');
//roller1
var sprite = new SpriteCore(SpriteConfig.Sl... | JavaScript | 0.000001 | @@ -1785,37 +1785,9 @@
-spinButton.setEnabled(true);
%0A
+
%09%09
@@ -1909,16 +1909,16 @@
tFrame)%0A
-
%09%09 %09l
@@ -1942,16 +1942,241 @@
NNER!';%0A
+%09%09 else if(sprite.spriteCurrentFrame === 5 %7C%7C sprite2.spriteCurrentFrame === 5 %7C%7C sprite3.spriteCurrentFrame==5)%0A%09%09 %09lblWinner... |
60fd91845b5a0cf967258cf04bc4c090da0f900a | change menu item height | application/views/Menu.js | application/views/Menu.js | import React from 'react';
import { VrButton, Text, View } from 'react-vr';
const DEG_IN_RAD = 57.2958;
class MenuItem extends React.Component {
constructor(props) {
super(props);
this.state = {
isHovered: false,
}
}
render = () => (
<VrButton
onC... | JavaScript | 0.000001 | @@ -541,17 +541,17 @@
ight: 0.
-3
+4
,%0A
|
8b49d385a01955f1cd366fa16289f2a1a7b236e3 | improve test robustness for slow Safari | history/test/browser/xstream.js | history/test/browser/xstream.js | import * as assert from 'assert';
import xs from 'xstream';
import Cycle from '@cycle/xstream-run';
import XSAdapter from '@cycle/xstream-adapter';
import {makeDOMDriver, h} from '@cycle/dom';
import {createHistory} from 'history';
import {
makeHistoryDriver,
createServerHistory,
createLocation,
supportsHistor... | JavaScript | 0.000019 | @@ -3307,24 +3307,50 @@
, done =%3E %7B%0A
+ this.timeout(4000);%0A
const
@@ -4522,17 +4522,16 @@
run();%0A
-%0A
%7D)%0A%0A
|
6a7c1f02e35ffc67b70b5514016b3ece48c36a47 | fix invalid 'activityTypes/clear' action | src/activities/datastore/activityTypes.js | src/activities/datastore/activityTypes.js | import activityTypes from '@/activities/api/activityTypes'
import { createMetaModule, indexById, metaStatuses, metaStatusesWithId, withMeta } from '@/utils/datastore/helpers'
import i18n from '@/base/i18n'
function initialState () {
return {
entries: {},
}
}
export default {
namespaced: true,
modules: { m... | JavaScript | 0.000331 | @@ -3109,32 +3109,30 @@
datastore.
-dispatch
+commit
('activityTy
|
e5c2e7d1feb465495e3f706f5dc5f2ba0f65d587 | Make default code more sensible (on instead of off) | public/js/editor.js | public/js/editor.js | define(['codemirror', 'matchbrackets', 'continuecomment', 'javascripthint', 'javascriptmode'], function() {
function initEditor($e) {
return CodeMirror($e.get(0), {
value: "function effect(cube) {\n cube().off();\n}",
mode: 'javascript',
indentUnit: 4,
line... | JavaScript | 0 | @@ -227,18 +227,17 @@
cube().o
-ff
+n
();%5Cn%7D%22,
|
4d3acfb14c054cde866905309acc478be5ebc6d0 | fix error message | src/administrative-sdk/profile/profile.js | src/administrative-sdk/profile/profile.js | /**
* Profile domain model. A profile is part of a {@link User} and stores general information about the user.
*/
export default class Profile {
/**
* Create a Profile.
*
* @param {string} firstName - The first name of the {@link User}.
* @param {string} lastName - The last name of the {@link User}.
... | JavaScript | 0 | @@ -1876,38 +1876,36 @@
ameter of type %22
-string
+Date
%22 is required');
|
9cff9b00e468c05fd38744eac4ae3833a38d7898 | Update person.js | public/js/person.js | public/js/person.js | var Persons = {
hatids : 0,
bodyids : 0,
faceids : 0,
personids : 0,
//last persons arrive time
lpersonarrtime : 0,
hatscount : 6,
facescount : 6,
bodiescount : 3,
allPersons : [],
Hats : [],
Bodies : [],
Faces : [],
update : function()
{
if(Date.now() - this.lpersonarrtime >... | JavaScript | 0.000001 | @@ -144,17 +144,17 @@
count :
-6
+7
,%0A%09faces
|
f15c3287f4a4180830087f046a0b7b71901d1c6d | Update status.js | public/js/status.js | public/js/status.js | /*global angular, localStorage*/
angular
.module('IsTheDungeonPrinterDown', [])
.controller('StatusController', StatusController);
function StatusController($http) {
// Ah, arrow functions, please come soon.
var self = this;
// Shamelessly ripped from stack overflow because that's the
// spir... | JavaScript | 0.000002 | @@ -1209,19 +1209,21 @@
= %7B
-%7D;%0A
+%0A
self
@@ -1222,36 +1222,23 @@
-self.report.
status
- =
+:
status
-;
+,
%0A
@@ -1246,31 +1246,22 @@
-self.report.
+
auth
-t
+T
oken
- =
+:
loc
@@ -1279,16 +1279,26 @@
uthToken
+%0A %7D
;%0A
|
c9509d66ecf27a18e4eb114e0811e4ec20b73884 | update restTest for profile | src/backend/rest/profile/test/restTest.js | src/backend/rest/profile/test/restTest.js | var orm = require('../../../dbbs');
var Profile = orm.model("switch_profile");
var request = require('request');
var assert = require('assert');
var fs = require('fs');
//orm.setup()
var token, sessKey;
// ----------------------------------------------------------------------------
// Testing create profile
describe(... | JavaScript | 0 | @@ -3191,16 +3191,641 @@
ion() %7B%0A
+%0A%09it('Test: Successful update of profile PUT /api/profile/update %7Bid: id, name: name%7D should return msg.success()', %0A%09function(done) %7B%0A%09%09request( %7B%0A%09%09%09url: 'http://localhost:3000/api/profile/update',%0A%09%09%09body: '%7B%5C%22id%5C%22: %5C%221%5C%22... |
6ff3120a8ae7d1ef504c65e8e17be5c127b12f13 | Fix codebox.io api url | bin/codebox.js | bin/codebox.js | #!/usr/bin/env node
var _ = require('underscore');
var cli = require('commander');
var open = require("open");
var pkg = require('../package.json');
var codebox = require("../index.js");
// Options
cli.option('-p, --port [http port]', 'Port to run the IDE');
cli.option('-t, --title [project title]', 'Title for the p... | JavaScript | 0.000245 | @@ -736,11 +736,11 @@
code
-now
+box
.io%22
@@ -1129,24 +1129,27 @@
Use Codebox
+.io
%0A if (thi
|
86c8b82a3d90f26869f478de44a383aec0446d4a | remove debug log statement | bin/compile.js | bin/compile.js | import fs from 'fs-extra'
import _debug from 'debug'
import webpackCompiler from '../build/webpack-compiler'
import webpackConfig from '../build/webpack.config'
import config from '../config'
const debug = _debug('app:bin:compile')
const paths = config.utils_paths
;(async function () {
try {
debug('Run compiler... | JavaScript | 0.000027 | @@ -375,40 +375,8 @@
ig)%0A
- console.log('stats', stats)%0A
|
96ad185833fe66057a5d599a0c6bcc87a92f1024 | fix harvester | role.harvester.js | role.harvester.js | /**
* Created by truthlighting on 9/14/2016.
*/
var roleHarvester = {
/** @param {Creep} creep **/
run: function(creep) {
if(creep.memory.transporting && creep.carry.energy == 0) {
creep.memory.transporting = false;
creep.say("Harvesting");
}
if (!creep.memory.... | JavaScript | 0.000002 | @@ -1383,26 +1383,24 @@
-//
|
8648ff96338edf73d31b8a6940e1e9355f882cd0 | send data in response | routes/geocode.js | routes/geocode.js | var express = require('express');
var debug = require('debug')('geocode');
var fb = require('fb');
var moment = require('moment');
var g_API_key = ['AIzaSyD4C_0grHO3gWxgCLGbndJy_ejDXbKNDXk', ];
var g_API_key_offset = 0;
var hat = require('hat');
var request = require('request');
var THRESHOLD = 15;
var router = exp... | JavaScript | 0 | @@ -915,27 +915,24 @@
;%0A%09%09%7D%0A%09%09
-console.log
+res.send
(events)
|
c6a46f159bf5b68ad76fbdf5092174ed535fe524 | fix chrome context menu error, closes #629 | shells/chrome/src/background.js | shells/chrome/src/background.js | // the background script runs all the time and serves as a central message
// hub for each vue devtools (panel + proxy + backend) instance.
const ports = {}
chrome.runtime.onConnect.addListener(port => {
let tab
let name
if (isNumeric(port.name)) {
tab = port.name
name = 'devtools'
installProxy(+por... | JavaScript | 0.000001 | @@ -2595,16 +2595,58 @@
em () %7B%0A
+ chrome.contextMenus.removeAll(() =%3E %7B%0A
if (po
@@ -2665,24 +2665,26 @@
bId%5D) %7B%0A
+
+
chrome.conte
@@ -2702,24 +2702,26 @@
ate(%7B%0A
+
id: 'vue-ins
@@ -2742,16 +2742,18 @@
,%0A
+
+
title: '
@@ -2776,16 +2776,18 @@
onent',%0A
+
... |
76cc8939d961d4696d74408b01e9e4040141acc6 | Update to Tag Manager | components/GoogleAnalytics/GoogleAnalytics.js | components/GoogleAnalytics/GoogleAnalytics.js | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
import { googleAnalyticsId } from '../../config';
const trackingCode = { __html:
`(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(... | JavaScript | 0 | @@ -254,18 +254,16 @@
__html:%0A
-
%60(functi
@@ -269,163 +269,106 @@
ion(
-b,o,i,l,e,r)%7Bb.GoogleAnalyticsObject=l;b%5Bl%5D%7C%7C(b%5Bl%5D=%60 +%0A %60function()%7B(b%5Bl%5D.q=b%5Bl%5D.q%7C%7C%5B%5D).push(arguments)%7D);b%5Bl%5D.l=+new Date;%60 +%0A %60e=o.createElement(i);r=o
+w,d,s,l,i)%7Bw%5Bl%5D=w%5Bl%5D%7... |
b4c1085d6c915926a5315c3a358e2aa9469decb5 | FIX - File Path | routes/route-family.js | routes/route-family.js | var express = require('express')
var router = express.Router()
const family_file = "family.json"
const fs = require('fs')
// define the home page route
router.get('/', function (req, res) {
res.json(readFamily())
})
// define the about route
router.get('/about', function (req, res) {
res.send('About Page')
})
f... | JavaScript | 0 | @@ -56,16 +56,118 @@
outer()%0A
+var fs = require('fs')%0Avar path = require('path');%0Avar appDir = path.dirname(require.main.filename);%0A%0A
const fa
@@ -195,33 +195,8 @@
son%22
-%0Aconst fs = require('fs')
%0A%0A//
@@ -434,11 +434,18 @@
le((
-'..
+appDir + '
/dat
|
1a383458113e447e821cc2df708b66aa8ba8acf6 | remove unnecessary code | src/game/ui/HealthView.js | src/game/ui/HealthView.js | let debug = require('debug')('game:game/ui/HealthView');
import View from '../../engine/views/View';
class HealthView extends View {
constructor () {
super();
this._healthScale = 1;
}
init () {
let material = new THREE.MeshBasicMaterial({
color: 0xff0000
});
... | JavaScript | 0.00242 | @@ -1061,104 +1061,8 @@
dX;%0A
- this.geometry.verticesNee = true;%0A this.geometry.dynamic = true;%0A
|
d30236af0c6482a5806a80214cc3ed4c89aa95d0 | Add runtime metamodel to Callable | runtime-js/callable.js | runtime-js/callable.js | function initType(a,b,c,d,e,f){}//IGNORE
function String$(x){}//IGNORE
function ArraySequence(x){}//IGNORE
var exports;//IGNORE
function Callable(wat) {
return wat;
}
initType(Callable, 'ceylon.language::Callable');
exports.Callable=Callable;
function $JsCallable(callable,targs) {
callable.getT$all=Callable.g... | JavaScript | 0.000001 | @@ -161,24 +161,116 @@
turn wat;%0A%7D%0A
+Callable.$$metamodel$$=%7B$nm:'Callable',$tp:%7BReturn:%7B'var':'out'%7D, Arguments:%7B'var':'in'%7D%7D%7D;%0A
initType(Cal
@@ -798,16 +798,110 @@
noop;%0A%7D
+%0AJsCallable.$$metamodel$$=%7B$nm:'Callable',$tp:%7BReturn:%7B'var':'out'%7D, Arguments:%7B'var':'in'%7D%7D%7D;
... |
0a572a7b1931f2e8d88034844e8bfb5693c59a0f | add missing reference to global scope for emailjs | src/components/pages/contact/sendEmail.js | src/components/pages/contact/sendEmail.js | const templateKey = "portfolio";
const serviceKey = "gmail";
const handleSuccess = function(response) {
console.log("SUCCESS. status=%d, text=%s", response.status, response.text);
};
const handleError = function(err) {
console.log("FAILED. error=", err);
};
const sendEmail = function(form) {
return emailjs
... | JavaScript | 0 | @@ -302,16 +302,23 @@
return
+window.
emailjs%0A
|
e03ed8c3742e790b7a6e13e0923aad435464207f | fix build | bin/package.js | bin/package.js | #!/usr/bin/env node
/**
* Builds app binaries for OS X, Linux, and Windows.
*/
var config = require('../config')
var cp = require('child_process')
var electronPackager = require('electron-packager')
var fs = require('fs')
var path = require('path')
var pkg = require('../package.json')
var all = {
// Build 64 bit... | JavaScript | 0.000001 | @@ -1564,11 +1564,8 @@
.js%7C
-ws%7C
%5C.%5B%5E
|
279b8afad0454abc8012a0e43b51b07eaa857efa | Add fallback to blob-builder on low-end devices (#3937) | core/templates/dev/head/services/AssetsBackendApiService.js | core/templates/dev/head/services/AssetsBackendApiService.js | // Copyright 2017 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | JavaScript | 0 | @@ -1760,32 +1760,48 @@
unction(data) %7B%0A
+ try %7B%0A
var audi
@@ -1822,24 +1822,543 @@
ob(%5Bdata%5D);%0A
+ %7D catch (exception) %7B%0A window.BlobBuilder = window.BlobBuilder %7C%7C%0A window.WebKitBlobBuilder %7C%7C%0A window.Mo... |
a4632eaa4df7b109d66a1e33fb1044ae56973501 | Make utils.startWorker accept onInit, onMessage, and onShutdown callbacks | nodeWorkerUtils.js | nodeWorkerUtils.js | var JSONStreamParser = require('./lib/JSONStreamParser');
var Q = require('q');
var util = require('util');
function respondWithError(err) {
if (util.isError(err)) {
err = err.stack;
}
console.log(JSON.stringify({error: err}, null, 2));
}
function respondWithResult(result) {
console.log(JSON.stringify({re... | JavaScript | 0.000001 | @@ -365,16 +365,30 @@
tWorker(
+onInitialize,
onMessag
@@ -756,22 +756,8 @@
) %7B%0A
- try %7B%0A
@@ -799,21 +799,37 @@
- initData =
+try %7B%0A onInitialize(
rcvd
@@ -843,16 +843,17 @@
initData
+)
;%0A
@@ -946,20 +946,157 @@
%7D
-else
+catch (e) %7B%0A consol... |
d63e274c4a5670b51a644cab2bf2bea05ae6c6a1 | Handle undefined variables in underscore templates | core/lib/pattern_engines/engine_underscore.js | core/lib/pattern_engines/engine_underscore.js | /*
* underscore pattern engine for patternlab-node - v0.15.1 - 2015
*
* Geoffrey Pursell, Brian Muenzenmeyer, and the web community.
* Licensed under the MIT license.
*
* Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice.
*
*/
/*
* ENGINE SUPPORT LEVEL:
*
* Basic. We can't... | JavaScript | 0.000001 | @@ -1705,38 +1705,363 @@
emplate);%0A
-return
+var renderedHTML;%0A%0A // This try-catch is necessary because references to undefined variables%0A // in underscore templates are eval()ed directly as javascript, and as%0A // such will throw very real exceptions that will shatter the whole build%0A ... |
2e812a3ab6b11902165adc329130585e3a01fa62 | fix bug | src/js/CapturePlayback.js | src/js/CapturePlayback.js | /**
* CapturePlayback
*
* @author VinhLH
*/
"use strict";
var app = angular.module('CapturePlayback', ['Jira', 'ngPrism']);
app.controller('MainController', ['$scope', 'JiraAPIs', function ($scope, JiraAPIs) {
$scope.projects = null;
$scope.issues = null;
$scope.scripts = null;
$scope.scriptKeys ... | JavaScript | 0.000001 | @@ -61,19 +61,24 @@
%22;%0A%0Avar
-app
+playback
= angul
@@ -133,11 +133,16 @@
);%0A%0A
-app
+playback
.con
@@ -1010,32 +1010,35 @@
%0A
+ //
$scope.selected
@@ -1065,35 +1065,32 @@
%0A
- //
$scope.selected
|
396bddd03f48450eeb1753d6459afd53f334af2a | Return initials; profiles | schema/partner.js | schema/partner.js | import gravity from '../lib/loaders/gravity';
import {
GraphQLString,
GraphQLObjectType,
GraphQLNonNull,
GraphQLInt
} from 'graphql';
let PartnerType = new GraphQLObjectType({
name: 'Partner',
fields: () => ({
cached: {
type: GraphQLInt,
resolve: ({ cached }) => new Date().getTime() - cache... | JavaScript | 0.000049 | @@ -1,12 +1,36 @@
+import _ from 'lodash';%0A
import gravi
@@ -63,16 +63,87 @@
avity';%0A
+import cached from './fields/cached';%0Aimport Profile from './profile';%0A
import %7B
@@ -201,22 +201,8 @@
Null
-,%0A GraphQLInt
%0A%7D f
@@ -313,100 +313,14 @@
ed:
-%7B%0A type: GraphQLInt,%0A resolve: (%7B ca... |
c8a2c87faabe8db2f2fdc8036a76491b13c26723 | extend instead of overwriting cluster | client/app/modules/events-map/services/map-service.js | client/app/modules/events-map/services/map-service.js | 'use strict';
angular.module('genie.eventsMap')
.factory('mapService', ['ZoomLevel', '$http', function(ZoomLevel, $http) {
function findZoomLevel(options) {
return ZoomLevel.find({
filter: {
where: {
zoom_level: options.zoom_level,
minutes_ago: options.minutes_ago
}
... | JavaScript | 0.000001 | @@ -1096,22 +1096,32 @@
-return
+var uiFriendly =
%7B%0A
@@ -1310,80 +1310,8 @@
g),%0A
- weight: cluster.weight,%0A events: cluster.events,%0A
@@ -1453,16 +1453,16 @@
:mm a')%0A
-
@@ -1466,16 +1466,70 @@
%7D;%0A
+ return angular.extend(cluster, uiF... |
43cd6b0f868ca3cd0d47887727966c2aec65a0b8 | Fix typo | client/src/connectionAccesses/ConnectionAccessList.js | client/src/connectionAccesses/ConnectionAccessList.js | import React, { useEffect, useState } from 'react';
import { connect } from 'unistore/react';
import humanizeDuration from 'humanize-duration';
import Button from '../common/Button';
import DeleteConfirmButton from '../common/DeleteConfirmButton';
import ListItem from '../common/ListItem';
import Text from '../common/T... | JavaScript | 0.999999 | @@ -3443,17 +3443,17 @@
'Indefin
-e
+i
te'%7D%7B' '
|
7eeda1afa3132809026fbd8c94f1a8baa20d9779 | Update reflect script to use built sdk | script/reflect.js | script/reflect.js | /* global Promise */
var fs = require('fs');
var path = require('path');
var auth = require('../plugins/api-key');
var request = require('../request')(auth(process.env.FLICKR_API_KEY));
/**
* Get the destination filename for `method`
* @param {String} method
* @returns {String}
*/
function filename(method) {
re... | JavaScript | 0 | @@ -75,86 +75,30 @@
var
-auth = require('../plugins/api-key');%0Avar request = require('../request')(auth
+flickr = require('..')
(pro
@@ -121,17 +121,16 @@
API_KEY)
-)
;%0A%0A/**%0A
@@ -616,32 +616,16 @@
%09return
-request('GET', '
flickr.r
@@ -651,21 +651,13 @@
Info
-')
+(%7B
%0A%09%09
-.query('
meth
@@ -... |
b6d8320b648c5ab6b1070b33d72dc126a6666459 | Send message to Iframe | sdk/src/Application.js | sdk/src/Application.js | import Style from './style.css';
import ChatHeaderTemplate from './chat-header.html';
import ChatFooterTemplate from './chat-footer.html';
export default class Application {
constructor() {
//Default options
this.options = {
title: 'Estamos online',
onEnter: () => { },
onLeave: () => { },
... | JavaScript | 0 | @@ -950,20 +950,16 @@
ions) %7B%0A
-
%0A let
@@ -1287,43 +1287,276 @@
ame.
-src = this.IFRAMEURL + '?' + params
+id = 'iframe-chat';%0A this.chatIframe.src = this.IFRAMEURL + '?' + params;%0A this.chatIframe.onload = function () %7B%0A var iframe = document.getElementById('iframe-chat');%0A if... |
0902473b516b2932735ca5daf85f81b117a0c33b | Add update job handler | server/handlers/job.js | server/handlers/job.js | import {badRequest, notFound} from 'boom'
import Joi from 'joi'
import Logger from '@modulus/logger'
import Job from '../models/job'
let logger = Logger('handlers/job')
export default {
/////////// Job.create \\\\\\\\\\
create: {
validate: {
payload: {
employer: Joi.string().required(),
... | JavaScript | 0.000001 | @@ -2523,14 +2523,803 @@
)%0A %7D%0A
+ %7D,%0A%0A ////////// Job.update %5C%5C%5C%5C%5C%5C%5C%5C%5C%5C%0A update: %7B%0A validate: %7B%0A params: %7B%0A id: Joi.string().required()%0A %7D,%0A payload: %7B%0A employer: Joi.string(),%0A location: %7B%0A city: Joi.str... |
8587dac06565fa5e4c356fc26d5dff8c5998faab | Set PhantomJS exit code properly on failures | build/ci/phantom.js | build/ci/phantom.js | /*
* Qt+WebKit powered headless test runner using Phantomjs
*
* Phantomjs installation: http://code.google.com/p/phantomjs/wiki/BuildInstructions
*
* Run with:
* phantomjs runner.js [url-of-your-qunit-testsuite]
*
* E.g.
* phantomjs runner.js http://localhost/qunit/test
*/
var url = phantom.args[0];
v... | JavaScript | 0.000001 | @@ -503,20 +503,17 @@
(msg) %7B%0A
-
+%09
console.
@@ -2085,22 +2085,23 @@
%7B%0A%09var
-output
+success
= page.
@@ -2128,31 +2128,15 @@
%7B%0A%09%09
-%09
return
-JSON.stringify(
wind
@@ -2147,13 +2147,15 @@
unit
-Done)
+Success
;%0A%09%7D
@@ -2175,45 +2175,23 @@
xit(
-JSON.parse(output).failed %3E 0 ... |
9046c1550356c26a458e3728582e6a285625a84a | call super | public/js/views/database_function_list_view.js | public/js/views/database_function_list_view.js | (function($, ns) {
ns.views.DatabaseFunctionList = ns.views.DatabaseList.extend({
className : "database_function_list",
useLoadingSection: true,
events: {
"click .context a": "contextClicked"
},
setup: function() {
this.sandbox = this.options.sandbox... | JavaScript | 0.000015 | @@ -1089,122 +1089,34 @@
-chorus.search(%7B%0A input: this.$('input.search'),%0A list: this.$('ul')%0A %7D);%0A
+this._super('postRender');
%0A
|
ea187f4ab4fe3ec4dbcb0b050fdc73200bc31fb4 | Fix stamen subdomain list | source/js/map/VCO.StamenMaps.js | source/js/map/VCO.StamenMaps.js | /* VCO.StamenMaps
Makes Stamen Map tiles available
http://maps.stamen.com/
================================================== */
(function(exports) {
/* tile.stamen.js v1.2.3
================================================== */
var SUBDOMAINS = " a b c d".split(" "),
MAKE_PROVIDER = function(layer, type, minZ... | JavaScript | 0.000012 | @@ -247,17 +247,16 @@
AINS = %22
-
a b c d%22
|
ece9ec6a2c40f309d37fb6c35b6661ec82f3977b | Make sure the requirejs binaries wont get uglified since they are breaking the ulgification | Build/Grunt-Options/uglify.js | Build/Grunt-Options/uglify.js | /**
* Grunt-Contrib-Uglify
* @description Minify files with UglifyJS.
* @docs https://github.com/gruntjs/grunt-contrib-uglify
*/
var config = require("../Config");
module.exports = {
js: {
options: {
banner: config.bannerComment()
},
files: [{
expand: true,
cwd: config.JavaScripts.paths.devDir,
... | JavaScript | 0 | @@ -328,32 +328,69 @@
%0A%09%09%09%09%22**/*.js%22,%0A
+%09%09%09%09%22!Vendor/requirejs/bin/**/*.js%22,%0A
%09%09%09%09%22!Vendor/alm
|
ef301f3fa271aa2481d1d434966f4071f1ca82f5 | fix auto refresh public feed when tab clicked if pending updates | modules/page/html/render/public.js | modules/page/html/render/public.js | var nest = require('depnest')
var { h, send, when, computed, map } = require('mutant')
var extend = require('xtend')
var pull = require('pull-stream')
exports.gives = nest({
'page.html.render': true
})
exports.needs = nest({
sbot: {
pull: {
log: 'first',
feed: 'first',
userFeed: 'first'
... | JavaScript | 0 | @@ -2951,16 +2951,52 @@
gUpdates
+%0A result.reload = feedView.reload
%0A%0A re
|
2fe9c06695ba01b1aa1f451177c0bc2939574677 | Update numberIterators.js | numberIterators.js | numberIterators.js | Number.iterator(function(){
var up=this.valueOf();
for(var i=0;i<up;i++){
this.yield({n:i});
}
return null;
},"times");
/**
* Ruby-style times iterator for Number s.
* */
| JavaScript | 0 | @@ -125,16 +125,306 @@
imes%22);%0A
+Number.iterator(function(upTo)%7B%0A var low=this.valueOf();%0A for(var i=low;i%3C=upTo;i++)%7B%0A this.yield(%7Bn:i%7D);%0A %7D%0A return null;%0A%7D,%22upto%22);%0ANumber.iterator(function(downTo)%7B%0A var high=this.valueOf();%0A for(var i=high;i%3E=downTo;i--)%7B%0A ... |
17b8157145507a8c9d3eb457b9fa2eea5433f6a4 | change update interval | web3/static/js/sites/info.js | web3/static/js/sites/info.js | jQuery.fn.selectText = function(){
var doc = document;
var element = this[0];
if (doc.body.createTextRange) {
var range = document.body.createTextRange();
range.moveToElementText(element);
range.select();
} else if (window.getSelection) {
var selection = window.getSelection();
... | JavaScript | 0.000001 | @@ -780,9 +780,9 @@
%7D,
-2
+1
000)
|
bce9ee3adf2d14dc884bdef53f56ded377c50dc1 | Remove debug trace | core/app/assets/javascripts/admin/orders/edit_form.js | core/app/assets/javascripts/admin/orders/edit_form.js | $(document).ready(function() {
$.each($('td.qty input'), function(i, input) {
$(input).on('change', function() {
var id = "#" + $(this).attr('id').replace("_quantity", "_id");
console.log($(this))
console.log($(id))
jQuery.post("/admin/orders/" + $('input#order_number').val() + "/line_i... | JavaScript | 0.000005 | @@ -186,60 +186,8 @@
d%22);
-%0A console.log($(this))%0A console.log($(id))
%0A%0A
|
267dfa831b3d635b171103aa7c1c2fee66e86e2a | fix locations => location.js | corehq/apps/locations/static/locations/js/location.js | corehq/apps/locations/static/locations/js/location.js | // for product and user per location selection
hqDefine("locations/js/location", [
'jquery',
'knockout',
'underscore',
'hqwebapp/js/initial_page_data',
'hqwebapp/js/alert_user',
'analytix/js/google',
'locations/js/location_drilldown',
'hqwebapp/js/select_2_ajax_widget',
'hqwebapp/js/... | JavaScript | 0.000013 | @@ -1016,17 +1016,17 @@
%22User %3C%25
-=
+-
name %25%3E
|
44955a12a723c94b93ae2c67814ef48cd9fac7f7 | Update index.js | www/js/index.js | www/js/index.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0.000002 | @@ -1609,24 +1609,94 @@
iceready');%0A
+ navigator.geolocation.getCurrentPosition(onSuccess, onError);%0A
%0A %7D,%0A
@@ -3115,16 +3115,1155 @@
%7D );%0A
+ %7D,%0A onSuccess: function(position) %7B%0A var element = document.getElementById('geolocation');%0A element.innerHTML = 'L... |
77e71c9c6a748f62e54f7864ccaf2c8e02af8a27 | Add alert on Blrb/Me | www/js/index.js | www/js/index.js | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | JavaScript | 0 | @@ -1730,16 +1730,213 @@
.url); %0A
+ %0A %09if(event.url.indexOf('Blrb/Me') != -1)%0A %09%7B%0A %09%09debugger;%0A %09%09alert(%22ME%22);%0A %09%09alert(event.url);%0A %09%09alert(event);%0A %09%7D%0A %0A
@@ -1984,32 +1984,52 @@
... |
78327eac44243e0fe8cbc64392a9ebeae2f05083 | Update vstarcam.js | www/vstarcam.js | www/vstarcam.js | var exec = require('cordova/exec');
module.exports = {
videostream: function(cameraId, user, pass, onSuccess, onError){
exec(onSuccess, onError, "Vstarcam", "videostream", [cameraId, user, pass]);
}
};
| JavaScript | 0.000001 | @@ -115,16 +115,86 @@
Error)%7B%0A
+%09%09console.log('videostream-params:'+cameraId+','+ user + ',' + pass);%0A
%09%09exec(o
|
b92aa8004dfde13fc12fa514ce76a427bda8de5e | Add decimal point feature. Needs adjusting to compensate for accuracy errors w/ precision problems of non-integers. | assets/javascript/main.js | assets/javascript/main.js | //Function to run when window is loaded in browser Sets variables, event handlers, and contains event listener definitions.
var init = function () {
//Declare local variables
var equalsButton; //for querySelector
var clearButton; //for querySelector
var toggleSignButton; // for querySelector
var d... | JavaScript | 0.000001 | @@ -1289,34 +1289,8 @@
ent;
-%0A var lastValueEntered;
%0A%0A
@@ -1317,73 +1317,32 @@
Last
-) %7B%0A lastValueEntered = calculation%5Bcalculation.length - 1%5D;
+ %7C%7C numberPressedLast) %7B
%0A
@@ -1378,36 +1378,18 @@
ngth-1%5D
-= lastValueEntered
+
+=
text;%0A
@@ -1498,172 +1498,8 @@
1%5D;%... |
a08a58d5c36a2016d36a358e6ac7c11d7ea4e713 | Fix collapsible | assets/js/admin-global.js | assets/js/admin-global.js | (function ($)
{
var constants = {
notification: {
show: {
duration: 'slow',
delay: 500
},
hide: {
duration: 'slow',
delay: 5000
}
}
},
properties = {
},
... | JavaScript | 0.000002 | @@ -1863,63 +1863,14 @@
- return;%0D%0A %7D%0D%0A
+%7D else
if
|
fecec2910e6b390248b2b514131e0b175fc131f1 | Fix settings page filter function | components/Settings/Settings.js | components/Settings/Settings.js | import React, { Component, PropTypes } from 'react'
import bem from 'js-kit/dom/bem'
import SettingsLink from '../SettingsLink/SettingsLink'
class Settings extends Component {
static propTypes = {
services: PropTypes.array.isRequired,
updateServiceSubscription: PropTypes.func.isRequired
};
constructor (... | JavaScript | 0.000001 | @@ -701,17 +701,17 @@
Case())
-=
+!
== -1%0A
|
3f5ee974d2e2bd30b38c3235c13089c302c27f78 | add playedDate to scoreboard | client/app/scripts/services/GameService.js | client/app/scripts/services/GameService.js | 'use strict';
angular.module('meanRecipieApp')
.factory('GameService', function(localStorageService, ScoreResource) {
var game = {
scoreBoard: {}
};
var cardIndex = 0;
var saveScoreboardLocal = function() {
localStorageService.add(game.deck.name, angular.toJson(game.scoreBoard));
};
return {
... | JavaScript | 0.000001 | @@ -357,24 +357,69 @@
dIndex = 0;%0A
+%09%09%09%09game.scoreBoard.playedDate = new Date();%0A
%09%09%09%09game.sco
|
3f6faa5371b73bbda8eb5d1c6fb3b39b9f6cf554 | Use segment for tracking | client/app/scripts/utils/tracking-utils.js | client/app/scripts/utils/tracking-utils.js | import debug from 'debug';
const log = debug('service:tracking');
// Track mixpanel events only if Scope is running inside of Weave Cloud.
export function trackMixpanelEvent(name, props) {
if (window.mixpanel && process.env.WEAVE_CLOUD) {
window.mixpanel.track(name, props);
} else {
log('trackMixpanelEven... | JavaScript | 0 | @@ -197,24 +197,25 @@
(window.
-mixpanel
+analytics
&& proc
@@ -248,24 +248,25 @@
window.
-mixpanel
+analytics
.track(n
|
db68279aa1a8581a574a41bba86481f93c8c04a3 | Update main.js | blocks/main.js | blocks/main.js | export default(request) =>{
// Required modules
const db = require("kvstore"); // Database module
const xhr = require("xhr"); // xmlHttprequest module
const pubnub = require("pubnub");
var date_const = new Date(); // Date constructor
var message_dict = {};
var url_fetched_data = null;
var fetched_message_bod... | JavaScript | 0.000001 | @@ -5521,21 +5521,23 @@
econd co
-mmand
+ndition
ending%0A
|
67b4aa7543ecd25a78ee81170ab8355e2ec183a2 | Add pull-down class | src/js/pull-to-refresh.js | src/js/pull-to-refresh.js | /*======================================================
************ Pull To Refresh ************
======================================================*/
app.initPullToRefresh = function (pageContainer) {
var eventsTarget = $(pageContainer);
if (!eventsTarget.hasClass('pull-to-refresh-content')) {
... | JavaScript | 0 | @@ -2904,32 +2904,57 @@
Class('pull-up')
+.removeClass('pull-down')
;%0A %7D%0A
@@ -3045,32 +3045,54 @@
Class('pull-up')
+.addClass('pull-down')
;%0A %7D%0A
@@ -3167,24 +3167,34 @@
ass('pull-up
+ pull-down
');%0A
@@ -3793,32 +3793,105 @@
%7D);%0A %7D%0A
+ else %7B%0A... |
483cf30801069d24122a130dfcb9d85fd55474c2 | Support environments without ReadableStream (#23032) | src/loaders/FileLoader.js | src/loaders/FileLoader.js | import { Cache } from './Cache.js';
import { Loader } from './Loader.js';
const loading = {};
class FileLoader extends Loader {
constructor( manager ) {
super( manager );
}
load( url, onLoad, onProgress, onError ) {
if ( url === undefined ) url = '';
if ( this.path !== undefined ) url = this.path + url... | JavaScript | 0 | @@ -1558,24 +1558,150 @@
);%0A%0A%09%09%09%09%09%7D%0A%0A
+%09%09%09%09%09if ( typeof ReadableStream === 'undefined' %7C%7C response.body.getReader === undefined ) %7B%0A%0A%09%09%09%09%09%09return response;%0A%0A%09%09%09%09%09%7D%0A%0A
%09%09%09%09%09const c
@@ -1723,24 +1723,24 @@
ing%5B url %5D;%0A
-
%09%09%09%... |
b5a4cc7f2f11eba10d0f4605594f11b76cd12afa | Remove https for daum | examples/tms-tiled/script.js | examples/tms-tiled/script.js | var crs = new L.Proj.CRS('EPSG:5181',
'+proj=tmerc +lat_0=38 +lon_0=127 +k=1 +x_0=200000 +y_0=500000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
{
resolutions: [2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5, 0.25],
origin: [-30000, -60000],
bounds: L.bounds([-30000, -60000], [494288, ... | JavaScript | 0 | @@ -440,17 +440,16 @@
er('http
-s
://i%7Bs%7D.
|
71e712dd24883286cb43e5f571a03604a60f06df | Fix alanning:roles code | security-rules.js | security-rules.js | /*
* This file defines built-in restriction methods
*/
/*
* No one
*/
Security.defineMethod("never", {
fetch: [],
transform: null,
deny: function () {
return true;
}
});
/*
* Logged In
*/
Security.defineMethod("ifLoggedIn", {
fetch: [],
transform: null,
deny: function (type, arg, userId) {
... | JavaScript | 0.001083 | @@ -1009,35 +1009,36 @@
turn !Roles.user
-Has
+IsIn
Role(userId, arg
|
2365d644e5db39b2942dfdd3b98a3ecab374dfa8 | fix indentation and start using compact obj literal | src/main/LocationTrack.js | src/main/LocationTrack.js | /**
* A track which shows the location of the base in the middle of the view.
* @flow
*/
'use strict';
var React = require('./react-shim'),
_ = require('underscore'),
d3 = require('d3'),
shallowEquals = require('shallow-equals'),
types = require('./react-types'),
d3utils = require('./d3utils');
... | JavaScript | 0.000003 | @@ -1056,26 +1056,24 @@
e(%7B%0A
-
labelSize: %7B
@@ -1082,24 +1082,9 @@
ight
-: height, width:
+,
wid
|
eb111efe859d7c48088e066aab4f435db170ac86 | Use non-breaking space to separate emoji and reaction count. | src/webview/html/messageReactionAsHtml.js | src/webview/html/messageReactionAsHtml.js | /* @flow */
import type { AggregatedReaction, RealmEmojiState, RealmEmojiType } from '../../types';
import emojiMap from '../../emoji/emojiMap';
import template from './template';
const getRealmEmojiHtml = (realmEmoji: RealmEmojiType): string =>
template`<img class="realm-reaction" src="${realmEmoji.source_url}"/>
... | JavaScript | 0.000001 | @@ -755,17 +755,22 @@
ame%5D%0A %7D
-
+
$%7Breacti
|
5d41ef7d0f37e0ea242467546ee41c602151d287 | update compiled coffeescript | labs/architecture-examples/serenadejs/js/app.js | labs/architecture-examples/serenadejs/js/app.js | // Generated by CoffeeScript 1.6.2
(function() {
var App, AppController, Todo, TodoController, app, router, _ref, _ref1,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructo... | JavaScript | 0 | @@ -26,17 +26,17 @@
ipt 1.6.
-2
+3
%0A(functi
@@ -1970,17 +1970,16 @@
esults;%0A
-%0A
@@ -2957,17 +2957,16 @@
title;%0A
-%0A
ti
@@ -3678,24 +3678,74 @@
e.trim()) %7B%0A
+ this.todo.title = this.todo.title.trim();%0A
if (
|
7c6f36d6370442f75117cdd6699827ba4aacdb19 | Use jsfiledownload for save. | devilry/apps/i18n/static/extjs_classes/i18n/TranslateGui.js | devilry/apps/i18n/static/extjs_classes/i18n/TranslateGui.js | Ext.define('devilry.i18n.TranslateGui', {
extend: 'Ext.panel.Panel',
alias: 'widget.i18n-translategui',
requires: [
'devilry.i18n.TranslateGuiModel',
'devilry.i18n.TranslateGuiGrid'
],
initComponent: function() {
this.store = Ext.create('Ext.data.Store', {
model:... | JavaScript | 0 | @@ -202,16 +202,65 @@
GuiGrid'
+,%0A 'devilry.jsfiledownload.JsFileDownload'
%0A %5D,%0A
@@ -3609,24 +3609,100 @@
og(result);%0A
+ devilry.jsfiledownload.JsFileDownload.saveas('trans.json', result);%0A
%7D,%0A%0A
|
1b5ea8ff2a062acdb207f9b79befba84401ce54a | Add early return statement in when calling `res.err` in api handlers | server/app/api.js | server/app/api.js | import express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import multer from 'multer';
import crypto from 'crypto';
import Program from './model/Program';
import Post from './model/Post';
import Broadcast from './model/Broadcast';
const {ObjectId} = mongoose.Types;
const r... | JavaScript | 0.000001 | @@ -1457,32 +1457,39 @@
if (err)%0A
+return
res.send(err);%0A
@@ -1479,32 +1479,32 @@
res.send(err);%0A
-
res.json(%7Bme
@@ -1749,32 +1749,39 @@
if (err)%0A
+return
res.send(err);%0A
@@ -2163,32 +2163,39 @@
if (err)%0A
+return
res.send(err);%0A
@@ -2431,32 +2431,39 @@
if (err)%... |
b277a963f0d90747cc45080ca84bfe2cde32ac9a | eslint fail | components/_util/__tests__/easings.test.js | components/_util/__tests__/easings.test.js | import { easeInOutCubic } from '../easings';
describe('Test easings', () => {
it('easeInOutCubic return value', () => {
const nums = [];
for (let index = 0; index < 5; index++) {
nums.push(easeInOutCubic(index, 1, 5, 4));
}
expect(nums).toEqual([1, 1.25, 3, 4.75, 5]);
});
});
| JavaScript | 0.998854 | @@ -137,16 +137,60 @@
s = %5B%5D;%0A
+ // eslint-disable-next-line no-plusplus%0A
for
|
6000059a64cade7a7e81f99cb719a7a0eaec5f24 | Update build version | extension/build-variables.js | extension/build-variables.js | module.exports = {
storeURL: {
chrome: 'https://chrome.google.com/webstore/detail/gene-info/jggendahejbhkghnachhlomkkheomchp',
edge: 'https://microsoftedge.microsoft.com/addons/detail/gene-info/hegihjieeonojcnhfmhmedmoobggamka',
firefox: 'https://addons.mozilla.org/firefox/addon/gene-info/',
safari: '... | JavaScript | 0 | @@ -394,15 +394,15 @@
n: '1.7.
-0
+1
',%0A%7D;%0A
|
05c7587ca93f4d04982900afc60ac71ec70e7114 | Move story based tests order | components/story-based-tests.js | components/story-based-tests.js | /*
* STORY-BASED SNAPSHOT TESTING
*
* Please add stories below to use Storybook Stories (http://localhost:9001)
* as the basis for DOM and image snapshots to allow markup and visual regression
* testing. All new components should be added below to enable DOM and image
* snapshots. With enough Storybook story exam... | JavaScript | 0 | @@ -1981,87 +1981,20 @@
ort
-Input from '../components/input/__docs__/storybook-stories';%0A// export Textarea
+GlobalHeader
fro
@@ -2014,16 +2014,21 @@
nts/
-textarea
+global-header
/__d
@@ -2057,24 +2057,20 @@
s';%0A
-//
export
-Search
+Input
fro
@@ -2105,15 +2105,8 @@
s__/
-search/
stor
@@ -2273,81 +22... |
3d48d7932136defa459766940ebe3cd153a8cf98 | change interface selection to device | applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js | applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js | 'use strict';
'require view';
'require form';
'require tools.widgets as widgets';
return view.extend({
render: function () {
var m, s, o;
m = new form.Map('watchcat',
_('Watchcat'),
_("Here you can set up several checks and actions to take in the event that a host becomes unreachable. \
Click the <b>A... | JavaScript | 0 | @@ -3820,39 +3820,38 @@
neral', widgets.
-Network
+Device
Select, 'interfa
|
d8b713769a664033185db57a3852c91a156d35f5 | switch to shallow merge | Utils/computeProps.js | Utils/computeProps.js | 'use_strict';
import _ from 'lodash';
import ReactNativePropRegistry from 'react/lib/ReactNativePropRegistry';
// For compatibility with RN 0.25
// import ReactNativePropRegistry from "react-native/Libraries/ReactNative/ReactNativePropRegistry";
module.exports = function(incomingProps, defaultProps) {
// External p... | JavaScript | 0.000002 | @@ -611,236 +611,8 @@
) %7B%0A
- try %7B%0A _.merge(computedProps, defaultProps, incomingProps);%0A %7D catch (exception) %7B%0A console.log('Warning: Call stack size exceeded when merging props, falling back to shallow merge.');%0A
@@ -667,26 +667,16 @@
Props);%0A
- ... |
348ea27dd4a418b60315f3f8d14bb09f4891862b | add note about click handlers | solution/js/ttt-widget.js | solution/js/ttt-widget.js | (function () {
if (typeof TTT === "undefined") {
window.TTT = {};
}
var Widget = TTT.Widget = function (game, $el) {
this.game = game;
this.$el = $el;
};
Widget.prototype.bindEvents = function () {
var widget = this;
// install a handler on the `li` elements inside the board.
this.$... | JavaScript | 0 | @@ -764,24 +764,57 @@
isOver()) %7B%0A
+ // cleanup click handlers.%0A
this.$
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.