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 |
|---|---|---|---|---|---|---|---|
356f7159b6b1fd58213b503d8203e1e8480f3ee2 | Update test browsers | nightwatch.conf.js | nightwatch.conf.js | const { SAUCE_USERNAME, SAUCE_ACCESS_KEY, TRAVIS_JOB_NUMBER, TRAVIS_BRANCH, TRAVIS_PULL_REQUEST } = process.env;
module.exports = {
src_folders: "test/browser",
output_folder: "test_report",
custom_commands_path: "test/nightwatch_custom",
test_workers: {
enabled: true,
workers: "auto",... | JavaScript | 0.000001 | @@ -1990,17 +1990,17 @@
sion: %226
-0
+8
.0%22,%0A
@@ -2521,9 +2521,9 @@
10.1
-3
+4
%22,%0A
@@ -2720,9 +2720,9 @@
10.1
-2
+3
%22,%0A
|
39cb5983654b5be83e24482ed28b8d71de770d27 | Remove unused service from BasicVoteController | VotingApplication/VotingApplication.Web/Scripts/Controllers/BasicVoteController.js | VotingApplication/VotingApplication.Web/Scripts/Controllers/BasicVoteController.js | /// <reference path="../Services/IdentityService.js" />
/// <reference path="../Services/PollService.js" />
/// <reference path="../Services/TokenService.js" />
/// <reference path="../Services/VoteService.js" />
(function () {
angular
.module('GVA.Voting')
.controller('BasicVoteController', BasicV... | JavaScript | 0 | @@ -1,64 +1,8 @@
%EF%BB%BF///
- %3Creference path=%22../Services/IdentityService.js%22 /%3E%0A///
%3Cre
@@ -338,27 +338,8 @@
ms',
- 'IdentityService',
'Po
@@ -441,25 +441,8 @@
ams,
- IdentityService,
Pol
@@ -554,30 +554,8 @@
l;%0A%0A
- activate();%0A%0A%0A
@@ -591,16 +591,38 @@
tVote;%0A%0A
+ ... |
539e40efb9623c0ae53fec7fe98365ce4125aa79 | check for mull client in authorization | routes/oauth2-routes.js | routes/oauth2-routes.js | /*
MIT License
Copyright (c) 2016 Gerges Beshay.
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, modify, merge, publish,... | JavaScript | 0 | @@ -2864,24 +2864,93 @@
;%0A %7D%0A
+ if (!client) %7B%0A return done(null, false);%0A %7D%0A
cons
|
0c51e9cffc332447de44d60011336393479d78dd | Revert "Add generic roundTo() function to Cron.js" | nodejs/lib/cron.js | nodejs/lib/cron.js | var util = require('util'),
events = require('events');
var MAX_ERROR_MS = 20;
function Cron(){
var self = this,
callbackLists = {},
stoppers = {};
// Returns a unique ID that you can pass to .stop(ID)
// interval = 'second' | 'minute' | 'hour' | 'day'
this.onThe = function onThe(interval, cb){
var list = ge... | JavaScript | 0 | @@ -3406,131 +3406,8 @@
c)%7B%0A
-%09%09return this.roundTo(period, start, round_func, true);%0A%09%7D,%0A%09%0A%09roundTo: function roundTo(period, start, round_func, next)%7B%0A
%09%09va
@@ -3589,33 +3589,20 @@
1000) +
-(next ? 1000 : 0)
+1000
);%0A%09%09%09%09b
@@ -3681,33 +3681,18 @@
, 60) +
-(next ? 1000 : ... |
b373cd737aa459cf16bf6789ebd28c7bc8f75249 | Prepare filePath scheme independent | www/FileTransferManager.js | www/FileTransferManager.js | var exec = require('cordova/exec')
var FileTransferManager = function (options, callback) {
this.options = options
if (!this.options.parallelUploadsLimit) {
this.options.parallelUploadsLimit = 1
}
if (typeof callback !== 'function') {
throw new Error('event handler must be a function')
}
this.cal... | JavaScript | 0 | @@ -1484,16 +1484,24 @@
ePath =
+new URL(
entry.to
@@ -1509,26 +1509,48 @@
RL()
-.replace('file://'
+).pathname.replace(/%5E%5C/local-filesystem/
, ''
|
8cae18857f3e80fabbc7c1afdee5ae112fc85444 | make image have 0 size in case phone is offline when tab loads. | www/js/controllers/news.js | www/js/controllers/news.js | /**
* Displays news items scraped from RSS feed.
*
*/
var NewsCtrl = function ($scope, $http, x2js, $ionicLoading) {
$ionicLoading.show({template: '<ion-spinner icon="ripple" class="spinner-assertive"></ion-spinner>', noBackdrop: true, hideOnStateChange: true});
$http.get('https://www.eff.org/rss/updates.xml',... | JavaScript | 0 | @@ -734,16 +734,37 @@
at('%3Cimg
+ width=%220%22 height=%220%22
src=%22ht
|
556dfe5d1c2cee7fb14cf1f28ba7ffcca55067ef | add some more support data | src/support.js | src/support.js | export const matrix = {
chrome: {
49: 0b01111111111100111111111111111
},
node: {
5: 0b01111000111100111111001111111
}
};
export const features = [
'arrow',
'classes',
'collections',
'computedProperty',
'conciseMethodProperty',
'constLoop',
'constRedef',
'defaultParameter',
'destructuring',
'extendNa... | JavaScript | 0 | @@ -35,41 +35,173 @@
%0A%09%094
-9: 0b0111111111110011111111111111
+8: 0b01111011111100111110101111101,%0A%09%0949: 0b01111111111100111111111111111,%0A%09%0950: 0b11111111111100111111111111111%0A%09%7D,%0A%09firefox: %7B%0A%09%0943: 0b0011111110110000011011101110
1%0A%09%7D
|
e28fb126c24ae5b97c512166c14c095af94d4f9d | Improve song ordering JS parameters | generator/static/js/patanet.js | generator/static/js/patanet.js |
//function to prevent the user from accidentally leaving a page without saving its changes
var unsaved = false;
function unsaved_changes(){
if(!unsaved){
window.onbeforeunload = function (e) {
var message = "Your have unsaved changes on the page.",
e = e || window.event;
// Fo... | JavaScript | 0.000007 | @@ -747,16 +747,75 @@
table(%7B%0A
+ axis: %22y%22,%0A scrollSensitivity: 100,%0A
|
83922576569462834201cfe3ed486a04c28a4b87 | Revert "Fix: overflow shorthand override warning" | new-lamassu-admin/src/components/tables/DataTable.js | new-lamassu-admin/src/components/tables/DataTable.js | import { makeStyles, Box } from '@material-ui/core'
import classnames from 'classnames'
import * as R from 'ramda'
import React, { useState, useEffect } from 'react'
import {
AutoSizer,
List,
CellMeasurer,
CellMeasurerCache
} from 'react-virtualized'
import {
Table,
TBody,
THead,
Tr,
Td,
Th
} from ... | JavaScript | 0 | @@ -4918,34 +4918,16 @@
style=%7B%7B
-%0A
overflo
@@ -4931,9 +4931,8 @@
flow
-X
: 'i
@@ -4943,98 +4943,24 @@
it',
-%0A overflowY: 'inherit',%0A outline: 'none'%0A
+ outline: 'none'
%7D%7D%0A
|
456115b74d44cdfe20daf09852afd78b8dbd7618 | Fix day of week typo | docs/examples/src/modifiers-styles.js | docs/examples/src/modifiers-styles.js | export default function Example() {
const modifiers = {
thusdays: { daysOfWeek: [4] },
birthday: new Date(2018, 9, 30),
};
const modifiersStyles = {
birthday: {
color: 'white',
backgroundColor: '#ffc107',
},
thusdays: {
color: '#ffc107',
backgroundColor: '#fffdee',
... | JavaScript | 0.999983 | @@ -50,32 +50,33 @@
iers = %7B%0A thu
+r
sdays: %7B daysOfW
@@ -243,16 +243,17 @@
%0A thu
+r
sdays: %7B
|
6f6be603015b84a095d1e636122dad6c7a29a911 | change msg var scope | javascript-nodejs/src/emit_log.js | javascript-nodejs/src/emit_log.js | #!/usr/bin/env node
var amqp = require('amqplib');
var when = require('when');
var conn = amqp.connect('amqp://localhost')
conn.then(createChannel).then(null, console.warn);
function createChannel(conn) {
return when(conn.createChannel().then(logMessage)).ensure(function() { conn.close(); });
}
function logMessag... | JavaScript | 0.000001 | @@ -401,16 +401,49 @@
false%7D)%0A
+%0A return ok.then(function() %7B%0A
var ms
@@ -502,38 +502,8 @@
';%0A%0A
- return ok.then(function() %7B%0A
|
fb9f61263b7a5cef94be0d4b8a520dd502543818 | add in JS to hide popular movies in movies page | public/js/application.js | public/js/application.js | $(document).ready(function() {
// This is called after the document has loaded in its entirety
// This guarantees that any elements we bind to will exist on the page
// when we try to bind to them
// See: http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
});
| JavaScript | 0 | @@ -30,254 +30,736 @@
%7B%0A
-// This is called after the document has loaded in its entirety%0A // This guarantees that any elements we bind to will exist on the page%0A // when we try to bind to them%0A%0A // See: http://docs.jquery.com/Tutorials:Introducing_$(document).ready()%0A
+$(%22.popular-movies-home%22)... |
15c48ab2aadd96b2bfec54c808262311810b278c | make chance attribute optional | src/toolbox.js | src/toolbox.js | // greatest common denominator
function gcd (a, b) {
return b ? gcd(b, a % b) : a
}
// gcd for n elements
function gcdOfList (ary) {
return ary.reduce((acc, v) => gcd(acc, v))
}
// create a list with test candidate that respects the selection chances
function getCandidates (variations) {
const equalChance = Mat... | JavaScript | 0.000001 | @@ -468,39 +468,98 @@
ance
- = parseInt(v.data.attrs.chance
+Attr = v.data.attrs ? v.data.attrs.chance : false%0A const chance = parseInt(chanceAttr
) %7C%7C
|
3f775e8cf1fe7e3a62b5471b7d51658efbb82b67 | Fix promise resolution typo. | graphql/migration/createUserHandler.js | graphql/migration/createUserHandler.js | 'use strict'
import 'babel-polyfill' // For async/await support.
import config from '../config'
import { handleError } from '../utils/error-logging'
import UserModel from '../database/users/UserModel'
import createUser from '../database/users/createUser'
import {
getPermissionsOverride,
MIGRATION_OVERRIDE
} from ... | JavaScript | 0.000001 | @@ -2202,21 +2202,20 @@
r)%0A .
-catch
+then
(respons
|
5a76a2a9b05e92422da04b1853f5e27b1ca830e4 | add logic for previous and next action and buttons in Player | app/components/Player.js | app/components/Player.js | import React from 'react';
import { as } from '../utils/syno-api'
import '../styles/Player.global.css'
class Player extends React.Component {
constructor(props) {
super(props)
this.handlePlayPauseClick = this.handlePlayPauseClick.bind(this)
const songUrl = ''
const playing = false
this.state = ... | JavaScript | 0 | @@ -245,16 +245,134 @@
nd(this)
+%0A this.handleNextClick = this.handleNextClick.bind(this)%0A this.handlePrevClick = this.handlePrevClick.bind(this)
%0A%0A co
@@ -1266,16 +1266,130 @@
n)%0A %7D%0A%0A
+ handlePrevClick() %7B%0A this.props.playerPrevious()%0A %7D%0A%0A handleNextClick() %7B%0A this... |
7789bbce4e4b3903c4121aa2d73c8b4b788d7fa0 | Use proptypes instead of comments | app/containers/player.js | app/containers/player.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import PlayerLabel from '../components/player-label'
class Player extends Component {
render () {
const { right, color, name } = this.props
return (
<div style={{ fontSize: '5vw' }}>
... | JavaScript | 0 | @@ -646,32 +646,34 @@
pes.
-string, //
+oneOf(%5B'
black
- %7C
+', '
white
+'%5D),
%0A t
@@ -691,29 +691,31 @@
pes.
-string, // human %7C ai
+oneOf(%5B'human', 'ai'%5D),
%0A n
|
a0e814566288150f6bada356935155e0b227b76e | add spec to save document | oide/apps/codeeditor/tests/js/editor.service_test.js | oide/apps/codeeditor/tests/js/editor.service_test.js | 'use strict';
describe('oide.editor.EditorService', function() {
beforeEach(module('oide'));
beforeEach(module('oide.editor'));
describe('oide.editor.EditorService settings', function() {
var aceMock,sessMock, httpBackend;
beforeEach(function() {
sessMock = jasmine.createSpyObj(
'sessMock... | JavaScript | 0 | @@ -1059,16 +1059,243 @@
%7D);%0A
+ httpBackend.whenPUT(/%5C/filebrowser%5C/localfiles.*/).respond(function()%7B%0A return %5B200, %7B%7D%5D;%0A %7D);%0A httpBackend.whenPOST(/%5C/filebrowser%5C/localfiles.*/).respond(function()%7B%0A return %5B200, %7B%7D%5D;%0A %7D);%0A
%7D... |
dfb5d694389df9498b49796e58341519a02cd12c | fix contact page | public/js/contactPage.js | public/js/contactPage.js | 'use strict';
import $ from 'jquery';
module.exports = (function() {
let $resetForm = $('#reset-form');
let $successContainer = $('.success-container');
let $emailInput = $('input#email');
let $messageInput = $('textarea#message');
let $submitButton = $('input#submit');
let $spinnerC... | JavaScript | 0.000001 | @@ -67,18 +67,20 @@
() %7B%0A%0A
-le
+cons
t $reset
@@ -109,26 +109,28 @@
t-form');%0A
-le
+cons
t $successCo
@@ -162,26 +162,28 @@
tainer');%0A
-le
+cons
t $emailInpu
@@ -212,18 +212,20 @@
il');%0A
-le
+cons
t $messa
@@ -259,26 +259,28 @@
essage');%0A
-le
+cons
t $submitBut
@@ -310,18 +310,20 @@
i... |
bb2f9d3c32641bb43f7ef3cd8d2e9fe76e0cfc7a | Add URI encoding to request vars | app/controllers/index.js | app/controllers/index.js | var waitForPause, pauseDelay = 1000;
$.wordTV.addEventListener('click', function(e) {
Ti.API.info("index: $.wordTV.addEventListener(click)");
alert("row clicked, word = "+e.row.word);
});
function resetTable(table) {
Ti.API.info("index: resetTable()");
var rd = [];
table.data = rd;
}
function processInput(... | JavaScript | 0 | @@ -2098,20 +2098,51 @@
earch/%22+
+Ti.Network.encodeURIComponent(
text
+)
+%22?api_k
@@ -2229,8 +2229,9 @@
.open();
+%0A
|
8c4f9497277e92bf4d82cd6c2ab550310975776c | Update legacy AnalyticsAdminbarWidgetOverview to render AnalyticsInactiveCTA if Analytics is not active. | assets/js/modules/analytics/components/adminbar/AnalyticsAdminbarWidgetOverview.js | assets/js/modules/analytics/components/adminbar/AnalyticsAdminbarWidgetOverview.js | /**
* AnalyticsAdminbarWidgetOverview component.
*
* Site Kit by Google, Copyright 2019 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/lice... | JavaScript | 0 | @@ -1335,16 +1335,96 @@
wBlock';
+%0Aimport AnalyticsInactiveCTA from '../../../../components/AnalyticsInactiveCTA';
%0A%0Aclass
@@ -2145,16 +2145,299 @@
s.state;
+%0A%09%09const %7B analyticsActive %7D = this.props;%0A%0A%09%09if ( false === analyticsActive ) %7B%0A%09%09%09return (%0A%09%09%09%09%3Cdiv className=... |
b87d5c1bd725baf1783006033a2982e8547b0514 | indent style | docs/lib/replapp.js | docs/lib/replapp.js | import { REPLMachine } from './REPLMachine';
import { DOMSerializer } from './domserializer';
import * as htmlmodule from './htmlmodule';
import { main, section, iframe, button, details, summary } from './htmlmodule';
import { codebox, markupbox } from './codemirror';
import { es2015support, babel, standalone } from '... | JavaScript | 0.000001 | @@ -2202,26 +2202,24 @@
-
this.inputco
@@ -2215,32 +2215,32 @@
his.inputcode =%0A
+
@@ -2418,34 +2418,32 @@
%7D),%0A
-
@@ -2454,32 +2454,32 @@
is.prevbutton =%0A
+
@@ -2699,34 +2699,32 @@
%7D),%0A
-
... |
6bbf29e9f077336f91b231d4afcb3e2a0f03c903 | remove output: "source" | src/tspegjs.js | src/tspegjs.js | exports.use = function (config, options) {
config.passes.generate = [
require("./passes/generate-bytecode-ts"),
require("./passes/generate-ts")
];
options.output = "source";
if (!options.tspegjs) {
options.tspegjs = {};
}
if (options.tspegjs.noTslint === undefined) {
options.tspegjs.noTslint... | JavaScript | 0.999999 | @@ -156,37 +156,8 @@
%5D;%0A
- options.output = %22source%22;%0A
if
|
7a6b1b0ef1683a340bf679a34ffaad1f6a0c94f6 | remove fucking log | public/js/models/base.js | public/js/models/base.js | /*
|--------------------------------------------------------------------------
| Models de base
|--------------------------------------------------------------------------
*/
define([
'angular',
'models/index'
], function(angular, model) {
'use strict';
angular.module(model.name).service('Base', ['Hel... | JavaScript | 0.000001 | @@ -2788,65 +2788,8 @@
);%0A%0A
- console.log(that.dirty);%0A
|
5ab03092a60fcabbe816ad75a4e1dd38f24fab26 | Handle audio that takes long to load better | audio.js | audio.js | 'use strict';
/**
* An object representing one audio sample.
* @param {string} filename Name of the audio file without a file extension. Assumes that the audio file is located
* in Audio.audioPath.
* @param {Array.<string>} fileExtensions Array of extensions. Defaults to ogg and mp3, which should be enough for
* ... | JavaScript | 0.000001 | @@ -3642,28 +3642,29 @@
var
-that
+audio
= this.audi
@@ -3722,20 +3722,21 @@
-that
+audio
.play();
@@ -3740,36 +3740,37 @@
();%0A
-that
+audio
.markLoaded();%0A
@@ -3859,24 +3859,197 @@
nction () %7B%0A
+ this.audio.oncanplay = null;%0A if (!this.loaded) %7B%0A var th... |
e0232c9c2477e49ccbe911053f78bf744eb2e515 | fix typo in dashboard desktop notification | lib/dashboard/public/dashboard.js | lib/dashboard/public/dashboard.js | window.onload = function () {
'use strict';
var $panelsContainer = $('.dashboard-panels');
var $panels = $('.dashboard-panels > .panel');
var $socketStatus = $('#socketStatus');
var observer;
// Images are stored as data URIs so that they can be displayed even with no connection to the server
... | JavaScript | 0 | @@ -2134,33 +2134,32 @@
after the maximu
-i
m number of atte
|
8fdc10c504f642996befc5ab9dcc4f5e6031ef4b | Update foundation.alert.js | js/foundation/foundation.alert.js | js/foundation/foundation.alert.js | ;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.alert = {
name : 'alert',
version : '{{VERSION}}',
settings : {
callback: function (){}
},
init : function (scope, method, options) {
this.bindings(method, options);
},
events : function () {
... | JavaScript | 0.000001 | @@ -724,17 +724,17 @@
ddClass(
-%22
+'
alert-cl
@@ -740,9 +740,9 @@
lose
-%22
+'
);%0A
|
665dd1de78785e6a9176c5533f5a29bbc33166d5 | Remove supersizeme class as appropriate. | plugins/ExtendedProfile/js/profiledetail.js | plugins/ExtendedProfile/js/profiledetail.js | var SN_EXTENDED = SN_EXTENDED || {};
SN_EXTENDED.reorder = function(cls) {
var divs = $('div[class=' + cls + ']');
$(divs).each(function(i, div) {
$(div).find('a.add_row').hide();
$(div).find('a.remove_row').show();
SN_EXTENDED.replaceIndex(SN_EXTENDED.rowIndex(div), i);
});
... | JavaScript | 0 | @@ -1620,16 +1620,43 @@
t('tr').
+removeClass('supersizeme').
clone();
@@ -1714,49 +1714,8 @@
x);%0A
- $(newtr).removeClass('supersizeme');%0A
|
e74e19ec4ea3ea01a4c09a75137e1fa73e0482b7 | Set retirement datepicker options to start at current date | client/app/components/retire-service-modal/retire-service-modal-service.factory.js | client/app/components/retire-service-modal/retire-service-modal-service.factory.js | (function() {
'use strict';
angular.module('app.components')
.factory('RetireServiceModal', RetireServiceFactory);
/** @ngInject */
function RetireServiceFactory($modal) {
var modalService = {
showModal: showModal,
};
return modalService;
function showModal(serviceDetails) {
... | JavaScript | 0 | @@ -1449,24 +1449,53 @@
ight: true,%0A
+ startDate: new Date(),%0A
%7D;%0A%0A
|
a798724366bfc9e01bd369582f9ae102b70ed52b | Fix error merging items with relations in unsynced library | chrome/content/zotero/xpcom/data/libraries.js | chrome/content/zotero/xpcom/data/libraries.js | /*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | JavaScript | 0.000001 | @@ -2003,33 +2003,77 @@
Zotero.libraryID
-)
+ %7C%7C (%22%22 + libraryID).indexOf('local/') == 0)
%7B%0A%09%09%09return 'us
|
c037c4de5c622149d161b7ee70df47ce0f0e858b | Make template caching be an opts option instead of based on the node environment | beard.js | beard.js | const fs = require('fs');
const exts = '(.brd$|.brd.html$)';
const traversy = require('traversy');
const normalize = require('path').normalize;
function hash(str) {
let hash = 5381;
let i = str.length;
while (i) hash = (hash * 33) ^ str.charCodeAt(--i);
return hash >>> 0;
}
module.exports = function(cache = {... | JavaScript | 0.000001 | @@ -324,16 +324,29 @@
opts = %7B
+ cache: true
%7D) %7B%0A l
@@ -3830,36 +3830,18 @@
r =
-process.env === 'production'
+opts.cache
%0A
|
4f489392ee5ea6bef3fed2868367324ceba54a02 | Load selected one time | Resources/public/js/relation.js | Resources/public/js/relation.js | var Relation = function(id, url) {
this.id = id;
this.url = url;
var parent = this;
this.handleOptions = function(data) {
var optionsTemplateSource = $('#options-template').html(), optionsTemplate = Handlebars.compile(optionsTemplateSource);
var paginationTemplateSource = $('#paginati... | JavaScript | 0 | @@ -66,16 +66,49 @@
l = url;
+%0A this.loadedSelected = false;
%0A%0A va
@@ -1049,30 +1049,133 @@
-parent.loadSelected();
+if (parent.loadedSelected === false) %7B%0A parent.loadSelected();%0A parent.loadedSelected = true;%0A %7D
%0A
|
5d81d1dddef80e45116243b501e219b6662fed80 | reorder dependencies | bin/tsa.js | bin/tsa.js | #!/usr/bin/env node
var tsa = require("../lib/Analyzer");
var glob = require("glob");
var ts = require("typescript")
var fs = require("fs");
var arg = process.argv.slice(2)[0];
const fileNames = glob(arg, {}, function(err, files) {
if (err) {
console.log(err);
process.exit(1);
}
var analy... | JavaScript | 0.000058 | @@ -18,19 +18,18 @@
de%0A%0Avar
-tsa
+fs
= requi
@@ -36,23 +36,10 @@
re(%22
-../lib/Analyzer
+fs
%22);%0A
@@ -96,23 +96,25 @@
script%22)
+;
%0Avar
-fs
+tsa
= requi
@@ -113,26 +113,39 @@
= require(%22
-fs
+../lib/Analyzer
%22);%0A%0Avar arg
|
62a0adea14f47104d552aece89aca1d88743766a | Update ValueDesc_ActivationFunction.js | CNN/Unpacker/ValueDesc/ValueDesc_ActivationFunction.js | CNN/Unpacker/ValueDesc/ValueDesc_ActivationFunction.js | export { ActivationFunction };
import { Int } from "./ValueDesc_Base.js";
import * as Weights from "../Weights.js";
import * as FloatValue from "../FloatValue.js";
/**
* Describe activation function parameter's id, range, name.
*
* The activation function ActivationFunction.Info.pfn( x ) is almost linear when x is... | JavaScript | 0.000001 | @@ -1242,16 +1242,53 @@
, +64 )?
+%0A// - tf.clipByValue( -128, +127 )?
%0A%0A * -
|
586d757c9bd6f79b426331390fc3512844e3e887 | Fix typo | homedisplay/display/static/js/clock.js | homedisplay/display/static/js/clock.js | var ClockCalendar = function (options) {
options = options || {};
options.update_interval = options.update_interval || 1000;
options.sync_interval = options.sync_interval || FAST_UPDATE;
var update_interval, sync_interval, clock_offset = 0;
function updateOffset() {
jq.get("/homecontroller/timer/current_... | JavaScript | 0.999999 | @@ -2893,17 +2893,17 @@
in inter
-n
+v
als)) %7B%0A
|
91a51853109116e2d78e089103966ba8267f128d | Update frameworks.js | independent/mojoQuery/speedTest/js/frameworks.js | independent/mojoQuery/speedTest/js/frameworks.js | /**
* test frameworks
*/
window.frameworks = [
//[iframe name, file name, css query method]
["native", "native", "document.querySelectorAll"],
["mojoQuery", "../mojoQuery.js", "mojoQuery"],
["sizzle-latest", "https://raw.githubusercontent.com/jquery/sizzle/master/src/sizzle.js", "Sizzle"],
... | JavaScript | 0.000001 | @@ -301,16 +301,23 @@
e.js%22, %22
+window.
Sizzle%22%5D
|
846faedf799124c2a1c15e5e69d8d1169eca45dc | Fix validation error alert | client/js/components/home/teamCreationForm.js | client/js/components/home/teamCreationForm.js | 'use strict'
var React = require('react')
var ReactBootstrap = require('react-bootstrap')
var Alert = ReactBootstrap.Alert
var Input = ReactBootstrap.Input
var TagSelect = require('./tagSelect')
var $ = require('jquery')
var TeamCreationForm = React.createClass({
propTypes: {
initialTags: React.PropTypes.array
... | JavaScript | 0.000011 | @@ -1062,34 +1062,8 @@
else
- if (this.state.formError)
%7B%0A
@@ -1151,24 +1151,62 @@
sage)%0A %7D%0A
+ alert(JSON.stringify(this.state))%0A
%7D,%0A%0A show
|
9c595f39b19eb7ac0deebf0635ebfaa26cf2022e | Fix closing legend | client/src/components/Verejne/Legend/index.js | client/src/components/Verejne/Legend/index.js | // @flow
import React from 'react'
import CircleIcon from 'react-icons/lib/fa/circle-o'
import FilledCircleIcon from 'react-icons/lib/fa/circle'
import classnames from 'classnames'
import {withState} from 'recompose'
import {FACEBOOK_LIKE_SRC} from '../../../constants'
import './Legend.css'
import MapIcon from '../../.... | JavaScript | 0.000089 | @@ -520,9 +520,9 @@
', %7B
-H
+h
idde
|
800f7ddf8bd6acef5559b73402b6385ef352e460 | Allow dhcp leases file path to be configured | lib/jobs/isc-dhcp-lease-poller.js | lib/jobs/isc-dhcp-lease-poller.js | // Copyright 2015, EMC, Inc.
'use strict';
var di = require('di');
module.exports = iscDhcpLeasePollerFactory;
di.annotate(iscDhcpLeasePollerFactory, new di.Provide('Job.IscDhcpLeasePoller'));
di.annotate(iscDhcpLeasePollerFactory, new di.Inject(
'Job.Base',
'Services.Lookup',
'Logger',
'Promise',
... | JavaScript | 0 | @@ -255,24 +255,54 @@
'Job.Base',%0A
+ 'Services.Configuration',%0A
'Service
@@ -478,16 +478,28 @@
aseJob,%0A
+ config,%0A
look
@@ -969,24 +969,57 @@
asesFile) %7B%0A
+ var defaultFilePath;%0A
@@ -1064,32 +1064,50 @@
%0A
+ defaultFilePath =
this.options.le
@... |
7cd93a605fe97858ee4c41c63ef8f95be830bcdd | Document the test bundler 📕 | karma-static-files/test-bundle.js | karma-static-files/test-bundle.js | const testsContext = require.context('../../../src', true, /\.spec\..+$/)
testsContext.keys().forEach(testsContext)
| JavaScript | 0 | @@ -1,8 +1,103 @@
+/**%0A * Sagui test bundler that finds all test files in a project%0A * for Karma to run them.%0A */%0A
const te
|
aeb0902b0acbe46277d0abbfe488722d74f44422 | update trello token | scripts/trello-token.js | scripts/trello-token.js | module.exports = function(robot) {
robot.respond(/trello get token/i, function(res_r) {
var slackMsgs = require('./slackMsgs.js');
var key = process.env.HUBOT_TRELLO_KEY;
var scope = 'read,write,account';
var name = 'Hubot';
var expr = '30days';
var cb_method = '';
var return_url = '';
var u... | JavaScript | 0 | @@ -1143,33 +1143,34 @@
%0A %09%09process.env
-.
+%5B'
HUBOT_TRELLO_TOK
@@ -1171,16 +1171,18 @@
LO_TOKEN
+'%5D
= token
|
ac9d139a3dff4add266a39bc3dbd7a61cb655fdb | Fix typo | view/index.js | view/index.js | 'use strict';
var util = require('util');
var path = require('path');
var _s = require('underscore.string');
var yeoman = require('yeoman-generator');
var ViewGenerator = module.exports = function ViewGenerator(args, options, config) {
yeoman.generators.NamedBase.apply(this, arguments);
this.fileName = _s.dasher... | JavaScript | 0.999999 | @@ -445,13 +445,12 @@
('+
-model
+view
' +
|
533510a097c7674be551d2daca99f6d8efe32f58 | Update server.js | Telegram/server.js | Telegram/server.js | /**
* TODO(developer):
* Add your service key to the current folder.
* Uncomment and fill in these variables.
*/
// const projectId = 'my-project';
// const location = 'global';
// const agentId = 'my-agent';
// const languageCode = 'en'
// const TELEGRAM_TOKEN='1234567898:ABCdfghTtaD8dfghdfgh45sdf65467M';
// cons... | JavaScript | 0.000002 | @@ -390,16 +390,17 @@
string')
+;
%0Aconst e
|
a4beac3ae6ecdeafa28ca87e0bf8acbd1fa57010 | Fix issue #10 | tasks/component.js | tasks/component.js | /*
* grunt-component
* https://github.com/anthonyshort/grunt-component-build
*
* Copyright (c) 2012 Anthony Short
* Licensed under the MIT license.
*/
'use strict';
var Builder = require('component-builder');
var fs = require('fs');
var path = require('path');
var template = fs.readFileSync( __dirname + '/../li... | JavaScript | 0 | @@ -959,16 +959,206 @@
this;%0A%0A
+ var joinBasePath = function(files) %7B%0A if (!files) %7B%0A return %5B%5D;%0A %7D%0A%0A return files.map(function(file) %7B%0A return path.join(opts.base, file);%0A %7D);%0A %7D;%0A%0A
// T
@@ -1857,35 +1857,29 @@
ripts =
-grunt.file... |
36d73cc3bb0e3c4afcea4f25b06cc76b7b5531fa | make symlinks relative if possible - fixes #94 | src/util/fs.js | src/util/fs.js | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/... | JavaScript | 0 | @@ -4026,47 +4026,348 @@
-await fsSymlink(src, dest, %22junction%22);
+if (process.platform === %22win32%22) %7B%0A // use directory junctions if possible on win32, this requires absolute paths%0A await fsSymlink(src, dest, %22junction%22);%0A %7D else %7B%0A // use relative paths otherwise whic... |
3c6c6b2fb7709e20e223f5769587c5e4930fd4fc | Clean up event loop queue | lib/tunnel.js | lib/tunnel.js | require('babel/polyfill');
import * as path from 'path';
import * as net from 'net';
import {readFileSync as read} from 'fs';
import Connection from 'ssh2';
import { extend } from 'lodash';
import * as vow from 'vow';
let defer = Symbol();
export default class Tunnel {
/**
* Define all needed properties
* ... | JavaScript | 0.000001 | @@ -3323,24 +3323,47 @@
dEvents() %7B%0A
+ var streams = %5B%5D;%0A%0A
this.con
@@ -3699,32 +3699,130 @@
ume();%0A %7D);
+%0A%0A // Store all streams, so we can clean it up afterwards%0A streams.push(socket, stream);
%0A %7D);%0A%0A //
@@ -4487,24 +4487,129 @@
error) =%3E %7B%0A
+ ... |
97026e5e0a5ecd4bc76527740ca74c2efd9bb62b | fix get cached entity when no cached version exists | lib/vcache.js | lib/vcache.js | /* Copyright (c) 2012-2014 Richard Rodger, MIT License */
"use strict";
var _ = require('underscore')
var LRU = require( 'lru-cache' )
module.exports = function( options ) {
var seneca = this
var name = 'vcache'
options = seneca.util.deepextend({
prefix: 'seneca-vcache',
maxhot: 1111,
ex... | JavaScript | 0 | @@ -1724,23 +1724,103 @@
-if( false === v
+//TODO: @iantocristian when is v false%0A if( false === v %7C%7C _.isUndefined(v) %7C%7C _.isNull(v)
) %7B
|
a3ac3c5cbbad4fc99085af023441e3c2ea0d507e | Check if CI variable is set to `'false'` (#2501) | packages/react-scripts/scripts/build.js | packages/react-scripts/scripts/build.js | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same ... | JavaScript | 0.000001 | @@ -4005,16 +4005,60 @@
nv.CI &&
+ process.env.CI.toLowerCase() !== 'false' &&
message
|
9b3b2fd961647017d148c054dfb25374ebb82726 | fix linting | packages/jsbattle-admin/src/containers/BattleList.js | packages/jsbattle-admin/src/containers/BattleList.js | import React, {Component} from "react";
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Breadcrumb from 'react-bootstrap/Breadcrumb';
import SideMenu from '../components/SideMenu.js';
import SmartTable from '../components/SmartTable... | JavaScript | 0.000001 | @@ -447,18 +447,16 @@
ions';%0A%0A
-%0A%0A
function
@@ -755,16 +755,17 @@
%7D%3C/span%3E
+;
%0A%7D%0A%0Aclas
|
7c558e1ce00bf63bd379f9aa140172c2cced134b | Correctly determine whether any requests are outstanding | packages/second-renderer/src/fetcher.js | packages/second-renderer/src/fetcher.js | import Promise from 'bluebird'
import fp, { clone, filter, join, map, toPairs } from 'lodash/fp'
import HttpClient from 'bbc-http-client'
import debug from 'debug'
const mapValuesWithKey = fp.mapValues.convert({ cap: false })
const REFETCH_DELAY = 100
const client = new HttpClient({ timeout: 10000 })
const paramsToUr... | JavaScript | 0.601895 | @@ -395,17 +395,8 @@
ond:
-renderer:
fetc
@@ -475,16 +475,49 @@
ts = %7B%7D%0A
+ this.unreadResponses = false%0A
%7D%0A%0A h
@@ -553,16 +553,40 @@
return
+ this.unreadResponses %7C%7C
this.ou
@@ -677,24 +677,21 @@
=%3E
-!
req.is
-Fulfilled
+Pending
(),
@@ -850,24 +850,58 @@
requests) %7B%0A
+ t... |
6eecece0dede5c06edbf23186cb31ef9482e1dd6 | fix state name, prevent state from being overwritten | packages/lore/src/hooks/reducerBlueprints/reducer.js | packages/lore/src/hooks/reducerBlueprints/reducer.js | var blueprints = {
find: require('./blueprints/find'),
byId: require('./blueprints/byId'),
byCid: require('./blueprints/byCid')
};
module.exports = function(modelName) {
var find = blueprints.find(modelName);
var byId = blueprints.byId(modelName);
var byCid = blueprints.byCid(modelName);
var initialStat... | JavaScript | 0.000001 | @@ -323,19 +323,20 @@
= %7B%0A
-all
+find
: undefi
@@ -578,11 +578,12 @@
ate.
-all
+find
, ac
|
e7e4aa341d750a1488cc20165443c6cd79555cc9 | Update main_server.js | packages/vulcan-accounts/main_server.js | packages/vulcan-accounts/main_server.js | import { Accounts } from 'meteor/accounts-base';
import './imports/accounts_ui.js';
import './imports/components.js';
import './imports/login_session.js';
import './imports/routes.js';
import './imports/oauth_config.js';
import './imports/emailTemplates.js';
import { redirect, STATES } from './imports/helpers.js';
impo... | JavaScript | 0.000003 | @@ -373,28 +373,33 @@
;%0Aimport use
-Sign
+MeteorLog
out from './
@@ -409,20 +409,25 @@
orts/use
-Sign
+MeteorLog
out.js';
@@ -521,12 +521,17 @@
use
-Sign
+MeteorLog
out
|
e4150ddd61b99eb23bba1062524c1357530699c4 | Fix app rehydrate | app/redux-modules/app.js | app/redux-modules/app.js | // @flow
import type { Dispatch, GetState, Action } from 'types/store.types';
import type { AppState, AppAction, CoordinatesValue } from 'types/app.types';
// $FlowFixMe
import { version } from 'package.json'; // eslint-disable-line
import { COORDINATES_FORMATS, ACTIONS_SAVED_TO_REPORT } from 'config/constants/index';... | JavaScript | 0 | @@ -1548,16 +1548,19 @@
.state,
+...
app, ver
|
bac768b371ef3f4f3d247e89e47f0fd637bc44c1 | change description | bin/boost2fs.js | bin/boost2fs.js | #!/usr/bin/env node
require('async-to-gen/register')
const meow = require('meow')
const B2f = require('../lib')
const pkg = require('../package.json')
const cli = meow(`
Boost2fs v${pkg.version}
Conversion Boostnote to normal files.
Usage:
b2f [dir] [options]
Options:
--output Specify the out... | JavaScript | 0.999823 | @@ -171,106 +171,143 @@
%60%0A
-Boost2fs v$%7Bpkg.version%7D%0A Conversion Boostnote to normal files.%0A%0A Usage:%0A b2f %5Bdir%5D %5Boptions%5D
+Usage:%0A b2f %5Bdir%5D %5Boptions%5D%0A%0A Commands:%0A dir Specify the input path, which includes 'boostnote.json' ( default: ./ )
%0A%0A
@@ ... |
7f87a0f6d31e6467218ecc750442f8bf295d61d6 | Update search bar design | source/popup/components/SearchBar.js | source/popup/components/SearchBar.js | import React, { Component } from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
const SEARCH_ICON = require("../../../resources/search-icon.png");
const Container = styled.div`
width: 100%;
display: flex;
flex-direction: row;
justify-content: flex-start;
align... | JavaScript | 0 | @@ -9,16 +9,20 @@
eact, %7B
+Pure
Componen
@@ -75,16 +75,64 @@
types%22;%0A
+import %7B InputGroup %7D from %22@blueprintjs/core%22;%0A
import s
@@ -385,369 +385,27 @@
er;%0A
-%60;%0Aconst SearchInput = styled.input%60%0A flex-grow: 2;%0A border: 0;%0A color: #fff;%0A height: 36px;%0A margin: 0px;%... |
d8d54ece21300dad63015779b6c5c629510c17d6 | fix for erroneous results from phonegap local plugin list command | lib/phonegap/local.plugin.list.js | lib/phonegap/local.plugin.list.js | /*!
* Module dependencies
*/
var Command = require('./util/command'),
project = require('./util/project'),
cordova = require('cordova-lib').cordova,
util = require('util');
/*!
* Command setup.
*/
module.exports = {
create: function(phonegap) {
return new LocalPluginListCommand(phonegap);... | JavaScript | 0 | @@ -1967,128 +1967,187 @@
%7D
-%0A // no plugins are displayed as a string instead of empty array
+ else if (typeof plugins === 'string') %7B%0A // identify the %22no plugins%22 response to phonegapify the output
%0A
-else
+
if (
-typeof plugins === 'string') %7B%0A
+plugins.indexOf('No plugins ... |
f80a28d95158b4c54ee934c86cdd4e381358845c | clean command | build.js | build.js | var system = require('system');
var fs = require('fs');
var compiler = require('./bootstrap/compiler');
function compileFile (path) {
fs.write((fs.directory(path) + '/' +
fs.base(path, '.ralph') + '.js'),
compiler.compile(fs.read(path)) + '\n');
}
var commands = {
clean: function () {
// clean... | JavaScript | 0.000029 | @@ -169,17 +169,16 @@
+ '/' +
-
%0A%09
@@ -308,24 +308,95 @@
%7B%0A%09
-//
+commands.cleanRuntime();%0A%09commands.cleanTests();%0A %7D,%0A
clean
- r
+R
untime
+: function () %7B
%0A%09sy
@@ -630,24 +630,44 @@
%7D);%0A
-%09//
+ %7D,%0A
clean
- t
+T
ests
-
+: function () %7B
%0A%09sy
@@... |
33f1197195fe55a1417202397f60108cde86d3c4 | Fix bad IPC messages | lib/worker.js | lib/worker.js | const qs = require('querystring');
const {remote, ipcRenderer: ipc} = require('electron');
const {GitProcess} = require('dugite');
class AverageTracker {
constructor({limit} = {limit: 10}) {
// for now this serves a dual purpose - # of values tracked AND # discarded prior to starting avg calculation
this.l... | JavaScript | 0.998239 | @@ -2509,15 +2509,23 @@
+data: %7B
id, err
+%7D
,%0A
@@ -2725,16 +2725,23 @@
+data: %7B
id, stdi
@@ -2761,16 +2761,17 @@
din, err
+%7D
,%0A
|
88735b17b6fb2167c7d8bc8d9f7d857199575913 | Set webPreferences.nodeIntegration to true | gui/js/window_manager.js | gui/js/window_manager.js | /** Base implementation for all windows.
*
* @module gui/js/window_manager
*/
const { BrowserWindow, ipcMain, shell } = require('electron')
const _ = require('lodash')
const path = require('path')
const electron = require('electron')
const ELMSTARTUP = 400
const log = require('../../core/app').logger({
componen... | JavaScript | 0 | @@ -2951,24 +2951,116 @@
owOptions()%0A
+ opts.webPreferences = %7B%0A ...opts.webPreferences,%0A nodeIntegration: true%0A %7D%0A
// https
|
f1cd6c31a29150999ff2d9cf0bf5d0e1a4b9fea0 | Find the last route that that matches, instead of the first | react-native/react/router/meta-navigator.js | react-native/react/router/meta-navigator.js | 'use strict'
/**
* @providesModule Meta Navigator
* A Meta navigator for handling different navigators at the top level.
* todo(mm) explain why we need a meta navigator
*/
import React from 'react-native'
const {
Component,
Navigator
} = React
import { connect } from 'react-redux/native'
class MetaNavigato... | JavaScript | 0.99901 | @@ -1404,16 +1404,26 @@
vRoutes.
+reverse().
find(nav
|
f87c83b48288a701e5f9e7ee941df4a1d5f1fe09 | handle exception for Forex api | libs/forex.js | libs/forex.js | var request = require('request');
module.exports.getPrice = function(base, codestring, cb) {
// I assume, I have already a security token
request.get('https://api-fxtrade.oanda.com/v1/prices?instruments=' + codestring + '_' + base, function(err, response, body) {
if (response.statusCode !== 200)
err = JSON.par... | JavaScript | 0 | @@ -333,21 +333,33 @@
cb(err,
+JSON.parse(
body)
+)
;%0A%09%7D);%0A%7D
|
0b2df4555a7cae721e751edb9e89a3d69447d575 | Add gulp outdated | gulp/tasks/test/tasks.js | gulp/tasks/test/tasks.js | 'use strict'
const { src, series, parallel, lastRun } = require('gulp')
const jscpd = require('gulp-jscpd')
const FILES = require('../../files')
const { getWatchTask } = require('../../utils')
const gulpExeca = require('../../exec')
const { linksCheck } = require('./linkcheck')
const format = function() {
const f... | JavaScript | 0.00001 | @@ -1488,24 +1488,172 @@
abilities'%0A%0A
+const outdated = () =%3E gulpExeca('npm outdated')%0A%0A// eslint-disable-next-line fp/no-mutation%0Aoutdated.description = 'Report outdated dependencies'%0A%0A
const links
@@ -2274,16 +2274,26 @@
, audit,
+ outdated,
links)%0A
@@ -2707,16 +2707,28 @@
audit,%0A
+ outd... |
c5d6d487a0fbf8ee0db39d72b90617778f2a3a0a | fix click for new object (#557) | addon/mixins/flexberry-map-model-api-savelayer.js | addon/mixins/flexberry-map-model-api-savelayer.js | import Ember from 'ember';
export default Ember.Mixin.create({
saveLayers(layersIds) {
return Ember.RSVP.all(layersIds.map((layerId) => this.saveLayer(layerId)));
},
/**
Save layer.
@method saveLayer
@param {string} layerId Layer id.
@throws {Error}
@return {Ember.RSVP.Promise} Returns p... | JavaScript | 0 | @@ -730,16 +730,74 @@
false);%0A
+ this._getEditTools().featuresLayer.clearLayers();%0A
|
a44be7c69f39e12afbbd6db33402db6a9b93d0e6 | Update tests | test/cases.spec.js | test/cases.spec.js | 'use strict';
const path = require('path');
const compare = require('./compare');
const Parser = require('../lib/parser');
const DistParser = require('../dist/bladeexp.js');
const DistMinParser = require('../dist/bladeexp.min.js');
const Lexer = require('../lib/lexer');
const DistLexer = require('../dist/bladeexp.j... | JavaScript | 0.000001 | @@ -129,290 +129,40 @@
nst
-DistParser = require('../dist/bladeexp.js');%0Aconst DistMinParser = require('../dist/bladeexp.min.js');%0A%0Aconst Lexer = require('../lib/lexer');%0Aconst DistLexer = require('../dist/bladeexp.js').Lexer;%0Aconst DistMinLexer = require('../dist/bladeexp.min.js').Lexer;%0A%0A// Lexer tran... |
e4a97874b3a02b517c6d55010eb542dd36686597 | fix error test require path | hyperbahn/test/larch/errors.js | hyperbahn/test/larch/errors.js | // Copyright (c) 2015 Uber Technologies, 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, modify, merge... | JavaScript | 0.000002 | @@ -1219,19 +1219,16 @@
('../../
-../
lib/larc
|
163facdb473ed5a5b37557b83077040fb6f65bd9 | make tests independent of user configuration | test/common-tap.js | test/common-tap.js | var spawn = require("child_process").spawn
var path = require("path")
var port = exports.port = 1337
exports.registry = "http://localhost:" + port
process.env.npm_config_loglevel = "error"
var npm_config_cache = path.resolve(__dirname, "npm_cache")
process.env.npm_config_cache = exports.npm_config_cache = npm_config_... | JavaScript | 0.000001 | @@ -318,16 +318,176 @@
ig_cache
+%0Aprocess.env.npm_config_userconfig = exports.npm_config_userconfig = path.join(__dirname, %22fixtures%22, %22config%22, %22userconfig%22)%0Aprocess.env.random_env_var = %22foo%22
%0A%0Avar bi
|
c3466658834807c98f3c53bdecace7fb5774ffd3 | Add getpocket hook test | test/core/hooks.js | test/core/hooks.js |
var should = require('should')
var Purest = require('../../')
, config = require('../../lib/config')
, utils = require('../../lib/utils')
describe('hooks', function () {
// improve this test
it('ctor option', function () {
var before = {
all: function (endpoint, options, config) {
options.a... | JavaScript | 0 | @@ -3911,16 +3911,316 @@
on () %7B%0A
+ var p = new Purest(%7Bprovider:'getpocket'%7D)%0A%0A var options = %7Bqs:%7Ba:1%7D%7D%0A p.before.all('endpoint', options)%0A should.deepEqual(options, %7Bjson:false, body:'%7B%22a%22:1%7D'%7D)%0A%0A options = %7Bform:%7Ba:1%7D%7D%0A p.before.all('endpoint', op... |
f059f53da49118639e16f0288a44285e45e57575 | add description to event test | test/event/test.js | test/event/test.js | /* Test Flow
Test 3 class functions
1. Use right html page to test the `parseEvent` function
2. Mock html reply test the `getEventList` and `fetch` function
*/
const eve = require('../../app/thulib/event')
const readFile = require('fs-readfile-promise')
const cheerio = require('cheerio')
const nock = require('nock')
c... | JavaScript | 0.000001 | @@ -692,16 +692,65 @@
() =%3E %7B%0A
+ describe('Test for EventUtil Class', () =%3E %7B%0A
descri
@@ -789,24 +789,26 @@
', () =%3E %7B%0A
+
it('1.1
@@ -889,24 +889,26 @@
) =%3E%7B%0A
+
const data =
@@ -957,16 +957,18 @@
'utf8')%0A
+
co
@@ -1024,24 +1024,26 @@
e %7D)%0A%0A
+ ... |
bdb0931dd021aa101b11e8404698765aee03ad32 | Add test validating that cc-exp is valid with default model data | test/expiration.js | test/expiration.js | 'use strict'
/*global describe, beforeEach, afterEach, it*/
var expect = require('chai').use(require('sinon-chai')).expect
var sinon = require('sinon')
var angular = require('angular')
var fs = require('fs')
require('angular-mocks/ngMock')
describe('Expiration', function () {
beforeEach(angular.mock.module(require... | JavaScript | 0 | @@ -2446,32 +2446,323 @@
igest()%0A %7D)%0A%0A
+ it('is valid with valid initial data', function () %7B%0A expiration.month = 1%0A expiration.year = 2015%0A formController = $compile(element)($scope).controller('form')%0A expect(formController.$error.ccExp).to.not.be.ok%0A expect(formCon... |
51f18a152eef7bbd26f78972a3df663b2f119a7e | fix test generation actual ast | test/generation.js | test/generation.js | var generate = require("../lib/6to5/generator");
var traverse = require("../lib/6to5/traverse");
var assert = require("assert");
var util = require("../lib/6to5/util");
var fs = require("fs");
var _ = require("lodash");
var fixturesLoc = __dirname + "/fixtures/generation";
suite("generation", funct... | JavaScript | 0.000001 | @@ -1419,16 +1419,24 @@
enerate(
+actual,
actualAs
|
1df25a633c1905c5b49eeaf99f84dcee9b3c4679 | fix code reference on generate | test/generation.js | test/generation.js | var generate = require("../lib/6to5/generator");
var traverse = require("../lib/6to5/traverse");
var assert = require("assert");
var helper = require("./_helper");
var util = require("../lib/6to5/util");
var chai = require("chai");
var _ = require("lodash");
suite("generation", function () {
test(... | JavaScript | 0.000001 | @@ -1072,16 +1072,21 @@
e(actual
+.code
, actual
|
025ba38b3e28af67525e63b31457d196ec92d4f9 | add test case for passing no data | test/index.test.js | test/index.test.js | 'use strict'
/* eslint-env mocha */
const { strict: assert } = require('assert')
const Vinyl = require('vinyl')
const data = require('gulp-data')
const ejs = require('../')
describe('gulp-ejs', function() {
it('should expose ejs global object', function() {
assert.equal(typeof ejs.__EJS__, 'object')
})
it... | JavaScript | 0.004043 | @@ -141,16 +141,54 @@
-data')%0A
+const ejsDependency = require('ejs')%0A%0A
const ej
@@ -206,16 +206,16 @@
('../')%0A
-
%0Adescrib
@@ -315,15 +315,8 @@
ual(
-typeof
ejs.
@@ -328,16 +328,324 @@
__,
-'object'
+ejsDependency)%0A %7D)%0A%0A it('should work with no suplied data', done =%3E %7B%0A const stream... |
bd9abc15b5cedbfe01e9b24aa78bd8aca271f551 | Remove hardcode of expected end date for new Tasks (#17717) | erpnext/projects/doctype/task/task.js | erpnext/projects/doctype/task/task.js | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.projects");
cur_frm.add_fetch("project", "company", "company");
frappe.ui.form.on("Task", {
onload: function(frm) {
frm.set_query("task", "depends_on", function(... | JavaScript | 0.000028 | @@ -629,16 +629,17 @@
%09%09%7D%0A%09%09%7D%0A
+%0A
%09%09if(!fr
@@ -640,16 +640,20 @@
if(!frm.
+doc.
is_group
@@ -662,191 +662,25 @@
%0A%09%09%09
-var doc = frm.doc;%0A%09%09%09if(doc.__islocal) %7B%0A%09%09%09%09if(!frm.doc.exp_end_date) %7B%0A%09%09%09%09%09frm.set_value(%22exp_end_date%22, frappe.datetime.add_... |
e7ff9ae1ecf8e9c9a07d7ff7bcb6c7ab611b1bd6 | Add test/index.test.js for ava | test/index.test.js | test/index.test.js | import test from 'ava';
import { Nuxt, Builder } from 'nuxt';
import { resolve } from 'path';
let nuxt = null;
test.before('Init Nuxt.js', async t => {
const rootDir = resolve(__dirname, '..');
let config = {};
try { config = require(resolve(rootDir, 'nuxt.config.js')); } catch (e) {}
config.rootDir = rootDir... | JavaScript | 0.000001 | @@ -622,41 +622,23 @@
es('
-%3Ch1 class=%22red%22%3EHello world!%3C/h1%3E
+%E4%B8%8D%E6%80%9D%E8%AD%B0%E3%81%AE%E3%83%80%E3%83%B3%E3%82%B8%E3%83%A7%E3%83%B3 %E5%80%A4%E6%AE%B5%E8%AD%98%E5%88%A5%E8%A1%A8
'));
@@ -643,19 +643,19 @@
);%0A%7D);%0A%0A
-nux
+tes
t.after(
|
3e256e09efdfded93a62c57e3078c4d66cacaaf3 | Use context.getFilename() instead (eslint API change) | eslint-rules/no-require-in-service.js | eslint-rules/no-require-in-service.js | module.exports = function(context) {
return {
CallExpression: function(node) {
if (!context.filename.match(/^lib\/services\//)) return;
if (node.callee.name === 'require' && node.arguments[0].value !== '../core') {
context.report(node, 'require() is disallowed in service files');
}
}... | JavaScript | 0 | @@ -101,16 +101,21 @@
ext.
-f
+getF
ilename
+()
.mat
|
c0dfc4252b121e5309fad60fa3beb56d513984b1 | Add lines on the map | static/main.js | static/main.js | (function() {
var shutmedown = false;
var map;
var geocoder;
function geocodeName(geocode) {
return geocode.address_components[0].short_name + " " + geocode.address_components[1].short_name;
}
var lastQuery = {};
var sides = {"L": "left", "R": "right"}
function roundtotwopoints(a) {
return Math.round(a * 100) / 1... | JavaScript | 0.000039 | @@ -40,16 +40,33 @@
ar map;%0A
+var oldPolyline;%0A
var geoc
@@ -1824,16 +1824,32 @@
s = %5B%5D;%0A
+%09var lines = %5B%5D%0A
%09for (va
@@ -1886,16 +1886,16 @@
i++) %7B%0A
-
%09%09var p
@@ -2033,32 +2033,130 @@
+ p.to.name));%0A
+%09%09%09lines.push(%7Blat: p.from.lat, lng: p.from.lon%7D);%0A%09%09%09lines.p... |
5ae45f046537b22a7059a6efa833c6a5fb535d52 | fix original url | canon.js | canon.js | var url = require('url');
var extend = require('util')._extend;
var defaultOptions = require('./options');
// Express middleware for canonicalisation of URLs
// between HTTPS and HTTP and www URLs to non-www (apex) URL equivalents.
// Copyright (c) 2014 Alex Greenland. MIT License.
module.exports = function(hostUrlObj... | JavaScript | 0.999997 | @@ -923,32 +923,135 @@
lUrl = req.url;%0A
+ if (options.isProduction) %7B%0A originalUrl = url.format(originalUrlObject);%0A %7D%0A
%0A
@@ -2621,69 +2621,8 @@
) %7B%0A
- originalUrl = url.format(originalUrlObject);%0A
|
a0f05e6dd0baaa2b3e0e869a2e39abd5c8bbd4b2 | Clean up path and fs functions in CLI | bin/jade.js | bin/jade.js | #!/usr/bin/env node
/**
* Module dependencies.
*/
var fs = require('fs')
, program = require('commander')
, path = require('path')
, basename = path.basename
, dirname = path.dirname
, resolve = path.resolve
, exists = fs.existsSync || /* istanbul ignore next */ path.existsSync
, join = path.join
, ... | JavaScript | 0.000001 | @@ -219,81 +219,8 @@
lve%0A
- , exists = fs.existsSync %7C%7C /* istanbul ignore next */ path.existsSync%0A
,
@@ -2076,14 +2076,21 @@
if (
+fs.
exists
+Sync
(pro
@@ -5525,29 +5525,24 @@
var file =
-path.
basename(fil
|
7e78c965f04e73ac4263d300f77f0bd527714915 | Work on #150: gpf.interfaces.isImplementedBy | test/interfaces.js | test/interfaces.js | "use strict";
describe("interfaces", function () {
describe("gpf.interfaces.IUnknown", function () {
it("exists", function () {
assert("function" === typeof gpf.interfaces.IUnknown);
});
it("is an interface", function () {
var exceptionCaught;
try {
... | JavaScript | 0 | @@ -593,13 +593,1804 @@
%7D);%0A%0A
+ describe(%22gpf.interfaces.isImplementedBy%22, function () %7B%0A%0A function TestRawClass () %7B%7D%0A TestRawClass.prototype = %7B%0A queryInterface: function (oneParameter) %7B%0A return oneParameter;%0A %7D%0A %7D... |
6170119b38a6be43f38f5f8b9c7f76c27b8c35fb | Fix coverage setting | test/karma.conf.js | test/karma.conf.js | module.exports = function(config) {
config.set({
basePath: '',
autoWatch: true,
frameworks: ['mocha'],
plugins: [
'karma-mocha',
'karma-coverage',
'karma-phantomjs-launcher'
],
files: [
'../node_modules/mocha/mocha.js',
'../node_modules/expect.js/index.js',
... | JavaScript | 0.000002 | @@ -566,21 +566,26 @@
'../
-index
+dist/route
.js': %5B'
|
34e23a45b62d8960062958e5abd55c28668d0d53 | Fix two issues noted by @mourner | bouncemarker.js | bouncemarker.js | /**
* Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright... | JavaScript | 0.000064 | @@ -1399,16 +1399,114 @@
E.%0A */%0A%0A
+// Retain the value of the original onAdd function%0Avar originalOnAdd = L.Marker.prototype.onAdd;%0A%0A
L.Marker
@@ -1550,24 +1550,30 @@
ng)%7B return
+this._
map.latLngTo
@@ -1636,16 +1636,22 @@
return
+this._
map.cont
@@ -2838,238 +2838,37 @@
-this._map = map;%... |
8d564af2cc10c9a5e1ce1d12348f610bd2a67175 | Add tracking for GMAP into robots.txt \o/ | web/js/map.js | web/js/map.js | var epsg4326;
var markers;
var marker;
var center;
var zoom = 2;
var pointFeature;
var point;
var vectorLayer;
var gsat;
var gphy;
var gmap;
var ghyb;
var mapnik;
var style_blue;
var map;
OpenLayers.ImgPath = "/images/ol_theme_dark/";
function initMap(mapId)
{
epsg4326 = new OpenLayers.P... | JavaScript | 0 | @@ -2390,16 +2390,184 @@
tent();%0A
+ map.events.on(%7B%0A %22changebaselayer%22: function(e) %7B%0A if(e.object.baseLayer.name != %22OpenStreetMap%22)%0A $.get('/robots.txt?use_gmap');%0A %7D%0A %0A %7D);
%0A%7D%0A %0Afu
|
1839efe646e34a54c10f649c08b510387791c9fb | Fix error loading view during karma tests | test/karma.conf.js | test/karma.conf.js | // Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-09-12 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: tr... | JavaScript | 0 | @@ -3033,93 +3033,69 @@
//
-Uncomment the following lines if you are using grunt's server to run the tests
+Help karma find the views on disk in the app subdirectory
%0A
- //
pro
@@ -3109,50 +3109,39 @@
%0A
- //
'/
-': 'http://localhost:9000
+views/': '/app/views
/'%0A
- //
%7D,%0A
|
01d91874f9ea689c6299de473295a6ea1feb047f | Set the util.inspect depth to unlimited for the REPL | bin/repl.js | bin/repl.js | #!/usr/bin/env node
var repl = require('repl');
var program = require('commander');
var defaults = require('../lib/defaults.js');
var protocol = require('../lib/protocol.json');
var Chrome = require('../');
program
.option('-h, --host <host>', 'Remote Debugging Protocol host', defaults.HOST)
.option('-p, --po... | JavaScript | 0.000001 | @@ -38,24 +38,52 @@
re('repl');%0A
+var util = require('util');%0A
var program
@@ -631,16 +631,185 @@
d': true
+,%0A 'writer': function (object) %7B%0A return util.inspect(object, %7B%0A 'colors': true,%0A 'depth': null%0A %7D);%0A %7D
%0A %7D);
|
80173d045614a7952eea4c4314ded570596e4a2b | remove toggle all | example/src/components/MainSection.js | example/src/components/MainSection.js | import React, { Component, PropTypes } from 'react'
import ImmutablePropTypes from 'react-immutable-proptypes'
import TodoItem from './TodoItem'
import Footer from './Footer'
import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from '../constants/TodoFilters'
const TODO_FILTERS = {
[SHOW_ALL]: () => true,
[SHOW_ACTIVE... | JavaScript | 0 | @@ -669,319 +669,8 @@
%7D%0A%0A
- renderToggleAll(completedCount) %7B%0A const %7B todos, actions %7D = this.props%0A if (todos.size %3E 0) %7B%0A return (%0A %3Cinput className=%22toggle-all%22%0A type=%22checkbox%22%0A checked=%7BcompletedCount === todos.size%7D%0A ... |
8171e20c26717ab05d391c19fb2f7bf166028a0d | remove mysterious "0" | htdocs/js/weapon_list.js | htdocs/js/weapon_list.js | // Benoit Asselin - http://www.ab-d.fr
Array.prototype.in_array = function(p_val) {
for(var i = 0, l = this.length; i < l; i++) {
if(this[i] == p_val) {
return true;
}
}
return false;
}
//JS code by Astax to foster filtering the results
//Use window variable to store filter values, this is kinda like a JS eq... | JavaScript | 0 | @@ -755,17 +755,16 @@
ickf() %7B
-0
%0A%09filter
|
6e533558e6453ecf5e1b3cf3e775da8373c86ac9 | Remove TODO, caching on classes is bad. | class.js | class.js | var core = require('./core')
, SEL = require('./sel')
, id = require('./id')
, classCache = {}
var proto = exports.proto = Object.create(id.proto);
exports.getClass = function (c) {
var pointer = core.objc_getClass(c);
return classCache[c] = exports.wrap(pointer);
}
// Making the getClass function available... | JavaScript | 0 | @@ -633,25 +633,8 @@
ll.%0A
- * TODO: Caching%0A
*/%0A
@@ -1169,17 +1169,16 @@
l));%0A%7D%0A%0A
-%0A
proto._g
|
256020853ab3304c1be82bcfc0622eec8d17536d | Fix undefined error in class.js. | class.js | class.js | var core = require('./core')
, types = require('./types')
, method = require('./method')
, ivar = require('./ivar')
, IMP = require('./imp')
, SEL = require('./sel')
, id = require('./id')
, classCache = {}
var proto = exports.proto = Object.create(id.proto);
/**
* Gets a wrapped Class instance based o... | JavaScript | 0.000001 | @@ -6611,17 +6611,8 @@
ore.
-Bindings.
TYPE
|
1f8646564fb89e5555c43167216d93138281e9e4 | modify defaults | clock.js | clock.js | var Clock = (function (window, _, URI, Face) {
const defaults = {
rows: ['integer', undefined, 1],
columns: ['integer', undefined, 1],
faces: ['string', 'array', ['Etc/UTC']]
};
var settings = {};
var faces = [];
return {
init: function() {
var qs = new URI(location.href).query(true);
... | JavaScript | 0.000001 | @@ -90,25 +90,25 @@
undefined,
-1
+3
%5D,%0A%09columns:
@@ -131,17 +131,17 @@
efined,
-1
+3
%5D,%0A%09face
@@ -173,17 +173,202 @@
Etc/UTC'
-%5D
+, 'Europe/Stockholm', 'Europe/Helsinki', 'Europe/London', 'Europe/Berlin', 'Europe/Istanbul', 'Europe/Madrid', 'Europe/Rome', 'Asia/Jerusalem'%5D%5D,%0A%09format: %5B'... |
c74113271a341e3166ef59ebe1506f9577827397 | Test for wyuenho/backgrid#207. Closes wyuenho/backgrid#215 | test/select-all.js | test/select-all.js | /*
backgrid
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
Licensed under the MIT @license.
*/
describe("A SelectRowCell", function () {
var collection;
var model;
var cell;
beforeEach(function () {
model = new Backbone.Model();
collection = new Back... | JavaScript | 0 | @@ -3936,32 +3936,433 @@
e(ids2);%0A %7D);%0A%0A
+ it(%22will dereference a model from selectedModels if it is removed from the underlying collection%22, function () %7B%0A var model = collection.at(0);%0A model.trigger(%22backgrid:selected%22, model, true);%0A expect(model.id in cell.selectedModels).toBe(t... |
4eef49959cc49bfb37aaf33aa8bac4a17aa2def9 | Fix typo in test description | test/test-utils.js | test/test-utils.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/.
*/
'use strict';
const utils = require('../lib/utils.js');
const testRunner = require('sdk/test');
exports.testGet... | JavaScript | 0.99964 | @@ -1538,15 +1538,15 @@
Fals
-e
y
-item
+value
s sh
|
7c1b28bf7caa73190f42dbd508208a105352e861 | Update testClient.js | test/testClient.js | test/testClient.js | 'use strict';
const expect = require('chai').expect;
const setup = require(__dirname + '/lib/setup');
let objects = null;
let states = null;
let MqttServer;
let mqttClient = null;
let mqttServer = null;
let connected = false;
let lastReceivedTopic;
let lastReceivedMessage;
const rules = {
'/mqtt/0/test1': 'm... | JavaScript | 0.000001 | @@ -3585,16 +3585,22 @@
troller(
+async
() =%3E %7B%0A
|
ca6b1d2478f748a37074fce836703abf8107735b | test onesignal | www/js/app.js | www/js/app.js | // Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'start... | JavaScript | 0.000003 | @@ -1783,78 +1783,87 @@
%0A%0A
- var notificationOpenedCallback = function(jsonData) %7B%0A
+window.plugins.OneSignal.setLogLevel(%7BlogLevel: 4, visualLevel: 4%7D);%0A
+%0A
- alert(%22N
+var n
otif
@@ -1873,36 +1873,33 @@
tion
- o
+O
pened
-:%5Cn%22 + JSON.stringify
+Callback = function
(jso
@@ -1904,... |
1337bf3159307944e9942059ef47218784b90ff2 | Test false cases | test/utils-test.js | test/utils-test.js | describe('getFolders()', function() {
it('should return the correct list of folders', function() {
var objects = [
{ Key: '/' },
{ Key: 'test/' },
{ Key: 'test/test/' },
{ Key: 'test/a/b' },
{ Key: 'test' },
];
chai.expect(dodgercms.utils.getFolders(objects)).to.have.members(... | JavaScript | 0.002248 | @@ -1421,19 +1421,253 @@
lder/'));%0A %7D);%0A
+ it('should return false for key', function() %7B%0A chai.assert(!dodgercms.utils.isFolder('key'));%0A %7D);%0A it('should return false for key inside folder', function() %7B%0A chai.assert(!dodgercms.utils.isFolder('/folder/key'));%0A %7D);%0A
%7D);
|
d479ad9d1eefc44a6e496cbb5fccc828f67e257d | Build settings | build.config.js | build.config.js | /**
* This file/module contains all configuration for the build process.
*/
module.exports = {
/**
* The `build_dir` folder is where our projects are compiled during
* development and the `compile_dir` folder is where our app resides once it's
* completely built.
*/
build_dir: 'build',
compile_dir: ... | JavaScript | 0.000001 | @@ -2501,24 +2501,115 @@
te/route.js'
+,%0A 'vendor/webrtc_volume/soundmeter.js',%0A 'vendor/webrtc_volume/webrtc_volume.js'
%0A %5D,%0A
|
cdfbd2c14029d65ae2d1530b90f780ddf9cf412b | add angular-material to project | build.config.js | build.config.js | /**
* This file/module contains all configuration for the build process.
*/
module.exports = {
/**
* The `build_dir` folder is where our projects are compiled during
* development and the `compile_dir` folder is where our app resides once it's
* completely built.
*/
build_dir: 'build',
compile_dir: ... | JavaScript | 0.000001 | @@ -2509,26 +2509,142 @@
.js'
-%0A %5D,%0A css: %5B
+,%0A 'vendor/angular-material/angular-material.min.js'%0A %5D,%0A css: %5B%0A 'vendor/angular-material/angular-material.min.css'
%0A
|
21300b3af83d40c78012a0c2c7e8b5a8d2ca21c2 | Update db.js | db/db.js | db/db.js | var mongoose = require('mongoose');
var models = require("./models.js");
/*
var dbUser = 'aida-master';
var dbPassword = 'dbpassword';
var url = 'mongodb://' +
dbUser + ':' +
dbPassword +
'@ds029735.mlab.com:29735/heroku_qdmfvghp'
*/
var url = 'mongodb://localhost/appdb';
var connect = function(callback) {
... | JavaScript | 0.000001 | @@ -804,16 +804,82 @@
;%0A%7D%0A*/%0A%0A
+var User = module.exports = mongoose.model('User', UserSchema);%0A%0A%0A
// Creat
|
d7195d5276becbf21bbad8781d91b955aef39eb1 | add @babel/plugin-proposal-class-properties | tasks/build.js | tasks/build.js | /* eslint-disable import/no-extraneous-dependencies */
// ==========================================================================
// Gulp build script
// ==========================================================================
/* eslint no-console: "off" */
const path = require('path');
const gulp = require('gulp... | JavaScript | 0.000001 | @@ -3285,32 +3285,104 @@
%5D,%0A
+ plugins: %5B'@babel/plugin-proposal-class-properties'%5D,%0A
|
e1408bf546b52e894648aee408d4cc76a6cc1acd | Finish the task even on failure | tasks/hogan.js | tasks/hogan.js | /*
* grunt-hogan
* https://github.com/automatonic/grunt-hogan
*
* Copyright (c) 2013 Elliott B. Edwards
* Licensed under the MIT license.
*/
var fs = require('fs'),
when = require("when"),
Hogan = require("hogan.js-template/lib/hogan"),
nodepath = require('path');
module.exports = function(grunt) {
'us... | JavaScript | 0.999967 | @@ -2202,12 +2202,42 @@
one(
-%22Ok%22
+);%0A %7D, function() %7B%0A done(
);%0A
|
7878f80a33d931bd22b8771d7218822d62b5fd8d | use new fs.watch api, which works on windows | tasks/watch.js | tasks/watch.js | /*
* grunt
* https://github.com/cowboy/grunt
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
* http://benalman.com/about/license/
*/
var fs = require('fs');
var path = require('path');
// ============================================================================
// TASKS
// ======... | JavaScript | 0 | @@ -1329,16 +1329,60 @@
es = %5B%5D;
+%0A // The file watchers%0A var watchers = %5B%5D;
%0A%0A // D
@@ -2119,16 +2119,50 @@
files.%0A
+ if(watchers.length === 0) %7B%0A
file
@@ -2184,24 +2184,121 @@
watchFile);%0A
+ %7D else %7B%0A watchers.forEach(function(watcher) %7B%0A watcher.clos... |
c70ad86d87ac545edd91e89484598c7932e37fa0 | Fix test for v3 | test/1.spec.js | test/1.spec.js | /*eslint no-unused-expressions:0, func-names:0 */
describe( '1. Whitespace', function() {
it( 'should use 2 spaces for indent', function() {
var src = 'var test;\nif ( true ) {\n test = "fail"; }\n';
expect( src ).to.not.have.eslintErrors;
} );
it( 'should fail when 2 spaces are not used for inden... | JavaScript | 0.000003 | @@ -801,18 +801,8 @@
abs'
-, 'indent'
%5D )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.