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
c719b252cb154e73673deed3f760883a9f60a7c7
Add failing spec
spec/api-desktop-capturer-spec.js
spec/api-desktop-capturer-spec.js
const assert = require('assert'); const desktopCapturer = require('electron').desktopCapturer; describe('desktopCapturer', function() { it('should return a non-empty array of sources', function(done) { desktopCapturer.getSources({ types: ['window', 'screen'] }, function(error, sources) { assert.e...
JavaScript
0.000002
@@ -401,13 +401,450 @@ );%0A %7D); +%0A%0A it('does not throw an error when called twice (regression)', function(done) %7B%0A var callCount = 0;%0A var callback = function(error, sources) %7B%0A callCount++;%0A assert.equal(error, null);%0A assert.notEqual(sources.length, 0);%0A if (callCou...
b6b7b7a5672e7bedf7863ee96a50ef55a2b4ee36
Update player_model.js
src/model/player_model.js
src/model/player_model.js
import AbstractByteSequenceAwareModel from "./abstract_byte_sequence_aware_model"; const FLAG_HUMAN_CONTROLLED = 0x01; export default class PlayerModel extends AbstractByteSequenceAwareModel { constructor() { super(); this.id = 'undefined'; this.username = this.email = 'undefined'; } ...
JavaScript
0.000001
@@ -274,29 +274,12 @@ his. -username = this.email +name = ' @@ -394,21 +394,17 @@ %0A get -Usern +N ame() %7B%0A @@ -419,28 +419,24 @@ return this. -user name;%0A %7D%0A @@ -447,25 +447,14 @@ set -Username(username +Name(v ) %7B%0A @@ -470,135 +470,16 @@ his. -user name = -username;%0A %7D%0A%0A ...
0f345935ca5c1fa42b3ed67166cc6e5845160b41
Make sure elements share the same scope
spec/javascripts/zen_mode_spec.js
spec/javascripts/zen_mode_spec.js
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-return-assign, new-cap, padded-blocks, max-len */ /* global Dropzone */ /* global Mousetrap */ /* global ZenMode */ /*= require zen_mode */ (function() { var enterZen, escapeKeydown, exit...
JavaScript
0
@@ -1141,24 +1141,36 @@ %0A $(' +.notes-form textarea').a @@ -1242,17 +1242,31 @@ expect( -' +$('.notes-form textarea @@ -1267,16 +1267,17 @@ xtarea') +) .not.toH @@ -1513,16 +1513,28 @@ pect($(' +.notes-form .zen-bac @@ -2108,32 +2108,44 @@ %7B%0A return $(' +.notes-form .js-zen-enter'). @@ -2...
edd5a3878a841f00eebcbfdd7114e81ce26ae09a
fix redefined variables
lib/6to5/transformation/transformers/es6-computed-property-names.js
lib/6to5/transformation/transformers/es6-computed-property-names.js
var util = require("../../util"); var t = require("../../types"); exports.ObjectExpression = function (node, parent, file) { var hasComputed = false; for (var i in node.properties) { hasComputed = t.isProperty(node.properties[i], { computed: true }); if (hasComputed) break; } if (!hasComputed) ret...
JavaScript
0.000002
@@ -140,32 +140,64 @@ omputed = false; +%0A var prop;%0A var key;%0A var i; %0A%0A for (var i i @@ -189,20 +189,16 @@ %0A for ( -var i in nod @@ -585,36 +585,32 @@ in props) %7B%0A -var prop = props%5Bi%5D; @@ -610,28 +610,24 @@ ops%5Bi%5D;%0A -var key = prop.k @@ -875,36 +875,32 @@ in props) %...
d8b0d338c0df3a8dee40b1f13520f3b6dcad6bd0
Use 'const' instead of 'var'
lib/cartodb/models/mapconfig/provider/create-layergroup-provider.js
lib/cartodb/models/mapconfig/provider/create-layergroup-provider.js
var MapStoreMapConfigProvider = require('./map-store-provider'); const QueryTables = require('cartodb-query-tables'); /** * @param {MapConfig} mapConfig * @param {String} user * @param {UserLimitsBackend} userLimitsBackend * @param {Object} params * @constructor * @type {CreateLayergroupMapConfigProvider} */ f...
JavaScript
0.001211
@@ -1,11 +1,13 @@ -var +const MapStor @@ -1013,11 +1013,13 @@ -var +const con
387e653c06eaa7a7690f275d6778c18250e9dd93
fix sending on closed socket
server/websocketserver.js
server/websocketserver.js
/* * Copyright 2014, Gregg Tavares. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
JavaScript
0
@@ -2011,24 +2011,99 @@ tion(msg) %7B%0A + if (this.client.readyState !== 1) %7B // OPEN%0A return;%0A %7D%0A var st @@ -3692,32 +3692,112 @@ n: function() %7B%0A + if (this.client.readyState !== 1) %7B // open%0A return;%0A %7D%0A try %7B%0A
3f7da31a6239812197d72ca61a49e8d2b5e890cc
Update userRoutes
app/userRoutes.js
app/userRoutes.js
/** * New node file */ var User = require('../app/models/user'); //Post //'/users' exports.addUser = function(req, res) { var newUser = new User(); User.count({userId:{$exists: true}}, function (err, count) { newUser.userId = count + 1; newUser.firstName = req.param('firstName'); newUser....
JavaScript
0.000001
@@ -363,16 +363,17 @@ ser.emai +l Id%09%09= re @@ -385,16 +385,17 @@ am('emai +l Id');%0D%0A%09 @@ -775,21 +775,21 @@ %09%09%09%09emai +l Id %09 -%09 : newUse @@ -794,16 +794,17 @@ ser.emai +l Id,%0D%0A%09%09%09
e0bcc16bee979c13cdf38c4ebfdb74b0cb655b36
add helper for post form data
app/utils/http.js
app/utils/http.js
/* eslint-disable import/no-unresolved */ // import 'whatwg-fetch'; /* eslint-enable import/no-unresolved */ function patchProtocal(url) { if (/^\/\//.test(url)) { return url.replace(/^/, window.location.protocol); } return url; } function requestFactory(requestOption = {}) { return (url, additionOption =...
JavaScript
0
@@ -861,24 +861,286 @@ lude',%0A%7D);%0A%0A +const POST_FORM = (url, formDataObj, options = %7B%7D) =%3E %7B%0A const formData = new FormData();%0A Object.keys(formDataObj).forEach((key) =%3E formData.append(key, formDataObj%5Bkey%5D);)%0A /* eslint-disable new-cap */%0A return POST(url, %7B ...options, body: form...
6f0fc55ba1100890e885868bc3b0f8933dfc0472
remove _detach feature completely.
lib/output/dom.js
lib/output/dom.js
"use strict"; var myUtil = require("../util"); var inherits = require("util").inherits; var HtmlOutput = require("./html.js"); function DomOutput(state, writer, target, opts) { this.html = new HtmlOutput(state, opts); target.innerHTML = "<div style='visibility:hidden;'></div>"; this.spacer = target.firstChild; th...
JavaScript
0
@@ -1097,376 +1097,59 @@ %7B%0A%09 -// replace a node with its modified clone ist much faster as setting innerHTML directly.%0A%09// see: http://blog.stevenlevithan.com/archives/faster-than-innerhtml%0A%09view.innerHTML = this.html._renderLine(line, cursor);%0A%09//return this._detach(view, function(v) %7B%0A%09//%09...
33e5ab9693626efcc9ea1582f366ec0290bd2094
add NORMAL_PRIORITY constant to Permission
lib/permission.js
lib/permission.js
var AuthRequest = require('./authRequest'); /** * A permission in Nitrogen is a grant that has been made to principal(s) for a particular set of actions. * * @class Permissino * @namespace nitrogen */ function Permission(json) { for(var key in json) { if(json.hasOwnProperty(key)) { this[k...
JavaScript
0.001845
@@ -3370,16 +3370,56 @@ %7D);%0A%7D;%0A%0A +Permission.NORMAL_PRIORITY = 10000000;%0A%0A module.e
2b06f05b89f0669c4870c927bba1cbf8e9a9acf6
Fix application adapter swallowing errors
app/adapters/application.js
app/adapters/application.js
import DS from 'ember-data'; export default DS.JSONAPIAdapter.extend({ namespace: '/v1' });
JavaScript
0.000035
@@ -4,92 +4,2672 @@ ort -DS from 'ember-data';%0A%0Aexport default DS.JSONAPIAdapter.extend(%7B%0A namespace: '/v1'%0A%7D); +%7B runInDebug, warn %7D from 'ember-data/-private/debug';%0Aimport %7B TimeoutError, AbortError %7D from 'ember-data/adapters/errors';%0Aimport DS from 'ember-data';%0Aimport Ember from 'embe...
5b90fcc4f3dbf0f6d5616ee0aef3769388f5f0e1
fix monosnap re
inline-images.js
inline-images.js
// (c) 2011-2013 Alexander Solovyov // under terms of ISC License var UNIQUE_CLASS_NAME = 'very-inline-node'; var IMAGE_SERVICES = [ {test: /\.(png|jpg|jpeg|gif)$/i}, {test: new RegExp('^https://i.chzbgr.com/')}, {test: new RegExp('^http://img-fotki.yandex.ru/get/')}, {test: new RegExp('^http://img.lep...
JavaScript
0
@@ -432,16 +432,18 @@ tps?://( +?: www%5C%5C.)?
f70cd70905926679debbe93c08d027ab2093ef62
Update Jumbotron.js
app/components/Jumbotron.js
app/components/Jumbotron.js
var React = require("react"); var Search = React.createClass({ render: function() { return ( <div className="jumbotron"> <h1>The History Of Remedan</h1> <p>Ramadan is a holy month of fasting, introspection and prayer for Muslims, the followers of Islam. Fasting is one of the five fundamental...
JavaScript
0
@@ -142,541 +142,53 @@ %3Ch1%3E -The History Of Remedan%3C/h1%3E%0A %3Cp%3ERamadan is a holy month of fasting, introspection and prayer for Muslims, the followers of Islam. Fasting is one of the five fundamental principles of Islam. Each day during Ramadan, Muslims do not eat or drink from sunrise to sunset. Th...
c283eea20997ffcbc5b7167fbdde2c406673c915
Use the right hook for ocre-step initialisation
app/components/ocre-step.js
app/components/ocre-step.js
import Ember from 'ember'; import _ from 'lodash/lodash'; import steps from '../ressources/ocre-quest'; import OcreItem from '../objects/ocre-item'; export default Ember.Component.extend({ progress: '', stepIndex: 0, target: 0, isFiltered: false, onChange: () => {}, parsedItems: null, prog...
JavaScript
0
@@ -1541,97 +1541,16 @@ -didReceiveAttrs() %7B%0A if (this.get('parsedItems')) %7B%0A return;%0A %7D%0A +init() %7B %0A @@ -1927,24 +1927,60 @@ gressBars(); +%0A%0A this._super(...arguments); %0A %7D,%0A%0A
3a0269092389274c7458375b26dbfb0a2288499c
add styled-components theme provider
app/containers/App/index.js
app/containers/App/index.js
import React from 'react' import Helmet from 'react-helmet' import styled from 'styled-components' import { Switch, Route } from 'react-router-dom' import Header from 'components/Header' import Footer from 'components/Footer' import HomePage from 'containers/HomePage/Loadable' import FeaturePage from 'containers/Featu...
JavaScript
0
@@ -66,16 +66,35 @@ t styled +, %7B ThemeProvider %7D from 's @@ -410,16 +410,180 @@ dable'%0A%0A +const theme = %7B%0A primary: '#434C5E',%0A lightShade: '#E9E6D9',%0A lightAccent: '#77938D',%0A darkAccent: '#5472A1',%0A darkShade: '#1B1720',%0A whiteMain: '#FAFAFA'%0A%7D%0A%0A const Ap @@ -705,18 +705,18 @...
2e4f0c043868c764fa2719ab11964a929d74bf01
Set organization code to fhirdemo
app/domain/ebmeds/System.js
app/domain/ebmeds/System.js
var moment = require('moment'); var System = { create: function(activityInstance, user, language, nation) { var now = moment(); return { "User": { "HealthCareRole": user.startsWith("Patient") ? "Citizen" : "Physician", "HealthCareOrganization": { ...
JavaScript
0.000002
@@ -333,34 +333,42 @@ %22CodeValue%22: -%7B%7D +%22fhirdemo%22 ,%0A
21ba4f40af1545daa43d24e4d6bc5df403a8ed2e
fix error messsage
lib/novaform/lib/output.js
lib/novaform/lib/output.js
var AWSResource = require('./awsresource') , fn = require('./fn') , util = require('util'); function Output(name, value, description) { if (!(this instanceof Output)) { return new Output(name, value, description); } if (!(value instanceof AWSResource) && !(value instanceof fn.Function) && ...
JavaScript
0.000001
@@ -398,12 +398,8 @@ lue -for can
d95c8aad0f41b3ebf905e1c874b230bcebd91f5e
Update ai.js
mixly_arduino/blockly/generators/mixpy_python/ai.js
mixly_arduino/blockly/generators/mixpy_python/ai.js
'use strict'; goog.provide('Blockly.Python.AI'); goog.require('Blockly.Python'); Blockly.Python.AI_ChooseAndGet = function(){ var type = this.getFieldValue('TYPE'); Blockly.Python.definitions_['import_FileDialog'] = 'import FileDialog'; var code = 'FileDialog.' + type + '()'; return [code,Blockly....
JavaScript
0.000001
@@ -419,32 +419,96 @@ e('CTYPE');%0A +Blockly.Python.definitions_%5B'import_aip'%5D = 'import aip';%0A // Blockly.Python.d @@ -943,24 +943,25 @@ var code = + v + ' = ' + @@ -957,24 +957,32 @@ v + ' = ' + +'aip.' + ctype + '('
c6cffcfa07c35a4e9a07cd7bdce1b4852b36c114
Update sl.js
source/js/Core/Language/locale/sl.js
source/js/Core/Language/locale/sl.js
/* Slovenian LANGUAGE SLOVENIAN ================================================== */ if (typeof VMM != 'undefined') { VMM.Language = { lang: "sl", api: { wikipedia: "sl" }, date: { month: ["januar", "februar", "marec", "april", "maj", "junij", "julij", "avgust", "september", "oktober", "november", "dece...
JavaScript
0
@@ -570,9 +570,9 @@ %22, %22 -%C4%8C +%C4%8D et.%22
1b685f1f6a2780d909d3761e96f551c33d2e4540
Add ChemPhysics as a coming soon hexagon in the filter.
app/js/app/services/Tags.js
app/js/app/services/Tags.js
/** * Copyright 2014 Ian Davies * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
JavaScript
0
@@ -1042,24 +1042,154 @@ true,%0A%09%09%09%7D, + %0A%09%09%09%7B%0A%09%09%09%09id: %22chemphysics%22,%0A%09%09%09%09title: %22Chemical Physics%22,%0A%09%09%09%09parent: %22physics%22,%0A%09%09%09%09enabled: false,%0A%09%09%09%09comingSoon: true%0A%09%09%09%7D, %0A%0A%09%09%09// Mech
4fcc18c8969f491fd461d3700b7e8ea9e490a7ce
Remove depreciated props from v1.0
src/mixins/props.js
src/mixins/props.js
/** * Component props */ const mixin = { props: { // Depreciated arrows: { type: Boolean, default: true }, /** * Set the carousel to be the navigation of other carousels */ asNavFor: { type: Array, default: function () { return [] } }, /** * Enable autoplay */ autopla...
JavaScript
0
@@ -50,78 +50,8 @@ : %7B%0A -%09%09// Depreciated%0A%09%09arrows: %7B%0A%09%09%09type: Boolean,%0A%09%09%09default: true%0A%09%09%7D,%0A%0A %09%09/* @@ -1358,80 +1358,8 @@ %7D,%0A%0A -%09%09// Depreciated%0A%09%09nextArrow: %7B%0A%09%09%09type: String,%0A%09%09%09default: null%0A%09%09%7D,%0A%0A %09%09/* @@ -1694,8...
145277d83af7658604a1e936912ecb5fa938e220
correct indentation
lib/properties.js
lib/properties.js
/* * properties * * Copyright (c) 2013 Matt Steele * Licensed under the MIT license. */ 'use strict'; var fs = require('fs'); exports.of = function() { var objs = {}; var makeKeys = function(j) { if(j && j.indexOf('#') !== 0) { var splitIndex = j.indexOf('='); var key = j.s...
JavaScript
0.003018
@@ -166,16 +166,18 @@ on() %7B%0D%0A + var ob @@ -186,20 +186,20 @@ = %7B%7D;%0D%0A - %0D%0A + var ma @@ -225,16 +225,18 @@ ) %7B%0D%0A + if(j && @@ -256,24 +256,27 @@ ) !== 0) %7B%0D%0A + var spl @@ -303,24 +303,27 @@ '=');%0D%0A + + var key = j. @@ -345,24 +345,27 @@ litIn...
9082a887ca33afaf7346de042dc322e52d80a35b
Fix a JavaScript error in personal_options.js for Chrome OS.
chrome/browser/resources/options/personal_options.js
chrome/browser/resources/options/personal_options.js
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. cr.define('options', function() { var OptionsPage = options.OptionsPage; // // PersonalOptions class // Encapsulated handling of personal op...
JavaScript
0.999999
@@ -3820,24 +3820,96 @@ (enabled) %7B%0A + if (!cr.isChromeOS && navigator.platform.match(/linux%7CBSD/i)) %7B%0A $('the @@ -3943,24 +3943,32 @@ = !enabled;%0A + %7D%0A %7D,%0A%0A @@ -5451,13 +5451,12 @@ s%0A %7D;%0A%0A%7D);%0A -%0A
8964507088534cf1b292e73c9b2d2fcad85d8140
reformat indents and clue to error for console
app/js/rockpaperscissors.js
app/js/rockpaperscissors.js
//////////////////////////////////////////////// /* Provided Code - Please Don't Edit */ //////////////////////////////////////////////// 'use strict'; function getInput() { console.log("Please choose either 'rock', 'paper', or 'scissors'."); return prompt(); } function randomPlay() { var randomNumber ...
JavaScript
0
@@ -2450,17 +2450,28 @@ rong + with getWinner ';%0A%7D%0A - retu
557b53035b811d46d75b6b7ced6cf7600c4d256a
Update sanno.js
commands/sanno.js
commands/sanno.js
const Discord = require('discord.js'); exports.run = (client, message) => { const modlog = client.channels.find('name', 'pie-log'); const anno2 = client.channels.find('name', 'announcements'); let say = message.content.split(" ").join(" ").slice(6) if (say.length < 1) return message.reply('Please specify on wh...
JavaScript
0.000001
@@ -933,38 +933,37 @@ nt.channels.get( -modlog +anno2 .id).send('@ever
4822a490951160a2e342e0127fbb55710b7408a1
fix agent response override on cache hit
lib/read-cache.js
lib/read-cache.js
import hydrate from './hydrate' export default function (req) { return function (value) { return new Promise((resolve, reject) => { if (!value) { const error = new Error() error.reason = 'cache-miss' error.message = 'Value not found from cache' return reject(error) } ...
JavaScript
0.000004
@@ -367,12 +367,19 @@ req. -end( +callback = (err @@ -393,63 +393,8 @@ =%3E %7B -%0A const callback = req.callback // main callback %0A%0A @@ -434,25 +434,16 @@ reject( -callback( err, res @@ -439,25 +439,24 @@ ct(err, res) -) %0A %7D%0A%0A @@ -475,36 +475,20 @@ lve( -callback(null, res) -)...
01cc5aefc1987cf6f1a6c7cc577e00f73d6b1837
make named null properties appear in inspector (fixes e.g. g-animation's published null valued properties)
lib/reflection.js
lib/reflection.js
/* * Copyright 2013 The Toolkitchen Authors. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ (function() { function reflect(element, name) { return { obj: element, name: name, value: element[name], meta: element.meta &...
JavaScript
0
@@ -430,28 +430,39 @@ if ( +(name && v -! += == null +) %0A -&& +%7C%7C ( v != @@ -622,16 +622,17 @@ t%5Bname%5D) +) %7B%0A v
1b400d9f1ace16499a0b8fa1c115ccaf2c2628aa
Make blocks draggable
src/block_manager/view/BlockView.js
src/block_manager/view/BlockView.js
import { on, off } from 'utils/mixins'; module.exports = Backbone.View.extend({ events: { mousedown: 'startDrag' }, initialize(o, config = {}) { this.config = config; this.endDrag = this.endDrag.bind(this); this.ppfx = config.pStylePrefix || ''; this.listenTo(this.model, 'destroy remove', th...
JavaScript
0.000002
@@ -112,16 +112,50 @@ artDrag' +,%0A dragstart: 'handleDragStart' %0A %7D,%0A%0A @@ -430,24 +430,56 @@ rtDrag(e) %7B%0A + const config = this.config;%0A //Right @@ -520,72 +520,51 @@ == 0 -) %7B%0A return;%0A %7D%0A%0A if (!this.config.getSorter) %7B%0A + %7C%7C !config.getSorter %7C%7...
4b5932fdcdb30ebdc5c95d11d25be346f501666a
Add custom render for blocks
src/block_manager/view/BlockView.js
src/block_manager/view/BlockView.js
import Backbone from 'backbone'; import { isObject } from 'underscore'; import { on, off, hasDnd } from 'utils/mixins'; module.exports = Backbone.View.extend({ events: { mousedown: 'startDrag', dragstart: 'handleDragStart', drag: 'handleDrag', dragend: 'handleDragEnd' }, initialize(o, config = {...
JavaScript
0
@@ -2836,47 +2836,38 @@ nst -el = this.el;%0A const pfx +%7B em, el, ppfx, model %7D = this -.ppfx ;%0A @@ -2889,16 +2889,17 @@ me = %60$%7B +p pfx%7Dbloc @@ -2920,21 +2920,16 @@ label = -this. model.ge @@ -2936,24 +2936,64 @@ t('label');%0A + const render = model.get('render');%0A el.class @@ -...
35a3edcfeece85457abc14ecaa1076e6cda9ef04
Make readyState message a warning
src/Filters/HTML/ScriptsDeferring/rewrite.js
src/Filters/HTML/ScriptsDeferring/rewrite.js
/* global phast */ var Promise = phast.ES6Promise; var go = phast.once(loadScripts); phast.on(document, "DOMContentLoaded").then(function () { if (phast.stylesLoading) { phast.onStylesLoaded = go; setTimeout(go, 4000); } else { Promise.resolve().then(go); } }); var loadFiltered = false; window.ad...
JavaScript
0.000011
@@ -1409,13 +1409,12 @@ ole. -error +warn (%0A
b1c2aca7874239baaa303f8a669bacb3159eab46
Add locale check to dob
src/common/res/features/days-of-buffering/main.js
src/common/res/features/days-of-buffering/main.js
// DoB means Days of Buffering function ynabEnhancedDoB() { var YNABheader = document.getElementsByClassName("budget-header-flexbox")[0]; var elementForAoM = document.getElementsByClassName("budget-header-days")[0]; var elementForDoB = elementForAoM.cloneNode(true); elementForDoB.className = elementFo...
JavaScript
0
@@ -836,45 +836,121 @@ -// TODO Add locale check.%0A var +var dayText = %22day%22 + (calculation%5B%22DoB%22%5D == 1 ? %22%22 : %22s%22);%0A if (ynabToolKit.options.l10n == 1)%7B%0A day @@ -1065,57 +1065,9 @@ -// %22 day%22 + (calculation%5B%22DoB%22%5D == 1 ? %22%22 : %22s%22); +%7...
38efa3a2c6aae77fca707d5c7dd8737c6e346c96
Update messaging for contracts that cannot be resold
src/botPage/bot/TradeEngine/Sell.js
src/botPage/bot/TradeEngine/Sell.js
import { translate } from '../../../common/i18n'; import { recoverFromError, doUntilDone } from '../tools'; import { contractStatus, notify } from '../broadcast'; import { DURING_PURCHASE } from './state/constants'; let delayIndex = 0; export default Engine => class Sell extends Engine { isSellAtMarketAva...
JavaScript
0
@@ -771,29 +771,47 @@ te(' -Sell is not available +Resale of this contract is not offered. '));
5712ea40b5a69104249088df4a371aaad92c1863
refactor render method in finalize auction component
src/components/FinalizeAuction/FinalizeAuction.js
src/components/FinalizeAuction/FinalizeAuction.js
// @flow weak import React, {Component} from 'react'; import moment from 'moment' import classNames from 'classnames/bind'; import {finalizeAuction} from '../../lib/ensService'; import {fromNow, getDuringReveal} from '../../lib/util'; import {FinalizeAuctionInfo} from './FinalizeAuctionInfo'; import './FinalizeAuction....
JavaScript
0.000001
@@ -2358,80 +2358,37 @@ inal +ize Auction -Page()%7B%0A return this.state.finalFormSent === 'sent' ? +Info = () =%3E (%0A - - %3CFin @@ -2404,18 +2404,16 @@ ionInfo%0A - se @@ -2464,18 +2464,16 @@ %7D%0A - switchPa @@ -2507,25 +2507,49 @@ - - /%3E%0A - ) : (%0A +);%0A%0A ...
e5374eca0b7f8eb61de6fc0ce27085a6be01c519
Allow to set link target (_self to change current window's location)
assets/buttons.js
assets/buttons.js
require(['gitbook'], function(gitbook) { gitbook.events.bind('start', function(e, config) { var opts = config.toolbar; if (!opts || !opts.buttons) return; var buttons = opts.buttons.slice(0); buttons.reverse(); buttons.forEach(function(button) { ...
JavaScript
0
@@ -874,20 +874,18 @@ -window.open( +var url = butt @@ -994,18 +994,236 @@ %7D) -) ; +%0A if (button.target == %22_self%22) %7B%0A window.location = url;%0A %7D else %7B%0A window.open(url, button.target %7C%7C %22_blank...
f65229875c39b09eab54526b11738c8cc6097247
Update PropTypes of ReadModeModal component
src/components/RecipeModal/ReadModeModal/index.js
src/components/RecipeModal/ReadModeModal/index.js
import React, { PropTypes } from 'react'; import { Modal } from 'react-bootstrap'; const ReadModeModal = props => ( <div> <Modal.Header> <Modal.Title>{props.recipe.name}</Modal.Title> </Modal.Header> <Modal.Body> <div id='description'> {props.recipe.description} </div> <u...
JavaScript
0
@@ -904,25 +904,150 @@ pes. -object.isRequired +shape(%7B%0A name: PropTypes.string.isRequired,%0A description: PropTypes.string.isRequired,%0A ingredients: PropTypes.string.isRequired%0A %7D) ,%0A
b82800fc66b5744a962217b7a0d529dd1c9b2dee
Add title and permanent flag to token model
src/models/Token.js
src/models/Token.js
'use strict' const mongoose = require('mongoose') const uuid = require('uuid').v4 const schema = new mongoose.Schema({ id: { type: String, required: true, unique: true, default: uuid }, created: { type: Date, required: true, default: Date.now }, updated: { type: Date, required: true, default:...
JavaScript
0
@@ -191,16 +191,97 @@ uid%0A%09%7D,%0A +%09title: %7B%0A%09%09type: String%0A%09%7D,%0A%09permanent: %7B%0A%09%09type: Boolean,%0A%09%09default: false%0A%09%7D,%0A %09created
c74c8d8a7ceacc8f81fc05a740c84566c0949231
add a couple urls
assets/js/beat.js
assets/js/beat.js
//Authors //Nancy Wong <nancypwong@gmail.com> //Janita Chalam <janitachalam@gmail.com> //Shloka Kini <srk@shlokakini.com> var songs_yt_links = ["https://www.youtube.com/embed/jSXiNdTbTA4", "https://www.youtube.com/embed/uYsq7fbRbvk", "https://www.youtube.com/embed/2uVHNib1uzE", "https://www.youtube.com/embed/KN...
JavaScript
0.00001
@@ -606,16 +606,110 @@ UdGWRhQ%22 +,%0A%09%09%22https://www.youtube.com/embed/S-Xm7s9eGxU%22,%0A%09%09%22https://www.youtube.com/embed/YP_fUo9a_mg%22 %5D;%0A%0A%0Avar @@ -1307,34 +1307,53 @@ getRandomInt(0, -10 +songs_yt_links.length );%0A%09%09%09var index2 @@ -1374,10 +1374,32 @@ t(0, -10 +talks_poems_links.len...
015fe0b3d260eb9916e55775f7a4073c31621b77
Check to see if the methods exist before unwrapping them.
src/main/webapp/resources/js/dev/directives/dropzone.js
src/main/webapp/resources/js/dev/directives/dropzone.js
import Dropzone from 'dropzone'; // Prevent Dropzone to auto-magically finding itself in before it is needed. Dropzone.autoDiscover = false; /** * Link function for the dropzone directive. * @param {object} scope - AngularJS dom scope * @param {array} element - element directive is attached to */ const link = (sc...
JavaScript
0
@@ -336,192 +336,8 @@ %3E %7B%0A - // Unwraps the function and is needed to passed parameters later;%0A scope.onSuccess = scope.onSuccess();%0A scope.onComplete = scope.onComplete();%0A scope.onError = scope.onError();%0A%0A // @@ -362,16 +362,16 @@ opzone.%0A + const @@ -427,16 +427,17 @@ l%0A %7D);%0A ...
6a2682cabb2537f81a8ec225cf0e1760bf67bdcb
Fix typo in PageTimeTracker that prevented timer from being cleared
src/desktop/analytics/main_layout.js
src/desktop/analytics/main_layout.js
// // Analytics for the main layout. This includes buttons in the header, footer // or any other actions that occur on each page. // import { data as sd } from "sharify" import { reportLoadTimeToVolley } from "lib/volley" // Track pageview const pageType = window.sd.PAGE_TYPE || window.location.pathname.split("/")[1]...
JavaScript
0.000001
@@ -1693,29 +1693,29 @@ imeout(this. -delay +timer )%0A %7D%0A%0A res
a0c41e2d5767aa325ce4a6e0b23feb43808329d2
Fix password resetting
src/components/structures/login/ForgotPassword.js
src/components/structures/login/ForgotPassword.js
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
JavaScript
0.000007
@@ -1321,18 +1321,43 @@ ops. -homeserver +customHsUrl %7C%7C this.props.defaultHs Url, @@ -1410,22 +1410,43 @@ ops. -identityServer +customIsUrl %7C%7C this.props.defaultIs Url,
b139c8d01c6d7f8196f085cb69e95e6de196e70d
Generate unique IDs for SettingsCheckbox
src/components/views/elements/SettingsCheckbox.js
src/components/views/elements/SettingsCheckbox.js
/* Copyright 2017 Travis Ralston Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
JavaScript
0.999999
@@ -1875,32 +1875,175 @@ -let id = this.props.name +// We generate a relatively complex ID to avoid conflicts%0A const id = this.props.name + %22_%22 + this.props.group + %22_%22 + this.props.value + %22_%22 + this.props.level ;%0A @@ -2088,31 +2088,18 @@ put id=%7B -this.props.name +id %7D%0A @...
c056f4faa65b286ff68dc025dd54789d656544eb
Make URL preview checkboxes pretty again
src/components/views/elements/SettingsCheckbox.js
src/components/views/elements/SettingsCheckbox.js
/* Copyright 2017 Travis Ralston Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
JavaScript
0
@@ -2648,42 +2648,13 @@ %3C -div className=%22mx_SettingCheckbox%22 +label %3E%0A @@ -2684,49 +2684,8 @@ x %7D%0A - %3Clabel htmlFor=%7Bid%7D%3E%0A @@ -2718,20 +2718,16 @@ - %3C/label%3E @@ -2731,27 +2731,8 @@ el%3E%0A - %3C/div%3E%0A
879c3aff60efbf493c0c65a5274fec15048fc42b
Send fetch_bundle api release_channel and version
normandy/selfrepair/static/js/self_repair_runner.js
normandy/selfrepair/static/js/self_repair_runner.js
// Trigger heartbeat callbacks when the UITour tells us that Heartbeat // happened. Mozilla.UITour.observe((eventName, data) => { if (eventName.startsWith('Heartbeat')) { let flowId = data.flowId; if (flowId in Normandy.heartbeatCallbacks) { Normandy.heartbeatCallbacks[flowId](data); ...
JavaScript
0
@@ -1470,24 +1470,761 @@ %0A %7D);%0A%7D%0A%0A +/**%0A * @promise %7BObject%7D The data to send to fetch_bundle to identify this client.%0A */%0Afunction get_fetch_recipe_payload() %7B%0A let data = %7B%0A locale: document.documentElement.dataset.locale,%0A user_id: get_user_id(),%0A release...
40dc43a24a31f16a1e586d734171f5d3963031d9
Fix bug on firefox
themes/custom/gamers_assembly/components/streams/streams.js
themes/custom/gamers_assembly/components/streams/streams.js
(function ($) { 'use strict'; $(".stream-video-list .stream-video-list-item").each(function () { var key = $(this).attr("x-key"); $.ajax({ url: "https://api.twitch.tv/kraken/streams/" + key+"?client_id=3e1bo4w4sfblm61c8baoacmcxab9dq", }).done(function (data) { ...
JavaScript
0.000021
@@ -979,36 +979,43 @@ at iframe%22). -attr('src', +html(' %3Ciframe src= %22https://www @@ -1029,15 +1029,15 @@ .tv/ -%22 +' +key+ -%22 +' /cha @@ -1049,16 +1049,84 @@ kpopout%22 + height=%22378%22 width=%22100%25%22 frameborder=%220%22 scrolling=%22no%22%3E%3C/iframe%3E' );%0D%0A
765444e800cd10f7a6347c82f1b272d64875e835
Optimize and classify only res.locals.scripts as not found
middleware/ensure-found.js
middleware/ensure-found.js
/* * Ensures something has been found during the request. Returns 404 if * res.template is unset, res.locals is empty and statusCode has not been set * to 204. * * Should be placed at the very end of the middleware pipeline, * after all project specific routes but before the error handler & responder. * * @mod...
JavaScript
0.000002
@@ -373,37 +373,165 @@ ';%0A%0A -const _ = require('lodash') +function isEmpty(obj) %7B%0A for (const prop in obj) %7B%0A if (prop !== 'scripts' && obj.hasOwnProperty(prop)) %7B%0A return false;%0A %7D%0A %7D%0A%0A return true ;%0A +%7D %0Amod @@ -752,10 +752,8 @@ %7C%7C ! -_. isEm
26264f6daeadb11d3f21676aeacd483425400c3b
Move document filters to top of fields list
packages/@sanity/core/src/actions/graphql/v2/generateTypeFilters.js
packages/@sanity/core/src/actions/graphql/v2/generateTypeFilters.js
const createIdFilters = require('./filters/idFilters') const createStringFilters = require('./filters/stringFilters') const createFloatFilters = require('./filters/floatFilters') const createIntegerFilters = require('./filters/integerFilters') const createBooleanFilters = require('./filters/booleanFilters') const creat...
JavaScript
0
@@ -2129,24 +2129,52 @@ st fields = +getDocumentFilters().concat( createFieldF @@ -2197,36 +2197,8 @@ ype) -.concat(getDocumentFilters() )%0A
085bee98731268235ba290ad34de7a485a0dd66c
Integrate new Expression API
src/document/nodes/cell/CellMixin.js
src/document/nodes/cell/CellMixin.js
import { isArray, isNil, map } from 'substance' import { parse } from 'substance-mini' import { type } from '../../../value' export default { hasValue() { return !isNil(this.value) }, hasErrors() { return this.hasRuntimeErrors() || this.hasSyntaxError() }, hasRuntimeErrors() { return this.runt...
JavaScript
0.000001
@@ -137,16 +137,184 @@ ault %7B%0A%0A + isPending() %7B%0A if (this._expr) %7B%0A return this._expr.isPending()%0A %7D%0A %7D,%0A%0A isReady() %7B%0A if (this._expr) %7B%0A return this._expr.isReady()%0A %7D%0A %7D,%0A%0A hasVal @@ -2238,24 +2238,95 @@ rted, this)%0A + expr.on('evalu...
98e63ad42486ff4ba483eec0af8e7a683542ad69
Fix message events already declared
lib/modules/console/index.js
lib/modules/console/index.js
let utils = require('../../utils/utils'); const EmbarkJS = require('embarkjs'); const IpfsApi = require('ipfs-api'); const Web3 = require('web3'); class Console { constructor(_embark, options) { this.events = options.events; this.plugins = options.plugins; this.version = options.version; this.logger ...
JavaScript
0.000001
@@ -3050,16 +3050,18 @@ vents.on +ce ('code-g
f4357653b1969a35bd2ae4f9068039c645cb9bbd
revert integration test fix, is working again (#416)
packages/google-cloud-phishingprotection/samples/test/quickstart.js
packages/google-cloud-phishingprotection/samples/test/quickstart.js
// Copyright 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
0
@@ -1032,19 +1032,22 @@ -try %7B%0A +const stdout = exe @@ -1102,34 +1102,15 @@ %60, %7B -%0A cwd,%0A +cwd %7D);%0A - @@ -1119,101 +1119,37 @@ sert -('unreachable');%0A %7D catch (err) %7B%0A assert.match(err.message, /ALREADY_EXISTS/);%0A %7D +.include(stdout, 'reported'...
8b2a7b1f1752012cddff9fce1db831fd0ba33669
Add function to detect TypedArrays
lib/sql-string.js
lib/sql-string.js
var moment = require("moment") , SqlString = exports; SqlString.escapeId = function (val, forbidQualified) { if (forbidQualified) { return '`' + val.replace(/`/g, '``') + '`'; } return '`' + val.replace(/`/g, '``').replace(/\./g, '`.`') + '`'; }; SqlString.escape = function(val, stringifyObjects, timeZone...
JavaScript
0.000001
@@ -32,28 +32,522 @@ , -SqlString = exports; +isArrayBufferView%0A , SqlString = exports;%0A%0Aif(typeof(ArrayBufferView) === 'function') %7B%0A isArrayBufferView = function(object) %7B return object && (object instanceof ArrayBufferView); %7D;%0A%7D else %7B%0A var arrayBufferViews = %5B%0A Int8Array, Uint8A...
30aba6ad711d93f7207ccf3b900cc26dd07c8c12
Move status to Record
packages/node_modules/@ciscospark/redux-module-users/src/reducer.js
packages/node_modules/@ciscospark/redux-module-users/src/reducer.js
import {fromJS, Record} from 'immutable'; import { STORE_USER, STORE_USERS, FETCH_USER_REQUEST, STORE_CURRENT_USER, FETCH_CURRENT_USER_REQUEST, PENDING_STATUS } from './actions'; const User = new Record({ id: undefined, displayName: '', nickName: '', email: '', orgId: '', status: { isFetc...
JavaScript
0.000004
@@ -186,16 +186,67 @@ ions';%0A%0A +const Status = new Record(%7B%0A isFetching: false%0A%7D); %0Aconst U @@ -356,35 +356,20 @@ us: -%7B%0A isFetching: false%0A %7D +new Status() %0A%7D);
de63299abc051e250d31d7414cb6d1e5ccc4fdf2
Remove unneeded import
client/app/pods/components/main-sidebar/component.js
client/app/pods/components/main-sidebar/component.js
// // Copyright 2009-2015 Ilkka Oksanen <iao@iki.fi> // // 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 b...
JavaScript
0.000002
@@ -698,56 +698,8 @@ t';%0A -import %7B alias %7D from '@ember/object/computed';%0A impo
381e2fc39e71a0453baaf49a85114add6971f0d9
Update unpackaged/gated/healthCheck/lwc/healthCheck/healthCheck.js
unpackaged/gated/healthCheck/lwc/healthCheck/healthCheck.js
unpackaged/gated/healthCheck/lwc/healthCheck/healthCheck.js
import { LightningElement, track, wire } from 'lwc'; import stgHealthCheckErrorLastRunDate from '@salesforce/label/c.stgHealthCheckErrorLastRunDate'; import getHealthCheckViewModel from '@salesforce/apex/HealthCheckController.getHealthCheckViewModel'; import updateHealthCheckLastRunDate from '@salesforce/apex/HealthC...
JavaScript
0
@@ -1415,16 +1415,18 @@ +// console. @@ -1634,8 +1634,9 @@ %7D%0A%0A%7D +%0A
aafd17d8db6d9a8a4248813e3f47d9ad83e771aa
fix typo
site/kitchen/src/en-US.js
site/kitchen/src/en-US.js
const appLocaleData = require('react-intl/locale-data/en'); module.exports = { locale: 'en-US', data: appLocaleData, messages: { 'app.site.title': 'Ant Design Mobile', 'app.site.subTitle': 'Mobile Componets By Ant UED', }, };
JavaScript
0.000203
@@ -212,16 +212,17 @@ Compone +n ts By An
3467d509f75380c78c5362e2044b12543668a482
save old extension handlers so we can put them back if the extensions are hooked again
lib/6to5/register.js
lib/6to5/register.js
require("./polyfill"); var sourceMapSupport = require("source-map-support"); var to5 = require("./index"); var _ = require("lodash"); sourceMapSupport.install({ retrieveSourceMap: function (source) { var map = maps[source]; if (map) { return { url: null, map...
JavaScript
0
@@ -435,10 +435,10 @@ = -%5B%5D +%7B%7D ;%0Ava @@ -842,32 +842,37 @@ exts, function ( +old, ext) %7B%0A delet @@ -870,15 +870,8 @@ -delete requ @@ -889,16 +889,22 @@ ons%5Bext%5D + = old ;%0A %7D);%0A @@ -913,21 +913,18 @@ exts = -_exts +%7B%7D ;%0A%0A _.e @@ -919,32 +919,33 @@ = %7B%7D;%0A%...
420505ca40f94bd2765d79174cdf5db0cd5ec039
remove console.log debug
lib/6to5/register.js
lib/6to5/register.js
"use strict"; require("./polyfill"); var sourceMapSupport = require("source-map-support"); var registerCache = require("./register-cache"); var util = require("./util"); var to5 = require("./index"); var fs = require("fs"); var extend = require("lodash/object/extend...
JavaScript
0.000012
@@ -1437,33 +1437,8 @@ ) %7B%0A - console.log(filename);%0A re
651a9dd782dd08745a9924078dd1844b9cde234a
remove console logs
lib/treehugger.js
lib/treehugger.js
/* * treehugger * https://github.com/goliatone/treehugger * * Copyright (c) 2015 goliatone * Licensed under the MIT license. */ var extend = require('gextend'); var _inherit = require('util').inherits; var EventEmitter = require('events').EventEmitter; var assert = require('assert-is'); var DEFAULTS = { aut...
JavaScript
0.000001
@@ -1577,38 +1577,8 @@ ) %7B%0A - console.log(this.ENV)%0A @@ -2344,42 +2344,8 @@ y)%7B%0A - console.log(rx.test(key))%0A
d967a0cb94cbd4a33931d475a6a5147fc0efee56
put back the workaround for Safari
lib/AttrAssembler.js
lib/AttrAssembler.js
import { NodeAssembler } from './NodeAssembler' const { prototype : { map } } = Array const { Attr, Node : { ELEMENT_NODE }, document } = window const EMPTY_STRING = '' const NAMESPACE_SEPARATOR = ':' const VALUE_PROPERTY_NAME = 'value' /** * @see https://www.w3.org/TR/dom/#interface-attr */ export class AttrAssemb...
JavaScript
0
@@ -4779,8 +4779,589 @@ sembler%0A +%0A/*%0A * !!! Workaround !!!%0A * The garbage collector in Safari removes instances of AttrAssembler%0A * that are not referenced from the static memory structure.%0A */%0Aconst %7B userAgent %7D = window.navigator%0Aif(/Safari/.test(userAgent) && !/Chrome/.test(userAgent)) %7B%0A...
8c2bac40171bbd1963471061fe7b6dcd94a32a7b
Handle startDate for new reviewer
src/commands/setup.js
src/commands/setup.js
// npm modules import chalk from 'chalk'; import inquirer from 'inquirer'; import moment from 'moment'; import ora from 'ora'; import PushBullet from 'pushbullet'; import Table from 'cli-table2'; // our modules import {api, config} from '../utils'; async function getUserInfoFromApi() { const startDateSpinner = ora('...
JavaScript
0.000002
@@ -568,21 +568,60 @@ %7D);%0A -const +let startDate;%0A if (completedReviews) %7B%0A startDa @@ -643,24 +643,26 @@ eviews.body%0A + .map(rev @@ -722,24 +722,26 @@ review%0A + + .map(date =%3E @@ -811,24 +811,26 @@ m 1970)%0A + .reduce((acc @@ -874,24 +874,26 @@ umber%0A + ...
a59d7b55484ec52b30fe149ec9c064df09b3bb2f
fix error with geth genesis file parser
lib/util/parse.js
lib/util/parse.js
'use strict' const Account = require('ethereumjs-account') const Block = require('ethereumjs-block') const Trie = require('merkle-patricia-tree/secure') const BN = require('ethereumjs-util').BN const url = require('url') const path = require('path') function parseBootnodes (string) { if (!string) { return } ...
JavaScript
0
@@ -151,49 +151,8 @@ e')%0A -const BN = require('ethereumjs-util').BN%0A cons @@ -1100,24 +1100,87 @@ s(alloc)) %7B%0A + if (key.startsWith('0x')) %7B%0A key = key.slice(2)%0A %7D%0A const ad @@ -1271,15 +1271,8 @@ e = -new BN( valu @@ -1284,22 +1284,8 @@ ance -.slice(2), 16) %0A
018e6ae2676e89361ac1a373c41ca95b2023938a
Remove uneeded method
lib/util/shell.js
lib/util/shell.js
/** * Module to loosely coupled shell execution. * @name shell */ 'use strict'; // Node modules var spawn = require('child_process').spawn; var path = require('path'); // npm modules var _ = require('lodash'); var _shell = require('shelljs'); var esc = require('shell-escape'); var VError = require('verror'); // ...
JavaScript
0.000001
@@ -1673,1525 +1673,8 @@ %7D;%0A%0A -/**%0A * Executes a shell command.%0A * @memberof shell%0A * @arg %7Bstring%7D cmd - The shell command to run.%0A * @example%0A * var child = kbox.util.shell.execAsync(cmd);%0A * child.stdout.on('data', function(data) %7B%0A * console.log(data);%0A * %7D);%0A * child.stdout.on('e...
c451ae3e163743377d1a1cdd149cffa3fd5f793c
fix imports
src/components/App.js
src/components/App.js
import React, { Component } from 'react'; import Header from './Header'; import Body from './Body'; import Contact from './Contact'; import Footer from './Footer'; import styles from './styles/App.scss'; export default class App extends Component { render() { return ( <div className={styles.App...
JavaScript
0.000002
@@ -57,17 +57,17 @@ from './ -H +h eader';%0A @@ -86,17 +86,17 @@ from './ -B +b ody';%0Aim @@ -116,17 +116,17 @@ from './ -C +c ontact'; @@ -148,17 +148,17 @@ from './ -F +f ooter';%0A @@ -460,8 +460,9 @@ %0A %7D%0A%7D +%0A
a25be6ea0adafe44af145d1a277343fc27a03d45
improve the functionality of embedded form
src/comments/CommentFormEmbedded.js
src/comments/CommentFormEmbedded.js
import React, { Component, PropTypes } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { FormattedMessage } from 'react-intl'; import { isSmall } from 'react-responsive-utils'; import _ from 'lodash'; import classNames fr...
JavaScript
0.000001
@@ -463,24 +463,66 @@ tsActions';%0A +import Loading from '../widgets/Loading';%0A import './Co @@ -710,23 +710,16 @@ mment: ( -depth, parentId @@ -754,15 +754,8 @@ ent( -depth, pare @@ -982,24 +982,46 @@ tValue: '',%0A + loading: false,%0A %7D;%0A %7D%0A%0A @@ -2667,30 +2667,16 @@ Submit(e -, comm...
adab9a4a572cef1cab670bdc65b6d740f2cf0230
Remove zero values from pie chart
src/common/directives/d3PieChart.js
src/common/directives/d3PieChart.js
angular.module('ngQuestionnaires.directives') .directive('d3PieChart', function (d3) { return { restrict: 'A', scope: { data: '=', label: '@', value: '@', height: '@' }, link: function (scope, element, attrs) { var chart = d3.select(element[0]) ...
JavaScript
0.000116
@@ -1548,22 +1548,8 @@ ata%0A - /*%0A @@ -1580,32 +1580,33 @@ (function (d) %7B%0A + retur @@ -1644,26 +1644,11 @@ - %7D); -%0A */ %0A%0A
81cdf0d1694bd6d30fb07dc3cc412e59be22d3f3
Fix typo
src/foam/u2/detail/AbstractSectionedDetailView.js
src/foam/u2/detail/AbstractSectionedDetailView.js
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.detail', name: 'AbstractSectionedDetailView', extends: 'foam.u2.View', documentation: ` The abstract for property-sheet style Views with sections for ed...
JavaScript
0.999999
@@ -994,17 +994,17 @@ rtyWhite -L +l ist',%0A @@ -1147,16 +1147,37 @@ %60,%0A + factory: null,%0A pr
786a0b30020935381212d7bdd75c5d931ca1d472
fix typo
download.js
download.js
var request = require('request'); var cheerio = require('cheerio'); var util = require('util'); var promise = require('promise'); var fs = require('fs'); var htmlEscape = require("html-escape"); var getOpt = require('node-getopt'); var opt = getOpt.create([ ['', 'page[=PAGE]' , 'Rnages of pages to fetch (start:en...
JavaScript
0.999991
@@ -3463,17 +3463,17 @@ ctory', -d +e );%0A
e22f0e267809e1fc65d9b41ee45853110db02fcc
Remove trailing whitespace
jquery.cookie.js
jquery.cookie.js
/*! * jQuery Cookie Plugin v1.3.0 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ (function ($, document, undefined) { var pluses = /\+/g; function raw(s) { return s; } function decoded(s) { return unRfc2068(decodeURIComponent(s.replace(plu...
JavaScript
0.999999
@@ -329,17 +329,16 @@ )));%0A%09%7D%0A -%09 %0A%09functi @@ -1694,20 +1694,17 @@ ('='));%0A -%09%09%09 %0A + %09%09%09if (c @@ -1751,28 +1751,25 @@ okie);%0A%09%09%09%7D%0A -%09%09%09 %0A + %09%09%09if (key & @@ -1823,19 +1823,16 @@ k;%0A%09%09%09%7D%0A -%09%09%09 %0A%09%09%09if (
02f7394b83303ca19b8981ada3d031abe032efad
use bootstrap default classes
jquery.tabify.js
jquery.tabify.js
(function($) { function Tab($tab, $pane) { var self = this; this.$tab = $tab; this.$pane = $pane; this.$tab.on('click', function() { self.select(); }); this.$tab.on('select-tab',function() { var name; if (name = self.name()) { window.location.hash = '#' + name; if ($('.js-current-tab')....
JavaScript
0.000001
@@ -884,24 +884,31 @@ = function( +options ) %7B%0A @@ -967,32 +967,39 @@ m.each(function( +options ) %7B%0A%09%09%09%09$(this). @@ -1032,16 +1032,139 @@ n;%0A%09%09%7D%0A%0A +%09%09options = $.extend(%7B%0A%09%09%09'tab_container_class' =%3E 'nav nav-tabs',%0A%09%09%09'tab_content_class' =%3E 'tab-conten...
2a74980be9df4948be3bfe5667b165ae0e1fe266
add @ts-nocheck before renaming to .ts
js/ArrowShape.js
js/ArrowShape.js
// Copyright 2013-2022, University of Colorado Boulder /** * An arrow shape, either single or double headed. * ArrowShape has an optimization that allows you to reuse an array of Vector2. * The array will have 0 points if the tail and tip are the same point. * * @author John Blanco * @author Chris Malley (PixelZ...
JavaScript
0.000001
@@ -49,16 +49,31 @@ oulder%0A%0A +// @ts-nocheck%0A /**%0A * A
ac5e8ece582cf17b8c359a32ba194e7a17758900
fix widget loader middleware
lib/view/index.js
lib/view/index.js
/** * wejs view feature */ var hbs = require('hbs'); var fs = require('fs'); var _ = require('lodash'); var env = require('../env.js'); var Theme = require('../class/Theme.js'); var async = require('async'); var log = require('../log')(); var view = { assets: require('./assets'), layoutCache: {}, templateCach...
JavaScript
0.000001
@@ -2532,17 +2532,16 @@ null),%0A -%0A @@ -2553,26 +2553,16 @@ oller: %7B -%0A $or: %5Br @@ -2588,25 +2588,21 @@ r , null -%5D%0A +, ''%5D %7D,%0A @@ -2614,26 +2614,16 @@ ction: %7B -%0A $or: %5Br @@ -2649,17 +2649,13 @@ null -%5D%0A +, ''%5D %7D%0A
71563991b339f58a5142dcb8086cb5d4400a1a83
use mipmap for logos in PhetButton, phetsims/joist#258
js/PhetButton.js
js/PhetButton.js
// Copyright 2002-2013, University of Colorado Boulder /** * The button that pops up the PhET menu, which appears in the bottom right of the home screen and on the right side * of the navbar. * * @author Sam Reid */ define( function( require ) { 'use strict'; // modules var AdaptedFromText = require( 'JOIS...
JavaScript
0
@@ -802,37 +802,38 @@ ogo = require( ' -image +mipmap !BRAND/logo.png' @@ -890,21 +890,22 @@ quire( ' -image +mipmap !BRAND/l
9330476515586258e785eb69b8fdcfdd1d9e210d
Add files as soft links. Closes #1334 (#1335)
src/common/plugin/GeneratedFiles.js
src/common/plugin/GeneratedFiles.js
/*globals define*/ define([ 'common/util/assert', 'deepforge/storage/index', ], function( assert, Storage, ) { const GeneratedFiles = function(blobClient) { this.blobClient = blobClient; this._files = {}; this._data = {}; }; GeneratedFiles.prototype.addUserAsset = f...
JavaScript
0
@@ -2348,16 +2348,27 @@ addFiles +AsSoftLinks (this._f
4ceeacb98813c38ad50f9a77948026bffa5426f3
load more filtered posts
src/component/homePage/component.js
src/component/homePage/component.js
import React from 'react' import style from './style.css' import { HorizontalPostList } from '../horizontalPostList' import { VerticalPostList } from '../verticalPostList' import type { Post as Post_type } from '../../../type' import { primaryTags } from '../../reducer/selectedTag' import { memoize } from '../../uti...
JavaScript
0
@@ -2776,77 +2776,35 @@ ts=%7B -%0A primaryTags.includes(selectedTag %7C%7C 'update') && +createLoadMorePostsHandler( %0A @@ -2824,19 +2824,9 @@ - createL +l oadM @@ -2829,32 +2829,25 @@ oadMorePosts -Handler( +, %0A @@ -2859,34 +2859,54 @@ - loadMorePosts,%0A...
a267be1670f955b776a49e2ad8cca531f40fb53e
update navigationBar hover opacity
src/components/App/NavigationBar.js
src/components/App/NavigationBar.js
import React from 'react'; import PropTypes from 'prop-types'; import Radium from 'radium'; import {getFontSize} from '../../styles/typography'; import {pageShape} from '../../CatalogPropTypes'; import Link from '../Link/Link'; // The vertical and horizontal padding inside the left/right nav // link element. const ve...
JavaScript
0
@@ -686,17 +686,19 @@ city: 0. -9 +65; %0A %7D
4583144ae08f4ee78fc59b4ee2e9ce1c9db153ce
use once where possible.
lib/zip-stream.js
lib/zip-stream.js
/** * node-zip-stream * * Copyright (c) 2014 Chris Talkington, contributors. * Licensed under the MIT license. * https://github.com/ctalkington/node-zip-stream/blob/master/LICENSE-MIT */ var inherits = require('util').inherits; var Transform = require('stream').Transform || require('readable-stream').Transform; v...
JavaScript
0
@@ -2049,32 +2049,34 @@ processStream.on +ce ('error', callba @@ -2093,32 +2093,34 @@ processStream.on +ce ('end', function @@ -2806,16 +2806,18 @@ tream.on +ce ('error' @@ -2848,16 +2848,18 @@ tream.on +ce ('end',
fbb0af8d4b8683026a814a55a6c27522c8b416e5
Update telegram-parse-spec.js
spec/telegram/telegram-parse-spec.js
spec/telegram/telegram-parse-spec.js
/*global describe, it, expect, require */ 'use strict'; var parse = require('../../lib/telegram/parse'); describe('Telegram parse', () => { it('returns nothing if the format is invalid', () => { expect(parse('string')).toBeUndefined(); expect(parse()).toBeUndefined(); expect(parse(false)).toBeUndefined()...
JavaScript
0.000001
@@ -1727,325 +1727,11 @@ st: -%7B%0A update_id: 920742096,%0A inline_query: %7B%0A id: '512944664604439953',%0A from: %7B%0A id: 119429236,%0A first_name: 'Sergey',%0A last_name: 'Tverskikh',%0A username: 'tverskih'%0A %7D,%0A ...
aeb2e601cf33965c745ccdc0dd75529929f455d1
fix style
src/components/Login/Signup.spec.js
src/components/Login/Signup.spec.js
import Signup from './Signup' import { QCheckbox } from 'quasar' import { mountWithDefaults, statusMocks } from '>/helpers' const userData = { displayName: 'my name', email: 'hello@hello.com', password: 'secret', } describe('Signup', () => { it('submits', () => { let wrapper = mountWithDefaults(Signup, { ...
JavaScript
0.000001
@@ -2707,12 +2707,11 @@ %7D)%0A %7D)%0A -%0A %7D)%0A
b64aafcd9ba265f3c8a115feeadcdbbfa9c8a919
add trailing slash to link
webapps/ui/cockpit/src/components/Header/UserInformation.js
webapps/ui/cockpit/src/components/Header/UserInformation.js
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
JavaScript
0
@@ -1898,16 +1898,17 @@ ngine%22)%7D +/ %60%7D%3E%0A
7f137795f774f8e86071ecdbd00a8bb51f128121
Make opacity an attribute
favcount.js
favcount.js
/* * favcount.js v1.1.0 * http://chrishunt.co/favcount * Dynamically updates the favicon with a number. * * Copyright 2013, Chris Hunt * Released under the MIT license */ (function(){ function Favcount(icon) { this.icon = icon; this.canvas = document.createElement('canvas'); } Favcount.prototype....
JavaScript
0.000151
@@ -231,24 +231,48 @@ con = icon;%0A + this.opacity = 0.4;%0A this.can @@ -522,24 +522,38 @@ self.canvas, + self.opacity, img, normal @@ -905,16 +905,25 @@ (canvas, + opacity, img, co @@ -1613,19 +1613,23 @@ Alpha = -0.4 +opacity ; %7D%0A
84ca138bbecfa677c2b86317451dad0d17de718e
Update contact_me.js
js/contact_me.js
js/contact_me.js
$(function() { $("body").on("input propertychange", ".floating-label-form-group", function(e) { $(this).toggleClass("floating-label-form-group-with-value", !! $(e.target).val()); }).on("focus", ".floating-label-form-group", function() { $(this).addClass("floating-label-form-group-with-focus"); ...
JavaScript
0
@@ -1344,12 +1344,13 @@ .io/ -info +mlake @all @@ -3333,12 +3333,13 @@ tml('');%0A%7D); +%0A
8d007ab499f6b5dc327aeb96dc10c968037b1a3f
Add semi-colon
src/Modal/__tests__/Modal-test.js
src/Modal/__tests__/Modal-test.js
var React = require('react/addons'); var TestUtils = React.addons.TestUtils; jest.dontMock('../Modal'); jest.dontMock('../../Util/Util'); var Modal = require('../Modal'); var DEFAULT_CLASSES = require('../DefaultModalClasses'); describe('Modal', function () { describe('#addDefaultClasses', function () { befor...
JavaScript
0.999999
@@ -858,16 +858,17 @@ ;%0A %7D) +; %0A%0A de
2e0a5a1c197b3a0d45e38fc53646c9f90be211ac
Refactor TodoList into a function
src/components/TodoList/TodoList.js
src/components/TodoList/TodoList.js
import React from 'react' import Todo from 'components/Todo/Todo' const TodoList = ({todos, onCompleted, onDelete, onDeleteButtonVisibilityChanged, deleteButtonOnTodo}) => { const todosComponents = this.props.todos.map(todo => ( <Todo todo={todo} onC...
JavaScript
0.999007
@@ -171,47 +171,81 @@ =%3E -%7B%0A const todosComponents = this.props. +(%0A %3Ctable className='todo-list todo-table'%3E%0A %3Ctbody%3E%0A %7B%0A todo @@ -260,18 +260,16 @@ do =%3E (%0A - @@ -340,18 +340,16 @@ - onComple @@ -353,27 +353,16 @@ pleted=%7B -this.props. on...
e57cd5218da551f420cc7c11236725828b8a70ce
Add user.displayName to missing manager message
src/force-directed-graph-renderer.js
src/force-directed-graph-renderer.js
import d3 from 'd3'; export default class ForceDirectedGraphRenderer { renderSvg(containerElement, users) { const width = 1200; const height = 700; const radius = 15; const color = d3.scale.category20(); const vis = d3 .select(containerElement) .append('svg') .attr('width', wi...
JavaScript
0.000002
@@ -597,16 +597,37 @@ ger for +$%7Buser.displayName%7D ( $%7Buser.i @@ -628,16 +628,17 @@ user.id%7D +) in data
82c6a74c4520697d0f86d3f3a5ea054f83590c97
Revert back to original working state
js/contact_me.js
js/contact_me.js
$(function() { $("input,textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { event.preventDefault(); // prevent default submit b...
JavaScript
0.000001
@@ -855,19 +855,16 @@ - // url: %22h @@ -941,316 +941,61 @@ -url: %22https://www.google.com/recaptcha/api/siteverify%22,%0A type: %22POST%22,%0A data: %7B%0A secret: %226LdemwkTAAAAAL-qNOBazx8zJrEYesUKSpKLNcaG%22,%0A response: window....
2d7f2becd734418ad2b6a83b98ade0e3fa3146a7
Remove misleading comment. (#10190)
lib/rules/no-return-await.js
lib/rules/no-return-await.js
/** * @fileoverview Disallows unnecessary `return await` * @author Jordan Harband */ "use strict"; const astUtils = require("../ast-utils"); //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------...
JavaScript
0
@@ -541,41 +541,8 @@ %22,%0A%0A - // TODO: set to true%0A
2927982500aac5e8b6c37479a6f6bef4fa4bdb97
Fix lights transforms.
src/framework/core/LightComponent.js
src/framework/core/LightComponent.js
import * as THREE from 'three'; import {$wrap, $define, $extend, $defaults} from '../utils/ComponentUtils'; import {loadMaterial, extend} from '../utils/index'; function LightComponent(targetComponent) { const resultComponent = class LightComponentEnhance extends targetComponent { static defaults = extend(targe...
JavaScript
0
@@ -1802,16 +1802,8 @@ ms;%0A - /* %0A @@ -2037,10 +2037,8 @@ ); -*/ %0A%0A
e881175c7be723571016d9989855cba18ad71c4b
use linearRamping for volume changes to fix fadeOut bug
src/playlistAudioTrack.js
src/playlistAudioTrack.js
import { random, timestamp } from './utils'; import { makeInitialTrackState } from './TrackStates'; import { TrackOptions } from './mixer/track_options'; const NEARLY_ZERO = 0.01; // webaudio spec says you can't use 0.0 as a value due to floating point math concerns /* @see https://github.com/loafofpiecrust/rou...
JavaScript
0
@@ -4616,35 +4616,30 @@ inNode.gain. -exponential +linear RampToValueA
115d25c2a37cc309c530ca3c0edf63fd5a64fcf4
add hidden option to uiOptions
src/components/props/schema-prop.js
src/components/props/schema-prop.js
import { getIdSchema, getUiOptions } from '../../utils' import UnsupportedProp from './unsupported-prop.vue' const COMPONENT_TYPES = { array: 'ArrayProp', boolean: 'BooleanProp', integer: 'NumberProp', number: 'NumberProp', object: 'ObjectProp', string: 'StringProp' } export default { functional: true, ...
JavaScript
0
@@ -1539,24 +1539,94 @@ name%0A %7D%0A%0A + if (uiOptions && uiOptions.hidden === true) %7B%0A return%0A %7D%0A%0A return h
d49a8313ca0eeb903536110baac782fa7a9bad94
Remove tabs from uploadcare start
widget/index.js
widget/index.js
/* global JFCustomWidget, uploadcare */ /** * Resize JotForm widget frame * * @param width * @param height */ function resize(width, height) { JFCustomWidget.requestFrameResize({ width: width, height: height, }) } function cropOption(mode, width, height) { switch (mode) { case 'free crop': return 'fr...
JavaScript
0
@@ -1759,23 +1759,8 @@ '),%0A -%09%09tabs: 'all',%0A %09%09cr
75fa461a4c7aaafc8d3e12ae7027df563d1ceecb
Return metadata about screenshares when using electron
electron.js
electron.js
var crel = require('crel'); var EventEmitter = require('eventemitter3'); var extend = require('cog/extend'); /** Returns true if we should use Chrome screensharing **/ exports.supported = function() { return window && window.process && window.process.type && window.require; } /** Creates the share context. **...
JavaScript
0.000004
@@ -780,32 +780,42 @@ source, sourceId +, metadata ) %7B%0A if (!s @@ -1243,16 +1243,26 @@ traints) +, metadata );%0A %7D @@ -1751,16 +1751,36 @@ es%5Bi%5D.id +, %7Btitle: 'Screen'%7D );%0A @@ -1911,16 +1911,26 @@ sourceId +, metadata ) %7B%0A @@ -2018,16 +2018,26 @@ sourceId +, metadata );%...
869a861862de04d58fecb47974c822f7fc4480b1
suporte a letras maiúsculas
js/dinofauref.js
js/dinofauref.js
/** * Created by matheuf grafiano on 01/06/15. * Efe algoritmo pega palafra por palafra e fubftitui of fonemaf do array FONEMAS por F. */ //Os fonemas estão em ordem de prioridade FONEMAS = { 'xce' : 'fe', 'xci' : 'fi', 'ch' : 'f', 'ss' : 'f', 'ce' : 'fe', 'ci' : 'fi', 've' : 'fe', 'g...
JavaScript
0.000001
@@ -420,16 +420,85 @@ 'f'%0A%7D;%0A%0A +var isLowerCase = function(s)%7B%0A return s.toLowerCase() === s;%0A%7D;%0A%0A /**%0A * @ @@ -744,23 +744,967 @@ i'), -FONEMAS%5Bfonema%5D +function(match)%7B%0A var replaceString = %22%22;%0A var replafe = FONEMAS%5Bmatch.toLowerCase()%5D;%0A ...
b729dfd13b122e28ff80a4ff5ade4816c353448a
make httService a more common js ctor
lib/services/http-service.js
lib/services/http-service.js
var request = require('request'); /** * A generic HTTP Service, * used to make GET and POST request to a remote server. * Use request library to perform the request. */ var HttpService = function() { /** * Perform a GET request. * * @param {string} uri The remote server's uri. * @param {Function} cb...
JavaScript
0.000284
@@ -167,19 +167,24 @@ st.%0A */%0A -var +function HttpSer @@ -187,27 +187,16 @@ pService - = function () %7B%0A%0A%09/ @@ -933,8 +933,9 @@ rvice(); +%0A
51f04fdbc10041106eee45ca539d842bc74c5c80
Add checkpoint/rollback to ReactNativeReconcileTransaction (#7619)
src/renderers/native/ReactNativeReconcileTransaction.js
src/renderers/native/ReactNativeReconcileTransaction.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
JavaScript
0
@@ -2679,32 +2679,418 @@ ateQueue;%0A %7D,%0A%0A + /**%0A * Save current transaction state -- if the return value from this method is%0A * passed to %60rollback%60, the transaction will be reset to that state.%0A */%0A checkpoint: function() %7B%0A // reactMountReady is the our only stateful wrapper%0A ...
ac1a25d7a0a7cf35c7753d8cf2cc52b04f368ee0
allow passing a single options object to a MultiCompiler
lib/MultiCompiler.js
lib/MultiCompiler.js
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ var Tapable = require("tapable"); var async = require("async"); var MultiWatching = require("./MultiWatching"); var MultiStats = require("./MultiStats"); function MultiCompiler(compilers) { Tapable.call(this); if(!Arr...
JavaScript
0
@@ -3244,80 +3244,8 @@ %7D);%0A -%09if(!Array.isArray(watchOptions)) %7B%0A%09%09watchOptions = %5BwatchOptions%5D;%0A%09%7D%0A %09run @@ -3417,16 +3417,46 @@ r.watch( +Array.isArray(watchOptions) ? watchOpt @@ -3472,16 +3472,31 @@ ilerIdx%5D + : watchOptions , functi
80076e6208c36ac3045eac3505943a32850354b0
Whoops. Rounded the wrong date
js/generateTP.js
js/generateTP.js
/** * ownCloud - spreedme * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Leon <leon@struktur.de> * @copyright Leon 2015 */ // This file is loaded in ownCloud context (function($, OC) { $(document).ready(function() { var requestTP = f...
JavaScript
0.999999
@@ -621,18 +621,8 @@ n %3E -Math.round (new @@ -1417,16 +1417,26 @@ .val(), +Math.round (new Dat
ad3c8f5c83b5e40d49c6779ac98f7f4ca7f13c71
fix lint errors
src/containers/editable-popover3.js
src/containers/editable-popover3.js
/** * Editable Popover3 (for Bootstrap 3) * --------------------- * requires bootstrap-popover.js */ (function ($) { "use strict"; //extend methods $.extend($.fn.editableContainer.Popup.prototype, { containerName: 'popover', containerDataName: 'bs.popover', innerCss: '.popover-cont...
JavaScript
0.000037
@@ -7196,16 +7196,34 @@ toPlace) + %7B%0A placeme @@ -7262,32 +7262,46 @@ , '') %7C%7C 'top';%0A + %7D%0A %0A
0fbc91e6b831d1183d18874ceab7e847eef5ee7a
use _.cellsize instead of T.cellsize
src/objects/cosc.js
src/objects/cosc.js
(function(T) { "use strict"; var fn = T.fn; var Oscillator = T.modules.Oscillator; function COscNode(_args) { T.Object.call(this, 1, _args); fn.fixAR(this); var _ = this._; _.freq = T(440); _.osc1 = new Oscillator(T.samplerate); _.osc2 =...
JavaScript
0.000169
@@ -358,33 +358,33 @@ _.osc1.step = -T +_ .cellsize;%0A @@ -400,17 +400,17 @@ .step = -T +_ .cellsiz @@ -447,17 +447,17 @@ alArray( -T +_ .cellsiz
d2f2816ccf145bf4d1f89d5f2825e69a45af60ac
improve error and on event info
worker_relay.js
worker_relay.js
var http = require('http'); var MG = require('./my_globals').C; var url = require('url'); var db = require('./dbrelayer'); function do_job(task, callback) { var target_host = task.headers[MG.HEAD_RELAYER_HOST]; if (!target_host) { console.log("Not target host"); } else { var op...
JavaScript
0
@@ -1455,32 +1455,103 @@ cb_result = %7B%0D%0A + relayed_request_result: resp_obj,%0D%0A @@ -6895,32 +6895,83 @@ r cb_error = %7B%0D%0A + relayed_request_error: error,%0D%0A @@ -7125,32 +7125,66 @@ ror.httpcb_error + %7C%7C cb...
2d56aa941cc7d3e616817a63a184eebc279a2155
refactor adapter
lib/adapter/style.js
lib/adapter/style.js
var util = require('util'), css = require('css'), path = require('path'), _fs = require('../util/file.js'), _util = require('../util/util.js'), _path = require('../util/path.js'), _Abstract = require('../util/event.js'); // token parser // file file path // content...
JavaScript
0.000002
@@ -1,12 +1,353 @@ +/*%0A * CSS Content Parser Adapter%0A * @module adapter/style%0A * @author genify(caijf@corp.netease.com)%0A */%0Avar Parser = module.exports =%0A require('../util/klass.js').create();%0Avar pro = Parser.extend(require('../util/event.jss'));%0A%0A%0Apro.init = function()%7B%0A%0A%7D;%0A%0A%0A...
db51c4f2181a1ea625ba37d5965c06741bb91565
Add function isDatabaseExists in sqlCommands.spec.js
sashimi-webapp/test/unit/specs/database/sqlCommands.spec.js
sashimi-webapp/test/unit/specs/database/sqlCommands.spec.js
import SqlCommands from 'src/database/sql-related/sqlCommands'; import SqlArray from 'src/database/generated-data/sqlArray'; import dataDelete from 'src/database/data-modifier/dataDelete'; import exceptions from 'src/database/exceptions'; const testDatabaseName = 'test'; const sqlCommands = new SqlCommands(); const...
JavaScript
0.000007
@@ -345,16 +345,380 @@ ray();%0A%0A +function isDatabaseExists(databaseName, callback) %7B%0A const req = indexedDB.open(databaseName);%0A let existed = true;%0A req.onsuccess = function onSuccess() %7B%0A req.result.close();%0A if (!existed) %7B%0A indexedDB.deleteDatabase(databaseName);%0A %7D%0A ...