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 |
|---|---|---|---|---|---|---|---|
8c029922a3687f6a89127913617c59e45c02d5f3 | Fix threshold calculation with ar2 prediction, when using mmol/L | lib/plugins/ar2.js | lib/plugins/ar2.js | 'use strict';
var _ = require('lodash');
function init() {
function ar2() {
return ar2;
}
ar2.label = 'AR2';
ar2.pluginType = 'forecast';
var WARN_THRESHOLD = 0.05;
var URGENT_THRESHOLD = 0.10;
var ONE_HOUR = 3600000;
var ONE_MINUTE = 60000;
var FIVE_MINUTES = 300000;
ar2.checkNotificatio... | JavaScript | 0.000002 | @@ -1155,16 +1155,28 @@
(max %3E
+sbx.scaleBg(
sbx.thre
@@ -1196,16 +1196,17 @@
get_top)
+)
%7B%0A
@@ -1304,16 +1304,28 @@
(min %3C
+sbx.scaleBg(
sbx.thre
@@ -1348,16 +1348,17 @@
_bottom)
+)
%7B%0A
@@ -1605,16 +1605,28 @@
%5B'Now',
+sbx.scaleBg(
sbx.data
@@ -1635,16 +1635,17 @@
astSGV()
+)
... |
7efb24a80a512cdacc42ce6b8582da21e7346b6d | add print method | lib/plugins/css.js | lib/plugins/css.js | /**
* Created by nuintun on 2015/5/5.
*/
'use strict';
var util = require('../util');
var common = require('../common');
function transport(vinyl, options){
var id = common.transportId(vinyl, options);
var deps = common.transportCssDeps(vinyl, options);
// get code
var code = '';
var importStyle = util.... | JavaScript | 0.000016 | @@ -856,16 +856,210 @@
ode));%0A%0A
+ // add import style deps%0A vinyl.package.dependencies.push(importStyle);%0A vinyl.package.include.push(%7B%0A id: importStyle,%0A path: util.resolve(importStyle, vinyl, options.wwwroot)%0A %7D);%0A%0A
return
|
ee67a392e297d455af35bb1242c4d12a0b149eb5 | change ReqSocket to round-robin send()s | lib/sockets/req.js | lib/sockets/req.js |
/**
* Module dependencies.
*/
var Socket = require('./sock')
, queue = require('../plugins/queue')
, debug = require('debug')('axon:req');
/**
* Expose `ReqSocket`.
*/
module.exports = ReqSocket;
/**
* Initialize a new `ReqSocket`.
*
* @api private
*/
function ReqSocket() {
Socket.call(this);
this... | JavaScript | 0 | @@ -307,16 +307,30 @@
(this);%0A
+ this.n = 0;%0A
this.p
@@ -1232,16 +1232,17 @@
var sock
+s
= this.
@@ -1250,10 +1250,67 @@
ocks
-%5B0
+%0A , len = socks.length%0A , sock = socks%5Bthis.n++ %25 len
%5D%0A
|
cceb4d3a16573c3ad68b6377b1633254428f0847 | Add ignore to defaultOptions | lib/state/state.js | lib/state/state.js | 'use strict';
const mergeOptions = require('merge-options');
const init = require('./init');
const debug = require('./debug');
const defaultOptions = {
update: false,
global: false,
cwd: process.cwd(),
nodeModulesPath: false,
skipUnused: false,
ignoreDev: false,
forceColor: false,
save... | JavaScript | 0.000001 | @@ -403,16 +403,32 @@
: 'npm',
+%0A ignore: %5B%5D,
%0A%0A gl
|
b6d16b9ff6d7478481eb01a8b486e3cd762031b7 | Revert "Use back instead of "this" to avoid problems with "this"." | lib/strong-back.js | lib/strong-back.js | /*!
* Strong i18n for express - Simple Backend
* Copyright(c) 2011 Tim Shadel
* MIT Licensed
*/
/*
Simple implementation of a translation backend provider.
Conforms to the basic strong provider API contract.
*/
/**
* Module dependencies.
*/
var glob = require('glob')
, _ = require('underscore')
, fs =... | JavaScript | 0 | @@ -684,20 +684,20 @@
j%5Bi%5D %7D,
-back
+this
._transl
|
0b5f94299b0e37e028da120f6a8ee3e2bfc4768e | Remove try-catch | lib/tessel/list.js | lib/tessel/list.js | var mdns = require('mdns-js');
var _ = require('lodash');
//if you have another mdns daemon running, like avahi or bonjour, uncomment following line
mdns.excludeInterface('0.0.0.0');
function list(callback){
// Initial list of Tessels
var tessels = [];
// Create a Tessel browser
var browser = mdns.createBrow... | JavaScript | 0.000018 | @@ -178,16 +178,29 @@
0.0');%0A%0A
+%3C%3C%3C%3C%3C%3C%3C HEAD%0A
function
@@ -1168,16 +1168,17 @@
rn;%0A %7D)
+;
%0A%7D%0A%0Amodu
|
feb747c417096c6d0b4adbac32dd68accf22cba4 | Update topic_cache.js | lib/topic_cache.js | lib/topic_cache.js | var LRU = require('lru-cache');
var moment = require('moment');
function TopicCache(capacity){
var options_ = {
max : capacity,
dispose : function (key, val){
val.close();
}
}
LRU.call(this, options_);
var me = this;
// cycle timer
var timer_ = null;
// clear handles of each topic
var clearHandles_... | JavaScript | 0.000002 | @@ -213,496 +213,8 @@
_);%0A
-%09var me = this;%0A%0A%09// cycle timer%0A%09var timer_ = null;%0A%0A%09// clear handles of each topic%0A%09var clearHandles_ = function ()%7B%0A%09%09// remove 5 days before%0A%09%09var ts = moment() - moment.duration(5, %22days%22);%0A%09%09me.forEach(function (val, key, cache)%7B%0A%0... |
e94bcfba4ecb43095f174568f0971e2f53ec5127 | Fix regression (cf. #18) | lib/tree-ignore.js | lib/tree-ignore.js | "use babel";
import ignore from "ignore";
import { CompositeDisposable } from "atom";
import $ from "jquery";
let oPackageConfig,
fActivate, fDeactivate,
_oDisposables, _oAtomIgnoreFileDisposables,
_oMutationObserver,
_bIsWindowsPlatform = document.body.classList.contains( "platform-win32" ),
_oAt... | JavaScript | 0 | @@ -395,16 +395,35 @@
edPaths,
+ _fGetCurrentState,
%0A _fA
@@ -1750,50 +1750,8 @@
ate(
- atom.config.get( %22tree-ignore.enabled%22 )
);%0A
@@ -1950,16 +1950,106 @@
();%0A%7D;%0A%0A
+_fGetCurrentState = function() %7B%0A return atom.config.get( %22tree-ignore.enabled%22 );%0A%7D;%0A%0A
_fApply
@@ -2138,... |
03f51b6078f378d0eec22e84d8fdf161ecd73398 | Fix config merging behavior | lib/utils/index.js | lib/utils/index.js | 'use strict';
var _ = require('lodash');
var gravatar = require('gravatar');
module.exports = {
gravatar: gravatarDefault,
sanitizeProject: sanitizeProject,
sanitizeBranch: sanitizeBranch,
sanitizeUser: sanitizeUser,
timeFromId: timeFromId,
defaultSchema: defaultSchema,
validateAgainstSchema: validateAg... | JavaScript | 0.000002 | @@ -2153,49 +2153,595 @@
%7B%0A
-var config = _.extend(%7B%7D, branch, sjson);
+// Is this still a mongoose document?%0A if (typeof branch.toObject === 'function') %7B%0A branch = branch.toObject();%0A %7D%0A%0A // Copy all properties of the branch configuration to a new object (inherited properties are ignore... |
ce1db751d04ed5515e8857d248592a1f84fe2bbc | Make tabs work with back forward buttons. | static/js/billing/helpers.js | static/js/billing/helpers.js | var helpers = (function () {
var exports = {};
exports.create_ajax_request = function (url, form_name, stripe_token = null) {
var form = $("#" + form_name + "-form");
var form_loading_indicator = "#" + form_name + "_loading_indicator";
var form_input_section = "#" + form_name + "-input-section";
var fo... | JavaScript | 0 | @@ -3031,36 +3031,141 @@
-$(this).tab('show');%0A
+window.location.hash = this.hash;%0A %7D);%0A%0A $(window).on('hashchange', function () %7B%0A $('#' + page + '-tabs.nav a%5Bhref=%22' +
win
@@ -3178,35 +3178,43 @@
cation.hash
-= this.hash
++ '%22%5D').tab('show')
;%0A $(
|
257234c5a41d6ff2c9d619b8c7b846b2bc88e0f8 | Fix faulty assistant hint. (#2045) | static/js/views/assistant.js | static/js/views/assistant.js | /**
* Smart Assistant.
*
* A chat-style UI to control things with spoken and written commands.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
'use strict'... | JavaScript | 0.000001 | @@ -2082,19 +2082,20 @@
ngDescr.
-nam
+titl
e%7D on%60);
@@ -2235,19 +2235,20 @@
ngDescr.
-nam
+titl
e%7D%60);%0A
@@ -2362,11 +2362,12 @@
scr.
-nam
+titl
e%7D r
|
8cb1a21e8cb3a1344a0dcedb147e6a3d089333e6 | Add PWD to execute path to be able to execute cmds on Windows. | make.js | make.js | require('shelljs/make');
require('shelljs/global');
// Targets
target.all = function () {
target.lint();
target.bundle();
target.test();
target.minify();
target.boilerplate();
};
target.highlighter = function () {
console.log('Bundling highlighter...');
bundleHighlighter('src/remark/highlighter.js');
}... | JavaScript | 0 | @@ -3680,17 +3680,26 @@
= exec(
-'
+pwd() + '/
node_mod
|
29fc4dc09f6e5808acd669508adf1789034c4f1c | use callbacks provided | tutor/src/models/payments.js | tutor/src/models/payments.js | import {
BaseModel, identifiedBy, field, hasMany,
} from './base';
import { action, observable, when } from 'mobx';
import loadjs from 'loadjs';
let EMBED_URL = '';
@identifiedBy('payments')
export default class Payments extends BaseModel {
static set embed_js_url(url) {
EMBED_URL = url;
}
@observable ... | JavaScript | 0 | @@ -62,16 +62,49 @@
/base';%0A
+import %7B extend %7D from 'lodash';
%0Aimport
@@ -129,16 +129,25 @@
le, when
+,computed
%7D from
@@ -421,16 +421,47 @@
element;
+%0A @observable parentCallbacks;
%0A%0A cons
@@ -468,16 +468,23 @@
tructor(
+options
) %7B%0A
@@ -492,16 +492,44 @@
uper();%0A
+ this.op... |
bc85bce345e3037809808bee79717bc370a4b56c | fix mesh buffer dealocation | projects/OG-Web/web-engine/prototype/scripts/lib/four/four.buffer.js | projects/OG-Web/web-engine/prototype/scripts/lib/four/four.buffer.js | /**
* Copyright 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
* Please see distribution for license.
*/
(function () {
if (!window.Four) window.Four = {};
if (!Detector) throw new Error('Four.Buffer requires Detector');
/**
* Buffer constructor
* A buffer stores referenc... | JavaScript | 0 | @@ -890,383 +890,8 @@
%7D);%0A
- else if (val instanceof THREE.Mesh) %7B%0A if (val.geometry) val.geometry.deallocate();%0A if (val.material) %7B%0A if (val.material.materials) val.material.materials.forEach(function (val) %7Bval.deallocate();... |
35b82197ad3d6d56bf093b18d09cdda71f4e7ab5 | fix blocke | lib/BlockExtractor.js | lib/BlockExtractor.js | 'use strict';
require('classtool');
function spec() {
var Block = require('bitcore/Block').class(),
networks = require('bitcore/networks'),
Parser = require('bitcore/util/BinaryParser').class(),
fs = require('fs'),
Buffer = require('buffer').Buffer,
glob = require('glob'),
async =... | JavaScript | 0.000001 | @@ -49,16 +49,17 @@
pec() %7B%0A
+%0A
var Bl
|
b1597ee6788bf10d72fa49dfdc2e42894f9ffce3 | fix tab disabled onClick bug | src/react/Tab.js | src/react/Tab.js | import React from 'react';
class Tab extends React.Component {
render() {
const {activeTab, tabId, title, onClick, disabled, className = ''} = this.props;
const dataTestId = this.props['data-test-id'];
return (<li className={activeTab === tabId ? 'sdc-tab sdc-tab-active ' + className : 'sdc-tab ' + className}
... | JavaScript | 0 | @@ -325,16 +325,29 @@
nClick=%7B
+!disabled &&
onClick%7D
|
e3d3b4141e0ec146e672f0ae255c66eb034401eb | add TODO | src/rest/list.js | src/rest/list.js | "use strict";
import countParser from '../parser/countParser';
import filterParser from '../parser/filterParser';
import orderbyParser from '../parser/orderbyParser';
import skipParser from '../parser/skipParser';
import topParser from '../parser/topParser';
import selectParser from '../parser/selectParser';
export d... | JavaScript | 0 | @@ -546,24 +546,50 @@
r);%0A %7D;%0A%0A
+%0A // TODO: use Promise%0A
let err
|
f0b3e9199ccfe2aea3c218a5da72bbf257fe233b | Fix setting api_host | lib/Oriskami/index.js | lib/Oriskami/index.js | var Resource = require("../Resource")
, bindingName = "Oriskami/v1 NodeBindings/"
, httpTimeout = 120000
/*
* Wrapper factory of the Oriskami API client
* @token [String] required obtained from admin interface
* @version [String] default to 'latest'
*/
function Oriskami(token, vers... | JavaScript | 0.000005 | @@ -1470,25 +1470,100 @@
== %22
-timeout%22) value =
+api_host%22) %7B %0A this._api.request.host = value %0A %7D else %7B%0A value = key === %22timeout%22 ?
val
@@ -1579,17 +1579,27 @@
pTimeout
-%0A
+ : value%0A
this._
@@ -1615,16 +1615,20 @@
= value%0A
+ %7D%0A
%7D%0A%0A/*%0A *
|
a7907b222857976f5f2f23a91e1a8c43d2fdc429 | Fix whitespace | ubcpi/static/js/src/ubcpi.js | ubcpi/static/js/src/ubcpi.js | /* Javascript for PeerInstructionXBlock. */
function PeerInstructionXBlock(runtime, element, data) {
"use strict";
var handlerUrl = runtime.handlerUrl(element, 'submit_answer');
var submitButton = $('.ubcpi_submit', element);
var enableSubmit = function () {
$('.ubcpi_submit', element).removeA... | JavaScript | 0.999999 | @@ -667,17 +667,16 @@
nction (
-
data, te
@@ -690,17 +690,16 @@
s, jqXHR
-
) %7B%0A
@@ -768,18 +768,18 @@
function
-(
+(
jqXHR, t
@@ -800,17 +800,16 @@
orThrown
-
) %7B%0A
@@ -1381,24 +1381,16 @@
answer;%0A
-
%0A
@@ -1420,18 +1420,18 @@
if
-(
+(
!savedAn
@@ -1434,17 +14... |
aa25c46be343327f782dd87aa8847c7d4ba685ba | Add Splice to `mvcc.js`. | mvcc.js | mvcc.js | exports.advance = require('advance')
exports.designate = require('designate')
exports.dilute = require('dilute')
exports.homogenize = require('homogenize')
exports.revise = require('revise')
exports.riffle = require('riffle')
exports.twiddle = require('twiddle')
| JavaScript | 0 | @@ -215,24 +215,59 @@
e('riffle')%0A
+exports.splice = require('splice')%0A
exports.twid
|
906d9d0a920c9a93119e3845fc5200ef63c607e5 | Transform annotations when joining text nodes. | src/text_node.js | src/text_node.js | "use strict";
var _ = require("underscore");
var Operator = require('substance-operator');
var SRegExp = require("substance-regexp");
var ObjectOperation = Operator.ObjectOperation;
var TextOperation = Operator.TextOperation;
var Node = require('./node');
// Substance.Text
// -----------------
//
var Text = function... | JavaScript | 0 | @@ -2463,16 +2463,279 @@
text%5D);%0A
+ var annotations = doc.indexes%5B%22annotations%22%5D.get(other.id);%0A%0A _.each(annotations, function(anno) %7B%0A doc.set(%5Banno.id, %22path%22%5D, %5Bthis.properties.id, %22content%22%5D);%0A doc.set(%5Banno.id, %22range%22%5D, %5Banno.range%5B0%5D+pos, anno.... |
afe61d61ac4bc63e96024e40b91da9dd4492aeb2 | Fix recently introduced errors in setting of Tool#_document. | src/tool/Tool.js | src/tool/Tool.js | /*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* Copyright (c) 2011, Juerg ... | JavaScript | 0 | @@ -2606,41 +2606,12 @@
%09%7D;%0A
-%09%09%09%0A%09%09%09if (paper.document) %7B
%0A%09%09%09
-%09
// R
@@ -2634,17 +2634,16 @@
first.%0A
-%09
%09%09%09if (t
@@ -2661,17 +2661,16 @@
nt)%0A%09%09%09%09
-%09
Event.re
@@ -2711,17 +2711,16 @@
vents);%0A
-%09
%09%09%09this.
@@ -2738,29 +2738,10 @@
doc
- %7C%7C p... |
5baee5243664d04661576714de599a996447bd52 | Remove console.log | src/tool/line.js | src/tool/line.js | (function(d3, fc) {
'use strict';
fc.tool.line = function() {
var xScale = d3.time.scale(),
yScale = d3.scale.linear(),
value = fc.util.fn.identity,
keyValue = fc.util.fn.index,
label = value,
decorate = fc.util.fn.noop,
orient = ... | JavaScript | 0.000004 | @@ -2192,98 +2192,8 @@
) %7B%0A
- console.log(scale.rangeExtent ? scale.rangeExtent() : scale.range());%0A
|
8977350ef77a76b61ebc68fe7197a574c293fb85 | fix Team Drives anchor | src/views/FAQ.js | src/views/FAQ.js | 'use strict';
import React from 'react';
import Warning from '../components/icons/Warning';
export default function FAQ() {
return (
<main className="doc">
<h2>FAQ</h2>
<a name="top" />
<ul>
<li>
<a href="#longerThan2Mins">
The copying has been paused longer than ... | JavaScript | 0 | @@ -6774,39 +6774,38 @@
%3Ch3%3E%0A %3Ca
-href
+name
=%22
-#
teamdrives%22 /%3EDo
|
f46a047adc3592555796a3545a4b99acda3226d5 | Remove unused r.js configs. | public/js/app.build.js | public/js/app.build.js | ({
baseDir: '.',
dir: '../../public-build/js',
mainConfigFile: 'index.js',
modules: [
{name: 'index'},
{
name: 'controllers/ViewTimeline',
exclude: [
]
},
{
name: 'controllers/ViewDashboard'
},
{
name: 'controllers/ViewEvent',
exclude: [
]
}
... | JavaScript | 0 | @@ -105,39 +105,32 @@
'index'%7D,%0A %7B
-%0A
name: 'controlle
@@ -149,47 +149,16 @@
ine'
-,%0A exclude: %5B%0A %5D%0A
%7D,%0A %7B
%0A
@@ -145,39 +145,32 @@
imeline'%7D,%0A %7B
-%0A
name: 'controlle
@@ -190,21 +190,16 @@
ard'
-%0A
%7D,%0A %7B
%0A
@@ -194,23 +19... |
8f6c80adc96bab91a5c35359dea1306ffa9d05c2 | Fix manufacturer filter bug | public/js/dataparse.js | public/js/dataparse.js | // ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
// ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~
// Brannon's sockets magix ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ * ~ *... | JavaScript | 0 | @@ -3478,18 +3478,16 @@
, mac)%7B%0A
-%09%09
%0A%09%09// fi
@@ -3778,16 +3778,30 @@
ng(0, 8)
+.toUpperCase()
) %7C%7C ven
@@ -3833,16 +3833,30 @@
ng(0, 8)
+.toUpperCase()
%5D != fil
|
09fd782e5f25dd675107b9972f2b79624f4045d3 | add commentlist component | public/scripts/main.js | public/scripts/main.js | // generate sudo UUID
var generate = function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
};
var Post = React.createClass({
loadCommentsFromServ... | JavaScript | 0.000001 | @@ -1560,12 +1560,559 @@
);%0A %7D%0A%7D);%0A
+%0Avar CommentList = React.createClass(%7B%0A%0A%09%0A%09render: function() %7B %0A%09%09var that = this; %0A%09%09var com = %5B%5D; %0A%09%09for (var comment in sorted_comments) %7B%0A %09%09if (current_parent === sorted_comments%5Bcomment%5D.parentid) %7B%09%09%0A ... |
1d59a27ae48bd1180e82e2750fb86d5ea9beb479 | Fix for adding XR/none rels. | rest/src/main/webapp/app/page/edit/relationships/editRelationship.js | rest/src/main/webapp/app/page/edit/relationships/editRelationship.js | // Edit relationship controller
tsApp.controller('EditRelationshipModalCtrl', [
'$scope',
'$uibModalInstance',
'$uibModal',
'utilService',
'metadataService',
'contentService',
'metaEditingService',
'selected',
'lists',
'user',
'action',
function($scope, $uibModalInstance, $uibModal, utilService,... | JavaScript | 0 | @@ -818,17 +818,16 @@
N', 'RQ'
-
%5D;%0A $
@@ -875,24 +875,26 @@
'key' : '
+XR
',%0A 'va
@@ -905,11 +905,8 @@
: '
-XR
(non
|
d235d03e5e35ffdf17d061f6f597327e16ab31ab | add all built docs to source pipeline before deploy | lib/actions/deploy.js | lib/actions/deploy.js | (function() {
'use strict';
var _ = require('lodash');
var chalk = require('chalk');
var lazypipe = require('lazypipe');
var pages = require('gulp-gh-pages');
var wait = require('wait-stream');
var through2 = require('through2');
var flatten = require('../flatten');
var tasks = require('../tasks');
... | JavaScript | 0 | @@ -49,24 +49,63 @@
('lodash');%0A
+ var addsrc = require('gulp-add-src')%0A
var chalk
@@ -757,32 +757,66 @@
return pipeline%0A
+ .pipe(addsrc, 'build/**')%0A
.pipe(th
@@ -858,35 +858,8 @@
) %7B%0A
- if (!before) %7B%0A
@@ -884,26 +884,24 @@
.verbose) %7B%0A
-
@... |
30d4806b285e83f932670bb45bde0700b6ec1dde | Remove debug | lib/api/controller.js | lib/api/controller.js | 'use strict';
var _ = require('lodash');
var r = require('rethinkdb');
var p = require('json-pointer');
var li = require('li');
var qs = require('qs');
var operators = {};
// build simple operators
['eq', 'ne', 'gt', 'lt', 'ge', 'le', 'match'].forEach(function(op) {
operators[op] = function(f, row) {
var path = A... | JavaScript | 0.000001 | @@ -3940,47 +3940,8 @@
l;%0A%0A
-%09%09console.log(raw, Model.collections)%0A%0A
%09%09//
|
1a0de813fcd705dcfc202a0ba58678111f94de28 | fix browser kjur usage. | lib/browser/PayPro.js | lib/browser/PayPro.js | "use strict";
var Key = require('./Key');
var KJUR = require('jsrsasign');
var assert = require('assert');
var PayPro = require('../common/PayPro');
var RootCerts = require('../common/RootCerts');
var asn1 = require('asn1.js');
var rfc3280 = require('asn1.js/rfc/3280');
// Documentation:
// http://kjur.github.io/jsrs... | JavaScript | 0 | @@ -3927,16 +3927,32 @@
eHex(tbs
+.toString('hex')
);%0A%0A
|
a14bb9458e046e899e73cc189214e222bb962cd5 | Remove faulty helpers and add currentRoute to Handlebars helpers. | lib/client/helpers.js | lib/client/helpers.js | function assert (condition, msg) {
if (!condition) throw new Error(msg);
}
function linkTo (url, html) {
return '<a href="' + url + '">' + html + '</a>';
}
function getParams (routeName, context, options) {
var params;
switch(arguments.length) {
case 3:
params = context;
break;
case 2:
... | JavaScript | 0 | @@ -75,92 +75,8 @@
%0A%7D%0A%0A
-function linkTo (url, html) %7B%0A return '%3Ca href=%22' + url + '%22%3E' + html + '%3C/a%3E';%0A%7D%0A%0A
func
@@ -122,16 +122,16 @@
ions) %7B%0A
+
var pa
@@ -524,710 +524,8 @@
) %7B%0A
- Handlebars.registerHelper('linkTo', function (routeName, context, options) %7B%0A var... |
99f0057fbf7b7b418254eafc67cea7fa904200e0 | apply expression to commands | lib/commandHandler.js | lib/commandHandler.js | /*
* Copyright 2016 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of iotagent-json
*
* iotagent-json 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 version 3 of the L... | JavaScript | 0.999945 | @@ -1706,28 +1706,473 @@
-const payload = %7B%7D;%0A
+let parser = iotAgentLib.dataPlugins.expressionTransformation;%0A%0A const payload = %7B%7D;%0A let command = device && device.commands.find((att) =%3E att.name === attribute.name);%0A if (command && command.expression) %7B%0A // TBD context:%0... |
a36c7c344c48f890a30af53eec19b66180b18907 | add a new param, excludes to config-handler | lib/config-handler.js | lib/config-handler.js | var
fs = require('fs'),
path = require('path'),
fsmore = require('../util/fs-more'),
lang = require('../util/lang'),
REGEX_REPLACE_EXT = /^(.*)(\.[^\.]+)$/i;
/**
* @param {Object} options {
cwd: {string}
file: {string}
parser:
env
}
*/
function ConfigHandler(options){
this... | JavaScript | 0.000001 | @@ -434,16 +434,53 @@
s.env);%0A
+ this.excludes = options.exclude;%0A
%0A
@@ -1740,22 +1740,26 @@
-return
+var conf =
file ?
@@ -1780,16 +1780,140 @@
) : %7B%7D;%0A
+ %0A this.excludes.forEach(function(ex)%7B%0A delete conf%5Bex%5D;%0A %7D);%0A %0A ... |
6ec4fb7a44a938397765b8ab245445af0a3d4a92 | remove class breaking editor | lib/data-atom-view.js | lib/data-atom-view.js | "use babel";
var DataResultView = require('./data-result-view');
var HeaderView = require('./header-view');
module.exports =
class DataAtomView {
constructor() {
this.createView();
this.queryInput.style.display = 'none';
this.useEditorQuery = true;
this.isShowing = false;
this.resizeHandle.addEv... | JavaScript | 0.000001 | @@ -103,16 +103,53 @@
iew');%0A%0A
+var %7BTextEditor%7D = require('atom');%0A%0A
module.e
@@ -708,24 +708,27 @@
dding');%0A
+ //
this.elemen
|
8b4411d0c6a4827951ec9df1f713561fa8d537d8 | Fix jsdom oneliers in platform | lib/delta/platform.js | lib/delta/platform.js | /**
* @file: Platform specific implementation and abstractions
*/
(function(exports) {
exports.isBrowser = function() {
return typeof window !== 'undefined';
};
/**
* Construct and return a DOM document from an xml string
*/
exports.parseXML = function (text) {
if (expor... | JavaScript | 0.000012 | @@ -1622,23 +1622,21 @@
-var domToXml =
+return (new (
requ
@@ -1659,42 +1659,9 @@
js')
-;%0A return (new domToXml
+)
.XML
@@ -2130,16 +2130,17 @@
urn new
+(
require(
@@ -2168,12 +2168,9 @@
re')
-.dom
+)
.Doc
|
55b2cba86ba0892e6ff58568cf5c611c8da4f55a | Remove click to block user action in favor of right click menu | lib/elements/users.js | lib/elements/users.js | module.exports = Users
var h = require('virtual-dom/h')
var inherits = require('util').inherits
var BaseElement = require('./base-element')
var ModalElement = require('modal-element')
function Users (target) {
BaseElement.call(this, target)
var self = this
this.showUserMenuFor = false
this.lastClickPosition =... | JavaScript | 0 | @@ -1456,129 +1456,8 @@
, %7B%0A
- onclick: function (e) %7B%0A e.preventDefault()%0A self.send('toggleBlockUser', username)%0A %7D,%0A
|
6939dda495fc6e682f118bb2965f112013886d9d | remove code not needeed in parameters ingredient user profile | source/web/src/app/components/userProfile/parametersIngredientsUserProfile.controller.js | source/web/src/app/components/userProfile/parametersIngredientsUserProfile.controller.js | /**
* Created by sylflo on 11/15/15.
*/
(function () {
'use strict';
angular.module('NourritureControllers')
.controller('ParametersIngredientsUserProfileController', ParametersIngredientsUserProfileController);
ParametersIngredientsUserProfileController.$inject = ["$scope", "IngredientService", 'TagsSe... | JavaScript | 0.000001 | @@ -691,1629 +691,8 @@
%5D;%0A%0A
- vm.submit = function () %7B%0A $log.log(%22innit%22);%0A IngredientService%0A .ingredients%0A .save(%7B%0A %22name%22: $scope.name,%0A %22description%22: $scope.description,%0A %22calories%22: $scope.calories,%0A %22fat%... |
3af4146e32259004a6e3e081707b65527a67aae7 | disable actions logging; | actor-apps/app-web/src/app/stores/PreferencesStore.js | actor-apps/app-web/src/app/stores/PreferencesStore.js | import { EventEmitter } from 'events';
import ActorAppDispatcher from 'dispatcher/ActorAppDispatcher';
import { ActionTypes } from 'constants/ActorAppConstants';
const CHANGE_EVENT = 'change';
let _isModalOpen = false;
class SettingsStore extends EventEmitter {
constructor() {
super();
}
isModalOpen() {
... | JavaScript | 0.000001 | @@ -684,24 +684,26 @@
tion =%3E %7B%0A
+//
console.info
|
72ab5eed87265bc24c7bdefccb9104cc1e05e18f | rename dal to locationDal | server/api/locations/location/handlers.js | server/api/locations/location/handlers.js |
var templates = require('./templates');
var dal = require('./dal');
var loggers = require('../../../services/logs/loggers');
var config = require('tresdb-config');
var status = require('http-status-codes');
var sanitizeFilename = require('sanitize-filename');
var slugify = require('slugify');
exports.changeGeom = fun... | JavaScript | 0.999991 | @@ -38,17 +38,25 @@
');%0Avar
-d
+locationD
al = req
@@ -593,25 +593,33 @@
er.name;%0A%0A
-d
+locationD
al.changeGeo
@@ -1562,25 +1562,33 @@
me,%0A %7D;%0A%0A
-d
+locationD
al.changeNam
@@ -2491,33 +2491,41 @@
eady.');%0A %7D%0A%0A
-d
+locationD
al.changeStatus(
@@ -3392,17 +3392,25 @@
%0A %7D%0A%0A ... |
be794c7195925b5334cd70b58f1a6ecb7212a62d | Remove hardcoded value | server/api/resolvers/calendarResolvers.js | server/api/resolvers/calendarResolvers.js | import CalendarModel from '../models/calendar';
import TeacherModel from '../models/teacher';
import GradeModel from '../models/grade';
import UserModel from '../models/user';
import { isAuthenticatedResolver, isAdminResolver } from '../acl';
import { createResolver, and } from 'apollo-resolvers';
import { createError ... | JavaScript | 0.023907 | @@ -729,22 +729,49 @@
= (
-) =%3E %7B%0A%09return
+root, args, context) =%3E %7B%0A%09const result =
Cal
@@ -810,16 +810,68 @@
rue%0A%09%7D);
+%0A%0A%09context.calendarId = result._id;%0A%0A%09return result;
%0A%7D;%0A%0Acon
@@ -2740,32 +2740,44 @@
, args, %7B userId
+, calendarId
%7D) =%3E %7B%0A%09%09%09if (... |
0686c1d048e7e921ec32d0596cbbcf607d129dd1 | Throw error objects in snprintf, so we can get usable stacks if we pass the wrong things in | lib/extern/sprintf.js | lib/extern/sprintf.js | /**
sprintf() for JavaScript 0.6
Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must re... | JavaScript | 0 | @@ -2826,16 +2826,26 @@
%09%09%09throw
+ new Error
('Too fe
@@ -2932,16 +2932,26 @@
%09%09%09throw
+ new Error
('Expect
@@ -3825,16 +3825,26 @@
%09%09%09throw
+ new Error
('Huh ?!
|
0d6d09c094897b2acb24e9f900858f5c36406f90 | fix typo in function name | lib/extractLicense.js | lib/extractLicense.js | module.exports = extractLink
/**
* Extract license type from registry data for a package
* @param {object} json - object fetched from registry with information about 1 package
* @returns {string} with license type
*/
function extractLink(json) {
if (typeof json.license === 'string') {
return json.license
}
i... | JavaScript | 0.99848 | @@ -19,18 +19,21 @@
xtractLi
-nk
+cense
%0A%0A/**%0A *
@@ -240,10 +240,13 @@
ctLi
-nk
+cense
(jso
|
abe3f76961debcf3665c15aa69a9744ab0921fc2 | use str.replace to fix function | easy-challenges/CamelCase.js | easy-challenges/CamelCase.js | const assert = require('assert');
const CamelCase = (str) => {
str.split(/\W/).map((word, i) => {
const formatted = word.toLowerCase();
return i ? `${formatted[0].toUpperCase()}${formatted.slice(1)}` : formatted;
}).join('');
};
console.log(CamelCase('cats AND*Dogs-are Awesome'));
const in1 = 'cats AND*Do... | JavaScript | 0.000003 | @@ -28,21 +28,24 @@
ert');%0A%0A
-const
+function
CamelCa
@@ -50,200 +50,197 @@
Case
- =
(str)
- =%3E
%7B%0A
-str.split(/%5CW/).map((word, i) =%3E %7B%0A const formatted = word.toLowerCase();%0A return i ? %60$%7Bformatted%5B0%5D.toUpperCase()%7D$%7Bformatted.slice(1)%7D%60 : formatted;%0A %7D).join(''... |
46146678a23a73dae510caec9c08b6a85baa67b9 | Remove unnecessary else block | lib/generator/post.js | lib/generator/post.js | 'use strict';
var lodash = require('lodash');
module.exports = function(locals) {
var posts = locals.posts.sort('-date').toArray();
var length = posts.length;
function getAlternatePosts(label) {
var alternates = posts.filter(function(post) {
return post.label === label;
});
var result = [];
... | JavaScript | 0.000001 | @@ -760,34 +760,25 @@
%7D;%0A %7D
- else %7B%0A
+%0A
if (post
@@ -802,26 +802,24 @@
ed) %7B%0A
-
for (j = i -
@@ -860,26 +860,24 @@
ned; j--) %7B%0A
-
if (
@@ -913,26 +913,24 @@
%7B%0A
-
post.prev =
@@ -931,34 +931,32 @@
rev = posts%5Bj%5D;%0A
-
%7D%0A ... |
399d25788a2607c63669b50056545729718296ab | Add oneWordAvailable method | lib/geo.what3words.js | lib/geo.what3words.js | var http = require('http'),
unirest = require('unirest'),
_ = require('lodash');
/**
* What3Words API wrapper for the API version 1.0.
*
* @param apiKey The API key to access the What3Words API with
* @param options Configuration options
* @return Instance of {@link What3Words}
*/
function What... | JavaScript | 0 | @@ -718,24 +718,647 @@
at3Words;%0A%0A%0A
+/**%0A * Checks if oneWord is available%0A * @param %7B%5Bobject%5D%7D options Can contain the following properties:%0A * * lang: alternative language, default will be usef if this is not declared.%0A * * word: a string containing the oneWord%0A * ... |
e0dc68db2e866b09ea021202393c44cea1b371f6 | remove domain. it sucks hard | lib/helpers/upload.js | lib/helpers/upload.js | "use strict";
var Anyfetch = require('anyfetch');
var path = require('path');
var nodeDomain = require("domain");
var async = require('async');
var save = require('./save');
Anyfetch.setApiUrl(require('../../config.js').apiUrl);
var uploadFile = function(filePath, baseIdentifier, creationDate, cb) {
var absolute... | JavaScript | 0.000135 | @@ -476,44 +476,8 @@
%7D%0A%0A
- var domain = nodeDomain.create();%0A
as
@@ -1101,249 +1101,8 @@
%7D;%0A
-%0A var onlyOnce = function(err) %7B%0A if(!onlyOnce.called) %7B%0A onlyOnce.called = true;%0A cb(err);%0A %7D%0A %7D;%0A onlyOnce.called = false;%0A%0A d... |
463125c8190f4a076d957f231f15981cca7f0d74 | Add additional time to backoff | lib/helpers/upload.js | lib/helpers/upload.js | 'use strict';
var url = require('url');
var https = require('follow-redirects').https;
var async = require('async');
var rarity = require('rarity');
var crypto = require('crypto');
var fs = require('fs');
var generateTitle = require('anyfetch-provider').util.generateTitle;
/**
* Upload file onto AnyFetch.
*
*
* @... | JavaScript | 0.000001 | @@ -1706,17 +1706,17 @@
time %3E 1
-0
+3
000) %7B%0A
|
92238a19a9228f8e66d882742960b2b784e73f0e | use buffer, fewer errors but not totaly out of the woods | processing/water/piranha.js | processing/water/piranha.js | var turf = require('turf')
var fs = require('fs')
// wow. such vars.
var tractPolys = JSON.parse(fs.readFileSync(process.argv[2]));
var piranhas = JSON.parse(fs.readFileSync(process.argv[3]));
var piranhaPolys = {"type":"FeatureCollection","features":[]};
var tractsEaten = {"type":"FeatureCollection","features":[]};
... | JavaScript | 0.000001 | @@ -790,17 +790,17 @@
hing by
-5
+2
0m to ca
@@ -820,19 +820,16 @@
ions%0A
- //
piranha
@@ -868,9 +868,9 @@
,0.0
-5
+2
,'ki
|
ee0ffe65835997285bdd5482be7f0b96429f80c8 | return this from setJson | lib/model/modelSet.js | lib/model/modelSet.js | 'use strict';
const parseRelationsIntoModelInstances = require('./modelParseRelations')
.parseRelationsIntoModelInstances;
function setJson(model, json, options) {
json = json || {};
options = options || {};
if (Object.prototype.toString.call(json) !== '[object Object]') {
throw new Error(
'You sho... | JavaScript | 0.999901 | @@ -644,16 +644,33 @@
ns);%0A %7D
+%0A%0A return model;
%0A%7D%0A%0Afunc
|
8d5091abe9b29131933861c26f9ac2a617c36331 | fix bumber input format | public/backend/js/stock-transfer.js | public/backend/js/stock-transfer.js | function calculateTransferDetails(container) {
var rows = container.find('table tbody tr:visible');
var quantity_total = 0;
var total_stock_source = 0;
var total_stock_destination = 0;
var total_stock_source_after = 0;
var total_stock_destination_after = 0;
rows.each(function() {
... | JavaScript | 0.999232 | @@ -444,17 +444,23 @@
ntity =
-p
+customP
arseFloa
@@ -535,17 +535,23 @@
ource =
-p
+customP
arseFloa
@@ -625,17 +625,23 @@
ation =
-p
+customP
arseFloa
@@ -684,32 +684,24 @@
).html());%0D%0A
-
%0D%0A va
@@ -814,24 +814,16 @@
ntity;%0D%0A
-
%0D%0A
@@ -927,32 +927,24 @@
ce_afte... |
836502f58760c4699b217797c5d942ef22fbdb99 | fix typo | public/common/javascripts/object.js | public/common/javascripts/object.js | $(document).ready(function () {
// If deepzoom URL is present initiate SeaDragon
if ($('a[data-type=zoom]').size() > 0) {
// Deepzoom image & viewer
var zoomImg = $('a[data-type=zoom]').attr('href'), viewer;
Seadragon.Config.imagePath = "/assets/common/javascripts/seadragon/img/";
... | JavaScript | 0.999991 | @@ -2525,18 +2525,18 @@
v rel=%22e
-r
u
+r
opeana:c
|
9b10e021903d15c9e03c00226f0f836a03ce33df | Fix error when used with gulp-cucumber | lib/nightwatch-api.js | lib/nightwatch-api.js | 'use strict'
const _ = require('lodash')
const co = require('co')
const pify = require('pify')
const fs = pify(require('fs'), { include: ['readFile'] })
const hookUtils = require('./hook-utils')
const Runner = require.main.require('nightwatch/lib/runner/run')
const ClientManager = require.main.require('nightwatch/lib/... | JavaScript | 0 | @@ -2548,16 +2548,37 @@
._source
+ && this.argv._source
.length)
|
44ee80ec8f3aa3964b6f778c2e14cfa16ba8d5db | fix empty term in search | public/js/p3/widget/GlobalSearch.js | public/js/p3/widget/GlobalSearch.js | define([
"dojo/_base/declare", "dijit/_WidgetBase", "dojo/on", "dojo/dom-construct",
"dojo/dom-class", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin",
"dojo/text!./templates/GlobalSearch.html", "./Button", "dijit/registry", "dojo/_base/lang",
"dojo/dom", "dojo/topic", "dijit/form/TextBox", "dojo/keys", "d... | JavaScript | 0.999221 | @@ -2350,16 +2350,17 @@
ar final
+t
=%5B%5D%0A%0A%09%09%09
@@ -2466,24 +2466,25 @@
%0A%09%09%09%09%09%09final
+t
.push(%22keywo
@@ -2546,16 +2546,17 @@
%09%09%09final
+t
.push(%22e
@@ -2669,16 +2669,17 @@
f (final
+t
.length%3E
@@ -2708,16 +2708,17 @@
+ final
+t
.join(%22,
@@ -2755,16 +2755,17 @@
rn final
+... |
9a5d6afaeffa6d99618b21ecd4dcd2f648889819 | Update navigation icons in package section | src/Umbraco.Web.UI.Client/src/views/packages/overview.controller.js | src/Umbraco.Web.UI.Client/src/views/packages/overview.controller.js | (function () {
"use strict";
function PackagesOverviewController($scope, $location, $routeParams, localizationService, localStorageService) {
//Hack!
// if there is a local storage value for packageInstallData then we need to redirect there,
// the issue is that we still have webforms ... | JavaScript | 0 | @@ -3085,34 +3085,43 @@
%22icon%22: %22icon-
+cloud-uplo
a
-d
d%22,%0A
@@ -3582,11 +3582,13 @@
con-
-add
+files
%22,%0A
|
46f056149d8aa70e8c82913078477f422ebdab37 | move dim() here | lib/physics/bounds.js | lib/physics/bounds.js | (function () {"use strict";})();
/**
* Created by apizzimenti on 6/29/16.
*/
/**
* @author Anthony Pizzimenti
*
* @desc Determines whether the immediate top, left, bottom, and right tiles are blocked.
*
* @param context {object} The context in which a sprite object exists.
*
* @returns {object} Each property... | JavaScript | 0 | @@ -1538,12 +1538,539 @@
X && inY;%0A%7D%0A
+%0A%0A/**%0A * @author Anthony Pizzimenti%0A *%0A * @desc Easy calculation of world boundaries.%0A *%0A * @param tileSize %7Bnumber%7D Size of an individual tile.%0A * @param mapSize %7Bnumber%7D Desired size of the map. The map will be an array of mapSize * mapSize.%0A * @... |
a7eb652436a32133b6ffa3fc2280c336af47faed | Update SPAControllers.js | App/Controllers/SPAControllers.js | App/Controllers/SPAControllers.js | // TODO: code AngularJS Module + Route Config + HTTP GET Resource + Global Service + 4 Controllers here
| JavaScript | 0 | @@ -1,107 +1,2307 @@
-// TODO: code AngularJS Module + Route Config + HTTP GET Resource + Global Service + 4 Controllers here
+var oOrchidsApp = angular.module('OrchidsApp', %5B'ngRoute'%5D);%0A%0AoOrchidsApp.config(%5B'$routeProvider', function ($routeProvider) %7B%0A%0A $routeProvider%0A%0A .when('/',%0A ... |
2e68fbe9d2054bb913bb01b57be3f759c7657cf4 | update electron version | pack.js | pack.js | /* eslint strict: 0, no-shadow: 0, no-unused-vars: 0, no-console: 0 */
'use strict';
const os = require('os');
const webpack = require('webpack');
const cfg = require('./webpack-config/production.js');
const packager = require('electron-packager');
const del = require('del');
const exec = require('child_process').exec... | JavaScript | 0.000001 | @@ -1092,17 +1092,17 @@
= '0.36.
-2
+7
';%0A %7D
|
09ac62617fe77b00d1968d7d7b948e8bdf842606 | fix for font-weight, which always needs a string | lib/properties/all.js | lib/properties/all.js | var toCamelCase = require('to-camel-case');
var type = function (object) {
return {}.toString.call(object).match(/\[object (.*?)\]/)[1].toLowerCase();
};
module.exports = function (keys) {
keys.forEach(function (key, index, arr) {
var value = key.value;
if (type(key.value) == 'string') {
if (value == "true" ... | JavaScript | 0.000003 | @@ -150,16 +150,82 @@
();%0A%7D;%0A%0A
+var propertiesThatMustBeStrings = %5B%22font-weight%22, %22fontWeight%22%5D;%0A%0A
module.e
@@ -516,32 +516,94 @@
isNumeric(value)
+ && propertiesThatMustBeStrings.indexOf(arr%5Bindex%5D.key) === -1
) %7B%0A%09%09%09%09%09arr%5Bind
|
7b33be666ac44c918ca744500052954a648b087a | Include extra OPAT referral fields Move add episode to elCID Fix inconsistent form controls for adding a patient refs #277 refs #181 refs #283 | opal/static/js/opal/controllers/add_episode.js | opal/static/js/opal/controllers/add_episode.js | angular.module('opal.controllers')
.controller('AddEpisodeCtrl', function($scope, $http, $cookieStore,
$timeout,
$modalInstance, Episode, schema,
options,
... | JavaScript | 0 | @@ -1595,38 +1595,24 @@
moment(value
-, 'DD/MM/YYYY'
).format('YY
@@ -1868,16 +1868,188 @@
b;%0A%09%09%7D%0A%0A
+ // TODO: Un-hard code this as part of elcid#192%0A if($scope.editing.tagging%5B0%5D.opat)%7B%0A $scope.editing.tagging%5B0%5D.opat_referrals = true;%0A %7D%0A%0A
%09%09$h... |
e39c23a7f360b0ff5b86ff1543ac811d0aa8cc56 | handle marked and pretranslated strings | src/js/pages/network/virtual-network-detail/VirtualNetworkDetail.js | src/js/pages/network/virtual-network-detail/VirtualNetworkDetail.js | import { Trans } from "@lingui/macro";
import mixin from "reactjs-mixin";
import { Link, routerShape } from "react-router";
/* eslint-disable no-unused-vars */
import React from "react";
/* eslint-enable no-unused-vars */
import { StoreMixin } from "mesosphere-shared-reactjs";
import Breadcrumb from "../../../componen... | JavaScript | 0 | @@ -7,16 +7,19 @@
%7B Trans
+, t
%7D from
@@ -35,16 +35,58 @@
macro%22;%0A
+import %7B withI18n %7D from %22@lingui/react%22;%0A
import m
@@ -946,32 +946,47 @@
ontent%3E%0A
+%3CTrans render=%7B
%3CLink to=%22/netwo
@@ -1004,72 +1004,28 @@
rks%22
-%3E%0A %3CTrans render=%22span%22%3ENetworks%3... |
5329cdec2fce57f9ca7473277cc7de5dfd46128c | remove done todo items | lib/recipe/factory.js | lib/recipe/factory.js | 'use strict';
var PluginError = require('gulp-util').PluginError;
/**
* A ConfigurableRecipeFactory lookups or creates recipe function of the signature: `function (done)`.
*
* @param stuff
* @constructor
*/
function ConfigurableRecipeFactory(stuff, registry) {
this.stuff = stuff;
this.registry = registry;
}
C... | JavaScript | 0.000001 | @@ -1341,75 +1341,8 @@
%7D;%0A%0A
-// TODO: should report %22Starting%22, %22Finished%22 profile information.%0A
Conf
@@ -1451,130 +1451,8 @@
t;%0A%0A
-%09// TODO: make sure when defined taskInfo.name, reference becomes that name task's child task.%0A%09// if (taskInfo.name) %7B%7D%0A%0A
%09reg
|
e5ce1768c3505cc0b934f9648a82c3d5aea9e514 | change default preview to 30 rows | askomics/static/js/AskomicsJobsViewManager.js | askomics/static/js/AskomicsJobsViewManager.js | /*jshint esversion: 6 */
let instanceAskomicsJobsViewManager ;
/* constructeur de AskomicsGraphBuilder */
class AskomicsJobsViewManager {
constructor() {
/* Implement a Singleton */
if ( instanceAskomicsJobsViewManager !== undefined ) {
return instanceAskomicsJobsViewManager;
}
... | JavaScript | 0 | @@ -380,10 +380,9 @@
iew=
-50
+3
0 ;
|
c9d1504adf2c17157f0b68eed33db004b9f1fccb | update initial data | lib/reducers/emoji.js | lib/reducers/emoji.js | import { ADD_HISTORY } from '../constants/ActionTypes';
const initialState = [
{
name: '+1',
pattern: ':+1:',
image: 'assets/images/emojis/plus1.png',
category: 'people',
alternatives: []
}
];
const historyLimit = 20;
export default function (state = initialState, action = {}) {
switch (acti... | JavaScript | 0.000065 | @@ -88,18 +88,24 @@
name: '
-+1
+thumbsup
',%0A p
@@ -118,10 +118,16 @@
: ':
-+1
+thumbsup
:',%0A
@@ -163,13 +163,16 @@
jis/
-plus1
+thumbsup
.png
|
9fe0b895acba4be14e510cf074e45752cc54eba6 | Revert "fix header" | webapp/components/BuildList.js | webapp/components/BuildList.js | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {Flex, Box} from 'grid-styled';
import BuildListItem from '../components/BuildListItem';
import Panel from '../components/Panel';
import ResultGridHeader from '../components/ResultGridHeader';
export default class BuildList extends Com... | JavaScript | 0 | @@ -788,32 +788,77 @@
%3C/Box%3E%0A
+ %3CBox width=%7B2 / 12%7D%3EAuthor%3C/Box%3E%0A
%3CBox
|
cee2165998200d8c9d0f7265b92aa9f9060923d4 | Use Heroku for Audio assets | public/js/awpy.js | public/js/awpy.js | var AWPY = {
config: {
codec: (function() {
var audio = new Audio(), result;
var extensions = ['mp3', 'ogg', 'aac', 'wav'];
[
'audio/mpeg; codecs="mp3"',
'audio/ogg; codecs="vorbis"',
'audio/mpeg; codecs="mp3"',
'audio/wav; codecs="1"'
].forEach(function(co... | JavaScript | 0 | @@ -2804,26 +2804,44 @@
p://
-soundcloud.com/yvg
+areweplayingyet.herokuapp.com/sounds
/' +
@@ -2849,17 +2849,17 @@
type + '
--
+.
' + AWPY
@@ -2877,22 +2877,8 @@
ec +
- '/download' +
(ca
|
e604be2b98f93037884d3b8905971a834e68ea5e | Fix Intercom email can't be blank error (#11) | lib/resources/user.js | lib/resources/user.js | var BaseResource = require('./base');
// var debug = require('debug')('mongodb-js-metrics:resources:app');
module.exports = BaseResource.extend({
id: 'User',
props: {
userId: {
type: 'string',
required: true
},
name: 'string',
email: 'string',
twitter: 'string'
},
login: functi... | JavaScript | 0.00001 | @@ -261,24 +261,83 @@
email:
-'string'
+%7Btype: 'any', default: undefined, required: false, allowNull: true%7D
,%0A tw
|
8d5f2b9279828523c0678e318b2a17e8131689b1 | Make ResponseParser easier readable | lib/responseParser.js | lib/responseParser.js | 'use strict';
const debug = require('debug')('ResponseParser');
const RemoUserHelper = require('../lib/remoUserHelper');
const remoUserHelper = new RemoUserHelper();
module.exports = class ResponseParser {
/**
* Creates an object from the response to make sure we assign to real properties
* @param {Array} re... | JavaScript | 0.000005 | @@ -688,46 +688,404 @@
%7D)
+.reduce(groupByEvent, %7B%7D);%0A
%0A
-.
re
-duce((acc, response) =%3E %7B%0A
+turn convertObjectToArray(groupedByEvents);%0A %7D%0A%0A static getGeneralEventInfo(response) %7B%0A return %7B%0A key: response%5B1%5D + '_' + response%5B2%5D,%0A eventName: response%... |
85249b6de7d1b6d17f3534249fb0eee114cd6595 | Handle Errors | assets/js/script.js | assets/js/script.js | $(document).ready(() => {
$('#send').on('click', (e) => {
let method = document.getElementById('method').value;
let query = $('#url').val();
if(query == '' || query == ' '){
console.log('empty');
document.getElementById('code').innerHTML = '';
} else{
... | JavaScript | 0 | @@ -733,16 +733,472 @@
%22%5Ct%22);%0A
+ let headers = JSON.stringify(response.headers, undefined, 2);%0A document.getElementById('code').innerText = data;%0A document.getElementById('headers').innerText = headers;%0A document.getElementById('status').innerText = response.status;%0A%7D%0Afunction outputEr... |
dd59cb403943e554b0a4459acfaf2af77d25b64c | refactor the function that matches page with color | assets/js/script.js | assets/js/script.js | function clearFilters(){
$(".closing-icon").remove();
$(".active_tag").removeClass('active_tag');
$('.card').show();
}
function toggleTags(button, tag){
if(button.attr('class').indexOf('active_tag') > -1){
button.removeClass("active_tag");
button.html(tag);
} else {
button.html(tag + '<i class="m... | JavaScript | 0.99975 | @@ -1506,23 +1506,25 @@
,%0A
-address
+urlString
= windo
@@ -1542,65 +1542,153 @@
href
-.split('/'),%0A pagename = address%5Baddress.length - 1%5D
+,%0A color = %22%22;%0A%0A $.each(colors, function(key,val)%7B%0A if(urlString.indexOf(key) %3E -1)%7B%0A color = val;%0A pagename = key;%... |
afd753b2174ff7ebd2dee08a648c534b0b1a2262 | Add specific event handlers to player | static/js/app.js | static/js/app.js | var player = radiodan.player.create(1);
var playlists = document.querySelector('.playlists');
var vol = document.querySelector('.volume');
vol.addEventListener('change', function (evt) {
console.log('Volume', vol.value);
player.volume({ value: vol.value });
});
player.on('message', function (content) {
if (con... | JavaScript | 0.000001 | @@ -277,14 +277,13 @@
on('
-messag
+volum
e',
@@ -290,17 +290,16 @@
function
-
(content
@@ -306,34 +306,8 @@
) %7B%0A
- if (content.volume) %7B%0A
co
@@ -356,18 +356,16 @@
olume);%0A
-
vol.va
@@ -390,65 +390,94 @@
me;%0A
- %7D%0A console.log(content);%0A if (content.forEach) %7B%0A
+%7D);%0A%0Ap... |
517f5f2c98d7d0fc572f6012d9dd3b22abe4aeff | enable bgm | public/js/init.js | public/js/init.js | window.onload = enchantInit;
const normalFont = 'Kazesawa, Arial, Helvetica, sans-serif';
const bgImg = '/img/title.png';
const gameImg = '/img/game.png';
const charImg = '/img/chara.png';
const resultImg = '/img/result.png';
const blackImg = '/img/blackbox.png';
const startImg = '/img/start.png';
const readyImg = '/... | JavaScript | 0.000001 | @@ -2739,19 +2739,16 @@
/img%0A%09%09%09
-//
gameBgm,
|
d1f8882abe4d7286ae4b81dbbe8001769d228f50 | Include reflections | week-7/manipulating_objects.js | week-7/manipulating_objects.js | // Manipulating JavaScript Objects
// I worked on this challenge by myself.
// There is a section below where you will write your code.
// DO NOT ALTER THIS OBJECT BY ADDING ANYTHING WITHIN THE CURLY BRACES!
var terah = {
name: "Terah",
age: 32,
height: 66,
weight: 130,
hairColor: "brown",
eyeColor: "brown"
}
... | JavaScript | 0 | @@ -1930,158 +1930,544 @@
rk?%0A
-%0A How difficult was it to add and delete properties outside of the object itself?%0A%0A What did you learn about manipulating objects in this challenge?
+ I didn't have any tests failed. I have followed each requirement and manipulate the object accordingly.%0A%0A How difficul... |
8cc1aa8fd4ae21f1a6cdc6d5c1985f4be15641ba | Fix array-to-string coercion bug | lib/rules/no-typos.js | lib/rules/no-typos.js | /**
* @fileoverview Prevent common casing typos
*/
'use strict';
const Components = require('../util/Components');
const docsUrl = require('../util/docsUrl');
// ------------------------------------------------------------------------------
// Rule Definition
// -----------------------------------------------------... | JavaScript | 0.000455 | @@ -1595,214 +1595,8 @@
) %7B%0A
- // Note: we really do want == with the package names here,%0A // since we need value equality, not identity - and%0A // these values are always string or null.%0A /* eslint-disable eqeqeq */%0A
@@ -1664,16 +1664,17 @@
.name ==
+=
propTyp
@@ -1817,16 +1817... |
50aff0201ecdf0b00df767878e3e030cecc9fdde | Change autofocus behaivor | static/js/app.js | static/js/app.js | var app = angular.module('linksave', ['ngResource', 'ngCookies']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/login', {
templateUrl: '/static/views/links/login.html',
controller: 'LoginController'})
.when('/logout', {
template... | JavaScript | 0.000001 | @@ -8312,16 +8312,24 @@
() %7B%0A
+ var e =
documen
@@ -8353,27 +8353,50 @@
%22linkField%22)
-.focus
+;%0A e.focus();%0A e.select
();%0A%7D);%0A%0A
|
8a9c6334cb468f6e2356575233cabe247c31ab08 | Load background even faster first time | static/script.js | static/script.js | var default_opacity = 0.2;
var animate_time = 0;
var default_animate_time = 1000;
var num_images = 152;
function fix_resolutions() {
var img = $('#imgloader').get(0);
var img_ratio = img.naturalWidth / img.naturalHeight;
var wnd_ratio = window.innerWidth / window.innerHeight;
$("#back").css("background-size", ... | JavaScript | 0 | @@ -534,76 +534,8 @@
) %7B%0A
- if(animate_time == 0) %7B animate_time = default_animate_time; %7D%0A%0A
@@ -668,16 +668,84 @@
e_time);
+%0A%0A if(animate_time == 0) %7B animate_time = default_animate_time; %7D
%0A %7D);%0A%7D
|
7597b4d3e6fc41a99035ab620ccfa7798e528ce4 | fix when there is no authentication running | public/js/main.js | public/js/main.js | define(["app", "marionette", "backbone", "jquery"],
function (app, Marionette, Backbone, $) {
app.on("menu-actions-render", function (context) {
if (app.settings.tenant.isAdmin) {
if (app.settings.data.freeze && app.settings.data.freeze.value) {
context.resul... | JavaScript | 0.000004 | @@ -159,32 +159,56 @@
if (
+!app.settings.tenant %7C%7C
app.settings.ten
|
861f6a28a73839f16f9374f1823a1dd1171052b6 | Fix dialing input in the browser | public/js/main.js | public/js/main.js |
function setupDialDialog() {
var connection;
var inCall = false;
var $dialog = $('#dialog-dial');
var $input = $dialog.find('.dial-input');
var $status = $dialog.find('.dial-status');
var $doHangup = $dialog.find('.do-hangup');
var $doCall = $dialog.find('.do-call');
var toggleCallStat... | JavaScript | 0.000006 | @@ -632,20 +632,9 @@
%7D
- else %7B%0A
+%0A
@@ -653,13 +653,9 @@
al($
-dialI
+i
nput
@@ -665,34 +665,24 @@
l()+value);%0A
- %7D%0A
%7D);%0A%0A
|
15d828362aac4fe2da6d4229d31651d6ea00af14 | Use pid.codes VID/PID | lib/usb_connection.js | lib/usb_connection.js | var util = require('util'),
Duplex = require('stream').Duplex,
Promise = require('bluebird');
var haveusb = true;
try {
var usb = require('usb');
} catch (e) {
haveusb = false;
console.error('WARNING: No usb controller found on this system.');
}
var Daemon = require('./usb/usb_daemon');
var TESSEL_VID = 0x... | JavaScript | 0.000018 | @@ -313,19 +313,19 @@
VID = 0x
-999
+120
9;%0Avar T
@@ -342,12 +342,12 @@
= 0x
-ffff
+7551
;%0A%0Af
|
7871cab71081501845bc3d1248755af3e087e48b | load env vars from /etc/sematext/receivers.config for onprem/multi-region | lib/util/spmconfig.js | lib/util/spmconfig.js | /*
* @copyright Copyright (c) Sematext Group, Inc. - All Rights Reserved
*
* @licence SPM for NodeJS is free-to-use, proprietary software.
* THIS IS PROPRIETARY SOURCE CODE OF Sematext Group, Inc. (Sematext)
* This source code may not be copied, reverse engineered, or altered for any purpose.
* This source code i... | JavaScript | 0 | @@ -657,16 +657,1090 @@
aml-2')%0A
+var fs = require('fs')%0A%0A// load SPM receivers from file containing%0A// env vars e.g. SPM_RECEIVER_URL, EVENTS_RECEIVER_URL, LOGSENE_RECEIVER_URL%0A// the file overwrites the actual environment%0A// and is used by Sematext Enterprise or multi-region setups to%0A// setup receiver... |
cce3e66c78661386f93ef40cc84143828e4fc89f | Remove logging | lib/views/EditView.js | lib/views/EditView.js | /** @babel */
/** @jsx etch.dom */
import { CompositeDisposable } from 'atom';
import etch from 'etch';
import changeCase from 'change-case';
import path from 'path';
import { EDIT_URI } from './view-uri';
import manager from '../Manager';
import Project from '../models/Project';
const disposables = new CompositeDisp... | JavaScript | 0.000001 | @@ -3074,44 +3074,8 @@
%7D%0A
- console.log(this.props.project);
%0A
@@ -3145,58 +3145,8 @@
) %7B%0A
- console.log(this.props.project.getProps());%0A
|
eb054d5270564ccd7be38a525bd94360daf89959 | Add notification for when editing or saving a project | lib/views/EditView.js | lib/views/EditView.js | /** @babel */
/** @jsx etch.dom */
import etch from 'etch';
import { EDIT_URI } from './view-uri';
import manager from '../Manager';
import Project from '../models/Project';
etch.setScheduler(atom.views);
export default class EditView {
constructor(props, children) {
this.props = props;
this.children = chi... | JavaScript | 0 | @@ -868,16 +868,219 @@
Props);%0A
+ let message = %60$%7BprojectProps.title%7D has been saved.%60;%0A if (this.props.project) %7B%0A message = %60$%7Bthis.props.project.title%7D has been update.%60;%0A %7D%0A atom.notifications.addSuccess(message);%0A
%7D%0A%0A u
@@ -1584,16 +1584,20 @@
.assign(
... |
af28b0fa77ceb011aa6b1e7810a553c6d62012af | Update chatbot.js | stuff/chatbot.js | stuff/chatbot.js | exports.bot = function(b){
var bot = ''
if(typeof b != "undefined") bot = b
else bot = {};
var botStuff = {
name: '~RainBot'
jokes: {
0: 'The original title for Alien vs. Predator was Alien and Predator vs Chuck Norris. The film was cancelled shortly after going into preproduction. No one would pay nine dollars to s... | JavaScript | 0.000004 | @@ -1452,16 +1452,17 @@
? Boy: I
+%5C
'm you f
@@ -2247,17 +2247,16 @@
rom sex.
-%0A
Hillary
@@ -2348,27 +2348,182 @@
()%7B%0A
-//to work on later%0A
+return bot.jokes%5BMath.floor%5BMath.random()*20%5D%5D;%0A%7D,%0Asay: function(name,message)%7B%0A return room.add('%7Cc%7C ' + name + '%7C' + message);%0A%7D,%0A... |
f6c8e7ea851b0a6aab1580b96222d5caa848be0a | Fix elements highlight | src/Elements/Highlight.js | src/Elements/Highlight.js | import { evalCss, $, pxToNum, isStr, each, trim } from '../lib/util'
export default class Highlight {
constructor($container) {
this._style = evalCss(require('./Highlight.scss'))
this._isShow = false
this._appendTpl($container)
this._bindEvent()
}
setEl(el) {
this._$target = $(el)
this.... | JavaScript | 0.000002 | @@ -2166,16 +2166,30 @@
_$el = $
+container.find
('.eruda
|
ecb0b31263ad75935a82dda29064acc94ea4dbd6 | Use TraitStatisticBox rather than StatisticBox. Show uptime rather than number of procs on statistic box. | src/Parser/Hunter/BeastMastery/Modules/Spells/AzeriteTraits/DanceOfDeath.js | src/Parser/Hunter/BeastMastery/Modules/Spells/AzeriteTraits/DanceOfDeath.js | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'Parser/Core/Analyzer';
import {formatNumber, formatPercentage} from 'common/format';
import {calculateAzeriteEffects} from 'common/stats';
import StatisticBox from 'Interface/Others/StatisticBox';
import SPELLS from 'common/SPELL... | JavaScript | 0 | @@ -24,50 +24,8 @@
t';%0A
-import SpellIcon from 'common/SpellIcon';%0A
impo
@@ -188,16 +188,21 @@
%0Aimport
+Trait
Statisti
@@ -205,16 +205,37 @@
isticBox
+, %7B STATISTIC_ORDER %7D
from 'I
@@ -250,16 +250,21 @@
/Others/
+Trait
Statisti
@@ -318,23 +318,13 @@
;%0A%0A%0A
-export function
+const
dan
@@ -341,... |
0e25f88dc0f88fff222fdc0adb600e151c612e6b | Format js in shortcode templates script | src/OrchardCore.Modules/OrchardCore.Shortcodes/Assets/js/shortcode-templates.js | src/OrchardCore.Modules/OrchardCore.Shortcodes/Assets/js/shortcode-templates.js |
function initializeShortcodesTemplateEditor(categoriesElement, contentElement, usageElement, previewElement, nameElement, hintElement ) {
if (contentElement) {
CodeMirror.fromTextArea(contentElement, {
autoCloseTags: true,
autoRefresh: true,
lineNumbers: true,
... | JavaScript | 0 | @@ -1,10 +1,8 @@
-%0A%0A
function
@@ -126,17 +126,16 @@
tElement
-
) %7B%0A
@@ -863,20 +863,14 @@
tion
+
(e)
-%7B
+%7B
%0A
@@ -1006,29 +1006,16 @@
%7D);
-
%0A
@@ -1071,16 +1071,18 @@
%7B%0A
+
$(nameEl
@@ -1119,28 +1119,25 @@
ion () %7B
-
+%0A
... |
269bc273bf6392aa585478ee19d188605bcf1383 | update spectra-processor to 0.18.0 | eln/libs/SpectraProcessor.js | eln/libs/SpectraProcessor.js | export {
SpectraProcessor
} from 'https://www.lactame.com/lib/spectra-processor/0.17.0/spectra-processor.js';
// from 'http://localhost:9898/cheminfo-js/spectra-processor/dist/spectra-processor.js';
| JavaScript | 0.000006 | @@ -82,9 +82,9 @@
/0.1
-7
+8
.0/s
|
faf71b5b7ded7705629d69f20dc32333c6d63e8d | upgrade spectra-processor to 0.6.1 | eln/libs/SpectraProcessor.js | eln/libs/SpectraProcessor.js | export {
SpectraProcessor
} from 'https://www.lactame.com/lib/spectra-processor/0.6.0/spectra-processor.js';
// } from 'http://localhost:9898/cheminfo-js/spectra-processor/dist/spectra-processor.js';
| JavaScript | 0.000001 | @@ -79,17 +79,17 @@
sor/0.6.
-0
+1
/spectra
|
0e11cab79291051a8dfd6cf3d9378eb9a5fb708d | Fix unchained promise | 03-oidc-views-accounts/index.js | 03-oidc-views-accounts/index.js | 'use strict';
// see previous example for the things that are not commented
const assert = require('assert');
const path = require('path');
const express = require('express');
const bodyParser = require('body-parser');
const Provider = require('oidc-provider');
// since dyno metadata is no longer available, we infer ... | JavaScript | 0.000081 | @@ -4137,24 +4137,31 @@
=%3E %7B%0A
+return
oidc.interac
|
30e548e1a7dfa4bacbebb5dbf6f4a4b154fd59ff | fix scope.showSpinner method does not exists in question ctrl | www/js/controllers/question.js | www/js/controllers/question.js | angular.module('app.controllers').controller('question',function ($scope, $location, questions, $stateParams, layout,
iStorageMemory, activity) {
var optionsSubview = 'templates/question/options.html';
var resultsSubview = 'templates/question/re... | JavaScript | 0 | @@ -1751,16 +1751,28 @@
rlParams
+, $rootScope
) %7B%0D%0A%0D%0A
@@ -1806,25 +1806,29 @@
) %7B%0D%0A%0D%0A $
-s
+rootS
cope.showSpi
@@ -2237,33 +2237,37 @@
on () %7B%0D%0A $
-s
+rootS
cope.hideSpinner
|
1fd27dae5e498efb5a12e5eb6350540b25c48696 | Fix crash on RC while toggling object status. | Libraries/Components/SwitchAndroid/SwitchAndroid.android.js | Libraries/Components/SwitchAndroid/SwitchAndroid.android.js | /**
* 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 directory.
*
* @provides... | JavaScript | 0 | @@ -1248,147 +1248,8 @@
) %7B%0A
- this.props.onChange && this.props.onChange(event);%0A this.props.onValueChange && this.props.onValueChange(event.nativeEvent.value);%0A%0A
@@ -1430,16 +1430,255 @@
value%7D);
+%0A%0A if (this.props.value === event.nativeEvent.value %7C%7C this.props.disabled) %7B%0A ... |
5097a7af2b23a89aaf0c8c066c7cd3888badbaba | Fix for https://github.com/aldeed/meteor-autoform-select2/issues/3 Update form not displaying values for 'multiple=true' field | autoform-select2.js | autoform-select2.js | AutoForm.addInputType("select2", {
template: "afSelect2",
valueOut: function () {
return this.select2("val");
},
valueConverters: {
"number": AutoForm.Utility.stringToNumber,
"numberArray": function (val) {
if (isArray(val)) {
return _.map(val, function (item) {
item = $.trim... | JavaScript | 0.000001 | @@ -2305,16 +2305,120 @@
ected: (
+_.isArray(context.value) ?%0A _.contains(context.value, opt.value) :%0A
opt.valu
|
02c0949ee393140e61c667952c173c5b71c3e4f8 | Remove decorators plugin | config/babel-preset.js | config/babel-preset.js | module.exports = {
presets: [
[
'env',
{
modules: false,
useBuiltIns: true,
},
],
'react',
],
plugins: [
'transform-decorators-legacy',
'transform-class-properties',
['transform-object-rest-spread', { useBuiltIns: true }],
'syntax-dynamic-import',
],... | JavaScript | 0 | @@ -154,43 +154,8 @@
: %5B%0A
- 'transform-decorators-legacy',%0A
|
7cb26bfabd5e67ec161fa06eba37ee22b90e0763 | remove incomplete reply delete | lib/site/topic-layout/topic-article/comments/list/replies/list/component.js | lib/site/topic-layout/topic-article/comments/list/replies/list/component.js | import React, {Component} from 'react'
import t from 't-component'
import Timeago from 'lib/site/timeago'
export default function RepliesList (props) {
const replies = props.replies || []
return (
<div
className={`replies-list ${replies.length === 0 ? 'no-replies' : ''}`}>
{
replies.map((i... | JavaScript | 0.000001 | @@ -9,60 +9,19 @@
eact
-, %7BComponent%7D from 'react'%0Aimport t from 't-componen
+ from 'reac
t'%0Ai
@@ -494,1000 +494,8 @@
%0A%7D%0A%0A
-%0Aclass OptionsTooltip extends Component %7B%0A constructor (props) %7B%0A super(props)%0A%0A this.state = OptionsTooltip.getInitialState()%0A %7D%0A%0A static getInit... |
168bb213da64201dca96d8aefcd0b836c0c43bc8 | fix ctrl-home and end keys being reversed. | plugins/movement.js | plugins/movement.js |
module.exports = function (doc, keys, cursor) {
var rc = this.config
keys.on('keypress', function (ch, key) {
if(!key.ctrl) {
if(key.name == 'up' )
(doc.isFirstLine() ? doc.start() : doc.up()).move()
if(key.name == 'down' )
(doc.isLastLine() ? doc.end() : doc.down... | JavaScript | 0 | @@ -1243,27 +1243,28 @@
ey.name == '
-end
+home
') doc.first
@@ -1303,28 +1303,27 @@
ey.name == '
-home
+end
') doc.lastL
|
84781e527ba9fffd28126b0fe77ed38123244aa9 | Add debug to prod settings | config/prodSettings.js | config/prodSettings.js | module.exports = {
port: 3000,
canvas: {
apiUrl: 'https://kth.instructure.com/api/v1'
},
logging: {
log: {
level: 'info',
src: false
},
stdout: {
enabled: true
},
console: {
enabled: false
}
},
ldap: {
client: {
url: 'ldaps://l... | JavaScript | 0.000001 | @@ -141,12 +141,13 @@
l: '
-info
+debug
',%0D%0A
|
96ef6e25b022245276627b0705b1e1cc7f84f8df | refactor utils/Request | unit/Request.js | unit/Request.js | 'use strict';
var Ask = /** @type Ask */ require('../util/Ask');
var Unit = /** @type Unit */ require('./Unit');
var asker = require('asker');
/**
* @class Request
* @extends Unit
* */
var Request = Unit.extend(/** @lends Request.prototype */ {
/**
* @protected
* @memberOf {Request}
* @method
... | JavaScript | 0.000001 | @@ -1017,32 +1017,91 @@
ask.opts = res;%0A
+ track.agent.emitEvent('sys:req:options', ask);%0A
done
@@ -1105,32 +1105,32 @@
one(null, res);%0A
-
%7D, funct
@@ -1388,23 +1388,21 @@
sys:req:
-request
+setup
', ask);
@@ -1596,43 +1596,8 @@
);%0A%0A
- // %D1%82%D0%B0%D0%BC %D0%... |
d8cfaa291f6823597019540acc44d724eed3de59 | fix path normalisation | tasks/lib/command-builder.js | tasks/lib/command-builder.js | var p = require('path'),
buildPath = function(options){
var sep = p.sep,
share = options.share,
platform = process.platform,
credentials = (platform === 'darwin' ? options.username + ":" + options.password + "@" : ""),
bits;
// allow the user to specify any kind of path: /path... | JavaScript | 0.000003 | @@ -380,9 +380,10 @@
) %3E
-0
+-1
)%7B%0A
@@ -569,16 +569,26 @@
bits
+.join(sep)
%0A %5D.j
|
38d0ab2fc1ae9901eab82c9a2374062211f8811b | Fix the hasAccount check to work properly on both android and iOS | www/js/control/emailService.js | www/js/control/emailService.js | 'use strict';
angular.module('emission.services.email', ['emission.plugin.logger'])
.service('EmailHelper', function ($window, $translate, $http, Logger) {
const getEmailConfig = function () {
return new Promise(function (resolve, reject) {
window.Logger.log(window.Logger.LEVE... | JavaScript | 0.000001 | @@ -1779,36 +1779,1078 @@
known%22;%0A
- if (
+%0A // Check this only for ios, since for android, the check always fails unless%0A // the user grants the %22GET_ACCOUNTS%22 dynamic permission%0A // without the permission, we only see the e-mission account whi... |
fec362ab826a8669d921607b77a33594730b0945 | Remove "performance hack" for the user matching | www/js/survey/input-matcher.js | www/js/survey/input-matcher.js | 'use strict';
angular.module('emission.survey.inputmatcher', ['emission.plugin.logger'])
.factory('InputMatcher', function($translate){
var im = {};
var fmtTs = function(ts_in_secs, tz) {
return moment(ts_in_secs * 1000).tz(tz).format();
}
var printUserInput = function(ui) {
return fmtTs(ui.data.start... | JavaScript | 0.999981 | @@ -607,185 +607,8 @@
) %7B%0A
- // If there is only one item in the list, return it.%0A // This make it compatible when fake list is given (for Enketo Survey).%0A // As well as optimize the performance.%0A
@@ -754,83 +754,8 @@
%7D%0A%0A
- if (userInputList.length === 1) %7B%0A return userInpu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.