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
90afbbaf91748b6a1a703f7f780f0126d38e70d1
add more document size checks
src/dom-utils/getDocumentRect.js
src/dom-utils/getDocumentRect.js
// @flow import type { Rect } from '../types'; import getDocumentElement from './getDocumentElement'; import getComputedStyle from './getComputedStyle'; import getWindowScrollBarX from './getWindowScrollBarX'; import getWindowScroll from './getWindowScroll'; // Gets the entire size of the scrollable document area, eve...
JavaScript
0
@@ -625,32 +625,37 @@ idth = Math.max( +%0A html.scrollWidth @@ -651,24 +651,50 @@ scrollWidth, +%0A html.clientWidth,%0A body ? body @@ -709,16 +709,52 @@ idth : 0 +,%0A body ? body.clientWidth : 0%0A );%0A con @@ -770,24 +770,29 @@ = Math.max( +%0A html.scrollH @@ -797,16 +797,43 @@ lHe...
dd65861129ab7a536911138e4f9d626ad58e3924
Bring back the grunt test:cleanup task, and increase wait time after starting selenium server
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Keep track of protractor (end-to-end test runner) exit code. If it's anything other than 0, // we want to suppress the "Done, without errors" message that grunt emits upon finishing all // the tasks. var protractorExitCode = null; grunt.initConfig({ pk...
JavaScript
0.000142
@@ -2157,32 +2157,840 @@ %7D,%0A%0A + // Hacky workaround for killing the test app and stopping selenium server, if for some%0A // reason they remain running after executing the tests. Just run this command a couple%0A // times: grunt shell:cleanup%0A cleanup: %7...
ffa95c7abd07a09ab8d1b88a97f1a0230ee31576
remove span to fix error styling (#231)
app/assets/javascripts/moj.autocomplete.js
app/assets/javascripts/moj.autocomplete.js
/* eslint-disable */ // Selectbox Autocomplete module for MOJ // Dependencies: moj, jQuery, jQuery UI (function (window, $) { 'use strict'; var MojAutocomplete = function(el, options){ // avoid applying twice if(!el.data('moj.autocomplete')){ // TODO: find a better way... // set settings this...
JavaScript
0
@@ -738,144 +738,8 @@ ()%7B%0A - // create and hide el%0A this.$wrapper = $('%3Cspan%3E')%0A .addClass('moj-autocomplete')%0A .insertAfter(this.$select);%0A @@ -1525,16 +1525,33 @@ -control + moj-autocomplete ')%0A @@ -3024,71 +3024,63 @@ // -append input to wrapper%0A this...
dedfd66741cafb7e72e0d7989a8704b91c7d1ca5
change some paths
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ "babel": { background: { options: { sourceMap: false }, files: [{ "expand": true, "cwd": "modules/background/", "src": ["**/*.js"], "dest": "client/logic", "ext": ".js" ...
JavaScript
0.000007
@@ -283,16 +283,27 @@ nt/logic +/background %22,%0A @@ -488,24 +488,18 @@ client/a -ssets/js +pp /%22,%0A @@ -547,35 +547,17 @@ %22: %22 -modules/client/assets/js/tm +client/ap p/%22,
1580157ae8c05af9c99d06a92f7f4f77b4808f9d
Remove old task
Gruntfile.js
Gruntfile.js
/*jshint camelcase: false */ 'use strict'; module.exports = function (grunt) { var app = { files: { js: [ 'Gruntfile.js', 'generators/{,**/}*.js', 'test/{,**/}*.js' ] } }; // Define the configuration for all the tasks grunt.initConfig({ // Watches files for c...
JavaScript
0.000007
@@ -781,149 +781,8 @@ %7D,%0A%0A - shell: %7B%0A options: %7B%0A stdout: true,%0A stderr: false%0A %7D,%0A test: %7B%0A command: 'npm test'%0A %7D%0A %7D,%0A%0A
92f71108db0145ddeb34f502022752b1e0c7248b
Tweak searchbar mitigation tuning
app/assets/javascripts/studentSearchbar.js
app/assets/javascripts/studentSearchbar.js
import {apiFetchJson} from './helpers/apiFetchJson'; const STUDENT_NAMES_CACHE_KEY = 'studentInsights.studentSearchbar.studentNamesCacheKey'; function setupSearchBarAutocomplete(names) { // Ways to mitigate impact of large lists: // 1. increased delay until searching happens // 2. add min length for typing //...
JavaScript
0
@@ -435,25 +435,25 @@ es.length %3E -1 +5 000) ? 500 : @@ -489,17 +489,17 @@ ength %3E -1 +5 000) ? 3
0d74b916b4cb6fe225ac07976c3c3389ddea09dc
debug mode in mongoose and exporting mongoose instance
server/db/index.js
server/db/index.js
const mongoose = require('mongoose') const { DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME } = process.env const URI = `mongodb://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}` mongoose.connect(URI)
JavaScript
0
@@ -29,16 +29,78 @@ ngoose') +%0Amongoose.Promise = global.Promise%0Amongoose.set('debug', true) %0A%0Aconst @@ -271,8 +271,35 @@ ct(URI)%0A +%0Amodule.exports = mongoose%0A
0c781ae83c579b658d8bbf2ddf00b8e6f45760af
Allow specification of horizontal and vertical slices.
chapter06/sphere.js
chapter06/sphere.js
"use strict"; function Sphere(gl , program) { this.gl = gl; this.program = program; var pos_matrix; var u_pos_matrix; var mov_matrix; var rot_matrix; var shape; var shape_indexes; var index_buffer; var x_theta = 0.0; var y_theta = 0.0; var z_theta = 0.0; var x_p...
JavaScript
0
@@ -36,16 +36,38 @@ program + , h_slices , v_slices )%0A%7B%0A @@ -580,17 +580,35 @@ _sphere( -8 +h_slices , v_slices );%0A%09shap @@ -643,9 +643,27 @@ xes( -8 +h_slices , v_slices );%0A%0A @@ -2495,32 +2495,45 @@ = function( +h_slices , v_ slices)%0A %7B%0A%09var n @@ -2512,32 +2512,32 @@ ces , v_s...
2f6bae0cc8bb25963500e93599ef8bfba8c5d94f
Create generateRouteForGoogle function which creates the route path to be sent to google - google.maps objects created
app/assets/javascripts/api_requests.js
app/assets/javascripts/api_requests.js
var hereRoute = function(start,end){ if (document.querySelector('input[name = "name"]:checked') != null){ var avoidSelection = document.querySelector('input[name = "name"]:checked').value } $.ajax({ method: "GET", url: "/pins", data: {avoid: avoidSelection} }) .done(function(response){ ...
JavaScript
0
@@ -611,17 +611,16 @@ ponse);%0A -%0A @@ -641,173 +641,47 @@ y = -%5B%5D%0A for(var i = 0; i %3C maneuverArray.length; i++)%7B%0A pathArray.push(new google.maps.LatLng(maneuverArray%5Bi%5D%5B0%5D, maneuverArray%5Bi%5D%5B1%5D));%0A %7D +generateRouteForGoogle(maneuverArray);%0A ...
051ca2e3b70254f2bc24b5df74537beab88aa2e7
Refactor startSetupButtonText as prop.
assets/js/components/activation/activation-main.js
assets/js/components/activation/activation-main.js
/** * Activation Main component. * * Site Kit by Google, Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0...
JavaScript
0
@@ -966,16 +966,38 @@ artSetup +, startSetupButtonText %7D ) %7B%0A%09 @@ -1674,46 +1674,28 @@ %09%09%7B -__( 'S +s tart - s +S etup -', 'google-site-kit' ) +ButtonText %7D%0A%09
aeb2618a345dd7a180faa505d74a1b735da07202
revert dct example
examples/mat-dct.js
examples/mat-dct.js
var cv = require('../lib/opencv'); var createGaussianKernel = function(sigma){ var cst = 1; var denom = (2*sigma*sigma); var factor = 100; return { get : function(i,j){ //console.log(cst, denom, ((i/10)*(i/10)+(j/10)*(j/10)), denom, Math.exp((i*i+j*j)/denom)) return cst*Math.exp(-1*(i*i+j*j)/de...
JavaScript
0
@@ -33,1175 +33,117 @@ );%0A%0A -var createGaussianKernel = function(sigma)%7B%0A var cst = 1;%0A var denom = (2*sigma*sigma);%0A var factor = 100;%0A return %7B%0A get : function(i,j)%7B%0A //console.log(cst, denom, ((i/10)*(i/10)+(j/10)*(j/10)), denom, Math.exp((i*i+j*j)/denom))%0A return cst*Math.e...
2451b9ff9692229d9a6328577d016117964058a3
Update Scene.js
src/scenes/Scene.js
src/scenes/Scene.js
import { Object3D } from '../core/Object3D.js'; class Scene extends Object3D { constructor() { super(); this.isScene = true; this.type = 'Scene'; this.background = null; this.environment = null; this.fog = null; this.overrideMaterial = null; if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { ...
JavaScript
0.000001
@@ -1029,17 +1029,16 @@ precated - %0A%0A%09get a
0160722835fb0cd44c3f2b10f39f890e3fc9bc9c
edit js
server/public/js/build.js
server/public/js/build.js
/* * Build.js */ if (typeof(_XUKA_) == 'undefined') { _XUKA_= {}; } _XUKA_.init = function () { // bind inputs for (key in _XUKA_.input) { if (_XUKA_.input.hasOwnProperty(key)) { $('#' + key)[_XUKA_.input[key].action_type](_XUKA_.input[key].call); } } } _XUKA_.input = { build_now : { action_type: 'c...
JavaScript
0
@@ -481,16 +481,47 @@ %0A%09%7D%0A%7D%0A%0A%0A +$(document).ready(function()%7B%0A%09 _XUKA_.i @@ -527,8 +527,12 @@ init();%0A +%7D);%0A
9fc4a4fcc954c493bb4ed0bebe1a57416b33bd3a
Simplify rotated image paths
capture.js
capture.js
const args = require('system').args const async = require('async') const page = require('webpage').create() function delay(duration, callback) { setTimeout(callback, duration) } function waitUntil(conditionCallback, done) { if (conditionCallback()) { done() } else { delay(10, function() { waitUnti...
JavaScript
0.00015
@@ -1045,82 +1045,25 @@ ath( -rotation) %7B%0A const num = ('000' + rotation).slice(-3)%0A const start = +num) %7B%0A return pat @@ -1087,25 +1087,8 @@ '') -%0A return start + ' @@ -1130,16 +1130,20 @@ otator(i +ndex , callba @@ -1170,16 +1170,20 @@ tion = i +ndex * incre @@ -1204,16 +1204,20 @@...
430dd202693f4f8a2a79cf7ee28d81db549faa22
Fix silly indentation [ci skip]
blockly-core/core/utils/functional_block_utils.js
blockly-core/core/utils/functional_block_utils.js
/** * Visual Blocks Editor * * Copyright 2011 Google Inc. * http://blockly.googlecode.com/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
JavaScript
0.000035
@@ -3855,64 +3855,8 @@ tor, -%0A opt @@ -4267,24 +4267,16 @@ ockType, -%0A blockAr
754f5f84e1fa174b7578593d0ac962aa39749283
fix js gulp task path
templates/gulp-tasks/js.js
templates/gulp-tasks/js.js
var gulp = require('gulp'); var babel = require('gulp-babel'); var uglify = require('gulp-uglify'); var browserSync = require('browser-sync'); gulp.task('js-dev', function() { return gulp.src('src/js/**/*.js') .pipe(babel()) .pipe(gulp.dest('dev/js')) .pipe(browserSync.reload({stream:true})); }); //jshint and ...
JavaScript
0.000102
@@ -241,16 +241,21 @@ p.dest(' +dist/ dev/js')
be9cf2f9c675ead02963a5b1ea83e60e385f6486
fix typoe gruntfile
GruntFile.js
GruntFile.js
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-coffee'); grunt.config('coffee', { options: { bare: true }, files: { expand: true, cwd: './', src: [ '*Bundle/Resources/public/coffee/**/*.coffee' ...
JavaScript
0.00024
@@ -820,25 +820,24 @@ run: true -, %0A
c32b70e6fca53075fbee65c1661134c72f3190a9
Return the number of elements to draw.
chapter06/sphere.js
chapter06/sphere.js
"use strict"; function Sphere(gl , program , h_slices , v_slices) { this.gl = gl; this.program = program; var pos_matrix; var u_pos_matrix; var mov_matrix; var rot_matrix; var shape; var shape_indexes; var index_buffer; var x_theta = 0.0; var y_theta = 0.0; var z_the...
JavaScript
0
@@ -2003,32 +2003,102 @@ 0%0A%09);%0A %7D%0A%0A + this.size = function()%0A %7B%0A%09return shape_indexes.length;%0A %7D%0A%0A this.rotate_
a725505e663009ef6b6a021a6a82f605cf809b8e
Work around element sizing bug in Chrome
src/elements/ClippableElement.js
src/elements/ClippableElement.js
/** * Element that can be automatically clipped to visible boundaies. * * @abstract * @class * * @constructor * @param {jQuery} $clippable Nodes to clip, assigned to #$clippable * @param {Object} [config] Configuration options */ OO.ui.ClippableElement = function OoUiClippableElement( $clippable, config ) { /...
JavaScript
0.00726
@@ -4283,36 +4283,16 @@ css( - %7B 'overflow-x': '', 'width' : th @@ -4287,17 +4287,17 @@ 'width' -: +, this.id @@ -4307,25 +4307,172 @@ Width %7C%7C '' -%7D +);%0A%09%09this.$clippable.width(); // Force reflow for https://code.google.com/p/chromium/issues/detail?id=387290%0A%09%09this.$clippable.css( 'overfl...
c1638c807c5ff2d2ce23503b2bc5dc05f382618f
Fix module dependency
js/angular/components/actionsheet/actionsheet.js
js/angular/components/actionsheet/actionsheet.js
(function() { 'use strict'; angular.module('foundation.actionsheet', ['foundation.core']) .controller('ZfActionSheetController', zfActionSheetController) .directive('zfActionSheet', zfActionSheet) .directive('zfAsContent', zfAsContent) .directive('zfAsButton', zfAsButton) .service('FoundationAc...
JavaScript
0.000001
@@ -388,34 +388,28 @@ onsheet', %5B' -foundation +base .core'%5D)%0A
39e77df344c1461f37f3b413a775a61d2a4ac772
Add keyboard shortcuts to the slippy map.
public/javascripts/map.js
public/javascripts/map.js
var map; var markers; var popup; function createMap(divName) { OpenLayers.Util.onImageLoadError = function() { this.src = OpenLayers.Util.getImagesLocation() + "404.png"; } map = new OpenLayers.Map(divName, { maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,2003...
JavaScript
0
@@ -1420,16 +1420,78 @@ cher()); +%0A map.addControl(new OpenLayers.Control.KeyboardDefaults()); %0A%0A ret
c054dcfaeb28aff0c62a2d64399675f470e77c55
Treat 'HOME' keyboard key as 'Menu' key
platform/web/.core.js
platform/web/.core.js
_globals.core.__deviceBackend = function() { return _globals.web.device } exports.core.keyCodes = { 13: 'Select', 16: 'Shift', 17: 'Ctrl', 18: 'LeftAlt', 27: 'Back', 37: 'Left', 32: 'Space', 33: 'PageUp', 34: 'PageDown', 38: 'Up', 39: 'Right', 40: 'Down', 48: '0', 49: '1', 50: '2', 51: '3', 52: '4', ...
JavaScript
0.999984
@@ -224,16 +224,29 @@ eDown',%0A +%0936: 'Menu',%0A %0938: 'Up
d3f73e49902b758b4feb38013bf5b0be97ba0879
verify JWT token
server/tests/auth.test.js
server/tests/auth.test.js
import request from 'supertest-as-promised'; import httpStatus from 'http-status'; import chai, { expect } from 'chai'; import app from '../../index'; chai.config.includeStack = true; describe('## AUTH APIs', () => { const user = { username: 'react', password: 'express' }; let jwtToken; describe('# G...
JavaScript
0.000007
@@ -76,16 +76,48 @@ tatus';%0A +import jwt from 'jsonwebtoken';%0A import c @@ -177,16 +177,102 @@ ndex';%0A%0A +const config = require('../../config/env');%0Aconst should = require('chai').should();%0A%0A chai.con @@ -453,33 +453,8 @@ ogin - (login to get JWT token) ', ( @@ -478,16 +478,24 @@ ould get + (valid)...
dc77a419bc22aba97afc20fe45f1c8ea64b94c69
Fix new url field focus bug (#194)
app/components/gh-navitem-url-input.js
app/components/gh-navitem-url-input.js
import TextField from 'ember-components/text-field'; import computed from 'ember-computed'; import run from 'ember-runloop'; import {InvokeActionMixin} from 'ember-invoke-action'; let joinUrlParts = function (url, path) { if (path[0] !== '/' && url.slice(-1) !== '/') { path = `/${path}`; } else if (pat...
JavaScript
0
@@ -4116,16 +4116,38 @@ l !== '' + %7C%7C !this.get('isNew') ) %7B%0A
bf46e9dab3f154a47cfd8b44d25a559bc0c4c62b
Comment grunt copy:bootstrap.
Gruntfile.js
Gruntfile.js
module.exports = function(grunt){ grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), copy: { img: { files: [{src: 'src/img/*', dest: 'dist/img/', flatten: true, expand: true}] }, // Copy Bootstrap LESS files to src/less/bootstrap/less/ and Fonts to dist/fonts/ (used manual...
JavaScript
0
@@ -217,23 +217,34 @@ %7D,%0A +%0A / -/ Copy B +**%0A * copy:b oots @@ -252,87 +252,236 @@ rap -LESS files to src/less/bootstrap/less/ and Fonts to dist/fonts/ (used manually) +is used to upgrade bootstrap in src/less/bootstrap, and should not be run routinely%0A * First, upgrade the tag ref for...
cd19885871e04520c57c1be552483f7200a42b99
Modify Assignments Page.
app/containers/AssignmentListPage/index.js
app/containers/AssignmentListPage/index.js
/* * * AssignmentListPage * */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import selectAssignmentListPage from './selectors'; import { FormattedMessage } from 'react-intl'; ...
JavaScript
0
@@ -2566,9 +2566,10 @@ op: -8 +12 px;%0A
a1ec478140eac3b2ba8e7c9ff26e67a98be454e5
Fix desktop grunt build mistakes
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { var path = require("path"); var pkg = require("./package.json"); // Path to the client src var clientPath = path.resolve(__dirname, "client"); // Init GRUNT configuraton grunt.initConfig({ 'pkg': grunt.file.readJSON('package.json'), 'hr': { ...
JavaScript
0.000001
@@ -3733,19 +3733,99 @@ %22./ -desktop +**%22,%0A%0A %22!./.git/**%22,%0A %22!./.addons/**%22,%0A %22!./appBuilds /**%22 +, %0A
67117426e93bf5b09845fc55561db62b263800e0
convert to class
js/standardform/view/StandardFormEquationNode.js
js/standardform/view/StandardFormEquationNode.js
// Copyright 2018, University of Colorado Boulder /** * Renderer for general equation in standard form. * Standard form is y = ax^2 + bx + c * * @author Andrea Lin */ define( function( require ) { 'use strict'; // modules const GQFont = require( 'GRAPHING_QUADRATICS/common/GQFont' ); const graphingQuadra...
JavaScript
0.999999
@@ -999,16 +999,71 @@ /y' );%0A%0A + class StandardFormEquationNode extends RichText %7B%0A%0A /**%0A @@ -1063,16 +1063,18 @@ /**%0A + + * @param @@ -1100,64 +1100,28 @@ %0A -* @constructor%0A */%0A function StandardFormEquationNode + */%0A constructor ( op @@ -1127,24 +1127,26 @@ ptions )...
db86aaae23bc5186a000d9fe25a914d591018a79
fix review
services/ModuleService.js
services/ModuleService.js
/** * Developer: Stepan Burguchev * Date: 7/3/2015 * Copyright: 2009-2015 Comindware® * All Rights Reserved * * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Comindware * The copyright notice above does not evidence any * actual or intended publication of such source code. */ /* ...
JavaScript
0
@@ -5936,25 +5936,24 @@ eleteMessage -s : function (
bd765ad2a57db5e64ea85a10f0cada81054dcc63
fix config
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n', sourceMap: true, sourceMapIncludeSources: true, sourceM...
JavaScript
0.000006
@@ -881,32 +881,44 @@ n', 'bower.json' +, 'build/**' %5D,%0A creat @@ -1042,16 +1042,14 @@ o: ' -upstream +origin ',%0A
8954eefe190d5d27d2ab4c97238ca3a65574c9eb
print statement
app/controllers/musters/delayed-musters.js
app/controllers/musters/delayed-musters.js
'use strict'; var Queries = require('../../helpers/queries'); exports.showPage = { handler: function(request, reply) { return reply.view('musters/delayed'); } }; exports.getData = { handler: function(request, reply) { var sequelize = request.server.plugins.sequelize.db.sequelize; ...
JavaScript
0.999999
@@ -545,24 +545,54 @@ ion(data) %7B%0A + console.log(data)%0A
e0414cd2cf0ebdb130b4b18efe8fe6238585a341
Simplify handling of layers for output
src/searchStream.js
src/searchStream.js
var util = require('util'); var through = require('through2'); var request = require('requestretry'); const http = require('http'); const https = require('https'); // Base url of service const host = process.env.URL || 'https://api.geocode.earth'; const url = host + '/v1/search'; // maximum number of HTTP requests in ...
JavaScript
0.000008
@@ -468,16 +468,124 @@ %7C%7C 1;%0A%0A +const non_fallback_layers = %5B'venue', 'address'%5D;%0Aconst non_admin_layers = %5B'venue', 'address', 'street'%5D;%0A%0A const ht @@ -4391,203 +4391,90 @@ s%0A -if (resData%5B0%5D.properties.layer == 'address') %7B%0A stats.address++;%0A %7D else if (resData%5B0%5D.pr...
1eb942f68c485655e8ee873f0fae0d3e3cd4f4c9
handle disabled cookies graciously
tour/static/js/services.js
tour/static/js/services.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'; /* Services */ angular.module('tour.services', []). // Google Analytics factory('analytics', ['$window', function(win) { var t...
JavaScript
0
@@ -2262,31 +2262,131 @@ -if (win.localStorage) %7B +try %7B%0A // This will raise an exception if cookies are disabled.%0A win.localStorage = win.localStorage; %0A @@ -2649,32 +2649,44 @@ %7D;%0A %7D + catch (e) %7B %0A return @@ -2670,32 +2670,36 @@ h (e) %7B%0A ...
7aaba00c7ef1e4bc4bb0cc237aca0cad38898362
exit on no environment variables
src/server/index.js
src/server/index.js
const bodyParser = require('body-parser'); const cookieParser = require('cookie-parser'); const express = require('express'); const moment = require('moment'); const path = require('path'); const pocket = require('./pocket.js'); const utils = require('./utils.js'); const errorHandler = (res, err) => { res.status...
JavaScript
0.000036
@@ -262,16 +262,133 @@ js');%0A%0A%0A +if (!process.env.pocketConsumerKey) %7B%0A throw new Error('Pocket consumer key missing, did you source env.sh?');%0A%7D%0A%0A const er
9cbe8915f53f394576f6a9385be5f6b0e8eed783
remove plain() call from Lists service
client/app/features/lists/scripts/lists.service.js
client/app/features/lists/scripts/lists.service.js
/** * Created by Adir on 06/12/2014. */ 'use strict'; (function() { angular.module('Gov.Lists').service('Lists', Lists); function Lists(Config, Restangular) { var ListResource = Restangular.service('lists'); this.getList = function(id) { return ListResource.one(id).get().then(fu...
JavaScript
0.000001
@@ -145,16 +145,8 @@ sts( -Config, Rest @@ -301,82 +301,8 @@ et() -.then(function(list) %7B%0A return list.plain();%0A %7D) ;%0A
27239f3f04043269fa5dd483afd1406de6ded989
Fix multiline node editing.
ui/TextPropertyEditor.js
ui/TextPropertyEditor.js
import Surface from './Surface' import TextPropertyComponent from './TextPropertyComponent' /** Editor for a text property (annotated string). Needs to be instantiated inside a {@link ui/Controller} context. @class @component @extends ui/Surface @prop {String} name unique editor name @prop {String[]} p...
JavaScript
0
@@ -1772,35 +1772,8 @@ ) %7B%0A - event.preventDefault()%0A @@ -1804,16 +1804,17 @@ if ( +! this.pro @@ -1825,24 +1825,53 @@ ultiLine) %7B%0A + event.preventDefault()%0A super.
fd341c94e63ab1955893045298ea8b522857ad68
Remove the `yeoman*` vars from the Gruntfile.
Gruntfile.js
Gruntfile.js
'use strict'; var LIVERELOAD_PORT = 35729; var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; module.exports = function (grunt) { // load all grunt tasks require('matchdep').filterDev('grunt...
JavaScript
0
@@ -388,240 +388,26 @@ %0A%0A -// configurable paths%0A var yeomanConfig = %7B%0A app: 'src',%0A dist: 'dist'%0A %7D;%0A%0A try %7B%0A yeomanConfig.app = require('./bower.json').appPath %7C%7C yeomanConfig.app;%0A %7D catch (e) %7B%7D%0A%0A grunt.initConfig(%7B%0A yeoman: yeomanConfig, +grunt.initCo...
630cb30d9cb169e863492507193a03986191f157
Make the error message in NodeModelFileDAO contain a little more info.
src/foam/dao/NodeModelFileDAO.js
src/foam/dao/NodeModelFileDAO.js
/** * @license * Copyright 2016 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 requir...
JavaScript
0
@@ -1065,16 +1065,31 @@ .reject( +%0A 'Unable @@ -1091,20 +1091,23 @@ able to -find +load at ' + pat @@ -1103,24 +1103,48 @@ at ' + path + + '. Error: ' + e.stack );%0A %7D
fb4ca966e2a135c80fbf3136706fb9a15cce9ad7
add page title to save-list
plugins/urls/index.js
plugins/urls/index.js
console.log("PLUGIN: URLS loaded"); var utils = require('../../lib/utils'); var color = require('irc-colors'); function init(client, config) { var levelup = require('levelup'); var db = levelup(__dirname + '/data', { keyEncoding: 'binary' }); var Puid = require('puid'); var puid = new Pui...
JavaScript
0
@@ -104,16 +104,84 @@ olors'); +%0Avar cheerio = require('cheerio');%0Avar request = require('request'); %0A%0Afuncti @@ -972,24 +972,237 @@ ion (url) %7B%0A +%0A request(url, function (error, response, body) %7B%0A if (!error && response.statusCode == 200) %7B%0A url += ...
0582776837e2c244c9a1e4dc3577f724867c26a8
Update `this.value` before `updateValid` call
ampersand-multifield-view.js
ampersand-multifield-view.js
'use strict'; var find = require('lodash.find'); var View = require('ampersand-view'); var MultiFieldView = View.extend({ /* jshint maxlen: false */ template: [ '<div>', '<p class="label" data-hook="label"></p>', '<div data-hook="multi-message-container" class="message message-below message-error"...
JavaScript
0
@@ -3478,16 +3478,58 @@ field); +%0A this.value%5Bfield.name%5D = field.value; %0A%0A if @@ -3623,51 +3623,8 @@ %7D%0A%0A - this.value%5Bfield.name%5D = field.value;%0A%0A
274c50f5ea283841af3cb740746f95d2d0d33e97
output needs fixn
test/ScraperServiceTest.js
test/ScraperServiceTest.js
'use strict'; const expect = require("chai").expect; const Dom = require(__dirname + "/../lib/Dom"); const fs = require('fs'); const ScrapeService = require(__dirname + '/../lib/ScrapeService'); let eaglesTest = require(__dirname + "/helpers/EaglesTestConfig"); describe("ScraperService", function() { describe("s...
JavaScript
0.999999
@@ -189,16 +189,76 @@ vice');%0A +const OutputCsv = require(__dirname + '/../lib/OutputCsv');%0A let eagl @@ -1032,32 +1032,41 @@ oOutput = null;%0A + %0A var scra @@ -1384,32 +1384,198 @@ aper.getData();%0A + let outputCsv = new OutputCsv(scraper, %7Bpath: __dirname + %22/OutPutCsvText.c...
85fcd394f04861b3e7f940faf6cc0c8227d85219
copy tweak on lead CTA
static/js/components/issuesHeader.js
static/js/components/issuesHeader.js
const html = require('choo/html'); const issuesLocation = require('./issuesLocation.js'); module.exports = (state, prev, send) => { return html` <header class="${classString(state)}" role="banner"> <h1 class="issues__title"> <a href="/" onclick=${() => send('home')}><img class="issues__logo" src="...
JavaScript
0
@@ -565,51 +565,43 @@ %3Ch2%3E -Choose an issue to get started:%3C/h2%3E%60 +What's most important to you?%3C/h2%3E%60 %0A
321c4ade483d9cbf1e800e71ff5e0a95e5e4eb68
Update analytics
analyze/index.js
analyze/index.js
// // Utility functions // 'use strict'; const AWS = require('aws-sdk'); AWS.config.update({region: 'us-east-1'}); const dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'}); const s3 = new AWS.S3({apiVersion: '2006-03-01'}); // Function to get all the entries from the Database function getEntriesFromDB(callback)...
JavaScript
0.000001
@@ -949,16 +949,92 @@ cale.S;%0A + entry.adplayed = (data.Items%5Bi%5D.mapAttr.M.adStamp != undefined);%0A @@ -1053,24 +1053,24 @@ ush(entry);%0A - %7D%0A @@ -1542,16 +1542,33 @@ ng = ''; +%0A let ads = 0; %0A%0A co @@ -1997,24 +1997,81 @@ s;%0A %7D%0A%0A + if (result...
6d61f17a5a6698bb0a7af48145529655343adde7
Fix win32-ia32 generation
GruntFile.js
GruntFile.js
var path = require('path'); module.exports = function(grunt) { grunt.initConfig({ 'create-windows-installer': { ia32: { appDirectory: path.join(path.resolve(), 'release', 'win32-ia32', 'Millie-win32-ia32'), outputDirectory: path.join(path.resolve(), 'release'), name: 'Millie', ...
JavaScript
0.000005
@@ -188,22 +188,8 @@ se', - 'win32-ia32', 'Mi @@ -203,24 +203,24 @@ n32-ia32'),%0A + outp @@ -763,21 +763,8 @@ se', - 'win32-x64', 'Mi @@ -1323,6 +1323,7 @@ ');%0A - %7D; +%0A
3c449c4a79fa710ff595e2b588ba0cab8d5586c3
Remove trailing comma from object.
Gruntfile.js
Gruntfile.js
/* * grunt-crawl * https://github.com/mfradcliffe/grunt-crawl * * Copyright (c) 2014 Matthew Radcliffe * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', ...
JavaScript
0.000005
@@ -832,17 +832,16 @@ %0A %7D -, %0A %7D,%0A
8ae9afc1ca304bad229172d9fd96373156ac1425
remove postcss warning
angular/.storybook/main.js
angular/.storybook/main.js
module.exports = { addons: [ '@storybook/addon-docs/preset', '@storybook/preset-scss', '@storybook/addon-a11y', '@storybook/addon-jest', '@storybook/addon-google-analytics', ], stories: ['../projects/spark-angular/src/lib/**/*.stories.ts'], };
JavaScript
0
@@ -260,11 +260,50 @@ s.ts'%5D,%0A + features: %7B%0A postcss: false,%0A %7D,%0A %7D;%0A
2379e8b86e5fed9f64cb8fa29bddf75e8defe754
update plunkers versions
public/docs/_examples/systemjs.config.plunker.js
public/docs/_examples/systemjs.config.plunker.js
/** * PLUNKER VERSION (based on systemjs.config.js in angular.io) * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function(global) { var ngVer = '@2.0.0-rc.3'; // lock in the angular package version; do not let it float to current! var routerVer = '@3.0.0-alph...
JavaScript
0
@@ -207,17 +207,17 @@ .0.0-rc. -3 +4 '; // lo @@ -319,9 +319,9 @@ pha. -7 +8 '; / @@ -367,11 +367,11 @@ '@0. -1.1 +2.0 '; /
f0f6bd3ac7529d5d77b158ee875cac398af716ea
Update paths to jquery.
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); require('time-grunt')(grunt); // myGRUNT: COPIAR[PROVEEDORES]+ DISTRIBUIR[JS&CSS] + VALIDAR[HTML] grunt.initConfig({ // metadatos leerJson: grunt.file.readJSON('package.json'), banner: '/**\n' + '* <%= leerJson.name %> v<%= le...
JavaScript
0
@@ -833,37 +833,32 @@ mponents/jquery/ -dist/ jquery.min.js%22,%0A @@ -887,21 +887,16 @@ /jquery/ -dist/ jquery.m
4ee33548a882fd291f3660e4493babc9ac9c1567
Remove the empty property
test/apns.provider.test.js
test/apns.provider.test.js
var fs = require('fs'); var path = require('path'); var ApnsProvider = require('../lib/providers/apns'); var Notification = require('../models/notification'); var mockery = require('./helpers/mockery').apns; var objectMother = require('./helpers/object-mother'); var expect = require('chai').expect; var sinon = require...
JavaScript
0.00001
@@ -5213,32 +5213,102 @@ apns: %7B%0A + // intentionally omit the pushOptions for test%0A /*%0A pushOp @@ -5321,32 +5321,45 @@ %7B%0A %7D,%0A + */%0A feedba
1d721a91d3400efcf3d60b36846a131c3c885479
Fix selected filter saving bug
demo/js/components/dashboard/dynamic-dashboard.js
demo/js/components/dashboard/dynamic-dashboard.js
angular.module("yds").directive("ydsDynamicDashboard", ["$timeout", "$location", "$anchorScroll", "$window", "$sce", "DashboardService", "Data", function ($timeout, $location, $anchorScroll, $window, $sce, DashboardService, Data) { return { restrict: "E", scope: { typ...
JavaScript
0
@@ -3029,21 +3029,21 @@ ers = _. -where +chain (scope.d @@ -3069,25 +3069,140 @@ ters -, %7Bchecked: true%7D +)%0A .where(%7Bchecked: true%7D)%0A .pluck(%22name%22)%0A .value( );%0A @@ -3933,41 +3933,9 @@ ard, -%0A ...
fddea479f798be3bdf598e10b13ede4ad516cd92
fix deprecation warning
perf/benchmark.js
perf/benchmark.js
#!/usr/bin/env node var _ = require("lodash"); var Benchmark = require("benchmark"); var exec = require("child_process").exec; var execSync = require("child_process").execSync; var fs = require("fs"); var path = require("path"); var mkdirp = require("mkdirp"); var async = require("../"); var suiteConfigs = require("./...
JavaScript
0.000019
@@ -6755,16 +6755,23 @@ +return fs.close @@ -6781,29 +6781,9 @@ ndle -);%0A return +, cal @@ -6779,33 +6779,32 @@ handle, callback -( );%0A %7D%0A%0A
39941c8f6fdb473558680780384a4928fa8a7a99
Update Grunt.js.
GruntFile.js
GruntFile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { sass: { files: ['sass/**/*.{scss,sass}'], tasks: ['sass:dist'] }, scripts: { files: ['js/**/*.js', 'test/**/*.js'], tasks: ['concat:app'], ...
JavaScript
0
@@ -297,16 +297,35 @@ cat:app' +, 'simplemocha:all' %5D,%0A @@ -534,16 +534,35 @@ ructure' +, 'simplemocha:all' %5D,%0A @@ -4446,45 +4446,8 @@ : %7B%0A - globals: %5B'should'%5D,%0A @@ -5004,16 +5004,17 @@ %5D);%0A +%0A grun @@ -5230,32 +5230,100 @@ Files'%0A %5D);%0A%0...
730fb18fcf46a2a96739e263cbd7fc14f3504bca
bump distribution for dist/snuggsi.min.js
dist/snuggsi.min.js
dist/snuggsi.min.js
var HTMLLinkElement=function(t){var e={},n=document.querySelector("link#"+t+"[rel=import], link[href*="+t+"][rel=import]"),r=function(t,e){return HTMLImports&&!HTMLImports.useNative?HTMLImports.whenReady(function(){return e({target:n})}):n.addEventListener(t,e)};return Object.defineProperties(e,{addEventListener:{writa...
JavaScript
0
@@ -3330,16 +3330,16 @@ map( -a +p (t))%7D, -a +p =fun @@ -3378,17 +3378,17 @@ rn t%5Be%5D= -p +a (t%5Be%5D)%7D%7D @@ -3388,17 +3388,17 @@ t%5Be%5D)%7D%7D, -p +a =functio @@ -3872,27 +3872,16 @@ ction()%7B -var e=this; this.tok @@ -3899,153 +3899,8 @@ is), -Array.from(this.selectAll(%22template%5Bname%5D%22))...
1ef04d9b741274a85492174d07e5fba6c8b607f9
Fix content = value.replace( /^\/|\/$/g, ).replace( /\{2}/g, \ ).replace( /'/g, ' );" quit exit exit() exit "
src/service/util.js
src/service/util.js
console.log( "=== simpread util load ===" ) /** * Verify html * * @param {string} input include html tag, e.g.: <div class="article fmt article__content"> * * @return {array} 0: int include ( -1: fail; 0: empty html; 1: success; 2: special tag ) * 1: result */ function verifyHtml( html ) {...
JavaScript
0.989346
@@ -4255,24 +4255,26 @@ /%5C%5C%7B2%7D/g, %22 +%5C%5C %22 ).replace(
ce41881996768b0accceeafbb72b0b7f0c718d28
Fix styling change requested in code review.
web/src/js/components/Settings/Widgets/WidgetConfigComponent.js
web/src/js/components/Settings/Widgets/WidgetConfigComponent.js
import React from 'react' import PropTypes from 'prop-types' import Toggle from 'material-ui/Toggle' import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton' class WidgetConfig extends React.Component { render() { const { setting } = this.props switch (setting.type) { case 'boolean': ...
JavaScript
0
@@ -1166,24 +1166,48 @@ ight: '5%25',%0A + marginBottom: 16,%0A %7D%0A%0A r
fc07c61cbf2864a4c059ec8ed1b997c6dbacdba0
fix eat color food
src/reducers/snake.js
src/reducers/snake.js
import * as types from '../actions/const' import * as DIRECTION from '../constants/direction' import * as GAME_CONFIG from '../constants/game' class Joints { constructor(left, top, width, height, direction, color = 'red', isHead = false){ this.left = left this.top = top this.width = width ...
JavaScript
0.000005
@@ -4165,135 +4165,8 @@ os%0A%0A - const colors = GAME_CONFIG.FOOD_COLORS%0A const color = colors%5BMath.floor(Math.random() * colors.length)%5D%0A @@ -4333,16 +4333,21 @@ N.LEFT, +food. color, f
a35f74affdc26a0a5b58b3aeec70a4a43d95e63c
fix global scope leak
plugins/removeViewBox.js
plugins/removeViewBox.js
var regViewBox = /^0\s0\s(\d+)\s(\d+)$/, viewBoxElems = ['svg', 'pattern']; /** * Remove viewBox attr which coincides with a width/height box. * * @see http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute * * @example * <svg width="100" height="50" viewBox="0 0 100 50"> * ⬇ * <svg width="100" ...
JavaScript
0
@@ -704,24 +704,44 @@ ')%0A ) %7B%0A%0A + var match;%0A%0A if (
57ad1315405745644326c5536b7cd5fdd3cc8927
Add alarm basic functionality.
scripts/app.js
scripts/app.js
var Clock = (function() { var display = document.getElementById('timedisplay'), hourDisplay = document.getElementById('hour'), minuteDisplay = document.getElementById('minute'), secondDisplay = document.getElementById('second'), initTime = new Date(), initHour = initTime.getH...
JavaScript
0
@@ -363,18 +363,50 @@ inutes() +,%0A alarmTriggered = false ;%0A - var @@ -642,16 +642,573 @@ %0A %7D;%0A + var checkAlarm = function(hr, min) %7B%0A if (alarmTriggered) %7B%0A // checkMinute(min);%0A console.log('nope', alarmTriggered);%0A console.log(hr, m...
77d3694ec701aa6c7d3acf163745667e08560744
bump MINIFIED distribution dist/snuggsi.min.js
dist/snuggsi.min.js
dist/snuggsi.min.js
var CustomElementRegistry=function(){};CustomElementRegistry.prototype.define=function(t,e){console.warn("WHAT THE FUCK THIS WORKED FOR IE!!!!"),console.warn("tag:",t),console.warn("class definition:",e)},window.customElements=window.customElements||CustomElementRegistry;var HTMLLinkElement=function(t){var e=new Event(...
JavaScript
0
@@ -54,26 +54,16 @@ egistry. -prototype. define=f
f7620ee45ddca9ac25c7b06e9c2941f0f0142c81
Allow setting opacity
scripts/things/maskgenerator.js
scripts/things/maskgenerator.js
elation.require(['engine.external.md5'], function() { var Identicon = function(string, height, width) { if (ENV_IS_NODE) { var crypto = require('crypto'), hash = crypto.createHash('md5').update(string).digest('hex'); } else { var hash = md5(string) } var color = hash...
JavaScript
0.000001
@@ -2499,24 +2499,51 @@ et);%0A %0A + this.material = mat;%0A return @@ -2581,16 +2581,152 @@ %0A %7D;%0A + this.setOpacity = function(opacity) %7B%0A this.material.opacity = opacity;%0A this.material.transparent = (opacity %3C 1);%0A %7D%0A %7D, ela
342506267db9524146695a9dc4ea483fb0849f85
Update e2e tests in relation to latest ui changes
client/tests/end2end/test-admin-configure-users.js
client/tests/end2end/test-admin-configure-users.js
var utils = require('./utils.js'); describe('admin add users', function() { it('should add new users', function(done) { browser.setLocation('admin/users'); var add_user = function(username, role, roleSelector, name, address) { return protractor.promise.controlFlow().execute(function() { var de...
JavaScript
0
@@ -189,18 +189,8 @@ ion( -username, role @@ -344,75 +344,8 @@ ();%0A - element(by.model('new_user.username')).sendKeys(username);%0A @@ -847,21 +847,8 @@ ser( -%22receiver2%22, %22rec @@ -940,21 +940,8 @@ ser( -%22receiver3%22, %22rec @@ -1033,22 +1033,8 @@ ser( -%22custodian1%22, %22cus
c11544201b0e83256dabcb1a0a5e30b04c7f6db4
change the JS code to be a bit more idiomatic.
lib/api_browser/app/js/filters/attribute_name.js
lib/api_browser/app/js/filters/attribute_name.js
app.filter('attributeName', function($sce) { return function(input) { var parts = input.split('.'); if (parts.length > 1) { var prefix = parts.slice(0,parts.length-1).join('.') return $sce.trustAsHtml('<span class="attribute-prefix">' + prefix + '.</span>' + parts[parts.length-1]); } retur...
JavaScript
0
@@ -150,22 +150,22 @@ x = -parts.slice(0, +_.take(parts, part @@ -185,16 +185,17 @@ oin('.') +; %0A r @@ -279,29 +279,21 @@ ' + -parts%5Bparts.length-1%5D +_.last(parts) );%0A
b9161dcc308d6777b318318c2e3cbe7277ab4a18
Remove Procfile from dist
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { require('time-grunt')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), copy: { dist: { src: ['public/**', 'app/**', 'config/**', 'swagger/**', 'app.js', '*.json', 'Procfile' ], dest: 'dist/<%= pkg.version %>', ...
JavaScript
0.000001
@@ -242,30 +242,8 @@ son' -,%0A 'Procfile' %0A
d4820de0a1333fe26846510aeed3194e9d1b4174
update comment
src/incrementalContentBuilder.js
src/incrementalContentBuilder.js
var keyOf = attr('key'); var nodeOf = attr('node'); /** * A special value to use in the path list to represent the path 'to' a root object (which doesn't really * have any path). This prevents the need for special-casing detection of the root object and allows it * to be treated like any other object. We might thi...
JavaScript
0
@@ -766,275 +766,301 @@ %0A * -Listen to the given clarinet instance and progressively builds an +Provide handlers for clarinet's events.%0A * These listeners fire higher-level events relate d -s to -res the json based on the callbacks it provides.%0A * %0A * Notify on the given event bus when interesting things h...
70e7095ba68a6e5cb7b1b57511c582a00992f3da
Exclude public folder
webpack.loaders.js
webpack.loaders.js
module.exports = [ { test: /\.jsx?$/, exclude: /(node_modules|bower_components)/, loaders: ['react-hot'] }, { test: /\.jsx?$/, exclude: /(node_modules|bower_components)/, loader: 'babel', query: { presets: ['es2015', 'react'], plugins: ['transform-runtime', 'transform-decorators-legacy', 'trans...
JavaScript
0
@@ -68,32 +68,39 @@ bower_components +%7Cpublic )/,%0A%09%09loaders: %5B @@ -172,32 +172,39 @@ bower_components +%7Cpublic )/,%0A%09%09loader: 'b
6b9b8164f51c63f1cc9f79c2c96b5da8a6602f44
move isSauceLabsAvailableInEnvironment outside the module.exports block
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { function isSauceLabsAvailableInEnvironment() { var sauceUser = process.env.SAUCE_USERNAME; var sauceKey = process.env.SAUCE_ACCESS_KEY; return !!sauceUser && !!sauceKey; } var browsers = [{ browserName: "chrome", platform: "OS X 10.8" }, { browserName...
JavaScript
0
@@ -32,198 +32,8 @@ ) %7B%0A - function isSauceLabsAvailableInEnvironment() %7B%0A var sauceUser = process.env.SAUCE_USERNAME;%0A var sauceKey = process.env.SAUCE_ACCESS_KEY;%0A%0A return !!sauceUser && !!sauceKey;%0A %7D%0A%0A va @@ -2075,18 +2075,16 @@ tch%22%5D);%0A - %0A grunt @@ -2387,8 +2387,1...
5f1631e8eff8ef91c555a51e6dee96711f4a7672
Add install controller resertFolder tests
test/unit/pages/location/controller-test.js
test/unit/pages/location/controller-test.js
'use strict'; import chai, { expect } from 'chai'; import fs from 'fs'; import sinon from 'sinon'; import Logger from 'browser/services/logger'; import { default as sinonChai } from 'sinon-chai'; import ElectronMock from '../../../mock/electron'; import InstallerDataService from 'browser/services/data'; import Install...
JavaScript
0
@@ -2967,17 +2967,16 @@ ion() %7B%0A -%0A sa @@ -3022,17 +3022,16 @@ lder');%0A -%0A %7D);%0A @@ -4972,13 +4972,534 @@ ;%0A %7D);%0A + describe('resetFolder', function() %7B%0A beforeEach(function() %7B%0A locationcontroller.folder = '';%0A sandbox.stub(locationcontroller, 'checkFolder');%...
cf8a1da531f8433e9229f8211a05803448ef1f0e
Revert "Issue with reorder and master detail "
src/extensions/reorder-columns/bootstrap-table-reorder-columns.js
src/extensions/reorder-columns/bootstrap-table-reorder-columns.js
/** * @author: Dennis Hernández * @webSite: http://djhvscf.github.io/Blog * @version: v1.1.0 */ !function ($) { 'use strict'; //From MDN site, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter var filterFn = function () { if (!Array.prototype.filter)...
JavaScript
0
@@ -106,24 +106,25 @@ ction ($) %7B%0A +%0A 'use str @@ -362,17 +362,16 @@ function - (fun/*, @@ -3483,19 +3483,18 @@ ch (e) %7B - %7D%0A + @@ -3644,17 +3644,16 @@ ckDelay: - 200,%0A @@ -3673,33 +3673,32 @@ reStop: function - () %7B%0A @@ -3970,74 +3970,8 @@ ) %7B%0A - ...
196a55d85d44bde78ee6755477e6d9a95e3a92de
Update page-specific.js
bignumber/page-specific.js
bignumber/page-specific.js
//only works for positive for now! var getNumberOne = function(){ return new number( true, $("#number-one").val() ); } var getNumberTwo = function(){ return new number( true, $("#number-two").val() ); } var doAdd = function(){ var result = getNumberOne().plus(getNumberTwo()); $("#result").text( result.toString...
JavaScript
0.000001
@@ -496,18 +496,8 @@ t = -karatsuba( getN @@ -506,18 +506,27 @@ berOne() -, +multiplyBy( getNumbe
6fe824f7840cc32b0cabbfaf4784770bdd0cec55
Add version with a bit of docs
www/js/vendor/backbone.localforage.js
www/js/vendor/backbone.localforage.js
define(["underscore", "backbone", "localforage"], function (_, Backbone, LocalForage) { function S4() { return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1); } function guid() { return S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4(); } va...
JavaScript
0
@@ -1,8 +1,410 @@ +// backbone.localForage allows users of Backbone.js to store their collections%0A// entirely offline with no communication to a REST server. It uses IndexedDB%0A// or localStorage (depending on availability) to store the data. This allows%0A// apps on Chrome and Firefox to use async, offline storage,...
214ae2062ce28af77b665f34c7895e445b9b73fa
Fix react-native-cli code formatting
react-native-cli/index.js
react-native-cli/index.js
#!/usr/bin/env node /** * Copyright 2004-present Facebook. All Rights Reserved. */ var fs = require('fs'); var path = require('path'); var spawn = require('child_process').spawn; var prompt = require("prompt"); var CLI_MODULE_PATH = function() { return path.resolve( process.cwd(), 'node_modules', 're...
JavaScript
0.004471
@@ -1500,18 +1500,16 @@ name) %7B%0A - prompt @@ -1519,18 +1519,16 @@ art();%0A%0A - var pr @@ -1538,26 +1538,24 @@ rty = %7B%0A - name: 'yesno @@ -1553,26 +1553,24 @@ e: 'yesno',%0A - message: @@ -1625,18 +1625,16 @@ ?',%0A - validato @@ -1652,18 +1652,16 @@ n%5Bo%5D?/,%0A - ...
d96ef2fef3d265e1e4ea83ec36b9469ecdc5adc7
enable request logging (#600)
cli/hapi-options.js
cli/hapi-options.js
module.exports = getHapiOptions var url = require('url') function getHapiOptions (options) { var hapiOptions = { server: {}, connection: { port: options.port, address: options.address } } if (options.loglevel === 'debug') { hapiOptions.server.debug = { request: ['error'], ...
JavaScript
0
@@ -200,16 +200,45 @@ .address +,%0A routes: %7B log: true %7D %0A %7D%0A
533a1cc09b4ffe970d7614ac7e558bfd69e9a960
Fix errors reported by Codacy
site/assets/js/scripts.js
site/assets/js/scripts.js
$(function(){ $("body").addClass("js-on"); // A - Z Sorting $(".alpha-sort a").click(function(e){ e.preventDefault(); var term = $(this).text(); var $sites = $(".sites section"); $sites.show().filter(function() { var text = $(this).find(".site-header").text().re...
JavaScript
0
@@ -319,35 +319,35 @@ replace(/%5Cs+/g, -' ' +%22 %22 ).toLowerCase(). @@ -826,35 +826,35 @@ replace(/%5Cs+/g, -' ' +%22 %22 ).toLowerCase(); @@ -1290,35 +1290,35 @@ replace(/%5Cs+/g, -' ' +%22 %22 ).toLowerCase(); @@ -1679,18 +1679,18 @@ t%22).val( -'' +%22%22 );%0A %7D @@ -2179,11 +2179,11 @@ /g, -' '...
af3fb2919966b16633907ffb8afdb7ba6afc39ba
update test: Basic test factory
test/basic-test-factory.js
test/basic-test-factory.js
var helper = require("./helper"); var should = require("should"); function getBasicTest(opt) { var options = opt || {}; var Manager = options.manager; var Model = options.model; var dataUtil = options.util; var validate = options.validator; var createDuplicate = options.createDuplicate; va...
JavaScript
0
@@ -1392,32 +1392,41 @@ .then((data) =%3E + %7B return manager.create( @@ -1422,32 +1422,34 @@ ger.create(data) + %7D )%0A .t
4677cb7c8ed53faa1a8a5b1870f85334fcf82455
fix a bug in the navigation bar location reporting when a search is made
app/components/SearchBar.js
app/components/SearchBar.js
import React, { Component, PropTypes } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { Link } from 'react-router' import { SearchActions } from '../store/search' function mapStateToProps(state) { return { query: state.search.query, currentId: state.iden...
JavaScript
0
@@ -704,50 +704,8 @@ = %7B%0A - history: PropTypes.object.isRequired,%0A @@ -1270,28 +1270,12 @@ y = -'local:/' + pathname +null %0A @@ -1419,55 +1419,95 @@ -query = pathname.replace('/search/', '') +// do nothing%0A %7D else %7B%0A query = 'local:/' + pathname%0A %7D%0A if (query) %...
52a913a471b88749fa0be99b5fb3f349f4d3a09e
Update core.client.routes.js
public/modules/core/config/core.client.routes.js
public/modules/core/config/core.client.routes.js
'use strict'; // Setting up route angular.module('core').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { // Redirect to home view when route not found $urlRouterProvider.otherwise('/'); // Home state routing $stateProvider. state('home', { url: '/', temp...
JavaScript
0.000002
@@ -761,291 +761,8 @@ tml' -,%0A%09%09%09resolve: %7B%0A%09%09%09loadPlugin: function ($ocLazyLoad) %7B%0A%09%09%09return $ocLazyLoad.load(%5B%0A %7B%0A files: %5B'modules/core/css/plugins/steps/jquery.steps.css'%5D%0A %7D%0A %09 ...
3a05dae86659b87ae47a3985ea987d0aa4f06195
fix path issues
Gruntfile.js
Gruntfile.js
var _ = require('lodash'); var path = require('path'); module.exports = function (grunt) { 'use strict'; var recipeTemplate = grunt.file.read('./src/templates/blog/blog.hbs'); var pages = _.flatten(_.map(grunt.file.expand('./src/content/*.json'), function (filepath) { var data = grunt.file.readJSON(filepath...
JavaScript
0.000001
@@ -226,20 +226,16 @@ pand('./ -src/ content/
d363b6b36b0a4d2e22b5b6cdd97f5d03ed447027
add jshint in grunt task
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ //package configuration file pkg: grunt.file.readJSON('package.json'), // chicke.js module compile requirejs: { compile: { options: { appDir: "sources/", baseUrl: ".", dir: "...
JavaScript
0.000001
@@ -158,16 +158,96 @@ son'),%0A%0A + jshint:%7B%0A all: %5B'app.js', 'sources/*.js', 'sources/**/*.js'%5D%0A %7D,%0A%0A // c @@ -1175,16 +1175,62 @@ plugin %0A + grunt.loadNpmTasks('grunt-contrib-jshint');%0A grunt. @@ -1266,24 +1266,24 @@ equirejs');%0A - grunt.load @@ -1365,16 +1365,20 @@ ...
60a54d392090bd676e3b17d1a9c4292546760f5f
fix get function in the baseService - change to getFactory (SAAS-150)
app/scripts/services/base-service-class.js
app/scripts/services/base-service-class.js
// jscs:disable (function(){ angular.module('ncsaas') .service('baseServiceClass', ['$q', 'currentStateService', '$resource', 'ENV', baseServiceClass]); function baseServiceClass($q, currentStateService, $resource, ENV) { // Base service class for services with pagination // pageSize, page, pages - defa...
JavaScript
0
@@ -3278,27 +3278,23 @@ this.get -EndpointUrl +Factory ().get(%7B
1d348dfdba5b53645e551565e223189fde696716
build distro
distribution/cmd.js
distribution/cmd.js
'use strict'; var logger = require('./lib/logger'); var COMMANDS = [{ name: 'list', description: "List integrations in the current project, or all available integrations if -a is used", examples: ["datafire list", "datafire list -a"], runner: require('./commands/list'), options: [{ name: 'all', alia...
JavaScript
0.000001
@@ -2191,32 +2191,52 @@ alias: 'o',%0A + required: true,%0A description: @@ -2805,16 +2805,88 @@ (cmd) %7B%0A + cmd.examples = cmd.examples %7C%7C %5B%5D;%0A cmd.options = cmd.options %7C%7C %5B%5D;%0A args = @@ -2949,17 +2949,16 @@ ) %7B%0A -( cmd.opti @@ -2960,23 +2960,16 @@ .options - %7C%7...
f900ecde83e546aee146ab67578f4bb0a5359535
test select users selection
imports/ui/components/Feed.tests.js
imports/ui/components/Feed.tests.js
/* eslint-env mocha */ import { Meteor } from 'meteor/meteor'; import { Factory } from 'meteor/dburles:factory'; import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'meteor/practicalmeteor:chai'; import Feed from './Feed.jsx'; import { Programs } from '../../api/programs'; import...
JavaScript
0.000001
@@ -413,16 +413,70 @@ eaner';%0A +import %7B sinon %7D from 'meteor/practicalmeteor:sinon';%0A %0A%0Aif (Me @@ -918,14 +918,327 @@ xt(' -given +user is logged in', function() %7B%0A let uid;%0A beforeEach(function () %7B%0A uid = 'iELKYfyJvKKDK3AbnQ';%0A sinon.stub(Meteor, 'userId', ...
c7b1a5e3b75cf6dfe2f0c641d5444a6f89ebabe4
Change JS boolena icon
Bundle/CoreBundle/Resources/public/jsnonamd/handlebar-helpers.js
Bundle/CoreBundle/Resources/public/jsnonamd/handlebar-helpers.js
require([ "dojo/date/locale", "dojo/currency" ], function(dateLocale, currencyLocale){ Handlebars.registerHelper ('truncate', function (str, len) { if (str && str.length > len && str.length > 0) { var new_str = str + " "; new_str = str.substr (0, len); ...
JavaScript
0.000001
@@ -1293,25 +1293,24 @@ n(boolValue) - %7B%0A if @@ -1356,16 +1356,18 @@ defined) + %7B %0A @@ -1375,32 +1375,70 @@ return '-';%0A + %7D%0A if(boolValue) %7B%0A return ' @@ -1485,41 +1485,107 @@ tick -' + (boolValue ? '' : '-red') + ' +.png%22%3E';%0A %7D%0A ...
fd46721fb8c52d3373682164007673b35bbd4ffc
Add theme
src/javascript/common/utility.js
src/javascript/common/utility.js
require('jquery.scrollto'); function showLoadingImage(container) { container.empty().append('<div class="barspinner dark"><div class="rect1"></div><div class="rect2"></div><div class="rect3"></div><div class="rect4"></div><div class="rect5"></div></div>'); } function isEmptyObject(obj) { let isEmpty = true; ...
JavaScript
0
@@ -57,16 +57,32 @@ ontainer +, theme = 'dark' ) %7B%0A @@ -106,17 +106,17 @@ .append( -' +%60 %3Cdiv cla @@ -130,20 +130,24 @@ spinner -dark +$%7Btheme%7D %22%3E%3Cdiv c @@ -271,17 +271,17 @@ v%3E%3C/div%3E -' +%60 );%0A%7D%0A%0Afu
705cb4c84bd34895a367a8d9973383322f6e86f6
USE schema on buy pokemon .
src/routes/pokemon.js
src/routes/pokemon.js
'use strict'; module.exports = function(app) { const path = require('path'); const constants = require(path.resolve('src/utils/constants')); const pokemonController = require(path.resolve('src/controller/pokemon')); const router = require('express').Router(); const validate = require('express-jsonschema').vali...
JavaScript
0
@@ -258,18 +258,16 @@ uter();%0A - const @@ -317,18 +317,16 @@ lidate;%0A - const @@ -372,16 +372,17 @@ c/schema +s /createP @@ -397,16 +397,89 @@ son'));%0A +%09const buySchema = require(path.resolve('src/schemas/buyPokemon.json'));%0A %0A%0A%09route @@ -608,16 +608,16 @@ reate);%0A - %09router. @@...
8266f54a77f46c9161c4d3646048e7d324955b5f
return 10 blogs
api/controllers/blog-post.js
api/controllers/blog-post.js
"use strict"; const express = require("express"); const router = express.Router(); const https = require('https'); const feed = require('rss-to-json'); router.get("/", async (req, res) => { feed.load('https://medium.com/feed/@participediaproject').then(rss => { res.status(200).json(rss.items); }); }); module...
JavaScript
0.000026
@@ -145,17 +145,53 @@ json');%0A +const %7B chunk %7D = require(%22lodash%22); %0A - %0Arouter. @@ -295,16 +295,91 @@ ss =%3E %7B%0A + const blogItems = rss.items.length %3E 0 ? chunk(rss.items, 10)%5B0%5D : %5B%5D;%0A res. @@ -395,21 +395,21 @@ 0).json( -rss.i +blogI tems);%0A
ec419005663a02f7467ed58f11d9a8b6d5a76541
Set default zoom level of selenium tests to 2.5
testing/test-runners/selenium-test-utils.js
testing/test-runners/selenium-test-utils.js
/* global geo, $ */ // General utilities that are made available to selenium tests. window.geoTests = { createOsmMap: function (mapOpts, osmOpts, notiles) { // Generate a default open street maps layer with optional // arguments. If no options present, creates the map // in $('#map') with tiles served f...
JavaScript
0.000001
@@ -495,17 +495,17 @@ zoom: -0 +2 .5,%0A
d9a7ca4c85d16b4d8713c8a83b38884c0dd43ebc
rename variabel
api/services/UserImport.js
api/services/UserImport.js
/* example usage for a remote CSV with no header row and columns for name, email, & image: UserImport.import({ url: 'http://foo.com/test.csv', headers: ['name', 'email', 'avatar_url'], community: {id: 1} }) */ const request = require('request') const fs = require('fs') const csv = require('csv-pa...
JavaScript
0.999692
@@ -1294,19 +1294,21 @@ for ' + -row +attrs .name)%0A
04ac23938812b69f118fe1e9a9545a610768e42c
Add missing use strict.
react_components/index.js
react_components/index.js
module.exports = require('./PaginationBoxView');
JavaScript
0.000003
@@ -1,8 +1,23 @@ +'use strict';%0A%0A module.e
ae8b529e9e523ac8535fa95c79ad6e3ecdcbcf2c
Update styles randomly
app/components/UserStyle.js
app/components/UserStyle.js
import { getLocalSettings } from '../utils/settings'; import { GET } from '../utils/http'; // import $ from 'jquery'; /* eslint-disable new-cap */ function addStyle(css, storeId) { try { const styleTag = document.createElement('style'); styleTag.type = 'text/css'; styleTag.id = storeId; styleTag.appe...
JavaScript
0
@@ -844,16 +844,59 @@ );%0A + if (Math.floor(Math.random() * 20) !== 19) return; @@ -1146,16 +1146,146 @@ , css);%0A + %7D else if (css !== oldCss) %7B%0A window.localStorage.setItem(storeId, css);%0A console.log('Style updated');%0A
573282e8526167abf7fee110e209b0c3ef26406d
Allow lines to be 110 characters long in cpplint
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { var startServer = 'cd tmp/gemfire && gfsh start server --dir=server --log-level=warning --cache-xml-file=../../benchmark/xml/BenchmarkServer.xml --name=server'; var ensureServerRunning = 'test -e tmp/gemfire/server/vf.gf.server.pid && ps ax | grep `cat tmp/gemfire/server/vf.gf.ser...
JavaScript
0.00052
@@ -1138,17 +1138,17 @@ length=1 -0 +1 0 --exte
554d3412c8b6c3864d13be949033fd5befad392e
Stop minifying files
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ jshint: { all: ['Gruntfile.js', 'AI.js', 'strongEval.js'] }, uglify:{ my_target: { files: { 'AI.min.js': ['AI.js'], } } }, }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.register...
JavaScript
0
@@ -118,16 +118,18 @@ %0A%09%09%7D,%0A%09%09 +/* uglify:%7B @@ -129,16 +129,16 @@ glify:%7B%0A - %09%09%09my_ta @@ -202,16 +202,18 @@ %09%09%7D%0A%09%09%7D, +*/ %0A%09%7D);%0A%09%0A @@ -254,24 +254,26 @@ -jshint');%0A%09 +// grunt.loadNp @@ -344,16 +344,18 @@ 'jshint' +/* ,'uglify @@ -355,16 +355,18 @@ 'ugli...
7c2314e2f171280947cf25fbecbeb350bc306726
remove redundant style
client/js/modules/dc/views/apmessagestatusitem.js
client/js/modules/dc/views/apmessagestatusitem.js
define(['marionette', 'jquery'], function(Marionette, $) { return Marionette.ItemView.extend({ template: false, modelEvents: { 'change': 'render' }, ui: { holder: '.message-holder', }, initialize: function(options) { this.listenTo(options.stat...
JavaScript
0.999572
@@ -897,21 +897,16 @@ -circle -icon red%22%3E%3C/i @@ -1044,21 +1044,16 @@ riangle -icon orange%22%3E @@ -1187,13 +1187,8 @@ cle -icon gree
8da7cf73c1dea52da5265a92390647cb65633165
Remove comment
lib/cartodb/models/dataview/overviews/formula.js
lib/cartodb/models/dataview/overviews/formula.js
var _ = require('underscore'); var BaseWidget = require('../base'); var BaseDataview = require('../formula'); var debug = require('debug')('windshaft:widget:formula:overviews'); var dot = require('dot'); dot.templateSettings.strip = false; var formulaQueryTpls = { 'count': dot.template([ 'SELECT', 'sum...
JavaScript
0
@@ -2083,61 +2083,8 @@ %7D);%0A - // TODO: look at possible crossing-180%C2%BA issues%0A
23a4cf8839fcbf3c6787e27b2547f8d06787b56f
Drop "yet" to fit comment better
webpack.parts.js
webpack.parts.js
const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const PurifyCSSPlugin = require('purifycss-webpack-plugin'); const CleanWebpackPlugin = require('clean-webpack-plugin'); exports.devServer = function(options) { return { devServer: { // Enable history API ...
JavaScript
0
@@ -1413,12 +1413,8 @@ late - yet %0A
58badb6b36a0964797586839ea76a9b938fe9b0c
read routing initially
viewer/map/routelayer.js
viewer/map/routelayer.js
/** * Created by andreas on 14.07.14. */ avnav.provide('avnav.map.RouteLayer'); /** * a cover for the layer with routing data * @param {avnav.map.MapHolder} mapholder * @param {avnav.nav.NavObject} navobject * @constructor */ avnav.map.RouteLayer=function(mapholder,navobject){ /** * @private * @...
JavaScript
0
@@ -1240,24 +1240,45 @@ self=this;%0A + this.getRoute();%0A $(docume @@ -2004,35 +2004,44 @@ %0A%7D;%0A -%0A /**%0A * -the handler for new +read the route from the route dat @@ -2051,19 +2051,14 @@ * @p -aram evdata +rivate %0A */ @@ -2093,262 +2093,29 @@ ype. -navEvent=function(evdata)%7B%0A if (e...
3eded28318fb735b565ea709b5d30481556e753f
Add some error handeling for invalid query param states
lib/middleware/validateQueryParameters.js
lib/middleware/validateQueryParameters.js
import { pick, isEmpty, isString, isArray, forEach, pickBy } from 'lodash'; const urlRegExp = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-]*)?\??(?:[\-\+=&;%@\.\w]*)#?(?:[\.\!\/\\\w]*))?)/g; // eslint-disable-line max-len export def...
JavaScript
0
@@ -51,16 +51,30 @@ , pickBy +, intersection %7D from @@ -383,16 +383,255 @@ next) %7B%0A + const validReposToSearch = intersection(req.query.repos, %5B'figshare', 'dataone'%5D);%0A if (isEmpty(validReposToSearch)) %7B%0A next(new Error('Repos query param must 1.) not be empty and 2.) must contain supported r...
20ad071931ef520cdae6bf683ee52d369de8314b
Set direction style to reply indicator (tootsuite pr #6006)
app/javascript/flavours/glitch/features/compose/components/reply_indicator.js
app/javascript/flavours/glitch/features/compose/components/reply_indicator.js
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from 'flavours/glitch/components/avatar'; import IconButton from 'flavours/glitch/components/icon_button'; import DisplayName from 'flavours/glitch/components/display_name'; import { ...
JavaScript
0
@@ -429,16 +429,66 @@ ponent'; +%0Aimport %7B isRtl %7D from 'flavours/glitch/util/rtl'; %0A%0Aconst @@ -1248,17 +1248,16 @@ content - = %7B __ht @@ -1288,16 +1288,113 @@ tml') %7D; +%0A const style = %7B%0A direction: isRtl(status.get('search_index')) ? 'rtl' : 'ltr',%0A %7D; %0A%0A re @@ -198...
c5deb3bc40e66c8b610e884b0ea31042a67ddba8
fix coverage excludes
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function(grunt) { grunt.initConfig({ /** * Pull in the package.json file so we can read its metadata. */ pkg: grunt.file.readJSON('package.json'), /** * * Pull in environment-specific vars * */ env: grunt.file.readJSON('config.json'), ...
JavaScript
0.000001
@@ -2949,16 +2949,19 @@ /specs/* +*/* '%5D,%0A
064d25ca9c50b48b6e1b6c50e395387095b8a97d
add description
Algorithms/JS/arrays/numbersDisappeared.js
Algorithms/JS/arrays/numbersDisappeared.js
numbersDisappeared.js
JavaScript
0.000004
@@ -1,22 +1,408 @@ -numbersDisappeared.js +Given an array of integers where 1 %E2%89%A4 a%5Bi%5D %E2%89%A4 n (n = size of array), some elements appear twice and others appear once.%0A%0AFind all the elements of %5B1, n%5D inclusive that do not appear in this array.%0A%0ACould you do it without extra space and in O(n) r...
583f616279318f398ea2204d36c6b321cdf22cd9
Fix typo
Gruntfile.js
Gruntfile.js
module.exports = function (grunt) { // time require('time-grunt')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // Compress and zip only the files required for deployment to the server. Exclude all dev dependencies. compress: { main: { options: { a...
JavaScript
0.999999
@@ -2031,17 +2031,16 @@ componen -e ts you n