text
stringlengths
2
999k
from .vec2_double import Vec2Double from .vec2_double import Vec2Double from .weapon_type import WeaponType from .weapon_params import WeaponParams from .vec2_double import Vec2Double from .explosion_params import ExplosionParams class Properties: def __init__(self, max_tick_count, team_size, ticks_per_second, upda...
# See https://zulip.readthedocs.io/en/latest/subsystems/notifications.html import asyncio import base64 import logging import re from dataclasses import dataclass from functools import lru_cache from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Tuple, Type, Union import gcm import lxml.html impor...
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 later version. # # This program is distrib...
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, 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 ...
import pytest import json from six import StringIO from mock import MagicMock from thefuck.shells.generic import ShellConfiguration from thefuck.entrypoints.not_configured import main @pytest.fixture(autouse=True) def usage_tracker(mocker): return mocker.patch( 'thefuck.entrypoints.not_configured._get_not...
from evelink.thirdparty.six import PY2 if PY2: import unittest2 as unittest else: import unittest
import speech_recognition as sr import pyttsx3 import datetime import wikipedia import webbrowser import os import time import subprocess import wolframalpha import json import requests import pywhatkit engine=pyttsx3.init('sapi5') voices=engine.getProperty('voices') engine.setProperty('voice',voices[2].id) rate = eng...
import hashlib import json import os import random import shutil import tempfile import time from datetime import datetime from unittest.mock import ANY, patch from pytest import mark from test.integration.base import DBTIntegrationTest, use_profile, AnyFloat, \ AnyString, AnyStringWith, normalize, Normalized fro...
# coding: utf-8 # # Copyright 2019 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 "lice...
# Copyright 2019 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...
#!/usr/bin/python # coding: UTF-8 import sys import logging import datetime import time import json import urllib import ssl import enum import overpy from attrdict import AttrDict # - - - - - - - - - - - - - - - - - - - - # Const, Enum # - - - - - - - - - - - - - - - - - - - - _OPENWEATHERMAP_API = 'https://api.op...
from django.apps import AppConfig class ApiUserConfig(AppConfig): name = 'api_user'
"""Constants for August devices.""" from datetime import timedelta DEFAULT_TIMEOUT = 10 CONF_ACCESS_TOKEN_CACHE_FILE = "access_token_cache_file" CONF_LOGIN_METHOD = "login_method" CONF_INSTALL_ID = "install_id" AUGUST_DEVICE_UPDATE = "august_devices_update" VERIFICATION_CODE_KEY = "verification_code" NOTIFICATION...
import argparse import os import numpy as np import math import itertools import torchvision.transforms as transforms from torchvision.utils import save_image from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Variable from mnistm import MNISTM import torch.nn as nn ...
# Copyright (c) Facebook, Inc. and its affiliates. import math import os from copy import deepcopy from typing import Dict, List, Optional, Tuple import numpy as np import torch import torch.nn.functional as F from mmf.common.registry import registry from mmf.models import BaseModel from mmf.modules.hf_layers import ...
from collections import defaultdict from typing import List from ginodantic.gino_model_meta import GinoModelMeta from pydantic.main import ModelMetaclass from .utils import create_meta_class __all__ = ['SchemaFactory'] FIELD_METHODS_BY_TYPE = { int: ('lt', 'gt', 'le', 'ge'), float: ('lt', 'gt', 'le', 'ge'), ...
import json data = { "FirstName":"Mohan", "MiddleName":"S", "LastName":"Sha", "DateOfBirth":"26-05-1996", "Contact":{ "Phone":9551175171, "Email":"mohansha@qubecinema.com" }, "Address":[ { "Type":"Office", "ZipNumber":600004, "Str...
# -*- coding: utf-8 -*- import numpy as np from nipype.algorithms.icc import ICC_rep_anova def test_ICC_rep_anova(): # see table 2 in P. E. Shrout & Joseph L. Fleiss (1979). "Intraclass # Correlations: Uses in Assessing Rater Reliability". Psychological # Bulletin 86 (2): 420-428 Y = np.array([[9, 2, ...
def test_redirection(app,client): # checking redirection response = client.get("/") assert response.status_code == 200
import os workers = int(os.environ.get("GUNICORN_PROCESSES", "1")) threads = int(os.environ.get("GUNICORN_THREADS", "1")) forwarded_allow_ips = "*" secure_scheme_headers = {"X-Forwarded-Proto": "https"}
# -*- coding: utf-8; -*- from httpolice.citation import RFC from httpolice.parse import (auto, can_complain, fill_names, maybe, octet, octet_range, pivot, string, subst) from httpolice.structure import EntityTag from httpolice.syntax.common import DQUOTE from httpolice.syntax.rfc7230 impor...
# coding: utf-8 from __future__ import absolute_import, unicode_literals from functools import partial from io import IOBase from numbers import Number from mock import MagicMock, Mock, PropertyMock, call import pytest from boxsdk.auth.oauth2 import OAuth2 from boxsdk.config import API from boxsdk.exception import ...
# Copyright 2019 Adobe. All rights reserved. # This file is licensed to you 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 ...
#!usr/bin/python #libraries import pandas as pd import matplotlib.pyplot as plt import numpy as np import math import keras.models import keras.layers import sklearn.preprocessing from sklearn.metrics import mean_squared_error import keras.optimizers '''First we have to define our problem. We use LSTM because we w...
from functools import partial, update_wrapper import Metrics import ContentCentricMeasurements import UserCentricMeasurements #from load_data import load_data from BaselineMeasurements import * import pprint def named_partial(func, *args, **kwargs): partial_func = partial(func, *args, **kwargs) update_wrappe...
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
import numpy as np def rayleigh_test(phases): """test distrib uniforme.""" ph = phases.reshape(-1) n = len(ph) w = np.ones(n) r = np.sum(w*np.exp(1j*ph)) r = abs(r)/np.sum(w) R = n*r z = R**2 / n pval = np.exp(np.sqrt(1+4*n+4*(n**2-R**2))-(1+2*n)) return pval
import streamlit as st import leafmap.foliumap as leafmap def app(): st.title("Streamlit for Geospatial Applications") st.markdown( """ This multi-page web app demonstrates various interactive web apps created using [streamlit](https://streamlit.io) and open-source mapping libraries, ...
"""Gear Design models.""" from django.db import models from django.urls import reverse from django.contrib.auth.models import User class Gear(models.Model): """Gear Design.""" Np_CHOICES = ( (12.0, 12.0), (18.0, 18.0), (32.0, 32.0), ) user = models.ForeignKey( User, ...
# IMPORT ORDER MATTERS! # constants used by MetaCI FAILED_TO_CREATE_SCRATCH_ORG = "Failed to create scratch org" from cumulusci.core.config.BaseConfig import BaseConfig # inherit from BaseConfig class ConnectedAppOAuthConfig(BaseConfig): """ Salesforce Connected App OAuth configuration """ pass class Fl...
''' shell.py: General shell parsing functions for Singularity in Python Copyright (c) 2017, Vanessa Sochat. All rights reserved. "Singularity" Copyright (c) 2016, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept...
#!/usr/bin/env python # -*- coding: utf-8 -*- # __author__ = 'adison' # @Time : 2017/11/24 from functools import wraps from flask import abort from flask_login import current_user from .models import Permission def permission_required(permission): def decorator(f): @wraps(f) def decorated_func...
""" Author:harry7 """ #!/usr/bin/python for _ in xrange(input()): r,s=raw_input().split() print long(r)*long(s)
import tensorflow as tf import numpy as np import cv2 as cv import imutils import fitz import os def rotate_crop(image, angle): """Rotate the given image counterclockwise by the specified angle (degrees), removing whitespace.""" # Based on Adrian Rosebrock's imutils (https://www.pyimagesearch.com/2017/01/02/r...
# Geo Data latitude = longitude = altitude = cur_location = # WEATHER UNDERGROUND DATA wu_api_key = wu_station_id = wu_station_pwd = wu_reference_station_id = wu_cam_id = wu_cam_pwd = # OPEN WEATHER DATA ow_api_key = ow_station_id = # PWSWEATHER DATA pwsw_station_id = pwsw_api_key = # NARODMON DATA narodmon_name = ...
import os from subprocess import PIPE, Popen import numpy as np import pytest import vtk import vtki from vtki import examples from vtki.plotting import running_xserver TEST_DOWNLOADS = False try: if os.environ['TEST_DOWNLOADS'] == 'True': TEST_DOWNLOADS = True except KeyError: pass @pytest.mark.sk...
import math import os import re from dataclasses import dataclass from io import BytesIO from typing import Dict, Callable, Tuple from typing import List from typing import Optional from typing import Union from urllib.parse import parse_qs, urlparse import PIL import requests from PIL.Image import Image from asyncpra...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import re def find_longest(s): return max(re.findall(r'((\w+?)\2+)', s), key=lambda t: t[0].count(t[1])) if __name__ == '__main__': text = "helloworld world world hellohellohelloworldworld" print(find_longest(text)) # ('hellohell...
import frappe def execute(): # assuming all customization generated by Admin is system generated customization custom_field = frappe.qb.DocType("Custom Field") ( frappe.qb.update(custom_field) .set(custom_field.is_system_generated, True) .where(custom_field.owner == "Administrator") .run() ) property_se...
# 1. Pedirpor tecladodos números y decir si son iguales o no. numero1 = int(input("Ingrese un número: ")) numero2 = int(input("Ahora otro número: ")) if numero1 == numero2: print("Son iguales") else: print("No son iguales") # 2. Pedir por teclado 10 números. Mostrar la media de los números positivos, la media ...
import json import logging from django.conf import settings from minio import Minio from minio.error import MinioException, S3Error from urllib3.exceptions import RequestError logger = logging.getLogger(__name__) bucket_list = ["files", "cache"] if settings.ENABLE_PGP: bucket_list.append("pgp-keys") def get_re...
import time import logging from typing import List from spaceone.inventory.connector.aws_eip_connector.schema.data import ElasticIPAddress, ElasticIPAddressTags from spaceone.inventory.connector.aws_eip_connector.schema.resource import EIPResource, EIPResponse from spaceone.inventory.connector.aws_eip_connector.schema...
# Lint as: python2, python3 # Copyright 2018 The TensorFlow 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-...
class CryptoKeySecurity(NativeObjectSecurity): """ Provides the ability to control access to a cryptographic key object without direct manipulation of an Access Control List (ACL). CryptoKeySecurity() CryptoKeySecurity(securityDescriptor: CommonSecurityDescriptor) """ def AccessRuleFactory(self,id...
# -*- coding: utf-8 -*- """Resources package.""" __version__ = "0.1.1-dev.1"
# 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 may ...
#!/usr/bin/env python3 import sys from pynet import * a = Node() start() a.dbg(a.succeed("gluon-reconfigure")) finish()
from __future__ import print_function import argparse import torch.backends.cudnn as cudnn # import time,datetime from common import * from dataset_img2vox import * from model import * parser = argparse.ArgumentParser() parser.add_argument('--dataRoot', type=str, default='/data/dudong/ShapeNetCore.v1', help='data root...
from setuptools import setup, find_packages REQUIRED_PACKAGES = ['keras==2.1.3', 'h5py==2.7.1', 'xgboost'] # Setup parameters for GC ML Engine. setup(name='trainer', version='0.1', install_requires=REQUIRED_PACKAGES, packages=find_packages(), include_package_data=True, description='Train...
from django.contrib.auth.models import User from django.db import models from django.forms import ModelForm from forSale.models import Forslar # Create your models here. class ShopCart(models.Model): user = models.ForeignKey(User,on_delete=models.SET_NULL,null=True) product = models.ForeignKey(Forslar,on_dele...
""" onnxruntime backend (https://github.com/microsoft/onnxruntime) """ # pylint: disable=unused-argument,missing-docstring,useless-super-delegation import onnxruntime as rt import numpy as np import backend import torch class BackendOnnxruntime(backend.Backend): def __init__(self, m_spa, ln_emb, ln_bot, ln_top,...
"""Test Home Assistant ruamel.yaml loader.""" import os from tempfile import mkdtemp import pytest from ruamel.yaml import YAML from homeassistant.exceptions import HomeAssistantError import homeassistant.util.ruamel_yaml as util_yaml TEST_YAML_A = """\ title: My Awesome Home # Include external resources resources: ...
""" Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com 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, m...
import os import os.path as osp import shutil import json import numpy as np import glob import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle def may_make_dir(path): """ Args: path: a dir, e.g. result of `osp.dirname()` Note: `osp.exists('')` returns...
import re from flask import request, g, abort from flask_restplus import Resource, fields from pyinfrabox.utils import validate_uuid4 from pyinfraboxutils.ibflask import auth_required, OK from pyinfraboxutils.ibrestplus import api from pyinfraboxutils.secrets import encrypt_secret from api.namespaces import project a...
import os from pathlib import Path import valarpy from pocketutils.core.dot_dict import NestedDotDict class Context: def __init__(self): path = os.environ.get("VALARDAGGER_CONFIG", Path("/etc", "valardagger.toml")) self.config = NestedDotDict.read_toml(path) self.valar = valarpy.Valar() ...
# coding: utf-8 """ """ import importlib import os import typing def should_skip_by_index(db: typing.Any, index: int) -> bool: """ Returns whether or not a migration should be skipped due to its index. :param db: the database :param index: the migration index to check :return: whether or not th...
#!usr/bin/env python3 import zipfile # Create a new ZIP archive zfile = zipfile.ZipFile("archive.zip", "w") zfile.write("file1.txt") zfile.write("file2.txt") zfile.write("file3.txt") zfile.close() # Check validity of the file print(zipfile.is_zipfile("archive.zip")) # Read the properties of a ZIP archive zfile = zip...
""" *Font* A font is a mapping from a letter to a glyph. """ from typing import Mapping class Font( Mapping[Letter, Glyph], ): pass
class FilteredElementIterator(object, IEnumerator[Element], IDisposable, IEnumerator): """ An iterator to a set of element ids filtered by the settings of a FilteredElementCollector. """ def Dispose(self): """ Dispose(self: FilteredElementIterator) """ pass def GetCurrent(self): ...
"""!gif <search term> return a random result from the google gif search result for <search term>""" try: from urllib import quote except ImportError: from urllib.request import quote import re import requests from random import shuffle def unescape(url): # for unclear reasons, google replaces url escapes...
import itertools import numpy as np from transforms import flip_point # Decimal Code (R,G,B) _BASE_COLOR = { "RED": (255, 0, 0), "GREEN": (0, 255, 0), "BLUE": (0, 0, 255), "YELLOW": (255, 255, 0), "CYAN": (0, 255, 255), "MAGENTA": (255, 0, 255), } def pairwise(iterable): "s -> (s0,s1), (...
from __future__ import print_function from ROOT import TStyle, kWhite, kTRUE from ROOT import gROOT, gStyle from ROOT import kGray, kAzure, kMagenta, kOrange, kWhite from ROOT import kRed, kBlue, kGreen, kPink, kYellow from ROOT import TLine, TLatex, TColor from collections import namedtuple, OrderedDict from math imp...
# -*- coding: utf-8 -*- '''Base TestCase class for OSF unittests. Uses a temporary MongoDB database.''' import os import re import shutil import logging import unittest import functools import datetime as dt import blinker import httpretty from webtest_plus import TestApp from faker import Factory from nose.tools imp...
import pyblish.api from reveries import plugins class SelectUnknownNodes(plugins.MayaSelectInvalidContextAction): label = "Select Unknown" class DeleteUnknownNodes(plugins.RepairContextAction): label = "Clean Up" class ValidateNoAtomsUnknownNodes(pyblish.api.InstancePlugin): """ """ order ...
from userbot import bot from sys import argv import sys from telethon.errors.rpcerrorlist import PhoneNumberInvalidError import os from telethon import TelegramClient from var import Var from userbot.utils import load_module from userbot import LOAD_PLUG, BOTLOG_CHATID, LOGS from pathlib import Path import as...
import asyncio import logging import random from collections import OrderedDict, defaultdict from functools import partial from itertools import cycle from tlz import concat, drop, groupby, merge import dask.config from dask.optimization import SubgraphCallable from dask.utils import parse_timedelta, stringify from ...
import os import sys import ray import wandb from baselines.random_baseline import RandomBaseline from common.types import Verbosity from common.utils import get_date from experiments.config import Config from experiments.experiment import Experiment from games.mario.mario_game import MarioGame from games.mario.mario_l...
"""Test of the base attribute template.""" import pytest from gemd.entity.bounds.categorical_bounds import CategoricalBounds from gemd.entity.bounds.real_bounds import RealBounds from gemd.entity.value.uniform_real import UniformReal from gemd.entity.template.attribute_template import AttributeTemplate from gemd.entit...
import os MULTIPLIER_ADDRESS = os.environ.get('MULTIPLIER_ADDRESS', '0.0.0.0:5050') IP_ADDRESS = MULTIPLIER_ADDRESS.split(':')[0] PORT = int(MULTIPLIER_ADDRESS.split(':')[1])
import re import pytest import respx from httpx import Response from httpx_oauth.clients.microsoft import MicrosoftGraphOAuth2, PROFILE_ENDPOINT from httpx_oauth.errors import GetIdEmailError client = MicrosoftGraphOAuth2("CLIENT_ID", "CLIENT_SECRET") def test_microsoft_graph_oauth2_default_tenant(): assert (...
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
from __future__ import print_function import os import re import sys import xml.etree.ElementTree as ET try: from argparse import ArgumentParser except: print("Failed to import module 'argparse'. Upgrade to Python 2.7, copy argparse.py to this directory or try 'apt-get install python-argparse'") raise pa...
from PyInquirer import prompt operations = [{ 'type' : 'list', 'name' : 'operation1', 'message' : 'Choose operation', 'choices' : [ { 'name' : 'Say Hello', 'callback' : lambda x: [print("Hello!")] }, { 'name' : 'Say World', 'callb...
import os import pytest import db_conn as conn SSH_CONFIGURATION = { 'ssh_address_or_host': (os.environ.get('SSH_ADDRESS'), 22), 'ssh_username': os.environ.get('SSH_USERNAME'), 'ssh_password': os.environ.get('SSH_PASSWORD'), 'remote_bind_address': ('127.0.0.1', 5432), 'local_bind_address': ('127.0....
#!/usr/bin/python3 from brownie import * from brownie.network.contract import InterfaceContainer from brownie.network.state import _add_contract, _remove_contract import shared from munch import Munch deploys = Munch.fromDict({ "bZxProtocol": True, "PriceFeeds": True, "SwapsImpl": True, "ProtocolMigr...
# Copyright (c) 2017 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from . import VersionUpgrade26to27 from UM.i18n import i18nCatalog catalog = i18nCatalog("cura") upgrade = VersionUpgrade26to27.VersionUpgrade26to27() def getMetaData(): return { "version_upgrade": { ...
# coding: utf8 from __future__ import unicode_literals def add_codes(err_cls): """Add error codes to string messages via class attribute names.""" class ErrorsWithCodes(err_cls): def __getattribute__(self, code): msg = super(ErrorsWithCodes, self).__getattribute__(code) if cod...
# Copyright 2018 The glTF-Blender-IO 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 agree...
for i in range(12, 16): print(i) for i in range(0, 10, 2): print(i)
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from ...errors import CheckException from .. import AgentCheck from .mixins import OpenMetricsScraperMixin class OpenMetricsBaseCheck(OpenMetricsScraperMixin, AgentCheck): """ OpenMetricsBaseCheck is a c...
import os import requests import random import pprint import json from signalwire.rest import Client as signalwire_client from signalwire.voice_response import VoiceResponse, Say from flask import Flask,request app = Flask(__name__) # Var to store challenge session data = {} data['requests'] = [] # Lookup auth sess...
""" Tests are defined here """ # Uncomment when needed # from django.test import TestCase # Create your tests here.
import pytest from datetime import date from jira_analysis.throughput.issue import Issue, create_issue_with_config from jira_analysis.throughput.exceptions import IssueNotComplete from .helpers import get_config @pytest.fixture def config(): return get_config() @pytest.mark.parametrize( "key, completed, ...
""" The MIT License Copyright (c) 2017 OpenAI (http://openai.com) 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...
# Creating a window screen wn = turtle.Screen() wn.title("Snake Game") wn.bgcolor("blue") # the width and height can be put as user's choice wn.setup(width=600, height=600) wn.tracer(0) # head of the snake head = turtle.Turtle() head.shape("square") head.color("white") head.penup() head.goto(0, 0) head.direct...
# # Este arquivo é parte do programa multi_agenda # # Esta obra está licenciada com uma # Licença Creative Commons Atribuição 4.0 Internacional. # (CC BY 4.0 Internacional) # # Para ver uma cópia da licença, visite # https://creativecommons.org/licenses/by/4.0/legalcode # # WELLINGTON SAMPAIO - wsampaio@yahoo.com #...
# qubit number=4 # total number=39 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/3725.c') procedure('kernel_heat_3d') loop(0) known('n>3') pragma(0,2,"omp parallel ...
import unittest import wandb class TestWandB(unittest.TestCase): def test_version(self): self.assertIsNotNone(wandb.__version__)
def main(): n=int(input()) a=list(map(int, input()).split()) if __name__ == '__main__': t=int(input()) for _ in range(t): main()
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async.base.exchange import Exchange from ccxt.base.errors import ExchangeError class huobi (Exchange): def describe(self):...
import tensorflow as tf from baselines.her.util import store_args, nn class ActorCritic: @store_args def __init__(self, inputs_tf, dimo, dimg, dimu, max_u, o_stats, g_stats, hidden, layers, **kwargs): """The actor-critic network and related training code. Args: in...
########################################################################## # # Copyright (c) 2013, Image Engine Design 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: # # * Redistrib...
# encoding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_urllib_parse, ) class XNXXIE(InfoExtractor): _VALID_URL = r'^https?://(?:video|www)\.xnxx\.com/video(?P<id>[0-9]+)/(.*)' _TEST = { 'url': 'http://video.xnxx.com/video1135332/l...
""" Use this script to train your keras-yolo3 model on AML. """ import os import glob import shutil import json from azureml.core import Workspace, Experiment from azureml.core.compute import ComputeTarget, AmlCompute from azureml.core.compute_target import ComputeTargetException from azureml.core import Environment ...
import pandas as pd from apiclient.discovery import build from apiclient.errors import HttpError from twitter import Twitter, OAuth import settings import sys try: print('NiziU YouTube Notification System. Created by Murayu0225.') except Exception as e: print("Can't start program.") print(e) sys.exit(1) try: ...
from .base import BaseCollection class Medias(BaseCollection): """ Medias Collection """ def __init__(self, *args, **kwargs): """ Initialize the Collection Medias """ super().__init__(*args, **kwargs) self._next_max_id = None
import pytest from chatbot.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}/"
""" This file offers the methods to automatically retrieve the graph Kluyvera ascorbata. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-...