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 |
|---|---|---|---|---|---|---|---|
93be0904c1711176447fa758aab2d3c481a25e4b | add closing browser to getting purchased book | lib/amazon/getPurchasedBooks.js | lib/amazon/getPurchasedBooks.js | const parseUrl = require('url').parse;
const URLSearchParams = require('url').URLSearchParams;
const dig = require('object-dig');
const puppeteer = require('puppeteer');
const getPurchasedBooks = async (aid, apw) => {
const browser = await puppeteer.launch({
args: ['--no-sandbox'], headless: false, /* [DEBUG] he... | JavaScript | 0 | @@ -1680,24 +1680,43 @@
%7D%0A %7D%0A %7D%0A
+ browser.close();%0A
return ite
|
a86b3efd5feca4fac036358c943b6a3b9edee317 | Make _movie include the id | pages/_movie/index.js | pages/_movie/index.js | const hyperglue = require('hyperglue')
const html = require('fs').readFileSync(__dirname + '/index.html')
module.exports = function(movie) {
return hyperglue(html, {
'.name': movie.name,
'.desc': movie.desc,
'.movie': {
'data-id': movie.id.toString()
}
})
} | JavaScript | 0.999998 | @@ -103,16 +103,27 @@
x.html')
+.toString()
%0A%0Amodule
@@ -270,16 +270,44 @@
String()
+,%0A%09%09%09'data-name': movie.name
%0A%09%09%7D%0A%09%7D)
|
76db63356074a3c77546e5b421cd78aa571b859e | fix bug with double arrays | lib/api/formtools/parse-form.js | lib/api/formtools/parse-form.js | 'use strict';
/**
* Parse a form field.
* @param {Any} field A form field.
* @param {String} [type='string'] The name of the type.
* @param {Object} options The fields options.
* @param {String} options.fieldType The field type.
* @param {Object} options.form The form DSL.
* @param {String} options.formType The... | JavaScript | 0 | @@ -703,14 +703,23 @@
= %5B
+%5D.concat(
field
-%5D
+)
;%0A
|
4c38e3ed8ec402862ea6b42b02297f8c28ab9b53 | fix typo (#17653) | examples/with-firebase/context/userContext.js | examples/with-firebase/context/userContext.js | import { useState, useEffect, createContext, useContext } from 'react'
import firebase from '../firebase/clientApp'
export const UserContext = createContext()
export default function UserContextComp({ children }) {
const [user, setUser] = useState(null)
const [loadingUser, setLoadingUser] = useState(true) // Help... | JavaScript | 0.000069 | @@ -1254,16 +1254,17 @@
hat shor
+t
hands th
|
cac3d2e92f44fd05093cbfcdb536f1d5aa9f2873 | fix start index | experiments/documentpreview/scripts/viewer.js | experiments/documentpreview/scripts/viewer.js | !function (w) {
PDFJS.getDocument("1609.01714.pdf").then(function (pdf) {
var pageDivs = [];
function createPage(n) {
if (n >= pdf.numPages) {
return;
}
var div = document.createElement("div");
pageDivs.push(div);
var canvas... | JavaScript | 0.000001 | @@ -150,17 +150,16 @@
if (n %3E
-=
pdf.num
@@ -839,17 +839,17 @@
atePage(
-0
+1
);%0A
|
a11f26a564da9827846d4c366faf8ec0fb8d5028 | Add username | challengers.js | challengers.js | // Welcome!
// Add your github user if you accepted the challenge!
var players = [
'raphamorim',
'israelst',
'afonsopacifer',
'rafaelfragosom',
'paulinhoerry',
'enieber',
'alanrsoares',
'viniciusdacal',
'thiagosantana',
'brunodsgn',
'danilorb',
'douglasPinheiro',
'mi... | JavaScript | 0 | @@ -2167,16 +2167,37 @@
jakedex'
+,%0A 'SambitAcharya'
%0A%5D;%0A%0Amod
|
a4d0badaeb2a754163d24412a77855f019aa5bb1 | Fix for bug introduced with r510. Only make the removeChild call if the parentNode is properly set. This way we can zap the grid div contents quickly with the div.innerHTML = "" but still have a valid good destroy() function. | lib/OpenLayers/Tile/Image.js | lib/OpenLayers/Tile/Image.js | // @require: OpenLayers/Tile.js
/**
* @class
*/
OpenLayers.Tile.Image = Class.create();
OpenLayers.Tile.Image.prototype =
Object.extend( new OpenLayers.Tile(), {
/** @type DOMElement img */
img:null,
/**
* @constructor
*
* @param {OpenLayers.Grid} layer
* @param {OpenLayers.Pixel} ... | JavaScript | 0.000004 | @@ -589,32 +589,89 @@
y: function() %7B%0A
+ if (this.img.parentNode == this.layer.div) %7B%0A
this.lay
@@ -696,24 +696,34 @@
(this.img);%0A
+ %7D%0A
this
|
9f9d15528a13c6d75fb44bdb10db5505d5559a3f | remove comments | src/poll_sync_protocol.js | src/poll_sync_protocol.js | /*
* Implementation of the ISyncProtocol
* https://github.com/dfahlander/Dexie.js/wiki/Dexie.Syncable.ISyncProtocol
*/
export default function initSync(serverComm, isOnline) {
return function sync(
context,
url,
options,
baseRevision,
syncedRevision,
changes,
partial,
applyRemoteCha... | JavaScript | 0 | @@ -1149,91 +1149,8 @@
%3E %7B%0A
- // TODO: we would have to catch an error here and not continue%0A
@@ -1750,85 +1750,8 @@
e %7B%0A
- // TODO: we would have to catch an error here and not continue%0A
|
7ddf989c553129c6c7e631d80ca800b26da7cd52 | remove unused import | source/views/building-hours/detail/building.js | source/views/building-hours/detail/building.js | // @flow
import * as React from 'react'
import {ScrollView, StyleSheet, Platform, Image} from 'react-native'
import {images as buildingImages} from '../../../../images/spaces'
import type {BuildingType} from '../types'
import moment from 'moment-timezone'
import * as c from '@frogpond/colors'
import {getShortBuildingS... | JavaScript | 0.000001 | @@ -69,18 +69,8 @@
eet,
- Platform,
Ima
|
e223f45bceb51dc7bc4e9c3b34fe0e10fc640ab2 | fix [flathub] version error handling (#8500) | services/flathub/flathub.service.js | services/flathub/flathub.service.js | import Joi from 'joi'
import { renderVersionBadge } from '../version.js'
import { BaseJsonService } from '../index.js'
const schema = Joi.object({
currentReleaseVersion: Joi.string().required(),
}).required()
export default class Flathub extends BaseJsonService {
static category = 'version'
static route = { bas... | JavaScript | 0 | @@ -90,16 +90,26 @@
nService
+, NotFound
%7D from
@@ -137,16 +137,47 @@
schema =
+ Joi.alternatives()%0A .try(%0A
Joi.obj
@@ -182,16 +182,20 @@
bject(%7B%0A
+
curren
@@ -236,18 +236,72 @@
ired(),%0A
-%7D)
+ %7D).required(),%0A Joi.valid(null).required()%0A )%0A
.require
@@ -885,16 +885,168... |
697f6da2422d182d3d3b133d3f36c64e82e7bf2c | work on client | spotify_client.js | spotify_client.js | JavaScript | 0 | @@ -0,0 +1,374 @@
+Meteor.loginWithSpotify = function(options, callback) %7B%0A // support a callback without options%0A if (! callback && typeof options === %22function%22) %7B%0A callback = options;%0A options = null;%0A %7D%0A%0A var credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompl... | |
34f55889d63aff827bd1d2660dd48fa9c1b344b0 | Make perms write_roles actually work | _design/perms/validate_doc_update.js | _design/perms/validate_doc_update.js | /**
* Based on: https://github.com/iriscouch/manage_couchdb/
* License: Apache License 2.0
**/
function(newDoc, oldDoc, userCtx, secObj) {
var ddoc = this;
secObj.admins = secObj.admins || {};
secObj.admins.names = secObj.admins.names || [];
secObj.admins.roles = secObj.admins.roles || [];
var IS_DB_ADMI... | JavaScript | 0.000002 | @@ -659,32 +659,39 @@
%3C userCtx.roles
+.length
; i++)%0A if(~
@@ -695,16 +695,23 @@
(~ ddoc.
+access.
write_ro
|
70100471a9d81d6821d05c50a9ed56598b3e1457 | send a status code | lib/authentication/routes.js | lib/authentication/routes.js | // app/routes.js
var email = require('../messaging/email');
var sms = require('../messaging/sms');
var request = require('request');
module.exports = function(app, passport) {
// =====================================
// HOME PAGE (with login links) ========
// =====================================
app.get('/', f... | JavaScript | 0 | @@ -1380,16 +1380,35 @@
%7D%0A%09 %7D);
+%0A%0A%09 res.send(200);
%0A%09%7D);%0A%0A%09
|
8f92815414f6969fd29a4d80b8547c64a3ba1121 | Bug fix. Subdirectories are not correctly reflected on Azure blob. | lib/hexo-azure-blob-deployer.js | lib/hexo-azure-blob-deployer.js | var fs = require('fs');
var azure = require('azure-storage');
module.exports = function(args, configFile) {
var config = {
storageAccount:{
storageAccountName: args.storage_account_name,
storageAccessKey: args.storage_access_key
},
blobStorage: {
containerName: args.azure_container_name
}
};
... | JavaScript | 0.998221 | @@ -1647,15 +1647,8 @@
me =
- path +
pat
@@ -1662,18 +1662,33 @@
ent.
-sep +
+join(path, subpath,
file
+)
;%0A%09%09
@@ -1766,20 +1766,18 @@
leName,
-path
+%22%22
, files)
@@ -1839,22 +1839,29 @@
e =
-sub
path
+component
.re
-p
la
-c
+tiv
e(ro
@@ -1871,60 +1871,50 @@
ath,
-%22%22).split(pathcomponent.s... |
0dcb74e8ab4dfa62f74a59066d4eeb62b35eca25 | Fix users duplicate | client/helpers/pages/userList.js | client/helpers/pages/userList.js | /**
* Get total groups when page load
*/
Template.userList.onCreated(function(){
var temp = this;
temp.total = new ReactiveVar();
/**
* Recalculate if user searching
*/
Tracker.autorun(function(){
Meteor.call('countUser',{search: Session.get('userSearch')},function(err,rs)... | JavaScript | 0.000033 | @@ -742,16 +742,43 @@
s.find(%7B
+_id: %7B$ne: Meteor.userId()%7D
%7D,%7Bsort:
|
34a103d769433851031d8327d9f38721883304cd | Implement getting of artists by their genre | controllers/genre-controller.js | controllers/genre-controller.js | var model = require('../models/index');
/* Returns a list of artists with the given genre (in the query string) */
exports.getArtistsByGenre = function(req, res) {
return res.status(200).send('Success');
}
/* Gets all of the genres stored in the database */
exports.getGenres = function(req, res) {
return res.stat... | JavaScript | 0.000002 | @@ -32,16 +32,43 @@
index');
+%0Avar _ = require('lodash');
%0A%0A/* Ret
@@ -178,32 +178,64 @@
on(req, res) %7B%0A
+ if (_.isEmpty(req.query.genre))
return res.stat
@@ -229,33 +229,33 @@
turn res.status(
-2
+4
00).send('Succes
@@ -248,26 +248,704 @@
).send('
-Success');
+No parameters given');%0A else %7B%0A ... |
133e11200f004ca0dd796869acb73e6aff0de013 | FIX Missing cast for integer addition | lib/plugins/expressionParser.js | lib/plugins/expressionParser.js | /*
* Copyright 2016 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-iotagent-lib
*
* fiware-iotagent-lib is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either versio... | JavaScript | 0.000001 | @@ -2258,15 +2258,31 @@
$ =
+Number(
$1
+)
+
+Number(
$3
+)
;'%5D,
|
11f4a1abfc0cefc3c5db6200f0161168f77950f0 | add not set data to the summary object | lib/plugins/html/htmlBuilder.js | lib/plugins/html/htmlBuilder.js | 'use strict';
const fs = require('fs'),
helper = require('./helper'),
Promise = require('bluebird'),
path = require('path'),
merge = require('lodash.merge'),
reduce = require('lodash.reduce'),
get = require('lodash.get'),
set = require('lodash.set'),
renderer = require('./renderer');
Promise.promisify... | JavaScript | 0.000008 | @@ -1599,24 +1599,122 @@
me, data) %7B%0A
+ if (this.summaryPages%5Bname%5D) %7B%0A merge(this.summaryPages%5Bname%5D, data);%0A %7D%0A else %7B%0A
set(this
@@ -1741,16 +1741,22 @@
data);%0A
+ %7D%0A
%7D%0A%0A r
@@ -3902,17 +3902,16 @@
ml', '',
-
%0A r
|
db213e67c9f67f1efd07f0cca66888ea410e4969 | Store total number of 3rd party request (#2468) | lib/plugins/thirdparty/index.js | lib/plugins/thirdparty/index.js | 'use strict';
const { getEntity } = require('third-party-web');
const aggregator = require('./aggregator');
const urlParser = require('url');
const DEFAULT_THIRDPARTY_PAGESUMMARY_METRICS = [
'category.*.requests.*',
'category.*.tools.*'
];
module.exports = {
open(context, options) {
this.metrics = {};
... | JavaScript | 0 | @@ -235,16 +235,30 @@
tools.*'
+,%0A 'requests'
%0A%5D;%0A%0Amod
|
dd0d21f04a0c4d2418bc6cd37e9df8e3e1877179 | rename variable emph => email_invalid | frappe/public/js/frappe/form/controls/data.js | frappe/public/js/frappe/form/controls/data.js | frappe.ui.form.ControlData = frappe.ui.form.ControlInput.extend({
html_element: "input",
input_type: "text",
make_input: function() {
if(this.$input) return;
this.$input = $("<"+ this.html_element +">")
.attr("type", this.input_type)
.attr("autocomplete", "off")
.addClass("input-with-feedback form-cont... | JavaScript | 0.000051 | @@ -2996,18 +2996,27 @@
%09%09let em
-ph
+ail_invalid
= false
@@ -3105,20 +3105,21 @@
%09%09em
-ph = emph %7C%7C
+ail_invalid =
tru
@@ -3160,18 +3160,27 @@
lid = em
-ph
+ail_invalid
;%0A%09%09%09%09re
|
44284005fa72d78d85ef07fcfc14adf6454a1218 | Update budgeting-loans.js | lib/projects/budgeting-loans.js | lib/projects/budgeting-loans.js | {
"id":15,
"name":"Apply for a Budgeting Loan",
"description": "Lets users apply for a short-term cash loan so that they can afford to buy essential items or services.",
"theme": "Working Age",
"location": "Leeds",
"phase":"private beta",
"sro":"Derek Hobbs",
"service_man":"Zoe Gould",
"phase-history"... | JavaScript | 0 | @@ -233,16 +233,8 @@
e%22:%22
-private
beta
|
fa17b6882ae114e3f58d940df76257bfa77073b1 | Include port as a connection parameter for socket connections | lib/connection-parameters.js | lib/connection-parameters.js | var url = require('url');
var dns = require('dns');
var defaults = require(__dirname + '/defaults');
var val = function(key, config, envVar) {
if (envVar === undefined) {
envVar = process.env[ 'PG' + key.toUpperCase() ];
} else if (envVar === false) {
// do nothing ... use false
} else {
envVar = pr... | JavaScript | 0 | @@ -1050,16 +1050,45 @@
e;%0A %7D%0A%0A
+ config.port = result.port;%0A
if(res
@@ -1494,37 +1494,8 @@
%5B1%5D;
-%0A config.port = result.port;
%0A%0A
@@ -1748,17 +1748,16 @@
%0A case
-
%22verify-
|
01b5901c3fbe8510cb6118591c70312d0ed54f78 | add action type | lib/constants/ActionTypes.js | lib/constants/ActionTypes.js | export const ADD_HISTORY = 'ADD_HISTORY';
| JavaScript | 0.000398 | @@ -10,33 +10,39 @@
nst
-ADD_HISTORY = 'ADD_HISTORY
+UPDATE_SETTING = 'UPDATE_SETTING
';%0A
|
45961532c980116e2ee625ec6c4ecfc868e0dc4a | Remove extra variables | lib/core/build-suggestion.js | lib/core/build-suggestion.js | "use babel"
// @flow
import type { Info, Range, Suggestion } from '../types'
const scopeSize = ({block: b}) => b.end - b.start
function findClosestScope(scopes, start, end) {
return scopes.reduce((closest, scope) => {
const { block } = scope
if (block.start <= start
&& block.end >= en... | JavaScript | 0.000336 | @@ -990,35 +990,30 @@
-const tmp =
+return
%7B%0A
@@ -1260,35 +1260,8 @@
%7D%0A
- return tmp%0A
@@ -2307,61 +2307,16 @@
-const tmp = %7B%0A // ...targetModule,
+return %7B
%0A
@@ -2551,35 +2551,8 @@
%7D%0A
- return tmp%0A
... |
21b24d3fb61e50b404623491fb03995fc089ff22 | set the timestamp as close as the iteration as possible | lib/core/engine/iteration.js | lib/core/engine/iteration.js | 'use strict';
const Promise = require('bluebird');
const webdriver = require('selenium-webdriver');
const log = require('intel');
const merge = require('lodash.merge');
const SeleniumRunner = require('../seleniumRunner');
const preURL = require('../../support/preURL');
const setResourceTimingBufferSize = require('../..... | JavaScript | 0.000044 | @@ -3243,125 +3243,8 @@
%7D%0A
- await this.engineDelegate.onStartIteration(browser, index);%0A result.timestamp = engineUtils.timestamp();%0A%0A
@@ -3531,24 +3531,140 @@
0);%0A %7D%0A
+ await this.engineDelegate.onStartIteration(browser, index);%0A result.timestamp = engineUtils.time... |
1f068a9c65f3bdfe5c9e30b6a0e2735e5c0da43d | validate meta tag usage | lib/report/validator/pasties.js | lib/report/validator/pasties.js | function validateWrapper(wrapper, report) {
if (wrapper.css.position !== 'static' || wrapper.css.visability !== '') {
report.error('Do not style outside bannercontainer, wrapper element has received som styling');
}
}
function validateBannerCSS(banner, data, report) {
var pastieSize = data ? ('Past... | JavaScript | 0.000001 | @@ -2206,32 +2206,197 @@
return;%0A %7D%0A%0A
+ if (banner.html && banner.html.indexOf('%3Ciframe')%3E-1)%7B%0A report.warn('Please do not use iframes inside iframe, pasties iframe is your sandbox.');%0A %7D%0A%0A%0A%0A
if (windowOp
@@ -2429,16 +2429,16 @@
h %3E 0)%7B%0A
-
@@ -3080,32 ... |
52dba3223597793285950fb23871b20ee4f8dee3 | add destination tag if there is any | lib/core/outgoing_payment.js | lib/core/outgoing_payment.js | var RippleRestClient = require('ripple-rest-client');
var uuid = require('node-uuid');
var async = require('async');
var gateway = require(__dirname+'/../../');
var hotWallet = gateway.config.get('HOT_WALLET');
function OutgoingPayment(outgoingPaymentRecord) {
this.record = outgoingPaymentRecord;
this.rippleRestCl... | JavaScript | 0.000001 | @@ -1915,32 +1915,31 @@
t: function(
-response
+payment
, callback)
@@ -1944,49 +1944,8 @@
) %7B%0A
- var statusUrl = response.status_url;%0A
@@ -2009,17 +2009,15 @@
tus(
-statusUrl
+payment
, fu
@@ -4086,24 +4086,129 @@
(payment) %7B%0A
+ if (address.tag) %7B%0A payment.destinatio... |
a4d20ed4dddb6fc02be879b73039ea7fc977a17c | Fix for tab control removing all extra css classes from tabs | framework/Web/Javascripts/source/prado/controls/tabpanel.js | framework/Web/Javascripts/source/prado/controls/tabpanel.js | Prado.WebUI.TTabPanel = jQuery.klass(Prado.WebUI.Control,
{
onInit : function(options)
{
this.views = options.Views;
this.viewsvis = options.ViewsVis;
this.hiddenField = jQuery("#"+options.ID+'_1').get(0);
this.activeCssClass = options.ActiveCssClass;
this.normalCssClass = options.NormalCssClass;
var leng... | JavaScript | 0 | @@ -841,131 +841,213 @@
%09%09%09%09
-element.className=this.activeCssClass;%0A%09%09%09%09%09%09jQuery(view).show();%0A%09%09%09%09%09%7D else %7B%0A%09%09%09%09%09%09element.className=this.normalCssClass
+jQuery(element).addClass(this.activeCssClass).removeClass(this.normalCssClass);%0A%09%09%09%09%09%09jQuery(view)... |
d9a917646526a352b29b2298b4ff6f089fc973cb | Allow setting arbitrary attributes on display sheets. | lib/depject/sheet/display.js | lib/depject/sheet/display.js | const h = require('mutant/h')
const nest = require('depnest')
exports.gives = nest('sheet.display')
exports.create = function () {
return nest('sheet.display', function (handler) {
const { content, footer, classList, onMount } = handler(done)
const container = h('div', { className: 'Sheet', classList }, [
... | JavaScript | 0 | @@ -225,16 +225,28 @@
onMount
+, attributes
%7D = han
@@ -265,34 +265,28 @@
-const container = h('div',
+let fullAttributes =
%7B c
@@ -315,16 +315,164 @@
ssList %7D
+%0A if (attributes !== undefined) %7B%0A fullAttributes = %7B ...attributes, ...fullAttributes %7D%0A %7D%0A const container =... |
0a9f090230047d6d82e4da56f95ed0433288df21 | Change level version | canvas_move.js | canvas_move.js | document.getElementById("id_logic_level_version").innerHTML="Business level version 2017.11.15.6";
var canvas = document.getElementById("id_canvas");
var context = canvas.getContext("2d");
var rect_canvas = canvas.getBoundingClientRect();
var img = document.getElementById("id_img");
var top_x = 100;
var top_y... | JavaScript | 0 | @@ -88,17 +88,17 @@
7.11.15.
-6
+7
%22;%0D%0A%0D%0Ava
|
e3b7b5f3ffa851c449ada6c3b08b7ac3705517bb | send data on connection of clients | lib/server/dataSourceManager.js | lib/server/dataSourceManager.js | /*jlint node: true */
/*global require, console, module, process, __dirname */
/*
* dataSourceManager.js
*
* Copyright (C) 2014 by James Jenner
*
* 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... | JavaScript | 0 | @@ -5905,24 +5905,82 @@
taSources);%0A
+ console.log(%22dataSourceManager : %22 + dataSourceKeys);%0A
%0A for
@@ -6035,65 +6035,250 @@
-console.log(%22%5Ctprocess datasource %22 + dataSourceKeys%5Bi%5D);
+if (this.dataSources%5BdataSourceKeys%5Bi%5D%5D instanceof VersionOne) %7B%0A console.log(... |
d54a3367ccf58d54e6e2ca9fda28a38416710006 | remove alias' | generators/ng-route/index.js | generators/ng-route/index.js | 'use strict';
var yeoman = require('yeoman-generator'),
chalk = require('chalk'),
yosay = require('yosay'),
_ = require('lodash'),
s = require('underscore.string'),
fs = require('fs'),
prompt = require('../../lib/option-or-prompt.js');
// TODO: Refactor to remove prompt logic si... | JavaScript | 0 | @@ -1093,19 +1093,9 @@
ring
-, alias:'n'
+
%7D);%0A
@@ -1195,19 +1195,9 @@
ring
-, alias:'p'
+
%7D);%0A
|
b6c8f35299937fed37dbd7509eb1fdb92c46b81f | Refactor isRunning | lib/spotify-node-applescript.js | lib/spotify-node-applescript.js | var exec = require('child_process').exec,
applescript = require('applescript');
// apple scripts
var scripts = {
state: [
'tell application "Spotify"',
'set cstate to "{"',
'set cstate to cstate & "\\"volume\\": " & sound volume',
'set cstate to cstate & ",\\"position\\": \\"" &... | JavaScript | 0.000025 | @@ -1355,17 +1355,16 @@
%0A %5D,%0A
-%0A
isRu
@@ -1385,158 +1385,44 @@
'
-tell application %22System Events%22',%0A 'set ProcessList to name of every process',%0A 'return %22Spotify%22 is in ProcessList',%0A 'end tell
+get running of application %22Spotify%22
'%0A
|
01ab7b9b5c7722bacdbb2c782c1de2ae255ff9ff | refactor BaseServer.formatJsonError to help unit test | src/BaseServer.js | src/BaseServer.js | const Koa = require('koa');
const BaseError = require('./error/BaseError');
const Errors = require('./error/Errors');
const koaLogger = require('koa-logger');
const koaBody = require('koa-body');
const Http = require('http');
const CreateKoaRouter = require('koa-router');
class BaseServer {
init() {
this.... | JavaScript | 0.000002 | @@ -420,16 +420,53 @@
koa.use(
+ (ctx, next) =%3E next().catch( err =%3E
this.for
@@ -481,19 +481,20 @@
rror
-.bind(this)
+(ctx, err))
);%0A
@@ -646,16 +646,25 @@
= koa;%0A
+ %0A
@@ -736,65 +736,23 @@
tx,
-next) %7B%0A return next().catch(err =%3E %7B%0A%0A
+err) %7B%0A
... |
a2582e1e999c0c9d8fce3c3124d972234328514e | Add test to prove value bug | spec/FakeModuleSpec.js | spec/FakeModuleSpec.js | describe("FakeModule", function () {
var FakeModule = require('../lib/FakeModule');
var angular;
var module;
beforeEach(function() {
angular = {
modules: {},
factories: {},
instances: {},
values: {}
};
module = new FakeModule(angular, 'ngApp.testModule', []);
});
desc... | JavaScript | 0 | @@ -5037,23 +5037,464 @@
s');%0A %7D);
+%0A%0A it('should resolve values as dependencies', function () %7B%0A // Define an object so we know we got the same isntance back.%0A var value = %7B key: true %7D;%0A%0A // Define value and factory that depends on it.%0A module.value('MyValue', value)... |
8d6e0a6fbcfff77dd4bc8b1cf5725ca79da86e3b | Fix demo notes - remove console.log | src/Oro/Bundle/FilterBundle/Resources/public/js/datafilter-builder.js | src/Oro/Bundle/FilterBundle/Resources/public/js/datafilter-builder.js | /*jshint browser:true*/
/*jslint nomen: true*/
/*global define, require*/
define(['jquery', 'underscore', 'oro/tools', 'oro/mediator', 'orofilter/js/map-filter-module-name',
'oro/datafilter/collection-filters-manager'],
function ($, _, tools, mediator, mapFilterModuleName, FiltersManager) {
'use strict';
... | JavaScript | 0 | @@ -507,52 +507,8 @@
));%0A
- console.log(this.metadata);%0A
|
d01276f888a3069bf5460f24a4cb97b24368abb4 | Enable passing className to component | src/Codemirror.js | src/Codemirror.js | var CM = require('codemirror');
var React = require('react');
var CodeMirror = React.createClass({
propTypes: {
onChange: React.PropTypes.func,
onFocusChange: React.PropTypes.func,
options: React.PropTypes.object,
path: React.PropTypes.string,
value: React.PropTypes.string
},
getInitialState () {
retu... | JavaScript | 0.000001 | @@ -54,16 +54,55 @@
react');
+%0Avar className = require('classnames');
%0A%0Avar Co
@@ -318,16 +318,51 @@
s.string
+,%0A%09%09className: React.PropTypes.any,
%0A%09%7D,%0A%0A%09g
@@ -1889,25 +1889,31 @@
() %7B%0A%09%09var
-c
+editorC
lassName = '
@@ -1911,16 +1911,26 @@
sName =
+className(
'ReactCo
@@ -1938... |
e8492751405e3bbe0786a520e5e8a8d216fbd051 | fix scope issue | core/js/directives/csBgImage.js | core/js/directives/csBgImage.js | /**************************************************
* BGImage Directive *
* Background images *
**************************************************/
angular.module('cosmo').directive('csBgImage', ['Page', '$rootScope', 'Users', 'Responsive', 'Hooks', function... | JavaScript | 0 | @@ -424,16 +424,43 @@
trl) %7B%0A%0A
+ var imageURL;%0A%0A
|
5eb2bbee8fc977aecb486e88ae602053604a52f6 | allow mutliple 'filter' clauses in bool query | core/js/elastic/queries/bool.js | core/js/elastic/queries/bool.js | // Bool query
function BoolQuery()
{
var _must = [],
_mustNot = [],
_should = [],
_filter,
_minimumMatches,
_boost;
this.getType = function()
{
return 'query';
};
this.getInfo = function()
{
return {
'name': 'Bool Query',
'text': 'The bool query is used to apply multiple queries',
'url': ... | JavaScript | 0.000024 | @@ -2276,20 +2276,19 @@
tiple':
-fals
+tru
e%0A%09%09%09%7D%0A%09
|
96223d1721e99d76508744e660bff7ac2dffdf96 | Fix glob pattern to avoid matching directories (#175) | lib/install/config/shared.js | lib/install/config/shared.js | // Note: You must restart bin/webpack-watcher for changes to take effect
const webpack = require('webpack')
const path = require('path')
const process = require('process')
const glob = require('glob')
const extname = require('path-complete-extname')
let distDir = process.env.WEBPACK_DIST_DIR
if (distDir === undefine... | JavaScript | 0 | @@ -403,17 +403,17 @@
lob = %60*
-(
+%7B
$%7Bextens
@@ -427,13 +427,13 @@
in('
-%7C')%7D)
+,')%7D%7D
*%60%0Ac
|
0d96b9c0fb0d2211c2bcf2f2c145a262781ccb9e | Mark covid update link type as non-optional | source/views/covid/types.js | source/views/covid/types.js | // @flow
export type UpdateType = {
authors: string[],
categories: string[],
content: string,
datePublished: ?string,
excerpt: string,
featuredImage: ?string,
link: ?string,
title: string,
}
| JavaScript | 0.000172 | @@ -166,17 +166,16 @@
%0A%09link:
-?
string,%0A
|
d9acf1fb9884c93401dca30ad75c285f0ee899f0 | Revert "Run globallyUpdateMember synchronously" | src/DiscordBot.js | src/DiscordBot.js | const path = require('path')
const Discord = require('discord.js-commando')
const request = require('request-promise')
const config = require('./data/client.json')
const DiscordServer = require('./DiscordServer')
module.exports =
// The main Discord bot class, only one per shard.
class Disc... | JavaScript | 0 | @@ -4491,20 +4491,24 @@
if (
-true
+firstRun
) %7B%0A
@@ -4707,49 +4707,8 @@
. %0A%0A
- console.log(server.id);%0A%0A
@@ -4946,24 +4946,20 @@
sCache:
-firstRun
+true
,%0A
@@ -5903,38 +5903,8 @@
()%7B%0A
- try %7B%0A
@@ -5992,36 +5992,32 @@
... |
1b2a31964345d0481d43cdd3028f9c4b484364cc | use escaped line returns in docker regex escape | lib/manager/docker/update.js | lib/manager/docker/update.js | module.exports = {
setNewValue,
};
function setNewValue(currentFileContent, upgrade) {
try {
logger.debug(`setNewValue: ${upgrade.newFrom}`);
const oldLine = new RegExp(
`(^|\n)${upgrade.fromPrefix}(\\s+)${upgrade.depName}.*?(\\s?)${
upgrade.fromSuffix
}\n`
);
let newLine = `$1$... | JavaScript | 0.000009 | @@ -187,16 +187,17 @@
%60(%5E%7C%5C
+%5C
n)$%7Bupgr
@@ -239,11 +239,15 @@
ame%7D
-.*?
+%5B%5E%5C%5Cs%5D*
(%5C%5Cs
@@ -286,16 +286,17 @@
%7D%5C
+%5C
n%60%0A )
|
70a81486637b108d84944666c982a37485c10a6c | Use lodash _.endsWith function | lib/middleware/app-loader.js | lib/middleware/app-loader.js | var _ = require('lodash');
var async = require('async');
var publicSuffixList = require('psl');
var debug = require('debug')('4front:http-host:app-loader');
require('simple-errors');
exports = module.exports = function(settings) {
return function(req, res, next) {
debug('virtualAppLoader middleware');
if (... | JavaScript | 0.000168 | @@ -542,16 +542,27 @@
dFunc =
+_.endsWith(
req.ext.
@@ -572,26 +572,18 @@
tualHost
-.endsWith(
+,
settings
|
ef369ea6ac11c612920f649e3db807f5787b7e85 | Revert "Set connected status when multiplex long poll starts instead of when it times out" | lib/multiplexed_long_poll.js | lib/multiplexed_long_poll.js | import LongPollTransport from "./long_poll_transport.js"
export default class MultiplexedLongPoll extends LongPollTransport {
constructor(args) {
super(args);
this.subscribe = this.subscribe.bind(this);
this.unsubscribe = this.unsubscribe.bind(this);
this._request = this._request.bind(this);
this... | JavaScript | 0 | @@ -1145,458 +1145,8 @@
);%0A%0A
- // Notify consumer that initial long poll connection established%0A // Delay this to allow for immediate connection failues.%0A // We do this upfront otherwise we don't get a connected event%0A // until the long poll connects which is 20s%0A const delayedSuccess = setT... |
561b992fbd379c5115388b7a9bc8fdd71f728fe9 | make profile panel can work with express 4. | lib/panels/profile/inject.js | lib/panels/profile/inject.js | "use strict";
var injections = module.exports,
utils = require('../../utils'),
_EDT_HIDDEN = { EDT_hidden: true };
var ProfileTime = function(action, name) {
this.action = action;
this.name = name;
};
ProfileTime.prototype.toJSON = function() {
var str = this.name + ' fn() { args: ' + this.action.h... | JavaScript | 0 | @@ -1673,26 +1673,125 @@
original
-;%0A
+,%0A type;%0A //for express 4%0A if(!app.stack)%7B%0A stack = app._router.stack;%0A %7D%0A
%0A for (va
@@ -2085,16 +2085,163 @@
iginal;%0A
+ if(stack%5Bi%5D.route) %7B%0A type = 'route';%0A %7D%0A ... |
fff97c9248c830911ee5de45651e681638bac5a9 | use PropTypes.any on style props to support Stylesheet declarations | src/Icon/index.js | src/Icon/index.js | /* eslint-disable import/no-unresolved, import/extensions */
import VectorIcon from 'react-native-vector-icons/MaterialIcons';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
/* eslint-enable import/no-unresolved, import/extensions */
const propTypes = {
name: PropTypes.string.isR... | JavaScript | 0 | @@ -347,54 +347,11 @@
pes.
-oneOfType(%5BPropTypes.object, PropTypes.array%5D)
+any
,%0A
|
fe37328cfb4585bfb1812f3a8ef133e92868ab65 | remove double call (#460) | lib/rest/routes/pipelines.js | lib/rest/routes/pipelines.js | const express = require('express');
module.exports = function ({config}) {
const router = express.Router();
router.put('/:name', function (req, res, next) {
let isUpdate;
config.updateGatewayConfig(json => {
json.pipelines = json.pipelines || {};
isUpdate = req.params.name in json.pipelines;
... | JavaScript | 0.000003 | @@ -669,71 +669,8 @@
y);%0A
- res.json(config.gatewayConfig.pipelines%5Breq.params.name%5D);%0A
%7D)
|
a2fb5e33373e0404a5ef8965e4b9aabeeb435b43 | fix GET/POST request to markup validator | lib/rules/validation/html.js | lib/rules/validation/html.js | /*jshint es5:true */
var sua = require("../../throttled-ua");
exports.name = "validation.html";
exports.check = function (sr, done) {
var service = "http://validator.w3.org/check";
if (sr.config.skipValidation) {
sr.warning(this.name, "skipped");
return done();
}
if (!sr.url && !sr.sou... | JavaScript | 0.000001 | @@ -404,16 +404,103 @@
var req
+%0A , ua = %22Specberus/%22 + sr.version + %22 Node/%22 + process.version + %22 by sexy Robin%22
;%0A if
@@ -534,32 +534,72 @@
ua.get(service)%0A
+ .set(%22User-Agent%22, ua)%0A
@@ -619,16 +619,32 @@
: sr.url
+, output: %22json%22
%7D);%0A... |
4bd284612511b2db3739e7c71b80593147d4fee5 | Update RemoteNode.js | src/RemoteNode.js | src/RemoteNode.js | class RemoteNode {
constructor(peer, descriptor, options, bootstrappingNode, signalingNode, isCalled) {
this.peer = peer;
this.descriptor = descriptor;
this.options = options;
this.bootstrappingNode = bootstrappingNode;
this.signalingNode = signalingNode;
var self =... | JavaScript | 0.000001 | @@ -293,16 +293,58 @@
ingNode;
+%0A this.pendingMessages = new Set();
%0A%0A
@@ -1161,32 +1161,404 @@
%0A %7D;%0A
+ %0A self.datachannel.onopen = function (event) %7B%0A self.pendingMessages.forEach(function(message) %7B%0A self.datachan... |
2ae5c5f8a726dec6043475d82950d170320865fd | Clear prev touch event when fired touchend | src/ScrollLock.js | src/ScrollLock.js | /**
* Created by laiff on 10.12.14.
*/
/**
* Prevent default behavior for event
*
* @param e
* @returns {boolean}
*/
var cancelScrollEvent = function (e) {
e.stopImmediatePropagation();
e.preventDefault();
e.returnValue = false;
return false;
};
var addScrollEventListener = function (elem, hand... | JavaScript | 0 | @@ -982,16 +982,254 @@
e);%0A%7D;%0A%0A
+var addTouchEndEventListener = function(elem, handler) %7B%0A elem.addEventListener('touchend', handler, false);%0A%7D;%0A%0Avar removeTouchEndEventListener = function(elem, handler) %7B%0A elem.removeEventListener('touchend', handler, false);%0A%7D;%0A%0A
%0Avar pre
@@ ... |
04bf179c82a2c422817419097330962429b06452 | Add a wrapper so that nodejs tests catch uncaught exceptions. | src/addTestAPI.js | src/addTestAPI.js | import { isNil } from 'substance'
export default function addTestAPI (tape) {
const Test = tape.Test
Test.prototype.nil =
Test.prototype.isNil = function (value, msg, extra) {
this._assert(isNil(value), {
message: msg,
operator: 'nil',
expected: true,
actual: value,
extra: extr... | JavaScript | 0 | @@ -7,16 +7,26 @@
%7B isNil
+, platform
%7D from
@@ -108,16 +108,278 @@
e.Test%0A%0A
+ if (platform.inNodeJS) %7B%0A const _run = Test.prototype.run%0A Test.prototype.run = function () %7B%0A try %7B%0A _run.apply(this, arguments)%0A %7D catch (err) %7B%0A this.fail('Uncaught error:... |
ae036f54fe31bfa7efa99ff9ecfdd835874c707f | Remove Object.assign and use spread | src/animate.me.js | src/animate.me.js | export default class AnimateMe {
constructor(selector = '.animate-me', options = {}) {
this.options = Object.assign(
{},
{
offset: 0.5,
reverse: true,
animatedIn: 'animate-me--in',
offsetAttr: 'data-offset',
animationAttr: 'data-animation',
touchDisabled... | JavaScript | 0 | @@ -105,43 +105,10 @@
s =
-Object.assign(%0A %7B%7D,%0A %7B%0A
+%7B%0A
@@ -122,18 +122,16 @@
t: 0.5,%0A
-
re
@@ -145,26 +145,24 @@
true,%0A
-
-
animatedIn:
@@ -181,26 +181,24 @@
-in',%0A
-
offsetAttr:
@@ -214,26 +214,24 @@
set',%0A
-
-
animationAtt
@@ -247,2... |
95765577b665010a15c6b0696517e904df6752a6 | Add separator in context menu between items | src/background.js | src/background.js | const menuItems = {
family: { contextMenu: null, value: '', defaultValue: 'Please' },
weight: { contextMenu: null, value: '', defaultValue: 'reload' },
size: { contextMenu: null, value: '', defaultValue: 'the' },
color: { contextMenu: null, value: '', defaultValue: 'page' },
letterSpacing: { contextMenu: null... | JavaScript | 0.000001 | @@ -576,16 +576,198 @@
)' %7D,%0A%7D;
+%0Aconst menuSections = %5B%0A %5B%0A 'family',%0A 'weight',%0A 'size',%0A 'color',%0A %5D,%0A %5B%0A 'letterSpacing',%0A 'variants',%0A 'featureSettings',%0A 'variationSettings',%0A %5D,%0A%5D;
%0A%0Afuncti
@@ -2432,38 +2432,173 @@
)',%0A%7D;%0A%0A
... |
7fa53a2db3efd4c2ff9e2ca956109bacf5b664c9 | Allow chaining of Size setters. | src/basic/Size.js | src/basic/Size.js | var Size = this.Size = Base.extend({
initialize: function() {
if (arguments.length == 2) {
this.width = arguments[0];
this.height = arguments[1];
} else if (arguments.length == 1) {
var arg = arguments[0];
if (arg == null) {
this.width = this.height = 0;
} else if (arg.width !== undefined) {
... | JavaScript | 0 | @@ -822,24 +822,39 @@
t = height;%0A
+%09%09return this;%0A
%09%7D,%0A%0A%09add: f
|
4601e47cecd01d344fe9cc9a05a2a036ad7d60f4 | remove news hook | src/scenes/SplashScene.js | src/scenes/SplashScene.js | "use strict";
import React, {Component} from 'react';
import {
AsyncStorage,
StyleSheet,
Image,
} from 'react-native';
import CONFIG from './../config';
import _ from './../l10n';
import Items from './../Items';
import {
Layout,
} from './../components';
import Scene from './Scene';
export class Spla... | JavaScript | 0 | @@ -699,24 +699,99 @@
= 'true') %7B%0A
+ await AsyncStorage.setItem('VERSION', CONFIG.VERSION);%0A
@@ -1240,19 +1240,16 @@
- //
if (VER
@@ -1381,11 +1381,8 @@
- //
%7D%0A
|
62d59b5e7b07c2763ce9ad1c9561bb1919bdd1ab | Fix some empty cards showing up | src/search-result-item.js | src/search-result-item.js | import { PolymerElement } from '@polymer/polymer/polymer-element.js';
import './shared-styles.js';
import '@polymer/paper-card/paper-card.js';
import './discussions/discussions-topic-post-item.js';
import './discussions/discussions-forum-item.js';
import './discussions/discussions-topic.js';
import './user/user-card.js... | JavaScript | 0.000001 | @@ -4076,21 +4076,13 @@
ring
-%0A =
+ =%0A%09%09
this
@@ -4122,16 +4122,94 @@
isPost =
+ this.isGrade = this.isNews =%0A%09%09this.isContent = this.isModule = this.isNote =
false;%0A
|
5cf34901158f745cadbbb3f4f4578857bf73caaa | test for null in url.parse results for port | src/server/builds/node.js | src/server/builds/node.js | 'use strict';
// This is the Node.JS entry point
module.exports = algoliasearch;
var debug = require('debug')('algoliasearch:nodejs');
var crypto = require('crypto');
var inherits = require('inherits');
var Promise = global.Promise || require('es6-promise').Promise;
var semver = require('semver');
var AlgoliaSearch... | JavaScript | 0.000002 | @@ -2883,33 +2883,28 @@
ns.port ===
-undefined
+null
) %7B%0A
@@ -3073,33 +3073,28 @@
ns.port ===
-undefined
+null
) %7B%0A
|
b5f002293685577770d46be1d1780ad12f29a5ed | add comma | src/angular/Services/reviews.js | src/angular/Services/reviews.js | var services = angular.module('services');
services.factory('Reviews', function() {
var factory = {};
var reviews = [
{
id: 1,
rating: 4,
comment: 'This place rocks!!',
serviceId: 949606869,
},
{
id: 2,
rating: 1,
... | JavaScript | 0.999953 | @@ -1880,16 +1880,17 @@
id: 5
+,
%0A
|
d006b3e09f53865d0b56497f96f5921661b724d6 | move panel to top when opening | src/app/components/Misc/Pane.js | src/app/components/Misc/Pane.js | import React from 'react';
import Rnd from 'react-rnd';
import { Icon } from '../index';
import { closePane, openPane } from '../../utils/index';
import {movePaneToTop, setPaneConfig} from "../../utils/actions";
import { debounce } from 'lodash';
class Pane extends React.Component {
close() {
const { dispa... | JavaScript | 0 | @@ -4025,24 +4025,118 @@
);%0A %7D
+%0A%0A if (!prevProps.config.open && config.open) %7B%0A this.moveToTop();%0A %7D
%0A %7D%0A%0A
|
0037ecb732976d6f50535b8f3df01ee1338ec7a8 | Fix issue with inlines | filer/static/filer/js/addons/dropzone.init.js | filer/static/filer/js/addons/dropzone.init.js | // #DROPZONE#
// This script implements the dropzone settings
/* globals Dropzone, django */
'use strict';
if (Dropzone) {
Dropzone.autoDiscover = false;
}
/* globals Dropzone, django */
django.jQuery(function ($) {
var dropzoneTemplateSelector = '.js-filer-dropzone-template';
var previewImageSelector = '... | JavaScript | 0 | @@ -5741,31 +5741,35 @@
$(
-'.add-row a').on('click
+document).on('formset:added
', f
@@ -5769,32 +5769,39 @@
ded', function (
+ev, row
) %7B%0A
@@ -5810,32 +5810,42 @@
r dropzones = $(
+row).find(
dropzoneSelector
|
7cf40d2a11adea34ca1c152b9285031775a7f461 | add matchMaker lib | src/collection.js | src/collection.js | var _ = require('lodash');
var Parser = require('query-parser');
var parse = new Parser();
var defaultFilterName = '__default';
module.exports = function(parent) {
var FilteredCollection = parent.extend({
constructor: function(){
parent.apply(this, arguments);
this._filters = {};
if(this.sup... | JavaScript | 0 | @@ -83,16 +83,56 @@
arser();
+%0Avar matchMaker = require('json-query');
%0A%0Avar de
|
a34c0920c4224f65bb8ac26989c48ecbd817546e | Add OpenCollective gold sponsors manually (#13806) | docs/src/modules/components/HomeBackers.js | docs/src/modules/components/HomeBackers.js | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import NoSsr from '@material-ui/core/NoSsr';
import MarkdownElement from '@material-ui/docs/MarkdownElement';
const styles = theme => ({
root: {
backgroundColor: theme.palette.background.paper,
... | JavaScript | 0 | @@ -1087,16 +1087,41 @@
y: flex;
+ justify-content: center;
%22%3E%0A %3Ca
@@ -1240,33 +1240,65 @@
target=%22_blank%22
-%3E
+ style=%22margin-right: 8px;%22%3E%0A
%3Cimg width=%22126%22
@@ -1402,16 +1402,19 @@
Themes%22%3E
+%0A
%3C/a%3E%0A %3C
@@ -1470,17 +1470,49 @@
%22_blank%22
-%3E
+ style=%22margin... |
c37d736b7c6c43416a5c3305a3b0531b380b8b26 | Add a couple of spoiler emotes | addon/bpm-alttext.js | addon/bpm-alttext.js | // Known spoiler "emotes" to avoid expanding alt-text on. Not all of these are
// known to BPM, and it's not really worth moving this to a data file somewhere.
// - /spoiler is from r/mylittlepony (and copied around like mad)
// - /s is from r/falloutequestria (and r/mylittleanime has a variant)
// - #s is from r/docto... | JavaScript | 0.000001 | @@ -378,16 +378,21 @@
inks = %5B
+%0A
%22/spoile
@@ -399,30 +399,316 @@
r%22,
-%22/s%22, %22#s%22, %22/b%22, %22/g%22
+// r/mylittlepony and many other subreddits%0A %22/s%22, // r/falloutequestria, and a variant in r/mylittleanime%0A %22/g%22, // r/dresdenfiles%0A %22/b%22, // r/dres... |
120a0d2c9ecdec5f47ce0e18e658f345c74d9b33 | Update fichaReme.js | app/pdf/fichaReme.js | app/pdf/fichaReme.js | var PdfPrinter = require('pdfmake/src/printer');
var path = require('path');
module.exports = {
pdf: function(Ficha) {
// PDF Content
var dd= {
info: {
title: Ficha.titulo,
author: Ficha.User.facebookname,
subject: Ficha.titulo,
... | JavaScript | 0 | @@ -117,24 +117,284 @@
n(Ficha) %7B%0D%0A
+ // Parsear materiales string a array%0D%0A var materiales =%5B%5D;%0D%0A Ficha.materiales.split(%22%3Cbr%3E%22).slice(0,Ficha.materiales.split('%3Cbr%3E').length - 1).forEach(function(material)%7B%0D%0A materiales.push(%7B%22material%22:materi... |
56a7d8befffa48399981c626e9ebdfd2e38e1842 | Add fragments to merged props | breezy/lib/utils/react.js | breezy/lib/utils/react.js | import {
visit,
remote,
saveAndProcessPage,
copyPage,
} from '../action_creators'
import { urlToPageKey } from './url'
export function mapStateToProps(
state = { pages: {}, breezy: {} },
ownProps
) {
let pageKey = ownProps.pageKey
let params = ownProps
const csrfToken = state.breezy.csrfToken
pageK... | JavaScript | 0.000001 | @@ -361,16 +361,27 @@
a, flash
+, fragments
%7D = sta
@@ -432,16 +432,35 @@
sh: %7B%7D,%0A
+ fragments: %5B%5D,%0A
%7D%0A re
@@ -511,16 +511,27 @@
n, flash
+, fragments
%7D%0A%7D%0A%0Aex
|
cbf4b01cf2c850a66858145ce6e2c8093f271d9c | Remove obsolete import of handleRequest function. | apps/storage/main.js | apps/storage/main.js | import('helma.webapp', 'webapp');
import('model');
var handleRequest = webapp.handleRequest;
// the main action is invoked for http://localhost:8080/
// this also shows simple skin rendering
function index_action(req, res) {
if (req.params.save) {
createBook(req, res);
}
if (req.params.remove) {
... | JavaScript | 0.999826 | @@ -49,51 +49,8 @@
);%0A%0A
-var handleRequest = webapp.handleRequest;%0A%0A
// t
|
5963ffe36b2bfdb5c0294546ba33c0a00e29bfe4 | Fix eslint issue | assets/js/scripts.js | assets/js/scripts.js | $(function(){
// Helper function to show all except filtered sites
// Accepts a function which returns true for $(".site-block") elements
// matching desired qualifications
function hideFilteredSites(filterFunction) {
var $sites = $(".sites section");
$sites.show().filter(filterFunction)... | JavaScript | 0.000003 | @@ -4812,32 +4812,33 @@
%7D);%0A %7D
+;
%0A%0A // Banner
|
9b61fd6f366d82c2d6233ce070f32d2edd382889 | Update startup.js | assets/js/startup.js | assets/js/startup.js | /*global Modernizr, FileReaderJS, MFAApp MFAAppView, TimelineView */
// test to see if we can do cool download or fallback style.
Modernizr
.addTest("blobbuilder", !!(window.BlobBuilder || window.MozBlobBuilder || window.WebKitBlobBuilder))
.addTest("bloburls", !!(window.URL && window.URL.createObjectURL |... | JavaScript | 0 | @@ -536,16 +536,68 @@
));%0A%0Aif(
+ ( !Modernizr.bloburls %7C%7C !Modernizr.blobbuilder %7C%7C
!Moderni
@@ -607,16 +607,18 @@
download
+ )
&& $('#
|
75da26cfcd068a9f1e15e07289e8250df3aab165 | Check `custom_scripts + 1` instead of itself | packages/react-app-rewired/config/paths.js | packages/react-app-rewired/config/paths.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same ... | JavaScript | 0 | @@ -571,16 +571,20 @@
scripts
++ 1
%3C= proce
|
36da171a3dbfeb632fab044e2996a7b9ff6babf8 | Set status button in serial no | erpnext/stock/doctype/serial_no/serial_no.js | erpnext/stock/doctype/serial_no/serial_no.js | // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
cur_frm.add_fetch("customer", "customer_name", "customer_name")
cur_frm.add_fetch("supplier", "supplier_name", "supplier_name")
cur_frm.add_fetch("item_code", "item_name", "item_name")
c... | JavaScript | 0.000045 | @@ -764,12 +764,292 @@
local);%0A
-%7D);
+%0A%09if(frm.doc.status == %22Sales Returned%22 && frm.doc.warehouse)%0A%09%09cur_frm.add_custom_button(__('Set Status as Available'), cur_frm.cscript.set_status_as_available);%0A%7D);%0A%0Acur_frm.cscript.set_status_as_available = function() %7B%0A%09cur_frm.set_value(%22stat... |
445da8c78045265c9183038aa81a5b0b897942a8 | update examples for checkbox and radiobutton | examples/simple-form/src/containers/index.js | examples/simple-form/src/containers/index.js | import React from 'react';
import styled from 'styled-components';
import {
Form,
Button,
Checkbox,
Date,
Datetime,
Email,
Number,
Password,
Phonenumber,
Radio,
Text,
Textarea,
Time,
} from '../../../../lib/index';
const Wrapper = styled.section`
position: relative;
width: 50%;
left: 2... | JavaScript | 0 | @@ -940,39 +940,40 @@
ehicle%22 required
-=%22true%22
+ checked
/%3E%0A
@@ -1112,11 +1112,77 @@
-%7B/*
+%3CRadio id=%22radio-3%22 value=%22Rollerblade%22 name=%22vehicle%22 /%3E%0A
%3CDa
@@ -1194,39 +1194,32 @@
=%22date%22 required
-=%22true%22
/%3E%0A
@@ -1242,39 +1242,... |
bebe5e6e02c651c614c9ff19b7ef074009b7a5c8 | use more hooks and correct options | examples/with-devcert-https/razzle.config.js | examples/with-devcert-https/razzle.config.js | 'use strict';
module.exports = {
modifyWebpackOptions(opts) {
const options = opts.webpackOptions;
return new Promise(async (resolve) => {
const httpsCredentials = await devcert.certificateFor('localhost');
const stringHttpsCredentials = {
key: httpsCredentials.key.toString(),
cer... | JavaScript | 0.000001 | @@ -35,23 +35,16 @@
modify
-Webpack
Options(
@@ -42,32 +42,86 @@
yOptions(opts) %7B
+ // use modifyOptions so certificateFor is called once
%0A const optio
@@ -122,39 +122,46 @@
options = opts.
-webpack
+options.razzle
Options;%0A ret
@@ -422,87 +422,9 @@
-if (opts.env.target === 'node' && opts.env... |
9b5023be5bf43b06720966dce7aabf1d015709cd | Update dropzone-directive.js | frontend/app/directives/dropzone-directive.js | frontend/app/directives/dropzone-directive.js | define(['./module','dropzone'], function(directives,Dropzone){
directives.directive('drop', function(){
return function(scope,element,attrs){
var config, drop;
config = scope[attrs.drop];
//create a Dropzone for the element with the given options
... | JavaScript | 0 | @@ -621,24 +621,417 @@
gth %3E 0) %7B%0D%0A
+ for(var i=0;i%3Cdocument.upload_photo.description.length;i++)%7B%0D%0A console.log(upload_photo.description%5Bi%5D.value);%0D%0A if( document.upload_photo.description%5Bi%5D.value==%22%22)%7B%0D%0A ... |
439b2293cd687fedfaede3b70e3879f282fa28bd | Fix exception when no service UUIDs are advertised | src/BluetoothDevice.js | src/BluetoothDevice.js | const EventTarget = require('./EventTarget');
const {fromNobleUuid, uuidToName} = require('./utils');
const BluetoothRemoteGATTServer = require('./BluetoothRemoteGATTServer');
/* events
[X] gattserverdisconnected
[ ] serviceadded
[ ] servicechanged
[ ] serviceremoved
[ ] characteristicvaluechanged
*/
class Bluet... | JavaScript | 0.000016 | @@ -433,22 +433,56 @@
uuids =
-this._
+peripheral.advertisement.serviceUuids ?
peripher
@@ -529,16 +529,21 @@
bleUuid)
+ : %5B%5D
;%0A%09%09this
|
cd6b678b5181388641609424f7c91c323f872801 | add support for exportdeclarations to constants | lib/6to5/transformation/transformers/es6-constants.js | lib/6to5/transformation/transformers/es6-constants.js | var traverse = require("../../traverse");
var t = require("../../types");
var _ = require("lodash");
exports.Program =
exports.BlockStatement =
exports.ForInStatement =
exports.ForOfStatement =
exports.ForStatement = function (node, parent, file) {
var hasConstants = false;
var constants = {};
/**... | JavaScript | 0 | @@ -1074,17 +1074,88 @@
if (
-child &&
+t.isExportDeclaration(child)) %7B%0A child = child.declaration;%0A %7D%0A%0A if (
t.is
|
de06ff832a26302b5df088ab602070c45e7efe5f | Remove copying of options | lib/node_modules/@stdlib/types/ndarray/lib/ndarray.js | lib/node_modules/@stdlib/types/ndarray/lib/ndarray.js | 'use strict';
// MODULES //
var shape2strides = require( '@stdlib/types/ndarray/base/shape2strides' );
var strides2offset = require( '@stdlib/types/ndarray/base/strides2offset' );
var validate = require( './validate.js' );
var defaults = require( './defaults.json' );
var getType = require( './dtype.js' );
var createB... | JavaScript | 0 | @@ -171,24 +171,83 @@
2offset' );%0A
+var numel = require( '@stdlib/types/ndarray/base/numel' );%0A
var validate
@@ -1727,16 +1727,8 @@
len;
-%0A%09var i;
%0A%0A%09o
@@ -1999,219 +1999,75 @@
%7B%0A%09%09
-ndims = opts.shape.length;%0A%09%09len = 1;%0A%0A%09%09// Compute the total number of elements...%0A%09%09shap... |
e2da074956e910febeaf83f3cbf2a19034f29937 | Remove react resolver from webpack config | SingularityUI/webpack.config.js | SingularityUI/webpack.config.js | var webpack = require('webpack');
var path = require('path');
dest = path.resolve(__dirname, '../SingularityService/target/generated-resources/assets');
module.exports = {
entry: {
app: './app/initialize.coffee',
vendor: [
'react',
'jquery',
'underscore',
'clipboard',
'select2'... | JavaScript | 0.000001 | @@ -1428,70 +1428,8 @@
.js'
-,%0A 'react': path.join(__dirname, 'node_modules', 'react')
%0A
|
be49d7669cf3fa6f61a0f41fd9334f52303e1f86 | correct state structure in Draggable | src/Draggable.react.js | src/Draggable.react.js | import React from 'react';
import raf from 'raf';
import isFunction from 'lodash/isFunction';
import merge from 'lodash/merge';
import computePosition from './computePosition';
import computeDeltas from './computeDeltas';
const T = React.PropTypes;
const ZERO_DELTAS = { dx: 0, dy: 0 };
const DEFAULT_TOUCH = { initia... | JavaScript | 0.000028 | @@ -1224,21 +1224,16 @@
urrent:
-%7B ...
touchPos
@@ -1235,35 +1235,30 @@
chPosition,
-...
deltas
- %7D
%7D,%0A co
@@ -1267,16 +1267,17 @@
onent: %7B
+
current:
@@ -1273,29 +1273,24 @@
%7B current:
-%7B ...
componentPos
@@ -1298,21 +1298,8 @@
tion
-, ...deltas %7D
%7D,%0A
@@ -1426,24 +1426,69 @@
... |
870ab40c43215cdcf1ee112a4ca87f7bc379b0db | 修复 FormControl 初始化数据 Bug | src/FormControl.jsx.js | src/FormControl.jsx.js | import _omit from 'lodash/omit';
import {PropTypes} from 'react';
import {fireEvent, isInputEventSupported} from './event';
import FormState from './FormState';
import DataSet from './DataSet.jsx';
import FormChild from './FormChild.jsx';
const {vajs} = FormState;
export default class FormControl extends FormChild {... | JavaScript | 0 | @@ -1278,16 +1278,17 @@
data:
+(
this.val
@@ -1289,16 +1289,42 @@
is.value
+ && this.value.data) %7C%7C %7B%7D
,%0A
|
d1d4ca7676ebf491d08755e58ae0bcc342b668cd | Add upload prop to skipped | src/DropzoneS3Uploader.js | src/DropzoneS3Uploader.js | import React, {PropTypes} from 'react'
import S3Upload from 'react-s3-uploader/s3upload'
import Dropzone from 'react-dropzone'
export default class DropzoneS3Uploader extends React.Component {
static propTypes = {
filename: PropTypes.string,
s3Url: PropTypes.string.isRequired,
notDropzoneProps: PropType... | JavaScript | 0 | @@ -638,16 +638,17 @@
pes.func
+,
%0A %5D),
|
bca1864375577f5ce557bc64bfcd31bc1752e79a | Add more docs to Translator | src/structs/Translator.js | src/structs/Translator.js | const fs = require('fs')
const path = require('path')
const config = require('../config.js')
const log = require('../util/logger.js')
const defaultLocale = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'locales', config.bot.locale + '.json')))
const localesData = new Map()
const fileList = fs.readdirSync(path.j... | JavaScript | 0 | @@ -1211,24 +1211,47 @@
e in string%0A
+ * @returns %7Bstring%7D%0A
*/%0A tran
@@ -1341,16 +1341,129 @@
s)%0A %7D%0A%0A
+ /**%0A * Returns a translator function for a locale%0A * @param %7Bstring%7D locale%0A * @returns %7Bfunction%7D%0A */%0A
static
@@ -1974,24 +1974,64 @@
ing%7D locale%0A
+ *... |
46f1d11ebc32c53fbd6920090491bd5605cd48ca | Fix Sparkpost influxService method name | modules/sparkpost/server/controllers/sparkpost-webhooks.server.controller.js | modules/sparkpost/server/controllers/sparkpost-webhooks.server.controller.js | 'use strict';
/**
* This module is used to receive incoming SparkPost events
*
* Note that `bodyParser.json()` has a default limit of 100kb.
* If you need to process larger requets, you need to change that.
* @link https://github.com/expressjs/body-parser#bodyparserjsonoptions
*/
/**
* Module dependencies.
*/... | JavaScript | 0.000001 | @@ -4612,11 +4612,17 @@
rite
-Poi
+Measureme
nt('
|
b1bafd05277065febff4b84b8f58484afc4269fd | Fix special write problem | src/u-popper.vue/index.js | src/u-popper.vue/index.js | import Vue from 'vue';
import Popper from '@vusion/popper.js';
import event from '../base/utils/event';
export default {
name: 'u-popper',
props: {
open: { type: Boolean, default: false },
trigger: { type: String, default: 'click', validator: (value) => ['click', 'hover', 'right-click', 'double... | JavaScript | 0.000003 | @@ -4461,54 +4461,401 @@
-options.modifiers.offset.offset = this.offset;
+// %E8%BF%99%E9%87%8C%E7%94%A8%E6%88%B7%E8%87%AA%E5%AE%9A%E4%B9%89op%08tions%08 %E4%B9%9F%E5%8F%AF%E8%83%BD%E4%BC%A0%E5%85%A5offset%E5%8F%82%E6%95%B0%0A if (options.modifiers.offset && !options.modifiers.offset.offset)%0A ... |
486b326c71d5e1a11bd2cb317193c2fe62f9bff9 | fix isTest | packages/teraslice/lib/cluster/services/cluster/backends/kubernetes/utils.js | packages/teraslice/lib/cluster/services/cluster/backends/kubernetes/utils.js | 'use strict';
const fs = require('fs');
const path = require('path');
const barbe = require('barbe');
const isTest = require('@terascope/utils');
function makeTemplate(folder, fileName) {
const filePath = path.join(__dirname, folder, `${fileName}.hbs`);
const templateData = fs.readFileSync(filePath, 'utf-8')... | JavaScript | 0.999308 | @@ -102,23 +102,27 @@
;%0A%0Aconst
+ %7B
isTest
+ %7D
= requi
|
110c41f6a401482978291f3e771a7f46203854d5 | Add elements field to section proptypes | src/ui/react/Container.js | src/ui/react/Container.js | import React, { Component } from 'react'
import Head from './Head'
import Plugin from './Plugin'
import Section from './Section'
import Contact from './Contact'
export default class Container extends Component {
renderHead() {
return <Head head={this.props.generic.head} />
}
renderContact() {
const { g... | JavaScript | 0 | @@ -1538,24 +1538,249 @@
pes.string,%0A
+ elements: React.PropTypes.arrayOf(React.PropTypes.shape(%7B%0A title: React.PropTypes.string,%0A logo: React.PropTypes.string,%0A link: React.PropTypes.string,%0A alt: React.PropTypes.string%0A %7D))%0A
%7D)),%0A
|
0d93e732731dfa1e24bfc8f9c6686af4b53de60a | make summary use pipeline query values when rendering | src/ui/results/Summary.js | src/ui/results/Summary.js | import React from "react";
import PropTypes from "prop-types";
import { Tracking } from "sajari";
import {
Pipeline,
resultsReceivedEvent,
errorReceivedEvent,
Values
} from "../../controllers";
class Summary extends React.Component {
/**
* propTypes
* @property {Pipeline} pipeline Pipeline object.
... | JavaScript | 0.000001 | @@ -2097,16 +2097,8 @@
st %7B
- values,
pip
@@ -2217,26 +2217,39 @@
alues =
-values.get
+pipeline.getQueryValues
() %7C%7C %7B%7D
|
d9b1e485eff18205e42e17c2aa3cab2a88ed1825 | fix request compatibility export, closes extplug/rollover-blurb#1 | src/util/compatibility.js | src/util/compatibility.js | import * as meld from 'meld';
import Plugin from '../Plugin';
import settings from '../store/settings';
import * as request from './request';
import getUserClasses from './getUserClasses';
import Style from './Style';
window.define('meld', () => meld);
window.define('extplug/Plugin', () => Plugin);
window.define('extp... | JavaScript | 0 | @@ -104,21 +104,16 @@
%0Aimport
-* as
request
|
d7e0ed5eedd80137343ce3f42efad9cec3c3ca65 | Fix lru unload performance | src/utilities/LRUCache.js | src/utilities/LRUCache.js | // TODO: can we remove the use of `indexOf` here because it's potentially slow? Possibly use time and sort as needed?
// Keep a used list that we can sort as needed when it's dirty, a map of item to last used time, and a binary search
// of the array to find an item that needs to be removed
class LRUCache {
construct... | JavaScript | 0.000002 | @@ -284,16 +284,155 @@
removed
+%0A%0A// Fires at the end of the frame and before the next one%0Afunction enqueueMicrotask( callback ) %7B%0A%0A%09Promise.resolve().then( callback );%0A%0A%7D
%0Aclass L
@@ -546,9 +546,10 @@
= 0.
-2
+05
;%0A%0A%09
@@ -2407,23 +2407,32 @@
t.size;%0A
-%0A
%09%09
-if (
+const excess... |
01a92b22056d988b2667fbfc03e28094e8ad36b3 | Update scene module | src/visual-novel.scene.js | src/visual-novel.scene.js | ( function( VN ) {
/**
* Function: initSceneContainer
*
* Initialize the container for the scenes
*/
VN.prototype.initSceneContainer = function initSceneContainer() {
// TODO : needs refactoring
this.screenSceneId = document.getElementById( this.novelId + "-screen-scene" );
var result = this.createS... | JavaScript | 0 | @@ -17,505 +17,8 @@
%7B%0A%0A
-%09/**%0A%09 * Function: initSceneContainer%0A%09 *%0A%09 * Initialize the container for the scenes%0A%09 */%0A%09VN.prototype.initSceneContainer = function initSceneContainer() %7B%0A%0A%09%09// TODO : needs refactoring%0A%0A%09%09this.screenSceneId = document.getElementById( this.nove... |
c34f4b5be778357eac20be23f5b2783751163ce9 | Add view mode to UI store | src/web/stores/UIStore.js | src/web/stores/UIStore.js | import { Store, toImmutable } from 'nuclear-js'
import actionTypes from '~/actions/actionTypes'
const { TOGGLE_LICENSE_MODAL, TOGGLE_ABOUT_MODAL } = actionTypes
export default Store({
getInitialState() {
return toImmutable({
licenseModalOpened: false,
aboutModalOpened: false
})
},
initializ... | JavaScript | 0.000001 | @@ -98,16 +98,19 @@
const %7B
+%0A
TOGGLE_L
@@ -122,16 +122,18 @@
E_MODAL,
+%0A
TOGGLE_
@@ -143,17 +143,38 @@
UT_MODAL
-
+,%0A VIEW_MODE_CHANGED%0A
%7D = acti
@@ -314,16 +314,36 @@
d: false
+,%0A viewMode: -1
%0A %7D)%0A
@@ -469,16 +469,64 @@
tModal)%0A
+ this.on(VIEW_MODE_CHANGED, viewModeCh... |
13da204061d0f8e02533332007d10cf7b431f5c0 | use mockPackage and injector | ngdoc/spec/processors/generateComponentGroups.spec.js | ngdoc/spec/processors/generateComponentGroups.spec.js | var processorFactory = require('../../processors/generateComponentGroups');
describe("generateComponentGroupsProcessor", function() {
it("should create a new doc for each group of components (by docType) in each module", function() {
var docs = [];
var modules = [{
id: 'mod1',
name: 'mod1',
... | JavaScript | 0 | @@ -1,138 +1,421 @@
var
-processorFactory = require('../../processors/generateComponentGroups');%0A%0Adescribe(%22generateComponentGroupsProcessor%22, function() %7B
+mockPackage = require('dgeni-packages/ngdoc/spec/mockPackage');%0Avar Dgeni = require('dgeni');%0A%0Adescribe(%22generateComponentGroupsProcessor%22, f... |
48d4ceedb5a1b66d98e3e7a2b07a0e4b11eaf84a | Use the .caller property to test tail-calls instead of trying to cause stackoverflow errors | src/test/scripts/suite/objects/Realm/direct_eval_fallback_tailcall.js | src/test/scripts/suite/objects/Realm/direct_eval_fallback_tailcall.js | /*
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame
} = Assert;
// Invalid direct eval call and tail calls:
// - direct eval fallback and 'wrong' eval function have both tail c... | JavaScript | 0 | @@ -389,209 +389,8 @@
ty%0A%0A
-const stackLimit = (function() %7B%0A let limit = 0;%0A try %7B%0A (function f()%7B f(limit++) %7D)();%0A %7D catch (e) %7B%0A %7D%0A return limit;%0A%7D)();%0A%0Afunction gauss(n) %7B%0A return (n * n + n) / 2;%0A%7D%0A%0Alet callCount;%0A
let
@@ -495,30 +495,8 @@
t%22;%0A
... |
a0566f6673dcfeb3c8567b65978df2d22741a7c2 | Fix typo | src/core/index.js | src/core/index.js | /**
* Identity Desk
* Copyright(c) 2017 Faraz Syed
* MIT Licensed
*/
'use strict';
export default main;
/**
* Module dependencies.
*/
import { clone, flow, map, mapKeys } from 'lodash';
import CoreFramework from './framework';
import CorePlugin from './plugin';
import ExpressFramework from '../frameworks/expr... | JavaScript | 0.999999 | @@ -53,17 +53,17 @@
%0A * MIT
-L
+l
icensed%0A
|
4f0c2c275842eaa5ec2540a93a097a1ad238faa3 | Support sending numbers over rpc in wireFriendly | src/core/utils.js | src/core/utils.js | // Requires
var Q = require('q');
var _ = require('underscore');
var cp = require('child_process');
// Generate callbacks for exec functions
function _execHandler(deffered) {
return function(error, stdout, stderr) {
if(error) {
return deffered.reject(Error(error));
}
return def... | JavaScript | 0 | @@ -1997,24 +1997,43 @@
sString(obj)
+ %7C%7C _.isNumber(obj)
) %7B%0A
|
d1085e08f52ad7abce25d957e82be7330b093a6c | fix jshint | addon/components/html-select.js | addon/components/html-select.js | import Ember from 'ember';
import layout from '../templates/components/html-select';
export default Ember.Component.extend({
layout: layout,
didReceiveAttrs(/*attrs*/) {
this._super(...arguments);
var content = this.get('content');
if (!content) {
this.set('content', []);
// TODO ember ... | JavaScript | 0.000002 | @@ -940,16 +940,17 @@
Index !=
+=
0)%7B%0A
|
caf25a2e33c0acc893708b420c3e2026661700c4 | Allow 0 as a number if allowZero is true | addon/components/imput-money.js | addon/components/imput-money.js | import Ember from 'ember';
export default Ember.TextField.extend({
prefix: '',
suffix: '',
affixesStay: false,
thousands: ',',
decimal: '.',
precision: 2,
allowZero: true,
allowNegative: false,
allowDecimal: true,
options: Ember.computed('prefix', 'suffix', 'affixesStay', 'thousands', 'decimal', '... | JavaScript | 0.999985 | @@ -935,16 +935,81 @@
if(
+(self.get('allowZero') && (self.get('number') !== undefined)) %7C%7C
self.get
@@ -1016,24 +1016,26 @@
('number'))%7B
+
%0A sel
|
20d90a2af4a374530ab14f77f6a8f58bde2297fe | support property changes where get mutates self | addon/document/internal/base.js | addon/document/internal/base.js | import Ember from 'ember';
import ModelMixin from './-model-mixin';
import { isInternal } from 'documents/util/internal';
const {
assert
} = Ember;
const types = [ 'document', 'model', 'shoebox' ];
export const empty = {};
export default ModelMixin(class InternalBase {
constructor(store, parent) {
this.sto... | JavaScript | 0 | @@ -1196,24 +1196,32 @@
s(cb, notify
+, except
) %7B%0A asse
@@ -1305,24 +1305,60 @@
boolean');%0A%0A
+ console.log('except', except);%0A%0A
let mode
@@ -1553,32 +1553,70 @@
(model && notify
+ && (!except %7C%7C !except.includes(key))
) %7B%0A mode
|
86f23dc53d53d2f8dafe61b4ae5e783128a89a7c | Add userId var and setMentorId function | server/public/scripts/controllers/nav.controller.js | server/public/scripts/controllers/nav.controller.js | app.controller('NavController', ['$http', '$firebaseAuth', '$mdDialog', 'AuthFactory', function($http, $firebaseAuth, $mdDialog, AuthFactory) {
console.log('NavController running');
var auth = $firebaseAuth();
var self = this;
self.logInModal = function(ev) {
$mdDialog.show({
controller: 'LoginCont... | JavaScript | 0 | @@ -79,16 +79,30 @@
actory',
+ 'BioFactory',
functio
@@ -147,16 +147,28 @@
hFactory
+, BioFactory
) %7B%0A co
@@ -253,16 +253,64 @@
this;%0A%0A
+ var userId = AuthFactory.userStatus.userId;%0A%0A%0A
self.l
@@ -591,14 +591,111 @@
%7D);%0A
-
%7D;%0A%0A
+ self.setMentorId = function()%7B%0A BioFactory.... |
35c6cd64325619aa81968947324841c8558f1ab5 | Switch Button to TouchableRipple | src/button.js | src/button.js | import React, { PropTypes } from 'react'
import { TouchableWithoutFeedback, View } from 'react-native-universal'
import ps from 'react-native-ps'
import Uranium from 'uranium'
import Color from 'color'
import connectTheme from './connectTheme'
import Shadows from './styles/Shadows'
import { Breakpoints } from './style... | JavaScript | 0 | @@ -46,34 +46,8 @@
rt %7B
- TouchableWithoutFeedback,
Vie
@@ -308,17 +308,17 @@
t %7B Body
-1
+2
%7D from
@@ -345,16 +345,25 @@
%0Aimport
+Touchable
Ripple f
@@ -369,16 +369,25 @@
from './
+Touchable
Ripple'%0A
@@ -737,17 +737,38 @@
%3CBody
-1
+2 style=%7BtStyles.text%7D
%3E%7Bchildr
@@ -790,17 +790,17... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.