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 |
|---|---|---|---|---|---|---|---|
b4e9e4050c2d99663db993dd85c8505f7084c759 | revert changes not to be added to beta at this moment | intel/WhoisIPIntel.js | intel/WhoisIPIntel.js | /* Copyright 2016 Firewalla LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | JavaScript | 0 | @@ -1452,141 +1452,8 @@
) %7B%0A
- if(Array.isArray(whoisInfo.country)) %7B%0A alarm%5B%22e.dest.ip.country%22%5D = whoisInfo.country%5B0%5D;%0A %7D else %7B%0A
@@ -1510,30 +1510,8 @@
ry;%0A
- %7D %0A
|
50f2a8e5779b25533531f915ced9eb8c649cbd47 | rename and formatting | source/javascripts/backbone/router.js | source/javascripts/backbone/router.js | App.module("Root", function(Root, App, Backbone, Marionette, $, _){
/*
* FIXME I'm most certainly keeping the URL in sync in the "wrong way."
* Maybe a better approach would be to make the router:navigate event
* use the routes and not the controller method names, then sync the URL there.
*/
Root.Cont... | JavaScript | 0.000002 | @@ -305,24 +305,33 @@
*/%0A%0A Root.
+Container
Controller =
@@ -337,21 +337,21 @@
= %7B%0A
+%0A
-%22
findNote
%22: f
@@ -342,25 +342,24 @@
findNote
-%22
: function()
@@ -531,29 +531,29 @@
%0A %7D,%0A
+%0A
-%22
editNote
%22: funct
@@ -544,17 +544,16 @@
editNote
-%22
: functi
@@ -802,21 ... |
92a2e9ec9763f898dfbaf3239ebfd845ee22d163 | Change token name | yelp_bot.js | yelp_bot.js | require('dotenv').config();
var Botkit = require('./lib/Botkit.js');
var os = require('os');
var Yelp = require('yelp');
console.log("ICI");
console.log(process.env.YELP_CONSUMER_KEY);
var yelp = new Yelp({
consumer_key: process.env.YELP_CONSUMER_KEY,
consumer_secret: process.env.YELP_CONSUMER_SECRET,
token:... | JavaScript | 0.000006 | @@ -499,21 +499,27 @@
ess.env.
-token
+SLACK_TOKEN
%0A%7D).star
@@ -527,17 +527,16 @@
RTM();%0A%0A
-%0A
function
@@ -797,48 +797,8 @@
) %7B
-//The API call was returned successfully
%0A
@@ -912,51 +912,8 @@
s%22);
- //Log the API call response to the console
%0A
@@ -1330,48 +1330,8 @@
) %7B
-//The API ... |
3b57bfa403015cc383e6234e6ecbc3206917b7e6 | refactor coloring method to allow user override | excon.js | excon.js | (function excon (console) {
"use strict";
if (!console) {
return;
}
console.findType = function (text) {
var type = typeof text;
switch (type) {
case 'number':
if (isNaN(text)) {
text = text.toString();
}
... | JavaScript | 0 | @@ -1011,30 +1011,16 @@
eColor =
- opts.fnName ?
opts.co
@@ -1023,17 +1023,18 @@
s.color
-:
+%7C%7C
'gray';
|
a5341d43231461f55862fbe62b7c792fdb242f58 | update code in averageAgePerCentury.js so eslint is happy | exercises/5/averageAgePerCentury.js | exercises/5/averageAgePerCentury.js | // from http://eloquentjavascript.net/code/#5.3
function average(array) {
function plus(a, b) { return a + b; }
return array.reduce(plus) / array.length;
}
// Your code here.
// → 16: 43.5
// 17: 51.2
// 18: 52.8
// 19: 54.8
// 20: 84.7
// 21: 94
| JavaScript | 0 | @@ -45,33 +45,273 @@
5.3%0A
-function average(array) %7B
+'use strict';%0A%0A/**%0A * Average.%0A * @param %7Barray%7D array The array.%0A * @return %7Bnumber%7D The average.%0A */%0Afunction average(array) %7B%0A /**%0A * Plus.%0A * @param %7Bnumber%7D a The first number.%0A * @param %7Bnumber%7D b The second ... |
5c24f71743989d8a171bd1a6eeeaa9b9eafb15b7 | Add the datatable init event | public/assets/js/app.js | public/assets/js/app.js | /*!
* Author: Abdullah A Almsaeed
* Date: 4 Jan 2014
* Description:
* This file should be included in all pages
!**/
$(function() {
"use strict";
//Enable sidebar toggle
$("[data-toggle='offcanvas']").click(function(e) {
e.preventDefault();
//If window is small enough, enable si... | JavaScript | 0.000295 | @@ -6915,28 +6915,140 @@
n = url;%0A %7D%0A %7D);%0A%7D);%0A
+%0A// Init datatables on, tables%0A(function($) %7B%0A $(%22table#datatable%22).dataTable(%7B paging:false %7D);%0A%7D(jQuery));%0A
|
c40980caad92d74beea3bf66e6614107eb6a12d2 | Fix bad reference to host node | plugin-lazy-images.js | plugin-lazy-images.js | /*jshint browser:true, yui:true */
YUI.add("plugin-lazy-images", function(Y) {
"use strict";
var plugins = Y.namespace("Plugins"),
LazyImages;
LazyImages = Y.Base.create("lazyImages", Y.Plugin.Base, [], {
// Y.Base lifecycle fns
initializer : function() {
var ho... | JavaScript | 0 | @@ -611,16 +611,48 @@
%5D;
+%0A%0A this._host = host;
%0A
@@ -864,16 +864,29 @@
andles =
+ this._host =
null;%0A
@@ -965,32 +965,38 @@
) %7B%0A
+this._
host.scrollInfo.
|
6644c6d94923a78d69591a6e66c7e9e28e330fbd | update declare | interface/electron.js | interface/electron.js | declare class EventEmitter {
static listenerCount(emitter: EventEmitter, event: string): number;
addListener(event: string, listener: Function): EventEmitter;
on(event: string, listener: Function): EventEmitter;
once(event: string, listener: Function): EventEmitter;
removeListener(event: string, listener: Functio... | JavaScript | 0.000001 | @@ -2757,11 +2757,89 @@
void;%0A%09%7D
+%0A%0A%09declare class Menu %7B%0A%09%09static setApplicationMenu(appMenu: Object): void;%0A%09%7D
%0A%7D%0A
|
f1e560a5f15f98cb6fe7bbf94f984ca4065ba67c | add decks 1 and 7 to labwareTestProtocol before labware test (#4647) | labware-library/src/labware-creator/labwareTestProtocol.js | labware-library/src/labware-creator/labwareTestProtocol.js | // @flow
import type { LabwareDefinition2 } from '@opentrons/shared-data'
import type { Options } from './fields'
const tiprackForPipette = {
P10_Single: 'opentrons_96_tiprack_10ul',
P300_Single: 'opentrons_96_tiprack_300ul',
P1000_Single: 'opentrons_96_tiprack_1000ul',
}
export const pipetteNameOptions: Option... | JavaScript | 0 | @@ -940,89 +940,232 @@
S =
-types.Location(%0A point=types.Point(x=380.87, y=9.0, z=0.0),%0A labware=None%0A)
+%7B%0A '1': %7B%0A 'x': 12.13,%0A 'y': 9.0,%0A 'z': 0.0%0A %7D,%0A '3': %7B%0A 'x': 380.87,%0A 'y': 9.0,%0A 'z': 0.0%0A %7D,%0A '7': %7B%0A ... |
57b91ab669d4dff4eb597473ba6cfb4f2c3cbc7d | Add vicnicius to the challengers list | challengers.js | challengers.js | // Welcome!
// Add your github user if you accepted the challenge!
var players = [
'raphamorim',
'israelst',
'afonsopacifer',
'rafaelfragosom',
'brunokinoshita',
'paulinhoerry',
'enieber',
'alanrsoares',
'viniciusdacal',
'thiagosantana',
'brunodsgn',
'danilorb',
'dou... | JavaScript | 0 | @@ -1204,16 +1204,33 @@
'edueo'
+,%0A 'vicnicius'
%0A%5D;%0A%0Amod
|
132ed2bf296da3eca1fd4f1e7ab4b7d9c5d6dbff | update routes.js | angular/routes.js | angular/routes.js | /**
* Created by anonymous on 08/12/15 11:20.
*/
(function() {
'use strict';
angular
.module('jwtAuth')
.config(config);
config.$inject = ['$stateProvider', '$urlRouterProvider', '$authProvider', '$httpProvider', '$provide'];
/* @ngInject */
function config($stateProvider, $url... | JavaScript | 0.000002 | @@ -382,11 +382,8 @@
- //
$ur
|
74b650e1828799dfba3b191db534c15b8a0e989a | Update routes.js @ finishing base layout | angular/routes.js | angular/routes.js | /**
* Created by anonymoussc on 18/11/15 17:31.
*/
(function() {
'use strict';
angular.module('app.routes').config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('dashboard', {
abstract: true,
... | JavaScript | 0 | @@ -4918,16 +4918,25 @@
iews/app
+lications
/' + app
@@ -5062,32 +5062,41 @@
urn './views/app
+lications
/app/home/home.h
@@ -5378,16 +5378,25 @@
iews/app
+lications
/app/hom
|
3a6fefc797261d64056fc5be7687cbc2c4af8fbe | fix bug: rebuild io for sending message to socket.io connections by criteria | core/io/io-builder.js | core/io/io-builder.js | /**
* @author Phuluong
* December 27, 2015
*/
/** Exports **/
module.exports = IOBuilder;
/** Imports **/
var util = require("../app/util");
/** Modules **/
function IOBuilder() {
this.type = function (type) {
this.p.type = type;
return this;
};
this.status = function (status) {
... | JavaScript | 0 | @@ -1739,24 +1739,49 @@
elf = this;%0A
+ this.p.tos = %5B%5D;%0A
// b
|
6d92c8d93e7885d60100a09c8e7f4c4ba5a9a2be | set start like in req does | incoming_response.js | incoming_response.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | 0.000068 | @@ -2517,16 +2517,54 @@
;%0A %7D%0A
+%0A self.start = self.timers.now();%0A%0A
self
|
1454c099f3fe08e6980664b8db38db907a79f93c | use shorthand description | node-module/index.js | node-module/index.js | 'use strict'
const Generator = require('yeoman-generator')
const merge = require('deep-extend')
const sort = require('sort-package-json')
module.exports = class NodeModule extends Generator {
configuring () {
this._package()
}
installing () {
this.npmInstall(['standard', 'tape'], {
'save-dev': tr... | JavaScript | 0.003464 | @@ -523,34 +523,8 @@
-description: this.options.
desc
|
096442d629c440e2eee43ca6730a0f8406a2ea5c | fix collection manager update | imports/api/collection/CollectionManager.js | imports/api/collection/CollectionManager.js | module.exports = class CollectionManager {
constructor(collection, db) {
this.collection = collection;
this.db = db;
}
validate(parentId, entity) {
this.collection.schema.clean(entity, { mutate: true });
this.collection.schema.validate(entity);
this.checkUniqueFields... | JavaScript | 0 | @@ -789,18 +789,22 @@
-le
+cons
t entit
-y
+ies
= t
@@ -822,18 +822,216 @@
One(
-entityId);
+parentId)%5Bthis.collection.name%5D;%0A let entity = null;%0A%0A for (let e of entities) %7B%0A if (e._id == entityId) %7B%0A entity = e;%0A %7D%0... |
17a44ef83aa943c7a014ff6cbbcfa1194a41512a | add off function to socket bootstrap | bin/bundles/socket/resources/js/bootstrap.js | bin/bundles/socket/resources/js/bootstrap.js | /**
* Created by Awesome on 3/13/2016.
*/
// use strict
'use strict';
// require dependencies
var io = require ('socket.io-client');
/**
* build socket class
*/
class socket {
/**
* construct socket class
*/
constructor () {
// bind methods
this.on = this.... | JavaScript | 0.000001 | @@ -322,32 +322,77 @@
n.bind (this);%0D%0A
+ this.off = this.off.bind (this);%0D%0A
this.bui
@@ -1780,32 +1780,185 @@
fn);%0D%0A %7D%0D%0A%0D%0A
+ /**%0D%0A * off function%0D%0A *%0D%0A * @param type%0D%0A * @param fn%0D%0A */%0D%0A off (type, fn) %7B%0D%0A this... |
894452c92a3cc230d9770135d4a95a3435830de0 | uppercase all position holders | fetch.js | fetch.js | const https = require('https');
const { joinP, pOf } = require('./ramdap');
const fs = require('fs');
const XLSX = require('xlsx');
const scrapeIt = require('scrape-it');
const { zipWith, call, zipObj, __, map, allPass, lt, lte, gte,
filter, gt, length, groupWith, equals, tail, keys, values,
curry, head... | JavaScript | 0.999398 | @@ -451,16 +451,25 @@
replace
+, toUpper
%7D = req
@@ -2676,32 +2676,198 @@
%5B%0A
-prop('v'
+// recently FI seems to store all names in uppercase%0A // so keep it like this for everyone to make them comparable%0A // with old values%0A pipe(prop('v'), toUpper
),%0A pro
|
574b0799696ba4b49f4e6ccb19e2d1a9e7d0722e | Remove debug logging | data/checkContrast.js | data/checkContrast.js | var darkColor;
var lightColor;
self.port.on("colors", function(dark, light) {
darkColor = dark;
lightColor = light;
checkElementContrast(document.getElementsByTagName("html")[0]);
});
function checkElementContrast(element)
{
// Don't look at non-renderable elements
switch (element.tagName) {
... | JavaScript | 0.000002 | @@ -375,24 +375,76 @@
urn;%0A %7D%0A%0A
+ //console.log(%22Checking: %22 + element.tagName);%0A%0A
var isFg
@@ -841,75 +841,8 @@
) %7B%0A
- console.log(%22Recursing into: %22 + element.children%5Bi%5D);%0A
@@ -937,65 +937,8 @@
) %7B%0A
- console.log(%22Setting text color of %22 + e... |
a4d4c6a68aff854b749fb04a28340f5d10f83e98 | Add some debugging console logs | web/src/js/components/Search/SearchResultsQueryBing.js | web/src/js/components/Search/SearchResultsQueryBing.js | import React from 'react'
import PropTypes from 'prop-types'
import { isNil } from 'lodash/lang'
import { get } from 'lodash/object'
import logger from 'js/utils/logger'
import SearchResultsBing from 'js/components/Search/SearchResultsBing'
import fetchBingSearchResults from 'js/components/Search/fetchBingSearchResults... | JavaScript | 0.000002 | @@ -6032,24 +6032,204 @@
Data%0A )%0A%0A
+ // console.log('DATA:')%0A // console.log(searchResultsData)%0A // console.log('RESTRUCTURED DATA:')%0A // console.log(restructuredData)%0A // console.log('============')%0A%0A
// Wheth
|
7c72bdc04c08f63630fd6cd10f0882ba10740e8c | Use constant packages | lib/node_modules/@stdlib/math/base/special/sin/lib/main.js | lib/node_modules/@stdlib/math/base/special/sin/lib/main.js | /**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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.000001 | @@ -1211,16 +1211,174 @@
LES //%0A%0A
+var ABS_MASK = require( '@stdlib/constants/float64/high-word-abs-mask' );%0Avar EXPONENT_MASK = require( '@stdlib/constants/float64/high-word-exponent-mask' );%0A
var getH
@@ -1662,281 +1662,8 @@
//%0A%0A
-// Absolute value mask: 0x7fffffff = 2147483647 =%3E 0111111111111111111... |
3bcdbc59fa5988319845e68f5ee4048bfe6d185d | make icon back to 24x24 | packages/idyll-layouts/src/blog/styles.js | packages/idyll-layouts/src/blog/styles.js |
export default ({ maxWidth }) => `
body {
margin: 0;
}
.idyll-root {
box-sizing: border-box;
margin: 0 auto;
padding: 60px 0;
margin-bottom: 60px;
}
.section {
padding: 0 10px;
margin: 0 auto;
}
.article-header {
width: 600px;
max-width: 90vw;
margin-bottom: 45px;
}
.inset {
max-width: 400p... | JavaScript | 0 | @@ -2198,17 +2198,17 @@
width: 2
-0
+4
px;%0A he
@@ -2214,17 +2214,17 @@
eight: 2
-0
+4
px;%0A%7D%0A%0A.
|
61eda5385adf08ac9317f3fad79f0b0c846e278d | Set IPHONEOS_DEPLOYMENT_TARGET to 9.2 | extra/hooks/iosrtc-swift-support.js | extra/hooks/iosrtc-swift-support.js | #!/usr/bin/env node
'use strict';
// This hook automates this:
// https://github.com/eface2face/cordova-plugin-iosrtc/blob/master/docs/Building.md
var
fs = require("fs"),
path = require("path"),
xcode = require('xcode'),
BUILD_VERSION = '7.0',
BUILD_VERSION_XCODE = '"' + BUILD_VERSION + '"',
RUNPATH_SEARCH_PA... | JavaScript | 0.000101 | @@ -243,11 +243,11 @@
= '
-7.0
+9.2
',%0A%09
|
f90e9a39c4fc17eebd0c8eacde402095ce3da72e | Fix up config | src/backend/data/config/config.js | src/backend/data/config/config.js | let configOptions = {
'development': {
'use_env_variable': 'DB_CONNECTION_STRING',
'migrationStorageTableName': 'sequelize_meta'
},
'production': {
'use_env_variable': 'DB_CONNECTION_STRING',
'migrationStorageTableName': 'sequelize_meta'
}
}
export default configOptions; | JavaScript | 0.000455 | @@ -1,7 +1,7 @@
-let
+var
con
@@ -17,17 +17,16 @@
s = %7B%0A
-'
developm
@@ -28,25 +28,24 @@
elopment
-'
: %7B%0A
'use_env
@@ -28,33 +28,32 @@
elopment: %7B%0A
-'
use_env_variable
@@ -44,33 +44,32 @@
use_env_variable
-'
: 'DB_CONNECTION
@@ -74,33 +74,32 @@
ON_STRING',%0A
-'
migrationStorage
@... |
63439ef7c7da9e39a1d5ef9479cda0b719bcd827 | fix translate hr/doctype/employee/employee.js | hr/doctype/employee/employee.js | hr/doctype/employee/employee.js | // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
// License: GNU General Public License v3. See license.txt
wn.provide("erpnext.hr");
erpnext.hr.EmployeeController = wn.ui.form.Controller.extend({
setup: function() {
this.setup_leave_approver_select();
this.frm.fields_dict.user_id.get_query = function(doc,... | JavaScript | 0.000362 | @@ -889,16 +889,21 @@
_button(
+wn._(
'Make Sa
@@ -917,16 +917,17 @@
ructure'
+)
, functi
|
b8c8de45d0a229f3babda84b957f1bee3a8baaf8 | Remove obsolete code and re-enable selecting projects | pontoon/administration/static/js/admin.js | pontoon/administration/static/js/admin.js | $(function() {
// Unhover on add hover
$('.project .menu .add').hover(function() {
$('.project .menu ul li').removeClass('hover');
}, function() {});
// Edit project if selected from the menu
$('.project .menu li').live("click.pontoon", function (e) {
e.preventDefault();
$('.url').val($(this).fi... | JavaScript | 0 | @@ -13,154 +13,8 @@
%7B%0A%0A
- // Unhover on add hover%0A $('.project .menu .add').hover(function() %7B%0A $('.project .menu ul li').removeClass('hover');%0A %7D, function() %7B%7D);%0A%0A
//
@@ -82,30 +82,14 @@
i').
-live(%22click.pontoon%22,
+click(
func
@@ -127,65 +127,8 @@
();%0A
- $('.url').val(... |
bed83ad616c7646c9ce1cb160911c3c46a5abce5 | Use camelcase | dist/extension.js | dist/extension.js | // @ts-check
const vscode = require('vscode');
const THEME_CONFIGURATION_ID = 'markdown-preview-github-styles';
const THEME_CONFIGURATION_KEY = 'colorTheme';
const THEME_CONFIGURATION_VALUES = {
'auto': true,
'system': true,
'light': true,
'dark': true
}
const THEME_CONFIGURATION_AUTO = 'auto';
func... | JavaScript | 0.000005 | @@ -48,38 +48,34 @@
%0A%0Aconst
-THEME_CONFIGURATION_ID
+themeConfigSection
= 'mark
@@ -109,39 +109,30 @@
;%0Aconst
-THEME_CONFIGURATION_KEY
+themeConfigKey
= 'colo
@@ -151,34 +151,25 @@
nst
-THEME_CONFIGURATION_VALUES
+themeConfigValues
= %7B
@@ -255,32 +255,33 @@
nst
-THEME_CONFIGURATION_AUTO
+defaultTh... |
22f5fa32c8cd359932f91274d9c5acfa63e454fa | Lint eslintrc | .eslintrc.js | .eslintrc.js | module.exports = {
'root': true,
'extends': [
'@nighttrax/eslint-config-ts',
],
};
| JavaScript | 0.999089 | @@ -18,14 +18,12 @@
%7B%0A
-'
root
-'
: tr
@@ -33,25 +33,18 @@
%0A%0A
-'
extends
-'
: %5B
-%0A
'@ni
@@ -72,12 +72,8 @@
-ts'
-,%0A
%5D,%0A%7D
|
346cfa812c124897c2e09a17b9f5e40fc730c77a | Add Levy CDF to kstest | lib/node_modules/@stdlib/math/statistics/kstest/lib/cdf.js | lib/node_modules/@stdlib/math/statistics/kstest/lib/cdf.js | 'use strict';
/*
* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
*/
// MAIN //
var CDF = {};
CDF[ 'arcsine' ] = require( '@stdlib/math/base/dist/arcsine/cdf' );
CDF[ 'beta' ] = require( '@stdlib/math/base/dist/beta/cdf' );
CDF[ 'cauchy' ] = require(... | JavaScript | 0 | @@ -1085,32 +1085,94 @@
laplace/cdf' );%0A
+CDF%5B 'levy' %5D = require( '@stdlib/math/base/dist/levy/cdf' );%0A
CDF%5B 'logistic'
|
00ed5c41be6a4618a84c3131f43b2a35a5f150a1 | add proper methods | dist/iosrtc-capturestill.js | dist/iosrtc-capturestill.js | /*global cordova, module*/
module.exports = {
capturestill: function (elementid, successCallback, errorCallback) {
if (typeof mediaStreamRenderers === 'undefined') {
if (typeof errorCallback == 'function') {
errorCallback("mediaStreamRenderers is not defined. Are you loading the iosrtc framework?");
} els... | JavaScript | 0.999803 | @@ -20,16 +20,53 @@
odule*/%0A
+module.exports = MediaStreamRenderer;
%0Amodule.
@@ -951,16 +951,22 @@
%22iosrtc
+Plugin
%22, %22getS
@@ -995,8 +995,998 @@
;%0A%09%7D%0A%7D;%0A
+*/%0A%0AMediaStreamRenderer.prototype.captureStillAsURI = function(successCB,errorCB) %7B%0A%09var self = this;%0A%09exec(successCB,erro... |
8661af59d4ea71bfb4ef1a63a03a5cc738081e9d | Fix `quote-props` for `.eslintrc.js` | .eslintrc.js | .eslintrc.js | module.exports = {
extends: "./react.js",
rules: {
"quote-props": ["error", "always"],
},
}
| JavaScript | 0.000001 | @@ -18,15 +18,17 @@
%7B%0A
+%22
extends
+%22
: %22.
@@ -45,13 +45,15 @@
,%0A
+%22
rules
+%22
: %7B%0A
|
6f37f30561fe2c8fff3ac323f2efeeb68339b313 | save event data | client/client.js | client/client.js | if (Meteor.isClient) {
Template.go.events({
'click #createEventBtn': function() {
// add a new event to the database
var name = $("#inputEventName").val();
if (name == "") return;
Events.insert({
name: name,
numPeople: 0,
participants: []
});
},
'clic... | JavaScript | 0.000002 | @@ -1384,20 +1384,25 @@
var
-data
+eventInfo
= Event
@@ -1436,16 +1436,56 @@
tch()%5B0%5D
+;%0A var data = eventInfo
.data;%0A
|
1d8fc631fbf7038c0342b499493e8a127a0ab58e | add tree label | dist/jquery.a11yTree.min.js | dist/jquery.a11yTree.min.js | /*! jquery.a11yTree */
!function(a,b,c,d){function e(b,c){this.element=b,this.options=a.extend({},defaults,c),this._defaults=defaults,this.init()}var f="a11yTree",g="plugin_",h="ul",i="li",j="id",k="at-n",l="at-identity",m="tabindex",n="keydown",o="click",p="role",q="aria-level",r="tree",s="treeitem",t="group",u="aria-... | JavaScript | 0.000002 | @@ -537,16 +537,28 @@
faults=%7B
+treeLabel:d,
insertTo
@@ -686,24 +686,45 @@
ement);this.
+addTreeLabel(b),this.
identifyChil
@@ -797,16 +797,102 @@
Nav(b)%7D,
+addTreeLabel:function(a)%7Bvar b=this.options.treeLabel;b&&a.attr(%22aria-labelledby%22,b)%7D,
addToggl
|
460a8012133a599eea62bb64d79b312408296a68 | add rule | .eslintrc.js | .eslintrc.js | module.exports = {
"env": {
"browser": true,
"node": true,
"mocha": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"sourceType": "module"
},
... | JavaScript | 0.000763 | @@ -1272,15 +1272,59 @@
ps%22: 1,%0A
+ %22template-curly-spacing%22: %5B1, %22always%22%5D%0A
%7D%0A%7D;%0A
|
580524794f1a36abfb40630886b4bf830caaeed7 | bring up to standard compliance | ignite-generator/src/validation.js | ignite-generator/src/validation.js | 'use strict'
import colors from 'colors/safe'
import Shell from 'shelljs'
const showWarnings = () => {
// Warn if outdated
Shell.exec(`npm outdated -g react-native-cli`)
}
// keep this one fast
const verifyTools = () => {
// verify react-native
if (!Shell.which('react-native')) {
console.log(colors.red('... | JavaScript | 0 | @@ -125,33 +125,33 @@
ed%0A Shell.exec(
-%60
+'
npm outdated -g
@@ -166,17 +166,17 @@
tive-cli
-%60
+'
)%0A%7D%0A%0A//
@@ -924,17 +924,17 @@
ll.exec(
-%60
+'
npm outd
@@ -966,9 +966,9 @@
ep 0
-%60
+'
)) %7B
|
b50dd76514b9f807165b72df409ae8bdd1e790ce | Use setTimer for paxos lease. | paxos_lease.js | paxos_lease.js | var assert = require('assert');
var paxos = require('./paxos');
// Algorithm adapted from: "PaxosLease: Diskless Paxos for Leases",
// by Trencseni, Gazso, Reinhardt.
//
exports.lease_acquirer = function(lease_timeout, // In milliseconds.
node_name, node_restarts,
... | JavaScript | 0 | @@ -353,16 +353,96 @@
opts) %7B%0A
+ var timer = null;%0A var owner = false; // Tri-state: true, false, 'timeout'.%0A%0A
opts =
@@ -669,17 +669,16 @@
%7D%0A %7D%0A
-%0A
retu
@@ -859,35 +859,19 @@
r =
-timer_start(lease_t
+setT
imeout
-,
+(
func
@@ -903,107 +903,62 @@
'; %7D
-);
+,
%0A
-%7D%0A ... |
0a4e3423b1a95c5543da64a50a5ae488f398ed8b | set kValue cleanly | hyperbahn/test/forward/set-k.js | hyperbahn/test/forward/set-k.js | // Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | 0.000001 | @@ -1248,57 +1248,17 @@
-remoteConfig: %7B%0A 'kValue.default': 5%0A %7D
+kValue: 5
%0A%7D,
@@ -2889,53 +2889,39 @@
-remoteConfig: %7B%0A 'kValue.default': 11,
+kValue: 11,%0A remoteConfig: %7B
%0A
|
50cc411f952f7ee39fcf0a2edd83c6aaa9472d3c | Update eslint rules | .eslintrc.js | .eslintrc.js | module.exports = {
"extends": "airbnb-base",
"plugins": [
"import"
],
"rules": {
"linebreak-style": 0,
"no-console": 0,
"no-use-before-define": ["error", "nofunc"],
"indent": ["error", 4],
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
... | JavaScript | 0 | @@ -235,19 +235,40 @@
rror%22, 4
+, %7B %22SwitchCase%22: 1 %7D
%5D,%0A
-
@@ -362,13 +362,526 @@
%22: 0
+,%0A %22no-underscore-dangle%22: %5B%22error%22, %7B %22allowAfterThis%22: true, %22allowAfterSuper%22: true %7D%5D,%0A %22max-len%22: %5B%22error%22, %7B%0A %22code%22: 150,%0A... |
c209e31ce172c71041e96956b5e03e42eedfe2dc | Fix tests for | features/support/shared_steps.js | features/support/shared_steps.js | var util = require('util');
var assert = require('assert');
module.exports = function () {
this.ShouldGetAResponse = () => {
assert.equal(this.response.statusCode, 200);
assert.ok(this.response.body);
assert.ok(this.response.body.length);
};
this.ShouldBeValidJSON = (callback) => {... | JavaScript | 0.000001 | @@ -1141,17 +1141,17 @@
de === '
-o
+O
k';%0A%0A
|
ecc5d55ccc823f02c00c96fda4ac9b30c69f1cc2 | update dist | dist/dialog-service.js | dist/dialog-service.js | System.register([], function (_export) {
var _classCallCheck, _createClass, DialogService;
return {
setters: [],
execute: function () {
"use strict";
_classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a fun... | JavaScript | 0 | @@ -1793,17 +1793,16 @@
t.body;%0A
-%0A
@@ -1895,70 +1895,8 @@
r);%0A
- console.log(%22test%22, this.container, this.anchor);%0A
|
5344d8f66dbbdf3d58ed5d50134ae953df949032 | fix import | imports/startup/server/fixtures.js | imports/startup/server/fixtures.js | /*
_____ ______ _ _
| __ \ | ____| | | | |
| | | | ___ _ __ ___ ___ ___ _ __ __ _ ___ _ _ | |__ __ _ _ __| |_| |__
| | | |/ _ \ '_ ` _ \ / _ \ / __| '__/ _` |/ __| | | | | __| / _` | '__... | JavaScript | 0.000001 | @@ -811,17 +811,16 @@
%3C3%0A%0A*/%0A
-%0A
import %7B
@@ -855,11 +855,74 @@
r';%0A
+import Collectives from '../../api/collectives/Collectives';%0A%0A
%0A//
+
This
@@ -1153,41 +1153,291 @@
);%0A%0A
-Meteor.startup(function ()
+function setupCollectiveInApp(collective) %7B%0A Meteor.settings.public.Collective._... |
3b0fd3e5089ac993f04786c09e925a4b400970bd | delete getClass() in UI | src/UI.js | src/UI.js | (function() {
var UI = {
showComputerMessage: function(callback) {
$("#Computer").show("fast", function() {
callback(UI.humanPlay);
});
},
hideComputerMessage: function() {
$("#Computer").hide();
},
showHumanMessage: function() {
$("#Human").show();
},
hi... | JavaScript | 0.000001 | @@ -380,88 +380,8 @@
%7D,%0A%0A
- getClass: function(element) %7B%0A return $(element).attr('class')%0A %7D,%0A%0A
|
909cb4106fe504d60c4d77ef8e59585de318e921 | Add dist | dist/password-validation.js | dist/password-validation.js | /*
password-validation 0.1.0
A UI lib handling password validation feedback
MIT
2014-05-10
*/
var PasswordValidation;
PasswordValidation = (function() {
function PasswordValidation(el, validations) {
this.el = el;
if (validations == null) {
validations = {};
}
this.validations = _.defau... | JavaScript | 0.999654 | @@ -1014,24 +1014,129 @@
mbol'%0A %7D;%0A%0A
+ PasswordValidation.prototype.messagePrefixes = %7B%0A include: %22Do use%22,%0A exclude: %22Don't use%22%0A %7D;%0A%0A
PasswordVa
@@ -3346,121 +3346,45 @@
-if (type === 'include') %7B%0A prefix = 'Do use';%0A %7D else %7B%0A pref... |
9ad90d4a5348436061f8669b7749dc29bfb85576 | add missing comma | src/bq.js | src/bq.js | //generated by tools/bq-gen
//backquote-backquote name completions
D.informal=[
//'squiggle alias0 alias1 ...'
'← leftarrow assign gets is copula define denote let',
'+ plus add conjugate mate',
'- minus hyphen subtract negate dash',
'× cross times multiply sgn signum direction product',
'÷ divide reciproc... | JavaScript | 0 | @@ -1254,16 +1254,17 @@
ication'
+,
%0A '%3E gr
|
b25c0d0a4c7890b14a22c558495e9cf63626c776 | Enable "no-confusing-arrow" rule | .eslintrc.js | .eslintrc.js | module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
},
extends: 'eslint:recommended',
env: {
browser: false,
node: true,
},
globals: {
},
rules: {
/*** Possible Errors ***/
'no-console': 0,
'no-template-curly-in-string': 2,
'no-unsafe-negation': 2,
/*** Be... | JavaScript | 0.000042 | @@ -2150,16 +2150,83 @@
ng': 2,%0A
+ 'no-confusing-arrow': %5B2, %7B%0A 'allowParens': true,%0A %7D%5D,%0A
%7D,%0A%7D;%0A
|
579ff417ee88a54cf2b625e99dc2e8c4ffa87a1a | Fix identity server public key. | extension/lib/background/nacl.js | extension/lib/background/nacl.js | var domready = require('domready');
var EE = require('events').EventEmitter;
var inherits = require('inherits');
var Channel = require('./channel');
var QueuedRpcChannelWrapper = require('./queued_channel');
var state = require('../state');
module.exports = Nacl;
function Nacl() {
if (!(this instanceof Nacl)) {
... | JavaScript | 0.000003 | @@ -4110,16 +4110,17 @@
uRZmVCA=
+=
'%0A %7D;
|
18249301a9b885321dc7d2a88414aedcdc62d11b | Update existing notification, rather than having multiple popups for the same song. | core/background/notifications.js | core/background/notifications.js | 'use strict';
define([
'wrappers/chrome',
'services/background-ga'
], function(chrome, GA) {
/**
* Map of click listeners indexed by notification IDs
* @type {{}}
*/
var clickListeners = {};
/**
* Checks for permissions and existence of Notifications API
* (to be safe to run on minor browsers like Ope... | JavaScript | 0 | @@ -1554,38 +1554,206 @@
%09%09%09%09
-chrome.notifications.create(''
+if(typeof song.metadata.notificationId === 'undefined') %7B%0A%09%09%09%09%09chrome.notifications.create(options, notificationCreatedCb);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09chrome.notifications.update(song.metadata.notificationId
, op
@@ ... |
d87d6e76c74e955747a47f230748808bc0a70d1d | Add Promise as a global | .eslintrc.js | .eslintrc.js | var OFF = 0;
var WARNING = 1;
var ERROR = 2;
module.exports = {
'parser': 'babel-eslint',
'env': {
'browser': true,
'node': true,
'jest': true,
},
'ecmaFeatures': {
'jsx': true,
'modules': true,
},
'extends': 'eslint:recommended',
'plugins': [
'react',
],
'rules': {
'... | JavaScript | 0.000001 | @@ -295,16 +295,58 @@
,%0A %5D,%0A%0A
+ 'globals': %7B%0A 'Promise': true,%0A %7D,%0A%0A
'rules
|
d8951f93c10841e33fe6a6fd65902d74c4fe3c4c | disable property naming convention for typestyle | .eslintrc.js | .eslintrc.js | module.exports = {
env: {
browser: true,
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint', '@typescript-eslint/tslint', 'sonarjs', 'prefer-arrow', 'prettier', 'imp... | JavaScript | 0 | @@ -1094,32 +1094,93 @@
core: 'allow' %7D,
+%0A%0A // typestyle does not play well with this rule.
%0A %7B s
@@ -1204,37 +1204,28 @@
y', format:
-%5B'camelCase'%5D
+null
, leadingUnd
|
cde66c8993cfbc3db5177ed9cf7b61094ac7bf68 | fix popups.show to always show transition in | public/src/js/popups.js | public/src/js/popups.js | /*
* debugger.io: An interactive web scripting sandbox
*
* popup.js: template-able popup windows
*/
define([
'config', 'utils', 'jquery', 'underscore',
'bus', 'templates'
],
function(config, utils, $, _, bus, templates) {
'use strict';
var popups = utils.module('popups');
var popupEl = '#popup';
/**
... | JavaScript | 0 | @@ -3795,17 +3795,43 @@
up.show(
-)
+function() %7B%0A $popup
.transit
@@ -3865,32 +3865,34 @@
ion() %7B%0A
+
d.resolve(true);
@@ -3884,32 +3884,44 @@
.resolve(true);%0A
+ %7D);%0A
%7D);%0A %7D%0A
|
374762b2fe352aae8b42234193319d30a435f7c3 | Add rate limiter to client/etherscan-throttled | src/client/etherscan-throttled.js | src/client/etherscan-throttled.js | /**
* @file Throttled interface to Etherscan API client.
* @module client/etherscan-throttled
*/
'use strict'
// Imports
const RawClient = require('./etherscan')
/**
* Private members store.
* @private
*/
const privs = new WeakMap()
/**
* Throttled interface to Etherscan API client.
* @static
*/
class Clie... | JavaScript | 0 | @@ -159,16 +159,57 @@
erscan')
+%0Aconst Bottleneck = require('bottleneck')
%0A%0A/**%0A *
@@ -288,215 +288,747 @@
%0A *
-Throttled interface to Etherscan API client.%0A * @static%0A */%0Aclass Client %7B%0A /**%0A * No parameters.%0A */%0A constructor () %7B%0A const priv = %7B%7D%0A privs.set(this, pr... |
30e1a17b5c858ef1675e2f1a2d87666844710c63 | remove 'react-native/no-inline-styles' rule | .eslintrc.js | .eslintrc.js | const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
root: true, // stop ESLint from looking for a configuration file in parent folders
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
ecmaFeatu... | JavaScript | 0.000124 | @@ -2590,54 +2590,8 @@
OR,%0A
- 'react-native/no-inline-styles': WARNING,%0A
|
999ecd60a6ad9c0803511f9645c091ab4d1e5817 | Add a basic controller for each view | www/js/controllers.js | www/js/controllers.js | angular.module('starter.controllers', [])
.controller('AppCtrl', function($scope, $ionicModal, $timeout) {
// Form data for the login modal
$scope.loginData = {};
// Create the login modal that we will use later
$ionicModal.fromTemplateUrl('templates/login.html', {
scope: $scope
}).then(function(modal) ... | JavaScript | 0.000001 | @@ -13,15 +13,23 @@
le('
-star
+confboilerpla
te
-r
.con
@@ -86,809 +86,217 @@
cope
-, $ionicModal, $timeout) %7B%0A // Form data for the login modal%0A $scope.loginData = %7B%7D;%0A%0A // Create the login modal that we will use later%0A $ionicModal.fromTemplateUrl('templates/login.html', %7B%0A scope: $scop... |
eeb430f69e6da414a53bf9828885e281eccdfe26 | FIX add logger to saveJsonToDisk | src/client/js/Utils/SaveToDisk.js | src/client/js/Utils/SaveToDisk.js | /*globals define*/
/*jshint node: true, browser: true, bitwise: false*/
/**
* @author kecso / https://github.com/kecso
*/
define(['blob/BlobClient'], function (BlobClient) {
'use strict';
function saveJsonToDisk(fileName, data, callback) {
saveJsonToBlobStorage(fileName, data, function (err, downloa... | JavaScript | 0.000001 | @@ -232,16 +232,24 @@
e, data,
+ logger,
callbac
@@ -298,16 +298,24 @@
e, data,
+ logger,
functio
|
564fa379235065532c82152fcee3c2113ba432c1 | Add Jabba to the GL checklist | data/unitChecklist.js | data/unitChecklist.js | module.exports.charChecklist = {
// Their ID name Shortened name to fit nicely
"Galactic Legends": [
["GLREY", "Rey"],
["JEDIMASTERKENOBI", "JM Kenobi"],
["GRANDMASTERLUKE", "JM Luke"],
["LORDVADER", "Lord Vader"],
... | JavaScript | 0 | @@ -157,24 +157,70 @@
%22Rey%22%5D,%0A
+ %5B%22JABBATHEHUTT%22, %22Jabba%22%5D,%0A
%5B%22JE
|
668f534cb1ae2172bfb900ddabdd20b59046ebe1 | fix updating task statuses | iceprod/server/data/www/rest.js | iceprod/server/data/www/rest.js | /*
* Helper functions that use REST API
*/
var rest_api = 'https://iceprod2-api.icecube.wisc.edu';
async function fetch_json(method, url, json, passkey) {
if (method == 'GET' && json != null) {
throw "fetch_json(): arument json must be null if method == GET";
}
if (passkey == null) {
thro... | JavaScript | 0.000025 | @@ -3130,73 +3130,8 @@
) %7B%0A
- for (var j=0;j%3Ctask_status_filters.length;j++) %7B%0A
@@ -3202,36 +3202,32 @@
id;%0A
-
if (task_status_
@@ -3256,36 +3256,32 @@
-
-
url += '&status=
@@ -3298,36 +3298,32 @@
tus_filters%5B0%5D;%0A
-
... |
9ca9fecd9b85cfd7097c6769c163409154bede81 | Change repo back to app | src/client/main/main.component.js | src/client/main/main.component.js | import './main.scss';
/* eslint indent: 0 */
const template = [
'<div>',
'<header class="section"></header>',
'<highlights class="section"></highlights>',
'<github-activity class="section" ',
'user="jordond" ',
'repo="powerhour-site" ',
'limit="4" ',
'enable-commit-status="true">'... | JavaScript | 0.000058 | @@ -251,13 +251,8 @@
hour
--site
%22 ',
|
4a0250a337c7b111720c0d33ba52d09a52fb0542 | Fix expose API host env | nuxt-strapi-deliveroo-clone-tutorial/client/nuxt.config.js | nuxt-strapi-deliveroo-clone-tutorial/client/nuxt.config.js | module.exports = {
/*
** Headers of the page
*/
head: {
title: 'client',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nuxt.js project' }
],
link: [{ rel: 'icon', type: 'i... | JavaScript | 0.000006 | @@ -408,16 +408,100 @@
%5D%0A %7D,%0A%0A
+ /*%0A ** Expose env variables%0A */%0A env: %7B%0A API_URL: process.env.API_URL%0A %7D,%0A%0A
/*%0A *
@@ -540,17 +540,16 @@
or%0A */%0A
-%0A
loadin
@@ -573,16 +573,17 @@
070' %7D,%0A
+%0A
/*%0A *
@@ -609,17 +609,16 @@
on%0A */%0A
-%0A
build:
|
f4ac920363056b474e570d799a8fd74c127b3129 | Fix sample | sample/ExtendReplacing.js | sample/ExtendReplacing.js | if( typeof module !== 'undefined' )
require( 'wTools' );
var _ = wTools;
/* array, imperative form */
var dst = [ 1, 2, 3 ];
var src = [ 4, 5, 6, 7 ];
Object.preventExtensions( dst );
for( let i = 0; i < src.length; i++ )
dst[ i ] = src[ i ];
console.log( dst ); // log [ 4, 5, 6 ]
/* array, object assigning */
v... | JavaScript | 0.000001 | @@ -1,8 +1,22 @@
+'use strict'%0A%0A
if( type
@@ -81,16 +81,17 @@
Tools;%0A%0A
+%0A
/* array
@@ -196,16 +196,24 @@
dst );%0A%0A
+try%0A%7B%0A
for( let
@@ -242,16 +242,18 @@
; i++ )%0A
+
dst%5B i %5D
@@ -265,16 +265,65 @@
c%5B i %5D;%0A
+%7D%0Acatch( e )%0A%7B%0A console.log( e ); // log error%0A%7D
%0Acon... |
d2262b1449c5f28be9a321fcd762c39ca692128b | Revert "Code climate doesn't understand `off`" | .eslintrc.js | .eslintrc.js | module.exports = {
'extends': 'airbnb',
'rules': {
'no-console': 0,
'indent': ['error', 4],
'prefer-const': 'off',
'comma-dangle': ['error', 'never'],
'object-curly-spacing': ['error', 'never']
}
};
| JavaScript | 0.000001 | @@ -78,9 +78,13 @@
e':
-0
+'off'
,%0A
|
4add1561a07503f08d6adb9ac1835b41fd90920a | remove fullpage.js globals (#1816) | .eslintrc.js | .eslintrc.js | module.exports = {
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
env: {
es6: true,
browser: true,
jest: true,
},
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2017,
ecmaFeatures: {
jsx: true,
... | JavaScript | 0 | @@ -1006,62 +1006,8 @@
se,%0A
- fullpage: false,%0A fullpage_api: false,%0A
|
1fc4d9e3411ce683d921fbe509cf7f2801137423 | remove typo | project/test/entry.js | project/test/entry.js | import React from 'react'
import ReactDom from 'react-dom'
import Input, * as inputHelper from '../src/index'
import './css/bootstrap/bootstrap.min.css'
import './css/site.css'
//optional: setting up global config -- begin
inputHelper.config({
validationStateProperty: 'validation', // the property name in the state... | JavaScript | 0.999999 | @@ -7327,17 +7327,16 @@
try.js%22%3E
-%3E
View Sou
|
ac6c6ed6b97f4d8d13726acb748da6563670cde9 | clean up code | src/collections/CardCollection.js | src/collections/CardCollection.js | import h from 'react-hyperscript'
import CardReveal from 'reusableComponents/cardReveal'
import settings from 'settings'
import styles from 'reusableComponents/cardReveal/cardReveal.css'
const { git } = settings
const li = text => h('li', {}, text)
export const BubblyBoilerplate = h(
CardReveal,
{
cat: '... | JavaScript | 0.000003 | @@ -300,19 +300,16 @@
al,%0A %7B%0A
-%0A%0A%0A
cat:
|
f51ffbc617c229b02e66349eb45f648e2e19bafa | fix loading category for coco format | dataformaters/coco.js | dataformaters/coco.js | var cocoFormater = {
fromCOCO : function(cocoData){
let labellingData = {},
idNumber = 1000;
let categories = [];
for(var category_i = 0; category_i < cocoData.categories.length; category_i++){
categories.push(cocoData.categories[category_i]);
}
for(... | JavaScript | 0.000001 | @@ -1758,17 +1758,8 @@
/ 2,
- // x max
%0A
@@ -1834,17 +1834,8 @@
/ 2,
- // y max
%0A
@@ -3160,32 +3160,33 @@
%7D%0A
+%0A
@@ -3324,16 +3324,26 @@
abel%22: %22
+unlabelled
%22,%0A
@@ -3629,19 +3629,70 @@
y%22:
-%22undefined%22
+categories.filter((x)=%3Ex.id == annotati... |
16d1bf6de28d1731cbe297806e86ce4ea2761895 | work on LocalPlaylist | src/collections/local-playlist.js | src/collections/local-playlist.js | (function(factory) {
'use strict';
/* global define: true, module: true */
// CommonJS
if(typeof exports === 'object') {
module.exports = factory(require('underscore'), require('backbone'), require('./tracks'), require('./../models/track'));
}
// AMD
else if(typeof define === 'function' && define.amd)... | JavaScript | 0 | @@ -957,16 +957,22 @@
d remove
+ reset
', funct
@@ -997,28 +997,12 @@
is.s
-ync('update', this,
+ave(
%7B%0A
@@ -1060,30 +1060,210 @@
his.
-sync('read', this, %7B%7D)
+load();%0A %7D,%0A%0A save: function(options) %7B%0A this.sync('update', this, options);%0A return this;%0A %7D,%0A%0A loa... |
0bcc16022c92cad655e2c7175cd9debbda75de43 | Extract user creation to auth | webapp/utils/createUser.js | webapp/utils/createUser.js | 'use strict';
const User = require('../auth/user');
const userRepository = require('../auth/userRepository');
const pass = require('pwd');
function createUser(username, password, email) {
pass.hash(password, (err, salt, passhash) => {
if (err) {
console.log(err);
} else {
userRepository.addUser(... | JavaScript | 0.999823 | @@ -18,412 +18,62 @@
nst
-User = require('../auth/user');%0Aconst userRepository = require('../auth/userRepository');%0Aconst pass = require('pwd');%0A%0Afunction createUser(username, password, email) %7B%0A pass.hash(password, (err, salt, passhash) =%3E %7B%0A if (err) %7B%0A console.log(err);%0A %7D els... |
da4b35ea16cb4d5563bcd6345e6c4afcecc7b454 | remove unused variable | app/models/user.js | app/models/user.js | const mongoose = require("mongoose");
const Tweet = mongoose.model("Tweet");
const Schema = mongoose.Schema;
const bcrypt = require('bcrypt');
const crypto = require('crypto');
const authTypes = ['github'];
// ## Define UserSchema
const UserSchema = new Schema(
{
name: String,
email: String,
username: St... | JavaScript | 0.00003 | @@ -140,42 +140,8 @@
');%0A
-const crypto = require('crypto');%0A
cons
|
6a1633c3c04cb0be89a1b24bc80366441eb46f73 | Remove unused bits | src/gh.js | src/gh.js | // a0c6d37c9b65863e1417888d755d1fdf0cccb2ee
var GitHub = require('github-api')
var q = require('d3-queue').queue
var child = require('child_process')
function gitInit(callback) {
child.exec('git init', function(error, stdout, stderr) {
if (!error && stderr) process.stderr.write(stderr), error = new Error('git init... | JavaScript | 0.000002 | @@ -1,49 +1,4 @@
-// a0c6d37c9b65863e1417888d755d1fdf0cccb2ee%0A%0A
var
|
0b9db0287751f9e396c9cdc2c8c60d18b7dde6a3 | update link | src/im.js | src/im.js | /** @module leancloud-realtime */
/** core + plugins */
import { Realtime } from './core';
import { IMPlugin, defineConversationProperty } from './plugin-im';
import MessageParser from './message-parser';
import * as CoreEvent from './events/core';
import * as IMEvent from './events/im';
Realtime.defineConversationPro... | JavaScript | 0 | @@ -582,16 +582,29 @@
%E9%94%99%E8%AF%AF%E7%A0%81%EF%BC%8C%E8%AF%A6%E8%A7%81
+%5B%E5%8D%B3%E6%97%B6%E9%80%9A%E8%AE%AF%E4%BA%91%E7%AB%AF%E9%94%99%E8%AF%AF%E7%A0%81%E8%AF%B4%E6%98%8E%5D
%7B@link h
@@ -640,24 +640,32 @@
time
-_v2
+-faq
.html#
-%E4%BA%91%E7%AB%AF%E9%94%99%E8%AF%AF%E7%A0%81%E8%AF%B4%E6%98%8E
+hash-291... |
8ed6d9735d627ec99274f0d6ad3c31de1824993c | Revert "disable sentry on electron" | webpack.electron.config.js | webpack.electron.config.js | const config = require('./config');
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const baseConfig = require('./webpack.base.config.js');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const { DefinePlugin, ProvidePlugin } = require('webpack');
cons... | JavaScript | 0 | @@ -446,16 +446,79 @@
lyzer');
+%0Aconst SentryWebpackPlugin = require('@sentry/webpack-plugin');
%0A%0Aconst
@@ -674,16 +674,84 @@
opment';
+%0Aconst hasSentryToken = process.env.SENTRY_AUTH_TOKEN !== undefined;
%0A%0Aconst
@@ -2519,19 +2519,16 @@
%7D),%0A%5D;%0A%0A
-//
if (hasS
@@ -2541,19 +2541,16 @@
oken)... |
bbf24c6edb252495b87be5d6c996e2d05ed60352 | Clear note title and body | app/notes/notes.js | app/notes/notes.js | 'use strict';
var notelyBasePath = 'https://elevennote-nov-2014.herokuapp.com/api/v1/';
var apiKey = '$2a$10$mDt9tMv4Qc2A5GAO6uS8b.f3SfpxjMgkF/t9IW2eXdPFPsV5LnAZ.';
angular.module('notely.notes', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/notes', {
templateUrl: 'no... | JavaScript | 0 | @@ -707,32 +707,85 @@
oteBody%0A %7D);%0A
+ $scope.noteTitle = '';%0A $scope.noteBody = '';%0A
%7D;%0A%7D%5D)%0A%0A.servi
|
3bf6b53b466d395d68c461508199d5301b946355 | Add auth/admin middleware | app/routes/user.js | app/routes/user.js | const userController = require('../controllers/user');
const authenticationMiddleware = require('../middleware/authentication');
const express = require('express');
const router = express.Router();
// GET all users
router.get(
'/', // route
authenticationMiddleware.validateAuthentication, // isAuthenticated mid... | JavaScript | 0.000001 | @@ -561,20 +561,134 @@
er.post(
+%0A
'/',
+%0A authenticationMiddleware.validateAuthenticationAttachUser,%0A authenticationMiddleware.verifyAdministrator,%0A
userCon
@@ -710,16 +710,17 @@
rNewUser
+%0A
);%0A// DE
|
9a7e335429ced8b4387f5af84c5f287ab9c62144 | Fix 'undefined' Hashed Password. | src/ph.js | src/ph.js | // From: https://github.com/zenorocha/select/blob/master/src/select.js
function select(element) {
var selectedText;
if (element.nodeName === 'SELECT') {
element.focus();
selectedText = element.value;
}
else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
... | JavaScript | 0.000101 | @@ -3565,24 +3565,30 @@
is.trueValue
+ %7C%7C ''
;%0A se
@@ -3683,24 +3683,30 @@
is.maskValue
+ %7C%7C ''
;%0A %7D%0A%0A
|
4d5b358beb4b710c4f12afe19375a373e2721962 | Fix broken links | website/src/pages/index.js | website/src/pages/index.js | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import useBaseUrl from '@docusaurus/useBaseUrl';
im... | JavaScript | 0 | @@ -1935,35 +1935,29 @@
ocs/features
-/index
')%7D%3E%0A
+
@@ -2936,38 +2936,32 @@
l('docs/features
-/index
')%7D%3E%0A
@@ -4431,22 +4431,16 @@
features
-/index
')%7D%3E%0A
@@ -5098,22 +5098,16 @@
xtending
-/index
')%7D%3E%0A
@@ -6527,32 +6527,32 @@
%22%3E%0A %3Ca%0A
+
... |
c721ae6dff2c3e40e81147f45376c62f307f7a6a | Remove console debug | website/static/js/about.js | website/static/js/about.js | // Toggles the about page
$(document).ready(function(){
var lastosition;
$('#about-link').click(function(){
// Keep track of the users vertical position so it can be scolled back
//to when the window is closed
position = $(window).scrollTop();
console.log(position);
$('#a... | JavaScript | 0.000004 | @@ -273,39 +273,8 @@
();%0A
- console.log(position);%0A
|
cdbe060395c1e2f1047304cd8d0e52da00437d09 | comment out wu.masonry | app/scripts/app.js | app/scripts/app.js | 'use strict';
angular.module('ppnetApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'ngAnimate',
'angular-gestures',
'fx.animations',
'angularMoment',
'ppSync',
'ngCordova',
'wu.masonry'
])
.config(function($routeProvider) {
/* global routingConfig */
var access = routingConf... | JavaScript | 0 | @@ -197,16 +197,18 @@
Cordova'
+/*
,%0A 'wu.
@@ -215,16 +215,18 @@
masonry'
+*/
%0A%5D)%0A .c
|
8040ffc69a43498d4dd6c4ab8fb13234cbcbb57e | make utf8 explicit | app/server/util.js | app/server/util.js | import { minify } from 'html-minifier'
import { INITIAL_DATA } from '../common/constants/initial'
import { APP_ID, DEBUG_ID } from '../common/constants/ids'
export function getEntryPointFromPath (pathname) {
if (pathname === '/') {
if (__DEV__) console.log('main file')
return 'landing-async'
} else if (/^\... | JavaScript | 0.999952 | @@ -1062,24 +1062,55 @@
%3Chead%3E%0A
+ %3Cmeta charset=%22utf-8%22%3E%0A
%3Ctit
|
79e4ab2d8dc7fbe463e3370114b63d92648b3957 | update jobs logger | app/util/logger.js | app/util/logger.js | var clrz = require('toolz/src/util/colorz')
var dateFormat = require('toolz/src/date/dateFormat')
var log = require('toolz/src/time/logger')
var clog = console.log.bind(console)
// clrz settings for colorized output
var blk = clrz.black
var dim = clrz.dim
var blu = process.platform === 'win32' ? clrz.cyan : clr... | JavaScript | 0 | @@ -1334,23 +1334,22 @@
), grn('
-globals
+config
:'), dim
@@ -1346,32 +1346,47 @@
ig:'), dim(blk('
+--type=globals
Display initial
@@ -1440,16 +1440,14 @@
rn('
-defaults
+config
:'),
@@ -1448,32 +1448,48 @@
ig:'), dim(blk('
+--type=defaults
Display initial
|
c6b13dfea66f0d2675a7d31c7b18f12574c77d39 | Fix auth urls | frontend/src/config/authProvider.js | frontend/src/config/authProvider.js | import * as enhance from 'lib/enhanceFetch';
import { enhancedFetch } from './enhancedFetch';
const URLS = {
login: '/api/v1/auth/login/',
signup: '/api/v1/auth/login/',
verify: '/api/v1/auth/login/',
};
export const authProvider = enhance.authFetch(URLS)(enhancedFetch);
| JavaScript | 0.000587 | @@ -156,29 +156,30 @@
api/v1/auth/
-login
+signup
/',%0A verify
@@ -190,29 +190,30 @@
api/v1/auth/
-login
+verify
/',%0A%7D;%0A%0Aexpo
|
17b91b9368d682b8650a5c53ddfb8bc54fb1f71e | Add fill method to rng-impl ns. | frontend/src/uxbox/util/rng_impl.js | frontend/src/uxbox/util/rng_impl.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/.
*
* Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
*/
"use strict";
goog.provide("uxbox.util.rng_impl");
goog.... | JavaScript | 0 | @@ -571,16 +571,108 @@
pto%22);%0A%0A
+ self.fill = function(buf) %7B%0A crypto.randomFillSync(buf);%0A return buf;%0A %7D;%0A%0A
self
@@ -693,24 +693,24 @@
nction(n) %7B%0A
-
return
@@ -895,24 +895,125 @@
ndefined) %7B%0A
+%0A self.fill = function(buf) %7B%0A global.crypto.getRan... |
f00bce299c897e6f97690fb55df4dc8213248850 | Move to cloudflare as CDN | src/scripts/indexjs/index.js | src/scripts/indexjs/index.js | $(document).ready(function() {
var PER_PAGE = 50;
var IMAGES = _.shuffle(window.Data || []);
var size = 78;
var gender = 'neutral';
var count = 0;
var filteredImages = function() {
return _.filter(IMAGES, function(image) {
return gender === 'neutral' || image.gender === gender;
});
};
v... | JavaScript | 0.000001 | @@ -1091,41 +1091,28 @@
s://
+static.
diverse
--
ui.
-s3.amazonaws.com/faces
+com
/',
|
f82e0dcc2be908947dc435eb7d4470b48a4365c3 | Add channel Deutsche Welle Plus | downloader/dw-downloader.js | downloader/dw-downloader.js | const request = require('request');
const moment = require('moment-timezone');
const Show = require('../models/Show');
const url = 'http://www.dw.com/api/epg/5?languageId=1';
exports.channelIds = ['deutsche_welle'];
function parseShow(showJson, channelId) {
let show = new Show(showJson.name);
show.description = sh... | JavaScript | 0 | @@ -122,18 +122,38 @@
onst url
+s
=
+ %7B%0A%09deutsche_welle:
'http:/
@@ -186,17 +186,99 @@
uageId=1
-'
+&days=1',%0A%09deutsche_welle_plus: 'http://www.dw.com/api/epg/4?languageId=1&days=1'%0A%7D
;%0A%0Aexpor
@@ -297,26 +297,25 @@
s =
-%5B'deutsche_welle'%5D
+Object.keys(urls)
;%0A%0Af
@@ -1161,16 +1161,44 ... |
4849d87d38c8b9087eac2c8eef8ebeeff292509f | Fix navigation links | src/components/Dashboard/index.js | src/components/Dashboard/index.js | import React from "react";
import { connect } from "react-redux";
import { Link } from "react-router";
import { fromJS } from "immutable";
import CircularProgress from "material-ui/CircularProgress";
import { Responsive, WidthProvider } from "react-grid-layout";
const ResponsiveReactGridLayout = WidthProvider(Respons... | JavaScript | 0.000001 | @@ -2782,24 +2782,107 @@
ndex) =%3E %7B%0A%0A
+ let targetURL = process.env.PUBLIC_URL + link.get(%22url%22);%0A%0A
@@ -3064,31 +3064,25 @@
athname:
-link.get(%22url%22)
+targetURL
, query:
|
9b8b29b88ff4a45d712bb126f953f410066b1041 | Refactor updating of title | src/components/Dashboard/index.js | src/components/Dashboard/index.js | import React from "react";
import { connect } from "react-redux";
import CircularProgress from "material-ui/CircularProgress";
import ReactGridLayout from "react-grid-layout";
import Visualization from "../Visualization";
import { Actions as AppActions } from "../App/redux/actions";
import { Actions as Configuration... | JavaScript | 0.000025 | @@ -657,16 +657,124 @@
rops) %7B%0A
+ this.updateTitle(prevProps);%0A this.updateConfiguration();%0A %7D%0A%0A updateTitle(prevProps) %7B
%0A
@@ -825,18 +825,14 @@
onst
- %7B
title
- %7D
= t
@@ -851,33 +851,38 @@
nfiguration.
-toJS(
+get(%22title%22
);%0A
-%0A
@@ -885,4... |
bf75e2f328fc7276e6b18ee8114e8d73e21768ea | Move setPageTitle into componentDidUpdate | src/components/Dashboard/index.js | src/components/Dashboard/index.js | import React from "react";
import { connect } from "react-redux";
import CircularProgress from "material-ui/CircularProgress";
import ReactGridLayout from "react-grid-layout";
import Visualization from "../Visualization";
import { Actions as AppActions } from "../App/redux/actions";
import { Actions as Configuration... | JavaScript | 0 | @@ -644,17 +644,158 @@
);%0A %7D
-;
+%0A%0A componentDidUpdate(prevProps) %7B%0A const %7B title %7D = this.props.configuration.toJS();%0A this.props.setPageTitle(title);%0A %7D
%0A%0A re
@@ -1250,15 +1250,8 @@
st %7B
- title,
vis
@@ -1304,53 +1304,8 @@
);%0A%0A
- this.props.s... |
26608076fd7401230b026600ddcc1355178b5f95 | Add login button on register screen | src/components/RecipientSignup.js | src/components/RecipientSignup.js | // SEMI CLEANED
import React from 'react'
import cookie from 'react-cookie'
// components
import NavBar from './NavBar'
import Header from './Header'
import ToggleDisplay from 'react-toggle-display'
import FlatButton from 'material-ui/lib/flat-button'
import RaisedButton from 'material-ui/lib/raised-button'
import Te... | JavaScript | 0.000001 | @@ -4296,32 +4296,59 @@
te.isLoggedIn%7D%3E%0A
+ %3Ch2%3EOops!%3C/h2%3E%0A
%3Cp%3EY
@@ -4395,22 +4395,120 @@
funding
-.
+!
%3C/p%3E%0A
+ %3CRaisedButton label=%22Login / Signup%22 onClick=%7B() =%3E %7Bthis.props.history.push('/')%7D%7D/%3E%0A
|
287adbac3b55ffbdd8b0f3c7782ac80e9083f7ee | fix : format error. | rocketmq-cockpit/src/main/webapp/js/topic.js | rocketmq-cockpit/src/main/webapp/js/topic.js | $(document).ready(function() {
$.get("rocketmq/topics", function(data) {
$(".table-content").children().remove();
data.forEach(function(topic) {
var incLink = $("<input type='text' class='form-control re_cluster_name' placeholder='remove_cluster_name'>");
var operationLink =... | JavaScript | 0 | @@ -1247,26 +1247,16 @@
else %7B%0A
- %7D%0A
|
b04ca05a84246ab99a128ef88cd9a07ed440a613 | Move Transparency Mode | src/components/bank/Everything.js | src/components/bank/Everything.js | import React from 'react'
import styled from 'styled-components'
import {
Avatar,
Badge,
Box,
Container,
Link as A,
Flex,
Icon,
Text,
theme
} from '@hackclub/design-system'
import { Headline, Lead } from 'components/Content'
import { Fade } from 'react-reveal'
import { timeSince } from 'helpers'
cons... | JavaScript | 0.000001 | @@ -3490,94 +3490,94 @@
'
-Transparency Mode (optional)': '2020-05-05',%0A 'Self-serve, no-contract signup
+Self-serve, no-contract signup': '2020-05-05',%0A 'Transparency Mode (optional)
': '
@@ -3584,17 +3584,17 @@
2020-05-
-0
+1
5'%0A
|
a531024ee4c222e8343974d398f27eea4757b9c8 | Create fade effect | src/QueryLoader.js | src/QueryLoader.js | var ImagePreloader = require('./ImagePreloader/');
var Overlay = require('./Overlay/');
function QueryLoader(element, options) {
'use strict';
this.element = element;
this.options = options;
//The default options
this.defaultOptions = {
onComplete: function() {},
onLoadComplete: fu... | JavaScript | 0 | @@ -291,47 +291,8 @@
%7B%7D,%0A
- onLoadComplete: function() %7B%7D,%0A
@@ -465,33 +465,24 @@
-completeAnimation: %22fade%22
+minimumTime: 500
,%0A
@@ -487,30 +487,30 @@
-minimum
+fadeOut
Time:
-5
+3
00%0A %7D
@@ -1660,16 +1660,198 @@
umTime);
+%0A%0A if (done === total) %7B%0... |
11476d6b4f850decd2469d568e70bb3e167dfe8e | update Radio | src/Radio/Radio.js | src/Radio/Radio.js | /**
* @file Radio component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import IconButton from '../IconButton';
import Theme from '../Theme';
import TipProvider from '../TipProvider';
import ... | JavaScript | 0 | @@ -5381,20 +5381,18 @@
value:
-null
+''
,%0A ch
|
9052f1a56398a6aab1679f8c72041dfe567cfd60 | Remove flow specific definitions for now | src/React/index.js | src/React/index.js | /* @flow */
import React from 'react'
import {
assoc,
assocPath,
curry,
merge,
prop,
} from 'ramda'
import isValid from '../utils/isValid'
import createErrorComponent from './createErrorComponent'
import createValidation from '../createValidation'
// default ErrorComponent
const DefaultErrorComponent = ({ e... | JavaScript | 0 | @@ -376,106 +376,8 @@
v%3E%0A%0A
-type ReactComponent%3CA%3E = (props: A) =%3E ?React$Element%3Cany%3E %7C Class%3CReact$Component%3Cany, A, any%3E%3E%0A%0A
func
@@ -569,43 +569,11 @@
%0A):
-Class%3CReact$Component%3Cany, *, any%3E%3E
+any
%7B%0A
@@ -972,16 +972,17 @@
form: %7B%7D
+,
%0A %7D%0A%0A
|
9e454d150aa2190e085f5ee545a51cdd59795fb0 | Add skill store | src/components/pool/pool-store.js | src/components/pool/pool-store.js | import resourceIndex from 'components/pool/resource-index';
export default {
state: {
resources: [],
filter: '',
},
mutations: {
ADD_RESOURCE: (state, action) => {
state.resources.push(action.resource);
resourceIndex.add(action.resource);
},
REMOVE_RESOURCE: (state, action) => {
... | JavaScript | 0.000016 | @@ -1,65 +1,4 @@
-import resourceIndex from 'components/pool/resource-index';%0A%0A
expo
@@ -40,16 +40,32 @@
es: %5B%5D,%0A
+ skills: %5B%5D,%0A
filt
@@ -184,236 +184,908 @@
- resourceIndex.add(action.resource);%0A %7D,%0A%0A REMOVE_RESOURCE: (state, action) =%3E %7B%0A state.resources = sta... |
64c94537e07b7c7aca185e8e42b4b6b62189df0f | Fix tracking issue where ‘/search’ was being fire off twice. - This would fire off the trackInitialPage initially, and then once the component mounts it calls this.search which fires off dispatch(replace), which then fires off another page tracking call. The componentDidMount() method doesn’t (on appearance) seem 100% ... | src/containers/SearchContainer.js | src/containers/SearchContainer.js | import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { replace } from 'react-router-redux'
import shallowCompare from 'react-addons-shallow-compare'
import debounce from 'lodash/debounce'
import get from 'lodash/get'
import { selectIsLoggedIn } from '../selectors/authenticati... | JavaScript | 0 | @@ -2163,135 +2163,8 @@
%7D%0A%0A
- componentDidMount() %7B%0A const %7B terms %7D = this.props%0A const %7B type %7D = this.state%0A this.search(%7B terms, type %7D)%0A %7D%0A%0A
sh
|
2e57d816c92021b9b7eb1e739a41df755f9171fe | Handle the new promotions from the latest merge | src/containers/SearchContainer.js | src/containers/SearchContainer.js | import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { replace } from 'react-router-redux'
import { debounce, get, isEqual } from 'lodash'
import { updateQueryParams } from '../helpers/uri_helper'
import { searchForPosts, searchForUsers } from '../actions/search'
import { LOG... | JavaScript | 0 | @@ -305,156 +305,8 @@
ch'%0A
-import %7B LOGGED_IN_PROMOTIONS %7D from '../constants/promotions/logged_in'%0Aimport %7B LOGGED_OUT_PROMOTIONS %7D from '../constants/promotions/logged_out'%0A
impo
@@ -350,16 +350,16 @@
acking'%0A
+
import %7B
@@ -1188,16 +1188,28 @@
ion, gui
+, promotions
%7D = sta
@@ -1366,24 +1... |
f5993e3d9d3040de7c5e0715089c985de3c484e5 | Clean up mapstatetoprops | src/containers/VideosContainer.js | src/containers/VideosContainer.js | import { connect } from 'react-redux'
import Videos from '../components/Videos'
import { fetchMostPopular } from '../actions'
import React, { Component, PropTypes } from 'react'
import LeftNav from 'material-ui/lib/left-nav'
class VideosContainer extends Component {
render() {
const { items, categoryItems } = th... | JavaScript | 0.00003 | @@ -1003,18 +1003,17 @@
deos
-%5B'
+.
trending
'%5D %7C
@@ -1008,18 +1008,16 @@
trending
-'%5D
%7C%7C %7B is
@@ -1094,10 +1094,9 @@
ries
-%5B'
+.
cate
@@ -1105,10 +1105,8 @@
ries
-'%5D
%7C%7C
|
39bec6a6c5dbb091eae4f24a509ee614dc54c72a | Remove trailing whitespace | src/TcpPolyfill.js | src/TcpPolyfill.js | import blobToBuffer from 'blob-to-buffer';
import EventEmitter2 from 'eventemitter2';
let tcpPolyfillOptions = {
path: '/',
secure: false,
wsProtocols: undefined,
simulatedLatencyMs: undefined,
};
const notImpl = name => () => {
throw new Error('Not implemented in TcpPolyfill: ' + name);
};
export function... | JavaScript | 0.999999 | @@ -1810,33 +1810,32 @@
nt per:%0A //
-
%0A // https:
@@ -1924,33 +1924,32 @@
rfc3864%0A //
-
%0A // We che
@@ -2034,17 +2034,16 @@
//
-
%0A /
|
4d7fe2a03d6e0fcf210a079a5141b95c44fa4b3f | Update Weather_App.js | src/Weather_App.js | src/Weather_App.js | function getResult(callback, parameters) {
parameters.lat = 48.856614;
parameters.lng = 2.352221;
var action_module = require('./Google_Geocoding_App.js');
action_module.getResult(function(result) {
console.log("Weather -> Geocode : " + result);
parameters = result;
if(para... | JavaScript | 0.000002 | @@ -323,28 +323,8 @@
ters
-.lat&¶meters.lng
)%7B%0A
|
066c7189c67a2d51b23fd24bd7fd5297b66c07e1 | Update str_replace.js | functions/strings/str_replace.js | functions/strings/str_replace.js | function str_replace(search, replace, subject, count) {
// discuss at: http://phpjs.org/functions/str_replace/
// original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// improved by: Gabriel Paderni
// improved by: Philip Peterson
// improved by: Simon Willison (http://simonwillison.net)
// imp... | JavaScript | 0.000003 | @@ -1482,24 +1482,27 @@
: 'xSyFxSyF'
+ //
cnt = 0 (in
@@ -1549,16 +1549,19 @@
SyFxSyF'
+ //
cnt = 4
|
b808db16c28e7954106b789ebb2d7bac61b0785c | Fix unquote bug under firefox. | scripts/plugins/jquery.popline.blockquote.js | scripts/plugins/jquery.popline.blockquote.js | /*
jquery.popline.blockquote.js 0.1.0-dev
Version: 0.1.0-dev
Updated: Aug 11th, 2014
(c) 2014 by kenshin54
*/
;(function($) {
var quoteUtils = function() {
if ($.popline.utils.browser.ie) {
return {
quote: function() {
document.execCommand('indent');
},
unquote: ... | JavaScript | 0 | @@ -130,16 +130,631 @@
n($) %7B%0A%0A
+ var firefoxUnquote = function() %7B%0A var focusNode = $.popline.utils.selection().focusNode();%0A var node = $.popline.utils.findNodeWithTags(focusNode, 'BLOCKQUOTE');%0A var range = $.popline.utils.selection().range();%0A var startContainer = range.startContainer,... |
c09680924773dadd5f6848b7a930fe14da949ffe | Use passed context to create session context | src/foam/nanos/session/Session.js | src/foam/nanos/session/Session.js | /**
* @license
* Copyright 2017 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.session',
name: 'Session',
javaImports: [
'java.util.Date'
],
properties: [
{
class: 'String',
name: 'id',
javaFactory: 'ret... | JavaScript | 0 | @@ -1195,55 +1195,129 @@
-javaFactory: 'return foam.core.EmptyX.instance(
+// Put a null user to prevent sytem user from leaking into subcontexts%0A javaFactory: 'return getX().put(%22user%22, null
).pu
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.