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 |
|---|---|---|---|---|---|---|---|
703d698df4f241e9ed8b53473f15189a998a4319 | remove reverse from morph example shape | examples/morph/client.js | examples/morph/client.js | import { shape, render, play } from './tmp';
const from = {
type: 'circle',
cx: 25,
cy: 25,
r: 25,
fill: '#E54',
};
const to = {
type: 'path',
d: 'M75,75l10-5l15,20v10h-10l-5-5l-10,5z',
fill: '#0FA',
moveIndex: 1,
reverse: true,
};
const animation = shape( from, to );
render({ selector: '.svg' }... | JavaScript | 0.000003 | @@ -231,25 +231,8 @@
1,%0A
- reverse: true,%0A
%7D;%0A%0A
|
05ea041839e1b10b77754f89c2c3225f19a8a542 | add bracket in section | lib/iniReader.js | lib/iniReader.js | (function() {
"use strict";
function parseLines(lines, options) {
options = {
caseInsensitive: true,
section: {
allowDuplicate: false
},
key: {
allowDuplicate: false,
replcaeDuplicate: false
},
value: {
hasDelimiter: true,
needToSort:... | JavaScript | 0.000008 | @@ -1134,38 +1134,8 @@
im()
-.substring(1, line.length - 1)
;%0A
|
b67fec45a55b5b2e78d1c58a9ba9be123fba647a | Add pageInfoStrings | src/localization/pageInfoStrings.js | src/localization/pageInfoStrings.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import LocalizedStrings from 'react-native-localization';
export const pageInfoStrings = new LocalizedStrings({
gb: {
address: 'Address',
code: 'Code',
comment: 'Comment',
confirm_date: 'Confirm Date',
customer: 'Customer',
en... | JavaScript | 0 | @@ -60,16 +60,43 @@
19%0A */%0A%0A
+/**%0A * TODO: by_batch%0A */%0A%0A
import L
@@ -525,24 +525,50 @@
Their Ref',%0A
+ by_batch: 'By batch',%0A
%7D,%0A fr: %7B
@@ -924,16 +924,42 @@
rence',%0A
+ by_batch: 'By batch',%0A
%7D,%0A g
@@ -1318,16 +1318,42 @@
a Ref',%0A
+ by_batch: 'By batch',%0A
%7... |
b82d32506d6fbbea6d6901586ca260408f851c86 | update resume reporter location | src/location/LocationReporter.hy.js | src/location/LocationReporter.hy.js | import { Syncher } from 'service-framework/dist/Syncher';
import URI from 'urijs';
import position from './position';
import Search from '../utils/Search';
import IdentityManager from 'service-framework/dist/IdentityManager';
import { Discovery } from 'service-framework/dist/Discovery';
import { callbackify } from 'uti... | JavaScript | 0 | @@ -2502,36 +2502,41 @@
%7D
- else %7B%0A
+%0A %7D);%0A
@@ -2562,40 +2562,8 @@
e);%0A
- %7D%0A %7D);%0A
|
dc34a68af21dd77d8aa6eafed5ec886821921c5d | test fixes | lib/browser/lighthouse.js | lib/browser/lighthouse.js | /*
* Copyright (c) 2015, Groupon, Inc.
* 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 conditio... | JavaScript | 0.001366 | @@ -1606,18 +1606,16 @@
onst
- %7B
isEmpty
%7D =
@@ -1610,18 +1610,16 @@
isEmpty
- %7D
= requi
@@ -1628,16 +1628,24 @@
('lodash
+/isEmpty
');%0A%0Afun
@@ -5136,115 +5136,8 @@
) %7B%0A
- const assertScore = function aScore(res) %7B%0A assert.expect(parseLhResult(res).isSuccess(score));%0A %7D;%0A%0A
... |
d7ea301132d402cc0b288a0def226d370dffb2e7 | Update intercept.js | lib/intercept.js | lib/intercept.js | /**
* @module nock/intercepts
*/
var RequestOverrider = require('./request_overrider'),
mixin = require('./mixin'),
path = require('path'),
url = require('url'),
inherits = require('util').inherits,
EventEmitter = require('events').EventEmitter,
... | JavaScript | 0.000002 | @@ -3505,17 +3505,16 @@
ivate()
-n
%7B%0A // -
|
756b2b45b20df3e63f52c91600df3dec15102f8e | update file /api/v1/index.js | api/v1/index.js | api/v1/index.js | var router = new require('express').Router()
, bodyParser = require('body-parser')
, $fh = require('fh-mbaas-api')
, Cloud = require('./cloud')
, Hash = require('./hash')
, Sec = require('./sec')
, Service = require('./service')
, Db = require('./db')
, Cach... | JavaScript | 0.000002 | @@ -458,22 +458,16 @@
inc('inc
-rement
');%0A $f
@@ -486,14 +486,8 @@
'dec
-rement
');%0A
@@ -542,19 +542,17 @@
ing('tim
-ing
+e
', Date.
|
da3c16633f1c4d6e5ed53ac753704aad8a51e00e | make note of to do | BlazarUI/app/scripts/components/Helpers.js | BlazarUI/app/scripts/components/Helpers.js | import React from 'react';
import {some, uniq, flatten, filter, contains} from 'underscore';
import humanizeDuration from 'humanize-duration';
import moment from 'moment';
import BuildStates from '../constants/BuildStates.js';
import {LABELS, iconStatus} from './constants';
import Icon from './shared/Icon.jsx';
// 123... | JavaScript | 0 | @@ -3917,18 +3917,64 @@
%0A//
-Components
+To do: move these out as components in components/shared
%0Aexp
|
1c02d08b059f857cb66af81aba2f8a425fcaae86 | Remove commented-out test code | test/model/FeatureTest.js | test/model/FeatureTest.js | var promises = require('q');
var Watai = require('../helpers/subject'),
my = require('../helpers/driver').getDriverHolder(),
expectedOutputs = require('../helpers/testWidget').expectedOutputs,
WidgetTest;
/** Timeout value of the test's config.
*/
var GLOBAL_TIMEOUT = 500;
/** This test suite is redacted with [M... | JavaScript | 0 | @@ -3771,38 +3771,33 @@
dAction(),%0A%09%09%09%09%7B
-%0A%09%09%09%09%09
+
'TestWidget.outp
@@ -3828,37 +3828,33 @@
rlayedActionLink
-%0A%09%09%09%09
+
%7D%0A%09%09%09%5D).test().t
@@ -5450,365 +5450,8 @@
%09%7D);
-%0A%0A%09%09%09// %5B 'step:start', 'step:end', 'step:failure' %5D.forEach(function(type) %7B%0A%0... |
41abf95230732c81afc594ca9a962336e3145d9b | make it swing | examples/sequences.js | examples/sequences.js | var bap = require('../index');
function sequences () {
var lowPianoKit = bap.sample({
src: 'sounds/new/own_barricade_end.wav',
attack: 0.1,
release: 0.1,
pitch: -40,
pan: 25
}).slice(8);
var piano1 = bap.pattern({ tempo: 84, bars: 2 });
piano1.kit('A', lowPianoKit).channel(1).add(
['1... | JavaScript | 0.000004 | @@ -50,16 +50,41 @@
s () %7B%0A%0A
+ bap.clock.tempo = 84;%0A%0A
var lo
@@ -1551,17 +1551,17 @@
2.*.
-2
+3
5', 'X3'
%5D,%0A
@@ -1556,16 +1556,26 @@
5', 'X3'
+, null, 30
%5D,%0A %5B
|
4235ed6135500cf5e478a02f72bc28f66d6c5653 | Consolidate CORS domain RegExp | routes/api/index.js | routes/api/index.js | const fs = require('fs');
const path = require('path');
const express = require('express');
const request = require('superagent');
const async = require('async');
const cors = require('cors');
const router = express.Router();
const corsOptions = {
origin: [
/\.?dev\.com:3000$/,
/\.?literasee\.io$/,
/\.?... | JavaScript | 0.000001 | @@ -303,36 +303,16 @@
ee%5C.
+(
io
-$/,%0A /%5C.?literasee%5C.
+%7C
org
+)
$/%0A
|
fbe14a64857b810d2e6776f00d35fd48ca9f985b | set maximum timeout to 60 secs | src/main/js/my-app/src/constants.js | src/main/js/my-app/src/constants.js | export const BASE_URL = document.location.origin.match(/3000/) ? 'http://localhost:8181' : document.location.origin;
export const studentsAPI = `${BASE_URL}/api/students`;
export const studentClassesAPI = `${BASE_URL}/api/studentClasses/`;
export const registersAPI = `${BASE_URL}/api/registers/`;
export const paymentsA... | JavaScript | 0.000655 | @@ -1598,17 +1598,17 @@
rData =
-1
+6
0;%0A%0Aexpo
|
d7da3ad674900f900555cba49ae01fdca49600b7 | Use attachMediaStream() from adapter.js | src/content/getusermedia/resolution/js/main.js | src/content/getusermedia/resolution/js/main.js | /*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
'use strict';
var dimensions = document.querySelector('#dimensions');
var video = document.quer... | JavaScript | 0 | @@ -1218,47 +1218,33 @@
e%0A
-video.src = window.URL.createObjectURL(
+attachMediaStream(video,
stre
|
10eb8fc52fbf6ffe0282acbdb3dddfed27a6b0ae | handle keyup enter on autocomplete and prevent default | src/control/content/components/LocationForm.js | src/control/content/components/LocationForm.js | import Buildfire, { components } from 'buildfire';
import React from 'react';
class LocationForm extends React.Component {
constructor(props) {
super(props);
let model = {
title: '',
description: '',
address: null,
image: '',
categories: [],
carousel: []
};
this.st... | JavaScript | 0 | @@ -3275,16 +3275,138 @@
);%0A %7D%0A%0A
+ onAutoKeyUp(e) %7B%0A let keyCode = e.keyCode %7C%7C e.which;%0A if (keyCode === 13) %7B%0A e.preventDefault();%0A %7D%0A %7D%0A%0A
render
@@ -4596,32 +4596,81 @@
%3Cinput%0A
+ onKeyUp=%7B e =%3E this.onAutoKeyUp(e) %7D%0A
... |
e21ac48c3f1612421c9d722ee10ab9076d07682c | Use strict to prevent failing tests on node 4 | test/query-parser.test.js | test/query-parser.test.js | let test = require('tap').test
let parse = require('../lib/query-parser')
test('should extract CSS selector from query and keep it intact', t => {
let query = '.home li > a'
let result = parse(query)
t.strictSame(result.selector, query)
t.end()
})
test('should return null for `getter` if not present in the qu... | JavaScript | 0 | @@ -1,12 +1,26 @@
+'use strict'%0A%0A
let test = r
|
65200f5ef93356c3444614d61e2d5acf25e05579 | update api | routes/employees.js | routes/employees.js | var express = require('express');
var employees = express.Router();
var log = require('../lib/log');
var EmployeeObject = require('../models/employee-object').EmployeeObject;
var getEmployeeList = require('../lib/active-employee-list').getEmployeeList;
employees.get('/', function (req, res) {
res.send('need a resou... | JavaScript | 0 | @@ -1269,18 +1269,8 @@
err,
- response,
lis
|
db9917a834ed460030dd3c7952b9571ad9d11a25 | Fix and clean card | src/card.js | src/card.js | 'use strict'
// import modules
import init from './component/init'
import create from './element/create'
import insert from './component/insert'
import classify from './component/classify'
// import components
import Layout from './layout'
let defaults = {
prefix: 'material',
class: 'card'
}
class Card {
/**
... | JavaScript | 0 | @@ -289,16 +289,30 @@
: 'card'
+,%0A tag: 'div'
%0A%7D%0A%0Aclas
@@ -458,24 +458,93 @@
(options) %7B%0A
+ %0A%0A this.init(options)%0A this.build()%0A %7D%0A%0A init (options) %7B%0A
this.opt
@@ -596,59 +596,8 @@
%7B%7D)
-%0A%0A this.init()%0A this.build()%0A %7D%0A%0A init () %7B
%0A
@... |
34f15baaeb26659dfd2c883598b255c6de4381a2 | Fix test that fails on Windows due to path separator differences. Use ES2015 template literals. | test/resolve-path.spec.js | test/resolve-path.spec.js | import test from 'tape';
import path from 'path';
import url from 'url';
import resolvePath from '../src/resolve-path';
test('sanity check', assert => {
assert.equal(typeof resolvePath, 'function', 'can import resolvePath and it is a function');
assert.end();
});
test('jspm import', assert => {
System.config({
... | JavaScript | 0 | @@ -781,14 +781,12 @@
e =
-'/' +
+%60/$%7B
path
@@ -824,16 +824,18 @@
p).path)
+%7D%60
;%0A
@@ -857,18 +857,31 @@
lative,
+%60/$%7Bpath.join(
'
-/
jspm_pac
@@ -877,37 +877,43 @@
n('jspm_packages
-/npm/
+', 'npm', '
mock-package@1.0
@@ -906,33 +906,36 @@
ck-package@1.0.0
-/
+', '
mock-asset.scss'
@@ ... |
261f8c73e1b7ca47ab26d89137af04d2042ca4f1 | Clean up myaccount route. | routes/myaccount.js | routes/myaccount.js | var express = require('express');
var ensureLoggedIn = require('connect-ensure-login').ensureLoggedIn;
var db = require('../db');
var router = express.Router();
/* GET users listing. */
router.get('/', ensureLoggedIn(), function(req, res, next) {
db.get('SELECT rowid AS id, username, name FROM users WHERE rowid = ?... | JavaScript | 0 | @@ -196,16 +196,18 @@
get('/',
+%0A
ensureL
@@ -216,16 +216,18 @@
gedIn(),
+%0A
functio
@@ -246,16 +246,18 @@
next) %7B%0A
+
db.get
@@ -364,16 +364,18 @@
) %7B%0A
+
+
if (err)
@@ -398,24 +398,26 @@
rr); %7D%0A %0A
+
// TODO:
@@ -448,16 +448,18 @@
%0A
+
var user
@@ -469,16 +46... |
007f8f69e29cb1d56427d217d6abf0ef0b1da6ae | Fix result data handling | view/statistics-time-per-person.js | view/statistics-time-per-person.js | 'use strict';
var copy = require('es5-ext/object/copy')
, forEach = require('es5-ext/object/for-each')
, capitalize = require('es5-ext/string/#/capitalize')
, uncapitalize = require('es5-ext/string/#/uncapitalize')
, memoize = require('memoizee')
, ... | JavaScript | 0.000212 | @@ -2974,16 +2974,27 @@
tep%5Bkey%5D
+.processing
, _(%22Tot
@@ -5756,25 +5756,21 @@
rowData.
-processed
+count
),%0A%09%09%09%09%09
|
405db4f8fee5c15582985b4ac63738c216aa0308 | fix spacces | lib/mergeSort.js | lib/mergeSort.js | /*!
* sort-algorithms-js
* mergeSort
* Copyright(c) 2015 Eyas Ranjous <eyas@eyasranjous.info>
* MIT Licensed
*/
'use strict';
var getMiddle = require('./helpers/getMiddle');
module.exports = function(numbersArray) {
var merge = function(leftPartition, rightPartition) {
var mergePartitions = fu... | JavaScript | 0.000001 | @@ -272,25 +272,33 @@
artition) %7B%0A
+
%0A
-
@@ -377,32 +377,36 @@
+
if (leftPartitio
@@ -415,32 +415,36 @@
length === 0) %7B%0A
+
@@ -493,34 +493,40 @@
-%7D%0A
+ %7D%0A
@@ -521,24 +521,26 @@
+... |
2cb7798cfe7debc76c704b33e6dacb04901edc94 | fix typo | eln/Toc.js | eln/Toc.js | // this class is not really related to a sampleToc but can be used for any TOC
import API from 'src/util/api';
import Versioning from 'src/util/versioning';
let defaultOptions = {
group: 'all',
varName: 'sampleToc',
viewName: 'sample_toc',
filter: (entry) => !entry.value.hidden,
sort: (a, b) => {
if (a.... | JavaScript | 0.999991 | @@ -3564,17 +3564,16 @@
getGroup
-s
Membersh
|
c50e494d519363587e7cb51e5139a9de2eec8b56 | remove extra space | _server.js | _server.js | const express = require('express');
const app = express();
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
app.use(bodyParser.json());
const trailRouter = require(__dirname + '/routes/trail_routes');
const authRouter = require(__dirname + '/routes/auth_routes');
const hikeMatchRouter ... | JavaScript | 0.002319 | @@ -459,17 +459,16 @@
uter);%0A%0A
-%0A
module.e
|
15ac7503b2451369ac39b1693a8d2aedb5a89698 | enable QUnit.config.noglobals in tests | test/setup/environment.js | test/setup/environment.js | (function() {
var sync = Backbone.sync;
var ajax = Backbone.ajax;
var emulateHTTP = Backbone.emulateHTTP;
var emulateJSON = Backbone.emulateJSON;
var history = window.history;
var pushState = history.pushState;
var replaceState = history.replaceState;
QUnit.testStart(function() {
var env = QUnit.c... | JavaScript | 0 | @@ -261,16 +261,50 @@
State;%0A%0A
+ QUnit.config.noglobals = true;%0A%0A
QUnit.
|
e1ecd95dd5f429ef171719df43103c0629a78aa2 | Fix Feedback modal on Enter | lib/assets/javascripts/builder/editor/feedback/feedback-button-view.js | lib/assets/javascripts/builder/editor/feedback/feedback-button-view.js | var CoreView = require('backbone/core-view');
var ViewFactory = require('builder/components/view-factory');
var template = require('./feedback-button.tpl');
var TipsyTooltipView = require('builder/components/tipsy-tooltip-view');
var feedbackModalTemplate = require('./feedback-modal.tpl');
module.exports = CoreView.ex... | JavaScript | 0 | @@ -984,32 +984,112 @@
: function () %7B%0A
+ this.$el.blur();%0A this._createView();%0A %7D,%0A%0A _createView: function () %7B%0A
this._modals
@@ -1185,22 +1185,26 @@
%7B%0A
-return
+var view =
ViewFac
@@ -1304,24 +1304,233 @@
'%0A %7D);%0A
+ // Set focus to the iframe after 3 second... |
8b35a8e1d9d85d4001e7d7d1e758eb4ced04723c | remove only modifier | test/simul/player.test.js | test/simul/player.test.js | import test from "ava"
import { match, mock, stub, spy } from "sinon"
import { xor } from "ramda"
import { Chess } from "chess.js"
import { WHITE, BLACK, PAWN } from "~/share/constants/chess"
import Player from "~/simul/player"
test("noop functions", t => {
const player = new Player()
t.is(typeof player.game... | JavaScript | 0.000018 | @@ -2139,13 +2139,8 @@
test
-.only
(%22se
|
ce3670b36ec3a14c9f0e73bc53c58c4c9ddf7f0f | fix hit slop for bottom tab bar (#110) | packages/bottom-tabs/src/views/BottomTabBar.js | packages/bottom-tabs/src/views/BottomTabBar.js | /* @flow */
import React from 'react';
import {
TouchableWithoutFeedback,
StyleSheet,
View,
Platform,
} from 'react-native';
import { SafeAreaView } from '@react-navigation/native';
import Animated from 'react-native-reanimated';
import CrossFadeIcon from './CrossFadeIcon';
import withDimensions from '../util... | JavaScript | 0 | @@ -1690,17 +1690,17 @@
5, top:
-5
+0
, bottom
|
c8297bfb867668ffe2e46a356c1cd3e91db0cf60 | change boolean change | callctrl.js | callctrl.js | /**
* Call controller
*/
var callctrl = {
/**
* Once (call a function once)
* @example once.trigger(); once.reset();
* @param {function} callback The callback
* @config {boolean} bool Boolean to control actions
* @return {object} Returns a object to trigger callback
*/
once: function once(callback){
v... | JavaScript | 0.000045 | @@ -392,35 +392,35 @@
%09%09%09%09
-callback();%0A%09%09%09%09bool = true
+bool = true;%0A%09%09%09%09callback()
;%0A%09%09
@@ -1029,36 +1029,36 @@
%09%09%09%09
-callbackA();%0A%09%09%09%09bool = true
+bool = true;%0A%09%09%09%09callbackA()
;%0A%09%09
@@ -1112,37 +1112,37 @@
%09%09%09%09
-callbackB();%0A%09%09%09%... |
4d97f0686081aeb9e7ed55ce6ab36f708d11f206 | fix a setState in Searchbar/android | source/views/components/searchbar/index.android.js | source/views/components/searchbar/index.android.js | // @flow
import * as React from 'react'
import {StyleSheet} from 'react-native'
import * as c from '../colors'
import NativeSearchBar from 'react-native-searchbar'
import Icon from 'react-native-vector-icons/Ionicons'
const iconStyles = StyleSheet.create({
icon: {
color: c.gray,
},
})
const searchIcon = <Icon na... | JavaScript | 0.000443 | @@ -996,16 +996,23 @@
setState
+(() =%3E
(%7Binput:
@@ -1019,16 +1019,17 @@
input%7D)
+)
%0A%09%7D%0A%0A%09on
|
eddd1db3e9fcf68933cb2747ebf3e33c7c13a950 | fix config, ref: a73d0504 | site/bisheng.config.js | site/bisheng.config.js | const path = require('path');
const CSSSplitWebpackPlugin = require('css-split-webpack-plugin').default;
const isDev = process.env.NODE_ENV === 'development';
module.exports = {
port: 8001,
source: {
components: './components',
docs: './docs',
changelog: [
'CHANGELOG.zh-CN.md',
'CHANGELOG.... | JavaScript | 0 | @@ -1712,49 +1712,131 @@
+'
react
-: 'React',%0A 'react-dom'
+-router-dom': 'ReactRouterDOM',%0A %7D;%0A if (isDev) %7B%0A Object.assign(config.externals, %7B%0A react
: 'React
DOM'
@@ -1831,22 +1831,21 @@
: 'React
-DOM
',%0A
+
'r
@@ -1841,39 +1841,32 @@
%0A 'react-
-r... |
2527f4f6899b1ce2743f5d0efe58c65c895ab9f0 | Fix TextareaEditor extends jsdoc | src/extensions/text-cell/backgrid-text-cell.js | src/extensions/text-cell/backgrid-text-cell.js | /*
backgrid-text-cell
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong
Licensed under the MIT @license.
*/
(function (window, $, _, Backbone, Backgrid) {
/**
Renders a form with a text area and a save button in a modal dialog.
@class Backgrid.Extension.TextareaEditor
... | JavaScript | 0.000001 | @@ -337,13 +337,8 @@
rid.
-Input
Cell
|
4fbfd840e337df90041906964d0f7c8b8e93b0b6 | Allow overriding API url from ENV (#16689) | packages/gatsby-telemetry/src/event-storage.js | packages/gatsby-telemetry/src/event-storage.js | const os = require(`os`)
const path = require(`path`)
const Store = require(`./store`)
const fetch = require(`node-fetch`)
const Configstore = require(`configstore`)
const { ensureDirSync } = require(`fs-extra`)
const isTruthy = require(`./is-truthy`)
/* The events data collection is a spooled process that
* buffers... | JavaScript | 0 | @@ -552,16 +552,113 @@
orage %7B%0A
+ analyticsApi =%0A process.env.GATSBY_TELEMETRY_API %7C%7C %60https://analytics.gatsbyjs.com/events%60%0A
constr
@@ -2295,47 +2295,25 @@
tch(
-%60https://analytics.gatsbyjs.com/events%60
+this.analyticsApi
, %7B%0A
|
b2e3ce9cd502206c64ef617270ff37b529ada88a | add inlineStyle util test for unpopulated styles | packages/mwp-core/src/util/inlineStyle.test.js | packages/mwp-core/src/util/inlineStyle.test.js | import { getInlineStyleTags } from './inlineStyle.js';
// `simple-universal-style-loader` reades from `global`,
// so we must mock the data directly in `global.__styles__`
global.__styles__ = [
{
id: 666,
parts: [
{
css: '.foo { overflow: inherit; }',
media: ''
}
]
}
];
describe('getInlineStyleT... | JavaScript | 0 | @@ -166,33 +166,40 @@
yles__%60%0A
-global.__styles__
+const MOCK_GLOBAL_STYLES
= %5B%0A%09%7B%0A
@@ -366,16 +366,58 @@
() =%3E %7B%0A
+%09%09global.__styles__ = MOCK_GLOBAL_STYLES;%0A
%09%09const
@@ -486,16 +486,168 @@
shot();%0A
+%09%09global.__styles__ = null;%0A%09%7D);%0A%09it('does not throw when global st... |
e36d9413ea174eded30d32510d664664d8736ab4 | save Project rules | js/projectRulesViewModel.js | js/projectRulesViewModel.js | function pageViewModel(gvm) {
// projecttitle
gvm.projecttitle = ko.observable("");
gvm.projectId = $("#projectHeader").data('value');
gvm.lastIdFromDb = 2;
gvm.lastId = -1;
// Page specific i18n bindings
gvm.title = ko.computed(function (){i18n.setLocale(gvm.lang()); return gvm.app() + ' -... | JavaScript | 0 | @@ -2823,89 +2823,8 @@
)%0A%7B%0A
- console.log(rule.id());%0A var data = viewModel.projectRules.indexOf(rule);%0A
@@ -2824,32 +2824,32 @@
%0A%7B%0A $.ajax(%7B%0A
+
type: %22P
@@ -2931,38 +2931,12 @@
ta:
-viewModel.projectRules()%5Bdata%5D
+rule
.id(
|
106598d4c762de59c1ad0c77ab6b9cbf508037f7 | Add usage output to css-smash. | bin/css-smash.js | bin/css-smash.js | #!/usr/bin/env node
var css = require("../lib/css"),
nopt = require("nopt"),
knownOpts = {
},
shortHands = {
},
usage = "Usage: css-smash [options] <cssfile1> <cssfile2> <cssfile3> ...\n\nThis compresses each of the specified css files and outputs the compressed results. By default css-smash ou... | JavaScript | 0 | @@ -101,29 +101,77 @@
-%7D,%0A shortHands = %7B
+ %22usage%22 : Boolean%0A %7D,%0A shortHands = %7B%0A %22u%22 : %5B%22--usage%22%5D
%0A
@@ -463,16 +463,67 @@
S to.%5Cn%5C
+n%5Ct-u, --usage%5Cn%5Ct%5CtDisplays this usage message.%5Cn%5C
nExample
@@ -692,16 +692,22 @@
warn(why
+, %22%5Cn%22
... |
b05d61a93b8aa7fd4cb0374009071deeed59d49d | Revert "alias ID based on pr# rather than branch name" | src/core.js | src/core.js | /* eslint-disable camelcase */
const {exec} = require('child_process');
const path = require('path');
const url = require('url');
const crypto = require('crypto');
const {fs} = require('mz');
const git = require('simple-git/promise')();
const axios = require('axios');
const log = require('./logger');
const envs = requi... | JavaScript | 0 | @@ -3672,16 +3672,56 @@
sitory;%0A
+ const INVALID_URI_CHARACTERS = /%5C//g;%0A
const
@@ -3782,31 +3782,50 @@
')%7D-
-pr$%7Bpull_request.number
+$%7Bref.replace(INVALID_URI_CHARACTERS, '-')
%7D%60;%0A
|
bea39b3731cfc90530056cb6eb14961d1e48e4e9 | fix MultipleOptionsSearchBarCmp click option is missing the context | invenio_search_ui/assets/semantic-ui/js/invenio_search_ui/components/MultipleOptionsSearchBar.js | invenio_search_ui/assets/semantic-ui/js/invenio_search_ui/components/MultipleOptionsSearchBar.js | /*
* This file is part of Invenio.
* Copyright (C) 2022 CERN.
*
* Invenio is free software; you can redistribute it and/or modify it
* under the terms of the MIT License; see LICENSE file for more details.
*/
import React, { Component } from "react";
import { withState } from "react-searchkit";
import { Search, ... | JavaScript | 0 | @@ -2902,39 +2902,52 @@
nSearchClick = (
+e, %7B result %7D
) =%3E %7B%0A
-
const %7B quer
@@ -3014,33 +3014,24 @@
%0A const %7B
- options,
defaultOpti
@@ -3049,26 +3049,63 @@
.props;%0A
-le
+const %7B value: url %7D = result;%0A cons
t destinatio
@@ -3111,33 +3111,19 @@
onURL =
-options%5B0%5D?... |
95af8473a3d013806f9b7ec69cdf5285269c99af | Enable "no-useless-concat" rule, see https://github.com/phetsims/chipper/issues/814 | js/stringSubmissionQueue.js | js/stringSubmissionQueue.js | // Copyright 2015-2020, University of Colorado Boulder
/**
* An asynchronous (async.queue) queue with a concurrency of one (meaning that only one task is executed at a time)
* that is used to serialize submissions of strings for a translation.
*
* @author Aaron Davis
* @author John Blanco
*/
'use strict';
// m... | JavaScript | 0.000001 | @@ -7128,13 +7128,8 @@
y =
-' + '
%5C''
|
3848d28f3141a78fab22bf80883bd9396269a7af | clean ticker element doc | packages/elements/animation-ticker/index.js | packages/elements/animation-ticker/index.js | import Ticker from '/node_modules/@damienmortini/core/util/Ticker.js';
const PAUSED_BY_USER = 1;
const PAUSED_BY_INTERSECTION = 2;
const PAUSED_BY_VISIBILITY = 4;
const PAUSED_BY_BLUR = 8;
const PAUSED_BY_CONNECTION = 16;
/**
* @customElement
* Element triggering requestAnimationFrame on it's update method.
*/
exp... | JavaScript | 0.000004 | @@ -225,26 +225,8 @@
/**%0A
- * @customElement%0A
* E
@@ -294,25 +294,30 @@
.%0A *
-/%0Aexport default
+ @hideconstructor%0A */%0A
clas
@@ -1960,60 +1960,54 @@
*
-Indicating whether element should automa
+Automatically pause element at ini
ti
-c
al
-ly play
+ization.
%0A
@@ -2271,34 +2271,25 @@
Play el... |
d58f61c5b9316e082d711362b5e1c804fb603b3f | correct a mistake on moneypush.js | lib/moneypush.js | lib/moneypush.js | http = require('http');
URLSTREAM = 'stream.moneypush.com';
PORTSTREAM = 3002;
exports.GetStream = function(key, money, CallBack) {
var i, m, moneyURL, options, _i, _len;
moneyURL = '';
if (money === 'AllSymbol') {
moneyURL = 'AllSymbol';
} else {
i = 0;
for (_i = 0, _len = money.length; _i < _le... | JavaScript | 0.000312 | @@ -1,11 +1,16 @@
+var
http =
-
+%09%09
requ
@@ -34,17 +34,18 @@
STREAM =
-
+%09%09
'stream.
@@ -60,17 +60,16 @@
h.com';%0A
-%0A
PORTSTRE
@@ -72,17 +72,17 @@
STREAM =
-
+%09
3002;%0A%0Ae
@@ -174,16 +174,37 @@
, _len;%0A
+ var dataTmp, data;%0A
moneyU
@@ -743,16 +743,31 @@
utf8');%0A
+%09dataTmp = '';%... |
d0ef213eba6da39cf0786aef92eedfa675aa1e9e | Sort the maps country selector items | Dashboard/app/js/lib/controllers/maps-controllers.js | Dashboard/app/js/lib/controllers/maps-controllers.js | /*jshint browser:true, jquery:true */
/*global Ember, FLOW */
FLOW.placemarkControl = Ember.ArrayController.create({
content: null,
populate: function () {
this.set('content', FLOW.store.findAll(FLOW.Placemark));
}
});
FLOW.placemarkDetailControl = Ember.ArrayController.create({
content: null,
selec... | JavaScript | 0.999973 | @@ -857,16 +857,157 @@
= %5B%5D;%0A%0A
+ countries.sort(function (a, b) %7B%0A if (a.label %3C b.label) return -1;%0A if (a.label %3E b.label) return 1;%0A return 0;%0A %7D);%0A%0A
for
|
5a0122b03269b5cf6ffa11eee3a232e169c06734 | modify annyang | MMM-Hello-Mirror.js | MMM-Hello-Mirror.js | /* Magic Mirror
* Module: MMM-Hello-Mirror
*
* By Mathias Kaniut
* MIT Licensed
*/
Module.register("MMM-Hello-Mirror", {
// Default module config.
defaults: {
language: "de",
voice: "Deutsch Female",
wakeUp: "Hallo (magischer) Spiegel",
animationSpeed: 2000,
debug: t... | JavaScript | 0.000882 | @@ -546,16 +546,26 @@
+this.file(
'script/
@@ -575,36 +575,26 @@
yang.min.js'
+)
,
-
|
951d5661367f6719d200a6c7ef10b655b690bdca | Update test-main-leaflet.js | test/test-main-leaflet.js | test/test-main-leaflet.js | /*leaflet -- control*/
// import './leaflet/control/ChangeTileVersionSpec.js';
/*leaflet -- core*/
import './leaflet/core/NonEarthCRSSpec.js';
import './leaflet/core/TransformUtilSpec.js';
import './leaflet/core/Proj4LeafletSpec.js';
/*leaflet -- mapping*/
// import './leaflet/mapping/ImageMapLayerSpec.js';
import '.... | JavaScript | 0 | @@ -473,16 +473,19 @@
rlay*/%0A%0A
+//
import '
|
dc37c5be47190d6a1597d484e41d75dc750ac707 | Fix search query parsing | packages/telescope-search/lib/client/routes.js | packages/telescope-search/lib/client/routes.js | adminNav.push({
route: 'searchLogs',
label: 'Search Logs'
});
Meteor.startup(function () {
PostsSearchController = PostsListController.extend({
view: 'search',
onBeforeAction: function() {
if ("q" in this.params) {
Session.set("searchQuery", this.params.q);
}
this.next();
... | JavaScript | 0.898907 | @@ -227,16 +227,22 @@
s.params
+.query
) %7B%0A
@@ -284,16 +284,22 @@
.params.
+query.
q);%0A
|
5298ea88afe35ba9f7b51dbe0a307c5d22949b8f | Remove unnecessary formatting from 'stylish' | lib/formatters/stylish.js | lib/formatters/stylish.js |
/**
* @fileoverview Stylish reporter
* @author Matthew Harrison-Jones & ESLint (https://github.com/eslint/eslint/blob/113c81f49712e3d86db1b112c37ce3b900f6c25e/lib/formatters/stylish.js)
*/
'use strict'
var chalk = require('chalk'),
table = require('text-table')
//---------------------------------------------... | JavaScript | 0.000026 | @@ -2229,193 +2229,8 @@
)
-.split('%5Cn').map(function(el) %7B%0A return el.replace(/(%5Cd+)%5Cs+(%5Cd+)/, function(m, p1, p2) %7B%0A return chalk.dim(p1 + ':' + p2)%0A %7D)%0A %7D).join('%5Cn')
+ '
|
593d68c3664c01b730c97e1e979eb320f79daa9f | Update test-main-leaflet.js | test/test-main-leaflet.js | test/test-main-leaflet.js | /*leaflet -- control*/
// import './leaflet/control/ChangeTileVersionSpec.js';
/*leaflet -- core*/
import './leaflet/core/NonEarthCRSSpec.js';
import './leaflet/core/TransformUtilSpec.js';
import './leaflet/core/Proj4LeafletSpec.js';
/*leaflet -- mapping*/
import './leaflet/mapping/ImageMapLayerSpec.js';
import './le... | JavaScript | 0 | @@ -16,19 +16,16 @@
ntrol*/%0A
-//
import '
@@ -3306,35 +3306,32 @@
leViewSpec.js';%0A
-//
import './leafle
|
efcbb67a8fde010e00d587912ec6ddbac4b6a891 | remove unnecessary ui prop def | packages/veui-theme-one/components/AlertBox.js | packages/veui-theme-one/components/AlertBox.js | import '../icons/check-circle-o-large'
import '../icons/info-circle-o-large'
import '../icons/cross-circle-o-large'
import config from 'veui/managers/config'
config.defaults({
icons: {
success: 'check-circle-o-large',
info: 'info-circle-o-large',
error: 'cross-circle-o-large'
},
ui: {
type: {
... | JavaScript | 0.000007 | @@ -289,82 +289,8 @@
ge'%0A
- %7D,%0A ui: %7B%0A type: %7B%0A values: %5B'success', 'error', 'info'%5D%0A %7D%0A
%7D%0A
|
f556b0171063ea735844b8c32debbc1e3cbf8776 | Add logging when sending email | lib/npmalerts.js | lib/npmalerts.js | 'use strict';
var github = require('./github');
var npm = require('./npm');
var db = require('./db');
var email = require('./email');
var _ = require('underscore');
var cache = {};
var yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);
npm.getLatestPackages(yesterday, function(error, packages) {
... | JavaScript | 0.000001 | @@ -1,16 +1,23 @@
-'use strict'
+require('newrelic')
;%0A%0Av
@@ -1251,16 +1251,80 @@
Name%5D;%0A%0A
+ console.info('Sending email about ' + packageName);%0A
|
89885e17a5ad2421fa112289528f3215dc13790d | Set translation to use in templates | lib/generators/website.js | lib/generators/website.js | var util = require("util");
var path = require("path");
var Q = require("q");
var _ = require("lodash");
var nunjucks = require("nunjucks");
var AutoEscapeExtension = require("nunjucks-autoescape");
var FilterExtension = require("nunjucks-filter");
var I18nExtension = require("nunjucks-i18n");
var fs = require("../ut... | JavaScript | 0 | @@ -3452,16 +3452,48 @@
locales
+,%0A locale: %22language%22
%0A
@@ -6231,24 +6231,73 @@
description,
+%0A language: that.options.language,
%0A%0A%09
|
2ee58044b4d1fbab62b544bc57a352061656e7d1 | Add deprecation warning about moved import | packages/lingui-formats/src/createFormat.js | packages/lingui-formats/src/createFormat.js | // @flow
import React from 'react'
type FormatProps<V, FormatOptions> = {
value: V,
format?: FormatOptions,
i18n: {
language: string
}
}
function
createFormat<V, FormatOptions, P: FormatProps<V, FormatOptions>>
(formatFunction: (language: string, format?: FormatOptions) => (value: V) => string): Class<Rea... | JavaScript | 0 | @@ -344,16 +344,111 @@
oid%3E%3E %7B%0A
+ console.warn('DEPRECATED (removal in 1.x): createFormat was moved to lingui-react package')%0A%0A
return
|
2a6f8732547904ea09fa63df939239a31d34348c | Fix test to depend on drive | test/test.transporters.js | test/test.transporters.js | /**
* Copyright 2013 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | JavaScript | 0 | @@ -1616,23 +1616,19 @@
var d
-atastor
+riv
e = goog
@@ -1635,113 +1635,51 @@
le.d
-atastore(%7B version: 'v1beta2' %7D);%0A var req = datastore.datasets.beginTransaction(%7B datasetId: 'test' %7D
+rive('v2');%0A var req = drive.files.list(
);%0A
|
ec90e012a0f201d12a54045fc5a9860faad11701 | update file /lib/overrider.js | lib/overrider.js | lib/overrider.js | var express = require('express');
var bodyParser = require('body-parser');
var cors = require('cors');
function formRoute() {
var form = new express.Router();
form.use(cors());
form.use(bodyParser());
// GET REST endpoint - query params may or may not be populated
form.get('/mbaas/forms/:appId/:formId', fu... | JavaScript | 0.000001 | @@ -202,16 +202,159 @@
er());%0A%0A
+ // middleware specific to this router%0A form.use(function timeLog(req, res, next) %7B%0A console.log('Time: ', Date.now());%0A next();%0A %7D);%0A
%0A // GE
|
cd0551541d8db13b1653a2f78cf490f52199a96c | Add an alternative check to detect opus codec support | feature-detects/audio.js | feature-detects/audio.js | /*!
{
"name" : "HTML5 Audio Element",
"property": "audio",
"tags" : ["html5", "audio", "media"]
}
!*/
/* DOC
Detects the audio element
*/
define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
// This tests evaluates support of the audio element, as well as
// testing what types of conten... | JavaScript | 0 | @@ -1141,16 +1141,17 @@
orbis%22')
+
.replace
@@ -1230,16 +1230,17 @@
mp3%22')
+
.replace
@@ -1314,24 +1314,95 @@
ecs=%22opus%22')
+ %7C%7C%0A elem.canPlayType('audio/webm; codecs=%22opus%22')
.replace(/%5E
|
a0921dd12f2ed5f2f974ca056af9c47cb3238768 | rename window to global to work on server | packages/node_modules/cerebral/src/index.js | packages/node_modules/cerebral/src/index.js | import * as tags from './tags'
import ControllerClass from './Controller'
import { DEPRECATE } from './utils'
import ModuleClass from './Module'
import UniversalControllerClass from './UniversalController'
let tagsVar = tags
if (
process.env.NODE_ENV !== 'production' &&
typeof window.Proxy !== 'undefined'
) {
... | JavaScript | 0 | @@ -282,14 +282,14 @@
eof
-window
+global
.Pro
|
c7656a48c63126c98c857cbc2b76339271952e10 | Use proper fs-extra dep. | lib/helpers/file/index.js | lib/helpers/file/index.js | /**
* Module dependencies
*/
var fs = require('fs-extra'),
path = require('path'),
async = require('async'),
_ = require('lodash'),
switchback = require('node-switchback');
/**
* Generate a file using the specified string.
*
* @option {String} rootPath
* @option {String} contents - the string contents to ... | JavaScript | 0 | @@ -1227,16 +1227,19 @@
e) %7B%0A%09%09%09
+//
console.
|
531e4fb26ded54c17d84f7055c40f4ad7493a4b6 | implement helpers for enable/disable of buttons and input (#1452) | src/instanceMethods/enable-disable-elements.js | src/instanceMethods/enable-disable-elements.js | import privateProps from '../privateProps.js'
export function enableButtons () {
const domCache = privateProps.domCache.get(this)
domCache.confirmButton.disabled = false
domCache.cancelButton.disabled = false
}
export function disableButtons () {
const domCache = privateProps.domCache.get(this)
domCache.con... | JavaScript | 0.99909 | @@ -40,16 +40,503 @@
ps.js'%0A%0A
+function setButtonsDisabled (buttons, disabled) %7B%0A buttons.forEach(button =%3E %7B%0A button.disabled = disabled%0A %7D)%0A%7D%0A%0Afunction setInputDisabled (input, disabled) %7B%0A if (!input) %7B%0A return false%0A %7D%0A if (input.type === 'radio') %7B%0A const ... |
1e86cc181fe65d918222920df1363d9dab5773b4 | remove unnecessary import | app/src/root.js | app/src/root.js | import React, { Component } from 'react-native';
import { Provider } from 'react-redux';
import configureStore from './store/configure-store';
import App from './containers/app';
const store = configureStore();
const Root = () => (
<Provider store={store}>
<App />
</Provider>
);
export default Root;
| JavaScript | 0.000037 | @@ -9,23 +9,8 @@
eact
-, %7B Component %7D
fro
|
8ae017c5fb97db1d5eb16182f98768db42d4b618 | update files | lib/htmlparser/context.js | lib/htmlparser/context.js | /*!
* context
* Version: 0.0.1
* Date: 2016/7/29
* https://github.com/Nuintun/fengine
*
* Original Author: https://github.com/tmont/html-parser
*
* This is licensed under the MIT License (MIT).
* For details, see: https://github.com/Nuintun/fengine/blob/master/LICENSE
*/
'use strict';
// lib
var util = requ... | JavaScript | 0.000001 | @@ -2298,28 +2298,24 @@
e.exec(this.
-raw.
substring(th
@@ -2311,28 +2311,16 @@
ubstring
-(this.index)
);%0A
|
850342f0979be4367e79967d0a4be117c036844f | Update src/data.js to allow the storing of functions as data. This is consistent with the JQuery documentation. | src/data.js | src/data.js | // Zepto.js
// (c) 2010-2012 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
// The following code is heavily inspired by jQuery's $.fn.data()
;(function($) {
var data = {}, dataAttr = $.fn.data,
uuid = $.uuid = +new Date(),
exp = $.expando = 'Zepto' + uuid
function... | JavaScript | 0 | @@ -902,97 +902,15 @@
me,
-$.isFunction(value) ?%0A value.call(this, idx, getData(this, name)) :
value)
+;
%0A
@@ -914,20 +914,22 @@
%7D)
+;
%0A %7D
+;
%0A%7D)(Zept
|
72c4e7a1b952664419dcde39056e7c8f494c3cd6 | Fix typo | public/scripts/example.js | public/scripts/example.js | /**
* This file provided by Facebook is 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,
* FITNESS... | JavaScript | 0.999999 | @@ -1593,17 +1593,16 @@
//
-%60
we'll se
@@ -1672,17 +1672,16 @@
//
-%60
state.%0A
|
a37dae9de80affd984f31372b0849e191544fddf | Reorder the flag checks so version can be shown | bin/oust.js | bin/oust.js | #!/usr/bin/env node
var oust = require('../index');
var pkg = require('../package.json');
var fs = require('fs');
var argv = require('minimist')(process.argv.slice(2));
var printHelp = function() {
console.log([
'oust',
pkg.description,
'',
'Usage:',
' $ oust <filename>... | JavaScript | 0.000001 | @@ -357,63 +357,56 @@
rgv.
-h %7C%7C argv.help %7C%7C argv._.length === 0) %7B%0A printHelp(
+v %7C%7C argv.version) %7B%0A console.log(pkg.version
);%0A
@@ -419,33 +419,33 @@
urn;%0A%7D%0A%0Aif(argv.
-v
+h
%7C%7C argv.version
@@ -441,46 +441,53 @@
rgv.
-version) %7B%0A console.log(pkg.version
+help %7C... |
b523acaa9e07212de9e8e3d9a12a4cd3c020c26f | update API Key and project name in #283 | site/assets/js/search.js | site/assets/js/search.js | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
(function () {
'use strict'
if (!window.docsearch) {
return
}
var inputElement = document.getElementById('search-input')
var siteDocsVersion = inputElement.getAttribute('data-... | JavaScript | 0 | @@ -636,40 +636,40 @@
y: '
-5990ad008512000bba2cf951ccf0332f
+a2fb9f18ccc85658e152aeb2dd350860
',%0A
@@ -686,22 +686,27 @@
me: 'boo
-t
st
-rap
+ed-orange
',%0A i
@@ -964,20 +964,22 @@
s://
-get
boo
-t
st
-rap
+ed.orange
.com
|
f513a37ce6ade7782bf4354f6c5295348803ee70 | READ Entity: First initially failing test (TDD phase 1) | spec/api/api_session_spec.js | spec/api/api_session_spec.js | /**
* API Session Tests
*/
var frisby = require('frisby');
var panaxui = require('../../panaxui');
var hostname = panaxui.config.hostname,
port = panaxui.config.port,
url = 'http://' + hostname + ':' + port + '/api';
/**
* Test login
*/
frisby.create('Login')
.post(url + panaxui.api.login, {
username: panax... | JavaScript | 0.000003 | @@ -217,16 +217,37 @@
/api';%0A%0A
+var session_cookie;%0A%0A
/**%0A * T
@@ -250,17 +250,17 @@
* Test
-l
+L
ogin%0A */
@@ -740,20 +740,21 @@
est
-get s
+Get S
itemap
+(
when
@@ -763,16 +763,17 @@
ogged in
+)
%0A */%0Afun
@@ -883,21 +883,19 @@
sues/36%0A
-%0A
%09//
-
Grab re
@@ -920,20 +920,24 @@
kie%... |
0ea5770a19952abfbd3f744f4f838c105286f3b6 | Add fragment() test for accepting document fragments (already works). | test/unit/api/fragment.js | test/unit/api/fragment.js | import element from '../../lib/element';
import resolved from '../../lib/resolved';
import skate from '../../../src/index';
import typeAttribute from 'skatejs-type-attribute';
describe('api/fragment', function () {
var tagName;
beforeEach(function () {
tagName = element().safe;
});
it('should return an e... | JavaScript | 0 | @@ -3679,32 +3679,300 @@
node);%0A %7D);%0A%0A
+ it('should work with document fragments', function () %7B%0A const frag = document.createDocumentFragment();%0A const elem = document.createElement('div');%0A frag.appendChild(elem);%0A expect(skate.fragment(frag).childNodes%5B0%5D).to.equal(el... |
180411baa966474f8e05b61e37dbd5d36526a184 | Change Visgoth's list of profilers to a dictionary of profilers | webapp/webapp/static/js/visgoth.js | webapp/webapp/static/js/visgoth.js | "use strict";
// http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + "-" + s4() + "-" + s4() + "-" +
s4() + "-" + s4() + s4() + s4();
}
... | JavaScript | 0 | @@ -2747,24 +2747,88 @@
on(stats) %7B%0A
+ // Index 0 is hard-coded, corresponds to the 'LL' spectrogram%0A
var extent
@@ -3010,13 +3010,55 @@
s =
-%5B%0A
+%7B%7D;%0A this.profilers%5BVisgothLabels.bandwidth%5D =
Ban
@@ -3071,21 +3071,66 @@
Profiler
-,%0A
+;%0A this.profilers%5BVisgothLabels.networkLa... |
dff51718e9483dab6b140d1adbd3c3ab0ea49b0d | Update lib/partition: Fix error when no buffer given | lib/partition.js | lib/partition.js | /**
* Partition Constructor
* @return {Partition}
*/
function Partition( device, options ) {
if( !(this instanceof Partition) )
return new Partition( device, options )
this.device = device
this.firstLBA = options.firstLBA || 0
this.lastLBA = options.lastLBA || -1
}
/**
* Partition Prototype... | JavaScript | 0.000001 | @@ -729,32 +729,128 @@
llback ) %7B%0A %0A
+ if( typeof buffer === 'function' ) %7B%0A callback = buffer%0A buffer = null%0A %7D%0A %0A
callback = c
@@ -1299,36 +1299,38 @@
function( from,
-data
+buffer
, callback ) %7B%0A
@@ -1676,12 +1676,14 @@
om,
-data
+buffer
, ca
|
8afe15a168b34e2665ae71212ab4815523694a73 | fix order | database/scripts/setupPanel.js | database/scripts/setupPanel.js | var accounts = require('../db.js'); // included to connect to database
var accounts = require('../dbAccounts.js');
var passwords = require('../../passwords.json');
console.log("Setting up Secret DJ Panel...");
var callback = function(err, privilegeSaved) { if (err) { console.log("error occurred saving privilege... | JavaScript | 0.000046 | @@ -924,67 +924,29 @@
%7D%0D%0A
-%7D);%0D%0A%0D%0A// db.verifyAccount = function(username, callback)%0D%0A
+ else if (o) %7B%0D%0A
acco
@@ -986,24 +986,28 @@
(err, o) %7B%0D%0A
+
if (err) %7B
@@ -1060,11 +1060,81 @@
%7D%0D%0A
-%7D);
+ %7D);%0D%0A %7D%0D%0A%7D);%0D%0A%0D%0A// db.verifyAccount = fun... |
15fbfbfd03cc834a8c785dfb08f3ae27ff7fdbaa | optimize code | lib/positions.js | lib/positions.js | var config = require(__dirname + '/../config.js');
var utils = require(__dirname + '/../utils.js');
var assets = require(__dirname + '/assets.js');
var rates = require(__dirname + '/rates');
var async = require('async');
var position = function() {
return {
'pid' : 0,
'aid' : 0,
... | JavaScript | 0.999117 | @@ -1405,47 +1405,8 @@
set%0A
- var async = require('async');%0A
@@ -1434,17 +1434,17 @@
t(rows,
-1
+2
, functi
|
095308b911b496a7f9762638e954bcd1d70b739a | Make logging work on more environments (#499) | packages/autobahn/lib/log.js | packages/autobahn/lib/log.js | ///////////////////////////////////////////////////////////////////////////////
//
// AutobahnJS - http://autobahn.ws, http://wamp.ws
//
// A JavaScript library for WAMP ("The Web Application Messaging Protocol").
//
// Copyright (c) Crossbar.io Technologies GmbH and contributors
//
// Licensed under the MIT Licens... | JavaScript | 0 | @@ -456,19 +456,19 @@
/////%0A%0A%0A
-var
+let
debug =
@@ -642,11 +642,11 @@
%0A%7D%0A%0A
-var
+let
war
@@ -661,16 +661,30 @@
ole.warn
+.bind(console)
;%0A%0Aexpor
|
ff99989ffd32dd311fb792a62d43a4d4916c3a75 | Accumulated commit of the following from branch 'origin/ready/jph-us126': | selenium/selenium_test.js | selenium/selenium_test.js | 'use strict';
var config = require('./saucelabs.config');
var assert = require('assert');
var test = require('selenium-webdriver/testing');
var webdriver = require('selenium-webdriver');
var isSauceLabsTest = false;
var sauceLabsCaps = config.saucelabs.browserCaps;
var SAUCE_URL = 'http://ondemand.saucelabs.com:80/wd... | JavaScript | 0.999999 | @@ -571,16 +571,110 @@
le-line%0A
+var driverTimeout = process.env.DRIVER_TIMEOUT %7C%7C 10000; // eslint-disable-line no-process-env
%0A%0Afuncti
@@ -1011,37 +1011,45 @@
ame: 'body'%7D)),
-12000
+driverTimeout
);%0A var bod
@@ -1563,13 +1563,21 @@
)),
-12000
+driverTimeout
);%0A
@@ -2140,36 +2140,45 @@
... |
1f2c98633f5cea82a7bc02792a636dc0817ef8ce | fix an easy one | tests/transform-tests.js | tests/transform-tests.js | import should from 'should';
import { transformString } from '../src/transform';
function test(input, output) {
it(input, () => should(transformString(input)).equal(output));
}
describe('transform', () => {
it('should turn a string into a string',
() => transformString("()").should.be.a.String());
describe... | JavaScript | 0.001609 | @@ -1713,18 +1713,16 @@
ty_func(
-
)');%0A %7D
|
831d4bc6781525a1298228f4780a534d164b3fc4 | update author default avatar uri | source/common/index.js | source/common/index.js |
import React, {
NetInfo
} from 'react-native';
import _ from 'lodash';
import Config from '../config';
import entities from 'entities';
export function getBloggerName(authorUri) {
authorUri = _.trimEnd(authorUri, '\/');
return authorUri.slice(authorUri.lastIndexOf("\/") + 1);
}
const seedColors = ['#ec8... | JavaScript | 0 | @@ -750,78 +750,29 @@
urn
-%22http://www.sucaijishi.com/uploadfile/2016/0203/20160203022631602.png%22
+Config.appInfo.avatar
;%0A%7D%0A
|
91c6c1d76a5ae5bfff889be39dc8eb843224d026 | add missing semicolon | packages/all/src/index.js | packages/all/src/index.js | import * as core from '@candela/core';
import * as events from '@candela/events';
import * as geojs from '@candela/geojs';
import * as glo from '@candela/glo';
import * as lineup from '@candela/lineup';
import * as onset from '@candela/onset';
import * as sententree from '@candela/sententree';
import * as similaritygra... | JavaScript | 0.000507 | @@ -985,16 +985,17 @@
mponent%5D
+;
%0A %7D%0A%7D%0A%0A
|
3ab26d38e886fd43ae4f91123c80c16a7949f093 | add classnames, rest props | packages/vx-tooltip/src/tooltips/Tooltip.js | packages/vx-tooltip/src/tooltips/Tooltip.js | import React from 'react';
export default function Tooltip(props) {
return (
<div
className="vx-tooltip-portal"
style={{
position: 'absolute',
top: props.top,
left: props.left,
backgroundColor: 'white',
color: '#666666',
padding: '.3rem .5rem',
... | JavaScript | 0 | @@ -19,16 +19,45 @@
'react';
+%0Aimport cx from 'classnames';
%0A%0Aexport
@@ -91,16 +91,61 @@
rops) %7B%0A
+ const %7B className, ...restProps %7D = props;%0A
return
@@ -172,17 +172,21 @@
assName=
-%22
+%7Bcx('
vx-toolt
@@ -198,9 +198,22 @@
rtal
-%22
+', className)%7D
%0A
@@ -575,19 +575,18 @@
...
-pro... |
3654ada5570327e30965e252b4f2851f81cd6bb2 | Replace var with const | example.js | example.js | var fibonacci = require ('fibonacci');
// Return last result object
fibonacci.on ('done', console.log);
// Run 1000 iterations
fibonacci.iterate (1000);
| JavaScript | 0.000027 | @@ -1,7 +1,9 @@
-var
+const
fib
|
e92979b360a832df6dae6c00e4ce850284a1d2c5 | check --quality is not given either for auto container | bin/ytdl.js | bin/ytdl.js | #!/usr/bin/env node
var path = require('path');
var fs = require('fs');
var ytdl = require('..');
var cliff = require('cliff');
require('colors');
var info = require('../package');
var opts = require('nomnom')
.option('version', {
abbr: 'v',
flag: true,
callback: function() {
console.log(in... | JavaScript | 0 | @@ -3721,16 +3721,33 @@
(ext &&
+ !opts.quality &&
!opts.f
|
e7667b9b3fd5f83aee9f96cf9714b392eabf36ed | remove trailing comma | tests/unit/ErrorUtils.js | tests/unit/ErrorUtils.js | define([
'intern!object',
'intern/chai!assert',
'oe_dojo/ErrorUtils'
], function (
registerSuite,
assert,
ErrorUtils
) {
registerSuite({
name: 'ErrorUtils',
'parseError msg and title error': function() {
var errorMsgTitle = {title: 'Incorrecte Token', message: 'Het aangeboden SSO token is ... | JavaScript | 0.999551 | @@ -2700,18 +2700,16 @@
);%0A %7D
-,%0A
%0A%0A %7D);%0A
|
dc4edd91c512c179b4b9970cead26229aabf5688 | use random english words for example | example.js | example.js | const chalk = require('chalk')
const chromahash = require('./')
const words =
'hello there how are you doing today and what other ' +
'wonderful things can we accomplish today ' +
'we seem to not be able to generate different enough colors'
words.split(' ').forEach(w => {
const hex = '#' + chromahash(w)
con... | JavaScript | 0.000118 | @@ -1,16 +1,67 @@
+const words = require('an-array-of-english-words')%0A
const chalk = re
@@ -113,224 +113,130 @@
')%0A%0A
-const words =%0A 'hello there how are you doing today and what other ' +%0A 'wonderful things can we accomplish today ' +%0A 'we seem to not be able to generate different enough colors'%0A%0A... |
715a8e9af675c2b924efce4db3c993f00780d3c2 | fix path to dist/assets/* | packages/xod-client-browser/webpack/base.js | packages/xod-client-browser/webpack/base.js | const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const pkgpath = subpath => path.join(__dirname, '..', subpath);
module.exports = {
devtool: 'source-map',
entry: [
'babel-polyfill',
pkgpath('src/shim.js'),
pkgpath('src/index.js... | JavaScript | 0 | @@ -1167,16 +1167,23 @@
le?name=
+assets/
%5Bpath%5D%5Bn
@@ -1211,20 +1211,44 @@
ontext=.
-/src
+./xod-client/src/core/assets
',%0A
|
f035ed59e28db05bd79b2a44e0c863ed122934b4 | remove logging | example.js | example.js | var Merkle = require('./')
var createStream = require('./stream')
var hash = require('./util').hash
function isDefined (v) {
return 'undefined' !== typeof v
}
/*
Example of how to use Merkle for replication.
*/
module.exports = function (_hash) {
var set = {}
var tree = new Merkle()
hash = _hash || hash
... | JavaScript | 0.000001 | @@ -684,32 +684,34 @@
ey) %7B%0A
+//
console.error('%3E
@@ -875,32 +875,34 @@
key)%0A
+//
console.log('.')
@@ -966,32 +966,34 @@
obj) %7B%0A
+//
console.error('%3C
|
e0b24e3bb82cb59fc8150a7cb3edfca3646f7add | make _createIndexes in module unit-manager | src/managers/master/unit-manager.js | src/managers/master/unit-manager.js | 'use strict'
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var DLModels = require('dl-models');
var map = DLModels.map;
var Unit = DLModels.master.Unit;
var BaseManager = require('../base-manager');
var i18n = require('dl-i18n');
module.exports = class UnitManager extends BaseManager {
... | JavaScript | 0.000001 | @@ -3400,13 +3400,461 @@
;%0A %7D%0A
+ _createIndexes() %7B%0A var dateIndex = %7B%0A name: %60ix_$%7Bmap.master.collection.Unit%7D__updatedDate%60,%0A key: %7B%0A _updatedDate: -1%0A %7D%0A %7D%0A%0A var codeIndex = %7B%0A name: %60... |
5fd52baf306fb7c6100e1e4e455f1d48b6318eae | Implement HGET | Source/Methods_Hash.js | Source/Methods_Hash.js |
"use strict";
var Main = module.parent.exports;
Main.ActionHSET = function(Request){
if(Request.length < 3){
throw new Error(Main.MSG_ARGS_LESS);
}
Main.ValidateArguments(Main.ARGS_ODD, Request.length);
let Key = Request.shift();
let Value = this.Database.get(Key);
try {
Main.Validate(Main.VAL_HA... | JavaScript | 0.000001 | @@ -599,8 +599,384 @@
OK'%7D;%0A%7D;
+%0A%0AMain.ActionHGET = function(Request)%7B%0A let Key = Request.shift();%0A let Value = this.Database.get(Key);%0A%0A if(typeof Value !== 'undefined')%0A Main.Validate(Main.VAL_HASH, 'HGET', Value);%0A%0A if(Request.length === 1)%7B%0A return Value && Value.get(Request... |
821fa68654ad04619f7337103823f8dba283a86d | Update server.es6 | src/Plugins/server/server.es6 | src/Plugins/server/server.es6 | import http from 'http';
import fs from 'fs';
import http2 from 'http2';
import Koa from 'koa';
import path from 'path';
import serve from 'koa-serve';
import {RenderUtil} from '../../helper';
import render from 'koa-ejs';
import dispatcher from './middleware/dispatcher';
import routeMap from './middleware/routemap';
i... | JavaScript | 0 | @@ -3746,12 +3746,10 @@
n',
-(
ws
-)
=%3E
@@ -3783,17 +3783,15 @@
e',
-(
message
-)
=%3E
@@ -3903,14 +3903,12 @@
t =
-(
data
-)
=%3E
@@ -3945,29 +3945,18 @@
ach(
-function each(
+
client
-)
+ =%3E
%7B%0A
@@ -3992,24 +3992,16 @@
ta,
-function (
error
-)
+ =%3E
%7B%0A
@@ -4056,25 +4056,27 @@... |
481e969fa773e7dfa24b7f965c9e085850f0b2ae | Remove clutter | src/file.js | src/file.js | var util = require('./util')
, isFunc = util.isFunc
, path = require("path")
, fs = require("fs")
, all = {}
, AbstractResource = require("./abstract_resource")
function File(p) {
AbstractResource.call(this)
this._path = p
}
File.new = function(p, fs) {
p = File.normalizePath(p)
return p in all ? al... | JavaScript | 0.000105 | @@ -26,33 +26,8 @@
l')%0A
- , isFunc = util.isFunc%0A
,
|
6319c1b78c976c392a619aa9167dec99e80d31a3 | Attach image details to report | public/scripts/app/views/Report/Description.js | public/scripts/app/views/Report/Description.js | define(function(require) {
'use strict';
var _ = require('underscore')
, Base = require('app/views/Base')
, autosize = require('autosize')
, Thankyou = require('app/views/Report/Thankyou')
, File = require('app/models/File')
... | JavaScript | 0 | @@ -1648,77 +1648,75 @@
ion(
-url) %7B%0A log('success', arguments)%0A this.sendReport(
+details) %7B%0A this.sendReport(details.url + '/' + details.id
)%0A
@@ -1792,37 +1792,40 @@
eport: function(
-error
+imageUrl
) %7B%0A this
@@ -2065,16 +2065,241 @@
%7D
+%0A if... |
5adfb09d9a1d3304d322cce464dd687090d115e3 | Add link to logo | src/modules/Layout/Header/Header.js | src/modules/Layout/Header/Header.js | import React from 'react';
import PropTypes from 'prop-types';
import block from '../../../helpers/bem-cn';
import Nav from '../Nav/Nav';
import './Header.css';
const b = block('j-header');
const propTypes = {
logout: PropTypes.func.isRequired,
user: PropTypes.string.isRequired,
};
const Header = ({ logout... | JavaScript | 0 | @@ -55,16 +55,57 @@
-types';
+%0Aimport %7B Link %7D from 'react-router-dom';
%0A%0Aimport
@@ -143,16 +143,76 @@
em-cn';%0A
+import ROUTES from '../../../configurations/routes.config';%0A
import N
@@ -581,36 +581,117 @@
%3C
-span className=%7Bb('logo')%7D /
+Link to=%7BROUTES.MAIN.path%7D%3E%0A ... |
2e660a69855d6d73d93ebcc4e65143b49194ad3c | Allow custom cell height | components/CustomCell.js | components/CustomCell.js | import React, { Component, PropTypes, StyleSheet, View, Text, TouchableHighlight } from 'react-native';
export default class CustomCell extends Component {
render() {
const {children} = this.props;
const cellTintColor = this.props.cellTintColor;
const isDisabled = this.props.isDisabled;
const isPressable = th... | JavaScript | 0.000002 | @@ -414,20 +414,17 @@
yColor;%0A
-
+%09
%09const h
@@ -486,13 +486,52 @@
ty;%0A
- %09
+%09%09const cellHeight = this.props.cellHeight;%0A
%0A%09%09/
@@ -623,14 +623,32 @@
olor
+, height: cellHeight
%7D%5D;%0A
-%09%09
%0A%09%09i
@@ -903,18 +903,16 @@
%09%09%09)%0A%09%09%7D
-
%0A r
@@ -1185,24 +118... |
6f05de4392c9a43665ed8ef75ef81deff37c40f6 | add error checking | lib/requester.js | lib/requester.js | var request = require('request')
var request = request.defaults({jar: true})
var _ = require('underscore')
var jsesc = require('jsesc')
var utils = require('./utilities')
var util = require('util')
var Requester = function(){
this.auth_token = '';
this.base_uri = 'https://api.gotinder.com/';
}
Requester.prototy... | JavaScript | 0.000001 | @@ -548,24 +548,119 @@
res, body)%7B%0A
+ if (err) return callback(err)%0A if (!body) return callback(%22No body, no token.%22,res)%0A
that.a
|
a64f5f7488e447c17327eef256dc40979eb0d3c4 | 🐛 Handle names as array in report module | lib/modules/report.mdl.js | lib/modules/report.mdl.js | 'use strict';
const fs = require('fs');
const { basename, join, resolve } = require('path');
const project = require('./project');
const html = require('./html');
const consoleModule = require('./console.mdl');
const messages = require('./messages');
const dual = require('./dual');
const ldir = join(process.cwd(), 'l... | JavaScript | 0.999901 | @@ -596,38 +596,89 @@
-i
+const nameUpperCase = typeo
f
-(
d.
-file && d.file.includes(
+licenses.license%5B0%5D.name === 'string'%0A ?
d.li
@@ -727,16 +727,108 @@
erCase()
+%0A : d.licenses.license%5B0%5D.name%5B0%5D;%0A%0A if (d.file && d.file.includes(nameUpperCase
)) %7B%0A
|
72f4e3ee9a4bbaa9d334290e9f7750ea09b061a6 | Update MediumPost.js | components/MediumPost.js | components/MediumPost.js | import PropTypes from 'prop-types'
import styled from 'styled-components'
const Wrapper = styled.div`
border-radius: 8px;
background: white;
&:before {
content: '.';
display: block;
color: transparent;
position: absolute;
position: absolute;
top: 5%;
left: 5%;
width: 90%;
hei... | JavaScript | 0 | @@ -138,16 +138,38 @@
: white;
+%0A position: relative;
%0A%0A &:be
|
7bb9a3cf3b79fcf03098bf07c709aac53c9e7187 | Add missing values test for quotes. | test/yahoo-quotes-test.js | test/yahoo-quotes-test.js | "use strict";
const test = require("tape");
const csv = require("../lib/parse-csv");
const quotes = require("../lib/yahoo-quotes");
test("Yahoo Quotes tests", t => {
t.plan(5);
quotes.getHistoricalQuotesFromYahoo({
symbol: "GOOGL",
beginDate: new Date(2013, 0, 2), // Jan 2nd, 2013
en... | JavaScript | 0 | @@ -177,9 +177,9 @@
lan(
-5
+7
);%0A%0A
@@ -1176,12 +1176,357 @@
%7D);%0A
+%0A quotes.getHistoricalQuotesFromYahoo(%7B%0A symbol: %22CEC.VI%22,%0A beginDate: new Date(2017, 7, 13), // Aug 13th, 2017%0A endDate: new Date(2018, 5, 23) // Jun 23th, 2018%0A %7D, (err, symbol, res) =%3E %7B... |
84fb444101f498f05a7e7e6bf86f3d0cebda6c6a | add if statement for RS.remove(); | lib/rockstage.js | lib/rockstage.js | // Copyright (c) 2012 HIRAKI Satoru, https://github.com/Layzie
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, c... | JavaScript | 0.000007 | @@ -2502,41 +2502,239 @@
lag)
-;%0A%0A storage.removeItem(key);
+,%0A selectKey = storage.getItem(key);%0A%0A if (typeof key === 'string') %7B%0A if (selectKey) %7B%0A storage.removeItem(key);%0A %7D else %7B%0A console.log('This key is not in storage');%0A %7D... |
e75bf64e573334f33d2faad55a239e4798d8fee5 | make writers capable of dependency injection | packages/ephemeral/writer.js | packages/ephemeral/writer.js | const EphermalStorage = require('./storage');
const crypto = require('crypto');
const Error = require('@cardstack/plugin-utils/error');
const PendingChange = require('@cardstack/plugin-utils/pending-change');
const pendingChanges = new WeakMap();
module.exports = class Writer {
constructor({ storageKey }) {
thi... | JavaScript | 0.000006 | @@ -274,16 +274,76 @@
riter %7B%0A
+ static create(params) %7B%0A return new this(params);%0A %7D%0A%0A
constr
|
192ac053db8d3c714fdf8e2036304a4766b0cd11 | Fix tests | generators/app/templates/test/service.tests.js | generators/app/templates/test/service.tests.js | const expect = require('expect.js');
const system = require('../system');
const supertest = require('supertest');
describe('Service Tests', () => {
let request;
let sys;
before(done => {
sys = system().start((err, { app }) => {
if (err) return done(err);
request = supertest(app);
done();
... | JavaScript | 0.000003 | @@ -166,16 +166,27 @@
let sys
+ = system()
;%0A%0A bef
@@ -206,27 +206,16 @@
%0A sys
- = system()
.start((
@@ -342,16 +342,18 @@
(done =%3E
+ %7B
sys.sto
@@ -359,18 +359,21 @@
op(done)
+ %7D
);
+s
%0A%0A it('
|
1e9a235a4fffff0741a0d6dfdcc5d1283e04059e | Secure by proper design! Ha! And IPs! | server/api/petitioners.js | server/api/petitioners.js | var mongo = require('mongodb'),
nconf = require('nconf'),
assert = require('assert');
var Server = mongo.Server,
Db = mongo.Db,
Client = mongo.MongoClient,
ObjectId = mongo.ObjectID;
nconf.env(['mongodb:connection'])
.file('api/config.json');
var uri = nconf.get('mongodb:connection');
var os = require('os');
v... | JavaScript | 0 | @@ -626,21 +626,71 @@
%0A%09%0A%09
-res.send(req)
+console.log(req.hostname);%0A%09console.dir(req.ips);%0A%0A%09return true
;%0A%7D%0A
@@ -920,16 +920,94 @@
%09%09.find(
+%7B%7D, %7B %22Name%22: 1, %22Location%22: 1, %22TimeStamp%22: 1 %7D)%0A%09%09%09.sort(%7B %22TimeStamp%22: -1 %7D
)%0A%09%09%09.to
|
6d2a077de80ad117158a6c92e73728b4e5e8644c | add `--force` flag to dataset alias delete command | packages/@sanity/core/src/commands/dataset/alias/deleteAliasHandler.js | packages/@sanity/core/src/commands/dataset/alias/deleteAliasHandler.js | import validateDatasetAliasName from '../../../actions/dataset/alias/validateDatasetAliasName'
import * as aliasClient from './datasetAliasesClient'
import {ALIAS_PREFIX} from './datasetAliasesClient'
export default async (args, context) => {
const {apiClient, prompt, output} = context
const [, ds] = args.argsWith... | JavaScript | 0.000003 | @@ -1,12 +1,82 @@
+import %7BhideBin%7D from 'yargs/helpers'%0Aimport yargs from 'yargs/yargs'%0A
import valid
@@ -265,16 +265,150 @@
lient'%0A%0A
+function parseCliFlags(args) %7B%0A return yargs(hideBin(args.argv %7C%7C process.argv).slice(2)).option('force', %7Btype: 'boolean'%7D).argv%0A%7D%0A%0A
export d
@@ -5... |
e0dc07d93b9a88be5079bedc3b417965fe329515 | Add setInstanceOptions | packages/core/src/Dicy.js | packages/core/src/Dicy.js | /* @flow */
import path from 'path'
import readdir from 'readdir-enhanced'
import State from './State'
import StateConsumer from './StateConsumer'
import File from './File'
import Rule from './Rule'
import type { Action, Command, Option, Phase, RuleInfo } from './types'
export default class Dicy extends StateConsum... | JavaScript | 0.000001 | @@ -536,151 +536,79 @@
-const instance = await state.getFile('dicy-instance.yaml-ParsedYAML')%0A if (instance) instance.value = options%0A%0A await builder.initialize(
+await builder.initialize()%0A await builder.setInstanceOptions(options
)%0A%0A
@@ -896,24 +896,197 @@
fault)%0A %7D%0A%0A
+ async s... |
e236f7ca0a7322574f0c9855c1208e8b6fec584a | change event name | packages/node_modules/@webex/internal-plugin-presence/src/constants.js | packages/node_modules/@webex/internal-plugin-presence/src/constants.js |
export const GROUNDSKEEPER_INTERVAL = 20 * 1000; // 20 seconds in ms
export const FETCH_DELAY = 300; // ms
export const UPDATE_PRESENCE_DELAY = 60 * 1000; // 1 minute in ms
export const EXPIRED_PRESENCE_TIME = 10 * 60 * 1000; // 10 minutes in ms
export const SUBSCRIPTION_DELAY = 60 * 1000; // 1 minute in ms
export ... | JavaScript | 0.000133 | @@ -588,16 +588,17 @@
'update
+d
';%0A%0Aexpo
|
49a07c627e053447eda0848fb1713c6c04339f7e | Tweak test page | TestPage.js | TestPage.js | /**
* Copyright (c) 2015, Peter W Moresi
*/
import React from 'react';
import {Table, Column} from './Table';
import Colors from './CrayolaColors';
/* Write some great components about what data
* this application presents and how it needs to be
* organized.
*/
export default class TestPage extends React.Componen... | JavaScript | 0 | @@ -894,16 +894,73 @@
OfRows%7D%0A
+ fixedHeader=%7Btrue%7D%0A showHeader=%7Btrue%7D%0A
@@ -1611,32 +1611,62 @@
interval=%7B2%7D%0A
+ showHeader=%7Btrue%7D%0A
getR
|
248297af63b30be4561a9096ad6043229fe802d5 | fix "BiwaScheme.Port.current_error.puts is not a function" | src/platforms/browser/release_initializer.js | src/platforms/browser/release_initializer.js | //
// release_initializer.js - read user's program and eval it (if it exists)
//
// This file is put on the end the lib/biwascheme.js.
//
(function(){ //local namespace
var dumper = null;
if ($("#biwascheme-debugger")[0]) {
dumper = new BiwaScheme.Dumper($("#biwascheme-debugger")[0]);
}
// Error handler (s... | JavaScript | 0.000005 | @@ -414,17 +414,23 @@
rror.put
-s
+_string
(e.messa
@@ -427,24 +427,31 @@
ng(e.message
+ + %22%5Cn%22
);%0A if (d
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.