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 |
|---|---|---|---|---|---|---|---|
d9ec2d1398102ce70ef897b02848b057daf3de0f | add table | public/javascripts/mosura/app.js | public/javascripts/mosura/app.js | angular.module('mosura', ['ngRoute', 'ngResource', 'ngCookies']);
angular.module('mosura').controller('mainController', function ($scope, $resource, $cookieStore) {
var issuesResource = $resource('/jira/issues/:status');
$scope.data = {};
$scope.columns = [];
function loadColumns() {
$resource('/config/co... | JavaScript | 0.000042 | @@ -284,24 +284,272 @@
Columns() %7B%0A
+ $scope.allGood = true;%0A console.table(%5B%0A %5B'username', $scope.jira.username%5D,%0A %5B'password', 'password for ' + $scope.jira.username + ' ;)'%5D,%0A %5B'baseUrl', $scope.jira.baseUrl%5D,%0A %5B'component', $scope.jira.component%5D%0A %5D)... |
45d7497765ae04b7b115156d4ecfd4011223f3b1 | add clean task | gulpfile.js | gulpfile.js | /*jshint node:true*/
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var dest = 'extension';
var base = {base: 'src/'};
gulp.task('copy', () => gulp.src([
'src/manifest.json',
'src/icon_128.jpg',
'src/*.css'], base)
.pipe(gulp.dest(dest)));
gulp.task('html', () => gulp.src('src/*.h... | JavaScript | 0.999918 | @@ -932,8 +932,57 @@
lib'%5D);%0A
+%0Agulp.task('clean', () =%3E require('del')(dest));%0A
|
c6f06826674d5e46fe41a11d223000efc1009618 | Fix webpack tasks for mattermost.js | gulpfile.js | gulpfile.js | 'use strict';
var gulp = require('gulp');
var prettify = require('gulp-jsbeautifier');
var babel = require('gulp-babel');
var webpack = require('webpack-stream');
var named = require('vinyl-named');
var changed = require('gulp-changed');
var esformatter = require('gulp-esformatter');
var del = require('del');
var elec... | JavaScript | 0 | @@ -1340,20 +1340,39 @@
browser'
+, 'webpack:webview'
%5D);%0A
-
%0Agulp.ta
@@ -2321,32 +2321,306 @@
'dist/'));%0A%7D);%0A%0A
+gulp.task('webpack:webview', function() %7B%0A return gulp.src('src/browser/webview/mattermost.js')%0A .pipe(named())%0A .pipe(webpack(%7B%0A output: %7B%0A filename: '%5... |
34e17cfad586f44e0b02c540a9aca23ceaec6607 | update initialParams import to match project style | mocha_test/initialParams.js | mocha_test/initialParams.js | var initialParams = require('../lib/internal/initialParams');
var expect = require('chai').expect;
describe('initialParams', function() {
it('should curry any bound context to the wrapped function', function() {
var passContext = function(args, cb) {
cb(this);
};
// call bind after wrappi... | JavaScript | 0 | @@ -1,11 +1,14 @@
-var
+import
initial
@@ -14,26 +14,21 @@
lParams
-= require(
+from
'../lib/
@@ -50,17 +50,16 @@
lParams'
-)
;%0D%0Avar e
@@ -405,24 +405,16 @@
alParams
-.default
(passCon
@@ -688,24 +688,24 @@
ntextTwo);%0D%0A
+
preBind
@@ -723,16 +723,8 @@
rams
-.default
(pre
|
420a6747492d2b07f3fbf06b92c1ab603936c149 | build error fix (reverting backend to es5) | gulpfile.js | gulpfile.js | var ts = require('gulp-typescript');
var gulp = require('gulp');
var zip = require('gulp-zip');
var runSequence = require('run-sequence');
var jsonModify = require('gulp-json-modify');
var exec = require('child_process').exec;
var tsBackendProject = ts.createProject('backend/tsconfig.json');
gulp.task('build-backend',... | JavaScript | 0 | @@ -262,24 +262,16 @@
roject('
-backend/
tsconfig
|
7f0be18f4dd04923232092bb9ed31c303304d27c | update gulpfile | gulpfile.js | gulpfile.js | var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
// Load all gulp plugins automatically
// and attach them to the `plugins` object
var plugins = require('gulp-load-plugins')();
// Temporary solution until gulp 4
// https://github.com/gulpjs/gulp/issues/355
var runSequence = require('ru... | JavaScript | 0.000001 | @@ -5473,17 +5473,26 @@
lint:js'
-,
+%5D,%0A
'compre
@@ -5494,17 +5494,16 @@
ompress'
-%5D
,%0A
|
761a67c25e59eec487b6609f0e515a5eb3e9fbd0 | Remove unused variables | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var browserify = require('gulp-browserify');
var jade = require('gulp-jade');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gu... | JavaScript | 0.000007 | @@ -383,50 +383,8 @@
);%0A%0A
-var dist = './dist';%0Avar src = './src';%0A%0A
// d
|
5d0bc22aa1c2c936954503207e6a6b7e1c5bbdc7 | update sass-compilation task to unclude postcss | gulpfile.js | gulpfile.js | /******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
******************************************************/
var gulp = require('gulp'),
p... | JavaScript | 0.000601 | @@ -1582,16 +1582,38 @@
Error))%0A
+ .pipe(postcss()),%0A
.pip
|
7ffd3a9a4f0aa3229dcc1127bdec3ec2d93b3ba6 | Tweak theme banner | gulpfile.js | gulpfile.js | 'use strict';
// Dependencies
var gulp = require('gulp');
var del = require('del');
var gutil = require('gulp-util');
var zip = require('gulp-zip');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var browserify = require('browserify');
var babelify = require('babelify');
var source = requ... | JavaScript | 0 | @@ -1037,53 +1037,8 @@
' +%0A
- 'Tags: minimal, backbonejs %5Cn' +%0A
|
bc42bd9f81d58a9eaba8ad133f220a87da108dbe | add initial gulp-mocha support | gulpfile.js | gulpfile.js | /**
*
* Material Design Styleguide
* Copyright 2015 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
*
* https://www.apache.org/licenses/LIC... | JavaScript | 0 | @@ -4492,24 +4492,167 @@
s'%7D));%0A%7D);%0A%0A
+// Run Unit Tests%0Agulp.task('mocha', function () %7B%0A return gulp.src('./test/*.js', %7B read: false %7D)%0A .pipe(mocha(%7Breporter: 'list'%7D))%0A%7D);%0A%0A
// Clean Out
|
2bf1daca6f4496d00d8865ee30265bb3398bf20a | add comment | gulpfile.js | gulpfile.js | /*global require */
var pkg = require('./package.json'),
gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
merge = require('event-stream').merge,
del = require('del');
var jshint_options = require('jshint/src/cli').loadConfig('.jshintrc');
delete jshint_options.dirname;
$.banner = ... | JavaScript | 0 | @@ -1,10 +1,11 @@
/*
+
global r
@@ -2276,32 +2276,53 @@
.dest('dist')),%0A
+ // make html%0A
gulp.src
|
908ca0747fefaf1180959355646bb46c3d4c4770 | Create a task to remove the anonymous parallel task in the console | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var connect = require('gulp-connect');
var sass = require('gulp-sass');
var plumber = require('gulp-plumber');
var pug = require('gulp-pug'); // formerly Jade
var del = require('del');
var path = require('path');
var git = require('simple-git');
// Configuration
// =======================... | JavaScript | 0.000219 | @@ -3070,34 +3070,15 @@
sk('
-serve', gulp.series('build
+connect
', g
@@ -3105,17 +3105,70 @@
watch))
-)
+;%0Agulp.task('serve', gulp.series('build', 'connect'));
%0A%0A%0A// De
|
39c5375c4ea69af6d1719d3c5911ad0f4f7e1f4e | fix hot reload hotOnly set to true | config/webpack/development.js | config/webpack/development.js | // Note: You must restart bin/webpack-dev-server for changes to take effect
const merge = require('webpack-merge');
const sharedConfig = require('./shared.js');
const { settings, output } = require('./configuration.js');
module.exports = merge(sharedConfig, {
devtool: '#eval-source-map',
stats: {
errorDetail... | JavaScript | 0.004338 | @@ -750,16 +750,35 @@
hot:
+ true,%0A hotOnly:
true%0A
|
a991acf59422f4fa9875ef55113058b4ab9d505b | Use PhantomJS as default browser for karma | gulpfile.js | gulpfile.js | "use strict";
var fs = require("fs");
var url = require("url");
var path = require("path");
var gulp = require("gulp");
var less = require("less");
var jspm = require("jspm");
var karma = require("karma");
var rimraf ... | JavaScript | 0 | @@ -3068,22 +3068,25 @@
rs %7C%7C %5B%22
-Chrome
+PhantomJS
%22%5D%0A %7D,
|
392beb7e4bca0d56a9240143bfce55daf99b87d7 | use GET params instead of hash | static/javascripts/search-box.js | static/javascripts/search-box.js | $(document).ready(function () {
$('#search-box input').keydown(function(event) {
if (event.keyCode == 13) {
window.location = '/en-US/core/search/#q=' + $('#search-box input').val();
return false;
}
});
var search_cache = {};
$('#search-box input').autocomplete({
minLength: 1,
append... | JavaScript | 0.000001 | @@ -155,10 +155,15 @@
rch/
-#q
+?search
=' +
|
e94febd1577590d85f12887e82e09ff205937ab3 | tweak 'test' task deps | gulpfile.js | gulpfile.js | // Build file.
// Usage:
//
// $ gulp
//
// See: https://github.com/prose/prose/issues/702
// Require dependencies.
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var shell = require('gulp-shell');
var browserify = require('browserify');
var rename = require('g... | JavaScript | 0.000012 | @@ -2320,16 +2320,195 @@
;%0A%7D);%0A%0A%0A
+%0A// Concatenate vendor scripts into dist/vendor.js%0Agulp.task('vendor', function() %7B%0A gulp.src(paths.vendorScripts)%0A .pipe(concat('vendor.js'))%0A .pipe(gulp.dest('dist/'));%0A%7D)%0A%0A%0A
// Build
@@ -2539,16 +2539,50 @@
-tests',
+ %5B'templates', 'oauth', '... |
3065bf0c58592adf4b8f60e3ed117b63be19cf20 | Make the enter key go to panels. | static/js/settings_panel_menu.js | static/js/settings_panel_menu.js | var settings_panel_menu = (function () {
var exports = {};
exports.make_menu = function (opts) {
var main_elem = opts.main_elem;
var hash_prefix = opts.hash_prefix;
var load_section = opts.load_section;
var curr_li = main_elem.children('li').eq(0);
var self = {};
self.show = function () {
... | JavaScript | 0.000002 | @@ -829,16 +829,61 @@
_right,%0A
+ enter_key: self.enter_panel,%0A
@@ -1175,32 +1175,298 @@
n true;%0A %7D;%0A%0A
+ self.enter_panel = function () %7B%0A var panel = self.get_panel();%0A var sel = 'input:visible:first,button:visible:first,select:visible:first';%0A v... |
15303547345f09bf2bc08e5b13c154a817e2a983 | fix jade path | gulpfile.js | gulpfile.js | 'use strict'
const gulp = require('gulp')
const sass = require('gulp-sass')
const postcss = require('gulp-postcss')
const sugarss = require('sugarss')
const autoprefixer = require('autoprefixer')
const jade = require('gulp-jade')
const rename = require('gulp-rename')
gulp.task('sss', () => {
return ... | JavaScript | 0.000001 | @@ -706,23 +706,16 @@
lp.src('
-src/**/
index.ja
|
da0de2915e32402d65702824a9a8167f05388713 | change gulp script to order files for concat | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('build', function () {
return gulp
.src('./src/**/*.js')
.pipe(concat('mutant-ng-translate.js'))
.pipe(gulp.dest('./build/'));
});
gulp.task('watch', function () {
gulp.watch('./src/**/*.js', ['build'... | JavaScript | 0 | @@ -126,16 +126,39 @@
.src(
+%5B'./src/translate.js',
'./src/*
@@ -164,16 +164,17 @@
**/*.js'
+%5D
)%0D%0A
|
07eed5b6047b8b8fc2fcbb518ca320d6cd64b897 | Add setting about server port | gulpfile.js | gulpfile.js | /**
* Created by dell on 2015/7/20.
* This is gulp init
*/
(function(){
"use strict";
var gulp = require('gulp');
var loadPlugins = require('gulp-load-plugins');
var plugins = loadPlugins();
var Browsersync = require('browser-sync').create();
var del = require('del');
v... | JavaScript | 0 | @@ -533,16 +533,104 @@
init(%7B%0D%0A
+ port: 3005,%0D%0A ui: %7B%0D%0A port: 3006%0D%0A %7D,%0D%0A
|
771270dacbba1a50a512b9eacb4a3390da5a107f | fix gulp error | gulpfile.js | gulpfile.js | var path = require('path');
var gulp = require('gulp');
var sass = require('gulp-sass');
var process = require('process');
var gutil = require('gulp-util');
var webpack = require('webpack');
var clean = require('gulp-clean');
var packager = require('electron-packager');
var childProcess = require('child_process');
var... | JavaScript | 0 | @@ -748,16 +748,18 @@
assets/*
+/*
*'%5D)%0A
@@ -901,16 +901,18 @@
n-sudo/*
+/*
*'%5D)%0A
|
2c316e56b2fa059e9914d4ffc21644a28262f522 | Remove `build-darwin` task from `build-all` task | gulpfile.js | gulpfile.js | 'use strict';
const cp = require('child_process');
const gulp = require('gulp');
const babel = require('gulp-babel');
const sourcemaps = require('gulp-sourcemaps');
const packager = require('electron-packager');
const path = require('path');
const install = require('gulp-install');
const zip = require('gulp-zip');
con... | JavaScript | 0.000022 | @@ -4460,24 +4460,8 @@
tey'
-, 'build-darwin'
%5D);%0A
|
87358a35ed768711777988ee39b1ab2071a2f4fb | Add comments. | console/server/node-server.js | console/server/node-server.js | const MONGOOSE_CONSOLE_DEFAULT_PORT = 8080;
const PROMETHEUS_DEFAULT_CONFIGURATION_PATH = '/configuration/prometheus.yml';
const CONFIGURATION_DIRECTORY_NAME = "configuration";
const PROMETHEUS_CONFIGURATION_FILENAME = "prometeus";
const PROMETHEUS_CONFIGURATION_EXTENSION = ".yml";
var express = require('express');... | JavaScript | 0 | @@ -1270,24 +1270,88 @@
tml');%0A%7D);%0A%0A
+// NOTE: Saving file on 'CONFIGURATION_DIRECTORY_NAME' folder. %0A
app.post('/s
@@ -2275,32 +2275,85 @@
ingFilePath)) %7B%0A
+ // NOTE: Creating file if it doesn't exist. %0A
fileWrit
|
175a2de181e04bc04a8923124fd0e148df87ac93 | Add NPM_MOD_DIR to gulpfile.js | gulpfile.js | gulpfile.js | /**
* @license MIT License
*
* Copyright (c) 2015 Tetsuharu OHZEKI <saneyuki.snyk@gmail.com>
* Copyright (c) 2015 Yusuke Suzuki <utatane.tea@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | JavaScript | 0.000002 | @@ -2144,16 +2144,80 @@
./js/');
+%0Aconst NPM_MOD_DIR = path.resolve(__dirname, './node_modules/');
%0A%0A/**%0A *
@@ -2887,41 +2887,29 @@
h.re
-lative(__dirname, './node_modules
+solve(NPM_MOD_DIR, '.
/han
@@ -3496,49 +3496,37 @@
ath.
-relative(__dirname, './node_modules/.bin/
+join(NPM_MOD_DIR, './.bin', '
tsc... |
f611a5a81452d57c6aa0780d2d5db73f65c2525d | Remove gray background for past events | aspc/static/js/course_calendar.js | aspc/static/js/course_calendar.js | var year = new Date().getFullYear();
var month = new Date().getMonth();
var day = new Date().getDate();
var CURRENT_PAGE = window.location.pathname;
var add_to = '+ add to schedule'
var remove_from = '- remove from schedule';
function init() {
$('#calendar').weekCalendar({
businessHours: {
star... | JavaScript | 0.000001 | @@ -1483,360 +1483,8 @@
%7D,%0A
- eventRender: function(calEvent, $event) %7B%0A if (calEvent.end.getTime() %3C new Date().getTime()) %7B%0A $event.css(%22backgroundColor%22, %22#aaa%22);%0A $event.find(%22.time%22).css(%7B%0A %22backgroundColor%22: %... |
86be5a270ecfd2f03568b99ed4a74db983348518 | Fix Cannot read property in credentialcounter | js/app/directives/credentialcounter.js | js/app/directives/credentialcounter.js | /**
* Nextcloud - passman
*
* @copyright Copyright (c) 2016, Sander Brand (brantje@gmail.com)
* @copyright Copyright (c) 2016, Marcos Zuriaga Miguel (wolfi@wolfi.es)
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms o... | JavaScript | 0 | @@ -1550,24 +1550,108 @@
total = 0;%0A
+%09%09%09%09%09%09if(!scope.vault.hasOwnProperty('credentials'))%7B%0A%09%09%09%09%09%09%09return;%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A
%09%09%09%09%09%09angula
|
8f557712ac9db54932e85fac1ebff1a0abd51482 | Add golden tests back to the "gulp watch" set of test tasks. | gulpfile.js | gulpfile.js | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
require('source-map-support').install();
var clangFormat = require('clang-format');
var formatter = require('gulp-c... | JavaScript | 0 | @@ -3184,16 +3184,31 @@
st.unit'
+, 'test.golden'
%5D); //
@@ -3312,16 +3312,31 @@
st.unit'
+, 'test.golden'
%5D);%0A%7D);%0A
|
2c405ea8d43a7bac72fb4f88b14c68f838be5de1 | Update build system | gulpfile.js | gulpfile.js | var fs = require('fs'),
gulp = require('gulp'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
replace = require('gulp-replace'),
merge = require('merge2'),
shell = require('gulp-shell'),
concat = require('gulp-concat');
var version = fs.readFileSync('src/quarky.js', {encoding:'utf8'}).match(... | JavaScript | 0.000001 | @@ -1062,27 +1062,8 @@
c( %5B
-'./src/quarky.js',
'./n
@@ -1092,16 +1092,35 @@
rc/W.js'
+, './src/quarky.js'
%5D )%0A%09%09%09.
|
922704e013f64b3f3800020b9bd0ecb67c8e9d0a | update batch test (#345) | automl/test/batch_predict.test.js | automl/test/batch_predict.test.js | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | JavaScript | 0 | @@ -1009,26 +1009,26 @@
'TEN
-223862766438449152
+000000000000000000
0';%0A
@@ -1151,22 +1151,18 @@
t();%0A%0A
-before
+it
('should
@@ -1166,591 +1166,240 @@
uld
-verify the model is deployed', async () =%3E %7B%0A const projectId = await client.getProjectId();%0A const request = %7B%0A name: client.... |
8332c6f2056758649d95e1f613cef86f3e040bb3 | Add missing done. | katas/es6/language/promise/creation.js | katas/es6/language/promise/creation.js | // 76: Promise - creation
// To do: make all tests pass, leave the assert lines unchanged!
describe('a promise can be created in multiple ways', function() {
describe('creation fails when', function() {
it('using `Promise` as a function', function() {
function callPromiseAsFunction() {
Prom... | JavaScript | 0.000004 | @@ -948,32 +948,36 @@
o it', function(
+done
) %7B%0A const
|
837f0f1a08d41f09c7cff899322f8b85625e49ca | Fix for Index Exchange ad tags to wrap creative in iframe (#8138) | ads/ix.js | ads/ix.js | /**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | JavaScript | 0 | @@ -3143,19 +3143,21 @@
onst adm
-Div
+Frame
= docum
@@ -3179,11 +3179,14 @@
nt('
-div
+iframe
');%0A
@@ -3195,36 +3195,118 @@
-admDiv.setAttribute('
+const w = global.IndexArgs.slots%5B0%5D.width;%0A const h = global.IndexArgs.slots%5B0%5D.height;%0A let
style
-',
+ =
'po
@@ -3312,17 +3312,16 ... |
8061b85f63c7494328ce5cc1c8e1708fc16e20fe | add support for update() method | source/api/http.js | source/api/http.js | import { baseUrl } from "config"
import store from "store"
function headers() {
let base = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
const { tokens, currentToken } = store.getState()
if (tokens.get(currentToken)) {
base['Authorization'] = 'Bearer ' + tokens.get(currentTo... | JavaScript | 0 | @@ -907,16 +907,266 @@
)%0A %7D,%0A%0A
+ update: (path, record) =%3E %7B%0A return fetch(%60$%7BbaseUrl%7D$%7Bpath%7D%60, %7B%0A method: %22PUT%22,%0A body: JSON.stringify(record),%0A mode: 'cors',%0A headers: %7B%0A ...headers()%0A %7D%0A %7D)%0A .then(handleError)%0A .th... |
afffed68a24e5768f309f6a99faca5060b7c5c8d | Add allowHighlanderDeactivate prop to Group | source/ui/Group.js | source/ui/Group.js | /**
_enyo.Group_ provides a wrapper around multiple elements. It enables the
creation of radio groups from arbitrary components supporting the
[GroupItem](#enyo.GroupItem) API.
*/
enyo.kind({
name: "enyo.Group",
published: {
/**
If true, only one GroupItem in the component list may be active at
a given ti... | JavaScript | 0 | @@ -342,16 +342,112 @@
: true,%0A
+%09%09//* If true, an active highlander item may be deactivated%0A%09%09allowHighlanderDeactivate: false,%0A
%09%09//* Th
@@ -1196,16 +1196,76 @@
tive
-.
+,
%0A%09%09%09%09//
+ as long as %60allowHighlanderDeactivate%60 is false. Otherwise,
the
@@ -1269,16 +1269,23 @@
the only
... |
b3c44a194cb437e1e4667ad05067892bbf030efc | Implement the closure-generating click handler generator | public/js/Board.js | public/js/Board.js | function Board(submitBtn, options) {
this.submitBtn = submitBtn;
this.options = options;
}
Board.prototype.prepareBoard = function() {
this.hideButton(this.submitBtn);
var board = this;
this.options.forEach(function(option) {
option.addCallBack(board.makeOnClick(option));
});
};
Board.... | JavaScript | 0.000001 | @@ -327,41 +327,201 @@
ype.
-makeOnClick = function(option) %7B%0A
+sendMove = function(move) %7B%0A%0A%7D;%0A%0ABoard.prototype.makeOnClick = function(option) %7B%0A var move = option.value;%0A var board = this;%0A return function() %7B%0A board.sendMove(move);%0A %7D;
%0A%7D;%0A
|
cbc685a189ddaebe54e5491bbe8d4c022c65e105 | remove dom node after delete | public/js/books.js | public/js/books.js | $(document).ready(function(){
$('#add').click(function(){
$('#thumb').remove();
$('#bookTitle, #authors, #ISBN').val('');
$('.bookInfo').addClass('hide');
})
$('#isbnSearch').click(function(){
$('#thumb').remove();
var isbn = $('#ISBN').val();
var title;
var authors;
var publisher;
var publishe... | JavaScript | 0.000001 | @@ -2151,35 +2151,32 @@
unction()%7B%0A%09%09%09%09%09
-//
console.log(text
@@ -2175,37 +2175,12 @@
log(
-textStatus + ' saved: '+ data
+'OK'
);%0A%09
@@ -2213,19 +2213,16 @@
)%7B%0A%09%09%09%09%09
-//
console.
@@ -2221,34 +2221,31 @@
console.log(
-textStatus
+'ERROR'
);%0A%09%09%09%09%7D,%0A%09%09
@@ -2532,1... |
a548e86c0b628b870b80c8eb95eff12a335f5d35 | Update crooz.js | public/js/crooz.js | public/js/crooz.js | "use strict";
var socket;
var mapper;
function main() {
socket = io();
mapper = Mapper.init(document.getElementById('mapCard'));
socket.on('connected', function (users) {
socket.emit('subscribe', users[0]);
console.log(users);
});
socket.on('newPacket', function (packet) {
if... | JavaScript | 0 | @@ -216,24 +216,27 @@
users%5B0%5D);%0A
+//
cons
@@ -318,501 +318,161 @@
-if(!packet) %7Breturn%7D%0A console.log(packet);%0A mapper.addPackets(%5Bpacket%5D);%0A console.log(mapper._packets);%0A mapper.render();%0A var car = mapper.car;%0A document.getElementB... |
cd7d65e48289ba63a083f82f5de34b5a9c35c0ca | Fix formatting | web/google-analytics.js | web/google-analytics.js | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('cr... | JavaScript | 0.057169 | @@ -9,21 +9,31 @@
n(i,
+
s,
+
o,
+
g,
+
r,
+
a,
+
m)
-%7B
+ %7B%0A
i%5B'G
@@ -58,22 +58,31 @@
ct'%5D
-=r;
+ = r;%0A
i%5Br%5D
-=
+ =
i%5Br%5D
+
%7C%7C
+
func
@@ -91,26 +91,35 @@
on()
+
%7B%0A
+
(i%5Br%5D.q
-=
+ =
i%5Br%5D.q
+
%7C%7C
+
%5B%5D).
@@ -137,19 +137,27 @@
nts)
+%0A
%... |
99d9cdaaeb3083da8e3896adc9b1b133e0627aa3 | Remove error bars when 1 iteration is used. | landscapesim/static/js/column_chart.js | landscapesim/static/js/column_chart.js | function createColumnChart(vegtype, chartDivID, xAxisCategories) {
$(function () {
$('#'+chartDivID).highcharts({
chart: {
type: 'column',
width:308,
height:250,
marginBottom: 100,
marginLeft:58,
marg... | JavaScript | 0 | @@ -4858,32 +4858,181 @@
lse,%0A %7D)%0A
+%0A // If the model is only run for one iteration, error bars don't make sense since there is no uncertainty.%0A if (iterations %3E 1) %7B%0A
cc.addSe
@@ -5030,32 +5030,36 @@
cc.addSeries(%7B%0A
+
name
@@ -5074,16 +5074,20 @... |
153a17af724229e6b2626c28ece8351d8136c7ae | bring in websocket reconnect code from 'release' branch | ui/redux/actions/websocket.js | ui/redux/actions/websocket.js | import * as ACTIONS from 'constants/action_types';
import { getAuthToken } from 'util/saved-passwords';
import { doNotificationList } from 'redux/actions/notifications';
let socket = null;
export const doSocketConnect = () => dispatch => {
const authToken = getAuthToken();
if (!authToken) {
console.error('Unab... | JavaScript | 0 | @@ -183,16 +183,37 @@
= null;%0A
+let retryCount = 0;%0A%0A
export c
@@ -435,16 +435,49 @@
n;%0A %7D%0A%0A
+ function connectToSocket() %7B%0A
if (so
@@ -497,16 +497,18 @@
) %7B%0A
+
socket.c
@@ -517,19 +517,18 @@
se();%0A
-%7D%0A%0A
+
socket
@@ -535,79 +535,335 @@
= n
-ew WebSocket(%60wss:/... |
d3fc6f58e3e0196947e3a1f1450520d6ce3f2718 | fix lint on public/js/slide.js | public/js/slide.js | public/js/slide.js | /* eslint-env browser, jquery */
/* global serverurl, Reveal, RevealMarkdown */
import { preventXSS } from './render'
import { md, updateLastChange, removeDOMEvents, finishView } from './extra'
require('../css/extra.css')
require('../css/site.css')
const body = preventXSS($('.slides').text())
window.createtime = wi... | JavaScript | 0.000003 | @@ -784,22 +784,22 @@
if (
-source
+Object
.hasOwnP
@@ -805,17 +805,30 @@
Property
-(
+.call(source,
key)) %7B%0A
@@ -1810,31 +1810,30 @@
%7C%7C %7B%7D%0A%0Aif (
-options
+Object
.hasOwnPrope
@@ -1835,17 +1835,31 @@
Property
-(
+.call(options,
'spotlig
@@ -1981,31 +1981,30 @@
%7D)%0A%7D%0A%0Aif (
-opt... |
21e4d5dd8637c8abbd0f3dc3dcf6ab4febf137a4 | Enable sourcemaps for webpack | webpack.config.babel.js | webpack.config.babel.js | import path from 'path';
import webpack from 'webpack';
import { NODE_ENV, isDevelopment } from './gulp/util/env.js';
const outputFileName = '[name].js';
let options = {
entry: {
vendor: [ 'jquery', './vendor.js' ],
main: './main.js'
},
output: {
filename: outputFileName,
path: __dirname + '/de... | JavaScript | 0 | @@ -408,35 +408,8 @@
%7D,%0A
- // watch: isDevelopment,%0A
de
@@ -1486,24 +1486,47 @@
yJsPlugin(%7B%0A
+ sourceMap: true,%0A
compre
|
dcaddf16684e501b8245b4e6e29e8d043c18573d | Fix file-loader mappings in production | webpack.config.babel.js | webpack.config.babel.js | import path from 'path';
import process from 'process';
import webpack from "webpack";
import ManifestPlugin from "webpack-manifest-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
import TerserPlugin from "terser-webpack-plugin";
// C... | JavaScript | 0.999999 | @@ -7480,16 +7480,57 @@
: './',%0A
+ esModule: false,%0A
|
9079a838a2af84c1e71fb3ce1d73010367d5af65 | Fix demo file paths | webpack/config.babel.js | webpack/config.babel.js | import { join } from 'path'
import webpack from 'webpack'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import HtmlWebpackPlugin from 'html-webpack-plugin'
const PORT = 3000
const PRODUCTION = process.env.NODE_ENV === 'production'
// const LOCAL_IDENT_NAME = PRODUCTION ? '[hash:base64:5]' : '[name]__[loca... | JavaScript | 0.000001 | @@ -368,17 +368,16 @@
TION ? '
-/
' : %60htt
|
890bed0a4567b33feaff491e483b573c9b9f3162 | add json loader | webpack/config/babel.js | webpack/config/babel.js | /**
* Copyright (c) 2015-present, goreutils
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const ecmaScriptFileExtensions = require('../../src/pckg/ecmaScriptFileExtensions');
const goreP... | JavaScript | 0.000001 | @@ -1248,24 +1248,98 @@
%0A %7D,%0A
+ %7B%0A test: /%5C.json$/,%0A loader: 'json',%0A %7D,%0A
%5D,%0A
|
d616213e0a459f5b9b89e55faf30e0eaacdaee98 | Remove unused Event | scripts/background/main.js | scripts/background/main.js | /**
* Chrome-Extension-Template v1.0
*
* @author Dustin Breuer <dustin.breuer@thedust.in>
* @version 1.0
* @category chrome-extension
* @licence MIT http://opensource.org/licenses/MIT
*/
window.addEventListener("load", function () {
/**
* An Array that contains all connected Ports
* @type {PortLi... | JavaScript | 0.000002 | @@ -2764,141 +2764,8 @@
%7D%0A%0A
- chrome.extension.onRequest.addListener(function () %7B%0A console.info(%22chrome.extension.onRequest(%25O)%22, arguments);%0A %7D);%0A%0A
@@ -2903,16 +2903,35 @@
aded(%25O)
+ :: ready to inject
%22, oDeta
@@ -3303,32 +3303,41 @@
file : '
+/scripts/
ba... |
b9567457cafba676ebd659e25919e2831a3186f4 | clones the input object | weightedRandomPicker.js | weightedRandomPicker.js | function WeightedRandomPicker (weightedValues) {
this.weightedValues = weightedValues || {};
this.randomPick = function(options){
var options = options || {};
var uniq = options.uniq || false;
var times = options.times || 1;
var picks = [];
if (uniq && times > this.getKeys().length) {
t... | JavaScript | 0.999999 | @@ -24,17 +24,24 @@
Picker (
-w
+initialW
eightedV
@@ -52,21 +52,127 @@
s) %7B%0A%0A
-this.
+//clones the initialWeightedValues:%0A //set default to empty object for the JSON lib clone trick to work%0A var
weighted
@@ -180,17 +180,24 @@
alues =
-w
+initialW
eightedV
@@ -208,16 +208,129 @@
s %7C%7C %7B%7D;
... |
0eda3f7a23d491ddaf0a96d8802ac7ccfe38b6dd | Use getView instead view | web/app/view/DevicesController.js | web/app/view/DevicesController.js | /*
* Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com)
*
* 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 req... | JavaScript | 0 | @@ -4432,20 +4432,25 @@
ge(this.
-v
+getV
iew
+()
.getSele
|
9a06ecb45112aaa8ba4b3240ccfba152ebc44231 | Change GA tracking id | popup/lib/ga.js | popup/lib/ga.js | var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-57493072-3']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})(); | JavaScript | 0 | @@ -55,17 +55,17 @@
7493072-
-3
+4
'%5D);%0A%0A(f
|
764453430cf53ab5b89ba63752e580cd9b4a288e | Fix locale selector in New RB | indico/modules/rb_new/client/js/common/config/reducers.js | indico/modules/rb_new/client/js/common/config/reducers.js | /* This file is part of Indico.
* Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN).
*
* Indico is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 3 of the
* License... | JavaScript | 0.000043 | @@ -1343,27 +1343,16 @@
teToken,
- languages,
tileser
@@ -1403,16 +1403,65 @@
.data);%0A
+ const %7Blanguages%7D = action.data;%0A
|
49d6af216b040c05da5bb731436913401b8880cc | stop it from getting caught in a loop | easyreply.user.js | easyreply.user.js | // ==UserScript==
// @name easyreply
// @namespace http://reddit.com/u/undergroundmonorail
// @author monorail
// @version 0.1
// @description easily respond to a user's last message in se chat
// @copyright MIT
// @include *://chat.stackoverflow.com/*
// @include *://chat.stackexchange.com/*
// @include *://chat.meta.... | JavaScript | 0.000001 | @@ -1165,32 +1165,8 @@
%09%09%7D%0A
-%09%09%09%09if (prev.length) %7B%0A%09
%09%09%09%09
@@ -1181,22 +1181,16 @@
= prev;%0A
-%09%09%09%09%7D%0A
%09%09%09%7D%0A%09%09%09
|
af251a6a8c7d0e71a6f75dbff1e5edc9c37888da | Remove Interval | web/www/js/index.js | web/www/js/index.js | var activeView = "";
$.get("http://127.0.0.1:1338/views", function (views) {
$('.nav-sidebar').html("");
views.forEach(function(view){
$(".nav-sidebar").append(`<li data-view="` + view.view + `"><a href="#" onclick="loadData('` + view.view + `')">` + view.name + `</a></li>`);
});
loadData(views[0].view);
});... | JavaScript | 0 | @@ -1364,52 +1364,4 @@
j;%0A%7D
-%0A%0AsetInterval(function()%7B%0A%09loadData();%0A%7D, 1000);
|
ab1c723c487a4226543d230e2fedb950083857f8 | update about page | elements/about.js | elements/about.js | var BaseElement = require('base-element')
var inherits = require('inherits')
module.exports = About
inherits(About, BaseElement)
function About (options) {
if (!(this instanceof About)) return new About(options)
BaseElement.call(this)
}
About.prototype.render = function (state) {
var h = this.html
var elemen... | JavaScript | 0 | @@ -373,17 +373,274 @@
, 'Hello
-'
+. Let me tell you about everything.'),%0A h('p', 'EditData.org is a tool for editing CSV & JSON files from your computer & from GitHub.'),%0A h('p', %5B%0A h('a.button', 'Source on GitHub')%0A %5D),%0A h('p', %5B%0A h('a.button', 'Report an issue')%0A %5D
)... |
0765eeec064535ee601c33e5413063486b5cfad9 | Add callback to handle result of promises queued | promisequeue.js | promisequeue.js | 'use strict';
export class PromiseQueue {
constructor() {
this.promises = [];
this.endCallback;
this.exceptionCallback;
this.running;
}
run() {
if(!this.running) {
if(this.promises.isEmpty()) {
if(this.endCallback) {
this.endCallback();
}
}
else {
this.running = this.promises.shi... | JavaScript | 0 | @@ -1,19 +1,4 @@
-'use strict';%0A%0A
expo
@@ -34,16 +34,31 @@
tructor(
+result_callback
) %7B%0A%09%09th
@@ -75,16 +75,57 @@
s = %5B%5D;%0A
+%09%09this.resultCallback = result_callback;%0A
%09%09this.e
@@ -399,15 +399,102 @@
hen(
-() =%3E %7B
+result =%3E %7B%0A%09%09%09%09%09%09if(this.resultCallback) %7B%0A%09... |
1bba5fb6d73e5a6fdfb9313a6504e54c906ebd9b | Add count keyword. | lib/ace/mode/xquery_highlight_rules.js | lib/ace/mode/xquery_highlight_rules.js | /*
* eXide - web-based XQuery IDE
*
* Copyright (C) 2011 Wolfgang Meier
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... | JavaScript | 0 | @@ -1314,16 +1314,22 @@
empty%7Cin
+%7Ccount
%22).split
|
feba59eced18e45f21e2044259fc82c044b9607d | Remove lock | lib/api/controllers/adminController.js | lib/api/controllers/adminController.js | /*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2022 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | JavaScript | 0.000004 | @@ -3147,24 +3147,101 @@
indexes);%0A%0A
+ await this.ask('core:cache:internal:del', 'backend:import:mappings');%0A%0A
return
|
3ead96a686b5681e48230837de4cf2c6a9ece83d | support ie onload listeners | lib/assets/javascripts/jasmine-boot.js | lib/assets/javascripts/jasmine-boot.js | var jsApiReporter;
(function() {
var jasmineEnv = jasmine.getEnv();
jsApiReporter = new jasmine.JsApiReporter();
jasmineEnv.addReporter(jsApiReporter);
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function(spec) {
return htmlReporter.spec... | JavaScript | 0 | @@ -436,229 +436,255 @@
%0A%0A
-var currentWindowOnload = window.onload;%0A window.onload = function() %7B%0A if (currentWindowOnload) %7B%0A currentWindowOnload();%0A %7D%0A execJasmine();%0A %7D;%0A%0A function execJasmine() %7B%0A jasmineEnv.execute(
+function execJasmine() %7B%0A jasmineEn... |
48a6d7f3b2b14b9db866d417644a4f4f4f87c12d | fix missing request property | lib/container/RemoteOverridesModule.js | lib/container/RemoteOverridesModule.js | /*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra and Zackary Jackson @ScriptedAlchemy
*/
"use strict";
const { OriginalSource } = require("webpack-sources");
const AsyncDependenciesBlock = require("../AsyncDependenciesBlock");
const Module = require("../Module");
const ... | JavaScript | 0.000004 | @@ -4402,182 +4402,8 @@
%09%7D%0A%0A
-%09/**%0A%09 * @returns %7Bstring %7C null%7D absolute path which should be used for condition matching (usually the resource path)%0A%09 */%0A%09nameForCondition() %7B%0A%09%09return this.request;%0A%09%7D%0A%0A
%09/**
@@ -6064,16 +6064,25 @@
rce(
+%0A%09%09%09%09
source,
-
+... |
9651e8d2bff9b66e82d0544d35fcb27ad0311aac | fix js once again | public/index.js | public/index.js | function objectIsEmpty(obj) {
for(var x in obj)
return false;
return true;
}
function draw(groups, nodes, edges) {
var renderer = new dagreD3.Renderer();
var oldDrawNodes = renderer.drawNodes();
var oldDrawEdgePaths = renderer.drawEdgePaths();
renderer.drawEdgePaths(function(graph, root) {
var s... | JavaScript | 0 | @@ -1876,24 +1876,25 @@
mpty(groups)
+)
%7B%0A // fi
|
7a045846947d365f2934f02421a1992c12f5341d | add call plugin | plugins/core/plugin.js | plugins/core/plugin.js |
module.exports[0] = require("./groups")
module.exports[1] = require("./friends")
module.exports[2] = require("./identities")
module.exports[3] = require("./connect")
module.exports[4] = require("./addrs")
module.exports[5] = require("./dht")
module.exports[6] = require("./ping")
/*
module.exports[7] = require("./lb")
... | JavaScript | 0.000001 | @@ -278,11 +278,8 @@
g%22)%0A
-/*%0A
modu
@@ -309,12 +309,11 @@
(%22./
-lb%22)%0A%0A*/
+call%22)%0A
|
db48a9a716f10746008bee0d95bd472f56316f71 | Fix a mistake | Task2_7/task.js | Task2_7/task.js | window.onload = function(){
var input = document.getElementById("input");
var leftIn = document.getElementById("left_in");
var leftOut = document.getElementById("left_out");
var rightIn = document.getElementById("right_in");
var rightOut = document.getElementById("right_out");
var addChild = docume... | JavaScript | 0.999999 | @@ -2737,22 +2737,24 @@
%E4%B8%AAli%0A
-window
+addChild
.addEven
@@ -2955,45 +2955,8 @@
()%7B%0A
- //console.log(this);%0A
%09
@@ -3026,16 +3026,37 @@
%09%7D%0A%09%09%7D
+%0A getValues();
%09%0A
@@ -3238,20 +3238,25 @@
unction
-sort
+getValues
()%7B%0A
@@ -3402,24 +340... |
a674619b8019693702e5dbdccb89edc1250182ba | Rename JSON key | modules/commands/weather.js | modules/commands/weather.js | 'use strict';
module.exports = {
key: 'weather',
description: 'shows weather station readings',
execute: function(ircbot, config, from, to) {
const request = require('request');
request({
url: 'https://spitfire.initlab.org/weather.json',
json: true
}, function(error, response, body) {
if (error !=... | JavaScript | 0.00012 | @@ -848,12 +848,8 @@
ody.
-abs_
pres
|
20547d3eb8c217ca4806b77dcec9c6141c945329 | Add memo. | background.js | background.js | JavaScript | 0 | @@ -0,0 +1,141 @@
+/*%0A Keeping an empty 'background' script for now, as having one%0A seems to improve performance of the initial popup window display.%0A */%0A
| |
1fc28b9d688741ac6142d9b2f178422d52c9f287 | change flickr url to scout api key | background.js | background.js | (function(){
var config = {
apiKey: "AIzaSyAfWj-rBzdy7vH7GvqL6u8iyL6PTTwamfw",
authDomain: "scout-1d20f.firebaseapp.com",
databaseURL: "https://scout-1d20f.firebaseio.com",
// storageBucket: "",
};
firebase.initializeApp(config);
}());
(function(){
/**
* Function called when clicking the L... | JavaScript | 0 | @@ -5933,14 +5933,8 @@
.get
-Public
List
@@ -5946,40 +5946,40 @@
key=
-7323d71df9858598dd027bd0b1dadef9
+15814abffa9beab837cad31506bd4eca
&use
@@ -6042,95 +6042,8 @@
ck=1
-&auth_token=72157670174326456-2d8f4fffb8956f3f&api_sig=985abda1c6c0d32fb158202b0d96736d
%22, m
|
011b6dbf316d42a9ad99f521d2a89538dbe79752 | Round the values to the matching traffic image up, so that on below 5% no 'no traffic' icon is shown | background.js | background.js | var usedTraffic = null,
quotaPerDay = 3 * 1024 * 1024,
maxQuota = quotaPerDay * 21;
/** Resets all modified values to their defaults. */
function clearState() {
chrome.browserAction.setIcon({path:"icon/inactive.png"});
usedTraffic = null;
}
/** Requests the current traffic usage and updates the icon. */
function ... | JavaScript | 0.999815 | @@ -571,16 +571,131 @@
= 100;%0A
+%09%09// Round the value up to the next 5%25 step %0A%09%09// to not display the no more traffic icon when there is still some%0A
%09%09var na
@@ -704,16 +704,20 @@
= proc
++ 5
- (proc
|
b2da60431e1e5a405e019688c11af362d4f37cad | Add file overview | background.js | background.js | // Background job which monitors chrome tabs and closes duplicates.
var tabs = [];
// Called when extension is installed or updated
chrome.runtime.onInstalled.addListener(function(reason){
// Set initial tabs
chrome.tabs.query({}, function(result) {
for (var i = 0; i < result.length; i++) {
tabs.push(re... | JavaScript | 0 | @@ -1,47 +1,33 @@
/
-/ Background job which monitors chrome tab
+**%0A * @fileOverview Monitor
s an
@@ -44,18 +44,34 @@
uplicate
-s.
+d chrome tabs.%0A */
%0A%0Avar ta
|
bbcb9b7836336f67076cb8ff153de95af9cbac55 | Tweak color: Lucky 7's | background.js | background.js | /*
* Copyright 2013 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 applica... | JavaScript | 0.000001 | @@ -742,11 +742,11 @@
: %22#
-666
+777
%22 %7D)
|
f252bd41af333b7d3f82d0ed11b524534b768e7f | Fix for #11 - adding websites via context menu | background.js | background.js | /**
* RapidTabOpener
*
* Action to be executed when toolbar button is clicked. Determines the
* current window mode and the desired window type then with that
* information either opens a new window first or the specified URLs.
*
* @author cedricium - Cedric Amaya
*/
browser.browserAction.onClicked.addListene... | JavaScript | 0 | @@ -271,16 +271,182 @@
ya%0A */%0A%0A
+(function setDefaultSettings() %7B%0A var urls = %5B%5D;%0A var windowSettings = %7Btype: 'normal'%7D;%0A %0A browser.storage.local.set(%7B%0A urls,%0A windowSettings%0A %7D);%0A%7D)();%0A%0A
browser.
|
7641cce26930ee17292bf4e3e716d70cd7cfd2a0 | support the thread list of pink2ch | user_script/simple2ch.user.js | user_script/simple2ch.user.js | // ==UserScript==
// @name simple2ch
// @namespace https://github.com/neEverett/simple2ch-2chChromeExtension
// @version 0.2
// @description Making the webpage version of 2ch a little bit easy to use.
// @author neEverett
// @match http://*.2ch.net/*
// @grant none
// ==/Use... | JavaScript | 0 | @@ -136,16 +136,18 @@
0.2
+.1
%0D%0A// @de
@@ -283,16 +283,70 @@
.net/*%0D%0A
+// @match http://*.bbspink.com/*/subback.html%0D%0A
// @gran
|
95e2800d8f3763c476158f96b134ca78dbe0dfb1 | Add URI as a dependency. Add a handler for the search-callers on the front page. | scripts/js/dictionaries.js | scripts/js/dictionaries.js | // http://stackoverflow.com/a/17606289
String.prototype.replaceAll = function (search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
!function ($, VirtualKeyboard, params, xcontext, navigator) {
var m = {};
m.ready = false;
m.userLangs = navigator... | JavaScript | 0 | @@ -245,16 +245,21 @@
avigator
+, URI
) %7B%0A
@@ -1815,24 +1815,86 @@
ubmitForm);%0A
+ $(%22#front .search-caller%22).on(%22click%22, onSearchCall);%0A
%7D);%0A%0A
@@ -6294,16 +6294,495 @@
;%0A %7D%0A
+ %0A function onSearchCall(event) %7B%0A event.preventDefault();%0A var... |
8a12ec62db5329a5499a3de2647f5288ed524c17 | fix argument of precacheAndRoute() | bin/app/sw.js | bin/app/sw.js | /* eslint-disable */
console.log(`${new Date()}: Service Worker is loaded`);
// Set cache name for multiple projects.
// @see https://developers.google.com/web/tools/workbox/modules/workbox-core
workbox.core.setCacheNameDetails({
prefix: "starter-react-flux",
suffix: "v1",
precache: "install-time",
runtime: "... | JavaScript | 0 | @@ -628,24 +628,19 @@
f.__
-precacheManifest
+WB_MANIFEST
);%0A%0A
|
660cd8521263dbdf6cceea6634ccbbb65588336d | Update Colors and names | shared/styles/style-guide.desktop.js | shared/styles/style-guide.desktop.js | /* @flow */
// Styles from our designers
export const globalColors = {
blue: '#00bff0',
green: '#90d05c',
grey1: '#444444',
grey2: '#9e9e9e',
grey3: '#cccccc',
grey4: '#e1e1e1',
grey5: '#f6f6f6',
highRiskWarning: '#d0021b',
lightBlue: '#86e2f9',
lightOrange: '#fc8558',
lowRiskWarning: '#f5a623',
... | JavaScript | 0 | @@ -450,97 +450,86 @@
: '#
-00b
+33a0
ff
-0
',%0A
-lightBlue1
+blue2
: '#
-86e2f9',%0A lightBlue2
+66b8ff',%0A blue3
: '#
-c7f4
+a8d7
ff',%0A
-orange1: '#ff602e
+blue4: '#e6f3ff
',%0A
+%0A
orange
2: '
@@ -528,22 +528,22 @@
ange
-2
: '#f
-c8558
+f6f21
',%0A
+%0A
ye
@@ -559,16 +559,17 @@
ff75a',%0... |
a6b42c07c7fa2d19c8d8f829ae85ccd5ec6596f4 | remove unused dependency | spec/karma.spec.js | spec/karma.spec.js | var Karma = require('../tasks/wrappers/karma');
var karmaServer = require('karma').server;
var log = require('../tasks/utils/log');
function onError(e){
console.log('** Test Error **')
console.log(e)
expect(false).toBe(true)
}
describe('Karma', function () {
it('reports test coverage to the user', fun... | JavaScript | 0.000002 | @@ -45,51 +45,8 @@
');%0A
-var karmaServer = require('karma').server;%0A
var
|
9504664ae0b5f13f6d7ab789820b4c8601b550ad | Enable all tests | spec/merge.spec.js | spec/merge.spec.js | var fs = require("fs");
var nodePath = require("path");
var g = require("../src/gitlet");
var merge = require("../src/merge");
var testUtil = require("./test-util");
function spToUnd(charr) {
return charr === "_" ? undefined : charr;
};
ddescribe("merge", function() {
beforeEach(testUtil.initTestDataDir);
befor... | JavaScript | 0.000009 | @@ -234,17 +234,16 @@
rr;%0A%7D;%0A%0A
-d
describe
|
10156a337040531978122221cd70ba30ddcb89b4 | fix UTF8 BOM charset | bin/jslint.js | bin/jslint.js | #!/usr/bin/env node
var linter = require("../lib/linter");
var reporter = require("../lib/reporter");
var nopt = require("nopt");
var fs = require("fs");
function commandOptions () {
var flags = [
'adsafe', 'bitwise', 'browser', 'cap', 'continue', 'css',
'debug', 'devel', 'es5', 'evil', 'forin', '... | JavaScript | 0.000136 | @@ -1877,16 +1877,140 @@
%7D%0A
+%09%09%0A%09%09// Fix UTF8 with BOM%0A%09%09if (0xEF === data%5B0%5D && 0xBB === data%5B1%5D && 0xBF === data%5B2%5D) %7B%0A%09%09%09data = data.slice(3);%0A%09%09%7D%0A%09%09%0A
|
65cfadd03d70b0854980d5eb046ffc7ec6e5f8b3 | Add logging to minify.js | bin/minify.js | bin/minify.js | const fs = require('fs');
const path = require('path');
const browserify = require('browserify');
const CleanCSS = require('clean-css');
require('dotenv').config();
// CSS Minification Configs
const cssSources = [
path.join('node_modules', 'normalize.css', 'normalize.css'),
path.join('node_modules', 'bootstrap', ... | JavaScript | 0.000001 | @@ -774,16 +774,89 @@
nify js%0A
+console.log('Minifying JS:');%0Aconsole.log(jsInputFile);%0Aconsole.log('');%0A
const js
@@ -1561,16 +1561,83 @@
ify CSS%0A
+console.log('Minifying CSS:');%0Aconsole.log(cssSources.join(', '));%0A
new Clea
|
289fd05afd2e5aaadaed051d32be4efc164d0d71 | Fix temperature display | ui/public/javascripts/main.js | ui/public/javascripts/main.js | $(function() {
withSelectedFilter();
$("#refresh").click(withSelectedFilter);
$("#filter").change(withSelectedFilter);
});
var withSelectedFilter = function() {
var val = $("#filter").find(":selected").val();
if(val == "last24") {
var yesterday = new Date(new Date().getTime() - (24 * 60 * 60 * 1000));
... | JavaScript | 0.000002 | @@ -1008,16 +1008,21 @@
%5B'value
+_real
'%5D%0A
|
aad59400e2d69727224a3ca9b6aa9f9d7c87e9f7 | Update bootstrap.js | resources/assets/js/bootstrap.js | resources/assets/js/bootstrap.js |
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.$ = window.jQuery = require('jquery');
... | JavaScript | 0.000001 | @@ -1617,10 +1617,11 @@
r: '
-eu
+mt1
',%0A/
|
5338cc7a82f766242892b74d4c716f986bcdbaee | Switch bootstrap module import to foundation | resources/assets/scripts/main.js | resources/assets/scripts/main.js | // import external dependencies
import 'jquery';
// Import everything from autoload
import "./autoload/**/*"
// import local dependencies
import Router from './util/Router';
import common from './routes/common';
import home from './routes/home';
import aboutUs from './routes/about';
/** Populate Router instance with... | JavaScript | 0 | @@ -41,16 +41,43 @@
jquery';
+%0Aimport 'foundation-sites';
%0A%0A// Imp
|
4a228e38efb9eae0e5cbaf495f06abd8d0b844b2 | Add configurable timeout to cleanup-utility | specs/testUtils.js | specs/testUtils.js | 'use strict';
// testUtils should be require'd before anything else in each spec file!
// Ensure we are using the 'as promised' libs before any tests are run:
require('mocha-as-promised')();
require('chai').use(require('chai-as-promised'));
var utils = module.exports = {
getUserStripeKey: function() {
var key... | JavaScript | 0.000001 | @@ -1572,24 +1572,69 @@
nction() %7B%0A%0A
+ CleanupUtility.DEFAULT_TIMEOUT = 20000;%0A%0A
function
@@ -1649,16 +1649,23 @@
Utility(
+timeout
) %7B%0A
@@ -1826,32 +1826,97 @@
unction(done) %7B%0A
+ this.timeout(timeout %7C%7C CleanupUtility.DEFAULT_TIMEOUT);%0A
return s
|
5a92a99eeb0e5a21ef210dc095448345de58f3d6 | Update AppVersionPlugin.js | www/AppVersionPlugin.js | www/AppVersionPlugin.js | /*jslint indent: 2 */
/*global window, jQuery, angular, cordova */
"use strict";
// Returns a jQuery or AngularJS deferred object, or pass a success and fail callbacks if you don't want to use jQuery or AngularJS
var getPromisedCordovaExec = function (command, success, fail) {
var toReturn, deferred, injector, $q;
... | JavaScript | 0.000001 | @@ -1461,23 +1461,22 @@
on.check
-Version
+Update
= funct
@@ -1535,23 +1535,22 @@
c('check
-Version
+Update
', succe
|
8ba8b5982406fc4a203d4c7da12ec192d30edb5d | Move the timer into the animation loop | Web/JS/index.js | Web/JS/index.js |
jQuery(document).ready(function (){
IndexPage.Init();
});
/* Timer */
var d = new Date;
var timeSent = 0;
var timeTaken_s;
var timeTaken_ms;
function onInitFs(fs) {
fs.root.getFile("streaming.txt", { create: true }, function (DataFile) {
DataFile.createWriter(function (DataContent) {
Dat... | JavaScript | 0.000001 | @@ -61,92 +61,8 @@
);%0A%0A
-/* Timer */%0Avar d = new Date;%0Avar timeSent = 0;%0Avar timeTaken_s;%0Avar timeTaken_ms;%0A%0A
func
@@ -6279,32 +6279,117 @@
-timeSent = d.getTime();%0A
+/* Timer */%0A var d = new Date;%0A var timeSent = d.getTime();%0A var timeTaken_ms=0;%0A
%0A
@... |
cb457850b402047b04582aae97cf2ec52f256fb7 | change api url to demo host | app/core/api-urls.js | app/core/api-urls.js | 'use strict';
this.apiUrls = {};
this.apiUrls.root = 'http://10.131.235.12:3000/api/v1';
this.apiUrls.signUp = apiUrls.root + '/users';
this.apiUrls.signIn = apiUrls.signUp + '/token';
this.apiUrls.logOut = apiUrls.signIn;
this.apiUrls.courses = apiUrls.root + '/courses';
this.apiUrls.courseTags = apiUrls.courses + '... | JavaScript | 0 | @@ -60,26 +60,35 @@
p://
-10.131.235.12:3000
+sedemo.carbon941030.tk:8081
/api
|
9b0bdf3e33c097708cf97628d8e9c37be7061f7c | Simplify paths | douglas-peucker/app.js | douglas-peucker/app.js | // create a map in the "map" div, set the view to a given place and zoom
var map = L.map('map').setView([51.505, -0.09], 13);
var markers = []
var polyline = L.polyline([]).addTo(map)
var startTime = new Date();
// add an OpenStreetMap tile layer
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: ... | JavaScript | 0.002766 | @@ -66,16 +66,70 @@
nd zoom%0A
+var initialLat = 51.508611%0Avar initialLon = -0.163611%0A
var map
@@ -156,21 +156,30 @@
ew(%5B
-51.505, -0.09
+initialLat, initialLon
%5D, 1
@@ -471,20 +471,8 @@
);%0A%0A
-var adder =
docu
@@ -508,13 +508,10 @@
t')%0A
-adder
+
.add
@@ -544,16 +544,92 @@
Point)%0A%0A
+docume... |
6708dbf1da755968e6e5929a26d7bbd58378d781 | Update some params | main.js | main.js | 'use strict';
var strips = require('./strips');
var currentImage; // image element, hidden
var currentPolys; // specifically these are cut-strip polygons in pixel coords relative to currentImage
function loadImageFromFile(file, cb) {
// Prevent any non-image file type from being read.
if (!file.type.match(/image... | JavaScript | 0.000001 | @@ -1112,17 +1112,18 @@
rac = 0.
-1
+05
;%0A var
@@ -4550,13 +4550,14 @@
ht,
-40, 1
+118, 2
00);
|
c1bed3b9db2cc6be7177e0829c2d0b1431242ba7 | Set operating system determination. | main.js | main.js | const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
electron.crashReporter.start({
productName: 'GeometrA',
companyName: 'NTUT',
submitURL: 'https://localhost:5000',
uploadToServer: true
});
var mainWindow = null;
app.on('window-all-closed', function()... | JavaScript | 0 | @@ -430,16 +430,130 @@
python?%0A
+ if (process.platform === %22win32%22)%0A var subpy = require('child_process').spawn('py', %5B'./main.py'%5D);%0A else%0A
var su
|
52fb8dc799ae15f577e0204e0447e9749f7a3dd8 | clarify email name | main.js | main.js | //
// required packages
//
var fs = require('fs');
var underscore = require('underscore');
var winston = require('winston');
var express = require('express');
var request = require('request');
var cheerio = require('cheerio');
var forecasts = require('./forecasts.js');
var observations = require('./observations.js');
... | JavaScript | 0.999994 | @@ -2378,17 +2378,25 @@
erId', '
-e
+observerE
mail', '
|
2284c5f768027a13e22ae5f58d0b2a03eba2a4c9 | set endpoint transfer type bulk, changed timeout to infinite | main.js | main.js | const ROMVID = 0x0451;
const ROMPID = 0x6141;
const BOOTPS = 67;
const BOOTPC = 68;
const IPUDP = 17;
const SPLVID = 0x0525;
const SPLPID = 0xA4A2;
const ETHIPP = 0x0800;
const ETHARPP = 0x0806;
const MAXBUF = 450;
const server_hwaddr = [0x9a, 0x1f, 0x85, 0x1c, 0x3d, 0x0e];
const server_ip = [0xc0, 0xa8, 0x01, 0x09]; ... | JavaScript | 0 | @@ -1423,16 +1423,162 @@
0x02);%0A%0A
+// Set endpoint transfer type%0AinEndpoint.transferType = usb.LIBUSB_TRANSFER_TYPE_BULK;%0AoutEndpoint.transferType = usb.LIBUSB_TRANSFER_TYPE_BULK;%0A%0A
// Recei
@@ -1586,16 +1586,16 @@
e BOOTP%0A
-
var boot
@@ -1667,16 +1667,16 @@
ransfer%0A
+
inEndpoi
@@ -1692,11 +1692,8... |
9fa8012315ac93db07e5a4510c06237e66ae8b44 | Convert haveMsisdnToken to async / await | src/AddThreepid.js | src/AddThreepid.js | /*
Copyright 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
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 la... | JavaScript | 0.999989 | @@ -4670,16 +4670,22 @@
*/%0A
+async
haveMsis
@@ -4701,38 +4701,52 @@
oken) %7B%0A
-return
+const result = await
MatrixClientPeg
@@ -4838,38 +4838,18 @@
)
-.then((result) =%3E %7B%0A
+;%0A
if
@@ -4840,26 +4840,24 @@
);%0A
-
if (result.e
@@ -4862,28 +4862,24 @@
.errcod... |
b919bbded06371454fe288a8450ef72a67d5d677 | Allow Browserify to handle regenerator errors #20 | main.js | main.js | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
var as... | JavaScript | 0 | @@ -809,24 +809,36 @@
ion end() %7B%0A
+ try %7B%0A
this.que
@@ -879,24 +879,26 @@
.code);%0A
+
this.queue(n
@@ -903,16 +903,59 @@
(null);%0A
+ %7D catch (e) %7B this.emit('error', e); %7D%0A
%7D%0A%7D%0A%0A/
|
03ce4f6e47168142a741dd8e5f9334ceba191473 | Check external links on new windows too | main.js | main.js | const url = require('url')
const menuTemplateBuilder = require('./lib/menu')
const { app, BrowserWindow, Menu, shell } = require('electron')
// adds debug features like hotkeys for triggering dev tools and reload
require('electron-debug')()
// prevent window being garbage collected
let mainWindow
function onClosed (... | JavaScript | 0 | @@ -570,24 +570,49 @@
ewURL, true)
+%0A event.preventDefault()
%0A%0A // Chang
@@ -1177,20 +1177,56 @@
return
-true
+createNewWindow(targetURL.href, options)
%0A %7D e
@@ -1287,73 +1287,83 @@
-event.preventDefault()%0A return createYouTubeWindow(targetURL
+return createNewWindow(%60https://www.you... |
70b2d2ab5364eded1d77fe4d527fe20ef47607f8 | add a start msg and add score gameover alert | main.js | main.js | var score = 0;
var time = 30;
$(".js-time").text("Time: " + time);
addTile(randomTile(), "blueTile");
window.setInterval(function(){
if (time <= 0) {
$(".js-time").text("Time: " + 0);
alert("Game Over! Looooooser!");
start();
}
else {
time--;
$(".js-time").text("Time: " + time);
}
}, 1000);
w... | JavaScript | 0 | @@ -23,16 +23,101 @@
e = 30;%0A
+alert(%22This game is under heavy development! Therefore, there are still some bugs.%22);
%0A$(%22.js-
@@ -296,20 +296,29 @@
er!
-Looooooser!%22
+Your score: %22 + score
);%0A
|
6e80490a163675550977cd19894685acbc09eb71 | remove debug code | main.js | main.js | import input from 'inquirer'
import anidb from './api/anidb'
import animeplanet from './api/animeplanet'
import anilist from './api/anilist'
import annict from './api/annict'
import kitsu from './api/kitsu'
import myanimelist from './api/myanimelist'
const log = console.log
input.prompt([
{
type: 'checkbo... | JavaScript | 0.000492 | @@ -1329,32 +1329,8 @@
%3E %7B%0A
- console.log(answer)%0A
|
10c4dfc9c61e9104ec09d6ff33d1b43cea35451b | fix bad cookies | main.js | main.js | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { Provider } from 'react-redux'
import configureStore from './store/bots';
import config from 'react-global-configuration';
if (!String.prototype.includes) {
String.prototype.includes = function() {
'use strict';
... | JavaScript | 0.000003 | @@ -210,16 +210,73 @@
ation';%0A
+import cookie from 'react-cookie';%0A%0A//for IE/opera/safari
%0Aif (!St
@@ -450,16 +450,340 @@
%7D;%0A%7D%0A%0A
+//if the userId cookie is in bad form, get rid of it%0Aif(cookie.load('userId'))%0Aif(!(typeof cookie.load('userId') == 'string'))%7B%0A Object.keys(cookie.select(/... |
9defb2f58578e3c504b00708bbb249cb154059ce | update main process registry | main.js | main.js | module.exports = {
load: function () {
},
unload: function () {
},
'ui-tree:open': function () {
Editor.Panel.open('ui-tree.preview');
},
};
| JavaScript | 0.000001 | @@ -1,8 +1,23 @@
+'use strict';%0A%0A
module.e
@@ -31,34 +31,22 @@
= %7B%0A
-
load
-: function
() %7B%0A
%7D,
@@ -45,24 +45,20 @@
%7B%0A
-
-
%7D,%0A%0A
-
unload
: fu
@@ -53,34 +53,24 @@
unload
-: function
() %7B%0A
%7D,%0A%0A
@@ -65,50 +65,40 @@
%7B%0A
-
-
%7D,%0A%0A
-
- '... |
9409acd36ed339fc80f439f0ff0661fe9ae0b56c | Add static file recording | main.js | main.js | /*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, $, brackets, window */
/** Extension that starts/stops Recode and saves when appropriate */
define(function (require, exports, module) {
"use strict";
var CommandManager = brackets.getModule(... | JavaScript | 0.000001 | @@ -1055,16 +1055,48 @@
= null;
+%0A this.trackedFiles = %5B%5D;
%0A%0A
@@ -1174,28 +1174,29 @@
nTextChange.
-call
+apply
(self, argum
@@ -1303,20 +1303,21 @@
eChange.
-call
+apply
(self, a
@@ -1747,82 +1747,642 @@
-if (this.currentDocument) %7B%0A console.log(this.currentDocument);... |
75e0fd0d6b0789f8843d8c7247944e8b8a0a99f3 | Add pause support | main.js | main.js | var app = require('app'),
browserWindow = require('browser-window'),
globalShortcut = require('global-shortcut'),
mainWindow = null;
app.on('window-all-closed', function () {
if (process.platform != 'darwin') {
app.quit();
}
});
app.on('ready', function () {
mainWindow = new browserWindow({... | JavaScript | 0.000001 | @@ -964,80 +964,8 @@
%7D);%0A
-%09globalShortcut.register('MediaStop', function () %7BplayPause();%7D); // ?%0A
%09glo
@@ -1032,16 +1032,16 @@
e();%7D);%0A
+
%09//globa
@@ -1350,19 +1350,8 @@
pt('
-' +%0A%09%09'if (
$(%22#
@@ -1368,293 +1368,17 @@
n%22).
-hasClass(%22tc_pause%22)) %7B' +%0A%09%09'$(%22#jquery_jp... |
886616e85c5c2d0a63bddf465a185ebbe399c6cf | allow running multiple services in parallel | main.js | main.js | import input from 'inquirer'
import anidb from './api/anidb'
import animeplanet from './api/animeplanet'
import anilist from './api/anilist'
import annict from './api/annict'
import kitsu from './api/kitsu'
import myanimelist from './api/myanimelist'
const log = console.log
input.prompt([
{
type: 'checkbo... | JavaScript | 0 | @@ -1333,34 +1333,99 @@
-switch (answer.service) %7B%0A
+console.log(answer)%0A answer.service.forEach(service =%3E %7B%0A switch (service) %7B%0A
@@ -1456,16 +1456,20 @@
+
+
anidb(an
@@ -1483,38 +1483,46 @@
pe)%0A
+
break%0A
+
case ('A
@@ -1543,16... |
5a9268ed78ad9a3e4634cd2f03b453d354b8e9ca | Send full URLs back to cURL upload requests. | main.js | main.js | 'use strict';
var fs = require('fs');
var readTextFileSync = require('read-text-file-sync');
var mkdirp = require('mkdirp');
var path = require('path');
var extname = path.extname;
var basename = path.basename;
var realpathSync = fs.realpathSync;
var express = require('express');
var app = express();
var multer = requ... | JavaScript | 0 | @@ -791,24 +791,179 @@
Page);%0A%7D);%0A%0A
+function fullUrl(req, rel) %7B%0A if(rel%5B0%5D === '/') %7B%0A rel = rel.slice(1);%0A %7D%0A%0A return req.protocol + '://' + req.get('Host') + '/' + rel;%0A%7D%0A%0A
app.post('/u
@@ -1655,22 +1655,43 @@
es.send(
-relUrl
+fullUrl(req, relUrl) + '%5Cn'
);... |
b59dcf6eef7b9d2b87177aed132abba9e42d55d8 | Increase maximum number of allowed listeners. | make.js | make.js | var b = require('substance-bundler');
var fs = require('fs')
var path = require('path')
var examples = [
'code-editor',
'focused',
'form',
'image',
'inline-node',
'input',
'macros',
'nested',
'table',
'isolated-nodes',
'tangle',
]
b.task('clean', function() {
b.rm('./dist')
})
function _asset... | JavaScript | 0 | @@ -82,16 +82,203 @@
path')%0A%0A
+// We need to increase the maximum number of allowed listeners as we want to%0A// watch for changes on a large number of files%0Arequire('events').EventEmitter.prototype._maxListeners = 100%0A%0A
var exam
|
5bf8cfff51f7ecb34db2a21ddec613ccc250994c | Add null check to Trips.js file | Trips.js | Trips.js | var http = require('http'),
fs = require('fs'),
Routes = require('./Routes'),
events = require('events'),
xml2js = require('xml2js'),
util = require('util'),
Progress = require('./Progress'),
blockMap = JSON.parse(fs.readFileSync('conf/block_map.json', 'utf8'));
var Trips = function(routes) {
var self =... | JavaScript | 0 | @@ -1846,16 +1846,40 @@
tent;%0A%09%0A
+%09if (!services) return;%0A
%09Object.
@@ -4276,12 +4276,13 @@
: %5Bobj%5D;%0A%7D;
+%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.