text
stringlengths
3
1.05M
const CustomError = require("../extensions/custom-error"); module.exports = function createDreamTeam(members) { if (Array.isArray(members)) { const nameTeam = members.reduce((acc, elem) => { return typeof elem === "string" ? acc + elem.trim().slice(0, 1).toUpperCase() : acc; } , "...
import React, { PureComponent } from 'react'; import { Row, Col, Table, Form, Icon } from 'antd'; import styles from './index.less'; /* const FormItem = Form.Item; const { TextArea } = Input; */ @Form.create() export default class Modify extends PureComponent { /* state = { visible: false, } */ // 显示弹出框 /...
# -*- coding: UTF-8 -*- import time import re import asana from dotty import helpers DOT = '•' # dots show up either as 'foo bar | •••' or as 'foo bar | • x 12' DOTS_RE = re.compile(r'^.+ \| ('+DOT+'+|'+DOT+' x \d+)$') DAY = 24 * 60 * 60 WEEK = 7 * DAY WEEKLY_DOTS = 5 * DAY DAILY_DOTS = DAY MAX_DOTS = 5 class Boar...
'use strict'; const { arg } = require('nexus'); module.exports = ({ strapi }) => { const { PUBLICATION_STATE_TYPE_NAME } = strapi.plugin('graphql').service('constants'); return arg({ type: PUBLICATION_STATE_TYPE_NAME, default: 'live', }); };
var Migrations = artifacts.require("./Student.sol"); module.exports = function(deployer) { deployer.deploy(Migrations); };
import has from 'lodash/has'; // @flow import isString from 'lodash/isString'; import { RequestStates } from 'redux-reqseq'; import type { RequestState } from 'redux-reqseq'; import { isDefined } from './LangUtils'; const requestIsPending = (requestState :RequestState | void) :boolean => requestState === RequestState...
import pyxel import plane import random import tunnel import math import music class Copter: def __init__(self): pyxel.init(240, 136, caption = "Copter", fps = 60, scale = 3) pyxel.image(0).load(0, 0, "copter_8x16-sheet.png") self.reset() pyxel.run(self.update, self.draw) def r...
/* FizzBuzz https://medium.freecodecamp.org/a-software-engineering-survival-guide-fe3eafb47166 https://medium.freecodecamp.org/coding-interviews-for-dummies-5e048933b82b https://stackoverflow.com/a/17623252 Write a program that prints the numbers from 1 to 100. For multiples of three print 'Fizz' instead of the number....
'use strict'; const { messages, ruleName } = require('..'); // Sanity checks testRule({ ruleName, config: [0], accept: [ { code: ':root { --foo: 1px; }', description: 'custom property in root', }, { code: 'html { --foo: 1px; }', description: 'custom property in selector', }, { code: ':roo...
from __future__ import annotations import sys from collections import OrderedDict from typing import Dict, Union, Any, TYPE_CHECKING import numpy as np from pyNastran.femutils.utils import pivot_table from pyNastran.op2.tables.oes_stressStrain.real.oes_solids import RealSolidArray from pyNastran.op2.tables.oes_stress...
import React from 'react'; const Categories = ({categories, filterItems}) => { return ( <div className='btn-container'> <div className="btn_container_box"> <i className="fas fa-chevron-circle-right"></i> <button className='filter-btn' onClick={()=> filterItems('A...
import React from 'react' import Container from '@material-ui/core/Container' import Typography from '@material-ui/core/Typography' import Box from '@material-ui/core/Box' import ProTip from './ProTip' import Link from '@material-ui/core/Link' function MadeWithLove() { return ( <Typography variant="body2" color=...
$(document).on('click', '.panel-heading span.icon_minim', function (e) { var $this = $(this); if (!$this.hasClass('panel-collapsed')) { $this.parents('.panel').find('.panel-body').slideUp(); $this.addClass('panel-collapsed'); $this.removeClass('glyphicon-minus').addClass('glyphicon-plus'); } else { $this.par...
import subprocess import time import shlex import re import atexit import platform import tempfile import threading import os import sys def pci_records(): records = [] command = shlex.split('lspci -vmm') output = subprocess.check_output(command).decode() for devices in output.strip().split("\n\n"): ...
import styled from 'styled-components'; import { Link } from 'react-router-dom'; export const FooterContainer = styled.footer` background-color: #101522; `; export const FooterWrap = styled.div` padding: 48px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; max-...
"use strict"; exports.__esModule = true; exports.ComprehensionExpression = ComprehensionExpression; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj...
// CodeMirrror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // ...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; var clientsLogSchema = new Schema({ uniqueID: String, ip: String, email: { type: String, unique: true }, method: String, status: Number, path: { type: String, required: true }, enteredAt: Date, exitedAt: Date, }); var ClientsLog = mongoose....
import { TxButton, TxGroupButton } from './TxButton' import DeveloperConsole from './DeveloperConsole' export { TxButton, TxGroupButton, DeveloperConsole }
export default function shouldEnable() { // We only enable this extension on login // No point of filtering files for public access return document.querySelector(".user-nav") !== null; }
/** * # RequirementsView widget for nodeGame * Copyright(c) 2021 Stefano Balietti * MIT Licensed * * Shows requirements settings * * www.nodegame.org * --- */ (function(node) { "use strict"; node.widgets.register('RequirementsView', RequirementsView); // ## Meta-data RequirementsView.versio...
'use strict'; var GetIntrinsic = require('../../GetIntrinsic'); var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); if ($defineProperty) { try { $defineProperty({}, 'a', { value: 1 }); } catch (e) { // IE 8 has a broken defineProperty $defineProperty = null; } } module.exports = function d...
import React from 'react'; import {Text, StyleSheet} from 'react-native'; import Installment from './Installment'; const Installments = ({installments}) => { return ( <> <Text> Hi </Text> {installments.map(installment => ( <Installment key={installment.id} installment={installment} /> )...
// Copyright 2014 the V8 project authors. All rights reserved. // AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY // Flags: --allow-natives-syntax --harmony var _holder = new Map(); %MapGetSize(_holder);
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import mapboxgl from 'mapbox-gl'; import 'mapbox-gl/dist/mapbox-gl.css'; export const MapContext = React.createContext( { map: null, } ); export const withMap = ( NewComponwnt ) => () => ( <MapContext.Consumer> { // eslint-dis...
def resolve(): ''' code here ''' import sys N = int(input()) adjacency_list = [[int(item) for item in input().split()] for _ in range(N)] adjacency_mat = [[0 for _ in range(N)] for _ in range(N)] for i, adjacency in enumerate(adjacency_list): if adjacency[1] != 0: ...
import React, { useState, useEffect } from "react" import { css } from "@emotion/core" import { bp } from "./bp" import { NavLink } from "./NavLink" import { supportsPassive } from "./supportsPassive" export const MainHeader = ({ data, t }) => { const [isOpen, setOpen] = useState(false) const close = () => setOpen...
import fs from 'fs-extra' import path from 'path' import semver from 'semver' import require_hacker from 'require-hacker' import serialize from '../tools/serialize-javascript' import { exists, clone, replace_all, starts_with, last } from '../helpers' import { alias_hook, uniform_path, is...
Component({ externalClasses: ['custom-class'], options: { multipleSlots: true }, properties: { show: { type: [Boolean, String], value: false }, position: { type: String, value: 'bottom' }, maskHide: { type: [Boolean, String], observer(n...
/////////////////////////////////////////////////////////////////////////// // Copyright (c) 2013 Esri. 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:...
import Typography from "./Typography" import Box from '@material-ui/core/Box' import Avatar from '@material-ui/core/Avatar' import Grid from '@material-ui/core/Grid' import { useSettings } from "../contexts" import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ ...
# coding=utf-8 # -------------------------------------------------------------------------- # 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. # Changes ...
import time from .db import DataBaseClient from .index import DocumentIndex class DocumentRetriever: def __init__(self, index_path, database_path, nltk_data_path): self.db_client = DataBaseClient(database_path) self.document_index = DocumentIndex(index_path, self.db_client, ...
# Author: Mainak Jas <mainak@neuro.hut.fi> # License: BSD (3-clause) from ..externals.six.moves import queue import time import socket from ..externals.six.moves import socketserver import threading import numpy as np from ..utils import logger, verbose class _ThreadedTCPServer(socketserver.ThreadingMixIn, sockets...
import torch import json import msgpack import time import logging import syft as sy import numpy as np from abc import ABC, abstractmethod from .. import utils from ..frameworks.torch import utils as torch_utils from ..frameworks import encode from ..frameworks import encode as syft_encoder_router class BaseWorker(...
import Vue from 'vue'; import VueApollo from 'vue-apollo'; import PipelineNotification from './components/notification/pipeline_notification.vue'; Vue.use(VueApollo); export const createPipelineNotificationApp = (elSelector, apolloProvider) => { const el = document.querySelector(elSelector); if (!el) { retur...
# allows specifying explicit variable types from typing import Any, Dict, Optional, Text def find_duplicates(_list): """Find duplicate items in a list """ return set([x for x in _list if _list.count(x) > 1]) def dict2list(dictionary): if type(dictionary) == list: return dictionary elif ty...
from django.contrib.auth import get_user_model from django.test import TestCase, Client from django.urls import reverse from check_methods_for_tests import check_response_200_ok from ems_admin.models import EMSPermission from ems_admin.views import manage_users_page, view_users_page, edit_user_page, manage_user_permis...
import React, { useEffect, useState,useContext } from "react"; import useForm from "../../hooks/form"; import { v4 as uuid } from "uuid"; import List from "../list/list"; import "./todo.css"; import Form from "../form/Form.js"; import { SettingsContext } from "../../context/contaxt"; const ToDo = () => { const sett...
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
import argparse from typing import TextIO from commands import * from constants import * """ Program to automate the process of adding and removing software packages. This program generates an output text in response to an input file containing a set of instructions """ __author__ = "Jorge Arévalo" __version__ = "0....
import asyncio import pytest from kopf._cogs.aiokits.aiovalues import Container async def test_empty_by_default(): container = Container() with pytest.raises(asyncio.TimeoutError): await asyncio.wait_for(container.wait(), timeout=0.1) async def test_does_not_wake_up_when_reset(event_loop, timer): ...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.expects=t():e.expects=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].cal...
import _regeneratorRuntime from "@babel/runtime/regenerator"; import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; /** * this plugin adds the RxCollection.syncGraphQl()-function to rxdb * you can use it to sync collections with remote graphql endpoint */ import { BehaviorSubject, Subject } from ...
/*jslint indent: 2, unparam: true, plusplus: true, nomen: true */ /*global window: false, Db: false, XMLHttpRequest: false, WebSocket: false, chrome: false, btoa: false, localStorage:false, document: false, Audio: false, Bugsnag: false */ "use strict"; var TogglButton, openWindowsCount = 0; Bugsnag.apiKey = "7419717b2...
// accepted Validation.Rules.accepted = function(field, params, database, getAlias, message) { checkNoParams( 'accepted', field, params ); var messageTemplate = determineMessage( 'accepted', message ); var acceptable = Validation.Rules.accepted.acceptable; return function(value, model, chain) { var valu...
var BindVertexArray = require('../../utils/vao/BindVertexArray'); var CreateProgram = require('../../utils/shader/CreateProgram'); var CreateShader = require('../../utils/shader/CreateShader'); var CreateBuffer = require('../../utils/buffer/CreateBuffer'); var CreateAttribDesc = require('../../utils/vao/CreateAttribDes...
import abc import math from ... import constants class Rule(abc.ABC): def __init__(self, failure_bin, **kwargs): self.failure_bin = failure_bin self.enabled = kwargs.get("enabled", True) self.threshold = kwargs.get("threshold", float("nan")) self.rule_name = kwargs.get("rule_name"...
// https://www.pluralsight.com/guides/using-d3.js-inside-a-react-app import React from 'react'; import * as d3 from 'd3'; export const useD3 = (renderChartFn, dependencies) => { const ref = React.useRef(); React.useEffect(() => { renderChartFn(d3.select(ref.current)); return () => {}; },...
$(function() { var $element = $('#fizzbuzz'); var answer = ''; for (var i = 1; i <= 100; i++) { if((i % 3 === 0) && (i % 5 === 0)) { answer += 'FizzBuzz'+ '</br>'; console.log('FizzBuzz'); $element.html(answer); } else if(i % 3 === 0) { console.log('Fizz'); answer += 'Fizz ' + '</br>'; $...
import queue N, Q = map(int, input().split()) G = [[] for i in range(N)] for i in range(N - 1): a, b = map(int, input().split()) G[a - 1].append(b - 1) G[b - 1].append(a - 1) que = queue.Queue() color = [-1] * N color[0] = 0 que.put(0) while not que.empty(): t = que.get() for i in G[t]: i...
import numpy as np import matplotlib.pyplot as plt from matplotlib import cm, colors from mpl_toolkits.basemap import Basemap import pyroms import pyroms_toolbox def twoDview(var, tindex, grid, filename=None, \ cmin=None, cmax=None, clev=None, fill=False, \ contour=False, d=4, range=None, fts=Non...
export const SET_CURRENT_USER = "set_current_user"; export const GET_PRODUCTS_BY_SELL = "get_products_by_sell"; export const GET_PRODUCTS_BY_ARRIVAL = "get_products_by_arrival"; export const GET_COLORS = "get_colors"; export const GET_CATEGORIES = "get_categories"; export const ADD_COLOR = "add_color"; export const ADD...
import PageObject, { alias, collection, hasClass, triggerable } from 'ember-classy-page-object'; import { findElement } from 'ember-classy-page-object/extend'; import { click } from 'ember-native-dom-helpers'; import { mouseDown, mouseMove, mouseUp } from '../../helpers/mouse'; import { getScale } from '../../helpers/...
# -*- coding: utf-8 -*- import json,smtplib import base64 import os from datetime import datetime import tempfile import shutil from flask import Blueprint from flask import request from flask import abort from flask import current_app from flask import url_for from flask import send_file from flask import render_templ...
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.provide('frappe.timeline'); frappe.provide('frappe.email'); frappe.separator_element = '<div>---</div>'; frappe.ui.form.Timeline = class Timeline { constructor(opts) { $.extend(this, opts); this.make(); ...
export default /* glsl */` vec3 getTangent() { return normalize(dNormalMatrix * vertex_tangent.xyz); } vec3 getBinormal() { return cross(vNormalW, vTangentW) * vertex_tangent.w; } vec3 getObjectSpaceUp() { return normalize(dNormalMatrix * vec3(0, 1, 0)); } `;
const disableCoins = [ 'aby', 'vot', 'mac', 'bdl', 'axe', // no servers 'mzc', // no servers 'zet', // no servers 'jbs', // no servers 'grs', 'wc', // needs kv edit 'xwc', // needs kv edit 'put', // needs kv edit 'ecn', // needs kv edit 'smart', // wrong address 'ac', // awaiting funds '...
import {Microphone} from "./microphone.js" import {Streamer} from "./streamer.js" let recorder = new Microphone() let streamer = new Streamer() async function record(){ let socket = await streamer.open() socket.onmessage = recorder.receiver await recorder.start(socket) console.log('record started') } ...
""" Run using: python -m unittest TestMatrixFactorizationQuantum.py """ import numpy as np import unittest from pyQBTNs import QBTNs class TestMatrixFactorizationQuantum(unittest.TestCase): def test_rank_2_Quantum_Annealing(self): qbtns = QBTNs(factorization_method="Matrix_Factorization", solver_method="...
var grunt = require('grunt'); var stringify = require('stringify'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-electron'); ...
class Notification { success() { new Noty({ type: 'success', layout: 'topRight', text: 'Successfully Done !', timeout: 1000, }).show(); } alert() { new Noty({ type: 'alert', layout: 'topRight', text...
function double(new) { return x * 2; } var x = 2; double(x);
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.down = exports.up = void 0; async function up(knex) { return knex.schema .createTable('users', table => { table.increments('id').primary(); table.string('name').notNullable(); table.string('avatar')....
import React from 'react'; import PropTypes from 'prop-types'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableRow from '@material-ui/core/TableRow'; import TableCell from '@material-ui/core/TableCell'; import Checkbox from '@material-ui/core/Checkbox'; im...
""" Script used for MPLS L3VPN deployment using Nornir """ from nornir import InitNornir from nornir_scrapli.tasks import send_configs from nornir_jinja2.plugins.tasks import template_file from nornir_napalm.plugins.tasks import napalm_get from nornir_utils.plugins.tasks.files import write_file from nornir_utils.plugi...
import {useNavigation} from '@react-navigation/core'; import {isEmpty} from 'lodash'; import React, {memo, useEffect, useState} from 'react'; import { FlatList, ImageBackground, StyleSheet, Text, TouchableOpacity, } from 'react-native'; import colors from '../../Constants/colors'; import {width} from '../../C...
import arq from managers.global_manager import ( GlobalManager, update_board_job, ) import constants from utils import utils async def startup(ctx): utils.logging.info("Starting new worker...") # dedicate a manager for the worker ctx["cursor"] = utils.get_time() ctx["manager"] = GlobalManager() ...
module.exports = function not (value) { return !value }
import styled from 'styled-components/native' import { View } from 'react-native' import { List, Text, Surface } from 'react-native-paper' import theme from '../utils/theme' export const Container = styled(Surface)` elevation: 4; ` export const Accordion = styled(List.Accordion)` background-color: ${(props) => ...
import React, {Component, lazy, Suspense} from 'react'; import LazyLoader from '../LazyLoader'; import PropTypes from 'prop-types'; const RealIgv = lazy(LazyLoader.igv); /** * The Igv component is an interactive genome visualization component * developed by the Integrative Genomics Viewer (IGV) team. It uses an * e...
( function () { const _taskCache = new WeakMap(); class Rhino3dmLoader extends THREE.Loader { constructor( manager ) { super( manager ); this.libraryPath = ''; this.libraryPending = null; this.libraryBinary = null; this.libraryConfig = {}; this.url = ''; this.workerLimit = 4; this.worker...
if (typeof Roblox === 'undefined') { Roblox = {}; } if (typeof Roblox.Admin === 'undefined') { Roblox.Admin = {}; } Roblox.Admin.Games_BadgeAssetAward = (function () { //event binding $(function () { $('#AddButton').click(function () { CreateNew(); return false; }); $('#viewByID').click(function () { ...
({ //SwitchingStyleView.js "common":"Common", "widgetSpecific":"Widget-specific", "events":"Events", "layout":"Layout", "showMinMax":"show min/max", "paddingMargins":"Padding/Margins", "showtrbl":"show t/r/b/l", "background":"Background", "border":"Border", "showDetails":"show details", "fontsAn...
define(function () { function Select (bezl, employee) { // Also update the actual team array var teamUpdated = false; for (var i = 0; i < bezl.vars.team.length; i++) { if (bezl.vars.team[i].key == employee.key) { teamUpdated = true; var $...
# -*- coding: utf-8 -*- import vcr import pytest from nse_scraper.nse_api import NSE nse_vcr = vcr.VCR( filter_headers=[ 'Authorization', ] ) @pytest.fixture def nse_api(): return NSE()
/******/ (() => { // webpackBootstrap /******/ "use strict"; /*!**********************************************************************!*\ !*** ../demo4/src/js/pages/crud/datatables/extensions/rowreorder.js ***! \**********************************************************************/ var KTDatatablesExtensionsRowr...
export class StyleSheet { constructor() { this.top = null; this.left = null; this.right = null; this.bottom = null; this.height = null; this.width = null; } } export const STYLE_ATTRIBUTE_NAME_LIST = [ 'top', 'left', 'right', 'bottom', 'height', 'width' ];
import os import random import numpy as np MACHINE_N = 100 TIMESTEPS = 2000 SELF_PULL_INDEX = 0 SELF_REWARD_INDEX = 1 OPP_PULL_INDEX = 2 history = np.zeros((MACHINE_N, 3, TIMESTEPS)) history[:, :, :] = np.nan def set_seed(my_seed = 42): os.environ['PYTHONHASHSEED'] = str(my_seed) random.seed(my_seed) n...
import tensorflow as tf from onnx_tf.common.tf_helper import tf_shape class GatherAndScatterMixin(object): @classmethod def chk_idx_out_of_bounds(cls, data, indices, batch_dims=0): """ Check indices out of bounds for ScatterND and GatherND In Tensorflow GPU version, if an out of bound index is found, ...
module.exports = function(hljs) { var backtickEscape = { begin: '`[\\s\\S]', relevance: 0 }; var VAR = { className: 'variable', variants: [ {begin: /\$[\w\d][\w\d_:]*/} ] }; var LITERAL = { className: 'literal', begin: /\$(null|true|false)\b/ }; var QUOTE_STRING = { c...
""" Test the hashing module. """ # Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org> # Copyright (c) 2009 Gael Varoquaux # License: BSD Style, 3 clauses. import time import hashlib import sys import gc import io import collections import itertools import pickle import random from decimal import Decima...
import * as singleSpa from '../single-spa.js' import { mountParcel } from '../parcels/mount-parcel.js'; export function getProps(appOrParcel) { const result = { ...appOrParcel.customProps, name: appOrParcel.name, mountParcel: mountParcel.bind(appOrParcel), singleSpa }; if (appOrParcel.unmountThi...
import { onValue, ref} from "firebase/database" import { useContext } from "react" import { useEffect, useState } from "react" import { View, ImageBackground, FlatList, TouchableOpacity, Text } from "react-native" import { Avatar, Icon, ListItem } from "react-native-elements" import Image from '../../assets/background....
/* * jsTree 1.0-rc1 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Dual licensed under the MIT and GPL licenses (same as jQuery): * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Date: 2010-07-01 10:51:11 +0300 (четв, 01...
''' Database structure for NGShare ''' import datetime import hashlib from sqlalchemy import ( Table, Column, INTEGER, TEXT, TIMESTAMP, BOOLEAN, ForeignKey, ) from sqlalchemy.orm import relationship, backref from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy....
# --------------------------------------------------------------------- # Vendor: Eltex # OS: LTE # --------------------------------------------------------------------- # Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NOC...
# -*- coding: utf-8 -*- """ A collection of utilities for canonicalizing and inspecting graphs. Among other things, they solve of the problem of deterministic bnode comparisons. Warning: the time to canonicalize bnodes may increase exponentially on degenerate larger graphs. Use with care! Example of comparing two gr...
({ 'bold': 'Tučné písmo', 'copy': 'Kopírovať', 'cut': 'Vystrihnúť', 'delete': 'Vymazať', 'indent': 'Odsadiť', 'insertHorizontalRule': 'Horizontálna čiara', 'insertOrderedList': 'Číslovaný zoznam', 'insertUnorderedList': 'Zoznam s odrážkami', 'italic': 'Kurzíva', 'justifyCenter': 'Zarovnať na stred', 'justify...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cc62548a"],{"62ad":function(e,t,n){"use strict";n("4160"),n("caad"),n("13d5"),n("45fc"),n("4ec9"),n("a9e3"),n("b64b"),n("d3b7"),n("ac1f"),n("3ca3"),n("5319"),n("2ca0"),n("159b"),n("ddb0");var r=n("ade3"),c=n("5530"),a=(n("4b85"),n("a026")),o=n("d9f7"),u=...
import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { getUidStr } from '../utils/uid' import { tableClass } from './styles' import Sorter from './Sorter' import CheckboxAll from './CheckboxAll' import { getParent } from '../utils/dom/element' import...
import React from "react" import {makeStyles} from "@material-ui/core/styles" import useScrollTrigger from "@material-ui/core/useScrollTrigger" import Fab from "@material-ui/core/Fab" import KeyboardArrowUpIcon from "@material-ui/icons/KeyboardArrowUp" import Zoom from "@material-ui/core/Zoom" const useStyles = makeSt...
importPackage(Packages.il.ac.bgu.cs.bp.bpjs.beresheet); //----------------------------------------------- //bp.log.setLevel('Off') const AnyStrOn = bp.EventSet('AnyStrOn', e => e.name.startsWith('strOn')) const AnyThrusterOn = bp.EventSet('AnyThrusterOn', e => e.name.startsWith('thrusterOn')) const AnyOpenUpstreamValv...
"use strict"; /** * Copyright (c) 2013-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 directory. ...
/* * OtpPage. * Manages sending the otp to the user */ import React from "react"; import { Pane, Heading, Button, Paragraph, Link, TextInputField } from "evergreen-ui"; import { otpStart } from "./actions"; import { connect } from "react-redux"; import { forgotPasswordEmailStart } from "../ForgotPasswor...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 13 14:04:52 2020 """ import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.path import Path import matplotlib.transforms as transforms from matplotlib import cm import networkx as nx fro...
__version__ = '0.7.2' from typing import List, Optional import torch import torch.nn as nn class CRF(nn.Module): """Conditional random field. This module implements a conditional random field [LMP01]_. The forward computation of this class computes the log likelihood of the given sequence of tags and ...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
// @flow strict import { connectionDefinitions } from '@kiwicom/graphql-utils'; import GraphQLocation from './Location'; const { connectionType: LocationsConnection } = connectionDefinitions({ nodeType: GraphQLocation, }); export default LocationsConnection;