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 |
|---|---|---|---|---|---|---|---|
567ff9ccb1038767f214fdaffc47dfc2b46c6132 | Fix Create.js: use writable fileds | src/Create.js | src/Create.js | import React, {Component} from 'react';
import {Create as BaseCreate, SimpleForm} from 'admin-on-rest';
import inputFactory from './inputFactory';
export default class extends Component {
render() {
const factory = this.props.options.inputFactory ? this.props.options.inputFactory : inputFactory;
return <Bas... | JavaScript | 0.000003 | @@ -398,12 +398,12 @@
rce.
-read
+writ
able
|
f45365c1daf97d4066206957b4e14cd742e1af2b | add errorCount into error function when graceful shutdown uncatchexception occur | config/lib/app.js | config/lib/app.js | 'use strict';
/**
* Module dependencies.
*/
var config = require('../config'),
mongoose = require('./mongoose'),
express = require('./express'),
chalk = require('chalk'),
seed = require('./seed'),
graceful = require('graceful');
function seedDB() {
if (config.seedDB && config.seedDB.seed) {
console.... | JavaScript | 0.000001 | @@ -2010,16 +2010,32 @@
ion (err
+,throwErrorCount
) %7B%0A
@@ -2057,16 +2057,25 @@
.error('
+Graceful
catch on
@@ -2093,19 +2093,115 @@
eption:
-' +
+%25d times, log error here, and system will be shutdown by Graceful, error is: %25s ', throwErrorCount,
err.sta
|
7de43141891a74a42838b34cf696b8e8d34d5502 | remove dot from klo | src/utils.js | src/utils.js | import {compose, mapProps} from "recompose";
import {withRouter} from "react-router-dom";
import moment from "moment";
export const withRouterProps = mapper => compose(
mapProps(props => ({originalProps: props})),
withRouter,
mapProps(({originalProps, ...router}) => {
return {
...origin... | JavaScript | 0.000097 | @@ -479,17 +479,16 @@
()%7D (klo
-.
$%7Bmomen
|
a5b2875b191262b328d6255e01794a5aaa684167 | Add frame count to update call. | client/gesso.js | client/gesso.js | var Controller = require('./controller');
var Delegate = require('./delegate');
var lowLevel = require('./lowLevel');
var logging = require('./logging');
function Gesso(options) {
options = options || {};
this.contextType = options.contextType || '2d';
this.contextAttributes = options.contextAttributes;
this.... | JavaScript | 0 | @@ -1353,16 +1353,40 @@
false;%0A
+ this._frameCount = 0;%0A
%7D%0AGesso.
@@ -2117,32 +2117,50 @@
s.update.invoke(
+++this._frameCount
);%0A%7D;%0AGesso.prot
|
fd6625ae483382085f9ed2302ef526cd1b4ef3b1 | Switch to spline graph | src/app/stats/patients-by-group-date-graph.directive.js | src/app/stats/patients-by-group-date-graph.directive.js | import _ from 'lodash';
import Highcharts from 'highcharts';
function patientsByGroupDateGraph(adapter) {
return {
scope: {
groupType: '@',
type: '@'
},
template: '<div loading="loading" class="graph"></div>',
link: function(scope, element) {
var params = {
groupType: scope.... | JavaScript | 0.000002 | @@ -621,20 +621,22 @@
type: '
-area
+spline
'%0A
@@ -940,49 +940,17 @@
-area: %7B%0A stacking: 'normal',
+spline: %7B
%0A
|
5cabff9de08cc01d45e45c5388057211cd10581c | Change the way the file tree is walked. | src/foam/build/DirCrawlModelDAO.js | src/foam/build/DirCrawlModelDAO.js | /**
* @license
* Copyright 2018 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.build',
name: 'DirCrawlModelDAO',
extends: 'foam.dao.PromisedDAO',
requires: [
'foam.build.Lib',
'foam.core.Script',
'foam.dao.EasyDAO',
'foam.d... | JavaScript | 0 | @@ -3251,32 +3251,33 @@
ist.join('%7C'));%0A
+%0A
var files
@@ -3282,120 +3282,137 @@
s =
-require('child_process')%0A .execSync(%60find $%7Bself.srcDir%7D%60)%0A .toString('utf-8')%0A .split('%5Cn'
+%5B%5D;%0A self.ftw(self.srcDir, function(path, lstat) %7B%0A if ( ! lstat.i... |
e5341c1815b1c5d544c827b816e4491a62d63a6b | Update DocTyp.js | src/DocTyp.js | src/DocTyp.js | /*
Convert the contents of an HTML DOM element into a
styled text document for an easier reading
experience or to bring out certain features in the
document. You can create your own README document.
if (redistribute == true) {
return credit;
}
--------------------------------------------------
... | JavaScript | 0 | @@ -1625,24 +1625,60 @@
(element) %7B%0A
+ element.onload = function() %7B%0A
//Cater
@@ -1696,24 +1696,26 @@
rowsers%0A
+
var doc = el
@@ -1731,24 +1731,26 @@
erHTML;%0A
+
//Processing
@@ -1750,24 +1750,26 @@
cessing%0A
+
+
doc = export
@@ -1779,32 +1779,34 @@
eader(doc);%0A
+ ... |
4dadea8e6d30e76d0bb8aead156604f7d5e57a06 | Fix exception when snippets scripts is an empty array | front_end/snippets/ScriptSnippetFileSystem.js | front_end/snippets/ScriptSnippetFileSystem.js | // Copyright 2018 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.
// @ts-nocheck
// TODO(crbug.com/1011811): Enable TypeScript compiler checks
import * as Common from '../common/common.js';
import * as Persistence from ... | JavaScript | 0.999997 | @@ -6230,16 +6230,60 @@
L(url);%0A
+ if (scripts.length %3C 1) %7B%0A return;%0A %7D%0A
const
|
70d8d8c9f23d065188c800699b570815ad97fea6 | Fix ViewSource component in the docs (#19022) | examples/image-component/components/view-source.js | examples/image-component/components/view-source.js | import { svg, arm } from './view-source.module.css'
const ViewSource = ({ pathname }) => (
<a
title="View Source"
href={`https://github.com/vercel/next.js/tree/canary/examples/image-component/${pathname}`}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="80"
height="80"
viewBox=... | JavaScript | 0 | @@ -92,145 +92,12 @@
%0A %3C
-a%0A title=%22View Source%22%0A href=%7B%60https://github.com/vercel/next.js/tree/canary/examples/image-component/$%7Bpathname%7D%60%7D%0A %3E%0A %3Csvg%0A
+svg%0A
@@ -135,18 +135,16 @@
vg%22%0A
-
width=%228
@@ -150,18 +150,16 @@
80%22%0A
-
-
height=%22
... |
d6e723e37723e78be809dcf1476fce51399e2277 | Make background cover entire sidebar on mobile | www/layouts/default.js | www/layouts/default.js | import React from 'react';
import Navigation from 'components/navigation';
import Sidebar from 'components/sidebar';
import { rhythm } from 'utils/typography';
import { presets } from 'glamor';
import Drawer from 'react-motion-drawer';
require('../css/prism-coy.css');
require('typeface-libre-franklin');
require('typefa... | JavaScript | 0 | @@ -1522,17 +1522,20 @@
%09%09%09%09%09%09%09%09
-h
+minH
eight: '
@@ -1542,16 +1542,40 @@
100vh',%0A
+%09%09%09%09%09%09%09%09height: '100%25',%0A
%09%09%09%09%09%09%09%09
|
d20f9cadffdc6a765c5f3fee105933a98fb31120 | Drop default strict settings for browsers | configurations/browser.js | configurations/browser.js | module.exports = {
"extends": "chiton/configurations/default",
"env": {
"browser": true
},
"rules": {
"no-console": 1,
"no-debugger": 1,
"no-script-url": 2,
"strict": [2, "function"]
}
};
| JavaScript | 0 | @@ -176,39 +176,8 @@
%22: 2
-,%0A %22strict%22: %5B2, %22function%22%5D
%0A %7D
|
b2e03fe0efe0e5b33ed96fec68ef81e17578df42 | fix all | src/scripts/regist/statistics/main/index.js | src/scripts/regist/statistics/main/index.js |
/*
* 主文件
* createDate:2016-08-29 10:54:07
* author: XXXXXX
*/
Jma.module('Regist.Statistics', function(Statistics, Jma, Backbone, Marionette, $, _){
Statistics.Controller = Marionette.Controller.extend({
initialize: function(options){
var self = this;
this.options = options;
this.model = new Backbone.Mode... | JavaScript | 0.999999 | @@ -321,17 +321,39 @@
l(%7Bdate:
-8
+new Date().getMonth()+1
%7D)%0A%09%09%09th
|
dc47a012bbe855c5625cd03b67442e1c021b76c1 | Fix icon editor | src/form/editors/IconEditorView.js | src/form/editors/IconEditorView.js | //@flow
import IconButtonView from './impl/iconEditor/views/IconButtonView';
import IconPanelView from './impl/iconEditor/views/IconPanelView';
import template from './impl/iconEditor/templates/iconEditorComponentView.html';
import categories from './impl/iconEditor/categories';
import icons from './impl/iconEditor/ico... | JavaScript | 0.000001 | @@ -467,16 +467,49 @@
sitory';
+%0Aimport Backbone from 'backbone';
%0A%0Aconst
@@ -614,48 +614,8 @@
n %7B%0A
- modelIconProperty: 'iconClass',%0A
@@ -928,25 +928,24 @@
aults);%0A
-%0A
if (this
@@ -940,105 +940,64 @@
-if (
this.
-options.modelIconProperty !== defaults.modelIconProper... |
69c08c8709ef31432ede480526895777e0ae0e82 | test replace input value on change event | js/main.js | js/main.js | $(document).ready(function(){
$("#phone").mask("(999) 999-9999");
$("#dob").mask("99/99/9999");
$("#ssn").mask("999-99-9999");
$("#pw").mask("99-9999999");
$("#pw").on("change", function(){
console.log( $(this).val() );
var value = $(this).val();
var bullet = "*";
$(this).val( value.replace(value, bulle... | JavaScript | 0.000001 | @@ -156,16 +156,34 @@
99%22);%0A%09%0A
+%09var counter = 0;%0A
%09$(%22#pw%22
@@ -208,16 +208,18 @@
ction()%7B
+%09%09
%0A%09%09conso
@@ -330,19 +330,62 @@
alue
-, bullet) )
+.substr(counter, value.length), bullet) );%0A%09%09counter++
;%0A%09%7D
|
129a07b3b9f23a9cf1888770de652b4e218aabdf | Add client-side message limit. | client/index.js | client/index.js | var $ = require('jquery')
, io = require('socket.io-client')()
, initWebrtc = require('./init-webrtc')
, captureFrames = require('./capture-frames')
, cuid = require('cuid')
, Fingerprint = require('fingerprintjs')
io.on('connect', function() {
io.emit('fingerprint', new Fingerprint({ canvas: true }).get()... | JavaScript | 0 | @@ -404,24 +404,48 @@
'webm')%0A%7D)%0A%0A
+var MESSAGE_LIMIT = 30%0A%0A
var messageL
@@ -1073,24 +1073,225 @@
toScroll) %7B%0A
+ var children = messageList.children()%0A if (children.length %3E MESSAGE_LIMIT) %7B%0A children.slice(0, children.length - MESSAGE_LIMIT).each(function() %7B%0A $(this).... |
a7b22080b4a9c307cb7f465986df850c246f9890 | Update e-filter-map-some.js | src/functions/e-filter-map-some.js | src/functions/e-filter-map-some.js | var topics = require('../data').topics;
// 1. Filter topics written by Leonard
var result = topics.filter(function (topic) {
return false;
});
console.log("result --> ", result);
// 1. The same with Fat arrow
result = topics.filter(topic => false);
// 2. Mapping some data: getting the title of each topic
var t... | JavaScript | 0 | @@ -1633,16 +1633,40 @@
nce' tag
+ : from topic or Comment
%0A// 5 -
|
6cc4891f7c96ecf33450c8b527ca32da9502a32b | Change default adapter to memory for sockets. | config/sockets.js | config/sockets.js | /**
* WebSocket Server Settings
* (sails.config.sockets)
*
* These settings provide transparent access to the options for Sails'
* encapsulated WebSocket server, as well as some additional Sails-specific
* configuration layered on top.
*
* For more information on sockets configuration, including advanced config... | JavaScript | 0 | @@ -2112,18 +2112,16 @@
*****/%0A%09
-//
adapter
@@ -2152,16 +2152,19 @@
-%0A%09//%0A%0A%09
+ //
adapter
|
2fb334f1abc04bd87e403c1183ad3b712cc09762 | wrong dbEngine for PostgreSQL | generators/aws/index.js | generators/aws/index.js | /**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | JavaScript | 0.998873 | @@ -3022,34 +3022,34 @@
.dbEngine =
-POSTGRESQL
+'postgres'
;%0A
|
c6e7080600038342faa3c11e5a99ba9f07497010 | configure targets | config/targets.js | config/targets.js | /* eslint-env node */
module.exports = {
browsers: [
'ie 9',
'last 1 Chrome versions',
'last 1 Firefox versions',
'last 1 Safari versions'
]
};
| JavaScript | 0.000001 | @@ -52,20 +52,8 @@
: %5B%0A
- 'ie 9',%0A
@@ -113,37 +113,8 @@
s',%0A
- 'last 1 Safari versions'%0A
%5D%0A
|
4005db5668cacdfd4b02e2cf5b2b4db48fe41c01 | Use is-typedarray module | src/utils.js | src/utils.js | import createDebug from 'debug'
import document from 'global/document'
import window from 'global/window'
import clamp from 'clamp'
const kLibraryVersion = __AXIS3D_VERSION__
const TypedArray = Object.getPrototypeOf(Float32Array.prototype).constructor
const { HTMLImageElement, HTMLCanvasElement } = window
export con... | JavaScript | 0.000004 | @@ -25,16 +25,57 @@
'debug'%0A
+import isTypedArray from 'is-typedarray'%0A
import d
@@ -3523,16 +3523,17 @@
%0A %7C%7C
+(
array in
@@ -3551,16 +3551,40 @@
pedArray
+ %7C%7C isTypedArray(array))
%0A %7C%7C
|
bfaf6aac80fe9a70f2877733bf2215ba4ac132bf | remove explicit language from comments | generators/cli/index.js | generators/cli/index.js | 'use strict';
const generators = require('yeoman-generator');
module.exports = generators.Base.extend({
writing: function () {
this.fs.copy(this.templatePath('.editorconfig'), this.destinationPath('.editorconfig'));
this.fs.copy(this.templatePath('.esdoc.json'), this.destinationPath('.esdoc.json')... | JavaScript | 0.000022 | @@ -1502,16 +1502,8 @@
og('
-I would
run
@@ -1514,44 +1514,19 @@
init
+,
h
-ere if I knew what the fuck to do!
+opefully
');%0A
|
bcb9916a9f1cfb586f20fa025790e5693ac7bf0d | Add disabling of create button when no group members are selected | src/components/GroupToolbarDialog/GroupToolbarDialog.js | src/components/GroupToolbarDialog/GroupToolbarDialog.js | import React, { Component, PropTypes } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import { re... | JavaScript | 0 | @@ -1415,16 +1415,82 @@
);%0A %7D%0A%0A
+ isCreateInfoValid = () =%3E (this.state.groupMembers.length %3E 0)%0A%0A
isCrea
@@ -2404,32 +2404,79 @@
primary%0A
+ disabled=%7B!this.isCreateInfoValid()%7D%0A
onTouc
|
9b62813d819d02ecc29aefdcf0f08a5eb7cfde74 | Update RE per CR | src/utils.js | src/utils.js |
/**
* Escape quotes in the given value.
*
* @param {string} value The value to escape.
* @param {string} [defaultValue=''] The default value to return if value is falsy.
* @returns {string}
*/
export function escapeQuotes(value, defaultValue = '') {
// There's no lookback in JS, so /(^|[^\\])"/ only matches th... | JavaScript | 0 | @@ -483,11 +483,13 @@
e(/(
-.*?
+%5B%5E%22%5D*
)%22/g
|
1ba4d807e6c505a870e85ca9a1ebe03a05e8f900 | Fix firstname | test/types/template.js | test/types/template.js | // JSON <template>
// Types / Template
//
// Templates describe how RunOrg should generate text or HTML from input data.
//
// For example, a template can be used to generate include the contact's name
// in [the body of an e-mail](/docs/#/mail/create.js) sent to multiple
// contacts.
//
// ### Template JSON format
/... | JavaScript | 0.999947 | @@ -910,22 +910,22 @@
ame%0A// %60
-Victor
+Marcus
%60 as an
|
5f735e5697f3e57166888186f97295d1c9f6356f | Update main.js | js/main.js | js/main.js | /**
* @fileOverview 微信一分钱回家-转盘页
* @author rainyjune <rainyjune@live.cn>
*/
$(function(){
var is_turn = $("#is_turn").val();
var isSelf = $("#is_self").val();
var lukyUsers = $(".d-lottery-list-container").children();
// Get activity info.
$.getJSON('./data/activity.json', function(data)... | JavaScript | 0.000001 | @@ -557,32 +557,392 @@
dDate);%0A %7D%0A
+ $(%22.goalMoney%22).prepend(data.goalMoney);%0A if (data.fullfilledText) %7B%0A $(%22#fullfilledText%22).html(data.fullfilledText);%0A %7D%0A if (data%5B%22guide_share_text_1%22%5D) %7B%0A $(%22.shareBox h3%22).html(data%5B%22guide_share... |
ea18131ac3f9e5c49ab3b9a602ecdc58628da702 | fix tests | test/unit/templates.js | test/unit/templates.js | var assert = require('assert');
var jsonValidator = require('tv4');
var validate = jsonValidator.validateMultiple;
var templates = require('../../lib/templates.json');
// Localization strings
var localeFile = require('../../locale/en_US/mobile-appmaker.json');
var localizedStrings = [];
Object.keys(localeFile).forEach... | JavaScript | 0.000001 | @@ -1557,16 +1557,20 @@
ired: %5B'
+user
name', '
|
1911f21d8d517e3b4849ef8bc7bb9b557584013c | Fix client undefined bug | lib/connect-couchbase.js | lib/connect-couchbase.js | /*!
* Connect - Couchbase
* Copyright(c) 2014 Christopher Mina <christopher.mina@gmail.com>
*
* MIT Licensed
*
* This is an adaption from connect-redis, see:
* https://github.com/visionmedia/connect-redis
*/
'use strict'
/**
* Module dependencies.
*/
var debug = require('debug')('connect:couchbase');
/**
... | JavaScript | 0.000001 | @@ -2977,16 +2977,21 @@
+this.
client.c
|
938f655ccfd31fa001bf3c509e14482f03d86e58 | Fix variable redefinition in |escape| | src/utils.js | src/utils.js | /* Like Python's |range|, but without |step|. */
function range(start, stop) {
if (stop === undefined) {
stop = start;
start = 0;
}
var result = new Array(Math.max(0, stop - start));
for (var i = 0, j = start; j < stop; i++, j++) {
result[i] = j;
}
return result;
}
function contains(array, val... | JavaScript | 0.002056 | @@ -1575,16 +1575,48 @@
deAt(0);
+%0A var escapeChar;%0A var length;
%0A%0A if (
@@ -1635,28 +1635,24 @@
0xFF) %7B%0A
-var
escapeChar =
@@ -1657,28 +1657,24 @@
= 'x';%0A
-var
length = 2;%0A
@@ -1688,20 +1688,16 @@
e %7B%0A
-var
escapeCh
@@ -1710,20 +1710,16 @@
u';%0A
-var
length =
|
5647564c22c8fbbb1d01a19d80f99e28eed5a35d | use canary versions of hyper | configs/.hyper.js | configs/.hyper.js | module.exports = {
config: {
fontSize: 14,
fontFamily: '"Roboto Mono for Powerline"',
lineHeight: 1.2,
},
plugins: [
'hyper-one-dark',
'hyperlinks',
'hyper-quit'
],
localPlugins: []
};
| JavaScript | 0 | @@ -24,16 +24,45 @@
nfig: %7B%0A
+ updateChannel: 'canary',%0A
font
|
0cd636896ccaccbcf22ca8ca6fccf551e7152228 | use the __ and _ prefix convention for private and protected members | src/html/behaviors/forwardProps.js | src/html/behaviors/forwardProps.js |
import { observe, unobserve } from 'james-bond'
import Class from 'lowclass'
import Mixin from 'lowclass/Mixin'
import {getInheritedDescriptor} from 'lowclass/utils'
export default
Mixin(Base => Class( 'forwardProps' ).extends( Base, ({ Super, Public, Protected, Private }) => ({
connectedCallback() {
Sup... | JavaScript | 0.000001 | @@ -403,16 +403,18 @@
this ).
+__
receiveP
@@ -422,32 +422,32 @@
opsFromObject()%0A
-
%7D,%0A%0A disc
@@ -574,16 +574,18 @@
this ).
+__
unreceiv
@@ -698,16 +698,18 @@
+__
receiveP
@@ -919,32 +919,34 @@
vedObject, this.
+__
getProps(), this
@@ -1103,16 +1103,18 @@
+__
unreceiv
@@ -... |
0d145465fe56f40a83670d4fa04f9f9b7bd7e5ed | add logging | lib/consumer/consumer.js | lib/consumer/consumer.js |
var listenPort = process.env.CONSUMER_PORT || 3002;
var express = require('express');
var app = express();
var request = require('request');
if(!process.env.PROVIDER){
throw 'PROVIDER service URL must be provide in order to use this consumer';
}
var providerUrl = process.env.PROVIDER;
app.get('/:message', function... | JavaScript | 0.000001 | @@ -321,24 +321,91 @@
(req, res)%7B%0A
+ console.log('contacting provider to echo:', req.params.message);%0A
request.po
@@ -493,66 +493,53 @@
-//console.log(error,'/',response,'/',body);%0A if(
+if(error)%7B%0A console.log('ERROR',
error)
-%7B
+;
%0A
@@ -581,16 +581,59 @@
%7Delse%7B%0A
+ ... |
09944d4b4ce8d65b6526b114460d04c818de6378 | add state to sequence object | src/instance/functions/sequence.js | src/instance/functions/sequence.js | import animate from './animate'
import { each } from '../../utils/generic'
export default function sequence (element) {
const seq = this.store.sequences[element.sequence.id]
const i = element.sequence.index
if (seq) {
const visible = modelSequenceByProp.call(this, seq, 'visible')
const revealed = modelSequenc... | JavaScript | 0.000019 | @@ -350,16 +350,54 @@
aled')%0A%0A
+%09%09seq.models = %7B visible, revealed %7D%0A%0A
%09%09if (!r
@@ -986,16 +986,37 @@
eset) %7B%0A
+%09%09%09seq.lastReset = i%0A
%09%09%09retur
@@ -1075,16 +1075,37 @@
rn%0A%09%09%7D%0A%0A
+%09%09seq.lastReveal = i%0A
%09%09animat
|
3888134dfa1cd65460962e2d72a7fb8462ee76ce | Fix the case when two same digits succeeds | contests/hackathon2018.js | contests/hackathon2018.js | const assert = require('assert');
const shuffle = require('lodash/shuffle');
const sample = require('lodash/sample');
const languages = require('../data/languages/hackathon2018.js');
const digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
module.exports.getPrecedingIndices = () => languages.map((_, i) => i);
module.exports.g... | JavaScript | 1 | @@ -297,31 +297,22 @@
=%3E i);%0A%0A
-module.exports.
+const
generate
@@ -316,16 +316,20 @@
ateInput
+Case
= () =%3E
@@ -451,16 +451,17 @@
in('');%0A
+%0A
%09while (
@@ -830,16 +830,197 @@
n%60;%0A%7D;%0A%0A
+module.exports.generateInput = () =%3E %7B%0A%09let input = null;%0A%0A%09while (!input %7C%7C input.m... |
6de400d0bd54031ff5b6021544d151b30c34ec34 | add product reponse | services/responseFactory.js | services/responseFactory.js | 'use strict';
var categoryMenu = require('../services/response/categoryMenuResponse').getInstance();
var productMenu = require('../services/response/productMenuResponse').getInstance();
var checkoutMenu = require('../services/response/checkoutResponse').getInstance();
const MENU = 'menu';
const ALL = 'all';
const CAT... | JavaScript | 0.000001 | @@ -526,16 +526,91 @@
ype%5B1%5D;%0A
+%0A console.info(%22type %22, type%5B0%5D);%0A console.info(%22id %22, id);%0A%0A
@@ -896,16 +896,61 @@
RODUCT:%0A
+ console.log(%22GOT PRODUCT!%22);%0A
|
c6241279719edb13a125fa484be513379a2aa325 | add deep link endpoint | src/services/ltiTool/index.js | src/services/ltiTool/index.js | const service = require('feathers-mongoose');
const fs = require('fs');
const jwt = require('jsonwebtoken');
const ltiTool = require('./model');
const hooks = require('./hooks');
module.exports = function () {
const app = this;
const options = {
Model: ltiTool,
paginate: {
default: 100,
max: 100,
},
... | JavaScript | 0 | @@ -495,16 +495,69 @@
data) %7B%0A
+%09%09%09data.request.name = decodeURI(data.request.name);%0A
%09%09%09retur
@@ -695,12 +695,630 @@
%09%7D,%0A%09%7D);
+%0A%0A%09app.use('/tools/:id/link', %7B%0A%09%09create(data, params) %7B%0A%09%09%09return app.service('ltiTools').find(%7B%0A%09%09%09%09query: %7B%0A%09%09%09%... |
2537efb2fffb78d88c2d203feb38278c72d5f2e7 | Make the example webpack build less noisy | examples/basic/webpack.config.babel.js | examples/basic/webpack.config.babel.js | import path from 'path'
import fs from 'fs'
import HtmlWebpackPlugin from 'html-webpack-plugin'
module.exports = {
entry: './app.js',
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
devServer: {
inline: true,
historyApiFallback: true
},
module: {
loaders: [ {
... | JavaScript | 0.001102 | @@ -274,16 +274,140 @@
ck: true
+,%0A stats: %7B%0A colors: true,%0A hash: false,%0A version: false,%0A chunks: false,%0A children: false%0A %7D
%0A %7D,%0A
|
6170d7bad5e2c8c2e071ae1493b601aacbda6bbb | Update Select Icon | src/Select.js | src/Select.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Icon } from '../index.js';
class Select extends Component {
constructor(props){
super(props);
this.state = {};
this.applySelectStyles = _applySelectStyles.bind(this);
}
componentDidMount... | JavaScript | 0.000001 | @@ -1908,10 +1908,13 @@
pen-
-18
+sm-24
' /%3E
|
8912bd4d8130b6a286d5254517a1e8bfd2a70a14 | Add in bind_validation.simple, WIP | src/javascript/binary/validator.js | src/javascript/binary/validator.js | var ValidationUI = {
clear: function() {
$('.errorfield[data-is-error-field]').remove();
},
draw: function(selector, message) {
var $parent = $(selector).parent();
var $p = $('<p/>', {
class: 'errorfield',
text: text.localize(message),
});
$p... | JavaScript | 0.000011 | @@ -2972,12 +2972,752 @@
,%0A %7D);%0A%7D%0A
+%0A// TODO:%0A// - success callback for onsubmit%0A// - change signature for config.checker%0A// - change signature for config.stop%0A// - better names for config attrs%0Abind_validation.simple = function(form, schema, opts) %7B%0A opts = opts %7C%7C %7B%7D;%0A%0... |
82973453968d5290372916a9d7f0083d5a8716fa | fix #10 | js/main.js | js/main.js | var $container = $('#Grid');
jQuery('document').ready(function($) {
/* init bootstrap tooltips */
$(function() {
$("[data-toggle='tooltip']").popover();
});
/* on img 404 -> placeholder img */
$("img").error(function() {
$(this).attr("src", "img/img404.jpg");
});
/* init... | JavaScript | 0.000002 | @@ -1899,18 +1899,24 @@
-setTimeout
+$(window).scroll
(fun
@@ -1938,40 +1938,44 @@
$
-('#reset_filter').click(
+container.isotope('reLayout'
);%0A %7D
, 15
@@ -1974,14 +1974,8 @@
%7D
-, 1500
);%0A%7D
|
1a04968ecd70197c01c009a531905fef4b4d8bb9 | Fix #18 - optimize check for number. | src/value.js | src/value.js | import {color} from "d3-color";
import rgb from "./rgb";
import array from "./array";
import number from "./number";
import object from "./object";
import string from "./string";
export default function(a, b) {
var t = typeof b, c;
return (t === "string" ? ((c = color(b)) ? (b = c, rgb) : string)
: b instanc... | JavaScript | 0 | @@ -243,16 +243,48 @@
n (t ===
+ %22number%22 ? number%0A : t ===
%22string
@@ -405,26 +405,8 @@
:
- t === %22object%22 &&
isN
|
2d95d5e8af9998566b46757356c0d0ca04411530 | rename option | src/Server.js | src/Server.js | // @flow
'use strict'
const Client = require('./Client')
const EventEmitter = require('eventemitter3')
const WebSocket = require('ws')
const WebSocketServer = require('ws').Server
const uid = require('uid-safe')
const { CLOSE_FORBIDDEN } = require('./constants')
const { assign, attempt, fromCallback, toEmit } = requir... | JavaScript | 0.000002 | @@ -347,24 +347,16 @@
ts = %7B%0A
- Server:
WebSock
@@ -365,16 +365,16 @@
Server,%0A
+
connec
@@ -996,16 +996,25 @@
bject%7D %5B
+WebSocket
Server%5D
@@ -1043,17 +1043,16 @@
r for ws
-s
%0A * serv
@@ -1166,16 +1166,25 @@
ons = %7B
+WebSocket
Server?:
@@ -1512,16 +1512,25 @@
umber%0A
+WebSocket
Serve... |
f2dbf42940efcab4aeafa20c67770f51b9b20aa5 | implement basic flying vogon | js/main.js | js/main.js | let game;
let player;
let whale;
let vogon;
function init() {
const gameWidth = 360;
const gameHeight = 600;
game = new Phaser.Game(gameWidth, gameHeight, Phaser.AUTO, 'gameWindow', {
preload: preload,
create: create,
update: update
});
}
function preload() {
game.load.image('background1', 'as... | JavaScript | 0.000005 | @@ -501,21 +501,21 @@
.image('
-vogon
+enemy
Ship', '
|
3f8148c7efed8a2ae85a4a9c776e3e2875407286 | Modify PostCSS whitelist patterns. | .postcssrc.js | .postcssrc.js | const postcssPresetEnv = require('postcss-preset-env');
const tailwindcss = require('tailwindcss');
const purgecss = require('@fullhuman/postcss-purgecss');
// Whitelist Tailwind classes with these colors for theme support
const colors = [
'transparent',
'black',
'white',
'gray',
'red',
'orange',
'yellow... | JavaScript | 0 | @@ -155,242 +155,8 @@
);%0A%0A
-// Whitelist Tailwind classes with these colors for theme support%0Aconst colors = %5B%0A 'transparent',%0A 'black',%0A 'white',%0A 'gray',%0A 'red',%0A 'orange',%0A 'yellow',%0A 'green',%0A 'teal',%0A 'blue',%0A 'indigo',%0A 'purple',%0A 'pink',%0A%5D;%0A%0A
modu
@@ -793,... |
dbb2b63e3e3ea4f98636b929b3cd9042d5f8205b | Switch between visible variation | client/views/dashboard/tweetItem.js | client/views/dashboard/tweetItem.js | Template.tweetItem.helpers({
toDay: Helpers.getDay
});
Template.tweetItem.events({
'click .variation-time-button': showVariation,
'click .tweet-delete': deleteTweet
});
function showVariation (e) {
alert(JSON.stringify(this));
}
function deleteTweet (e) {
$(e.target).parents('.modal').modal('hide');
$(e.... | JavaScript | 0.000001 | @@ -1,24 +1,25 @@
+%0A
Template.tweetItem.helpe
@@ -50,194 +50,191 @@
tDay
-%0A%7D);%0A%0ATemplate.tweetItem.events(%7B%0A 'click .variation-time-button': showVariation,%0A 'click .tweet-delete': deleteTweet%0A%7D);%0A%0Afunction showVariation (e) %7B%0A alert(JSON.stringify(this));%0A%7D
+,%0A text: getDisplayTe... |
9e656fc64fb68a776c50dfec31f063218c49cbe7 | Rewrite JavaScript for website redesign | js/main.js | js/main.js | $(document).ready(function() {
// Show/hide elements depending on window size
if ($(window).width() <= 1024) {
$("nav").hide();
} else if ($(window).width() > 1024) {
$("nav").show();
$(".nav-btn").hide();
};
// Toggle for the dropdown
$(".dropbtn").click(function () {
$("nav").slideToggle();
$(this).... | JavaScript | 0.000025 | @@ -25,124 +25,394 @@
on()
-
%7B%0A%0A%09//
-Show/hide elements depending on window size%0A%09if ($(window).width() %3C= 1024) %7B%0A%09%09$(%22nav%22).hide();%0A%09%7D else
+Toggle for dropdown%0A%09$(%22.dropbtn%22).click(function () %7B%0A%09%09$(%22nav%22).slideToggle();%0A%09%09$(this).toggleClass(%22transform... |
a3055e31f5187cb4df49a28a40e934ba535a6517 | remove bg from inner component | src/graph.js | src/graph.js | import React, {Component} from 'react'
export class Graph extends Component {
render () {
return (
<div style={{background: 'lightgrey'}}>Graph</div>
)
}
}
| JavaScript | 0 | @@ -114,40 +114,22 @@
div
-style=%7B%7Bbackground: 'lightgrey'%7D
+%7B...this.props
%7D%3EGr
|
e56c4daa084779eeb9bbf0ff4d909dac02747056 | Fix unit editor w/o schema | src/components/ModalUnitEdit/ModalUnitEdit.js | src/components/ModalUnitEdit/ModalUnitEdit.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
FormControl,
ControlLabel,
FormGroup,
HelpBlock,
Tabs,
Tab,
} from 'react-bootstrap';
import Modal from '../../components/Modal';
import TextEditor from '../../components/TextEditor';
import Upload... | JavaScript | 0 | @@ -2022,16 +2022,22 @@
t.schema
+ %7C%7C ''
,%0A
|
8dd579c7f4aaaf74f6aeebb563aaf35aa3bf549d | Fix lint errors | scratchpad.js | scratchpad.js | // Plugins are just a class
class IssuesPlugin {
// plugins can be initialized with state that is available in any of the methods
constructor(state) {
this.state = state;
}
// All defined methods become available in the api.
// each method takes a `context` argument that has access to the context it was ... | JavaScript | 0.000396 | @@ -440,33 +440,23 @@
Promise(
-(
resolve
-, reject)
=%3E %7B%0A
@@ -502,17 +502,17 @@
log(
-%22
+'
comment:
%22, m
@@ -507,17 +507,17 @@
comment:
-%22
+'
, messag
@@ -644,25 +644,15 @@
ise(
-(
resolve
-, reject)
=%3E
@@ -702,15 +702,15 @@
log(
-%22
+'
close
-%22
+'
, %7Bc
@@ -774,23 +774,16 @@
%0A ... |
f263c860bddad2b4fdf641a32f2ccb301d35df98 | Convert examples/image_decoders/jpeg_viewer.js to await/async #14123 | examples/image_decoders/jpeg_viewer.js | examples/image_decoders/jpeg_viewer.js | /* Copyright 2018 Mozilla Foundation
*
* 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... | JavaScript | 0.999999 | @@ -897,16 +897,39 @@
%222d%22);%0A%0A
+(async function () %7B%0A
// Load
@@ -980,731 +980,200 @@
ay.%0A
+
//%0A
-let nonBinaryRequest = false;%0Aconst request = new XMLHttpRequest();%0Arequest.open(%22GET%22, JPEG_IMAGE, false);%0Atry %7B%0A request.responseType = %22arraybuffer%22;%0A nonBinaryRequest = re... |
50c35b4a8faf0ed7b708140bfb6943deabf442cc | Add a legacy onChange to select-checkbox | src/components/input/select-checkbox/index.js | src/components/input/select-checkbox/index.js | import React, { Component, PropTypes } from 'react';
import Checkbox from '../checkbox';
import Translation from '../../../behaviours/translation';
import { pull } from 'lodash/array';
/**
* SelectCheckbox component.
*/
@Translation
class SelectCheckbox extends Component {
/**
* Display name.
*/
s... | JavaScript | 0 | @@ -580,16 +580,56 @@
pes.func
+,%0A legacyOnChange: PropTypes.bool
%0A %7D;%0A
@@ -915,16 +915,47 @@
ndefined
+,%0A legacyOnChange: false
%0A %7D;%0A
@@ -1867,24 +1867,151 @@
onChange) %7B%0A
+ if (this.props.legacyOnChange) %7B%0A this.props.onChange(%7B key, newStat... |
20781d9b0617dea0d8a25b1669f15811e18ec689 | Use [].reduce instead of [].forEach :D | src/js/app/prototype_extensions.js | src/js/app/prototype_extensions.js | Array.prototype.sortBy = function(key){
var get = Ember.get;
return this.sort(function(a, b){
return get(a, key) > get(b, key);
});
};
Array.prototype.sum = function(){
var total = 0;
this.forEach(function(val){
total += val;
});
return total;
};
Array.prototype.toInts = function(){
return th... | JavaScript | 0.000309 | @@ -180,37 +180,26 @@
%7B%0A
-var total = 0;%0A this.forEach
+return this.reduce
(fun
@@ -208,52 +208,37 @@
ion(
-val
+a, b
)%7B%0A
-total += val;%0A %7D);%0A return total
+return a + b;%0A %7D)
;%0A%7D;
|
6ca8193ff31b98d4a8b6b2657a3c13a14c6e753c | Update on keyup and change | js/main.js | js/main.js | $(function() {
"use strict";
var networks = {
'facebook' : {
js : _.template( $('#tpl-fb-js').text() ), // TODO: create this template
html : _.template( $('#tpl-fb-html').text() )
},
'twitter' : {
js : _.template( $('#tpl-twitter-js').text() ),
html : _.template( $('#tpl-twitter-html').text() )
},... | JavaScript | 0 | @@ -1562,16 +1562,22 @@
a').on('
+keyup
change',
|
e455eb70c4cf784b3b4e1b51aa5c5d490db861d2 | Update main.js | js/main.js | js/main.js | $(document).ready(function(event){
$('#submit').click(getData);
$('#inputText').keyup(function(e){
if( e.which == 13 ) {
getData();
}
});
});
function getData(){
$.getJSON('https://api.twitch.tv/kraken/channels/' + $('#inputText').val() + '?client_id=ba5m54krq9n07wh8ra7ee5lb53vxaag'... | JavaScript | 0.000001 | @@ -579,16 +579,47 @@
status;%0A
+ var ID = data._id;%0A
@@ -1641,32 +1641,116 @@
+ sub + '%3C/b%3E'+%0A
+ '%3Cbr /%3E%3Cb%3E%3Cspan class=%22label label-danger%22%3EID:' + ID + '%3C/b%3E'+%0A
|
52b6220d32524047cd7da8c26f2e7aa9fcdd6353 | clean up orders controller | src/components/orders-v2/orders-controller.js | src/components/orders-v2/orders-controller.js | /* beautify preserve:start */
import {createSelector} from 'reselect';
import * as R from 'ramda';
import {ORDERING, ORDERED} from '../../constants';
import tableActions from '../../actions/table-actions';
/* beautify preserve:end */
let orderMap = (menu, tables) => {
return R.map(table => {
return {
tabl... | JavaScript | 0 | @@ -714,16 +714,18 @@
s);%0A%7D;%0A%0A
+//
let menu
@@ -756,16 +756,16 @@
e.menu;%0A
-
let pend
@@ -919,17 +919,55 @@
ables);%0A
+// bring-reselect into this or not?%0A/*
%0A
-
let orde
@@ -1314,16 +1314,18 @@
ted%0A%7D));
+*/
%0A%0Aexport
@@ -1564,29 +1564,136 @@
urn
-ordersSelector(state)
+%7B%0A pend... |
fc5b30eaf298252191e0026538bd4087a13764cd | Add quotes | lib/node_modules/@stdlib/error/tools/msg2id/test/test.cli.js | lib/node_modules/@stdlib/error/tools/msg2id/test/test.cli.js | /**
* @license Apache-2.0
*
* Copyright (c) 2022 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0 | @@ -3636,16 +3636,18 @@
path,%0A%09%09
+'%5C
'invalid
@@ -3698,16 +3698,18 @@
n: %60%25s%60.
+%5C'
'%0A%09%5D;%0A%0A%09
|
4cf41109e84dbb265fd6778b7e62dafc9d11f206 | Fix missing default values with autocomplete | src/components/semantic-ui/ui-autocomplete.js | src/components/semantic-ui/ui-autocomplete.js | import { inject, bindable, bindingMode } from 'aurelia-framework';
import { Config } from 'aurelia-api';
@inject(Element, Config)
export class UiAutocomplete {
@bindable({defaultBindingMode: bindingMode.twoWay}) value;
@bindable from;
@bindable placeholder;
@bindable searchParams = {};
@bindable di... | JavaScript | 0.000069 | @@ -961,24 +961,168 @@
%7D%0A %7D%0A%0A
+ defaultTextChanged(value) %7B%0A if (this.dropdown) %7B%0A this.dropdown.dropdown('set text', this.defaultText);%0A %7D%0A %7D%0A%0A
attached
|
8d9b78ddd50c02efa324f01402091e35da06d8e9 | Provide an initialized array | lib/node_modules/@stdlib/math/base/special/frexp/lib/main.js | lib/node_modules/@stdlib/math/base/special/frexp/lib/main.js | 'use strict';
// MODULES //
var fcn = require( './frexp.js' );
// MAIN //
/**
* Splits a double-precision floating-point number into a normalized fraction and an integer power of two.
*
* @param {(Array|TypedArray|Object)} [out] - output array
* @param {number} x - input value
* @returns {(Array|TypedArray|Object)... | JavaScript | 0.999517 | @@ -1037,22 +1037,18 @@
cn(
-new Array( 2 )
+%5B 0.0, 0 %5D
, ou
|
9af31a2605052e634bd533f82cfc8e667a11a99c | Remove "gummy-table" class dependency | src/gummy.js | src/gummy.js | function Gummy($wrap, options){
if(!$wrap) return;
this.defaults = {
gummyColumn: false
}
this.opts = $.extend(this.defaults, options);
this.$wrap = $wrap;
this.$table = $wrap.find('.gummy-table');
this.$thead = this.$table.find('thead');
this.$tbody = this.$table.find('tbody');
this.$lastHeade... | JavaScript | 0.000018 | @@ -198,15 +198,8 @@
nd('
-.gummy-
tabl
|
abf2e258ce0d5b6b1a658491dca66688ca16e7e6 | Update controller1.js | controllers/controller1.js | controllers/controller1.js |
"use strict";
angular.module('myapp')
.controller("WeatherController", function($scope, $http){
$scope.loading = true;
if (navigator.geolocation) navigator.geolocation.getCurrentPosition(onPositionUpdate);
function onPositionUpdate(position) {
var lati = position.coords.latitude;
var lo... | JavaScript | 0.000001 | @@ -356,10 +356,10 @@
-%5C%5C
+/*
var
@@ -469,24 +469,26 @@
i + '.json';
+*/
%0A var u
|
bd3d87b4523e4d3d8cd75f47201dfb097960d8c7 | Integrate framework image getter | src/js/components/ServicesTable.js | src/js/components/ServicesTable.js | import {Link} from 'react-router';
var React = require('react');
import {Tooltip} from 'reactjs-components';
import Cluster from '../utils/Cluster';
var EventTypes = require('../constants/EventTypes');
var HealthLabels = require('../constants/HealthLabels');
var HealthTypesDescription = require('../constants/HealthTyp... | JavaScript | 0.000001 | @@ -192,24 +192,70 @@
entTypes');%0A
+import Framework from '../structs/Framework';%0A
var HealthLa
@@ -1863,24 +1863,28 @@
let
-i
+serviceI
mage
-Tag
= null;
@@ -1893,92 +1893,62 @@
-// TODO (poltergeist, orlandohohmeier): get images from service structs%0A i
+if (service instanceof Framework) %7B%... |
37ac5691aa424a0a99c1defd2315c3bba57a6cc2 | update ajax request uri | js/main.js | js/main.js | $('document').ready(function(){
$('.config-btn').click(function()
{
if (!$(this).hasClass("open"))
{
$(this).css("right", "200px");
$('.config-box').css("right", "0");
$(this).addClass("open", {duration:1000});
} else {
$(this).css("right", "0");
$('.config-box').css("right", "-20... | JavaScript | 0 | @@ -379,16 +379,17 @@
%0A%09%7D);%09%0A%0A
+%0A
%09//faz u
@@ -475,37 +475,29 @@
p://
-localhost/tigre/frontend/data
+107.170.175.95/api/v1
/are
|
e53aa0a02abdb9739a064a9722c8ca27aec0f2b3 | Add comments and remove extra stuff | js/main.js | js/main.js | 'use strict';
var CARD = {
audio: {},
// clipLength: 30,
paused: true,
player: {},
playerElement: '',
// timecode: 0,
// timer: 0,
init: function() {
// this.timecode = 0;
// If we can't autoplay, we're probably on a mobile
// device. Initialize the fallback vi... | JavaScript | 0 | @@ -40,31 +40,8 @@
%7B%7D,%0A
- // clipLength: 30,%0A
@@ -97,99 +97,103 @@
'',%0A
+%0A
/
-/ timecode: 0,%0A // timer: 0,%0A%0A init: function() %7B%0A // this.timecode = 0;%0A
+**%0A * Initialize function%0A * @return %7Bobject%7D This%0A */%0A init: function() %7B
%0A
@@... |
556d2bfd3f059cfc154bcf78e0dc94c4164b75b3 | add some methods for debugNativeService | src/js/salamaDebugNativeService.js | src/js/salamaDebugNativeService.js | /**
The MIT License (MIT)
Created by XingGu Liu
Copyright (c) 2012 Salama Soft
http://www.salama.com.cn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without lim... | JavaScript | 0 | @@ -3415,32 +3415,191 @@
0%5D, params%5B1%5D);%0A
+%09 %09%09%7D else if(method == %22presentPage%22) %7B%0A%09 %09%09%09window.location = params%5B0%5D;%0A%09 %09%09%7D else if(method == %22pushPage%22) %7B%0A%09 %09%09%09window.location = params%5B0%5D;%0A
%09 %09%09%7D else if
|
3262f96884f3512f50bfc77d9bb300c627d15c95 | Fix validation bugs in main.js | js/main.js | js/main.js | // jQuery to collapse the navbar on scroll
function collapseNavbar() {
if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
}
$(window).scroll(collapseNavbar);
$(document).ready(collapse... | JavaScript | 0.00001 | @@ -1404,103 +1404,8 @@
);%0A%0A
-$(function () %7B $(%22input,select,textarea%22).not(%22%5Btype=submit%5D%22).jqBootstrapValidation(); %7D );%0A%0A
func
|
7b7625b1fef4b75daad83700f68b41820a6af7b4 | Update ToastAndroidExample.android.js | Examples/UIExplorer/ToastAndroidExample.android.js | Examples/UIExplorer/ToastAndroidExample.android.js | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... | JavaScript | 0 | @@ -754,16 +754,17 @@
Feedback
+,
%0A%7D = Rea
|
b3ff40c2763d6547dbcb67fa5884eb4464d70191 | Update messagecontrol.js | control/messagecontrol.js | control/messagecontrol.js |
'use strict';
var watson = require( 'watson-developer-cloud' ); // watson sdk
var CONVERSATION_SERVICE = 'conversation';
var CONVERSATION_ACCESS_ERROR = 'Sorry, you have no authority to use this conversation.';
function getConversationCredential() {
if (process.env.VCAP_SERVICES) {
var services = JSON.... | JavaScript | 0.000001 | @@ -3618,24 +3618,122 @@
eq.body ) %7B%0A
+ console.log(%22*********************access Key:%22 + process.env.conversation_access_key);
%0A
@@ -4509,8 +4509,9 @@
Control;
+%0A
|
364b0cfda900b7a6f72bdf912cd2df3b51ec91bb | Update main.js | js/main.js | js/main.js | requirejs.config({
baseUrl: 'js/lib',
paths: {
'pako': 'pako.min',
'jquery':'jquery.min',
'text':'text',
'validate':'validate.min'
}
,
config: {
text: {
useXhr: function (url, protocol, hostname, port){
// allow cross-domain requests
return true;
}
}
}
});
require([
'pako',
'... | JavaScript | 0.000001 | @@ -1920,16 +1920,21 @@
;%0A%09%09%09%09%7D%0A
+%09%09%09%7D%0A
%09%09%7D%0A%09%09el
|
e40aa3b3d74af687dcc3c947bc3def6fcd08fc91 | tidy up, prod server | controllers/deployment.js | controllers/deployment.js | var Deployment = require("../models/deployment");
var DeploymentRole = require("../models/deployment_role");
var Device = require("../models/device");
var Role = require("../models/role");
var Location = require('../models/location');
var sockets = require("../sockets");
exports.deploymentList = function(req, res, nex... | JavaScript | 0 | @@ -2410,16 +2410,43 @@
.body))%0A
+ console.log(req.body);%0A
var
|
93bd70dc2a90e6230d549ac31b99d5ef64bdcf71 | Remove unused call | lib/directory-colorfy.js | lib/directory-colorfy.js | /*global module:true*/
/*global __dirname:true*/
/*global require:true*/
(function(){
"use strict";
var path = require( 'path' );
var fs = require( 'fs' );
var RSVP = require( 'rsvp' );
var Colorfy = require( path.join( __dirname, 'colorfy' ) );
var ColorfyFromOptions = require( path.join( __dirname, 'colorfy-... | JavaScript | 0.000001 | @@ -336,52 +336,8 @@
);%0A
-%09var workerFarm = require( 'worker-farm' );%0A
%09var
|
bda38ff4a9718162b8694a389181f67bc6b4e3f7 | Support condition where 'func' is not defined | noBind.js | noBind.js | (function(angular, $) {
var module = angular.module('net.enzey.nobind', []);
var ctrlBind = function($parse) {
return function($scope) {
var resolveValueWithoutWatching = function(varExpression, func) {
// varExpression.exp is passed as the 'old' value
// so that angular can remove the expression tex... | JavaScript | 0 | @@ -10,19 +10,16 @@
(angular
-, $
) %7B%0A%0A%09va
@@ -399,16 +399,108 @@
class.%0A
+%09%09%09%09if (!func && typeof varExpression === 'function') %7B%0A%09%09%09%09%09varExpression();%0A%09%09%09%09%7D else %7B%0A%09
%09%09%09%09func
@@ -549,16 +549,22 @@
n.exp);%0A
+%09%09%09%09%7D%0A
%09%09%09%7D;%0A%09%09
@@... |
e00c00d5c1f97ce1d01a17a7fa6eee37821e5eb3 | Remove warnigns | build/rollup.config.js | build/rollup.config.js | // Some parts brought from https://github.com/vuejs/vue/blob/dev/build/config.js
const { resolve } = require('path')
const rollupBabel = require('rollup-plugin-babel')
const rollupAlias = require('rollup-plugin-alias')
const rollupCommonJS = require('rollup-plugin-commonjs')
const rollupReplace = require('rollup-plugin... | JavaScript | 0.000001 | @@ -1451,24 +1451,25 @@
, 'core.js')
+,
%0A %7D%0A%7D%0A%0A// -
@@ -1684,16 +1684,90 @@
'module'
+, 'vue-server-renderer/server-plugin', 'vue-server-renderer/client-plugin'
%5D.concat
|
5655f604f62fe5c2617d81a640f010dc85afb490 | change port | controllers/web.server.js | controllers/web.server.js | import db from '../config/db';
import * as calcData from './calc.data';
let express = require('express'),
webApp = express(),
path = require('path');
let today = new Date(),
startDay = (new Date(today.getFullYear(), today.getMonth(), today.getDate())).getTime() / 1000;
let publFolder = path.joi... | JavaScript | 0.000001 | @@ -406,9 +406,9 @@
ten(
-4
+5
000)
|
af9fa6b177c3a8639c08cabe9506fb0b21367312 | Add className to AdvancedOptions | src/AdvancedOptions.js | src/AdvancedOptions.js | import React, { useState } from "react";
import { Icon } from "@blueprintjs/core";
export default function AdvancedOptions({
children,
content,
label,
isOpenByDefault
}) {
const [isOpen, setOpen] = useState(isOpenByDefault);
if (!(content || children)) {
return null;
}
return (
<div style={{ ma... | JavaScript | 0.000002 | @@ -437,24 +437,71 @@
pointer%22 %7D%7D%0A
+ className=%22tg-toggle-advanced-options%22%0A
%3E%0A
|
0f33521d57b9b4ef735fcf54ff19598a48e19568 | Switch to last item when scroll end | scroll-spy.js | scroll-spy.js | (function (angular) {
'use strict';
angular.module('scroll-spy', [])
.directive('scrollSpy', scrollSpyDirective)
.directive('scrollSpyArea', scrollSpyAreaDirective)
.directive('spyItem', spyItemDirective)
.directive('spyGroup', spyGroupDirective);
scrollSpyController.$inject = ['$element', '$timeout', '$do... | JavaScript | 0 | @@ -2861,16 +2861,17 @@
ollTop %3E
+=
maxScro
@@ -3154,144 +3154,8 @@
%09%7D%0A%0A
-%09%09%09// var activeTargetIndex = targets.indexOf(activeTarget);%0A%09%09%09// if (scrollTopOnScreen(scrollTop, activeTargetIndex))%0A%09%09%09// %09return;%0A%0A
%09%09%09f
|
358e258a70c7e10e74cfd88eacc6be8751936cbc | remove log | js/main.js | js/main.js | requirejs.config({
baseUrl: 'bower_components',
paths: {
// external code
d3: 'd3/d3.min',
crossfilter: 'crossfilter/crossfilter.min',
jquery: 'jquery/dist/jquery.min',
underscore: 'underscore/underscore-min',
lodash: 'lodash/lodash.min',
nunjucks: 'nunjucks/brow... | JavaScript | 0.000001 | @@ -1250,98 +1250,8 @@
14);
-%0A console.log(%22maxDate%22, maxDate);%0A console.log(%22model.maxDate()%22, model.maxDate());
%0A%0A
|
b1e668a85cb594ac558f2f562d3db408d96b9355 | Optimize performance | js/main.js | js/main.js | var flag = 0;
function terminal(e, input) {
var code = (e.keyCode ? e.keyCode : e.which);
if (code == 13) {
var terminalDiv = $('.terminal');
var inputVal = $('.terminal-input').val();
$('.console').last().remove();
if(flag == 0) {
terminalDiv.append('~ $ashish >>... | JavaScript | 0.000117 | @@ -2089,27 +2089,46 @@
%0A%0A$(
-%22#cover%22).delay(800
+window).load(function()%7B%0A $('#cover'
).fa
@@ -2137,13 +2137,17 @@
Out(
-5
+3
00);
+%0A%7D);
%0A%0A$(
|
f7c20e221f2958a47aa47afccac46a43885282c6 | Set cwd | 2019/index.js | 2019/index.js | "use strict";
const fs = require( 'fs' );
const day = parseInt( process.argv[ 2 ], 10 );
if( isNaN( day ) )
{
console.error( 'Usage: node index.js <day> [input]' );
console.error( 'If input is not specified, reads from data/day%.txt' );
process.exit( 1 );
}
console.log( `Day ${day}` );
let input = process.argv[ ... | JavaScript | 0.000009 | @@ -8,16 +8,45 @@
rict%22;%0A%0A
+process.chdir( __dirname );%0A%0A
const fs
|
4407d93d1887567198df0975967cfbab36edf455 | Add slightly more informative message when you click on a neighborhood | js/main.js | js/main.js | $(function() {
// Hide the welcome screen if you've seen it
if (window.location.hash == '') {
window.location.hash = "alreadyseen";
} else {
$('#welcome-screen').hide();
}
// Hide the welcome screen if you click the button
$('#welcome-screen button').click(function () {
$('... | JavaScript | 0 | @@ -4101,20 +4101,35 @@
var
-name
+guessedNeighborhood
= featu
@@ -4173,20 +4173,35 @@
if (
-name
+guessedNeighborhood
== corr
@@ -4266,16 +4266,43 @@
it!
-G
+This is %22 + correctNeighborh
ood
-job
++ %22
.%22)%0A
@@ -4415,17 +4415,13 @@
rt(%22
-Sorry :(.
+Oops!
It
@@ -4461,20 +4461,35 @@
not ... |
9f32518658a1b443522cdca5e71ed93d5cbb9001 | Remove webkit conditional permission check | notify.js | notify.js | /*
* Copyright (c) 2013 Alex Gibson
* Released under MIT license
* http://alxgbsn.co.uk
*/
/*global clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, set... | JavaScript | 0 | @@ -2430,61 +2430,20 @@
===
-0 %7C%7C this.permission === 'granted') %7B //WebKit %7C%7C W3C
+'granted') %7B
%0A%09%09%09
|
4546e844f79585a6f13c605876519d62cb7c0d0d | Refactor and clean up | content_script.js | content_script.js | var fix_ad_url = function( name, url ) {
if (!url) url = location.href;
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( url );
return results == null ? null : results[1];
}
$(document)... | JavaScript | 0 | @@ -1,142 +1,91 @@
var
-fix_ad_url = function( name, url ) %7B%0A if (!url) url = location.href;%0A name = name.replace(/%5B%5C%5B%5D/,%22%5C%5C%5C%5B%22).replace(/%5B%5C%5D%5D/,%22%5C%5C%5C%5D%22);
+redirection_params = %5B'redir', 'u'%5D;%0A%0Avar replace_with_target_url = function(url) %7B
%0A
@@ -95,16 ... |
012136ac36bfdfc18b571a36a648a1b828d2408c | Add missing style prop | src/lib/DatePickerComponent.ios.js | src/lib/DatePickerComponent.ios.js | 'use strict';
import React from 'react';
let { View, StyleSheet, TextInput, Text, DatePickerIOS} = require('react-native');
import {Field} from './Field';
export class DatePickerComponent extends React.Component{
constructor(props){
super(props);
this.state = {
date: props.date? new Date(props.date)... | JavaScript | 0.000182 | @@ -3155,16 +3155,48 @@
ontainer
+, this.props.valueContainerStyle
%5D%7D%3E%0A
|
a0918827ebea366a37138cd1d4fdb390dab6116d | Emojis are converted to [X] and don't wreak havoc | cordova/www/js/transfer.js | cordova/www/js/transfer.js | const dataTransfer = {
isSending: function(config, callback){
window.plugins.simpleFile.external.list(config.sendFolder, function(files){
if(files && files.length > 0)
callback(true);
else
callback(false);
}, dataTransfer.handleError);
},
// Sends JSON Document to Hub
send: function(config, mess... | JavaScript | 0.999817 | @@ -325,145 +325,19 @@
%7B%0A%09%09
-window.plugins.simpleFile.external.write(%0A%09%09%09// File Path%0A%09%09%09config.sendFolder + dataTransfer.tempFilename(), %0A%09%09%09%0A%09%09%09// JSON Message%0A%09%09%09
+var data =
JSON
@@ -349,17 +349,16 @@
ngify(%7B%0A
-%09
%09%09%09// Se
@@ -397,17 +397,16 @@
tion%... |
87f42942eae799d4f59cac907a62e59e36d74a7a | Update comments in main.js. | js/main.js | js/main.js | // To build & run:
// zip -r app.nw index.html css js package.json; ./node-webkit.app/Contents/MacOS/node-webkit app.nw
var path = require('path');
var gui = require('nw.gui');
var Backbone = require('backbone');
Backbone.$ = require('littledom');
// Load a json config file from the project directory (where the app w... | JavaScript | 0 | @@ -1,123 +1,37 @@
//
-To build & run:%0A// zip -r app.nw index.html css js package.json; ./node-webkit.app/Contents/MacOS/node-webkit
+Main entrypoint for shamus
app
-.nw
%0A%0Ava
@@ -214,10 +214,17 @@
tory
+%0A// (ie.
-(
wher
@@ -258,162 +258,160 @@
:%0A//
- FIXME: tasks/watchers run from this code's root ... |
d64fd5f697d530fb537cab8f10beab33108806bf | remove duplicated output | src/validations/vulnerable-dependencies.js | src/validations/vulnerable-dependencies.js | 'use strict';
const pathJoin = require('path').join;
const audit = require('../utils/npm-audit');
const confirm = require('../utils/inquires').confirm;
const nodeInfos = require('../utils/get-node-infos').getNodeInfosSync();
const reporter = require('../reporters/current');
module.exports = {
option: 'vulnerableD... | JavaScript | 0.000018 | @@ -1346,10 +1346,17 @@
s =
-%5B%5D
+new Set()
;%0A
@@ -1540,12 +1540,11 @@
rrs.
-push
+add
(sum
@@ -1667,26 +1667,186 @@
-reject(errs.sort()
+const distinctAndSortedErrors = Array.from(%0A errs%0A ).sort();%0A%0A reject(d... |
08d548f3c1f308430c3e17f95c81790c5516ebbe | Update code | js/main.js | js/main.js | JavaScript | 0 | @@ -1 +1,575 @@
+$(function()%7B%0A%09%0A%09%0A%09$('#convert').on('click', function(e)%7B%0A%09%09%09%09%09%09%09%09%09 %0A%09%09//Prevent the page from reloading%0A%09%09e.preventDefault();%0A%09%09%0A%09%09// Get values from form fields%0A%09%09var hours = parseInt($('#hours').val(), 10);%0A%09%09var minutes = par... | |
3b83c683d2de2461ed56e037adc6a9b63ebb32aa | Fix test | tests/Document.test.js | tests/Document.test.js | const Document = require('../src/Document')
const test = require('tape')
test('Document can be constructed', t => {
const doc = new Document()
t.equal(typeof doc, 'object')
t.equal(typeof doc.load, 'function')
t.equal(typeof doc.dump, 'function')
t.end()
})
test('load html from markdown with converter.load... | JavaScript | 0.000004 | @@ -367,14 +367,8 @@
oad(
-'md',
'# m
@@ -375,16 +375,22 @@
arkdown'
+, 'md'
)%0A cons
|
01a3015721731ec25401e9d25b3d467663b370c3 | fix namespacing | google-reverse-geocode.js | google-reverse-geocode.js | reverseGeocode = {
data: { },
getActualLocation: function (url, callback) {
var self = this;
HTTP.call('GET', url, { timeout: 5000 }, function (err, result) {
if (err){
callback(err);
}
if (result.statusCode === 200) {
self.data = JSON.parse(result.content);
callback(self.data);
}
});
... | JavaScript | 0 | @@ -1186,18 +1186,17 @@
omp.long
-_n
+N
ame;%0A
|
f5174b131eba2b1f4535525aef796b9d2246df89 | fix entity set name | WebContent/view/Master.controller.js | WebContent/view/Master.controller.js | sap.ui.controller("sap.ui5.demo.view.Master", {
serviceEndPoint = "http://<host>:<port>/<service_end_point>",
onInit: function() {
var modelURL = serviceEndPoint+"/Airlines?$format=json";
var omodel = new sap.ui.model.json.JSONModel(sUrl);
this.getView().byId('masterList').setModel(omodel);
},
... | JavaScript | 0.001293 | @@ -67,48 +67,8 @@
= %22
-http://%3Chost%3E:%3Cport%3E/%3Cservice_end_point%3E
%22,%0A
@@ -135,17 +135,19 @@
/Airline
-s
+Set
?$format
@@ -620,17 +620,19 @@
/Airline
-s
+Set
(%22 + car
|
8e2072129b0e65c8d963d9c3c0e68a6f5a9eae73 | fix DRAIN port type | components/Select.js | components/Select.js | var util = require('util');
var noflo = require('noflo');
var Port = noflo.Port;
var Component = noflo.AsyncComponent;
var Lemox = require('lemox');
var Select = function() {
var self = this;
self.inPorts = {
"in": new Port('string'),
node: new Port('string')
};
self.outPorts = {
out: ... | JavaScript | 0.000001 | @@ -391,14 +391,11 @@
t('b
-oole
an
+g
')%0A
|
b808f89f140936f3df5b04cf764db00c51b207e0 | add colors | components/colors.js | components/colors.js | 'use babel'
const background = 'red'
export default {
background,
}
| JavaScript | 0.000001 | @@ -16,57 +16,2053 @@
nst
-background = 'red'%0A%0Aexport default %7B%0A background
+appBackground = '#21252b'%0Aconst baseBackground = '#282c34'%0Aconst background = baseBackground%0Aconst text = '#9da5b4'%0Aconst textSubtle = 'rgba(157, 165, 180, 0.6)'%0Aconst textHighlight = '#d7dae0'%0Aconst textSelected = '#fff... |
b7abc6cbd01cab3f88aed00edc5ee8496bc66edc | Modify @props types | src/widgets/ReportSideBar/ReportSideBar.js | src/widgets/ReportSideBar/ReportSideBar.js | /* eslint-disable react/prop-types */
/* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2018
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View, FlatList, Text, StyleSheet } from 'react-native';
import { ReportSideBarItem } from './Repo... | JavaScript | 0 | @@ -648,17 +648,17 @@
p %7B
-function%7D
+Object%7D
@@ -708,33 +708,33 @@
%0A * @prop %7B
-Object%7D
+function%7D
onPressI
|
534913cd36ad9f5de9348af242f4ad823247942d | Upgrade dist file | eventkit-library.min.js | eventkit-library.min.js | "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor... | JavaScript | 0.000001 | @@ -5642,10 +5642,10 @@
%7D%5D,%22
-zm
+sb
-eve
|
f4ba7dc81760bc836970d4b8baa31e0c72f55258 | update mining script to take to work with 0.9.35 | js/mine.js | js/mine.js |
setInterval(function() {
var miner_var;
if (admin.miner === undefined) {
miner_var = miner;
}
else {
miner_var = admin.miner;
}
var minimalAmount = (web3.eth.getBalance(web3.eth.coinbase) >= 15000000000000000000);
var pendingTransactions = function() {
if (web3.eth.pendingTransactions === u... | JavaScript | 0 | @@ -313,32 +313,73 @@
ns === undefined
+ %7C%7C web3.eth.pendingTransactions === null
) %7B%0A return
@@ -577,32 +577,75 @@
e %7B%0A return
+ web3.eth.pendingTransactions.length %3E 0 %7C%7C
web3.eth.getBlo
|
35f01bb42e60bb694b6f7469fe11d8b7be8fa1a2 | Update rain.js | js/rain.js | js/rain.js | function Rain() {
this.x = Math.floor(Math.random() * (1024 - 0 + 1)) + 0; // this will get a number between 0 and 1024;
this.x -= 256; //this will put it in the range we want
this.y = Math.floor(Math.random() * (288 - 0 + 1)) + 0;
this.velocity = 5;
this.veleftright = -1;
};
Rain.prototype.draw = function... | JavaScript | 0.000001 | @@ -822,28 +822,27 @@
veleftright
-+
=
-5
+4
;%0A if(pla
@@ -966,13 +966,12 @@
ght
--
= -
-5
+6
;%0A
|
c03087980dda6a25c2a1816ccb731e64254ada53 | Update app.js | app/app.js | app/app.js | /*-------------------------------------------------------------------*/
/* */
/* Copyright IBM Corp. 2013 All Rights Reserved */
/* */
/*------------------------------... | JavaScript | 0 | @@ -1,3027 +1,98 @@
/*
--------------------------------------------------------------------*/%0A/* */%0A/* Copyright IBM Corp. 2013 All Rights Reserved */%0A/* */%0A/... |
f84008624822756355d0081f9d83757923766362 | clean up whitespace | analysis/reports/hourly/js/app.js | analysis/reports/hourly/js/app.js | (function (ReportFilters, Errors, HourlyCalendar, HourlyLine) {
var App = {
cfg: {
sdate: '#sdate',
edate: '#edate',
legend: '#legend',
welcome: '#welcome',
loading: '#loading',
errorTarget: '#error-... | JavaScript | 0.999999 | @@ -3483,25 +3483,24 @@
-
$('#calendar
|
4bafd1fc38875b2c75b7b560bf2e08052ade0c68 | add parallel | dash5.js | dash5.js | var util = require('util');
var _ = exports;
// util
_.format = util.format;
// callback handy
_.fmap = function(callback, iter) {
return function(err, result) {
callback(err, _.map(result, iter));
}
}
_.fapply = function(callback, fn) {
return function(err, result) {
callback(err, resul... | JavaScript | 0.998937 | @@ -336,24 +336,433 @@
);%0A %7D%0A%7D%0A%0A
+// ============ async%0A_.parallel = function (tasks, callback) %7B%0A var results = %5B%5D, count = tasks.length;%0A tasks.forEach(function(task, index) %7B%0A task(function(err, data) %7B%0A results%5Bindex%5D = data;%0A if(err) %7B%0A ... |
5a01a347271f4961ff79ee9c1349b5244567c161 | Add listable composer to popuraFactory | src/index.js | src/index.js | import authenticable from './composers/authenticable';
import searchable from './composers/searchable';
const debug = require('debug')('popura:factory');
/**
* Factory function that composes an instance of popura
*
* @param {string} username = ''
* @param {string} password = ''
* @return {object} - popura inst... | JavaScript | 0 | @@ -96,16 +96,61 @@
chable';
+%0Aimport listable from './composers/listable';
%0A%0Aconst
@@ -657,15 +657,34 @@
e(state)
+,%0A%09%09listable(state)
%0A%09);%0A%7D%0A
|
901f5fb671501888913f51301afed3b035a4db8d | Add next key to Action::toJSON | src/action.js | src/action.js | /**
* @fileoverview Actions encapsulate the process of resolving an
* action creator. Create an action using `Microcosm::push`:
*/
import Emitter from './emitter'
import tag from './tag'
import { isFunction } from './utils'
let uid = 0
class Action extends Emitter {
/**
* @param {Function|string} command
... | JavaScript | 0.000001 | @@ -6231,24 +6231,63 @@
his.children
+,%0A next: this.next && this.next.id
%0A %7D%0A %7D%0A%7D
|
4036efce21b605e62694d5f38c04e81244afdf67 | Add more detailed errors | lib/handleJoinRequest.js | lib/handleJoinRequest.js | // Dependencies
var parser = require('whacko');
// Includes
var http = require('./util/http.js').func;
var promise = require('./util/promise.js');
var getGeneralToken = require('./util/getGeneralToken.js').func;
// Args
exports.required = ['group', 'username', 'accept'];
exports.optional = ['jar'];
// Define
functio... | JavaScript | 0 | @@ -512,70 +512,206 @@
jar
-%0A %7D%0A %7D;%0A http(httpOpt)%0A .then(function (body) %7B%0A
+,%0A followRedirect: false,%0A resolveWithFullResponse: true%0A %7D%0A %7D;%0A http(httpOpt)%0A .then(function (res) %7B%0A if (res.statusCode === 200) %7B%0A var body = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.