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 |
|---|---|---|---|---|---|---|---|
89f7ef5f893f13fb294365f9a2c0a8a21540a41e | check hostname exists | src/event_worker.js | src/event_worker.js | //
// Copyright (c) Telefonica I+D. All rights reserved.
//
//
var http = require('http');
var https = require('https');
var MG = require('./my_globals').C;
var url = require('url');
var config_global = require('./config_base.js');
var path = require('path');
var log = require('PDITCLogger');
var logge... | JavaScript | 0.000007 | @@ -656,24 +656,118 @@
%0A %7D%0D%0A
+ if (!parsedUrl.hostname)%7B%0D%0A return ('Hostname expected' + pUrl);%0D%0A %7D%0D%0A
%7D%0D%0A%0D%0A
|
746b1cffa32713b5fc68642ebd6399ea0c06f9f2 | Add missing `new` in State.setup_state() test | test/test_lib/test_states/test_state.js | test/test_lib/test_states/test_state.js | var assert = require("assert");
var vumigo = require("../../../lib");
var DummyIm = vumigo.test_utils.DummyIm;
var State = vumigo.states.State;
describe("State", function () {
var im;
beforeEach(function () {
im = new DummyIm();
});
describe(".setup_state", function() {
it("should ... | JavaScript | 0.000013 | @@ -393,16 +393,20 @@
state =
+ new
State('
|
05e0d56be7e43ec25877f981615b2d51e143657a | when game start winner is -1 | test/unit/clinicatdd/mytestctrl.test.js | test/unit/clinicatdd/mytestctrl.test.js | describe('MyTestCtrl', function () {
var $scope, controller;
var $controller;
beforeEach(module('clinicatdd.controllers'));
describe("when there is no info", function () {
beforeEach(inject(function (_$controller_) {
$controller = _$controller_;
}));
beforeEach(function () {
$scope ... | JavaScript | 0.999324 | @@ -595,152 +595,8 @@
%7D);
-%0A it('when game start winner is -1', function () %7B%0A expect($scope.winner).toBeDefined();%0A expect($scope.winner()).toBe(-1);%0A %7D);
%0A%0A
|
fa013103e2ed0a1376bee65e094cbcf55b2f8f5d | Enable skipOnVariables flag | app/js/translations.js | app/js/translations.js | const i18n = require('i18next')
const fsBackend = require('i18next-fs-backend')
const middleware = require('i18next-http-middleware')
const path = require('path')
module.exports = {
setup(options = {}) {
const subdomainLang = options.subdomainLang || {}
const availableLngs = Object.values(subdomainLang).map(... | JavaScript | 0 | @@ -1028,16 +1028,166 @@
e: false
+,%0A // Disable nesting in interpolated values, preventing user input%0A // injection via another nested value%0A skipOnVariables: true
%0A %7D
|
3cbe4f8b779bfb07777cd58875fa10a3d7af9aea | fix compile unit test | test/unit/specs/compile/compile_spec.js | test/unit/specs/compile/compile_spec.js | var Vue = require('../../../../src/vue')
var _ = require('../../../../src/util')
var dirParser = require('../../../../src/parse/directive')
var merge = require('../../../../src/util/merge-option')
var compile = require('../../../../src/compile/compile')
if (_.inBrowser) {
describe('Compile', function () {
var v... | JavaScript | 0.000001 | @@ -5377,17 +5377,19 @@
arse('a:
-a
+(a)
')%5B0%5D%0A
|
184a0341b5b8303f1966fd6ef3cbedf8033a2d8b | Fix bug where heading was not always updated | app/routes/arrivals.js | app/routes/arrivals.js | import Ember from 'ember';
import request from 'ic-ajax';
import ENV from './../config/environment';
var run = Ember.run;
const POLL_INTERVAL = 15 * 1000;
export default Ember.Route.extend({
pendingRefresh: null,
model: function(params) {
// Eagerly load template
request(`${ENV.APP.SERVER}/api/arrivals/$... | JavaScript | 0 | @@ -243,37 +243,8 @@
) %7B%0A
- // Eagerly load template%0A
@@ -349,85 +349,20 @@
));%0A
+%0A
-%7D,%0A%0A
-setupController: function(controller) %7B%0A controller.setProperties(
+return
%7B%0A
@@ -397,34 +397,14 @@
Id:
-this.
params
-For('arrivals')
%5B'st
@@ -439,16 +439,107 @@
ue%0A ... |
b3f0f40e17367f1844757a69d3646195449adb06 | Move sdc-healthcheck tests to system tests instead of post-install | tests/platform/001_base_build_sanity.js | tests/platform/001_base_build_sanity.js | #!/usr/bin/node
var test = require('tap').test;
var async = require('async');
var child = require('child_process');
var fs = require('fs');
test("Check services status", function(t){
t.plan(3);
child.exec('svcs -xv', function(err, stdout, stderr){
t.equal(stdout, '', "svcs -xv shows no output on stdou... | JavaScript | 0 | @@ -131,24 +131,372 @@
ire('fs');%0A%0A
+test(%22Check SDC health%22, function(t)%7B%0A t.plan(3);%0A child.exec('sdc-healthcheck -p', function(err, stdout, stderr)%7B%0A t.equal(err, null, %22sdc-healthcheck exited cleanly%22);%0A t.notEqual(stderr, '', %22service output is not blank%22);%0A ... |
f0456550e065007e9844f2d736dd4d42911d45e8 | fix max level detection error | javascripts/scenes/_game_controller.js | javascripts/scenes/_game_controller.js | GameController = Class.create(Sprite, {
initialize: function(scene) {
Sprite.call(this, 0, 0);
this.image = game.assets['images/square_glow.png'];
this.x = -10;
this.y = -10;
this.scene = scene;
this.level = 0;
this.maxLevel = false;
this.enemyChoiceTotalWeight = 0;
this.levels =... | JavaScript | 0.000021 | @@ -984,16 +984,20 @@
s.length
+ - 1
) %7B%0A
|
653ef9ee6b3321e46b1bf9b9d5d1fe9f5a196295 | Update glift with parse-update. | deps/glift-core/parse/parse.js | deps/glift-core/parse/parse.js | goog.provide('glift.parse');
/**
* Glift parsing for strings.
*/
glift.parse = {
/**
* Parse types
* @enum {string}
*/
parseType: {
/** FF1-FF4 Parse Type. */
SGF: 'SGF',
/** Tygem .gib files. */
TYGEM: 'TYGEM',
/**
* DEPRECATED. This was created when I didn't understand the ... | JavaScript | 0 | @@ -479,191 +479,86 @@
*
-Parse a Go-format format from a string.%0A *%0A * @param %7Bstring%7D str Raw contents that need to be parsed.%0A * @param %7Bstring%7D filename Name of the file from which the contents c
+Get the parse-type from a filename%0A *%0A * @param %7Bstring%7D filename Filen
ame
-.
%0... |
3c9cc20356cc7c4c08cf171dd864d02f0d824cf9 | fix for default market on api hit | src/scripts/modules/item.model.js | src/scripts/modules/item.model.js | import Utils from './utils/utils'
export default class Item {
constructor({ id, history, price, thumbnail, title, permalink }) {
this.id = id.replace(/\D/g, '');
this.market = id.replace(/[0-9]/g, '');
this.permalink = permalink;
this.thumbnail = thumbnail;
this.title = tit... | JavaScript | 0 | @@ -1736,16 +1736,47 @@
marketId
+, id) %7B%0A const defaultMarket
= '/MLA
@@ -1776,23 +1776,17 @@
= '/MLA'
-, id) %7B
+;
%0A ret
@@ -1834,16 +1834,33 @@
marketId
+ %7C%7C defaultMarket
%7D$%7Bid%7D%60;
|
fbbc4e29ebfc204ac40179c7b30159b4741a1f83 | Fix user roles being removed after a reply | ui/features/discussion_topics_post/graphql/Mutations.js | ui/features/discussion_topics_post/graphql/Mutations.js | /*
* Copyright (C) 2021 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | JavaScript | 0.008645 | @@ -3562,38 +3562,16 @@
...User%0A
- courseRoles%0A
@@ -3611,30 +3611,8 @@
ser%0A
- courseRoles%0A
|
ac60654540511d1751571ee6745e3922decf9118 | Fix Popover disappearing when hover off | ui/src/components/workflow/executions/WorkflowAction.js | ui/src/components/workflow/executions/WorkflowAction.js | import React from 'react';
import { Button, ButtonGroup, OverlayTrigger, Popover, Checkbox } from 'react-bootstrap';
import { connect } from 'react-redux';
import {
terminateWorkflow,
restartWorfklow,
retryWorfklow,
pauseWorfklow,
resumeWorfklow
} from '../../../actions/WorkflowActions';
class WorkflowAction... | JavaScript | 0.000001 | @@ -3867,32 +3867,48 @@
acement=%22bottom%22
+ trigger=%22click%22
overlay=%7BttRest
@@ -4967,32 +4967,48 @@
acement=%22bottom%22
+ trigger=%22click%22
overlay=%7BttRest
|
cbb8d2c65205c670ca75fb449a577857b1bdc2a5 | Change the position of popup | assets/js/UserPopup.js | assets/js/UserPopup.js | import React from 'react'
import { Popup, Image, Segment, Container, Statistic, Icon } from 'semantic-ui-react'
const User = ({ user, children }) => {
const url = user.url || `https://twitter.com/${user.screen_name}`
const profile_banner_url = user.profile_banner_url
const items = [
{label: 'Tweets', value: ... | JavaScript | 0.00009 | @@ -521,12 +521,11 @@
tom
-righ
+lef
t'%0A
|
6af358b8b9f6f385accc9412e72b39fd80ed992e | Update html5shiv to v3.7.0. | assets/js/html5shiv.js | assets/js/html5shiv.js | /*
HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache... | JavaScript | 0 | @@ -11,19 +11,19 @@
Shiv v3.
-6.2
+7.0
%7C @afar
@@ -800,10 +800,14 @@
ce(/
+%5B
%5Cw
+%5C-%5D
+/g,
@@ -1090,16 +1090,23 @@
e,aside,
+dialog,
figcapti
@@ -1199,16 +1199,38 @@
or:#000%7D
+template%7Bdisplay:none%7D
%3C/style%3E
@@ -1941,16 +1941,23 @@
details
+dialog
figcapti
@@ -2039,16 +2039,25 @@
summa... |
1c944e1e75fc67206d3007ed1d42032f26580156 | Clean up | source/core/objects/audio/PositionalAudio.js | source/core/objects/audio/PositionalAudio.js | "use strict";
/**
* PositionalAudio is used to play audio with positional audio effect using a WebAudio panner.
*
* Using the positional audio object the sound is controlled by the camera that renders first in the scene.
*
* @param {Audio} audio Audio used by this emitter
* @class PositionalAudio
* @e... | JavaScript | 0.000002 | @@ -5700,16 +5700,62 @@
ta);%0D%0A%0D%0A
+%09//TODO %3CSERIALIZE AND LOAD THESE VALUES%3E%0D%0A%09%0D%0A
%09//data.
@@ -5769,32 +5769,37 @@
distanceModel =
+this.
distanceModel;%0D%0A
@@ -5828,16 +5828,21 @@
Model =
+this.
panningM
|
b331a9be6a287eb2913e663598618005a0cd1b23 | Fix launcher logging | source/main/cardano/CardanoWalletLauncher.js | source/main/cardano/CardanoWalletLauncher.js | // @flow
import { merge } from 'lodash';
import * as cardanoLauncher from 'cardano-launcher';
import type { Launcher } from 'cardano-launcher';
import type { NodeConfig } from '../config';
import { STAKE_POOL_REGISTRY_URL } from '../config';
import {
NIGHTLY,
SELFNODE,
QA,
ITN_REWARDS_V1,
} from '../../common/t... | JavaScript | 0 | @@ -3248,13 +3248,21 @@
erConfig
+, Logger
);%0A%7D%0A
|
5de339f6bfbe97963811d530c632223bda3ba537 | Refactor button render | src/Components/Table/TableRow/index.js | src/Components/Table/TableRow/index.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Button from '../../Button/index.js'
export default class TableRow extends Component{
static propTypes = {
readOnly: PropTypes.bool,
editing: PropTypes.bool,
cells: PropTypes.arrayOf(PropTypes.shape({
value: PropType... | JavaScript | 0 | @@ -1977,35 +1977,47 @@
-%3CButton%0A
+%7Bthis.props.readOnly %7C%7C %3CButton
classNa
@@ -2026,28 +2026,16 @@
=%22round%22
-%0A
onClick
@@ -2052,28 +2052,16 @@
Editing%7D
-%0A
buttonT
@@ -2070,28 +2070,16 @@
t=%22edit%22
-%0A
backgro
@@ -2100,21 +2100,12... |
b785ec0ecb78eb020397cc5ed88c020361843b51 | missing title | app/assets/javascripts/components/CollectionTree.js | app/assets/javascripts/components/CollectionTree.js | import React from 'react';
import {Button,Glyphicon} from 'react-bootstrap';
import CollectionStore from './stores/CollectionStore';
import CollectionActions from './actions/CollectionActions';
import CollectionSubtree from './CollectionSubtree';
import UIActions from './actions/UIActions';
import UIStore from './sto... | JavaScript | 0.999773 | @@ -2387,24 +2387,184 @@
ts,
-'Shared with me'
+%3Cdiv className=%22tree-view%22%3E%3Cdiv className=%7B%22title %22%7D style=%7B%7BbackgroundColor:'white'%7D%7D%3E%3Ci className=%22fa fa-list%22 /%3E Shared with me %3Ci className=%22fa fa-share-alt%22 /%3E%3C/div%3E%3C/div%3E
, tr
|
30d7bc9040a3d162fa0b1d3e6c1d075e53889b97 | fix date format issue with datepicker label | app/assets/javascripts/lib/components/datepicker.js | app/assets/javascripts/lib/components/datepicker.js | // ------------------------------------------------------------------------------
//
// Datepicker
//
// ------------------------------------------------------------------------------
define([ "jquery", "picker", "pickerDate", "pickerLegacy" ], function($) {
"use strict";
var defaults = {
callbacks: {},
... | JavaScript | 0 | @@ -2503,20 +2503,33 @@
el.text(
-date
+this.inDate.val()
);%0A %7D
|
266c044f79080a67ac6a34d309bfd25e8364046a | parse referal code | app/assets/javascripts/map/services/PlaceService.js | app/assets/javascripts/map/services/PlaceService.js | /**
* The PlaceService class manages places in the application.
*
* A place is just the current state of the application which can be
* represented as an Object or a URL. For example, the place associated with:
*
* http://localhost:5000/map/6/2/17/ALL/terrain/loss
*
* Can also be represented like this:
*
* ... | JavaScript | 0.998608 | @@ -5490,16 +5490,17 @@
lerts ==
+=
'subscr
@@ -5520,16 +5520,44 @@
: null;%0A
+ p.referal = p.referal;
%0A r
|
5b21db962032eef6831c64b7f62684c0d3038a0f | Adding check for float value with multiple '.' characters PR: 32351 | src/javascript/org/apache/commons/validator/javascript/validateFloat.js | src/javascript/org/apache/commons/validator/javascript/validateFloat.js |
/*$RCSfile: validateFloat.js,v $ $Rev$ $Date$ */
/**
* Check to see if fields are a valid float.
* Fields are not checked if they are disabled.
* <p>
* @param form The form validation is taking place on.
*/
function validateFloat(form) {
var bValid = true;
var focusField... | JavaScript | 0.997225 | @@ -1741,16 +1741,40 @@
oString)
+ %7C%7C tempArray.length %3E 2
) %7B%0A
|
705611560d73bc68a27d24a2614fb1b5a3818945 | Fix geometry buffer exporting | src/GeometryBuffer.js | src/GeometryBuffer.js | import Buffer from './Buffer';
/**
* Используется для хранения и подготовки данных для передачи в атрибуты шейдера.
* В отличие от {@link Buffer}, принимает в качестве аргумента типизированный массив.
* Это позволяет работать с данными в {@link Geometry}, например, вычислять BoundingBox.
*
* @param {TypedArray} a... | JavaScript | 0.000001 | @@ -461,23 +461,8 @@
*/%0A
-export default
clas
@@ -2051,8 +2051,40 @@
%7D%0A%7D%0A
+%0Aexport default GeometryBuffer;%0A
|
3393213ce2606b91816caaf0abe1b525bb1b683b | use correct command builder in canary | app/scripts/modules/core/pipeline/config/stages/canary/canaryStage.js | app/scripts/modules/core/pipeline/config/stages/canary/canaryStage.js | 'use strict';
let angular = require('angular');
module.exports = angular.module('spinnaker.core.pipeline.stage.canaryStage', [
require('../../../../../amazon/serverGroup/configure/serverGroupCommandBuilder.service.js'),
require('../../../../cloudProvider/cloudProvider.registry.js'),
])
.config(function (pipelin... | JavaScript | 0.000001 | @@ -149,18 +149,8 @@
/../
-../amazon/
serv
@@ -167,16 +167,23 @@
nfigure/
+common/
serverGr
@@ -204,16 +204,8 @@
der.
-service.
js')
|
f0932cad23a963d9c3513b8b4f6ce99f7b570da9 | Fix forward button behaviour | Environment.js | Environment.js | "use strict";
var merge = require('react/lib/merge');
var ReactUpdates = require('react/lib/ReactUpdates');
/**
* Base methods for an environment.
*
* @private
*/
var EnvironmentBase = {
notify: function(cb) {
var latch = this.routers.length;
ReactUpdates.batchedUpdates(function() {
for ... | JavaScript | 0.000013 | @@ -1104,36 +1104,79 @@
unction(path, cb
-) %7B%0A
+, retrospective) %7B%0A if (!retrospective) %7B%0A
window.histo
@@ -1199,24 +1199,30 @@
'', path);%0A
+ %7D%0A
this.pat
@@ -1569,32 +1569,49 @@
his.setPath(path
+, undefined, true
);%0A %7D%0A %7D%0A%7D);
@@ -1826,20 +1826,63 @@
path, cb
-)... |
31098d81dfeb18994c5c883b2741fcb59b02eb3e | add locales | src/modules/wallet/modules/transactions/controllers/TransactionsCtrl.js | src/modules/wallet/modules/transactions/controllers/TransactionsCtrl.js | (function () {
'use strict';
/**
* @param {User} user
* @param Base
* @param {$rootScope.Scope} $scope
* @param {TransactionsCsvGen} transactionsCsvGen
* @param {Waves} waves
* @param {IPollCreate} createPoll
* @param {INotification} notification
* @return {TransactionsC... | JavaScript | 0 | @@ -3967,12 +3967,13 @@
ion.
-info
+error
(%7B%0A
@@ -4080,32 +4080,29 @@
al: 'errors.
-download
+empty
.title' %7D,%0A
@@ -4149,32 +4149,29 @@
al: 'errors.
-download
+empty
.body' %7D%0A
|
98d36e00fedb14a1d490d3b267f40075f94cf147 | Work on Depth Module | src/parser/priest/discipline/modules/azeritetraits/DepthOfTheShadows.js | src/parser/priest/discipline/modules/azeritetraits/DepthOfTheShadows.js | import React from 'react';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatNumber, formatPercentage } from 'common/format';
i... | JavaScript | 0 | @@ -358,16 +358,98 @@
nement';
+%0Aimport atonementApplicationSource from '../features/AtonementApplicationSource';
%0A%0A/*%0A r
@@ -1061,32 +1061,44 @@
k)%5B0%5D, 0);%0A%0A
+console.log(
this._bonusHeali
@@ -1122,13 +1122,9 @@
tack
- *= 2
+)
;%0A
@@ -1146,33 +1146,32 @@
r_cast(event) %7B%0A
-%0A
i... |
2b379beaaaefbfe265476f8e3c36d7b41921a957 | Add factory navigation | ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js | ipojo/webconsole-plugin/src/main/resources/res/ui/instance_detail.js | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | JavaScript | 0 | @@ -1475,38 +1475,97 @@
tml(
-instance.factory); //TODO Link
+'%3Ca href=%22' + factories_url + '/' + instance.factory + '%22%3E' + instance.factory + '%3C/a%3E');
%0A
|
126db448107f1b3447193490ebeaa6aae806c4e7 | call app chat not chat-sharelatex | app/js/server.js | app/js/server.js | /* eslint-disable
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/sugg... | JavaScript | 0.000001 | @@ -468,27 +468,16 @@
ze('chat
--sharelatex
')%0Aconst
|
f9d44eb596a9d345fe85a9aed6e1fc711a1bb4ae | fix about window | app/main/menu.js | app/main/menu.js | module.exports = {
init,
getMenuItem
};
const electron = require('electron');
const {shell} = require('electron');
const {BrowserWindow} = require('electron');
const path = require('path');
const openAboutWindow = require('about-window').default;
const app = electron.app;
let win;
let menu;
function init() {
menu ... | JavaScript | 0.000005 | @@ -2211,17 +2211,17 @@
21/media
--
+_
mate'%0A%09%09
|
d55d358491991a1ad599c117eeee5cf90c4143c6 | 添加接口提示缺少catid bug | client/containers/Project/Interface/InterfaceList/AddInterfaceForm.js | client/containers/Project/Interface/InterfaceList/AddInterfaceForm.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Form, Input, Select, Button } from 'antd';
import constants from '../../../../constants/variable.js'
import { handlePath } from '../../../../common.js'
const HTTP_METHOD = constants.HTTP_METHOD;
const HTTP_METHOD_KEYS = Object.keys(HT... | JavaScript | 0 | @@ -833,48 +833,8 @@
) %7B%0A
- values.catid = this.props.catid%0A
|
ebc2cc9c4d1a5a78766918ac72211ed53e86909b | Update mathjax | lib/assets/javascripts/require/main.js | lib/assets/javascripts/require/main.js | requirejs.config({
paths: {
'jquery': 'http://code.jquery.com/jquery-1.11.0.min.js',
'mathjax': https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
}
});
| JavaScript | 0.000001 | @@ -99,16 +99,17 @@
thjax':
+'
https://
|
a8fd7f0d4a3b7cd684c65fddb44a2fa381a30ad2 | update biul script | docs/scripts/gh-pages-build.js | docs/scripts/gh-pages-build.js | const fs = require('fs')
const path = require('path')
const { execSync } = require('child_process')
const usage = '\nbuild <vn.n.n[-pre[.n]]> | <HEAD> [-p]\n'
const versionsFile = path.resolve(__dirname, '../public/versions.json')
const args = process.argv
if (args.length < 3) {
console.log(usage, '\n')
process.e... | JavaScript | 0 | @@ -2319,17 +2319,16 @@
g(%60echo
-%22
./$%7Bvers
@@ -2337,17 +2337,16 @@
nNumber%7D
-%22
%3E ../..
@@ -2392,96 +2392,8 @@
()%0A%0A
- if (versionIsHEAD) %7B%0A execSyncWithLog('git commit --amend --no-edit')%0A %7D else %7B%0A
ex
@@ -2440,16 +2440,23 @@
mit -m '
+Update
$%7Bversio
@@ -2458,22 +2458,... |
332244866ccfcf9b9d1f93b0f058b692809365f3 | Revert button | lib/controllers/conflict-controller.js | lib/controllers/conflict-controller.js | import React from 'react';
import Decoration from '../views/decoration';
import Octicon from '../views/octicon';
export default class ConflictController extends React.Component {
static propTypes = {
editor: React.PropTypes.object.isRequired,
conflict: React.PropTypes.object.isRequired,
resolveAsSequenc... | JavaScript | 0.000001 | @@ -717,24 +717,138 @@
%7D);%0A %7D%0A%0A
+ revert(side) %7B%0A side.isModified() && side.revert();%0A side.isBannerModified() && side.revertBanner();%0A %7D%0A%0A
render() %7B
@@ -2908,24 +2908,251 @@
%3C/button%3E%0A
+ %7B(side.isModified() %7C%7C side.isBannerModified()) &&%0A ... |
093d8d0332b73fedebfdfca17de973ac11e1b55e | Properly turn promises into Results | src/Native/Promise.js | src/Native/Promise.js | Elm.Native.Promise = {};
Elm.Native.Promise.make = function(localRuntime) {
localRuntime.Native = localRuntime.Native || {};
localRuntime.Native.Promise = localRuntime.Native.Promise || {};
if (localRuntime.Native.Promise.values)
{
return localRuntime.Native.Promise.values;
}
var Result = Elm.Result.make(loca... | JavaScript | 0.999312 | @@ -1131,33 +1131,38 @@
te()%0A%09%09%7B%0A%09%09%09var
-r
+queueR
esult = workQueu
@@ -1172,16 +1172,161 @@
hift();%0A
+%09%09%09var promise = queueResult.promise;%0A%09%09%09var result = promise.tag === 'Succeed'%0A%09%09%09%09? Result.Ok(promise.value)%0A%09%09%09%09: Result.Err(promise.value);%0A%0A
%09%09%09s... |
b9413528522481dcb75b9450ab4045b37334b6ec | Update form_demo.js | docs/v1/static/js/form_demo.js | docs/v1/static/js/form_demo.js | /*global $, window, goinstant, document, getOrSetRoomCookie, jQuery */
'use strict';
var console=console||{"error":function(){}};
function connect(options) {
var connectUrl = 'https://goinstant.net/goinstant-services/docs';
var connection = new goinstant.Connection(connectUrl, options);
connection.connect(funct... | JavaScript | 0 | @@ -1111,67 +1111,8 @@
%7D%0A
- // The user now appears red in the user-list, etc.%0A
|
3ea310a6dd225b32c93f84858bfd775072a5a82f | Fix ESLint error for strings. | assets/js/components/wp-dashboard/WPDashboardApp.js | assets/js/components/wp-dashboard/WPDashboardApp.js | /**
* WPDashboardApp component.
*
* 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/LICENSE-2.0
... | JavaScript | 0.000001 | @@ -1549,25 +1549,25 @@
e( %7B%0A%09%09key:
-%60
+'
WPDashboardA
@@ -1564,25 +1564,25 @@
DashboardApp
-%60
+'
,%0A%09%09value: !
@@ -1676,17 +1676,17 @@
%09%09%09key:
-%60
+'
WPDashbo
@@ -1695,9 +1695,9 @@
dApp
-%60
+'
,%0A%09%09
|
bad828743f495fa75d8e588c761c4f1bb2627ff2 | Fix this stupid lib ... | assets/lib/ng-infinite-scroll/ng-infinite-scroll.js | assets/lib/ng-infinite-scroll/ng-infinite-scroll.js | /* ng-infinite-scroll - v1.0.0 - 2013-02-23 */
var mod;
mod = angular.module('infinite-scroll', []);
mod.directive('infiniteScroll', [
'$rootScope', '$window', '$timeout', function($rootScope, $window, $timeout) {
return {
link: function(scope, elem, attrs) {
var checkWhenEnabled, handler, scrollD... | JavaScript | 0.000034 | @@ -149,19 +149,8 @@
pe',
- '$window',
'$t
@@ -182,17 +182,8 @@
ope,
- $window,
$ti
@@ -243,24 +243,200 @@
m, attrs) %7B%0A
+ var scrollElemSel = attrs.scrollElemSel %7C%7C 'body'%0A , scrollElem = document.querySelector(scrollElemSel)%0A , $scrollElem = angular.element(scrollElem)%0A%0A... |
b7df9b9ec7db6f6028bb5ee735b63f21d3d369ca | Add SSL to API endpoint (api-adresse.data.gouv.fr) | lib/geocoder/opendatafrancegeocoder.js | lib/geocoder/opendatafrancegeocoder.js | var util = require('util'),
AbstractGeocoder = require('./abstractgeocoder');
/**
* Constructor
*/
var OpendataFranceGeocoder = function OpendataFranceGeocoder(httpAdapter, options) {
this.options = ['language','email','apiKey'];
OpendataFranceGeocoder.super_.call(this, httpAdapter, options)... | JavaScript | 0.000001 | @@ -419,32 +419,33 @@
endpoint = 'http
+s
://api-adresse.d
@@ -524,16 +524,17 @@
= 'http
+s
://api-a
|
a90706e30579586caa91b57fe476bcf69ccf6f32 | remove updated at in entity attribute | lib/modeling/entity_attribute_model.js | lib/modeling/entity_attribute_model.js | /**
* @function entityAttributeModel
*/
'use strict'
const { normalizeAttributeValues } = require('../helpers/normalizer')
const co = require('co')
const { STRING, INTEGER } = require('sequelize')
const { typeOf } = require('clay-serial')
const { serialize, deserialize } = require('../helpers/serializer')
const { EN... | JavaScript | 0 | @@ -1117,16 +1117,38 @@
false,%0A
+ updatedAt: false,%0A
inde
|
8e34fa3d34deb35d8c25f5ce33ef7bf864678971 | Check before calling is method | lib/rules/empty-line-between-blocks.js | lib/rules/empty-line-between-blocks.js | 'use strict';
var helpers = require('../helpers');
var counter,
syntax;
var findNearestReturnSCSS = function (parent, i) {
var previous,
doublePrevious,
space;
if (parent.content[i - 1]) {
previous = parent.content[i - 1];
if (i >= 2) {
doublePrevious = parent.content[i - 2];
... | JavaScript | 0.000003 | @@ -1218,32 +1218,55 @@
revious;%0A%0A if (
+!parent.is('ident') &&
parent.content%5Bi
|
f3720f0229ec0ba719e0d63f161612407d16f694 | put -> get | src/IO/Girder/HpcCloudEndpoints/taskflows.js | src/IO/Girder/HpcCloudEndpoints/taskflows.js | export default function ({ client, filterQuery, mustContain, busy }) {
return {
// POST /taskflows Create the taskflow
createTaskflow(taskFlowClass) {
return busy(client._.post('/taskflows', {
taskFlowClass,
}));
},
// GET /taskflows/{id} Get a taskflow
getTaskflow(id, path) ... | JavaScript | 0 | @@ -906,34 +906,34 @@
n busy(client._.
-pu
+ge
t(%60/taskflows/$%7B
@@ -988,34 +988,34 @@
n busy(client._.
-pu
+ge
t(%60/taskflows/$%7B
|
b56332e350409eb9b35cf41830576e1896c089a7 | Fix for DM message not triggering without greeting | src/SlackInterface.js | src/SlackInterface.js | //TEST
/**
* Example for creating and working with the Slack RTM API.
*/
/* eslint no-console:0 */
/*******************************************************************************
* Globals
*/
const RtmClient = require('@slack/client').RtmClient;
const MemoryDataStore = require('@slack/client').MemoryDataStore;
... | JavaScript | 0 | @@ -3003,24 +3003,84 @@
%7D%0A %7D%0A
+ else %7B%0A parseCommand(message);%0A %7D%0A
%7D %0A %0A
|
92fcb7a7c451d14e9c4feaee5c469e00b56076a0 | fix word break and line height | src/Recommendations/Recommendations.js | src/Recommendations/Recommendations.js | import React from 'react';
require("./Recommendations.css");
var Recommendation = React.createClass({
render(){
return (
<div className="recommendation">
<span className="description">
<p>{this.props.description}</p>
</span>
</div>
)
}
});
var Recommendations = React.c... | JavaScript | 0.000238 | @@ -529,16 +529,23 @@
reviews
+%3C/span%3E
with a
@@ -550,23 +550,16 @@
a senior
-%3C/span%3E
.%3C/p%3E%0A
|
d94e82f2ecc69c069c934fd091f1cea1fe5b46ae | Use new urlResource options from CM | library/Denkmal/library/Denkmal/App.js | library/Denkmal/library/Denkmal/App.js | /**
* @class Denkmal_App
* @extends CM_App
*/
var Denkmal_App = CM_App.extend({
ready: function() {
CM_App.prototype.ready.call(this);
this._registerServiceWorker();
},
_registerServiceWorker: function() {
if ('serviceWorker' in navigator) {
var path = cm.getUrlResource('layout', 'js/servi... | JavaScript | 0 | @@ -330,192 +330,40 @@
.js'
-);%0A /**%0A * Same-o
+, %7BsameO
rigin
- workaround%0A * @todo replace with https://github.com/cargomedia/CM/pull/1715%0A */%0A path = path.replace(cm.getUrlResource(), cm.getUrl()
+: true, root: true%7D
);%0A%0A
|
098c72711f024b1d7dc2fbafee8f0e89a0b74c5e | create a new object before modifying | src/actions/notifs.js | src/actions/notifs.js | export const NOTIF_SEND = 'NOTIF_SEND';
export const NOTIF_DISMISS = 'NOTIF_DISMISS';
export const NOTIF_CLEAR = 'NOTIF_CLEAR';
/**
* Publish a notification,
* - if `dismissAfter` was set, the notification will be auto dismissed after the given period.
* - if id wasn't specified, a time based id will be generated.`... | JavaScript | 0.000001 | @@ -360,18 +360,64 @@
%7B%0A
-if (!notif
+const payload = Object.assign(%7B%7D, notif);%0A if (!payload
.id)
@@ -423,21 +423,23 @@
) %7B%0A
-notif
+payload
.id = ne
@@ -525,23 +525,16 @@
payload
-: notif
%7D);%0A%0A
@@ -539,21 +539,23 @@
if (
-notif
+payload
.dismiss
@@ -629,21 +629,23 @@
ayload... |
3a61e0912a160d9fa50c3cc90f05fad6da200b1d | Fix code style | packages/react-jsx-highcharts/src/components/ColorAxis/ColorAxis.js | packages/react-jsx-highcharts/src/components/ColorAxis/ColorAxis.js | import React, { useEffect, useRef } from 'react';
import uuid from 'uuid/v4';
import { attempt } from 'lodash-es';
import { getNonEventHandlerProps, getEventsConfig } from '../../utils/events';
import ColorAxisContext from '../ColorAxisContext';
import useModifiedProps from '../UseModifiedProps';
import useChart from '... | JavaScript | 0.000169 | @@ -992,22 +992,12 @@
null
-) %7B%0A if (
+ &&
modi
@@ -1021,26 +1021,24 @@
se) %7B%0A
-
const colorA
@@ -1061,26 +1061,24 @@
ef.current;%0A
-
colorA
@@ -1109,34 +1109,32 @@
, false);%0A
-
chart.needsRedra
@@ -1134,32 +1134,24 @@
dsRedraw();%0A
- %7D%0A
%7D%0A %7D);%0A
... |
5fbf4f21ab328a403f4589db8a2b09960eddac93 | remove a module in UI on double click | be.iminds.iot.dianne.builder/resources/js/dianne.js | be.iminds.iot.dianne.builder/resources/js/dianne.js |
var source = {
isSource:true,
anchor : "Right",
paintStyle:{
strokeStyle:"#555",
fillStyle:"#FFF",
lineWidth:2
},
hoverPaintStyle:{
lineWidth:3
},
connectorStyle:{
lineWidth:4,
strokeStyle:"#333",
joinstyle:"round",
outlineColor:"white",
outlineWidth:2
},
connectorHoverStyle:{
lin... | JavaScript | 0.000001 | @@ -1973,32 +1973,39 @@
%09%09%09console.log(%22
+Remove
connection detac
@@ -2003,15 +2003,8 @@
ion
-detach
%22 +
@@ -2193,32 +2193,36 @@
%09%09%09console.log(%22
+Add
connection add %22
@@ -2220,12 +2220,8 @@
ion
-add
%22 +
@@ -2821,32 +2821,352 @@
%0A%09%0A%09
-jsPlumb.draggable(module
+module.dblcl... |
7959105e8012c832d7ed9cf11811d8163b10c4e4 | check states and redirects | modules/users/client/controllers/authentication.client.controller.js | modules/users/client/controllers/authentication.client.controller.js | 'use strict';
angular.module('users').controller('AuthenticationController', ['$scope', '$state', '$http', '$location', '$window', 'Authentication', 'PasswordValidator',
function ($scope, $state, $http, $location, $window, Authentication, PasswordValidator) {
$scope.authentication = Authentication;
$scope.po... | JavaScript | 0 | @@ -2016,24 +2016,26 @@
ate);%0A
+//
if ($state.p
@@ -2042,16 +2042,29 @@
revious
+!= undefined
&& $stat
@@ -2078,16 +2078,29 @@
ous.href
+ != undefined
) %7B%0A
@@ -2101,16 +2101,18 @@
%7B%0A
+//
url +=
@@ -2181,32 +2181,34 @@
String();%0A
+//
%7D%0A%0A // Effe
|
2161d5754e96e6e70547fcd9c29caf9e1710d30a | use map() and join() | osmaxx/excerptexport/static/excerptexport/scripts/utm_zone_filter.js | osmaxx/excerptexport/static/excerptexport/scripts/utm_zone_filter.js | jQuery(document).ready(function(){
var utm_optgroup_html_element = '#id_coordinate_reference_system optgroup[label="UTM zones"]',
utm_zone_optgroup_original = jQuery(utm_optgroup_html_element).clone();
window.filterUTMZones = function (leafletGeometry) {
var utm_zone_optgroup = jQuery(utm_optgr... | JavaScript | 0.000004 | @@ -575,41 +575,17 @@
l =
-'';%0A srids.forEach
+srids.map
(fun
@@ -597,16 +597,20 @@
(srid)%7B%0A
+
@@ -735,23 +735,18 @@
-options_html +=
+ return
_op
@@ -784,33 +784,46 @@
-%7D
+ %7D).join(''
);%0A
|
8d455015a6a8783fa6d91ce94a5e9b113dc9a71c | Handle errors when traversing the node_modules dir to stop EventEmitter throwing an exception | packages/navy-plugin-nodejs/src/hooks/rewrite-linked-node-modules.js | packages/navy-plugin-nodejs/src/hooks/rewrite-linked-node-modules.js | import findit from 'findit'
import path from 'path'
import fs from 'fs'
export default () => {
const finder = findit(path.join(process.cwd(), 'node_modules'))
finder.on('link', link => {
if (link.indexOf('.bin') !== -1) return
const absolutePath = fs.realpathSync(link)
fs.unlinkSync(link)
fs.syml... | JavaScript | 0 | @@ -64,16 +64,91 @@
rom 'fs'
+%0Aimport os from 'os'%0A%0Aimport %7Bname as pluginName%7D from '../../package.json'
%0A%0Aexport
@@ -231,16 +231,159 @@
les'))%0A%0A
+ finder.on('error', err =%3E %7B%0A console.error(%60$%7BpluginName%7D failed to traverse your node_modules directory:%60, os.EOL, err.toString())%... |
9109ea1968b91b648cae81c6fa136fa025cdfb0f | Add console.error for server errors | polygerrit-ui/app/elements/core/gr-error-manager/gr-error-manager.js | polygerrit-ui/app/elements/core/gr-error-manager/gr-error-manager.js | // Copyright (C) 2016 The Android Open Source Project
//
// 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.000001 | @@ -3205,32 +3205,61 @@
ext);%0A %7D%0A
+ console.error(text);%0A
%7D);%0A %7D,
|
9141e41ed183bb337d58c3057680cf6b5d68b337 | Fix metrics recording in the File Browser. | chrome/browser/resources/file_manager/js/metrics.js | chrome/browser/resources/file_manager/js/metrics.js | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Utility methods for accessing chrome.metricsPrivate API.
*
* To be included as a first script in main.html
*/
var metrics = {... | JavaScript | 0.999717 | @@ -13,17 +13,17 @@
(c) 201
-1
+2
The Chr
@@ -1332,19 +1332,24 @@
%7B%0A var
-max
+boundary
Value;%0A
@@ -1449,27 +1449,32 @@
value);%0A
-max
+boundary
Value = vali
@@ -1487,20 +1487,16 @@
s.length
- - 1
;%0A %7D el
@@ -1523,19 +1523,24 @@
ue;%0A
-max
+boundary
Value =
@@ -1554,12 +1554,8 @@
l... |
a74c8c560dc7fb31ffc330ed17f398964f0450cf | Handle Android livestream | clientapp/controllers/ClientLiveStreamController.js | clientapp/controllers/ClientLiveStreamController.js | /* Copyright 2017 PSU Capstone Team D
This code is available under the "MIT License".
Please see the file LICENSE in this distribution for license terms.*/
// Define the ClientLiveStreamController on clientUI module
angular.module('clientUI')
.controller('ClientLiveStreamController', ['$scope', function ($scope) {
... | JavaScript | 0.000001 | @@ -241,9 +241,10 @@
I')%0A
-%09
+
.con
@@ -308,28 +308,24 @@
($scope) %7B%0A
-
$scope.s
@@ -349,20 +349,16 @@
se;%0A
-
-
$scope.l
@@ -376,16 +376,17 @@
function
+
() %7B%0A
@@ -392,18 +392,263 @@
- if
+var ua = navigator.userAgent.toLowerCase();%0A var isAndroid = ua.in... |
c6f7549a0ff3065e204d3e3bf93e0d03ba7adfc4 | Update code | Scripts/App.js | Scripts/App.js | (function ($, marked, MathJax) {
function getQueryStringParameters() {
var params = document.URL.split("?")[1].split("&");
var obj = {};
for (var i = 0; i < params.length; i = i + 1) {
var singleParam = params[i].split("=");
obj[singleParam[0]] = decodeURICom... | JavaScript | 0 | @@ -2969,211 +2969,8 @@
%0D%0A%0D%0A
- function readFileContentsDeferred(serverRelativeUrl, appWebUrl, hostWebUrl) %7B%0D%0A readFileContents(serverRelativeUrl, appWebUrl, hostWebUrl).done(render).fail(readFileContentsOnFail);%0D%0A %7D%0D%0A%0D%0A
@@ -3676,12 +3676,12 @@
l().
-done
+then
(rea
@@ ... |
b1611cce3ee216ee05228e3bf2059d14fe00d79b | Add the redirectTo property | src/andamio.router.js | src/andamio.router.js | Andamio.Router = Backbone.Router.extend({
// Override Backbone.Router._bindRoutes
_bindRoutes: function () {
if (!this.routes) {
return;
}
this.routes = _.result(this, 'routes');
_.each(this.routes, function (route) {
var urls = _.isArray(route.url) ? route.url : [route.url];
va... | JavaScript | 0.000001 | @@ -491,25 +491,8 @@
oute
-.name, route.view
);%0A
@@ -612,18 +612,13 @@
rl,
-name, View
+route
) %7B%0A
@@ -640,24 +640,206 @@
= this;%0A
-%0A
var
+ callback;%0A%0A if (route.redirectTo) %7B%0A callback = function () %7B%0A Backbone.history.navigate(route.redirectTo, %7Btrigger: true, replac... |
150dd3ae65d82e1d3b81a3ce384fddd257456707 | Use Debug for logging errors | Source/Main.js | Source/Main.js |
"use strict";
var
OS = require('os'),
Net = require('net'),
CPP = require('childprocess-promise');
class Main{
constructor(Port){
this.Port = Number(Port);
this.Server = null;
this.Children = [];
this.Database = new Map();
}
Run(){
let NumCPUs = OS.cpus().length;
let SupportedEvent... | JavaScript | 0 | @@ -98,16 +98,63 @@
romise')
+,%0A Debug = require('debug')('happy-db:errors')
;%0Aclass
@@ -855,16 +855,48 @@
error)%7B%0A
+ Debug(error.stack);%0A
|
351e9afff132c9f7d508d7529e1d65101b607b68 | Update JSDoc | TimeCounter.js | TimeCounter.js | /**
* This is a simple time counter.
* It counts only how long it runs in following format:
* <b>hh:mm:ss</b>
*
*/
function TimeCounter() {
/**
* Private members
*/
var count = 0;
var _intervalTimer = undefined;
// given options
var options = arguments[0] || {};
/**
* Def... | JavaScript | 0 | @@ -109,16 +109,63 @@
%3C/b%3E%0A *%0A
+ * @author Sascha Hofrichter%0A * @version 1.0.0%0A
*/%0Afunc
|
af20f26856af78cb1f572945f25f64ab860f1a35 | remove use strict | Transformer.js | Transformer.js | 'use strict';
var Visitor = require('tree-visitor');
module.exports = Transformer;
function Transformer(actions) {
Visitor.apply(this, arguments);
}
Transformer.prototype = Object.create(Visitor.prototype);
Transformer.replaceNode = function (ret, i, nodes) {
if (ret === null) {
nodes.splice(i, 1);
return i;
... | JavaScript | 0.000007 | @@ -1,19 +1,4 @@
-'use strict';%0A%0A
var
|
c63bdb5fb16514cf568d5052bddc6dd48551ee7c | Remove redundant doc tag descriptions | src/client/voice/util/PlayInterface.js | src/client/voice/util/PlayInterface.js | const { Readable } = require('stream');
const prism = require('prism-media');
/**
* Options that can be passed to stream-playing methods:
* @typedef {Object} StreamOptions
* @property {StreamType} [type='unknown'] The type of stream. 'unknown', 'converted', 'opus', 'broadcast.
* @property {number} [seek=0] The tim... | JavaScript | 0.000015 | @@ -234,52 +234,8 @@
eam.
- 'unknown', 'converted', 'opus', 'broadcast.
%0A *
|
0729b5fc600822208f4b323efbce556fc18370be | Add flag when injular is attached to module | src/attachToModule.js | src/attachToModule.js | import { instantiateDirective } from './ngHelpers';
function injularCompile($compileNode, templateAttrs, childTranscludeFn) {
const node = $compileNode[0];
node.$injularTemplate = node.outerHTML;
// eslint-disable-next-line no-underscore-dangle, max-len
return this._nonInjularCompile && this._nonInjularCompil... | JavaScript | 0 | @@ -1009,16 +1009,89 @@
ngle */%0A
+ if (module.$injularAttached) return;%0A module.$injularAttached = true;%0A
module
|
f9fc45b809d88e1259a3df5d6d80903e3dc72140 | Fix Code Climate | src/build/buildApp.js | src/build/buildApp.js | import fs from 'fs';
import crypto from 'crypto';
import _ from 'lodash';
import path from 'path';
import ncp from 'ncp';
import shellJs from 'shelljs';
const copy = ncp.ncp;
/**
* Only picks certain app args to pass to nativefier.json
* @param options
*/
function selectAppArgs(options) {
return {
name: opti... | JavaScript | 0.000001 | @@ -2226,183 +2226,28 @@
urn
-new Promise((_resolve, _reject) =%3E %7B%0A Promise.all(promises)%0A .then(() =%3E %7B%0A _resolve();%0A %7D)%0A .catch((error) =%3E %7B%0A _reject(error);%0A %7D);%0A %7D
+Promise.all(promises
);%0A%7D
@@ -2909,179 +2909,28 @@
urn
-new Promise((r... |
f6ba3fd260ef7bc4bfaea1d43815e6c60df60fe8 | Remove unnecessary setter | resources/assets/js/vuex/actions.js | resources/assets/js/vuex/actions.js | import _ from 'lodash'
import RandExp from 'randexp'
export const loadRoutes = function ({dispatch}) {
this.$api_demo2.load({url: 'routes/index'})
.then((response) => {
dispatch('SET_ROUTES_ERROR', false)
dispatch('SET_ROUTES', response.data)
})
.catch((xhr, status, ... | JavaScript | 0.000051 | @@ -2195,63 +2195,8 @@
ta)%0A
- dispatch('SET_CURRENT_REQUEST', data.data)%0A
|
93176be3b92c539014a0d16cc964a1315f3b438a | set libraryTarget to 'commonjs2' | make-webpack-config.js | make-webpack-config.js | var webpack = require('webpack')
var path = require('path')
var fs = require('fs')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var StatsPlugin = require('stats-webpack-plugin')
var loadersByExtension = require('./lib/loaders-by-extension')
module.exports = function(opts) {
var entry = {
mai... | JavaScript | 0.000014 | @@ -1788,16 +1788,48 @@
public/'
+,%0A libraryTarget: 'commonjs2'
%0A %7D%0A%0A
|
68cb89aa0b535efbf04e80c6dd07e16523759ac4 | add windows test conflict | scripts/dataentry.js | scripts/dataentry.js | /**
* dataentry.js a dummy input data entry
*
* Copyright 2014 Nahuel Soldevilla
* Released under the MIT license.
*
* > dt = DataEntry.makeDataEntry() // make new object
* > dt.attachType("input") // attach to input element
*
*/
(function( window ) {
var
// http://www.kipdola.be/en/blog/skerit/120-keycode-array... | JavaScript | 0.000001 | @@ -1112,16 +1112,33 @@
: 'z',
+ 91 : 'windows',
96 : '
|
a11e0c63be45689a022dc54840f722a502a4522a | Disable variantGrouping experiment | src/featureFlags.js | src/featureFlags.js | import colors from 'picocolors'
import log from './util/log'
let defaults = {
optimizeUniversalDefaults: false,
}
let featureFlags = {
future: ['hoverOnlyWhenSupported', 'respectDefaultRingColorOpacity'],
experimental: ['optimizeUniversalDefaults', 'variantGrouping', 'matchVariant'],
}
export function flagEnab... | JavaScript | 0.000001 | @@ -255,40 +255,47 @@
', '
-variantGrouping', 'matchVariant'
+matchVariant' /* , 'variantGrouping' */
%5D,%0A%7D
|
05a947d0e796eef488d5777096d81fc4dcb7d54c | Replace padding width calculation | src/strand-list-item/strand-list-item.js | src/strand-list-item/strand-list-item.js | /**
* @license
* Copyright (c) 2015 MediaMath Inc. All rights reserved.
* This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt
*/
(function (scope) {
scope.ListItem = Polymer({
is: "strand-list-item",
behaviors: [
StrandTraits.Resolvable,
Strand... | JavaScript | 0.000003 | @@ -205,16 +205,51 @@
cope) %7B%0A
+%09var Measure = StrandLib.Measure;%0A%0A
%09scope.L
@@ -1859,149 +1859,8 @@
t);%0A
-%09%09%09var padding = parseInt(getComputedStyle(this).paddingLeft.split('px')%5B0%5D) + parseInt(getComputedStyle(this).paddingRight.split('px')%5B0%5D);%0A
%09%09%09v
@@ -1913,15 +1913,37 @@
h... |
d123bea8c1a4f1c977928fa2cfffe19132f74dab | Change Animated's Flow Type to require useNativeDriver be explicit | Libraries/Animated/src/animations/Animation.js | Libraries/Animated/src/animations/Animation.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.
*
* @flow
* @format
*/
'use strict';
const NativeAnimatedHelper = require('../NativeAnimatedHelper');
import type AnimatedValue f... | JavaScript | 0.000001 | @@ -537,17 +537,16 @@
veDriver
-?
: boolea
|
e18c127ac9c7d2ae47367949131c93afb492ff66 | implement 'warning' prop | src/components/datepicker/DatePickerInput.js | src/components/datepicker/DatePickerInput.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Box, { omitBoxProps, pickBoxProps } from '../box';
import DayPickerInput from 'react-day-picker/DayPickerInput';
import Icon from '../icon';
import NavigationBar from './NavigationBar';
import WeekDay from './WeekDay';
import { con... | JavaScript | 0.998896 | @@ -2891,32 +2891,41 @@
readOnly, size,
+ warning,
...others %7D = t
@@ -2927,32 +2927,32 @@
%7D = this.props;%0A
-
const %7B inpu
@@ -3324,24 +3324,63 @@
utHasFocus,%0A
+ %5Btheme%5B'has-warning'%5D%5D: warning,%0A
%7D);%0A%0A
@@ -3643,16 +3643,34 @@
inverse%7D
+ warning=%7Bwarning%7D
/%3E%0... |
6daddf8e7ea1c0b7d48cf6e5b785e343092a4ee2 | Change wording. | commons/CitationModal.js | commons/CitationModal.js | import { $$, Component } from '../dom'
import { Form, FormRow, Modal, MultiSelect } from '../ui'
export default class CitationModal extends Component {
getInitialState () {
const { mode, node } = this.props
const value = mode === 'edit' ? node.references : []
return { value }
}
render () {
const... | JavaScript | 0.000001 | @@ -1019,11 +1019,14 @@
l: '
-Add
+Select
Ref
|
3184bfa7bd52cc6d9231d1956a45136ba3d4b600 | Fix 'file not found' when loading translation files. | app/js/translations.js | app/js/translations.js | const i18next = require('i18next');
const i18nextXHRBackend = require('i18next-xhr-backend');
const jqueryI18next = require('jquery-i18next');
i18next
.use(i18nextXHRBackend)
.init({
fallbackLng: 'en-US',
debug: false,
ns: ['deimos-issuer'],
defaultNS: 'deimos-issuer',
backend: {
loadPath: 'l... | JavaScript | 0 | @@ -177,16 +177,51 @@
.init(%7B%0A
+ whitelist: %5B'en-US', 'pt-BR'%5D,%0A
fall
|
a8f4e4e72c2197b852f9328f19e4b68a48400f97 | fix alias pointing to self | addon/index.js | addon/index.js |
import Ember from 'ember';
import WidgetCollection from 'ember-eureka/widget-collection';
import QueryParametrableWidgetMixin from 'eureka-mixin-query-parametrable-widget';
export default WidgetCollection.extend(QueryParametrableWidgetMixin, {
/** set the queryParam (used for the QueryParametrableWidgetMixin),
... | JavaScript | 0.000002 | @@ -451,61 +451,8 @@
),%0A%0A
- modelRoute: Ember.computed.alias('modelRoute'),%0A%0A
|
4dbbeacbc26c74a254b4a2056ced599602060d7f | Simplify timeSince calculation | client/actions/show-heartbeat/index.js | client/actions/show-heartbeat/index.js | import { Action, registerAction } from '../utils';
const VERSION = 55; // Increase when changed.
// how much time should elapse between heartbeats?
const HEARTBEAT_THROTTLE = 1000 * 60 * 60 * 24; // 24 hours
export default class ShowHeartbeatAction extends Action {
constructor(normandy, recipe) {
super(normand... | JavaScript | 0.00036 | @@ -921,18 +921,20 @@
');%0A
-le
+cons
t timeSi
@@ -943,127 +943,19 @@
e =
-Infinity;%0A%0A // If no heartbeat has ever been shown, lastShown will be falsey.%0A if (lastShown) %7B%0A timeSince =
+lastShown ?
new
@@ -973,23 +973,28 @@
astShown
-;%0A %7D
+ : Infinity;
%0A%0A //
|
8216df917229c4e210f530339ecd6c7c239861b3 | update routes.js | config/routes.js | config/routes.js | var routes = function(config, pages) {
var tags;
tags = config.tags;
routes = [];
// tags
tags.forEach(function(tag) {
routes.push({
data: {
tag: tag
},
template: "tag.jade",
target: "tags/" + tag + ".html"
});
});
... | JavaScript | 0.000002 | @@ -507,13 +507,8 @@
get:
- %22%22 +
pag
|
3f646f13dde68f0314936c26c8a1074ab616bb89 | Add option to change the default country code | src/components/views/auth/CountryDropdown.js | src/components/views/auth/CountryDropdown.js | /*
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | JavaScript | 0.000001 | @@ -709,16 +709,60 @@
number';
+%0Aimport SdkConfig from %22../../../SdkConfig%22;
%0A%0Aconst
@@ -1551,24 +1551,345 @@
ind(this);%0A%0A
+ let defaultCountry = COUNTRIES%5B0%5D;%0A if (SdkConfig.get()%5B%22defaultCountryCode%22%5D) %7B%0A const country = COUNTRIES.find(c =%3E c.iso2 === Sdk... |
f98b2f74a13ef8d610900d7feb1f9f4e218662dc | Stop Using Promise#finally | src/network/fetchRelayQuery.js | src/network/fetchRelayQuery.js | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... | JavaScript | 0.000001 | @@ -373,19 +373,21 @@
rict';%0A%0A
-var
+const
Promise
@@ -405,27 +405,29 @@
'Promise');%0A
-var
+const
RelayNetwor
@@ -461,27 +461,29 @@
orkLayer');%0A
-var
+const
RelayProfil
@@ -513,19 +513,21 @@
iler');%0A
-var
+const
RelayQu
@@ -612,19 +612,21 @@
uery';%0A%0A
-var
+const
resolve
@@ -667,19 +667,19 @... |
3064cdd3712d2014b0e340dc04faa1efa34b209d | Update attachments.js | client/components/cards/attachments.js | client/components/cards/attachments.js | Template.attachmentsGalery.events({
'click .js-add-attachment': Popup.open('cardAttachments'),
'click .js-confirm-delete': Popup.afterConfirm(
'attachmentDelete',
function() {
Attachments.remove(this._id);
Popup.close();
},
),
// If we let this event bubble, FlowRouter will handle it and... | JavaScript | 0 | @@ -4104,32 +4104,73 @@
%7D,%0A %7D);%0A
+ %7D else %7B%0A direct(results);%0A
%7D%0A %7D%0A
|
18afebe15e431e8413dcc7ebdb1c00c80c15b7f0 | remove manual controllerAs logic (#9462) | src/core/services/compiler/compiler.js | src/core/services/compiler/compiler.js | angular
.module('material.core')
.service('$mdCompiler', mdCompilerService);
function mdCompilerService($q, $templateRequest, $injector, $compile, $controller) {
/* jshint validthis: true */
/*
* @ngdoc service
* @name $mdCompiler
* @module material.core
* @description
* The $mdCompiler service... | JavaScript | 0 | @@ -5343,16 +5343,30 @@
ls, true
+, controllerAs
);%0A
@@ -5694,97 +5694,8 @@
);%0A%0A
- if (controllerAs) %7B%0A scope%5BcontrollerAs%5D = ctrl;%0A %7D%0A%0A
|
cfb10193df8d55d1b3692d17360904e8db88732f | refactor functions to arrow | src/frontconsole.js | src/frontconsole.js | const FrontConsole = (userConfig, userTasks) => {
let consoleDOM = {};
let consoleState = {};
const defaultConfig = {
shortcutActivator: "ctrl", //options: "ctrl", "ctrl+shift", "ctrl+alt"
shortcutKeyCode: 192
}
const config = Object.assign(
defaultConfig,
userConfig
)
const defaultTas... | JavaScript | 0.999349 | @@ -1255,31 +1255,26 @@
ndler =
-function
(event)
+ =%3E
%7B%0A o
@@ -1319,23 +1319,19 @@
n =
-function
(event)
+ =%3E
%7B%0A
|
bfdae5ebb7723acb8846d03eaac002148c26e669 | Update Toggle component to put the className on label and not on input | packages/components/components/toggle/Toggle.js | packages/components/components/toggle/Toggle.js | import React from 'react';
import PropTypes from 'prop-types';
import { c } from 'ttag';
import Icon from '../icon/Icon';
const label = (key) => {
const I18N = {
on: c('Toggle button').t`On`,
off: c('Toggle button').t`Off`
};
return (
<span className="pm-toggle-label-text">
... | JavaScript | 0 | @@ -430,21 +430,42 @@
ggle = (
-props
+%7B id, className, ...rest %7D
) =%3E %7B%0A
@@ -510,21 +510,20 @@
put %7B...
-props
+rest
%7D type=%22
@@ -598,14 +598,8 @@
or=%7B
-props.
id%7D
@@ -600,33 +600,34 @@
=%7Bid%7D className=
-%22
+%7B%60
pm-toggle-label%22
@@ -625,17 +625,31 @@
le-label
-%22
+ $%7BclassNa... |
c4965d2622dc1b3caee6ec3ee821f79470ee8af6 | fix history problem in production environment | src/stores/configureStore.prod.js | src/stores/configureStore.prod.js | 'use strict';
import { compose, createStore, combineReducers } from 'redux';
import { syncReduxAndRouter, routeReducer } from 'redux-simple-router'
import createHistory from 'history/lib/createBrowserHistory';
import reducers from '../reducers';
const finalCreateStore = compose(
)(createStore);
function configureSt... | JavaScript | 0.000008 | @@ -191,24 +191,241 @@
eate
-BrowserHistory';
+HashHistory';%0A//import createHistory from 'history/lib/createBrowserHistory';%0A/* To use browser history, you have to config your web server%0A * https://github.com/rackt/react-router/blob/master/docs/guides/basics/Histories.md%0A *%0A */
%0A%0Aim
|
83854034a8b7a4340efeab5100aed1ab7984bc17 | Fix admin firebase URL | source/js/modules/admin/admin-ctrl.js | source/js/modules/admin/admin-ctrl.js | /**
* Admin controller definition
* @scope Controllers
*/
define(['./module'], function (controllers) {
'use strict';
controllers.controller('AdminController', ['$scope', 'linkStorage', '$firebase',
function AdminController($scope, linkStorage, $firebase) {
var fireRef = new Firebase('https://shining-... | JavaScript | 0 | @@ -338,16 +338,21 @@
eio.com/
+links
');%0A%0A
|
4ac61084a9796cf8e27dd1564b7049c306394f21 | update config | config/server.js | config/server.js | 'use strict';
const path = require('path');
const express = require('express');
const viewEngine = require('ejs-locals');
const app = express();
// Server Config ==========================================
app.engine('ejs', viewEngine);
app.set('views', path.join(__dirname, '../views'));
app.set('view engine', 'ejs... | JavaScript | 0.000001 | @@ -869,14 +869,36 @@
rt',
+ (process.env.PORT %7C%7C
3000)
+)
;%0A%7D%0A
@@ -1042,12 +1042,34 @@
rt',
+ (process.env.PORT %7C%7C
80)
+)
;%0A%7D%0A
|
80aab9a60ec4146746c16ee411c1e427816bc47f | Fix update and delete domain dispatch position | src/ui/scripts/actions/domains.js | src/ui/scripts/actions/domains.js | import api from '../utils/api'
export const SET_DOMAINS_VALUE = Symbol()
export const SET_DOMAINS_FETCHING = Symbol()
export const SET_DOMAINS_ERROR = Symbol()
export const RESET_DOMAINS = Symbol()
export const setDomainsValue = (payload) => ({
type: SET_DOMAINS_VALUE,
payload
})
export const setDomainsFetching = ... | JavaScript | 0 | @@ -1136,41 +1136,8 @@
%7D)%0A%0A
-%09%09dispatch(fetchDomains(props))%0A%0A
%09%7D c
@@ -1182,37 +1182,26 @@
or(err))%0A%0A%09%7D
- finally %7B
%0A%0A
-%09
%09dispatch(se
@@ -1202,38 +1202,28 @@
tch(
-s
+f
et
+ch
Domains
-Fetching(false))%0A%0A%09%7D
+(props))
%0A%0A%7D%0A
@@ -1488,41 +1488,8 @@
%7D)%0A%0A
-... |
1b91401f0b71cee0aa4a65a3347a90c7a47947a9 | Update gerrit_api.js | contents/gerrit_api.js | contents/gerrit_api.js | // TODO(sungguk): Make |GerritQuery| as singleton.
/**
* The GerritQuery sends and receives Gerrit data by using Gerrit REST APIs.
* @constructor
*/
function GerritQuery() {}
GerritQuery.prototype = {
getChangeList: function(query) {
// is:open+reviewer:self+owner:self
console.log("Query:", query);
... | JavaScript | 0.000001 | @@ -1041,15 +1041,767 @@
%7D);%0A
+ %7D,%0A getChange: function(change_id) %7B%0A return new Promise(function(resolve, reject) %7B%0A var xhr = new XMLHttpRequest();%0A%0A // %7Capi_endpoint%7C would be a gerrit url like a https://gpro.lgsvl.com/%0A var api_endpoint = localStorage%5B%22api_endp... |
aa9fdc1a91c1b1930282d31cd391a4c2aa26f340 | Fix step numbers | src/foam/u2/wizard/StepWizardletStepsView.js | src/foam/u2/wizard/StepWizardletStepsView.js | /**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.wizard',
name: 'StepWizardletStepsView',
extends: 'foam.u2.View',
css: `
^item {
margin-bottom: 24px;
}
^step-number-and-title {
dis... | JavaScript | 0.001305 | @@ -2065,167 +2065,8 @@
%7D%0A%0A
- let baseCircleIndicator = %7B%0A size: 24,%0A borderThickness: 2,%0A label: '' + (1 + w - wSkipped),%0A %7D;%0A
@@ -2393,13 +2393,14 @@
nt,
+(
1 +
-2
+w
- w
@@ -2402,24 +2402,25 @@
w - wSkipped
+)
%0A ... |
1200d5e12fe4673f8e9e582915bd9d99839cf78b | Throw an error if the Stuffr API has not been initialized before use | app/stuffrapi.js | app/stuffrapi.js | /* stuffrapi.js
Abstraction for working with Stuffr's backend REST API.
An API object is exported for use in programs. To use, call the setupApi
function at some point before it in your code, then whereever you need to call
the Stuffr backend API you can just "import stuffrApi from 'stuffrapi'" to
access it.
For more... | JavaScript | 0 | @@ -3324,102 +3324,296 @@
%0A//
-TODO: replace null with dummy object that throws %22not initialized%22 error%0Alet defaultApi = null
+Dummy object to throw an error if the API was used before initalization%0Aconst dummyApi = %7B%0A get (target, name) %7B%0A const errorMsg = 'You must call setupApi before using A... |
fc2158257d9f224a08e38bcbf19963550d03bfe4 | remove period | src/foam/nanos/u2/navigation/SignUp.js | src/foam/nanos/u2/navigation/SignUp.js | foam.CLASS({
package: 'foam.nanos.u2.navigation',
name: 'SignUp',
documentation: `Model used for registering/creating an user.
Hidden properties create the different functionalities for this view (Ex. coming in with a signUp token)`,
imports: [
'appConfig',
'auth',
'notify',
'stack',
'us... | JavaScript | 0.000187 | @@ -2533,17 +2533,16 @@
ob Title
-.
'%0A
|
1916cc22ece6f1fa780f4ced7af3d8dce2e704f5 | update testing env scripts | scripts/setup-env.js | scripts/setup-env.js | const fs = require('fs-extra')
const path = require('path')
main().catch(swallow)
async function main() {
const depsPath = path.join(__dirname, '../deps')
const destPath = path.join(__dirname, '../node_modules')
const stat = await fs.stat(depsPath).catch(swallow)
if (stat && stat.isDirectory()) {
const de... | JavaScript | 0.000004 | @@ -77,16 +77,44 @@
allow)%0A%0A
+// set-up local testing env%0A
async fu
@@ -245,18 +245,90 @@
)%0A
-const stat
+if (await isDirectory(depsPath)) %7B%0A const depsFiles = %5B%5D%0A const rawDepsFiles
= a
@@ -335,20 +335,23 @@
wait fs.
-stat
+readdir
(depsPat
@@ -356,55 +356,77 @@
ath)
-.catch(swallow)%... |
3656892aaff972a99ab58c8d4f5b8d5ec5c7ca3f | Correct file overview JsDoc for seekstate.js | static/script/devices/media/seekstate.js | static/script/devices/media/seekstate.js | /**
* @fileOverview Requirejs module containing CE-HTML media wrapper
*
* @preserve Copyright (c) 2013 British Broadcasting Corporation
* (http://www.bbc.co.uk) and TAL Contributors (1)
*
* (1) TAL Contributors are listed in the AUTHORS file and at
* https://github.com/fmtvp/TAL/AUTHORS - please extend this ... | JavaScript | 0 | @@ -45,12 +45,47 @@
ning
+ a helper to track seek state for%0A *
CE
--
HTML
@@ -95,15 +95,17 @@
dia
-wrapp
+modifi
er
+.
%0A *%0A
|
23f6af65befdbe8b5c36da27d301c8b90001ee5e | Allow RenderedMap to locate and render a map from a list of maps | app/views/map.js | app/views/map.js | import * as React from 'react/addons'
import * as Reflux from 'reflux'
import * as _ from 'lodash'
let cx = React.addons.classSet
let RenderedMap = React.createClass({
findMap(mapId) {
let map = this.props.map;
if (map) {
this.setState({
map: {
width: map.get('width'),
height: map.get('height'),
... | JavaScript | 0 | @@ -175,17 +175,84 @@
Map(
-mapId
+props) %7B%0A%09%09let map = props.map;%0A%09%09if (!map && props.mapId && props.maps
) %7B%0A
+%09
%09%09le
@@ -260,26 +260,127 @@
map
+Id
=
-this.props.map;
+_.isObject(props.mapId) ? props.mapId.id : props.mapId;%0A%09%09%09map = _.find(props.maps, (map) =%3E map.id === map... |
a5efa820dd9bb04232dde7a8f6bfafd223f7f52a | fix typing error on initial check | appengine/app.js | appengine/app.js | 'use strict'
const express = require('express')
const admin = require('firebase-admin')
const util = require('util')
const request = require('request-promise')
const scheduler = require('firebase-scheduler')
// Prepare Firebase
// ----------------
const serviceAccount = require('./firebase-admin-key.json')
const co... | JavaScript | 0.000001 | @@ -2277,17 +2277,16 @@
s) =%3E %7B%0A
-%0A
// All
@@ -2382,21 +2382,24 @@
ron') !=
-
+= '
true
+'
) %7B%0A
|
1a649a6ac36100c7a28234a0492464d4ad605e22 | Handle in-app-purchase less fatally on non-Darwin (#12511) | lib/browser/api/in-app-purchase.js | lib/browser/api/in-app-purchase.js | 'use strict'
if (process.platform !== 'darwin') {
throw new Error('The inAppPurchase module can only be used on macOS')
}
const {EventEmitter} = require('events')
const {inAppPurchase, InAppPurchase} = process.atomBinding('in_app_purchase')
// inAppPurchase is an EventEmitter.
Object.setPrototypeOf(InAppPurchase.p... | JavaScript | 0 | @@ -32,9 +32,9 @@
orm
-!
+=
== '
@@ -50,81 +50,8 @@
%7B%0A
-throw new Error('The inAppPurchase module can only be used on macOS')%0A%7D%0A%0A
cons
@@ -87,16 +87,18 @@
vents')%0A
+
const %7Bi
@@ -168,16 +168,18 @@
hase')%0A%0A
+
// inApp
@@ -207,16 +207,18 @@
mitter.%0A
+
Object.s
@@ -280,16 +280,18 @... |
1efcd816189ef58aad4a044848f1d33a897762db | extend callback with general callbacks | lib/callbacks/databaseCallbacks.js | lib/callbacks/databaseCallbacks.js | /*
* cushion-cli
* https://github.com/stefanjudis/cushion-cli
*
* Copyright (c) 2012 stefan judis
* Licensed under the MIT license.
*/
var databaseCallbacks = module.exports = {};
var cli = require('../cliRunner');
databaseCallbacks.exists = function(error, response) {
if (error) {
databaseCallbacks.hand... | JavaScript | 0.000001 | @@ -182,42 +182,227 @@
= %7B%7D
-;%0Avar cli = require('../cliRunner'
+,%0A generalCallbacks = require('./generalCallbacks'),%0A cli = require('../cliRunner'),%0A extend = require('node.extend');%0A%0A%0A// extend level commands with general commands%0Aextend(databaseCallbacks, generalCallbacks
);%0A%0A
|
e37375a30589e196c463853be2d75a8999afca86 | update oauth2 | Resource-Authorization-Server/config/oauth2.js | Resource-Authorization-Server/config/oauth2.js | 'use strict';
var oauth2orize = require('oauth2orize');
var passport = require('passport');
var crypto = require('crypto');
var bcrypt = require('bcrypt');
var Client = require('../models/Client');
var AccessToken = require('../models/AccessToken');
var uuid = require('./uuid');
var server = oauth2orize.createServer(... | JavaScript | 0 | @@ -146,24 +146,57 @@
('bcrypt');%0A
+var _ = require('underscore')._;%0A
var Client =
@@ -960,24 +960,25 @@
es, done) %7B%0A
+%0A
var token
@@ -1095,18 +1095,521 @@
* 1000))
+;
%0A%0A
+ var clientId = %7B%7D;%0A%0A _.each(client, function(c) %7B%0A clientId = c.clientId;%0A %7D);%0A%0A AccessToken.find... |
74fdb9a1b31739b240208b6f4abae5c11aedec93 | remove refreshToken store | lib/entitlement/passport-config.js | lib/entitlement/passport-config.js | "use strict";
var async = require('async');
var express = require('express');
var passport = require('passport');
var _ = require('underscore');
var request = require('request');
var url = require('url');
var crypto = require('crypto');
var util = require('util');
var GitHubStrategy = require('passport-github').Strat... | JavaScript | 0.000001 | @@ -3982,68 +3982,8 @@
oken
-,%0A refershToken: refershToken
%0A
|
c6d51c0686f0e95873d8016cf87079a40f49788f | add warnings about obsolete namespaces | lib/jose-backward-compatibility.js | lib/jose-backward-compatibility.js | // this file exists for backward compatibility only
JoseJWE.Utils = Jose.Utils;
JoseJWE.WebCryptographer = Jose.WebCryptographer;
| JavaScript | 0.000001 | @@ -50,34 +50,232 @@
ly%0A%0A
-JoseJWE.Utils = Jose.Utils
+console.warn(%22JoseJWE.Utils namespace is obsolete and it'll be removed in future releases%22);%0AJoseJWE.Utils = Jose.Utils;%0A%0Aconsole.warn(%22JoseJWE.WebCryptographer namespace is obsolete and it'll be removed in future releases%22)
;%0AJo
|
45451fb1546100c70cef6e1ed9f322915c9090ab | 删除initProjConfig时创建.data文件夹的操作 | lib/module/initProject/initProj.js | lib/module/initProject/initProj.js | var fs = require('fs'),
mod = require('../../mod.js'),
notice = mod.notice,
util = mod.util,
_conf = mod.conf,
ProjConfig = mod.load('ProjConfig');
var _exampleRoot = mod.dirname+'/../template/',
_projTpls = {},
_projnameReg = /\{@projRoot\}/g;
// 初始化所有的配置方案
fs.readdirSync(_exampleRoot).forEach(function(v){
... | JavaScript | 0 | @@ -1121,37 +1121,39 @@
File;%0A%09if (!
-fs.e
+util.fileE
xists
-Sync
(confFile))
@@ -1618,16 +1618,19 @@
th);%0A%09%09%09
+//
path = r
@@ -1651,32 +1651,35 @@
micDataPath;%0A%09%09%09
+//
if (!fs.existsSy
|
f8e6284e54eb58fb4877c479e74c01dda40ec2ef | Add back 'X is typing' (though it doesn't work properly with threads) | ditto/static/flux-chat/js/stores/WhosTypingStore.js | ditto/static/flux-chat/js/stores/WhosTypingStore.js | var ChatAppDispatcher = require('../dispatcher/ChatAppDispatcher');
var ChatConstants = require('../constants/ChatConstants');
var EventEmitter = require('events').EventEmitter;
var assign = require('object-assign');
var ThreadStore = require('../stores/ThreadStore');
var ActionTypes = ChatConstants.ActionTypes;
var C... | JavaScript | 0 | @@ -885,9 +885,14 @@
) %7B%0A
-%09
+
var
@@ -940,37 +940,289 @@
- return _whosTyping%5BthreadID
+// chatstates doesn't know about threads so we don't know when someone%0A // is typing in a particular thread. (prob easy to modify chatstates js to pass%0A // %3Cthread%3E in the message?)%0A ... |
f1cfd96e63ed0368440cac2a53ead4b9352abcbe | Enable ServiceWorker back | _js/main/components/register-service-worker.js | _js/main/components/register-service-worker.js | /* VARS */
var humane = require('../libs/humane');// http://wavded.github.io/humane-js/
// enables debug logging in the browser script and Service Worker
var isDebugEnabled = localStorage.debug || location.search.indexOf('debug') !== -1;
/* LOGGING */
function log() {
if (!isDebugEnabled) return;
console.log.... | JavaScript | 0 | @@ -657,18 +657,16 @@
RKER */%0A
-//
if ('ser
@@ -689,26 +689,24 @@
avigator) %7B%0A
-//
let swPa
@@ -732,18 +732,16 @@
er.js%60;%0A
-//
navi
@@ -770,18 +770,16 @@
gister(%0A
-//
@@ -785,18 +785,16 @@
swPath%0A
-//
).th
@@ -818,26 +818,24 @@
stration) %7B%0A
-//
send
@@ -917,18... |
41a1cd954c14f7168a73f1dfe7f1d2f71ffa1ecf | Set query fix | erpnext/accounts/doctype/accounting_dimension/accounting_dimension.js | erpnext/accounts/doctype/accounting_dimension/accounting_dimension.js | // Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on('Accounting Dimension', {
refresh: function(frm) {
if (!frm.is_new()) {
frm.add_custom_button(__('Show {0}', [frm.doc.document_type]), function () {
frappe.set_route("Li... | JavaScript | 0.000434 | @@ -190,173 +190,8 @@
) %7B%0A
-%09%09if (!frm.is_new()) %7B%0A%09%09%09frm.add_custom_button(__('Show %7B0%7D', %5Bfrm.doc.document_type%5D), function () %7B%0A%09%09%09%09frappe.set_route(%22List%22, frm.doc.document_type);%0A%09%09%09%7D);%0A%0A%09
%09%09fr
@@ -230,17 +230,16 @@
=%3E %7B%0A%09%09%09
-%09
return ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.