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 |
|---|---|---|---|---|---|---|---|
f106a6cff11f7e4b1a42a6ea20eb59343a80e18a | delete error: 'route: command not found' | profile/mac.js | profile/mac.js | module.exports = function(Formatter) {
function MacUpFormatter() {
}
$inherit(MacUpFormatter, Formatter, {
format: function(rules) {
var up = [];
up.push('#!/bin/sh');
up.push('export PATH="/bin:/sbin:/usr/sbin:/usr/bin"');
up.push('OLDGW=`netstat -nr | grep "^default" | grep -v "ppp" | awk -F\' \' \... | JavaScript | 0.000004 | @@ -978,32 +978,92 @@
h('#!/bin/sh');%0A
+ up.push('export PATH=%22/bin:/sbin:/usr/sbin:/usr/bin%22');%0A
up.push('%5B -
@@ -1541,24 +1541,65 @@
%7D%0A %7D);%0A
+ up.push('route add default $OLDGW');%0A
up.push(
|
020c52f60a0fc7c9f8909d4633ff781f65091d76 | Send conditional POST req to netlify build hook | lambda/snipcart-webhook-listener.js | lambda/snipcart-webhook-listener.js | exports.handler = async (event, context) => {
console.log('Snipcart webhook received!');
console.log('event', event);
console.log('context', context);
return {
statusCode: 200,
body: 'Thanks for the webhook snipcart!'
};
};
| JavaScript | 0 | @@ -1,8 +1,331 @@
+const https = require('https');%0A%0Aconsole.log('Snipcart webhook received!');%0A%0Aconst method = 'POST';%0Aconst host = 'api.netlify.com';%0Aconst path =%0A '/build_hooks/5ef219aec0c4ea9331e5fe67?trigger_branch=master&trigger_title=Triggered+by+Netlify+Functions+via+Snipcart+webhook';%0Aconst opt... |
7bb20f314dd76ffffbf623626fc60411a0931a4e | update extglob tests | test/extglob1a.js | test/extglob1a.js | /*!
* micromatch <https://github.com/jonschlinkert/micromatch>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License
*/
'use strict';
var path = require('path');
var should = require('should');
var argv = require('minimist')(process.argv.slice(2));
var ref = require('./support/reference')... | JavaScript | 0 | @@ -400,21 +400,16 @@
describe
-.skip
('extglo
@@ -477,32 +477,35 @@
unction () %7B%0A
+ //
mm.match(%5B'a',
@@ -504,24 +504,29 @@
h(%5B'a', 'ab'
+, 'x'
%5D, 'a!(x)').
@@ -545,32 +545,35 @@
'a', 'ab'%5D);%0A
+ //
mm.match(%5B'a'%5D,
@@ -747,32 +747,84 @@
should.eql(%5B%5D);%0A
+ mm.match(%5B'ab', '... |
7b98c2b9ef3d82bdb25a938ba736dd5023fd1546 | Add reports.state.create | list/reports/state/create.js | list/reports/state/create.js | /*!
* hackerone.reports.state.create (https://github.com/xc0d3rz/hackerone)
* Copyright 2016-2017 xc0d3rz(x.c0d3rz000@gmail.com)
* Licensed under the MIT license
*/
/**
*
* @param id
* @param param
* @param callback
*/
module.exports = function (id, param, callback) {
this.post('reports/' + id + '/assigne... | JavaScript | 0.000001 | @@ -310,16 +310,21 @@
+ '/
-assignee
+state_changes
', %7B
@@ -344,34 +344,8 @@
: %7B%0A
- id: param.id,%0A
|
d9479b1df11eb7e52a9c5badf66b29d09ff08d02 | FIX sequence generation | scripts/generate_seq.js | scripts/generate_seq.js | $('#cleaner').click(function () {
$('#seq-id').val("");
$('#seq-id1').val("");
$('#seq-id2').val("");
$('#seq-id3').val("");
$('#seq_length').val("");
$('p#length-meter').text("");
$('textarea').trigger('autoresize');
cleaner();
});
$('#generator').click(function () { ... | JavaScript | 0.000001 | @@ -637,21 +637,16 @@
d').val(
-this.
sequence
@@ -734,13 +734,8 @@
%22 +
-this.
sequ
|
f8c5ee5640e949708ec09fbb536644a30a1abe1f | Remove old test remains | test/template-engine/template/templateSpec.js | test/template-engine/template/templateSpec.js | import Template from '../../../src/template.js';
describe('Template', () => {
describe('create', () => {
let dom = document.createElement('div');
let sut = new Template(dom);
it('should expose the dom', () => {
expect(sut.dom).to.equal(dom);
});
});
describe('c... | JavaScript | 0.000012 | @@ -465,55 +465,8 @@
t',%0A
- firstElementTranslateId = 'hello',%0A
@@ -644,21 +644,16 @@
tName%7D%22%3E
-Hello
%3C/div%3E%0A
|
1635a03bb7b07a072ad9b491b84718faa014e93c | update main test | test/main.test.js | test/main.test.js | import icons from '../src/data.js'
import { t } from './utils.js'
describe('CommonJS library', () => {
const Octicons = require('../')
icons.forEach(icon => {
t(Octicons[icon.camelName], icon)
})
})
| JavaScript | 0 | @@ -1,12 +1,33 @@
+/* eslint-disable */%0A
import icons
@@ -118,16 +118,57 @@
() =%3E %7B%0A
+ describe('with built icons', () =%3E %7B%0A
const
@@ -193,16 +193,18 @@
('../')%0A
+
icons.
@@ -225,16 +225,18 @@
%3E %7B%0A
+
t(Octico
@@ -261,16 +261,427 @@
, icon)%0A
+ %7D)%0A %7D)%0A%0A descr... |
413ff1bac4a68d58388c1afc14f1af32a6772062 | Use new FullscreenMessageDialog in MissingProjectConfig | packages/@sanity/base/src/components/MissingProjectConfig.js | packages/@sanity/base/src/components/MissingProjectConfig.js | import React from 'react'
import config from 'config:sanity'
import DialogContent from 'part:@sanity/components/dialogs/content?'
import FullscreenDialog from 'part:@sanity/components/dialogs/fullscreen?'
export default function MissingProjectConfig() {
const {root, project, plugins} = config
const {dataset, proje... | JavaScript | 0 | @@ -58,77 +58,8 @@
ty'%0A
-import DialogContent from 'part:@sanity/components/dialogs/content?'%0A
impo
@@ -67,24 +67,31 @@
t Fullscreen
+Message
Dialog from
@@ -133,17 +133,24 @@
llscreen
-?
+-message
'%0A%0Aexpor
@@ -547,30 +547,21 @@
reen
-Dialog color=%22default%22
+MessageDialog
tit
@@ -592,91 +592,20 @@... |
434dda9eedda786f82d91675b2b171e9e2fdb17b | add logout in auth hoc | packages/bonde-admin-canary/src/services/auth/context/hoc.js | packages/bonde-admin-canary/src/services/auth/context/hoc.js | import React from 'react'
import { AuthContext } from './Context'
const auth = () => Component => (props) => (
<AuthContext.Consumer>
{user => (<Component user={user} {...props} />)}
</AuthContext.Consumer>
)
export default auth
| JavaScript | 0 | @@ -19,16 +19,83 @@
'react'%0A
+import %7B connect %7D from '../../redux'%0Aimport AuthAPI from '../api'%0A
import %7B
@@ -174,10 +174,110 @@
=%3E
-(%0A
+%7B%0A %0A const ComponentRedux = connect(undefined, %7B logout: AuthAPI.logout %7D)(Component)%0A%0A return (%0A
%3CA
@@ -301,16 +301,18 @@
er%3E%0A ... |
a4c15c0eb3c270083143227b3c8cd5bc4f9db6b6 | fix err check | packages/coinstac-api-server/src/data/subscriptions/index.js | packages/coinstac-api-server/src/data/subscriptions/index.js | const rethink = require('rethinkdb');
const helperFunctions = require('../../auth-helpers');
const pipelineChangedSubsPreprocess = require('./pipelineChanged');
const userMetadataChangedSubsPreprocess = require('./userMetadataChanged');
// Add new tables here to create a new changefeed on server start
const tables = [... | JavaScript | 0.000001 | @@ -1297,24 +1297,33 @@
=%3E %7B%0A
+ if (err)
console.log
|
ebb37316c01abd2de6237bcacd9b6c26552878ad | Fix vertical centering of user Drop down (#267) | packages/components/containers/heading/UserDropdownButton.js | packages/components/containers/heading/UserDropdownButton.js | import React from 'react';
import PropTypes from 'prop-types';
import { DropdownCaret } from 'react-components';
import { getInitial } from 'proton-shared/lib/helpers/string';
const UserDropdownButton = ({ user, isOpen, buttonRef, ...rest }) => {
const { Email, DisplayName, Name } = user;
// DisplayName is nul... | JavaScript | 0 | @@ -560,16 +560,34 @@
ne-flex
+flex-items-center
dropDown
|
00a640e4733e8ce21d10a38f7e428a2b9418daac | fix highlighting of closing brace | lib/ace/mode/nix_highlight_rules.js | lib/ace/mode/nix_highlight_rules.js | define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var NixHighlightRules = function() {
var constantLanguage = "true|false";
var keywordControl = "with|import|if|else... | JavaScript | 0 | @@ -2281,20 +2281,35 @@
%5B1%5D
-== %22qqstring
+&& stack%5B1%5D.charAt(0) == %22q
%22 ?
@@ -2343,16 +2343,17 @@
: %22text%22
+;
%0A
|
b17a07e701c95896bfa566275bca489e4bf750b8 | Remove excessive validation | lib/builders/BootstrapperBuilder.js | lib/builders/BootstrapperBuilder.js | var path = require('path');
var util = require('util');
var pfs = require('../promises/fs');
var hrTimeHelper = require('../helpers/hrTimeHelper');
var moduleHelper = require('../helpers/moduleHelper');
var requireHelper = require('../helpers/requireHelper');
const BOOTSTRAPPER_FILENAME = 'Bootstrapper.js';
const BROW... | JavaScript | 0.000016 | @@ -4223,229 +4223,21 @@
h);%0A
- var constructor;%0A%0A try %7B%0A constructor = require(logicPath);%0A %7D catch (e) %7B%0A this._eventBus.emit('error', e);%0A %7D%0A%0A if (typeof (constructor) !== 'function' %7C%7C%0A
+%0A if (
type
|
f34a0f5a78416cca37562f9374db2315d4ba2201 | fix test | test/node/node.js | test/node/node.js | var should = require('should')
var cheerio = require('cheerio')
var path = require('path')
describe('node', function () {
var inst = require('../../index.js')
after(function () {
inst.remove()
})
it('->register', function () {
inst.register()
var style = require('../assets/simple.styl')
sty... | JavaScript | 0.000002 | @@ -1500,16 +1500,40 @@
heerio;%0A
+ console.log(html)%0A
va
|
9e8f9cfb709f577ee65e1f344013124faa5031ba | enable tsc to typecheck statistic definitions | src/server/api/statistic-definitions.js | src/server/api/statistic-definitions.js | /**
* @license Copyright 2019 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | JavaScript | 0.000001 | @@ -1279,21 +1279,24 @@
*/%0A
-module.export
+const definition
s =
@@ -1536,8 +1536,135 @@
t'),%0A%7D;%0A
+%0A// Keep the export separate from declaration to enable tsc to typecheck the %60@type%60 annotation.%0Amodule.exports = definitions;%0A
|
6001b864d698238bd14a92c7514a4701113984bd | Update index.js | templates/src/components/About/index.js | templates/src/components/About/index.js | // src/components/About/index.js
import React, { Component } from 'react';
import classnames from 'classnames';
import './style.css';
export default class About extends Component {
render() {
const { className, ...props } = this.props;
return (
<div className={classnames('About', className)} {...props... | JavaScript | 0.000002 | @@ -342,15 +342,8 @@
- About.
Rea
@@ -363,22 +363,9 @@
king
- successfully.
+!
%0A
|
89a81ae471d00457132d66f43670bd36f2b055a6 | fix graphModel | lib/dataTier/graph/barChartModel.js | lib/dataTier/graph/barChartModel.js | /*jshint node: true, -W106 */
'use strict';
/*
* Name : barChartModel.js
* Module : Lib::DataTier::BarChartModel
* Location : /lib/dataTier/graph
*
* History :
*
* Version Date Programmer Description
* =========================================================
* 0.0.1 2015-05-12 Samuele Zanella... | JavaScript | 0.000001 | @@ -509,171 +509,8 @@
);%0A%0A
-BarChartModel.prototype = new GraphModel(%7BID: 'ex'%7D);%0ABarChartModel.prototype.constructor = BarChartModel;%0ABarChartModel.prototype.parent = GraphModel.prototype;%0A%0A
func
@@ -1488,16 +1488,188 @@
;%0A%09%7D%0A%7D%0A%0A
+BarChartModel.prototype = Object.create(GraphModel.prot... |
3456ca3c2112e15b2bd4bd4b0290be4f953c62d9 | Add Integer>>#asDouble primitive | src/som/primitives/IntegerPrimitives.js | src/som/primitives/IntegerPrimitives.js | /*
* Copyright (c) 2014 Stefan Marr, mail@stefan-marr.de
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | JavaScript | 0 | @@ -3937,16 +3937,102 @@
ht);%0A%7D%0A%0A
+function _asDouble(_frame, args) %7B%0A return universe.newDouble(toNumber(args%5B0%5D));%0A%7D%0A%0A
class In
@@ -5134,24 +5134,83 @@
nedValue);%0A%0A
+ this.installInstancePrimitive('asDouble', _asDouble);%0A%0A
this.ins
|
721bbe3a78e3ab5ac8b704cf27f82cbbaa7a2d70 | Fix typo | lib/common/dependency-injection/registry.js | lib/common/dependency-injection/registry.js | 'use strict';
/**
* Expose `Registry`.
*/
module.exports = Registry;
/**
* Module dependencies.
*/
var utils = require('../utils'),
BaseRegistry = require('../manipulation/registry')
;
/**
* Initialize a new registry.
*
* @param {danf:object.interfacer} interfacer The interfacer.
* @param {string} interf... | JavaScript | 0.999999 | @@ -2387,17 +2387,16 @@
erface_)
-)
;%0A
|
a76e769741fdbede78f11dd942ff6732e317fe3a | Update up to changes in es5-ext package | lib/assert.js | lib/assert.js | 'use strict';
var Assert = require('test/assert').Assert
, bindMethods = require('es5-ext/lib/Object/bind-methods')
, never, neverBind;
never = function (message) {
this.fail({
message: message,
operator: "never"
});
};
neverBind = function (message) {
return never.bind(this, message);
};
module.ex... | JavaScript | 0 | @@ -16,19 +16,14 @@
var
-Assert
+extend
= r
@@ -34,89 +34,125 @@
re('
-t
es
-t/assert').Assert%0A , bindMethods = require('es5-ext/lib/Object/bind-methods')
+5-ext/lib/Object/extend')%0A , map = require('es5-ext/lib/Object/map')%0A , Assert = require('test/assert').Assert
%0A%0A
@@ -525,19 +525,14 @... |
4e2611e5820566e776cb088a56c5829ee8b77795 | Update the charts to look at the correct data attribute | lib/memdash/server/public/charts.js | lib/memdash/server/public/charts.js | $(document).ready(function(){
$.jqplot('gets-sets', [$("#gets-sets").data("gets"), $("#gets-sets").data("sets")], {
title: 'Gets & Sets for the Past Day',
grid: {
drawBorder: false,
shadow: false,
background: '#fefefe'
},
axes:{
xaxis:{
renderer: $.jqplot.DateAxisRender... | JavaScript | 0 | @@ -1855,37 +1855,38 @@
y-usage%22).data(%22
-limit
+engine
-maxbytes%22), $(%22
@@ -2222,37 +2222,38 @@
y-usage%22).data(%22
-limit
+engine
-maxbytes%22)%5B0%5D%5B0
@@ -2285,37 +2285,38 @@
y-usage%22).data(%22
-limit
+engine
-maxbytes%22)%5B$(%22#
@@ -2340,13 +2340,14 @@
ta(%22
-limit
+engine
-max
|
f9062d539578eb66602a5ee8d4c17745dccf1a85 | update legacy file | lib/neuron/legacy/neuron-2.0-1.0.js | lib/neuron/legacy/neuron-2.0-1.0.js | ;(function(K){
function alias(aliasKey, standardKey, noDeprecated){
var proto = DOMInit.prototype,
standard = proto[standardKey];
proto[aliasKey] = function(){
if(!noDeprecated && window.console){
console.warn && console.warn(
'WARNING: .' + aliasK... | JavaScript | 0 | @@ -628,24 +628,27 @@
l', 'get');%0A
+//
alias('conta
|
2c5acb4e8663624acd89a58996fa0b2ec4484aea | Remove deprecations | lib/common.js | lib/common.js | 'use babel'
import pathUtils from 'path'
export default {
splitCells(line){
return line.trim().replace(/[ ]{2,}/g, '\t').split(/\t+/);
},
getCurrentResource(path, autocompleteRobotProvider){
// support for deprecated consumer API.
if(typeof autocompleteRobotProvider.getResourceKeys === 'undefined') r... | JavaScript | 0.999122 | @@ -199,143 +199,8 @@
r)%7B%0A
- // support for deprecated consumer API.%0A if(typeof autocompleteRobotProvider.getResourceKeys === 'undefined') return undefined%0A%0A
@@ -497,463 +497,6 @@
%7D%0A
-%0A // ,%0A // buildResourcesByName(autocompleteRobotProvider)%7B%0A // const resourcesByName = new M... |
76f7a4456aef23085058021582cfa522b3f2b264 | Update dasher.js | lib/dasher.js | lib/dasher.js | var url = require('url')
var dashButton = require('node-dash-button');
var request = require('request')
const execFile = require('child_process').execFile;
function doLog(message) {
console.log('[' + (new Date().toISOString()) + '] ' + message);
}
function DasherButton(button) {
var options = {headers: button.hea... | JavaScript | 0 | @@ -148,16 +148,41 @@
xecFile;
+%0Aprocess.title = %22dasher%22
%0A%0Afuncti
|
0d1288a08e9236757b6b98aa3255abe96a89b939 | remove preventdefault for j and b keys | lib/events.js | lib/events.js | const scoreboard = require('./scoreboard');
const collisionSound = new Audio();
const $ = require('jquery');
const startButtonClick = (game) => {
game.canvas.addEventListener('click', function checkForButtonClick(e) {
if (e.offsetY > 225 && e.offsetY < 290 && e.offsetX > 190 && e.offsetX < 300) {
game.canv... | JavaScript | 0.000001 | @@ -522,34 +522,8 @@
) %7B%0A
- e.preventDefault();%0A
@@ -786,37 +786,8 @@
) %7B%0A
- // e.preventDefault();%0A
|
a04ef24a8016b3618785f761ab472972780b6f11 | add itunes keywords field (#59) | lib/fields.js | lib/fields.js | const fields = module.exports = {};
fields.feed = [
['author', 'creator'],
['dc:publisher', 'publisher'],
['dc:creator', 'creator'],
['dc:source', 'source'],
['dc:title', 'title'],
['dc:type', 'type'],
'title',
'description',
'author',
'pubDate',
'webMaster',
'managingEditor',
'generator',
... | JavaScript | 0 | @@ -949,16 +949,30 @@
eason',%0A
+ 'keywords',%0A
%5D).map(m
|
ccae88a40dbdf46632016db11cce4d48d98d96e2 | Fix for double getLayers in addlayer.js | lib/registry/components/addlayer.js | lib/registry/components/addlayer.js | var tpl = require('components/addlayer.html');
var Component = require('components/component');
var component = new Component(tpl, 'addlayer');
var Awesomplete = require('awesomplete.min');
var list = require('sources/list.json');
var utils = require('utils');
var $ = utils.$;
var olMap = require('olMap');
var map = ... | JavaScript | 0 | @@ -1161,29 +1161,84 @@
var
-id = m.getLayers()%5B0%5D
+layers = rasters.getLayers();%0A var id = layers.item(layers.getLength()-1)
.get
|
e7ecde5bcab31eaf2bb155ea15724f4300083931 | Add default value for `serve` callback | serve.js | serve.js | #!/usr/bin/env node
var express = require('express');
var taskist = require('taskist');
var sugar = require('object-sugar');
var config = require('./config');
var tasks = require('./tasks');
var api = require('./api');
if(require.main === module) {
main();
}
module.exports = main;
function main(cb) {
var db... | JavaScript | 0.000002 | @@ -756,24 +756,46 @@
serve(cb) %7B%0A
+ cb = cb %7C%7C noop;%0A%0A
var app
@@ -1864,12 +1864,32 @@
ow()) );%0A%7D%0A%0A
+function noop() %7B%7D%0A%0A
|
3b73d782113b83bf18f276aabbc965850c4a49da | Allow for no initial setup | setup.js | setup.js | var options = require("commander");
var q = require("q");
var BigIp = require('./lib/bigIp');
var globalSettings = {
guiSetup: 'disabled'
};
var dbVars = {};
var previousOperationMessage;
var bigIp;
var collect = function(val, collection) {
collection.push(val);
return collection;
};
var map = function(pa... | JavaScript | 0 | @@ -1328,60 +1328,8 @@
.%22);
-%0A console.log(%22Performing initial setup...%22);
%0A%0A
@@ -1498,53 +1498,30 @@
-return bigIp.initialSetup(%0A %7B%0A
+var initialConfig = %7B%0A
@@ -1531,28 +1531,24 @@
dns: %7B%0A
-
@@ -1584,35 +1584,27 @@
- ... |
4455aced53c92a6bd26d3c3fe061a61cbcab59c1 | change default border style for Ui.ComboItem | era/ui/combo.js | era/ui/combo.js |
Ui.Button.extend('Ui.Combo', {
field: undefined,
data: undefined,
position: -1,
current: undefined,
placeHolder: '...',
sep: undefined,
/**
* @constructs
* @class
* @extends Ui.Pressable
* @param {String} [config.field] Name of the data's field to display in the list
* @param [config.data] Object Li... | JavaScript | 0 | @@ -3636,17 +3636,60 @@
i.ComboItem'
+, %7B%7D, %7B%7D, %7B%0A%09style: %7B%0A%09%09borderWidth: 0%0A%09%7D%0A%7D
);%0A%09%0A
|
6965b0b02942b5faf373bfea78a3e2d7ad68b1c3 | allow setFill(undefined) to use the style property | era/ui/shape.js | era/ui/shape.js |
Ui.CanvasElement.extend('Ui.Shape',
/**@lends Ui.Shape*/
{
fill: undefined,
path: undefined,
scale: 1,
/**
* @constructs
* @class
* @extends Ui.Element
*/
constructor: function(config) {
},
setScale: function(scale) {
if(this.scale != scale) {
this.scale = scale;
this.invalidateDraw();
}
},... | JavaScript | 0 | @@ -584,24 +584,47 @@
ll);%0A%09%09%09else
+ if(fill !== undefined)
%0A%09%09%09%09fill =
|
e48ea6b75c2930ceb9955a5658e88f1d8ee34a8c | add maintenance detect in music_jp | lyric_engine_js/modules/music_jp.js | lyric_engine_js/modules/music_jp.js | const URL = require('url');
const util = require('util');
const iconv = require('iconv-lite');
const he = require('he');
const rp = require('request-promise');
const striptags = require('striptags');
const LyricBase = require('../include/lyric_base');
const keyword = 'music-book.jp';
class Lyric extends LyricBase {
... | JavaScript | 0 | @@ -323,33 +323,28 @@
async get_
-artist_id
+html
(url) %7B%0A
@@ -624,24 +624,78 @@
%7D);%0A%0A
+ return html;%0A %7D%0A%0A get_artist_id(html) %7B%0A
cons
@@ -855,24 +855,30 @@
ong_json(url
+, html
) %7B%0A
@@ -894,22 +894,16 @@
ist_id =
- await
this.ge
@@ -914,18 +9... |
0bd2f25ea1d5661e8602bde8d0993ed4f74a9532 | Remove confusing dead functions. | sheaf.js | sheaf.js | var ok = require('assert').ok
var path = require('path')
var fs = require('fs')
var mkdirp = require('mkdirp')
var Staccato = require('staccato')
var Signal = require('signal')
var Turnstile = require('turnstile')
Turnstile.Set = require('turnstile/set')
var cadence = require('cadence')
var sequester = require('se... | JavaScript | 0.000002 | @@ -2674,153 +2674,8 @@
%0A%7D%0A%0A
-Sheaf.prototype.hold = function (id) %7B%0A return this._sheaf.hold(id, null)%0A%7D%0A%0ASheaf.prototype._operate = cadence(function (async, entry) %7B%0A%7D)%0A%0A
// T
|
37e21349b79535482792ac8d013f9a61e65e7d20 | make cache private | shout.js | shout.js | /*
* Shout.js
*
* A quick and dirty pub/sub thingamajig
*
* Author: Stephen Murray
* Shout.js may be freely distributed under the MIT license.
*/
;(function(){
"use strict";
var shout,
_cache = {},
_delim = /\s+/,
slice = Array.prototype.slice;
function getArgs( args ) {
return slic... | JavaScript | 0 | @@ -365,29 +365,8 @@
%7B%0A%0A
- _cache: _cache,%0A%0A
|
b3b43d4025e22704d4a8afeaa2f10601babe0a73 | Fix js | modules/editor/assets/js/buttons.js | modules/editor/assets/js/buttons.js | yii.buttons = (function ($) {
var css = {
panel: '.js-editor-buttons',
preview: '.js-editor-preview'
};
var $btnPanel = $(css.panel);
var pub = {
isActive: true,
init: function () {
$btnPanel.on('click', function (event) {
var $btn = $(event.ta... | JavaScript | 0.000014 | @@ -870,16 +870,17 @@
var
+$
form = t
@@ -896,32 +896,80 @@
losest('form');%0A
+ var $preview = $form.find(css.preview);%0A
if (btn.
@@ -1200,38 +1200,24 @@
-form.find(css.
+$
preview
-)
.hide();
@@ -1244,16 +1244,38 @@
a.show()
+;%0A textarea
.focus()
@@ -1637,32 +1637,... |
e15aad885b48f60ddae5fda3e443d0c258c5129b | fix var-definitions style. | slice.js | slice.js | 'use strict';
var reAnsi = require('ansi-regex')
, stringifiable = require('es5-ext/object/validate-stringifiable')
, length = require('./get-stripped-length');
module.exports = function (str, begin, end) {
str = stringifiable(str);
var len = length(str);
if (begin == null) {
begin = 0;
}
i... | JavaScript | 0 | @@ -220,16 +220,32 @@
end) %7B%0A
+%09var seq, len;%0A%0A
%09str = s
@@ -263,22 +263,17 @@
e(str);%0A
-%0A%09var
+%09
len = le
@@ -442,20 +442,16 @@
d;%0A%09%7D%0A%0A%09
-var
seq = to
@@ -497,17 +497,16 @@
, end);%0A
-%0A
%09return
@@ -750,25 +750,28 @@
ndex
-;
%0A%09
-var head;%0A%09var
+ , head, prehea... |
30e1639856fe572a96b04c63a8a4a82ce84f891d | call first the router component, then user provider if needed | smash.js | smash.js | var glob = require("glob");
var path = require('path');
var responseFactory = require('./core/response.js');
//TODO
//core module can be explicitly replaced by custom module
//add method call verification everywhere
//for the moment, correct chained module is not needed
//TODO
//change everywhere for object
//current... | JavaScript | 0 | @@ -7300,16 +7300,97 @@
setNext(
+router.handleRequest, responseMiddleware.handleResponse);%0A router.setNext(
userProv
@@ -7478,89 +7478,8 @@
ext(
-router.handleRequest, responseMiddleware.handleResponse);%0A router.setNext(
auth
|
d8e22d2c8032a01607734b51b0b4970e9e8b2242 | Correct bug with keys | snake.js | snake.js |
var Snake = Class.extend({
age : 1,
food : 0,
body : [{x:0, y:9}],
direction : 'r', //'r': right, 'l': lefft, 'u': up, 'd': down
init : function() {
},
move : function() {
var head = {x : this.head().x, y : this.head().y},
newBody = [],
snakeAge = this.age;
if (this.direction==='... | JavaScript | 0.000004 | @@ -2260,24 +2260,90 @@
// up arrow%0A
+ if (state.snake.age==1 %7C%7C state.snake.direction != 'd') %7B%0A
state.
@@ -2365,16 +2365,24 @@
= 'u';%0A
+ %7D%0A
%7D%0A
@@ -2423,24 +2423,90 @@
down arrow%0A
+ if (state.snake.age==1 %7C%7C state.snake.direction != 'u') %7B%0A
sta... |
58da0ba11e605191d1231c0774a90e4c519460f2 | Allow spark.js to work either as a node module or as a browser function. | spark.js | spark.js | /*
* ASCII sparklines.
*/
var ticks = ['▁', '▂', '▃', '▅', '▆', '▇'];
function spark(ints) {
var max = Math.max.apply(null, ints),
min = Math.min.apply(null, ints);
var steps = ints.map(function (tick) {
var index = Math.round((tick - min) / max * (ticks.length -1));
return ticks[in... | JavaScript | 0 | @@ -22,16 +22,38 @@
s.%0A */%0A%0A
+(function(root) %7B%0A
var tick
@@ -89,16 +89,29 @@
'%E2%96%87'%5D;%0A%0A
+%09var spark =
function
@@ -111,21 +111,16 @@
unction
-spark
(ints) %7B
@@ -120,24 +120,25 @@
ints) %7B%0A
+%09
var max = Ma
@@ -163,24 +163,19 @@
ints),%0A
-
+%09%09%09
min = Ma
... |
5e08b0d2f4e08bafd1d2f5aac37ef83a7da7d621 | Fix getQueryParams tests | test/helpers/getPetitionsQueryParams.js | test/helpers/getPetitionsQueryParams.js | import chai from 'chai';
import getPetitionsQueryParams from 'helpers/getPetitionsQueryParams';
const { assert } = chai;
describe('getPetitionsQueryString', () => {
it('returns correct `page` from params', () => {
const result = getPetitionsQueryParams({
page: 2
});
const actual = result.page;
... | JavaScript | 0.000001 | @@ -147,14 +147,14 @@
uery
-String
+Params
', (
@@ -380,39 +380,31 @@
%7D);%0A%0A it('
-returns correct
+ignores
%60page%60 from
@@ -402,38 +402,38 @@
age%60 from query
-string
+params
', () =%3E %7B%0A c
@@ -534,259 +534,8 @@
ge;%0A
- const expected = 2;%0A%0A assert.equal(actual, expected);%0A %7... |
ab38ad529ed78c88b5a7ace4767c5714529df019 | use imports | test/lib/data_profiles_splitter.test.js | test/lib/data_profiles_splitter.test.js | describe('DataProfilesSplitter', () => {
const dps = new DataProfilesSplitter();
describe('#profilesFromDataSet', () => {
it('returns all profiles from profiles, profiles_1, profiles_2, profiles_3, profiles_4', () => {
const profiles = dps.profilesFromDataSet({
profiles: [{ profile: 'p0' }],
... | JavaScript | 0.000001 | @@ -1,16 +1,126 @@
+import %7B expect %7D from 'chai'%0Aimport %7B DataProfilesSplitter %7D from '../../src/lib/data_profiles_splitter.js'%0A%0A
describe('DataPr
|
4a8b294c924aae193ed3570c9e76d4d013833a8b | Update colors test with new colors | test/spec/colors/colors-service.spec.js | test/spec/colors/colors-service.spec.js | describe('Factory: mos.colors.ColorService', function () {
'use strict';
// load the module
beforeEach(module('mos'));
var $injector = angular.injector(['mos']);
var Colors;
var CartoConfig;
var MosColors;
var MosCssValues;
// Initialize the service
beforeEach(inject(function ... | JavaScript | 0 | @@ -1744,14 +1744,14 @@
l: #
-C9DBE6
+62afe8
;%7D #
@@ -1920,14 +1920,14 @@
l: #
-B8FFA8
+a3d895
;%7D %5C
|
4365fde2c6cde8b741064d1f125bcf5877ea5bab | fix tests for query string util | test/unit/utils/QueryStringUtilsSpec.js | test/unit/utils/QueryStringUtilsSpec.js |
let sinon from 'sinon/pkg/sinon.js');
var QueryStringUtils from '../../../lib/js/app/utils/QueryStringUtils');
describe('utils/QueryStringUtils', () => {
describe('getQueryAttributes', () => {
it('should properly parse funnel step filters', () => {
sinon.stub(QueryStringUtils, 'getSearchString').r... | JavaScript | 0.000011 | @@ -1,46 +1,10 @@
-%0Alet sinon from 'sinon/pkg/sinon.js');%0Avar
+import
Que
@@ -66,17 +66,16 @@
ngUtils'
-)
;%0A%0Adescr
@@ -112,18 +112,16 @@
() =%3E %7B%0A
-
%0A descr
@@ -154,20 +154,16 @@
() =%3E %7B%0A
-
%0A it(
@@ -225,18 +225,30 @@
-sin
+c
on
-.
st
-ub
+ spy = jest.spyOn
(Que
@@ -285... |
13eb5cba7be331ee2e7d7622373bb81f943d139a | add test for sending messages | tests/mocha/client/channels-test.es6.js | tests/mocha/client/channels-test.es6.js | "use strict";
if (typeof MochaWeb !== 'undefined') {
MochaWeb.testOnly(() => {
describe('channels', () => {
it('can create channels', () => {
return MTT.clickOn('+ New Channel')
.then(() => MTT.fillIn('It types something here', 'foo'))
.then(() => MTT.clickOn('Create'))
... | JavaScript | 0 | @@ -71,24 +71,204 @@
nly(() =%3E %7B%0A
+ beforeEach(done =%3E %7B%0A Messages.insert(%7B%0A userName: 'blahbot',%0A channelName: 'general',%0A body: 'Welcome to #general!'%0A %7D);%0A done();%0A %7D);%0A%0A
describe
@@ -384,30 +384,24 @@
.then(
-() =%3E
MTT.fill... |
35b5c6b7bfca2567a3068af005a7ae1ba3b24039 | add margins to label and chapter-section | tutor/src/components/book-part-title.js | tutor/src/components/book-part-title.js | import { React, PropTypes, cn, styled, css } from 'vendor';
import ChapterSection from './chapter-section';
const hideChapterSectionCSS = css`
.os-number {
display: none;
}
`;
const StyledBookPartTitle = styled.div`
display: inline-block;
${({ hideChapterSection }) => hideChapterSection && hideChapterSec... | JavaScript | 0 | @@ -606,11 +606,53 @@
gin-
-lef
+right: 0.5rem;%0A %7D%0A .label %7B%0A margin-righ
t: 0
|
f27872b85a54e8e8477048567bb037482f8ce00b | replace a close icon for history | preview/js/saveSelectedAreas.js | preview/js/saveSelectedAreas.js | 'use strict';
var areas = [];
var areaBounds = [];
var screenBounds = [];
var areaUrls = [];
var addresses = [];
var savedAreasWindowInner = document.getElementById('saved-areas-window-inner');
var savedAreasWindow = document.getElementById('saved-areas-window');
var ua = navigator.userAgent;
savedAreasWindowInner.on... | JavaScript | 0 | @@ -2549,19 +2549,12 @@
'fa-
-minus-cir
cl
+os
e');
|
2942e03e716f46013e4d8963b773752cb515fb8f | Use "cover" for rows per page selection menu | ui/src/components/table/table-bottom.js | ui/src/components/table/table-bottom.js | import QSelect from '../select/QSelect.js'
import QBtn from '../btn/QBtn.js'
import QIcon from '../icon/QIcon.js'
export default {
computed: {
navIcon () {
const ico = [ this.$q.iconSet.table.prevPage, this.$q.iconSet.table.nextPage ]
return this.$q.lang.rtl === true ? ico.reverse() : ico
}
},
... | JavaScript | 0 | @@ -2938,24 +2938,60 @@
ptionsDense:
+ true,%0A optionsCover:
true%0A
|
9f796efbda10158456108fa3fbfc583cadd2bac7 | remove logs | lib/subscribe.js | lib/subscribe.js | 'use strict'
const INIT = 'new'
const UPDATE = 'update'
const REMOVE = 'remove'
const merge = require('lodash.merge')
module.exports = function (target, subscription, update, tree) {
if (!tree) { tree = {} }
target.on('subscription', function (data, event) {
handleUpdate(target, subscription, update, tree, eve... | JavaScript | 0.000001 | @@ -1069,42 +1069,8 @@
e %7B%0A
- console.log('STRUCT!', key)%0A
@@ -1424,39 +1424,8 @@
ey)%0A
- console.log('leaf', stamp)%0A
@@ -2001,42 +2001,8 @@
ey)%0A
- console.log('struct', stamp)%0A%0A
@@ -3715,16 +3715,21 @@
og('
-s
+generateS
tamp
- it
', t
|
afd57d9346079ee027e01d80b4d77a1dd2dba9fc | fix handling of changing values | lib/sustained.js | lib/sustained.js | var watch = require('mutant/watch')
var computed = require('mutant/computed')
var Value = require('mutant/value')
module.exports = Sustained
// only broadcast value changes once a truthy value has stayed constant for more than timeThreshold
function Sustained (obs, timeThreshold, checkUpdateImmediately) {
var outp... | JavaScript | 0.000001 | @@ -335,16 +335,39 @@
e(obs())
+%0A var lastValue = null
%0A%0A retu
@@ -649,21 +649,17 @@
!==
-outpu
+las
tValue
-()
) %7B%0A
@@ -719,16 +719,40 @@
eshold)%0A
+ lastValue = value%0A
%7D%0A
@@ -773,24 +773,83 @@
update () %7B%0A
+ var value = obs()%0A if (value !== outputValue()) %7B%0A
... |
3d93e39edbb400a176a4e4b3f83d29e37eb888f5 | Use swagger-ui's dist path export | lib/swaggerUI.js | lib/swaggerUI.js | "use strict";
var P = require('bluebird');
var fs = P.promisifyAll(require('fs'));
var path = require('path');
var docRoot = __dirname + '/../node_modules/swagger-ui/dist/';
function staticServe (restbase, req) {
// Expand any relative paths for security
var filePath = req.query.path.replace(/\.\.\//g, '');
... | JavaScript | 0 | @@ -109,53 +109,103 @@
');%0A
-%0Avar docRoot = __dirname + '/../node_modules/
+// swagger-ui helpfully exports the absolute path of its dist directory%0Avar docRoot = require('
swag
@@ -214,17 +214,24 @@
r-ui
-/
+').
dist
+ + '
/';%0A
+%0A
func
|
b838f02fee261ae21bdacceb1d99c5d81089ff65 | Clean up code | lib/tokenize.es6 | lib/tokenize.es6 | const SINGLE_QUOTE = '\''.charCodeAt(0);
const DOUBLE_QUOTE = '"'.charCodeAt(0);
const BACKSLASH = '\\'.charCodeAt(0);
const SLASH = '/'.charCodeAt(0);
const NEWLINE = '\n'.charCodeAt(0);
const SPACE = ' '.charCodeAt(0);
const FEED = '\f'.charCodeAt(0)... | JavaScript | 0.000004 | @@ -793,27 +793,24 @@
AT_END
-
= /%5B %5Cn%5Ct%5Cr%5C
@@ -846,19 +846,16 @@
_END
-
= /%5B %5Cn%5C
@@ -908,19 +908,16 @@
BRACKET
-
= /.%5B%5C%5C%5C
|
7bcc16de84c034331607edb1cff796b796c9aaa7 | update files | lib/transform.js | lib/transform.js | /**
* Created by nuintun on 2015/4/27.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var Vinyl = require('vinyl');
var util = require('./util');
var through = require('@nuintun/through');
var gutil = require('@nuintun/gulp-util');
var relative = path.relative;
// blank buffer
var BLANK = Bu... | JavaScript | 0.000001 | @@ -1070,16 +1070,17 @@
rmalize(
+g
util.cwd
|
9278197e38dde08d73eab57dbccaa5d2a3d3a291 | Remove console.log | packages/rekit-core/core/files.js | packages/rekit-core/core/files.js | const _ = require('lodash');
const shell = require('shelljs');
const path = require('path');
const fs = require('fs');
const paths = require('./paths');
const deps = require('./deps');
const chokidar = require('chokidar');
const EventEmitter = require('events');
// Maintain file structure in memory and keep sync with ... | JavaScript | 0.000004 | @@ -677,39 +677,8 @@
r);%0A
- console.log('readDir', dir);%0A
if
@@ -1923,42 +1923,8 @@
) %7B%0A
- console.log('on unlink', file);%0A
co
@@ -1953,32 +1953,32 @@
tProjectRoot();%0A
+
const rFile =
@@ -2181,42 +2181,8 @@
) %7B%0A
- console.log('on change', file);%0A
co
@@ -2382,48 +2382,8 @@
) %7B%0A... |
9bdb7eed5695864247cc926775c527520e68cb9d | Send proper error object | packages/relay/src/Environment.js | packages/relay/src/Environment.js | // @flow
import { DeviceInfo } from '@kiwicom/mobile-localization';
import {
Environment,
Network,
RecordSource,
Store,
Observable,
} from 'relay-runtime';
import fetchWithRetries from '@kiwicom/fetch';
// This works, and requires no native setup. Note that @sentry/node does not work since it relies on crypt... | JavaScript | 0 | @@ -1111,21 +1111,40 @@
ception(
-error
+new Error(error.message)
);%0A %7D%0A%7D
|
ec8eae523d0eb811d30eae7dc903937b2c978b93 | use require.resolve for mocha bin in runtests | scripts/lib/runtests.js | scripts/lib/runtests.js | var mochaPhantom = require('./mocha-phantomjs');
var spawn = require('child_process').spawn;
var getStaticServer = require('./static-server');
var path = require('path');
var utils = require('./utils');
var lookup = utils.lookup;
var promiseSequence = utils.promiseSequence;
function mochaRun() {
return new Promise(... | JavaScript | 0 | @@ -530,25 +530,39 @@
-lookup('.
+require.resolve('mocha/
bin/moch
@@ -563,22 +563,16 @@
n/mocha'
-, true
),%0A
|
2c9ee8dd3d33eacadfb201f4ec503107a53a3e3d | fix ledger hardware wallet to support 32bits chainId | src/wallets/hardware/ledger/index.js | src/wallets/hardware/ledger/index.js | import Ledger from '@ledgerhq/hw-app-eth';
import { byContractAddress } from '@ledgerhq/hw-app-eth/erc20';
import ethTx from 'ethereumjs-tx';
import u2fTransport from '@ledgerhq/hw-transport-u2f';
import webUsbTransport from '@ledgerhq/hw-transport-webusb';
import { LEDGER as ledgerType } from '../../bip44/walletTypes'... | JavaScript | 0 | @@ -2257,29 +2257,16 @@
aw%5B6%5D =
-Buffer.from(%5B
networkI
@@ -2266,18 +2266,16 @@
etworkId
-%5D)
;%0A
@@ -2612,24 +2612,295 @@
')%0A );%0A
+%0A // EIP155 support. check/recalc signature v value.%0A let v = result.v;%0A const rv = parseInt(v, 16);%0A let cv = networkId * 2 + 35;%... |
bf94576f1626e835b7cb62d13b3b5264c9c0c9f3 | Improve tnl messaging | commands/tnl.js | commands/tnl.js | 'use strict';
const sprintf = require('sprintf').sprintf;
const LevelUtil = require('../src/levels').LevelUtil;
const util = require('util');
exports.command = (rooms, items, players, npcs, Commands) => {
return (args, player) => {
const playerExp = player.getAttribute('experience');
const tolevel = LevelUti... | JavaScript | 0.000001 | @@ -658,40 +658,25 @@
ave
-far to go before advancing again
+recently advanced
.',%0A
@@ -685,10 +685,10 @@
-25
+10
: 'Y
@@ -697,16 +697,24 @@
have a
+lengthy
journey
@@ -749,10 +749,10 @@
+3
5
-0
: 'Y
@@ -817,10 +817,10 @@
-75
+66
: 'Y
|
0f929809d08db22f3187735f14606d9cb8b45e8e | Revert "fix: wah, typo - correct order for subtraction" | app/assets/javascripts/auto/jobs.js | app/assets/javascripts/auto/jobs.js | /* -*- coding: utf-8 -*- */
/* global cforum, Highcharts, t */
cforum.admin.jobs = {
jobsCount: null,
index: function() {
Highcharts.setOptions({
lang: t('highcharts')
});
var keys = cforum.admin.jobs.jobsCount.sort(function(a,b) {
var a_date = new Date(a.day);
var b_date = new Date(... | JavaScript | 0 | @@ -334,17 +334,17 @@
return
-b
+a
_date.ge
@@ -353,17 +353,17 @@
ime() -
-a
+b
_date.ge
|
0707d7242c657841e21d05bfc49509d8d36fad61 | remove gchq | rest/api.js | rest/api.js | // libs
var express = require('express');
//API implementations
var login = require('./Login');
var deceased = require('./Deceased');
var recipients = require('./Recipient');
var events = require('./Events');
var messages = require('./Messages');
var encryption = require('../gchq_encryption/encrypt')
// express rout... | JavaScript | 0.001167 | @@ -242,16 +242,18 @@
ges');%0A%0A
+//
var encr
@@ -5408,24 +5408,26 @@
%7D);%0A%0A%0A%0A
+/*
router.post(
@@ -5682,24 +5682,26 @@
ed);%0A %7D);
+*/
%0A return
|
7873947798061d81b37b0d83f5c38e6e516b2c26 | Add newline at end before writing package json files | scripts/next-release.js | scripts/next-release.js | const execSync = require('child_process').execSync;
const fs = require('fs');
const os = require('os');
const readline = require('readline');
const path = require('path');
const config = {
packageJson: {
file: path.join(__dirname, '../frontend/package.json')
},
packageJsonLock: {
file: path.join(__dirnam... | JavaScript | 0 | @@ -1710,16 +1710,31 @@
null, 2)
+.concat(os.EOL)
);%0A%0A co
@@ -2051,16 +2051,31 @@
null, 2)
+.concat(os.EOL)
);%0A%7D%0A%0A/*
|
faba9410436f531170789416191a77b5f3dea0bb | Update meta count in store | components/NewChat.js | components/NewChat.js | import React, { Component } from 'react'
import { withApollo, gql } from 'react-apollo'
import _ from 'lodash'
import withData from '../lib/withData'
import { GC_USER_ID, GC_USERNAME } from '../constants'
import { ALL_CHATROOMS_QUERY } from './ChatList'
class NewChat extends Component {
constructor(props) {
... | JavaScript | 0 | @@ -2213,16 +2213,60 @@
hatroom)
+%0A data._allChatroomsMeta.count += 1
%0A%0A
|
e27311e044207f4537f1f9d9c1dcbf3ee84455b2 | Fix error. Where if you do shift select and click another element (so all others are unselected) the class is-selected does not get removed from others | addon/pods/components/frost-list-item/component.js | addon/pods/components/frost-list-item/component.js | import Ember from 'ember'
import _ from 'lodash/lodash'
import FrostList from '../frost-list/component'
export default Ember.Component.extend({
classNameBindings: ['isSelected', 'frost-list-item'],
initContext: Ember.on('init', function () {
this.set('_frostList', this.nearestOfType(FrostList))
}),
isSel... | JavaScript | 0.000001 | @@ -362,16 +362,209 @@
cted'),%0A
+ isSelectedChanged: Ember.observer('model.isSelected', function () %7B%0A this.get('isSelected') ? this.$().parent().addClass('is-selected') : this.$().parent().removeClass('is-selected')%0A %7D),
%0A oncli
@@ -1979,128 +1979,8 @@
)%7D)%0A
- this.get('isSelected') ? this... |
bcdb74ba15c207c91828963aaa28b0d773838a31 | update jsdoc in table | common/Table.js | common/Table.js | /**
* Created by tsmish on 13/08/16.
*/
import { Card } from './Card'
import { Player } from './Player'
export class Table {
constructor() {
/**
* An array of players sitting on the table
*
* @type [player]
*/
this.players = [];
/**
* An array... | JavaScript | 0 | @@ -237,16 +237,18 @@
ype
-%5Bp
+%7B%5BP
layer%5D
+%7D
%0A
@@ -288,172 +288,8 @@
%5D;%0A%0A
- /**%0A * An array of currently active cards (in the middle of table)%0A *%0A * @type %5Bstring%5D%0A */%0A this.activeCards = %5B%5D;%0A%0A
@@ -359,32 +359,33 @@
... |
90a5b964806092a68237ab237fac533fbd56bfef | Add descriptions to transformation/transformers/es6/arrow-functions | src/babel/transformation/transformers/es6/arrow-functions.js | src/babel/transformation/transformers/es6/arrow-functions.js | /**
* [Please add a description.]
*/
export var visitor = {
/**
* [Please add a description.]
*/
ArrowFunctionExpression(node) {
this.ensureBlock();
node.expression = false;
node.type = "FunctionExpression";
node.shadow = true;
}
};
| JavaScript | 0 | @@ -4,35 +4,216 @@
%0A *
-%5BPlease add a description.%5D
+Turn arrow functions into normal functions.%0A *%0A * @example%0A *%0A * **In**%0A *%0A * %60%60%60javascript%0A * arr.map(x =%3E x * x);%0A * %60%60%60%0A *%0A * **Out**%0A *%0A * %60%60%60javascript%0A * arr.map(function (x) %7B%0A * return x * x;%0A * %7... |
5fc59e2f390e6dbe4f34fa483108a25d5a5478a3 | Change back button in profile of other users to use window.history.back() instead of dispatching | components/Profile.js | components/Profile.js | import React from 'react'
import Header from './Header'
import Nav from './Nav'
import logout from '../api/logout'
function Profile ({state, dispatch}) {
function goBack (e) {
e.preventDefault()
dispatch({type: 'CHANGE_PAGE', payload: '/flops'})
}
if(state.currentUser.userId === state.currentViewUserId) ... | JavaScript | 0 | @@ -198,16 +198,45 @@
lt()%0A
+ window.history.back()%0A //
dispatc
@@ -1565,17 +1565,16 @@
)%0A %7D%0A
-%0A
%7D%0A%0Afunct
|
5401902b422b6f9f41617d694c4805eda28e115f | update play.js example | example/play.js | example/play.js |
/**
* Example script that retrieves the specified Track through Spotify, then decodes
* the MP3 data through node-lame, and fianally plays the decoded PCM data through
* the speakers using node-speaker.
*/
var Spotify = require('../');
var login = require('../login');
var lame = require('lame');
var Speaker = req... | JavaScript | 0 | @@ -374,18 +374,14 @@
');%0A
+%0A
var
-trackU
+u
ri =
@@ -608,22 +608,17 @@
etadata(
-trackU
+u
ri, func
@@ -657,24 +657,25 @@
throw err;%0A
+%0A
spotify.
@@ -952,88 +952,31 @@
-var decoder = new lame.Decoder();%0A decoder.on('format', function (format) %7B
+superagent.get(res.uri)
%0A
@@ -9... |
44aba48abf13cc05b306416cbca40f005e89fc26 | Use more specific selector to handle anomalies reports sections | common/reffy.js | common/reffy.js | window.onload = function () {
const $ = (el, selector) =>
Array.prototype.slice.call(el.querySelectorAll(selector), 0);
const toggleSubSections = spec =>
$(spec, 'h2 ~ section').forEach(
section => section.hasAttribute('hidden') ?
section.removeAttribute('hidden') :
section.setAttribu... | JavaScript | 0 | @@ -466,32 +466,39 @@
%0A $(document, '
+section
%5Bdata-spec%5D').fo
@@ -5017,16 +5017,23 @@
ument, '
+section
%5Bdata-sp
|
3b9047be0f3587a4163bb2c6fbf8467961d4371e | Fix fira code download | addons/xterm-addon-ligatures/bin/download-fonts.js | addons/xterm-addon-ligatures/bin/download-fonts.js | /**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
const fs = require('fs');
const path = require('path');
const util = require('util');
const axios = require('axios').default;
const mkdirp = require('mkdirp');
const yauzl = require('yauzl');
const urls = {
fira: 'https://gith... | JavaScript | 0 | @@ -344,14 +344,48 @@
raw/
-master
+d42e7276fa925e5f82748f3ec9ea429736611b48
/dis
|
fc1d88d5c3b34dace64441ea9c091fdb99ed261b | Add buffer byte length | src/Buffer.js | src/Buffer.js | /**
* Используется для хранения и подготовки данных для передачи в атрибуты шейдера
*
* @param {TypedArray | ArrayBuffer} data Данные для передачи в видеокарту
* @param {?BufferBindOptions} options Параметры передачи буфера в видеокарту,
* могут быть переопределены из {@link BufferChannel}
*/
class Buffer {
c... | JavaScript | 0.000048 | @@ -369,16 +369,153 @@
data;%0A%0A
+ /**%0A * %D0%A0%D0%B0%D0%B7%D0%BC%D0%B5%D1%80 %D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85 %D0%B2 %D0%B1%D1%83%D1%84%D0%B5%D1%80%D0%B5 %D0%B2 %D0%B1%D0%B0%D0%B9%D1%82%D0%B0%D1%85%0A * @type %7BNumber%7D%0A */%0A this.byteLength = data.byteLength;%0A%0... |
4fda7b75fa11cc1a7654beea998be4af08225990 | Make code more readable | examples/api.js | examples/api.js | #!/usr/bin/env node
/* eslint-disable fp/no-unused-expression, fp/no-nil, fp/no-mutation, no-console */
const Chance = require('chance');
const R = require('ramda');
const jsonServer = require('json-server');
const server = jsonServer.create();
const router = jsonServer.router();
const middlewares = jsonServer.defaults... | JavaScript | 0.003321 | @@ -773,16 +773,21 @@
meSerie(
+%0A
() =%3E ch
@@ -821,16 +821,19 @@
10**5%7D)
+%0A
);%0A%0A co
@@ -845,16 +845,17 @@
ddSecond
+s
= R.cur
@@ -857,16 +857,21 @@
R.curry(
+%0A
(num, dt
@@ -939,16 +939,19 @@
()+num))
+%0A
);%0A con
@@ -953,26 +953,68 @@
const
-plusSecond
+addInterval = addSec... |
2dfc6d71438f900871c6224a2a04b78341794923 | Add stateless functional component and web component stories | gemini/index.js | gemini/index.js | gemini.suite('CSS component', (suite) => {
suite.setUrl('/')
.setCaptureElements('#storybook-preview-iframe')
.capture('plain');
});
| JavaScript | 0.000001 | @@ -53,16 +53,493 @@
etUrl('/
+?selectedKind=CSS%2520component&selectedStory=default')%0A .setCaptureElements('#storybook-preview-iframe')%0A .capture('plain');%0A%7D);%0A%0Agemini.suite('Stateless functional component', (suite) =%3E %7B%0A suite.setUrl('/?selectedKind=Stateless%2520functional%2520component&sel... |
1f56a8384e27049d1d005bf0d616cc5c68e2e06f | Remove console.log for debugging | app/assets/javascripts/sharelink.js | app/assets/javascripts/sharelink.js | var ShareQuotes = {
init: function() {
$('.quotes').on('click', '.share-quote', this.showUrl);
$('.container').on('click', this.removeShare);
$('.show-quote').on('click', '.share-quote', this.showUrlSinglePage);
},
showUrl: function(e) {
e.preventDefault();
var index = $(e.target).closest('... | JavaScript | 0.000003 | @@ -1307,98 +1307,8 @@
%0A
- console.log(url);%0A console.log($('.show-quote').children);%0A console.log(index);%0A
|
8e3a24d1d8607e41f9d60a44c5d88712effe46b8 | Fix typo in score | static/src/modules/main/MainListCtrl.js | static/src/modules/main/MainListCtrl.js | /*@ngInject*/
module.exports = function ($scope, $rootScope, $stateParams, Metric, Config, Project, DateTimes) {
var chart = require('./chart');
var cubism;
var initOpt;
$rootScope.currentMain = true;
$scope.dateTimes = DateTimes;
$scope.projectId = $stateParams.project;
$scope.limitList = [{
label: ... | JavaScript | 0.999982 | @@ -5281,16 +5281,17 @@
ta%5Bi++%5D.
+s
core);%0A
|
5b75796bc51c58abda410941511aa9fc4bb40751 | fix move.style bug | src/Cursor.js | src/Cursor.js | //
// Copyright (c) 2016 Satoshi Nakajima (https://github.com/snakajima)
// License: The MIT License
//
import React, { Component } from 'react';
import App from './App';
import Page from './Page';
import Selection from './Selection';
import DragContext from './DragContext';
import createStore from './SimpleRedux';
c... | JavaScript | 0.000001 | @@ -4413,16 +4413,30 @@
style %7C%7C
+ %7B%7D).rotate %7C%7C
firstEl
@@ -4440,17 +4440,16 @@
tElement
-)
.rotate
|
ae86807e2294648b1641ee67455072a5f04e3163 | Update DocTyp.js | src/DocTyp.js | src/DocTyp.js | /*
Convert the contents of an HTML DOM element into a
styled text document for an easier reading
experience or to bring out certain features in the
document. You can create your own README document.
if (redistribute == true) {
return credit;
}
--------------------------------------------------
... | JavaScript | 0 | @@ -3247,16 +3247,21 @@
if (
+link.
media !=
|
510a37c0c6b8e603819a6df19108336ab1b184bd | Fix Update organization should return 404 | api/organizations/routes/updateOrganizationById.js | api/organizations/routes/updateOrganizationById.js | 'use strict';
const Boom = require('boom');
const Organization = require('../model/Organization');
const UpdateOrganizationSchema = require('../validation/updateOrganizationSchema');
const internals = {};
internals.validateObjectId = require('../helpers/validateObjectId');
internals.setFieldsToUpdate = function (fi... | JavaScript | 0.000066 | @@ -1130,32 +1130,112 @@
hen((org) =%3E %7B%0A%0A
+ if (org === null) %7B%0A return Boom.notFound();%0A %7D%0A
return
|
87befa3afc4bb8314849da973dd1fa2735fdfc65 | fix a bug | start.js | start.js |
'use strict';
// 入口文件
var startFn = require('./index');
// 默认配置
var setting = require('./config').mock;
var start = module.exports = function(d,p,cb){
var dir = d || process.cwd(),
port = p || setting.port;
startFn(dir,port,cb)
}
if(require.main){
startFn(null,8011)
}
| JavaScript | 0.000016 | @@ -100,16 +100,122 @@
.mock;%0A%0A
+var args = process.argv.slice(2),%0A%09port = (args%5B1%5D && /%5E%5Cd+$/.test(args%5B0%5D)) ? parseInt(args%5B0%5D) : 8011;%0A%0A
var star
@@ -253,16 +253,16 @@
,p,cb)%7B%0A
-
%09var dir
@@ -352,16 +352,40 @@
ire.main
+.filename === __filename
)%7B%0A%09star
@@ -397,12 +397,1... |
0d63d37875f184dfce6bb94e2e099ca38cf9479c | Remove outdated comment from test-util | test/test-util.js | test/test-util.js | var assert = require('assert');
var path = require('path');
var linter = require('..');
var fs = require('fs');
var postcss = require('postcss');
function getPostcssResult(css, primary, secondary) {
// Call then() at the end to make the LazyResult evaluate
var result = postcss()
.use(linter(primary, secondary)... | JavaScript | 0 | @@ -197,68 +197,8 @@
) %7B%0A
- // Call then() at the end to make the LazyResult evaluate%0A
va
|
f554c69ce0f97bde23b4a6b1cec98e4b30c75a8a | Rename close button in ScreenDetails. | app/assets/javascripts/components/ScreenDetails.js | app/assets/javascripts/components/ScreenDetails.js | import React, {Component} from 'react';
import {Input, Panel, ListGroup, ListGroupItem, ButtonToolbar, Button} from 'react-bootstrap';
import ElementCollectionLabels from './ElementCollectionLabels';
import UIStore from './stores/UIStore';
import UIActions from './actions/UIActions';
import Aviator from 'aviator';
impo... | JavaScript | 0 | @@ -5741,12 +5741,13 @@
()%7D%3E
-Back
+Close
%3C/Bu
|
204399123e0353805d3de8b25bf0cad1dee2b5c2 | refactor code | app/containers/TranslationStatus/index.js | app/containers/TranslationStatus/index.js | import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { showLoading, hideLoading } from 'react-redux-loading-bar'
import LinearProgress from 'material-ui/LinearProgress'
import { FormattedMessage } from 'react-intl'
import { makeSelectLocale } from ... | JavaScript | 0.023493 | @@ -1392,192 +1392,8 @@
ata%0A
- if (language === 'en') %7B%0A this.setState(%7B statisticsAvailable: true, pictogramsValidated, totalPictograms, arasaacPhrases: 100, arasaacTranslated: 100 %7D)%0A %7D else %7B%0A
@@ -1516,17 +1516,8 @@
%7D)%0A
- %7D%0A%0A
@@ -1614,33 +1614,8 @@
... |
e87f09935cd46150b1edfb103b34fdd9933badce | fix resource complete event | src/Loader.js | src/Loader.js | var async = require('async'),
Resource = require('./Resource'),
EventEmitter2 = require('eventemitter2').EventEmitter2;
/**
* Manages the state and loading of multiple resources to load.
*
* @class
* @param baseUrl {string} The base url for all resources loaded by this loader.
*/
function Loader(baseUrl) ... | JavaScript | 0.000001 | @@ -4943,20 +4943,24 @@
rce.on('
-load
+complete
', self.
|
bd02a251a1e181bf741c6fa10f6cd13df3d3ff13 | Fix inability to type into name inputs | src/Person.js | src/Person.js | import React, { Component } from "react";
import Amount from "./Amount";
class Person extends Component {
constructor(props) {
super(props);
var name = this.props.person || "";
var amount = this.props.amount || 0;
amount = parseFloat(amount);
var max = this.props.max || null;
this.state = ... | JavaScript | 0 | @@ -2148,33 +2148,40 @@
-v
+defaultV
alue=%7Bthis.props
|
2ad9d4c22945caf714e90c7e64be58a488f5f864 | add link to visualization after export | server-static/export.js | server-static/export.js | var source = new EventSource('/export/updates');
source.onopen = function() {
document.querySelectorAll('.fusiontable').forEach(function($table) {
$table.classList.add('fusiontable--loading');
});
};
source.addEventListener(
'message',
function(event) {
var data = JSON.parse(event.data);
if (!dat... | JavaScript | 0 | @@ -948,16 +948,243 @@
l%3E%3C/a%3E';
+%0A var visualizerLink =%0A ' %3Ca href=%22/visualizer/#file=' +%0A data.driveFile.id +%0A '%22 title=%22Open ' +%0A data.driveFile.name +%0A ' visualization%22 target=%22_blank%22%3E%3Csmall%3EOpen Visualization%3C/small%3E%3C/a%3E';
%0A%0A $... |
9d5be1d5ef10e97ffde4db164ea2acebd9b7464b | create API documentation | server/config/config.js | server/config/config.js | require('dotenv').config();
module.exports = {
development: {
use_env_variable: 'DEV_DATABASE',
dialect: 'postgres',
},
test: {
use_env_variable: 'TEST_DATABASE',
dialect: 'postgres',
},
production: {
use_env_variable: 'DEV_DATABASE',
dialect: 'postgres',
}
};
| JavaScript | 0 | @@ -240,36 +240,37 @@
_variable: '
-DEV_DATABASE
+PRODUCTION_DB
',%0A diale
|
81017eaea7ce08a951274a6a8dbc11dca38bc27e | Revert "RTL: remove blank character inside bdi (#9038)" (#9056) | app/javascript/mastodon/components/display_name.js | app/javascript/mastodon/components/display_name.js | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
others: ImmutablePropTypes.list,
};
render () {
const { account, others } = this.pro... | JavaScript | 0 | @@ -743,31 +743,17 @@
bdi%3E
-%0A %3Cspan%3E
+
%7Bsuffix%7D
%3C/sp
@@ -748,23 +748,16 @@
%7Bsuffix%7D
-%3C/span%3E
%0A %3C
|
a88fb122486cbfb47fcf566c87439c445faace56 | add supports.localStorage | src/System.js | src/System.js | /**
* @author mr.doob / http://mrdoob.com/
*/
System = {
browser: ( function () {
if ( navigator.userAgent.match( /arora/i ) ) {
return 'Arora';
} else if ( navigator.userAgent.match( /chrome/i ) ) {
return 'Chrome';
} else if ( navigator.userAgent.match( /epiphany/i ) ) {
return 'Epiphany';... | JavaScript | 0.000001 | @@ -1707,16 +1707,152 @@
dow.Blob
+,%0A%0A%09%09localStorage: ( function() %7B%0A%0A%09%09%09try %7B%0A%0A%09%09%09%09return !!localStorage.getItem;%0A%0A%09%09%09%7D catch( error ) %7B%0A%0A%09%09%09%09return false;%0A%0A%09%09%09%7D%0A%0A%09%09%7D )()
%0A%0A%09%7D%0A%0A%7D;
|
0496d24ce21842cbca6a588e7263bf577b8b48b1 | Make show name the slug. | decentral.js | decentral.js | var Maki = require('maki');
var config = require('./config');
var decentral = new Maki( config );
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;
var Credit = decentral.define('Credit', {
internal: true,
attributes: {
_person: { type: ObjectId , ref: 'Pe... | JavaScript | 0.000017 | @@ -520,32 +520,45 @@
ed: true , name:
+ true , slug:
true %7D,%0A cre
|
dd5ac2f33538e82d685dce5a916ec6fadda32942 | fix for Resolution method is overspecified -refs #8 | tests/lib.test.js | tests/lib.test.js | 'use strict';
var assert = require('assert')
var config = require('../config')
var lib = require('../lib/')
var mocks = require('./fixtures')
mocks.initMocks()
describe('Lib', function() {
it('Gets datapackage.json', async (done) => {
let api = new lib.DataHubApi(config)
// let dp = await api.getPackage... | JavaScript | 0.000001 | @@ -103,17 +103,16 @@
/lib/')%0A
-%0A
var mock
@@ -157,17 +157,16 @@
ocks()%0A%0A
-%0A
describe
@@ -177,18 +177,13 @@
b',
-function()
+() =%3E
%7B%0A
@@ -210,36 +210,32 @@
e.json', async (
-done
) =%3E %7B%0A let a
@@ -270,70 +270,8 @@
ig)%0A
- // let dp = await api.getPackage('admin', 'demo-package')... |
2fa0910688e7e692473141eadfcda18e67a45e6f | revert pretty | tests/oldTests.js | tests/oldTests.js | require('chai').should()
const z = require('src/z')
describe('old tests', function () {
it('should map an array', function () {
var $map = (numbers, f) => {
return z(numbers)(
(_, xs = []) => [],
(x, xs) => [f(x)].concat(xs.map(f))
)
}
$map([1, 2, 3, 4, 5], number => number *... | JavaScript | 0.000001 | @@ -730,16 +730,23 @@
z('h')(
+%0A
(x = 'h'
@@ -747,34 +747,42 @@
= 'h') =%3E true,
- x
+%0A (x)
=%3E false).shoul
@@ -766,32 +766,37 @@
(x) =%3E false
+%0A
).should.equal(t
@@ -863,16 +863,23 @@
z('a')(
+%0A
(x = 'h'
@@ -888,18 +888,26 @@
=%3E true,
- x
+%0A (x)
=%3E fals
@... |
c41d668e10fff0502aa9a5e0d9fb97eda3e1a038 | Indent application.js according to 2-spaces | src/main/resources/assets/app/scripts/routers/application.js | src/main/resources/assets/app/scripts/routers/application.js | /**
* Application Router
*
*/
define([
'jquery',
'backbone',
'underscore',
'views/application_view',
'views/jobs_collection_view',
'views/job_detail_collection_view',
'views/main_menu',
'views/graphbox_view'
],
function($,
... | JavaScript | 0 | @@ -23,11 +23,8 @@
ter%0A
- *%0A
*/%0A
@@ -32,23 +32,16 @@
efine(%5B%0A
-
'jquer
@@ -44,23 +44,16 @@
query',%0A
-
'backb
@@ -58,23 +58,16 @@
kbone',%0A
-
'under
@@ -74,23 +74,16 @@
score',%0A
-
'views
@@ -94,39 +94,32 @@
lication_view',%0A
-
'views/jobs_co
@@ -1... |
072404644af9410a99195a0e9022c7786cf452f9 | Add comment to function. | app/dashboard/static/js/app/utils/urls.js | app/dashboard/static/js/app/utils/urls.js | /*! Kernel CI Dashboard | Licensed under the GNU GPL v3 (or later) */
define([
'sprintf',
'utils/git-rules',
'URI'
], function(p, gitRules, URI) {
'use strict';
var urls = {};
urls.translateServerURL = function(vUrl, url, path, data) {
var sPath = '',
sURL,
tURI,... | JavaScript | 0 | @@ -856,24 +856,124 @@
p%5D;%0A %7D;%0A%0A
+ /*%0A Return a list with:%0A 0. The base git URL%0A 1. The git commit URL%0A */%0A
urls.tra
|
47f9398aee3b8b33631f8c45f04bf001ff16af62 | Update AutocompleteItem to use formatted suggestion | demo/Demo.js | demo/Demo.js | import React from 'react'
import PlacesAutocomplete, { geocodeByAddress } from '../src'
class Demo extends React.Component {
constructor(props) {
super(props)
this.state = {
address: '',
geocodeResults: null,
loading: false
}
this.handleSelect = this.handleSelect.bind(thi... | JavaScript | 0 | @@ -1823,17 +1823,26 @@
em = (%7B
-s
+formattedS
uggestio
@@ -1850,16 +1850,24 @@
%7D) =%3E (
+%0D%0A
%3Cdiv cla
@@ -1897,16 +1897,26 @@
n-item%22%3E
+%0D%0A
%3Ci class
@@ -1966,20 +1966,161 @@
n'/%3E
-%7Bsuggestion%7D
+%0D%0A %3Cstrong%3E%7BformattedSuggestion.mainText%7D%3C/strong%3E%7B'... |
5100413bcdcbcbb0c8a6224a9571e42d5c24d528 | fix POST url | src/mist/io/static/js/app/views/machine_monitoring_dialog.js | src/mist/io/static/js/app/views/machine_monitoring_dialog.js | define('app/views/machine_monitoring_dialog', [
'text!app/templates/machine_monitoring_dialog.html',
'ember'],
/**
*
* Monitoring Dialog
*
* @returns Class
*/
function(machine_monitoring_dialog_html) {
return Ember.View.extend({
template: Ember.Handlebars.co... | JavaScript | 0.001473 | @@ -7676,31 +7676,16 @@
url: '
-https://mist.io
/account
|
f939a016043585522f5fe7f5b0e88f346efb807d | Fix regression introduced fixing #2648, fix #2662 | src/resources-packaged/xbl/orbeon/code-mirror/code-mirror.js | src/resources-packaged/xbl/orbeon/code-mirror/code-mirror.js | /**
* Copyright (C) 2016 Orbeon, Inc.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This program i... | JavaScript | 0 | @@ -1917,34 +1917,34 @@
s, function(
-key,
value
+, key
) %7B%0A
|
61560d0ab16a4dcb8e383dd5c408d06889d2ed81 | Update tipuesearch_set.js | assets/tipuesearch/tipuesearch_set.js | assets/tipuesearch/tipuesearch_set.js |
/*
Tipue Search 5.0
Copyright (c) 2015 Tipue
Tipue Search is released under the MIT License
http://www.tipue.com/search
*/
var tipuesearch_pages =
["http://sorokacrc.org/",
"http://sorokacrc.org/about/",
"http://sorokacrc.org/vision/",
"http://sorokacrc.org/team/",
"http://sorokacrc.org/collaboration/",
"http://sorok... | JavaScript | 0 | @@ -190,21 +190,24 @@
crc.org/
-a
+A
bout
+ Us
/%22,%0A%22htt
@@ -224,17 +224,17 @@
crc.org/
-v
+V
ision/%22,
@@ -256,17 +256,17 @@
crc.org/
-t
+T
eam/%22,%0A%22
@@ -286,17 +286,17 @@
crc.org/
-c
+C
ollabora
@@ -325,17 +325,17 @@
crc.org/
-m
+M
edia/%22,%0A
@@ -356,17 +356,17 @@
crc.org/
-c
+C
onventio
@@ ... |
bf2dd558abb2207de11eee261caeb02b27ca21df | fix variables names and increase documentation | app/templates/cookie-info/_cookie-info.js | app/templates/cookie-info/_cookie-info.js | /**
* Save Cookie when accepting the terms from the cookie-info.
* the script requires the lib cookie.js from markusfalk, 'bower install markusfalk/cookie --save'
* @module CookieInfo
* @requires jquery
* @requires _core
* @requires jquery.exists
* @requires cookie
* @author Christian Schramm / André Meier da S... | JavaScript | 0 | @@ -1350,16 +1350,27 @@
eCookie(
+CookieInfo.
accept_c
@@ -1374,24 +1374,24 @@
t_cookies);%0A
-
%7D);%0A
@@ -1680,16 +1680,27 @@
Cookie(!
+CookieInfo.
accept_c
@@ -2011,32 +2011,92 @@
on _checkCookie%0A
+ * @param %7Bbollean%7D - value to be written on the Cookie%0A
* @private%0A
@@ -2135,24 +2... |
971ce8c35f889b4fda945677ced95d41fcff3214 | FIX scrolling behavior of mobile navigation (prevent navigation to close on scroll) | tools/plenty-2.js | tools/plenty-2.js | /* plenty scripts */
(function( $ )
{
/*
* Initialization
*/
$( document ).ready( function()
{
$( '.mainNavigation' ).on( 'scroll touchmove mousewheel', function( event )
{
event.preventDefault();
} );
// cancel login
$( '[data-plenty="cancelLog... | JavaScript | 0 | @@ -157,18 +157,8 @@
oll
-touchmove
mous
|
6358ead5f808194b27c2e8a597cab232f7a385e2 | add inline-source-map for test | gulp/scripts.js | gulp/scripts.js | 'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var webpack = require('webpack-stream');
var $ = require('gulp-load-plugins')();
function webpackWrapper(watch, test, callback) {
var webpackOptions = {
watch: watch,
module: {
preLoaders: [{ test: /\... | JavaScript | 0.000001 | @@ -528,32 +528,40 @@
%7D;%0A%0A if(watch
+ %7C%7C test
) %7B%0A webpackO
|
15a04ecaeb0c6b284bb706fee78bb40518b03fab | Fix relative timestamp in versions | apps/files_versions/js/versionstabview.js | apps/files_versions/js/versionstabview.js | /*
* Copyright (c) 2015
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
(function() {
/**
* @memberof OCA.Versions
*/
var VersionsTabView = OCA.Files.DetailTabView.extend(/** @lends OCA.Versions.VersionsTabView.prototype */{
... | JavaScript | 0.000054 | @@ -4105,24 +4105,62 @@
timestamp),%0A
+%09%09%09%09millisecondsTimestamp: timestamp,%0A
%09%09%09%09humanRea
|
8ec055dbf41ca4da8a271cc3ccf16a523077b9f3 | fix gulpfile, nodemon watch jsx files | gulpfile.babel.js | gulpfile.babel.js | 'use strict';
import gulp from 'gulp';
import gutil from 'gulp-util';
import webpack from 'webpack';
import WebpackDevServer from 'webpack-dev-server';
import webpackConfig from './webpack.config';
import compass from 'gulp-compass';
import minifyCSS from 'gulp-minify-css';
import nodemon from 'gulp-nodemon';
var por... | JavaScript | 0 | @@ -1626,16 +1626,20 @@
ext: 'js
+ jsx
',%0A i
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.