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 |
|---|---|---|---|---|---|---|---|
d724b97c06c609befce0cca7d42a7b28d1e91c8b | remove knobbedthemeprovider props table | packages/dropdown/src/__stories__/Dropdown.stories.js | packages/dropdown/src/__stories__/Dropdown.stories.js | import { storiesOf } from "@storybook/react";
import { withInfo } from "@storybook/addon-info";
import infoOptions from "./infoOptions";
import renderStory from "./renderStory";
import stories from "./stories";
const storybook = storiesOf("Forms|Dropdown", module);
stories.forEach(({ description, getProps }) => {
... | JavaScript | 0 | @@ -88,16 +88,117 @@
n-info%22;
+%0Aimport KnobbedThemeProvider from %22@hig/storybook/storybook-support/decorators/KnobbedThemeProvider%22;
%0A%0Aimport
@@ -459,27 +459,93 @@
ithInfo(
-infoOptions
+%7B%0A ...infoOptions,%0A propTablesExclude: %5BKnobbedThemeProvider%5D%0A %7D
)(() =%3E
|
dc2357bc9e088267abfdfee1c38df622440b8325 | remove flexgrow from columns | packages/insights-web/src/scenes/explorer/table/index.js | packages/insights-web/src/scenes/explorer/table/index.js | import React, { Component } from 'react'
import { connect } from 'kea'
import { Table, Column, Cell } from 'fixed-data-table-2'
import 'fixed-data-table-2/dist/fixed-data-table-base.css'
import './styles.scss'
import Dimensions from 'react-dimensions'
import TableCell from './table-cell'
import TableHeader from './... | JavaScript | 0.000002 | @@ -525,17 +525,18 @@
return
-5
+10
0%0A %7D
@@ -607,26 +607,27 @@
return
-75
+150
%0A %7D els
@@ -649,11 +649,11 @@
urn
-175
+350
%0A
@@ -715,10 +715,11 @@
urn
-75
+150
%0A
@@ -733,33 +733,33 @@
%7B%0A return
-1
+2
00%0A %7D%0A %7D els
@@ -769,25 +769,25 @@
%0A return ... |
10ff579f93579a63f73132e415b7235fca167e8d | Move to DMs. | server/routes/codeship.js | server/routes/codeship.js | var express = require('express');
var router = express.Router();
var request = require('request');
router.post('/', function(req, res) {
if (req.query.secret !== process.env.SECRET) {
res.sendStatus(404).end();
} else if (req.body.build.status !== 'testing' && req.body.build.status !== 'success') {
var pay... | JavaScript | 0 | @@ -93,16 +93,160 @@
est');%0A%0A
+var nameMap = %7B%0A alexmingoia: '@alex',%0A bradfordh: '@bradfordh',%0A jessepedler: '@jessepedler',%0A joebalancio: '@joe',%0A jontewks: '@jon'%0A%7D;%0A%0A
router.p
@@ -485,18 +485,41 @@
el:
-'#hackers'
+nameMap%5Breq.body.build.committer%5D
,%0A
@@ -872,18 +872,35 @@
... |
d4ce40d86d9ca15084ad531a0cd7992f49891c45 | Add comments route to examples router | server/routes/examples.js | server/routes/examples.js | 'use strict';
/* global __dirname */
var express = require('express'),
fs = require('fs'),
path = require('path'),
pd = require('pretty-data').pd,
router = express.Router();
var base = path.resolve(__dirname, '../../examples/data');
function docPath(req, addPath, ending) {
return bas... | JavaScript | 0 | @@ -1326,24 +1326,86 @@
ype); %7D;%0A%7D%0A%0A
+function docRoute(route) %7B%0A return '/' + route + '/:doc';%0A%7D%0A%0A
var exampleF
@@ -1444,30 +1444,8 @@
l',%0A
- 'comments': 'json',%0A
't
@@ -1669,116 +1669,992 @@
et(
-'/' + route + '/:doc', get(route, fileType));%0A router.post('/' + route + '/:doc', p... |
a35c99b1b255bccffb520a4457a7f34baa6dc722 | move service name to correct place | ngdoc/services/getPartialNames.js | ngdoc/services/getPartialNames.js | /**
* @dgService getPartialNames
* @description
* Get a list of all the partial code names that can be made from the provided set of parts
* @param {Array} codeNameParts A collection of parts for a code name
* @return {Array} A collection of partial names
*/
module.exports = function() {
return f... | JavaScript | 0.000001 | @@ -298,16 +298,32 @@
function
+ getPartialNames
() %7B%0A r
@@ -336,32 +336,16 @@
function
- getPartialNames
(codeNam
|
fa87791106175cc2c37114609ad66f90ee824291 | Fix fast-slow example | examples/fast-slow-progress.js | examples/fast-slow-progress.js | // Fast-low progress emission, copied from <http://jsfiddle.net/cLtNS/1/> with
// discussion at <https://github.com/kriskowal/q/pull/114#issuecomment-8739693>.
var legendary = require("../");
function fast(){
return new legendary.Promise(function(resolver){
setTimeout(function(){
resolver.progress(1);
... | JavaScript | 0.999989 | @@ -1155,16 +1155,28 @@
%7D).then(
+null, null,
console.
|
d5e8f9cd378952ae3f42d3fa10c48b92732b088e | Update test to make constant naming consistent with other files | node-tests/unit/icon-task-test.js | node-tests/unit/icon-task-test.js | 'use strict';
const expect = require('../helpers/expect');
const IconTask = require('../../src/icon-task');
const fs = require('fs');
const sizeOf = require('image-size');
const parseString = require('xml2js').parseString;
const _find = require('lodash').find;
const DefaultIco... | JavaScript | 0.000002 | @@ -2398,19 +2398,20 @@
t config
-XML
+File
= fs.re
@@ -2496,11 +2496,12 @@
nfig
-XML
+File
, (e
|
b6e927a4ed3ff0c0e959bd1e131276a3a30d7fa2 | add 'watch' to allowed component keys (#1787) | src/renderer/services/plugin-manager/component/validate.js | src/renderer/services/plugin-manager/component/validate.js | import { hooks } from './hooks'
import { PLUGINS } from '@config'
export function validateComponent ({ plugin, component, name, logger }) {
const requiredKeys = ['template']
const allowedKeys = [
'data',
'methods',
'computed',
'components',
'props',
...hooks
]
const missingKeys = []
... | JavaScript | 0 | @@ -217,24 +217,37 @@
'methods',%0A
+ 'watch',%0A
'compute
|
5968b8290bc218ab8a1feb366c98879de45ed9fe | Fix test for checking touch-away behaviour | packages/react-accessible-tooltip/src/Tooltip.test.js | packages/react-accessible-tooltip/src/Tooltip.test.js | // @flow
import classnames from 'classnames';
import toJson from 'enzyme-to-json';
import { mount } from 'enzyme';
import { Simulate } from 'react-dom/test-utils';
import ReactDOM from 'react-dom';
// $FlowFixMe
import React16 from 'react-16';
// $FlowFixMe
import React15 from 'react-15';
import { type LabelProps, t... | JavaScript | 0 | @@ -5021,32 +5021,155 @@
-away', () =%3E %7B%0A
+ Simulate.focus(labelRef);%0A expect(overlayRef.getAttribute('aria-hidden')).toEqual('false');%0A
|
7d15f18198446ace82c582cd2289514633969508 | Fix example 3 | examples/exmaple3.js | examples/exmaple3.js | 'use strict'
var { ModelManager, Repo } = require('../lib/index');
var data = {
person: [
{
_id: '63',
name: 'Kevin',
bestFriendId: '89',
workPlaceId: '1',
contact: {
address: '123 Picton Road',
tel: '123 456 789'
},
created: new Date()
},
{
... | JavaScript | 0.999992 | @@ -3011,800 +3011,8 @@
);%0A%0A
-modelManager%0A.init()%0A.then(function()%7B%0A console.log('** Connected **');%0A%7D).then(function()%7B%0A return personRepo.deleteMany();%0A%7D).then(function()%7B%0A return workPlaceRepo.deleteMany();%0A%7D).then(function()%7B%0A return personRepo.insertMany(data.person);%0A%7... |
ef639a9b0ee0fcdb48b6f0242e7ce6f5ab69cf43 | update user info | data/SiteConfig.js | data/SiteConfig.js | const config = {
siteTitle: "Thada W.", // Site title.
siteTitleShort: "Thada W", // Short site title for homescreen (PWA). Preferably should be under 12 characters to prevent truncation.
siteTitleAlt: "Thada W.", // Alternative site title for SEO.
siteLogo: "/logos/android-chrome-512x512.png", // Logo used for... | JavaScript | 0 | @@ -1425,26 +1425,25 @@
Email: %22
-mildronize
+thada.wth
@gmail.c
@@ -2501,26 +2501,25 @@
%22mailto:
-mildronize
+thada.wth
@gmail.c
@@ -2768,16 +2768,23 @@
https://
+thadaw.
medium.c
@@ -2790,19 +2790,8 @@
com/
-@mildronize
%22,%0A
|
19b974942aba017e42caaec6ae1df6b5fe6596bb | Fix size in example | Sources/Rendering/Misc/RenderWindowWithControlBar/example/index.js | Sources/Rendering/Misc/RenderWindowWithControlBar/example/index.js | import vtkRenderWindowWithControlBar from 'vtk.js/Sources/Rendering/Misc/RenderWindowWithControlBar';
import vtkSlider from 'vtk.js/Sources/Interaction/UI/Slider';
import vtkCornerAnnotation from 'vtk.js/Sources/Interaction/UI/CornerAnnotation';
import vtkActor from 'vtk.js/Sources/R... | JavaScript | 0 | @@ -723,16 +723,17 @@
500px';%0A
+%0A
body.app
@@ -752,24 +752,49 @@
tContainer);
+%0Abody.style.margin = '0';
%0A%0A// Create
|
06ccc096936daf3f597d42428a1c1bb6ad303409 | Fix navbar highlighting | src/encoded/static/modules/navbar.js | src/encoded/static/modules/navbar.js | define(['exports', 'jquery', 'underscore', 'navigator', 'app', 'base',
'text!templates/navbar.html'],
function navbar(exports, $, _, navigator, app, base, navbar_template) {
// The top navbar
exports.NavBarView = base.View.extend({
template: _.template(navbar_template),
initialize: functio... | JavaScript | 0 | @@ -1096,62 +1096,209 @@
-this.current_route = evt.substring(evt.indexOf(':')+1)
+var route_parts = evt.split(':');%0A // Only render on the main route not the overlay route.%0A if (route_parts%5B0%5D !== 'route') return;%0A this.current_route = route_parts%5B1%5D
;%0A
|
c72a230b1fd924be9af9f10d2c598ea2c3792e61 | fix bug 权限显示不全问题 | flask_perm/static/admin.js | flask_perm/static/admin.js | // declare a new module called 'myApp', and make it require the `ng-admin` module as a dependency
var PermAdmin = angular.module('PermAdmin', ['ng-admin']);
// declare a function to run when the module bootstraps (during the 'config' phase)
PermAdmin.config(['NgAdminConfigurationProvider', function (nga) {
// create ... | JavaScript | 0 | @@ -581,32 +581,93 @@
'permissions');%0A
+ var all_permission = nga.entity('permissions?limit=1000');%0A
var user = nga
@@ -1486,32 +1486,195 @@
field('title'))%0A
+ .label('Permission'),%0A all_permission: nga.field('permission_id', 'reference')%0A .targetEntity(all_permission)%0A .targetField(... |
0459e12dc45ff9c24b03f92df8bef0d9631a654c | modify rich text link handler to open URLs via the bounce app | www/pad/links.js | www/pad/links.js | define([
'jquery',
'/common/hyperscript.js',
'/common/common-ui-elements.js',
'/customize/messages.js'
], function ($, h, UIElements, Messages) {
var onLinkClicked = function (e, inner, openLinkSetting) {
var $target = $(e.target);
if (!$target.is('a')) {
$target = $targ... | JavaScript | 0 | @@ -749,80 +749,124 @@
-if(openLinkSetting) %7B%0A window.open(href, '_blank', 'noreferrer'
+var open = function () %7B%0A var bounceHref = window.location.origin + '/bounce/#' + encodeURIComponent(href
);%0A
@@ -870,39 +870,113 @@
;%0A
+
-return;%0A
+window.open(bounceHr... |
2b13863680378bc4e7908c42efef68b60a80e712 | Fix Node version check (#12382) | packages/babel-cli/src/babel/util.js | packages/babel-cli/src/babel/util.js | // @flow
import readdirRecursive from "fs-readdir-recursive";
import * as babel from "@babel/core";
import path from "path";
import fs from "fs";
export function chmod(src: string, dest: string): void {
fs.chmodSync(dest, fs.statSync(src).mode);
}
type ReaddirFilter = (filename: string) => boolean;
export functio... | JavaScript | 0.000059 | @@ -2723,16 +2723,22 @@
.version
+s.node
) %3E= 8%0A
|
ee4803d8744d593df07a7c85b8ddd28860d9aae7 | use local time | frontend/src/components/guild_config_edit.js | frontend/src/components/guild_config_edit.js | import React, { Component } from 'react';
import AceEditor, { diff as DiffEditor } from 'react-ace';
import { globalState } from '../state';
import { NavLink } from 'react-router-dom';
import moment from 'moment';
import 'brace/mode/yaml'
import 'brace/theme/monokai'
class ConfigHistory extends Component {
render()... | JavaScript | 0.000003 | @@ -821,16 +821,25 @@
%7Bmoment(
+new Date(
change.c
@@ -845,18 +845,48 @@
created_
-a
t
+imestamp*1000).toLocaleString()
).fromNo
|
fba887dc8aa220bbea8737354446eb469b4178ee | Remove on-finished module | rco_design/lib/autoload/hooks/server_bin/static.js | rco_design/lib/autoload/hooks/server_bin/static.js | // Static file handler. Serves all of the files from `public/root` directory
// under the main application root path.
'use strict';
const path = require('path');
const send = require('send');
const Promise = require('bluebird');
const onFinished = require('on-finished');
module.exports = functio... | JavaScript | 0.000001 | @@ -208,23 +208,23 @@
;%0Aconst
-Promise
+stream
= r
@@ -235,60 +235,14 @@
re('
-bluebird');%0Aconst onFinished = require('on-finished
+stream
');%0A
@@ -1151,11 +1151,16 @@
-onF
+stream.f
inis
|
0af5200f7bc5ddd9676ddf1abbaf253e7ce84e69 | Update resolve function | lib/plugins/pseudo-levels/builder.js | lib/plugins/pseudo-levels/builder.js | var path = require('path'),
SUBLEVEL_NAME = 'blocks',
SYMLINK_EXT = '.symlink';
/**
* Создаёт resolve-функцию псевдоуровней.
*
* Используется для построения уровня-сета с бандлами примеров на основе папок-технологий, представляющих собой
* simple-уровни с бандлами примеров.
*
* Пример:
*
* <block-name>... | JavaScript | 0.000001 | @@ -2937,16 +2937,71 @@
fullname
+,%0A isDirectory: file.isDirectory
%0A
|
6692729103dbcb34b807a6911e2603b11c45f17e | add support for Red vs Blue shortcode | shared/GameTypes.js | shared/GameTypes.js | const GameType = require('./GameType');
const find = require('lodash/find');
const types = {
FFA: new GameType({
name: 'FFA',
shortCode: 'FFA',
requiresTeamSizes: false
}),
CHOSEN: new GameType({
name: 'Chosen',
shortCode: 'c',
requiresTeamSizes: true,
... | JavaScript | 0 | @@ -1137,24 +1137,152 @@
rue%0A %7D),%0A
+ RED_VS_BLUE: new GameType(%7B%0A name: 'Red vs Blue',%0A shortCode: 'RvB',%0A requiresTeamSizes: false%0A %7D),%0A
CUSTOM:
|
4c7f38e03115cf529a90fe509eaa008b06d03c12 | Improve list argument validation | ext/html5/_list-construct.js | ext/html5/_list-construct.js | 'use strict';
var isFunction = require('es5-ext/function/is-function')
, isArrayLike = require('es5-ext/object/is-array-like')
, isPlainObject = require('es5-ext/object/is-plain-object')
, isIterable = require('es6-iterator/is-iterable')
, isObservable = require('observable-value/is-observable')
... | JavaScript | 0.000003 | @@ -1485,47 +1485,168 @@
t))
-return elExtend.apply(this, arguments);
+%7B%0A%09%09%09if (typeof renderItem.toDOM !== 'function') return elExtend.apply(this, arguments);%0A%09%09%09throw new TypeError(list + %22 is not an array-like or iterable%22);%0A%09%09%7D
%0A%09%09i
|
cdb94f8e49bd36e6aad2e493599e5b2fbd81498b | Set ariaLabel in TextSearchView. | src/foam/u2/search/TextSearchView.js | src/foam/u2/search/TextSearchView.js | /**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0 | @@ -2452,16 +2452,51 @@
label$,%0A
+ ariaLabel$: this.label$,%0A
@@ -3249,24 +3249,16 @@
%7D%0A
-
%0A
|
ab913884bdf434d0e30ae3512d5f113e2c98aea7 | Make background images behave like legacy plugin | src/widget/widget.js | src/widget/widget.js | import buildfire from 'buildfire';
const Layouts = {
1: 'WideScreen',
2: 'Cinema'
}
const defaultData = {
content: {
text :
'<p>The WYSIWYG (which stands for What You See Is What You Get) allows you to do some really cool stuff. You can add images like this</p>\
<p><img src="https://static.pexel... | JavaScript | 0.000001 | @@ -2608,49 +2608,8 @@
) %7B%0A
- const DPR = window.devicePixelRatio;%0A
@@ -2643,22 +2643,16 @@
te.width
- * DPR
);%0A c
@@ -2691,14 +2691,8 @@
ight
- * DPR
);%0A%0A
@@ -2745,14 +2745,15 @@
.io/
-s/crop
+cdn/n/n
';%0A
@@ -2761,21 +2761,17 @@
const
-cropU
+u
rl = %60$%7B
@@ -2785,254 +2785,135... |
bf87ee3daf0b5533803a2b712059db452244962a | correct unread color class | pkg/interface/link/src/js/components/lib/link-item.js | pkg/interface/link/src/js/components/lib/link-item.js | import React, { Component } from 'react'
import moment from 'moment';
import { Sigil } from '/components/lib/icons/sigil';
import { Route, Link } from 'react-router-dom';
import { base64urlEncode } from '../../lib/util';
export class LinkItem extends Component {
constructor(props) {
super(props);
this.state... | JavaScript | 0.000001 | @@ -1518,17 +1518,17 @@
? %22gr
-e
+a
y2%22%0A
|
f77853a865b6acb372f2a317683f3c073ccf0c1e | rename AttributeSelector.operator -> matcher | lib/syntax/node/AttributeSelector.js | lib/syntax/node/AttributeSelector.js | var TYPE = require('../../tokenizer').TYPE;
var IDENTIFIER = TYPE.Identifier;
var STRING = TYPE.String;
var DOLLARSIGN = TYPE.DollarSign;
var ASTERISK = TYPE.Asterisk;
var COLON = TYPE.Colon;
var EQUALSSIGN = TYPE.EqualsSign;
var LEFTSQUAREBRACKET = TYPE.LeftSquareBracket;
var RIGHTSQUAREBRACKET = TYPE.RightSquareBrac... | JavaScript | 0 | @@ -2367,16 +2367,18 @@
ib_match
+er
S* %5B ID
@@ -2416,16 +2416,16 @@
S* '%5D'%0A
-
module.e
@@ -2519,23 +2519,22 @@
-operato
+matche
r: %5BStri
@@ -2727,23 +2727,22 @@
var
-operato
+matche
r = null
@@ -3120,23 +3120,22 @@
-operato
+matche
r = getO
@@ -3839,25 +3839,23 @@
-oper... |
87ea202c4d1c9a32e2b449b4bcb5213c3f2507e7 | use limit | workers/restore_all.js | workers/restore_all.js | const massive = require("massive");
const log = require('log-colors');
const spawn = require('lib/spawn');
const itunes_restorer = require('lib/restorers/itunes');
const s_digital_restorer = require('lib/restorers/7digital');
const DB_HOST = process.env['DB_HOST'];
const DB_PORT = process.env['DB_PORT'];
const DB_USE... | JavaScript | 0.000003 | @@ -449,16 +449,36 @@
items';%0A
+const LIMIT = 4000;%0A
%0A%0Avar co
@@ -1175,16 +1175,31 @@
is null
+ limit $%7BLIMIT%7D
%60);%0A lo
|
ad9a2db80ebcce36f2d0111bb985ececaa96e2cf | Fix deprecated url/name options | lib/ui/src/core/init-provider-api.js | lib/ui/src/core/init-provider-api.js | import pick from 'lodash.pick';
import deprecate from 'util-deprecate';
import { create } from '@storybook/theming';
const deprecatedUiOptions = ['name', 'url'];
const applyDeprecatedUiOptions = deprecate(({ name, url, theme }) => {
const vars = {
brandTitle: name,
brandUrl: url,
};
return { theme: cre... | JavaScript | 0.000066 | @@ -286,16 +286,38 @@
l: url,%0A
+ brandImage: null,%0A
%7D;%0A%0A
|
64bbf66bb4e3a558a93b12dc6cc59dbf697a3856 | fix reset filter | app/assets/javascripts/scripts/core/lib/modules/renderer/filter.js | app/assets/javascripts/scripts/core/lib/modules/renderer/filter.js | /**
* Created with RubyMine.
* User: teamco
* Date: 2/24/15
* Time: 7:31 PM
*/
/**
* Created by i061485 on 7/10/14.
*/
define([], function defineFilterRenderer() {
/**
* Define FilterRenderer
* @class FilterRenderer
* @extends LabelRenderer
* @constructor
*/
var FilterRenderer... | JavaScript | 0.000001 | @@ -3016,24 +3016,64 @@
.parent();%0A%0A
+ $parent.addClass('reset');%0A%0A
@@ -3193,48 +3193,8 @@
%7D%0A%0A
- $parent.addClass('reset');%0A%0A
|
4e4fdfe9eada8fbd65caabe88377d6f502d42e28 | fix potential miscalculation of growth duration | addon/growable.js | addon/growable.js | import Ember from "ember";
import Promise from "liquid-fire/promise";
var capitalize = Ember.String.capitalize;
export default Ember.Mixin.create({
growDuration: 250,
growPixelsPerSecond: 200,
growEasing: 'slide',
transitionMap: Ember.inject.service('liquid-fire-transitions'),
animateGrowth: function(elt, ... | JavaScript | 0.000241 | @@ -1214,17 +1214,16 @@
Second')
-)
%7C%7C this
@@ -1265,16 +1265,17 @@
rSecond)
+)
;%0A %7D%0A%0A%7D
|
d0fba7b81cba53a24658d53b6ec13aa5e2d19e06 | test for abc2 | simple-bot-slack.js | simple-bot-slack.js | /**
* Copyright 2016 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | JavaScript | 0.999999 | @@ -1075,16 +1075,17 @@
%0Avar abc
+2
= %22guil
@@ -1329,16 +1329,126 @@
eply(abc
+2var NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-language-understanding/v1.js');%0A
, messag
|
f3cc37f0dfd500107a94b13c43fe72e93f851f12 | Fix jsdoc. | error-handler.js | error-handler.js | /**
* express-error-handler
*
* A graceful error handler for Express
* applications.
*
* Copyright (C) 2013 Eric Elliott
*
* Written for
* "Programming JavaScript Applications"
* (O'Reilly)
*
* MIT License
**/
'use strict';
var mixIn = require('mout/object/mixIn'),
path = require('path'),
fs = requ... | JavaScript | 0 | @@ -3241,42 +3241,93 @@
ram
+%7Bobject%7D options%0A * @param
%7B
-N
+n
umber%7D
-status Exit status code.
+o.exitStatus%0A * @param %7Bnumber%7D o.timeout
%0A
|
dc09f4b15208b7cd495566730fd0f54e93fc16f7 | use express-favicon-short-circuit | examples/index.js | examples/index.js | /* eslint no-console: "off" */
const express = require('express');
const app = express();
app.use(require('../index')({ path: '/' }));
app.listen(3000, () => {
console.log('listening on http://0.0.0.0:3000');
});
| JavaScript | 0.000213 | @@ -130,16 +130,67 @@
'/' %7D));
+%0Aapp.use(require('express-favicon-short-circuit'));
%0A%0Aapp.li
|
dd3b5cdf1c42144d4971711a3d49978b6348c707 | update paints chainer announcement | app/javascript/mastodon/features/compose/components/announcements.js | app/javascript/mastodon/features/compose/components/announcements.js | import React from 'react';
import Immutable from 'immutable';
import Link from 'react-router-dom/Link';
import IconButton from '../../../components/icon_button';
const storageKey = 'announcements_dismissed';
class Announcements extends React.PureComponent {
componentDidUpdate (prevProps, prevState) {
if (prevS... | JavaScript | 0 | @@ -802,17 +802,17 @@
id: 1
-3
+4
,%0A
@@ -872,15 +872,8 @@
y: %60
-%E3%80%90%E4%BC%81%E7%94%BB%E4%BA%88%E5%91%8A%E3%80%91%0A
Pain
@@ -907,10 +907,9 @@
%E4%BC%81%E7%94%BB%E9%96%8B%E5%82%AC
-%E6%B1%BA%E5%AE%9A
+%E4%B8%AD
%EF%BC%81%60,%0A
@@ -1028,15 +1028,15 @@
es/5
-1259014
+2025880
',%0A
@@ -2378,17 ... |
3bccc8dab5f20e671697ed5499846aa49a258673 | teste frontend | frontend/app/app.config.js | frontend/app/app.config.js | angular.
module('MatWeb').
config(['$locationProvider', '$routeProvider', '$http',
function config($locationProvider, $routeProvider, $http) {
$locationProvider.html5Mode(true).hashPrefix('!');
$http.defaults.headers.common.Authorization = ""
$http.defaults.headers.post = { 'Content-Typ... | JavaScript | 0.000001 | @@ -77,16 +77,24 @@
, '$http
+Provider
',%0A f
@@ -148,16 +148,24 @@
r, $http
+Provider
) %7B%0A
@@ -227,32 +227,40 @@
%0A $http
+Provider
.defaults.header
@@ -298,16 +298,24 @@
$http
+Provider
.default
|
758f6c5d0ab2fce3800968841d3c6ec01341ea89 | Make longlist close when another select2 is clicked on. | www/client/longlist.js | www/client/longlist.js | // layerLists.js
// Manage the layer lists.
var app = app || {};
(function (hex) {
// How many layer results should we display at once?
var SEARCH_PAGE_SIZE = 10,
$search;
function make_browse_ui(layer_name) {
// Returns a jQuery element to represent the layer with the given name in
... | JavaScript | 0 | @@ -4603,138 +4603,8 @@
5);%0A
- %0A // Allow the rest of the UI to remain active%0A $('#select2-drop-mask').css('display', 'none');%0A
|
2becfd026bbbf8eaa09c0c662d922ea1f89bc434 | add proptypes shim for popup | react/features/device-selection/popup.js | react/features/device-selection/popup.js | /* global JitsiMeetJS */
import 'aui-css';
import 'aui-experimental-css';
import DeviceSelectionPopup from './DeviceSelectionPopup';
let deviceSelectionPopup;
window.init = i18next => {
JitsiMeetJS.init({}).then(() => {
deviceSelectionPopup = new DeviceSelectionPopup(i18next);
});
};
window.addEven... | JavaScript | 0 | @@ -69,16 +69,115 @@
-css';%0A%0A
+// FIXME: remove once atlaskit work with React 16.%0Aimport '../base/react/prop-types-polyfill.js';%0A%0A
import D
|
f60c71f790a68f21fd41a04c7e8238693c962d26 | Print all summaries | agolo-slackbot.js | agolo-slackbot.js | var validUrl = require('valid-url');
var RtmClient = require('@slack/client').RtmClient;
var RestClient = require('node-rest-client').Client;
var CLIENT_EVENTS = require('@slack/client').CLIENT_EVENTS;
var RTM_EVENTS = require('@slack/client').RTM_EVENTS;
var TOKEN, AGOLO_URL;
var HEROKU = false;
// Determine which ... | JavaScript | 0.999998 | @@ -1532,26 +1532,109 @@
mary
- && data.summary%5B0
+) %7B%0A%09%09%09for (var summIdx = 0; summIdx %3C data.summary.length; summIdx++) %7B%0A%09%09%09%09if (data.summary%5BsummIdx
%5D.se
@@ -1644,16 +1644,18 @@
nces) %7B%0A
+%09%09
%09%09%09var s
@@ -1678,17 +1678,23 @@
summary%5B
-0
+summIdx
%5D.senten
@@ -1699... |
cda29a3515586eec7128e9441a289c472e73de78 | comment removal | event_handler.js | event_handler.js | const config = require('./userconfig/config.json'); // Import configuration
const moment = require('moment'); // Part of log writing
var timestamp = moment().format('DD/MM/YYYY HH:mm:ss');
module.exports = { // Export event functions
"ready": function ready(selfbot, chalk) { // Once the selfbot is ready (fully booted... | JavaScript | 0 | @@ -48,32 +48,8 @@
n');
- // Import configuration
%0Acon
@@ -82,31 +82,8 @@
t');
- // Part of log writing
%0Avar
@@ -158,34 +158,8 @@
= %7B
- // Export event functions
%0A%09%22r
@@ -201,56 +201,8 @@
k) %7B
- // Once the selfbot is ready (fully booted) ...
%0A%09%09c
@@ -274,43 +274,8 @@
!%60);
- // ...consol... |
c502d5ad22a621c4f44fb2c2ce44ad13cc6c5235 | refactor `addTab` function (tab id now is the same as patch id) and add same reaction for PATCH_DELETE as for TAB_CLOSE. So now when patch is deleted — tab is closed and switched to another one. | packages/xod-client/src/editor/reducer.js | packages/xod-client/src/editor/reducer.js | import R from 'ramda';
import { ENTITY, generateId } from 'xod-core';
import {
EDITOR_DESELECT_ALL,
EDITOR_SELECT_NODE,
EDITOR_SELECT_PIN,
EDITOR_SELECT_LINK,
EDITOR_SET_MODE,
EDITOR_SET_SELECTED_NODETYPE,
EDITOR_SWITCH_PATCH,
TAB_CLOSE,
TAB_SORT,
} from './actionTypes';
import {
PROJECT_CREATE,
... | JavaScript | 0 | @@ -35,20 +35,8 @@
TITY
-, generateId
%7D f
@@ -346,16 +346,32 @@
D_DATA,%0A
+ PATCH_DELETE,%0A
NODE_D
@@ -1020,28 +1020,35 @@
nst
-newId = generateId()
+patchId = action.payload.id
;%0A%0A
@@ -1076,19 +1076,21 @@
'tabs',
-new
+patch
Id%5D, %7B%0A
@@ -1096,19 +1096,21 @@
id:
-new
+patch
Id,%0A ... |
752907c6acacb304b89c6c4dd0d04c89a7d2b910 | add minLayoutPosition option | src/validate.js | src/validate.js | var Joi = require('joi');
var Promise = require('bluebird');
var stepsSchema = require('screener-runner/src/validate').stepsSchema;
var resolutionSchema = require('screener-runner/src/validate').resolutionSchema;
var browsersSchema = require('screener-runner/src/validate').browsersSchema;
var sauceSchema = require('scr... | JavaScript | 0.000001 | @@ -1642,16 +1642,72 @@
oolean()
+,%0A minLayoutPosition: Joi.number().integer().min(0)
%0A %7D),
|
f420d61c2f120643c6a9831ccf054ae2104bdbfe | rework the listeners seeking an abstraction that provides GC | findAnything/findAnything.js | findAnything/findAnything.js | // See license.txt, BSD
// Copyright 2011 Google, Inc. author: johnjbarton@google.com
define(['../lib/domplate/lib/domplate'], function findAnythingFactory(DOMPLATE) {
var anyThingBar = new thePurple.PurplePart('findAnything');
anyThingBar.initialize = function() {
this.buildDomplate();
this.ren... | JavaScript | 0.000008 | @@ -332,35 +332,8 @@
();%0A
- this.addListeners();%0A
@@ -1487,121 +1487,8 @@
%0A
- anyThingBar.addListeners = function () %7B%0A window.addEventListener('resize', this.resize, true);%0A %7D;%0A%0A
@@ -2150,32 +2150,34 @@
h +%22px%22;%0A %7D;%0A
+%0A%0A
%0A // ----
@@ -2255,... |
80934ea23253227d37d7e9b978c79733508258a8 | Fix build. | build/post-compile.js | build/post-compile.js | #!/usr/bin/env node
;(function() {
'use strict';
/** The Node.js filesystem module */
var fs = require('fs');
/** The minimal license/copyright template */
var licenseTemplate = [
'/**',
' * @license',
' * Lo-Dash <%= VERSION %> lodash.com/license',
' * Underscore.js 1.4.4 underscorejs.org/L... | JavaScript | 0.00016 | @@ -1730,17 +1730,20 @@
ce(/
-.
+(.)(
define%5C(
/, f
@@ -1738,16 +1738,17 @@
define%5C(
+)
/, funct
@@ -1756,16 +1756,33 @@
on(match
+, prelude, define
) %7B%0A
@@ -1789,16 +1789,26 @@
return
+ prelude +
(/%5E%5CS/.
@@ -1812,21 +1812,23 @@
S/.test(
-match
+prelude
) ? ' '
@@ -1835,21 +1835,23 @@
: ... |
0b8d192e64d8d3f7343655901d668b7f3f852557 | Fix unknown .getDOMNode() call | fields/types/html/HtmlField.js | fields/types/html/HtmlField.js | import _ from 'lodash';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId () {
return 'keystone-html-' + lastId++;
}
// Workaround for #2834 found here h... | JavaScript | 0.000004 | @@ -1964,16 +1964,21 @@
anged (
+event
) %7B%0A%09%09va
@@ -2061,102 +2061,41 @@
lse
-if (this.refs.editor) %7B%0A%09%09%09content = this.refs.editor.getDOMNode().value;%0A%09%09%7D else %7B%0A%09%09%09return
+%7B%0A%09%09%09content = event.target.value
;%0A%09%09
@@ -4441,21 +4441,8 @@
line
- ref=%22editor%22
... |
5993e26d58c3bc099bdc01b71166fe8814289667 | Delete references field to fix userId and groupId bugs | server/migrations/20170625133452-create-message.js | server/migrations/20170625133452-create-message.js | module.exports = {
up: (queryInterface, Sequelize) => queryInterface.createTable('Messages', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
content: {
type: Sequelize.STRING
},
createdAt: {
allowNull: false,
typ... | JavaScript | 0 | @@ -487,279 +487,87 @@
ADE'
-,%0A references: %7B%0A model: 'Users',%0A key: 'id',%0A as: 'userId',%0A %7D,%0A %7D,%0A groupId: %7B%0A type: Sequelize.INTEGER,%0A onDelete: 'CASCADE',%0A references: %7B%0A model: 'Groups',%0A key: 'id',%0A as: 'g... |
1adbb91db663c28a9c2c8eb49fe6e39b68aaf1f6 | Add google+ sdk library | angular-auth.js | angular-auth.js | /**
* ngAuth 0.0.1
* (c) 2014 Sahat Yalkabov <sahat@me.com>
* License: MIT
*/
// TODO: Enable CORS, separate server from client, Gulp server runner
// TODO: Provider return object, underscore private functions < 10loc
angular.module('ngAuth', [])
.provider('Auth', function() {
var config = this.config = {
... | JavaScript | 0 | @@ -2217,16 +2217,27 @@
//
+ Initialize
Google%0A
@@ -2232,16 +2232,16 @@
Google%0A
-
if
@@ -2274,25 +2274,322 @@
clientId) %7B%0A
+ (function() %7B%0A var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;%0A po.src = 'https://apis.google.... |
8dbd1a78bb163d99b61914979568c11561cc3a84 | support multiple classes | addon/modifiers/css-transition.js | addon/modifiers/css-transition.js | import Modifier from 'ember-modifier';
import { dasherize } from '@ember/string';
import { nextTick, sleep, computeTimeout } from 'ember-css-transitions/utils/transition-utils';
/**
Modifier that applies classes. Usage:
```hbs
<div {{css-transition name="example"}}>
<p>Hello world</p>
</div>
```
@cl... | JavaScript | 0.000001 | @@ -6992,33 +6992,42 @@
..className.
+trim().
split(
-' '
+/%5Cs+/
));%0A %7D%0A%0A /
@@ -7216,17 +7216,26 @@
ame.
+trim().
split(
-' '
+/%5Cs+/
));%0A
|
4bf69722dd337f172af87bb4d344df84f9af0188 | Add the relation names as a property of the repository | foxx_generator/json_api.js | foxx_generator/json_api.js | /*jslint indent: 2, nomen: true, maxlen: 120 */
/*global require */
(function () {
'use strict';
var Foxx = require('org/arangodb/foxx'),
_ = require('underscore'),
ArangoError = require('internal').ArangoError,
JsonApiModel,
JsonApiRepository,
ContainsTransition,
ReplaceOperation,
tran... | JavaScript | 0.000008 | @@ -1154,31 +1154,16 @@
(options
-, relationNames
) %7B%0A
@@ -1269,32 +1269,37 @@
lt, this.graph,
+this.
relationNames);%0A
@@ -1381,31 +1381,16 @@
ion (key
-, relationNames
) %7B%0A
@@ -1451,24 +1451,29 @@
this.graph,
+this.
relationName
@@ -2784,50 +2784,8 @@
es,%0A
- relationNames = to.rel... |
511e90071a8aa10d674e41d717a9390c1a6aa445 | comment / idea | node/provider.notification-mongo.js | node/provider.notification-mongo.js | /*
* Lunchpad Notification provider
*
* @author Markus Riegel <riegel.markius@googlemail.com>
*/
var db = require('./module.dbase.js').dBase,
quando = require('./module.quando.js').quando,
cn = 'notification';
var NotificationProvider = function(){};
/*
* find all
*/
NotificationProvider.prototype.f... | JavaScript | 0 | @@ -2914,32 +2914,286 @@
%09%7D,onError);%0A%7D%0A%0A
+// So.%0A// Zum Eintragen sollten wir eine shortcut fn schreiben,%0A// die uns eine noti f%C3%BCr einen array von usern erstellen l%C3%A4sst.%0A%0A// Der UserProvider muss uns noch die Infos holen, welche User denn%0A// jeweils f%C3%BCr Eintragen der Notification ... |
30013715ab8c00e6a678cb78591e2666e388c9d6 | Add bgeraymovich to emailsMap | getSlackUser.js | getSlackUser.js | // Usage
// author=$(node ./getSlackUser.js)
// or
// author=$(curl –silent -L 'https://raw.githubusercontent.com/debitoor/teamcity-merge/master/getSlackUser.js' | node)
const { execSync } = require('child_process');
const assert = require('assert');
assert(process.env.SLACK_TOKEN, 'process.env.SLACK_TOKEN should be ... | JavaScript | 0.000001 | @@ -954,16 +954,60 @@
sanva',%0A
+%09'bgeraymovich@gmail.com' : 'bgeraymovich',%0A
%7D;%0A%0Acons
|
4d2cb83796b6e42902bf56ee4b270446000ba729 | use JSON parse hack to clone defaults perfectly | extra/gulpfile.js | extra/gulpfile.js | var gulp = require('gulp'),
gutil = require('gulp-util'),
jshint = require('gulp-jshint'),
coverage = require('gulp-jsx-coverage'),
fs = require('fs'),
React = require('react-tools'),
through = require('through2'),
buffer = require('vinyl-buffer'),
source = require('vinyl-source-stream')... | JavaScript | 0 | @@ -1339,12 +1339,15 @@
-skip
+exclude
: /n
@@ -2998,26 +2998,34 @@
g =
-Object.assign(%7B%7D,
+JSON.parse(JSON.stringify(
conf
@@ -3050,16 +3050,17 @@
default)
+)
;%0A%0A c
|
469efc848ad3e052add955c8e0910b40307d7cb2 | Fix last commit. | app/scripts/services/dimEngramFarmingService.factory.js | app/scripts/services/dimEngramFarmingService.factory.js | (function() {
'use strict';
angular.module('dimApp')
.factory('dimEngramFarmingService', EngramFarmingService);
EngramFarmingService.$inject = ['$rootScope', '$q', 'dimBungieService', 'dimItemService', 'dimStoreService', '$interval', 'toaster'];
/**
* A service for "farming" engrams by moving them con... | JavaScript | 0 | @@ -1372,16 +1372,22 @@
tForItem
+(item)
%3E 0;%0A
@@ -1499,21 +1499,30 @@
o(item,
-store
+otherStores%5B0%5D
, false,
@@ -1749,40 +1749,8 @@
) %7B%0A
- // TODO: whoops%0A
|
dee13c9f0f094b883a39bf69bec05c8b38fc3307 | fix build error | extra/gulpfile.js | extra/gulpfile.js | var gulp = require('gulp'),
gutil = require('gulp-util'),
react = require('gulp-react'),
jshint = require('gulp-jshint'),
buffer = require('vinyl-buffer'),
source = require('vinyl-source-stream'),
aliasify = require('aliasify'),
browserify = require('browserify'),
uglify = require('gulp-... | JavaScript | 0.000001 | @@ -2356,16 +2356,62 @@
pp(false
+, false, true)%0A .pipe(source('main.js')
)%0A
|
118f90f0c2e087acd2392abeb3af0d74051b794e | Fix other links on small devices | interfaces/default/js/default.js | interfaces/default/js/default.js | $.ajaxSetup({timeout: 30000})
$(document).ready(function () {
path = window.location.pathname.split('/')
$('#nav-'+path[1]).addClass('active')
$('.carousel').carousel()
$(".table-sortable").tablesorter()
$('.tabs').tab()
$(window).on('hashchange', function() {
if (location.ha... | JavaScript | 0 | @@ -5497,20 +5497,389 @@
, 1000)%0D%0A %7D)%0D%0A%7D%0D%0A
+%0D%0A// Fix for dropdown menu on small devices. Credits https://github.com/twbs/bootstrap/issues/4550#issuecomment-21361314%0D%0A$('.dropdown-toggle').click(function(e) %7B%0D%0A e.preventDefault();%0D%0A setTimeout($.proxy(function() %7B%0D%0A if ('... |
b7422e3cd757e08c06ab5447b8f33348ed5e152b | Fix #155 Making attribute "TEXT" showing in the response. | src/main/javascript/form/SearchES.js | src/main/javascript/form/SearchES.js | /*
Copyright (C) 2014 Härnösands kommun
This program 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 3 of the
License, or (at your option) any later version.
Th... | JavaScript | 0 | @@ -1566,16 +1566,60 @@
perties.
+TEXT' %7D, // Could be AKT=%222281K-NJU-268%22 or
PLANNUMM
@@ -1620,20 +1620,24 @@
ANNUMMER
-' %7D,
+=%22S5086%22
%0A
|
52c546fa95fce78a82173cccbef083bc2a5de40f | Update index.js | example/index.js | example/index.js | import React from 'react';
import Raspi from 'raspi-io';
import { AppRegistry, Board, Led, Button, Container } from 'react-iot';
class App extends React.Component {
state = {
isOn: false
}
takeOff(){
this.setState({ isOn: true })
this.socket.emit('takeoff');
}
land(){
this.setState({ isOn... | JavaScript | 0.000002 | @@ -374,12 +374,11 @@
nent
-Will
+Did
Moun
|
f305fcc8c3fefa9725b7c3cd29cfff794aeef726 | use enum syntax for model parameters | node_modules/oae-search/lib/rest.js | node_modules/oae-search/lib/rest.js | /*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... | JavaScript | 0 | @@ -3985,16 +3985,28 @@
oup
-(
+ %5B
no,yes
-)
+%5D
%0A *
@@ -4327,17 +4327,41 @@
esource
-(
+ %5B
collabdo
@@ -4371,17 +4371,17 @@
ile,link
-)
+%5D
%0A * @Pro
@@ -4446,17 +4446,44 @@
esource
-(
+ %5B
content,
@@ -4498,17 +4498,17 @@
on,group
-)
... |
90256556cc1ef052359cff5040731e93d7819e7a | Migrate AdvisingCourse to function. Add hooks for redux and styling | src/components/AdvisingCourses.js | src/components/AdvisingCourses.js | import React from 'react'
import AdvisingGrade from './AdvisingGrade'
import AdvisingInstructors from './AdvisingInstructors'
import AdvisingMeetings from './AdvisingMeetings'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardContent'
import CardHeader from '@material-ui/core/Car... | JavaScript | 0 | @@ -326,43 +326,8 @@
er'%0A
-import PropTypes from 'prop-types'%0A
impo
@@ -385,23 +385,27 @@
mport %7B
-conn
+useSel
ect
+or
%7D from
@@ -427,20 +427,20 @@
mport %7B
-with
+make
Styles %7D
@@ -459,21 +459,16 @@
rial-ui/
-core/
styles'%0A
@@ -478,17 +478,20 @@
nst
-s
+useS
tyles =
them
@@ -486,16 +486... |
e08ac3119824d681fdbd4fc493f67984ee4ceb5d | fix golden_file_test accept | internal/golden_file_test/bin.js | internal/golden_file_test/bin.js | const fs = require('fs');
const path = require('path');
const unidiff = require('unidiff');
function main(args) {
const [mode, golden_no_debug, golden_debug, actual] = args;
const debug = !!process.env['DEBUG'];
const golden = debug ? golden_debug : golden_no_debug;
const actualContents = fs.readFileSync(requi... | JavaScript | 0.000015 | @@ -52,44 +52,8 @@
h');
-%0Aconst unidiff = require('unidiff');
%0A%0Afu
@@ -699,24 +699,66 @@
-verify') %7B%0A
+ const unidiff = require('unidiff');%0A
// Gen
@@ -862,20 +862,18 @@
;%0A
-cons
+le
t pretty
@@ -938,16 +938,130 @@
tual%7D);%0A
+ if (prettyDiff.length %3E 5000) %7B%0A p... |
870f8435ec27444b86571fe159c82d9e0e780606 | Update comments slightly in UndoStack and add empty fallback options object for when none are supplied. | resources/assets/js/classes/UndoStack.js | resources/assets/js/classes/UndoStack.js | /* global clearTimeout, setTimeout */
export default class UndoStack {
defaultOptions = {
maxSize: 30,
lock: false,
undoGroupingInterval: 400,
onUndoRedo: () => {},
callback: () => {}
};
constructor(opts) {
opts = { ...this.defaultOptions, ...opts };
this.stack = [];
this.index = -1;
this.timer ... | JavaScript | 0 | @@ -212,16 +212,21 @@
tor(opts
+ = %7B%7D
) %7B%0A%09%09op
@@ -1120,16 +1120,17 @@
oing
+,
remove
uppe
@@ -1129,13 +1129,30 @@
ove
-upper
+stack above this index
%0A%09%09%09
@@ -1219,16 +1219,63 @@
ndex);%0A%0A
+%09%09%09// remove oldest item if we surpass maxSize%0A
%09%09%09if(th
|
f70531697976cfe5143be3fce43a4e61118c6969 | Fix search not working | frontend/src/actions/search.js | frontend/src/actions/search.js | import { SEARCH_URL, AUTOCOMPLETE_URL } from 'constants';
import { SHOW_TOOLTIP, HIDE_TOOLTIP, TOGGLE_FOCUS, SEARCH_REQUEST,
SEARCH_SUCCESS, SEARCH_FAILURE, UPDATE_SEARCH_INPUT, SEARCH_APPEND,
AUTOCOMPLETE_REQUEST, AUTOCOMPLETE_SUCCESS, AUTOCOMPLETE_FAILURE } from './actionTypes';
import makeActionCreator from './m... | JavaScript | 0.000004 | @@ -43,16 +43,15 @@
om '
-constant
+setting
s';%0A
@@ -2389,30 +2389,8 @@
r =%3E
- %7B console.log(error);
dis
@@ -2420,11 +2420,8 @@
or))
-; %7D
);%0A%7D
|
77375f54944490373f66b9c1a0f51f4bfc947693 | Update differenceEnginev2.js | javascript/differenceEnginev2.js | javascript/differenceEnginev2.js | // Create the array
var x = new Array(7);
for (var i = 0; i < 7; i++) {
x[i] = new Array(8);
}
// Initalize the Array
for (var i = 0; i < 7; i++) {
for (var j = 0; j < 8; j++) {
x[i][j] = 0;
}
}
// Update the values from the start
function initalUpdateNumbers() {
for (var i = 0; i < 7; i++) {
for (var... | JavaScript | 0 | @@ -2408,16 +2408,21 @@
value =
+5; //
$(%22#num%22
|
0f24291b5be1383d4cf8d106d3aea50e1e70ba8d | Remove obsolete require gl-shader | aoshader.js | aoshader.js | var glslify = require("glslify")
var fs = require("fs")
var createShader = require("gl-shader")
var mat4 = require('gl-matrix').mat4
module.exports = function(game, opts) {
return new ShaderPlugin(game, opts);
};
module.exports.pluginInfo = {
clientOnly: true,
loadAfter: ['voxel-stitch', 'game-shell-fps-camera'... | JavaScript | 0.000129 | @@ -52,48 +52,8 @@
fs%22)
-%0Avar createShader = require(%22gl-shader%22)
%0A%0Ava
|
23d7bce1eab8f6b770ab2c527c23c3c0908ce907 | Return same function if length doesn't differ | function/_define-length.js | function/_define-length.js | 'use strict';
var test = function (a, b) {}, desc, defineProperty
, generate, mixin;
try {
Object.defineProperty(test, 'length', { configurable: true, writable: false,
enumerable: false, value: 1 });
} catch (ignore) {}
if (test.length === 1) {
// ES6
desc = { configurable: true, writable: false, enumerable: ... | JavaScript | 0.999998 | @@ -11,16 +11,58 @@
t';%0A%0Avar
+ toUint = require('../number/to-uint')%0A ,
test =
@@ -102,16 +102,16 @@
roperty%0A
-
, gene
@@ -447,16 +447,82 @@
ngth) %7B%0A
+%09%09length = toUint(length);%0A%09%09if (fn.length === length) return fn;%0A
%09%09desc.v
@@ -993,22 +993,100 @@
ngth) %7B%0A
-
%09%09var
+ta... |
90368be1022f40636546f742362a8f6cb83744d1 | Remove old pages from docs build | docs/src/Root.js | docs/src/Root.js | /** @jsx React.DOM */
'use strict';
var React = require('react');
var Router = require('react-router-component');
var HomePage = require('./HomePage');
var GettingStartedPage = require('./GettingStartedPage');
var ComponentsPage = require('./ComponentsPage');
var NotFoundPage = require('./NotFoundPage');
var Locati... | JavaScript | 0 | @@ -1288,64 +1288,17 @@
'c
-ss.html',%0A 'components.html',%0A 'javascript
+omponents
.htm
|
bba2cfe90230b4b4d8120c61b90ede8cc8febb0a | Use let instead of var | frontend/reducers/index.js | frontend/reducers/index.js | import Shogi from '../src/shogi';
import * as CONST from '../constants/actionTypes';
const InitialState = {
board: Shogi.Board,
isHoldingPiece: undefined
};
const ShogiReducer = (state = InitialState, action) => {
switch (action.type) {
case CONST.HOLD_PIECE:
if (action.piece.type == '*') {
return s... | JavaScript | 0.000001 | @@ -599,11 +599,11 @@
-var
+let
new
|
03285add2a2362d37bf89dbf9951c8274c4fd665 | remove test url | src/components/CropImg/CropImg.js | src/components/CropImg/CropImg.js | import React, {Component} from 'react';
import AvatarCropper from 'react-avatar-cropper';
import FileUpload from './FileUpload';
const styles = require('./CropImg.scss');
export default class CropImg extends Component {
state = {
cropperOpen: false,
img: null,
croppedImg: 'http://www.fillmurray.com/40... | JavaScript | 0.000002 | @@ -289,41 +289,8 @@
g: '
-http://www.fillmurray.com/400/400
'%0A
|
685f34ee21c46ced2625657b6425329ae9512e2b | Remove js.js from jsScripts concat task | grunt/concat.js | grunt/concat.js | module.exports = {
options: {
separator: ' ',
},
jsScripts: {
src: [
'<%= globalConfig.source.js %>/scripts/js.js',
'<%= globalConfig.source.js %>/scripts/**/*.js',
'<%= globalConfig.source.js %>/*.js'
],
dest: '<%= globalConfig.cms.js %>/s... | JavaScript | 0.000011 | @@ -94,67 +94,8 @@
: %5B%0A
- '%3C%25= globalConfig.source.js %25%3E/scripts/js.js',%0A
|
10f98a721cf9ac592ee9ad469f0d0fcca47e3610 | Use current tenant for invoking SSO login | src/components/Login/LoginCtrl.js | src/components/Login/LoginCtrl.js | import React, { Component, PropTypes } from 'react'; // eslint-disable-line
import { connect as reduxConnect } from 'react-redux'; // eslint-disable-line
import { requestLogin, checkUser } from '../../loginServices';
import Login from './Login';
import SSOLogin from '../SSOLogin';
import css from './Login.css';
class... | JavaScript | 0 | @@ -2034,12 +2034,22 @@
ant/
-diku
+$%7Bthis.tenant%7D
/sam
|
3371d13b76b0ac513418dfe30c35bd2c7e09d3e4 | Add releasePiece case for release holding piece. | frontend/reducers/shogi.js | frontend/reducers/shogi.js | import * as CONST from '../constants/actionTypes';
import Shogi from '../src/shogi';
const initialState = {
holdingPiece: undefined,
board: Shogi.Board,
blackPieceStand: [],
whitePieceStand: []
};
export default function shogi(state = initialState, action) {
switch (action.type) {
case CONST.HOLD_PIECE:
... | JavaScript | 0 | @@ -444,32 +444,243 @@
.piece %7D%0A );%0A
+ case CONST.RELEASE_PIECE:%0A if (action.piece.isEmpty()) return state;%0A%0A return Object.assign(%0A %7B%7D,%0A state,%0A %7B board: state.board.cloneBoard().clearAttrs(), holdingPiece: undefined %7D%0A );%0A
case CONST.ENH
|
7fe00d6926114c3614059558a872b3b26e5846eb | fix add scheme function | arches/app/media/js/views/rdm/modals/add-scheme-form.js | arches/app/media/js/views/rdm/modals/add-scheme-form.js | define(['jquery', 'backbone', 'models/concept', 'models/value'], function ($, Backbone, ConceptModel, ValueModel) {
return Backbone.View.extend({
initialize: function(e){
var self = this;
this.modal = this.$el.find('.modal');
this.modal.on('hidden.bs.modal', function () ... | JavaScript | 0.000004 | @@ -876,149 +876,8 @@
) %7B%0A
- var model = new ConceptModel(%7B%0A id: '00000000-0000-0000-0000-000000000003'%0A %7D)%0A
@@ -1239,26 +1239,21 @@
var
-subconcept
+model
= new C
@@ -1359,16 +1359,17 @@
arrower'
+,
%0A
@@ -1385,69 +1385... |
393d6029df393b095301a12eba38dfd9ef500696 | Remove precision from axis numbering format specifier. | final/js/index.js | final/js/index.js | var data;
function main() {
wordCountChart("#wc");
percentEnglish('#eng_fw', 0);
percentEnglish('#eng_ul', 1);
percentEnglish('#eng_ofk', 2);
$('#novelty').load('data/novelty.html');
}
function wordCountChart(id) {
var margin = {top: 20, right: 20, bottom: 30, left: 40},
width = 960 - ... | JavaScript | 0 | @@ -822,10 +822,8 @@
at(%22
-.2
s%22))
|
108f30db895d00bbe1e901af1c63649a880a76f0 | add paging parameters to api getCollections call | static/js/lib/api.js | static/js/lib/api.js | // @flow
import {
fetchJSONWithCSRF,
fetchWithCSRF
} from "redux-hammock/django_csrf_fetch"
import type { Collection } from "../flow/collectionTypes"
export type VideoUpdatePayload = {
description?: string
}
export function getCollections() {
return fetchJSONWithCSRF(`/api/v0/collections/`)
}
export function... | JavaScript | 0 | @@ -2,16 +2,39 @@
/ @flow%0A
+import _ from 'lodash'%0A
import %7B
@@ -34,16 +34,16 @@
mport %7B%0A
-
fetchJ
@@ -267,61 +267,334 @@
ons(
-) %7B%0A return fetchJSONWithCSRF(%60/api/v0/collections/%60
+opts = %7B%7D) %7B%0A const %7B pagination %7D = opts%0A console.log(%22pp: %22, pagination)%0A let url = %22... |
f382eec983c1db7405e191a2a67ec70aceed0d02 | Update story. | assets/js/components/MediaErrorHandler/index.stories.js | assets/js/components/MediaErrorHandler/index.stories.js | /**
* MediaErrorHandler Component Stories.
*
* Site Kit by Google, Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/L... | JavaScript | 0 | @@ -775,100 +775,8 @@
ror(
-%0A%09%09'Something bad happened. %F0%9F%92%A3 (On purpose; ErrorComponent was used to simulate an error.)'%0A%09
);%0A%7D
|
30788ae2a10469f6c1c032241a45d12bbe121048 | Rewrite a few lines in notes | src/components/admin/NotesForm.js | src/components/admin/NotesForm.js | import React, { Component, Fragment } from 'react'
import { Formik } from 'formik'
import api from 'api'
import { AutoSaver, Field } from 'components/Forms'
import { Box, Flex, IconButton } from '@hackclub/design-system'
Box.form = Box.withComponent('form')
class SingleNote extends Component {
constructor(props) {
... | JavaScript | 0.002718 | @@ -710,49 +710,8 @@
ops%0A
- console.log('making delete request')%0A
@@ -773,53 +773,8 @@
%3E %7B%0A
- console.log('finished delete request')%0A
@@ -3050,51 +3050,8 @@
is)%0A
- this.addNote = this.addNote.bind(this)%0A
%7D%0A
@@ -3421,36 +3421,37 @@
%7D)%0A .then(
-json
+notes
=%3... |
998a594fac4603a5364682ec65548adaea15cbae | add Kahinah name to persona request | static/js/persona.js | static/js/persona.js | $("document").ready(function(){
$("#logout").hide();
function loggedIn(email){
$("#login").hide();
$("#logout").show();
$("#logout").text("Logout [" + email + "]");
}
function loggedOut(){
$("#logout").hide();
$("#login").show();
}
$("#login").on("click", function(e) {
e.preventD... | JavaScript | 0 | @@ -356,16 +356,39 @@
Verified
+, %7BsiteName: %22Kahinah%22%7D
);%0A %7D);
|
b4a545b0aa8d916cafc288f0816c9a2dd975cac5 | Fix validation plugin being loaded prior to jQuery | public/js/validate.js | public/js/validate.js | /** public/js/validate.js
*
* @author Victor Petrov <victor.petrov@gmail.com>
* @copyright (c) 2012, The Neuroinformatics Research Group at Harvard University.
* @copyright (c) 2012, The President and Fellows of Harvard College.
* @license New BSD License (see LICENSE file for details).
*/
define([
'jquery',... | JavaScript | 0 | @@ -2765,15 +2765,15 @@
el.
-closest
+parents
('.s
@@ -2790,16 +2790,23 @@
tainer')
+.last()
,%0A
|
ae5edd5a3af9e4d1786aec1ebf022206f3680a3c | update func call | src/components/settings/Tandem.js | src/components/settings/Tandem.js | /*
* == BSD2 LICENSE ==
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | JavaScript | 0.000001 | @@ -2760,18 +2760,16 @@
sClicked
-()
%7D%0A
|
fc0f4f69f56e2c7e05e5fa1391e44dbaaa202e77 | Remove paragraph tag that adds extra spacing. | api/resolver.js | api/resolver.js | var key = require('../utils/key');
var sync = require('synchronize');
var request = require('request');
var _ = require('underscore');
// The API that returns the in-email representation.
module.exports = function(req, res) {
var term = req.query.text.trim();
if (/^http:\/\/giphy\.com\/\S+/.test(term)) {
// ... | JavaScript | 0.000001 | @@ -1131,35 +1131,32 @@
%0A var html = '%3C
-p%3E%3C
img style=%22max-w
@@ -1206,36 +1206,32 @@
' + width + '%22/%3E
-%3C/p%3E
';%0A res.json(%7B%0A
@@ -1237,32 +1237,122 @@
%0A body: html%0A
+ // Add raw:true if you're returning content that you want the user to be able to edit%0A
%7D);%0A%7D%0A%0Afunc... |
97c8414b1a61a9993c98035fea3ed386cf7246e1 | Fix error when uri.pathname is not set. | app/atom.js | app/atom.js | // Stopgap atom.js file for handling normal browser things that atom
// does not yet have stable from the browser-side API.
// - Opening external links in default web browser
// - Saving files/downloads to disk
$(document).ready(function() {
if (typeof process === 'undefined') return;
if (typeof process.version... | JavaScript | 0 | @@ -1024,16 +1024,17 @@
nsion =
+(
uri.path
@@ -1037,16 +1037,23 @@
pathname
+ %7C%7C '')
.split('
|
b3061857900cf1bb7748bc6204f2d8bf8acabb0e | Update RepeatedStringMatch | algorithms/RepeatedStringMatch.js | algorithms/RepeatedStringMatch.js | // Source : https://leetcode.com/problems/repeated-string-match/discuss/
// Author : Dean Shi
// Date : 2017-10-09
/***************************************************************************************
*
* Given two strings A and B, find the minimum number of times A has to be
* repeated such that B is a substr... | JavaScript | 0.000001 | @@ -60,17 +60,8 @@
atch
-/discuss/
%0A//
|
6b091f2a7f3c529bfa6d454d8fd6c68a5aac877d | Clarify arguments to seal. | app/main.js | app/main.js | exports = module.exports = function(IoC, negotiator, interpreter, translator, unsealer, sealer, logger) {
var Tokens = require('tokens').Tokens;
var tokens = new Tokens();
return Promise.resolve(tokens)
.then(function(tokens) {
var components = IoC.components('http://i.bixbyjs.org/tokens/Token'... | JavaScript | 0.000002 | @@ -800,29 +800,43 @@
unction(
+clai
ms
-g
,
-to, from
+recipients, options
, cb) %7B%0A
@@ -898,19 +898,22 @@
ole.log(
+clai
ms
-g
)%0A
@@ -1108,21 +1108,35 @@
eal(
+clai
ms
-g
,
-to, from
+recipients, options
, fu
|
473d6beb428f32ebc2923191d9d46a4fda863e72 | Update main.js | app/main.js | app/main.js | requirejs.config({
paths: {
'text': '../lib/require/text',
'durandal':'../lib/durandal/js',
'plugins' : '../lib/durandal/js/plugins',
'transitions' : '../lib/durandal/js/transitions',
'knockout': '../lib/knockout/knockout-3.1.0',
'bootstrap': '../lib/bootstrap... | JavaScript | 0.000001 | @@ -1513,12 +1513,14 @@
%7D);%0D%0A%7D);
+%0D%0A
|
bc241e99347ff3054784a9a7e6e91c061faab9cb | Refactor snapshot loop with getInterval | app/main.js | app/main.js | import {
TANK_PADDING,
UI_WIDTH,
settings,
updateSetting,
addUpdateListener,
getSetting,
getSavedSettings,
loadSettings,
restoreDefaultSettings,
} from './settings.js';
import {
simulateFrame,
} from './simulation.js';
import {
getRandomBody,
} from './meebas/bodies.js';
import {
range,
} from '... | JavaScript | 0 | @@ -500,24 +500,76 @@
';%0Aimport %7B%0A
+ getInterval,%0A%7D from './utils/tweens.js';%0Aimport %7B%0A
getFrameRe
@@ -897,16 +897,83 @@
ot%0A */%0A%0A
+/**%0A * @typedef %7Bimport('./utils/tweens.js').Tweener%7D Tweener%0A */%0A%0A
const AP
@@ -1652,62 +1652,66 @@
%5B%5D;%0A
-let nextSnapshot = Infinity;%0Alet... |
348cd19be1990882b65ef290bfe92e13a8450cf7 | FIx cache | app/main.js | app/main.js | angular.module('onibusgv', [
'ionic',
'filters',
'home',
'search',
'horario',
'itinerario',
'linha',
'services.sql'
])
.run([
'$ionicPlatform', 'sqlService',
function($ionicPlatform, sqlService) {
$ionicPlatform.ready(function() {
if (window.StatusBar) {
// org.apache.cordova.... | JavaScript | 0.000001 | @@ -1048,35 +1048,36 @@
%0A cache:
-tru
+fals
e,%0A templ
|
f86e0dfa283239b1ffd64215559573395c2956c2 | disable devTools | app/main.js | app/main.js | const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
let winMain = null // create main window
let version = app.getVersion()
//const nameLog = process.env.USERNAME
const name = process.env.USER
console.log(name)
console.log(version)
function createWindow () {
// ... | JavaScript | 0.000001 | @@ -813,16 +813,19 @@
vtools%0A
+ //
winMain
|
c29f99386b4fe19ab0136a2c0c70dadcc1ce9c47 | fix #59 修复登陆页不能复制粘贴 | app/main.js | app/main.js | /**
* Main Process - bos client entry
*
* @file main.js
* @author mudio(job.mudio@gmail.com)
*/
import {app, ipcMain} from 'electron';
import {isDev} from './utils/helper';
import AutoUpdater from './main/AutoUpdater';
import MenuManager from './main/MenuManager';
import Development from './main/Development';
im... | JavaScript | 0 | @@ -957,65 +957,8 @@
in;%0A
- // %E5%88%9D%E5%A7%8B%E5%8C%96%E8%8F%9C%E5%8D%95%0A MenuManager.initMenu();%0A
@@ -1399,24 +1399,66 @@
ols();%0A %7D
+%0A%0A // %E5%88%9D%E5%A7%8B%E5%8C%96%E8%8F%9C%E5%8D%95%0A MenuManager.initMenu();
%0A%7D);%0A%0Aapp.on
|
92f37554fd78ccd617538565cc36fb05858441de | Add minify json function | gulpfile.dev.js | gulpfile.dev.js | /**
* This <server-gardu-reporter> project created by :
* Name : syafiq
* Date / Time : 20 June 2017, 10:58 AM.
* Email : syafiq.rezpector@gmail.com
* Github : syafiqq
*/
var gulp = require('gulp');
var watch = require('gulp-watch');
var cleanCSS = require('gulp-clean-css');
var rename = re... | JavaScript | 0.000453 | @@ -252,24 +252,57 @@
lp-watch');%0A
+var util = require('gulp-util');%0A
var cleanCSS
@@ -512,16 +512,62 @@
gemin');
+%0Avar jsonMinify = require('gulp-json-minify');
%0A%0Agulp.t
@@ -1871,16 +1871,301 @@
);%0A%7D);%0A%0A
+gulp.task('minify-json', function ()%0A%7B%0A return gulp.src(%5B'./raw/assets/**/*.json... |
6a71a03e3736a462bcf77545eb46782979eb1ad0 | add ability to update student rating, close #125 | src/containers/student/ratings.js | src/containers/student/ratings.js | import React from 'react';
import StarRating from 'react-star-rating';
import './style.scss';
export default (props) => {
const updateRating = () => {
props.updateStudent(props.data);
};
return (
<div className="card">
{console.log(props.data.ratings.logic, 'STARS')}
<div className="card-cont... | JavaScript | 0 | @@ -140,16 +140,24 @@
ting = (
+_, stars
) =%3E %7B%0A
@@ -163,28 +163,57 @@
-props.updateS
+console.log('updateRating');%0A const s
tudent
-(
+ =
prop
@@ -222,108 +222,134 @@
data
-);%0A %7D;%0A return (%0A %3Cdiv className=%22card%22%3E%0A %7Bconsole.log(props.data.ratings.logic, 'STARS')%7D... |
9efb161d405226438d27a73c628f49b445e01aa6 | Convert to either pure CommonJS or pure ES6 (ES6, in this case) | gatsby-browser.js | gatsby-browser.js | import React from 'react'
import ComponentRenderer from './src/templates/component-renderer-with-pagination'
exports.replaceComponentRenderer = ({ props, loader }) => {
if (props.layout) {
return null
}
return <ComponentRenderer {...props} loader={loader} />
}
| JavaScript | 0.999125 | @@ -110,18 +110,29 @@
%0A%0Aexport
-s.
+ default %7B%0A
replaceC
@@ -147,18 +147,17 @@
Renderer
- =
+:
(%7B prop
@@ -176,16 +176,18 @@
=%3E %7B%0A
+
+
if (prop
@@ -202,16 +202,18 @@
) %7B%0A
+
return n
@@ -222,11 +222,15 @@
l%0A
+
+
%7D%0A%0A
+
re
@@ -283,10 +283,14 @@
der%7D /%3E%0A
+... |
ff7a84e822e68c4effc45e0e6135d924e6604fc4 | Fix /members permission for listing members. | generate-rules.js | generate-rules.js | const {forEach, split} = require('lodash')
const ADMIN = 'zedeck'
const ID_STRING_LENGTH = 20
const USER_ID_STRING_LENGTH = 28
const PROFILES_NODE = 'members'
const ROLES_NODE = 'memberRoles'
const ROLES = [
'clerk',
'church_elder',
'elder',
'department_director',
'department_secretary',
'department_assist... | JavaScript | 0 | @@ -4259,38 +4259,24 @@
members: %7B%0A
- $uid: %7B%0A
'.read':
@@ -4268,32 +4268,35 @@
%7B%0A '.read':
+%60$%7B
hasProfile(),%0A
@@ -4291,17 +4291,32 @@
rofile()
-,
+%7D%60,%0A%0A $uid: %7B
%0A '
|
d41f7ed637d335f000ec850425a421af02529f63 | Fix AutoLaunch with appimage | gui/src/main/autolaunch.js | gui/src/main/autolaunch.js | const AutoLaunch = require('auto-launch')
const autoLauncher = new AutoLaunch({
name: 'Cozy-Desktop',
isHidden: true
})
module.exports.isEnabled = () => autoLauncher.isEnabled()
module.exports.setEnabled = (enabled) => {
autoLauncher.isEnabled().then((was) => {
if (was !== enabled) {
if (enabled) {
... | JavaScript | 0 | @@ -39,44 +39,22 @@
h')%0A
+%0A
const
-autoLauncher = new AutoLaunch(
+opts =
%7B%0A
@@ -93,16 +93,124 @@
: true%0A%7D
+%0A%0Aif (process.env.APPIMAGE) %7B%0A opts.path = process.env.APPIMAGE%0A%7D%0A%0Aconst autoLauncher = new AutoLaunch(opts
)%0A%0Amodul
|
bd822bebcd755b69eac48ee1bc68c128442f81fb | Disable arrows when you have no more results in a direction. | zephyr/static/js/search.js | zephyr/static/js/search.js | var cached_term = "";
var cached_matches = [];
var cached_index;
var cached_table = $('table.focused_table');
function get_zid_as_int(object) {
return parseInt(object.attr("zid"), 10);
}
function match_on_visible_text(row, search_term) {
// You can't select on :visible, since that includes hidden elements tha... | JavaScript | 0 | @@ -487,24 +487,365 @@
!== -1;%0A%7D%0A%0A
+function disable_search_arrows_if(condition, affected_arrows) %7B%0A var i, button;%0A%0A for (i = 0; i %3C affected_arrows.length; i++) %7B%0A button = $(%22#search_%22 + affected_arrows%5Bi%5D);%0A if (condition) %7B%0A button.attr(%22disabl... |
f711baefab7471d7503afe20438ea26a2d2bc879 | Use navigator.languages in preference to navigator.language (Chrome does not set navigator.language based on user preferences). | guacamole/src/main/webapp/app/settings/services/preferenceService.js | guacamole/src/main/webapp/app/settings/services/preferenceService.js | /*
* Copyright (C) 2015 Glyptodon LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | JavaScript | 0 | @@ -2967,16 +2967,17 @@
guage =
+(
navigato
@@ -2982,24 +2982,116 @@
tor.language
+s && navigator.languages%5B0%5D)%0A %7C%7C navigator.language%0A
%7C%7C navigato
@@ -3111,18 +3111,36 @@
uage
+%0A
%7C%7C 'en
-_US
';%0A%0A
|
093114e9308034b16e443dfe270a4b8250d1fa65 | Fix parameter annotation | lib/node_modules/@stdlib/math/generics/random/shuffle/lib/factory.js | lib/node_modules/@stdlib/math/generics/random/shuffle/lib/factory.js | 'use strict';
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
var isArrayLike = require( '@stdlib/utils/is-array-like' );
var isString = require( '@stdlib/utils/is-string' ).isPrimitive;
var deepCopy = require( '@stdlib/utils/copy' );
var floor = require( '@stdlib/math/base/speci... | JavaScript | 0.000007 | @@ -1549,13 +1549,8 @@
copy
-=true
%5D -
|
52639dd03968fefce57612772c701d243d7d0276 | use reporter | gulpfile.babel.js | gulpfile.babel.js | 'use strict';
import babel from 'gulp-babel';
import babelCompiler from 'babel-core';
import del from 'del';
import gulp from 'gulp';
import eslint from 'gulp-eslint';
import istanbul from 'gulp-istanbul';
import jscs from 'gulp-jscs';
import jshint from 'gulp-jshint';
import mocha from 'gulp-mocha';
const configFiles... | JavaScript | 0.000004 | @@ -707,32 +707,59 @@
t: true%0A %7D))%0A
+ .pipe(jscs.reporter())%0A
.pipe(jshint
|
abcae06465eefc551775a14b1f3d4b0b329027e0 | Handle Dockerflow endpoints | gulpfile.babel.js | gulpfile.babel.js | import gulp from 'gulp';
import fs from 'fs';
import path from 'path';
import autoprefixer from 'gulp-autoprefixer';
import cleanCSS from 'gulp-clean-css';
import concat from 'gulp-concat';
import data from 'gulp-data';
import fse from 'fs-extra';
import gitRev from 'git-rev';
import gutil from 'gulp-util';
import nu... | JavaScript | 0.000001 | @@ -808,16 +808,708 @@
ts/*';%0A%0A
+const versionFilename = path.join(buildDirectory, 'app/version.json');%0A%0A%0A// Handle endpoints required by Dockerflow%0A// See https://github.com/mozilla-services/Dockerflow/blob/643b1a26dfef80e9fc0b5a4d356d92d73edd012d/README.md%0Afunction _handleDockerflowEndpoints(req, res, ... |
1a92868840c90eff5436c293f3f0325aba3c9c12 | Fix production dependencies | gulpfile.babel.js | gulpfile.babel.js | import gulp from 'gulp';
gulp.task('clean', () => {
let del = require('del');
return del(['build/']);
});
// Build
gulp.task('build:lib', ['clean'], () => {
let babel = require('gulp-babel');
return gulp.src('lib/*.es6')
.pipe(babel())
.pipe(gulp.dest('build/lib'));
});
gulp.task('bu... | JavaScript | 0.000028 | @@ -838,16 +838,47 @@
age-0',%0A
+ 'babel-preset-es2015',%0A
|
eb4248f4943b1ab1fbaae243811b55ad20b2e970 | remove strip comments task | gulpfile.babel.js | gulpfile.babel.js | /**
* RMC gulpfile
*
* @license
* Copyright (c) 2017 Rogers Manufacturing Company. All rights reserved.
*/
'use strict';
// include gulp & tools
import gulp from 'gulp';
import rename from 'gulp-rename';
import replace from 'gulp-replace';
import header from 'gulp-header';
import strip from 'gulp-strip-comments'... | JavaScript | 0.000004 | @@ -278,49 +278,8 @@
r';%0A
-import strip from 'gulp-strip-comments';%0A
impo
@@ -1437,171 +1437,8 @@
);%0A%0A
-// Strip Comments%0Agulp.task('strip', %5B'sass'%5D, function() %7B%0A return gulp.src('css/rmc-theme.css')%0A .pipe(strip())%0A .pipe(gulp.dest('css/'));%0A%7D);%0A%0A
// M
@@ -1477,25 +... |
e7258f67639c41dc8f21efd3ff3f32b5cbbb6e30 | Update tasks | gulpfile.babel.js | gulpfile.babel.js | import gulp from 'gulp';
import autoprefixer from 'gulp-autoprefixer';
import cleanCSS from 'gulp-clean-css';
import del from 'del';
import imagemin from 'gulp-imagemin';
import pug from 'gulp-pug';
import sass from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';
import webpack from 'webpack-stream';
import { cr... | JavaScript | 0.000002 | @@ -107,31 +107,8 @@
s';%0A
-import del from 'del';%0A
impo
@@ -237,24 +237,47 @@
ourcemaps';%0A
+import del from 'del';%0A
import webpa
@@ -313,83 +313,39 @@
ort
-%7B create as bsCreate %7D from 'browser-sync';%0A%0Aconst browserSync = bsCreate()
+browserSync from 'browser-sync'
;%0A%0Ac
@@ -424,24 +424,25 @@
... |
344e5379fc83c112b029ed4bd6ae4cab793936d6 | Update buildStatus.js | store/buildStatus.js | store/buildStatus.js | /**
* Function to build status data
**/
// const config = require('../config');
const queue = require('./queue');
const async = require('async');
const moment = require('moment');
module.exports = function buildStatus(db, redis, cb) {
redis.zremrangebyscore('added_match', 0, moment().subtract(1, 'day').format('X'))... | JavaScript | 0.000001 | @@ -3516,16 +3516,20 @@
%5B50, 75,
+ 90,
95, 99%5D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.