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
61f48500aadea07884dbbf9e28b181c7a08a7932
use flags
grunt/usb-ids.js
grunt/usb-ids.js
'use strict'; module.exports = function (grunt) { grunt.registerTask('usbIds', 'Download, parse and reformat the USB vendor/product ID database', function () { let http = require('http'); let JSONStream = require('JSONStream'); let split = require('split'); let usbIdsTransformStream...
JavaScript
0.000001
@@ -864,14 +864,12 @@ his. -option +flag s.fo @@ -903,15 +903,15 @@ ok(' --- +%22 force +%22 ena
c31cb40dcc6cf828bb7af33a0ca919048bd2c50f
add messages to inform user of table clone success/failure
imports/ui/tables/tables.js
imports/ui/tables/tables.js
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; import { Tracker } from 'meteor/tracker'; import _ from 'underscore'; import Tables from '/imports/collections/tables'; import { createErrorDiv, initDraggables, activateInput, ...
JavaScript
0
@@ -248,24 +248,44 @@ ';%0Aimport %7B%0A + addUserMessage,%0A createEr @@ -3432,24 +3432,45 @@ response) %7B%0A + let msg;%0A @@ -3512,24 +3512,278 @@ error(err);%0A + msg = %60%3Cb%3ETable clone failed:%3C/b%3E $%7Berr.reason%7D%60;%0A addUserMessage(ms...
263228eb58392751c1b349ad8b2cc6c1059846a7
Remove extraneous logging
src/components/Login/LoginCtrl.js
src/components/Login/LoginCtrl.js
import React, { Component, PropTypes } from 'react'; // eslint-disable-line import { connect as reduxConnect } from 'react-redux'; // eslint-disable-line import { reset } from 'redux-form'; import { setCurrentUser, clearCurrentUser, setCurrentPerms, setLocale, setPlugins, setOkapiToken, clearOkapiToken, authFailure,...
JavaScript
0.00004
@@ -3331,54 +3331,8 @@ %7D);%0A - console.log('configs:', configs);%0A
145e12d6c75f75f2bc329529867da5930524d447
Tidy up
components/PathsMixin.js
components/PathsMixin.js
'use strict'; var React = require('react'); var paths = require('../paths'); var _ = require('lodash'); var config = require('config'); module.exports = { contextTypes: { location: React.PropTypes.object }, getPathPrefix: function(pathName) { return pathName.split('/').map(function() { return '';...
JavaScript
0.000027
@@ -41,18 +41,13 @@ ');%0A -%0A var -paths +_ = r @@ -58,24 +58,22 @@ re(' -../paths +lodash ');%0Avar _ = @@ -60,33 +60,37 @@ ('lodash');%0Avar -_ +paths = require('loda @@ -77,38 +77,40 @@ aths = require(' -lodash +../paths ');%0Avar config = @@ -130,17 +130,16 @@ fig');%0A%0A -%0A module.e
aaca732cfd549ccac164a1e33aef883f68f1c134
remove unused method in nodeadapter
vaultier/vaultier/scripts/app/dal/adapter/NodeAdapter.js
vaultier/vaultier/scripts/app/dal/adapter/NodeAdapter.js
ApplicationKernel.namespace('Vaultier.dal.adapter'); /** * @module vaultier-dal-adapter * @class Vaultier.dal.adapter.NodeAdapter * @extends RL.Model */ Vaultier.dal.adapter.NodeAdapter = Vaultier.dal.core.RESTAdapter.extend({ findParents: function (id) { return Utils.RSVPAjax({ url: '/api...
JavaScript
0.000001
@@ -230,1090 +230,8 @@ (%7B%0A%0A - findParents: function (id) %7B%0A return Utils.RSVPAjax(%7B%0A url: '/api/nodes/' + id + '/path',%0A type: 'get'%0A %7D).then(function (parentObjects) %7B%0A parentModels = %5B%5D;%0A parentObjects.forEach(function (parent...
fa29b300405d145d6e83f7d47ebf055e19cee57a
remove redundant className parameter
src/components/SocialLoginLink.js
src/components/SocialLoginLink.js
import React from 'react'; import utils from '../utils'; import UserStore from './../stores/UserStore'; let providerAuthorizationUris = { github: 'https://github.com/login/oauth/authorize', google: 'https://accounts.google.com/o/oauth2/v2/auth', linkedin: 'https://www.linkedin.com/uas/oauth2/authorization', f...
JavaScript
0.00002
@@ -2357,41 +2357,8 @@ ='#' - className=%7Bthis.props.className%7D onC
61f01f90952ffb4859a068d79617c45b7285cf2b
Improve formatting
serve.js
serve.js
#!/usr/bin/env node var express = require('express'); var rest = require('rest-sugar'); var sugar = require('object-sugar'); var taskist = require('taskist'); var config = require('./config'); var schemas = require('./schemas'); var tasks = require('./tasks'); main(); function main() { taskist(config.tasks, ta...
JavaScript
0.647729
@@ -13,16 +13,31 @@ nv node%0A +'use strict';%0A%0A var expr @@ -387,16 +387,34 @@ if(err) + %7B%0A return @@ -432,16 +432,30 @@ or(err); +%0A %7D %0A%0A @@ -797,24 +797,26 @@ );%0A %7D);%0A%0A +%0A%0A var api @@ -1169,22 +1169,8 @@ ment -, index, array ) %7B%0A @@ -...
e2f619b4cbeac97b4a18c682aae5b573995a9a87
use passive events.
side-nav/side-nav.js
side-nav/side-nav.js
/** * * Copyright 2016 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
JavaScript
0
@@ -1439,33 +1439,518 @@ this. -addEventListeners +supportsPassive = undefined;%0A this.addEventListeners();%0A %7D%0A%0A // apply passive event listening if it's supported%0A applyPassive () %7B%0A if (this.supportsPassive !== undefined) %7B%0A return this.supportsPassive ? %7Bpassive: true%7D : fals...
84acb02bed91af6c9cabadef224e93483fa21a2e
add room option to config
config/config.example.js
config/config.example.js
window.config = { connectUrl: 'https://goinstant.net/YOUR_ACCOUNT/YOUR_APP' };
JavaScript
0.000001
@@ -70,12 +70,49 @@ OUR_APP' +,%0A room: 'goinstant-widget-examples' %0A%7D;%0A
a7c7a8c82526a2cdde01abf19afe134ebbe62a89
Remove dead code
src/configs/babel-preset/index.js
src/configs/babel-preset/index.js
// 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 // distributed unde...
JavaScript
0.001497
@@ -1244,208 +1244,54 @@ %0A%0A -console.log(commentFlow, flow, production, react, removeFlow, target, typescript)%0A%0A // Comment Flow annotations.%0A if (commentFlow) %7B%0A console.log(commentFlow)%0A console.log(%22aaaaaaaaaaaaaaaaaa%22 +// Comment Flow annotations.%0A if (commentFlow )%0A @@ -1367,...
fac55cbe2f6dc15efb4c01e888148d786efd5407
update link back in header
src/containers/HeaderContainer.js
src/containers/HeaderContainer.js
// ============================================================================= // Import // ============================================================================= // React import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Components import { Header, Navbar, NavbarBlock, NavbarT...
JavaScript
0
@@ -430,16 +430,22 @@ import %7B + Flex, Contain @@ -479,13 +479,8 @@ yout -/Grid ';%0Ai @@ -989,16 +989,107 @@ quired,%0A + history: PropTypes.shape(%7B%0A goBack: PropTypes.func.isRequired,%0A %7D).isRequired,%0A %7D;%0A%0A @@ -1333,58 +1333,69 @@ %3C -Link to=%22/%22 isBare isVenter%3E%0A ...
23c1783116f2ea3c6839bf70d68768533cd91704
Update gh-pages
_includes/model.js
_includes/model.js
// Gimme a Github object! Please. function github() { return new Github({ token: $.cookie('oauth-token'), username: $.cookie('username'), auth: "oauth" }); } // Helpers // ------- function isMarkdown(filename) { var regex = new RegExp("^(\\w|-)*\.(md|mkdn?|mdown|markdown)$"); return regex.test(fil...
JavaScript
0
@@ -558,16 +558,17 @@ getJSON( +' %7B%7Bsite.g
876bfb77406731d02058360e0b0760b26a6bcaef
add git shallow clone to MO repo
features/release.js
features/release.js
var extend = require('extend'), fs = require('fs-extra'), cmd = require('child_process'), glob = require('glob'), WORK_PATH = 'work'; function _cleanWorkspace() { if(fs.existsSync(WORK_PATH)) { console.log('remove path ' + WORK_PATH); fs.removeSync(WORK_PATH); } } function _error(error, c...
JavaScript
0
@@ -1227,32 +1227,42 @@ og('%5Cngit clone +--depth 1 ' + config.MEMOR @@ -1336,32 +1336,42 @@ exec('git clone +--depth 1 ' + config.MEMOR
25ca956a0a4a3482e162f36be26d1ed14cd838ef
fix keys warning on loop
src/app/components/container/ContainerDetails/Environtments.js
src/app/components/container/ContainerDetails/Environtments.js
import React from "react" import { Link } from "react-router" const Environtments = (props) => { const { env } = props const varArr = env.map((e) => e.split("=")) return ( <tbody className="table-stack-list"> { varArr.map((arr) => <tr> <td>{arr[0]}</td> <td>{arr[1]}<...
JavaScript
0
@@ -260,16 +260,44 @@ %3Ctr + key=%7B%60$%7Barr%5B0%5D%7D-$%7Barr%5B1%5D%7D%60%7D %3E%0A
7c433e7ab77360f0072eaa5e2889c9cec03e5e1c
Update Lookup definition.
definitions/Lookup.js
definitions/Lookup.js
export default { "type": "Lookup", "metadata": {"modifies": true}, "params": [ { "name": "index", "type": "index", "params": [ {"name": "from", "type": "string", "signal": false, "required": true }, {"name": "key", "type": "field", "required": true } ] }, { "name": "fields", "type": ...
JavaScript
0
@@ -168,32 +168,13 @@ %22: %22 -string%22, %22signal%22: false +data%22 , %22r
9b9590fb28a1338ddd98fa323e9d959989391ec1
Fix updating public chat after create new one
components/NewChat.js
components/NewChat.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import { withApollo, gql } from 'react-apollo' import fetch from 'isomorphic-fetch' import some from 'lodash/some' import { FIRSTLOAD_CHATROOMS_QUERY } from '../graphql/PublicChatrooms' import { FIRSTLOAD_USER_CHATROOMS_QUERY } from '../graphq...
JavaScript
0
@@ -189,79 +189,8 @@ e'%0A%0A -import %7B FIRSTLOAD_CHATROOMS_QUERY %7D from '../graphql/PublicChatrooms'%0A impo @@ -4884,66 +4884,8 @@ %7D%0A%0A - updateChatroomsQuery(FIRSTLOAD_CHATROOMS_QUERY)%0A
cc3191cb78684c5096a81ba58fd299761befc1d2
test on ie9 instead of non-working ie8
conf/karma.conf-ci.js
conf/karma.conf-ci.js
const fs = require("fs"); const TEST_WIN_VERSION = "Windows 10"; const TEST_WIN_LEGACY_VERSION = "Windows 7"; const TEST_OSX_VERSION = "OS X 10.12"; // Browsers to run on Sauce Labs var customLaunchers = { sl_chrome: { base: "SauceLabs", browserName: "chrome", platform: TEST_WIN_VERSION ...
JavaScript
0.000001
@@ -1100,35 +1100,47 @@ platform: -%22Windows 7%22 +TEST_WIN_LEGACY_VERSION ,%0A // @@ -1163,24 +1163,27 @@ // %7D,%0A + // sl_ie_8: %7B%0A @@ -1181,24 +1181,27 @@ _ie_8: %7B%0A + // base: %22 @@ -1207,32 +1207,35 @@ %22SauceLabs%22,%0A + // browserName @@ -1252,32 +1252,35 @@ ...
afd3dc8a15e887de293b1bc975cbfcced3515470
Fix test
src/components/Publication/__test__/PublishingDatasets.test.js
src/components/Publication/__test__/PublishingDatasets.test.js
import React from 'react' import Errors from '../../Errors/Errors' import OrganizationDatasets from '../../Organization/OrganizationDatasets' import { mount } from 'enzyme' import datasets from '../../../fetch/__test__/organizationDatasets.json' import notPublishedYet from '../../../fetch/__test__/organizationNotPubli...
JavaScript
0.000004
@@ -1224,16 +1224,37 @@ Datasets + organizationId=%7B'1'%7D publish
242b62e4fe75b0460fa28a301f3f779ec13abe3b
Fix loader
Tools/DevLoader/BabylonLoader.js
Tools/DevLoader/BabylonLoader.js
// Old Fashion Way for IE 11 Devs. Yes, that still exists ;-) var BABYLONDEVTOOLS; (function (BABYLONDEVTOOLS) { var getJson = function(url, callback, errorCallback) { var xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onload = function () { if (this.status ...
JavaScript
0.000001
@@ -4166,24 +4166,47 @@ else + if (self.dependencies) %7B%0D%0A
a9078df619bbfd79dd325afb38e012ea8001fc5a
use object shorthand for getRemainingTimeInMillis
src/lambda/handler-runner/in-process-runner/InProcessRunner.js
src/lambda/handler-runner/in-process-runner/InProcessRunner.js
import { createRequire } from 'node:module' import { performance } from 'node:perf_hooks' import process from 'node:process' import { log } from '@serverless/utils/log.js' const { floor } = Math const { assign } = Object const require = createRequire(import.meta.url) export default class InProcessRunner { #env = n...
JavaScript
0.000368
@@ -2382,15 +2382,10 @@ llis -: () =%3E +() %7B%0A
1705e2c99e0d20918c79571f2294f4daa12b27c4
remove typo
build.js
build.js
'use strict'; var hbs = require("handlebars"); var fs = require("fs"); var Async = require("async"); var path = require("path"); var inFile = "./src/scramble.js.hbs"; var outFile = "./dist/scramble.js"; var ent = "./entities.json"; var chars = "./chars.txt"; Async.map([inFile, ent, chars], fs.readFile, function(err...
JavaScript
0.999999
@@ -159,12 +159,8 @@ e.js -.hbs %22;%0Av
a979a8ae10a616b77cae7bb41359a29bdd3f8473
Use writeFileSync instead of writeFile which is asynchronous
build.js
build.js
const fs = require('fs') const path = require('path') const colors = require('colors') const sass = require('node-sass') const cleanCSS = require('clean-css') const options = { main_scss: 'src/scss/main.scss', output_dir: 'dist/', output_css: 'dist/css/meshki.css', output_css_...
JavaScript
0.000353
@@ -1649,32 +1649,36 @@ fs.writeFile +Sync (options.output_ @@ -2185,16 +2185,20 @@ riteFile +Sync (options @@ -2488,16 +2488,20 @@ riteFile +Sync (%60$%7Bopti
96630c53fa7b26257337e7acf9423f53f0e750b1
add mock test for s3 upload
server/v1/tests/user.test.js
server/v1/tests/user.test.js
import request from 'supertest'; import httpStatus from 'http-status'; import jwt from 'jsonwebtoken'; import chai, { expect } from 'chai'; import app from '../../../index'; import config from '../../../config/config'; chai.config.includeStack = true; describe('## User APIs', () => { let user = { username: 'kk1...
JavaScript
0
@@ -2915,32 +2915,327 @@ );%0A %7D);%0A %7D); +%0A describe('# POST /v1/users/picture', () =%3E %7B%0A it('should set users picture', (done) =%3E %7B%0A request(app)%0A .post('/v1/users/picture')%0A .set('Authorization', jwtToken)%0A .send(user)%0A .then(() =%3E %7B%0A ...
696794befeee4105acba07cc390dfcd2de1ac868
Remove ajaxLoad on finished.🔨
WebServer/Website/j/test_case.js
WebServer/Website/j/test_case.js
/* * Copyright 2017 Liming Jin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
JavaScript
0
@@ -4235,24 +4235,179 @@ essage')) %7B%0A + if(lastI == e.message.i && lastO == e.message.o) %7B%0A document.removeEventListener('scroll', ajaxLoad);%0A %7D%0A @@ -5482,43 +5482,22 @@ -document.addEventListener('scroll', +let ajaxLoad = () @@ -564...
3f06e2a9d35f604b90c01b04a5a629d7eab73f6e
Switch to new location of system UI application
source/FilePicker.js
source/FilePicker.js
/** A FilePicker control is used for allowing the user to choose files using the standard picker UI. The onPickFile event fires with a response from the file picker if/when the user chooses a file. The response object is an array of objects indicating chosen files: [ { fullPath: // Absolute File Path. iconP...
JavaScript
0
@@ -1608,29 +1608,35 @@ usr/ -lib/luna/system/luna- +palm/applications/com.palm. syst
81b6ad2ce29676453426f41513cd274fd4d2a956
update std qty validator
src/po/purchase-order-group-validator.js
src/po/purchase-order-group-validator.js
require("should"); var validatePurchaseOrder = require('./purchase-order-validator'); var validateSupplier = require('../core/supplier-validator'); var validateStandardQuality = require('./standard-quality-test-validator'); standard-quality-test-percentage-validator module.exports = function (data) { data.should....
JavaScript
0
@@ -204,16 +204,27 @@ ty-test- +percentage- validato
52fc5b6491b4690157a5c2bf4c4113b76e7309bc
Change toaster timeout
dev/app/services/tb-utils.service.js
dev/app/services/tb-utils.service.js
(function() { "use strict"; angular .module('VinculacionApp') .factory('TbUtils', TbUtils); TbUtils.$inject = ['toaster', '$rootScope']; function TbUtils (toaster, $rootScope) { var service = { fillList: fillList, displayNotification: displayNotification, ...
JavaScript
0.000002
@@ -885,16 +885,51 @@ dy: body +,%0A timeout: 1500 %0A
bf70c95ae07ac369b963decdce323f17e86fd494
Update Home.js
src/public/js/components/screens/Home.js
src/public/js/components/screens/Home.js
import React from 'react'; import { connect } from 'react-redux'; import { aggregatedDocumentBudgetaireNodeTotal } from '../../../../shared/js/finance/AggregationDataStructures.js' import { EXPENDITURES } from '../../../../shared/js/finance/constants'; import Markdown from '../../../../shared/js/components/Markdown';...
JavaScript
0
@@ -2019,22 +2019,19 @@ %C3%A8s d -e 993 +'1 milli -ons +ard d%E2%80%99e @@ -2582,202 +2582,351 @@ n: %60 -Avec une moyenne de 200 millions d%E2%80%99euros investis chaque ann%C3%A9e depuis le d%C3%A9but de la mandature, le D%C3%A9partement adopte une strat%C3%A9gie volontariste dans une p%C3%A9riode de r%C3%A9du...
acd96f4a7056a90ae045e722c27f54196a753359
Remove unnecessary global shortcuts
source/main/index.js
source/main/index.js
import os from 'os'; import { app, globalShortcut, Menu, dialog } from 'electron'; import log from 'electron-log'; import { client } from 'electron-connect'; import { includes } from 'lodash'; import { setupLogging } from './utils/setupLogging'; import { setupTls } from './utils/setupTls'; import { makeEnvironmentGloba...
JavaScript
0.000001
@@ -3751,434 +3751,8 @@ %0A %7D -%0A%0A if (!environment.isDev()) %7B%0A // In non-dev environment we don't show %22Network Status%22 item in the application menu%0A // so for the users to be able to reach the page we must register global shortcuts.%0A mainWindow.on('focus', () =%3E %7B%0A globalShortc...
844e2d930dabbcc9f3946de27588fa06c8514be8
Remove calling `toJSON` on a plain object
src/reducers/Entities/LocationReducer.js
src/reducers/Entities/LocationReducer.js
import { LOCATION_ACTIONS } from '../../actions/Entities'; import { UIDatabase } from '../../database'; import { ROUTES } from '../../navigation/index'; import { SYNC_TRANSACTION_COMPLETE } from '../../sync/constants'; const getById = () => UIDatabase.objects('Location').reduce( (acc, location) => ({ ...ac...
JavaScript
0.000003
@@ -1168,25 +1168,16 @@ location -.toJSON() %7D, newI
c0638ccb4175366c8f33611e573b617e7315ecea
Make sure queue view takes up 100% width
src/routes/Queue/components/QueueView.js
src/routes/Queue/components/QueueView.js
import React, { PropTypes } from 'react' import Navigation from 'components/Navigation' import QueueItem from './QueueItem' class QueueView extends React.Component { static propTypes = { result: PropTypes.array.isRequired, entities: PropTypes.object.isRequired, errors: PropTypes.object, curId: PropTy...
JavaScript
0
@@ -2313,16 +2313,31 @@ style=%7B%7B +width: '100%25', overflow
69ed51ec32af5fbbfebd2114c965ab8454b2c0b5
Remove unused variable
carty.js
carty.js
'use strict'; var extend = require('extend'); var emitter = require('./util/emitter'); var hasOwn = Object.prototype.hasOwnProperty; function isTypeOf(type, item) { return typeof item === type; } var isString = isTypeOf.bind(null, typeof ""); var isUndefined = isTypeOf.bind(null, typeof undefined); var isFuncti...
JavaScript
0.000015
@@ -86,55 +86,8 @@ );%0A%0A -var hasOwn = Object.prototype.hasOwnProperty;%0A%0A func
f93eb520871b6c19040e4d80875b30517dba1c86
FIx clearing personIdMap on section unset
src/store/courses/SectionParticipants.js
src/store/courses/SectionParticipants.js
Ext.define('Slate.store.courses.SectionParticipants', { extend: 'Ext.data.Store', model: 'Slate.model.course.SectionParticipant', config: { section: null, cohort: null, role: null, pageSize: 0, remoteSort: false, sorters: [ { pr...
JavaScript
0
@@ -890,12 +890,14 @@ e.pe -ople +rsonId Map
62a0a12c364624a8b097ea4469e485c57ae72dcb
add cloud func sleep
cloud.js
cloud.js
var AV = require('leanengine'); var rp = require('request-promise'); var APPID = process.env.APPID; var SecretKey = process.env.SecretKey; var dailyWeather = require('./actions/dailyWeather'); AV.Cloud.define('hello', function(request, response) { console.error('Hello world!'); response.success('Hello world!'); ...
JavaScript
0.001366
@@ -61,16 +61,44 @@ omise'); +%0Avar http = require('http'); %0A%0Avar AP @@ -338,32 +338,332 @@ world!');%0A%7D);%0A%0A +AV.Cloud.define('noSleep', function(request, response) %7B%0A http.get(%22http://robot.leanapp.cn/sleep%22, function(res) %7B%0A console.error(%22Got response: %22 + res.statusCode);%0A %7D)....
7b31ef295c54c7056354762c7a7ec5ddac32689c
Remove console
const.js
const.js
'use strict'; // Wit.ai parameters const WIT_TOKEN = process.env.WIT_TOKEN; if (!WIT_TOKEN) { throw new Error('missing WIT_TOKEN'); } // Messenger API parameters const FB_PAGE_TOKEN = process.env.FB_PAGE_TOKEN; var FB_VERIFY_TOKEN = process.env.FB_VERIFY_TOKEN; if (!FB_VERIFY_TOKEN) { console.log("Replacing by W...
JavaScript
0.000002
@@ -288,63 +288,8 @@ ) %7B%0A - console.log(%22Replacing by WIT_TOKEN: %22 + WIT_TOKEN);%0A FB
57c2e22d8c73d6f42de2c58056ae6844faaf5378
add app_2 to valid sections in release config for grunt --production=1 and --staging=1
build/config/constants.js
build/config/constants.js
const release_targets = { production: { repo : 'git@github.com:binary-static-deployed/binary-static.git', CNAME: 'www.binary.com', }, staging: { repo : 'git@github.com:binary-com/binary-static.git', CNAME: 'staging.binary.com', }, binarynex: { repo : 'git@gith...
JavaScript
0.000001
@@ -1044,32 +1044,41 @@ sections: %5B'app' +, 'app_2' %5D,%0A origi @@ -1285,32 +1285,41 @@ sections: %5B'app' +, 'app_2' %5D,%0A origi
7e16addb8073161e380058fe3f7d9fd59a4e156c
Make dynamicOptionKeys optional
cli/src/commands/index.js
cli/src/commands/index.js
// @flow import R from 'ramda'; import type { Argv } from 'yargs'; import type { LagoonConfig } from '../config'; export type BaseHandlerArgs = {| argv: Argv, cwd: string, clog: typeof console.log, cerr: typeof console.error, |}; const notUndefined = R.complement(R.equals(undefined)); export function getOp...
JavaScript
0.000712
@@ -491,16 +491,17 @@ ys,%0A%7D: %7B +%7C %0A confi @@ -596,16 +596,17 @@ tionKeys +? : Array%3C @@ -614,16 +614,17 @@ tring%3E,%0A +%7C %7D) %7B%0A r @@ -774,16 +774,22 @@ tionKeys + %7C%7C %5B%5D , config
73a064f46dbb292dffc8640c4dd3b4af7a9e3997
change description of hjson formatter
test/human-formatter/application/json.js
test/human-formatter/application/json.js
/** * Created by numminorihsf on 15.02.16. */ var expect = require('chai').expect; var mod = require('../../../human-formatter/application/json'); describe('formatter/application/json', function(){ it('wrap String to JSON', function(){ var a = 'asdfe sdfjkejreGERT'; mod(a, function(err, res){ expect(...
JavaScript
0
@@ -153,16 +153,22 @@ scribe(' +human- formatte
acc658f6ba46a8be74750ec4b3d45526ca61fd06
Remove used variable
lib/service.js
lib/service.js
'use strict' var os = require('os') var serviceName = require('multicast-dns-service-types') var txt = require('mdns-txt') var mdns = require('./mdns') var TLD = '.local' var hostname = os.hostname() var Service = module.exports = function (opts) { this.name = opts.name || hostname.replace(/\.local\.?$/, '') thi...
JavaScript
0.000003
@@ -120,37 +120,8 @@ xt') -%0Avar mdns = require('./mdns') %0A%0Ava
a8689937a9f202e5efd4a003435fd6e3652ef72c
Simplify pass through of CHECK_SYNTACTIC_ERRORS
lib/service.js
lib/service.js
var ts = require('typescript'); var process = require('process'); var IncrementalChecker = require('./IncrementalChecker'); var CancellationToken = require('./CancellationToken'); var checker = new IncrementalChecker( process.env.TSCONFIG, process.env.TSLINT === '' ? false : process.env.TSLINT, process.env.WATCH...
JavaScript
0.000017
@@ -482,60 +482,8 @@ RORS - === '' ? false : process.env.CHECK_SYNTACTIC_ERRORS %0A);%0A
5e038563a2e7839029c9fd236cc1dd3c37627f5c
Remove old code
api/controllers/index.js
api/controllers/index.js
const log = require('debug')('quad-blog:api:controllers') // const compose = require('composition') /** * List of controllers to load * Kept manually because it's simpler and the list is short */ const CONTROLLER_LIST = [ 'posts' ] /** * Controller loader * Loads each controller from CONTROLLER_LIST * @return...
JavaScript
0.968948
@@ -54,50 +54,8 @@ rs') -%0A// const compose = require('composition') %0A%0A/* @@ -632,178 +632,8 @@ are%0A - // const middleware = compose(Object.keys(controllers).map(name =%3E %7B%0A // log(%60getting middleware for $%7Bname%7D controller%60)%0A // return controllers%5Bname%5D()%0A // %7D))%0A co
f6263812b52d01fa7bc79a5fef100089913591d9
set neutral theme as default prop
components/badge/Badge.js
components/badge/Badge.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import { TextBody } from '../typography'; import cx from 'classnames'; import theme from './theme.css'; class Badge extends PureComponent { handleMouseUp = event => { this.badgeNode.getNode().blur(); i...
JavaScript
0.000001
@@ -2966,16 +2966,36 @@ false,%0A + color: 'neutral',%0A %7D;%0A%0Aexpo
2b0534e0c6078ced8c92faaf0ddb084f71bce702
remove now useless `plotter.Job.point()` temporisation method
lib/src/job.js
lib/src/job.js
const SVG = require('./svg'); const sh = require('kool-shell'); const config = require('./../config.json'); function Job(jobName, _buffer) { let buffer = _buffer || ['\n', '\0']; let penIsUp = true; const api = { // DEPRECATED // callback: function(){}, getName() { return jobName; }, get...
JavaScript
0
@@ -4139,112 +4139,59 @@ -api.move(x, y);%0A // TODO : find a better temporisation method%0A for (let i = 0; i %3C 2; i++) api +return api%0A .move(x, y)%0A .pen @@ -4200,51 +4200,33 @@ own( -true); +) %0A -api.pen_up();%0A return api + .pen_up() ;%0A
43a556eaac0820e31f30c6a11552e635432a1803
Use toolbar class factory in ToolbarAction
src/ToolbarAction.js
src/ToolbarAction.js
L.ToolbarAction = L.Handler.extend({ statics: { baseClass: 'leaflet-toolbar-icon' }, options: { toolbarIcon: { html: '', className: '', tooltip: '' }, subToolbar: new L.Toolbar() }, initialize: function(options) { var defaultIconOptions = L.ToolbarAction.prototype.options.toolbarIcon; L.set...
JavaScript
0
@@ -180,16 +180,12 @@ bar: - new L. -T +t oolb @@ -1794,19 +1794,16 @@ (this);%0A -%09%09%09 %0A%09%09%09subT @@ -2191,8 +2191,9 @@ s %7D);%0A%7D; +%0A
1cb646d00aab24021542bda6cbd15a25db71f9ab
Remove size for IconTabs
components/tab/IconTab.js
components/tab/IconTab.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; import omit from 'lodash.omit'; class IconTab extends PureComponent { static propTypes = { active: PropTypes.bool, children: PropTypes.node...
JavaScript
0
@@ -487,61 +487,13 @@ nc,%0A - size: PropTypes.oneOf(%5B'small', 'medium'%5D),%0A %7D;%0A + %0A s @@ -556,28 +556,8 @@ se,%0A - size: 'medium',%0A %7D; @@ -908,198 +908,8 @@ %7D%0A%0A - getPaddingHorizontal = () =%3E %7B%0A const %7B size %7D = this.props;%0A switch (size) %7B%0A case 'sma...
2cb8304557a2ddb4e12c0006b20e50cd66adb13b
fix saving //Comments only// pref in ticket view.
trac/htdocs/js/threaded_comments.js
trac/htdocs/js/threaded_comments.js
/* Threaded ticket comments ======================== See the #prefs form in ticket.html. We have three mutually exclusive orders, 'newest' first, 'oldest' first and 'threaded'. In addition, changes without comments can be filtered out. When switching to 'threaded', the changes without comments mus...
JavaScript
0.000006
@@ -3229,16 +3229,18 @@ s_only: +!! comments
19d6f1f7d0f1fa3300e4a582d93b86ba3ddf396a
Update build console log messages
build.js
build.js
const compressor = require('node-minify'); compressor.minify({ compressor: 'gcc', input: 'anime.js', output: 'anime.min.js', opcitons: { compilation_level: 'SIMPLE_OPTIMIZATIONS', language_out: 'ECMASCRIPT5' }, callback: (err, min) => { if (err) { console.error(err); } else { co...
JavaScript
0
@@ -37,16 +37,48 @@ ify');%0A%0A +console.log('Compiling... %F0%9F%98%A4');%0A%0A compress @@ -387,9 +387,11 @@ ss! -%F0%9F%91%8D +%F0%9F%98%8E %F0%9F%8D%BA ');%0A
d910df5e4a6ffb8cf0c4495a2c98f32f6bdf8393
Improve structure
build.js
build.js
'use strict'; var fs = require('fs'); var _path = require('path'); var Promise = require('es6-promise').Promise; var mkdirp = require('mkdirp'); var ncp = require('ncp'); var webpack = require('webpack'); var webpackConfig = require('./webpack.coffee').build; exports.buildDevIndex = function(config) { process.env....
JavaScript
0.000132
@@ -1356,25 +1356,24 @@ cess.cwd();%0A -%0A var @@ -1364,32 +1364,73 @@ ();%0A var +params = %7B%0A cwd: cwd,%0A renderPage = req @@ -1415,34 +1415,33 @@ renderPage - = +: require(_path.j @@ -1484,25 +1484,25 @@ icPage.js')) -; +, %0A var @@ -1502,19 +1502,19 @@...
a9370c25f0d25ccf4cd07966e0330e4badd34ea3
remove protocol override in favor of network version postfix
lib/version.js
lib/version.js
'use strict'; var semver = require('semver'); var assert = require('assert'); module.exports = { protocol: process.env.STORJ_PROTOCOL || '0.7.0', software: require('../package').version }; assert( semver.valid(module.exports.protocol), 'Invalid protocol version specified' );
JavaScript
0
@@ -76,77 +76,137 @@ ');%0A -%0Amodule.exports = %7B%0A protocol: process.env.STORJ_PROTOCOL %7C%7C '0.7.0' +var postfix = process.env.STORJ_NETWORK ? '-' + process.env.STORJ_NETWORK : '';%0A%0Amodule.exports = %7B%0A protocol: '0.7.0' + postfix ,%0A
fff9afac02a465e8874a0a6d2693b89c9ab9a548
Remove experimental URLs in microservices.js
application/configs/microservices.js
application/configs/microservices.js
'use strict'; const co = require('../common'); module.exports = { 'deck': { uri: (!co.isEmpty(process.env.SERVICE_URL_DECK)) ? process.env.SERVICE_URL_DECK : 'https://deckservice.experimental.slidewiki.org' }, 'file': { uri: (!co.isEmpty(process.env.SERVICE_URL_FILE)) ? process.env.SERVICE_URL_FILE : 'h...
JavaScript
0.000172
@@ -164,17 +164,16 @@ : 'http -s ://decks @@ -182,35 +182,8 @@ vice -.experimental.slidewiki.org '%0A @@ -288,17 +288,16 @@ : 'http -s ://files @@ -306,35 +306,8 @@ vice -.experimental.slidewiki.org ',%0A @@ -455,17 +455,16 @@ : 'http -s ://unoco @@ -476,35 +476,8 @@ vice -.experimental.slidewiki.org ...
6125126f6d43390b63a163f17ace6fd20b68e4a3
Remove unused variables
src/api/getissues.js
src/api/getissues.js
import * as dotenv from 'dotenv'; // see https://github.com/motdotla/dotenv#how-do-i-use-dotenv-with-import dotenv.config(); import axios from 'axios'; export async function handler(event, _context) { const params = new URLSearchParams(event.queryStringParameters); const oauthCode = params.get('oauthCode'); let ...
JavaScript
0.000007
@@ -185,18 +185,8 @@ vent -, _context ) %7B%0A @@ -976,22 +976,16 @@ nction ( -status ) %7B%0A
521567e7ca2ae15834b0716e69f2766e2d79ec7e
Copy Polymer .css when building chrome_app and web_app (was .html + .js)
src/app/gruntfile.js
src/app/gruntfile.js
// Copyright (c) 2014 The Axiom Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. module.exports = function(grunt) { // Load the grunt related dev deps listed in package.json. require('matchdep').filterDev('grunt-*').forEach(grunt....
JavaScript
0
@@ -1412,32 +1412,52 @@ ymer/**/*.html', + 'polymer/**/*.css', 'polymer/**/*.j @@ -2807,32 +2807,52 @@ ymer/**/*.html', + 'polymer/**/*.css', 'polymer/**/*.j
b324fb62819abe43b09acdb732158a25512a63af
update fireball-x/dev#594:实现获取 texture 像素值
src/asset/texture.js
src/asset/texture.js
Fire.Texture = (function () { /** * Class for texture handling. * Use this to create textures on the fly or to modify existing texture assets. * * @class Texture * @extends Asset * @constructor * @param {Image} [img] - the html image element to render */ var Texture = Fi...
JavaScript
0
@@ -2234,26 +2234,1868 @@ -return Texture;%0A%7D)() +/**%0A * Returns pixel color at coordinates (x, y).%0A *%0A * If the pixel coordinates are out of bounds (larger than width/height or small than 0),%0A * they will be clamped or repeated based on the texture's wrap mode.%0A *%0A * @metho...
da8bb5c1b70602e781bdd033fe5efb54ca5a2e3a
use correct status code for bad request
src/back/security.js
src/back/security.js
import got from 'got'; import { getUser, setUser } from './user_cache.js'; export async function getToken(request, response) { const accessTokenName = 'authorization_code'; const grantTypes = [accessTokenName, 'refresh_token']; if (request.body.client_id !== process.env.CLIENT_ID) { return response.status(40...
JavaScript
0.000001
@@ -2908,17 +2908,17 @@ s(40 -1 +0 ).send(' Acce @@ -2917,19 +2917,38 @@ nd(' -Access deni +authorization header is requir ed')
e0cbbeede17abacd438ce062b31085e2dd5c4aba
remove debug
lib/webtask.js
lib/webtask.js
/*jslint node: true */ 'use strict'; var cookieparser = require('cookie-parser'), webtaskContext = require('./context'), render = require('./render'), locate = require('./locate'), webtask = { init: function (app) { app.use(cookieparser()); app.middleware = webtask.middleware; }, ...
JavaScript
0.000002
@@ -543,51 +543,8 @@ ) %7B%0A -console.log('task done~');%0Aconsole.log(R);%0A
3fdf5831d4f571f7509863146be7b8661e329333
Clarify comment about saving the `var` keyword
src/p.js
src/p.js
var P = (function(prototype, ownProperty, undefined) { return function P(_superclass /* = Object */, definition) { // handle the case where no superclass is given if (definition === undefined) { definition = _superclass; _superclass = Object; } // C is the class to be returned. // ...
JavaScript
0.000036
@@ -1544,16 +1544,35 @@ keyword + after minification %0A var
ff97eb668232a9a5d38b3b4efc6495c43184d166
Fix y.js imports
src/y.js
src/y.js
import Y from 'yjs' import yMemory from 'y-memory' import yWebrtc from 'y-webrtc' import yArray from 'y-array' import yMap from 'y-map' yMemory(Y) yWebrtc(Y) yArray(Y) yMap(Y) Y({ db: { name: 'memory' }, connector: { name: 'webrtc', room: 'acailly-roti' }, share: { map: 'Map', array: '...
JavaScript
0.000001
@@ -11,16 +11,23 @@ rom 'yjs +/dist/y '%0Aimport @@ -49,16 +49,30 @@ y-memory +/dist/y-memory '%0Aimport @@ -94,16 +94,30 @@ y-webrtc +/dist/y-webrtc '%0Aimport @@ -137,16 +137,29 @@ 'y-array +/dist/y-array '%0Aimport @@ -175,16 +175,27 @@ m 'y-map +/dist/y-map '%0A%0AyMemo
3d21a33209f18f1808f0ace998720036e4f6e6a6
Revert "Pulling again"
start.js
start.js
var buckets = require('./buckets'); var bodyParser = require('body-parser'); var express = require('express'); var app = express(); // read the body of any content type as utf-8 text app.use(bodyParser.text({ type: function () { return true; } })); // Relay event data, securely, to Initial State app.post('/:bucket/:...
JavaScript
0
@@ -826,52 +826,8 @@ ();%0A - console.log(req.params.event, req.body); %0A%7D);
4bf0751c5e9bac8e177d8369e7e841d4ce61a537
Add JSdoc to the source.
story.js
story.js
/*jslint browser: true */ (function (exports) { 'use strict'; var namespace; if (exports.ziq) { namespace = exports.ziq; } else { namespace = exports.ziq = {}; } function Story() { var seq = [], story = this, handle = false, cursor = 0, callbac...
JavaScript
0
@@ -62,20 +62,39 @@ rict';%0D%0A +%0D%0A +/** @namespace */ %0D%0A va @@ -107,20 +107,16 @@ space;%0D%0A - %0D%0A if @@ -223,28 +223,97 @@ %7B%7D;%0D%0A %7D%0D%0A +%0D%0A +/**%0D%0A * The story object.%0D%0A *%0D%0A * @constructor%0D%0A */ %0D%0A functi @@ -347,16 +347,...
0ea60e86cc687c15f74f1d7648a1fe25e668c30d
fix incorrect event handler
src/client/socket.js
src/client/socket.js
import logger from "./logger" export default class Socket { constructor(store) { this.store = store this.connect() } connect() { this.socket = new WebSocket("ws://localhost:3000/ws") this.socket.addEventListener("open", this.open.bind(this)) this.socket.addEventListener("error", this.error....
JavaScript
0.000077
@@ -431,36 +431,38 @@ %22message%22, this. -clos +messag e.bind(this))%0A
2e87814270ca71264752b915024db7247931a978
Add per-command help
src/commands/help.js
src/commands/help.js
exports.run = async function (Bot, msg, args) { if (!args[0]) { const content = `To set a reminder, simply send \`${msg.channel.guild.prefix}remindme\` and follow the instructions.\n` + `Alternatively, you can also send \`${msg.channel.guild.prefix}remindme time_argument "message"\`, ` + ...
JavaScript
0.000003
@@ -37,24 +37,201 @@ sg, args) %7B%0A + const filteredCommands = %5B%5D;%0A Bot.commands.forEach((key, command) =%3E %7B%0A if (!command.props.ownerOnly) %7B%0A filteredCommands.push(key);%0A %7D%0A %7D);%0A%0A if (!arg @@ -850,24 +850,26 @@ : filter +ed Commands (Bot.com @@ -...
c630d4963852218ecdab217e488aecc62ae47ab7
add axis zoom options to line
line/line.js
line/line.js
var d3 = require('d3'); var margin = { top: 30, right: 20, bottom: 20, left: 45 }; var LineGraph = function(selector, data, images, opts) { var self = this; if(!opts) { opts = {}; } var width = (opts.width || $(selector).width()) - margin.left - margin.right; var height ...
JavaScript
0
@@ -1003,24 +1003,53 @@ %7D);%0A%0A +%0A if(opts.zoomAxes) %7B%0A this.zoo @@ -1070,16 +1070,17 @@ r.zoom() +; %0A @@ -1080,16 +1080,70 @@ +if(zoomAxes.indexOf('x') %3E -1) %7B%0A this.zoom .x(this. @@ -1136,32 +1136,33 @@ s.zoom.x(this.x) +; %0A .y(this @@ -1...
96ebcf3065c232d3719e853be6ed8bbb06399518
support repeating at low zoom levels (#4248)
modules/mapbox/src/deck-utils.js
modules/mapbox/src/deck-utils.js
import {Deck, WebMercatorViewport} from '@deck.gl/core'; export function getDeckInstance({map, gl, deck}) { // Only create one deck instance per context if (map.__deck) { return map.__deck; } const customRender = deck && deck.props._customRender; const deckProps = { useDevicePixels: true, _cust...
JavaScript
0
@@ -3273,16 +3273,38 @@ k.height +,%0A repeat: true %0A %7D
2950d46949ca3e4d9570a4628fb32bc62e10f722
Fixed a string
modules/owner/addMusicChannel.js
modules/owner/addMusicChannel.js
/* * Copyright (C) 2017 Sankarsan Kampa * https://sankarsankampa.com/contact * * This file is a part of Bastion Discord BOT. * https://github.com/snkrsnkampa/Bastion * * This code is licensed under the SNKRSN Shared License. It is free to * download, copy, compi...
JavaScript
0.999997
@@ -2074,16 +2074,24 @@ a voice +channel (by ID)
67da1a443695d830cb17c240ae174742c4cc254d
Use country-neutral template in development mode
config/development.js
config/development.js
// App config in a development environment. import winston from "winston" const HOST = process.env.HOST || "localhost", apiBaseUrl = process.env.API_URL || `http://${HOST}:5000`, gitHubProject = "openfisca/openfisca-france", gitWebpageUrl = "https://github.com/openfisca/legislation-explorer", piwikConfig = n...
JavaScript
0.000008
@@ -210,23 +210,23 @@ sca/ -openfisca-franc +country-templat e%22,%0A
0c1f70e966030482c5f635dffd69dc7f05c454df
Add *.svg to imagemin config
dev/grunt/imagemin.js
dev/grunt/imagemin.js
module.exports = { main: { files: [{ expand: true, cwd: '<%= sourceIMGDir %>' + '/', src: ['**/*.{png,jpg,gif}'], dest: '<%= destIMGDir %>' + '/', }], }, };
JavaScript
0
@@ -126,16 +126,20 @@ ,jpg,gif +,svg %7D'%5D,%0A
66276537839920050a10870ef9180d4728d5f58f
add getBox to getBox
boxes.js
boxes.js
'use strict' const subscriptions = new Map() let globalState = {} function trigger (target, keys) { let link = subscriptions.get(target) if (link) { keys.forEach(k => link.has(k) && link.get(k).forEach(f => f(target))) } } let undoActions = { set (story) { story.target[story.key] = story.old }, u...
JavaScript
0
@@ -3647,16 +3647,24 @@ ubscribe +, getBox %0A %7D%0A
ec6e330433c2f38f234544af783cfbb7e1391751
Reduce time limits
src/config/levels.js
src/config/levels.js
import { CANVAS } from 'constants'; const levels = [ { timeLimit: 5, targets: [ [7, 3], [7, 6], ], }, { timeLimit: 5, targets: [ [2, 3], [2, 6], [7, 6], [7, 3], [13, 3], [13, 6], ], }, { timeLimit: 12, targets: [ [4, 3], ...
JavaScript
0.79234
@@ -271,33 +271,33 @@ timeLimit: 1 -2 +0 ,%0A targets: %5B @@ -2160,17 +2160,17 @@ Limit: 1 -2 +0 ,%0A ta
30ce53475f8b998248379d94c95d97ad2eec81a5
ext key expDate can be null now. means will not expire
modules/soajs.provision/index.js
modules/soajs.provision/index.js
'use strict'; var core = require("../soajs.core"); var log = null; var struct_oauths = {}; var struct_keys = {}; var struct_packages = {}; /** * * @param keyStruct * @param extKey * @returns {*} */ function getKeyData(keyStruct, extKey) { var obj = null; if (keyStruct && keyStruct.extKeys) { var...
JavaScript
0.999525
@@ -468,32 +468,66 @@ if + (!keyStruct.extKeys%5Bi%5D.expDate %7C%7C (keyStruct.extK @@ -598,16 +598,17 @@ Time())) +) %7B%0A
e5e0bd6310376d511ff4ff3b1359df831607fc0d
add sonme filter conditions
src/detectors/word_wrap_spaces.js
src/detectors/word_wrap_spaces.js
/* * Copyright 2010 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
JavaScript
0
@@ -1395,16 +1395,140 @@ AME'%5D;%0D%0A + var defaultDisplayNone = %5B'BASE', 'HEAD', 'META', 'NOFRAMES', 'NOSCRIPT',%0D%0A 'PARAM', 'SCRIPT', 'STYLE', 'TITLE'%5D;%0D%0A%0D%0A // If @@ -1640,24 +1640,140 @@ me)!=-1) %7B%0D%0A + if(node.parentElement.lastElementChild &&%0D%0A node.parentElement.las...
f125113ddcd9330a0e7dd136a3785353ab26a6b1
Fix syntax error
config/env/default.js
config/env/default.js
'use strict'; module.exports = { app: { title: 'PLM-accounts', description: 'OAuth2 provider service based on MEAN.JS', keywords: 'MEAN.JS, oauth2orize, OAuth2' googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID' }, port: process.env.PORT || 3000,...
JavaScript
0.000585
@@ -168,16 +168,17 @@ OAuth2' +, %0A goo
a53967b266a47f2f0405915f9bc8f5c454be13cd
Correct confirmation alert message when rolling back to a specific version. (from r90261)
javascript/CMSMain_right.js
javascript/CMSMain_right.js
function action_publish_right() { $('Form_EditForm_action_publish').value = ss.i18n._t('CMSMAIN.PUBLISHING'); $('Form_EditForm_action_publish').className = 'action loading'; var publish = true; $('Form_EditForm').save(false, null, 'save', publish); } function action_revert_right() { $('Form_EditForm_action_revert'...
JavaScript
0.000001
@@ -1098,16 +1098,253 @@ %09if( -confirm( +$('Form_EditForm').elements.Version && $('Form_EditForm').elements.Version.value) %7B%0A%09%09var message = %22Do you really want to roll back to version #%22 %0A%09%09%09+ $('Form_EditForm').elements.Version.value + %22 of this page?%22;%0A%09%09%09%0A%09%7D else %7B%0A%09%0...
1f13cefaf0d5eaf3e9db698318742fdb0d634518
Enable search in preview
config/environment.js
config/environment.js
'use strict'; const { existsSync } = require('fs'); const dotenv = require('dotenv'); const path = require('path'); const dotEnvPath = path.join(__dirname, '../.env'); if (existsSync(dotEnvPath)) { dotenv.config({ path: dotEnvPath }); } const API_VERSION = require('./api-version.js'); module.exports = function (env...
JavaScript
0
@@ -4728,32 +4728,77 @@ AuditOff = true; +%0A ENV.featureFlags%5B'globalSearch'%5D = true; %0A%0A //Remove m
398bc2e64d3a03ffcbbf325205de2ae24506086a
test needs to tell us which destination so we pick right creds
spec/destinations.js
spec/destinations.js
var async = require('async'); var config = Object.assign({}, require('../config.json')); config.TESTING = true; var outputFile = require('../bin/output-file'); var opt = { cfg: config, table: 'MOCK_DATA' }; var destinations = require('../bin/list-dest')(config); var colParser = require('../bin/col-parser'); var col...
JavaScript
0.000001
@@ -2274,24 +2274,58 @@ ion(done) %7B%0A + opt.destination = dest;%0A de
9acb0f7396da889dab0182cd22ba2d7f91883c82
Use expanded style in rendered css
build.js
build.js
let fs = require('fs'); let mkdirp = require('mkdirp'); let sass = require('node-sass'); sass.render({ file: 'sass/matter.sass', }, function (renderError, result) { if (renderError) { console.log(renderError); } else { mkdirp('dist/css', function (mkdirError) { if (mkdirError) { console.log...
JavaScript
0.000001
@@ -125,16 +125,67 @@ .sass',%0A + indentedSyntax: true,%0A outputStyle: 'expanded',%0A %7D, funct
f0d48f1c0f480cba94d0f7beaa4d424f68672f15
enable organization billing settings for production
config/environment.js
config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'diesel', environment: environment, baseURL: '/', locationType: 'auto', authBaseUri: process.env.AUTH_BASE_URI || "http://localhost:4000", apiBaseUri: process.env.API_BASE_URI || "http://localhost:4001...
JavaScript
0
@@ -5365,20 +5365,19 @@ ngs'%5D = -fals +tru e;%0A%0A
3e8a0535b0d796cd5c97b6db2358142e2ae63be2
Disable forever
build.js
build.js
require('de-builder')({ "type": 2 });
JavaScript
0.000006
@@ -22,14 +22,44 @@ (%7B%0A%09 -%22 +forever:%7B%0A%09%09enabled: false%0A%09%7D,%0A%09 type -%22 : 2%0A
2251a3d504b511aebd3107c8a7c94da14cbbea1a
Stop console error about content security policy
config/environment.js
config/environment.js
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'smallprint', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-...
JavaScript
0.000001
@@ -346,16 +346,96 @@ %0A %7D,%0A + contentSecurityPolicy: %7B%0A 'style-src': %22'self' 'unsafe-inline'%22,%0A %7D, %0A APP
79475494f61f04306b076baadfeb6841b00d2b87
Change module authors
app/components/footer.js
app/components/footer.js
'use strict'; var React = require('react'); module.exports = React.createClass({ displayName: 'Footer', render: function() { return ( <div className="mastfoot clearfix"> <div className="inner"> Ejemplo creado por <br /> Javier Perez - Pablo Miceli - Pabl...
JavaScript
0
@@ -257,76 +257,23 @@ -Ejemplo creado por %3Cbr /%3E Javier Perez - Pablo Miceli - Pablo Oviedo +By Javier Perez %0A
2c16bd9eb10753de5ff52a15a4f6fe019a408ee8
Convert to standard paper.js loop format.
src/core/Callback.js
src/core/Callback.js
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2014, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ /** * ...
JavaScript
0.000122
@@ -2234,21 +2234,21 @@ ar i = 0 -; i %3C +, l = handler @@ -2261,11 +2261,18 @@ th; +i %3C l; i ++ -i ) %7B%0A
89d4f216e7ef42a04ff18032da10a79dcdceea7f
Simplify the run function
build.js
build.js
const fs = require('fs') const path = require('path') const shell = require('shelljs') const run = (dir, cmd) => { return new Promise((resolve, reject) => { cmd = `cd ${dir} && ${cmd}` console.log(`Running "${cmd}"`) shell.exec(cmd, (code, stdout, stderr) => code ? reject(stderr) : resolve(stdout)) }) ...
JavaScript
0.99977
@@ -113,54 +113,8 @@ %3E %7B%0A - return new Promise((resolve, reject) =%3E %7B%0A cm @@ -139,18 +139,16 @@ $%7Bcmd%7D%60%0A - consol @@ -175,18 +175,16 @@ d%7D%22%60)%0A - - shell.ex @@ -195,76 +195,21 @@ md, -(code, stdout, stderr) =%3E code ? reject(stderr) : resolve(stdout))%0A +%7B async: tru...
16928dc45e02c1d54f6f65b0fffbad814858e777
Add door status indicator
app/components/garage.js
app/components/garage.js
'use strict'; var crypto = require('crypto-js'); var base64 = require('base-64'); var UserDefaults = require('react-native-userdefaults-ios'); var React = require('react-native'); var { AlertIOS, AsyncStorage, StyleSheet, Text, TouchableHighlight, View } = React; var Garage = React.createClass({ getInit...
JavaScript
0.000001
@@ -409,20 +409,42 @@ baseApi: + '',%0A doorStatus: ''%0A - %7D%0A @@ -631,16 +631,58 @@ nces();%0A + setInterval(this.garageStatus, 1000);%0A %7D,%0A _ @@ -1783,16 +1783,185 @@ %7D)%0A %7D,%0A + garageStatus: function() %7B%0A this.get('/status', '', '')%0A .then((r) =%3E r.json())%...
429b93b7bcbdde2d6b5e8d455be6a1fbf068364f
fix incorrect duck-type description of 'items' param
js/VerticalCheckBoxGroup.js
js/VerticalCheckBoxGroup.js
// Copyright 2002-2013, University of Colorado Boulder //Render a simple vertical check box group, where the buttons all have the same sizes //TODO: not ready for use in simulations, it will need further development & discussion first. define( function( require ) { "use strict"; var Path = require( 'SCENERY/nodes...
JavaScript
0.999984
@@ -686,16 +686,24 @@ property +, indent %7D%0A * @
10410003ba4e885d909b009c033ae2454a65b3e1
declare sessionLinkingAdminUi feature flag
config/environment.js
config/environment.js
'use strict'; module.exports = function(/* environment, appConfig */) { return { googleFonts: [ 'Nunito:400,700', 'Nunito Sans:400,600,700' ], EmberENV: { EXTEND_PROTOTYPES: { String: true, Array: true, Function: false, Date: false, } } }; };
JavaScript
0
@@ -299,16 +299,81 @@ %7D%0A + %7D,%0A featureFlags: %7B%0A 'sessionLinkingAdminUi': false,%0A %7D%0A
aecf2fa5ba3b3426a4b4ac4c977ecdd4bb2187cb
Fix layout
app/components/rating.js
app/components/rating.js
import React, { Component } from 'react'; import { Linking, Platform, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import * as Animatable from 'react-native-animatable'; import * as StoreReview from 'react-native-store-review'; import Icon from 'react-native-vector-icons/MaterialIcons';...
JavaScript
0.000001
@@ -604,22 +604,35 @@ 00,%0A -margin +left: 15,%0A right : 15,%0A @@ -642,18 +642,18 @@ adding: -15 +20 ,%0A al
c54a9821d93736134f8fe9a2a407a4b659b9cdbd
refactor exports
src/core/editMenu.js
src/core/editMenu.js
'use strict' const editNode = require('./editNode.js') // const coreHelpers = require('./coreHelpers.js') const deleteRestoreConcepts = require('./deleteRestoreConcepts.js') const getNeighbors = require('./getNeighbors.js') const rmElement = require('../helpers/rmElement.js') let posY = '' let posX = '' // get mouse ...
JavaScript
0.000001
@@ -2914,32 +2914,11 @@ Menu -: nodeMenu,%0A stageMenu: +,%0A sta
fcb84169939026d2c4cf729200835fcdbd454bb4
Improve update copy
src/electron/main.js
src/electron/main.js
const { autoUpdater } = require('electron-updater'); const { dialog } = require('electron'); const { ipcMain } = require('electron'); const IPFSBox = require('./IPFSBox.js'); const logger = require('electron-log'); const menubar = require('menubar'); const { __DEV__, ICON_PATH, INDEX_PATH } = require('./constants'); a...
JavaScript
0
@@ -2986,20 +2986,24 @@ e: ' -Out +Up date -d a -pp +vailable ',%0A @@ -3033,17 +3033,17 @@ ate for -p +P artyshar @@ -3054,31 +3054,29 @@ ava +i lable, -quit and install +ok to restart ?',%0A @@ -3098,18 +3098,25 @@ : %5B' -Sure', 'No +Restart', 'Ignore '%5D,%0A
aca1a24dccbfa7199c187284f6d638724cb0b25d
Reimplement keyboard shortcuts
app/components/calendar/calendar-view/index.js
app/components/calendar/calendar-view/index.js
/* global document, customElements, BaseElement, Moment, Electron, CalendarEvent, requestAnimationFrame */ const AppleScript = require('applescript'); class CalendarView extends BaseElement { constructor() { super().fetchTemplate(); this.$today = this.shadowRoot.querySelector('calendar-today'); ...
JavaScript
0.000001
@@ -881,17 +881,18 @@ today', -e +() =%3E this @@ -902,17 +902,16 @@ ToToday( -e ));%0A @@ -966,16 +966,29 @@ oMonth(e +.detail.month ));%0A @@ -1041,16 +1041,28 @@ ToYear(e +.detail.year ));%0A @@ -1119,16 +1119,99 @@ licked(e +.detail.diff));%0A%0A document.addEventListener('keydown', e ...
8f6a862fa1e18cca3f01c05e51b189d871f2b216
update commit
app/controllers/hymnbooks.server.controller.js
app/controllers/hymnbooks.server.controller.js
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors'), Hymnbook = mongoose.model('Hymnbook'), _ = require('lodash'); /** * Create a publisher */ exports.create = function(req, res) { var hymnbook = new Hymnbook(req.body); if (req.publisher) { hym...
JavaScript
0
@@ -585,15 +585,16 @@ ent -article +hymnbook %0A */
0fef1857715cc92e6f8f58576b039b39f2ff1038
Use `Number.isNaN` when it's available.
lib/assert-paranoid-equal/utilities.js
lib/assert-paranoid-equal/utilities.js
'use strict'; function isNothing(subject) { return (undefined === subject) || (null === subject); } function isObject(subject) { return ('object' === typeof subject) && (null !== subject); } function isNaNConstant(subject) { // There is not Number.isNaN in Node 0.6.x return ('number' === typeof subject) &...
JavaScript
0
@@ -228,16 +228,99 @@ ject) %7B%0A + if (undefined !== Number.isNaN) %7B%0A return Number.isNaN(subject);%0A %7D else %7B%0A // The @@ -327,17 +327,16 @@ re is no -t Number. @@ -355,16 +355,18 @@ e 0.6.x%0A + return @@ -407,32 +407,36 @@ isNaN(subject);%0A + %7D%0A %7D%0A%0A%0Afunction isI
845d30e24e0578ccec5f385d78c5615a9b7403d2
delete extra blank line
js/grunt/getLicenseEntry.js
js/grunt/getLicenseEntry.js
// Copyright 2002-2015, University of Colorado Boulder /** * This file is used when loading media files (images, audio,...) via plugins, to accomplish 2 goals: * * * (a) determine that PhET Simulations are built using compatible resources. Each media file must * be annotated in a license.json file in the same di...
JavaScript
0.000895
@@ -158,19 +158,16 @@ als:%0A *%0A - *%0A * (a) d
104ef399eb776f7ddb7261aa67db40744858ce58
Remove unused things
components/Type/Type.story.js
components/Type/Type.story.js
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import classnames from 'classnames'; import SectionHeader from './SectionHeader/SectionHeader'; import Synopsis from './Synopsis/Synopsis'; import Quote from './Quote/Quote'; import m from '../../globals/modifiers.css'; storiesOf('Type'...
JavaScript
0.000003
@@ -42,16 +42,8 @@ esOf -, action %7D f @@ -70,45 +70,8 @@ ok'; -%0Aimport classnames from 'classnames'; %0A%0Aim
698ad7bdd1106ae0d9b8fe6f293f7dd565afd3af
Update emoji.component.js
components/emoji.component.js
components/emoji.component.js
/** # Emoji-Picker Component This is an emoji picker. Its `value`` will be set to the emoji the user selects. The current `value` of the component will be scrolled into view. You can also call the component's `show` method to scroll a specific emoji into view. **Note**: uses emoji-metadata.json, by default it will p...
JavaScript
0.000005
@@ -104,17 +104,36 @@ elects.%0A -T +On initial render, t he curre @@ -536,19 +536,21 @@ onent%3E%0A%3C -div +input %0A style @@ -572,42 +572,37 @@ px; -line-height: 6 +padding: 1 0px; -padd +marg in -g : 10px; text @@ -597,34 +597,38 @@ : 10px; -text-align: center +display: inline-block; %22%0A data @...
7c9e261987faa6c67092d5f34d1a95c37c6264a5
save Project rules
js/projectRulesViewModel.js
js/projectRulesViewModel.js
function pageViewModel(gvm) { // projecttitle gvm.projecttitle = ko.observable(""); gvm.projectId = $("#projectHeader").data('value'); gvm.lastIdFromDb = 2; gvm.lastId = -1; // Page specific i18n bindings gvm.title = ko.computed(function (){i18n.setLocale(gvm.lang()); return gvm.app() + ' -...
JavaScript
0
@@ -4461,55 +4461,8 @@ a);%0A - viewModel.lastIdFromDb = data + 1;%0A
23a32ba63fcbcaf701bcd03a23663ca969df0576
Fix logic that auto-appends .css extension.
src/curl/cram/css.js
src/curl/cram/css.js
/** MIT License (c) copyright 2010-2013 B Cavalier & J Hann */ /** * curl css! plugin build-time module */ define(['./jsEncode'], function (jsEncode) { "use strict"; var templateWithRuntimeModule, templateWithRuntimePlugin, templateRx, nonRelUrlRe, findUrlRx, commaSepRx; templateWithRuntimeModule = 'define("$...
JavaScript
0.000166
@@ -2052,17 +2052,17 @@ ength - -3 +4 ) !== %22.
fd0c7e86d5b7ced83c6de02ae68e4615958b1d37
Update exampmle
src/example/index.js
src/example/index.js
//Dependencies import React, { Component } from 'react'; import Noficication from './component/notification' export default class App extends Component { constructor(props) { super(props); } render() { return ( <div> <h1>NOTIFICATION</h1> <Notification content='...
JavaScript
0
@@ -1,46 +1,46 @@ -//Dependencies%0Aimport React, %7B Component %7D +import React from 'react';%0Aimport ReactDOM fro @@ -39,32 +39,36 @@ tDOM from 'react +-dom ';%0Aimport Nofici @@ -67,26 +67,30 @@ t No -fic +tif ication +List from '. /com @@ -85,16 +85,17 @@ from '. +. /compone @@ -113,242 +113,262 @@ t...
2e7c786929a71884914100bf187d0099e6ab59de
Add DocBLocks
src/data/injector.js
src/data/injector.js
'use strict'; var fs = require('fs'); var path = require('path'); function loadDefaultJSON(component_dir, name) { return parseJSON( readFile(component_dir + '/_data/' + name + '.json') ); }; function parseJSON(content) { return JSON.parse(content); }; function readFile(path) { return fs.readFileSync(path, { ...
JavaScript
0
@@ -61,16 +61,106 @@ ath');%0A%0A +/**%0A * Loads default data.json%0A * @param component_dir%0A * @param name%0A * @returns %7B*%7D%0A */%0A function @@ -277,24 +277,76 @@ n')%0A%09);%0A%7D;%0A%0A +/**%0A * Parses string to JSON.%0A * @param content%0A */%0A function par @@ -392,24 +392,88 @@ ntent);%0A%7D;%0A%0A...
9c01da3c20f726f78308381e484f4c9b53396dae
Send a ping on worker init This fixes non-shared workers
src/exchange-main.js
src/exchange-main.js
'use babel' import {Disposable, CompositeDisposable} from 'sb-event-kit' import Communication from 'sb-communication' class Exchange { constructor(worker) { this.worker = worker this.port = worker.port || worker this.communication = new Communication() this.subscriptions = new CompositeDisposable()...
JavaScript
0
@@ -805,16 +805,41 @@ %0A %7D)%0A + this.request('ping')%0A %7D%0A%0A r
ac4591cb94cc79e3e5d857da58d4a6512ea2f1d8
Add minimized version of the new melange.autocomplete script.
app/soc/content/js.min/melange.autocomplete.js
app/soc/content/js.min/melange.autocomplete.js
(function(){if(window.melange===undefined)throw new Error("Melange not loaded");var a=window.melange;a.autocomplete=window.melange.autocomplete=function(){return new a.autocomplete};var f=a.logging.debugDecorator(a.autocomplete);a.error.createErrors([]);f.makeAutoComplete=function(d){jQuery.ajax({url:"?fmt=json&field="...
JavaScript
0
@@ -77,17 +77,17 @@ d%22);var -a +c =window. @@ -94,17 +94,17 @@ melange; -a +c .autocom @@ -159,17 +159,17 @@ urn new -a +c .autocom @@ -183,11 +183,11 @@ var -f=a +e=c .log @@ -206,17 +206,17 @@ corator( -a +c .autocom @@ -222,17 +222,17 @@ mplete); -a +c .error.c @@ -247,17 +247,17 @@ ors(%5B%5D); -f...
2023b7e21f17a61239a520fe73188fe0ac9c40ba
update titleStyle to emotion
src/js/components/WindowHeader.js
src/js/components/WindowHeader.js
import * as React from 'react' import OldStyles from './oldStyles' import * as Util from './util' import * as actions from '../actions' import * as Constants from './constants' import { cx } from 'emotion' import * as styles from './cssStyles' import HeaderButton from './HeaderButton' import ExpanderButton from './Ex...
JavaScript
0
@@ -328,16 +328,205 @@ utton'%0A%0A +const titleBaseStyle = cx(styles.text, styles.noWrap, styles.windowTitle)%0Aconst titleOpenStyle = cx(titleBaseStyle, styles.open)%0Aconst titleClosedStyle = cx(titleBaseStyle, styles.closed)%0A%0A class Wi @@ -2544,16 +2544,19 @@ -var open +const title Styl @@ -2580,150 +2...