text
stringlengths
2
999k
from .wind_farm_wake import WindFarmWake from miniwake.rotation import rotate_and_sort_turbines as rotate_and_sort class WindFarm: def __init__( self, turbines, ambient_conditions, velocity_integrator, turbulence_integrator, apply_meander): ...
from django.apps import AppConfig class MailmanConfig(AppConfig): name = 'mailman'
import collections import functools import itertools import math import os import platform from contextlib import contextmanager import re import numpy as np import torch as th import torch.distributed as dist import torch.distributions as dis import torch.nn.functional as F from . import logger from mpi4py import MPI...
# pylint: disable=W0223 import textwrap import warnings import numpy as np from pandas._libs.indexing import _NDFrameIndexerBase from pandas._libs.lib import item_from_zerodim from pandas.errors import AbstractMethodError from pandas.util._decorators import Appender from pandas.core.dtypes.common import ( ensure...
# This file is part of beets. # Copyright 2015, Adrian Sampson. # # 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, ...
# # Copyright 2015 University of Southern California # Distributed under the (new) BSD License. See LICENSE.txt for more info. # from distutils.core import setup setup( name="videoMarker", description="Script for converting a scan to DZI pyramidal tiles", version="0.1-prerelease", scripts=[ "...
# -*- coding: utf-8 -*- """ Microsoft-Windows-EapMethods-RasChap GUID : 58980f4b-bd39-4a3e-b344-492ed2254a4e """ from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid f...
"""Utilities package for NDG XACML NERC DataGrid """ __author__ = "P J Kershaw" __date__ = "02/04/09" __copyright__ = "" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk" __revision__ = '$Id$' from collections.abc import MutableMapping # Interpret a string as a b...
"""lab3_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
# GNU GPL header # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the im...
""" The __init__ file for Knotty is responsible initiating the monitors handled by the Knotty object in the core module """ from knotty import core __all__ = ["core", "exporters", "meters", "registry"] core.Knotty.initiate_monitors()
""" Unit tests for GasPriceOracle queries. Copyright (c) 2021-, Tellor Development Community Distributed under the terms of the MIT License. """ from eth_abi import decode_abi from telliot_core.queries.gas_price_oracle import GasPriceOracle def test_query_constructor(): """Validate GasPriceOracle query.""" ...
# coding=utf-8 # Copyright 2018 The TF-Agents 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...
############################################################################# # # VFRAME # MIT License # Copyright (c) 2020 Adam Harvey and VFRAME # https://vframe.io # ############################################################################# import logging import random import math from dataclasses import datacla...
class Solution: def stoneGameVII(self, stones: List[int]) -> int:
""" Django settings for djangosite project. Generated by 'django-admin startproject' using Django 2.1.6. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os...
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
import os import sys from pyemd import emd_samples import numpy as np import subprocess as sp import re import logging import argparse from plyfile import PlyData, PlyElement import glob logging.basicConfig( level=logging.INFO, format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)...
from google.auth.transport.requests import AuthorizedSession # type: ignore import json # type: ignore import grpc # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.api_core import exceptions as core_...
""" WSGI config for inventory_tracker_34421 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefau...
# Generated by Django 3.1.3 on 2021-01-03 20:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('book_catalog', '0019_book_damage_description'), ] operations = [ migrations.AddField( model_name='book', name='retur...
# Generated by Django 4.0.2 on 2022-02-22 08:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import spid_cie_oidc.entity.validators class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(se...
# Copyright (C) 2019 Intel Corporation # # SPDX-License-Identifier: MIT from glob import glob import logging as log import os.path as osp from datumaro.components.extractor import Importer from .format import CvatPath class CvatImporter(Importer): EXTRACTOR_NAME = 'cvat' @classmethod def detect(cls, ...
# Generated by Django 2.1.1 on 2018-12-06 20:08 import datetime import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ideas', '0007_auto_20181028_0303'), ] operations = [ migrations.AlterField( ...
import os import logging import time import uuid import threading from .util import stack_template_key_name from .exceptions import ( GraphError, PlanFailed, ) from .ui import ui from .dag import DAG, DAGValidationError, walk from .status import ( FailedStatus, PENDING, SUBMITTED, COMPLETE, ...
import sys, os try: if "JCC_JDK" in os.environ: print ('JCC_JDK = ', os.environ['JCC_JDK']) import jcc tmp = jcc.initVM() print ("JCC test OK") print ('java version', tmp.java_version) except ImportError: print ('JCC Import Error') raise except: print ('JCC error. Likely you...
# Copyright 2022 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, ...
# Copyright (c) 2019-2021, Manfred Moitzi # License: MIT License from typing import TYPE_CHECKING import logging from ezdxf.lldxf.attributes import ( DXFAttr, DXFAttributes, DefSubclass, XType, RETURN_DEFAULT, group_code_mapping, ) from ezdxf.lldxf.const import DXF12, SUBCLASS_MARKER from ezdxf....
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RSitmo(RPackage): """Parallel Pseudo Random Number Generator (PPRNG) 'sitmo' Header Files....
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the audacity pipe. Keep pipe_test.py short!! You can make more complicated longer tests to test other functionality or to generate screenshots etc in other scripts. Make sure Audacity is running first and that mod-script-pipe is enabled before running this scrip...
""" Get and set environment variables in deployed lambda functions using the SSM param store variable named "environment". """ import os import sys import select import json import argparse import logging import typing from botocore.exceptions import ClientError from dss.operations import dispatch from dss.operations...
""" CanICA """ # Author: Alexandre Abraham, Gael Varoquaux, # License: BSD 3 clause import warnings as _warnings import numpy as np from operator import itemgetter from scipy.stats import scoreatpercentile from sklearn.decomposition import fastica from joblib import Memory, delayed, Parallel from sklearn.utils impo...
import torch import torch.nn as nn class MLP(nn.Module): def __init__(self, cfg): super(MLP, self).__init__() self.input_dim = cfg.DYNAMIC_FILTER.MLP.INPUT_DIM self.output_dim = cfg.DYNAMIC_FILTER.MLP.OUTPUT_DIM self.mlp = nn.Sequential( nn.Linear(self.inpu...
""" Functions for reading and writing pdbs """ import numpy as np def open_pdb(f_loc): # This function reads in a pdb file and returns the atom names and coordinates. with open(f_loc) as f: data = f.readlines() c = [] sym = [] for l in data: if "ATOM" in l[0:6] or "HETATM" in l[0:6...
import matplotlib.pyplot as plt xs = [-10, 10, 10, -10, -10] ys = [-10, -10, 10, 10, -10] plt.plot(xs, ys, '.-', lw=5, ms=20) plt.grid(alpha=.5, ls='--') plt.gca().axis('equal') plt.show()
# -*- coding: utf-8 -*- # Copyright (c) 2018, masonarmani38@gmail.com and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class LogisticsPlanningTool(Document): def autoname(self): if self.cust...
# Generated by Django 3.1.8 on 2021-04-28 22:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("group", "0007_auto_20210428_2149"), ] operations = [ migrations.AlterField( model_name="group", name="description", ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=17 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode def make_circuit(n: int, input_qubit): c = cirq.Ci...
import tensorflow as tf import numpy as np import subprocess import json import pandas as pd def scale_panda(panda, factor, bias): if isinstance(panda, pd.Series): filter = panda.index if isinstance(panda, pd.DataFrame): filter = panda.columns panda = factor[filter] * panda + bias[filter] ...
from django import forms from .models import Reply class ReplyForm(forms.ModelForm): class Meta: model = Reply fields = ['reply']
from dropbox import Dropbox from dropbox import DropboxOAuth2Flow from dropbox.oauth import NotApprovedException, ProviderException, CsrfException, BadStateException, BadRequestException from flask import Flask, render_template, session, redirect, abort, url_for, request, jsonify from rq import Queue from secrets impor...
import os import appdirs import configparser def initialize_config(fname): config = configparser.ConfigParser() config.add_section('URLS') config.set('URLS', 'SITEURL', "http://phenocam.sr.unh.edu/webcam/roi/roilistinfo/?format=csv") config.set('URLS', 'ROIURL', "http://phenocam.sr.unh.edu/da...
fin = open('words.txt') def senzaE(parola): i = 0 lunghezza = (len(parola))-1 while i <= lunghezza: a = parola[lunghezza] if ord(a) == 69 or ord(a) == 101: return False else: lunghezza = lunghezza-1 return True def trovaLeE(): for line in fin: ...
# 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 ...
#!usr/bin/env python3 from data_structures.stack import Stack # In this challenge, your prompt is to create a function that takes in a # string of symbol pairs as a parameter. # The function should return true if the symbol string is balanced or # false if it isn't. # In order for symbols to be balanced, each opening ...
from .development import *
from __future__ import print_function import tensorflow as tf from edward.util import get_dims def test_get_dims_scalar(): x = tf.constant(0.0) assert get_dims(x) == [1] def test_get_dims_1d(): x = tf.zeros([2]) assert get_dims(x) == [2] def test_get_dims_2d(): x = tf.zeros([2, 2]) assert ge...
import logging from typing import TYPE_CHECKING from discord import Color from discordmenu.emoji.emoji_cache import emoji_cache from redbot.core import commands from redbot.core.utils.chat_formatting import pagify from dungeoncog.enemy_skills_pb2 import MonsterBehavior from dungeoncog.menu.dungeon import DungeonMenu ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2019 Adrian Englhardt <adrian.englhardt@gmail.com> # Licensed under the MIT License - https://opensource.org/licenses/MIT
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # 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 derivative wo...
import re import pytest from click.testing import CliRunner from commands.test_results import cli as results from commands.status import cli as status from commands.logout import cli as logout from tests.helpers.test_utils import * @pytest.mark.results @pytest.mark.usefixtures("neoload_login") # it's like @Before o...
# This program accesses all the chessboard image files and identifies which one # is suitable to do the camera calibration. The original raw images are in the # folder called calibration_pictures and the image file names are in the format # left_xx.ppm for images taken by left camera and right_xx.ppm for images taken #...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import res_partner from . import website
# qubit number=4 # total number=32 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...
import argparse import numpy as np import matplotlib import matplotlib.pyplot as plt from scipy.optimize import curve_fit from scipy.signal import argrelmax import os import sys import shutil from scipy.stats import norm,genpareto,invgauss,lognorm,t,rayleigh,weibull_min,weibull_max,gamma,burr,expon,kstest ############...
# -*- coding: utf-8 -*- import hashlib import random def random_password(): tmp = random.randrange(1000000, 9999999) tmp2 = str(tmp) m = hashlib.md5() m.update(tmp2) return (str(m.hexdigest()), tmp2) def encryptor(password): m = hashlib.md5() m.update(password) return str(m.hexdigest...
# -*- coding: utf-8 -*- """Public forms.""" from flask_wtf import FlaskForm from wtforms import PasswordField, StringField from wtforms.validators import DataRequired from personalWebsiteFlask.user.models import User class LoginForm(FlaskForm): """Login form.""" username = StringField('Username', validators...
# 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, overload from .. import _utilities from...
import unittest from sqlalchemy import create_engine from pyramid.config import Configurator from pyramid_sqlalchemy import includeme from pyramid_sqlalchemy import init_sqlalchemy from pyramid_sqlalchemy import Session class test_init_sqlalchemy(unittest.TestCase): def test_basic_sqlite(self): engine = c...
class Component(): """ This class represents the component that will be decorated with new responsibilities """ _name = None _age = None def __init__(self, name, age): self._name = name self._age = age def get_name(self): return self._name ...
import os import argparse import subprocess from os.path import expanduser main_logo = """ _____ _ _ _____ _ _ _ / ____| | | | |_ _| | | | | | | | __| |_ _ _ __ | |__ | | _ __ ___| |_ __ _| | | ___ _ __ | | |_ | | | | | '_ \| '_ \ | | ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Core chiron library function Defines the Message object for protocol modules to subclass, a standard collection of fetcher functions, and the core MatchEngine. """ from __future__ import print_function, unicode_literals import datetime import os import re import sys...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE """build query for doclistview and return results""" from typing import List import frappe.defaults from frappe.query_builder.utils import Column import frappe.share from frappe import _ import frappe.permissions from date...
# def _site_packages(): # import site, sys, os # paths = [] # prefixes = [sys.prefix] # if sys.exec_prefix != sys.prefix: # prefixes.append(sys.exec_prefix) # for prefix in prefixes: # if prefix == sys.prefix: # paths.append(os.path.join("/Library/Python", sys.version[:3], "site-packages")) # paths.appen...
import logging import re from itertools import count, repeat, chain import operator from collections import namedtuple, defaultdict, OrderedDict from cli_helpers.tabular_output import TabularOutputFormatter from pgspecial.namedqueries import NamedQueries from prompt_toolkit.completion import Completer, Completion, Path...
""" Solutions for https://adventofcode.com/2020/day/22 """ # import modules used below. from collections import deque, UserDict import re # Part 1: After Combat is played with the Space Card decks in the provided data # file, what is the winning player's score? # Create data model for space-card decks and games. c...
# # General TensorFlow made-easy tools, primary focused on architecture building. # # Copyright (C) 2017, IDEAConsult Ltd. # Author: Ivan (Jonan) Georgiev """ The TensorFlow persistent provides this, placeholder class: @@RestoredModel @@WrappedModel """ import tensorflow as tf from tensorflow.python.platform import ...
# coding: utf-8 from django.conf import settings from django.core.paginator import Paginator, EmptyPage from django.db.models import Count from django.shortcuts import render from django.views.generic import ListView from haystack.query import SearchQuerySet from richard.videos.models import Speaker, Category, Video, T...
import logging from sys import stdout class Logger: def __init__(self): self.logger = logging.getLogger("discord") self.logger.setLevel(logging.INFO) self.logger.addHandler(self._get_console_handler()) def _get_console_handler(self): """ Returns console handler which outputs ...
#!/usr/bin/env python2.7 # example # Upload a new widget to the available widget library # # Author: Slavik Markovich # Version: 1.0 # import json import argparse import demisto def p(what): if verbose: print(what) def options_handler(): parser = argparse.ArgumentParser( descrip...
import boto3 import json import os import urllib3 from botocore.exceptions import ClientError API_KEY = os.environ['CRYPTOCOMPARE_API_KEY'] FROM_EMAIL = os.environ['FROM_EMAIL'] TO_EMAIL = os.environ['TO_EMAIL'] def send_email(client, message): SUBJECT = 'Crypto Price Alert' response = None try: ...
from prolog.builtin.register import expose_builtin from prolog.interpreter import continuation @expose_builtin("trace", unwrap_spec=[]) def impl_trace(engine, heap): pass @expose_builtin("notrace", unwrap_spec=[]) def impl_notrace(engine, heap): pass
# -*- coding: utf-8 -*- """ *************************************************************************** test_overlay.py --------------------- Date : December 2018 Copyright : (C) 2018 by Anita Graser Email : anitagraser@gmx.at ******************************...
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Mesquite(AutotoolsPackage): """Mesquite (Mesh Quality Improvement Toolkit) is desi...
#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, so...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in riadco/__init__.py from riadco import __version__ as version setup( name='riadco', version=version, description='riadc...
from .models import Order from products.models import Product def add_variable_to_context(request): if request.user.is_authenticated: filtered_orders = Order.objects.filter(is_ordered=False, owner=request.user.user_profile) current_order_products = [] if filtered_orders.exists(): ...
# coding: utf-8 # Copyright (c) ByteDance, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import numpy as np import random from sklearn import metrics from munkres import Munkres import torch from...
from itertools import combinations from itertools import count import numpy as np def find_best_matching(candidates, matchings_history, penalty_func=None): """Find best (matching) candidate from list given some metric. Args: candidates (list): List of matching candidates. matchings_history (...
#!/usr/bin/env python # typelib.py - Generate XPCOM typelib files from IDL. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """Generate an XPIDL typelib for the IDL f...
import setuptools setuptools.setup( name='ges', version='1.0.6', author='Juan L Gamella', author_email='juangamella@gmail.com', packages=['ges', 'ges.test', 'ges.scores'], scripts=[], url='https://github.com/juangamella/ges', license='BSD 3-Clause License', description='Python imple...
import csv import ast class TableReader(): def __init__(self, csv_filename): table = open(csv_filename, newline='') self.reader = csv.DictReader(table, delimiter=';') def read_item(self): for item in self.reader: evaluated_item = {} for key, value...
import argparse import os import json import sys import cv2 import numpy as np def create_flow2img_dir(phase_dir=None, subdir=None, output_dir=None, input_dir=None): """ Args: phase_dir: The directory of directory of flow npys. subdir: The particular subdir within that phase_dir output_dir:...
# # PySNMP MIB module FOKUS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FOKUS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:20:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
import json from django.apps import AppConfig from django.urls import reverse from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = "froide.problem" verbose_name = _("Problems") def ready(self): from froide.account.export import registry from froid...
# coding: utf-8 import os import json from datetime import datetime import uuid from tornado import web from tornado import ioloop from tornado.web import Application from tornado.websocket import WebSocketHandler import tasks import tcelery import redis from redis_collections import Dict tcelery.setup_nonblocking...
# Copyright 2013 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. { 'targets': [ { 'target_name': 'cast_transport', 'type': 'static_library', 'include_dirs': [ '<(DEPTH)/', ], 's...
# (c) 2014, Brian Coca, Josh Drake, et al # # This file is part of Ansible # # Ansible 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 3 of the License, or # (at your option) any later version. ...
# # Copyright 2015 SUSE 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, softw...
import requests from data import ui def consultar(): Sair = False while(Sair == False): crm_input = ui.input_dialog('Digite o CRM.') uf_input = ui.input_dialog('Digite o UF.') token = 5072097263 try: crm_data = requests.get('https://www.consultacrm.com.br/api...
#! /usr/bin/env python3 # # # Francisco Yumiceva # yumiceva@fnal.gov # # Fermilab, 2010 # #____________________________________________________________ from __future__ import print_function from builtins import range import sys import math import subprocess from array import array from ROOT import * def main(): ...
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 30, transform = "BoxCox", sigma = 0.0, exog_count = 20, ar_order = 12);
# -*- coding: utf-8 -*- r""" ________ __________________________ ___ __ \__________ /_____ /__(_)_ /_ __ /_/ / _ \ __ /_ __ /__ /_ __/ _ _, _// __/ /_/ / / /_/ / _ / / /_ /_/ |_| \___/\__,_/ \__,_/ /_/ \__/ ________ _____ ______ ___ __/__________________ ______...
from .load_data_people import load_people def mean_inc_gm(file1, file2): df = file1 data_lud = load_people.load_gm(file2) df = df.join(data_lud["ludnosc"], how='inner') df = average_income(df) return df def mean_inc_pow(file1, file2): df = file1 data_lud = load_people.load_pow(file2) ...
# -*- coding: utf-8 -*- # # Chef documentation build configuration file, created by # sphinx-quickstart on Wed Feb 22 13:50:49 2012. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show th...
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-12-25 16:46 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music', '0001_initial'), ] operations = [ migrations.AddField( ...
def PE_004(): max = 0 curr = 0 for num1 in range (100, 1000, 1): for num2 in range(100, 1000, 1): curr = num1 * num2 if (str(curr) == str(curr)[::-1] and curr > max): max = curr return max print (PE_004())
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-11-30 08:42 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('carts', '0001_initial'), ] operations = [ migrations.AddField( ...
import itertools as it from collections import namedtuple from typing import Dict, List, Optional, Union, NamedTuple import torch from torchaudio._torchaudio_decoder import ( _CriterionType, _LM, _KenLM, _LexiconDecoder, _LexiconDecoderOptions, _SmearingMode, _Trie, _Dictionary, _cr...
""" WSGI config for back_front project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...