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 |
|---|---|---|---|---|---|---|---|
76cbfed1ba4e9333144b8fbfd20683a22fcba21a | Make color by orientation false by default | src/JBrowse/View/Track/Alignments2.js | src/JBrowse/View/Track/Alignments2.js | define( [
'dojo/_base/declare',
'dojo/_base/array',
'dojo/promise/all',
'JBrowse/Util',
'JBrowse/View/Track/CanvasFeatures',
'JBrowse/View/Track/_AlignmentsMixin'
],
function(
declare,
array,
all,... | JavaScript | 0.000001 | @@ -781,27 +781,28 @@
rientation:
-tru
+fals
e,%0A
|
606ef1ff6432cc20867366a5be3a4ac49de4ed06 | fix topicsFilter js styling | lib/topics-filter/topics-filter.js | lib/topics-filter/topics-filter.js | /**
* Module dependencies.
*/
import debug from 'debug';
import merge from 'merge';
import Stateful from '../stateful/stateful.js';
import Storage from '../storage/storage.js';
import topics from '../topics/topics.js';
import user from '../user/user.js';
import sorts from './sorts.js';
let log = debug('democracyos:... | JavaScript | 0.000001 | @@ -1206,16 +1206,13 @@
ters
-%5B'
+.
sort
-'%5D
= '
@@ -1248,18 +1248,15 @@
ters
-%5B'
+.
status
-'%5D
= '
@@ -2680,25 +2680,24 @@
lters;%0A %7D
-;
%0A%0A return
@@ -3093,23 +3093,16 @@
;%0A
-return
obj%5Bkey%5D
@@ -3109,17 +3109,30 @@
= value
-,
+;%0A return
this.se
@@ -3755,12 +3755... |
80fe14d830b8e337aeac62cb9c597e654a240e54 | remove border-radius from logs button in mimic controls | lib/ui/components/MimicControls.js | lib/ui/components/MimicControls.js | import React from 'react';
import styled from 'styled-components';
const Container = styled.div`
display: flex;
font-family: Arial, sans-serif;
font-size: 12px;
background: white;
position: fixed;
bottom: 0;
left: 0;
${(props) => props.fullWidth ? 'width: 100%;' : '' }
`;
const Control = styled.div`
... | JavaScript | 0 | @@ -477,73 +477,8 @@
er;%0A
- $%7B(props) =%3E props.rounded ? 'border-radius: 0 0 0 5px;' : ''%7D%0A
ba
@@ -799,16 +799,8 @@
rol
-rounded
onCl
|
613b74713281038621eb59d3a6b60a71c19ddd43 | Update download-build-lib-in-cs.js | scripts/download-build-lib-in-cs.js | scripts/download-build-lib-in-cs.js | var program = require('commander');
var AlfrescoApi = require('alfresco-js-api-node');
var http = require('http');
var fs = require('fs');
var path = require('path');
var archiver = require('archiver');
var AdmZip = require('adm-zip');
var alfrescoJsApi;
downloadZip = async (url, outputFolder, pacakge) => {
cons... | JavaScript | 0.000001 | @@ -165,43 +165,8 @@
');%0A
-var archiver = require('archiver');
%0Avar
|
c70997eea10cc0ef1e4815726659040bca3972bb | Fix jsdoc | scripts/map/MapArticleController.js | scripts/map/MapArticleController.js |
/**
* MapArticleController
* Abstract view controller to display a jointSource.
*/
let MapArticleController = SingleModelController.createComponent("MapArticleController");
MapArticleController.defineMethod("construct", function construct() {
this.jointSourceController = null;
Object.defineProperty(this, "jo... | JavaScript | 0.00006 | @@ -76,16 +76,32 @@
Source.%0A
+ * @constructor%0A
*/%0Alet
|
e1371be25a083886ba3913d84f8b70e7003044a1 | Add credentials on XHRs | app/assets/javascripts/gatemedia/data/index.js | app/assets/javascripts/gatemedia/data/index.js | //= require_self
//= require ./implementation/string
//= require_tree ./implementation
Ember.$.support.cors = true;
/* global Data:true */
Data = Ember.Namespace.create({
ajax: function (settings) {
return Ember.$.ajax(settings);
}
});
| JavaScript | 0 | @@ -221,24 +221,103 @@
.$.ajax(
-settings
+Ember.merge(settings, %7B%0A xhrFields: %7B%0A withCredentials: true%0A %7D%0A %7D)
);%0A %7D%0A%7D
|
3410fd79834581189de94a856d4220dcdf5c9bd6 | Remove hook parameter | src/api/server/createExpressServer.js | src/api/server/createExpressServer.js | import express from "express"
import shrinkRay from "shrink-ray"
import uuid from "uuid"
import parameterProtection from "hpp"
import helmet from "helmet"
import PrettyError from "pretty-error"
import favicon from "serve-favicon"
import createLocaleMiddleware from "express-locale"
import cookieParser from "cookie-parse... | JavaScript | 0.000001 | @@ -721,15 +721,8 @@
nfig
-, hooks
)%0A%7B%0A
|
065d0d6f7307f439a3f72eb077125799511d9630 | Resolve a merged conflict - app/javascript/mastodon/features/compose/components/search_results.js | app/javascript/mastodon/features/compose/components/search_results.js | app/javascript/mastodon/features/compose/components/search_results.js | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
<<<<<<< HEAD
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
=======
import { FormattedMessage } from 'react-intl';
>>>>>>> v1.4.7
import AccountContainer from '../../../containers/accou... | JavaScript | 0.000077 | @@ -84,21 +84,8 @@
s';%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
impo
@@ -128,20 +128,8 @@
rt %7B
- injectIntl,
For
@@ -167,78 +167,8 @@
l';%0A
-=======%0Aimport %7B FormattedMessage %7D from 'react-intl';%0A%3E%3E%3E%3E%3E%3E%3E v1.4.7%0A
impo
|
4b8b2d5a5cc682e49c969825c25015b79cabdc14 | Add tests for selector getters in bookFormReducer. | app/reducers/__tests__/bookFormReducer.spec.js | app/reducers/__tests__/bookFormReducer.spec.js | import expect from 'expect';
import { bookFormReducer } from '../bookFormReducer';
import * as types from '../../constants';
describe('booksReducer', () => {
describe('when state is undefined', () => {
const state = undefined;
it('returns an initial state', () => {
expect(bookFormReducer(state)).toEqu... | JavaScript | 0 | @@ -30,16 +30,18 @@
import %7B
+%0A
bookFor
@@ -48,17 +48,51 @@
mReducer
-
+,%0A getBookTitle,%0A getBookAuthor,%0A
%7D from '
@@ -2277,13 +2277,1221 @@
);%0A %7D);
+%0A%0A describe('selector getBookTitle', () =%3E %7B%0A describe('when state.bookFormReducer is defined', () =%3E %7B%0A const bookTit... |
0b6015659eaf544d4fc9e810a91a2876d077b8df | Fix generate yail option on value blocks Yail generator returns arrays for value blocks instead of strings, now passing string to setCommentText | appinventor/blocklyeditor/src/blocklyeditor.js | appinventor/blocklyeditor/src/blocklyeditor.js | // Copyright 2012 Massachusetts Institute of Technology. All rights reserved.
/**
* @fileoverview Visual blocks editor for App Inventor
* Initialize the blocks editor workspace.
*
* @author sharon@google.com (Sharon Perl)
*/
Blockly.BlocklyEditor = {};
Blockly.BlocklyEditor.startup = function(documentBody, for... | JavaScript | 0.000004 | @@ -1193,65 +1193,369 @@
-myBlock.setCommentText(Blockly.Yail.blockToCode1(myBlock)
+var yailText;%0A //Blockly.Yail.blockToCode1 returns a string if the block is a statement%0A //and an array if the block is a value%0A var yailTextOrArray = Blockly.Yail.blockToCode1(myBlock);%0A if(yailTextOrArray in... |
360b60c4ec1ae07d4f2ad2faa7190d3157333cbb | Remove duplicate text from SettingsAdmin. | assets/js/components/settings/SettingsAdmin.js | assets/js/components/settings/SettingsAdmin.js | /**
* SettingsOverview component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.... | JavaScript | 0 | @@ -1248,56 +1248,8 @@
n';%0A
-import VisuallyHidden from '../VisuallyHidden';%0A
impo
@@ -4280,140 +4280,10 @@
ted%22
-%3E%0A%09%09%09%09%09%09%09%09%09%09%09%09%3CVisuallyHidden%3E%0A%09%09%09%09%09%09%09%09%09%09%09%09%09%7B __( 'Connected', 'google-site-kit' ) %7D%0A%09%09%09%09%09%09%09%09%09%09%09%09%3C/Visual... |
59d9ede1cf1336a2b8c6c359f0c013a2a602d703 | Update doc-block. | assets/js/modules/adsense/datastore/service.js | assets/js/modules/adsense/datastore/service.js | /**
* `modules/adsense` data store: service.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses... | JavaScript | 0 | @@ -3980,37 +3980,23 @@
account
-'s site overview page
+ report
.%0A%09 *%0A%09
|
0ecb0b97fb52779953cc1b1d6034ed7943afa7f1 | add colon between key and value | frappe/website/doctype/help_article/help_article.js | frappe/website/doctype/help_article/help_article.js | // Copyright (c) 2016, Frappe Technologies and contributors
// For license information, please see license.txt
frappe.ui.form.on('Help Article', {
refresh: function(frm) {
frm.dashboard.clear_headline();
frm.dashboard.set_headline_alert(`
<div class="row">
<div class="col-md-6 col-xs-12">
<span class... | JavaScript | 0 | @@ -366,24 +366,25 @@
span%3EHelpful
+:
$%7Bfrm.doc.h
@@ -539,16 +539,17 @@
Helpful
+:
$%7Bfrm.d
|
9b8b73e8abb73699ca6ad5767fd5710475fc9c96 | fix bug | frontend-modules/angular/ui/searchBox.controller.js | frontend-modules/angular/ui/searchBox.controller.js | app.controller('SearchBoxController', function ($scope, $http, $location, $rootScope, $routeParams) {
var isAdvancedSearch = function () {
var containsSearchPath = $location.absUrl().includes('/search');
return containsSearchPath;
}
$scope.showQuickSearchResults = function () {
var... | JavaScript | 0.000001 | @@ -1528,24 +1528,448 @@
%7D%0A %7D);%0A%0A
+ var getParameterByName = function (name, url) %7B%0A if (!url) %7B%0A url = window.location.href;%0A %7D%0A name = name.replace(/%5B%5C%5B%5C%5D%5D/g, %22%5C%5C$&%22);%0A var regex = new RegExp(%22%5B?&%5D%22 + name + %22(=(%5B... |
952865e4b1eb0d626221695ea7e1d04de0189ed8 | fix config | generators/app/templates/config/default/exporter.js | generators/app/templates/config/default/exporter.js | 'use strict';
/**
* Nitro Exporter Config
* https://github.com/namics/nitro-exporter
*/
const config = {
exporter: {
dest: 'dist',
i18n: [],
publics: true,
renames: [
{
src: 'dist/assets/**',
base: 'dist/assets',
dest: 'dist/',
},
],
replacements: [
{
glob: ['dist/*.html', 'di... | JavaScript | 0.000003 | @@ -527,141 +527,8 @@
%09%7D,%0A
-%09%09%09%7B%0A%09%09%09%09glob: %5B'dist/*.html'%5D,%0A%09%09%09%09replace: %5B%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09from: '(%5Ba-z%5D+)%5C%5C.(css%7Cjs)',%0A%09%09%09%09%09%09to: '$1.min.$2',%0A%09%09%09%09%09%7D,%0A%09%09%09%09%5D,%0A%09%09%09%7D,%0A
%09%09%5D,
|
bbaac928494e7dbfc83c917c516a417eb4ad1954 | add minu dust forecast index | server/models/modelMinuDustFrcst.js | server/models/modelMinuDustFrcst.js | /**
* informData+informCode가 기준임.
* 새로 받은 데이터는 기존ㅇ informData에 업데이트 함.
* inmage는 5, 23시에만 큰이미지, 23시에 오늘로 들어오는 이미지는 내일 예측모델임, 23시 당일 내용인지 확실치 않으나, 일단 그렇다고 봄.
* Created by aleckim on 2016. 4. 1..
*/
var mongoose = require('mongoose');
var mdfSchema = new mongoose.Schema({
informCode: String, //PM10, PM25, O3
... | JavaScript | 0 | @@ -672,16 +672,49 @@
ime:1%7D);
+%0AmdfSchema.index(%7BinformData:1%7D);
%0A%0Amodule
|
9b5f763a795b0166d4789802a868a7192ee72a87 | update iChatClient.js | server/public/lib/js/iChatClient.js | server/public/lib/js/iChatClient.js | // <script type="text/javascript">
// var client = new Faye.Client('http://at35.com:4567/faye', {
// timeout : 120,
// retry : 5
// });
//
// var subscription = client.subscribe('/foo', function(message) {
// // handle message
// alert(message.text);
// console.log(message);
// });
//
// setTimeout(f... | JavaScript | 0 | @@ -1044,16 +1044,19 @@
opt);%0A%09
+//
Faye.log
|
eeaf88b6a62d8da7ee292ded184acf6dd5a2e3b8 | Add 'is' in the words to wordsToIgnore list | server/utils/customTextAnalytics.js | server/utils/customTextAnalytics.js | import $ from 'jquery';
import { wordsAPIKey } from '../../API_KEYS';
/**
* Helper functions for custom text analytics
*/
// get each word's word count
function countEachWord(textInput) {
// split up input string into arrays by spaces and newline chars
const whiteSpaceChars = /\s/;
const allWords = textInput.s... | JavaScript | 0.999924 | @@ -969,16 +969,21 @@
%5Cb%7Cand%5Cb
+%7Cis%5Cb
/;%0A%0A //
|
8214ee8fad439848f60ac2fcfa1cc7909285ef5b | fix blinking when toggling advanced | skins/base/views/templates/Login.js | skins/base/views/templates/Login.js | /*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0 | @@ -2285,35 +2285,31 @@
) %7B%0A
-this.custom
+var new
HsUrl = this
@@ -2350,35 +2350,31 @@
();%0A
-this.custom
+var new
IsUrl = this
@@ -2403,32 +2403,267 @@
IsUrl().trim();%0A
+%0A if (newHsUrl == this.customHsUrl &&%0A newIsUrl == this.customIsUrl)%0A %7B%0A r... |
5bb1dffd6cfca727cce6ec7cedc0258a175ea046 | make it even possible to uncheck an option ... | source/assets/js/srf-form-fields.js | source/assets/js/srf-form-fields.js | export function init() {
$(".radio-button, .checkbox").on("keypress", function (e) {
// enable checking radios by tabbing in + <enter>
if (e.keyCode === 13) {
$(this).prop('checked', true);
return false;
}
});
} | JavaScript | 0 | @@ -184,16 +184,32 @@
+ var isChecked =
$(this)
@@ -227,14 +227,71 @@
ked'
-, true
+) ? false : true;%0A $(this).prop('checked', isChecked
);%0A
|
8d208aa193f42b4edb6befd24403e707387da448 | Update news-container.js | source/views/news/news-container.js | source/views/news/news-container.js | // @flow
import React from 'react'
import delay from 'delay'
import type {StoryType} from './types'
import LoadingView from '../components/loading'
import {NoticeView} from '../components/notice'
import type {TopLevelViewPropsType} from '../types'
import {reportNetworkProblem} from '../../lib/report-network-problem'
im... | JavaScript | 0.000002 | @@ -237,24 +237,64 @@
'../types'%0A
+import %7Btracker%7D from '../../analytics'%0A
import %7Brepo
@@ -938,34 +938,8 @@
%7D%0A
-
%0A l
|
3051fa0f0967db9f29aa3bfb34296c2fb85fd46c | Add a test for getTopicListScreenParams | src/__tests__/baseSelectors-test.js | src/__tests__/baseSelectors-test.js | import deepFreeze from 'deep-freeze';
import { getCurrentRoute, getCurrentRouteParams, getTopMostNarrow } from '../baseSelectors';
import { streamNarrow } from '../utils/narrow';
describe('getCurrentRoute', () => {
test('return name of the current route', () => {
const state = deepFreeze({
nav: {
... | JavaScript | 0 | @@ -40,16 +40,18 @@
import %7B
+%0A
getCurr
@@ -59,16 +59,18 @@
ntRoute,
+%0A
getCurr
@@ -84,16 +84,46 @@
eParams,
+%0A getTopicListScreenParams,%0A
getTopM
@@ -127,25 +127,26 @@
opMostNarrow
-
+,%0A
%7D from '../b
@@ -1397,32 +1397,385 @@
lt);%0A %7D);%0A%7D);%0A%0A
+describe('getTopicListScreenParam... |
fe6b7c0ea2b3ad518d3bbd6f14dbec2c0a31103b | Improve _addMatrixClientListener docs | src/actions/MatrixActionCreators.js | src/actions/MatrixActionCreators.js | /*
Copyright 2017 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0.000001 | @@ -2901,32 +2901,75 @@
nts
-emitted by matrixClient,
+of type eventName on matrixClient and when they are emitted,%0A *
dis
@@ -2998,23 +2998,16 @@
d by the
-%0A *
actionC
|
1d5817e06c64f454f6dac1b7132c37f3d3ed52ab | set types in api | src/api/client-event-manager-api.js | src/api/client-event-manager-api.js | /**
* Copyright 2019 The Subscribe with Google Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | JavaScript | 0 | @@ -1807,17 +1807,17 @@
tEvent,
-?
+!
ClientEv
@@ -1825,16 +1825,17 @@
ntParams
+=
)%7D liste
@@ -2536,22 +2536,35 @@
@param %7B
-Object
+!ClientEventParams=
%7D eventP
|
5b24945148c01fc5dcb579bb917a83c589a78e70 | update gh-pages from README | bin/copyToGhPages.js | bin/copyToGhPages.js | var exec = require('child_process').exec;
queue([checkoutPage, getBack, commit, checkoutMaster]);
function queue (fns) {
// Execute and remove the first function.
var fn = fns.shift();
fn(function (err) {
if (!err) {
if (fns.length) {
// If we still have functions
... | JavaScript | 0.000002 | @@ -34,16 +34,40 @@
').exec;
+%0Avar fs = require('fs');
%0A%0Aqueue(
@@ -89,16 +89,28 @@
getBack,
+ modifyFile,
commit,
@@ -851,18 +851,14 @@
out
-built file
+README
fro
@@ -874,16 +874,29 @@
and
-move it.
+rename it to index.md
');%0A
@@ -925,34 +925,28 @@
master
-./dist/nipplejs.js
+-- README.md
&& ... |
26a9878c49801f1d049cd7b229ebae6eaaf0acd2 | add customer role fixture | bin/load-fixtures.js | bin/load-fixtures.js | #!/usr/bin/env babel-node
import { syncDB } from '../src/model-helpers';
import { loadFixtures } from '../test/helpers';
const fixtures = [
'systems.json',
'customers.json'
];
syncDB()
.then(() => loadFixtures(fixtures))
.then(() => {
console.log('Loaded fixtures!');
process.exit(0);
... | JavaScript | 0 | @@ -155,16 +155,43 @@
.json',%0A
+ 'customer-roles.json',%0A
'cus
|
a9e10209eddc194b4b4ccc37bd610d69761b03ec | Update config in monitor bin | bin/storj-monitor.js | bin/storj-monitor.js | #!/usr/bin/env node
'use strict';
const program = require('commander');
const Config = require('../lib/config');
const Monitor = require('../lib/monitor');
program.version(require('../package').version);
program.option('-c, --config <path_to_config_file>', 'path to the config file');
program.parse(process.argv);
va... | JavaScript | 0.000001 | @@ -98,16 +98,24 @@
'../lib/
+monitor/
config')
@@ -350,71 +350,19 @@
(pro
-cess.env.NODE_ENV %7C%7C 'develop', program.config, program.datadir
+gram.config
);%0Av
|
939581e4dfa76924a54caa537353846587e05668 | Fix attempt | api/models/Dimmer.js | api/models/Dimmer.js | var _ = require('lodash')
var Device = require('./Device')
module.exports = _.merge(_.cloneDeep(Device), {
attributes: {
getStatus: function () {
return new Promise((resolve, reject) => {
this.insteonClient().level()
.then((result) => {
if (result !== undefined && result !== null... | JavaScript | 0.000014 | @@ -2627,16 +2627,17 @@
tatus =
+(
level ==
@@ -2654,16 +2654,17 @@
' : 'on'
+)
%0A
|
0290789e839c7b8274045c8a738c8e427ee53993 | define model | api/models/Module.js | api/models/Module.js | /**
* Module.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
module.exports = {
attributes: {
}
};
| JavaScript | 0.000007 | @@ -221,16 +221,510 @@
tes: %7B%0A%0A
+ title: %7B%0A type: 'string',%0A required: true%0A %7D,%0A%0A services: %7B%0A type: 'array',%0A required: true,%0A enum: %5B%0A 'alert',%0A 'automation',%0A 'geolocation',%0A 'mail',%0A 'multimedia',%0A ... |
77b63d0177862139f250b9803c0c625f70b5558b | Fix missing TTA times crashing departures route (api) | api/providers/tta.js | api/providers/tta.js | const got = require('got');
const time = require('../utils/time.js');
const cache = require('../utils/cache.js');
const log = require('../utils/log.js');
/* Stops */
async function updateCache(id) {
try {
const body = (await got('https://transport.tallinn.ee/siri-stop-departures.php?stopid=' + id, { timeout: 1000,... | JavaScript | 0.000203 | @@ -371,44 +371,91 @@
-1)
-throw new Error('Invalid response');
+%7B%0A%09%09%09log.warn%60Failed to fetch TTA departures.$%7Bnew Error(body)%7D%60;%0A%09%09%09return %5B%5D;%0A%09%09%7D
%0A%09%09%0A
@@ -748,12 +748,10 @@
urn
-null
+%5B%5D
;%0A%09%7D
|
4c28169bdb165d820c267967db7dee3d32f2b88e | Remove leftover TTA code (api) | api/providers/tta.js | api/providers/tta.js | const got = require('got');
const time = require('../utils/time.js');
const debug = require('../utils/debug.js');
// Get trips for stop.
async function getStopDepartures(id, mntDepartures) {
let ttaDepartures = [];
let departures = [];
try {
ttaDepartures = (await got('https://transport.tallinn.ee/siri-stop-de... | JavaScript | 0 | @@ -982,25 +982,13 @@
ture
-, i
) =%3E
-%7B%0A%09%09%09if (
depa
@@ -998,19 +998,19 @@
re.name
-!
==
+=
mntDepa
@@ -1020,18 +1020,18 @@
re.name
-%7C%7C
+&&
departu
@@ -1038,17 +1038,17 @@
re.type
-!
+=
== mntDe
@@ -1064,10 +1064,10 @@
ype
-%7C%7C
+&&
Mat
@@ -1112,90 +1112,14 @@
me)
-%3E
+%3C
60)... |
e06d72d3ede08b786e06c734f2ecd8ff592e60b5 | Refactor to inline value search | lib/node_modules/@stdlib/types/ndarray/base/assert/is-order/lib/main.js | lib/node_modules/@stdlib/types/ndarray/base/assert/is-order/lib/main.js | 'use strict';
// MODULES //
var indexOf = require( '@stdlib/utils/index-of' );
var orders = require( '@stdlib/types/ndarray/base/orders' );
// VARIABLES //
var ORDERS = orders();
// MAIN //
/**
* Tests whether an input value is an ndarray order.
*
* @param {*} v - value to test
* @returns {boolean} boolean indi... | JavaScript | 0 | @@ -27,59 +27,8 @@
//%0A%0A
-var indexOf = require( '@stdlib/utils/index-of' );%0A
var
@@ -126,16 +126,41 @@
ders();%0A
+var len = ORDERS.length;%0A
%0A%0A// MAI
@@ -541,46 +541,111 @@
%7B%0A%09
-return ( indexOf( ORDERS, v ) !== -1 )
+var i;%0A%09for ( i = 0; i %3C len; i++ ) %7B%0A%09%09if ( v === ORDERS%5B i ... |
d68e34a30f326aa411f69ef5e51b387e47d2c1d3 | Update videos.js | api/v3.0.0/videos.js | api/v3.0.0/videos.js | /**
* Copyright 2013 Ionică Bizău
*
* A Node.JS module, which provides an object oriented wrapper for the Youtube v3 API.
* Author: Ionică Bizău <bizauionica@gmail.com>
*
**/
var Util = require("../../util");
var querystring = require("querystring");
function getRating (options, callback) {
var se... | JavaScript | 0 | @@ -767,186 +767,135 @@
var
-self%09= this;%0A%09var url%09%09= 'https://gdata.youtube.com/feeds/api/videos/';%0A%0A var reqOptions = %7B%0A url: url + options.videoId + '/comments?' + querystring.stringify(options)
+action = 'commentThreads';%0A var url = Util.createUrl.apply(this, %5Baction, options%5D... |
224a1584e445c038a11dd761698fccf2c649f564 | Remove react-tap-event-plugin | src/components/App.js | src/components/App.js | require('styles/normalize.css')
require('styles/_colors.scss')
require('styles/_utils.scss')
require('styles/_layout.scss')
require('styles/App.scss')
import React from 'react'
import injectTapEventPlugin from 'react-tap-event-plugin'
import TopMenu from 'components/organisms/top_menu/TopMenu'
import Sidebar from 'com... | JavaScript | 0.000005 | @@ -175,66 +175,8 @@
ct'%0A
-import injectTapEventPlugin from 'react-tap-event-plugin'%0A
impo
@@ -345,32 +345,8 @@
n'%0A%0A
-injectTapEventPlugin()%0A%0A
clas
|
8eea7c5ea9eb904fb836dbda907fa01ff7de1698 | move import to top | app/pubsub-listener.js | app/pubsub-listener.js | import Promise from 'bluebird'
import { createClient as redis } from 'redis'
import _ from 'lodash'
import IoSever from 'socket.io'
import models from './models'
import config_loader from '../config/config'
export default class PubsubListener {
constructor(server, app) {
"use strict";
var io = IoSever(serve... | JavaScript | 0 | @@ -124,16 +124,54 @@
cket.io'
+%0Aimport adapter from 'socket.io-redis'
%0A%0Aimport
@@ -404,53 +404,8 @@
var
- adapter = require('socket.io-redis')%0A ,
red
|
faec926aa46f4e0a74e42c5e08b080ba657db1b0 | Save credentials as base64 | src/components/App.js | src/components/App.js | import {h, Component} from 'preact'
import * as outline from '../outline'
import {parse, stringify} from '../doclist'
import GitHub, {extractGistInfo} from '../github'
import History from '../history'
import {ToolbarButton} from './Toolbar'
import MenuPanel from './MenuPanel'
import DocumentView from './DocumentView'
... | JavaScript | 0.000002 | @@ -752,19 +752,8 @@
s =
-JSON.parse(
loca
@@ -793,17 +793,16 @@
ntials')
-)
%0A
@@ -838,16 +838,32 @@
s.login(
+JSON.parse(atob(
credenti
@@ -866,16 +866,18 @@
entials)
+))
%0A %7D%0A%0A
@@ -1981,16 +1981,21 @@
tials',
+btoa(
JSON.str
@@ -2025,16 +2025,17 @@
Token%7D))
+)
%0A%0A
|
a2233ee2f02b6ae3e67682503bbe688b0338859d | Add ability to sign in with Google | src/components/App.js | src/components/App.js | import firebase from 'firebase';
import React from 'react';
import styled from 'styled-components';
import ChallengeImportForm from './ChallengeImportForm';
import ChallengeList from './ChallengeList';
import Header from './Header';
import request from '../utils/request';
const Content = styled.main`
margin: 0 auto... | JavaScript | 0 | @@ -462,416 +462,1132 @@
,%0A
-%7D;%0A%0A componentDidMount() %7B%0A this.challengesRef = firebase.database().ref('challenges');%0A this.challengesRef.on('value', (snapshot) =%3E %7B%0A const challenges = snapshot.val() %7C%7C %7B%7D;%0A this.setState(%7B%0A challenges: Object.values(challeng... |
255ffc44f70f9cf74a4bd4dbd37afb3bda811a0c | case 426 | mobile-site/components/OptionButton.js | mobile-site/components/OptionButton.js | import React from 'react';
export default React.createClass({
getInitialState() {
return { scrollTop: 0 };
},
componentDidMount() {
window.addEventListener('scroll', this.scroll);
},
scroll() {
this.setState({ scrollTop: $('body').scrollTop() });
},
goTop() {
$('body').animate({ scrollTop... | JavaScript | 0.999398 | @@ -193,16 +193,103 @@
);%0A %7D,%0A
+ componentWillUnmount() %7B%0A window.removeEventListener('scroll', this.scroll);%0A %7D,%0A
scroll
|
29f6c7e774d4f6bcfadd9f8eabefde7014beaf3d | Fix comment to reflect the new (non-deprecated) way of accessing a class type. | src/classic/element/ReactElement.js | src/classic/element/ReactElement.js | /**
* Copyright 2014-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... | JavaScript | 0 | @@ -5284,16 +5284,17 @@
s. E.g.
+%60
%3CFoo /%3E.
@@ -5305,21 +5305,17 @@
=== Foo
-.type
+%60
.%0A // T
|
4a3173c9ea1d90aa74a0253cd98990c0da0a084a | add missing jsdoc | app/scripts/sidebar.js | app/scripts/sidebar.js | export default class Sidebar {
/**
* Constructs the Sidebar
* @param {GoogleMap} map The map
* @param {String} itemSelector The sidebar item selector
* @param {Object} hotspotsData The hotspot data
*/
constructor(map, itemSelector, hotspotsData) {
this.map = map;
this.hotspotsData = hotspotsD... | JavaScript | 0.000006 | @@ -2170,16 +2170,63 @@
%7D%0A %7D%0A%0A
+ /**%0A * Toggle the sidebar visibility%0A */%0A
toggle
|
ef9bc4d074099919a51bb8e7825d3457704ec4aa | update openfin config urls to match server [ARTP-877] | src/client/lib/downloadInstaller.js | src/client/lib/downloadInstaller.js | const https = require('https')
const getJSON = require('get-json')
const fs = require('fs')
const getInstallerGeneratorUrl = async (fileName, appJSONUrl, os) => {
const installerGeneratorUrl = `https://install.openfin.co/download/?config=${appJSONUrl}&fileName=${fileName}&os=${os}`;
if (os === 'osx') {
const ... | JavaScript | 0 | @@ -893,19 +893,22 @@
s://web-
-dev
+$%7Benv%7D
.adaptiv
@@ -939,15 +939,8 @@
ype%7D
-/$%7Benv%7D
.jso
|
8c1a8a62a9f9c7d641776f97b81518fdaaa1f96e | Update main.js | public/assets/main.js | public/assets/main.js |
var map = L.map('map').setView([40, -95], 4);
L.tileLayer(
'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpandmbXliNDBjZWd2M2x6bDk3c2ZtOTkifQ._QA7i5Mpkd_m30IGElHziw', {
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">Ope... | JavaScript | 0 | @@ -1924,16 +1924,17 @@
r /%3E%22+ (
+
(d%5B%22STAR
@@ -1988,16 +1988,17 @@
'') : %22%22
+
) + %22 (l
@@ -2007,24 +2007,49 @@
al)%3Cbr /%3E%22 +
+ ( (d%5B%22START TIME ET%22%5D) ?
d%5B%22START TI
@@ -2076,16 +2076,23 @@
%5D+/g,'')
+ : %22%22 )
+ %22 (ET
|
de9cd297158fccb4603a346ea3074715f0f549da | Update on master - Removed unnecessary server logging in ./server/serverData.js | server/serverData.js | server/serverData.js | // Note: comments done with
// http://patorjk.com/software/taag/#p=display&f=Doom&t=Logger
// ______ _
// | _ \ | |
// ___ ___ _ ____ _____ _ __| | | |__ _| |_ __ _
// / __|/ _ \ '__\ \ / / _ \ '__| | | / _` | __/ _` |
// \__ \ __... | JavaScript | 0 | @@ -1335,44 +1335,8 @@
%7D);%0A
- console.log('setting room data');%0A
//
|
4958d2c65a0595259100685946cdaa8629e50a8a | Fix typo | src/components/App.js | src/components/App.js | import {Component} from 'react'
import {HotKeys} from 'react-hotkeys'
import {observer} from 'mobx-react'
import DevTools from 'mobx-react-devtools'
import r from 'r-dom'
import {appState, chartStore} from '../stores'
import ChartBench from './ChartBench'
import NoteSelect from './NoteSelect'
@observer
export default... | JavaScript | 0.999999 | @@ -979,17 +979,16 @@
%60
-z
Version
|
d5b6574e3bc68136c67063c5307048dd03060436 | fix clibuild error | app/services/logger.js | app/services/logger.js | import Ember from "ember";
import config from "../config/environment";
export default Ember.Service.extend({
session: Ember.inject.service(),
rollbar: Ember.inject.service(),
getReason(reason) {
return reason instanceof Error || typeof reason !== "object" ?
reason : JSON.stringify(reason);
},
... | JavaScript | 0.000001 | @@ -478,24 +478,40 @@
.staging) %7B%0A
+ var data;%0A
var cu
|
af43be6bc14ec48cccf632c999efdb6ac617436e | Remove ident | src/components/Vue.js | src/components/Vue.js | let { VueLoaderPlugin } = require('vue-loader');
let ExtractTextPlugin = require('extract-text-webpack-plugin');
class Vue {
/**
* Required dependencies for the component.
*/
dependencies() {
if (Config.extractVueStyles && Config.globalVueStyles) {
return ['sass-resources-loader']... | JavaScript | 0 | @@ -3908,26 +3908,8 @@
= %7B
- ident: 'postcss'
%7D;%0A%0A
|
a543f86dc1219162002855fbda2f0e79c1c0f310 | add check for logged out | roundcube/src/main/php/js/routes.js | roundcube/src/main/php/js/routes.js | // declare namespace
var Roundcube = Roundcube || {};
Roundcube.routes = function() {
if (Roundcube.refreshInterval) {
if (OC.Router) {
OC.Router.registerLoadedCallback(function() {
var url = OC.Router.generate('roundcube_refresh');
setInterval(function() {
$.post(url);
}, Roundcube.refreshInterval ... | JavaScript | 0 | @@ -49,16 +49,55 @@
%7C%7C %7B%7D;%0A%0A
+/**%0A * Set client side refresh job%0A */%0A
Roundcub
@@ -120,16 +120,42 @@
ion() %7B%0A
+ if (OC.currentUser) %7B%0A
if (Ro
@@ -181,24 +181,26 @@
rval) %7B%0A
+
if (OC.Route
@@ -204,22 +204,17 @@
uter) %7B%0A
-
+%09
OC.Route
@@ -252,16 +252,18 @@
on(... |
f4bfb3ca744bf0290d1dff82c936a9d2c6ed2969 | update color blue | app/settings/config.js | app/settings/config.js | // configuration values of the app
const config = {}
// graph color values
config.setColors = color => {
// Atom's dark color theme
if (color === 'dark') {
config.text = '#abb2bf'
config.background = '#282c34'
config.darkBackground = '#21252b'
config.black = '#3b4251'
config.gray = '#abb2bf'
... | JavaScript | 0.000004 | @@ -760,14 +760,14 @@
= '#
-3399cd
+4078f2
'%0A
|
b2a4b8c94cdc230bb5a458bc49a72326cc038344 | add button to move "list" screen | src/components/app.js | src/components/app.js | // @flow
import React from 'react'
import {
StyleSheet,
View,
} from 'react-native'
import {COLOR} from '../constants'
// Import Reader from './reader'
import Button from './button'
import StatusBar from './status-bar'
const styles = StyleSheet.create({
container: {
flex: 1,
},
logo: {
flex: 5,
}... | JavaScript | 0 | @@ -317,17 +317,94 @@
%0A %7D,%0A
-b
+listButton: %7B%0A backgroundColor: COLOR.BRIGHT_RED,%0A flex: 1,%0A %7D,%0A scanB
utton: %7B
@@ -745,16 +745,210 @@
() =%3E %7B%0A
+ console.log('List is tapped')%0A %7D%7D%0A title=%22List%22%0A buttonStyle=%7Bstyles.listButton%7D%0A ... |
5757aa6de0fc71a3bd33225ace63465b2f9ce7a6 | Add per-category points display to the scoreboard | static/assets/js/hc_scoreboard.js | static/assets/js/hc_scoreboard.js | const SCOREBOARD_CATEGORIES = ["Service", "CTF"];
function build_hc_series(scores, categories = SCOREBOARD_CATEGORIES) {
return categories.map(cat => ({
id: cat,
name: cat,
data: scores.filter(doc => doc.type === cat).map(doc => doc.points),
}));
}
$(function () {
// Get initial c... | JavaScript | 0.000001 | @@ -3347,16 +3347,286 @@
ow: true
+,%0A dataLabels: %7B%0A enabled: true,%0A formatter: function() %7B return this.y; %7D,%0A style: %7B%0A fontSize: '2.2em',%0A %7D,%0A ... |
a1558755bbdfbf485bcdfd13923006dab460dd58 | Change how password creation when using social network is handled | server/services/user.service.js | server/services/user.service.js | 'use strict';
/**
* Users service
*/
var User = require('mongoose').model('User');
var encrypt = require('../utils/encryption');
var mailer = require('../utils/mailer');
var validator = require('validator');
var Promise = require('bluebird');
/**
* Module interface
*/
module.exports = {
getUsers: getUsers,
ge... | JavaScript | 0.000004 | @@ -1976,42 +1976,25 @@
if (
-facebookId %7C%7C twitterId %7C%7C googleI
+!userData.passwor
d) %7B
@@ -2032,16 +2032,33 @@
network
+, random password
%0A use
@@ -2105,37 +2105,8 @@
%7D%0A
- if (userData.password) %7B%0A
us
@@ -2185,20 +2185,16 @@
sword);%0A
- %7D%0A
if (fa
|
f1b22e87f1422e0f5017abc73bff59d4fa19fd91 | version mobile configs disk caching | Libraries/BatchedBridge/BatchedBridgedModules/__mocks__/NativeModules.js | Libraries/BatchedBridge/BatchedBridgedModules/__mocks__/NativeModules.js | /**
* Copyright 2004-present Facebook. All Rights Reserved.
*/
'use strict';
var NativeModules = {
I18n: {
translationsDictionary: JSON.stringify({
'Good bye, {name}!|Bye message': '¡Adiós {name}!',
}),
},
Timing: {
createTimer: jest.genMockFunction(),
deleteTimer: jest.genMockFunction(),... | JavaScript | 0 | @@ -974,16 +974,80 @@
l,%0A %7D,%0A
+ BuildInfo: %7B%0A appVersion: '0',%0A buildVersion: '0',%0A %7D,%0A
%7D;%0A%0Amodu
|
e7aea7c181a5a7619d0756e4e02f7694446c9289 | Remove not needed functions and move from other files | src/helpers/util.js | src/helpers/util.js | import _ from 'lodash';
/**
* Returns copy of an object with mapped values. Works really similar to
* lodash's mapValues, with difference that also EVERY nested object is
* also mapped with passed function.
*
* @param {Object} obj - object to map values of
* @param {Function} fn - function to map values with
*
... | JavaScript | 0 | @@ -527,52 +527,274 @@
nst
-isFunction = (obj) =%3E typeof obj === 'function';
+extendWithBind = (...args) =%3E%0A _.extendWith(...args, (objectValue, sourceValue, key, object, source) =%3E %7B%0A if (!_.isUndefined(objectValue)) %7B return objectValue; %7D%0A if (_.isFunction(sourceValue)) %7B return sourceVa... |
7c8973fd77c539ad22a4c1383285344b9f81286e | Fix benchRoundtrip benchmark | server/tests/serialize_bench.js | server/tests/serialize_bench.js | /**
* @license
* Copyright 2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | JavaScript | 0 | @@ -4701,20 +4701,20 @@
'../../
-demo
+core
');%0A co
|
297b844aa873bdb9856ae24589d9d00ece04662c | Implement fix from #5129 for main branch. | assets/js/components/surveys/SurveyViewTrigger.js | assets/js/components/surveys/SurveyViewTrigger.js | /**
* SurveyViewTrigger component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2... | JavaScript | 0 | @@ -717,43 +717,8 @@
es';
-%0A%0A/**%0A * WordPress dependencies%0A */
%0Aimp
@@ -726,21 +726,20 @@
rt %7B use
-Effec
+Moun
t %7D from
@@ -744,26 +744,17 @@
om '
-@wordpress/element
+react-use
';%0A%0A
@@ -1183,516 +1183,142 @@
nst
-isTimedOut = useSelect( ( select ) =%3E%0A%09%09select( CORE_USER ).isSurveyTim... |
c5c36f6549df807c71f81bfbe01e39facb255ae5 | Update searchListings API call to pass information via query parameters | app/actions/index.js | app/actions/index.js | import axios from 'axios';
const ROOT_URL = (process.env.NODE_ENV === 'production') ? 'https://antfinder-api.herokuapp.com' : 'http://localhost:3000';
// const ROOT_URL = 'https://antfinder-api.herokuapp.com';
// const ROOL_URL = 'http://localhost:3000'; // For local testing
const config = {
withCredentials: true... | JavaScript | 0 | @@ -2558,19 +2558,31 @@
listings
-%60,
+?listing_type=$
%7B listin
@@ -2591,17 +2591,27 @@
type
-,
+ %7D&query=$%7B
query %7D
, co
@@ -2606,16 +2606,17 @@
query %7D
+%60
, config
|
284f33c5784ddf56813eb75fbce8e17568f7c870 | Check if text content has been changed | app/tests/scrambler.js | app/tests/scrambler.js | describe('scrambler tests', function(){
beforeEach(function() {
fixture.setBase('fixtures')
});
beforeEach(function(){
this.sample = fixture.load('sample.html');
runSpy = spyOn(scrambler._scrambler, "run").and.callThrough();
jasmine.clock().install();
});
afterEach... | JavaScript | 0.000014 | @@ -1,8 +1,86 @@
+function removeWhitespace(string) %7B%0A return string.replace(/%5Cs+/g, '');%0A%7D%0A%0A
describe
@@ -521,32 +521,109 @@
', function() %7B%0A
+ var originalContent = removeWhitespace(this.sample%5B0%5D.textContent);%0A%0A
scramble
@@ -804,53 +804,89 @@
-// TODO: check if th... |
51a19a8ace41d9c9feccdcf6e2008d9070f957b2 | Update [gemrank] regex to match "1st" (#2743) | services/gem/gem-rank.tester.js | services/gem/gem-rank.tester.js | 'use strict'
const Joi = require('joi')
const isOrdinalNumber = Joi.string().regex(/^[1-9][0-9]+(ᵗʰ|ˢᵗ|ⁿᵈ|ʳᵈ)$/)
const isOrdinalNumberDaily = Joi.string().regex(
/^[1-9][0-9]+(ᵗʰ|ˢᵗ|ⁿᵈ|ʳᵈ) daily$/
)
const t = (module.exports = require('../create-service-tester')())
t.create('total rank (valid)')
.get('/rt/rspec... | JavaScript | 0.000001 | @@ -163,33 +163,33 @@
(%0A /%5E%5B1-9%5D%5B0-9%5D
-+
+*
(%E1%B5%97%CA%B0%7C%CB%A2%E1%B5%97%7C%E2%81%BF%E1%B5%88%7C%CA%B3%E1%B5%88) da
|
d3887cee9624f8cdefd243649d3280ad2231aff8 | Use babel helper modules on es2015 sources | babel-es2015.config.js | babel-es2015.config.js | module.exports = {
plugins: ['@babel/plugin-proposal-async-generator-functions'],
env: {
es: {
plugins: ['./babel-plugin-pure-curry']
},
cjs: {
plugins: [
'add-module-exports',
'@babel/plugin-transform-modules-commonjs'
]
}
}
};
| JavaScript | 0 | @@ -24,16 +24,97 @@
ugins: %5B
+%0A %5B'@babel/plugin-transform-runtime', %7B useESModules: true, corejs: 2 %7D%5D,%0A
'@babel/
@@ -155,16 +155,19 @@
nctions'
+%0A
%5D,%0A env
@@ -166,24 +166,111 @@
%5D,%0A env: %7B%0A
+ test: %7B%0A plugins: %5B%5B'@babel/plugin-transform-runtime', %7B corejs: ... |
57a0299a0dd3a59431d6ebc9db1c1c69daf24fa7 | Fix Merge Problem | app/client/router.js | app/client/router.js | // This is where iron:router should go
lili = function () {
return 2;
}
| JavaScript | 0.000002 | @@ -69,8 +69,45 @@
rn 2;%0A%7D%0A
+test = function() %7B%0A return 1;%0A%7D;%0A
|
05f3260318ec736ebeff9f9ac42933f9e04e0653 | add check body | modules/haproxy/controllers/setting.js | modules/haproxy/controllers/setting.js | 'use strict';
const mongoose = require('mongoose');
const express = require('express');
const path = require('path');
const db = require('../../../lib/db');
const checkIdOnRequest = require('../../common').checkIdOnRequest;
const moduleDB = require('../db');
const app = express();
const router = express.Router();
... | JavaScript | 0 | @@ -153,16 +153,52 @@
ib/db');
+%0A%0Aconst _ = require('../../common');
%0Aconst c
@@ -1237,32 +1237,280 @@
req.body.desc;%0A%0A
+ if (!_.isStringParam(req.body, 'name')) %7B%0A return next(new Error('Missing %22name%22 property'));%0A %7D%0A%0A if (!_.isStringParam(req.body, 'desc')... |
fd03712e2bbd10356373dcaf8e3b7cc993711d6e | add click log | templates/js-template-runtime/src/app.js | templates/js-template-runtime/src/app.js |
var HelloWorldLayer = cc.Layer.extend({
isMouseDown:false,
helloImg:null,
helloLabel:null,
circle:null,
sprite:null,
ctor:function () {
//////////////////////////////
// 1. super init first
this._super();
/////////////////////////////
// 2. add a menu i... | JavaScript | 0.000002 | @@ -731,21 +731,33 @@
-history.go(-1
+cc.log(%22Menu is clicked!%22
);%0A
|
56996d204bb1401bde293433185b68866c8eb8a4 | fix minor mistake | src/main/js/ephox/snooker/model/TableGrid.js | src/main/js/ephox/snooker/model/TableGrid.js | define(
'ephox.snooker.model.TableGrid',
[
'ephox.compass.Arr',
'ephox.peanut.Fun',
'ephox.snooker.model.GridRow'
],
function (Arr, Fun, GridRow) {
var getColumn = function (grid, index) {
return Arr.map(grid, function (row) {
return GridRow.getCell(grid, index);
});
};... | JavaScript | 0.99764 | @@ -283,20 +283,19 @@
getCell(
-grid
+row
, index)
|
9d84f5128fa28cac19ae3682b578714efc354b5a | change ambient light color | components/famous-demos/torus/torus.js | components/famous-demos/torus/torus.js | BEST.component('famous-demos:torus', {
tree: 'torus.html',
behaviors: {
'.my-mesh-container': {
'origin': [0.5, 0.5],
'mount-point': [0.5, 0.5],
'size': function(canvasSize) {
return canvasSize;
},
'position': function(position)... | JavaScript | 0.000001 | @@ -1332,16 +1332,20 @@
Color: '
+dark
blue',%0A
|
c6cb9ce2a525f5ac35fc896ef6a30c4e2fe29b5c | Fix calendar colors | public/js/calendar.js | public/js/calendar.js | //
(function() {
// Launch calendar
var calendar = $('#calendar');
calendar.fullCalendar({
header: {
left: 'title prev,next today',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
selectable: true,
unselectCancel: '.popover',
firstDay: 1,
timeFormat: 'H:mm',
ev... | JavaScript | 0.000011 | @@ -552,73 +552,8 @@
) %7B%0A
- source.color = 'hsl(' + (index %25 6) * 60 + ', 100%25, 30%25)';%0A
|
1d7830812f4e1177319bbc8e25d9519e1ee7d7bd | Remove d3.chart sourceMappingURL comment, causes FF warning. | velo/static/javascripts/d3.chart.min.js | velo/static/javascripts/d3.chart.min.js | (function(t){"use strict";function e(t){var e,r,n,i;if(!t)return t;for(r=arguments.length,e=1;r>e;e++)if(n=arguments[e])for(i in n)t[i]=n[i];return t}var r=t.d3,n=Object.hasOwnProperty,i=function(t,e){if(!t)throw Error("[d3.chart] "+e)};i(r,"d3.js is required"),i("string"==typeof r.version&&r.version.match(/^3/),"d3.js... | JavaScript | 0 | @@ -5141,42 +5141,4 @@
s);%0A
-//@ sourceMappingURL=d3.chart.min.map%0A
|
f2c9ad2387836eb693ddc1777720de9dad3ef232 | Store the data-tumblelog attribute in a variable | contentscript.js | contentscript.js | var openBlockList = function () {
$('document').ready( function () {
$("#blocked_blogs > .accordion_trigger_wrapper > .accordion_trigger").click();
});
}
var block = function (blog) {
$("#blocked_blogs > .accordion_content > .block-input > .text > #block").val(blog);
setTimeout(func... | JavaScript | 0.000027 | @@ -1274,36 +1274,48 @@
gth %3E 0) %7B%0A%09%09%09%09%09
-if (
+var tumblelog =
(mutation.addedN
@@ -1345,32 +1345,52 @@
data-tumblelog')
+;%0A%09%09%09%09%09if (tumblelog
!== null) %7B%0A%09%09%09
@@ -1433,52 +1433,8 @@
%22 +
-(mutation.addedNodes%5B0%5D).getAttribute('data-
tumb
@@ -1430,34 +1430,32 @@
t: %... |
cffa5d85b09b20b5a7a17c50c0bb183435350c8a | check for binding value first before the expression closes #995 | src/core/generator.js | src/core/generator.js | import Config from '../config';
import {
getScope,
getDataAttribute,
isObject,
toArray,
find,
getPath,
hasPath,
isNullOrUndefined,
isCallable,
deepParseInt,
} from './utils';
/**
* Generates the options required to construct a field.
*/
export default class Generator {
static generate (el, bind... | JavaScript | 0 | @@ -1378,51 +1378,50 @@
*
-%0A * @param %7B*%7D el%0A * @param %7B*%7D binding
+ Resolves the rules defined on an element.
%0A
@@ -1467,16 +1467,35 @@
%7B%0A if
+ (!binding.value &&
(!bindi
@@ -1520,16 +1520,17 @@
ression)
+)
%7B%0A
|
c83e73127beddee5cb7685d9037d715c3339bb27 | set node name by replacing into GraphNode object | src/inputAdapter.js | src/inputAdapter.js | var Class = require('class-wrapper').Class;
var GraphNode = require('./src/GraphNode');
/**
* Input adapter
*
* It converts the raw objects into GraphNodes and prepares node of interest for futher processing
*
* @param {Object} [properties] - Adapter properties. Any of already defined properties can be redefined ... | JavaScript | 0.000003 | @@ -68,12 +68,8 @@
('./
-src/
Grap
@@ -2329,16 +2329,34 @@
Data, %7B%0A
+%09%09%09name: noiName,%0A
%09%09%09paren
@@ -2492,24 +2492,154 @@
nt node%0A%09 *%0A
+%09 * The first node in stack is the actual parent node of the NOI. The last parent node is the root node of the inheritance chain.%0A
%09 * It also
@@ -... |
625101fde0df3b6325d222657d9df81570bc6bd7 | Put focus on input field after language switch. | assets/js/app.js | assets/js/app.js | /**
* Copyright Ben Stones, 2016. All rights reserved.
*
* @author Ben Stones (ben@b3ns.com)
*
* Do not use in your own projects without prior permission.
*/
$(document).ready(function() {
var alphabet = {
a: {
english: 'Alpha',
deutsch: 'Anton',
animals: 'Anaconda... | JavaScript | 0 | @@ -5163,16 +5163,80 @@
mInput);
+%0A%0A // Put focus on input field%0A formInput.focus();
%0A %7D);
|
0ec2200d9d2bbee1521f9adf7c79d7318513f32a | Fix `log` in modulr.js to avoid undefined variable errors | assets/modulr.js | assets/modulr.js | var modulr = (function() {
var _modules = {},
_aliases = {},
_cache = {},
PREFIX = '__module__'; // Prefix identifiers to avoid issues in IE.
function log(str) {
if (console && console.log) { console.log(str); }
}
function require(identifier) {
var m, key = PREFIX + identifier;
... | JavaScript | 0.000001 | @@ -16,16 +16,22 @@
unction(
+global
) %7B%0A va
@@ -194,16 +194,23 @@
if (
+global.
console
@@ -1232,11 +1232,15 @@
%7D;%0A%7D)(
+this
);%0A
|
01c682f34e36d3d275639dd8df73350ba80f4685 | Fix regression in sibling navigation | webapp/public/javascripts/events_nav.js | webapp/public/javascripts/events_nav.js | $j(function() {
$j('.events_nav').change(function(event) {
var selector = $j(this);
var cancelled = true;
var dialogButtons = function() {
var buttons = {};
buttons[i18n.t('save_and_exit')] = function() {
cancelled = false;
$j('#events_nav_spinner').show();
$j(formWat... | JavaScript | 0.000014 | @@ -504,16 +504,19 @@
her.form
+.id
);%0A
|
359e7e48b9f92321b3614305a08b976e2b43ea8d | fix The Y axis label does not work on IE browser | webapp/src/chart/renderer/axis-label.js | webapp/src/chart/renderer/axis-label.js | // import d3 from 'd3'
/*
function wrap (text, width) {
text.each(function () {
let text = d3.select(this)
let words = text.text().split('').reverse()
let word
let line = []
let sumLineNumber = words.length
let lineNumber = 1
let lineHeight = 1.1
let tspan = text.text(null).append('ts... | JavaScript | 0.000002 | @@ -876,16 +876,54 @@
%7D)%0A%7D%0A*/
+%0A// import browser from 'util/browser'
%0A%0Afuncti
@@ -1929,17 +1929,15 @@
.
-style(%0A
+attr(%7B%0A
@@ -1957,68 +1957,28 @@
orm'
-,%0A 'rotate(-90deg)'%0A )%0A .attr(%7B
+: 'rotate(-90 0 0)',
%0A
|
ed51f6a038e1b7ae203574a31f68539d26040f3f | add change event to datepicker | webroot/js/app/components/DatePicker.js | webroot/js/app/components/DatePicker.js | App.Components.DatePickerComponent = Frontend.Component.extend({
setup: function($elements) {
$elements.each(function(i, element) {
var $container = $(element);
if ($container.data('datePickerApplied')) {
return;
}
var $selectContainer = $con... | JavaScript | 0.000001 | @@ -2861,32 +2861,79 @@
select = $(el);%0A
+ var previousValue = $select.val();%0A
if($
@@ -3524,32 +3524,130 @@
;%0A %7D%0A
+ if (previousValue != $select.val()) %7B%0A $select.change();%0A %7D%0A
%7D);%0A
|
83c4d0ca903f905f332179a86461fbd8c220bc4b | Comment deep-db autoscaling until scale down ready | src/deep-db/lib/DB.js | src/deep-db/lib/DB.js | /**
* Created by AlexanderC on 6/15/15.
*/
'use strict';
import Kernel from 'deep-kernel';
import Vogels from 'vogels';
import {ExtendModel} from './Vogels/ExtendModel';
import {ModelNotFoundException} from './Exception/ModelNotFoundException';
import Validation from 'deep-validation';
import Utils from 'util';
imp... | JavaScript | 0 | @@ -3279,24 +3279,25 @@
else %7B%0A
+%0A
this._in
@@ -3284,24 +3284,90 @@
%7B%0A%0A
+// @todo: uncomment when scale down functionality ready%0A //
this._initVo
|
8e4a34108c7367b0b528b944994c75c7cf3b60cc | disable stack and merge options "by color" when color is not a property #2207 (#2289) | src/components/dialogs/stack/stack.js | src/components/dialogs/stack/stack.js | import * as utils from 'base/utils';
import Component from 'base/component';
import Dialog from 'components/dialogs/_dialog';
import draggablelist from 'components/draggablelist/draggablelist';
/*
* stack dialog
*/
var Stack = Dialog.extend({
/**
* Initializes the dialog component
* @param config c... | JavaScript | 0 | @@ -1874,24 +1874,314 @@
s._super();%0A
+ if(this.model.state.marker.color.use !== %22property%22) %7B%0A if(this.stack.use == %22property%22) %7B %0A this.setModel(%22stack%22, %22none%22);%0A return;%0A %7D %0A else if(this.group.merge) %7B%0A this.setModel(%22mer... |
95301ee2209048f10ebd723ecf8bd93d95d359b5 | Fix tv4 language loading | src/components/formula/formulaDemo.js | src/components/formula/formulaDemo.js | 'use strict';
require('../../');
require('formula');
let angular = require('angular');
angular
.module('formulaDemo', ['npdcCommon', 'formula'])
.controller('FormulaCtrl', ($mdDialog, $scope, $timeout, formula, formulaAutoCompleteService,
fileFunnelService, chronopicService, npdcAppConfig, NpolarApiResource) ... | JavaScript | 0.000025 | @@ -1383,12 +1383,12 @@
: 'n
-o_NB
+b_NO
',%0A
|
cac9754dd8bdbb8cd771ee2b87dd57830b9b3e07 | reset the run prop | browser/ui/editor.js | browser/ui/editor.js | var ever = require('ever')
var deepEqual = require('deep-equal')
module.exports = Editor
function Editor(world) {
var display = Display(world)
var code = Code(world)
}
var helpText = require('../../help.json').join('\n')
function Code(world) {
var ta = document.createElement('textarea')
ta.className... | JavaScript | 0.000001 | @@ -2168,17 +2168,18 @@
set(
-'
+%7B
source
-',
+ :
ta.
@@ -2175,32 +2175,46 @@
ource : ta.value
+, run : true %7D
)%0A %7D%0A
|
df76149931d79d4d7367adfc28cf49d3d071bb9a | Fix test | packages/strapi-plugin-upload/admin/src/components/VideoPreview/tests/VideoPreview.test.js | packages/strapi-plugin-upload/admin/src/components/VideoPreview/tests/VideoPreview.test.js | import React from 'react';
import { screen, render, fireEvent } from '@testing-library/react';
import { ThemeProvider } from 'styled-components';
import VideoPreview from '..';
import themes from '../../../../../../strapi-admin/admin/src/themes';
jest.mock('react-intl', () => ({
// eslint-disable-next-line react/pro... | JavaScript | 0.000004 | @@ -1858,39 +1858,45 @@
r('video')).toBe
-Visible
+InTheDocument
();%0A %7D);%0A%0A it(
|
197e7f82bfba70a3ace8b908267a09e3da0c2d5f | fix to handle empty string properly | src/ecma-debugger/view-commandline.js | src/ecma-debugger/view-commandline.js | (function()
{
View = function(id, name, container_class)
{
/* a quick hack */
var self = this;
var __frame_index = -1;
var __console_output = null;
var __console_input = null;
var __prefix = null;
var handleEval = function(xml, runtime_id)
{
var value_type = xml.getNodeDat... | JavaScript | 0.000021 | @@ -551,32 +551,59 @@
t.render(%5B'pre',
+ return_value.firstChild &&
return_value.fi
@@ -612,32 +612,38 @@
tChild.nodeValue
+ %7C%7C ''
%5D);%0A va
|
fe3040fffe7f34c8f8b8e1cb849f09138debbfab | simplify generator test (#2756) | src/execution/__tests__/lists-test.js | src/execution/__tests__/lists-test.js | import { expect } from 'chai';
import { describe, it } from 'mocha';
import { parse } from '../../language/parser';
import { buildSchema } from '../../utilities/buildASTSchema';
import { execute, executeSync } from '../execute';
describe('Execute: Accepts any iterable as list value', () => {
function complete(roo... | JavaScript | 0 | @@ -811,26 +811,25 @@
nction*
-yieldItems
+listField
() %7B%0A
@@ -886,44 +886,8 @@
%7D
-%0A const listField = yieldItems();
%0A%0A
|
a112333c40467f6f3d8b652602db228455206a8e | remove :visible (popup) check from UIOutLogSystem | src/game/systems/ui/UIOutLogSystem.js | src/game/systems/ui/UIOutLogSystem.js | define([
'ash', 'game/GlobalSignals', 'game/nodes/LogNode', 'game/constants/UIConstants',
], function (Ash, GlobalSignals, LogNode, UIConstants) {
var UIOutLogSystem = Ash.System.extend({
logNodes: null,
lastUpdateTimeStamp: 0,
updateFrequency: 1000 * 15,
constructor: function () {
}... | JavaScript | 0 | @@ -847,38 +847,31 @@
if (
-$(%22.popup:visible%22).length %3E 0
+this.gameState.isPaused
) re
|
9877a28b9f02639c37e6bd88ea91e820b0a218f9 | fix typo | src/platforms/web/api-setup.js | src/platforms/web/api-setup.js | import { Lbry } from 'lbry-redux';
import apiPublishCallViaWeb from './publish';
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
export const SDK_API_URL = `${process.env.SDK_API_URL}/api/v1/proxy` || 'https://api.lbry.tv/api/v1/proxy';
Lbry.setDaemonConnectionString(SDK_API_URL);
Lbry.setOverride(
'publish',
... | JavaScript | 0.999991 | @@ -159,11 +159,8 @@
L =
-%60$%7B
proc
@@ -182,23 +182,8 @@
_URL
-%7D/api/v1/proxy%60
%7C%7C
|
3496d0db7cc7250f90be44e7a095c70ed3c30f0d | fix link scroll handling | components/link/index.js | components/link/index.js | import style from './style'
import { withRouter } from 'next/router'
const Link = ({
button,
children,
handleClick,
handleFocus,
handleRefresh,
href,
nav,
primary,
router,
secondary,
subnav
}) => {
const defaultHandleClick = e => {
if (href.indexOf('http') === -1) {
e.preventDefault()... | JavaScript | 0 | @@ -605,13 +605,12 @@
(!is
-Local
+Hash
) %7B%0A
|
cd335d2108e177034b7748482e54d35c5da7c8ed | simplify factory using ES6 | src/popart/FX/EffectFactory.js | src/popart/FX/EffectFactory.js | import { RuttEtraCore, RuttEtraDisplay } from './RuttEtra/RuttEtra';
import RuttEtraController from './RuttEtra/RuttEtraController';
import { SynthesizerCore, SynthesizerDisplay } from './Synthesizer/Synthesizer';
import SynthesizerController from './Synthesizer/Synthesi... | JavaScript | 0.000001 | @@ -1753,1659 +1753,598 @@
';%0A%0A
-var effectFactory = %7B%0A lookupComponentByName: function(name) %7B%0A let lookup = %7B%0A 'SynthesizerDisplay': SynthesizerDisplay,%0A 'SynthesizerController': SynthesizerController,%0A 'SynthesizerCore': SynthesizerCore,%0A ... |
1c20633039a600ef584495f56bde493914f211e6 | Use the term Graph (not dataset) to description SPARQL RDF Datasets | components/rdf-update.js | components/rdf-update.js | // rdf-update.js
var _ = require('underscore');
var Promise = require('promise');
var Handlebars = require('handlebars');
var rdfstore = require('rdfstore');
var basenode = require('./base-node');
var promiseComponent = require('./promise-component');
exports.getComponent = promiseComponent({
description: "Execu... | JavaScript | 0.00052 | @@ -892,23 +892,21 @@
the
-d
+D
efault
-dataset
+Graph
%22,%0A
@@ -1078,25 +1078,21 @@
for
-the named dataset
+a Named Graph
%22,%0A
|
8aaf43416f77e622b749f4362489ee84a3d0bd8c | put the svg defs nodes into the header/footer of the compile script | concat-svg/concat-svg.js | concat-svg/concat-svg.js | #!/usr/bin/env node
var fs = require('fs');
var cheerio = require('cheerio');
var path = require('path');
var cheerioOptions = {xmlMode: true};
var files = process.argv.slice(2);
function read(file) {
var content = fs.readFileSync(file, 'utf8');
return cheerio.load(content, cheerioOptions);
}
function transmogr... | JavaScript | 0 | @@ -635,36 +635,8 @@
%0A%7D%0A%0A
-console.log('%3Csvg%3E%3Cdefs%3E');%0A
file
@@ -751,34 +751,4 @@
%7D);%0A
-console.log('%3C/defs%3E%3C/svg%3E');%0A
|
1c580c053afd8dc5c3a7a31f315a990efa1c8545 | change the way to display Instance on call tree | src/js/call-tree.js | src/js/call-tree.js | __$__.CallTree = {};
__$__.CallTree.Initialize = function() {
__$__.CallTree.rootNode = new __$__.CallTree.Main('main', []);
};
/**
* @type {__$__.CallTree.Node}
*/
__$__.CallTree.Node = class Node {
/**
* @param {String} label
* @param {Array of __$__.CallTree.Node} callPath
*/
construc... | JavaScript | 0.000001 | @@ -2693,17 +2693,18 @@
urn 'new
-
+%5Cn
' + this
|
97fab7ee403a81d9786351c31320991b38f9b8f1 | enable type checking for `test/integration/instance-lookup-test.js` | test/integration/instance-lookup-test.js | test/integration/instance-lookup-test.js | const fs = require('fs');
const InstanceLookup = require('../../src/instance-lookup').InstanceLookup;
const homedir = require('os').homedir();
const assert = require('chai').assert;
const AbortController = require('node-abort-controller');
var RESERVED_IP_ADDRESS = '192.0.2.0'; // Can never be used, so guaranteed to f... | JavaScript | 0 | @@ -1,12 +1,26 @@
+// @ts-check%0A%0A
const fs = r
@@ -37,84 +37,8 @@
');%0A
-const InstanceLookup = require('../../src/instance-lookup').InstanceLookup;%0A
cons
@@ -113,20 +113,21 @@
assert;%0A
-cons
+impor
t AbortC
@@ -136,26 +136,21 @@
troller
-= require(
+from
'node-ab
@@ -164,17 +164,93 @@
troller'
-)
+;... |
e005348fba63ff1331c4cfdd084ddde9039a7219 | remove toggle function | www/js/controllers/payCtrlController.js | www/js/controllers/payCtrlController.js | angular.module('app.controllers')
.controller('payCtrl', function($scope, DishesService, SharesService, BillService, OptionsService, BillService, HistoryService, ionicToast) {
var $expenseData = DishesService.all();
var $people = SharesService.all();
var $bill = BillService.getBill();
var $totalValue = 0;
var $to... | JavaScript | 0.000002 | @@ -579,17 +579,16 @@
m);%0A%09%7D%0A%0A
-%09
%0A%09$scope
@@ -2596,16 +2596,18 @@
team) %7B%0A
+//
%09%09angula
@@ -2684,16 +2684,18 @@
dden%22);%0A
+//
%09%09angula
|
4dc84947b544847a0ea361f38db0655e6eaf7f9e | fix dependency to scenes managing class #core (cherry picked from commit d59a7c7) | www/js/mygame/scenes/installMyScenes.js | www/js/mygame/scenes/installMyScenes.js | G.installMyScenes = (function (SceneManager, Width, Height) {
"use strict";
function installMyScenes(sceneServices) {
// create your scenes and add them to the scene manager
var sceneManager = new SceneManager();
sceneManager.add(function (next) {
var stage = sceneServices... | JavaScript | 0 | @@ -29,23 +29,17 @@
n (Scene
-Manager
+s
, Width,
@@ -196,23 +196,17 @@
ar scene
-Manager
+s
= new S
@@ -209,23 +209,17 @@
ew Scene
-Manager
+s
();%0A%0A
@@ -228,23 +228,17 @@
scene
-Manager
+s
.add(fun
@@ -415,23 +415,17 @@
rn scene
-Manager
+s
;%0A %7D%0A
@@ -468,15 +468,9 @@
cene
-Manager
+s
, ... |
16a1a1cd26430b212f2241aae220b7c8d63d43e3 | Remove useless function | src/js/utilities.js | src/js/utilities.js | function isNumber(n) {
return typeof n === 'number' && !isNaN(n);
}
function isUndefined(n) {
return typeof n === 'undefined';
}
function toArray(obj, offset) {
var args = [];
// This is necessary for IE8
if (isNumber(offset)) {
args.push(offset);
}
return args.slice.appl... | JavaScript | 0.000904 | @@ -4023,160 +4023,4 @@
%7D%0A
-%0A function toString(o) %7B%0A var items =%5B%5D;%0A%0A $.each(o, function (i, n) %7B%0A items.push(%5Bi, n%5D.join(': '))%0A %7D);%0A%0A return items.join(', ');%0A %7D%0A
|
587724875b27ef9f80c722790188cc1f4d949581 | add bg to loader | app/js/src/Loader.js | app/js/src/Loader.js | export default class Loader extends createjs.LoadQueue {
constructor() {
super();
createjs.Sound.alternateExtensions = ['mp3'];
this.installPlugin(createjs.Sound);
this.loadManifest([
{ id: 'char', src: 'img/monster-sprite.png' },
{ id: 'spike', src: 'img/spike.png' },
{ id: 'back', ... | JavaScript | 0.000001 | @@ -285,32 +285,180 @@
g/spike.png' %7D,%0A
+ %7B id: 'sky', src: 'img/bg/sky.png' %7D,%0A %7B id: 'mountain', src: 'img/bg/mountain.png' %7D,%0A %7B id: 'ground', src: 'img/bg/ground.png' %7D,%0A
%7B id: 'bac
|
ff9fed688b2e0c4e32f657a18f4cb7be432d91be | Update backend.js | api/backend.js | api/backend.js | var pubnub = PUBNUB.init({
publish_key: 'pub-c-f1c1301a-f5c5-4038-8f35-a4ec81044399',
subscribe_key: 'sub-c-2ed8a5ea-014a-11e4-b97b-02ee2ddab7fe'
});
pubnub.subscribe({
channel: 'hasreon_chat',
message: function (m) {
interpret(m);
}
});
var msgArray;
function interpret(recv) {
msgArray = recv.split("~");
/... | JavaScript | 0.000001 | @@ -524,16 +524,145 @@
ameters%0A
+%09%09if(msgArray%5B0%5D == %22/init%22) %7B%0A%09%09%09pubnub.publish(%7B%0A%09%09%09%09channel: %22hasreon_chat%22,%0A%09%09%09%09message: %22:get('fairfalcongate')%22%0A%09%09%09%7D);%0A%09%09%7D%0A
%09%09%0A%09%09if(
|
189a7cb8bc146b0482512c4a4589671725f0e5fd | fix float number | slackbot/commands.js | slackbot/commands.js | 'use strict'
const get = require('../src/request')
const { auth, url, goal } = require('../src/configs')
const parser = require('../src/parser')
const {
countIssuesByType,
countIssuesByDifficulty,
sumPontuation,
sumTime,
scoredIssues
} = require('../src/filters')
const loadIssues = ( user ) => {
... | JavaScript | 0.000021 | @@ -1335,16 +1335,17 @@
tos, *$%7B
+(
100 - pe
@@ -1348,24 +1348,36 @@
- percentage
+).toFixed(2)
%7D%25* para bat
|
4ad08cf52f4b106dcceec16d43d3d26dd48c81b4 | Add thousand seperator (superior version with dots) | src/resources/js/statistics.js | src/resources/js/statistics.js | $(document).ready(() => {
const formatNumber = number => number.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1.');
let chart;
const updateStatistics = statistics => {
$('#alltime').html(`All-time clicks: ${formatNumber(statistics.alltime)}`);
$('#daily').html(`Today's clicks: ${formatNumber(statistics.daily... | JavaScript | 0 | @@ -1027,16 +1027,331 @@
%09%09%09%09%09%7D%5D%0A
+%09%09%09%09%09%7D,%0A%09%09%09%09%09options: %7B%0A%09%09%09%09%09%09scales: %7B%0A%09%09%09%09%09%09%09yAxes: %5B%7B%0A%09%09%09%09%09%09%09%09ticks: %7B%0A%09%09%09%09%09%09%09%09%09callback: value =%3E value.toLocaleString('de-DE'),%0A%09%09%09%09%09%09%09%09%7D%0... |
6d0f9547cfacc64f54acc31ba42ac2399048ce0c | remove debugger statements | platform/nativescript/compiler/directives/model.js | platform/nativescript/compiler/directives/model.js | import { genComponentModel, genAssignmentCode } from 'compiler/directives/model'
import { isKnownView, getViewMeta } from '../../element-registry'
export default function model(el, dir) {
if (el.type === 1 && isKnownView(el.tag)) {
genViewComponentModel(el, dir.value, dir.modifiers)
} else {
genComponentMo... | JavaScript | 0.000261 | @@ -413,19 +413,8 @@
) %7B%0A
- debugger%0A
co
@@ -1040,17 +1040,8 @@
%7D) %7B
-debugger;
$%7Bas
|
21170be839a7ace82dcd5cb59b10071e3df95672 | Add the auth path for onboarding | src/routes/onboarding/index.js | src/routes/onboarding/index.js | function getRoute(path, subComponentName) {
return {
path: path,
subComponentName: subComponentName,
getComponents(location, cb) {
require.ensure([], (require) => {
cb(null, require('../../components/views/OnboardingView'))
})
},
}
}
export default {
path: 'onboarding',
onEn... | JavaScript | 0.000002 | @@ -104,16 +104,78 @@
ntName,%0A
+ onEnter() %7B%0A require('../../networking/auth')%0A %7D,%0A
getC
|
542edd9ace1d5998569c89106c14aa80969c4ccb | Make invert colour-aware | src/filters/invert.js | src/filters/invert.js | // @flow
import { BOOL } from "constants/controlTypes";
import { cloneCanvas, fillBufferPixel, getBufferIndex } from "utils";
export const optionTypes = {
invertAlpha: { type: BOOL, default: false }
};
export const defaults = {
invertAlpha: optionTypes.invertAlpha.default
};
const invert = (
input: HTMLCanvas... | JavaScript | 0.002296 | @@ -162,114 +162,348 @@
vert
-Alpha: %7B type: BOOL, default: false %7D%0A%7D;%0A%0Aexport const defaults = %7B%0A invertAlpha: optionTypes.invertAlpha
+R: %7B type: BOOL, default: true %7D,%0A invertG: %7B type: BOOL, default: true %7D,%0A invertB: %7B type: BOOL, default: true %7D,%0A invertA: %7B type: BOOL, de... |
36058544a52e54e2ba55214b18b90a8dfd1547c3 | Make Mouse a singleton object. | src/flash/ui/Mouse.js | src/flash/ui/Mouse.js | function Mouse() {
}
Object.defineProperties(Mouse, {
cursor: describeAccessor(
function () {
return 'auto'; // TODO
},
function (val) {
notImplemented();
}
),
supportsCursor: describeAccessor(function () {
return true; // TODO
}),
supportsNativeCursor: describeAccessor(functi... | JavaScript | 0 | @@ -1,55 +1,34 @@
-function Mouse() %7B%0A%7D%0A%0AObject.defineProperties(Mouse
+var Mouse = Object.create(null
, %7B%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.