text
stringlengths
6.04k
39.5k
#!/usr/bin/env python from __future__ import print_function, division from time import time import argparse import collections import csv import gc import json import os import shutil import re import sys import tempfile from . import db_sqlite3 as db from . import defs from . import env from . import util from .thir...
# -*- coding: utf-8 -*- import copy import os import numpy as np from scipy import misc from skimage.transform import resize from scipy import ndimage ################################################################################ # # Utility functions for performing object localization. # ######################...
""" MotifSet =================== Represents a transcription factor motif and the standardization of motif annotation. """ # Python 3 compatibility from __future__ import print_function # Python from glob import glob import glob import os # Internal from rgt.Util import npath, MotifData, strmatch from rgt.motifanalys...
# Importing the Kratos Library import KratosMultiphysics as KratosMultiphysics import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.ContactStructuralMechanicsApplication as ContactStructuralMechanicsApplication import KratosMultiphysics.MeshingApplication ...
import io, os, csv, sys, re import numpy as np from selftarget.indel import tokFullIndel from selftarget.data import getWTDir from selftarget.oligo import getSummaryFileSuffix #KL Divergence between the two indel profiles (non-symmetric) def KL(p1, p2, ignore_null=True, missing_count=0.5): p1_indels = set([x...
""" Corpus loading worker --------------------- """ from __future__ import annotations import multiprocessing as mp import os from queue import Empty, Queue from typing import Dict, Optional, Union import sqlalchemy import sqlalchemy.engine from sqlalchemy.orm import Session from montreal_forced_aligner.corpus.class...
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from typing import List import json import random import os import logging import tabulate import numpy as np from dataclasses import dataclass import paddle from paddlenlp.transformers import (CosineDecayWithWarmup, LinearDecayWithWarmup...
import yaml import json import re import os import requests import pathlib from yaml import ScalarNode, CollectionNode, SequenceNode, MappingNode class ModakConfig: config_path = pathlib.Path(__file__).parent / pathlib.Path('../config_modak.json') config = None valid_container_image_properties = ["imag...
from rpython.rlib.objectmodel import specialize, r_dict, compute_hash from rpython.rlib import jit hash_by_reference = lambda self: compute_hash(self) def _unimplemented(cls, method): exc = Exception("Cannot call %s on an abstract %s" % (cls, method)) def f(self, *_): raise exc return f def _unsu...
#!/usr/bin/env python3 # coding: utf-8 #Программа напоминалка, рассылает по email-ам указанным в файле xslx в поле email напоминания о приеме ССТУ в заданное время. #Затем проверяет служебный почтовый ящик на ответы пользователей, если ответ не получен или получен ответ "ПРИНЯТО" #сообщает о результатах пользователям...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2010-2012 OpenStack Foundation # Copyright 2013 IBM Corp. # Copyright 2015 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "L...
"""extract_es_grammar.py - Extract the grammar from the ECMAScript spec To run this script, you first need to get the source of the version of the ECMAScript spec you're interested in. cd ../.. mkdir tc39 cd tc39 git clone <EMAIL>:tc39/ecma262.git Then: make js_parser/es.esgrammar You can also ...
""" Economic Model for VF Created on 30 March 2020 Author: <NAME> Contact: <EMAIL> """ # ========= IMPORT LIBRARIES ======= # import numpy as np import math import matplotlib.pyplot as plt import datetime # ========== GLOBAL VARIABLES ====== # #Time parameters YEARLY_TO_MONTHLY_31 = 11.77 DAYS_IN_...
#to run type pip install playsound==1.2.2 in terminal import random, time, sys, os, time, winsound from threading import Thread from playsound import playsound def clear_console(): command = "clear" if os.name in ("nt", "dos"): command = "cls" os.system(command) stats = { "str stat" : 10, ...
# Copyright 2018 - <NAME> - All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import csv import operator from tensorflow.python.framework import random_seed DEFAULT_TRAINING_DATA = "training_dat...
""" MP4 Parser based on: http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf @author: <NAME> @license: MIT License """ import bitstring from datetime import datetime from collections import namedtuple import logging import six log = logging.getLogger(__name__) #log.addHandler(logging.NullHandler())...
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 15 16:39:45 2018 Modified 3rd Jan 2021 for firmware specific flight paths. Script to calculate GPS coordinates for entering into QGroundControl. Haversine formula accounts for distance "as the crow flies" but we need 300 m radius from the AUT di...
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
from dataclasses import dataclass from typing import Any, List import inspect import itertools import warnings import types import requests from flask_discord_interactions.response import Response class CommandOptionType: "Represents the different option type integers." SUB_COMMAND = 1 SUB_COMMAND_GROUP...
import json import base64 import zlib import random import numpy as np from .draw import get_drawing, draw_lines, draw_rect, append_group from .util import replace_building_generic_terms, get_custom_building_settings from .building_settings import BUILDING_SIZES DIRECTION_OFFSET = np.array([[0,-1], [1,-1], [1,0], [1...
# encoding: utf-8 from __future__ import unicode_literals import re import json import hashlib import uuid from .common import InfoExtractor from ..compat import ( compat_urllib_parse, compat_urllib_request, ) from ..utils import ( ExtractorError, int_or_none, unified_strdate, ) class SmotriIE(I...
from django.shortcuts import render, redirect from django.http import Http404, HttpResponseForbidden from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_http_methods, require_GET from django.db import IntegrityErr...
import csv import logging import sys from zipfile import ZipFile from io import BytesIO from time import sleep import os from pathlib import Path import tarfile import tempfile from urllib.parse import urlparse import urllib.request import fiona import rasterio import geopandas as gpd import pandas as pd import reque...
import numpy as np from scipy.signal import resample, blackmanharris, triang from scipy.fftpack import fft, ifft, fftshift import math, copy, sys, os from scipy.io.wavfile import write, read from sys import platform import subprocess sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), './utilFunct...
import numpy as np from scipy.special import expit from scipy.optimize import curve_fit from warnings import warn, filterwarnings, catch_warnings, simplefilter from functools import lru_cache # plotting import matplotlib.pyplot as plt from matplotlib import cm as mplcm from matplotlib import gridspec import matplotli...
''' Functions used to plot the player's data ''' import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.patches import Circle, Rectangle, Arc from matplotlib.offsetbox import OffsetImage from scipy.stats import kde import numpy as np from PIL import Image import process_data as process_data ''' Fun...
# coding=utf-8 from __future__ import print_function import sys from phi.tf.model import * from phi.control.control import * from phi.control.iksm import * def ik(sim, initial_density, target_density, trainable=False): assert not trainable with tf.variable_scope("ik"): optimizable_velocity = ik_resnet...
import fault import aetherling.helpers.fault_helpers as fault_helpers from aetherling.space_time import * from aetherling.space_time.reshape_st import DefineReshape_ST import magma as m import json @cache_definition def Module_0() -> DefineCircuitKind: class _Module_0(Circuit): name = "Module_0" ...
import math # for i in range(10): # blocks.append({"x":i*10, "y":i*10, "v":minVel}) def solveTimeEq(initialVel, dist, acc): if dist == 0: print("solveTimeEq: initialVel", initialVel, "dist", dist, "acc", acc, "time=", 0) return 0 if acc == 0: timeA = abs(dist / initialVel) ...
#! python3 # coding: utf-8 # * ===================================================================================== # * # * Filename: AMT_final.py # * # * Description: Python program for AMT2018 final thesis # * # * Version: 1.0 # * Created: 06/07/2018 07:09:10 PM # * Revision: none #...
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
#!/usr/bin/env python """skynet.py: Image segnemtation algoritm for Solar Disk: SkyNet""" __author__ = "<NAME>." __copyright__ = "" __credits__ = [] __license__ = "MIT" __version__ = "1.0." __maintainer__ = "<NAME>." __email__ = "<EMAIL>" __status__ = "Research" import matplotlib.pyplot as plt import matplotlib as m...
import numpy as np from numpy.testing import assert_almost_equal as aae from pytest import raises from functools import reduce from .. import utils def test_prime_radius_bad_semiaxes(): 'major semiaxis lower than minor semiaxis' latitude = np.ones(100) raises(AssertionError, utils.prime_vertical_curv, 10, ...
# Copyright 2015 Google Inc. 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 applicable law or a...
""" Defines the VerbosityPrinter class, used for logging output. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the ...
import torch print(torch.cuda.is_available()) from transformers import BertTokenizer, BertModel, GPT2Model, BertForMultipleChoice import tqdm, sklearn import numpy as np import os, time, sys import pickle import multiprocessing from multiprocessing import Process, Value, Manager from itertools import chain im...
import logging from random import SystemRandom from itertools import cycle from pydantic import BaseModel from typing import Dict from typing import Optional from typing import List from typing import Tuple from poker.consul import ConsulKey from itertools import product from poker.consul import NOT_PRESENT from poker...
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: #...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', '...
#Classes Challenge 38: Pykemon Simulation App import random #Parent class class Pykemon(): """A model of a generic Pykemon character.""" def __init__(self, name, element, health, speed): """Initialize attributes.""" self.name = name.title() self.element = element #Current heal...
import os, time, multiprocessing, math, random, torch, h5py, glob from simPDF_xyz import * from mendeleev import element import numpy as np import pandas as pd import networkx as nx from tqdm import tqdm from shutil import copyfile from diffpy.srreal.overlapcalculator import OverlapCalculator from diffpy.srreal.pdfcalc...
import numpy as np from tqdm import tqdm import scipy.io as sio import os import pkg_resources # cosmology assumption from astropy.cosmology import FlatLambdaCDM cosmo = FlatLambdaCDM(H0=70, Om0=0.3) from .priors import * from .gp_sfh import * import fsps mocksp = fsps.StellarPopulation(compute_vega_mags=False, zcon...
import numpy as np from math import cos, sin, pi import math import cv2 from scipy.spatial import Delaunay def softmax(x): x -= np.max(x,axis=1, keepdims=True) a = np.exp(x) b = np.sum(np.exp(x), axis=1, keepdims=True) return a/b def draw_axis(img, yaw, pitch, roll, tdx=None, tdy=None, size = 100): ...
# Copyright 2019-present NAVER Corp. # CC BY-NC-SA 3.0 # Available only for non-commercial use import pdb from PIL import Image import numpy as np import torch import torchvision.transforms as tvf from tools.transforms import instanciate_transformation from tools.transforms_tools import persp_apply RGB_mean = [0.4...
# Software License Agreement (BSD License) # # Copyright (c) 2008, <NAME>, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyri...
# ************************************************************************* # Author : <NAME> # Description : This script will show vaccine availability in India! # ************************************************************************* import os import sys import json import time import signal import smtplib i...
from inspect import trace import os import glob import time from datetime import datetime import argparse import gym from gym.envs.registration import register import torch import numpy as np import random import shap from PIL import Image, ImageDraw, ImageFont import imageio import matplotlib.pyplot as plt from PPO ...
#!/usr/bin/env python ###################################################### ## modified from https://github.com/4dn-dcic/pairsqc # ## source+commit: https://github.com/4dn-dcic/pairsqc/blob/3f72de6ecd1af96f34e8ed6f986ff88b6ea6afcc/pairsqc.py ## download date: 11/08/2021, commit: 3f72de6 ## changes: ## handle the error...
from DataHandler.AccessKey import AccessKey as Ak from ModelClasses.Classificatory import AbstractCustomerClassification from ModelClasses.Customer import Gender, Age, Married, Attribute, Customer from pandas import DataFrame from datetime import datetime from unittest.mock import MagicMock from Recommendation.Recomme...
import logging import warnings import numpy as np from scipy.sparse.linalg import lsqr from scipy.signal import filtfilt from pylops import Diagonal, Identity, Transpose from pylops.signalprocessing import FFT, Fredholm1 from pylops.utils import dottest as Dottest from pylops.optimization.solver import cgls from pylo...
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2013,2014,2015,2016,2017 Contributor # # 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 t...
from typing import Optional, Dict, List from enum import Enum, auto from random import randrange import random import string # TML class works on TML as a Python Dict structure (i.e. the result of a JSON.loads() class TML: def __init__(self, tml_dict: Dict): self.tml = tml_dict # Answers within a ...
#!/usr/bin/env python import sys import os import json import argparse import subprocess import logging import logging.handlers import tempfile import time import requests import hashlib from aeon.eos.device import Device from aeon.exceptions import ProbeError, UnauthorizedError from aeon.exceptions import ConfigErro...
from copy import deepcopy from keras import Sequential, activations, initializers, regularizers, constraints from keras.engine import Layer from keras.layers import Dense, Conv2D, Flatten from keras.datasets import mnist import numpy as np import tensorflow as tf import keras from scipy.linalg import block_diag from s...
from __future__ import annotations from abc import ABC import queue import random import threading from typing import Generic, List, Optional, TypeVar, Callable from .atomic import Atomic, AtomicNum from . import conc from .name import Named, NameGenerator from .register import Debuggable from . import threads from ...
# -*- coding: utf-8 -*- from random import randint, gauss from multiprocessing import Pool import numpy as np from shared import * import os import time import threading import multiprocessing import resource import fcntl import shutil # ============================================== INDICACIONES GENERALES ===========...
from internos.taskapp.celery import app import json import pytz import httplib import datetime from django.utils import timezone from time import mktime from internos.backends.utils import get_data @app.task def sync_partner_data(): from internos.etools.models import PartnerOrganization partners = get_data('...
# This tool imports all vulnerabilities from ICS-CERT # The vulnerabilities will be classified by vendor and for each vulnerability the exploitability, affected product and vulnerability will be stored in a CSV import re from urllib.request import urlopen,Request def getExploitability(input,link): result = "unkown"...
""" Polarized millimeter-wave atmospheric emission model Copyright (c) 2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
#################################################################################################################### #### Code examines various multi-class model and parameters for predicting classifications. #### Basic code adapted from: https://towardsdatascience.com/multi-class-text-classification-with-scikit-learn-...
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
""" Searching for names with given scope and name. This is very central in Jedi and Python. The name resolution is quite complicated with descripter, ``__getattribute__``, ``__getattr__``, ``global``, etc. If you want to understand name resolution, please read the first few chapters in http://blog.ionelmc.ro/2015/02/0...
from torch.utils.data import Dataset, DataLoader import matplotlib.pyplot as plt import torch import torchvision.models as models import platform import psutil import torch.nn as nn import time import os import pandas as pd import argparse import shutil import numpy as np import matplotlib matplotlib.use('Agg') torch...
import glob import os import sys import tkinter as tk from tkinter import messagebox from xml.etree import ElementTree import cv2 import numpy as np import pandas as pd from PIL import Image, ImageTk from utils import annotator FOLDER_PATH = 'purifier/folders.pkl' def get_folders(): """ ...
import ast import re from html import escape from io import BytesIO from typing import Optional from telegram import ( MAX_MESSAGE_LENGTH, ParseMode, InlineKeyboardMarkup, InlineKeyboardButton, ) from telegram import Message from telegram.error import BadRequest from telegram.ext import CommandHandler...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- """ @file py102-example2-zernike.py @brief Fitting a surface in Python example for Python 102 lecture @author <NAME> (<EMAIL>) @url http://python101.vanwerkhoven.org @date 20111012 Created by <NAME> (<EMAIL>) on 2011-10-12 Copyright (c) 2011 <NAME>. All rights reserved...
# -*- coding: utf-8 -*- """The storage media CLI tool.""" import codecs import os from dfvfs.analyzer import analyzer as dfvfs_analyzer from dfvfs.analyzer import cs_analyzer_helper from dfvfs.helpers import command_line as dfvfs_command_line from dfvfs.helpers import volume_scanner from dfvfs.lib import definitions ...
#!/usr/bin/env python #-Imports---------------------------------------------------------------------- #--Python Imports. import os import sys #--wxPython Imports. import wx from wx.lib.embeddedimage import PyEmbeddedImage #-Globals---------------------------------------------------------------------- paperairplane...
"""Contains widgets for dropdown forms""" from .. import skiboot, tag, excepts from . import Widget, ClosedWidget, FieldArg, FieldArgList, FieldArgTable, FieldArgDict class DropDown1(Widget): """A div holding a drop down input field. Without a form or submit button, typically included within a form""" e...
import discord, re, random, time from operator import itemgetter from discord.ext import commands from Cogs import Utils, DisplayName, Message, PickList def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") bot.add_cog(BotAdmin(bot, settings)) class BotAdmin(commands.Cog): #...
# coding:utf-8 import binascii import hashlib import os from Crypto.Cipher import AES, PKCS1_v1_5 from Crypto.PublicKey import RSA from Crypto.Util import Counter from Crypto.Util.number import bytes_to_long from obs import const, util class CipherGenerator(object): def __init__(self, need_sha256=False): ...
# MIT License # # Copyright (c) 2021 <NAME> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
import _pickle as pickle import copy import sys import numpy as np import os import timeit import torch import torch.multiprocessing as mp import shutil from collections import namedtuple from functools import partial from pprint import pprint import rl_sandbox.constants as c from rl_sandbox.envs.utils import make_...
from __future__ import division, print_function import math from . import decoder as _dec from . import fstext as _fst from .fstext import utils as _fst_utils from . import matrix as _mat from .matrix import common as _mat_comm from . import nnet3 as _nnet3 from .util import io as _util_io __all__ = ['Segmenter', '...
import sys from random import randint DIV = '/' PLUS = '+' MULT = '*' MINUS = '-' TRUE = 'true' FALSE = 'false' AND = 'and' OR = 'or' NOT = 'not' BEGIN = 'begin' END = 'end' PRINT = 'print' READ = 'read' IF = 'if' DO = 'do' ELSE = 'else' THEN = 'then' WHILE = 'while' PROGRAM = 'program' GT = '>' LT = '<' DOT = '.' ...
from slack import WebClient import os import time import argparse import glob import re import urllib.parse import pandas as pd from zipfile import ZipFile import subprocess def get_args(): parser = argparse.ArgumentParser() parser.add_argument( '--destination-type', dest='destination_type', ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np np.set_printoptions(precision=3, suppress=True) import Network import sys import os import logging from puAdapter import * from value_functions import * def nol(G, alpha, budget, output_dir='output_file.txt', policy='NOL', regularization='nonnegative'...
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is govered by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """ Set of functions for detaling with spam reports. """ import collections import httplib2 imp...
# -*- coding:utf-8 -*- """ @Author : g1879 @Contact : <EMAIL> @File : mix_page.py """ from typing import Union, List from requests import Response from requests_html import HTMLSession, Element from selenium.webdriver.chrome.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebEleme...
from __future__ import division, print_function, absolute_import import os from os.path import join as pjoin, isdir import getpass import time import struct import hashlib import warnings from ...tmpdirs import InTemporaryDirectory from nose.tools import assert_true import numpy as np from numpy.testing import asser...
import math import numbers from typing import Dict, List import torch import torch.nn.functional as F from torch import jit, nn from torch.distributions.bernoulli import Bernoulli from torch.distributions.independent import Independent from torch.distributions.normal import Normal from torch.nn import init from torch....
import json import os import random from django.conf import settings from django.core.management.base import BaseCommand from project_organizer.models import Tg_user, Project_manager, Team, Student from telegram import ( ReplyKeyboardMarkup, ReplyKeyboardRemove, InlineKeyboardMarkup, InlineKeyboardButt...
import os import time import random import ujson as json from typing import List, Set from collections import OrderedDict from nltk.tokenize import word_tokenize from multiprocessing import Manager stop_words = set(corpus.stopwords.words('english')) random.seed(22) base_url = 'https://en.wikipedia.org/?curid={}' cla...
"""Series are built around a config that specifies a 'series' of tests to run. It also tracks the tests that have run under it.""" import json import os import subprocess import time from collections import defaultdict, UserDict from pathlib import Path from typing import List, Dict, Set, Union, TextIO from pavilion ...
from PyQt5 import QtCore from PyQt5.QtCore import QPoint, QRect, qrand, QSize, Qt, qWarning from PyQt5.QtWidgets import QVBoxLayout, QFrame, QMenu, qApp, QApplication, QWidget from .QtViewPane import EDockingDirection, ESystemClassID def findSubPanes ( pane, paneClassName, result ): for subPane in pane.getSubPanes ...
import numpy as np import matplotlib.pyplot as plt import matplotlib.markers import matplotlib.scale from matplotlib import scale as mscale from matplotlib import transforms as mtransforms from matplotlib.ticker import Formatter, FixedLocator, LogLocator import pandas as pd from scipy import stats from scipy import spe...
# Copyright (c) Facebook, Inc. and its affiliates. import torch import os import sys import json import copy import glob import pickle, gzip import numpy as np import torch from PIL import Image from torch.utils import data from tools.utils import NumpySeedFix, auto_init_args class KeypointsDataset(data.Dataset)...
import sys sys.path.append("..") import math import random import argparse import torch from typing import ( Tuple, List, ) from torch import nn from torchtext.vocab import Vocab import torch.nn.functional as F # FAIRseq dependencies from models.components.fairseq.conv_utils import ( Linear, Position...
#!/usr/bin/env python """ WMI instance """ import sys import time import lib_common import lib_wmi import lib_util try: import wmi except ImportError: lib_common.ErrorMessageHtml("WMI Python library not installed") # Do not use WQL because it filters data after they have been selected by WMI. # On the contr...
#!/usr/bin/python2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Recipes for NativeClient toolchain packages. The real entry plumbing is in toolchain_main.py. """ import platform import sys...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
import os import logging import uuid import gitlab import urllib3 import ruamel.yaml as yaml from urllib.parse import urlparse from datetime import datetime from ruamel.yaml.scalarstring import PreservedScalarString as pss import utils.secret_reader as secret_reader # The following line will suppress # `InsecureRe...
#!/usr/bin/python # coding=utf-8 """ This script receives, saves, processes the data coming from the sensor nodes and sends to the webservice Attributes: GSM_CONFIG (dictionary): It holds the network configuration of the gsm module TOPICS (dictionary): It holds the MQTT Topics MQTT_CONFIG ...
""" Module for generating and analyzing transformation operations. Several functions for working with matrices are provided. The class OperationAnalyzer allows for comparison between pymatgen.core.operations.SymmOp objects, and can be used to identify conjugate operations. The orientation class can be used to identify ...
import os import json import torch import inspect from abc import abstractmethod from abc import ABC from typing import Any from typing import Set from typing import Dict from typing import List from typing import Type from typing import Union from typing import Callable from typing import Optional from typing import ...
from lxml import etree import os.path import __main__ schema_path = os.path.join(os.path.dirname(__main__.__file__), 'schemas') xsd_parser = etree.XMLParser( schema=etree.XMLSchema(file=os.path.join(schema_path, 'bpmn20', 'BPMN20.xsd')), attribute_defaults=True, remove_comments=True, remove_blank_text=True) im...
"""The builtin int type based on rbigint (the old long type)""" import functools from rpython.rlib.objectmodel import specialize from rpython.rlib.rarithmetic import intmask from rpython.rlib.rbigint import SHIFT, _widen_digit, rbigint from rpython.tool.sourcetools import func_renamer, func_with_new_name from pypy.i...
#!/usr/bin/env python """ros2api.py: ROS message interface to store relevant data in the FTT database.""" __author__ = "<NAME>, <NAME>, <NAME>" __copyright__ = "Copyright 2021, Fraunhofer FKIE" __license__ = "MIT" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" import sys import rospy import tf2_ros from sensor_msgs....
# -*- coding: utf-8 -*- from __future__ import unicode_literals from datetime import datetime, date from dateutil.relativedelta import relativedelta from django.contrib.sitemaps import Sitemap from django.db.models import Q from django.db.models.functions import Lower from django.http import ( Http404, HttpR...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "MPZinke" ######################################################################################################################## # # # cre...