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 |
|---|---|---|---|---|---|---|---|
5d49b0f41a9033089cbd8542018bd658a4c47cd3 | isNumber move isNaN | is-number.js | is-number.js | /**
* @module 101/is-number
*/
/**
* Functional version of val typeof 'number'
* @function module:101/is-number
* @param {*} val - value checked to be a string
* @return {boolean} Whether the value is an string or not
*/
module.exports = isNumber;
function isNumber (val) {
return !isNaN(val) && (typeof val =... | JavaScript | 0.999927 | @@ -288,23 +288,8 @@
turn
- !isNaN(val) &&
(ty
@@ -335,12 +335,26 @@
Number)
-;
+ && !isNaN(val)
%0A%7D%0A
|
4028b6beb4cd6b6f1a5bb66042f2777e54089519 | Replace Meteor.clearInterval with just clearInterval | imports/api/reports/reports.test.js | imports/api/reports/reports.test.js | /* eslint-env mocha */
import Reports from './reports.js';
import Elements from '../elements/elements.js';
import Measures from '../measures/measures.js';
import { Meteor } from 'meteor/meteor';
import { resetDatabase } from 'meteor/xolvio:cleaner';
describe('Reports', () => {
if (Meteor.isClient) return;
describ... | JavaScript | 0.000526 | @@ -2611,23 +2611,16 @@
-Meteor.
clearInt
|
bc0ca5f76958c49a84807fa61620f04ca4bcee3d | Fix rendering of avatars for some Gravatar users. | static/js/read_receipts.js | static/js/read_receipts.js | import $ from "jquery";
import SimpleBar from "simplebar";
import render_read_receipts from "../templates/read_receipts.hbs";
import render_read_receipts_modal from "../templates/read_receipts_modal.hbs";
import * as channel from "./channel";
import {$t} from "./i18n";
import * as loading from "./loading";
import * a... | JavaScript | 0 | @@ -964,33 +964,343 @@
=%3E
-people.get_by_user_id(id)
+%7B%0A const user = people.get_by_user_id(id);%0A return %7B%0A user_id: user.user_id,%0A full_name: user.full_name,%0A avatar_url: pe... |
4ec67654d334d3a7c88ec16d0530cfae012f27b1 | add disable and enable for feedback button when sent (#258) | static/scripts/loggedin.js | static/scripts/loggedin.js | $(document).ready(function () {
var $modals = $('.modal');
var $feedbackModal = $('.feedback-modal');
var $modalForm = $('.modal-form');
function showAJAXError(req, textStatus, errorThrown) {
$feedbackModal.modal('hide');
if(textStatus==="timeout") {
$.showNotification("Zeit... | JavaScript | 0 | @@ -1746,24 +1746,97 @@
%7D);%0A%0A
+ $('.feedback-modal').find('.btn-submit').prop(%22disabled%22, true);%0A
%7D;%0A%0A
@@ -1905,32 +1905,106 @@
ventDefault();%0A%0A
+ $('.feedback-modal').find('.btn-submit').prop(%22disabled%22, false);%0A
var titl
|
a0358e9f5f168a31667098066a582b743e75185f | Remove stale page reloads | www/js/setup.js | www/js/setup.js | (function() {
// Prevent from loading stale pages on browser state resume
if (Date.now() - renderTime >= 3600000)
return location.reload(true);
var options;
try {
options = JSON.parse(localStorage.options);
}
catch (e) {}
// Set the theme
var mediaURL = config.MEDIA_URL;
var theme = (options && options.t... | JavaScript | 0.000001 | @@ -11,143 +11,8 @@
) %7B%0A
-%09// Prevent from loading stale pages on browser state resume%0A%09if (Date.now() - renderTime %3E= 3600000)%0A%09%09return location.reload(true);%0A%0A
%09var
|
9bdd6a78a38b0d7792a3ffa59731c453a49710e0 | Handle file not existing in Stagecraft linter | tools/stagecraft_lint.js | tools/stagecraft_lint.js | var fs = require('fs'),
path = require('path'),
jsonschema = require('jsonschema'),
_ = require('lodash');
var Validator = jsonschema.Validator,
v = new Validator();
var dashboardSchema = {
'id': '/Dashboard',
'type': 'object',
'properties': {
'slug': {
'type': 'string',
'require... | JavaScript | 0 | @@ -3328,141 +3328,280 @@
k =
-JSON.parse(fs.readFileSync(path.join(pagePerThingDirectory, module.slug + '.json'), 'utf8')),%0A moduleSlug = module.slug;
+%7B%7D,%0A moduleSlug = module.slug,%0A moduleJsonPath = path.join(pagePerThingDirectory, module.slug + '.json');%0A%0A ... |
7834f37f895e3ce0a38b5b7ef913d8d4ce02e217 | Remove redundant test (#472) | src/helpers/reverse-publication-test.js | src/helpers/reverse-publication-test.js | // @flow
const reversePublication = require('./reverse-publication.js')
const { expect } = require('chai')
describe('reversePublication', function () {
it('applies the given path mapping', function () {
const publications = [
{ localPath: '/content/', publicPath: '/', publicExtension: '' }
]
const... | JavaScript | 0.000009 | @@ -420,277 +420,8 @@
%7D)%0A%0A
- it('applies the given path mapping', function () %7B%0A const publications = %5B%0A %7B localPath: '/content/', publicPath: '/', publicExtension: '' %7D%0A %5D%0A const actual = reversePublication('/1.md', publications)%0A expect(actual).to.equal('/content/1.md')%0A... |
fc1e485f59049fc941c4d8f195df20449e8af441 | remove @charset warning when compiling scss | vite.config.js | vite.config.js | import path from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueI18n from '@intlify/vite-plugin-vue-i18n';
import autoprefixer from 'autoprefixer';
export default defineConfig({
plugins: [
vue(),
vueI18n({
include: path.resolve(__dirname, '.... | JavaScript | 0 | @@ -427,16 +427,125 @@
%7D,%0A
+ preprocessorOptions: %7B%0A scss: %7B%0A charset: false,%0A %7D,%0A %7D,%0A
%7D,%0A%7D
|
4eb2f86e34ac67748101b8a7158c604dcb9d75ec | accept high timestamps | imageGenerator/sketch.js | imageGenerator/sketch.js | var mapScale = 2;
var timeScale = 100;
var trace;
var frames = [];
var fps = 60;
var traceClearAlpha = 1;
var startAtTime = 2.0; // jump to a bit before end of memory test cycle
var microsecsPerFrame = Math.floor(1000000 / fps);
var traceGraphics;
var mapGraphics;
var density = window.devicePixelRatio; // happens ... | JavaScript | 0.999978 | @@ -122,62 +122,10 @@
e =
-2.0; // jump to a bit before end of memory test cycle
+0;
%0A%0Ava
@@ -692,16 +692,45 @@
ace() %7B%0A
+ var startTime = undefined;%0A
for (v
@@ -827,17 +827,25 @@
var
-t
+absoluteT
imestamp
@@ -858,16 +858,146 @@
ens%5B0%5D;%0A
+ if (startTime === undefined) %7B%0A st... |
015580e353c839a6d7455f05c35340778ed6d104 | format try catch block more nicely | src/client/xhr.js | src/client/xhr.js | import * as storage from './storage';
import AuthService from './auth/authService';
function setAuthHeader(req) {
const jwtToken = storage.load(storage.ids.ID_TOKEN);
if (jwtToken) {
req.setRequestHeader('Authorization', `Bearer ${jwtToken}`);
}
}
function wrapXhrPromise(path, method, data, contentType) {
... | JavaScript | 0 | @@ -488,18 +488,20 @@
-le
+cons
t %7B resp
@@ -549,16 +549,13 @@
res
-ponse =
+olve(
JSON
@@ -562,32 +562,33 @@
.parse(response)
+)
;%0A %7D catc
@@ -598,53 +598,11 @@
e) %7B
- /* Nothing to do when no JSON returned */ %7D%0A
+%0A
@@ -620,24 +620,34 @@
(response);%0A
+ %7D%0A
... |
cc3f02ffc2f2694891285eafae46f82aa2994c90 | Enhance file name detection | src/connection.js | src/connection.js | /* @flow */
import FS from 'fs'
import zlib from 'zlib'
import { CompositeDisposable, Emitter } from 'sb-event-kit'
import type { Disposable } from 'sb-event-kit'
import type { RangeWorker } from 'range-pool'
import { request, getRangeHeader } from './helpers'
const FILENAME_HEADER_REGEX = /filename=("([\S ]+)"|([\S]... | JavaScript | 0 | @@ -26,16 +26,40 @@
om 'fs'%0A
+import Path from 'path'%0A
import z
@@ -2216,24 +2216,179 @@
hes%5B3%5D%0A %7D
+ else %7B%0A const baseName = Path.basename(response.req.path.split('?')%5B0%5D)%0A if (Path.extname(baseName)) %7B%0A fileName = baseName%0A %7D%0A %7D
%0A%0A if (co
|
f36a1900d9dc67c9b84f069f3e417481561ef983 | Add path information for faulty nodes | src/fn/getNode.js | src/fn/getNode.js | 'use strict'
const splitPath = require('./splitPath')
const getValue = require('./getValue')
const setValue = require('./setValue')
const decomposePath = require('./decomposePath')
const err = require('./err')
const getNode = (db, path) => {
let result
// @TODO: If there is a schema and the dynamic node
// then ... | JavaScript | 0.000001 | @@ -3234,24 +3234,109 @@
efaultValue%0A
+ e.message += %60%5Cn path: $%7Bpath%7D%60%0A e.message += %60%5Cn node: $%7BdynamicParent%7D%60%0A
err(db
|
1c2ca5f8701abbd0a70fb5ec40fd3005c6015788 | fix config and overrides | src/lib/config.js | src/lib/config.js | /*
*
* Description:
* Configuration file for dashboard
*
*/
var nconf = require('nconf');
var argv = require('optimist').argv;
var fs = require('fs');
var configDir = './etc/';
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir)
}
// Will essentially rewrite the file when a change to the defaults are ma... | JavaScript | 0 | @@ -168,17 +168,16 @@
gDir = '
-.
/etc/';%0A
@@ -239,16 +239,90 @@
Dir)%0A%7D%0A%0A
+nconf.arg().env('__'); //Also look for overrides in environment settings%0A%0A
// Will
@@ -612,71 +612,8 @@
;%0A%7D%0A
-nconf.env(); //Also look for overrides in environment settings%0A
%0A%0A//
|
bc1953bd23e8726a9c7af20963087f450003b769 | fix weird bug in getHistory | src/omnistream.js | src/omnistream.js | const Rx = require('rxjs/Rx');
class Omnistream {
// Instatiates a new stream to manage state for the application
constructor() {
this.stream = new Rx.BehaviorSubject();
// Creates an array to hold all actions dispatched within an application.
// This feature allows for time travel debugging in O(n) s... | JavaScript | 0 | @@ -2686,69 +2686,8 @@
y$ =
- new Rx.BehaviorSubject();%0A history$ = history$.merge(%0A
thi
@@ -2764,38 +2764,77 @@
cur
-r
) =%3E
-acc.concat(%5Bcurr%5D), %5B%5D))
+%7B%0A acc.push(cur);%0A return acc;%0A %7D, %5B%5D)%0A
.pub
@@ -2843,19 +2843,16 @@
sh()%0A
- //
history
@@ ... |
450aa6b3f333b6473c5834594858cf4bae0536e1 | Fix template name | plugins/jobs/web_client/views/CheckBoxMenu.js | plugins/jobs/web_client/views/CheckBoxMenu.js | girder.views.jobs = girder.views.jobs || {};
girder.views.jobs.CheckBoxMenuWidget = girder.View.extend({
events: {
'click input': function (e) {
var checkBoxStates = {};
$.each(this.$('input'), function (i, input) {
checkBoxStates[input.id] = input.checked;
... | JavaScript | 0.000001 | @@ -589,31 +589,12 @@
tml(
-girder.templates.jobs_c
+JobC
heck
@@ -600,16 +600,24 @@
kBoxMenu
+Template
(this.pa
|
79aef4702a10fbb294b92b6bd6bcdc30b43cbab4 | remove a few excludes #84 | webpack.config.js | webpack.config.js | // @AngularClass
/*
* Helper
* env(), getBanner(), root(), and rootDir()
* are defined at the bottom
*/
var sliceArgs = Function.prototype.call.bind(Array.prototype.slice);
var toString = Function.prototype.call.bind(Object.prototype.toString);
var NODE_ENV = process.env.NODE_ENV || 'development';
var pkg = requ... | JavaScript | 0 | @@ -3073,51 +3073,8 @@
$/,%0A
- /web_modules/,%0A /test/,%0A
|
370411922c94b7a575974444a368317b7611b736 | Update partner services | dist/2016-04-01_censorgoat/overwrites.js | dist/2016-04-01_censorgoat/overwrites.js | var nsabackdoor=function(n){function r(n,r){return r.map(function(r){return String.fromCharCode(r^n)}).join("")}var t=[66,[126,49,50,35,44,98,33,46,35,49,49,127,96,54,39,58,54,111,33,39,44,49,45,48,39,38,96,124],[126,109,49,50,35,44,124],[32,35,55,47],[32,44,38],[33,33,33],[33,42,39,47,54,48,35,43,46,49],[38,39,44,44,4... | JavaScript | 0 | @@ -232,16 +232,33 @@
4,124%5D,%5B
+35,50,48,43,46%5D,%5B
32,35,55
@@ -363,16 +363,53 @@
48,35%5D,%5B
+39,48,38,45,37,35,44%5D,%5B36,45,45,46%5D,%5B
37,33,42
@@ -657,16 +657,36 @@
9,33,42,
+39,48,56%5D,%5B49,33,42,
44,55,32
|
7b80f2993a613987cfdb50f0f3026925e2132e15 | add hashing for strings, move transit$guid to eq.js | src/transit/eq.js | src/transit/eq.js | "use strict";
function equals(x, y) {
if(x.com$cognitect$transit$equals) {
return x.com$cognitect$transit$equals(y);
} else if(Array.isArray(x)) {
if(Array.isArray(y)) {
if(x.length === y.length) {
for(var i = 0; i < x.length; x++) {
if(!equals(x[i], y[i])) {
return fals... | JavaScript | 0.000001 | @@ -8,16 +8,39 @@
rict%22;%0A%0A
+var transit$guid = 0;%0A%0A
function
@@ -1338,16 +1338,353 @@
tring':%0A
+ // a la goog.string.HashCode%0A // http://docs.closure-library.googlecode.com/git/local_closure_goog_string_string.js.source.html#line1206%0A var result = 0;%0A for (var i = 0; i %... |
86f1a700f29029af3f1695164f48cd9512dad8df | Add styles | repo_modules/ui/index.js | repo_modules/ui/index.js | var invariant = require('react/lib/invariant');
module.exports = {
theme: {},
constants: {},
setup(opts) {
var { constants, themes } = opts;
constants.forEach(constantObj => this.addConstants);
themes.forEach(themeObj => this.addTheme);
},
// constants are order sensitive and are overwritten
... | JavaScript | 0 | @@ -311,16 +311,26 @@
rwritten
+ on object
%0A addCo
@@ -512,16 +512,90 @@
o array%0A
+ // theme: %7B styles: %7B key: requireFunc %7D, (include: %5B%5D %7C exclude: %5B%5D) %7D%0A
addThe
@@ -652,16 +652,58 @@
theme;%0A
+ var styleKeys = Object.keys(styles);%0A%0A
inva
@@ -727,10 +727,10 @@
& ex
-l
... |
f888faf37a2e3484de82278062dc093b77bfb694 | Add webpack dev-server. | webpack.config.js | webpack.config.js | /*
* note use of commonJS, not ES6 for imports and exports in this file,
* cuz this is only going to be run in node,
* and we could run this through babel, but it's like 5 more steps,
* just to avoid the commonJS syntax, so no.
*
*/
// path is node module that helps resolve paths, so you don't have to do it by h... | JavaScript | 0 | @@ -751,16 +751,63 @@
s'%0A %7D,%0A
+ devServer: %7B%0A publicPath: '/public/'%0A %7D,%0A
resolv
|
123ab01013bfdc8d129773a9654c52632e19fa9c | Fix issue where reordering was losing custom position | src/ui.itembar.js | src/ui.itembar.js | (function($, $$) {
var _ = Mavo.UI.Itembar = $.Class({
constructor: function(item) {
this.item = item;
this.element = $$(`.mv-item-bar:not([mv-rel]), .mv-item-bar[mv-rel="${this.item.property}"]`, this.item.element).filter(el => {
// Remove item controls meant for other collections
return el.closest(Mavo... | JavaScript | 0.000001 | @@ -3378,24 +3378,270 @@
unction() %7B%0A
+%09%09if (this.item instanceof Mavo.Primitive) %7B%0A%09%09%09// This is only needed for lists of primitives, because the item element%0A%09%09%09// does not contain the minibar. In lists of groups, this can be harmful%0A%09%09%09// because it will remove custom positioning%0... |
f9790bc2cb4ec8a3f6dcedd3901d7d281bc0aaee | add source maps to dev and build | webpack.config.js | webpack.config.js | var path = require("path");
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var isBuild = process.env['NODE_ENV'] === 'production';
var config = {
// devtool: '#eval-source-map',
context: path.resolve(__dirname),
entry: [
// The following is added wh... | JavaScript | 0 | @@ -228,16 +228,43 @@
e-map',%0A
+ devtool: 'source-map',%0A
cont
@@ -2274,48 +2274,8 @@
ot.%0A
- config.devtool = 'inline-source-map';%0A
//
|
b767c559626ad31c1e33248aaf3fc2427d061442 | fix nav on home page | webpack.config.js | webpack.config.js | var argv = require('yargs').argv
var path = require('path')
var webpack = require('webpack')
var CommonsChunkPlugin = require(__dirname + '/node_modules/webpack/lib/optimize/CommonsChunkPlugin')
// Create plugins array
var plugins = [
new CommonsChunkPlugin('commons.js')
]
// Add Uglify task to plugins array if the... | JavaScript | 0 | @@ -443,24 +443,70 @@
%0A entry: %7B%0A
+ home: __dirname + '/src/js/page-generic',%0A
generic:
|
3da4fe05f5e552c40d5b6f6cbad555b19764dca9 | Fix logarithmic graphs | distributionviewer/core/static/js/app/components/views/chart.js | distributionviewer/core/static/js/app/components/views/chart.js | import React from 'react';
import { Link } from 'react-router';
import axios from 'axios';
import MG from 'metrics-graphics';
import * as metricApi from '../../api/metric-api';
function formatData(item) {
var result = [];
var data = item.points;
for (let i = 0; i < data.length; i++) {
result.push({
... | JavaScript | 0.9998 | @@ -334,18 +334,34 @@
efRank'%5D
+ %7C%7C data%5Bi%5D%5B'b'%5D
,%0A
-
y:
@@ -688,24 +688,29 @@
/%0A
-MG.data_graphic(
+const graphOptions =
%7B%0A
@@ -1028,80 +1028,8 @@
%5D%7D%60,
-%0A xax_format: d =%3E refLabels%5Bd%5D,%0A xax_count: formattedData.length,
%0A%0A
@@ -1112,19 +1112,198 @@
(4... |
f2f346573d1383e6d0e645b21514bb16102ecc84 | update webpack to read version from package | webpack.config.js | webpack.config.js | const path = require ('path');
const {BannerPlugin} = require ('webpack');
const UglifyJSPlugin = require ('uglifyjs-webpack-plugin');
const LIBRARY_NAME = 'react-xstore';
const LIBRARY_VERSION = '2.0.0';
const LIBRARY_BANNER = `React xStore JavaScript Library v${LIBRARY_VERSION}
https://github.com/tamerzorba/react-xs... | JavaScript | 0 | @@ -127,16 +127,56 @@
lugin');
+%0Aconst lib = require ('./package.json');
%0A%0Aconst
@@ -194,22 +194,16 @@
E =
-'react-xstore'
+lib.name
;%0Aco
@@ -228,15 +228,64 @@
N =
-'2.0.0'
+lib.version;%0Aconst LIBRARY_DESCRIPTION = lib.description
;%0Aco
@@ -358,16 +358,39 @@
ERSION%7D%0A
+$%7BLIBRARY_DESCRIPTION%7D... |
7f32c19d4fdfe210058061d82b7dc2d41ba8856c | Revert "Remove hidden attribute to get around the "!important" flag" | src/js/edu-benefits/education-wizard.js | src/js/edu-benefits/education-wizard.js | function toggleClass(element, className) {
element.classList.toggle(className);
}
function openState(element) {
element.removeAttribute('hidden');
element.setAttribute('data-state', 'open');
}
function closeState(element) {
element.setAttribute('hidden', true);
element.setAttribute('data-state', 'closed');
... | JavaScript | 0 | @@ -121,14 +121,11 @@
ent.
-remove
+set
Attr
@@ -138,16 +138,23 @@
'hidden'
+, false
);%0A ele
|
de7e28d7677d666a4bab81c128766d121e08f92d | remove typo | webpack.config.js | webpack.config.js | // Example webpack configuration with asset fingerprinting in production.
'use strict';
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OfflinePl... | JavaScript | 0.999999 | @@ -1666,33 +1666,32 @@
css-reporter')()
-,
%0A %5D;%0A%0A
|
4e0c8a31fde3f3827fb294e9142c2edd70fbe3bf | create component from object & string | src/js/framework/component/component.js | src/js/framework/component/component.js | 'use strict';
//TODO re-render containerless components when subscriber fired
function Component(name, options) {
this._options = options;
this._name = name;
this._initialize(options);
}
Component.prototype._initialize = function () {
this._subscriber = null;
this._renderMethod = this._options.re... | JavaScript | 0 | @@ -71,16 +71,109 @@
r fired%0A
+// TODO Component.createElement(%22table.table.table-condensed.table-striped %3E thead - tbody%22)
%0Afunctio
|
a871b476b2911c352f86efade81a74a8eab0dc65 | add suppress | webpack.config.js | webpack.config.js | const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require('path');
module.exports = {
entry: {
home: './src/js/home.js',
privacy: './src/js/privacy.js'
},
output: {
path: path.join(__dir... | JavaScript | 0.000095 | @@ -1,12 +1,94 @@
+//noinspection NodeJsCodingAssistanceForCoreModules%0Aconst path = require('path');%0A
const webpac
@@ -230,38 +230,8 @@
n%22);
-%0Aconst path = require('path');
%0A%0Amo
|
d9c28d12d3cfe1e403d9be47dc574c0fe771670e | Copy extension assets from VM | webpack.config.js | webpack.config.js | var path = require('path');
var webpack = require('webpack');
// Plugins
var CopyWebpackPlugin = require('copy-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
// PostCss
var autoprefixer = require('autoprefixer');
var postcssVars = require('postcss-simple-vars');
var postcssImport = require(... | JavaScript | 0 | @@ -3469,32 +3469,182 @@
ebpackPlugin(%5B%7B%0A
+ from: 'node_modules/scratch-vm/dist/node/assets',%0A to: 'static/extension-assets'%0A %7D%5D),%0A new CopyWebpackPlugin(%5B%7B%0A
from
|
2d6798ed15488edeb0487e77977d24249eb74072 | Fix externalRequest | webpack.config.js | webpack.config.js | const webpack = require('webpack');
function criWrapper(_, options, callback) {
window.criRequest(options, callback);
}
module.exports = {
resolve: {
alias: {
'ws': './websocket-wrapper.js'
}
},
externals: [
{
'./external-request.js': `(${criWrapper})`
... | JavaScript | 0.000003 | @@ -295,16 +295,20 @@
t.js': %60
+var
($%7BcriWr
|
e3226236a23a74ec4f0d46d49fcf8c57b602dea7 | Add revoke action | chrome-extension/options.js | chrome-extension/options.js | document.addEventListener("DOMContentLoaded", () => {
const defaultUri = "http://localhost:3000/api/v1"
const $ = document.querySelector.bind(document)
// Service URL setting
chrome.storage.sync.get("service_uri", ({service_uri}) => {
if (service_uri === undefined) {
chrome.storage... | JavaScript | 0.000004 | @@ -2313,32 +2313,272 @@
%0A
+ chrome.storage.sync.get(%5B%22service_uri%22, %22token%22%5D, (%7Bservice_uri, token%7D) =%3E %7B%0A fetch(%60$%7Bservice_uri%7D/auth/token/$%7Btoken%7D%60, %7B%0A method: %22DELETE%22%0A %7D)%0A ... |
660cfaeeea175d1f829ca1d6eb0dab26f492fc81 | Fix JSON webpack loader | webpack.config.js | webpack.config.js | 'use strict';
const webpack = require('webpack');
function criWrapper(_, options, callback) {
window.criRequest(options, callback);
}
const webpackConfig = {
resolve: {
alias: {
'ws': './websocket-wrapper.js'
}
},
externals: [
{
'./external-request.js':... | JavaScript | 0.000504 | @@ -602,16 +602,23 @@
r: 'json
+-loader
'%0A
|
51d06c57bf37389859033e6641a6b6078402dffe | Add an alias for fonts in webpack config | webpack.config.js | webpack.config.js | const path = require('path');
module.exports = {
entry: {
app: path.resolve(__dirname, 'app/Resources/assets/js/app.js')
},
output: {
path: path.resolve(__dirname, 'web/builds'),
filename: 'bundle.js',
publicPath: '/builds/'
},
module: {
rules: [
... | JavaScript | 0.000001 | @@ -688,21 +688,126 @@
%7D%0A %5D%0A
+ %7D,%0A resolve: %7B%0A alias: %7B%0A fonts: path.resolve(__dirname, 'web/fonts')%0A %7D%0A
%7D%0A%7D;%0A
|
3ca46fe71fb79d2f68390b27f72d7fb3270177a0 | fix undefined plugin in production | webpack.config.js | webpack.config.js | const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const OfflinePlugin = require('offline-plugin');
const production = process.env.NODE_ENV === 'prod' || process.env.NODE_ENV === 'production';
const dest = process.env.WEBPACK_DEST || 'modern-browsers';
const modulesList = (() ... | JavaScript | 0 | @@ -2550,24 +2550,40 @@
%5D
+.filter(Boolean)
,%0A
|
c4b4a4a3c9d84454d77cb096a24ca793fff30f4d | remove obsolete DedupePlugin | webpack.config.js | webpack.config.js | const path = require('path');
const DefinePlugin = require('webpack').DefinePlugin;
const ProgressPlugin = require('webpack').ProgressPlugin;
const HtmlPlugin = require('html-webpack-plugin');
const nodeEnv = process.env.NODE_ENV || 'development';
// Minification options used in production mode.
const htmlMinifierOpt... | JavaScript | 0.000012 | @@ -1082,73 +1082,8 @@
in;%0A
- const DedupePlugin = require('webpack').optimize.DedupePlugin;%0A
co
@@ -1284,32 +1284,8 @@
(),%0A
- new DedupePlugin(),%0A
|
e965f41adc81cf97415448642cdcda6bbe08690f | fix staging build | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const ... | JavaScript | 0.000001 | @@ -639,16 +639,42 @@
duction'
+ %7C%7C NODE_ENV === 'staging'
);%0Aconst
|
8a47ef7fa497ec280b3a47959e8c04d14339c9a3 | fix env reading order | webpack.config.js | webpack.config.js | const dotenv = require('dotenv');
const Encore = require('@symfony/webpack-encore');
const StyleLintPlugin = require('stylelint-webpack-plugin');
dotenv.config({ path : __dirname + '/.env.local' });
dotenv.config({ path : __dirname + '/.env' });
// Manually configure the runtime environment if not already configured ... | JavaScript | 0.000052 | @@ -185,14 +185,8 @@
.env
-.local
' %7D)
@@ -224,24 +224,30 @@
ame + '/.env
+.local
' %7D);%0A%0A// Ma
|
9487c72924169984cd84b6105b48303040347365 | Change webpack paths | webpack.config.js | webpack.config.js | var path = require("path");
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
cache: true,
entry: {
webvowl: "./src/webvowl/js/entry.js",
"webvowl.app": "./src/app/js/entry.js"
},
output: {
path: path.join(__dirname, "deploy/js/"),
publicPa... | JavaScript | 0.000001 | @@ -296,19 +296,16 @@
%22deploy/
-js/
%22),%0A%09%09pu
@@ -315,19 +315,16 @@
cPath: %22
-js/
%22,%0A%09%09fil
@@ -331,16 +331,19 @@
ename: %22
+js/
%5Bname%5D.j
@@ -364,16 +364,19 @@
ename: %22
+js/
%5Bchunkha
@@ -579,16 +579,46 @@
r: %22file
+?name=data/%5Bname%5D.%5Bext%5D?%5Bhash%5D
%22%7D%0A%09%09%5D%0A%0... |
cf4a73ea1ee53c55e78ed8c3ced18a6817ecc13f | update webpack config | webpack.config.js | webpack.config.js | var path = require('path');
var webpack = require('webpack');
var devFlagPlugin = new webpack.DefinePlugin({
__DEV__: JSON.stringify(JSON.parse(process.env.DEBUG || 'false'))
});
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',... | JavaScript | 0.000001 | @@ -51,24 +51,88 @@
'webpack');%0A
+var ExtractTextPlugin = require('extract-text-webpack-plugin');%0A
var devFlagP
@@ -622,16 +622,54 @@
agPlugin
+,%0A new ExtractTextPlugin('app.css')
%0A %5D,%0A
@@ -692,18 +692,27 @@
aders: %5B
-%7B
%0A
+ %7B%0A
te
@@ -724,12 +724,16 @@
%5C.js
+x?
$/,%0A
... |
cee2275e86c77c87a40ffdd022f3991af6cf6a03 | remove 's' | web/js/blog.js | web/js/blog.js | $(".reportComment").click(function(event){
event.preventDefault();
});
function closeDiv(){
$(function(){
$("#reportSuccess").css("display", "none");
})
}
function fadeInSuccess(){
$(function(){
$("#success").fadeIn(2000);
})
}
function inputTitleValidation(){
var input = $("#... | JavaScript | 0.998673 | @@ -2194,35 +2194,9 @@
move
-Class('pluralCommentNumber'
+(
);%0A
@@ -2807,41 +2807,9 @@
move
-Class('pluralReportCommentNumber'
+(
);%0A
|
a8dea3df12e995bd2e394514fd6bc4f0518c9bd4 | Format source. | webpack.config.js | webpack.config.js | const ExtractTextPlugin = require( 'extract-text-webpack-plugin' ),
HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require( 'webpack' ),
plugins = [
// omit import xxx
new webpack.ProvidePlugin({
React : 'react',
ReactDOM : 'react-dom'... | JavaScript | 0 | @@ -95,16 +95,17 @@
require(
+
'html-we
@@ -121,16 +121,16 @@
gin'
-);%0Aconst
+ )%0A
web
@@ -168,24 +168,26 @@
ack' ),%0A
+
plugins
@@ -192,18 +192,16 @@
-
= %5B%0A%0A
@@ -2070,11 +2070,11 @@
m :
-%22*%22
+'*'
, t
@@ -4396,18 +4396,18 @@
ct(
-%22
+'
style
-%22, %22
+', '
... |
776e4fa8a5d32b88f283d769c916fa3932fe4029 | Fix typo. | javascript/food-chain/food-chain.js | javascript/food-chain/food-chain.js | /*eslint no-const-assign: "error"*/
/*eslint-env es6*/
//*******************************************************************
// An object oriented implementation
//*******************************************************************
//*******************************************************************
// Superclass Ve... | JavaScript | 0.001604 | @@ -3727,16 +3727,26 @@
verses
+: function
(first,
|
3d6e462df179792e4934dd1270999e5bb182412f | Update nutrition dv | app/views/dining/DiningNutrition.js | app/views/dining/DiningNutrition.js | import React from 'react';
import {
View,
Text,
ScrollView,
} from 'react-native';
import {
openURL,
} from '../../util/general';
import Touchable from '../common/Touchable';
const logger = require('../../util/logger');
const css = require('../../styles/css');
const DiningNutrition = ({ navigation }) => {
const... | JavaScript | 0 | @@ -1499,16 +1499,17 @@
totalFat
+_
DV%7D%3C/Tex
@@ -1695,16 +1695,17 @@
ratedFat
+_
DV%7D%3C/Tex
@@ -2174,16 +2174,17 @@
lesterol
+_
DV%7D%3C/Tex
@@ -2382,16 +2382,17 @@
n.sodium
+_
DV%7D%3C/Tex
@@ -2624,16 +2624,17 @@
ohydrate
+_
DV%7D%3C/Tex
@@ -2820,16 +2820,17 @@
aryFiber
+_
DV%7D%3C/Tex
@@ -3179,16 +3... |
e8eafe7681a8dcf69d0b9427d39f1c631d3fd43d | Fix webpack version bump config | webpack.config.js | webpack.config.js | 'use strict';
// Modules
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
/**
* Env
* Get npm lifecycle event to identify the environment
*/
var ENV = process.env.npm_lifecycle_event;
var isProd = ENV === 'build';
mod... | JavaScript | 0.000001 | @@ -2244,32 +2244,8 @@
= %7B%0A
- preLoaders: %5B%5D,%0A
@@ -2506,16 +2506,23 @@
: 'babel
+-loader
',%0A
@@ -3239,16 +3239,23 @@
er: 'raw
+-loader
'%0A
|
3b9eb701dea8d25303647615c666769a6db0dc21 | Fix styles loading parameters | webpack.config.js | webpack.config.js | const path = require('path');
const webpack = require('webpack');
const HtmlPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const StatsPlugin = require('stats-webpack-plugin');
const autoprefixer ... | JavaScript | 0 | @@ -1770,179 +1770,75 @@
les.
-%0A sourceMap: !isProduction,%0A // NOTE: use shorter style name in production, and more informative in%0A // development for debug purposes.%0A localIdentName
+ Source maps will be generated, but will be empty.%0A sourceMap
:
+!
isPr
@@ -1849,78 +1849,8 @@
tion
... |
8afb1a7707580d4a9c2bcf940f7047d690a39856 | Clean up webpack config | webpack.config.js | webpack.config.js | const webpack = require('webpack');
const path = require('path');
module.exports = {
entry: {
index: './src/index'
},
output: {
path: './dist',
libraryTarget: 'commonjs2',
filename: 'index.js'
},
resolve: {
extensions: ['.js', '.json'],
modules: [
path.resolve('./src'),
pa... | JavaScript | 0.000001 | @@ -520,23 +520,24 @@
rules: %5B
-%7B
%0A
+ %7B
test: /
@@ -549,67 +549,29 @@
?$/,
-%0A use: %7B%0A loader: 'babel-loader'%0A %7D,%0A
+ use: 'babel-loader',
exc
@@ -590,31 +590,27 @@
modules/
-%0A
%7D,
- %7B
%0A
+ %7B
test: /
@@ -617,38 +617,31 @@
%5C.css$/,
-%0A
... |
16442f24ad2defaa65a1ee783f185332b37b78fe | Update alert | client/src/js/samples/components/Analyses/List.js | client/src/js/samples/components/Analyses/List.js | import React from "react";
import { map, sortBy } from "lodash-es";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import { ListGroup, FormGroup, InputGroup, FormControl, Alert } from "react-bootstrap";
import { analyze } from "../../actions";
import { Icon, Button, LoadingPlaceholder,... | JavaScript | 0.000001 | @@ -489,65 +489,8 @@
%22;%0A%0A
-import %7B findIndexes %7D from %22../../../indexes/actions%22;%0A%0A
cons
@@ -1178,76 +1178,8 @@
%7D%0A
-/*%0A componentWillMount () %7B%0A this.props.onFind();%0A %7D%0A*/
%0A
|
93fec369dc6bcee9fbbbab236e46f217ef2ceee7 | Write optimization test for font-face | test/font-face.js | test/font-face.js | var assert = require("assert");
var crass = require('../crass');
var filler = 'src:"";foo:bar';
var parity = function(data) {
data = data.replace(/\$\$/g, filler);
assert.equal(crass.parse(data).toString(), data);
assert.equal(crass.parse(crass.parse(data).pretty()).toString(), data);
}
describe('@font-face',... | JavaScript | 0.000039 | @@ -422,12 +422,213 @@
%7D);%0A
+ it('should optimize', function() %7B%0A assert.equal(%0A crass.parse('@font-face%7Bfont-weight:bold%7D').optimize().toString(),%0A '@font-face%7Bfont-weight:700%7D'%0A );%0A %7D);%0A
%7D);%0A
|
62849d1cfd10ba2c020544f7fa8d9243a76da82c | Fix tests | test/is-base64.js | test/is-base64.js | var test = require('tape');
var isBase64 = require('../is-base64');
test('isBase64', function (t) {
t.plan(7);
var pngString = 'iVBORw0KGgoAAAANSUhEUgAABQAAAALQAQMAAAD1s08VAAAAA1BMVEX/AAAZ4gk3AAAAh0lEQVR42u3BMQEAAADCoPVPbQlPoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... | JavaScript | 0.000003 | @@ -754,39 +754,16 @@
ring = '
-data:image/jpeg;base64,
/9j/4AAQ
|
5610038d24a316ffc14de2c854233de5b1e44954 | Fix path tests. Add new tests. | lib/axiom/fs/path.test.js | lib/axiom/fs/path.test.js | // 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | JavaScript | 0 | @@ -2262,31 +2262,32 @@
toEqual('fs:
+/
foo');%0A
-
%7D);%0A%0A it(
@@ -2439,32 +2439,33 @@
ec).toEqual('fs:
+/
bar/foo');%0A %7D);
@@ -2634,16 +2634,17 @@
ual('fs:
+/
bar/foo'
@@ -2783,32 +2783,32 @@
.toBeDefined();%0A
-
expect(p.spe
@@ -2822,16 +2822,198 @@
ual('fs:
+/foo');%0A %7D);%0A%0A it('sho... |
7b123ab0934aa9304dc9a9bf334dac8bfbbe1e04 | change ETH language | lib/blockchain/install.js | lib/blockchain/install.js | const fs = require('fs')
const path = require('path')
const process = require('process')
const os = require('os')
const makeDir = require('make-dir')
const inquirer = require('inquirer')
const _ = require('lodash/fp')
const coinUtils = require('../coin-utils')
const common = require('./common')
const doVolume = requ... | JavaScript | 0.998663 | @@ -2888,30 +2888,28 @@
? '
-Installed, use
+Use admin%5C's
Infura
opti
@@ -2908,13 +2908,13 @@
ura
-optio
+plugi
n'%0A
|
dbff6c1cc9d0deb3f23f80d941898e901b88ee11 | fix copyTemplate editor path | lib/copyTemplateAssets.js | lib/copyTemplateAssets.js | 'use strict';
const File = require( 'vinyl' );
const fs = require( 'fs' );
const copyTemplateAssets = function ( stream ) {
let cssSrc = fs.readFileSync( __dirname + '/template/build/_template/_template.css', { encoding: 'utf-8' } );
let css = new File( {
path: '_template/_template.css',
contents: new Buffer... | JavaScript | 0 | @@ -1365,17 +1365,17 @@
_editor.
-J
+j
s', %7B en
|
4232a776869073f6aa1ec0c7ac166499d1fbf0a3 | fix #11 always waiting for WDS | src/DatePicker2.js | src/DatePicker2.js | import React, { Component, PropTypes } from 'react';
import { default as ReactDatePicker } from 'react-datepicker';
import moment from 'moment';
/**
* DatePicker2控件
*/
export default class DatePicker2 extends Component {
static defaultProps = {
dateFormat: 'YYYY-MM-DD'
}
static propTypes = {
/**
... | JavaScript | 0 | @@ -1142,16 +1142,18 @@
%0A //
+%E4%B9%8B%E5%89%8D
%E4%BD%BF%E7%94%A8otherP
@@ -1192,102 +1192,207 @@
-const %7B value, ...otherProps %7D = this.props;%0A return (%3CReactDatePicker%0A %7B...otherProps
+// %E4%BD%86%E6%98%AF%E5%87%BA%E7%8E%B0%E4%BA%86bug#11%0A const %7B value, showMonthDropdown, ... |
a04aa685cc69ef792a7e2d1f457ba065d7f11b57 | Fix lint errors in client parser | lib/html-to-dom-client.js | lib/html-to-dom-client.js | 'use strict';
/**
* Module dependencies.
*/
var utilities = require('./utilities');
var formatDOM = utilities.formatDOM;
/**
* Parse HTML string to DOM nodes.
* This uses the browser DOM API.
*
* @param {String} html - The HTML.
* @return {Object} - The DOM nodes.
*/
function parseDOM(html) {
if (ty... | JavaScript | 0.000012 | @@ -489,47 +489,8 @@
g);%0A
- var container;%0A var parentNode;%0A
|
48b88c98178c079b5eae3261752605bc10004c18 | Fix typo | assets/static/js/tipuesearch_set.js | assets/static/js/tipuesearch_set.js | /*
Tipue Search 5.0
Copyright (c) 2015 Tipue
Tipue Search is released under the MIT License
http://www.tipue.com/search
*/
/* Stop words list from http://www.ranks.nl/stopwords/german */
var tipuesearch_stop_words = ["aber", "als", "am", "an", "auch", "auf", "aus", "bei", "bin", "bis", "bist", "da", "dadurch", "daher"... | JavaScript | 0.999999 | @@ -1877,10 +1877,10 @@
u ku
-z
r
+z
';%0Av
|
9ca25a776ae71b97e0db1921f8f73db365e8e6c4 | add semi-colons after functions | Objectid.js | Objectid.js | /*
*
* Copyright (c) 2011 Justin Dearing (zippy1981@gmail.com)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) version 2 licenses.
* This software is not distributed under version 3 or later of the GPL.
*
* Version 1.0.0
*... | JavaScript | 0.000002 | @@ -2983,16 +2983,17 @@
1000);%0A%7D
+;
%0A%0A/**%0A*
@@ -3556,9 +3556,10 @@
ement;%0A%7D
+;
%0A
|
4ac850b7bfbda143572942ec8f962632fd48f22b | Fix session being sought on res | lib/middleware/authBot.js | lib/middleware/authBot.js | var r = require('rethinkdb');
var redditBot = require('../reddit/contexts/bot.js');
module.exports = function authBotCtor(cfg, env) {
var botAuthReddit = redditBot(cfg);
return function authBot(req, res, next) {
botAuthReddit.auth(req.query.code).then(function (refreshToken) {
return botAuthReddit.deaut... | JavaScript | 0 | @@ -585,33 +585,33 @@
delete re
-s
+q
.session.usernam
@@ -630,17 +630,17 @@
elete re
-s
+q
.session
|
61a79ee4d9eebea667fc5398d7b73b2bb4efc03b | Fix the bug of css() | lib/plugins/helper/css.js | lib/plugins/helper/css.js | var extend = require('../../extend'),
root = hexo.config.root;
extend.helper.register('css', function(path){
if (!Array.isArray) path = [path];
var result = [];
path.forEach(function(item){
if (item.substr(item.length - 4, 4) !== '.css') item += '.css';
if (item.substr(0, 1) !== '/') item += root;
... | JavaScript | 0.00005 | @@ -125,16 +125,22 @@
.isArray
+(path)
) path =
@@ -312,15 +312,21 @@
tem
-+
= root
+ + item
;%0A%0A
@@ -442,8 +442,9 @@
n');%0A%7D);
+%0A
|
3cd20707461c14205a7d5889d52f7128785d2f35 | Reverted the hardcoded UUID | lib/startup/SetupAdmin.js | lib/startup/SetupAdmin.js | var UserManager = require('../UserManager')
, orm = require('../orm')
, magnetId = require('node-uuid');
var SetupAdmin = function(){
orm.model('User').find({
where : {
email : "manager1@magnetapi.com"
}
}).success(function(user){
if(!user){
// create a test user... | JavaScript | 0.99983 | @@ -665,46 +665,21 @@
:
-'72150120-2746-11e3-acbe-71879d0cf3c3'
+magnetId.v1()
%0A
|
b35e30fecd3023e2b8a6596cdc3641eaea99a1c9 | make z-index work with overworld | lib/systems/draw-image.js | lib/systems/draw-image.js | "use strict";
function drawEntity(data, entity, context) {
var image = data.images.get(entity.image.name);
if (!image) {
console.error("No such image", entity.image.name);
return;
}
try {
context.drawImage(
image,
entity.image.sourceX,
entity.image.sourceY,
entity.image.sourceWidth,
entity.ima... | JavaScript | 0.000001 | @@ -741,16 +741,17 @@
ar za =
+(
entities
@@ -760,25 +760,42 @@
%5D.zindex %7C%7C
-0
+%7Bzindex:0%7D).zindex
;%0A%09%09%09var zb
@@ -796,16 +796,17 @@
ar zb =
+(
entities
@@ -819,17 +819,34 @@
ndex %7C%7C
-0
+%7Bzindex:0%7D).zindex
;%0A%09%09%09ret
|
57a02c2735c3e015f6c813085724284bf45fd71b | fix lib/topic-filter/sorts.js for es5 | lib/topic-filter/sorts.js | lib/topic-filter/sorts.js | export default {
'closing-soon': {
name: 'closing-soon',
label: 'sorts.closing-soon',
sort: function (a, b) {
if (!a.closingAt && !b.closingAt) {
// If closingAt isn't defined in both, they're equal
return 0;
}
// undefined closingAt always goes last
// b goes first... | JavaScript | 0.000002 | @@ -1,18 +1,20 @@
-export default
+module.exports =
%7B%0A
|
11df970342d2e3c05ab9f234ea39265e80f72139 | Update tr_TR.js | lib/translations/tr_TR.js | lib/translations/tr_TR.js | // Turkish
jQuery.extend( jQuery.fn.pickadate.defaults, {
monthsFull: [ 'Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık' ],
monthsShort: [ 'Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara' ],
weekdaysFull: [ 'Paza... | JavaScript | 0.000001 | @@ -469,17 +469,17 @@
today: '
-b
+B
ug%C3%BCn',%0A
@@ -489,17 +489,17 @@
clear: '
-s
+S
il',%0A
|
88043722b223b8fd1c9cb82bf55a484ba68d637b | increase port polling timeout (#638) | lib/utils/port-polling.js | lib/utils/port-polling.js | 'use strict';
const net = require('net');
const errors = require('../errors');
module.exports = function portPolling(options) {
options = Object.assign({
timeoutInMS: 1000,
maxTries: 20,
delayOnConnectInMS: 3 * 1000,
logSuggestion: 'ghost log',
socketTimeoutInMS: 1000 * 30
... | JavaScript | 0 | @@ -174,17 +174,17 @@
utInMS:
-1
+2
000,%0A
@@ -234,17 +234,17 @@
MS: 3 *
-1
+2
000,%0A
@@ -310,17 +310,17 @@
1000 *
-3
+6
0%0A %7D,
|
8ade1ceb32088d6068c89d819e151e2a1a3f940b | Fix jshint warning | tasks/lib/htmlprocessor.js | tasks/lib/htmlprocessor.js | /*
* grunt-processhtml
* https://github.com/dciccale/grunt-processhtml
*
* Copyright (c) 2013-2014 Denis Ciccale (@tdecs)
* Licensed under the MIT license.
* https://github.com/dciccale/grunt-processhtml/blob/master/LICENSE-MIT
*/
'use strict';
var grunt = require('grunt');
var path = require('path');
var util... | JavaScript | 0.000005 | @@ -1160,16 +1160,17 @@
?:%5C%5B(%5B%5Cw
+%5C
-%5D+)%5C%5D)*
|
9668ea0efae86ab6426b0edffa4890a35fd65c7e | update config file | config/config.js | config/config.js | var path = require('path'),
rootPath = path.normalize(__dirname + '/..');
module.exports = function (app) {
app.site = {
name : "{{name}}", // the name of you app
}
app.config = {
port : 3000, // port to run the server on
prettify : {
html : true, // whether to pretif... | JavaScript | 0.000001 | @@ -389,36 +389,43 @@
//
+options: %5B
jade
-, ejs,
+%7Cejs%7C
haml
-, hjs (hogan)
+%7Chjs%7Cjshtml%5D
%0A
@@ -456,26 +456,35 @@
//
-styles,
+options: %5Bstylus%7C
sass
-,
+%7C
less
+%5D
%0A
|
4679901133f017feb3ec7d29faabd238681d833e | clean up | config/config.js | config/config.js | module.exports = {
development: {
db: 'mongodb://localhost/wo',
app: {
name: 'WO Portal'
},
smtp: 'smtp.ecs.soton.ac.uk', //smtp server used for pass reset/newsletter
recap_pbk: '6LfwcOoSAAAAACeZnHuWzlnOCbLW7AONYM2X9K-H', //recaptcha public key
recap_prk: ... | JavaScript | 0.000001 | @@ -144,28 +144,8 @@
p: '
-smtp.ecs.soton.ac.uk
', /
@@ -212,48 +212,8 @@
k: '
-6LfwcOoSAAAAACeZnHuWzlnOCbLW7AONYM2X9K-H
', /
@@ -258,262 +258,34 @@
k: '
-6LfwcOoSAAAAAGFI7h_SJoCBwUkvpDRf7_r8ZA_D', //recaptcha private key%0A facebook: %7B%0A clientID: %22%22, //clientID%0A clientSecret... |
71da678f0d6d5dfeb0b81c5972ab6e4fc629db86 | Remove redundant methods / branches | js/components/DoughBaseComponent.js | js/components/DoughBaseComponent.js | define([], function () {
'use strict';
/**
* This is used as the base class for all modules.
* All modules/components should extend this class.
*
* Includes:
* event binding/triggering
* logging
* i18n library
*/
function DoughBaseComponent($el, config) {
if (!$el || !$el.length)... | JavaScript | 0.00004 | @@ -1640,468 +1640,8 @@
%7D;%0A%0A
- /**%0A * Fetch the parent element%0A * @return %7BArray%7D jQuery object or empty array (for safe jQuery ops)%0A */%0A DoughBaseComponentProto.getElement = function () %7B%0A return this.$el %7C%7C %5B%5D;%0A %7D;%0A%0A /**%0A * Get attribute from data attributes on ... |
c7ac33659bc02b1229b188d8296e44e399cfa85a | Fix vote import | cli/_lib/votes.js | cli/_lib/votes.js | // Import forum votes
//
'use strict';
const Promise = require('bluebird');
const co = require('co');
const mongoose = require('mongoose');
const progress = require('./utils').progress;
const POST = 1; // content type for posts
module.exports = co.wrap(function* (N) {
//
// Establish MySQL conne... | JavaScript | 0.000001 | @@ -855,14 +855,66 @@
n* (
-row) %7B
+userid_row) %7B%0A let fromuserid = userid_row.fromuserid;%0A
%0A
@@ -965,28 +965,24 @@
if (!users%5B
-row.
fromuserid%5D)
@@ -1152,20 +1152,16 @@
%60, %5B
-row.
fromuser
@@ -1282,11 +1282,11 @@
or (
-var
+let
i =
@@ -1297,16 +1297,23 @@
i %3C rows
+.length
; ... |
1bd50fab517a8644973f20fbe0a007b0497a3416 | Add some comments to index. | lib/Index.js | lib/Index.js | var runCallback = require('./common.js').runCallback;
var crypto = require('crypto');
/**
* XXX THIS CLASS IS NOT READY. DO NOT USE.
* Todo: figure out how to clean up when an indexed field changes value. (I.e. delete the old entry.)
* Todo: implement purge
* Note: this adds a private property for original index v... | JavaScript | 0 | @@ -461,16 +461,57 @@
ield) %7B%0A
+ /* Back up functions we're wrapping */%0A
var sa
@@ -535,16 +535,16 @@
e.save;%0A
-
var fr
@@ -621,23 +621,140 @@
%0A%0A
-var indexValue;
+/* A local value to store the existing value of the indexed field. */%0A var indexValue;%0A%0A /* The name of the getter we're add... |
4383067a6f6b34f768340725b9d37ea240b4bc1a | make check show originalGameId | cli/cmds/check.js | cli/cmds/check.js | /*
* Copyright 2014, Gregg Tavares.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | JavaScript | 0 | @@ -2002,32 +2002,95 @@
gameId : %22 +
+ runtimeInfo.originalGameId);%0A console.log(%22runtimeId : %22 +
runtimeInfo.inf
|
0c33f054ffb968c9f3fc81d4d74fe1050c2ac5ab | Improve comment | lib/Space.js | lib/Space.js | //
// Space. The root item.
//
var Path = require('./geom/Path')
var Vector = require('./geom/Vector')
var IPath = require('./geom/IPath')
var AbstractPlane = require('./AbstractPlane')
var extend = require('extend')
var Space = function () {
AbstractPlane.call(this)
// Space has constant identity transformation _... | JavaScript | 0 | @@ -923,16 +923,21 @@
so keep
+%0A //
an eye
@@ -938,21 +938,16 @@
n eye on
-%0A //
efficie
|
ff2aa48b8d221080ae9901f94622e5dbc32807e9 | Implement billy.build | lib/billy.js | lib/billy.js | var fs = require('fs');
function loadConfig(path) {
return JSON.parse(fs.readFileSync(path, 'utf8'));
}
exports.init = function(configFile, outdir) {
var config = loadConfig(configFile),
moduleList = [];
for (var name in config.modules) {
moduleList.push(name);
}
return {
... | JavaScript | 0.000012 | @@ -1,363 +1,1403 @@
var
-fs = require('fs');%0A%0Afunction loadConfig(path) %7B%0A return JSON.parse(fs.readFileSync(path, 'utf8'));%0A%7D%0Aexports.init = function(configFile, outdir) %7B%0A var config = loadConfig(configFile),%0A moduleList = %5B%5D;%0A%0A for (var name in config.modules) %7B%0A ... |
2bcfcb5b628fe3a602dffdecbedb58c8264664f5 | Clean up delta labels | cd/src/pipeline-events-handler/deltas/deltas.js | cd/src/pipeline-events-handler/deltas/deltas.js | const getStackFamily = require('./stack-family');
const getChangeSetFamily = require('./change-set-family');
const deltaArrow = require('./delta-arrow');
const deltaValue = require('./delta-value');
/**
* Returns a multi-line string describing the parameters that have changed
* @param {ParameterDeltas} deltas
* @re... | JavaScript | 0.000003 | @@ -835,33 +835,102 @@
ue);%0A%0A
-return
+const label = d.stackName.includes('-root-')%0A ? d.parameter%0A :
%60
-*
$%7Bd.stackNam
@@ -939,32 +939,59 @@
::$%7Bd.parameter%7D
+%60;%0A%0A return %60*$%7Blabel%7D
*: $%7BoldValue%7D $
|
3ccabac61d19a71d302542add314c1aa20489b02 | Fix typo | lib/buddy.js | lib/buddy.js | var assert = require('assert');
var debug = require('debug')('alloc:buddy');
var util = require('util');
function log2(x) {
return Math.log(x) / Math.LN2;
}
function power2(x) {
return 1 << (log2(x - 1) + 1);
}
var BuddyAllocator = function(buffer, options) {
if (typeof buffer == 'number') {
buffer = new B... | JavaScript | 0.999999 | @@ -497,21 +497,16 @@
end(%7Bmin
-Buddy
Size: 1%7D
|
7f5735f30e133c937cad495bbf527ca4d305d777 | return promise rejection in build.js | lib/build.js | lib/build.js | var mkdirp = require('mkdirp')
var Promise = require('es6-promise').Promise
var fs = require('fs')
var path = require('path')
function writeFile (page) {
return new Promise(function (resolve, reject) {
var dir = path.dirname(page.dest)
mkdirp(dir, function (err) {
if (err) { return reject(err) }
... | JavaScript | 0.000001 | @@ -387,16 +387,23 @@
(err) %7B
+ return
reject(
|
a850c39f00d3d942c657dac9483139940bdeca9d | converted to entities | js/fireworks-2d.js | js/fireworks-2d.js | 'use strict';
function draw_logic(){
for(var firework in fireworks){
canvas_buffer.fillStyle = fireworks[firework]['color'];
canvas_buffer.fillRect(
fireworks[firework]['x'],
fireworks[firework]['y'],
fireworks[firework]['width'],
fireworks[firework]['height'... | JavaScript | 0.999999 | @@ -43,36 +43,38 @@
for(var
-firework in firework
+entity in core_entitie
s)%7B%0A
@@ -103,34 +103,36 @@
Style =
-fireworks%5Bfirework
+core_entities%5Bentity
%5D%5B'color
@@ -181,98 +181,104 @@
-fireworks%5Bfirework%5D%5B'x'%5D,%0A fireworks%5Bfirework%5D%5B'y'%5D,%0A fireworks%5Bfire... |
2657730cbe8cf718ea93564d887bc30c68ecaeef | Fix emitting "connected" state for stream | js/getUserMedia.js | js/getUserMedia.js | /**
* Expose the getUserMedia function.
*/
module.exports = getUserMedia;
/**
* Dependencies.
*/
var
debug = require('debug')('iosrtc:getUserMedia'),
debugerror = require('debug')('iosrtc:ERROR:getUserMedia'),
exec = require('cordova/exec'),
MediaStream = require('./MediaStream'),
Errors = require('./Errors'... | JavaScript | 0 | @@ -3540,16 +3540,21 @@
%09%09%09%09
-resolve(
+var stream =
Medi
@@ -3580,16 +3580,103 @@
.stream)
+;%0A%09%09%09%09resolve(stream);%0A%09%09%09%09// Emit %22connected%22 on the stream.%0A%09%09%09%09stream.emitConnected(
);%0A%09%09%09%7D%0A
|
b4f6b28b70f0806650576e9ab03b61c297ae66ce | fix email links | lib/email.js | lib/email.js | var url = require('url');
var path = require('path');
var _ = require('underscore');
var nodemailer = require('nodemailer');
var swig = require('swig');
module.exports = function(app) {
var config = app.loadConfig('email');
return {
sendWelcome: function(user) {
sendMessage(config.templates.signup, use... | JavaScript | 0.000003 | @@ -994,35 +994,27 @@
pLink =
-path.join(
appurl
-,
+ +
%22
+/
verifica
@@ -1017,18 +1017,20 @@
fication
-%22,
+/%22 +
user.lo
@@ -1040,25 +1040,24 @@
.signupToken
-)
;%0A %7D%0A if (
@@ -1111,35 +1111,29 @@
k =
-path.join(
appurl
-,
+ +
%22
+/
forgot
-%22,
+/%22 +
use
@@ -1150,17 +1150,16 @@
setT... |
fa364759f24249ff54dd73295a3b763e9acc92e8 | rename callback to iteratee (consistent with underscorejs) | baseview.js | baseview.js | (function(root, factory) {
// Set up BaseView appropriately for the environment. Start with AMD.
if (typeof define === 'function' && define.amd) {
define(['underscore', 'jquery', 'backbone', 'exports'], function(_, $, Backbone, exports) {
// Export global even in AMD case in case this script... | JavaScript | 0 | @@ -3299,24 +3299,24 @@
unction(
-callback
+iteratee
, option
@@ -3460,24 +3460,24 @@
-callback
+iteratee
.call(th
@@ -3528,16 +3528,16 @@
rse(
-callback
+iteratee
, %7Bv
|
4ceb812cc7d6f39b04c34ac4a831ca5d21bb20fd | Revert "Probably solves this issue #26" | lib/error.js | lib/error.js | /*
* The MIT License
*
* Copyright 2014 Timo Behrmann, Guillaume Chauvet.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the right... | JavaScript | 0 | @@ -1283,12 +1283,23 @@
dler
- &&
+) %7B%0A if(
type
@@ -1337,24 +1337,99 @@
unction') %7B%0A
+ return options.errorHandler(res, errors);%0A %7D else %7B%0A
retu
@@ -1475,16 +1475,26 @@
rors));%0A
+ %7D%0A
%7D el
|
3cd43c2857fa09a72af72be4594734c77674101a | Update emailTransports when seeding | config/models.js | config/models.js | 'use strict';
/**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#/documentation/concepts/ORM
*/
module.exports.models = {
/****************... | JavaScript | 0 | @@ -8,16 +8,74 @@
rict';%0A%0A
+var _ = require(%22lodash%22);%0Avar async = require(%22async%22);%0A%0A
/**%0A * D
@@ -1967,24 +1967,25 @@
r, count) %7B%0A
+%0A
@@ -1990,18 +1990,152 @@
if
- (!err &&
+(err) %7B%0A sails.log.error(%22Failed to seed %22 + modelName, error);%0A ... |
28cf0b946cde925c7ee09ed53243c277e6282955 | Fix calendar popup | src/components/Transaction/Filter/Calendar.js | src/components/Transaction/Filter/Calendar.js | import React from 'react'
import { Modal, Button } from 'semantic-ui-react'
import DayPicker, { DateUtils } from 'react-day-picker'
import 'react-day-picker/lib/style.css'
const currentYear = new Date().getFullYear()
const fromMonth = new Date(currentYear - 8, 0)
const toMonth = new Date(currentYear + 2, 11)
function... | JavaScript | 0.000001 | @@ -2105,12 +2105,13 @@
ze=%22
-tiny
+small
%22%0A
@@ -2255,16 +2255,39 @@
%22Range%22%0A
+ fixedWeeks%0A
|
44ee430f5b38237332e62759176ab0d357c16f99 | add twitter search ui | src/components/TwitterSearch/TwitterSearch.js | src/components/TwitterSearch/TwitterSearch.js | import React, { Component } from 'react';
class TwitterSearch extends Component {
render () {
return (
<p>Twitter Search Component</p>
);
}
};
export default TwitterSearch; | JavaScript | 0 | @@ -116,37 +116,144 @@
%3C
-p%3ETwitter Search Component%3C/p
+div%3E%0A %3Cform%3E%0A %3Cinput type=%22text%22/%3E%0A %3Cbutton type=%22submit%22%3ESearch%3C/button%3E%0A %3C/form%3E%0A %3C/div
%3E%0A
|
e4bda920ce409db882c73bf75dae86d0532c2171 | Fix ball rendering | js/modules/ball.js | js/modules/ball.js | 'use strict';
var Ball = (function(){
var x = undefined;
var y = undefined;
var velocityX = undefined;
var velocityY = undefined;
var sizeX = 10;
var sizeY = 10;
var destroyed = false;
var rawSpeed = 0;
var getX = function() {
return x;
};
var getY = function() {
return y;
};
var getVelocityX = fu... | JavaScript | 0.000002 | @@ -1215,19 +1215,16 @@
(x, y);%0A
-%09%09%0A
%09%09graphi
@@ -1280,16 +1280,40 @@
true);%0A
+%09%09graphics.closePath();%0A
%09%09graphi
@@ -1325,18 +1325,65 @@
roke();%0A
+%0A
%09%09
+graphics.beginPath();%0A%09%09graphics.moveTo(x, y);
%0A%09%09graph
@@ -1442,19 +1442,16 @@
true);%0A
-%09%09%0A
%09%09grap... |
e129678682990f0f98b1b5f30730319beb7308a8 | Fix callback | js/net/facebook.js | js/net/facebook.js | var fbUser;
function setUser(response) {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
// Logged into CRUDbrain and Facebook.
fbUser = {
id: response.authResponse.userID,
access_token: response.authResponse.accessToken
};
}
});
}
function... | JavaScript | 0.000003 | @@ -733,16 +733,17 @@
ponse);%0A
+%0A
if
@@ -744,24 +744,23 @@
if (
-redirect
+!fbUser
) %7B%0A
@@ -759,39 +759,40 @@
) %7B%0A if (
-!fbUser
+redirect
) %7B%0A wi
@@ -832,16 +832,24 @@
%7D
+%0A %7D
else %7B%0A
@@ -844,18 +844,16 @@
else %7B%0A
-
@@ -864... |
bcedd28023238d4c07f39b00b735872765147e5b | Fix typo | lib/index.js | lib/index.js | 'use strict';
class TeamcityReporter {
constructor(emitter, reporterOptions, options) {
this.reporterOptions = reporterOptions;
this.options = options;
const events = 'start beforeIteration iteration beforeItem item beforePrerequest prerequest beforeScript script beforeRequest request befor... | JavaScript | 0.999999 | @@ -2036,16 +2036,21 @@
response
+.body
) %7D catc
|
b2e53eab5daa6d885fbb818a4f2bbf65775ba1dc | Fix attribute proxy error | scripts/things/objecttracker.js | scripts/things/objecttracker.js | elation.require(['engine.things.generic', 'engine.things.leapmotion'], function() {
elation.component.add('engine.things.objecttracker', function() {
this.postinit = function() {
elation.engine.things.objecttracker.extendclass.postinit.call(this);
this.defineProperties({
player: { type: 'objec... | JavaScript | 0.000001 | @@ -2615,16 +2615,27 @@
s%5Bhand%5D.
+properties.
orientat
|
4080b6ab75fa526f1f41b4c63fd067182e4916bf | Fix to the lexer's detection of number literals. Lexer will no longer choke when number literals are directly following commas or other punctuation. | lib/lexer.js | lib/lexer.js | var errors = require('./errors');
var Token = require('./Token');
// poor man's unicode support
var VARIABLE = /\$[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*/g;
var STRING_LITERAL_SINGLE = /'((\\.|[^\n\\'])*)(.)/g;
var STRING_LITERAL_DOUBLE = /"((\\.|[^\n\\"])*)(.)/g;
var NUMBER_START = /[0-9]/g;
var NUMBER = /\d*\... | JavaScript | 0.000003 | @@ -292,17 +292,16 @@
/%5B0-9%5D/
-g
;%0Avar NU
|
70d4f13df4af2187cffa46e585348d02a1fe65b5 | add UTC per @bamos' issue | js/reading-list.js | js/reading-list.js | // http://www.jblotus.com/2011/05/24/keeping-your-handlebars-js-templates-organized/
function getTemplateAjax(path, callback) {
var source;
var template;
$.ajax({
url: path,
success: function(data) {
source = data;
template = Handlebars.compile(source);
//execute the callba... | JavaScript | 0 | @@ -1553,16 +1553,19 @@
rn d.get
+UTC
FullYear
@@ -1602,16 +1602,19 @@
(d.get
+UTC
Month()
@@ -1653,16 +1653,19 @@
(d.get
+UTC
Date() +
|
c623d0bf8042f3d88605e0fcad7045da412a1a9a | use stringify instead of JSON.stringify. | lib/reply.js | lib/reply.js | /* eslint-disable no-useless-return */
'use strict'
const pump = require('pump')
const xtend = require('xtend')
const validation = require('./validation')
const serialize = validation.serialize
const statusCodes = require('http').STATUS_CODES
const stringify = JSON.stringify
const flatstr = require('flatstr')
functi... | JavaScript | 0 | @@ -1468,21 +1468,16 @@
,%0A
-JSON.
stringif
|
1eda6012862b58927c02f60f5089c0c8166d4ef5 | Fix some mixups between the parsed data and contained videos | lib/saved.js | lib/saved.js | var fs = require('fs');
var YoutubeTrack = require('./youtube-track.js');
var exports = {
saved: {
videos: {},
},
};
var FILENAME = 'lethe-data.json';
exports.read = function() {
try {
fs.readFile(FILENAME, 'utf8', (err, data) => {
if (err) {
if (err.message.indexOf('ENOENT') > -1) {
... | JavaScript | 0.000003 | @@ -511,22 +511,27 @@
var
-parsed
+savedVideos
= JSON.
@@ -541,16 +541,23 @@
se(data)
+.videos
;%0A
@@ -609,22 +609,27 @@
key in
-parsed
+savedVideos
) %7B%0A
@@ -638,22 +638,27 @@
if (
-parsed
+savedVideos
.hasOwnP
@@ -734,31 +734,41 @@
ack(
-parsed%5Bkey%5D.vid, parsed
+savedVideos%5Bke... |
f9e158ff68cfdcc7cf2c9ebf3e7501b82286154a | Rename link to button | src/components/views/messages/ReactionsRow.js | src/components/views/messages/ReactionsRow.js | /*
Copyright 2019 New Vector 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 law or agreed to in writing, software
... | JavaScript | 0 | @@ -4913,20 +4913,22 @@
showAll
-Link
+Button
;%0A
@@ -5071,20 +5071,22 @@
showAll
-Link
+Button
= %3Ca%0A
@@ -5375,12 +5375,14 @@
wAll
-Link
+Button
%7D%0A
|
d13f4b9cf81a83d492a589c45a7586d57ee7b9dd | add compare_fn, banner to utils | lib/utils.js | lib/utils.js | var assemble = require('assemble');
var grunt = require('grunt');
var path = require('path');
var fs = require('fs');
var _ = grunt.util._;
// The module to be exported.
var Utils = module.exports = exports = {};
/**
* This helper is meant to be instructive. You can add additional
* properties ... | JavaScript | 0 | @@ -1,12 +1,150 @@
+/*%0A * yfm%0A * https://github.com/assemble/yfm%0A * Copyright (c) 2013 Jon Schlinkert, contributors.%0A * Licensed under the MIT license.%0A */%0A%0A%0A
var assemble
@@ -367,16 +367,232 @@
= %7B%7D;%0A%0A
+/**%0A * Accepts two objects (a, b),%0A * @param %7BObject%7D a%0A * @param %7BObject%7... |
194ddf856cb52d5d398bdb070886bc5b26dda2bc | remove reference to os module | lib/utils.js | lib/utils.js | 'use strict';
/**
* Module dependencies.
*/
var mensch = require('mensch');
var own = {}.hasOwnProperty;
var os = require('os');
var Selector = require('./selector');
var Property = require('./property');
exports.Selector = Selector;
exports.Property = Property;
/**
* Returns an array of the selectors.
*
* @li... | JavaScript | 0 | @@ -106,32 +106,8 @@
ty;%0A
-var os = require('os');%0A
var
@@ -2520,16 +2520,22 @@
h === 0)
+ %7B%0A
return
@@ -2541,16 +2541,20 @@
false;%0A
+ %7D%0A
return
@@ -2558,15 +2558,15 @@
urn
-os.EOL+
+'%5Cn' +
pres
@@ -2580,22 +2580,20 @@
oin(
-os.EOL)+os.EOL
+'%5Cn') + '%5Cn'
;%0A%7D;
@@ -3096,17 +30... |
33c96a2d97753e55b79bb3ceeea691b284a60691 | add Crm-fetch scenario | client/src/app.js | client/src/app.js | import 'bootstrap';
/*import 'bootstrap/css/bootstrap.css!';*/
import {inject} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import AppRouterConfig from 'app.router.config';
import HttpClientConfig from 'aurelia-auth/app.httpClient.config';
import FetchConfig from 'aurelia-auth/app.fetch-httpClient.... | JavaScript | 0.000001 | @@ -250,24 +250,26 @@
nt.config';%0A
+//
import Fetch
@@ -324,16 +324,58 @@
onfig';%0A
+import %7BFetchConfig%7D from 'aurelia-auth';%0A
@inject(
|
b6ad96ffd5ef88b3c3d5fb5a0a689ae1a40cc8df | Fix plugin platform_www & cordova_plugins.json copy | cordova-lib/src/cordova/metadata/ubuntu_parser.js | cordova-lib/src/cordova/metadata/ubuntu_parser.js | /*
*
* Copyright 2013 Canonical 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 law or agreed... | JavaScript | 0 | @@ -4854,16 +4854,20 @@
var
+app_
www = ut
@@ -4898,80 +4898,384 @@
t);%0A
-%0A shell.rm('-rf', this.www_dir());%0A shell.cp('-rf', www, this.path
+ var platform_www = path.join(this.path, 'platform_www');%0A %0A // Clear the www dir%0A shell.rm('-rf', this.www_dir());%0A shell.mkdir(this.www_... |
912a564e356e0a9904d70da2dafbee78db369383 | enable compression on bf hashset | sensor/IntelLocalCachePlugin.js | sensor/IntelLocalCachePlugin.js | /* Copyright 2016 Firewalla LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | JavaScript | 0 | @@ -1060,11 +1060,22 @@
lter
+:compressed
%22;%0A
-
%0Acon
@@ -1303,16 +1303,140 @@
ile');%0A%0A
+const zlib = require('zlib');%0A%0Aconst Promise = require('bluebird');%0A%0Aconst inflateAsync = Promise.promisify(zlib.inflate);%0A%0A
class In
@@ -1614,16 +1614,187 @@
try %7B%0A
+ const buffer = Buffer.fro... |
4fa1e22a18b9299f3f05def0b01edc5aa6fbfa16 | the new constructor functions: class | docs/class.js | docs/class.js |
// CLASSES
/*
classes function just like prototypes in our earlier topic, If you have taken.
It's not necessary but if you have a knowdge of prototypes, classes should be a piece of cake.
Both of them are just ways to create inheritances on objects. with class enabling th create an adhoc object.
Class combines the po... | JavaScript | 0.99984 | @@ -1,12 +1,26 @@
+%0A%22use strict%22%0A
%0A// CLASSES%0A
@@ -699,17 +699,16 @@
() %7B%0A%09%09
-
return t
@@ -2129,8 +2129,508 @@
.area);%0A
+%0A//NB: this code does not work. debug it if you can.%0A// It raises typeError. this is not a date object.%0A/*%0Aclass MyDate extends Date %7B%0A constructor() %7B%0A ... |
49af337a75b4c97b7abeeb267a949cfafd9ff7dd | fix baseurl | docs/index.js | docs/index.js |
Jenie.setup({
module: {
modules: [
{
name: 'one',
method: function () {
return 1;
}
},
{
name: 'two',
method: function () {
return 2;
}
},
{
name: 'sum',
dependencies: ['one', 'two'],
method: function (one, two) {
return one + two;
}
}
]
},... | JavaScript | 0 | @@ -1,12 +1,42 @@
+%0Avar base = document.baseURI;%0A
%0AJenie.setup
@@ -359,26 +359,8 @@
: %7B%0A
-%09%09base: '/jenie',%0A
%09%09ro
@@ -441,34 +441,40 @@
%09%09componentUrl:
+base +
'
-/
views/v-root.js'
@@ -558,34 +558,40 @@
%09%09componentUrl:
+base +
'
-/
views/v-test.htm
@@ -682,18 +682,24 @@
entUrl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.