text
stringlengths
2
999k
from .energy_loss import *
import mysql.connector import nltk import sys nltk.data.path.append("/home/vivienpou/Documents/DataLinuxWCS/Projet/bordeaux-0918-js-winespace/pythonscripts/venv/lib/python3.6/site-packages/nltk_data") from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from postaglist import postagliste_en ##LEMAT...
from werkzeug.contrib import fixers from werkzeug.datastructures import ResponseCacheControl from werkzeug.http import parse_cache_control_header from werkzeug.test import Client from werkzeug.test import create_environ from werkzeug.wrappers import Request from werkzeug.wrappers import Response @Request.application ...
from AppKit import NSPoint from mojo.events import MeasurementTool measurement = MeasurementTool.measurementClass() measurement.startPoint = NSPoint(100, 100) measurement.endPoint = NSPoint(200, 200) g = CurrentGlyph() g.naked().measurements.append(measurement) g.update()
"""Common fixtures for smarttub tests.""" from unittest.mock import create_autospec, patch import pytest import smarttub from homeassistant.components.smarttub.const import DOMAIN from homeassistant.const import CONF_EMAIL, CONF_PASSWORD from homeassistant.setup import async_setup_component from tests.common import...
""" Copyright 2013 UW Information Technology, University of Washington 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 require...
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <dm@sweetrpg.com>" """ """ from sweetrpg_library_objects.model.publisher import Publisher import json from datetime import datetime publisher_json = """ { "_id": "this-is-ignored", "name": "Cheap League", "created_at": "2021-09-14T20:05:00.001", "c...
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
from django.shortcuts import get_object_or_404 from django.contrib.auth import get_user_model from datetime import datetime, timedelta from rest_framework.response import Response from rest_framework.status import HTTP_400_BAD_REQUEST from rest_framework.exceptions import NotFound from core.authentication import gene...
from construct.lib.py3compat import * import re globalPrintFullStrings = False globalPrintFalseFlags = False globalPrintPrivateEntries = False def setGlobalPrintFullStrings(enabled=False): r""" When enabled, Container __str__ produces full content of bytes and unicode strings, otherwise and by default, it p...
from matplotlib import pyplot as plt from ml_tooling.plots import plot_residuals, plot_prediction_error from ml_tooling.plots.viz.baseviz import BaseVisualize from ml_tooling.config import config class RegressionVisualize(BaseVisualize): """ Visualization class for Regression models """ def residual...
""" This module lets you experience the POWER of FUNCTIONS and PARAMETERS. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Aaron Wilkin, their colleagues, and Aaryan Khatri. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg def main(): """ Calls the other...
# Copyright (c) 2021 lsina. All rights reserved. # # Google Kick Start 2021 Round A - Problem B. L Shaped Plots # https://codingcompetitions.withgoogle.com/kickstart/round/0000000000436140/000000000068c509 # # Time: O(R * C) # Space: O(min(R, C)) # def count(x, y): return max((min(x//2, y)-1) + (min(x, y//2)-1), ...
from ..Script import Script class PauseAtHeightRepRapFirmwareDuet(Script): def getSettingDataString(self): return """{ "name": "Pause at height for RepRapFirmware DuetWifi / Duet Ethernet / Duet Maestro", "key": "PauseAtHeightRepRapFirmwareDuet", "metadata": {}, ...
# -*- coding: utf-8 -*- # 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 # "...
from insights.core import Syslog from insights.tests import context_wrap MSGINFO = """ Apr 22 10:35:01 boy-bona CROND[27921]: (root) CMD (/usr/lib64/sa/sa1 -S DISK 1 1) Apr 22 10:37:32 boy-bona crontab[28951]: (root) LIST (root) Apr 22 10:40:01 boy-bona CROND[30677]: (root) CMD (/usr/lib64/sa/sa1 -S DISK 1 1) Apr 22 1...
# Generated from ./JavaParserModified.g4 by ANTLR 4.6 from antlr4 import * if __name__ is not None and "." in __name__: from .JavaParserModified import JavaParserModified else: from JavaParserModified import JavaParserModified # This class defines a complete listener for a parse tree produced by JavaParserModi...
import unittest from smtm import Worker from unittest.mock import * import requests class WorkerTests(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_post_task_put_task_correctly(self): worker = Worker("robot") worker.task_queue = MagicMock() ...
import functools import paddle import paddle.nn as nn import paddle.nn.functional as F class Registry(object): """ The registry that provides name -> object mapping, to support third-party users' custom modules. To create a registry (inside segmentron): .. code-block:: python BACKBONE_REGISTRY...
import pytest from helpers.cluster import ClickHouseCluster from helpers.test_tools import assert_eq_with_retry cluster = ClickHouseCluster(__file__) node1 = cluster.add_instance('node1', with_zookeeper=True, image='yandex/clickhouse-server', tag='20.1.10.70', with_installed_binary=True,...
import random_order
# Generated by Django 3.0.4 on 2020-04-10 09:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Achievements', '0003_auto_20200407_1135'), ] operations = [ migrations.RemoveField( model_name='achievement', name='...
import os import hashlib import pickle import argparse import os class Tree(object): # This class is implemented by https://github.com/dasguptar/treelstm.pytorch/blob/master/treelstm/tree.py def __init__(self): self.parent = None self.num_children = 0 self.children = list() def add_child(self, child): chil...
# -*- coding: utf-8 -*- # # ramstk.Configuration.py is part of The RAMSTK Project # # All rights reserved. # Copyright 2007 - 2017 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com """Configuration information and methods for RAMSTK.""" # Standard Library Imports import gettext import glob import sys # pylin...
from scripts.python.data_loader import CORE50 import torch from tqdm import tqdm from faiss_knn import knn import cv2 as cv import numpy as np from torchvision import transforms from sklearn.metrics import confusion_matrix import os import pathlib import wandb from umap import UMAP import matplotlib.pyplot as plt imp...
# ------------------------------------------------------------------------------ # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # # ------------------------------------------------------------------------------ # Copyright (C) 2017 EOX IT Services GmbH # # Permission...
from flask import Flask, request, render_template, make_response from flask_sqlalchemy import SQLAlchemy import os app = Flask(__name__) app.config.from_object(os.environ['APP_SETTINGS']) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) from models import Listing @app.route("/", methods=['...
# my_mod.py def enlarge(n): """ Param n is a number Function will enlarge the number """ return n * 100 if __name__ == "__main__": # only run the code below if executing the script from the # command line, otherwise don't run it, like if you are # importing the function x = 5 ...
""" ASGI config for portfolio_backend_django project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefa...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import ray import numpy as np # Test simple functionality @ray.remote(num_return_vals=2) def handle_int(a, b): return a + 1, b + 1 # Test timing @ray.remote def empty_function(): pass @ray.remote d...
# app/auth/forms.py # coding: utf-8 from flask_wtf import FlaskForm from wtforms import PasswordField, StringField, SubmitField, ValidationError from wtforms.validators import DataRequired, Email, EqualTo from app.models import Usuario class RegistrationForm(FlaskForm): """ Formulario para regis...
# Programme pour connaaitre lheure quil fait import datetime thetime = datetime.datetime.now() print(f'Nous sommes le {thetime}')
"""Support for monitoring the local system.""" from __future__ import annotations import asyncio from dataclasses import dataclass from datetime import datetime, timedelta from functools import lru_cache import logging import os import socket import sys from typing import Any, cast import psutil import voluptuous as ...
# ------------------------------------------------------------------------------ # File: app.py # Author: Jan Kukacka # Date: 3/2021 # ------------------------------------------------------------------------------ # App interface - processes inputs, starts GUI, returns output # -------------------------------------...
# coding: utf-8 # # Redlining, Race-Exclusive Deed Restriction Language, and Neighborhood Racial Composition in Houston # ## 2202PHW Final Project # ### Aislyn Schalck, 08-12-2020 # # # Note that this isn't the only explainatory text. This project has text commentary interspaced throughout the code/graphs. # # # Pr...
""" Second module """ def func2(): return 2 def func3(): return 3
#!/usr/bin/python import MySQLdb import ConfigParser config = ConfigParser.RawConfigParser() config.read('/data0/etl/spoon/.kettle/kettle.properties') host_name=config.get('BI','BI_DB_HOST') host_port=int(config.get('BI','BI_DB_PORT')) user_name=config.get('BI','BI_DB_USERNAME') user_passwd=config.get('BI','BI_DB_P...
""" Tests for tag parsing. """ import pytest from test import script as get_script # noinspection PyProtectedMember def _setup_for_test_tag_from_stripped_line(): """Gets test cases and generates IDs for statement tags.""" # get script with tag test cases script = get_script(script_name="no_ta...
'''Crie um programa onde o usuário possa digitar sete valores numéricos e cadastre-os em uma lista única que mantenha separados os valores pares e ímpares. No final, mostre os valores pares e ímpares em ordem crescente.''' numero = [[], []] valor = 0 for contador in range(1, 8): valor = int(input(f'Digite o {conta...
#!/usr/bin/python ################################################################################ # 20b6cef2-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
import flask from flask import request, jsonify from flask_cors import CORS import json import sys app = flask.Flask(__name__) CORS(app) @app.route('/order', methods=['POST']) def subscriber(): print(request.json, flush=True) return json.dumps({'success':True, 'message': 'accept order'}), 200, {'ContentType':...
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
"""Provide methods to bootstrap a Home Assistant instance.""" import asyncio import logging import logging.handlers import os import sys from time import time from collections import OrderedDict from typing import Any, Optional, Dict, Set import voluptuous as vol from homeassistant import core, config as conf_util, c...
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import socket import struct import hashlib import threading import urllib import urllib2 import json import uuid import time import sys import re __author__ = 'JingqiWang' reload(sys) sys.setdefaultencoding('utf-8') def welcome(): def filter_tag(tag): ...
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_9_0_0.models.subnet...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016, 2017 Guenter Bartsch # # 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 # # TH...
# Jeff Heaton's Kaggle Utilities # Copyright 2019 by Jeff Heaton, Open Source, Released under the Apache License # For more information: https://github.com/jeffheaton/jh-kaggle-util # # This is used to determine feature importance using the feature perturb algorithm import jhkaggle import jhkaggle.util import jhkaggle...
#!/usr/bin/env python3 """IP4 VRF Multi-instance Test Case HLD: **NOTES:** - higher number of pg-ip4 interfaces causes problems => only 15 pg-ip4 \ interfaces in 5 VRFs are tested - jumbo packets in configuration with 15 pg-ip4 interfaces leads to \ problems too **config 1** - add 15 pg-ip4 interf...
# buildifier: disable=module-docstring DEFAULT_REPOSITORY_TEMPLATE = "https://crates.io/api/v1/crates/{crate}/{version}/download" def _crate_universe_resolve_impl(repository_ctx): """Entry-point repository to manage rust dependencies. General flow is: - Serialize user-provided rule attributes into JSON ...
# -*- coding: utf-8 -*- # # 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 #...
from starlette.endpoints import HTTPEndpoint from charlette.utils import render_response class TemplateEndpoint(HTTPEndpoint): template_name = None context_data = {} def get(self, request): return render_response(self.template_name, context=self.context)
""" Definition of ListNode class ListNode(object): def __init__(self, val, next=None): self.val = val self.next = next """ class Solution: """ @param head: The first node of linked list. @param x: an integer @return: a ListNode """ def partition(self, head, x): # wri...
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# ## Program: My Angle 1 ## Filename: myAngle1.py ## Author: 0m3g4b1u3 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# class Angle(): def __init__(self, degree): self._degree = float(degree) def __str__(self): rString = "Measure:...
"""Utilities related to Keras unit tests.""" import numpy as np from numpy.testing import assert_allclose import inspect import six from ..engine import Model, Input from ..models import Sequential from ..models import model_from_json from .. import backend as K def get_test_data(nb_train=1000, nb_test=500, input_sh...
from django.http import HttpResponse def movie(request): return HttpResponse("电影首页")
#!/usr/bin/python import argparse import os import numpy as np from dolfyn.adv.rotate import orient2euler import dolfyn.adv.api as avm from dolfyn.adv.motion import correct_motion # TODO: add option to rotate into earth or principal frame (include # principal_angle_True in output). script_dir = os.path.dirname(__fil...
""" .. module: lemur.sources.service :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ import arrow from datetime import timedelta import copy from flask import current_app fr...
# Copyright 2013-2016 The Salish Sea MEOPAR contributors # and The University of British Columbia # 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...
# Copyright 1997 - 2018 by IXIA Keysight # # 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, p...
import glob import random import os os.environ['CUDA_VISIBLE_DEVICES'] = '4' import torch import torch.nn as nn import numpy as np from torch.utils.data.dataset import random_split from torch.utils.data import DataLoader import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler import torch.nn as nn i...
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import sys from kombu.serialization import (registry, register, SerializerNotInstalled, raw_encode, register_yaml, register_msgpack, ...
import curses import unicodedata from collections import ChainMap from contextlib import contextmanager def remove_control_characters(text): return ''.join(char for char in text if unicodedata.category(char)[0] != "C") class EOLReached(Exception): def __init__(self, buffer): self.buffer = buffer ...
#!/usr/bin/env python """ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import os import random import re import subprocess import string import sys import types from lib.core.datatype import AttribDict from lib.core.enums import DBMS from lib.co...
""" Rename, remove files """ import os import magic from tqdm import tqdm import json with open('config/download.json') as json_file: config = json.load(json_file) QueryFilters = config['QueryFilters'] # Rename folders in data base = os.getcwd() + "/data/" for f in os.listdir("./data"): if f == ".DS_Store": ...
#!/usr/bin/env python3 from setuptools import setup # skill_id=package_name:SkillClass PLUGIN_ENTRY_POINT = 'skill-audio-anarchy.jarbasai=skill_audio_anarchy:AudioAnarchySkill' setup( # this is the package name that goes on pip name='ovos-skill-audio-anarchy', version='0.0.1', description='ovos audio ...
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
#! /usr/bin/env python from astrometry.util.fits import * from astrometry.util.starutil_numpy import * from astrometry.util.find_data_file import * #from astrometry.util.sip import * from astrometry.util.sdss_filenames import * from os.path import basename,dirname import numpy as np class RaDecToRcf(object): def __...
import json with open("discreteconceptmapfinal.json", "r") as data: digraph_data = json.load(data) output_data = {} edges = {} # set the edges for edge in digraph_data["edges"]: # edges.setdefault( str(edge["source"]) , []).append(str(edge["target"])) edges.setdefault( str(edge["ta...
# -*- coding:utf-8 -*- import sys from owlmixin import OwlMixin, TOption from owlmixin.owlcollections import TList from jumeaux.addons.final import FinalExecutor from jumeaux.utils import jinja2_format, get_jinja2_format_error, when_optional_filter from jumeaux.logger import Logger from jumeaux.models import FinalAd...
# -*- coding: utf-8 -*- from contextlib import suppress import logging import sys from typing import Any, Dict, List, Optional, Tuple, Type, Union from flask_appbuilder._compat import as_unicode from flask_appbuilder.const import ( LOGMSG_ERR_DBI_ADD_GENERIC, LOGMSG_ERR_DBI_DEL_GENERIC, LOGMSG_ERR_DBI_EDIT...
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
""" Prints the code/text of any file with syntax-highlighting Usage: automation print [FILE] [OPTIONS] OR: sdet print [FILE] [OPTIONS] Options: -n (Add line Numbers to the rows) Output: Prints the code/text of any file with syntax-highlighting. """ import colorama import o...
# Copyright 2019 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. import tempfile from telemetry.core import util from telemetry.internal import forwarders from telemetry.internal.forwarders import forwarder_utils class ...
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
import os from setuptools import find_packages, setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='site-configuration-client', version='0.1.11', description='Python client library for Site Configuration API', long_description=read('README.rst')...
# Copyright (c) 2021 Works Applications 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 a...
# # Copyright (c) 2015 Intel Corporation # # 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 t...
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class GenericResource(BaseModel): """NOTE: This class...
# --------------------------------------------------------------------------- # calc.py # sudo pip install ply # A simple calculator with variables. This is from O'Reilly's # "Lex and Yacc", p. 63. # --------------------------------------------------------------------------- import sys if sys.version_info[0] >= 3: ...
import fbprophet from fbprophet.diagnostics import cross_validation, performance_metrics from . import plots class Prophet: def __init__(self, **kwargs): self.prophet = fbprophet.Prophet(**kwargs) def fit(self, df, **kwargs): self.prophet.fit(df, **kwargs) def make_future_dataframe(self...
import re from django.core.cache.backends.locmem import LocMemCache __author__ = "Alex Laird" __copyright__ = "Copyright 2019, Helium Edu" __version__ = "1.4.39" class LocMemKeysCache(LocMemCache): """ Extends the generic in-memory cache to support the querying of keys, similar to how a Redis-based implemen...
#!/usr/bin/env python # Copyright (c) 2011-2020, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. """ Read RADOLAN and DX ^^^^^^^^^^^^^^^^^^^ Reading DX and RADOLAN data from German Weather Service .. autosummary:: :nosignatures: :toctree: generated/ {} """ __all__ = [...
from airflow.plugins_manager import AirflowPlugin from MarketoPlugin.hooks.marketo_hook import MarketoHook from MarketoPlugin.operators.marketo_to_s3_operator import MarketoToS3Operator class MarketoPlugin(AirflowPlugin): name = "marketo_plugin" operators = [MarketoToS3Operator] hooks = [MarketoHook]
import pandas as pd from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By YOUTUBE_TRENDING_URL = 'https://www.youtube.com/feed/trending' def get_driver (): chrome_options = Options () chrome_options.add_argument ('--no-sandbox') chrome...
from flask import Blueprint # hard-coded import_name: change when renaming the corresponding files!! posts = Blueprint("posts", "api.views.view_posts") courses = Blueprint("courses", "api.views.view_courses") users = Blueprint("users", "api.views.view_users")
# Ch 7 - Knights Problem # The project for this chapter is to figure out the minimal number of chess knights necessary to attack every square on a # chess board. This means our chessboard must be at least 3x4 for some number of knights to be able to attack all squares # on the board because a knight can only attack cer...
# ebpH -- An eBPF intrusion detection program. # ------- Monitors system call patterns and detect anomalies. # Copyright 2019 William Findlay (williamfindlay@cmail.carleton.ca) and # Anil Somayaji (soma@scs.carleton.ca) # # Based on Anil Somayaji's pH # http://people.scs.carleton.ca/~mvvelzen/pH/pH.html # Copyright...
import torch import numpy as np from PIL import Image from torchvision import transforms def load_image(img_path, img_size=None): ''' Resize the input image so we can make content image and style image have same size, change image into tensor and normalize it ''' image = ...
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # 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 Lice...
# MIT License # # Copyright (c) 2018 Evgeniy Filatov, evgeniyfilatov@gmail.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 #...
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/tambahan" # docs_base_url = "https://[org_name].github.io/tambahan" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Tambahan"
""" Amazon Ads API - Sponsored Products Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=...
{ "targets": [{ "target_name": "leveldown" , "conditions": [ ["OS == 'win'", { "defines": [ "_HAS_EXCEPTIONS=0" ] , "msvs_settings": { "VCCLCompilerTool": { "RuntimeTypeInfo": "false" ...
# v2.0 from toolbox import * import sklearn.model_selection import sklearn.metrics import wandb import pickle as pkl import re import seaborn as sns ######################### ### ### ### LOAD DATA ### ### ### ######################### def load_goldStandard(args, out, wh...
# Time: O(nlog*n) ~= O(n), n is the length of the positions # Space: O(n) # In this problem, a rooted tree is a directed graph such that, # there is exactly one node (the root) for # which all other nodes are descendants of this node, plus every node has exactly one parent, # except for the root node which has no par...
# 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, ...
# Copyright 2019-2020 Spotify AB # # 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 writin...
import time import calendar class Train: """Creates a train object that represents one subway train we have data for. The methods contained in this class interpret information we get from the MTA's feed, such as route number, direction, arrival time, and upcoming stops. """ def __init__(self, trip...
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
''' init ''' import logging import os import sys # 解决windows环境python3.8下可能出现的问题 import asyncio if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) from tornado.options import define, options, parse_config_file if not options.__contains__("config_load_fl...