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 |
|---|---|---|---|---|---|---|---|
4de5e59b82f22af29cd61de627d00584e18f4e97 | fix bugs | static/js/room.js | static/js/room.js | 'use strict';
var socket;
var room = "";
// var i = 0;
// var Fake = [
// 'Hi there, I\'m Trump and you?',
// 'Nice to meet you',
// 'How are you?',
// 'Not too bad, thanks',
// 'What do you do?',
// 'That\'s awesome',
// 'Codepen is a nice place to stay',
// 'I think you\'re a nice person',
// 'Wh... | JavaScript | 0.000001 | @@ -703,67 +703,8 @@
ect(
-'http://localhost:3000', %7B'sync disconnect on unload':true%7D
);%0A
@@ -2870,18 +2870,16 @@
%22 + data
-);
%0A%7D%0A%0A%0A%0Afu
|
9f5698aba278345de56576e262493d5e98a35db1 | return model after setting from it | client/hippo/components/form/api.js | client/hippo/components/form/api.js | /* eslint no-param-reassign: ["error", {
"props": true, "ignorePropertyModificationsFor": ["field", "model"]
}] */
import { observable, computed, when, action } from 'mobx';
import {
pick, isFunction, mapValues, every, get, set, filter, isNil, each, extend,
} from 'lodash';
export class FormField {
name: ''... | JavaScript | 0.000001 | @@ -3741,32 +3741,54 @@
del);%0A %7D%0A
+ return model;%0A
%7D%0A%0A persi
|
20cecd96a2365ec96689ab10b80d485ab93fb4ca | Fix create grant request | client/javascript/overviewGrants.js | client/javascript/overviewGrants.js | var template;
var user;
var grantid;
var loadDepartmentNavigation = function(overview) {
if(overview.user.permissions.level == 1) {
var stages = ["Research", "Internal", "ASU", "Complete"];
overview.departmentNames = stages;
overview.currentDepartment = overview.user.permissions.stage;
}
};
var loadD... | JavaScript | 0.000001 | @@ -3186,29 +3186,8 @@
l: '
-http://localhost:8080
/gra
|
9863ac3ed573024cd9f9984ecfed2f2a09e35de5 | Add POST request to the SET_CHANNEL action | src/actions/index.js | src/actions/index.js | import axios from 'axios';
// get top twitch channels
export const GET_CHANNELS = 'GET_CHANNELS';
export function getChannels() {
const request = axios.get('https://api.twitch.tv/kraken/streams?api_version=3&limit=10');
return {
type: GET_CHANNELS,
payload: request,
};
}
// set the currently active chan... | JavaScript | 0 | @@ -21,16 +21,63 @@
xios';%0A%0A
+const ROOT_URL = 'http://localhost:3000/api';%0A%0A
// get t
@@ -440,24 +440,97 @@
(channel) %7B%0A
+ const request = axios.post(%60$%7BROOT_URL%7D/channels/subscribe%60, channel);%0A
return %7B%0A
@@ -564,23 +564,23 @@
ayload:
-channel
+request
,%0A %7D;%0A%7D
|
6c4b2c81f53d81fc1d067470b7813e391b71e6e8 | Optimize collection helper event forwarding | src/helpers/collection.js | src/helpers/collection.js | /* global
$serverSide,
collectionElementAttributeName, createErrorMessage, getParent,
helperViewPrototype, normalizeHTMLAttributeOptions,
viewRestoreAttribute
*/
Thorax.CollectionHelperView = Thorax.CollectionView.extend({
// Forward render events to the parent
events: {
'rendered:collection': ... | JavaScript | 0 | @@ -382,42 +382,147 @@
': f
-orwardRenderEvent('rendered:item')
+unction(view, collection, model, itemEl, index) %7B%0A this.parent.trigger('rendered:item', view, collection, model, itemEl, index);%0A %7D
,%0A
@@ -4790,125 +4790,75 @@
ion(
-) %7B%0A var args = _.toArray(arguments);%0A args.unshift(ev... |
f6a61c65bb5621c1a285a77e5d0195a79e788864 | fix enable contidion for analytics | src/anm/analytics.js | src/anm/analytics.js | var engine = require('engine'),
utils = require('./utils.js');
var Analytics = function () {
var self = this,
supportSendBeacon = !!navigator.sendBeacon,
timeout = supportSendBeacon ? 2000 : 1000,
beacon = null,
animatronUrl = utils.makeApiUrl('/analytics/player');
self.ena... | JavaScript | 0 | @@ -341,18 +341,18 @@
!= null
-%7C%7C
+&&
animatr
|
0450ae32e385126e8169db9d125416c97716d339 | remove unused vars | src/helpers/dimensions.js | src/helpers/dimensions.js | 'use strict';
angular.module('mgcrea.ngStrap.helpers.dimensions', [])
.factory('dimensions', function($document, $window) {
var jqLite = angular.element;
var fn = {};
/**
* Test the element nodeName
* @param element
* @param name
*/
var nodeName = fn.nodeName = function(element... | JavaScript | 0.000007 | @@ -103,64 +103,12 @@
ion(
-$document, $window) %7B%0A%0A var jqLite = angular.element;
+) %7B%0A
%0A
|
43f0356e30caf348e758e2f57a58f183bc629f0c | Repair from PIECE_NUM to PIECE_NUM_X; | tutorial/002/public/js/main.js | tutorial/002/public/js/main.js | var SCREEN_WIDTH = 680
, SCREEN_HEIGHT = 960
, SCREEN_CENTER_X = SCREEN_WIDTH / 2
, SCREEN_CENTER_Y = SCREEN_HEIGHT / 2;
var PIECE_NUM_X = 5
, PIECE_NUM_Y = 5
, PIECE_NUM = PIECE_NUM * PIECE_NUM_Y
, PIECE_OFFSET_X = 90
, PIECE_OFFSET_Y = 240
, PIECE_WIDTH = 120
, PIECE_HEIGHT = 120;
... | JavaScript | 0 | @@ -197,16 +197,18 @@
IECE_NUM
+_X
* PIECE
|
2e6a7bdc1b3695bc0f89eac6e77f4e0823a67553 | Update copy | src/app/Hit/index.js | src/app/Hit/index.js | import IconTime from 'react-icons/lib/md/access-time'
import {Highlight} from 'react-instantsearch/dom'
import React from 'react'
import Badge from '../Badge'
import './style.scss'
const getTimestamp = item => item.updatedAt || item.createdAt
const renderTimeIcon = time => (
<Badge
iconComponent={<IconTime si... | JavaScript | 0 | @@ -590,17 +590,17 @@
con('24
-H
+h
ours')%0A
@@ -657,17 +657,17 @@
con('48
-H
+h
ours')%0A
@@ -723,17 +723,17 @@
Icon('3
-D
+d
ays')%0A
@@ -793,9 +793,9 @@
('1
-W
+w
eek'
@@ -826,14 +826,17 @@
n('1
- M
+-3 m
onth
+s
')%0A%7D
|
4719be5e738d762ae78fa6ab4d04a6ff92f2ad5e | Update dmmOriginalSizeImage.user.js | H/dmmOriginalSizeImage.user.js | H/dmmOriginalSizeImage.user.js | // ==UserScript==
// @name dmmOriginalSizeImage
// @name:zh-CN 【DMM】原始图片大小
// @namespace https://github.com/dodying/Dodying-UserJs
// @include http://www.dmm.co.jp/*
// @include http://www.javlibrary.com/*
// @version 1
// @grant none
// ==/UserScript==
var img = document.querySelectorAll('i... | JavaScript | 0 | @@ -279,230 +279,8 @@
t==%0A
-var img = document.querySelectorAll('img');%0Afor (var i = 0; i %3C img.length; i++) %7B%0A img%5Bi%5D.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==';%0A%7D%0A
if (
|
c53ad5e5af0b8d493e139e3fd331739b9a9490d8 | Add id selector to jQuery | teknologr/registration/static/js/registration.js | teknologr/registration/static/js/registration.js | /* Some browsers (e.g. desktop Safari) does not have built-in datepickers (e.g. Firefox).
* Thus we check first if the browser supports this, in case not we inject jQuery UI into the DOM.
* This enables a jQuery datepicker.
*/
const datefield = document.createElement('input');
datefield.setAttribute('type', 'date')... | JavaScript | 0.000001 | @@ -224,21 +224,19 @@
r.%0A */%0A%0A
-const
+var
datefie
@@ -1045,16 +1045,17 @@
$('
+#
id_birth
|
003e93241085de0c267baaf2e63fe66b72ace135 | handle missing plugins propery in config | customize.js | customize.js | /*!
* thought <https://github.com/nknapp/thought>
*
* Copyright (c) 2015 Nils Knappmeier.
* Released under the MIT license.
*/
'use strict'
const path = require('path')
const fs = require('fs')
const debug = require('debug')
const pify = require('pify')
const readFile = pify(fs.readFile)
/**
* Default configur... | JavaScript | 0.000001 | @@ -526,84 +526,23 @@
dge?
-%0A * %60undefined%60 means autodetect (by parsing the badge for the repo-url)
+ Default: false
%0A
@@ -584,17 +584,13 @@
er:
-undefined
+false
%0A %7D
@@ -1205,16 +1205,82 @@
bars'))%0A
+ .merge(%7B handlebars: %7B data: %7B config: defaultConfig %7D %7D %7D)%0A
.m... |
b95fba1caebef848a4cd3a69a9ff30f151603d8b | Update repl.js improve readability & performance. | packages/core/lib/repl.js | packages/core/lib/repl.js | var repl = require("repl");
var expect = require("@truffle/expect");
var async = require("async");
var EventEmitter = require("events");
var inherits = require("util").inherits;
inherits(ReplManager, EventEmitter);
function ReplManager(options) {
EventEmitter.call(this);
expect.options(options, [
"working_di... | JavaScript | 0 | @@ -1308,19 +1308,21 @@
.%0A
-var
+const
doneFun
@@ -1348,112 +1348,70 @@
xts.
-map(function(context) %7B%0A return context.done%0A ? function() %7B%0A context
+reduce((fns, ctx) =%3E %7B%0A if (ctx.done) fns.push(ctx
.done
-(
);%0A
@@ -1421,39 +1421,18 @@
- %7D... |
665e5a4f216330983015cae3f1135e212bc10523 | Update background.js | chrome/js/background.js | chrome/js/background.js | chrome.webRequest.onBeforeRequest.addListener(
function(details) {
if( details.url == "http://210.77.16.21:8081/eportal/interface/index_files/pc/login_bch.js" )
return {redirectUrl: "chrome-extension://" + chrome.runtime.id + "/js/login_bch.js" };
},
{urls:["<all_urls>"]},
["blocking... | JavaScript | 0.000001 | @@ -115,17 +115,17 @@
6.21:808
-1
+0
/eportal
@@ -317,8 +317,9 @@
king%22%5D);
+%0A
|
f9952f9fa7cd0d90add221793aea07f45ba05cc8 | Fix 500 error when account token does not resolve to account | packages/nylas-api/app.js | packages/nylas-api/app.js | const Hapi = require('hapi');
const HapiSwagger = require('hapi-swagger');
const HapiBoom = require('hapi-boom-decorators')
const HapiBasicAuth = require('hapi-auth-basic');
const Inert = require('inert');
const Vision = require('vision');
const Package = require('./package');
const fs = require('fs');
const path = req... | JavaScript | 0.000001 | @@ -1285,69 +1285,11 @@
ck(n
-ew Error(%22Could not find Account referenced by AccountToken%22)
+ull
, fa
|
55117f1a3cbcfb1fc06083809ac142be8c925e23 | Return Response instances for fakeFetch | src/interceptors/fetch.js | src/interceptors/fetch.js | import queryString from 'query-string';
import pathMatch from 'path-match';
import parseUrl from 'parse-url';
const nativeFetch = window.fetch;
export const fakeFetch = (serverRoutes) => {
return (url, options = {}) => {
const body = options.body || '';
const method = options.method || 'GET';
const hand... | JavaScript | 0.000001 | @@ -139,16 +139,182 @@
fetch;%0A%0A
+//TODO: Handle response headers%0Alet fakeResponse = function(response = %7B%7D) %7B%0A const responseStr = JSON.stringify(response);%0A%0A return new Response(responseStr);%0A%7D;%0A%0A
export c
@@ -892,131 +892,8 @@
);%0A%0A
- // @TODO: Wrap 'resolve' result into a Respons... |
8e24aede6d68d6b314bf9032c9ae9f1022f2eed0 | fix status-bar theme for dark mode | chrome/status-bar.uc.js | chrome/status-bar.uc.js | // ==UserScript==
// @name Status Bar
// @author xiaoxiaoflood
// @include main
// @startup UC.statusBar.exec(win);
// @shutdown UC.statusBar.destroy();
// @onlyonce
// ==/UserScript==
UC.statusBar = {
PREF_ENABLED: 'userChromeJS.statusbar.enabled',
PREF_STATUSTEXT: 'user... | JavaScript | 0 | @@ -4341,37 +4341,26 @@
lwt-bgcolor)
- !important
;%0A
+
%7D%0A
@@ -4518,163 +4518,8 @@
#444
- !important;%0A %7D%0A #browser-bottombox:not(%5Bcollapsed%5D) %7B%0A border-top: 1px solid var(--chrome-content-separator-color) !important
;%0A
@@ -4963,32 +4963,32 @@
ter !impo... |
12a43f0b3d0fe581c7621fb1b50019e424c2768d | Update crooz.js | public/js/crooz.js | public/js/crooz.js | "use strict";
var socket;
var mapper;
function main() {
socket = io();
mapper = Mapper.init(document.getElementById('mapCard'));
socket.on('connected', function (users) {
socket.emit('subscribe', users.sort(function(a,b) {
- return ((new Date(a.lastActive)).getTime() > (new Date(b.lastAct... | JavaScript | 0 | @@ -224,44 +224,15 @@
ort(
-function(a,b) %7B %0A - return
+compare
((ne
@@ -262,18 +262,17 @@
etTime()
- %3E
+,
(new Da
@@ -303,35 +303,8 @@
e())
- ? 1: -1 %0A - %7D%5B0%5D));
%0A
@@ -1299,8 +1299,153 @@
%7D);%0A%7D%0A
+%0Afunction compare(a,b) %7B%0A if (a %3E b) %7B%0A return ... |
9240736a5464c8c09254d140be82b6eabc07dd97 | fix spelling in comment | example/react/src/App.js | example/react/src/App.js | import React, { Component, Suspense } from 'react';
import { useTranslation, withTranslation, Trans } from 'react-i18next';
import logo from './logo.svg';
import './App.css';
// use hoc for class based components
class LegacyWelcomeClass extends Component {
render() {
const { t, i18n } = this.props;
return <... | JavaScript | 0.001874 | @@ -1212,17 +1212,17 @@
r suspen
-c
+s
e fallba
|
6e2c81dda879b946c6353299703afa1f9a59e52d | Edit variable name to be more precise | packages/core/lib/testing/testrunner.js | packages/core/lib/testing/testrunner.js | const { createInterfaceAdapter } = require("@truffle/interface-adapter");
const web3Utils = require("web3-utils");
const Config = require("@truffle/config");
const Migrate = require("@truffle/migrate");
const TestResolver = require("./testresolver");
const TestSource = require("./testsource");
const expect = require("@... | JavaScript | 0.000001 | @@ -5387,24 +5387,32 @@
const
-filtered
+userDefinedEvent
Logs = l
@@ -5523,24 +5523,32 @@
%0A%0A if (
-filtered
+userDefinedEvent
Logs.len
@@ -5788,16 +5788,24 @@
of
-filtered
+userDefinedEvent
Logs
|
bdbe9d190276955cf6191a215bd90cdb19499322 | Add an ONA_ORG env var | config/Config.js | config/Config.js | const env = process.env;
module.exports = {
// core
environment: env.NODE_ENV || 'development', // dev, prod, test
PORT: env.PORT || env.APP_PORT || 3000, // env to run karma on
defaultLanguage: env.DEFAULT_LANGUAGE || 'en',
conversationTimeout: env.CONVERSATION_TIMEOUT || 120000,
// facebook
facebookPa... | JavaScript | 0 | @@ -553,16 +553,39 @@
stores%0A
+ onaOrg: env.ONA_ORG,%0A
onadat
|
a3fa123e9b290cf0861d9a1b57113c95e3abf6a7 | Test post | public/js/index.js | public/js/index.js | 'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
})
/*
* Function that is called when the document is ready.
*/
function initializePage() {
$(".header__hamburger-menu").on('click', function(){
$(".menu-container").removeClass('close', ... | JavaScript | 0 | @@ -984,16 +984,17 @@
l: %22http
+s
://stylo
|
e342356d74411219df48f5739fe203ef859665fe | Use permission service in model. | api/models/User.js | api/models/User.js | var User = {
// Enforce model schema in the case of schemaless databases
schema: true,
attributes: {
username: { type: 'string', unique: true },
email: { type: 'email', unique: true },
passports: { collection: 'Passport', via: 'user' },
permissions: { type: 'array', defaultsTo:... | JavaScript | 0 | @@ -490,26 +490,44 @@
return
-_.contains
+PermissionService.isIncluded
(this.pe
@@ -597,28 +597,112 @@
tion
- (permissionGroup) %7B
+(group) %7B%0A PermissionService.isIncluded(group.permissions, inPermission);%0A %7D);
%0A
@@ -706,24 +706,27 @@
+%7D,%0A
_.contai
... |
43a7230b5d88688df6d7d79e2fcb6419ad8246e9 | Fix arrows keys in slug input field in FireFox | public/js/augmenters/slug-validation.js | public/js/augmenters/slug-validation.js | // ------------------------
// Slug Validation
// ------------------------
require( [ 'jquery', 'utils/slugify' ],
function( $, slugify ) {
var check_allowed_letter = function(ltr){
if (
(ltr >= 97 && ltr <= 122) // a-z
|| (ltr >= 65 && ltr <= 90) // A-Z
|| (ltr >= 48 && ltr <= 57)... | JavaScript | 0.000002 | @@ -718,16 +718,222 @@
ion(e) %7B
+%0A%0A // .which seems to return 0 for some keys in firefox - like the arrow keys. If%0A // we don't get a response from which fall back to .keyCode%0A var key = e.which %7C%7C e.keyCode;%0A
%0A%09
@@ -1116,23 +1116,21 @@
_letter(
-e.which
+ key ... |
3a435eded8a99c559d6f559db93a5e9a08f0b484 | Add future tests | packages/docpack-jsdoc-extractor/test/extractor.test.js | packages/docpack-jsdoc-extractor/test/extractor.test.js | var chai = require('chai');
chai.use(require('chai-as-promised'));
chai.should();
var extract = require('../lib/extractor');
var Source = require('docpack/lib/data/Source');
var Example = require('docpack/lib/data/Example');
describe('Extractor', () => {
var source;
beforeEach(() => {
source = new Source({
... | JavaScript | 0.000001 | @@ -3447,18 +3447,311 @@
%7D);%0A
+%0A describe('@example-file', () =%3E %7B%0A it('should properly resolve the file', () =%3E %7B%7D);%0A it('should parse file properly', () =%3E %7B%7D);%0A it('should assign examples in right order', () =%3E %7B%7D);%0A it('should cause recompilation when ... |
f590ab151e3ca2a8c88da1eba8e26608f9f186fc | Update config.js | config/config.js | config/config.js | var config = {
port: 8080,
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
language: 'en',
untis: 'imperial',
modules: [
{
module: "updatenotification",
position: "top_bar"
},
{
module: 'clock',
position: 'top_left'
},
{
module: 'currentweather',
positio... | JavaScript | 0.000002 | @@ -321,20 +321,19 @@
n: 'top_
-righ
+lef
t',%0A
@@ -373,321 +373,8 @@
-config: %7B%0A location: %22NYC, NY%22,%0A latitude: %2240.73%22,%0A longitude: %22-73.94%22,%0A apiBaseURL: %22twcservice.mybluemix.net/api/weather/v1/geocode/%22,%0A username: %225a6159b6-e... |
fc13658c7a122e4e46e4f0893d989b09652d53c5 | Use `vivify` in `t/merge/race.t.js`. | t/merge/race.t.js | t/merge/race.t.js | #!/usr/bin/env node
require('./proof')(2, function (step, tmp, Strata, load, serialize, objectify, assert) {
var cadence = require('cadence'), strata, insert
function tracer (type, object, callback) {
switch (type) {
case 'plan':
cadence(function (step) {
step(funct... | JavaScript | 0 | @@ -82,22 +82,19 @@
ialize,
-object
+viv
ify, ass
@@ -1298,38 +1298,35 @@
on () %7B%0A
-object
+viv
ify(tmp, step())
@@ -2064,22 +2064,19 @@
-object
+viv
ify(tmp,
|
37057a82b298e400d808150eaa291bfc351a8080 | Fix "sparkly" and "json" formatters | penkki.js | penkki.js | #!/usr/bin/env node
/*globals require, console*/
'use strict'
const chalk = require('chalk'),
process = require('process'),
args = require('command-line-args'),
cp = require('child_process'),
R = require('ramda')
const error = chalk.bold.red
const header = `${chalk.blue('Penkki')}. Ru... | JavaScript | 0.100372 | @@ -1191,16 +1191,18 @@
chart:
+
() =%3E %7B
@@ -1240,29 +1240,8 @@
%7D %7D
-,%0A html: R.identity
%0A%7D%0A%0A
@@ -1937,24 +1937,141 @@
%7D%0A %7D%0A%7D%0A%0A
+function getFormatterOptions(name) %7B%0A return R.has(name, formatterOptions) ? formatterOptions%5Bname%5D : R.identity%0A%7D%0A%0A
functio... |
62cef5062006dcdd24d8ba05fce3f48e694e51f7 | Update after merge? | js/sky/src/phonefield/phonefield.directive.js | js/sky/src/phonefield/phonefield.directive.js | /* global angular, intlTelInputUtils*/
(function () {
'use strict';
/**
* bbPhoneField directive controller for bb-phone-field
*/
function bbPhoneField() {
function link($scope, el, attrs, ngModel) {
// ** variables **
var input = el;
/**
* g... | JavaScript | 0 | @@ -1943,99 +1943,99 @@
+if (
$scope.
-$apply(function () %7B%0A if ($scope.bbPhoneFieldConfig.props) %7B%0A
+bbPhoneFieldConfig.props) %7B%0A $scope.$apply(function () %7B%0A
@@ -2137,33 +2137,39 @@
-%7D
+ %7D);
%0A
@@ -216... |
a8fbb8c695499252820f4ad93ea450986d74a017 | Fix error | v1/OnlineFriendCount.plugin.js | v1/OnlineFriendCount.plugin.js | //META {"name": "OnlineFriendCount", "source": "https://github.com/Zerthox/BetterDiscord-Plugins/blob/master/v1/OnlineFriendCount.plugin.js"} *//
/**
* @author Zerthox
* @version 1.0.2
* @return {class} OnlineFriendCount plugin class
*/
const OnlineFriendCount = (() => {
// Api constants
const {React} = B... | JavaScript | 0.000004 | @@ -179,17 +179,17 @@
ion 1.0.
-2
+3
%0A * @ret
@@ -1431,17 +1431,17 @@
rn %221.0.
-2
+3
%22;%0A
@@ -2179,16 +2179,27 @@
d((e) =%3E
+ e.props &&
e.props
|
bc7439174c9d024937585596b11de04a78546777 | Update with-destructuring.js | katas/es6/language/rest/with-destructuring.js | katas/es6/language/rest/with-destructuring.js | // 19: rest - with-destructuring
// To do: make all tests pass, leave the assert lines unchanged!
describe('rest with destrcturing', () => {
it('rest parameter must be last', () => {
const [...all, last] = [1, 2, 3, 4];
assert.deepEqual(all, [1, 2, 3, 4]);
});
it('assign rest of an array to a var... | JavaScript | 0 | @@ -117,16 +117,17 @@
th destr
+u
cturing'
|
4dbc3d48acffd68dbe9014179e589e5890de9c76 | add js defn of that = this | usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js | usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js | /**
* Render the policies tab.You must supply the model and optionally the element
* on which the view binds itself.
*
* @type {*}
*/
define([
"underscore", "jquery", "backbone",
"model/policy-summary", "model/policy-config-summary", "view/viewutils", "view/policy-config-invoke", "text!tpl/apps/policy.html... | JavaScript | 0.998363 | @@ -6987,32 +6987,61 @@
ig:function() %7B%0A
+ var that = this;%0A
if (
|
e035612592ed476710837ebbb9b76e676791ea58 | Fix the variable name | config/engine.js | config/engine.js | export default {
apiKey: process.env.ENGINE_API_KEY, // Set your Apollo Engine API key
logging: {
level: 'DEBUG' // Engine Proxy logging level. DEBUG, INFO, WARN or ERROR
}
};
| JavaScript | 0.999999 | @@ -32,16 +32,23 @@
ess.env.
+APOLLO_
ENGINE_A
|
d723cedfe880aaf4361ecd89be25d3b49ed2717c | Add support for literal entries in the manifest. | tasks/appcache.js | tasks/appcache.js | /*
* grunt-appcache
* http://canvace.com/
*
* Copyright (c) 2013 Canvace Srl
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
var path = require('path');
var appcache = require('./lib/appcache').init(grunt);
function array(input) {
return Array.isArray... | JavaScript | 0 | @@ -1627,138 +1627,578 @@
ache
- = expand(this.data.cache, options.basePath).filter(function (path) %7B%0A return ignored.indexOf(path) === -1;%0A %7D);
+Patterns = array(this.data.cache %7C%7C %5B%5D);%0A if (typeof this.data.cache === 'object') %7B%0A this.data.cache.patterns = ar... |
f2fa37a5c19107fb6647b3a83e7668ea276c63d8 | use clean vs custom function to cleanup tar tempdir. | tasks/compress.js | tasks/compress.js | /**
* Task: compress
* Description: Compress files
* Dependencies: zipstream / tar / fstream
* Contributor(s): @ctalkington / @tkellen
* Inspired by: @jzaefferer (jquery-validation)
*/
module.exports = function(grunt) {
var _ = grunt.utils._,
async = grunt.utils.async;
grunt.registerMultiTask("compress", "Co... | JavaScript | 0 | @@ -2365,514 +2365,8 @@
);%0A%0A
- function rmdir(dir) %7B%0A var list = fs.readdirSync(dir);%0A for(var i = 0; i %3C list.length; i++) %7B%0A var filename = path.join(dir, list%5Bi%5D);%0A var stat = fs.statSync(filename);%0A%0A if(filename == %22.%22 %7C%7C filename == %22..%22) %7B... |
2b766a2eb70990ebefae632e940b254dddc321e6 | remove callback override | src/js/connector/jsonp.js | src/js/connector/jsonp.js | /**
* @fileoverview This Connector make connection between FileManager and file server api at old browser.<br>
* This Connector use hidden iframe.
* @dependency ne-code-snippet 1.0.3, jquery1.8.3
* @author NHN entertainment FE dev team Jein Yi <jein.yi@nhnent.com>
*/
ne.util.defineNamespace('ne.component.Upl... | JavaScript | 0.000001 | @@ -2322,19 +2322,8 @@
Name
- + 'Remove'
,%0A
@@ -2521,32 +2521,38 @@
this, callback)
+, true
);%0A%0A $.aj
|
fb2335a9066a27a5bc178ed7a3e2dab6ec38a7d6 | fix filepath in debug comment | tasks/includes.js | tasks/includes.js | /*
* grunt-includes
* https://github.com/vanetix/grunt-includes
*
* Copyright (c) 2013 Matt McFarland
* Licensed under the MIT license.
*/
module.exports = function(grunt) {
/**
* Dependencies
*/
var path = require('path');
/**
* Regex for parsing includes
*/
var regex = /^(\s*)include\s+... | JavaScript | 0 | @@ -2953,23 +2953,16 @@
-line = recurse(
+var f =
path
@@ -3000,16 +3000,42 @@
ts.pos%5D)
+;%0A line = recurse(f
, opts,
@@ -3104,25 +3104,25 @@
'File: ' +
-p
+f
;%0A
@@ -3145,17 +3145,17 @@
OF: ' +
-p
+f
;%0A
|
a3f7bf4ef60fd4efac83f20d2da1af4ce6eba859 | Set max bounds on map | source/javascripts/_choropleth.js | source/javascripts/_choropleth.js | //= require "_core"
ratgraph.choropleth = function (id, dimension, group, colorScale, geoJson) {
var _id = id;
var _chart = dc.leafletChoroplethChart(id);
var _dimension = dimension;
var _group = group;
var _colorScale = colorScale;
var _geoJson = geoJson;
_chart._init = function() {
var mapSize = ratgraph.... | JavaScript | 0 | @@ -288,16 +288,167 @@
on() %7B%0A%0A
+%09%09var southWest = L.latLng(40.4856, -74.27238),%0A%09%09 northEast = L.latLng(40.92026, -73.69011),%0A%09%09 bounds = L.latLngBounds(southWest, northEast);%0A%0A
%09%09var ma
@@ -498,16 +498,16 @@
in, 1);%0A
-
%0A%09%09d3.se
@@ -676,16 +676,79 @@
_group)%0A
+%09 ... |
8898830b90740bfcf107ae78a7d4418d9743d5ff | remove indentation of filename in printout | replace.js | replace.js | var fs = require("fs"),
path = require("path"),
colors = require("colors"),
minimatch = require("minimatch");
module.exports = function(options) {
var lineCount = 0,
limit = 400; // chars per line
if (!options.color) {
options.color = "cyan";
}
var flags = "g"; // global m... | JavaScript | 0.000015 | @@ -4150,15 +4150,8 @@
ut =
- %22 %22 +
fil
@@ -4928,20 +4928,16 @@
le.log(%22
-
%22 + (i
|
0f39d34b18ae339bafc062335afedfee079fd270 | Add test for duplicateProperty & local variables | test/specs/linters/duplicate_property.js | test/specs/linters/duplicate_property.js | 'use strict';
var path = require('path');
var expect = require('chai').expect;
var linter = require('../../../lib/linters/' + path.basename(__filename));
var parseAST = require('../../../lib/linter').parseAST;
describe('lesshint', function () {
describe('#duplicateProperty()', function () {
it('should all... | JavaScript | 0 | @@ -2395,16 +2395,436 @@
%7D);
+%0A%0A it('should ignore local variables', function () %7B%0A var source = '.foo %7B @a: red; @b: 3px; %7D';%0A var result;%0A var ast;%0A%0A var options = %7B%0A exclude: %5B%5D%0A %7D;%0A%0A a... |
a2d1a10f7c5ffa29944885ef6794700a5b8ca6ec | make sure tweetable | data/data.js | data/data.js | var request = require('request');
var forismatic = require('forismatic-node')();
var fs = require('fs');
var hexu = require('hexu');
var quotes = JSON.parse(fs.readFileSync(__dirname + "/data.json")) || [];
module.exports.quotes = quotes;
// console.log(hexu.blue("*** Ice is mining data ***"));
function pushData(cb)... | JavaScript | 0.000036 | @@ -1036,16 +1036,24 @@
if(err)
+ %7B%0A
throw e
@@ -1056,16 +1056,62 @@
ow err;%0A
+ %7D%0A if(quote.quoteText.length %3C= 140) %7B%0A
co
@@ -1229,16 +1229,22 @@
eText);%0A
+ %7D%0A
%7D);%0A%7D%0A
|
f82d3ae716a30283a98310838c24d85f320e6212 | add steps | Algorithms/JS/integers/staircase.js | Algorithms/JS/integers/staircase.js | // Your teacher has given you the task of drawing a staircase structure. Being an expert programmer, you decided to make a program to draw it for you instead. Given the required height, can you print a staircase as shown in the example?
// Input
// You are given an integer depicting the height of the staircase.
// O... | JavaScript | 0.000566 | @@ -553,16 +553,361 @@
e it.%0A%0A%0A
+%0A// create a loop that runs as many times as n starting from 1. (starting from zero ads an extra empty space)%0A // create a variable that gets the difference of n minus the current level we're on%0A // create a variable that stores as many spaces as the difference and as man... |
06e668c3c21001e96e8eaf92679b7fd81a80409d | Put years in an inverse order | packages/ember-forms/lib/fields/date.js | packages/ember-forms/lib/fields/date.js | require("ember-forms/fields/base");
var e = Ember.empty;
EF.DateComponent = Ember.ContainerView.extend({
childViews: ['dayView', 'monthView', 'yearView'],
value: Ember.computed(function(key, value){
var day, month, year;
if (arguments.length === 1){
day = this.getPath('dayView.value');
mont... | JavaScript | 0.999315 | @@ -2164,17 +2164,8 @@
r i=
-1920; i%3C=
curr
@@ -2174,18 +2174,27 @@
tYear; i
-++
+%3E=1920; i--
)%7B%0A
|
137bc5d46f3bec6597c382d14f0a0729e3323122 | Use a class name for date fields | packages/ember-forms/lib/fields/date.js | packages/ember-forms/lib/fields/date.js | require("ember-forms/fields/base");
require("ember-forms/controls/unbound_select");
var e = Ember.empty;
EF.DateComponent = Ember.ContainerView.extend({
childViews: ['dayView', 'monthView', 'yearView'],
tagName: 'span',
value: Ember.computed(function(key, value){
var day, month, year;
if (arguments.len... | JavaScript | 0.000007 | @@ -218,16 +218,40 @@
'span',
+%0A classNames: %5B'date'%5D,
%0A%0A valu
|
261e3a887db6f62d178d52d51e8ae7b9db062353 | Move shuttle paths to qa | app/AppSettings.js | app/AppSettings.js | module.exports = {
/* APP CONFIG */
APP_NAME: 'Campus Mobile',
GOOGLE_ANALYTICS_ID: 'GOOGLE_ANALYTICS_ID_PH',
/* ENDPOINTS */
/* QA */
AUTH_SERVICE_API_URL: 'https://3hepzvdimd.execute-api.us-west-2.amazonaws.com/dev/v1/access-profile',
ACADEMIC_TERM_API_URL: 'https://m9zc9vs4f1.execute-api.us-west-2.amazonaws... | JavaScript | 0.000008 | @@ -904,16 +904,110 @@
.json',%0A
+%09SHUTTLE_PATHS_URL: 'https://11wl1gc3v9.execute-api.us-west-2.amazonaws.com/dev/polylines/',%0A%0A
%09/* PROD
@@ -1123,146 +1123,8 @@
/',%0A
-%0A%09/* DEV ROUTE, REMOVE BEFORE DEPLOYING! */%0A%09SHUTTLE_PATHS_URL: 'https://11wl1gc3v9.execute-api.us-west-2.amazonaws.com/dev/polyli... |
718565ac4dbdf4b8187ee17f9dd12ff4e047fc0a | Remove waypoint library from AppbaseList | app/AppbaseList.js | app/AppbaseList.js | import { default as React, Component } from 'react';
import { render } from 'react-dom';
var Appbase = require('appbase-js');
var helper = require('./helper.js');
import {List} from './component/List.js';
var Waypoint = require('react-waypoint');
var {EventEmitter} = require('fbemitter');
var emitter = new EventEmitte... | JavaScript | 0.000001 | @@ -202,51 +202,8 @@
s';%0A
-var Waypoint = require('react-waypoint');%0A%0A
var
|
3d6b42503fef082bf4532cdd7f5c7b0bc7a6f1ad | Add support for custom deserialization | src/lib/buslib/lib/bus.js | src/lib/buslib/lib/bus.js | "use strict";
const amqp = require("amqplib");
const { AsyncEventEmitter } = require("emitter");
const { synchronize } = require("misc");
class Bus extends AsyncEventEmitter {
constructor(synchronized = false) {
super();
this.config = {};
this.connection = null;
this.channel = nul... | JavaScript | 0 | @@ -1033,16 +1033,32 @@
e = true
+, type = %22topic%22
) %7B%0A
@@ -1270,23 +1270,20 @@
e(name,
-%22topic%22
+type
, %7B dura
@@ -1594,39 +1594,36 @@
ed before assert
-Exchang
+Queu
e%22);%0A
@@ -2407,36 +2407,31 @@
-async _handleMessage(queue,
+_deserializeMsgContent(
msg)
@@ -2468,24 +24... |
b2447b126aa111c3214b216d470cbf9cc0cf1eef | test fixes (#2532) | test/server/cards/05-UotE/PeasantsAdvice.spec.js | test/server/cards/05-UotE/PeasantsAdvice.spec.js | fdescribe('Peasant\'s Advice', function() {
integration(function() {
describe('Peasant\'s Advice\'s ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
inPlay: ['seppun-guard... | JavaScript | 0 | @@ -2811,32 +2811,117 @@
amefulDisplay);%0A
+ this.spy = spyOn(this.player2.player, 'moveCard').and.callThrough();%0A
@@ -3577,49 +3577,85 @@
is.s
-hibaTsukune.location).toBe('dynasty deck'
+py).toHaveBeenCalledWith(this.shibaTsukune, 'dynasty deck', %7B bottom: false %7D
);%0A
|
2ef5a2ba6f7bb9b897f109986f7c1868d0d39bc4 | Add bounding volume to Advanced example in the Sandbox. | Examples/Sandbox/CodeSnippets/Advanced.js | Examples/Sandbox/CodeSnippets/Advanced.js | (function() {
"use strict";
/*global Cesium,Sandbox*/
Sandbox.CustomRendering = function (scene, ellipsoid, primitives) {
this.code = function () {
Sandbox.ExamplePrimitive = function(position) {
var ellipsoid = Cesium.Ellipsoid.WGS84;
this._ellipsoid = ... | JavaScript | 0 | @@ -481,16 +481,67 @@
fined;%0A%0A
+ this._boundingVolume = undefined;%0A%0A
@@ -620,16 +620,16 @@
ition);%0A
-
%0A
@@ -1758,16 +1758,390 @@
* 0.1;%0A
+ var x = zLength * 0.1;%0A var y = zLength * 0.5;%0A var z = zLength;%0A%0A ... |
2606e26cfb5c9e6e1ec24432c19188f9e07da5d5 | Use the new rouotes in the app | config/routes.js | config/routes.js | 'use strict'
module.exports.mount = app => {
const routes = require('../routes')
const authRoutes = require('../routes/auth')
app.use('/', routes)
app.use('/auth', authRoutes)
}
| JavaScript | 0 | @@ -87,92 +87,200 @@
nst
-authRoutes = require('../routes/auth')%0A%0A%09app.use('/', routes)%0A%09app.use('/auth', auth
+%7B%0A%09%09loginRoutes,%0A%09%09registerRoutes,%0A%09%09secretRoutes%0A%09%7D = require('../api/indexRoutes')%0A%0A%09app.use('/secret', secretRoutes)%0A%09app.use('/auth/login', loginRoutes)%0A%... |
985734eeb5f7af593f97baa5820409379e5a48e1 | add the bet routes | config/routes.js | config/routes.js | /**
* Route Mappings
* (sails.config.routes)
*
* Your routes map URLs to views and controllers.
*
* If Sails receives a URL that doesn't match any of the routes below,
* it will check for matching files (images, scripts, stylesheets, etc.)
* in your assets directory. e.g. `http://localhost:1337/images/foo.jpg`... | JavaScript | 0.000001 | @@ -2088,16 +2088,144 @@
FindOne'
+,%0A%0A 'GET /bets': 'BetController.boFind',%0A 'GET /bets/new': 'BetController.boNew',%0A 'GET /bets/:id': 'BetController.boFindOne'
%0A%0A /***
|
6a211ca900973bf3d96f3ad8f9bc4da25eaf3a06 | Update android.js | app/app/android.js | app/app/android.js | if (window.innerWidth && window.innerWidth <= 600) {
$(document).ready(function(){
$('#header ul').addClass('hide');
$('#header').append('<div class="leftButton" onclick="toggleMenu()">Menu</div>');
});
function toggleMenu() {
$('#header ul').toggleClass('hide');
$('#head... | JavaScript | 0.000002 | @@ -186,27 +186,26 @@
nclick=%22
-toggleMenu(
+about.html
)%22%3EMenu%3C
|
29c2bb8364da29389120c1f93db847a2baa52721 | fix border radius | libs/views/tabs.js | libs/views/tabs.js | module.exports=require('base/view').extend({
name:'Tabs',
overflow:'none',
props:{
isTop:true
},
onIsTop:function(){
if(this.isTop){
this.padding = [26,0,0,0]
}
else{
this.padding = [0,0,26,0]
}
},
isTop:true,
tools:{
Tab:require('tools/tab').extend({
onTabSelected:function(e){
this.vie... | JavaScript | 0.000002 | @@ -4317,17 +4317,17 @@
6,6,
-1,1%5D:%5B1,1
+2,2%5D:%5B2,2
,6,6
|
89fdbddb50a3fc0233afbef5db6b5c2534b4f96e | Update feedvalue_render.js | Views/js/widgets/feedvalue/feedvalue_render.js | Views/js/widgets/feedvalue/feedvalue_render.js | /*
All emon_widgets code is released under the GNU General Public License v3.
See COPYRIGHT.txt and LICENSE.txt.
---------------------------------------------------------------------
Part of the OpenEnergyMonitor project:
http://openenergymonitor.org
Author: Trystan Lea: trystan.lea@googlemail.c... | JavaScript | 0.000001 | @@ -1426,18 +1426,16 @@
decimals
-==
%3C0)%0A
|
d7da1088064119838aeef1caa54295d97d08f8f8 | add more pseudo examples | src/pseudos.js | src/pseudos.js | !function () {
function children(node) {
var i, nodes = node.childNodes, r = [], l;
for (i = 0, l = nodes.length; i < l; i++) {
var item = nodes[i];
nodes[i].nodeType == 1 && r.push(nodes[i]);
}
return r;
}
qwery.pseudos['last-child'] = function (el, p, childs) {
return el.parentNo... | JavaScript | 0 | @@ -1067,13 +1067,311 @@
e;%0A %7D;%0A
+%0A qwery.pseudos.checked = function (el) %7B%0A return el.checked;%0A %7D;%0A%0A qwery.pseudos.enabled = function (el) %7B%0A return !el.disabled;%0A %7D;%0A%0A qwery.pseudos.disabled = function (el) %7B%0A return el.disabled;%0A %7D;%0A%0A qwery.pseudos.empty ... |
4352ffe54bdf46f45a03d9676bbfe4eca1bcf1ca | Fix bad regex | src/publish.js | src/publish.js | const chalk = require('chalk');
const inquirer = require('inquirer');
const child = require('child_process');
const path = require('path');
const checkMissingFiles = require('./checkMissingFiles');
const fileExists = require('./fileExists');
/**
* Publishes a new gist via gistup. First verifies that all
* expected ... | JavaScript | 0.004475 | @@ -3125,23 +3125,21 @@
/To
-git@
gist
+%5C
.github
+%5C
.com
@@ -3150,16 +3150,17 @@
-z0-9%5D+)
+%5C
.git/)%5B1
|
30b0f454ca2df854e5a3a39ae13293649f2a9268 | Rename state files | src/defaults.js | src/defaults.js | 'use babel'
/* @flow */
import {Template} from 'string-templates'
export const CONFIG_FILE_NAME: string = '.ucompilerrc'
export const DEFAULT_IGNORED: Array<string> = [
'node_modules',
'bower_components',
'coverage',
't{e,}mp',
'*.min.js',
'*.log',
'bundle.js',
'fixture{-*,}.{js,jsx}',
'spec',
'... | JavaScript | 0 | @@ -117,10 +117,66 @@
iler
-rc
+'%0Aexport const STATE_FILE_NAME: string = '.ucompiler.state
'%0A%0Ae
|
ddeda5d4d6ab7bf50e2d92892de8647cf5f9e63f | Rename variable | src/devTools.js | src/devTools.js | const ActionTypes = {
PERFORM_ACTION: 'PERFORM_ACTION',
RESET: 'RESET',
ROLLBACK: 'ROLLBACK',
COMMIT: 'COMMIT',
SWEEP: 'SWEEP',
TOGGLE_ACTION: 'TOGGLE_ACTION',
JUMP_TO_STATE: 'JUMP_TO_STATE',
RECOMPUTE_STATES: 'RECOMPUTE_STATES'
};
const INIT_ACTION = {
type: '@@INIT'
};
function toggle(obj, key) {
... | JavaScript | 0.000003 | @@ -1887,37 +1887,32 @@
reducer, monitor
-State
Reducer, initial
@@ -2086,37 +2086,32 @@
orState: monitor
-State
Reducer(undefine
@@ -4406,29 +4406,24 @@
te = monitor
-State
Reducer(moni
@@ -5167,37 +5167,32 @@
edStore, monitor
-State
Reducer) %7B%0A let
@@ -5650,37 +5650,32 @@
Reducer, monitor
-State
Reduce... |
da2ee5a4c46a362bd8a51aaedbf19488a2e7b2e1 | Fix clean function | src/commands/eval.js | src/commands/eval.js | const Discord = require("discord.js");
const Command = require("../command.js");
const moment = require("moment");
const {inspect} = require("util");
const {post} = require("snekfetch");
class Eval extends Command {
constructor(client) {
super(client, {
name: "eval",
type: "utility"... | JavaScript | 0.000082 | @@ -882,51 +882,51 @@
ace(
-/%5B%60@%5D/g, %22$&%5Cu200b%22).replace(reg, %22%5BSECRET%5D
+reg, %22%5BSECRET%5D%22).replace(/%5B%60@%5D/g, %22$&%5Cu200b
%22).r
|
1d8fa1132d2be6ec64a2126cfb5ab787d401edb7 | Fix small output formatting error | src/commands/eval.js | src/commands/eval.js | const Discord = require("discord.js");
const Command = require("../command.js");
const moment = require("moment");
const {inspect} = require("util");
const {post} = require("snekfetch");
class Eval extends Command {
constructor(client) {
super(client, {
name: "eval",
type: "utility"... | JavaScript | 0.000088 | @@ -1311,17 +1311,17 @@
uffix =
-%60
+%22
**OUTPUT
@@ -1328,19 +1328,9 @@
**:
-%5C%60%5C%60%5C%60js%5Cn%60
+%22
;%0A
@@ -1473,17 +1473,17 @@
uffix =
-%60
+%22
**ERROR*
@@ -1489,19 +1489,9 @@
**:
-%5C%60%5C%60%5C%60xl%5Cn%60
+%22
;%0A
@@ -2676,16 +2676,66 @@
fix += %60
+%5C%60%5C%60%5C%60$%7Bsuffix === ... |
48625db47fd0dd4b4ced29d8409ed2e708f190ff | fix (init): fix typo in init error msg | src/commands/init.js | src/commands/init.js | var fs = require('fs');
var ff = require('ff');
var path = require('path');
var color = require('cli-color');
var commands = require('./index');
var apps = require('../apps');
var BaseCommand = require('../util/BaseCommand').BaseCommand;
var UsageError = require('../util/BaseCommand').UsageError;
var DestinationExi... | JavaScript | 0.000006 | @@ -1634,16 +1634,17 @@
only of
+
' +%0A
|
1bf793b32fb7a69a8f10324afbe8b2dc40b9cbfc | Fix fadeouts sometimes being cut short. | src/dynamics.js | src/dynamics.js |
// Functions embedded in Gadfly plots to add interactivity.
// Clicking an entry in a color key toggles visibility of the data within that
// group.
function toggle_color_group(name)
{
geoms = document.getElementsByClassName('color_group_' + name);
entry = document.getElementById('color_key_' + name);
st... | JavaScript | 0 | @@ -3714,32 +3714,235 @@
return;%0A %7D%0A%0A
+ // Skip this if the off animation isn't actually finished.%0A elapsed = off_anim.getCurrentTime() - off_anim.getStartTime();%0A if (elapsed %3C off_anim.getSimpleDuration()) %7B%0A return;%0A %7D%0A%0A
geoms = docu
|
75efe138b9ff22c4fe2a616a4161edaf87ac265e | add fancy human readable output | request.js | request.js | // --------------------------------------------------------------------------------------
var exp = {}
const request = require('request');
const url_base = 'https://etlog.cesnet.cz:8443/api';
// --------------------------------------------------------------------------------------
// get invalid records
// -----------... | JavaScript | 0.999686 | @@ -4677,20 +4677,41 @@
et = %22%22;
+%0A var longest = 0;
%0A%0A
+//
for(var
@@ -4726,16 +4726,18 @@
data)%0A
+//
ret +=
@@ -4882,16 +4882,489 @@
%22%5Cn%22;%0A%0A
+ // fancy version%0A // =======================%0A%0A for(var item in data) %7B%0A if(data%5Bitem%5D.username.length %3E longest)%0A ... |
2c343f896e7734e8fbc493a8072786d0414f9b28 | Fix timing issue in firefox where cycle wouldn't start before replay | src/restart.js | src/restart.js | import {run} from '@cycle/core';
import Rx from 'rx';
import restartable from './restartable';
function restart (main, drivers, {sources, sinks}, isolate = {}, timeToTravelTo = null) {
sources.dispose();
sinks && sinks.dispose();
if (typeof isolate === 'function' && 'reset' in isolate) {
isolate.reset();
... | JavaScript | 0.000001 | @@ -1223,16 +1223,19 @@
t();%0A %7D
+, 1
);%0A%0A re
|
e33887ef4ced9e7980b088598661e44318d63d41 | fix script error | clean-scripts.config.js | clean-scripts.config.js | const childProcess = require('child_process')
const util = require('util')
const execAsync = util.promisify(childProcess.exec)
module.exports = {
build: [
{
js: [
`file2variable-cli app.template.html -o variables.ts --html-minify`,
`tsc`,
`webpack --display-modules`
],
... | JavaScript | 0.000001 | @@ -533,24 +533,25 @@
o index.post
+c
ss.css%60,%0A
@@ -577,16 +577,17 @@
dex.post
+c
ss.css -
|
0d1f3b20f36f5f7000c0fa4aacbe334a548cef57 | Call callback even if same as last error | src/rollbar.js | src/rollbar.js | var RateLimiter = require('./rateLimiter');
var Queue = require('./queue');
var Notifier = require('./notifier');
var Telemeter = require('./telemetry');
var _ = require('./utility');
/*
* Rollbar - the interface to Rollbar
*
* @param options
* @param api
* @param logger
*/
function Rollbar(options, api, logger,... | JavaScript | 0.000001 | @@ -2446,24 +2446,64 @@
or(item)) %7B%0A
+ if (item.callback) item.callback();%0A
return;%0A
|
0602f4f36d181448167840ee4e4ae77afe8041a1 | replace timeout default value 30s to 120s | src/config/config.js | src/config/config.js | 'use strict';
/**
* default config
* @type {Object}
*/
let config = {
port: 8360,
host: '',
encoding: 'utf-8',
pathname_prefix: '',
pathname_suffix: '.html',
proxy_on: false,
hook_on: true,
cluster_on: false,
service_on: true, //Service available
timeout: 30, //30 seconds
auto_reload: fal... | JavaScript | 0.005151 | @@ -281,15 +281,17 @@
ut:
-3
+12
0, //
-3
+12
0 se
|
16c11e33df29501c8341804e4dd0a0ad97b34d2a | Update squidroot to the new devstep init path | plugin.js | plugin.js | squidRoot = _currentPluginPath;
squidShared = squidRoot + "/shared";
devstep.on('configLoaded', function(config) {
config
.addLink('squid3:squid3.dev')
.setEnv('http_proxy', 'http://squid3.dev:3128')
.setEnv('https_proxy', 'http://squid3.dev:3128')
.setEnv('HTTPS_PROXY_CERT', 'squid3.dev.crt')
... | JavaScript | 0 | @@ -452,11 +452,16 @@
etc/
-my_
+devstep/
init
|
6e049f9bbc20107c496af54663253bc1f554412b | make use of new location field color map feature | lib/components/form/connect-location-field.js | lib/components/form/connect-location-field.js | import { connect } from 'react-redux'
import * as apiActions from '../../actions/api'
import * as locationActions from '../../actions/location'
import { getActiveSearch, getShowUserSettings } from '../../util/state'
/**
* This higher-order component connects the target (styled) LocationField to the
* redux store.
... | JavaScript | 0.000001 | @@ -1308,16 +1308,68 @@
ocoder,%0A
+ layerColorMap: config.geocoder.resultsColors,%0A
ne
|
100c1d62160bc53210f50732875aa911ec4ed982 | Fix leg focus, address some PR comments. | lib/components/mobile/batch-results-screen.js | lib/components/mobile/batch-results-screen.js | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { Button } from 'react-bootstrap'
import { connect } from 'react-redux'
import styled from 'styled-components'
import Map from '../map/map'
import Icon from '../narrative/icon'
import NarrativeItineraries from '../narrative/narrative-it... | JavaScript | 0 | @@ -347,16 +347,33 @@
iveError
+, getActiveSearch
%7D from
@@ -391,16 +391,16 @@
/state'%0A
-
%0Aimport
@@ -806,10 +806,24 @@
om:
-25
+10px;%0A left: 10
px;%0A
@@ -848,23 +848,8 @@
te;%0A
- right: 10px;%0A
z-
@@ -866,16 +866,107 @@
999;%0A%60%0A%0A
+/**%0A * This component renders the mobile view of it... |
4fc1ed003d8d74c10f67bc079fde2bba688d1ee3 | Check before recreating Listeners. | src/core/Listener.js | src/core/Listener.js | /*
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | 0 | @@ -3255,65 +3255,77 @@
-// TODO: check that not already a Listener%0A return
+return foam.core.Listener.isInstance(o) ?%0A o :%0A
foa
@@ -3349,16 +3349,17 @@
reate(o)
+
;%0A
|
7b0163641ab1d5079ef69420c312e250e178358f | Version error finally fixed. Hallelujah jesusfish amen. | app/js/services.js | app/js/services.js | 'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
var animalsServices = angular.module('animalsServices', ['ngResource']);
animalsServices.factory('Animal', ['$resource', function($resource){
return $resource('animals/:animalId.json', {}, {
query: ... | JavaScript | 0 | @@ -185,16 +185,58 @@
ce'%5D);%0A%0A
+animalsServices.value('version', '0.1');%0A%0A
animalsS
|
937348ea4cd0eed5565e856653e9b92e74b3d385 | update app/lib/scripts -- globby moved to toolz | app/lib/scripts.js | app/lib/scripts.js | //
// █████╗ ██╗ ██╗██╗██╗ ███████╗███████╗███████╗
// ██╔══██╗██║ ██╔╝██║██║ ██╔════╝██╔════╝╚══███╔╝
// ███████║█████╔╝ ██║██║ █████╗ █████╗ ███╔╝
// ██╔══██║██╔═██╗ ██║██║ ██╔══╝ ██╔══╝ ███╔╝
// ██║ ██║██║ ██╗██║███████╗███████╗███████╗███████╗
// ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══... | JavaScript | 0 | @@ -1011,14 +1011,22 @@
re('
-../src
+toolz/src/glob
/glo
|
4818c46256de26e3357f3e05c4d0986113a7efa8 | debug data amigo cloud | client/geocode/index.js | client/geocode/index.js | var config = require('config');
var log = require('./client/log')('geocode');
var get = require('./client/request').get;
var southWest = [-123.099060058594, 36.745486924699];
var northEast = [-121.192932128906, 38.182068998322];
/**********tismart **********************/
var dev_amigo_token = "A:m8SOB7KwYWuuWAeYEHHjB... | JavaScript | 0.000001 | @@ -333,16 +333,304 @@
2LLjS%22;%0A
+var url_search_amigo = %22https://www.amigocloud.com/api/v1/me/geocoder/search%22;%0Avar data_boundary = %7B%0A %22min_lat%22 : 36.155617833819,%0A %22min_lon%22 : -123.607177734375,%0A %22max_lat%22 : 38.826870521381,%0A %22max_lon%22 : -120.701293945312%0A%7D;%0A%0A%0... |
0568cbb652a4f6ab3d6b5a4193d24ab817655f79 | fix buildAggregatePipeline | lib/query/hypernova/buildAggregatePipeline.js | lib/query/hypernova/buildAggregatePipeline.js | import { _ } from 'meteor/underscore';
import {SAFE_DOTTED_FIELD_REPLACEMENT} from './constants';
export default function (childCollectionNode, filters, options, userId) {
let containsDottedFields = false;
const linker = childCollectionNode.linker;
const linkStorageField = linker.linkStorageField;
cons... | JavaScript | 0 | @@ -1900,16 +1900,44 @@
t(value)
+ && !(value instanceof Date)
) %7B%0A
|
217d384ee10d52cdc81629e1d6346236e16fe3fa | change test | WebRTC/test/FeedbackTest.js | WebRTC/test/FeedbackTest.js |
var io = require('socket.io-client');
var ninjaSocket;
var WebdriverIO = require('webdriverio'),
browserB = WebdriverIO.remote({
host: 'ondemand.saucelabs.com',
logLevel: 'silent',
port:80,
user: 'CoderDojoDev',
key: 'd079bf09-33be-4565-aea4-f07ffd191... | JavaScript | 0.000003 | @@ -5292,22 +5292,20 @@
handler-
-bright
+dark
','displ
@@ -5866,14 +5866,12 @@
ler-
-bright
+dark
')%0A
|
d085223a152d43369d8dc48f290bba392cfaa506 | Update rss | rss/rss.js | rss/rss.js | var request = require('request'),
FeedParser = require('feedparser'),
config = require('../server/config/config'),
Iconv = require('iconv').Iconv,
zlib = require('zlib'),
async = require('async'),
moment = require('moment'),
log4js = require('log4js');
log4js.configure(config.log4js);
log4j... | JavaScript | 0 | @@ -5649,29 +5649,15 @@
post
-.length:',post.length
+:',post
);%0A
|
db7ce8e657444530d0b230527eb8dcc1f11da15b | Use new ol.style in dynamic-data example | examples/dynamic-data.js | examples/dynamic-data.js | goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.geom.MultiPoint');
goog.require('ol.layer.Tile');
goog.require('ol.shape');
goog.require('ol.source.MapQuestOpenAerial');
var map = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.MapQuest... | JavaScript | 0 | @@ -216,16 +216,80 @@
rial');%0A
+goog.require('ol.style.Fill');%0Agoog.require('ol.style.Stroke');%0A
%0A%0Avar ma
@@ -658,36 +658,76 @@
e(5,
- %7B
%0A
-color: 'yellow'%0A%7D, %7B%0A
+ new ol.style.Fill(%7Bcolor: 'yellow'%7D),%0A new ol.style.Stroke(%7B
colo
@@ -735,18 +735,16 @@
: 'red',
-%0A
width: ... |
8f9fefa9f419c9817676df61f3e4535bd6d5b8a4 | Fix linter issues (#183) | res/dom.js | res/dom.js | gpf.require.define({}, function () {
"use strict";
return {
addEventsListener: function (events) {
Object.keys(events).forEach(function (eventKey) {
var eventParts = eventKey.split("@"),
eventSelector = eventParts[0],
eventName = even... | JavaScript | 0 | @@ -49,16 +49,248 @@
rict%22;%0A%0A
+ function _addEventsListener (selector, eventName, handler) %7B%0A %5B%5D.slice.call(document.querySelectorAll(selector)).forEach(function (oElement) %7B%0A oElement.addEventListener(eventName, handler);%0A %7D);%0A %7D%0A%0A
retu
@@ -478,22 +478... |
bfaca3367f4ff32acd8ff53bea6e051dcbc0805c | Change denunciation fields. | server/api/denunciation/denunciation.model.js | server/api/denunciation/denunciation.model.js | 'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var DenunciationSchema = new Schema({
name: String,
info: String,
active: Boolean
});
module.exports = mongoose.model('Denunciation', DenunciationSchema); | JavaScript | 0 | @@ -139,41 +139,82 @@
-info: String,%0A active: Boolean
+address: String,%0A date: Date,%0A hour: String,%0A description: String
%0A%7D);
@@ -283,8 +283,9 @@
Schema);
+%0A
|
4563aae50a3f4bf28dfdfc4a3e1d1be412e0305e | Change locale error to locale warning | packages/strapi-admin/admin/src/i18n.js | packages/strapi-admin/admin/src/i18n.js | /**
* i18n.js
*
* This will setup the i18n language files and locale data for your plugin.
*
*/
import { addLocaleData } from 'react-intl';
import { reduce } from 'lodash';
// Import config
import { languages } from './config/languages.json';
/**
* Try to require translation file.
*
* @param language {String... | JavaScript | 0.00003 | @@ -1080,23 +1080,25 @@
console.
-error(%60
+warn(%60%E2%9A%A0%EF%B8%8F
It looks
|
81f93e47e861979554c2bfb05a1700b9aff6a1c7 | Disable default error behavior on girder.login request | clients/web/src/init.js | clients/web/src/init.js | /*global girder:true*/
/*global console:true*/
'use strict';
/*
* Initialize global girder object
*/
var girder = girder || {};
/*
* Some cross-browser globals
*/
if (!window.console) {
var console = {
log: $.noop,
error: $.noop
};
}
_.extend(girder, {
models: {},
collections: {}... | JavaScript | 0 | @@ -6037,32 +6037,57 @@
th%0A %7D
+,%0A error: null
%0A %7D).then
|
de84b123a87ac6aa54e4ffbd148bbafc9d389269 | update years in meta.js, use data.json temporarily | src/data/phl/meta.js | src/data/phl/meta.js | window.OpenBudget = {"data":{"meta":{
"hierarchy": ["Funding Source", "Department", "Expense Type", "Expense Subtype"],
"page_title": "City of Philadelphia Budget",
"description": "",
"h1": "City of Philadelphia",
"h2": "Operating Budget",
"data_link": "https://github.com/CityOfPhiladelphia/open... | JavaScript | 0 | @@ -707,16 +707,19 @@
on%22,%0A
+ //
%22cache_
@@ -786,17 +786,17 @@
%22FY 201
-6
+7
%22,%0A
@@ -842,9 +842,9 @@
%22201
-6
+7
%22%0A
@@ -888,17 +888,17 @@
%22FY 201
-5
+6
%22,%0A
@@ -944,9 +944,9 @@
%22201
-5
+6
%22%0A
|
92d1430d5985cd866464015e0874a0e59401c573 | Fix getElementsByTagName | src/main/webapp/js/cas.js | src/main/webapp/js/cas.js | /**
* Shim for String.prototype.startsWith
* https://github.com/mathiasbynens/String.prototype.startsWith
*/
if (!String.prototype.startsWith) {
(function() {
'use strict'; // needed to support `apply`/`call` with `undefined`/`null`
var defineProperty = (function() {
// IE 8 only supports `Object.definePrope... | JavaScript | 0.997049 | @@ -3882,18 +3882,12 @@
ment
-s
By
-TagName
+Id
('us
@@ -3894,19 +3894,16 @@
ername')
-%5B0%5D
;%0A
|
00618e7609de0840ad25a3d692e97bff82fed776 | Deploy fix. | app/models/User.js | app/models/User.js | 'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const UserSchema = new Schema({
username: {
type: String,
required: true,
unique: true,
},
fullName: {
type: String,
required: true,
unique: true,
},
email: {
type: String,
required: true,
... | JavaScript | 0 | @@ -858,15 +858,9 @@
ema.
-createI
+i
ndex
|
cb59f4e41f8b8104d4b3ab0c9e627e76de9554a4 | Update cmdline.js | examples/node/cmdline.js | examples/node/cmdline.js | // Copyright 2011 Splunk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | JavaScript | 0.000001 | @@ -1415,49 +1415,8 @@
ue;%0A
- console.log(key, value);%0A
|
91d8a884e1f630648596af7ac83e8c95b75edff3 | update examples | src/docs/examples.js | src/docs/examples.js | export default {
SimpleLineChart: '//jsfiddle.net/x1yoboc7/612/embedded/result,js,css,html,resources/',
TinyLineChart: '//jsfiddle.net/bc5kbskj/embedded/result,js,css,html,resources/',
VerticalLineChart: '//jsfiddle.net/j1Le1dLe/embedded/result,js,css,html,resources/',
BiaxialLineChart: '//jsfiddle.net/j1Le1dLe... | JavaScript | 0.000001 | @@ -3644,16 +3644,19 @@
wpLb0e7/
+49/
embedded
|
f4dcc08de3f6551960cc05e5204cd32ecb2f76e5 | make hid_generic_inout tester have reportLength-sized buffer, since some OSes need that | examples/device/hid_generic_inout/hid_test.js | examples/device/hid_generic_inout/hid_test.js | var HID = require('node-hid');
var devices = HID.devices();
var deviceInfo = devices.find( function(d) {
var isNRF = d.vendorId===0Xcafe && d.productId===0X4004;
return isNRF;
});
if( deviceInfo ) {
console.log(deviceInfo)
var device = new HID.HID( deviceInfo.path );
device.on("data", function(data) {console... | JavaScript | 0 | @@ -181,16 +181,36 @@
RF;%0A%7D);%0A
+var reportLen = 64;%0A
if( devi
@@ -326,16 +326,17 @@
(data) %7B
+
console.
@@ -343,17 +343,35 @@
log(data
-)
+.toString('hex'));
%7D);%0A%0A%09de
@@ -456,57 +456,131 @@
%7B%0A%09%09
-device.write(%5B0x00, 0x01, 0x01, 0x05, 0xff, 0xff%5D
+var buf = Array(reportLen);%0A%09%... |
cf93d0eb073a184ee06c2aa56d16386e2e074947 | Clean up config, only build once | src/configPassthrough.js | src/configPassthrough.js | import fs from 'fs'
import * as babel from 'babel-core'
import _eval from 'eval'
import babelConfig from './babelConfig'
import log from './log'
const configFile = 'bastion.conf.js'
export default function configPassthrough (name, config) {
if (fileExists(configFile)) {
log.verbose('found config file')
con... | JavaScript | 0 | @@ -156,14 +156,27 @@
figF
-ile =
+ns = readConfigFns(
'bas
@@ -188,16 +188,17 @@
conf.js'
+)
%0A%0Aexport
@@ -260,249 +260,149 @@
if (
-fileExists(configFile)) %7B%0A log.verbose('found config file')%0A%0A const source = babel.transformFileSync(configFile, babelConfig(true)).code%0A const fns = _eval(so... |
178ed3e5f9c6b39f55c79b39c2f2f24c09578489 | add description for #1245 | examples/js/cell-edit/cell-edit-hook-table.js | examples/js/cell-edit/cell-edit-hook-table.js | /* eslint max-len: 0 */
/* eslint no-alert: 0 */
/* eslint guard-for-in: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0;... | JavaScript | 0 | @@ -905,16 +905,672 @@
rue;%0A%7D%0A%0A
+function onBeforeSaveCellAsync(row, cellName, cellValue, done) %7B%0A // if your validation is async, for example: you want to pop a confirm dialog for user to confim%0A // in this case, react-bootstrap-table pass a callback function to you%0A // you are supposed to call thi... |
09620220d89d5ee702e2d7a5f724cb1b09bb6b71 | include user validations | app/models/user.js | app/models/user.js | import Ember from 'ember';
import DS from 'ember-data';
import ENV from 'bracco/config/environment';
import { validator, buildValidations } from 'ember-cp-validations';
const Validations = buildValidations({
// provider: [
// validator('presence', {
// presence: true,
// ignoreBlank: true,
// d... | JavaScript | 0.000001 | @@ -203,19 +203,16 @@
ions(%7B%0A
- //
provide
@@ -213,27 +213,24 @@
rovider: %5B%0A
- //
validator
@@ -237,35 +237,32 @@
('presence', %7B%0A
- //
presence: t
@@ -260,39 +260,36 @@
esence: true,%0A
-//
-
ignoreBlank: tru
@@ -284,35 +284,32 @@
reBlank: true,%0A
- //
disabled: E
@@ -3... |
82c0a955983dd02d1d5fbb886dadda83ec9cc83c | make isAdmin attribute of user modifiable by admin (#2678) | app/models/user.js | app/models/user.js | import { or } from '@ember/object/computed';
import { computed } from '@ember/object';
import { on } from '@ember/object/evented';
import { inject as service } from '@ember/service';
import attr from 'ember-data/attr';
import ModelBase from 'open-event-frontend/models/base';
import { hasMany } from 'ember-data/relation... | JavaScript | 0 | @@ -674,36 +674,16 @@
boolean'
-, %7B readOnly: true %7D
),%0A isU
|
e2a8899cd0f8a25aa7a2bddfe9f564fac51320b5 | Fix whitespaces | src/constants/actions.js | src/constants/actions.js | 'use strict';
const ACTIONS = [
{
name: 'findOne',
type: 'find',
multiple: false,
},
{
name: 'findMany',
type: 'find',
multiple: true,
},
{
name: 'createOne',
type: 'create',
multiple: false,
},
{
name: 'createMany',
type: 'create',
multiple: true,
},
{... | JavaScript | 0.999999 | @@ -25,28 +25,24 @@
IONS = %5B%0A %7B
-%0A
name: 'find
@@ -42,28 +42,24 @@
: 'findOne',
-%0A
type: 'find
@@ -52,36 +52,32 @@
', type: 'find',
-%0A
multiple: false
@@ -72,38 +72,31 @@
tiple: false
-,%0A
%7D,%0A %7B
-%0A
name: 'find
@@ -97,28 +97,24 @@
'findMany',
-%0A
type: 'find
@@ -... |
cc134a297821555c5e1a4c5e797ed605e4a38c24 | add default email for author | src/containers/Author.js | src/containers/Author.js | import { connect } from 'react-redux'
import { denormalizeArticles } from '../utils/denormalize-articles'
import AuthorCollection from '../components/author-page/author-collection'
import AuthorData from '../components/author-page/author-data'
import Helmet from 'react-helmet'
import loggerFactory from '../logger'
impo... | JavaScript | 0.000056 | @@ -859,24 +859,71 @@
ht: 500,%0A%7D%0A%0A
+const defaultEmail = 'contact@twreporter.org'%0A%0A
const logger
@@ -5583,26 +5583,36 @@
'email') %7C%7C
-''
+defaultEmail
,%0A bio: _
|
ad264eb6371f248956d49265876b5d3154911617 | Remove isXManager cruft | app/models/user.js | app/models/user.js | import { not } from '@ember/object/computed';
import DS from 'ember-data';
export default DS.Model.extend({
status: DS.attr('user-status'),
username: DS.attr('string'),
isActive: DS.attr('boolean'),
isStaff: DS.attr('boolean'),
person: DS.belongsTo('person', {async: true}),
permissions: DS.attr(),
isDisa... | JavaScript | 0.999851 | @@ -357,405 +357,8 @@
),%0A
- isConventionManager: DS.attr('boolean'),%0A isSessionManager: DS.attr('boolean'),%0A isRoundManager: DS.attr('boolean'),%0A isScoringManager: DS.attr('boolean'),%0A isGroupManager: DS.attr('boolean'),%0A isPersonManager: DS.attr('boolean'),%0A isAwardManager: DS.attr('boolean'),%0... |
531277b7cb8a1af18f3ff30f6c2f7fb1c0437b00 | Remove comments | app/models/user.js | app/models/user.js | import Ember from 'ember';
const {
inject,
computed,
RSVP
} = Ember;
export default Ember.Object.extend({
auth: inject.service(),
ajax: inject.service(),
skype: inject.service(),
id: null,
person: null,
init() {
this._super(...arguments);
const person = this.get(... | JavaScript | 0 | @@ -3229,1063 +3229,8 @@
%7D);%0A
- // return new RSVP.Promise(resolve =%3E %7B%0A // // const xhr = new XMLHttpRequest();%0A // // xhr.responseType = 'text';%0A // // xhr.setRequestHeader('Authorization', %60bearer $%7Bthis.get('auth.msftAccessTo... |
288ec27a7dcc461405b7c1e497688ade42657eae | Fix demo | demo/demo.js | demo/demo.js | /* globals document, FileReader */
import React, { PureComponent } from 'react';
import ReactDOM from 'react-dom'; // eslint-disable-line
import ReactCrop, { makeAspectCrop } from '../lib/ReactCrop';
/**
* Load the image in the crop editor.
*/
const cropEditor = document.querySelector('#crop-editor');
function load... | JavaScript | 0.000001 | @@ -542,44 +542,8 @@
%3E %7B%0A
- const %7B image %7D = this.state;%0A
@@ -570,39 +570,24 @@
crop:
-makeAspectCrop(
%7B%0A
@@ -648,24 +648,24 @@
height: 50,%0A
+
%7D, i
@@ -666,51 +666,8 @@
%7D,
- image.naturalWidth / image.naturalHeight),
%0A
|
48da7675764392864c53c8b3d56f775555547943 | Use object.assign to extend none class map to avoid undefined template vars | generators/css-framework/modules/class-maps.js | generators/css-framework/modules/class-maps.js | /**
* No CSS Framework
*/
export const noneClassMap = {
defaultButton: 'button default'
};
/**
* Bootstrap
*/
export const bootstrapClassMap = {
// Grid
row: 'row',
col4: 'col-sm-4',
fluidContainer: 'container-fluid',
// Buttons
defaultButton: 'button default',
// Components
panel: 'panel',
p... | JavaScript | 0 | @@ -1,15 +1,17 @@
/
-**%0A *
+/ Base (
No CSS F
@@ -18,20 +18,17 @@
ramework
-%0A */
+)
%0Aexport
@@ -56,38 +56,84 @@
%7B%0A
-defaultButton: 'b
+// Grid%0A row: '',%0A col4: '',%0A fluidContainer: '',%0A%0A // B
utton
+s%0A
default
'%0A%7D;
@@ -128,28 +128,80 @@
default
+Button: '',%0A%0A // Compon... |
b840bd3ce8ba96f89ce5749ee6c9832033d09ec3 | Use title as document.title as well | Titlebar.js | Titlebar.js | "use strict";
class Titlebar {
constructor(title) {
this.element = document.createElement("div");
this.element.classList.add("titlebar");
this.setTitle(title);
}
getElement() {
return this.element;
}
setTitle(value) {
this.getElement().textContent = value;
return this;
}
}
module.exports = Titlebar... | JavaScript | 0.000001 | @@ -267,16 +267,42 @@
value;%0A
+%09%09document.title = value;%0A
%09%09return
|
35a1f82e94f744b33fb3d0ec5907371d70bd63f9 | update request field present checks to use 'in' operator | receive/request.js | receive/request.js | 'use strict'
const validation = require('../lib/validation')
const response = require('./response')
module.exports.validate = function (data, callback) {
checkHoneyPot(data, callback)
checkToParam(data, callback)
}
function checkHoneyPot (data, callback) {
if ('_honeypot' in data) {
response.render('honeyp... | JavaScript | 0 | @@ -640,21 +640,16 @@
%7B%0A if (
-data%5B
'_redire
@@ -654,31 +654,24 @@
rect-to'
-%5D !== undefined
+ in data
&& vali
@@ -802,21 +802,16 @@
%7B%0A if (
-data%5B
'_format
@@ -815,23 +815,16 @@
mat'
-%5D !== undefined
+ in data
&&
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.