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 |
|---|---|---|---|---|---|---|---|
54b7ca50ecdee80f3d09736354c8d7582e83d0af | Add some more debugging statements | core.js | core.js | /**
* This 'core' module is the `libffi` wrapper. All required native
* functionality is instaniated and then exported in this module.
*/
var ffi = require('node-ffi')
, objc = new ffi.Library(null, {
objc_getClass: [ 'pointer', [ 'string' ] ]
, class_getName: [ 'string', [ 'pointer' ] ]
, class_get... | JavaScript | 0.000001 | @@ -1087,16 +1087,60 @@
tring();
+%0A console.warn('INFO: types key: %25s', key);
%0A%0A // f
@@ -1210,16 +1210,94 @@
he%5Bkey%5D;
+%0A console.warn('WARN: key not found in cache, generating new copy: %25s', key);
%0A%0A // I
|
7fab46b6feccdc37f780fd2479d8552def955c0e | Adjusted mkdir tast to be OS agnostic | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
"use strict";
grunt.initConfig({
pkg: require("./package.json"),
watch: {
scripts: {
files: ['src/*.js', 'src/utils/*.js', '*.js', 'test/*.html', 'test/*.js'],
tasks: ['test'],
options: {
spawn: false,
},
},
},
shell: {
mkdir: {... | JavaScript | 0.99875 | @@ -305,59 +305,8 @@
: %7B%0A
- mkdir: %7B%0A command: 'mkdir -p dist'%0A %7D,%0A
@@ -1444,24 +1444,97 @@
t-mocha');%0A%0A
+ grunt.registerTask('mkdir', function() %7B grunt.file.mkdir(%22dist%22); %7D);%0A
grunt.regi
@@ -1582,30 +1582,24 @@
nt:tests', '
-shell:
mkdir', 'she
@@ -1653,22 +1653,1... |
dc1595a273c8948e254f8c8f10c0e1f421152c8d | Enhance $ fix | Gruntfile.js | Gruntfile.js |
module.exports = function(grunt) {
var path = require("path")
const GCC_OPTIONS = {
compilation_level: "SIMPLE_OPTIMIZATIONS",
externs: "tools/extern.js",
warning_level: "VERBOSE",
jscomp_off: "checkTypes",
jscomp_error: "checkDebuggerStatement"
}
grunt.initConfig({
pkg: grunt.file... | JavaScript | 0.000001 | @@ -2471,16 +2471,56 @@
, '_.')%0A
+ code = code.replace(/%5C$&&/g, '_&&')%0A
code
|
cbf3379838d24a102f10abd9fd10ce066599c5e6 | Fix html templating in dev version | Gruntfile.js | Gruntfile.js | "use strict";
module.exports = function (grunt) {
var deployPath = "deploy/",
graphPath = deployPath + "js/<%= pkg.name %>.js",
minGraphPath = deployPath + "js/<%= pkg.name %>.min.js",
appPath = deployPath + "js/<%= pkg.name %>-app.js",
minAppPath = deployPath + "js/<%= pkg.name %>-app.min.js";
// Project ... | JavaScript | 0.00002 | @@ -2479,16 +2479,53 @@
a%3E%3C/li%3E%22
+,%0A%09%09%09%09%09%09version: %22%3C%25= pkg.version %25%3E%22
%0A%09%09%09%09%09%7D%0A
|
77e74cf9db5201d89c402f4e1ef552369be4e774 | remove customer specific scripts | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Modules
// grunt.loadNpmTasks('grunt-init');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('bootcamp');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-combine-media-queries');
// ... | JavaScript | 0.000001 | @@ -875,273 +875,8 @@
%7D%0A
- %7D,%0A silvertours: %7B%0A options: %7B%0A style: 'expanded',%0A %7D,%0A files: %7B%0A './griddl/silvertours/dist/styles.css': './griddl/silvertours/styles.scss'%0A ... |
595a2533590de4ce66996292eb9db8a45252fda1 | Move all files from examples folder | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
'connect': {
demo: {
options: {
open: true,
keepalive: true
}
}
},
'gh-pages': {
options: {
clone: 'bower_compone... | JavaScript | 0.000001 | @@ -498,16 +498,19 @@
amples/*
+*/*
', 'src/
|
a66be661fc999a6050be3486cb076dcde2b6572e | Fix build process for multiple platforms | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// TODO: platforms shouldn't be hardcoded here
var platforms = ['win64', 'linux64'];
// Build up array of destinations for Twister deamon files
var destinations = {files: []};
platforms.forEach(function (platform) {
destinations.files.push({
... | JavaScript | 0.000001 | @@ -322,32 +322,83 @@
expand: true,%0A
+ cwd: './twister-data/' + platform,%0A
@@ -404,18 +404,16 @@
src: %5B'
-./
twister-
|
c4f0b0d7b32f82b8a184ce03821fc5c01ed9d387 | Add relative paths to shell commands | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-shell');
var mochaShelljsOpt = {stdout: true, stderr: false};
grunt.initConfig({
jshint: {
src: {
files: {
src: ['... | JavaScript | 0 | @@ -999,32 +999,52 @@
command: '
+./node_modules/.bin/
component instal
@@ -1087,16 +1087,36 @@
mmand: '
+./node_modules/.bin/
componen
@@ -1239,16 +1239,36 @@
mmand: '
+./node_modules/.bin/
mocha --
@@ -1356,16 +1356,36 @@
mmand: '
+./node_modules/.bin/
apidox -
|
e9ac799f8dab79343f4260faf2c61cff80e6f888 | Fix Gruntfile watch task | Gruntfile.js | Gruntfile.js | // Generated on 2015-10-29 using generator-mendix 1.0.0 :: http://github.com/JelteMX/generator-mendix
'use strict';
// In case you seem to have trouble starting Mendix through `grunt start-mendix`, you might have to set the path to the Mendix application.
// If it works, leave MODELER_PATH at null
var MODELER_PATH = n... | JavaScript | 0.000005 | @@ -933,30 +933,16 @@
%5B %22
-newer:copy%22, %22
compress
%22 %5D,
@@ -937,16 +937,24 @@
compress
+%22, %22copy
%22 %5D,%0A
@@ -1866,28 +1866,16 @@
%5D
-
%0A %7D%0A
@@ -1879,19 +1879,17 @@
%7D%0A %7D);%0A
-
%0A
+
grunt.
@@ -2803,20 +2803,16 @@
);%0A %7D
-
%0A %7D);%0... |
c58e4915ed986267fcd218999d923586e57f47e0 | Set up devbuild option | Jamesfile.js | Jamesfile.js | var james = require('james');
var cssmin = require('james-cssmin');
var uglify = require('james-uglify');
var inputRoot = 'dev/';
var outputRoot = 'public/';
james.task('default', ['watch']);
james.task('build', build);
james.task('watch', watch);
james.task('minify_css', minifyCSS);
james.task('minify_js', minifyJS... | JavaScript | 0 | @@ -188,16 +188,50 @@
tch'%5D);%0A
+james.task('devbuild', devbuild);%0A
james.ta
@@ -351,16 +351,143 @@
fyJS);%0A%0A
+function devbuild() %7B%0A james.watch(inputRoot + '**/*.css', minifyCSS);%0A james.watch(inputRoot + '**/*.js', concatJS);%0A%7D%0A%0A
function
@@ -1150,24 +1150,259 @@
);%0A %7D%0A%7D%0... |
61e4eec8b81a8055366e061ec4f3229cfc615930 | add code for block scoping | ES6/es6.js | ES6/es6.js | console.log("Pranav Jain here");
//simple ES5 var declaration
var limit = 1000;
//console.log(limit);
//ES6 var declaration
let newLimit = 10000;
newLimit += 100;//you can change the value of the 'let' var
//console.log(newLimit);
//ES6 const var declaration
const absoluteLimit = 100000;
//absoluteLimit += 1100; wil... | JavaScript | 0.000001 | @@ -574,8 +574,704 @@
ruits);%0A
+%0A//Block Scoping%0A//advantage of 'let'%0Alet var1 = 10;%0A%0A%7B%0A let var1 = 100;%0A //console.log('Block var1', var1);%0A%7D%0A%0A//console.log('original var1', var1);%0A//Output:%0A//Block var1 10%0A//original var 10%0A//let supports Block Scoping%0A%0A//if we were using the ... |
31d4219eaf037dd6f00f4dfa77b239ab06e2b9df | Fix template variable | samples/job/test/test-default.js | samples/job/test/test-default.js | /**
* Test file for Job: newcalendar
*/
var assert = require ('assert');
<%=name%>SUT = require('../<%=name%>');
var mockedConfig, mockedDependencies;
describe ('<%=name%> test', function(){
beforeEach(function (done) {
// you may probably need a mocked configuration object like this to unit test confi... | JavaScript | 0.000001 | @@ -23,19 +23,17 @@
ob:
-newcalendar
+%3C%25=name%25%3E
%0A */
|
0aa538ed60ecdc67ce075b875bfad00f46066c3f | fix guid to be a method, add supplant and trim method | scripts/extensions/properties.js | scripts/extensions/properties.js | þ.extend('EXTENSION', {
//Create a unique identifier
//I am not sure where this code comes from!
//If someone knows we can add the credentials.
guid: {
get: function () {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
.replace(/[xy]/g, function (c) {
... | JavaScript | 0 | @@ -163,23 +163,8 @@
uid:
- %7B%0A get:
fun
@@ -170,28 +170,24 @@
nction () %7B%0A
-
retu
@@ -240,20 +240,16 @@
-
.replace
@@ -289,20 +289,16 @@
-
-
var r =
@@ -321,20 +321,16 @@
16 %7C 0,%0A
-
@@ -387,28 +387,24 @@
-
-
return v.to... |
e17e149e0d9ff9904fb4d3109efe87b157dce40c | fix sort to top/bottom | app/assets/javascripts/jquery/active_scaffold_sortable.js | app/assets/javascripts/jquery/active_scaffold_sortable.js | ActiveScaffold.update_positions = function(content) {
if (typeof(content) == 'string') content = jQuery('#' + content);
var element = content.closest('.sortable-container');
jQuery.each(content.find('.sub-form-record input[name$="[' + element.data('column') + ']"]'), function(i, field) {
jQuery(field).val(i+1... | JavaScript | 0.000105 | @@ -447,16 +447,79 @@
'parent'
+, forcePlaceholderSize: true, placeholder: 'sortable-highlight'
%7D;%0A if
|
06e94008da8ca9a5ba07d9dc56789e47b1e7b5a5 | Date set in utc | app/assets/javascripts/map/services/AnalysisNewService.js | app/assets/javascripts/map/services/AnalysisNewService.js | define([
'Class',
'uri',
'bluebird',
'map/services/DataService'
], function(Class, UriTemplate, Promise, ds) {
'use strict';
var GET_REQUEST_ID = 'AnalysisService:get';
var APIURL = window.gfw.config.GFW_API_HOST_NEW_API;
var APIURLS = {
'draw' : '/{dataset}{?geostore,period,thresh,gladC... | JavaScript | 0.999314 | @@ -2330,24 +2330,38 @@
%0A %7D);%0A%0A
+ // TEMP%0A
var pe
@@ -2492,16 +2492,20 @@
+ moment
+.utc
(status.
|
cc5a81b7d87fbd0db67781ebc21e3805876fbb74 | Make hi-color privacy icons opt-in instead of opt-out | app/javascript/flavours/glitch/reducers/local_settings.js | app/javascript/flavours/glitch/reducers/local_settings.js | // Package imports.
import { Map as ImmutableMap } from 'immutable';
// Our imports.
import { STORE_HYDRATE } from 'flavours/glitch/actions/store';
import { LOCAL_SETTING_CHANGE } from 'flavours/glitch/actions/local_settings';
const initialState = ImmutableMap({
layout : 'auto',
stretch : true,
navbar_un... | JavaScript | 0.000001 | @@ -640,27 +640,28 @@
vacy_icons:
-tru
+fals
e,%0A content
|
46da839a0e2efb617a8935a4a4061d206bf607f0 | Update app.js | nodejs_app/app.js | nodejs_app/app.js | var http = require('http');
var server = http1234.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
server.listen(8000);
console.log("Server is running at http://127.0.0.1:8000/");
| JavaScript | 0.000002 | @@ -11,16 +11,21 @@
require
+12345
('http')
@@ -48,16 +48,17 @@
http1234
+2
.createS
|
fc9d68627310b485ded1c338a3673314779c6b5f | fix bug where callback fires twice | jquery.typesuggest.js | jquery.typesuggest.js | (function($) {
function TypeSuggest(el, data, options){
var defaults = {
min_characters: 2,
display_key: undefined,
search_keys: undefined,
ignored: [
' ',
',',
'.'
],
ajax: false,
url: '',
param: 'q',
beforeSend: undefined,
call... | JavaScript | 0 | @@ -4609,66 +4609,8 @@
a);%0A
- self.config.callback && self.config.callback(data);%0A
@@ -7376,8 +7376,9 @@
jQuery);
+%0A
|
3afbf0c6a976e630a678afd5da627b2651ddfdbb | Fix path redeclaration in local scope | dcplusplusreleaseannouncer.js | dcplusplusreleaseannouncer.js | let nmdc = require('nmdc'),
chrono = require('chrono-node'),
config = require('./config.json'),
fs = require('fs'),
path = require('path'),
spawn = require('child_process').spawn,
release = {},
hub;
const day = 24 * 60 * 60 * 1000,
now = new Date().getTime();
function getTTH(cb) {
... | JavaScript | 0 | @@ -4655,17 +4655,24 @@
let
-p
+releaseP
ath,%0A
@@ -4912,33 +4912,40 @@
bles%22);%0A
-p
+releaseP
ath = process.en
@@ -5351,25 +5351,32 @@
e %7B%0A
-p
+releaseP
ath = proces
@@ -5436,17 +5436,24 @@
if (
-p
+releaseP
ath == n
@@ -5542,17 +5542,24 @@
th: ' +
-p
+releaseP
ath + '
@... |
167e7cbd12aad6c3d247c27e4f34d77ad74500e2 | address touchArea and mouseArea in AquaRadioButtonGroup, https://github.com/phetsims/sun/issues/555 | js/TimeControlNode.js | js/TimeControlNode.js | // Copyright 2018-2020, University of Colorado Boulder
/**
* Combines the Play/Pause button and the Step button with optional speed controls.
*
* @author Denzell Barnett (PhET Interactive Simulations)
* @author Jonathan Olson <jonathan.olson@colorado.edu>
* @author Chris Malley (PixelZoom, Inc.)
*/
define( requi... | JavaScript | 0 | @@ -5680,17 +5680,16 @@
ouchArea
-X
Dilation
|
e04ac9856c8717aea7f91ff801cb77a71581bf42 | support zoom mapping function instead of hard coded linear deltas, https://github.com/phetsims/scenery-phet/issues/687 | js/ZoomButtonGroup.js | js/ZoomButtonGroup.js | // Copyright 2020-2021, University of Colorado Boulder
/**
* ZoomButtonGroup is a general 'modern' button group for zooming in and out.
* It was conceived and first used in natural-selection.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
import NumberProperty from '../../axon/js/NumberProperty.js';
import merge ... | JavaScript | 0 | @@ -1343,119 +1343,167 @@
-zoomInDelta: 1, // delta applied when the '+' button is pressed, must be %3E 0%0A zoomOutDelta:
+applyZoomIn: currentZoom =%3E currentZoom + 1, // function applied when the '+' button is pressed%0A applyZoomOut: currentZoom =%3E currentZoom
-
+
1, //
-delta
+function
... |
cbee0943038f8dd7bcb9fdff1731f578fa153b97 | Allow saving of non-fillable values via force parameter | app/models/base.js | app/models/base.js | var Checkit = require( 'checkit' ),
_ = require( 'lodash' ),
Promise = require( 'bluebird' ),
bookshelf = require( 'bookshelf' ).bookshelf,
DuplicateEntityError = require( '../errors/duplicate-entity' );
var BaseModel = module.exports = bookshelf.Model.extend({
json: [],
hidden: [],
filla... | JavaScript | 0 | @@ -564,32 +564,73 @@
en(function() %7B%0A
+ if ( ! options.force ) %7B%0A
this
@@ -650,16 +650,30 @@
lable();
+%0A %7D
%0A%0A
|
dee4c0aae76281b7484ede2bd1688373dcda4bb6 | add javascript test and example for accumulate | assignments/javascript/accumulate/accumulate_test.spec.js | assignments/javascript/accumulate/accumulate_test.spec.js | require('./example');
describe('[].accumulate()', function() {
it('empty accumulation', function() {
var accumulator = function(e) { return e * e; };
expect([]).toEqual([].accumulate(accumulator));
});
xit('accumulate squares', function() {
var accumulator = function(number) {
return number *... | JavaScript | 0 | @@ -1292,13 +1292,12 @@
;%0A %7D);%0A
-%0A
%7D);%0A
|
c571c363eff25fca42b5bde767423127a56fbb4e | fix double registration with facebook using the same email | lib/site/auth-facebook/strategy.js | lib/site/auth-facebook/strategy.js | var config = require('lib/config')
var passport = require('passport')
var FacebookStrategy = require('passport-facebook').Strategy
var User = require('lib/models').User
var utils = require('lib/utils')
/**
* Register Facebook Strategy
*/
module.exports = function () {
var callbackURL = utils.buildUrl(config, {
... | JavaScript | 0.000001 | @@ -817,103 +817,581 @@
-if (!user) return signup(profile, accessToken, done)%0A%0A var email = profile._json.email
+var email = profile._json.email%0A%0A if (!user) %7B%0A if (email) %7B%0A User.findByEmail(email, function (err, userWithEmail) %7B%0A if (e... |
bc6238c2be05b8f0111f50c7ae5a04addb62bc22 | Use AddMidpoint when doubleclicking on way | js/id/modes/select.js | js/id/modes/select.js | iD.modes.Select = function(context, selection, initial) {
var mode = {
id: 'select',
button: 'browse'
};
var inspector = iD.ui.inspector().initial(!!initial),
keybinding = d3.keybinding('select'),
behaviors = [
iD.behavior.Hover(),
iD.behavior.Select(... | JavaScript | 0 | @@ -4107,18 +4107,17 @@
prev %7D)
-;%0A
+,
%0A
@@ -4129,52 +4129,23 @@
-context.perform(iD.actions.AddEntity(node));
+ ways = %5B%5D;%0A
%0A%0A
@@ -4456,62 +4456,39 @@
-context.perform(iD.actions.AddVertex(p.id, node.id, k)
+ways.push(%7B id: p.id, index: k%7D
);%0A
@@ -4625,64 +4625,41 @@... |
831d47b3c0d54d159fc1f9ddd6cb859a38b73d37 | update item-message relation to async:true to fix issue with item-rejection | app/models/item.js | app/models/item.js | import Ember from 'ember';
import DS from 'ember-data';
import '../computed/foreign-key';
var attr = DS.attr,
belongsTo = DS.belongsTo,
hasMany = DS.hasMany,
foreignKey = Ember.computed.foreignKey;
export default DS.Model.extend({
donorDescription: attr('string'),
state: attr('str... | JavaScript | 0 | @@ -582,36 +582,35 @@
sage', %7B async:
-fals
+tru
e %7D),%0A images:
|
88904b057372c3471078ae75374c69071be6be52 | add RXP to UserStats | server/graphql/schemas/UserStats.js | server/graphql/schemas/UserStats.js | import {GraphQLInt, GraphQLFloat} from 'graphql'
import {GraphQLObjectType} from 'graphql/type'
import {STAT_DESCRIPTORS} from 'src/common/models/stat'
export default new GraphQLObjectType({
name: 'UserStats',
description: 'A user\'s overall stats',
fields: () => {
return {
[STAT_DESCRIPTORS.LEVEL]: {... | JavaScript | 0 | @@ -1506,24 +1506,138 @@
Accuracy'%7D,%0A
+ %5BSTAT_DESCRIPTORS.PROJECT_REVIEW_EXPERIENCE%5D: %7Btype: GraphQLFloat, description: 'Review Experience (RXP)'%7D,%0A
%7D%0A %7D%0A%7D)
|
e8c0f7fb74268cf844c2e08786e50d2d902372b3 | update primavera 2018 | js/lavaggio_strade.js | js/lavaggio_strade.js | var timeline;
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib = '© <a href="http://openstreetmap.org/copyright">' +
'OpenStreetMap</a> contributors';
var mapboxUrl = 'http://{s}.tiles.mapbox.com/v3/tmcw.map-7s15q36b/{z}/{x}/{y}.png';
var mapboxA... | JavaScript | 0 | @@ -3341,22 +3341,20 @@
ies.
-limit != %22NaN%22
+note != null
) %7B%0A
@@ -3405,20 +3405,19 @@
perties.
-name
+via
+ '%3Cbr/
@@ -3499,13 +3499,12 @@
ies.
-limit
+note
+'%3C/
@@ -3590,20 +3590,19 @@
perties.
-name
+via
%0A
|
52eab8e5b2d2648541a99e9f8f06bcec453cf7d2 | Change copyright year | js/mobiscroll.core.js | js/mobiscroll.core.js | /*!
* Mobiscroll v2.15.0
* http://mobiscroll.com
*
* Copyright 2010-2014, Acid Media
* Licensed under the MIT license.
*
*/
(function ($, undefined) {
function testProps(props) {
var i;
for (i in props) {
if (mod[props[i]] !== undefined) {
return true;
... | JavaScript | 0.000001 | @@ -68,17 +68,17 @@
2010-201
-4
+5
, Acid M
|
681c53145e3d5c611896b18119ee5457ef84b011 | add activity for create a tag | server/routes/tag/tag.controller.js | server/routes/tag/tag.controller.js | import { responseHandler } from '../../core';
import Tag from '../../models/tag';
const debug = require('debug')('boldr:post-controller');
async function listTags(req, res, next) {
try {
const allTags = await Tag.query().eager('[posts]').skipUndefined();
return responseHandler(res, 200, allTags);
} catch ... | JavaScript | 0 | @@ -801,38 +801,32 @@
eateTag(req, res
-, next
) %7B%0A try %7B%0A
@@ -876,16 +876,162 @@
.body);%0A
+ await Activity.query().insert(%7B%0A id: uuid(),%0A user_id: req.user.id,%0A action_type_id: 1,%0A activity_tag: newTag.id,%0A %7D);%0A
retu
|
6aa714497cc83915bcf4985057e3edb954ebae1c | fix typo | server/tests/models/message.test.js | server/tests/models/message.test.js | import { assert } from 'chai';
import models from './../../database/models';
import modelSeeder from '../seed/modelSeeder';
describe('Message Model', () => {
before((done) => {
modelSeeder.resetMessage(modelSeeder.messageDetails, done);
});
after(modelSeeder.emptyMessage);
describe('Validations', () => {
... | JavaScript | 0.000061 | @@ -679,16 +679,17 @@
dy can%5C'
+t
be empt
|
9cba4c0868f4e492d18375e554c23ddaca79f4a8 | Remove username and password | server/watson/nlc/nlc.controller.js | server/watson/nlc/nlc.controller.js | var bluemix = require('../../../config/bluemix');
var extend = require('util')._extend;
var watson = require('watson-developer-cloud');
var bodyParser = require('body-parser');
/**
* Classify texts
* @param {Object} req Requested object.
* @param {Object} res Response object.
* @return {Object} Text... | JavaScript | 0.000067 | @@ -659,44 +659,18 @@
: '
-eb3fc11b-7efb-4d9b-a017-ff017555432e
+%3Cusername%3E
',%0A
@@ -688,20 +688,18 @@
: '
-vVo5YNd0SFx1
+%3Cpassword%3E
',%0A
|
6219f9d036869b1b8ac5d661007c3cd350a9ca6a | Clean up two_dementional_fixed_array | lib/two_dementional_fixed_array.js | lib/two_dementional_fixed_array.js | var _ = require('lodash');
var np = require('named-parameters');
module.exports = function(args) {
var parsedArgs = np.parse(args).
require('rowCount', 'non-negative integer').
require('colCount', 'non-negative integer').
values();
var rowCount = parsedArgs.rowCount;
var colCount = parsedArgs.colCou... | JavaScript | 0.999479 | @@ -810,32 +810,42 @@
quire('location'
+, 'object'
).%0A values(
@@ -1104,16 +1104,26 @@
ocation'
+, 'object'
).%0A
|
4c0c50e4036b880b67cd40d885d322a326a84e68 | use contentParent scroll offset | src/components/animate/inkCssRipple.js | src/components/animate/inkCssRipple.js |
angular.module('material.animations')
.directive('inkRipple', [
'$mdInkRipple',
InkRippleDirective
])
.factory('$mdInkRipple', [
'$window',
'$$rAF',
'$mdEffects',
'$timeout',
'$mdUtil',
InkRippleService
]);
function InkRippleDirective($mdInkRipple) {
return function(scope, element, attr) {
if ... | JavaScript | 0 | @@ -1644,16 +1644,73 @@
ar.noop;
+%0A var contentParent = element.controller('mdContent');
%0A%0A op
@@ -3513,24 +3513,117 @@
p;%0A %7D%0A%0A
+ if (contentParent) %7B%0A top += contentParent.$element.prop('scrollTop');%0A %7D%0A%0A
var cs
|
dee4d92e8f48f722c458e951bd140bb7df287229 | Remove override of the link event | js/responsive-menu.js | js/responsive-menu.js |
if( 'ontouchstart' in window ){ var click = 'touchstart'; }
else { var click = 'click'; }
$('div.burger').on(click, function(){
if( !$(this).hasClass('open') ){ openMenu(); }
else { closeMenu(); }
});
$('div.menu ul li a').on(click, function(e){
e.preventDefault();
closeMenu();
});
functi... | JavaScript | 0 | @@ -215,102 +215,8 @@
%7D);%0A
-%09%0A%0A%09$('div.menu ul li a').on(click, function(e)%7B%0A%09%09e.preventDefault();%0A%09%09closeMenu();%0A%09%7D);%09%09%0A%0A
%0A%09fu
|
a84cc81fc3210432da9d5e92a59129eabf3e8854 | Rename Dragger.isDragging to _isDragging() | demos/spinning-shapes/game.js | demos/spinning-shapes/game.js | ;(function(exports) {
var GOLDEN_RATIO = 1.61803398875;
var SpinningShapesGame = function() {
var autoFocus = false
this.c = new Coquette(this, "canvas", 500, 500 / GOLDEN_RATIO, "white", autoFocus);
this.dragger = new Dragger(this.c); // controls dragging of shapes with mouse
};
SpinningShapesGam... | JavaScript | 0.006403 | @@ -3009,39 +3009,8 @@
) %7B%0A
- if (self.isDragging()) %7B%0A
@@ -3045,24 +3045,24 @@
.center = %7B%0A
+
x:
@@ -3161,24 +3161,58 @@
%0A %7D;%0A
+ if (self._isDragging()) %7B%0A
%7D%0A
@@ -3348,24 +3348,25 @@
if (!this.
+_
isDragging()
@@ -3685,16 +3685,17 @@
%7D,... |
58b8825d35907762d3d8639e8765d5cfc9abc15e | remove static footer | src/components/pages/HomePage/index.js | src/components/pages/HomePage/index.js | import React from 'react';
import {
PageTemplate,
Header,
Footer,
HomeCarousel,
FileCarousel,
CategoryCarousel,
GroupCarousel,
CommunityCarousel,
HomePrinciples,
HomeCommunity,
HomeJoin,
HomeFooter
} from 'components';
import * as FileService from '../../../services/FileService';
class HomePag... | JavaScript | 0.000001 | @@ -1143,24 +1143,28 @@
n /%3E%0A
+ %7B/*
%3CHomeFooter
@@ -1166,16 +1166,20 @@
ooter /%3E
+ */%7D
%0A
|
ffb2dff0d27dfc8609cbb6d2927e97f31782fefe | Fix styling for raw tags editing | server/ViewModels/EditRawTags.js | server/ViewModels/EditRawTags.js | import React from 'react';
import PropTypes from 'prop-types';
import $ from 'jquery';
import AppBar from 'material-ui/AppBar'
import FontIcon from 'material-ui/FontIcon';
import IconButton from 'material-ui/IconButton';
import LinearProgress from 'material-ui/LinearProgress';
import RaisedButton from 'material-ui/Ra... | JavaScript | 0 | @@ -2387,10 +2387,18 @@
ng:
-10
+%228px 24px%22
,%0A
@@ -2442,16 +2442,67 @@
%22wrap%22,%0A
+ width: %22100%25%22,%0A boxSizing: %22border-box%22%0A
%7D;%0A
@@ -3020,36 +3020,8 @@
er%3E%0A
- %3Cdiv style=%7Bstyle%7D%3E%0A
@@ -3073,16 +3073,52 @@
?%0A
+ %3Cdiv styl... |
ca83d1cd1737a19fe52f1f44493d65c60d9f4924 | Call change level function when level is changed (one direction, always from location hash) | js/stateManagement.js | js/stateManagement.js | /* global exports, Profits, World */
var Diversibee = (function() {
var Game = {},
paintCellType,
cellTypes = {
grass: 'grass',
forest: 'forest',
blueberries: 'blueberries'
},
levels = [{
name: '1',
hash: 'level1'
}];
function generateType(coord, seeds) {
// G... | JavaScript | 0 | @@ -216,18 +216,27 @@
vels = %5B
-%7B
%0A
+ %7B%0A
na
@@ -250,16 +250,18 @@
,%0A
+
+
hash: 'l
@@ -271,17 +271,83 @@
l1'%0A
-%7D
+ %7D,%0A %7B%0A name: '2',%0A hash: 'level2'%0A %7D%0A
%5D;%0A%0A fu
@@ -3136,32 +3136,345 @@
();%0A %7D;%0A %7D%0A%0A
+ fu... |
f532f166409693b83427647c80f82e4fd2f47d12 | change requireJs Link in Body | src/components/site/layout/default.njs | src/components/site/layout/default.njs | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>denkstrap-structure | {% block pageTitle %}{% endblock %}</title>
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
{% block content %}
{% endblock %}
<script type="text/javascript" data-main="/components/app/main.js" src="... | JavaScript | 0 | @@ -284,25 +284,17 @@
-main=%22/
-component
+j
s/app/ma
@@ -310,17 +310,9 @@
c=%22/
-component
+j
s/ap
|
33b8e7ec75261b8f076eff491c60b08c862e9ad7 | Fix issue crashing server when student logs in | server/modules/decoder.module.js | server/modules/decoder.module.js | //----------------------------------------------------------------------------//
var admin = require('firebase-admin');
var express = require('express');
var pg = require('pg');
var connectionString = require('../modules/db-config.module');
//----------------------------------------------------------------------------/... | JavaScript | 0 | @@ -3608,24 +3608,65 @@
th === 0) %7B%0A
+ if(userType === 'mentor')%7B%0A
@@ -3710,32 +3710,23 @@
RT INTO
-' + userType + '
+mentors
(email,
@@ -4224,24 +4224,643 @@
%7D);%0A
+ %7D else %7B%0A client.query(%0A 'INSERT INTO students (... |
fa056e1b57b0ea568dff884be7d64ec0270b70f5 | Add selectResidents publication | server/publications/residents.js | server/publications/residents.js | Meteor.publish('allResidents', function () {
return Residents.find();
});
| JavaScript | 0 | @@ -69,8 +69,134 @@
();%0A%7D);%0A
+%0AMeteor.publish('selectResidents', function (residentIdsArray) %7B%0A return Residents.find(%7B_id: %7B$in: residentIdsArray%7D%7D);%0A%7D);%0A
|
34d16a1cdac11ab1f982d70186da27bcaa4d347d | comment change | js/utils/selectize.js | js/utils/selectize.js | /*
A wrapper for the selectize jquery element. A tweaked version of it is in the lib folder.
*/
export const tagsDelimiter = '<=!=>';
import '../lib/selectize';
// hack to work around the circular dependance issue and expose the
// tags delimiter to the '../lib/selectize' module. Only that module
// should ever have... | JavaScript | 0.000001 | @@ -92,16 +92,301 @@
er.%0A*/%0A%0A
+// If triggering selectize from an input%5Btype=text%5D the default delimiter has been changed%0A// in the lib to use the following, since some of our tags may have commas in them. If manipulating%0A// the data (e.g. Array.split(), String.join()), you'll likely want to pass this va... |
a6496602c733dcd7a0eee128a6b88e4ac461fe53 | Update service-worker.js | serviceworkers/service-worker.js | serviceworkers/service-worker.js | "use strict";
console.log("WORKER: executing.");
var CACHE_NAME = "my-site-cache-v3",
shell = [
'',
'/index.html',
'/css/bootstrap.min.css',
'/css/jquery.countdown.css',
'/fonts/custom_font/style.css',
'/css/main.min.css',
'/js/lib/require.js',
'/js/start.js',
'/js/config.js'
];
self.addEventListen... | JavaScript | 0.000001 | @@ -100,16 +100,31 @@
'',%0A%09%09'/
+serviceworkers/
index.ht
@@ -128,24 +128,40 @@
.html',%0A%09%09'/
+serviceworkers//
css/bootstra
@@ -172,24 +172,40 @@
n.css',%0A%09%09'/
+serviceworkers//
css/jquery.c
@@ -223,16 +223,32 @@
s',%0A%09%09'/
+serviceworkers//
fonts/cu
@@ -273,16 +273,32 @@
s',%0A%09%09'/
+se... |
9019410113ba4e7a74d4b9228b1a78ff4959db0b | add base url | app/scripts/app.js | app/scripts/app.js | 'use strict';
/**
* @ngdoc overview
* @name pham6App
* @description
* # pham6App
*
* Main module of the application.
*/
angular
.module('pham6App', [
'ngAnimate',
'ngAria',
'ngCookies',
'ngMessages',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch'
])
.config(function ($rou... | JavaScript | 0.000001 | @@ -401,24 +401,28 @@
mplateUrl: '
+app/
views/main.h
@@ -419,32 +419,32 @@
ews/main.html',%0A
-
controll
@@ -539,24 +539,27 @@
mplateUrl: '
+app
views/about.
@@ -666,16 +666,16 @@
ity', %7B%0A
-
@@ -688,16 +688,20 @@
teUrl: '
+app/
views/sy
|
c308321fda296109b5bd840c352ff4a1d2e99d5a | update AppID facebook | app/scripts/app.js | app/scripts/app.js | 'use strict';
/**
* @ngdoc overview
* @name ifacebookApp
* @description
* # ifacebookApp
*
* Main module of the application.
*/
var app = angular
.module('ifacebookApp', [
'ngAnimate',
'ui.router',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'n... | JavaScript | 0.000005 | @@ -3184,24 +3184,70 @@
og, $fb) %7B%0A%0A
+ // Set AppId Facebook & Init SDK Facebook%0A
$fb.setA
@@ -3301,24 +3301,74 @@
log(
-$fb.getAppId());
+'Facebook AppID: ', $fb.getAppId());%0A%0A // Implement toggle Menu
%0A
|
55cbdae09a496c5eda2551b91fec99c35115d02f | Update app.js | app/scripts/app.js | app/scripts/app.js |
(function(document) {
'use strict';
// Grab a reference to our auto-binding template
// and give it some initial binding values
// Learn more about auto-binding templates at http://goo.gl/Dx1u2g
var app = document.querySelector('#app');
app.displayInstalledToast = function() {
document.querySelector(... | JavaScript | 0.000002 | @@ -749,20 +749,232 @@
tered%0A
-%7D);%0A
+ setTimeout(function() %7B %0A document.querySelectorAll('html hi9-login')%5B0%5D.$.login();%0A %7D,6000)%0A %7D);%0A app.login = function() %7B %0A document.querySelectorAll('html hi9-login')%5B0%5D.$.login();%0A %7D
%0A // Cl
@@ -1207,24 +12... |
5b7073ccf63094e9bf6747e7c71715ad27d59643 | Capital C | app/scripts/app.js | app/scripts/app.js | 'use strict';
/**
* @ngdoc overview
* @name tenorApp
* @description
* # tenorApp
*
* Main module of the application.
*/
angular
.module('tenorApp', [
'ngAnimate',
'ngCookies',
'ngResource',
'ui.router',
'ngSanitize',
'ngTouch'
])
.config(function ($stateProvider, $urlRouterProvider... | JavaScript | 0.999795 | @@ -2164,17 +2164,17 @@
ing the
-c
+C
onferenc
|
8529f1b05368837e2b0ca695f0866e33f8fc9b35 | Remove Obsolete IE8 Compatibility Code | src/core/ReactEventTopLevelCallback.js | src/core/ReactEventTopLevelCallback.js | /**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0 | @@ -1991,237 +1991,8 @@
%7D%0A
- // TODO: Remove when synthetic events are ready, this is for IE%3C9.%0A if (nativeEvent.srcElement &&%0A nativeEvent.srcElement !== nativeEvent.target) %7B%0A nativeEvent.target = nativeEvent.srcElement;%0A %7D%0A
|
cbc4401676446c106afb93a2906ef4bdca8b7f95 | call setState in same function call | src/createNodeGroup/createNodeGroup.js | src/createNodeGroup/createNodeGroup.js | // @flow weak
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import dataUpdate from '../core/dataUpdate';
import withTransitions from '../core/withTransitions';
export const propTypes = {
/**
* An array of data objects.
*/
data: PropTypes.array.isRequired,
/**
* The C... | JavaScript | 0.000006 | @@ -1380,71 +1380,170 @@
-this.removed.set(udid, true);%0A this.updateNodes(this.props
+const %7B removed, props: %7B data %7D %7D = this;%0A%0A this.setState((state) =%3E %7B%0A return dataUpdate(data, state, removed.set(udid, true), keyAccessor);%0A %7D
);%0A
|
e914bb125b095345b82d40c4c0d5104bc4a0b004 | fix for DFL-646, Cannot select stylesheets using dropdown in the stylesheet view | src/ecma-debugger/views-stylesheets.js | src/ecma-debugger/views-stylesheets.js |
var cls = window.cls || ( window.cls = {} );
/**
* @constructor
* @extends ViewBase
*/
cls.StylesheetsView = function(id, name, container_class)
{
var self = this;
this.createView = function(container)
{
var selected_sheet = stylesheets.getSelectedSheet(arguments);
if(selected_sheet)
{
// ... | JavaScript | 0 | @@ -1639,16 +1639,35 @@
ue = %22%22;
+%0A var self = this;
%0A%0A cons
@@ -1669,18 +1669,16 @@
const %0A
-
HREF =
@@ -1699,12 +1699,8 @@
7;%0A%0A
- %0A%0A
th
@@ -2280,21 +2280,16 @@
bj)%0A %7B%0A
- %0A
// T
@@ -3110,17 +3110,16 @@
ments);%0A
-%0A
if(r
@@ -3118,24 +3118,48 @@
if(rule... |
f1fd145a36b6521ce367b3cbb0be9461a34be2c9 | Update Unit Test | test/purchasing/purchase-order/report/report.js | test/purchasing/purchase-order/report/report.js | require("should");
var helper = require("../../../helper");
var purchaseRequestDataUtil = require('../../../data').purchasing.purchaseRequest;
var validatePR = require("dl-models").validator.purchasing.purchaseRequest;
var PurchaseRequestManager = require("../../../../src/managers/purchasing/purchase-request-manager")... | JavaScript | 0 | @@ -5484,884 +5484,4 @@
%0A%7D);
-%0A%0Avar dataReport;%0Ait(%22#10. should success when get report with date parameter%22, function(done) %7B%0A purchaseOrderManager.getDataPOSupplier(%7B%22dateForm%22 : %222017-01-02%22, %22dateTo%22 : %222017-01-02%22%7D)%0A .then((item) =%3E %7B%0A dataReport ... |
48ba839e252cded5df9023ed1ff720e7d3a4c965 | Update viewport spec | test/spec/directives/viewport.directive.spec.js | test/spec/directives/viewport.directive.spec.js | 'use strict';
describe('in-viewport: viewport directive', function() {
var $compile,
$rootScope,
$scope;
beforeEach(module('in-viewport'));
beforeEach(inject(function (_$compile_, _$rootScope_, viewportDirective) {
$compile = _$compile_;
$rootScope = _$rootSco... | JavaScript | 0 | @@ -4059,37 +4059,37 @@
uld call the on
-enter
+leave
callback', func
@@ -4486,32 +4486,64 @@
; width: 200px;%22
+ viewport-enter=%22entered = true%22
viewport-leave=
@@ -5049,8 +5049,9 @@
;%0A%0A%0A%0A%7D);
+%0A
|
62d598846b9beb6ff24038507596a93d6314d685 | Add notify mockup to the new_wallet test. | test/unit/frontend/controllers/newWalletSpec.js | test/unit/frontend/controllers/newWalletSpec.js | /**
* @file New Wallet Angular Tricks
*/
'use strict';
define(['angular-mocks', 'testUtils'],
function (mocks, testUtils) {
describe('New wallet controller', function() {
var newWalletCtrl, scope, $location, _location, DarkWallet, pars = {};
beforeEach(function (done) {
testUtils.stub('darkwallet',... | JavaScript | 0 | @@ -931,24 +931,164 @@
ntroller) %7B%0A
+ var notify = %7B%0A success: function()%7B%7D,%0A warning: function()%7B%7D,%0A error: function()%7B%7D%0A %7D;%0A
sc
@@ -1302,16 +1302,32 @@
location
+, notify: notify
%7D);%0A
|
eca22240eafc57e34268ea6be09741115f3d8fcb | Fix bug where numeric settings were strings | demo.js | demo.js | 'use strict';
var EnvGen = require('./index');
var createGrapher = require('./grapher');
var audioContext = new (window.AudioContext || window.webkitAudioContext)();
// since ConstantSourceNode is not yet widely available
function createConstantNode(audioContext, v) {
var constantBuffer = audioContext.createBuffer... | JavaScript | 0.000001 | @@ -2978,20 +2978,83 @@
nput');%0A
+ controlElem.type = 'number';%0A controlElem.step = 'any';%0A
%7D%0A
-
%0A contr
@@ -3137,24 +3137,53 @@
unction() %7B%0A
+ if (setting.options) %7B%0A
egen%5Bset
@@ -3214,16 +3214,93 @@
.value;%0A
+ %7D else %7B%0A egen%5Bsetting.name%5D = parseFloat(... |
a9f04121957b459a8564fe786c9f109d4720c331 | replace mirage with factory-guy in integration test | tests/integration/components/frost-list-test.js | tests/integration/components/frost-list-test.js | import Ember from 'ember'
import {
expect, assert
}
from 'chai'
import {
describeComponent,
it
}
from 'ember-mocha'
import wait from 'ember-test-helpers/wait'
import hbs from 'htmlbars-inline-precompile'
import setupMirage from '../../helpers/mirage-integration'
import {beforeEach} from 'mocha'
import {$hook, ini... | JavaScript | 0.000004 | @@ -19,16 +19,34 @@
'ember'%0A
+const %7BA%7D = Ember%0A
import %7B
@@ -55,16 +55,18 @@
expect,
+%0A
assert%0A
@@ -88,16 +88,79 @@
mport %7B%0A
+ make,%0A manualSetup%0A%7D from 'ember-data-factory-guy'%0Aimport %7B%0A
descri
@@ -290,67 +290,8 @@
le'%0A
-import setupMirage from '../../helpers/mirage-integ... |
252380141bae46fc5c6fcaf9856bc072a5dc71c1 | Update jquery.howerwp.js | jquery.howerwp.js | jquery.howerwp.js | (function($) {
$.fn.slideshoWp = function( options ) {
// Establish our default settings
var settings = $.extend({
size : 'large',
color : '#AADBA0'
}, options);
return this.each( fu... | JavaScript | 0 | @@ -845,39 +845,32 @@
'#myFunctionback
-smaller
').css( 'margin-
@@ -934,15 +934,8 @@
back
-smaller
').c
@@ -1637,421 +1637,4 @@
%0A%7D%0A
-%0Afunction myFunctionback()%7B%0A %0A if( b == '0' )%7B%0A images%5Ba-1%5D.css(%22visibility%22,%22visible%22);%0A images%5Bb%5D.css(%22visibility%22,%22hidden%22);%0A b=... |
baf4f672abf18942cf58df808c23db7b1862d529 | check if options is passed | jquery.lazyimg.js | jquery.lazyimg.js | $.fn.lazyimg = function(options) {
options.offset = options.offset || 0;
options.attr = options.attr || 'lazy-img-url';
$(this).each(function() {
var $img = $(this),
windowHeight,
scrollTop,
imgTop;
if(!$img.is(':visible')) {
return;
}
windowHeight = $(wind... | JavaScript | 0.000002 | @@ -29,16 +29,55 @@
ons) %7B%0A%0A
+ if(!options) %7B%0A options = %7B%7D;%0A %7D%0A
option
@@ -366,18 +366,20 @@
ight(),%0A
-%09%09
+
scrollTo
@@ -444,10 +444,12 @@
op,%0A
-%09%09
+
imgT
|
c60694208d8107d59f17cdf898cee1e1f0ea0d2b | Add mousetrap binding to up-key for console response; add for rest of the directional keys | js/application.js | js/application.js | JavaScript | 0 | @@ -0,0 +1,100 @@
+$(document).ready(function() %7B%0A%0A Mousetrap.bind(%22up%22, function() %7B%0A console.log(%22up%22);%0A %7D)%0A%0A%7D);
| |
6475e19af046bf815dde6740e7802004d98bea72 | Add hover information. | js/controllers.js | js/controllers.js | var mythTVWebApp = angular.module('mythTVWebModule', []);
mythTVWebApp.config(function($httpProvider) {
$httpProvider.interceptors.push(function($q, $rootScope) {
return {
'request' : function(config) {
$rootScope.$broadcast('loading-started');
return config || $q.when(config);
},
'response' : func... | JavaScript | 0 | @@ -3108,24 +3108,178 @@
);%0A%09%09%09%09%0A%09%09%09%7D
+%0A%09%09%09$scope.hoverWork = function(recording) %7B%0A%09%09%09%09console.log(%22Hover Work: %22 + recording);%0A%09%09%09%09$scope.hoverTitle=recording.Title;%0A %7D
%0A%0A%09%09%7D%0A%0A%0A %5D);
|
9bf8537c76cceb9edbe02a38e01be5c370e6cd72 | Remove menubar | js/crm.tinymce.js | js/crm.tinymce.js | (function($, _) {
function getInstance(item) {
var id = $(item).attr("id");
return tinyMCE.get(id);
}
function openFiles(field_name, url, type, win) {
var browseUrl = CRM.config.userFrameworkResourceURL + "packages/kcfinder/browse.php?opener=tinymce4&cms=civicrm&type="+type+"&field="+field_name+"&the... | JavaScript | 0.000002 | @@ -850,24 +850,22 @@
-theme : %22modern%22
+menubar: false
,%0A
|
016e83a6697ae86f42b7c574532c44ef6a0d8871 | Fix function name | js/crm.tinymce.js | js/crm.tinymce.js | /*_.init(function(){
tinyMCE.init(
{selector:"textarea",
plugins:"link image media",
toolbar:"link | image | media",
file_browser_callback:function(d,a,b,c){
tinyMCE.activeEditor.windowManager.open({
file:"/demo/kcfinder/browse.php?opener=tinymce4&field="+d+"&type="+b+"&dir="+b+"/publ... | JavaScript | 0.999896 | @@ -3626,29 +3626,20 @@
editor.
-updateElement
+save
();%0A
|
e9471f9184c3991d1ca99624b3cc6f189a0c04c4 | Add additional TODO. | js/displaydraw.js | js/displaydraw.js | var formats = ["8-Panel Strip", "9-Panel Strip", "6-Panel Strip",
"4-Panel Strip", "New Yorker Style", "5-Minute Time Limit Scrawl Page",
"Rough Pencils Only", "Carl Barks Panel Copy 4 Times", " the Alphabet. The whole thing. Slowly.",
"a cartoon or comic strip character from memory. Then draw it looking at a refere... | JavaScript | 0 | @@ -741,16 +741,79 @@
of day%0D%0A
+// TODO: Maybe something like http://www.diddly.com/random/%0D%0A%0D%0A
%0D%0A// Dis
|
72ce45fa5f124a66c983c75f13a3d6410ebabed4 | rename to build | src/interface/report/Results/Header.js | src/interface/report/Results/Header.js | import React from 'react';
import PropTypes from 'prop-types';
import { Trans } from '@lingui/macro';
import { Link } from 'react-router-dom';
import DEFAULT_BUILD from 'parser/DEFAULT_BUILD';
import { TooltipElement } from 'common/Tooltip';
import { getLabel as getDifficultyLabel } from 'game/DIFFICULTIES';
import ge... | JavaScript | 0.000057 | @@ -5410,16 +5410,13 @@
-Rotation
+Build
:%0A
|
cfdf9e4357d1c1ff80edf6e3be9fd0b309e44beb | update data | js/streamgraph.js | js/streamgraph.js |
var datearray = [];
var colorrange = [];
function chart(csvpath, color, width) {
if (color == "blue") {
colorrange = ["#045A8D", "#2B8CBE", "#74A9CF", "#A6BDDB", "#D0D1E6", "#F1EEF6"];
}
else if (color == "pink") {
colorrange = ["#980043", "#DD1C77", "#DF65B0", "#C994C7", "#D4B9DA", "#F1EEF6"];
}
... | JavaScript | 0.000001 | @@ -2567,16 +2567,41 @@
k(nest);
+%0A console.log(layers);
%0A%0A x.
|
14f8ef241ac99d467d346c359ec31c163d575813 | update with changes from jxcore-cordova-tests | jxcore/app/app.js | jxcore/app/app.js | var BaseApp = require('rendr/shared/app')
, handlebarsHelpers = require('./lib/handlebarsHelpers');
var Backbone = require('backbone');
var BackbonePouch = require('backbone-pouch');
var PouchDB = require('../pouchdb/backbone-pouch/node_modules/pouchdb/lib/index.js');
Backbone.sync = BackbonePouch.sync({
db: new Po... | JavaScript | 0 | @@ -204,16 +204,29 @@
ire('../
+node_modules/
pouchdb/
|
622bb2e9628bc4df1324f2fbcf4510b37c33136e | add more tests for optional paranthesis | lib/6to5/types.js | lib/6to5/types.js | var b = require("./builders");
var n = require("acorn-ast-types").namedTypes;
var _ = require("lodash");
exports.FUNCTION_TYPES = ["ArrowFunctionExpression", "FunctionDeclaration", "FunctionExpression"];
exports.PATTERN_TYPES = ["ArrayPattern", "ObjectPattern"];
exports.BINARY_TYPES = ["BinaryExpression", "LogicalE... | JavaScript | 0 | @@ -554,17 +554,16 @@
n%22%5D%0A%7D;%0A%0A
-%0A
exports.
@@ -4728,36 +4728,44 @@
ctionExpression%22
- &&
+) %7B%0A if (
parent.type ===
@@ -4757,36 +4757,38 @@
arent.type === %22
-Call
+Member
Expression%22 && p
@@ -4785,38 +4785,38 @@
sion%22 && parent.
-callee
+object
=== node) %7B%0A
@@ -4808,32 +48... |
166b438e45e0a63f1c70c1d8bc813d8d1da918f6 | update stat request url to reflect options changes | lib/MlbRequest.js | lib/MlbRequest.js | const EventEmitter = require('events').EventEmitter;
const url = require('url');
const https = require('https');
const ACTIONS = require('./Config').ACTIONS;
const BASE_URLS = require('./Config').BASE_URLS;
const STAT_TYPES = require('./Config').STAT_TYPES;
/**
* Represents an MLB Request.
*/
class MlbRequest exten... | JavaScript | 0 | @@ -1348,16 +1348,21 @@
options.
+stat_
season%7D&
@@ -1372,17 +1372,41 @@
e_type='
-R
+$%7Boptions.stat_game_type%7D
'%60;%0A
|
7fba374a67573ee080c61315a58984a1ced347f5 | Add createChannel and recreateChannel and handle channel error and close event | lib/amqp-layer.js | lib/amqp-layer.js | var amqp = require('amqplib');
var amqpUrl, amqpConnection, intervalID;
function connect(_amqpUrl) {
amqpUrl = amqpUrl || _amqpUrl || process.env.AMQP_URL || 'amqp://localhost';
return amqp.connect(amqpUrl)
.then(function (_connection) {
amqpConnection = _connection;
_connection.on('close', reconnect)... | JavaScript | 0 | @@ -416,104 +416,467 @@
urn
-_connection.createChannel()%0A .then(function (_channel) %7B%0A return _channel;%0A %7D);%0A %7D);
+createChannel();%0A %7D);%0A%7D%0A%0Afunction createChannel() %7B%0A if (amqpConnection) %7B%0A return amqpConnection.createChannel()%0A .then(function (_channel) %7B%0A... |
a6262fa9e01ede1497faadbe2cd20b29fbcfb8d0 | Fix to prevent crash #61 | lib/appendPage.js | lib/appendPage.js | const hummus = require('hummus');
const hummusUtils = require('./utils');
/**
* Append pages from the other pdf to the current pdf
* @name appendPage
* @function
* @memberof Recipe
* @param {string} pdfSrc - The path for the other pdf.
* @param {number|number[]} pages - The page number or the array of page numbe... | JavaScript | 0 | @@ -476,24 +476,164 @@
ges%5D;%0A %7D%0A
+ // Using stream so it can be closed to release reader resource (Issue #61) %0A const instream = new hummus.PDFRStreamForFile(pdfSrc);%0A
const pd
@@ -662,22 +662,24 @@
eReader(
-pdfSrc
+instream
);%0A c
@@ -722,16 +722,39 @@
ount();%0A
+ instream.close... |
ce86fbe02f7ad0a3475001dca84ee858a5eba2d6 | Increase the default maxSockets setting to 100 | lib/apps/image.js | lib/apps/image.js | "use strict";
var path = require('path'),
async = require('async'),
mkdirp = require('mkdirp'),
fs = require('fs-extra'),
Error404 = require('../../lib/errors').Error404,
check = require('validator').check,
utils = require('../utils'),
... | JavaScript | 0 | @@ -398,16 +398,360 @@
.reIndex
+,%0A http = require('http');%0A%0A/**%0A * Increase the number of connections node can make to a single host from%0A * the default of 5. This is necessary because the image proxy might be making%0A * lots of requests to internal images on a single page, and we don't want%0A... |
0b40adcb7757b4bbcd901b7a88f9d63b68b612f8 | Update blockchain.js | lib/blockchain.js | lib/blockchain.js | var mkdirp = require('mkdirp');
Blockchain = function(blockchainConfig) {
this.config = blockchainConfig;
}
Blockchain.prototype.generate_basic_command = function() {
var config = this.config;
var address = config.account.address;
var cmd = "geth ";
var rpc_api = ['eth', 'web3'];
if (config.datadir !== ... | JavaScript | 0.000004 | @@ -775,24 +775,69 @@
st + %22%5C%22 %22;%0A
+ %0A if(config.mine)%0A cmd += %22--mine %22;%0A
%0A if (confi
@@ -855,33 +855,32 @@
ads !== void 0)
-%7B
%0A cmd += %22--m
@@ -930,53 +930,8 @@
%22;%0A
- %7D%0A%0A if(config.mine)%0A cmd += %22--mine %22;%0A
%0A
@@ -959,33 +959,32 @@
ock !== voi... |
522616fc088da07eee78c4f1d93059c92157f8ff | Allow an empty filter value to be passed for cases where you actually want to filter to an empty string | lib/collection.js | lib/collection.js | /**
* Copyright (c) ActiveState 2013 - ALL RIGHTS RESERVED.
*/
define([
'underscore',
'./page'],
function (_, Page) {
var api_version_prefix = '/v2/';
var collection = function () {
};
collection.prototype = {
makeQueryString: function (options) {
... | JavaScript | 0 | @@ -754,32 +754,8 @@
name
- && options.filter.value
) %7B%0A
|
1fda90b8b05cba86ad7097e747b6b26492c6e06b | clarify documentation for {{length}} helper. closes #221 | lib/collection.js | lib/collection.js | 'use strict';
var array = require('./array');
var object = require('./object');
var utils = require('./utils');
var forEach = array.forEach;
var forOwn = object.forOwn;
/**
* Expose `helpers`
*/
var helpers = module.exports;
/**
* Block helper that returns a block if the given collection is
* empty. If the coll... | JavaScript | 0.997642 | @@ -1411,70 +1411,386 @@
ion.
-%0A *%0A * %60%60%60handlebars%0A * %7B%7Blength %22%5B'a', 'b', 'c'%5D%22%7D%7D%0A * //=%3E 3
+ When using a string literal in the%0A * template, the string must be value JSON. See the example below. Otherwise pass%0A * in an array or object from the context%0A *%0A * %60%60%60handlebar... |
8318c0ceea503132816aa0fe5bc976582f22de7c | Remove stream event echoing from Connection | lib/connection.js | lib/connection.js | var net = require('net')
, events = require('events')
, util = require('util')
, protocol = require('./protocol')
, generate = require('./generate')
, parse = require('./parse');
var Connection = module.exports = function Connection(stream, server) {
this.server = server;
this.stream = stream;
this.buf... | JavaScript | 0 | @@ -407,40 +407,8 @@
%7B%7D;%0A
- //this.stream._$owner = this;%0A
th
@@ -455,297 +455,8 @@
s));
-%0A //this.stream.on('timeout', this.timedOut);%0A%0A var evs = %5B'close', 'error'%5D;%0A%0A for (var i = 0; i %3C evs.length; i++) %7B%0A this.stream.on(evs%5Bi%5D, function(conn, event) %7B%0A return fu... |
b0cc00fc93f2b59b47beb3026f11c131a0ce8232 | Update code to match code style | lib/converters.js | lib/converters.js | // converters
var converters = module.exports = {};
function generateHeader(repeat) {
return function (input, json2md) {
return "#".repeat(repeat) + " " + json2md(input);
}
}
function indent(content, spaces, ignoreFirst) {
var lines = content;
if (typeof content === "string") {
lines =... | JavaScript | 0 | @@ -630,31 +630,32 @@
unction
-emphasis
+parseText
Format
-s
+
( text )
@@ -663,29 +663,42 @@
%7B%0A
-return %7B%0A
+ var formats = %7B%0A
+
strong:
'**'
@@ -697,26 +697,30 @@
ng:
-'**',%0A
+%22**%22%0A
+ ,
italic:
'*',
@@ -719,91 +719,21 @@
ic:
-'*',%0A %7D;%0A%7D%0A%0Afunction p... |
a46f03cc3561eaeaf76af1509e5d610da955d02e | support batch deletion of templates | lib/core/store.js | lib/core/store.js | const {fs, assign} = require('../utils')
module.exports = class Store {
constructor(_path) {
this.path = _path
try {
this.data = require(_path)
} catch (err) {
this.data = {}
}
}
get(key, prefix) {
if (prefix) {
if (typeof prefix === 'string') {
return this.data[pre... | JavaScript | 0 | @@ -747,24 +747,131 @@
del(key) %7B%0A
+ const keys = Array.isArray(key) ? key : %5Bkey%5D%0A for (let i = 0, len = keys.length; i %3C len; i++) %7B%0A
delete t
@@ -878,25 +878,35 @@
his.data%5Bkey
-%5D
+s%5Bi%5D%5D%0A %7D
%0A return
|
82182643ea6ecfe9e1db299419b49506f53afea1 | Use the tracing componenet directly | lib/core/trace.js | lib/core/trace.js | /* See license.txt for terms of usage */
"use strict";
var { Cu } = require("chrome");
var FBTrace = {
sysout: function() {}
}
try {
var scope = {};
Cu["import"]("resource://firebug/firebug-trace-service.js", scope);
FBTrace = scope.traceConsoleService.getTracer("extensions.firebug");
}
catch(err) {
}
// x... | JavaScript | 0 | @@ -178,22 +178,22 @@
urce://f
-irebug
+btrace
/firebug
|
f07c97f3788f8f681e0c26cd17c8bd57585d1348 | fix semantics using bulk_docs saver | lib/couchCache.js | lib/couchCache.js | /* global JSON console require process */
var superagent = require('superagent')
var _ = require('lodash')
var globals=require('./globals.js')
var geom_utils = require('geom_utils')
var toQuery = require('couchdb_toQuery')
var async = require('async')
var env = process.env
var _cuser = env.COUCHDB_USER
var _cpass = en... | JavaScript | 0.001878 | @@ -6789,21 +6789,28 @@
saver(
+%7Bdocs:
chunk
+%7D
,callbac
|
696b41d9a68d99bdb8b51c68c35201d559ed423a | Call subscriber callback asyncronously | lib/dispatcher.js | lib/dispatcher.js | (function (root, factory) {
/* istanbul ignore next */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['exports'], factory);
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
factory(exports);
... | JavaScript | 0.000001 | @@ -4466,16 +4466,49 @@
ontext;%0A
+ setTimeout(function () %7B%0A
ca
@@ -4514,21 +4514,20 @@
allback.
-apply
+call
(context
@@ -4532,14 +4532,25 @@
xt,
-%5B
data
-%5D
+);%0A %7D, 0
);%0A
|
f7e7cfdd027a3899c078de074007f6205b1ae87c | Add steps to do analysis to intra-procedurals | lib/dujs/index.js | lib/dujs/index.js | /**
* Created by chengfulin on 2015/4/20.
*/
var analyzedCFGBuilder = require('./analyzedcfgbuilder'),
CFGExt = require('./cfgext'),
Def = require('./def'),
ScopeTree = require('./scopetree');
function main(source) {
"use strict";
var intraProceduralAnalysisItems = [],
interProceduralAnal... | JavaScript | 0.000007 | @@ -198,18 +198,68 @@
petree')
+,%0A DefUseAnalyzer = require('./defuseanalyzer')
;%0A
-
%0Afunctio
@@ -954,24 +954,197 @@
opeTree));%0A%0A
+ /* Do analysis */%0A intraProceduralAnalysisItems.forEach(function (item) %7B%0A DefUseAnalyzer.doAnalysis(item);%0A DefUseAnalyzer.findDUPairs(item);%... |
3834a06bbbac21a860509c15efb6e1a03dee1945 | add type assertions | lib/es6/simctl.js | lib/es6/simctl.js | import Q from 'q';
import cp from 'child_process';
import { sleep, retry } from 'asyncbox';
import log from 'npmlog';
async function simExec (cmd, timeout, args = []) {
args = args.map((arg) => {
if (arg.indexOf(" ") !== -1) {
return '"' + arg + '"';
}
return arg;
});
cmd = "xcrun simctl " + cm... | JavaScript | 0.000002 | @@ -139,16 +139,23 @@
xec (cmd
+:string
, timeou
@@ -159,20 +159,39 @@
eout
-, args = %5B%5D)
+:number, args:Array = %5B%5D):Array
%7B%0A
@@ -509,24 +509,31 @@
Device (name
+:string
, deviceType
@@ -538,20 +538,43 @@
peId
-, runtimeId)
+:string,%0A runtimeId:string):void
%7B%0A
@@ -667,25 +667,37 @@
Dev... |
0c61716c0807cc46c54598ee55e6986d56aebd68 | Fix accessToken (#1275) | lib/extensions.js | lib/extensions.js | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// 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/li... | JavaScript | 0 | @@ -4593,18 +4593,18 @@
string'
-%7C%7C
+&&
!(featu
|
b13fb7a920fb2dc0b9f2d739f80ceb599e6de373 | Create unique temp dir and don't resume | lib/fetch-docs.js | lib/fetch-docs.js | var fs = require('fs')
var os = require('os')
var path = require('path')
var tar = require('tar-fs')
var gunzip = require('gunzip-maybe')
var mkdir = require('mkdirp')
var nugget = require('nugget')
var cpr = require('cpr')
var through = require('through2')
var rimraf = require('rimraf')
var yaml = require('yamljs')
va... | JavaScript | 0 | @@ -725,17 +725,34 @@
pDir(),
-'
+Math.random() + '-
electron
@@ -1157,28 +1157,8 @@
ir,%0A
- resume: true,%0A
|
ffb3e992dffb6b02c10f1f04e8196e87cfc7ddf9 | Fix test | lib/index.test.js | lib/index.test.js | import VueApify from './index'
import axios from 'axios'
import httpAdapter from 'axios/lib/adapters/http'
const host = 'http://localhost';
axios.defaults.host = host;
axios.defaults.adapter = httpAdapter;
describe('VueApify', () => {
describe('GlobalHook', () => {
const axiosMock = () => Promise.resolve({ su... | JavaScript | 0.000004 | @@ -4637,16 +4637,144 @@
k: hook1
+,%0A children: %5B%0A %7B name: 'child', url: 'https://httpbin.org/get', method: 'get' %7D%0A %5D%0A
%7D%0A
@@ -5799,16 +5799,22 @@
nt.child
+.child
()).reso
|
a35a431b67f115c8519e3b056e45b322a9b8ec05 | Refactor HTTP headers sending | src/protocols/handlers/http/headers.js | src/protocols/handlers/http/headers.js | 'use strict';
const parsePreferHeaderLib = require('parse-prefer-header');
const { throwError } = require('../../../error');
// Returns a request's HTTP headers, normalized lowercase
const parseHeaders = function ({ specific: { req: { headers = {} } } }) {
return headers;
};
// Parses Prefer HTTP header
const par... | JavaScript | 0.000003 | @@ -703,17 +703,8 @@
ific
-: %7B res %7D
, he
@@ -725,65 +725,237 @@
%7B%0A
-for (const %5Bname, value%5D of Object.entries(headers)) %7B%0A
+return Object.entries(headers).reduce(%0A (specificA, %5Bname, value%5D) =%3E%0A sendHeader(%7B specific: specificA, name, value %7D),%0A specific,%0A );%0A%7D... |
82064b48ca3a0a41f5d88248334afa83b419b378 | Refactor variable names in currentStatusesReducer | src/reducers/currentStatusesReducer.js | src/reducers/currentStatusesReducer.js | import * as types from '../actions/actionTypes';
import initialState from './initialState';
import {deduplicateArray} from '../utils/utilityMethods';
export default function currentStatusesReducer(state = initialState.currentCommitStatusesData, action) {
switch (action.type) {
case types.STATUSES_LOADED_FOR_CURR... | JavaScript | 0 | @@ -350,20 +350,16 @@
Contexts
-List
= actio
@@ -447,36 +447,32 @@
filteredContexts
-List
= deduplicateAr
@@ -478,36 +478,32 @@
rray(rawContexts
-List
);%0A%0A return
@@ -716,36 +716,32 @@
filteredContexts
-List
%0A %7D;%0A %7D%0A
@@ -808,20 +808,16 @@
Contexts
-List
= Objec
@@ -1032,20 +1032,... |
bb4f1e3dee0fda55066ee976e11efd645c234576 | Fix log rotation | lib/log-writer.js | lib/log-writer.js | var util = require('util');
var stream = require('stream');
var fs = require('fs');
var spawn = require('child_process').spawn;
var generateLogName = require('./logname').generate;
module.exports = LogWriter;
function LogWriter(worker, options) {
if (!(this instanceof LogWriter)) return new LogWriter(worker, optio... | JavaScript | 0 | @@ -1327,16 +1327,21 @@
is.pipe(
+this.
sink);%0A
|
da64cac4147671714bba6161682b817e871f4003 | fix the wrong iconName | src/routes/UIElement/iconfont/index.js | src/routes/UIElement/iconfont/index.js | import React from 'react'
import { Iconfont } from '../../../components'
import { Table, Row, Col, Icon } from 'antd'
import styles from './index.less'
import './emoji.js'
const colorfulIcons = ['boluo', 'baixiangguo', 'chengzi', 'boluomei', 'caomei', 'dayouzi', 'chelizi', 'fanqie', 'hamigua', 'ganlan',
'juzi', 'hei... | JavaScript | 0.999995 | @@ -1279,17 +1279,16 @@
=%22star-o
-o
%22 /%3E%0A %3C
|
8f6656a0c78e0d3f0b99fa8b937177898578b783 | use 303 instead of 302 (303 is more correct) | lib/middleware.js | lib/middleware.js | var Connect = require("connect"),
router = require("./router"),
cache = require("./simple-cache");
gzip = require('connect-gzip'),
feather = require('./feather'),
Semaphore = require('./semaphore'),
_ = require("underscore")._;
var _404error = "404 - The file you have requested could no... | JavaScript | 0.00001 | @@ -2063,9 +2063,9 @@
= 30
-2
+3
;%0D%0A
@@ -3565,20 +3565,16 @@
%5D;%0D%0A%0D%0A
-%0D%0A%0D%0A
if
@@ -4769,16 +4769,17 @@
tance an
+d
splice
|
3ea95915b101cb35634a6c4a3bd59b56b15d25a6 | Fix response from action | lib/middleware.js | lib/middleware.js | var connect = require('connect'),
fs = require('fs'),
utils = require('./utils'),
allowCrossOrigin = require('./allow-cross-origin'),
logger = utils.logger(__filename),
clientJS = __dirname+'/../public/client.min.js';
var radiodanClient = require... | JavaScript | 0.000025 | @@ -1736,17 +1736,8 @@
eply
-.response
%7C%7C
@@ -1763,19 +1763,13 @@
or:
-reply.error
+false
%0A
|
fe57ce36480a64801b0a57e980c0496d17b8d0b0 | Fix best record revision precedence | src/tasks/consolidate-dataset/index.js | src/tasks/consolidate-dataset/index.js | const mongoose = require('mongoose');
const pick = require('lodash').pick;
const _ = require('lodash');
const distributions = require('./distributions');
const computeFacets = require('../../helpers/facets').compute;
const Promise = require('bluebird');
const convertDataset = require('../../helpers/convertDataset');
c... | JavaScript | 0.998229 | @@ -772,19 +772,8 @@
rt('
--createdAt
-rev
@@ -781,16 +781,27 @@
sionDate
+ -createdAt
')%0A
|
f460dc7c65bcf95dc601dc49c38158bc89c53c8b | Normalize socket test._ntf data (match http/dns) | lib/ntf/socket.js | lib/ntf/socket.js | var dns = require('dns')
, net = require('net')
, utils = require('./utils')
var exports = module.exports = function(parentOpts) {
if (typeof(parentOpts) === 'string') {
parentOpts = { host: parentOpts }
}
return {
tcp: function(opts, callback) {
if (typeof(opts) === 'number') {
opts = ... | JavaScript | 0.000002 | @@ -437,36 +437,8 @@
-// add test to module%0A
retu
@@ -456,16 +456,39 @@
(test) %7B
+%0A test._ntf = %7B%7D
%0A
@@ -1247,28 +1247,8 @@
%7D)%0A%0A
- test._ntf = %7B%7D%0A%0A
|
46b15975c8f392baa9c6fdf9de7cd31e9c3106ee | complete help info of "ctx server" | lib/opt/server.js | lib/opt/server.js | 'use strict';
exports.offset = 3;
exports.list = {
port: {
short: 'p',
type: Number,
value: 8765
},
open: {
type: Boolean,
value: true
}
};
exports.info = 'Start cortex server';
exports.usage = 'ctx server [options]'; | JavaScript | 0 | @@ -85,16 +85,40 @@
Number,%0A
+%09%09info: 'server port.',%0A
%09%09value:
@@ -154,16 +154,108 @@
oolean,%0A
+%09%09info: 'if %60true%60, your browser will automatically open cortex server root when started.',%0A
%09%09value:
|
cc1cc17f75d6554a8e379834bddd3df67a809576 | Fix comment | lib/regionUtil.js | lib/regionUtil.js | import assert from 'assert'
import similarMunicipalities from '../data/similarMunicipalities'
function mirror(object) {
return Object.keys(object).reduce((acc, key) => {
acc[object[key]] = key
return acc
}, {})
}
function allRegionsOfType(type, skip, regions) {
const unsorted = regions.filter(region => ... | JavaScript | 0 | @@ -5008,12 +5008,22 @@
rom
-Card
+DownloadWidget
.jsx
@@ -5042,19 +5042,15 @@
ser
-chooses the
+selects
con
@@ -5058,12 +5058,11 @@
ent
-of a
+for
CSV
|
18101a985cd5e2772d46ae7105a54653d5dbdd9e | Remove use of unneeded through stream to prevent response from starting to emit data before hooked to output steam | lib/restClient.js | lib/restClient.js | var request = require('request'),
es = require('event-stream'),
Promise = require('bluebird'),
_ = require('underscore');
module.exports = function(endpoint, timeout, pollDelay) {
if (!endpoint) {
throw new Error('Must supply endpoint');
}
var requestTimeout = timeout || 5 * 60 * 1000;
var po... | JavaScript | 0 | @@ -31,42 +31,8 @@
'),%0A
- es = require('event-stream'),%0A
@@ -2608,212 +2608,27 @@
-var through = es.through();%0A through.pause();%0A%0A response.pipe(through);%0A cb(null, through);%0A%0A process.nextTick(function() %7B%0A through.resume();%0A ... |
149712572280c65682af48ed0e6e76ce637d44de | Fix sqlContext.js comments for jsdoc | lib/sqlContext.js | lib/sqlContext.js | "use strict";
var DataFrameReader = require("./DataFrameReader");
var DataFrame = require("./DataFrame");
var java = require("./java");
var sqlc;
class SQLContext {
constructor(jvm_sqlContext, jvm_javaSparkContext) {
this.jvm_obj = jvm_sqlContext;
this.jvm_jsc = jvm_javaSparkContext;
thi... | JavaScript | 0.000876 | @@ -142,16 +142,202 @@
sqlc;%0A%0A%0A
+/**%0A * The entry point for working with structured data (rows and columns) in Spark. Allows the%0A * creation of %7B@link DataFrame%7D objects as well as the execution of SQL queries.%0A *%0A */%0A
class SQ
@@ -583,34 +583,8 @@
/**%0A
- * :: Experimental ::%0A
@@ -... |
b1f248710074e32b884deb67bf4de0358385e03d | Add return back in. Style thing. | lib/stream-put.js | lib/stream-put.js | var Stats = require('./stream-util').Stats;
var Tile = require('./stream-util').Tile;
var Info = require('./stream-util').Info;
var stream = require('stream');
var util = require('util');
var multiwrite = require('./stream-util').multiwrite;
var putTileRetry = require('./stream-util').putTileRetry;
module.exports = Pu... | JavaScript | 0 | @@ -2096,16 +2096,23 @@
+return
putTileR
|
fda35b164e4d95964aa45210e649b8fd2cdcfcd2 | Fix parsing height and width to numbers | lib/text-utils.js | lib/text-utils.js | const numbers = [
"height",
"width",
"thumbnail_height",
"thumbnail_width"
];
function getMetadata(text) {
const parts = text.match(/\[!\[([^\]]+)+\]\(([^\)]+)\)\]\(([^\)]+)\)/);
if (parts && parts.length) {
const title = parts[1];
const thumbnailUrlParts = parts[2].split("#");
const originalUrl = parts[3... | JavaScript | 0.000438 | @@ -329,17 +329,17 @@
nst meta
-D
+d
ata = %7B%0A
@@ -622,17 +622,17 @@
%09%09%09%09meta
-D
+d
ata%5Bkv%5B0
@@ -655,17 +655,17 @@
exOf(kv%5B
-1
+0
%5D) %3E -1
@@ -722,9 +722,9 @@
meta
-D
+d
ata;
|
b5cc77fcc4586da7e87dfc40f9741df8c915b118 | Clean up deprecations and ensure only syntax themes are used | lib/theme-reel.js | lib/theme-reel.js | var CompositeDisposable = require('atom').CompositeDisposable;
var ThemeReelView = require('./theme-reel-view');
module.exports = {
themeReelView: null,
statusBarTile: null,
subscriptions: null,
activate: function () {
this.themeReelView = new ThemeReelView();
var self = this;
this.subscriptions ... | JavaScript | 0 | @@ -1013,18 +1013,19 @@
etLoaded
-Na
+The
mes().fi
@@ -1039,18 +1039,19 @@
nction (
-na
+the
me) %7B%0A
@@ -1065,49 +1065,114 @@
urn
-name.substring(name.length - 3) !== '-ui'
+theme.metadata && theme.metadata.theme === 'syntax';%0A %7D).map(function (theme) %7B%0A return theme.name
;%0A
@@ -1214,32 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.