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
fe926d1b4f3428f33bc386365e15c7a689231c43
Fix relative paths for partials.
app/js/app/app.js
app/js/app/app.js
'use strict'; define(["rsvp", "foundation", "angular-ui-router", "app/responsive_video", "angular", "angular-resource", "app/controllers", "app/directives", "app/services", "app/filters"], function() { window.Promise = RSVP.Promise; window.Promise.defer = RSVP.defer; var rv = require("app/responsive_video")...
JavaScript
0
@@ -1311,32 +1311,33 @@ templateUrl: %22 +/ partials/states/ @@ -1519,32 +1519,33 @@ templateUrl: %22 +/ partials/states/ @@ -1894,32 +1894,33 @@ templateUrl: %22 +/ partials/states/ @@ -2038,32 +2038,33 @@ templateUrl: %22 +/ partials/states/ @@ -2854,32 +2854,33 @@ templateUrl: %22 +/ partials/sta...
aad68fc8901a91f5b8fc0a7927732ec80c196322
fix xhr problem in firefox os
app/js/jenkins.js
app/js/jenkins.js
(function(window, $) { var query = { jobs: 'api/json?tree=jobs[color,name,url]' }; function Jenkins(url) { this.url = url; } Jenkins.prototype.setUrl = function(url) { this.url = url; }; //async function for getting all jenkins job data //callback(err, data) ...
JavaScript
0.000002
@@ -377,86 +377,324 @@ -$.ajax(%7Burl: this.url + query.jobs, data +var xhr = new window.XMLHttpRequest(%7B%0A mozSystem: true%0A %7D);%0A%0A xhr.open('GET', this.url + query.jobs, true);%0A xhr.response Type -: + = 'json' -%7D).done(function(data +;%0A%0A xhr.onload = fu...
bbd31885414fbced7695dfcd3df3f34eb6cf9e3b
Remove uname form files model
app/lib/models.js
app/lib/models.js
/* globals Models Status Random */ Models = { // eslint-disable-line project: function () { return { name: '', industry: '', createdAt: '', description: '', owner: '', contributors: [], commands: [], notes: [], droneLog: [], files: [] } }, host...
JavaScript
0
@@ -3353,25 +3353,8 @@ '',%0A - uname: '',%0A
37a8712ef07f98cd167ff3ca79c0a5c26f3efba8
Fix customSagas prop type (#361)
src/AdminGuesser.js
src/AdminGuesser.js
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { AdminContext, AdminUI, ComponentPropType, Error as DefaultError, Loading, TranslationProvider, defaultI18nProvider, } from 'react-admin'; import { createHashHistory } from 'history'; import { createMuiTheme } ...
JavaScript
0
@@ -6014,30 +6014,29 @@ : PropTypes. -object +array ,%0A initialS
33331ba6d0e99c725c8c71d5b7af6180f55375bc
Update tests according to new API.
test/sixpack-test.js
test/sixpack-test.js
var mocha = require('mocha'); var assert = require('chai').assert; var expect = require('chai').expect; describe("Sixpack", function () { it("should return an alternative for participate", function (done) { var sixpack = require('../'); var session = new sixpack.Session; session.participat...
JavaScript
0
@@ -2711,38 +2711,51 @@ sixpack.Session( +%7Bclient_id: %22mike%22 +%7D );%0A sessi @@ -3219,38 +3219,51 @@ sixpack.Session( +%7Bclient_id: %22mike%22 +%7D );%0A sessi @@ -3935,16 +3935,28 @@ Session( +%7Bclient_id: %22unknown @@ -3964,16 +3964,17 @@ idizzle%22 +%7D )%0A @@ -4306,38 +43...
14590f18de93b90390e238f1845b7a6e20055cec
Update sitetest.js
test/svr/sitetest.js
test/svr/sitetest.js
//import namespace var WebSvr = require("./../../websvr/websvr.js"); //Start the WebSvr, runnting at parent folder, default port is 8054, directory browser enabled; //Trying at: http://localhost:8054 var webSvr = new WebSvr({ root: "./", //enable https https: true, //default port of https httpsPo...
JavaScript
0
@@ -1424,24 +1424,143 @@ o%22) %3C 0) %7B%0D%0A + //Once session is get initialized%0D%0A //TODO: Make sure next req.session.get() will not load session file again.%0D%0A req.sess @@ -1698,24 +1698,14 @@ );%0D%0A +%0D%0A -%7D);%0D%0A %7D%0D%0A%0D%0A // @@ -1717,32 +1717,36 @@ to next filter%0D%0...
f89722b1ffbd13cf0a559a42adbd12093da61302
fix for profile image domain
filter-people.js
filter-people.js
var _ = require('lodash'), rp = require('request-promise'), argv = require('minimist')(process.argv.slice(2)), jsontr = require('./json-transform.js'), LdapClient = require('promised-ldap') var items = require('./people.json'); var transform = { uuid: { props: {value:String} }, changed: { ...
JavaScript
0
@@ -4803,16 +4803,175 @@ .uuid);%0A + if (p.field_image && p.field_image.url) p.field_image.url = p.field_image.url.replace(%22drupal.lib.virginia.edu/sites/default%22,%22www.library.virginia.edu%22);%0A %7D);%0A%0A
7c45139c470038475354cb1323d7e7d6ad0c131a
Move script init to bottom of file.
app/renderMain.js
app/renderMain.js
'use strict'; const electron = require('electron'); const {ipcRenderer} = electron; const childProcess = require('child_process'); const orbProcess = childProcess.spawn('orb'); orbProcess.stdout.on('data', d => console.log('Data received from orb: ' + d)); orbProcess.stderr.on('data', d => console.log('Err received...
JavaScript
0
@@ -130,664 +130,8 @@ );%0A%0A -const orbProcess = childProcess.spawn('orb'); %0A%0AorbProcess.stdout.on('data', d =%3E console.log('Data received from orb: ' + d));%0AorbProcess.stderr.on('data', d =%3E console.log('Err received from orb: ' + d));%0AorbProcess.on('close', code =%3E console.log('Orb closed with code '...
e762c400ce3910f7d1b3d67d98e69c737653885f
Move result serialization out of editor
app/serializer.js
app/serializer.js
function serialize (individual) { return JSON.stringify({fitness: individual.fitness, individual: individual.map(serializeGene)}); } function serializeGene (gene) { return { func: (gene.f || gene).toString(), args: serializeArgs(gene.args) }; } function serializeArgs (args) { if (args === undefined) {...
JavaScript
0.000001
@@ -2124,16 +2124,707 @@ e)%7D;%0A%7D%0A%0A +serialize.results = (results) =%3E %7B%0A return JSON.stringify(Object.keys(results).map(participant =%3E %7B%0A return serializeResult(participant, results%5Bparticipant%5D);%0A %7D).reduce((serializedResults, result) =%3E Object.assign(serializedResults, result), %7B...
211eb92e2efcc8826b68dc1422c04f986257f955
Remove log
src/utils/data3d/get-texture-keys.js
src/utils/data3d/get-texture-keys.js
import traverseData3d from './traverse.js' export default function getTextureKeys(data3d, options) { // API var options = options || {} var filter = options.filter // internals var cache = {} // internals traverseData3d.materials(data3d, function(material) { var filteredResult, attr, type, format, ...
JavaScript
0.000001
@@ -790,41 +790,8 @@ %7D)%0A - console.log(Object.keys(cache)) %0A r
62ec1bd091171b96afdcc8c6d0f8bf8240aac08e
optimize destructor of decorator-pool
packages/decorator-pool/src/index.js
packages/decorator-pool/src/index.js
const PooledClass = require('./PooledClass'); const poolers = [ undefined, PooledClass.oneArgumentPooler, PooledClass.twoArgumentPooler, PooledClass.fourArgumentPooler, PooledClass.fiveArgumentPooler ]; const pool = module.exports = ({capacity, pooler, guard}) => (Klass, key, descriptor) => { if (descriptor) re...
JavaScript
0.000002
@@ -748,26 +748,34 @@ %7D;%0A%09%7D%0A%0A%09 -if (typeof +const destructor = Klass.p @@ -797,108 +797,205 @@ ctor - !== 'function') %7B%0A%09%09// TODO: should interrupt the decoration here, or at least give out a warning ? +;%0A%09if (typeof destructor === 'function') %7B%0A%09%09Klass.prototype.destructor = funct...
a933e01e1982c9fc35eda5146ecba4fe9ed179c4
work on ui/interaction
app/scripts/ui.js
app/scripts/ui.js
(function() { 'use strict'; var relvis = window.relvis = window.relvis || {}; var info = ''; var graphTouchCoord = {}; var node; function redraw() { //{{{1 /* var ctx = relvis.canvas.getContext('2d'); ctx.fillStyle = '#fff'; ctx.fillRect(0, 0, 500, 10); ctx.font = '10px sans-serif'; ...
JavaScript
0
@@ -1716,32 +1716,367 @@ outGraph();%0A + console.log('tapend');%0A /*%0A if (relvis.getType() === 'cir') %7B%0A var ids = relvis.getIds();%0A var pos = ids.indexOf(node.id);%0A if (pos === -1) %7B%0A ids.push(node.id);%0A %7D else %7B%0A ids...
13c989f3f96bad6ee96fe9835af5fa1595fafdc0
use absolute references to build artifacts in netlfy builds
packages/frontend/webpack.config.js
packages/frontend/webpack.config.js
const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const glob = require('glob'); const TerserPlugin = require('terser-webpack-plugin'); const { BundleAnalyzerPl...
JavaScript
0
@@ -734,18 +734,224 @@ -publicPath +// if on netlify, use netlify's absolute url%0A // https://docs.netlify.com/configure-builds/environment-variables/#deploy-urls-and-metadata%0A publicPath: process.env.DEPLOY_URL ? %60$%7Bprocess.env.DEPLOY_URL%7D/%60 : '/
a4adae58d75fb2a348f25dbc096125a5a57f468a
Add annotations about API.Camera module
Resources/lib/API.Camera.js
Resources/lib/API.Camera.js
/* * Copyright (c) 2014 by Center Open Middleware. All Rights Reserved. * Titanium Appcelerator 3.2.0GA * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ "use strict"; /* FYI: http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium....
JavaScript
0
@@ -2967,24 +2967,178 @@ %7D%0A %7D;%0A%0A + /** It allows to take pictures from native camera.%0A * @author Santiago Blanco%0A * @version 1.0.0%0A * @alias API.Camera%0A * @namespace */%0A var self
1db6c279a5c942a39cf8278dee74ff4fb0e9ef31
check if file content is set before storing in localStorage
tour/static/js/controllers.js
tour/static/js/controllers.js
/* Copyright 2012 The Go Authors. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ 'use strict'; /* Controllers */ angular.module('tour.controllers', []). // Navigation controller controller('EditorCtrl', ['$scope', '$routeParams', '$...
JavaScript
0.00001
@@ -843,16 +843,25 @@ + if (val) storage
9922c34372411c7f06c807e37e43d1ddd7e9568a
fix setter option support in reset
backbonebase.js
backbonebase.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
@@ -6307,17 +6307,16 @@ s.setter -s ) ? 'set @@ -6318,17 +6318,16 @@ 'setter -s ': 'set'
19836f1ba8fd191d4f3b426f5f30fed47c5e8080
fix setGiorno
src/JF/CalendarBundle/Resources/public/js/index.js
src/JF/CalendarBundle/Resources/public/js/index.js
$(document).ready(function() { sanitizeDate([$('.auto_date')]); $("#mydatepicker").datepicker({ dateFormat: 'dd-mm-yy', closeText: 'Chiudi', prevText: 'Perc.', nextText: 'Prox.', currentText: 'Oggi', monthNames: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile',...
JavaScript
0.000001
@@ -1970,24 +1970,100 @@ (giorno)) %7B%0A + $td = $this.closest('td');%0A $td.html($this);%0A @@ -2382,32 +2382,33 @@ %7D);%0A %7D);%0A%7D + %0A%0Afunction aggiu
e3f53e6a9bad3ecd4da7c05cfafffd722b598d7e
add new `eslint-plugin-react` rules
packages/eslint-config-react/base.js
packages/eslint-config-react/base.js
module.exports = { extends: ['prettier/react'], plugins: ['react'], parserOptions: { ecmaFeatures: { jsx: true, }, }, settings: { 'import/extensions': ['.js', 'jsx'], }, rules: { 'class-methods-use-this': [ 'error', { exceptMethods: [ 'render', ...
JavaScript
0.000001
@@ -1926,32 +1926,66 @@ false%7D,%0A %5D,%0A + 'react/jsx-max-depth': 'off',%0A 'react/jsx-n
c7eee2ac5c7cfac0f3401b9400d2d21e14c6de22
Disable prettier in oss-compat (#2553)
packages/eslint-config/oss-compat.js
packages/eslint-config/oss-compat.js
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
JavaScript
0
@@ -1256,24 +1256,56 @@ er': 'off',%0A + 'prettier/prettier': 'off',%0A 'sort-ke
b843c316f5557c06532393abcf1187b16f5a469b
Format progress-demo.js
src/MaterialForms.Demo.ShipScript/progress-demo.js
src/MaterialForms.Demo.ShipScript/progress-demo.js
'use strict'; const forms = require('MaterialForms'); const timer = require('timer'); const result = forms.task(function (progress) { for (var i = 0; i <= 100; i++) { if (progress.cancelled) { // Check if cancellation has been requested return false; } if (i === 50) { progress.message ...
JavaScript
0.000001
@@ -128,19 +128,21 @@ ress) %7B%0A -%09%0A%09 +%0A for (var @@ -166,17 +166,20 @@ i++) %7B%0A -%09 + if ( @@ -256,19 +256,28 @@ quested%0A -%09%09%09 + return f @@ -286,17 +286,27 @@ se;%0A -%09%09%7D%0A%09%09%0A%09%09 + %7D%0A%0A if ( @@ -321,11 +321,20 @@ ) %7B%0A -%09...
14fdc7b86e9c1eebc93c8ea822690ef91778155d
correct retry strategies from external API requests
app_client/app.js
app_client/app.js
(function(){ // Current version: 1.0.0 // TODO: Actualizar help // TODO: I - Projects // TODO: II - Other productivity measurements: Patents, outreach, startups, prizes, datasets, boards, theses // TODO: III - Dashboards (visualization of indicators) // TODO: (Check if this doesn't happen!!!) ...
JavaScript
0
@@ -79,17 +79,17 @@ / TODO: -I +1 - Proje @@ -105,18 +105,17 @@ / TODO: -II +2 - Other @@ -221,11 +221,9 @@ DO: -III +3 - D
49f1c552d88b49e0bf40f291515e93f91e194c5f
fix fela-image onclick
packages/fela/src/image/container.js
packages/fela/src/image/container.js
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import LazyLoad from 'react-lazy-load'; import { createComponent } from 'react-fela'; import { ContentLoaderStyles } from '../loader'; const containerStyle = ({ ratio, width, minWidth, maxWidth, minHeight, maxHeight, rounded, }...
JavaScript
0
@@ -899,67 +899,168 @@ le, -...p %7D) =%3E %3CLazyLoad %7B...p%7D onContentVisible=%7BonVisible%7D /%3E +onClick, children, ...p %7D) =%3E%0A (%3Cdiv onClick=%7BonClick%7D%3E%0A %3CLazyLoad %7B...p%7D onContentVisible=%7BonVisible%7D%3E%0A %7Bchildren%7D%0A %3C/LazyLoad%3E%0A %3C/div%3E) ,%0A ...
0544899bc595ebca543bd41905ef924bd8cb2c35
Use sass loader (#68)
packages/pack/webpack/css.loader.js
packages/pack/webpack/css.loader.js
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const postcssPresetEnv = require('postcss-preset-env'); const DESIGN_SYSTEM_THEME = /.*theme\.scss$/; // Set up the variables to the design system so that files are resolved properly. const PREPEND_SASS = ` $path-images: "~design-system/assets/img/share...
JavaScript
0.000001
@@ -1113,13 +1113,8 @@ r: ' -fast- sass @@ -1162,17 +1162,27 @@ -d +additionalD ata: PRE
e7e0b5fa45119c6286528d8c13f6fbeeb863184f
add buffercount utility
projects/OG-Web/web-engine/prototype/scripts/lib/Four.buffercount.js
projects/OG-Web/web-engine/prototype/scripts/lib/Four.buffercount.js
/** * Copyright 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * Please see distribution for license. */ (function () { if (!window.Four) window.Four = {}; /** * Scales an Array of numbers to a new range * @param {Array} arr Array to be scaled * @param {Number} range_min...
JavaScript
0.000001
@@ -198,220 +198,72 @@ * -Scales an Array of numbers to a new range%0A * @param %7BArray%7D arr Array to be scaled%0A * @param %7BNumber%7D range_min New minimum range%0A * @param %7BNumber%7D range_max New maximum range%0A * @returns %7BArray%7D +If Webgl inspector, query the dom and log out the ac...
461281865ccd7521f25b2d4e893eb55c036f56dc
Remove deferred as not needed
static/js/crowdsource.interceptor.js
static/js/crowdsource.interceptor.js
/** * Date: 1/9/15 * Author: Shirish Goyal */ (function () { 'use strict'; angular .module('crowdsource.interceptor', []) .factory('AuthHttpResponseInterceptor', AuthHttpResponseInterceptor); AuthHttpResponseInterceptor.$inject = ['$location', '$log', '$injector', '$q']; function AuthHttpResponseInterc...
JavaScript
0
@@ -998,95 +998,8 @@ ');%0A - %7Delse%7B%0A deferred.resolve(data);%0A
84cea4426a18caeb5f86583d6077be7440aded3b
patch publish
static/js/project/controllers/project.controller.js
static/js/project/controllers/project.controller.js
(function () { 'use strict'; angular .module('crowdsource.project.controllers') .controller('ProjectController', ProjectController); ProjectController.$inject = ['$location', '$scope', '$mdToast', 'Project', '$routeParams', 'Upload', 'helpersService', '$timeout', '$mdDialog']; ...
JavaScript
0
@@ -1996,49 +1996,8 @@ lled - && (!self.didPrototype %7C%7C self.num_rows) )%7B%0A @@ -2018,26 +2018,8 @@ if( -!self.num_rows && self @@ -2195,25 +2195,8 @@ ws = - self.num_rows %7C%7C 0;%0A
d1372b1672cfba0e78f2f4bb17b72e650cb33885
fix eslint issues
packages/kitsu-core/rollup.config.js
packages/kitsu-core/rollup.config.js
import babel from 'rollup-plugin-babel' import minify from 'rollup-plugin-babel-minify' import local from 'rollup-plugin-local-resolve' import pkg from './package.json' let external = [ ...Object.keys(pkg.dependencies), 'babel-runtime/regenerator', 'babel-runtime/helpers/asyncToGenerator', 'babel-runtime/helpe...
JavaScript
0.000015
@@ -1161,16 +1161,17 @@ wsers: %5B + 'last 10 @@ -1177,16 +1177,17 @@ 0 years' + %5D, node:
6cc063241a40dc04226e95a62523728a379ea58f
Use pixelRatio 2
rendering/cases/circle-style/main.js
rendering/cases/circle-style/main.js
import Circle from '../../../src/ol/style/Circle.js'; import Feature from '../../../src/ol/Feature.js'; import Map from '../../../src/ol/Map.js'; import Point from '../../../src/ol/geom/Point.js'; import Stroke from '../../../src/ol/style/Stroke.js'; import Style from '../../../src/ol/style/Style.js'; import VectorLaye...
JavaScript
0
@@ -1180,17 +1180,17 @@ lRatio: -1 +2 ,%0A laye
9b05839fbe89093268e2cd0e6beb5151c23edd47
update TreeSelectExamples
examples/containers/app/modules/field/TreeSelectExamples.js
examples/containers/app/modules/field/TreeSelectExamples.js
import React, {Component} from 'react'; import Widget from 'src/Widget'; import WidgetHeader from 'src/WidgetHeader'; import TreeSelect from 'src/TreeSelect'; import RaisedButton from 'src/RaisedButton'; import Dialog from 'src/Dialog'; import PropTypeDescTable from 'components/PropTypeDescTable'; import doc from 'ex...
JavaScript
0
@@ -5977,16 +5977,121 @@ de(1)%7D%3E%0A + %7B%0A dialogContentEl =%3E%0A @@ -6164,24 +6164,32 @@ -scroller%22%3E%0A + @@ -6320,32 +6320,40 @@ + + data=%7Bthis.data%7D @@ -6345,3...
d19a0feb10b945a14e5bc0da69d3b47eea6fd47a
Load all default mastic polyfills in server
packages/mastic-node-server/start.js
packages/mastic-node-server/start.js
const mastic = require('./server.js'); const { promise } = require('mastic-polyfills/bundles'); const server = mastic({ polyfills: [promise] }); server.listen();
JavaScript
0
@@ -42,19 +42,15 @@ nst -%7B promise %7D +bundles = r @@ -126,17 +126,67 @@ ls: -%5Bpromis +Object.keys(bundles).map(bundleName =%3E bundles%5BbundleNam e%5D +) %0A%7D);
15970782a0b8b5f3ae91d0f7e31bca4e5f07f865
add gallery back to show
packages/vx-demo/components/show.js
packages/vx-demo/components/show.js
import React from 'react'; import cx from 'classnames'; import { withScreenSize } from '@vx/responsive'; import Page from '../components/page'; import Codeblock from '../components/codeblocks/Codeblock'; import Gallery from '../components/gallery'; export default withScreenSize( ({ screenWidth, screenHeight,...
JavaScript
0
@@ -1524,30 +1524,8 @@ iv%3E%0A - %7Bfalse && (%0A @@ -1574,18 +1574,16 @@ - %3CGallery @@ -1598,28 +1598,15 @@ - %3C/div%3E%0A - )%7D%0A
af63eca555c48e4acee2400d8c18fdc695772878
Implement loader resolution and installation
packages/webpack-npm/src/index.js
packages/webpack-npm/src/index.js
'use strict' /* @flow */ import NPM from 'motion-npm' import { getRootDirectory } from './helpers' import type { Installer$Config } from './types' class Installer { locks: Set<string>; config: Installer$Config; installID: number; constructor(config: Installer$Config = {}) { config.save = Boolean(typeof c...
JavaScript
0
@@ -547,124 +547,146 @@ -this.resolveLoader(compiler, result, next) +let %7B path: modulePath, request: moduleName %7D = result%0A if (!moduleName.match(/%5C-loader$/)) %7B %0A -%7D)%0A -compiler.resolvers.normal.plugin('module', (result, next) =%3E %7B +moduleName += '-loader'%0A %7D %0A ...
8a2681aaeb5a33307af3f978d26a886026e09d21
Statements and expressions
intro/script.js
intro/script.js
// Functions function calculateAge(yearOfBirth) { var age = 2017 - yearOfBirth; //console.log(age); return age; } //var ageMora = calculateAge(1990); //var ageEmma = calculateAge(1988); //var ageRamas = calculateAge(1993); //var ageWilly = calculateAge(1995); //var ageBerto = calculateAge(1997); functio...
JavaScript
0.998598
@@ -1,837 +1,187 @@ // -Functions%0A%0Afunction calculateAge(yearOfBirth) %7B%0A var age = 2017 - yearOfBirth;%0A //console.log(age);%0A return age; +Statements and expressions%0A%0Afunction someFun(par)%7B%0A //code %0A%7D%0A%0A -// var -ageMora = calculateAge(1990);%0A//var ageEmma = calculateAge(198...
215b6d2cb4eda8427a00044c9f5c91b048de7750
Update autoIncrement.test.js
features/autoIncrement/core/autoIncrement.test.js
features/autoIncrement/core/autoIncrement.test.js
var assert = require('assert'); var _ = require('lodash'); /** * When `autoIncrement` is set to `true` on an attribute and no value is provided for it a * new unique value will be assigned by the adapter before the record is created. It is * guaranteed that the adapter will assign a unique value not present on any ...
JavaScript
0
@@ -2801,29 +2801,27 @@ lastIds = _. -pluck +map (records, 'i @@ -3953,37 +3953,35 @@ var ids = _. -pluck +map (records, 'id'); @@ -4888,13 +4888,11 @@ = _. -pluck +map (rec
8eb1aa8f140c48781bbb6af8101d011f16d80b5d
support to pass mediaType for product image
sprd/data/ImageService.js
sprd/data/ImageService.js
define(['js/core/Component', 'underscore'], function (Component, _) { var exceptionSizes = [120, 178], PRODUCT = "product", COMPOSITION = "composition"; var ImageService = Component.inherit('sprd.data.ImageService', { defaults: { subDomainCount: 10, endPoint: '...
JavaScript
0
@@ -1605,32 +1605,139 @@ ;%0A %7D%0A +%0A if (options.mediaType) %7B%0A params.mediaType = options.mediaType;%0A %7D%0A%0A retu
15627e5c103ce18bc808e5993e1f6f7ce779d7dd
Remove some dead code
collections/boards.js
collections/boards.js
Boards = new Mongo.Collection('boards'); // ALLOWS Boards.allow({ insert: Meteor.userId, update: allowIsBoardAdmin, remove: allowIsBoardAdmin, fetch: ['members'] }); // We can't remove a member if it is the last administrator Boards.deny({ update: function(userId, doc, fieldNames, modifier) { ...
JavaScript
0.00075
@@ -1507,239 +1507,8 @@ );%0A%0A -// METHODS%0AMeteor.methods(%7B%0A removeCardMember: function(_id) %7B%0A check(_id, String);%0A CardMembers.update(%7B memberId: _id %7D, %7B%0A $set: %7B%0A approved: false%0A %7D%0A %7D);%0A %7D%0A%7D);%0A%0A // H
bddc07e4b6cea617190650a5a13771c3f33618cf
Update docs
packages/shared/lib/fetch/helpers.js
packages/shared/lib/fetch/helpers.js
/** * Create an API error. * @param {String} name - Name of error * @param {Object} response - Full response object * @param {Object} [data] - JSON data received * @param {Object} config - Config used * @returns {Error} */ export const createApiError = ({ response, data, config, name }) => { const { statusTe...
JavaScript
0.000001
@@ -2127,51 +2127,8 @@ ists -, and set the latest servertime in pmcrypto .%0A *
2cccfeb9478a482ab0e254ccf33e19f8a32efbd8
Fix simple typo, shure -> sure
test/test_require.js
test/test_require.js
describe('require tests', function () { var bag = new window.Bag({ stores: [ 'localstorage' ] }); beforeEach(function () { return bag.clear(); }); after(function () { return bag.clear(); }); it('require cached fail', function () { return bag.require({ url: 'fixtures/require_text.txt', cach...
JavaScript
0.000002
@@ -2201,33 +2201,32 @@ // now make s -h ure that data fe @@ -2234,32 +2234,32 @@ ched from cache%0A + return b @@ -2878,25 +2878,24 @@ / now make s -h ure that dat @@ -3749,33 +3749,32 @@ // make s -h ure that data fe @@ -5226,32 +5226,32 @@ n(function () %7B%0A + // make @@ -5251,...
1f0c1602f7972a72eb8b1f0b50574352e85af170
fix console log
src/Umbraco.Web.UI.Client/gulp/util/processLess.js
src/Umbraco.Web.UI.Client/gulp/util/processLess.js
var config = require('../config'); var gulp = require('gulp'); var postcss = require('gulp-postcss'); var less = require('gulp-less'); var autoprefixer = require('autoprefixer'); var cssnano = require('cssnano'); var cleanCss = require("gulp-clean-css"); var rename = require('gulp-rename'); module.exports = function...
JavaScript
0.000002
@@ -497,9 +497,10 @@ ets. -j +cs s +
78c93f457eea02a11196c29912f573dbe0cc760c
Fix js
collections/orders.js
collections/orders.js
Orders = new Mongo.Collection('orders'); Orders.helpers({ contact: function() { return Contacts.findOne(this.contactId); } }); Orders.allow({ insert: function(userId) { if (userId) { return true; } }, update: function(userId) { if (userId) { return true; } } }); var Schem...
JavaScript
0.000014
@@ -2210,17 +2210,36 @@ ontact() -? + && object.contact() .note;%0A @@ -2416,9 +2416,28 @@ ct() -? + && object.contact() .nam
70038b3cee89a5729e8a670887ddebf56dc15f4f
fix utils module ref
src/plugin/modules/panelWidget.js
src/plugin/modules/panelWidget.js
/*global define */ /*jslint browser: true, white: true */ define([ 'kb/common/html', 'kb/widget/widgetSet', './utils' ], function (html, WidgetSet, utils) { 'use strict'; function renderBSCollapsiblePanel(config) { var div = html.tag('div'), span = html....
JavaScript
0.000001
@@ -119,17 +119,40 @@ ',%0A ' -. +plugins/dataview/modules /utils'%0A
068d55da2cb17f7df69a96749f89d454d2b7bfeb
Add orderBy helper
packages/shared/lib/helpers/array.js
packages/shared/lib/helpers/array.js
export const range = (start = 0, end = 1, step = 1) => { const result = []; for (let index = start; index < end; index += step) { result.push(index); } return result; }; export const chunk = (list = [], size = 1) => { return list.reduce((res, item, index) => { if (index % size ===...
JavaScript
0.000019
@@ -3181,12 +3181,649 @@ ), arr%5B0%5D);%0A +%0A/**%0A * Order collection of object by a specific key%0A * @param %7BArray%3CObject%3E%7D collection%0A * @param %7BString%7D key%0A * @returns %7BArray%7D new collection%0A */%0Aexport const orderBy = (collection = %5B%5D, key = '') =%3E %7B%0A if (!key) %7B%0A ...
62c2a6452a46ea2a830c8d50da07afd175cc4470
update to use newer @sentry/browser package
tutor/src/models/app/raven.js
tutor/src/models/app/raven.js
import Raven from 'raven-js'; import { first } from 'lodash'; const isProd = (process.env.NODE_ENV === 'production'); const isMathJaxUrl = /mathjax/; const isMathjax = (crumb) => ('xhr' === crumb.category && isMathJaxUrl.test(crumb.data.url)); const RavenErrorLogging = { boot() { if (!isProd) { return; } ...
JavaScript
0
@@ -4,28 +4,41 @@ ort -Raven from 'raven-js +* as Sentry from '@sentry/browser ';%0Ai @@ -330,21 +330,52 @@ -Raven.config( +Sentry.init(%7B%0A debug: true,%0A dsn: 'htt @@ -435,27 +435,9 @@ 10', - %7B %0A - tags: %7B%0A @@ -501,36 +501,30 @@ -%7D,%0A breadcrumbCallback( +b...
ea0e208ad997feaf2fa0307a7d80a7c1aca7788d
update rooms.es6 with object literals + template strings
collections/rooms.es6
collections/rooms.es6
Rooms = new Meteor.Collection('rooms'); // jshint ignore:line Meteor.methods({ 'joinRoom': function (id) { check(id, String); var room = Rooms.findOne({_id: id}); var userId = Meteor.userId(); if (!room) { throw new Meteor.Error("room missing"); } if (!...
JavaScript
0
@@ -77,25 +77,24 @@ s(%7B%0A -' joinRoom ': funct @@ -81,36 +81,24 @@ joinRoom -': function (id) %7B%0A @@ -999,17 +999,16 @@ %7D,%0A -' getDirec @@ -1019,27 +1019,16 @@ sageRoom -': function (targetU @@ -1580,17 +1580,16 @@ %7D,%0A -' leaveRoo @@ -1589,28 +1589,16 @@ eaveRoom -': fu...
3f039a3f0dde6549f86bee86c9c4c9bf027f3733
remove old peers
render.js
render.js
const dgram = require('dgram') const os = require('os') const dragDrop = require('drag-drop') const client = dgram.createSocket('udp4') const server = dgram.createSocket('udp4') const PORT = 4321 const MC = '224.0.0.1' function send (o) { const message = Buffer.from(JSON.stringify(o)) client.send(message, 0, mes...
JavaScript
0.999183
@@ -468,16 +468,39 @@ atform() +,%0A ctime: Date.now() %0A %7D)%0A @@ -1457,16 +1457,40 @@ sage')%0A + if (selectorEmptyState) selecto @@ -1544,16 +1544,16 @@ yState)%0A - %0A conso @@ -1610,32 +1610,37 @@ nst selector = %60 +.peer %5Bdata-name=%22$%7Bms @@ -1795,24 +1795,107 @@ registry) %7B%0A + ...
d5e4c7438cd911b486d6f8d546ede45e6dc9c136
Remove commented debug statement
js/browser/panelManager.js
js/browser/panelManager.js
jsio('from common.javascript import Singleton, bind, map'); jsio('import common.ItemReference'); jsio('import browser.ItemReferenceView'); jsio('import browser.css as css'); jsio('import browser.events as events'); jsio('import browser.dom as dom'); jsio('import browser.dimensions as dimensions'); jsio('import brows...
JavaScript
0
@@ -4132,31 +4132,16 @@ ment);%0A%0A -%09%09// debugger;%0A %09%09var ce
c2f1aa87af65cf209d16ede7b7d07bd77111537e
Remove extra function argument
render.js
render.js
module.exports = render var diff = require('./') var get = require('keyarray-get') var splitStrings = require('./split-strings') var splitWords= require('./split-words') var treeify = require('./treeify-patch') function render(a, b) { var editTree = treeify(diff(a, b, splitStrings)) return renderForm([ ], a, edi...
JavaScript
0.000024
@@ -2617,15 +2617,8 @@ text -, edits ) %7B%0A
f2a03601945bcdd23a3c7a196f9254e5545bf736
Put new panels to the left of the currently focused panel
js/browser/panelManager.js
js/browser/panelManager.js
jsio('from common.javascript import Singleton, bind, map'); jsio('import common.ItemReference'); jsio('import browser.ItemReferenceView'); jsio('import browser.css as css'); jsio('import browser.events as events'); jsio('import browser.dom as dom'); jsio('import browser.dimensions as dimensions'); jsio('import brows...
JavaScript
0
@@ -3366,72 +3366,8 @@ ue;%0A -%09%09var middleIndex = Math.floor(this._panelsByIndex.length / 2);%0A %09%09va @@ -3427,22 +3427,27 @@ .splice( -middle +this._focus Index, 0 @@ -3602,33 +3602,8 @@ %09%09%7D%0A -%09%09%0A%09%09return middleIndex;%0A %09%7D%0A%09
822c5e6fc4a380f2fff555623dbed26d5bd53e5c
enforce CLI upgrade
ionic.config.js
ionic.config.js
// Ionic CLI is no longer responsible for building your web assets, and now // relies on gulp hooks instead. This file was used for exposing web build // configuration and is no longer necessary. // If this file is executed when running ionic commands, then an update to the // CLI is needed. // // If your version of th...
JavaScript
0.000007
@@ -521,12 +521,29 @@ c@beta%5Cn');%0A +process.exit(1);%0A
5e53d57b091162ff77b694b62a40f5a073aed8c2
Fix case-sensitive issue with Yandex search engine provider (was causing a test case failure)
js/data/searchProviders.js
js/data/searchProviders.js
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ module.exports = { "providers" : [ { "name" : "Amazon", "base" : "https://www.amazon.com", ...
JavaScript
0.000055
@@ -5438,29 +5438,29 @@ /6jy -HGXR8-HAc8oJ1bU8qMUQQ +hgxr8-hac8oj1bu8qmuqq z_g.
ffae67dc997076640d1d7914f160736e998b4535
Remove dead comments from commandsModule
extensions/ohif-cornerstone-extension/src/commandsModule.js
extensions/ohif-cornerstone-extension/src/commandsModule.js
import cornerstone from 'cornerstone-core'; import cornerstoneTools from 'cornerstone-tools'; // TODO: Just emit the tool's name? // TODO: Let local context handle the active tool propogation to redux? // import { redux } from 'ohif-core'; // import store from './../store/'; // const { setToolActive } = redux.action...
JavaScript
0
@@ -92,237 +92,8 @@ ';%0A%0A -// TODO: Just emit the tool's name?%0A// TODO: Let local context handle the active tool propogation to redux?%0A%0A// import %7B redux %7D from 'ohif-core';%0A// import store from './../store/';%0A%0A// const %7B setToolActive %7D = redux.actions;%0A%0A cons @@ -2419,337 +2419,125 @@ //...
767fe1d699731dea7a0a8cdf4a9d82288b84703d
Revert "Set show to avoid falsy value"
NavigationReact/sample/native/web/SceneNavigator.js
NavigationReact/sample/native/web/SceneNavigator.js
import {Motion} from 'react-motion'; import React, {Component} from 'react'; class SceneNavigator extends Component{ constructor(props) { super(props); var {state, data, url} = props.stateNavigator.stateContext; this.state = {scenes: {[url]: state.renderScene(data)}}; } componentDid...
JavaScript
0
@@ -1051,61 +1051,8 @@ umbs -.map(crumb =%3E (%7B...crumb, show: false%7D))%0A .con @@ -1248,16 +1248,18 @@ etStyle( +!! show, st @@ -1390,16 +1390,18 @@ gStyle, +!! show, st
9bbc9585a82a1daced7b58c4ad5ebd574c176853
revert to master TL.Media.Wistia.js
source/js/media/types/TL.Media.Wistia.js
source/js/media/types/TL.Media.Wistia.js
/* TL.Media.Wistia Produces Wistia Display ================================================== */ TL.Media.Wista = TL.Media.extend({ includes: [TL.Events], /* Load the media ================================================== */ _loadMedia: function() { var api_url, self = this; // Create Dom element ...
JavaScript
0
@@ -16,33 +16,8 @@ tia%0A -%09Produces Wistia Display%0A ==== @@ -80,16 +80,17 @@ dia.Wist +i a = TL.M @@ -103,17 +103,16 @@ xtend(%7B%0A -%09 %0A%09includ @@ -128,17 +128,16 @@ vents%5D,%0A -%09 %0A%09/*%09Loa @@ -478,53 +478,62 @@ it(/ -video +https?: %5C/ -%7C %5C/ -%5C/vimeo%5C.com%5C//)%5B1%5D.split(/%5...
6ebadf36929856521f3bf35e6a5ccbd7ba33342f
better error printing
archives/index.js
archives/index.js
'use strict'; var moment = require('moment-timezone'), request = require('request'); function getBranchName() { if (process.env.NODE_ENV === 'production') { return 'master' } else { return 'staging' } } function getFilename(type) { var prefix = ''; if (type === 'events') { prefix = 'events/e...
JavaScript
0.998587
@@ -1672,24 +1672,34 @@ nction(error +, response ) %7B%0A if @@ -1721,53 +1721,49 @@ -return console.error('upload failed:', error) +callback(error, response);%0A return ;%0A @@ -1768,31 +1768,35 @@ %7D%0A +%0A -callback( +var reply = 'Uploade @@ -1889,19 +1889,48 @@ me(type) +;...
edd648146bc11d6a05c631c081bced3e17f13f3f
Update setstatus.js
commands/setstatus.js
commands/setstatus.js
const Discord = require('discord.js') const config = require('../config.json') exports.run = (client, message, args) => { let embed = new Discord.RichEmbed() .setAuthor(message.guild, client.user.displayAvatarURL') .setDescription('**This command sets the status of the bot.**') .setFooter(`This message has...
JavaScript
0.000002
@@ -214,17 +214,16 @@ vatarURL -' )%0A .set
bb815c1e1f153a2c4828a7ec2fbee71ed4ca1afa
Add drilldown JS events
js/foundation.drilldown.js
js/foundation.drilldown.js
!function(Foundation, $) { 'use strict'; /** * Creates a new instance of Drilldown. * @class * @fires Drilldown#init * @param {jQuery} element - jQuery object to make into a drilldown menu. * @param {Object} options - Overrides to the default plugin settings. */ function Drilldown(element, opti...
JavaScript
0
@@ -411,40 +411,8 @@ %7B%7D); -%0A console.log(this.defaults); %0A%0A @@ -2479,16 +2479,46 @@ arget%60.%0A + * @fires Drilldown#forward%0A * @pa @@ -2562,16 +2562,16 @@ tivate.%0A - */%0A @@ -2697,16 +2697,189 @@ $target; +%0A%0A /**%0A * Fires when the menu is done moving forwards.%0A ...
b0b53642d48ca34e9b1df783161a9e2b6399b0fa
Fix for Catalan Translation
js/i18n/grid.locale-cat.js
js/i18n/grid.locale-cat.js
;(function($){ /** * jqGrid Catalan Translation * Traducció jqGrid en Catatà per Faserline, S.L. * http://www.faserline.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Mostr...
JavaScript
0
@@ -431,18 +431,20 @@ : %22P -age +%C3%A0gina %7B0%7D -of +de %7B1%7D
c999283417f89d870d779d62087184791f4aafff
Fix hackernews css in firefox
js/news.ycombinator.com.js
js/news.ycombinator.com.js
// Collapse comments on HN // Mostly copied from https://github.com/Igglyboo/hn_collapse (function () { 'use strict'; var comments = document.getElementsByClassName('athing'); if(comments.length === 0){ return; } var lastCommentIndex = 0; // Some pages have a submission title that is al...
JavaScript
0.998245
@@ -115,16 +115,280 @@ trict';%0A +%0A // This makes sure we're on a comment page. Otherwise dotjs in firefox%0A // will not load the css because the JS fails to load%0A var commentTree = document.getElementsByClassName(%22comment-tree%22);%0A if (commentTree.length === 0) %7B%0A return;%0A %7D%0...
133593eb65add8e36f7f99e1eacdfa24c7b414f6
remove unused path import in pluginapi.js
js/rendererjs/pluginapi.js
js/rendererjs/pluginapi.js
// pluginapi.js: Sia-UI plugin API interface exposed to all plugins. // This is injected into every plugin's global namespace. import Siad from 'sia.js' import Path from 'path' import { remote } from 'electron' const dialog = remote.dialog const mainWindow = remote.getCurrentWindow() const config = remote.getGlobal('co...
JavaScript
0
@@ -150,32 +150,8 @@ js'%0A -import Path from 'path'%0A impo
ce545ee9b46923a11474ef4a8408f5836b01ffe6
Update num: 1478205175034
Gruntfile.js
Gruntfile.js
// Gruntfile.js // our wrapper function (required by grunt and its plugins) // all configuration goes inside this function //var exec = require('exec'); var exec = require('child_process').exec module.exports = function(grunt) { require('load-grunt-tasks')(grunt); // ==============================================...
JavaScript
0.000145
@@ -120,14 +120,8 @@ ion%0A -//var exec @@ -140,16 +140,18 @@ exec');%0A +// var exec @@ -1521,55 +1521,28 @@ -grunt.log.writeln(err);%0A grunt.log +process.stdout .write -ln (out
5683477aa68a6df6a84a2104317015becf57db36
Set the default task to 'all' (lint and run tests)
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-mochaccino'); grunt.loadNpmTasks('grunt-release'); grunt.initConfig({ clean: ['build'], jshint: { all: ['lib/**/*.js', 'tasks/**'], // see...
JavaScript
0.000001
@@ -2051,19 +2051,18 @@ ault', ' -test +all ');%0A%7D;%0A
6ab258e6209fced04278f23078a0997285106d47
add mongo handler integration tests to grun task
Gruntfile.js
Gruntfile.js
/* == STANDARD HEADER == Gruntfile for message-api */ module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.to...
JavaScript
0
@@ -2316,16 +2316,57 @@ ests.js' +,'test/mongoHandler_integration_tests.js' %5D %0A
a822836aac0e800254a8a3f41c702f7282ddf1a1
add build command
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { /** * Project configuration */ grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), /** * Minifies and uglifies javascript scripts */ uglify: { my_target: { files: { '...
JavaScript
0.000003
@@ -4301,24 +4301,182 @@ ult', %5B%5D);%0A%0A +%0A /**%0A * Builds%0A */%0A grunt.registerTask('build', %22Builds%22, %5B%0A 'uglify',%0A 'cssmin',%0A 'copy',%0A 'processhtml'%5D%0A );%0A%0A /**%0A
81e55634204c80392d6514557e0dc394536862c4
Fix comments
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { 'use strict'; // Force use of Unix newlines grunt.util.linefeed = '\n'; // Configuration grunt.initConfig({ // Metadata pkg: grunt.file.readJSON('package.json'), wuzzle: { less: 'src/wuzzle.less', css: 'dist/wuzzle.css', cssMin: 'dist/wuzzle...
JavaScript
0
@@ -212,16 +212,29 @@ son'),%0A%0A + // Paths%0A wuzz @@ -459,16 +459,30 @@ // Tasks + configuration %0A cle @@ -1419,21 +1419,20 @@ // -These +Load plugins pro @@ -1431,32 +1431,8 @@ gins - provide necessary tasks %0A r
3ae8435189066751c2523b9507d3b4adda0cf870
remove dev zone from locations as they can be derived
extractors/xenoblade-chronicles-2/src/entities/Locations.js
extractors/xenoblade-chronicles-2/src/entities/Locations.js
const { readFile } = require('@frontiernav/filesystem') const path = require('path') const _ = require('lodash') const log = require('pino')({ prettyPrint: true }).child({ name: path.basename(__filename, '.js') }) const { getAllRaw, getAllRawByName } = require('./gimmicks') const getAllRawNamesById = _.memoize(async (...
JavaScript
0
@@ -1231,62 +1231,8 @@ ory%0A - development_zone: devZone, // TODO: map to region%0A
608d89e299f981c10a1db13eb6af9b334b9ce48f
Update Grunt to run qunitnode on default task
Gruntfile.js
Gruntfile.js
module.exports = function( grunt ) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON( 'package.json' ), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= pkg.homepage ? " * " + pkg.homepage + "\\n" : "" %>' + ' * Copyright (c) <%= grunt.templa...
JavaScript
0
@@ -2584,16 +2584,26 @@ s qunit +qunitnode concat u
d3412748f98c78e99da6a96d590d1609b8b90626
Extracting paths into an object
Gruntfile.js
Gruntfile.js
/* * grunt-contrib-i18next * http://gruntjs.com/ * * Copyright (c) 2013 Ignacio Rivas * Licensed under the MIT license. */ module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', jshint: { all: [ 'Gruntfile.js', ...
JavaScript
0.999987
@@ -175,16 +175,145 @@ rict';%0A%0A + var Path = %7B%0A TESTS: 'test/*_test.js',%0A LOCALES: 'test/sample/**/locales',%0A BUILD_PATH: 'test/sample/languages'%0A %7D;%0A%0A // Pro @@ -677,24 +677,130 @@ p'%5D%0A %7D,%0A%0A + i18next: %7B%0A locales:%7B%0A src: %5BPath.LOCALES%5D,%0A ...
a21d013a58a3cb5c9ad580d9d3997306297780bb
Remove redundant parameters.
Gruntfile.js
Gruntfile.js
/* eslint indent: [ "warn", 2 ] */ // Generated on 2014-06-19 using generator-angular-fullstack 1.4.3 'use strict'; // Webpack config is exported as a function var webpackConfig = require('./webpack.config'); var webpackDevelopmentConfig = webpackConfig(process.env, { mode: 'development' }); var webpackProductionCon...
JavaScript
0.000011
@@ -1678,30 +1678,16 @@ prod: -Object.assign( webpackP @@ -1706,48 +1706,8 @@ fig, - %7B%0A mode: 'production',%0A %7D), %0A @@ -1760,37 +1760,8 @@ , %7B%0A - mode: 'development',%0A @@ -2016,30 +2016,16 @@ ebpack: -Object.assign( webpackD @@ -2045,53 +2045,8 @@ fig, - %7B%0A ...
196a9632d625c02993d8060f1125ec805c131f45
Update controllerTest.js
src/backend/rest/subscriber/test/controllerTest.js
src/backend/rest/subscriber/test/controllerTest.js
var assert = require('assert'); var msg = require('../msg.js'); var subController = require('../controller.js'); var testAdapter = require('./testAdapter.js'); var events = require('../../../events.js'); var controller = subController(testAdapter); //------------------------------------------------------------------...
JavaScript
0.000001
@@ -2520,43 +2520,70 @@ s = -%7Btemp: 0, token: 'not36characters'%7D +%5B'doesnt_matter_only_looking_for_params1', 'an_invalid_token'%5D ;%0A%09%09 @@ -2930,28 +2930,54 @@ s = -%7Btemp: 0, token: ''%7D +%5B'doesnt_matter_only_looking_for_params1', ''%5D ;%0A%09%09
4b57cf199a17387e7cce42066a0df87d14a9337c
add 'plus' artifact with toCase.js in it
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('bower.json'), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " ...
JavaScript
0.000001
@@ -770,32 +770,157 @@ %25%3E.js'%0A %7D,%0A + plus: %7B%0A src: %5B'src/%3C%25= pkg.name %25%3E.js', 'src/toCase.js'%5D,%0A dest: 'dist/%3C%25= pkg.name %25%3E.plus.js'%0A %7D%0A %7D,%0A uglif @@ -1081,32 +1081,144 @@ in.js'%0A %7D,%0A + plus: %7B%0A src: '%3C%25...
707a52e4dc9d36a47e31f12cd106f61f5e6227af
Add languages to destination dir on grunt build
Gruntfile.js
Gruntfile.js
Configuration = require('./app/helpers/Configuration'); module.exports = function (grunt) { grunt.initConfig({ jshint: { files: ['app/**/*.js', 'web/**/*.js'] }, jscs: { main: ['app/**/*.js', 'web/**/*.js'] }, requirejs: { compile: { options: { baseUrl: "web", ...
JavaScript
0.000001
@@ -2315,24 +2315,113 @@ sources' %7D,%0A + %7B expand: true, cwd: 'web/languages', src: %5B '**' %5D, dest: 'dist/languages' %7D,%0A %7B%0A
a2bc8d88902b02c5bf87c7c2ab3c11904187090f
Update Gruntfile.js
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: '', process: function(src, filepath) { return '// file:' + filepath + '\n' + src; } }, all: { src: ['src/log.js', ...
JavaScript
0
@@ -5147,30 +5147,8 @@ ult' -, 'karma', 'coveralls' %5D);%0A
2a18989a09c80bf468cad9b9202425ce8bccedbf
add version to gruntfile
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { var coreFile = 'Erika.js'; var resourceFiles = [coreFile, 'Core/*.js', 'utils/*.js', 'dom/*.js']; var allFiles = ['Gruntfile.js', coreFile, 'Core/*.js', 'utils/*.js', 'dom/*.js']; var devDir = 'dev/'; var tmpDir = 'tmp/'; var banner = '/*! <%= pkg.name %> - v...
JavaScript
0.000001
@@ -268,24 +268,64 @@ r = 'tmp/';%0A + var version = '%3C%25= pkg.version %25%3E';%0A var bann
3b557e0d580e71cab69cb2007917a8fa09a91e30
remove jshint stylish
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { var pkg = require('./package.json'), buildTime = new Date(); grunt.initConfig({ outputName: 'scrollview', replace: { build: { files: [{ src: ['src/scrollview.js'], dest: '<%= outputN...
JavaScript
0.000035
@@ -786,61 +786,8 @@ trc' -,%0A reporter: require('jshint-stylish') %0A
687efd5bbf3eaa48ac4cb944dbd77f5dc1043f34
Update the branch to work with toolkit on develop branch
examples/main.js
examples/main.js
// jshint browser:true, jquery: true // jshint varstmt: true import rethink from 'runtime-browser/bin/rethink'; import {getTemplate, serialize} from '../src/utils/utils'; import config from '../config.json'; window.KJUR = {}; let domain = config.domain; let runtimeLoader; console.log('Configuration file:', config...
JavaScript
0
@@ -80,27 +80,30 @@ om ' -runtime-browser/bin +../resources/factories /ret
d578787e71daaa0404dc84bd91ba6c996dc5eebc
Fix Hilbert order encoding bug
Source/Core/HilbertOrder.js
Source/Core/HilbertOrder.js
import Check from "./Check.js"; /** * Hilbert Order helper functions. * @see {@link https://en.wikipedia.org/wiki/Hilbert_curve} * * @namespace HilbertOrder */ var HilbertOrder = {}; /** * Computes the Hilbert index from 2D coordinates. * * @param {Number} level The level of the curve * @param {Number} x The...
JavaScript
0.000037
@@ -645,18 +645,26 @@ n = -2 ** +Math.pow(2, level +) ;%0A @@ -697,16 +697,20 @@ %0A var d + = 0 ;%0A%0A for
0432fba33aa46e7db05896efd1e24c163a779b87
define blog through of params object
example/index.js
example/index.js
/** * Module dependencies. */ var express = require('express'); var WPOAuth = require('../'); /** * Get setting data */ var setting = require('./setting.json'); /** * Create a WPOAuth instance */ var wpoauth = WPOAuth(setting); // setup middleware var pub = __dirname + '/public'; var app = express(); app....
JavaScript
0.000001
@@ -539,16 +539,84 @@ Connect( +%7B%0A blog: 'retrofocs.wordpress.com',%0A scope: 'global'%0A %7D )%0A %7D);%0A
a272275b2e6f1e0fbef77db028769a48e88d755b
Update main.js
data/main.js
data/main.js
/*@pjs preload="data/images/logo1.png";*/ var sketchProc=function(processingInstance){ with (processingInstance){ //Setup var wi = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var he = window.innerHeight || document.documentElement.clientHeight || ...
JavaScript
0.000001
@@ -464,29 +464,24 @@ loadImage(%22 -data/ images/logo1
a441848f22a460a462280c885e4cf53b8eed672b
Remove img task from grunt build
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // load all tasks from package.json require('load-grunt-config')(grunt); require('time-grunt')(grunt); /** * TASKS */ // build everything ready for a commit grunt.registerTask('build', ['img', 'css', 'js']); // just CSS grunt.registerTask('css', ['sass', 'cssmi...
JavaScript
0
@@ -234,23 +234,16 @@ uild', %5B -'img', 'css', '
1ce8eb01a738ddfdc0f5f77db81d75ec4967ee08
Update main.js
data/main.js
data/main.js
/*@pjs preload="data/images/logo1.png";*/ var sketchProc=function(processingInstance){ with (processingInstance){ //Setup var wi = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var he = window.innerHeight || document.documentElement.clientHeight || ...
JavaScript
0.000001
@@ -592,9 +592,9 @@ dth/ -8 +5 ;%0A%09b @@ -604,17 +604,17 @@ width/1 -6 +0 ;%0A%09prim
071e8393f2061805dd9478e26a3b594d2c810f80
Append the strind inside html, debug easy
example/index.js
example/index.js
fallback.load({ css: 'index.css', JSON: '//cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.min.js', jQuery: [ '//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.FAIL_ON_PURPOSE.min.js', '//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', '//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.m...
JavaScript
0.000001
@@ -1064,37 +1064,45 @@ Completed%0A%09 -console.log(' +$('body').append('%3Cp%3E fallback.rea @@ -1113,32 +1113,36 @@ jQuery Completed +%3C/p%3E ');%0A%7D);%0A%0Afallbac @@ -1198,37 +1198,45 @@ Completed%0A%09 -console.log(' +$('body').append('%3Cp%3E fallback.rea @@ -1250,32 +1250,36 @@ ery UI Completed +%3C...
62853eaa60c48b4af27bfb01881a7a1804ba02e6
Build default for CI test run
Gruntfile.js
Gruntfile.js
require('shelljs/global'); var timer = require("grunt-timer"); /** * CartoDB UI assets generation */ module.exports = function(grunt) { if (timer) timer.init(grunt); var ROOT_ASSETS_DIR = './public/assets/'; var ASSETS_DIR = './public/assets/<%= pkg.version %>'; // use grunt --environ...
JavaScript
0
@@ -5246,35 +5246,124 @@ -%5B'config', 'concat:js', 'js +'(CI env) Re-build JS files and run all tests. ' +%0A 'For manual testing use %60grunt jasmine%60 directly', %5B'defaul t',
4494968ca802dacb433010c4e5cab539261d3056
fix gruntfile
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ 'loopback_auto': { 'db_autoupdate': { options: { dataSource: 'db', app: './server/server', config: './server/model-config', method: 'autoupdate' } } }); // Load the plugin grunt.loadNpm...
JavaScript
0.000005
@@ -270,16 +270,22 @@ %7D%0A + %7D%0A %7D);%0A @@ -302,17 +302,16 @@ e plugin - %0A grunt
811bfcf1bed1a463a49cf39c5e8d450e1c7d5d56
change name of instrumental project key to indicate which key is required
exampleConfig.js
exampleConfig.js
/* Example StatsD configuration for sending metrics to Instrumental. See the offical Statsd exampleConfig.js for more StatsD options. */ { port: 8125 , backends: ["statsd-instrumental-backend" ] , debug: false , instrumental: { key: "INSTRUMENTAL_API_KEY", // REQUIRED secure: true, // OPTIONAL (boolean), wheth...
JavaScript
0.000001
@@ -236,28 +236,25 @@ y: %22 -INSTRUMENTAL +PROJECT _API_ +TO KE -Y +N %22, /
1ee72c64b461a7c09556392e30c09cc1e63ddfda
Create d3fc.bundle(.min).js
Gruntfile.js
Gruntfile.js
/* global module, require */ module.exports = function(grunt) { 'use strict'; require('time-grunt')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { metaJsFiles: [ 'Gruntfile.js' ], componentsJsFiles: [ ...
JavaScript
0.000001
@@ -1725,36 +1725,42 @@ %7D,%0A -site +components : %7B%0A @@ -1808,34 +1808,13 @@ les/ -css-layout/dist/css-layout +d3/d3 .js' @@ -1841,37 +1841,58 @@ 'node_modules/ -d3/d3 +css-layout/dist/css-layout .js',%0A @@ -1974,32 +1974,195 @@ 'dist/d3fc.js' +%0A %5D...
e10c2b53c1eeecce823bb710dfa0f492a3489752
Remove spaces at end of line
Gruntfile.js
Gruntfile.js
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/licenses/lgpl-...
JavaScript
0.999999
@@ -1386,17 +1386,16 @@ %5D, - %0A
874886cda57b80b5f06a9e3003bd9e20c6601feb
Add es2015 preset to babel
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ "babel": { options: { sourceMap: false }, dist: { files: [ { "expand": true, "cwd": "modules/", "src": ["**/*.js"], "dest": "dist", "ext": ".js" }] } ...
JavaScript
0
@@ -105,16 +105,45 @@ p: false +,%0A presets: %5B'es2015'%5D %0A %7D
d36a0e96bd1d7b249a90d8b5b93fc5c37c1bc97f
Tweak Gruntfile
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ 'shell': { 'options': { 'stdout': true, 'stderr': true, 'failOnError': true }, 'cover': { 'command': 'istanbul cover --report "html" --verbose --dir "coverage" "tests/tests.js"' }, 'test-narwhal': { 'command': 'echo "Testing in...
JavaScript
0.000001
@@ -244,32 +244,83 @@ %22tests/tests.js%22 +; istanbul report --root %22coverage%22 --format %22html%22 '%0A%09%09%09%7D,%0A%09%09%09'test
61444c0ee6f2a087ba76ba953a4bc6672d4728eb
Update phpdocumentor grunt task.
Gruntfile.js
Gruntfile.js
var fs = require('fs'); module.exports = function(grunt) { grunt.initConfig( { /** * Reads the 'package.json' file and puts it content into a 'pkg' Javascript object. */ pkg : grunt.file.readJSON('package.json'), /** ...
JavaScript
0
@@ -3992,16 +3992,20 @@ n/phpdoc +.php --targe
c8bd66263fec314217e61a3b8fa2903a93d20ff9
make removelogging work on min files
Gruntfile.js
Gruntfile.js
var cp = require('child_process'); var buildConfig = require('./config/build'); module.exports = function(grunt) { grunt.initConfig({ concat: { options: { separator: ';\n' }, dist: { src: buildConfig.ionicFiles, dest: 'dist/js/ionic.js' }, distangular: { ...
JavaScript
0.000001
@@ -1966,24 +1966,17 @@ cwd: ' -dist/js/ +. ',%0A @@ -1987,17 +1987,46 @@ src: %5B' -* +dist/js/*.js', '!dist/js/*.min .js'%5D,%0A @@ -2042,16 +2042,24 @@ dest: '. +/dist/js '%0A @@ -4448,22 +4448,8 @@ e',%0A - 'uglify',%0A @@ -4476,24 +4476,59 @@ at:bundle',%0A + 'removelogging',%0A ...
02a65a53c028dcbd8cb8b39ffe7c1215b83e600f
Remove unneeded rules
Gruntfile.js
Gruntfile.js
"use strict"; module.exports = function(grunt) { grunt.initConfig({ pkg: '<json:package.json>', jshint: { files: ['Gruntfile.js', 'test/**/*.js', 'public/js/**/*.js', 'routes/**/*.js' ], options: { curly: true, eqeqeq: true, ...
JavaScript
0.000019
@@ -160,78 +160,16 @@ ' -test/**/*.js',%0A 'public/js/**/*.js',%0A 'route +public/j s/**
0a3a0df6bf3e0d4c3b5cf7bb2d7b7f3785719697
fix build task
Gruntfile.js
Gruntfile.js
/** * Created by Tivie on 12-11-2014. */ module.exports = function (grunt) { if (grunt.option('q') || grunt.option('quiet')) { require('quiet-grunt'); } // Project configuration. var config = { pkg: grunt.file.readJSON('package.json'), concat: { options: { sourceMap: true, ...
JavaScript
0.000456
@@ -3519,13 +3519,13 @@ ncat -enate +:dist ', '
b210ae79588011c6fbeceb13c486187cc7a217c6
Refactor the build process
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ copyPackageTo: "\\\\telerik.com\\Resources\\BlackDragon\\Builds\\appbuilder-sublime-package", movePackageTo: process.env["JOB_NAME"] ? "\\\\telerik.com\\Resources\\BlackDragon\\Builds\\appbuilder-sublime-package" : "build", jobName: process....
JavaScript
0
@@ -55,538 +55,49 @@ g(%7B%0A -%09%09copyPackageTo: %22%5C%5C%5C%5Ctelerik.com%5C%5CResources%5C%5CBlackDragon%5C%5CBuilds%5C%5Cappbuilder-sublime-package%22,%0A%09%09%0A movePackageTo: process.env%5B%22JOB_NAME%22%5D ? %22%5C%5C%5C%5Ctelerik.com%5C%5CResources%5C%5CBlackDragon%5C%5CBuilds%5C%5Cappbuilder-subli...
e00937642d3e034428360c911ce7968c69f2eb4e
Fix no-redeclare warning in js lint
senlin_dashboard/static/app/core/receivers/actions/actions.module.js
senlin_dashboard/static/app/core/receivers/actions/actions.module.js
/* * 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 * distribute...
JavaScript
0.00001
@@ -1236,20 +1236,16 @@ Resource -Type = regis @@ -1307,20 +1307,16 @@ Resource -Type .itemAct @@ -1542,20 +1542,16 @@ Resource -Type .batchAc
ca974c1ab2a3e755216dc87e8eea7664a4369d31
fix gh-pages error
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { var pkg = grunt.file.readJSON('package.json'); grunt.initConfig({ gitinfo: {}, pkg: pkg, // Ignore patch versions. Those should only have bugfixes so we just want to // udpate the docs in that case. Minor version changes should add features ...
JavaScript
0.000012
@@ -1432,16 +1432,19 @@ + // silent: @@ -2855,24 +2855,46 @@ coveralls',%0A + 'gh-pages-clean',%0A 'gh-page
7c4c04aa4a8d8ef7593d503baa90b03f979ab325
fix decision card component test
frontend/tests/integration/components/decision-card-test.js
frontend/tests/integration/components/decision-card-test.js
import { expect } from 'chai'; import { context, beforeEach, describe, it } from 'mocha'; import { setupComponentTest } from 'ember-mocha'; import hbs from 'htmlbars-inline-precompile'; import { make, manualSetup } from 'ember-data-factory-guy'; let broadcast; describe('Integration | Component | decision card', funct...
JavaScript
0
@@ -868,9 +868,9 @@ .$(' -# +. titl
7ef5d32cc313398c3933625a5b3029ddd9dc26a9
Update Gruntfile.js for unit tests #30
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // Task Configuration clean: { dist: ['dist'] }, jshint: { options: { jshintrc: '.jshintrc' }, gruntfile: { src: 'Gruntfile.js' ...
JavaScript
0
@@ -1399,18 +1399,16 @@ -// 'src/ext @@ -1425,30 +1425,8 @@ .js' - if backbone else None ,%0A @@ -1597,16 +1597,35 @@ e %25%3E %3C%25= + pkg.version %25%3E %3C%25= grunt.t @@ -1699,18 +1699,20 @@ src: ' -js +dist /%3C%25= pkg @@ -1745,19 +1745,16 @@ : 'dist/ -js/ %3C%25= pkg. @@ -1817,18 +1817,2...
51899cc779bbfa534f8dbf62018fe21f7fb429f7
Change the comparison tests to run Narcissus as the last one.
test/compare.js
test/compare.js
/*jslint browser: true */ function runBenchmarks() { 'use strict'; var index = 0, totalSize = 0, totalTime = 0, fixture; fixture = [ 'esprima jquery-1.7.1', 'narcissus jquery-1.7.1', 'parsejs jquery-1.7.1', 'zeparser jquery-1.7.1', 'esprima ...
JavaScript
0
@@ -200,42 +200,8 @@ 1',%0A - 'narcissus jquery-1.7.1',%0A @@ -256,24 +256,58 @@ uery-1.7.1', +%0A 'narcissus jquery-1.7.1', %0A%0A 'e @@ -337,47 +337,8 @@ 0',%0A - 'narcissus prototype-1.7.0.0',%0A @@ -407,16 +407,55 @@ .7.0.0', +%0A 'narcissus prototype-1.7.0.0', %...
3a9b4b82af54f31e7d65b5ec287b1abfc2d35adf
Enable karma in dist taks
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-karma'); grunt.loadNpmTasks('grunt-ng-annotate'); grunt.registerTask('defaul...
JavaScript
0.000001
@@ -381,18 +381,16 @@ 'jshint' -/* , 'karma @@ -395,18 +395,16 @@ ma:dist' -*/ , 'conca
f7bcdd9e4ad48a50634fd136da1937f29ef3ff06
assert the final report
Gruntfile.js
Gruntfile.js
/* * grunt-cucumberjs * https://github.com/mavdi/cucumberjs * * Copyright (c) 2013 Mehdi Avdi * Licensed under the MIT license. */ 'use strict'; var report = require('./test/assert/assertReport'); module.exports = function(grunt) { var options = { templateDir: 'templates/bootstrap', output: ...
JavaScript
0.999987
@@ -149,17 +149,23 @@ t';%0Avar -r +assertR eport = @@ -462,22 +462,22 @@ unction -assert +verify Report() @@ -483,25 +483,31 @@ ) %7B%0A -r +assertR eport.assert @@ -1951,22 +1951,22 @@ eport', -assert +verify Report);