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 |
|---|---|---|---|---|---|---|---|
3fa7d829ecc6798e2288ea4fcc801987fdf84682 | Allow game start | public/js/game.js | public/js/game.js | var app = angular.module('webRebellion', []);
app.controller('BaseController', function($http, $scope) {
$scope.messages = [];
$scope.disconnectedBy = null;
$scope.formatTime = function(unixtime) {
var date = new Date(unixtime * 1000);
var hours = date.getHours();
if (hours < 10) {
hours = "0"... | JavaScript | 0 | @@ -1296,32 +1296,41 @@
r, $http, $scope
+, $window
) %7B%0A $controlle
@@ -2784,24 +2784,104 @@
%7D);%0A %7D%0A%0A
+ var onStartGame = function(event) %7B%0A $window.location.href = '/game';%0A %7D%0A%0A
var es = n
@@ -3022,32 +3022,89 @@
nected, false);%0A
+ es.addEventListener('game.start', onStart... |
c0c13e73d298cf99e628d528585e9345b79d5bd7 | Remove erroneous static declaration on boundWidgetClass | client/src/entrypoints/admin/telepath/widgets.js | client/src/entrypoints/admin/telepath/widgets.js | /* eslint-disable indent */
/* global $ */
class BoundWidget {
constructor(element, name) {
var selector = ':input[name="' + name + '"]';
this.input = element.find(selector).addBack(selector); // find, including element itself
}
getValue() {
return this.input.val();
}
getS... | JavaScript | 0.000001 | @@ -545,31 +545,24 @@
%0A %7D%0A%0A
-static
boundWidgetC
@@ -1422,15 +1422,8 @@
-static
boun
|
1ee2af751655bba939acf4e29535af75df1355ad | Fix catalogs url | app/controllers/account/organization/index.js | app/controllers/account/organization/index.js | angular.module('mainApp').controller('OrganizationIndex', function ($scope, $http, $timeout) {
$http.get('/api/catalogs').success(function (data) {
$scope.catalogs = data;
});
$scope.datasetMetrics = {};
$scope.selectedCatalog = function () {
return _.find($scope.catalogs, { _id: $sco... | JavaScript | 0.000005 | @@ -109,24 +109,46 @@
t('/api/
-catalogs
+geogw/services/by-protocol/csw
').succe
|
c8d94c9ffb07cd5ffc2b51cbe2558b397c9f5f4c | Add api endpoints to main controller | public/js/main.js | public/js/main.js | angular.module('PassApp', ['ui.router'])
.config(function($stateProvider, $urlRouterProvider){
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'html/home.html',
controller: 'MainCtrl'
});
})
.controller('MainCtrl', function($scope, ApiService){
console.log("... | JavaScript | 0 | @@ -389,39 +389,372 @@
%7D;%0A%09
-ApiService.postResults(results);
+var exam = %7B data: %22Here comes order!%22 %7D;%0A%0A%09$scope.createResult = function()%7B%0A%09%09ApiService.postResults(results);%0A%09%7D%0A%0A%09$scope.createExam = function()%7B%0A%09%09ApiService.createExam(exam);%0A%09%7D%0A%0A%09$scope.fin... |
21c11f8a7af53670cd07e1f6a2ff8c8c4e8c0d86 | add context to selecting canvas | public/js/main.js | public/js/main.js | require.config({
name: 'main',
paths: {
jef: '../vendor/jef/src',
text: '../vendor/requirejs-text/text',
interact: '../vendor/interact/interact.min'
}
});
define([
'./config',
'./stream',
'./dom/eventEmitter',
'./utils/mapDropEventToPosition',
'./utils/mapThumbDi... | JavaScript | 0.000001 | @@ -6996,32 +6996,53 @@
or('canvas%5Bdata-
+context=%22diff%22%5D%5Bdata-
id=%22' + data.id
@@ -7486,24 +7486,45 @@
canvas%5Bdata-
+context=%22diff%22%5D%5Bdata-
id=%22' + id +
|
43924639437ded0b10a305f2082ff766fb3a763c | move click event handler to ng-click directive for mobile support | angular-bootstrap-checkbox.js | angular-bootstrap-checkbox.js | "use strict";
angular.module("ui.checkbox", []).directive("checkbox", function() {
return {
scope: {},
require: "ngModel",
restrict: "E",
replace: "true",
template: "<button type=\"button\" ng-style=\"stylebtn\" class=\"btn btn-default\" ng-class=\"{'btn-xs': size==='default', 'btn-sm': size==='large', 'btn... | JavaScript | 0 | @@ -178,16 +178,43 @@
%22%3Cbutton
+ ng-click=%5C%22handleClick()%5C%22
type=%5C%22
@@ -2390,57 +2390,28 @@
%0A%09%09%09
-elem.bind(%22click%22, function() %7B%0A%09%09%09%09scope.$apply(
+scope.handleClick =
func
@@ -2415,25 +2415,24 @@
unction() %7B%0A
-%09
%09%09%09%09if(model
@@ -2463,33 +2463,32 @@
seValu... |
d4950980d90ee92645fdee0340a69c56c2395b76 | Implement update 'image of' method | public/js/main.js | public/js/main.js | // main.js
//
"use strict";
(function(win, $, undefined) {
var doc = win.document;
// HOOK
// Page loaded
$(win).on('load', function() {
$('body').addClass('loaded');
});
// Keyboard shortcuts
$(doc).on('keyup', function(e) {
switch(e.which) {
case 37:
Gallery.previousImage();
break;
... | JavaScript | 0.000046 | @@ -2627,24 +2627,52 @@
iousNext();%0A
+%09%09%09Gallery.updateImageOf();%0A
%09%09%7D,%0A%0A%09%09upda
@@ -3320,24 +3320,114 @@
%0A%09%09%09%7D%0A%09%09%7D,%0A%0A
+%09%09updateImageOf: function() %7B%0A%09%09%09$('#js-image-of').text( Gallery.activeImage + 1 );%0A%09%09%7D,%0A%0A
%09%09toggleThum
@@ -3515,51 +3515... |
7cc64313e7aff4548e9c17ef2abf57785edb0530 | Fix bug in number parser | public/js/snap.js | public/js/snap.js | $(function() {
var socket = io();
$('#setTopicButton').click(function() {
var topic = $('#topic').val();
console.log("Set Topic To: " + topic);
socket.emit('set topic', topic);
});
$('#startGameButton').click(function() {
console.log("Starting Game...");
socket.emit('start game');
}... | JavaScript | 0.000024 | @@ -3301,19 +3301,22 @@
return
-val
+number
;%0A
|
5ddaac08700477fb6a333f05f076fe9cca11b37d | use if statement instead of ternary | app/directives/metric-picker/metric-picker.js | app/directives/metric-picker/metric-picker.js | angular.module(PKG.name + '.commons')
.directive('myMetricPicker', function (MyDataSource) {
var dSrc = new MyDataSource();
function MetricPickerCtrl ($scope) {
var a = ['system', 'user'];
$scope.available = {
types: a,
contexts: [],
metrics: []
};
$scope.m... | JavaScript | 0.003197 | @@ -1071,24 +1071,148 @@
);%0A%0A
+ if(v) %7B%0A // assigning the promise directly works%0A // only because results are used as is.%0A
sc
@@ -1234,20 +1234,16 @@
etrics =
- v ?
dSrc.re
@@ -1253,34 +1253,38 @@
st(%0A
+
+
%7B%0A
+
_c... |
d449125dfcac354bf78086118070cb7a4384cf84 | fix requires of ext-* files | build/update.js | build/update.js | 'use strict'
/*jshint asi: true */
var path = require('path');
var fs = require('fs');
var workers = require('./workers');
var stringifyWorkers = require('./stringify-workers');
var fixRequires = require('./fix-requires');
require('shelljs/global');
var braceroot = p... | JavaScript | 0 | @@ -437,24 +437,72 @@
t, 'mode');%0A
+var extdir = path.join(braceroot, 'ext');%0A
var workersr
@@ -1964,32 +1964,307 @@
%7D);%0A %7D()%0A
+ %0A +function exts() %7B%0A rm('-rf', extdir);%0A mkdir(extdir);%0A%0A ls(path.join(buildroot, 'ext-*.js'))%0A .forEach(function (file) %7B%0A ... |
7c473f02e20fdbca6ec30a12be1fad2efbf9ea10 | fix upload script for Draft 07 schemas | build/upload.js | build/upload.js | /**
* Uploads latest and versioned copies of schemas to Azure Storage. Reads from the /yaml folder and converts to JSON, rather than reading from the JSON folder directly.
*/
/* eslint-disable
global-require,
no-await-in-loop,
no-console,
*/
// IMPORTS
if (!process.env.AZURE_STORAGE_CONNECTION_STRING) {
req... | JavaScript | 0 | @@ -3007,16 +3007,17 @@
(schema.
+$
id).grou
|
cba3ed80ae495b3185b8b3526dce7e4a5e0572b1 | fix jslint: remove unused variable | js/common/tests/shell-transactions-noncluster.js | js/common/tests/shell-transactions-noncluster.js | /*jshint globalstrict:false, strict:false */
/*global assertEqual, fail */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for client/server side transaction invocation
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Cologne, Germany
///
///... | JavaScript | 0.000014 | @@ -1185,44 +1185,8 @@
%22);%0A
-var internal = require(%22internal%22);%0A
var
|
9b71d1a5d5fc594fb676592518f96227164adc28 | Make shareWS.js backwards compatible | app/scripts/controllers/modalForms/shareWS.js | app/scripts/controllers/modalForms/shareWS.js | //====================================================================================================================
// Webble World
// [IntelligentPad system for the web]
// Copyright (c) 2010 Micke Nicander Kuwahara, Giannis Georgalis, Yuzuru Tanaka in Meme Media R&D Group of Hokkaido University
// v3.0 (2013), v3.... | JavaScript | 0 | @@ -9189,16 +9189,21 @@
u.email
+ %7C%7C u
; %7D);%0A
|
7f8d064a66e6ceb9aeedcf1f5518862fd2c08780 | remove artificial delay (forgot to remove after debugging) | popup.js | popup.js | "use strict";
let list = document.querySelector("ol");
browser.runtime.sendMessage({
type: "getNotifications",
})
.then(i=>new Promise(resolve => setTimeout(() => resolve(i), 5000)))
.then(notifications => {
list.innerHTML = "";
list.className = "";
notifications.forEach(notification => {
let item = list.appe... | JavaScript | 0 | @@ -114,77 +114,8 @@
%0A%7D)%0A
-.then(i=%3Enew Promise(resolve =%3E setTimeout(() =%3E resolve(i), 5000)))%0A
.the
|
aab81efd413d9003c5707d53d846fe52ec8878eb | Fix submenus active requirement 1 to 0, all submenus can be closed | app/src/components/Sidebar/Sidebar.service.js | app/src/components/Sidebar/Sidebar.service.js | import SidebarAction from './Sidebar.action'
function SidebarReducer(state = {
open: true,
menus: [
{
name: 'Config',
menus: [
{
name: 'Board',
active: false,
openSub: false
},
{
name: 'Applicant',
active: false,
openSub: false,
submenus: [
{
name: ... | JavaScript | 0 | @@ -941,305 +941,8 @@
ate%0A
-%09%09%09defaultState.menus.map(function (module)%7B%0A%09%09%09%09if(module.menus)%7B%0A%09%09%09%09%09module.menus.map(function(menu)%7B%0A%09%09%09%09%09%09menu.active = false%0A%09%09%09%09%09%09menu.openSub = false%0A%09%09%09%09%09%09if(menu.submenus)%7B%0A%09%09%09%09%09%09%09menu.... |
2e1ecbd14e14ef463b675059165c66a2012e9c80 | fix aphrodite with jest | internals/test/setupTests.js | internals/test/setupTests.js | /* eslint-disable import/no-extraneous-dependencies */
const enzyme = require('enzyme')
const Adapter = require('enzyme-adapter-react-16')
const { JSDOM } = require('jsdom')
const { StyleSheetTestUtils } = require('aphrodite/no-important')
const { StyleSheetTestUtils: StyleSheetTestUtilsNoImportant } = require('aphrod... | JavaScript | 0.999836 | @@ -218,29 +218,16 @@
phrodite
-/no-important
')%0Aconst
|
fb00924478eca0d4807a798877295cba1868dfaa | Return extractor (#382) | entry/makeExtractor.js | entry/makeExtractor.js | import React from 'react';
import { ChunkExtractor, ChunkExtractorManager } from '@loadable/server';
import defaultEntryPoint from '../context/defaultClientEntry';
export default (stats, publicPath) => {
const extractor = new ChunkExtractor({
stats,
entrypoints: [defaultEntryPoint],
});
const SkuProvid... | JavaScript | 0 | @@ -975,16 +975,31 @@
ovider,%0A
+ extractor,%0A
%7D;%0A%7D;%0A
|
1f040b29185f3adfc26b9c9767e336b6e2daa4f6 | Move import to top of file | imports/RegionSelection.js | imports/RegionSelection.js | export default RegionSelection = {};
/** List of routes that show different results when the region changes.
*/
RegionSelection.regionDependentRoutes =
['home', 'find', 'calendar', 'venueMap'];
/** Subscribe to list of regions and configure the regions
* This checks client storage for a region setting. When ther... | JavaScript | 0 | @@ -29,16 +29,49 @@
on = %7B%7D;
+%0Aimport '/imports/IpLocation.js';
%0A%0A/** Li
@@ -1871,43 +1871,8 @@
ed.%0A
-%09%09import '/imports/IpLocation.js';%0A
%09%09Ip
|
dc32515f6513f565942528c8fa0c82a8853d52ab | Change comms co-owner from Anthony -> Francisco | ffos/b2g/owners.js | ffos/b2g/owners.js | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
//Please keep the owner names consistent with phonebook names
var OWNERS = {
"AudioChannel": "Eric Chou", // Firefox OS
// "BetaTriage": "?", // Firefox OS
"Blueto... | JavaScript | 0 | @@ -833,30 +833,33 @@
glieri (
-Anthony Ricaud
+Francisco Jordano
)%22, // D
@@ -1014,38 +1014,41 @@
ravaglieri (
-Anthony Ricaud
+Francisco Jordano
)%22,%0A %22Gaia:
@@ -1371,38 +1371,41 @@
ravaglieri (
-Anthony Ricaud
+Francisco Jordano
)%22,%0A %22Gaia:
@@ -1437,38 +1437,41 @@
ravaglieri (
-Anthony Ricaud
+... |
27f6ddcff7925c77c50fe45a6e30922acca2f365 | Fix additional merege conflicts | server/api/business/business.controller.js | server/api/business/business.controller.js | // Request API access: http://www.yelp.com/developers/getting_started/api_access
'use strict';
var Business = require('./data.js')
var _ = require("underscore");
var yelp = require("yelp").createClient({
consumer_key: "hq_KSPooNh3W8tq4royv5w",
consumer_secret: "5Vhff5nu84H1pNMCQ_52INZuSfA",
token: "IlX8Uxc60fR-rV... | JavaScript | 0.000074 | @@ -954,19 +954,16 @@
ncisco%0A
- //
yelp.se
@@ -1067,19 +1067,16 @@
rror);%0A
- //
busin
@@ -1122,23 +1122,16 @@
00,
-Business
+data
);%0A
- //
%7D);
|
315fc26a55719fc7a9862c3c393413a1779622d7 | Optimize backend button click function | src/mist/io/static/js/app/views/backend_button.js | src/mist/io/static/js/app/views/backend_button.js | define('app/views/backend_button', ['ember'],
/**
* Backend Button View
*
* @returns Class
*/
function() {
return Ember.View.extend({
template: Ember.Handlebars.compile("{{title}}"),
tagName: 'a',
attributeBindings: ['data-role', 'data-theme', '... | JavaScript | 0.000004 | @@ -928,16 +928,118 @@
ackend;%0A
+ $('#monitoring-message').hide();%0A $('#backend-delete-confirm').hide();%0A
@@ -1117,39 +1117,31 @@
$('
-select.ui-slider-switch
+#backend-toggle
option%5B
@@ -1205,31 +1205,23 @@
$('
-select.ui-slider-switch
+#backend-toggle
').s
|
77cf2aafacf859b053ee2d704f6b2ce0d4df5a71 | remove unused variables. for the hide/show functions jquery's default variables are used everywhere | src/static/js/pad_modals.js | src/static/js/pad_modals.js | /**
* This code is mostly from the old Etherpad. Please help us to comment this code.
* This helps other people to understand this code better and helps them to improve it.
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED
*/
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.... | JavaScript | 0.000002 | @@ -831,56 +831,8 @@
/%0A %0A
-var padutils = require('./pad_utils').padutils;%0A
var
@@ -1310,32 +1310,24 @@
y: function(
-duration
) %7B%0A $(
@@ -1383,16 +1383,8 @@
ion(
-duration
) %7B%0A
|
2343afd11e6f5de24fa353155abfe658afeaa1c9 | Add email async validation | src/client/app/components/forms/forms/user.form.js | src/client/app/components/forms/forms/user.form.js | (function() {
'use strict';
angular.module('app.components')
.config(userForm);
/** @ngInject */
function userForm(FormsProvider) {
FormsProvider.register('userForm', {
fields: [
{
className: 'forms__body',
fieldGroup: [
{
key: 'first_name',
... | JavaScript | 0.000001 | @@ -365,32 +365,33 @@
mplateOptions: %7B
+
%0A
@@ -499,161 +499,8 @@
e.'%0A
- %7D,%0A validation: %7B%0A messages: %7B%0A required: '%22A first name must be provided%22'%0A %7D%0A
@@ -758,33 +758,32 @@
%0A %7... |
8abf9b0a6aaa5f6e0408152461842b3c4cfbed43 | Add a maxHeight to the autocomplete dialog | app/components/shared/Autocomplete/Dialog/index.js | app/components/shared/Autocomplete/Dialog/index.js | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from '../../Dialog';
import SearchField from '../../SearchField';
import Suggestion from './suggestion';
import ErrorMessage from '../error-message';
class AutocompleteDialog extends React.PureComponent {
static propTypes = {
isOpen: P... | JavaScript | 0.000001 | @@ -2817,16 +2817,53 @@
ght: 300
+, maxHeight: '50vh', overflow: 'auto'
%7D%7D%3E%0A
|
449cc01ce8b156d30f416d42309224a0675af2b8 | Fix broken compare chart when number of readings = 14 | src/client/app/containers/CompareChartContainer.js | src/client/app/containers/CompareChartContainer.js | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import { Bar } from 'react-chartjs-2';
import moment from 'moment';
import { connect } from 'react-redux';
imp... | JavaScript | 0.000549 | @@ -2717,16 +2717,17 @@
length %3C
+=
14) %7B%0A%09
|
72d63963973111e5e0363a08b93d002d42d71286 | Add removal of TransactionBatch sync translation | src/sync/syncTranslators.js | src/sync/syncTranslators.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
/* eslint-disable quote-props */
export const INTERNAL_TO_EXTERNAL = 0;
export const EXTERNAL_TO_INTERNAL = 1;
class SyncTranslator {
constructor(internalToExternal) {
this.internalToExternal = internalToExternal;
this.externalToInternal = {... | JavaScript | 0 | @@ -2226,16 +2226,52 @@
n: 'pi',
+%0A receipt: 'rc',%0A payment: 'ps',%0A
// Foll
@@ -2374,235 +2374,8 @@
r',%0A
- receipt: 'rc',%0A payment: 'ps',%0A%7D);%0A%0Aexport const TRANSACTION_BATCH_TYPES = new SyncTranslator(%7B%0A customer_invoice: 'stock_out',%0A customer_credit: 'stock_in',%0A supplier_invoice... |
8118995331a1e33dcb77b06528799a6ce1623b0b | Remove unecessary return statements | source/javascripts/app/examples/routing/app.js | source/javascripts/app/examples/routing/app.js | // Model
App.Mailbox = Em.Object.extend();
App.Mailbox.reopenClass({
find: function(id) {
if (id) {
return App.FIXTURES.findBy('id', id);
} else {
return App.FIXTURES;
}
}
});
// Routes
App.Router.map(function() {
return this.resource('mailbox', { path: '/:mailbox_id' }, function() {
... | JavaScript | 0.999996 | @@ -241,23 +241,16 @@
n() %7B%0A
-return
this.res
@@ -305,31 +305,24 @@
ion() %7B%0A
-return
this.resourc
|
139c9ed17cbe7949e666465a73fa20bc6a323abd | Fix comments style | jasmine/src/invertedIndex.js | jasmine/src/invertedIndex.js | 'use strict';
function Filter() {
// List of Stop Words from PostgreSQL 9.4.5
this.stopWords = [
'a', 'about', 'above', 'after', 'again', 'against', 'all','am', 'an', 'and',
'any', 'are', 'as', 'at', 'be', 'because', 'been', 'before','being',
'below', 'between', 'both', 'but', 'by', 'can', 'did', 'do', 'does... | JavaScript | 0 | @@ -3841,26 +3841,34 @@
ts%5B0%5D;%0A %7D
-%0A%0A
+ else %7B%0A
// Other
@@ -3925,19 +3925,8 @@
ect%0A
- else %7B%0A
|
3f4ebdaa63c1916a738d8127bf33060b4a913328 | Comment out some Angular Material demo code to refer to later | server/public/scripts/controllers/nav.controller.js | server/public/scripts/controllers/nav.controller.js | app.controller('NavController', ['$http', '$firebaseAuth', function($http, $firebaseAuth) {
console.log('NavController running');
var auth = $firebaseAuth();
var self = this;
self.logIn = function() {
auth.$signInWithPopup("google").then(function(firebaseUser) {
console.log("Firebase Authenticated as... | JavaScript | 0 | @@ -449,16 +449,138 @@
%0A %7D;%0A%0A
+ // demo code from Angular Material docs to auto select the current nav item of%0A // the currently open window%0A ////%0A //
(functi
@@ -587,16 +587,19 @@
on() %7B%0A
+ //
'use
@@ -607,18 +607,25 @@
trict';%0A
-%0A
+ //%0A //
angul
@@ -700,16 +700,19 @@
c... |
6a0685804a0009f0210897b4f4dd88526e570e60 | Delete defaultValue to avoid warning about controller pattern | src/components/controls/SearchInput/SearchInput.js | src/components/controls/SearchInput/SearchInput.js | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import './SearchInput.scss'
/**
* Input field that displays an icon and a clear button, intended to be used as a global search on
* sections and popovers.
*/
export default class SearchInput extends Component {
... | JavaScript | 0 | @@ -2595,16 +2595,46 @@
onSubmit
+%0A delete other.defaultValue
%0A%0A re
|
5665fdaf288589d282ebe1d84b127aedf6a5053a | Fix egregious bug with removing all namespaced listeners | ocradmin/static/js/ocrbase.js | ocradmin/static/js/ocrbase.js |
// Initialise OCRJS namespace
if (OCRJS === undefined) {
var OCRJS = {};
}
OCRJS.OcrBase = Base.extend({
constructor: function(options) {
this._log = [];
this.options = {
log: false,
}
$.extend(this.options, options);
this._listeners = {};
},
... | JavaScript | 0 | @@ -2553,16 +2553,18 @@
if (k
+ey
== %22%22 %7C
|
47c0bb79b7f64528356cbb1387396f6eb7b9c061 | Styled the person list | NavigationReactNative/sample/redux/PersonItem.js | NavigationReactNative/sample/redux/PersonItem.js | import React from 'react';
import {Text, View, TouchableOpacity} from 'react-native';
import {NavigationContext} from 'navigation-react';
import {connect} from 'react-redux';
const mapStateToProps = ({byId}, {id}) => ({person: byId[id]});
const PersonItem = ({person: {id, name}}) => (
<NavigationContext.Consumer>
... | JavaScript | 0.999999 | @@ -28,16 +28,28 @@
import %7B
+StyleSheet,
Text, Vi
@@ -495,16 +495,36 @@
%3CText
+ style=%7Bstyles.name%7D
%3E%7Bname%7D%3C
@@ -668,8 +668,116 @@
nItem);%0A
+%0Aconst styles = StyleSheet.create(%7B%0A name: %7B%0A fontSize: 20,%0A margin: 5,%0A marginLeft: 25,%0A %7D,%0A%7D);%0A
|
e42057750140d3b9a02b171c6a06dc9c869083ad | Handle exceptions thrown by Ajv | src/services/ValidatorFactoryAJV.js | src/services/ValidatorFactoryAJV.js | 'use strict';
var app = angular.module('app', false);
// Handles draft-04, v5-unofficial
app.factory('validatorFactoryAJV', function ($window, $q, alertService, $log) {
var Validator = function (version) {
// Initially unset for lazy-loading
var validator;
var _setupPromise;
var setup = function (... | JavaScript | 0 | @@ -1863,36 +1863,77 @@
on () %7B%0A
-if (
+var result;%0A try %7B%0A result =
validator.valida
@@ -1960,24 +1960,391 @@
umentObject)
+;%0A %7D catch (e) %7B%0A // Some errors are thrown by Ajv, not wrapped up in its nice validator.errors interface%0A $log.error(%22V... |
440c2ec91e8d9ad18588399068d9b22b05067fd5 | Connect to LDAP server to verify config | src/services/ldap-config/service.js | src/services/ldap-config/service.js | class LdapConfigService {
async create(config, params) {
const { verifyOnly } = params.query;
const verificationResult = await this.verifyConfig(config);
if (verificationResult.ok && !verifyOnly) {
await this.saveConfig(config);
}
return verificationResult;
}
async verifyConfig(/* config */) {
retu... | JavaScript | 0 | @@ -1,29 +1,106 @@
c
-lass LdapConfigService %7B
+onst logger = require('../../logger');%0A%0Aclass LdapConfigService %7B%0A%09setup(app) %7B%0A%09%09this.app = app;%0A%09%7D%0A
%0A%09as
@@ -372,78 +372,673 @@
fig(
-/*
config
- */) %7B%0A%09%09return %7B%0A%09%09%09ok: true,%0A%09%09%09users: %7B%0A%09%09
+) %7B%0... |
8d1220cfc5a4c93a6a9f301a5d172a6f2bd98759 | test cases | app/components/create-team.js | app/components/create-team.js | import Ember from 'ember';
import ENV from 'irene/config/environment';
import { translationMacro as t } from 'ember-i18n';
import triggerAnalytics from 'irene/utils/trigger-analytics';
const CreateTeamComponent = Ember.Component.extend({
i18n: Ember.inject.service(),
ajax: Ember.inject.service(),
notify: Ember.... | JavaScript | 0.000945 | @@ -620,24 +620,77 @@
teamName%22);%0A
+ const tTeamCreated = this.get(%22tTeamCreated%22);%0A
if (Em
|
cdd483c5758f7d1e40b01418df6c06b7882cd424 | Increase timeout on score entry | app/components/enter-score.js | app/components/enter-score.js | import Ember from 'ember';
import { task, timeout } from 'ember-concurrency';
export default Ember.Component.extend({
autosave: task(function* (points){
let intPoints = parseInt(points);
this.get('score').set('points', intPoints);
yield timeout(200);
yield this.get('score').save();
}).restartable()... | JavaScript | 0 | @@ -257,9 +257,9 @@
out(
-2
+8
00);
|
9d2fb1b83c055b526d3a88b91836d563836a5f3d | Add reset for log limited flag (#669) | app/components/log-content.js | app/components/log-content.js | /* global Travis, Log */
import Ember from 'ember';
import LinesSelector from 'travis/utils/lines-selector';
import LogFolder from 'travis/utils/log-folder';
import { plainTextLog as plainTextLogUrl } from 'travis/utils/urls';
const { service } = Ember.inject;
const { alias } = Ember.computed;
Log.LIMIT = 10000;
Log... | JavaScript | 0 | @@ -2858,24 +2858,58 @@
('log'))) %7B%0A
+ this.set('limited', false);%0A
this.c
|
2f0ba70ad9d49b9a1e48d6b79ca8354e063e42b9 | is statement | app/components/modal/index.js | app/components/modal/index.js | // @flow
import React, {Component} from 'react'
import {connect} from 'react-redux'
import type {State, Dispatch, ModalType} from '../../types'
import {closeModal} from '../../actions'
import ModalWrapper from './ModalWrapper'
import SelectColumnModal from './select'
import SettingModal from './setting'
import SearchMo... | JavaScript | 1 | @@ -636,38 +636,35 @@
olumnModal/%3E%0A%09%09%7D
- else
+%0A%09%09
if (type === 'FI
@@ -697,38 +697,35 @@
ttingModal/%3E%0A%09%09%7D
- else
+%0A%09%09
if (type === 'SE
@@ -765,14 +765,11 @@
%0A%09%09%7D
- else
+%0A%09%09
if (
|
07ec452f00bfdf158f2dfee3f31d053c8bc59859 | stop timer when time is 0. | app/elements/timer/lib/app.js | app/elements/timer/lib/app.js | (function() {
'use strict';
var converter = {
s2m: function(s) {
var minutes = Math.floor(s / 60);
var seconds = s % 60;
return ('0' + minutes.toString()).slice(-2) + ':' + ('0' + seconds.toString()).slice(-2);
},
m2s: function(m) {
var arrayString = m.split(':');
var minut... | JavaScript | 0.000249 | @@ -1350,16 +1350,20 @@
is.time)
+ - 1
;%0A
@@ -1395,14 +1395,300 @@
(now
- - 1);
+);%0A%0A if (now === 0) %7B%0A this.stop();%0A%0A var title = 'PomodoroTimer';%0A var message = 'Elapsed time: 00:10';%0A this.message = message;%0A this.notify(title, message);%0A ... |
9147a6e8c4995e3d925e3d4807fd02192b3868a1 | Write phone to DB | client/app/controllers/createProfileController.js | client/app/controllers/createProfileController.js | angular.module('bolt.createProfile', [])
.controller('CreateProfileController', function($scope, Profile) {
$scope.createProfile = function(first, last, email, phone, distance) {
var newData = {
first: first,
last: last,
email: email,
phone: phone,
distancePreference: distance
}... | JavaScript | 0.999264 | @@ -271,16 +271,27 @@
e: phone
+.toString()
,%0A
|
924da021ed0a60584baf8256d07ffbdddf9aecdf | Reset last | server/app/sockets/characterSocket.js | server/app/sockets/characterSocket.js | "use strict";
//Modules dependencies
var async = require("async");
var characterService = process.require("services/characterService.js");
var applicationStorage = process.require("api/applicationStorage.js");
module.exports.connect = function(){
var io = applicationStorage.getSocketIo();
io.on('connection',... | JavaScript | 0.000002 | @@ -1746,24 +1746,138 @@
iltering) %7B%0A
+ if (filtering) %7B%0A filters.page = 1;%0A filters.last = null;%0A %7D%0A
|
d36b570ed2f302f92588d84cf68e349598df9a8e | We need to convert incoming message | server/es6/ReceiveTransactionsTask.js | server/es6/ReceiveTransactionsTask.js | import config from './config';
import {transactionConsumer} from './TransactionConsumer';
import {dbconnectionManager} from './DBConnectionManager';
import {backChainUtil} from './BackChainUtil';
class ReceiveTransactionsTask {
constructor() {}
callGetMessages(authenticationToken, backChainURL, callback) {
... | JavaScript | 0.999999 | @@ -696,34 +696,23 @@
er('
-ProgressiveRetailerVCAdmin
+ScottRepAnalyst
' +
@@ -1443,29 +1443,20 @@
-console.log('
+let
hasMoreP
@@ -1463,13 +1463,10 @@
ages
-: ' +
+ =
res
@@ -1477,25 +1477,33 @@
hasMorePages
-)
+ %7C%7C false
;%0A
@@ -1680,23 +1680,16 @@
if(
-result.
hasMoreP
@@ -... |
1728483470193ba5c99fd4bb88e2acbf0b9ce88a | Allow to pass markdown render options and concurrency parameter into transform-md-html task module | src/tasks/docs/transform-md-html.js | src/tasks/docs/transform-md-html.js | import path from 'path';
import Q from 'q';
import mdToHtml from 'bem-md-renderer';
import * as baseUtil from '../../util';
/**
* Transforms page content source files from markdown format to html
* @param {Model} model - application model instance
* @returns {Function}
* @example
* var Q = require('q');
* var go... | JavaScript | 0 | @@ -244,16 +244,225 @@
nstance%0A
+ * @param %7BObject%7D options - task options%0A * @param %7BObject%7D %5Boptions.markedOptions%5D - marked options for markdown parsing%0A * @param %7BNumber%7D %5Boptions.concurrency%5D - number of pages processed at the same time%0A
* @retu
@@ -476,16 +476,16 @@
nction%7D%0A
-
... |
049215a673ec47681386cd7fa0d75c9126e527b6 | handle blank submission case | assets/js/app.js | assets/js/app.js | import framework from 'framework'
import domselect from 'dom-select'
import utils from 'utils'
import queryDom from 'query-dom-components'
import config from 'config'
import events from 'dom-event'
class App {
constructor(opt = {}) {
this.dom = queryDom({ el: config.body })
this.onSubmit = this.onSubmit.b... | JavaScript | 0.000002 | @@ -1026,16 +1026,90 @@
ects')%0A%0A
+ validCommand = true%0A %7D else if (userInput === '') %7B%0A %0A
|
91166e4dba6c1b5fe3ec36805ba3a1c8e48fec07 | Add missed returns in login action | server/users/auth/login/plain/exec.js | server/users/auth/login/plain/exec.js | "use strict";
/*global nodeca, _*/
var ReCaptcha = require('nlib').ReCaptcha;
var AuthLink = nodeca.models.users.AuthLink;
var User = nodeca.models.users.User;
// Validate input parameters
//
var params_schema = {
email: {
type: "string",
required: true
},
pass: {
type: "string",
required: tru... | JavaScript | 0 | @@ -1073,32 +1073,50 @@
callback(err);%0A
+ return;%0A
%7D%0A
@@ -1271,24 +1271,42 @@
%7D);%0A
+ return;%0A
%7D%0A
|
b8b3fb8b115f75a8a70c55d72cf1acf5f21354d4 | fix usage of deprecated node apis | services/real-time/socket.io.patch.js | services/real-time/socket.io.patch.js | // EventEmitter has been removed from process in node >= 7
// https://github.com/nodejs/node/commit/62b544290a075fe38e233887a06c408ba25a1c71
if (process.versions.node.split('.')[0] >= 7) {
process.EventEmitter = require('events')
}
var io = require('socket.io')
if (io.version === '0.9.16' || io.version === '0.9.19'... | JavaScript | 0 | @@ -138,55 +138,537 @@
c71%0A
-if (process.versions.node.split('.')%5B0%5D %3E= 7) %7B
+/*%0A A socket.io dependency expects the EventEmitter to be available at%0A %60process.EventEmitter%60.%0A See this trace:%0A ---%0A%0A /app/node_modules/policyfile/lib/server.js:254%0A Object.keys(process.EventEmitter.prot... |
b944b2a6c6708fae2bfd6dcdc9f0edd48d3c3e64 | update script | assets/script.js | assets/script.js | new Vue({
el: '#app',
data: {
autoscroll: 'bottom right',
message: 'Hello Vue.js!',
child: {
w: 500,
h: 500
}
},
methods: {
autoscrollTest (value) {
this.autoscroll = value
}
}
}) | JavaScript | 0.000001 | @@ -48,20 +48,14 @@
l: '
-bottom right
+center
',%0A
@@ -87,54 +87,8 @@
!',%0A
- child: %7B%0A w: 500,%0A h: 500%0A %7D%0A
%7D,
|
2f06cb0864b05b20178d361ade28366c94399e2d | fix js | assets/script.js | assets/script.js | $( document ).ready(function() {
$(document).click(
// generate random hue, saturation, lightness for page background color
var hueValue = Math.floor(Math.random()*360);
var saturationValue = Math.floor(Math.random()*100);
var lightnessValue = Math.floor(Math.random()*100);
// splice values into formatte... | JavaScript | 0.000002 | @@ -46,16 +46,28 @@
).click(
+function() %7B
%0A%0A%09%09// g
|
299e21dd39b7755164211f3ac6b0fbca16006cd1 | Set subject before sending notification | src/foam/nanos/notification/NotificationSetting.js | src/foam/nanos/notification/NotificationSetting.js |
/**
* @license
* Copyright 2019 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.nanos.notification',
name: 'NotificationSetting',
implements: [
'foam.nanos.auth.Authorizable'
],
javaImports: [
'foam.dao.DAO',
'foam.nanos.au... | JavaScript | 0 | @@ -1555,17 +1555,100 @@
ication(
-x
+%0A x.put(%22subject%22, new Subject.Builder(x).setUser(user).build())%0A
, user,
|
39b805b6237ff4d4c7cf75584258b17389143ce1 | Fix panel-default template path | shared/panel-default/panel-default.js | shared/panel-default/panel-default.js | (function () {
"use strict";
angular.module('hippo.app')
/**
* @ngdoc directive
* @name hippo.app.directive:panelDefault
* @restrict A
*
* @description
* Component for the Bootstrap default panel.
*/
.directive('panelDefault', [fun... | JavaScript | 0 | @@ -475,19 +475,39 @@
l: '
-app/modules
+components/angular-plugins/dist
/sha
@@ -814,8 +814,9 @@
);%0A%7D());
+%0A
|
424a4dcb92f449ef077ade300929a643dd684f8e | Fix calling the teardown method after tests in a suite | async_testing.js | async_testing.js | var sys = require('sys');
var assert = require('assert');
var AssertWrapper = exports.AssertWrapper = function(test) {
this.__test = test;
var assertion_functions = [
'ok',
'equal',
'notEqual',
'deepEqual',
'notDeepEqual',
'strictEqual',
'notStrictEqual',
'throws',
'doesNotThrow... | JavaScript | 0 | @@ -4863,16 +4863,17 @@
suite.
+_
teardown
|
a15ae711c30651ea7c5528b9af9301ef6abeb37d | Add color property to M_HeightLineGizmo.js | src/middle_level/elements/gizmos/M_HeightLineGizmo.js | src/middle_level/elements/gizmos/M_HeightLineGizmo.js | import M_Gizmo from './M_Gizmo';
import Vector3 from '../../../low_level/math/Vector3';
import Line from '../../../low_level/primitives/Line';
import M_Mesh from '../meshes/M_Mesh';
export default class M_HeightLineGizmo extends M_Gizmo {
constructor(glBoostContext) {
super(glBoostContext, null, null);
this.... | JavaScript | 0 | @@ -621,16 +621,47 @@
rial();%0A
+ this._material = material;%0A
this
@@ -833,16 +833,134 @@
;%0A%0A %7D%0A%0A
+ set color(val) %7B%0A this._material.baseColor = val;%0A %7D%0A%0A get color() %7B%0A return this._material.baseColor;%0A %7D%0A%0A
set st
|
6858f2972bad95d63014d183213ca179c9c45ac3 | Use new way of loading messages, the old one is deprecated | src/mist/io/static/js/app/controllers/notification.js | src/mist/io/static/js/app/controllers/notification.js | define('app/controllers/notification', ['ember'],
/**
* Notification controller
*
* @returns Class
*/
function() {
return Ember.Object.extend({
timeout: false,
notify: function(message){
if(this.timeout){
clearTimeout(this.timeout);
}
log("notification: " + message);
jQuery.m... | JavaScript | 0.000001 | @@ -47,14 +47,20 @@
'%5D,%0A
-%09/**%0A%09
+ /**%0A
* N
@@ -86,13 +86,19 @@
ler%0A
-%09 *%0A%09
+ *%0A
* @
@@ -115,14 +115,20 @@
ass%0A
-%09 */%0A%09
+ */%0A
func
@@ -136,18 +136,24 @@
ion() %7B%0A
-%09%09
+
return E
@@ -177,15 +177,21 @@
d(%7B%0A
-%09%09%09%0A%09%09%09
+%0A ... |
c8663c45470e69647dda85bc2ddd3cf969cfe317 | Fix linter. | ui/Scrollbar.js | ui/Scrollbar.js | 'use strict';
var Component = require('./Component');
var each = require('lodash/each');
var DefaultDOMElement = require('./DefaultDOMElement');
var inBrowser = require('../util/inBrowser');
/**
A rich scrollbar implementation that supports highlights. Usually
instantiated by {@link ScrollPane}, so you will lik... | JavaScript | 0 | @@ -142,54 +142,8 @@
t');
-%0Avar inBrowser = require('../util/inBrowser');
%0A%0A/*
|
58af66a11021068a08a02c3bb924ab93af8d2e63 | Make email tests pass when deployed. | packages/email/email_tests.js | packages/email/email_tests.js | streamBuffers = __meteor_bootstrap__.require('stream-buffers');
Tinytest.add("email - dev mode smoke test", function (test) {
var old_stream = Email._output_stream;
try {
Email._output_stream = new streamBuffers.WritableStreamBuffer;
Email._next_devmode_mail_id = 0;
Email.send({
from: "foo@exampl... | JavaScript | 0 | @@ -120,16 +120,127 @@
test) %7B%0A
+ // This only tests dev mode, so don't run the test if this is deployed.%0A if (process.env.MAIL_URL) return;%0A%0A
var ol
|
8f08e1233f0757794846b792331bebfdd0b06ff2 | Test that dropped errors are treated as unhandled requests | lib/__tests__/Router-test.js | lib/__tests__/Router-test.js | var React = require('react');
var monorouter = require('../index');
var DummyHistory = require('../history/DummyHistory');
var Route = require('../Route');
var reactRouting = require('monorouter-react');
var noop = function() {};
var dummy = function(props) {
return React.DOM.div(null, props.message);
};
function ... | JavaScript | 0.000001 | @@ -5706,28 +5706,488 @@
%7D);%0A %7D);
+%0A%0A it('treats not passing the error as an unhandled request', function(done) %7B%0A var Router = monorouter()%0A .route('/animals/:type', function(req, next) %7B%0A throw new Error();%0A %7D)%0A .use(function(err, req, next) %7B... |
9aeb493c9254c424937043ccd289791ed786959b | Fix problem with system asking if you want to send empty answer | Public/Support/Components/Textfield/Textfield.js | Public/Support/Components/Textfield/Textfield.js | function ComponentTextfield( id ) {
var self = _ComponentFormControl(id);
self.setDefaultState('text-value');
self.bind = function() {
self.attachKeyUpAction( self.node(), self.identifier() );
};
self.registerAction('keyup', function() {
self.setState('text-value', self._states['text-value'] = self.node().va... | JavaScript | 0.000148 | @@ -246,36 +246,8 @@
%7B%0A%09%09
-self.setState('text-value',
self
@@ -288,17 +288,16 @@
().value
-)
;%0A%09%7D);%0A%09
|
2d4ad53cb98e6351ead08887416538abcd5a66fa | Fix inspector placement | article/demos.js | article/demos.js | (function(exports) {
"use strict";
function makeStipple(display) {
var stipple = display.createPixmap({ width: 2, height: 2 });
display.drawTo(stipple, function(ctx) {
ctx.fillStyle = '#ffffff';
ctx.fillRect(0, 0, 2, 2);
ctx.fillStyle = '#000000';
... | JavaScript | 0.000008 | @@ -1217,36 +1217,41 @@
r);%0A
-elem
+container
.appendChild(ins
|
63861295056efc5d25975a883efa412d8864a751 | Add populating path, not piped in fully yet | src/restful/routes/groups.js | src/restful/routes/groups.js | var express = require('express');
var router = express.Router();
const config = require('../config');
// MongoDB model
var Group = require('../models/group');
// Create connection to LDAP
if (config.authenticate_mode === 'ldap') {
const ldap = require('ldapjs');
var ldap_client = ldap.createClient({
url: 'l... | JavaScript | 0 | @@ -2637,16 +2637,467 @@
%0A %7D);%0A%0A
+ router.route('/groups/populate')%0A // populate all groups from LDAP server (PUT api/groups/populate)%0A .get(function(req, res) %7B%0A //ldapsearch -h c191 -b %22dc=ser,dc=aps,dc=anl,dc=gov%22 -s sub %22objectclass=*%22 -x%0A ldap_client.search('uid=*,ou=Pe... |
519b1dd03dda5530b9c78583e2910df01d10e240 | Remove default zindex from wms layers | src/scripts/map/wms-layer.js | src/scripts/map/wms-layer.js | import Attribution from 'ol/attribution';
import Tile from 'ol/layer/tile';
import Image from 'ol/layer/image';
import TileWMS from 'ol/source/tilewms';
import ImageWMS from 'ol/source/imagewms';
import OverlayLayer from './overlay-layer';
/**
* Web Map Service Layer
* @extends OverlayLayer
*/
class WMSLayer exten... | JavaScript | 0 | @@ -1749,25 +1749,8 @@
ve,%0A
- zIndex: 1,%0A
|
4216fec9a44ccc58dffe45c7934f70775bd41459 | disable term postion weight adjustment | src/search/search.backend.js | src/search/search.backend.js |
import {SearchHistory} from "./search.history.js";
import {filter} from "./filter.js";
import {weightSort} from "../helpers.js";
export class SearchBackend
{
constructor(browsingData)
{
this.query = {running: false, pending: null, last: {}};
this.data = browsingData;
this.history = new SearchHistory(... | JavaScript | 0 | @@ -1277,24 +1277,27 @@
esult);%0A%0A
+ //
result.forE
@@ -1304,38 +1304,55 @@
ach(
-SearchBackend.weight.bind(this
+entry =%3E this.adjustWeightForTermPosition(entry
, te
|
5838c72c77b5f080efa5deff818507fa87c27cda | Add todo about using a priority queue | src/server/git/github-job.js | src/server/git/github-job.js | /**
* Github Job
*
* For each github organization, ask for the latest issues
* and then run a diff between the changes. For those changes,
* run any necessary events.
*/
var github = new GitHub({
version: "3.0.0"
});
github.authenticate({
type: "oauth",
key: Settings.github.key,
secret: Settings.g... | JavaScript | 0 | @@ -2521,16 +2521,123 @@
b();%0A%0A//
+ TODO use a priority queue and work through the job queue%0A// prioritizing active repos and refresh requests
%0AMeteor.
|
453b80a833e057987b07f32ae5fa96a0c9672969 | Fix code duplication | src/middleware/request_response/authorize/data.js | src/middleware/request_response/authorize/data.js | 'use strict'
const { throwPb } = require('../../../errors')
const { evalFilter } = require('../../../filter')
// Check `model.authorize` `model.*` against `args.newData`
const checkNewData = function({
authorize,
args: { newData },
clientCollname,
top,
}) {
if (newData === undefined) {
return
}
con... | JavaScript | 0.999998 | @@ -510,16 +510,43 @@
ATION',%0A
+ messageInput: %7B top %7D,%0A
extr
@@ -589,35 +589,8 @@
%7D,%0A
- messageInput: %7B top %7D,%0A
%7D)
|
2cbc29f0c07ce535cc34f8e61519919a888fdc3f | Change the order of values, to focus Linode only requirements | src/mist/io/static/js/app/controllers/machines.js | src/mist/io/static/js/app/controllers/machines.js | define('app/controllers/machines', [
'app/models/machine'],
/**
* Machines controller
*
* @returns Class
*/
function(Machine) {
return Ember.ArrayController.extend({
backend: null,
content: null,
init: function() {
this._super();
this.set('content', []),
this.refresh();
},
... | JavaScript | 0 | @@ -3241,60 +3241,8 @@
id,%0A
- 'image_extra': image.extra,%0A
%09
@@ -3336,16 +3336,68 @@
Linode%0A
+ 'image_extra': image.extra,%0A
@@ -3465,17 +3465,16 @@
ocation'
-
: locati
|
fa59b8c35d6a27294fc64d5e49f364047d501b18 | optimize the directive to take effect on initial run | src/openlmis-table/input-auto-resize.directive.js | src/openlmis-table/input-auto-resize.directive.js | /*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2017 VillageReach
*
* 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, e... | JavaScript | 0.00047 | @@ -1837,21 +1837,21 @@
ion(
-old
+new
Value,
-new
+old
Valu
@@ -1890,20 +1890,8 @@
hSet
- && newValue
) %7B%0A
|
21425fa62093a22a3647fe0f767cabacf9e0df95 | test fix | utils/baucis.js | utils/baucis.js | const debug = require('debug')('moonridge:baucis')
const baucis = require('baucis')
require('baucis-swagger')
const mapVerbToOperation = {
POST: 'create',
GET: 'read',
PUT: 'update',
DELETE: 'remove'
}
baucis.Controller.decorators(function (options, protect) {
var controller = this
const model = controlle... | JavaScript | 0.000001 | @@ -1,12 +1,25 @@
+'use strict'%0A
const debug
|
3c129c01187252450e29ffaf26cb2806bbf46974 | package - initial dist folder | build/webpack-build.js | build/webpack-build.js | // https://github.com/shelljs/shelljs
require('shelljs/global')
var webpack = require('webpack')
var config = require('../config/config')
var path = require('path')
module.exports.package = function(app,callback){
var entries = config.utils.getGlobbedPaths(config.files.client.entries);
var assetsPath = path.join... | JavaScript | 0 | @@ -209,16 +209,17 @@
lback)%7B%0A
+%0A
var en
@@ -289,635 +289,34 @@
s);%0A
-%0A
-var assetsPath = path.join(config.webpack.assetsRoot, config.webpack.assetsSubDirectory)%0A var viewPath = path.join(config.webpack.assetsRoot, config.webpack.assetsViewDirectory)%0A rm('-rf', assetsPath)%0A mkdir('-p', asset... |
a36d2965f49815dc9212161eca857dedd8bb257c | rewrite the 'reset' function | timecounter.js | timecounter.js | /**
* This is a simple time counter.
* It counts only how long it runs in following format:
* <b>hh:mm:ss</b>
*
* @author Sascha Hofrichter
* @version 1.0.0
*/
function TimeCounter() {
/**
* Private members
*/
var count = 0;
var _intervalTimer = undefined;
// given options
var op... | JavaScript | 0.999988 | @@ -152,17 +152,17 @@
rsion 1.
-0
+1
.0%0A */%0Af
@@ -2772,16 +2772,173 @@
is.reset
+Props();%0A %7D,%0A%0A reset: function () %7B%0A // stopping the time counting (includes property reset)%0A this.stop();%0A this.triggerResetEvent
();%0A
@@ -2990,32 +2990,37 @@
*/%0A reset
+P... |
a75efeb1bbb76c327f11d896cf6074c5cbcc9e52 | update debugging | flash-sale.user.js | flash-sale.user.js | // ==UserScript==
// @name Steam Flash Sale
// @namespace com.natemara.flash-sale
// @description Quickly sell your steam items
// @include /https?://(www\.)?steamcommunity\.com/market/.*/
// @version 3
// @grant none
// ==/UserScript==
var itemPattern = /Starting at: $[0-9.]+/;
var $;
// Add jQuery
(function(){
... | JavaScript | 0.000001 | @@ -1064,15 +1064,8 @@
item
-.html()
;%0A%09c
|
500362f563fe127af55509b68aef641de3e14ce7 | Remove unrelated issue fix | spec/arrays.js | spec/arrays.js | // dna.js
// Mocha Specification Cases
// Imports
const assert = require('assert').strict;
const { JSDOM } = require('jsdom');
// Setup
const dnaPath = process.env.specMode === 'minified' ? '../dist/dna.min.js' : '../dist/dna.js';
const window = new JSDOM('').window;
const $ = require('jquery')(window);
con... | JavaScript | 0.000003 | @@ -4399,33 +4399,32 @@
', word: 'Bat' %7D
-,
%0A %5D;%0A
|
09491ef3755b3182c180a561042c4e29ee80c769 | Fix create spec typos | spec/create.js | spec/create.js | describe("Create new monetary", function () {
it("should create from string", function () {
var m = monetary("CHF 200.20");
expect(m.currency()).toBe("CHF");
expect(m.amount()).toBe(200.20);
});
it("should create from array", function () {
var m = monetary(["CHF", 200.20]);
expect(m.currenc... | JavaScript | 0.000022 | @@ -418,17 +418,17 @@
locale%22
-.
+,
functio
@@ -506,33 +506,32 @@
y()).toBe(%22CHF%22)
-)
;%0A expect(m.a
@@ -700,17 +700,16 @@
e(%22CHF%22)
-)
;%0A ex
|
20635685081f0601d3ad3607c606e46bc80c27b0 | support for anchor text and images | query.js | query.js | function sanitize(query) {
query = query.replace(/<(.|\n)*?>/g, " "); // Remove persistent html tags
query = query.replace(/\n\t/g, " "); // Replace newlines and tabs with spaces
query = query.replace(/ +(?= )/g, ""); // Make all double spaces single
query = query.trim();
//WHAT ABOUT TABS???????
return q... | JavaScript | 0 | @@ -279,36 +279,8 @@
);%0A%0A
- //WHAT ABOUT TABS???????%0A%0A
re
@@ -948,58 +948,8 @@
%7D%0A%0A
-// console.log(%22QUERY SENT: %5C%22%22 + query + %22%5C%22%22);%0A
br
|
07371ea3a2bd9274ee5d501316a10e7cae8e7503 | Fix name collision with url npm module | src/server/webpack-config.js | src/server/webpack-config.js | import webpack from 'webpack';
import fsPath from 'path';
import { rootModulePath, REACT_PATH } from './paths';
const NODE_MODULES_PATH = fsPath.join(rootModulePath(), 'node_modules');
const UIHARNESS_ENTRY = fsPath.join(__dirname, '../client/ui-harness');
// HACK (Relay).
// Prevent error with `fetch` which... | JavaScript | 0.000285 | @@ -3043,16 +3043,23 @@
er: 'url
+-loader
' %7D,%0A
|
95eba78cc58da323bddfc6c238e93337481a98a2 | send back return value of called function | callWithName.js | callWithName.js | /*!
* CallWithName v1.0
*
* Copyright 2015, Himanshu Tanwar
* Released under the MIT license
* https://github.com/webXtended/callWithName
* Date: 2017-03-16
*/
var callWithName = function(name, fn, options){
var context,errorMsg,nameType = typeof name, fnType = typeof fn;
options = options || {};
if(... | JavaScript | 0.000002 | @@ -491,16 +491,31 @@
+ var sendBack =
fn.call
@@ -543,16 +543,28 @@
return
+ sendBack %7C%7C
options
|
7c7a79664be3df7c2facd9831a2e12d60a23df71 | Comment on webAPI::initHTTP | src/services/backend-http.js | src/services/backend-http.js | import {inject, transient} from 'aurelia-framework';
import {Auth} from './auth';
import {Config} from '../config/config';
import {EventAggregator} from 'aurelia-event-aggregator';
import {HttpClient} from 'aurelia-http-client';
// Make sure the service is not singleton, as each time we may change the
// withParams ... | JavaScript | 0 | @@ -656,16 +656,106 @@
);%0A %7D%0A%0A
+ /**%0A * Re-add the %22withHeader%22 with access token, in case of login, or logout. %0A */%0A
initHt
|
f12e77d776fbccf7778bc39223a8c00f7afc115b | Fix backend url | src/wrapper/configurationWrapper.js | src/wrapper/configurationWrapper.js | /*
* Author: Alexandre Havrileck (Oxyno-zeta)
* Date: 03/07/16
* Licence: See Readme
*/
/* ************************************* */
/* ******** REQUIRE ******** */
/* ************************************* */
const nconf = require('nconf');
const _ = require('lodash');
const path = require('path');
// ... | JavaScript | 0.000001 | @@ -3640,17 +3640,16 @@
rl%0A%09if (
-!
_.endsWi
@@ -3726,20 +3726,98 @@
RL%5D
-+
=
-'/'
+config%5BCONSTANTS.BACKEND_URL%5D.substr(0, config%5BCONSTANTS.BACKEND_URL%5D.length - 1)
;%0A%09%7D%0A%0A
+%0A
%09ret
|
3f93b1d8b6c7b04a1ba4fec2f6edd5693da5b70a | remove comment | test/generator/css-space-in-attribute/_config.js | test/generator/css-space-in-attribute/_config.js | export default {
// solo: true,
test ( assert, component, target, window ) {
const [ control, test ] = target.querySelectorAll( 'p' );
assert.equal( window.getComputedStyle( control ).color, '' );
assert.equal( window.getComputedStyle( control ).backgroundColor, '' );
assert.equal( window.getComputedStyle(... | JavaScript | 0 | @@ -14,25 +14,8 @@
t %7B%0A
-%09// solo: true,%0A%0A
%09tes
|
a61f71c24bc19df5c6fdedcb48bc60d1fd26fccc | move _funcs before flowengine ctx | app/lib/modBrowser/modPage.js | app/lib/modBrowser/modPage.js | var pagesModule = require("ui/page");
var StackLayout = require("ui/layouts/stack-layout").StackLayout;
var GridLayout = require("ui/layouts/grid-layout").GridLayout;
var webViewModule = require("ui/web-view");
var buttonModule = require("ui/button");
var textFieldModule = require("ui/text-field");
var textViewModule =... | JavaScript | 0.000002 | @@ -2661,16 +2661,34 @@
;%0A%09%7D%0A%7D%0A%0A
+var _funcs = %7B%7D;%0A%0A
// Execu
@@ -4014,32 +4014,16 @@
NSPage;%0A
-var _funcs = %7B%7D;
%0Amodule.
|
636dc9b2ed147c908effee55ae3a2133748c8db1 | Fix HTMLSourceElement's srcset getter | lib/jsdom/living/nodes/HTMLSourceElement-impl.js | lib/jsdom/living/nodes/HTMLSourceElement-impl.js | "use strict";
const conversions = require("webidl-conversions");
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
const { reflectURLAttribute } = require("../../utils");
class HTMLSourceElementImpl extends HTMLElementImpl {
get src() {
return reflectURLAttribute(this, "src");
}
set src(... | JavaScript | 0 | @@ -437,12 +437,14 @@
te(%22
-cite
+srcset
%22));
|
e04a5139ab09f42478161ba50d17540824117d46 | Fix anchors wrapper. | site/docs/4.3/assets/js/src/application.js | site/docs/4.3/assets/js/src/application.js | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
/*!
* JavaScript for Bootstrap's docs (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitter, Inc.
* Licensed under the Creative Commons Att... | JavaScript | 0 | @@ -5584,176 +5584,85 @@
-var span = document.createElement('span')%0A span.classList.add('bd-content-title')%0A hEl.parentElement.insertBefore(span, hEl)%0A span.appendChild(hEl)
+hEl.innerHTML = '%3Cspan class=%22bd-content-title%22%3E' + hEl.innerHTML + '%3C/span%3E'
%0A
|
32080175a323bb4d39a5a532e673462f6f4fa379 | fix spelling error in comment | step-capstone/src/components/TripItemComponent.js | step-capstone/src/components/TripItemComponent.js | import React from 'react'
import {
Button,
Card,
CardHeader,
CardMedia,
CardContent,
CardActions,
Typography
} from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles({
root: {
maxWidth: 345,
},
media: {
height... | JavaScript | 0.000108 | @@ -363,10 +363,10 @@
rec
-i
e
+i
ve s
|
8524d24d3df971c2cce90467308b21fb6f249f42 | fix bracket bug | app/lib/modBrowser/modPage.js | app/lib/modBrowser/modPage.js | var pagesModule = require("ui/page");
var StackLayout = require("ui/layouts/stack-layout").StackLayout;
var GridLayout = require("ui/layouts/grid-layout").GridLayout;
var webViewModule = require("ui/web-view");
var buttonModule = require("ui/button");
var textFieldModule = require("ui/text-field");
var textViewModule =... | JavaScript | 0 | @@ -1269,17 +1269,16 @@
age);%0A%09%7D
-%7D
%0A%7D%0A%0Afunc
|
96f393b05a3a947f83f93a9c8c7563e3a0bd5d94 | Improve error logging | src/services/sync/strategies/TSP/TSPBaseSyncer.js | src/services/sync/strategies/TSP/TSPBaseSyncer.js | const { BadRequest } = require('@feathersjs/errors');
const Syncer = require('../Syncer');
const { TspApi } = require('./TSP');
const SCHOOL_SYNCER_TARGET = require('./TSPSchoolSyncer').SYNCER_TARGET;
const SYNCER_TARGET = 'tsp-base';
class TSPBaseSyncer extends Syncer {
static respondsTo(target) {
return target... | JavaScript | 0.000003 | @@ -1004,23 +1004,52 @@
?%0A%09%09
-try %7B%0A%09%09%09return
+let schools = %5B%5D;%0A%09%09try %7B%0A%09%09%09schools = await
thi
@@ -1138,58 +1138,192 @@
his.
-stats.errors += 1;%0A%09%09%09// todo: create error object
+logError('Cannot fetch schools.', err);%0A%09%09%09this.stats.errors.push(%7B%0A%09%09%09%09t... |
0fb408535a46f0f6959484d39d87131681a30b84 | Fix references to generateKeyPair function | keys.js | keys.js | /* global process */
/**
* Module dependencies
*/
var fs = require('fs')
var mkdirp = require('mkdirp')
var path = require('path')
var pemjwk = require('pem-jwk')
var childProcess = require('child_process')
/**
* Constructor
*/
function AnvilConnectKeys (directory) {
// base directory for keys to be read from... | JavaScript | 0 | @@ -863,63 +863,103 @@
%7B%0A
-this.openssl(this.sig.pub, this.sig.prv)%0A this.openssl
+AnvilConnectKeys.generateKeyPair(this.sig.pub, this.sig.prv)%0A AnvilConnectKeys.generateKeyPair
(thi
@@ -1575,34 +1575,24 @@
ConnectKeys.
-prototype.
generateKeyP
|
a6ffb7c0cc75234c2306b3fc2e014f28591df0e6 | Support submitControl setting | form/#/get-data.js | form/#/get-data.js | 'use strict';
var toArray = require('es5-ext/array/from')
, htmlForm = require('dom-ext/html-form-element/valid-html-form-element')
, isArray = Array.isArray, forEach = Array.prototype.forEach
, push = Array.prototype.push;
module.exports = function () {
var data = {};
forEach.call(htmlForm(this).elements, ... | JavaScript | 0 | @@ -21,16 +21,27 @@
oArray
+
= requir
@@ -77,16 +77,27 @@
tmlForm
+
= requir
@@ -150,16 +150,81 @@
lement')
+%0A , ensureSubmitControl = require('../../submit-control/ensure')
%0A%0A , is
@@ -341,16 +341,29 @@
nction (
+/* options */
) %7B%0A%09var
@@ -372,17 +372,208 @@
ata = %7B%7D... |
33f80b1a185e0b050d206f329cd2a539e84a94d0 | Update whenActive HOC. | assets/js/util/when-active.js | assets/js/util/when-active.js | /**
* whenActive HOC.
*
* Site Kit by Google, Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | JavaScript | 0 | @@ -632,16 +632,103 @@
e.%0A */%0A%0A
+/**%0A * WordPress dependencies%0A */%0Aimport %7B createElement %7D from '@wordpress/element';%0A%0A
/**%0A * I
@@ -1532,17 +1532,17 @@
eturn (
-W
+w
rappedCo
@@ -1778,18 +1778,50 @@
uleInfo
-%7C%7C
+) %7B%0A%09%09%09%09return null;%0A%09%09%09%7D%0A%0A%09%09%09if (
! mo... |
5b014af5ebf9502ef7d7f80db9264a43e0a5b06e | Update namespace | lib/node_modules/@stdlib/array/base/lib/index.js | lib/node_modules/@stdlib/array/base/lib/index.js | /**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | JavaScript | 0.000001 | @@ -1079,32 +1079,226 @@
e/filled' ) );%0A%0A
+/**%0A* @name linspace%0A* @memberof ns%0A* @readonly%0A* @type %7BFunction%7D%0A* @see %7B@link module:@stdlib/array/base/linspace%7D%0A*/%0AsetReadOnly( ns, 'linspace', require( '@stdlib/array/base/linspace' ) );%0A%0A
/**%0A* @name ones
|
b55f881447018df85e82af9c5a9019b238919bf3 | Split notification_settings into a few sub-variables. | static/js/settings_notifications.js | static/js/settings_notifications.js | var settings_notifications = (function () {
var exports = {};
var notification_settings = [
"enable_desktop_notifications",
"enable_digest_emails",
"enable_offline_email_notifications",
"enable_offline_push_notifications",
"enable_online_push_notifications",
"enable_sounds",
"enable_stream... | JavaScript | 0 | @@ -57,24 +57,334 @@
= %7B%7D;%0A%0Avar
+stream_notification_settings = %5B%0A %7Bsetting: %22enable_stream_desktop_notifications%22, notifications:%22desktop_notifications%22%7D,%0A %7Bsetting: %22enable_stream_push_notifications%22, notifications:%22push_notifications%22%7D,%0A %7Bsetting: %22enable_strea... |
f1dfae56c785368f983a7ba12732221456f9f02f | Update build.js | tools/build.js | tools/build.js | ({
baseUrl: "..",
paths: {
fyre: 'http://zor.t402.livefyre.com/wjs/v3.0/javascripts/livefyre',
jquery: 'components/jquery/jquery',
underscore: 'components/underscore/underscore',
backbone: 'components/backbone/backbone',
"streamhub-deck": ".",
mustache: 'component... | JavaScript | 0.000001 | @@ -258,39 +258,8 @@
e',%0A
- %22streamhub-deck%22: %22.%22,%0A
@@ -373,18 +373,114 @@
kages: %5B
-%7B
%0A
+ %7B%0A name: 'streamhub-deck',%0A location: '.'%0A %7D,%0A %7B%0A
@@ -499,32 +499,36 @@
mhub-backbone',%0A
+
location
@@ -56... |
a7f38607892dc783272b8f2014774db08d34df25 | Introduce copy&paste context menu options | electron/main.development.js | electron/main.development.js | import { app, BrowserWindow, Menu, shell, ipcMain, dialog, crashReporter } from 'electron';
import os from 'os';
import path from 'path';
import Log from 'electron-log';
import { Tail } from 'tail';
import osxMenu from './menus/osx';
import winLinuxMenu from './menus/win-linux';
import ipcApi from './ipc-api';
import g... | JavaScript | 0 | @@ -3577,24 +3577,230 @@
props) =%3E %7B%0A
+ const contextMenuOptions = %5B%0A %7B label: 'Copy', accelerator: 'CmdOrCtrl+C', selector: 'copy:' %7D,%0A %7B label: 'Paste', accelerator: 'CmdOrCtrl+V', selector: 'paste:' %7D,%0A %5D;%0A%0A if (isDev) %7B%0A
const %7B
@@ -3819,45 +3819,46 @@
... |
f5462850376adc2948e3d72f3e2e913f4bf8a936 | Remove comments | jquery.columnfilter-0.0.1.js | jquery.columnfilter-0.0.1.js | /*
* jQuery Column Filter
* Copyright 2017, Herdian Sc
* https://github.com/herdiansc
*
* Licensed under the MIT licenses.
*/
/*
* If you have a table with many columns, you can show/hide several columns
* This plugin works with localStorage
*
* Still in early development, so be carefull.
*/
(function ( $... | JavaScript | 0 | @@ -1728,35 +1728,8 @@
);%0A%0A
-console.log(label,index);%0A%0A
|
2bd53e95ab62e9753038e807d990e772582cd2f0 | Return correct value from frappe.db.count (bp #12748) (#12750) | frappe/public/js/frappe/db.js | frappe/public/js/frappe/db.js | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.db = {
get_list: function(doctype, args) {
if (!args) {
args = {};
}
args.doctype = doctype;
if (!args.fields) {
args.fields = ['name'];
}
if (!args.limit) {
args.limit = 20;
}
return ... | JavaScript | 0.000001 | @@ -2463,42 +2463,14 @@
ppe.
+x
call(
-%7B%0A%09%09%09type: 'GET',%0A%09%09%09method:
'fra
@@ -2500,32 +2500,22 @@
_count',
-%0A%09%09%09args:
%7B%0A%09%09%09
-%09
doctype,
@@ -2511,25 +2511,24 @@
%09%09%09doctype,%0A
-%09
%09%09%09filters,%0A
@@ -2527,17 +2527,16 @@
ilters,%0A
-%09
%09%09%09field
@@ -2541,... |
6350b63880f03842135a4c59b91e5ece9b3a9ab9 | fix split view second pane sizing | src/split-view.js | src/split-view.js | const React = require('react');
const {Component} = React;
const SplitDragger = require('./split-dragger');
const DOUBLE_CLICK_TIMEOUT = 300;
export default class SplitView extends Component {
static propTypes = {
splitDraggerSize: React.PropTypes.number,
initialOrientation: React.PropTypes.oneOf(['vertical'... | JavaScript | 0 | @@ -2597,32 +2597,36 @@
ngDim%5D: %60calc($%7B
+100-
this.state.split
|
7ce5e9347ea68f516a6bc02d466f3847e928054e | tweak objDislay to only kick in if object inspection is too long | lib/chai/utils/objDisplay.js | lib/chai/utils/objDisplay.js |
var inspect = require('./inspect');
module.exports = function (obj) {
var type = Object.prototype.toString.call(obj);
if (type === '[object Array]') {
return '[ Array(' + obj.length + ') ]';
} else if (type === '[object Object]') {
var keys = Object.keys(obj)
, kstr = keys.length > 2
? ke... | JavaScript | 0 | @@ -1,40 +1,431 @@
-%0Avar inspect = require('./inspect');
+/*!%0A * Chai - flag utility%0A * Copyright(c) 2012 Jake Luer %3Cjake@alogicalparadox.com%3E%0A * MIT Licensed%0A */%0A%0A/*!%0A * Module dependancies%0A */%0A%0Avar inspect = require('./inspect');%0A%0A/**%0A * ### .objDisplay (object)%0A *%0A * Determines if... |
28f5d0cabe085b84ffb98f19534550e755404640 | Use query instead of params (from router), and set up events instead of pointless delegate. | views/search.js | views/search.js | var app = require('ridge');
var FormView = require('ridge/views/form');
module.exports = FormView.extend({
submit: function(e) {
e.preventDefault();
var query = [];
_.each(this.$el.prop('elements'), function(elem) {
if (elem.name && elem.value)
query.push(encodeURIComponent(elem.name) + '=' + encodeUR... | JavaScript | 0 | @@ -102,16 +102,53 @@
xtend(%7B%0A
+%09events: %7B%0A%09%09'submit': 'submit'%0A%09%7D,%0A%0A
%09submit:
@@ -658,60 +658,8 @@
ch);
-%0A%0A%09%09this.delegate('submit', this.submit.bind(this));
%0A%09%7D,
@@ -674,24 +674,36 @@
h: function(
+model, value
) %7B%0A%09%09var pa
@@ -700,22 +700,21 @@
%7B%0A%09%09var
... |
a3ee8895ea06b6b760f72a147a357c38b285e4b8 | Improve role mapping | src/services/authentication/strategies/TSPStrategy.js | src/services/authentication/strategies/TSPStrategy.js | const { AuthenticationBaseStrategy } = require('@feathersjs/authentication');
const { NotAuthenticated } = require('@feathersjs/errors');
const logger = require('../../../logger');
const {
verifyToken,
decryptToken,
createUserAndAccount,
findSchool,
ENTITY_SOURCE, SOURCE_ID_ATTRIBUTE,
} = require('../../sync/stra... | JavaScript | 0.000013 | @@ -1660,18 +1660,23 @@
et roles
+ = %5B%5D
;%0A
-
%09%09if (de
@@ -1762,21 +1762,30 @@
') %7B%0A%09%09%09
-roles
+const roleList
= decry
@@ -1819,16 +1819,42 @@
lit(',')
+;%0A%09%09%09roles = roleList%0A%09%09%09%09
.map((ts
@@ -1870,16 +1870,17 @@
(%7B%0A%09%09%09%09
+%09
schueler
@@ -1892,16 +1892,17 @@
... |
a8a85034e1cc23a144e58a9fb3215afbaebedb19 | Check for negative `numberOfLines` in TextView | Libraries/Text/Text.js | Libraries/Text/Text.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 strict-local
* @format
*/
import DeprecatedTextPropTypes from '../DeprecatedPropTypes/DeprecatedTextPropTypes';
import *... | JavaScript | 0.000001 | @@ -786,16 +786,51 @@
'react';
+%0Aimport invariant from 'invariant';
%0A%0A/**%0A *
@@ -4384,16 +4384,257 @@
%7D%0A %7D%0A%0A
+ const numberOfLines = restProps.numberOfLines;%0A if (numberOfLines != null) %7B%0A invariant(%0A numberOfLines %3E= 0,%0A 'Number of lines in %3CText/%3E component can no... |
cf15a192a0c1665248ec9b7306af9bdaea2c75c3 | Change order of query back to descending to git rid of error. | frontend/src/components/ViewTrips/trips-container.js | frontend/src/components/ViewTrips/trips-container.js | import React from 'react';
import app from '../Firebase/';
import * as DB from '../../constants/database.js';
import { getCurUserUid } from '../Utils/temp-auth-utils.js'
import Trip from './trip.js';
const db = app.firestore();
/**
* Returns a `<div>` element with a predefined error message after logging the
* er... | JavaScript | 0 | @@ -2010,17 +2010,18 @@
STAMP, '
-a
+de
sc')%0A
|
9931af0968d610498e4384f30b8d02a4a7d30452 | correct polygon draw in debugRenderer | substrate/SubstrateDebugRenderer.js | substrate/SubstrateDebugRenderer.js | import Vector3 from "../math/Vector3";
export default class SubstrateDebugRenderer {
constructor(substrateSystem, {canvas = document.createElement("canvas"), edgesDebug = false, polygonsDebug = false}) {
this.substrateSystem = substrateSystem;
this.canvas = canvas;
this.edgesDebug = edgesDebug;
this.... | JavaScript | 0.000001 | @@ -3135,12 +3135,8 @@
ngth
- - 1
; i+
|
95bc5e912c764bfc3ffa40d5d50ca8026320e0fb | Remove console log | source/js/media/types/VCO.Media.Twitter.js | source/js/media/types/VCO.Media.Twitter.js | /* VCO.Media.Twitter
Produces Twitter Display
================================================== */
VCO.Media.Twitter = VCO.Media.extend({
includes: [VCO.Events],
/* Load the media
================================================== */
_loadMedia: function() {
var api_url,
self = this;
// Loading Me... | JavaScript | 0.000002 | @@ -1355,19 +1355,8 @@
) %7B%0A
-%09%09trace(d)%0A
%09%09va
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.