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
5505342096a7fe5aea0cd7af5c92731786684ca3
test commit
components/app/explore/DatasetWidget.js
components/app/explore/DatasetWidget.js
import React from 'react'; import PropTypes from 'prop-types'; import MediaQuery from 'react-responsive'; import classnames from 'classnames'; import { Autobind } from 'es-decorators'; // Redux import { connect } from 'react-redux'; import { Link } from 'routes'; import { toggleLayerGroup } from 'redactions/explore'; ...
JavaScript
0.000001
@@ -2907,32 +2907,72 @@ sClick(event) %7B%0A + console.log('handle tag clicked!');%0A const %7B data
b07b9e1cf83fd72e75a04bb71e6e56597d38a90c
Remove unused attribute from Releases tab
src/libs/add-releases-tab.js
src/libs/add-releases-tab.js
import select from 'select-dom'; import {h} from 'dom-chef'; import * as icons from './icons'; import * as pageDetect from './page-detect'; const repoUrl = pageDetect.getRepoURL(); function appendReleasesCount(count) { if (!count) { return; } select('.reponav-releases').append(<span class="Counter">{count}</spa...
JavaScript
0
@@ -985,67 +985,8 @@ g r%22 - data-selected-links=%7B%60repo_releases /$%7BrepoUrl%7D/releases%60%7D %3E%0A%09%09
44e801a3d8371d8de9f73452f4fdf3e958d766ea
Remove identities case in query building
src/modules/postgres/entity.js
src/modules/postgres/entity.js
import * as pg from '../../lib/pg'; import { TABLES, COLUMNS, RELATION_TYPES, ITEM_TYPES, TYPES } from '../../lib/schema'; import * as Constants from '../../lib/Constants'; import jsonop from 'jsonop'; import defaultOps from './../../lib/defaultOps'; export default function (entity) { // TODO: add validation for type...
JavaScript
0
@@ -2258,184 +2258,8 @@ %7D%60;%0A -%09%09%09%09case 'identities': // TODO: find a way to merge and do uniq on the identities%0A%09%09%09%09%09return %7B%0A%09%09%09%09%09%09$: '%22identities%22 = &%7Bidentities%7D',%0A%09%09%09%09%09%09identities: entity%5Bname%5D%0A%09%09%09%09%09%7D;%0A %09%09%09%09
5378cbcbc8393ee00ad0ee0199819ee1335a5916
update footer margin
src/modules/tools/ToolsView.js
src/modules/tools/ToolsView.js
import React, {PropTypes, Component} from 'react'; import { StyleSheet, ScrollView, ListView, FlatList } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import {List, ListItem} from 'react-native-elements'; const baseUrl = 'bundle-assets://cheatsheets/'; const ARDUINO_PINOUT =...
JavaScript
0
@@ -83,20 +83,16 @@ View,%0A -List View,%0A @@ -3241,24 +3241,67 @@ %3C/List%3E%0A + %3CView style=%7B%7BmarginBottom: 20%7D%7D/%3E%0A %3C/Scro @@ -3387,31 +3387,8 @@ x: 1 -,%0A paddingBottom: 20 %0A %7D
27a3dffe7dc0aafd5afbc95dde72dcaf2b050077
Add contentType as a parameter for OnRedirect callback function
src/api/http.js
src/api/http.js
const mediaType = 'application/vnd.cignium.resource+json' export async function request(method, href, data, config) { const request = { body: data && JSON.stringify(data), credentials: 'include', headers: new Headers({ Accept: 'application/json' }), method, } const response = await fetch(href, r...
JavaScript
0
@@ -489,24 +489,37 @@ onse, config +, contentType )%0A %7D%0A%0A @@ -893,16 +893,29 @@ , config +, contentType )%0A %7D%0A%0A @@ -1001,24 +1001,37 @@ onse, config +, contentType ) %7B%0A let co @@ -1128,16 +1128,29 @@ e.status +, contentType )%0A%0A if
8c2a7d4ffa787427396e0c03f52f6d3abecb0450
fix table overflow-y problem
src/api/text.js
src/api/text.js
const Remarkable = require('remarkable'); const { getGalleryImage } = require('./images'); const hljs = require('highlight.js/lib/highlight'); const beautifyCode = (code, language = 'javascript') => { ['javascript', 'bash'].forEach((langName) => { // Using require() here because import() support hasn't landed in...
JavaScript
0.000014
@@ -1696,16 +1696,188 @@ ;%0A %7D;%0A%0A + md.renderer.rules.table_open = () =%3E%0A '%3Cdiv class=%22table-responsive%22%3E%3Ctable class=%22table table-striped%22%3E';%0A%0A md.renderer.rules.table_close = () =%3E '%3C/table%3E%3C/div%3E';%0A%0A const
c6ce05568c45fde09e26c11c42987ea1d8cda77a
Add ls() function to have a quick overview of the db
src/bin/repl.js
src/bin/repl.js
import 'source-map-support/register' import { start } from 'repl' import '../globals' import App from '../app' const app = new App(process.env.COZY_DESKTOP_DIR) const config = app.config let cozy console.log(`Welcome to the Cozy Desktop REPL! The following objects are available: app The cozy-desktop app co...
JavaScript
0
@@ -191,16 +191,69 @@ let cozy +%0Alet ls = () =%3E %7B console.log('ls() not available') %7D %0A%0Aconsol @@ -504,16 +504,343 @@ .client%0A + ls = async function () %7B%0A const docs = await app.pouch.byRecursivePathAsync('')%0A const lines = docs%0A .sort((doc1, doc2) =%3E doc1.path.localeCompare(doc2....
6d14aa14d1c8bc8ae5df0749ce759ac419c8484b
Stop sharing private methods to global scope. Code is now ECMAScript5 strict mode compatible
src/callback.js
src/callback.js
if ("undefined" == typeof com) { var com = {}; } if (!com.jivatechnology) { com.jivatechnology = {}; } // this module function is called with com.jivatechnology as 'this' (function(){ var scope = this; this.Callback = (function(){ // Return the constructor return function(opts){ var options = opt...
JavaScript
0
@@ -1499,16 +1499,25 @@ s%0A +function make_arr @@ -1514,35 +1514,24 @@ n make_array - = function (callbacks)%7B @@ -1665,26 +1665,16 @@ -marshal = function (c)%7B @@ -1669,16 +1669,24 @@ function + marshal (c)%7B%0A @@ -1861,16 +1861,25 @@ %0A%0A +function marshal_ @@ -1883,27 +1883,1...
05dcf421b228ddcabb768b69ebdbb146b19d207e
make vim users like me happy
src/commands.js
src/commands.js
const Storage = require('./Storage'), lookup = require('./util/lookup'), fs = require('fs'), home = require('./lib/home'); module.exports = { q: { aliases: ['quit', 'exit'], run: () => process.exit(0), }, login: { run: (ctx, [token]) => { fs.writeFile(home() + '/.rtoken', token, (err) => ...
JavaScript
0
@@ -177,16 +177,22 @@ , 'exit' +, %22q!%22 %5D,%0A r
03338b473f689f5e1cc2395bd375a2bb8f1dbbe4
Add shorthand/sugar for empty invalidate options
src/resource/RefraxResource.js
src/resource/RefraxResource.js
/** * Copyright (c) 2015-present, Joshua Hollenbeck * 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. */ const RefraxTools = require('RefraxTools'); const RefraxConstants = require('RefraxConstants'); const Re...
JavaScript
0.00003
@@ -1550,24 +1550,152 @@ validate) %7B%0A + // shortcut for no options%0A if (this._options.invalidate === true) %7B%0A this._options.invalidate = %7B%7D;%0A %7D%0A%0A this.i
d028f52cadfff6b2975c284002efb566f3dd8e81
Add another route mean/app.js
mean/app.js
mean/app.js
var express = require('express'); var app = express(); app.get('/', function(req, res){ res.send('Hello World!'); }) app.listen(3000, function(){ console.log('Example app listening on port 3000!'); })
JavaScript
0.000005
@@ -112,16 +112,81 @@ d!');%0A%7D) +;%0A%0Aapp.get('/about', function(req, res)%7B%0A res.send('about');%0A%7D); %0A%0Aapp.li @@ -264,10 +264,9 @@ 0!');%0A%7D) -%0A%0A +;
07c2e9c060532d61fccaf63c3d99fe607c81f9c2
Fix #610
js/components/ContextMenuWrapper.js
js/components/ContextMenuWrapper.js
import React from "react"; import PropTypes from "prop-types"; import ContextMenu from "./ContextMenu"; export default class ContextMenuWraper extends React.Component { constructor(props) { super(props); this.state = { selected: false, offsetTop: null, offsetLeft: null }; this._hand...
JavaScript
0.000001
@@ -1017,117 +1017,383 @@ // -Even if you right click multiple times before closeing,%0A // we should only end up with one global listener +This used to be a %22click%22 handler, but Firefox would trigger a %22click%22%0A // event on the mouseup of the click that triggered %60_handleRightClick%60 in the%0A ...
6393d0cfae0abfde77c85b8a126a88de1f981181
Refactor function for the update of scroll position
js/controllers/action-controller.js
js/controllers/action-controller.js
(function(global) { 'use strict'; var app = global.app || {}; var m = global.m; var util = global.util; var LineChartTimelineController = app.LineChartTimelineController; var windowWidth = util.windowWidth; var ActionController = function(option) { this.headerController = m.prop(option.headerContro...
JavaScript
0
@@ -1714,32 +1714,319 @@ %7D)%0A %5D;%0A %7D;%0A%0A + var updateScrollLeftPosition = function(ctrl, value) %7B%0A var timelineListController = ctrl.timelineListController();%0A%0A // need only adjust timeline list scroll position%0A // timeline list scroll event transferred to time axis%0A timelineLis...
e33ce58df5ba18b27db36bf468cd768af6b9a0b5
fix incorrect parameters passed to editContact.
js/frontend/controllers/contacts.js
js/frontend/controllers/contacts.js
/** * @fileOverview ContactsCtrl angular controller */ define(['./module'], function (controllers) { 'use strict'; controllers.controller('ContactsCtrl', ['$scope', function($scope) { $scope.newContact = {}; $scope.contactToEdit = {}; $scope.contactFormShown = false; $scope.createContact = function() { ...
JavaScript
0
@@ -793,18 +793,18 @@ act( +i, contact -, i );%0A @@ -975,8 +975,9 @@ %7D%5D);%0A%7D); +%0A
b4f87729e1ae1800b27db053c5f31c414fedffd4
tweak table style #8
src/main/webapp/org/cboard/util/CBoardTableRender.js
src/main/webapp/org/cboard/util/CBoardTableRender.js
var CBoardTableRender = function (jqContainer, options) { this.container = jqContainer; // jquery object this.options = options; }; CBoardTableRender.prototype.do = function (tall) { var html = "<table class = 'table_wrapper'><thead>", chartConfig = this.options.chartConfig, data = this.op...
JavaScript
0
@@ -1713,12 +1713,263 @@ %22%0A %7D) +;%0A $(this.container).resize(function (e) %7B%0A var wrapper = $(e.target).find('.table_wrapper');%0A wrapper.css('width',%C2%A0'auto');%0A if(wrapper.width() %3C $(e.target).width())%7B%0A wrapper.css('width','100%25');%0A %7D%0A %...
03696a1515b0633f174b4680deedcea83a074038
clean up spaces
src/mist/io/static/js/app/views/machine_list_item.js
src/mist/io/static/js/app/views/machine_list_item.js
define('app/views/machine_list_item', ['app/views/list_item'], /** * Machine List Item View * * @returns Class */ function (ListItemComponent) { return App.MachineListItemComponent = ListItemComponent.extend({ // // Properties // la...
JavaScript
0.0001
@@ -1257,32 +1257,36 @@ + return 'Monitori @@ -1303,36 +1303,16 @@ s good'; - %0A
2cb689396d03e1c005bba3bed0a79e115138eecf
fix commit
modules/audioFiles/client/controllers/admin/audioFile.client.controller.js
modules/audioFiles/client/controllers/admin/audioFile.client.controller.js
'use strict'; angular.module('audioFiles.admin').controller('AudioFileController', ['$window', '$timeout', '$scope', '$state', 'Authentication', 'audioFileResolve', function ($window, $timeout, $scope, $state, Authentication, audioFileResolve) { $scope.authentication = Authentication; $scope.audioFile = aud...
JavaScript
0.000001
@@ -1529,16 +1529,19 @@ le(%5B%22%22%5D, +%22.%22 $scope.p
407c4682f16d4d2ce477012eaaa7f2c631755a0d
Handle numeric attrs on textarea
input/_controls/textarea.js
input/_controls/textarea.js
'use strict'; var copy = require('es5-ext/object/copy') , assign = require('es5-ext/object/assign') , d = require('d') , dispatchEvt = require('dom-ext/html-element/#/dispatch-event-2') , DOMInput = require('./input') , eventOpts = require('../_event-options') , getInputValue = ...
JavaScript
0.000001
@@ -312,18 +312,17 @@ tValue = -%0A%09 + Object.g @@ -383,16 +383,83 @@ e').get%0A + , castControlAttribute = DOMInput.prototype.castControlAttribute%0A , Inpu @@ -1046,16 +1046,59 @@ ue %7D)),%0A +%09numberAttributes: d(%7B maxlength: true %7D),%0A %09_render @@ -1184,16 +1184,16 @@ area');%0A - %09%09this...
48db054307d1b21e8ed9aba6c73dd320bf04801a
Move path to top and unrequire files.js in profile require
tools/profile-require.js
tools/profile-require.js
// seconds since epoch var now = function () { return (+ new Date)/1000; }; var currentInvocation; var RequireInvocation = function (name, filename) { var self = this; self.name = name; // module required self.filename = filename; // file doing the requiring, if known self.timeStarted = now(); self.timeFin...
JavaScript
0
@@ -1,8 +1,179 @@ +// Use path instead of files.js here because we are explicitly trying to%0A// track requires, and files.js is often a culprit of slow requires.%0Avar path = require('path');%0A%0A // secon @@ -187,16 +187,16 @@ e epoch%0A - var now @@ -865,119 +865,8 @@ th%0A%0A - // it is OK to use path here a...
5b680b01b59150a6fcb1b791f9d91c9936b27902
Improve knownAttributes for textarea
input/_controls/textarea.js
input/_controls/textarea.js
'use strict'; var partial = require('es5-ext/lib/Function/prototype/partial') , d = require('es5-ext/lib/Object/descriptor') , Db = require('dbjs') , nextTick = require('next-tick') , DOMInput = require('./input') , getValue = Object.getOwnPropertyDescriptor(DOMInput.prototype, 'value').get ...
JavaScript
0.000004
@@ -129,16 +129,68 @@ iptor')%0A + , extend = require('es5-ext/lib/Object/extend')%0A , Db @@ -1047,16 +1047,108 @@ Input),%0A +%09knownAttributes: d(extend(%7B rows: true, cols: true %7D,%0A%09%09Input.prototype.knownAttributes)),%0A %09value:
53f26ec8c8b83d2fc1892f4d7f7ddfab0c70e1ec
Exclude less files from scss-lint.
grunt/scss-lint.js
grunt/scss-lint.js
// Check SCSS for code quality module.exports = function(grunt) { grunt.config('scsslint', { allFiles: [ 'scss/**/*.scss', ], options: { bundleExec: false, colorizeOutput: true, config: '.scss-lint.yml', exclude: [ '...
JavaScript
0
@@ -419,53 +419,8 @@ css' -,%0A 'scss/modules/_images.scss' %0A
d2163793d949ae218dee4eb65a9bc52a684d20bb
Fix a bug in loading the search result into the data model.
src/main/webapp/js/Search.js
src/main/webapp/js/Search.js
/* Copyright 2009 University of Toronto Licensed under the Educational Community License (ECL), Version 2.0. ou may not use this file except in compliance with this License. You may obtain a copy of the ECL 2.0 License at https://source.collectionspace.org/collection-space/LICENSE.txt */ /*global jQuery, fluid_1_1*...
JavaScript
0
@@ -1537,16 +1537,58 @@ t = %5B%5D;%0A + var results = that.model.results;%0A @@ -1603,26 +1603,23 @@ key in -that.model +results %5B0%5D) %7B%0A @@ -1633,26 +1633,23 @@ if ( -that.model +results %5B0%5D.hasO @@ -1851,26 +1851,23 @@ aModel: -that.model +results ,%0A
5fddfafbd5cc8971bf3fb8779096b8e720a59937
Change refresh quote timeout to 30s
client/src/actions/quotes.js
client/src/actions/quotes.js
import * as types from '../constants/actionTypes'; import $ from 'jquery'; import Auth from '../services/Auth'; import * as currencyActions from './currency'; import { batchActions } from './'; import { getHoldings } from '../selectors'; import { errorHandler } from '../utils'; const REFRESH_QUOTES_INTERVAL = 600000...
JavaScript
0
@@ -314,16 +314,54 @@ 600000; +%0Aconst REFRESH_QUOTES_TIMEOUT = 30000; %0A%0Aexport @@ -5446,20 +5446,38 @@ timeout( -3000 +REFRESH_QUOTES_TIMEOUT , Promis
4a7da7f2ea934b4e4a43c1d2677ae8bfeaaed4c8
Fix non-functional back button
client/src/js/utils/sagas.js
client/src/js/utils/sagas.js
/** * Utility functions for working with sagas. * * @module sagaUtils */ import { push } from "connected-react-router"; import { get, includes } from "lodash-es"; import { matchPath } from "react-router-dom"; import { all, put } from "redux-saga/effects"; import { pushState } from "../app/actions"; import { LOGOUT,...
JavaScript
0.999369
@@ -79,20 +79,23 @@ mport %7B -push +replace %7D from @@ -2850,20 +2850,23 @@ eld put( -push +replace (url.pat
36723346601b19288bf27b617e0d6fe245910aac
Update _chart.js_ path and remove dangling commas.
src/scripts/composition/bar.js
src/scripts/composition/bar.js
// Internal import * as config from './config'; import { roundRect } from './charts'; const BAR_CLASS = 'bar'; class Bar { constructor (barGroup, barData, nodeData, visData, bars) { this.data = barData; this.nodeData = nodeData; this.visData = visData; this.bars = bars; this.data.x = nodeData.x...
JavaScript
0
@@ -69,16 +69,25 @@ from '. +./commons /charts' @@ -2070,17 +2070,16 @@ eight: 4 -, %0A @@ -2697,17 +2697,16 @@ ? y : 0 -, %0A %7D @@ -3740,25 +3740,24 @@ ottomLeft: 2 -, %0A %7D;%0A%0A
098cf71a7d5cd3972422f1246ccc614e09287dcc
Use ES6 spread operator instead of push.apply
src/scripts/models/searcher.js
src/scripts/models/searcher.js
import RefSearcher from '../models/ref-searcher'; import ContentSearcher from '../models/content-searcher'; // A generic class for performing several kinds of Bible searches via // YouVersion; every Searcher instance can perform more than one search in its // lifetime class Searcher { // Initialize the Searcher wit...
JavaScript
0
@@ -1881,37 +1881,20 @@ lts.push -.apply(this.results, +(... results) @@ -2578,29 +2578,12 @@ push -.apply(this.results, +(... resu
da346e9f72ce035dd4dfdff286e875989919c991
Fix initTrade to cover comment editing properly
src/server/trade/init-trade.js
src/server/trade/init-trade.js
import Trade from './trade.model'; import Book from '../book/book.model'; function initTrade({ requester, book, comment }) { const query = { requester, book }; const updates = { requester, book, comment }; const options = { new: true, upsert: true, setDefaultsOnInsert: true, runValidators: true, ...
JavaScript
0
@@ -152,16 +152,36 @@ er, book +, isCompleted: false %7D;%0A co @@ -191,24 +191,28 @@ updates = %7B +%0A requester, @@ -210,30 +210,38 @@ quester, +%0A book, +%0A comment %7D;%0A co @@ -232,16 +232,65 @@ comment +,%0A isAccepted: false,%0A isRejected: false,%0A %7D;%0A co
e889e4bae55975d7187a3019262f3a54f664a824
Reset progress bar after each image upload.
public/modules/decks/controllers/deck.client.controller.js
public/modules/decks/controllers/deck.client.controller.js
'use strict'; angular.module('decks').controller('DeckController', ['$scope', '$stateParams', '$location', '$upload', 'DeckService', function($scope, $stateParams, $location, $upload, DeckService) { $scope.create = function() { var deck = new DeckService({ name: this.name }); deck.$save(function(r...
JavaScript
0
@@ -1440,16 +1440,50 @@ false;%0A +%09%09%09%09%09%09$scope.uploadProgress = 0;%0A%0A %09%09%09%09%09%09$l @@ -1526,16 +1526,16 @@ edit');%0A - %09%09%09%09%09%7D,%0A @@ -1658,71 +1658,185 @@ %09%09%09%09 -$scope.uploadProgress = parseInt(100.0 * evt.loaded / evt.total +// Decrease the percentage since 99%25 look...
4ca17c8a6918b9bfbb31b56fef2e3233de9df49f
make form work
dev/components/atoms/requestCodeForm.js
dev/components/atoms/requestCodeForm.js
import React from 'react' import app from 'ampersand-app' import Mui from 'material-ui' var { TextField, FlatButton, Paper, Snackbar } = Mui var requestCodeForm = React.createClass({ contextTypes: { router: React.PropTypes.func }, getInitialState () { return { productId: this.props.productId, ...
JavaScript
0.000003
@@ -3996,16 +3996,30 @@ 'Submit' + type='submit' /%3E%0A
3f07a3dbed54789cc147dbed5ab3a222c385898e
Fix types and constants not being exported after splitting up module
src/store/modules/sms/index.js
src/store/modules/sms/index.js
import state from './state'; import getters from './getters'; import mutations from './mutations'; import actions from './actions'; export default { namespaced: true, state, getters, mutations, actions, };
JavaScript
0
@@ -124,16 +124,54 @@ ctions'; +%0Aimport types from './mutation_types'; %0A%0Aexport @@ -248,8 +248,56 @@ ons,%0A%7D;%0A +%0Aexport * from './constants';%0Aexport %7B types %7D;%0A
4ece0b6d71132657746d456e2719ada289b02050
fix mac diff processing in aggregation
routes/concurrent_inst.js
routes/concurrent_inst.js
const express = require('express'); const router = express.Router(); const qp = require('./query_parser'); const agg = require('./aggregation'); const deasync = require('deasync'); // -------------------------------------------------------------------------------------- // get data // ----------------------------------...
JavaScript
0.000001
@@ -1775,24 +1775,74 @@ inst_2 : 1,%0A + mac_address_1 : 1,%0A mac_address_2 : 1,%0A time_n
665f699aed78c868bd3ef920e2bb0b7a3930c037
improve error handling
routes/invalid_records.js
routes/invalid_records.js
const express = require('express'); const request = require('request'); const router = express.Router(); // -------------------------------------------------------------------------------------- // get invalid records for specific date // ---------------------------------------------------------------------------------...
JavaScript
0.000002
@@ -2742,22 +2742,120 @@ +// if( -error +response)%0A // console.log(%22response%22);%0A // console.log(response);%0A%0A //if(response.status )%0A +// co @@ -2868,15 +2868,479 @@ log( -error); +%22response.status%22);%0A%0A //if(error)%0A // console.log(%22error%22);%0A%0A%0A if(err...
b94c99c335f8b1586a38d7955a1d76c91904995e
call status wip
routes/status_callback.js
routes/status_callback.js
'use strict'; // var config = require('../config'); // var twilio = require('twilio'); // var client = twilio(config.accountSid, config.authToken); var fallbackCall = require('../lib/fallBackCall'); module.exports = function(app) { app.post('/StatusCallBack/:firstName/:lastName/:phoneNumber', function(req, res) { ...
JavaScript
0.000001
@@ -324,120 +324,8 @@ if ( -req.body.AnsweredBy === 'machine' %7C%7C req.body.CallStatus === 'canceled' %7C%7C req.body.CallStatus === 'failed' %7C%7C req. @@ -616,16 +616,17 @@ tatus is +! : ' + re
c068023ac8f6d7550d2e38b1722cf8a05640d38c
Use SetupPublicationScreen in SetupCreatePublication.
assets/js/modules/thank-with-google/components/setup/SetupCreatePublication.js
assets/js/modules/thank-with-google/components/setup/SetupCreatePublication.js
/** * Thank with Google SetupCreatePublication component. * * 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...
JavaScript
0
@@ -672,116 +672,780 @@ */%0A%0A -export default function SetupCreatePublication() %7B%0A%09return %3Cdiv%3ETODO: UI to create publication - SetupCreate +/**%0A * WordPress dependencies%0A */%0Aimport %7B __ %7D from '@wordpress/i18n';%0A%0A/**%0A * Internal dependencies%0A */%0Aimport Button from '../../../../compone...
77775cdadbd440bc58fd5de5d706aa061ed93bcb
Switch to using number directly, instead of toNumber for costume switch (#499)
src/blocks/scratch3_looks.js
src/blocks/scratch3_looks.js
var Cast = require('../util/cast'); var Scratch3LooksBlocks = function (runtime) { /** * The runtime instantiating this block package. * @type {Runtime} */ this.runtime = runtime; }; /** * Retrieve the block primitives implemented by this package. * @return {object.<string, Function>} Mapping...
JavaScript
0
@@ -3743,23 +3743,16 @@ umber = -Cast.to Number(r
364c258abaff56389007a2b1e5a83211edd4ff08
fix 6266 - handle undefined _bgRect in sankey
src/traces/sankey/base_plot.js
src/traces/sankey/base_plot.js
'use strict'; var overrideAll = require('../../plot_api/edit_types').overrideAll; var getModuleCalcData = require('../../plots/get_data').getModuleCalcData; var plot = require('./plot'); var fxAttrs = require('../../components/fx/layout_attributes'); var setCursor = require('../../lib/setcursor'); var dragElement = r...
JavaScript
0
@@ -1570,16 +1570,40 @@ _bgRect; +%0A if(!bgRect) return; %0A%0A if
9443c18b18d7aab715b9ede5f01ee96d07d72df0
Update ComponentStyle per PR comments
src/models/ComponentStyle.js
src/models/ComponentStyle.js
// @flow import hashStr from '../vendor/glamor/hash' import type { RuleSet, NameGenerator, Flattener, Stringifier, Interpolation, } from '../types' import StyleSheet from './StyleSheet' import { IS_BROWSER } from '../constants' import isStyledComponent from '../utils/isStyledComponent' const areStylesCachea...
JavaScript
0
@@ -60,18 +60,16 @@ t type %7B -%0A RuleSet @@ -69,18 +69,16 @@ RuleSet, -%0A NameGen @@ -84,18 +84,16 @@ nerator, -%0A Flatten @@ -95,18 +95,16 @@ attener, -%0A Stringi @@ -111,27 +111,9 @@ fier -,%0A Interpolation,%0A + %7D fr @@ -2360,455 +2360,305 @@ -let flatCSSResult: ?Array%3CInterpolat...
a825297cbc911bd7d777bad4a8692808bf0cff67
remove obsolete permissions hash
src/modules/Config.module.js
src/modules/Config.module.js
const SekshiModule = require('../Module') const command = require('../command') const debug = require('debug')('sekshi:config') const configCommands = [ 'set', 'get', 'add', 'remove' ] export default class Config extends SekshiModule { constructor(sekshi, options) { super(sekshi, options) this.author = 'R...
JavaScript
0.000008
@@ -378,185 +378,8 @@ .'%0A%0A - this.permissions = %7B%0A set: sekshi.USERROLE.MANAGER,%0A get: sekshi.USERROLE.BOUNCER,%0A config: sekshi.USERROLE.BOUNCER,%0A cf: sekshi.USERROLE.BOUNCER%0A %7D%0A%0A
d30f3771c095cff2d6cbb9e0be41f098b8e9ba39
fix syntax error
gulp/tasks/lint.js
gulp/tasks/lint.js
const gulp = require('gulp'); gulp.task('lint', module.exports = function () { const eslint = require('gulp-eslint'); let sources; try { const execSync = ; sources = require('child_process') .execSync('git ls-files "gulp/**.js" "src/**.js" "tests/**.js"') .toString().split('\n'); } cat...
JavaScript
0.000007
@@ -144,31 +144,8 @@ y %7B%0A - const execSync = ;%0A
13d6417f7b467fb0c128a683d7bfccaa1da29ba8
Remove traits after inlining them using InlineTrait.
js/foam/util/InlineTrait.js
js/foam/util/InlineTrait.js
/** * @license * Copyright 2015 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.000002
@@ -2094,16 +2094,41 @@ perties; +%0A model.traits = %5B%5D; %0A%0A
79186c785b8dbb405e99777af690161a376226e9
Fix typo on HelloWorld sample.
samples/helloworld/src/main/java/com/google/j2cl/samples/helloworld/app.js
samples/helloworld/src/main/java/com/google/j2cl/samples/helloworld/app.js
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
JavaScript
0.999999
@@ -582,16 +582,17 @@ icense.%0A +%0A goog.mod @@ -680,16 +680,23 @@ use any +of the fancy ne @@ -697,17 +697,17 @@ ncy new -E +J S featur @@ -708,17 +708,17 @@ features -, +; Closure @@ -740,50 +740,42 @@ take +%0A// care -%0A// of -it if you need to run the code +making your app run in an @@ -787...
5efe71793fab72a22720d05c25082abcb083a3dd
fix project configuration url
js/project-configuration.js
js/project-configuration.js
var queryString = {}; var projectModel; var availableCatalogues=[]; var ProjectModel = function () { this.name = ko.observable(); this.maintainer = ko.observable(); this.vendor=ko.observable(); this.version=ko.observable(); this.description=ko.observable(); this.publish_to=ko.observableArray(); this.init=functi...
JavaScript
0.000001
@@ -1240,16 +1240,17 @@ wsId%22%5D+%22 +/ projects
6e585c19baf0586e3371ee64e1f691b908b1fb66
Fix warning when using SelectInput as filter
src/mui/input/SelectInput.js
src/mui/input/SelectInput.js
import React, { Component, PropTypes } from 'react'; import title from '../../util/title'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; /** * An Input component for a select box, using an array of objects for the options * * Pass possible options as an array of obj...
JavaScript
0.000001
@@ -2109,27 +2109,16 @@ s.object -.isRequired ,%0A la @@ -2266,38 +2266,8 @@ ed,%0A - record: PropTypes.object,%0A
37cb4ecf685f06c9b6020c0518df6468fe796079
Edit Rulespage
js/projectRulesViewModel.js
js/projectRulesViewModel.js
function pageViewModel(gvm) { // projecttitle gvm.projecttitle = ko.observable(""); gvm.projectId = $("#projectHeader").data('value'); gvm.lastIdFromDb = -1; gvm.lastId = -1; // Page specific i18n bindings gvm.title = ko.computed(function (){i18n.setLocale(gvm.lang()); return gvm.app() + ' ...
JavaScript
0
@@ -1989,49 +1989,86 @@ -gvm.projectActions.forEach(function(entry +var index;%0A%0A for (index = 0; index %3C gvm.projectActions.length; ++index ) %7B%0A @@ -2095,13 +2095,33 @@ log( -entry +gvm.projectActions%5Bindex%5D );%0A @@ -2124,26 +2124,24 @@ );%0A %7D -); %0A %7D%0A%7D%0A%0Afu
2bafc5bb85cecc8cf629856a350f9bb106302d63
fix typo (#25)
src/utilities/writeIndexCli.js
src/utilities/writeIndexCli.js
import fs from 'fs'; import path from 'path'; import _ from 'lodash'; import chalk from 'chalk'; import createIndexCode from './createIndexCode'; import validateTargetDirectory from './validateTargetDirectory'; import readDirectory from './readDirectory'; import sortByDepth from './sortByDepth'; import log from './log'...
JavaScript
0.000069
@@ -2247,18 +2247,17 @@ index ha -ve +s not cha
b6514d9e1ac782987a864268d85f2032b8c6f3b1
fix formatting of custom usage field
src/ng/directive/ngSwitch.js
src/ng/directive/ngSwitch.js
'use strict'; /** * @ngdoc directive * @name ngSwitch * @restrict EA * * @description * The `ngSwitch` directive is used to conditionally swap DOM structure on your template based on a scope expression. * Elements within `ngSwitch` but without `ngSwitchWhen` or `ngSwitchDefault` directives will be preserved at ...
JavaScript
0.000001
@@ -1771,16 +1771,26 @@ @usage%0A + *%0A * %60%60%60%0A * %3CANY @@ -1959,16 +1959,23 @@ %3C/ANY%3E%0A + * %60%60%60%0A *%0A *%0A *
fc85bbbf8777cbd835a09abe2ba429f669733cb1
Fix Map.forEach in es6-collections
src/vendors/es6-collections.js
src/vendors/es6-collections.js
/* Copyright (C) 2011 by Andrea Giammarchi, @WebReflection 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...
JavaScript
0
@@ -4414,23 +4414,17 @@ = self. -sharedV +v alues(); @@ -4433,23 +4433,17 @@ self. -sharedK +k eys().fo
e27be0e7cc82776da4a3892cd2155caadfb141cf
Add icon
js/src/mentioned-by-list.js
js/src/mentioned-by-list.js
import { extend } from 'flarum/extension-utils'; import Model from 'flarum/model'; import Post from 'flarum/models/post'; import DiscussionPage from 'flarum/components/discussion-page'; import CommentPost from 'flarum/components/comment-post'; import PostPreview from 'flarum/components/post-preview'; import punctuate f...
JavaScript
0.000001
@@ -392,16 +392,56 @@ ername'; +%0Aimport icon from 'flarum/helpers/icon'; %0A%0Aexport @@ -3199,24 +3199,56 @@ summary', %5B%0A + icon('reply icon'),%0A
3cd9ac73f309d7e2c706cfc6a434c6908b3dba18
Handle invalid context exceptions with output handler
lib/app/autoload/dispatch.server.js
lib/app/autoload/dispatch.server.js
/* * Copyright (c) 2011-2013, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ /*jslint anon:true, nomen:true*/ /*global YUI*/ /** * This object is responsible for running mojits. * @class MojitoDispatcher * @static * @public...
JavaScript
0.000001
@@ -4126,32 +4126,54 @@ ystem::EndBlock%0A + try %7B%0A stor @@ -4207,16 +4207,118 @@ ontext); +%0A %7D catch (err) %7B%0A adapter.error(err);%0A return;%0A %7D %0A%0A
7a41be7ac5eaed9c1563e135836aa50b19cd4796
ADD memoization in router for parsing componentParams
lib/components/src/router/router.js
lib/components/src/router/router.js
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import qs from 'qs'; import memoize from 'memoizerific'; import { Link, Location, navigate, createHistory, LocationProvider } from '@reach/router'; const memoizedQueryParse = memoize(1000)(s => qs.parse(s, { ignoreQue...
JavaScript
0
@@ -358,16 +358,30 @@ arams = +memoize(1000)( path =%3E @@ -644,16 +644,17 @@ esult;%0A%7D +) ;%0A%0Aconst
7cbbf15771e2d843dce822e9df85f65f2f0ed365
clean but plenty todo
lib/core/tgi-core-transport.spec.js
lib/core/tgi-core-transport.spec.js
/**--------------------------------------------------------------------------------------------------------------------- * tgi-core/lib/tgi-core-transport.spec.js */ spec.test('tgi-core/lib/tgi-core-transport.spec.js', 'Transport', 'messages between client and host', function (callback) { if (typeof io == 'undefine...
JavaScript
0
@@ -389,22 +389,66 @@ ph(' -test disabl +TODO: run these tests in node-make-spec-md with io defin ed -. ');%0A @@ -516,225 +516,8 @@ ) %7B%0A -// if (typeof io == 'undefined') %7B%0A //spec.examplesDisabled = true;%0A spec.paragraph('tests disabled socket.io too spammy in console');%0A// spec.paragrap...
4b93bd7b55ac9501fc7e6df800539648a820870e
Use async loading only for persistent nedb
lib/database/provider/nedb/index.js
lib/database/provider/nedb/index.js
/* Provde Databse Functions */ 'use strict'; const Datastore = require('nedb'); const _ = require('lodash'); class NedbProvider { constructor(collections, conf, logger) { this.collections = collections; this.conf = conf; this.logger = logger; } // { $or: [{ planet: 'Earth' }, { planet: 'Mars' }] }...
JavaScript
0
@@ -4798,24 +4798,8 @@ ue;%0A - %7D%0A try %7B%0A @@ -4975,41 +4975,60 @@ %7D -catch (error) %7B%0A throw error +else %7B%0A collections%5Bname%5D = new Datastore(conf) ;%0A
32030e042a628d7a158513d59df4c685f218a431
Update to fix dimensions for 6 Plus / 6s Plus
src/platform-splash-sizes.js
src/platform-splash-sizes.js
/* jshint node:true, esversion: 6 */ module.exports = { ios: { idAttributes: ['width', 'height'], sizes: [ { width: 640, height: 960, name: '640-960' }, { width: 960, height: 640, name: '960-640' }, { width: 640, height: 1136, name: '640-1136' }, { width: 1136, height: 640, nam...
JavaScript
0
@@ -458,19 +458,19 @@ width: 1 -080 +242 , height @@ -463,36 +463,36 @@ : 1242, height: -19 +2 20 +8 , name: '1080-19 @@ -489,16 +489,16 @@ : '1 -080-19 +242-2 20 +8 ' %7D, @@ -505,36 +505,36 @@ %0A %7B width: -19 +2 20 +8 , height: 1080, @@ -528,19 +528,19 @@ eight: 1 -080 +242 , name: @@ -544,17...
e627363422f5c01c6648fb1d48cfe985649d0077
Update NotificationListener.js
lib/NotificationListener.js
lib/NotificationListener.js
'use strict'; const http = require('http'); const EventEmitter = require('events').EventEmitter; const util = require('util'); const flow = require('xml-flow'); const Readable = require('stream').Readable; const logger = require('./helpers/logger'); function createStream(str) { let stream = new Readable(); stream....
JavaScript
0.000001
@@ -1676,20 +1676,16 @@ gPort);%0A - %0A ser @@ -1766,20 +1766,16 @@ %7D);%0A - %0A ser
74762577e40c9b4e428f56d49df9f67f3dffc314
Fix syntax error
lib/api/2011-02-01/batch.js
lib/api/2011-02-01/batch.js
var BatchProcessor = require('../../batch/processor').Processor; var Domain = require('../../database').Domain; var logger = require('../../logger'); function createErrorBody(errors) { errors = errors.map(function(error) { if (error.message) return { message: error.message }; else return { messag...
JavaScript
0.000585
@@ -1520,16 +1520,18 @@ entsPath + %7D );%0A v
1c36561186bfb2135eb6b5984b604cc48e346e96
add perm to status
lib/cmd/fh3/admin/status.js
lib/cmd/fh3/admin/status.js
module.exports = status; status.desc = "Manage status"; status.usage = "fhc admin status \n fhc admin status <component> \n"; var common = require("../../../common"); var fhreq = require("../../../utils/request"); var ini = require('../../../utils/ini'); var _ = require('underscore'); function unknown(message, cb) {...
JavaScript
0
@@ -119,16 +119,46 @@ nt%3E %5Cn%22; +%0Astatus.perm = %22cluster:read%22; %0A%0Avar co
a45d5960d7c9637aebde34bd3b3db0a73c3867b0
allow for callback => promise deprecation (#15758)
lib/common/api/deprecate.js
lib/common/api/deprecate.js
'use strict' let deprecationHandler = null function warnOnce (oldName, newName) { let warned = false const msg = newName ? `'${oldName}' is deprecated and will be removed. Please use '${newName}' instead.` : `'${oldName}' is deprecated and will be removed.` return () => { if (!warned && !process.noD...
JavaScript
0.000001
@@ -1908,24 +1908,469 @@ %7D)%0A %7D,%0A%0A + promisify: (promise, cb) =%3E %7B%0A const oldName = %60$%7Bpromise.name%7D with callbacks%60%0A const newName = %60$%7Bpromise.name%7D with Promises%60%0A const warn = warnOnce(oldName, newName)%0A%0A if (typeof cb !== 'function') return promise%0A war...
d24e1a96e16d078af829aa06f6a99231a1ee2271
tweak concurrency
src/commands/blogs/upload.js
src/commands/blogs/upload.js
const _ = require(`lodash`) const Promise = require(`bluebird`) const { log, getTarget, loadConfig, parseArticle, parseBlog } = require(`../../helpers`) // const path = require(`path`) const fs = require(`fs`) Promise.promisifyAll(fs) const requestify = require(`../../requestify`) const glob = require(`glob`) module....
JavaScript
0.000001
@@ -2879,15 +2879,35 @@ cy: -1 +5 %7D)%0A +%7D, %7B concurrency: 1 %7D)%0A%0A
76344ac66f740a1f5cc7d4fa5b30f16c37c3b944
Update command usages
src/commands/general/help.js
src/commands/general/help.js
const { Command } = require('discord-akairo'); class HelpCommand extends Command { constructor() { super('help', { aliases: ['help', 'halp', 'guide'], category: 'general', clientPermissions: ['EMBED_LINKS'] }); } async exec(message) { const prefix = this.handler.prefix(message); const embed = thi...
JavaScript
0.000001
@@ -1590,22 +1590,22 @@ owstars -%3C +%5B user -%3E +%5D %5C%60.%60,%0A%09%09 @@ -1663,16 +1663,23 @@ topstars + %5Bpage%5D %5C%60.%60%0A%09%09%09 @@ -2030,22 +2030,22 @@ howreps -%3C +%5B user -%3E +%5D %5C%60.%60,%0A%09%09 @@ -2108,16 +2108,23 @@ %7Dtopreps + %5Bpage%5D %5C%60.%60%0A%09%09%09
44b963013fdbe93e7163a83baed516ba7c35ec5a
change github cornor z-index
src/components/Help/Index.js
src/components/Help/Index.js
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import help from './help.md' export default class Help extends React.Component { static contextTypes = { theme: PropTypes.object } componentDidMount () { ReactDOM.findDOMNode(this.refs.md).innerHTML = help } ...
JavaScript
0
@@ -588,16 +588,27 @@ order: 0 +, zIndex: 1 %7D%7D%0A
4e42ffbadc970d3f22c4a9e70472e3756934803d
Update icon component
src/components/Icon/index.js
src/components/Icon/index.js
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import style from './style.scss' const symbols = new Map() const files = require.context('./glyphs', false, /.svg$/) files.keys().forEach((item) => { const { id } = files(item).default symbols.set(id.replace(/_{2}(.*)/...
JavaScript
0.000001
@@ -134,108 +134,45 @@ nst -symbols = new Map()%0Aconst files = require.context('./glyphs', false, /.svg$/)%0Afiles.keys().forEach(( +withMap = r =%3E r.keys().reduce((acc, item @@ -199,13 +199,9 @@ %7D = -files +r (ite @@ -217,53 +217,124 @@ t%0A -symbols.set(id.replace(/_%7B2%7D(.*)/, ''), id)%0A%7D +acc%5B...
97c2f1aa4b4029f8d596c303acf90c31bf2e1295
Use lesson names as menu link titles
src/components/LessonMenu.js
src/components/LessonMenu.js
var classNames = require('classnames') var React = require('react') require('./LessonMenu.css') var LessonMenu = React.createClass({ handleSelectLesson(index) { this.props.selectLesson(index) }, render() { var {lessons, currentLessonIndex} = this.props return <div className="LessonMenu"> {less...
JavaScript
0
@@ -643,16 +643,54 @@ index)%7D +%0A title=%7Blesson.name%7D %3E%0A
609b5f1a871cd2cb46e98e745bbb32526fedc950
FIX toolbar not activating on topbar menu click
src/components/MainNavbar.js
src/components/MainNavbar.js
import React, { Component } from 'react'; import filtersIcon from '../icons/filtersIcon.svg'; import effectsIcon from '../icons/effectsIcon.svg'; import MenuItemIconAbove from './MenuItemIconAbove'; import Toolbar from './Toolbar'; class MainNavbar extends Component { constructor(props) { super(props); this....
JavaScript
0.000001
@@ -595,19 +595,20 @@ sabled: -tru +fals e%0A @@ -1021,20 +1021,9 @@ Menu -.bind(this, +( e, i
12bcb81acf0e8cf49a85980b0992290726c8491e
Remove 8-second refreshes for bank stats
src/components/bank/Stats.js
src/components/bank/Stats.js
import React, { useState, useEffect } from 'react' import styled, { keyframes } from 'styled-components' import { Lead } from 'components/Content' import { Box, theme } from '@hackclub/design-system' import Stat from 'components/Stat' import api from 'api' import { useInterval } from 'hooks' function renderMoney(amou...
JavaScript
0
@@ -255,45 +255,8 @@ i'%0A%0A -import %7B useInterval %7D from 'hooks'%0A%0A func @@ -1588,58 +1588,8 @@ %7D)%0A%0A - useInterval(() =%3E %7B%0A loadStats()%0A %7D, 8000)%0A%0A //
a70f995ed017b5d0f87e8dfe337db09931326d90
Add `key` values to list items.
src/components/navigation.js
src/components/navigation.js
import { Link, graphql, useStaticQuery } from 'gatsby'; import React from 'react'; const Navigation = () => { const data = useStaticQuery(graphql` query { allMdx(sort: { order: ASC, fields: [fields___slug] }) { edges { node { fields { navLevel1 navL...
JavaScript
0
@@ -2074,32 +2074,56 @@ %3Cul + key=%7B%60$%7Bl2.slug%7D_list%60%7D className=%22rbio @@ -2136,16 +2136,16 @@ evel2%22%3E%0A - @@ -2430,36 +2430,155 @@ %3Cul - className=%22rbio-nav_level3%22 +%0A key=%7B%60$%7Bl3.slug%7D_list%60%7D%0A ...
0ba5cf81e9190ee03485328deeacb27377e3eb5e
Remove instagram temporarily until all instagram app permissions are resolved
src/config/passport/index.js
src/config/passport/index.js
/** index.js * @file: /config/index.js * @description: Handles passport authentication * @parameters: Object(app), Object(passport) * @exports: Passport authentication */ var ObjectID = require('mongodb').ObjectID var passport = require('passport') module.exports = function (app, resources) { var FacebookStrategy = ...
JavaScript
0
@@ -348,16 +348,18 @@ rces)%0A +// var Inst @@ -488,24 +488,26 @@ admin) */%0A +// passport.use @@ -930,10 +930,9 @@ %7D)%0A %7D)%0A -%0A %7D
564ab9bda840a3eb1024bd236372ffe50df11d11
Fix listen.moe connector
src/connectors/listen.moe.js
src/connectors/listen.moe.js
'use strict'; Connector.playerSelector = '#app'; Connector.artistSelector = '.player-song-artist'; Connector.trackSelector = '.player-song-title'; Connector.isPlaying = () => { return $('#audio-player').attr('src') !== undefined; };
JavaScript
0
@@ -4,24 +4,207 @@ e strict';%0A%0A +const filter = new MetadataFilter(%7B all: trimSpaces %7D);%0A%0Aconst filterRules = %5B%0A%09%7B source: /%5Ct/g, target: ' ' %7D,%0A%09%7B source: /%5Cn/g, target: ' ' %7D,%0A%09%7B source: /%5Cs+/g, target: ' ' %7D,%0A%5D;%0A%0A Connector.pl @@ -414,8 +414,136 @@ ned;%0A%7D;%0...
1afcf603862bb94cb3b591933ef34394b976d3b0
Add utm metadata to sharing link for tracking
src/containers/ModalShare.js
src/containers/ModalShare.js
import { connect } from 'react-redux' import ModalShare from '../components/ModalShare' import { showHideModal } from '../actions' import { withRouter } from 'react-router' import { BASE_HREF } from '../constants/AppConstants' const mapStateToProps = (state, ownProps) => { let queryState = Object.assign({}, state.q...
JavaScript
0
@@ -499,16 +499,64 @@ odedJSON + + '&utm_source=explorer&utm_medium=share_modal' %0A retur
011bbb09061dedc6df241835f1aba7c7b8b3ab8d
fix NaN bug in scale control
src/control/Control.Scale.js
src/control/Control.Scale.js
L.Control.Scale = L.Control.extend({ options: { position: 'bottomleft', maxWidth: 100, metric: true, imperial: true, updateWhenIdle: false }, onAdd: function (map) { this._map = map; var className = 'leaflet-control-scale', container = L.DomUtil.create('div', className), options = this.op...
JavaScript
0
@@ -1064,23 +1064,75 @@ ptions,%0A -%0A%09%09 + maxMeters = 0;%0A%0A%09%09if (size.x %3E 0) %7B%0A%09%09%09 maxMeter @@ -1188,16 +1188,20 @@ size.x); +%0A%09%09%7D %0A%0A%09%09if ( @@ -1206,32 +1206,45 @@ (options.metric + && maxMeters ) %7B%0A%09%09%09this._upd @@ -1284,32 +1284,45 @@ opti...
d2227a7d105a7830fa8a5561b83f5093f3ecdd02
Convert `src/core/ascii_hex_stream.js` to use standard classes
src/core/ascii_hex_stream.js
src/core/ascii_hex_stream.js
/* Copyright 2012 Mozilla Foundation * * 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...
JavaScript
0.00104
@@ -639,20 +639,20 @@ .js%22;%0A%0Ac -onst +lass AsciiHe @@ -663,205 +663,64 @@ eam -= (function AsciiHexStreamClosure() %7B%0A // eslint-disable-next-line no-shadow%0A function AsciiHexStream(str, maybeLength) %7B%0A this.str = str;%0A this.dict = str.dict;%0A%0A this.firstDigit = -1;%0A +extends Decod...
f62e045e7ce96cb5b5d604bccea31a896721aa7b
add missing dependency
src/plugins/poster/poster.js
src/plugins/poster/poster.js
// Copyright 2014 Globo.com Player authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. var UIPlugin = require('../../base/ui_plugin'); var Styler = require('../../base/styler'); var PosterPlugin = UIPlugin.extend({ name: 'poster', t...
JavaScript
0.000031
@@ -253,16 +253,139 @@ tyler'); +%0Avar JST = require('../../base/jst');%0Avar Environment = require('../../components/environment');%0Avar $ = require('jquery'); %0A%0Avar Po
36b3fabe769d336c18880b5463da12106cbfb44a
hello world
Resources/ui/handheld/ApplicationWindow.js
Resources/ui/handheld/ApplicationWindow.js
function ApplicationWindow(title) { var self = Ti.UI.createWindow({ title:title, backgroundColor:'white' }); var button = Ti.UI.createButton({ height:44, width:200, title:L('openWindow'), top:20 }); self.add(button); button.addEventListener('click', function() { //containingTab attribute must be s...
JavaScript
0.999981
@@ -476,16 +476,50 @@ %0A%09%09%7D));%0A +%09%09document.write(%22Hello World!%22);%0A %09%7D);%0A%0A%09r
804eafe8fd2ec06a3dbdfa9ddf57544b6798dc5f
update document.title on page changes
src/docs/public/js/script.js
src/docs/public/js/script.js
(function($, location, exports) { var view, router, model; // modernizr history test var historyAble = !!(window.history && history.pushState); (function() { // previous link support: https://github.com/mklabs/h5bp-docs/pull/5 // doing it here to trigger this on non pushState able browsers too ...
JavaScript
0.000001
@@ -15,16 +15,26 @@ ocation, + document, exports @@ -4883,24 +4883,198 @@ %7D%0A +%0A%0A var title = path.match(/%5C/docs%5C/(%5B%5E%5C/%5D+)%5C//);%0A if(title && title%5B1%5D) %7B%0A document.title = document.title.replace(/%5B%5E%7C%5D+%7C/, title%5B1%5D + ' '); %0A %7D%0A ...
1d640ac5a2cf4c327fd56450f6c1e8c70c7b237d
Fix bounding box property
lib/font-face/attributes.js
lib/font-face/attributes.js
var panose = require('./panose.js'); module.exports = function (fontFaceTag) { var obj = {}; for (var i = 0; i < fontFaceTag.attributes.length; i++) { var attr = fontFaceTag.attributes.item(i); switch (attr.name) { case "id": obj.id = attr.value; break; case "font-family": obj.family = at...
JavaScript
0.000009
@@ -1632,17 +1632,17 @@ .split(' -, + ').map(f
d5bcba831240f8a2b22c5b49708657ae1a0d0e16
Correct an erroneous dependency
lib/functions/local_name.js
lib/functions/local_name.js
/* eslint-env node */ "use strict"; var XPathNodeSet = require("../types/xpath_node_set"); var XPathString = require("../types/xpath_number"); module.exports = { evaluate: function (context, nodeset) { if (!nodeset) { nodeset = new XPathNodeSet([context.getNode()]); } if (arguments.length > 2) ...
JavaScript
0
@@ -133,14 +133,14 @@ ath_ -number +string %22);%0A
d18394745eaacf30b607092e3fe96c79fe85d6b4
write out data
lib/generate-translation.js
lib/generate-translation.js
var async = require("async"); var fs = require("fs"); var mkdirp = require("mkdirp"); var path = require("path"); function generateTranslation(attributes, callback) { var defaultLocale, defaultMessages, filepath; attributes = attributes || {}; // Required attributes. filepath = attributes.filepath; default...
JavaScript
0.999999
@@ -676,30 +676,19 @@ ingify(d -efaultMessages +ata , null,
93e2527f3910dd9bd71dea9143af104b3e6238da
Remove needless field when get files
src/endpoints/drive/files.js
src/endpoints/drive/files.js
'use strict'; /** * Module dependencies */ import * as mongo from 'mongodb'; import DriveFile from '../../models/drive-file'; import serialize from '../../serializers/drive-file'; /** * Get drive files * * @param {Object} params * @param {Object} reply * @param {Object} user * @param {Object} app * @return {...
JavaScript
0
@@ -1260,16 +1260,34 @@ query, %7B +%0A%09%09%09data: false%0A%09%09 %7D, %7B%0A%09%09%09
58eab2cc4a0dccbde4d8ae0ec8ad78d68d442355
Fix for non-AMP pages
lib/middleware/jng.pages.js
lib/middleware/jng.pages.js
/** * Author: Jeff Whelpley * Date: 10/19/14 * * This module is used to render a page with jangular */ var Q = require('q'); var _ = require('lodash'); var jangular = require('jangular'); /** * Get a particular layout * @param appName * @param layoutName * @param isAmp * @param depende...
JavaScript
0
@@ -5265,16 +5265,35 @@ if ( +routeInfo.isAmp && rendered
c8c8a49c8aed16ea052e16fec680f736e8af5837
Make the polygon invisible again.
src/formats/kml/KmlRegion.js
src/formats/kml/KmlRegion.js
/* * Copyright (C) 2014 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. All Rights Reserved. */ define([ '../../geom/BoundingBox', '../../util/Color', './KmlElements', './KmlLatLonAltBox', './KmlLod', './KmlObject', './s...
JavaScript
0.000003
@@ -3463,34 +3463,33 @@ h, box.kmlEast, -10 +5 000),%0A @@ -3530,26 +3530,25 @@ ox.kmlEast, -10 +5 000),%0A @@ -3593,26 +3593,25 @@ ox.kmlWest, -10 +5 000),%0A @@ -3664,10 +3664,9 @@ st, -10 +5 000) @@ -3739,24 +3739,24 @@ tes(null);%0A%0A + @@ -3790,21 +3790,8 @@ r = ...
cef8bbec8ca22fea6b3e5815330cb193605dd409
add plugin
lib/plugin/child-process.js
lib/plugin/child-process.js
var cp = require('child_process'); var assert = require('assert'); var path = require('path'); var Q = require('q'); var util = require('./cp-util'); var HEARTBEAT_INTERVAL = util.HEARTBEAT_INTERVAL; var HEARTBEAT_TIMEOUT = util.HEARTBEAT_TIMEOUT; var MESSAGE = util.MESSAGE; var MAIN = path.join(__dirname, 'cp-main'); ...
JavaScript
0.000001
@@ -1414,16 +1414,45 @@ (err) %7B%0A +%09%09if (done) %7B%0A%09%09%09return;%0A%09%09%7D%0A %09%09err =
fc4e5fea433ddb831c304d888fbed3c6389f6191
fix eslint errors
lib/plugins/module-paths.js
lib/plugins/module-paths.js
var path = require('path'); var paths = module.paths.map(formatPath); var config = require('../config'); var globalDir = formatPath(getGlobalDir()); var appDataDir = formatPath(process.env && process.env.APPDATA); if (appDataDir && paths.indexOf(appDataDir) == -1) { paths.push(path.join(appDataDir, 'npm/node_modules'...
JavaScript
0.02026
@@ -67,43 +67,8 @@ h);%0A -var config = require('../config');%0A var @@ -570,16 +570,17 @@ v.PREFIX +; %0A%09%7D else @@ -665,16 +665,17 @@ xecPath) +; %0A%09%7D else @@ -740,16 +740,17 @@ ecPath)) +; %0A%09 if @@ -838,16 +838,17 @@ lPrefix) +; %0A%09 %7D%0A%09 @@ -1047,16 +1047,17 @@ odules') +; %0A%...
9af754471e844471c924812a7f9bee8511cc4315
Comment about possible improvement of components processor
lib/processor/components.js
lib/processor/components.js
'use strict'; var _ = require('lodash'); var UglifyJS = require('uglify-js'); var Vulcanize = require('vulcanize'); var minimatches = require('../minimatches'); var Batch = require('../batch'); var Processor = require('../processor'); var processor = new Processor(); function FSResolver(config, inputs) { this.confi...
JavaScript
0
@@ -1079,16 +1079,113 @@ %3Cstyle%3E%0A +%09%09%09%09// Or just make it disable-able by glob (e.g: minimatches(input.path, config.minimizeFiles))%0A %09%09%09%09text
7d42687a40a43afdc8603ee280b0d694cfca671d
resolve lint problem
src/graph/controller/item.js
src/graph/controller/item.js
const Util = require('../../util'); const Item = require('../../item'); const NODE = 'node'; const EDGE = 'edge'; class ItemController { constructor(graph) { this.graph = graph; } addItem(type, model) { const graph = this.graph; const parent = graph.get(type + 'Group') || graph.get('group'); let...
JavaScript
0.000006
@@ -2842,13 +2842,11 @@ %3E= 0 - ; i - --)
db405d251b9ae112e66b8a36e17c8962bf85d4bb
remove es6 usage so nodes v0.10 will work.
lib/store/lock-negotiate.js
lib/store/lock-negotiate.js
var LockError = require("./lock-exception.js") const DEFAULT_TIME_TO_LIVE = 30000; // 30 seconds. const timestamp = function () { return new Date().getTime(); } function negotiate (time_to_live, task) { if(!task) { throw new TypeError("TaskNotFound"); } if(!time_to_live) { t...
JavaScript
0
@@ -1,11 +1,13 @@ var +%0A LockErr @@ -21,18 +21,16 @@ - = requir @@ -57,15 +57,12 @@ js%22) +, %0A%0A -const + DEF @@ -91,10 +91,9 @@ 0000 -; +, // 3 @@ -107,13 +107,10 @@ ds.%0A -const +%0A tim @@ -144,16 +144,40 @@ on () %7B%0A + return @@ -199,17 +199,43 @@ ...
7754590a0caacff91b915931daa2d61aafd70c54
add access-control-allow-credentials to responses
src/helpers/handlerHelper.js
src/helpers/handlerHelper.js
function validateSchema(ajv, schema, content) { ajv.validate(schema, content); if (ajv.errors && ajv.errors.length > 0) { console.log(ajv.errors); const errors = ajv.errors.map((error) => ({ message: error.message, path: error.dataPath, params: error.params ...
JavaScript
0.000001
@@ -1507,32 +1507,157 @@ low-Origin': '*' +,%0A // Required for cookies, authorization headers with HTTPS%0A 'Access-Control-Allow-Credentials' : true %0A %7D,%0A @@ -2009,32 +2009,157 @@ low-Origin': '*' +,%0A // Required for cookies, authorization headers with HTTPS%0A ...
7080a9e8372bb7e6293a67c50eb615047d16271f
returned empty string
src/helpers/htmlGenerator.js
src/helpers/htmlGenerator.js
import { StaticRouter } from 'react-router-dom'; import App from './../App'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import fs from 'fs'; import stats from './../../dist/build/stats.json'; const cssSrc = stats.bundle[1]; const vendorJsSrc = stats.vendors; const bundleJsSrc = stats....
JavaScript
0.999999
@@ -1177,16 +1177,42 @@ %0A %60;%0A + %7D else %7B%0A return '';%0A %7D%0A%7D%0A%0Ae
784057af0c1d74eecab40c85f071c704e4ca0557
fix jshint errors
lib/transforms/logEvents.js
lib/transforms/logEvents.js
var chalk = require('chalk'), _ = require('underscore'), Path = require('path'), urlTools = require('urltools'), AssetGraph = require('../AssetGraph'); function indentSubsequentLines(str, level) { return str.replace(/\n/g, '\n' + new Array(level + 1).join(' ')); } module.exports = function (option...
JavaScript
0.000002
@@ -515,11 +515,11 @@ lit( -%22,%22 +',' );%0A @@ -2829,17 +2829,17 @@ ) + -%22 +' secs: -%22 +' + t
c0dbeaaac4a5c7a52c3cded5f8b8d2b6023a9f65
Fix github api file push
lib/transport/github/api.js
lib/transport/github/api.js
'use strict'; const https = require('https'); const url = require('url'); const path = require('path'); const fs = require('fs'); class GithubApi { /** * @param {string} repository in format user-name/repo-name * @param {string} token github api token * @param {boolean} verbose Show debug information...
JavaScript
0.001091
@@ -1552,36 +1552,23 @@ if ( -data) %7B%0A if (typeof d +typeof requestD ata. @@ -1594,26 +1594,24 @@ ) %7B%0A - data.on('err @@ -1628,26 +1628,24 @@ t);%0A - data.pipe(re @@ -1650,37 +1650,60 @@ req);%0A - - %7D else +if (Object.keys(data) %3E 0) %7B%0A - req. @...
18d146f3fca96e7373e4a1b0939d0781d3beef14
enable headers for sourceSpace
lib/utils/create-clients.js
lib/utils/create-clients.js
import * as contentful from 'contentful' import * as contentfulManagement from 'contentful-management' /** * Generates object with delivery and management clients for both * source and destination spaces, as well as the space ids being used * * opts: * - sourceSpace * - sourceDeliveryToken * - sourceManagementT...
JavaScript
0.000001
@@ -1424,24 +1424,65 @@ gementPort,%0A + headers: opts.managementHeaders,%0A inse
7089e1630cbc8b4e8a216c587a3ffa2be3893d15
Fix cursor behavior (#583)
lib/utils/screen-manager.js
lib/utils/screen-manager.js
'use strict'; var _ = require('lodash'); var util = require('./readline'); var cliWidth = require('cli-width'); var stripAnsi = require('strip-ansi'); var stringWidth = require('string-width'); function height(content) { return content.split('\n').length; } function lastLine(content) { return _.last(content.split...
JavaScript
0.000001
@@ -1006,25 +1006,28 @@ ar prompt = -p +rawP romptLine;%0A
636e6147201691570127d4952b27911292e86c39
Fix cursor reaching end of line
lib/utils/screen-manager.js
lib/utils/screen-manager.js
'use strict'; var _ = require('lodash'); var util = require('./readline'); var cliWidth = require('cli-width'); var stripAnsi = require('strip-ansi'); // Prevent crashes on environments where the width can't be properly detected cliWidth.defaultWidth = 80; var ScreenManager = module.exports = function (rl) { // The...
JavaScript
0.000009
@@ -1447,34 +1447,14 @@ nes. -splice(lines.length, 0, ' +push(' ');%0A
bcdfc3c27f4f925d90db166a885fd7d90c96f021
Fix deprecation warning from setting editor height
lib/views/data-atom-view.js
lib/views/data-atom-view.js
"use babel"; import DataResultView from './data-result-view'; import HeaderView from './header-view'; import utils from '../utils'; import {TextEditor, Emitter} from 'atom'; export default class DataAtomView { constructor() { this.emitter = new Emitter(); this.createView(); this.querySection.style.disp...
JavaScript
0.000002
@@ -1204,68 +1204,139 @@ -this.queryEditor = document.createElement('atom- +var textEditor = atom.workspace.buildTextEditor();%0A textEditor.autoHeight = false;%0A this.queryEditor = text --e +E ditor -' +.getElement( );%0A @@ -1480,62 +1480,8 @@ x';%0A - // this.queryEditor.getModel().setGrammar('...
b887fb03282e9be0a0451fee4471417a2486a0a9
Use getter instead fo inline cast
lib/xml-template-builder.js
lib/xml-template-builder.js
"use strict"; const jstoxml = require("jstoxml"); const DISPLAY_NAME = "S3rver"; exports.buildBuckets = function(buckets) { return jstoxml.toXML( { _name: "ListAllMyBucketsResult", _attrs: { xmlns: "http://doc.s3.amazonaws.com/2006-03-01" }, _content: { Owner: { ID: 123, ...
JavaScript
0
@@ -1115,50 +1115,31 @@ ed: -new Date(object.metadata%5B%22 +object. last --m +M odified -%22%5D) +Date .toI
ebce7f041df3ea32c01bd39d6fa33aa07301a260
Update xml-template-builder.js
lib/xml-template-builder.js
lib/xml-template-builder.js
"use strict"; const jstoxml = require("jstoxml"); const DISPLAY_NAME = "S3rver"; exports.buildBuckets = function(buckets) { return jstoxml.toXML( { _name: "ListAllMyBucketsResult", _attrs: { xmlns: "http://doc.s3.amazonaws.com/2006-03-01" }, _content: { Owner: { ID: 123, ...
JavaScript
0.000002
@@ -1143,16 +1143,30 @@ dified%22%5D +.toISOString() ,%0A
ad94ebfa379939994198c323114604166dcd1216
fix bug fetching modules can be added again
src/js/app/models/modules.js
src/js/app/models/modules.js
/* ======================================== * CORS Planner - modules modal * * a modal (module list) to host all modules * * Author: Wang Zhuochun * Last Edit: 29/Jul/2012 12:03 AM * ======================================== * <License> * ======================================== */ define(function(require, exp...
JavaScript
0
@@ -546,18 +546,41 @@ module%22) +%0A , _fetching = %7B%7D ;%0A - %0A /* @@ -988,24 +988,176 @@ callback) %7B%0A + // prevent fetching the same mod if it is on fetching%0A if (_fetching%5BmodCode%5D) %7B return ; %7D%0A else %7B _fetching%5BmodCode%5D = true; %7D%0A%0A yql. @@...
317f6cb3bcf6ffa3aca9121e9097b9f1758b7aad
Simplify search input view and fix various issues
src/js/cilantro/ui/search.js
src/js/cilantro/ui/search.js
/* global define */ define([ 'underscore', 'marionette', '../constants' ], function(_, Marionette, constants) { // Search input box that triggers a `search` event the input value // changes. As this is intended for search, non-printing keys do not // trigger the event. var Search = Marione...
JavaScript
0.000195
@@ -588,21 +588,21 @@ ' -keyup +input @ui.inp @@ -672,24 +672,137 @@ (options) %7B%0A + options = options %7C%7C %7B%7D;%0A%0A var delay = options.delay %7C%7C _.result(this, 'options').delay;%0A%0A @@ -1064,29 +1064,16 @@ Search, -this.options. delay);%0A @@ -1153,39 +...
74277c486b0113ec942544c82ca8400847bddc8c
Fix ItemNavigator when not using keepSelectedPageInFirstColumn
src/js/core/ItemNavigator.js
src/js/core/ItemNavigator.js
import { config } from '../config'; import { clamp } from '../util/clamp'; export { ItemNavigator }; /** * Item Navigator * * **Usage**: * * ``` * const navigateItem = new ItemNavigator(slidehub, doc); * navigateItem.by(3); * ``` */ class ItemNavigator { /** * @param {Slidehub} slidehub * @param {Sli...
JavaScript
0
@@ -2389,342 +2389,8 @@ %7D%0A%0A - // If the selected item is already inside the view, we%E2%80%99re done here.%0A // When an item can be moved to the first column, this behavior is disabled%0A // as I prefer keeping the selected item in the first column in this case.%0A if (!config.keepSelectedPageInFir...
fb24bd3eef1b5948f6e1dbad80f7a1e7c7ff08cb
Add updateHandler to avoid mutiple call of hrome.windows.getAll
src/js/stores/WindowStore.js
src/js/stores/WindowStore.js
import { action, computed, observable } from 'mobx' import { moveTabs } from '../libs' export default class WindowsStore { constructor (store) { this.store = store this.updateAllWindows() } @observable windows = [] @observable windowsMap = new Map() @observable tabsMap = new Map() @computed get...
JavaScript
0
@@ -296,16 +296,40 @@ Map()%0A%0A + updateHandler = null%0A%0A @compu @@ -709,16 +709,144 @@ =%3E %7B%0A + if (this.updateHandler != null) %7B%0A clearTimeout(this.updateHandler)%0A %7D%0A this.updateHandler = setTimeout(%0A () =%3E chrome. @@ -896,16 +896,25 @@ Windows) +, 2%0A ) %0A ...
f54b339368687e8f88eb4bcb7ea5bd9bd408fabd
Remove "edX" from the logout popup message
lms/static/js/ajax-error.js
lms/static/js/ajax-error.js
$(document).ajaxError(function(event, jXHR) { if (jXHR.status === 403 && jXHR.responseText === 'Unauthenticated') { var message = gettext( 'You have been logged out of your edX account. ' + 'Click Okay to log in again now. ' + 'Click Cancel to stay on this page ' + ...
JavaScript
0
@@ -194,12 +194,8 @@ our -edX acco
bdbb688313108fbae2d25672b98fcbaa283f719f
add section comments
tvm.js
tvm.js
function FVPresentSum(PV, n, i) //Returns the Future Value of a Present Sum //PV = Present Value //n = Number of Periods //i = Interest Rate //https://en.wikipedia.org/wiki/Time_value_of_money#Future_value_of_a_present_sum { return PV * Math.pow(1+i, n); } function PVFutureSum(FV, n, i) //Returns the Present Value of...
JavaScript
0
@@ -1,16 +1,45 @@ +// FUNDAMENTAL TVM FORMULAS%0A%0A function FVPrese @@ -4018,16 +4018,41 @@ (1+i , n);%0A%09%7D%0A%7D%0A +%0A// APPLIED TVM FORMULAS%0A