text
stringlengths
3
1.05M
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import _get from "@swc/helpers/src/_get.mjs"; import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; import _inherits from "@swc/helpers/src/_inherits.mjs"; import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mj...
const { GraphQLObjectType, GraphQLString, GraphQLNonNull, GraphQLList } = require('graphql'); const { extendSchema } = require('../../../utils/schema.utils'); /** * @name exports * @summary AuditEvent.source Schema */ module.exports = new GraphQLObjectType({ name: 'AuditEventSource', description: 'Application ...
# Copyright 2020 kubeflow.org. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
from pyevolve import G1DList from pyevolve import Mutators, Crossovers from pyevolve import Consts, GSimpleGA from pyevolve import DBAdapters from random import shuffle # The "n" in n-queens BOARD_SIZE = 64 # The n-queens fitness function def queens_eval(genome): collisions = 0 for i in xrange(0, BOARD_SIZE): ...
export default () => ( <main> <style dangerouslySetInnerHTML={{ __html: ` html, body { margin: 0; } html * { box-sizing: border-box; } main { display: flex; align-ite...
from locust import between, clients from common.log_module import * from common.utils import UtilHelper from locust.exception import StopUser from common.user_loader import UserLoader from users.abstracte_user import AbstractUser class RegisteredHttpUser(AbstractUser): wait_time = between(1, 2) abstract = Tru...
(self.webpackChunkyacd=self.webpackChunkyacd||[]).push([[977],{},0,[[47727,138,935,545,486,623],[83253,138,935,545,486,623]]]); //# sourceMappingURL=libs.80f55d0f245cb801b673.js.map
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const node_html_parser_1 = require("node-html-parser"); class HtmlFormExtractor { constructor(formElementSelector, baseUrl) { this.formElementSelector = formElementSelector; this.baseUrl = baseUrl; } getInputFields(...
import React, { useState, useEffect } from "react"; import AnimalForm from "./AnimalForm.js"; import AnimalList from "./AnimalsList.js"; export default function AnimalDashboard() { const [ animals, setAnimals ] = useState([]); // How can get fetch the data from the server when the component mounts? ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.activate = activate; exports.deactivate = deactivate; var _atom = require('atom'); var _move; function _load_move() { return _move = require('./move'); } /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved...
import matplotlib.pyplot as plt import pandas as pd import numpy as np from pathlib import Path import seaborn as sns import plotly.express as px from typing import List import re import patsy as pt import pymc3 as pm from sklearn import preprocessing cols = sns.color_palette('colorblind') # PROTEIN_DIRS = ['1fme', ...
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue" export default function render(_ctx, _cache) { return (_openBlock(), _createBlock("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor" }, [ _createVNode("path"...
// This file was procedurally generated from the following sources: // - src/dstr-binding-for-await/ary-ptrn-elem-id-init-fn-name-gen.case // - src/dstr-binding-for-await/default/for-await-of-async-gen-let.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (for-await-of statem...
// @flow import theme from 'shared/theme'; import styled, { css } from 'styled-components'; import { Link } from 'react-router-dom'; import { Button } from 'src/components/button'; import { ViewGrid } from 'src/components/layout'; import { H2, FlexCol, FlexRow, P, Transition, Shadow, zIndex, hexa, Gra...
import React from 'react' import Readmore from '../src/index' import LoremHTML from './LoremHTML' const Offset = ({ offset }) => ( <Readmore offset={offset}> <LoremHTML title={`Offset ${offset}px`} /> </Readmore> ) export default Offset
'use strict'; function fetchurl(data) { var date = data.date; return new Promise((yes, no) => { const moment = window.__hellobill.utils.moment; const dateRegStr = moment(date, "YYYY-MM").locale('fr').format("MM/YYYY"); const orders = document.querySelectorAll('table.table-orders tr'); const okOrd...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { addItem } from '../../logic/todos'; import './styles.css'; let inputField; const save = (onAdd) => { inputField.value && onAdd(inputField.value); inputField.value = ''; }; export const ItemCreator = ({ ...
import isViablePhoneNumber from './helpers/isViablePhoneNumber'; import parseNumber from './parse_'; import _isValidNumberForRegion from './isValidNumberForRegion_'; export default function isValidNumberForRegion(number, country, metadata) { if (typeof number !== 'string') { throw new TypeError('number must be a ...
const { merge } = require('webpack-merge'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const commonConfig = require('./webpack.common'); const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin'); const packageJson = require('../package.json'); const devConfig = { mode:'dev...
import React, { useState } from 'react'; import { Outlet } from 'react-router-dom'; import { makeStyles } from '@material-ui/core'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // import NavBar from './NavBar'; import TopBar from './TopBar'; const ClientLayout = (props) => { co...
import React from "react"; import PropTypes from "prop-types"; import * as S from "./section-header.styles"; const SectionHeader = ({ moduleTitle, sectionTitle }) => ( <S.SectionHeader> <S.ModuleTitle> {moduleTitle} </S.ModuleTitle> <S.SectionTitle> {sectionTitle} ...
module.exports = function (router) { router.get('/service-access/v24/service-access-iproov-token-generation', function (req, res) { // pull in the url parameters var uplift = req.param('uplift') var vouched = req.param('vouch') var service = req.param('service') var serviceN...
const fs = require('fs'); const path = require('path'); const express = require('express'); const app = express(); app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); app.use(express.static(path.join(__dirname, 'public'))); //Reading Accounts Data const accountData = fs.readFileSync('src/j...
/* yield 문은, 설령 제너레이터의 마지막 문이더라도 제네레이터를 끝내지 않습니다. 제네레이터에서 return 문을 사용하면 그 위치와 관계없이 done은 true가 되고, value 프로퍼티는 return이 반환하는 값이 됩니다. */ function* abc() { yield 'a' yield 'b' return 'c' } const it = abc() console.log(it.next()) // { value: 'a', done: false } console.log(it.next()) // { value: '...
//Crouxconst { Collection } = require("discord.js"); module.exports = (client, message) => { //Messages privés if (message.channel.type === "dm") return client.emit("directMessage", message); if (message.author.bot) return; if (!message.content.startsWith(process.env.PREFIX)) return; const args = message.co...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2013, Nahuel Riva # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyrigh...
# Copyright 2019 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
import { combineReducers } from 'redux' import patientsReducer from './patientsReducer' import navigationReducer from './navigationReducer'; const rootReducer = combineReducers({ Patients: patientsReducer, Navigation: navigationReducer }); export default rootReducer;
#!/usr/bin/env python """ Copyright (c) 2006-2021 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ from lib.core.convert import getOrds from plugins.generic.syntax import Syntax as GenericSyntax class Syntax(GenericSyntax): @staticmethod def escape(expression, quote=Tr...
from django.db import models # Create your data models here. class ModelFactsheet(models.Model): ChallengeId=models.CharField(max_length=50) ModelName=models.CharField(max_length=50) ModelDeveloper=models.CharField(max_length=50) ModelTask=models.CharField(max_length=50) ModelAlgo=models.Ch...
""" "Copyright (c) 2017 GANGADHAR KORRAPATI" MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @record */ export function Task() { } /** * @record */ export function Loader() { } if (false) { /** @type {?} */ Loader.prototype.loaderId; ...
export default function handler(lambda) { return async function (event, context) { let body, statusCode; try { // Run the Lambda body = await lambda(event, context); statusCode = 200; } catch (e) { // Print out the full error console.log(e); body = { error: e.message ...
var express = require("express"); var router = express.Router(); var db = require("../models"); var helpers = require("../helpers/todo"); router.route("/") .get(helpers.getTodos) .post(helpers.createTodo); router.route("/:todoid") .get(helpers.getTodo) .put(helpers.updateTodo) .delete(helpers.deleteTodo); module.ex...
def get_site(coord, L): """Get the site index from the 2-vector of coordinates.""" # 2D hardcoded return coord[0] * L[1] + coord[1] def get_coord(site, L): """Get the 3-vector of coordinates from the site index.""" # XXX: 3D hardcoded, can do N-D x = site // (L[1]) y = site % (L[1]) re...
import React from 'react'; import { Html } from '../html'; export default function RichMedia({ body }) { console.warn('RichMedia is deprecated and will be removed in next versions.'); return <Html body={body} />; } RichMedia.propTypes = { body: React.PropTypes.string.isRequired, };
const inlineSvg = require('rollup-plugin-inline-svg'); module.exports = { rollup(config, options) { config.plugins.push( inlineSvg({ // default: false removeTags: false, // warning: this won't work unless you specify removeTags: true ...
/* eslint-disable no-undef */ import React from 'react'; import Enzyme from 'enzyme'; import App from './App'; describe('components/App', () => { let renderedElement; const renderComponent = () => { renderedElement = Enzyme.shallow(<App />); }; beforeEach(() => { renderComponent(); ...
/*! * ${copyright} */ sap.ui.define([ "sap/ui/core/Element", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/AdaptationMixin" ], function(CoreElement, DelegateMixin, AdaptationMixin) { "use strict"; /** * Creates and initializes a new MDC element with the given <code>sId</code> and settings. * * @para...
from gym.utils import seeding, colorize from gym import core, spaces from six import StringIO import sys import numpy as np BIG = 100000000 class RandomTabularMDPEnv(core.Env): """ A tabular MDP with a fixed state / action space, where the rewards and transition probabilities are initialized randomly. ...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from graspologic.layouts.nooverlap.nooverlap import remove_overlaps __all__ = ["remove_overlaps"]
/** * Code icon SVG definitions * @param {HTMLElement} defs The defs element to populate * @constructor */ const CodeIconDefs = function(defs) { this.makeIcon(defs); }; CodeIconDefs.prototype = Object.create(CodeIconConstants.prototype); CodeIconDefs.prototype.SEGMENT_WIDTH = .7; CodeIconDefs.prototype.INSET =...
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
import express from 'express'; import boom from '@hapi/boom'; import _ from 'underscore'; import mongoose from 'mongoose'; // Services import TasksServices from '../services/tasks'; // Schemas import taskSchema from '../utils/schemas/tasks'; import projectSchema from '../utils/schemas/projects'; // Middleware import...
// For an introduction to the Blank template, see the following documentation: // http://go.microsoft.com/fwlink/?LinkId=232509 (function () { "use strict"; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; app.onactivated = function (args) { if (args.detail.k...
from pyspark.sql import SparkSession, SQLContext from pyspark.ml.feature import OneHotEncoder,StringIndexer from pyspark.ml import Pipeline import sys spark = SparkSession\ .builder\ .getOrCreate() sc = spark.sparkContext; sqlContext = SQLContext(sc) sc.setLogLevel("WARN") if __name__ == "__main__":...
// Here is how to selectively limit the view to some, but not all rule name operators. // When any one is named specifically, as here, all of those not named default to `false`. (function() { var setup = require("./setup.js"); var trace = new (require("apg-lib").trace)(); var number; trace.filter.rules["phone-n...
var table; var propertyId; $(document).ready(function(){ feather.replace() $('#nav-dashboard').removeClass('active'); $('#nav-expense').removeClass('active'); $('#nav-import').removeClass('active'); $('#nav-work').removeClass('active'); $('#nav-vendor').removeClass('active'); $('#nav-tenant').removeClass...
var postcss = require('postcss'); module.exports = postcss.plugin('postcss-modules-scoped-selectors', function (options) { return function(css) { css.eachRule(function(rule) { if(rule.parent.type === "atrule" && /keyframes$/.test(rule.parent.name)) { // ignore keyframe rules return; }...
module.exports = { siteMetadata: { title: `jeancabral.dev`, description: `Software Engineer, Gamer, Passionate about technology, JavaScript and coffee.`, author: `@jeancabral`, position: 'Developer', }, plugins: [ `gatsby-plugin-react-helmet`, `gatsby-plugin-styled-components`, { ...
!function(e){const a=e.pt=e.pt||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"",Aquamarine:"",Black:"",Blue:"",Bold:"Negrito","Bulleted List":"Lista não ordenada",Cancel:"Cancelar","Change image text alternative":"","Choose heading":"",Code:"Código","Dim grey":"",Downloadable:"","Dropdown toolbar":"","Edi...
// Alert const Toast = Swal.mixin({ toast: true, position: 'bottom-end', showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.addEventListener('mouseenter', Swal.stopTimer) toast.addEventListener('mouseleave', Swal.resumeTimer) } }) exp...
'use strict'; var path = require("path"); var mustache = require('mustache'); module.exports = function makeHtml(styles, data) { // read template var template = require('./read_file')(path.join(__dirname, '../../template', 'template.html')); // convert template var view = { style: styles, ...
# from CTL.causal_tree.util import * try: from CTL.causal_tree.util_c import * except: from CTL.causal_tree.util import * from CTL.causal_tree.ct import * import numpy as np class CTLearnNode(CTNode): def __init__(self, p_val=1.0, effect=0.0, node_depth=0, control_mean=0.0, treatment_mean=0.0, col=-1, va...
// src/pages/Services.js import React from 'react' import CNTower from "../app/images/cntower.jpg"; import HighPark from "../app/images/highpark.jpg"; const Services = () => { return ( <div className="w3-container"> <h1 className="w3-center myheading1">Services</h1> <img src={HighPark} className="img_respo...
# -*- coding: UTF-8 -*- import ckan.lib.helpers as h import ckan.logic as l import ckan.model as model import ckan.lib.create_test_data as create_test_data import ckan.tests.functional.base as base import ckan.plugins as plugins import ckan.lib.dictization.model_dictize as model_dictize class TestPluggablePreviews(b...
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Utilities to pull in documentation from command-line tools. Examples -------- # Instantiate bet object from nipype.interfaces import fsl from nipype.utils import docparse better...
# -*- coding: utf-8 -*- # # loggerFactory documentation build configuration file, created by # sphinx-quickstart on Mon Jul 1 00:00:00 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. ...
''' Created on Mar 2, 2013 @author: Gary ''' import unittest from housemonitor.steps.maxvalue import MaxValue from housemonitor.steps.maxvalue import instantuate_me from housemonitor.lib.common import Common import logging.config from housemonitor.lib.constants import Constants import pprint from mock import Mock, Mag...
/** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also availa...
import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="text", parent_name="heatmap.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=par...
import React from "react"; import "./App.css"; import "bootstrap/dist/css/bootstrap.min.css"; import { BrowserRouter, Route, Switch } from "react-router-dom"; import Home from "./pages/home"; import Donor from "./pages/donor"; import Partner from "./pages/partner"; import Error from "./pages/error"; import Navigation ...
/* eslint-disable camelcase */ const util = {} /** * [使用递归查询指定type的box] * var mimeCodec = 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'; * @param {Object} root [JSON对象] * @param {String} type [box的类型] * @param {?Array} type [box] * @return {Object|Array<Object>|undefined} [box] */ util.findBox = function (roo...
const assert = require("assert"); const anchor = require("@project-serum/anchor"); const { Account, Transaction, TransactionInstruction } = anchor.web3; const { TOKEN_PROGRAM_ID, Token } = require("@solana/spl-token"); // sleep to allow logs to come in const sleep = (ms) => new Promise((resolve) => { setTimeout(...
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Loading...</div> } const videoId = video.id.videoId; const url = 'https://www.youtube.com/embed/' + videoId; return( <div className="video-detail col-md-8"> <div className="embed-respo...
class FingerPrintAnalyzer { constructor(db, application) { this.db = db; this.application = application; this.acceptRanges = []; this.contentType = []; this.eTag = []; } init() { const promises = [ this.loadAcceptRanges(), this.loadCon...
import math from collections import OrderedDict from functools import partial from typing import Any, Callable, Dict, List, Optional, Tuple import torch from torch import nn, Tensor from ..ops.misc import Conv2dNormActivation, SqueezeExcitation from ..transforms._presets import ImageClassification, InterpolationMode ...
// pages/card/card.js var api = require('../../api.js'); var app = getApp(); var is_loading = false; Page({ /** * 页面的初始数据 */ data: { page: 1, show_qrcode: false, status: 1 }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { ...
import { useState } from "react"; import Loader from "./components/Loader/Loader"; import NavbarLg from "./components/Navbar/navbarLg"; import NavbarSm from "./components/Navbar/navbarSm"; import Home from "./components/Home/Home"; import AboutMe from "./components/About/AboutMe"; import Services from "./components/Ser...
from splunklib.binding import HTTPError, namespace, AuthenticationError import demistomock as demisto from CommonServerPython import * import splunklib.client as client import splunklib.results as results import json from datetime import timedelta, datetime import pytz import dateparser # type: ignore import urllib2...
import React from 'react' import reactR from 'reactR' import { columnsToRows, addColumnGroups, createCompareFunction, buildColumnDefs, formatValue } from '../columns' import { aggregators } from '../aggregators' jest.mock('reactR') reactR.hydrate = (components, tag) => tag test('columnsToRows', () => { c...
import {mapGetters} from "vuex"; import Multiselect from 'vue-multiselect' import { CREATE_ATTENDEE } from "../../../store/actions"; // import {GET_EMPLOYEE, CREATE_EMPLOYEE, UPDATE_EMPLOYEE} from "../../../store/actions"; export default { components: { Multiselect }, data() { return { ...
/** * This is the description for DBCONNECT API class. This class manages the call and execution of the query. * This call return the results of the requested query * All the SQLQUERY request are logs. * * Environment variable used: * > db.maxRows in the configuration file (config folder). Represent the number of max...
const defineGrammar = require('../common/define-grammar'); module.exports = defineGrammar('tsx');
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: Class declaration not allowed in statement position esid: sec-while-statement es6id: 13.7.3 negative: phase: parse type: SyntaxError ---*/ throw "Test262: Thi...
#!/usr/bin/env python3 # # Copyright (c) 2004-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same direct...
import { text, withKnobs } from '@storybook/addon-knobs'; import { withA11y } from '@storybook/addon-a11y'; import TermsAndConditionsCard from '../src/components/cardTemplates/TermsAndConditionsCard.vue'; export default { title: 'Components/Molecules/f-content-cards', decorators: [withKnobs, withA11y] }; /** ...
macDetailCallback("00a0ae000000/24",[{"d":"1998-04-22","t":"add","a":"9F-6, NO 4, LANE\n609 CHUNG HSIN ROAD, SEC. 5,\nSAN CHUNG CITY, TAIPEI\n","c":"TAIWAN, R.O.C.","o":"NUCOM SYSTEMS, INC."},{"d":"2001-10-24","t":"change","a":"9F-6, NO 4, LANE\n609 CHUNG HSIN ROAD, SEC. 5, SAN CHUNG C\n\n","c":"TAIWAN TAIWAN R.O.C.",...
export { default, initialize } from 'ember-cli-parse/initializers/parse-auth';
/** * timesync * * Time synchronization between peers * * https://github.com/enmasseio/timesync */ import * as util from './util.js'; import * as stat from './stat.js'; import emitter from './emitter.js'; var Promise = require('./Promise'); /** * Factory function to create a timesync instance * @param {Object...
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { return Promise.all([ queryInterface.addColumn( 'Newsletters', // table name 'active', // new field name { type: Sequelize.DataTypes.BOOLEAN, defaultValue: true, allowNull: false...
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-05-08 09:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Counties...
# -*- coding: utf-8 -*- # Copyright 2017, Digital Reasoning # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
import React, {useEffect, useState, useCallback} from 'react'; import {Container, Col, Row, Carousel} from 'react-bootstrap'; import {useParams} from 'react-router-dom' import axios from "axios"; import {GoogleMap, useJsApiLoader, Marker, Rectangle} from '@react-google-maps/api'; import './Detail.scss'; const DisplayD...
class Menu { constructor() { this.options = [ { display: "Toggle Debug", bind: "toggleDebug", x: block(3.5), y: block(1.5), width: canvasWidth - block(7), height: block(2) }, { display: "Settings", //bind: "toggleDebug", x: block(3.5), y: block(4), width: canva...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StatusCode = void 0; /** * An enumeration of status codes. */ var StatusCode; (function (StatusCode) { /** * The operation has been validated by an Application developer or * Operator to have completed successfully. ...
import { bootstrapModeler, inject } from 'test/TestHelper'; var pick = require('min-dash').pick; var getBBox = require('diagram-js/lib/util/Elements').getBBox; var getParent = require('lib/features/modeling/util/ModelingUtil').getParent; import bpmnEditorActionsModule from 'lib/features/editor-actions'; import...
// home.js import React from "react"; import { Link } from "react-router-dom"; import Icon from '../icon/Icon'; import "./Home.css"; class Welcome extends React.Component { render () { let time = ""; var today = new Date() var currentHour = today.getHours() if (currentHour < 12)...
import React, {Component} from 'react'; import {TouchableOpacity} from 'react-native'; import {Assets, RadioButton, Colors, RadioGroup, View, Text, Image} from 'react-native-ui-lib'; //eslint-disable-line export default class RadioButtonScreen extends Component { constructor(props) { super(props); this.state...
import { hot } from "react-hot-loader"; import React from "react"; import { UiProvider } from "@webiny/app/contexts/Ui"; import { registerPlugins, getPlugins } from "@webiny/plugins"; import { ThemeProvider } from "@webiny/app-admin/contexts/Theme"; import { AppInstaller } from "@webiny/app-admin/components/Install/App...
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; ret...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
"use strict"; var bunyan = require('bunyan'), bunyantcp = require('../lib/logstash'); var net = require('net'), should = require('should'); suite('EventEmitter', function() { var server; var serverPort; suiteSetup(function(done){ server = net.createServer(); server.listen(functi...
# # @lc app=leetcode.cn id=206 lang=python3 # # [206] 反转链表 # # https://leetcode-cn.com/problems/reverse-linked-list/description/ # # algorithms # Easy (58.66%) # Total Accepted: 43.8K # Total Submissions: 74K # Testcase Example: '[1,2,3,4,5]' # # 反转一个单链表。 # # 示例: # # 输入: 1->2->3->4->5->NULL # 输出: 5->4->3->2->1->NUL...
!function(E,T){if("object"==typeof exports&&"object"==typeof module)module.exports=T(require("../../handsontable-pro"));else if("function"==typeof define&&define.amd)define(["../../handsontable-pro"],T);else{var _=T("object"==typeof exports?require("../../handsontable-pro"):E.Handsontable);for(var N in _)("object"==typ...
import fs from 'fs'; import fse from 'fs-extra'; import path from 'path'; import _ from 'lodash'; import {mkdirsSync, copySync, outputFileSync, removeSync} from 'fs-extra'; import matchBracket from 'match-bracket'; import locater from 'locater'; import inflect from 'i'; import {insertToFile, checkFileExists, readConfi...
'use strict'; var _ = require('lodash') , Knex = require('knex') , expect = require('expect.js') , Promise = require('bluebird') , Model = require('../../../').Model , knexMocker = require('../../../testUtils/mockKnex') , GraphInserter = require('../../../lib/queryBuilder/graphInserter/GraphInserter').defa...
from .helper import find_mutual, delete_mutual, print_list, append_no_dupl class Exp(): def __init__(self): pass def eliminate(self, e, c): pass def introduction(self, e, c): return False # returns all expressions x such that self -> x def implications(self, cur_true_exps): res = [] for e in cur_tr...
NDSummary.OnToolTipsLoaded("CSharpClass:FMOD.ASYNCREADINFO",{1959:"<div class=\"NDToolTip TStruct LCSharp\"><div class=\"NDClassPrototype\" id=\"NDClassPrototype1959\"><div class=\"CPEntry TStruct Current\"><div class=\"CPPrePrototypeLine\"><span class=\"SHMetadata\">[StructLayout(LayoutKind.Sequential)]</span></div><...
import styled from 'styled-components'; import { whenTablet, whenMobile } from '../global/media'; export const Container = styled.main` height: 100vh; display: grid; grid-template-columns: 1fr; grid-template-rows: 150px 1fr 200px; grid-template-areas: 'header' 'section' 'footer'; ${whenMobil...