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 |
|---|---|---|---|---|---|---|---|
a593a8475d12c6e04f5dfffe25ac4a3a63237513 | Update frolli.js | corse2/frolli.js | corse2/frolli.js | frolli.innerHTML = "Presto in arrivo nuovo materiale video riguardante Frolli"
bacheca.innerHTML = "<iframe width=\"100%\" height=\"300\" src=\"https://www.youtube.com/embed/Rt_d5rQ13V0\" frameborder=\"0\" allowfullscreen></iframe><br>Un video sul bullismo che ci è stato segnalato dalla prof. Anna Finamore che ringrazi... | JavaScript | 0 | @@ -99,228 +99,58 @@
%22%3Ci
-frame width=%5C%22100%25%5C%22 height=%5C%22300%5C%22 src=%5C%22https://www.youtube.com/embed/Rt_d5rQ13V0%5C%22 frameborder=%5C%220%5C%22 allowfullscreen%3E%3C/iframe%3E%3Cbr%3EUn video sul bullismo che ci %C3%A8 stato segnalato dalla prof. Anna Finamore che ringraziamo.
+mg src='sportel... |
1ffd0169c022531f50ca727442be21304ffea84f | Make "on" method chainable | jquery.uvalidator.skin.js | jquery.uvalidator.skin.js | /*jslint browser: true*/
(function ($) {
"use strict";
var skins = {},
defaultProto;
function isFunction(func) {
return typeof func === 'function';
}
defaultProto = {
/**
* @method setForm
* @property {jQueryObject} form
* @protected
*/
... | JavaScript | 0.000859 | @@ -1914,16 +1914,41 @@
ents));%0A
+ return this;%0A
|
6470c541d8089afcf9ee7f610729dd5308dbb9f8 | Clean up | stroom-ui/src/components/SearchBar/SearchBar.js | stroom-ui/src/components/SearchBar/SearchBar.js | import React from 'react';
import PropTypes from 'prop-types';
import {
Container,
Input,
Button,
Checkbox,
Popup,
Grid,
TextArea,
Form,
Message,
} from 'semantic-ui-react';
import { compose, withState } from 'recompose';
import { connect } from 'react-redux';
import {
ExpressionBuilder,
actionCr... | JavaScript | 0.000002 | @@ -1640,24 +1640,120 @@
arch
-Button = %3CButton
+IsInvalid = searchStringValidationMessages.length %3E 0;%0A const searchButton = %3CButton disabled=%7BsearchIsInvalid%7D
%3ESea
@@ -1970,32 +1970,77 @@
%3CButton%0A
+ disabled=%7BsearchIsInvalid%7D%0A
@@ -2689,51 +2689,8 ... |
acf5b2423712cf61b56dacda7d9f12248d5790c5 | Add clear glass pane, and craft glass blocks to get it | glass.js | glass.js | 'use strict';
var ItemPile = require('itempile');
var ucfirst = require('ucfirst');
module.exports = function(game, opts) {
return new GlassPlugin(game, opts);
};
module.exports.pluginInfo = {
loadAfter: ['voxel-registry', 'voxel-use']
};
function GlassPlugin(game, opts) {
this.registry = game.plugins.get('vox... | JavaScript | 0 | @@ -233,16 +233,33 @@
xel-use'
+, 'voxel-recipes'
%5D%0A%7D;%0A%0Afu
@@ -533,24 +533,89 @@
xel-use');%0A%0A
+ this.recipes = game.plugins.get('voxel-recipes'); // optional%0A%0A
this.color
@@ -1723,24 +1723,256 @@
blocks?%0A %7D%0A
+ this.registerPane(''); // clear%0A%0A if (this.recipes) %7B%0A this.reci... |
c7dc09b335c4b4c572ec3910da25976e2ebb881b | Add information about vehicle data to popup | script.js | script.js | $(function() {
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
});
var wsUri = 'ws://busdrone.com:28737/';
var map = L.map('map', {
center: [47.6210, -122.3328],
zoom: 13,... | JavaScript | 0 | @@ -229,16 +229,155 @@
737/';%0A%0A
+ var templates = %7B%0A table: '%3Ctable%3E%3Ctbody%3E%7Bbody%7D%3C/tbody%3E%3C/table%3E',%0A row:'%3Ctr%3E%3Cth%3E%7Bkey%7D%3C/th%3E%3Ctd%3E%7Bvalue%7D%3C/td%3E%3C/tr%3E'%0A %7D;%0A%0A
var
@@ -1327,24 +1327,283 @@
(vehicle) %7B%0A
+ var body =... |
86670e41fb995fc91169656350d6642920034795 | Set context to skin instance on methods | jquery.uvalidator.skin.js | jquery.uvalidator.skin.js | /*jslint browser: true*/
(function ($) {
"use strict";
var skins = {},
messages = {},
defaultProto;
function isFunction(func) {
return typeof func === 'function';
}
defaultProto = {
/**
* @method setForm
* @property {jQueryObject} form
* @pro... | JavaScript | 0.005162 | @@ -197,16 +197,103 @@
%0A %7D%0A%0A
+ function toArray(thing) %7B%0A return Array.prototype.slice.call(thing);%0A %7D%0A%0A
defa
@@ -2036,34 +2036,15 @@
at,
+to
Array
-.prototype.slice.call
(arg
@@ -4606,28 +4606,205 @@
class =
-defaultProto
+%7B%7D;%0A $.each(defaultProto, function ... |
2407370b1cc92e626918c1f33c35f231ccea07f5 | add link to about | src/header.js | src/header.js | import React, { Component } from 'react';
import { Link } from 'react-router';
import Home from './home';
export default class Header extends Component {
render() {
return (
<header>
<div id="site-name">
<Link to='home'>{this.props.name}</Link>
</div>
<nav>
<a hr... | JavaScript | 0 | @@ -98,16 +98,45 @@
./home';
+%0Aimport About from './about';
%0A%0Aexport
@@ -334,34 +334,39 @@
%0A %3C
-a href=%22#%22
+Link to='about'
%3E%7Bthis.props
@@ -370,25 +370,28 @@
ops.about%7D%3C/
-a
+Link
%3E%0A
|
c13d487805213b2cf1105ecdd6cba3be8d02bb11 | KILL SEEKS UNDRESCORE WITH FIRE TOO | client/src/components/SeekCard.js | client/src/components/SeekCard.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
Link,
withRouter,
propTypes as routerPropTypes,
} from 'react-router-dom';
import Radium, { Style } from 'radium';
import {
Card,
CardActions,
CardHeader,
CardTitle,
CardText,
} from 'material... | JavaScript | 0 | @@ -5031,17 +5031,16 @@
eyId%7D%60%7D%3E
-
%3CFlatBut
@@ -5083,17 +5083,16 @@
link%22 /%3E
-
%3C/Link%3E%0A
|
b47743cadc533bc739b8665801be3762966cbf22 | add missing preventDefault | public/Layout/js/PluginAdministratorPlugin.js | public/Layout/js/PluginAdministratorPlugin.js | /**
* The Initial Developer of the Original Code is
* Tarmo Alexander Sundström <ta@sundstrom.im>
*
* Portions created by the Initial Developer are
* Copyright (C) 2014 Tarmo Alexander Sundström <ta@sundstrom.im>
*
* All Rights Reserved.
*
* Contributor(s):
*
* Permission is hereby granted, free of charge, t... | JavaScript | 0.000002 | @@ -1483,20 +1483,45 @@
unction(
+e
) %7B%0A
+%09%09%09e.preventDefault();%0A%0A
%09%09%09jQuer
|
aa8b1d7777dfdcd355ae68e7e6eb8ed73700ee09 | fix eslint errors | src/Radios.js | src/Radios.js | import React from 'react';
import FormControl from '@material-ui/core/FormControl';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormLabel from '@material-ui/core/FormLabel';
import RadioGroup from '@material-ui/core/RadioGroup';
import Radio from '@material-ui/core/Radio';
import { withSty... | JavaScript | 0.000037 | @@ -1,16 +1,25 @@
+// @flow%0A
import React fro
@@ -18,21 +18,36 @@
eact
+, %7B Component %7D
from
-'
+%22
react
-'
+%22
;%0Aim
@@ -64,25 +64,25 @@
ontrol from
-'
+%22
@material-ui
@@ -98,17 +98,17 @@
mControl
-'
+%22
;%0Aimport
@@ -122,33 +122,33 @@
ntrolLabel from
-'
+%22
@material-ui/cor
@@ -161,25 +1... |
5b0420a15a45852fa7fee46e576bfe342ec24ddd | call for 1 | player.js | player.js | var http = require('http'),
_ = require('underscore');
var ourTeamId = 1;
var extractHandFromGame = function (game_state) {
var hand = [],
me = game_state.players.filter(function (player) {
if (player.id == ourTeamId) return player;
}),
publicCards = game_state.community_ca... | JavaScript | 0 | @@ -1190,24 +1190,8 @@
= 0
-%7C%7C handRank == 1
) %7B%0A
@@ -1233,17 +1233,17 @@
Rank %3E=
-2
+1
&& hand
|
eee8ad222c94a0b829ce42e497bb7d746c2d6f1c | use timeout duration from a variable | src/bots/actions.js | src/bots/actions.js | var template = require('./template.js');
var taskGet = require('./taskGet.js');
var actions = {
capture: function (params) {
log('capture', params.name, 'INFO_BAR');
return casper.capture('./captures/' +
pid + '/' +
params.name);
},
get: function (params) {
v... | JavaScript | 0.000079 | @@ -72,16 +72,45 @@
et.js');
+%0Avar timeoutDuration = 30000;
%0A%0Avar ac
@@ -1763,37 +1763,47 @@
%0A %7D,
-30000
+timeoutDuration
);%0A%0A %7D el
@@ -2038,37 +2038,47 @@
%0A %7D,
-30000
+timeoutDuration
);%0A%0A %7D el
@@ -2311,37 +2311,47 @@
%0A %7D,
-30000
+t... |
811ae1b62a4d0173b7bbd6736793a8a3eb07be62 | Add setUnique function to tableCreator.js | sashimi-webapp/src/database/create/tableCreator.js | sashimi-webapp/src/database/create/tableCreator.js | const constants = require('../constants');
const sqlCommands = require('../sql-related/sqlCommands');
const exceptions = require('../exceptions');
let isTableInitializedForCreation = constants.CONST_TABLE_CREATION_CLOSED;
let sqlCreateTableString = constants.STRING_INITIALIZE;
const stringConcat = function stringCo... | JavaScript | 0.000001 | @@ -2611,16 +2611,517 @@
%7D%0A %7D%0A%0A
+ static setUnique(...uniqueKeys) %7B%0A if (isTableInitializedForCreation) %7B%0A sqlCreateTableString = stringConcat(sqlCreateTableString, 'UNIQUE(');%0A for (let index = 0; index %3C uniqueKeys.length; index += 1) %7B%0A if (index === uniqueKeys.lengt... |
5ca5ef37d2c5b503770b6e8afec63b0067ae9bbb | use property initializers | src/App.js | src/App.js | import React, { Component } from 'react';
import { Grid, Row, Col, Jumbotron, Button } from 'react-bootstrap';
import Step from './Step';
class App extends Component {
constructor(props) {
super(props);
this.state = {authenticated: false};
this.authenticate = this.authenticate.bind(this);
}
authenti... | JavaScript | 0.000001 | @@ -168,56 +168,8 @@
%7B%0A
-constructor(props) %7B%0A super(props);%0A this.
stat
@@ -173,16 +173,21 @@
tate = %7B
+%0A
authenti
@@ -202,20 +202,17 @@
alse
-%7D;%0A this.
+,%0A %7D%0A%0A
auth
@@ -226,59 +226,13 @@
e =
-this.authenticate.bind(this);%0A %7D%0A%0A authenticate()
+() =%3E
%7B... |
2d09f661d027a0b3936bdb8367e4b8fbc50c721a | Fix post mention preview behaviour on mobile | js/forum/src/addPostMentionPreviews.js | js/forum/src/addPostMentionPreviews.js | import { extend } from 'flarum/extend';
import CommentPost from 'flarum/components/CommentPost';
import PostPreview from 'flarum/components/PostPreview';
import LoadingIndicator from 'flarum/components/LoadingIndicator';
export default function addPostMentionPreviews() {
extend(CommentPost.prototype, 'config', funct... | JavaScript | 0 | @@ -553,24 +553,38 @@
.UserMention
+, .PostMention
').each(func
@@ -2155,17 +2155,17 @@
uld be .
-p
+P
ost-body
@@ -3560,13 +3560,18 @@
on('
-click
+touchstart
', e
|
54931a93c31f751ed07cd46ab415022fd5a869ad | update gluon to enable require | gluon.js | gluon.js | var Gluon = {
parseOptions: function(options){
if (!options){
options = {};
}
if (!options.ignoreList){
options.ignoreList = [];
}
if (options.sessionId === undefined){
options.sessionId = "gluon";
}
return options;
},
formatName : function(name){
name = name[0].toUpperCase() + name.slice(1... | JavaScript | 0 | @@ -3914,8 +3914,106 @@
bj;%0A%09%7D%0A%7D
+%0A%0Aif (global)%7B%0A%09global.Gluon = Gluon;%0A%7D%0A%0Aif (module && module.exports)%7B%0A%09module.exports = Gluon;%0A%7D
|
2ee0e8161b64fb4e65dac43bd799bb624def932a | fix #3 ウィンドウサイズ変更への対応 | js/app/content/handler.js | js/app/content/handler.js | (function(){
const trailCanvas = new TrailCanvas("gestureTrailCanvas", "1000000");
const contentScripts = new ContentScripts(trailCanvas);
var nextMenuSkip = false;
/**
* 画面表示をすべてクリア
*/
const clearAllDisplay = function () {
if (trailCanvas) {
trailCanvas.clearCanvas();
const canvasId = trailCanvas.g... | JavaScript | 0 | @@ -1250,32 +1250,138 @@
nse) %7B%7D);%0A%09%7D);%0A%0A
+%09$(window).on('resize', () =%3E %7B%0A%09%09trailCanvas.setCanvasSize(window.innerWidth, window.innerHeight);%0A%09%7D);%0A%0A
%09$(document).on(
|
fa2aa6448ced4389348ca8b485b86f17dd0dffca | Add more flexible entity filter function | src/scene.js | src/scene.js | /**
* Created by faide on 4/21/2015.
*/
export default class Scene {
constructor(id = `scene_${Date.now().toString()}`,
entities = [], map = null) {
"use strict";
this._name = id;
this._id = Symbol(this.name);
this.__entities = entities;
this.__m... | JavaScript | 0.000001 | @@ -1013,16 +1013,26 @@
cb, lock
+_or_filter
, thisAr
@@ -1075,31 +1075,75 @@
let
-entities = this.
+filter = (typeof lock_or_filter === 'function') ? lock_or_
filter
-(
+ :
(e)
@@ -1159,23 +1159,76 @@
lock
-));%0A let
+_or_filter),%0A entities = this.filter(filter),%0A
e =
|
ece22025bee18858284d5f2c198c4ad69ec0c5a4 | complete testcase of split | test/collection_split.test.js | test/collection_split.test.js | /**
* Copyright (C) 2015 SequoiaDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | JavaScript | 0.000002 | @@ -3208,24 +3208,159 @@
;%0D%0A %7D);%0D%0A%0D%0A
+ it('wait for 10s', function(done) %7B%0D%0A this.timeout(11000);%0D%0A setTimeout(function () %7B%0D%0A done();%0D%0A %7D, 10000);%0D%0A %7D);%0D%0A%0D%0A
it('activa
@@ -4461,33 +4461,33 @@
ndition = %7Bage:
-3
+1
0%7D;%0D%0A var spl
@@ -45... |
e4c53f6bfc17ad0f5f8a9344a6b13401ae7f0417 | Fix incorrect class | src/client/react/stages/RegistrationClosed/pages/Home/index.js | src/client/react/stages/RegistrationClosed/pages/Home/index.js | import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { autobind } from 'core-decorators';
import { Spinner, Button } from '@blueprintjs/core';
import { gql, graphql, withApollo } from 'react-apollo';
import TeamPanel from './TeamPanel';
import { saveTeamInfo ... | JavaScript | 0.000023 | @@ -2636,20 +2636,20 @@
t-small
-team
+info
-loading
|
bac5f050f684a8f88581ec357c75a60baea41941 | fix bad if (git --git-dir=/home/agasca/src/nimoy/.git push ghub masterkey) statement | _bricoleur.js | _bricoleur.js | var through = require('through')
module.exports = function Bricoleur (multiLevel) {
var interface = through(function Write (d) { // single filter function
// user
// config
// lib/index
if (d.key) { // look at keyspace first
var parts = d.key.split(':')
var name = parts[0... | JavaScript | 0.000206 | @@ -77,16 +77,26 @@
Level) %7B
+%0A var cvs
%0A%0A var
@@ -139,140 +139,120 @@
d) %7B
- // single filter function%0A %0A // user %0A %0A // config%0A %0A // lib/index%0A%0A if (d.key) %7B // look at keyspace first
+%0A if (!d.key) %7B %0A console.error('bricoleur: unknown input: '+JSON... |
949a4ad6c171c13d9e476c172ed1d31da41980b0 | Stop state was being set when user navigated away from dashboard | src/client/react/stages/RegistrationClosed/pages/Home/index.js | src/client/react/stages/RegistrationClosed/pages/Home/index.js | import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { autobind } from 'core-decorators';
import { Spinner, Button } from '@blueprintjs/core';
import { gql, graphql, withApollo } from 'react-apollo';
import TeamPanel from './TeamPanel';
import { saveTeamInfo ... | JavaScript | 0 | @@ -1184,17 +1184,122 @@
alse%0A%09%7D%0A
-%09
+%0A%09componentDidMount() %7B%0A%09%09this._mounted = true;%0A%09%7D%0A%0A%09componentWillUnmount() %7B%0A%09%09this._mounted = false;%0A%09%7D%0A
%0A%09refetc
@@ -1334,16 +1334,35 @@
(() =%3E %7B
+ if (this._mounted)
this.se
@@ -1533,24 +1533,43 @@
lt) =%3E %7B%0A%... |
c7782dc8644dce4e391ade915b85e8f072b4e015 | fix analyse JS boot | ui/analyse/src/boot.js | ui/analyse/src/boot.js | var defined = require('common').defined;
module.exports = function(element, cfg) {
var data = cfg.data;
lichess.openInMobileApp('/analyse/' + data.game.id);
var $watchers = $('#site_header div.watchers').watchers();
var analyse, $panels;
lichess.socket = lichess.StrongSocket(
data.url.socket,
data.pl... | JavaScript | 0.000001 | @@ -1905,16 +1905,37 @@
chart =
+ window.Highcharts &&
$timeCh
|
8f34cea22d889d33aa5c9c9c7414b0bd2b77814b | Update create-check modal controller to use the new checks api | ui/assets/js/controllers/modals/create-check.js | ui/assets/js/controllers/modals/create-check.js | export default ['$scope', '$http', '$uibModalInstance', function ($scope, $http, $uibModalInstance) {
$scope.ok = () => {
$http
.post('/api/projects', {
project_id: $scope.$parent.$id,
name: $scope.name
})
.then(res => {
$uibModalInstance.close(res.data.data)
})
... | JavaScript | 0 | @@ -150,16 +150,13 @@
api/
-projects
+check
', %7B
@@ -248,24 +248,74 @@
en(res =%3E %7B%0A
+ console.log('create check response', res)%0A
$uib
|
cdeab34518e1ec03d9c431e07956d91a127a2ebf | remove unwanted reference to middleware | app/Http/kernel.js | app/Http/kernel.js | 'use strict'
const Middleware = use('Middleware')
/*
|--------------------------------------------------------------------------
| Global Middleware
|--------------------------------------------------------------------------
|
| Global middleware are executed on every request and must be defined
| inside below array.... | JavaScript | 0.000002 | @@ -795,45 +795,8 @@
= %7B%0A
- 'auth': 'App/Http/Middleware/Auth'%0A
%7D%0A%0A/
|
7f70e640cb7f121c4ff973052d1353b563c50fc9 | Revert "Pin chrome to version 40" (see #868) | etc/protractorConfSauce.js | etc/protractorConfSauce.js | var exec = require("sync-exec");
var fs = require("fs");
var ini = require("ini");
var pr = process.env.TRAVIS_PULL_REQUEST;
var name = ((pr === "false") ? "" : "#" + pr + " ") + process.env.TRAVIS_COMMIT;
exports.config = {
suites: {
core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Sp... | JavaScript | 0 | @@ -500,33 +500,8 @@
e%22,%0A
- %22version%22: %2240%22,%0A
|
e7e8b2e712d5d7b3fcc5df619b96e313a6938371 | Update function show in BCBProcess | js/myapp/bcb-process.js | js/myapp/bcb-process.js |
class BCBProcess extends CommonProcess {
constructor(
_initSetting = {
NAME: `${Project.NAME} Process`
}
) {
super(_initSetting);
this.run();
}
run() {
this.initContent();
this.createDesc();
BCBProcess.initPopover();
this.initController();
this.show();
}
... | JavaScript | 0 | @@ -2782,14 +2782,67 @@
n(300);%0A
+ Log.log();%0A Log.logClass(this.NAME, 'Start');%0A
%7D%0A%7D%0A
|
929a164c84f1baf9cff005095e282768e40a31f0 | add temporary test to output computed style defaults | test/core/constructor.spec.js | test/core/constructor.spec.js | import ScrollReveal from '../../src/instance/constructor';
describe('ScrollReveal', () => {
describe('Constructor', () => {
it('should return a new instance with `new` keyword', () => {
const result = new ScrollReveal();
expect(result).to.exist;
});
it('should return a new instance without `new` keywo... | JavaScript | 0 | @@ -88,16 +88,323 @@
) =%3E %7B%0A%0A
+%09describe('Output Test', () =%3E %7B%0A%09%09it('should show computed style defaults', () =%3E %7B%0A%09%09%09const computed = window.getComputedStyle(document.documentElement);%0A%09%09%09console.log(%60transition is: $%7Bcomputed.transition%7D%60);%0A%09%09%09console.log(%60t... |
54e91f12a8aa4ac906c4e1dd6f99dfd1519fff58 | remove missing tab | cmail-webadmin/static/js/cmail.js | cmail-webadmin/static/js/cmail.js | var cmail = {
/**
* all routers
*/
inrouter: [
"store",
"redirect",
"handoff",
"drop",
"reject"
],
outrouter: [
"drop",
"any",
"defined",
"handoff",
"reject"
],
modules: [],
module: {
get: function() {
ajax.asyncGet(cmail.api_url + "?get_modules", function(xhr) {
var resp = JSON... | JavaScript | 0.000007 | @@ -1115,18 +1115,8 @@
pop%22
-,%0A%09%09%22test%22
%0A%09%5D,
|
e093866e07e345226ed660835dcc13ba64c134ee | make setup script produce new style ordered inputs | src/setup.js | src/setup.js | 'use strict';
const { Client } = require('roku-client');
const fs = require('fs');
const os = require('os');
const path = require('path');
const deepmerge = require('deepmerge');
const HOMEBRIDGE_CONFIG = path.join(os.homedir(), '.homebridge', 'config.json');
/**
* Generate or merge the configuration for homebridge... | JavaScript | 0 | @@ -530,19 +530,19 @@
nst
-appMap = %7B%7D
+inputs = %5B%5D
;%0A
@@ -645,33 +645,51 @@
-appMap%5Bapp.
+inputs.push(%7B id: app.id,
name
-%5D =
+:
app.
-id
+name %7D)
;%0A
@@ -770,30 +770,30 @@
o =%3E (%7B ip,
-appMap
+inputs
, info %7D));%0A
@@ -816,22 +816,22 @@
((%7B ip,
-appMap
+inputs
, info... |
4927416108772569993b6e0b53dc7c1e006cc99e | Debug code | KitScript.safariextension/scripts/Storage.js | KitScript.safariextension/scripts/Storage.js | /**
* KitScript - A User Script Safari Extension
*
* Storage.js - Javascript file containing storage classes (by Prototype.js)
* used globally in the extension.
*
* @author Seraf Dos Santos
* @copyright 2011-2012 Seraf Dos Santos - All rights reserved.
* @license MIT License
* @version 0.1
*/
var... | JavaScript | 0.000001 | @@ -305,24 +305,118 @@
.1%0A */%0A%0A%0A%0A%0A%0A
+var DODEBUG = 1;%0A%0Avar _l = function (str) %7B%0A%0A if (DODEBUG)%0A console.log(str);%0A%7D%0A%0A%0A%0A%0A
%0Avar SQLStat
@@ -3953,32 +3953,66 @@
%7D%0A %0A
+ _l(_js);%0A %0A
eval
|
c1c1d26c384fd0c78790a28b574ef5ba684ae99f | Fix WebDebug | WebTest/jscript/Init.js | WebTest/jscript/Init.js | IG_WEBSERVICE_DOMAIN = "http://localhost:8080";
IG_WEBSERVICE_URL = IG_WEBSERVICE_DOMAIN + "/";
| JavaScript | 0.000005 | @@ -39,16 +39,25 @@
ost:8080
+/WebDebug
%22;%0AIG_WE
|
ff12e07c14f07429266c8509361216e1ad272b58 | Add missing blueprint dependency | blueprints/ember-frost-popover/index.js | blueprints/ember-frost-popover/index.js | module.exports = {
description: '',
normalizeEntityName: function () {},
/**
Installs specified packages at the root level of the application.
Triggered by 'ember install <addon name>'.
@returns {Promise} package names and versions
*/
afterInstall: function () {
return this.addAddonsToProject... | JavaScript | 0.000003 | @@ -334,16 +334,70 @@
ages: %5B%0A
+ %7Bname: 'ember-frost-core', target: '0.29.1'%7D,%0A
|
5f47c29efab36c928c7fb53feef7656ad51cfb42 | fix #97 set parser limit to 50mb to work around the problem first | server/app.js | server/app.js | 'use strict';
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var app = express();
// view engine setup
app.s... | JavaScript | 0 | @@ -550,16 +550,31 @@
er.json(
+%7Blimit: '50mb'%7D
));%0Aapp.
@@ -600,16 +600,30 @@
ncoded(%7B
+limit: '50mb',
extende
@@ -630,17 +630,16 @@
d: false
-
%7D));%0Aapp
|
42150f39359c81369c0eab5cc9d9b8682db7de61 | Should be fine | app/api/img-sal.js | app/api/img-sal.js | 'use strict';
var Search = require('bing.search');
module.exports = function(app, History) {
app.route('/latest')
// Retrieve most recent searches
.get(getHistory);
app.get('/:query', handlePost);
function handlePost(req, res) {
// Get images and save query and date.
var query = req.params.quer... | JavaScript | 0.998594 | @@ -600,20 +600,16 @@
;%0A %7D%0A
-
%0A //
@@ -1342,16 +1342,97 @@
ry.find(
+%7B%7D, null, %7B%0A %22limit%22: 10,%0A %22sort%22: %7B%0A %22when%22: -1%0A %7D%0A %7D,
function
@@ -1440,32 +1440,32 @@
err, history) %7B%0A
-
if (err) r
@@ -1553,17 +1553,16 @@
function
-
... |
9f9240521f77426b7abe19f9a5d80d0b9334c8e1 | Check if the inputs are filled | components/BufferLayer.js | components/BufferLayer.js | /*
* Copyright (C) 2012 B3Partners B.V.
*
* This program 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) any later version.
*
* This program is d... | JavaScript | 0.000001 | @@ -3389,32 +3389,79 @@
ius.getValue();%0A
+ if(layer != null && radius != %22%22)%7B%0A
layer.se
@@ -3501,24 +3501,25 @@
e);%0A
+%7D
%0A %7D,%0A
@@ -3583,32 +3583,63 @@
box.getValue();%0A
+ if(layer != null)%7B%0A
layer.re
@@ -3667,22 +3667,32 @@
ions.name);%... |
ad3f82743d41d51febbe25316e5695a7a8e08098 | change jump animation | example/billd/js/Player.js | example/billd/js/Player.js | (function(win){
var ns = FL.ns("billd");
FL.import(FL, this, "Utils, MovieClip, Keyboard");
var speed1 = 1;
var speed2 = 2.5;
var Player = ns.Player = function()
{
MovieClip.apply(this, arguments);
this.action = "stand2";
this.time = 0;
this.pos = new Vector();
this.v = new Vector();
this.a = n... | JavaScript | 0.000001 | @@ -1780,53 +1780,8 @@
%0A%09%09%09
-if(this.v.y %3E 0) this.play(%22jump1%22);%0A%09%09%09else
this
@@ -1794,17 +1794,16 @@
%22jump2%22)
-;
%0A%09%09%7D%0A%09%09e
|
898e1a6cb8b1b1609158ea01cc03b23d0143cd03 | fix a bug where wallpaper preview image would blink needlessly | sources/options_ui/js/new_tab/wallpaper/preview.js | sources/options_ui/js/new_tab/wallpaper/preview.js | {
// This will contain DOM elements proceeding a call to initialize().
const DOM =
{
urls: null,
preview_image: null,
preview: null,
};
// Gets the line containing current selection end.
function get_selected_url()
{
const text = DOM.urls.value,
... | JavaScript | 0.000001 | @@ -923,24 +923,129 @@
%7D%0A
+%0A const url = get_selected_url();%0A if (url === DOM.preview_image.src) %7B return; %7D%0A%0A
@@ -1118,16 +1118,18 @@
ut(() =%3E
+ %7B
DOM.pre
@@ -1145,34 +1145,22 @@
e.src =
-get_selected_url()
+url; %7D
, 500);%0A
|
d08c17283924810002239efbf9bf914d463db378 | print button now works for dmc as well | app/scripts/vendor/jquery-flot-plugins/jquery.flot.zoombuttons.nens.js | app/scripts/vendor/jquery-flot-plugins/jquery.flot.zoombuttons.nens.js | (function($) {
var options = {
zoombuttons: {
enabled: false
}
};
function init(plot) {
var monthNames = [];
var dayNames = [];
var $buttons;
var fadingIn = false;
var fadingOut = false;
var fadedIn = false;
var moving = fals... | JavaScript | 0 | @@ -4753,24 +4753,147 @@
h-legend');%0A
+ if (legends.length == 0) %7B%0A legends = $('.graph-legend');%0A %7D%0A
|
93a8ce73fac3c3fc837b21f40d6ecbb81ddec89b | Remove Escape support | components/PostActions.js | components/PostActions.js | // @flow
import * as React from 'react';
import { View } from 'react-native';
import withTheme, { type Theme } from './core/withTheme';
import { FormattedMessage } from 'react-intl';
import Row from './core/Row';
import Button from './core/Button';
type PostAction =
| {| type: 'EXPAND', value: boolean |}
| {| type... | JavaScript | 0 | @@ -554,165 +554,8 @@
%3E %7B%0A
- handleViewKeyDown = (event: KeyboardEvent) =%3E %7B%0A if (event.key === 'Escape') %7B%0A this.props.onAction(%7B type: 'EXPAND', value: false %7D);%0A %7D%0A %7D;%0A%0A
ha
@@ -855,24 +855,16 @@
%3CView
-%0A
style=%7B
@@ -903,58 +903,8 @@
ons%7D
-%0A ... |
66fcdce93067066c06ec361c139fb3d5ad2e41c4 | Refactor middleware | plugin.js | plugin.js | const format = require('util').format;
const inspect = require('util').inspect;
const Promise = require('bluebird');
const anyRegex = /.*/;
const names = ['nickname', 'username', 'hostname'];
const adminKeys = names.concat('identifiedas');
// Hostmask :: {nickname: String, username: String, hostname: String}
// Respons... | JavaScript | 0.000001 | @@ -938,16 +938,91 @@
nied.');
+%0A const forcedAdminCommands = client.config('admin-commands') %7C%7C %5B%5D;
%0A%0A
@@ -4662,245 +4662,31 @@
-// Is the command defined in the config under 'admin-commands'?%0A var forcedAdminConfigOption = client.config('admin-commands');%0A ... |
c1af463c5f660c094956f7e69637da787a652fb5 | Update config to reflect latest name changes | scripts/lint-css.js | scripts/lint-css.js | import fs from "fs"
import glob from "glob"
import logWarnings from "postcss-log-warnings"
import postcss from "postcss"
import stylelint from "stylelint"
const files = glob.sync(process.env.npm_package_config_src, "utf8")
files.forEach(function (file) {
let css = fs.readFileSync(file, "utf-8")
postcss([
sty... | JavaScript | 0 | @@ -1213,124 +1213,8 @@
%5D,%0A
- %22declaration-comma-space-after%22: %5B 2, %22always%22 %5D,%0A %22declaration-comma-space-before%22: %5B 2, %22never%22 %5D,%0A
@@ -2410,54 +2410,8 @@
2,%0A
- %22property-value-no-vendor-prefix%22: 2,%0A
@@ -3261,24 +3261,175 @@
%22double%22 %5D,... |
1bd1c9b5b4dbcf7d9491d6d36dac46aa09025a5b | improve code | lib/plugins/user.js | lib/plugins/user.js | /*jslint node: true, nomen: true, unparam: true*/
"use strict";
var _ = require('underscore');
var User = function (nick, client, network) {
this.nick = nick;
this.client = client;
this.network = network;
this.username = '';
this.realname = '';
this.hostname = '';
this.channels = {};
t... | JavaScript | 0.000014 | @@ -225,21 +225,21 @@
his.
-username = ''
+channels = %7B%7D
;%0A
@@ -249,21 +249,16 @@
his.
-realnam
+idl
e =
-''
+0
;%0A
@@ -268,339 +268,193 @@
his.
-hostname = '';%0A this.channels = %7B%7D;%0A this.server = '';%0A this.serverInfo = '';%0A this.away = null;%0A this.account = null;%0A th... |
99f7c0a0d75c967bb9bdc827d331e0cdb66352dd | Fix grunt run check for config file existance | grunt.js | grunt.js | /*global module:false*/
module.exports = function (grunt) {
var fs = require('fs'),
path = require('path'),
exec = require('child_process').exec,
lint = require('./jshint');
// Runs JSBin with local config file.
//
// Config file defaults to config.node.json but can be provided as an
// add... | JavaScript | 0 | @@ -656,63 +656,8 @@
'),%0A
- configExists = fs.statSync(filepath).isFile(),%0A
@@ -797,24 +797,54 @@
-if (configExists
+try %7B%0A if (fs.statSync(filepath).isFile()
&&
@@ -874,24 +874,26 @@
IG) %7B%0A
+
+
process.env.
@@ -917,16 +917,158 @@
lepath;%0A
+ %7D%0A %7D catch ... |
327a8f9b53f32e4d12d1e0af37e911daa95ac7de | Add test of url to middleware provider from topology | spec/javascripts/services/topology_service_spec.js | spec/javascripts/services/topology_service_spec.js | describe('topologyService', function() {
var testService;
var replicator = { id:"396086e5-7b0d-11e5-8286-18037327aaeb", item:{display_kind:"Replicator", kind:"ContainerReplicator", id:"396086e5-7b0d-11e5-8286-18037327aaeb", miq_id:"10"}};
beforeEach(module('ManageIQ'));
beforeEach(inject(function(top... | JavaScript | 0 | @@ -240,16 +240,313 @@
:%2210%22%7D%7D;
+%0A var mw_manager = %7B%0A id: %221%22, item: %7B%0A %22name%22: %22Hawkular%22,%0A %22kind%22: %22MiddlewareManager%22,%0A %22miq_id%22: 1,%0A %22status%22: %22Unknown%22,%0A %22display_kind%22: %22Hawkular%22,%... |
3cb9c2d647451dc870abea7b1d4440d360990013 | version 0.1.1 | src/snake.js | src/snake.js | // base object
var Snake = {
version: "0.1.0",
build: "alpha",
global: this,
config: {},
log: function (msg) {
console.log(msg);
},
debug: false
};
// Prototype functions
Snake.is_array = function (arrayInQuestion) {
return (Object.prototype.toString.call(arrayInQuestion) === '[object Array]');
};
... | JavaScript | 0.000004 | @@ -38,17 +38,17 @@
n: %220.1.
-0
+1
%22,%0A bui
|
9d5371d93b3f353e95849b5c42365adb9ee277b4 | fix roleEmoji command not resolving roles | commands/guild_admin/roleEmoji.js | commands/guild_admin/roleEmoji.js | /**
* @file roleEmoji command
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license GPL-3.0
*/
const emojis = xrequire('./assets/emojis.json');
exports.exec = async (Bastion, message, args) => {
try {
if (!args.role || !(args.emoji || args.remove)) {
/**
* The command was ran with invalid pa... | JavaScript | 0.998487 | @@ -429,24 +429,61 @@
p);%0A %7D%0A%0A%0A
+ args.role = args.role.join(' ');%0A
let role
|
685e0e1d49132c863dec9f563fba4ff375002c64 | add missing semicolon | lib/api-client/resources/deployment.js | lib/api-client/resources/deployment.js | 'use strict';
var AbstractClientResource = require('./../abstract-client-resource');
/**
* Deployment Resource
* @class
* @memberof CamSDK.client.resource
* @augments CamSDK.client.AbstractClientResource
*/
var Deployment = AbstractClientResource.extend();
/**
* Path used by the resource to perform HTTP quer... | JavaScript | 0.000055 | @@ -5427,16 +5427,17 @@
%0A %7D);%0A%7D
+;
%0A%0Amodule
|
b374941f5def7c8214598ab48c04ab46d80b554a | fix Select no context | src/Select.js | src/Select.js | import React, {PropTypes} from 'react';
import {HOC} from 'formsy-react';
import {Select} from 'antd';
function FormsySelect(props) {
if (context.formsyAntd) {
context.formsyAntd.emitError(props.getErrorMessage());
}
return (
<Select
{...props}
value={props.getValue()}
onChange={props.... | JavaScript | 0.000003 | @@ -124,16 +124,25 @@
ct(props
+, context
) %7B%0A if
|
77542a507c6d5f63729135ccf2aaa35323dc28a7 | Add error logging for when we receive redis subscription events after the connection has died | js/server/Connection.js | js/server/Connection.js | jsio('from shared.javascript import Class, bind')
jsio('import shared.keys')
jsio('import shared.mutations')
jsio('import net.protocols.rtjp')
exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) {
this.init = function(id, redisClient) {
supr(this, 'init')
this._id = id
this._redisClient = redisCl... | JavaScript | 0 | @@ -375,24 +375,138 @@
lers()%0A%09%7D%0A%09%0A
+%09this.connectionMade = function() %7B%0A%09%09supr(this, 'connectionMade', arguments)%0A%09%09this._clientConnected = true%0A%09%7D%0A%09%0A
%09this.connec
@@ -525,24 +525,24 @@
unction() %7B%0A
-
%09%09this._log(
@@ -583,16 +583,48 @@
lient')%0A
+%09%09this._clie... |
89458e0c1989849ac96cb0950a4b19d3b1292451 | Split up render method of error message & error icon | components/input/Input.js | components/input/Input.js | import React, { Component, createElement } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import {
IconChevronUpSmallOutline,
IconChevronDownSmallOutline,
IconWarningBadgedSmallFilled,
} from '@teamleader/ui-icons';
import InputMetaPropTypes from './InputMetaPropTypes';
import Coun... | JavaScript | 0.000007 | @@ -3406,21 +3406,28 @@
derError
+Message
() %7B%0A
-
if (
@@ -3538,41 +3538,8 @@
-%3CIconWarningBadgedSmallFilled /%3E
%7Bthi
@@ -3569,16 +3569,201 @@
%3C/p
+%3E%0A );%0A %7D%0A %7D%0A%0A renderErrorIcon() %7B%0A if (this.props.meta && this.props.meta.error) %7B%0A return (%0A ... |
8882e3302a05fd47f682bf9adb3814d4c29b9310 | refactor constructor to pass | test/hyperbahn/constructor.js | test/hyperbahn/constructor.js | 'use strict';
var test = require('tape');
var TChannel = require('tchannel');
var AutobahnClient = require('../index.js');
test('creating AutobahnClient with new', function t(assert) {
var c = new AutobahnClient({
tchannel: TChannel(),
serviceName: 'foo',
callerName: 'foo-test',
h... | JavaScript | 0.000001 | @@ -60,24 +60,22 @@
equire('
-tchannel
+../../
');%0A%0Avar
@@ -75,20 +75,21 @@
);%0A%0Avar
-Auto
+Hyper
bahnClie
@@ -105,16 +105,29 @@
ire('../
+../hyperbahn/
index.js
@@ -146,20 +146,21 @@
reating
-Auto
+Hyper
bahnClie
@@ -210,20 +210,21 @@
c = new
-Auto
+Hyper
bahnClie
@@ -422,36 +422,37 @@
;%0A%0Atest... |
8957b4ed8b454af899d7cae33a865445ec654e16 | Refactor absoluteUrl to allow multiple domains directed to the same server work | Packages/ohif-core/both/utils/absoluteUrl.js | Packages/ohif-core/both/utils/absoluteUrl.js | import { OHIF } from 'meteor/ohif:core';
// Return an absolute URL with the given path by supporting the leading "/"
OHIF.utils.absoluteUrl = function(path) {
if (path) {
// Remove the leading "/"
path = path.replace(/^\//, '');
}
return Meteor.absoluteUrl(path);
}; | JavaScript | 0 | @@ -74,179 +74,509 @@
the
-given path by supporting the leading %22/%22%0AOHIF.utils.absoluteUrl = function(path) %7B%0A if (path) %7B%0A // Remove the leading %22/%22%0A p
+page domain using sub path of ROOT_URL%0A// to let multiple domains directed to the same server work%0AOHIF.utils.absoluteUrl =... |
a442d66aef3fe0dec0e0b55650b7245732dcf15d | Remove unused helper | frontend/src/js/common.js | frontend/src/js/common.js | $.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
if (results == null) {
return null;
} else {
return results[1] || 0;
}
}
Handlebars.registerHelper('times', function(n, block) {
accum = '';
for (i = 0; i < n; ++i)
accum += block.fn(... | JavaScript | 0.000001 | @@ -199,151 +199,8 @@
%0A%7D%0A%0A
-Handlebars.registerHelper('times', function(n, block) %7B%0A accum = '';%0A for (i = 0; i %3C n; ++i)%0A accum += block.fn(i);%0A return accum;%0A%7D);%0A%0A
Hand
|
aaaa8f014addf88ee6cfe42029c54d05231dd22e | Create newRootNode() method | lib/process-tree.js | lib/process-tree.js | // Copyright (c) 2017 The Regents of the University of Michigan.
// All Rights Reserved. Licensed according to the terms of the Revised
// BSD License. See LICENSE.txt for details.
let treeNode = (setUp) => new Promise(
function(resolve, reject) {
let node = {};
let obj = {};
let children = [];
obj.runBef... | JavaScript | 0.000001 | @@ -1434,16 +1434,280 @@
);%0A%7D);%0A%0A
+let newRootNode = (newLogger, setUp) =%3E new Promise(%0A function(resolve, reject) %7B%0A let rootPromise = treeNode(setUp);%0A let logger = newLogger(%7B%7D);%0A%0A rootPromise.then(function(root) %7B%0A logger.storeProcess(root.run(logger));%0A resolve(logger);... |
e05152ca4c1e4db1121b75b21f719f7bab6d7b9f | remove empty line | www/iroot.js | www/iroot.js | var exec = require('cordova/exec');
module.exports = {
isRooted: function(onSuccess, onError) {
exec(onSuccess, onError, 'IRoot', 'isRooted', []);
},
isRootedWithBusyBox: function(onSuccess, onError) {
exec(onSuccess, onError, 'IRoot', 'isRootedWithBusyBox', []);
},
detectRootManage... | JavaScript | 0.999009 | @@ -4161,12 +4161,11 @@
;%0A %7D%0A
-%0A
%7D;%0A
|
6fd70573dd2bba9cd1454d4e5f45a97bdb5c45e6 | Fix JSHint errors. | src/geometry/matrix.js | src/geometry/matrix.js | /**
* Function: VectorMatrixMultiply4x4
* Description: Multiplies a vector with a matrix.
* Parameters:
* vector {number[4]} the vector
* matrix {number[16]} the matrix
* Returns:
* {number[4]} the vector result of the multiplication
*/
JSM.VectorMatrixMultiply4x4 = function (vector, matrix)
{
var result = [];
va... | JavaScript | 0.000001 | @@ -98,17 +98,16 @@
eters:%0A*
-
%09vector
@@ -130,17 +130,16 @@
vector%0A*
-
%09matrix
@@ -174,17 +174,16 @@
turns:%0A*
-
%09%7Bnumber
|
f3cea9aac43d1e244f65749ad8d582b37eb5bd89 | remove useless code (no effect of forcing redrawing) | common/app/js/services-tooltip.js | common/app/js/services-tooltip.js | 'use strict';
/* Services */
angular.module('pali.tooltip', []).
factory('tooltip', ['$rootScope', '$compile', function($rootScope, $compile) {
// init tooltip
var scope = $rootScope.$new(true);
var isMouseInTooltip = false;
scope.onmouseenter = function() {
// mouse enters tooltip
isMo... | JavaScript | 0 | @@ -1666,386 +1666,8 @@
');%0A
- // force browser to update drawing%0A var lastChild = tooltip%5B0%5D.lastChild;%0A if (lastChild.tagName &&%0A lastChild.tagName.toLowerCase() === 'span' &&%0A lastChild.getAttribute('forceUpdate') === 'yes') %7B%0A angular.element(la... |
f3400f096f2e83a9ea18272e6020d654cd7a9191 | fix shouldSample call in express example (#685) | examples/express/tracer.js | examples/express/tracer.js | 'use strict';
const opentelemetry = require('@opentelemetry/api');
// Not functionally required but gives some insight what happens behind the scenes
const { diag, DiagConsoleLogger, DiagLogLevel } = opentelemetry;
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);
const { AlwaysOnSampler } = require('@open... | JavaScript | 0.000001 | @@ -2221,15 +2221,23 @@
id,
-name, k
+spanName, spanK
ind,
|
fb2dc9f2b08ef397f74690beb52c7c59f1346754 | fix drawing shapes while spectating a live game | ui/round/src/ground.js | ui/round/src/ground.js | var Chessground = require('chessground').Chessground;
var isPlayerPlaying = require('game').game.isPlayerPlaying;
var util = require('./util');
var round = require('./round');
var m = require('mithril');
var global3d = !!document.querySelector('#top.is3d');
function makeConfig(ctrl) {
var data = ctrl.data, hooks = ... | JavaScript | 0 | @@ -775,45 +775,8 @@
d',%0A
- viewOnly: data.player.spectator,%0A
|
3ce2d0216116876d1c8c99da115196efd11d2994 | Remove liveText event stream broadcasting | app/core/routes.js | app/core/routes.js | var utils = require("radiodan-client").utils,
logger = utils.logger(__filename);
module.exports = routes;
function routes(app, radiodan, eventStream, bbcServices) {
var avoidPlayer = radiodan.player.get("avoider"),
mainPlayer = radiodan.player.get("main"),
announcePlayer = radiodan.player.get... | JavaScript | 0.000001 | @@ -700,117 +700,8 @@
);%0A%0A
- bbcServices.on('liveText', function (service, data) %7B%0A eventStream.send(data, 'liveText');%0A %7D);%0A%0A
|
88f136dae00c918c4f9374fb15103bafac2f62fb | fix when delete all content in edt.el the doc lost constructure | src/sqedt.js | src/sqedt.js | 'use strict';
require('babel-polyfill')
var utils = require('./utils');
var state = require('./SelectState')
var selectEvent = require('./selectEvent')
var DEFAULT_CONFIG = {};
function Edt(config) {
this.el = config.el;
this.sl = window.getSelection();
this.callbackInChange = (s) => {
console.log('default... | JavaScript | 0 | @@ -980,31 +980,12 @@
br%3E'
- && e.keyCode === 8
) %7B%0A
+
@@ -1127,16 +1127,16 @@
tChild)%0A
-
@@ -1137,32 +1137,199 @@
%7D%0A %7D%0A
+ if(el.innerHTML === '')%7B%0A el.innerHTML = '%3Cdiv class=%22para%22 style=%22text-align:left%22%3E%3Cspan style=%22font-size:16px;color:... |
9562bbbc9d9e35771477321b4e9b494246b16437 | fix docblock | src/Str.js | src/Str.js | import charMap from './charMap';
export class Str {
/**
* Create the Str instance
*
* @param {Str} str
*
* @return {void}
*/
constructor (str) {
this.str = str || '';
}
/**
* Capitalize the first character in a string.
*
* @return {Str}
*/
ucfirst () {
return this.se... | JavaScript | 0.000001 | @@ -104,16 +104,19 @@
am %7BStr
+ing
%7D str%0A
|
643c3c05ce5d5c8b19d21921645028cc90be12ef | add Browserify support | prefix.js | prefix.js | (function(window, angular, undefined) {
| JavaScript | 0 | @@ -1,8 +1,142 @@
+if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) %7B%0A module.exports = 'pouchdb';%0A%7D%0A%0A
(functio
|
d6975c6ac2431c78bd4ad57d00b22deb7ef65a5e | Update path in grunt.js | grunt.js | grunt.js | var path = require( 'path' ), fs = require( 'fs' );
module.exports = function( grunt ) {
var dirs, names, min = {}, cssmin = {},
theme, rootFile, structureFile, themeFile, demosjsFile,
verOfficial, suffix;
dirs = {
output: 'compiled',
temp: 'tmp'
};
verOfficial = grunt.file.read( 'version.txt' ).replace(... | JavaScript | 0.000001 | @@ -822,25 +822,16 @@
%22docs%22,
- %22demos%22,
%22_asset
|
b50787ac7d3c00e774bfaf6f2f61e9a431c9ccc0 | add parameters default values | app/helpers/api.js | app/helpers/api.js | export const callJSONApi = ({endpoint, headers, body}) => {
let params = {
method: endpoint.httpVerb,
headers: headers,
mode: 'cors',
body: body,
timeout: 100
};
return fetch(endpoint.url, params)
.then(response =>
response.json().then(json => ({... | JavaScript | 0.000001 | @@ -1,56 +1,249 @@
-export const callJSONApi = (%7Bendpoint, headers
+//constants%0Aimport %7BAPI_ENDPOINT, APPLICATION_TYPE, METHODS%7D from '../constants/rest'%0A%0Aexport const callJSONApi = (%7Bendpoint = %7Burl: API_ENDPOINT , httpVerb: METHODS.GET%7D, headers = new Headers(%7B'Content-Type': APPLICATION_TYPE.JSON... |
53382b4f6862ba5c42942476af2c4e2d07d4cac9 | Add few more cases | lib/randomObject.js | lib/randomObject.js | var Reflect = require('harmony-reflect');
var Chance = require('chance');
var defaultDictionary = require('./default_dictionary');
Aleph.prototype.toString = function() {
return 'Aleph';
};
Aleph.prototype.inspect = function() {
return "This is Aleph instance";
};
function Dummy() {
}
Dummy.prototype.inspe... | JavaScript | 0.000003 | @@ -617,24 +617,153 @@
ool';%0A %7D%0A
+ if (property.match(/id/i)) %7B%0A return 'natural';%0A %7D%0A if (property.match(/date/i)) %7B%0A return 'date';%0A %7D%0A
// retur
@@ -2660,8 +2660,9 @@
= Aleph;
+%0A
|
6d47514eea0832629e368ae765d6b06813e7c03d | Allow mt_rand() to behave like PHP as far as truncating decimal in min/max arguments (Thanks Kongo!) | functions/math/mt_rand.js | functions/math/mt_rand.js | function mt_rand (min, max) {
// http://kevin.vanzonneveld.net
// + original by: Onno Marsman
// * example 1: mt_rand(1, 1);
// * returns 1: 1
var argc = arguments.length;
if (argc === 0) {
min = 0;
max = 2147483647;
} else if (argc === 1) {
throw new Error(... | JavaScript | 0 | @@ -22,16 +22,17 @@
, max) %7B
+%0D
%0A //
@@ -60,16 +60,17 @@
veld.net
+%0D
%0A //
@@ -98,16 +98,106 @@
Marsman
+%0D%0A // + improved by: Brett Zamir (http://brett-zamir.me)%0D%0A // + input by: Kongo%0D
%0A //
@@ -227,16 +227,17 @@
d(1, 1);
+%0D
%0A //
@@ -254,16 +254,17 @@
rns 1: ... |
83c27a04f24ee05484baeda15062e495b91da882 | Fix task registration | grunt.js | grunt.js | /*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
qunit: {
files: ['test/unit/**/*.html']
},
lint: {
files: ['grunt.js', 'src/**/*.js', 'test**/*.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'lint qunit'
... | JavaScript | 0.000001 | @@ -715,19 +715,8 @@
unit
- concat min
');%0A
|
5ba5eb0e5a4a43645ef1e8c87fe5626c146020dd | Add uglify to gulpfile.js | app/js/gulpfile.js | app/js/gulpfile.js | var gulp = require ('gulp');
gulp.task('default', function() {
console.log('Hello, world!');
}); | JavaScript | 0.000001 | @@ -20,16 +20,51 @@
('gulp')
+,%0A%09uglify = require('gulp-uglify');
;%0A%0Agulp.
@@ -126,8 +126,129 @@
!');%0A%7D);
+%0A %0Agulp.task('compress', function() %7B%0A return gulp.src('lib/*.js')%0A .pipe(uglify())%0A .pipe(gulp.dest('dist'));%0A%7D);
|
4ef668266f3646dafefe63072961ac4cc14f4785 | handle error on readable stream to return connection to pool | src/api.js | src/api.js | /*jslint node : true, nomen: true, plusplus: true, vars: true, eqeq: true,*/
/*
* 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
*
* Un... | JavaScript | 0 | @@ -1606,16 +1606,216 @@
done);%0A
+ stream.once('error', function (err) %7B%0A done(); // close conn on error%0A str.emit('error', err); // emit error.%0A %7D);%0A
|
a0afa2859bcdaac89d0e91ef347dabfcfbb34ce8 | fix tmpDir mistype | lib/report/index.js | lib/report/index.js | var log = require('../logger.js');
var config = require('../config.js');
var pathLib = require('path');
var Hoek = require('hoek');
var spawnValidator = require('gardr-validator');
var os = require('os');
function resolve(url) {
var args = [__dirname, '..', '..'].concat(url.split('/'));
var result = pathLib.jo... | JavaScript | 0.000321 | @@ -1903,17 +1903,17 @@
' %7C%7C tmp
-d
+D
ir === '
|
da30297d06a86ceb699dec4a349e018262d9670b | Add back previousAttributes | src/state.js | src/state.js | import _ from 'underscore';
import Backbone from 'backbone';
import Mn from 'backbone.marionette';
// Manage state for a component.
const State = Mn.Object.extend({
// State model class to instantiate
modelClass: undefined,
// Default state attributes hash
defaultState: undefined,
// Events from my compon... | JavaScript | 0.000006 | @@ -2842,24 +2842,142 @@
es();%0A %7D,%0A%0A
+ // Proxy to model previousAttributes().%0A previousAttributes() %7B%0A return this._model.previousAttributes();%0A %7D,%0A%0A
// Determi
|
298acc337fd2a0652b7f90123703eadb16500dd6 | Remove some commented out code from Atonement Analyzer | src/parser/priest/discipline/modules/core/AtonementAnalyzer.js | src/parser/priest/discipline/modules/core/AtonementAnalyzer.js | import Analyzer, { SELECTED_PLAYER } from "parser/core/Analyzer";
import Events from "parser/core/Events";
import EventEmitter from "parser/core/modules/EventEmitter";
import EventFilter from "parser/core/EventFilter";
import HIT_TYPES from "game/HIT_TYPES";
import { ATONEMENT_DAMAGE_SOURCES } from "../../constants";
... | JavaScript | 0 | @@ -469,18 +469,17 @@
tEmitter
-,
%0A
+
%7D;%0A s
@@ -592,13 +592,13 @@
true
-,
%0A %7D
+;
%0A%0A
@@ -763,17 +763,16 @@
tonement
-,
%0A );%0A
@@ -1621,33 +1621,32 @@
Filter.eventType
-,
%0A %7D);%0A %7D%0A%0A
@@ -2169,53 +2169,8 @@
urn;
-%0A // if (damageEvent.amount === 0) return;
%0A%0A ... |
8de02259247082f17a68699780663168e39827c3 | fix array includes in IE | src/js/aos.js | src/js/aos.js | /**
* *******************************************************
* AOS (Animate on scroll) - wowjs alternative
* made to animate elements on scroll in both directions
* *******************************************************
*/
import styles from './../sass/aos.scss';
// Modules & helpers
import throttle from 'loda... | JavaScript | 0.000001 | @@ -3250,14 +3250,13 @@
%5D.in
-cludes
+dexOf
(doc
@@ -3272,16 +3272,21 @@
dyState)
+ %3E -1
) %7B%0A
|
c69e965449af717698adf01dc4fb126a31b7be05 | Bump babel-preset-cf | generators/babel/index.js | generators/babel/index.js | 'use strict';
var generators = require('yeoman-generator');
var extendObject = require('../../utils/extend-object');
var BABEL_DEV_DEPENDENCIES = {
'babel-core': '^6.0.20',
'babel-cli': '^6.1.1',
'babelify': '^7.2.0',
'babel-preset-cf': '^1.0.1'
};
var NPM_SCRIPTS = {
'build': 'babel src -d lib',
'prepub... | JavaScript | 0 | @@ -248,11 +248,11 @@
'%5E1.
-0.1
+1.0
'%0A%7D;
|
1bc250f3785f99782da45974858649303906d1a0 | Update plugin.js | tooltip/plugin.js | tooltip/plugin.js | /*
* Tooltip Plugin
*
* @author Aliocha Mazurkiewicz <contact@renska.be>
* @version 0.4.3
*/
CKEDITOR.plugins.add('tooltip', {
lang: [
'en', 'fr'
],
afterInit: function(editor) {
CKEDITOR.addCss('.cke_editable .' + editor.config.tooltip_class + '{' + 'cursor:pointer' + '}');
},
init: function(editor) ... | JavaScript | 0.000001 | @@ -3487,18 +3487,20 @@
_tag = '
-em
+span
';%0ACKEDI
|
97c2c30ca38b07cc8dc3470d913f16fa58dbfa0e | Add ability to play all! | script.js | script.js | function playTone (note, octave) {
tones.play(note, octave);
}
function playOne (element, delay, i) {
function play () {
element.className = element.className + " auto-playing";
element.onmouseover();
setTimeout(function () {
element.className = element.className.replace(" auto-playing", "");
... | JavaScript | 0 | @@ -4131,17 +4131,17 @@
istener(
-'
+%22
touchsta
@@ -4146,27 +4146,219 @@
tart
-', triggerMouseOver
+%22, function (e) %7B%0A if (e.touches.length === 1) %7B%0A triggerMouseOver(e)%0A %7D%0A%0A if (e.touches.length === 2) %7B%0A autoPlayAll(60 * 1000 / bpm);%0A %7D%0A%0A if (e.touches.length === 3) %7B%0... |
7eebafa31536f64371ad993d298a0699c3edc0da | remove axios typings as they are included now | generators/techs/index.js | generators/techs/index.js | const fountain = require('fountain-generator');
module.exports = fountain.Base.extend({
configuring() {
this.mergeJson('package.json', {
dependencies: {
axios: '^0.15.3'
},
devDependencies: {
'@types/axios': '^0.14.0'
}
});
if (this.options.js === 'typescript') {
... | JavaScript | 0 | @@ -188,76 +188,8 @@
.3'%0A
- %7D,%0A devDependencies: %7B%0A '@types/axios': '%5E0.14.0'%0A
|
71a17ff7923ce11a624f0eaa923a08d25d3c3ebb | Remove duplicate declaration | src/history/history.js | src/history/history.js | #!/usr/bin/env node
const _ = require('lodash')
const historyData = require('./historyData')
const DateTime = require('dateutils').DateTime
var DateFormat = require('dateutils').DateFormat
var DateLocale = require('dateutils').DateLocale
const format = require('../format')
const rates = require('../rates')
var historyH... | JavaScript | 0.000089 | @@ -344,16 +344,76 @@
y.html')
+%0Aconst times = _.range(60, 230, 5).map(format.formatIsoTime)
%0A%0Amodule
@@ -958,70 +958,8 @@
%7D))%0A
- var times = _.range(60, 230, 5).map(format.formatIsoTime)%0A
@@ -2246,68 +2246,8 @@
%0A%7D%0A%0A
-const times = _.range(60, 230, 5).map(format.formatIsoTime)%0A
var
|
4eeb40ab331f184a1b2932f9492d50ee6f80179b | Replace SIGHUP with SIGINT for windows compatibility | scripts/test-e2e.js | scripts/test-e2e.js | #!/usr/bin/env node
var selenium = require('selenium-standalone');
var cp = require('child_process');
var path = require('path');
var fs = require('fs');
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var webpackConfig = require(path.resolve(__dirname, '..', 'webpack.config.js'... | JavaScript | 0 | @@ -1034,35 +1034,35 @@
mChild.kill('SIG
-HUP
+INT
');%0A return
@@ -1324,35 +1324,35 @@
mChild.kill('SIG
-HUP
+INT
');%0A retu
@@ -1452,11 +1452,11 @@
'SIG
-HUP
+INT
');%0A
|
60fe56700db117968123d1772cd487cffffe429f | Connect to host using JS that works better in Firefox. | app/js/services.js | app/js/services.js | 'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
var pokerAppServices = angular.module('pokerApp.services', []);
pokerAppServices.value('version', '0.1');
pokerAppServices.service('socketService', ['$rootScope', '$timeout', function($rootScope) {
... | JavaScript | 0 | @@ -597,17 +597,35 @@
ect(
-document.
+location.protocol + '//' +
loca
@@ -633,14 +633,12 @@
ion.
-origin
+host
, %7B%0A
|
0881b2774c3eb6b0c2b93243704b85d23ecc86c5 | Add promise for httpRequest. | script.js | script.js | /*
* https://stackoverflow.com/questions/247483/http-get-request-in-javascript
*/
console.log('AAAAAAAA')
var xhr = new XMLHttpRequest();
var wordListURL = 'https://davidruffner.github.io/scrabble-word-finder/resources/enable1-wwf-v4.0-wordlist.txt';
xhr.open('GET', wordListURL, true);
xhr.send();
xhr.addEventListe... | JavaScript | 0 | @@ -3,571 +3,1078 @@
%0A *
-https://stackoverflow.com/questions/247483/http-get-request-in-javascript%0A */%0Aconsole.log('AAAAAAAA')%0Avar xhr = new XMLHttpRequest();%0Avar wordListURL = 'https://davidruffner.github.io/scrabble-word-finder/resources/enable1-wwf-v4.0-wordlist.txt';%0A%0Axhr.open('GET', wordListURL, t... |
f2a22d01c9e6f8acef6ffae80048449d042bae0a | Add a few y-flipped tile coordinates to the check list. | test/source-reproject.test.js | test/source-reproject.test.js | var stream = require('stream');
var test = require('tape');
var _ = require('underscore');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var upload = require('mapbox-upload');
var tm = require('../lib/tm');
var source = require('../lib/source');
var tilelive = require('tilelive');
... | JavaScript | 0 | @@ -4141,16 +4141,194 @@
%5B0,0,0%5D
+,%0A %5B1,1,1%5D,%0A %5B2,3,2%5D,%0A %5B3,7,5%5D,%0A %5B3,7,4%5D,%0A %5B4,15,10%5D,%0A %5B4,15,9%5D,
%0A
@@ -5206,55 +5206,42 @@
t.
-ifError(err);%0A ... |
eb81d77b215ca7732a55adb3e756cb22e86beb2a | Change `Customizer` to adapt to changes in `ConfigurationOptimizer`. | test/specs/customizer.spec.js | test/specs/customizer.spec.js | /*! resol-vbus | Copyright (c) 2013-2014, Daniel Wippermann | MIT license */
'use strict';
var vbus = require('./resol-vbus');
var Customizer = vbus.Customizer;
describe('Customizer', function() {
describe('constructor', function() {
it('should be a constructor function', function() {
... | JavaScript | 0 | @@ -2315,30 +2315,24 @@
ribe('#_
-getInitialLoad
+complete
Configur
@@ -2451,30 +2451,24 @@
perty('_
-getInitialLoad
+complete
Configur
@@ -2737,30 +2737,24 @@
-getInitialLoad
+complete
Configur
@@ -2955,30 +2955,24 @@
omizer._
-getInitialLoad
+complete
Configur
@@ -3014,22 +3014,16 @@
zer.
-getInitia... |
4323ab70e0b16ed21afff77f07bcb111203e6d56 | Add documentation | src/core/command.js | src/core/command.js | export class Command {
get alias() {
return null
}
get commandName() {
return null
}
get description() {
return ''
}
get options() {
return []
}
}
| JavaScript | 0 | @@ -172,11 +172,71 @@
n %5B%5D%0A %7D
+%0A%0A // optional run() method which contains the action logic
%0A%7D%0A
|
d295343080f381bbbeb264c55f6397bb38645087 | Update index.js | givememinionstoo/index.js | givememinionstoo/index.js | 'use strict'; // dont touch
var plugin = []; // dont touch
this.command = []; // dont touch
this.commandName = []; // dont touch
this.gamemodeId = []; // dont touch
this.gamemode = []; // dont touch
this.addToHelp = []; // dont touch
// [General]
this.name = "GiveMeMinionsToo"; // Name of plugin REQUIRED
this.author... | JavaScript | 0.000002 | @@ -1911,16 +1911,18 @@
is.start
+()
%0A conso
|
73aa06d63cf956b212398bace5481ddd754305af | Make a POST request to create a user. | users/users.service.js | users/users.service.js | {
class UsersService {
create(user) {
console.log('CREATED!');
console.log(user);
}
}
angular.module('meganote.users')
.service('UsersService', UsersService);
}
| JavaScript | 0 | @@ -1,10 +1,135 @@
%7B%0A
+ angular.module('meganote.users')%0A .service('UsersService', %5B%0A '$http',%0A 'API_BASE',%0A ($http, API_BASE) =%3E %7B%0A%0A
class
@@ -143,16 +143,20 @@
rvice %7B%0A
+
crea
@@ -176,144 +176,248 @@
+
-console.log('CREATED!');%0A console.log(user);... |
64356f73453c2d20a5096b71ea74b259b4034ee3 | Use lowercase for events. Consistency. Relax. Lowercase DOM onEvents. | src/app.js | src/app.js | module.exports = function (options) {
var model = options.model
var view = options.view
var actions = {}
var effects = options.effects || {}
var reducers = options.update || {}
var subs = options.subscriptions
var router = options.router || Function.prototype
var node
var root
var hooks = merge({
// on... | JavaScript | 0 | @@ -897,83 +897,8 @@
) %7B%0A
-%09%09for (var key in subs) %7B%0A%09%09%09subs%5Bkey%5D(model, actions, hooks.onError)%0A%09%09%7D%0A%0A
%09%09ro
@@ -1165,16 +1165,91 @@
%09%7D%0A%09%09%7D))
+%0A%0A%09%09for (var key in subs) %7B%0A%09%09%09subs%5Bkey%5D(model, actions, hooks.onError)%0A%09%09%7D
%0A%09%7D)%0A%0A%0... |
ec9c83e9a98de6f1da19729407dbf09b5cbfa44f | fix too-common [object Object] stuff in validate-data | scripts/validate.js | scripts/validate.js | #!/usr/bin/env node
const fs = require('fs')
const path = require('path')
const AJV = require('ajv')
const yaml = require('js-yaml')
const get = require('lodash/get')
const memoize = require('lodash/memoize')
const {SCHEMA_BASE} = require('./paths')
function formatError(err, data) {
// format some of the errors from... | JavaScript | 0.000424 | @@ -520,16 +520,44 @@
dValues.
+map(v =%3E JSON.stringify(v)).
join(',
@@ -592,21 +592,37 @@
alue %22$%7B
+JSON.stringify(
value
+)
%7D%22 $%7Berr
|
cdcab34260451419307c6c4f67fca117c99bff09 | Fix token acceptance | src/js/app.js | src/js/app.js | // JS Goes here - ES6 supported
import gotrue from "gotrue-js";
if (document.location.hash) {
const m = document.location.hash.match(/invite_token=([^&]+)/);
if (m) {
document.location.hash = "";
const pw = prompt("Please pick a password")
gotrue.acceptInvite(m[1], pw)
.then(() => { document.loca... | JavaScript | 0.000321 | @@ -32,19 +32,19 @@
%0Aimport
-got
+GoT
rue from
@@ -246,16 +246,49 @@
sword%22)%0A
+ const gotrue = new GoTrue();%0A
gotr
|
60641530bc1bf75e3c759cc64a3194f6c9663c17 | Fix sqlite quotation bug | lib/dialects/sqlite/query-generator.js | lib/dialects/sqlite/query-generator.js | var Utils = require("../../utils")
, util = require("util")
module.exports = (function() {
var QueryGenerator = {
createTableQuery: function(tableName, attributes, options) {
options = options || {}
var query = "CREATE TABLE IF NOT EXISTS <%= table %> (<%= attributes%>)"
, primaryKe... | JavaScript | 0.000006 | @@ -57,16 +57,160 @@
util%22)%0A%0A
+var escape = function(str) %7B%0A if (typeof str == 'string') %7B%0A return %22'%22 + str.replace(/'/g, %22''%22) + %22'%22;%0A %7D else %7B%0A return str;%0A %7D%0A%7D;%0A%0A
module.e
@@ -1726,22 +1726,473 @@
return
-Utils.
+escape((value instanceof Date) ? Utils.toSq... |
2e40a27570977026b1ae1bbb28a920095cfe9248 | Fix issue when refreshed values contains a null key | app/assets/javascripts/dialog_field_refresh.js | app/assets/javascripts/dialog_field_refresh.js | var dialogFieldRefresh = {
listenForAutoRefreshMessages: function(fieldId, callbackFunction) {
window.addEventListener('message', function(event) {
if (event.data.fieldId !== fieldId) {
callbackFunction.call();
}
});
},
refreshCheckbox: function(fieldName, fieldId) {
miqSparkleOn(... | JavaScript | 0.000001 | @@ -1521,24 +1521,59 @@
!== null) %7B%0A
+ if (value%5B0%5D !== null) %7B%0A
if (
@@ -1638,32 +1638,34 @@
()) %7B%0A
+
option += 'selec
@@ -1674,32 +1674,44 @@
d=%22selected%22 ';%0A
+ %7D%0A
%7D%0A
|
d2bd1c01670c6601d5c791649d989781dd6ac9ad | Change json-ld context's scheme to https | script.js | script.js | function format(flat) {
var map = {};
flat.forEach(function(a) {
map[a["@id"]] = a;
});
var ontology = {};
(function(a) {
ontology.version = a["http://www.w3.org/2002/07/owl#versionInfo"][0]["@value"];
ontology.label = a["http://www.w3.org/2000/01/rdf-schema#label"].find(function(a) {
ret... | JavaScript | 0.018347 | @@ -3611,32 +3611,33 @@
@context%22: %22http
+s
://imi.go.jp/ns/
@@ -3705,24 +3705,25 @@
text%22: %22http
+s
://imi.go.jp
|
474b2552fd708ffb6617e71553350cb7731c6a42 | Fix recent crash | server/admin.api.js | server/admin.api.js | const HomebrewModel = require('./homebrew.model.js').model;
const router = require('express').Router();
const Moment = require('moment');
const render = require('vitreum/steps/render');
const templateFn = require('../client/template.js');
const zlib = require('zlib');
process.env.ADMIN_USER = process.env.ADMIN_USER ||... | JavaScript | 0.998357 | @@ -1330,24 +1330,8 @@
(50)
-.distinct('_id')
;%0A%0Ar
|
a15092d03684bb2427bd1910c3f1e956b9019222 | change canvasColor | src/client/GeekUMuiTheme.js | src/client/GeekUMuiTheme.js | 'use strict';
import Log from '../shared/util/Log';
import baseTheme from 'material-ui/lib/styles/baseThemes/lightBaseTheme'; // or darkBaseTheme or lightBaseTheme
import ThemeManager from 'material-ui/lib/styles/theme-manager';
import colors from 'material-ui/lib/styles/colors';
const log = new... | JavaScript | 0.000001 | @@ -2518,35 +2518,32 @@
olors.white,%0A
- //
canvasColor:
@@ -2547,37 +2547,39 @@
colors.
-white
+teal100
,%0A // borderC
|
e4d567c18d9436766459db19a8215638fadea58e | Enable flying | src/js/app.js | src/js/app.js | import 'aframe';
import 'babel-polyfill';
import {Animation, Entity, Scene} from 'aframe-react';
import React from 'react';
import ReactDOM from 'react-dom';
import { rand } from './Helpers/Helpers';
require('aframe-layout-component');
require('aframe-template-component');
import Dancer from './components/Dancer';
impo... | JavaScript | 0.000003 | @@ -987,16 +987,42 @@
a-camera
+ wasd-controls=%22fly: true%22
id=%22pla
|
33cf431add92840632498e73af465fd752688ad9 | Extend timeout on test | test/tests/appupdate.tests.js | test/tests/appupdate.tests.js | var env = require('system').env;
var url = env.ROOT_URL;
if(!url) {
url = "http://localhost:3000"
}
describe("AppUpdate", function() {
before(function() {
casper.start(url);
});
it("should have a global AppUpdate class", function() {
casper.then(function() {
var evalRes = this.evaluate(function(... | JavaScript | 0.000004 | @@ -1713,9 +1713,9 @@
t =
-4
+6
0000
@@ -1837,24 +1837,64 @@
nction () %7B%0A
+ casper.options.waitTimeout = 60000;%0A
casper.t
|
c6e18754987fb34faeeb54d8cbf522adb413c8b0 | Fix style | server/api/index.js | server/api/index.js | const express = require('express')
const router = express.Router()
const shortid = require('shortid')
const data = require('../data')
router.get('/version', async (req, res) => {
try {
res.json({ version: await data.getVersion()})
} catch (e) {
res.status(500).send('Error reading version')
}
})
router.ge... | JavaScript | 0.000001 | @@ -228,16 +228,17 @@
ersion()
+
%7D)%0A %7D c
|
26911a1d826dff2b26c42fe7ed96d1085653c5ff | Fix undefined Japanese (ja) stopwords | lib/stopwords_ja.js | lib/stopwords_ja.js | // Original copyright:
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
the "License... | JavaScript | 0.999999 | @@ -2870,21 +2870,20 @@
ds.%0A
-module.
export
+s.word
s =
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.