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 |
|---|---|---|---|---|---|---|---|
7b767bea3a6cfef220abd94d995c22addcb52653 | remove _courseData when displaying <SemesterDetail/> | src/screens/semester-detail.js | src/screens/semester-detail.js | import React, {PropTypes} from 'react'
import cx from 'classnames'
import {State} from 'react-router'
import Immutable from 'immutable'
import {isCurrentSemester} from 'sto-helpers'
import Student from '../models/student'
let SemesterDetail = React.createClass({
propTypes: {
className: PropTypes.string,
student:... | JavaScript | 0 | @@ -680,16 +680,94 @@
ester))%0A
+%09%09%09.map(sched =%3E sched.toMap())%0A%09%09%09.map(sched =%3E sched.delete('_courseData'))%0A
%09%09%09.toJS
|
2ab23d51e34f3792f3fa2a22c843c477c607390f | improve code | src/search/search-bar/scope.js | src/search/search-bar/scope.js | // Dependencies
const React = require('react');
const ReactDOM = require('react-dom');
const builder = require('focus-core').component.builder;
const type = require('focus-core').component.types;
const uuid = require('uuid');
const find = require('lodash/collection/find');
const {uniqueId} = require('lodash/utility');... | JavaScript | 0.000689 | @@ -3038,32 +3038,38 @@
const %7Bcode,
+ icon,
label, ...other
@@ -3093,82 +3093,8 @@
pe;%0A
- const icon = scope.icon ? scope.icon : code; //legacy%0A
@@ -3497,32 +3497,40 @@
%3CIcon name=%7Bicon
+ %7C%7C code
%7D %7B...otherScope
@@ -4146,16 +4146,22 @@
t %7Bcode,
+ icon,
label, ... |
2956f8f7ea53cd1b6d0c86b6108dde07798fdf78 | Update Unit.js | src/foam/core/Unit.js | src/foam/core/Unit.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.core',
name: 'Unit',
documentation: `The abstract model for fungible digitized assets`,
ids: [
'alphabeticCode'
],
javaImports: [
'foam.util.Saf... | JavaScript | 0.000001 | @@ -282,58 +282,8 @@
%5D,%0A%0A
- javaImports: %5B%0A 'foam.util.SafetyUtil'%0A %5D,%0A%0A
pr
|
8453b61cfd398fe53387439056315304bc22ea4f | Fix for integration test Gremlin Server connection. | gremlin-javascript/src/main/javascript/gremlin-javascript/test/helper.js | gremlin-javascript/src/main/javascript/gremlin-javascript/test/helper.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")... | JavaScript | 0 | @@ -1594,17 +1594,16 @@
tion('ws
-s
://local
|
d3af031a502a765cfd9dcd4657a6746e3157329a | rewrite queen lesson | ui/learn/src/lesson/queen.js | ui/learn/src/lesson/queen.js | var util = require('../util');
var arrow = util.arrow;
module.exports = {
title: 'The queen',
subtitle: 'Queen = rook + bishop.',
image: util.assetUrl + 'images/learn/pieces/Q.svg',
stages: [{
goal: 'Use the queen like a rook!',
fen: '8/8/8/8/8/8/8/3Q4 w - - 0 1',
items: {
d8: 'apple',
... | JavaScript | 0.000001 | @@ -210,33 +210,26 @@
l: '
-Use the queen like a rook
+Grab all the stars
!',%0A
@@ -242,37 +242,37 @@
n: '8/8/8/8/8/8/
-8/3Q4
+4Q3/8
w - - 0 1',%0A
@@ -276,60 +276,23 @@
-items: %7B%0A d8: 'apple',%0A h8: 'flower'%0A %7D
+apples: 'e5 b8'
,%0A
@@ -294,33 +294,33 @@
',%0A nbMoves:
-1
+... |
4b91100c683e7af93b6d457634e439521dd25ec8 | add configurations for AST_Toplevel | upgrade/lib/util/analyzer.js | upgrade/lib/util/analyzer.js | var
neuron = require('../../../lib/neuron'),
UglifyJS = require('uglify-js'),
RELATED_PROP = {
'AST_Function' : ['name', 'argnames', 'body'],
'AST_SymbolFunarg' : ['name'],
'AST_Dot' : ['expression', 'property'],
'AST_Call' : ['args', 'expression', 'body'],
'AST_Defun' ... | JavaScript | 0 | @@ -91,16 +91,52 @@
ROP = %7B%0A
+ 'AST_Toplevel' : %5B'body'%5D,%0A
'AST
|
d3b90c66aa2b2aa12265759e05142d46d98703e8 | Rename `BaseStore` into `Store` in `Offline` namespace | addon/index.js | addon/index.js | /**
* Addon that extends ember-data with ember-flexberry-projections to support work in offline mode.
*
* @module ember-flexberry-offline
* @main ember-flexberry-offline
*/
import Model from './models/model';
import OfflineModel from './mixins/offline-model';
import BaseStore from './stores/base-store';
/**
* T... | JavaScript | 0.000004 | @@ -454,20 +454,16 @@
e = %7B%0A
-Base
Store: B
|
8e0ec68d3bee238f1e4af145c25c8f7803124a19 | Clean up index.js to rely on `Ember.getOwner` polyfill. | addon/index.js | addon/index.js | import Ember from 'ember';
import FakeOwner from './fake-owner';
let hasGetOwner = !!Ember.getOwner;
Ember.deprecate("ember-getowner-polyfill is now a true polyfill. Use Ember.getOwner directly instead of importing from ember-getowner-polyfill", false, {
id: "ember-getowner-polyfill.import"
});
export default func... | JavaScript | 0 | @@ -23,83 +23,8 @@
er';
-%0Aimport FakeOwner from './fake-owner';%0A%0Alet hasGetOwner = !!Ember.getOwner;
%0A%0AEm
@@ -238,193 +238,20 @@
ult
-function(object) %7B%0A let owner;%0A%0A if (hasGetOwner) %7B%0A owner = Ember.getOwner(object);%0A %7D%0A%0A if (!owner && object.container) %7B%0A owner = new F... |
4f5557e2e96ac9d0caac3d0f9c0b263b679c6671 | Update production.js | config/env/production.js | config/env/production.js | 'use strict';
module.exports = {
db: 'mongodb://naveen:naveen@kahana.mongohq.com:10077/testmeanapp',
app: {
name: 'Naveen Gogineni'+'+ 's Modern Stack Website'
},
facebook: {
clientID: '1452371921688100',
clientSecret: '4fe108e43136768857c03aafcae1b433',
callbackURL: 'ht... | JavaScript | 0.000001 | @@ -144,14 +144,8 @@
neni
-'+'+ '
s Mo
|
d1e727e1262b512ed32f7e8bf2a6c7240eda49e7 | Update production scraper config | config/env/production.js | config/env/production.js | /**
* Production environment settings
*
* This file can include shared settings for a production environment,
* such as API keys or remote database passwords. If you're using
* a version control solution for your Sails app, this file will
* be committed to your repository unless you add it to your .gitignore
* ... | JavaScript | 0 | @@ -2556,17 +2556,16 @@
l: 'http
-s
://'+ pr
|
56307511a3f960bf4bedf9e8868ad70d5e918358 | Use `Ember.ComputedProperty` instead of private modules. (#90) | addon/utils.js | addon/utils.js | import Ember from 'ember';
export function isGeneratorIterator(iter) {
return (iter &&
typeof iter.next === 'function' &&
typeof iter['return'] === 'function' &&
typeof iter['throw'] === 'function');
}
export function Arguments(args, defer) {
this.args = args;
this.defer = de... | JavaScript | 0 | @@ -3310,49 +3310,8 @@
ber.
-__loader.require(%22ember-metal/computed%22).
Comp
|
8266c6e11661fc9b4e53bdcbf60cacf6062d0e5b | add vk oauth test | config/env/production.js | config/env/production.js | 'use strict';
module.exports = {
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/freelook',
assets: {
lib: {
css: [],
js: [
'//vk.com/js/api/openapi.js?115'
]
},
css: ['app/dist/freelook.min.css'],
... | JavaScript | 0 | @@ -941,29 +941,24 @@
proxy: '
-test.
freelook
.info'%0A
@@ -949,21 +949,34 @@
freelook
-.
info
+.herokuapp.com
'%0A %7D%0A
|
e154fb07ef165aa8020c14c4bd5269fdee4fb044 | Fix image duplicate clearing | admin/index.js | admin/index.js | /*
Core server-side administration module
*/
let caps = require('../server/caps'),
check = require('../server/msgcheck'),
common = require('../common'),
config = require('../config'),
db = require('../db'),
events = require('events'),
okyaku = require('../server/okyaku'),
mnemonics = require('./mnemonic... | JavaScript | 0.000013 | @@ -1826,17 +1826,14 @@
re('
-imageDups
+modLog
', 0
|
72a3dd725d752bab06cafcbbb8cf502d17c819e1 | Fix delete user error | server/routes/profile-edit.route.js | server/routes/profile-edit.route.js | //----------------------------------------------------------------------------//
var express = require('express');
var router = express.Router();
var pg = require('pg');
var connectionString = require('../modules/db-config.module');
//----------------------------------------------------------------------------//
// Ed... | JavaScript | 0.000005 | @@ -3697,33 +3697,33 @@
es.sendStatus(20
-1
+0
);%0A %7D%0A
|
70a8a1ac722ea0070b1bda91bb8040a3c68fe3bf | Update example | lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js | lib/node_modules/@stdlib/assert/is-enumerable-property/examples/index.js | /* eslint-disable object-curly-newline, object-curly-spacing */
'use strict';
var isEnumerableProperty = require( './../lib' );
var bool = isEnumerableProperty( {'a': 'b'}, 'a' );
console.log( bool );
// => true
bool = isEnumerableProperty( [ 'a' ], 0 );
console.log( bool );
// => true
bool = isEnumerableProperty( ... | JavaScript | 0.000001 | @@ -35,30 +35,8 @@
line
-, object-curly-spacing
*/%0A
@@ -139,16 +139,17 @@
y( %7B
+
'a': 'b'
%7D, '
@@ -144,16 +144,17 @@
'a': 'b'
+
%7D, 'a' )
@@ -701,16 +701,17 @@
perty( %7B
+
'null':
@@ -715,16 +715,17 @@
': false
+
%7D, null
@@ -790,16 +790,17 @@
perty( %7B
+
'%5Bobject
@@ -815,16 +815,17 @@
... |
758c406273a939630f19ce5b733d8ce9429fc7df | clear both community and user cache when creating a seed | src/js/app/controllers/SeedEditCtrl.js | src/js/app/controllers/SeedEditCtrl.js | var filepickerUpload = require('../services/filepickerUpload'),
format = require('util').format;
var directive = function($scope, currentUser, community, Seed, growl, $analytics, UserMentions, seed, $state, onboarding, $rootScope, Cache) {
$scope.onboarding = onboarding;
// onboarding mode is not the same as t... | JavaScript | 0 | @@ -2152,16 +2152,157 @@
tle;%0A %7D
+;%0A%0A var clearCache = function() %7B%0A Cache.drop('community.seeds:' + community.id);%0A Cache.drop('profile.seeds:' + currentUser.id);%0A %7D;
%0A%0A var
@@ -2508,52 +2508,19 @@
-Cache.drop('community.seeds:' + community.id
+clearCache(
);%0A
@@ -3006,52 +... |
b87c6dc3c1e1f94b823384b5f98365259bda1bb7 | Remove decimals | lib/node_modules/@stdlib/math/base/dist/binomial/quantile/lib/factory.js | lib/node_modules/@stdlib/math/base/dist/binomial/quantile/lib/factory.js | 'use strict';
// MODULES //
var isNonNegativeInteger = require( '@stdlib/math/base/utils/is-nonnegative-integer' );
var degenerate = require( '@stdlib/math/base/dist/degenerate/quantile' ).factory;
var erfcinv = require( '@stdlib/math/base/special/erfcinv' );
var isnan = require( '@stdlib/math/base/utils/is-nan' );
v... | JavaScript | 0.999988 | @@ -1075,18 +1075,16 @@
eturns 3
-.0
%0A*%0A* y =
@@ -1115,18 +1115,16 @@
eturns 7
-.0
%0A*/%0Afunc
|
cf2476c1e810a5ed318ab9e688448f1ec57d575f | fixed broken test | test/unit/NewReleaseNotification.test.js | test/unit/NewReleaseNotification.test.js | import { shallowMount } from '@vue/test-utils';
import { createTestingPinia } from '@pinia/testing';
import NewReleaseNotification from '~/components/NewReleaseNotification';
import { createClient } from '~/util/awclient';
describe('hasNewRelease method', () => {
createClient();
const wrapper = shallowMount(NewRel... | JavaScript | 0.999512 | @@ -262,26 +262,8 @@
%3E %7B%0A
- createClient();%0A
co
@@ -405,16 +405,34 @@
pper.vm;
+%0A createClient();
%0A%0A test
|
18763861ebc55d797556ccd22a1e9a10a9943f6a | refactor test | test/unit/handleUserMessage/isInScope.js | test/unit/handleUserMessage/isInScope.js | var test = require('tape')
require('rewire-global').enable()
const handleUserMessage = require('../../../messages/handleUserMessage')
const isInScope = handleUserMessage.__get__('isInScope')
test('affiliation: student should be in scope', t => {
const msg = {
affiliation:['student']
}
t.plan(1)
const resul... | JavaScript | 0.000033 | @@ -715,19 +715,19 @@
should
-not
+NOT
be in s
|
c2e0514881a66f19ba4e06caceabaecb416cc759 | change let | Admin-CSNet/routes/propertyManagement.js | Admin-CSNet/routes/propertyManagement.js | var Property = require('../model/property');
var User = require('../model/user');
var ObjectId = require('mongodb').ObjectId;
var mongoose = require('mongoose');
exports.getAllProperties = function (req, res, next) {
"use strict";
var response = [];
Property
.find({isApproved: true, isAvailable: tr... | JavaScript | 0.000003 | @@ -215,25 +215,8 @@
) %7B%0A
- %22use strict%22;
%0A
@@ -484,11 +484,11 @@
or (
-let
+var
i =
|
ffd1d3ca19717cee782a081b71ca9cf5cd06a25e | allow all special chars listed in #29 | app/scripts/query.js | app/scripts/query.js | var Query = function () {
'use strict';
var queryExpressions = [];
var regexTerm = /([\w:!\*]+)/g;
var regexNonTerm = /[^\w:!\*]+/g;
var glue = function (term, type, field) {
var rv = '';
switch (type) {
case enumGlueTypes.or:
rv += term.replace(regexTerm, fiel... | JavaScript | 0 | @@ -91,19 +91,47 @@
erm
+
= /(%5B%5Cw
-:!%5C*
+%5C+%5C-&%5C%7C!%5C(%5C)%7B%7D%5C%5B%5C%5D%5C%5E%22~%5C*%5C?:%5C%5C
%5D+)/
@@ -165,12 +165,37 @@
%5B%5E%5Cw
-:!%5C*
+%5C+%5C-&%5C%7C!%5C(%5C)%7B%7D%5C%5B%5C%5D%5C%5E%22~%5C*%5C?:%5C%5C
%5D+/g
|
44c4da62d4208a08dfb253bb744852de93d08b2a | Remove useless logs and fix req pause stream in auth middleware | core/cb.server/main.js | core/cb.server/main.js | // Requires
var http = require('http');
var express = require('express');
var _ = require('underscore');
function setup(options, imports, register) {
var workspace = imports.workspace;
var logger = imports.logger.namespace("web");
// Expres app
var app = express();
if (options.dev) {
app.... | JavaScript | 0 | @@ -964,40 +964,8 @@
) %7B%0A
- // Pause request stream%0A
@@ -1012,24 +1012,60 @@
if(uid) %7B%0A
+ // Pause request stream%0A
@@ -1304,28 +1304,10 @@
%7D
-)%0A .fail(
+,
func
@@ -1366,19 +1366,20 @@
%7D).
-fin
+done
(functio
@@ -1689,64 +1689,8 @@
l;%0... |
9fbd76d6da15cd7a03ef36bd7a75be77c55feef8 | Move activeChanged call from create to rendered | source/IconButton.js | source/IconButton.js | (function (enyo, scope) {
/**
* _moon.IconButton_ is an icon that acts like a button. Specify the icon image
* by setting the {@link moon.Icon#src} property to a URL indicating the image file's location.
*
* ```
* {kind: 'moon.IconButton', src: 'images/search.png'}
* ```
*
* If you want to combine an icon with... | JavaScript | 0 | @@ -2819,16 +2819,133 @@
ments);%0A
+%09%09%09this.noBackgroundChanged();%0A%09%09%7D,%0A%0A%09%09/**%0A%09%09* @private%0A%09%09*/%0A%09%09rendered: function () %7B%0A%09%09%09this.inherited(arguments);%0A
%09%09%09if (t
@@ -3011,39 +3011,8 @@
%09%09%7D%0A
-%09%09%09this.noBackgroundChanged();%0A
%09%09%7D,
|
31a5059dc4ee8996db4a83ab92028afc81e5ab2d | Fix authorizer | lib/middleware/apiGatewayAuthorizerEvent/apiGatewayAuthorizerEvent.js | lib/middleware/apiGatewayAuthorizerEvent/apiGatewayAuthorizerEvent.js | const smash = require("../../../smash.js");
const logger = smash.logger();
const errorUtil = smash.errorUtil();
const EventType = require("./lib/eventType.js");
const Event = require("./lib/event.js");
class ApiGatewayAuthorizerEvent {
constructor() {
this.events = [];
}
_matchEvents(eventToMatch) {
return thi... | JavaScript | 0.000001 | @@ -1412,23 +1412,16 @@
%0A%09event(
-route,
callback
@@ -1461,15 +1461,8 @@
ype(
-route,
call
|
4ed2c1e09aeddf02614c4163260eb4e6fc12a5a0 | Print test filename | lib/node_modules/@stdlib/math/base/utils/float64-signbit/test/test.js | lib/node_modules/@stdlib/math/base/utils/float64-signbit/test/test.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var round = require( '@stdlib/math/base/special/round' );
var pow = require( '@stdlib/math/base/special/pow' );
var signbit = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( typeof signbit === 'function', 'm... | JavaScript | 0.000005 | @@ -273,16 +273,43 @@
( t ) %7B%0A
+%09t.ok( true, __filename );%0A
%09t.ok( t
|
f02fbc5bf30bbaec360bd0c7665929e4c0c6c43e | Add small packet request/response benchmark | examples/bench/bench_client.js | examples/bench/bench_client.js | const promiseImpl = require('bluebird');
global.Promise = promiseImpl;
const FastMQ = require('../../lib/index.js');
const ParallelBenchmark = require('./ParallelBenchmark');
const parseArgs = require('minimist');
const options = parseArgs(process.argv.slice(2));
const Parallel = options.p || 10;
const Requests = opti... | JavaScript | 0.000001 | @@ -2163,27 +2163,251 @@
);%0A%0A
-bench1.run(
+const bench3 = new ParallelBenchmark('test_cmd_raw_64kb', %7B%0A parallel: Parallel,%0A requests: Requests,%0A setup: function() %7B%0A this.rawData = Buffer.allocUnsafe(64);%0A return FastMQ.Client.connect('client2', 'master'
).then((
) =%3E
@@ ... |
f7cf209613627fdfc965a9eb797a50b858102a8e | Add debug message for failed lambda invocations | packages/target-chrome-aws-lambda/src/create-chrome-aws-lambda-target.js | packages/target-chrome-aws-lambda/src/create-chrome-aws-lambda-target.js | const debug = require('debug')('loki:chrome:aws-lambda');
const AWS = require('aws-sdk');
const { parseError, withRetries } = require('@loki/core');
function createChromeAWSLambdaTarget({
baseUrl = 'http://localhost:6006',
chromeAwsLambdaFunctionName,
chromeAwsLambdaRetries = 0,
}) {
const invoke = withRetries... | JavaScript | 0 | @@ -720,24 +720,143 @@
rMessage) %7B%0A
+ debug(%0A %60Invocation failed due to $%7Bresponse.errorType%7D with message %22$%7Bresponse.errorMessage%7D%22%60%0A );%0A
throw
|
6ba1e59b73e1ab72542f797d73bcfd75626a3090 | handle errors in graphql response | packages/veritone-widgets/src/redux/modules/filePicker/filePickerSaga.js | packages/veritone-widgets/src/redux/modules/filePicker/filePickerSaga.js | import {
fork,
all,
call,
put,
take,
takeEvery,
select
} from 'redux-saga/effects';
import { delay } from 'redux-saga';
import { isArray } from 'lodash';
import { modules } from 'veritone-redux-common';
const { user: userModule, config: configModule } = modules;
import callGraphQLApi from '../../../shar... | JavaScript | 0.000001 | @@ -1459,46 +1459,66 @@
%0A%0A
-// todo: handle graphql errors%0A const
+let uploadDescriptors; // %7B url, key, bucket %7D%0A try %7B%0A
upl
@@ -1570,16 +1570,18 @@
ap(%0A
+
+
(%7B data:
@@ -1607,96 +1607,334 @@
eUrl
-: %7B url, key, bucket %7D %7D, errors %7D) =%3E (%7B%0A url,%0A key,%0A... |
4a40ba4485ece9ab6589fff884cf5fc882df229b | Disable Call Button if user clicks too frequently or app somehow is throttling | src/components/DialerPanel/index.js | src/components/DialerPanel/index.js | import React, { PropTypes, Component } from 'react';
import classnames from 'classnames';
import DialPad from '../DialPad';
import TextInput from '../TextInput';
import styles from './styles.scss';
function DialerPanel({
callButtonDisabled,
className,
keepToNumber,
onCall,
toNumber,
}) {
return (
<div... | JavaScript | 0 | @@ -294,16 +294,87 @@
r,%0A%7D) %7B%0A
+ const onCallFunc = () =%3E %7B%0A !callButtonDisabled && onCall();%0A %7D;%0A
return
@@ -1255,16 +1255,20 @@
=%7BonCall
+Func
%7D%0A
|
bac4832b4c7534e2ea7086c5adb8bd2a031f28c9 | send trans as url params | src/components/EditWindow/module.js | src/components/EditWindow/module.js | import axios from 'axios';
import audio from 'store/audio.js';
import {
get_edit_window_timespan,
get_selected_words,
} from 'routes/TrackDetail/module.js';
const ACTION_HANDLERS = {
send_subs: (state, action) => {
console.log('send subtitles',action);
return state;
},
};
export functi... | JavaScript | 0 | @@ -842,25 +842,99 @@
ios.
-post(endpoint, %7B%0A
+request(%7B%0A url: endpoint,%0A method: 'POST',%0A params: %7B%0A
@@ -975,16 +975,20 @@
+
start: t
@@ -1014,16 +1014,20 @@
+
+
end: t
@@ -1039,16 +1039,20 @@
an.end,%0A
+
@@ -11... |
507a8f42d8020cd2d9dd2ad24a66a368c18bead4 | add debug fps" | src/map-generator/states/GameState.js | src/map-generator/states/GameState.js | const PATH = "res/map-generator";
import Hero from 'object/character';
import Maze from 'lib/maze';
import Room from 'lib/room';
import RoomWithCarpet from 'object/roomWithCarpet';
import RoomWithColoredCorners from "object/roomWithColoredCorners";
import { WorldWitdth, WorldHeight } from "constants/constants";
import... | JavaScript | 0 | @@ -636,32 +636,74 @@
%7D%0A%0A create() %7B%0A
+ this.game.time.advancedTiming = true;%0A
this.game.st
@@ -1548,16 +1548,98 @@
g');%0A %7D
+%0A%0A render() %7B%0A this.game.debug.text(this.game.time.fps, 2, 14, %22#00ff00%22);%0A %7D
%0A%7D%0A%0Aexpo
|
db3a7bce8e7303295cfdf2ff3c6f54e515e889f6 | make text alignment customizable for a text node | src/components/TextNode/TextNode.js | src/components/TextNode/TextNode.js | import React from 'react'
const ESCAPE_KEY = 27;
const ENTER_KEY = 13;
function safeGetData (field, data, node) {
const source = data || []
const datum = source[(node.text.rank || 1) - 1] || {}
return datum[field] || ''
}
class TextNode extends React.Component {
static propTypes = {
node: React.PropTypes... | JavaScript | 0 | @@ -1339,32 +1339,33 @@
%7D = this.props%0A
+%0A
const style
@@ -1498,24 +1498,63 @@
e.size.value
+,%0A textAlign: node.textAlign.value
%0A %7D%0A%0A
|
eeb4bfa1f8431c394934224210643e31446cb88a | Fix error page loading | src/mmw/js/src/core/error/handlers.js | src/mmw/js/src/core/error/handlers.js | "use strict";
var router = require('../../router').router,
modalModels = require('../modals/models'),
modalViews = require('../modals/views'),
App = require('../../app');
var ErrorHandlers = {
itsi: function() {
router.navigate('');
var alertView = new modalViews.AlertView({
... | JavaScript | 0 | @@ -241,32 +241,51 @@
uter.navigate(''
+, %7B trigger: true %7D
);%0A var a
@@ -812,32 +812,51 @@
uter.navigate(''
+, %7B trigger: true %7D
);%0A var a
@@ -1587,16 +1587,35 @@
igate(''
+, %7B trigger: true %7D
);%0A
|
a7d4613b1fd9bb64e767bc1582fc185ff01aafbf | Modify end in delay story to capture completion | src/models/emissions/index.stories.js | src/models/emissions/index.stories.js | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { distinctUntilChanged } from 'rxjs/operator/distinctUntilChanged'
import { map } from 'rxjs/operator/map'
import { first } from 'rxjs/operator/first'
import { delay } from 'rxjs/operator/delay'
import { combineLatest } from 'rxjs/observable... | JavaScript | 0 | @@ -3195,32 +3195,36 @@
end=%7Bwidth
+ + 5
%7D%0A comp
@@ -3437,32 +3437,36 @@
end=%7Bwidth
+ + 5
%7D%0A
|
976b5acd959c2ea4af016e9038fce27449d33eba | Add program filter to student classroom request | src/modules/students/actions/index.js | src/modules/students/actions/index.js | import { browserHistory } from 'react-router';
import fetch from 'isomorphic-fetch';
import apiClient from 'panoptes-client/lib/api-client';
import { saveAs } from 'browser-filesaver';
const mapConfig = require('../../../constants/mapExplorer.config.json');
import config from '../../../constants/config';
import * as t... | JavaScript | 0 | @@ -1565,24 +1565,67 @@
API.students
+ + %60?program_id=$%7Bconfig.eduAPI.programId%7D%60
, %7B%0A me
|
d1239113399430e181e709fe9fc2700931465c70 | update header | imports/ui/components/header/header.js | imports/ui/components/header/header.js | import { Meteor } from 'meteor/meteor';
import './header.html';
Template.header.helpers({
});
Template.header.events({
'mouseenter #products'(event, instance) {
$('.products').slideDown( "slow");
},
'mouseenter #downloads'(event, instance) {
$('.downloads').slideDown( "slow");
},
... | JavaScript | 0.000001 | @@ -189,39 +189,35 @@
cts').slideDown(
- %22slow%22
+300
);%0A %7D,%0A 'm
@@ -283,39 +283,35 @@
ads').slideDown(
- %22slow%22
+300
);%0A %7D,%0A 'm
@@ -378,39 +378,35 @@
ect').slideDown(
- %22slow%22
+300
);%0A %7D,%0A 'm
@@ -468,39 +468,35 @@
ect').slideDown(
- %22slow%22
+300
);%0A %7D,%0... |
431dfc62c608289eef170118288189bd693e6b99 | add value check | plugins/gui/frontend/gosa/source/class/gosa/ui/form/WindowListItem.js | plugins/gui/frontend/gosa/source/class/gosa/ui/form/WindowListItem.js | /*
* This file is part of the GOsa project - http://gosa-project.org
*
* Copyright:
* (C) 2010-2017 GONICUS GmbH, Germany, http://www.gonicus.de
*
* License:
* LGPL-2.1: http://www.gnu.org/licenses/lgpl-2.1.html
*
* See the LICENSE file in the project's top-level directory for details.
*/
qx.Class.d... | JavaScript | 0.000001 | @@ -2004,16 +2004,26 @@
return
+ !value %7C%7C
value.s
|
44641dee7b85667bd8603a1d42d86087a7a4e3cf | Update news after schedule | app/updateChannel.js | app/updateChannel.js | 'use strict'
const TelegramBot = require('node-telegram-bot-api');
const config = require('../config');
const utils = require('./utils');
const Kinospartak = require('./Kinospartak/Kinospartak');
const bot = new TelegramBot(config.TOKEN);
const kinospartak = new Kinospartak();
/**
* updateSchedule - update schedu... | JavaScript | 0 | @@ -1080,24 +1080,8 @@
%7D;%0A%0A
-Promise.all(%5B%0A
upda
@@ -1096,61 +1096,33 @@
le()
-,
%0A
-updateNews()%0A%5D).catch(error =%3E console.error(error
+.then(() =%3E updateNews(
))%0A
|
9b66d3c1f73faa8153cb1e20c8693b1601e4fd16 | change walking time calculations | app/utils/helpers.js | app/utils/helpers.js | var helpers = {
shuffle(array, start) {
var m = array.length, t, i;
start = start || 0;
while (m > start) {
i = Math.floor(Math.random()*(--m - start+1)+start);
t = array[m];
array[m] = array[i];
array[i] = t;
}
return array;
},
getRandomDate(start, end) {
return n... | JavaScript | 0.000002 | @@ -949,17 +949,17 @@
mile ~ 1
-5
+0
mins%0A
@@ -991,9 +991,9 @@
* 1
-5
+0
);%0A%0A
|
e1ce4dc1373171f72b78ac213a5393b1d523bc4f | Add jsdoc comment to formatter | sources/formatter.js | sources/formatter.js | /* ===================================================
* JavaScript 2ch-client Library
* https://github.com/sh19910711/js2ch
* ===================================================
* Copyright (c) 2013 Hiroyuki Sano
*
* Licensed under MIT License.
* http://opensource.org/licenses/MIT
* ===========================... | JavaScript | 0 | @@ -341,16 +341,93 @@
==== */%0A
+/**%0A * @fileOverview %E4%B8%8E%E3%81%88%E3%82%89%E3%82%8C%E3%81%9F%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%82%92%E4%BD%95%E3%82%89%E3%81%8B%E3%81%AE%E5%BD%A2%E3%81%AB%E6%95%B4%E3%81%88%E3%82%8B%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%0A * @author Hiroyuki Sano%... |
0008b453ac8798917e6dba3081a0da84564ad9da | Fix loop behavior | src/components/core/loop/loopFix.js | src/components/core/loop/loopFix.js | export default function () {
const swiper = this;
const {
params, activeIndex, slides, loopedSlides, allowSlidePrev, allowSlideNext, snapGrid, rtlTranslate: rtl,
} = swiper;
let newIndex;
swiper.allowSlidePrev = true;
swiper.allowSlideNext = true;
const snapTranslate = -snapGrid[activeIndex];
const... | JavaScript | 0.000002 | @@ -819,16 +819,17 @@
eIndex %3E
+=
slides.
@@ -841,34 +841,20 @@
h -
-(params.slidesPerView * 2)
+loopedSlides
)) %7B
|
e071d3283a6bada83ab79b3cb074133f1eb45c86 | add focus to text input | src/components/fields/Text/index.js | src/components/fields/Text/index.js | import React from 'react'
import PropTypes from 'prop-types'
export default class Text extends React.Component {
static propTypes = {
onChange: PropTypes.func,
value: PropTypes.string,
fieldType: PropTypes.string,
passProps: PropTypes.object,
placeholder: PropTypes.node,
errorMessage: PropTyp... | JavaScript | 0.000005 | @@ -636,16 +636,67 @@
%7D%0A %7D%0A%0A
+ focus = () =%3E %7B%0A this.refs.input.focus()%0A %7D%0A%0A
render
|
f5d273798476278ab2d06c83bb01646cc5fb56b1 | Update namespace | lib/node_modules/@stdlib/simulate/iter/lib/index.js | lib/node_modules/@stdlib/simulate/iter/lib/index.js | /**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.000001 | @@ -1911,32 +1911,258 @@
rac-comb' ) );%0A%0A
+/**%0A* @name iterPeriodicSinc%0A* @memberof ns%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/simulate/iter/periodic-sinc%7D%0A*/%0AsetReadOnly( ns, 'iterPeriodicSinc', require( '@stdlib/simulate/iter/periodic-sinc' ) );%0A%0A
/**%0A* @name iter... |
8223c983096f2a4f714001024541430ad57f6b38 | Set contrib-type during authors exporting. | src/converter/r2t/ConvertAuthors.js | src/converter/r2t/ConvertAuthors.js | import { OrganisationConverter, PersonConverter } from './EntityConverters'
import { expandContribGroup, removeEmptyElementsIfNoChildren } from './r2tHelpers'
export default class ConvertAuthors {
import(dom, api) {
const pubMetaDb = api.pubMetaDb
expandContribGroup(dom, 'author')
expandContribGroup(dom... | JavaScript | 0 | @@ -2698,24 +2698,75 @@
l.innerHTML%0A
+ contrib.setAttribute('contrib-type', 'person')%0A
contrib.
|
f76c38ecaa368810daa01f84dcc5a39705f7e639 | Remove rest of navigation usages | src/Oro/Bundle/ReminderBundle/Resources/public/js/reminder-handler.js | src/Oro/Bundle/ReminderBundle/Resources/public/js/reminder-handler.js | /*global define*/
define(
['jquery', 'orosync/js/sync', 'oroui/js/messenger', 'routing', 'underscore', 'oronavigation/js/navigation',
'oroui/js/mediator'],
function ($, sync, messenger, routing, _, Navigation, mediator) {
/**
* @export ororeminder/js/reminder-handler
* @class orore... | JavaScript | 0 | @@ -103,43 +103,8 @@
re',
- 'oronavigation/js/navigation',%0A
'or
@@ -171,20 +171,8 @@
, _,
- Navigation,
med
@@ -4945,68 +4945,8 @@
);%0A%0A
- var navigation = Navigation.getInstance();%0A%0A
@@ -5374,34 +5374,49 @@
-navigation.setLocation(url
+mediator.execute('redirectTo', %7Burl... |
91b1726012a17cfffb0947a604e79aeb8c5be73b | Fix logLevel reference | src-server/logger.js | src-server/logger.js | import _ from "lodash";
import Emitter from "eventemitter3";
import util from "util";
const logLevel = {
"silly" : {
level: 0,
logger: console.log.bind(console),
label: "\u001b[37m[%s] \u001b[m",
color: "\u001b[37m",
},
"verbose" : {
level: 1,
logger: c... | JavaScript | 0.000001 | @@ -1451,16 +1451,22 @@
vel.info
+.level
%0A
|
64f19b65ec411b4d7f4e13c15513b85a17b8dbaa | Remove attributes param | test/acceptance/user-render-timeout-limit.js | test/acceptance/user-render-timeout-limit.js | require('../support/test_helper');
const assert = require('../support/assert');
const TestClient = require('../support/test-client');
const timeoutErrorTilePath = `${process.cwd()}/assets/render-timeout-fallback.png`;
const pointSleepSql = `
SELECT
pg_sleep(0.5),
'SRID=3857;POINT(0 0)'::geometry ... | JavaScript | 0.000002 | @@ -925,24 +925,8 @@
_id'
-,%0A attributes
%0A%7D =
@@ -1140,32 +1140,8 @@
vity
-,%0A attributes
%0A
|
8c36fe0f6cfe89e71a7ab81fda82d54ee4bf8ae5 | Fix operator priorities issue | test/bin/node-scripts/GitHubMsgPublisher.es6 | test/bin/node-scripts/GitHubMsgPublisher.es6 | /**
* Created by vcernomschi on 6/17/16.
*/
'use strict';
import GitHubApi from 'github';
export default class GitHubMsgPublisher {
/**
* @returns {string}
* @constructor
*/
static get isPullRequest() {
let pullRequest = process.env['TRAVIS_PULL_REQUEST'];
return (pullRequest !== 'false' || ... | JavaScript | 0.000003 | @@ -1918,16 +1918,66 @@
mentMsg;
+%0A%0A //failed if coverage decreased more that 1 %25
%0A let
@@ -1988,16 +1988,17 @@
ailed =
+(
(localSu
@@ -2005,16 +2005,21 @@
mPercent
+ + 1)
%3C s3Sum
@@ -2381,278 +2381,302 @@
) %7B%0A
-%0A
-//use it when need to add comments for the same coverage%0A /... |
8916cbdcf6eeaa11ad02522bd6dbc7d72cf471e8 | Test the happy path | test/bindings/http/unmarshaller_0_2_tests.js | test/bindings/http/unmarshaller_0_2_tests.js | var expect = require("chai").expect;
var Unmarshaller = require("../../../lib/bindings/http/unmarshaller_0_2.js");
var Cloudevent = require("../../../index.js");
const type = "com.github.pull.create";
const source = "urn:event:from:myapi/resourse/123";
const webhook = "https://cloudevents.io/webhook";
... | JavaScript | 0 | @@ -2682,16 +2682,612 @@
%0A %7D);
+%0A%0A it(%22Should accept event that follow the spec 0.2%22, () =%3E %7B%0A // setup%0A var payload =%0A new Cloudevent(Cloudevent.specs%5B%220.2%22%5D)%0A .type(type)%0A .source(source)%0A .contenttype(ceContentType)%0A .t... |
eb0987b8560910f2500bdb4cc91d8ab511e70ec6 | Improve logging for phantom test launch failures | test/browser/test-browser-instrumentation.js | test/browser/test-browser-instrumentation.js | /*jslint nomen: true */
var which = require('which'),
phantom,
path = require('path'),
fs = require('fs'),
child_process = require('child_process'),
filesFor = require('../../lib/util/file-matcher').filesFor,
Instrumenter = require('../../lib/instrumenter'),
instrumenter = new Instrumenter({... | JavaScript | 0 | @@ -542,28 +542,37 @@
port, files
+, errorCB
) %7B%0A
-
var args
@@ -717,212 +717,199 @@
args
-);%0A cp.stdout.on('data', function (data) %7B process.stdout.write(data); %7D);%0A cp.stderr.on('data', function (data) %7B process.stderr.write(data); %7D);%0A cp.on('exit', function () %7B%0A exite... |
796ca5a5998af35ac522da8ed6a53e194fccc67b | Fix value reset | src/DebounceInput.js | src/DebounceInput.js | import React from 'react';
import debounce from 'lodash.debounce';
import {shouldComponentUpdate} from 'react/lib/ReactComponentWithPureRenderMixin';
const DebounceInput = React.createClass({
propTypes: {
onChange: React.PropTypes.func.isRequired,
value: React.PropTypes.string,
minLength: React.PropType... | JavaScript | 0.000003 | @@ -433,25 +433,8 @@
0,%0A
- value: '',%0A
@@ -623,16 +623,48 @@
if (
+typeof value !== 'undefined' &&
this.sta
|
2e2d5cd0f905797a0991d9ac0e467da86f459365 | allow switch views without clicking start | src/devtools/panel/js/birbal.app.js | src/devtools/panel/js/birbal.app.js | (function (angular, birbalJS) {
'use strict';
angular.module('birbal-app', ['background-service-app', 'panel-view-app'])
.controller('panelViewController', ['$scope', 'backgroundService', function ($scope, backgroundService) {
// default first message on inspect tab load, letting app know I'm ready
... | JavaScript | 0 | @@ -2318,24 +2318,278 @@
viewName) %7B%0A
+ if ($scope.view === 'initPage' && $scope.csInfo.ngModule) %7B%0A // register/enable/refresh%0A backgroundService.informBackground(%7B%0A ngModule: $scope.csInfo.ngModule,%0A task: 'runAnalysis'%0A %7D);%0A %7D%0A... |
6f2c4a041b885f79d1aeb28408c5ab6a6a92a7ea | Tidy `t/insert/ambiguous-last-page.t.js`. | t/insert/ambiguous-last-page.t.js | t/insert/ambiguous-last-page.t.js | #!/usr/bin/env node
require('./proof')(3, function (step, Strata, tmp, deepEqual, serialize, gather, equal) {
var strata = new Strata({ directory: tmp, leafSize: 3, branchSize: 3 }), fs = require('fs')
step(function () {
serialize(__dirname + '/fixtures/ambiguous.before.json', tmp, step())
}, funct... | JavaScript | 0 | @@ -68,19 +68,8 @@
tmp,
- deepEqual,
ser
@@ -83,16 +83,27 @@
gather,
+ deepEqual,
equal)
@@ -183,28 +183,8 @@
3 %7D)
-, fs = require('fs')
%0A
|
e73ce2d29d97c26cf220e6a4f0c93bb6de81cd08 | add cap | src/main/webapp/js/webglsprint/Main.js | src/main/webapp/js/webglsprint/Main.js | Ext.define('webglsprint.Main', {
singleton: true
}, function() {
/**
* Main application launch function. To be called after page has finished loading.
*/
webglsprint.Main.launch = function() {
//Create a framerate tracker, throw it in the top right
var stats = new Stats();
... | JavaScript | 0.000002 | @@ -3892,16 +3892,328 @@
d(tube);
+%0D%0A%0D%0A //VT: add capping to the ends of the borehole(I can't get the cap to fit nicely%0D%0A var caps = new THREE.Mesh( new THREE.CircleGeometry( 10, 5, 45, Math.PI * 2 ), material );%0D%0A caps.position.set( points%5B0%5D.x, points%... |
a4f155231cec203717082085c41c146e456e1f1d | Add indexes and unique constraint. | migrations/20180314172812-create-laundry-records.js | migrations/20180314172812-create-laundry-records.js | 'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.sequelize.query(`
CREATE OR REPLACE FUNCTION create_versioning_trigger(recent regclass, history regclass) RETURNS void AS
$$
BEGIN
EXECUTE format('CREATE TRIGGER versioning_cd BEFORE INSERT OR DELETE ON %s FOR EACH ROW EXE... | JavaScript | 0 | @@ -1143,16 +1143,42 @@
T NULL,%0A
+ class VARCHAR NOT NULL,%0A
player
@@ -1219,32 +1219,32 @@
s (id) NOT NULL%0A
-
);%0A%0ACREATE TABLE
@@ -1358,32 +1358,39 @@
dry_players (id)
+ UNIQUE
NOT NULL%0A) INHE
@@ -1410,24 +1410,171 @@
_records);%0A%0A
+CREATE INDEX ON laundry_records_recent(card_name);%0ACREATE I... |
21ec062c9a6c9661b7a3808fbbbaf1681701760a | Change Link component for a tag in LinkedIn logo | src/elements/linkedin-icon/index.js | src/elements/linkedin-icon/index.js | //@flow
import React from "react";
import { Link } from "react-router-dom";
import { pure, compose, withState, withHandlers } from "recompose";
import { ThemeProvider } from "styled-components";
import mainTheme from "../../global/style/mainTheme";
import { Logo } from "./Logo";
const enhance = compose(
withState(... | JavaScript | 0 | @@ -33,49 +33,8 @@
t%22;%0A
-import %7B Link %7D from %22react-router-dom%22;%0A
impo
@@ -527,16 +527,30 @@
isActive
+,%0A ...props
%0A %7D: %7B%0A
@@ -677,20 +677,17 @@
%0A %3C
-Link
+a
%0A
@@ -691,10 +691,12 @@
-to
+href
=%22ht
@@ -863,20 +863,17 @@
%3C/
-Link
+a
%3E%0A %3C/
|
077242d046e3e755ff82ba4b29cce2477fd50bea | Change ports and env variable names | config/seneca-options.js | config/seneca-options.js | 'use strict';
var senecaOptions = {
transport: {
web: {
port: process.env.PORT || 8080
}
},
apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:3000',
apiSecret: process.env.API_SECRET || ''
};
module.exports = senecaOptions;
| JavaScript | 0 | @@ -96,16 +96,31 @@
env.
+BADGES_SERVICE_
PORT %7C%7C
8080
@@ -119,12 +119,13 @@
%7C%7C
-8080
+10305
%0A
@@ -204,11 +204,11 @@
ost:
-300
+808
0',%0A
|
5f464f98f1ff86caac02eca207704c1961b07be1 | include vue_shared scripts within common_vue chunk | config/webpack.config.js | config/webpack.config.js | 'use strict';
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var StatsPlugin = require('stats-webpack-plugin');
var CompressionPlugin = require('compression-webpack-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
var ROOT_PATH = path... | JavaScript | 0 | @@ -4001,16 +4001,113 @@
ks:
-Infinity
+function(module, count) %7B%0A return module.resource && (/vue_shared/).test(module.resource);%0A %7D
,%0A
|
7540cab6bb0444403d8c7a19976a4a9772883250 | Fix handleClick is not a function bug | src/modules/unit/components/MapView.js | src/modules/unit/components/MapView.js | // @flow
import React, {Component, PropTypes} from 'react';
import {Link} from 'react-router';
import isEmpty from 'lodash/isEmpty';
import SMIcon from '../../home/components/SMIcon';
import OSMIcon from '../../home/components/OSMIcon';
import {View} from './View';
import Logo from '../../home/components/Logo';
import ... | JavaScript | 0.000004 | @@ -6436,24 +6436,49 @@
InfoMenuItem
+ handleClick=%7B() =%3E null%7D
%3E%0A %3Ca t
|
d91275be74e56b6199bbc794a806692c0b40233b | Make changes requested in code review | src/foam/u2/view/ScrollTableView.js | src/foam/u2/view/ScrollTableView.js | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.view',
name: 'ScrollTableView',
extends: 'foam.u2.Element',
requires: [
'foam.dao.FnSink',
'foam.graphics.ScrollCView',
'foam.mlang.sink.Count'... | JavaScript | 0 | @@ -1839,28 +1839,29 @@
%7B%0A
-type
+class
: 'Int',%0A
@@ -1888,24 +1888,8 @@
r',%0A
- value: 0,%0A
@@ -1905,17 +1905,17 @@
tation:
-%60
+'
Used int
@@ -1954,17 +1954,17 @@
g speed.
-%60
+'
,%0A
|
22d4df70d9265a1a0bf28a9b1b528299786730db | add creds to make login functional test pass | src/functional-tests/tests/login.js | src/functional-tests/tests/login.js | import LoginPage from '../pages/login';
import DashboardPage from '../pages/dashboard';
// eslint-disable-next-line no-unused-expressions
fixture `Login Process`.page `http://localhost:3001`;
test('Logging in sends you to the dashboard', async t => {
// Starting on the homepage sends you to the login page initially... | JavaScript | 0 | @@ -525,25 +525,36 @@
t, '
-monksp@monksp.org
+romans@myews.onmicrosoft.com
')%0A
@@ -596,11 +596,26 @@
t, '
-foo
+enterprise: engage
')%0A
|
b17d3c486a3530e5e59579f3ac61bfb68b1851ce | Fix datepicker test | tests/acceptance/edit-form-validation-test/validation-datepicker-test.js | tests/acceptance/edit-form-validation-test/validation-datepicker-test.js | import Ember from 'ember';
import { executeTest} from './execute-validation-test';
executeTest('check operation datepicker', (store, assert, app) => {
assert.expect(3);
let path = 'components-acceptance-tests/edit-form-validation/validation';
// Open validation page.
visit(path);
andThen(() => {
assert... | JavaScript | 0.000001 | @@ -920,16 +920,29 @@
vailable
+:not(.active)
');%0A
|
dde3dd7b731c9d6f3e372fbc5b978d62e01a66a5 | Use provided 'style' alias within Component file | templates/javascript/Component.js | templates/javascript/Component.js | 'use strict';
var React = require('react/addons');
<% if (stylesLanguage === 'css') { %>require('../../styles/<%= classedFileName %>.css');<% } %><%
if (stylesLanguage === 'sass') { %>require('../../styles/<%= classedFileName %>.sass');<% } %><%
if (stylesLanguage === 'scss') { %>require('../../styles/<%= classed... | JavaScript | 0.000009 | @@ -84,38 +84,32 @@
') %7B %25%3Erequire('
-../../
styles/%3C%25= class
@@ -176,38 +176,32 @@
%7B %25%3Erequire('
-../../
styles/%3C%25= class
@@ -269,38 +269,32 @@
%7B %25%3Erequire('
-../../
styles/%3C%25= class
@@ -362,38 +362,32 @@
%7B %25%3Erequire('
-../../
styles/%3C%25= class
@@ -467,14 +467,8 ... |
dd3600de79743aa23d3bf86b1ac2821a3ce854b9 | Update Mapzen API Key | src/geo/geocoder/mapzen-geocoder.js | src/geo/geocoder/mapzen-geocoder.js | var $ = require('jquery');
/**
* geocoders for different services
*
* should implement a function called geocode the gets
* the address and call callback with a list of placemarks with lat, lon
* (at least)
*/
var MAPZEN = {
keys: {
app_id: 'search-DH1Lkhw'
},
geocode: function (address, callback) {
... | JavaScript | 0 | @@ -252,22 +252,22 @@
d: '
-search-DH1Lkhw
+mapzen-YfBeDWS
'%0A
|
89e78c78806d21b1c92fdce17ce9f4872e6bb899 | Access a property using a string literal within a pair of square brackets when the property name is not a reserved word will trigger an error. Don't fool around with travis-sensei. | src/pages/strategy/tabs/wikia/wikia.js | src/pages/strategy/tabs/wikia/wikia.js | (function(){
"use strict";
KC3StrategyTabs.wikia = new KC3StrategyTab("wikia");
KC3StrategyTabs.wikia.definition = {
tabSelf: KC3StrategyTabs.wikia,
fleets: [],
/* INIT
Prepares all data needed
---------------------------------*/
init: function(){
PlayerManager.loadFleets();
... | JavaScript | 0 | @@ -4137,14 +4137,11 @@
sult
-%5B%22id%22%5D
+.id
= s
@@ -4170,14 +4170,11 @@
sult
-%5B%22lv%22%5D
+.lv
= s
@@ -4200,16 +4200,13 @@
sult
-%5B%22
+.
luck
-%22%5D
= s
@@ -4232,17 +4232,14 @@
sult
-%5B%22
+.
items
-%22%5D
= t
|
ff0fd30e7f8c3c837d218f35161a57a86fd71fc6 | Simplify error cases of callback.js | lib/android/plugin/android/callback.js | lib/android/plugin/android/callback.js | var port = null,
token = null,
xmlhttp;
module.exports = {
start: function callback() {
// cordova/exec depends on this module, so we can't require cordova/exec on the module level.
var exec = require('cordova/exec'),
xmlhttp = new XMLHttpRequest();
// Callback function whe... | JavaScript | 0.000021 | @@ -1507,624 +1507,153 @@
//
-If security error%0A else if (xmlhttp.status === 403) %7B%0A console.log(%22JSCallback Error: Invalid token. Stopping callbacks.%22);%0A %7D%0A%0A // If server is stopping%0A else if (xmlhttp.status === 503)... |
52c6a060d6e3e251c3577a06cecffbe2ef8008e7 | allow extension of the edition widget | addons/base_setup/static/src/js/res_config_edition.js | addons/base_setup/static/src/js/res_config_edition.js | odoo.define('base_setup.ResConfigEdition', function (require) {
"use strict";
var Widget = require('web.Widget');
var widget_registry = require('web.widget_registry');
var session = require ('web.session');
var ResConfigEdition = Widget.extend({
template: 'res_config_edition',
/**
... | JavaScript | 0.000001 | @@ -478,16 +478,166 @@
ersion;%0A
+ this.expiration_date = session.expiration_date%0A ? moment(session.expiration_date)%0A : moment().add(30, 'd');%0A
@@ -710,13 +710,43 @@
dition);
+%0A%0A return ResConfigEdition;
%0A%7D);%0A
|
2b688ad4e539b8069451f768dfc284266bc630ab | Handle undefined reference | lib/telegram2discord/handleEntities.js | lib/telegram2discord/handleEntities.js | "use strict";
/**************************
* Import important stuff *
**************************/
// Nothing
/*****************************
* Define the entity handler *
*****************************/
/**
* Converts entities (usernames, code, ...) in Telegram messages to Discord format
*
* @param {String} tex... | JavaScript | 0.000002 | @@ -1711,16 +1711,34 @@
.id%7D%3E%60 :
+ dcRole !== null ?
%60%3C@&$%7Bd
@@ -1744,24 +1744,38 @@
dcRole.id%7D%3E%60
+ : mentionable
;%0A%09%09%09%09break;
|
36fa253c2831924612ee371e021f43fd01841f75 | Fix broken mobile scrolling for settings pages | lib/ui/src/components/layout/mobile.js | lib/ui/src/components/layout/mobile.js | import React, { Component, Children } from 'react';
import PropTypes from 'prop-types';
import { styled } from '@storybook/theming';
import { TabButton } from '@storybook/components';
import { Root } from './container';
const Pane = styled.div(
{
transition: 'transform .2s ease',
position: 'absolute',
t... | JavaScript | 0.000001 | @@ -340,16 +340,38 @@
'100%25',%0A
+ overflow: 'auto',%0A
%7D,%0A (
|
f4a2138227e75b68922891c6236522c2b5bce760 | update title | routes/mainRoutes.js | routes/mainRoutes.js | Router.route('/', function () {
this.render('HomeTpt');
SEO.set({ title: 'Home -' + Meteor.App.NAME });
});
Router.route('/activ', function () {
this.render('ActivListTpt');
SEO.set({ title: 'Home -' + Meteor.App.NAME });
});
Router.route('/activ/new', function () {
this.render('ActivNewTpt');
SEO.set({ t... | JavaScript | 0.000001 | @@ -69,32 +69,33 @@
%7B title: 'Home -
+
' + Meteor.App.N
@@ -94,32 +94,32 @@
or.App.NAME %7D);%0A
-
%7D);%0A%0ARouter.rout
@@ -193,32 +193,33 @@
%7B title: 'Home -
+
' + Meteor.App.N
@@ -320,32 +320,33 @@
%7B title: 'Home -
+
' + Meteor.App.N
@@ -453,32 +453,33 @@
%7B title: 'Home -
+
' + Meteor.App.N
@@... |
9d5d4083cad67b461fc4bb7f489749d9f082eee2 | Add fallback | routes/upload-scp.js | routes/upload-scp.js | import express from "express";
const router = new express.Router();
import fs from "fs";
import multipart from "connect-multiparty";
import ProjectManager from "../objects/ProjectManager.js";
const multipartMiddleware = multipart();
router.post("/", multipartMiddleware, (req, res) => {
const newPath = `${__dirname... | JavaScript | 0.000004 | @@ -716,109 +716,728 @@
-res.json(%7B%0A succes: false, message: %22Some error occurred, please try again later!%22
+fs.createReadStream(projectObject.path).pipe(fs.createWriteStream(newPath));%0A fs.unlink(projectObject.path, (error) =%3E %7B%0A if (error) %7B... |
0c32e3d95f605eb812cf1b1ef96d6e20e4e8f7a5 | update threshold xfce example | example_test_suites/example_xfce/case1/sakuli_demo.js | example_test_suites/example_xfce/case1/sakuli_demo.js | /*
* Sakuli - Testing and Monitoring-Tool for Websites and common UIs.
*
* Copyright 2013 - 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | JavaScript | 0 | @@ -1853,17 +1853,17 @@
ation%22,
-1
+2
5);%0A
|
9a73139887fc16d092c52c934d754f400d961113 | remove old code | src/js/core/LineSegmentsGeometry.js | src/js/core/LineSegmentsGeometry.js | import {
Box3,
Float32BufferAttribute,
InstancedBufferGeometry,
InstancedInterleavedBuffer,
InterleavedBufferAttribute,
Sphere,
Vector3,
} from '../three';
var LineSegmentsGeometry = function () {
InstancedBufferGeometry.call( this );
this.type = 'LineSegmentsGeometry';
var positions = [ - 1, 2, 0, 1, 2, ... | JavaScript | 0.999865 | @@ -4084,188 +4084,8 @@
),%0A%0A
-%09applyMatrix: function ( matrix ) %7B%0A%0A%09%09console.warn( 'THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4().' );%0A%0A%09%09return this.applyMatrix4( matrix );%0A%0A%09%7D%0A%0A
%7D );
|
496291cfe9cc4a64a00c826cb4b10a58ce4005f0 | 优化vc.on函数 | java110-front/src/main/resources/static/js/vc-core.js | java110-front/src/main/resources/static/js/vc-core.js | /**
初始化vue 对象
@param vc vue component对象
@param vmOptions Vue参数
**/
(function(vc,vmOptions){
console.log("vmOptions:",vmOptions);
vc.component = new Vue(vmOptions);
})(window.vc,window.vc.vmOptions);
/**
vc监听事件
**/
(function(vc){
/**
事件监听
**/
vc.on = function(_componen... | JavaScript | 0.000001 | @@ -330,32 +330,122 @@
lue,_callback)%7B%0A
+%0A vc.component.$on(_componentName+'_'+_value,%0A function ()%7B%0A
if(vc.co
@@ -436,32 +436,33 @@
if(vc.co
+n
soleFlag)%7B%0A
@@ -460,32 +460,44 @@
g)%7B%0A
+
+
console.log(%22%E7%9B%91%E5%90%... |
bcccdb68d8e7feddf7d2b0311357449b602b9c0c | Optimize login. | kanban/component/login/controllers/loginController.js | kanban/component/login/controllers/loginController.js | /**
* Created by xubt on 4/20/16.
*/
kanbanApp.controller('loginController', ['$scope', '$location', '$q', 'publicKeyServices', 'loginService', 'localStorageService', '$uibModalInstance', '$uibModal', 'timerMessageService',
function ($scope, $location, $q, publicKeyServices, loginService, localStorageService, $u... | JavaScript | 0 | @@ -219,16 +219,27 @@
ervice',
+ 'toaster',
%0A fun
@@ -371,16 +371,25 @@
eService
+, toaster
) %7B%0A
@@ -1874,76 +1874,8 @@
%7D%0A
- timerMessageService.message(%22%E7%99%BB%E5%BD%95%E6%88%90%E5%8A%9F%EF%BC%8C%E6%AD%A3%E5%9C%A8%E4%B8%BA%E4%BD%A0%E5%87%86%E5%A4%87%E6%95%B0%E6%8D%AE..%2... |
4d339aa2b86fff236ad3b12e10ea89b30b3fb51f | fix console log | server/public/scripts/controllers/login.controller.js | server/public/scripts/controllers/login.controller.js | app.controller('LoginController', ['$scope', '$mdDialog', '$firebaseAuth', function($scope, $mdDialog, $firebaseAuth){
console.log('diag controller is running');
var auth = $firebaseAuth();
var self = this;
var logIn = function() {
auth.$signInWithPopup("google").then(function(firebaseUser) {
console... | JavaScript | 0.000002 | @@ -131,12 +131,13 @@
og('
-diag
+login
con
|
4e5a459bddc68fde2e6726c21c28a861b15bd4ca | Fix (test added) | client/app/scripts/superdesk-users/tests/users_spec.js | client/app/scripts/superdesk-users/tests/users_spec.js | 'use strict';
describe('users api', function() {
beforeEach(module('superdesk.users'));
beforeEach(module('superdesk.mocks'));
it('can create user', inject(function(usersService, api, $q, $rootScope) {
var user = {},
data = {'UserName': 'foo', 'Password': 'bar'};
spyOn(api, '... | JavaScript | 0 | @@ -3200,24 +3200,1038 @@
nCalled();%0A %7D));%0A%7D);%0A
+%0Adescribe('mentio directive', function() %7B%0A%0A beforeEach(module('superdesk.users'));%0A beforeEach(module('superdesk.mocks'));%0A beforeEach(module('templates'));%0A%0A beforeEach(module(function($provide) %7B%0A $provide.service('... |
986b543afd5a89fa40accb486b7d6dfac9ddf056 | allow empty line in config type preperties | console/src/main/resources/static/console-fe/src/utils/validateContent.js | console/src/main/resources/static/console-fe/src/utils/validateContent.js | import * as yamljs from 'yamljs';
export default {
/**
* 检测json是否合法
*/
validateJson(str) {
try {
return !!JSON.parse(str);
} catch (e) {
return false;
}
},
/**
* 检测xml和html是否合法
*/
validateXml(str) {
try {
if (typeof DOMParser !== 'undefined') {
let parse... | JavaScript | 0.000002 | @@ -1052,24 +1052,52 @@
split('%5Cn')%0A
+ .filter(_str =%3E _str)%0A
.every
|
3893b72762de6f25c9644a71614485faf8b6a65e | Use is-nan to check for NaN return values | lib/node_modules/@stdlib/math/base/special/gamma/test/other/test.gamma.js | lib/node_modules/@stdlib/math/base/special/gamma/test/other/test.gamma.js | 'use strict';
// MODULES //
var tape = require( 'tape' );
var incrspace = require( '@stdlib/math/generics/utils/incrspace' );
var abs = require( '@stdlib/math/base/special/abs' );
var PINF = require( '@stdlib/math/constants/float64-pinf' );
var NINF = require( '@stdlib/math/constants/float64-ninf' );
var gamma = requ... | JavaScript | 0.000004 | @@ -49,24 +49,81 @@
( 'tape' );%0A
+var isnan = require( '@stdlib/math/base/utils/is-nan' );%0A
var incrspac
@@ -174,24 +174,24 @@
crspace' );%0A
-
var abs = re
@@ -701,16 +701,46 @@
%7B%0A%09t.ok(
+ true, __filename );%0A%09t.equal(
typeof
@@ -748,12 +748,9 @@
amma
- ===
+,
'fu
@@ -1025,27 +1025,39 @@
);%... |
4ab9e2d8258f98f5171f8e610ce119ffb3205c52 | Fix PanResponderExample | RNTester/js/examples/PanResponder/PanResponderExample.js | RNTester/js/examples/PanResponder/PanResponderExample.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
* @flow weak
*/
'use strict';
const React = require('react');
const {PanResponder, StyleSheet, View} = require('react... | JavaScript | 0 | @@ -3315,24 +3315,54 @@
IRCLE_SIZE,%0A
+ backgroundColor: 'green',%0A
borderRa
@@ -3476,22 +3476,19 @@
-paddingTop: 64
+height: 500
,%0A
@@ -3669,17 +3669,16 @@
'Basic g
-r
esture h
|
480c4c674c69b2d39ef8f0f69ad1967609334b81 | Add to the Docker option | plugins/services/src/js/components/forms/GeneralServiceFormSection.js | plugins/services/src/js/components/forms/GeneralServiceFormSection.js | import React, {Component} from 'react';
import {Tooltip} from 'reactjs-components';
import AdvancedSection from '../../../../../../src/js/components/form/AdvancedSection';
import AdvancedSectionContent from '../../../../../../src/js/components/form/AdvancedSectionContent';
import AdvancedSectionLabel from '../../../..... | JavaScript | 0.000002 | @@ -1488,16 +1488,39 @@
r Engine
+ %3Cem%3E(recommended)%3C/em%3E
%3C/span%3E,
|
e8b046964e658740df0210a38f7f1b21bb2a7239 | Fix promise usage | Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper.js | Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper.js | import pako from 'pako';
import macro from 'vtk.js/Sources/macro';
import Endian from 'vtk.js/Sources/Common/Core/Endian';
import { DataTypeByteSize } from 'vtk.js/Sources/Common/Core/DataArray/Constants';
const { vtkErrorMacro, vtkDebugMacro } = macro;
let requestCount = 0;
function fetchBinary(url, options = {}) ... | JavaScript | 0 | @@ -250,16 +250,67 @@
macro;%0A%0A
+/* eslint-disable prefer-promise-reject-errors */%0A%0A
let requ
@@ -634,38 +634,42 @@
reject(
+%7B
xhr, e
+ %7D
);%0A %7D%0A
@@ -3293,38 +3293,42 @@
reject(
+%7B
xhr, e
+ %7D
);%0A %7D%0A
@@ -3702,47 +3702,16 @@
urn
-new
Promise
-(... |
1bc0febdf56a49d70f61eda1cc81f405a5ba7064 | Patch for CKEditor and IE11 | server/theme/default/libraries/bootstrap/js/bootstrap-ckeditor-fix.js | server/theme/default/libraries/bootstrap/js/bootstrap-ckeditor-fix.js | // bootstrap-ckeditor-fix.js
// hack to fix ckeditor/bootstrap compatiability bug when ckeditor appears in a bootstrap modal dialog
//
// Include this file AFTER both jQuery and bootstrap are loaded.
$.fn.modal.Constructor.prototype.enforceFocus = function() {
modal_this = this
$(document).on('focusin.modal', func... | JavaScript | 0 | @@ -422,74 +422,49 @@
-&& !$(e.target.parentNode).hasClass('cke_dialog_ui_input_select')
+// add whatever conditions you need here:
%0A
@@ -508,29 +508,8 @@
'cke
-_dialog_ui_input_text
'))
|
78cee3bc3ed1a9351d6533a95ab2f5e2c77762e5 | update step 5 with Sarah's edits | src/app/components/msp/application/confirmation/i18n/data/en/index.js | src/app/components/msp/application/confirmation/i18n/data/en/index.js | module.exports = {
pageTitle: '<i class="fa fa-check success" aria-hidden="true"></i> Your application has been submitted.',
secondTitle: 'What happens next',
nextStep1: "<a>Print your application</a> for your records",
nextStep2: "Allow 21 business days for your application to be processed",
nextStep3: "Once... | JavaScript | 0 | @@ -1209,19 +1209,18 @@
viduals
-and
+or
familie
@@ -1220,17 +1220,16 @@
families
-,
who hav
|
4c9943ac38e8f006e0a13dd3154bc74a4ae5ca3b | Fix an image path on the mobile landing page | react/features/unsupported-browser/components/UnsupportedMobileBrowser.js | react/features/unsupported-browser/components/UnsupportedMobileBrowser.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Platform } from '../../base/react';
/**
* The map of platforms to URLs at which the mobile app for the associated
* platform is available for download.
*
* @private
*/
const _URLS = {
android: 'https://play.google.com/s... | JavaScript | 0.010778 | @@ -2211,17 +2211,16 @@
src = '
-/
images/l
|
d001d63d96fc2cdceca9d52813666e0782adbd4c | add sortedOrgs | src/containers/organizations/components/OrganizationsListComponent.js | src/containers/organizations/components/OrganizationsListComponent.js | /*
* @flow
*/
import React from 'react';
import DocumentTitle from 'react-document-title';
import Immutable from 'immutable';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { hashHistory } from 'react-router';
import { bindActionCreators } from 'redux';
import LoadingSpinner ... | JavaScript | 0 | @@ -4286,16 +4286,27 @@
der = ((
+sortedOrgs.
yourOrgs
@@ -4320,16 +4320,27 @@
%3E 0 %7C%7C
+sortedOrgs.
memberOf
@@ -4355,24 +4355,35 @@
gth %3E 0) &&
+sortedOrgs.
publicOrgs.l
@@ -4406,16 +4406,27 @@
%7C%7C ((
+sortedOrgs.
yourOrgs
@@ -4442,16 +4442,27 @@
== 0 &&
+sortedOrgs.
memberOf
@@ -4483,16 +44... |
7ed574f42787d64e51f9c100cfd2e49df6ebf3ec | use toBe instead of toEqueal when === comparison is required | src/Aap/Bundle/AapSiteBundle/Resources/public/js/test/unit/string.spec.js | src/Aap/Bundle/AapSiteBundle/Resources/public/js/test/unit/string.spec.js | /*global define, describe, jasmine, it, expect*/
/**
* @author Joppe Aarts <joppe@apestaartje.info>
* @copyright Apestaartje <http://apestaartje.info>
*/
define(
['lib/lang/string'],
function (Str) {
'use strict';
describe('string tests', function () {
it('trim', function () {... | JavaScript | 0 | @@ -360,21 +360,18 @@
')).to
-Equal
+Be
('foo');
@@ -511,21 +511,18 @@
me')).to
-Equal
+Be
('snakeS
@@ -677,21 +677,18 @@
me')).to
-Equal
+Be
('spineS
@@ -820,13 +820,10 @@
).to
-Equal
+Be
('Ar
|
a7d1d913432646b2fd09d1dc94e6c55600587570 | Remove controller based isSaving references | addon/pods/components/rui-validatable-input/component.js | addon/pods/components/rui-validatable-input/component.js | import Ember from 'ember'
import layout from './template'
const {
Component,
computed,
defineProperty
} = Ember
export default Component.extend({
classNameBindings: ['isInvalid:has-error', 'isValid:has-success'],
classNames: ['rui-validatable-input'],
layout,
model: null,
placeholder: '',
type: 'tex... | JavaScript | 0.000001 | @@ -1349,16 +1349,22 @@
utes', '
+model.
isSaving
@@ -1371,32 +1371,32 @@
', function() %7B%0A
-
if (this.get
@@ -1598,450 +1598,8 @@
),%0A%0A
- // Compute the property to give priority to%0A // %60isSaving%60 property if found on controller%0A%0A isSavingComputed: computed('model.isSaving', 'targetObject.i... |
690475ae52741fa0e88015bef3ed1b07af868fc7 | fix IE bug. IE doesnt support dataset | src/lazymaltbeer.js | src/lazymaltbeer.js | var Lazymaltbeer = function() {
'use strict';
/**
* Lazy load images with img tag.
*
* @param imgPlaceholder the placeholder is a html node of any type (e.g. a span element).
* The node has to provide a data element src and alt.
*/
var lazyLoadImg = function(i... | JavaScript | 0 | @@ -416,19 +416,32 @@
der.
-dataset.
+getAttribute(%22data-
src
+%22)
;%0A
@@ -475,19 +475,32 @@
der.
-dataset.
+getAttribute(%22data-
alt
+%22)
;%0A%0A
|
474d521e7fde9a751c9238de1287f8bc0148845b | Add data for new raid | src/legacy/raids.js | src/legacy/raids.js | export default [
{id: 'vale_guardian', raid: 'Forsaken Thicket', wing: 'Spirit Vale', name: 'Vale Guardian', type: 'Boss'},
{id: 'spirit_woods', raid: 'Forsaken Thicket', wing: 'Spirit Vale', name: 'Spirit Woods', type: 'Checkpoint'},
{id: 'gorseval', raid: 'Forsaken Thicket', wing: 'Spirit Vale', name: 'Gorseval... | JavaScript | 0 | @@ -10,16 +10,38 @@
fault %5B%0A
+ // Forsaken Thicket%0A
%7Bid: '
@@ -133,32 +133,32 @@
type: 'Boss'%7D,%0A
-
%7Bid: 'spirit_w
@@ -1233,32 +1233,61 @@
type: 'Boss'%7D,%0A%0A
+ // Bastion of the Penitent%0A
%7Bid: 'cairn',
@@ -1739,32 +1739,52 @@
type: 'Boss'%7D,%0A%0A
+ // Hall of Chains%0A
%7Bid:... |
8a316f33a7575d69f1c05ba87ca2f006d65ad471 | Add TODO to validate inputs. | DSA-Campaign-Uplift-Estimation/src/main/webapp/Create/create-script.js | DSA-Campaign-Uplift-Estimation/src/main/webapp/Create/create-script.js | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | JavaScript | 0 | @@ -3159,8 +3159,102 @@
) %7B%0A %0A%7D
+%0A%0A// TODO: validate DSA campaign inputs (e.g. campaign status must be %22pending%22 or %22complete%22)
|
5cbd75f443a87c9a966ffe0320d8258c6691d4ba | Set angular as default in blueprint | blueprints/ember-cli-changelog/files/config/changelog.js | blueprints/ember-cli-changelog/files/config/changelog.js | // jshint node:true
// For details on each option run `ember help release`
module.exports = {
// ember style guide: https://github.com/emberjs/ember.js/blob/master/CONTRIBUTING.md#commit-tagging
// angular style guide: https://github.com/angular/angular.js/blob/v1.4.8/CONTRIBUTING.md#commit
// jquery style guid... | JavaScript | 0.000001 | @@ -405,20 +405,22 @@
e: '
-embe
+angula
r', // '
angu
@@ -415,22 +415,20 @@
r', // '
-angula
+embe
r' 'jque
|
d6995180327eae28cd2b7f72888c9c3f1a2005d7 | Add validation rules for stellar addresses | src/lib/Validate.js | src/lib/Validate.js | import _ from 'lodash';
import directory from '../directory';
// Some validation regexes and rules in this file are taken from Stellar Laboratory
// Do not take code out from this file into other files
// Stellar Laboratory is licensed under Apache 2.0
// https://github.com/stellar/laboratory
// First argument is alw... | JavaScript | 0 | @@ -415,22 +415,19 @@
unction
-result
+err
(errorMe
@@ -1432,22 +1432,19 @@
return
-result
+err
('MEMO_I
@@ -1577,30 +1577,27 @@
return
-result
+err
(%60MEMO_ID is
@@ -1884,22 +1884,19 @@
return
-result
+err
(%60MEMO_T
@@ -2102,14 +2102,11 @@
urn
-result
+err
(%60$%7B
@@ -2232,16 +2232,541 @@
LID... |
512f22816f83f4dacfb1a147115cdf191679fd49 | Rename gtmAnalyticsPropertyID to singleAnalyticsPropertyID. | assets/js/modules/tagmanager/components/setup/SetupFormInstructions.js | assets/js/modules/tagmanager/components/setup/SetupFormInstructions.js | /**
* Tag Manager Setup Form Instructions component.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/... | JavaScript | 0 | @@ -1254,19 +1254,22 @@
%0A%09const
-gtm
+single
Analytic
@@ -1708,19 +1708,22 @@
%09if ( %5B
-gtm
+single
Analytic
@@ -2614,19 +2614,22 @@
%0A%09%09if (
-gtm
+single
Analytic
@@ -2635,35 +2635,38 @@
csPropertyID &&
-gtm
+single
AnalyticsPropert
@@ -3157,35 +3157,38 @@
rintf( message,
-gtm
+single
Analyt... |
276c3eeefc4cc83856f733c959d927b159c678c4 | Restrict fullscreen mode to tablets and above | wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabFullscreen.js | wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabFullscreen.js | $.Redactor.prototype.WoltLabCode = function() {
"use strict";
var _button;
return {
init: function() {
_button = this.button.add('woltlabFullscreen', '');
this.button.addCallback(_button, this.WoltLabCode._toggle.bind(this));
},
_toggle: function () {
_button[0].children[0].classList.toggle('fa... | JavaScript | 0.998987 | @@ -21,20 +21,26 @@
.WoltLab
-Code
+Fullscreen
= funct
@@ -64,16 +64,38 @@
ict%22;%0A%09%0A
+%09var _active = false;%0A
%09var _bu
@@ -132,25 +132,28 @@
tion() %7B%0A%09%09%09
-_
+var
button = thi
@@ -218,17 +218,16 @@
allback(
-_
button,
@@ -242,20 +242,494 @@
tLab
-Code._toggle
+Fullscreen._toggle.bind(th... |
5bfc26d81ab897fbfce340301787ac6734e5a968 | add options to filter for case management tasks | webapps/client/scripts/filter/modals/cam-tasklist-filter-form-criteria.js | webapps/client/scripts/filter/modals/cam-tasklist-filter-form-criteria.js | define(function() {
'use strict';
var dateExpLangHelp = 'E.g.: ${ now() }, ${ timeDate() } or ${ timeDate().plusWeeks(2) })';
var userExpLangHelp = 'E.g.: ${ currentUser() }';
var groupExpLangHelp = 'E.g.: ${ currentUserGroups() }';
// check that the date format follows `yyyy-MM-dd'T'HH:mm:ss` or is an expr... | JavaScript | 0 | @@ -1525,32 +1525,436 @@
%5D%0A %7D,%0A %7B%0A
+ group: 'Case definition',%0A options: %5B%0A %7B%0A name: 'caseDefinitionId',%0A label: 'Id'%0A %7D,%0A %7B%0A name: 'caseDefinitionKey',%0A label: 'Key'%0A %7D,%0A %7B%0A n... |
88b6c4aa3b18cb47ed46e75d92c4dee1100cd3d5 | code review: typos | automatic-api.js | automatic-api.js | // a node.js module to interface with the Automatic cloud API
// cf., https://www.automatic.com/developer/
var events = require('events')
, oauth = require('oauth')
, util = require('util')
, uuid = require('node-uuid')
;
var DEFAULT_LOGGER = { error : function(msg, props) { cons... | JavaScript | 0.999995 | @@ -1468,16 +1468,20 @@
https://
+www.
automati
@@ -2440,10 +2440,10 @@
elf.
-a
o
+a
uth2
@@ -3701,73 +3701,8 @@
ath,
- null, json, self.accessToken,%0A
!!j
@@ -3753,16 +3753,63 @@
: null,
+%0A json, self.accessToken,
functio
|
d72326fe7646a6c44d08637141f7df5f7d293fb7 | Fix issues with the seed script | src/helpers/seeder.js | src/helpers/seeder.js | #!/usr/bin/env node
const storage = require('../storage')
const fixtures = require('./fixtures')
const recipes = fixtures.createRecipes(10)
function save (recipe) {
return storage.put(recipe.id, recipe)
}
storage.connect()
.then(() => {
return Promise.all(recipes.map(recipe => save(recipe)))
})
.then(()... | JavaScript | 0.000001 | @@ -151,16 +151,20 @@
n save (
+db,
recipe)
@@ -186,16 +186,20 @@
age.put(
+db,
recipe.i
@@ -228,16 +228,36 @@
connect(
+process.env.NODE_ENV
)%0A .the
@@ -251,32 +251,34 @@
E_ENV)%0A .then((
+db
) =%3E %7B%0A retur
@@ -318,16 +318,20 @@
=%3E save(
+db,
recipe))
|
0983ef48b57aa2c6dc8965258c34673832959b28 | Fix root component's prop types | react/index.native.js | react/index.native.js | import 'es6-symbol/implement';
import React, { Component } from 'react';
import { AppRegistry, Linking } from 'react-native';
import { App } from './features/app';
/**
* React Native doesn't support specifying props to the main/root component (in
* the JS/JSX source code). So create a wrapper React Component (class... | JavaScript | 0 | @@ -157,16 +157,64 @@
es/app';
+%0Aimport %7B equals %7D from './features/base/redux';
%0A%0A/**%0A *
@@ -686,22 +686,109 @@
opTypes.
-string
+oneOfType(%5B%0A React.PropTypes.object,%0A React.PropTypes.string%0A %5D)
,%0A%0A
@@ -1412,16 +1412,23 @@
url:
+object%7C
string%0A ... |
0eeea296743791802d66c4907b998d2534789e1a | add change avatar methods to actor client; | actor-apps/app-web/src/app/utils/ActorClient.js | actor-apps/app-web/src/app/utils/ActorClient.js | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
export default {
requestSms(phone, success, failure) {
window.messenger.requestSms(phone, success, failure);
},
sendCode(code, success, failure) {
window.messenger.sendCode(code, success, failure);
},
signUp(name, success, failure) {
wi... | JavaScript | 0 | @@ -6682,14 +6682,179 @@
ions();%0A
+ %7D,%0A%0A changeMyAvatar(avatar) %7B%0A window.messenger.changeMyAvatar(avatar)%0A %7D,%0A%0A changeGroupAvatar(gid, avatar) %7B%0A window.messenger.changeGroupAvatar(avatar)%0A
%7D%0A%7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.