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
52445044abb3687fa02a34aee1ada45e4ea4563d
Fix computed properties
addon/services/rollbar.js
addon/services/rollbar.js
import { getOwner } from '@ember/application'; import { computed } from '@ember/object'; import { reads } from '@ember/object/computed'; import Service from '@ember/service'; import Rollbar from 'rollbar'; import deepMerge from 'lodash/merge'; export default Service.extend({ enabled: reads('config.enabled'), curr...
JavaScript
0.000008
@@ -86,56 +86,8 @@ t';%0A -import %7B reads %7D from '@ember/object/computed';%0A impo @@ -237,30 +237,189 @@ ed: -reads('config.enabled' +computed(%7B%0A get() %7B%0A return this.get('config.enabled');%0A %7D,%0A%0A set(key, value) %7B%0A this.get('notifier').configure(%7B enabled: value %7D);%0...
56f9593ad17aeaf6fac165a97e6ff2abdeb1227f
Enforce no empty line before the first nested rule
rules/style.js
rules/style.js
module.exports = { // Color 'color-hex-case': 'lower', 'color-hex-length': ['short', { severity: 'warning' }], // Font family 'font-family-name-quotes': 'always-unless-keyword', // Font weight 'font-weight-notation': ['numeric', { severity: 'warning' }], // Function 'function-comma-newline-after': 'al...
JavaScript
0.000693
@@ -3399,24 +3399,52 @@ ti-line', %7B%0A +%09%09except: %5B'first-nested'%5D,%0A %09%09ignore: %5B'
8bf06d0e91954e646d76cc89e40421d8be9354f0
Add missing loader for CSS
focus-file-webpack.config.js
focus-file-webpack.config.js
const path = require('path'); module.exports = { entry: [ './src/component/index' ], output: { path: path.join(__dirname, 'dist'), filename: 'focus-file.js', publicPath: '/dist/', libraryTarget: 'var', library: 'FocusFile' }, loaders: [], plugins: ...
JavaScript
0
@@ -293,24 +293,109 @@ loaders: %5B +%0A %7B%0A test: /%5C.css$/,%0A loader: 'style!css'%0A %7D%0A %5D,%0A plugi
23acaf0ad26a220519bea094337b58ce067d5219
Fix es6 highlight for prism
src/components/HighlightedMarkdown/Code.js
src/components/HighlightedMarkdown/Code.js
import React, {PureComponent, PropTypes} from 'react' import {highlightElement} from 'prismjs' import 'prismjs/themes/prism.css' import 'prismjs/components/prism-css' import 'prismjs/components/prism-javascript' import 'prismjs/components/prism-bash' export default class Code extends PureComponent { static propTypes...
JavaScript
0.000008
@@ -573,24 +573,95 @@ render() %7B%0A + // Fix the difference between github and prism syntax highlighting%0A const %7Bl @@ -658,22 +658,20 @@ const -%7B lang -%7D = this. @@ -671,24 +671,73 @@ = this.props +.lang === 'es6' ? 'javascript' : this.props.lang%0A %0A return
b74c93e878a8a3b186f348fda999cef9c46cf1af
Revert "Revert "stop form submit when input invalid""
app/assets/javascripts/form_validations.js
app/assets/javascripts/form_validations.js
var constraints = { "user[username]": { presence: true, length: { minimum: 4, maximum: 20 } }, "user[email]": { presence: true, email: true }, "user[password]": { presence: true, length: { minimum: 6, maximum: 128 } }, "user[password_confirmation]": ...
JavaScript
0
@@ -35,36 +35,16 @@ me%5D%22: %7B%0A - presence: true,%0A leng @@ -41,32 +41,32 @@ %7B%0A length: %7B%0A + minimum: 4 @@ -115,36 +115,16 @@ il%5D%22: %7B%0A - presence: true,%0A emai @@ -158,36 +158,16 @@ rd%5D%22: %7B%0A - presence: true,%0A leng @@ -255,36 +255,16 @@ on%5D%22: %...
f28a7149fbcccee50620dab3bebbb5433841b483
remove bbcode plugin
src/components/Tinymce/plugins.js
src/components/Tinymce/plugins.js
// Any plugins you want to use has to be imported // Detail plugins list see https://www.tinymce.com/docs/plugins/ // Custom builds see https://www.tinymce.com/download/custom-builds/ const plugins = ['advlist anchor autolink autoresize autosave bbcode code codesample colorpicker colorpicker contextmenu directionality...
JavaScript
0
@@ -244,15 +244,8 @@ ave -bbcode code
8a9b3a15a999576a4ec714e7e0bdef4111d74b39
add anchor names to fullpage js call
app/assets/javascripts/init.js
app/assets/javascripts/init.js
$(document).ready(function() { CheckLiveValidations.checkSignUpValidations(); DeleteSnippetWidget.autoDeleteIncompleteSnippet(); SaveWidget.autoSaveContent(); warnBeforePublish(); indexPage(); voteUpdate(); voteDown(); }); var warnBeforePublish = function() { $('#story_published_true').on("click", fu...
JavaScript
0
@@ -534,33 +534,86 @@ s:%5B' -firstSlide', 'secondSlide +Main', 'Featured Story', 'Popular Stories', 'Popular Snippets', 'Meet the Team '%5D,%0A @@ -703,33 +703,86 @@ : %5B' -firstSlide', 'secondSlide +Main', 'Featured Story', 'Popular Stories', 'Popular Snippets', 'Meet the Team '%5D,%0A @@ -857,25 +857,24 @@ %7...
1342a8e634383af8bb64f2ebbacd8df0f2f85503
Fix issue that prevented `/results` page from loading
app/components/export-tool.js
app/components/export-tool.js
import Ember from 'ember'; function squash(obj, prefix) { var ret = {}; if (obj.serialize) { var serialized = obj.serialize(); obj = serialized.data.attributes; } Ember.$.each(Object.keys(obj), (_, key) => { var value = Ember.get(obj, key); if (value && value.toJSON) { ...
JavaScript
0
@@ -1028,34 +1028,240 @@ y = -data.map(squash.bind(this) +%5B%5D;%0A data.forEach((item /*, index, array*/) =%3E %7B // Ensure that mapping function doesn't treat *index* as the optional recursive *prefix* parameter%0A dataArray.push(squash.apply(this, %5Bitem%5D));%0A %7D );%0A%...
65a0c9a62218afd76555025cf2f07f28cd8dc862
fix jslint warnings
app/assets/javascripts/init.js
app/assets/javascripts/init.js
/* -*- coding: utf-8 -*- */ /* global cforum, Faye */ cforum = { utils: { exec: function(controller, action) { var ns = cforum; action = (action === undefined) ? "init" : action; if(controller.length > 0) { for(var i = 0; i < controller.length; ++i) { if(!ns[controller[i]]) {...
JavaScript
0
@@ -41,14 +41,24 @@ orum -, Faye +:true, uconf, io */%0A @@ -771,16 +771,17 @@ if( +! pieces%5Bi @@ -785,14 +785,8 @@ s%5Bi%5D - == %22%22 ) %7B%0A
32670f324840878b30637e8e6d4b45f0095fafe7
Load hash on initial pageload
app/containers/DetailPanel.js
app/containers/DetailPanel.js
import React from 'react'; import { connect } from 'react-redux'; import api from '../utils/api'; import Detail from '../components/Detail'; import FlagModal from '../components/FlagModal'; function loadData(props) { const { id } = props; if (id) { props.dispatch(api.actions.concept({ id })); } } const D...
JavaScript
0.000001
@@ -1396,16 +1396,110 @@ state;%0A%0A + // Fetch #hash id from location.state OR fall back on location.hash (on initial pageload)%0A cons @@ -1505,16 +1505,17 @@ st id = +( location @@ -1543,16 +1543,68 @@ ate.hash +) %7C%7C (!!location.hash && location.hash.substring(1)) ;%0A co
927480956f246dee55eed82dd9d7bcf39e59ec81
switch back to jquery-colorbox
app/assets/javascripts/jsxc.js
app/assets/javascripts/jsxc.js
//= require jquery.slimscroll //= require colorbox //= require favico.js //= require jquery-fullscreen-plugin //= require diaspora_jsxc // initialize jsxc xmpp client $(document).ready(function() { if (app.currentUser.authenticated()) { $.post('api/v1/tokens', null, function(data) { if (jsxc && data['token...
JavaScript
0
@@ -35,16 +35,23 @@ require +jquery- colorbox
439204a80d34e700bf1356c2256d8c736eabc8c5
Use the api deployed to heroku.
web-client/config-production.es6
web-client/config-production.es6
export default { api: 'http://production/api' };
JavaScript
0
@@ -29,22 +29,39 @@ p:// -production/api +ucc-2015-camp-api.herokuapp.com '%0A%7D;
cc9c6c780a7e85cb44f408987073cc23a85584a1
remove require if jquery-ui-1.8.9.custom.min
app/assets/javascripts/main.js
app/assets/javascripts/main.js
/* Copyright (c) 2010-2011, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ //= require underscore //= require backbone //= require rails.validations //= require jquery.hotkeys //= require jquery.remotipart //= require jquery.auto...
JavaScript
0.000127
@@ -324,47 +324,8 @@ ize%0A -//= require jquery-ui-1.8.9.custom.min%0A //=
7b24a723444d133f081ceddf0a5040900f73cdcc
Remove cookie on logout.
src/components/nav-bar/nav-bar.js
src/components/nav-bar/nav-bar.js
import ko from 'knockout'; import template from 'text!./nav-bar.html'; import * as router from 'app/router'; import Cookie from 'js-cookie'; import alertify from 'alertifyjs'; class NavBarViewModel { constructor(params) { // This viewmodel doesn't do anything except pass through the 'route' parameter to th...
JavaScript
0
@@ -1292,24 +1292,54 @@ logout() %7B%0A + Cookie.remove('token');%0A this.i
eb2dfb6d74053007d5e01795d51817b34adcdebb
update grunt config maker
frontend/js/download/util.js
frontend/js/download/util.js
'use strict'; var listify = function(string) { return _.reduce(string, function(str, next, i, arr) { var joiner = i + 1 < arr.length ? ', ' : ' and '; return str + joiner + next; }); }; var pluralize = function(baseStr, arr) { var length = arr.length; return baseStr + ((length > 1 || length === 0) ? 's...
JavaScript
0
@@ -658,21 +658,15 @@ fig. -extensibility +options = c
303fd506d860086105e9cc0fcc00d47b1b3bb1a7
Delete useless config property
jest-testing/jest.config.js
jest-testing/jest.config.js
// jest.config.js "use strict"; const config = { verbose: true, testEnvironment: "node", transform: { "^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" }, testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", moduleFileExtensions: [ "ts", "js", "json" ], testPat...
JavaScript
0.000001
@@ -469,26 +469,8 @@ %0A %5D -,%0A automock: true %0A%7D;%0A
14360f43b7144e4504b3e98d5dc286ab4cc7ca7f
fix adding the first vaccination
sagas/index.js
sagas/index.js
import { AsyncStorage } from 'react-native'; import { take, put, call, fork } from 'redux-saga'; import { ADD_VACCINATION, FETCH_VACCINATIONS } from '../constants/actions'; import { KEY } from '../constants/storage'; import addVaccinationSuccess from '../actions/addVaccinationSuccess'; import receiveVaccinations from '...
JavaScript
0.0006
@@ -423,16 +423,28 @@ %7B fromJS +, OrderedMap %7D from @@ -913,16 +913,79 @@ sult) =%3E + %7B%0A if (result === null) return OrderedMap();%0A return fromJS( @@ -1003,16 +1003,23 @@ result)) +;%0A %7D );%0A%7D;%0A%0Ae
7c5ce497a243b0481e3d86b256145515075b2680
Call the create short URL in POST
geoportailv3/static/js/shorturlservice.js
geoportailv3/static/js/shorturlservice.js
/** * @fileoverview This file provides an Angular service for interacting * with the "shorturl" web service. */ goog.provide('app.GetShorturl'); goog.require('app'); /** * @typedef {function(ol.Coordinate=):!angular.$q.Promise} */ app.GetShorturl; /** * @param {angular.$http} $http The Angular $http service....
JavaScript
0
@@ -1024,18 +1024,19 @@ n $http. -ge +pos t(shortu @@ -1051,51 +1051,56 @@ eUrl -, %7B%0A params: %7B%0A 'url': + + '?url=' +%0A encodeURIComponent( ngeo @@ -1126,29 +1126,12 @@ ng() -%0A %7D%0A +), %7B %7D).t
4684e073ce0a12e9bd902d40254afe4fd23116e6
Remove boilerplate comments
app/components/Button/index.js
app/components/Button/index.js
/** * * Button * */ import React from 'react'; import PropType from 'prop-types'; import { button } from './style.scss'; class Button extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <button className={button}> {this.props...
JavaScript
0
@@ -1,25 +1,4 @@ -/**%0A*%0A* Button%0A*%0A*/%0A%0A impo @@ -58,47 +58,8 @@ es'; -%0Aimport %7B button %7D from './style.scss'; %0A%0Acl @@ -102,63 +102,8 @@ nt %7B - // eslint-disable-line react/prefer-stateless-function %0A @@ -154,27 +154,8 @@ tton - className=%7Bbutton%7D %3E%0A
ad65b436e7ee0d1d83f03b48c2d5c311de62a33a
improve query string logic (undefined || null => '')
src/core/helpers/protocol/network/request.js
src/core/helpers/protocol/network/request.js
import { isPlainObject } from 'uni-shared' const method = { OPTIONS: 'OPTIONS', GET: 'GET', HEAD: 'HEAD', POST: 'POST', PUT: 'PUT', DELETE: 'DELETE', TRACE: 'TRACE', CONNECT: 'CONNECT' } const dataType = { JSON: 'json' } const responseType = { TEXT: 'text', ARRAYBUFFER: 'arra...
JavaScript
0.00291
@@ -3,16 +3,27 @@ port %7B%0D%0A + hasOwn,%0D%0A isPlai @@ -744,28 +744,21 @@ if ( -data. hasOwn -Property( +(data, key) @@ -764,24 +764,125 @@ )) %7B%0D%0A +let v = data%5Bkey%5D%0D%0A if (typeof v === 'undefined' %7C%7C v === null) %7B%0D%0A v = ''%0D%0A %7D else if (isPlainO @@ -88...
d58203f902aa1f7d4f29d035bc11333cad12e535
increase max value
app/components/FinanceInput.js
app/components/FinanceInput.js
myApp.directive('financeInput', function () { return { restrict: 'A', require: 'ngModel', link: function (scope, element, attrs, ctrl) { function clean(numericString) { //get rid of non numeric input return numericString.replace(/[^\d.]/g, ''); } var max = "999,999,999"; element.bind("keyu...
JavaScript
0.000037
@@ -277,16 +277,19 @@ max = %22 +99, 999,999, @@ -291,18 +291,53 @@ ,999,999 +.9 %22; +%0A%09%09%09var maxValue = 99999999999.9; %0A%0A%09%09%09ele @@ -560,34 +560,32 @@ if (final %3E -1000000000 +maxValue ) %7B%0A%09%09%09%09%09%09el @@ -861,34 +861,32 @@ if (final %3E -1000000000 +maxValue ) %7B%0A%09%09%...
931460365417ffc356984622d32d34caa04812e4
Add delay to anchoring code
src/direct-linking/content_script/index.js
src/direct-linking/content_script/index.js
import { bodyLoader } from 'src/util/loader' import { remoteFunction } from 'src/util/webextensionRPC' import * as rendering from './rendering' import * as interactions from './interactions' export async function init() { await bodyLoader() remoteFunction('followAnnotationRequest')() } export function setupAn...
JavaScript
0.000001
@@ -239,16 +239,43 @@ oader()%0A + setTimeout(() =%3E %7B%0A remo @@ -314,16 +314,28 @@ est')()%0A + %7D, 500)%0A %7D%0A%0Aexpor
096e6d0a495cf4a1614329998c6bf54dd01a9185
Update title
app/components/post/postbox.js
app/components/post/postbox.js
// Required Library var React = require('react'); var $ = require('jquery'); // Related Control var PostList = require('./postlist'); // Control var PostBox = React.createClass({ componentDidMount: function() { $.ajax({ url: this.props.url, dataType: 'json', success: fu...
JavaScript
0.000001
@@ -728,16 +728,30 @@ 1%3EKeanux +-Personal Demo %3C/h1%3E%0A @@ -866,8 +866,9 @@ PostBox; +%0A
bfa6e7aa3fc67d2e09ac9fa226d73385cdc2b0f7
refactor filter
webapp/app/js/filters/filter.js
webapp/app/js/filters/filter.js
'use strict'; /* Filters */ KylinApp .filter('orderObjectBy', function () { return function (input, attribute, reverse) { if (!angular.isObject(input)) return input; var array = []; for (var objectKey in input) { array.push(input[objectKey]); ...
JavaScript
0.000009
@@ -2767,16 +2767,28 @@ timezone +,kylinConfig )%7B%0A%0A @@ -2799,14 +2799,96 @@ -if()%7B%0A +//to-do%0A if(!timezone)%7B%0A timezone = kylinConfig.getTimeZone(); %0A
1722bb485e33d79928ceadb0bc3399a32f14c894
change pagination test && change notification test
src/components/pagination/test/Pagination.test.js
src/components/pagination/test/Pagination.test.js
import React from 'react'; import { shallow, mount, render } from 'enzyme'; import { expect, should } from 'chai'; import sinon from 'sinon'; import Pagination from '../../pagination'; import styles from '../Pagination.css'; describe('pagination-test-describe----------', () => { it('pagination base ', () => { c...
JavaScript
0
@@ -47,16 +47,8 @@ ount -, render %7D f @@ -80,16 +80,8 @@ pect -, should %7D f @@ -4627,32 +4627,35 @@ ed', () =%3E %7B%0A + // const props = %7B @@ -4650,32 +4650,35 @@ st props = %7B%0A + // current: 5,%0A @@ -4675,24 +4675,27 @@ rent: 5,%0A + // total: 50 @@ -4695,24 +4695,27 @@ tal: 5...
79fe1b30609620290e924b65a0cc55f27371a93c
Add 'active since' information to AccountDetails
src/account-info/AccountDetails.js
src/account-info/AccountDetails.js
/* @flow */ import React, { PureComponent } from 'react'; import { Text, View, Dimensions } from 'react-native'; import type { Auth, Actions, Presence, User } from '../types'; import { Avatar, ZulipButton } from '../common'; import { IconPrivateChat } from '../common/Icons'; import { privateNarrow } from '../utils/nar...
JavaScript
0
@@ -186,16 +186,26 @@ Avatar, + Centerer, ZulipBu @@ -394,16 +394,66 @@ cator';%0A +import ActivityText from '../title/ActivityText';%0A import %7B @@ -1483,24 +1483,178 @@ %3C/View%3E%0A + %3CView style=%7B%5Bstyles.row, styles.margin, styles.center%5D%7D%3E%0A %3CActivityText style=%7Bstyle...
b2edd8e0d390a538d38361f21ef6a485a16a1644
Update API endpoints to match 4.3
app/components/synapse-list.js
app/components/synapse-list.js
import Ember from 'ember'; import ENV from 'kalliope-ember/config/environment'; export default Ember.Component.extend({ load_ignored_synapses: function() { if (typeof(Storage) !== "undefined") { var tmp = localStorage.getItem('kr:ignored-synapses'); if (tmp == null) { tmp = []; } ...
JavaScript
0.000001
@@ -1206,16 +1206,25 @@ ynapses/ +start/id/ ' + syna
e705f147f89c893e5b1743ea38189858b78dde10
fix blog post statuses
examples/blog/src/modules/Blog/repositories/Post.js
examples/blog/src/modules/Blog/repositories/Post.js
import Repository from 'oors-mongodb/build/Repository'; const statuses = ['draft', 'published']; class PostRepository extends Repository { static statuses = statuses; static schema = { type: 'object', properties: { title: { type: 'string', }, slug: { type: 'string', ...
JavaScript
0.000335
@@ -73,26 +73,26 @@ = %5B' -draft', 'published +DRAFT', 'PUBLISHED '%5D;%0A @@ -404,13 +404,13 @@ t: ' -draft +DRAFT ',%0A
59b4d25fb46dec9f3fbc9aa1e9758029533b108e
fix one more test
test/12-simple-queries.js
test/12-simple-queries.js
import {describe, it, before, after, beforeEach, afterEach} from 'mocha' import {expect} from 'chai' import {Database} from '../src' import Cursor from '../src/cursor' const range = (n) => Array.from(Array(n).keys()) const alpha = (i) => String.fromCharCode('a'.charCodeAt(0) + i) const ARANGO_VERSION = Number(process....
JavaScript
0.000339
@@ -4933,48 +4933,8 @@ %7D%60)%0A - expect(doc.value).to.equal(3)%0A
4bc95e3a786b931ed6c4c522f01fc84006a48ddd
Put propTypes on studentSummary
app/elements/studentSummary.js
app/elements/studentSummary.js
import * as _ from 'lodash' import * as React from 'react' import * as humanize from 'humanize-plus' import ContentEditable from 'app/elements/contentEditable' import add from 'app/helpers/add' import randomChar from 'app/helpers/randomChar' import studentActions from 'app/flux/studentActions' let goodGraduationMess...
JavaScript
0
@@ -594,16 +594,81 @@ Class(%7B%0A +%09propTypes: %7B%0A%09%09student: React.PropTypes.object.isRequired,%0A%09%7D,%0A%0A %09updateS
9abaa0a352922d30b62ba0cfd604690fb9998a02
Fix JavaScript error (#3153)
app/javascript/packs/public.js
app/javascript/packs/public.js
import emojify from 'mastodon/emoji'; import { length } from 'stringz'; import { default as dateFormat } from 'date-fns/format'; import distanceInWordsStrict from 'date-fns/distance_in_words_strict'; import { delegate } from 'rails-ujs'; require.context('../images/', true); const parseFormat = (format) => format.repl...
JavaScript
0.998734
@@ -972,32 +972,27 @@ ent. -getElementsByClassName +querySelectorAll (' +. emoj
cddcf4c9825286b94fd7b483fff906f024f9ad66
Update sample es6 code
app/src/scripts/main.babel.js
app/src/scripts/main.babel.js
// compile javascript in here with babel (() => { function* fib() { let prev = 0, cur = 1; for(;;) { yield cur; let temp = cur; cur = cur + prev; prev = temp; } } for(let num of fib()) { if(num > 100) { break; } document.write(num + '<br>'); } })();
JavaScript
0
@@ -220,24 +220,48 @@ of fib()) %7B%0A + document.write(num)%0A if(num %3E @@ -264,16 +264,17 @@ um %3E 100 +0 ) %7B%0A @@ -311,19 +311,11 @@ ite( -num + '%3Cbr%3E +', ');%0A
2ed02feb60213366580f72bd0e55afdfde542824
Add AsyncCheckbox
app/javascript/packs/upload.js
app/javascript/packs/upload.js
import ReactRailsUJS from 'react_ujs'; // Support component names relative to this directory: const componentRequireContext = require.context('components', true) ReactRailsUJS.useContext(componentRequireContext) import '../components/Upload.jsx' import '../components/ScrollToTopButton.jsx'
JavaScript
0
@@ -233,14 +233,21 @@ nts/ -Upload +AsyncCheckbox .jsx @@ -289,12 +289,46 @@ Button.jsx'%0A +import '../components/Upload.jsx'%0A
7278351d1584f09e23c15f540c7ae63166a0df1b
update mainDrawer
js/common/DigiMainDrawer.js
js/common/DigiMainDrawer.js
import React, { PropTypes } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import DigiHeader from './DigiHeader'; import DigiTouchable from './DigiTouchable'; import Events from '../scenes/events/Events'; import Organizations from '../scenes/organizations/Organizations'; const DigiMainDrawer = ...
JavaScript
0
@@ -89,16 +89,74 @@ native'; +%0Aimport Icon from 'react-native-vector-icons/FontAwesome'; %0A%0Aimport @@ -644,39 +644,36 @@ w style=%7Bstyles. -edition +item Container%7D%3E%0A @@ -660,32 +660,111 @@ itemContainer%7D%3E%0A + %3CIcon name=%22calendar%22 size=%7B20%7D color=%22black%22 style=%7Bstyles...
5b22517bbba929b138fea53d979bcf591c806828
Update languages module index
src/app/modules/languages/index.js
src/app/modules/languages/index.js
import angular from 'angular'; // Create the module where our functionality can attach to let app = angular.module('app.lang', ['pascalprecht.translate']); // Include languages import EnglishProvider from './en'; app.config(EnglishProvider); import FrenchProvider from './fr'; app.config(FrenchProvider); import Chin...
JavaScript
0
@@ -234,24 +234,26 @@ Provider);%0A%0A +/* import Frenc @@ -302,16 +302,18 @@ ovider); +*/ %0A%0Aimport
eabd5ac479abece9fafa715e77e6a409fe9f9b48
clear all events
app/js/common/eventlistener.js
app/js/common/eventlistener.js
var EventEmitter = { events: [], addEventListener: function (eventName, callback, bubble) { this.events[eventName] = this.events[eventName] || []; this.events[eventName].push(callback); }, removeEventListener: function (eventName, callback) { if (!eventName) { this.events = {}; return true; } var callbacks...
JavaScript
0.999978
@@ -864,16 +864,72 @@ %7D%0A%09%7D,%0A%09%0A +%09clearListeners: function() %7B%0A%09%09this.events = %5B%5D;%0A%09%7D,%0A%09%0A %09// jQue
572fa1d25578950e007692f353cd09936ca501fb
update scroll-to-bottom logic and clear scroll-position on back-click
app/views/scroll_to_bottom.js
app/views/scroll_to_bottom.js
import Ember from 'ember'; export default Ember.View.reopen({ didInsertElement: function() { this._super(); Ember.run.scheduleOnce("afterRender", function() { // Scroll to first unread message in thread or scroll to bottom var messageBox, id, scrollOffset; var offset = 0; var hadUnread...
JavaScript
0
@@ -123,38 +123,84 @@ ber. -run.scheduleOnce(%22afterRender%22 +$().ready(function()%7B%0A Ember.$('.sticky_title_bar').on('click', '.back' , fu @@ -211,78 +211,115 @@ on() - %7B%0A -// Scroll to first unread message in thread or scroll to bottom + window.scrollTo(0, 0);%0A %7D);%0A %7D);%0A%0A...
5977b0f387f7b2a47aa819155299f410e33816e0
Update react-navigation and remove ex-navigation dependency
js/navigation/Navigation.js
js/navigation/Navigation.js
/* @flow */ import React from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; import { createStackNavigator, createSwitchNavigator, createBottomTabNavigator, } from 'react-navigation'; import { createMaterialBottomTabNavigator } from 'react-navigation-material-bottom-tabs'; import { Ent...
JavaScript
0
@@ -2408,32 +2408,48 @@ s: (%7B navigation +, defaultHandler %7D) =%3E %7B%0A if @@ -2472,24 +2472,48 @@ ocused()) %7B%0A + defaultHandler();%0A return
ce908e4bee4dd4ae7b23e59cdf668325b5f4cc1f
add tests
test/StringSource-test.js
test/StringSource-test.js
// LICENSE : MIT "use strict"; import assert from "power-assert" import {parse} from "markdown-to-ast"; import StringSource from "../src/StringSource"; describe("StringSource", function () { context("Each Pattern", function () { it("Str", function () { let AST = parse("**str**"); let...
JavaScript
0.000606
@@ -180,24 +180,266 @@ nction () %7B%0A + describe(%22#toString%22, function () %7B%0A it(%22should concat string%22, function () %7B%0A let AST = parse(%22**str**%22);%0A let source = new StringSource(AST);%0A assert(source + %22!!%22, %22str!!%22);%0A %7D);%0A %7D...
fc1ddb6128bfd9bf875066f1d040f685e0563bc7
Fix typo of TurobModule to TurboModule (#30723)
packages/babel-plugin-codegen/index.js
packages/babel-plugin-codegen/index.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; const {parseString} = require('react-native-codegen/src/parsers/flow'); const RNCodegen = require('re...
JavaScript
0.999913
@@ -5140,18 +5140,18 @@ ling Tur -o b +o Module p
30d2fb8b2fb304c288c55431751d3b9ecd7612d7
fix gini bug
tasks/gini.js
tasks/gini.js
/* * grunt-gini * https://github.com/iamfat/grunt-gini * * Copyright (c) 2013 Jia Huang * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Please see the Grunt documentation for more information regarding task // creation: http://gruntjs.com/creating-tasks var confi...
JavaScript
0.000002
@@ -571,36 +571,48 @@ ini = grunt. -config +file.readJSON ('gini +.json ');%0A
527fe1d16338e1f0dbb3f38ab4915dec8132b9ab
create dest directory if it doesn't exist
tasks/hash.js
tasks/hash.js
/* * grunt-hash * https://github.com/jgallen23/grunt-hash * * Copyright (c) 2012 Greg Allen * Licensed under the MIT license. */ module.exports = function(grunt) { // Please see the grunt documentation for more information regarding task and // helper creation: https://github.com/gruntjs/grunt/blob/master/d...
JavaScript
0.000001
@@ -902,16 +902,97 @@ = %7B%7D;%0A%0A + if (!fs.existsSync(options.dest)) %7B%0A fs.mkdirSync(options.dest);%0A %7D%0A%0A grun
3104e70750801a06721bd38a46759f588f6844e6
Update dashboard.js
am-dashboard/dashboard.js
am-dashboard/dashboard.js
/* call using the following enclosure: (function(){ var url = 'https://rawgit.com/jamesona/SEO-Tools/master/am-dashboard/dashboard.js'; document.head.appendChild(document.createElement('script')).src=url; })(); */ function Dashboard() { this.createElement = function(parent, tag, attributes){ var element = pa...
JavaScript
0.000001
@@ -589,13 +589,15 @@ pp). -stats +content View
91adc6afc1eb14c2f0c272b87816a947bc5b9a00
fix 🐛 when kernelspecs fail return of(action)
packages/core/src/epics/kernelspecs.js
packages/core/src/epics/kernelspecs.js
// @flow import * as actionTypes from "../actionTypes"; import * as actions from "../actions"; import { catchError, map, mergeMap } from "rxjs/operators"; import { kernelspecs } from "rx-jupyter"; import { empty } from "rxjs"; import { ofType } from "redux-observable"; import type { ActionsObservable } from "redux-obse...
JavaScript
0
@@ -1888,32 +1888,35 @@ return +of( actions.fetchKer @@ -1956,16 +1956,17 @@ error %7D) +) ;%0A
beba85380b036a81b4b39a5b2708604de71caff1
add ax5.util.XetCookie TEST
src/ax5core/test/test.core.misc.js
src/ax5core/test/test.core.misc.js
describe('ax5.util.param TEST', function() { it('ax5.util.param({a: 1, b: \'123\'"2&\'}, "param") expect "a=1&b=123%27%222%26"', function() { var actual = ax5.util.param({a: 1, b: '123\'"2&'}, 'param'); actual.should.equal('a=1&b=123%27%222%26'); }); it('ax5.util.param("a=1&b=12\'"32", "par...
JavaScript
0.000007
@@ -2947,20 +2947,555 @@ %22J%22%5D);%0A %7D);%0A%7D);%0A +%0A%0A%0Adescribe('ax5.util.setCookie TEST', function() %7B%0A it('ax5.util.setCookie(%22ax5-cookie-path%22, %22abcde%22, 2, %7Bpath: %22/%22%7D)', function() %7B%0A ax5.util.setCookie(%22ax5-cookie-path%22, %22abcde%22, 2, %7Bpath: %22/%22%7D);%...
4d7973251fb314f2109b11b0cb4152638a5a6d48
Update dist file
dist/animate.me.min.js
dist/animate.me.min.js
(function(a,b){if("function"==typeof define&&define.amd)define(["exports"],b);else if("undefined"!=typeof exports)b(exports);else{var c={exports:{}};b(c.exports),a.animateMe=c.exports}})(this,function(a){"use strict";function b(a){return e(a)||d(a)||c()}function c(){throw new TypeError("Invalid attempt to spread non-it...
JavaScript
0.000001
@@ -1385,16 +1385,29 @@ 0;var k= +/*#__PURE__*/ function @@ -3982,16 +3982,35 @@ tion(b)%7B +// prettier-ignore%0A var c=b. @@ -4109,16 +4109,35 @@ tr))%7C%7C0; +// prettier-ignore%0A return c
da4f15784727049b0db2f77b3db8cfdf9a9779e2
fix setting of title
src/gform-app/factory/ExtendedGridFactory.js
src/gform-app/factory/ExtendedGridFactory.js
define([ './AbstractGridFactory', '../controller/ExtendedGrid', 'gridx/modules/Menu', "dojo/_base/declare", "gridx/Grid", "gridx/modules/VirtualVScroller", "gridx/modules/ColumnResizer", "gridx/modules/SingleSort", 'gridx/modules/RowHeader', 'gridx/modules/select/Row' ], function (AbstractGridFactory, Extend...
JavaScript
0.00023
@@ -721,16 +721,32 @@ .title = + config.title %7C%7C store.n @@ -1521,16 +1521,32 @@ %09title: +config.title %7C%7C%C2%A0 store.na
43776cad2f347416aaf004df37f3f7f082303543
Fix component unmounting
app/pages/frontpage/Lukkari.js
app/pages/frontpage/Lukkari.js
import React from 'react' import moment from 'moment' import {filter} from 'ramda' import SearchList from '../../partials/SearchList' import searchResults from '../../partials/searchResults' import {addDataToCalendar} from '../../util/courseParser' import {appState} from '../../store/lukkariStore' import BigCalendar fr...
JavaScript
0.000001
@@ -1563,20 +1563,21 @@ his. +_ handle -Scroll +Resize )%0A
e75abece16218108b8fe1d6439d93ab6435f3a5f
build all css versions
tasks/sass.js
tasks/sass.js
var task = function(gulp, config, prefix) { 'use strict'; var sass = require('gulp-sass'); var cssGlobbing = require('gulp-css-globbing'); var es = require('event-stream'); var concat = require('gulp-concat'); var notify = require('gulp-notify'); var gulpif = require('gulp-if'); var rename = require('g...
JavaScript
0.000001
@@ -447,16 +447,367 @@ %7C%7C '';%0A%0A + var fullVersion = function () %7B%0A return config.pkgname + '-' + config.version() + '.css';%0A %7D;%0A%0A var minorVersion = function () %7B%0A return config.pkgname + '-' + config.version().split('.').slice(0,2).join('.') + '.css';%0A %7D;%0A%0A var majorVersion ...
f0460dd301c3f433e07a2435e0fee7a5ba0c45ec
Update package.js
packages/facebook-config-ui/package.js
packages/facebook-config-ui/package.js
Package.describe({ summary: "Blaze configuration templates for Facebook OAuth.", version: "1.0.0" }); Package.onUse(function(api) { api.use('templating@1.2.13', 'client'); api.use('accounts-facebook@1.1.0'); api.addFiles('facebook_login_button.css', 'client'); api.addFiles( ['facebook_configure.html',...
JavaScript
0.000002
@@ -175,46 +175,8 @@ t'); -%0A api.use('accounts-facebook@1.1.0'); %0A%0A
482edec575e82afc817f67789e6f708f9f797533
move create instance
dist/lib/yadda-core.js
dist/lib/yadda-core.js
/* eslint-disable */ /* global featureFile, scenarios, steps */ const Yadda = require('yadda'); const wd = require('wd'); function buildDriver(server) { const configServer = server || { host: 'localhost', port: 4723, }; return wd.promiseChainRemote(configServer); }; function setBaseSteps(library, devi...
JavaScript
0.000001
@@ -1115,99 +1115,8 @@ %7D%0A - return features%0A .each(%0A file =%3E featureFile(%0A file,%0A (feature) =%3E %7B%0A co @@ -1149,22 +1149,16 @@ stance(%0A - buil @@ -1175,22 +1175,10 @@ - - %7B%0A +%7B%0A @@ -1194,22 +1194,16 @@ ,%0A - - drive...
935d1267345af0c1b0fe8687a204290c22323ee0
remove merge conflicts
schedule/js/schedule.js
schedule/js/schedule.js
function scheduleLoad(){ //alert("Load"); //get JSON <<<<<<< HEAD var url = "schedule.json" ======= var url = "/schedule/schedule.json" >>>>>>> origin/gh-pages $.getJSON(url , function(data) { console.log(data); var fritable = $("ul#fritable"); var sattable = $("ul#sattable"); var snta...
JavaScript
0.000002
@@ -58,59 +58,8 @@ SON%0A -%3C%3C%3C%3C%3C%3C%3C HEAD%0A var url = %22schedule.json%22%0A=======%0A @@ -98,32 +98,8 @@ on%22%0A -%3E%3E%3E%3E%3E%3E%3E origin/gh-pages%0A @@ -1155,8 +1155,9 @@ %7D);%0A%7D +%0A
54fc753bebb27e6e030692660c1aa848d7719d2c
Rollback to previous format
src/geo/ui/widgets/formula/content_view.js
src/geo/ui/widgets/formula/content_view.js
var _ = require('underscore'); var WidgetContent = require('../standard/widget_content_view'); var WidgetViewModel = require('../widget_content_model'); var template = require('./template.tpl'); var animationTemplate = require('./animation_template.tpl'); var formatter = require('cdb/core/format'); var d3 = require('d3...
JavaScript
0
@@ -712,24 +712,209 @@ t('data');%0A%0A + var format = function(value) %7B%0A var formatter = d3.format('0,000');%0A%0A if (_.isNumber(value)) %7B%0A return formatter(value.toFixed(2));%0A %7D%0A return 0;%0A %7D;%0A%0A var null @@ -1565,32 +1565,16 @@ : format -ter.formatNumber ...
5715769010d36dc693599b2590ebfcddc268be84
use safest 0.jpg youtube thumbnail
web/static/js/utils.js
web/static/js/utils.js
const mentionsRegExp = /\B@([a-zA-Z][a-zA-Z0-9_-]{0,17})/g const urlsRegExp = /\b(https?:\/\/[\-A-Za-z0-9+&@#\/%?=~_|!:,\.;]*[\-A-Za-z0-9+&@#\/%=~_|])/gi const imageExtRegExp = /(\.gif|\.jpg|\.png)$/ const videoExtRegExp = /(\.mp4|\.webm)$/ export function isLocalhost() { return ["localhost", "127.0.0.1"].includes...
JavaScript
0.000001
@@ -2852,21 +2852,9 @@ ID%7D/ -maxresdefault +0 .jpg
360da2e1b1e0366c762095979be4d34348e98b91
am dumb
src/bot/commands/default/google.js
src/bot/commands/default/google.js
const cheerio = require("cheerio"); const superagent = require("superagent"); module.exports = { process: async message => { let { text: body } = await superagent .get(`https://www.google.com/search?q=${encodeURIComponent(message.args[0])}&hl=en`); let $ = cheerio.load(body); // eslint-disable-line id-length ...
JavaScript
0.998689
@@ -491,41 +491,25 @@ %22div -%22). +: not( -%22 .s -%22).not(%22.osl%22).not(%22 +,.osl, .kv +) %22).e @@ -1005,16 +1005,17 @@ finition +s .length;
dc33f7c7a3a94d0db4b838fe22c256c56b497351
Make "livedata - basic method invocation" less flaky.
packages/livedata/livedata_test_service.js
packages/livedata/livedata_test_service.js
Meteor.methods({ nothing: function () { }, echo: function (/* arguments */) { return _.toArray(arguments); }, exception: function (where, intended) { var shouldThrow = (Meteor.isServer && where === "server") || (Meteor.isClient && where === "client") || where === "both"; if (sho...
JavaScript
0
@@ -627,19 +627,16 @@ True -%0A// returns tru @@ -635,18 +635,18 @@ urns +%0A// true -500m +1 s af @@ -707,112 +707,545 @@ alse -%0A// was run + was run%0A// in the meanwhile. Increasing the timeout makes the %22wait: true%22 test slower;%0A// decreas in +g the -meanwhile%0Aif (Meteor.isServer) %7B%0A ...
8b3ad964a08f647e43d1704c9e427ce231a1a9e0
reset form
web/volume/metadata.js
web/volume/metadata.js
'use strict'; app.directive('metadataForm', [ 'constantService', 'messageService', function(constants, messages) { return { restrict: 'E', templateUrl: 'volume/metadata.html', link: function($scope) { var form, volume; volume = $scope.volume; form = $scope.metadataForm; ...
JavaScript
0.000001
@@ -408,48 +408,27 @@ -$('input%5Bname=%22metadata%22%5D').value = null +form.$setPristine() ;%0A @@ -476,32 +476,8 @@ ();%0A - return false;%0A
af2b6c70b4c7b1ae5a1127c9ada050950a0dac3d
add toObject so Blend can be serialized
src/filters/blend_filter.class.js
src/filters/blend_filter.class.js
(function(global){ 'use strict'; var fabric = global.fabric; /** * Color Blend filter class * @class fabric.Image.filter.Blend * @memberOf fabric.Image.filters * @extends fabric.Image.filters.BaseFilter * @example * var filter = new fabric.Image.filters.Blend({ * color: '#000', * mode:...
JavaScript
0.000001
@@ -57,16 +57,58 @@ l.fabric +,%0A extend = fabric.util.object.extend ;%0A%0A /** @@ -3599,16 +3599,308 @@ 0, 0);%0A + %7D,%0A%0A /**%0A * Returns object representation of an instance%0A * @return %7BObject%7D Object representation of an instance%0A */%0A toObject: function() %7B%0A ...
17a787d6ad55e9b4a53da5a89f1c7183a73d40bb
Fix #341 ... not the best workaround
packages/mjml-core/src/parsers/document.js
packages/mjml-core/src/parsers/document.js
import { ParseError, EmptyMJMLError, NullElementError } from '../Error' import compact from 'lodash/compact' import dom from '../helpers/dom' import each from 'lodash/each' import filter from 'lodash/filter' import MJMLElements, { endingTags, schemaXsds } from '../MJMLElementsCollection' import MJMLHeadElements from '....
JavaScript
0
@@ -804,16 +804,113 @@ ntent%5B0%5D +.replace('$', '&#36;') // $ is a protected chars for regexp... avoid issue with duplicate content %0A%0A endi
2c6297571e07d50ef34df16a0bcc494c3db642d4
Update draw.js
script/draw.js
script/draw.js
var h = 425; var w = 675; var paintColor = color(17, 0, 255); var brushSize = 8; var isDraw = 0; var clear = true; var type = false; var typeCursorX = -1; var typeCursorY = -1; var letter = 'A'; var ts = 40; // text size var bs = 30; // brush size void setup() { size(w, h); } void draw() { if (clear) { ba...
JavaScript
0.000001
@@ -2702,16 +2702,18 @@ useY %3C 9 +.5 *bs) %7B%0A%09
6ba667daa228d9c9234c2e37bbcd1683c3eac63b
Return transformed draft correctly
src/flux/stores/draft-helpers.es6
src/flux/stores/draft-helpers.es6
import _ from 'underscore' import Actions from '../actions' import DatabaseStore from './database-store' import * as ExtensionRegistry from '../../extension-registry' import SyncbackDraftFilesTask from '../tasks/syncback-draft-files-task' import QuotedHTMLTransformer from '../../services/quoted-html-transformer' expo...
JavaScript
0.000004
@@ -3298,22 +3298,38 @@ %0A .then -Return +(() =%3E Promise.resolve (latestT @@ -3339,16 +3339,17 @@ sformed) +) %0A%7D%0A%0Aexpo
1ae41d7ae741e2ab03dc84684f32c9962dbf8b9d
Rename umd library name
webpack.config.base.js
webpack.config.base.js
'use strict'; module.exports = { module: { loaders: [ { test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ } ] }, output: { library: 'Remotedev', libraryTarget: 'umd' }, resolve: { extensions: ['', '.js'] } };
JavaScript
0.000002
@@ -173,17 +173,17 @@ 'Remote -d +D ev',%0A
cf3744f62427cb9735703ade75d34f849e47e536
Copy "main" and "browser" from non-dynamic package.json files.
packages/modules-runtime/meteor-install.js
packages/modules-runtime/meteor-install.js
// The metaInstall function will be used to create a module graph that // parallels the installed module graph. This parallel graph consists of // metadata about all available modules, not only those already installed // but also modules that can be fetched dynamically. var metaInstall = makeInstaller({ browser: make...
JavaScript
0.000001
@@ -3080,24 +3080,54 @@ rue;%0A %7D%0A%7D%0A%0A +var requireReal = install();%0A%0A function mak @@ -3242,24 +3242,451 @@ s, value);%0A%0A + if (! dynamic &&%0A module.id.endsWith(%22/package.json%22)) %7B%0A // If the package.json file is not dynamic, require it from the real%0A // graph to rea...
68fd9597fcd759efda3cd695437a6a1f7194d7d7
update dist
dist/representation.js
dist/representation.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _fs = require('fs'); var fs = _interopRequireWildcard(_fs); var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash); var _logWith = require('log-with'); var _logWith2 = _interopRequireDefault(_logWith); va...
JavaScript
0
@@ -1477,17 +1477,21 @@ oin( -__dirname +process.cwd() , fi
2d7c40607661064f097d08802db19378ffdbfb9d
Improve test failure messages
test/es6/01-HelloWorld.js
test/es6/01-HelloWorld.js
import HelloWorld from '../../src/es6/01-HelloWorld.js'; describe("01 - HelloWorld", () => { var component; beforeEach( () => { var elem = document.createElement('div'); elem = document.body.appendChild(elem); return component = React.render(React.createElement(HelloWorld), elem); }); afterEach( ...
JavaScript
0.000048
@@ -658,18 +658,42 @@ ngth -, 0, %22You + == 0, true, %22Your React component sho @@ -703,49 +703,24 @@ n't -have render -ed any +%60 div - with your component +%60 %22)%0A @@ -754,12 +754,20 @@ ngth -, + == 1, + true, %22Yo @@ -795,20 +795,22 @@ tly one +%60 span +%60 element @@ -914,20 +914,22...
acb39f08fb7b39a1b277042c3163145b3a4e973e
Fix address call
scratch/smokeUdpPort.js
scratch/smokeUdpPort.js
/* Copyright 2016 Streampunk Media Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
JavaScript
0.000003
@@ -32,17 +32,19 @@ dia Ltd. -%0A +%0D%0A%0D %0A Licen @@ -101,16 +101,17 @@ cense%22); +%0D %0A you m @@ -169,16 +169,17 @@ License. +%0D %0A You m @@ -212,17 +212,19 @@ cense at -%0A +%0D%0A%0D %0A htt @@ -262,17 +262,19 @@ ENSE-2.0 -%0A +%0D%0A%0D %0A Unles @@ -335,16 +335,17 @@ software +%0D %0A ...
ae4f74bbdba5617a90155bb1eaa68e5582e1ae06
add mode:production to webpack prod config
webpack.config.prod.js
webpack.config.prod.js
const TerserPlugin = require('terser-webpack-plugin'); const webpack = require('webpack'); const baseConfig = require("./webpack.config.base"); const merge = require("webpack-merge"); module.exports = merge(baseConfig, { optimization: { minimize: true, minimizer: [new TerserPlugin()], }, plug...
JavaScript
0
@@ -217,16 +217,40 @@ ig,%0A %7B%0A + mode: %22production%22,%0A opti
8f9b2f6984dc54d47a2b62e5a76e468f739f424b
Fix lint error
src/client/components/home/home.js
src/client/components/home/home.js
define(function(require) { 'use strict'; var Layout = require('layoutmanager'); require('css!./home'); var ActivityView = Layout.extend({ template: require('jade!./home'), events: { 'click a': 'setLoading' }, initialize: function(options) { this.activities = options.activities; ...
JavaScript
0.000035
@@ -37,16 +37,45 @@ rict';%0A%0A + var $ = require('jquery');%0A var La
e224ba990048b096e7e06d0f234ccbc4a2946989
allow harvester to store into Storage
dist/role.harvester.js
dist/role.harvester.js
/* role.harvester.js * * Defines functionality of the harvester role. * */ 'use strict'; var Globals = require('globals'); var Utils = require('utils'); var UtilsCreep = require('utils.creep'); var exports = module.exports = {}; // finite state machine var FSM = {}; // find a potential storag...
JavaScript
0.000001
@@ -491,20 +491,22 @@ / or a s -pawn +torage if no c @@ -521,16 +521,141 @@ found%0D%0A + target = (target === null) ? UtilsCreep.setStorageStoreTarget(creep) : target;%0D%0A%0D%0A // or a spawn if no storage found%0D%0A targ
901a84d1e5ebba0e8d194e8f09612b1cdb0e7b9f
Remove ignoreRemoteHostChanges property
src/foam/nanos/session/Session.js
src/foam/nanos/session/Session.js
/** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.session', name: 'Session', implements: [ 'foam.nanos.auth.Authorizable', 'foam.nanos.auth.CreatedAware', 'foam.nanos.auth.CreatedByAware' ], ...
JavaScript
0
@@ -2825,525 +2825,8 @@ rue%0A - %7D,%0A %7B%0A class: 'Boolean',%0A name: 'ignoreRemoteHostChanges',%0A documentation: %60%0A Set to true if this session should not be deleted when the remote host%0A changes. The intended use case for this flag is to allow customers that%0A w...
36d82505ff06b760ae23a9e6b543dad0cf6e4b00
set default center and zoom to Los Angeles
app/assets/javascripts/application_controllers/maps.js
app/assets/javascripts/application_controllers/maps.js
(function(){ Ciclavia.Controllers.Maps = { show: function(){ // Set map width var $map = $("#map"); $map.css({ width: $(window).width(), height: $(window).height() }); var map = L.mapbox.map('map', 'examples.map-9ijuk24y') .setView([40, -74.50], 9); ma...
JavaScript
0
@@ -291,22 +291,35 @@ ew(%5B -40, -74.50%5D, 9 +34.048776, -118.251522%5D, 11 );%0A%0A
bcfff38fc99f4568aa300a82ea9b91374711a9c2
add aria labels to input
src/client/components/SensorGraph/SensorGraph.js
src/client/components/SensorGraph/SensorGraph.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {withStyles} from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import MDSpinner from 'react-md-spinner'; import moment from 'moment'; import Button from '...
JavaScript
0.000001
@@ -3662,24 +3662,80 @@ e.startTime%7D +%0A inputProps=%7B%7B'aria-label': 'start time'%7D%7D /%3E%0A @@ -3845,16 +3845,70 @@ endTime%7D +%0A inputProps=%7B%7B'aria-label': 'end time'%7D%7D /%3E%0A
53dede2862a54fe972c353aa5d53079c18d43d56
add dedupe to production builds
webpack.dist.config.js
webpack.dist.config.js
'use strict'; var webpack = require('webpack'), path = require('path'); module.exports = { resolve: { extensions: ['', '.js', '.jsx'] }, entry: './client/index.js', output: { path: path.join(__dirname, '/public/assets'), publicPath: '/assets/', filename: 'application.js' }, debug: false,...
JavaScript
0
@@ -628,32 +628,73 @@ eOrderPlugin(),%0A + new webpack.optimize.DedupePlugin(),%0A new webpack.
b9d4596859ccc4162d74f49d892a7617255d7383
Update version of io.js to download
script/download-node.js
script/download-node.js
#!/usr/bin/env node var fs = require('fs'); var mv = require('mv'); var zlib = require('zlib'); var path = require('path'); // Use whichever version of the local request helper is available // This might be the JavaScript or CoffeeScript version depending // on whether this module is being installed explictly or // `n...
JavaScript
0
@@ -2298,33 +2298,33 @@ atest/iojs-v2.3. -0 +2 -linux-armv7l.ta
28df22a28462474c78ce5c5875d3481a0af73dc0
return on errors in logoutHandler rather than setting state.
src/frontend/components/TopNav.js
src/frontend/components/TopNav.js
import React from 'react'; import BernieLogo from './BernieLogo'; import {BernieColors, BernieText} from './styles/bernie-css'; import {BernieTheme} from './styles/bernie-theme'; import {AppBar, Styles, Tabs, Tab} from 'material-ui'; import superagent from 'superagent'; @Styles.ThemeDecorator(Styles.ThemeManager.getMu...
JavaScript
0
@@ -1346,58 +1346,14 @@ -this.setState(%7BerrorMessage: 'Error logging out'%7D) +return ;%0A @@ -2066,32 +2066,70 @@ his.styles.tab,%0A + color: this.props.tabColor,%0A backgr
71d3d909d1c2b3192cb6b44735aef1fd89c5e00b
Add source map to prod
webpack.prod.config.js
webpack.prod.config.js
var path = require('path'); var webpack = require('webpack'); var webpackStripLoader = require('strip-loader'); module.exports = { plugins: [ new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production') } }) ], entry: ['./js/App.js'], output: { path: __dirname + '/public', ...
JavaScript
0
@@ -340,16 +340,40 @@ js'%0A%09%7D,%0A +%09devtool: 'source-map',%0A %09module:
00bac473f6b7f3d0bce87564d21c1ca3142db425
Add 5 second delay in take-snapshot script
script/take-snapshot.js
script/take-snapshot.js
var page = require('webpage').create(), opts = JSON.parse(require('system').args[1]); page.viewportSize = opts.viewportSize; page.open(opts.address, function(status) { page.render(opts.outfile); var response = page.evaluate(function() { return { title: document.title }; }); response.opts = opts; ...
JavaScript
0.00034
@@ -166,16 +166,44 @@ atus) %7B%0A + setTimeout(function() %7B%0A page.r @@ -226,16 +226,18 @@ le);%0A%0A + + var resp @@ -274,16 +274,18 @@ ) %7B%0A + return %7B @@ -316,13 +316,17 @@ ;%0A + + %7D);%0A%0A + re @@ -349,16 +349,18 @@ opts;%0A + + response @@ -378,16 +378,18 @@ tatu...
54ec2e053d0dd87762a18552f7751aef4a5b3e69
Make map loading follow the player.
client/js/states/gamestate.js
client/js/states/gamestate.js
'use strict'; function GameState() { this.worldMgr = new WorldManager(); this.worldMgr.rootObj.position.set(5200, 5200, 0); this.gomMgr = new GOMVisManager(this.worldMgr); this.activeMapIdx = -1; this.pickPosH = new THREE.AxisHelper(2); } GameState.prototype.setMap = function(mapIdx) { this.activeMapIdx ...
JavaScript
0
@@ -703,16 +703,61 @@ (delta); +%0A%0A this.worldMgr.setViewerInfo(MC.position); %0A%7D;%0A%0AGam
3865d031980e573bf070fa108bf7afd0ec498350
remove empty duration object check
src/client/store/timesheetStore.js
src/client/store/timesheetStore.js
import Immutable from 'immutable'; import moment from 'moment'; import _ from 'lodash'; import resource from '../resource'; import { createWeeks } from '../monthUtils'; import * as timeUtils from '../../common/timeUtils'; function getDurationType(period, targetTime, type) { const cfg = type.get('pty_config').get(...
JavaScript
0.000005
@@ -1667,179 +1667,8 @@ ) %7B%0A - // remove empty per_duration obj%0A let p = period;%0A if (p.get('per_duration') && p.get('per_duration').size === 0) %7B%0A p = p.delete('per_duration');%0A %7D%0A%0A @@ -1753,16 +1753,21 @@ return p +eriod .map((va
6a2d9ef4c5357afaf52a801fe040c98b26f16022
more verbose
webpack.prod.config.js
webpack.prod.config.js
const ExtractTextPlugin = require('extract-text-webpack-plugin'); const webpack = require('webpack'); const path = require('path'); module.exports = { devtool: 'cheap-module-source-map', entry: [ './client/index.js' ], output: { path: `${__dirname}/dist/`, filename: 'bundle.js' }, plugins: [ ...
JavaScript
0.999016
@@ -545,16 +545,23 @@ : 'babel +-loader ',%0A
d7288d86171fea0519c377044def680746b0a7ed
add path to clickthrough tracking
src/js/app/services/clickthroughTracker.js
src/js/app/services/clickthroughTracker.js
var qs = require('querystring'); var service = function ($analytics) { return { track: function(location) { var params = qs.parse(location.search.replace(/^\?/, '')); if (!params.ctt) return; $analytics.eventTrack('Clickthrough', {type: params.ctt, id: params.cti}); // remove the params...
JavaScript
0
@@ -250,16 +250,58 @@ ough', %7B +%0A path: location.pathname,%0A type: pa @@ -309,16 +309,24 @@ ams.ctt, +%0A id: par @@ -332,16 +332,23 @@ rams.cti +%0A %7D);%0A%0A
0fb23cca6047fe909de903c4d804638cf5dad0d2
Revert "Specify the hash in the filename for generated JS/CSS"
webpack.prod.config.js
webpack.prod.config.js
const path = require('path') const webpack = require('webpack') const ExtractTextPlugin = require('extract-text-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') const autoprefixer = require('autoprefixer') const postcssApply = require('postcss-apply') const postcssCalc = require('postcss-calc')...
JavaScript
0.000003
@@ -1034,15 +1034,8 @@ ame%5D --%5Bhash%5D .ent @@ -1070,20 +1070,8 @@ %5Bid%5D --%5Bchunkhash%5D .chu
0b1466011523b5a7a87339717ce4197aafeaabd5
Increase angular precision to 0.5 degrees
src/game-logic/utils/DiskModel.js
src/game-logic/utils/DiskModel.js
import events from 'events'; const MAX_ACCEL = 100; // degrees/sec^2 const MAX_DECEL = 300; // degrees/sec^2 const between = (num, first, last) => (first < last ? num >= first && num <= last : num >= last && num <= first); export default class DiskModel extends events.EventEmitter { static MAX_SPEED = 36...
JavaScript
0.998646
@@ -294,55 +294,8 @@ r %7B%0A - static MAX_SPEED = 360 / 15; // degrees/sec%0A%0A co @@ -2109,17 +2109,21 @@ d(newpos -) +*2)/2 ;%0A @@ -2163,17 +2163,21 @@ his._pos -) +*2)/2 ;%0A%0A
41f9159d316e1abe6b31216f54212c5099ca43d9
change selector modified accordingly to trigger autosave at option_based questions. DMPRoadmap/roadmap#710
lib/assets/javascripts/views/answers/status.js
lib/assets/javascripts/views/answers/status.js
import { isObject, isNumber, isString } from '../../utils/isType'; import { Tinymce } from '../../utils/tinymce'; import debounce from '../../utils/debounce'; $(() => { /* * Shows the closest saving-message HTML element within a question-form * @param { Strin } selector - A valid CSS selector to look for...
JavaScript
0
@@ -2961,29 +2961,27 @@ d%0A $('. -question-form +form-answer ').on('c @@ -2993,56 +2993,14 @@ ', ' -form.answer fieldset input, form.answer fieldset +input, sel
788e230de1bb83643c3e4abd9868328bba380f46
add transaction date
api/models/Transaction.js
api/models/Transaction.js
import mongoose from 'mongoose'; const Schema = mongoose.Schema; const TransactionSchema = new Schema({ account: { type: Schema.Types.ObjectId, required: true, ref: 'Account' }, budget: { type: Schema.Types.ObjectId, required: true, ref: 'Budget' }, category: { type: Schema.Types.ObjectId, required: true, ref: ...
JavaScript
0.000018
@@ -327,16 +327,56 @@ ory' %7D,%0A + date: %7B type: Date, required: true %7D,%0A price:
b659af01d58f9583f459affcccb703899efbc155
fix altitude test
www/ios/bluetooth-geolocation.js
www/ios/bluetooth-geolocation.js
var geo = navigator.geolocation; geo._getCurrentPosition = geo.getCurrentPosition; geo.getCurrentPosition = function(onSuccess, onError, opts) { return geo._getCurrentPosition(function(position) { guessSource(position); onSuccess(position); }, onError, opts); }; geo._watchPosition = geo.watchP...
JavaScript
0.000008
@@ -889,16 +889,17 @@ parts = +( position @@ -914,16 +914,22 @@ altitude + + '') .split('
f336f4fcb13e61453841214c829fa5c730b403f7
stop hover css applying to span
src/components/menu/menu-item/menu-item.style.js
src/components/menu/menu-item/menu-item.style.js
import styled, { css } from "styled-components"; import { baseTheme } from "../../../style/themes"; import LinkStyle from "../../link/link.style"; import IconStyle from "../../icon/icon.style"; const StyledMenuItemWrapper = styled.a` ${({ menuType, theme, selected, hasSubmenu, isOpen, variant...
JavaScript
0.000001
@@ -3149,32 +3149,60 @@ s%60%0A && +a:hover,%0A && button :hover %7B%0A @@ -3309,43 +3309,8 @@ %7D;%0A%0A - a,%0A button,%0A @@ -4277,16 +4277,39 @@ && +a:hover,%0A && b :hover %7B @@ -4409,43 +4409,8 @@ %7D;%0A%0A - a,%0A ...
b717cb6bf7bcadec9c1db78325824754f7b2a231
refactor check
src/components/record/tools/videoRangeCapture.js
src/components/record/tools/videoRangeCapture.js
import Flash from 'videojs-flash'; import FieldCollection from './../recordEditor/models/fieldCollection'; const videoRangeCapture = (services, datas, activeTab = false) => { const {configService, localeService, appEvents} = services; let $container = null; let videojs = {}; let initData = {}; let ...
JavaScript
0.000001
@@ -1931,10 +1931,10 @@ lse -%7C%7C +&& vtt @@ -1950,18 +1950,43 @@ lue. -length %3E 0 +VideoTextTrackChapters != undefined ) %7B%0A
716d4bdd010ae3caf8475e4ad04e279123cffe02
Remove unused props
src/geo/torque-layer-view-base.js
src/geo/torque-layer-view-base.js
var _ = require('underscore'); /** * Implementation of all common logic of a torque-layer view. * All the methods and attributes here need to be consistent across all implementing models. * * Methods are prefixed with _ to indicate that they are not intended to be used outside the implementing models. */ module.e...
JavaScript
0
@@ -515,520 +515,8 @@ '),%0A - column: layerModel.get('property'),%0A blendmode: layerModel.get('torque-blend-mode'),%0A resolution: 1,%0A // TODO: manage time columns%0A countby: 'count(cartodb_id)',%0A sql_api_domain: layerModel.get('sql_api_domain'),%0A sql_api_protocol: layerMode...
6b1126ba3eb4f0824154fb11d63fe1cac8060da4
Change should to assert
test/basic.js
test/basic.js
var should = require('should'); var assert = require('assert'); var url = require('url'); var request = require('../'); var NODE = true; var uri = 'http://localhost:5000'; if (typeof window !== 'undefined') { NODE = false; uri = '//' + window.location.host; } else { process.env.ZUUL_PORT = 5000; require('./su...
JavaScript
0.000294
@@ -1220,32 +1220,39 @@ %7D%0A +assert( res.error.status @@ -1251,30 +1251,21 @@ r.status -.should.equal( + === 500);%0A
1b01b4efc6865ead78a23c35a20aefb2d076ed25
fix tests
test/basic.js
test/basic.js
var create = require('./helpers/create') var sodium = require('sodium-native') var tape = require('tape') tape('append', function (t) { t.plan(8) var feed = create({valueEncoding: 'json'}) feed.append({ hello: 'world' }) feed.append([{ hello: 'verden' }, { hello: 'welt' }]) feed.flush(f...
JavaScript
0.000001
@@ -67,14 +67,17 @@ ium- -native +universal ')%0Av
c0fdbc2f4d2f3ddc78c1b39f0476624ac1cf32b2
Fix sound integration test
test/integration/sound.js
test/integration/sound.js
const path = require('path'); const test = require('tap').test; const makeTestStorage = require('../fixtures/make-test-storage'); const extract = require('../fixtures/extract'); const VirtualMachine = require('../../src/index'); const uri = path.resolve(__dirname, '../fixtures/sound.sb2'); const project = extract(uri)...
JavaScript
0.000003
@@ -1,12 +1,51 @@ +const Worker = require('tiny-worker');%0A const path = @@ -260,16 +260,81 @@ index'); +%0Aconst dispatch = require('../../src/dispatch/central-dispatch'); %0A%0Aconst @@ -420,16 +420,166 @@ (uri);%0A%0A +// By default Central Dispatch works with the Worker class built into the browser. Tell it t...
684e77314b2977a376c5a409f33ac055b6199ef1
Update compare-link.js
scripts/compare-link.js
scripts/compare-link.js
/** * Created by MrIggyman1234 on 19/12/2016. */ $(document).ready(function(){ var $nav = $("nav"); var $body = $("body"); $body.on("click", "#compare-link", function(e){ e.preventDefault(); $nav.fadeOut(200); $nav.html("<a class=\"nav-link\" id=\"back-link\" href=\"#\">Back</a>" ...
JavaScript
0.000001
@@ -1,56 +1,4 @@ -/**%0A * Created by MrIggyman1234 on 19/12/2016.%0A */%0A%0A $(do @@ -1023,8 +1023,9 @@ %7D);%0A%7D); +%0A
f28c89f90c064cb8891fce5634caa307836ec5ca
Tweak heading link style
src/components/Link/HeadingLink.js
src/components/Link/HeadingLink.js
import React, {PropTypes} from 'react'; import Link from './Link'; import {catalogShape} from '../../CatalogPropTypes'; const style = (theme) => ({ headingLink: { float: 'left', marginLeft: -18, color: theme.lightColor, fill: theme.lightColor, ':hover': { color: theme.linkColor, fill:...
JavaScript
0
@@ -163,48 +163,8 @@ : %7B%0A - float: 'left',%0A marginLeft: -18,%0A @@ -339,578 +339,8 @@ );%0A%0A -const LinkIcon = () =%3E (%0A %3Csvg width='14px' height='14px' viewBox='0 0 16 16'%3E%3Cg transform='translate(0, 0)'%3E%0A %3Cpath d='M4.5,16c-1.2,0-2.3-0.5-3.2-1.3c-1.8-1.8-1.8-4.6,0-6.4L2,7.6L3.4,9...
160d71948ceded264af0c5c9972d7d3d1e9c61b2
fix test
test/cases.js
test/cases.js
var tokens = require('./setupenv') var request = require('supertest') var app = require('../app') var log = require('winston') let chai = require('chai'); let chaiHttp = require('chai-http'); let should = chai.should(); chai.use(chaiHttp); describe('Cases', () => { describe('Lookup', () => { it('finds case 100',...
JavaScript
0.000002
@@ -2330,16 +2330,21 @@ he_case. +tags. should.h @@ -2360,16 +2360,36 @@ hOf(3);%0A + done();%0A
4807a1f256feb7ac08de3d9d0589c1884dbae43c
Check if collectionNode exists before calling embedReducerWithLink
lib/query/reducers/lib/embedReducerWithLink.js
lib/query/reducers/lib/embedReducerWithLink.js
import {handleAddField, handleAddElement, handleAddReducer} from './createReducers'; /** * Embeds the reducer body with a collection body * @param reducerBody * @param collectionNode */ export default function embedReducerWithLink(reducerNode, reducerBody, collectionNode) { _.each(reducerBody, (value, key) => ...
JavaScript
0
@@ -1,16 +1,19 @@ import %7B +%0A handleAd @@ -19,16 +19,18 @@ ddField, +%0A handleA @@ -39,16 +39,18 @@ Element, +%0A handleA @@ -62,16 +62,17 @@ ucer +%0A %7D from -' +%22 ./cr @@ -83,17 +83,17 @@ Reducers -' +%22 ;%0A%0A/**%0A @@ -229,32 +229,35 @@ ReducerWithLink( +%0A reducerNode, red @@ -25...
9d152691087e7ab6bf7e1736d9371683d4339d77
this is user profile
src/components/ProfileComponent.js
src/components/ProfileComponent.js
import React from 'react'; export default class ProfileComponent extends React.Component{ constructor(props, context){ super(props,context); } render(){ return( <div> <div className="wrapper"> <div className="page-header page-header-small" style="background-image: ...
JavaScript
0.999887
@@ -506,19 +506,43 @@ section +-with-space section-gray %22%3E%0A - @@ -1058,33 +1058,32 @@ d-5 text-center%22 - %3E%0A @@ -1198,12 +1198,14 @@ btn- -info +danger %22%3EEd @@ -1694,29 +1694,482 @@ me=%22 -section latest-offers +col-md-12 text-center%22 style=%22margin: 20px;%22%3E%0A ...
49622e12063541b011c411155657309502386549
fix test
test/lib-defaults.test.js
test/lib-defaults.test.js
'use strict'; const linz = require('linz'); const supertest = require('supertest'); test('sets a default', () => { expect(linz.get('admin home')).toBe('/models/list'); expect(linz.get('admin path')).toBe('/admin'); expect(linz.get('admin title')).toBe('Linz'); expect(linz.get('login path')).toBe('/ad...
JavaScript
0.000002
@@ -443,16 +443,22 @@ .toBe('/ +admin/ forgot-y
92f18792d09f2d7e4e77f0cf2a9917ca673e6bc6
Add new line.
hash.murmur3.128.32/index.js
hash.murmur3.128.32/index.js
var HashBlock = require('hash.block') var util = require('util') // 128-bit key Murmur3 for 32-bit architectures. // // See: https://github.com/bigeasy/hash // var c1 = 0x239b961b var c2 = 0xab0e9789 var c3 = 0x38b34ae5 var c4 = 0xa1e38b93 // As noted in the 32-bit key Murmur3, there's a fragility regarding uns...
JavaScript
0.000077
@@ -1142,16 +1142,17 @@ hash%0A%7D%0A +%0A function
91c8ff646ff573a048949db1f08c9c8d99c31e7b
use of logasth.debounce instead of home made timeout
src/components/digestMiddleware.js
src/components/digestMiddleware.js
let toRun; export default function digestMiddleware($rootScope, debounceConfig) { return store => next => action => { const res = next(action); if(debounceConfig && debounceConfig.wait && debounceConfig.wait > 0) { toRun = res; window.setTimeout(() => { $rootScope.$evalAsync(toRun); ...
JavaScript
0
@@ -1,13 +1,42 @@ -let toRun +import debounce from 'lodash.debounce' ;%0A%0Ae @@ -111,76 +111,55 @@ %7B%0A -return store =%3E next =%3E action =%3E %7B%0A const res = next(action);%0A +let debouncedFunction = $rootScope.$evalAsync;%0A if @@ -235,128 +235,91 @@ - toRun = res;%0A window.setTimeout...