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 |
|---|---|---|---|---|---|---|---|
0e2033962a515b569e99ec79889db8a503505a5f | add sorting data function | js/main.js | js/main.js | $(function(){
var getSolved = function(username, callback){
var apiUrl = "http://judge.u-aizu.ac.jp/onlinejudge/webservice/user?id=";
$.ajax({
url: apiUrl + username,
type: 'get',
dataType: 'xml',
success: function(xml, status){
var username_ = $(xml).find("user > id").text();
var solved_ = $(... | JavaScript | 0.000074 | @@ -813,24 +813,31 @@
s_.push(
+%7Bname:
username
);%0A%09%09sol
@@ -832,32 +832,25 @@
name
-);%0A%09%09
+,
solved
-_.push(
+:
solved
+%7D
);%0A%09
@@ -1146,16 +1146,84 @@
(%222d%22);%0A
+%09%09users_.sort(function(a, b)%7B%0A%09%09%09%09return a.solved - b.solved;%0A%09%09%7D);%0A
%09%09new Ch
@@ -1252,47 ... |
0abda66984faeee861d09a9f7c7f66294e036fdb | add new datetinme | js/main.js | js/main.js | $(function() {
$( "#datepicker" ).datepicker({ minDate: -365, maxDate: "+0M",
showOn: "button",
//buttonImage: "img/calendar.gif",
buttonImageOnly: true,
buttonText: "Select date"
});
});
| JavaScript | 0.000001 | @@ -113,10 +113,8 @@
-//
butt
@@ -123,16 +123,50 @@
Image: %22
+www.benoats.co/university/savings/
img/cale
|
18081b141f0c4c7f44a0a9bba81a0c368cd61692 | remove pseudocode' | js/main.js | js/main.js | // DOM selection and events for playing
//Steps
//1. generate audio context upon page load
//2. create two audio objects with different frequencies
//3. add play/pause button for both pitches
//4. add change frequency box that changes frequency upon button press
//5. add change amplitude box that changes amplitude ... | JavaScript | 0.000852 | @@ -39,305 +39,8 @@
g%0A%0A%0A
-%0A%0A//Steps%0A//1. generate audio context upon page load%0A//2. create two audio objects with different frequencies%0A//3. add play/pause button for both pitches%0A//4. add change frequency box that changes frequency upon button press%0A//5. add change amplitude box that changes ampli... |
4e28012a1dbab3c9d8675fc02355b8416900eaa6 | add hover function to change color | js/main.js | js/main.js | /* jshint browser: true, devel: true, indent: 2, curly: true, eqeqeq: true, futurehostile: true, latedef: true, undef: true, unused: true */
/* global $, jQuery, document, Site, Modernizr */
Site = {
mobileThreshold: 601,
init: function() {
var _this = this;
$(window).resize(function(){
_this.onResi... | JavaScript | 0.000001 | @@ -365,16 +365,45 @@
n () %7B%0A%0A
+ _this.hoverColor();%0A %0A
%7D);%0A
@@ -753,16 +753,316 @@
%7D);%0A %7D,
+%0A%0A hoverColor: function(s) %7B%0A if ($('%5Bdata-hover-color%5D').length) %7B%0A $('%5Bdata-hover-color%5D').hover(%0A function() %7B%0A $(this).css('color', $(this... |
6321c62429f4cc7ab560d65065a017283fba0b67 | Add terrain collisions (with an interesting bug) | js/main.js | js/main.js | var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update, render: render });
var player;
var cursors;
var heavy;
var tileSize = 128;
var stepSize = tileSize / 4;
var seaTiles = 10;
var terrainIterations = 4;
var islandTiles = Math.pow(2, terrainIterations + 1);
var is... | JavaScript | 0 | @@ -153,16 +153,33 @@
r heavy;
+%0Avar islandGroup;
%0A%0Avar ti
@@ -1905,29 +1905,32 @@
tile =
-game.add.spri
+islandGroup.crea
te(x, Ma
@@ -2413,16 +2413,83 @@
0,255)';
+%0A%09%0A%09islandGroup = game.add.group();%0A%09islandGroup.enableBody = true;
%0A%0A%09makeT
@@ -2780,17 +2780,16 @@
layer);%0A
-%0A
%7D... |
b5b91cedf1e7e9cf710a8c2f2c235e3b91566f36 | Update reducer.js | src/logic/reducer.js | src/logic/reducer.js | import { ADD_ITEM } from './constants';
import { REMOVE_ITEM } from './constants';
import { TOGGLE_ITEM_STATUS } from './constants';
import { SET_LIST_FILTER } from './constants';
import { FILTERS } from './constants';
export const initialState = {
items: [
{ id: 1, content: 'Call mum', completed: true },
{ ... | JavaScript | 0.000001 | @@ -875,21 +875,21 @@
let new
-State
+Items
= %5B%5D;%0A/
@@ -968,30 +968,33 @@
new
-State
+Items
.push(
-compareData
+action.payload
);%0A/
@@ -1020,21 +1020,21 @@
new
-State
+Items
.push(it
|
0cfc2087339e6d68877783c5cdcbb8d9522a88ba | Fix the display of stock prices to always contain 2 places after the decimal | js/main.js | js/main.js | /**
* Created by ssmith on 12/29/15.
*/
var ws = new SockJS('http://' + window.location.hostname + ':15674/stomp');
var client = Stomp.over(ws);
var user = 'guest';
var pass = 'guest';
var vhost = '/';
var time_refresh = 1000;
// SockJS does not support heart-beat: disable heart-beats
client.heartbeat.outgoing = 0;
... | JavaScript | 0.002376 | @@ -2904,16 +2904,27 @@
ck.price
+.toFixed(2)
);%0A
@@ -2975,16 +2975,27 @@
k.change
+.toFixed(2)
);%0A
|
85b0d6e66c80325fd408c01d9f8f6b0aaca3c1d1 | Fix image prb | js/main.js | js/main.js | /*!
* @overview Boxed.js
*
* @copyright (c) 2015 Web Semantics, Inc.
*
* Warning: The code is a mess, pre-alpha
*
* @license Licensed under MIT license
*
*/
var obj = this;
(function() {
var Boxed = function(file_name, repo, form) {
var zipWriter, writer, URL = obj.webkitURL || obj.mozURL || obj.... | JavaScript | 0.000322 | @@ -3551,19 +3551,19 @@
var
-cls
+obj
= (%5B'pn
@@ -3605,16 +3605,20 @@
!= -1)?
+ new
zip.Blo
@@ -3624,16 +3624,22 @@
obReader
+(file)
: zip.T
@@ -3647,16 +3647,27 @@
xtReader
+(file.data)
;%0A%0A
@@ -3808,26 +3808,11 @@
th,
-new cls(file.data)
+obj
, fu
|
0d943bc1a16f245d828c1297910e446e7b5591ae | Increase auto-save delay (#5083) | src/foam/u2/wizard/BaseWizardlet.js | src/foam/u2/wizard/BaseWizardlet.js | /**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.wizard',
name: 'BaseWizardlet',
topics: ['saveEvent'],
implements: [
'foam.u2.wizard.Wizardlet'
],
requires: [
'foam.u2.detail.AbstractSection... | JavaScript | 0 | @@ -581,16 +581,93 @@
'%0A %5D,%0A%0A
+ constants: %5B%0A %7B%0A name: 'SAVE_DELAY',%0A value: 1200%0A %7D%0A %5D,%0A%0A
proper
@@ -4532,29 +4532,23 @@
ay:
-700 // TODO: constant
+self.SAVE_DELAY
%0A
@@ -4879,11 +4879,23 @@
ay:
-700
+self.SAVE_DELAY
%0A
|
a8d084585b3eb7ffb270685ef6a25c6a7f1c1654 | Update main.js | js/main.js | js/main.js | let d = new Date();
document.body.innerHTML = "<h1>Today's date is " + d + " and hey Nick!</h1>"
| JavaScript | 0.000001 | @@ -13,16 +13,24 @@
Date();%0A
+var x =
document
@@ -34,36 +34,66 @@
ent.
-body.innerHTML = %22%3Ch1%3E
+createElement(%22P%22);%0Avar t = document.createTextNode(%22
Today
-'
s da
@@ -125,11 +125,56 @@
ick!
-%3C/h1%3E%22
+%22);%0Ax.appendChild(t);%0Adocument.body.appendChild(x);
%0A
|
e2235a00a2a5e375b1b2bacbf190bdc328445bd9 | Increase indention by 2 spaces | js/main.js | js/main.js | var questions = [
Q1 = {
question: "What does HTML means?",
answer: "HyperText Markup Language"
},
Q2 = {
question: "What does CSS means?",
answer: "Cascading Style Sheet"
},
Q3 = {
question: "Why the \"C\" in CSS, is called Cascading?",
answer: "When CSS rules are duplicated, the rule... | JavaScript | 0.000056 | @@ -16,28 +16,26 @@
%5B%0A Q1 = %7B%0A
-
+%09%09
question: %22W
@@ -49,36 +49,34 @@
s HTML means?%22,%0A
-
+%09%09
answer: %22HyperTe
@@ -105,28 +105,26 @@
%7D,%0A Q2 = %7B%0A
-
+%09%09
question: %22W
@@ -141,28 +141,26 @@
SS means?%22,%0A
-
+%09%09
answer: %22Cas
@@ -193,20 +193,18 @@
Q3 =... |
26f812831c2f72de611bcab101a94e5277888055 | Fix jquery loading bug in project | js/main.js | js/main.js | // jQuery to collapse the navbar on scroll
function collapseNavbar() {
if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
}
$(window).scroll(collapseNavbar);
$(document).ready(collapse... | JavaScript | 0.000001 | @@ -2218,66 +2218,66 @@
-loadProjectSlider();%0A var $project = $('#project'
+var $project = $('#project');%0A loadProjectSlider(
);%0A
@@ -2293,39 +2293,32 @@
$('html, body').
-stop().
animate(%7B%0A
@@ -2405,42 +2405,8 @@
');%0A
- event.preventDefault();%0A
@@ -2416,1... |
1251e67bde6a60de61ba04a3cd35ca030260d0d9 | Update myjs.js | js/myjs.js | js/myjs.js | function makeApiCall() {
var apiQuery = gapi.client.analytics.data.ga.get({
'ids': TABLE_ID,
'start-date': '2010-01-01',
'end-date': '2010-01-15',
'metrics': 'ga:sessions',
'dimensions': 'ga:source,ga:keyword',
'sort': '-ga:sessions,ga:source',
'filters': 'ga:medium==organic',
'max-res... | JavaScript | 0.000001 | @@ -628,24 +628,25 @@
%22Signed in%22
+;
%0A %7D else %7B%0A
@@ -750,16 +750,17 @@
gned in%22
+;
%0A %7D%0A%7D);
|
7fa6802b0a801ee9b5de0ba7ed2a80a2ec3c4a2c | fix bug with marker layer and attribution control | js/site.js | js/site.js | var map;
var maphash = null;
var geosearch = new L.Control.GeoSearch({
provider: new L.GeoSearch.Provider.OpenStreetMap({countrycodes: 'ch'}),
searchLabel: 'Adresse eingeben',
notFoundMessage: 'Es wurden keine Ergebnisse gefunden'
});
L.Contr... | JavaScript | 0 | @@ -595,32 +595,71 @@
on(e)%0A %7B%0A
+%09%09if (e.layer.getAttribution) %7B%0A
@@ -650,32 +650,33 @@
+
this.addAttribut
@@ -698,32 +698,36 @@
Attribution());%0A
+%09%09%7D%0A
%7D,%0A
@@ -765,16 +765,56 @@
%7B%0A
+%09%09if (e.layer.getAttributio... |
acf6cee3340d5b1c2a5cfb75644db05b7bdc1dba | remove unused variable | src/gwt/acesupport/acemode/utils.js | src/gwt/acesupport/acemode/utils.js | /*
* utils.js
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This pr... | JavaScript | 0.00003 | @@ -2871,146 +2871,8 @@
les;
-%0A var startRule = %7B%0A token: %22support.function.codebegin%22,%0A regex: reStart,%0A next : prefix + %22-start%22%0A %7D;
%0A%0A
|
a185960250cf95592867d23c402f033eafbba88a | Use `Error.toString` for a displayed message whenever possible | src/js/viewmodels/message-dialog.js | src/js/viewmodels/message-dialog.js | /*
* Copyright 2015 Vivliostyle Inc.
*
* This file is part of Vivliostyle UI.
*
* Vivliostyle UI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... | JavaScript | 0.000001 | @@ -981,21 +981,8 @@
) %7B%0A
- var msg;%0A
@@ -1014,21 +1014,19 @@
var
-stack
+msg
= e &&
@@ -1026,16 +1026,32 @@
= e && (
+e.toString() %7C%7C
e.frameT
@@ -1069,24 +1069,8 @@
tack
- %7C%7C e.toString()
);%0A
@@ -1076,21 +1076,19 @@
if (
-stack
+msg
) %7B%0A
@@ -1097,21 +1097,19 @@
... |
e908faa1e7b606098bce9244046b9e3958665af3 | Update uk.js | l10n/uk.js | l10n/uk.js | OC.L10N.register(
"audioplayer",
{
"Add new tracks to library" : "Знайти і додати нову музику",
"Scan for new audio files" : "Знайти нові аудіофайли...",
"Sort Playlist" : "Упорядочить список воспроизведения",
"Delete Playlist" : "Удалить список воспроизведения",
"Delete Song from Playlist" :"Видал... | JavaScript | 0.000001 | @@ -353,70 +353,48 @@
%0D%0A%09%22
-No Songs found in current Playlist! Add new Songs per Drag & D
+Add new tracks to playlist by drag and d
rop
|
f033c2811cd42d8d13dd2e335b1c352e3a628640 | Disable gfx.canvas.azure.accelerated | user.js | user.js | user_pref("beacon.enabled", false);
user_pref("browser.contentblocking.enabled", false);
user_pref("browser.library.activity-stream.enabled", false);
user_pref("browser.safebrowsing.downloads.enabled", false);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", f... | JavaScript | 0.000004 | @@ -574,57 +574,8 @@
e);%0A
-user_pref(%22gfx.canvas.azure.accelerated%22, true);%0A
user
|
5f515181abbc0f2cd8e951e69130fbf7146bce74 | Add getRandomBytes. | util.js | util.js | export function assert(value) {
if (!value) {
throw Error('Assertion failed')
}
return value
}
const binarySearchWith = compare => (xs, x, key = x => x) => {
let start = 0
let end = xs.length
while (start < end) {
const i = Math.floor((start + end) / 2)
if (compare(key(xs[i]), x)) {
start... | JavaScript | 0 | @@ -682,24 +682,193 @@
default_%0A%7D%0A%0A
+export function getRandomBytes(n) %7B%0A return Array.from(crypto.getRandomValues(new Uint8Array(n)))%0A .map(byte =%3E byte.toString(16).padStart(2, '0'))%0A .join('')%0A%7D%0A%0A
export const
|
6b401b8c90dd22b215e0db2f6eab54a121c724e1 | use size instead of length, since it's not measuring a dimention of an array | util.js | util.js | var Blake2s = require('blake2s')
var path = require('path')
var pull = require('pull-stream')
var isBuffer = Buffer.isBuffer
exports.toPath = function (dir, hash) {
var i = hash.indexOf('.')
var alg = hash.substring(i+1)
var h = new Buffer(hash.substring(0, i), 'base64').toString('hex')
return path.joi... | JavaScript | 0.000008 | @@ -544,18 +544,12 @@
her.
-byteLength
+size
+=
@@ -724,19 +724,20 @@
hasher.
-len
+size
= 0%0A%0A
|
7e4c224a9c8b537410b6d538d503538b57c5ce1a | Update bootstrap-table-es-MX.js | src/locale/bootstrap-table-es-MX.js | src/locale/bootstrap-table-es-MX.js | /**
* Bootstrap Table Spanish (México) translation (Obtenido de traducción de Argentina)
* Author: Felix Vera (felix.vera@gmail.com)
* Copiado: Mauricio Vera (mauricioa.vera@gmail.com)
* Revisión: J Manuel Corona (jmcg92@gmail.com) (13/Feb/2018).
*/
$.fn.bootstrapTable.locales['es-MX'] = {
formatCopyRows () {
... | JavaScript | 0.000001 | @@ -244,16 +244,83 @@
/2018).%0A
+ * Revisi%C3%B3n: Ricardo Gonz%C3%A1lez (rickygzz85@gmail.com) (20/Oct/2021)%0A
*/%0A%0A$.f
@@ -398,13 +398,16 @@
'Cop
-y Row
+iar Fila
s'%0A
@@ -441,21 +441,24 @@
return '
-Print
+Imprimir
'%0A %7D,%0A
@@ -595,21 +595,22 @@
mber%7D re
-gistr
+sultad
os por p
@@ -868,17 +86... |
8670cea8ec0c96d909a3db7a21e893add0841cfa | Add source field to record model | src/models/Record.js | src/models/Record.js | 'use strict'
const mongoose = require('mongoose')
const uuid = require('uuid').v4
const isUrl = require('is-url')
const isNullOrUrl = (value) => value == null || isUrl(value)
const schema = new mongoose.Schema({
id: {
type: String,
required: true,
unique: true,
default: uuid
},
clientId: {
type: String,... | JavaScript | 0 | @@ -595,24 +595,54 @@
ngth: 2%0A%09%7D,%0A
+%09source: %7B%0A%09%09type: String%0A%09%7D,%0A
%09screenWidth
|
49b6a4f5d1348d001ef3c1cd34903e0c97371746 | Update add method | src/modules/manip.js | src/modules/manip.js | var _ = require('_'),
_selector = require('./selectors'),
_array = require('./array'),
_utils = require('../utils'),
parser = require('../D/parser'),
utils = require('../utils');
var _empty = function(arr) {
var idx = 0, length = arr.length;
for (; idx < length; idx++) {
... | JavaScript | 0.000001 | @@ -4955,282 +4955,35 @@
s(O.
-D).use(function(d) %7B%0A _array.unique(%0A _utils.merge(this, d)%0A );%0A %0A return this; %0A %7D)%0A // TODO: merge this method with O.D when Overload bug is fixed%0A .args... |
2fcc476fccece2b455e5d56f960e2fc434aaa9a8 | make observeObject use core | src/observeObject.js | src/observeObject.js | /**
* observe-plus.js - https://github.com/podefr/observe-plus
* Copyright(c) 2014 Olivier Scherrer <pode.fr@gmail.com>
* MIT Licensed
*/
module.exports = function observeObject(observedObject) {
var _typeCallbacks = {},
_propertyCallbacks = {},
_isPaused = false,
_savedEvents = [];
... | JavaScript | 0 | @@ -135,16 +135,48 @@
sed%0A */%0A
+ var Core = require(%22./core%22);%0A%0A
module.
@@ -240,1777 +240,325 @@
ar _
-typeCallbacks = %7B%7D,%0A _propertyCallbacks = %7B%7D,%0A _isPaused = false,%0A _savedEvents = %5B%5D;%0A%0A Object.observe(observedObject, function core(events) %7B%0A ... |
176c8738309f5ee3b4aad9c7f67d794b43b37918 | Use opt_this instead of opt_scope in ol.Observable | src/ol/observable.js | src/ol/observable.js | goog.provide('ol.Observable');
goog.require('goog.events');
goog.require('goog.events.EventTarget');
/**
* An event target providing convenient methods for listener registration
* and unregistration.
* @constructor
* @extends {goog.events.EventTarget}
* @suppress {checkStructDictInheritance}
* @struct
* @tod... | JavaScript | 0.000001 | @@ -660,63 +660,53 @@
opt_
-scope O
+this The o
bject
-is whose scope to call%0A * the
+to use as %60this%60 in %60
listener
.%0A *
@@ -693,32 +693,33 @@
is%60 in %60listener
+%60
.%0A * @return %7Bgo
@@ -848,37 +848,36 @@
, listener, opt_
-scope
+this
) %7B%0A return goo
@@ -917,37 +917,36 @@
ner, fals... |
df71ce95ad9f26173746b3855d3cbd6315d71f2c | Update Graph.js | Graph.js | Graph.js | /**
* JS implementation of an undirected Graph.
* TODOs: 1. Add weights for the edges.
* 2. Add support for loops.
*/
function Graph(vertex) {
var graph = {};
_this = this;
_this.graph = graph;
_this.graph[vertex] = {};
_this.getGraph = getGraph;
_this.addVertex = addVertex;
_this.numberOfVertices = numb... | JavaScript | 0 | @@ -532,16 +532,48 @@
eDegree;
+%0A%09_this.removeEdge = removeEdge;
%0A%0A%09/* Re
@@ -1387,16 +1387,17 @@
* Adds a
+n
edge in
@@ -1767,32 +1767,442 @@
%5D = '';%0A%09%09%7D%0A%09%7D%0A%0A
+%09/* Removes an edge from the graph */%0A%09function removeEdge(fromVertex, toVertex) %7B%0A%09%09if(!_this.graph%5BfromVe... |
acda2674e43657112a621ad9b78527828ed3a60d | Use a better structure for components | data/componentData.js | data/componentData.js | /**
* Transfer component data from .mxt to json
*/
var fs = require('fs');
var path = require('path');
var componentDataPath = './componentdata.tmp';
fs.readFile(componentDataPath, { encoding : 'utf-8' }, function (err, data) {
if(err) return console.log(err);
var lines = data.split('\n');
var categories =... | JavaScript | 0.000192 | @@ -378,99 +378,10 @@
r =
-categories.map(function (item) %7B%0A return %7B%0A name : item,%0A data : %5B%5D%0A %7D%0A %7D)
+%7B%7D
;%0A%0A
@@ -536,34 +536,22 @@
ems%5B
-2%5D - 1%5D.data.push(
+0%5D%5D =
%7B%0A
code
@@ -546,19 +546,19 @@
%7B%0A
-cod
+nam
e : item
@@ -559,17 +559,1... |
cf183c2065926aeb8011e5bf6b1e472e53290dcf | Remove `cacheMode` top-level property - this will be accomplished through plugin. | example/build.js | example/build.js | var path = require("path");
var Interlock = require("..");
var ilk = new Interlock({
srcRoot: __dirname,
destRoot: path.join(__dirname, "dist"),
entry: {
"./app/entry-a.js": "entry-a.bundle.js",
"./app/entry-b.js": { dest: "entry-b.bundle.js" }
},
split: {
"./app/shared/lib-a.js": "[setHash].js... | JavaScript | 0 | @@ -369,40 +369,8 @@
rue,
-%0A // cacheMode: %22localStorage%22,
%0A%0A
|
2daab55e032f276b0470efb07bc82706f4780fc4 | Support all browsers | example/clock.js | example/clock.js | var _ = Elem.Utils;
var cssClass = Elem.cssClass;
var Style = {
circle: cssClass({
borderRadius: '50%',
width: '120px',
height: '120px',
marginLeft: '10px',
marginTop: '10px',
background: 'white',
border: '3px solid #61b2a7',
position: 'relative',
}),
circleCentered: cssClass({
... | JavaScript | 0 | @@ -2310,203 +2310,717 @@
g)'
-%7D) %7D, ''),%0A Elem.el('div', %7B style: Style.circleMinute.extend(%7B transform: 'rotate(' + state().minutes + 'deg)' %7D) %7D, ''),%0A Elem.el('div', %7B style: Style.circleSecond.extend(%7B transform
+ , '-webkit-transform': 'rotate(' + state().hours + 'deg)' , '-moz-... |
75fcbdba62936f804be276fbca6ca86101fe8390 | Add various parameter types to people state | example/hello.js | example/hello.js | var myApp = angular.module('hello', ['ui.router', 'oc.lazyLoad']);
myApp.config(function($stateProvider) {
// An array of state definitions
var states = [
{ name: 'hello', url: '/hello', component: 'hello' },
{ name: 'about', url: '/about', component: 'about' },
{
name: 'people',
url... | JavaScript | 0.000001 | @@ -458,16 +458,331 @@
eople',%0A
+ params: %7B%0A param5: %7B value: 123, type: 'int' %7D,%0A param6: %7B value: %22abc%22 %7D,%0A param7: %7B value: true, type: 'bool' %7D,%0A param8: %7B value: null %7D,%0A param9: %7B value: null %7D,%0A param10: %7B value: null %7D,%... |
a2b381aff2b8a450a89d7709965b87f0337f8a5b | Fixing the location of zxcvbn.js | cog/static/js/zxcvbn/zxcvbn-async.js | cog/static/js/zxcvbn/zxcvbn-async.js | (function(){var a;a=function(){var a,b;b=document.createElement("script");b.src="/site_media/js/zxcvbn/zxcvbn.js";b.type="text/javascript";b.async=!0;a=document.getElementsByTagName("script")[0];return a.parentNode.insertBefore(b,a)};null!=window.attachEvent?window.attachEvent("onload",a):window.addEventListener("load"... | JavaScript | 0.993678 | @@ -80,17 +80,13 @@
=%22/s
-ite_media
+tatic
/js/
|
b76dd8eb2fc368c5bf6505184808d57c7d6b14ab | make the inclusion of e2e tests in the protractor config a bit more generic | protractor.conf.js | protractor.conf.js |
exports.config = {
allScriptsTimeout: 20000,
specs: [
'./src/test/javascript/e2e/account/**/*.spec.ts',
'./src/test/javascript/e2e/admin/**/*.spec.ts',
'./src/test/javascript/e2e/entities/**/*.spec.ts',
/* jhipster-needle-add-protractor-tests - JHipster will add protractors tes... | JavaScript | 0 | @@ -96,131 +96,8 @@
e2e/
-account/**/*.spec.ts',%0A './src/test/javascript/e2e/admin/**/*.spec.ts',%0A './src/test/javascript/e2e/entities/
**/*
|
fe01ed2d0d33a807e047f926124218904c6fb044 | Add a WAITING state to NoSignalStream | apps/pipeland/src/classes/NoSignalStream.js | apps/pipeland/src/classes/NoSignalStream.js |
/**
* This dude is a transform stream that will always output video or audio no matter what. We use
* that to generate "no signal" feeds if we don't have input yet.
*/
import {Transform} from "stream";
import munger from "mpeg-munger";
import url from "url";
import winston from "winston";
import {SERVER_START_TIM... | JavaScript | 0.000138 | @@ -653,16 +653,57 @@
n be in%0A
+const STATE_WAITING = Symbol(%22waiting%22);%0A
const ST
@@ -2688,22 +2688,23 @@
= STATE_
-ACTIVE
+WAITING
;%0A%0A t
@@ -3062,16 +3062,48 @@
E_ACTIVE
+ && this.state !== STATE_WAITING
) %7B%0A
|
517f7c1c56baa1fcb05fa06d6ffeeec38d32e896 | Kill unused var. | graphic_templates/bar_chart/js/graphic.js | graphic_templates/bar_chart/js/graphic.js | // Global config
var GRAPHIC_DEFAULT_WIDTH = 600;
var MOBILE_THRESHOLD = 500;
// Global vars
var pymChild = null;
var isMobile = false;
var graphicData = null;
/*
* Initialize the graphic.
*/
var onWindowLoaded = function() {
if (Modernizr.svg) {
loadLocalData(GRAPHIC_DATA);
//loadCSV('data.csv'... | JavaScript | 0 | @@ -1800,36 +1800,8 @@
6;%0A
- var valueMinWidth = 30;%0A
|
70d9ac123d9d1c5993937a805a61ae4ab2cdc84f | Make the variable CPU cycles computation more clear and add a comment that explains it | src/components/shared/SampleTooltipContents.js | src/components/shared/SampleTooltipContents.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/. */
// @flow
import * as React from 'react';
import { Backtrace } from './Backtrace';
import { getCategoryPairLabel }... | JavaScript | 0.000001 | @@ -2220,32 +2220,34 @@
ble CPU cycles':
+ %7B
%0A cpuUsag
@@ -2243,25 +2243,177 @@
-cpuUsageRatio = (
+// Here, we are finding the interval factor so we can find the CPU usage%0A // per ms. This is similar to how we compute the max CPU. In the code%0A // below %60
cpuU
@@ -2417,17 +2417,1... |
a8487c540f01a4cf63f4500b28f3af3441733b5c | Convert group avatar URL to HTTP before handing to BaseAvatar | src/components/views/groups/GroupInviteTile.js | src/components/views/groups/GroupInviteTile.js | /*
Copyright 2017 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0 | @@ -618,16 +618,62 @@
types';%0A
+import %7B MatrixClient %7D from 'matrix-js-sdk';%0A
import s
@@ -936,24 +936,110 @@
ed,%0A %7D,%0A%0A
+ contextTypes: %7B%0A matrixClient: PropTypes.instanceOf(MatrixClient),%0A %7D,%0A%0A
onClick:
@@ -1413,16 +1413,170 @@
groupId;
+%0A const httpAvatar... |
92579cf4630c609d3bf5e500640258198e76d653 | Array literal | src/components/views/messages/DateSeparator.js | src/components/views/messages/DateSeparator.js | /*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | JavaScript | 0.999432 | @@ -735,225 +735,184 @@
%7B%0A%09
-var days = %5B%5D;%0A%09days.push(_t('Sunday'));%0A%09days.push(_t('Monday'));%0A%09days.push(_t('Tuesday'));%0A%09days.push(_t('Wednesday'));%0A%09days.push(_t('Thursday'));%0A%09days.push(_t('Friday'));%0A%09days.push(_t('Saturday'));%0A%09return days
+return %5B%0A _t('Sun... |
5d1d954bc65128cacc51f279acf1963d6e899f25 | fix unresolved import in ReadabilityCusom.js | server/utils/ReadabilityCustom.js | server/utils/ReadabilityCustom.js | import { Readability } from 'readability'
class ReadabilityCustom extends Readability {
sanitizeDoc () {
this._removeLinks(this._doc)
this._removeScripts(this._doc)
// prevent auto refresh
this._removeNodes(this._doc.querySelectorAll('meta[http-equiv=refresh]'))
this._removeNodes(this._doc.getEl... | JavaScript | 0.000001 | @@ -33,16 +33,25 @@
dability
+/index.js
'%0A%0Aclass
|
7eedfcc6cf362af8c7363809d50e64d0aa636464 | add comment to remind change for mongo replicaset connection | config/env/production.js | config/env/production.js | 'use strict';
var fs = require('fs');
module.exports = {
secure: {
ssl: true,
privateKey: './config/sslcerts/key.pem',
certificate: './config/sslcerts/cert.pem',
caBundle: './config/sslcerts/cabundle.crt'
},
port: process.env.PORT || 8443,
// Binding to 127.0.0.1 is safer in production.
host... | JavaScript | 0.000001 | @@ -723,16 +723,92 @@
setup.%0A
+ * for connect to a replicaset, rename server:%7B...%7D to replset:%7B...%7D%0A
se
|
22342e24bbdf38a287dc91bf5dcd1778bc364a01 | Fix thesis invite on staging. | src/containers/Invite/services/inviteAction.js | src/containers/Invite/services/inviteAction.js | import { callController } from '../../../util/apiConnection'
export const acceptThesis = token => callController(`/invite/thesis/${token}`, 'INVITE_ACCEPT_THESIS_')
export const acceptRole = token => callController(`/invite/role/${token}`, 'INVITE_ACCEPT_ROLE_')
| JavaScript | 0 | @@ -55,16 +55,86 @@
ction'%0A%0A
+const prefix = process.env.NODE_ENV === 'development' ? '' : '../..'%0A%0A
export c
@@ -170,32 +170,41 @@
callController(%60
+$%7Bprefix%7D
/invite/thesis/$
@@ -289,16 +289,25 @@
roller(%60
+$%7Bprefix%7D
/invite/
|
ebcc8c2209c8ad8b13a5ec1ae50f37247d6bf5ae | Refactor Snapshot | source/server/infrastructure/snapshot.js | source/server/infrastructure/snapshot.js | Space.messaging.Serializable.extend(Space.eventSourcing, 'Snapshot', {
fields() {
return {
id: Match.OneOf(String, Guid),
version: Match.Integer,
state: Match.OneOf(null, String),
meta: Match.Optional(Object)
};
}
});
| JavaScript | 0.000003 | @@ -3,30 +3,14 @@
ace.
-messaging.Serializable
+Struct
.ext
@@ -48,16 +48,64 @@
hot', %7B%0A
+%0A mixin: %5B%0A Space.messaging.Ejsonable%0A %5D,%0A%0A
fields
|
3af4c421c955d4350d0fda2369cb513a8c8d7765 | Fix unescaped html entity in component/bar-action | src/js/views/component/bar-action.js | src/js/views/component/bar-action.js | /** @jsx React.DOM */
var React = require('react'),
SetClass = require('classnames'),
Tappable = require('react-tappable'),
Navigation = require('touchstonejs').Navigation,
Link = require('touchstonejs').Link,
UI = require('touchstonejs').UI;
module.exports = React.createClass({
mixins: [Navigation],
flashAle... | JavaScript | 0.000008 | @@ -1494,16 +1494,20 @@
%22%3EIcon &
+amp;
Label%3C/
|
00c4332e1d92f816dd4b80df5249aa3263cf4583 | Move line. | assets/src/edit-story/elements/text/edit.js | assets/src/edit-story/elements/text/edit.js | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | JavaScript | 0.000003 | @@ -1866,16 +1866,77 @@
Content%7D
+%0A background-color: $%7B(%7B theme %7D) =%3E theme.colors.whiteout%7D;
%0A%0A &::a
@@ -2159,69 +2159,8 @@
%7D%0A
- background-color: $%7B(%7B theme %7D) =%3E theme.colors.whiteout%7D;%0A
%60;%0A%0A
|
deba652934cb6b5387b691fddfd5ee6593224d3b | fix test' | spec/javascripts/stop_censorship_spec.js | spec/javascripts/stop_censorship_spec.js | describe("#targetSelector", function() {
it("should default to something reasonable", function(){
expect(this.sopa.config.selector).toBe("header, h1, h2, h3,p, a, li, span, em")
})
it("should be configurable", function(){
this.sopa.config.selector = "p, h2"
expect(this.sopa.config.se... | JavaScript | 0.000001 | @@ -4814,17 +4814,17 @@
elp
-p
+P
rotect
-f
+F
reed
|
5163694fa0faaf74530c91bd84dae157f9e5c241 | swap out map | site/pdxroasters/static/js/map.js | site/pdxroasters/static/js/map.js | define(["Leaflet"], function (L) {
var zoom = 13;
var map = L.map('map', {
center: [45.52, -122.67],
zoom: zoom,
scrollWheelZoom: false,
attributionControl: false
});
var roasterMarker = L.icon({
iconUrl: '/static/img/roaster-marker-sans.png',
iconRetinaUrl: '/static/img/roast... | JavaScript | 0.000002 | @@ -641,63 +641,51 @@
tile
-.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256
+s.mapbox.com/v3/financialtimes.map-w7l4lfi8
/%7Bz%7D
|
104932b59032602863b1cc0ac71619e449aadf4d | Clean up unnessary selfs to save some bytes | src/extensions/paginator/backgrid-paginator.js | src/extensions/paginator/backgrid-paginator.js | /*
backgrid-paginator
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong
Licensed under the MIT @license.
*/
(function ($, _, Backbone, Backgrid) {
"use strict";
/**
Paginator is a Footer element that re-renders a large result set in a table
by splitting it across multipl... | JavaScript | 0 | @@ -1852,31 +1852,8 @@
) %7B%0A
- var self = this;%0A
@@ -1896,20 +1896,20 @@
ze.call(
-self
+this
, option
@@ -1910,36 +1910,36 @@
options);%0A
-self
+this
.listenTo(self.c
@@ -1932,20 +1932,20 @@
istenTo(
-self
+this
.collect
@@ -1958,20 +1958,20 @@
reset%22,
-self
+this
.render)
@@ -1992,2... |
cd0d67a27118209432803b7896509b80484b35d1 | Handle null appOptions.callouts | shared/js/initApp.js | shared/js/initApp.js | // Sets up default options and initializes blockly
startTiming('Puzzle', script_path, '');
var baseOptions = {
containerId: 'blocklyApp',
Dialog: Dialog,
cdoSounds: CDOSounds,
position: { blockYCoordinateInterval: 25 },
onInitialize: function() {
this.createCallouts();
},
createCallouts: function() {
... | JavaScript | 0.000003 | @@ -340,24 +340,41 @@
x = 500;%0A
+ this.callouts &&
this.callou
|
13f5e45e847231f1597a2e751b87c1f98d9f17e7 | Append a date on each requested requireJS module to prevent caching issues | Resources/Public/Javascripts/Main.js | Resources/Public/Javascripts/Main.js | /**
* RequireJS configuration
* @description Pass in options for RequireJS like paths, shims or the baseUrl
*/
require.config({
paths: { }
});
/**
* RequireJS calls
* @description Call the needed AMD modules.
*/
require(['Modules/Main'], function(MainFn) {
new MainFn;
});
| JavaScript | 0 | @@ -135,16 +135,131 @@
ths: %7B %7D
+,%0A%0A%09// Append a date on each requested script to prevent caching issues.%0A%09urlArgs: 'bust=' + (new Date()).getDate()
%0A%7D);%0A%0A%0A/
|
c12248d8dc4962ed56de67eed74d4a2fcc43338a | Fix runtime inclusion after API changes. | lib/compile/bundles/bootstrap.js | lib/compile/bundles/bootstrap.js | import most from "most";
import * as Pluggable from "../../pluggable";
import resolveAsset from "../modules/resolve";
import loadAst from "../modules/load-ast";
import { entries } from "../../util";
const bootstrapBundle = Pluggable.sync(function bootstrapBundle (srcPath, definition, isEntryPt) {
const asset = thi... | JavaScript | 0 | @@ -480,26 +480,17 @@
me:
-!!definition.e
+isE
ntry
+Pt
&&
|
72cdab755472b3df3a5b70d621685f5893308d28 | async request_uri_cache | lib/helpers/request_uri_cache.js | lib/helpers/request_uri_cache.js | const crypto = require('crypto');
const assert = require('assert');
const LRU = require('lru-cache');
const httpRequest = require('./http');
const epochTime = require('./epoch_time');
class RequestUriCache {
constructor(provider) {
this.cache = new LRU(100);
this.provider = provider;
}
resolve(request... | JavaScript | 0.999425 | @@ -298,16 +298,22 @@
%0A %7D%0A%0A
+async
resolve(
@@ -498,51 +498,85 @@
ed)
-return Promise.resolve(
+%7B%0A return
cached
-)
;%0A
-%0A return
+ %7D%0A%0A const %7B statusCode, headers, body %7D = await
htt
@@ -588,16 +588,23 @@
est.get(
+%0A
requestU
@@ -606,16 +606,22 @@
uestUri,... |
ae6ac88281276272ad968f40ff66d08a97900c03 | Fix the hound CI warning | lib/jobs/dell-racadm-tool-job.js | lib/jobs/dell-racadm-tool-job.js | // Copyright 2016, EMC, Inc.
'use strict';
var di = require('di');
module.exports = racadmToolJobFactory;
di.annotate(racadmToolJobFactory, new di.Provide('Job.Dell.RacadmTool'));
di.annotate(racadmToolJobFactory, new di.Inject(
'Job.Base',
'JobUtils.RacadmTool',
'Logger',
'Util',
'Assert',
'... | JavaScript | 0.999401 | @@ -80,17 +80,17 @@
ports =
-r
+R
acadmToo
@@ -106,33 +106,33 @@
ry;%0Adi.annotate(
-r
+R
acadmToolJobFact
@@ -188,17 +188,17 @@
nnotate(
-r
+R
acadmToo
@@ -430,33 +430,33 @@
'%0A));%0A%0Afunction
-r
+R
acadmToolJobFact
@@ -639,17 +639,17 @@
tialize(
-r
+R
acadmToo
@@ -810,17 +810,17 @@
unction
-r
+R
aca... |
d78287ae60ee72872b5f6d93801407100986a018 | fix typo in client initialisation retry | sockets/consumers.js | sockets/consumers.js | var uuid = require('uuid');
var kafka = require('kafka-node');
var config = require('../config.js');
var logger = require('../logger.js').logger;
var consumers = require('../lib/consumers.js');
var producers = require('../lib/producers.js');
var _ = require('lodash');
var waitForC... | JavaScript | 0.000005 | @@ -579,10 +579,10 @@
ret
-y
r
+y
Coun
|
71dc5cf1d0bb5dc8f92b4dccfb3b3836b8bfb0c5 | make prod use prod graph | graph.js | graph.js | 'use strict';
var plotly = require('plotly'),
async = require('async'),
database = require('./database');
var data = {},
layout = {
fileopt: 'overwrite',
filename: 'Latest Response Times testing',
layout: {
showlegend: true,
title: 'Latest Response Times'
... | JavaScript | 0.999787 | @@ -213,16 +213,8 @@
imes
- testing
',%0A
|
15c6068d0f0c89f5b560afb662ce22d6a586329e | Add path to order.yml file to gruntfile to be processed by grunt-jquery-content >= 0.5.4 | grunt.js | grunt.js | var cp = require("child_process");
var config = require("./config.json");
module.exports = function( grunt ) {
grunt.loadNpmTasks( "grunt-clean" );
grunt.loadNpmTasks( "grunt-html" );
grunt.loadNpmTasks( "grunt-wordpress" );
grunt.loadNpmTasks( "grunt-jquery-content" );
grunt.initConfig({
clean: {
wordpress: "dis... | JavaScript | 0 | @@ -733,16 +733,38 @@
rdpress%22
+,%0A%09%09order: %22order.yml%22
%0A
|
4f1e13a6868490c0717411bad44ac0a8872bc9cc | Fix issue when 0 being feed as amount | lib/transaction/unspentoutput.js | lib/transaction/unspentoutput.js | 'use strict';
var _ = require('lodash');
var $ = require('../util/preconditions');
var JSUtil = require('../util/js');
var Script = require('../script');
var Address = require('../address');
var Unit = require('../unit');
/**
* Represents an unspent output information: its script, associated amount and address,
* ... | JavaScript | 0.000021 | @@ -1769,24 +1769,39 @@
eckArgument(
+!_.isUndefined(
data.scriptP
@@ -1820,16 +1820,17 @@
a.script
+)
, 'Must
@@ -1953,16 +1953,31 @@
rgument(
+!_.isUndefined(
data.amo
@@ -1996,16 +1996,17 @@
satoshis
+)
, 'Must
@@ -2017,41 +2017,32 @@
ide
-the scriptPubKey
+an amount
for th
-at
+e
output
-!
');%0A
|
407b68dadadd3609d1eb6110d24ff465686bb3fa | Remove related link if yamb deleted | lib/yamb/proto/methods/remove.js | lib/yamb/proto/methods/remove.js | "use strict";
// yamb.prototype.remove()
module.exports = function(symbl, flags, opts) {
return function *remove() {
if (!this[symbl].id) {
// TODO: fix error message
throw new Error('This is a new object');
}
let result = yield opts.storage.removeById(this.id);
// TODO: remove all rel... | JavaScript | 0 | @@ -131,15 +131,8 @@
this
-%5Bsymbl%5D
.id)
@@ -221,16 +221,117 @@
%0A %7D%0A%0A
+ let oid = '' + this.id;%0A yield opts.storage.update(%7Brelated: oid%7D, %7B$pull: %7Brelated: oid%7D%7D);%0A%0A
let
@@ -384,47 +384,8 @@
);%0A%0A
- // TODO: remove all related posts%0A%0A
|
c3124bdd505b08f3108dfa973141742a83c108d3 | Update resetGlobals function to remove permissions. | .storybook/utils/resetGlobals.js | .storybook/utils/resetGlobals.js | /**
* Reset global variables for stories.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LI... | JavaScript | 0 | @@ -2181,301 +2181,8 @@
d',%0A
-%09%09permissions: %7B%0A%09%09%09googlesitekit_authenticate: true,%0A%09%09%09googlesitekit_setup: true,%0A%09%09%09googlesitekit_view_posts_insights: true,%0A%09%09%09googlesitekit_view_dashboard: true,%0A%09%09%09googlesitekit_view_module_details: true,%0A%09%09%09googlesitekit_manag... |
d837ac638b96e85577e098e5e9f5475a74b4df5a | Use short URL form | App/Client/Shared/Application.js | App/Client/Shared/Application.js | /// <reference path="Event.js" />
/// <reference path="Object.js" />
/// <reference path="http.js" />
/// <reference path="ViewModelStack.js" />
/// <reference path="UrlStack.js" />
/// <reference path="../Vendor/jquery.history.js" />
/// <reference path="../Vendor/jquery.js" />
/// <reference path="../Vendor/k... | JavaScript | 0.000002 | @@ -661,16 +661,36 @@
History.
+getShortUrl(History.
getPageU
@@ -690,24 +690,25 @@
etPageUrl())
+)
;%0D%0A k
|
0323861f7315467b7fd143e1d2e831b62034d479 | Fix bug that personFinder used unfiltered list | src/react-chayns-personfinder/utils/getList.js | src/react-chayns-personfinder/utils/getList.js | export default function getList(data, orm, inputValue) {
let retVal = [];
if (Array.isArray(orm.groups)) {
orm.groups.forEach(({ key, show }) => {
if (!(typeof show === 'function' && !show(inputValue))) {
const list = data[key];
retVal = retVal.concat(list);
... | JavaScript | 0.000001 | @@ -1,8 +1,54 @@
+import %7B isFunction %7D from '../../utils/is';%0A%0A
export d
@@ -224,43 +224,87 @@
(!(
-typeof show === 'function' && !show
+isFunction(show) && !show(inputValue) && (!isFunction(orm.filter) %7C%7C orm.filter
(inp
@@ -313,16 +313,17 @@
Value)))
+)
%7B%0A
@@ -496,24 +496,101 @@
((key) =... |
c04b097ba86cacbf44ed8fc74b3e79ab33ae493a | Update MessageRead.js | AttachmentDemoWeb/MessageRead.js | AttachmentDemoWeb/MessageRead.js | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE.txt in the project root for license information.
(function () {
"use strict";
var messageBanner;
var overlay;
var spinner;
var authenticator;
// The Office initialize function must be run each time a ... | JavaScript | 0 | @@ -5954,20 +5954,26 @@
c(%7B
-force
+allow
Consent
+Prompt
: tr
@@ -9935,8 +9935,9 @@
%7D%0A%7D)();
+%0A
|
4146e67239817e14c89f5a46824cc316f82a8c60 | add uturn | index.js | index.js | 'use strict'
var debug = require('debug')('monster-drift')
delete process.env.DEBUG // hackrf doesn't like this flag
var fs = require('fs')
var devices = require('hackrf')()
var signal = {
f: fs.readFileSync('./recordings/car-f.raw'),
b: fs.readFileSync('./recordings/car-b.raw'),
l: fs.readFileSync('./recordin... | JavaScript | 0.000007 | @@ -1120,17 +1120,17 @@
ain %7C%7C 4
-0
+7
) // TX
@@ -1205,24 +1205,295 @@
s._freq)%0A%7D%0A%0A
+MonsterDrift.prototype.uturn = function (cb) %7B%0A var self = this%0A this.forward()%0A setTimeout(function () %7B%0A self._drive(signal.r)%0A setTimeout(function () %7B%0A self.backward()%0A setTim... |
4990802a7a892defedbe551e35d35f24c66d5906 | fix req.query is null | index.js | index.js | /**
* A very very small http server.
*/
var http = require('http');
var parseUrl = require('url').parse;
var domain = require('domain');
function default404(req, res) {
res.writeHead(404);
res.end('Oops, 404 not found.');
}
var exports = module.exports = function(routes) {
routes = routes || {};
var... | JavaScript | 0.999737 | @@ -2735,16 +2735,22 @@
fo.query
+ %7C%7C %7B%7D
;%0A
|
f891afa4f3c6bc12b5c39b10241801e4935f7eca | Fix the if statement syntax | index.js | index.js | 'use strict';
var ect = require('ect');
exports.name = 'ect';
exports.outputFormat = 'html';
exports.compile = function(str, options) {
if (!options) {
options = {};
}
if (!options.root) {
options.root = {
'page': str
};
}
var engine = ect(options);
return function(locals) {
return e... | JavaScript | 0.999999 | @@ -137,27 +137,17 @@
%7B%0A
-if (!
options
-) %7B%0A
+=
opt
@@ -155,25 +155,17 @@
ons
-=
+%7C%7C
%7B%7D;%0A
-%7D%0A if (!
opti
@@ -172,23 +172,18 @@
ons.root
-) %7B%0A
+=
options
@@ -192,40 +192,42 @@
oot
-= %7B%0A '
+%7C%7C %7B%7D;%0A options.root.
page
-':
+ =
str
+;
%0A
- %... |
19fdb1188e0d50e7fdfdba28d1731ca94bca59fb | Allow add-on to be nested. | index.js | index.js | /* jshint node: true */
'use strict';
var path = require('path');
var Funnel = require('broccoli-funnel');
module.exports = {
name: 'ember-cli-bourbon',
blueprintsPath: function() {
return path.join(__dirname, 'blueprints');
},
treeForStyles: function() {
var bourbonPath = path.join(this.app.bowerDire... | JavaScript | 0 | @@ -233,16 +233,17 @@
);%0A %7D,%0A
+%0A
treeFo
@@ -301,19 +301,23 @@
in(this.
-app
+project
.bowerDi
|
bd1ee695561d1342f00e68c2bf18db160a6495cd | Add rpl-ized documentation | index.js | index.js | module.exports = function(fc){
var type = fc.features[0].geometry.type;
var err;
var geometries = fc.features.map(function(f){
return f.geometry;
})
switch(type){
case 'Point':
var multiPoint = {
type: 'Feature',
geometry: {
type: 'MultiPoint',
coordinates: [... | JavaScript | 0 | @@ -1,8 +1,515 @@
+/**%0A* Combines a FeatureCollection of point, linestring, or polygon Features into multipoint, multilinestring, or multipolygon Features.%0A*%0A* @module turf/combine%0A* @param %7BFeatureCollection%7D fc - a Feature or FeatureCollection of any type%0A* @return %7BFeatureCollection%7D combined - a F... |
3ac69669ce889b30700f0c69b8dc2e0abcba1851 | Switch doc to closure compiler templating | index.js | index.js | var invariant = require('turf-invariant');
//http://en.wikipedia.org/wiki/Haversine_formula
//http://www.movable-type.co.uk/scripts/latlong.html
/**
* Takes two {@link Point} features and calculates
* the distance between them in degress, radians,
* miles, or kilometers. This uses the
* [Haversine formula](http://... | JavaScript | 0 | @@ -150,46 +150,9 @@
%0A *
-Takes two %7B@link Point%7D features and c
+C
alcu
@@ -156,19 +156,16 @@
lculates
-%0A *
the dis
@@ -183,11 +183,17 @@
en t
-hem
+wo points
in
@@ -427,16 +427,23 @@
%7BFeature
+%3CPoint%3E
%7D from o
@@ -472,16 +472,23 @@
%7BFeature
+%3CPoint%3E
%7D to des
|
36e8e8da6523d340eaba7aa8c40b79ea744f78eb | Rename `dependsOnProjects` to `triggeredByProjects` | index.js | index.js | #!/usr/bin/env node
const commandLineArgs = require('command-line-args');
const commandLineCommands = require('command-line-commands');
const path = require('path');
const syncRequest = require('sync-request');
const { execSync } = require('child_process');
const commands = require('./commands');
const { log, exec, co... | JavaScript | 0 | @@ -4317,33 +4317,35 @@
if (project.
-dependsOn
+triggeredBy
Projects) %7B%0A
@@ -4358,33 +4358,35 @@
project.
-dependsOn
+triggeredBy
Projects.for
@@ -4659,25 +4659,27 @@
ctName%5D.
-dependsOn
+triggeredBy
Projects
@@ -4900,33 +4900,35 @@
ush(project.
-dependsOn
+triggeredBy
Projects.con
@@ -5926,33 +5926,... |
e48650265855dcef43e1f16fddc11c50e865ea43 | debug messages | index.js | index.js | "use strict";
var compress = require("./compress");
var fs = require("fs");
var interval = require("./interval");
var path = require("path");
var util = require("util");
var utils = require("./utils");
var Writable = require("stream").Writable;
function RotatingFileStream(filename, options) {
if(! (... | JavaScript | 0.000001 | @@ -1424,16 +1424,46 @@
eam.end(
+console.log.bind(console, %22o%22)
);%0A%09%09thi
|
696b5f45510f8aabc5c01b963bb255ed4ae55292 | Fix reading a partial template file | index.js | index.js | 'use strict';
var fs = require('fs');
var _ = require('lodash');
var inflection = require('inflection');
var jsesc = require('jsesc');
var keywords = {
string: {
minLength: 'number',
maxLength: 'number',
pattern: 'string',
format: 'string',
default: 'string'
},
number: {
multipleOf: 'num... | JavaScript | 0.000002 | @@ -1164,18 +1164,29 @@
ileSync(
+__dirname +
'
-.
/templat
|
fa0750a3b1ff8336fb0e431a45fff0204a3b6311 | make wildcard listener for all events get called first | index.js | index.js | // Generated by CoffeeScript 1.7.1
(function() {
'use strict';
var Emitter, emit, onevent;
Emitter = require('events').EventEmitter;
emit = Emitter.prototype.emit;
onevent = function(packet) {
var args;
args = packet.data || [];
if (packet.id != null) {
args.push(this.ack(packet.id));
... | JavaScript | 0 | @@ -329,24 +329,30 @@
mit.
-apply
+call
(this,
-args
+'*', packet
);%0A
@@ -366,38 +366,32 @@
rn emit.
-call
+apply
(this,
-'*', packet
+args
);%0A %7D;%0A
|
17ad10d3fbbdb4a98320672fadf92e5b68a9bb54 | Remove unused variable | index.js | index.js | 'use strict'
var bindexOf = require('buffer-indexof')
var equalSign = new Buffer('=')
exports.encode = function (data) {
var buf = new Buffer(exports.encodingLength(data))
var offset = 0
if (!data) data = {}
var keys = Object.keys(data)
if (keys.length === 0) {
buf[offset] = 0
offset++
}
key... | JavaScript | 0.000015 | @@ -1575,24 +1575,8 @@
te)%0A
- var used = %7B%7D%0A
re
|
cfe7df7aafc75c017b85ac2821d5f9b71661ba26 | add workaround for lessOptions in nested addons | index.js | index.js | /* jshint node: true */
'use strict';
var LESSCompiler = require('broccoli-less-single');
var path = require('path');
var merge = require('lodash.merge');
var mergeTrees = require('broccoli-merge-trees');
var checker = require('ember-cli-version-checker');
function LESSPlugin(optionsFn) {
this... | JavaScript | 0 | @@ -1179,16 +1179,349 @@
is.app;%0A
+%0A // fix issue with nested addons, in which case our app.options hash is actually on app.app.options.%0A // n.b. this can be removed once ember-cli better supports nested addons.%0A // (see https://github.com/gdub22/ember-cli-less/issues/36)%0A if (!app.options && a... |
7e0b0f8c275eaa97fc5e13020ddd324dac247005 | remove unused module | index.js | index.js | var docker = require('docker-remote-api')
var collect = require('stream-collector')
var through = require('through2')
var JSONStream = require('JSONStream')
var pump = require('pump')
var map = function(ports) {
if (!ports || ports.length === 0) return null
var res = {}
ports.forEach(function(p) {
res[p.Publ... | JavaScript | 0.000002 | @@ -39,50 +39,8 @@
i')%0A
-var collect = require('stream-collector')%0A
var
|
885cdf41b7674d76eb9eaf971c0700eb9f585bed | fix issue with runing on android. Add native props (#718) | index.js | index.js | import React, { Component, PropTypes } from 'react';
import {
DeviceEventEmitter, // android
NativeAppEventEmitter, // ios
NativeModules,
Platform,
StyleSheet,
requireNativeComponent,
View,
ViewPropTypes
} from 'react-native';
const CameraManager = NativeModules.CameraManager || NativeModules.CameraMod... | JavaScript | 0 | @@ -7409,16 +7409,240 @@
, Camera
+, %7BnativeOnly: %7B%0A testID: true,%0A renderToHardwareTextureAndroid: true,%0A accessibilityLabel: true,%0A importantForAccessibility: true,%0A accessibilityLiveRegion: true,%0A accessibilityComponentType: true,%0A onLayout: true%0A%7D%7D
);%0A%0Acons
|
27bafd6e05e694bf7a4d969ab196a324721936e5 | Update index.js | index.js | index.js |
/**
* Turn a Subnet Mask into a CIDR prefix
*/
module.exports.cidrize = function(subnet) {
cidr_bits = 0;
subnet_mask.split('.').forEach(function(octet) {
cidr_bits+=((octet >>> 0).toString(2).match(/1/g) || []).length;
});
return cidr_bits;
}
module.exports.prefixize = module.exports.cidrize;
modul... | JavaScript | 0.000001 | @@ -83,16 +83,21 @@
n(subnet
+_mask
) %7B%0A ci
|
78615990c7dd9bdcd9cec44484af328c1e466643 | Fix outdated require() | index.js | index.js | // Copyright 2016 Hewlett-Packard Development Company, L.P.
//
// 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 a... | JavaScript | 0 | @@ -677,20 +677,18 @@
re('
-node-
subunit
+-js
');%0A
|
9989b02f06d7f6614e17d90e05a67c56aad3b50e | Clear session on logout. | index.js | index.js | 'use strict';
var Foxx = require('org/arangodb/foxx');
var controller = new Foxx.Controller(applicationContext);
var foxxApp = require('org/arangodb/foxx/manager').mountedApp;
var Credentials = require('./models/credentials');
function getAuthenticator() {
return foxxApp('/auth').auth;
}
function getUserStorage() {... | JavaScript | 0 | @@ -623,34 +623,86 @@
%7D%0A
+req.
session
-.addCookie(
+ = session;%0A%7D);%0A%0Acontroller.after('/*', function(req,
res)
-;
+ %7B
%0A
+if (
req.
@@ -704,34 +704,52 @@
(req.session
- =
+) req.
session
+.addCookie(res)
;%0A%7D);%0A%0Acontr
@@ -1958,16 +1958,95 @@
null);%0A
+ sessions.delete(req.sessio... |
91a668a7a93750d73d87344b4132cc21b1b519d5 | Fix `ReferenceError: Element is not defined` in Node.js (#33) | index.js | index.js | var candidateSelectors = [
'input',
'select',
'textarea',
'a[href]',
'button',
'[tabindex]',
'audio[controls]',
'video[controls]',
'[contenteditable]:not([contenteditable="false"])',
];
var candidateSelector = candidateSelectors.join(',');
var matches = Element.prototype.matches || Element.prototype.... | JavaScript | 0.000032 | @@ -265,16 +265,70 @@
atches =
+ typeof Element === 'undefined'%0A ? function () %7B%7D%0A :
Element
|
48d288cd6b8bafc117c7388021832889fed05374 | Fix scope of "pending" var. | index.js | index.js | var hyperlog = require('hyperlog')
var level = require('level')
var tar = require('tar')
var fstream = require('fstream')
var fs = require('fs')
var path = require('path')
var tmpdir = require('os').tmpdir()
var onend = require('end-of-stream')
var once = require('once')
var gzip = require('zlib').createGzip
var gunzip... | JavaScript | 0 | @@ -796,16 +796,35 @@
pfile)%0A%0A
+ var pending = 2%0A%0A
fs.sta
@@ -1319,28 +1319,8 @@
e()%0A
- var pending = 2%0A
|
e93f57bb444065bf5cc9d2221e4632da161891b9 | clean regex | index.js | index.js | /**
* # Convert Sort Expression to SQL
*
* Converts 'sort format' to 'SQL format'. E.g.:
*
* - '-id' -> 'id DESC NULLS LAST'
* - 'id' -> 'id ASC NULLS LAST'
* - 'id-' -> 'id ASC NULLS FIRST'
* - '-aired,id' -> 'aired DESC NULLS LAST, id ASC NULLS LAST'
*
* (See tests file for more examples.)
*/
var sortStr... | JavaScript | 0.000095 | @@ -329,18 +329,18 @@
/%5E(%5B+-%5D
-%7C
)
+?
(%5B%5Cw.%5D+)
@@ -345,10 +345,10 @@
+)(-
-%7C
)
+?
$/;%0A
@@ -594,32 +594,16 @@
tStr) %7B%0A
- 'use strict';%0A
var pa
@@ -1208,24 +1208,8 @@
) %7B%0A
- 'use strict';%0A
if
|
d94d8cc51dc2699e949f302e1c412c132f49cc17 | Update exports | index.js | index.js | const Types = require('./core/types');
const Fields = require('./core/fields');
const trait = require('./core/trait');
const recordType = require('./core/record-type');
const enumerationType = require('./core/enumeration-type');
const recordField = require('./core/record-field');
const listField = require('./core/list-... | JavaScript | 0.000001 | @@ -370,24 +370,70 @@
er-field');%0A
+const intField = require('./core/int-field');%0A
const boolea
@@ -533,35 +533,254 @@
st t
-extField = require('./core/
+imeField = require('./core/time-field');%0Aconst dateTimeField = require('./core/date-time-field');%0Aconst textField = require('./core/text-field');%0Aconst l... |
3e015e648eb932c283eba949155879a8dd80c666 | Enable selector-no-qualifying-type rule | index.js | index.js | module.exports = {
extends: 'stylelint-config-standard',
rules: {
// Override stylelint-config-standard:
indentation: 4,
'number-leading-zero': 'never',
// Extend with more strict rules:
'at-rule-no-vendor-prefix': true,
'declaration-no-important': true,
'declaration-property-value-blac... | JavaScript | 0.000002 | @@ -1371,32 +1371,73 @@
iversal': true,%0A
+ 'selector-no-qualifying-type': true,%0A
'selector-no
|
e8ec3c688e66fc4aecd9dc7ad76f1cac330cbfeb | clean up the logic on calling the functionc | index.js | index.js | 'use strict';
var through = require('through2');
var PluginError = require('gulp-util').PluginError;
var objectAssign = require('object-assign');
var esperanto = require('esperanto');
var path = require('path');
var applySourceMap = require('vinyl-sourcemaps-apply');
var defaultOptions = {
type: 'amd'
};
function ... | JavaScript | 0.000458 | @@ -271,39 +271,54 @@
var
-defaultOptions = %7B%0A type: 'amd
+formatToFunc = %7B%0A amd: 'toAmd',%0A cjs: 'toCjs
'%0A%7D;
@@ -479,58 +479,8 @@
h);%0A
- // platform agnostic for file path definition%0A
@@ -663,23 +663,125 @@
%0A%0A var
-fileOpt
+source = file.contents.toString();%0A // https://githu... |
3e0460777b9c3e729d5b9f021d47fb15b32c7f6e | Correct error message in stem accessor | index.js | index.js | var path = require('path');
var clone = require('clone');
var cloneStats = require('clone-stats');
var cloneBuffer = require('./lib/cloneBuffer');
var isBuffer = require('./lib/isBuffer');
var isStream = require('./lib/isStream');
var isNull = require('./lib/isNull');
var inspectStream = require('./lib/inspectStream');... | JavaScript | 0.000002 | @@ -5320,26 +5320,19 @@
ror('No
-PassThroug
+pat
h specif
|
e3864ed1a1977174f20f18400430e0ef2c4e3d5c | Fix salary in perm | index.js | index.js | /**
* A Spot for Slack!
*/
/**
* Define a function for initiating a conversation on installation
* With custom integrations, we don't have a way to find out who installed us, so we can't message them :(
*/
function onInstallation(bot, installer) {
if (installer) {
bot.startPrivateConversation({user:... | JavaScript | 0.999738 | @@ -4843,21 +4843,22 @@
pkg = (
-total
+salary
* 1.095
|
d92cd4aacbe8352d6f2cbf74242ea5279e2473e0 | Reorder modules | index.js | index.js | var util = require('util');
var parseJSON = require('./lib/parseJSON');
var zmq = require('zmq');
var socket = zmq.socket('pull');
var tasks = {};
module.exports = {
initialise: function (port) {
socket.connect(port);
socket.on('message', function (buffer) {
parseJSON(buffer.toString()).then(funct... | JavaScript | 0 | @@ -17,24 +17,50 @@
re('util');%0A
+var zmq = require('zmq');%0A
var parseJSO
@@ -96,34 +96,8 @@
);%0A%0A
-var zmq = require('zmq');%0A
var
|
d09628c33889415bc9ffb4585ce7ea941d1e5abd | Improve default ignores coverage. | index.js | index.js | var Path = require('path');
var fs = require('fs');
var globby = require('globby');
var isGlob = require('is-glob');
var traverse = require('traverse');
/**
* @callback ParserCallback
* @param {string} file - Absolute path to a given file
* @return {Object} The front-matter data of `file`
*/
/**
* @param {string... | JavaScript | 0 | @@ -768,12 +768,44 @@
%7Bhtm
-l,md
+,html,markdown,md,nunjucks,swig,twig
%7D';%0A
|
449ef4062e6662cb3bee2f4f71d0d6944636a755 | use const | index.js | index.js | 'use strict'
var flatten = require('@flatten/array') // allow nested arrays
// shared - shared object given to every function as 2nd arg.
// tasks - array of functions to call.
// done - error accepting callback.
module.exports = function runTasks(shared, tasks, done) {
var control = { prepend, append, clear, ta... | JavaScript | 0.000007 | @@ -7,19 +7,21 @@
trict'%0A%0A
-var
+const
flatten
@@ -277,11 +277,13 @@
%7B%0A
-var
+const
con
|
92e3b024871b149130d44cf008f4751581515f9d | Add further comments to index.js | index.js | index.js | const mock = require('mock-require');
const path = require('path');
const validateModulePath = (modulePath) => {
if (!modulePath) throw new Error('absolute is required for constructor');
if (!path.isAbsolute(modulePath)) throw new Error('module path must be absolute');
};
/**
* Represents a mock module
*
* @p... | JavaScript | 0 | @@ -1507,24 +1507,81 @@
ideMocks);%0A%0A
+ // search array of mocks to find mock with same path%0A
const ge
@@ -1848,32 +1848,106 @@
null);%0A %7D;%0A%0A
+ // generates mock functionality given a default mock and overide mock%0A
const getOve
@@ -2587,57 +2587,47 @@
//
-make sure to apply overri... |
9021dcba65152dd7e5e1bed8708c58a04806611f | handle short/missing player name/key | index.js | index.js | const http = require('http'),
Promise = require('bluebird'),
url = require('url'),
baseUrl = 'http://m.mlb.com/lookup/json';
var cornelius = function () {};
cornelius.prototype.findPlayer = function (playerName, pruned) {
return new Promise(function (resolve, reject) {
var uri = url.parse(baseUrl + '/nam... | JavaScript | 0.000024 | @@ -1507,16 +1507,350 @@
ject) %7B%0A
+%0A%09%09%09var isFullName = playerName.split(' ').length %3E 1;%0A%09%09%09let error;%0A%09%09%09%0A%09%09%09if (!isFullName %7C%7C !playerName) %7B%0A%09%09%09%09error = new Error(%60Player's full name required for getPlayer.%60);%0A%09%09%09%7D else if (!givenKey) %7B%0A%09%09... |
f02b8b2953cd22ed8b8e62e85e54f0b85f8575f6 | Update index.js | index.js | index.js | var Service, Characteristic;
var Gpio = require('pigpio').Gpio,
redLED = new Gpio(17, {mode: Gpio.OUTPUT}),
dutyCycle = 0,
greenLED = new Gpio(22, {mode: Gpio.OUTPUT}),
dutyCycle = 0,
blueLED = new Gpio(24, {mode: Gpio.OUTPUT}),
dutyCycle = 0;
var h = 0;
var s = 0;
var l = 0.5;
module.exports =... | JavaScript | 0 | @@ -906,105 +906,8 @@
s));
-%0A%0A lightbulbService%0A %09.getCharacteristic(Characteristic.Off)%0A%09.on('set', this.setOff.bind(this));
%0A%09%0A
@@ -1867,16 +1867,39 @@
ck) %7B%0A%09%0A
+%09if (on == true) %7B%0A%09%09%0A%09
%09var rgb
@@ -1920,16 +1920,17 @@
s, l)%0A%0A
+%09
%09redLED.
@@ -1942,32 +1942,33 ... |
9388a88cb33c58a9b90dd6d1947defc79b1913b7 | Fix init | index.js | index.js | (function() {
"use strict";
var Categories = module.parent.require('./categories');
var db = module.parent.require('./database');
exports.filterTopicsPrepare = function(data, callback) {
var sets = typeof data.set === "string"? [data.set]: data.set;
Categories.getChildren([data.cid], data.uid, function(err, childr... | JavaScript | 0.998603 | @@ -556,16 +556,24 @@
on init(
+params,
callback
|
c80c724687f0b595cf21f775f8e3e5b001319f4f | Update welcome message | index.js | index.js | const { send, json, createError } = require('micro');
const microCors = require('micro-cors');
const pkg = require('./package.json');
const cors = microCors({ allowMethods: ['GET', 'POST', 'OPTIONS'] });
/**
* Catch errors from the wrapped function.
* If any errors are caught, a JSON response is generated for that ... | JavaScript | 0 | @@ -1175,23 +1175,21 @@
to
-post a new wish
+send feedback
.',%0A
|
705947650b596d2bdb4f54275f6e85310abf5621 | Fix error handler | index.js | index.js | #!/usr/bin/env node
/****************************************************************************
*
* webhook-deploy - A minimalist CI for github webhook deployments
* (c)Copyright 2014, Max Irwin
* MIT License
*
****************************************************************************/
// Module dependencies
var ... | JavaScript | 0.000018 | @@ -1740,16 +1740,18 @@
sole.err
+or
('Error:
|
1e88c2685c56d20cd7c81b894e8d7ad756b6a0ea | Remove no-underscore-dangle from config so I can use R.__ | index.js | index.js | module.exports = {
"parser": "babel-eslint",
"extends": "eslint:recommended",
"rules": {
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-empty-label": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-imp... | JavaScript | 0 | @@ -938,41 +938,8 @@
2,%0A
- %22no-underscore-dangle%22: 2,%0A
|
21db8262378a7d0e8221496c0c30f70979c80b0a | Fix buffer type detection | index.js | index.js | var restify = require('restify')
var dataUriToBuffer = require('data-uri-to-buffer')
var faceblur = require('faceblur')
var server = restify.createServer()
var port = process.env.PORT || 8000
server.use(restify.acceptParser(server.acceptable))
server.use(restify.bodyParser({
maxBodySize: 1000000,
mapParams: false
... | JavaScript | 0.000005 | @@ -498,50 +498,35 @@
if (
-%5B'jpeg', 'png', 'gif'%5D.indexOf(buffer.type
+buffer.type.indexOf('image'
) ==
|
0d853b5f05b8d5923b805b3b5e6f3b2070ff1b20 | Remove one more allocation from Curve plugin. | src/plugins/Curve.js | src/plugins/Curve.js | import Phaser from 'phaser'
export default class extends Phaser.Plugin {
init (points) {
this.hasPostRender = true
// Precompute curve shift amounts for each pixel column.
this.curveOff = new Uint32Array(this.game.width * this.game.height * 4)
for (let col = 0; col < this.game.width; col++) {
... | JavaScript | 0 | @@ -790,25 +790,17 @@
new
-Uint8ClampedArray
+ImageData
(thi
@@ -803,34 +803,33 @@
(this.game.width
- *
+,
this.game.heigh
@@ -825,28 +825,24 @@
.game.height
- * 4
)%0A %7D%0A%0A pos
@@ -1085,16 +1085,21 @@
his.post
+.data
%5Bi + thi
@@ -1172,43 +1172,17 @@
ata(
-new ImageData(this.post, pre.width)
+this.p... |
e62344afdfdcabdb83f51323aecde2e37f7264ad | fix in index.js for _encodeHTML creattion | index.js | index.js | /* doT + auto-compilation of doT templates
*
* 2012, Laura Doktorova, https://github.com/olado/doT
* Licensed under the MIT license
*
* Compiles .def, .dot, .jst files found under the specified path.
* It ignores sub-directories.
* Template files can have multiple extensions at the same time.
* Files with .def ... | JavaScript | 0.000007 | @@ -3222,21 +3222,21 @@
urce.toS
-ource
+tring
() + %22(%22
|
ae4a33df2bf5c27f845d45fb10ecd6015cdfbc04 | remove testing code | src/plugins/oauth.js | src/plugins/oauth.js | /**
* @module Hook.Plugin
* @class OAuth
*/
Hook.Plugin.OAuth = function(client) {
this.client = client;
};
Hook.Plugin.OAuth.prototype.popup = function(provider, windowFeatures) {
var popup,
closePopupTimeout,
self = this,
success = false,
allowedHost = this.client.url.match(/https?:\/\... | JavaScript | 0.000077 | @@ -197,33 +197,8 @@
up,%0A
- closePopupTimeout,%0A
@@ -607,45 +607,8 @@
ue;%0A
- clearTimeout(closePopupTimeout);%0A
@@ -1201,32 +1201,8 @@
%0A %7D
-%0A window.popup = popup;
%0A%0A
|
2a12c5830df5aa5e430bc46dcdaea4fc6859abcf | figured out the reverse function | ROT13.js | ROT13.js | /**
* The function `reverse` computes the reversal
* of a given `String` (don't copy-pasta!)
*
* @param {String} S to reverse
* @return {String}
*/
function reverse(S){
// YOUR CODE HERE: NO INTERNET COPY-PASTA!
}
console.assert(reverse("") === ""); // Really?
console.assert(reverse("A") === "A"); // Jerk.
... | JavaScript | 0.999999 | @@ -174,56 +174,520 @@
%7B%0A
- // YOUR CODE HERE: NO INTERNET COPY-PASTA!%0A%7D%0A%0A
+S = String(S);%0A var newstring=%5B%5D;%0A var newstringcounter = 0;%0A var resultstring = %22%22;%0A for (count = S.length-1; count %3E= 0; count --) %7B%0A newstring%5Bnewstringcounter%5D=S%5Bcount%5D;%0A newstri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.