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 |
|---|---|---|---|---|---|---|---|
437b2bfc6483746d00dc87572390243950058f23 | Move `title` attribute of buttons from `<span>` to `<a>` | src/node/utils/toolbar.js | src/node/utils/toolbar.js | /**
* The Toolbar Module creates and renders the toolbars and buttons
*/
var _ = require("underscore")
, tagAttributes
, tag
, defaultButtons
, Button
, ButtonsGroup
, Separator
, defaultButtonAttributes;
defaultButtonAttributes = function (name, overrides) {
return {
command: name,
localizat... | JavaScript | 0 | @@ -2333,16 +2333,64 @@
grouping
+, %22data-l10n-id%22: this.attributes.localizationId
%7D,%0A
@@ -2446,56 +2446,8 @@
lass
-, %22data-l10n-id%22: this.attributes.localizationId
%7D)%0A
@@ -5057,20 +5057,16 @@
sers%22),%0A
-
%0A tim
@@ -5234,20 +5234,16 @@
%0A %7D,%0A
-
%0A tim
|
06bb56eff20182522d6d1620483d7e200314c156 | Fix typecasts in ol.layer.TileLayer | src/ol/layer/tilelayer.js | src/ol/layer/tilelayer.js | goog.provide('ol.layer.TileLayer');
goog.require('ol.layer.Layer');
goog.require('ol.source.TileSource');
/**
* @constructor
* @extends {ol.layer.Layer}
* @param {ol.layer.LayerOptions} layerOptions Layer options.
*/
ol.layer.TileLayer = function(layerOptions) {
goog.base(this, layerOptions);
};
goog.inherits... | JavaScript | 0.000003 | @@ -506,16 +506,17 @@
rce%7D */
+(
this.get
@@ -523,13 +523,14 @@
Source()
+)
;%0A%7D;%0A
|
6259caf634ab74f247b278cd27ecb29270a1701a | Consistently return a function or undefined | src/ol/proj/transforms.js | src/ol/proj/transforms.js | goog.provide('ol.proj.transforms');
goog.require('ol');
goog.require('ol.obj');
/**
* @private
* @type {Object.<string, Object.<string, ol.TransformFunction>>}
*/
ol.proj.transforms.cache_ = {};
/**
* Clear the transform cache.
*/
ol.proj.transforms.clear = function() {
ol.proj.transforms.cache_ = {};
};
... | JavaScript | 0.998496 | @@ -2211,9 +2211,8 @@
rn %7B
-?
ol.T
@@ -2227,16 +2227,26 @@
Function
+%7Cundefined
%7D The tr
@@ -2362,15 +2362,8 @@
form
- = null
;%0A
|
d8c84cbf9766c172f10844eda70380107c50d9b1 | Add back button to episodes list | src/pages/series.js | src/pages/series.js | // npm packages
import _ from 'lodash';
import React from 'react';
import {Observable} from 'rxjs';
// our packages
import db from '../db';
import {Crunchyroll} from '../api';
// our components
import Episode from '../components/episode';
export default class Series extends React.Component {
constructor(props) {
... | JavaScript | 0 | @@ -93,16 +93,55 @@
'rxjs';%0A
+import %7BLink%7D from 'react-router-dom';%0A
// our p
@@ -894,49 +894,8 @@
s =%3E
- %7B%0A console.log(episodes);%0A
thi
@@ -920,17 +920,8 @@
es%7D)
-;%0A %7D
);%0A
@@ -1046,16 +1046,16 @@
eturn (%0A
-
%3Cd
@@ -1054,24 +1054,412 @@
%3Cdiv%3E%0A
... |
4cf60a0951ddec160d94fe00b3ddb57be01e9c63 | Clean up code redundancy for interactions and fix bug with nonexistent keys | src/pages/Interactions.js | src/pages/Interactions.js | import React, { Component, } from 'react';
import {
Col,
Grid,
ListGroupItem,
Media,
Row,
} from 'react-bootstrap';
import { renderResults, } from '../components/renderResults';
import { renderTextArea, } from '../components/renderTextArea';
import { filterByText, } from '../util/filters';
import { imagePath... | JavaScript | 0 | @@ -797,20 +797,29 @@
d;%0A%0A
-if (
+const flag =
j.starts
@@ -833,18 +833,14 @@
HA')
-) %7B%0A
+;%0A
-
cons
@@ -847,16 +847,29 @@
t hero =
+ flag%0A ?
heroDat
@@ -910,216 +910,16 @@
j)%5D
-;
%0A
-d = %7B%0A name: resolve(hero.name),%0A dialogue: resolve(i.eatereggherote... |
3e5c38f7919d5cdb6ee4e26377720ec9c6c67dce | add audit fields for photo object | src/schema/photo.js | src/schema/photo.js | import mongoose from 'mongoose';
import URLSlugs from 'mongoose-url-slugs';
let photoSchema = new mongoose.Schema({
originalFilename: { type: String },
filename: { type: String },
name: { type: String },
contentType: { type: String },
size: { type: Number },
tags: [],
// ability to publis photos and/or... | JavaScript | 0 | @@ -444,16 +444,132 @@
: 'Page'
+ %7D,%0A createdOn: %7B type: Date, default: Date.now %7D,%0A createdBy: %7B type: mongoose.Schema.Types.ObjectId, ref: 'User'
%7D%0A%7D);%0Ap
|
318e4862ba38fbe3daf884f71967360221ec3317 | Clear messages on logging out | src/screens/chat.js | src/screens/chat.js | /*
* copyright (c) 2015 Susisu
*/
"use strict";
function ChatScreen(chat) {
var chatScreen = window.document.getElementById("chat-screen");
var chatMembers = window.document.getElementById("chat-members");
var chatExit = window.document.getElementById("chat-logout");
chatExit.addEventListener("cli... | JavaScript | 0 | @@ -351,24 +351,49 @@
t.logout();%0A
+ clearMessages();%0A
%7D);%0A%0A
@@ -1452,24 +1452,177 @@
%7D%0A %7D%0A%0A
+ function clearMessages() %7B%0A while (chatMessages.firstChild) %7B%0A chatMessages.removeChild(chatMessages.firstChild);%0A %7D%0A %7D%0A%0A
func... |
b5304a18cc2c66bcb724f1771684ac84cad10859 | Update gpa | src/pages/resume/index.js | src/pages/resume/index.js | import React from "react"
import Helmet from "react-helmet"
import Link from "gatsby-link"
import css from "./index.module.css"
const H1 = ({children}) =>
<h1 className={css.H1}>{children}</h1>
const H2 = ({children}) =>
<h2 className={css.H2}>{children}</h2>
const Defn = ({children}) =>
<div className={... | JavaScript | 0 | @@ -2076,11 +2076,12 @@
GPA
-4.0
+~3.9
%3C/di
|
59e263d433ffc48d8de1941a14204904564a431a | fix hover in menu | src/scripts/menu.js | src/scripts/menu.js | const overlayNav = $('.cd-overlay-nav');
const overlayContent = $('.cd-overlay-content');
const navigation = $('.cd-primary-nav');
const toggleNav = $('.header__menu-button');
const closeMenuBtn = $('.menu__close');
layerInit();
$(window).on('resize', () => {
window.requestAnimationFrame(layerInit);
});
closeMenuBt... | JavaScript | 0.000001 | @@ -2502,14 +2502,14 @@
ity(
-%22
+'
stop
-%22
+'
).ve
@@ -2538,12 +2538,91 @@
, 500);%0A
+%7D, () =%3E %7B%0A $('#menu-icon').velocity('stop').velocity(%7B fill: '#000' %7D, 500);%0A
%7D);%0A
|
ef4b598fb4bc36efba7c08360866d0205fdcf5a6 | Fix tooltip implementation for button drawer | examples/playground/src/pages/components/global/ButtonDrawer/components/Details.js | examples/playground/src/pages/components/global/ButtonDrawer/components/Details.js | // External Requirements
var React = require('react');
var Router = require('react-router');
var MortarJS = require('../../../../../app-container').MortarJS;
// Bricks
var Br = MortarJS.require('components', 'Row', 'Column', 'Form', 'ButtonDrawer', 'To... | JavaScript | 0 | @@ -1648,16 +1648,23 @@
h=%7Bwidth
+ + 'px'
%7D orient
|
b9af1199d381c35035df0b559c6a06e6c127eb41 | Extract the className out of the props | components/toast/Toast.js | components/toast/Toast.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import ActivableRenderer from '../hoc/ActivableRenderer';
import { Button, IconButton } from '../button';
import Portal from '../hoc/Portal';
import { IconCloseMediumOutline } from '@teamleader/ui-icons';
impo... | JavaScript | 0.999926 | @@ -1569,16 +1569,27 @@
hildren,
+ className,
label,
@@ -1747,27 +1747,16 @@
-this.props.
classNam
|
5e466c9a2b1348423e45afd6c95b252204cfad56 | Use a LinkButton instead of Link & drop it's wrapper because it's not needed to wrap | components/toast/Toast.js | components/toast/Toast.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Transition from 'react-transition-group/Transition';
import cx from 'classnames';
import { IconButton } from '../button';
import { TextSmall } from '../typography';
import Link from '../link';
import LoadingSpinner from '../loading... | JavaScript | 0 | @@ -183,16 +183,28 @@
onButton
+, LinkButton
%7D from
@@ -263,36 +263,8 @@
y';%0A
-import Link from '../link';%0A
impo
@@ -463,24 +463,30 @@
tory = (Link
+Button
, IconButton
@@ -2718,13 +2718,8 @@
ite%22
- soft
%3E%0A
@@ -2875,33 +2875,34 @@
%3C
-TextSmall
+LinkButton
className=%7B
@@ -2927,1... |
21cc4397e960b5e5140bbba7ca29bc11a73b28ad | Remove duplication by using Universe class. | test/works.js | test/works.js | import assert from 'assert';
describe('test setup works?', function() {
it('i hope', function() {
assert.equal(1, 1);
});
});
function tick() {
return { positions:[] };
}
function newUniverseWithOneCellFrom(universe, position) {
return {positions: [universe.positions[position]]};
}
describe('universe', fu... | JavaScript | 0.000001 | @@ -129,16 +129,346 @@
);%0A%7D);%0A%0A
+class Universe %7B%0A static withPositions(positions) %7B%0A const universe = new Universe();%0A universe.positions = positions;%0A return universe;%0A %7D%0A indexOf(%7Bx, y%7D) %7B%0A return this.positions%0A .map((position, index) =%3E position.x == x && ... |
28711ab2a155be2d6db9ca1caea7754795f1fb30 | Eliminate a duplicate test def | packages/react-server-integration-tests/src/__tests__/containers/ContainersSpec.js | packages/react-server-integration-tests/src/__tests__/containers/ContainersSpec.js | var helper = require("../../specRuntime/testHelper");
var _ = require('lodash');
describe("A page's root elements", () => {
var pages = [];
var seen = {};
// Verify that we get our attributes set where they need to go.
_.forEach({
'RootElement' : "[data-react-server-root-id]",
'RootContainer' : "[data-react... | JavaScript | 0.999999 | @@ -1138,75 +1138,8 @@
y%22,%0A
-%09%09%22/singleRootElementInArray%22 : %22RootElement in an array%22,%0A
%09%09%22/
|
f983f121d4dd680c1fbfd7e99863888ea9237896 | Add docs for PlayAnimation | src/actions/PlayAnimation.js | src/actions/PlayAnimation.js | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* [description]
*
* @function Phaser.Actions.PlayAnimation
* @since 3.0.0
*
* @generic {Phaser.GameObjects.G... | JavaScript | 0 | @@ -206,21 +206,107 @@
%0A *
-%5Bdescription%5D
+Play an animation with the given key, starting at the given startFrame on all Game Objects in items
%0A *%0A
|
d55c4daec8ee50ddd9164ab4c335614e4a002a9b | Add a notification zero state | src/actions/notifications.js | src/actions/notifications.js | import * as ACTION_TYPES from '../constants/action_types'
import * as MAPPING_TYPES from '../constants/mapping_types'
import * as api from '../networking/api'
import * as StreamFilters from '../components/streams/StreamFilters'
import * as StreamRenderables from '../components/streams/StreamRenderables'
export functio... | JavaScript | 0.000004 | @@ -1,20 +1,46 @@
+import React from 'react'%0A
import * as ACTION_T
@@ -69,32 +69,32 @@
s/action_types'%0A
-
import * as MAPP
@@ -323,16 +323,70 @@
erables'
+%0Aimport %7B ZeroState %7D from '../components/zeros/Zeros'
%0A%0Aexport
@@ -664,24 +664,24 @@
cationList,%0A
-
asGr
@@ -716,24 +716,95 @@
catio... |
65d9a3cbe047d31e6f7135a7ba12b9ec2b6879a1 | Fix BlockContact receive | lib/receive/operation/BlockContact.js | lib/receive/operation/BlockContact.js | var OpType = require('../../constants/OpType');
var Operation = require('../Operation');
var BlockContact = function(config, result) {
this.config = config;
this.result = result;
};
BlockContact.prototype = new Operation();
BlockContact.prototype.constructor = BlockContact;
BlockContact.prototype.isBlockContact =... | JavaScript | 0 | @@ -372,23 +372,25 @@
type.get
-Content
+Operation
Type = f
@@ -414,15 +414,10 @@
urn
-Content
+Op
Type
|
58f6be5839773ff34ad7e0eb732228fc1e16c57c | Add Alias to Segment.io | src/angulartics-segmentio.js | src/angulartics-segmentio.js | /**
* @license Angulartics v0.17.2
* (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics
* License: MIT
*/
(function(angular) {
'use strict';
/**
* @ngdoc overview
* @name angulartics.segment.io
* Enables analytics support for Segment.io (http://segment.io)
*/
angular.module('angularti... | JavaScript | 0 | @@ -2402,24 +2402,469 @@
%7D%0A %7D);
+%0A %0A // Segment Alias Method%0A // https://segment.com/docs/libraries/analytics.js/#alias%0A // analytics.alias(%5BuserId%5D, %5Bcallback%5D);%0A $analyticsProvider.registerSetAlias(function (userId, previousId, options, callback) %7B%0A t... |
1d1a6bf1a7da2e34a8b14c8c39a328026cfef0b4 | Make textual output CSV friendly | benchmarks/benchmark-runner.js | benchmarks/benchmark-runner.js | /** @babel */
import Chart from 'chart.js'
import glob from 'glob'
import fs from 'fs-plus'
import path from 'path'
export default async function ({test, benchmarkPaths}) {
document.body.style.backgroundColor = '#ffffff'
document.body.style.overflow = 'auto'
let paths = []
for (const benchmarkPath of benchma... | JavaScript | 0.995504 | @@ -1593,24 +1593,21 @@
%60
-(
$%7Bp.x%7D
-,
+;
$%7Bp.y%7D
-)
%60).j
|
05510f5d49a0b0452fec20853b2b9de4b64728b1 | Fix server client | lib/runner/challenge_server_client.js | lib/runner/challenge_server_client.js | 'use strict';
var Promise = require('promise');
var unirest = require('unirest');
function ChallengeServerClient(hostname, port, journeyId, useColours){
this.hostname = hostname;
this.port = port;
this.journeyId = journeyId;
this.acceptHeader = useColours ? "text/coloured" : "text/not-coloured";
}
//... | JavaScript | 0.000001 | @@ -837,28 +837,26 @@
.get(
-'
+%60
http://
-' +
+$%7B
client.h
@@ -858,33 +858,28 @@
ent.hostname
- + ':' +
+%7D:$%7B
client.port
@@ -881,36 +881,20 @@
port
- + '/' + actionName + '/' +
+%7D/$%7Bname%7D/$%7B
clie
@@ -897,32 +897,34 @@
client.journeyId
+%7D%60
)%0A .h
@@ -1329,20 +1329,18 @@
... |
8fd832d057701d26b16e3600fb8cf89f8e2e97d1 | fix no more forums | lib/site/home-multiforum/component.js | lib/site/home-multiforum/component.js | import React, {Component} from 'react'
import { Link } from 'react-router'
import user from 'lib/user/user'
import t from 't-component'
import debug from 'debug'
import forumStore from '../../stores/forum-store/forum-store'
import ForumCard from './forum-card/component'
const log = debug('democracyos:home-multiforum')... | JavaScript | 0 | @@ -4441,22 +4441,35 @@
s.state.
-noMore
+forums.length === 0
&&%0A
|
98a07e6f0c8c6ce64108006ff675f126ac1803fc | make CheckedInt instance print nicely | src/arithmetic/checkedInt.js | src/arithmetic/checkedInt.js | var checkedInt = function checkedInt(longInt) {
'use strict';
var CheckedInt = "__CheckedInt__";
var make = function make(n) {
return {
type : CheckedInt,
value: n
};
};
var toJS = function toJS(n) {
return n.value;
};
var promote = function promote(n) {
if (longInt.shou... | JavaScript | 0 | @@ -1,12 +1,43 @@
+var I = require('immutable');%0A%0A
var checkedI
@@ -112,24 +112,145 @@
t =
-%22__CheckedInt__%22
+I.Record(%7B%0A type : undefined,%0A value: undefined%0A %7D);%0A%0A CheckedInt.prototype.toString = function() %7B%0A return ''+this.value;%0A %7D
;%0A%0A%0A
@@ -296,21 +296,29 @@
urn ... |
9a8322ea9957c288d4056dd84a8a487bcc78d95c | install preprocessors as devDependencies | lib/tasks/install-npm-dependencies.js | lib/tasks/install-npm-dependencies.js | var runCommand = require('../utils/run-command');
var dependencies = [
'broccoli-coffee',
'broccoli-sass'
];
module.exports = function(config) {
var command = 'cd ' + config.get('projectPath') + '/ember; '
+ 'npm install --save ' + dependencies.join(' ');
return runCommand(command, "... | JavaScript | 0 | @@ -250,13 +250,9 @@
ll -
--save
+D
' +
|
c63cd5fd35b6d985fd25b54d44cb3e0efdb45cf0 | Add a guard clause for svg attribute presence | lib/tests/modules/graph/components.js | lib/tests/modules/graph/components.js | var _ = require('underscore');
module.exports = {
line: function (browser, selector, index) {
var lineInGroup = _.isNumber(index) ? '.group' + index : '';
return function () {
return browser
.$(selector + ' svg .line' + lineInGroup)
.should.eventually.exist;
};
},
stack: fun... | JavaScript | 0 | @@ -605,32 +605,64 @@
(function (d) %7B%0A
+ if (d !== null) %7B%0A
line
@@ -685,16 +685,30 @@
M')%5B1%5D;%0A
+ %7D%0A
@@ -973,16 +973,48 @@
ck path%0A
+ if (d !== null) %7B%0A
@@ -1045,16 +1045,30 @@
ePath);%0A
+ %7D%0A
@@ -... |
872f701c921922c605064cc8914e03be3ac3f6ff | Use reset() instead of clear() | js/energy-systems/model/EnergySystemElement.js | js/energy-systems/model/EnergySystemElement.js | // Copyright 2016, University of Colorado Boulder
/**
* Base class for energy sources, converters, and users.
*
* @author Andrew Adare
* @author Jesse Greenberg
*/
define( function( require ) {
'use strict';
var inherit = require( 'PHET_CORE/inherit' );
// var PropertySet = require( 'AXON/PropertySet' );... | JavaScript | 0.000007 | @@ -1792,21 +1792,21 @@
unkList.
-clear
+reset
();%0A
|
fa0c5bfa2b6b5921a1b1500e3a674f66aa29d44e | Remove unnecessary check | lib/Accordion/headers/FilterAccordionHeader.js | lib/Accordion/headers/FilterAccordionHeader.js | import React from 'react';
import { injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../../Icon';
import Headline from '../../Headline';
import IconButton from '../../IconButton';
import css from '../Accordion.css';
class FilterAccordionHeader e... | JavaScript | 0 | @@ -1842,14 +1842,8 @@
?.id
- ?? ''
;%0A
|
b2e4ab201f53b9609509ef24e0be2a8de617c31b | change child doctype name | frappe/custom/doctype/package_publish_tool/package_publish_tool.js | frappe/custom/doctype/package_publish_tool/package_publish_tool.js | // Copyright (c) 2020, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Package Publish Tool', {
refresh: function(frm) {
frm.set_query("document_type", "package_details", function () {
return {
filters: {
"istable": 0,
}
};
});
frapp... | JavaScript | 0.000082 | @@ -2229,21 +2229,28 @@
ackage D
-etail
+ocument Type
', %7B%0A%09fo
|
cf3c243af27e111fcad4f6f58885cf9e9ff3c5db | Set default values for user preferences | frontend/delta/js/Clipperz/PM/DataModel/User.Header.Preferences.js | frontend/delta/js/Clipperz/PM/DataModel/User.Header.Preferences.js | /*
Copyright 2008-2015 Clipperz Srl
This file is part of Clipperz, the online password manager.
For further information about its features and functionalities please
refer to http://www.clipperz.com.
* Clipperz is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Pub... | JavaScript | 0.000001 | @@ -2564,16 +2564,36 @@
ock': %7B%0A
+%09%09'enabled': false,%0A
%09%09'timeo
@@ -2608,21 +2608,232 @@
tes': 10
+,
%0A%09%7D,%0A
+%09'passwordGenerator': %7B%0A%09%09'length': 24,%0A%09%09'characters': %7B%0A%09%09%09'A-Z': true,%0A%09%09%09'a-z': true,%0A%09%09%09'0-9': true,%0A%09%09%09'space': false,%0A%09... |
db62953588cd8d377c199c12a61e401f891d1e25 | Use foo loop instead of underscore 3rd-party lib | src/client/script-manager.js | src/client/script-manager.js | 'use strict';
import * as _ from '../external/underscore.js';
function functionFromString(funcOrString) {
if (typeof funcOrString === 'function') {
return funcOrString;
}
// lets trick babel to allow the usage of 'this' in outermost context
var innerWrap = '(function() { return (' + funcOrStr... | JavaScript | 0.00041 | @@ -3088,35 +3088,34 @@
-_.each(children, (
+for(let child of
child
-) =%3E
+ren)
%7B%0A
@@ -3880,26 +3880,24 @@
%7D%0A %7D
-);
%0A%0A // don
|
d056c2e7f046be643aa48887ed87418e90340432 | Add missing import | lib/queryBuilder/operations/InsertOperation.js | lib/queryBuilder/operations/InsertOperation.js | 'use strict';
const { QueryBuilderOperation } = require('./QueryBuilderOperation');
const { StaticHookArguments } = require('../StaticHookArguments');
const { after, mapAfterAllReturn } = require('../../utils/promiseUtils');
const { isPostgres, isSqlite, isMySql } = require('../../utils/knexUtils');
const { isObject }... | JavaScript | 0.000466 | @@ -256,16 +256,29 @@
isMySql
+, isSqlServer
%7D = req
|
7f5e8cac014c5e1bc0996b0bb27fa1b7999767c6 | Add hints | libs/spider-queen.js | libs/spider-queen.js | 'use strict';
const cache = require('../config/cache.js');
const crawlers = require('./crawlers');
const spiders = require('./spiders');
const util = require('./util.js');
function findCrawlers (selector) {
let result = [];
for (var name in crawlers) {
let crawler = crawlers[name];
if (selecto... | JavaScript | 0 | @@ -2764,32 +2764,86 @@
d%7B6%7D_%5Cd%7B3%7D$/ %7D,%0A
+ %7B crawler: 'tokyo-hot', regex: /%5Etokyohot .*$/ %7D,%0A
%7B crawler: '
|
4db4fb1f3c0579c15f27d8ba18e108f71f6cb902 | Update index.js | demo/src/index.js | demo/src/index.js | import VirtualizedList from '../../src';
const ROW_HEIGHT_POSSIBILITIES = [70, 110, 140, 70, 90, 70];
const CONTAINER_STYLE = 'width: 400px; height: 600px; overflow-y: auto; border: 1px solid #DDD; margin: 50px auto;';
const ELEMENT_STYLE = `border-bottom: 1px solid #DDD; box-sizing: border-box; display: flex; align-i... | JavaScript | 0.000002 | @@ -1077,16 +1077,45 @@
eights,%0A
+ estimatedRowHeight: 100,%0A
rend
|
0bd88611fa0e52d55875b4ba8bc9161f0ee99576 | Remove {0} from the value if there's no existing tag to update. | lib/transforms/addContentVersionMetaElement.js | lib/transforms/addContentVersionMetaElement.js | var _ = require('underscore');
module.exports = function (queryObj, version, updateExisting) {
if (typeof version === 'undefined') {
throw new Error("transforms.addContentVersionMetaTag: The 'version' parameter is mandatory.");
}
return function addContentVersionMetaElement(assetGraph) {
as... | JavaScript | 0 | @@ -1246,16 +1246,38 @@
version
+.replace(/%5C%7B0%5C%7D/g, '')
);%0A
|
616b63c534c20a129275a0482bc03c347e58770c | Fix search content field fallback | app/reducers/search.js | app/reducers/search.js | // @flow
import { createSelector } from 'reselect';
import { get } from 'lodash';
import { Search } from '../actions/ActionTypes';
import moment from 'moment-timezone';
import { resolveGroupLink } from 'app/reducers/groups';
import { categoryOptions } from 'app/reducers/pages';
export type SearchResult = {
label: s... | JavaScript | 0.000005 | @@ -1055,32 +1055,45 @@
',%0A content:
+item =%3E item%5B
'description'%0A
@@ -1081,32 +1081,33 @@
em%5B'description'
+%5D
%0A %7D,%0A 'events.
@@ -1388,32 +1388,45 @@
',%0A content:
+item =%3E item%5B
'description'%0A
@@ -1414,32 +1414,33 @@
em%5B'description'
+%5D
%0A %7D,%0A 'flatpag
@@ -1748... |
301e947611604c959686bff8d2b06746e856af54 | Update dashboard-controller.js | www/dashboard/dashboard-controller.js | www/dashboard/dashboard-controller.js | 'use strict';
angular.module('MyApp.controllers')
.controller('DashboardCtrl', function($firebase, $scope, Auth) {
var noticeRef = new Firebase('https://noticeapp.firebaseio.com/notifications');
var textMessages = $firebase(noticeRef);
$scope.email = Auth.currentUser.email;
$scope.message = "";
$scope.p... | JavaScript | 0.000001 | @@ -464,24 +464,49 @@
message
+, createdBy: $scope.email
%7D);%0A %09%09
message
@@ -497,16 +497,23 @@
%7D);%0A %09%09
+$scope.
message
|
93e0b455adcd37ff4e995b4d9ad300a15c9ae283 | add modal close click event and pass data to form | app/assets/scripts/components/modal.js | app/assets/scripts/components/modal.js | import React,{Component} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {folderAdd} from "../actions/index";
import FormNewFolder from "./form-new-folder";
import FormNewFolderItem from "./form-new-folder-item";
import FormRequestEditor from "./form-request-editor";... | JavaScript | 0 | @@ -651,32 +651,90 @@
ete.bind(this);%0A
+ this.onClickClose = this.onClickClose.bind(this);%0A
this.add
@@ -1278,151 +1278,412 @@
-render() %7B%0A var type = (%22type%22 in this.props.modal) ? this.props.modal.type : %22%22;%0A var showClass = (this.state.show)? %22-open%22: %22%22... |
26927a256c7484ef4f0d220b39f356001308caaf | Remove useless test | gulpfile.js/tests/changelog.test.js | gulpfile.js/tests/changelog.test.js | 'use strict'
const endOfLine = require('os').EOL
const test = require('tape')
const changelog = require('../tasks/changelog')
test('changelog - runCommand', (t) => {
t.plan(3)
changelog
.runCommand()
.catch(function (err) {
t.ok(err instanceof Error, 'returns an Error if the command fails')
t... | JavaScript | 0 | @@ -1315,9 +1315,9 @@
lan(
-9
+8
)%0A%0A
@@ -2087,80 +2087,8 @@
%7D)%0A%0A
- t.ok(changelog.verifyGitDiffs('string').then(), 'returns a promise')%0A%0A
ch
|
cad8c4068b1d6b44785e825f7e54be39426a4563 | handle edge case in watch | packages/gluestick-cli/watch.js | packages/gluestick-cli/watch.js | const path = require('path');
const chalk = require('chalk');
const chokidar = require('chokidar');
const fs = require('fs-extra');
module.exports = (exitWithError) => {
const packagePath = path.join(process.cwd(), 'package.json');
let packageContent = null;
try {
packageContent = require(packagePath);
} c... | JavaScript | 0 | @@ -1239,57 +1239,8 @@
%3E %7B%0A
- const split = filePath.split(packageName);%0A
@@ -1339,29 +1339,53 @@
-split%5Bsplit.length -
+/packages%5C/%5Ba-zA-Z-_%5D*%5C/(.*)/.exec(filePath)%5B
1%5D,%0A
|
a37adb6695f9e68251bc152c311a081308123982 | Add platform availability info | tools/parse-language-reports/index.js | tools/parse-language-reports/index.js | var fs = require('fs'),
parse = require('./parse'),
path = require('path'),
yaml = require('js-yaml');
function isVersionLess(a, b) {
a = a.split('.').map(Number);
b = b.split('.').map(Number);
for (var i = 0; i < 4; i++) {
if (a[i] != b[i]) {
return a[i] < b[i];
}
}
return false;
}
fu... | JavaScript | 0 | @@ -617,24 +617,378 @@
ion;%0A %7D%0A%7D%0A%0A
+function convertPlatformsToAvailability(value) %7B%0A value.availability = %7B%7D;%0A%0A Object.keys(value.platforms).forEach(function(platform) %7B%0A var version = value.platforms%5Bplatform%5D;%0A%0A if (!value.availability%5Bversion%5D) %7B%0A value.ava... |
272d8df5373677ee5edb43724db0f0ca67f99c5b | add optional margin for text position | Sources/Widgets/Widgets3D/ShapeWidget/Constants.js | Sources/Widgets/Widgets3D/ShapeWidget/Constants.js | export const BehaviorCategory = {
POINTS: 'POINTS',
PLACEMENT: 'PLACEMENT',
RATIO: 'RATIO',
};
export const ShapeBehavior = {
[BehaviorCategory.POINTS]: {
CORNER_TO_CORNER: 0,
CENTER_TO_CORNER: 1,
RADIUS: 2,
DIAMETER: 3,
},
[BehaviorCategory.PLACEMENT]: {
CLICK: 0,
DRAG: 1,
CLIC... | JavaScript | 0.000001 | @@ -891,17 +891,31 @@
xtHeight
+,%0A margin = 0
%0A
-
) %7B%0A le
@@ -1024,32 +1024,41 @@
s%5B0%5D - textWidth
+ - margin
;%0A break;%0A
@@ -1120,16 +1120,25 @@
ounds%5B0%5D
+ + margin
;%0A
@@ -1327,16 +1327,25 @@
extWidth
+ - margin
;%0A
@@ -1417,16 +1417,25 @@
ounds%5B1%5D
+ + margin
;%... |
43f50dbe6ee27fb45857cc210f4236d9706261a7 | Change marks for CC logging. | extension/modules/require-debug.js | extension/modules/require-debug.js | /*Software License Agreement (BSD License)
Copyright (c) 2007, Parakey Inc.
All rights reserved.
Redistribution and use of this software in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above
cop... | JavaScript | 0 | @@ -3210,16 +3210,18 @@
unction%22
+/*
%7C%7C type
@@ -3240,16 +3240,18 @@
%22object%22
+*/
))%0A
@@ -3292,23 +3292,478 @@
+
-
+var funcName = name + %22_%22 + prop;%0A funcName = funcName.replace(%22/%22, %22_%22, %22g%22);%0A ... |
975c077270144879dcbb8f0adb94335663e5f6e3 | fix typo | libs/phantomRunner.js | libs/phantomRunner.js | /*global current:true, window, QUnit, document, require:true */
var phantomHelper = require('./helper.js');
var logger = require('chip')();
require('colors');
var prefixes = logger.getPrefixes();
prefixes.log = "";
prefixes.trace = "";
logger.setPrefixes(prefixes);
module.exports = function(testOpt, done, coverage){... | JavaScript | 0.999991 | @@ -2282,25 +2282,24 @@
unction exec
-t
uteTests(fil
@@ -5800,17 +5800,16 @@
%0A%09%09%09exec
-t
uteTests
|
80bcd503160fea3cf948303ca6c079ede159f7ae | Add a shortcut for isMoment | addon/services/moment.js | addon/services/moment.js | import Ember from 'ember';
import moment from 'moment';
const { computed, Logger:logger } = Ember;
export default Ember.Service.extend({
_timeZone: null,
locale: null,
defaultFormat: null,
init() {
this._super(...arguments);
if (!this.get('defaultFormat')) {
this.set('defaultFormat', 'LLLL');... | JavaScript | 0.000061 | @@ -803,24 +803,83 @@
eZone);%0A %7D,
+%0A %0A isMoment(obj) %7B%0A return moment.isMoment(obj);%0A %7D,
%0A%0A moment()
|
ca6ae474578ed30933dbe64b0fe4d098b041130f | fix build | src/service/generator/game_generator.test.js | src/service/generator/game_generator.test.js | import { generateGame } from "./";
import PlayerModel from "../../model/player_model";
describe(`generator:: Game`, () => {
describe(`::generate`, () => {
[0, 1, 2, 10].forEach((v) => {
it(`expected ${v} battlefields`, () => {
const model = generateGame(v, 0);
e... | JavaScript | 0.000001 | @@ -770,17 +770,11 @@
byte
-_sequence
+Seq
).to
|
69dedb2f06accaca9bfee2c6dd634e485d367e9c | Fix annotation | src/main/author/units/unit/topics/topics-controller.js | src/main/author/units/unit/topics/topics-controller.js | import _ from 'lodash';
import removeModal from '../../remove-modal';
export default /*@ngInject*/class TopicsCtrl{
constructor(topics,$state,$scope, $uibModal, $http){
this.$http = $http;
this.topics = topics.data;
this.$state = $state;
this.$uibModal = $uibModal;
this.removeModal = removeModal($... | JavaScript | 0.000077 | @@ -82,21 +82,8 @@
ult
-/*@ngInject*/
clas
@@ -2466,8 +2466,83 @@
;%0A %7D%0A%7D%0A
+TopicsCtrl.$inject = %5B'topics', '$state', '$scope', '$uibModal', '$http'%5D;%0A
|
e5d6ea15543809fff90e239e3178e38b85ca5c78 | update etl for dim category | src/etl/dim-category-etl-manager.js | src/etl/dim-category-etl-manager.js | 'use strict'
// external deps
var ObjectId = require("mongodb").ObjectId;
var BaseManager = require('module-toolkit').BaseManager;
var moment = require("moment");
// internal deps
require('mongodb-toolkit');
var CategoryManager = require('../managers/master/category-manager');
module.exports = class DimCategoryEt... | JavaScript | 0 | @@ -2341,22 +2341,21 @@
time%5B0%5D.
-finish
+start
);%0A
|
11b8e781d058c2088b967cbf1c99a574da64230a | Test for capital letters in descriptions | tests/docs.js | tests/docs.js | 'use strict';
var docs = require('../docs/src/js/docs');
var expect = require('chai').expect;
var sinon = require('sinon');
var stub = sinon.stub;
var utils = require('./helpers/utils');
var each = utils.each;
var any = utils.any;
var getContextStub = require('./helpers/get-context-stub');
var Canvas = require('../lib... | JavaScript | 0.00003 | @@ -2374,38 +2374,576 @@
riptions should
-have a
+begin with a capital letter', function () %7B%0A var beginsWithCapital = /%5E%5BA-Z%5D/;%0A%0A each(docs, function (group) %7B%0A if (!beginsWithCapital.test(group.description)) %7B%0A throw new Error(group.name + ' group%5C's description should have... |
89f1c658d42fead785ba97be9d2e011410938f26 | Add missing multiple newline comments test | tests/test.js | tests/test.js | 'use strict';
const fs = require('fs');
const path = require('path');
const tape = require('tape');
const postcss = require('postcss');
const plugin = require('../src/');
const name = require('../package.json').name;
const processCss = function (css, options) {
return postcss(plugin(options)).process(css);
};
con... | JavaScript | 0.000001 | @@ -2412,32 +2412,227 @@
: 0;%7D'%0A %7D,%0A %7B%0A
+ message: 'Handle multiple newline comments.',%0A fixture: 'a%7Bflex: 0;%5Cn/*border a*/%5Cn/*border b*/%5Cnborder: 0;%7D',%0A expected: 'a%7B%5Cn/*border a*/%5Cn/*border b*/%5Cnborder: 0;flex: 0;%7D'%0A %7D,%0A %7B%0A
message: 'Ke
|
b13840926172eee6064b2aac8b9bc575dc506e28 | add more tests | tests/test.js | tests/test.js | var expect = require('chai').expect
var Subject = require('../lib/Subject')
var ResultEntry = require('../lib/ResultEntry')
var identBuilder = require('../lib/tools/identBuilder')
var splitter = require('../lib/tools/splitter')
var prepareTerm = require('../lib/tools/prepareTerm')
var dedupeStream = require('../lib/st... | JavaScript | 0 | @@ -2820,179 +2820,794 @@
-%7D)%0A%0A describe('identBuilder', () =%3E %7B%0A it('should create an ident', () =%3E expect(identBuilder('foo-bar-b%C3%A4r-b%C3%BCx %22 , - + bax/baz')).to.equal('baxbaz foobarbaerbuex
+ it('should prepare', () =%3E expect(prepareTerm('Paiste 2002 18%22 crash')).to.equal... |
7c63af81819147bd4c0b24b98a809395be437c67 | Add test that will probably never pass. | tests/test.js | tests/test.js | "use strict";
var util = require("util");
var fleece = require("../lib/fleece");
function test_url(url, expected) {
fleece.describe_url(url, function (err, result) {
if (err) {
console.error("URL %s error: %s", url, err);
throw new Error(err);
}
if (result.match(expected) === null) {
... | JavaScript | 0 | @@ -522,16 +522,230 @@
%7D);%0A%7D%0A%0A
+// test_url(%0A// %22https://twitter.com/ggreer/status/588220411529297921%22,%0A// %22%3C@ggreer%3E An emoji haiku titled, Drinking on a School Night %F0%9F%93%9D%F0%9F%95%99%F0%9F%98%90%F0%9F%8D%BA%F0%9F%98%8A %F0%9F%98%8F%F0%9F%8D%BB%F0%9F%98%9C%F0%9F%8D%BB%E2%9C%A8%F0%... |
64b5373b9dbb4349229002c443e800dc75e37a90 | Add error management | src/geo/geocoder/mapbox-geocoder.js | src/geo/geocoder/mapbox-geocoder.js | var ENDPOINT = 'https://api.mapbox.com/geocoding/v5/mapbox.places/{{address}}.json?access_token={{access_token}}';
var TYPES = {
country: 'country',
region: 'region',
postcode: 'postal-area',
district: 'localadmin',
place: 'venue',
locality: 'locality',
neighborhood: 'neighbourhood',
address: 'address'... | JavaScript | 0.000001 | @@ -442,24 +442,211 @@
s, token) %7B%0A
+ if (!address) %7B%0A throw new Error('MapboxGeocoder.geocode called with no address');%0A %7D%0A if (!token) %7B%0A throw new Error('MapboxGeocoder.geocode called with no access_token');%0A %7D%0A
return fet
|
732e47f54a0e38f1d5c33588d9c2c87da923a19b | remove cherry-pick debris | packages/api/src/create-subscription.js | packages/api/src/create-subscription.js | const Path = require("path");
const ARSON = require("arson");
const { validate } = require("@patternplate/validate-config");
const WebSocket = require("ws");
const loadConfig = require("@patternplate/load-config");
const createCompiler = require("./compiler");
const { PluginApi } = require("./plugin-api");
const debu... | JavaScript | 0.00103 | @@ -243,16 +243,23 @@
uire(%22./
+create-
compiler
@@ -265,55 +265,8 @@
r%22);
-%0Aconst %7B PluginApi %7D = require(%22./plugin-api%22);
%0A%0Aco
@@ -845,32 +845,32 @@
turn;%0A %7D%0A
+
console.
@@ -894,1640 +894,8 @@
%7D);
-%0A%0A ws.on(%22message%22, async envelope =%3E %7B%0A cons... |
7617e6cc3068f550cf435600611470c5dcaddd8b | replace custom media query by alias | packages/cf-component-form/src/FormFieldset.js | packages/cf-component-form/src/FormFieldset.js | import React from 'react';
import PropTypes from 'prop-types';
import { createComponentStyles } from 'cf-style-container';
import { clearFix } from 'polished';
const mainStyles = ({ theme }) => ({
margin: theme.main.margin,
padding: theme.main.padding,
borderTop: theme.main.borderTop,
borderLeft: theme.main.bo... | JavaScript | 0.000002 | @@ -596,35 +596,14 @@
,%0A
-'@media (min-width: 720px)'
+tablet
: la
@@ -1001,35 +1001,14 @@
,%0A
-'@media (min-width: 720px)'
+tablet
: la
|
a3c6141ab7f53122d6672d1fe3c7c0674e4b86e9 | Update docs for Mibew.Views.LeaveMessageFrom.submitError | src/messenger/webim/js/source/chat/model_views/leave_message/leave_message_form.js | src/messenger/webim/js/source/chat/model_views/leave_message/leave_message_form.js | /**
* @preserve This file is part of Mibew Messenger project.
* http://mibew.org
*
* Copyright (c) 2005-2011 Mibew Messenger Community
* License: http://mibew.org/license.php
*/
(function(Mibew, Handlebars, _){
// Create shortcut for base view
var BaseView = Mibew.Views.BaseSurveyForm;
/**
* ... | JavaScript | 0 | @@ -2704,16 +2704,368 @@
%7D,%0A%0A
+ /**%0A * Handler function for model 'submitError' event.%0A * Update captcha img if captcha field has wrong value.%0A *%0A * @param %7BMibew.Models.LeaveMessageForm%7D model Form model%0A * @param %7BObject... |
3b0002e4c5c8e5ca785703d1883f77c8af5835d5 | simplify logic in main.js | app/templates/_main.js | app/templates/_main.js | require([<% if (useZepto) { %>
'zepto',<% } else { %>
'jquery',<% } %>
'backbone',
'<% if (includeCoffeeScript) { %>cs!<% } %>views/root',<% if (starterApp === 'Hello World') { %>
'<% if (includeCoffeeScript) { %>cs!<% } %>routers/hello-world',<% } else if (starterApp === 'Todo List') { %>
'<% if (includeCo... | JavaScript | 0.000074 | @@ -591,424 +591,8 @@
) %7B%0A
-%0A initialize(function(next) %7B%0A // Load any data that your app requires to boot%0A // and initialize all routers here, the callback%0A // %60next%60 is provided in case the operations%0A // needed are aysynchronous%0A %3C%25 if (starterApp === 'Hello World') %7B %25... |
1b32d3843ab26b2aac5fbe36531649d6fcdf8e63 | fix unit tests | app/test/unit/queue.js | app/test/unit/queue.js | // Run with mocha by installing dev deps: npm install --dev
// more docs on writing tests with mocha can be found here:
// http://visionmedia.github.com/mocha/
/*global describe:true, it:true */
"use strict";
var assert = require('assert')
, appium = require('../../appium')
, path = require('path')
, UUID = requ... | JavaScript | 0.000001 | @@ -1455,16 +1455,53 @@
ath%7D);%0A%0A
+ inst.registerConfig(%7Bios: true%7D);%0A%0A
var st
|
0bd20f5fea72d622620dc50a864860d0a879bf8d | Add ;;; | js/FavoriteHandler.js | js/FavoriteHandler.js | var Storage = require('FuseJS/Storage');
var data = 'favorites';
/* ...
-----------------------------------------------------------------------------*/
var addFavorite
, deleteFavorite
, getFavorites;
/* Functions
-----------------------------------------------------------------------------*/
addFavorite = functi... | JavaScript | 0.000016 | @@ -484,17 +484,18 @@
ite));%0A%7D
+;
%0A
-
%0AdeleteF
@@ -660,16 +660,17 @@
);%0A %7D%0A%7D
+;
%0A%0AgetFav
@@ -745,16 +745,17 @@
data));%0A
+%0A
if (fa
@@ -794,17 +794,16 @@
s = %7B%7D;%0A
-%0A
Stor
@@ -871,17 +871,18 @@
orites;%0A
-
%7D
+;
%0A%0A%0A/* Ex
|
31699e816c692156e1388bc9836c278d10dc5c4e | remove trailing slash for individual applications | troposphere/static/js/models/application.js | troposphere/static/js/models/application.js | define(['underscore', 'models/base', 'models/machine', 'collections/machines'],
function(_, Base, Machine, Machines) {
var Application = Base.extend({
defaults: { 'model_name': 'application' },
parse: function(response) {
var attributes = response;
attributes.id = response.u... | JavaScript | 0 | @@ -917,22 +917,16 @@
et('id')
- + '/'
;%0A
|
e62023e879584c6a9938718d4342ef06c751cbe1 | remove unused CustomMenu | src/components/CustomMenu.js | src/components/CustomMenu.js | import React from 'react';
import ReactDOM from 'react-dom';
export class CustomToggle extends React.Component {
constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
e.preventDefault();
this.props.onClick(e);
}
render() {
... | JavaScript | 0.000001 | @@ -23,42 +23,8 @@
ct';
-%0Aimport ReactDOM from 'react-dom';
%0A%0Aex
@@ -394,854 +394,4 @@
%7D%0A%7D%0A
-%0Aexport class CustomMenu extends React.Component %7B%0A constructor(props, context) %7B%0A super(props, context);%0A%0A this.handleChange = this.handleChange.bind(this);%0A%0A this.state = %7B%0A ... |
b23a52bff38b2a6c5a7f1556cd8bb36a9630d243 | Update button.min.js UIkit 2.26.2 | js/core/button.min.js | js/core/button.min.js | /*! UIkit 2.24.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
!function(t){"use strict";t.component("buttonRadio",{defaults:{activeClass:"uk-active",target:".uk-button"},boot:function(){t.$html.on("click.buttonradio.uikit","[data-uk-button-radio]",function(i){var a=t.$(this);if(!a.data("buttonRadio"))... | JavaScript | 0.000001 | @@ -10,11 +10,11 @@
2.2
-4.3
+6.2
%7C h
@@ -2456,8 +2456,9 @@
(UIkit);
+%0A
|
7ff2d2aea62be274ee35ea497ee7cbb35f23dc19 | Fix tab context menu item size checks (#7420) | src/components/Editor/Tab.js | src/components/Editor/Tab.js | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
import React, { PureComponent } from "react";
import { connect } from "react-redux";
import { showMen... | JavaScript | 0 | @@ -1685,16 +1685,56 @@
props;%0A%0A
+ const tabCount = tabSources.length;%0A
cons
@@ -2332,16 +2332,17 @@
TabURLs)
+,
%0A
@@ -2342,33 +2342,26 @@
-%7D,%0A hidden
+ disabled
: () =%3E
@@ -2363,34 +2363,37 @@
) =%3E tab
-Sources.size === 1
+Count === 1%0A %7D
%0A %7D
@... |
08860698e00843ac8fa1e0c9b50eb4326cf8789e | remove obnoxious text | src/components/Home/index.js | src/components/Home/index.js | import React from 'react';
export default function Home() {
return (
<div>
<p>
HELLO
</p>
<p>
welcome.
</p>
<p>
front end developer, artist, queer, multiracial. I put some things I make here; feel
... | JavaScript | 0.999994 | @@ -369,333 +369,8 @@
/p%3E%0A
- %3Cp%3E%0A all sentences and phrases here begin with lowercase letters unless it begins with a proper%0A noun. %22I%22 and %22I'm%22 are also exceptions.%0A %3C/p%3E%0A %3Cp%3E%0A I apologize for the hash app... |
335ee9efeb290aa14f3dee3a9c8d2bea40c215eb | improve LinkButton | src/components/LinkButton.js | src/components/LinkButton.js | import React, { PropTypes } from 'react'
import _ from 'lodash'
class LinkButton extends React.Component {
constructor (props) {
super(props)
this.state = {
}
this.handleClick = (e) => {
this.context.router.push(this.props.to)
}
}
render () {
let { to, className } = this.props
... | JavaScript | 0 | @@ -258,16 +258,61 @@
%7D%0A %7D%0A%0A
+ focus () %7B%0A this.refs.root.focus()%0A %7D%0A%0A
render
@@ -541,16 +541,35 @@
%3Cbutton%0A
+ ref='root'%0A
@@ -607,43 +607,19 @@
-%7B..._.omit(this.props, %5B'active', '
+className=%7B
clas
@@ -627,11 +627,8 @@
Name
-'%5D)
%7D%0A
@@ -63... |
b6896890ae0c1c8a95477cbefa304ab438c061fb | Disable fetching if there's nothing to fetch | js/infinite-jekyll.js | js/infinite-jekyll.js | $(function() {
var postURLs,
isFetchingPosts = false,
shouldFetchPosts = true,
postsToLoad = $(".posts").children().length,
loadNewPostsThreshold = 3000;
// Load the JSON file containing all URLs
$.getJSON('/all-posts.json', function(data) {
postURLs = data["posts"];
});
//... | JavaScript | 0.000007 | @@ -301,16 +301,181 @@
osts%22%5D;%0A
+ %0A // If there aren't any more posts available to load than already visible, disable fetching%0A if (postURLs.length %3C= postsToLoad)%0A disableFetching();%0A
%7D);%0A%09%0A
|
b2c52e3ecc069bcaa9a92f6f9b86c7e712012b90 | Create example 2 with state and Starting Value in input | src/components/search_bar.js | src/components/search_bar.js | import React, { Component } from 'react';
class SearchBar extends Component{
constructor(props){
super(props);
this.state = { term : ''}; //оголошує обєкт
console.log(this.state);
}
render(){
//this.setState({term: event.target.value})
//те ж саме що, але та... | JavaScript | 0 | @@ -151,16 +151,30 @@
term : '
+Starting Value
'%7D; //%D0%BE%D0%B3
@@ -186,16 +186,16 @@
%D1%94 %D0%BE%D0%B1%D1%94%D0%BA%D1%82%0A
-
@@ -418,173 +418,50 @@
div%3E
-%0A %3Cinput onChange = %7B event =%3E
+%7B
this.s
-etS
tate
-(%7B
+.
term
-: event.target.value%7D)%7D /%3E;%0A ... |
a41fc842e4e25cd4bfc02bb1c51b36cc0f33e7e2 | Fix handlebars adapter asset references | vendor/assets/javascripts/backbone.js | vendor/assets/javascripts/backbone.js | //= require jquery
//= require handlebars.runtime
//= require underscore/underscore
//= require backbone/backbone
//= require backbone/backbone.handlebars.adapter
//= require marionette/backbone.babysitter
//= require marionette/backbone.radio
//= require marionette/backbone.marionette
//= require marionette/backbone.r... | JavaScript | 0 | @@ -111,57 +111,8 @@
one%0A
-//= require backbone/backbone.handlebars.adapter%0A
//=
@@ -273,24 +273,75 @@
dio.adapter%0A
+//= require marionette/backbone.handlebars.adapter%0A
//= require_
|
71f4bd4966412d07b7377b1021efb9d60096f406 | Replace function expression | lib/node_modules/@stdlib/math/base/random/box-muller/lib/_randn.js | lib/node_modules/@stdlib/math/base/random/box-muller/lib/_randn.js | 'use strict';
// MODULES //
var sqrt = require( '@stdlib/math/base/special/sqrt' );
var ln = require( '@stdlib/math/base/special/ln' );
var sin = require( '@stdlib/math/base/special/sin' );
var cos = require( '@stdlib/math/base/special/cos' );
var TWO_PI = require( '@stdlib/math/constants/float64-two-pi' );
// MAIN... | JavaScript | 0.998318 | @@ -578,21 +578,20 @@
unction
+w
ra
-ndn
+p
( rand )
@@ -735,16 +735,32 @@
true;%0A%0A
+%09return randn;%0A%0A
%09/**%0A%09*
@@ -941,23 +941,16 @@
r%3E%0A%09*/%0A%09
-return
function
@@ -1404,17 +1404,16 @@
rn r;%0A%09%7D
-;
// end
@@ -1447,21 +1447,20 @@
UNCTION
+w
ra
-ndn
+p
()%0A%0A%0A//
@@ -1488... |
ee2a53f185f82ab3a5c660022a9ece3df9bfe5b9 | remove test highlight conditions in browser settings (#369) | src/sites/iva/conf/opencga-variant-browser.settings.js | src/sites/iva/conf/opencga-variant-browser.settings.js | const OPENCGA_VARIANT_BROWSER_SETTINGS = {
menu: {
// merge criterium: internal sections and filters are used to hydrates the external filters list for each section (which is a list of string). Sections and filter order is respected.
sections: [
{
title: "Study and Cohort... | JavaScript | 0 | @@ -2228,16 +2228,71 @@
%0A
+ // Highlight conditions for Variant Browser%0A //
highlig
@@ -2297,32 +2297,35 @@
ights: %5B%0A
+ //
%7B%0A
@@ -2314,32 +2314,35 @@
// %7B%0A
+ //
id: %22hi
@@ -2351,32 +2351,35 @@
light1%22,%0A
+ //
name: %22
... |
82d96273990ed36d8d50aec456bf1e12122e4b16 | Use string utility | lib/node_modules/@stdlib/string/starts-with/benchmark/benchmark.js | lib/node_modules/@stdlib/string/starts-with/benchmark/benchmark.js | 'use strict';
// MODULES //
var bench = require( '@stdlib/bench' );
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var startsWith = require( './../lib' );
// MAIN //
bench( pkg, function benchmark( b ) {
var bool;
var str;
var i;
str = 'To be... | JavaScript | 0.000028 | @@ -131,16 +131,81 @@
mitive;%0A
+var fromCodePoint = require( '@stdlib/string/from-code-point' );%0A
var pkg
@@ -499,27 +499,21 @@
tr,
-String.fromCharCode
+fromCodePoint
( i%25
|
cfb10f162dd3b6cf9a5ad33502f78070220bdf34 | add htdocsDir setting | node_modules/bh/lib/context.js | node_modules/bh/lib/context.js | function Context() {
return this;
}
Context.prototype.handle = function(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}
module.exports = Context;
// vim:set ts=8 sts=4 sw=4 tw=0 et:
| JavaScript | 0 | @@ -11,24 +11,58 @@
ontext() %7B%0D%0A
+ this.htdocsDir = './htdocs';%0D%0A
return t
|
64078024cb2b9e4e6bb513477ed6072b0192f4ca | Add unit test to snapshot index route | api/tests/unit/application/snapshots/index_test.js | api/tests/unit/application/snapshots/index_test.js | JavaScript | 0.000001 | @@ -0,0 +1,917 @@
+const %7B describe, it, before, after, beforeEach, expect, sinon %7D = require('../../../test-helper');%0Aconst Hapi = require('hapi');%0A%0Aconst snapshotController = require('../../../../lib/application/snapshots/snapshot-controller');%0A%0Adescribe('Unit %7C Router %7C snapshot-router', () =%3E %7... | |
54bf96eda2c949af2f6e1b6d37f250091745185b | fix adding of days | app/controllers/delayed_musters/delayed_musters.js | app/controllers/delayed_musters/delayed_musters.js | 'use strict';
const Queries = require('../../helpers/queries');
exports.show = {
description: 'Delayed musters tables',
auth: {
mode: 'optional'
},
plugins: {
'hapi-auth-cookie': {
redirectTo: false // '/login' if set redirects to ./login.
}
},
handler: func... | JavaScript | 0.000766 | @@ -936,107 +936,8 @@
()%0A%0A
- const tomorrow = new Date()%0A tomorrow.setDate(today.getDate() + 1)%0A%0A
@@ -1100,75 +1100,25 @@
8 =
-new Date()%0A date_t8.setDate(end_date.getDate() +
+addDays(end_date,
8)%0A
@@ -1374,83 +1374,25 @@
2 =
-new Date()%0A ... |
2ee6a6a22b18568cb437cb48d106115dbaac644d | use id on the tag if there | app/frontend/app/controllers/modals/program-nfc.js | app/frontend/app/controllers/modals/program-nfc.js | import modal from '../../utils/modal';
import { later as runLater } from '@ember/runloop';
import capabilities from '../../utils/capabilities';
import CoughDrop from '../../app';
export default modal.ModalController.extend({
opening: function() {
// check if NFC is available
// if so, check if it's programma... | JavaScript | 0.000001 | @@ -3332,32 +3332,261 @@
del.listen')) %7B%0A
+ var tag_id = JSON.stringify(tag.id);%0A if(tag.uri) %7B%0A var tag_uri_id = (tag.uri.match(/%5Ecough:%5C/%5C/tag%5C/(%5B%5E%5C/%5D+)$/) %7C%7C %5B%5D)%5B1%5D;%0A if(tag_uri_id) %7B tag_id = tag_uri_id; %7D%0A %7D... |
1a9abe535d12e8d975e0b2548aa2978c1f76ec90 | delete unused property | src/directives/directives.js | src/directives/directives.js | /**
* @file rewrite指令
* @author zdying
*/
var fs = require('fs');
var path = require('path');
var setHeader = require('./setHeader');
module.exports = {
// proxy request config
'proxy_set_header': function (key, value) {
log.debug('proxy_set_header -', key, value);
var headers = this.request.headers;
... | JavaScript | 0.000001 | @@ -3512,47 +3512,8 @@
) %7B%0A
- this.response.customStatus = true;%0A
|
f01212d6928a75817d07a5e930643cc6eec03d89 | Fix user notification settings fetch | app/routes/users/UserSettingsNotificationsRoute.js | app/routes/users/UserSettingsNotificationsRoute.js | // @flow
import { compose } from 'redux';
import { connect } from 'react-redux';
import { dispatched } from '@webkom/react-prepare';
import UserSettingsNotifications from './components/UserSettingsNotifications';
import {
fetchNotificationAlternatives,
fetchNotificationSettings,
updateNotificationSetting
} from... | JavaScript | 0.000001 | @@ -916,16 +916,60 @@
loadData
+, %7B%0A componentWillReceiveProps: false%0A %7D
),%0A con
|
5fdfc80f24d31de16f075c1048e729062e99d017 | Use foam.LIB and be a bit lazier. | src/foam/core/AxiomCloner.js | src/foam/core/AxiomCloner.js | /**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.core',
name: 'AxiomCloner',
documentation: 'An axiom that clones an axiom from another model.',
properties: [
{
class: 'Class',
name: 'from'
... | JavaScript | 0 | @@ -891,133 +891,67 @@
oam.
-SCRIPT(%7B%0A package: 'foam.core',%0A name: 'AxiomClonerConvenienceMethod',%0A code: function() %7B%0A foam.axiomCloner = function
+LIB(%7B%0A name: 'foam',%0A methods: %5B%0A function axiomCloner
(fro
@@ -983,16 +983,34 @@
return
+%7B%0A class: '
foam.cor
@@ -1026,... |
27668cd573cb675d1627056ac3ab61685407874e | Set tableColumns for Group. | src/foam/nanos/auth/Group.js | src/foam/nanos/auth/Group.js | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.auth',
name: 'Group',
implements: [
'foam.nanos.auth.EnabledAware'
],
documentation: 'A Group of Users.',
properties: [
{
class: 'Str... | JavaScript | 0 | @@ -274,16 +274,58 @@
ers.',%0A%0A
+ tableColumns: %5B 'id', 'description' %5D,%0A%0A
proper
@@ -948,18 +948,16 @@
*/%0A %5D,%0A
-
%0A metho
|
6403f7e508a73ee7c2ca9ba5cb080db63ec17986 | Use getUser() helper | src/game-logic/utils/disk.js | src/game-logic/utils/disk.js | import TrackedData from './tracked-data';
export default class Disk extends TrackedData {
constructor(position = 0) {
super({
position: position,
user: '',
lastUser: '',
targetSpeed: 0,
// Used for auto-moveTo (shuffle, lock). false if no auto position is set
// Note: false ... | JavaScript | 0.000003 | @@ -1038,23 +1038,21 @@
this.get
-('user'
+User(
) !== ''
|
d96478c6960c4bbc5511bbb1b58dafc256fa21d3 | fix #749 enable VisualFocusTest in IE8 | test/aria/templates/visualFocus/VisualFocusTestCase.js | test/aria/templates/visualFocus/VisualFocusTestCase.js | /*
* Copyright 2013 Amadeus s.a.s.
* 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 i... | JavaScript | 0 | @@ -4950,63 +4950,9 @@
isIE
-6 %7C%7C aria.core.Browser.isIE7 %7C%7C aria.core.Browser.isIE8
+7
)%0A
@@ -6211,8 +6211,9 @@
%7D%0A%7D);
+%0A
|
d48642acf5856b5ab7c1342516496155b57d668c | test was failing in travis because of show ACL for 3rd link. 4 show in not travis environment, 3 in travis environment | test/e2e/specs/all-features/navbar/base-config.spec.js | test/e2e/specs/all-features/navbar/base-config.spec.js | var chaisePage = require('../../../utils/chaise.page.js');
describe('Navbar ', function() {
var navbar, menu, chaiseConfig, EC = protractor.ExpectedConditions;
beforeAll(function () {
browser.ignoreSynchronization=true;
browser.get(browser.params.url + "/recordset/#" + browser.params.catalogId... | JavaScript | 0.000369 | @@ -2406,32 +2406,187 @@
, function () %7B%0A
+ // in travis we don't have the same globus groups so the %22show%22 ACL hides the 3rd link (%22Records%22)%0A var idx = (!process.env.TRAVIS ? 3 : 2)%0A
// optio
|
dfa02a7cf34f54e25d698cea83d33904a16753de | Remove stray console.log | architecture-examples/backbone/js/views/appView.js | architecture-examples/backbone/js/views/appView.js | $(function( $ ) {
'use strict';
// The Application
// ---------------
// Our overall **AppView** is the top-level piece of UI.
window.app.AppView = Backbone.View.extend({
// Instead of generating a new element, bind to the existing skeleton of
// the App already present in the HTML.
el: $("#todoapp"),
... | JavaScript | 0.000002 | @@ -2277,58 +2277,8 @@
%7B%0A%0A
-%09%09%09console.log('addall', window.app.TodoFilter);%0A%0A
%09%09%09t
|
ed4304ac79b3e7bcc6608f60d6490ea7e31c9ac4 | FIX Linter errors | test/unit/client/client-information-management-test.js | test/unit/client/client-information-management-test.js | /*
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of iotagent-lwm2m-lib
*
* iotagent-lwm2m-lib 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, either version ... | JavaScript | 0 | @@ -2149,13 +2149,8 @@
ribe
-.only
('Wh
@@ -5435,16 +5435,17 @@
%7D)
+;
%0A
|
383fbd50e06780c46d1e0be1c993c9cd0f4ca380 | Use actual id attribute for pageElementId | assets/src/components/editor-carousel/reorderer.js | assets/src/components/editor-carousel/reorderer.js | /**
* WordPress dependencies
*/
import { Fragment } from '@wordpress/element';
import { withState } from '@wordpress/compose';
import { Draggable, DropZoneProvider, DropZone } from '@wordpress/components';
/**
* Internal dependencies
*/
import BlockPreview from './block-preview';
const Reorderer = ( { pages, drag... | JavaScript | 0.000001 | @@ -200,16 +200,54 @@
onents';
+%0Aimport %7B __ %7D from '@wordpress/i18n';
%0A%0A/**%0A *
@@ -612,16 +612,24 @@
ntId = %60
+reorder-
page-$%7B
@@ -816,31 +816,38 @@
%09%09key=%7B
+%60
page
-Elem
+-$%7B cli
entId %7D
+%60 %7D
%0A%09%09%09%09%09%09%09
@@ -1323,16 +1323,75 @@
ropZone%0A
+%09%09%09%09%09%09%09... |
5145f75bf6aa698178e2a0728752b3c8f09c140b | remove null coalescing operator (#2069) | src/instanceMethods/close.js | src/instanceMethods/close.js | import { undoScrollbar } from '../utils/scrollbarFix.js'
import { undoIOSfix } from '../utils/iosFix.js'
import { undoIEfix } from '../utils/ieFix.js'
import { unsetAriaHidden } from '../utils/aria.js'
import * as dom from '../utils/dom/index.js'
import { swalClasses } from '../utils/classes.js'
import globalState, { r... | JavaScript | 0 | @@ -3009,34 +3009,34 @@
ainer, didClose
-??
+%7C%7C
onAfterClose)%0A
@@ -3160,10 +3160,10 @@
ose
-??
+%7C%7C
onA
|
f99c3ad3b3072a4f64f261e79fc048ecc8260bf0 | Use internal logger instead of console.error | src/instrumentation/trace.js | src/instrumentation/trace.js | var Promise = require('es6-promise').Promise
var logger = require('../lib/logger')
var frames = require('../exceptions/frames')
var traceCache = require('./traceCache')
var Trace = module.exports = function (transaction, signature, type) {
this.transaction = transaction
this.signature = signature
this.type = typ... | JavaScript | 0.000004 | @@ -1272,38 +1272,49 @@
-console.error('Trying to call
+logger.log('%25c -- opbeat.instrumentation.
trac
@@ -1327,22 +1327,23 @@
tion
-() on
+.error.
un-ended
Tra
@@ -1342,16 +1342,62 @@
nded
- T
+.t
race!'
+, 'color: #ff0000', this.signature, this._diff
)%0A
@@ -1555,30 +1555,42 @@
ger.
-error('Tryi... |
305df1f9ca96807285f1c1b47a4545c9c1e9e7f8 | Allow IndexHistory legend position to be set | src/js/components/History.js | src/js/components/History.js | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import Chart from 'grommet/components/Chart';
export default class IndexHistory extends Component {
constructor (props) {
super(props);
this.state = this._stateFromProps(props);
}
... | JavaScript | 0 | @@ -1473,27 +1473,25 @@
nd=%7B
-%7Bposition: 'after'%7D
+this.props.legend
%7D%0A
@@ -1887,16 +1887,129 @@
string,%0A
+ legend: PropTypes.shape(%7B%0A position: PropTypes.oneOf(%5B'overlay', 'after'%5D),%0A total: PropTypes.bool%0A %7D),%0A
name:
@@ -2640,8 +2640,72 @@
e'%5D)%0A%7D;%0A
+%0AIndexHistor... |
612ff20df168c667bd0cc1c5d8cac313333e762a | set backup done flag if wallet is created from a specified phrase | src/js/controllers/create.js | src/js/controllers/create.js | 'use strict';
angular.module('copayApp.controllers').controller('createController',
function($scope, $rootScope, $timeout, $log, lodash, go, profileService, configService, gettext, ledger, trezor, platformInfo, derivationPathHelper, ongoingProcess) {
var isChromeApp = platformInfo.isChromeApp;
var isCordova... | JavaScript | 0.000004 | @@ -5146,32 +5146,193 @@
rn;%0A %7D%0A
+ if (self.seedSourceId == 'set') %7B%0A $timeout(function() %7B%0A $rootScope.$emit('Local/BackupDone');%0A %7D, 1);%0A %7D%0A
go.wal
|
1eeb869714fe5412a5fe5a8f2d0a53693067fe0e | Use Sentry/Raven context to include user info | troposphere/static/js/components/SplashScreen.react.js | troposphere/static/js/components/SplashScreen.react.js | import $ from "jquery";
import React from "react";
import ReactDOM from "react-dom";
import context from "context";
import stores from "stores";
import Router from "../Router";
import routes from "../AppRoutes.react";
export default React.createClass({
displayName: "SplashScreen",
//
// Mounting & State
... | JavaScript | 0 | @@ -212,16 +212,47 @@
eact%22;%0A%0A
+import Raven from %22raven-js%22;%0A%0A
export d
@@ -1845,16 +1845,332 @@
%7D%0A%0A
+ if (Raven && Raven.isSetup())%7B%0A Raven.setUserContext(%7B%0A id: profile.get(%22user%22),%0A name: profile.get(%22usernam... |
d09c3e12cb680e25010acb8d09e69a97ad5649d5 | Fix allowed strings | src/languages/applescript.js | src/languages/applescript.js | /*
Language: AppleScript
Authors: Nathan Grigg <nathan@nathanamy.org>
Dr. Drang <drdrang@gmail.com>
*/
function(hljs) {
var STRINGS = [
hljs.APOS_STRING_MODE,
hljs.QUOTE_STRING_MODE
];
var TITLE = {
className: 'title', begin: hljs.UNDERSCORE_IDENT_RE
};
var PARAMS = {
className: 'par... | JavaScript | 0 | @@ -154,30 +154,16 @@
ljs.
-APOS_STRING_MODE,%0A
+inherit(
hljs
@@ -180,16 +180,32 @@
ING_MODE
+, %7Billegal: ''%7D)
%0A %5D;%0A
@@ -1272,69 +1272,8 @@
: %5B%0A
- hljs.inherit(hljs.QUOTE_STRING_MODE, %7Billegal: ''%7D),%0A
@@ -1985,16 +1985,32 @@
%0A %5D
+.concat(STRINGS)
%0A %7D%0A
|
641c67da264466fbe2013edf091c6701c53b127b | fix get element message through class | client/js/app/controllers/NegotiationController.js | client/js/app/controllers/NegotiationController.js | class NegotiationController {
constructor() {
const $ = document.querySelector.bind(document);
// avoid traversing the DOM many times
this._amount = $('#amount')
this._date = $('#date')
this._value = $('#value')
this._negotiationsList = new NegotiationList();
this._negotiatioView = new ... | JavaScript | 0.000001 | @@ -407,18 +407,20 @@
ageView(
-'#
+$('.
message'
@@ -420,16 +420,17 @@
essage')
+)
;%0A %7D%0A%0A
|
3c9e3c2f67f8223f6252d33de62906cd289f9f56 | Make eslint happy | client/tests/end2end/protractor-coverage.config.js | client/tests/end2end/protractor-coverage.config.js | var fs = require('fs');
var specs = JSON.parse(fs.readFileSync('tests/end2end/specs.json'));
var tmp = [];
for (var i=0; i<specs.length; i++) {
tmp.push('tests/end2end/' + specs[i]);
}
specs = tmp;
console.log(specs);
var q = require("q");
var FirefoxProfile = require("firefox-profile");
var makeFirefoxProfile =... | JavaScript | 0.000034 | @@ -200,29 +200,8 @@
p;%0A%0A
-console.log(specs);%0A%0A
var
|
93db013f447ea4fb3655ec2b0c06902ab2d582af | define variables with const | src/post/postsReducers.js | src/post/postsReducers.js | import * as feedTypes from '../feed/feedActions';
import * as bookmarksActions from '../bookmarks/bookmarksActions';
import * as postsActions from './postActions';
const postItem = (state = {}, action) => {
switch (action.type) {
case postsActions.LIKE_POST_START:
let optimisticActiveVotes = [];
let ... | JavaScript | 0.000006 | @@ -275,80 +275,13 @@
-let optimisticActiveVotes = %5B%5D;%0A let optimisticNetVotes = 0;%0A%0A
+const
opt
@@ -494,16 +494,22 @@
;%0A
+const
optimist
|
d943891ae0ba6ecd42626e5210634b591dbcc61f | handle porn | extension/httpd/app.js | extension/httpd/app.js | 'use strict';
const express = require('express');
const https = require('https');
const forge = require('node-forge');
const port = 8000;
const httpsPort = 443;
const app = express();
const enableHttps = false;
const enableRedis = false;
/*
if (enableRedis) {
const promise = require('bluebird');
const redis = re... | JavaScript | 0 | @@ -112,16 +112,88 @@
forge');
+%0Aconst qs = require('querystring');%0Aconst intel = require('./intel.js');
%0A%0Aconst
@@ -201,18 +201,16 @@
ort = 80
-00
;%0Aconst
@@ -655,91 +655,8 @@
);%0A%0A
-function isMalware(dn) %7B%0A return true;%0A%7D%0A%0Afunction isPorn(dn) %7B%0A return true;%0A%7D%0A%0A
let
@@... |
1aec000ce35ca8d5f1becc4c9f7f25438d2ea857 | Switch from for-in to forEach in WADO-RS loadImage because it was iterating over other Array properties | src/imageLoader/wadors/loadImage.js | src/imageLoader/wadors/loadImage.js | import metaDataManager from './metaDataManager.js';
import getPixelData from './getPixelData.js';
import createImage from '../createImage.js';
/**
* Helper method to extract the transfer-syntax from the response of the server.
* @param {string} contentType The value of the content-type header as returned by the WADO... | JavaScript | 0 | @@ -700,103 +700,41 @@
-for (const parameterIndex in parameters) %7B%0A const parameter = parameters%5BparameterIndex%5D;%0A
+parameters.forEach(parameter =%3E %7B
%0A
@@ -883,16 +883,14 @@
-continue
+return
;%0A
@@ -1035,21 +1035,23 @@
%7D%0A
-
%7D
+);
%0A %7D%0A%0A
|
c4ec316c36efd2586694ff9e7b1feb6bf8b4a656 | Add documentation. | graphql/database/users/rewardReferringUser.js | graphql/database/users/rewardReferringUser.js |
import UserModel from './UserModel'
import {
USER_REFERRAL_VC_REWARD
} from '../constants'
import {
getPermissionsOverride
} from '../../utils/authorization-helpers'
const rewardReferringUser = async (referringUserId) => {
const permissionsOverride = getPermissionsOverride()
await UserModel.addVc(permissionsO... | JavaScript | 0 | @@ -165,16 +165,216 @@
lpers'%0A%0A
+/**%0A * Reward a referring user by increasing their VC.%0A * @param %7Bstring%7D referringUserId - The ID of the referring user.%0A * @return %7BPromise%3CUser%3E%7D A promise that resolves into a User instance.%0A */%0A
const re
|
e952564d5d1ad46b6e93b52e588cb7f2e4b7b5ca | Update to title filter | tipple-1.0.js | tipple-1.0.js | /**
*
* _||_
* | |
* | |
* | | Tipple
* |~~~~|
* |_--_| =]
*
*
* Tipple is a simple JS templating solution.
*
*
* @author Devin Ivy
* @email devin@bigroomstudios.com
* @website http://devinivy.com
*
* @dependency jQuery 1.7+
* @... | JavaScript | 0 | @@ -2224,17 +2224,16 @@
ace(/%5B%5E-
-'
%5Cs%5D+/g,
|
a124fa4dcd2174a7f877ac341257b029a7ba1df8 | remove unnecessary typeof method | fluff/_design/views/generic/map.js | fluff/_design/views/generic/map.js | function (doc) {
function typeOf(value) {
// from Crockford himself: http://javascript.crockford.com/remedial.html
var s = typeof value;
if (s === 'object') {
if (value) {
if (Object.prototype.toString.call(value) == '[object Array]') {
s = 'ar... | JavaScript | 0.011711 | @@ -14,433 +14,8 @@
) %7B%0A
- function typeOf(value) %7B%0A // from Crockford himself: http://javascript.crockford.com/remedial.html%0A var s = typeof value;%0A if (s === 'object') %7B%0A if (value) %7B%0A if (Object.prototype.toString.call(value) == '%5Bobject Array%... |
d4102ccf676e9dc7b6576b910384f39b5ec549f7 | Add TODOs. | tools/dist.js | tools/dist.js | #!/usr/bin/env node
/*!
* Chameleon
*
* Copyright 2014 ghostwords.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
var moment = require('moment'),
she... | JavaScript | 0 | @@ -559,16 +559,46 @@
ate the
+drag-and-drop installable CRX
package%0A
@@ -701,12 +701,500 @@
m'%0A).code);%0A
+%0A// TODO create the zip for uploading to Chrome Web Store%0A// TODO make this is the %22release%22 task (also tags, ...)%0A// https://developer.chrome.com/extensions/packaging%0A// 1. Rename the priva... |
f2e9dad09b45dc33a1e4ad6e276ca6a574b09936 | Add a guid to drawn annotations | web_client/views/imageViewerWidget/geojs.js | web_client/views/imageViewerWidget/geojs.js | import _ from 'underscore';
import Backbone from 'backbone';
import { staticRoot } from 'girder/rest';
import events from 'girder/events';
import ImageViewerWidget from './base';
import convertAnnotation from '../../annotations/geojs/convert';
var GeojsImageViewerWidget = ImageViewerWidget.extend({
initialize: f... | JavaScript | 0 | @@ -240,16 +240,271 @@
vert';%0A%0A
+function guid() %7B%0A function s4() %7B%0A return Math.floor((1 + Math.random()) * 0x10000)%0A .toString(16)%0A .substring(1);%0A %7D%0A return s4() + s4() + '-' + s4() + '-' + s4() + '-' +%0A s4() + '-' + s4() + s4() + s4();%0A%7D%0A%0... |
83bbe0dae4d33c009959eaece2c304dcca26a780 | load jquery before plugins | webapps/client/scripts/cockpit-bootstrap.js | webapps/client/scripts/cockpit-bootstrap.js | (function(document, window, require) {
'use strict';
var baseUrl = document.getElementsByTagName('base')[0].getAttribute('app-root') +'/';
var APP_NAME = 'cam.cockpit';
baseUrl += 'app/cockpit/';
var pluginPackages = window.PLUGIN_PACKAGES || [];
require({
baseUrl: baseUrl + 'assets/vendor', // f... | JavaScript | 0.000013 | @@ -550,24 +550,40 @@
'ngDefine',%0A
+ 'jquery',%0A
'jquer
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.