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 |
|---|---|---|---|---|---|---|---|
f77a03c1804c46205045c8a8929f6fba8f9c510a | fix bug with valueLiteral | type-checker/lib/is-same-type.js | type-checker/lib/is-same-type.js | 'use strict';
var assert = require('assert');
module.exports = isSameType;
/*eslint complexity: 0, max-statements: [2,80]*/
function isSameType(left, right) {
if (left === right) {
return true;
}
if (
(right && left === null) ||
(left && right === null)
) {
return fal... | JavaScript | 0.000025 | @@ -2568,35 +2568,36 @@
if (left.
-nam
+valu
e !== right.name
@@ -2584,35 +2584,36 @@
value !== right.
-nam
+valu
e) %7B%0A
|
b2da18c9418330c678d8af8d13cf096d38c05675 | fix #2 -- speak function must return something | tests/app/functions.js | tests/app/functions.js | define([ 'use!underscore' ], function(_) {
describe("functions", function() {
var sayIt = function(greeting, name, punctuation) {
return greeting + ', ' + name + (punctuation || '!');
},
fn = function() {};
it("you should be able to use an array as arguments when calling a function"... | JavaScript | 0.000001 | @@ -569,16 +569,23 @@
+return
sayIt(th
|
8cdcf935e9986c93bbe3b94095ac569fd3a09eca | Support undefined as compareFn for live lists | lib/_proto/object-ordered-list.js | lib/_proto/object-ordered-list.js | 'use strict';
var copy = require('es5-ext/lib/Array/prototype/copy')
, isCopy = require('es5-ext/lib/Array/prototype/is-copy')
, remove = require('es5-ext/lib/Array/prototype/remove')
, CustomError = require('es5-ext/lib/Error/custom')
, callable = require('es5-ext/lib/Object/valid-callable... | JavaScript | 0 | @@ -863,16 +863,55 @@
proto;%0A%0A
+require('memoizee/lib/ext/resolvers');%0A
require(
@@ -1156,16 +1156,29 @@
pareFn =
+ compareFn &&
compare
@@ -2809,25 +2809,16 @@
t(this,
-callable(
compareF
@@ -2819,17 +2819,16 @@
mpareFn)
-)
;%0A%09%7D, %7B
@@ -2858,16 +2858,120 @@
ep: true
+, resolvers: %5Bfunction (... |
9971328a9b7ec8369fd61ee580ac37761fca8233 | Update Game.js | javascripts/Game.js | javascripts/Game.js | var things;
function Movable(id, x, y) {
this.currentX = x;
this.currentY = y;
this.id = id;
this.htmlObj = document.getElementById(id);
this.htmlObj.style.left = (this.currentX + "px");
this.htmlObj.style.top = (this.currentY + "px");
// console.log('Movable() id=' + id + ' currentX = ' + this.currentX... | JavaScript | 0.000001 | @@ -993,16 +993,72 @@
.id*/);%0A
+ console.log('In InitialScale(). DAD id=' + dad.id);%0A
// this
|
f9ee2e57a242f867e3644883d0741f92d3f6c848 | use explict variables, new version of applyValueFilter | value_sorting.js | value_sorting.js | $(document).ready(function(){
var dataTableView = findViewObject(this.getElementsByClassName("bk-data-table")[0], Bokeh.index[findModelID("8dc6e575-0ae6-4b64-bc54-a9ffe282b510")])
var dataSource = dataTableView.mget("source")
var fields = getFieldNames(dataTableView.model.attributes.columns)
$(".plotdiv").appen... | JavaScript | 0 | @@ -1014,24 +1014,90 @@
%7D%0A %7D%0A
+%0A%0A var columns = dataSource.attributes.data%0A%0A var rows = %5B%5D%0A
var rows
@@ -1107,17 +1107,22 @@
elect =
-v
+applyV
alueFilt
@@ -1140,27 +1140,31 @@
ilters,
-dataSource)
+columns, rows)%0A
%0A dat
|
bd171b3b8ffadaa2ad3f7a679d74b02c2df87ca0 | update tests for navigation | example/test/e2e/navigation.spec.js | example/test/e2e/navigation.spec.js | 'use strict';
describe('Scenario: User navigates the application.', function () {
it('should be the correct scope by route /', function() {
browser.get('/');
var view = element(by.binding('view'));
var thingList = element.all(by.repeater('thing in awesomeThings'));
expect(thingLi... | JavaScript | 0.000001 | @@ -325,33 +325,33 @@
ount()).toEqual(
-4
+5
);%0A expec
@@ -669,33 +669,33 @@
ount()).toEqual(
-4
+5
);%0A expec
@@ -1015,33 +1015,33 @@
ount()).toEqual(
-4
+5
);%0A expec
@@ -1367,33 +1367,33 @@
ount()).toEqual(
-4
+5
);%0A expec
@@ -1731,9 +1731,9 @@
ual(
-4
+5
);%0A
|
0d009eba139ea80aa4c8c8e4260b700597b97008 | Fix lint errors | src/objectify.js | src/objectify.js | (function objectify(window) {
function Objectify(form, exclusions, sanitize) {
this.form = form;
this.exclusions = exclusions;
this.sanitize = sanitize;
this.obj = {};
this.currentElement;
return this.getValues();
}
Objectify.prototype.getValues = function getValues() {
var elements ... | JavaScript | 0.000396 | @@ -661,33 +661,16 @@
ntinue;%0A
- break;%0A
@@ -832,37 +832,16 @@
ntinue;%0A
- break;%0A
|
bc930b9b66dce7b25ddfab2a43fd29897039917a | Capital B | lib/dom/get-element-from-point.js | lib/dom/get-element-from-point.js | /* global dom */
/**
* Returns true if the browser supports one of the methods to get elements from point
* @param {Document} doc The HTML document
* @return {boolean}
*/
dom.supportsElementsFromPoint = function (doc) {
var element = doc.createElement('x');
element.style.cssText = 'pointer-events:auto';
retur... | JavaScript | 0.999956 | @@ -161,17 +161,16 @@
rn %7B
-b
+B
oolean%7D
-
%0A */
|
3cfa38102ef495574d1fc6c6ac8321ac09e79fdf | fix coordinates order in generate prompt | lib/cli/generate.js | lib/cli/generate.js | var program = require('commander');
var prompt = require('prompt');
var url = require('url');
var fs = require('fs');
var path = require('path');
var template = require('lodash').template;
var curl = require('./curl');
var dirs = require('./dirs');
var fname;
var schema = [
{
name: 'id',
description: 'Short ... | JavaScript | 0.999999 | @@ -1109,18 +1109,19 @@
n %5Bl
-at
+ong
itude, l
ongi
@@ -1116,19 +1116,18 @@
itude, l
-ong
+at
itude%5D',
|
48c511a306e0637752caba2ba6b78b1c45937404 | Update authentication redirection | js/auth.js | js/auth.js | _sub = false;
function lsub() {
if(_sub) return;
_sub = true;
errors = {};
try {
updateErrors("#lform");
var email = $('input[name=l_email]').val(),
password = $('input[name=l_password]').val();
validateEmail(email);
validatePassword(password);
// if... | JavaScript | 0.000001 | @@ -3022,17 +3022,10 @@
= '
-index.php
+./
';%0A
@@ -4607,20 +4607,16 @@
'profile
-.php
';%0A
|
8f416e0f1d1d21580b9507ff9edb8fa4a2bfb008 | Make local storage work properly | lib/core/storage.js | lib/core/storage.js | // == BSD2 LICENSE ==
// Copyright (c) 2014, Tidepool Project
//
// This program is free software; you can redistribute it and/or modify it under
// the terms of the associated License, which is identical to the BSD 2-Clause
// License as published by the Open Source Initiative at opensource.org.
//
// This program is ... | JavaScript | 0 | @@ -1851,13 +1851,176 @@
ata,
+
cb)
+
%7B%0A
+ // first, make sure our input query is an object%0A var obj = data;%0A if (!_.isObject(data)) %7B%0A obj = %7B%7D;%0A obj%5Bdata%5D = null;%0A %7D%0A%0A
@@ -2042,20 +2042,19 @@
ore.get(
-data
+obj
, functi
@@ -2079,30 +2079,24... |
492344443dbfdbb19b67edec39d1938a8e12fabd | fix undefined d3 dependency | app/helpers.js | app/helpers.js | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | JavaScript | 0 | @@ -943,16 +943,20 @@
on(utils
+, d3
) %7B%0A%0A v
|
ec883c2d35ba061072fbf93bdc4e1261c2ef67ed | stop framehandler | lib/framehandler.js | lib/framehandler.js | var EventEmitter2 = require('eventemitter2').EventEmitter2
, util = require('util')
, _ = require('lodash');
function FrameHandler(deviceOrFrameHandler) {
var self = this;
// call super class
EventEmitter2.call(this, {
wildcard: true,
delimiter: ':',
maxListeners: 1000 // defau... | JavaScript | 0.000001 | @@ -1366,32 +1366,57 @@
f.log('close');%0A
+ self.stop();%0A
self
|
3369ff9a987a99e6c96b2d6df07646a60d5ceaa6 | update comments | js/form.js | js/form.js | /*
* Code that manages the contact form. Uses RequireJS
* and the jQuery Validation plugin. Attribution goes
* to Spruce Interactive's original code at:
* http://www.spruce.it/noise/simple-ajax-contact-form/
*/
// Start RequireJS code
define("form", ["jquery"], function($) {
$("#contact").submit(function(even... | JavaScript | 0 | @@ -38,60 +38,8 @@
orm.
- Uses RequireJS%0A * and the jQuery Validation plugin.
Att
@@ -51,19 +51,16 @@
ion goes
-%0A *
to Spru
@@ -62,16 +62,20 @@
Spruce
+%0A *
Interact
|
a6039ecb849b73dd7ff624004b9859d346e3ae90 | Update game.js | js/game.js | js/game.js | var Game = {};
var light = false;
var timerset = false;
var timersetflash = false;
var fading = false;
Game.fps = 50;
Game.initialize = function() {
this.entities = [];
this.context = document.getElementById("viewport").getContext("2d");
};
function fadeOutRectangle(x, y, w, h, r, g, b) {
var self = this;
... | JavaScript | 0.000001 | @@ -496,17 +496,25 @@
-i
+var count
= 0, //
@@ -637,17 +637,21 @@
+ dr *
-i
+count
) + ','%0A
@@ -707,17 +707,21 @@
+ dg *
-i
+count
) + ','%0A
@@ -777,17 +777,21 @@
+ db *
-i
+count
) + ')';
@@ -884,17 +884,21 @@
-i
+count
++;%0A
@@ -912,11 +912,16 @@
if(
-i %3E
+count ==
= st... |
1d8130347ba98331ae8b3293b838a5d875e51cc0 | Call the event emitter class | lib/path-monitor.js | lib/path-monitor.js | "use strict";
// var DynamicPathMonitor = require("./DynamicPathMonitor");
const fbUtil = require("./fbutil")
, EventEmitter = require("events")
, objUnflatten = require("obj-unflatten")
;
module.exports = class PathMonitor extends EventEmitter {
constructor (ins, path) {
this.ins = ins;
... | JavaScript | 0.000001 | @@ -282,24 +282,41 @@
ns, path) %7B%0A
+ super();%0A
this
|
b0b62682c431ee54498127ac6712fbb2bd20e48d | Correct callback error string | lib/price-finder.js | lib/price-finder.js | 'use strict';
const async = require('async');
/* eslint-disable prefer-const */
// TODO no const for testing https://github.com/jhnns/rewire/issues/79
let request = require('request');
/* eslint-enable prefer-const */
const cheerio = require('cheerio');
const extend = require('xtend');
const siteManager = require('./s... | JavaScript | 0 | @@ -74,16 +74,17 @@
onst */%0A
+%0A
// TODO
@@ -2077,33 +2077,33 @@
return callback(
-'
+%60
unable to find p
@@ -2112,32 +2112,31 @@
ce for uri:
-%25s',
+$%7B
uri
+%7D%60
);%0A %7D%0A%0A
@@ -3798,17 +3798,17 @@
allback(
-'
+%60
unable t
@@ -3829,24 +3829,23 @@
or uri:
-%25s',
+$%7B
uri
+%7D%60
);... |
aaaad75daf7c4c9aa64e21a5f0fb949d602b7de2 | Define getLogTree() right after setUp() | lib/process-tree.js | lib/process-tree.js | // Copyright (c) 2017 The Regents of the University of Michigan.
// All Rights Reserved. Licensed according to the terms of the Revised
// BSD License. See LICENSE.txt for details.
let treeNode = (address, setUp) => new Promise(
function(resolve, reject) {
let node = {};
let obj = {};
let children = [];
o... | JavaScript | 0.000001 | @@ -1396,24 +1396,84 @@
on(value) %7B%0A
+ node.getLogTree = () =%3E %7Breturn %7Bd:%22the lone root%22%7D;%7D;%0A%0A
return P
@@ -1575,67 +1575,8 @@
r%5D;%0A
- node.getLogTree = () =%3E %7Breturn %7Bd:%22the lone root%22%7D;%7D;%0A
|
d281a3d09a04500cebab9b9705cf1fa03cd3b70c | Add hashtags | app/twitter.js | app/twitter.js | import Twit from 'twit';
import winston from 'winston';
const nbCachePosts = 46;
// Array of hashtags to exclude (noise)
const exclude = [
'adultwork',
'amateur',
'ass',
'babe',
'babes',
'blowjob',
'boobs',
'boobies',
'booty',
'cat',
'calumhood',
'camgirls',
'camfun',
'cammodels',
'cams'... | JavaScript | 0.005297 | @@ -286,24 +286,38 @@
'camfun',%0A
+ 'cammodel',%0A
'cammodels
@@ -315,24 +315,24 @@
cammodels',%0A
-
'cams',%0A
@@ -412,17 +412,16 @@
,%0A 'cou
-n
gar',%0A
@@ -586,16 +586,47 @@
'girl',%0A
+ 'girlfriends',%0A 'gorgeous',%0A
'hooku
@@ -653,16 +653,46 @@
ttest',%0A
+ 'hottie',%0A 'instapicture... |
ca1df395abb44b6ac769a712efdd2649fece8b8b | refactor and implement reAttachContext for open in new window | extension/content/firebug/search.js | extension/content/firebug/search.js | /* See license.txt for terms of usage */
FBL.ns(function() { with (FBL) {
// ************************************************************************************************
// Constants
const searchDelay = 150;
// ************************************************************************************************
Fir... | JavaScript | 0 | @@ -5670,24 +5670,173 @@
s);%0A %7D,%0A%0A
+ reattachContext: function(browser, context)%0A %7B%0A FBTrace.sysout(%22search.reattachContext%22);%0A this.enable(browser.chrome);%0A %7D,%0A%0A
enable:
@@ -5840,32 +5840,38 @@
e: function(
+chrome
)%0A %7B%0A
var
@@ -5850,32 ... |
173d0bd9042216ccd69b3163d69b2a0c69db8841 | move static file server before middleware routes - #8134 | application.js | application.js | var mbaasApi = require('fh-mbaas-api');
var express = require('express');
var mbaasExpress = mbaasApi.mbaasExpress();
var cors = require('cors');
// list the endpoints which you want to make securable here
var securableEndpoints;
// fhlint-begin: securable-endpoints
securableEndpoints = [];
// fhlint-end
var app = ex... | JavaScript | 0 | @@ -548,213 +548,213 @@
%0A//
-Note: important that this is added just before your own Routes%0Aapp.use(mbaasExpress.fhmiddleware());%0A%0A// allow serving of static files from the public directory%0Aapp.use(express.static(__dirname + '/public'
+allow serving of static files from the public directory%0Aapp.use(expres... |
748801992e8c7116b7d32fe44972c73889e39df5 | update file /application.js | application.js | application.js | var mbaasApi = require('fh-mbaas-api');
var express = require('express');
var mbaasExpress = mbaasApi.mbaasExpress();
var cors = require('cors');
var bodyParser = require('body-parser');
var app = express();
// Enable CORS for all requests
app.use(cors());
// Note: the order which we add middleware to Express here ... | JavaScript | 0.000002 | @@ -657,32 +657,76 @@
tion(req,res) %7B%0A
+ console.log(JSON.stringify(req.params)); %0A
mbaasApi.db(%7B%0A
|
80cae8c4c9b195f02bfb969dc64617b489773553 | Test code. | js/main.js | js/main.js | JavaScript | 0 | @@ -0,0 +1,370 @@
+%0A%09var testModel = new Models.ItemListing(%7B%0A%09%09id: 0,%0A%09%09name: %22Test Item%22,%0A%09%09price: %22(USD) $5%22,%0A%09%09location: %22Singapore%22,%0A%09%09buyers: %5B0%5D,%0A%09%09owner: 0,%0A%09%09imageUrl: 'http://placehold.it/96x96'%0A%09%7D);%0A%0A%09var yourCollection = new Models.... | |
4194efdb32e3b474211046df368a235c084a9c60 | use documentFragment | js/main.js | js/main.js | //------------Tool functions----------------
String.prototype.capitalize = function () {
if (this === "") return this;
return this.charAt(0).toUpperCase() + this.slice(1);
}
//--------------List data---------------
var arrItems = [
"test",
"lagou",
"float",
"nav", //https://support.mozilla.org... | JavaScript | 0 | @@ -539,82 +539,108 @@
var
-list = document.getElementById('list');%0Avar i = 0,%0A l = arrItems.length
+date1=new Date;%0Avar i = 0,%0A l = arrItems.length,%0A fragment = document.createDocumentFragment()
;%0Afo
@@ -810,26 +810,163 @@
-list.appendChild(a);%0A%7D
+fragment.appendChild(a);%0A%7D%0Avar ... |
961e14f9188fd409f5e7b1f9af1fc5648d25c27c | Update main.js | js/main.js | js/main.js | /**
* jQuery.toTop.js v1.1
* Developed by: MMK Jony
* Fork on Github: https://github.com/mmkjony/jQuery.toTop
**/
!function(o){"use strict";o.fn.toTop=function(t){var i=this,e=o(window),s=o("html, body"),n=o.extend({autohide:!0,offset:420,speed:500,position:!0,right:15,bottom:30},t);i.css({cursor:"pointer"}),n... | JavaScript | 0.000001 | @@ -616,17 +616,17 @@
t UI V1.
-1
+2
%E6%83%85%E6%89%98%E4%BA%8E%E7%89%A9%E3%80%82%E4%BA%BA%E6%83%85
@@ -880,12 +880,283 @@
3px 0;');%0D%0A
+//float start%0D%0Avar antime = 500;%0D%0A$(%22.float-window%22).click(function() %7B%0D%0A $(this).fadeOut(antime);%0D%0A%7D);%0D%0A$(%22#qrcode-b%22).click(function() %7... |
b6044d577d6e4c67e2301dfbd1ba421d670c2d05 | Remove the leading '.' in the entryModule path | webpack-aot.config.js | webpack-aot.config.js | 'use strict';
const webpackConfig = require('./webpack.config.js');
const loaders = require('./webpack/loaders');
const AotPlugin = require('@ngtools/webpack').AotPlugin;
const ENV = process.env.npm_lifecycle_event;
const JiT = ENV === 'build:jit';
webpackConfig.module.rules = [
loaders.tslint,
loaders.ts,
load... | JavaScript | 0.999986 | @@ -578,18 +578,16 @@
odule: '
-./
src/app/
|
4478c3f07603c690d6c12c03e884b922bf2c2763 | fix Object.assign : ) | webpack/dev.config.js | webpack/dev.config.js | var baseConfig = require('./base.config');
var project = require('../project.config');
var path = require('path');
console.log(395, path.resolve(project.ROOT, 'static'));
module.exports = Object.assign({
devtool: 'eval',
devServer: {
open: true,
contentBase: path.resolve(project.ROOT, 'static'),
port:... | JavaScript | 0.000002 | @@ -113,65 +113,8 @@
);%0A%0A
-console.log(395, path.resolve(project.ROOT, 'static'));%0A%0A
modu
@@ -141,16 +141,32 @@
assign(%7B
+%7D, baseConfig, %7B
%0A devto
@@ -302,23 +302,11 @@
RT%0A %7D%0A%7D
-, baseConfig
);%0A
|
cb5cd692c752ba4a978f11bd1f30c9634b8ef62a | add failing test for watch | bellamie/test/test.js | bellamie/test/test.js |
import SKClient from "sk-client";
import expect from "expect.js";
describe("broadcasts", function() {
const SK = new SKClient({server: "http://localhost:80"});
let testBroadcastId = "nope";
let testBroadcastName = "Test Broadcast";
const fail = function(err) {
if (err instanceof Error) {
throw err... | JavaScript | 0 | @@ -1539,32 +1539,2004 @@
h(fail);%0A %7D);%0A%0A
+ it(%22should watch%22, function() %7B%0A let data;%0A let watchBroadcastName = %22broadcast watch test%22;%0A let watchBroadcastId;%0A%0A // Given a cursor and an eventName, return a promise that has resolved after the event has%0A // fired once.%0A ... |
0460e7d031a57dd302d3b7bced762e6b464fc2d3 | update loading fast header image | js/main.js | js/main.js | $(document).ready(function() {
$('.home-slider').flexslider({
animation: "slide",
directionNav: false,
controlNav: false,
direction: "vertical",
slideshowSpeed: 2500,
animationSpeed: 500,
smoothHeight: false
});
//$(".intro-section").backstretch("image... | JavaScript | 0 | @@ -1,8 +1,48 @@
+$.backstretch('images/header-bg.jpg');%0A%0A
$(docume
@@ -377,46 +377,8 @@
);%0A%09
-$.backstretch('images/header-bg.jpg');
%0A%09$(
|
1a06b2dab880931a11df8ee57d99b32645ec3674 | Add findOperatorByRangeStart fn to token helper | lib/token-helper.js | lib/token-helper.js | /**
* Returns token by range start. Ignores ()
*
* @param {JsFile} file
* @param {Number} range
* @param {Boolean} [backward=false] Direction
* @returns {Object}
*/
exports.getTokenByRangeStart = function(file, range, backward) {
var tokens = file.getTokens();
// get next token
var tokenPos = file.g... | JavaScript | 0 | @@ -1172,24 +1172,504 @@
tuator;%0A%7D;%0A%0A
+/**%0A * Find previous operator by range start%0A *%0A * @param %7BJsFile%7D file%0A * @param %7BNumber%7D range%0A * @param %7BString%7D operator%0A * @returns %7BBoolean%7CObject%7D%0A */%0Aexports.findOperatorByRangeStart = function(file, range, operator) %7B%0A var... |
a55664903c702356d46421ccb03c2a128e767802 | fix major bug with visibleTextEditors (replaced by activeTextEditor) | lib/utils/common.js | lib/utils/common.js | /* global console */
/* global decodeURIComponent */
/* global JSON */
var vscode = require('vscode');
var common = {
/**
* Get the latest release of vscode-tfs and warn user in case of update.
*
* @module Common Utilities
* @version 0.5.0
*/
checkLastRelease: function() {
var https = requi... | JavaScript | 0 | @@ -1698,38 +1698,37 @@
(!vscode.window.
-visibl
+activ
eTextEditors.len
@@ -1726,16 +1726,8 @@
itor
-s.length
) %7B%0A
@@ -1801,14 +1801,13 @@
dow.
-visibl
+activ
eTex
@@ -1817,12 +1817,8 @@
itor
-s%5B0%5D
.doc
|
a4142a4342ce4eef9413f66ada5b3ca6e29ac629 | clean up getAppDir | lib/utils/module.js | lib/utils/module.js | 'use strict';
import _ from 'lodash';
import findUp from 'find-up';
import fs from 'fs';
import nameUtils from './name';
import path from 'path';
/**
* Returns modules' names in path
* @param {String} modulePath - path to module
* @param {String} symbol - character to split by
* @return {Array} - module names
*/
... | JavaScript | 0.000002 | @@ -1182,17 +1182,41 @@
irectory
+ without trailing / or %5C
%0A
-
* @retu
@@ -1366,78 +1366,121 @@
pDir
-;
%0A
-if (appDir%5BappDir.length - 1%5D === '/' %7C%7C appDir%5BappDir.length - 1%5D
+ , lastCharacterInPath = appDir%5BappDir.length - 1%5D;%0A%0A if (lastCharacterInPath === '/' %7C%7C lastCharacterInP... |
48b2b5319a4e87c86c04c98e70cd6f7d3d6ed9b9 | Make wrapped component's ref accessible. | lib/withSafeArea.js | lib/withSafeArea.js | // @flow
import * as React from 'react'
import { StyleSheet } from 'react-native'
import SafeArea, { type SafeAreaInsets } from 'react-native-safe-area'
type Props = any;
type State = {
safeAreaInsets: SafeAreaInsets,
};
export function withSafeArea(
Component: React.ComponentType<any>,
applyTo: 'margin' | 'pa... | JavaScript | 0 | @@ -708,16 +708,43 @@
: 0 %7D %7D%0A
+ wrappedRef: any = null%0A
onSa
@@ -1376,16 +1376,17 @@
get
+_
injected
@@ -4162,18 +4162,89 @@
urn
-%3CComponent
+(%0A %3CComponent%0A ref=%7B(ref) =%3E %7B this.wrappedRef = ref %7D%7D%0A
%7B..
@@ -4255,16 +4255,26 @@
s.props%7D
+%0A ... |
a3dc5f233b8e941fa1f6c1339ff366ed9b206f8e | move mouse logic into Platform | js/main.js | js/main.js | // consts for brick stuff
const widthDivisor = 10;
const heightDivisor = 20;
const numOfRows = 5;
class Platform{
constructor(locX, size, ctx){
this.x = locX;
this.size = size;
this.y = ctx.canvas.height - (ctx.canvas.height / 10);
this.boxHeight = window.innerHeight / 25;
}
... | JavaScript | 0.000001 | @@ -458,28 +458,338 @@
X)%7B%0A
+%0A
-this.x = mouse
+var locX = mouseX%0A%0A if(locX %3E ctx.canvas.width - (this.size / 2)) %7B%0A locX = ctx.canvas.width - (this.size / 2);%0A %7D%0A else if(locX %3C this.size / 2) %7B%0A locX = this.size / 2;%0A %7D%0A else%7B%0A ... |
00fb530f2efabe8f2708a675a10f3e6a233bd738 | Remove Hotjar because it doesn't work | website/siteConfig.js | website/siteConfig.js | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// See https://docusaurus.io/docs/site-config for all the possible
// site configuration options.
// List of projects/orgs using your p... | JavaScript | 0 | @@ -3375,16 +3375,19 @@
%0A
+ //
%7B%0A
@@ -3384,24 +3384,27 @@
// %7B%0A
+ //
src: 'h
@@ -3458,24 +3458,27 @@
=6',%0A
+ //
async:
@@ -3486,24 +3486,27 @@
rue,%0A
+ //
%7D,%0A %5D,%0A%0A
|
636f34f69114190adbd56e966bec272523b6911d | add update time for docs, defer attributes (#1885) | website/siteConfig.js | website/siteConfig.js | const parseYaml = require("js-yaml").safeLoad;
const path = require("path");
const fs = require("fs");
const url = require("url");
function findMarkDownSync(startPath) {
const result = [];
const files = fs.readdirSync(path.join(__dirname, startPath));
files.forEach(val => {
const fPath = path.join(startPath,... | JavaScript | 0 | @@ -3956,16 +3956,29 @@
s: %5B%0A
+ %7B%0A src:
%22https:
@@ -4037,41 +4037,117 @@
-%22/js/code-blocks-buttons.js%22,%0A
+ defer: true%0A %7D,%0A %7B%0A src: %22/js/code-blocks-buttons.js%22,%0A defer: true%0A %7D,%0A %7B%0A src:
%22/s
@@ -4174,16 +4174,40 @@
ks.js%22,... |
40184a76a125f4f5dce9053dcb1c005324f3bcf0 | Update main.js | js/main.js | js/main.js | $(document).ready(function(event){
$('#submit').click(function(event){
getData();
});
$('#formThing').submit(function(event){
event.preventDefault();
getData();
});
});
function getData(){
$.get('https://beam.pro/api/v1/channels/' + $('#inputText').val(), "", function(data){
... | JavaScript | 0.000001 | @@ -1708,62 +1708,8 @@
%3E';%0A
- html+= '%3Cbr%3E%3Cb%3EPartnered: %3C/b%3E' + Partnered;%0A
@@ -2078,16 +2078,50 @@
'%3Cbr%3E%3Cb%3E
+%3Cspan class=%22label label-warning%22%3E
Experien
@@ -2120,28 +2120,24 @@
Experience:
-%3C/b%3E
' + Experien
@@ -2134,24 +2134,32 @@
+ Experience
+ +'%3C/b%3E'
... |
3a848817b3c28d52247b3e54afe2af09296a443c | Fix performance start point. | js/page.js | js/page.js | function samplesToTimeouts(samples) {
var timeouts = samples.slice();
for (var i = 1; i < timeouts.length; ++i) {
timeouts[i-1] = timeouts[i] - timeouts[i-1];
}
timeouts.pop();
return timeouts;
}
function getAverageTimeout(samples, numberOfSamples) {
"use strict";
var timeouts = samplesToTimeouts(sam... | JavaScript | 0.000006 | @@ -606,38 +606,60 @@
%0A%0A
-samples.push(performance.now()
+var startPoint = performance.now();%0A samples.push(0
);%0A%0A
@@ -722,16 +722,29 @@
ce.now()
+ - startPoint
);%0A i
@@ -1489,17 +1489,16 @@
label%22:
-(
samples%5B
@@ -1508,14 +1508,8 @@
ker%5D
-/1000)
.toF
|
d45117baac18cb9eaf5cfb3d7c02de1e7ddaf9ae | Fix issue with arguments when there is just one comment | js/post.js | js/post.js | function anchorActions() {
var hashParam = window.location.hash;
if (hashParam && hashParam === "#comment-added") {
var commentAddedMsgJqElem = $('#comment-added-message');
commentAddedMsgJqElem.removeClass('invisible');
removeHash();
setTimeout(function() { commentAddedMsgJqElem.fadeTo('slow', 0); }, 10000)... | JavaScript | 0.000001 | @@ -2208,17 +2208,51 @@
iew(
-arguments
+jqXhrs.length %3E 1 ? arguments : %5Barguments%5D
, jq
|
4f477fc62f916489eb4d7f9e749cb51da53550a0 | add tests with empty value to utils-iterate | tests/utils-iterate.js | tests/utils-iterate.js | "use strict";
var _ = require('lodash');
var iterate = require('../lib/utils/iterate');
var obj = {a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9, k: 10};
var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
module.exports = {
'iterate array - nothing to iterate': function (test) {
var len = 0;
var arr = [];
var... | JavaScript | 0 | @@ -478,32 +478,291 @@
rr);%0A%09%09%7D);%0A%09%7D,%0A%0A
+%09'iterate array - not array': function (test) %7B%0A%09%09var len = 0;%0A%09%09var arr = null;%0A%09%09var count = 0;%0A%09%09iterate.array(arr, function (value, index, done) %7B%0A%09%09%09count++;%0A%09%09%09done();%0A%09%09%7D, function (err) %7B%0A%09%09... |
fe4d986b1546c01d39a655f3992ce1d306c8ef50 | Update compare.js | tests/utils/compare.js | tests/utils/compare.js | /* global XMLHttpRequest, expect */
function loadBinaryResource (url, unicodeCleanUp) {
const req = new XMLHttpRequest()
req.open('GET', url, false)
// XHR binary charset opt by Marcus Granado 2006 [http://mgran.blogspot.com]
req.overrideMimeType('text\/plain; charset=x-user-defined');
req.send(null)
if (... | JavaScript | 0.000001 | @@ -866,17 +866,17 @@
'POST',
-%60
+'
http://l
@@ -893,18 +893,18 @@
090/
-$%7B
+'+
filename
%7D%60,
@@ -899,18 +899,16 @@
filename
-%7D%60
, true)%0A
@@ -1663,8 +1663,9 @@
ected)%0A%7D
+%0A
|
c0624cd34ea365218bb9de1e5083cbc671299a7c | Update rect.js | js/rect.js | js/rect.js | function Rect() {
this.x = Math.floor(Math.random() * (640 - 30));;
this.y = Math.floor(Math.random() * (480 - 30));;
this.velocity = Math.random() > 0.5 ? -1 : 1;
this.veleftright = 0;
};
Rect.prototype.draw = function(context) {
context.fillRect(this.x, this.y, 30, 30);
};
Rect.prototype.update = function... | JavaScript | 0 | @@ -184,17 +184,18 @@
right =
-0
+-1
;%0A%7D;%0A%0ARe
|
5ddc8e783972fcec6f79af45b5d3d695f88376f2 | Remove current if no video left | js/room.js | js/room.js | var player=null;
var firebase = new Firebase('https://adr2370.firebaseio.com/');
var songdb = firebase.child('songs');
var playerdb = firebase.child('playerdb');
var commentdb = firebase.child('comments');
var currentdb = firebase.child('current');
var songs=new Array();
window.setInterval(function(){
if(player!=nul... | JavaScript | 0 | @@ -3887,16 +3887,38 @@
iv%3E'));%0A
+%09%09currentdb.remove();%0A
%09%09player
|
cf0e022295541a037cdc438b1b16ba29005da744 | Update tags.js | js/tags.js | js/tags.js | var audio = undefined;
function parseQuery(q)
{
var stage1 = q.slice(1).split("&");
var stage2 = [];
var stage3 = {};
for(var i=0;i<stage1.length;++i)
{
stage2[i] = stage1[i].split("=");
stage3[stage2[i][0]] = stage2[i][1];
}
return stage3;
}
var query = parseQuery(window.location.hash);
if(q... | JavaScript | 0.000001 | @@ -2015,17 +2015,17 @@
i=0;i%3C1
-3
+2
;++i)%0A
|
d5ac7e9fae4f863eaeb80b640b1747f94a9cbf60 | add netzkerefresh fire event on store | lib/marty/javascript/overrides.js | lib/marty/javascript/overrides.js | Ext.define('Netzke.Grid.EventHandlers', {
override: 'Netzke.Grid.EventHandlers',
netzkeHandleItemdblclick: function(view, record) {
if (this.editsInline) return; // inline editing is handled elsewhere
// MONKEY: add view in form capability
var has_perm = (this.permissions || {});
if (has_perm.read ... | JavaScript | 0 | @@ -776,12 +776,485 @@
);%0A %7D,%0A%7D);%0A
+%0AExt.define('Ext.toolbar.Paging', %7B%0A override: 'Ext.toolbar.Paging',%0A%0A handleRefresh: Ext.emptyFn,%0A%0A doRefresh: function() %7B%0A var me = this,%0A current = me.store.currentPage;%0A%0A // MONKEY: add netzkerefresh to ExtJS paging toolbar refre... |
cc5f6a79bf080a4af3248f94604c869e67136e28 | fix Incomplete path bug | lib/middleware/directory/index.js | lib/middleware/directory/index.js | /* ================================================================
* startserver by xdf(xudafeng[at]126.com)
*
* first created at : Mon Jun 02 2014 20:15:51 GMT+0800 (CST)
*
* ================================================================
* Copyright 2013 xdf
*
* Licensed under the MIT License
* You may not... | JavaScript | 0.000001 | @@ -1251,17 +1251,16 @@
';%0A %7D
-;
%0A%0A li
@@ -1908,16 +1908,25 @@
ocalPath
+, req.url
))%7B%0A
@@ -2340,16 +2340,30 @@
ocalPath
+, standardPath
)%7B%0A var
@@ -2396,22 +2396,17 @@
', '
-startserver.js
+index.htm
'%5D;%0A
@@ -2445,16 +2445,140 @@
xFile;%0A%0A
+ if(localPath.slice(-1) !== '/')%7... |
70dcdd7a5010a7da316c2c239ebf0e3c8f5136e9 | Fix outdated comment, let the code speak for itself | jquery.cookie.js | jquery.cookie.js | /*jshint eqnull:true */
/*!
* jQuery Cookie Plugin v1.2
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function ($, document... | JavaScript | 0.000001 | @@ -534,51 +534,13 @@
%09//
-key and at least value given, set cookie...
+write
%0A%09%09i
@@ -1317,53 +1317,12 @@
%09//
-key and possibly options given, get cookie...
+read
%0A%09%09v
|
2b21e5efcefb6b0d44cc1d387d393bcd023b4818 | Declare options variable | poke.io.js | poke.io.js | var request = require('request');
var geocoder = require('geocoder');
var Logins = require('./logins');
var fs = require('fs');
var EventEmitter = require('events').EventEmitter;
var api_url = 'https://pgorelease.nianticlabs.com/plfe/rpc';
var login_url = 'https://sso.pokemon.com/sso/login?service=https%3A%2F%2Fsso... | JavaScript | 0.000007 | @@ -1982,16 +1982,20 @@
+var
options
|
87f0540ac2804f3e96445ff1b7de5930ce46b101 | update statements to ES6 | workflow/basicTasks/merge.js | workflow/basicTasks/merge.js | /**
* Tencent is pleased to support the open source community by making QMUI Web available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the ... | JavaScript | 0.000001 | @@ -943,24 +943,16 @@
e =
-function (
rules
-)
+ =%3E
%7B%0A
@@ -1245,23 +1245,15 @@
e =
-function (
href
-)
+ =%3E
%7B%0A
@@ -1364,22 +1364,14 @@
e =
-function (src)
+src =%3E
%7B%0A
@@ -1490,25 +1490,16 @@
erence =
- function
(reg, c
@@ -1506,16 +1506,19 @@
ontents)
+ =%3E
%7B%0A
@@ -1919,... |
b6053f4b2c4e4df2076d6661e091c7907d2eabbc | Update scripts.js | Resources/scripts.js | Resources/scripts.js | var path = location.pathname.replace(/\\/g, "/").replace("/C:/", "C:/").replace(/%20/g, " ").replace("Installer Compiler.hta", "");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var installer;
var files;
window.onload = function() {
log("Initializing...");
installer = document.getElementById("installe... | JavaScript | 0.000002 | @@ -632,16 +632,17 @@
s.folder
+s
);%0A if
@@ -709,35 +709,45 @@
tPath%22).
-innerText =
+setAttribute(%22value%22,
%22false%22
+)
;%0A in
@@ -906,27 +906,37 @@
h%22).
-innerText =
+setAttribute(%22value%22,
%22false%22
+)
;%0A
|
5139d56b681e59fb5bd409830d22837780cc0235 | set default parameter. | lib/BlobObject.js | lib/BlobObject.js | /**
* @module BlobObject
* @private
* @mixin
* @description Exports BlobObject class.
*/
import Super from './Super';
import Promise from './Promise';
import constructors from './constants/constructors';
import {
isArray, isFunction,
toStringTag, Symbol, defineProperties
} from './helpers';
/**
* @typedef {... | JavaScript | 0 | @@ -4236,16 +4236,21 @@
options
+ = %7B%7D
) %7B%0A if
|
000dc4d594f35ca92ee29d6ca718faeb76a16843 | remove logging secret | scripts/deploy.js | scripts/deploy.js | const AWS = require('aws-sdk');
const s3 = new AWS.S3();
const fs = require('fs');
const glob = require('glob');
const mimeTypes = require('mime-types');
require('dotenv').config();
AWS.config = new AWS.Config({
credentials: new AWS.Credentials({
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: proces... | JavaScript | 0.000265 | @@ -382,52 +382,8 @@
);%0A%0A
-console.log(process.env.AWS_ACCESS_KEY_ID)%0A%0A
glob
|
b687a26c1519345e5e3beeb710753c3dab744d7f | Fix week 7 exercises | week-7/nums_commas.js | week-7/nums_commas.js | // Separate Numbers with Commas in JavaScript **Pairing Challenge**
// I worked on this challenge with: Matthew O.
// Pseudocode
// input an integer
// output a string of the integer with commas
// steps
// define a function that accepts an integer as argument
// convert to array
// //reverse
// separate ... | JavaScript | 0.000004 | @@ -194,18 +194,16 @@
mmas%0A %0A
- %0A
// steps
@@ -203,17 +203,16 @@
/ steps%0A
-%0A
// defin
@@ -387,16 +387,71 @@
string%0A%0A
+// Just some practice code we were fiddling around with
%0A// var
@@ -652,16 +652,18 @@
ork?%22);%0A
+%0A%0A
// Initi
@@ -675,16 +675,19 @@
lution%0A%0A
+//
var comm
@@ -707,1... |
b1edbb66b7fdbcc278e5ebc47e7e5a7f77eb3bb0 | revert change | src/server/services/loadFromCsvStream.js | src/server/services/loadFromCsvStream.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 csv = require('csv');
/**
* Function to load a CSV file into the database in a configurable manner.
*... | JavaScript | 0.000002 | @@ -1514,24 +1514,36 @@
e', () =%3E %7B%0A
+%09%09%09let row;%0A
%09%09%09// We can
|
dd23a6201b063704e6ce163f8a1cb01f0f57c45b | Implement just enough of connection for drive() to start accepting connections | lib/Connection.js | lib/Connection.js | /**
* Turnpike plumbing.
*
* Connection objects are created by the Turnpike listener, and are passed to EndpointControllers during the routing
* process.
*/
function Connection(req, res) {
this.body = '';
/**
* Makes this connection die immediately.
*
* @param status number HTTP Status code to retur... | JavaScript | 0 | @@ -207,16 +207,81 @@
= '';%0A%0A
+ req.on('data', function(chunk) %7B%0A this.body += chunk;%0A %7D)%0A%0A
/**%0A
@@ -730,16 +730,44 @@
back) %7B%0A
+ req.on('end', callback);
%0A %7D;%0A%0A
|
35d77d1c289b7cd0564044b8025bfc8bcbd95e76 | Allow passing in host and port for server connect, with a sensible default | lib/Connection.js | lib/Connection.js | var io = require("socket.io-client");
var mqtt = require("mqtt");
var util = require('util');
var EventEmitter = require('events').EventEmitter;
function Connection(opt){
EventEmitter.call(this);
this.options = opt || {};
// this.socket = io.connect(this.options.host, {
// port: this.options.port
// });
... | JavaScript | 0 | @@ -221,19 +221,16 @@
%7C%7C %7B%7D;%0A
- //
this.so
@@ -268,101 +268,35 @@
host
-, %7B%0A // port: this.options.port%0A // %7D);%0A // this.socket = io.connect(%22localhost
+ %7C%7C %22http://skynet.im
%22, %7B%0A
- //
p
@@ -304,80 +304,28 @@
rt:
-3000%0A // %7D);%0A this.socket = io.connect(%22htt... |
a8fb8884fd7f9c39b3c61cc8b18bc3b43bdcfe80 | split out query-string and add to request object as "params" | lib/HttpServer.js | lib/HttpServer.js | 'use strict'
const http = require('http')
module.exports = class HttpServer extends http.Server {
constructor ({ name, port=8080, mount, middleware, indexFiles, restApiEndpoints }) {
super()
Object.assign(this, {
name
})
this.on('request', (req, res) => {
const additionalRequestAndRes... | JavaScript | 0.000001 | @@ -13,16 +13,19 @@
%0A%0Aconst
+%0A
http = r
@@ -39,16 +39,59 @@
'http')
+%0A,%0A querystring = require('querystring')%0A;
%0A%0Amodule
@@ -521,16 +521,141 @@
%7D%0A%0A
+ // split off the params%0A const %5B url, params %5D = req.url.split('?')%0A // restore req.url%0A req.url = url%... |
a877c6bc68ef601a6e14f34bae32640a6d063254 | Fix syntax error (missing ')') | local-cli/bundle.js | local-cli/bundle.js | var http = require('http');
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
var blacklist = require('../packager/blacklist.js');
var ReactPackager = require('../packager/react-packager');
var OUT_PATH = 'iOS/main.jsbundle';
function getBundle(flags) {
var outPath = flags.out ? fla... | JavaScript | 0.998827 | @@ -670,24 +670,25 @@
oot);%0A %7D)
+)
;%0A %7D%0A%0A%0A va
|
df996c24e309ea7316016219ae167a056af47611 | Add save command | commands/index.js | commands/index.js | const prettyJSON = require('../utils/prettyJSON'),
Promise = require('bluebird'),
fs = Promise.promisifyAll(require('fs')),
child_process = require('child_process'),
R = require('ramda');
module.exports = ({ rabbitMqClient, vorpal }) => {
vorpal
.command('next')
.description('Fetch ne... | JavaScript | 0.000003 | @@ -3780,32 +3780,300 @@
%7D%0A %7D);%0A%0A
+ vorpal%0A .command('save %3Cpath%3E %5Bid%5D')%0A .description('Save current message to disk')%0A .action((args, cb) =%3E %7B%0A return rabbitMqClient%0A .getMessage(args.id)%0A .then(prettyJSON)%0A .then(msg =%3E fs.writeFileAsy... |
eb2b32f6da18044d05a9b571b680ba144a66d096 | update url to download | data/fxqrl.js | data/fxqrl.js | 'use strict';
self.port.on('update_image', function onUpdate(image) {
var parser = new DOMParser();
var doc = parser.parseFromString(image, 'text/html');
var node = doc.firstChild;
document.getElementById('qrcode').appendChild(node);
});
| JavaScript | 0 | @@ -162,29 +162,51 @@
var
-node
+img_el
= doc.
-firstChild
+getElementsByTagName('img')%5B0%5D
;%0A
@@ -240,28 +240,89 @@
code
-').appendChild(node)
+_dl').href = img_el.src;%0A document.getElementById('qrcode_img').src = img_el.src
;%0A%7D)
|
e7fb891ed6e3305aad4990849e33664d7f0ef13d | fix error with uninitialized local storage | js/background.js | js/background.js | var chmiPortalWebPageUrl = "http://portal.chmi.cz/files/portal/docs/uoco/web_generator/actual_hour_data_CZ.html"
var chmiPortalJSONUrl = "http://portal.chmi.cz/files/portal/docs/uoco/web_generator/aqindex_cze.json"
var stationCode;
var periodInMinutes = 1
// SCHEDULING START
function onInit() {
updateIcon();
s... | JavaScript | 0.000002 | @@ -286,24 +286,260 @@
onInit() %7B%0A
+ if (localStorage.stationData === undefined) %7B%0A localStorage.stationData = '%7B%22Components%22 : %5B%7B%22Code%22: %22CO%22, %22Ix%22: -1%7D%5D%7D';%0A %7D%0A if (localStorage.stationName === undefined) %7B%0A localStorage.stationName = %22N/A%22;%0A... |
f244c256df031751c0926c3d792d420189f4057d | remove console (#2) | lib/app.js | lib/app.js | 'use strict';
const path = require('path');
const debug = require('debug')('mm');
const rimraf = require('rimraf');
const formatOptions = require('./format_options');
const apps = new Map();
module.exports = function(options) {
options = formatOptions(options);
console.log(options);
if (options.cache && apps.h... | JavaScript | 0.000001 | @@ -264,32 +264,8 @@
s);%0A
- console.log(options);%0A
if
|
365669c8d8f65d53eb3389a67f2ea6f7d696c37c | fix bundle name for public table on production | webpack/dashboard/webpack.prod.config.js | webpack/dashboard/webpack.prod.config.js | // NOTE: this configuration file MUST NOT be loaded with `-p` or `--optimize-minimize` option.
// This option includes an implicit call to UglifyJsPlugin and LoaderOptionsPlugin. Instead,
// an explicit call is made in this file to these plugins with customized options that enables
// more control of the output bundle ... | JavaScript | 0 | @@ -700,23 +700,21 @@
public_
-dataset
+table
_new: re
|
9cd9f8579057ddaf55f91969855eb9dec7dd23b5 | fix error in list | packages/athena-gz/blocks/list.es6 | packages/athena-gz/blocks/list.es6 | import React, { Component } from 'react';
import { graphql, gql, sortBy } from 'olymp-utils';
import { withRouter, Link } from 'olymp-router';
import { withEdit, withCreate } from 'olymp-collection';
import { createComponent, Grid } from 'olymp-fela';
import { H2 } from '../components';
const Item = withEdit('org')(
... | JavaScript | 0.000006 | @@ -3340,24 +3340,38 @@
id:
+%60$%7Bitem.id%7D-$%7B
leistung
,%0A
@@ -3354,32 +3354,34 @@
m.id%7D-$%7Bleistung
+%7D%60
,%0A na
|
89b7c2eabcd2623eb7965168395ef0bcca48ded6 | Update api.js | backend/api.js | backend/api.js | var mysql = require('mysql'),
express = require('express'),
app = express(),
http = require('http'),
multer = require('multer'),
jwt = require('jsonwebtoken'),
crypto = require('crypto'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
myConnect... | JavaScript | 0.000001 | @@ -2629,16 +2629,192 @@
oblem);%0D
+%0Aapp.post('/api/addResource', routes.addResource);%0D%0Aapp.put('/api/editResource/:alias', routes.editResource);%0D%0Aapp.delete('/api/deleteResource/:alias', routes.deleteResource);%0D
%0A%0D%0Aapp.u
|
e044fdd016723e5b28e23e356f59a2e56024b3c2 | Update common/comment.js | common/comment.js | common/comment.js | Meteor.methods({
comment: function(postId, parentCommentId, text){
var user = Meteor.user();
var post=Posts.findOne(postId);
var postUser=Meteor.users.findOne(post.userId);
var timeSinceLastComment=timeSinceLast(user, Comments);
var text= cleanUp(text);
var properties={
'commentAuthor... | JavaScript | 0 | @@ -248,17 +248,22 @@
var
-t
+cleanT
ext= cle
|
b634ed71c7cb69e398c544235ad461db6c13f402 | Build hello-config object from config arg | lib/app.js | lib/app.js | 'use strict'
const Koa = require('koa-plus')
class App extends Koa {
/**
* Creates an `App` instance
*
* @param {Object} config - Configuration for the app
* @returns {App} - An `App` instance
*/
constructor (config) {
config = config || {}
super(config)
this.context.config = config
... | JavaScript | 0.000006 | @@ -38,16 +38,51 @@
a-plus')
+%0Aconst Config = require('./config')
%0A%0Aclass
@@ -272,16 +272,21 @@
) %7B%0A
+let _
config =
@@ -290,20 +290,26 @@
g =
-config %7C%7C %7B%7D
+new Config(config)
%0A%0A
@@ -316,16 +316,17 @@
super(
+_
config)%0A
@@ -352,16 +352,17 @@
onfig =
+_
config%0A
|
bb126eda12dc7d8ef776bbc9026a00289a96d58f | use https in common request logic when connecton is https | common/request.js | common/request.js | 'use strict';
const http = require('http');
module.exports = {
makeRequest: function(host, port, path, method, body, headers) {
body = body || {};
// http://stackoverflow.com/questions/6158933/how-to-make-an-http-post-request-in-node-js
const options = {
host,
port: process.env.NODE_ENV === "local" ? po... | JavaScript | 0.998364 | @@ -37,16 +37,48 @@
'http');
+%0Aconst https = require('https');
%0A%0Amodule
@@ -152,16 +152,24 @@
headers
+, secure
) %7B%0A%09%09bo
@@ -620,16 +620,63 @@
ject) %7B%0A
+ const protocol = secure ? https : https;%0A
%09%09%09const
@@ -686,20 +686,24 @@
quest =
-http
+protocol
.request
|
ac201e746aaf2c2c5d8957570c4c10edc9b43531 | Fix static files mount point | lib/app.js | lib/app.js | "use strict";
require('./models/db');
var express = require('express'),
bodyParser = require('body-parser'),
methodOverride = require('method-override'),
session = require('cookie-session'),
logger = require('morgan'),
app = express(),
users = require('./routes/users'),
templates = require('./routes/tem... | JavaScript | 0.000001 | @@ -1623,16 +1623,27 @@
app.use(
+mountPoint,
serveSta
|
dcb7b02eee362ebf7aba9816f2b0f3dd50597410 | print container host and port for remote mintest | tpl/impl/test/mintest.js | tpl/impl/test/mintest.js | const chai = require('chai');
const expect = chai.expect;
const fs = require('fs');
const path = require('path');
const async = require('async');
const _ = require('lodash');
const soap = require('soap');
const uuid = require('uuid');
const testssh = require('any2api-testssh');
process.env.PORT = process.env.PORT ||... | JavaScript | 0 | @@ -1653,14 +1653,8 @@
tely
- (SSH)
wit
@@ -1665,33 +1665,81 @@
fault parameters
-'
+: ssh://' + CONTAINER_HOST + ':' + CONTAINER_PORT
, function(done)
|
4b34694ad21fa089f0e37c22c57d490dc9c6a996 | remove unnecessary event listener in DateQuestionView. | Resources/ui/common/questions/DateQuestionView.js | Resources/ui/common/questions/DateQuestionView.js | //DateQuestionView Component Constructor
function DateQuestionView(question, content) {
var self = Ti.UI.createPicker({
type : Ti.UI.PICKER_TYPE_DATE,
value : content ? new Date(content) : new Date(),
color : '#336699',
right : 5,
left : 5,
});
self.addEventListener('change', function(e) {
this.value = ... | JavaScript | 0 | @@ -256,82 +256,8 @@
);%0A%09
-self.addEventListener('change', function(e) %7B%0A%09%09this.value = e.value;%0A%09%7D);
%0A%09se
|
c39833c59083f529b8ff36ba24a59750cb72261c | Update up.js | lib/actions/up.js | lib/actions/up.js | const _ = require("lodash");
const pEachSeries = require("p-each-series");
const { promisify } = require("util");
const fnArgs = require('fn-args');
const status = require("./status");
const config = require("../env/config");
const migrationsDir = require("../env/migrationsDir");
const hasCallback = require('../utils/... | JavaScript | 0 | @@ -1067,16 +1067,47 @@
);%0A
+ error.stack = err.stack;%0A
er
|
bde17bd3d57f84206fc0660a2bc4a929551902cf | Fix class names if component name is given in kebab-case or ALL CAPS | lib/add-dialog.js | lib/add-dialog.js | /** @babel */
import _ from 'lodash';
import path from 'path';
import fs from 'fs-plus';
import Dialog from './dialog';
export default class AddDialog extends Dialog {
constructor(initialPath) {
let dirPath = initialPath;
if (fs.isFileSync(initialPath)) {
dirPath = path.dirname(initialPath);
}
... | JavaScript | 0.000055 | @@ -710,16 +710,76 @@
espace;%0A
+ const componentLowerCase = componentName.toLowerCase();%0A
cons
@@ -876,32 +876,37 @@
st(componentName
+Camel
);%0A const com
@@ -936,35 +936,40 @@
abCase(component
-Nam
+LowerCas
e);%0A const co
|
c5275b8cc71c068e937b0de049478974fb8b1e44 | support message | lib/ask.js | lib/ask.js | var async = require('async')
var inquirer = require('inquirer')
var evaluate = require('./eval')
// Support types from prompt-for which was used before
var promptMapping = {
string: 'input',
boolean: 'confirm'
}
/**
* Ask questions, return results.
*
* @param {Object} schema
* @param {Object} data
* @param {... | JavaScript | 0 | @@ -913,16 +913,34 @@
message:
+ prompt.message %7C%7C
prompt.
|
a757b95cfe67ca5ea6c3fa726184918e7699b79a | Create a global list of field names - might be useful if the ordering of fields needs to be guarateed in the future | lib/apps/about.js | lib/apps/about.js | "use strict";
var express = require('../express-inherit'),
Error404 = require('../errors').Error404,
requireUser = require('../middleware/route').requireUser,
_ = require('underscore'),
async = require('async');
module.exports = function () {
var app = express();
... | JavaScript | 0 | @@ -829,16 +829,93 @@
%7D;%0A %0A
+ // create an array of the field names%0A var field_names = _.keys(fields);%0A%0A
// add
@@ -1012,30 +1012,27 @@
_.each(
-_.keys(fields)
+field_names
, functi
@@ -1118,54 +1118,8 @@
q)%7B%0A
- var field_names = Object.keys(fields);%0A%0A
@@ -1311,53 +1311,8 @@
... |
010c0eb794b6c47a9235a88d8c6ab77def696d9c | Add to wishlist | lib/atom-delve.js | lib/atom-delve.js | 'use babel';
import DelveServerMgr from './delve-server-mgr';
import Config from './config';
import SourceView from './views/source';
import ToolbarView from './views/toolbar';
import DelveIOPanel from './views/ioPanel';
import { DelveConnMgr } from ... | JavaScript | 0 | @@ -714,24 +714,94 @@
ctivate() %7B%0A
+ // TODO: download & install delve for user if they don't have it?%0A
global._
|
02e7a30db9847387ac88e54b565662d7099827a9 | Oops! I think my hands were broken last night. changed a != to a == | js/controller.js | js/controller.js | // when the user first naviagates to the page, hide everything but a form
// - accomplish this with CSS selectors and manipulation of the DOM
// when they enter information into the form it disappears and the game begins
// restrict input to string elements
// initializing game, should only be called once.
// creates ... | JavaScript | 0.999934 | @@ -2036,16 +2036,21 @@
input;%0A
+%09// %0A
%09var ind
@@ -2392,108 +2392,21 @@
%09//
-scaling stub, not being used atm%0A%09%09// added for debug, to help us cheat :)%0A%09%09// retrieves user input
+read key code
%0A%09%09i
@@ -2439,25 +2439,25 @@
ent.keyCode
-!
+=
= 74) %7B%0A%09%09
@@ -2554,25 +2554,25 ... |
5344e6b7b6f1482b474785eb683b0c8e2ab99819 | Fix waitFor | tasks/docbase.js | tasks/docbase.js | /*
* grunt-docbase
* https://github.com/mateus/DocbaseGrunt
*
* Copyright (c) 2015 Mateus Freira
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-tasks
... | JavaScript | 0.000027 | @@ -4084,20 +4084,19 @@
debug:
-fals
+tru
e,%0A
|
a2d0e9ec819b486a6e5636140864aa31d9cca399 | update data | js/forceGraph.js | js/forceGraph.js | var width = 960,
height = 500;
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-120)
.linkDistance(200)
.size([width, height]);
var forceSvg = d3.select("div#chord_chart").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("newsGraph.json", function... | JavaScript | 0.000001 | @@ -1081,24 +1081,39 @@
ph(new_graph
+, selectedData1
);%0A%0A functi
@@ -1130,16 +1130,23 @@
ph(graph
+, nodes
)%7B%0A f
@@ -1861,22 +1861,16 @@
.data(
-graph.
nodes)%0A
|
7f6f91fc15f9c2da26a0c610f0100f3fad246aae | Clear job from WIP while draining | batch/batch.js | batch/batch.js | 'use strict';
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var debug = require('./util/debug')('batch');
var queue = require('queue-async');
var HostScheduler = require('./scheduler/host-scheduler');
var EMPTY_QUEUE = true;
var MINUTE = 60 * 1000;
var SCHEDULE_INTERVAL = 1 * MINUTE;... | JavaScript | 0 | @@ -5583,32 +5583,253 @@
rr);%0A %7D%0A%0A
+ self.clearWorkInProgressJob(user, jobId, function (err) %7B%0A if (err) %7B%0A debug(new Error('Could not clear job from work-in-progress list. Reason: ' + errClear.message));%0A %7D%0A%0A
self.job
@@ -5872,16 ... |
cf0b2a8c53b65f92c036a01f89582fe2e0473809 | Remove unused sceneSummary string, see #393 | js/SceneryPhetA11yStrings.js | js/SceneryPhetA11yStrings.js | // Copyright 2018, University of Colorado Boulder
/**
* Single location of all accessibility strings used in scenery-phet. These
* strings are not meant to be translatable yet. Rosetta needs some work to
* provide translators with context for these strings, and we want to receive
* some community feedback before... | JavaScript | 0.000002 | @@ -620,20 +620,19 @@
%0A //
-A11y
+Sim
Section
@@ -722,64 +722,8 @@
----
-%0A sceneSummary: %7B%0A value: 'Scene Summary'%0A %7D,
%0A%0A
@@ -1431,17 +1431,16 @@
%7D,%0A%0A
-%0A
play
|
c06f668e87eaa3f3a007c0b8093c7c129cbd2bef | correct markdown formatting | js/angular/directive/navView.js | js/angular/directive/navView.js | /**
* @ngdoc directive
* @name ionNavView
* @module ionic
* @restrict E
* @codepen odqCz
*
* @description
* As a user navigates throughout your app, Ionic is able to keep track of their
* navigation history. By knowing their history, transitions between views
* correctly enter and exit using the platform's tr... | JavaScript | 0.000003 | @@ -2952,16 +2952,18 @@
ork.%0A *%0A
+ *
## Cach
|
2d2bcbe40915f44ee19a4e528a03eb3f6ae40d4c | Fix syntax error and add new line to log history | assets/tools.js | assets/tools.js | /**
* Magister Calendar v1.4.0
* https://git.io/magister
*
* Copyright 2015 Sander Laarhoven
* Licensed under MIT (http://git.io/magister-calendar-license)
*/
var fs = require("fs");
var LOG_HISTORY = "";
module.exports = {
validjson: function (string) {
try {
JSON.parse(string);
}
catch (e)... | JavaScript | 0.000001 | @@ -783,20 +783,16 @@
%7D%0A
-var
LOG_HIST
@@ -801,24 +801,31 @@
Y += logtext
+ + %22%5Cn%22
;%0A consol
@@ -1640,20 +1640,16 @@
) %7B%0A
-var
loghisto
|
83a9b84daf470caee151dcced0f50dbfac477501 | Fix When i click on RESET button, all day's text content are removed even the day off #2 | js/calendrier.de/detailsjour.js | js/calendrier.de/detailsjour.js | var jourdetailList = {} ;
$( document ).ready(function() {
jourdetailList = storageGetData()
jourSetCustomization(jourdetailList) ;
$('body').on('focus', '[contenteditable]', function() {
var $this = $(this);
$this.data('before', $this.html());
jourTextChange($this.attr('jour'),$this.text()) ;
}).on(... | JavaScript | 0 | @@ -1182,16 +1182,66 @@
ue)%0A%09%09%7B%0A
+%09%09%09$('span%5Bjour=%22'+jour+'%22%5D').addClass('locked');%0A
%09%09%09$('#j
@@ -1323,17 +1323,17 @@
()%0A%7B%0A%09$(
-'
+%22
span%5Bjou
@@ -1334,16 +1334,31 @@
an%5Bjour%5D
+%22).not('.locked
').text(
|
3447a9a7b03c35cc96415c32bf2f790d0fd4dbe9 | allow to custom data dir with process.env.STARTING_DATA_DIR | lib/cli.js | lib/cli.js | var util = require('util');
var path = require('path');
var fs = require('fs');
var fse = require('fs-extra2');
var cp = require('child_process');
var os = require('os');
var BOOTSTRAP_PATH = path.join(__dirname, 'bootstrap.js');
//默认设置为`~`,防止Linux在开机启动时Node无法获取homedir
var homedir = (typeof os.homedir == 'function' ? o... | JavaScript | 0 | @@ -223,16 +223,17 @@
p.js');%0A
+%0A
//%E9%BB%98%E8%AE%A4%E8%AE%BE%E7%BD%AE%E4%B8%BA%60
@@ -268,25 +268,73 @@
dir%0Avar
-homedir =
+env = process.env;%0Avar homedir = env.STARTING_DATA_DIR %7C%7C
(typeof
@@ -379,18 +379,11 @@
() :
- %0Aprocess.
+%0A
env%5B
|
b2fd4e946421e157453c46794079be3f94d3cb02 | put parens around expression to improve readability | js/buttons/ResetAllButton.js | js/buttons/ResetAllButton.js | // Copyright 2002-2014, University of Colorado Boulder
/**
* Reset All button. This version is drawn in code using shapes, gradients,
* and such, and does not use any image files.
*
* @author John Blanco
*/
define( function( require ) {
'use strict';
// modules
var Color = require( 'SCENERY/util/Color' );... | JavaScript | 0 | @@ -759,16 +759,18 @@
Radius =
+ (
options
@@ -787,16 +787,18 @@
s.radius
+ )
? optio
|
03513250df89fa086fb1f22f623f2d50a390148b | Fix beta npm package CD versioning | .cicd/beta_npm_ver.js | .cicd/beta_npm_ver.js | #!/usr/bin/env node
'use strict'
const shell = require('shelljs');
const cv = require('compare-version');
const fs = require('fs');
const FLAGFILE = "/tmp/deployment.flag";
const pjson = require('../package.json');
const oldPjson = JSON.parse(shell.exec("git show HEAD~1:package.json").output);
const lastPublishedV... | JavaScript | 0.000034 | @@ -126,16 +126,135 @@
e('fs');
+%0Aconst path = require('path');%0A%0Aconst cwd = path.dirname(require.main.filename);%0Aconst project_dir = path.dirname(cwd);
%0A%0Aconst
@@ -315,12 +315,32 @@
ire(
-'../
+path.join(project_dir, '
pack
@@ -345,24 +345,25 @@
ckage.json')
+)
;%0Aconst oldP
@@ -912,19 +912,17 @@
... |
c72f03b0a28f0c6da7d970df73efe3fd28eca63f | fix deployConfig.requirejsNamespace, https://github.com/phetsims/chipper/issues/498 | js/common/getDeployConfig.js | js/common/getDeployConfig.js | // Copyright 2015, University of Colorado Boulder
var assert = require( 'assert' );
/**
* Gets configuration information that is related to deploying sims.
*
* All fields are @public (read-only).
* Fields include:
*
* Required:
* {string} name - name of the repository being built
* {string} version - version ... | JavaScript | 0 | @@ -227,18 +227,34 @@
Required
+ in package.json
:%0A
-
* %7Bstri
@@ -356,57 +356,93 @@
ng%7D
-simTitleStringKey - key of the sim's title string
+phet.requirejsNamespace - the requirejs namespace%0A *%0A * Required in build-local.json:
%0A *
@@ -617,16 +617,36 @@
Optional
+ in build-local.json
:%0A * %7Bst
@@... |
8b3160e07b1b177a940d9eed45eedf33b85fbcfb | Fix extraneous solution matrix | js/lights-out.js | js/lights-out.js |
var numRows = 4
var numCols = 4
var matrix = [
[undefined, undefined, undefined, undefined],
[undefined, undefined, undefined, undefined],
[undefined, undefined, undefined, undefined],
[undefined, undefined, undefined, undefined]
]
var solution = [
[undefined, undefined, undefined, undefined],
... | JavaScript | 0.000039 | @@ -248,227 +248,8 @@
%0A%5D%0A%0A
-var solution = %5B%0A %5Bundefined, undefined, undefined, undefined%5D,%0A %5Bundefined, undefined, undefined, undefined%5D,%0A %5Bundefined, undefined, undefined, undefined%5D,%0A %5Bundefined, undefined, undefined, undefined%5D%0A%5D%0A%0A
var
|
cdad56940635c302934e566607c072473897b619 | Rename 'connector' of a module-wire to 'handle' | js/components/module-wire.js | js/components/module-wire.js | (function(app) {
'use strict';
var jCore = require('jcore');
var helper = app.helper || require('../helper.js');
var dom = app.dom || require('../dom.js');
var ModuleWire = helper.inherits(function(props) {
ModuleWire.super_.call(this);
this.sourceX = this.prop(props.sourceX);
this.sourceY = th... | JavaScript | 0.00154 | @@ -432,33 +432,30 @@
);%0A this.
-connector
+handle
Type = this.
@@ -465,25 +465,22 @@
p(props.
-connector
+handle
Type);%0A
@@ -483,33 +483,30 @@
);%0A this.
-connector
+handle
Visible = th
@@ -521,25 +521,22 @@
!!props.
-connector
+handle
Visible)
@@ -847,25 +847,22 @@
ototype.
-connector
+handle
El... |
49a2dbaede9dd2e73fc035f60a80d09bdbaf25f6 | Remove support for old reporter usage | lib/cli.js | lib/cli.js | 'use strict';
var configLoader = require('./config-loader');
var Lesshint = require('./lesshint');
var path = require('path');
var exit = require('exit');
var Vow = require('vow');
var EXIT_CODES = {
OK: 0,
WARNING: 1,
ERROR: 2,
NOINPUT: 66,
SOFTWARE: 70,
CONFIG: 78
};
var getReporter = funct... | JavaScript | 0 | @@ -2186,274 +2186,33 @@
-if (reporter.report) %7B%0A reporter.report(results);%0A %7D else %7B%0A console.warn('Reporters should expose a report() method. The old usage is deprecated and will be removed in 2.0.');%0A reporter(results);%0A %7D
+re... |
ce46ccc7b06b354346483be0fbd0e581efb6f4a5 | add less than matcher on cloud9ide | lib/matchers.js | lib/matchers.js | var assert = require('assert'),
url = require('url');
var matcher = function (actual) {
var actual = actual, self = actual;
this.beEqual = function (expected){
assert.equal(actual, expected);
};
this.notBeEqual= function (expected) {
assert.notDeepEqual(actual, expected);
};
th... | JavaScript | 0 | @@ -303,24 +303,212 @@
ted);%0A %7D;
+%0A %0A this.beLessThan = function (expected) %7B%0A if (actual %3E expected) %7B%0A throw %7B message: actual + %22 is greater than %22 + expected + %22 expected to be less%22%7D %0A %7D%0A %7D;
%0A%0A this.thr
|
49c846b8859b8226b940a980a290362bdf237a7e | Refactor cli.js | lib/cli.js | lib/cli.js | #!/usr/bin/env node
import meow from 'meow';
import fs from 'fs-promise';
import path from 'path';
import {buildTheme} from './';
import logger from './logger';
require('babel-polyfill');
(async function() {
const optionsText = `Usage:
$ base16-builder <command>
$ base16-builder [-s <scheme>] [-t <template... | JavaScript | 0.000008 | @@ -204,16 +204,145 @@
ion() %7B%0A
+ async function resolvePath(path) %7B%0A let stat = await fs.lstat(path);%0A if (stat.isFile()) %7B%0A return path;%0A %7D%0A %7D%0A%0A
const
@@ -348,20 +348,16 @@
options
-Text
= %60Usag
@@ -934,17 +934,16 @@
jucks%60;%0A
-%0A
const
@@ -964,12 +964,8 @... |
1e12720406df9f59ef3b3aa398c58d26742beabb | Fix overzealous unfuckery in tab-fix command | lib/cmd.js | lib/cmd.js | "use strict";
const {exec} = require("child_process");
const commands = {
/* Run GNU Make from project directory */
"user:make" (){
const projectPath = atom.project.getPaths();
exec(`cd '${projectPath[0]}' && make`);
},
/* Toggle bracket-matcher highlights */
"body user:toggle-bracket-matcher" (){
let ... | JavaScript | 0 | @@ -518,16 +518,124 @@
return;%0A
+%09%09const hardenUp = () =%3E atom.commands.dispatch(editor.editorElement, %22whitespace:convert-spaces-to-tabs%22);%0A
%09%09const
@@ -682,16 +682,22 @@
%5E%5Cx20%7B2%7D
+(?=%5CS)
/mg);%0A%09%09
@@ -761,19 +761,8 @@
ines
-.length %3E 1
)%7B%0A%09
@@ -824,113 +824,46 @@
hen(
... |
bf2e315e797c3c95c22cce425f23dea29616081c | Update promizzes_test2.js | js/promizzes/promizzes_test2.js | js/promizzes/promizzes_test2.js | (function() {
'use strict';
define(['promizzes2', 'chai'], function(promizzes, chai) {
var expect = chai.expect;
var promise = promizzes.promise;
var fulfill = promizzes.fulfill;
var depend = promizzes.depend;
var ajax = promizzes.ajax;
describe('a promises system with every logic inside... | JavaScript | 0 | @@ -423,74 +423,25 @@
-this.timeout(5000);%0A var data = ajax('http://localhost:8080
+var data = ajax('
/jso
|
968e25269ec9277259d3c9a0ea8aeb4d2e315266 | Remove debugging console output | js/foam/graphics/PieGraph.js | js/foam/graphics/PieGraph.js | /**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | JavaScript | 0.000001 | @@ -1841,49 +1841,8 @@
) %7B%0A
- console.log('Setting dimensions');%0A
|
db8d88fd5413a68147052d27c02367929d7d8bf9 | use petname as tab title on feeds | modules/feed.js | modules/feed.js | var ref = require('ssb-ref')
var ui = require('../ui')
var Scroller = require('pull-scroll')
var h = require('hyperscript')
var pull = require('pull-stream')
var u = require('../util')
var plugs = require('../plugs')
var sbot_user_feed = plugs.first(exports.sbot_user_feed = [])
var message_render = plugs.first(exports... | JavaScript | 0 | @@ -396,16 +396,73 @@
le = %5B%5D)
+%0Avar signifier = plugs.first(exports.signifier = %5B%5D)
%0A%0Aexport
@@ -799,24 +799,122 @@
)%0A )%0A%0A
+ signifier(id, function (_, names) %7B%0A if(names.length) div.title = names%5B0%5D.name%0A %7D)%0A%0A%0A
pull(%0A
@@ -1316,13 +1316,11 @@
%... |
9b6a8f2b18229fad9b2935196cda6a5b9c811b78 | fix wiki link | js/id/ui/preset/wikipedia.js | js/id/ui/preset/wikipedia.js | iD.ui.preset.wikipedia = function(field, context) {
var event = d3.dispatch('change', 'close'),
wikipedia = iD.wikipedia(),
language = iD.data.wikipedia[0],
link, entity, lang, title;
function i(selection) {
var langcombo = d3.combobox()
.fetcher(function(value, __... | JavaScript | 0 | @@ -1831,16 +1831,17 @@
_blank')
+;
%0A
@@ -1841,20 +1841,20 @@
-
+link
.append(
|
2f27e332ed5cfaa9f5cee14436df6dccddc5b264 | simplify pipe replacement | lib/doc.js | lib/doc.js | const fs = require('fs')
const path = require('path')
const mkdirp = require('mkdirp').sync
const titlecase = require('titlecase')
const semver = require('semver')
const marky = require('marky-markdown-lite')
const matter = require('gray-matter')
const toMarkdown = require('to-markdown')
const versions = require(path.j... | JavaScript | 0.000005 | @@ -1745,21 +1745,14 @@
-const match =
+return
lin
@@ -1776,51 +1776,8 @@
+%60/)
- && line.match(/ %5C%7C /)%0A return match
? l
|
176a601aa84e3940726ada26b3a68f131596e5e6 | Change viewpane to be centered on init | lib/controller.js | lib/controller.js | "use strict";
var Userinput = require("./userinput/index");
var Scene = require("./scene");
var ViewpaneElement = require("./scene/Entity");
var vector = require("./common/vector");
var SpeedSnapAnimation = require("./scene/SpeedSnapAnimation");
var withObservable = require("./common/withObservable");
function el(el... | JavaScript | 0 | @@ -3519,16 +3519,33 @@
%0A %7D);
+%0A%0A this.fit();
%0A%7D%0A%0AView
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.