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 |
|---|---|---|---|---|---|---|---|
fc4dba591e9cfb0f53db4afa360a6601c44a565f | Fix launch app view when app successfuly launches | lib/javascripts/stores/job-output.js | lib/javascripts/stores/job-output.js | //= require ../store
(function () {
"use strict";
var JobOutput = FlynnDashboard.Stores.JobOutput = FlynnDashboard.Store.createClass({
displayName: "Stores.JobOutput",
getState: function () {
return this.state;
},
willInitialize: function () {
this.props = {
appId: this.id.appId,
jobId: this.id.jobId... | JavaScript | 0 | @@ -2053,16 +2053,174 @@
false);
+%0A%09%09eventSource.addEventListener(%22exit%22, function () %7B%0A%09%09%09this.setState(%7B%0A%09%09%09%09open: false,%0A%09%09%09%09eof: true%0A%09%09%09%7D);%0A%09%09%09eventSource.close();%0A%09%09%7D.bind(this), false);
%0A%0A%09%09this
|
f18d4a99707a8b06723afdb71887c0e42e65bb4a | Automatically map commands in Context.commands property E.g.: commands: { 'commandName': CommandConstructor } | backbone.geppetto.js | backbone.geppetto.js | // Backbone.Geppetto v0.5.1
//
// Copyright (C) 2013 Model N, Inc.
// Distributed under the MIT License
//
// Documentation and full license available at:
// http://modeln.github.com/backbone.geppetto/
(function (factory) {
if (typeof define === "function" && define.amd) {
// Register as an AMD module if a... | JavaScript | 0.999819 | @@ -2065,16 +2065,353 @@
ntext;%0A%0A
+ // map context events%0A _.each(view.contextEvents, function(callback, eventName) %7B%0A if (_.isFunction(callback)) %7B%0A context.listen(view, eventName, callback);%0A %7D else if (_.isString(callback)) %7B%0A c... |
fb1a60e87bba0922877629d76bdd1237e46396db | use nicer heading | demo/gpu.js | demo/gpu.js | /*
Renders a StreetView panorama in ThreeJS.
Uses a GPU stitching algorithm to support
higher quality images on low-memory devices
(like iOS Safari).
*/
var equirect = require('../intermediate')
var panorama = require('google-panorama-by-location')
var awesome = require('awesome-streetview')
var THREE = requ... | JavaScript | 0 | @@ -1625,24 +1625,113 @@
ata.height%0A%0A
+ // this looks pretty nice with our data set%0A sphere.rotation.y = Math.PI/2 - 0.5%0A%0A
// resha
|
dd0c4bac4d458dc53aaa2a66ef28175a9e428ede | Resolve directory in require.context based on NODE_PATH if provided. | addons/storyshots/src/require_context.js | addons/storyshots/src/require_context.js | import vm from 'vm';
import fs from 'fs';
import path from 'path';
import moduleSystem from 'module';
function requireModules(keys, root, directory, regExp, recursive) {
const files = fs.readdirSync(path.join(root, directory));
files.forEach(filename => {
// webpack adds a './' to the begining of the key
... | JavaScript | 0 | @@ -1,12 +1,46 @@
+import %7B process %7D from 'global';%0A
import vm fr
@@ -1433,16 +1433,205 @@
e%0A %7D;%0A%0A
+ const getFullPath = directory =%3E %7B%0A if (process.env.NODE_PATH) %7B%0A return path.resolve(process.env.NODE_PATH, directory);%0A %7D%0A%0A return path.resolve(dirname, directory);%0... |
3552c1e9ff1103ad4d249c2ad8d2eaa71206b72c | Change HttpFixtures's body matcher to only match using the un-encoded body data if the fixture is a json fixture | lib/http/dummy.js | lib/http/dummy.js | var _ = require("underscore");
var utils = require('../utils');
var Extendable = utils.Extendable;
var api = require('./api');
var HttpRequest = api.HttpRequest;
var HttpResponse = api.HttpResponse;
var resources = require('../dummy/resources');
var DummyResource = resources.DummyResource;
var DummyResourceError = r... | JavaScript | 0 | @@ -3435,24 +3435,62 @@
rn self.json
+%0A && fixture.json%0A
&& request.
@@ -3493,16 +3493,27 @@
est.data
+%0A
&& fixt
|
b49203b0a6d81c7caa666fa91e22e37cf14cf9a0 | improve page-formats module documentation | src/utils/page-formats.js | src/utils/page-formats.js | /**
* page-formats module
* @module utils/page-formats
*/
'use strict';
/**
* Define a page format
* @constructor
* @param {string} label The format's label
* @param {number} long The format's long dimension in milimeters
* @param {number} short The format's short dimension in milimeters
*/
function Format(l... | JavaScript | 0 | @@ -50,16 +50,139 @@
formats%0A
+ * @type array%3CFormat%3E%0A * @description When required, this module exports an array of formats supported by the application%0A
*/%0A%0A'us
|
03b8877f02655196fb4d0a35dde72eb873f30be4 | fix resize-evevt | src/utils/resize-event.js | src/utils/resize-event.js | const isServer = typeof window === "undefined"
const requestAnimationFrame = (function() {
if (isServer) return;
var raf = window.requestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame ||
function(fn) {
return window.setTimeOut(fn, 20);... | JavaScript | 0.000001 | @@ -677,9 +677,92 @@
%7D%0A%7D)()
+;%0A%0Aconst resetTrigger=function(element)%7B%0A%09const trigger=element._resetTrigger_;%0A%09%0A%7D
%0A
|
7bd272750dce5f52c1b9a9bda452d8a51a3c520c | Add SQL insert template string unit test | test/unit/sqlStringSpec.js | test/unit/sqlStringSpec.js | /* eslint-env mocha */
import assert from 'assert'
import {SQL} from '../../app/db'
describe('SQL sanitizer', () => {
it('Should handle happy case', () => {
const courseCode = 'CT60A2411'
const courseName = 'Olio-ohjelmointi'
const input = SQL`UPDATE course SET course_code = '${courseCode}' WHERE course_... | JavaScript | 0 | @@ -1638,12 +1638,1233 @@
;')%0A %7D)
+%0A%0A it('Should handle multi value insert', () =%3E %7B%0A const courseCode = 'CT30A3202'%0A const courseName = 'WWW-sovellukset'%0A const department = 'tite'%0A const input = SQL%60INSERT INTO course (course_id, course_code, course_name, week, week_day, time_of_d... |
aa48af23093889a2a9a79421c3449fad4221d6ee | check for client_secret presence, fixes #53 | packages/ember-simple-auth/lib/mixins/login_controller_mixin.js | packages/ember-simple-auth/lib/mixins/login_controller_mixin.js | 'use strict';
/**
The mixin for the login controller (if you're using the default
credentials-based login). This controller sends the user's credentials to the
server and sets up the session (see
[Session#setup](#Ember.SimpleAuth.Session_setup)) from the reponse.
Accompanying the login controller your appli... | JavaScript | 0 | @@ -2687,34 +2687,38 @@
.isEmpty(client_
-id
+secret
)) %7B%0A pos
@@ -2768,20 +2768,16 @@
%7D%0A %7D%0A
-
%0A ret
|
6714e4f1ea4a2f0a08bfc00a1ec624109dce08f7 | Update comment about cacheing | rules/AWS-Federated-AMR.js | rules/AWS-Federated-AMR.js | /*jshint esversion: 6 */
function (user, context, callback) {
const WHITELIST = [
'7PQFR1tyqr6TIqdHcgbRcYcbmbgYflVE', // ldap-pwless.testrp.security.allizom.org
'xRFzU2bj7Lrbo3875aXwyxIArdkq1AOT', // Federated AWS CLI auth0-dev
'N7lULzWtfVUDGymwDs0yDEq6ZcwmFazj', // Federated AWS CLI auth0-prod
];
if... | JavaScript | 0 | @@ -4011,101 +4011,8 @@
one.
- At the moment it appears that the caching%0A // does not work and it always fetches from S3
%0A
|
95c07a416e1d3e77b429809c74bb543cbf689ac4 | fix the value propagation of the SingleSelect type | packages/tocco-ui/src/EditableValue/typeEditors/SingleSelect.js | packages/tocco-ui/src/EditableValue/typeEditors/SingleSelect.js | import React from 'react'
import Select from 'react-select'
const SingleSelect = props => {
const onChange = e => {
props.onChange(e.value)
}
return (
<Select
single
clearable
placeholder=""
noResultsText="-"
value={props.value}
onChange={onChange}
options={prop... | JavaScript | 0.000001 | @@ -138,16 +138,30 @@
(e.value
+ ? e.value : e
)%0A %7D%0A%0A
|
a5beb666043e49076d963b82be35dd4b0f6caec0 | Add emoji suggester | assets/javascripts/discourse/components/babble-composer.js.es6 | assets/javascripts/discourse/components/babble-composer.js.es6 | import { showSelector } from "discourse/lib/emoji/emoji-toolbar";
export default Ember.Component.extend({
classNames: ['babble-post-composer'],
_init: function() {
this.set('placeholder', Discourse.SiteSettings.babble_placeholder || I18n.t('babble.placeholder'))
}.on('init'),
keyDown: function(event) {
... | JavaScript | 0.999999 | @@ -283,16 +283,820 @@
nit'),%0A%0A
+ _didInsertElement: function() %7B%0A this.$('textarea').autocomplete(%7B%0A template: this.container.lookup('template:emoji-selector-autocomplete.raw'),%0A key: %22:%22,%0A%0A transformComplete(v) %7B%0A if (!v.code) %7B return %7D%0A return %60$%7... |
8f8fc142c31914110dda0029b53fa2c7db4c9a1d | Add correct youtube embed urls | src/views/PosterVideos.js | src/views/PosterVideos.js | import React from 'react'
import '../styles/video.css'
const PosterVideos = () =>
<div className='container'>
<div className='row'>
{/* Guess 64px the first render, then immediately adjust
to a proper calculated value.
This prevents the layout from breaking should the AppBar
ever ... | JavaScript | 0.000082 | @@ -518,16 +518,31 @@
100%25' %7D%7D
+%3E%0A %3Ch3
classNa
@@ -560,23 +560,8 @@
xt'%3E
-%0A %3Ch3%3E
Powe
@@ -691,35 +691,35 @@
e.com/embed/
-WQt0GDsL8ZU
+A4qXONix2aQ
?rel=0'%0A
@@ -1002,33 +1002,32 @@
flow-text'%3EP
-owerpoint
+ublisher
%3C/h3%3E%0A
@@ -1139,35 +1139,35 @@
e.com/e... |
830abf8311cce48b8b40328b41d595f458335492 | fix style scope mismatch | packages/vue-styleguidist/src/rsg-components/Preview/Preview.js | packages/vue-styleguidist/src/rsg-components/Preview/Preview.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { compile, addScopedStyle } from 'vue-inbrowser-compiler'
import PlaygroundError from 'rsg-components/PlaygroundError'
import Vue from 'vue'
import { DocumentedComponentContext } from '../VsgReactComponent/ReactComponent'
import { Render... | JavaScript | 0 | @@ -2860,13 +2860,8 @@
= '
-data-
v-'
@@ -2928,16 +2928,26 @@
copeId =
+ 'data-' +
moduleI
|
3b4e63dc21f4e267de28c7eafbd2a4d7d3e7a512 | Update azure-event-hub.js | lib/plugins/input/azure-event-hub.js | lib/plugins/input/azure-event-hub.js | 'use strict'
const { EventHubConsumerClient, EventPosition } = require('@azure/event-hubs')
const consoleLogger = require('../../util/logger.js')
/**
*
* config example:
* module: azure-eventhub
* name: hub1
* endpoint: Endpoint=sb://sematextevents.servicebus.windows.net/;SharedAccessKeyName=RootManageShared... | JavaScript | 0 | @@ -185,24 +185,25 @@
azure-event
+-
hub%0A * nam
|
945eda7b70221ad57e6c35eece51323a66746552 | Add debug info to intentions warning | lib/intentions.js | lib/intentions.js | 'use babel'
import { CompositeDisposable, Emitter } from 'atom'
import { getMessageRange } from './helpers'
import type Buffer from './buffer'
import type { Linter$Fix } from './types'
import type { Point, TextBuffer, TextEditor, Disposable } from 'atom'
export default class Intentions {
emitter: Emitter;
subscri... | JavaScript | 0 | @@ -1849,16 +1849,61 @@
ted one'
+, 'expected', oldText, 'but got', currentText
)%0A
|
992265962d4359de49502888c779863bffe2f6e3 | remove artifactsShare method from docs for this release | lib/jobs/index.js | lib/jobs/index.js | 'use strict';
/**
* @namespace jobs
*/
module.exports = {
artifactsDestroy: require('./artifactsDestroy'),
artifactsGet: require('./artifactsGet'),
artifactsList: require('./artifactsList'),
artifactsShare: require('./artifactsShare'),
clone: require('./clone'),
create: require('./create'),
destroy: require(... | JavaScript | 0 | @@ -195,54 +195,8 @@
'),%0A
-%09artifactsShare: require('./artifactsShare'),%0A
%09clo
|
9c6dcf426f80f7970b1ce000089ed0dea408f697 | return undefined instead of null | observable.js | observable.js | var compose = require('./compose');
function filter(fn, predicate) {
return function(value) {
return predicate(value) ? fn(value) : null;
};
}
function Observable(producer) {
function forEach(onNext, onError, onCompleted) {
// TODO: wrap functions in scheduler
return producer(onNext, onError, onCompleted);
... | JavaScript | 0.000138 | @@ -133,12 +133,14 @@
) :
-null
+void 0
;%0A%09%7D
|
050ded31f6812d348a32d87e10ef320aabb3c08b | Add default values for LogView event objects | lib/riemann/dash/public/views/log.js | lib/riemann/dash/public/views/log.js | (function() {
// Reify a log view from JSON
var LogView = function(json) {
// Extract state from JSON
view.View.call(this, json);
this.query = json.query;
this.title = json.title;
this.lines = json.lines || 1000;
var self = this;
// Set up HTML
this.el.addClass(... | JavaScript | 0.000001 | @@ -2359,24 +2359,157 @@
on(event) %7B%0A
+ var defaults = %7B%0A host: %22%22,%0A service: %22%22,%0A state: %22%22,%0A metric: %22%22,%0A description: %22%22%0A %7D%0A
this.l
@@ -2536,21 +2536,43 @@
emplate(
-event
+_.defaults(event, defaults)
));%0A
|
73e9032abda1307af0a15522ecab2222870c1236 | update profiles api to add lookup records for MON-134 | lib/services/profiles-api-service.js | lib/services/profiles-api-service.js | // Copyright 2014-2015, Renasar Technologies Inc.
/* jshint node: true */
'use strict';
var di = require('di');
module.exports = profileApiServiceFactory;
di.annotate(profileApiServiceFactory, new di.Provide('Http.Services.Api.Profiles'));
di.annotate(profileApiServiceFactory,
new di.Inject(
'Protocol.Tas... | JavaScript | 0 | @@ -292,16 +292,35 @@
Inject(%0A
+ 'Promise',%0A
@@ -494,16 +494,29 @@
actory(%0A
+ Promise,%0A
task
@@ -2232,24 +2232,244 @@
ode = _node;
+%0A%0A return Promise.resolve(macAddresses).each(function (macAddress) %7B%0A return waterline.lookups.upsertNodeToMacAddress(... |
3355b3258237252ab28558ccb06687ba4d01692d | update grammar | awx/ui/client/src/inventories-hosts/inventory-hosts.strings.js | awx/ui/client/src/inventories-hosts/inventory-hosts.strings.js | function InventoryHostsStrings (BaseString) {
BaseString.call(this, 'inventory-hosts');
let t = this.t;
let ns = this['inventory-hosts'];
ns.deletegroup = {
GROUP: count => t.p(count, 'group', 'groups'),
HOST: count => t.p(count, 'host', 'hosts'),
PROMOTE_GROUPS_AND_HOSTS: data... | JavaScript | 0.000022 | @@ -1637,31 +1637,31 @@
tion of the
-s
+S
mart
-i
+I
nventory cou
@@ -1700,23 +1700,23 @@
the
-s
+S
mart
-i
+I
nventory
%22%0A
@@ -1711,16 +1711,17 @@
nventory
+.
%22%0A %7D;
|
647822d7a6a032472dfc6ab2eba1e3f5902db655 | fix jwt regression | cypress/integration/oauth2/jwt.js | cypress/integration/oauth2/jwt.js | import { prng } from "../../helpers"
describe("OAuth 2.0 JSON Web Token Access Tokens", () => {
before(function () {
// this must be a function otherwise this.skip() fails because the context is wrong
if (
Cypress.env("jwt_enabled") !== "true" &&
!Boolean(Cypress.env("jwt_enabled"))
) {
... | JavaScript | 0.000026 | @@ -1,16 +1,30 @@
import %7B
+ createClient,
prng %7D
@@ -28,17 +28,17 @@
%7D from
-%22
+'
../../he
@@ -42,17 +42,17 @@
/helpers
-%22
+'
%0A%0Adescri
@@ -568,17 +568,17 @@
)%0A%0A it(
-%22
+'
should r
@@ -665,17 +665,17 @@
e format
-%22
+'
, () =%3E
@@ -685,31 +685,51 @@
c
-onst
+reateClient(nc()).... |
d43859a1d5860634b1618d5dc1d354ab72994a00 | Disable the e10s first-run prompt | dom/automation/constant-prefs.js | dom/automation/constant-prefs.js | // Extend the time before slow script dialogs appear.
user_pref("dom.max_chrome_script_run_time", 75);
user_pref("dom.max_script_run_time", 60);
// Set additional prefs for fuzzing.
user_pref("browser.dom.window.dump.enabled", true);
user_pref("browser.sessionstore.resume_from_crash", false);
user_pref("layout.debug.e... | JavaScript | 0.000013 | @@ -1579,16 +1579,61 @@
false);%0A
+user_pref(%22browser.displayedE10SPrompt%22, 5);%0A
//user_p
|
cc448951f9957c1b423e12b9f3ad4ed4d3b2f894 | Update silhouette after getting texture at a new scale | src/SVGSkin.js | src/SVGSkin.js | const twgl = require('twgl.js');
const Skin = require('./Skin');
const SvgRenderer = require('scratch-svg-renderer').SVGRenderer;
const MAX_TEXTURE_DIMENSION = 2048;
class SVGSkin extends Skin {
/**
* Create a new SVG skin.
* @param {!int} id - The ID for this Skin.
* @param {!RenderWebGL} rendere... | JavaScript | 0 | @@ -2797,32 +2797,103 @@
nderer.canvas);%0A
+ this._silhouette.update(this._svgRenderer.canvas);%0A
|
0ee6cf5b6c3de67372d624967ce8153914e0781e | Set id on either control or container | input/utils/fieldset-item.js | input/utils/fieldset-item.js | 'use strict';
var copy = require('es5-ext/lib/Object/copy')
, d = require('es5-ext/lib/Object/descriptor')
, el = require('dom-ext/lib/Document/prototype/make-element')
, Db = require('../')
, relation = require('dbjs/lib/_relation')
, normRe = /[\0-,.-\/:-@\[-`\{-\uffff]/g
, apply ... | JavaScript | 0 | @@ -1981,24 +1981,25 @@
this.id);%0A%09
+(
this.input.c
@@ -1998,18 +1998,44 @@
.input.c
-as
+ontrol %7C%7C this.input.dom).se
tAttribu
|
17bef5051ad184d0e02bf71940fec1614a75df0e | Add clan data packet capturing | packetAnalyzer/sniff.js | packetAnalyzer/sniff.js | (() => {
window.overrideIP = '127.0.0.1:5000';
window.useOverrideIP = true;
let log = console.debug; // Can change to console.log if needed
console.clear();
if (localStorage['load_local_script']) {
log('Local script loaded');
}
let init = () => {
// The Socket.io script tag ... | JavaScript | 0 | @@ -75,11 +75,12 @@
P =
-tru
+fals
e;%0A%0A
@@ -4465,32 +4465,145 @@
%7D);%0A
+ s.on('sa', data =%3E %7B%0A log(%22Raw clan player data:%22, data);%0A %7D);%0A
|
7f1c424e2d067f52b939ffdbc994854cff8a9dba | Check that membershipWithRole organization_id is an object | instance-app/routes/index.js | instance-app/routes/index.js | "use strict";
var Error404 = require('../../lib/errors').Error404,
async = require('async'),
translationDecorator = require('../../lib/utils').translationDecorator,
_ = require('underscore');
exports.route = function (app) {
app.get('/search', require('../../lib/apps/search').search );
ap... | JavaScript | 0 | @@ -1005,24 +1005,108 @@
WithRole) %7B%0A
+ if (typeof membershipWithRole.organization_id === 'object') %7B%0A
@@ -1199,32 +1199,54 @@
zation_id.name;%0A
+ %7D%0A
|
91874629400cd936f251757bc572ca999d777358 | FIX linting | lib/components/src/panel_actionbar/panel_actionbar.js | lib/components/src/panel_actionbar/panel_actionbar.js | import React, { Children } from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
const Container = styled('ul')(({ theme }) => ({
position: 'absolute',
bottom: 0,
right: 0,
maxWidth: '100%',
display: 'flex',
listStyle: 'none',
margin: 0,
padding: 0,
borderTop: theme.... | JavaScript | 0.000001 | @@ -1267,21 +1267,74 @@
ndex
-, list
) =%3E (%0A
+ // eslint-disable-next-line react/no-array-index-key%0A
@@ -1382,41 +1382,8 @@
= 0%7D
- last=%7Blist.length - 1 === index%7D
%3E%0A
|
b87cf132888d3f7d504ae6fe0749cceecd974986 | Add ALL properties to stripesShape | src/Stripes.js | src/Stripes.js | import _ from 'lodash';
import PropTypes from 'prop-types';
import { isVersionCompatible } from './discoverServices';
export const stripesShape = PropTypes.shape({
logger: PropTypes.shape({
log: PropTypes.func.isRequired,
}).isRequired,
connect: PropTypes.func.isRequired,
hasPerm: PropTypes.func.isRequire... | JavaScript | 0 | @@ -53,16 +53,56 @@
types';%0A
+import %7B intlShape %7D from 'react-intl';%0A
import %7B
@@ -205,176 +205,2423 @@
%7B%0A
-logger: PropTypes.shape(%7B%0A log: PropTypes.func.isRequired,%0A %7D).isRequired,%0A connect: PropTypes.func.isRequired,%0A hasPerm: PropTypes.func.isRequired,%0A // XXX more
+// Prope... |
b0459ab983f350776daf4a7a9e1a1b8349c50c86 | Remove SVG container when finished with it | src/SvgSize.js | src/SvgSize.js | /* jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 2, maxerr: 50 */
/* global define, brackets, $ */
/*
* HTML Skeleton
* Created 2014 Triangle717
* <http://Triangle717.WordPress.com/>
*
* Licensed under The MIT License
* <http://opensource.org/licenses/MIT/>
*/
define(function (require, ... | JavaScript | 0 | @@ -2640,16 +2640,46 @@
gSize);%0A
+ $svgContainer.remove();%0A
re
|
67049aa9a7e8c942cd4599884f906edb96b8c9d5 | increase speed of transition based on swipe velocity | src/TabView.js | src/TabView.js | /* @flow */
import React, { Component, PropTypes } from 'react';
import {
Animated,
StyleSheet,
View,
PanResponder,
} from 'react-native';
import { NavigationStatePropType } from './TabViewPropTypes';
import type { Scene, NavigationState } from './TabViewTypes';
import type { GestureEvent, GestureState } from ... | JavaScript | 0.000003 | @@ -2170,16 +2170,33 @@
%0A %7D);%0A%0A
+ _vx: ?number;%0A%0A
_calcu
@@ -2531,9 +2531,9 @@
h /
-3
+5
)) %7B
@@ -3587,91 +3587,34 @@
-Animated.decay(translateAnim, %7B%0A velocity: gestureState.vx,%0A %7D).start()
+this._vx = gestureState.vx
;%0A
@@ -3909,18 +3909,111 @@
-%7D).start()... |
f34f5f65ce09365fc9b293bcd2acb2da3094a1e5 | update Tip | src/Tip/Tip.js | src/Tip/Tip.js | /**
* @file Tip component
*/
import React, {Component, createRef} from 'react';
import PropTypes from 'prop-types';
// Components
import TriggerPop from '../_TriggerPop';
// Statics
import Theme from '../Theme';
import Position from '../_statics/Position';
// Vendors
import classNames from 'classnames';
import Ut... | JavaScript | 0 | @@ -2118,24 +2118,58 @@
ypes.bool,%0A%0A
+ container: PropTypes.element,%0A
triangle
|
48b5403c9f7e1a79c8e775738dbbb857af0dde1e | Fix documentation of toolFactory | src/Toolbar.js | src/Toolbar.js | /**
* Collection of tool groups.
*
* @class
* @extends OO.ui.Element
* @mixins OO.EventEmitter
* @mixins OO.ui.GroupElement
*
* @constructor
* @param {OO.Factory} toolFactory Factory for creating tools
* @param {Object} [config] Configuration options
* @cfg {boolean} [actions] Add an actions section opposite... | JavaScript | 0.000001 | @@ -152,24 +152,31 @@
@param %7BOO.
+ui.Tool
Factory%7D too
@@ -1721,16 +1721,23 @@
urn %7BOO.
+ui.Tool
Factory%7D
|
fb378b8ba292e5c2d82d0644d6a29ab32beba32d | Fix for #189: added FileProperties.dateCreated property for PB only. | api/blackberry_io_file_FileProperties.js | api/blackberry_io_file_FileProperties.js | /*
* Copyright 2010-2011 Research In Motion Limited.
*
* 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 ... | JavaScript | 0 | @@ -1822,32 +1822,166 @@
.size = %7B %7D;%0D%0A%0D%0A
+/**%0D%0A* File creation date %0D%0A* @type Date%0D%0A* @readOnly%0D%0A* @PB10%0D%0A*/%0D%0Ablackberry.io.file.FileProperties.prototype.dateCreated = %7B %7D;%0D%0A%0D%0A
/**%0D%0A* File modi
|
692b72f15376e4d15912783558555bdaf4a024a7 | improve the dropdown options description | packages/dash-core-components/src/components/Dropdown.react.js | packages/dash-core-components/src/components/Dropdown.react.js | import PropTypes from 'prop-types';
import {isNil, pluck, omit, type} from 'ramda';
import React, {Component} from 'react';
import ReactDropdown from 'react-virtualized-select';
import createFilterOptions from 'react-select-fast-filter-options';
import './css/react-virtualized-select@3.1.0.css';
import './css/react-vir... | JavaScript | 0.000054 | @@ -3724,16 +3724,128 @@
options
+ %7Blable: %5Bstring%7Cnumber%5D, value: %5Bstring%7Cnumber%5D%7D,%0A * an optional disabled field can be used for each option
%0A */
|
ae7399d4aff42c5aa22008fe739edd7ac2239e21 | add devicePixelRatio to timeine channel | packages/element/input-timeline/ChannelTimelineInputElement.js | packages/element/input-timeline/ChannelTimelineInputElement.js | class ChannelTimelineInputElement extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' }).innerHTML = `
<style>
:host {
display: block;
position: relative;
height: 20px;
width: 360px;
background: lightgrey;
}
... | JavaScript | 0 | @@ -2578,16 +2578,35 @@
ct.width
+ * devicePixelRatio
;%0A
@@ -2656,16 +2656,35 @@
t.height
+ * devicePixelRatio
;%0A
|
af4f07cb263f98d27ed424fca48a3eb1212afa6a | include flows stop/start state | packages/node_modules/@node-red/runtime/lib/api/diagnostics.js | packages/node_modules/@node-red/runtime/lib/api/diagnostics.js |
const os = require('os');
const fs = require('fs');
let runtime;
let isContainerCached;
let isWSLCached;
const isInWsl = () => {
if (isWSLCached === undefined) {
isWSLCached = getIsInWSL();
}
return isWSLCached;
function getIsInWSL() {
if (process.platform !== 'linux') {
r... | JavaScript | 0.000001 | @@ -2745,115 +2745,279 @@
-isStarted: runtime.isStarted(),%0A modules: modules,%0A version: runtime.settings.version
+version: runtime.settings.version,%0A isStarted: runtime.isStarted(),%0A flows: %7B%0A state: runtime.flows && runtime.flows.state(),%0A ... |
39be5cbe55cd1d99d7c3bc40f04075347742c47d | Convert Non-strict to strict equality checking Convert non-strict equality checking, using `==`, to the strict version, using `===`. | packages/truffle-sawtooth-seth-provider/src/subproviders/vm.js | packages/truffle-sawtooth-seth-provider/src/subproviders/vm.js | const doWhilst = require("async/doWhilst");
const inherits = require("util").inherits;
const Stoplight = require("web3-provider-engine/util/stoplight.js");
const createVm = require("ethereumjs-vm/dist/hooked").fromWeb3Provider;
const Block = require("ethereumjs-block");
const FakeTransaction = require("ethereumjs-tx/fa... | JavaScript | 0.000002 | @@ -5882,16 +5882,17 @@
ex%22)) ==
+=
0%0A
|
f3901e8e5f03709ff55606b3a77c2b15eaf888ef | Use base package | lib/node_modules/@stdlib/string/kebabcase/lib/main.js | lib/node_modules/@stdlib/string/kebabcase/lib/main.js | /**
* @license Apache-2.0
*
* Copyright (c) 2021 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 | @@ -711,124 +711,8 @@
ve;%0A
-var lowercase = require( '@stdlib/string/base/lowercase' );%0Avar replace = require( '@stdlib/string/base/replace' );%0A
var
@@ -760,20 +760,20 @@
);%0Avar
-trim
+base
= requi
@@ -801,199 +801,20 @@
ase/
-trim' );%0A%0A%0A// VARIABLES //%0A%0Avar RE_WHITESPACE = /%5Cs+/g;%0Avar RE... |
1a96d21330529dfa11d3b68c7143e0412cc485f0 | Rectify typo | app/assets/javascripts/master/utility.js | app/assets/javascripts/master/utility.js | // format the num
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
const formatNum = (number) => new Intl.NumberFormat().format(number);
// ('dd/mm/yyyy', 'hh:mm:ss') => datetime
// e.g.
// formatDate("08/04/2021", '10:11:00') => Thu Apr 08 2021 10:11:00 GMT+0800 (C... | JavaScript | 0.999999 | @@ -1123,17 +1123,17 @@
odalScro
-o
+l
l = (ins
@@ -1597,17 +1597,17 @@
odalScro
-o
+l
l(instan
@@ -1614,8 +1614,9 @@
ce)%0A%09%7D%0A%7D
+%0A
|
3283386a1eefd20f28382199efc5b45530ff5d79 | use jquery object in togglePopover | app/assets/javascripts/shared/popover.js | app/assets/javascripts/shared/popover.js | import $ from 'jquery';
import _ from 'underscore';
export function togglePopover(show) {
const isAlreadyShown = this.hasClass('js-popover-show');
if ((show && isAlreadyShown) || (!show && !isAlreadyShown)) {
return false;
}
this.popover(show ? 'show' : 'hide');
this.toggleClass('disable-animation js-pop... | JavaScript | 0 | @@ -80,24 +80,52 @@
ver(show) %7B%0A
+ const $popover = $(this);%0A
const isAl
@@ -137,20 +137,24 @@
Shown =
-this
+$popover
.hasClas
@@ -263,20 +263,24 @@
;%0A %7D%0A
-this
+$popover
.popover
@@ -307,20 +307,24 @@
de');%0A
-this
+$popover
.toggleC
|
3790e6a7f931c4ea0e920abb9c2bbf2298a73c6f | Remove test lines from controls.js | app/assets/javascripts/views/controls.js | app/assets/javascripts/views/controls.js | function loadImage(imageUrl, cell){
// $(cell).append("<img src=" + imageUrl + " class='mixer-image'>");
// $(cell).append("<a class='boxclose'></a>");
$(cell).find("img").map(function() {return $(this).attr("src", imageUrl)});
$(this).each(function(){
var css = 'url("'+imageUrl+'") ';
$(cell).find('.... | JavaScript | 0.000001 | @@ -2816,206 +2816,57 @@
() %7B
-%0A console.log(currentMixer.mix%5BcurrentMixer.target%5D._audioNode%5B3%5D.delayTime.value);%0A currentMixer.assignDelayTime((this.$.val()/10));%0A console.log(%22After: %22 + (this.$.val()/10));%0A
+ currentMixer.assignDelayTime((this.$.val()/10));
%7D%0A
|
c70c8336fe59592e56892eae990d5375856a86fe | delete unnecessary lines On branch master Your branch is up-to-date with 'muko/master'. | app/client/templates/components/index.js | app/client/templates/components/index.js | //Template.body.onCreated(function bodyOnCreated() {
// this.state = new ReactiveDict();
// Meteor.subscribe('contracts');
//});
// new Mongoは、root/lib内で宣言
//
// 下記のように、contractsを定数で設定すれば、helperに適切に数字が渡る
// 本当はDBから取ってくることが必要
var contracts = [
{
_id: 100,
seller: 100,
price: 100,
amount... | JavaScript | 0.000024 | @@ -1,724 +1,4 @@
-//Template.body.onCreated(function bodyOnCreated() %7B%0A// this.state = new ReactiveDict();%0A// Meteor.subscribe('contracts');%0A//%7D);%0A// new Mongo%E3%81%AF%E3%80%81root/lib%E5%86%85%E3%81%A7%E5%AE%A3%E8%A8%80%0A//%0A// %E4%B8%8B%E8%A8%98%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%80%81contracts... |
5970a9a8bd408824b734b51396691a60c28a1b60 | Update legend_basic.js | quicktests/legend_basic.js | quicktests/legend_basic.js | var quicktest = function(svg, data, Plottable) {
var dataseries1 = new Plottable.DataSource(data[0].slice(0, 20));
dataseries1.metadata({name: "series1"});
var dataseries2 = new Plottable.DataSource(data[1].slice(0, 20));
dataseries2.metadata({name: "series2"});
colorSc... | JavaScript | 0.000002 | @@ -2321,16 +2321,17 @@
%22title%22%5D
+;
%0Aquickte
|
29fdd0610a4d758e26459204abf7db898820f3b7 | Add debug logs | src/web/lib/controller.js | src/web/lib/controller.js | import pubsub from 'pubsub-js';
import { WORKFLOW_STATE_UNKNOWN } from '../constants';
import socket from './socket';
import log from './log';
class CNCController {
port = '';
callbacks = {
'serialport:list': [],
'serialport:open': [],
'serialport:close': [],
'serialport:error':... | JavaScript | 0.000002 | @@ -839,24 +839,93 @@
.args) =%3E %7B%0A
+ log.debug('socket.on(%22' + eventName + '%22):', args);%0A%0A
|
b990453e37a9903451af0ae86a3a1352cea6f1c6 | Clear dock node children only once. | app/services/dashboard/static/js/main.js | app/services/dashboard/static/js/main.js | Handlebars.registerHelper('equals', function(op1, op2, options) {
return op1 == op2? options.fn(this): options.inverse(this);
});
var Socket = function(namespace, params) {
params.listeners = params.listeners || {};
params.initMsg = params.initMsg || 'first-dummy-message';
console.log("Connecting to: ... | JavaScript | 0 | @@ -4826,24 +4826,51 @@
tems = %7B%7D;%0A%0A
+ $(selector).html(%22%22);%0A%0A
return %7B
@@ -4909,42 +4909,8 @@
) %7B%0A
- $(selector).html(%22%22);%0A
|
61e1d3d1c620f0407e936893f5fef5686cb762ef | Fix wedding timer | app/services/wedding-countdown-helper.js | app/services/wedding-countdown-helper.js | import Ember from 'ember';
const { Service, set, get } = Ember;
const dateOfWedding = new Date('2017-10-28:17:00');
export default Service.extend({
daysLeft: 0,
hoursLeft: 0,
minutesLeft: 0,
secondsLeft: 0,
reCalc() {
let dateNow = new Date();
if (dateNow > dateOfWedding) {
set(this, 'daysLef... | JavaScript | 0.00011 | @@ -104,14 +104,23 @@
0-28
-:
+T
17:00
+:00-04:00
');%0A
|
1adc75a7f517fea0658b2648acfff3451d8ba21b | add prevent default option for event listeners | lib/listener-expression.js | lib/listener-expression.js | export class ListenerExpression {
constructor(eventManager, targetEvent, sourceExpression, delegate){
this.eventManager = eventManager;
this.targetEvent = targetEvent;
this.sourceExpression = sourceExpression;
this.delegate = delegate;
this.discrete = true;
}
createBinding(target){
return... | JavaScript | 0 | @@ -94,16 +94,32 @@
delegate
+, preventDefault
)%7B%0A t
@@ -289,16 +289,58 @@
= true;%0A
+ this.preventDefault = preventDefault;%0A
%7D%0A%0A c
@@ -497,16 +497,43 @@
target
+,%0A this.preventDefault
%0A )
@@ -629,24 +629,40 @@
sion, target
+, preventDefault
)%7B%0A this.
@@ -827,16 +827... |
f5edc83693326a1e09896b28badb42260d76400a | Add °C to Average Temperature Breach Card | src/widgets/BreachCard.js | src/widgets/BreachCard.js | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Text, StyleSheet } from 'react-native';
import { DARKER_GREY, APP_FONT_FAMILY, COLD_BREACH_BLUE, DANGER_RED } from '../globalStyles';
import {
selectAverageTemperature,
selectColdCumulativeBreach,
sele... | JavaScript | 0 | @@ -166,16 +166,22 @@
ER_GREY,
+ GREY,
APP_FON
@@ -241,24 +241,24 @@
balStyles';%0A
-
%0Aimport %7B%0A
@@ -1090,24 +1090,50 @@
ase 'text':%0A
+ icon = config.icon;%0A
textSt
@@ -1893,16 +1893,45 @@
string,%0A
+ icon: PropTypes.element,%0A
%7D).isR
@@ -2530,32 +2530,32 @@
erature(state),%0A
-... |
edee74f1f02a8290194960b3986657debe8e2bc0 | Add password editing prop to TextEditor | src/widgets/TextEditor.js | src/widgets/TextEditor.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View, StyleSheet } from 'react-native';
import { Button } from 'react-native-ui-components';
import { TextInput } from './TextInput';
import { buttonStrings } from '../localizati... | JavaScript | 0.000001 | @@ -871,16 +871,33 @@
dEditing
+, secureTextEntry
%7D = thi
@@ -1309,32 +1309,76 @@
dEditing(text)%7D%0A
+ secureTextEntry=%7BsecureTextEntry%7D%0A
/%3E%0A
@@ -1690,81 +1690,77 @@
r;%0A%0A
-/* eslint-disable react/forbid-prop-types, react/require-default-props */
+TextEditor.defaultProps = %... |
17c0de52c8688d8b8e080218039525e4bb54503b | Update migration | migrations/20180315140159_add_announcement_to_post.js | migrations/20180315140159_add_announcement_to_post.js |
exports.up = function(knex, Promise) {
return knex.schema.table('posts', t => {
t.boolean('announcement').defaultTo(false)
})
};
exports.down = function(knex, Promise) {
return knex.schema.table('posts', t => {
t.boolean('announcement')
})
};
| JavaScript | 0.000001 | @@ -210,38 +210,35 @@
osts', t =%3E
-%7B%0A t.boolea
+t.dropColum
n('announcem
@@ -242,17 +242,13 @@
cement')
-%0A %7D
)%0A%7D;%0A
|
e48a51e0bce22bdebc2e29cfa4ae3b8491575362 | Fix 'voted' check after sign-in. Fixes #326 | lib/laws/proto.js | lib/laws/proto.js | /**
* Module dependencies.
*/
var citizen = require('citizen');
var Emitter = require('emitter');
var request = require('request');
var render = require('render');
var log = require('debug')('democracyos:laws-proto');
/**
* Expose `Laws` proto constructor
*/
module.exports = Laws;
/**
* Laws collection constru... | JavaScript | 0.000001 | @@ -553,62 +553,42 @@
//
-Fixes #293%0A // Remove if nothing else goes buggy%0A //
+Re-fetch laws on citizen sign-in%0A
cit
|
526ca32f801e02935e0f3219b22e765bf8be7c23 | revert to env.syncImport | lib/less/index.js | lib/less/index.js | var path = require('path'),
url = require('url'),
request,
fs = require('fs');
var less = {
version: [1, 5, 0],
Parser: require('./parser').Parser,
tree: require('./tree'),
render: function (input, options, callback) {
options = options || {};
if (typeof(options) === 'funct... | JavaScript | 0.000001 | @@ -6361,17 +6361,16 @@
ncImport
-s
) %7B%0A
|
274e871dccaa289ce2f7bcbbe6be32b363a5e54e | increase time don't pipe to screen | lib/make/index.js | lib/make/index.js | "use strict";
var Promise = require('bluebird')
, url = require('url')
, path = require('path')
, winston = require('winston')
, config = require('config-url')
, fse = require('fs-extra')
, _ = require('lodash')
, uuid = require('uuid')
, Docker ... | JavaScript | 0.000001 | @@ -1197,32 +1197,35 @@
;%0A%0A
+ //
stream.pipe(pro
@@ -1458,9 +1458,14 @@
out(
-5
+60 * 1
000)
|
5581b145a28d36df23467ffb59a7343687ed651a | Update test for resource info panel | app/pages/resource/resource-info/__tests__/ResourceInfo.test.js | app/pages/resource/resource-info/__tests__/ResourceInfo.test.js | import React from 'react';
import Panel from 'react-bootstrap/lib/Panel';
import Immutable from 'seamless-immutable';
import WrappedText from '../../../../shared/wrapped-text/WrappedText';
import Resource from '../../../../utils/fixtures/Resource';
import Unit from '../../../../utils/fixtures/Unit';
import { shallowWi... | JavaScript | 0 | @@ -1766,33 +1766,33 @@
s).toHaveLength(
-3
+2
);%0A expect(pa
|
24fce94d3c44856d4c28af6ed5c1418ceb0b235f | Update analyze.js | src/analyze.js | src/analyze.js | var utils = require('./utils.js');
module.exports = function (signalName, actions) {
var traverse = function (actions, parentActions, parentIndex) {
actions.forEach(function (action, index) {
if (Array.isArray(action)) {
traverse(action, actions, index);
} else {
var nextPaths = actio... | JavaScript | 0.000001 | @@ -187,24 +187,288 @@
n, index) %7B%0A
+ %0A if (typeof action === 'undefined') %7B%0A throw new Error(%5B%0A 'Cerebral: Action number %22' + index + '%22 in signal %22' + signalName + %0A '%22 does not exist. Check that you have spelled it correctly!'%0A %5D.join(''));%0A ... |
fd116147aa55226caea1dab899da50dd279fe45c | Fix #218 | src/modules/Publication/components/ActivateOrganization/ActivateOrganization.js | src/modules/Publication/components/ActivateOrganization/ActivateOrganization.js | import React, { Component } from 'react'
import Errors from '../../../../components/Errors/Errors'
import { markAsCancelable, cancelAllPromises } from '../../../../helpers/components'
import { updateOrganizationAccount } from '../../../../fetch/fetch'
import { msg, activate } from './ActivateOrganization.css'
class... | JavaScript | 0.000001 | @@ -679,16 +679,22 @@
ationId)
+, this
)%0A%0A r
@@ -716,16 +716,24 @@
ePromise
+.promise
%0A .
|
8920a370294bd38210f889400ead1afcf746d51d | simplify api structure example | src/api/api.js | src/api/api.js | module.exports = () => {
const usersCount = 10;
const createUser = (val, i) => ({
id: i,
name: `${val}_${i}`
});
const data = {
users: Array(usersCount)
.fill('user')
.map(createUser)
};
return data;
};
| JavaScript | 0.000125 | @@ -22,35 +22,8 @@
%3E %7B%0A
- const usersCount = 10;%0A
@@ -45,16 +45,10 @@
r =
-(val, i)
+id
=%3E
@@ -64,11 +64,8 @@
id
-: i
,%0A
@@ -81,18 +81,17 @@
e: %60
-$%7Bval%7D
+user
_$%7Bi
+d
%7D%60%0A
@@ -111,92 +111,108 @@
nst
-data = %7B%0A users: Array(usersCount)%0A .fill('... |
d7f3cee40c44fbc2898c22bb6c087f72e8a5175e | Fix multiple Print Layouts | django_project/lib_js/lib/ui/models/printControl.js | django_project/lib_js/lib/ui/models/printControl.js | 'use strict';
var _ = require('lodash');
var m = require('mithril');
var Jvent = require('jvent');
// serialize object to parameters list
// this should be moved to the generic utils package
var seralizeObjectToParams = function (obj) {
var str = '';
for (var key in obj) {
if (obj.hasOwnProperty(ke... | JavaScript | 0.000241 | @@ -3256,16 +3256,80 @@
Index%5D;%0A
+ this.vm.params.layout = this.vm.selected_layout.name();%0A
@@ -3354,32 +3354,75 @@
how print area.%0A
+%0A
+ if (this.vm.selected_scale) %7B%0A
this.vm.
@@ -3445,32 +3445,36 @@
ams.updated', %7B%0A
+
scal
@@ -3504,32 +3504,3... |
69c1eb904ac612f0621b0793d3817cd8a503c51d | Add Algolia search to the website | website/siteConfig.js | website/siteConfig.js | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
const sidebars = require(`${__dirname... | JavaScript | 0 | @@ -1345,16 +1345,110 @@
,%0A %5D,%0A%0A
+ algolia: %7B%0A apiKey: '09a11b10801874df7d226df4f2ce8e8f',%0A indexName: 'shrinerb',%0A %7D,%0A%0A
/* pat
|
3e81477c6a1fcd824ef7a786bd35e311860ffabe | Complete nums-commasa challenge | week-7/nums_commas.js | week-7/nums_commas.js | // Separate Numbers with Commas in JavaScript **Pairing Challenge**
// I worked on this challenge with: .
// Pseudocode
// Initial Solution
function number_with_commas(number){
var num = number.toString()
console.log(num.substr(3));
// for (var i=0; i < num.length; i++){
// console.log(num[i])
//... | JavaScript | 0 | @@ -99,17 +99,27 @@
e with:
-.
+%5BBill Deng%5D
%0A%0A// Pse
@@ -131,136 +131,420 @@
de%0A%0A
-%0A%0A// Initial Solution%0A%0Afunction number_with_commas(number)%7B%0A%0A var num = number.toString()%0A%0A console.log(num.substr(3));%0A%0A%0A //
+/*%0AInput: number%0AOutput: string (with commas)%0ASteps:%0A%0Acal... |
4d63c80cf7c174593ed1d417bc81869c6b732a6f | Fix post-processing to remove empty properties | src/app/app.js | src/app/app.js | function clone(obj) {
return JSON.parse(JSON.stringify(obj));
}
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return... | JavaScript | 0.000002 | @@ -2668,16 +2668,64 @@
%7B%7D;%0A%09%7D%0A
+%09if (!openapi.paths) %7B%0A%09%09openapi.paths = %7B%7D;%0A%09%7D%0A
for
@@ -5912,32 +5912,239 @@
%7D%0A
+%09%09%09%09if (def.externalDocs && !def.externalDocs.url) %7B%0A%09%09%09%09%09Vue.delete(def, 'externalDocs');%0A%09%09%09%09%7D%0A%09%09%09%0... |
443524c6ae142591a3108fbc2628af727c3ed910 | 修改添加fone-size的位置 | src/article.js | src/article.js | define(function(require, exports, module) {
'use strict';
var $ = require('$'),
Widget = require('widget'),
Tips = require('tips');
var Article = Widget.extend({
defaults: {
container: null,
delegates: {
'click [data-role=set-fontsize] > a': function(e) {
this.setFont... | JavaScript | 0 | @@ -994,31 +994,15 @@
his.
-$('.content, .summary')
+element
;%0A
|
96b0791283b1b78951eab0c64e82cb9c426021f9 | Fix zepto migration | src/autocsp.js | src/autocsp.js | const _ = require('underscore');
const zepto = require('zepto-node');
const Base64 = require('crypto-js/enc-base64');
const algorithms = {
sha1: require('crypto-js/sha1'),
sha256: require('crypto-js/sha256'),
sha384: require('crypto-js/sha384'),
sha512: require('crypto-js/sha512')
}
const url_regexp = /(http... | JavaScript | 0.000003 | @@ -2375,59 +2375,34 @@
t').
-filter(':
not(
+'
%5Bsrc%5D
-)').filter(':not(
+,
%5Bnonce%5D
-)
').map((
node
@@ -2397,16 +2397,19 @@
').map((
+i,
node) =%3E
@@ -2453,41 +2453,8 @@
ript
-').filter(':not(%5Bsrc%5D)').filter('
%5Bnon
|
957cdcab1936a58c7b190999f4940fd187140956 | fix scale bounding box | src/app/toolbox/directives/basic/scale/scale.directive.js | src/app/toolbox/directives/basic/scale/scale.directive.js | app.directive('scale', function() {
return {
restrict: 'E',
scope: true,
templateUrl: 'app/toolbox/directives/basic/scale/scale.tpl.html',
controller: 'ScaleCtrl'
};
});
app.controller('ScaleCtrl', function($scope) {
$scope.toolname = 'scale';
$scope.active = $scope.conf... | JavaScript | 0.000001 | @@ -3754,16 +3754,17 @@
%7D);%0A
+%0A
@@ -3759,32 +3759,86 @@
);%0A%0A
+$scope.editEngine.setEditLayer(layer, EditMode.scale);
%0A $sc
@@ -3873,16 +3873,62 @@
(layer);
+%0A $scope.requestEditEngineUpdate();
%0A%0A
@@ -5641,32 +5641,71 @@
nsformations();%0A
+ ... |
99a83afe7669ce2c083ee78966d79ad380fa15cc | Make latex in build-sharing-server use katex | build-sharing-server/src/src/outputDisplay/latexView_static.js | build-sharing-server/src/src/outputDisplay/latexView_static.js | /*
* Copyright 2014 TWO SIGMA INVESTMENTS, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | JavaScript | 0.000006 | @@ -1195,57 +1195,19 @@
aa'%3E
-MATH_JAX_INLINE_BEGIN%7B%7Bmodel%7D%7DMATH_JAX_INLINE_END
+$%7B%7Bmodel%7D%7D$
%3Cbut
@@ -1755,192 +1755,223 @@
%22'%3E
-MATH_JAX_INLINE_BEGIN%7B%7Bmodel%7D%7DMATH_JAX_INLINE_END%3C/div%3E%22)(scope));%0A setTimeout(function () %7B%0A MathJax... |
2699e63fc04e2ed40e49c14d9262a1e10f0e1026 | use case sensitive javascript | docs/js/main.js | docs/js/main.js | function pageload() {
window.addEventListener('scroll', function(e){
var distanceY = window.pageYOffset || document.documentElement.scrollTop
var shrinkOn = 94
home = document.getElementById("home");
links = document.getElementById("jumplinks");
search = document.getElementBy... | JavaScript | 0 | @@ -1139,25 +1139,25 @@
)%0A simple
-s
+S
earch.addEve
|
9645ffa434d33de5044e8f0d708a9886dbaae105 | Fix syntax warnings | src/bselect.js | src/bselect.js | (function($, undefined) {
"use strict";
function BSelect(element, settings) {
var that = this;
/**
* @since 0.1.0a
* @type {jQuery}
*/
this.element = element;
/**
* @since 0.1.0a
* @type {Object}
*/
this.settings = $.extend({}, $.bselect.defaults, settings);
... | JavaScript | 0.000225 | @@ -4124,17 +4124,17 @@
#' /%3E%22))
-,
+;
%0D%0A%09%09%09opt
@@ -4167,17 +4167,17 @@
option')
-,
+;
%0D%0A%09%09%09i =
|
aa70b8f9f5d7ecb634209a6452554b0ecdf04897 | Patch out robot listeners too. | src/capture.js | src/capture.js | "use strict";
var Capture = module.exports = function (robot) {
this.robot = robot;
this.captured = [];
this.completeCallback = null;
};
Capture.prototype.onComplete = function (callback) {
this.completeCallback = callback;
this._checkCompletion();
};
Capture.prototype.patchedRobot = function (id) {
var ... | JavaScript | 0 | @@ -725,16 +725,281 @@
apter;%0A%0A
+ // Patch out the robot reference in each registered Listener%0A patchedRobot.listeners = this.robot.listeners.map(function (listener) %7B%0A var patchedListener = Object.create(listener);%0A patchedListener.robot = patchedRobot;%0A return patchedListener;%0A %7D);%0A%0... |
c0ca857b3fcecea8ec4273eb3403185a07954979 | Use caseCompare in channel.js (#323) | src/channel.js | src/channel.js | 'use strict';
const _ = {
partial: require('lodash/partial'),
filter: require('lodash/filter'),
find: require('lodash/find'),
each: require('lodash/each'),
pull: require('lodash/pull'),
extend: require('lodash/extend'),
};
const DuplexStream = require('stream').Duplex;
module.exports = class ... | JavaScript | 0 | @@ -1510,32 +1510,55 @@
%0A if
+(irc_client.caseCompare
(event.channel =
@@ -1547,36 +1547,33 @@
re(event.channel
- ===
+,
this.name) %7B%0A
@@ -1559,32 +1559,33 @@
nnel, this.name)
+)
%7B%0A
@@ -1687,32 +1687,55 @@
%0A if
+(irc_client.caseCompare
(event.channel =
@@ -17... |
c2af333cefef24e4e2061a703d8bb8527fefe513 | Fix listing errors | src/components/EventLocationFilter/EventLocationFilter.js | src/components/EventLocationFilter/EventLocationFilter.js | import React, { Component, PropTypes } from 'react';
import _ from 'lodash';
import FaMapMarker from 'react-icons/lib/fa/map-marker';
import styles from './EventLocationFilter.sass';
// Value in meters (what server expects)
const distanceRange = [
{ value: 8047, label: '5 miles' },
{ value: 16093, label: '10 mile... | JavaScript | 0.000002 | @@ -1890,14 +1890,12 @@
tion
-)
%7C%7C
-(
next
@@ -1926,24 +1926,56 @@
ps.range)) %7B
+ // eslint-disable-line max-len
%0A this.
|
a9d51e200adfdf93a09eb44a66ac41992ab2e2db | Fix client_name | routes/registration.js | routes/registration.js | "use strict";
var db = require('../models');
var generate = require('../lib/generate');
var verify = require('../lib/verify');
var config = require('../config');
module.exports = function (app, options) {
// Client Registration Endpoint
// http://tools.ietf.org/html/draft-ietf-oauth-dyn-reg-14#section-3
app.post... | JavaScript | 0.000003 | @@ -561,17 +561,16 @@
//
-
TODO: Ch
@@ -684,16 +684,23 @@
eq.body.
+client_
name,%0A
|
bcfb509730d7a53666e0021fe7ee0508d9ab5f20 | Fix copyright year. | assets/js/components/dashboard-sharing/DashboardSharingSettings/constants.js | assets/js/components/dashboard-sharing/DashboardSharingSettings/constants.js | /**
* DashboardSharingSettings constants.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LI... | JavaScript | 0.000041 | @@ -79,9 +79,9 @@
202
-1
+2
Goo
|
18c9d60b563190fc632f6aead826af9041c2804f | Add SVG to MIME types | lib/mime-types.js | lib/mime-types.js | "use strict";
const path = require("path");
exports.lookup = filename => {
let ext = path.extname(filename).substr(1);
if (exports.types[ext]) {
return exports.types[ext];
}
return "";
};
exports.types = {
"7z": "application/x-7z-compressed",
"bat": "application/octet-stream",
"bmp": "image/bmp",
"css": ... | JavaScript | 0.000001 | @@ -836,16 +836,41 @@
x-sql%22,%0A
+%09%22svg%22: %22image/svg+xml%22,%0A
%09%22txt%22:
|
ec4a45c4c3a6f0756adcf8314f8e8681d3e59fa2 | add true bonde icon and avoid content overflow | packages/bonde-styleguide/src/layout/Footer/Footer.js | packages/bonde-styleguide/src/layout/Footer/Footer.js | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import Button from '../../content/Button/Button'
const FooterContent = styled.div`{
flex-grow: 1;
padding: 0 0 0 84.7px;
& a {
font-family: 'Nunito Sans', sans-serif;
font-size: 13px;
font-weight: 800... | JavaScript | 0 | @@ -141,16 +141,83 @@
/Button'
+%0Aimport IconColorful from '../../content/IconColorful/IconColorful'
%0A%0Aconst
@@ -664,73 +664,44 @@
%3C
-img alt='Logo' src='http://via.placeholder.com/150x30?text=BONDE'
+IconColorful name='bonde' size=%7B300%7D
/%3E%0A
@@ -805,24 +805,29 @@
%3CButton
+dark
onClick=... |
64f3d65a22a669392d6043dfef2f6e80ce676dc1 | Fix #24 - Improve JS code approach (functional) around presence updates | app/assets/javascripts/controllers/event_registrations.js | app/assets/javascripts/controllers/event_registrations.js | jQuery(function ($) {
'use strict';
var registrationUpdateURL = $('#event-registrations-list').data('url-base');
$('.js-ev-presence').on('click', 'button', function() {
var $el = $(this)
, registrationId = $el.parents('tr:eq(0)').data('id')
, url = registrationUpdateURL.rep... | JavaScript | 0 | @@ -38,86 +38,82 @@
%0A%0A
-var registrationUpdateURL = $('#event-registrations-list').data('url-base'
+$('.js-ev-presence').on('click', 'button%5Bvalue=yes%5D', markUserAsPresent
);%0A
-%0A
$(
@@ -154,19 +154,69 @@
tton
-', function
+%5Bvalue=no%5D', markUserAsAbsent);%0A%0A function markUserAsPresent
() %7B... |
f072cb404ef17f118ca1a04df667214dfcb4d069 | add a title to the tags index page | app/assets/javascripts/discourse/routes/tags-index.js.es6 | app/assets/javascripts/discourse/routes/tags-index.js.es6 | export default Discourse.Route.extend({
model() {
return this.store.findAll('tag');
},
actions: {
didTransition() {
this.controllerFor("application").set("showFooter", true);
return true;
}
}
});
| JavaScript | 0.000001 | @@ -89,16 +89,74 @@
;%0A %7D,%0A%0A
+ titleToken() %7B%0A return I18n.t(%22tagging.tags%22);%0A %7D,%0A%0A
action
|
cc61a2430b8ffc5e4d171c7fcadcb720074ce306 | Use integer pixel values for translation | packages/vx-tooltip/src/tooltips/TooltipWithBounds.js | packages/vx-tooltip/src/tooltips/TooltipWithBounds.js | import React from 'react';
import PropTypes from 'prop-types';
import { withBoundingRects } from '@vx/bounds';
import Tooltip from './Tooltip';
const rectShape = PropTypes.shape({
top: PropTypes.number.isRequired,
right: PropTypes.number.isRequired,
bottom: PropTypes.number.isRequired,
left: PropTypes.number.... | JavaScript | 0 | @@ -1537,16 +1537,69 @@
p;%0A %7D%0A%0A
+ left = Math.round(left);%0A top = Math.round(top);%0A%0A
return
|
6be7aae4c574aacfc93fb1d7885deb60f6034faa | Update response to receive object property. | assets/js/modules/thank-with-google/datastore/supporter-wall.js | assets/js/modules/thank-with-google/datastore/supporter-wall.js | /**
* Site Kit by Google, Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | JavaScript | 0 | @@ -1592,32 +1592,34 @@
llback: ( state,
+ %7B
supporterWallPr
@@ -1622,16 +1622,18 @@
llPrompt
+ %7D
) =%3E %7B%0A
|
8c4c8cbfb11f554cd568d7f55c82b6da4732d315 | Fix broken build due to unstubbed query params | packages_es6/ember-routing/tests/system/route_test.js | packages_es6/ember-routing/tests/system/route_test.js | import Ember from 'ember-metal/core'; // assert
import run from "ember-metal/run_loop";
import Container from 'container/container';
import EmberObject from "ember-runtime/system/object";
import EmberRoute from "ember-routing/system/route";
var route, routeOne, routeTwo, router, container, lookupHash;
function create... | JavaScript | 0 | @@ -851,16 +851,42 @@
ntainer;
+%0A route.set('_qp', null);
%0A%0A equa
|
9977cffb402c6748365f538127c374d58498e4ce | Fix portworx issue | app/components/volume-source/source-portworx/component.js | app/components/volume-source/source-portworx/component.js | import Component from '@ember/component';
import layout from './template';
import VolumeSource from 'shared/mixins/volume-source';
export default Component.extend(VolumeSource, {
layout,
field: 'portworx',
});
| JavaScript | 0 | @@ -205,15 +205,21 @@
portworx
+Volume
',%0A%7D);%0A
|
43fa2766c09b08e3d8c6dd6a351f8247f53fa0af | Use strict | lib/periodical_executor.js | lib/periodical_executor.js | angular.module('PeriodicalExecutor', []).factory('PeriodicalExecutor', function($interval) {
function PeriodicalExecutor(frequency, callback) {
var currentlyRunning = false;
this.tick = function() {
if (!currentlyRunning) {
try {
currentlyRunning = true;
callback();
... | JavaScript | 0.000083 | @@ -1,8 +1,23 @@
+%22use strict%22;%0A%0A
angular.
|
0e480295d988a31a4570c1e23c8c93597254f794 | Change Created On to Started On | pegasus/gtfar/static/js/controllers/runsController.js | pegasus/gtfar/static/js/controllers/runsController.js | /*
* Copyright 2007-2014 University Of Southern California
*
* 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 ... | JavaScript | 0 | @@ -6150,20 +6150,20 @@
Name : %22
-Crea
+Star
ted On%22,
|
b9b712377cfc67eeb784c54dee88aa85d6d8eea6 | Use same icon for attach and new deck/slide in history tab | components/Deck/ContentModulesPanel/ContentHistoryPanel/ContentChangeItem.js | components/Deck/ContentModulesPanel/ContentHistoryPanel/ContentChangeItem.js | import React from 'react';
import {List, Icon, Button} from 'semantic-ui-react';
//import moment from 'moment';
import revertRevision from '../../../../actions/history/revertRevision';
import {formatDate} from '../../ActivityFeedPanel/util/ActivityFeedUtil'; //TODO move to common
import {NavLink} from 'fluxible-router... | JavaScript | 0 | @@ -2187,16 +2187,97 @@
ttach':%0A
+ iconName = change.value.kind === 'slide'? 'file text' :'folder';%0A
|
139b1cb851624157448b7454cc3c82e428462f31 | fix code style | src/javascript/app/common/__tests__/content_visibility.js | src/javascript/app/common/__tests__/content_visibility.js | const expect = require('chai').expect;
const State = require('../../../_common/storage').State;
const { parseAttributeString,
shouldShowElement } = require('../content_visibility').__test__;
describe('ContentVisibility', () => {
describe('.parseAttributeString()', () => {
it('works for a single i... | JavaScript | 0.000022 | @@ -90,17 +90,16 @@
.State;%0A
-%0A
const %7B
|
858f9966c919b274acca20c875c692887a96656c | fix leumi-card scraper class name | lib/scrapers/leumi-card.js | lib/scrapers/leumi-card.js | import buildUrl from 'build-url';
import moment from 'moment';
import { BaseScraper, LOGIN_RESULT } from './base-scraper';
import { waitForRedirect, waitForPageLoad } from '../helpers/navigation';
import { waitUntilElementFound } from '../helpers/elements-interactions';
const BASE_URL = 'https://online.leumi-card.co.... | JavaScript | 0.001206 | @@ -4857,24 +4857,25 @@
%0A%0Aclass
-Discount
+LeumiCard
Scraper
@@ -5644,16 +5644,17 @@
ult
-Discount
+LeumiCard
Scra
|
6ecb860d41fea04b784203077dbfd5717e5d2ce6 | allow pasting of non-html content | document/static/js/paste.js | document/static/js/paste.js | /**
* @file Functions to deal with copy and paste.
* @copyright This file is part of <a href='http://www.fiduswriter.org'>Fidus Writer</a>.
*
* Copyright (C) 2013 Takuto Kojima, Johannes Wilm.
*
* @license This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero... | JavaScript | 0.000001 | @@ -3727,17 +3727,17 @@
ent.text
-c
+C
ontent =
|
e1b6642b23a1bcc650297e422449abaa9e24b676 | fix deserializePkgGroupsView() - I think | lib/pkg-groups.js | lib/pkg-groups.js | /** @babel */
/* global atom */
import PkgGroupsView from './pkg-groups-view'
import PkgGroupsModel from './pkg-groups-model'
import { CompositeDisposable, Disposable } from 'atom'
export default {
subscriptions: null,
model: null,
view: null,
activate (state) {
// Events subscribed to in atom's system ... | JavaScript | 0 | @@ -8,16 +8,45 @@
bel */%0A%0A
+import log4js from 'log4js'%0A%0A
/* globa
@@ -205,16 +205,84 @@
'atom'%0A%0A
+let logger = log4js.getLogger('pkg-groups')%0Alogger.level = 'debug'%0A%0A
export d
@@ -344,16 +344,16 @@
null,%0A%0A
-
activa
@@ -361,24 +361,51 @@
e (state) %7B%0A
+ // logger.debug(state)%0A
... |
7408105f287f26f862970375dab9e0b978c91205 | Update hook with force select logic. | assets/js/modules/analytics/hooks/useExistingTagEffect.js | assets/js/modules/analytics/hooks/useExistingTagEffect.js | /**
* Analytics useExistingTag custom hook.
*
* Sets the accountID and property if there is an existing tag.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... | JavaScript | 0 | @@ -929,16 +929,202 @@
tants';%0A
+import %7B STORE_NAME as CORE_MODULES %7D from '../../../googlesitekit/modules/datastore/constants';%0Aimport %7B STORE_NAME as MODULES_TAGMANAGER %7D from '../../tagmanager/datastore/constants';%0A
const %7B
@@ -1206,16 +1206,54 @@
ect() %7B%0A
+%09// Check for existing Analytics... |
0a979e2762a39f03c365b7470dbb4e835f4f992a | Implement wildcard in context | lib/subscriptionmanager.js | lib/subscriptionmanager.js | /*
* Copyright 2016 Teppo Kurki <teppo.kurki@iki.fi>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicabl... | JavaScript | 0.999998 | @@ -2684,16 +2684,144 @@
mmand))%0A
+ var pattern = subscribeCommand.context.replace('.', '%5C%5C.').replace('*', '.*')%0A var matcher = new RegExp('%5E' + pattern + '$')%0A
if (su
@@ -2882,24 +2882,37 @@
ta =%3E%0A
+matcher.test(
normalizedDe
@@ -2930,37 +2930,9 @@
text
- === subscribeCommand.context
+)... |
a7d6e75c630695033ec6de9215c3d2410e8575d9 | remove denodify | lib/tooling/pahole-tool.js | lib/tooling/pahole-tool.js | // Copyright (c) 2018, Compiler Explorer Authors
// 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,
// thi... | JavaScript | 0.999708 | @@ -1474,46 +1474,8 @@
'),%0A
- denodeify = require('denodeify'),%0A
@@ -1612,49 +1612,8 @@
nv);
-%0A%0A this.stat = denodeify(fs.stat);
%0A
@@ -1958,19 +1958,17 @@
return
-thi
+f
s.stat(c
|
0d606232b92049c91c5f4143ab35cf5e80768a74 | Change yandex config to csscomb config | lib/transformer-csscomb.js | lib/transformer-csscomb.js | 'use strict';
const Transformer = require('shark-transformer');
const CssComb = require('csscomb');
const extend = require('node.extend');
const co = require('co');
const VError = require('verror');
const path = require('path');
const loggerOpName = 'csscomb';
module.exports... | JavaScript | 0.000003 | @@ -597,14 +597,15 @@
mb('
-yandex
+csscomb
');%0A
|
4771da64e88b4c1db4804d637219d261c4437c9f | Use safe hasOwnProperty | lib/schematics.js | lib/schematics.js | "use strict";
var _ = require("lodash");
var BPromise = require("bluebird");
var handleFail = function (result) {
return function (msg) {
result.msg = msg;
result.valid = false;
};
};
var nonEmpty = function (v, rules) {
return function (customMsg) {
var msg = customMsg || "is empty";
rules.pus... | JavaScript | 0 | @@ -72,16 +72,67 @@
ird%22);%0A%0A
+var hasOwnProp = Object.prototype.hasOwnProperty;%0A%0A
var hand
@@ -156,24 +156,24 @@
(result) %7B%0A
-
return fun
@@ -1309,33 +1309,32 @@
n (customMsg) %7B%0A
-%0A
var v = %7B%7D;%0A
@@ -1357,53 +1357,106 @@
%5B%5D;%0A
-%0A
-_.each(create.tests, function (fn
+va... |
f6f9a2ae3e790c77b97741ec8999c8d69a96a309 | fix typos | lib/serialijse.js | lib/serialijse.js | /*global exports*/
(function () {
"use strict";
var assert = require("assert"),
_ = require("underscore");
var g_global = {};
function declarePersistable(constructor) {
var className = constructor.prototype.constructor.name;
if (g_global.hasOwnProperty(className)) {
... | JavaScript | 0.999974 | @@ -2,23 +2,22 @@
*global
-exports
+module
*/%0A(func
@@ -1821,33 +1821,33 @@
if (className
-=
+!
== %22Object%22) %7B%0A/
@@ -1845,153 +1845,12 @@
ect%22
-) %7B%0A// // default JSON object%0A// serializingObject%5B%22j%22%5D = object;%0A// return;%0A %7D... |
77a4cc51f74978ccb2279ce407d2096c5f814631 | fix bad cause property causing serializer to blow up | lib/serializer.js | lib/serializer.js | 'use strict';
// external modules
var _ = require('lodash');
var safeJsonStringify;
// try to require optional dependency
try {
safeJsonStringify = require('safe-json-stringify');
} catch (e) {
safeJsonStringify = null;
}
/**
* built in bunyan serializer for restify errors. it's more or less the
* standar... | JavaScript | 0 | @@ -1345,23 +1345,45 @@
e = (
-e.cause
+typeof e.cause === 'function'
) ? e.ca
|
54c6f8f19412de1818ceeb5b414a89c0a7be4328 | Implement "returning" for insert queries | lib/serializer.js | lib/serializer.js | /* sqb-serializer-oracle
------------------------
(c) 2017-present Panates
SQB may be freely distributed under the MIT license.
For details and documentation:
https://panates.github.io/sqb-serializer-oracle/
*/
const reservedWords = ['comment', 'dual'];
class OracleSerializer {
constructor() {
}
// noin... | JavaScript | 0.000022 | @@ -2681,16 +2681,567 @@
';%0A %7D%0A%0A
+ //noinspection JSUnusedGlobalSymbols,JSMethodCanBeStatic%0A /**%0A * @override%0A */%0A serializeReturning(instance, bindings, inf) %7B%0A let s = instance.serializeReturning(bindings, inf);%0A if (s) %7B%0A instance.returningParams = %7B%7D;%0A const ... |
6671f2e3fcd6f7929a431ca02f3c2ee9e1811207 | Update call.js | lib/sinon/call.js | lib/sinon/call.js | /**
* @depend ../sinon.js
* @depend match.js
*/
/*jslint eqeqeq: false, onevar: false, plusplus: false*/
/*global module, require, sinon*/
/**
* Spy calls
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Maximilian Antoni (mail@maxantoni.de)
* @license BSD
*
* Copyright (c) 2010-201... | JavaScript | 0.000006 | @@ -2482,16 +2482,17 @@
error ==
+=
%22undefi
@@ -2510,32 +2510,32 @@
is.exception) %7B%0A
-
@@ -2590,168 +2590,62 @@
-if (typeof error == %22string%22) %7B%0A return this.exception == error %7C%7C this.exception.name == error;%0A %7D%0A%0A return this.ex... |
c6ac668ca9694af330d9c81104139d70f5f72ba2 | fix date bug on safari | node_modules/app/standardise_date.js | node_modules/app/standardise_date.js | 'use strict'
var Maybe = require('data.maybe')
var maybe = Maybe.fromNullable
module.exports = function (date_string) {
if (!date_string || date_string.match('T')) { return date_string }
var parts = date_string.split(/[\/-]/)
return safe_date(
year_pad(parts[2]) + ', ' +
parts[1] + ', ' +
part... | JavaScript | 0.000002 | @@ -269,26 +269,25 @@
arts%5B2%5D) + '
-,
+/
' +%0A pa
@@ -300,10 +300,9 @@
+ '
-,
+/
' +%0A
|
0265f570193c2f3e8430ae8abf529d8899738bac | Fix Credit.equals | Source/Core/Credit.js | Source/Core/Credit.js | /*global define*/
define([
'./defined',
'./defineProperties',
'./DeveloperError'
], function(
defined,
defineProperties,
DeveloperError) {
"use strict";
var nextCreditId = 0;
var creditToId = {};
/**
* A credit contains data pertaining to how to... | JavaScript | 0.000483 | @@ -3581,17 +3581,52 @@
return (
-!
+left === right) %7C%7C%0A ((
defined(
@@ -3634,31 +3634,64 @@
eft)
+)
&&
- !defined(right)) %7C%7C
+%0A (defined(right)) &&%0A
(le
@@ -3711,16 +3711,17 @@
ght._id)
+)
;%0A %7D;
|
9f9385b891a805addb6946d925f3df26ebef114e | Update index.js | TriggerHappy/index.js | TriggerHappy/index.js | module.exports = function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');
if (req.query.name || (req.body && req.body.name)) {
res = {
// status: 200, /* Defaults to 200 */
body: "Hello " + (req.query.name || req.body.name) + ". You know h... | JavaScript | 0.000002 | @@ -342,12 +342,11 @@
e a
-boss
+pro
!%22%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.