code stringlengths 122 4.99k | label int64 0 14 |
|---|---|
diff --git a/coverageignore.js b/coverageignore.js @@ -14,4 +14,4 @@ governing permissions and limitations under the License.
* Patterns of source files (files within the src directory) that should be
* ignored for test coverage checks and reporting.
*/
-module.exports = ["**/.*", "baseCode/**", "**/constants/**", "**/... | 2 |
diff --git a/Source/Scene/Implicit3DTileContent.js b/Source/Scene/Implicit3DTileContent.js @@ -621,7 +621,7 @@ function deriveBoundingVolumeS2(
// Decode Morton index.
var childCoords = MortonOrder.decode2D(childIndex % 4);
// Encode Hilbert index.
- var hilbertIndex = HilbertOrder.encode2D(2, childCoords[0], childCoor... | 1 |
diff --git a/index.d.ts b/index.d.ts @@ -51,16 +51,13 @@ type ExpressionName =
// Zoom, Heatmap
| 'zoom' | 'heatmap-density';
-type ExpressionField = any;
-
-// After TS 3.7 this can be typed as:
-// string
-// | number
-// | boolean
-// | Expression
-// | ExpressionField[]
-// | {[key: string]: ExpressionField};
-// S... | 1 |
diff --git a/apiserver/apiserver/web/user.py b/apiserver/apiserver/web/user.py @@ -68,7 +68,7 @@ def verify_affiliation(org_id, email_to_verify, provided_code):
)).first()
if org is None:
- raise util.APIError(404, message="Organization does not exist.")
+ raise util.APIError(404, message="This organization does not ex... | 1 |
diff --git a/package.json b/package.json "name": "find-and-replace",
"main": "./lib/find",
"description": "Find and replace within buffers and across the project.",
- "version": "0.209.3",
+ "version": "0.209.4",
"license": "MIT",
"activationCommands": {
"atom-workspace": [
| 6 |
diff --git a/sirepo/package_data/static/js/zgoubi.js b/sirepo/package_data/static/js/zgoubi.js @@ -733,6 +733,9 @@ SIREPO.app.directive('srToscaEditor', function(appState, magnetService, panelSta
}
tosca.l = data.toscaInfo.toscaLength;
tosca.allFileNames = data.toscaInfo.fileList;
+ if (tosca.allFileNames.length == 1) ... | 1 |
diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -4,8 +4,8 @@ version: 2.1
aliases:
# Define paths and never think about them again
- &GAIA /tmp/gaia
- - &WORKSPACE /tmp/lunie
- - &DIST /tmp/lunie/dist
+ - &WORKSPACE /tmp/voyager
+ - &DIST /tmp/voyager/dist
# Pick docker versions here only, then use the alia... | 4 |
diff --git a/assets/less/templates.less b/assets/less/templates.less left: @sidebarWidth;
right: 0;
.box-sizing(border-box);
- .closeMenu & {
- left: @sidebarWidth+@collapsedNavWidth;
- }
}
.with-tabs-sidebar & {
overflow: hidden;
| 2 |
diff --git a/src/data/event.js b/src/data/event.js @@ -166,7 +166,8 @@ export type Event = {
individualEventPicture: FieldRef,
eventsListPicture: FieldRef,
performances: Array<FieldRef>,
- recurrenceDates: Array<string>
+ recurrenceDates: Array<string>,
+ stage: boolean
}
};
@@ -277,7 +278,8 @@ export const decodeEvent... | 0 |
diff --git a/src/technologies.json b/src/technologies.json ],
"cpe": "cpe:/a:paypal:paypal",
"description": "PayPal is an online payments system that supports online money transfers and serves as an electronic alternative to traditional paper methods like checks and money orders.",
- "html": [
- "<input[^>]+_s-xclick",... | 7 |
diff --git a/packages/node_modules/node-red/settings.js b/packages/node_modules/node-red/settings.js @@ -359,9 +359,9 @@ module.exports = {
codeEditor: {
/** Select the text editor component used by the editor.
- * Defaults to "ace", but can be set to "ace" or "monaco"
+ * As of Node-RED V3, this defaults to "monaco", ... | 12 |
diff --git a/lib/classes/Variables.js b/lib/classes/Variables.js @@ -35,20 +35,20 @@ class Variables {
this.service.provider.variableSyntax = true;
this.serverless.service.serverless = null;
- const promises = [];
+ const populateAll = [];
_.deepMapValues(this.service, (property, propertyPath) => {
if (typeof property ... | 10 |
diff --git a/layout/get-involved/get-involved-component.js b/layout/get-involved/get-involved-component.js @@ -97,9 +97,9 @@ class GetInvolvedComponent extends React.PureComponent {
bgImage="/static/images/backgrounds/computer.jpg"
overlay
>
- <p className="-claim">
+ <h2>
Save visualizations, subscribe to alerts and e... | 14 |
diff --git a/src/index.js b/src/index.js @@ -153,14 +153,11 @@ const idyll = (inputPath, opts, cb) => {
const getComponents = (ast) => {
const ignoreNames = ['var', 'data', 'meta', 'derived'];
- // component node names begin with capital letters
const componentNodes = getNodesByName(s => !ignoreNames.includes(s), ast);... | 2 |
diff --git a/player/js/elements/svgElements/SVGBaseElement.js b/player/js/elements/svgElements/SVGBaseElement.js @@ -94,6 +94,12 @@ SVGBaseElement.prototype = {
this.renderableEffectsManager = new SVGEffects(this);
},
getMatte: function (matteType) {
+ // This should not be a common case. But for backward compatibility... | 1 |
diff --git a/web/index.js b/web/index.js @@ -38,17 +38,13 @@ let createIndex=function(obj) {
let indicators=$(".carousel-indicators");
let topmenu=$("#topappmenu");
- let bb=$(`<div align="center" style="padding:15px; right:5.5vw; top:570px; border-radius:30px;background-color:#221100; z-index:5000; position: absolute;... | 2 |
diff --git a/packages/idyll-components/src/scroller.js b/packages/idyll-components/src/scroller.js @@ -12,7 +12,7 @@ const styles = {
height: '100vh',
width: '100%',
transform: `translate3d(0, 0, 0)`,
- zIndex: -1
+ zIndex: -1,
},
SCROLL_GRAPHIC_INNER: {
@@ -22,8 +22,7 @@ const styles = {
right: 0,
top: '50%',
transfor... | 13 |
diff --git a/src/widgets/histogram/chart.js b/src/widgets/histogram/chart.js @@ -1066,8 +1066,9 @@ module.exports = cdb.core.View.extend({
_moveHandle: function (position, selector) {
var handle = this.chart.select('.CDB-Chart-handle-' + selector);
- var x = this.xScale(position) - this.options.handleWidth / 2;
- var d... | 1 |
diff --git a/src/index.test.js b/src/index.test.js import ReduxSagaFirebase from './index'
describe('ReduxSagaFirebase', () => {
- it('takes a firebase app as argument', () => {
+ describe('constructor(firebaseApp)', () => {
const app = 'kqdlqkd'
- const rsf = new ReduxSagaFirebase(app)
+ let rsf
+
+ beforeEach(() => {... | 7 |
diff --git a/package.json b/package.json "devDependencies": {
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.3",
"ava": "^2.2.0",
- "lint-staged": "^8.2.1",
+ "lint-staged": "^9.2.5",
"markdown-it-emoji": "^1.4.0",
"nyc": "^14.1.1",
"pre-commit": "^1.2.2",
"pre-push": "^0.1.1",
"prettier": "^1.18.2",
- "rimraf": "^2.6.... | 3 |
diff --git a/articles/custom-domains/self-managed-certificates.md b/articles/custom-domains/self-managed-certificates.md @@ -19,7 +19,7 @@ useCase:
Custom Domains with the **Self-Managed Certificates** option is available for Auth0 Enterprise customers only.
:::
-You can choose to manage the certificates for your custo... | 3 |
diff --git a/spec/requests/superadmin/users_spec.rb b/spec/requests/superadmin/users_spec.rb @@ -587,9 +587,7 @@ feature "Superadmin's users API" do
user = FactoryGirl.create(:user)
user.save
- payload = {
- user: {
- gcloud_settings: {
+ expected_gcloud_settings = {
service_account: {
type: 'service_account',
project_... | 1 |
diff --git a/README.md b/README.md @@ -50,7 +50,7 @@ dashes, for example `node6-macos-x64` or `node4-linux-armv6`:
You may omit any element (and specify just `node6` for example).
The omitted elements will be taken from current platform or
-system-wide Node.js installation (it's version and arch).
+system-wide Node.js ... | 1 |
diff --git a/src/web/widgets/Marlin/index.jsx b/src/web/widgets/Marlin/index.jsx @@ -135,12 +135,21 @@ class MarlinWidget extends PureComponent {
},
changeHeatedBedTemperature: (event) => {
const value = event.target.value;
+ if (typeof value === 'string' && value.trim() === '') {
this.setState(state => ({
heater: {
..... | 1 |
diff --git a/addons/dexie-export-import/README.md b/addons/dexie-export-import/README.md @@ -10,6 +10,33 @@ npm install dexie
npm install dexie-export-import
```
+# Usage
+
+Here's the basic usage. There's a lot you can do by supplying optional `[options]` arguments. The available options are described later on in this... | 7 |
diff --git a/node-red-contrib-bot-message/bot-send-card.js b/node-red-contrib-bot-message/bot-send-card.js @@ -305,9 +305,12 @@ const buildReplyAdaptiveCard = (locale, data, config, reply) => {
//reply.body.push({"type": "TextBlock", "text": textToShow, "size": "default", "wrap": true});
buildAdaptiveCardJson(textToSho... | 14 |
diff --git a/src/components/draftjs-editor/index.js b/src/components/draftjs-editor/index.js @@ -199,6 +199,7 @@ class Editor extends React.Component<Props, State> {
autoCapitalize="sentences"
autoComplete="on"
autoCorrect="on"
+ stripPastedStyles={true}
decorators={[mentionsDecorator]}
{...rest}
/>
@@ -279,6 +280,7 @@... | 12 |
diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js */
render: function (updateLi) {
var that = this,
- notDisabled;
+ notDisabled,
+ $selectOptions = this.$element.find('option');
//Update the LI to match the SELECT
if (updateLi !== false) {
- this.$element.find('option').each(function (index) {
+ $selectOpti... | 4 |
diff --git a/server.ts b/server.ts @@ -141,8 +141,8 @@ function request(req, res) {
}
function wavesClientConfig(req, res, next) {
- const cookies = parseCookie(req.headers.cookie);
- const connection: string | null = cookies ? cookies.connection : null;
+ const parsedCookie = parseCookie(req.headers.cookie);
+ const c... | 10 |
diff --git a/index.css b/index.css @@ -594,12 +594,12 @@ header.builtin.import .wallet.import, header.builtin.locked .wallet.locked, head
right: 0;
bottom: 0;
width: 100vw;
- height: 200px;
+ min-height: 200px;
/* padding: 20px; */
background-color: #111;
color: #FFF;
- /* box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
-... | 0 |
diff --git a/src/schema/validate.js b/src/schema/validate.js @@ -75,11 +75,9 @@ function runValidate(exception, map, schema, originalValue, options) {
} else if (schema.oneOf) {
if (schema.discriminator) {
- const data = schema.discriminate(value, true);
- const subSchema = data.schema;
- const key = data.key;
+ const ... | 7 |
diff --git a/src/codemirror-maputnik.css b/src/codemirror-maputnik.css }
.cm-s-maputnik .CodeMirror-cursor {
- border-left: solid thin #8e8e8e !important;
+ border-left: solid thin #f0f0f0 !important;
}
.cm-s-maputnik.CodeMirror-focused div.CodeMirror-selected {
}
.cm-s-maputnik .CodeMirror-matchingbracket {
+ backgrou... | 7 |
diff --git a/src/helpers/file_helper.js b/src/helpers/file_helper.js @@ -89,7 +89,7 @@ export function orientImage(img, maxW, maxH, orientation) {
canvas.width = width
canvas.height = height
const ctx = canvas.getContext('2d')
- ctx.fillStyle = 'white'
+ ctx.fillStyle = 'transparent'
ctx.fillRect(0, 0, canvas.width, ca... | 11 |
diff --git a/src/moto/space.js b/src/moto/space.js });
camera = ortho ?
new THREE.OrthographicCamera(-100 * aspect(), 100 * aspect(), 100, -100, 0.1, 100000) :
- new THREE.PerspectiveCamera(perspective, aspect(), 5, 100000);
+ new THREE.PerspectiveCamera(perspective, aspect(), 0.1, 100000);
camera.position.set(0, 200, ... | 11 |
diff --git a/components/bases-locales/charte/searched-partners-results.js b/components/bases-locales/charte/searched-partners-results.js @@ -7,18 +7,14 @@ import Notification from '@/components/notification'
import theme from '@/styles/theme'
function SearchPartnersResults({companies, organizations}) {
- const [isCompa... | 7 |
diff --git a/packages/neutrine/src/layout/appside/index.js b/packages/neutrine/src/layout/appside/index.js @@ -2,53 +2,53 @@ import React from "react";
import {Icon} from "../../icon/index.js";
import * as helpers from "../../helpers.js";
-//Import toolbar styles
+//Import appside styles
import "./style.scss";
//Base c... | 10 |
diff --git a/README.md b/README.md @@ -73,18 +73,7 @@ npm run dev
npm run prod
```
-Once the server has started up, you can visit https://localhost:3000
-
-##### Local Development With HTTPS
-
-<img align=right style='margin: 1em' src="/docs/https.png" width=20% />
-Your browser might throw an error if you don't have y... | 2 |
diff --git a/token-metadata/0x037A54AaB062628C9Bbae1FDB1583c195585fe41/metadata.json b/token-metadata/0x037A54AaB062628C9Bbae1FDB1583c195585fe41/metadata.json "symbol": "LCX",
"address": "0x037A54AaB062628C9Bbae1FDB1583c195585fe41",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
... | 3 |
diff --git a/login.js b/login.js @@ -170,6 +170,8 @@ async function tryLogin() {
};
async function bindLogin() {
const loginForm = document.getElementById('login-form');
+ const loginEmail = document.getElementById('login-email');
+
loginForm.classList.add('login-form');
loginForm.innerHTML = `
<div class=phase-content... | 0 |
diff --git a/data.js b/data.js @@ -3866,6 +3866,13 @@ module.exports = [
description: "A micro dependency injection framework inspired by Spring. Simple and to the point.",
source: "https://raw.githubusercontent.com/shiftyp/hypo/master/dist/hypo.src.js"
},
+ {
+ name: "Spotlight",
+ tags: ["image", "images", "responsiv... | 0 |
diff --git a/packages/gatsby/src/internal-plugins/query-runner/query-watcher.js b/packages/gatsby/src/internal-plugins/query-runner/query-watcher.js @@ -33,7 +33,7 @@ exports.extractQueries = () => {
})
} else {
report.warn(
- `GraphQL query in component "${component}" will not be run!`
+ `The GraphQL query in the non-... | 7 |
diff --git a/src/traces/scatter3d/convert.js b/src/traces/scatter3d/convert.js @@ -147,11 +147,11 @@ function parseAlignmentY(a) {
(a.indexOf('bottom') > -1) ? 1 : 0;
}
-function calculateTextOffset(tp, dflt) {
+function calculateTextOffset(tp) {
// Read out text properties
- var defaultAlignmentX = parseAlignmentX(dfl... | 2 |
diff --git a/src/og/shaders/ray.js b/src/og/shaders/ray.js @@ -45,8 +45,9 @@ export function rayScreen() {
uniform vec3 eyePositionLow;
uniform float resolution;
+ const float C = 0.1;
const float far = 149.6e+9;
- const float Fcoef = 2.0 / log2(far + 1.0);
+ float logc = 2.0 / log( C * far + 1.0 );
void main() {
@@ -7... | 0 |
diff --git a/test/jasmine/tests/bar_test.js b/test/jasmine/tests/bar_test.js @@ -2870,6 +2870,67 @@ describe('bar tweening', function() {
.catch(failTest)
.then(done);
});
+
+ it('blank vertical bars', function(done) {
+ var mockCopy = {
+ data: [{
+ type: 'bar',
+ x: ['A', 'B', 'C'],
+ y: [null, 5, 3],
+ marker: {
+ l... | 0 |
diff --git a/src/apps.json b/src/apps.json "CRLT.CONFIG.ASMJS_NAME": ""
},
"script": [
- "^(?:https):?//crypto-loot\\.com/lib/",
- "^(?:https):?//webmine\\.pro/",
- "^(?:https):?//cryptoloot\\.pro/",
+ "^/crypto-loot\\.com/lib/",
+ "^/webmine\\.pro/",
+ "^/cryptoloot\\.pro/",
"/crlt\\.js\\;confidence:75%"
],
"icon": "C... | 1 |
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -136,6 +136,7 @@ jobs:
shell: bash
run: |
export DISPLAY=':99.0'
+ echo ::set-env DISPLAY=FC::':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
timeout-minutes: 2
| 12 |
diff --git a/src/platforms/web/runtime/directives/model.js b/src/platforms/web/runtime/directives/model.js @@ -28,7 +28,7 @@ export default {
if (isIE || isEdge) {
setTimeout(cb, 0)
}
- } else if (vnode.tag === 'textarea' || el.type === 'text') {
+ } else if (vnode.tag === 'textarea' || el.type === 'text' || el.type ==... | 9 |
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md @@ -122,7 +122,8 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
* [Daniel Cooper](https://github.com/moodragon46)
* [GeoFS](https://www.geo-fs.com)
* [Xavier Tassin](https://github.com/xtassin/)
-
+* [Northrop Grumman](http://www.northr... | 3 |
diff --git a/package.json b/package.json "name": "@json-editor/json-editor",
"title": "JSONEditor",
"description": "JSON Schema based editor",
- "version": "2.8.0",
+ "version": "2.7.0",
"main": "dist/jsoneditor.js",
"author": {
"name": "Jeremy Dorn",
| 13 |
diff --git a/native/chat/message-list.react.js b/native/chat/message-list.react.js @@ -369,13 +369,14 @@ class InnerMessageList extends React.PureComponent<Props, State> {
}
componentDidUpdate(prevProps: Props, prevState: State) {
- if (!this.state.listDataWithHeights) {
+ if (!this.loadingFromScroll || !this.state.lis... | 12 |
diff --git a/components/textdiff/textdiff.js b/components/textdiff/textdiff.js @@ -141,7 +141,7 @@ TextDiffViewModel.prototype.render = function(isInvalidate) {
return self.getDiffJson();
}
}).then(function() {
- if (self.diffJson.length == 0) return; // check if diffs are available (binary files do not support them)
+... | 9 |
diff --git a/README.md b/README.md <p align="center">
- <a href="https://impulso.network/" target="_blank">
- <img alt="Parcel" src="https://impulso.network/assets/images/impulsonetwork-logo.svg" width="350">
+ <a href="https://impulso.network/" target="_blank" alt="Impulso Network">
+ <svg xmlns="http://www.w3.org/200... | 3 |
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md @@ -768,7 +768,14 @@ For details, see https://docs.google.com/spreadsheets/d/1whV739iW6O9SxRZLCIe2lpv
-
+## Errors
+
+| Error `name` | Meaning |
+|:------------------------|:---------------------------------------------------------------|
+| UsageError | Bad usage, caught ... | 0 |
diff --git a/src/client/components/display/History.jsx b/src/client/components/display/History.jsx @@ -214,7 +214,7 @@ const History = ({
historyController.deleteHistoryFromIndexedDb(e.target.id);
};
- const urlDisplay = url.length > 32 ? url.slice(0, 32) + '...' : url;
+ const urlDisplay = url && url.length > 32 ? url... | 11 |
diff --git a/avatars/avatars.js b/avatars/avatars.js @@ -7,6 +7,7 @@ import ShoulderTransforms from './vrarmik/ShoulderTransforms.js';
import LegsManager from './vrarmik/LegsManager.js';
import MicrophoneWorker from './microphone-worker.js';
import skeletonString from './skeleton.js';
+import easing from '../easing.js'... | 0 |
diff --git a/src/traces/scattergl/index.js b/src/traces/scattergl/index.js @@ -15,7 +15,7 @@ ScatterGl.supplyDefaults = require('./defaults');
ScatterGl.colorbar = require('../scatter/colorbar');
// reuse the Scatter3D 'dummy' calc step so that legends know what to do
-ScatterGl.calc = require('../scatter3d/calc');
+Sc... | 0 |
diff --git a/packages/app/src/components/Admin/Common/AdminNavigation.jsx b/packages/app/src/components/Admin/Common/AdminNavigation.jsx -/* eslint-disable no-multi-spaces */
-/* eslint-disable react/jsx-props-no-multi-spaces */
-
-
import React from 'react';
import { pathUtils } from '@growi/core';
@@ -25,6 +21,7 @@ c... | 7 |
diff --git a/src/material.js b/src/material.js @@ -308,7 +308,7 @@ class gltfMaterial extends GltfObject
// https://github.com/sebavan/glTF/tree/KHR_materials_sheen/extensions/2.0/Khronos/KHR_materials_sheen
let sheenFactor = 0.0;
let sheenColor = vec3.fromValues(1.0, 1.0, 1.0);
- let sheenRoughness = 0.3;
+ let sheenR... | 2 |
diff --git a/token-metadata/0x0AfFa06e7Fbe5bC9a764C979aA66E8256A631f02/metadata.json b/token-metadata/0x0AfFa06e7Fbe5bC9a764C979aA66E8256A631f02/metadata.json "symbol": "PLBT",
"address": "0x0AfFa06e7Fbe5bC9a764C979aA66E8256A631f02",
"decimals": 6,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"
... | 3 |
diff --git a/src/__tests__/globalReducer.test.js b/src/__tests__/globalReducer.test.js @@ -179,14 +179,14 @@ describe('Global Reducer works properly', () => {
});
});
- it('should handle UPDATE_FILE_SHOW', () => {
- let action = { type: 'UPDATE_FILE_SHOW', testString: '' };
+ it('should handle UPDATE_FILE', () => {
+ l... | 3 |
diff --git a/lib/bal/api.js b/lib/bal/api.js @@ -54,6 +54,11 @@ export async function uploadCSV(file) {
}
const response = await fetch(href, options)
+ if (!response.ok) {
+ const {message} = await response.json()
+ throw new Error(message)
+ }
+
if (response.ok) {
return response.json()
}
| 7 |
diff --git a/generators/server/templates/src/test/java/package/service/MailServiceIntTest.java.ejs b/generators/server/templates/src/test/java/package/service/MailServiceIntTest.java.ejs @@ -148,7 +148,7 @@ public class MailServiceIntTest <% if (databaseType === 'cassandra') { %>extends
assertThat(message.getSubject())... | 1 |
diff --git a/src/material.js b/src/material.js @@ -4,18 +4,23 @@ import { fromKeys, jsToGl, initGlForMembers } from './utils.js';
class gltfMaterial
{
- constructor(emissiveFactor = jsToGl([0, 0, 0]), alphaMode = "OPAQUE", alphaCutoff = 0.5, doubleSided = false,
- name = undefined)
- {
- this.textures = []; // array of... | 12 |
diff --git a/chatbot-conversational_AI/update-bot/app/update-bot.js b/chatbot-conversational_AI/update-bot/app/update-bot.js @@ -224,7 +224,8 @@ async function add_caiAnswer(answerText, questionLink, access_token) {
// add the Link to Stack Overflow to the Answer
if (slackFormat.length > 1800) { // answer is too long
-... | 12 |
diff --git a/Gemfile.lock b/Gemfile.lock @@ -320,7 +320,6 @@ GEM
tilt (~> 1.1, != 1.3.0)
state_machine (1.1.2)
statsd-client (0.0.7)
- string-encrypt (0.0.5)
test-unit (3.1.7)
power_assert
thin (1.7.0)
@@ -433,7 +432,6 @@ DEPENDENCIES
simplecov-rcov
state_machine (= 1.1.2)
statsd-client (= 0.0.7)
- string-encrypt
test-... | 2 |
diff --git a/src/middleware/packages/webacl/services/group/index.js b/src/middleware/packages/webacl/services/group/index.js @@ -43,7 +43,7 @@ module.exports = {
if (!groupExists) {
this.logger.info("Super admin group doesn't exist, creating it...");
- const { groupUri } = await this.actions.create({ slug: 'superadmins... | 1 |
diff --git a/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/contentview/template.vue b/admin-base/ui.apps/src/main/content/jcr_root/apps/admin/components/contentview/template.vue wrapEditableAroundSelected() {
if (!this.component) return
+ this.$nextTick(() => {
const {top, left, width, height} = th... | 7 |
diff --git a/doc/includes/API.md b/doc/includes/API.md @@ -6168,9 +6168,19 @@ const queryBuilder = person.$query(transactionOrKnex);
> Re-fetch the instance from the database:
```js
-person.$query().then(person => {
- console.log(person);
+person.$query().then(reFetchedPerson => {
+ // Note that `person` did not get mo... | 7 |
diff --git a/src/struct/commands/arguments/Control.js b/src/struct/commands/arguments/Control.js @@ -195,8 +195,8 @@ class DoControl extends Control {
* @param {Object} data - Data for control.
* @returns {Object}
*/
- control({ process, currentArgs, args, command, message, processedArgs }) {
- this.fn.call(command, me... | 11 |
diff --git a/content/questions/string-interpolation/index.md b/content/questions/string-interpolation/index.md @@ -7,21 +7,20 @@ tags:
order: 51
date: Fri Oct 18 2019 22:06:13 GMT+0530 (India Standard Time)
answers:
- - "possible! You should see a therapist after so much JavaScript lol"
- - "Impossible! You should see ... | 3 |
diff --git a/lib/application.js b/lib/application.js @@ -52,14 +52,17 @@ class Application extends events.EventEmitter {
}
async createScript(fileName) {
+ try {
const code = await fsp.readFile(fileName, 'utf8');
+ if (!code) return null;
const src = '\'use strict\';\ncontext => ' + code;
const options = { filename: fi... | 1 |
diff --git a/server/events/phasers.js b/server/events/phasers.js @@ -48,7 +48,7 @@ App.on("firePhaserBeam", ({ id, beamId }) => {
});
App.on("stopPhaserBeams", ({ id }) => {
const sys = App.systems.find(s => s.id === id);
- sys.stopBeams();
+ sys && sys.stopBeams();
pubsub.publish(
"phasersUpdate",
App.systems.filter(s... | 7 |
diff --git a/articles/rules/redirect.md b/articles/rules/redirect.md @@ -12,9 +12,8 @@ Rules can also be used to programatically redirect users before an authenticatio
* Implementing custom verification mechanisms (e.g. proprietary multifactor authentication providers).
* Forcing users to change passwords.
-::: panel-d... | 0 |
diff --git a/test/contracts/FuturesMarket.js b/test/contracts/FuturesMarket.js @@ -652,15 +652,27 @@ contract('FuturesMarket', accounts => {
});
await futuresMarket.confirmOrder(trader);
- assert.bnEqual((await futuresMarket.liquidationPrice(trader, true)).price, toUnit(201));
+ assert.bnClose(
+ (await futuresMarket.l... | 1 |
diff --git a/src/agent/index.js b/src/agent/index.js @@ -1400,11 +1400,15 @@ function traceFormat (args) {
}
function traceRegs (args) {
+ if (args.length < 1) {
+ return 'Usage: dtr [address] [reg ...]';
+ }
const address = getPtr(args[0]);
const rest = args.slice(1);
const listener = Interceptor.attach(address, trace... | 7 |
diff --git a/lib/metrics/names.js b/lib/metrics/names.js @@ -10,6 +10,10 @@ const NODEJS = {
}
const ALL = 'all'
+const POSTGRES_LITERAL = 'Postgres'
+const CASSANDRA_LITERAL = 'Cassandra'
+const EXPRESS_LITERAL = 'Expressjs'
+const OTHER_TRANSACTION_MESSAGE = 'OtherTransaction/Message'
const SUPPORTABILITY = {
PREFIX:... | 1 |
diff --git a/README.md b/README.md We're working on updating our websites, domains, and npm package names so that it will be easier in future to find all things Primer. We welcome feedback and contributions at any time. Please check existing issues and pull requests before contributing, and please communicate via an is... | 5 |
diff --git a/spec/models/table_spec.rb b/spec/models/table_spec.rb @@ -1400,6 +1400,13 @@ describe Table do
}.should raise_error(CartoDB::InvalidColumnName)
end
+ it "should raise an error when renaming a column with reserved name" do
+ table = create_table(:user_id => @user.id)
+ lambda {
+ table.rename_column('name',... | 10 |
diff --git a/src/sections/target/ChemicalProbes/Body.js b/src/sections/target/ChemicalProbes/Body.js @@ -19,7 +19,10 @@ const columns = [
renderCell: rowData =>
rowData.sourcelinks.map((d, i, a) => (
<React.Fragment key={i}>
- <Link external to={d.link}>
+ <Link
+ external
+ to={`${!d.link.startsWith('http') ? 'http://... | 1 |
diff --git a/src/features/script-load.js b/src/features/script-load.js @@ -53,7 +53,8 @@ if (hasDocument) {
}
function loadScriptModules() {
- document.querySelectorAll('script[type=systemjs-module]').forEach(function (script) {
+ Array.prototype.forEach.call(
+ document.querySelectorAll('script[type=systemjs-module]')... | 14 |
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -8,13 +8,9 @@ cache:
- node_modules/
test:
- image: timbru31/java-node#bgshcxv8fkzpt4tf9acqjvd
+ image: solidstategroup/node-java-chrome
stage: test
script:
- - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- - sh -c 'echo "deb http://... | 4 |
diff --git a/3-terrarium/1-intro-to-html/README.md b/3-terrarium/1-intro-to-html/README.md # Terrarium Project Part 1: Introduction to HTML
-
+
> Sketchnote by [Tomomi Imura](https://twitter.com/girlie_m... | 1 |
diff --git a/src/geo/csg.js b/src/geo/csg.js @@ -142,6 +142,8 @@ Module.onRuntimeInitialized = () => {
const ball_torture = false;
if (tests) {
+ console.log('running Manifold tests');
+
let c = Module.cube([1,1,1], true);
console.log({
c,
@@ -151,6 +153,8 @@ Module.onRuntimeInitialized = () => {
});
if (mesh_perf) {
+... | 3 |
diff --git a/source/includes/_contributing.mdown b/source/includes/_contributing.mdown @@ -21,7 +21,7 @@ Read our [development process](#development-process) and [community guidelines](
We follow the [GitFlow](http://nvie.com/posts/a-successful-git-branching-model/) branching model for development. The latest merged co... | 14 |
diff --git a/src/screens/SplashScreen/BadConnection.test.js b/src/screens/SplashScreen/BadConnection.test.js // @flow
import React from "react";
+import { ActivityIndicator } from "react-native";
import { shallow } from "enzyme";
import BadConnection from "./BadConnection";
+import Button from "../../components/ButtonP... | 0 |
diff --git a/aura-impl/src/main/resources/aura/provider/GlobalValueProviders.js b/aura-impl/src/main/resources/aura/provider/GlobalValueProviders.js * <li>getStorableValues[optional] get a storable version of the GVP values
* <li>getValues: get a set of values that can be exposed.
* <li>set[optional]: set a value on th... | 11 |
diff --git a/host_pool.js b/host_pool.js @@ -57,13 +57,12 @@ class HostPool {
*/
failed (host, port) {
const self = this;
- const key = host + ':' + port;
+ const key = `${host}:${port}`;
const retry_msecs = self.retry_secs * 1000;
self.dead_hosts[key] = true;
function cb_if_still_dead () {
- logger.logwarn("host " + k... | 14 |
diff --git a/metaversefile-api.js b/metaversefile-api.js @@ -3,7 +3,7 @@ import {GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader.js';
import React from 'react';
import * as ReactThreeFiber from '@react-three/fiber';
import metaversefile from 'metaversefile';
-import {App, getRenderer, scene, camera, appManager}... | 0 |
diff --git a/web/index.js b/web/index.js @@ -63,7 +63,6 @@ const internal = {
deferredInstallPrompt : null,
installButton : null,
enableOfflineButton : false,
- toggleOnlineFunction : null,
debug : false,
};
@@ -226,7 +225,7 @@ var receivedMessageFromServiceWorker = function(msg) {
if (msg.indexOf('Online')>0) {
online... | 3 |
diff --git a/app/components/Account/AccountOverview.jsx b/app/components/Account/AccountOverview.jsx @@ -573,7 +573,7 @@ class AccountOverview extends React.Component {
<div className="grid-content app-tables no-padding" ref="appTables">
<div className="content-block small-12">
<div className="tabs-container generic-bo... | 12 |
diff --git a/packages/inferno/src/DOM/events/events.ts b/packages/inferno/src/DOM/events/events.ts @@ -50,7 +50,7 @@ export type TransitionEvent<T> = SemiSyntheticEvent<T> & NativeTransitionEvent;
// Event Handler Types
// ----------------------------------------------------------------------
-export type EventHandler<... | 11 |
diff --git a/src/modules/dex/directives/orderBook/OrderBook.js b/src/modules/dex/directives/orderBook/OrderBook.js * @private
*/
_toTemplate(list, crop, priceHash, maxAmount) {
- maxAmount = maxAmount.times(2);
return list.map((order) => {
const hasOrder = !!priceHash[order.price.toFixed(this.priceAsset.precision)];
co... | 4 |
diff --git a/README.md b/README.md Activity [](https://travis-ci.org/hikaya/Activity-CE)
====
-Activity includes a set of forms and reports for managing project activities for a Program. It includes workflow for approving and completing projects... | 3 |
diff --git a/src/utilities.js b/src/utilities.js @@ -27,6 +27,8 @@ export function deepCopy (target) {
export function extend (destination, ...args) {
args.forEach(source => {
+ if (source)
+ {
Object.keys(source).forEach(property => {
if (source[property] && isPlainObject(source[property])) {
if (!hasOwnProperty(desti... | 1 |
diff --git a/packages/react-router/docs/api/matchPath.md b/packages/react-router/docs/api/matchPath.md @@ -33,14 +33,14 @@ an array of strings as shortcut for `{ path }`:
## returns
-It returns an object when provided pathname does match `path` prop or `null` otherwise.
+It returns an object when provided pathname does... | 7 |
diff --git a/token-metadata/0xeE3b9B531F4C564c70e14B7b3BB7D516f33513ff/metadata.json b/token-metadata/0xeE3b9B531F4C564c70e14B7b3BB7D516f33513ff/metadata.json "symbol": "DFIO",
"address": "0xeE3b9B531F4C564c70e14B7b3BB7D516f33513ff",
"decimals": 18,
- "dharmaVerificationStatus": {
"dharmaVerificationStatus": "VERIFIED"... | 3 |
diff --git a/packages/localization/src/TranslationHelpers.js b/packages/localization/src/TranslationHelpers.js @@ -5,6 +5,8 @@ import DefaultVocabulary, {
type TranslationKeysObject,
} from './DefaultVocabulary';
+const NATIVE_TRANSLATION_PARAM_REGEX = /%([0-9]+)\$@/g;
+
export const getTranslation = (
translatedString... | 9 |
diff --git a/setup.py b/setup.py @@ -16,6 +16,7 @@ setup(
author_email="cweaver@chanzuckerberg.com",
description="Web application for exploration of large scale scRNA-seq datasets",
long_description=long_description,
+ long_description_content_type='text/markdown',
install_requires=requirements,
include_package_data=Tr... | 12 |
diff --git a/userscript.user.js b/userscript.user.js @@ -63785,7 +63785,7 @@ var $$IMU_EXPORT$$;
return;
}
- function calc_imghw_for_fit(width, height) {
+ var get_imghw_for_fit = function(width, height) {
if (width === undefined)
width = vw;
@@ -63795,6 +63795,9 @@ var $$IMU_EXPORT$$;
//height -= border_thresh * 2;
//... | 7 |
diff --git a/src/crawlers/puppeteer_crawler.js b/src/crawlers/puppeteer_crawler.js @@ -82,7 +82,8 @@ import { openSessionPool } from '../session_pool/session_pool';
* response: Response,
* page: Page,
* puppeteerPool: PuppeteerPool,
- * autoscaledPool: AutoscaledPool
+ * autoscaledPool: AutoscaledPool,
+ * session: Ses... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.