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 |
|---|---|---|---|---|---|---|---|
bd1b8a827b9b94fe23aebc5729e5e3e11bbb2885 | fix e2e test | test/e2e/collective.loggedout.createOrder.test.js | test/e2e/collective.loggedout.createOrder.test.js | import { download, chromeless } from '../utils';
const WEBSITE_URL = "https://staging.opencollective.com";
// const WEBSITE_URL = "http://localhost:3030";
describe("collective.loggedout.createOrder", () => {
let browser;
beforeAll(() => browser = chromeless.init());
afterAll(() => chromeless.close(browser));
... | JavaScript | 0.000044 | @@ -1210,24 +1210,67 @@
Message'%5D%22)%0A
+ .scrollToElement('.submit button')%0A
.cli
|
f533d5e0e4f9297d72d5f88d0473e3ec7d9cd7be | refresh unit test coverage | test/util/profile/environment-addaccount-tests.js | test/util/profile/environment-addaccount-tests.js | /**
* Copyright (c) Microsoft. 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 applicable law or ag... | JavaScript | 0 | @@ -836,16 +836,96 @@
ofile');
+%0Avar subscriptionUtils = require('../../../lib/util/profile/subscriptionUtils');
%0A%0Avar ex
@@ -1200,16 +1200,57 @@
xample';
+%0Avar expectedPassword = 'sekretPa$$w0rd';
%0A%0Avar ex
@@ -1779,64 +1779,192 @@
tub(
-environment, 'getAccountSubscriptions').callsArgWith(1,
+subscri... |
8b7072602ca3226a5092a76c5616397826677a53 | Fix "gapps-script/pollenvarsling/Code.gs.js" | gapps-script/pollenvarsling/Code.gs.js | gapps-script/pollenvarsling/Code.gs.js | /*!
* Parse Pollen Alert emails from NAAF (The Norwegian Asthma and Allergy
* Association) and add the alert to the Google Calendar
*
* @author Alexander Nilsen <alexander.nilsen.no@gmail.com>
*
* ---------------------------------------------------------------------------
* <https://github.com/alni/digital-s... | JavaScript | 0.000022 | @@ -4377,17 +4377,16 @@
var cal
-s
= Calen
|
383213253c78c5ea44a29f97d0af572442fac62e | test for visibleRange with list view | tests/automated-better/view-dates/visibleRange.js | tests/automated-better/view-dates/visibleRange.js |
describe('visibleRange', function() {
describe('when custom view with a flexible range', function() {
pushOptions({
defaultView: 'agenda'
});
describe('when given a valid date range', function() {
var startInput = '2017-06-26';
var endInput = '2017-06-29';
describeOptions('visibleRange', {
'o... | JavaScript | 0 | @@ -3365,32 +3365,381 @@
%7D);%0A%09%09%7D);%0A%09%7D);%0A%0A
+%09describe('when a list view', function() %7B%0A%09%09pushOptions(%7B%0A%09%09%09defaultView: 'list',%0A%09%09%09visibleRange: %7B%0A%09%09%09%09start: '2017-06-07',%0A%09%09%09%09end: '2017-06-10'%0A%09%09%09%7D,%0A%09%09%09events: %5B%0A%09%09%09%09%7B ... |
8a16d4dd0a7d1b905a2c895938dc8878d3565a04 | Fix test that wasn't adapted properly to component change #109 | tests/components/component-playground/children.js | tests/components/component-playground/children.js | var $ = require('jquery'),
Cosmos = require('../../../cosmos.js'),
renderComponent = require('../../helpers/render-component.js'),
ComponentPlayground =
require('../../../components/component-playground.jsx');
describe('ComponentPlayground component', function() {
var component,
$component,
... | JavaScript | 0 | @@ -2532,24 +2532,21 @@
-fixtures
+state
: %7B%0A
@@ -2557,49 +2557,23 @@
-MyComponent: %7B%0A 'small size'
+fixtureContents
: %7B%0A
@@ -2586,18 +2586,16 @@
-
-
shouldBe
@@ -2610,24 +2610,8 @@
obj%0A
- %7D%0A
|
935cb241e432ad03740dde657d5f2117ab95882e | Fix other test with function as string | test/unbox-with-cache.js | test/unbox-with-cache.js | /*
This file exists because we were seeing strange behaviour around indexing
of encrypted messages.
The bug was tracked down to the unbox cache in autobox.js, which was storing
a reference to a state which was being mutated elsewhere.
These tests are left to guard against this bug recurring
*/
const tape =... | JavaScript | 0.002628 | @@ -3127,16 +3127,18 @@
Date.now
+()
%7D%60, %7B%7D,
|
b92f966df642d4cf7add72da1be386dbdf16f1ca | Improve test coverage | test/unit/easing.test.js | test/unit/easing.test.js | import { assert } from 'chai';
import { EASING } from '../../src/easing';
describe('Animation::easing', () => {
it('Should properly export easing', () => {
assert.isNumber(EASING.inQuad(0, 0, 0, 0));
assert.isNumber(EASING.outQuad(0, 0, 0, 0));
assert.isNumber(EASING.inOutQuad(0, 0, 0, 100));
assert.... | JavaScript | 0.000162 | @@ -2751,32 +2751,93 @@
0.7, 0, 0, 0));%0A
+ assert.isNumber(EASING.outBounce(1463, 1, 110.5, 2000));%0A
assert.isNum
|
94daecd039f14889fc970e741a2b919ad069debc | Send only 10% of the events we generate to mixpanel | zephyr/static/js/metrics.js | zephyr/static/js/metrics.js | var metrics = (function () {
var exports = {};
function enable_metrics() {
return page_params.domain === "humbughq.com";
}
if (! enable_metrics()) {
mixpanel.disable();
}
$(function () {
$(document).on('compose_started.zephyr', function (event) {
mixpanel.track('compose started', {user: page_par... | JavaScript | 0 | @@ -176,16 +176,137 @@
e();%0A%7D%0A%0A
+function include_in_sample() %7B%0A // Send a random sample of events that we generate%0A return Math.random() %3C 0.1;%0A%7D%0A%0A
$(functi
@@ -369,32 +369,100 @@
ction (event) %7B%0A
+ if (! include_in_sample()) %7B%0A return;%0A %7D%0A%0A
... |
e6cbe3a26938ca8d88d44bacc6c40ba09f5f1fd1 | Revert "Added a check for any URL param. If found, strips them out before" | plugins/Meteor/meteorupdater.js | plugins/Meteor/meteorupdater.js | // Update the local timeline from a Meteor server
// XXX: If @a is subscribed to @b, @a should get @b's notices in @a's Personal timeline.
// Do Replies timeline.
var MeteorUpdater = function()
{
return {
init: function(server, port, timeline)
{
Meteor.callbacks["process"] = funct... | JavaScript | 0 | @@ -384,20 +384,17 @@
-var
+$
user_url
@@ -453,176 +453,8 @@
%5D;%0A%0A
- var wlh = window.location.href;%0A%0A if (wlh.indexOf('?') %3E 0) %7B%0A wlh = wlh.slice(0, wlh.indexOf('?'))%0A %7D%0A%0A
@@ -505,32 +505,33 @@
+... |
d7db6f0c9a8fbc908aff716c54edea7fc9d424a4 | Use postForm method for wizard form | vvpages/templates/vvpages/vues/methods.js | vvpages/templates/vvpages/vues/methods.js | {% load vv_tags vvpages_tags %}
{% use_local_storage as storage %}
{% if storage %}
isInStorage: function(resturl) {
var url = store.get(resturl);
if (url == undefined) {
return false
}
return true
},
loadFromStorage: function(resturl) {
var data = store.get(resturl);
return data
},
{% endif %}
loadH... | JavaScript | 0 | @@ -2619,145 +2619,19 @@
var
-ax = axios.create(%7Bheaders: %7B'X-CSRFToken': csrftoken%7D%7D);%0A%09ax(%7B%0A%09%09method: 'post',%0A%09%09url: '%7B%25 url %22vvpages-wizard-post%22 %25%7D',%0A%09%09data:
+data =
%7B%0A%09%09
-%09
titl
@@ -2655,17 +2655,16 @@
itle,%0A%09%09
-%09
url: thi
@@ -2678,17 +2678,16 @@... |
e0a6d11a0d9df7d4c9d5c42577a4aa7971fb9938 | remove commented out function | client/app/scripts/liveblog-syndication/actions/ingest-panel.js | client/app/scripts/liveblog-syndication/actions/ingest-panel.js | liveblogSyndication
.factory('IngestPanelActions', ['Dispatcher', 'api', '$http', 'config',
function(Dispatcher, api, $http, config) {
return {
getSyndication: function() {
api.syndicationIn.query().then(function(syndicationIn) {
Dispa... | JavaScript | 0 | @@ -2512,734 +2512,8 @@
%7D%0A
- //getSyndicatedBlogs: function() %7B%0A // api('syndication_in').query()%0A // .then(function(syndicationIn) %7B%0A // return syndicationIn._items%0A // .map(function(synd) ... |
4da6e3ecee1ca1193e0d273aff8225a9b53d9ba4 | add test for error on 200 rc test path | tests/e2e/vendor_spec.js | tests/e2e/vendor_spec.js | const helpers = require("./global-setup");
const request = require("request");
const expect = require("chai").expect;
const describe = global.describe;
const it = global.it;
const before = global.before;
const after = global.after;
const mlog = require("mocha-logger");
describe("Vendors", function () {
helpers.setu... | JavaScript | 0 | @@ -992,24 +992,40 @@
es, body) %7B%0A
+%09%09%09%09%09if (!err)%0A%09
%09%09%09%09%09expect(
@@ -1055,16 +1055,90 @@
l(200);%0A
+%09%09%09%09%09else%0A%09%09%09%09%09%09mlog.pending(%60There error vendor 200 test $%7Berr%7D%60);%09%09%09%09%09%09%0A
%09%09%09%09%7D);%0A
|
0127c752a9f3bbcb5f0b6c527790b93b91ef6365 | add delay to handle script-rendered content | 4.AgentOrange/src/content.js | 4.AgentOrange/src/content.js | (function() {
const nickname = ['Drumpf', 'Agent Orange', 'Pumpkin', 'Putin Lackey', 'Tiny Fingers'];
const adverbs = ['yugely', 'bigly', 'tremendously', 'covfefe'];
let drumpf = /Trump/g, adverb = /\b[A-Za-z]*ly\b/g;
let length1 = nickname.length, length2 = adverbs.length;
let isDrumpfed = false;
let corre... | JavaScript | 0 | @@ -1,9 +1,19 @@
-(
+let main =
function
@@ -388,18 +388,16 @@
e('*');%0A
-
%0A for(l
@@ -1300,13 +1300,34 @@
%3E %7B%7D);%0A%7D
-()
+;%0A%0AsetTimeout(main, 200
);%0A
|
f584b2a12e745898655fe2473258a03c489ae054 | Update constants | web/components/widgets/gcode/constants.js | web/components/widgets/gcode/constants.js | export const GCODE_STATUS = {
ERROR: -1,
NOT_STARTED: 0,
IN_PROGRESS: 1,
COMPLETED: 2
};
| JavaScript | 0.000001 | @@ -1,8 +1,78 @@
+export const IMPERIAL_UNIT = 'inch';%0Aexport const METRIC_UNIT = 'mm';%0A
export c
|
0697e1697c5190e0344dcbe3e7537d90abd03b04 | Include teams scores | app/assets/javascripts/channels/gameView.js | app/assets/javascripts/channels/gameView.js |
function renderGamePage(gameState) {
console.log('renderGamePage(', gameState, ')');
var cardHTML = `<h1>${gameState.card}</h1>`;
var startRoundFormHTML = `
<form class="action-form" action="/games/${gameState.game.name}/start_round" method="post">
<input class="waves-effect waves-light btn-large tea... | JavaScript | 0 | @@ -765,32 +765,60 @@
eam1.name%7D%3C/h5%3E%0A
+ %3Ch6%3E$%7Bteam1.score%7D%3C/h6%3E%0A
%3Cul%3E%0A $
@@ -865,24 +865,52 @@
.name%7D%3C/h5%3E%0A
+ %3Ch6%3E$%7Bteam2.score%7D%3C/h6%3E%0A
%3Cul%3E%0A
|
2911459233f5ebaf80d48bee887e514ecdff0e11 | Update vue.js | app/assets/javascripts/codelation_ui/vue.js | app/assets/javascripts/codelation_ui/vue.js | //= require vue
//= require_self
//= require ./std
App.vue = {
_info: 'Contains object references to all functionality that the UI offers as well as the reference to the root vue component',
interfaces: {
_info: 'Used for containing mixins and methods used for vue'
},
computedInterfaces: {
_info: 'Same... | JavaScript | 0.000001 | @@ -841,11 +841,35 @@
to
-add
+hold references to per page
com
@@ -876,16 +876,27 @@
ponents
+and attach
to the r
@@ -891,36 +891,32 @@
ach to the root
-vue
component if not
@@ -912,16 +912,24 @@
nent if
+you did
not defi
@@ -930,17 +930,21 @@
t define
-d
+ one.
'%0A %7D%0A%7D%0A
|
b8e352145c9e3662dc0ec8e32944848186494de3 | Use prop() instead of removeAttr() | app/assets/javascripts/legislation_admin.js | app/assets/javascripts/legislation_admin.js | (function() {
"use strict";
App.LegislationAdmin = {
initialize: function() {
$(".legislation-process-form").find("[name$='enabled]'],[name$='[published]']").on({
change: function() {
var checkbox;
checkbox = $(this);
checkbox.closest("fieldset").find("input[type='da... | JavaScript | 0 | @@ -354,165 +354,59 @@
-if (checkbox.is(%22:checked%22)) %7B%0A $(this).removeAttr(%22disabled%22);%0A %7D else %7B%0A $(this).prop(%22disabled%22, true);%0A %7D
+$(this).prop(%22disabled%22, !checkbox.is(%22:checked%22));
%0A
|
df89f40f5ed7f4649cc056a4e1b9c847a447cdf5 | debug cancel button on linkrole | app/assets/javascripts/shared/link_role.es6 | app/assets/javascripts/shared/link_role.es6 | class LinkRole extends React.Component {
constructor(props) {
super(props)
this.state = {
editMode: false,
role: props.link.role
}
}
updateRole(e) {
this.setState({ role: e.target.value })
}
saveOnEnter(e) {
if(this.props.canWrite) {
if(e.key == 'Enter') {
... | JavaScript | 0 | @@ -675,24 +675,129 @@
%7D)%0A %7D%0A%0A
+ cancel() %7B%0A this.setState(%7B%0A editMode: false,%0A role: this.props.link.role%0A %7D)%0A %7D%0A%0A
render() %7B
@@ -1194,35 +1194,30 @@
Click=%7Bthis.
-setEditMode
+cancel
.bind(this,
@@ -1218,15 +1218,8 @@
this
-, false
)%7D%3EA
|
cc5db3101e6eec92519176e9b6049dca6f0878ca | Use !== for string comparison | website/static/js/pages/dashboard-page.js | website/static/js/pages/dashboard-page.js | /**
* Initialization code for the dashboard pages. Starts up the Project Organizer
* and binds the onboarder Knockout components.
* */
var Raven = require('raven-js');
var ko = require('knockout');
var $ = require('jquery');
var jstz = require('jstz').jstz;
var $osf = require('osfHelpers');
var ProjectOrganizer = r... | JavaScript | 0.000015 | @@ -2052,24 +2052,25 @@
dTimezone !=
+=
clientTimez
@@ -2090,16 +2090,17 @@
ocale !=
+=
clientL
|
2b107e970f802ec766c73ed2966b923f58e8ff0c | Improve comments | example/future/src/lib/predict.js | example/future/src/lib/predict.js | const way = require('senseway')
const pat = require('sensepat')
module.exports = (model, channel, time) => {
// Find probability for 1 in the given cell position,
// given the history.
//
// Params
// ...
// time, time in history
//
// Returns
// probability for 1
const timelinePat = pat.mixe... | JavaScript | 0 | @@ -1478,16 +1478,25 @@
the cell
+ (qc, qt)
being 1
@@ -1785,16 +1785,44 @@
//
+ 0 in context at this point.
B=0%0A
|
d330399f266e8891fbabe462cbb2b6150eb6cc59 | move to new api | examples/01-history-api/server.js | examples/01-history-api/server.js | 'use strict';
// Init ES6 + jsx environments for .require()
require('babel/register')({
extensions: ['.jsx']
});
var express = require('express'),
fluxexapp = require('./fluxexapp'),
serverAction = require('./actions/server'),
fluxexServerExtra = require('fluxex/extra/server'),
app = express();
/... | JavaScript | 0 | @@ -444,17 +444,23 @@
erExtra.
-m
+createM
iddlewar
@@ -460,16 +460,24 @@
ddleware
+ByAction
(fluxexa
|
138d4daa2d9ec405bfbb820bc4a931703bf0e9e2 | Add --depth=1 to app installer when doing it via git repository | Cli/InstallApps/installer.js | Cli/InstallApps/installer.js | const Webiny = require('webiny/lib/webiny');
const chalk = require('chalk');
const yaml = require('js-yaml');
const _ = require('lodash');
class InstallApps {
run(config) {
return new Promise(resolve => {
try {
Webiny.info('Installing ' + chalk.cyan(config.name) + '...');
... | JavaScript | 0 | @@ -572,16 +572,26 @@
t clone
+--depth=1
' + conf
|
788fa909e9a56e71e8c7cabbb345a39aade1f631 | fix refresh button not working on editor maps location | app/components/Editor/EditorMapsLocation.js | app/components/Editor/EditorMapsLocation.js | import React, { Component } from 'react';
/* ----- COMPONENT ----- */
class EditorMapsLocation extends Component {
constructor() {
super()
this.onChanges.bind(this);
this.state = {
location: ''
}
}
onChanges(index, event) {
this.props.onLocationsChange(index, event.target.value);
}
... | JavaScript | 0 | @@ -1256,32 +1256,40 @@
bind(this, index
+, 'name'
)%7D%0A
@@ -1823,32 +1823,118 @@
field, event) %7B%0A
+ console.log(event.target.value)%0A this.setState(%7Blocation: event.target.value%7D)%0A
event.preven
@@ -1978,58 +1978,8 @@
();%0A
- this.setState(%7Blocation: event.target.value%7D)... |
57ff21e6055552a7f27ed9439da5a03d5bda5721 | Fix Liberato's rank | app/components/MultiFormatTableRow/index.js | app/components/MultiFormatTableRow/index.js | import { TableRow, TableRowColumn } from 'material-ui/Table';
import React from 'react';
import { Link } from 'react-router';
export default class MultiFormatTableRow extends React.PureComponent {
render() {
const { index, row, columns } = this.props;
return (
<TableRow striped={index % 2 !== 0}>
... | JavaScript | 0 | @@ -391,16 +391,55 @@
px' %7D%7D%3E%7B
+row.id === '76561198278242542' ? 251 :
index%7D%3C/
|
54397e49170017a2b6375035e8c19eae37a9f55f | Fix for procedural generation of input plus buttons on layout js | app/presenter/static/presenter/js/layout.js | app/presenter/static/presenter/js/layout.js | create_new_layout = function(thisObj, url) {
var cookie = getValueFromCookie('csrftoken');
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
xhr.setRequestHeader('X-CSRFToken', cookie);
xhr.onloadend = function(response) {
var res_obj = JSON.parse(xhr.response);
if (res_... | JavaScript | 0 | @@ -1037,16 +1037,107 @@
ength;%0A%0A
+ var eleDiv = document.createElement('div');%0A eleDiv.className = %22container_input%22;%0A%0A
var
@@ -1815,34 +1815,35 @@
d(eleI);%0A ele
-Li
+Div
.appendChild(ele
@@ -1848,16 +1848,46 @@
leInput)
+%0A eleLi.appendChild(eleDiv)
;%0A el
|
7476cda6551158f5465ccb138b5c4a0af372ba2b | Fix broken image upload when creating new resource | app/scripts/components/FormImageUploader.js | app/scripts/components/FormImageUploader.js | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { FormImageUploaderImage } from './'
import { alert } from '../services/dialog'
import { asFormField, withImageUpload } from '../containers'
import { translate } from '../../../common/services/i18n'
function isNewImage(image) {
// Ne... | JavaScript | 0.000002 | @@ -4797,90 +4797,108 @@
-// Input might not be set%0A if (!this.props.input.value) %7B%0A return %5B%5D%0A %7D
+const %7B input, uploadedImages %7D = this.props%0A const currentValue = input.value ? input.value : %5B%5D
%0A%0A
@@ -4985,26 +4985,16 @@
s =
-this.props.input.v
+currentV
alue
@@ ... |
170d3ebe6dd0744eae1c17603c89fc1608b70eb4 | check if item exists in userNotification array | app/views/directives/xuser-notifications.js | app/views/directives/xuser-notifications.js | define(['app','underscore','ionsound'], function(app,_) {
app.directive('xuserNotifications', function() {
return {
restrict: 'EAC',
replace: true,
templateUrl: '/app/views/directives/xuser-notifications.html',
controller: ['$scope', '$rootScope', 'IUserNotifi... | JavaScript | 0 | @@ -2996,24 +2996,194 @@
(message) %7B%0A
+ var exists = _.findWhere(localNotifications,%7B'_id':message._id%7D);%0A if(!exists)%0A
|
cce1850a791b69ef1f71238cb6673fad84b69cfd | Split the tags or an empty list if field is empty | indexing/transformations/split-tags.js | indexing/transformations/split-tags.js | 'use strict';
const fields = [
'tags',
'tags_vision'
]
module.exports = function(state, metadata) {
fields.forEach(field => {
if(typeof(metadata[field]) === 'string') {
metadata[field] = metadata[field].split(',');
}
});
return metadata;
};
| JavaScript | 0.999504 | @@ -135,18 +135,22 @@
-if(typeof(
+const value =
meta
@@ -164,49 +164,156 @@
eld%5D
-) === 'string') %7B%0A metadata%5Bfield%5D =
+;%0A console.log('value', value);%0A if(typeof(value) === 'string' && value !== '') %7B%0A metadata%5Bfield%5D = value.split(',');%0A %7D else %7B%0A
met
... |
bce43026958a2ab3f1bd4a864bfcdda5bf794adc | remove debug code | kolibri/core/assets/src/kolibri_app.js | kolibri/core/assets/src/kolibri_app.js | import forEach from 'lodash/forEach';
import isPlainObject from 'lodash/isPlainObject';
import router from 'kolibri.coreVue.router';
import logger from 'kolibri.lib.logging';
import Vue from 'kolibri.lib.vue';
import store from 'kolibri.coreVue.vuex.store';
import heartbeat from 'kolibri.heartbeat';
import KolibriModul... | JavaScript | 0.02323 | @@ -2937,44 +2937,8 @@
tor%0A
- logging.debug(subSchema);%0A
@@ -4335,55 +4335,8 @@
%7D%0A
- logging.debug(getter, callback);%0A
|
f242b7d6184ef142df7eccf5e1202dd06d4543b1 | Update inline comments | config/jsdoc/info/publish.js | config/jsdoc/info/publish.js | /**
* @fileoverview Generates JSON output based on exportable symbols (those with
* an api tag) and boolean defines (with a define tag and a default value).
*/
const assert = require('assert');
const path = require('path');
/**
* Publish hook for the JSDoc template. Writes to JSON stdout.
* @param {function} dat... | JavaScript | 0 | @@ -67,95 +67,8 @@
bols
- (those with%0A * an api tag) and boolean defines (with a define tag and a default value)
.%0A *
@@ -629,60 +629,25 @@
ets
-with the %22api%22 property or define (excluding events)
+that have exports
%0A c
|
4d45cd368ae98e2d0569d3e1fd0d04cad6a8f490 | fix messaging on added branches | bin/jitrub-cli.js | bin/jitrub-cli.js | const basename = require("path").basename;
const parseurl = require("url").parse;
const creds = require("../lib/creds");
const jitrub = require("../lib/jitrub");
const jira = require("../lib/jira");
const github = require("../lib/github");
const keys = Object.keys;
var opts = process.argv.slice(2),
opt, args = [],... | JavaScript | 0.000001 | @@ -856,19 +856,21 @@
-add
+remov
ed.forEa
|
de7926990bedb21f967d61fb8d2b48c8ec14962f | Add CharacterStyle documentation. | src/text/CharacterStyle.js | src/text/CharacterStyle.js | /*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* Copyright (c) 2011, Juerg ... | JavaScript | 0 | @@ -486,139 +486,1019 @@
(%7B%0A%09
-initialize: function(style) %7B%0A%09%09Base.initialize(this, style, %7B%0A%09%09%09fontSize: 10,%0A%09%09%09font: 'sans-serif'%0A%09%09%7D);%0A%09%09this.base(style);%0A%09%7D,
+/** @lends CharacterStyle# */%0A%0A%09/**%0A%09 * CharacterStyle objects don't need to be created direc... |
af1aa8a31c5f8e392395f33b5d3497856b69209c | fix #37 - do not mutate state in updateNotification | src/store/notifications.js | src/store/notifications.js | import {treatNotification, preloadImage} from '../helpers';
import {DEFAULT_NOTIFICATION} from '../constants';
// An array to store notifications object
const INITIAL_STATE = [];
// Action types
const ADD_NOTIFICATION = 'ADD_NOTIFICATION';
const UPDATE_NOTIFICATION = 'UPDATE_NOTIFICATION';
const REMOVE_NOTIFICATION = ... | JavaScript | 0 | @@ -3926,28 +3926,26 @@
-// get index of the
+return state.map((
noti
@@ -3952,16 +3952,22 @@
fication
+) =%3E %7B
%0A
@@ -3971,56 +3971,14 @@
-const index = state.findIndex((notification) =%3E
+ if (
noti
@@ -4004,17 +4004,18 @@
load.id)
-;
+ %7B
%0A
@@ -4019,77 +4019,18 @@
-//... |
b6126422bb711eb75e5202a8cdbfba764609a924 | check for errorCb | www/FileTransferManager.js | www/FileTransferManager.js | var exec = require('cordova/exec')
var FileTransferManager = function (options) {
this._handlers = {
event: []
}
this.options = options
var that = this
this.options.callback = function (result) {
that.emit('event', result)
}
if (!this.options.parallelUploadsLimit) {
this.options.parallelUploa... | JavaScript | 0.000001 | @@ -2020,32 +2020,43 @@
rCb) %7B%0A if (!id
+ && errorCb
) %7B%0A return e
|
4adcc613967474b784001c64bbc77081083904be | Complete `pushNotificationReceived` function, fix router redirect | www/js/controllers/home.js | www/js/controllers/home.js | ;(function(angular, debug) {
'use strict';
var log;
if (!angular)
throw new Error('Angular.js is required');
if (debug)
log = debug('tuchong-daily:Controller:Home');
angular
.module('tuchong-daily')
.controller('home', [
'$scope',
'$state',
'Store',
'UI',
'$ioni... | JavaScript | 0 | @@ -449,16 +449,41 @@
oader',%0A
+ '$cordovaDialogs',%0A
ho
@@ -634,16 +634,33 @@
geLoader
+, $cordovaDialogs
) %7B%0A
@@ -1043,24 +1043,159 @@
eSuccess);%0A%0A
+ // When Push Received,%0A // Jump to single collection page%0A scope.$on('pushNotificationReceived', pushNotificationReceived);%... |
d29974154ecda31cece781f072100d2d83e5a305 | Add correct content type and accept header | src/infogram-api.js | src/infogram-api.js | var url = require('url');
var crypto = require('crypto');
var _ = require('underscore');
var superagent = require('superagent');
function InfogramApi (apiKey, apiSecret) {
this.base = url.parse('https://infogr.am/service/v1');
if (!apiKey || !apiSecret) {
throw new Error('Please provide two arguments: apiKey a... | JavaScript | 0.000001 | @@ -1181,82 +1181,8 @@
%7D%0A%0A
- var req = method('https://' + this.base.hostname + basePath + path);%0A%0A
@@ -1323,16 +1323,159 @@
'json';
+%0A var req = method('https://' + this.base.hostname + basePath + path)%0A .accept(requestParams.format)%0A .type(requestParams.format);
%0A%0A va... |
b22bbc8535586504bea2d40f5bfb236abb93b4fc | Add ReactChildren | src/utils/ReactChildren.js | src/utils/ReactChildren.js | import React from 'react';
function find(children, func, context) {
let index = 0;
let result;
React.Children.forEach(children, (child) => {
if (result) {
return;
}
index += 1;
if (func.call(context, child, index)) {
result = child;
}
});
return result;
}
function map(chil... | JavaScript | 0.000002 | @@ -400,24 +400,90 @@
child) =%3E %7B%0A
+ if (!React.isValidElement(child)) %7B%0A return child;%0A %7D%0A
index +=
|
31bf7630553c955c5b9b92add42933a2176acd53 | clean up | src/utils/create-editor.js | src/utils/create-editor.js | /* eslint-disable import/no-unassigned-import */
import CodeMirror from 'codemirror'
import 'codemirror/mode/htmlmixed/htmlmixed'
import 'codemirror/mode/jsx/jsx'
import 'codemirror/mode/css/css'
import 'codemirror/addon/selection/active-line'
import 'codemirror/addon/edit/matchtags'
import 'codemirror/addon/edit/match... | JavaScript | 0.000001 | @@ -636,51 +636,8 @@
ue,%0A
- extraKeys: %7B%22Ctrl-E%22: %22autocomplete%22%7D,%0A
|
b39aa19814633b80147942fefaafe9c2df77f665 | Remove old export | src/utils/customTracker.js | src/utils/customTracker.js | 'use strict'
const sanitizeFilename = require('sanitize-filename')
const name = process.env.ACKEE_TRACKER
const exists = name != null && name !== ''
module.exports = exists === true ? `/${ encodeURIComponent(name) }.js` : undefined
module.exports = {
exists,
url: exists === true ? `/${ encodeURIComponent(name) }.... | JavaScript | 0.000003 | @@ -149,92 +149,8 @@
''%0A%0A
-module.exports = exists === true ? %60/$%7B encodeURIComponent(name) %7D.js%60 : undefined%0A%0A
modu
|
fb116a8e03e983219316fe0f9dffb38f250f4c3e | Replace handlesEvent flag with method | src/utils/robot-runtime.js | src/utils/robot-runtime.js | const _ = require('lodash')
const uid = require('uid')
const esper = require('esper.js')
class RobotRuntime {
constructor () {
this.robots = {}
}
connect (send) {
this.send = send
}
spawnRobot ({ spawnerId, api, code }) {
const id = uid()
this.send('game:spawner.spawn', {
target: sp... | JavaScript | 0.000008 | @@ -1696,32 +1696,34 @@
his.handlesEvent
+()
) %7B%0A return
@@ -2226,37 +2226,8 @@
)%60)%0A
- this.handlesEvent = true%0A
%7D%0A
@@ -2280,32 +2280,34 @@
his.handlesEvent
+()
) %7B%0A return
@@ -2481,16 +2481,18 @@
lesEvent
+()
) %7B%0A
@@ -2580,24 +2580,99 @@
n = true%0A %7D
+%0A%0A handl... |
faa5662a8dec57605d0e861ca4ef5f3b58ba8c07 | Update Mode.js | src/gamemodes/Mode.js | src/gamemodes/Mode.js | function Mode() {
this.ID = -1;
this.name = "Blank";
this.decayMod = 1.0; // Modifier for decay rate (Multiplier)
this.packetLB = 49; // Packet id for leaderboard packet (48 = Text List, 49 = List, 50 = Pie chart)
this.haveTeams = false; // True = gamemode uses teams, false = gamemode doesnt us... | JavaScript | 0.000001 | @@ -1001,16 +1001,40 @@
r(player
+, gameServer.randomPos()
);%0D%0A%7D;%0D%0A
|
9b8f27a0b712bff9ecac28105d881457bfa7c36f | Add 'invert' to mask parameter if you want to clear zone are selected. By default the dark zones | src/transform/mask/mask.js | src/transform/mask/mask.js | import Image from '../../image';
import percentile from './percentile';
/*
Creation of binary mask is based on the determination of a threshold
You may either choose among the provided algorithm or just specify a threshold value
If the algorithm is a number, it is the threshold value
*/
export default function... | JavaScript | 0 | @@ -357,16 +357,36 @@
a = true
+,%0A invert = false
%0A %7D =
@@ -1145,13 +1145,18 @@
-if ((
+let value=
this
@@ -1253,22 +1253,92 @@
alue
-) %3E= threshold
+;%0A if ((invert && value %3E= threshold) %7C%7C (! invert && value %3C= threshold)
) %7B%0A
@@ -1511,24 +1511,78 @@
if (
+(i... |
e681583fb6fb46363b4003d58df60498fa45ad74 | Switch to jsfxr conversion. | src/js/audio/fxr.js | src/js/audio/fxr.js | // Port of https://github.com/increpare/bfxr
/**
*
* Copyright 2010 Thomas Vian
*
* 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
*
* ... | JavaScript | 0 | @@ -1,11 +1,23 @@
//
-Port
+Modified version
of
@@ -39,19 +39,20 @@
com/
-increpare/b
+mneubrand/js
fxr%0A
@@ -952,136 +952,38 @@
%0A%0A
-overtones: 0,%0A overtoneFallof: 0,%0A%0A changeRepeat: 0,%0A%0A changeAmount: 0,%0A changeSpeed: 0,%0A%0A changeAmount2: 0,%0A changeSpeed2
+changeAmount: 0,%0A cha... |
1fb7ea4368adce2f6a7871d3c3bf60604c6ba03d | fix documentation for ionFooterBar | src/components/ionFooterBar/ionFooterBar.js | src/components/ionFooterBar/ionFooterBar.js | /**
* @ngdoc directive
* @name ionFooterBar
* @module meteoric
* @restrict E
*
* @description
* Adds a fixed footer bar below some content.
*
* Can also be a subfooter (higher up) if the 'bar-subfooter' class is applied.
* See [the footer CSS docs](/docs/components/#footer).
*
* @param {string=} alignTitle ... | JavaScript | 0 | @@ -498,18 +498,17 @@
* %7B%7B#ion
--f
+F
ooter-ba
@@ -646,43 +646,8 @@
iv%3E%0A
- * %3Ch1 class=%22title%22%3ETitle!%3C/h1%3E%0A
*
@@ -746,17 +746,15 @@
/ion
--f
+F
ooter
--b
+B
ar%7D%7D
|
5161a9dd250c2890af44d0db40d27e9b57103407 | Fix errors/warnings | stroom-ui/src/components/Button/Button.js | stroom-ui/src/components/Button/Button.js | /*
* Copyright 2018 Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | JavaScript | 0.000888 | @@ -999,16 +999,24 @@
st%7D%3E%0A
+ %7Bicon ?
%3CFontAw
@@ -1064,16 +1064,29 @@
icon%7D /%3E
+ : undefined%7D
%0A %7Bte
@@ -1126,16 +1126,16 @@
pes = %7B%0A
+
icon:
@@ -1154,19 +1154,8 @@
ring
-.isRequired
,%0A
|
eeba882b08db01683f1ff41a89159d85ee9bec25 | Fix standard linting problems (my normal formatter didn't kick in since this isn't my project...) | src/getStoredState.js | src/getStoredState.js | import forEach from 'lodash.foreach'
import constants from './constants'
import createAsyncLocalStorage from './defaults/asyncLocalStorage'
export default function getStoredState (config, onComplete) {
const storage = config.storage || createAsyncLocalStorage('local')
const deserialize = config.deserialize || defa... | JavaScript | 0 | @@ -419,18 +419,16 @@
%7C false%0A
-
%0A // Ad
@@ -560,17 +560,16 @@
b)%0A %7D%0A%0A
-%0A
let re
|
c61a95bd2892c1b00d425786e4b2a363a02ee5d1 | add legacy propTypes | src/components/message/message.component.js | src/components/message/message.component.js | import React from 'react';
import PropTypes from 'prop-types';
import MessageStyle from './message.style';
import DismissButton from '../dismiss-button';
import TypeIcon from './type-icon/type-icon.component';
import MessageContent from './message-content/message-content.component';
import OptionsHelper from '../../uti... | JavaScript | 0 | @@ -527,17 +527,21 @@
nDismiss
+, as
%0A
-
%7D = pr
@@ -757,16 +757,22 @@
variant
+%7C%7C as
%7D%0A
@@ -883,16 +883,22 @@
variant
+%7C%7C as
%7D rounde
@@ -1026,16 +1026,22 @@
variant
+%7C%7C as
%7D transp
@@ -1224,16 +1224,22 @@
variant
+%7C%7C as
%7D onDism
@@ -1384,23 +1384,18 @@
s = %7B%... |
e9c82a262cc9d0292759157d8a02f148a67eefed | remove spammy log | src/components/secrets/SecretListContent.js | src/components/secrets/SecretListContent.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { escapeRegExp, set } from 'lodash';
import { List, AutoSizer } from 'react-virtualized';
import SecretListItem from 'components/secrets/SecretListItem';
impo... | JavaScript | 0.000002 | @@ -3442,77 +3442,8 @@
x%5D;%0A
- if (secret.type === 'folder') console.log('rendering folder');%0A
|
0a34d3d922fa514b9910020e49d2b02dc0f02743 | add link to problem statement in tonic example | examples/data-center/data-center.tonic.js | examples/data-center/data-center.tonic.js | /**
* This is for use with Tonic.
* https://tonicdev.com/npm/jolicitron
*
* It shows how to use jolicitron to parse inputs for the data center problem
* from the Google Hash Code 2015 qualification round.
*/
const jolicitron = require("jolicitron")
const parser = jolicitron.build(({push, n}) => [
"nrows", "n... | JavaScript | 0 | @@ -204,16 +204,98 @@
round.%0A
+ * https://hashcode.withgoogle.com/2015/tasks/hashcode2015_qualification_task.pdf%0A
*/%0A%0Acon
@@ -490,16 +490,17 @@
pacity%22)
+,
%0A%5D)%0A%0Acon
|
6d441b43020d1fb4e32ce4d6330123751e27b5b5 | Fix Update User | src/controllers/api/Users/UserController.js | src/controllers/api/Users/UserController.js | /**
* Created by thanhqhc on 3/8/17.
*/
var Users = require('../../../models/Users/User');
var Events = require('../../../models/Events/Event');
var mongoose = require('mongoose');
var GoogleAuth = require('google-auth-library');
var EVResponse = require('./../../EVResponse.js');
var Rx = require('rxjs/Rx');
var Rx... | JavaScript | 0.000001 | @@ -2299,33 +2299,33 @@
e.failure(res,40
-3
+1
,%22Missing access
@@ -4763,45 +4763,62 @@
var
-access_token = req.query.a
+user_id = EVResponse.verifiyA
ccess
-_t
+T
oken
+(req,'user_id')
;%0A
@@ -4831,29 +4831,23 @@
if (
- access_token
+user_id
== null
) %7B%0A
@@ -4834,32 +4834,33 @@
(user_id == null
+ ... |
400303bc9262cad4ffda38edbd665834668cbe23 | Update example | lib/node_modules/@stdlib/assert/deep-has-own-property/lib/main.js | lib/node_modules/@stdlib/assert/deep-has-own-property/lib/main.js | 'use strict';
// MODULES //
var isObjectLike = require( '@stdlib/assert/is-object-like' );
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
var isArray = require( '@stdlib/assert/is-array' );
var copy = require( '@stdlib/utils/copy' );
var validate = require( './validate.js' );
var defaults = require... | JavaScript | 0.000001 | @@ -393,13 +393,12 @@
*%0A*
-Check
+Test
s wh
@@ -1049,57 +1049,191 @@
%7B
- 'a': %5B %7B 'b': %5B %7B 'c': 'd' %7D, %7B 'e': 'f' %7D %5D %7D %5D
+%0A* 'a': %5B%0A* %7B%0A* 'b': %5B%0A* %7B 'c': 'd' %7D,%0A* %7B 'e': 'f' %7D%0A* ... |
4685ecda40d8ef471490845f1559282339ef9f4d | Add use of linking object | src/database/DataTypes/InsuranceProvider.js | src/database/DataTypes/InsuranceProvider.js | import Realm from 'realm';
export class InsuranceProvider extends Realm.Object {}
InsuranceProvider.schema = {
name: 'InsuranceProvider',
primaryKey: 'id',
properties: {
id: 'string',
name: 'string',
comment: 'string?',
validityDays: 'int',
isActive: 'bool',
},
};
export default Insurance... | JavaScript | 0 | @@ -280,16 +280,143 @@
'bool',%0A
+ policies: %7B%0A type: 'linkingObjects',%0A objectType: 'InsurancePolicy',%0A property: 'insuranceProvider',%0A %7D,%0A
%7D,%0A%7D;%0A
|
511b8d0e2f6f00a41352fb1a92e092d148f4ad2a | Fix webpacker production config | config/webpack/production.js | config/webpack/production.js | // Note: You must restart bin/webpack-dev-server for changes to take effect
/* eslint global-require: 0 */
const webpack = require('webpack')
const merge = require('webpack-merge')
const CompressionPlugin = require('compression-webpack-plugin')
const sharedConfig = require('./shared.js')
module.exports = merge(shar... | JavaScript | 0.000001 | @@ -626,16 +626,17 @@
%7D%0A %7D)
+,
%0A new
|
0ba4d3dc4c4aecac1cb4f2f5b9e5f78500c298b4 | Fix IE/Safari 10 uglify ecma option | config/webpack/production.js | config/webpack/production.js | process.env.NODE_ENV = process.env.NODE_ENV || 'production'
const environment = require('./environment')
module.exports = environment.toWebpackConfig()
| JavaScript | 0.000001 | @@ -100,16 +100,249 @@
ment')%0A%0A
+// https://github.com/rails/webpacker/issues/1235%0Aenvironment.config.optimization.minimizer%5B0%5D.options.uglifyOptions.ecma = 5; // for IE 11 support%0Aenvironment.config.optimization.minimizer%5B0%5D.options.uglifyOptions.safari10 = true;%0A%0A
module.e
|
f63f494619aaf6ba4ae473fa955a282dbd29c217 | Fix Webpack Bundle Analyzer output for Webpacker (#3374) | config/webpack/production.js | config/webpack/production.js | // Note: You must restart bin/webpack-dev-server for changes to take effect
/* eslint global-require: 0 */
const webpack = require('webpack');
const merge = require('webpack-merge');
const CompressionPlugin = require('compression-webpack-plugin');
const sharedConfig = require('./shared.js');
const BundleAnalyzerPlugi... | JavaScript | 0 | @@ -1022,24 +1022,117 @@
zer: false,%0A
+ logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout%0A
%7D),%0A %5D,
|
16697c9a24f3fe89f1ceccaaf47153ff47b00cec | Fix error threshold in JsonES6 example. | examples/grammars/json/jsonES6.js | examples/grammars/json/jsonES6.js | "use strict";
var chevrotain = require("chevrotain");
// ----------------- lexer -----------------
var Token = chevrotain.Token;
var Lexer = chevrotain.Lexer;
var Parser = chevrotain.Parser;
// Unfortunately no support for static class properties in ES2015, only in ES2016...
// so the PATTERN/GROUP static props are d... | JavaScript | 0 | @@ -4461,16 +4461,17 @@
length %3E
+=
1 %7C%7C fu
@@ -4499,16 +4499,17 @@
length %3E
+=
1) %7B%0A
|
6d1b48be93527df268b42b17229736106b6f007b | Update Accelerometer sample based on accelerationIncludingGravity | samples/Accelerometer/js/main.js | samples/Accelerometer/js/main.js | /*
Copyright (c) 2013 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following disclaimer.
* Redist... | JavaScript | 0.000002 | @@ -1587,16 +1587,32 @@
leration
+IncludingGravity
;%0A
|
f56257446fe5f761f2e8dc6c5edeb74c7e551ee4 | remove position arg to point | src/handlers/point.js | src/handlers/point.js | 'use strict';
let extend = require('xtend');
let handlers = require('./handlers');
function Point(map, options, position) {
this.type = 'Point';
this.initialize(map, options);
this.position = position;
}
Point.prototype = extend(handlers, {
drawStart() {
this._onClick = this._onClick.bind(this);
thi... | JavaScript | 0.000004 | @@ -109,18 +109,8 @@
ions
-, position
) %7B%0A
@@ -169,36 +169,8 @@
s);%0A
- this.position = position;%0A
%7D%0A%0AP
|
63d5073d08db951cf8c988bdde8d627988307146 | Add flatlist prop pass through on simple table as well as animating rows with a fadein | src/widgets/SimpleTable.js | src/widgets/SimpleTable.js | /* eslint-disable react/no-unused-prop-types */
/* eslint-disable react/forbid-prop-types */
import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import { View, FlatList, TouchableOpacity } from 'react-native';
import Cell from './DataTable/Cell';
import { dataTableStyles, GREY } from '../glo... | JavaScript | 0 | @@ -177,15 +177,64 @@
ort
-%7B View,
+* as Animatable from 'react-native-animatable';%0Aimport %7B
Fla
@@ -1277,16 +1277,23 @@
f(%0A (
+%0A
%7B data,
@@ -1361,15 +1361,44 @@
tyle
- %7D, ref
+, ...flatListProps %7D,%0A ref%0A
) =%3E
@@ -3932,16 +3932,45 @@
latList%0A
+ %7B...flatList... |
d7303879fa3deef03e457b30c3d7631aa13dfdf1 | check for 504 status for gateway errors | static/compiler-service.js | static/compiler-service.js | // Copyright (c) 2017, Matt Godbolt
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of con... | JavaScript | 0 | @@ -4265,32 +4265,319 @@
break;%0A
+ case %22error%22:%0A if (xhr.status === 504)%0A %7B%0A error = %60Gateway timeout; returned statusCode: $%7Bxhr.statusCode%7D%60%0A br... |
d0c94ac37b0c4f148323462b6b36637784df308a | fix imageUrl | plugins/keys-list.user.js | plugins/keys-list.user.js | // ==UserScript==
// @id iitc-plugin-keys-list@isnot
// @name IITC plugin: Keys List
// @category Keys
// @version 0.3.20160818
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @author isnot
// @updateURL none
// @downloadURL none
// @d... | JavaScript | 0.003558 | @@ -3400,24 +3400,86 @@
%7B%0A
+console.log('==KsysList pd ' + data.title);%0A if (data.title)
name
-
= data.
@@ -3550,75 +3550,178 @@
-console.log('==KsysList pd ' + data + Object.keys(data).join(' '));
+if (imageUrl.indexOf('//') === 1) %7B%0A imageUrl = 'http:' + imageUrl;%0A %7... |
a3a83314c4115bc501a6c6e3c1cc2c511e85c01a | Fix mongodb missing candles (#2600) | plugins/mongodb/writer.js | plugins/mongodb/writer.js | var _ = require('lodash');
var config = require('../../core/util.js').getConfig();
var moment = require('moment');
var util = require('../../core/util.js');
var log = require(`${util.dirs().core}log`)
var handle = require('./handle');
var mongoUtil = require('./util');
var Store = function Store (done) {
... | JavaScript | 0 | @@ -1239,47 +1239,437 @@
%0D%0A
-this.historyCollection.insert(candles);
+// Fix error when whole batch would failed to insert if one or more duplicate candle%0D%0A this.historyCollection.insert(candles, %7B ordered: false %7D, e =%3E %7B%0D%0A if (e) %7B%0D%0A let msg = 'mongojs insert() ' + e.writeErrors.... |
3fdfb76797f1058d08560a2171ae511bf5dc02b6 | remove accidental global in operators.js | lib/ace/keyboard/vim/maps/operators.js | lib/ace/keyboard/vim/maps/operators.js | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... | JavaScript | 0.000007 | @@ -1722,14 +1722,8 @@
%7B%0A%0A%22
-never
use
@@ -2818,59 +2818,8 @@
) %7B%0A
- lastLineReached = true%0A
|
cca0f624f5be7b448f2536984746941d9c893ed2 | Fix test Editor path | test/specs/selector_manager/index.js | test/specs/selector_manager/index.js | var SelectorManager = require('selector_manager');
var Models = require('./model/SelectorModels');
var ClassTagView = require('./view/ClassTagView');
var ClassTagsView = require('./view/ClassTagsView');
var e2e = require('./e2e/ClassManager');
var Editor = require('editor/model/editor');
describe('SelectorManager', ()... | JavaScript | 0.000001 | @@ -272,17 +272,17 @@
r/model/
-e
+E
ditor');
|
a64572cbe7fb62a66fcc0268f16593e5e19fb31d | Bump http package version to 1.4.1. | packages/http/package.js | packages/http/package.js | Package.describe({
summary: "Make HTTP calls to remote servers",
version: '1.4.0'
});
Npm.depends({
request: "2.83.0"
});
Package.onUse(function (api) {
api.use([
'url',
// This package intentionally does not depend on ecmascript, so that
// ecmascript and its dependencies can depend on http witho... | JavaScript | 0 | @@ -76,17 +76,17 @@
n: '1.4.
-0
+1
'%0A%7D);%0A%0AN
|
32c5290e4d12243ebac97d352df2f1e58972e91e | Set loglevel for new webpack-dev-middleware | generators/app/templates/gulpfile/tasks/browsersync.js | generators/app/templates/gulpfile/tasks/browsersync.js | /**
* Browser Sync
* @description Refresh the Browser after File Change.
*/
import kc from '../../config.json'
import gulp from 'gulp'
import browserSync from 'browser-sync'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middlewa... | JavaScript | 0 | @@ -949,32 +949,60 @@
quiet: true,%0A
+ logLevel: 'warn',%0A
public
|
31d3125bafbb402933de123d0f9ed4194e51b46d | Fix for embark run crashing after console connects to it | lib/core/modules/coderunner/runCode.js | lib/core/modules/coderunner/runCode.js | const vm = require('vm');
class RunCode {
constructor({logger}) {
this.logger = logger;
this.context = Object.assign({}, {
global, console, exports, require, module, __filename, __dirname, process,
setTimeout, setInterval, clearTimeout, clearInterval
});
}
doEval(code) {
try {
... | JavaScript | 0 | @@ -776,130 +776,419 @@
-return %7BdefaultAccount: this.context.web3.eth.defaultAccount, providerUrl: this.context.web3.currentProvider.connection._u
+const Web3 = require('web3');%0A const provider = this.context.web3.currentProvider;%0A let providerUrl;%0A if(provider instanceof Web3.providers.HttpProv... |
bab46fd3bf2aeb38337955cf575a949cd5dc501d | use innerText instead of innerHTML | static/js/dateFormatter.js | static/js/dateFormatter.js | (function() {
var dateElems = document.getElementsByClassName("isoDateStr");
for(var i = 0; i < dateElems.length; i++) {
var date = new Date(dateElems[i].innerHTML);
dateElems[i].innerHTML = date.toLocaleString();
}
})();
| JavaScript | 0.000006 | @@ -156,20 +156,20 @@
i%5D.inner
-HTML
+Text
);%0A%09%09dat
@@ -187,12 +187,12 @@
nner
-HTML
+Text
= d
|
62bab604c8472a4c31acf7233545d6bd05a60ccf | change authentication method | script/vsts/lib/release-notes.js | script/vsts/lib/release-notes.js | const semver = require('semver');
const octokit = require('@octokit/rest')();
const changelog = require('pr-changelog');
const childProcess = require('child_process');
module.exports.getRelease = async function(releaseVersion, githubToken) {
if (githubToken) {
octokit.authenticate({
type: 'oauth',
to... | JavaScript | 0.000001 | @@ -289,37 +289,37 @@
(%7B%0A type: '
-oauth
+token
',%0A token:
|
9ec5cde8b0feb3ebf293b725302ba0deaefcc907 | Disable local echo for staging temporarily | static/js/feature_flags.js | static/js/feature_flags.js | var feature_flags = (function () {
var exports = {};
// Helpers
var special_24_hour_people= _.contains([],
page_params.email);
var zulip_mit_emails = [];
var is_zulip_mit_user = _.contains(zulip_mit_emails, page_params.email);
var iceland = page_params.domain === 'customer8.invalid';
var customer4_realms = [
... | JavaScript | 0 | @@ -1280,50 +1280,8 @@
eta:
-%0Aexports.local_echo = page_params.staging;
%0A%0Aex
@@ -1349,16 +1349,26 @@
l_echo =
+ false; //
page_pa
|
3b8bef18bae6bfe6c9a53a78445d63aee864a378 | Convert GoogleSitekitDashboardSplash to functional component. | assets/js/googlesitekit-dashboard-splash.js | assets/js/googlesitekit-dashboard-splash.js | /**
* DashboardSplash component.
*
* Site Kit by Google, Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0... | JavaScript | 0.00053 | @@ -734,19 +734,8 @@
rt %7B
- Component,
ren
@@ -1165,12 +1165,12 @@
;%0A%0Ac
-lass
+onst
Goo
@@ -1199,41 +1199,18 @@
ash
-extends Component %7B%0A%09render()
+= () =%3E
%7B%0A
-%09
%09ret
@@ -1215,17 +1215,16 @@
eturn (%0A
-%09
%09%09%3CFragm
@@ -1231,17 +1231,16 @@
ent%3E%0A%09%09%09
-%09
%3CNotific
@@... |
828fe1d0e5b2fe0a0aa31aa06fa19c79e96618f2 | Mark trackEvent as async. | assets/js/util/tracking/createTrackEvent.js | assets/js/util/tracking/createTrackEvent.js |
/**
* Internal dependencies
*/
import createDataLayerPush from './createDataLayerPush';
/**
* Returns a function which, when invoked tracks a single event.
*
* @param {Object} config Tracking configuration.
* @param {Object} dataLayerTarget Data layer parent object.
* @return {Function} Function that tracks an... | JavaScript | 0 | @@ -817,16 +817,22 @@
%09return
+async
function
@@ -1113,26 +1113,8 @@
turn
- Promise.resolve()
;%0A%09%09
|
93b6a45988ae4661961893f1d13bc6d8b711a90d | Remove sinon from test helper to prevent args being retained | test/bigtest/helpers/setup-application.js | test/bigtest/helpers/setup-application.js | import { beforeEach } from '@bigtest/mocha';
import { setupAppForTesting, visit, location } from '@bigtest/react';
import localforage from 'localforage';
import sinon from 'sinon';
// load these styles for our tests
import 'typeface-source-sans-pro';
import '@folio/stripes-components/lib/global.css';
import startMira... | JavaScript | 0 | @@ -150,35 +150,8 @@
ge';
-%0Aimport sinon from 'sinon';
%0A%0A//
@@ -502,16 +502,44 @@
nfig';%0A%0A
+const %7B assign %7D = Object;%0A%0A
export d
@@ -1558,57 +1558,87 @@
-sinon.stub(actions, 'setTranslations').callsFake(
+assign(actions, %7B%0A _setTranslations: null,%0A setTranslations:
... |
b67e1fb56f88678677e5fd2dbaefa310ff478494 | Update PartyChatMarketFilter filter list | scripts/PartyChatMarketFilter.js | scripts/PartyChatMarketFilter.js | // This script will filter out trading/buying messages from party chat.
//
// This was not the easiest feature to figure out but heres loosely the steps
// I would follow if I needed to reimplement it from scratch. I may have
// missed some steps because I didn't write as I reversed.
//
// Enter homestead or somewhere... | JavaScript | 0 | @@ -1733,24 +1733,106 @@
,%0A 's%3E',%0A
+ 'b:',%0A 's:',%0A 'b %3E',%0A 's %3E',%0A 'b.',%0A 's.',%0A 'b/',%0A 's/',%0A
't%3E',%0A
@@ -1871,16 +1871,28 @@
'l4%3E'
+,%0A 'trad'
%0A%5D;%0A%0A//
|
9779117e3c0ee51c9e78127b37ccbb661e4ec80d | Add a comment to explain the update_starred flag. | static/js/message_flags.js | static/js/message_flags.js | var message_flags = (function () {
var exports = {};
function send_flag_update(message, flag, op) {
channel.post({
url: '/json/messages/flags',
idempotent: true,
data: {
messages: JSON.stringify([message.id]),
flag: flag,
op: op,
},
});
}
exp... | JavaScript | 0 | @@ -1955,32 +1955,135 @@
'remove');%0A%7D;%0A%0A
+// This updates the state of the starred flag in local data%0A// structures, and triggers a UI rerender.%0A
exports.update_s
|
f47227f760d8bc217466346233099e00fbf4917a | Remove extra new line. | website/app/application/core/projects/project/files/file-edit-controller.js | website/app/application/core/projects/project/files/file-edit-controller.js | Application.Controllers.controller("FilesEditController",
["$scope", "$stateParams", "projectFiles", "User", "mcfile", "pubsub", "tags", "mcapi", "$modal", "toastr", "$state",
FilesEditController]);
function FilesEditController($scope, $stateParams, projectFiles, User, mcfile, pubsub, tags, mcapi, $modal, t... | JavaScript | 0.000002 | @@ -3583,17 +3583,16 @@
nit();%0A%0A
-%0A
////
|
d7f146ed4ff42d32e89e35eda69d1aae48dd66b7 | Standardize on 'e', not 'event', within hotkey.js. | zephyr/static/js/hotkey.js | zephyr/static/js/hotkey.js | var hotkeys = (function () {
var exports = {};
var directional_hotkeys = {
40: rows.next_visible, // down arrow
106: rows.next_visible, // 'j'
38: rows.prev_visible, // up arrow
107: rows.prev_visible, // 'k'
36: rows.first_visible, // Home
35: rows.last_visible // End
};
var narrow... | JavaScript | 0.000006 | @@ -5244,20 +5244,16 @@
_press(e
-vent
) %7B%0A
@@ -5286,20 +5286,16 @@
andler(e
-vent
);%0A i
@@ -5354,20 +5354,16 @@
e
-vent
.prevent
@@ -5405,36 +5405,32 @@
down(function (e
-vent
) %7B%0A // Restr
@@ -5472,20 +5472,16 @@
(48 %3E e
-vent
.which %7C
@@ -5488,20 +5488,16 @@
%7C 90 %3C e
-v... |
8c838776407a04024e0db9afff1cff31efc4398b | Solve SDK Ids | vendor/assets/javascripts/facebook_integration.js | vendor/assets/javascripts/facebook_integration.js | window.fbAsyncInit = function() {
var appID = !!location.href.match("localhost").length ? "834921849925828" : "834500276634652"
FB.init({
appId : appID,
xfbml : true,
version : 'v2.3'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) ... | JavaScript | 0.999926 | @@ -37,97 +37,192 @@
var
-appID = !!location.href.match(%22localhost%22).length ? %22834921849925828%22 : %22834500276634652%22
+PRODUCTION_ID = %22834500276634652%22,%0A DEVELOPMENT_ID = %22834921849925828%22%0A appID = (location.href.match(%22localhost%22) === null) ? PRODUCTION_ID : DEVELOPM... |
2209f877b0ff29f860b11a83123300e6ea4cd1b1 | Add dot property support to hasProperty | lib/matchers/IsObjectWithProperties.js | lib/matchers/IsObjectWithProperties.js | 'use strict';
const _ = require('lodash');
const IsObject = require('./IsObject');
const asMatcher = require('../utils/asMatcher');
const defined = require('./IsDefined').defined;
const promiseAgnostic = require('./promiseAgnostic');
function IsObjectWithProperties(properties) {
const propertyMatchers = _.mapValues(... | JavaScript | 0 | @@ -1919,20 +1919,30 @@
nction (
-name
+propertyOrPath
, valueO
@@ -1971,35 +1971,208 @@
pert
-ies = %7B%7D;%0A%09properties%5Bname%5D
+yPath = _.isArray(propertyOrPath) ? propertyOrPath : propertyOrPath.split('.');%0A%09const propertyToNestedMatcher = (matcher, prop) =%3E new IsObjectWithProperties(%7B%5Bprop%5D: m... |
7e666acbf783055203d5186c363379f0ec50a98d | Fix importing lasagna from the tests | exercises/concept/lasagna/lasagna.spec.js | exercises/concept/lasagna/lasagna.spec.js | import {
EXPECTED_MINUTES_IN_OVEN,
remainingMinutesInOven,
preparationTimeInMinutes,
totalTimeInMinutes,
} from './basics';
describe('basics', () => {
it('EXPECTED_MINUTES_IN_OVEN', () => {
expect(EXPECTED_MINUTES_IN_OVEN).toBe(40);
});
describe('remainingMinutesInOven', () => {
[
[25, 15]... | JavaScript | 0.000002 | @@ -116,22 +116,23 @@
from './
-basics
+lasagna
';%0A%0Adesc
@@ -141,14 +141,15 @@
be('
-basics
+lasagna
', (
|
a9c957077ba9a54ce824219824250efb5ab6afb5 | fix VSCode example | stories/Examples/VSCode.js | stories/Examples/VSCode.js | import React from 'react';
import Highlight from 'react-highlight';
import { LayoutProvider, Section, Container, Box, Hidden } from '../../src';
const Example = `<LayoutProvider debug={{ enabled: true }} gutter={20}>
<Section>
<Container direction="vertical" vAlign="end" height="100vh">
<Box xs="100%">Head... | JavaScript | 0.000034 | @@ -262,21 +262,8 @@
cal%22
- vAlign=%22end%22
hei
@@ -364,22 +364,8 @@
grow
- height=%22auto%22
%3E%0A
@@ -409,10 +409,10 @@
Box
+x
s
-m
=%22gr
@@ -476,38 +476,8 @@
00%25%22
- style=%7B%7B marginTop: 'auto' %7D%7D
%3EFoo
@@ -1185,38 +1185,8 @@
00%25%22
- style=%7B%7B marginTop: 'auto' %7D%7D
%3EFoo
|
4a59233d28229feb704d6ad132766aefe609b0b7 | Remove translation in story. | stories/notices.stories.js | stories/notices.stories.js | /**
* Notices Stories.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | JavaScript | 0.000002 | @@ -717,81 +717,8 @@
';%0A%0A
-/**%0A * WordPress dependencies%0A */%0Aimport %7B __ %7D from '@wordpress/i18n';%0A%0A
/**%0A
@@ -1110,15 +1110,8 @@
%3E%0A%09%09
-%7B __( '
Lear
@@ -1125,33 +1125,8 @@
here
-.', 'google-site-kit' ) %7D
%0A%09%3C/
|
4bcb763f2372a20782e038da8fa1d87400c0c2b7 | disable notification | src/main/resources/frontend/web/js/stats.js | src/main/resources/frontend/web/js/stats.js | var globalCounter = 0;
var globalTimestamp = 0;
$(function() {
var seriesData = [ [], [], [] ];
seriesData.forEach(function(series) {
series.push( {x: moment().unix(), y: NaN} );
});
listenStats(seriesData);
listenFirehose();
var palette = new Rickshaw.Color.Palette( { scheme: 'colorwheel' } );
var grap... | JavaScript | 0.000001 | @@ -2333,32 +2333,34 @@
function(e) %7B%0A%09%09
+//
Alertify.log.suc
@@ -2503,32 +2503,34 @@
CLOSED) %7B%0A%09%09
+//
Alertify.log.err
@@ -3869,16 +3869,18 @@
(e) %7B%0A%09%09
+//
Alertify
@@ -4036,16 +4036,18 @@
%7B%0A%09%09
+//
Alertify
|
c2a0c411e04195f4309245064e7ec06b082dd2f7 | Rename initialize() definitionElement argument. | Implementation/WebTier/WebContent/JavaScript/Source/Desktop/DesktopFooter.js | Implementation/WebTier/WebContent/JavaScript/Source/Desktop/DesktopFooter.js | /*
Name: DocumentFooter
Description: Represents the body component of a SmartDocument.
Requires:
Provides:
- DocumentFooter
Part of: ProcessPuzzle Browser UI, Back-end agnostic, desktop like, highly configurable, browser font-end, based on MochaUI and MooTools.
http://www.processpuzzle.com
Author... | JavaScript | 0 | @@ -1324,23 +1324,17 @@
nction(
-headerD
+d
efinitio
@@ -1386,15 +1386,9 @@
nt(
-headerD
+d
efin
|
8274617ae4b309e3a66cdc03670cfd327b2d9c74 | Document softwareVersionResultParser middleware. | lib/junction/middleware/softwareVersionResultParser.js | lib/junction/middleware/softwareVersionResultParser.js | module.exports = function softwareVersionResultParser(options) {
options = options || {};
return function softwareVersionResultParser(stanza, next) {
if (!stanza.is('iq')) { return next(); }
if (stanza.type != 'result') { return next(); }
var query = stanza.getChild('query', 'jabber:iq:version');
... | JavaScript | 0 | @@ -1,95 +1,707 @@
-module.exports = function softwareVersionResultParser(options) %7B%0A options = options %7C%7C %7B%7D;
+/**%0A * Parse information about the software application associated with an XMPP%0A * entity.%0A *%0A * This middleware parses software application information contained within %0A * IQ-result s... |
e95a076b99162b5fe1a8fc001c8195a6a64cd800 | comment cleanup | Alloy/template/component.js | Alloy/template/component.js | var Alloy = require('alloy'),
Backbone = Alloy.Backbone,
_ = Alloy._,
A$ = Alloy.A;
function Controller() {
require('alloy/controllers/<%= parentController %>').call(this);
var $ = this;
var exports = {};
<%= exportsCode %>
<%= viewCode %>
// make all IDed in $.__views available right on the $ in a
// c... | JavaScript | 0 | @@ -264,16 +264,25 @@
ll IDed
+elements
in $.__v
@@ -378,22 +378,20 @@
leme
-t
nts
-%0A%09//
will
+%0A%09//
be
|
2b5334ec19f371f5b29c80dcf5b4194fa2038221 | remove curl | public/firebase-messaging-sw.js | public/firebase-messaging-sw.js | importScripts('https://www.gstatic.com/firebasejs/4.0.0/firebase-app.js')
importScripts('https://www.gstatic.com/firebasejs/4.0.0/firebase-messaging.js')
// Initialize Firebase
var config = {
apiKey: "AIzaSyCQMhU6yxjLCsanlSnUHtO4N6I6oCGlTI4",
authDomain: "spaceship-test.firebaseapp.com",
databaseURL: "https://sp... | JavaScript | 0.000103 | @@ -537,522 +537,4 @@
();%0A
-%0A%0A%0A//curl -X POST --header %22Authorization: key=AAAAaI2ZfFw:APA91bGqDh70rNfC8Gtwdxhut5sKhG7td0okEetwnhjWtzvTSC4jJIOReD2nEXkpT4OqMIciJptTxk7Du8MJmvrcW7jTKhiAh7XJYq2kBG2wIQOiwUerx014rpk7nt1JknAS-jdpUJxB%22 --header %22Content-Type: application/json%22 https://fcm.googleapis.com/fcm/s... |
e03bbab9339f6d38d70ef6461cd34afc37e6d517 | add dates to testcourse create | test/services/helpers/services/courses.js | test/services/helpers/services/courses.js | let createdCourseIds = [];
const createTestCourse = (app, opt) => ({
// required fields for base group
name = 'testCourse',
schoolId = opt.schoolId,
userIds = [],
classIds = [],
teacherIds = [],
ltiToolIds = [],
}) => app.service('courses').create({
// required fields for user
name,
schoolId,
userIds,
clas... | JavaScript | 0 | @@ -213,16 +213,40 @@
s = %5B%5D,%0A
+%09startDate,%0A%09untilDate,%0A
%7D) =%3E ap
@@ -369,16 +369,40 @@
oolIds,%0A
+%09startDate,%0A%09untilDate,%0A
%7D).then(
|
48a27b99eda9e69fe2223bd002752990a5f72168 | Replace current_path image with staticimage | containers/GameplayScreen.js | containers/GameplayScreen.js | import React, { Component } from 'react';
import { Text, Image, View } from 'react-native';
import styles from './styles/GameplayScreenStyle';
import ClickableImage from '../components/ClickableImage';
import clickableStyles from '../components/styles/ClickableImageStyle';
import { StackNagivator } from 'react-navigati... | JavaScript | 0.999999 | @@ -567,24 +567,142 @@
nimatable';%0A
+import StaticImage from '../components/StaticImage';%0Aimport staticStyles from '../components/styles/StaticImageStyle'%0A
import Dropd
@@ -745,16 +745,16 @@
alert';%0A
-
%0A%0Aexport
@@ -2102,39 +2102,50 @@
w%3E%0A %3C
-Image s
+StaticImage imageS
ource=%7B%7Buri... |
e116329eed514a93cfd81365d7e5890990d2701b | Make FunctionMatcher more robust | src/model/scenario/state/FunctionMatcher.js | src/model/scenario/state/FunctionMatcher.js | /**@class A matcher that tests its element against a user-provided function.
*@extends matchers.AbstractMatcher
*@memberOf matchers
*/
var FunctionMatcher = new Class( /** @lends matchers.FunctionMatcher# */ {
Extends: require('./AbstractMatcher'),
type: 'function',
onElementFound: function(element) {
this.compa... | JavaScript | 0.000037 | @@ -395,34 +395,105 @@
sult
- = this.expected(element);
+;%0A%0A%09%09try %7B%0A%09%09%09evaluationResult = this.expected(element);%0A%09%09%7D catch (err) %7B%0A%09%09%09this.fail(err);%0A%09%09%7D
%0A%0A%09%09
@@ -720,16 +720,32 @@
succeed(
+evaluationResult
);%0A%09%09%7D%0A%09
|
676d0ff03a24bc5c13737259b40d5174950bd814 | Refresh the grid after drawing a hexagon grid | src/niclabs/insight/map/grid/square-grid.js | src/niclabs/insight/map/grid/square-grid.js | niclabs.insight.map.grid.SquareGrid = (function() {
/**
* Construct a square grid from the data provided.
*
* The grid divides the visible map into square tiles of the same size and draws only those
* tiles that have elements below them. If a weight is provided for the the data points
* each square is pai... | JavaScript | 0.000001 | @@ -2483,24 +2483,65 @@
()));%0A%09%09%7D;%0A%0A
+%09%09// Refresh the grid%0A%09%09grid.refresh();%0A%0A
retu
|
386fac2429f38ab8e1f5231cb1d86aee1ca25319 | Use integers when positioning on the target canvas | src/ol/renderer/canvas/canvasmaprenderer.js | src/ol/renderer/canvas/canvasmaprenderer.js | // FIXME offset panning
goog.provide('ol.renderer.canvas.Map');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.style');
goog.require('goog.vec.Mat4');
goog.require('ol.Size');
goog.require('ol.css');
goog.require('ol.layer.Image');
goog.require('ol.layer.T... | JavaScript | 0 | @@ -4024,23 +4024,71 @@
+Math.round(
dx
+)
,
+Math.round(
dy
+)
,
+Math.round(
dw
+)
,
+Math.round(
dh)
+)
;%0A
|
097c5218228bde8d569f000bc7886bf2cd14603f | update master discount validation | src/managers/inventory/master/discount-manager.js | src/managers/inventory/master/discount-manager.js | "use strict";
const moduleId = "M-DISC";
const moment = require('moment');
var ObjectId = require("mongodb").ObjectId;
require("mongodb-toolkit");
var BateeqModels = require("bateeq-models");
var map = BateeqModels.map;
var generateCode = require('../../../utils/code-generator');
var BaseManager = require('module-toolk... | JavaScript | 0 | @@ -3410,30 +3410,16 @@
ngth %3E 0
- && !valid._id
) %7B%0A
@@ -3682,17 +3682,16 @@
ount &&
-!
valid._i
@@ -3692,16 +3692,28 @@
lid._id
+!= item._id
%7C%7C today
@@ -3745,16 +3745,28 @@
alid._id
+ != item._id
) %7B%0A
|
626dfa111631af6bf4f6bfd521336145146a6381 | optimize when checkMonitoring gets called | src/mist/io/static/js/app/controllers/machines.js | src/mist/io/static/js/app/controllers/machines.js | define('app/controllers/machines', [
'app/models/machine',
'ember',
'jquery'
],
/**
* Machines controller
*
* @returns Class
*/
function(Machine) {
return Ember.ArrayController.extend({
backend: null,
content: null,
init: function(... | JavaScript | 0 | @@ -894,226 +894,8 @@
%7B%0A%0A
- data.forEach(function(item)%7B%0A var found = false;%0A%0A log(%22item id: %22 + item.id);%0A%0A that.content.forEach(function(machine)%7B%0A
@@ -960,32 +960,24 @@
defined') %7B%0A
... |
53fff9d1d0a287f2d1d7234b41d25c6e76c72ad3 | replace getEventEls with getSingleEl when should be one el | tests/automated/legacy/displayEventEnd.js | tests/automated/legacy/displayEventEnd.js | import { getEventEls, getEventElTimeEl } from '../event-render/EventRenderUtils'
describe('displayEventEnd', function() {
pushOptions({
defaultDate: '2014-06-13',
timezone: 'UTC',
timeFormat: { hour: 'numeric', minute: '2-digit' }
})
describeOptions('defaultView', {
'when in month view': 'month... | JavaScript | 0.004246 | @@ -5,24 +5,24 @@
rt %7B get
-Event
+Single
El
-s
, getEve
@@ -865,32 +865,32 @@
ElTimeEl(get
-Event
+Single
El
-s
()).length).
@@ -1355,32 +1355,32 @@
ElTimeEl(get
-Event
+Single
El
-s
())).toHaveT
@@ -1894,32 +1894,32 @@
ElTimeEl(get
-Event
+Single
El
-s
())).toHaveT
@@ -2497,24 +2497,24 @@
meEl(get
-Eve... |
a8b465c8de818df193ad35e53c31da7f8de3cf1f | fix label enum PO | src/purchasing/enum/purchase-order-status-enum.js | src/purchasing/enum/purchase-order-status-enum.js | 'use strict';
module.exports =
{
'VOID': {
'name': 'VOID',
'value': 0,
'label': 'Dibatalkan'
},
'CREATED': {
'name': 'CREATED',
'value': 1,
'label': 'PO Internal belum diorder'
},
'PROCESSING': {
... | JavaScript | 0.000009 | @@ -671,32 +671,40 @@
ang sudah datang
+ Parsial
'%0A %7D,%0A
@@ -950,32 +950,40 @@
ah diterima Unit
+ Parsial
'%0A %7D,%0A
|
cd4580efe75dddfb3c7dae90232d0f1b0dea780e | add JS behavior that resizes the app's area to fill the screen if smaller. | app/themes/default/js/interactions.js | app/themes/default/js/interactions.js | $(window).ready(function(){
//main menu flyouts or mbmenu releacment
//$( '#MenuView .parent, #HeaderLinksView .parent, #ShortcutsMenu .parent' ).hover(
$( '.nav > .parent' ).hover(
function(){
if ( $(this).find('ul') ){
$(this).find('ul').stop(true, true).fadeIn(100);
}
},
function(){
if ( $(t... | JavaScript | 0 | @@ -401,12 +401,614 @@
%7D%0A%09);%0A%09%0A
+%09/*Resizes the app to fill the browser's window case smaller'*/%0A%09var viewportHeight = $(window).height();%0A%09var wrapperDivHeight = $('body %3E div').outerHeight(true)%0A%09var recentlyViewedHeight = $('#RecentlyViewedView').outerHeight(true);%0A%09var appChromeHeig... |
c48b3366efe04e5aaa3cee971e346c4444dee701 | Remove 'id' key before sending data to validation | app/assets/javascripts/controllers/dialog_editor/dialog_editor_controller.js | app/assets/javascripts/controllers/dialog_editor/dialog_editor_controller.js | ManageIQ.angular.app.controller('dialogEditorController', ['$window', '$http', 'API', 'miqService', 'DialogEditor', 'DialogValidation', 'dialogIdAction', function($window, $http, API, miqService, DialogEditor, DialogValidation, dialogIdAction) {
var vm = this;
vm.cache = {};
vm.$http = $http;
vm.saveDialogDet... | JavaScript | 0.000004 | @@ -4347,16 +4347,22 @@
eldList'
+, 'id'
%5D;%0A v
|
51d221fca2b80b201e0ec88d2f101684616747e2 | fix for self-service payslip display | main/app/client/templates/selfpayslips/selfpayslips.js | main/app/client/templates/selfpayslips/selfpayslips.js | /*****************************************************************************/
/* selfpayslips: Event Handlers */
/*****************************************************************************/
Template.selfpayslips.events({
'click #get-employee-payslip': (e, tmpl) => {
let paymentPeriodMonth = $('[name="... | JavaScript | 0 | @@ -780,24 +780,27 @@
+ //
console.log
@@ -866,16 +866,251 @@
ta)%7D%60)%0A%0A
+ if(processedPayslipData) %7B%0A processedPayslipData.period = %7B%0A month: paymentPeriodMonth,%0A year: paymentPeriodYear%0A ... |
7cdb65f8e1ec97931e3b77229914f059aec30efc | Set price to 1 cent if type is set to rental before all variants are given a price. | server/methods/rentalProducts.js | server/methods/rentalProducts.js | function checkAvailability(reservedDates, requestedDates) {
for (let date of requestedDates) {
let min = 0;
let max = reservedDates.length - 1;
while (min <= max) {
let guess = Math.floor((min + max) / 2);
if (+reservedDates[guess] === +date) {
return false;
}
// Else
... | JavaScript | 0 | @@ -1216,24 +1216,125 @@
ventory') %7B%0A
+ if (!variant.price %7C%7C variant.price === 0) %7B%0A variant.price = 0.01;%0A %7D%0A
_.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.