text
stringlengths
3
1.05M
import argparse import sys from PySide2 import QtWidgets, QtGui, QtCore from PySide2.QtCore import Qt from PySide2.QtGui import QFontDatabase, QPixmap from PySide2.QtWidgets import QSplashScreen from You_Lose import Ui_Form parser = argparse.ArgumentParser() parser.add_argument("--lv", type=int, default=0) args = p...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ApiConfig from '../../services/ApiConfig'; import { Link, NavLink } from 'react-router-dom'; class Navigation extends Component { state = { isAuthenticated: false, }; async componentWillUpdate(nextProps) { ...
/** * @fileoverview Sphero Classic Communication buffer * * @license Copyright 2018 The Coding with Chrome 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.a...
var Vue = require('vue'); var TextareaAutosize = require('vue-textarea-autosize'); Vue.use(TextareaAutosize);
import uuid import pytest from flask import url_for from tests.conftest import SERVICE_ONE_ID, normalize_spaces def test_returned_letter_summary( client_request, mocker ): summary_data = [{'returned_letter_count': 1234, 'reported_at': '2019-12-24'}] mock = mocker.patch("app.service_api_client.get_re...
export default { name: "buttondown", displayName: "Buttondown", compatibleWith: ["bottom", "aside"], icon: "https://buttondown.email/static/images/icons/icon@72.png", excludeFromPaths: ["/login"], };
function plugin(UIkit) { if (plugin.installed) { return; } var {addClass, ajax, matches, noop, removeClass, trigger} = UIkit.util; UIkit.component('upload', { props: { allow: String, clsDragover: String, concurrent: Number, mime: String...
/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ var executeModules = data[2]; /******/ /******/ // add "moreModules" to the modu...
import DefaultStyleGenerator from '../../../theme/styles/DefaultStyleGenerator'; import Colors from '../../../theme/styles/Colors'; let stylesMap = { suggestionTextWrapper: { marginVertical: 9 }, suggestionText:{ fontFamily: 'AvenirNext-Regular', color:Colors.midNightblue, fontSize:16 }, ment...
const Discord = require("discord.js"); const fs = require("fs"); require("dotenv").config(); const client = new Discord.Client(); const config = require("./config.js"); client.config = config; fs.readdir("./events/", (err, files) => { if (err) return console.error(err); files.map(file => { let event = require(`....
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.default = addRequiredObjectProperty; function addRequiredObjectProperty (_ref) { var kind = _ref.kind; var path = _ref.path; var lhs = _ref.lhs; var rhs = _ref.rhs; var match = kind === 'N' && path.length >= 3 && path[pat...
'use strict'; const path = require("path"); const Datastore = require("nedb"); const config = require('./mtd-config'); module.exports = { query: _query, store: _storeEntity, getOauthConfig: _queryOauthConfig, storeOauthConfig: _storeOauthConfig, getAppConfig: _queryAppConfig, storeAppConfig: _...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
import re import copy # https://stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml-mappings-as-ordereddicts # stdlib import os from inspect import isclass from lxml import etree import json # local from jnpr.junos.exception import RpcError from jnpr.junos.utils.start_shell import StartShell from jnp...
import global from './global.js' import store from '@/store' const harbourModel = { // 获取港口列表 getHarbours(pagesize = -1) { const path = '/harbours?sort=name&order=asc'; return global.searchResource(path, null, null, pagesize).then(data => data); }, /////////////////下拉列表选项////////////////////////////...
cc.Class({ extends: cc.Component, properties: { // foo: { // default: null, // The default value will be used only when the component attaching // to a node for the first time // url: cc.Texture2D, // optional, default is typeof default ...
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
#!/usr/bin/env python3 # Copyright 2012-2021 The Meson development team # 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...
'use strict'; var FeedParserPromised = require('./lib/feedParserPromised'); exports = module.exports = FeedParserPromised;
"use strict"; var $ = require("../../core/renderer"), modules = require("./ui.grid_core.modules"), commonUtils = require("../../core/utils/common"), messageLocalization = require("../../localization/message"), when = require("../../integration/jquery/deferred").when; var TABLE_CLASS = "table", BOR...
from __future__ import absolute_import from __future__ import unicode_literals import json import uuid from collections import namedtuple from datetime import datetime, timedelta from django.test import override_settings, TestCase from mock import patch from casexml.apps.case.mock import CaseBlock, CaseFactory from ...
# AUTOGENERATED! DO NOT EDIT! File to edit: 03_label_assistant.ipynb (unless otherwise specified). __all__ = ['LabelAssistant'] # Cell import os import pandas as pd import winkie.dlc_importer as dlc_importer from .dlc_importer import DLCImporter from tqdm.notebook import tqdm class LabelAssistant: """Used to lab...
const path = require('path'); exports.createLayouts = ({ graphql, boundActionCreators }) => { boundActionCreators.createLayout({ component: path.resolve(`src/layouts/index.js`), }) } exports.createPages = ({ boundActionCreators, graphql }) => { const { createPage } = boundActionCreators; return graphql(` ...
macDetailCallback("70b3d5843000/36",[{"d":"2019-10-02","t":"add","s":"ieee-oui36.csv","a":"Komsomolsky avenue, 90-17 Perm Perm Region RU 614010","c":"RU","o":"OOO Research and Production Center \"Computer Technologies\""}]);
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.routes = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactRouter = require('react-router'); var _app = require('../shared/views/app'); var _app2 = _interopRequireDefault(_app); ...
/* Copyright (c) 2017-2020, Henry Kroll III of thenerdshow.com. All rights reserved. */ CKEDITOR.plugins.setLang( 'open_save', 'bs', { open: 'Otvori dokument', save: 'Spremi dokument', msg: 'Unesite novo ime ili pritisnite Enter da biste ga sačuvali kao' } );
const fs = require('fs'); const path = require('path'); const Sequelize = require('sequelize'); const basename = path.basename(__filename); const env = process.env.NODE_ENV || 'development'; const config = require('../../sequelize.config')[env]; const db = {}; let sequelize; if (config.use_env_variable) { sequelize...
let mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel applica...
const formatTime = date => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hour = date.getHours() const minute = date.getMinutes() const second = date.getSeconds() return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
// @flow import React from 'react'; import styled from 'styled-components'; import Button from '../Button/index'; import { RESOURCES_URL } from '../../helpers/config'; const MainContainer = styled.div` position: relative; width: 100%; img { width: 100%; height: auto; } `; const ExtendedImage = style...
ten_things="Apples Oranges Crows Tekephone Light sugar" print("Wait there are not 10 things in that list. Let's fix that.") stuff=ten_things.split(' ') more_stuff=["Days", "Night", "Song", "Frisbee", "Corn", "Banana", "Girl", "Boy"] while len(stuff)!=10: next_one=more_stuff.pop() print("Adding:",next_on...
const common = require('./.min-wd-common') module.exports = common.desktop({ browser: 'Edge', os: 'OS X' })
import logging from transformers_keras.adapters.abstract_adapter import ( AbstractAdapter, AbstractAlbertAdapter, AbstractBertAdapter, BaseAdapter, ) from transformers_keras.adapters.adapter_factory import AlbertAdapterFactory, BertAdapterFactory from transformers_keras.adapters.albert_adapter import A...
import React from 'react' import {useState, useEffect} from 'react' import queryString from 'query-string' import io from 'socket.io-client' import './Chat.css' import InfoBar from '../components/chatComponents/Infobar' import Messages from '../components/chatComponents/Messages/Messages' import Input from '../compone...
import random import numpy as np import torch import matplotlib.pyplot as plt from ch5.enc_dec.model import EncoderDecoder from ch5.enc_dec.ts import generate_ts from ch5.training_datasets import sliding_window seed = 1 random.seed(seed) np.random.seed(seed) torch.manual_seed(seed) # synthetic time series length ts_l...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 * Changes may cause incorrect behavior and will be lost if the code is * regenerated....
import NextApp from "next/app"; import React from "react"; import { ThemeProvider as MuiThemeProvider } from "@material-ui/core/styles"; import CssBaseline from "@material-ui/core/CssBaseline"; import { ContextProviders } from "context/ContextProviders"; import { ComponentsProvider } from "@reactioncommerce/components-...
!function(e){e.calendarsPicker.regionalOptions["en-GB"]={renderer:e.calendarsPicker.defaultRenderer,prevText:"Prev",prevStatus:"Show the previous month",prevJumpText:"&lt;&lt;",prevJumpStatus:"Show the previous year",nextText:"Next",nextStatus:"Show the next month",nextJumpText:"&gt;&gt;",nextJumpStatus:"Show the next ...
import test from 'ava' import { sessionStorage as Adapter } from '../src/adapters' test.beforeEach(t => { // mock sessionStorage // keep reference in context t.context = require('./helpers/mock-sessionStorage') }) test.serial('put', async t => { const { put } = Adapter const { sessionStorage } = window ...
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from wechatpy.enterprise.parser import parse_message # NOQA from wechatpy.enterprise.replies import create_reply # NOQA from wechatpy.enterprise.crypto import WeChatCrypto # NOQA from wechatpy.enterprise.client import WeChatClient # N...
# Copyright © 2019 Province of British Columbia # # 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...
/* 001 RPL_WELCOME "Welcome to the Internet Relay Network <nick>!<user>@<host>" - The server sends Replies 001 to 004 to a user upon successful registration. */
import Vue from 'vue'; import flash from '../../flash'; import service from '../services'; import * as types from './mutation_types'; export const redirectToUrl = url => gl.utils.visitUrl(url); export const setInitialData = ({ commit }, data) => commit(types.SET_INITIAL_DATA, data); export const closeDiscardPopup = ...
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Colors from '../constants/colors'; const NumberContainer = props => { return ( <View style={styles.container}> <Text style={styles.number}>{props.children}</Text> </View> ); }; const styles = StyleSheet.create({...
/** * jQuery EasyUI 1.3.6 * * Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved. * * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt * To use it on other terms please contact us at info@jeasyui.com * */ (function($){ $.parser={auto:true,onComplete:function(_1){ },plug...
import PropTypes from 'prop-types'; import React from 'react'; import cn from 'classnames'; import { prefix, bsClass, splitBsProps } from './utils/bootstrapUtils'; const contextTypes = { $bs_panel: PropTypes.shape({ bsClass: PropTypes.string }) }; class PanelFooter extends React.Component { render() { l...
module.exports = { siteMetadata: { title: `danhannigan.dev`, author: `Dan Hannigan`, description: `Personal site of Front End Developer & Designer Dan Hannigan`, siteUrl: `https://danhannigan.dev`, social: { twitter: `danhannigan`, }, }, plugins: [ `gatsby-plugin-styled-component...
import React from 'react'; import { View, Text, Image, StyleSheet, TouchableOpacity } from 'react-native'; import { male, female, more } from '../styles/icons'; import { useNavigation } from '@react-navigation/native'; export default function AnimalAdoptionRequest({ request }) { const navigation = useNavigation(); ...
#!/usr/bin/env node const SuperCLI = require('super-cli') const commands = require('./commands') let cli = new SuperCLI({ name: 'Specla' }) global.cli = cli for (let command in commands) { cli.on(command, commands[command]) } cli.on('*', (arg) => { if (cli.option('-v', '--version')) { return cli.run('ver...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.OrderDetail import OrderDetail class AlipayTradeMergePrecreateModel(object): def __init__(self): self._order_details = None self._out_merge_no = None ...
var assert = require('chai').assert; var Card = require('../src/js/card.js'); describe('Card', function () { var c = new Card({ title: 'Sample title', front: 'Sample Front', back: 'Sample Back' }); describe('init', function () { it('should have a front and back', function () { assert.typeOf...
# Ignoring some linting rules in tests # pylint: disable=missing-docstring import pytest from bingo.chromosomes.crossover import Crossover from bingo.chromosomes.mutation import Mutation from bingo.chromosomes.generator import Generator def test_base_crossover_instantiation_fails(): with pytest.raises(TypeError)...
const common = require('../lib/http-proxy/common'); const url = require('url'); const expect = require('expect.js'); describe('lib/http-proxy/common.js', () => { describe('#setupOutgoing', () => { it('should setup the correct headers', () => { const outgoing = {}; common.setupOutgoing(outgoing, ...
''' Created on 07.06.2011 @author: Sergey This file contains definition for many constant ''' meta_ns = 'meta' mml_ns = 'mml' bio_ns = 'bio' cml_ns = 'cml' net_ns = 'net' xsi_ns= 'xsi' schemaLocation_ns = 'schemaLocation'
"""Const for Velbus.""" from typing import Final from homeassistant.components.climate.const import ( PRESET_AWAY, PRESET_COMFORT, PRESET_ECO, PRESET_HOME, ) DOMAIN: Final = "velbus" CONF_INTERFACE: Final = "interface" CONF_MEMO_TEXT: Final = "memo_text" SERVICE_SCAN: Final = "scan" SERVICE_SYNC: Fi...
(function() { Sidebar.prototype.addIBM2CloudPalette = function() { let baseURL = (new RegExp(/^.*\//)).exec(window.location.href)[0]; let sidebarURL = baseURL + 'js/diagramly/sidebar/ibm/IBM2MondrianCloud.json'; let sideBarConfig = `{"id": "ibm2cloud", "name": "IBM" , "url": "${sidebarURL}" }`; this.ad...
import { arrayUnique , isBooleanAttr } from '../utils' export function handleAttributeBindingDirective(component, el, attrName, expression, extraVars, attrType) { var value = component.evaluateReturnExpression(el, expression, extraVars) if (attrName === 'value') { // If nested model key is undefined, ...
var struct_i_t_u_background = [ [ "graidentColor", "struct_i_t_u_background.html#a6748a8ffde4b9a3d5025e036d673e225", null ], [ "graidentMode", "struct_i_t_u_background.html#aef0a44fb8c2235fffa5fe4795f458c99", null ], [ "icon", "struct_i_t_u_background.html#a8171d122f85ec5e9cee401f5a5cab366", null ], [ "...
/** @license * Copyright 2016 Google LLC * SPDX-License-Identifier: Apache-2.0 */ describe('UI', () => { const UiUtils = shaka.test.UiUtils; const Util = shaka.test.Util; const returnManifest = (manifest) => () => new shaka.test.FakeManifestParser(manifest); /** @type {shaka.Player} */ let player; ...
/*global QUnit, sinon */ sap.ui.define([ "sap/ui/layout/cssgrid/CSSGrid", "sap/ui/core/HTML", "sap/ui/layout/cssgrid/GridItemLayoutData", "sap/ui/layout/cssgrid/GridLayoutBase", "sap/ui/layout/cssgrid/GridResponsiveLayout", "sap/ui/layout/cssgrid/GridLayoutDelegate", "sap/ui/Device", "sap/ui/core/Core", "sap/...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
from os import path import autofit as af import autogalaxy as ag from autogalaxy.interferometer.model.result import ResultInterferometer from autogalaxy.mock.mock import MockSearch directory = path.dirname(path.realpath(__file__)) class TestAnalysisInterferometer: def test__make_result__result_...
let arrayObj = [1,2,3] let object1 = {obj:1} console.log("arrayObj" ,typeof (arrayObj)) console.log("object1", typeof (object1)) let item1 = new Object() let item2 = {} console.log("item1" ,typeof (item1)) console.log("item2", typeof(item2)) //object oluşturmak let item3 = {} let item4 = new Object() console.log("...
// Quick Take import { strict as assert } from "assert"; import { extract } from "../dist/string-extract-class-names.esm.js"; // extracts classes and/or id's const str = "div#brambles.nushes#croodles"; const { res, ranges } = extract(str); assert.deepEqual(res, ["#brambles", ".nushes", "#croodles"]); assert.deepEqual...
export default function NotFound() { return 'what are u doing'; }
""" Tests that sequence handling utilities work. """ __author__ = "Bharath Ramsundar" __license__ = "MIT" import unittest import os import numpy as np import deepchem as dc LETTERS = "XYZ" class TestSeq(unittest.TestCase): """ Tests sequence handling utilities. """ def setUp(self): super(TestSeq, sel...
jQuery(function ($) { $(document).on('click', 'input[type="checkbox"][data-readonly="true"]', function (event) { event.preventDefault() event.stopPropagation() }) })
/* * * PostsPage * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { Link } from 'react-router'; import styled from 'styled-components'; import { createStructuredSelector } from 'reselect'; import Loader from 'react-loader'; import H2 f...
var contactos_service = angular.module('app.service.hilo', ['app.constants']); contactos_service.service('HiloService', ['$http', 'WS_URL', function($http, WS_URL) { delete $http.defaults.headers.common['X-Requested-With']; this.index = function(params){ return $http.get(WS_URL+'hilo'); }; t...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const Dotenv = require('dotenv-webpack'); module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'...
from django import forms from .models import Post from django_summernote.widgets import SummernoteWidget class PostForm(forms.ModelForm): class Meta: model = Post fields = ['title', 'content'] widgets = { 'content': SummernoteWidget(), }
import React from 'react'; import {connect} from 'react-redux'; import { Accordion, AccordionSummary, Typography, AccordionDetails, List, ListItem, ListItemText, TextField, Fab, IconButton, Grid, Table, TableBody, TableRow, TableCell, FormControlLabel, Switch, Divider, Tooltip, } f...
import React, { Component } from 'react'; import './App.css'; import Pokegame from './Pokegame'; function App() { return ( <div className="App"> <Pokegame /> </div> ); } export default App;
/*! For license information please see compare-versions.test.js.LICENSE.txt */ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,ge...
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7749],{41787:function(e,t,r){r.d(t,{E:function(){return i},s:function(){return o}});var n=r(56007);function i(e,t){return e.every((function(e){var r=t.states[e.entity]?t.states[e.entity].state:n.nZ;return e.state...
import touchtechnology.admin from django.template import Library register = Library() @register.inclusion_tag('touchtechnology/admin/_version.html', takes_context=True) def version_string(context): component = context.get('component') if component is not None: return {'version...
import React from 'react'; import { Router, Route, IndexRoute, NotFoundRoute, Link, hashHistory } from 'react-router'; import Root from './components/Root'; import Dashboard from './components/Dashboard'; import TestCases from './components/Dashboard/TestCases'; import Setting from './components/Dashboard/Setting'; //...
import createSvgIcon from './utils/createSvgIcon.js'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z" }), 'MovieSharp');
/** * @license Apache-2.0 * * Copyright (c) 2020 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...
dataset_type = 'CocoDataset' data_root = 'data/coco/' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', with_bbox=True), dict( type='Resize', img_scale=[(1333, 480...
import httpStatusCodes from './http_status'; /** * Polling utility for handling realtime updates. * Service for vue resouce and method need to be provided as props * * @example * new Poll({ * resource: resource, * method: 'name', * data: {page: 1, scope: 'all'}, // optional * successCallback: () => {}...
# userid: berkj # Email: jacob.berk@vanderbilt.edu # Assignment Number: assignment1 # Honor statement: I pledge on my honor that I have neither given nor # received unauthorized aid on this assignment. # Exercise 9: # Import the datadotworld module as dw and the sys module import datadotworld as dw import sys # Impo...
//This is the global array that will store the CSV file that the data will be stored in once the survey is complete global.shared = { surveyArray: [], layout: [], survey: [], createLayout: [], areadata: [] } module.exports = global;
"use strict"; const BbPromise = require('bluebird'); const path = require('path'); const slugify = require('slugify'); const chalk = require('chalk'); const semver = require('semver'); const Runtimes = require('./runtimes'); const LayersService = require('./aws/LayersService'); const BucketService = require('./...
import React, { Component } from 'react'; import { Grid, Header, Segment } from 'semantic-ui-react'; import { translate } from 'react-i18next'; import Branding from 'components/Shared/Branding'; import SideNav from 'components/Shared/SideNav'; import NewForm from 'components/Dataset/NewForm'; class DatasetNew extends...
"""Module :mod:`perslay.utils` provide utils functions.""" # Authors: Mathieu Carriere <mathieu.carriere3@gmail.com> # Theo Lacombe <theo.lacombe@inria.fr> # Martin Royer <martin.royer@inria.fr> # License: MIT from __future__ import absolute_import from __future__ import division from __future__ impo...
import { Children } from 'react'; import { useRouter } from './router-context'; import PropTypes from 'prop-types'; import matchPath from './match-path'; const Switch = ({ children }) => { const { location } = useRouter(); return Children.toArray(children).find(child => { return matchPath(location.pathname, c...
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
/* global BigInt */ const Command = require('../../structures/Command'); const SubMenu = require('../../structures/SubMenu'); const MultiSelect = require('../../structures/MultiSelect'); const WebhookFilters = require('../../structures/WebhookFilters'); const GenericPrompt = require('../../structures/GenericPrompt'); c...
/* * depends on 'test1' */ define(['test1'], function (test1) { return test1; });
Logscape.Workspace.OpenWorkspace = function (a, callback, webSocket) { var widget = a var loadCallback = callback var socket = webSocket var content = "<table id='openWorkspaceTable' style='width:100%;'><thead style='width:200px;'><tr><th style='width:200px;'>Workspaces</th></tr></thead><tbody></tbody>...
from typing import Hashable, Callable from dispatchtools._abcs import Dispatcher from dispatchtools.registry import Registry class directdispatch(Dispatcher): # noqa: N801 """The simplest kind of dispatch based on exact values. Example: >>> from dispatchtools import directdispatch >>> ...
const mongoose = require("mongoose"); //Advertiesment model const PaymentSchema = new mongoose.Schema({ type_id:{ type: String, }, user_email: { type: String, }, user_name: { type: String, }, payment_date:{ type: String, }, date_event_occur:{ type: String, }, user_id:{ ...
from PyQt5.QtWidgets import QWidget, QLabel, QGridLayout from PyQt5.QtGui import QFont from PyQt5.QtCore import pyqtSignal, pyqtSlot from .main_panel import MainPanel from fitness_tracker.homepage.header import Header from fitness_tracker.homepage.side_panel import SidePanel class Profile(QWidget): display_layout_si...
import obejectViewer from './objectViewer'; import valueViewer from './valueViewer'; import TYPE from './type'; let hconsole = { onConsole: function () {} }; function hackConsole () { // 定义一个输出运行js结果的函数 // window.console.tc = window.console.log; // window.console.html = window.console.log; TYPE.list...
// Global Status var RUNNING = false; var HOURS = 0; // Extend buttons to be enabled & disabled jQuery.fn.extend({ disable: function(state) { return this.each(function() { var $this = $(this); $this.toggleClass('disabled', state); }); } }); // // Update Progress bar &...
""" Log using `mlflow <https://mlflow.org>'_ .. code-block:: python from pytorch_lightning.logging import MLFlowLogger mlf_logger = MLFlowLogger( experiment_name="default", tracking_uri="file:/." ) trainer = Trainer(logger=mlf_logger) Use the logger anywhere in you LightningModule as...
'use strict'; module.exports = (srcPath) => { const B = require(srcPath + 'Broadcast'); return { listeners: { questStart: state => function (quest) { B.sayAt(this, `\r\n<bold><yellow>Задание начато: ${quest.config.title}!</yellow></bold>`); if (quest.config.description) { B.sa...