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 |
|---|---|---|---|---|---|---|---|
bd7c9df4b3c7a35c0e8d8542a68e3ffd2b6d37d2 | Add Cohort field to SectionParticipant model | sencha-workspace/SlateAdmin/app/model/course/SectionParticipant.js | sencha-workspace/SlateAdmin/app/model/course/SectionParticipant.js | /*jslint browser: true, undef: true *//*global Ext*/
Ext.define('SlateAdmin.model.course.SectionParticipant', {
extend: 'Ext.data.Model',
requires: [
'Emergence.proxy.Records'
],
// model config
idProperty: 'ID',
fields: [
{
name: "ID",
type: "int",
... | JavaScript | 0 | @@ -1251,32 +1251,108 @@
%7D,%0A %7B%0A
+ name: %22Cohort%22,%0A type: %22string%22%0A %7D,%0A %7B%0A
name
|
6e6f3c2f899437a6ff5ace4a2bcdd84686edd485 | add glyphicon option to the button component | ui/button.reel/button.js | ui/button.reel/button.js | /**
* @module /ui/button.reel
*/
var AbstractButton = require("montage/ui/base/abstract-button").AbstractButton;
/**
* @class Button
* @extends AbstractButton
*/
exports.Button = AbstractButton.specialize( /** @lends Button# */ {
hasTemplate: {
value: false
},
constructor: {
value: f... | JavaScript | 0 | @@ -676,24 +676,69 @@
ull%0A %7D,%0A%0A
+ glyphicon: %7B%0A value: null%0A %7D,%0A%0A
enterDoc
@@ -1951,16 +1951,461 @@
%7D);
+%0A%0A if (!!this.glyphicon)%7B%0A var span = document.createElement(%22span%22);%0A span.className = %22glyphic... |
d44b557c6ddf2233da9689ebc75543a499dede17 | fix to change local function | src/sc/lang/compiler/codegen/codegen.js | src/sc/lang/compiler/codegen/codegen.js | (function(sc) {
"use strict";
require("../compiler");
require("./scope");
var slice = [].slice;
var strlib = sc.libs.strlib;
var Scope = sc.lang.compiler.Scope;
function CodeGen(parent, opts) {
if (!parent) {
initialize(this, opts);
} else {
this.parent = parent;
this.opts = ... | JavaScript | 0 | @@ -843,456 +843,8 @@
%7D;%0A%0A
- CodeGen.prototype.toSourceNodeWhenNeeded = function(generated) %7B%0A if (Array.isArray(generated)) %7B%0A return this.flattenToString(generated);%0A %7D%0A return generated;%0A %7D;%0A%0A CodeGen.prototype.flattenToString = function(list) %7B%0A var result = %22%... |
b157092890034bf7e03625ea8a57dd4580295e02 | Allow center and justify alignment classes | addon/views/llama-column.js | addon/views/llama-column.js | import Em from 'ember';
import { join } from 'llama-table/computed';
var get = Em.get;
var set = Em.set;
var observer = Em.observer;
var computed = Em.computed;
var alias = computed.alias;
var not = computed.not;
var LlamaColumn = Em.CollectionView.extend({
classNames: 'llama-column',
classNameBindings: ['textAlignC... | JavaScript | 0 | @@ -1281,16 +1281,98 @@
right';%0A
+%09%09%09case 'center': return 'text-center';%0A%09%09%09case 'justify': return 'text-justify';%0A
%09%09%7D%0A%09%7D)%0A
|
6507e12439509d41d7ce2a28d791413f70b47468 | Fix datasets loading after upload start | src/scripts/dashboard/datasets.store.js | src/scripts/dashboard/datasets.store.js | // dependencies ----------------------------------------------------------------------
import Reflux from 'reflux';
import Actions from './datasets.actions.js';
import bids from '../utils/bids';
import userStore from '../user/user.store.js';
// store setup -----------------------------------------------... | JavaScript | 0 | @@ -1821,32 +1821,101 @@
ets(isPublic) %7B%0A
+ if (isPublic === undefined) %7BisPublic = this.data.isPublic;%7D%0A
let isSi
|
fce2dfe69b95ce86d9f02ec61a499ceacf6ae56b | Add team member removal functionality | src/common/features/team-list/teamListCtrl.js | src/common/features/team-list/teamListCtrl.js | (function() {
"use strict";
angular
.module('awesome-app.search')
.controller('TeamListCtrl', TeamListCtrl);
TeamListCtrl.$inject = ['$scope', 'SearchService'];
function TeamListCtrl($scope, SearchService) {
var vm = this;
angular.extend(vm, {
deselectAllO... | JavaScript | 0 | @@ -2790,24 +2790,71 @@
%5D;%0A%0A
+ $scope.currentActiveTeamIndex = null;%0A%0A
func
@@ -3966,32 +3966,83 @@
Service(index);%0A
+ $scope.currentActiveTeamIndex = index;%0A
$sco
@@ -4152,45 +4152,77 @@
-return index; //TODO: Functionality
+$scope.teams%5B$scope.... |
9d0bf13ca0c3558ab09d3711a64b4539d40ec0d0 | Fix ToggleSwitch A11Y (trapping tab and switch v. checkbox) | src/components/views/elements/ToggleSwitch.js | src/components/views/elements/ToggleSwitch.js | /*
Copyright 2019 New Vector Ltd
Copyright 2019 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... | JavaScript | 0 | @@ -715,17 +715,11 @@
ort
-%7BKeyCode%7D
+sdk
fro
@@ -734,16 +734,13 @@
/../
-Keyboard
+index
%22;%0A%0A
@@ -774,16 +774,52 @@
element
+, written with Accessibility in mind
%0Aconst T
@@ -919,65 +919,8 @@
%3E %7B%0A
- e.stopPropagation();%0A e.preventDefault();%0A
@@ -937,33 +937,32 @@
sa... |
6d32c5bcf404d10de5e4e137ed4f1e89492ee21f | Introduce error handling | utils/db-view/unserialize.js | utils/db-view/unserialize.js | // Unserialize view string into array of objects
'use strict';
module.exports = function (view, type) {
return view.split('\n').map(function (data) {
return type.getById(data.slice(data.indexOf('.') + 1));
});
};
| JavaScript | 0.000001 | @@ -58,16 +58,49 @@
rict';%0A%0A
+var stringify = JSON.stringify;%0A%0A
module.e
@@ -185,62 +185,253 @@
%7B%0A%09%09
-return type.getById(data.slice(data.indexOf('.') + 1))
+var id = data.slice(data.indexOf('.') + 1)%0A%09%09 , obj = type.getById(id);%0A%09%09if (!obj) %7B%0A%09%09%09throw new Error(%22Not object f... |
7d043dc9def67cba0c787249cafa0fe85731a6eb | Update Virus.js | src/entity/Virus.js | src/entity/Virus.js | var Cell = require('./Cell');
function Virus() {
Cell.apply(this, Array.prototype.slice.call(arguments));
this.cellType = 2;
this.isSpiked = true;
this.isMotherCell = false; // Not to confuse bots
this.setColor({ r: 0x33, g: 0xff, b: 0x33 });
}
module.exports = Virus;
Virus.prototype = ... | JavaScript | 0 | @@ -2017,36 +2017,8 @@
xp =
- (Math.random() * (3 - 2)) +
2;%0D
|
60d382045f098166773667636527570fa1a757cc | Remove unnecessary eslint-disable | src/entry.parcel.js | src/entry.parcel.js | import * as pdfjs from 'pdfjs-dist/legacy/build/pdf';
import Document from './Document';
import Outline from './Outline';
import Page from './Page';
import { isLocalFileSystem, warnOnDev } from './shared/utils';
if (isLocalFileSystem) {
// eslint-disable-next-line no-console
warnOnDev('You are running React-PDF ... | JavaScript | 0.000681 | @@ -237,49 +237,8 @@
) %7B%0A
- // eslint-disable-next-line no-console%0A
wa
|
3913c5fd80576350a61dd9697031038ba7f913f1 | fix normals bug | src/extras/geometries/CircleBufferGeometry.js | src/extras/geometries/CircleBufferGeometry.js | /**
* @author benaadams / https://twitter.com/ben_a_adams
*/
THREE.CircleBufferGeometry = function ( radius, segments, thetaStart, thetaLength ) {
THREE.BufferGeometry.call( this );
this.type = 'CircleBufferGeometry';
this.parameters = {
radius: radius,
segments: segments,
thetaStart: thetaStart,
theta... | JavaScript | 0.000001 | @@ -806,17 +806,17 @@
ormals%5B
-3
+2
%5D = 1.0
|
e7f20717e08b373e41c58f739f8760ff2caf88b3 | add to test | src/filter/index.js | src/filter/index.js | var DocumentDBClient = require('documentdb').DocumentClient;
module.exports = function (context, message) {
//fliter on twitter handle
context.bindings.out = message;
context.done();
}; | JavaScript | 0 | @@ -55,16 +55,401 @@
lient;%0A%0A
+var config = %7B%0A DatabaseId: %22missingdata%22,%0A FacebookCollectionId: %22facebook-profile%22,%0A TwitterCollectionId: %22twitter-profile%22,%0A Host: process.env.DocDb_Host,%0A AuthKey: process.env.DocDb_AuthKey,%0A%7D;%0Aconfig.collLink = 'dbs/' + config.Databas... |
71683c3cabc8a6fb2f3ddd7054e8d9dedb272c56 | remove console log | techs/es6-modules.js | techs/es6-modules.js | var path = require('path');
var transpiler = require('es6-module-transpiler');
var SystemFormatter = require('es6-module-transpiler-system-formatter');
var Container = transpiler.Container;
var FileResolver = transpiler.FileResolver;
module.exports = require('enb/lib/build-flow').create()
.name('es6-modules')
... | JavaScript | 0.000003 | @@ -779,63 +779,8 @@
) %7B%0A
- console.log(new FileResolver(resolvers));%0A%0A
|
ca257bff70af03cd6894d8fa0b771ce7dde77d3d | Stop inputStream#end ending ffmpeg process | src/transcoders/ffmpeg/FfmpegProcess.js | src/transcoders/ffmpeg/FfmpegProcess.js | const EventEmitter = require('events').EventEmitter;
const ChildProcess = require('child_process');
/**
* A spawned FFMPEG process
*/
class FfmpegProcess extends EventEmitter {
constructor(ffmpegTranscoder, options) {
super();
/**
* The ffmpeg process
* @type {ChildProcess}
*/
this.proce... | JavaScript | 0.000001 | @@ -1742,16 +1742,32 @@
ss.stdin
+, %7B end: false %7D
);%0A%0A
|
0c4d99a941f71ae461e9311788a3b3f71aec368e | add reducers | src/reducers/EditApp.js | src/reducers/EditApp.js | const EditApp = (state, action) => {
switch (action.type) {
case 'ADD_TODO':
return {
id: action.id,
text: action.text,
completed: false
}
case 'TOGGLE_TODO':
if (state.id !== action.id) {
return state
}
return Object.assign({}, state, {
c... | JavaScript | 0.000001 | @@ -69,16 +69,17 @@
se '
-ADD_TODO
+EDIT_TEXT
':%0A
@@ -100,18 +100,23 @@
-id
+element
: action
@@ -116,18 +116,23 @@
action.
-id
+element
,%0A
@@ -154,216 +154,87 @@
text
-,%0A completed: false%0A %7D%0A case 'TOGGLE_TODO':%0A if (state.id !== action.id) %7B%0A return... |
8a442f9cbaea9edfcaa6e8bbd8a230724600d319 | update action types | src/redux/most-viral.js | src/redux/most-viral.js | import fetch from 'isomorphic-fetch';
const VIRAL_REQUESTED = 'VIRAL_REQUESTED';
const VIRAL_SUCCESS = 'VIRAL_SUCCESS';
const VIRAL_FAILURE = 'VIRAL_FAILURE';
const defaultState = {
error: null,
fetching: false,
items: [],
};
export default function mostViral(state = defaultState, action) {
switch (a... | JavaScript | 0 | @@ -92,18 +92,20 @@
AL_SUCCE
-SS
+EDED
= 'VIRA
@@ -111,18 +111,20 @@
AL_SUCCE
-SS
+EDED
';%0Aconst
@@ -134,19 +134,18 @@
RAL_FAIL
-UR
E
+D
= 'VIRA
@@ -150,19 +150,18 @@
RAL_FAIL
-UR
E
+D
';%0A%0Acons
@@ -453,18 +453,20 @@
AL_SUCCE
-SS
+EDED
:%0A
@@ -590,19 +590,18 @@
RAL_FAIL
-UR
E
+D
:%0A
... |
eb86f6488ae08f767aeb1fe63722a327e41bee5a | Add display type to notifications to allow snackbars to be shown. | src/renderer/rewards.js | src/renderer/rewards.js | import { Lbry, doNotify } from 'lbry-redux';
import Lbryio from 'lbryio';
function rewardMessage(type, amount) {
return {
new_developer: __('You earned %s for registering as a new developer.', amount),
new_user: __('You earned %s LBC new user reward.', amount),
verified_email: __('You earned %s LBC for v... | JavaScript | 0 | @@ -2233,16 +2233,51 @@
false,%0A
+ displayType: %5B'snackbar'%5D,%0A
%7D)
|
2ef9434e18addb38cbefbb6d91e990959b3c7916 | Add texture options function support. Resolves #30 | src/renderer/texture.js | src/renderer/texture.js | const OPTIONS_KEY = {
magFilter: 0x2800,
minFilter: 0x2801,
wrapS: 0x2802,
wrapT: 0x2803,
maxAnisotropy: 0x84FE
};
export function isSource(source) {
if (source instanceof HTMLElement) return true;
if (source instanceof ImageData) return true;
return false;
}
export function isLoaded(source) {
if (i... | JavaScript | 0 | @@ -1566,36 +1566,212 @@
-let type = this.options.type
+if (typeof format === 'function') %7B%0A format = format(this.options, this.renderer);%0A %7D%0A let type = this.options.type;%0A if (typeof type === 'function') type = type(this.options, this.renderer)
;%0A
@@ -3405,24 +3405,169 @@
s.param... |
ea11f54583960bc1233bc8fd004898d6aeaa0645 | Apply semistandard feedback | src/geo/leaflet/leaflet-layer-view-factory.js | src/geo/leaflet/leaflet-layer-view-factory.js | var _ = require('underscore');
var log = require('cdb.log');
var LeafletTiledLayerView = require('./leaflet-tiled-layer-view');
var LeafletWMSLayerView = require('./leaflet-wms-layer-view');
var LeafletPlainLayerView = require('./leaflet-plain-layer-view');
var LeafletCartoDBLayerGroupView = require('./leaflet-cartodb-... | JavaScript | 0 | @@ -1086,32 +1086,33 @@
RenderModeResult
+
(mapModel) %7B%0A v
@@ -1852,33 +1852,35 @@
mated-features='
-+
+ +
estimatedFeature
@@ -2164,17 +2164,19 @@
atures='
-+
+ +
estimate
|
e196017f0f1bc0220b0ac64273b0de747a2c2e06 | fix lint errors | src/rt.js | src/rt.js | import {RelativeTime} from './relativeTime';
export class RtValueConverter {
static inject() { return [RelativeTime]; }
constructor(relativeTime) {
this.service = relativeTime;
}
toView(value) {
if (value === null
|| typeof value === 'undefined'
|| (typeof value === 'string' && value.trim(... | JavaScript | 0.000011 | @@ -355,28 +355,24 @@
alue;%0A %7D%0A
-
%0A if (typ
@@ -478,20 +478,16 @@
;%0A %7D%0A
-
%0A ret
|
113daaa57dc8ef13f2da3e2f0f462223e9510f8f | update title scene | src/scene/TitleScene.js | src/scene/TitleScene.js | /*
* TitleScene.js
* 2014/08/11
* @auther minimo
* This Program is MIT license.
*/
//タイトルシーン
tm.define("tds.TitleScene", {
superClass: tm.app.Scene,
init: function() {
this.superInit();
app.background = "rgba(0, 0, 0, 1.0)";
var baseY = 200;
var t1 = this.title1 =... | JavaScript | 0.000001 | @@ -261,34 +261,8 @@
%22;%0A%0A
- var baseY = 200;%0A%0A
@@ -368,19 +368,24 @@
t1.x =
-320
+SC_W*0.5
; t1.y =
@@ -385,21 +385,24 @@
t1.y =
-baseY
+SC_H*0.2
;%0A
@@ -635,19 +635,24 @@
t2.x =
-320
+SC_W*0.5
; t2.y =
@@ -656,17 +656,16 @@
y =
-baseY+100
+SC_H*0.5
;%0A
@@ -1306,11 +1306... |
229a111f06925431796923c9e44620112d94ea3a | Fix toggling | src/graph.legend.js | src/graph.legend.js | define( [], function() {
var legendDefaults = {
frame: false,
backgroundColor: 'transparent',
frameWidth: 0,
frameColor: 'transparent',
paddingTop: 10,
paddingLeft: 10,
paddingBottom: 10,
paddingRight: 10
}
var Legend = function( graph, options ) {
this.options = $.extend( {}, legendDefaults, op... | JavaScript | 0.000001 | @@ -1557,24 +1557,54 @@
ion( j ) %7B%0A%0A
+%09%09%09%09%09var g, line, text;%0A%09%09%09%09%09%0A
%09%09%09%09%09g = doc
@@ -1712,20 +1712,20 @@
+ 10 +
-this
+self
.options
@@ -3801,11 +3801,19 @@
h',
-200
+this.width
);%0A%09
@@ -3857,26 +3857,19 @@
t',
-series.length * 20
+this.height
);%0A
|
6f6aad587edcc056b24500270c31f003dd01caf4 | Change 'connected' to 'connect' in websocket | src/server/websocket.js | src/server/websocket.js | module.exports = function(server) {
var cookie = require('cookie'),
cookieParser = require('cookie-parser'),
config = require('./config/config'),
logger = config.logger('websocket'),
playerMod = require('./routes/modules/player'),
WebSocket = require('ws');
const Player = require('./models/PlayerModel').mo... | JavaScript | 0.999216 | @@ -1355,18 +1355,16 @@
'connect
-ed
', type:
|
76cfdd44a62fe852b29faef670794a42d4d718c4 | Use id as user selector instead of username or email | packages/accounts-password/password_client.js | packages/accounts-password/password_client.js | // Attempt to log in with a password.
//
// @param selector {String|Object} One of the following:
// - {username: (username)}
// - {email: (email)}
// - a string which may be a username or email, depending on whether
// it contains "@".
// @param password {String}
// @param callback {Function(error|undefined)... | JavaScript | 0 | @@ -4299,253 +4299,57 @@
-// in Meteor.loginWithPassword.%0A var userSelector = %7B%7D;%0A if (Meteor.user().username) %7B%0A userSelector = %7B username: Meteor.user().username %7D;%0A %7D else if (Meteor.user().emails && Meteor.user().emails.length) %7B
+srpUpgradePath(%7B%... |
83159e3b9a1b11d2171390f51706726fd0ee80e4 | fix typo | node/src/route/pipe.js | node/src/route/pipe.js | // route /pipe
const http = require('http');
const url = require('url');
let fetchImage = function(sUrl, onsuccess, method, onerror) {
const urlData = url.parse(sUrl);
const options = {
port: urlData.port || 80,
host: urlData.host || 'localhost',
method: method || 'GET',
path: ... | JavaScript | 0.999991 | @@ -985,16 +985,22 @@
xports =
+ async
(ctx, n
|
539ced252cf90bd7625f79f85c4de3243d4c06a1 | Fix test case trace details toggle in Firefox | src/static/js/testor.js | src/static/js/testor.js | function Testor() {
var testNodes = {};
var container = $('#testorcontainer');
var testor = {};
testor.updateTest = function(test, result) {
var node;
if (test.name in testNodes) {
node = testNodes[test.name];
if (( ! result) || ( ! result.resultName)) {
delete testNodes[tes... | JavaScript | 0 | @@ -828,24 +828,37 @@
iv%3E').click(
+function() %7B
onTestToggle
@@ -862,16 +862,25 @@
gleTrace
+(node); %7D
));%0A
@@ -1713,63 +1713,14 @@
ace(
-event) %7B%0A var div = event.currentTarget.parentElement;
+div) %7B
%0A $
|
de358084621aae223e3cb41a4462211edf830dbd | Create 4096 bit keys | node_modules/c9/ssh.js | node_modules/c9/ssh.js | /**
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax.org>
* @author Fabian Jakobs <fabian AT ajax DOT org>
* @author Mike de Boer <mike AT ajax DOT org>
* @license http://github.com/ajaxorg/node-sftp/blob/master/LICENSE MIT License
*/
"use strict";
var child_process = require("child_process");
var fs ... | JavaScript | 0.000002 | @@ -3672,24 +3672,49 @@
-t rsa %22 +%0A
+ %22-b 4096 %22 +%0A
|
9cc26c09a282624f914892589a9102adbf3757e4 | test that *all* initializers are invoked | packages/ember-simple-auth/tests/core_test.js | packages/ember-simple-auth/tests/core_test.js | import { setup, initializeExtension, Configuration } from 'ember-simple-auth/core';
import { Base as Authorizer } from 'ember-simple-auth/authorizers/base';
import { Stores } from 'ember-simple-auth/stores';
import { Session } from 'ember-simple-auth/session';
describe('Configuration', function() {
describe('authent... | JavaScript | 0.000001 | @@ -1173,16 +1173,53 @@
tializer
+1 = sinon.spy();%0A var initializer2
= sinon
@@ -1257,24 +1257,64 @@
(initializer
+1);%0A initializeExtension(initializer2
);%0A setup
@@ -1376,16 +1376,114 @@
tializer
+1.withArgs(this.container, this.application, %7B%7D)).to.have.been.calledOnce;%0A expect(initializ... |
b35b0aee2e927380cb09bfc56db183a98e358c93 | Update connectOutlet documentation to reflect recent changes | packages/ember-views/lib/system/controller.js | packages/ember-views/lib/system/controller.js | var get = Ember.get, set = Ember.set;
Ember.ControllerMixin.reopen({
target: null,
controllers: null,
namespace: null,
view: null,
/**
`connectOutlet` creates a new instance of a provided view
class, wires it up to its associated controller, and
assigns the new view to a property on the current... | JavaScript | 0 | @@ -801,377 +801,15 @@
let(
-App.PostsView);%0A%0A You can specify a particular outlet to use as the first%0A parameter to %60connectOutlet%60. For example, if your%0A main template looks like:%0A%0A %3Ch1%3EMy Blog%3C/h1%3E%0A %7B%7Boutlet master%7D%7D%0A %7B%7Boutlet detail%7D%7D%0A%0A ... |
e533e5f646f4c25c48b019ad91e7549c672ae994 | Use HTMLMediaElement srcObject for MediaStreams if available (#13) | src/imagecapture.js | src/imagecapture.js | /**
* MediaStream ImageCapture polyfill
*
* @license
* Copyright 2017 Google 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... | JavaScript | 0 | @@ -1639,24 +1639,200 @@
;%0A %7D);%0A
+ if (HTMLMediaElement) %7B%0A this.videoElement.srcObject = this._previewStream; // Safari 11 doesn't allow use of createObjectURL for MediaStream%0A %7D else %7B%0A
this.v
@@ -1891,16 +1891,24 @@
tream);%0A
+ %7D%0A
th
|
ce99cb46210a6451553ebf02be46768785fe389a | Update chat.js | chat_modules/chat.js | chat_modules/chat.js | "use strict";
var config = require("./config");
if (!String.prototype.startsWith) {
String.prototype.startsWith = function(searchString, position){
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
var ITEMS = {
messages: {},
stars: {},
... | JavaScript | 0.000001 | @@ -7256,34 +7256,54 @@
)
-;%0A
+.then(function()%7B%0A
@@ -7306,32 +7306,36 @@
return say(%0A
+
@@ -7498,32 +7498,36 @@
+
+
messageFormattin
@@ -7534,32 +7534,36 @@
g.room(event) +%0A
+
@@ -7618,32 +7618,56 @... |
e7e50cf80892680119fc02e7a54900d5d88f8be0 | fix color acessibility problem (#6446) | src/js/components/SkipLinks/stories/Simple.js | src/js/components/SkipLinks/stories/Simple.js | /* eslint-disable jsx-a11y/tabindex-no-positive */
import React from 'react';
import {
Avatar,
Box,
Anchor,
Header,
Nav,
Paragraph,
SkipLinkTarget,
SkipLink,
SkipLinks,
Heading,
} from 'grommet';
const avatarSrc =
'//s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80';
const contentFil... | JavaScript | 0 | @@ -3564,17 +3564,17 @@
=%22light-
-4
+3
%22 pad=%22s
|
83d9abb7de1fa639205c155ddfebae36f546197b | Remove code that changes the button submit text to show progress because dialogs are now used on cross-tab page | static/query_crosstab/query_crosstab.js | static/query_crosstab/query_crosstab.js | 'use strict';
angular.module('myApp.query_crosstab', ['ngRoute', 'ServicesModule', 'ngDialog'])
.config(['$routeProvider', 'ngDialogProvider', '$locationProvider', function($routeProvider, ngDialogProvider, $locationProvider) {
$routeProvider.when('/query_crosstab', {
templateUrl: 'static/query_crosstab/query_c... | JavaScript | 0 | @@ -2053,55 +2053,8 @@
'';%0A
- $scope.searchButtonText = %22Querying!%22;%0A
|
8451a38273413f685c24f0423dbd67c5a3fe56bb | fix connection to SauceLabs from Travis | test/Sauce/Runner.js | test/Sauce/Runner.js | const CapabilityRunner = require("./CapabilityRunner");
const sauceConnectLauncher = require('sauce-connect-launcher');
const username = process.env.SAUCE_USERNAME;
const accessKey = process.env.SAUCE_ACCESS_KEY;
if (!username) {
console.error(
"You need Sauce Labs access to run these specs, if you're a Palindr... | JavaScript | 0 | @@ -162,55 +162,223 @@
AME;
-%0Aconst accessKey = process.env.SAUCE_ACCESS_KEY
+ //JSON-Patch repo uses %22json-patch%22 user which is a subaccount of the Starcounter SauceLabs account%0Aconst accessKey = process.env.SAUCE_ACCESS_KEY;%0A%0Aconst tunnelIdentifier = %22tunnel%22 + process.env.TRAVIS_JOB_NUMBER
;%0A%0Ai... |
7422710e553c3e8a336fcf5d6325d258f983dd43 | add missing namespaces and spies unit tests fail because of missing namespaces and spies | test/adapter.spec.js | test/adapter.spec.js | /* global MockSocket, MockRunner, createQUnitStartFn, createQUnitConfig reporter:true */
// Tests for adapter/qunit.src.js
// These tests are executed in browser.
describe('adapter qunit', function () {
var Karma = window.__karma__.constructor
describe('config', function () {
var config
var tc
befor... | JavaScript | 0.000002 | @@ -475,32 +475,53 @@
, function () %7B%0A
+ tc.config = %7B%7D%0A
tc.config.
@@ -709,32 +709,53 @@
, function () %7B%0A
+ tc.config = %7B%7D%0A
tc.config.
@@ -943,32 +943,53 @@
, function () %7B%0A
+ tc.config = %7B%7D%0A
tc.config.
@@ -1707,16 +1707,42 @@
mplete')
+%0A s... |
7a4034a60b94e67969c15e74c85109ace37f473b | Update jquery.class to properly set prototype.constructor, and allow basic inspection of the inheritance chain of a Class | src/jquery.class.js | src/jquery.class.js | /**
* Very basic Class utility. Based on base and jquery.class.
*
* Class definition: var Foo = Base.extend({ init: function(){ Constructor }; method_name: function(){ Method } });
*
* Inheritance: var Bar = Foo.extend({ method_name: function(){ this._super(); } });
*
* new-less Constructor: new Foo(arg) <-sam... | JavaScript | 0 | @@ -563,24 +563,39 @@
%7B%0A%09%09var
+parent = this.
_super
-=
+&&
this._s
@@ -602,22 +602,35 @@
uper
+.prototype
;%0A
+%09%09%0A
%09%09if (
-_super
+parent
&&
@@ -734,22 +734,22 @@
super =
-_super
+parent
%5Bname%5D;%0A
@@ -1108,16 +1108,159 @@
;%0A%09%09%7D%0A%09%7D
+%0A%0A%09Base.subclassOf = functi... |
533eec21fff2aa9f55927d769814b41cede1bf27 | Remove ref to ngInfiniteScroll | npactweb/karma.conf.js | npactweb/karma.conf.js | module.exports = function(config){
'use strict';
config.set({
files:[
'npactweb/static/bower_components/jquery/dist/jquery.min.js',
'npactweb/static/bower_components/angular/angular.min.js',
'npactweb/static/bower_components/angular-messages/angular-messages.min.js',
'npactweb/static/bow... | JavaScript | 0 | @@ -364,99 +364,8 @@
s',%0A
- 'npactweb/static/bower_components/ngInfiniteScroll/build/ng-infinite-scroll.min.js',%0A
|
2fa54243dcddb6d6141ab46a41beced6c249ece8 | fix reject without proper error object | src/js/messenger.js | src/js/messenger.js | /*global define: true */
/*jslint browser:true vars: true */
define([
'bluebird',
'kb_common_asyncQueue'
],
function (Promise, asyncQueue) {
function factory(config) {
// Very simple message system.
var channels = {},
listeners = {},
subId = 0... | JavaScript | 0.000001 | @@ -4031,16 +4031,27 @@
reject(
+new UIError
%7B%0A
@@ -4088,19 +4088,93 @@
-name: 'Send
+type: 'RuntimeError',%0A reason: 'MessageHandler
Erro
|
887647a6f97e93b98543d49f3c19101c495bed3b | add test for ramda placeholder | test/isEmptyArray.js | test/isEmptyArray.js | import * as RA from '../src/index';
import eq from './shared/eq';
describe('isEmptyArray', function() {
it('tests a value to be an empty `Array`', function() {
eq(RA.isEmptyArray([]), true);
eq(RA.isEmptyArray(new Array()), true);
eq(RA.isEmptyArray(Array.prototype), true);
eq(RA.isEmptyArray([1]), ... | JavaScript | 0.000002 | @@ -1,12 +1,41 @@
+import * as R from 'ramda';%0A%0A
import * as
@@ -137,27 +137,30 @@
it('
+should
tests
-a
value
-to be
+for
an
@@ -733,13 +733,167 @@
);%0A %7D);
+%0A%0A it('should support placeholder to specify %22gaps%22', function() %7B%0A const isEmptyArray = RA.isEmptyArray(R.__);%0A%0A eq(... |
9dae5242d3e5f3ba55a66d3638338a0d7eaa17fc | change var to const | test/metrics.test.js | test/metrics.test.js | const chai = require('chai')
const assert = chai.assert
const chaiHttp = require('chai-http')
const rewire = require('rewire')
const server = require('../server/app')
const metrics = rewire('../server/utils/metrics.js')
chai.use(chaiHttp)
// it is indirectly used at here res.should.have.status
// eslint-disable-next-... | JavaScript | 0.000032 | @@ -678,19 +678,21 @@
=%3E %7B%0A
-var
+const
promBun
|
108e24679526a2729c5dc888607f5938eea3d068 | fix tests for selectors | test/selectorSpec.js | test/selectorSpec.js | import R from 'ramda';
import chai from 'chai';
import initialState from '../app/state';
import Selectors from '../app/selectors';
import { LINK_ERRORS } from '../app/constants/errorMessages';
describe('Link selector', () => {
describe('while validating link creating', () => {
let state = null;
beforeEach(
... | JavaScript | 0.000004 | @@ -464,36 +464,39 @@
eck = Selectors.
-Link
+Project
.validateLink.bi
@@ -701,36 +701,39 @@
eck = Selectors.
-Link
+Project
.validateLink.bi
@@ -994,36 +994,39 @@
eck = Selectors.
-Link
+Project
.validateLink.bi
@@ -1308,20 +1308,23 @@
lectors.
-Link
+Project
.validat
|
8c0642bc1f63db6d359bb67c05c2315d5acb6bc4 | Add conditions for del failure to test | test/test_dbstore.js | test/test_dbstore.js | var DbStore = require("..");
var dbstore = new DbStore();
var dbenv = new DbStore.DbEnv();
var async = require('async');
var assert = require('assert');
dbstore.open("foo.db", function (err, val) {
console.log("opened" + (err ? ": " + err.stack : " ret=" + val));
assert.ifError(err);
function test_put_ge... | JavaScript | 0.000001 | @@ -804,146 +804,168 @@
%0A%09
-// Don't try to del same key twice...%0A%09 if (dels%5Bkey%5D) %7B return next(err); %7D%0A%0A%09 dels%5Bkey%5D = true;%0A%09 dbstore.del(key, function (err) %7B%0A%09
+var wont_del = dels%5Bkey%5D;%0A%09 dels%5Bkey%5D = true;%0A%09 dbstore.del(key, function (err) %7B%0A%09 if... |
5a22676d59054ee89aa91e1a0d4257ac79c74e77 | fix table merge unmerging when pasting cells | src/main/js/ephox/snooker/model/TableMerge.js | src/main/js/ephox/snooker/model/TableMerge.js | define(
'ephox.snooker.model.TableMerge',
[
'ephox.peanut.Fun',
'ephox.snooker.model.Fitment',
'ephox.snooker.model.GridRow',
'ephox.snooker.operate.MergingOperations'
],
function (Fun, Fitment, GridRow, MergingOperations) {
var isSpanning = function (grid, row, col, comparator) {
va... | JavaScript | 0 | @@ -327,16 +327,32 @@
idate =
+GridRow.getCell(
grid%5Brow
@@ -352,21 +352,22 @@
rid%5Brow%5D
-%5Bcol%5D
+, col)
;%0A
@@ -425,24 +425,26 @@
var
-rowArray
+currentRow
= grid%5B
@@ -522,31 +522,46 @@
%3E 1 &&
-rowArray.length
+GridRow.cellLength(currentRow)
%3E 1 &&%0A
@@ -655,23 +655,42 @@
ing(
... |
44613786297574f976b8ca5ea285d80f8baa10da | fix filter error | src/main/resources/static/js/heracles-main.js | src/main/resources/static/js/heracles-main.js | jQuery.fn.filterByText = function(textbox, selectSingleMatch) {
return this.each(function() {
var select = this;
$(textbox).bind('change keyup', function() {
//var options = $(select).empty().data('options');
var search = $(this).val().trim();
var regex = new Reg... | JavaScript | 0.000001 | @@ -759,16 +759,29 @@
hildText
+ && childText
.match(r
|
d4e28eee90111133a9fe165075c73f7f5619d16a | fix api url | src/main/resources/webapp/www/util/callApi.js | src/main/resources/webapp/www/util/callApi.js | import fetch from 'isomorphic-fetch';
const api_url = "http://ec2-35-157-211-142.eu-central-1.compute.amazonaws.com/";
const api_url = "http://localhost:8080/"
function callJsonApi(api, body, method = "get") {
return fetch(api_url + api, {
headers: { 'content-type': 'application/json'},
me... | JavaScript | 0.000136 | @@ -113,16 +113,19 @@
.com/%22;%0A
+//
const ap
|
b21e796bc3c8f62b6695c6a4a3afe708617e7ac9 | Use lighter link color in chat messages with a dark background | native/chat/text-message.react.js | native/chat/text-message.react.js | // @flow
import type { ThreadInfo } from 'lib/types/thread-types';
import { threadInfoPropType } from 'lib/types/thread-types';
import type { ChatMessageInfoItemWithHeight } from './message-list.react';
import { chatMessageItemPropType } from '../selectors/chat-selectors';
import type { TooltipItemData } from '../comp... | JavaScript | 0 | @@ -2369,16 +2369,43 @@
e = %7B%7D;%0A
+ let darkColor = false;%0A
if (
@@ -2412,24 +2412,24 @@
isViewer) %7B%0A
-
contai
@@ -2544,22 +2544,16 @@
;%0A
-const
darkColo
@@ -3890,24 +3890,102 @@
Info.text;%0A%0A
+ const linkStyle = darkColor ? styles.lightLinkText : styles.darkLinkText;%0A
... |
6eafcf3673ef3c94a2ffcb0e121cd7c67a56106f | Fix RMW on app configuration | dashboard/apps/configuration.fma/js/app_manager.js | dashboard/apps/configuration.fma/js/app_manager.js | module.exports = function apps(fabmo) {
setupAppManager();
var defaultApp = '';
function refreshApps() {
// Load the list of apps available on the tool
fabmo.getApps(function(err, apps) {
if (err) {
return console.error(err);
}
fabmo.getConfig(function(err, data) {
... | JavaScript | 0 | @@ -3453,136 +3453,36 @@
-console.log($(this).val());%0A newDefault = $(this).val();%0A fabmo.getConfig(function(err,data)%7B%0A
+newDefault = $(this).val();%0A
@@ -3544,28 +3544,24 @@
-
fabmo.setCon
@@ -3564,20 +3564,54 @@
tConfig(
-data
+%7B%22machine%... |
3b0faef30b4d7807991481e181b80eb627a749f0 | use new schema in js | examples/simple.js | examples/simple.js | var genderDataLocation = 'https://raw.githubusercontent.com/anne-decusatis/genderamender/master/genders/en-US.json';
// vars for input #s
var DECLINE = -1, NONGENDERED = 0, FEMALE = 1, MALE = 2, NONBINARY = 3;
// additional vars needed for rendering
var UNSURE = -2;
// for display of rendered info TODO break out... | JavaScript | 0.000001 | @@ -115,101 +115,197 @@
';%0D%0A
-// vars for input #s%0D%0Avar DECLINE = -1, NONGENDERED = 0, FEMALE = 1, MALE = 2, NONBINARY = 3;
+var genderInputSchemaLocation = 'https://raw.githubusercontent.com/anne-decusatis/genderamender/master/gender_input_schema.json';%0D%0Avar genderInputSchema = %7B%7D; // populated in doc... |
154a9ba2a35cd48d7d5cae09664a2da191616648 | Use tableName ref instead of hard-coded name | test/src/index.spec.js | test/src/index.spec.js | /* eslint no-unused-expressions: 0 */
/* global expect, request, describe, it, before, after */
import '../setup';
import MySQL from '../../src/index';
const mysql = new MySQL({
host: process.env.MODLI_MYSQL_HOST,
user: process.env.MODLI_MYSQL_USERNAME,
password: process.env.MODLI_MYSQL_PASSWORD,
database: pro... | JavaScript | 0.000007 | @@ -889,17 +889,17 @@
l.query(
-'
+%60
DROP TAB
@@ -905,13 +905,28 @@
BLE
-foo;'
+$%7Bmysql.tableName%7D;%60
)%0A
|
6498cc3110d03673eb971580afa7b4ba998c884b | remove debug log stuff from collision tests | src/game/map.js | src/game/map.js | var Map = Class.extend({
id: null,
name: '',
isMap: true,
onLoadComplete: null,
fullyLoaded: false,
data: { },
layers: [ ],
widthTiles: 0,
heightTiles: 0,
widthPx: 0,
heightPx: 0,
entities: [],
toRemove: [],
player: null,
tileset: null,
tilesPerRow: 0... | JavaScript | 0 | @@ -2739,75 +2739,8 @@
) %7B%0A
- console.log(ignoreEntity + ' collides ' + entity);%0A
|
a3de25e0ca76f4d6719803cb1ab0227c45cd2e39 | Revert "Add three static highscores" | src/gameover.js | src/gameover.js | Lettris.GameOver = function(game){
};
Lettris.GameOver.prototype = {
init: function( gameData ) {
this.endScore = gameData.score
this.bestWord = gameData.best_word.word
this.bestPoints = gameData.best_word.score
},
create: function(){
console.log("Game over man!")
var graphics = this.game.add.graphi... | JavaScript | 0 | @@ -773,14 +773,8 @@
= '
-Test3-
Lett
@@ -804,24 +804,42 @@
lang + '-' +
+ 'Lettris-best-' +
this.game.v
@@ -855,31 +855,20 @@
var
-highs
+bestS
core =
-JSON.parse(
loca
@@ -902,218 +902,157 @@
key)
-)%0A%0A%09this.game.add.text(this.game.width/2,%0A%09%09%09 120,%0A%09%09%09 %22Nick %7C Score%22,%0A%09... |
ad4a111c960523c12ef88afa718f588c77cc6126 | fix grammar | resources/assets/js/components/admin/modals/UpdateTeacherModal.js | resources/assets/js/components/admin/modals/UpdateTeacherModal.js | import React, { Component } from 'react';
import TransferGroupToNewTeacherForm from '../forms/TransferGroupToNewTeacherForm';
export default class UpdateTeacherModal extends Component {
constructor(props) {
super(props);
this.state = {
showingGroupsOptions: true,
selectedOption: null
};
}
... | JavaScript | 0.999999 | @@ -1126,24 +1126,25 @@
ame%7D's group
+s
to another
|
dcc5245a9d3afdd66f23f3435cf59c40492e7b01 | Fix for XML parsing, created handle function for creating formatted GET urls | src/gm3/util.js | src/gm3/util.js | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 GeoMoose
*
* 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, cop... | JavaScript | 0 | @@ -1673,34 +1673,82 @@
-let node_value = null;%0A
+if(node.firstChild) %7B%0A return node.firstChild.nodeValue;%0A %7D else
if(
@@ -1863,82 +1863,8 @@
%7D
-else if(node.firstChild) %7B%0A return node.firstChild.nodeValue;%0A %7D
%0A%0A
@@ -2875,24 +2875,28 @@
%7D%0A %7D%0A... |
acd0f2d824d069c42dc956aa81d810a9fd18dcc5 | fix hmr for api-gen source files | packages/docs/build/api-plugin.js | packages/docs/build/api-plugin.js | // Imports
const fs = require('fs')
const { resolve } = require('path')
const { getApi, getCompleteApi } = require('@vuetify/api-generator')
const rimraf = require('rimraf')
const localeList = require('../src/i18n/locales').map(item => item.locale)
const capitalize = str => {
return str.charAt(0).toUpperCase() + st... | JavaScript | 0.000001 | @@ -2749,16 +2749,20 @@
tor/
+src/
maps'),
reso
@@ -2757,16 +2757,17 @@
maps'),
+(
resolve(
@@ -2788,15 +2788,23 @@
tor/
+src/
locale
-'
+/en')
)%5D%0A%0A
@@ -2874,16 +2874,50 @@
%7B%0A
+ sourcePaths.forEach(sourcePath =%3E
compila
@@ -2945,19 +2945,16 @@
ies.add(
-...
sourcePa
@@ -2955,17 +2955,17... |
3cc48f6df663e73c718c07ced3ec386d93349292 | add option to disable location origin on iframes | packages/dynamic-import/client.js | packages/dynamic-import/client.js | var Module = module.constructor;
var cache = require("./cache.js");
var meteorInstall = require("meteor/modules").meteorInstall;
// Call module.dynamicImport(id) to fetch a module and any/all of its
// dependencies that have not already been fetched, and evaluate them as
// soon as they arrive. This runtime API makes ... | JavaScript | 0 | @@ -123,16 +123,184 @@
stall;%0A%0A
+var dynamicImportSettings = Meteor.settings%0A && Meteor.settings.public%0A && Meteor.settings.public.packages%0A && Meteor.settings.public.packages.dynamicImport;%0A%0A
// Call
@@ -3546,21 +3546,19 @@
ey;%0A%7D;%0A%0A
-const
+var
fetchUR
@@ -4300,11 +4300,11 @@
%0A%... |
c7f094e75f5a0f0ef31ed83fdff42387576d3a3e | Use esa facemark to notify required config | src/js/index.js | src/js/index.js | // TODO 同じタイトルのとき上書きする前に聞くためのチェックボックスがoptionにほしい
// TODO bluebird入れる
// TODO 全体的なスタイル当てなど(haml, css)
// TODO esaで開くボタン欲しい
getConfig = function(defaultConfig) {
return new Promise(function(resolve, reject) {
var defaultConfig = {teamName: "", token: ""};
chrome.storage.sync.get(defaultConfig, functi... | JavaScript | 0 | @@ -426,16 +426,28 @@
options
+ (%5C%5C( %CB%98%E2%8A%96%CB%98)/)
%22);%0A
|
e78c0f4803175e061bc103978fcc00e2e6ccf51a | Add Spring movement test. | src/js/index.js | src/js/index.js | 'use strict';
var Game = require( './game' );
var Object3D = require( './object3d' );
var Geometry = require( './geometry/geometry' );
var Mesh = require( './objects/mesh' );
var Color = require( './math/color' );
var DirectionalLight = require( './lights/directional-light' );
var LambertMaterial = require( './materia... | JavaScript | 0 | @@ -8,16 +8,46 @@
rict';%0A%0A
+var _ = require( './utils' );%0A
var Game
@@ -66,24 +66,24 @@
'./game' );%0A
-
var Object3D
@@ -623,16 +623,57 @@
rols' );
+%0Avar Spring = require( './math/spring' );
%0A%0Avar $
@@ -1537,39 +1537,8 @@
);%0A
- cylinderMesh.position.x = 2;%0A
cy
@@ -2302,16 +2302,16 @@
rix(... |
331f846305dda90f66da15bdd172030acee08b76 | Add Notes: Go to Real usage! | src/js/notes.js | src/js/notes.js | /*global $,L,map,REVERSE_URL,ga
*/
/*eslint-disable no-unused-vars*/
var notesControl = new L.Control.Draw({
edit: false,
draw: {
polyline: false,
polygon: false,
rectangle: false,
circle: false
}
});
/*eslint-enable no-unused-vars*/
var notesItems = new L.FeatureGroup();
var addNote = functio... | JavaScript | 0 | @@ -550,14 +550,8 @@
/api
-06.dev
.ope
|
984fe60cd1940b77062a14d39df18a8e5a91fa07 | Add further details URL | src/js/print.js | src/js/print.js | import Browser from './browser'
import Modal from './modal'
const Print = {
send: (params, printFrame) => {
// Append iframe element to document body
document.getElementsByTagName('body')[0].appendChild(printFrame)
// Get iframe element
let iframeElement = document.getElementById(params.frameId)
... | JavaScript | 0 | @@ -2402,19 +2402,17 @@
ntable)%0A
-
%0A
+
// If
@@ -2670,17 +2670,9 @@
er)%0A
-
%0A
+
@@ -2715,15 +2715,9 @@
%7D%0A
-
%0A
+
@@ -2897,25 +2897,44 @@
s://
-www.google.co.cr/
+github.com/crabbly/Print.js/pull/191
')%0A
@@ -2938,21 +2938,20 @@
)%0A %7D%0A
+
%7D%0A
-%0A
%7... |
d8c6d3dd082d625c4ac816c4f8d204abe713428b | Correct URL for the backend server. | webapp/config/environment.js | webapp/config/environment.js | /* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'bookmeister',
environment: environment,
baseURL: '/',
locationType: 'auto',
bookmeisterServer: '',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary ... | JavaScript | 0 | @@ -779,34 +779,29 @@
'http://
-d8.d8.hoegh.co:808
+localhost:630
0';%0A%0A
@@ -871,26 +871,21 @@
p://
-d8.d8.hoegh.co:808
+localhost:630
0 ht
|
b6788e0e4cee69e517e7c979ecf6c3153ef7582d | add params for api | webapp/dev/blocks/api/api.js | webapp/dev/blocks/api/api.js | var API = (function() {
var xhrPath = 'https://safesecret.info/api/v1/message';
this.send = function(exp, message, pin, cb) {
var request = new XMLHttpRequest(),
data = JSON.stringify({
exp: new Number(exp) * 60,
message: new String(message),
pin: new String(pin)
});
request.open('POST', xhrPa... | JavaScript | 0.000001 | @@ -22,19 +22,35 @@
%7B%0A%09var
-xhr
+that = this,%0A%09%09base
Path = '
@@ -80,23 +80,90 @@
/api/v1/
-message
+';%0A%0A%09var xhrPath = basePath + 'message',%0A%09%09paramsPath = basePath + 'params
';%0A%0A%09thi
@@ -1023,16 +1023,455 @@
();%0A%09%7D%0A%0A
+%09this._getParams = function() %7B%0A%09%09var reque... |
29b54d663803c73f5521a484ffba0182b24b3f89 | Update karma.conf.js to A: actually run the tests, and B: generate JUnit XML. | webclient/test/karma.conf.js | webclient/test/karma.conf.js | // Karma configuration
// Generated on Thu Sep 18 2014 14:25:57 GMT+0100 (BST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... | JavaScript | 0 | @@ -729,24 +729,81 @@
matrix.js',%0A
+ '../js/ui-bootstrap*',%0A '../js/elastic.js', %0A
'../lo
@@ -807,32 +807,32 @@
/login/**/*.*',%0A
-
'../room/*
@@ -1031,32 +1031,129 @@
*/*.js'%0A %5D,%0A%0A
+ plugins: %5B%0A 'karma-*',%0A require('./node_modules/karma-junit-reporte... |
517a597a803f59ffc1517bcbefd3111ef69023ca | add more deps to externals configuration for production | webpack.config.production.js | webpack.config.production.js | 'use strict';
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const merge = require('webpack-merge');
const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin');
const nconf = require('nconf');
nconf.use('memory').defaults({
'optimize': true
}... | JavaScript | 0 | @@ -1120,28 +1120,154 @@
'
-tracekit': 'TraceKit
+select2': 'select2',%0A 'tracekit': 'TraceKit',%0A 'bootstrap-datepicker': 'bootstrap-datepicker',%0A 'angular-ui-mask': 'angular-ui-mask
'%0A
|
13d1fae76323d44b31dfa50921610f100a014375 | add hash | webpack.config.production.js | webpack.config.production.js | const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const FaviconsWebpackPlugin = req... | JavaScript | 0.000359 | @@ -1441,19 +1441,16 @@
- //
hash: t
|
361998317f9ba9db5b4aa3b4193a1b277bd773de | Remove style-loader from .css too | webpack.production.config.js | webpack.production.config.js | // Breaks for some reason
/* eslint comma-dangle: ["error", {"functions":
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}] */
const config = require('./webpack.config.js');
const webpack = require('webpack');
... | JavaScript | 0 | @@ -408,15 +408,8 @@
eap-
-module-
sour
@@ -417,16 +417,16 @@
e-map';%0A
+
%0A// Set
@@ -605,18 +605,18 @@
/ Re
-place less
+move style
loa
@@ -901,16 +901,16 @@
Map!' +%0A
-
@@ -948,16 +948,148 @@
;%0A %7D%0A
+ if ('.css'.match(loader.test)) %7B%0A loader.loader = ExtractTextPlugin.extra... |
d5172b5ecf48a8632f5b876531906f50df854e4e | Use minified React version in production environment | webpack.production.config.js | webpack.production.config.js | 'use strict';
var path = require('path');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var precss = require('precss');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
app: [
path.join(__dirname, 'client/index.js')
],
vendor: ['re... | JavaScript | 0.000001 | @@ -1088,24 +1088,141 @@
endor.js'),%0A
+ new webpack.DefinePlugin(%7B%0A 'process.env': %7B%0A NODE_ENV: JSON.stringify('production')%0A %7D%0A %7D),%0A
new webp
|
15d2d3b98146892c4a0d6fd78714ec31ed2e5d78 | Fix playing audio after linking by sentence ID | webroot/js/sentences.link.js | webroot/js/sentences.link.js | /**
* Tatoeba Project, free collaborative creation of multilingual corpuses project
* Copyright (C) 2014 Gilles Bedel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either... | JavaScript | 0 | @@ -3160,16 +3160,23 @@
tions%22).
+watch(%22
replaceW
@@ -3178,17 +3178,19 @@
laceWith
-(
+%22,
data).sh
|
e61fbbc8061f07f6f908c7c72c1d5352b7f8f451 | Update banner contents | website/data/alert-banner.js | website/data/alert-banner.js | export const ALERT_BANNER_ACTIVE = true
// https://github.com/hashicorp/web-components/tree/master/packages/alert-banner
export default {
url:
'https://www.nomadproject.io/downloads/',
tag: 'NEW',
text:
'Nomad 0.11 is now generally available, with CSI integration, autoscaling, and more. Download now',
}
| JavaScript | 0 | @@ -138,20 +138,16 @@
%7B%0A url:
-%0A
'https:
@@ -156,33 +156,63 @@
www.
-nomadproject.io/downloads
+hashicorp.com/blog/announcing-hashicorp-nomad-0-12-beta
/',%0A
@@ -242,104 +242,125 @@
'
+Announcing %E2%80%AA
Nomad
+%E2%80%AC
0.1
-1 is now generally available, with CSI integration, autoscaling, and ... |
3ca775a75ee6da7876048318e20de1434bf6e4c8 | update alert banner | website/data/alert-banner.js | website/data/alert-banner.js | export const ALERT_BANNER_ACTIVE = true
// https://github.com/hashicorp/web-components/tree/master/packages/alert-banner
export default {
tag: 'Survey',
url: 'https://bit.ly/2A5RZWz',
text: 'Do you use the Consul Helm chart? Fill out this 3-minute survey to help us improve it: https://bit.ly/2A5RZWz',
}
| JavaScript | 0 | @@ -144,14 +144,18 @@
g: '
-Survey
+Announcing
',%0A
@@ -173,143 +173,109 @@
s://
-bit.ly/2A5RZWz',%0A text: 'Do you use the Consul Helm chart? Fill out this 3-minute survey to help us improve it: https://bit.ly/2A5RZWz
+www.hashicorp.com/blog/announcing-hashicorp-consul-1-8',%0A text: 'Consul 1.8 GA release avai... |
07645c6dd0c8e4bbb73344e90de0a471edc3d47a | Remove load method test | test/dataService.spec.js | test/dataService.spec.js | 'use strict';
/*
data service
- pull geojson data from various endpoints
- receives sse for updates
- notify listeners when data changes
- add listeners
- node-event-emitter
*/
require('chai').should()
var assert = require('assert')
var geojsonIsValid = require('geojson-is-valid')
var dataServiceFactory = require('.... | JavaScript | 0 | @@ -2079,335 +2079,8 @@
%7D)%0A%0A
- describe('#load', () =%3E %7B%0A it('should load geojson from the server', done =%3E %7B%0A //Given%0A var dataService = dataServiceFactory(validConfig)%0A%0A //When%0A dataService.load( (err, res) =%3E %7B%0A //Then%0A assert.equal(err, null)%... |
4d745ebdb5fb9c72c4b8202046d5a035257043c9 | update sytax | test/detect-port.test.js | test/detect-port.test.js | /* ================================================================
* detect-port by xdf(xudafeng[at]126.com)
*
* first created at : Tue Mar 17 2015 00:16:10 GMT+0800 (CST)
*
* ================================================================
* Copyright xdf
*
* Licensed under the MIT License
* You may not use ... | JavaScript | 0 | @@ -452,21 +452,19 @@
rict';%0A%0A
-const
+var
path =
@@ -480,21 +480,19 @@
path');%0A
-const
+var
detect
@@ -508,21 +508,19 @@
('..');%0A
-const
+var
CliTest
@@ -553,21 +553,19 @@
est');%0A%0A
-const
+var
pkg = r
@@ -1389,21 +1389,19 @@
%7B%0A
-const
+var
cliTest
@@ -1424,21 +1424,19 @@
;%0A ... |
39c609eaba3d3ef38b9b4c43bd8bcaa6cf290e90 | fix broken tests | test/driver-core-test.js | test/driver-core-test.js | import chai from 'chai';
import { describe, it, afterEach } from 'mocha';
import innerDriverCore from '../dist/lib/driver-core';
const should = chai.should();
let driverCore = null;
describe('driver-core :', () => {
afterEach(() => {
driverCore = null;
});
describe('returns expected configured driver libra... | JavaScript | 0.000007 | @@ -794,39 +794,144 @@
-driverCore = innerDriverCore(%7B%0A
+it('works for browserstack', () =%3E %7B%0A driverCore = innerDriverCore(%7B%0A server: 'http://hub-cloud.browserstack.com/wd/hub',%0A
@@ -940,32 +940,34 @@
capabilities: %7B%0A
+
browserN
@@ -976,10 +976,521 @@
e: '
-IE... |
3540385783a1c09c62428e587f0251d5d737af07 | migrate to ava | test/find_module_test.js | test/find_module_test.js | const assert = require('assert');
const path = require('path');
const findModule = require('./find_module');
describe('Find module', () => {
const dir = path.join(__dirname, '..', 'testdata');
const runFind = function(symbolName) {
return findModule(dir, symbolName).then(fileName => {
assert(fileName.in... | JavaScript | 0.000603 | @@ -1,19 +1,17 @@
const
-asser
+tes
t = requ
@@ -16,21 +16,18 @@
quire('a
-ssert
+va
');%0Acons
@@ -102,42 +102,8 @@
);%0A%0A
-describe('Find module', () =%3E %7B%0A
cons
@@ -151,18 +151,16 @@
ata');%0A%0A
-
const ru
@@ -176,16 +176,19 @@
unction(
+t,
symbolNa
@@ -189,26 +189,24 @@
mbolName) %7B%0A
- ... |
7a1bca1a7ad703ffdef09aa4ccbdbcb780b2e928 | Test platform detection | test/mocha-spec-setup.js | test/mocha-spec-setup.js | // replaces index.html's shenanigans when using mocha.
global.electronRequire = require;
global.IS_WINDOWS= true;
global.IS_LINUX = false;
global.MODE = 'DEVELOPMENT';
global.Assert = function Assert(cond, msg) {
if (!cond) {
throw (msg ? msg : 'assert failed');
}
}
| JavaScript | 0.000001 | @@ -82,16 +82,64 @@
equire;%0A
+const isWindows = process.platform === 'win32';%0A
global.I
@@ -151,14 +151,20 @@
DOWS
+
=
-true
+isWindows
;%0Agl
@@ -183,14 +183,27 @@
X =
-false;
+!isWindows; // todo
%0Aglo
|
04b61fe1e897a89078e6ff809aed4a9aafaa143c | Remove global side-effects caused from normalization of getUserMedia and URL. | photographer.js | photographer.js | // Photographer.js 0.0.1
// (c) 2012 Jake Harding
// Photographer.js is freely distributable under the MIT license.
(function() {
// cross-browser normalization
// -------------
window.URL = window.URL || window.webkitURL || window.mozURL ||
window.msURL || window.oURL;
navigator.getUserMe... | JavaScript | 0 | @@ -183,23 +183,20 @@
----%0A%0A
-window.
+var
URL = wi
@@ -291,26 +291,20 @@
URL;%0A%0A
-navigator.
+var
getUserM
@@ -349,38 +349,32 @@
-
-
navigator.webkit
@@ -402,38 +402,32 @@
-
navigator.mozGet
@@ -452,38 +452,32 @@
-
-
navigator.... |
e777d9bf5a5060425d5784bdb8207d1d8136dacb | Update tests | test/superslides_test.js | test/superslides_test.js | /*global QUnit:false, module:false, test:false, asyncTest:false, expect:false*/
/*global start:false, stop:false ok:false, equal:false, notEqual:false, deepEqual:false*/
/*global notDeepEqual:false, strictEqual:false, notStrictEqual:false, raises:false*/
(function($) {
var testSetup = {
testStart: function(detai... | JavaScript | 0.000001 | @@ -1891,17 +1891,25 @@
.size()
--
+should be
1', fun
@@ -1993,23 +1993,8 @@
), 1
-, 'should be 1'
);%0A
@@ -2019,17 +2019,25 @@
.size()
--
+should be
3', fun
@@ -2140,23 +2140,8 @@
), 3
-, 'should be 3'
);%0A
|
21d883cab6a79ac4a2255b867a0f4c3a1abe4352 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */// jshint strict:false
/*jslint node: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
var fileContentIOPackage = fs.readFileSync(__dirname + '/../io-packag... | JavaScript | 0 | @@ -11,18 +11,19 @@
-W097 */
-//
+%0A/*
jshint
@@ -34,19 +34,23 @@
ct:false
+ */
%0A/*
+
jslint n
@@ -62,16 +62,40 @@
true */%0A
+/* jshint expr: true */%0A
var expe
@@ -1158,32 +1158,738 @@
!');%0A %7D%0A%0A
+ expect(ioPackage.common.authors).to.exist;%0A if (ioPackage.common.name.index... |
9a50732e5dbddaea53cc97185ad095d7d6769b47 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */// jshint strict:false
/*jslint node: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
var fileContentIOPackage = fs.readFileSync(__dirname + '/../io-packag... | JavaScript | 0 | @@ -11,18 +11,19 @@
-W097 */
-//
+%0A/*
jshint
@@ -34,19 +34,23 @@
ct:false
+ */
%0A/*
+
jslint n
@@ -62,16 +62,40 @@
true */%0A
+/* jshint expr: true */%0A
var expe
@@ -1158,32 +1158,738 @@
!');%0A %7D%0A%0A
+ expect(ioPackage.common.authors).to.exist;%0A if (ioPackage.common.name.index... |
3bffc0c24c348fae302c4e7fc47840d9d00c8860 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
/* jshint expr: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
console.log();
var fileContentI... | JavaScript | 0 | @@ -4107,38 +4107,35 @@
utf8');%0A
-expect
+if
(fileContentRead
@@ -4158,19 +4158,61 @@
icense')
-, '
+ === -1) %7B%0A console.log('Warning:
The READ
@@ -4213,32 +4213,30 @@
e README.md
-needs to
+should
have a sect
@@ -4255,83 +4255,145 @@
se')
-.not.equal(-1);%0A expect(fileConten... |
492cf0b1dc4957dd7970a13cfda0729083b84389 | update basic package-file testing | test/testPackageFiles.js | test/testPackageFiles.js | /* jshint -W097 */
/* jshint strict:false */
/* jslint node: true */
/* jshint expr: true */
var expect = require('chai').expect;
var fs = require('fs');
describe('Test package.json and io-package.json', function() {
it('Test package files', function (done) {
console.log();
var fileContentI... | JavaScript | 0 | @@ -2574,130 +2574,8 @@
ue;%0A
- expect(fs.existsSync(__dirname + '/../LICENSE'), 'ERROR: LICENSE needs to exist! Please create one.').to.be.true;%0A
|
d738f299a2dd98b979f25e00c491dc6d18477e6a | fix setting 'isDemonstrable' | plugins/jira.js | plugins/jira.js | var sys = require('util');
var moment = require('moment');//http://momentjs.com
var config = require('./jira.config');
var _ = require('underscore');
var rest = require('restler'); //https://github.com/danwrong/restler
var self = this;
var methods = {
globalOptions : {},
init : function(options) {
sel... | JavaScript | 0.000014 | @@ -3416,33 +3416,26 @@
gned
-Develop
+Us
er
-s
,
-assignedUser,
+noDemoLabels
%0A
@@ -3507,16 +3507,41 @@
gExp('no
+-demo%7Cnot-demonstrable%7Cno
demo%7Cno
@@ -3917,99 +3917,199 @@
-is
+no
Demo
-nstrable = true; //todo: parse! notDemonstrableRegex.test(item.labels) ? false : true
+Labels = _.filter(i... |
46ffcec3dd82a87c6e7073d528a6c4c21ea2264c | make sure that transactions have success and error methods | test/transaction.test.js | test/transaction.test.js | var chai = require('chai')
, expect = chai.expect
, Support = require(__dirname + '/support')
, Transaction = require(__dirname + '/../lib/transaction')
describe(Support.getTestDialectTeaser("Transaction"), function () {
describe('constructor', function() {
it('stores options', function() {... | JavaScript | 0.000001 | @@ -586,32 +586,329 @@
st%0A %7D)%0A %7D)%0A%0A
+ describe('success', function() %7B%0A it(%22is a success method available%22, function() %7B%0A expect(Transaction).to.respondTo(%22success%22)%0A %7D)%0A %7D)%0A%0A describe('error', function() %7B%0A it(%22is an error method available%22, functio... |
09e246923e1a1eaf4802a6b21e95fd537ef5d325 | Implement tests for util.getNextPlayerTurn() | test/unit/action/util.js | test/unit/action/util.js | import test from 'tape';
import {
getBorderAt, getFloorAt, isTokenForPlayer, isTokenForCurrentPlayer,
getNextPosition
} from '../../../src/action/util';
import * as direction from '../../../src/model/direction';
test('util.getBorderAt()', (assert) => {
const position = {};
const border = {};
const direction = {... | JavaScript | 0 | @@ -113,16 +113,35 @@
Position
+, getNextPlayerTurn
%0A%7D from
@@ -227,16 +227,77 @@
ection';
+%0Aimport * as playerType from '../../../src/model/playerType';
%0A%0Atest('
@@ -3535,28 +3535,404 @@
west');%0A%09assert.end();%0A%7D);%0A
+%0Atest('util.getNextPlayerTurn() given player one', (assert) =%3E %7B%0A%09... |
25f11a05abb22281e4e50823331afb9b2984c270 | fix tests | test/with-config.test.js | test/with-config.test.js | import test from 'ava'
import { resolve } from 'path'
import rp from 'request-promise-native'
const port = 4007
const url = (route) => 'http://localhost:' + port + route
let nuxt = null
let server = null
// Init nuxt.js and create server listening on localhost:4000
test.before('Init Nuxt.js', async t => {
const Nu... | JavaScript | 0.000001 | @@ -3134,9 +3134,9 @@
h, 2
-9
+6
)%0A%7D)
|
aa4ad5322f1854f39d37e6377f0a2480ea1e5caa | disable indent rule | packages/eslint-plugin-googlejs/lib/config.js | packages/eslint-plugin-googlejs/lib/config.js | goog.module('googlejs.config');
const camelcase = goog.require('googlejs.rules.camelcase');
const indent = goog.require('googlejs.rules.indent');
const inlineCommentSpacing = goog.require('googlejs.rules.inline-comment-spacing');
/**
* @const {!ESLint.Config}
*/
const PLUGIN_ESLINT_CONFIG = {
rules: {
'camel... | JavaScript | 0.000002 | @@ -82,24 +82,27 @@
amelcase');%0A
+//
const indent
@@ -333,24 +333,27 @@
melcase,%0A
+ //
'indent': i
|
06bc5ef5e2be7612e0416ca39e0a5a3e95e5c723 | Use createContentDigest helper (#20076) | packages/gatsby-plugin-sharp/src/trace-svg.js | packages/gatsby-plugin-sharp/src/trace-svg.js | const { promisify } = require(`bluebird`)
const crypto = require(`crypto`)
const _ = require(`lodash`)
const tmpDir = require(`os`).tmpdir()
const sharp = require(`./safe-sharp`)
const duotone = require(`./duotone`)
const { getPluginOptions, healOptions } = require(`./plugin-options`)
const { reportError } = require(`... | JavaScript | 0 | @@ -39,41 +39,8 @@
d%60)%0A
-const crypto = require(%60crypto%60)%0A
cons
@@ -296,16 +296,77 @@
-error%60)
+%0Aconst %7B createContentDigest %7D = require(%60gatsby-core-utils%60)
%0A%0Aexport
@@ -2275,16 +2275,68 @@
on%0A )%0A%0A
+ const optionsHash = createContentDigest(options)%0A%0A
const
@@ -2393,21 +23... |
ecea85e8d217875200321cb40cee50abbb0a944b | Remove constructor form Cat class, update makePaw() | sketch.js | sketch.js | let gridSize = 64
let grid
function setup() {
grid = makeGrid(gridSize, gridSize)
createCanvas(512, 512)
drawGrid(grid)
frameRate(4)
}
function draw() {
drawGrid(grid)
let cat = new Cat()
drawGrid(cat.makeBody())
}
function makeGrid(x, y) {
let g = new Array(x)
for (var i = 0; i < g.length; i++) {... | JavaScript | 0 | @@ -215,20 +215,19 @@
cat.make
-Body
+Paw
())%0A%7D%0A%0Af
@@ -934,78 +934,8 @@
t %7B%0A
- constructor() %7B%0A console.log(%22Everything is under control%22)%0A %7D%0A%0A
ma
@@ -1337,64 +1337,263 @@
) %7B%0A
- if (x === 0 && y %3C paw%5Bx%5D.length - pawHeight) %7B%0A
+%0A // checking if we'r... |
9803e92b04a373dcec8846ef5718408361a6eeeb | change test | test/integration/broker-transit.spec.js | test/integration/broker-transit.spec.js | const ServiceBroker = require("../../src/service-broker");
const { RequestTimeoutError } = require("../../src/errors");
describe("Test RPC", () => {
let b1 = new ServiceBroker({
transporter: "Fake",
nodeID: "node-1"
});
let eventHandler = jest.fn();
b1.createService({
name: "greeter",
actions: {
hell... | JavaScript | 0.000003 | @@ -1893,25 +1893,21 @@
(err
+.name
).toBe
-InstanceOf
(
+%22
Requ
@@ -1921,16 +1921,17 @@
outError
+%22
);%0A%09%09%09ex
|
a589df4b62bc81ab91bed7a0eb73713bee47b515 | Change _check so "Installed" bundles are allowed | src/pipeline.js | src/pipeline.js | 'use strict'
const fs = require('fs')
const fetch = require('node-fetch')
const FormData = require('form-data')
const xmlToJson = require('xml-to-json-stream')
const Package = require('./package')
const log = require('./log')
const defaults = require('./defaults')
class Pipeline {
constructor (opts = {})... | JavaScript | 0 | @@ -3905,146 +3905,41 @@
rget
- + '/system/console/bundles.json')%0D%0A const obj = await res.json()%0D%0A return obj.s.length === 5 && obj.s%5B3%5D === 0 && obj.s%5B4%5D ===
+)%0D%0A return res.status === 20
0%0D%0A
|
2cf0c166b9ff6249bd1f23d921340fded86f2f49 | Remove debugging statement. | src/Mapbender/MobileBundle/Resources/public/js/mapbender.mobile.js | src/Mapbender/MobileBundle/Resources/public/js/mapbender.mobile.js | $(function(){
$.widget("mapbender.mobilePane", {
options: {
frames: []
},
/**
* @private
*/
_create: function() {
var widget = this;
var element = $(widget.element)
},
_setOption: function(key, value) {
... | JavaScript | 0.000003 | @@ -315,30 +315,8 @@
) %7B%0A
- debugger;%0A
|
a61eae3f1bf5068f8c84a3f7ae40e04b7e11ed8c | put admin group on Posts object | packages/nova-posts/lib/schema.js | packages/nova-posts/lib/schema.js | import Posts from './collection.js';
import Users from 'meteor/nova:users';
/**
* @summary Posts config namespace
* @type {Object}
*/
Posts.config = {};
/**
* @summary Post Statuses
*/
Posts.config.postStatuses = [
{
value: 1,
label: 'pending'
},
{
value: 2,
label: 'approved'
},
{
v... | JavaScript | 0 | @@ -687,29 +687,38 @@
6;%0A%0A
-const adminG
+Posts.g
roup
+s
= %7B%0A
+ admin: %7B%0A
na
@@ -730,16 +730,18 @@
admin%22,%0A
+
order:
@@ -743,17 +743,22 @@
rder: 2%0A
-%7D
+ %7D%0A%7D;
%0A%0A/**%0A *
@@ -1346,34 +1346,42 @@
%0A group:
+Posts.groups.
admin
-Group
%0A %7D,%0A /**%0A
@@ -3599,3... |
5c251574719e1ec718fdeec15a72b435a2776641 | Update commain.js | yangfan01/scripts/commain.js | yangfan01/scripts/commain.js | var button=$("button:eq(0)"),p=$("p");button.click(function(a){$("div").addClass("divHide");time=totalTime;goldCaught=0;unactivation();activation();main();timeInterval=setInterval(tick,1E3)});function tick(){time--;0>time&&(clearInterval(timeInterval),cancelAnimationFrame(mainFrame),$("div").removeClass(),goldCaught>ma... | JavaScript | 0.000001 | @@ -1292,17 +1292,18 @@
+=moveX/
-2
+10
0%7D,!1);a
|
94075a5e7c16ea83a79315399d332a9e9fd9d1ae | Update RequestManager.js | eln/request/RequestManager.js | eln/request/RequestManager.js | 'use strict';
import {confirm} from 'src/util/ui';
const statuses = {
// statusCode: [statusName, statusColor]
0: ['Cancelled', '#AAAAAA'],
10: ['Pending', '#FFDC00'],
20: ['Processing', '#0074D9'],
30: ['Finished', '#01FF70'],
90: ['Error', '#FF4136']
};
const muteSuccess = {muteSuccess: true... | JavaScript | 0.000001 | @@ -2939,32 +2939,39 @@
%7D;%0A
+return
await this.roc.c
|
6fafc3eca4de0d3a613deef9c07e9a59f589d777 | add errorNumberToString to Debug. | extension.debug.js | extension.debug.js | var Debug;
module.exports = Debug = {
log: function(value) {
// TODO: Log into memory until reaches N number, then send notice through screeps API.
console.log(`${value}, time: ${Game.time}`);
}
}; | JavaScript | 0 | @@ -206,16 +206,1436 @@
ime%7D%60);%0A
+ %7D,%0A errorNumberToString: function (value) %7B%0A switch (value) %7B%0A case ERR_NOT_OWNER:%0A return %22ERROR_NOT_OWNER%22;%0A case ERR_NO_PATH:%0A return %22ERROR_NO_PATH%22;%0A case ERR_NAME_EXIST... |
f6ef86cf274ae99b94127b049376bd755ddbaaa9 | Update RequestManager.js | eln/request/RequestManager.js | eln/request/RequestManager.js | 'use strict';
import {confirm} from 'src/util/ui';
const statuses = {
// statusCode: [statusName, statusColor]
0: ['Cancelled', '#AAAAAA'],
10: ['Pending', '#FFDC00'],
20: ['Processing', '#0074D9'],
30: ['Finished', '#01FF70'],
90: ['Error', '#FF4136']
};
const muteSuccess = {muteSuccess: true... | JavaScript | 0.000001 | @@ -2165,32 +2165,97 @@
ons.data %7C%7C %7B%7D;%0A
+ const disableNotification = options.disableNotification;%0A
// allow
|
4c6ab3e1908c22df89286f6eb172cec635707339 | Simplify code | public/front.js | public/front.js | $.getJSON('/courts', function (allData) {
var data = [].concat(allData.meilahti, allData.herttoniemi)
var sameDates = _.groupBy(data, 'date')
var list = []
_.forEach(sameDates, function (times, isoDate) {
list.push('<h4>' + new Date(isoDate).toDateString() + '</h4>')
var sameTimes = _.g... | JavaScript | 0.041259 | @@ -115,24 +115,30 @@
sameDates =
+_.map(
_.groupBy(da
@@ -152,41 +152,49 @@
te')
-%0A%0A var list = %5B%5D%0A _.forEach
+, objectToArray)%0A%0A $('.schedule').html
(sam
@@ -199,18 +199,21 @@
ameDates
-,
+.map(
function
@@ -218,44 +218,88 @@
on (
-times, isoDate) %7B%0A list.push(
+obj) %7B%0A ... |
b13cd0ab1567c5d7ddf28c371ecce4b4667152e1 | Fix share image button placement in Gmail inline images. | embeds/buffer-hover-button.js | embeds/buffer-hover-button.js | /**
* Buffer share buttons visible on hover
*/
;(function(){
var currentImageUrl = null;
/**
* Create a single global button
*/
var buttonWidth = 100;
var buttonHeight = 25;
var dpr = window.devicePixelRatio;
var backgroundImage = (dpr && dpr > 1) ?
xt.data.get('data/shared/img/buffer-hover-ic... | JavaScript | 0 | @@ -913,16 +913,52 @@
(err) %7B
+ /* No need to handle this error */
%7D%0A%0A var
@@ -993,32 +993,38 @@
ton = function(e
+, X, Y
) %7B%0A var imag
@@ -1224,25 +1224,25 @@
ox.width
-;
+,
%0A
-var
+
height
@@ -1269,17 +1269,330 @@
x.height
-;
+,%0A extraXOffset = 0 %7C%7C X,%0A extra... |
4ebe85f6bacdb2c441332d7d25f2ade4fa6737a4 | Make Pablo button visible when hovering over Buffer img button | embeds/buffer-hover-button.js | embeds/buffer-hover-button.js | /**
* Buffer share buttons visible on hover
*/
;(function(){
/**
* Prevent from being inserted in certain situations
*/
// Do not insert for iframes
if (window !== window.parent) return;
// Do no insert for content editing windows
if (!document.body || document.body.hasAttribute('contenteditable')) r... | JavaScript | 0.000001 | @@ -3253,16 +3253,57 @@
block';%0A
+ setPabloButtonVisibilityState(true);%0A
%7D;%0A%0A
@@ -3449,76 +3449,814 @@
r on
-ImageMouseEnter = function(e) %7B%0A showButton(e);%0A locateButton(
+MouseleaveButton = function() %7B%0A setPabloButtonVisibilityState(false);%0A hideButton();%0A %7D;%0A%0A v... |
40ce4e0accecc2df224d3535f915d78e7c1ddf8b | Streamline recentering code. | zephyr/static/js/viewport.js | zephyr/static/js/viewport.js | var viewport = (function () {
var exports = {};
var jwindow;
var height;
var width;
var in_stoppable_autoscroll = false;
exports.at_top = function () {
return (jwindow.scrollTop() <= 0);
};
exports.at_bottom = function () {
// outerHeight(true): Include margin
var bottom = jwindow.scrollTop() + jwindow.h... | JavaScript | 0.000016 | @@ -1142,16 +1142,103 @@
ffset;%0A%0A
+ suppress_scroll_pointer_update = true; // Gets set to false in the scroll handler.%0A
jwin
|
453055d9b8142adaeb75f0e84cc4d3ce9e7f66f1 | Disable unused tests to fix the build. | test/spec/controllers/authentication.js | test/spec/controllers/authentication.js | 'use strict';
describe('Controller: AuthenticationCtrl', function () {
// load the controller's module
beforeEach(module('dockstore.ui'));
var AuthenticationCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
... | JavaScript | 0 | @@ -451,16 +451,19 @@
%7D));%0A%0A
+ //
it('sho
@@ -527,16 +527,19 @@
n () %7B%0A
+ //
expec
@@ -591,16 +591,19 @@
Be(3);%0A
+ //
%7D);%0A%7D);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.