text
stringlengths
2
999k
import jwt from time import time from sqlalchemy import create_engine import ast import pandas as pd import json import settings # engine = create_engine('postgresql://postgres:55262408@localhost:5432/postgres') # cur = engine.connect() engine = settings.engine cur = engine.connect() # user_id = 123 def Permisoes(usr)...
from __future__ import absolute_import import datetime from operator import attrgetter from django.test import TestCase from django.utils.unittest import expectedFailure from .models import (LegacyDateTimeTable, LegacyDateTable, LegacyTimeTable, DateTable, DateTimeTable, TimeTable, DateTimeOffsetTable, ...
#!/usr/bin/env python3 ################################################################## # Trade-And-Talk-Community-Office-2021 (v 0.0.1) # https://github.com/thecode3/Trade-And-Talk-Community-Office-2021 # THECODE3-10osamaahmed92@gmail.com # © Trade And Talk Community 2021 # BSD 3-Clause License # Copyright (c...
from __future__ import absolute_import, unicode_literals, print_function import os import tempfile import shutil from tests.linter_tests.linter_unittest import LinterTestCase from libraries.linters.udb_linter import UdbLinter class TestUdbLinter(LinterTestCase): resources_dir = os.path.join(os.path.dirname(os.pa...
# 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...
from core import Data from .registry import DataVisualizerRegistry from extensions.mdi import MdiArea from extensions.mdi.windows import DataViewerSubWindow from PyQt5.QtCore import QObject, pyqtSignal class DataVisualizationManager(QObject): data_visualized = pyqtSignal(DataViewerSubWindow) def ...
# Copyright 2011 OpenStack Foundation. # 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 req...
#!/usr/bin/env python3 import os import sys import time from ast import literal_eval as make_tuple import broker.config as config from broker.utils import ipfs_to_bytes32 def print_msg(msg): """Print arguments.""" print(f"[{time.ctime()}, pid: {os.getpid()}] --- {msg}") def main(function_name, *args): ...
import torch.nn.functional as F from torch.autograd import Variable from models.ResNet_feat import ResClassifier from train_setup import * from utils.Loss import * import copy eta = 1.0 num_k = 2 #4 def Train_MCD(args, G, F1, F2, train_source_dataloader, train_target_dataloader, optimizer_g, optimizer_f, epoch, ...
import torch.nn as nn from ..builder import BACKBONES from mmcv.runner import load_checkpoint from mmdet.utils import get_root_logger from torch.nn.modules.batchnorm import _BatchNorm import math from torchtoolbox.nn import Activation from functools import partial import torch.nn.functional as F def make_divisible(...
#!/usr/bin/env python from __future__ import print_function import copy import os import logging from peyutil import read_as_json from taxalotl.tax_partition import (INP_TAXONOMY_DIRNAME, MISC_DIRNAME, GEN_MAPPING_FILENAME, ...
from __future__ import print_function import inspect import types import sys import operator as op from collections import namedtuple import warnings from jedi._compatibility import unicode, is_py3, builtins, \ py_version, force_unicode from jedi.inference.compiled.getattr_static import getattr_static ALLOWED_GET...
#!/usr/bin/python class _MetaPacket(object): def __new__(cls, *args, **kw): return object.__new__(cls) m = _MetaPacket()
from flask import jsonify from app.api import bp @bp.route('/ping', methods=['GET']) def ping(): '''前端Vue.js用来测试与后端Flask API的连通性''' return jsonify('Pong!') @bp.route('/test-email', methods=['GET']) def test_email(): from flask import current_app from app.utils.email import send_email send_email(...
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from django.views.generic import TemplateView from rest_framework_swagger.views import get_swagger_view from rest_framework_simplejwt.views import ( TokenObtainPairView,...
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-12-20 18:51 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('education', '0004_auto_20161220_1549'), ('pictures'...
from django import forms class FriendlyForm(forms.Form): first_name = forms.CharField(max_length=100) last_name = forms.CharField(max_length=100)
""" The model implemented here is the same as https://github.com/machine-perception-robotics-group/attention_branch_network (ResNet) The functions for creating the model and loading the imagenet weights have been redone. """ import torch import torch.nn as nn import torch.utils.model_zoo as model_zoo import math f...
from django.conf.urls import url, include from donations.urls import urlpatterns as donations_urls from tests.views import SimpleDonateView, FixedDonateView, DonateThankYouView test_app_urls = ([ url(r'^$', SimpleDonateView.as_view(), name='index'), url(r'^fixed/$', FixedDonateView.as_view(), name='fixed'), ...
# Copyright (c) 2019 Grzegorz Raczek # https://github.com/grzracz # Files available under MIT license from queue import Queue import pygame import socket import threading import time import random import sys import winsound host = "192.168.137.1" port = 10000 class Server: def __init__(self, host_addr, po...
# -*- coding: utf-8 -*- """ Tests for scalar Timedelta arithmetic ops """ from datetime import datetime, timedelta import operator import numpy as np import pytest import pandas as pd import pandas.util.testing as tm from pandas.core import ops from pandas import Timedelta, Timestamp, NaT class TestTimedeltaAdditio...
# Copyright 2016 rpaas authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import datetime import time import unittest import redis from freezegun import freeze_time from mock import patch, call from rpaas import storage, tasks from rpaas...
# Copyright 2021 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...
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-24 19:15 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('course_app', '0001_initial'), (...
"""Trace support for automation.""" from __future__ import annotations from collections import OrderedDict from contextlib import contextmanager import datetime as dt from datetime import timedelta from itertools import count import logging from typing import Any, Awaitable, Callable, Deque from homeassistant.core im...
import logging from logging import Filter, LogRecord from . import local_thread from .exceptions import CaptureListValidationException from .utils import getattrd logger = logging.getLogger(__name__) class CustomFilter(Filter): def __init__(self, capture_list=None, *args, **kwargs): super().__init__() ...
# Originally contributed by Sjoerd Mullender. # Significantly modified by Jeffrey Yasskin <jyasskin at gmail.com>. """Fraction, infinite-precision, real numbers.""" from decimal import Decimal import math import numbers import operator import re import sys __all__ = ['Fraction', 'gcd'] def gcd(a, b): """Calcu...
from Oxygen_sensor.DFRobot_Oxygen import *
# -*- coding: utf-8 -*- import numpy as np from torch.quasirandom import SobolEngine from scipy.optimize import brentq, fminbound from scipy.stats import norm # Local modules from .integration import GaussianQuadrature from .models import HestonModel, BlackScholesModel from .options import EuropeanCallOption # =====...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
# coding:utf8 import tqdm import os import h5py import time import json import sys import pdb import traceback from bdb import BdbQuit import torch from opts import parse_opt from models.sentiment_detector import SentimentDetector from dataloader import get_senti_image_dataloader def clip_gradient(optimizer, grad_cl...
""" Created on Sun Nov 27 00:56:00 2016 @author: yxl """ import numpy as np from sciapp.action import Filter # from imagepy.ui.widgets import HistCanvas class Plugin(Filter): title = "Bright And Constract" note = ["all", "auto_msk", "auto_snap", "not_channel", "preview"] def load(self, ips): his...
from torch_geometric.datasets import Reddit from GPT_GNN.data import * dataset = Reddit(root='/data/data1/v-zhehuang/HGT') graph_reddit = Graph() el = defaultdict( #target_id lambda: defaultdict( #source_id( lambda: int # time )) for i, j in tqdm(dataset...
from django.contrib import admin from .models import UsersModel, BooksModel, IssuedBooksModel # Register your models here. admin.site.register(UsersModel) # class UsersModelAdmin(admin.ModelAdmin): # list_display = ('userId',) @admin.register(BooksModel) class BooksModelAdmin(admin.ModelAdmin): list_display ...
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-ugc-service (2.1.0) # pylint: disable=duplicate-code # p...
from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['vl53l0x'], package_dir={'': 'src'} ) setup(**d)
import json import logging import os import smtplib from email.mime.text import MIMEText from urllib import parse as urlparse import aiobotocore import tldextract from botocore.exceptions import ClientError logger = logging.getLogger(__name__) def send_email( sender, pwd, recipients, subject="Email ...
class Colors: RED = '\033[1;31m' GREEN = '\033[1;32m' CYAN = '\033[0;36m' YELLOW = '\033[0;33m' PURPLE = '\033[0;35m' NC = '\033[0m'
"""Test config validators.""" from collections import OrderedDict from datetime import date, datetime, timedelta import enum import os from socket import _GLOBAL_DEFAULT_TIMEOUT from unittest.mock import Mock, patch import uuid import pytest import voluptuous as vol import homeassistant from homeassistant.helpers imp...
"""Test modules.py code.""" from sympy.polys.agca.modules import FreeModule, ModuleOrder, FreeModulePolyRing from sympy.polys import CoercionFailed, QQ, lex, grlex, ilex, ZZ from sympy.abc import x, y, z from sympy.testing.pytest import raises from sympy import Rational def test_FreeModuleElement(): M = QQ.old_p...
from enum import auto, Enum class HashingAlgorithm(Enum): SHA256 = auto() SHA384 = auto() SHA512 = auto() class CryptographyModule: def hmac_digest(self, hashing_algorithm: HashingAlgorithm, key: bytes, message: bytes) -> bytes: raise NotImplementedError def hmac_digest...
from __future__ import annotations import pickle __all__ = ["reference", "reflections"] def reflections(infile): """ Load the given reflection file. :params infile: The input filename or file object :returns: The reflection list """ # If the input is a string then open and read from that f...
import base64 import logging import random import sys import unittest import warnings from io import BytesIO import gevent import gevent.pywsgi from flask import Flask, Response, make_response, redirect, request, send_file, stream_with_context import locust from locust import log from locust.event import Events from ...
# Copyright (C) 2001-2010 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Miscellaneous utilities.""" __all__ = [ 'collapse_rfc2231_value', 'decode_params', 'decode_rfc2231', 'encode_rfc2231', 'formataddr', 'formatdate', 'format_datetime', 'getaddre...
# Copyright 2018-2019 The Kubeflow 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 ...
import functools from typing import Match from typing import Optional from typing import Tuple import onigurumacffi from babi.cached_property import cached_property def _replace_esc(s: str, chars: str) -> str: """replace the given escape sequences of `chars` with \\uffff""" for c in chars: if f'\\{c...
from stackmorelayers.ensemble import CatBoostEnsemble, CatBoostClassifierEnsemble
import pytest from slim.users.models import User pytestmark = pytest.mark.django_db def test_user_get_absolute_url(user: User): assert user.get_absolute_url() == f"/users/{user.username}/"
from django.conf.urls.defaults import * urlpatterns = patterns( 'reports.views', url(r'staff/', 'staff'), url(r'superuser', 'superuser'), url(r'', 'index'), )
# -*- coding: utf-8 -*- import pytest from mock import Mock, PropertyMock from pytest_lazyfixture import lazy_fixture from brewtils.errors import RequestStatusTransitionError from brewtils.models import ( Command, Instance, Parameter, PatchOperation, Request, System, Choices, LoggingConfig, Event, Queue, Prin...
import os import numpy as np import matplotlib.pyplot as plt from linear_regression import linear_regression_1D from nn_regression import nn_regression_1D def create_output_dir(): """Create output dir if it does not exist.""" cwd = os.getcwd() output_dir_path = os.path.join(cwd, "output") if not os.pat...
import base64 import json import socket from typing import Optional, Union from platypush.plugins import Plugin, action class TcpPlugin(Plugin): """ Plugin for raw TCP communications. """ def __init__(self, **kwargs): super().__init__(**kwargs) self._sockets = {} def _connect(s...
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Services for create and manipulate objects via admin UI.""" from lib import url from lib.page import dashboard from lib.page.modal.create_new_person import CreateNewPersonModal from lib.utils import selen...
import logging from airflow.hooks import PostgresHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults class PostgresOperator(BaseOperator): """ Executes sql code in a specific Postgres database :param postgres_conn_id: reference to a specific postgres database...
import os from typing import Dict, Optional import matplotlib.pylab as plt from src.app.io import (get_checkpoints_dir, get_val_dir, get_val_log, load_prep_name, load_testset, load_valset, save_val_comparison, save_val_orig_plot, save_val_orig_wav...
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from fairseq import utils from fairseq.models import ( Fa...
#!/usr/bin/python # # sslsniff Captures data on read/recv or write/send functions of OpenSSL and # GnuTLS # For Linux, uses BCC, eBPF. # # USAGE: sslsniff.py [-h] [-p PID] [-c COMM] [-o] [-g] [-d] # # Licensed under the Apache License, Version 2.0 (the "License") # # 12-Aug-2016 Adrian Lopez C...
# 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...
from userbot import CmdHelp from userbot.cmdhelp import CmdHelp from userbot.utils import admin_cmd @borg.on(admin_cmd(pattern=r"hi ?(.*)")) # initially made by @NOOB_GUY_OP async def hhi(event): giveVar = event.text a = giveVar[5:6] if not a: a = "🌺" b = giveVar[7:8] if not ...
#!/usr/bin/env python """ isup.py - Simple website status check with isup.me Copyright 2013, Michael Yanovich (yanovich.net) Copyright 2012, 2013 Edward Powell (embolalaia.net) Licensed under the Eiffel Forum License 2. This allows users to check if a website is up through isup.me. More info: * Willie: http://willie...
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
"""add the Name Request Record in NRO from the current record state in NameRequest In order to maintain the NRO data patterns, the record adds will follow the following pattern: -- request header create the NR # insert into request create new event of type 'SYST' create new transaction of...
#!/usr/bin/env python """ 分支进程基本操作:本程序启用了5个副本,与原有程序并行运行;每个副本在一个标准输入/输出流上重复5次。 """ import os import time def counter(count_int): "子进程" for i_int in range(count_int + 1): time.sleep(0.25) print('\n{pid_int} -> {i_int}'.format(pid_int=os.getpid(), i_int=i_int)) if __name__ == '__main__': for i_int in range...
import requests import json from person import Person class Company: global user_key user_key = '' #input crunchbase API key def __init__(self, name, permalink, fund): self.name = name self.permalink = permalink self.fund = fund self.categories, self.location = self.self_populate() self.type = "COMPANY" ...
import math import torch import torch.nn as nn import torch.nn.functional as F from autoencoder import conv1x1, conv3x3, Residual class SimpleDiffusionModel(nn.Module): def __init__(self, d_model=128, dropout=.1, num_layers=10, d_pos=32): super().__init__() self.d_model = d_model def n...
class UrlHelper: """ Class used to convert base API links to useable ones that can be parsed """ def __init__(self, api): self.api = api def get_currency_api(self, country_iso): """ Gets the currency API link for a given country :param country_iso: Name of the cou...
from datetime import datetime, tzinfo from enum import Enum class Method(Enum): DELETE = "DELETE" GET = "GET" POST = "POST" PUT = "PUT" def __str__(self) -> str: return self.value def now(tz: tzinfo | None = None) -> str: """ Get current timestamp in seconds. """ return ...
# # Copyright (c) 2013-2019 Contributors to the Eclipse Foundation # # See the NOTICE file distributed with this work for additional information regarding copyright # ownership. All rights reserved. This program and the accompanying materials are made available # under the terms of the Apache License, Version 2.0 which...
# -*- coding: UTF-8 -*- from django.core.management.base import BaseCommand, CommandError from conference import models from datetime import datetime from email_template import utils class Command(BaseCommand): """ """ def handle(self, *args, **options): try: conference = args[0] ...
from model.data_utils import CoNLLDataset from model.ner_model import NERModel from model.config import Config def main(): # create instance of config,这里的config实现了load data的作用 #拥有词表、glove训练好的embeddings矩阵、str->id的function config = Config() config.nepochs = 200 config.dropout = 0.5...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import absolute_import, unicode_literals import copy import enum import multiprocessing from collections import Counter from six import text_type from six.moves import zip from typepy import ( Bool, Dat...
""":mod:`numpy.ma..mrecords` Defines the equivalent of :class:`numpy.recarrays` for masked arrays, where fields can be accessed as attributes. Note that :class:`numpy.ma.MaskedArray` already supports structured datatypes and the masking of individual fields. :author: Pierre Gerard-Marchant """ #!!!: * We should make ...
# -*- coding: utf-8 -*- # # Copyright (c) the purl authors # SPDX-License-Identifier: MIT # # 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 t...
""" PISA pi stage to apply hypersurface fits from discrete systematics parameterizations """ #TODO Currently have to defined the `links` value in the stage config to match what the `combine_regex` does in # the Hypersurface fitting. The `combine_regex` is stored in the hypersurface instance, so should make the # ...
try: from .helpers import config, management except ImportError: import helpers.config, helpers.management import discord from discord.ext import commands from discord.commands import slash_command class Fun(commands.Cog): def __init__(self, client): self.client = client @slash_command(descr...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/10/9 12:13 # @Author : Jun import pickle, logging, numpy as np from paddle.io import Dataset import os import random from efficentgcn.reader.transformer import pre_normalization import paddle from paddle.io import Subset # from data.remove_zero...
# -*- coding: utf-8 -*- """ Similar to good_migration.py, but a _data_ migration. """ import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): pass # dummy def backwards(self, orm): pas...
from fastapi import APIRouter, FastAPI from starlette.testclient import TestClient app = FastAPI() user_router = APIRouter() item_router = APIRouter() @user_router.get("/") def get_users(): return [{"user_id": "u1"}, {"user_id": "u2"}] @user_router.get("/{user_id}") def get_user(user_id: str): return {"u...
# Copyright 2018 Google LLC # # 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, s...
import datetime import pytest from tests.utils import file_response from city_scrapers.spiders.det_wrecking_examiners import DetWreckingExaminersSpider test_response = file_response( 'files/det_wrecking_examiners.html', 'https://www.detroitmi.gov/government/boards/board-wrecking-contractors-examiners/board-w...
from io import BytesIO import logging import os import uuid from django.core.files.base import ContentFile from django.core.files.storage import FileSystemStorage from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from django.test.client import encode_multipart, RequestFacto...
"""Test for RFLink light components. Test setup of RFLink lights component/platform. State tracking and control of RFLink switch devices. """ from homeassistant.components.light import ATTR_BRIGHTNESS from homeassistant.components.rflink import EVENT_BUTTON_PRESSED from homeassistant.const import ( ATTR_ENTITY_ID...
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
import glob import os import os.path as osp import shutil import torch from torch_geometric.data import InMemoryDataset, download_url, extract_zip from torch_geometric.io import read_off class ModelNet(InMemoryDataset): r"""The ModelNet10/40 datasets from the `"3D ShapeNets: A Deep Representation for Volume...
#!/usr/bin/env python # -*- coding: utf-8 -*- import struct # NELEM = 512 # AM = ['0b 000 010 111', # '0b 000 011 011', # '0b 000 011 111', # '0b 000 110 010', # '0b 000 110 011', # '0b 000 110 110', # '0b 000 110 111', # '0b 000 111 011', # '0b 000 111 111', # '0...
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-11-13 22:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0070_auto_20161025_2325'), ] operations = [ migrations.AddField( ...
import queue import sched import time import unittest from test import support try: import threading except ImportError: threading = None TIMEOUT = 10 class Timer: def __init__(self): self._cond = threading.Condition() self._time = 0 self._stop = 0 def time(self): wit...
# Exercício Python 019 # Sorteio de 4 alunos para um apagar a lousa. # Leia o nome deles e escreva o escolhido import random a = str(input('Aluno 1: ')) b = str(input('Aluno 2: ')) c = str(input('Aluno 3: ')) d = str(input('Aluno 4: ')) alunos = [a,b,c,d] s = random.choice(alunos) print('O aluno sorteado para apagar a ...
import unittest from minecraft.networking.types import (UUID, VarInt) from minecraft.networking.packets import PacketBuffer from minecraft.networking.packets.clientbound.play import ( PlayerPositionAndLookPacket, PlayerListItemPacket, MapPacket ) from minecraft.networking.packets import serverbound from minecraft.n...
# Generated by Django 2.2.11 on 2020-04-01 12:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Actor', fields=[ ...
""" setup.py file for project """ try: from setuptools import setup # type: ignore except ImportError: from distutils.core import setup setup( name='logextractx', version='0.3.0rc4', author='Maho (Lukasz Mach)', author_email='lukasz.mach@allegro.pl', packages=['logextractx'], url='htt...
# Tests for parsing linkages (synonyms, hypernyms, related terms, etc) # # Copyright (c) 2021 Tatu Ylonen. See file LICENSE and https://ylonen.org import json import unittest import collections import wiktextract from wiktextract.linkages import parse_linkage_item_text from wiktextract import WiktionaryConfig from wi...
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0 # which is available at https://www.volatilityfoundation.org/license/vsl-v1.0 # import logging import re from typing import Dict, Generator, List, Set, Tuple from volatility.framework import interfaces, renderer...
# License: BSD 3-Clause import io import logging import os import re from typing import List, Dict, Union, Optional import numpy as np import arff import pandas as pd import xmltodict from scipy.sparse import coo_matrix from collections import OrderedDict import openml.utils import openml._api_calls from .dataset i...
from typing import Union from ..call_builder.base_call_builder import BaseCallBuilder from ..client.base_async_client import BaseAsyncClient from ..client.base_sync_client import BaseSyncClient __all__ = ["EffectsCallBuilder"] class EffectsCallBuilder(BaseCallBuilder): """Creates a new :class:`EffectsCallBuilde...
"""Login to https://support.euserv.com/.""" # pylint: from typing import Optional # import os from time import sleep from random import randint import asyncio # import dotenv import pyppeteer from logzero import logger from extend_euserv.get_ppbrowser import get_ppbrowser, BROWSER from extend_euserv.config import Se...
from __future__ import print_function from awips.dataaccess import DataAccessLayer as DAL from awips.test.dafTests import baseDafTestCase import unittest # # Test DAF support for profiler data # # SOFTWARE HISTORY # # Date Ticket# Engineer Description # ------------ ---------- -...
from typing import Tuple, FrozenSet from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_mak...
""" Created on 11.08.2016 @author: Sebastian Illing """ import os import unittest from evaluation_system.commands.admin.check_4_broken_runs import Command from evaluation_system.tests.capture_std_streams import stdout from evaluation_system.misc import config from evaluation_system.api import plugin_manager as pm from...
import os from os import listdir from os.path import isfile, join #Globally ignored files globalignore = ['bin', 'lib', 'lib64', 'include', '__pycache__'] #Files which are specifically allowed by a specific ignorefile specificallow = {'.gitignore': ['.git']} path = str(input('Enter path for script: ')) if os.path.exi...