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 |
|---|---|---|---|---|---|---|---|
c154c174dcd1391603d369ac51492da05dc40564 | Fix #196 | app/js/arethusa.core/sidepanel.js | app/js/arethusa.core/sidepanel.js | "use strict";
angular.module('arethusa.core').service('sidepanel', [
'configurator',
function(configurator) {
var self = this;
this.folded = configurator.configurationFor('main').foldSidepanel;
function get(id) {
return angular.element(document.getElementById(id));
}
var main = get('ma... | JavaScript | 0 | @@ -639,24 +639,1426 @@
function() %7B
+%0A%0A // This very weird looking line countering a spacing bug%0A // in Foundation.%0A // When the sidepanel is placed in a columns row together%0A // with a main-body no explicit width is assigned to it at%0A // first. The main-body gets a width, the s... |
63ea5d310ebe04e957481f8998d7b29650893e7b | Fix broken parsing of sparkline API response. | app/components/ridership-sparklines.js | app/components/ridership-sparklines.js | import Ember from 'ember';
let loadSparkline = function(selector, sparkDataset) {
var sparkMargins = {
top: 10,
bottom: 10,
left: 50,
right: 50
}
var containerHeight = 100;
var containerWidth = 300;
var sparkHeight = containerHeight - sparkMargins.top - sparkMargins.bottom;
var sparkWidt... | JavaScript | 0 | @@ -477,18 +477,16 @@
rmat.iso
-()
;%0A%0A var
@@ -855,24 +855,143 @@
ight, 0%5D);%0A%0A
+ var impactScale = d3.scale.linear()%0A .domain(%5B0, 55000%5D)%0A .range(%5B1, 10%5D)%0A%0A
var sparkY
@@ -1251,17 +1251,29 @@
return
-d
+Math.round(d)
;%0A
@@ -1504,32 ... |
3ef3fb7ef0b5adf09cab2cc299d5825de53d28bc | Add style to DropNewPinButton | app/containers/container_dropNewPin.js | app/containers/container_dropNewPin.js | //this should add ownprops from parent map
import React, { Component } from 'react-native';
import getLocationToSave from '../actions/action_dropNewPin.js';
import Button from 'react-native-button';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { userData } from '../lib/db/d... | JavaScript | 0 | @@ -61,16 +61,40 @@
omponent
+, StyleSheet, Dimensions
%7D from
@@ -109,16 +109,16 @@
ative';%0A
-
import g
@@ -345,16 +345,283 @@
b.js';%0A%0A
+const styles = StyleSheet.create(%7B%0A DropNewPinButton: %7B%0A position: 'absolute',%0A left: Dimensions.get('window').width / 2 - 90,%0A bottom: 0,%0A w... |
7fae533609f6233f9bf71690d7619ec393909537 | Load locally based on localStorage value | injectChrome.js | injectChrome.js | (function() {
window.stop();
document.documentElement.innerHTML = null;
const IS_LOCAL = false,
URL_REMOTE = "https://rawgit.com/ultratype/UltraTypeBot/master/OUT/OUT.js",
URL_OUT = IS_LOCAL ? chrome.extension.getURL('OUT/OUT.js') : URL_REMOTE,
SCRIPT_OUT = "<script src='" + ... | JavaScript | 0.000001 | @@ -103,13 +103,40 @@
L =
-false
+!!(localStorage%5B%22ultratypedev%22%5D)
,%0D%0A
|
425ce800b72a66f3860583ed569c88916cbb558d | Test design_docs over both idb + http adapters | tests/test.design_docs.js | tests/test.design_docs.js | module("design_docs", {
setup : function () {
this.name = 'idb://test_suite_db';
}
});
var doc = {
_id: '_design/foo',
views: {
names: {
map: 'function(doc) { if (doc.name) { emit(null, doc.name); } }'
}
},
filters: {
even: 'function(doc) { return doc.integer % 2 === 0; }'
}
};
asy... | JavaScript | 0 | @@ -1,8 +1,53 @@
+%5B'idb-1', 'http-1'%5D.map(function(adapter) %7B%0A%0A
module(%22
@@ -57,17 +57,29 @@
ign_docs
-%22
+: %22 + adapter
, %7B%0A se
@@ -118,29 +118,35 @@
e =
-'idb://test_suite_db'
+generateAdapterUrl(adapter)
;%0A
@@ -1463,28 +1463,32 @@
%7D);%0A %7D);%0A %7D);%0A%7D);%0A
+%0A%7D);
|
aa3665c92f59a7d7aaaf3a9a15acbd18aa3bcdd1 | Fix scrolling issue | app/scripts/components/devices.js | app/scripts/components/devices.js | (function(){
var devicesComponent = function(){
var componentElement = $('.devices-list');
var detect = function(){
return componentElement.length > 0;
};
var eneable = function(){
attachEvents();
};
var init = function(){
detect() && eneable();
};
var markSelected = function(){
compo... | JavaScript | 0.000001 | @@ -519,24 +519,68 @@
function()%7B
+%0A%09%09%09var offset = $('section.work').offset();
%0A%0A%09%09%09/**%0A%09%09%09
@@ -1113,53 +1113,18 @@
%09%09%09%09
-var
offset
-= $('section.work').offset();%0A%09%09%09%09
+&&
$('.
|
a25a070335cc510dbf365432e9a424922e18a281 | Allow capture events | app/scripts/services/dom-event.js | app/scripts/services/dom-event.js | import pubSub from './pub-sub';
/**
* Supported event handlers.
*
* @type {object}
*/
const customEventHandlers = {};
/**
* Get event handler.
*
* @param {string} eventName - Name of the event.
* @return {function} Either a custom or generic event handler.
*/
const getEventHandler = (eventName) => {
if (cu... | JavaScript | 0 | @@ -1196,24 +1196,44 @@
, newElement
+, useCapture = false
) =%3E %7B%0A if
@@ -1440,32 +1440,37 @@
ddEventListener(
+%0A
event, getEventH
@@ -1482,16 +1482,31 @@
r(event)
+, useCapture%0A
);%0A%7D;%0A%0A/
|
b15d5428c51b8bcd66adef3e3ee1e0f85f5ba69d | Check if element has a style attribute defined before reading/changing it | src/browser-sandbox/pruneNonCriticalSelectors.js | src/browser-sandbox/pruneNonCriticalSelectors.js | // executed inside sandboxed browser environment,
// no access to scrope outside of function
export default function pruneNonCriticalSelectors ({
selectors,
maxElementsToCheckPerSelector
}) {
console.log('debug: pruneNonCriticalSelectors init')
var h = window.innerHeight
// cache whether elements are above f... | JavaScript | 0 | @@ -912,24 +912,211 @@
in content)%0A
+%0A // but do that only if elements have their style attribute defined%0A // (ref: https://github.com/pocketjoso/penthouse/issues/342)%0A if (typeof element.style !== 'undefined') %7B%0A
var orig
@@ -1158,24 +1158,26 @@
r %7C%7C ''%0A
+
element.styl
@@ -11... |
43b5d9f5c334c167875ffe61e9cf12a1cec04ffe | Decrease maxInstances to 1 | integration/config/sauce.conf.js | integration/config/sauce.conf.js | module.exports = {
maxInstances: 4,
capabilities: [
{
maxInstances: 4,
browserName: 'chrome',
platform: 'OS X 10.11',
version: 'latest',
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
build: process.env.TRAVIS_BUILD_NUMBER
}
],
mochaOpts: {
ui: 'bdd',
com... | JavaScript | 0.999369 | @@ -71,25 +71,25 @@
xInstances:
-4
+1
,%0A brow
|
c55f9fe08fa33e28f4a82de700658984e4ccd824 | Update geolocation provider to follow new API | app/javascript/app/providers/geolocation-provider/geolocation-provider.js | app/javascript/app/providers/geolocation-provider/geolocation-provider.js | import { PureComponent } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import actions from './geolocation-provider-actions';
import reducers, { initialState } from './geolocation-provider-reducers';
class GeolocationProvider extends PureComponent {
componentDidMount() {
... | JavaScript | 0 | @@ -237,16 +237,70 @@
cers';%0A%0A
+const %7B IPSTACK_GEOLOCATION_API_KEY %7D = process.env;%0A%0A
class Ge
@@ -701,37 +701,89 @@
er:
-'
+%60
http
-s
://
-freegeoip.net/json/'
+api.ipstack.com/check?access_key=$%7BIPSTACK_GEOLOCATION_API_KEY%7D&format=1%60
%0A%7D;%0A
|
73e71a0e00daeefe56d250ccfbe3048177280444 | Format eslinrc | ui/.eslintrc.js | ui/.eslintrc.js | module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: true
}
},
settings: {
react: {
version: "detect"
}
},
extends: [
"plugin:react/re... | JavaScript | 0.000003 | @@ -24,17 +24,17 @@
parser:
-%22
+'
@typescr
@@ -50,17 +50,17 @@
t/parser
-%22
+'
,%0A pa
@@ -125,16 +125,16 @@
pe:
-%22
+'
module
-%22
+'
,%0A
@@ -252,16 +252,16 @@
on:
-%22
+'
detect
-%22
+'
%0A
@@ -289,33 +289,33 @@
ends: %5B%0A
-%22
+'
plugin:react/rec
@@ -314,33 +314,33 @@
eact/reco... |
2a7440b067d3d31d2b26b0ebb4bfae7bada458e6 | Update html/components/toggle.js | html/components/toggle.js | html/components/toggle.js | import 'dom-slider';
const { slideToggle } = window.domSlider
import getElements from '../utilities/getElements';
/**
* Toggle JS
* If `data-sprk-toggle="container"`
* elements are available in the DOM
* we listen for clicks on the trigger and
* call slideToggle to slide the content up or down.
* To suppor... | JavaScript | 0 | @@ -54,16 +54,17 @@
omSlider
+;
%0Aimport
|
e47ee3b2e9a6ced385c20750402e58e9cc8e7086 | Fix 'Cannot read property hasOwnProperty of null' error (typeof null is an object ;) | src/deep-resource/lib/Resource/LambdaResponse.js | src/deep-resource/lib/Resource/LambdaResponse.js | /**
* Created by AlexanderC on 6/10/15.
*/
'use strict';
import {Response} from './Response';
/**
* Response object
*/
export class LambdaResponse extends Response {
/**
* @param {*} args
*/
constructor(...args) {
super(...args);
// assure calling the very first!
this._fillStatusCode();
... | JavaScript | 0 | @@ -1616,23 +1616,16 @@
if (
-typeof
this._ra
@@ -1634,29 +1634,10 @@
ata
-=== 'object' &&%0A
+&&
thi
|
1f593142530d723c2b73562ee936186feb1b5d36 | Fix missing var | ui/lazyimage.js | ui/lazyimage.js | /**
* @fileoverview Lazy background image loader.
*/
var classes = require('../utils/classes');
var objects = require('../utils/objects');
var scrolldelegator = require('../scrolldelegator');
var ui = require('../ui');
var instances = [];
var LazyImageLoader = function(selector, attributes, loadedClassNames) {
... | JavaScript | 0.99926 | @@ -2042,16 +2042,41 @@
query.%0A
+ var imageWidth = null;%0A
var si
|
39121b59bfe8003bc5a5f68b28dd11d975d0ffcb | add _id property to passport user | middleware/passport.js | middleware/passport.js | var bcrypt = require('bcrypt-nodejs');
var passport = require('passport');
var passportLocalStrategy = require('passport-local').Strategy;
var passportGoogleStrategy = require('passport-google-oauth2').Strategy;
var User = require('../models/User.js');
var config = require('../lib/config.js');
var checkWhitelist = re... | JavaScript | 0.000001 | @@ -820,32 +820,63 @@
id: user._id,%0A
+ _id: user._id,%0A
@@ -1565,32 +1565,71 @@
id: user._id,%0A
+ _id: user._id,%0A
@@ -3920,32 +3920,64 @@
data.user._id,%0A
+ _id: data.user._id,%0A
emai
|
69bdc6b20ab4387a97b939df55cc1923184d0205 | Correct selector for CVV field | js/alvcustom.js | js/alvcustom.js | /**
* @TODO "Donate now" instead of Contribute.
* @TODO "Join Now"
*/
(function($) {
var alvCustom = {
init: function() {
$('form#Main.CRM_Contribute_Form_Contribution_Main').on('submit', function(ev) {
// On contribute form submit, do a JS pre-check for empty
// fields and simulate a fai... | JavaScript | 0 | @@ -426,17 +426,17 @@
d, input
-.
+#
cvv2', t
@@ -543,118 +543,8 @@
');%0A
- // $(this).css(%7BbackgroundColor: '#fcc'%7D);%0A // $(this).css(%7Bborder: '4px solid red'%7D);%0A
|
f011d4bf188ac33dd7fcb8c5d87f70456117e303 | Convert sortable tables to Sortable.js | backend/app/assets/javascripts/spree/backend/components/sortable_table.js | backend/app/assets/javascripts/spree/backend/components/sortable_table.js | Spree.ready(function() {
// Fix sortable helper
var fixHelper = function(e, ui) {
ui.children().each(function() {
$(this).width($(this).width());
});
return ui;
};
var td_count = $(this).find('tbody tr:first-child td').length
$('table.sortable tbody').sortable({
handle: '.hand... | JavaScript | 0.999998 | @@ -1,12 +1,48 @@
+//= require solidus_admin/Sortable%0A%0A
Spree.ready(
@@ -56,22 +56,19 @@
n() %7B%0A
-// Fix
+var
sortabl
@@ -72,77 +72,90 @@
able
- helper%0A var fixHelper = function(e, ui) %7B%0A ui.children().each(
+_tables = document.querySelectorAll('table.sortable');%0A%0A _.each(sortable_tables,... |
4cbca09d3f2cc93b83197f0179e90d95fdbca3a7 | Update runner.js (#1235) | template/test/e2e/runner.js | template/test/e2e/runner.js | // 1. start the dev server using production config
process.env.NODE_ENV = 'testing'
const webpack = require('webpack')
const DevServer = require('webpack-dev-server')
const webpackConfig = require('../../build/webpack.prod.conf')
const devConfigPromise = require('../../build/webpack.dev.conf')
let server
devConfigP... | JavaScript | 0 | @@ -747,18 +747,16 @@
.conf.js
-on
under %22
|
77dcd5cfe1450e14b04f2d0d323e8e09475448b4 | Fix root pathPieces | modules/node/NodeUI.js | modules/node/NodeUI.js | import React, {Component} from 'react'
import keycode from 'keycode'
import NodeChildren from 'node/NodeChildren'
import {isFocusable} from 'lib/node-helpers'
import getLoopingArrayItem from 'lib/getLoopingArrayItem'
import {withIO} from 'react-io'
import filter from 'lodash/filter'
import last from 'lodash/last'
impo... | JavaScript | 0.000006 | @@ -737,16 +737,32 @@
lit('/')
+.filter(Boolean)
,%0A %7D)),
|
1b97d55928f44e79e1ff68dda458f721c1cc4311 | add support for pubcid user opt-out (#3071) | modules/pubCommonId.js | modules/pubCommonId.js | /**
* This modules adds Publisher Common ID support to prebid.js. It's a simple numeric id
* stored in the page's domain. When the module is included, an id is generated if needed,
* persisted as a cookie, and automatically appended to all the bidRequest as bid.crumbs.pubcid.
*/
import * as utils from 'src/utils'... | JavaScript | 0 | @@ -3220,24 +3220,66 @@
nabled()) %7B%0A
+ if (!getCookie('_pubcid_optout')) %7B%0A
$$PREBID
@@ -3325,16 +3325,22 @@
dHook);%0A
+ %7D%0A
%7D%0A%7D%0A%0Ai
|
09e077ab7fa06db4f47d0f1bb37fb7497e002366 | Add send method test | test/boxcar-notification.js | test/boxcar-notification.js | import assert from 'assert';
import BoxcarNotification from '../build.js';
describe('constructor', () => {
it('should get credential', (done) => {
let credential = 'TEST';
let bn = new BoxcarNotification(credential);
assert.strictEqual(bn.userCredentials, credential);
done();
})... | JavaScript | 0 | @@ -69,16 +69,51 @@
d.js';%0A%0A
+let fail = () =%3E %7Bassert.ok(0);%7D;%0A%0A
describe
@@ -738,28 +738,1468 @@
done();%0A %7D);%0A%7D);%0A
+%0Adescribe('send()', () =%3E %7B%0A let options;%0A let bn;%0A let notAuthorizedResponse = '%7B%22Response%22:%22Not Authorized%22%7D';%0A beforeEach((... |
3ced8cb0c1331ef62606eee0dcb77c900b5cbfd9 | Add an offset to bundle size checking | test/check_size_snapshot.js | test/check_size_snapshot.js | var path = require("path");
var fs = require("fs-extra");
var colors = require("colors");
var gzipSize = require("gzip-size");
var denodeify = require("pdenodeify");
var readFile = denodeify(fs.readFile);
var writeFile = denodeify(fs.writeFile);
/**
* Validates bundle size snapshot or creates it if missing
* @param... | JavaScript | 0 | @@ -79,24 +79,61 @@
(%22colors%22);%0A
+var range = require(%22lodash/range%22);%0A
var gzipSize
@@ -195,16 +195,59 @@
deify%22);
+%0Avar includes = require(%22lodash/includes%22);
%0A%0Avar re
@@ -321,16 +321,166 @@
File);%0A%0A
+// the bundle size might change depending on the platformat used to create it,%0A// ... |
21c074b296c6976b9a50fe24fd74ef8bfe96f7a3 | Fix tests on node < 4 | test/commands/hangup/get.js | test/commands/hangup/get.js | #!/usr/bin/env node
setTimeout(() => {}, 20000) | JavaScript | 0.000001 | @@ -28,14 +28,18 @@
out(
-() =%3E
+function()
%7B%7D,
|
7aa619f11a36259ba4a457c57db1e4dcc815f4af | Add test for connectable agendas | test/dispatcher/schedule.js | test/dispatcher/schedule.js | import createDispatcher from '../../src/createDispatcher'
import { Observable } from 'rxjs'
function isPromise(obj) {
return Promise.prototype.isPrototypeOf(obj)
}
function AdderStore(state = 0, action) {
switch (action.type) {
case 'ADD': {
return state + 1
break
}
default: return state
... | JavaScript | 0 | @@ -928,32 +928,436 @@
%0A %7D)%0A %7D)%0A%0A
+ it('accepts connectable observables properly', () =%3E %7B%0A const dispatcher = createDispatcher()%0A%0A const obs = Observable%0A .interval(200)%0A .take(3)%0A .map(() =%3E add)%0A .share()%0A%0A dispatcher.schedule(obs)%0A dispat... |
31decad4df66e89eb10b120e551a70c361599731 | Add functional test for opening a chat window. | test/functional/app_test.js | test/functional/app_test.js | /* global describe, it, before, after */
/* jshint expr:true */
var presence = require("../../presence"),
app = presence.app;
var expect = require("chai").expect;
var serverPort = 3000;
var webdriver = require('selenium-webdriver'),
By = webdriver.By;
var driver, driver2;
describe("browser tests", function(... | JavaScript | 0 | @@ -3891,32 +3891,846 @@
%0A %7D);%0A %7D);%0A%0A
+ it(%22should open a chat window when clicking a nick%22, function(done) %7B%0A // Sign in user 1%0A driver.switchTo().frame(%22//#social-sidebar-browser%22);%0A driver.navigate().refresh();%0A driver.findElement(By.name(%22nick%22)).sendKeys(%22bob%2... |
4a40a660e8e667226fd02ecd792c917ae12ec0d2 | fix timeout in output test | output_test.js | output_test.js | /*global describe it before after =*/
"use client";
require(["lib/architect/architect", "lib/chai/chai", "/vfs-root"],
function (architect, chai, baseProc) {
var expect = chai.expect;
architect.resolveConfig([
{
packagePath : "plugins/c9.core/c9",
workspaceId : "johndo... | JavaScript | 0.000132 | @@ -5462,95 +5462,397 @@
-setTimeout(function()%7B%0A expect.html(tabs.focussedTab.editor.
+var ace = tabs.focussedTab.editor.ace;%0A ace.session.term.once('afterWrite', function()%7B%0A ace.renderer.on('afterRender', function()%7B%0A ... |
d40ee2111a321d8896cb4d3aa0c9ef08c0ccf589 | Improve string check | chunkString.js | chunkString.js | /**
* Split a String up into smaller strings of a give size (eg. 'ABCDEF' -> [AB,CD,EF])
* @param {String} [str=''] String to split into smaller parts
* @param {Number} [size=2] The length of each chunk
* @return {Array} String split up in smaller string of the given size
*/
export default function chunkString(s... | JavaScript | 0.000863 | @@ -319,13 +319,8 @@
(str
- = ''
, si
@@ -329,16 +329,35 @@
= 2) %7B%0A
+ str = str %7C%7C '';%0A
return
|
6c2e0243902105c4b1a83513c59435e8c0460db9 | Remove custon KSS parameters from description | lib/modules/kss-parser.js | lib/modules/kss-parser.js |
'use strict';
var kss = require('kss'),
path = require('path'),
Q = require('q'),
gutil = require('gulp-util'),
kssSplitter = require('./kss-splitter'),
kssAdditionalParams = require('./kss-additional-params'),
_ = require('lodash'),
sanitizeHtml = require('sanitize-html');
// Parses kss.KssSection to J... | JavaScript | 0 | @@ -1293,24 +1293,34 @@
ring) %7B%0A
+%0A
-return
+var sanitized =
sanitiz
@@ -1372,24 +1372,144 @@
utes: %5B%5D%7D);%0A
+ // HACK: Remove extra parameters from descriotion%0A sanitized = sanitized.split(/sg%5C-%5B%5E:%5D*:/)%5B0%5D;%0A return sanitized;%0A
%7D%0A%0Afunction
|
30fc20fa0b1781401dfa49a0d32617fe9d26f6f0 | add readme field to when posting package | api/models/PackageVersion.js | api/models/PackageVersion.js | /**
* PackageVersion.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
var Promise = require('bluebird');
var _ = require('lodash');
module.exports = {
attributes... | JavaScript | 0 | @@ -3663,16 +3663,59 @@
'cran';%0A
+ var readmemd = description.readme;%0A
@@ -3866,16 +3866,67 @@
iption);
+%0A packageVersion.fields.readmemd = readmemd;
%0A%0A
|
bcc5c8893b04d44fd9f38098a869271e057c3d6f | add vertex count check | lib/validator/validatedocs-worker.js | lib/validator/validatedocs-worker.js | var kinks = require('turf-kinks');
process.on('message', function(data) {
process.send(runChecks(data.doc, data.zoom));
});
function runChecks(doc, zoom) {
var message = '';
if (!doc._id) {
message = 'doc has no _id';
}
else if (!doc._text) {
message = 'doc has no _text on _id:' + doc._id;
... | JavaScript | 0 | @@ -941,16 +941,902 @@
on')) %7B%0A
+ %09// check for Polygons or Multipolygons with too many vertices%0A %09if(doc._geometry.type === 'Polygon')%7B%0A %09%09var ringCount = doc._geometry.coordinates.length;%0A %09%09for (var i = 0; i %3C ringCount; i++) %7B%0A %09%09%09if(doc._geometry.coordinates%5Bi%... |
41523d66045d1430a805f24e221beedc33c8c94c | Remove dead function #42 | api/auth/views.js | api/auth/views.js | /* jshint node: true */
/* jshint esversion: 6 */
'use strict';
const bcrypt = require('bcrypt');
const jwt = require('jsonwebtoken');
const jwtConfig = require('../../config/jwt');
const models = require('../../models');
const getUserByEmail = function (email) {
return models.User.findOne({
where: {
em... | JavaScript | 0.000046 | @@ -585,93 +585,8 @@
%7D;%0A%0A
-const createUserInstance = function (email, password, first_name, last_name) %7B%0A%0A%7D;%0A%0A%0A
/**
|
59311d3ca345de56e4311b3c700c12b8d1e98fda | remove debug output | framework/dataset/collection.js | framework/dataset/collection.js | var Collection = require('ampersand-collection');
var ClientDataset = require('./client');
var ServerDataset = require('./server');
var GenericDataset = require('../dataset');
module.exports = Collection.extend({
mainIndex: 'id',
model: function (attrs, options) {
if (attrs.datasetType === 'client') {
co... | JavaScript | 0.000005 | @@ -309,52 +309,8 @@
) %7B%0A
- console.log('Adding client dataset');%0A
@@ -406,52 +406,8 @@
) %7B%0A
- console.log('Adding server dataset');%0A
|
88f84e65a167380f6da19d15a21083e214a80bec | fix lint | packages/@uppy/provider-views/src/CloseWrapper.js | packages/@uppy/provider-views/src/CloseWrapper.js | const { h, Component } = require('preact')
module.exports = class CloseWrapper extends Component {
componentWillUnmount () {
this.props.onUnmount()
}
render () {
return this.props.children[0]
}
}
| JavaScript | 0.000013 | @@ -4,11 +4,8 @@
st %7B
- h,
Com
|
8715990345b60c97a63b3f23d7669133a40343cd | fix obscure SMTP email bug | server/components/email/smtp/index.js | server/components/email/smtp/index.js | var nodemailer = require('nodemailer');
var config = require('../../../config/environment');
// create reusable transporter object using the default SMTP transport
var transportString = `smtps://${encodeURIComponent(config.smtpLogin)}:${encodeURIComponent(config.smtpPassword)}@${config.smtpServer}`;
var transporter = ... | JavaScript | 0.000005 | @@ -359,16 +359,267 @@
ring);%0A%0A
+transporter.verify(function(error, success) %7B%0A if (error) %7B%0A console.log(%22SMTP Error:%22, error);%0A console.log(%22SMTP not working, exiting process...%22);%0A process.exit(-1);%0A %7D else %7B%0A console.log('SMTP Access Verified');%0A %7D%0A%7... |
0e3984a712c5500a9f1eeb39eba1f9fe79bcb7e0 | Update filter_list.js | frappe/public/js/frappe/ui/filters/filter_list.js | frappe/public/js/frappe/ui/filters/filter_list.js | frappe.ui.FilterGroup = class {
constructor(opts) {
$.extend(this, opts);
this.wrapper = this.parent;
this.filters = [];
this.make();
window.fltr = this;
}
make() {
this.wrapper.append(this.get_container_template());
this.set_events();
}
toggle_clear_filter() {
let clear_filter_button = this.wrap... | JavaScript | 0.000001 | @@ -1668,24 +1668,185 @@
ieldname) %7B%0A
+%09%09// Tags attached to the document are maintained seperately in Tag Link%0A%09%09// and is not the part of doctype meta therefore tag fieldname validation is ignored.%0A
%09%09if (doctyp
|
208562386f1f6f836339b0a24ecabcfd4ee30ba7 | フォーマット文字列を直接指定するように修正 Fix #4 | js/objects/ReportDate.js | js/objects/ReportDate.js | function ReportDate ($obj) {
this.element = $obj;
}
ReportDate.prototype.setByDate = function(dateObject) {
var dateString = dateObject.format('%Y-%m-%d');
this.element.val(dateString);
};
ReportDate.prototype.draw = function(out) {
var dateString = this.element.val();
dateString = dateString.replace(/-/g, '/');... | JavaScript | 0.000001 | @@ -240,25 +240,30 @@
var date
-String =
+ = new MyDate(
this.ele
@@ -272,19 +272,24 @@
nt.val()
+)
;%0A%09
+var
dateStri
@@ -301,31 +301,25 @@
date
-String.replace(/-/g, '/
+.format('%25Y/%25m/%25d
');%0A
|
28e743946cf50116bcc532e6de77f9f22ff47898 | remove old & unused code | js/services/_services.js | js/services/_services.js | 'use strict';
angular.module('chronontology.services', [])
.factory('d3', function() {
return window.d3;
})
.factory('ChronontologyInterceptor', function () {
var externalResourcePattern = /^https?:\/\//i;
return {
request: function (config) {
if(externalResourcePattern.test(config.url)) {
config.heade... | JavaScript | 0.000006 | @@ -58,57 +58,94 @@
%5D)%0A%0A
-.factory('d3', function() %7B%0A%09return window.d3;%0A%7D)
+// requests to external systems should not contain the%0A// chronontology authorization%0A
%0A.fa
@@ -420,1910 +420,8 @@
%0A%09%7D%0A
-%7D)%0A.factory('periodUtils', function() %7B%0A%09var periodUtils = %7B%0A%0A%09%09build... |
0cf73b0ff756ea63832fb7a4be789e625083e0d8 | change transitionTo to transitionToRoute | app/controllers/books/new.js | app/controllers/books/new.js | export default Ember.ObjectController.extend({
actions: {
submit: function() {
this.get('content').save().then(function() {
console.log("save successful");
this.transitionTo('books');
}.bind(this), function(error) {
console.log(error);
});
},
cancel: f... | JavaScript | 0 | @@ -200,16 +200,21 @@
sitionTo
+Route
('books'
|
05e43f361b75eba082bdf8c58659a02abf8f56a2 | change removeClass() to toggleClass(); | jquery-plugin.marquee-lottery.js | jquery-plugin.marquee-lottery.js | /**
* Created by CoderLiu on 2017/1/18.
*/
(function( $ ) {
var methods = {
init : function( options ) {
var $this = $(this);
var roundTotal= 4,maxTime=1500,minTime=100,reduceStepTime=200,addTimeStep=50,desIndex= 0;
var defaultSettings = {
ele:null,
... | JavaScript | 0.000002 | @@ -2991,19 +2991,22 @@
Index%5D).
-add
+toggle
Class(se
@@ -3146,37 +3146,37 @@
r%5BbeforeIndex%5D).
-remov
+toggl
eClass(settings.
|
e79e3c1eb29e30adf0f8b754513fac2674b1debf | refactor html element creation logic into separate methods | frontend/src/index.js | frontend/src/index.js | import "core-js/stable";
import "regenerator-runtime/runtime";
import parse from "./parse";
import SchemaRenderer from "./render";
const API_ENDPOINT = "http://localhost:8000/dependencies";
// entry-point
main();
function main() {
const visualizeButton = document.getElementById("myBtn");
const uriTextBox = docum... | JavaScript | 0.013775 | @@ -2579,24 +2579,67 @@
schema =%3E %7B%0A
+ // initially, every schema is selected%0A
schemaSe
@@ -2664,24 +2664,24 @@
ema, true);%0A
-
%7D);%0A%0A con
@@ -2957,242 +2957,29 @@
t =
-document.createElement(%22input%22);%0A input.setAttribute(%22type%22, %22checkbox%22);%0A input.setAttribute(%22na... |
0a4a58fad160376fb1b0e1904a913f165a241b5d | Fix assertion target | tests/unit/blueprints/addon-import-test.js | tests/unit/blueprints/addon-import-test.js | 'use strict';
var Blueprint = require('../../../lib/models/blueprint');
var expect = require('chai').expect;
describe('blueprint - addon-import', function(){
describe('fileMapTokens', function(){
it('generates proper tokens with *-addon blueprints', function(){
var blueprint = Blueprint.lookup('addon-i... | JavaScript | 0 | @@ -1419,32 +1419,36 @@
ct(fileMapTokens
+Pods
.__name__(option
@@ -1492,32 +1492,36 @@
ct(fileMapTokens
+Pods
.__path__(option
@@ -1563,32 +1563,36 @@
ct(fileMapTokens
+Pods
.__root__(option
@@ -1608,30 +1608,24 @@
ual('app');%0A
-
%0A %7D);%0A %7D
|
de07ab56369662d9dbd7e56b284e85e09d4b508d | Enable audio | js/SignalingService.initiator.js | js/SignalingService.initiator.js | 'use strict';
// https://codelabs.developers.google.com/codelabs/webrtc-web/#6
var api = "";
$("#start").click(function(){
var napi = document.getElementById("api").value;
if (napi != "/") {
api = "http://" + napi;
}
new Promise(function(resolve, reject){
navigator.webkitGetUserMedia(... | JavaScript | 0.000003 | @@ -348,12 +348,11 @@
dio:
-fals
+tru
e%0A
|
ebf8fce64b4d854517c570379662f037074bd23a | Use `call` instead of `bind` on render option. | lib/segmented-controls.js | lib/segmented-controls.js | import React from 'react-native';
import RadioButtons from './'
import assign from 'object-assign';
const {
Text,
TouchableWithoutFeedback,
View,
} = React;
class SegmentedControls extends React.Component {
render(){
const config = this.getConfig();
return (
<RadioButtons {...this.props}
... | JavaScript | 0 | @@ -2546,19 +2546,19 @@
ion.
-bind
+call
(this
-)(
+,
opti
|
b7f1242ebd80ed64022ac865d98df5f3f3ea70b4 | change missing data text to n/a on pdfs | server/services/utils/pdfFormatter.js | server/services/utils/pdfFormatter.js | const moment = require('moment')
const romanise = require('romannumerals')
const { getIn, isEmpty, mergeWithRight } = require('../../utils/functionalHelpers')
const pdfData = require('../config/pdfData')
const config = require('../../config')
const DEFAULT_PLACEHOLDER = '(DATA MISSING)'
module.exports = { formatPdfDa... | JavaScript | 0.000482 | @@ -270,22 +270,11 @@
= '
-(DATA MISSING)
+N/A
'%0A%0Am
|
819a0cd663f5715082dc2b611b5db13ce51531c4 | Remove invalid _trigger argument | js/widgets/filterable.js | js/widgets/filterable.js | //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
//>>description: Renders the children of an element filterable via a callback and a textinput
//>>label: Filterable
//>>group: Widgets
//>>css.structure: ../css/structure/jquery.mobile.filterable.css
define( [
"jquery",
"../jquery.mobile.widget"
], functi... | JavaScript | 0.000001 | @@ -1801,30 +1801,20 @@
ilter%22,
-%22beforefilter%22
+null
, %7B inpu
|
e06cf77bbb189cf676891e7d4d1accd1e0fe1787 | Update BuildAndroidApp to not depend upon this.X being the global X | js/foam/build/BuildAndroidApp.js | js/foam/build/BuildAndroidApp.js | /**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0.000011 | @@ -3713,16 +3713,23 @@
+this.X.
arequire
@@ -4371,16 +4371,23 @@
eq.push(
+this.X.
arequire
|
0e62f6314fc6539a652ffd910d37ea65993bc046 | fix position if too big | app/js/plugins/lemmapopup.js | app/js/plugins/lemmapopup.js |
var LemmaPopupPlugin = function(app) {
$(
'<style>\
.selected-lemma {\
background: #33f;\
color: #fff;\
}\
.lemma-word {\
display: block;\
font-weight: bold;\
margin: 0 0 10px 0;\
}\
.lemma-strongs {\
font-weight: normal;\
}\
.lemma-morphology {\
font-style: italic;\
}\
.lemma-outline ... | JavaScript | 0.000019 | @@ -4730,24 +4730,63 @@
);%0A%09%09%09%09%09%09%09%0A
+%09%09%09%09%09%09%09lemmaPopup.position(l);%0A%09%09%09%09%09%09%09%0A
%09%09%09%09%09%09%7D, %0A%09%09
|
9b0045eaea0b63b9d0cb706af6ec6e548ee66072 | use 'hasFails' and 'hasRetries' in helpers from utils | lib/static/hbs/helpers.js | lib/static/hbs/helpers.js | /* global Handlebars */
function hasFails(node) {
return walk(node, hasFails, node.result && (node.result.error || node.result.fail));
}
function hasRetries(node) {
return walk(node, hasRetries, node.retries && node.retries.length);
}
function walk(node, cb, condition) {
return ['children', 'browsers'].r... | JavaScript | 0.000001 | @@ -22,468 +22,57 @@
*/%0A%0A
-function hasFails(node) %7B%0A return walk(node, hasFails, node.result && (node.result.error %7C%7C node.result.fail));%0A%7D%0A%0Afunction hasRetries(node) %7B%0A return walk(node, hasRetries, node.retries && node.retries.length);%0A%7D%0A%0Afunction walk(node, cb, condition) %7B%... |
09ee149abd983616a8f4b73b5e40bc3d90a3807a | Remove translateY when adding to laptop | app/main/about/nav-shrink.js | app/main/about/nav-shrink.js | /** @module AboutNavigationAnimation */
import NavigationBase from '../navigation/anim-base';
/**
* A class implementing scale behavior for the About page
* @extends NavigationAnimationBase
*/
export default class AboutNavigationAnimation extends NavigationBase {
constructor() {
super();
this.hash = 'abo... | JavaScript | 0.000001 | @@ -1485,24 +1485,172 @@
progress);%0A
+ // Store as attributes for use later%0A this.elem.infoWrapper.dataset.translate = translate;%0A this.elem.infoWrapper.dataset.scale = scale;%0A%0A
this.ele
@@ -1886,32 +1886,125 @@
putInLaptop();%0A%0A
+ this.elem.infoWrapper.style.transform = %60scale($%7Bth... |
40cf9313387955c75e00c1b4f653fb0e63e28759 | Remove unused options from swc-loader (#29907) | packages/next/build/swc/index.js | packages/next/build/swc/index.js | const { loadBinding } = require('@node-rs/helper')
const path = require('path')
/**
* __dirname means load native addon from current dir
* 'next-swc' is the name of native addon
* the second arguments was decided by `napi.name` field in `package.json`
* the third arguments was decided by `name` field in `package.j... | JavaScript | 0.000034 | @@ -814,235 +814,8 @@
%7D%0A%0A
- const %7B plugin, ...newOptions %7D = options%0A%0A if (plugin) %7B%0A const m =%0A typeof src === 'string'%0A ? await this.parse(src, options?.jsc?.parser)%0A : src%0A return this.transform(plugin(m), newOptions)%0A %7D%0A%0A
re
@@ -839,16 +839,16 @@
... |
072eab1e5b6e21264a1564b23ac9a28faa0cec04 | use default variant for cancel | shared/src/components/surety-guard.js | shared/src/components/surety-guard.js | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
import { Popover, OverlayTrigger, Button } from 'react-bootstrap';
import { defer } from 'lodash';
const Controls = styled.div`
border-top: 1px solid $openstax-neutral-light;
dis... | JavaScript | 0 | @@ -1862,16 +1862,34 @@
%3CButton
+ variant=%22default%22
ref=%22po
|
557d1a93d6fd7bdd446c1fcddb64e2584e3a4d3a | add click event handlers to close when item selected | packages/components/bolt-dropdown/src/dropdown.js | packages/components/bolt-dropdown/src/dropdown.js | import {
define,
props,
css,
hasNativeShadowDomSupport,
BoltComponent,
} from '@bolt/core';
import handorgel from 'handorgel';
import styles from './dropdown.scss';
import heightUtils from '@bolt/global/styles/07-utilities/_utilities-height.scss';
@define
export class BoltDropdown extends BoltComponent() ... | JavaScript | 0 | @@ -1539,16 +1539,359 @@
%0A %7D);
+%0A%0A this.addEventListener('activateLink', this.close); // Close dropdown automatically when an inner %3Cbolt-navlink%3E component is clicked on%0A%0A document.addEventListener('click', function (e) %7B%0A if (elem.contains(e.target)) %7B%0A console.log('clic... |
4cb711a257310a4ade932f93f5d651d1d5824129 | change the returned error back so as not to require a new VMAPI to be deployed | lib/tasks/machine_load.js | lib/tasks/machine_load.js | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2014, Joyent, Inc.
*/
var Task = require('../task_agent/task');
var vmadm = require('vma... | JavaScript | 0 | @@ -925,21 +925,18 @@
.fatal('
-vmadm
+VM
.load er
|
9fd774ec898348b9f52d760a5a55a8f95de893f3 | Remove 'debugger' commands. | public/js/events.js | public/js/events.js | var applyEventListeners = function(userId, access_token) {
$( ".playlist-grid-cell img" ).off('mouseenter');
$( ".playlist-grid-cell" ).off('click');
$('#merge-button').off('click');
$( ".playlist-grid-cell img" ).mouseenter(
function() {
var title = $(this).data('name');
var tracks = $(... | JavaScript | 0.000523 | @@ -2815,20 +2815,8 @@
%09%09%09%0A
-%09%09%09debugger%0A
%09%09%09/
@@ -3146,24 +3146,8 @@
s);%0A
-%09%09%09%0A%09%09%09debugger;
%0A%09%09%09
|
346b74d52c84150a02d68a36267c1cde4531f326 | revert GetDimensions() unit test change for IE11 | test/javascript/util/box.js | test/javascript/util/box.js | describe('Foundation box', function () {
var $html;
afterEach(function () {
if ($html) {
$html.remove();
}
});
describe('GetDimensions()', function () {
it('should be unable to get dimensions for window', function(done) {
try {
Foundation.Box.GetDimensions($("window"));
... | JavaScript | 0 | @@ -823,35 +823,24 @@
%22));%0A%0A
-Math.round(
dims.width).
@@ -837,17 +837,16 @@
ms.width
-)
.should.
@@ -860,80 +860,15 @@
00);
- // Math.round fix for IE 11 (probably because of rem)%0A Math.round(
+%0A
dims
@@ -874,17 +874,16 @@
s.height
-)
.should.
@@ -897,62 +897,8 @@
00);
- // Math.rou... |
c4f203d48961a2911c2d69eab1a44cd5aaec521a | Fix sponsorship page content | app/pages/SponsorshipPage.js | app/pages/SponsorshipPage.js |
import React, { Component } from "react";
import {Button} from "react-bootstrap";
class SponsorshipPage extends Component {
static displayName = "SponsorshipPage";
render() {
return (
<div className="sponsorship">
<h3>Commandites</h3>
<blockquote>Les commandites sont de l’argent recueil... | JavaScript | 0.000003 | @@ -2381,17 +2381,18 @@
a suite
-%C3%A0
+de
cette d
|
69f6bea2c26d60c4c15ac96a674fa0865632d8fc | Remove unnecessary check for `NativeArray` | packages/ember-runtime/lib/system/native_array.js | packages/ember-runtime/lib/system/native_array.js | /**
@module ember
@submodule ember-runtime
*/
import Ember from "ember-metal/core"; // Ember.EXTEND_PROTOTYPES
import { get } from "ember-metal/property_get";
import {
_replace as replace,
forEach
} from "ember-metal/enumerable_utils";
import { Mixin } from "ember-metal/mixin";
import { indexOf, lastIndexOf } fro... | JavaScript | 0 | @@ -3067,35 +3067,8 @@
);%0A%0A
-if (ignore.length %3E 0) %7B%0A
Nati
@@ -3124,18 +3124,16 @@
ignore);
-%0A%7D
%0A%0A/**%0A
|
1060f7034057f088c1b6154bc5cea5fa6638b909 | Set defaultOptions of notification | client/main.js | client/main.js | if (Meteor.isClient) {
Meteor.startup(function() {
});
} | JavaScript | 0.000001 | @@ -45,13 +45,87 @@
tion
+
() %7B%0A
+ _.extend(Notifications.defaultOptions, %7B%0A timeout: 3500%0A %7D);%0A
%7D)
|
f40326824430f4e9d7f20bd26abc1fc07496e7d7 | update stub signature, https://github.com/phetsims/phet-io/issues/1370 | js/requirejs-plugins/ifphetio.js | js/requirejs-plugins/ifphetio.js | // Copyright 2016, University of Colorado Boulder
/**
* This plugin conditionally loads another module based on the brand. If the brand is phet-io, it loads the module
* otherwise it returns a no-op function, so that parametric IO types will not exception out even in "phet" brand.
*
* The module works for require... | JavaScript | 0 | @@ -1685,33 +1685,63 @@
on(
-ignore1, ignore2
+supertype, typeName
, sub
-T
+t
ype
+, methods, staticProperties
) %7B
@@ -1751,17 +1751,17 @@
turn sub
-T
+t
ype;%7D;%0A
@@ -2899,34 +2899,66 @@
on(
-ignore1, ignore2, subtype)
+supertype, typeName, subtype, methods, staticProperties )
%7B re
@@ -2969,16 +296... |
f55d33c7354f51f1556ee0047adb6e5a03417295 | add test for simple OR filter | test/models/postgis-test.js | test/models/postgis-test.js | var should = require('should');
before(function (done) {
key = 'test:repo:file';
repoData = require('../fixtures/snow2.geojson');
snowData = require('../fixtures/snow.geojson');
PostGIS = require('../../lib/PostGIS.js');
conn = {
data_dir: '/usr/local/koop/',
db: {
postgis: {
conn: "po... | JavaScript | 0 | @@ -5208,24 +5208,921 @@
%7D);%0A%0A
+ %7D);%0A %7D);%0A%0A it('should query data with OR filters', function(done)%7B%0A var gKey = 'test:german:data3';%0A var data = require('../fixtures/germany.json');%0A%0A PostGIS.insert( gKey, %7B name: 'german-data', geomType: 'Point'... |
c7005b9b0d1aa461c528672eeec8bc2bc6ae7954 | fix fault in previous commit | client/main.js | client/main.js |
/* GENERAL */
// change background image depending on time
// 1. night, 2. in daytime
var currentTime = new Date().getHours();
var isNight = currentTime < 7 || currentTime >= 19;
var image = !isNight ? "/img/background_night.jpg" : "/img/background.jpg";
Session.set('backgroundImage', image);
UI.body.rendered = fu... | JavaScript | 0.000001 | @@ -188,17 +188,16 @@
image =
-!
isNight
|
d836d0bd5ea1ef94fc9c2915f85d47621ad14635 | fix reducer to merge multiple filters | app/reducers/queryReducer.js | app/reducers/queryReducer.js | import * as ActionTypes from '../actions'
import { updateObject, removeByKey, updateByKey } from './reducerUtilities'
const initialState = {}
const keyMap = {
[ActionTypes.SUM_BY]: 'sumBy',
[ActionTypes.GROUP_BY]: 'groupBy',
[ActionTypes.CHANGE_DATEBY]: 'dateBy',
[ActionTypes.SELECT_COLUMN]: 'selectedColumn'
... | JavaScript | 0.000001 | @@ -110,16 +110,49 @@
ilities'
+%0Aimport merge from 'lodash/merge'
%0A%0Aconst
@@ -1141,37 +1141,34 @@
%7B%0A return
-updateObject(
+merge(%7B%7D,
state, %7B%0A
|
50ba90d5547b383d00e152d212b386aa4568adfe | Use updated hyphenated names | src/project/SidebarView.js | src/project/SidebarView.js | /*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... | JavaScript | 0.000001 | @@ -2687,17 +2687,18 @@
triangle
-V
+-v
isible%22)
@@ -3278,17 +3278,18 @@
.sidebar
-S
+-s
election
|
a2a33b2f57a987ee3537b4274117735aa94781c9 | Add back "Add a list" when add list is done. | client/main.js | client/main.js | Meteor.subscribe('cards');
Meteor.subscribe('lists');
function initialSortable() {
$('.board').sortable({
placeholder: 'ui-state-highlight',
helper: 'clone',
update: function(event, ui) {
console.log('.board update');
var $this = $(this);
var lists = $thi... | JavaScript | 0 | @@ -3944,16 +3944,21 @@
_wrapper
+.html
('%3Ch2%3E%3Ca
|
af7dc42c5d245f30b3886680cc46dd2a169a3a03 | Update anti_spam.js | node_modules/discord-anti-spam/anti_spam.js | node_modules/discord-anti-spam/anti_spam.js | const authors = [];
var warned = [];
var banned = [];
var messagelog = [];
/**
* Add simple spam protection to your discord server.
* @param {Bot} bot - The discord.js CLient/bot
* @param {object} options - Optional (Custom configuarion options)
* @return {[type]} [description]
*/
const Discord = requir... | JavaScript | 0.000004 | @@ -1149,12 +1149,11 @@
r(0x
+f
00
-ff
00)%0A
@@ -2487,24 +2487,740 @@
ole.error);%0A
+ msg.author.sendMessage(%7Bembed: %7B%0Acolor: 0xff0000,%0Atitle: %22User Automuted Warning%22,%0Adescription: (%60%5CnYou have been auto muted!%5Cn%60),%0Afields: %5B%7B%0A name : %22Username:%22,%0A value : %60$%7Bms... |
e9272f65ffc67ce8211abd4196cb42a0875cbb9f | simpler task sequence | lib/utilities/sequence.js | lib/utilities/sequence.js | var Promise = require('rsvp').Promise;
function _sequence(task, next) {
var nextTask;
return task().then(function(){
if (nextTask = next()) {
return _sequence(nextTask, next);
}
});
}
module.exports = function sequence(tasks) {
function nextTask() {
return tasks.shift();
}
if (tasks.le... | JavaScript | 0.999999 | @@ -33,16 +33,33 @@
omise;%0A%0A
+module.exports =
function
@@ -59,17 +59,16 @@
unction
-_
sequence
@@ -72,22 +72,17 @@
nce(task
-, next
+s
) %7B%0A va
@@ -87,337 +87,223 @@
var
-nextTask;%0A%0A return task().then(function()%7B%0A if (nextTask = next()) %7B%0A return _sequence(nextTask, next
+length... |
898ee6b6676b569037f6b2b54557b43ff7a43d40 | add app version to sentry reports | client/main.js | client/main.js | import Vue from 'vue'
import Raven from 'raven-js'
import RavenVue from 'raven-js/plugins/vue'
import I18n from 'vue-i18n'
import Cookie from 'vue-cookie'
import Analytics from 'vue-analytics'
import Paginate from 'vue-paginate'
import InfiniteScroll from 'vue-infinite-scroll'
import { sync } from 'vuex-router-sync'
im... | JavaScript | 0 | @@ -311,16 +311,53 @@
r-sync'%0A
+import %7B version %7D from '../package'%0A
import A
@@ -710,20 +710,45 @@
/164720'
-)%0A
+, %7B%0A release: version%0A %7D)
.addPlug
@@ -764,19 +764,16 @@
ue, Vue)
-%0A
.install
|
306a6acb8f8e1caf29e5406e2ab7a308b8719d00 | Add keyboard navigation via tabs based on @jensscherbl's work. Make sure that complex fields with multiple inputs are considered. | assets/parenthesistabs.publish.js | assets/parenthesistabs.publish.js | (function($) {
Tabs = {
wrapper: null,
tabs: [],
storage: {
all: $([])
},
init: function() {
$('.field:visible').each(Tabs.findTabs);
if(Tabs.tabs.length) {
Tabs.createWrapper();
$.each(Tabs.tabs, Tabs.createTabs);
// Events
Tabs.wrapper.on('click.parenthesistabs', 'li', Tabs.se... | JavaScript | 0.000001 | @@ -20,16 +20,34 @@
bs = %7B%0A%0A
+%09%09contents: null,%0A
%09%09wrappe
@@ -124,17 +124,69 @@
() %7B%0A%09%09%09
-$
+Tabs.contents = $('#contents');%0A%09%09%09Tabs.contents.find
('.field
@@ -322,14 +322,18 @@
%09//
-Events
+Select tab
%0A%09%09%09
@@ -399,26 +399,8 @@
Tab)
-;%0A%09%09%09%09Tabs.wrapper
.fin... |
e2f003224bbce5ef564975a55ca60eeebc5e93c6 | clear local storage after successful selection | corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/collections.js | corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/collections.js | /*global Backbone */
hqDefine("cloudcare/js/formplayer/menus/collections", function () {
var FormplayerFrontend = hqImport("cloudcare/js/formplayer/app"),
Util = hqImport("cloudcare/js/formplayer/utils/util");
var MenuSelect = Backbone.Collection.extend({
commonProperties: [
'appId... | JavaScript | 0 | @@ -1605,16 +1605,77 @@
true);%0A
+ sessionStorage.removeItem('selectedValues');%0A
|
6b11b3ee37301e7ed07a13f28a751c9ab556336d | Disable incomplete links for dashboard | assets/src/dashboard/constants.js | assets/src/dashboard/constants.js | /*
* Copyright 2020 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
*
* Unless required by applicable law or agreed to ... | JavaScript | 0 | @@ -1472,19 +1472,25 @@
') %7D,%0A
-%7B%0A
+// %7B%0A //
value
@@ -1515,18 +1515,21 @@
ery',%0A
+//
+
label: _
@@ -1568,21 +1568,27 @@
ies'),%0A
+ //
%7D,%0A
+ //
%7B value
@@ -1880,24 +1880,27 @@
ublish' %7D,%0A
+ //
%7B label: __
|
1f48f3412efb62fc1eefb8b843a6593ec068ad24 | add login method | app/services/auth.service.js | app/services/auth.service.js | (function () {
'use strict';
angular
.module('app')
.factory('authService', authService);
function authService() {
return {
login: login
};
function login(login, password) {
}
}
})(); | JavaScript | 0.000001 | @@ -97,16 +97,62 @@
vice);%0A%0A
+ authService.$inject = %5B'$http', 'config'%5D;%0A%0A
functi
@@ -166,16 +166,29 @@
Service(
+$http, config
) %7B%0A
@@ -246,26 +246,218 @@
gin(
-login, password) %7B
+email, password) %7B%0A var data = %7B%0A email: email,%0A password: password%0A %7... |
0d1740d8af64c488973ae19c6b161fa2a31dbc41 | test to prove things get cached | test/routes/listing_test.js | test/routes/listing_test.js | var expect = require('expect.js');
var mock = require('./mock_reddit_api.js');
var Listing = require('../../routes/listing');
require('../shorter_stack_traces');
require('../test_db_config');
describe('listings', function() {
describe('api endpoints', function() {
it('uses the after parameters if passed', functi... | JavaScript | 0 | @@ -115,24 +115,112 @@
/listing');%0A
+var ApiCache = require('../../models/api_cache_model.js');%0Avar nock = require('nock');%0A%0A
require('../
@@ -345,24 +345,634 @@
unction() %7B%0A
+ it.only('has the endpoints cached', function(done) %7B%0A var vimMock = mock('/r/vim/hot.json');%0A var angularjsMo... |
810b9e36a1ae19be4b2f21d4bd4488e6630477b0 | Disable add library button instead of hiding it | lib/views/library_card.js | lib/views/library_card.js | 'use babel';
const {View, $$} = require('atom-space-pen-views');
import shell from 'shell';
import {core} from '../index';
const {LibraryAddCommand, LibraryInstallCommand} = require('../cli');
const {DevLibraryAddSite} = require('../library_add');
const {DevLibraryInstallSite} = require('../library_install');
import {... | JavaScript | 0.000001 | @@ -2310,42 +2310,8 @@
ies%0A
-%09%09%09%09%09%09%09if (core().isProject()) %7B%0A%09
%09%09%09%09
@@ -2373,33 +2373,32 @@
nt state%0A%09%09%09%09%09%09%09
-%09
this.button(%7B%0A%09%09
@@ -2387,33 +2387,32 @@
%09%09this.button(%7B%0A
-%09
%09%09%09%09%09%09%09%09type: 'b
@@ -2419,33 +2419,32 @@
utton',%0A%09%09... |
d6e08d84491f928b7b8871d3171c717782cf65f7 | Use node-inspector --debug-port | bin/bode-debug.js | bin/bode-debug.js | #!/usr/bin/env node
var Debugger = require('yadc').Debugger
var babelNodePath = require.resolve('babel/bin/babel-node')
var path = require('path')
var nodeDebugDir = path.dirname(require.resolve('node-inspector/bin/node-debug'))
process.argv.splice(2, 0, '--nodejs', babelNodePath)
var oldFork = require('child_process... | JavaScript | 0 | @@ -506,81 +506,8 @@
) %7B%0A
- // var script = path.resolve(process.cwd(), config.subproc.script)%0A
@@ -553,12 +553,32 @@
rt:
-5858
+config.subproc.debugPort
,%0A
@@ -594,17 +594,17 @@
t: '
-localhost
+127.0.0.1
'%0A
|
4f245218fdf3e5e2c704c6346cfb57973906fe9f | extend range | public/views/calendar/controllers/calendar.controller.client.js | public/views/calendar/controllers/calendar.controller.client.js | (function() {
angular
.module("BetterMe")
.controller("eventController", EventController);
function EventController($location, currentUser, UserService, EventService) {
var vm = this;
vm.userId = currentUser._id;
vm.user = currentUser;
vm.events = currentUser.scheduledEvents;
vm.calenda... | JavaScript | 0.000001 | @@ -2603,16 +2603,17 @@
art._d %3C
+=
eventSt
|
7535968bfd0161a7672678999d22426fd045f639 | Save resources to localStorage when useLocaleStore is true (fixes #345) | src/i18next.functions.js | src/i18next.functions.js | function preload(lngs, cb) {
if (typeof lngs === 'string') lngs = [lngs];
for (var i = 0, l = lngs.length; i < l; i++) {
if (o.preload.indexOf(lngs[i]) < 0) {
o.preload.push(lngs[i]);
}
}
return init(cb);
}
function addResourceBundle(lng, ns, resources, deep) {
if (typeo... | JavaScript | 0 | @@ -696,32 +696,103 @@
sources);%0A %7D%0A
+ if (o.useLocalStorage) %7B%0A sync._storeLocal(resStore);%0A %7D%0A
%7D%0A%0Afunction hasR
@@ -1313,16 +1313,87 @@
%5D = %7B%7D;%0A
+ if (o.useLocalStorage) %7B%0A sync._storeLocal(resStore);%0A %7D%0A
%7D%0A%0Afunct
@@ -2033,32 +2033,32 @@
... |
c8c35a7584ce025eb9975f7fdb7e7c8bca8b44be | Allow deep nested options. | src/i18next.translate.js | src/i18next.translate.js | function applyReplacement(str, replacementHash, nestedKey) {
if (str.indexOf(o.interpolationPrefix) < 0) return str;
f.each(replacementHash, function(key, value) {
if (typeof value === 'object') {
str = applyReplacement(str, value, key);
} else {
str = str.replace(new Re... | JavaScript | 0.000001 | @@ -253,16 +253,52 @@
, value,
+ nestedKey ? nestedKey + '.' + key :
key);%0A
@@ -5811,12 +5811,13 @@
notfound;%0A%7D
+%0A
|
1373971606c0e9e4e041607e0125f54e3ab1e7f2 | tweak the coloring on the Metabase user initials on activity feed. | resources/frontend_client/app/home/components/Activity.react.js | resources/frontend_client/app/home/components/Activity.react.js | "use strict";
import React, { Component, PropTypes } from "react";
import _ from "underscore";
import cx from "classnames";
import Icon from "metabase/components/Icon.react";
import LoadingAndErrorWrapper from "metabase/components/LoadingAndErrorWrapper.react";
import { fetchActivity } from "../actions";
import Acti... | JavaScript | 0 | @@ -2802,24 +2802,61 @@
'UserNick':
+ true,%0A 'text-grey-1':
true%0A
@@ -3625,16 +3625,28 @@
Initials
+ text-grey-3
%22%3E%3CIcon
|
af655ce62e7c267e1aeaaff481ea95ae50041fb1 | Add mising .1 to docs | script/stageprompt.js | script/stageprompt.js | // Stageprompt 2.0
//
// See: https://github.com/alphagov/stageprompt
//
// Stageprompt allows user journeys to be described and instrumented
// using data attributes.
//
// Setup (run this on document ready):
//
// GOVUK.performance.stageprompt.setupForGoogleAnalytics();
//
// Usage:
//
// Sending events on... | JavaScript | 0 | @@ -11,16 +11,18 @@
ompt 2.0
+.1
%0A// %0A//
|
6eb3915fd24511d3ad65598518bbe121a220a9e6 | Fix global variable | script/stageprompt.js | script/stageprompt.js | var GOVUK = GOVUK || {};
GOVUK.performance = GOVUK.performance || {};
GOVUK.performance.stageprompt = (function () {
var setup, setUpForGoogleAnalytics;
setup = function (analyticsCallback) {
var journeyStage = $('[data-journey]').attr('data-journey'),
journeyHelpers = $('[data-journey-helper]');
... | JavaScript | 0.00422 | @@ -128,17 +128,17 @@
tup, set
-U
+u
pForGoog
|
d1ef16457534d476a9199ab9591195f0263e831c | Rename variable and nix optional value | source/views/contacts/contact-list.js | source/views/contacts/contact-list.js | /**
* @flow
* All About Olaf
* Contact page
*/
import React from 'react'
import {SectionList, StyleSheet} from 'react-native'
import {ListSeparator, ListSectionHeader} from '../components/list'
import {ListEmpty, ListFooter} from '../components/list'
import {ContactRow} from './contact-row'
import {data} from './d... | JavaScript | 0 | @@ -643,14 +643,14 @@
ts,
-b
+c
=%3E
-b
+c
.cat
@@ -658,19 +658,8 @@
gory
- %7C%7C 'Other'
)%0A
|
0eeefcbbc1456fe019df29bab9adcc333c7e86f0 | Add "pointerEvents: none" to outline and filled variants (#13040) | packages/material-ui/src/InputLabel/InputLabel.js | packages/material-ui/src/InputLabel/InputLabel.js | // @inheritedComponent FormLabel
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import FormLabel from '../FormLabel';
import { formControlState } from '../InputBase/InputBase';
export const styles = theme => ({
/* St... | JavaScript | 0 | @@ -1700,32 +1700,59 @@
%0A zIndex: 1,%0A
+ pointerEvents: 'none',%0A
transform: '
@@ -2173,24 +2173,51 @@
zIndex: 1,%0A
+ pointerEvents: 'none',%0A
transfor
|
6d75dc80cbe207670e6d2adf4a6cc5aa600757c8 | Fix lint issue | packages/ouroboros/src/Rules/GraphDependencies.js | packages/ouroboros/src/Rules/GraphDependencies.js | /* @flow */
import _ from 'lodash'
import File from '../File'
import Rule from '../Rule'
import type { Command } from '../types'
const COMMAND_PHASE_JOB_NAME_PATTERN = /\(([^;)]*);([^;)]*);([^;)]*);?/
export default class GraphDependencies extends Rule {
static commands: Set<Command> = new Set(['graph'])
stati... | JavaScript | 0.000002 | @@ -1897,16 +1897,22 @@
jobName%5D
+ %7C%7C %5B%5D
%0A
|
2bbd78bd55e948415c9c887eff15a0a688fbf15f | Allow a cssHook to define an 'apply' method that can apply any modifications to the value before setting it | packages/sproutcore-touch/lib/system/css_hooks.js | packages/sproutcore-touch/lib/system/css_hooks.js | // ==========================================================================
// Project: SproutCore Touch
// Copyright: ©2011 Strobe Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
require('sproutcore-touch... | JavaScript | 0 | @@ -3590,42 +3590,258 @@
%7B%7D;%0A
-%0A transforms%5Bname%5D = value;
+ var propInfo = properties%5Bname%5D;%0A%0A if (typeof propInfo.apply === 'function') %7B%0A transforms%5Bname%5D = propInfo.apply(transforms%5Bname%5D %7C%7C propInfo.defaultValue, value);%0A %7D else %7B%0A ... |
07e4cde0708360d507b53b10c4505c7506e91b3f | refactor for (new) better React code style | src/restinpeace/restful.js | src/restinpeace/restful.js | /* eslint-disable no-console */
import React, { Component } from 'react';
import UserRepo from '../container/UserRepo';
import fetchGithubApi from './fetchGithubApi';
const lastCommitMock = require('./lastCommitMock.json');
const repoName = 'dashboard';
const repoOwnerLogin = 'lowsky';
const repo = 'lowsky/dashboar... | JavaScript | 0.000009 | @@ -645,31 +645,8 @@
= %7B%0A
- loading: true,%0A
@@ -667,17 +667,8 @@
ata,
- // clone
%0A
@@ -706,22 +706,67 @@
-const
+this.loadData(fetchGithubApi);%0A %7D%0A%0A loadData(
%7B fetchR
@@ -793,27 +793,22 @@
er %7D
- = fetchGithubApi;%0A
+) %7B%0A //
%0A
@@ -830,24 +830,... |
8d1f6bfad786891cb7370a0ef851c100642963ad | change exports. to module.exports. | test/text2datauri_Prefix.js | test/text2datauri_Prefix.js | "use strict";
const text2datauriHelpers = require("../tasks/text2datauriHelpers.js");
/* ======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expect... | JavaScript | 0 | @@ -697,16 +697,23 @@
ue)%0A*/%0A%0A
+module.
exports.
|
4a82a3cee4578b6a08462b31fb568b6182f2dc0f | Refactor tests | test/unit/Rectangle.test.js | test/unit/Rectangle.test.js | import { assert } from 'chai';
import sinon from 'sinon';
import Rectangle from '../../src/Rectangle';
import Cursor from 'kittik-cursor';
describe('Shape::Rectangle', () => {
it('Should properly render with default options', () => {
let cursor = Cursor.create();
let rectangle = new Rectangle();
let mock... | JavaScript | 0.00007 | @@ -226,34 +226,36 @@
s', () =%3E %7B%0A
-le
+cons
t cursor = Curso
@@ -266,26 +266,28 @@
eate();%0A
-le
+cons
t rectangle
@@ -301,34 +301,36 @@
ectangle();%0A
-le
+cons
t mock = sinon.m
@@ -653,18 +653,20 @@
%3E %7B%0A
-le
+cons
t cursor
@@ -689,18 +689,20 @@
();%0A
-le
+cons
t mock =
@@... |
38fbb065be6ead1ffa35afce3fdc432cb1632dac | Remove `only` from unit tests | test/unit/app-state.spec.js | test/unit/app-state.spec.js | import App from '../../src/app';
describe.only('App StateModel', function() {
describe('when passing StateModel on Toolkit.App definition', function() {
before(function() {
this.MyModel = Backbone.Model.extend({
foo: 'bar'
});
this.myApp = new App({
StateModel: this.MyModel
... | JavaScript | 0 | @@ -39,13 +39,8 @@
ribe
-.only
('Ap
|
94732245e82db6a9d6268e41f960f942e14f6cd2 | Correct a typo | src/temporaryContainers.js | src/temporaryContainers.js | // Hoisted and adapted from https://gitlab.com/NamingThingsIsHard/firefox/click-to-contain
import ContextualIdentities from './ContextualIdentity';
import PreferenceStorage from './Storage/PreferenceStorage';
import {filterByKey} from './utils';
// Prefer tracking tabs and their contexts to
// calling browser.tabs.qu... | JavaScript | 1 | @@ -3032,16 +3032,17 @@
sole.war
+n
('Remove
|
9a43cfb2aba982ed5166669c9eb8ca09356a4a03 | Update listers.js | src/test/moment/listers.js | src/test/moment/listers.js | import { module, test } from '../qunit';
import moment from '../../moment';
module('listers');
test('default', function (assert) {
assert.deepEqual(moment.months(), ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']);
assert.deepEqual(mom... | JavaScript | 0.000001 | @@ -393,16 +393,17 @@
g', 'Sep
+t
', 'Oct'
|
ab7a177ca258b05bd0a215fad86d5050d057d9c9 | Add FIXME comment. | src/js/editing/Bullet.js | src/js/editing/Bullet.js | define([
'summernote/core/list',
'summernote/core/func',
'summernote/core/dom',
'summernote/core/range'
], function (list, func, dom, range) {
var Bullet = function () {
/**
* toggle ordered list
* @type command
*/
this.insertOrderedList = function () {
this.toggleList('OL');
... | JavaScript | 0 | @@ -2945,24 +2945,157 @@
%7D%0A %7D%0A%0A
+ // FIXME - Fix the focus out bug when first bullet clicked.%0A // - Chrome 39.0.2171.99 (64-bit), Yosemite Version 10.10.1%0A%0A
rng.se
|
e13fb95b4558f9ce02fc5f4b9c998ecc412501d4 | Make enemies use new helper-functions | src/js/entities/enemy.js | src/js/entities/enemy.js | 'use strict';
Darwinator.Enemy = function(game, target, x, y, health, strength, agility, intellect) {
Darwinator.Entity.call(this, game, x, y, 'enemy', [], health, strength, agility, intellect);
this.scale.setTo(0.25,0.25);
this.target = target;
this.path = [];
this.attacking = false;
this.time = null;
... | JavaScript | 0.000056 | @@ -887,19 +887,18 @@
rgetTile
-%5B0%5D
+.x
&&%0A
@@ -957,19 +957,18 @@
rgetTile
-%5B1%5D
+.y
)) %7B%0A
@@ -1101,19 +1101,18 @@
currTile
-%5B0%5D
+.x
, currTi
@@ -1113,19 +1113,18 @@
currTile
-%5B1%5D
+.y
, target
@@ -1127,19 +1127,18 @@
rgetTile
-%5B0%5D
+.x
, target
@@ -1141,19 +1141,18 @@
rgetTile... |
3a5695c3b865de8d1276e172c7677793ae41fe1a | Make enemies use sprint when further away from player | src/js/entities/enemy.js | src/js/entities/enemy.js | 'use strict';
Darwinator.Enemy = function(game, target, x, y, health) {
Darwinator.Entity.call(this, game, x, y, health, 'enemy');
this.scale.setTo(0.25,0.25);
this.target = target;
this.path = null;
this.speed = 75;
this.damage = 5;
this.attacking = false;
this.time = null;
this.overlap = null;
};
... | JavaScript | 0 | @@ -1104,9 +1104,9 @@
h %3C
-3
+5
&&
|
a06a6f3c0c4d32b42f33b6329e77e562ce1caf49 | Use case insensitive search in mock search posts. | src/js/posts/api/mock.js | src/js/posts/api/mock.js | 'use strict';
var _ = require('../../shared/mock'),
samples = require('./samples.json'),
msamples = require('../../membership/api/samples.json');
function findUserById(id) {
return _.first(msamples.users, function(u) {
return u.id === id;
});
}
module.exports = {
searchPosts: function(q,... | JavaScript | 0 | @@ -397,24 +397,57 @@
if (q) %7B%0A
+ q = q.toLowerCase();%0A
|
9e5f122d6d5a18b41be3580ca6881b693f7463ab | allow Script URL in JShint | src/js/services/print.js | src/js/services/print.js | 'use strict';
module.exports = function(shariff) {
var url = 'javascript:window.print();'
return {
name: 'print',
faName: 'fa-print',
popup: false,
shareText: {
'bg': '',
'da': '',
'de': 'drucken',
'en': 'print',
'es':... | JavaScript | 0 | @@ -1,8 +1,34 @@
+/*jshint scripturl:true*/%0A
'use str
@@ -113,16 +113,17 @@
rint();'
+;
%0A%0A re
|
b89af2c79b4d7e32d47bc74397cc7abadc89ca35 | remove delay animation by a frame if previously canceled | src/js/util/animation.js | src/js/util/animation.js | import {attr} from './attr';
import {Promise} from './promise';
import {once, trigger} from './event';
import {css, propName} from './style';
import {assign, startsWith, toNodes} from './lang';
import {addClass, hasClass, removeClass, removeClasses} from './class';
export function transition(element, props, duration =... | JavaScript | 0.000001 | @@ -1873,58 +1873,8 @@
n-';
-%0Aconst clsCancelAnimation = 'uk-cancel-animation';
%0A%0Aex
@@ -2050,306 +2050,8 @@
%7B%0A%0A
- if (hasClass(element, clsCancelAnimation)) %7B%0A requestAnimationFrame(() =%3E%0A Promise.resolve().then(() =%3E%0A anim... |
34e5262b7eaa8dff6c6e23aa467dd4556c0b7578 | add COMMENT_FAILED error | src/js/util/constants.js | src/js/util/constants.js | 'use strict';
const errorMessages = {
LOGIN_REQUIRED: 'You have to login to do that.',
INVALID_EMAIL: 'Invalid email address.',
INVALID_PASSWORD: 'Invalid password.',
INVALID_USER: 'User doesn\'t exist.',
NO_COMMENT: 'You have to enter a comment.',
NO_USERNAME: 'You have to enter a username.',
... | JavaScript | 0.000001 | @@ -211,24 +211,85 @@
't exist.',%0A
+ COMMENT_FAILED: 'Comment submission failed. Try again.',%0A
NO_COMME
|
9796e1183ef1649e00a273757dbe63d160dead24 | update docs | src/layer/marker/Icon.js | src/layer/marker/Icon.js | import {Class} from '../../core/Class';
import {setOptions} from '../../core/Util';
import {toPoint as point} from '../../geometry/Point';
import {retina} from '../../core/Browser';
/*
* @class Icon
* @aka L.Icon
*
* Represents an icon to provide when creating a marker.
*
* @example
*
* ```js
* ... | JavaScript | 0.000001 | @@ -1647,36 +1647,38 @@
Anchor: Point =
-null
+%5B0, 0%5D
%0D%0A%09 * The coordi
@@ -1789,36 +1789,38 @@
Anchor: Point =
-null
+%5B0, 0%5D
%0D%0A%09 * The coordi
|
fbabf52f0594442debac01c54a48757635f4cd97 | Complete comment | backbone.raphael.transformable.js | backbone.raphael.transformable.js | /*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
*/
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define(['backbone'], function(Backbone) {
// Use global variables if... | JavaScript | 0 | @@ -700,17 +700,60 @@
o false
-i
+to not save the model after a transformation
%0A
|
7fe4b3c6928523f0b509b84e7b56faf1057f1193 | Improve space compiling operation items | src/transpiler/compiler.js | src/transpiler/compiler.js | /* eslint-disable */
import Parser from './parser';
class Compiler {
constructor(parsed) {
if (typeof parsed === 'string') {
parsed = new Parser(parsed).parse();
}
this.identionLevel = 0;
this.parsed = parsed;
this.compiled = "";
this.compile(this.parsed);
}
appendSpaces() {
// console.log(this.... | JavaScript | 0.000001 | @@ -2563,19 +2563,20 @@
;%0A%09%09
-let
+var
left
-Nam
+Valu
e =
@@ -2591,206 +2591,231 @@
eft.
-nam
+valu
e;%0A
+%0A
%09%09
-var leftValue = object.left.value;%0A%0A%09%09if (leftType === %22string%22) %7B%0A%09%09%09leftValue = %22%5C%22%22 + leftValue + %22%5C%22%22%0A%09%09%7D%0A%0A%09%09if (object.right) %... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.