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
7033493c119c1340cccd365bad4288fb266abc24
fix errors rate component
mirrorgate-dashboard/src/components/tiles/operations-metrics/operations-controller.js
mirrorgate-dashboard/src/components/tiles/operations-metrics/operations-controller.js
/* * Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
JavaScript
0.000003
@@ -1720,18 +1720,19 @@ te: -Math.round +parseFloat( (100 @@ -1764,16 +1764,28 @@ sNumber) +.toFixed(2)) ,%0A
831ac810a2ca01ee3d36e6d2a11cd30be66c076f
turned an array into a boolean
Mapper.js
Mapper.js
function QuickConnectMapper() { this.validationMap = {} this.dataMap = {} this.viewMap = {} function mapCommandToValCF(aCmd, aValCF) { if(aCmd == null || aValCF == null){ return } var funcArray = this.validationMap[aCmd] if(funcArray == null) { funcArray = [] this.validationMap[aCmd] = funcArray ...
JavaScript
0.998764
@@ -1087,16 +1087,18 @@ %09return +!! isThere%0A
c57d0c94eb45b393112530a32f3aac0e9a2f2a0f
Add implementation for while
src/blocks/scratch3_control.js
src/blocks/scratch3_control.js
const Cast = require('../util/cast'); class Scratch3ControlBlocks { constructor (runtime) { /** * The runtime instantiating this block package. * @type {Runtime} */ this.runtime = runtime; } /** * Retrieve the block primitives implemented by this package. ...
JavaScript
0
@@ -518,32 +518,77 @@ is.repeatUntil,%0A + control_while: this.repeatWhile,%0A cont @@ -1914,20 +1914,277 @@ tion is -true +false (repeat UNTIL), start the branch.%0A if (!condition) %7B%0A util.startBranch(1, true);%0A %7D%0A %7D%0A%0A repeatWhile (args, util) ...
732427a3fec08f0972da57aa168b2272931dea5f
fix custom sound not playing when receiving a notification (#1396)
src/browser/js/notification.js
src/browser/js/notification.js
// Copyright (c) 2015-2016 Yuya Ochiai // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. 'use strict'; const OriginalNotification = Notification; import {throttle} from 'underscore'; import {ipcRenderer, remote} from 'electron'; import osVersion from '../....
JavaScript
0
@@ -1760,16 +1760,27 @@ oundName + !== 'None' && opti @@ -1797,27 +1797,16 @@ oundName - !== 'None' ) %7C%7C isW @@ -1807,24 +1807,25 @@ %7C%7C isWin7);%0A +%0A if (cust
07a80f78b287d4f4ce34aaf8a5680d6289a757b6
clean comments
test/scrapers.table.test.js
test/scrapers.table.test.js
"use strict"; // mocha var chai = require("chai"); var expect = chai.expect; // scraper var sjs = require("scraperjs"); var scrapers = require("../scrapers/"); // constants var BASE_URL = "http://localhost"; var PORT = 3000; var SERVER_LISTENING = BASE_URL + ":" + PORT; var Ajv = require("ajv"); var ajv = Ajv(); var...
JavaScript
0
@@ -2192,55 +2192,8 @@ ) %7B%0A - // todo: decode the uri name before saving%0A
f1343add71a697ff08fd61117da5db1d23978d8c
remove hard-coded submodule path
test/scripts/test-themes.js
test/scripts/test-themes.js
/** Theme test routines for HackMyResume. Test all preinstalled HackMyResume themes along with a handful of JSON Resume themes for good measure. Uses the HMR verb interface. @module test-themes.js @license MIT. See LICENSE.md for details. */ var chai = require('chai') , expect = chai.expect , should...
JavaScript
0.000033
@@ -2328,53 +2328,37 @@ e', -'node_modules/fresh-test-themes/node_modules/ +path.parse( require.resolve(' fres @@ -2377,16 +2377,24 @@ rscore') + ).dir ) ;%0A //
9fcf8814f4116f4ea06d316acb4992d081327648
Add failing test for issue #624
test/sinon/issues/issues.js
test/sinon/issues/issues.js
/** * @author Christian Johansen (christian@cjohansen.no) * @license BSD * * Copyright (c) 2010-2014 Christian Johansen */ "use strict"; if (typeof require == "function" && typeof module == "object") { var buster = require("../../runner"); var sinon = require("../../../lib/sinon"); } buster.testCase("iss...
JavaScript
0
@@ -918,22 +918,704 @@ %7D%0A %7D%0A + %7D,%0A%0A %22#624%22: %7B%0A %22useFakeTimers should be idempotent%22: function () %7B%0A // Issue #624 shows that useFakeTimers is not idempotent when it comes to%0A // using Date.now%0A // This test verifies that it's workin...
ddb8c4877a583bf903fbf9686d12856f7fd4dc8d
Fix failing tests.
src/ui/axis/test/utils.test.js
src/ui/axis/test/utils.test.js
import chai, { expect } from 'chai'; import chaiEnzyme from 'chai-enzyme'; import forEach from 'lodash/forEach'; import { calcLabelPosition, calcAxisTranslate } from '../../../utils'; chai.use(chaiEnzyme()); describe('<Axis /> utils', () => { describe('calcLabelPosition', () => { const props = { translat...
JavaScript
0.000003
@@ -499,16 +499,27 @@ Y: '1em' +, rotate: 0 %7D,%0A @@ -565,16 +565,27 @@ '-0.2em' +, rotate: 0 %7D,%0A
391a4debad00718fa754ba9c5820c2b03c1b24c4
Fix years
app/javascript/components/widgets/forest-change/tree-loss-pct/selectors.js
app/javascript/components/widgets/forest-change/tree-loss-pct/selectors.js
import { createSelector, createStructuredSelector } from 'reselect'; import isEmpty from 'lodash/isEmpty'; import sumBy from 'lodash/sumBy'; import { format } from 'd3-format'; import { formatNumber } from 'utils/format'; import { yearTicksFormatter } from 'components/widgets/utils/data'; // get list data const getLos...
JavaScript
0.99871
@@ -536,57 +536,8 @@ gs;%0A -const getIsTropical = state =%3E state.isTropical;%0A cons @@ -971,16 +971,27 @@ const %7B + startYear, endYear @@ -1226,24 +1226,29 @@ - initalLoss + %7C%7C 0 ;%0A return @@ -1267,36 +1267,41 @@ (d =%3E d.year %3E= -2002 +startYear && d.year %3C= en @@ -2663,27 +2663,8 @@ g...
0bcc8e37de161212fde381fb982bfd2930fc7ad4
Use ReactReconciler to mount the root component when rendering
packages/specular/src/render.js
packages/specular/src/render.js
import debounce from 'lodash.debounce' import React, {PropTypes} from 'react' import ReactInstanceHandles from 'react/lib/ReactInstanceHandles' import ReactUpdates from 'react/lib/ReactUpdates' import ReactElement from 'react/lib/ReactElement' import instantiateReactComponent from 'react/lib/instantiateReactComponent' ...
JavaScript
0
@@ -36,47 +36,8 @@ ce'%0A -import React, %7BPropTypes%7D from 'react'%0A impo @@ -144,24 +144,80 @@ actUpdates'%0A +import ReactReconciler from 'react/lib/ReactReconciler'%0A import React @@ -624,408 +624,8 @@ )%0A%0A - const wrapperComponent = React.createClass(%7B%0A childContextTypes: %7B%0A specularQ...
4332affba6264cc886878b36873266f9e1dbc457
Fix typo in session check (sesion -> session)
src/node/db/SecurityManager.js
src/node/db/SecurityManager.js
/** * Controls the security of pad access */ /* * 2011 Peter 'Pita' Martischka (Primary Technology Ltd) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
JavaScript
0
@@ -5312,16 +5312,17 @@ d && ses +s ionAutho
eca9f36a7ac09fa3873610912dc2385060c1d428
make test-package-build start from zero
local-tasks/release.js
local-tasks/release.js
var fs = require("fs") gulp = require("gulp"), runSequence = require("run-sequence"), msbuild = require("gulp-msbuild") del = require("del"), exec = requireModule("exec"), spawn = requireModule("spawn"), findLocalNuget = requireModule("find-local-nuget"), es = require("event-stream"), lsr = requireM...
JavaScript
0.000037
@@ -2983,32 +2983,180 @@ es(true));%0A%7D);%0A%0A +gulp.task(%22build-binaries-for-nuget-packages-from-zero%22, %5B%22purge%22%5D, function (done) %7B%0A runSequence(%22build-binaries-for-nuget-packages%22, done);%0A%7D);%0A gulp.task(%22test- @@ -3198,32 +3198,42 @@ r-nuget-packages +-from-zero %22%5D, function (...
14a843028134d3efbf794d0a01b1c3736a47d60a
Update hocwp version 2.7.8
hocwp/js/hocwp-admin.min.js
hocwp/js/hocwp-admin.min.js
window.wp=window.wp||{},window.hocwp=window.hocwp||{},function(e){hocwp.addBulkAction=function(n){n=n||{};for(var i=0;i<n.length;i++)e("<option>").val(n[i][0]).text(n[i][1]).appendTo("select[name='action']"),e("<option>").val(n[i][0]).text(n[i][1]).appendTo("select[name='action2']")},function(){e(document).on("widget-u...
JavaScript
0
@@ -96,18 +96,18 @@ n)%7Bn=n%7C%7C -%7B%7D +%5B%5D ;for(var
400b536263273f33e36de391cdc02c8067787470
Combine refactored reducers
src/client/reducers/index.js
src/client/reducers/index.js
import { combineReducers } from 'redux'; import ContentReducer from "./ContentReducer"; import StatusReducer from "./StatusReducer"; import SettingsReducer from "./SettingsReducer"; const rootReducer = combineReducers({ content: ContentReducer, status: StatusReducer, settings: SettingsReducer }); export ...
JavaScript
0.000001
@@ -45,37 +45,129 @@ ort -ContentReducer from %22./Conten +ThreadReducer from %22./ThreadReducer%22;%0Aimport BoardReducer from %22./BoardReducer%22;%0Aimport BoardlistReducer from %22./Boardlis tRed @@ -268,17 +268,41 @@ ucer%22;%0A%0A +// TODO: Add PostReducer %0A - const ro @@ -339,24 +339,80 @@ -content...
e05c76048a76217034f5c7caab4daca6646b9dfc
default error message should be an empty string
src/client/reducers/login.js
src/client/reducers/login.js
import { CHECK_LOGIN, LOGOUT, GET_LOGIN_PROVIDERS, CHANGE_COUCHDB_PASSWORD, CREATE_COUCHDB_USER } from '../actions/login'; const initialState = { loginProviders: [], username: null, provider: null, admin: null, errors: {} }; const loginReducer = (state = initialState, action) =...
JavaScript
0.999059
@@ -874,34 +874,34 @@ ayload.error %7C%7C -%7B%7D +'' %7D%7D);%0A cas @@ -1028,18 +1028,18 @@ rror %7C%7C -%7B%7D +'' %7D%7D);%0A
047d746a35c672c10484dbeb85973e426746812d
fix input creation error for selects
react_components/input.js
react_components/input.js
//(function () { var OwlInput = React.createClass({ displayName: 'OwlInput', propTypes: { column: React.PropTypes.object.isRequired, value: React.PropTypes.node, row: React.PropTypes.object, }, keydown: function (event) { // Handling the focus of the input myself with tab and shift-tab is // aut...
JavaScript
0.000002
@@ -1905,16 +1905,28 @@ Val = $( +'%3Cp%3E').html( option.t
92fe7d409084f7fbbeb9539823cebc679f9aa1df
set SQL limit to 1 when querying single resource
volos-connectors-common/lib/sqlServerBase.js
volos-connectors-common/lib/sqlServerBase.js
var serverBase = require('./serverBase'); var Q = require('q'); var _ = require('lodash'); var SqlServerBase = function() { this.defaults = _.merge(this.defaults, {expand: false, limit: 100}); } SqlServerBase.prototype = new serverBase.ServerBase(); SqlServerBase.prototype.supplyHelpObject = function() { ret...
JavaScript
0.000001
@@ -1439,16 +1439,101 @@ var +limit;%0A var id = req.params.id;%0A if (id) %7B%0A limit = 1;%0A %7D else %7B%0A limit = @@ -1588,24 +1588,30 @@ lts.limit);%0A + %7D%0A queryStr @@ -5734,8 +5734,9 @@ verBase; +%0A
711774ae2f7833e3d64ef47efb215c8d27781299
Set globals in the correct place (#4700)
packages/core/src/renderers/systems/shader/ShaderSystem.js
packages/core/src/renderers/systems/shader/ShaderSystem.js
import WebGLSystem from '../WebGLSystem'; import GLProgram from './GLProgram'; import generateUniformsSync from '../../../shader/generateUniformsSync'; import defaultValue from '../../../shader/defaultValue'; import compileProgram from './shader/compileProgram'; let UID = 0; /** * Helper class to create a webGL Text...
JavaScript
0
@@ -1197,32 +1197,97 @@ dontSync)%0A %7B%0A + shader.uniforms.globals = this.renderer.globalUniforms;%0A%0A const pr @@ -4419,72 +4419,8 @@ ram; -%0A shader.uniforms.globals = this.renderer.globalUniforms; %0A%0A
f6ac741515c45c281d4b1237efc9c7534ea08778
fix ember flaky test (#3718)
packages/ember/tests/acceptance/sentry-performance-test.js
packages/ember/tests/acceptance/sentry-performance-test.js
import { test, module } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import { find, click, visit } from '@ember/test-helpers'; import { setupSentryTest } from '../helpers/setup-sentry'; const SLOW_TRANSITION_WAIT = 3000; function getTestSentryTransactions() { return window._sentryTestEvents.fil...
JavaScript
0
@@ -1266,16 +1266,34 @@ he last +%60afterRender%60 and %60destroy @@ -1310,18 +1310,19 @@ e event -is +are not alw @@ -1444,20 +1444,33 @@ ut.%0A -if ( +const lastSpan = event.sp @@ -1500,75 +1500,265 @@ - 1%5D - !== 'ember.runloop.destroy %7C undefined') %7B%0A event.spans.push( +;%0A if (lastS...
f7fbf12f5605d34aaeafb10f8b43dac293a7c131
Check that hook redefinition includes hook name in raised exception
test/unit/model/HookTest.js
test/unit/model/HookTest.js
var Watai = require('../helpers/subject'), my = require('../helpers/driver').getDriverHolder(), should = require('should'); /* Exported to be also used in WidgetTest. */ exports.checkHook = checkHook = function checkHook(subject, hookName, expectedContent) { it('should add a hook to the target object', function() ...
JavaScript
0
@@ -4322,17 +4322,28 @@ d.throw( -/ +new RegExp(' Cannot r @@ -4353,18 +4353,21 @@ fine - property/ +.*' + target) );%0A%09
6c57691f21ed560e511faf35f47180e068831618
set setDate test to pending
test/utils/set-date.spec.js
test/utils/set-date.spec.js
import moment from 'moment' import { setDate } from '../../src/utils' import { expect } from 'chai' describe('utils.setDate', () => { it('defaults to UTC time when no type passed', () => { expect(setDate([2017, 7, 16, 22, 30])).to.equal('20170817T043000Z') }) it('sets a local (i.e. floating) time when spec...
JavaScript
0.000005
@@ -132,16 +132,17 @@ %3E %7B %0A +x it('defa
743498955a8fb1144bd097903f6c20d85bfa8852
Remove test credentials. Not valid anymore
examples/login/app.js
examples/login/app.js
var express = require('express') , passport = require('passport') , util = require('util') , WeiboStrategy = require('../../').Strategy; var WEIBO_CLIENT_ID = "1768109599" var WEIBO_CLIENT_SECRET = "699b09da453deb16e00e94eb9cfb6522"; // Passport session setup. // To support persistent login sessions, Passpor...
JavaScript
0.000001
@@ -164,19 +164,23 @@ = %22 -1768109599%22 +--CLIENT_ID--%22; %0Avar @@ -207,40 +207,25 @@ = %22 -699b09da453deb16e00e94eb9cfb6522 +--CLIENT_SECRET-- %22;%0A%0A
eee90f317b73320a31310697eed4b643d73d2360
update FlatButton
src/FlatButton/FlatButton.js
src/FlatButton/FlatButton.js
/** * @file FlatButton component * @author liangxiaojun(liangxiaojun@derbysoft.com) */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import BaseButton from '../_BaseButton'; import TipProvider from '../TipProvider'; import Theme from '../Theme'; import Util from '../_vendors/Util'; i...
JavaScript
0
@@ -362,23 +362,8 @@ ';%0A%0A -export default clas @@ -3205,12 +3205,40 @@ n.BOTTOM%0A%0A%7D; +%0A%0Aexport default FlatButton;
42698e7818eeea4d0245927faaffaf0cd8656968
Simplify integer-editor test
packages/core-types/tests/integration/components/field-editors/integer-editor-test.js
packages/core-types/tests/integration/components/field-editors/integer-editor-test.js
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, fillIn } from '@ember/test-helpers'; import EmberObject from '@ember/object'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | field editors/integer editor', function(hooks) { setup...
JavaScript
0.004988
@@ -1090,24 +1090,8 @@ In(' -.field-editor %3E inpu @@ -1224,17 +1224,23 @@ assert. -e +strictE qual(thi @@ -1262,19 +1262,17 @@ ting'), -'5' +5 , 'model
e8c3ec09be419b76bd5d24d6c6fc2d88d6c7d522
update google maps directive to handle setup via another directives
luxjs/google/module.js
luxjs/google/module.js
// // Module for interacting with google API and services angular.module('lux.google', ['lux.services']) // .run(['$rootScope', '$lux', '$log', function (scope, $lux, log) { var analytics = scope.google ? scope.google.analytics : null; if (analytics && analytics.id)...
JavaScript
0
@@ -1697,34 +1697,44 @@ -// +scope: true, %0A @@ -1738,45 +1738,185 @@ -link: function (scope, element, attrs +controller: function() %7B%0A var self = this;%0A%0A // Add a marker to the map%0A self.addMarker = function(map...
ddc076e89433cc5d814cbd3014aa2db40cd0d196
Check status code in link prefetcher
src/plugins/irc-events/link.js
src/plugins/irc-events/link.js
"use strict"; const cheerio = require("cheerio"); const Msg = require("../../models/msg"); const request = require("request"); const Helper = require("../../helper"); const es = require("event-stream"); process.setMaxListeners(0); module.exports = function(client, chan, originalMsg) { if (!Helper.config.prefetch) {...
JavaScript
0
@@ -743,16 +743,54 @@ (res) %7B%0A +%09%09if (res === null) %7B%0A%09%09%09return;%0A%09%09%7D%0A%0A %09%09parse( @@ -1938,24 +1938,33 @@ ) %7B%0A%09%09return + cb(null) ;%0A%09%7D%0A%09var le @@ -2475,24 +2475,133 @@ %7B%0A%09%09%09%09return + cb(null);%0A%09%09%09%7D%0A%0A%09%09%09if (req.response.statusCode %3C...
81d205e5fb136e676bb6de536f0ad464c165d0be
Fix issue with Redirect not rendering history page
src/components/PrivateRoute.js
src/components/PrivateRoute.js
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Redirect, Route } from 'react-router'; class PrivateRoute extends Component { render() { const { component, isAuthenticated, ...rest } = this.props; return ( ...
JavaScript
0
@@ -98,16 +98,28 @@ t, Route +, withRouter %7D from @@ -721,16 +721,27 @@ default +withRouter( connect( @@ -889,10 +889,11 @@ teRoute) +) ;%0A
4fba5a235cd77654635ba5271eadfb9a86337032
set defaultPosition state in constructor
src/components/ToggleSwitch.js
src/components/ToggleSwitch.js
const React = require('react'); const Radium = require('radium'); const StyleConstants = require('../constants/Style'); class ToggleSwitch extends React.Component { constructor (props) { super(props); this.state = { activePosition: 'left' }; } componentWillMount () { this.setState({ ...
JavaScript
0.000001
@@ -224,95 +224,8 @@ = %7B%0A - activePosition: 'left'%0A %7D;%0A %7D%0A%0A componentWillMount () %7B%0A this.setState(%7B%0A @@ -274,17 +274,16 @@ on%0A %7D -) ;%0A %7D%0A%0A
661ee676f589f0b0174910a021baf93a473255db
Change the app name.
src/components/header/index.js
src/components/header/index.js
import { h, Component } from 'preact'; import { Link } from 'preact-router'; import style from './style'; export default class Header extends Component { render() { return ( <header class={style.header}> <h1>App</h1> <nav> <Link href="/">Home</Link> <Link href="/profile">Me</Link> <Link hr...
JavaScript
0.000005
@@ -216,11 +216,26 @@ %3Ch1%3E -App +Preact Boilerplate %3C/h1
13b8bacb840593956962cca37482032ccf8f97b6
fix objective keys
src/components/objectives.js
src/components/objectives.js
import React from 'react'; import OdreianDate from 'odreian-date' import groupBy from 'lodash.groupby'; import map from 'lodash.map'; import values from 'lodash.values'; import orderBy from 'lodash.orderby'; import formJson from '@quarterto/form-json'; import shortId from '@quarterto/short-id'; import {observe} from '....
JavaScript
0.000065
@@ -554,20 +554,18 @@ jective. -text +id %7D%3E%0A%09%09%09%3Cb @@ -1041,20 +1041,18 @@ jective. -text +id %7D%3E%7Bobjec
079abaa8301948f5e90b7ab8b057e924e2512eba
Remove border-radius on primary TextField
src/components/text-field.js
src/components/text-field.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Color from 'color'; import Radium from 'radium'; import Spacing from 'components/spacing'; import Text from 'components/text'; import { colors } from 'styles/color'; import { primaryFontStyle } from 'styles/font'; /** * Input element...
JavaScript
0
@@ -1445,24 +1445,47 @@ dleColor%7D%60,%0A + borderRadius: 0,%0A boxSiz
050999ddc5a08bd77ed897a1a0946f0f0bdf02b4
Add tests for our legacy Prebid utils patches
web/__tests__/prebidPatches.test.js
web/__tests__/prebidPatches.test.js
/* eslint-env jest */ // We patch Prebid and Prebid adapters to make sure bid adapters // pass the correct website domain when they load in the iframe // within the browser new tab page. We use patch-package to // modify the Node Prebid module code after it's installed. // This file makes sure the patched Prebid code ...
JavaScript
0
@@ -1213,94 +1213,8 @@ %7D%60%0A%0A -jest.mock(getPrebidSrcPath('cpmBucketManager'))%0Ajest.mock(getPrebidSrcPath('utils'))%0A%0A cons @@ -4660,12 +4660,1006 @@ %7D)%0A %7D) +%0A%0A // Note that this is deprecated in Prebid.%0A test('getTopWindowLocation returns expected value', () =%3E %7B%0A getMockWindow()...
2edafdb82a7be46ae0b907391b05632d3409f367
Fix ESLint
busstops/static/js/global.js
busstops/static/js/global.js
/*jslint browser: true*/ (function () { 'use strict'; var ad = document.getElementById('ad'), script; if (ad && !ad.innerHTML.trim()) { if (ad.clientWidth >= 768) { window.medianet_width = "728"; window.medianet_height = "90"; window.medianet_crid = "5...
JavaScript
0.998046
@@ -230,13 +230,13 @@ h = -%22728%22 +'728' ;%0A @@ -274,12 +274,12 @@ t = -%2290%22 +'90' ;%0A @@ -311,17 +311,17 @@ _crid = -%22 +' 55439311 @@ -321,17 +321,17 @@ 54393111 -%22 +' ;%0A @@ -368,17 +368,17 @@ d = -%22 +' 3111299 -%22 +' ;%0A
66caf96a95d6d1c154a880368e88413cac3f8297
Fix constantparams serialization bug (dims were not serialized).
nn/networks/misc.js
nn/networks/misc.js
var ad = require('../../ad'); var Network = require('../network.js'); // Network that takes no inputs and returns a constant set of parameters function ConstantParamNetwork(dims, optname) { Network.call(this); this.name = optname || 'constantparams'; this.parameters = [ad.params(dims, this.name)]; this.isTraining...
JavaScript
0
@@ -248,16 +248,35 @@ arams';%0A +%09this.dims = dims;%0A %09this.pa
82a516969fd14a2bcd356f354fc24b5bbff98935
Load lazy taxon tree using a single click
src/Sylius/Bundle/AdminBundle/Resources/private/js/sylius-lazy-choice-tree.js
src/Sylius/Bundle/AdminBundle/Resources/private/js/sylius-lazy-choice-tree.js
/* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ (function ($) { 'use strict'; $.fn.extend({ choiceTree: function (type, multiple, defaultLev...
JavaScript
0
@@ -4406,32 +4406,38 @@ Button, content, + icon, leafContainerEl @@ -4448,51 +4448,8 @@ t);%0A - icon.addClass('open');%0A @@ -4574,32 +4574,38 @@ utton, content, +icon, leafContainerEle @@ -4612,317 +4612,8 @@ ment -);%0A leafContainerElement.toggle(200, function ()...
649f873d57233a1f4b22043b694991fd99139f01
Add proper doc
walk-in-interview/src/main/webapp/interest-list.js
walk-in-interview/src/main/webapp/interest-list.js
/** * This file is specific to interest-list.html */ // TODO(issue/21): get the language from the browser const CurrentLocale = 'en'; /** * Import statements are static so its parameters cannot be dynamic. * TODO(issue/22): figure out how to use dynamic imports */ import {AppStrings} from './strings.en.js'; impo...
JavaScript
0.002139
@@ -1483,24 +1483,35 @@ eve all the +interested job listings @@ -1514,58 +1514,56 @@ ings - from the database%0A * given the sorting and order. +%0A * belonging to the current applicant user. %0A * Thi @@ -1595,16 +1595,18 @@ the -%0A * home + interest page @@ -1619,45 +1619,8 @@ aded - and also when the so...
4e15816ac95e6d35e34247197220c8ff63e82956
Check that an element was provided before trying to squeeze it
squeeze-text.js
squeeze-text.js
(function() { 'use strict'; if (typeof window.vebounce === 'undefined') { console.error('window.squeezeText requires vebounce.', 'https://github.com/wolfemm/vebounce.js'); return; } // Extends an object with default properties var extend = function(obj, ext) { for (var key in e...
JavaScript
0.000001
@@ -1094,24 +1094,60 @@ options) %7B%0A + if (!el) %7B%0A return;%0A %7D%0A%0A var elCo
615c1c8adc2ad1de0ba22a223e27cc2703cacb73
add html lang
src/containers/SEOContainer.js
src/containers/SEOContainer.js
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React, { PureComponent } from 'react'; import Helmet from 'react-helmet'; import { shape, string } from 'prop-types'; // ──────────────────...
JavaScript
0.00039
@@ -2861,17 +2861,59 @@ %7D%0A -/ +%3E%0A %3Chtml lang=%22en%22 /%3E%0A %3C/Helmet %3E%0A );
dba67522637c596e31f3af257f833f17df2667ee
Fix for event listening for new Core.Controller
src/controller/Controller.js
src/controller/Controller.js
//@flow import CTEventsService from '../services/CTEventsService'; import WebSocketService from '../services/WebSocketService'; import ToastNotificationService from '../services/ToastNotificationService'; import RoutingService from '../services/RoutingService'; import PresenterService from '../services/PresenterSe...
JavaScript
0
@@ -2409,36 +2409,46 @@ .forEach(key =%3E -this +presentingView .listenTo(presen @@ -3082,36 +3082,46 @@ .forEach(key =%3E -this +presentingView .listenTo(presen @@ -3787,20 +3787,30 @@ (key =%3E -this +presentingView .listenT
fada656fde494f633c197b7a94d83b074e4f6bab
Fix bug when loading session while playing another session
src/containers/Sounds/utils.js
src/containers/Sounds/utils.js
import { MAP_SCALE_FACTOR, TSNE_CONFIG, DEFAULT_DESCRIPTOR } from 'constants'; import { readObjectPropertyByPropertyAbsName } from 'utils/objectUtils'; import tsnejs from 'vendors/tsne'; import sassVariables from 'stylesheets/variables.json'; export const computeSoundGlobalPosition = (tsnePosition, spacePosition, m...
JavaScript
0
@@ -326,24 +326,97 @@ ition) =%3E %7B%0A + if (tsnePosition === undefined) %7B%0A return %7B cx: 0.0, cy: 0.0 %7D;%0A %7D%0A const %7B tr
8eaaa1ddb09b1efa53aaaf4ce1571e2cec57c892
use pxValue for labels
src/extensions/renderer.canvas.drawing-label-text.js
src/extensions/renderer.canvas.drawing-label-text.js
;(function($$){ var CanvasRenderer = $$('renderer', 'canvas'); // Draw edge text CanvasRenderer.prototype.drawEdgeText = function(context, edge) { if( !edge.visible() ){ return; } if( this.hideEdgesOnViewport && (this.dragData.didDrag || this.pinching || this.hoverData.dragging || this.data.wheel || th...
JavaScript
0
@@ -4133,17 +4133,19 @@ -size%22%5D. -v +pxV alue + %22
64070768e7fa8e098c1a24b81d8b11e20ae67be3
Fix #89 and keyboard nav handling for select2 cell
src/extensions/select2-cell/backgrid-select2-cell.js
src/extensions/select2-cell/backgrid-select2-cell.js
/* backgrid-select2-cell http://github.com/wyuenho/backgrid Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors Licensed under the MIT @license. */ (function (window, $, _, Backbone, Backgrid) { /** Select2CellEditor is a cell editor that renders a `select2` select box instead of the default ...
JavaScript
0
@@ -641,66 +641,32 @@ ts: -_.extend(%7B%7D, Backgrid.SelectCellEditor.prototype.events, %7B +%7B%0A %22close%22: %22save%22, %0A @@ -662,35 +662,36 @@ %22save%22,%0A %22c -los +hang e%22: %22save%22%0A %7D @@ -690,17 +690,16 @@ e%22%0A %7D -) ,%0A%0A / @@ -733,32 +733,192 @@ Options: null,...
496fed5525f576ec96f107b8c77df52ae479e3db
fix the bug that the scores under the labels are incorrect
web/app/assets/javascripts/umakadata/show.js
web/app/assets/javascripts/umakadata/show.js
function showRadar(endpoint_id, evaluation_id) { $.getJSON("/endpoints/" + endpoint_id + "/radar", function(json) { var data = json['data']; var avg = json['avg']; var context = $("#radar"); var labels = ["availability", "freshness", "operation", "usefulness", "validity", "performance"]; new Chart...
JavaScript
0.000011
@@ -83,16 +83,38 @@ int_id + + %22/%22 + evaluation_id + %22/radar
dbe52d6c459da6422b677748297d4c15f7c055b2
Rewrite richTree getter in TreeCache to better use promise
web/assets/js/browser/services/tree-cache.js
web/assets/js/browser/services/tree-cache.js
/* global define */ /* jshint indent:2 */ define([ 'app', 'services/rich-tree-factory', 'services/tree-factory', 'services/route-parameters-converter' ], function(app) { 'use strict'; app.factory('mbTreeCache', ['$q', '$rootScope', 'mbRichTreeFactory', 'mbTreeFactory', 'mbNodeFactory', 'mbRouteParametersC...
JavaScript
0.000001
@@ -1951,24 +1951,16 @@ unction( -deferred ) %7B%0A @@ -1960,16 +1960,104 @@ %7B%0A + // rich tree is not built, retrieve the current node with its reduced tree%0A return RoutePa @@ -2255,16 +2255,106 @@ +return node;%0A %7D).then(function(node) %7B%0A // build the rich tree%0A...
3c4c2f27aae8c0a06e32f8336a985ef8746a7095
Migrate console.disableYellowBox to LogBox.ignoreAllLogs()
ReactAndroid/src/androidTest/js/TestBundle.js
ReactAndroid/src/androidTest/js/TestBundle.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; // Disable YellowBox so we do not have to mock its dependencies console.disableYellowBox = true; // ...
JavaScript
0
@@ -223,22 +223,19 @@ Disable -Yellow +Log Box so w @@ -276,40 +276,77 @@ cies -%0Aconsole.disableYellowBox = +.%0Arequire('react-native/Libraries/LogBox/LogBox').ignoreAllLogs( true +) ;%0A%0A/
b40c4024fbbbd06a0c75c2597ae0992794cf9a43
Load versions if needed
src/main/client/containers/ActiveFeedSourceViewer.js
src/main/client/containers/ActiveFeedSourceViewer.js
import React from 'react' import { connect } from 'react-redux' import FeedSourceViewer from '../components/FeedSourceViewer' import { fetchFeedSourceAndProject, updateFeedSource, runFetchFeed, fetchFeedVersions, uploadFeed } from '../actions/feeds' const mapStateToProps = (state, ownProps) => { let feed...
JavaScript
0
@@ -1161,16 +1161,144 @@ %7D%0A + else if(!initialProps.feedSource.versions) %7B%0A dispatch(fetchFeedVersions(initialProps.feedSource)) %0A %7D%0A %7D,%0A
ec5f009b91d1721a2bbd47de16a270e168eeb1c8
Remove execute permission from config.template.js
config.template.js
config.template.js
// Change this filename to config.js var config = { slackWebhookURL: '', // URL of 'Incoming Webhook' Slack integration keyID: '', // Eve Online XML API keyID vCode: '', // Eve Online XML API verification code reminderIntervals: [60, 30, 10, 5, 1] // Time before event to send reminder in minutes ...
JavaScript
0.000002
ef030537abd6ad5bacd5320d81b47637e5a8b1a0
Add removal of supplier creidt in modules state
src/reducers/ModulesReducer.js
src/reducers/ModulesReducer.js
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import { UIDatabase } from '../database'; import { SETTINGS_KEYS } from '../settings'; import { SYNC_TRANSACTION_COMPLETE } from '../sync/constants'; /** * Simple reducer managing the stores current modules state. * * State shape: * { * usingD...
JavaScript
0
@@ -1394,90 +1394,8 @@ E);%0A - const usingSupplierCredits = checkModule(SETTINGS_KEYS.SUPPLIER_CREDIT_MODULE);%0A co @@ -1675,34 +1675,8 @@ er,%0A - usingSupplierCredits,%0A
d677e6c38486a0fa40808718231e2c1e4578d88c
add event to decision maker
ext/decision-maker.js
ext/decision-maker.js
var os = require('os'); var Client = require('../lib/client.js'); var utils = require('../lib/utils.js'); var DecisionMaker = class { constructor(editor, plugin) { this.editor = editor; this.plugin = plugin; this.client = new Client('plugins.kite.com', -1, '', true); this.path = '/' + editor.name + ...
JavaScript
0.001586
@@ -334,23 +334,29 @@ %0A%0A -canInstallKite( +shouldOfferKite(event ) %7B%0A @@ -438,16 +438,38 @@ ngify(%7B%0A + event: event,%0A
35f0a4fa595a0e90b6f72e30ce9cd4b5f4e80e71
call statically
tests/classes/model.spec.js
tests/classes/model.spec.js
import {Model} from '../../src/classes/Model'; // Test class class Test extends Model { constructor() { super(); } }; let test1 = (new Test()).$create({foo: 'bar'}); let test2 = (new Test()).$load({foo: 'baz'}); describe("class: Model", () => { it("does proper $new and $dirty checking", () =>...
JavaScript
0.000013
@@ -144,28 +144,21 @@ test1 = -(new Test()) +Model .$create @@ -170,16 +170,22 @@ : 'bar'%7D +, Test );%0Alet t
953bc5ec1b12d647851d2fb0375d1d17e065c630
Add directive `sub_filter_types types`.
src/directives/directives.js
src/directives/directives.js
/** * @file rewrite指令 * @author zdying */ var fs = require('fs'); var path = require('path'); var setHeader = require('./setHeader'); module.exports = { // proxy request config 'proxy_set_header': function (key, value) { log.debug('proxy_set_header -', key, value); var headers = this.req.headers; v...
JavaScript
0
@@ -3420,21 +3420,318 @@ es;%0A -%0A if (body + var res = this.res;%0A var headers = res.headers;%0A var contentType = (headers%5B'content-type'%5D %7C%7C '').split(/%5Cs*;%5Cs*/)%5B0%5D;%0A var subFilterTypes = variables.sub_filter_types %7C%7C '*';%0A var needReplace = subFilterTypes === '*' %7C%7C...
99cf9e19937f3373fc1db44c6c81cfa0b236227a
use Laves-nets as test for 2d branching generator
src/dsymbols/branchings2d.js
src/dsymbols/branchings2d.js
import * as I from 'immutable'; import * as generators from '../common/generators'; import * as DS from './delaney'; import * as DS2D from './delaney2d'; import * as props from './properties'; import * as Q from '../arithmetic/number'; const _loopless = (ds, i, j, D) => props.orbit(ds, [i, j], D) .every(E => ds.s(...
JavaScript
0
@@ -2089,16 +2089,118 @@ dule) %7B%0A + const covers = require('./covers');%0A const isIsohedral = ds =%3E DS.orbitReps2(ds, 0, 1).size == 1;%0A%0A const @@ -2239,44 +2239,211 @@ ');%0A +%0A -generators.results(branchings(ds)) +covers.covers(ds, 12)%0A .filter(isIsohedral)%0A .filter(DS2D.isProtoEucli...
e318706251cd711fb24ffad4572e7e9473de9bd1
Fix bug
src/endpoints/auth/accept.js
src/endpoints/auth/accept.js
'use strict'; /** * Module dependencies */ import rndstr from 'rndstr'; import AuthSess from '../../models/auth-session'; import Userkey from '../../models/userkey'; /** * Accept * * @param {Object} params * @param {Object} user * @return {Promise<object>} */ module.exports = (params, user) => new Promise(as...
JavaScript
0.000001
@@ -827,16 +827,41 @@ teOne(%7B%0A +%09%09_id: session._id%0A%09%7D, %7B%0A %09%09$set:
63dade10d2482adb80533f3e2ceda62237531336
Fix player sync issue
client/app/components/player.js
client/app/components/player.js
'use strict'; var _ = require('lodash') , utils = require('../../../shared/utils') , ComponentBase = require('../../../shared/core/component') , PlayerComponent; /** * Player component class. * @class client.components.PlayerComponent * @classdesc Component that adds player functionality. * @extends s...
JavaScript
0
@@ -1241,76 +1241,8 @@ ) %7B%0A - this.owner.on('entity.sync', this.onEntitySync.bind(this));%0A @@ -1374,24 +1374,84 @@ (elapsed) %7B%0A + this.setPosition(this.owner.attrs.get(%5B'x', 'y'%5D));%0A this @@ -2848,135 +2848,8 @@ /**%0A - * TODO%0A */%0A , onEntitySync: function...
a1e62fa2d17d7950a5da7f96153a7b15b0466491
Remove baobab reference
src/frontend/components/App.js
src/frontend/components/App.js
import React from 'react'; import Relay from 'react-relay'; import GroupCallSection from './GroupCallSection'; import Baobab from 'baobab'; import Dashboard from './Dashboard'; class App extends React.Component { render() { return ( <Dashboard> <GroupCallSection viewer={this.props.viewer} /> ...
JavaScript
0.000013
@@ -108,37 +108,8 @@ n';%0A -import Baobab from 'baobab';%0A impo
632153b03e3b6c1562c279002406752a322973d3
Remove @xstate/vue from the whitelisted automatically publishable packages
.github/actions/change-release-intent/main.js
.github/actions/change-release-intent/main.js
const { exec } = require('@actions/exec'); const getWorkspaces = require('get-workspaces').default; async function execWithOutput(command, args, options) { let myOutput = ''; let myError = ''; return { code: await exec(command, args, { listeners: { stdout: data => { myOutput += data....
JavaScript
0
@@ -524,19 +524,16 @@ ages = %5B -%0A 'xstate' @@ -533,18 +533,16 @@ xstate', -%0A '@xstat @@ -548,18 +548,16 @@ te/fsm', -%0A '@xstat @@ -567,26 +567,8 @@ est' -,%0A '@xstate/vue'%0A %5D;%0A%0A
b81708b5ac749a095addb9ebe94d7ebcdddd923b
Update devicedetector-production.js
devicedetector-production.js
devicedetector-production.js
var deviceDetector = (function (ua) { var detect = (function() { if(/(ipad|tablet|(android(?!.*mobile))|(windows(.)*touch)|kindle|playbook)/.test(ua)) return 'tablet'; else if(/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|skyfire|s40Ovibrowser|blazer|bolt|gobrowser|i...
JavaScript
0
@@ -120,17 +120,28 @@ ows( +?!.*phone)( . -) *touch) +) %7Ckin @@ -152,16 +152,46 @@ playbook +%7Csilk%7C(puffin(?!.*(IP%7CAP%7CWP))) )/.test( @@ -313,15 +313,41 @@ psp%7C -skyfire +nintendo ds%7Carchos%7Cskyfire%7Cpuffin %7Cs40 @@ -409,17 +409,16 @@ rk%7Cuzard - )/.test(
daa5bcfdc61ff55c80cb98f0af5eefe88997f28c
remove console.log
client/route-card-view/index.js
client/route-card-view/index.js
var analytics = require('analytics'); var convert = require('convert'); var Feedback = require('feedback-modal'); var mouseenter = require('mouseenter'); var mouseleave = require('mouseleave'); var Calculator = require('route-cost-calculator'); var RouteDirections = require('route-directions-table'); var RouteModal = r...
JavaScript
0.000006
@@ -1206,18 +1206,16 @@ ) %7B%0A -// var it
ee425cec85d59616ca669ad715958f5b26f76544
Fix missing space in updatePaddingTop
client/src/components/TopBar.js
client/src/components/TopBar.js
import React, {Component} from 'react' import NoPositionBanner from 'components/NoPositionBanner' import GeneralBanner from 'components/GeneralBanner' import SecurityBanner from 'components/SecurityBanner' import Header from 'components/Header' const GENERAL_BANNER_LEVEL = 'GENERAL_BANNER_LEVEL' const GENERAL_BANNER_...
JavaScript
0.000119
@@ -1420,16 +1420,17 @@ ddingTop + =%60$%7Btopb
e57adc42997b0b8a3d7ea396bb3fbf0cf1ab51d9
Implement saveDeclarations function
fetch-declarations.js
fetch-declarations.js
let fetch = require('node-fetch'); let Converter = require("csvtojson"); let Promise = require('bluebird'); let _ = require("lodash"); let tr = require('transliteration').transliterate; let readFile = Promise.promisify(require('fs').readFile); //const declarationsSuffix = '?format=json'; //const googleSheetsLinksFileM...
JavaScript
0.000004
@@ -237,19 +237,77 @@ dFile);%0A -%0A// +let writeFile = Promise.promisify(require('fs').writeFile);%0A%0A const de @@ -1149,32 +1149,142 @@ ges;%0A %7D)%0A + .then(function (judges) %7B%0A return Promise.all(_.map(judges, saveDeclarations));%0A %7D)%0A .then(r @@ -1303,15 +...
03ec7b8a615baeab185b204a062cc14d70a7b8cc
add index in commentSchema on submissionId
src/services/homework/model.js
src/services/homework/model.js
// model.js - A mongoose model // https://www.edu-apps.org/code.html - LTI Parameters // See http://mongoosejs.com/docs/models.html // for more of what you can do here. const mongoose = require('mongoose'); const { enableAuditLog } = require('../../utils/database'); const { Schema } = mongoose; const homeworkSchema ...
JavaScript
0
@@ -2049,25 +2049,27 @@ missionId: %7B - +%0A%09%09 type: Schema @@ -2118,17 +2118,32 @@ mission' - +, index: true,%0A%09 %7D,%0A%09crea
c7516ab82d67acedff01a5a69e3a732b1570f4d2
set as null if empty
src/functions/music/index.js
src/functions/music/index.js
const yt = require('ytdl-core'); const fs = require('fs'); var playlist = []; var stream = []; var current = []; exports.sound = sound; exports.play = play; exports.add = add; exports.skip = skip; exports.stop = stop; //A function to keep playing that stream function sound(message) { var voiceChannel = message.memb...
JavaScript
0.005797
@@ -2106,17 +2106,20 @@ nnel %7C%7C -0 +null ;%0A%0A%09if ( @@ -2163,37 +2163,8 @@ tion - %7C%7C !stream%5Bmessage.guild.id%5D ) %7B%0A @@ -2404,17 +2404,20 @@ nnel %7C%7C -0 +null ;%0A%09%0A%09if @@ -2462,36 +2462,8 @@ tion - %7C%7C stream%5Bmessage.guild.id%5D ) %7B%0A
ea300bd73a6cd040fb36fa27739fff86eeb1943d
Fix a bug that amp-carousel is not laying out children elements for inabox-lite. (#25380)
src/inabox/inabox-resources.js
src/inabox/inabox-resources.js
/** * Copyright 2019 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
JavaScript
0
@@ -3239,78 +3239,30 @@ -// all elements are immediately scheduled for layout after being added +this.pass_.schedule(); %0A %7D
a7c697334d8a27cfa5b9d9b8992dd59132d033ca
No need to flatten this
src/geo/map/cartodb-layer.js
src/geo/map/cartodb-layer.js
var Backbone = require('backbone'); var _ = require('underscore'); var config = require('cdb.config'); var MapLayer = require('./map-layer'); var CartoDBLayer = MapLayer.extend({ defaults: { attribution: cdb.config.get('cartodb_attributions'), type: 'CartoDB', active: true, query: null, opacity:...
JavaScript
0.999999
@@ -2909,18 +2909,8 @@ urn -_.flatten( this @@ -2980,17 +2980,16 @@ ;%0A %7D) -) ;%0A %7D%0A%7D)
9aab4e3f851da5c8dc501c496dbaf92da783ba08
Make get-id-from-url responsive to storageDomain from config
src/storage/get-id-from-url.js
src/storage/get-id-from-url.js
import configs from '../core/configs.js' // constants var URL_TO_ID_CACHE = {} var IS_HTTPS_URL = new RegExp('^https:\\/\\/storage\\.3d\\.io.*$') var IS_HTTP_URL = new RegExp('^http:\\/\\/storage\\.3d\\.io.*$') // main export default function getStorageIdFromUrl (url) { // check cache if (URL_TO_ID_CACHE[url]) r...
JavaScript
0
@@ -80,22 +80,16 @@ %0Avar IS_ -HTTPS_ URL = ne @@ -103,107 +103,95 @@ p('%5E +( http -s:%5C%5C/%5C%5C/storage%5C%5C.3d%5C%5C.io.*$')%0Avar IS_HTTP_URL = new RegExp('%5Ehttp:%5C%5C/%5C%5C/storage%5C%5C.3d%5C%5C.io.*$') +(s?))%5C%5C:%5C%5C/%5C%5C/(' + configs.storageDomain +'%7C' + configs.storageDomainNoCdn + ')')%...
2d654cf7bad2e58f9cb92fa2b882051c04557970
Update PointDepthPoint_ParamsGenerator.js
CNN/jsPerf/PointDepthPoint_ParamsGenerator.js
CNN/jsPerf/PointDepthPoint_ParamsGenerator.js
//import * as ParamDesc from "../Unpacker/ParamDesc.js"; import * as ValueDesc from "../Unpacker/ValueDesc.js"; import * as PointDepthPoint from "../Conv/PointDepthPoint.js"; import * as PointDepthPoint_Reference from "./PointDepthPoint_Reference.js";
JavaScript
0
@@ -1,9 +1,25 @@ +export %7B Base %7D; %0A - %0A//impor @@ -115,32 +115,89 @@ /ValueDesc.js%22;%0A +import * as ValueRange from %22../Unpacker/ValueRange.js%22;%0A import * as Poin @@ -321,8 +321,556 @@ e.js%22;%0A%0A +class Base %7B%0A%0A constructor() %7B%0A %7D%0A%0A//!!! ...unfinished... (2021/05/21 Remarked...
597565f88d47f41a1371a04afdb7a423c84b4d50
Add debug statement
src/store/participantsStore.js
src/store/participantsStore.js
/** * @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com> * * @author Joas Schilling <coding@schilljs.com> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as...
JavaScript
0.000008
@@ -2853,47 +2853,74 @@ %09 * -Resets the store to it's original state +Purges a given conversation from the previously added participants %0A%09 * @@ -3136,24 +3136,101 @@ , token)%0A%09%09%7D + else console.debug(%22The conversation you are trying to purge doesn't exist%22) %0A%09%7D,%0A%7D%0A%0Acons @@ -5130,48...
1c61b466602912179a82c553ec993600b6c04919
Fix setBitrate typo in VoiceChannel.js (#984)
src/structures/VoiceChannel.js
src/structures/VoiceChannel.js
const GuildChannel = require('./GuildChannel'); const Collection = require('../util/Collection'); /** * Represents a Server Voice Channel on Discord. * @extends {GuildChannel} */ class VoiceChannel extends GuildChannel { constructor(guild, data) { super(guild, data); /** * The members in this Voice ...
JavaScript
0
@@ -1838,21 +1838,16 @@ rn this. -rest. client.r
bb054ae268909bfbda5259ef97fc8f0309aba5ee
Enable mysterious property
src/js/components/TaskTable.js
src/js/components/TaskTable.js
import classNames from 'classnames'; import {Link} from 'react-router'; import React from 'react'; import CheckboxTable from './CheckboxTable'; import Icon from './Icon'; import MarathonStore from '../stores/MarathonStore'; import ResourceTableUtil from '../utils/ResourceTableUtil'; import TaskStates from '../constant...
JavaScript
0.000001
@@ -2533,32 +2533,57 @@ %7D,%0A %7B%0A + cacheCell: true,%0A classNam
9e88a91ae1fe192f11eb3122136bb981dec74022
Reset vacation type creation screen when creation succeed
vacation-webapp/src/main/webapp/script/vacation-type/controller.js
vacation-webapp/src/main/webapp/script/vacation-type/controller.js
// Create a controller with name VacationsCtrl to bind to the html page. vacationAppControllers.controller('VacationTypeCtrl', function($scope, vacationTypeService) { // Refresh the grid, calling the appropriate service method. $scope.save = function() { vacationTypeService .saveVacationType($scope.name, $scope...
JavaScript
0
@@ -434,38 +434,176 @@ %09%09%09%09 -//nothing to do for the moment +$scope.name = null;%0A%09%09%09%09%09$scope.beginDay = null;%0A%09%09%09%09%09$scope.beginMonth = null;%0A%09%09%09%09%09$scope.endDay = null;%0A%09%09%09%09%09$scope.endMonth = null;%0A%09%09%09%09%09$scope.numberOfDays = null; %0A%09%09%09
25c3a1909e3876bf0713b45b8a8fe4f33ee59bc3
Return keyword count object
gobbler/scraper.js
gobbler/scraper.js
if (Meteor.isServer) { Meteor.methods({ scrapePage: function ( url, gibletID ) { var webpage = Scrape.url(url); var $ = cheerio.load(webpage); $('script').remove(); var webpageText = $('body').text().replace(/\n/g, ' ').replace(/\t/g, ' ').replace(' ', ' '); var hash = Meteor.call('...
JavaScript
0.000008
@@ -1484,58 +1484,191 @@ ords - = foundKeywords.concat( matchingArr );%0A %7D);%0A +.push( matchingArr );%0A %7D);%0A var keywords = %7B%7D%0A foundKeywords.forEach(function(array) %7B%0A keywords%5Barray%5B0%5D%5D = array.length;%0A %7D);%0A console.log(keywords); %0A @@ -1681...
03c581f2d3a758ac94816ed6f75a5845b22e3a90
use action meta.tempId instead of payload.tempId
src/js/stores/PlaylistStore.js
src/js/stores/PlaylistStore.js
import assign from 'object-assign'; import EventEmitter from 'events'; import values from 'object-values'; import dispatcher from '../dispatcher'; const playlists = {}; const playlistWips = {}; let activePlaylist = null; let activeMedia = []; let selectedPlaylist = null; let selectedMedia = []; function selectPlaylis...
JavaScript
0.000002
@@ -1256,16 +1256,22 @@ payload +, meta %7D) =%3E %7B @@ -2146,39 +2146,36 @@ playlistWips%5B -payload +meta .tempId%5D = %7B%0A @@ -2184,23 +2184,20 @@ _id: -payload +meta .tempId, @@ -2357,39 +2357,36 @@ st(playlistWips%5B -payload +meta .tempId%5D);%0A @@ -2475,39 +2475,36 @@ te playlistWip...
b27e44906819cde9b8dac2727d77f9de67a54e42
Allow parametarized selectors
tasks/plugins/inline-styles.js
tasks/plugins/inline-styles.js
var minimatch = require('minimatch'); var cheerio = require('cheerio'); var postcss = require('postcss'); var mqpacker = require('css-mqpacker'); function plugin(opts) { return function(files, metalsmith, done) { // Get all file names. var css = Object.keys(files) // Get stylesheets file names. ....
JavaScript
0
@@ -1273,16 +1273,80 @@ ponent%60%0A + // %60.Component:nth-last-child(2)%60 =%3E %60.Component%60%0A @@ -1388,16 +1388,18 @@ (:+%5B%5C-%5Cw +() %5D+)+/g,
9d2769c974e46ea3a46d26bbc7a2075c5bb8b462
Add comments on service provider
templates/ango-service.tmpl.js
templates/ango-service.tmpl.js
angular.module('{{.ServiceName}}', []) .provider('{{.ServiceName}}', function($q) { var provider = {}; provider.setUrl = function(url) { provider.url = url; }; provider.$get = function() { //++ }; })
JavaScript
0
@@ -82,126 +82,2593 @@ %7B%0A%09 -var provider = %7B%7D;%0A%0A%09provider.setUrl = function(url) %7B%0A%09%09provider.url = url;%0A%09%7D;%0A%0A%09provider.$get = function() %7B%0A%09%09//++ +// SERVICE%0A%09var service = function(wsPath) %7B%0A%0A%09%09// PROCEDURES, as defined in .ango file%0A%09%09this.Add = funct...
1ef27dc81863f579b1d1339d42ddde98a009d980
Add navigation to home page
src/common/views/layouts/AppLayout.js
src/common/views/layouts/AppLayout.js
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import Helmet from 'react-helmet'; import activeComponent from 'react-router-active-component'; @connect(state => state) export default class AppLayout extends React.Component { static defaultProps = { title: '...
JavaScript
0
@@ -2138,16 +2138,79 @@ r-nav%22%3E%0A + %3CNavLink to=%22/%22 onlyActiveOnIndex%3EHome%3C/NavLink%3E%0A
b3bbaa7dc40ef4da62f050ff900bdadb57a940a8
fix bug which got introduced by accident
src/Compiler.js
src/Compiler.js
/** * Template provides directions an how to bind to a given element. * It contains a list of init functions which need to be called to * bind to a new instance of elements. It also provides a list * of child paths which contain child templates */ function Template(priority) { this.paths = []; this.children = ...
JavaScript
0
@@ -3927,22 +3927,16 @@ n(markup -, name )%7B%0A @@ -4120,16 +4120,22 @@ on(value +, name )%7B%0A
5bebf4f27109a64808ffd780b1044534b7831b69
fix install dbconfig check error bug
src/home/controller/index.js
src/home/controller/index.js
'use strict'; import Base from './base'; export default class extends Base { /** * 首页如果设置了自定义首页则渲染对应页面 * @return {[type]} [description] */ async indexAction() { let {frontPage} = await this.model('options').getOptions(); if(frontPage) { this.get('pathname', frontPage); return this.act...
JavaScript
0
@@ -1944,76 +1944,209 @@ -let isDBConfig = think.isObject(dbConfig.adapter) && !think.isEmpty( +dbConfig = dbConfig.adapter%5BdbConfig.type%5D;%0A let isDBConfig = think.isObject(dbConfig)%0A && dbConfig.host%0A && dbConfig.port%0A && dbC...
5725eb7d289480c22fe10364df0aa432852691fe
Fix a typo
src/http-auth-interceptor.js
src/http-auth-interceptor.js
/*global angular:true, browser:true */ /** * @license HTTP Auth Interceptor Module for AngularJS * (c) 2012 Witold Szczerba * License: MIT */ (function () { 'use strict'; angular.module('http-auth-interceptor', ['http-auth-interceptor-buffer']) .factory('authService', ['$rootScope','httpBuffer', function($...
JavaScript
1
@@ -1567,16 +1567,8 @@ ent: -angular- auth
dc604e63366535a5e4c30acba04dcd742ad4a14a
Update TilemapCreator.js
src/tilemaps/TilemapCreator.js
src/tilemaps/TilemapCreator.js
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ var GameObjectCreator = require('../gameobjects/GameObjectCreator'); var ParseToTilemap = require('./ParseToTilemap'); /** * Creates a Tilemap...
JavaScript
0
@@ -1048,16 +1048,17 @@ g : %7B%7D;%0A +%0A retu
f0a1ef8d9b5702b195edfffadbf5d1ece4847a0c
Simplify the Database class
src/Database.js
src/Database.js
import {EventEmitter} from 'events'; import Promise from 'bluebird'; import Collection from './Collection'; import Schema from './Schema'; // eslint-disable-line class Database extends EventEmitter { /** * Creates a new Database instance with the designated properties. * @param {Object} connectionProperties c...
JavaScript
0.000225
@@ -62,16 +62,68 @@ ebird';%0A +import _ from 'lodash';%0Aimport type from 'type-of';%0A import C @@ -153,16 +153,16 @@ ction';%0A - import S @@ -999,39 +999,227 @@ callback -: ?Function): Promise %7B +) %7B%0A // make sure callback is valid%0A if (!_.isFunction(callback) && !_.isUndefined(callback)) %7B%0A ...
ebbc0b7c8ff3fb6b0fcf3ae8ab481fda6f5fd94e
Store database name in "name" public property
src/Database.js
src/Database.js
import _ from 'lodash'; import Promise from 'bluebird'; import mysql from 'mysql'; import type from 'type-of'; import {Database} from 'naomi'; class MySqlDatabase extends Database { /** * Creates a new Database instance with the designated properties. * @param {Object} connectionProperties connection properti...
JavaScript
0.000002
@@ -1434,24 +1434,71 @@ operties);%0A%0A + this.name = connectionProperties.database;%0A this._po
c69a701e96c32930c4fafa82c262ee29a4a00aef
Add two missing keys to the defaults
src/Defaults.js
src/Defaults.js
var _ = require('lodash'); module.exports = { // The default model attributes. We'll initialize them all to // null if there are no values for them. This is the starting // point for the data that is sent to the server attributes: [], http: { baseRoute: null, eventPrefix: null, ...
JavaScript
0.000013
@@ -246,16 +246,53 @@ s: %5B%5D,%0A%0A + methods: %7B%7D,%0A%0A computed: %7B%7D,%0A%0A http
0484ad26e4592bd4a1175114b21d99d81e94190c
handle multiple matches in DescriptionMapper better (select pseudo-random)
src/utils/DescriptionMapper.js
src/utils/DescriptionMapper.js
// maps a number of properties to text descriptions, for example sector features to a sector description // add descriptions with properties required to match them // get description with an object // - returns description whose properties all match that of the object // - if several match, returns most specific descri...
JavaScript
0
@@ -44,16 +44,28 @@ riptions + / templates , for ex @@ -249,11 +249,11 @@ ies -all +ALL mat @@ -352,25 +352,198 @@ ies)%0A// -propertie +- if several match and they are equally specific, returns a %22random%22 one from matching (guaranteed to be the same one every time for the same properties)%0A// properties i...
6b1af28cd9371816644527cea6d28773d681393c
Delete useless codes
src/utils/template-analysis.js
src/utils/template-analysis.js
/* * Create by ccw in 2017-08-14 * */ var createVnode = require('./create-vnode').createVnode function analysisTag (tag) { /* * @param {String} tag - The html target label * */ var attrRegexp = /([\w-]+)|['"]{1}([^'"]*)['"]{1}/g // Test html target attributes regular expression var selfClosing = ...
JavaScript
0.000015
@@ -1,15 +1,17 @@ /* -%0A +*%0A * Create by @@ -10,16 +10,17 @@ eate +d by ccw in 2 @@ -19,23 +19,53 @@ ccw -i +o n 2017 --08-14%0A* +/8/11.%0A * Analysising the html string%0A */%0A @@ -3768,483 +3768,8 @@ ch)%0A - /*if (targetResult.type === 'tag' && options.components%5BtargetResult.name%...
57d6dc1d29a6bf5a8dcf958ebecb3ebcf9bb6a0a
Fix jshint error
client/app/models/message.js
client/app/models/message.js
// // Copyright 2009-2014 Ilkka Oksanen <iao@iki.fi> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required b...
JavaScript
0.000006
@@ -2089,16 +2089,17 @@ ck')) != += -1) %7B%0A
52f53f3aa585f5faf6936943baea4b70dfcdfb71
Use alphabetical ordering for props
src/js/components/Filters.js
src/js/components/Filters.js
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; import Menu from 'grommet/components/Menu'; import Box from 'grommet/components/Box'; import FilterIcon from 'grommet/components/icons/base/Filter'; import Filter from './Filter'; import Sort from ...
JavaScript
0.000049
@@ -1652,29 +1652,29 @@ t %7B -direction, attributes +attributes, direction , in
956fd745b34bf14ee8d908dab67f7b3a962cd534
disable highlightjs as it breaks folder prefix
client/app/cssCode/cssCode.directive.js
client/app/cssCode/cssCode.directive.js
'use strict'; angular.module('googleWebfontsHelperApp') .directive('cssCode', ['$timeout', '$interpolate', function($timeout, $interpolate) { return { templateUrl: 'app/cssCode/cssCode.html', restrict: 'EA', // replace: true, transclude: true, scope: { type: '=', var...
JavaScript
0
@@ -469,16 +469,19 @@ %0A + // $timeou @@ -498,24 +498,27 @@ () %7B%0A + // var codeE @@ -556,18 +556,21 @@ +// + var tmp; @@ -574,24 +574,27 @@ mp;%0A%0A + // // only h @@ -631,16 +631,19 @@ %0A + // if (c @@ -670,24 +670,27 @@ 0) %7B%0A + // ...
3429805508629864f0ce9c684c3613bd3c9bd498
remove console.log
src/js/components/display.js
src/js/components/display.js
import React, { Component } from 'react'; import { render } from 'react-dom'; // import * as _ from 'ramda'; import { BOARD } from '../utils/constants'; export default class Display extends React.Component { constructor(props) { super(props); this.state = { minutes: ('0' + (new Date().getMinutes())).s...
JavaScript
0.000006
@@ -906,37 +906,8 @@ ver; -%0A console.log(gameIsOver); %0A%0A
4c31e9b700de04c01f07c3f7d12afccbbf47237e
Format bucket data properly for routes and search results
client/js/store/app_store.js
client/js/store/app_store.js
var EventEmitter = require("events").EventEmitter; var assign = require("object-assign"); var $ = require("jquery"); var CHANGE_EVENT = "change"; var AppStore = assign({}, EventEmitter.prototype, { // TODO: replace mock data with server call (#90) fetchSchemas: function() { $.ajax({ url: "/api/schema/",...
JavaScript
0
@@ -139,16 +139,41 @@ change%22; +%0Avar _searchSchemas = %5B%5D; %0A%0Avar Ap @@ -222,60 +222,8 @@ , %7B%0A - // TODO: replace mock data with server call (#90)%0A fe @@ -408,16 +408,107 @@ data);%0A + _searchSchemas = AppStore.removeBucketPrefix(data);%0A AppStore.emitChange();%0A %7D, @@...
34ab1b76c3870fce49eb2b5d8f2acdc9e2be178a
fix Listener.js:check headersSent at error send
src/Listener.js
src/Listener.js
var http = require('http'); var fs = require('fs'); var path = require('path'); var express = require('express'); var vhost = require('vhost'); var util = require('attrs.util'); // class Bucket function Listener(options) { if( typeof options !== 'object' || typeof options.port !== 'number' || options.port <= 0 || opt...
JavaScript
0
@@ -1905,24 +1905,47 @@ r);%0A%09%09%09%09%09%09%09%09 +if( !res.headersSent ) res.status(5 @@ -2063,16 +2063,48 @@ else %7B%0A +%09%09%09%09%09%09if( !res.headersSent ) %7B%0A%09 %09%09%09%09%09%09re @@ -2123,16 +2123,17 @@ = 404;%0A +%09 %09%09%09%09%09%09re @@ -2148,24 +2148,32 @@ ot Found');%0A +%09%09%09...
4ba9cc069fa3e77d4ca573a14059b09bbe961fd1
add annotations
src/LockAxis.js
src/LockAxis.js
import { supportCSSTouchActionPan } from './utils'; let locking = null; export const AxisTypes = { none: 'none', x: 'x', y: 'y', }; export const TouchActions = { [AxisTypes.none]: 'none', [AxisTypes.x]: 'pan-y', [AxisTypes.y]: 'pan-x', }; export default { grant(domNode, lockAxis) { if (domNode && supportC...
JavaScript
0.000002
@@ -1,8 +1,71 @@ +%0A// FIXME: doesn't work if browser supports css %60touch-action%60%0A %0Aimport
534e7a43493116a85e74aa9e29652c925a25ae03
Update playlistify-userscript.js: Rename Youtube -> YouTube
MusicFav/UserScript/playlistify-userscript.js
MusicFav/UserScript/playlistify-userscript.js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
JavaScript
0
@@ -1681,25 +1681,25 @@ rovider%5B%22You -t +T ube%22%5D = 0%5D = @@ -1703,17 +1703,17 @@ %5D = %22You -t +T ube%22;%0A%09 @@ -2479,52 +2479,8 @@ le;%0A -%09 this.url = document.location.href;%0A %09 @@ -2609,186 +2609,8 @@ %7D;%0A -%09 Playlist.prototype.toJSON = function () %7B%0A%09 retu...
721b89fe731527a79458278cc9b51e2c9d38531e
Load app view as default
src/js/routers/app-router.js
src/js/routers/app-router.js
import * as Backbone from 'backbone'; import Items from '../collections/items'; import SearchBoxView from '../views/searchBox-view'; import SearchResultsView from '../views/searchResults-view'; import DocumentSet from '../helpers/search'; import dispatcher from '../helpers/dispatcher'; class AppRouter extends Backbone...
JavaScript
0.000001
@@ -183,24 +183,65 @@ ults-view';%0A +import AppView from '../views/app-view';%0A import Docum @@ -647,25 +647,19 @@ new -SearchBox +App View();%0A
32c0c9bcdce142c35e282580cfea160df88a4ada
update app index
src/js/scopes.application.js
src/js/scopes.application.js
import React from 'react'; import ReactDOM from 'react-dom'; import Entry from './scopes.entry'; class Application extends React.Component { render() { return ( <section> <Entry/> </section> ); } // functions. } ReactDOM.render(<Application/>, document.querySelector('.s-application...
JavaScript
0.000001
@@ -62,21 +62,85 @@ %0Aimport -Entry +AppBackground from './components.app-background';%0Aimport Conversation from '. @@ -151,13 +151,20 @@ pes. -entry +conversation ';%0A%0A @@ -262,13 +262,45 @@ %3C -Entry +AppBackground/%3E%0A %3CConversation /%3E%0A
5384e47b39fd52c81d124d670d202a92a3f84bcb
update tab api, migrate functions from tab-controller
src/js/tab-controller/tab.js
src/js/tab-controller/tab.js
define([ 'md5', 'json!./languages.json', 'ace/ace', 'ace/theme/monokai', 'ace/worker/worker', // Language-specific modes 'ace/mode/javascript', 'ace/mode/typescript', 'ace/mode/json', 'ace/mode/css', 'ace/mode/less', 'ace/mode/sass', 'ace/mode/scss', 'ace/mode/stylus', 'ace/mode/html', 'ace/mode/svg...
JavaScript
0
@@ -1507,16 +1507,142 @@ ');%0A%09%7D%0A%0A +%09Tab.prototype.undo = function () %7B%0A%09%09this.editor.undo();%0A%09%7D;%0A%0A%09Tab.prototype.redo = function () %7B%0A%09%09this.editor.redo();%0A%09%7D;%0A%0A %09Tab.pro
7fd01dad89b7b4076bf02899e647d8c453ec3542
remove redundant ref from MediaBox
src/MediaBox.js
src/MediaBox.js
import React, { useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import idgen from './idgen'; const MediaBox = ({ id, options, children, className, caption, ...props }) => { const instance = useRef(null); const _id = id || `mediabox${idgen()}`; useEffect(() => ...
JavaScript
0
@@ -22,16 +22,8 @@ fect -, useRef %7D f @@ -215,41 +215,8 @@ %3E %7B%0A - const instance = useRef(null);%0A co @@ -274,32 +274,38 @@ () =%3E %7B%0A +const instance .current = M @@ -292,24 +292,16 @@ instance -.current = M.Mat @@ -314,23 +314,16 @@ ox.init( -%0A document @@ -347,22 +347,16 @@ ...
8cdb298e1e4d42820ea1a631bc579a2902860a5f
work pls
src/OrbStorj.js
src/OrbStorj.js
'use strict'; const menu = require('./lib/consoleMenu'); const orbitdb = require('./lib/orbitHandler'); const fh = require('./lib/fileHandler'); const eventify = require('./lib/eventify'); const dirty = require('dirty'); let kvdb; let evdb; let orb; let dbRecord; let ipfs; let watcher; const start = async function sta...
JavaScript
0
@@ -2593,17 +2593,27 @@ ole.log( -f +kvdb.get(f) );%0A%09%09con @@ -2787,16 +2787,27 @@ t val = +JSON.parse( kvdb.get @@ -2809,16 +2809,17 @@ b.get(f) +) ;%0A%09%09%09con @@ -3118,16 +3118,20 @@ kvstore%0A +%09/*%0A %09let fil @@ -3286,18 +3286,20 @@ return;%0A - %09%7D +*/ %0A%0A%09conso
9ae540e2e9817c5bfafdec9bd238a838ac63c646
Change STRINGS to STRING
src/languages/applescript.js
src/languages/applescript.js
/* Language: AppleScript Authors: Nathan Grigg <nathan@nathanamy.org> Dr. Drang <drdrang@gmail.com> */ function(hljs) { var STRINGS = [ hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: ''}) ]; var TITLE = { className: 'title', begin: hljs.UNDERSCORE_IDENT_RE }; var PARAMS = { className: 'p...
JavaScript
0.999794
@@ -139,17 +139,10 @@ RING -S = - %5B%0A hlj @@ -193,12 +193,8 @@ ''%7D) -%0A %5D ;%0A @@ -381,33 +381,25 @@ BER_MODE -%5D.concat( +, STRING -S) +%5D %0A %7D;%0A%0A @@ -1277,24 +1277,40 @@ MMENT_MODE,%0A + STRING,%0A %7B%0A @@ -1979,31 +1979,15 @@ %7D%0A + %5D -.concat(ST...
bd7840a63132b4bf2b3782e1c9f14011acf76d6e
Modify SakuyaDB query interfaces requires Twitter UserObject instead id_str
src/SakuyaDb.js
src/SakuyaDb.js
let SakuyaDb = class { constructor (db) { this.db = db this.isOpen = false this.db.open( (err) => { if (err) { console.error(err) return } this.isOpen = true console.log('MongoDB Open.') }) } /** * ユーザのドキュメントを作成します。 * @param {UserObject} user Twitte...
JavaScript
0
@@ -641,23 +641,44 @@ am %7B -string%7D user id +UserObject%7D user Twitter%E3%81%AEUser Object %0A @@ -711,18 +711,20 @@ etUser ( -id +user ) %7B%0A @@ -807,18 +807,27 @@ '_id': -id +user.id_str %7D)%0A %7D%0A%0A @@ -868,34 +868,40 @@ @param %7B -string%7D id +UserObject%7D user Twitter %E3%81%AE ...
de98c764d4ddbbe47ee309e653399b42f42421e9
Add comment for clarification
src/lib/migrationoverride.js
src/lib/migrationoverride.js
const { Cu } = require("chrome"); const DummyMigration = { migrate: function() { // I'm a happy little migration // and I'm doing nothing. } }; exports.MigrationOverride = function() { try { let migrator = Cu.import("resource:///modules/TabGroupsMigrator.jsm", {}); migrator.TabGroupsMigrator = D...
JavaScript
0
@@ -28,16 +28,284 @@ ome%22);%0A%0A +/**%0A * This overrides the TabView migration as added in Bug 1221050 with a%0A * migration that basically does nothing. Since our addon is compatible with%0A * the original data, there is nothing we have to do here.%0A *%0A * This will get removed some time in the future.%0A */%0A...