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 |
|---|---|---|---|---|---|---|---|
7792444771bab19d5c54ecd2cc919eda896db217 | fix path to templates | app/actions/prepare.js | app/actions/prepare.js | var Path = require("path")
var fs = require("fs")
var Q = require("q");
var Profile = require("3vot-cloud/models/profile")
var AwsCredentials = require("3vot-cloud/aws/credentials");
var Log = require("3vot-cloud/utils/log")
var Packs = require("3vot-cloud/utils/packs")
var Install = require("3vot-cloud/utils/install"... | JavaScript | 0.000002 | @@ -1191,16 +1191,17 @@
th.join(
+
Path.dir
@@ -1242,16 +1242,40 @@
'../../
+node_modules/3vot-cloud/
template
@@ -1598,16 +1598,18 @@
= %7B%0A
+
user_nam
@@ -1670,16 +1670,18 @@
sword),%0A
+
key:
|
943c82fe9cbc7e1f8ffe60b5770596f2483134ed | Use a constant for the algorithm | lib/encrypted-attr.js | lib/encrypted-attr.js | 'use strict'
const crypto = require('crypto')
const { get, set } = require('lodash')
function EncryptedAttributes (attributes, options) {
options = options || {}
function encryptAttribute (obj, val) {
// Encrypted attributes are prefixed with "aes-256-gcm$", the base64
// encoding of which is "YWVzLTI1Ni... | JavaScript | 0.999781 | @@ -7,16 +7,42 @@
trict'%0A%0A
+const alg = 'aes-256-gcm'%0A
const cr
@@ -66,16 +66,16 @@
rypto')%0A
-
const %7B
@@ -186,16 +186,74 @@
%7C%7C %7B%7D%0A%0A
+ let prefix = Buffer.from(%60$%7Balg%7D$%60).toString('base64')%0A%0A
functi
@@ -386,34 +386,27 @@
hich is
-%22YWVzLTI1Ni1nY20k%22
+in %60prefix%60
. ... |
c6ed32694bbb5cae42e8dad5dddb5199238ba7ef | Remove trailing slash on transform ignore paths (#287) | config/jest/jestConfig.js | config/jest/jestConfig.js | const escapeRegex = require('escape-string-regexp');
const { paths } = require('../../context');
const slash = '[/\\\\]'; // Cross-platform path delimiter regex
const compilePackagesRegex = paths.compilePackages.map(escapeRegex).join('|');
module.exports = {
...(paths.setupTests
? {
setupTestFrameworkScr... | JavaScript | 0 | @@ -2215,18 +2215,8 @@
x%7D))
-$%7Bslash%7D.+
%60%0A
|
1fd88a0771bd94852608d761e032ddc0ebf1fad8 | Update default webpack config: change webpack jsonp function name to `lm` for smaller output. | bin/webpack.config.js | bin/webpack.config.js | var path = require('path'),
fs = require('fs'),
webpack = require('webpack'),
CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'),
HtmlWebpackPlugin = require('html-webpack-plugin');
var pathConfig = require("./path-config");
var respa_config = {};
try {
respa_config = require(path.join(... | JavaScript | 0 | @@ -997,24 +997,47 @@
ctDOM%22%0A %7D,%0A
+ jsonpFunction: 'lm',%0A
resolve: %7B
@@ -3106,24 +3106,64 @@
//
-10KB %E4%BB%A5%E4%B8%8B%E4%BD%BF%E7%94%A8 base64
+Use base64 data url when file size is smaller then 10KB.
%0A
|
b8addd4950c6df6681124bc1c6e250b894451e33 | Document EtchComponent | lib/etch-component.js | lib/etch-component.js | /** @babel */
/** @jsx etch.dom */
import {Emitter} from 'atom'
import etch from 'etch'
export default class EtchComponent {
constructor (props) {
this.props = props
etch.initialize(this)
EtchComponent.setScheduler(atom.views)
this.emitter = new Emitter()
this.emitter.emit('component-did-mount... | JavaScript | 0 | @@ -83,16 +83,115 @@
'etch'%0A%0A
+/*%0A Public: Abstract class for handling the initialization%0A boilerplate of an Etch component.%0A*/%0A
export d
@@ -426,233 +426,928 @@
%0A%0A
-static getScheduler () %7B%0A return etch.getScheduler()%0A %7D%0A%0A static setScheduler (scheduler) %7B%0A etch.setSchedu... |
d810557671042b0fca6dd402df7e4fd444f07b8b | Correct observer bug. | priv/admin/js/ring.js | priv/admin/js/ring.js | minispade.register('ring', function() {
RiakControl.PaginationView = Ember.CollectionView.extend({
tagName: 'ul',
itemViewClass: Ember.View.extend({
templateName: 'pagination_item',
tagName: 'li',
spanClasses: 'paginator pageNumber',
isActive: function() {
var selectedPage =... | JavaScript | 0 | @@ -5141,28 +5141,37 @@
rty(%22content
+.kvStatus
%22),%0A
-
%0A kvInd
@@ -5372,32 +5372,43 @@
roperty(%22content
+.pipeStatus
%22),%0A%0A pipeI
@@ -5594,32 +5594,32 @@
searchStatus');%0A
-
%7D.property
@@ -5627,16 +5627,29 @@
%22content
+.searchStatus
%22),%0A%0A
|
712223cb8be021bd5587815b0abc9bdeb124db82 | Fix default count for retry | bin/retry.js | bin/retry.js | #!/usr/bin/env node
const amqp = require('amqplib'),
meow = require('meow'),
R = require('ramda'),
Promise = require('bluebird'),
RabbitMqClient = require('../rabbitmq');
const cli = meow(`
Retries all mesasges in a dlq
Usage
funny-bunny-retry --host URL --queue QUEUE_NAME [--co... | JavaScript | 0.000003 | @@ -1463,24 +1463,21 @@
unt = +c
-li.flags
+onfig
.count;%0A
|
fc986d9251bdca115c2757968e416052e7af593b | fix tiny typo | test/integration_tests/abao_test_hooks.js | test/integration_tests/abao_test_hooks.js | var hooks = require('hooks');
// Variables for passing results as input to subsequent tests
var job_id = '';
var gear_name = '';
// Tests we're skipping, fix these
// Fails only in travis
hooks.skip("GET /version -> 200");
// Skipped due to 500 when should 4xx
// Should 400 to say invalid json
hooks.skip("GET /dow... | JavaScript | 0.999231 | @@ -1882,17 +1882,16 @@
fig.json
-%22
-%3E 200%22
|
bc3396cb99a8ba83afb7b3f6590a12eee572fd65 | Fix flushing issue on node 10 | config/config.js | config/config.js | var async = require('async');
var fs = require('fs');
var path = require('path');
var PLATFORM = require('process').platform;
var log = require('../log').logger('config');
// Config is the superclass from which all configuration objects descend
// Common functionality is implemented here.
Config = function(config_name... | JavaScript | 0.000001 | @@ -1578,33 +1578,8 @@
) %7B%0A
-%09%09%09var fd_for_sync = fd;%0A
%09%09%09i
@@ -1614,70 +1614,138 @@
%0A%09%09%09
-%7D else %7B%0A%09%09%09%09fs.write(fd, JSON.stringify(this._cache, null, 4)
+%09callback(err);%0A%09%09%09%7D else %7B%0A%09%09%09%09var cfg = new Buffer(JSON.stringify(this._cache, null, 4));%0A%09%... |
91359c27a082212da2bc4aec4f429ee64779bda7 | Update test | tests/unit/components/as-calendar-test.js | tests/unit/components/as-calendar-test.js | import hbs from 'htmlbars-inline-precompile';
import { test, moduleForComponent } from 'ember-qunit';
import Ember from 'ember';
import moment from 'moment';
import {
timeSlotHeight,
dayWidth,
selectTime,
resizeOccurrence,
dragOccurrence,
selectTimeZone
} from 'ember-calendar/test-helpers/all';
moduleForC... | JavaScript | 0.000001 | @@ -2123,16 +2123,40 @@
rrence .
+as-calendar-occurrence__
remove')
|
462d14b5d72a799dd2e8ba23215c6d0d64edf35d | use single dollar in mathjax test as before | test/jasmine/bundle_tests/mathjax_test.js | test/jasmine/bundle_tests/mathjax_test.js | var Plotly = require('@lib/index');
var d3Select = require('../../strict-d3').select;
var createGraphDiv = require('../assets/create_graph_div');
var destroyGraphDiv = require('../assets/destroy_graph_div');
describe('Test MathJax:', function() {
var mathJaxScriptTag;
// N.B. we have to load MathJax "dynami... | JavaScript | 0 | @@ -3282,17 +3282,16 @@
tle = '$
-$
f(x) = %5C
@@ -3317,17 +3317,16 @@
i(t) dt$
-$
';%0A
@@ -3349,22 +3349,19 @@
%5B'$
-$
%5C%5Cphi$
-$
', '$
-$
%5C%5Cna
@@ -3384,15 +3384,13 @@
%7BF%7D$
-$
', '$
-$
%5C%5Cfr
@@ -3418,17 +3418,16 @@
tial y%7D$
-$
'%5D;%0A
@@ -3456,33 +3456,32 @@
%5B%0A ... |
d01d7dfb6421bec17928659fb15ec7c7f4d5448d | Revert "use fancy this.$el to reduce a few cluttery chars" | soundcite/js/soundcite.js | soundcite/js/soundcite.js | (function(window, document, version, callback) { // http://stackoverflow.com/questions/2170439/how-to-embed-javascript-widget-that-depends-on-jquery-into-an-unknown-environmen
var j, d;
var loaded = false;
if (!(j = window.jQuery) || version > j.fn.jquery || callback(j, loaded)) {
var script = docum... | JavaScript | 0 | @@ -1577,43 +1577,8 @@
el;%0A
- this.$el = $(this.el);%0A
@@ -1619,32 +1619,32 @@
ata-id'%5D.value;%0A
+
this
@@ -2129,24 +2129,26 @@
+$(
this.
-$
el
+)
.click(b
@@ -2187,32 +2187,34 @@
+$(
this.
-$
el
+)
.addClass('s
@@ -3251,32 +3251,34 @@
+$... |
598ac6ab47e30c3c42470955d7dd50edde35b8af | Fix bug where audio clips were being cached (causing old audio clips to be played even if you re-recorded the clip) | app/components/Clip.js | app/components/Clip.js | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import { fileExists, timeMs } from '../utils';
const styles = {
dialogue: {
fontSize: '2rem',
marginBottom: '10px'
},
button: {
fontSize: '1.3rem'
},
};
export default class Clip extends Component {
construct... | JavaScript | 0 | @@ -501,24 +501,99 @@
ind(this);%0A%0A
+ // Initialize the hacky play counter%0A this.renderAudioCounter = 0;%0A%0A
this.sta
@@ -752,18 +752,20 @@
nds%0A
-le
+cons
t start
@@ -809,18 +809,20 @@
.0;%0A
-le
+cons
t end =
@@ -1597,79 +1597,445 @@
-return (%0A %3Caudio%0A src... |
a64f4cdb81126654e54e37cc9e0018002c194247 | Change stdin | lib/glue-mapreduce.js | lib/glue-mapreduce.js | var _ = require( 'lodash' ),
async = require( 'async' ),
path = require( 'path' ),
rootDir = path.join( '.', '..' );
var NotImplementError = require( rootDir, 'lib', 'errors' ).NotImplementError;
var GlueMapReduce = ( function () {
return function () {
var self = this;
self.mode = ... | JavaScript | 0.00001 | @@ -54,24 +54,53 @@
'async' ),%0A
+ fs = require( 'fs' ),%0A
path =
@@ -2241,283 +2241,79 @@
-process.stdin.resume();%0A process.stdin.setEncoding( 'utf8' );%0A var buffer = '';%0A process.stdin.on( 'data', function ( line ) %7B%0A buffer += line;%0A ... |
2f0e4476b454ba3bf957eb772027e2d534d178ab | fix obj loading in graphOptimized | lib/graphOptimizer.js | lib/graphOptimizer.js | var when = require('when');
var settings = require('../config/settings');
// Set of plugins that may contain references to external dependencies.
var urlPlugins = [
'url_audio_buffer_generator',
'url_audio_generator',
'url_json_generator',
'url_scene_generator',
'url_texture_generator',
'url_video_generator'
];... | JavaScript | 0 | @@ -160,16 +160,39 @@
ins = %5B%0A
+%09'three_loader_model',%0A
%09'url_au
|
34785defb547fcf31c5250538ce678e80a614e75 | modify for heroku | config/config.js | config/config.js | var path = require('path'),
rootPath = path.normalize(__dirname + '/..'),
env = process.env.NODE_ENV || 'development';
var config = {
development: {
root: rootPath,
app: {
name: 'tweb'
},
port: process.env.PORT || 3000,
db: 'mongodb://localhost/tweb-development'
},
te... | JavaScript | 0 | @@ -229,36 +229,16 @@
ort:
- process.env.PORT %7C%7C
3000,%0D%0A
@@ -225,32 +225,32 @@
port: 3000,%0D%0A
+
db: 'mongodb
@@ -370,36 +370,16 @@
port:
- process.env.PORT %7C%7C
3000,%0D%0A
@@ -425,18 +425,20 @@
%0D%0A %7D,%0D%0A
+
%0D%0A
-
produc
@@ -442,26 +442,25 @@
duction: %7B%0D%0A
- ... |
1ca0b23d0def112eb4febae5cf0d71eb9ee549fb | Update tests | test/js/samples/debug-hoisted/expected.js | test/js/samples/debug-hoisted/expected.js | /* generated by Svelte vX.Y.Z */
import {
SvelteComponentDev,
init,
noop,
safe_not_equal
} from "svelte/internal";
const file = undefined;
function create_fragment(ctx) {
return {
c: function create() {
{
const { obj } = ctx;
console.log({ obj, kobzol });
debugger;
}
},
l: function claim... | JavaScript | 0.000001 | @@ -723,16 +723,117 @@
: 5 %7D;%0A%0A
+%09$$self.$capture_state = () =%3E %7B%0A%09%09return %7B%7D%0A%09%7D;%0A%0A%09$$self.$inject_state = $$props =%3E %7B%0A%09%09return%0A%09%7D;%0A%0A
%09return
|
53e072e5943ed7ccb274311745b1c526ca68a7e2 | Handle filters in include and extends (#16) | lib/handle-filters.js | lib/handle-filters.js | 'use strict';
var dirname = require('path').dirname;
var constantinople = require('constantinople');
var walk = require('pug-walk');
var error = require('pug-error');
var runFilter = require('./run-filter');
module.exports = handleFilters;
function handleFilters(ast, filters, options) {
options = options || {};
w... | JavaScript | 0 | @@ -1879,32 +1879,61 @@
%7D%0A %7D%0A
+%7D, %7BincludeDependencies: true
%7D);%0A return ast
|
f06ea4cdb30d55d7d506fcd3514c23a965d328e7 | make it be able to set queue name for handler | lib/handlers/queue.js | lib/handlers/queue.js | "use strict";
var amqp = require('amqp');
var ascoltatori = require('ascoltatori');
var Handler = require('../handler');
module.exports = function() {
var handler = new Handler();
handler.context = null;
handler.connection = null;
handler.exchange = null;
handler.queue = null;
handler.host = 'localhost';
han... | JavaScript | 0.000001 | @@ -175,16 +175,45 @@
ndler();
+%0A%09handler.setMaxListeners(0);
%0A%0A%09handl
@@ -400,16 +400,48 @@
.queue';
+%0A%09handler.queueName = 'default';
%0A%0A%09handl
@@ -441,24 +441,26 @@
%0A%09handler.on
+ce
('initialize
@@ -491,28 +491,31 @@
%09var self =
-this
+handler
;%0A%0A%09%09self.co
@@ -617,36 +617,23... |
4f9c3c5be3c0f1a8474b86b86c8c1e070043c91d | Change to Production URL | config/config.js | config/config.js | module.exports = {
PROTOCOL : 'https',
HOST : 'dev.stackify.com',
PORT : 443,
IDENTIFY_PATH : '/API/Metrics/IdentifyApp',
LOG_SAVE_PATH : '/API/Log/Save',
DELAY: { // possible delay values in millis
ONE_SECOND_DELAY : ... | JavaScript | 0 | @@ -84,11 +84,11 @@
: '
-dev
+api
.sta
@@ -164,20 +164,16 @@
: '/
-API/
Metrics/
@@ -221,12 +221,8 @@
: '/
-API/
Log/
|
64640f82e81821d667d9770022c28adea1227aab | bump number of dojos user can create for import script | config/config.js | config/config.js | var path = require('path');
var assert = require('assert');
var LogEntries = require('le_node');
var generator = require('xoauth2').createXOAuth2Generator({
user: process.env.GMAIL_USER,
clientId: process.env.GMAIL_CLIENT_ID,
clientSecret: process.env.GMAIL_CLIENT_SECRET,
refreshToken: process.env.GMAIL_REFRESH... | JavaScript | 0 | @@ -4032,17 +4032,17 @@
OJOS %7C%7C
-1
+3
0%0A %7D,
|
60f082c765b82f07ad1daf47cd71650142b79f49 | Change my-sample directive (using template property) | app/js/directives.js | app/js/directives.js | 'use strict';
eventsApp.directive('mySample', function($compile) {
return {
restrict: 'E',
link: function(scope, element, attrs, controller) {
var markup = "<input type='text' ng-model='sampleData' /> {{sampleData}}<br/>";
angular.element(element).html($compile(markup)(scope));
}
};
}); | JavaScript | 0 | @@ -90,16 +90,97 @@
'E',%0A%09%09
+template: %22%3Cinput type='text' ng-model='sampleData' /%3E %7B%7BsampleData%7D%7D%3Cbr/%3E%22%0A%09%09//
link: fu
@@ -225,16 +225,19 @@
er) %7B%0A%09%09
+//
%09var mar
@@ -311,16 +311,19 @@
r/%3E%22;%0A%09%09
+//
%09angular
@@ -373,16 +373,19 @@
pe));%0A%09%09
+//
%7D%0... |
1d0a734113f35de856b991f14355a5c8abe5e7b7 | Add organizer to attendee | lib/helpers/upload.js | lib/helpers/upload.js | 'use strict';
var rarity = require('rarity');
var getDateFromObject = function(obj) {
if (!obj) {
return undefined;
}
if (obj.dateTime) {
return new Date(obj.dateTime);
}
else if (obj.date) {
return new Date(obj.date);
}
else {
return undefined;
}
};
/**
* Upload `event` (containing... | JavaScript | 0 | @@ -1629,16 +1629,93 @@
l%0A %7D;
+%0A%0A eventDocument.metadata.attendee.push(eventDocument.metadata.organizer);
%0A %7D%0A %0A
|
94b221ef475d8f339b9fd791228a946973afe284 | add test for parsing initial board state | test/run-length-encoding-textarea.spec.js | test/run-length-encoding-textarea.spec.js | import React from 'react';
import { assert, expect } from 'chai';
import { mount, shallow } from 'enzyme';
var fs = require('fs');
import RunLengthEncodingTextarea from '../run-length-encoding-textarea.jsx';
describe('<RunLengthEncodingTextarea>', function() {
describe('#render', function() {
it('renders', fu... | JavaScript | 0 | @@ -258,16 +258,18 @@
on() %7B%0A%0A
+%0A%0A
descri
@@ -3102,23 +3102,398 @@
0%5D);%0A %7D);
+%0A%0A it('parses the initial board state', function() %7B%0A const wrapper = shallow(%3CRunLengthEncodingTextarea /%3E);%0A const inst = wrapper.instance();%0A wrapper.setState(%7B%0A value: f... |
70d791031ace1c871283a6210297850e002c5840 | Fix typo (capitalization) in `autolaunch.js` | build-support/build-opts.js | build-support/build-opts.js | const execSync = require('sync-exec')
const { env } = process
const production = !!env.production
const src = './src'
const dest = env.dest || './dist'
const noGlobals = !!env.noGlobals // don't generate globals bundle
const noMap = !!env.noMap // don't generate .map files
const codap = !!env.codap // include CODAP-spe... | JavaScript | 0.009079 | @@ -1384,9 +1384,9 @@
auto
-L
+l
aunc
|
9a813fbbc2953616a614acb957ec140f1a373509 | fix test | test/unit/angular/directive/slide.unit.js | test/unit/angular/directive/slide.unit.js | describe('ionSlide directive', function() {
beforeEach(module('ionic'));
it('should add and remove itself from parent ctrl', inject(function($compile, $rootScope) {
var parent = $compile('<ion-scroll><ion-slide-box>' +
'<ion-slide>Hello</ion-slide>' +
'</ion-... | JavaScript | 0.000001 | @@ -693,26 +693,22 @@
ide.
-scope().$broadcast
+triggerHandler
('$d
|
b0504dab9172f8857c06079cc573de26f3ce679b | false to be false | test/unit/js/service/name-service.spec.js | test/unit/js/service/name-service.spec.js | define(
[
'angular-mocks',
'js/app',
'js/service/name-service'
],
function() {
describe('NameService', function() {
beforeEach(module('ng-boilerplate'));
var NameService;
beforeEach(inject(function (_NameService_) {
NameService = _NameService_;
}));
describ... | JavaScript | 0.999998 | @@ -733,18 +733,28 @@
hould fa
-i
l
+se be false
', funct
@@ -770,35 +770,36 @@
expect(
-tru
+fals
e).to.equal(fals
|
6adcc7e5c1071a84114eaaaf9c67aa6adcb1fa1e | remove util | lib/inspectors/res.js | lib/inspectors/res.js | var https = require('https');
var http = require('http');
var net = require('net');
var url = require('url');
var tls = require('tls');
var extend = require('util')._extend;
var util = require('../util');
var WhistleTransform = util.WhistleTransform;
var rules = require('../rules');
var agent = new https.Agent();
func... | JavaScript | 0.99933 | @@ -2043,26 +2043,17 @@
%09%09%09%09
-function showError
+%0A%09%09%09%09%09if
(err
@@ -2313,53 +2313,16 @@
%09%09%09%09
-%7D%0A%09%09%09%09%09if (err) %7B%0A%09%09%09%09%09%09return showError(err)
+%09return;
%0A%09%09%09
@@ -2536,16 +2536,16 @@
socket%0A
-
%09%09%09%09%09
@@ -2547,16 +2547,36 @@
%09%09 ... |
b8b4d55314aaa7c55e7c9bd87f86a56587b9bf2b | check git repository globlally | bin/utils.js | bin/utils.js | #!/usr/bin/env node
module.exports = function (_console) {
'use strict';
return (function (console) {
var childProcess = require('child_process'),
Promise = require('promise');
require('colors');
return {
checkGitRepoExistence: checkGitRepoExistence,
... | JavaScript | 0 | @@ -1188,16 +1188,287 @@
var
+check = childProcess.spawnSync('git',%5B'branch'%5D),%0A err = check.stderr.toString().trim(),%0A res;%0A%0A if (err) %7B%0A showError(err);%0A process.exit(1);//exit process with code error%0A %7D%0A%0... |
f94df159df14d883aa32d619b05a2654a3a5244d | add jquery input mask to vendor dep | project/app/vendor.js | project/app/vendor.js | 'use strict';
// jquery
require('jquery');
require('bootstrap');
require('availity-uikit');
require('select2');
require('velocity');
require('moment');
require('bootstrap-datepicker');
// utils
require('lodash');
// angular
require('angular');
require('angular-sanitize');
require('angular-ui-router');
// availity
r... | JavaScript | 0 | @@ -174,24 +174,53 @@
atepicker');
+%0Arequire('jquery.inputmask');
%0A%0A// utils%0Ar
|
a3a9af1c8059d40a773e8157b57e3a65f1ee3007 | Fix scroll event handling | app/containers/home.js | app/containers/home.js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPokemons, resetPage } from '../actions/pokemons';
import { Strings } from '../constants';
import Button from '../components/bootstrap/button';
import Loader from '../components/loader';
import Col from '../components/bootst... | JavaScript | 0.000001 | @@ -457,16 +457,107 @@
onent %7B%0A
+ constructor () %7B%0A super();%0A%0A this.scrollEvent = this.handleScroll.bind(this);%0A %7D%0A%0A
compon
@@ -617,39 +617,27 @@
', this.
-handleScroll.bind(this)
+scrollEvent
);%0A t
@@ -729,24 +729,84 @@
setPage());%0A
+ window.removeEventListener('scroll', th... |
be170a3a152ad1a973bded415bd9370d7eaf8800 | remove requiredParams commentId | config/routes.js | config/routes.js | 'use strict'
module.exports = function (mongoose, express, app, db) {
const jwt = require('jsonwebtoken')
, multer = require('multer')
, utils = require('../lib/utils')()
, config = require('../config/config')
, UserController = require('../controllers/user')(mongoose, config, db)
... | JavaScript | 0 | @@ -1653,43 +1653,8 @@
d?',
- utils.requiredParams('commentId'),
Com
|
f35b61bdad0014d3c8f76e2030c6c2b5a26cefeb | clear cache | biz/webui/lib/data.js | biz/webui/lib/data.js | var iconv = require('iconv-lite');
var zlib = require('zlib');
var MAX_REQ_SIZE = 128 * 1024;
var MAX_RES_SIZE = 256 * 1024;
var TIMEOUT = 10000;
var MAX_LENGTH = 512;
var MIN_LENGTH = 256;
var count = 0;
var ids = [];
var data = {};
var proxy, binded, timeout, interval, util;
function disable() {
proxy.removeListene... | JavaScript | 0.000001 | @@ -1086,15 +1086,16 @@
if (
+--
len
---
%3C
+=
MIN
|
b3caff0d541f4ca1a563a46e249ca2fea8bbb891 | Rebuild for deployment | build/public/sa-tracking.js | build/public/sa-tracking.js | 'use strict';
var events = [];
var requestInterval = 5000;
window.addEventListener('click', function(e) {
e = event || window.event;
events.push(processEvent(e));
});
var processEvent = function(e) {
// Event attributes
var eventProps = ['type', 'timeStamp'];
// Event target attributes
var targetP... | JavaScript | 0 | @@ -691,27 +691,109 @@
%7D;%0A%0Avar
-PostRequest
+ajax = %7B%7D;%0A%0Aajax.postUrl ='http://sextant-ng-b.herokuapp.com/api/0_0_1/data';%0A%0Aajax.createXHR
= funct
@@ -806,17 +806,24 @@
%7B%0A
-var xhr =
+try %7B%0A return
new
@@ -847,68 +847,126 @@
;%0A
-var url = 'http://sextant-ng-b.herokuapp.com/api... |
da23f7520d4d728e9909f808594e17cc2060b5d5 | Change mongodb server name | config/server.js | config/server.js | // config used by server side only
const NODE_SERVER_PORT = 3000;
const NODE_SERVER_HOST = '127.0.0.1';
module.exports = {
// used by Store (server side)
apiBaseUrl: `http://${NODE_SERVER_HOST}:${NODE_SERVER_PORT}/api/v1`,
// used by Store (server and client side)
ajaxBaseUrl: `http://${NODE_SERVER_HOST}:${NO... | JavaScript | 0.000001 | @@ -469,25 +469,18 @@
ngodb://
-127.0.0.1
+db
:27017/s
|
db42d03aaa9f9fc774dbedb05e0526e2c6e7a72c | Remove console.log() calls (2) | frontend/forms.js | frontend/forms.js | var config = require('./config');
var api = require('./api');
var i18n = require('i18next-client');
var forms = module.exports = {
collect: function($form) {
var data = {};
$form.find('[name]').each(function() {
var $field = $(this);
var value = $field.val();
va... | JavaScript | 0.00001 | @@ -2278,42 +2278,8 @@
) %7B%0A
- console.log($form, name);%0A
|
9778084649233f07c1ae2ab1da2909d348b14a27 | use removeSync in tests | tests/acceptance/addon-smoke-test-slow.js | tests/acceptance/addon-smoke-test-slow.js | 'use strict';
const co = require('co');
const Promise = require('rsvp').Promise;
const path = require('path');
const fs = require('fs-extra');
const spawn = require('child_process').spawn;
const chalk = require('chalk');
const runCommand = require('../helpers/run-command');
const ember = require('../helpers/ember');
... | JavaScript | 0.000001 | @@ -1163,16 +1163,20 @@
s.remove
+Sync
(path.jo
|
3169422fe09e4275706cebbcca564fb9e57e85cb | simplify demo component | tests/dummy/app/components/doc-section.js | tests/dummy/app/components/doc-section.js | import Component from '@glimmer/component';
import { guidFor } from '@ember/object/internals';
import { inject as service } from '@ember/service';
import { action } from '@ember/object';
export default class DocSection extends Component {
@service
flashMessages;
guid = guidFor(this);
get messageQueue() {
... | JavaScript | 0.000288 | @@ -492,35 +492,20 @@
add(
-Object.assign(%7B%7D,
+%7B ...
msgObj,
- %7B
ctx
@@ -518,17 +518,16 @@
.guid %7D)
-)
;%0A %7D%0A%7D%0A
|
7f36d068f25d24acd760b7f6e6ac8717558b37f1 | Update test site notification to use remote format. | tests/e2e/utils/test-site-notification.js | tests/e2e/utils/test-site-notification.js | export const testSiteNotification = {
id: 'test-notification-id',
title: 'Test notification title',
content: 'Test notification content',
dismissible: true,
dismiss_label: 'test dismiss site notification',
};
| JavaScript | 0 | @@ -134,16 +134,60 @@
ntent',%0A
+%09ctaURL: '',%0A%09ctaLabel: '',%0A%09ctaTarget: '',%0A
%09dismiss
@@ -210,10 +210,9 @@
miss
-_l
+L
abel
@@ -247,11 +247,51 @@
ation',%0A
+%09learnMoreURL: '',%0A%09learnMoreLabel: '',%0A
%7D;%0A
|
b81034cc132fbd8a07b39551b113e52ce595ffba | convert a to Link | site/component/utils.js | site/component/utils.js | import React from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import { getTagName, getAttributes, getChildren, isElement } from 'jsonml.js/lib/utils';
import toReactComponent from 'jsonml-to-react-component';
import VideoPlayer from './VideoPlayer';
import ImagePreview from './ImageP... | JavaScript | 0.999999 | @@ -1649,16 +1649,183 @@
%0A %5D,%0A
+ %5B(node) =%3E getTagName(node) === 'a', (node, index) =%3E%0A %3CLink to=%7BgetAttributes(node).href%7D key=%7Bindex%7D%3E%7BtoReactComponent(getChildren(node)%5B0%5D)%7D%3C/Link%3E%0A %5D,%0A
%5B(no
|
5b04a09781a3d2d233de30f527b15c2922ae51a1 | Remove obsolete console.log | app/controllers/kpi.js | app/controllers/kpi.js | 'use strict';
var boom = require('boom');
var config = require('../config');
var moment = require('moment');
var _ = require('lodash');
var centroids = require('../data/dsw-admin2-centroids.json');
var knex = require('knex')({
client: 'sqlite3',
connection: {
filename: `${config.baseDir}${config.db}`
}
});
/... | JavaScript | 0.000035 | @@ -316,87 +316,8 @@
);%0A%0A
-// Todo: Add month + year to sqlite, instead of substring extraction in query%0A%0A
modu
@@ -2914,49 +2914,8 @@
%7D);%0A
- console.log(dispenserCount);%0A
|
c2b04339a5a3c084855fe9bfe85dee724ed32941 | Update scripts.js (#394) | lib/loader/scripts.js | lib/loader/scripts.js | 'use strict';
const glob = require('glob');
const path = require('path');
const pgp = require('pg-promise');
const patterns = require('pg-promise/lib/patterns');
exports = module.exports = (instance, config) => new Promise((resolve, reject) => {
glob(`${config.scripts}/**/*.sql`, (err, files) => {
if (err) { re... | JavaScript | 0 | @@ -388,24 +388,8 @@
=%3E
-Promise.resolve(
file
@@ -872,11 +872,10 @@
%7D;%0A%7D))
-)
;%0A
|
07e26d2e76d732c1117115e0c2046e58bad99b5a | Fix up some ESLint complaints | src/pages/schema-edit/parse-schema.js | src/pages/schema-edit/parse-schema.js | /* eslint no-use-before-define: off */
var required = /\*$/;
function slugger(name) {
return name.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
}
function processChildren(children) {
return Object.keys(children).map(function(label) {
var details = children[label];
return {
k... | JavaScript | 0.002283 | @@ -875,17 +875,16 @@
var i;
-
%0A%0A //
@@ -1161,17 +1161,16 @@
return %5B
-
%7B%0A
@@ -1287,17 +1287,16 @@
ue%0A %7D
-
%5D.concat
@@ -1330,24 +1330,76 @@
cess(obj) %7B%0A
+ /* eslint-disable complexity, max-statements */%0A
var out
@@ -1455,86 +1455,8 @@
) %7B%0A
- /* eslint c... |
85e81d0327ed8f9954cf55b547f848f05721fbb5 | remove filtered if clause for generating configs | configBuilder.js | configBuilder.js | 'use strict'
var nconf = require('nconf');
module.exports = {ConfigBuilder: ConfigBuilder,
ConfigAPI: ConfigAPI};
function ConfigAPI(){
var cfg = new nconf.Provider();
cfg.argv().env();
this._configProvider = cfg;
}
ConfigAPI.prototype.get = function (key){
return this._configProv... | JavaScript | 0.000001 | @@ -1353,56 +1353,8 @@
%7B%7D;%0A
- if (appStartList.match(appKey + ';')) %7B%0A
@@ -2123,19 +2123,8 @@
pi;%0A
- %7D%0A%0A
|
c54f0e92f885e03c8e5a3b96355d0c3fda2b4736 | Add analysis endpoint to locations | lib/location/index.js | lib/location/index.js | var auth = require('../auth')
var createRouter = require('../model-router')
var Location = require('./model')
/**
* Expose `router`
*/
module.exports = createRouter({
model: Location
}, function (router, byId) {
/**
* Create
*/
router.post('/', auth.isLoggedIn, function (req, res) {
var coord = req... | JavaScript | 0 | @@ -1,37 +1,90 @@
-var auth = require('../auth')%0Avar
+import auth from '../auth'%0Aimport CommuterLocation from '../commuter-locations'%0Aimport
cre
@@ -93,26 +93,21 @@
eRouter
-= require(
+from
'../mode
@@ -119,13 +119,15 @@
ter'
-)%0Avar
+%0Aimport
Loc
@@ -136,18 +136,13 @@
ion
-= require(
+from
'./m
@... |
34e8cf2ae8becb74cbdc67f9b49376ada17faff4 | correct bug in the configuration loader. | config_loader.js | config_loader.js | var configuration = require('./configuration');
var machine=require('./machine');
var ALLOWED_COMMANDS = ["1ma","1sa","1tr","1mi","1po","1pm","2ma","2sa",
"2tr","2mi","2po","2pm","3ma","3sa","3tr","3mi","3po","3pm","4ma",
"4sa","4tr","4mi","4po","4pm","5ma","5sa","5tr","5mi","5po","5pm",
"6ma","6sa","6tr","6mi","6po","... | JavaScript | 0 | @@ -1370,24 +1370,65 @@
(key))%0A%09%09%09%7B%0A
+%09%09%09%09var cmd = %7B%7D;%0A%09%09%09%09cmd%5Bkey%5D=val%5Bkey%5D;%0A
%09%09%09%09machine.
@@ -1438,38 +1438,27 @@
ver.command(
-%7Bkey:val%5Bkey%5D%7D
+cmd
);%0A%09%09%09%09//con
@@ -1747,16 +1747,62 @@
s(key))%0A
+%09%09%09%7B%0A%09%09%09%09var cmd = %7B%7D;%... |
3b553ce16a0860ab4ec527b535739ec31de7584d | Add enterToClass and leaveToClass | lib/app/components/nuxt-child.js | lib/app/components/nuxt-child.js | import Vue from 'vue'
const transitionsKeys = [
'name',
'mode',
'css',
'type',
'enterClass',
'leaveClass',
'enterActiveClass',
'leaveActiveClass'
]
const listenersKeys = [
'beforeEnter',
'enter',
'afterEnter',
'enterCancelled',
'beforeLeave',
'leave',
'afterLeave',
'leaveCancelled'
]
e... | JavaScript | 0.000001 | @@ -142,19 +142,77 @@
%0A '
-leaveActive
+enterActiveClass',%0A 'leaveActiveClass',%0A 'enterToClass',%0A 'leaveTo
Clas
|
779072eba3221302195d9aed2f717d01b46db050 | Remove another use of _.chain and micro-optimize the new code | public/js/routes/line-overview/station-view.js | public/js/routes/line-overview/station-view.js | 'use strict';
var lodash = require( 'lodash' );
var _ = {
map: require( 'lodash.map' ),
pluck: require( 'lodash.pluck' )
};
var bind = require( 'lodash.bind' );
var View = require( 'ampersand-view' );
var stationTemplate = require( './station.tmpl' );
var StationView = View.extend({
autoRender: true,
tagNam... | JavaScript | 0.00004 | @@ -58,69 +58,265 @@
%7B%0A
-map: require( 'lodash.map' ),%0A pluck: require( 'lodash.pluck
+first: require( 'lodash.first' ),%0A groupBy: require( 'lodash.groupby' ),%0A map: require( 'lodash.map' ),%0A mapValues: require( 'lodash.mapvalues' ),%0A pluck: require( 'lodash.pluck' ),%0A unique: require( 'lodash.... |
57900799608726ced90d478fa6468bc36637a566 | replace process.kill with process.exit | lib/atom-ternjs-server-worker.js | lib/atom-ternjs-server-worker.js | var infer = require('tern/lib/infer');
var tern = require('tern/lib/tern');
var path = require('path');
var minimatch = require('minimatch');
var fs = require('fs');
var TERN_ROOT = path.resolve(__dirname, '../node_modules/tern');
var TernServer;
module.exports = TernServer = function () {
process.__tern = tern;
... | JavaScript | 0.000001 | @@ -2292,12 +2292,12 @@
ess.
-kill
+exit
();%0A
|
b117a9790756185265f164f861bfb0fc0768c0d6 | Add cleanup script when update. | extension/js/event.js | extension/js/event.js | var API_URL = 'http://fanyi.youdao.com/openapi.do?keyfrom=TransIt&key=597592531&type=data&doctype=json&version=1.1&q='
var PUSH_URL = 'http://trit.herokuapp.com/api/items'
var currentText = null;
// 推送词条到服务器
// TODO: 实现用户登录功能,将词条推送到自己的账户下
function pushItem(name, explaination) {
var params = Object.toQueryString({
... | JavaScript | 0 | @@ -2131,20 +2131,312 @@
);%0A%0A
-initOptions(
+// Cleanup scripts for release 1.2%0A// Will be removed in next release.%0Afunction clearCacheStuff(details) %7B%0A if (details.reason == 'update') %7B%0A localStorage.clear();%0A log('Cache cleaned up')%0A %7D;%0A%7D%0A%0AinitOptions(function() %7B%... |
84b66922e3623d4aa1c44b1a01017064fb5d2dfd | Update context-menu-manager-view.js | lib/context-menu-manager-view.js | lib/context-menu-manager-view.js | 'use babel';
import _ from 'underscore'
import {
$,
ScrollView
} from 'atom-space-pen-views'
import {
extMeuns,
removeMenuItem,
resetMenuItem,
getHiddenMenus,
getVisibleMenus,
toggleMenuLabel,
extraStrokesCfg
} from './menu-item-manager';
const menuSets = atom.contextMenu.itemSets
... | JavaScript | 0 | @@ -620,24 +620,25 @@
y label,
+
command,
selector
@@ -629,24 +629,25 @@
command,
+
selector
%22%3E%0A
@@ -638,16 +638,17 @@
selector
+.
%22%3E%0A
@@ -706,17 +706,16 @@
g%22%3EVisib
-b
le Menus
|
768e8722b20e92e2cb60c5575e5923f562cbf23a | Add missing agendas (#2219) | app/helpers/tickets.js | app/helpers/tickets.js | import { GetTicketsResponse } from "../middleware/walletrpc/api_pb";
export const TicketTypes = new Map([
[ GetTicketsResponse.TicketDetails.TicketStatus.UNKNOWN, "unknown" ],
[ GetTicketsResponse.TicketDetails.TicketStatus.UNMINED, "unmined" ],
[ GetTicketsResponse.TicketDetails.TicketStatus.IMMATURE, "immatur... | JavaScript | 0 | @@ -2118,24 +2118,291 @@
%7D%0A %5D,%0A
+ 7: %5B%0A %7B mask: 0x06, name: %22DCP0004%22, choices: %7B 0x02: %22no%22, 0x04: %22yes%22 %7D,%0A defaultChoice: %22abstain%22 %7D%0A %5D,%0A 8: %5B%0A %7B mask: 0x06, name: %22DCP0005%22, choices: %7B 0x02: %22no%22, 0x04: %22yes%... |
8b34ffce3fc749acd29613a2551d2e49112dadcd | fix non-cached scripts | site/static/homeLoad.js | site/static/homeLoad.js | /**
* Created by jljsj on 15/6/3.
*/
$(function() {
var loadData = [
"https://os.alipayobjects.com/rmsportal/PfhNcINWBAnMIWR.js", // easeljs-0.8.0.min.js
"https://os.alipayobjects.com/rmsportal/nGFyCGHAblMWsYE.js", // TweenMax.min.js
"/static/home.js",
"https://t.alipayobjects.com/images/T1CFtgXb0jX... | JavaScript | 0.00001 | @@ -47,16 +47,54 @@
ion() %7B%0A
+ $.ajaxSetup(%7B%0A cache: true%0A %7D);%0A
var lo
|
4828cda8c11231f047f1b52182d1f7d07df8e7b3 | update component list error messaging | lib/decorators/component-list.js | lib/decorators/component-list.js | import _ from 'lodash';
import dragula from 'dragula';
import { getComponentName, layoutAttr, editAttr, componentListProp, pageAreaClass, dropAreaClass, dragItemClass, dragItemUnsavedClass, refAttr, refProp } from '../utils/references';
import { getData, getSchema } from '../core-data/components';
import { getComponent... | JavaScript | 0 | @@ -5637,16 +5637,29 @@
Error(%60
+Template for
$%7BgetCom
@@ -5698,70 +5698,57 @@
ins
-child elements that are not components! All child elements
+non-component elements! All direct children
of
+a
comp
@@ -5757,17 +5757,16 @@
ent list
-s
must be
|
43a14ca683486dee1436204a57cb81d32b027e6d | fix nested call fn name | src/lib/helpers.js | src/lib/helpers.js | 'use strict';
var helpers = module.exports = {
now: function() {
return new Date().toISOString();
},
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
deepFreeze: function(obj) {
// Retrieve the property names defined on obj
var propNames = Object.ge... | JavaScript | 0.000204 | @@ -552,16 +552,24 @@
+helpers.
deepFree
|
1429c1a9ce38c31b3be226ff14501bfaba02ff48 | Change string concat to join() call | minifyAssets.js | minifyAssets.js | const compressor = require('node-minify');
const { readdirSync } = require('fs');
const { basename, join } = require('path');
const resources = (...dir) => join(...[__dirname, 'src', 'resources'].concat(dir));
const Logger = require(resources('js', 'Logger'));
function minifyAssets() {
const cssPath = resources('cs... | JavaScript | 0.000001 | @@ -643,29 +643,30 @@
ut:
-%60$%7B
+join(
cssPath
-%7D$%7B
+,
fileName
%7D%60,%0A
@@ -653,34 +653,33 @@
ssPath, fileName
-%7D%60
+)
,%0A%09%09%09output: %60$%7B
@@ -679,19 +679,23 @@
ut:
-%60$%7B
+join(
cssPath
-%7D
+, %60
$%7Bba
@@ -728,16 +728,18 @@
min.css%60
+),
%0A%09%09%7D);%0A%09
@@ -883,28 +883,29... |
89aa0b7f4282b0fb88110edd71a18b70b12ead74 | disable ship shadows | app/js/classes/Ship.js | app/js/classes/Ship.js | var states = {
resting: "resting",
inFlight: "inFlight"
};
class Ship {
constructor(options) {
this.mesh = options.mesh;
this.mesh.scale.set(options.scale, options.scale, options.scale);
this.mesh.rotateY(options.rotateY);
this.homePosition = options.position.clone();
this.mesh.position.copy(... | JavaScript | 0.000001 | @@ -464,39 +464,8 @@
%7D);%0A
- child.castShadow = true;%0A
|
aec0d4adc7cacce7c7607519727ca6b975c5aba4 | Remove unused functions. | source/viewer/domutils.js | source/viewer/domutils.js | OV.GetIntegerFromStyle = function (parameter)
{
return Math.round (parseFloat (parameter));
};
OV.GetDomElementExternalWidth = function (style)
{
let padding = OV.GetIntegerFromStyle (style.paddingLeft) + OV.GetIntegerFromStyle (style.paddingRight);
let border = OV.GetIntegerFromStyle (style.borderLeftWidt... | JavaScript | 0 | @@ -4001,1176 +4001,293 @@
.Add
-Select = function (parentElement, options)%0A%7B%0A let selectElement = OV.AddDomElement (parentElement, 'select');%0A for (let option of options) %7B%0A let optionElement = OV.AddDomElement (selectElement, 'option');%0A optionElement.value = option.value;%0A ... |
38c08287e3fed2106cdf26e8ce1819091c9184c3 | Add debug message to chromoting extension | remoting/client/extension/chromoting_tab.js | remoting/client/extension/chromoting_tab.js | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Message id so that we can identify (and ignore) message fade operations for
// old messages. This starts at 1 and is incremented for each new mess... | JavaScript | 0.000011 | @@ -2039,24 +2039,137 @@
Challenge;%0A%0A
+ console.log('connect request received: ' + chromoting.hostname + ' by ' +%0A chromoting.username);%0A%0A
// TODO(ga
@@ -2354,24 +2354,91 @@
ppAuth);%0A %7D
+ else %7B%0A console.log('ERROR: chromoting plugin not loaded');%0A %7D
%0A%0A document
|
98fdfaa864ddfeadf3cade0e936af38e387d49c2 | Add style mappings for LibreOffice footnotes and endnotes | lib/options-reader.js | lib/options-reader.js | exports.readOptions = readOptions;
var _ = require("underscore");
var standardOptions = exports._standardOptions = {
styleMap: [
"p[style-name='Normal'] => p:fresh",
"p.Heading1 => h1:fresh",
"p.Heading2 => h2:fresh",
"p.Heading3 => h3:fresh",
"p.Heading4 => h4:fresh... | JavaScript | 0 | @@ -862,32 +862,236 @@
%5D =%3E%22,%0A %0A
+ // LibreOffice%0A %22p%5Bstyle-name='Footnote'%5D =%3E p%22,%0A %22r%5Bstyle-name='Footnote anchor'%5D =%3E%22,%0A %22p%5Bstyle-name='Endnote'%5D =%3E p%22,%0A %22r%5Bstyle-name='Endnote anchor'%5D =%3E%22,%0A %0A
%2... |
52247e4ec3a72d633c8379f1156d310e1a1a5a37 | simplify fuzzy module spec | spec/fuzzy_module_spec.js | spec/fuzzy_module_spec.js | 'use strict';
var PO = require('pofile');
var chai = require('chai');
var expect = chai.expect;
chai.use(require('chai-fs'));
chai.use(require('chai-things'));
describe('extract strings', function () {
describe('from fuzzy JavaScript modules', function () {
function findString(str, items) {
re... | JavaScript | 0 | @@ -421,24 +421,25 @@
%7D%0A
+%0A
it('from
@@ -434,38 +434,36 @@
-it('from fuzzy example file',
+var po;%0A%0A beforeEach(
func
@@ -610,156 +610,18 @@
rr,
-po) %7B%0A //msgid extracted%0A expect(po.items).to.contain.a.thing.with.property('msgid', 'A strin... |
9e4ae655f3575062d99949a1e23509a8255832c4 | add logic for waiting on selected addresses | inbox.js | inbox.js | const binarySearchInsert = require('binary-search-insert')
module.exports = class Inbox {
/**
* The port manager manages the the ports. This inculdes creation, deletion
* fetching and waiting on ports
* @param {Object} opts
* @param {Object} opts.state
* @param {Object} opts.hypervisor
* @param {Ob... | JavaScript | 0 | @@ -708,50 +708,24 @@
ge)%0A
-%0A
-if (
this._
-waitingAddresses && this._w
+queueW
aiti
@@ -737,22 +737,16 @@
ress
-es.has
(message
.fro
@@ -745,166 +745,9 @@
sage
-.fromAddress)) %7B%0A this._waitingAddresses.delete(message.fromAddress)%0A binarySearchInsert(this._waitingAddressesQueue, message... |
90f0de99ada68fc0d877f2efe297538e733d9b56 | Remove warning against PR for release branch | bots/dangerfile.js | bots/dangerfile.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
const {danger, fail, message, warn} = require('danger');
const includes = require('lodash.includes');... | JavaScript | 0 | @@ -4479,598 +4479,8 @@
r &&
- isMergeRefStable) %7B%0A const title = ':grey_question: Base Branch';%0A const idea =%0A 'The base branch for this PR is something other than %60main%60. Are you sure you want to merge these changes into a stable release? If you are interested in backporting updates to an older rele... |
5ef38512dc6d4540f220e1a5fd7772ddd3d75c91 | implement theme for layout | source/Layout/Layout.js | source/Layout/Layout.js |
/**
* UI Layout Class
* @class UI.Layout
* @implements {Events, Options}
*/
UI.Layout = new Class({
Implements: [Events, Options],
/**
* Layout options
* @type {Object}
* @param {name} [name] layout
* @param {Object} [clss] Default component class
*/
options: {
name: 'layout',
clss: 'UI.Containe... | JavaScript | 0 | @@ -1914,16 +1914,102 @@
name);%0A%0A
+%09%09if (this.options.theme)%0A%09%09%09this.container.addClass('theme-' + this.options.theme);%0A%0A
%09%09opts.n
|
034178fdb4086ed0b203080d9839e8d4404b4061 | fix triggerStop call in audioIO | public/js/audioIO.js | public/js/audioIO.js | var WO = WO || {};
WO.audioIO = {
'mediaStream': "",
'source': "",
'songBuffer': "",
/****** Microphone Recording/Exporting ******/
//pass in our WO namespaced Recorder instance
recordMic : function(){
var navigator = window.navigator;
navigator.getUserMedia = (
navigator.getUserMe... | JavaScript | 0.000001 | @@ -2461,16 +2461,24 @@
%0A WO.
+appView.
transpor
|
b6220d2a2c3d683dee16725aece1e89062822795 | fix typo | public/js/scripts.js | public/js/scripts.js | $(document).ready(function() {
// setup page anchors and fullpage.js
var anchors = [];
$('.section').each(function(i) {
var gallery = $(this).attr('data-gallery');
anchors.push(gallery);
});
$('#fullpage').fullpage({
loopBottom: true,
loopTop: true,
controlArrows: false,
scrollingSpe... | JavaScript | 0.999991 | @@ -824,16 +824,22 @@
x + 1);%0A
+ %7D%0A
%7D);%0A%0A
|
164346b7fde27dfd17b808ae417fbb7afec8d422 | Ajuste no modal de avaliação | public/js/service.js | public/js/service.js | /*$(function () {
setInterval(searchServices(),5000);
function searchServices(){
$.ajax({
type: "GET",
url: "./ServiceController/searchServices",
dataType: "json",
success:function(data) {
// quando retornar com sucesso o ajax, o mesmo irá ... | JavaScript | 0.000001 | @@ -4665,32 +4665,76 @@
unction(data) %7B%0A
+ $('#modal').modal('close');%0A
|
641c89ff36d0fee6e1492ed24c0c630a68e76b43 | Fix missing semicolon in example code in index.js (#277) | templates/init/functions/index.js | templates/init/functions/index.js | var functions = require('firebase-functions');
// // Start writing Firebase Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.send("Hello from Firebase!");
// })
| JavaScript | 0.004036 | @@ -280,9 +280,10 @@
);%0A// %7D)
+;
%0A
|
313cd0dc20c86e97385a5ce1ad3744ff83c19045 | Remove binding of inspector to window, no dependencies between inspector windows anymore | templates/lively-dom-inspector.js | templates/lively-dom-inspector.js | /*
* # LivelyDomInspector
*/
'use strict';
import Morph from '../../lively4-core/templates/Morph.js';
import ExplorableDomInspector from '../inspector/explorableDomInspector.js';
// Lively DOM Inspector class
export default class DomInspector extends Morph {
initialize() {
this.windowTitle = 'Lively DOM I... | JavaScript | 0 | @@ -341,39 +341,36 @@
inspect() %7B%0A
-window.
+let
inspector = new
@@ -442,16 +442,83 @@
ion'));%0A
+ this._bindEvents(inspector);%0A %7D%0A %0A _bindEvents(inspector) %7B%0A
this
@@ -531,24 +531,33 @@
ClickEvents(
+inspector
);%0A this.
@@ -574,20 +574,25 @@
rEvents(
-this
+inspector
);%0A... |
04937f1196afa638516ca1b56ceaa636fd435c67 | Remove stray console.logs where I don't wants | index.js | index.js | var nconf = require('nconf');
var bodyParser = require('body-parser');
var dataUriToBuffer = require('data-uri-to-buffer');
var express = require('express');
var app = express();
var getPhrase = require("./lib/getPhrase");
// var fs = require("fs");
var Canvas = require("canvas");
var Image = Canvas.Image;
nconf.arg... | JavaScript | 0 | @@ -303,17 +303,16 @@
Image;%0A%0A
-%0A
nconf.ar
@@ -764,43 +764,8 @@
0;%0A%0A
- console.log(%22font size%22, size);%0A%0A
ct
@@ -836,62 +836,8 @@
);%0A%0A
- // console.log(info.width, img.width - pad, size);%0A%0A
wh
|
a39e71bb2334e962ab5e1cc117270d7b06ab82ac | Remove unused argument | index.js | index.js | 'use strict'
function chainable(init, f) {
var c = (arg) => (next) => (next === undefined) ? arg : c(f(arg, next), f);
return c(init);
}
module.exports = chainable;
| JavaScript | 0.000009 | @@ -109,19 +109,16 @@
g, next)
-, f
);%0A ret
|
7e75f20e69c76bbcf9747f48adca4c13504d50ab | set debug value from aggsy.function to aggsy | index.js | index.js | var balanced = require('balanced-match')
var debug = require('debug')('aggsy.function')
var leading = /^[\s,]+/
var findName = /^[\w.]+(?=:)/
var defaultReducers = require('./reducers')
function aggsy (query, options, data) {
debug(query)
if (Object.prototype.toString.call(options) === '[object Array]') {
da... | JavaScript | 0.000006 | @@ -73,17 +73,8 @@
ggsy
-.function
')%0A%0A
|
bd4f4b70e3a1e61ef85327f0808d791d6ad1cc2e | Update index.js | index.js | index.js | var path = require('path');
var fs = require('path');
var through = require('through2');
function toBase64(options) {
var opts = options || {};
var rule = opts.rule || /url\([^\)]+\)/g;
var initFileType = opts.filetype || 'css';
var baseDir = opts.baseDir || __dirname;
return through.obj(function ... | JavaScript | 0.000001 | @@ -31,36 +31,34 @@
r fs = require('
-path
+fs
');%0Avar through
@@ -1503,8 +1503,9 @@
oBase64;
+%0A
|
387c2389deb88cf0e5a00d0aa1d26bc8e7982fc2 | Add attachment | index.js | index.js | var express = require('express');
var app = express();
var url = require('url');
var request = require('request');
var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.set('port', (process.env.PORT || 9001));
app.get('/', function(req, res) {
... | JavaScript | 0 | @@ -454,14 +454,21 @@
xt:
-%22meow%22
+req.body.text
,%0A
|
9ccc667c103ce37c4bff142a1106ae95cf032055 | add cross browser listener | index.js | index.js | var Emitter = require('emitter');
//TODO: we could encapsulte an id into the postMessage message
//Example
// message = [...];
// message._id = "...";
//
// but it'd mean that it could only receive messages from an other post component.
/**
* Expose 'PostEmitter'
*/
module.exports = PostEmitter;
/**
* PostE... | JavaScript | 0.000001 | @@ -25,16 +25,222 @@
mitter')
+,%0A%09%09attach = window.addEventListener ? 'addEventListener' : 'attachEvent',%0A%09%09detach = window.removeEventListener ? 'removeEventListener' : 'detachEvent',%0A%09%09prefix = attach !== 'addEventListener' ? 'on' : ''
;%0A%0A//TOD
@@ -748,95 +748,72 @@
ta;%0A
+%0A
%09%09
-//avo... |
a6a2656aa0a1dc646f9a58eef2cb3cee7610ee3f | unsubscribing from events | index.js | index.js | module.exports = Discovery
var debug = require('debug')('torrent-discovery')
var DHT = require('bittorrent-dht/client') // empty object in browser
var EventEmitter = require('events').EventEmitter
var extend = require('xtend')
var inherits = require('inherits')
var parallel = require('run-parallel')
var reemit = requi... | JavaScript | 0.99858 | @@ -1115,16 +1115,40 @@
ernally?
+%0A self._destroyers = %5B%5D
%0A%0A if (
@@ -1420,16 +1420,35 @@
t) %7B%0A
+ addDestroyer(self,
reemit(
@@ -1484,29 +1484,37 @@
rning'%5D)
+)
%0A
+listen(
self.dht
.on('pee
@@ -1505,20 +1505,18 @@
self.dht
-.on(
+,
'peer',
@@ -1521,16 +1521,22 @@
, onPeer
+, sel... |
9714711301e5628cb077605e61895900f9d57bdd | Refactor using pluginable makers | index.js | index.js | import cx from 'classnames'
const makeBlockStyles = ({
active,
block,
className,
disabled,
hidden,
loading,
modifier,
...props
}) => {
const modifiers = (block && modifier) ? modifier.split(/\s/).map((item) => (`${block}--${item}`)).join(' ') : false
const states = {
'is-active': active,
'i... | JavaScript | 0 | @@ -41,125 +41,99 @@
lock
-Styles = (%7B%0A active,%0A block,%0A className,%0A disabled,%0A hidden,%0A loading,%0A modifier,%0A ...props%0A%7D) =%3E %7B%0A
+ = (block) =%3E block%0A%0Aconst makeOriginalClass = (_, %7B className %7D) =%3E className%0A%0A
const m
+akeM
odif
@@ -149,11 +149,11 @@
lock
- &&
+... |
0a519de7d0d7b7cf9c037539bfb746d00d90b6f9 | use bind over anon function | index.js | index.js | var babelify = require('babelify');
var brfs = require('brfs');
var browserify = require('browserify');
var chalk = require('chalk');
var del = require('del');
var gutil = require('gulp-util');
var less = require('gulp-less');
var merge = require('merge-stream');
var plumber = require('gulp-plumber');
var shell = requi... | JavaScript | 0.000002 | @@ -614,73 +614,49 @@
r',
-function (e) %7B%0A%09%09%09%09gutil.log('Browserify Error', e.message);%0A%09%09%09%7D
+gutil.log.bind(gutil, 'Browserify Error')
)%0A%09%09
|
e6e0f18fcc05b24e8521a9a08271c6e938c24cdd | clean up | index.js | index.js | /*!
* method-names <https://github.com/jonschlinkert/method-names>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
'use strict';
/**
* **Example:**
*
* ```js
* var methods = require('method-names');
* console.log(methods(require('chai')));
* //=> [ 'AssertionError',... | JavaScript | 0.000001 | @@ -85,16 +85,22 @@
(c) 2014
+-2015,
Jon Sch
@@ -110,22 +110,8 @@
kert
-, contributors
.%0A *
@@ -141,16 +141,17 @@
License
+.
%0A */%0A%0A'u
@@ -174,32 +174,67 @@
%0A *
-**Example:**%0A *%0A * %60%60%60js
+%60%60%60js%0A * // Based on the %60_.functions%60 method from Lo-Dash.
%0A *
@@ -279,20 +279,8 @@
%... |
9446c403a5a6c538fc38e8ecbef8b3ca6ccddfe6 | Make things work in tandem with windows nodewebkit | index.js | index.js | var fs = require('fs');
var path = require('path');
var ncp = require('ncp').ncp;
var async = require('async');
var merge = require('merge');
var NodeWebkitBrowser = function(baseBrowserDecorator, args) {
baseBrowserDecorator(this);
var customOptions = args.options || {};
this._start = function(url) {
var ... | JavaScript | 0 | @@ -1897,36 +1897,42 @@
_dirname + '/../
-.bin
+nodewebkit
/nodewebkit.exe'
@@ -1926,16 +1926,19 @@
dewebkit
+/nw
.exe')%0A
|
247be27f31bf8c037cb4a8de057a20e7c25c446f | Simplify with else if | index.js | index.js | module.exports = function expressGAuth(options) {
const passport = require('passport')
const GoogleStrategy = require('passport-google-oauth20').Strategy
const defaults = {
allowedDomains: [],
allowedEmails: [],
publicEndPoints: [],
logger: console,
unauthorizedUser: (req, res, next, user) => ... | JavaScript | 0.000009 | @@ -1776,30 +1776,16 @@
%7D else
-%7B%0A
if (req.
@@ -1860,19 +1860,15 @@
-
next()%0A
-
@@ -1874,34 +1874,32 @@
%7D else %7B%0A
-
pass
@@ -1936,26 +1936,24 @@
-
config.googl
@@ -1988,18 +1988,16 @@
-
(err, us
@@ -2019,34 +2019,32 @@
... |
22c62f46efbc9b37c12f81411beb5abd5c464058 | Add File Extension filters | helpers/swig.js | helpers/swig.js | 'use strict';
//////////////////////////////
// Variables
//////////////////////////////
var swig = require('swig'),
fs = require('fs-extra');
var ibmColors = fs.readJSONSync(process.cwd() + '/bower_components/ibm-colors/ibm-colors.json');
//////////////////////////////
// Pattern Swig Tag
//////////////////////... | JavaScript | 0 | @@ -111,16 +111,44 @@
swig'),%0A
+ path = require('path'),%0A
fs =
@@ -2592,16 +2592,469 @@
';%0A%7D);%0A%0A
+//////////////////////////////%0A// File Types%0A//////////////////////////////%0Avar getFileExtension = function getFileExtension(file) %7B%0A return path.extname(file).replace('.', '');%0A%7D%0A%0A... |
35622f8d6f2e95cde15a160835df78c06ad01306 | Fix poke5566 and support ivs and moves | providers/poke5566.js | providers/poke5566.js | const _ = require('lodash');
const qs = require('qs');
const request = require('request-promise');
const moment = require('moment');
const debug = require('debug')('provider:poke5566');
const Provider = require('./provider.js');
const pokemonNames = require('../pokemon_names.js');
class Poke5566 extends Provider {
... | JavaScript | 0 | @@ -274,16 +274,69 @@
es.js');
+%0Aconst pokemonMoves = require('../pokemon_moves.js');
%0A%0Aclass
@@ -1258,45 +1258,64 @@
: 's
-tar=1; _ga=GA1.2.407918477.1474598298
+s=poke5566; iv=0; star=1; _ga=GA1.2.645874393.1474666335
;',%0A
@@ -1851,17 +1851,16 @@
Ids, o.i
-d
) == -1)
@@ -2152,19 +2152,16 @@
entry_.t
-... |
bde18c1dbc968426eb0f532511ffb26154cf6310 | Fix stylus includes | lib/plugins/stylus.js | lib/plugins/stylus.js | var _ = require('underscore'),
fu = require('../fileUtil'),
nib = require('nib'),
path = require('path'),
stylus = require('stylus'),
stylusImages = require('stylus-images');
function compile(name, context, callback) {
fu.readFile(name, function(err, data) {
if (err) {
callback(err);
... | JavaScript | 0 | @@ -403,21 +403,22 @@
i
-mport
+nclude
s = styl
@@ -426,21 +426,22 @@
Config.i
-mport
+nclude
s %7C%7C %5B%5D,
@@ -1064,21 +1064,22 @@
;%0A%0A i
-mport
+nclude
s.forEac
@@ -1090,21 +1090,22 @@
nction(i
-mport
+nclude
) %7B%0A
@@ -1123,21 +1123,22 @@
import(i
-mport
+nclude
);%0A %7D
|
9b3b9c7a57354ae92ff3ec16cb5f258491b04920 | Revert "Retry queries up to 10 times on SQLite" | models/index.js | models/index.js | /* jslint node: true */
const fs = require('fs')
const path = require('path')
const sequelizeNoUpdateAttributes = require('sequelize-noupdate-attributes')
const Sequelize = require('sequelize')
const sequelize = new Sequelize('database', 'username', 'password', {
dialect: 'sqlite',
storage: 'data/juiceshop.sqlite',... | JavaScript | 0 | @@ -334,36 +334,8 @@
alse
-,%0A retry: %7B%0A max: 10%0A %7D
%0A%7D)%0A
|
fab018ff1e72f731687ebb1d56f0647e0e39b386 | Fix version test | source/prophecy_test.js | source/prophecy_test.js | "use strict";
const should = require('chai').should();
const Prophecy = require('../prophecy-dist');
describe('Prophecy Engine', function() {
it('has the expected version numbers', () => {
Prophecy.version.major.should.equal(0);
Prophecy.version.minor.should.equal(1);
});
});
| JavaScript | 0.000002 | @@ -284,9 +284,9 @@
ual(
-1
+2
);%0A
|
0fe7516c9e03fd2eeb2b9df20daebf8b0962e671 | Update check-state-pension.js | lib/projects/check-state-pension.js | lib/projects/check-state-pension.js | {
"id":1,
"name":"Check your State Pension",
"description": "Gives users a forecast of what their State Pension could be worth when they reach retirement age so that they can plan for their retirement.",
"theme": "Retirement Provision",
"location": "Newcastle",
"phase":"beta",
"phase_modifier":"Private",
... | JavaScript | 0 | @@ -639,14 +639,14 @@
ate
-B
+b
eta
-S
+s
tart
@@ -701,14 +701,14 @@
lic
-B
+b
eta
-P
+p
redi
|
bc931259838b73a9ee2cbeb0ac6d59162b26c8cd | Fix Issue #242: Fix image paths in dist build. | front_end/webpack.dist.config.js | front_end/webpack.dist.config.js | /*
* Webpack development server configuration
*
* This file is set up for serving the webpack-dev-server, which will watch for changes and recompile as required if
* the subfolder /webpack-dev-server/ is visited. Visiting the root will not automatically reload.
*/
'use strict';
var webpack = require('webpack');
va... | JavaScript | 0 | @@ -607,16 +607,67 @@
main.js'
+,%0A publicPath: '/static/build/campaign-manager/'
%0A %7D,%0A
|
ef42add4aaef23bb24da1b23a042a05819b401e1 | Fix hinting sugestions | couple.js | couple.js | /* jshint node: true */
'use strict';
var mbus = require('mbus');
var queue = require('rtc-taskqueue');
var cleanup = require('./cleanup');
var monitor = require('./monitor');
var detect = require('./detect');
var findPlugin = require('rtc-core/plugin');
var throttle = require('cog/throttle');
var CLOSED_STATES = [ 'c... | JavaScript | 0.000053 | @@ -174,87 +174,8 @@
');%0A
-var detect = require('./detect');%0Avar findPlugin = require('rtc-core/plugin');%0A
var
@@ -1521,79 +1521,8 @@
n);%0A
- var queuedCandidates = %5B%5D;%0A var sdpFilter = (opts %7C%7C %7B%7D).sdpfilter;%0A
va
@@ -1561,28 +1561,8 @@
ve;%0A
- var offerTimeout;%0A
va
@@ -1590,57 +... |
fbdbde9d243a242b8c2aa52252d0ec90870cbe46 | fix a wrong env variable | controllers/rocketChat.js | controllers/rocketChat.js |
const express = require('express');
const router = express.Router();
const api = require('../api');
const authHelper = require('../helpers/authentication');
router.use(authHelper.authChecker);
router.get('/Iframe', function(req, res, next) {
return api(req).get('/rocketChat/login/' + res.locals.currentUser._id).... | JavaScript | 0.000866 | @@ -376,16 +376,20 @@
KET_CHAT
+_URI
;%0A
|
a3c7e685dc565851445254fce89968dc93cf3cca | use spred op. | packages/gluestick-config-legacy/index.js | packages/gluestick-config-legacy/index.js | const path = require('path');
// Handle ESM and CommonJS.
const getProp = (source, name) => {
return source.default ? source.default[name] : source[name];
};
module.exports = () => {
const applicationServer = require(
path.join(process.cwd(), 'src/config/application.server.js'),
);
const webpackAdditions ... | JavaScript | 0 | @@ -785,37 +785,50 @@
ig;%0A
-Object.assign(
+config.resolve.alias = %7B
%0A
+...
config.r
@@ -847,16 +847,19 @@
,%0A
+...
Object.k
@@ -1053,25 +1053,25 @@
%7D, %7B%7D),%0A
-)
+%7D
;%0A config
|
0aa948b537ea9a50241dff81ce100da712766778 | Add codes on getting and setting editor's value | public/app/snippet.js | public/app/snippet.js | angular.module('app.snippet', [])
.controller('SnippetController', function($scope) {
var colorCount = 0;
var editor = ace.edit("editor");
editor.setTheme("ace/theme/solarized_dark");
editor.session.setMode("ace/mode/javascript");
// use Ace's Range instead of the window's
var Range = ace.require('ace/... | JavaScript | 0 | @@ -3109,17 +3109,408 @@
%7D%0A
-
+%0A // To extract snippets from editor, do this: editor.getValue();%0A console.log('Text in editor =========%3E ', editor.getValue());%0A %0A // To repopulate editor: editor.setValue( %3C saved snippet %3E );%0A // We can play this on the borwser conso... |
63fd8cca30271bffa65ebee38af6b6d8c37ed68c | fix the onclick area | frontend/src/components/Tiers.js | frontend/src/components/Tiers.js | import React, { Component } from 'react';
import StripeCheckout from 'react-stripe-checkout';
import formatCurrency from '../lib/format_currency';
import UsersList from '../components/UsersList';
import AsyncButton from './AsyncButton';
import filterCollection from '../lib/filter_collection';
import DonationPicker fro... | JavaScript | 0.000001 | @@ -2058,16 +2058,59 @@
ckout'%3E%0A
+ %3Cdiv className='Tiers-button'%3E%0A
@@ -2122,16 +2122,18 @@
peKey ?%0A
+
@@ -2163,16 +2163,18 @@
+
token=%7B(
@@ -2240,16 +2240,18 @@
+
stripeKe
@@ -2272,24 +2272,26 @@
+
+
name=%7Bgroup.
@@ -2296,16 +... |
44a1864ee7d7d05d1ce8f18eeaa360d50d4cf9d4 | use generic instance resource for organization account stores | lib/resource/AccountStoreMapping.js | lib/resource/AccountStoreMapping.js | 'use strict';
var InstanceResource = require('./InstanceResource');
var utils = require('../utils');
function AccountStoreMapping() {
AccountStoreMapping.super_.apply(this, arguments);
}
utils.inherits(AccountStoreMapping, InstanceResource);
function AccountStoreClassFactory(data, dataStore) {
var Class = null;
... | JavaScript | 0 | @@ -528,24 +528,101 @@
ory');%0A %7D%0A%0A
+ if (/%5C/organization/.test(data.href)) %7B%0A Class = InstanceResource;%0A %7D%0A%0A
if (!Class
|
bdf8adcc33306777a85bbbe5a65fca5e225ad9ad | correct sheet | b82_web_0.js | b82_web_0.js | // See README file.
function show_products(json) {
var bgn_row = '';
var end_row = '<br/>';
var bgn_title = '<b>';
var end_title = '</b><br/>';
var bgn_price = '<b>Price: ';
var end_price = ' DDK.</b><br/>';
var bgn_description = '';
var end_description = '<br>';
var bgn_photo = '<img src="';
... | JavaScript | 0.000006 | @@ -2316,474 +2316,8 @@
%7B%0A%0A
- // https://docs.google.com/a/cadm.b82.dk/spreadsheet/ccc?key=0Akm30OX8lPv2dEVvZ2xWaE5Zb3VnbUFwRU1hQWN0MHc#gid=0%0A // 0Akm30OX8lPv2dEVvZ2xWaE5Zb3VnbUFwRU1hQWN0MHc%0A //document.write('%3Cscript src=%22https://spreadsheets... |
546734327418860ba6449d067b64cd3843502d22 | make debug button smaller | packages/idyll-layouts/src/blog/styles.js | packages/idyll-layouts/src/blog/styles.js |
export default ({ maxWidth }) => `
body {
margin: 0;
}
.idyll-root {
box-sizing: border-box;
margin: 0 auto;
padding: 60px 0;
margin-bottom: 60px;
}
.section {
padding: 0 10px;
margin: 0 auto;
}
.article-header {
width: 600px;
max-width: 90vw;
margin-bottom: 45px;
}
.inset {
max-width: 400p... | JavaScript | 0.000007 | @@ -1277,17 +1277,17 @@
width: 3
-5
+0
px;%0A he
@@ -1293,17 +1293,17 @@
eight: 3
-5
+0
px;%0A ma
@@ -1364,17 +1364,17 @@
adius: 1
-7
+5
px;%0A cu
|
d409e0154e9f78477d8c690c20472dd5e3b867a9 | Change font | ifeel.js | ifeel.js | feelings = new Mongo.Collection( "feelings" );
if (Meteor.isClient) {
var maxNumberOfContainers = 9;
var backgroundPhotos = []
function now() { return +(new Date()); }
function rand() { return Math.round( Math.random() * 1000000 ); }
Session.set( "Images", [] );
Session.setDefault( "WordList", [] );
... | JavaScript | 0.000001 | @@ -4575,14 +4575,64 @@
%22, %22
-Times%22
+HelveticaNeue-Light%22) %0A .attr( %22font-weight%22, 300
)%0A
|
1eb5588137f1ebe2183b92292ddd26eb946e736b | Set new expectations for uploaded files | tools/grunt/tasks/check.js | tools/grunt/tasks/check.js | module.exports = function(grunt) {
var shared = require("../lib.js").init(grunt);
var _ = grunt.utils._;
var http = require("http");
var async = require("async");
var url = require("url");
grunt.registerInitTask("check", "Different checks (versions, pre-release, post-release, ...)", function(target) {
var don... | JavaScript | 0 | @@ -2449,11 +2449,13 @@
age=
-864
+77760
00%22;
@@ -2537,16 +2537,124 @@
t files%0A
+%09%09%09if (/%5C/apps%5C/%7C%5C/sdk%5C/v%5Cd(?:%5C.beta)?%5C//.test(URL)) %7B%0A%09%09%09%09headers%5B%22cache-control%22%5D = %22max-age=86400%22;%0A%09%09%09%7D%0A
%09%09%09retur
|
c9bb248df015f65c5cac4e52795a4bb44a796ceb | fix document gc context | lib/services/garbageCollector.js | lib/services/garbageCollector.js | 'use strict';
const
OneHour = 3600000,
OneDay = OneHour * 24,
Promise = require('bluebird'),
Request = require('kuzzle-common-objects').Request;
function GarbageCollector(kuzzle) {
this.timer = null;
this.init = function garbageCollectorInit() {
this.run();
return Promise.resolve(this);
};
t... | JavaScript | 0.000001 | @@ -934,16 +934,27 @@
this.run
+.bind(this)
, OneHou
@@ -1106,16 +1106,27 @@
this.run
+.bind(this)
, kuzzle
|
54a24205bf2c5fa3c3b224c152b403bb24ef7dfd | improve regexp for mj include | packages/mjml-core/src/includeExternal.js | packages/mjml-core/src/includeExternal.js |
import fs from 'fs'
const includes = /<mj-include\s+path='(.*\.mjml)'\s*(\/>|>\s*<\/mj-include>)/g
const getContent = input =>
input
.replace(/<mjml>[\n\s\t]+<mj-body>[\n\s\t]+<mj-container>/, '')
.replace(/<\/mj-container>[\n\s\t]+<\/mj-body>[\n\s\t]+<\/mjml>/, '')
export default mjml => mjml.replace(inc... | JavaScript | 0.000003 | @@ -52,17 +52,20 @@
%5Cs+path=
-'
+%5B'%22%5D
(.*%5C.mjm
@@ -66,17 +66,20 @@
*%5C.mjml)
-'
+%5B'%22%5D
%5Cs*(%5C/%3E%7C
@@ -341,17 +341,16 @@
h) =%3E %7B%0A
-%0A
const
@@ -627,231 +627,7 @@
ent%0A
+
%7D)%0A
-%0A/*%0Aconst ret = translate(%60%0A %3Cmjml%3E%0A %3Cmj-body%3E%0A %3Cmj-container%3E%0A ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.