text
stringlengths
3
1.05M
/** * toBeUndefined * * #Realiza a comparação de uma como sendo undefined * #Prefira usar toBeDefined ao invés de not.toBeUndefined para deixar o código de mais compreensão * */ 1 describe("Teste do toBeUndefined", function(){ it("deve demostrar o uso do toBeUndefined", function(){ var n1; ...
from pyrogram import filters from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup from data.models import Chat, Channel from channels_watchbot.utils import add_chat_to_update from ..show_channel import show_channel def register(app): @app.on_callback_query( filters.regex('change_alerts ...
import '../styles/global.css' import "prismjs/themes/prism-tomorrow.css"; import "prismjs/plugins/line-numbers/prism-line-numbers.css"; import * as gtag from '../lib/gtag' import { useRouter } from 'next/router' import { useEffect } from 'react' export default function App({ Component, pageProps }) { const router ...
const process = require("process"); const http = require("http"); var myUrl = process.argv[2]; http.get(myUrl, (res) => { res.on("error", console.error); var rawData = ""; res.setEncoding("utf8"); res.on("data", (data) => (rawData += data)); res.on("end", doThis); function doThis() { console.log(rawData.length...
window.peopleAlsoBoughtJSON = [{"asin":"B09NB27PVM","authors":"Richard J. Hansen","cover":"51n-PAOOUUL","length":"16 hrs and 16 mins","narrators":"Reba Buhr","subHeading":"Books 1-2","title":"Heroic Bunny Saga"},{"asin":"B083F8F66S","authors":"Dennis Vanderkerken, Dakota Krout","cover":"61vzwAkbGkL","length":"12 hrs an...
import graphviz as gv from pycgp.node import InputNode, FunctionNode def to_graph(individual, output_path='individual'): """ visualize graph """ # add input nodes graph = gv.Digraph(format='png') for input_node in individual.input_nodes: graph.node(str(input_node)) # add function nodes ...
import styles from './SectionTitle.module.scss'; const SectionTitle = ({ children }) => { return <h3 className={styles.sectionTitle}>{children}</h3>; }; export default SectionTitle;
import json import logging import re import pytest from datetime import datetime from tests.common.helpers.assertions import pytest_assert from tests.common.utilities import wait_until from tests.ptf_runner import ptf_runner from vnet_constants import CLEANUP_KEY, VXLAN_UDP_SPORT_KEY, VXLAN_UDP_SPORT_MASK_KEY, VXLAN_R...
# Autogenerated, do not edit. All changes will be undone. from typing import List from uuid import UUID from pyhap.characteristic import ( Characteristic, CharacteristicPermission, ) class TargetPosition(Characteristic): @property def characteristic_uuid(self) -> UUID: return UUID('0000007C-...
# Copyright Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
#! /usr/bin/env python3 import os import tensorflow as tf from trainer import Trainer from stable_baselines.common.policies import MlpPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines import PPO2 # ============================================= # # Example configuration parameters...
#Licensed under Apache 2.0 License. #© 2020 Battelle Energy Alliance, LLC #ALL RIGHTS RESERVED #. #Prepared by Battelle Energy Alliance, LLC #Under Contract No. DE-AC07-05ID14517 #With the U. S. Department of Energy #. #NOTICE: This computer software was prepared by Battelle Energy #Alliance, LLC, hereinafter the Cont...
from setuptools import setup, find_packages from lifx_control_panel._constants import VERSION with open("README.md", "r") as f: long_description = f.read() setup( name="lifx_control_panel", version=str(VERSION), description="An open source application for controlling your LIFX brand lights", url=...
import numpy as np import pytest import aesara from aesara.gradient import GradientError from aesara.tensor.basic import cast from aesara.tensor.math import complex, complex_from_polar, imag, real from aesara.tensor.type import cvector, dvector, fmatrix, fvector, imatrix, zvector from tests import unittest_tools as ut...
import dotenv import os global TOKEN global EXTENSIONS global METADATA TOKEN = dotenv.get_key("../.env", "token") EXTENSIONS = [file.replace(".py", "") for file in os.listdir("exts") if not file.startswith("_")] METADATA = { "guild": 789032594456576001, "roles": { "Changelog pings": 789773555792740353...
# Copyright The OpenTelemetry 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 applicable law or agreed to in ...
#!/usr/bin/env python # -*- coding: utf-8 -*- #てすと from control.matlab import * from matplotlib import pyplot as plt from scipy import arange def main(): k=1.0 m=0.1 c=0.1 num = [0, 0,1] den = [m, c, k] sys1 = tf(num, den) print sys1 (y1a, T1a) = impulse(sys1,T = arange(0, 10, 0.01...
OC.L10N.register( "lib", { "Cannot write into \"config\" directory!" : "Das Schreiben in das „config“-Verzeichnis ist nicht möglich!", "This can usually be fixed by giving the webserver write access to the config directory" : "Dies kann normalerweise repariert werden, indem dem Webserver Schreibzugriff ...
// ___FILENAME___ // ___PROJECTNAME___ // // Created by ___FULLUSERNAME___ on ___DATE___. //___COPYRIGHT___ //                          _oo8oo_ //                         o8888888o //                         88" . "88 //                         (| -_- |) //                         0\  =  /0 //                      ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys # noinspection PyUnresolvedReferences import vtkmodules.vtkInteractionStyle # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingOpenGL2 from vtkmodules.vtkCommonColor import vtkColorSeries from vtkmodules.vtkCommonCore import ( vtkLookupTabl...
# # PySNMP MIB module HUAWEI-MP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:35:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
import numbers import warnings from bisect import bisect_right from typing import Any, List, Sequence, Tuple, Union from ignite.engine import CallableEventWithFilter, Engine, Events, EventsList from ignite.handlers.param_scheduler import BaseParamScheduler class StateParamScheduler(BaseParamScheduler): """An abs...
from django.db import models # Create your models here. class Room(models.Model): # Creating Model Data name = models.CharField(max_length=30) status = models.BooleanField(default=True,null=True) class Meta: db_table = "room_room"
import React, { PureComponent } from 'react'; import { Link } from 'react-router-dom'; import { Form, Icon, Input, Button, message } from 'antd'; import http from '../../../utils/Server'; class Retrieve extends PureComponent { handleSubmit = (e) => { e.preventDefault(); this.props.form.validateF...
$(document).ready(function() { var clickMaterias = false; arrayProfs = []; $('#cep').mask('99999-999') getStates(); $('#cep').focusout(function(event) { /* Act on the event */ cep($(this).val()) }); $('#state').on('change', function(event) { /* Act on the event */ $('#city option').remove(); getCiti...
/** * @license Copyright 2020 The Lighthouse 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 applica...
from django.db.models import Sum, Value, Q from django.db.models.functions import Coalesce from api.models.credit_transfer import CreditTransfer from api.models.credit_transfer_content import CreditTransferContent from api.models.credit_transfer_statuses import CreditTransferStatuses def aggregate_credit_transfer_d...
import librosa from libfmp.c6 import compute_local_average import numpy as np def spectral_flux(f_audio: np.ndarray, Fs: int = 22050, feature_rate: int = 50, gamma: float = 10, M_sec: float = 0.1, filter_coeff: np.ndarray = np.s...
#ifndef VECTOR2_H #define VECTOR2_H #include <math.h> #include <string> #include <ostream> namespace muon { namespace math { template <class T> struct Vec2 { T x, y; Vec2(); Vec2(const Vec2& v); Vec2(const T& x, const T& y); Vec2 operator+(const Vec2 &v2) const; Vec2& operator+=(const Vec2 &v2);...
"""Loading context tests.""" from typing import Optional from pytest import raises from yaml import Node from yaml.error import Mark from marshpy.core.errors import ErrorCode, MarshPyValueError from marshpy.core.interfaces import IBaseField, ILoadingContext from marshpy.core.loading_context import LoadingContext from...
import { Table, Tag, Button } from "antd"; import { PlusOutlined } from "@ant-design/icons"; export function TableResults({ data, handleAdd }) { const columns = [ { title: "Codigo", dataIndex: "code", key: "code", render: (text) => <a>{text}</a>, }, { title: "Descripción", ...
#import validators #from rest import Rest from util.rest.rest import Rest from util.filehandler import FileHandler from datetime import datetime import logging logger = logging.getLogger(__name__) class RestSpecial(): api_key = None rest_caller = None def __init__(self): self.rest_caller = Rest() ...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/* * Peripheral register emulation. * * Copyright (c) 2015 Liviu Ionescu. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any lat...
var searchData= [ ['r',['r',['../struct_sphere.html#a01c28b3e24c52c2b82f18dfcb6a64437',1,'Sphere::r()'],['../classvec3.html#a3e5a3835b780146902704d7a7dacb5ae',1,'vec3::r()'],['../struct_ray_tracing_1_1_color.html#a4741af4e671ba0953f0c7de8caa3ee2b',1,'RayTracing::Color::R()']]], ['r2',['r2',['../struct_hit_record.ht...
import os from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) def find_version(*file_paths): with open(os.path.join(here, *file_paths), "r") as f: for line in f: if line.startswith("__version__"): return line.strip().split("=")[1].str...
// import numeral from 'numeral'; // const course = numeral(1000).format('$0,0.00'); // console.log(` test ${course} value`); console.log('test');
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/empty.proto #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto #define PROTOBUF_INCLUDED_google_2fprotobuf_2fempty_2eproto #include <limits> #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PROTOBUF_...
import pandas as pd import numpy as np import pickle import time import os import yaml import json import argparse import FIDDLE.config as FIDDLE_config import FIDDLE.steps as FIDDLE_steps # Ashutosh changing maximum number of thread to use : os.environ['NUMEXPR_MAX_THREADS'] = '60' def main(): ###### # User...
import React from "react"; import PropTypes from "prop-types"; const TextInput = ({ name, label, onChange, placeholder, value, error }) => { let wrapperClass="form-group"; if(error && error.length > 0) { wrapperClass += " " + "has-error"; } return ( <div ...
module.exports = { root: true, env: { node: true, es6: true, commonjs: true, }, extends: ['plugin:prettier/recommended'], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'er...
let app = require('./app') var async = require('async'); const WFEngineFactory = require('./workflow/EngineFactory'); const baseFunctions = require('./workflow/Functions') const engineConfig = require('./engineConfig.json') const EPRUtilFunctions = require('./EPRFunctions') const KeycloakHelper = require('./sdk/Keyclo...
# Django settings for example project. import os PROJECT_ROOT = os.path.normpath(os.path.dirname(os.path.abspath(__file__))) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' DATABASES ...
import glob import cgmsquared.clustering2 as c2 from astropy.table import Table, vstack from cgmsquared import load_cgmsquared def get_combined_dataset(cgmsqfile=None, casbahfile=None): """format for returned data is ( z, rho_com, mass, hits, misses, Hz, dv...
/* * X11DRV initialization code * * Copyright 1998 Patrik Stridvall * Copyright 2000 Alexandre Julliard * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of ...
// // Copyright © 2019 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #ifndef ARMNN_ITIMELINEDECODER_H #define ARMNN_ITIMELINEDECODER_H #ifdef __cplusplus extern "C" { #endif #include "TimelineModel.h" typedef enum ErrorCode { ErrorCode_Success, ErrorCode_Fail } ErrorCode; ErrorCode Creat...
from django.urls import path from . import views urlpatterns = [ path('', views.index ), ]
# ======================== # Information # ======================== # Direct Link: https://www.hackerrank.com/challenges/ctci-array-left-rotation/problem # Difficulty: Easy # Max Score: 20 # Language: Python # ======================== # Solution # ======================== import os # Complete the rotL...
import { __decorate } from "tslib"; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious } from './pagination'; import * as ɵngcc0 from...
# Generated by Django 3.2.3 on 2021-08-28 16:50 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0079_auto_20210828_2249'), ] operations = [ migrations.AlterModelOptions( name='historyimage', options={'ordering': (...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. <include src="extension_error.js"> /** * The type of the extension data object. The definition is based on * chrome/browser/ui/webui/extensions/ext...
# 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...
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # 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...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
''' Example returns safe and risky basket with their sharp ratios ''' start_ = 0 data = DataPreprocessing(daily, company, indicators, lookback = 21, start =start_) trend = TrendProcessing(data, 14, 3) safe, risky= trend.random_portfolio_generator() #day wise mean returns of all safe assets safe_returns ...
"""Data Remover -- Removes files from projects.""" ############################################################################### # IMPORTS ########################################################### IMPORTS # ############################################################################### # Standard Library import l...
/*! login-with-twitter. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ const crypto = require('crypto') const get = require('simple-get') const OAuth = require('oauth-1.0a') const querystring = require('querystring') const TW_REQ_TOKEN_URL = 'https://api.twitter.com/oauth/request_token' const TW_A...
{ const sendApiRequest = (query, callback) => { console.log(`executing... ${query}`); setTimeout(() => { console.log(`executed: ${query}`); callback(null, { life: 42}); // nodeback }, 1000); }; sendApiRequest({ user: 'me@volkan.io'}, (err, data) => { if (err) { console.log(err);...
// Copyright 2012 The Closure Library Authors. All Rights Reserved. // Use of this source code is governed by the Apache License, Version 2.0. goog.provide('goog.resultTest'); goog.setTestOnly('goog.resultTest'); goog.require('goog.result'); goog.require('goog.testing.jsunit'); function testSuccessfulResult() { va...
from tap_kit.streams import Stream class CandidatesStream(Stream): stream = 'candidates' meta_fields = dict( key_properties=['id'], replication_key='updated_at', valid_replication_keys=['updated_at', 'created_at'], incremental_search_key='updated_after', replication_m...
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017 The ProofOfGaming Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test processing of feefilter messages.""" from test_...
try: import configparser except ImportError: import ConfigParser as configparser import os from scream.files.setup import SetupCfg from scream.package import Package, PackageDoesNotExistException from scream.utils import chdir from test.base_tests import Base, MyPackage class MockPackage(Package): """Ove...
// RH_RF22.h // Author: Mike McCauley (mikem@airspayce.com) // Copyright (C) 2011 Mike McCauley // $Id: RH_RF22.h,v 1.26 2014/09/17 22:41:47 mikem Exp $ // #ifndef RH_RF22_h #define RH_RF22_h #include <RHGenericSPI.h> #include <RHSPIDriver.h> // This is the maximum number of interrupts the library can support // Mos...
import html from PikachuRobot import ALLOW_EXCL, CustomCommandHandler, dispatcher from PikachuRobot.modules.disable import DisableAbleCommandHandler from PikachuRobot.modules.helper_funcs.chat_status import (bot_can_delete, connection_status, ...
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
const { MessageEmbed } = require("discord.js"); const wait = require('util').promisify(setTimeout); module.exports = { name: "방수", description: "Waterproof KJH 근황", options: [ ], async execute(_bot, say, interaction, args) { const exampleEmbed = new MessageEmbed() .setColor('RANDOM') .setURL('https://...
/** * Implement Gatsby's Browser APIs in this file. * * See: https://www.gatsbyjs.com/docs/browser-apis/ */ // You can delete this file if you're not using it require("./node_modules/bootstrap/dist/css/bootstrap.css");
from io import BytesIO from flask import Flask, Response, jsonify, request from flask_cors import CORS from pyqrcode import QRCode from notify_run_server.model import NoSuchChannel, NotifyModel from notify_run_server.notify import parallel_notify from notify_run_server.params import (API_SERVER, DB_MODEL, ...
from digitalio import DigitalInOut, Direction, Pull from rgbled import * from rotaryencoder import * rotaryEncoder = RotaryEncoder() rgbLed = RgbLed() switchPin = DigitalInOut(board.GP15) switchPin.direction = Direction.INPUT switchPin.pull = Pull.DOWN currentValue = 0 while True: rotaryValue = rotaryEncoder.re...
# # Copyright 2020 The FLEX 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...
/*========================================================================================= File Name: combo-bar-line-data-label.js Description: Chartjs combo bar line data label chart ---------------------------------------------------------------------------------------- Item Name: Robust - Responsive...
#!/usr/bin/env python3 """ Copy best network to net.best.pt Go through results to find the best performing epoch and copy the corresponding network to net.best.pt. """ import argparse import numpy as np import pathlib from shutil import copyfile from platalea.utils.get_best_score import read_results, get_metric_ac...
Random = {}; Random.range = function(min, max, rounded) { var d = max - min; var r = min + Math.random()*d; return rounded ? Math.round(r) : r; } module.exports = Random;
from django.apps import AppConfig class BestDealsConfig(AppConfig): name = 'best_deals'
import nose.tools import pandas as pd import unittest from mia.features.blobs import _blob_density, blob_props from ..test_utils import get_file_path, load_data_frame class BlobDetectionTests(unittest.TestCase): @classmethod def setupClass(cls): # load a single patient's blobs csv_file = get_...
#IMPORT RELEVANT MODULES from mir_eval import melody import essentia import essentia.standard as essentiaMelody import predict_on_audio as dsm import preprocessing import postprocessing import predicting import training import numpy as np #--------------------------------------------------------------------------------...
""" @title @description """ import time import pandas as pd from Andrutil.ObserverObservable import Observer from SystemControl.DataSource.DataSource import DataSource, build_entry_id, TrialInfoEntry, TrialDataEntry from SystemControl.StimulusGenerator import MotorAction class LiveDataSource(DataSource, Observer): ...
""" Experiment with code for WebApplication stepper """ import re import urllib import urllib2 import cookielib # Scrape page contents def loginFailed(page): return (page.find('Incorrect login') > -1) intPattern = re.compile(r'Number: (\d+)') def intContents(page): m = intPattern.search(page) ...
'use strict'; const rework = require('rework'); const fs = require('fs'); const { join } = require('path'); const colors = require('rework-plugin-colors'); const whitespace = require('css-whitespace'); const vars = require('rework-vars'); const math = require('rework-math'); fs.readFile(join(__dirname, '..', 'styles...
""" Contains classes and functions that implement the GPU transformation (with local storage). """ import copy import itertools from dace import data, dtypes, sdfg as sd, subsets as sbs, symbolic from dace.graph import nodes, nxutil from dace.transformation import pattern_matching from dace.properties import Prop...
#!/usr/bin/python3 ''' SPDX-License-Identifier: BSD-2-Clause Copyright 2017 Massachusetts Institute of Technology. ''' from keylime import keylime_logging from keylime import keylime_agent logger = keylime_logging.init_logging('cloudagent') def main(): keylime_agent.main() if __name__ == "__main__": try:...
from __future__ import absolute_import from enum import Enum import logging log = logging.getLogger(__name__) class EventType(Enum): """ Various states/events that execution can result in or have tracked. These are most often accessed via :class:`hystrix.request_log.RequestLog` or :meth:`hystrix.comman...
const Google = require("./index"); const Client = new Google('caf03bbed9msha3591996a9568dap1bbf42jsn39f1184b4e0e'); Client.searchNews('President Biden', res => { console.log(res) })
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === '...
import boto3 import pandas as pd from datetime import date, timedelta from agg_webcam import aggregate as agg_webcam from agg_hystreet import aggregate as agg_hystreet from agg_gmap_supermarket_score import aggregate as agg_gmap_supermarket_score from agg_gmap_transit_score import aggregate as agg_gmap_transit_score fr...
import discord async def run(ctx, display_name): member = next((m for m in ctx.guild.members if m.display_name == display_name), None) if member is None: embed = discord.Embed( color=discord.Colour.dark_blue(), title=f'{display_name} was not found, try adding capitalizing or s...
import React, { Component } from 'react'; import { withTranslation } from 'react-i18next'; import PropTypes from 'prop-types'; import { StyleSheet, View, KeyboardAvoidingView, Animated } from 'react-native'; import { shouldTransitionForSnapshot, hasDisplayedSnapshotTransitionGuide, getSelectedAccountName, }...
import os from concurrent.futures import wait from threading import Event import boto3 import moto import pytest from moto import mock_s3 from megfile.lib.s3_buffered_writer import S3BufferedWriter from tests.test_s3 import s3_empty_client BUCKET = 'bucket' KEY = 'key' CONTENT = b'block0\n block1\n block2' moto.s3...
"""Different strategies for generating node2vec walks.""" import numpy as np from gensim.models import Word2Vec from numba import njit, prange from numba_progress import ProgressBar from pecanpy.rw import DenseRWGraph, SparseRWGraph from pecanpy.wrappers import Timer class Base: """Base node2vec object. Thi...
import React from 'react'; import ReactDOM from 'react-dom'; import SearchBar from './components/search_bar'; const API_KEY="AIzaSyALae5TXRrzX5boyICzc1OfySV2ZQmVfmQ"; const App = () => { return ( <div> <SearchBar /> </div> ) } ReactDOM.render(<App />, document.querySelector(".container"))
var searchData= [ ['movementstack',['MovementStack',['../class_movement_stack.html',1,'']]], ['mpu9250implementation',['Mpu9250Implementation',['../class_mpu9250_implementation.html',1,'']]], ['mqttcontroller',['MQTTController',['../class_m_q_t_t_controller.html',1,'']]] ];
import React from 'react' import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom' import { toast, ToastContainer } from 'react-toastify' import 'react-toastify/dist/ReactToastify.css' import { ChainPage } from './components/ChainPage' import { StateProvider } from './context/store' class Ap...
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../component/Counter'; import { incrementAsync, decrementAsync } from '../ducks/count-promise'; export class PromiseCounter extends Component { render() { return ( ...
var xmlHttp; //==================================================================// // // // // //==================================================================// function showDATA(e...
# Copyright (c) 2021. Slonos Labs. All rights Reserved. import numpy as np from pandas import DataFrame from sklearn.linear_model import SGDRegressor, SGDClassifier from sklearn.multioutput import MultiOutputClassifier from sklearn.naive_bayes import GaussianNB from sklearn.neighbors import KNeighborsClassifier from s...
import os from celery.schedules import crontab # sentry import configarution import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.redis import RedisIntegration BASE_DIR = os.path.dirname(os.path.dirname...
/* * Copyright (c) 2015-2016 PointSource, LLC. * MIT Licensed * * Defines the module for the edit view. */ (function () { 'use strict'; angular.module('app.edit', ['ngFileUpload']); angular.module('app').requires.push('app.edit'); }());
# -*- coding: utf-8 -*- import sys if sys.version_info[0] < 3: import unicodecsv as csv open_kwargs = {} else: import csv open_kwargs = {'encoding': 'utf8'} import platform import pytest def assertAlmostEqual(a, b, places=3): assert abs(a - b) < (0.1**places) if platform.python_implementation() ...
import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import WhatYouGet from './WhatYouGet'; import Alert from './Alert'; const ExplainConstraintTilde = props => ( <Fragment> <p className="card-text"> <code>{props.constraint.constraint}</code> is a <strong>tilde</strong> ...
import Delivery from '../models/Delivery'; import Deliveryman from '../models/Deliveryman'; import Recipient from '../models/Recipient'; import File from '../models/File'; class OrderController { async index(request, response) { const { deliverymanId } = request.params; const { page = 1 } = request...