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 |
|---|---|---|---|---|---|---|---|
a4a46aef9a958837c026cae957e05f6ff88d02c7 | Set virtual cursor position on click as well as move | unmaze-ui.js | unmaze-ui.js | /* unmaze canvas user interface
Copyright 2017 Mariusz Skoneczko
Licensed under the MIT license
*/
const TILE_SIZE = 20;
const UI_MODE = {
WATCHING: 0,
EDITING: 1
};
const TYPE2COLOR = {};
TYPE2COLOR[MAZE.FREE] = "white";
TYPE2COLOR[MAZE.WALL] = "black";
TYPE2COLOR[MAZE.START] = "yellow";
TYPE2COLOR[MA... | JavaScript | 0 | @@ -1535,26 +1535,30 @@
unction
-move_mouse
+set_cursor_pos
(e) %7B%0A
@@ -1733,24 +1733,75 @@
TILE_SIZE);%0A
+%7D%0A%0Afunction move_mouse(e) %7B%0A set_cursor_pos(e);%0A
render()
@@ -1826,20 +1826,44 @@
le_tile(
+e
) %7B%0A
+ set_cursor_pos(e);%0A
if (
|
d3b48e536f0c0107401ae36d51c93c338844be7c | Remove Edge test from SauceLabs temporarily | karma.ci.conf.js | karma.ci.conf.js | module.exports = function (config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
concurrency: 3,
colors: true,
logLevel: config.LOG_INFO,
files: [
{ pattern: 'src/js/**/*.js' },
{ pattern: 'test/**/*.spec.js' }
],
customLaunchers: {
ChromeHeadlessNoSandbox: {
... | JavaScript | 0 | @@ -384,33 +384,24 @@
%5D%0A %7D,%0A
- /*%0A
'SL_WI
@@ -707,33 +707,24 @@
',%0A %7D,%0A
- */%0A
'SL_WI
@@ -1491,17 +1491,8 @@
%7D,%0A
- /*%0A
@@ -1510,24 +1510,24 @@
_SAFARI': %7B%0A
+
base
@@ -1645,17 +1645,8 @@
%7D,%0A
- */%0A
@@ -1704,16 +1704,... |
a9abdad5bdfdf5f578e93a812b41a092596cf083 | update demo description | examples/direct-calls/index.js | examples/direct-calls/index.js | "use strict";
/**
*
*/
let path = require("path");
let { ServiceBroker } = require("moleculer");
let ApiService = require("../../index");
// Create broker
let broker = new ServiceBroker({
nodeID: "api",
transporter: "NATS",
});
// Load API Gateway
broker.createService(ApiService, {
settings: {
routes... | JavaScript | 0 | @@ -14,16 +14,320 @@
%0A%0A/**%0A *
+ This example demonstrate to lock route aliases to a dedicated nodeID.%0A * The nodeID can be defined in the %60route.callOptions%60.%0A *%0A * Example:%0A *%0A * Call service only on %60node-1%60%0A * %09%09GET http://localhost:3000/node-1/where%0A *%0A * Call service only on %6... |
fc7a3b45f248ffc22f6ea466ef9b2cfa1068c33d | Update unit tests for basic-culture-selector | src/basic-culture-selector/test/basic.tests.js | src/basic-culture-selector/test/basic.tests.js | suite('basic', function() {
this.timeout(2000);
var container = document.getElementById('container');
teardown(function () {
container.innerHTML = '';
});
test('instantiation', function(done) {
var fixture = document.createElement('basic-culture-selector');
container.appendChild(fixture);
... | JavaScript | 0 | @@ -318,13 +318,57 @@
f
-lush(
+ixture.addEventListener('basic-culture-changed',
func
@@ -368,24 +368,29 @@
', function(
+event
) %7B%0A as
@@ -573,24 +573,98 @@
d(fixture);%0A
+ fixture.addEventListener('basic-culture-changed', function(event) %7B%0A
assert.e
@@ -693,24 +693,26 @@
');%0A
+... |
08fa478b9dba6dfd79f88350e221966e8e8e9a26 | Tweak random channel with new suffixes. | src/behaviors/random-channel/random-channel.js | src/behaviors/random-channel/random-channel.js | import Behavior from '../behavior.js';
class RandomChannel extends Behavior {
constructor(settings = {}) {
settings.name = 'Random Channel';
super(settings);
}
initialize(bot) {
super.initialize(bot);
this.scheduleJob('* * * * *', () => {
bot.say(this.settings.sayInChannel, 'Once a minut... | JavaScript | 0 | @@ -31,16 +31,218 @@
ior.js';
+%0Aimport _sample from 'lodash/sample';%0A%0A// Series of ways to end the random channel statement.%0Aconst CHECK_IT_OUT = %5B%0A 'Check it out, yo!',%0A 'Join in on the fun!',%0A 'Come see what you%5C're missing!'%0A%5D;
%0A%0Aclass
@@ -440,19 +440,19 @@
uleJob('
-* *
+0 9
* * *... |
812f07b96c2d05a1aaa0a90bc5a847d3da6bbe7c | add multiple audio source support for TagLoader class. | modules/Preload/TagLoader.js | modules/Preload/TagLoader.js | /**
* @module Preload
* @namespace Preload
*/
var TW = TW || {};
define(['../Utils/inherit', '../Event/EventProvider', '../Utils/Polyfills'], function(inherit, EventProvider) {
TW.Preload = TW.Preload || {};
/**
* TagLoader is a loader using HTML tags. It hides differences between each tags and keep one way
... | JavaScript | 0 | @@ -1332,16 +1332,34 @@
* @param
+ %7BString%7CString%5B%5D%7D
path Ur
@@ -1378,16 +1378,134 @@
ote file
+.%0A%09 * You can pass many urls in an array. In this case, the first compatible url is used (useful for audio loading).
%0A%09 * @pa
@@ -1981,16 +1981,25 @@
%7BString
+%7CString%5B%5D
%7D _path%0A
@@ -33... |
50985a08ed044dfa82b2ebbf0613ab2c3c7f9dc5 | Fix for bug: 667 - fixed the first part of the bug for IE7, where the hight of the box would get smaller every time the hover event being envoked | web/src/main/webapp/js/manage-period/activity-notes.js | web/src/main/webapp/js/manage-period/activity-notes.js | if (!window.SC) { window.SC = { } }
if (!SC.MP) { SC.MP = { } }
Object.extend(SC.MP, {
NOTE_TYPES: $w("details condition labels weight"),
DEFAULT_NOTE_TYPE: "details",
selectDisplayedNotes: function(evt) {
var srcHref;
if (evt && evt.type == 'click') {
srcHref = Event.element(evt).href
} else ... | JavaScript | 0.000003 | @@ -2515,55 +2515,8 @@
box%0A
- var boxHeight = box.getDimensions().height%0A
@@ -2570,53 +2570,8 @@
px%22%0A
- box.style.height = boxHeight + %22px%22%0A %0A
|
d7d6a65a81b50343a5a09856a3e622c7ec018d31 | Update right button behavior to link to add item page. | frontend/src/App.js | frontend/src/App.js | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image
} from 'react-native';
import firebase from 'firebase';
import GlobalFont from 'react-native-global-font';
import { Header, Footer, ItemsList, Spinner } from './components/common';
import AddItem from './components/A... | JavaScript | 0 | @@ -282,52 +282,8 @@
n';%0A
-import AddItem from './components/AddItem';%0A
impo
@@ -1469,181 +1469,16 @@
%7D%7D%0A
- onRight=%7B() =%3E console.log('hi')%7D%0A rightButtonImage=%7Bsource=%7Buri: 'https://facebook.github.io/react/img/logo_og.png' %7D%7D%0A rightTitle=%22Add Item%22%0A
%3... |
ffb588d0da48571d3e68fce94c5999245712a834 | Add setOnChange that allows a controller to set a function to call when the currentTask changes. | website/src/app/project/experiments/experiment/components/tasks/current-task.service.js | website/src/app/project/experiments/experiment/components/tasks/current-task.service.js | class CurrentTask {
constructor() {
this.currentTask = null;
}
get() {
return this.currentTask;
}
set(task) {
this.currentTask = task;
}
}
angular.module('materialscommons').service('currentTask', CurrentTask);
| JavaScript | 0 | @@ -66,16 +66,107 @@
= null;%0A
+ this.onChangeFN = null;%0A %7D%0A%0A setOnChange(fn) %7B%0A this.onChangeFN = fn;%0A
%7D%0A%0A
@@ -261,24 +261,96 @@
ask = task;%0A
+ if (this.onChangeFN) %7B%0A this.onChangeFN();%0A %7D%0A
%7D%0A%7D%0A%0Aang
|
0914daf441829abeaeeb6277f059b5443c1cbd33 | clear the service dragdrop rereference | modules/dragdrop/dragdrop.js | modules/dragdrop/dragdrop.js | (function() {
"use strict";
angular.module('common.dragdrop', [])
.factory('DragDropHandler', [function() {
return {
dragObject: {},
addObject: function(object, objects, to) {
objects.splice(to, 0, object);
},
updateObj... | JavaScript | 0 | @@ -886,25 +886,16 @@
unction(
-event, ui
) %7B%0A
@@ -960,16 +960,145 @@
ggable;%0A
+ %7D,%0A stop: function() %7B%0A DragDropHandler.dragObject = undefined; %0A
|
b12ee4f6e433e9c0592e2a6e7c31c115d9d070c1 | fix bad link | frontend/src/App.js | frontend/src/App.js | import React, { Component } from 'react';
//import Suggest from './Suggest.js';
import Select from 'react-select';
import Slider, {Handle} from 'rc-slider';
import Tooltip from 'rc-tooltip';
const queryString = require('query-string');
import 'react-select/dist/react-select.css';
import 'rc-slider/assets/index.css';
... | JavaScript | 0.000001 | @@ -3452,16 +3452,28 @@
%3Ch3%3E
+%3Ca href='/'%3E
true BPM
@@ -3474,16 +3474,20 @@
ue BPM%3C/
+a%3E%3C/
h3%3E%0A
@@ -4424,15 +4424,8 @@
/new
-%3CPaste%3E
'%3Epr
|
ea82fd9ed90020d595651f2c6ed2d3e907e9f52a | remove caching `Function#name`, fix #296 | modules/es6.function.name.js | modules/es6.function.name.js | var dP = require('./_object-dp').f;
var createDesc = require('./_property-desc');
var has = require('./_has');
var FProto = Function.prototype;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';
var isExtensible = Object.isExtensible || function () {
return true;
};
// 19.2.4.2 name
NAME in FProto || require(... | JavaScript | 0.000001 | @@ -416,41 +416,14 @@
-var that = this;%0A var name =
+return
(''
@@ -427,18 +427,18 @@
('' + th
-at
+is
).match(
@@ -453,112 +453,8 @@
1%5D;%0A
- has(that, NAME) %7C%7C !isExtensible(that) %7C%7C dP(that, NAME, createDesc(5, name));%0A return name;%0A
|
4bf7a007fb1c80929dd4537c5a33d7c97970a5d1 | fix a typo in variable name | frontend/src/app.js | frontend/src/app.js | "use strict"
var util = require('./util');
var view = require('./view');
var backendQuery = require('./backendQuery');
import Cookies from './lib/js-cookie';
export var a = Cookies;
var REWARDS = [1,100,10000]
export var courses = {}
var loadedCourseCodes = {}
var selectedOptions = {}
loadFromCookies();
view.initH... | JavaScript | 0.998129 | @@ -5751,24 +5751,26 @@
if (load
+ed
FromCookies
|
ac70b9e192bd948231bf3f8d0042bf69095c5715 | exclude invalid data from date chart | src/main/javascript_source/org/jboss/search/page/filter/DateFilter.js | src/main/javascript_source/org/jboss/search/page/filter/DateFilter.js | /*
* JBoss, Home of Professional Open Source
* Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | JavaScript | 0.000013 | @@ -5397,16 +5397,223 @@
entries;
+%0A // TODO: move this check to response data normalization%0A entries_ = goog.array.filter(entries_, function(entry)%7B%0A return entry.time == 0 ? false : true;%0A %7D);
%0A%0A
|
ce3f26e8876a7251df0a1284a69f6e0fe5c20af8 | Update draw.js | game/js/lib/draw.js | game/js/lib/draw.js | "use strict";
var draw = function(world) {
//world.drawRectangle("#EEE", 0, 0, world.width, world.height);
world.drawSprite("turtleWithACrown", 0, 0, world.width, world.height);
[world.enemies,
world.players,
world.bullets,
world.boss
].forEach (
function (gameElementArray) {
gameElementArra... | JavaScript | 0.000001 | @@ -348,16 +348,48 @@
ent) %7B%0D%0A
+%09%09%09%09world.ctx.globalAlpha = 1;%0D%0A
%09%09%09%09game
@@ -424,8 +424,10 @@
%0D%0A%09);%0D%0A%7D
+%0D%0A
|
22020aa63c79a392f3d5c0fd42e8064be0ea3d86 | Fix state mutations | src/components/fragments/fragments-reducers.js | src/components/fragments/fragments-reducers.js | import { combineReducers } from 'redux';
import {
ADD_PILES,
DISPERSE_PILES,
RECOVER_PILES,
REMOVE_PILES,
STACK_PILES,
SET_ANIMATION,
SET_ARRANGE_MEASURES,
SET_CELL_SIZE,
SET_COVER_DISP_MODE,
SET_LASSO_IS_ROUND,
SET_MATRIX_FRAME_ENCODING,
SET_MATRIX_ORIENTATION,
SET_PILES,
SET_SHOW_SPECIAL_... | JavaScript | 0.000573 | @@ -2140,40 +2140,191 @@
-const newState = %7B ...state
+// Create copy of old state%0A const newState = %7B%7D;%0A%0A Object.keys(state).forEach((prop) =%3E %7B%0A newState%5Bprop%5D = state%5Bprop%5D.slice();%0A
%7D
+)
;%0A%0A
+ // Adust new state%0A
|
48e64ff3c5f5e47fcfb7348e5eb2fa427efa2b08 | Add editproxies perm check | lib/EditSections/EditProxy/EditProxy.js | lib/EditSections/EditProxy/EditProxy.js | import React from 'react';
import PropTypes from 'prop-types';
import { Accordion } from '@folio/stripes-components/lib/Accordion';
import { Row, Col } from '@folio/stripes-components/lib/LayoutGrid';
import Badge from '@folio/stripes-components/lib/Badge';
import ProxyEditList from '../../ProxyGroup/ProxyEditList';
i... | JavaScript | 0 | @@ -250,16 +250,87 @@
/Badge';
+%0Aimport IfPermission from '@folio/stripes-components/lib/IfPermission';
%0A%0Aimport
@@ -578,16 +578,65 @@
eturn (%0A
+ %3CIfPermission perm=%22ui-users.editproxies%22%3E%0A
%3CAcc
@@ -642,16 +642,18 @@
cordion%0A
+
op
@@ -672,16 +672,18 @@
%7D%0A
+
id=... |
a768a7d0b81c16f91ef9c3109fb2e4adf1491cc8 | Task for creating Migration table | gen/jakelib/db.jake | gen/jakelib/db.jake | // Load the basic Geddy toolkit
require('../../lib/geddy')
var cwd = process.cwd()
, fs = require('fs')
, path = require('path')
, utils = require('../../lib/utils')
, Adapter = require('../../lib/template/adapters');
namespace('db', function () {
task('createTable', ['env:init'], function (name) {
var... | JavaScript | 0.999342 | @@ -162,24 +162,72 @@
lib/utils')%0A
+ , modelInit = require('../../lib/init/model')%0A
, Adapter
@@ -299,16 +299,601 @@
on () %7B%0A
+%0A task('createMigrationModel', %5B'env:init'%5D, %7Basync: true%7D, function () %7B%0A var Migration = function () %7B%0A this.property('migration', 'string');%0A ... |
28dc7d18380835996b5edca16e991727150fcd86 | Move logout to the last position | src/client/app/states/logout/logout.state.js | src/client/app/states/logout/logout.state.js | (function() {
'use strict';
angular.module('app.states')
.run(appRun);
/** @ngInject */
function appRun(routerHelper, navigationHelper) {
routerHelper.configureStates(getStates());
navigationHelper.navItems(navItems());
navigationHelper.sidebarItems(sidebarItems());
}
function getStates()... | JavaScript | 0.000001 | @@ -728,16 +728,18 @@
rder: 99
+99
%0A %7D
|
8432b57bd71194fccce591ea6d9105a267193c40 | Update app sample | app/angular/controller.js | app/angular/controller.js | (function() { 'use strict';
angular.module('webcam').controller('webcamController', webcamController);
webcamController.$inject = ['$scope', '$log'];
function webcamController($scope, $log) {
/* jshint validthis: true */
var vm = this;
vm.config = {
delay: 2,
shots: 3,
flashFallbackU... | JavaScript | 0 | @@ -293,16 +293,65 @@
ots: 3,%0A
+ viewerWidth: 480,%0A viewerHeight: 320,%0A
fl
|
8334ad4d09e73b8813faadf25960a7eea1a27b25 | Use correct collection moethods instead of referencing internals | app/client/views/table.js | app/client/views/table.js | define([
'extensions/views/table',
'modernizr'
],
function (TableView, Modernizr) {
return TableView.extend({
initialize: function () {
this.$table = this.$('table');
this.tableCollection = new this.collection.constructor(this.collection.models, this.collection.options);
this.listenTo(th... | JavaScript | 0 | @@ -628,24 +628,13 @@
ion.
-models = _.clone
+reset
(thi
@@ -646,22 +646,24 @@
lection.
-models
+toJSON()
);%0A %7D
|
b768ad690ac0e6b0323e436d366d7321e4840223 | fix heatmap toggle bug | app/components/MapPane.js | app/components/MapPane.js | import React, {Component, PropTypes} from 'react'
import { Panel } from 'react-bootstrap'
import { Map, Marker, Popup, TileLayer, CircleMarker, Polyline, GeoJson, FeatureGroup } from 'react-leaflet';
import HeatmapLayer from 'react-leaflet-heatmap-layer'
import moment from 'moment'
import isRetina from 'is-retina'
imp... | JavaScript | 0.000001 | @@ -1836,16 +1836,429 @@
%7D%0A %7D%0A
+ getHeapMap () %7B%0A const points = this.props.hideHeatmap%0A ? %5B%5D%0A : this.props.am ? APC_AM : APC_PM%0A return (%0A %3CHeatmapLayer%0A points=%7Bpoints%7D%0A longitudeExtractor=%7Bm =%3E parseFloat(m.longitude) %7C%7C 33%7D%0A ... |
6929e3a139b2af1c2e74e06d9412730c59a1e177 | check for updates immediately | app/components/Updater.js | app/components/Updater.js | const { lt } = require('semver');
const { get } = require('https');
const { autoUpdater } = require('electron');
class Updater {
constructor(options = {}) {
const {
checkEvery = 1000 * 60 * 60,
currentVersion,
feedUrl,
logger,
onUpdateDownloaded,
} = options;
this.feedUrl =... | JavaScript | 0 | @@ -681,16 +681,36 @@
ates.%60);
+%0A%0A this.onTick();
%0A %7D%0A%0A
|
df8cdf40bf1d9a7fc989b99493e7eade860f5f56 | make these local vars | drivers/status/pubsub.js | drivers/status/pubsub.js | /*******************
* This is the pubsub driver that should tell caspa about the melted status
*
*******************/
events = require('events');
utils = require('utils');
_ = require('underscore');
mbc = require('mbc-common');
defaults = { // copied from caspa/models.App.Status
_id: 1,
piece: {
pr... | JavaScript | 0.001892 | @@ -115,16 +115,20 @@
******/%0A
+var
events =
@@ -147,21 +147,24 @@
ents');%0A
+var
util
-s
= requi
@@ -171,21 +171,24 @@
re('util
-s
');%0A
+var
_ = requ
@@ -206,16 +206,20 @@
core');%0A
+var
mbc = re
|
d814ef15799f5874dfe312712aaa5da0d474d04a | Define global symbol which to be exported, by "var" instead of "const". | modules/lib/WindowManager.js | modules/lib/WindowManager.js | /**
* @fileOverview Window manager module for restartless addons
* @author YUKI "Piro" Hiroshi
* @version 5
*
* @license
* The MIT License, Copyright (c) 2010-2014 YUKI "Piro" Hiroshi.
* https://github.com/piroor/restartless/blob/master/license.txt
* @url http://github.com/piroor/restartl... | JavaScript | 0.000011 | @@ -329,13 +329,11 @@
%0D%0A%0D%0A
-const
+var
EXP
|
ac810028c27f10889f390870f7eb1793c14540aa | add organization router | cabrini-server/server.js | cabrini-server/server.js | var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var User = require('./models/User');
var ToDoList = require('./models/ToDoList');
var ToDoListItem = require('./models/ToDoListItem');
app.use(bodyParser.json());
app.use('/users', requir... | JavaScript | 0 | @@ -340,16 +340,82 @@
ers'));%0A
+app.use('/organizations', require('./controllers/organizations'));
%0A%0Amongoo
|
6ba3298693735cb943e31f2b52b98f083df0835b | add stub releaseTile method | modules/lib/mmap_app/bing.js | modules/lib/mmap_app/bing.js | // namespacing!
if (!MM) {
MM = { };
}
MM.BingProvider = function(key, style, onready) {
this.key = key;
this.style = style;
// hit the imagery metadata service
// http://msdn.microsoft.com/en-us/library/ff701716.aspx
// Aerial, AerialWithLabels, Road
var script = document.createEl... | JavaScript | 0 | @@ -1934,16 +1934,76 @@
%7D;%0A
+ provider.releaseTile = function(coord) %7B %7D;%0A
|
ff67dd44419a17bbc405cfb0a7997f600709313d | fix transcoded non English characters | assets/js/app.js | assets/js/app.js | (function($) {
function init() {
/* Sidebar height set */
$sidebarStyles = $('.sidebar').attr('style') || "";
$sidebarStyles += ' min-height: ' + $(document).height() + 'px;';
$('.sidebar').attr('style', $sidebarStyles);
/* Secondary contact links */
var $scontacts = $('#contact-list-secondar... | JavaScript | 0.999246 | @@ -778,16 +778,35 @@
hash =
+decodeURIComponent(
window.l
@@ -817,16 +817,17 @@
ion.hash
+)
;%0A
@@ -1238,8 +1238,9 @@
jQuery);
+%0A
|
b38d8b2e2b0f9f5e062ca48cc37b1c70279c7dd8 | Elimina console.log shit... | assets/js/app.js | assets/js/app.js | window.events = window.events || [];
var triggerNav = function() {
document.querySelector('.resToggle').addEventListener('click', function() {
document.querySelector('.smx-navigation').classList.toggle('active')
});
}
function appendFrameListener(config) {
var el = document.getElementById(config.button);
if (el)... | JavaScript | 0 | @@ -3144,30 +3144,8 @@
) %7B%0A
-%09console.log('shit');%0A
%09win
|
8d33f05e73a61b65c2958e7b5c8c0a8d9ed44ee1 | Update to app.js | assets/js/app.js | assets/js/app.js | var app = angular.module("CornerStoneApp", ['angucomplete']); // module init
app.controller("MainController", function($scope, $http) { // controller init
$scope.autocomplete = [];
$scope.testimonies = [];
$scope.imageData = [];
$scope.imageRow2 = [];
$scope.searching = false;
$http.get("asset... | JavaScript | 0.000001 | @@ -966,15 +966,26 @@
-alert('
+console.log('CORS
Netw
|
14623126c4e33aa90a195e05e6bf516672e3e804 | Fix network creation heisenbug | src/include/container-manager-docker-helper.js | src/include/container-manager-docker-helper.js | /*jshint esversion: 6 */
var Docker = require('dockerode');
var DockerEvents = require('docker-events');
var docker = new Docker();
var dockerEmitter = new DockerEvents({docker:docker});
exports.getDockerEmitter = function () {
return dockerEmitter;
};
exports.getDocker = function () {
return docker;
};
//ki... | JavaScript | 0.000044 | @@ -1108,32 +1108,34 @@
ata) =%3E %7B%0A
+
if(err) %7B%0A
@@ -1120,32 +1120,34 @@
if(err) %7B%0A
+
reject(%22
@@ -1173,33 +1173,39 @@
't list networks
-%22
+:%22, err
);%0A retur
@@ -1191,32 +1191,34 @@
, err);%0A
+
return;%0A %7D%0A
@@ -1211,32 +1211,34 @@
t... |
3eadbc1a2a7c1bd285c5f5f31396d83df738cbde | Fix exception on api login | auth/passport.js | auth/passport.js | "use strict";
const passport = require('passport');
const LocalStrategy = require('passport-local').Strategy;
const usr = require('../models/user');
// Passport session set-up
passport.serializeUser((user, done) => {
done(null, user.user_id);
});
passport.deserializeUser(async (req, id, done) => {
const query... | JavaScript | 0.000003 | @@ -744,32 +744,145 @@
wCount === 0) %7B%0A
+ // No sessions with API logins, so don't store flash message and save sessions%0A try %7B%0A
req.
@@ -917,32 +917,36 @@
');%0A
+
req.session.save
@@ -946,32 +946,126 @@
on.save(() =%3E %7B%0A
+ re... |
687ca5854021d086c596c0069ffd7ffb23b1ddf2 | Implement collection editor / viewer (mantis 452) | src/main/webapp/resources/js/collections/edit.js | src/main/webapp/resources/js/collections/edit.js | var editor;
$(document).ready(function() {
editor = new CollectionEditor();
$("#btn-add-description").click(function() { editor.triggerAddTableElement(); return false;});
});
var CollectionEditor = function() {};
CollectionEditor.prototype.triggerAddTableElement = function() {
$.ajax({
url: __util.getBas... | JavaScript | 0 | @@ -170,13 +170,75 @@
%7D);%0A
+%09%0A%09$(%22form%22).submit(function(event) %7B editor.submit(event);
%7D);%0A
-%0A
+%7D);
%0A%0Ava
@@ -1256,12 +1256,137 @@
remove();%0A%7D;
+%0A%0ACollectionEditor.prototype.submit = function(event) %7B%0A%09%0A%09event.preventDefault();%09// Assume error for now%0A%09return fal... |
5e29c86bb7cb6a921c8b5df7b431a7e4b8d5f852 | Solve bug editor - You should be connected | src/marknotes/plugins/page/html/editor/editor.js | src/marknotes/plugins/page/html/editor/editor.js | /**
* $params is a JSON object initiliazed by the /assets/js/marknotes.js file.
*/
function fnPluginButtonEdit($params) {
/*<!-- build:debug -->*/
if (marknotes.settings.debug) {
console.log(' Plugin Page html - Editor');
}
/*<!-- endbuild -->*/
if (marknotes.note.url == '') {
Noty({
message: $.i18... | JavaScript | 0.000004 | @@ -471,16 +471,22 @@
it($
+data,
data)',%0A
%09%09%09u
@@ -481,16 +481,16 @@
data)',%0A
-
%09%09%09useSt
@@ -625,20 +625,35 @@
erEdit($
-data
+ajax_request, $form
) %7B%0A%0A%09/*
@@ -793,24 +793,53 @@
uild --%3E*/%0A%0A
+%09$('#CONTENT').html($form);%0A%0A
%09if (documen
@@ -905,20 +905,28 @@
nitMDE($
-dat... |
a39e866e97f908debef43f321d3bce56d461fe6a | fix lint errors | src/mixin/__tests__/StoreDependencyMixin-test.js | src/mixin/__tests__/StoreDependencyMixin-test.js | jest.dontMock('../StoreDependencyMixin.js');
describe('StoreDependencyMixin', () => {
let StoreDependencyMixin;
beforeEach(() => {
StoreDependencyMixin = require('../StoreDependencyMixin.js');
});
describe('propTypes', () => {
it('has propTypes if a dependency specifices them');
});
describe('co... | JavaScript | 0.000037 | @@ -81,16 +81,19 @@
) =%3E %7B%0A
+ //
let Sto
@@ -136,16 +136,19 @@
=%3E %7B%0A
+ //
StoreDe
|
5b3cf0c082f7e0d2d7ccf8780cb9bb75ec3b8894 | call fetchData instead of refresh in StoprintNotice and Error views | source/views/stoprint/print-jobs.js | source/views/stoprint/print-jobs.js | // @flow
import React from 'react'
import {SectionList} from 'react-native'
import {connect} from 'react-redux'
import {type ReduxState} from '../../flux'
import {updatePrintJobs} from '../../flux/parts/stoprint'
import {type PrintJob, STOPRINT_HELP_PAGE} from '../../lib/stoprint'
import {
ListRow,
ListSeparator,
L... | JavaScript | 0 | @@ -2370,31 +2370,33 @@
fresh=%7Bthis.
-refresh
+fetchData
%7D%0A%09%09%09%09/%3E%0A%09%09%09
@@ -2899,31 +2899,33 @@
fresh=%7Bthis.
-refresh
+fetchData
%7D%0A%09%09%09%09%09text=
|
3a42822b6b45bb4d346a4f5d8ce44873dc078bcb | Fix clip | sources/js/graphics/scene-object.js | sources/js/graphics/scene-object.js | import is_nil from 'lodash.isnil';
import is_number from 'lodash.isnumber';
import noop from 'lodash.noop';
function normalize_scale(scale) {
if (is_nil(scale)) {
scale = 1;
}
return is_number(scale) ? {x: scale, y: scale} : scale;
}
export default (coordinates, options = {}) => {
const onRender = is_nil(option... | JavaScript | 0.000001 | @@ -1573,16 +1573,17 @@
een.
-clipRect
+translate
(coo
@@ -1595,12 +1595,16 @@
tes.
-rect
+position
());
@@ -1611,33 +1611,32 @@
%0A%09%09%09%09screen.
-translate
+clipRect
(coordinates
@@ -1632,32 +1632,33 @@
coordinates.
-position
+localRect
());%0A%09%09%09%09onR
|
f096f3e2081a3e5591957e1e56415e69ab646786 | Fix test, sort function always needs to return an integer | observe/sort/sort_test.js | observe/sort/sort_test.js | steal('can/util', 'can/observe/sort', 'can/view/mustache', function(can) {
module("can/observe/sort");
test("list events", 12, function(){
var list = new can.Observe.List([
{name: 'Justin'},
{name: 'Brian'},
{name: 'Austin'},
{name: 'Mihael'}])
list.comparator = 'name';
list.sort();
// events on a list
... | JavaScript | 0.00021 | @@ -1578,16 +1578,128 @@
(a, b)%7B%0A
+%09%09// Sort functions always need to return the -1/0/1 integers%0A%09%09if(a.priority %3C b.priority) %7B%0A%09%09%09return -1;%0A%09%09%7D%0A
%09%09return
@@ -1722,16 +1722,24 @@
priority
+ ? 1 : 0
;%0A%09%7D);%0A%09
|
64cc94b68adaeb83954b91f0a6197f2e46ce6687 | add new event changes | source/server/controllers/events-controller.js | source/server/controllers/events-controller.js | /**
* Created by admin on 2.12.2016 г..
*/
/* globals module require */
'use strict';
const passport = require('passport');
module.exports = (data) => {
return {
getCreateEventPage(req, res) {
let categoryName = req.params.categoryName;
if(!categoryName) {
cate... | JavaScript | 0.000001 | @@ -2982,531 +2982,31 @@
-var _category = 'ski';%0A if(!(categoryName == undefined) && !(categoryName===''))%7B%0A _category = categoryName;%0A %7D%0A%0A var _picture = %7B src: '/res/images/default-picture.png' %7D;%0A if(!(pictureUrl == undefined) %7C%7... |
b3042cd07ab785de7c28b41a6a026d45e2bf5534 | Fix for missing descriptions and defaults. | packages/gluegun-core/src/domain/runtime.js | packages/gluegun-core/src/domain/runtime.js | const parseCommandLine = require('../cli/parse-command-line')
const autobind = require('autobind-decorator')
const {
clone,
merge,
when,
equals,
always,
join,
split,
trim,
pipe,
replace,
find,
append,
forEach,
isNil,
map
} = require('ramda')
const { findByProp, startsWith, isNilOrEmpty } =... | JavaScript | 0 | @@ -5535,16 +5535,23 @@
const %7B
+ brand,
extensi
@@ -5750,16 +5750,29 @@
ionToken
+,%0A brand
%0A %7D)%0A
|
d6a74db2b957a76966b653b6b3270df3fbc7a659 | Create report folder if it does not exist | jenkins-build/e2e/config.servoy.js | jenkins-build/e2e/config.servoy.js | var startDate;
var find = require('find');
var fs = require('fs-extra');
var jsonDir = 'reports/cucumber_reports/';
var screenshotDir = 'screenshots/';
exports.config = {
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
framework: 'custom',
params: {
testDomainURL: 'http://localhost:8080/solutions/sampleGalle... | JavaScript | 0.000001 | @@ -1089,20 +1089,42 @@
aunch');
+%0A
+createReportFolder();
%0A rem
@@ -2049,28 +2049,432 @@
fs.unlinkSync(file);%0A %7D);%0A%7D
+%0A%0Afunction createReportFolder() %7B%0A var path = require('path');%0A var proc = require('process');%0A var fs = require('fs');%0A var pathToCreate = proc.cwd() + '/rep... |
c926085331ba13562ddd6178fe60f633d16d9641 | comment out stupid command | chat-plugins/big-talk.js | chat-plugins/big-talk.js | exports.commands = {
bigtalk: function (target, room, user) {
if (!this.can('hotpatch')) return false;
msg = target;
if (!msg || msg === ' ') return this.sendReply('/bigtalk [target] - Makes u talk like a big boi. Requires ~.');
if (user.userid === 'panpawn') {
if (user.hiding) return room.add('|raw|<div c... | JavaScript | 0.000006 | @@ -1,8 +1,11 @@
+/*%0A
exports.
@@ -1711,8 +1711,11 @@
%7D%0A%09%7D%0A%7D;%0A
+*/%0A
|
91d3abeae9d74e82839b6e5729b6bdfc723a1df9 | add accessibilityIgnoresInvertColors to BuildingHours' image | source/views/building-hours/detail/building.js | source/views/building-hours/detail/building.js | // @flow
import * as React from 'react'
import {ScrollView, StyleSheet, Platform, Image} from 'react-native'
import {images as buildingImages} from '../../../../images/spaces'
import type {BuildingType} from '../types'
import moment from 'moment-timezone'
import * as c from '@frogpond/colors'
import {getShortBuildingS... | JavaScript | 0 | @@ -1597,17 +1597,69 @@
%09%09%3CImage
-
+%0A%09%09%09%09%09%09accessibilityIgnoresInvertColors=%7Btrue%7D%0A%09%09%09%09%09%09
resizeMo
@@ -1668,17 +1668,23 @@
=%22cover%22
-
+%0A%09%09%09%09%09%09
source=%7B
@@ -1695,17 +1695,23 @@
erImage%7D
-
+%0A%09%09%09%09%09%09
style=%7Bs
@@ -1722,17 +1722,22 @@
s.ima... |
0831d4e2944bc159eefc675312b63b544e21ead9 | Fix order-dependent failure of stream_view_spec.js | spec/javascripts/app/views/stream_view_spec.js | spec/javascripts/app/views/stream_view_spec.js | describe("app.views.Stream", function() {
beforeEach(function() {
loginAs({name: "alice", avatar : {small : "http://avatar.com/photo.jpg"}});
this.posts = $.parseJSON(spec.readFixture("stream_json"));
this.stream = new app.models.Stream();
this.stream.add(this.posts);
this.view = new app.views.... | JavaScript | 0 | @@ -57,24 +57,107 @@
unction() %7B%0A
+ // This puts %60app.page%60 into the proper state.%0A new app.Router().stream();%0A%0A
loginAs(
|
4409c22d66808215563eeb16627962ecbec60d71 | index the errors for quick lookup | src/scripts/app/play/proofreadings/controller.js | src/scripts/app/play/proofreadings/controller.js | 'use strict';
module.exports =
/*@ngInject*/
function ProofreadingPlayCtrl(
$scope, $state, ProofreadingService, RuleService, _
) {
$scope.id = $state.params.id;
function error(e) {
$state.go('index');
}
/* Returns null or an array of matches */
//TODO Only looking for line break tags right now
fu... | JavaScript | 0.000001 | @@ -2915,16 +2915,19 @@
nction(p
+, i
) %7B%0A
@@ -2967,17 +2967,43 @@
rs.push(
-p
+%7Bindex: i, passageEntry: p%7D
);%0A
@@ -3207,25 +3207,32 @@
showErrors(
-e
+passageE
rrors) %7B%0A
@@ -3236,30 +3236,102 @@
-$scope.e
+_.each(passageErrors, function(pe) %7B%0A $scope.pf.passage%5Bpe.inde... |
f8d515ebd29687bb3a738455db279afd0806c4be | remove settings tab for now | App/Screens/Home.js | App/Screens/Home.js | /**
* React Native Playground
* https://github.com/jsierles/rnplay
*/
'use strict';
var React = require('react-native');
var Explore = require('./Explore');
var MyAppsContainer = require('./MyAppsContainer');
var Settings = require('./Settings');
var About = require('./About');
var QRCodeReader = require('./QRCode... | JavaScript | 0 | @@ -2320,391 +2320,8 @@
OS%3E%0A
- %3CSMXTabBarItemIOS%0A name=%22settings%22%0A iconName=%7B'ion%7Cgear-a'%7D%0A title=%7B'Settings'%7D%0A iconSize=%7B32%7D%0A accessibilityLabel=%22Settings Tab%22%0A selected=%7Bthis.state.selectedTab === 'sett... |
19cf54641a3eee70954c2b5f88c38cabaa0fbc19 | Fix chat create project bug | Team4of5/src/Team4of5_App/Chat/CreateProject.js | Team4of5/src/Team4of5_App/Chat/CreateProject.js | import React from 'react';
import ReactDOM from 'react-dom';
//reference: https://github.com/JedWatson/react-select
import Select from 'react-select';
// Be sure to include styles at some point, probably during your bootstrapping
import 'react-select/dist/react-select.css';
import { connect } from 'react-redux'
import... | JavaScript | 0 | @@ -874,17 +874,45 @@
alue: %5B%5D
+,%0A inputTitle: ''
%0A
-
@@ -2014,16 +2014,17 @@
elected:
+
', valu
@@ -2144,27 +2144,30 @@
his.
-refs.messag
+state.inputTitl
e.value
-;
%0A
@@ -3097,19 +3097,23 @@
elf.
-refs.messag
+state.inputTitl
e.va
@@ -3592,21 +3592,100 @@
le%7D
-ref=%22m... |
af177f7b055e93e4a1e2569fc093c4159d2da28a | Improve wording on ChallengeResponse component | src/client/react/user/views/Challenge/ChallengeResponse.js | src/client/react/user/views/Challenge/ChallengeResponse.js | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { graphql } from 'react-apollo';
import { Spinner, NonIdealState, Button, Intent } from '@blueprintjs/core';
import { getTeamResponses } from '../../../../graphql/response';
import NotificationToast... | JavaScript | 0 | @@ -1703,38 +1703,38 @@
image for us to
-verify
+review
.';%0A%09%09%09%09response
@@ -1932,14 +1932,14 @@
to
-verify
+review
.';%0A
@@ -2748,16 +2748,19 @@
con-
-endorsed
+tick-circle
';%0A%09
@@ -2776,15 +2776,16 @@
= '
-Correct
+Accepted
';%0A%09
@@ -2800,19 +2800,8 @@
= %60
-Well done!
You
@@ -3386... |
9cbd4ae2e4901dd7e82db3a6d723793dfb4ea305 | fix raging typos | src/skins/vector/views/molecules/ServerConfig.js | src/skins/vector/views/molecules/ServerConfig.js | /*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | JavaScript | 0.999992 | @@ -1219,16 +1219,44 @@
er URL.
+%22 +%0A %22
This all
@@ -1337,16 +1337,44 @@
server.
+%22 +%0A %22
You can
@@ -1386,16 +1386,17 @@
set a cu
+s
tom Iden
@@ -1434,16 +1434,18 @@
t people
+'s
ability
@@ -1457,16 +1457,44 @@
ind you
+%22 +%0A ... |
ad4c5064388da37e8b631748cf4f57d818dbaaea | Handle label if plural or singular | schema/fields/numeral.js | schema/fields/numeral.js | import inflect from 'i';
import numeral from 'numeral';
import FormattedNumber from '../types/formatted_number';
import { GraphQLString } from 'graphql';
const { pluralize } = inflect();
export default fn => ({
type: FormattedNumber,
args: {
format: {
type: GraphQLString,
description: 'Returns a `... | JavaScript | 0.00412 | @@ -165,16 +165,29 @@
luralize
+, singularize
%7D = inf
@@ -572,16 +572,42 @@
null;%0A%0A
+ const count = value;%0A%0A
if (
@@ -715,16 +715,51 @@
alue%7D $%7B
+count === 1 ? singularize(label) :
pluraliz
|
b6b46b9eb8cd41afb0b978aa430372e33c3257f2 | fix grouptilelayer | src/tilelayer-projection/grouptilelayer/index.js | src/tilelayer-projection/grouptilelayer/index.js | var map = new maptalks.Map('map', {
center: [-0.113049,51.498568],
zoom: 6,
pitch : 40,
attribution: {
content: '$(attribution), © BoudlessGeo'
},
// add 2 TileLayers with a GroupTileLayer
baseLayer : new maptalks.GroupTileLayer('base', [
new maptalks.TileLayer('tile2', {
urlTempla... | JavaScript | 0.000001 | @@ -360,13 +360,10 @@
ark_
+n
o
-nly_
labe
|
28fa42530be168b4af3e87a2c1af48f259f6d38e | fix incorrect propType in DiscussionDetailsCard | src/ui/components/views/DiscussionDetailsCard.js | src/ui/components/views/DiscussionDetailsCard.js | /* @flow */
import React, { PropTypes, Component } from 'react';
import ReactNative from 'react-native';
import shallowEqual from 'shallowequal';
import Card from './Card';
import CardTitle from './CardTitle';
import DiscussionSummary from './DiscussionSummary';
import CardAuthor from './CardAuthor';
const {
StyleSh... | JavaScript | 0 | @@ -877,33 +877,22 @@
opTypes.
-string.isRequired
+object
,%0A%09%09%09cre
|
e1f1dc4b2858e607c93413d21b8a16cd6731ed53 | allow preconfigure slider range | src/webapp/api/scripts/ui/facets/slider-facet.js | src/webapp/api/scripts/ui/facets/slider-facet.js | /*==================================================
* Exhibit.SliderFacet
*==================================================
*/
Exhibit.SliderFacet = function(containerElmt, uiContext) {
this._div = containerElmt;
this._uiContext = uiContext;
this._expression = null;
this._settings = {};
th... | JavaScript | 0 | @@ -307,16 +307,59 @@
= %7B%7D;%0A%0A
+%09this._selection = %7Bmin: null, max: null%7D;%0A
this
@@ -856,19 +856,20 @@
tValue:
-tru
+fals
e %7D%0A%7D;%0A%0A
@@ -2545,24 +2545,186 @@
sion);%0A %7D
+%0A if (%22selection%22 in configuration) %7B%0A var selection = configuration.selection;%0A ... |
62efd9b075a223d3cd6e11b4ca6a6d39df06176b | Fix #367 - Resize only works when you've first moved the divider | src/extensions/default/bramble/lib/RemoteCommandHandler.js | src/extensions/default/bramble/lib/RemoteCommandHandler.js | /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, brackets: true */
define(function (require, exports, module) {
"use strict";
var CommandManager = brackets.getModule("command/CommandManager");
var EditorManager = brackets.getModule("editor/EditorMan... | JavaScript | 0 | @@ -771,24 +771,97 @@
eManager%22);%0A
+ var BrambleEvents = brackets.getModule(%22bramble/BrambleEvents%22);%0A
%0A var Pos
@@ -2826,16 +2826,68 @@
(true);%0A
+ BrambleEvents.triggerUpdateLayoutEnd();%0A
|
515051b6595f00367f0e3e0f51a46ba180269706 | Allow unupped Reinforce in AI decks | ai/deck.js | ai/deck.js | "use strict";
var etg = require("../etg");
var Cards = require("../Cards");
var Actives = require("../Actives");
var etgutil = require("../etgutil");
module.exports = function(level) {
if (!Cards.loaded){
return;
}
var uprate = level == 0 ? 0 : level == 1 ? .1 : .3;
function upCode(x) {
return uprate ? etgutil.... | JavaScript | 0 | @@ -581,62 +581,8 @@
= %5B%5D
-, banned = %5BCards.Give, Cards.GiveUp, Cards.Reinforce%5D
;%0A%09v
@@ -1035,25 +1035,25 @@
&& !
-~banned.indexOf(x
+x.isOf(Cards.Give
);%0A%09
|
c96138fe808ee352ac3163a3b19b66f7ad9e8471 | Rename upload to flash to save space | app/containers/Sidebar.js | app/containers/Sidebar.js | import Button from 'react-toolbox/lib/button';
import Dropdown from 'react-toolbox/lib/dropdown';
import ProgressBar from 'react-toolbox/lib/progress_bar';
import React, { Component, PropTypes } from 'react';
import { Card, CardText } from 'react-toolbox/lib/card';
import { ipcRenderer as ipc } from 'electron';
import ... | JavaScript | 0 | @@ -4994,22 +4994,21 @@
ding ? '
-upload
+flash
ing firm
@@ -5016,22 +5016,21 @@
are' : '
-upload
+flash
firmwar
|
9f0cd3a8228339ecc45b5cbad7801c1106ad2fae | Improve scenario | js-given/spec/hidden-steps.spec.js | js-given/spec/hidden-steps.spec.js | // @flow
import {expect} from 'chai';
import {
scenario,
scenarios,
setupForRspec,
setupForAva,
Hidden,
State,
Stage,
Quoted,
parametrized1,
} from '../src';
import {
BasicScenarioGivenStage,
BasicScenarioWhenStage,
BasicScenarioThenStage,
} from './basic-stages';
if (... | JavaScript | 0.000008 | @@ -3219,24 +3219,47 @@
his;%0A %7D%0A%0A
+ @Quoted('message')%0A
an_error
|
ec2303c857c5829f7bf59c295dad9a6b2076575f | document flush | pages/_document.js | pages/_document.js | import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import flush from 'styled-jsx/server';
export default class extends Document {
static getInitialProps({ renderPage }) {
const { html, head, errorHtml, chunks } = renderPage();
const styles = flush();
return { htm... | JavaScript | 0.000001 | @@ -89,47 +89,8 @@
nt';
-%0Aimport flush from 'styled-jsx/server';
%0A%0Aex
@@ -131,198 +131,8 @@
t %7B%0A
- static getInitialProps(%7B renderPage %7D) %7B%0A const %7B html, head, errorHtml, chunks %7D = renderPage();%0A const styles = flush();%0A return %7B html, head, errorHtml, chunks, styles %7D;%0A ... |
0bcf81831249b1fc8517050111d7255afeae0110 | Clean up json output. | analyze.js | analyze.js | #!/usr/bin/env node
var
_ = require('lodash'),
chalk = require('chalk'),
fs = require('fs'),
util = require('util'),
yargs = require('yargs')
.option('cutoff',
{
alias: 'c',
description: 'tags with usage counts lower than this will not be considered'
})
.option('filter',
{
ali... | JavaScript | 0.000088 | @@ -2138,24 +2138,42 @@
%5D;%0A%7D);%0A%0A
+if (args.json)%0A%7B%0A%09
console.
log(keys
@@ -2164,19 +2164,21 @@
console.
-log
+error
(keys.le
@@ -2218,83 +2218,127 @@
');%0A
-if (args.json)%0A%09console.log(util.inspect(outtags, %7Bcolors: true%7D
+%09console.log(JSON.stringify(outtags, null, ' '
));%0A
+%7D... |
e1587e85c8e7ff1ad42713482e5c5969ac596d87 | Handle updates to the MapView collection | app/core/views/MapView.js | app/core/views/MapView.js | define(['backbone', 'places/utils', 'moxie.position'], function(Backbone, utils, userPosition) {
var MapView = Backbone.View.extend({
initialize: function() {
_.bindAll(this);
this.collection.on("reset", this.resetMapContents, this);
this.collection.on("add", this.placeP... | JavaScript | 0 | @@ -198,138 +198,8 @@
s);%0A
- this.collection.on(%22reset%22, this.resetMapContents, this);%0A this.collection.on(%22add%22, this.placePOI, this);%0A
@@ -217,32 +217,32 @@
s.latlngs = %5B%5D;%0A
+
this
@@ -327,16 +327,35 @@
e: true,
+%0A id: %22map%22,
%0A%0A
@... |
148954032fef596b1b461ac8c271f7584561659b | Update sequence model | app/db/models/sequence.js | app/db/models/sequence.js | module.exports = (sequelize, DataTypes) => {
var Sequence = sequelize.define('Sequence', {
seq: {
type: DataTypes.INTEGER,
defaultValue: 1
}
}, {})
Sequence.associate = function (models) {
// associations can be defined here
}
return Sequence
}
| JavaScript | 0.000001 | @@ -86,16 +86,86 @@
nce', %7B%0A
+ id: %7B%0A type: DataTypes.STRING,%0A primaryKey: true%0A %7D,%0A
seq:
@@ -232,16 +232,41 @@
%7D%0A %7D, %7B
+%0A timestamps: false%0A
%7D)%0A Seq
|
6946811eb3e216a7abc1e4710f4a9b35fcfce441 | Update keyboard_shortcuts.js | lab/static/js/src/config/keyboard_shortcuts.js | lab/static/js/src/config/keyboard_shortcuts.js | define({
// Application note on/off keyboard shortcuts.
// Maps a key to an integer relative to the C *one octave below*
// middle C (MIDI note number 48).
//
// To find the MIDI note number that will be output when a key is pressed,
// add the relative offset from the note mapping section to this note anchor.
... | JavaScript | 0.000001 | @@ -1614,24 +1614,75 @@
keSustain%22%7D,
+ // not working?%0A%09%09%22%5C%5C%22: %7Bmsg:%22retakeSustain%22%7D,
%0A%09%09%22.%22:
@@ -2015,16 +2015,128 @@
hord%22%7D,%0A
+%09%09%22%5B%22: %7Bmsg:%22toggleHighlights%22%7D, // not created yet%0A%09%09%22%5D%22: %7Bmsg:%22toggleAnalysis%22%7D, // not... |
e382615814b8f3b2dc7e61523e90855390525eb1 | Rename from simColorProfileProperty to SimColors.js, see https://github.com/phetsims/scenery-phet/issues/686 | js/intro/view/beaker/BeakerNode.js | js/intro/view/beaker/BeakerNode.js | // Copyright 2018-2021, University of Colorado Boulder
/**
* Displays a beaker graphic
*
* @author Jonathan Olson <jonathan.olson@colorado.edu>
*/
import Shape from '../../../../../kite/js/Shape.js';
import merge from '../../../../../phet-core/js/merge.js';
import Node from '../../../../../scenery/js/nodes/Node.j... | JavaScript | 0 | @@ -455,33 +455,33 @@
ent.js';%0Aimport
-f
+F
ractionsCommonCo
@@ -483,23 +483,17 @@
monColor
-Profile
+s
from '.
@@ -512,17 +512,17 @@
on/view/
-f
+F
ractions
@@ -532,23 +532,17 @@
monColor
-Profile
+s
.js';%0Aim
@@ -631,33 +631,33 @@
_BEAKER_COLOR =
-f
+F
ractionsCommonCo
@@ -659,23 +659,17 @@
monColor
... |
427c163cbf4eadd03861117b6380b9c12306c7bd | Replace mocktype in documentation | tasks/yaml_to_swagger.js | tasks/yaml_to_swagger.js | /*
* grunt-yaml-to-swagger
*
*
* Copyright (c) 2014 Cyril GIACOPINO
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-tasks
Array.prototype.getUni... | JavaScript | 0.000004 | @@ -4527,16 +4527,576 @@
schema);
+%0A%0A var result = JSON.stringify(JSON.parse(result));%0A var pattern = new RegExp('%5C%5BMockType=(%5Cw)+%5C%5D', %22g%22);%0A var matches = result.match(/%5C%5BMockType=(%5Cw)+%5C%5D/g);%0A ... |
95ff489cc92315d1397c64e5ba35470d9928ca93 | Handle key error in activities product | app/helpers/masterdata.js | app/helpers/masterdata.js | import _ from 'lodash';
import cuid from 'cuid';
export const normalizeStripAds = (ad, baseURL = '') => ({
name: ad.name || '',
type: ad.type || '',
src: `${baseURL}${ad.path || ''}`,
duration: Number(ad.timeout || 0) / 1000,
adSize: ad.adSize || '',
});
// const isSoldout = () => _.random(1, 5) === 5;
const... | JavaScript | 0.000002 | @@ -4474,32 +4474,63 @@
0', _.get(event,
+ 'product.0', %7B%7D), _.get(event,
'product', %7B%7D))
|
0304274f57ffda4084693cf71421873e64a66db3 | add explicit firefox extension id | .releaserc.js | .releaserc.js | module.exports = {
verifyConditions: ['condition-circle'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/exec',
{prepareCmd: 'VERSION=${nextRelease.version} npm run build'},
],
['@semantic-release/exec', {publishCmd:... | JavaScript | 0.000003 | @@ -646,16 +646,80 @@
SECRET,%0A
+ '--id',%0A process.env.WEXT_SHIPIT_FIREFOX_ID,%0A
|
fa0f644c92650877ad94d1b8b97f36fa00690f87 | fix isString function to underscore | js/services/booleanSearchEngine.js | js/services/booleanSearchEngine.js | define(
[
'underscore'
],
function(_) { "use strict";
/*
* Boolean search engine.
*/
var BooleanSearchEngine = function () {
var andExpression = 'and';
var patterns = ['tag:', 'url:', 'title:'];
var bookmarks = {};
// Trims defined characters from begining and ending of the string. Defaults to wh... | JavaScript | 0.001168 | @@ -395,15 +395,9 @@
f (!
-angular
+_
.isS
|
c3125014daa2e8b2470348d28006f40caef1f1e4 | update path file | api/api.js | api/api.js | require('../server.babel'); // babel registration (runtime transpilation for node)
import express from 'express';
import bodyParser from 'body-parser';
import config from '../src/config';
import PrettyError from 'pretty-error';
import http from 'http';
import SocketIo from 'socket.io';
import passport from 'passport';
... | JavaScript | 0.000001 | @@ -346,19 +346,16 @@
passport
-.js
';%0Aimpor
|
0623b54e217d9c63090b833efa5ee2e9e856f463 | replace link to documentation in Support Assistant | src/sap.ui.fl/src/sap/ui/fl/library.support.js | src/sap.ui.fl/src/sap/ui/fl/library.support.js | /*!
* ${copyright}
*/
/**
* Adds support rules of the <code>sap.ui.fl</code>
* library to the support infrastructure.
*/
sap.ui.define(["sap/ui/support/library", "sap/ui/fl/Utils", "sap/ui/dt/DesignTime", "sap/ui/core/Component"],
function(SupportLib, Utils, DesignTime, Component) {
"use strict";
var Categor... | JavaScript | 0 | @@ -1504,18 +1504,13 @@
om/#
-docs/guide
+topic
/f51
|
0e6583048ef6fb5f9abbf12a72c21c3feafb9e86 | Use login and signup in auth service | src/scenes/login/components/email/api/index.js | src/scenes/login/components/email/api/index.js | import fetch from 'api';
export default {
async signIn(email, password) {
try {
const body = { email, password };
const response = await fetch('/login', { method: 'POST', body: JSON.stringify(body) });
return { token: response.access_token };
} catch (error) {
return { error };
}
... | JavaScript | 0 | @@ -157,16 +157,24 @@
fetch('/
+auth/v2/
login',
@@ -447,16 +447,24 @@
fetch('/
+auth/v2/
signup',
|
d01fa832dfd46e5198612b8152bd2ecab8d0d985 | add receive param minSupp and minConf on api get mining | src/server/controllers/statistic-controller.js | src/server/controllers/statistic-controller.js | import Item from '../models/item-model';
import Invoice from '../models/invoice-model';
import InvoiceDetail from '../models/invoice_detail-model';
import { sequelize, Sequelize } from '../models/index-model';
import { convertToDDMMYYYY } from '../utilities/date_time_format';
import { FPGrowth } from '../utilities/FP_G... | JavaScript | 0 | @@ -1398,16 +1398,278 @@
sqlStr;
+%0A let minSupp = 0.2, minConf = 0.4;%0A%0A if(req.body.minSupp && req.body.minSupp %3E= 0 && req.body.minSupp %3C= 1)%0A minSupp = req.body.minSupp;%0A%0A if(req.body.minConf && req.body.minConf %3E= 0 && req.body.minConf %3C= 1)%0A minConf = req.body.minConf;... |
14b1da7b2f97716c4500719eedb19632960ae987 | fix review | packages/core/admin/admin/src/content-manager/components/AttributeFilter/GenericInput.js | packages/core/admin/admin/src/content-manager/components/AttributeFilter/GenericInput.js | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { DateTime } from '@buffetjs/custom';
import { DatePicker, InputText, InputNumber, Select, TimePicker } from '@buffetjs/core';
import { DateWrapper } from './components';
function GenericInput({ type, onChange, value, ..... | JavaScript | 0.000002 | @@ -653,32 +653,86 @@
onChange=%7Be =%3E
+ %7B%0A if (e.target.value) %7B%0A
onChange(e.targ
@@ -761,16 +761,47 @@
MM-DD'))
+;%0A %7D%0A %7D
%7D%0A
|
398fdf91456a036c3216893cb2b0e755b1243155 | Improve close watcher in QueryToolController.js | src/main/js/bundles/dn_querybuilder/QueryToolController.js | src/main/js/bundles/dn_querybuilder/QueryToolController.js | /*
* Copyright (C) 2021 con terra GmbH (info@conterra.de)
*
* 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 b... | JavaScript | 0.000001 | @@ -2070,16 +2070,17 @@
window
+?
.on(%22Clo
|
7cec15155ac2bb9d8c61dc8ab1951c6226c5cd3b | Remove prefixed concurrent APIs from www build (#17108) | packages/react-dom/src/client/ReactDOMFB.js | packages/react-dom/src/client/ReactDOMFB.js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflection';
import {getIsHydrating} from 'react-reconci... | JavaScript | 0 | @@ -1144,352 +1144,8 @@
);%0A%0A
-// TODO: These are temporary until we update the callers downstream.%0AReactDOM.unstable_createRoot = ReactDOM.createRoot;%0AReactDOM.unstable_createSyncRoot = ReactDOM.createSyncRoot;%0AReactDOM.unstable_interactiveUpdates = (fn, a, b, c) =%3E %7B%0A ReactDOM.unstable_flushDiscreteU... |
83b6498cac27b50427aee8c067a22cef812e65ac | remove hash overwrite | app/ipfslogic/retrieve.js | app/ipfslogic/retrieve.js | var jsencrypt = require("jsencrypt");
var ipfsAPI = require('ipfs-api');
var fileDownload = require('react-file-download');
function getFileFromIPFS(hash) {
var ipfs = ipfsAPI(
'ipfs.infura.io',
'5001',
{
protocol: 'https'
}
)
//var buffer = new Buffer("I'm a string!", "utf-8")
return ipfs.files.get(h... | JavaScript | 0.000004 | @@ -374,88 +374,8 @@
%3E %7B%0A
-%09//. TODO: REMOVE ME%0A%09hash = %22QmSgJ8t2bjrXBpy532ZL4vbQAvdVHmFqKBKG2UPPN6VVNr%22;%0A%0A
%09get
|
9dd97192b7325b7154699562358bcb07b21dc745 | Add HLS route | app/js/apps/www/routes.js | app/js/apps/www/routes.js | define(['app', 'providers/routes/extended-route-provider'], function(app) { 'use strict';
app.config(['extendedRouteProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$locationProvider.hashPrefix('!');
$routeProvider
.when('/np... | JavaScript | 0.000001 | @@ -554,16 +554,20 @@
ession/%22
+
%7D)%0A
@@ -819,16 +819,20 @@
ession/%22
+
%7D)%0A
@@ -1087,16 +1087,286 @@
ession/%22
+ %7D)%0A .when('/cop12/hls/insession', %7BtemplateUrl: '/app/views/meetings/documents/in-session.html', resolveController: true, progress : %7B stop : fal... |
559913883b66b52f522448a56c566ed358bfe584 | fix lint | app/js/auth/store/auth.js | app/js/auth/store/auth.js | import { getCoreSession, fetchAppManifest } from 'blockstack'
import log4js from 'log4js'
const logger = log4js.getLogger('auth/store/auth.js')
const APP_MANIFEST_LOADING = 'APP_MANIFEST_LOADING'
const APP_MANIFEST_LOADING_ERROR = 'APP_MANIFEST_LOADING_ERROR'
const APP_MANIFEST_LOADED = 'APP_MANIFEST_LOADED'
const AP... | JavaScript | 0.000013 | @@ -938,32 +938,146 @@
N_TO_APP%0A %7D%0A%7D%0A%0A
+function appMetaDataLoaded(app, appMetaData) %7B%0A return %7B%0A type: APP_META_DATA_LOADED,%0A appMetaData%0A %7D%0A%7D%0A%0A%0A
function clearSe
@@ -1096,24 +1096,24 @@
ppDomain) %7B%0A
-
return dis
@@ -1944,526 +1944,8 @@
%0A%7D%0A%0A
-function loa... |
db7c8494aa6c1fdff5a627f009593ce588fe6f2f | switch page correct | app/js/page/login_page.js | app/js/page/login_page.js | define(function (require) {
'use strict';
var templates = require('js/templates'),
template = templates['login'];
return initialize;
function initialize() {
$('#app').fadeOut(function() {
console.log(template);
$('#app').html(template).fadeIn();
});
... | JavaScript | 0.000012 | @@ -121,16 +121,25 @@
'login'%5D
+.render()
;%0A%0A r
@@ -228,43 +228,8 @@
) %7B%0A
- console.log(template);%0A
|
4436cd0387d6239cf17f57d2ab90443b6be609b7 | Remove a leftover line from rebase in previous commit | test/lib/viewports/web-mercator-viewport.spec.js | test/lib/viewports/web-mercator-viewport.spec.js | // Copyright (c) 2015 - 2017 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... | JavaScript | 0 | @@ -1126,67 +1126,8 @@
E.%0A%0A
-import %7BWebMercatorViewport%7D from 'deck.gl/lib/viewports';%0A
impo
|
b0dda7afa65931e2f72ff118a61803b2ab3dbd75 | Make AnimatedChart chart type overrideable | content/assets/js/animation.js | content/assets/js/animation.js | // Utility functions for animated plots.
// Thanks to http://stackoverflow.com/a/10284006 for zip() function.
function zip(arrays) {
return arrays[0].map(function(_, i) {
return arrays.map(function(array) { return array[i]; })
});
}
// Create a covariance matrix with compact support for a given number of equa... | JavaScript | 0.000001 | @@ -2112,19 +2112,133 @@
d, title
-) %7B
+, chart_type) %7B%0A chart_type = (typeof chart_type !== 'undefined') ?%0A chart_type : google.visualization.LineChart;
%0A // Th
@@ -2993,43 +2993,19 @@
new
-%0A google.visualization.LineChart
+ chart_type
(doc
|
93e05c3d01226b129d1ef55a949cefcaf68fc220 | Add new VAOS feature flag for flat facility list (#14150) | src/platform/utilities/feature-toggles/featureFlagNames.js | src/platform/utilities/feature-toggles/featureFlagNames.js | export default Object.freeze({
preEntryCovid19Screener: 'preEntryCovid19Screener',
dashboardShowCovid19Alert: 'dashboardShowCovid19Alert',
facilityLocatorShowCommunityCares: 'facilityLocatorShowCommunityCares', // Facilities team has deprecated this flag for the frontEnd logic, there is still backend support thou... | JavaScript | 0 | @@ -1448,24 +1448,100 @@
ssCareNew',%0A
+ vaOnlineSchedulingFlatFacilityPage: 'vaOnlineSchedulingFlatFacilityPage',%0A
vaGlobalDo
|
50c1753cfbb10674de14fc2962f5772e75b1644a | remove autorenew import | web/src/components/gnd-feature-type-editor/gnd-form-element-editor.js | web/src/components/gnd-feature-type-editor/gnd-form-element-editor.js | /**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | JavaScript | 0 | @@ -1360,56 +1360,8 @@
er';
-%0Aimport %7B Autorenew %7D from '@material-ui/icons';
%0A%0Aco
|
350cbf698847365f1665f4f2542684d1b9595597 | Include metrics in the preloaded bits for the pipelines page | app/lib/RelayPreloader.js | app/lib/RelayPreloader.js | import Relay from 'react-relay';
import fromGraphQL from 'react-relay/lib/fromGraphQL';
const QUERIES = {
"organization/show": Relay.QL`
query PipelinesList($organization: ID!, $team: ID) {
organization(slug: $organization) {
id
slug
name
teams(first: 500) {
edges ... | JavaScript | 0 | @@ -930,32 +930,402 @@
%7D%0A
+ metrics(first: 6) %7B%0A edges %7B%0A node %7B%0A label%0A value%0A url%0A id%0A %7D%0A cursor%0A %7D%0... |
04ee6e908dd65a6e94b127e534854bee812fff27 | fix typo | packages/telescope-comments/lib/comments.js | packages/telescope-comments/lib/comments.js | /**
* The global namespace for Comments.
* @namespace Comments
*/
Comments = new Mongo.Collection("comments");
/**
* Comments schema
* @type {SimpleSchema}
*/
Comments.schema = new SimpleSchema({
/**
ID
*/
_id: {
type: String,
optional: true
},
/**
The `_id` of the parent comment, if th... | JavaScript | 0.999991 | @@ -3104,10 +3104,12 @@
d%0A
-Ev
+Comm
ents
|
aa34b4e89591cb7b6d0c53629160a927c3ec29a4 | Replace default transport for logging, remove file logging | packages/logging/index.js | packages/logging/index.js | const winston = require('winston');
module.exports = ({
filename,
level,
transports: transports = [{ type: 'Console', options: { level: 'debug' } }],
}) => {
if (filename) {
transports.push({
type: 'File',
options: { filename, level: 'debug' },
});
}
if (level) {
for (const transpor... | JavaScript | 0.000001 | @@ -54,20 +54,8 @@
(%7B%0A
- filename,%0A
le
@@ -87,17 +87,28 @@
orts = %5B
-%7B
+%0A %7B%0A
type: '
@@ -116,16 +116,22 @@
onsole',
+%0A
options
@@ -137,124 +137,307 @@
s: %7B
- level: 'debug' %7D %7D%5D,%0A%7D) =%3E %7B%0A if (filename) %7B%0A transports.push(%7B%0A type: 'File',%0A ... |
994a0b2981563e8cecd58e7b648050cf0b72d425 | Update asana-in-bitbucket.js | scripts/asana-in-bitbucket.js | scripts/asana-in-bitbucket.js | // ==UserScript==
// @name Asana Links in Bitbucket
// @namespace https://github.com/GetintheLoop/asana-highlighter/
// @version 0.2
// @description Use Asana Task Id and render as links in Bitbucket
// @author Lukas Siemon
// @match https://bitbucket.org/*
// @grant none
// @update... | JavaScript | 0.000001 | @@ -140,17 +140,17 @@
0.
-2
+3
%0A// @des
@@ -971,16 +971,14 @@
ign:
-text-top
+middle
%22%3E'
|
64f01cc5fb57fdd6cef81dc643b112ee7439f8ca | Update passwordToggler.js | passwordToggler.js | passwordToggler.js | function PasswordToggler($strSelector, callBack){
this.strPrefix = "";
this.strSelector = $strSelector;
this.strHandler = "click";
this.strIconShow = "fa fa-eye";
this.strIconHide = "fa fa-eye-slash";
this.strTextShow = "Show password";
... | JavaScript | 0 | @@ -5797,17 +5797,17 @@
-c
+C
onsole.l
|
4fec073c3f59f7b853ec0d4f2d7eb17d80c8b9ac | update list on changes | src/MultiSelect/MultiSelectPopup.js | src/MultiSelect/MultiSelectPopup.js | import React from 'react';
import PropTypes from 'prop-types';
import find from 'lodash/find';
import trim from 'lodash/trim';
import Fuse from 'fuse.js';
import Link from '../Link/Link';
import { compare, findIdentifiables, isDefined } from '../util/utils';
import IconInput from '../InputIcon/IconInput';
import CheckB... | JavaScript | 0 | @@ -2011,24 +2011,137 @@
eChanged) %7B%0A
+ if (this.props.options !== nextProps.options) %7B%0A this._applySearch('');%0A %7D%0A
@@ -4118,24 +4118,96 @@
value =%3E %7B%0A
+ if (this.state.query === value) %7B%0A return;%0A %7D%0A
t... |
29153be07ec67046bdcaa9f88250f3d79e86e935 | add resolve path to webpack config | packages/xod-client-browser/webpack/base.js | packages/xod-client-browser/webpack/base.js | const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const autoprefixer = require('autoprefixer');
const pkgpath = subpath => path.join(__dirname, '..', subpath);
const assetsPath = fs.realpathSync(pkgpath('node_modules/xo... | JavaScript | 0.000001 | @@ -838,24 +838,75 @@
_modules'),%0A
+ pkgpath('node_modules/xod-js/node_modules'),%0A
%5D,%0A e
|
672799e345e4a173c1dab040f0cf3c8f18fbfe07 | Revert "fix up SPA route dir creation + casing" | scripts/generate-redirects.js | scripts/generate-redirects.js | #!/usr/bin/env node
// Generates redirects for legacy MozVR.com site.
// (Useful script for generating directory structure for a SPA too!)
var fs = require('fs');
var path = require('path');
var urllib = require('url');
require('shelljs/global');
var DESTINATION_DIR = '_prod';
var ROOT_DIR = path.join(__dirname, '.... | JavaScript | 0 | @@ -1971,60 +1971,20 @@
-if (!uri) %7B return; %7D%0A addRoute(uri.toLowerCase()
+addRoute(uri
, fa
|
6b182990cf3f7e94b8db4830efdb89de4948bfe5 | add more PhET related bad texts, https://github.com/phetsims/phet-io/issues/1472 | eslint/rules/bad-text.js | eslint/rules/bad-text.js | // Copyright 2018-2019, University of Colorado Boulder
/* eslint-disable */
/**
* Lint detector for invalid text. Checks the entire file and does not correctly report line number.
* Lint is disabled for this file so the bad texts aren't themselves flagged.
*
* @author Sam Reid (PhET Interactive Simulations)
*/
m... | JavaScript | 0 | @@ -786,16 +786,45 @@
HETIO',%0A
+ 'Phet-iO',%0A ' Phet ',%0A
'phe
|
e2476f6866a5d0da801ee5a5e5ff3d502cdcf392 | Fix #230 for CORS | tasks/grunticon/static/grunticon.embed.cors.js | tasks/grunticon/static/grunticon.embed.cors.js | /*global grunticon:true*/
(function(grunticon, window){
"use strict";
var document = window.document;
// x-domain get (with cors if available)
var ajaxGet = function( url, cb ) {
var xhr = new window.XMLHttpRequest();
if ( "withCredentials" in xhr ) {
xhr.open( "GET", url, true );
} else if ( typeof windo... | JavaScript | 0.000002 | @@ -802,24 +802,40 @@
con.href );%0A
+%09%09%09%09if( ref )%7B%0A%09
%09%09%09%09ref.pare
@@ -869,24 +869,25 @@
ref );%0A%09%09%09%09
+%09
ref.parentNo
@@ -905,24 +905,25 @@
ild( ref );%0A
+%09
%09%09%09%09gruntico
@@ -967,23 +967,31 @@
le ) );%0A
+%09
%09%09%09%09if(
+ typeof
callbac
@@ -991,20 +991,36 @@
... |
4d0cd622bd1997e3587d41480de34e17c20a3aca | optimize script | scripts/mdl-variables-copy.js | scripts/mdl-variables-copy.js | /* eslint-disable */
var fs = require('fs');
function copyFileSync(srcFile, destFile) {
try {
var BUF_LENGTH, buff, bytesRead, fdr, fdw, pos;
BUF_LENGTH = 64 * 1024;
buff = new Buffer(BUF_LENGTH);
fdr = fs.openSync(srcFile, 'r');
fdw = fs.openSync(destFile, 'w');
byte... | JavaScript | 0.000002 | @@ -835,16 +835,17 @@
es.scss'
+;
%0Avar new
@@ -941,16 +941,17 @@
es.scss'
+;
%0A%0Afs.acc
|
63c704da4544d3a9dcce9651925ea2a13c3a4717 | set BoardView height/width | app/src/views/GameView.js | app/src/views/GameView.js | /* globals define */
/**
* GameView contains all the gameplay views, i.e. GameHeaderView and BoardView
*/
define(function(require, exports, module) {
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Transform = require('famous/core/Transform');
var S... | JavaScript | 0.000001 | @@ -650,24 +650,25 @@
ardView() %7B%0A
+%0A
var layo
@@ -719,10 +719,31 @@
ze:
-44
+this.options.headerSize
%0A
@@ -783,19 +783,131 @@
ardView(
+%7B%0A viewHeight: window.innerHeight - this.options.headerSize,%0A viewWidth: window.innerWidth - 10%0A %7D
);%0A
+%0A
this
@@ -1361,16 +1361,... |
dfbc127c20bc1107cf510710a7c4c1aa895ab893 | Use the right i18n string in setup store | app/stores/setup-store.js | app/stores/setup-store.js |
let Promise = require('bluebird')
let path = require('path')
let partial = require('underscore').partial
let ibrew = require('../util/ibrew')
let xdg_mime = require('../util/xdg-mime')
let Logger = require('../util/log').Logger
let log = require('../util/log')('setup-store')
let Store = require('./store')
let AppDi... | JavaScript | 0.000001 | @@ -1383,21 +1383,29 @@
.status.
-error
+setup_failure
', 'erro
|
30ce16515f1ac36215d7f1e368c88db5dc204b2b | fix local storage namespace | src/app/buildvolume/models/model.js | src/app/buildvolume/models/model.js | /**
* @class AppBuildvolumeModel
* @extends GuiPanelModel
*/
var AppBuildvolumeModel = GuiPanelModel.extend(
{
/**
* Panel target id.
*
* @protected
* @property target
* @type {String}
* @default 'columnOne'
*/
target: 'columnOne',
/**
* Panel position index.
*
... | JavaScript | 0.000005 | @@ -788,20 +788,8 @@
al('
-AppViewer3d.
size
@@ -906,16 +906,31 @@
%7D
+, 'AppViewer3d'
);%0A%0A
|
c64cf9912e17dfeaafa6dccb2bde3a6644b0c745 | Fix flow issue | src/app/components/YouTube/index.js | src/app/components/YouTube/index.js | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadScript } from 'redux-scripts-manager';
import cx from 'classnames';
import { noop } from 'lodash-es';
import Spacer from 'app/components/Spacer';
import styles from './styles.styl';
type Props = {
className: ?st... | JavaScript | 0.000001 | @@ -369,23 +369,16 @@
onReady:
- null %7C
() =%3E v
@@ -398,23 +398,16 @@
eChange:
- null %7C
(event:
|
af1b70a724ad614cac971f070c50dd9acc0010c3 | update slack-msg-callback.js | scripts/slack-msg-callback.js | scripts/slack-msg-callback.js | //var slackToken = process.env.HUBOT_SLACK_VERIFY_TOKEN;
module.exports = (robot) => {
// robot.router.post('/hubot/slack-msg-callback', (req, res) => {
// var data = null;
// if(req.body.payload) {
// try {
// data = JSON.parse(req.body.payload);
// } catch(e) {
// robot.logger.... | JavaScript | 0.000001 | @@ -72,16 +72,24 @@
s =
+function
(robot)
=%3E %7B
@@ -84,18 +84,16 @@
(robot)
-=%3E
%7B%0A //
|
6e5939c7a44ab31ced1f10ec8bfd251f53ab99c0 | Add DevTools to Context Menu | app/utils/context-menu.js | app/utils/context-menu.js | import Ember from 'ember';
import config from '../config/environment';
function Menu() {
var gui = window.requireNode('nw.gui');
var menu = new gui.Menu();
// Commands
var cut = new gui.MenuItem({
label: 'Cut',
click: function () {
document.execCommand('cut');
}
... | JavaScript | 0 | @@ -931,16 +931,187 @@
%0A %7D);
+%0A var devTools = new gui.MenuItem(%7B%0A label: 'DevTools',%0A click: function () %7B%0A require('nw.gui').Window.get().showDevTools();%0A %7D%0A %7D);
%0A%0A me
@@ -1259,16 +1259,47 @@
ector);%0A
+ menu.append(devTools);%0A
... |
a5621a41ab0db534a8995aa9f8909fcdddd62718 | test course patch permissions | test/services/courses/services/courses.test.js | test/services/courses/services/courses.test.js | const assert = require('assert');
const chai = require('chai');
const app = require('../../../../src/app');
const courseService = app.service('courses');
// const testObjects = require('../helpers/testObjects')(app);
describe('course service', () => {
it('registered the courses service', () => {
assert.ok(course... | JavaScript | 0 | @@ -3,46 +3,18 @@
nst
-assert = require('assert');%0Aconst chai
+%7B expect %7D
= r
@@ -126,11 +126,8 @@
);%0A%0A
-//
cons
@@ -154,16 +154,19 @@
ire('../
+../
helpers/
@@ -273,17 +273,14 @@
%7B%0A%09%09
-assert.ok
+expect
(cou
@@ -290,16 +290,36 @@
Service)
+.to.not.be.undefined
;%0A%09%7D);%0A%0A
@@ -342,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.