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 |
|---|---|---|---|---|---|---|---|
4df51546b2bd29a2dd3a5b11eeca80a157f6ffb1 | Remove command log in ebook convert | lib/generate/ebook/index.js | lib/generate/ebook/index.js | var util = require("util");
var path = require("path");
var Q = require("q");
var _ = require("lodash");
var exec = require('child_process').exec;
var fs = require("fs");
var parse = require("../../parse");
var BaseGenerator = require("../page");
/*
* This generator inherits from the single page generator
* and c... | JavaScript | 0.000001 | @@ -1468,39 +1468,8 @@
);%0A%0A
- console.log(command);%0A%0A
|
d303af1e3023b3da09a4359bdc347e01e18469a8 | remove the demo button when clicked | src/coming-soon/demo/index.js | src/coming-soon/demo/index.js |
import '../../polyfill'
import $ from 'jquery'
import co from 'co'
import SamplingMaster from '../../sampling-master'
import readBlob from '../../read-blob'
import ctx from 'audio-context'
import Compiler from 'bms/compiler'
import Timing from 'bms/timing'
import Notes from 'bms/notes'
export function main(element)... | JavaScript | 0.000001 | @@ -1742,24 +1742,50 @@
unction() %7B%0A
+ $(element).remove()%0A
var nu
|
b7f6ed98736b48aedc47cac87f585538792e7a2c | Add gravity. | src/main.js | src/main.js | window.addEventListener('load', main);
function initialWorld(width, height) {
var sheet = new SpriteSheet(document.getElementById('pasi'), 4);
return {
keys: {left: false, right: false},
gamma: 0,
width: width,
height: height,
g: 1,
pasi: new Pasi({
... | JavaScript | 0.000875 | @@ -698,30 +698,16 @@
fps: 20
-,%0A g: 1
%0A %7D;%0A
@@ -1538,16 +1538,46 @@
pasi.vy;
+%0A world.pasi.vy += world.g;
%0A%0A wo
|
04be1b40eb58ae4026a81814aefcbd1dac0863f3 | remove image save from memes create | routes/api/meme.js | routes/api/meme.js | var db = require('../../models');
module.exports.addMeme = function(req, res) {
//TODO create meme
// res.sendStatus(503)
db.meme_texts.create({text:req.body.top}).then(function(top_text) {
db.meme_texts.create({text:req.body.bottom}).then(function(bottom_text) {
db.images.create({filen... | JavaScript | 0 | @@ -294,50 +294,28 @@
-db.images.create(%7Bfilename:req.body.image%7D
+ db.memes.create(
).th
@@ -330,18 +330,18 @@
ion(
-imag
+mem
es) %7B%0A
+%0A
@@ -356,122 +356,164 @@
-db.memes.create(%7Bimage_id:images.id,top_text_id:top_text.id,bottom_text_id:bottom_text.id%7D).then(function(memes) %7B
+ ... |
451f913e7f01f5d28b8dfb215ea550dc76aa2620 | add a hard fetch functino to the cacheables | src/main.js | src/main.js |
/*
* ncksllvn
* a bunch of cool classes for Backbone that I kept finding myself using.
* just include this file after Backbone
*/
~function(){
Backbone.HistoryWith404 = (function(){
var routers = [];
HistoryWith404 = Backbone.History.extend({
loadUrl: (fun... | JavaScript | 0 | @@ -426,17 +426,17 @@
guments)
-,
+;
%0A
@@ -448,19 +448,19 @@
-
+var
fragmen
@@ -1417,15 +1417,36 @@
this
-, %0A
+;%0A var callback;%0A
@@ -1480,34 +1480,8 @@
%7C %7B%7D
-,%0A callback
;%0A
@@ -2388,24 +2388,117 @@
%7D;%0A %0A
+ function hardF... |
40414bf42c88fea14cf8973011bb53ea8e951867 | Update main.js | src/main.js | src/main.js | var MediumEditorMultiPlaceholders = MediumEditor.Extension.extend({
name: 'multi_placeholder',
init: function() {
this.placeholderElements = [];
this.initPlaceholders(this.placeholders, this.placeholderElements);
this.watchChanges();
},
initPlaceholders: function (placeholders, elements) {
t... | JavaScript | 0.000001 | @@ -1388,138 +1388,8 @@
) %7B%0A
- // if one of these element ('img, blockquote, ul, ol') are found inside the given element, we won't display the placeholder%0A
|
981a6de910883594fb96a0fc3a13362ef615ba42 | Allow downloading of hidden apps | routes/download.js | routes/download.js | var express = require('express');
var mongoose = require('mongoose');
var router = express.Router();
const Application = mongoose.model('Application');
const Version = mongoose.model('Version');
const Dependency = mongoose.model('Dependency');
const DependencyVersion = mongoose.model('DependencyVersion');
const escapeS... | JavaScript | 0 | @@ -418,23 +418,8 @@
= %7B
- hidden: false,
nig
@@ -2728,16 +2728,44 @@
+ err);%0A
+%09%09console.error(err.stack);%0A
%09%09res.se
|
7919c64ee0422f1655cc0b013e92a475406e2485 | Add currentUser to public api | server/public/scripts/services/auth.factory.js | server/public/scripts/services/auth.factory.js | app.factory('AuthFactory', ['$http', '$firebaseAuth', function($http, $firebaseAuth){
console.log('AuthFactory running');
var auth = $firebaseAuth();
var currentUser;
var loggedIn = false;
var userStatus = {};
function logIn(userType) {
return auth.$signInWithPopup("google").then(function(firebaseUser... | JavaScript | 0.000001 | @@ -1169,16 +1169,68 @@
erType;%0A
+ userStatus.newUser = response.data.newUser;%0A
@@ -2088,16 +2088,46 @@
Status,%0A
+ currentUser: currentUser,%0A
logI
|
f95a4c97f6902f11f89b1f772fb74bbab3ffcfe3 | use utils.find() (#482) | lib/graph-service-worker.js | lib/graph-service-worker.js | var debug = require('debug')('bankai.graph-service-worker')
var findup = require('@choojs/findup')
var assert = require('assert')
var path = require('path')
var browserify = require('browserify')
var watchify = require('watchify')
var tinyify = require('tinyify')
var brfs = require('brfs')
var ttyError = require('./t... | JavaScript | 0.000002 | @@ -57,47 +57,8 @@
r')%0A
-var findup = require('@choojs/findup')%0A
var
@@ -1075,16 +1075,22 @@
) %7B%0A
+utils.
find(bas
@@ -3171,321 +3171,8 @@
%0A%7D%0A%0A
-function find (rootname, arr, done) %7B%0A if (!arr.length) return done(new Error('Could not find files'))%0A var filename = arr%5B0%5D%0A var new... |
7abd123275cde53317e55bfa78c10d7b6bf9a970 | print x-varnish header | rpc-service/app.js | rpc-service/app.js | var timers = require('timers'),
http = require('http'),
querystring = require('querystring'),
async = require('async'),
express = require('express');
var services = require('./services'),
servicesParser = require('./services/parser');
var app = express(),
argv = require('minimist')(process.argv.... | JavaScript | 0.000001 | @@ -1278,24 +1278,89 @@
n (next) %7B%0A%0A
+ console.log('x-varnish', req.headers%5B'x-varnish'%5D);%0A%0A
|
62ece412f9eff2e427231234a380abf8b79dd47e | add proptypes to context | src/components/ContextMenu.js | src/components/ContextMenu.js | import React from 'react';
import { SprkLink } from '@sparkdesignsystem/spark-react';
import { Link } from 'gatsby';
import classnames from 'classnames';
function ContextMenu({context, setContext, className, autoNav}) {
return (
<div className="docs-context-menu">
<ul className={className}>
<li>
... | JavaScript | 0.000002 | @@ -146,16 +146,52 @@
snames';
+%0Aimport PropTypes from 'prop-types';
%0A%0Afuncti
@@ -206,16 +206,17 @@
xtMenu(%7B
+
context,
@@ -246,16 +246,17 @@
autoNav
+
%7D) %7B%0A r
@@ -396,36 +396,87 @@
nalClasses=%7B
-classnames(%7B
+%0A classnames(%0A %7B%0A
'docs-co... |
8579b2a7788b9b172f9658ea91daf66f31cfeb46 | fix logincontainer styling | src/components/Login/index.js | src/components/Login/index.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { PENDING } from 'constants';
import Loader from 'components/Loader';
import styled from 'styled-components';
import LoginButton from './LoginButton';
const Wrapper = styled.div`
width: 100vw;
height: 100vh;
display: flex;
... | JavaScript | 0.000001 | @@ -152,16 +152,53 @@
oader';%0A
+import %7B prop %7D from 'styled-tools';%0A
import s
@@ -225,24 +225,24 @@
omponents';%0A
-
import Login
@@ -441,35 +441,26 @@
ound: $%7Bprop
-s =%3E props.
+('
theme.colors
@@ -477,17 +477,20 @@
ckground
-%7D
+')%7D;
%0A color
@@ -501,19 +501,10 @@
prop
-s =%3E props.
+('
t... |
0fad53e5caca31c420c0b73f1dd96176e55b7ce1 | allow env var for public key | src/main.js | src/main.js | "use strict";
const express = require("express");
const app = express();
const jwt = require("express-jwt");
const fs = require("fs");
const path = require("path");
const secret = fs.readFileSync(path.resolve("ookla-extracts.pem"));
app.use(jwt({ secret, algorithms: ["RS256"] }));
app.get("/", (req, res) => {
res.s... | JavaScript | 0.000001 | @@ -168,33 +168,18 @@
nst
-secret = fs.readFileSync(
+keypath =
path
@@ -208,16 +208,158 @@
ts.pem%22)
+;%0A%0Alet secret;%0Afs.access(keypath, fs.constants.R_OK, (err) =%3E %7B%0A secret = err ? secret = fs.readFileSync(keypath) : process.env.PUBLIC_KEY;%0A%7D
);%0A%0Aapp.
|
6b49a7a15a0e6a41936a1b79aae3ff00657bfd56 | Use optimisticResponse as a function | src/main.js | src/main.js | import RQL from "react-relay/lib/RelayQL"
import RelayQuery from "react-relay/lib/RelayQuery"
import RelayMetaRoute from "react-relay/lib/RelayMetaRoute"
import RelayStore from "react-relay/lib/RelayStore"
import RelayStoreData from "react-relay/lib/RelayStoreData"
import RelayDefaultNetworkLayer from "react-relay/lib/... | JavaScript | 0.000106 | @@ -3442,38 +3442,56 @@
Configs() %7B%0A
-return
+const %7Bctx, variables%7D =
this.releiOpts.
@@ -3493,17 +3493,20 @@
Opts
-.configs(
+%0A return
this
@@ -3517,18 +3517,37 @@
eiOpts.c
-tx
+onfigs(ctx, variables
)%0A %7D%0A%7D%0A
@@ -3687,24 +3687,68 @@
esponse() %7B%0A
+ const %7Bctx, variables%7D ... |
c94a91f2ff0e02a1a17da5d8fc458c45f71fd635 | Add menu option to disable #gifbar hashtag. | src/main.js | src/main.js | var path = require('path');
var events = require('events');
var fs = require('fs');
var electron = require('electron');
var app = electron.app;
var Tray = electron.Tray;
var Menu = electron.Menu;
var globalShortcut = electron.globalShortcut;
var BrowserWindow = electron.BrowserWindow;
global.sharedObject = {
hide... | JavaScript | 0 | @@ -319,24 +319,51 @@
deNSFW: true
+,%0A includeHashTag: true,
%0A%7D;%0A%0Avar ext
@@ -6039,32 +6039,385 @@
%7B%0A
+ label: 'Append #gifbar on copy',%0A type: 'checkbox',%0A checked: global.sharedObject.includeHashTag,%0A c... |
121cbd6ee87d99dbcfcad490955733438d2fd26e | Fix incorrect use of $.extend() | modules/ui/mw.echo.ui.ActionMenuPopupWidget.js | modules/ui/mw.echo.ui.ActionMenuPopupWidget.js | ( function () {
/**
* Action menu popup widget for echo items.
*
* We don't currently have anything that properly answers the complete
* design for our popup menus in OOUI, so this widget serves two purposes:
* 1. The MenuSelectWidget is intended to deliver a menu that relates
* directly to its anchor, ... | JavaScript | 0.001194 | @@ -1401,18 +1401,8 @@
get(
- $.extend(
%7B%0A%09
@@ -1601,18 +1601,16 @@
this%0A%09%09%7D
- )
);%0A%09%09th
|
0003d73413199922e94bc420f19a8d84f5a7dc2c | Add placeholder. | src/CardNumberInput.js | src/CardNumberInput.js | import React from 'react';
import InputMask from 'inputmask-core';
const ENTER_KEY = 'Enter';
const BACKSPACE_KEY = 'Backspace';
const KEYCODE_Y = 89;
const KEYCODE_Z = 90;
class CardNumberInput extends React.Component {
constructor() {
super();
this.state = {
isValid: false,
text... | JavaScript | 0 | @@ -173,16 +173,53 @@
Z = 90;%0D
+%0Aconst PATTERN = '11-1111-11-11111';%0D
%0A%0D%0Aclass
@@ -729,34 +729,23 @@
attern:
-'11-1111-11-11111'
+PATTERN
,%0D%0A
@@ -4444,16 +4444,64 @@
%22text%22%0D%0A
+ placeholder=%7BPATTERN.replace(/1/g, 'X')%7D%0D%0A
si
|
f9c15ef6b639b32a04c9b717eacf9dfab94a65c6 | Fix click from inside to outside for modal backdrop | src/components/modal/Modal.js | src/components/modal/Modal.js | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import cx from 'classnames';
import findNodeHandle from 'react-native-web/dist/cjs/exports/findNodeHandle';
import ModalContext from './ModalContext';
import ModalBody from './ModalBody';
import ModalFooter from './ModalFoo... | JavaScript | 0 | @@ -5,16 +5,28 @@
rt React
+, %7B useRef %7D
from 'r
@@ -1113,16 +1113,104 @@
Toggle);
+%0A const waitingForMouseUp = useRef(false);%0A const ignoreBackdropClick = useRef(false);
%0A%0A // R
@@ -2073,24 +2073,76 @@
if (
+%0A ignoreBackdropClick.current %7C%7C%0A
event.target
@@ -214... |
ad8b3d5cb24784d3c9e461365309ad38b20faaa0 | Update mariogolf.min.js | js/mariogolf.min.js | js/mariogolf.min.js | (function(w,u){w.MarioGolf=function(c){var t=[],S=SyntaxError,m={c:c,R:'',i:'',s:[],r:{R:0,I:0,P:0,L:0,Z:0},v:{},o:''},R=function(B){};if(!c||!c.match(/(?:^|[\r\n])([MLPBTYK]+)\|(?:(.*)\|)?([OQ|\-1RNM])(?:$|[\r\n])/))throw new S('Expecting identifier, got '+(c?'invalid program':'0-length code')+'.','code',0);else if((t... | JavaScript | 0 | @@ -615,15 +615,18 @@
urn
+m.R=
R(m.c)
-;
%7D,ge
@@ -653,17 +653,16 @@
turn m.s
-;
%7D,getRet
@@ -686,17 +686,16 @@
turn m.R
-;
%7D,getVar
@@ -717,17 +717,16 @@
turn m.v
-;
%7D,getOut
@@ -750,17 +750,16 @@
turn m.o
-;
%7D%7D%7D;%7D)(%5B
@@ -802,10 +802,9 @@
is;')())
-;
%0A
|
8201874e3f3ec2139c3a8d1d7a0d0711526ae7af | Update gpioctrl | libs/gpioctrl.js | libs/gpioctrl.js | /*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | JavaScript | 0.000001 | @@ -1077,16 +1077,39 @@
e = null
+%0A this.prev_value = -1
%0A%0A if (
@@ -1526,16 +1526,154 @@
%7D%0A%0A
+ if (self.prev_value === value) %7B%0A console.log('ignore invalid input')%0A return%0A %7D%0A%0A self.prev_value = value%0A%0A
if
|
0c9ba236f42ab99489863256ca9dcded069508c0 | Call code generation stub | backend.js | backend.js | // takes an IR function object and returns a list of Scratch blocks
module.exports.compileFunction = function(func) {
console.log("Compiling "+JSON.stringify(func)+"...");
var blockList = [];
// add a procdef
var spec = func.funcName;
var inputs = [];
var defaults = [];
for(var i = 0; i < func.paramList.len... | JavaScript | 0 | @@ -673,24 +673,117 @@
c.code%5Bi%5D);%0A
+%09%09if(code%5Bi%5D.type == %22call%22) %7B%0A%09%09%09// calling a (potentially foreign) function%0A%09%09%09// stub%0A%09%09%7D%0A
%09%7D%0A%0A%09return
|
f9ae66f837cf3958584ffd664252dac1e65c2887 | modify logic. @liushaobo2005@163.com | src/containers/test/QATest.js | src/containers/test/QATest.js | /**
* @Author: liushaobo2005@163.com
* @Date: 2017.3.1 下午 3:33
* @Desc: 公共组件 - QATest
* @Name: QATest.js
* @LifeCycle:http://www.tuicool.com/articles/nu6zInB
*/
import React, {Component, PropTypes} from "react";
import {Dimensions, ListView, StyleSheet, Text, View} from "react-native";
import {Actions} from "rea... | JavaScript | 0.000009 | @@ -2282,16 +2282,18 @@
+//
let isUp
@@ -2351,24 +2351,72 @@
nextState);%0A
+ let isUpdate = this.state != nextState;%0A
cons
|
9ff086fb8e16bd966ce6b1e4882aa09bf9192de3 | change session variable | IssueTrackingSystem/app/template/user/userController.js | IssueTrackingSystem/app/template/user/userController.js | (function () {
"use strict";
IssueTrackingSystem.controller('User', ['$scope', '$location', 'authentication', '$sessionStorage',
function ($scope, $location, authentication, $sessionStorage) {
$scope.loginUserInSystem = function (user) {
authentication.loginUser(user)
... | JavaScript | 0.000001 | @@ -483,24 +483,29 @@
loggedUser.
+data.
access_token
@@ -566,24 +566,29 @@
loggedUser.
+data.
token_type;%0A
@@ -631,16 +631,20 @@
age.user
+name
= logge
@@ -645,24 +645,29 @@
loggedUser.
+data.
userName;%0A
@@ -697,32 +697,37 @@
location.path('/
+login
');%0A
@@ -1052,16 +1052,21 @@
redUs... |
19f60c48324a7454bfa127a623d638464c91632e | discard small images, less than 128 width or height | js/processImages.js | js/processImages.js |
var IMAGES = new Array(0);
/******************************************************************************/
function printImageSize(url, imageOverlay) {
var image = new Image();
image.name = url;
image.src = url;
image.onload = function() {
var size = this.width + 'x' + this.height;
... | JavaScript | 0 | @@ -113,34 +113,56 @@
unction
-printImageSize(url
+onloadAddToOverlayImageSize(imageWrapper
, imageO
@@ -167,16 +167,21 @@
eOverlay
+, url
) %7B%0A
@@ -240,32 +240,37 @@
mage.src = url;%0A
+ %0A
image.onload
@@ -281,24 +281,255 @@
unction() %7B%0A
+ var minimumSize = 128;%0A if(... |
20493c549aa8f93d272375852899e69f669c5b21 | Reverted to 9a49a6f7e6dbdad6d07ab6850847a9d254eeccb6 | js/types/TNumber.js | js/types/TNumber.js | // Copyright 2016, University of Colorado Boulder
/**
*
* @author Sam Reid (PhET Interactive Simulations)
* @author Andrew Adare
*/
define( function( require ) {
'use strict';
// modules
var assertTypeOf = require( 'PHET_IO/assertions/assertTypeOf' );
var phetioNamespace = require( 'PHET_IO/phetioNamespac... | JavaScript | 0.998455 | @@ -1355,225 +1355,31 @@
ity,
- // TODO: remove min and max in favor of keeping range only%0A max: Infinity,%0A range: new Range( -Infinity, Infinity ), // No defaultValue%0A stepSize: null, // This will be used for slider increments
+%0A max: Infinity,
%0A
@@ -1498,75 +1498,8 @@
,8%5D... |
890d25e8f9b483e0ff3fab4af5d1c244ae00e32c | Add decodeDict, all tests pass | bencode.js | bencode.js | /* Future possibilities:
* It would be cool if this thing
* actually emitted pieces of bdecoded
* shit along the way. eg, the
* torrent client could listen for the infohash
* key, name key, and update its internal
* data while it's still parsing the rest
* of the file.
*
* This would also allow only one copy o... | JavaScript | 0 | @@ -2838,16 +2838,627 @@
ise;%0A%7D%0A%0A
+function decodeDict(str, ndx) %7B%0A var deferred = Q.defer();%0A //assert(str%5Bndx%5D == 'd')%0A ndx++; //d%0A var dict = %7B%7D;%0A async.whilst(%0A function() %7B%0A return str%5Bndx%5D !== 'e';%0A %7D,%0A function(cb) %7B%0A decodeElement(str, ndx... |
0cd1962fe040cbb2035aab186401e7d8296f7afc | fix live cat | bin/cat.js | bin/cat.js | var stdout = require('stdout-stream')
var multistream = require('multistream')
var eos = require('end-of-stream')
module.exports = function(dat, opts, cb) {
if (!opts) opts = {}
if (!opts.f && !opts.json) opts.json = true
var readStream = dat.createReadStream(opts)
if (opts.live) {
var changes = dat.crea... | JavaScript | 0.000003 | @@ -106,16 +106,112 @@
stream')
+%0Avar through = require('through2')%0Avar ldj = require('ldjson-stream')%0Avar pump = require('pump')
%0A%0Amodule
|
9c6ab78be95eb1f40361e286d95f358eaf430237 | Refactor nuts.js for new refactored apiFactories | src/nuts.js | src/nuts.js | 'use strict'
// Resolve document
// - extract template tags from html document
// - add templates into schemas archive
// - add filters into filters archive
// - add behaviours into behaviours archive
// - set behaviours into templates
// - make partials (with extend.js)
// - retrieve data from regular html and gener... | JavaScript | 0 | @@ -361,129 +361,28 @@
ort
-%7B%0A addTemplatesFactory,%0A addBehaviourFactory,%0A addFiltersFactory,%0A addFilterFactory,%0A setBehavioursFactory%0A%7D
+apiFactories
from '.
/api
@@ -377,16 +377,21 @@
from '.
+./src
/api-fac
@@ -677,115 +677,44 @@
let
-addTemplates = addTemplatesFactory(schemas, next),%... |
b2951b8d70c717d05921526e8b84e9c8307131f2 | Use cluestr token. | lib/provider-google-contact/handlers/upload.js | lib/provider-google-contact/handlers/upload.js | 'use strict';
var request = require('request');
var async = require('async');
var retrieve = require('../helpers/retrieve.js');
var Token = require('../models/token.js');
var config = require('../../../config/configuration.js');
var CluestrOauth = require('../helpers/cluestr-oauth.js');
var cluestrOauth = new Cluestr... | JavaScript | 0 | @@ -1756,10 +1756,26 @@
ts,
-''
+token.cluestrToken
, fu
|
2540243a15d8db5770507df84aeabfddb4b253bc | Add logging in case pass invocation fails. | src/pass.js | src/pass.js | "use strict";
const { spawn } = require("sdk/system/child_process");
const { env } = require('sdk/system/environment');
module.exports = {
/**
* Test if the pass utility is installed and configured.
*
* @returns Promise - A promise that resolves if the utility is in use,
* rejects otherwise.
*/
isA... | JavaScript | 0 | @@ -1650,16 +1650,216 @@
else %7B%0A
+ console.error(%22pass exited with code %22 + status);%0A console.log(%22stdout:%22);%0A console.log(stdout);%0A console.log(%22stderr:%22);%0A console.log(stderr);%0A
|
65ca6012c16f532406213fd4450ec470280772d4 | clean up cli | bin/cli.js | bin/cli.js | #!/usr/bin/env node
var path = require('path');
var utils = require('../lib/utils');
var Env = require('../lib/env');
// parse argv (TODO: yargs!)
var argv = require('minimist')(process.argv.slice(2), {
alias: {
help: 'h',
verbose: 'v'
}
});
/**
* Run generate
*/
function run(cb) {
var baseEnv = cre... | JavaScript | 0 | @@ -669,24 +669,33 @@
null;%0A%0A //
+ If true,
we have an
@@ -854,35 +854,32 @@
'base', base
-.fn
, env);%0A
app.pare
@@ -870,36 +870,22 @@
v);%0A
+%0A
- app.parent = base;%0A%0A //
+// If true,
we
@@ -1023,41 +1023,15 @@
base
-.fn
, env);
-%0A app.parent = base;
%0A%0A
@@ -1196,59 +1196... |
5d9d93f86d3b5e67b136891f3fab29e6a1f2e8ce | command line program output valid JSON | bin/cmd.js | bin/cmd.js | #!/usr/bin/env node
var fs = require('fs')
var parseTorrent = require('../')
function usage () {
console.error('Usage: parse-torrent /path/to/torrent')
}
var torrentPath = process.argv[2]
if (!torrentPath) {
return usage()
}
try {
var parsedTorrent = parseTorrent(fs.readFileSync(torrentPath))
} catch (err) {... | JavaScript | 0.999817 | @@ -434,22 +434,52 @@
ole.
-dir(parsedTorrent
+log(JSON.stringify(parsedTorrent, undefined, 2)
)
|
2df6e68dc3b28153070a627ff1f2332d971d8427 | Standardify cmd.js | bin/cmd.js | bin/cmd.js | #!/usr/bin/env node
var opts = require('../options.js')
require('standard-engine').cli(opts)
process.on('exit', function (status) {
if (status === 0) {
console.log(require('fs').readFileSync(__dirname + '/../seal.ans').toString())
}else{
console.log('The president cannot endorse this code.')
}
})
| JavaScript | 0.999903 | @@ -239,12 +239,14 @@
%0A %7D
+
else
+
%7B%0A
|
09586f1bdaa050e484f8a4068bf2e0d49faccb50 | Fix getter and setter to use object instead of D3 map. | src/plot.js | src/plot.js | /*
* Generic plot class to hold attributes and allow the creation of concrete
* plots from a single set of data and parameters.
*
*/
viz.Plot = function(data, attrs) {
// TODO Track the type of data?
if (data === undefined) {
throw "missing parameter: data";
}
if (attrs === undefined) {
... | JavaScript | 0 | @@ -1552,18 +1552,17 @@
attr
-.set(a, v)
+s%5Ba%5D = v;
%0A
@@ -1643,15 +1643,11 @@
ttrs
-.get(a)
+%5Ba%5D
;%0A
|
cb7b61f9d3f1cf15e0a6d4e9f5905ebb11786660 | Fix post attachment | src/post.js | src/post.js | import moment from 'moment'
export function postAttachment (post, extended) {
let {
commentsCount,
postLikesCount,
spoiler,
nsfw,
createdAt,
editedAt,
user,
targetUser,
targetGroup,
media
} = post
let text = ''
let fields = []
let title_link = process.env.KITSU_HOST +... | JavaScript | 0 | @@ -392,24 +392,25 @@
rgetUser ? %60
+
to $%7BtargetU
@@ -451,16 +451,17 @@
roup ? %60
+
to $%7Btar
@@ -746,135 +746,379 @@
'%0A
+%7D%0A%0A
if (
-media) %7B%0A text += %60 - %3Chttps://kitsu.io/$%7Bmedia.type%7D/$%7Bmedia.slug%7D%7C$%7Bmedia.canonical
+!spoiler && !nsfw && post.content) %7B%0A text ... |
ddd49d0111e5ef1a645aee7b3101c6569b366351 | Improve CLI | bin/cli.js | bin/cli.js | #!/usr/bin/env node
var blake = require('../lib/blake.js')
;(function () {
var arg = process.argv.splice(2)
, isValid = !(arg && arg.length >= 2)
if (isValid) {
return console.error('Usage: blake source_directory target_directory [source_file ...]');
}
var source = arg.shift()
, target = arg.s... | JavaScript | 0.000004 | @@ -272,109 +272,43 @@
%0A
-var source = arg.shift()%0A , target = arg.shift()%0A , files = arg%0A%0A%0A blake(source, target, files
+blake(arg.shift(), arg.shift(), arg
, fu
@@ -378,22 +378,16 @@
le.log('
-blake
OK')%0A %7D
@@ -413,24 +413,24 @@
on (item) %7B%0A
+
console.
@@ -437,26 +437,8 @@
l... |
ca117fa990fdce0863ffbd9ffa52b2c9afc284d4 | validate all translations exist | modules/gui-react/frontend/config-overrides.js | modules/gui-react/frontend/config-overrides.js | module.exports = function override(config, env) {
// const fs = require('fs')
// const _ = require('lodash')
// const flat = require('flat')
// const locales = fs.readdirSync('src/locale').filter((name) => /^[^\\.]/.test(name))
// const messages = {}
//
// locales.map((locale) =>
// ... | JavaScript | 0.000298 | @@ -777,16 +777,664 @@
()%0A %0A
+ const fs = require('fs')%0A const _ = require('lodash')%0A const flat = require('flat')%0A const locales = fs.readdirSync('src/locale').filter((name) =%3E /%5E%5B%5E%5C%5C.%5D/.test(name))%0A %0A const keys = _.chain(locales)%0A .map((locale) =%3E require(... |
5919c08b761629e411b39b4ea648e77e63a1dde9 | Update text.js | src/text.js | src/text.js | (function(Two) {
var root = this;
var getComputedMatrix = Two.Utils.getComputedMatrix;
var _ = Two.Utils;
var canvas = (root.document ? root.document.createElement('canvas') : { getContext: _.identity });
var ctx = canvas.getContext('2d');
var Text = Two.Text = function(message, x, y, styles) {
Two.... | JavaScript | 0.000002 | @@ -25,19 +25,99 @@
root = t
-his
+ypeof window != 'undefined' ? window : typeof global != 'undefined' ? global : null
;%0A var
|
36a48a4f32629e3b283a44ec4ea8af91194f7d48 | Add partition function. | src/udon.js | src/udon.js | Udon = (typeof Udon === 'undefined') ? {} : Udon;
Udon.foldl = function(fn, z, xs) {
var len = xs.length, i;
for (i = 0; i < len; i++) z = fn(z, xs[i]);
return z;
};
Udon.foldr = function(fn, z, xs) {
var i = xs.length;
while (i--) z = fn(xs[i], z);
return z;
};
Udon.map = function(fn, xs) {
... | JavaScript | 0.000001 | @@ -575,24 +575,226 @@
urn ys;%0A%7D;%0A%0A
+Udon.partition = function(fn, xs) %7B%0A var ts = %5B%5D, fs = %5B%5D, len = xs.length, i, e;%0A for (i = 0; i %3C len; i++) %7B%0A e = xs%5Bi%5D;%0A (fn(e) ? ts : fs).push(e);%0A %7D%0A return %5Bts, fs%5D;%0A%7D;%0A%0A
Udon.unfoldr
|
ae1f5c9e67920fe1f4b76e87493a2e822e872c9e | Check for primitiveness before attempting to define a property | src/util.js | src/util.js | "use strict";
var global = require("./global.js");
var ASSERT = require("./assert.js");
var es5 = require("./es5.js");
var haveGetters = (function(){
try {
var o = {};
es5.defineProperty(o, "f", {
get: function () {
return 3;
}
});
return o.f =... | JavaScript | 0 | @@ -3279,24 +3279,62 @@
e, value) %7B%0A
+ if (isPrimitive(obj)) return obj;%0A
var desc
|
2170ae38de7eac67e28765844b8e511650a3d755 | revert revivier | src/util.js | src/util.js | import CircularJSON from 'circular-json-es6'
function cached (fn) {
const cache = Object.create(null)
return function cachedFn (str) {
const hit = cache[str]
return hit || (cache[str] = fn(str))
}
}
var classifyRE = /(?:^|[-_\/])(\w)/g
export const classify = cached((str) => {
return str.replace(class... | JavaScript | 0.000001 | @@ -1145,109 +1145,8 @@
data
-, (k, v) =%3E %7B%0A if (v === UNDEFINED) %7B%0A return undefined%0A %7D else %7B%0A return v%0A %7D%0A %7D
)%0A%7D%0A
|
bc2d25c3f39c9e5167098abef24d5dc99a32a01b | write test for getAttendees function | getAttendees/solution.js | getAttendees/solution.js | JavaScript | 0 | @@ -0,0 +1,474 @@
+function getAttendees(peopleInvited, responses)%7B%0A %0A%7D%0A%0A%0A%0A// test%0Avar people = %5B'Easter Bunny', 'Tooth Fairy', 'Frosty the Snowman', %0A 'Jack Frost', 'Cupid', 'Father Time'%5D;%0Avar responses = %5B %0A %7Bname: 'Easter Bunny', response: 'declined'%7D, %0A %7B... | |
c1a819259c8a7b218ef8fdb0de597e325d340259 | Fix manifest task logging | lib/tasks/ManifestTask.js | lib/tasks/ManifestTask.js | var inherits = require('util').inherits,
Task = require('./Task'),
gulp = require('gulp'),
manifest = require('gulp-manifest'),
Promise = require('bluebird');
var ManifestTask = function (buildHelper) {
Task.call(this, buildHelper);
};
inherits(ManifestTask, Task);
ManifestTask.prototype.command ... | JavaScript | 0.000195 | @@ -528,24 +528,31 @@
olve();%0A
+return
gulp.src(thi
|
f72c6d7f98e25a6daf8fb9c19c43c0ed2c0b47b2 | Change event name | lib/jquery.imagesequence.js | lib/jquery.imagesequence.js | var ImageSequence = function (target, options) {
target.imagesequence = this;
this.target = target;
this.src = options.src;
this.width = options.width;
this.height = options.height;
this.image = new Image();
this.step = 1;
this.loop = false;
this.running = false;
if (options.loop) {
this.loop ... | JavaScript | 0.000134 | @@ -521,26 +521,25 @@
ar animation
--e
+E
nded = new E
|
47424588d6fc75cc67cf17d3456bedf5c868d380 | Fix module path in shared data (#3556) | shared-data/js/modules.js | shared-data/js/modules.js | // @flow
import moduleSpecs from '../module/schemas/1.json'
export type ModuleType = 'magdeck' | 'tempdeck'
// use a name like 'magdeck' to get displayName for app
export function getModuleDisplayName(name: ModuleType): string {
const displayName = moduleSpecs[name].displayName
return displayName
}
| JavaScript | 0 | @@ -41,14 +41,18 @@
ule/
-schema
+definition
s/1.
|
cb142102fd6753d3b0705829a3dbec8afbb4d481 | Update generateUUID to match latest version in StackOverflow | lib/utils/generateUUID.js | lib/utils/generateUUID.js | // Maybe look into a more legit solution later
// node-uuid doesn't work with old IE's
// Source: http://stackoverflow.com/a/8809472
module.exports = function generateUUID () {
var d = new Date().getTime()
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (d + Math.random... | JavaScript | 0 | @@ -201,16 +201,171 @@
tTime()%0A
+ if (global.performance && typeof global.performance.now === 'function') %7B%0A d += global.performance.now() // use high-precision timer if available%0A %7D%0A
var uu
@@ -548,17 +548,17 @@
(r & 0x
-7
+3
%7C 0x8))
|
f360011cd0bcfbee7d9df0e470326ae93f34c9d2 | fix for sql attacks on column names | sequel/lib/utils.js | sequel/lib/utils.js | /**
* Helper functions
*/
var _ = require('lodash');
// Module Exports
var utils = module.exports = {};
/**
* Safe hasOwnProperty
*/
utils.object = {};
/**
* Safer helper for hasOwnProperty checks
*
* @param {Object} obj
* @param {String} prop
* @return {Boolean}
* @api public
*/
var hop = Object.prototype.has... | JavaScript | 0 | @@ -602,42 +602,290 @@
%7B%0A
-return '' + escapeCharacter + name
+var regex = new RegExp(escapeCharacter, 'g');%0A var replacementString = '' + escapeCharacter + escapeCharacter;%0A var replacementDot = '' + escapeCharacter + '.' + escapeCharacter;%0A return '' + escapeCharacter + name.replace(regex, replacement... |
ff50875e7eef36d719251c72b71f495971e51b90 | Fix saml.js for #905 | server/auth/saml.js | server/auth/saml.js | var passport = require('passport');
var SamlStrategy = require('passport-saml').Strategy;
var SAML = require('passport-saml').SAML;
var fs = require('fs');
var logger = require("../utils/logger");
var path = require('path');
var setCredentials = function () {
var entitiesJSON = global.saml_config;
for (key in ... | JavaScript | 0.000005 | @@ -3723,16 +3723,54 @@
%5D%5D %7C%7C ''
+,%0A providerKey: key
%0A
|
5bdf9ada301fd2a3d17d9f27352220429bc79753 | add some made up data | Topics/Checklists/checklists/checklist1.js | Topics/Checklists/checklists/checklist1.js | [1,"Pre-pilot"],
[2,"Are the conceptual / structural issues identified in the early questionnaire design process sufficiently explored?"],
[2,"How might the composition of the focus (gender, age, religion, caste/socioeconomic status) affect responses?"],
[2,"Try to get at how potential respondents ... | JavaScript | 0.000105 | @@ -1,543 +1,104 @@
%5B1,%22
-Pre-pilot%22%5D,%0A %5B2,%22Are the conceptual / structural issues identified in the early questionnaire design process sufficiently explored?%22%5D,%0A %5B2,%22How might the composition of the focus (gender, age, religion, caste/socioeconomic status) affect responses?%22%5D,%... |
773f5a792127f705c4d1eace26a3c588650102c5 | convert console logs to embark logger and this baby is ready to rock | lib/modules/fuzzer/index.js | lib/modules/fuzzer/index.js | const utils = require('web3-utils');
const _ = require('underscore');
// generates random inputs based on the inputs of an ABI
class ContractFuzzer {
constructor(embark) {
//this.abi = abi;
this.embark = embark;
this.logger = embark.logger;
this.events = embark.events;
this.registerConsoleComma... | JavaScript | 0 | @@ -502,24 +502,47 @@
contract) %7B%0A
+ const self = this;%0A
let fuzz
@@ -780,39 +780,8 @@
me;%0A
- console.log(%22name%22);%0A
@@ -850,59 +850,8 @@
e);%0A
- console.log(%22INPUT TYPES:%22, inputTypes);%0A
@@ -937,308 +937,120 @@
-console.log(%22FUZZED INPUTS:%22, fuzzed... |
454a186199a943593144b09bb10edef5e8620013 | Delete one proofreader activity | src/scripts/services/v2/proofreaderActivity.js | src/scripts/services/v2/proofreaderActivity.js | 'use strict';
/* Usage:
*
* ProofreaderActivity.get(id).then(function (proofreaderActivity) {
* return proofreaderActivity.getRules();
* }).then(function (rules) {
* // do something here
* });
*
*/
module.exports =
angular.module('quill-grammar.services.firebase.proofreaderActivity', [
'firebase',
'unde... | JavaScript | 0.000001 | @@ -1809,16 +1809,275 @@
;%0A %7D;%0A%0A
+ /*%0A * Delete one Proofreader Activity from Firebase%0A */%0A ProofreaderModel.deleteByIdFromFB = function (id) %7B%0A return $firebaseObject(ProofreaderModel.ref).$loaded().then(function (pas) %7B%0A pas%5Bid%5D = null;%0A return pas.$save();%0A %7D);... |
f1b5d8ccce0de3da962a7517bb076e16e571efa7 | Fix the bug when caller jump to browser in launchApp() | src/sectv-tizen/applicationProxy.js | src/sectv-tizen/applicationProxy.js | 'use strict';
module.exports = {
exit: function (success, fail, args) {
tizen.application.getCurrentApplication().exit();
},
launchApp: function (success, fail, args) {
try {
var paramAppId = args[0].appId;
var paramData = args[0].data;
var appCtrlDataAry... | JavaScript | 0.000002 | @@ -523,29 +523,393 @@
-var a
+if(paramAppId == 'org.tizen.browser') %7B // Jump to browser%0A var browserAppCtrl = new tizen.ApplicationControl(null, (appCtrlDataAry%5B0%5D.value)%5B0%5D, null, null, appCtrlDataAry);%0A tizen.application.launchAppControl(browserAppCtrl, para... |
1de16b0d58273ce1b1d6a4078b1a28073e00b9a6 | Remove use of ternary operator | src/server/services/updateMeters.js | src/server/services/updateMeters.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/. */
const _ = require('lodash');
const Meter = require('../models/Meter');
const Reading = require('../models/Reading'... | JavaScript | 0.00022 | @@ -1037,20 +1037,18 @@
%09%09%09%09
-cons
+le
t uri =
err.
@@ -1043,16 +1043,47 @@
t uri =
+'%5BNO URI AVAILABLE%5D';%0A%09%09%09%09%09if (
err.opti
@@ -1104,9 +1104,10 @@
ned
-?
+&&
err
@@ -1123,31 +1123,60 @@
uri
-: '%5BNO URI AVAILABLE%5D';
+!== undefined) %7B%0A%09%09%09%09%09%09uri = err.options.uri;... |
6cb1b9c9638b1027e8c3113c80e4804ca61a4f6a | Update login.controller.js | SmallBI_FrontEnd2/app/scripts/login/login.controller.js | SmallBI_FrontEnd2/app/scripts/login/login.controller.js |
(function () {
'use strict';
angular.module('SmallBIApp')
.controller('loginController', loginController);
function loginController(AuthService) {
var vm = this;
vm.dadosLogin = {};
angular.extend(vm, {
login: login
});
function login() {
AuthService.signin(vm.dadosLogin).... | JavaScript | 0.000001 | @@ -341,57 +341,55 @@
on (
+result
) %7B%0A
-%0A
-%7D, function () %7B%0A%0A %7D);%0A %7D%0A%0A
+ console.log(result);%0A %7D,
fun
@@ -394,24 +394,16 @@
unction
-activate
() %7B%0A%0A
@@ -408,26 +408,19 @@
-%7D%0A%0A activate();
+ %7D);%0A %7D
%0A %7D
|
5ef0db4821584e1fe555904809839de97ddeee5a | test stack methods | javascript/basics/stacks.js | javascript/basics/stacks.js | JavaScript | 0.000001 | @@ -0,0 +1,1770 @@
+// Stacks%0A%0A/*%0AStack is an ordered collection of itmes that follows LIFO (last in first out)%0Aprinciple. The addition of new items andthe removal of existing items%0Aoccurs at the same end.%0A%0AThe end of the stack is known as the top and the opposite is known as the base%0A%0ANewest element... | |
36b69ad667b3930b4ac6f8cd60dba9ef468d84e8 | allow hidden inputs | javascript/display_logic.js | javascript/display_logic.js | (function($) {
//$.entwine('ss', function($) {
$('.field').entwine({
getFormField: function() {
return this.find('[name='+this.getFieldName()+']');
},
getFieldName: function() {
return this.attr('id');
},
getFieldValue: function() {
return this.getFormField().val();
},
evaluateEqualTo: fun... | JavaScript | 0.000001 | @@ -317,32 +317,35 @@
function(val) %7B
+%09%09%09
%0A%09%09%09return this.
@@ -3125,16 +3125,53 @@
r :text,
+ .field.display-logic-master :hidden,
.field.
|
1dd94d3d6af38f82e0a4f491d1d0ed5ace7b8586 | remove spacing | src/data/generate-timeline.js | src/data/generate-timeline.js | var fs = require('fs');
var db = require('../db/content-provider');
var timelineUtils = require('../utils/timeline-utils');
var generateTimelineCommits = function(outputFilename) {
db.loadDatabase({}, function() {
var commits = db.getCollection('commits');
var githubCommits = timelineUtils.getComm... | JavaScript | 0.032069 | @@ -13,25 +13,24 @@
uire('fs');%0A
-%0A
var db = req
|
1c7865498777bc1b7de0dfb76bd16c0d1bf25d12 | fix text format (integration tests) | test/integration/features/step_definitions/view.js | test/integration/features/step_definitions/view.js | 'use strict';
module.exports = function () {
this.World = require('../support/world.js').World;
this.Given(/^я нахожусь на экране "([^"]*)"$/, function (viewName) {
var that = this;
return this.driver.findElement(this.by.xpath(this.selectors.XPATH.View.self(viewName))).then(function (element) ... | JavaScript | 0.000001 | @@ -1975,20 +1975,23 @@
-text
+message
= that.
|
49304b081643bd0cb72ef7b394df8f3795907d94 | Return array of blocks from convertInlines(). | lib/reader/markdown-json.js | lib/reader/markdown-json.js | var assert = require('assert');
module.exports = function parse(str) {
var json = JSON.parse(str);
assert(json.shift() === "MARKDOWN");
var blocks = convertBlocks(json, 0);
return ['text'].concat(blocks);
};
var convertBlocks = function(blocks, level) {
var result = [];
blocks.forEach(function(block) {
... | JavaScript | 0 | @@ -420,42 +420,17 @@
sult
-.push(%5B'para', %7B 'level': level %7D%5D
+ = result
.con
@@ -445,33 +445,39 @@
ertInlines(block
-)
+, level
));%0A brea
@@ -713,42 +713,184 @@
-result.push(%5B'heading', %7B '
+var convertedBlocks = convertInlines(block, level);%0A assert(convertedBlocks.length %3E ... |
62869c145e117b328ab281459792c5a94ee244fc | Add schema to `global-require` rule (fixes #3923) | lib/rules/global-require.js | lib/rules/global-require.js | /**
* @fileoverview Rule for disallowing require() outside of the top-level module context
* @author Jamund Ferguson
* @copyright 2015 Jamund Ferguson. All rights reserved.
*/
"use strict";
var ACCEPTABLE_PARENTS = [
"AssignmentExpression",
"VariableDeclarator",
"MemberExpression",
"ExpressionStat... | JavaScript | 0 | @@ -895,8 +895,36 @@
%7D;%0A%7D;%0A%0A
+module.exports.schema = %5B%5D;%0A
|
b95471370c3434ee262a91e415976b734b45a3ec | build list view: add link to vsc url | public/app/builds/builds.list-controller.js | public/app/builds/builds.list-controller.js | 'use strict';
angular.module('OpenTMIControllers')
.controller('BuildListController',
['$scope', 'Builds', '$stateParams', '$log',
function ($scope, Builds, $stateParams, $log) {
$log.info('init BuildListController')
var linkCellTemplate = '<div class="ngCellText" ng-cla... | JavaScript | 0 | @@ -374,22 +374,8 @@
ef=%22
-#/duts/builds/
%7B%7B r
@@ -384,18 +384,26 @@
.entity.
-id
+vcs%5B0%5D.url
%7D%7D%22%3E%7B%7B
@@ -666,16 +666,68 @@
FIELD %7D%7D
+ (%7B%7B(row.entity.files%5B0%5D.size/1024).toFixed(0)%7D%7D kB)
%3C/a%3E' +%0A
@@ -883,18 +883,16 @@
umns = %5B
-
%0A %7B
@@ -1009,74 +1009,8 @... |
59e3f87a3d09f4b6d656179008c90e78ffe5a4e1 | add notes for resizing (#2313) | packages/docs/pages/plugin/resizeable/index.js | packages/docs/pages/plugin/resizeable/index.js | import React, { Component } from 'react';
// eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import simpleExampleCode from '!!raw-loader!../../../components/Examples/resizeable/SimpleResizeableEditor';
// eslint-disable-next-line import/no-unresolved
import simpleExampleE... | JavaScript | 0 | @@ -1163,16 +1163,74 @@
eFrame';
+%0Aimport ExternalLink from '../../../components/Link/Link';
%0A%0Aexport
@@ -2758,24 +2758,858 @@
izeable%22 /%3E%0A
+ %3CHeading level=%7B3%7D%3ENotes%3C/Heading%3E%0A %3Cp%3E%0A This plugin needs to read and write the size information to the%0A ... |
0bafaef884f063e5a3184440778b6526ac6ff597 | test for LD data with real dates | test/client/e2e/learning-design-scenarios.js | test/client/e2e/learning-design-scenarios.js | 'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Learning Design', function() {
it('Logged in user can see all learning designs', function() {
var existingUserName = testUsers.getUserName;
var existingUserPassword = testUsers.getUserPassword;
browser().navigateTo('/l... | JavaScript | 0 | @@ -1310,18 +1310,17 @@
Be('/ld/
-28
+1
');%0A
@@ -1398,10 +1398,9 @@
emo
-28
+1
');%0A
|
a5ae5afbb3506946449ed11404cc38c29cb5816c | Rename slidemodeenter event handler. | lib/shower/shower.Player.js | lib/shower/shower.Player.js | /**
* @file Slides player.
*/
shower.modules.define('shower.Player', [
'Emitter',
'util.bound',
'util.extend'
], function (provide, EventEmitter, bound, extend) {
/**
* @class
* @name shower.Player
*
* Control slides.
*
* @param {Shower} shower Shower.
*/
functi... | JavaScript | 0 | @@ -985,25 +985,16 @@
this._on
-Container
SlideMod
@@ -6518,17 +6518,8 @@
_on
-Container
Slid
|
b622de228124bb06597df47daa3d17cdba1fa5ce | Make bordem functional | boredom.js | boredom.js | #!/usr/bin/nodejs
'use strict';
//
// Required Modules
//
var fs = require('fs'),
path = require('path'),
process = require('process'),
_ = require('lodash'),
child_process = require('child_process');
//
// Find all images in current directory
//
var images = [];
console.log('Looking for boring images in ' + pr... | JavaScript | 0.00125 | @@ -610,16 +610,51 @@
50);%0A%7D%0A%0A
+var TOTAL_IMAGES = images.length;%0A%0A
//%0A// Pr
@@ -734,16 +734,64 @@
ges.%0A//%0A
+var boringImages = %5B%5D,%0A%09%09prevImage = images%5B0%5D;%0A
for (var
@@ -800,29 +800,28 @@
=1; i %3C
-images.length
+TOTAL_IMAGES
; i++) %7B
@@ -837,16 +837,83 @@
on () %7B%0A
+%09... |
ef165d140cabbd0257a7e281ce17169b70934951 | fix bugs: .play, .setActive | lib/shower/shower.Player.js | lib/shower/shower.Player.js | /**
* @fileOverview
* Slides player.
*/
modules.define('shower.Player', [
'event.Emitter',
'util.extend',
'util.bind'
], function (provide, EventEmitter, extend, bind) {
/**
* @name shower.Player
* @constructor
* @param {Shower} shower
*/
function Player (shower) {
th... | JavaScript | 0.000003 | @@ -183,24 +183,38 @@
%7B%0A%0A /**%0A
+ * @class%0A
* @name
@@ -232,28 +232,8 @@
yer%0A
- * @constructor%0A
@@ -679,32 +679,93 @@
: function () %7B%0A
+ if (this._shower.getSlidesCount() %3C index) %7B%0A
this
@@ -813,32 +813,36 @@
1);%0A
+
this.... |
120b1dc6ff997a361b404824a09587ef8f9d12ba | Update doc.js | source/javascripts/doc.js | source/javascripts/doc.js | //= require mice
//= require mice/jquery
//= require_tree .
// ZeroClipboard
ZeroClipboard.config( { moviePath: '/images/ZeroClipboard.swf' } );
$(function(){
}); | JavaScript | 0.000001 | @@ -9,16 +9,23 @@
ire mice
+/jquery
%0A//= req
@@ -25,39 +25,32 @@
//= require mice
-/jquery
%0A//= require_tre
@@ -140,16 +140,16 @@
' %7D );%0A%0A
-
$(functi
@@ -155,11 +155,213 @@
ion()%7B%0A%0A
+ if($(%22body.mobile%22).size())%7B%0A $(document).scroll(function() %7B%0A console.log('scroll')%0A ... |
b1a5ff630ac4822bddc961941e33688821dd3cab | use tabs instead of spaces | public/js/controllers/projects/templates.js | public/js/controllers/projects/templates.js | define(['controllers/projects/taskRunner'], function () {
app.registerController('ProjectTemplatesCtrl', ['$scope', '$http', '$uibModal', 'Project', '$rootScope', '$window', function ($scope, $http, $modal, Project, $rootScope, $window) {
$http.get(Project.getURL() + '/keys?type=ssh').success(function (keys) {
$s... | JavaScript | 0.000004 | @@ -1595,20 +1595,18 @@
);%0A%09%09%7D%0A%0A
-
+%09%09
$scope.h
@@ -1642,14 +1642,11 @@
) %7B%0A
-
+%09%09%09
retu
@@ -1685,12 +1685,10 @@
0;%0A
-
+%09%09
%7D%0A%0A%09
|
15f0ec63706ac570f689b06dad498c904c9b3999 | Fix avatar border clipping on android (#6791) | shared/common-adapters/avatar.render.native.js | shared/common-adapters/avatar.render.native.js | // @flow
import Icon from './icon'
import React, {PureComponent} from 'react'
import {globalColors} from '../styles'
import {ClickableBox, NativeImage, Box} from './index.native'
import type {AvatarSize} from './avatar'
import type {IconType} from './icon'
type ImageProps = {
onLoadEnd: () => void,
opacity: ?numb... | JavaScript | 0 | @@ -1960,24 +1960,54 @@
rderOffset,%0A
+ margin: borderSize / 2,%0A
%7D%7D%0A /%3E%0A
|
2df4315176d1a0bac0489db2250c7f6dc1003a46 | fix zoom when initial distance is 0 | packages/core/3d/controller/OrbitController.js | packages/core/3d/controller/OrbitController.js | import Matrix4 from '../../math/Matrix4.js';
import GestureObserver from '../../input/GestureObserver.js';
export default class OrbitController {
constructor({
matrix = new Matrix4(),
domElement = window,
pan = 0,
tilt = 0,
invertRotation = true,
distance = 1,
distanceMin = 0,
distanc... | JavaScript | 0.998891 | @@ -1514,11 +1514,44 @@
nce
-*
=
+Math.max(this._distance, .001) * (
1 +
@@ -1580,32 +1580,33 @@
omVelocity * .01
+)
;%0A this._di
|
31da815083ceca6a459d71586037b07d31e46d22 | Add micro-optimization for fancy-header example to avoid painting | examples/fancy-header/index.js | examples/fancy-header/index.js | /* Copyright 2015, Yahoo Inc.
Copyrights licensed under the MIT License.
See the accompanying LICENSE file for terms. */
var React = require('react');
var Scroller = require('../../src/scroller');
var ScrollItem = require('../../src/scroll-item');
var Lorem = require('../lorem');
var Header = require('./header'... | JavaScript | 0 | @@ -1826,16 +1826,201 @@
-opacity:
+// this rounding to 0.001 and 0.9999 should not be needed.%0A // some browsers were causing re-paint. So I will leave this here%0A // as documentation%0A opacity: Math.max(0.001,
Mat
@@ -2049,17 +2049,23 @@
ls * y,
-1
+0.9999)
),%0A
|
5b42df392c9176b03939108f710012830a84d83c | increase timeout for cloud tests | config/protractor.conf.js | config/protractor.conf.js | // An example configuration file.
exports.config = {
// Spec patterns are relative to the location of the spec file. They may
// include glob patterns.
specs: ['../test/e2e/**/*.js'],
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true, // Use colors in the command line report.
... | JavaScript | 0.000001 | @@ -345,9 +345,10 @@
al:
-6
+12
0000
|
0591eb395069a28fa93f8c2fa501e56061ffc624 | Fix old query results showing up in develop (#6159) | packages/gatsby/src/utils/websocket-manager.js | packages/gatsby/src/utils/websocket-manager.js | const path = require(`path`)
const { store } = require(`../redux`)
const fs = require(`fs`)
const getCachedPageData = (pagePath, directory) => {
const { jsonDataPaths, pages } = store.getState()
const page = pages.find(p => p.path === pagePath)
const dataPath = jsonDataPaths[page.jsonName]
if (typeof dataPath ... | JavaScript | 0.000031 | @@ -3131,20 +3131,18 @@
et(data.
-path
+id
, data)%0A
|
df3c0d64dac7a7e9ae106b920e35c731d29a1e5d | Fix typo in help message | bin/autometa.js | bin/autometa.js | #!/usr/bin/env node
var program = require('commander');
var autometa = require('../lib/autometa.js');
var package = require('../package.json');
var templates = [];
var overwrite = false;
program
.version(package.version, '-v, --version')
.usage('[options] <Excel spreadsheet>')
.option('-f, --force', 'overwrite ... | JavaScript | 0.001912 | @@ -396,10 +396,10 @@
irec
-o
t
+o
ries
@@ -851,17 +851,17 @@
%5C%22-separ
-e
+a
ted list
|
806e4927c9d83c009aed3dbeea12e69c50103ddb | fix reverse-proxy example require path (#1067) | examples/http/reverse-proxy.js | examples/http/reverse-proxy.js | /*
reverse-proxy.js: Example of reverse proxying (with HTTPS support)
Copyright (c) 2015 Alberto Pose <albertopose@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without re... | JavaScript | 0 | @@ -1261,24 +1261,34 @@
= require('
+../../lib/
http-proxy')
|
01b733405c58539ac889112de8500e1752e4d852 | set document state of new objects | graphql/directives.js | graphql/directives.js | const { parse } = require('graphql/language');
const capitalize = require('lodash/upperFirst');
const { list, one, write, addInputTypes } = require('./utils');
const hasDirective = (ast, model, directive) => {
const schema = ast.definitions.find(({ name }) => name && name.value === model);
return schema.directives... | JavaScript | 0.000002 | @@ -1775,24 +1775,161 @@
;%0A %7D%0A
+ else if (isMutation && args.input && !args.input.state) %7B%0A args.input.state = 'DRAFT';%0A return args;%0A %7D%0A
%7D,%0A
|
416340fa161f679a2d844b0660a9d016b765f6cd | Move require into conditional. | bin/eslint_d.js | bin/eslint_d.js | #!/usr/bin/env node
'use strict';
function start() {
require('../lib/launcher')();
}
var cmd = process.argv[2];
if (cmd === 'start') {
start();
} else if (cmd === '-v' || cmd === '--version') {
console.log('v%s (eslint_d v%s)',
require('eslint/package.json').version,
require('../package.json').versio... | JavaScript | 0 | @@ -701,53 +701,8 @@
) %7B%0A
- var concat = require('concat-stream');%0A
@@ -777,24 +777,71 @@
useStdIn) %7B%0A
+ var concat = require('concat-stream');%0A
proc
|
581debb28e82e5f97db4d8d1066c249157f44c77 | Fix test | lib/tests/step.with.spec.js | lib/tests/step.with.spec.js | var chai = require('chai')
var sinon = require('sinon')
var expect = chai.expect
chai.use(require('sinon-chai'))
chai.use(require('chai-properties'))
var controllers = require('../autoBlock')
describe('step .with', () => {
var sandbox
beforeEach(() => {
sandbox = sinon.sandbox.create()
})
afterEach(() ... | JavaScript | 0.000004 | @@ -2077,36 +2077,16 @@
rties(%7B%0A
- a: 'alpha',%0A
@@ -2512,32 +2512,38 @@
'a': 'one
+.alpha
',%0A 'b.
|
d0a2bf189d41f3074b0c48f516e52bfb8901590c | Fix `error on missing` argument so it works from CLI (#43) | bin/exorcist.js | bin/exorcist.js | #!/usr/bin/env node
'use strict';
var minimist = require('minimist')
, fs = require('fs')
, path = require('path')
, exorcist = require('../')
;
function onerror(err) {
console.error(err.toString());
process.exit(err.errno || 1);
}
function usage() {
var usageFile = path.join(__dirname, 'usag... | JavaScript | 0 | @@ -930,16 +930,44 @@
%7C argv.e
+ %7C%7C argv%5B'error-on-missing'%5D
;%0A%0Amapfi
|
68788bbc78967fbd7593424e5dd8a797f9b5ff1e | Remove unused channelList property | app/components/canvas-channel-list/component.js | app/components/canvas-channel-list/component.js | import Ember from 'ember';
const { computed } = Ember;
export default Ember.Component.extend({
localClassNames: ['canvas-channel-list'],
isEditingChannels: false,
canvasChannels: computed('channelIds.[]', 'channels.[]', function() {
return this.get('channelIds')
.map(id => this.get('channels... | JavaScript | 0 | @@ -372,169 +372,8 @@
),%0A%0A
- channelList: computed('canvasChannels.%5B%5D', function() %7B%0A return this.get('canvasChannels')%0A .mapBy('name')%0A .join(', ');%0A %7D),%0A%0A
se
|
1b9de49b794f201f78cf1ae1b017cf4defcfe1a3 | Update tests | test/specs/style_manager/model/Properties.js | test/specs/style_manager/model/Properties.js | import Editor from 'editor/model/Editor';
describe('StyleManager properties logic', () => {
let obj;
let em;
let domc;
let dv;
let cssc;
let sm;
let cmp;
let rule1;
let rule2;
beforeEach(() => {
em = new Editor({
mediaCondition: 'max-width',
avoidInlineStyle: true,
styleManag... | JavaScript | 0.000001 | @@ -2306,16 +2306,26 @@
(prop =%3E
+ %7B%0A
expect(
@@ -2345,16 +2345,141 @@
toBe('')
+;%0A if (prop !== propTest) %7B%0A expect(compTypeProp.getProperty(prop).hasValue()).toBe(false);%0A %7D%0A %7D
);%0A %7D
|
062ca1371a76457e27dda33d6803dfa239775ba8 | add log option to CLI | bin/gen-docs.js | bin/gen-docs.js | #!/usr/bin/env node
var path = require('canonical-path');
var myArgs = require('optimist')
.usage('Usage: $0 path/to/mainPackage [path/to/other/packages ...]')
.demand(1)
.argv;
var Dgeni = require('dgeni');
// Extract the paths to the packages from the command line arguments
var packagePaths = myArgs._;
// Re... | JavaScript | 0.000001 | @@ -152,19 +152,33 @@
ges ...%5D
+ %5B--log level%5D
')%0A
-
.deman
@@ -578,16 +578,284 @@
);%0A%7D);%0A%0A
+var logLevel = myArgs.log %7C%7C myArgs.l;%0Aif ( logLevel ) %7B%0A // Add CLI package (to override settings from other packages)%0A packages.push(new Dgeni.Package('cli-package', %5B'base'%5D).config(fu... |
efd37987aa1f518e6bcdd1f1d252b3d73b4f69fa | Remove iit | test/unit/core/directives/uiGridCell.spec.js | test/unit/core/directives/uiGridCell.spec.js | describe('uiGridCell', function () {
var gridCell, $scope, $compile, $timeout, GridColumn, recompile, grid, uiGridConstants;
beforeEach(module('ui.grid'));
beforeEach(inject(function (_$compile_, $rootScope, _$timeout_, _GridColumn_, gridClassFactory, _uiGridConstants_) {
$scope = $rootScope;
$compile =... | JavaScript | 0.000009 | @@ -2946,17 +2946,16 @@
) %7B%0A
-i
it(%22shou
|
7efbf96dce846af83a08f6d4ae1c59cc94559237 | Send JWT token as string instead of an object | examples/server/node/server.js | examples/server/node/server.js | /**
* (c) 2014 Sahat Yalkabov <sahat@me.com>
* License: MIT
*/
var _ = require('lodash');
var bcrypt = require('bcryptjs');
var bodyParser = require('body-parser');
var crypto = require('crypto');
var express = require('express');
var logger = require('morgan');
var jwt = require('jwt-simple');
var methodOverride =... | JavaScript | 0 | @@ -3676,16 +3676,17 @@
);%0A %7D%0A%0A
+%0A
User.f
@@ -4194,24 +4194,61 @@
next(err);%0A
+ var token = getJwtToken(user);%0A
res.se
@@ -4250,20 +4250,21 @@
es.send(
-user
+token
);%0A %7D
|
05c8404c626391ce054072991e8f702e9517c0d0 | Fix #254 use https module for xhr requests within node if needed | lib/transport/driver/xhr.js | lib/transport/driver/xhr.js | 'use strict';
var EventEmitter = require('events').EventEmitter
, inherits = require('inherits')
, http = require('http')
, URL = require('url-parse')
;
var debug = function() {};
if (process.env.NODE_ENV !== 'production') {
debug = require('debug')('sockjs-client:driver:xhr');
}
function XhrDriver(method,... | JavaScript | 0 | @@ -120,16 +120,45 @@
'http')%0A
+ , https = require('https')%0A
, URL
@@ -704,16 +704,81 @@
e%0A %7D;%0A%0A
+ var protocol = parsedUrl.protocol === 'https:' ? https : http;%0A
this.r
@@ -782,20 +782,24 @@
s.req =
-http
+protocol
.request
|
5e070701c578ccfb2fc0c31d4106b331f5a132ca | Fix this scope | lib/transports/websocket.js | lib/transports/websocket.js | 'use strict';
var util = require('util');
var WildEmitter = require('wildemitter');
var async = require('async');
var WS = (require('faye-websocket') && require('faye-websocket').Client) ?
require('faye-websocket').Client :
window.WebSocket... | JavaScript | 0.000101 | @@ -1494,28 +1494,28 @@
err = new
-this
+self
.stanzas.Str
|
25668c2c8c1ebbb7571dab393de11c6eb264a727 | Split token generation between access and refresh | lib/utils/tokenGenerator.js | lib/utils/tokenGenerator.js | /**
* Created by Gerard on 12/11/2014.
*/
module.exports.generateToken = function (options, client_id, user_id, token_fields, token_options) {
token_options = token_options || {};
var issued_at = new Date();
var expires_at = new Date(issued_at.getSeconds() + (options.token_expiration || 3600));
var pl... | JavaScript | 0.000002 | @@ -1,47 +1,44 @@
-/**%0A * Created by Gerard on 12/11/2014.%0A */
+var serializer = require('serializer');%0A
%0Amod
@@ -83,16 +83,25 @@
options,
+ user_id,
client_
@@ -104,23 +104,36 @@
ent_id,
-user_id
+client_secret, scope
, token_
@@ -353,83 +353,36 @@
n =
-%7B%0A type: 'a
+generateA
ccess
-t
+T
... |
3b3bfff0d5ac8add656b50e66f9dc6317db7a1f7 | Fix element-list specs | spec/element-list-spec.js | spec/element-list-spec.js | 'use babel'
import ListElement from '../lib/elements/list'
import {createSuggestion} from './common'
describe('Intentions list element', function() {
it('has a complete working lifecycle', function() {
const element = new ListElement()
const suggestions = [
createSuggestion('Suggestion 1', jasmine.cre... | JavaScript | 0 | @@ -13,16 +13,17 @@
%0Aimport
+%7B
ListElem
@@ -25,16 +25,17 @@
tElement
+%7D
from '.
@@ -472,23 +472,24 @@
let
-dispose
+selected
= jasmi
@@ -513,23 +513,24 @@
gestion.
-dispose
+selected
')%0A l
@@ -571,23 +571,24 @@
stions,
-dispose
+selected
)%0A%0A e
@@ -1022,35 +1022,61 @@
ect(element.
-... |
f2024f59854208f991dadf6137bad8e7edd2f93d | Fix a spec | spec/linter-clang-spec.js | spec/linter-clang-spec.js | "use babel";
describe("The Clang Provider for AtomLinter", () => {
beforeEach(() => {
provider = require("../lib/main").provideLinter();
waitsForPromise(() => {
return atom.packages.activatePackage("linter-clang")
});
});
describe("finds issue with the code", () => {
describe("in 'missin... | JavaScript | 0.000004 | @@ -1,9 +1,9 @@
-%22
+'
use babe
@@ -7,10 +7,9 @@
abel
-%22;
+'
%0A%0Ade
@@ -15,17 +15,17 @@
escribe(
-%22
+'
The Clan
@@ -26,17 +26,17 @@
e Clang
-P
+p
rovider
@@ -49,17 +49,17 @@
omLinter
-%22
+'
, () =%3E
@@ -64,33 +64,15 @@
%3E %7B%0A
-%0A
-beforeEach(() =%3E %7B%0A
+const
pro
@@ -87,17 +87,17... |
024a5076264feed9cd366902f349d4609358f33f | Add failing test case that illustrates the need for α-reduction: same variable is both free and bound in the same expression | spec/interpreter.spec.js | spec/interpreter.spec.js | import { Interpreter, Variable, Func, Application } from './lib/lambda'
describe('interpreter', () => {
let interpreter;
beforeEach(() => {
interpreter = new Interpreter();
});
const test = (fixtures) =>
fixtures.forEach(([expr, expected, comment = '']) => {
it(`should interpret ${expr} ${comm... | JavaScript | 0.001269 | @@ -7455,55 +7455,8 @@
);%0A%0A
- //TODO: Also store the history of evaluation%0A
//
@@ -7644,16 +7644,489 @@
le name%0A
+ describe('%CE%B1-reduction, ensuring freedome of substitution', () =%3E %7B%0A%0A test(%5B%0A %5B%0A new Application(%0A new Func('y',%0A new Func('x',%0A ... |
aa26eba678a6dd634a9165c7eb07b258cfb9cbfd | Jasmine, not Mocha | spec/path-watcher-spec.js | spec/path-watcher-spec.js | /** @babel */
import {it, beforeEach, afterEach, promisifySome} from './async-spec-helpers'
import tempCb from 'temp'
import fsCb from 'fs-plus'
import path from 'path'
import {CompositeDisposable} from 'event-kit'
import {watchPath, stopAllWatchers} from '../src/path-watcher'
tempCb.track()
const fs = promisifySom... | JavaScript | 0.999509 | @@ -1445,17 +1445,31 @@
cher
-).to.be.a
+.constructor.name).toBe
('Pa
|
91defd47ce8589cd19024d91db28d4af87d57c37 | Disable TLS verification in tests | spec/support/bootstrap.js | spec/support/bootstrap.js | // This file is executed before all specs and before all other handlers
// Enable typescript compilation for .ts files
require('ts-node/register');
// Patch jasmine so that async tests can just return promises (or use the async keyword) and do not need to call done()
global.jasmineRequire = {}; // jasmine-promise exp... | JavaScript | 0 | @@ -396,12 +396,88 @@
promises');%0A
+%0A// to get through firewall%0Aprocess.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';%0A
|
6a4c3f75400111a0a79d17159f47936ca81b1174 | Add test for changing ajax type | packages/ember-uploader/tests/uploader_test.js | packages/ember-uploader/tests/uploader_test.js | var Uploader, file;
module("Ember.Uploader", {
setup: function() {
if (typeof WebKitBlobBuilder === "undefined") {
file = new Blob(['test'], { type: 'text/plain' });
} else {
var builder;
builder = new WebKitBlobBuilder();
builder.append('test');
file = builder.getBlob();
}
... | JavaScript | 0 | @@ -501,24 +501,164 @@
est');%0A%7D);%0A%0A
+test(%22has an ajax request of type 'PUT'%22, function() %7B%0A var uploader = Uploader.create(%7Btype: 'PUT'%7D);%0A equal(uploader.type, 'PUT');%0A%7D);%0A%0A
test(%22upload
|
eb745bf52fb2f01f52aae8638c22744affa2de1b | Add repos | ci/setup.js | ci/setup.js | #!/usr/bin/env node
const { join } = require('path')
const { execSync } = require('child_process')
const fs = require('fs')
const mkdirp = require('mkdirp')
process.chdir(join(__dirname, '..'))
mkdirp.sync('repos')
let repos = [
'ever-increasing-faith',
'faith-that-prevails',
'andrew-murray-humility',
'first... | JavaScript | 0.000001 | @@ -385,16 +385,36 @@
pilgrim'
+,%0A 'wesley-sermons'
%0A%5D%0A%0Alet
|
12cef48639f316c35087c7d92f46bc6b5300f3ad | Remove Verdict (#95) | javascripts/custom-repos.js | javascripts/custom-repos.js | // Opt-in repos (case sensitive)
// - These are all children of Shopify and visible at https://github.com/Shopify
var optInRepos = [
'FunctionalTableData',
'Intro_to_GraphQL_Powered_by_Shopify',
'active_fulfillment',
'active_merchant',
'active_shipping',
'active_utils',
'app_profiler',
'asset_cloud',
... | JavaScript | 0 | @@ -1232,21 +1232,8 @@
e',%0A
- 'verdict',%0A
'v
|
222cf4f1ede04542efbac128da268102c43b4592 | Fix Settings unit tests | specs/lib/SettingsSpec.js | specs/lib/SettingsSpec.js | 'use strict';
var nconf = require('nconf');
var Settings = require('../../lib/Settings');
describe('loadRepositoriesSettings', function () {
beforeEach(function () {
spyOn(nconf, 'env').and.returnValue(nconf);
});
it('returns rejected Promise when config does not have `secret`', function (done) ... | JavaScript | 0.000001 | @@ -2431,32 +2431,84 @@
n(function () %7B%0A
+ console.log(Settings.repositories);%0A
@@ -2529,32 +2529,34 @@
s.repositories%5B'
+a/
one'%5D.thirdParty
@@ -2977,32 +2977,34 @@
s.repositories%5B'
+a/
one'%5D.thirdParty
@@ -3395,24 +3395,26 @@
positories%5B'
+a/
one'%5D.thirdP
@@ -... |
c7318a66efc0db4a36081a6047d0998012178a85 | Add tests to ensure wildcard functionality and avoiding KEYS call New test to check wildcard keys still fetch multiple results. New test to check that a non-wildcard call does not call KEYS. | test/get.js | test/get.js | (function () {
'use strict';
var path = require('path');
var assert = require('assert');
var mocha = require('mocha');
var should = require('should');
var prefix = process.env.EX_RE_CA_PREFIX || 'erct:';
var host = process.env.EX_RE_CA_HOST || 'localhost';
var port... | JavaScript | 0 | @@ -1893,16 +1893,1432 @@
%7D);%0A%0A
+ it ( 'should support wildcard gets', function (done) %7B%0A cache.add('wildkey1', 'abc',%0A function ($error, $name, $entry) %7B%0A cache.add('wildkey2', 'def',%0A function ($error, $name, $entry) %7B%0A cache.get('wildkey*', fu... |
0e9d3b220ea40eee6ac2c8d5ee3bf923d6310116 | mutation.attributeName is a string | angupoly.js | angupoly.js | angular.module('angupoly', [])
.directive('angupoly', function($rootScope, $parse) {
return {
priority : 42,
restrict : 'A',
compile : function(tElement, tAttr) {
var conf = $rootScope.$eval(tAttr.angupoly);
var assignables = {};
var paths = {};
var needsMutationObserver;
... | JavaScript | 0.999818 | @@ -1385,33 +1385,21 @@
Name
-.indexOf(attrName) !== -1
+ === attrName
) %7B%0A
|
4ccc256bd4a9a94073a00aa5eddcb9af7597e9b7 | Remove reference on localhost in the web socket sample | samples/src/main/resources/assets/socket.js | samples/src/main/resources/assets/socket.js | (function() {
var Sock = function() {
var socket;
if (!window.WebSocket) {
window.WebSocket = window.MozWebSocket;
}
if (window.WebSocket) {
socket = new WebSocket("ws://localhost:9000/assets/websocket");
socket.onopen = onopen;
socket... | JavaScript | 0 | @@ -199,69 +199,138 @@
-socket = new WebSocket(%22ws://localhost:9000/assets/websocket%22
+// compute url.%0A var url = %22ws://%22 + window.location.host + %22/assets/websocket%22;%0A socket = new WebSocket(url
);%0A
|
6a55931504f50247cc882da7ba835d4d29c3e896 | change var def for older js | lib/nodemda/meta/meta-validator.js | lib/nodemda/meta/meta-validator.js | /*
Copyright (C) 2016 by Joel Kozikowski
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, distribu... | JavaScript | 0.000008 | @@ -1299,16 +1299,27 @@
nt = 0;%0A
+%09%09var msg;%0A
%09%09%0A%09%09win
@@ -1407,28 +1407,24 @@
, msg) %7B%0A%09%09%09
-let
msg = %22WARN:
@@ -1572,12 +1572,8 @@
%0A%09%09%09
-let
msg
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.