content
stringlengths
5
1.05M
# # Copyright 2012 WebFilings, 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...
from selenium import webdriver from selenium.webdriver.support.ui import Select import math import time def calc(x): return str(math.log(abs(12*math.sin(int(x))))) link = "http://suninjuly.github.io/execute_script.html" browser = webdriver.Chrome() browser.get(link) x_value = browser.find_element_by_css_selec...
# Copyright 2014 Netflix, 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...
#!/usr/bin/python2.4 # Copyright 2009 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 ...
import warnings import pandas as pd import numpy as np warnings.filterwarnings(action="once") import datetime as dt import os import sys import re sys.path.append("../") from sklearn.preprocessing import MultiLabelBinarizer from category_encoders import TargetEncoder from sklearn.base import BaseEstimator, Transforme...
# # BSD 3-Clause License # # Copyright (c) 2017 xxxx # All rights reserved. # Copyright 2021 Huawei Technologies Co., Ltd # # 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 ...
#!/usr/bin/python3 # RiskManagement.py from StockPrices import get105prices from AnalystRecommendations import getRecommendations from BlackRockData import getRisk # totalCapital - total amount the user has to invest # investedCapital - amount of capital invested currently # unusedCapital - amount of capit...
"""Add this file to make conftest.py able to import funwithflags module."""
# Called by input comoponents to enable/diable based on role def isAllowed(componentRoles): componentRoleList = componentRoles.getColumnAsList(0) if len(componentRoleList)==0: return True userRoles = system.tag.readBlocking(["[System]Client/User/RolesDataSet"])[0].value userRoleList = userRoles.getColumnAsList(0)...
""" Calculates the number of combinations that can be made from provided trait layers """ import math from pathlib import Path from parse_yaml import read_yaml def calculate_permutations() -> int: config = read_yaml() layer_counts = list() for layer in config['layers']: path = Path.cwd() / 'ar...
from .losses import * from .metrics import * from .nets import *
# Generated by Django 2.1.2 on 2018-11-13 23:30 from django.db import migrations, models import django.db.models.manager class Migration(migrations.Migration): dependencies = [ ('program', '0002_auto_20181113_2302'), ] operations = [ migrations.CreateModel( name='Performance...
import sys def main(input_file): output = [] with open(input_file, 'r') as data: for line in data: print get_lowest_unique_number(line.strip()) def get_lowest_unique_number(line): output, digits = {}, line.split() index = 0 uniques = [] ...
from io import StringIO from unittest import TestCase from dataformatters.pubtatorAbstractOnlyFormatter import PubtatorAbstractOnlyFormatter class TestPubtatorAbstractOnlyFormatter(TestCase): def test___call__(self): """ Verifies the formatting """ # Arrange sut = Pubtator...
import warnings from . import train from . import losses from . import metrics warnings.warn( "`smp.utils` module is deprecated and will be removed in future releases.", DeprecationWarning, )
#!/usr/bin/python # # Copyright 2020 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 b...
from copy import deepcopy, copy import numpy as np from pandas import DatetimeIndex, Timestamp from skspec.core.abcindex import ConversionIndex, _parse_conversion_unit from skspec.units.abcunits import UnitError from skspec.units.intvlunit import INTVLUNITS, TimeDelta, DateTime, \ DatetimeCanonicalError class Tim...
""" * ____ _ * | _ \ ___ __| |_ __ _ _ _ __ ___ * | |_) / _ \ / _` | '__| | | | '_ ` _ \ * | __/ (_) | (_| | | | |_| | | | | | | * |_| \___/ \__,_|_| \__,_|_| |_| |_| * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the Licens...
from twilio.rest import Client import sms_conf def send(to_number, sms_text): client = Client(sms_conf.account_sid, sms_conf.auth_token) message = client.messages.create( to="+65"+to_number, from_=sms_conf.from_number, body=sms_text)
# -*- coding: UTF-8 -*- from collections import OrderedDict import logging text_addresses = {'Pedestal': (0x180300, 256), 'Triforce': (0x180400, 256), 'Uncle': (0x180500, 256), 'Ganon1': (0x180600, 256), 'Ganon2': (0x180700, 256), ...
from .dataset import FileEntry, Dataset __all__ = [ "FileEntry", "Dataset", ]
from .slurmoo import SlurmTask, SlurmJob
from cameralib import videostream from cameralib import videoupload from cameralib import imagestitching from cameralib import motiondetection from cameralib import eventrecording import argparse import datetime import numpy as np import time import imutils import cv2 arg = argparse.ArgumentParser() arg.add_argument("...
salario = float(input('Informe o salário: ')) if salario > 1250: aumento = (salario * 10)/100 else: aumento = (salario * 15)/100 print(f'O seu salário é R${salario} então teve um aumento de R${aumento} \nValor final R${salario + aumento}')
from datetime import datetime from typing import Optional import pandas as pd from rockflow.common.pandas_helper import map_frame from rockflow.operators.mysql import OssToMysqlOperator SYMBOL_COLUMN = "Ticker Code (AS19)" EXCHANGE_COLUMN = "Exchange of Quotation (-F3)" NASDAQ_EXCHANGE = "NASDAQ" HKEX_EXCHANGE = "S....
def insertion_sort(): a=[] n=input("enter range:") for i in range(0,n,1): k=input("value:") a.insert(i,k) for i in a: print (i) temp=a[i] ptr=i-1 while (ptr>=0) and a[ptr]>temp: a[ptr+1]=a[ptr] ptr=ptr-1 a[ptr]=temp for i in a: ...
class Solution(object): def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :rtype: int """ index = 0 next_start = None end = len(nums) while index < end: if nums[index] == val: if not next_s...
#!/usr/bin/python # -*- coding: utf-8 -*- # python version 2.7.* import copy a = [1,2,3,4,5,['a','b','c']] b = a c = copy.copy(a) d = copy.deepcopy(a) a.append(6) a[5].append('d') ''' 赋值:a和b都指向同一对象 浅拷贝:对象的浅拷贝会为外层list分配新的内存空间,嵌套内存地址不变 深拷贝:所有的内存地址都会有变化 ''' print "a=",a print "b=",b print "c=",c print "d=",d
from django.utils.translation import gettext as _ from djchoices import ChoiceItem, DjangoChoices class RatingChoices(DjangoChoices): G = ChoiceItem("G", label=_("G")) PG = ChoiceItem("PG", label=_("PG")) PG_13 = ChoiceItem("PG-13", label=_("PG-13")) R = ChoiceItem("R", label=_("R")) NC_17 = Choic...
import ast import re import numpy as np import pandas as pd def isnull(x): """ Return boolean indicating whether a value is null. """ if pd.isnull(x): return True elif str(x).lower() in ['nan', 'none', 'null', 'n/a']: return True else: return False def map_on_off(x): ...
import queue class DemoControl: def __init__(self): self.last_gui_state = "" self.internal_state = None self.out_queues = [] self.input_queue = queue.Queue() self.detector_started = False self.detectors = {} self.detector_thread = None self.robot_con...
""" Data Acquisition and Tests/Information for Scimma AWS Tagging This module has code to collect data from all allowed AWS regions and buid a relational database. There is code to check that the tags needed for AWS-level accounting and AWS-level incident response are present. """ import boto3 import pandas as pd i...
import time from nose.plugins.attrib import attr from testdata.test_data import DATA_WINNER_LOGIN_PAGE from tests.logintests.login_data import VALID_CREDENTIALS from pages.loginpage.login_page import LoginPage from tests.projects.datasenderstests.registered_datasenders_data import * from framework.base_test import He...
class Solution: def rob(self, nums): if len(nums) == 1: return nums[0] return self.doRob(nums) def doRob(self, nums): return max(self.robbing(0, nums, True, 0, 0), self.robbing(0, nums, False, 0, 0)) def robbing(self, i, nums, robFirst, value1, value2): if i == ...
# Generated by Django 3.0.7 on 2020-10-15 17:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import random import numpy as np import pandas as pd import scipy.sparse as sp import time from recommenders.utils.constants import ( DEFAULT_ITEM_COL, DEFAULT_USER_COL, DEFAULT_RATING_COL, DEFAULT_PREDICTION_...
import logging import sys from pathlib import Path from datetime import datetime import json import sqlite3 from zensols.persist import ( persisted, resource ) from zensols.garmdown import ( ActivityFactory, Backup, ) logger = logging.getLogger(__name__) class connection(resource): def __init__(s...
PR_COMMENT_EVENT = ''' { "action": "created", "issue": { "url": "https://api.github.com/repos/alvarocavalcanti/pierre-decheck/issues/16", "repository_url": "https://api.github.com/repos/alvarocavalcanti/pierre-decheck", "labels_url": "https://api.github.com/repos/alvarocavalcanti/pierr...
from __future__ import unicode_literals import frappe def execute(): index_map = { "Account": ["parent_account", "lft", "rgt"], "GL Entry": ["posting_date", "account", 'party', "voucher_no"], "Sales Invoice": ["posting_date", "debit_to", "customer"], "Purchase Invoice": ["posting_date", "credit_to", "supplie...
""" aiida_adamant AiiDA plugin for performing alloy modelling with Green's function based DFT methods """ __version__ = "0.1.0a0"
import json import os import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--gold_file') parser.add_argument('--retrieval_file') parser.add_argument('--output') parser.add_argument('--test', action='store_true', default=False) args = parser.parse_ar...
"""Testing module for latte api endpoints""" from unittest.mock import MagicMock, patch from sqlalchemy.exc import OperationalError, IntegrityError from sqlalchemy.orm.exc import NoResultFound from tests.auth0_token import latte_token from tests.conftest import ( DummyLatte, invalid_payload, dummy_latte_i...
import json import argparse import fire import time import sys import readchar from logbook import RotatingFileHandler, info, notice, debug, StreamHandler from pathlib import Path from datetime import datetime, timedelta def back_to_work(): info("Back to work!") print('\a') print('\a') def decide_break_t...
# Find the only pythagorean triplet that a + b + c = 1000 from __future__ import print_function import math import timeit try: range = xrange except NameError: pass start = timeit.default_timer() def euler_9(): for x in range(1, 1000): for y in range(x+1, 1000): z = (x**2 + y**2)*...
#!/usr/bin/env python import sys import os import argparse root_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, os.path.join(root_dir, "..")) from code import CodeWriter, CodeBlock parser = argparse.ArgumentParser(description="Dot product kernel generator") parser.add_argument("--unroll-min", d...
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-27 06:19 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('vision', '0012_auto_20171027_0613'), ] operations ...
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. import unittest from enthought_example.tests.utils import captured_output from unittest import mock from force_bdss.api import ( MCOStartEvent, MCOProgressEvent, MCOFinishEvent, DataValue) from enthought_example.example_notification...
import re import subprocess from dateutil.parser import parse from lazy import lazy from library.utils import is_url class Git: def __init__(self, directory=None): self.directory = directory def git_cmd(self, params): output = subprocess.check_output(["git"] + params, cwd=self.directory) ...
''' Exercício Python 58: Melhore o jogo do DESAFIO 28 onde o computador vai “pensar” em um número entre 0 e 10. Só que agora o jogador vai tentar adivinhar até acertar, mostrando no final quantos palpites foram necessários para vencer. ''' from random import randint computador = randint(0, 10) print('Sou seu computad...
__author__ = 'manuelli' import numpy as np import collections import yaml import os from collections import namedtuple from director.timercallback import TimerCallback from director import robotstate import drake as lcmdrake from director import lcmUtils from director import utime as utimeUtil from director import tr...
from django.db import models from django.db.models import Sum, Avg, F from django.core.exceptions import ValidationError from django.core.validators import (MinValueValidator, MaxValueValidator) from django.utils.translation import gettext as _ from django.utils.translation import gettext_lazy as _l from django.urls im...
import json from socketserver import ThreadingMixIn from urllib.parse import urlparse, parse_qs from departure_server.query_strategy import QueryStrategy from departure_server.station import Station, Position, Departure from departure_server.rest import RESTHandler, NoSuchFunctionException __author__ = 'budde' impor...
# Generated by Django 2.1.4 on 2019-01-18 10:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('seminar', '0001_initial'), ] operations = [ migrations.CreateModel( name='Ticket', ...
""" Tree parzen estimator ==================================== Code for tree parzen estimator auto ml. """ from collections import Counter from operator import itemgetter from typing import List, Any, Tuple import numpy as np from neuraxle.hyperparams.distributions import DistributionMixture, PriorityChoice, Discrete...
#!/usr/bin/python data_path = '../data/origin/' declarative_path = data_path+'tag_declarative.txt' imperative_path = data_path+'tag_imperative.txt' interrogative_path = data_path+'tag_interrogative.txt' n_classes = 3 declarative,imperative,interrogative = 0,1,2 declarative_sents = {} imperative_sents = {} interrogati...
# -*- coding: UTF-8 -*- import json import zmq import thread import Queue from utils import log class xmq_suber: def __init__(self, addr, topic): logger = log.get_logger(category="XmqSuber") logger.info("[init xmq suber with %s] begin" % ( json.dumps({"addr": addr, "top...
from collections import deque class Solution: def findOrder(self, numCourses: int, prerq: list) -> list: # build an adjcaent list graph = {} for e in prerq: if e[1] in graph: graph[e[1]].append(e[0]) else: graph[e[1]]...
from setuptools import setup setup( name='relationships', version='0.0.2', packages=['relationships'], url='http://github.com/emre/relationships', license='MIT', author='Emre Yilmaz', author_email='hello@emre.sh', description='redis backed user relationships', install_requires=['red...
from __future__ import print_function, unicode_literals # metacritic.com scraper import re from urllib.error import HTTPError from util import hook, http SCORE_CLASSES = { "\x0304": ["negative", "bad", "score_terrible", "score_unfavorable"], "\x0308": ["mixed", "forty", "fifty", "score_mixed"], "\x0303"...
from fastapi import FastAPI import uvicorn import json import psycopg2 from pydantic import BaseModel import sys from config import config app = FastAPI(debug=True) # https://www.postgresqltutorial.com/postgresql-python/connect/ : refernce for db connectivity params = config() # connect to the PostgreSQL server # pr...
"""Top level test fixtures.""" import os import shutil import pytest @pytest.fixture(scope="class") def outdir() -> str: """Create a temporary directory for cookiecutters and target output.""" name = ".output/" try: os.mkdir(name) except FileExistsError: # Directory already exists ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Sep 24 13:14:12 2020 @author: snc """ import pandas as pd import re import pymongo COLECTION_NAME = "4seasons_20200929" mongo_client = pymongo.MongoClient('mongodb://localhost:27017/') db = mongo_client["olx"] col = db[COLECTION_NAME] json = col.find...
import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit import time import sys import os x = [1024, 2048, 4096] y = list() for i in range(len(x)): start = time.time() os.system(sys.argv[1] + " " + str(x[i])) y.append(time.time()-start) gra = np.average(np.exp(...
#!/usr/bin/env python3 # File: xRpcSrvNagy01.py import socket from xmlrpc.server import SimpleXMLRPCServer from xmlrpc.server import SimpleXMLRPCRequestHandler class zHan(SimpleXMLRPCRequestHandler): rpc_paths = ('/RPC2',) # default ip_port = 9000 ip_address = socket.gethostbyname(socket.gethostname()) print("...
# Generated by Django 3.0.6 on 2020-06-01 05:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('instagramHome', '0003_remove_post_likes'), ] operations = [ migrations.DeleteModel( name='Likes', ), ]
import sys import time from typing import TYPE_CHECKING import numpy as np from .printCols import PrintCols def copyNumpyList(lis: list["np.ndarray"]): copyList = [] for array in lis: copyList.append(array.copy()) return copyList def iterable(var): try: iter(var) return True ex...
""" __file__ run_all.py __description___ This file generates all the features in one shot. __author__ Chenglong Chen < c.chenglong@gmail.com > """ import os ################# ## Preprocesss ## ################# #### preprocess data cmd = "python ./preprocess.py" os.system(cmd) # #### generate kfol...
# Copyright (c) 2013, Frappe and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt from frappe import _ def execute(filters=None): if not filters: filters = {} columns = [ { "fieldname": "movement", "fieldty...
# Copyright 2021 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, ...
import functools import os import re import signal import sys import traceback import matplotlib from matplotlib import backend_tools, cbook from matplotlib._pylab_helpers import Gcf from matplotlib.backend_bases import ( _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2, TimerBase, cursors, T...
import os import pytest import xarray as xr import xbitinfo as xb @pytest.mark.parametrize( "ds,dim,axis", [ (pytest.lazy_fixture("ugrid_demo"), None, -1), (pytest.lazy_fixture("icon_grid_demo"), "ncells", None), (pytest.lazy_fixture("air_temperature"), "lon", None), (pytest....
from hpman.m import _ # forward static parsing _.parse_file(__file__) print(_.get_value("learning_rate")) # define hyperparameters learning_rate = _("learning_rate", 1e-3) # override default value _.set_value("learning_rate", 1e-2) print(_.get_value("learning_rate"))
import sys import autograde def cmd_version(_): """Display version of autograde""" print(f'autograde version {autograde.__version__}') print(f'python {sys.version.split()[0]} at {sys.executable}') print(f'default encoding {sys.getdefaultencoding()}') return 0
# -*- coding: iso-8859-1 -*- """ This code is used to weigh the UV radiances we compute by biological action spectra. When run, it iterates over all the action spectra in ./TwoStreamOutput/ and computes the relevate dose rates and puts them in ./DoseRates/. Each file contains only one line of data. While inefficient f...
#! /usr/bin/env python # # Programming Praxis # Sudoku # # Joe Antognini # December 25, 2012 # import numpy as np import sys from time import sleep from copy import deepcopy class Board: def __init__(self, lst): '''Define the board. Zeros represent unknowns.''' if lst.shape == (9, 9): self.board = n...
import asyncio import aiohttp from baustellen_hamburg import Baustellen async def main(): async with aiohttp.ClientSession() as session: b = Baustellen(session) baustellen = await b.get_baustellen() for baustelle in baustellen: print(f"There is a building site at {baustelle....
''' UBC Eye Movement Data Analysis Toolkit (EMDAT), Version 3 ''' import sys sys.path.append('../EMDAT_core')
from ...abbreviation import Abbreviation, AbbreviationNode from ...config import Config from ...output_stream import OutputStream class WalkState: __slots__ = ('current', 'parent', 'ancestors', 'config', 'out', 'field') def __init__(self, config: Config): self.current = None "Context node" ...
from __future__ import print_function import sys sys.path.append('..') from Game import Game from .UltimateTicTacToeLogic import GlobalBoard import numpy as np ''' Game class implementation for the game of Ultimate TicTacToe Author: Alwin Hollebrandse, github.com/AlwinHollebrandse Date: March 5, 2021. Based on the T...
# -*- coding: utf-8 -*- """ Created on Thu Nov 8 22:14:37 2018 @author: JamesChiou """ import sys import numpy as np import pandas as pd from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from xgboost import XGBClassifier from catboost import CatBoostClassifier def onehot_encoding(data)...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Investing.com API - Market and historical data downloader # https://github.com/crapher/pyinvesting.git """Investing.com API - Market and historical data downloader""" from setuptools import setup, find_packages from pyinvesting import __version__ import io from os imp...
from rest_framework import status from rest_framework.views import APIView from rest_framework.permissions import IsAuthenticated from seaserv import seafile_api from seahub import settings from seahub.api2.throttling import AnonRateThrottle, UserRateThrottle from seahub.api2.utils import json_response, api_error from...
from rest_framework.views import APIView from rest_framework.response import Response from . import models from .serializers import DocumentSerializer from .utils import del_none class DocumentView(APIView): def get(self, request, doc_id): doc = models.Document.objects.get(pk=doc_id) serializer =...
def create_array(n):
"""Contains all resolvers that return WearData.""" from ariadne import ObjectType from nautilus import utils wearhead_type = ObjectType("WearHead") wearclothes_type = ObjectType("WearClothes") wearshoes_type = ObjectType("WearShoes") @wearhead_type.field("data") def resolve_head(obj, _): """head: HeadData.""" ...
if __name__ == '__main__': N = int(input()) l1 = [] for i in range(0, N): command, *inputs = input().split(" ") if 'insert' == command: l1.insert(int(inputs[0]), int(inputs[1])) elif "remove" == command: value = int(inputs[0]) l1.remove(value) ...
''' Modified image.py to add 2D-to-3D color mapping on the generated .obj mesh file. The usage is the same: python -m romp.predict.generate_3D --inputs=3D-Person-reID/3DMarket/split/market_demo --output_dir=demo/image_results mark: output_dir is useless. The .obj file will be saved into ROMP/3D-Person-reID/3DMarket/s...
import acsuite import os from abc import ABC, abstractmethod from subprocess import call from typing import TYPE_CHECKING, List, Set, NamedTuple, Optional from .config import Config from .util import get_temp_filename if TYPE_CHECKING: from .source import FileSource AUDIO_PFX: str = "_audio_temp_" class Audi...
#!/usr/bin/env python import argparse import subprocess import os parser = argparse.ArgumentParser(description = "find heterozygous kmers from short read data") parser.add_argument("-i","--input", required=True, help = "input files one per line, all same file type, will use extensions to determine type (fa, fq, fa.g...
from setuptools import setup from setuptools import find_packages setup(name='gravity_well', version='1.0', description='Bind DNS sinkhole mitigation tool', author='BrandonNX01', url='https://github.com/BrandonNX01/gravity_well', packages=['gravity_well'], include_package_data=True,...
import os import pandas as pd from rdkit import Chem import torch import sklearn import dgl.backend as F from dgl.data.utils import save_graphs, load_graphs def canonicalize_rxn(rxn): canonicalized_smiles = [] r, p = rxn.split('>>') for s in [r, p]: mol = Chem.MolFromSmiles(s) [atom.SetAt...
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( js_to_json, parse_duration, unescapeHTML, ) class DRBonanzaIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?dr\.dk/bonanza/[^/]+/\d+/[^/]+/(?P<id>\d+)/(?P<display_id>[^/?#&]+)' _TEST = {...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import io from os import path import setuptools here = path.abspath(path.dirname(__file__)) def _read(*names, **kwargs): return io.open( path.join...
"""autogenerated by genpy from reefbot_msgs/SpeciesIDResponse.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import sensor_msgs.msg import reefbot_msgs.msg import std_msgs.msg class SpeciesIDResponse(genpy.Message): _md5sum = "6a90c0010a887f2021d1...
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
from .exampleplugin import ExamplePlugin
from setuptools import setup setup( name='depth-to-mesh', version='0.1.2', description='Converts depth maps into triangle meshes', url='https://github.com/hesom/depth_to_mesh', author='Hendrik Sommerhoff', author_email='sommerhoff.hendrik@gmail.com', license='MIT', packages=['depth_to_m...
"""checks for Object Calisthenics rule 8: Only two instance variables.""" # see https://pylint.readthedocs.io/en/latest/how_tos/custom_checkers.html import six from pylint.checkers import BaseChecker from pylint.checkers.utils import check_messages from pylint.interfaces import IAstroidChecker class TwoInst...
# -*- coding: utf-8 -*- from admin_tools.dashboard import modules, Dashboard, AppIndexDashboard from django.utils.translation import ugettext_lazy as _ from congo.conf import settings from django.core.exceptions import ImproperlyConfigured from django.apps import apps as django_apps from django.utils.datastructur...
# -*- coding: utf-8 -*- # Copyright 2014, Digital Reasoning # # 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 applica...