hexsha stringlengths 40 40 | size int64 2 1.05M | ext stringclasses 9
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 193 | max_stars_repo_name stringlengths 6 109 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 36.6k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 193 | max_issues_repo_name stringlengths 6 109 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 29.8k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 193 | max_forks_repo_name stringlengths 6 109 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 11.2k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 1.05M | avg_line_length float64 1 404k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08e0009344d5083a710c73a3317164ab63b87147 | 2,116 | py | Python | terrascript/data/hashicorp/vsphere.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/data/hashicorp/vsphere.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/data/hashicorp/vsphere.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/data/hashicorp/vsphere.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:30:54 UTC)
import terrascript
class vsphere_compute_cluster(terrascript.Data):
pass
class vsphere_content_library(terrascript.Data):
pass
class vsphere_content_library_item(terrascript.Data):
pass
... | 17.203252 | 73 | 0.755198 |
08e00d3620c41139cde47d52aa48b39492558b68 | 3,154 | py | Python | src/graph_transpiler/webdnn/graph/order.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | src/graph_transpiler/webdnn/graph/order.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/graph/order.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | from typing import Tuple, Sequence
from webdnn.graph.axis import Axis, AxisKeyDict
class Order:
"""Order(axes)
Descriptor class for representing semantics of data order.
For example, :obj:`~webdnn.graph.order.OrderNHWC` means that the data is aligned as Channel-major (Batch-size-minor).
Popular dat... | 22.211268 | 121 | 0.615092 |
08e05ddb66e25b6d5d50acd35f798911eb373ecc | 4,091 | py | Python | sdks/python/appcenter_sdk/models/JiraSecretDetailsResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/JiraSecretDetailsResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/JiraSecretDetailsResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 2 | 2019-10-23T06:31:05.000Z | 2021-08-21T17:32:47.000Z | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class JiraSecretDeta... | 29.221429 | 94 | 0.586165 |
08e06406f487052d43846d070c01997115ab12d4 | 1,334 | py | Python | src/coalescenceml/step_operator/base_step_operator.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 1 | 2022-03-22T17:48:55.000Z | 2022-03-22T17:48:55.000Z | src/coalescenceml/step_operator/base_step_operator.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 2 | 2022-02-18T18:48:12.000Z | 2022-02-19T18:14:38.000Z | src/coalescenceml/step_operator/base_step_operator.py | CornellDataScience/CoalescenceML | 6dd849b272c77011719952b47d5b55684d90733a | [
"Apache-2.0"
] | 1 | 2022-02-10T02:52:22.000Z | 2022-02-10T02:52:22.000Z | from abc import ABC, abstractmethod
from typing import ClassVar, List
from coalescenceml.enums import StackComponentFlavor
from coalescenceml.stack import StackComponent
class BaseStepOperator(StackComponent, ABC):
"""Base class for all CoalescenceML step operators."""
# Class Configuration
TYPE: ClassV... | 34.205128 | 77 | 0.670915 |
08e067b5d36032df29356b41d7a03ea51590c7be | 87 | py | Python | confessions/__init__.py | hazre/AnimeTwist-Cogs | 3335dd17f1e115f84eb4e722ea2a9c625bb25129 | [
"MIT"
] | null | null | null | confessions/__init__.py | hazre/AnimeTwist-Cogs | 3335dd17f1e115f84eb4e722ea2a9c625bb25129 | [
"MIT"
] | null | null | null | confessions/__init__.py | hazre/AnimeTwist-Cogs | 3335dd17f1e115f84eb4e722ea2a9c625bb25129 | [
"MIT"
] | null | null | null | from .confessions import Confessions
def setup(bot):
bot.add_cog(Confessions(bot)) | 21.75 | 36 | 0.770115 |
08e09b44351cdae2fa13cb71d215c861202fe44c | 10,254 | py | Python | docs/conf.py | qwofford/popper | af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda | [
"MIT"
] | null | null | null | docs/conf.py | qwofford/popper | af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda | [
"MIT"
] | null | null | null | docs/conf.py | qwofford/popper | af9b3d31412192c86bf88bf02e8ad8e6dc5bbfda | [
"MIT"
] | 1 | 2019-12-07T08:41:02.000Z | 2019-12-07T08:41:02.000Z | from recommonmark.parser import CommonMarkParser
# -*- coding: utf-8 -*-
#
# Sphinx with Markdown documentation build configuration file, created by
# sphinx-quickstart on Thu Oct 6 19:07:54 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible confi... | 28.325967 | 79 | 0.702165 |
08e0b229f737f998ea639be9db4069211d02500c | 34,449 | py | Python | lime/lime_tabular.py | pwharned/lime | 3d320a0b2d84c230a7c0b7497bfc45a688e227d4 | [
"BSD-2-Clause"
] | null | null | null | lime/lime_tabular.py | pwharned/lime | 3d320a0b2d84c230a7c0b7497bfc45a688e227d4 | [
"BSD-2-Clause"
] | null | null | null | lime/lime_tabular.py | pwharned/lime | 3d320a0b2d84c230a7c0b7497bfc45a688e227d4 | [
"BSD-2-Clause"
] | null | null | null | """
Functions for explaining classifiers that use tabular data (matrices).
"""
import collections
import copy
from functools import partial
import json
import warnings
import numpy as np
import scipy as sp
import sklearn
import sklearn.preprocessing
from sklearn.utils import check_random_state
from pyDOE2 import lhs
f... | 47.255144 | 100 | 0.589045 |
08e0b292ecfb89bc9587f77170fc76dee38dded3 | 5,701 | py | Python | api/src/opentrons/hardware_control/ot3controller.py | Opentrons/opentrons | 23cb4bb9e1d1f9bd73a63f5837e947c337cdb9dc | [
"Apache-2.0"
] | 235 | 2017-10-27T20:37:27.000Z | 2022-03-30T14:09:49.000Z | api/src/opentrons/hardware_control/ot3controller.py | koji/opentrons | 0f339f45de238183b2c433e67f839363d5177582 | [
"Apache-2.0"
] | 8,425 | 2017-10-26T15:25:43.000Z | 2022-03-31T23:54:26.000Z | api/src/opentrons/hardware_control/ot3controller.py | koji/opentrons | 0f339f45de238183b2c433e67f839363d5177582 | [
"Apache-2.0"
] | 130 | 2017-11-09T21:02:37.000Z | 2022-03-15T18:01:24.000Z | """OT3 Hardware Controller Backend."""
from __future__ import annotations
import asyncio
from contextlib import contextmanager
import logging
from typing import Dict, List, Optional, Tuple, TYPE_CHECKING, Sequence, Generator
from opentrons.config.types import RobotConfig
from opentrons.drivers.rpi_drivers.gpio_simula... | 26.151376 | 82 | 0.605508 |
08e0c2a872c051d3bcea9b0ed162f808f805fc91 | 10,412 | py | Python | Python/PPO.py | hobogalaxy/ISA | aae4b9b4e30d07a4fe2ddc0900973bf134cc8fda | [
"MIT"
] | 1 | 2020-07-23T12:55:01.000Z | 2020-07-23T12:55:01.000Z | Python/PPO.py | hobogalaxy/ISA | aae4b9b4e30d07a4fe2ddc0900973bf134cc8fda | [
"MIT"
] | 22 | 2020-07-23T12:55:36.000Z | 2021-03-19T00:05:49.000Z | Python/PPO.py | hobogalaxy/ISA | aae4b9b4e30d07a4fe2ddc0900973bf134cc8fda | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.utils.data import SubsetRandomSampler, BatchSampler
from torch.optim import Adam
import wandb
import numpy as np
from mlagents_envs.environment import UnityEnvironment
from utils import EnvWrapper, Memory
from models import Actor, Critic
from collections import deque
import... | 32.5375 | 118 | 0.652804 |
08e0f2ee77e27b5ed9f8b513442fb9faa8ce2c19 | 86,383 | py | Python | pyhanko/sign/signers.py | ooguz/pyHanko | f1490d9ecaa74ce600e464a27807290d486acc6f | [
"MIT"
] | null | null | null | pyhanko/sign/signers.py | ooguz/pyHanko | f1490d9ecaa74ce600e464a27807290d486acc6f | [
"MIT"
] | null | null | null | pyhanko/sign/signers.py | ooguz/pyHanko | f1490d9ecaa74ce600e464a27807290d486acc6f | [
"MIT"
] | null | null | null | import binascii
import hashlib
import logging
import uuid
from dataclasses import dataclass
from datetime import datetime
from io import BytesIO, BufferedIOBase
from typing import Optional
import tzlocal
from asn1crypto import x509, cms, core, algos, pem, keys, pdf as asn1_pdf
from asn1crypto.algos import SignedDigest... | 38.529438 | 80 | 0.621048 |
08e0f4576ec7a57c535f3bf6aa81ece13ce209b0 | 7,488 | py | Python | BOOTSTRAPS/Equal_Cherry_BOOTSTRAP_shuffle_codons.py | sergpolly/Thermal_adapt_scripts | faca767209dc7fa66f35b4738dcdd1b7d3bbac93 | [
"MIT"
] | 2 | 2018-12-05T07:43:39.000Z | 2018-12-05T07:43:42.000Z | BOOTSTRAPS/Equal_Cherry_BOOTSTRAP_shuffle_codons.py | sergpolly/Thermal_adapt_scripts | faca767209dc7fa66f35b4738dcdd1b7d3bbac93 | [
"MIT"
] | null | null | null | BOOTSTRAPS/Equal_Cherry_BOOTSTRAP_shuffle_codons.py | sergpolly/Thermal_adapt_scripts | faca767209dc7fa66f35b4738dcdd1b7d3bbac93 | [
"MIT"
] | null | null | null | import re
import os
import sys
from Bio import Seq
from Bio import SeqIO
from Bio import SeqUtils
import numpy as np
import pandas as pd
import cairi
from multiprocessing import Pool
import matplotlib.pyplot as plt
from Bio.SeqUtils import CodonUsage
from Bio import Data
def back_translate(protein,SynCodon,CodonWeigh... | 41.370166 | 181 | 0.663996 |
08e12f071a75d1981028a855c030cafaa36fae80 | 5,042 | py | Python | tempest/api/identity/admin/test_tokens.py | vmahuli/tempest | f70319f5eda72b8c8a913ae1002ec531324e4116 | [
"Apache-2.0"
] | null | null | null | tempest/api/identity/admin/test_tokens.py | vmahuli/tempest | f70319f5eda72b8c8a913ae1002ec531324e4116 | [
"Apache-2.0"
] | null | null | null | tempest/api/identity/admin/test_tokens.py | vmahuli/tempest | f70319f5eda72b8c8a913ae1002ec531324e4116 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Huawei Technologies Co.,LTD.
# 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
#
# Unl... | 40.66129 | 79 | 0.62019 |
08e13fd1f509795178791b491b48cd3d0c46b9d3 | 2,678 | py | Python | supplementary-code/func-clean_gaze_data.py | a-paxton/opinions-and-gaze-coordination | f6a8f4171a6bd4fe3e0b2125a3c0ebc6d8283bcc | [
"MIT"
] | null | null | null | supplementary-code/func-clean_gaze_data.py | a-paxton/opinions-and-gaze-coordination | f6a8f4171a6bd4fe3e0b2125a3c0ebc6d8283bcc | [
"MIT"
] | null | null | null | supplementary-code/func-clean_gaze_data.py | a-paxton/opinions-and-gaze-coordination | f6a8f4171a6bd4fe3e0b2125a3c0ebc6d8283bcc | [
"MIT"
] | null | null | null | def clean_gaze_data(in_file_path):
"""
Read in raw SMI gaze data and write
out a clean file.
Parameters
----------
in_file_path : str
Path to raw data file
"""
import re
from io import StringIO
import pandas as pd
# read in the file from ... | 34.333333 | 72 | 0.493652 |
08e1504f47d3e7906cbf76a12ee77d8c1e14cfb9 | 1,456 | py | Python | speech_dia_@/src/pyannote_xxx/audio/applications/overlap_detection.py | NgvTue/test2 | d475cb2fed16b46185adbe50b4179d5299c791cb | [
"MIT"
] | 1 | 2022-02-23T08:46:10.000Z | 2022-02-23T08:46:10.000Z | speech_dia_@/src/pyannote_xxx/audio/applications/overlap_detection.py | NgvTue/test2 | d475cb2fed16b46185adbe50b4179d5299c791cb | [
"MIT"
] | null | null | null | speech_dia_@/src/pyannote_xxx/audio/applications/overlap_detection.py | NgvTue/test2 | d475cb2fed16b46185adbe50b4179d5299c791cb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2018-2020 CNRS
# 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 limita... | 41.6 | 79 | 0.786401 |
08e1826b4f83da2c72c2bca2c4cd958347790949 | 11,692 | py | Python | mmgen/models/diffusions/utils.py | liuhd073/mmgeneration | 2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d | [
"Apache-2.0"
] | null | null | null | mmgen/models/diffusions/utils.py | liuhd073/mmgeneration | 2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d | [
"Apache-2.0"
] | null | null | null | mmgen/models/diffusions/utils.py | liuhd073/mmgeneration | 2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
import torch
def _get_noise_batch(noise,
image_shape,
num_timesteps=0,
num_batches=0,
timesteps_noise=False):
"""Get noise batch. Support get sequeue of noise along timesteps.
W... | 43.464684 | 79 | 0.554567 |
08e1844541019a0b3e3456ade12325ba54cb1bec | 5,439 | py | Python | async_downloader.py | TrentonBush/merra2_subsetter | afa4aee84dec8599d2b2878f1abeff9a935ac725 | [
"MIT"
] | null | null | null | async_downloader.py | TrentonBush/merra2_subsetter | afa4aee84dec8599d2b2878f1abeff9a935ac725 | [
"MIT"
] | null | null | null | async_downloader.py | TrentonBush/merra2_subsetter | afa4aee84dec8599d2b2878f1abeff9a935ac725 | [
"MIT"
] | null | null | null | import httpx
import aiometer
import aiofiles
from pathlib import Path
from collections import defaultdict
from dotenv import load_dotenv
import os
from typing import (
Union,
Iterable,
Optional,
DefaultDict,
List,
)
def merra2_file_from_url(url: str) -> str:
return url.split("/")[-1].split(".... | 37.510345 | 186 | 0.589263 |
08e1972f7175e414cdc0550bac011824142c50f0 | 18,998 | py | Python | lowe/acs/ACSClient.py | Lowe-Institute/data-automation | 10d8ec7729eff6e7702a367ff5bae2a871069799 | [
"MIT"
] | 2 | 2021-08-11T17:29:30.000Z | 2021-09-15T19:13:06.000Z | lowe/acs/ACSClient.py | Lowe-Institute/data-automation | 10d8ec7729eff6e7702a367ff5bae2a871069799 | [
"MIT"
] | 34 | 2021-08-11T15:42:51.000Z | 2022-03-03T22:40:24.000Z | lowe/acs/ACSClient.py | Lowe-Institute/data-automation | 10d8ec7729eff6e7702a367ff5bae2a871069799 | [
"MIT"
] | null | null | null | import asyncio
import aiohttp
import backoff
import json
import os
import pandas as pd
import requests
from dotenv import load_dotenv, find_dotenv
from lowe.locations.lookup import name2fips, fips2name
from typing import Union, List, Dict
try:
import importlib.resources as pkg_resources
except ImportError:
im... | 35.378026 | 133 | 0.518476 |
08e197981a178d046d84f171566db489fbe72323 | 139 | py | Python | login_system/system/admintype.py | Unicorn-Code-Inc/PyLogin | 3b8ce697f633423278e1a8969f56bf278860b8ca | [
"MIT"
] | 1 | 2020-12-31T01:13:34.000Z | 2020-12-31T01:13:34.000Z | login_system/system/admintype.py | Unicorn-Code-Inc/PyLogin | 3b8ce697f633423278e1a8969f56bf278860b8ca | [
"MIT"
] | null | null | null | login_system/system/admintype.py | Unicorn-Code-Inc/PyLogin | 3b8ce697f633423278e1a8969f56bf278860b8ca | [
"MIT"
] | null | null | null | from enum import Enum
class AdminType(Enum):
""" Types of Admin """
ALMIGHTY = 1
STANDARD = 2
GUEST = 3 | 15.444444 | 27 | 0.517986 |
08e1b7dbbf184eb280f6041d9db56eec07f53acf | 1,419 | py | Python | fastapi_mailman/backends/console.py | daniel-herrero/fastapi-mailman | a174d0ec777d3330dc5464f71fafa7829db07bf1 | [
"MIT"
] | 6 | 2021-10-08T10:20:37.000Z | 2022-03-30T08:56:10.000Z | fastapi_mailman/backends/console.py | daniel-herrero/fastapi-mailman | a174d0ec777d3330dc5464f71fafa7829db07bf1 | [
"MIT"
] | 2 | 2021-11-11T11:44:29.000Z | 2022-03-08T06:54:54.000Z | fastapi_mailman/backends/console.py | daniel-herrero/fastapi-mailman | a174d0ec777d3330dc5464f71fafa7829db07bf1 | [
"MIT"
] | 1 | 2022-03-04T14:43:22.000Z | 2022-03-04T14:43:22.000Z | """
Email backend that writes messages to console instead of sending them.
"""
import sys
import threading
from fastapi_mailman.backends.base import BaseEmailBackend
class EmailBackend(BaseEmailBackend):
def __init__(self, *args, **kwargs):
self.stream = kwargs.pop('stream', sys.stdout)
self._loc... | 33 | 90 | 0.584919 |
08e1c639532c2f6e60aceee134df9b2e42c17de7 | 10,806 | py | Python | prob_mbrl/utils/rollout.py | mcgillmrl/prob_mbrl | 0bfb70b31675310539f241f62bba8427d940d551 | [
"MIT"
] | 108 | 2018-10-24T07:59:14.000Z | 2021-11-28T05:29:35.000Z | prob_mbrl/utils/rollout.py | juancamilog/prob_mbrl | 391a0eb9f9762504d0e84a98d6911a3c619c560b | [
"MIT"
] | 8 | 2019-08-14T00:20:13.000Z | 2019-10-18T01:45:29.000Z | prob_mbrl/utils/rollout.py | mcgillmrl/prob_mbrl | 0bfb70b31675310539f241f62bba8427d940d551 | [
"MIT"
] | 14 | 2019-06-27T10:10:08.000Z | 2020-08-31T03:16:22.000Z | import torch
jit_scripts = {}
def mm_resample_infer_ns_(samples, z, jitter):
M = samples.shape[-2]
m = samples.mean(-2, keepdim=True)
deltas = samples - m
deltasT = deltas.transpose(-1, -2)
S = deltasT.matmul(deltas) / (M - 1) + jitter
L = S.cholesky()
LT = L.transpose(-1, -2)
z = tor... | 36.506757 | 79 | 0.484175 |
08e1cfcea61948fe993ac82789a10b9fb9e71e59 | 178 | py | Python | amatino/state.py | Amatino-Code/amatino-python | 6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f | [
"MIT"
] | 2 | 2018-07-20T20:00:33.000Z | 2020-10-08T15:49:06.000Z | amatino/state.py | Amatino-Code/amatino-python | 6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f | [
"MIT"
] | 1 | 2020-05-21T02:49:29.000Z | 2020-05-21T02:49:29.000Z | amatino/state.py | Amatino-Code/amatino-python | 6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f | [
"MIT"
] | 3 | 2018-09-03T09:31:31.000Z | 2020-05-21T05:30:00.000Z | """
Amatino API Python Bindings
State Module
Author: hugh@amatino.io
"""
from enum import Enum
class State(Enum):
ALL = 'all'
ACTIVE = 'active'
DELETED = 'deleted'
| 13.692308 | 27 | 0.662921 |
08e22823925ca35aabfff3f0cd6bce6a71129eb2 | 2,824 | py | Python | setup.py | 132nd-etcher/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 2 | 2018-12-13T06:49:10.000Z | 2018-12-13T07:37:49.000Z | setup.py | etcher-be/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 109 | 2018-08-22T04:25:56.000Z | 2019-10-17T05:10:21.000Z | setup.py | etcher-be/epab | 5226d3a36580f8cc50cf5dcac426adb1350a2c9b | [
"MIT"
] | 1 | 2018-02-25T05:53:18.000Z | 2018-02-25T05:53:18.000Z | # coding=utf-8
import os
from setuptools import find_packages, setup
requirements = [
'click',
'wheel',
'twine',
# 'autopep8',
'pylint',
'isort',
'safety',
'flake8',
'coverage',
'hypothesis',
'pytest-cache',
'pytest-cov',
'pytest-vcr',
'pytest-pycharm',
'py... | 24.556522 | 66 | 0.645538 |
08e22c75bede5d876c2f7c912c2148410862267d | 9,890 | py | Python | PaddleCV/ocr_recognition/train.py | yangapku/models | b50bc7b77288bcdaed676e70353310786c658d6e | [
"Apache-2.0"
] | 1 | 2020-02-22T08:29:15.000Z | 2020-02-22T08:29:15.000Z | PaddleCV/ocr_recognition/train.py | yangapku/models | b50bc7b77288bcdaed676e70353310786c658d6e | [
"Apache-2.0"
] | null | null | null | PaddleCV/ocr_recognition/train.py | yangapku/models | b50bc7b77288bcdaed676e70353310786c658d6e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 PaddlePaddle 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 required by app... | 41.90678 | 199 | 0.61456 |
08e22fea0ba3ef34b6b367774e587ff0a063c968 | 10,893 | py | Python | pgsqltoolsservice/converters/bytes_converter.py | rich617/pgtoolsservice | 24d81677eaf6f7cdb6c2caaddf1f55a90ce6006c | [
"MIT"
] | null | null | null | pgsqltoolsservice/converters/bytes_converter.py | rich617/pgtoolsservice | 24d81677eaf6f7cdb6c2caaddf1f55a90ce6006c | [
"MIT"
] | null | null | null | pgsqltoolsservice/converters/bytes_converter.py | rich617/pgtoolsservice | 24d81677eaf6f7cdb6c2caaddf1f55a90ce6006c | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 38.221053 | 117 | 0.752869 |
08e23d8d093fa24a87f2f07298550ff6e133e2dc | 2,494 | py | Python | rebuild_tool/utils.py | mcyprian/deps_visualization | 064b36d49ce0b19b244d8853550bca1533ac8bea | [
"MIT"
] | 2 | 2016-01-22T11:08:06.000Z | 2016-06-02T13:11:41.000Z | rebuild_tool/utils.py | mcyprian/sclbuilder | 064b36d49ce0b19b244d8853550bca1533ac8bea | [
"MIT"
] | null | null | null | rebuild_tool/utils.py | mcyprian/sclbuilder | 064b36d49ce0b19b244d8853550bca1533ac8bea | [
"MIT"
] | null | null | null | import locale
import os
import logging
from subprocess import Popen, PIPE, CalledProcessError
logger = logging.getLogger(__name__)
def add_prefix(name, prefix): #TODO remove prefix functions??
if prefix in name:
return name
else:
return prefix + name
def remove_prefix(name, prefix):
if... | 32.38961 | 90 | 0.658781 |
08e241da0e96d0d574e9d1d8502e8e1920028cde | 18,470 | py | Python | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/virtual_machine_scale_set_extensions_operations.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/virtual_machine_scale_set_extensions_operations.py | pjquirk/azure-sdk-for-python | cbf02ec4f177b96eae1dbbba87c34c2c93880150 | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/virtual_machine_scale_set_extensions_operations.py | xiafu-msft/azure-sdk-for-python | 4d9560cfd519ee60667f3cc2f5295a58c18625db | [
"MIT"
] | 1 | 2019-06-17T22:18:23.000Z | 2019-06-17T22:18:23.000Z | # 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 ... | 48.862434 | 209 | 0.682837 |
08e24d9fb3f313480d21853db50503642a4ff021 | 399 | py | Python | MFAEngine/apps/api/migrations/0011_userenrolled_factory.py | justicevR/mfa_authentication_factor_v0.1 | b7302904c3eaa00801ca4d78fb47797b16427ad4 | [
"MIT"
] | null | null | null | MFAEngine/apps/api/migrations/0011_userenrolled_factory.py | justicevR/mfa_authentication_factor_v0.1 | b7302904c3eaa00801ca4d78fb47797b16427ad4 | [
"MIT"
] | null | null | null | MFAEngine/apps/api/migrations/0011_userenrolled_factory.py | justicevR/mfa_authentication_factor_v0.1 | b7302904c3eaa00801ca4d78fb47797b16427ad4 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-09-04 19:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0010_auto_20210904_1729'),
]
operations = [
migrations.AddField(
model_name='userenrolled',
name='factory',
... | 21 | 62 | 0.60401 |
08e271c569f527a5fea89ba5614f592312650dd7 | 4,343 | py | Python | aldryn_newsblog/migrations/0021_migrate_aldryn_categories_data.py | PeterW-LWL/aldryn-newsblog | 810609b2aa2f537376817fd4b279845f6ca6a71f | [
"BSD-3-Clause"
] | 1 | 2020-05-13T06:59:23.000Z | 2020-05-13T06:59:23.000Z | aldryn_newsblog/migrations/0021_migrate_aldryn_categories_data.py | PeterW-LWL/aldryn-newsblog | 810609b2aa2f537376817fd4b279845f6ca6a71f | [
"BSD-3-Clause"
] | 4 | 2020-10-20T12:06:42.000Z | 2021-09-20T10:02:32.000Z | aldryn_newsblog/migrations/0021_migrate_aldryn_categories_data.py | PeterW-LWL/aldryn-newsblog | 810609b2aa2f537376817fd4b279845f6ca6a71f | [
"BSD-3-Clause"
] | 1 | 2020-10-20T12:08:58.000Z | 2020-10-20T12:08:58.000Z | # Generated by Django 2.2.9 on 2020-08-11 23:04
import aldryn_newsblog.fields
import aldryn_newsblog.fields
import aldryn_translation_tools.models
import django.db.models.deletion
import parler.fields
import parler.models
from aldryn_categories.models import Category as OldCategory
from aldryn_newsblog.models import A... | 39.481818 | 211 | 0.718628 |
08e27aacd599f057ff9a5a25a2b647e817a0a6d6 | 1,563 | py | Python | contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/newlines.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/newlines.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | contrib/python/src/python/pants/contrib/python/checks/tasks/checkstyle/newlines.py | ghthor/pants | 450de702414f87f563081ddefaefd8a554de07a3 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import ast
from pants.contrib.python.checks.tasks.checkstyle.common import CheckstylePlu... | 34.733333 | 99 | 0.698656 |
08e2a128d123f0757d0ba6a7dab3f757911ed9f9 | 3,292 | py | Python | test_scripts/bigbox_perf/textManipulation/testTextManipulation.py | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | test_scripts/bigbox_perf/textManipulation/testTextManipulation.py | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | test_scripts/bigbox_perf/textManipulation/testTextManipulation.py | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | # Copyright 2015 Ufora Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 32.92 | 87 | 0.601154 |
08e31c3607bbd1aa303805cb269043affd0598a5 | 977 | py | Python | oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_BI.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_BI.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_BI.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | """Auto-generated file, do not edit by hand. BI metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_BI = PhoneMetadata(id='BI', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[16-9]\\d{2,3}', possible_length=(3... | 81.416667 | 161 | 0.752303 |
08e3571cbcb8a7e600577ff7922fa2a97c0b2c18 | 5,491 | py | Python | Tools/SeeDot/seedot/compiler/converter/test.py | krantikiran/EdgeML | e5c7bd7c56884ca61f6d54cedb0074553cfdc896 | [
"MIT"
] | 1 | 2020-03-26T17:19:54.000Z | 2020-03-26T17:19:54.000Z | Tools/SeeDot/seedot/compiler/converter/test.py | krantikiran/EdgeML | e5c7bd7c56884ca61f6d54cedb0074553cfdc896 | [
"MIT"
] | 2 | 2020-03-26T02:59:12.000Z | 2020-04-23T19:09:00.000Z | Tools/SeeDot/seedot/compiler/converter/test.py | krantikiran/EdgeML | e5c7bd7c56884ca61f6d54cedb0074553cfdc896 | [
"MIT"
] | 3 | 2020-03-25T18:45:39.000Z | 2020-12-17T19:09:54.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license.
import math
import numpy as np
def getScale(maxabs: float, bits):
return int(np.ceil(np.log2(maxabs) - np.log2((1 << (bits - 2)) - 1)))
def printUspsRNN():
ite = 16
print("let a0 = (XX[0] * W) in")
print("... | 25.900943 | 81 | 0.443817 |
08e388cf8b76b637d3c5a91ef418220080f9dadd | 7,320 | py | Python | c_swm/train.py | cyclone923/blocks-world | 808127e6b4fde2a9cb499cf6934db7ff73e2f534 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-05-19T10:58:54.000Z | 2021-05-19T10:58:54.000Z | c_swm/train.py | cyclone923/blocks-world | 808127e6b4fde2a9cb499cf6934db7ff73e2f534 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | c_swm/train.py | cyclone923/blocks-world | 808127e6b4fde2a9cb499cf6934db7ff73e2f534 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import argparse
import torch
import utils
import datetime
import os
import pickle
import numpy as np
import logging
from torch.utils import data
import torch.nn.functional as F
import c_swm.modules as modules
parser = argparse.ArgumentParser()
parser.add_argument('--batch-size', type=int, default=64,
... | 34.205607 | 75 | 0.632514 |
08e3b1f9c8642aac95b0862c943f7056a1e56db6 | 2,197 | py | Python | infer_depth.py | bolianchen/pytorch_depth_from_videos_in_the_wild | 6f013154ba9f3a8de944c788a9370980e4c2b7c8 | [
"MIT"
] | 5 | 2022-02-25T04:38:16.000Z | 2022-03-28T17:38:03.000Z | infer_depth.py | bolianchen/pytorch_depth_from_videos_in_the_wild | 6f013154ba9f3a8de944c788a9370980e4c2b7c8 | [
"MIT"
] | 5 | 2022-02-25T07:26:39.000Z | 2022-03-02T06:04:32.000Z | infer_depth.py | bolianchen/pytorch_depth_from_videos_in_the_wild | 6f013154ba9f3a8de944c788a9370980e4c2b7c8 | [
"MIT"
] | null | null | null | import os
import numpy as np
import cv2
import matplotlib.pyplot as plt
from lib.data_iterators import ImageReader, VideoReader
from lib.img_processing import ImageProcessor, concat_depth_img
from lib.utils import get_model_opt
from evaluators import EVALUATORS
from options import InferOptions
class DepthInference:
... | 32.791045 | 74 | 0.619936 |
08e4101f9aa35794e025ee3db20953d666e83749 | 1,971 | py | Python | src/backend/app/api/public/access/registration.py | aimanow/sft | dce87ffe395ae4bd08b47f28e07594e1889da819 | [
"Apache-2.0"
] | null | null | null | src/backend/app/api/public/access/registration.py | aimanow/sft | dce87ffe395ae4bd08b47f28e07594e1889da819 | [
"Apache-2.0"
] | null | null | null | src/backend/app/api/public/access/registration.py | aimanow/sft | dce87ffe395ae4bd08b47f28e07594e1889da819 | [
"Apache-2.0"
] | null | null | null | import datetime
from http import HTTPStatus
from flask_restplus import Resource, reqparse
from sqlalchemy.exc import IntegrityError
from app.api.namespaces import access
from app.mails import send_registration_email
from app.tokens import EmailConfirmationToken, EmailConfirmationType
from database import db
from data... | 33.982759 | 111 | 0.679351 |
08e411641b2864ad9166af2ac04d57cdfeba92af | 572 | py | Python | setup.py | CopernicusAustralasia/auscophub | d7e2974898bb3ee9b262281fbd663326c1c48d05 | [
"MIT"
] | 4 | 2020-01-25T02:01:49.000Z | 2021-06-21T08:38:18.000Z | setup.py | CopernicusAustralasia/auscophub | d7e2974898bb3ee9b262281fbd663326c1c48d05 | [
"MIT"
] | null | null | null | setup.py | CopernicusAustralasia/auscophub | d7e2974898bb3ee9b262281fbd663326c1c48d05 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Setup script for Aus Copernicus Hub code.
"""
import os
import glob
from distutils.core import setup
import auscophub
setup(name='auscophub',
version=auscophub.__version__,
author='Neil Flood',
author_email='neil.flood@des.qld.gov.au',
url='http://github.com/Copern... | 27.238095 | 94 | 0.683566 |
08e41eed6d2314746c5728a34e9e2d7aa5f48d65 | 15,181 | py | Python | inputs/kitti_input.py | ConnorChristie/MonoGRNet | 693a7534c0fd4d69e5705bdf23386932b96a87a4 | [
"Apache-2.0"
] | null | null | null | inputs/kitti_input.py | ConnorChristie/MonoGRNet | 693a7534c0fd4d69e5705bdf23386932b96a87a4 | [
"Apache-2.0"
] | null | null | null | inputs/kitti_input.py | ConnorChristie/MonoGRNet | 693a7534c0fd4d69e5705bdf23386932b96a87a4 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import matplotlib
matplotlib.use('Agg')
import itertools
import json
import logging
import os
import sys
import random
from random import shuffle
import pdb
from PIL import Image, ImageEnhance
import numpy as np... | 38.047619 | 129 | 0.591331 |
08e41fd4146e9254fc8cc7da6bc809e80d053a5b | 24,917 | py | Python | tensorflow/python/estimator/model_fn_test.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/python/estimator/model_fn_test.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/python/estimator/model_fn_test.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 26 | 2017-04-12T16:25:44.000Z | 2018-10-30T10:10:15.000Z | # Copyright 2016 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-2.0
#
# Unless required by applica... | 40.253635 | 80 | 0.659349 |
08e42acbc28c99cb0a5ecbf7ceeb787b7f846235 | 3,518 | py | Python | torchlib/static_fusion.py | CarlosPena00/pytorch-unet | 8365bace23e4b04b9c5b75cd6720807ea8cac5ab | [
"MIT"
] | null | null | null | torchlib/static_fusion.py | CarlosPena00/pytorch-unet | 8365bace23e4b04b9c5b75cd6720807ea8cac5ab | [
"MIT"
] | null | null | null | torchlib/static_fusion.py | CarlosPena00/pytorch-unet | 8365bace23e4b04b9c5b75cd6720807ea8cac5ab | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import staple
from sklearn.metrics import jaccard_score
import SimpleITK as sitk
from LabelFusion.wrapper import fuse_images
from skimage.filters import threshold_otsu
def to3(src, axis=2):
return np.stack((np.zeros_like(src), src.max() - src, src), axis=axis)
def get_majority_vote... | 25.678832 | 82 | 0.592382 |
08e462fbf332a968a16c18a1145c5f140905beb9 | 87 | py | Python | office365/sharepoint/fields/field_link.py | domdinicola/Office365-REST-Python-Client | c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0 | [
"MIT"
] | null | null | null | office365/sharepoint/fields/field_link.py | domdinicola/Office365-REST-Python-Client | c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0 | [
"MIT"
] | null | null | null | office365/sharepoint/fields/field_link.py | domdinicola/Office365-REST-Python-Client | c64adb6c3fdc2786e0c9529e8b0f4c3ee207d2a0 | [
"MIT"
] | null | null | null | from office365.sharepoint.fields.field import Field
class FieldLink(Field):
pass
| 14.5 | 51 | 0.781609 |
08e46a58167887c970a4d915ec158f331293bec0 | 1,660 | py | Python | skimage/filter/tests/test_lpi_filter.py | jaberg/scikits-image | 2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d | [
"BSD-3-Clause"
] | 2 | 2020-02-17T18:54:33.000Z | 2021-09-28T15:18:23.000Z | skimage/filter/tests/test_lpi_filter.py | amueller/scikit-image | a8bfc5c5814a3c7fe363cfcad0c68b935706cd3c | [
"BSD-3-Clause"
] | 1 | 2015-09-04T09:25:46.000Z | 2015-09-04T09:25:46.000Z | skimage/filter/tests/test_lpi_filter.py | emmanuelle/scikit-image | eccc41907135cf81b99c4be18a480a9bc705485d | [
"BSD-3-Clause"
] | 1 | 2019-12-20T19:19:59.000Z | 2019-12-20T19:19:59.000Z | import os.path
import numpy as np
from numpy.testing import *
from skimage import data_dir
from skimage.io import *
from skimage.filter import *
class TestLPIFilter2D():
img = imread(os.path.join(data_dir, 'camera.png'),
flatten=True)[:50, :50]
def filt_func(self, r, c):
return np.... | 27.666667 | 65 | 0.542169 |
08e49b95a0e914c62efb3d6f78236f9b130f6e52 | 1,353 | py | Python | paper/ml_logs.py | jakelever/corona-ml | 8ceb22af50d7277ebf05f2fd21bbbf68c080ed76 | [
"MIT"
] | 7 | 2021-02-01T22:39:23.000Z | 2021-08-09T16:28:38.000Z | paper/ml_logs.py | jakelever/corona-ml | 8ceb22af50d7277ebf05f2fd21bbbf68c080ed76 | [
"MIT"
] | 1 | 2021-05-17T13:14:40.000Z | 2021-05-20T10:26:09.000Z | paper/ml_logs.py | jakelever/corona-ml | 8ceb22af50d7277ebf05f2fd21bbbf68c080ed76 | [
"MIT"
] | 1 | 2021-01-04T14:11:18.000Z | 2021-01-04T14:11:18.000Z | #!/usr/bin/env python
import os
import json
import pandas as pd
dir_name = 'ml_logs'
log_files = [ os.path.join(dir_name,f) for f in os.listdir(dir_name) if f.endswith('txt' )]
print(len(log_files))
log_data = []
for log_file in log_files:
with open(log_file) as f:
curly_lines = [ line for line in f if line.st... | 29.413043 | 95 | 0.679231 |
08e4bac76cbddda493ad91a8f145cf3e48a32315 | 1,580 | py | Python | esst/dcs/dedicated.py | etcher-be/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | 4 | 2018-06-24T14:03:44.000Z | 2019-01-21T01:20:02.000Z | esst/dcs/dedicated.py | etcher-be/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | 106 | 2018-06-24T13:59:52.000Z | 2019-11-26T09:05:14.000Z | esst/dcs/dedicated.py | theendsofinvention/esst | ac41cd0c07af8ca8532997f533756c529c9609a4 | [
"MIT"
] | null | null | null | # coding=utf-8
"""
Installs the necessary files to run in dedicated mode
"""
from pathlib import Path
import jinja2
from esst import DCSConfig, DiscordBotConfig, FS, LOGGER
from esst.core import CTX
from esst.utils import create_versioned_backup, read_template
DEDI_CFG = r"""dedicated =
{
["enabled"] = true,
}
"... | 29.259259 | 116 | 0.725949 |
08e4cff2fd243ed0aa1833703dc91deaa753f6a5 | 13,455 | py | Python | improver_tests/ensemble_copula_coupling/test_ConvertLocationAndScaleParametersToProbabilities.py | owena11/improver | ff658db31364c0bdf3af3940736c260e10544705 | [
"BSD-3-Clause"
] | 77 | 2017-04-26T07:47:40.000Z | 2022-03-31T09:40:49.000Z | improver_tests/ensemble_copula_coupling/test_ConvertLocationAndScaleParametersToProbabilities.py | owena11/improver | ff658db31364c0bdf3af3940736c260e10544705 | [
"BSD-3-Clause"
] | 1,440 | 2017-03-29T10:04:15.000Z | 2022-03-28T10:11:29.000Z | improver_tests/ensemble_copula_coupling/test_ConvertLocationAndScaleParametersToProbabilities.py | MoseleyS/improver | ca028e3a1c842e3ff00b188c8ea6eaedd0a07149 | [
"BSD-3-Clause"
] | 72 | 2017-03-17T16:53:45.000Z | 2022-02-16T09:41:37.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2021 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions a... | 42.444795 | 87 | 0.674025 |
08e4d600fe96b8588eff14116148277354e5385d | 2,017 | py | Python | src/test/python_tests/lsp_test_client/utils.py | luabud/vscode-pylint | 2297f1a6210bf93f7d9c083e32c59ed03664ca05 | [
"MIT"
] | null | null | null | src/test/python_tests/lsp_test_client/utils.py | luabud/vscode-pylint | 2297f1a6210bf93f7d9c083e32c59ed03664ca05 | [
"MIT"
] | null | null | null | src/test/python_tests/lsp_test_client/utils.py | luabud/vscode-pylint | 2297f1a6210bf93f7d9c083e32c59ed03664ca05 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""
Utility functions for use with tests.
"""
import json
import os
import pathlib
import platform
from random import choice
from .constants import PROJECT_ROOT
def normalizecase(path: str) -> str:
"""Fixes 'file' uri o... | 28.013889 | 86 | 0.652454 |
08e4e177a7c28204ecac144265443b0a39c6e749 | 3,205 | py | Python | sdk/cognitiveservices/azure-cognitiveservices-search-videosearch/setup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/cognitiveservices/azure-cognitiveservices-search-videosearch/setup.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/cognitiveservices/azure-cognitiveservices-search-videosearch/setup.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | 34.462366 | 91 | 0.614665 |
08e5068ea53c51d013869aa03389fda29a5bcce8 | 4,796 | py | Python | elit/common/structure.py | emorynlp/levi-graph-amr-parser | f71f1056c13181b8db31d6136451fb8d57114819 | [
"Apache-2.0"
] | 9 | 2021-07-12T22:05:47.000Z | 2022-02-22T03:10:14.000Z | elit/common/structure.py | emorynlp/levi-graph-amr-parser | f71f1056c13181b8db31d6136451fb8d57114819 | [
"Apache-2.0"
] | 4 | 2021-08-31T08:28:37.000Z | 2022-03-28T05:52:14.000Z | elit/common/structure.py | emorynlp/levi-graph-amr-parser | f71f1056c13181b8db31d6136451fb8d57114819 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2019-08-26 14:58
from typing import Dict
from elit.common.configurable import Configurable
from elit.common.reflection import classpath_of
import json
from collections import OrderedDict
from elit.common.io import filename_is_json, save_pickle, load_pickle, save_json, lo... | 28.891566 | 119 | 0.595913 |
08e506e58a995f8b08cffc3d15dfc0d78ea955f6 | 3,045 | py | Python | crowdsourced_fields/migrations/0002_auto__add_field_crowdsourceditemgenericforeignkey_field_name__del_uniq.py | bitlabstudio/django-crowdsourced-fields | 8805bcced9dd87edd01cc3b9112231f8cdd38847 | [
"MIT"
] | 1 | 2017-12-11T23:50:23.000Z | 2017-12-11T23:50:23.000Z | crowdsourced_fields/migrations/0002_auto__add_field_crowdsourceditemgenericforeignkey_field_name__del_uniq.py | bitlabstudio/django-crowdsourced-fields | 8805bcced9dd87edd01cc3b9112231f8cdd38847 | [
"MIT"
] | 2 | 2020-02-11T21:58:50.000Z | 2020-06-05T16:56:27.000Z | crowdsourced_fields/migrations/0002_auto__add_field_crowdsourceditemgenericforeignkey_field_name__del_uniq.py | bitlabstudio/django-crowdsourced-fields | 8805bcced9dd87edd01cc3b9112231f8cdd38847 | [
"MIT"
] | null | null | null | # flake8: noqa
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'CrowdsourcedItemGenericForeignKey', fields ['item_type', 'object_id'... | 54.375 | 161 | 0.635796 |
08e52bbc782550ee8bef57a73214f32788592387 | 1,134 | py | Python | captcha-CTC-loss/model.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 923 | 2020-01-11T06:36:53.000Z | 2022-03-31T00:26:57.000Z | captcha-CTC-loss/model.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 25 | 2020-02-27T08:35:46.000Z | 2022-01-25T08:54:19.000Z | captcha-CTC-loss/model.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 262 | 2020-01-02T02:19:40.000Z | 2022-03-23T04:56:16.000Z | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence, PackedSequence
class StackedRNN(nn.Module):
"""Stacked RNN
"""
def __init__(self, input_size, output_size, hidden_size, number_lay... | 36.580645 | 94 | 0.681658 |
08e52da7b0c290c43076d82d574d3fbb00407549 | 16,071 | py | Python | code/models.py | taipahuchu/language-Identification- | 68660bc110d374f0d8802b942792b15f8782e647 | [
"Unlicense"
] | 13 | 2016-10-12T17:20:55.000Z | 2021-07-13T10:19:23.000Z | code/models.py | taipahuchu/language-Identification- | 68660bc110d374f0d8802b942792b15f8782e647 | [
"Unlicense"
] | 2 | 2019-03-28T03:06:54.000Z | 2019-04-04T20:54:43.000Z | code/models.py | taipahuchu/language-Identification- | 68660bc110d374f0d8802b942792b15f8782e647 | [
"Unlicense"
] | 4 | 2018-07-05T05:50:34.000Z | 2019-09-01T20:21:50.000Z | import tensorflow as tf
import numpy as np
class BaseModel(object):
"""Holds code shared between all the different model variants."""
def __init__(self, batch_size, max_sequence_len, out_vocab_size, c2v,
dropout_keep_prob=0.0):
self._batch_size = batch_size
self._dropout_keep_prob = dropou... | 39.681481 | 115 | 0.65136 |
08e539241e2a79441d860787dae9a5c52cbf6f03 | 5,263 | py | Python | kube_dns/datadog_checks/kube_dns/kube_dns.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | null | null | null | kube_dns/datadog_checks/kube_dns/kube_dns.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | null | null | null | kube_dns/datadog_checks/kube_dns/kube_dns.py | seants/integrations-core | 1e5548915fc24f1bbd095e845f0940c22992b09c | [
"BSD-3-Clause"
] | null | null | null | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from copy import deepcopy
from datadog_checks.checks.openmetrics import OpenMetricsBaseCheck
class KubeDNSCheck(OpenMetricsBaseCheck):
"""
Collect kube-dns metrics from Prometheus
"""
DEFAULT_M... | 45.37069 | 104 | 0.713851 |
08e565acad6856a5e4db820ca2ab02e9caacb41a | 9,336 | py | Python | exercises/house_price_prediction.py | Michaliv/IML.HUJI | ff1bd564cc0575dde6da581c810e847c9cd20f27 | [
"MIT"
] | null | null | null | exercises/house_price_prediction.py | Michaliv/IML.HUJI | ff1bd564cc0575dde6da581c810e847c9cd20f27 | [
"MIT"
] | null | null | null | exercises/house_price_prediction.py | Michaliv/IML.HUJI | ff1bd564cc0575dde6da581c810e847c9cd20f27 | [
"MIT"
] | null | null | null | import math
from IMLearn.utils import split_train_test
from IMLearn.learners.regressors import LinearRegression
from typing import NoReturn
import numpy as np
import pandas as pd
import plotly.graph_objects as go
import plotly.express as px
import plotly.io as pio
pio.templates.default = "simple_white"
def load_dat... | 40.415584 | 108 | 0.630141 |
08e58780ab8ea360b2fd19ccaf10ac819045023f | 4,100 | py | Python | sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/models/_azure_digital_twins_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-01-24T08:54:57.000Z | 2022-01-24T08:54:57.000Z | sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/models/_azure_digital_twins_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2021_06_30_preview/models/_azure_digital_twins_management_client_enums.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | # 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 ... | 30.597015 | 96 | 0.68439 |
08e5896e1034fb1782beacfb18fef16da083bded | 18,401 | py | Python | tensorflow/python/ops/linalg/linear_operator_low_rank_update.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/python/ops/linalg/linear_operator_low_rank_update.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/python/ops/linalg/linear_operator_low_rank_update.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 31 | 2018-09-11T02:17:17.000Z | 2021-12-15T10:33:35.000Z | # Copyright 2016 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-2.0
#
# Unless required by applica... | 39.234542 | 80 | 0.661377 |
08e58c6c45ef262cdaa5c0f3010c7f102ee743a6 | 13,229 | py | Python | Sklearn_scipy_numpy/source/sklearn/decomposition/tests/test_online_lda.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2019-06-27T12:09:44.000Z | 2019-06-27T12:09:44.000Z | Sklearn_scipy_numpy/source/sklearn/decomposition/tests/test_online_lda.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | Sklearn_scipy_numpy/source/sklearn/decomposition/tests/test_online_lda.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | null | null | null | import numpy as np
from scipy.linalg import block_diag
from scipy.sparse import csr_matrix
from scipy.special import psi
from sklearn.decomposition import LatentDirichletAllocation
from sklearn.decomposition._online_lda import (_dirichlet_expectation_1d,
_dirichlet_expect... | 39.023599 | 79 | 0.643284 |
08e58ee40b61e37dcd59c2f73f5e67f88471c158 | 696 | py | Python | gwtarget/DESI_mainInjector/checkevent_config.py | rknop/timedomain | d3e3c43dfbb9cadc150ea04024d9b4132cb9ca17 | [
"MIT"
] | 1 | 2021-06-18T05:25:27.000Z | 2021-06-18T05:25:27.000Z | gwtarget/DESI_mainInjector/checkevent_config.py | MatthewPortman/timedomain | b9c6c2e6804d7dde56311d9402769be545d505d0 | [
"MIT"
] | null | null | null | gwtarget/DESI_mainInjector/checkevent_config.py | MatthewPortman/timedomain | b9c6c2e6804d7dde56311d9402769be545d505d0 | [
"MIT"
] | null | null | null | mode = 'observation' # switch to 'observation' for real data!! 'test' will use an offline map and 'mdc' will listen for mock alerts
trigger_outpath = 'OUTPUT/O3REAL/'
#sendEveryoneEmails = True
#sendtexts = True
#allemails = ['djbrout@gmail.com','marcelle@fnal.gov','annis@fnal.gov']
#alltexts = [dillon,alyssa,anni... | 46.4 | 145 | 0.735632 |
08e59a3509bde60c3998f692ab798ba6b27890af | 698 | py | Python | server/face_api/database/crud.py | corbanvilla/AlHosLetMeIn | f5c1ea2f29bc9b5de2e027d6d2ebd40cc7258eb3 | [
"Apache-2.0"
] | null | null | null | server/face_api/database/crud.py | corbanvilla/AlHosLetMeIn | f5c1ea2f29bc9b5de2e027d6d2ebd40cc7258eb3 | [
"Apache-2.0"
] | null | null | null | server/face_api/database/crud.py | corbanvilla/AlHosLetMeIn | f5c1ea2f29bc9b5de2e027d6d2ebd40cc7258eb3 | [
"Apache-2.0"
] | null | null | null | import pickle
from sqlalchemy.orm import Session
from face_api.database.models import User
def get_all_users(db: Session) -> dict:
users = db.query(User).all()
users_dict = {}
for user in users:
try:
users_dict[user.id] = pickle.loads(user.face_encoding)
except pickle.Unpick... | 23.266667 | 66 | 0.686246 |
08e5bc760080353c780f9065c7a4ca75a14c4eeb | 13,071 | py | Python | flexget/utils/tools.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | flexget/utils/tools.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | flexget/utils/tools.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | """Contains miscellaneous helpers"""
from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
from future.utils import PY2
from past.builtins import basestring
from future.moves.urllib import request
import queue
import ast
import cop... | 30.468531 | 110 | 0.627113 |
08e5d1c0b38a464b0ff5dfafef6ea5f09b974346 | 2,764 | py | Python | ros_atlas/handProcessor.py | patrick-ubc/Huawei_HiFly_Drone | 5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490 | [
"Apache-2.0"
] | 1 | 2021-09-21T23:23:59.000Z | 2021-09-21T23:23:59.000Z | ros_atlas/handProcessor.py | patrick-ubc/Huawei_HiFly_Drone | 5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490 | [
"Apache-2.0"
] | 8 | 2021-07-05T21:41:53.000Z | 2022-02-15T19:46:13.000Z | ros_atlas/handProcessor.py | patrick-ubc/Huawei_HiFly_Drone | 5dae1b56f49c2b86c3b852bbc5e3a63e84ccd490 | [
"Apache-2.0"
] | 4 | 2021-06-11T22:47:04.000Z | 2021-07-29T19:57:13.000Z | import sys
import time
import numpy as np
import rospy
sys.path.append("lib/")
from core.BasePostprocessor import Postprocessor
from cv_bridge import CvBridge, CvBridgeError
from rospy.exceptions import ROSException, ROSSerializationException, ROSInterruptException
class HandPostprocessNode(Postprocessor):
def _... | 43.1875 | 117 | 0.599493 |
08e5db49cbd8694d97fd8ab7123ccfc31a07ad6d | 3,141 | py | Python | nnunet/dataset_conversion/Task555_LungNoduleSIEMENS.py | ZXLam/nnUNet | 0cf7c8a857c248d6be171e4945427b405f6ac258 | [
"Apache-2.0"
] | null | null | null | nnunet/dataset_conversion/Task555_LungNoduleSIEMENS.py | ZXLam/nnUNet | 0cf7c8a857c248d6be171e4945427b405f6ac258 | [
"Apache-2.0"
] | null | null | null | nnunet/dataset_conversion/Task555_LungNoduleSIEMENS.py | ZXLam/nnUNet | 0cf7c8a857c248d6be171e4945427b405f6ac258 | [
"Apache-2.0"
] | 1 | 2022-03-15T03:15:02.000Z | 2022-03-15T03:15:02.000Z | import os
import pandas as pd
from batchgenerators.utilities.file_and_folder_operations import *
from sklearn.model_selection import train_test_split
from utils import generate_dataset_json
def make_link(cnt, row, tt):
img_filename = "LI_" + "0" * (3 - len(str(cnt))) + str(cnt) + "_0000.nii.gz"
mask_filenam... | 46.880597 | 114 | 0.605221 |
08e5f47811d8e513275ea615328d0eba5363f9fa | 40,302 | py | Python | myenv/lib/python3.7/site-packages/google/protobuf/util/json_format_pb2.py | theCydonian/AudioEyes | 3dece4529b31e6c63771c4358457962999bda3b4 | [
"MIT"
] | 4,768 | 2015-01-08T04:45:33.000Z | 2022-03-28T07:32:59.000Z | myenv/lib/python3.7/site-packages/google/protobuf/util/json_format_pb2.py | theCydonian/AudioEyes | 3dece4529b31e6c63771c4358457962999bda3b4 | [
"MIT"
] | 2,599 | 2015-01-06T21:51:28.000Z | 2022-03-30T12:40:09.000Z | venv/Lib/site-packages/google/protobuf/util/json_format_pb2.py | Ammar-Raneez/Craigslist_Scraper | 4d8ef7d65f6cb4bbc7a461828ab02ec9e3006f71 | [
"MIT"
] | 878 | 2015-01-10T00:03:30.000Z | 2022-03-31T22:54:15.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/util/json_format.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import sym... | 40.957317 | 2,771 | 0.764255 |
08e6164e77b968884f965928eb294905a34c2c6f | 10,976 | py | Python | gateware/de0nanoplatform.py | hansfbaier/jt51-synth | 6f38fe97dcf64fcab35a0fa1a407c2b7fea32566 | [
"MIT"
] | 1 | 2021-06-16T09:01:17.000Z | 2021-06-16T09:01:17.000Z | gateware/de0nanoplatform.py | hansfbaier/jt51-synth | 6f38fe97dcf64fcab35a0fa1a407c2b7fea32566 | [
"MIT"
] | null | null | null | gateware/de0nanoplatform.py | hansfbaier/jt51-synth | 6f38fe97dcf64fcab35a0fa1a407c2b7fea32566 | [
"MIT"
] | 1 | 2021-07-03T10:20:35.000Z | 2021-07-03T10:20:35.000Z | #
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com>
# SPDX-License-Identifier: BSD-3-Clause
"""
The DE0 Nano does not have an explicit USB port. Instead, you'll need to connect an external ULPI PHY breakout,
such as https://www.waveshare.com/wiki/USB3300_USB_HS_Board.
... | 44.617886 | 184 | 0.610241 |
08e61cc1ab3202f2a0042364f8a16bc4d6712b75 | 1,854 | py | Python | setup.py | cnpls/skadoo | 62ba50f4afe5af39be1791162acf4e55031ba789 | [
"MIT"
] | null | null | null | setup.py | cnpls/skadoo | 62ba50f4afe5af39be1791162acf4e55031ba789 | [
"MIT"
] | null | null | null | setup.py | cnpls/skadoo | 62ba50f4afe5af39be1791162acf4e55031ba789 | [
"MIT"
] | null | null | null | import io
import os
import re
from setuptools import setup, find_packages
NAME = "skadoo"
CLASSIFIERS = """\
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python ::... | 28.090909 | 88 | 0.701187 |
08e66917481771e3e0fc1f7538af9cbb31165987 | 4,358 | py | Python | scraper/spider/movie_parser.py | zli117/Web-Scraper | 328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7 | [
"MIT"
] | 1 | 2019-03-08T10:46:52.000Z | 2019-03-08T10:46:52.000Z | scraper/spider/movie_parser.py | zli117/Web-Scraper | 328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7 | [
"MIT"
] | null | null | null | scraper/spider/movie_parser.py | zli117/Web-Scraper | 328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7 | [
"MIT"
] | null | null | null | import logging
import re
from typing import Dict, List
from urllib import parse
from bs4.element import Tag
from scraper.graph.base_objects import Url
from scraper.graph.movie import Movie
logger = logging.getLogger('Web-Scraper')
CURRENCY_CONVERSION = {'$': 1}
UNIT_CONVERSION = {'million': 1e6, 'billion': 1e9}
... | 33.267176 | 78 | 0.516062 |
08e6732575557e41736fb71a321ee7190e181e7e | 26,046 | py | Python | examples/halide/halidetuner.py | ucb-sejits/opentuner | f78187f0010e7fa1f7969a1230518a4cfa12dedb | [
"MIT"
] | 1 | 2019-06-27T11:32:38.000Z | 2019-06-27T11:32:38.000Z | examples/halide/halidetuner.py | ucb-sejits/opentuner | f78187f0010e7fa1f7969a1230518a4cfa12dedb | [
"MIT"
] | null | null | null | examples/halide/halidetuner.py | ucb-sejits/opentuner | f78187f0010e7fa1f7969a1230518a4cfa12dedb | [
"MIT"
] | 5 | 2017-01-18T00:41:28.000Z | 2021-07-29T02:25:12.000Z | #!/usr/bin/env python
# coding: utf-8
#
# Example of synthesizing Halide schedules using OpenTuner. This program
# expects a compiled version of Halide to exist at ~/Halide or at the location
# specified by --halide-dir.
#
# Halide programs must be modified by:
# 1) Inserting AUTOTUNE_HOOK(Func) directly after the al... | 38.1347 | 129 | 0.635107 |
08e683f73616cff93d462dd54d45ccd788da9d11 | 1,979 | py | Python | alipay/aop/api/domain/AnttechBlockchainFinanceAssetRegisterApplyModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AnttechBlockchainFinanceAssetRegisterApplyModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AnttechBlockchainFinanceAssetRegisterApplyModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AnttechBlockchainFinanceAssetRegisterApplyModel(object):
def __init__(self):
self._asset_info = None
self._asset_type = None
self._out_asset_id = None
@property
d... | 27.873239 | 75 | 0.606872 |
08e6862b5cc2b9e3c62523eeb53f2498ed0cec0b | 4,273 | py | Python | assets/webhooks.py | a2mky/boatbot | 3df77c7c76027213dae26a7900a7eaf5e3b4a8dd | [
"MIT"
] | null | null | null | assets/webhooks.py | a2mky/boatbot | 3df77c7c76027213dae26a7900a7eaf5e3b4a8dd | [
"MIT"
] | null | null | null | assets/webhooks.py | a2mky/boatbot | 3df77c7c76027213dae26a7900a7eaf5e3b4a8dd | [
"MIT"
] | null | null | null | #coding: utf-8
import json
import requests
class Webhook():
def __init__(self, url, content, username="", icon_url=""):
"""
Initialize a Discord Webhook object.
@param {String} url - The webhook url where to make requests.
@param {String} content - TODO: Document this variable usag... | 37.156522 | 108 | 0.573836 |
08e6a43db98fa163fbdf7401b6c174fa14734c98 | 2,162 | py | Python | samples/294_2010/Config.py | zachlatta/robotpy | a2ab5519481170f236a6efce1ef128e4f812509d | [
"MIT",
"Unlicense"
] | 1 | 2021-09-24T22:49:11.000Z | 2021-09-24T22:49:11.000Z | samples/294_2010/Config.py | zachlatta/robotpy | a2ab5519481170f236a6efce1ef128e4f812509d | [
"MIT",
"Unlicense"
] | null | null | null | samples/294_2010/Config.py | zachlatta/robotpy | a2ab5519481170f236a6efce1ef128e4f812509d | [
"MIT",
"Unlicense"
] | null | null | null | import wpilib
from DualSpeedController import DualSpeedController
from EncoderSource import EncoderSource
from WinchOutput import WinchOutput
# Joysticks
lstick = wpilib.Joystick(1)
rstick = wpilib.Joystick(2)
stick3 = wpilib.Joystick(3)
# Motors and drive system
leftFrontMotor = wpilib.CANJaguar(2)
leftRearMotor = w... | 30.885714 | 72 | 0.759944 |
08e6c73aec4cd227fdc2e7ca108ce8c19059d0d8 | 181 | py | Python | ftptools/__init__.py | alexmacniven/ftptools | 68b5c86131cb1cb7507cc566d179799ac4ac9523 | [
"MIT"
] | null | null | null | ftptools/__init__.py | alexmacniven/ftptools | 68b5c86131cb1cb7507cc566d179799ac4ac9523 | [
"MIT"
] | 1 | 2019-11-12T13:18:11.000Z | 2019-11-12T13:32:11.000Z | ftptools/__init__.py | alexmacniven/ftptools | 68b5c86131cb1cb7507cc566d179799ac4ac9523 | [
"MIT"
] | null | null | null | """
ftptools
A python package to make working with FTP commands that little bit easier.
"""
from .tls import TLSConnection # noqa F401
from .ftp import FTPConnection # noqa F401
| 22.625 | 74 | 0.756906 |
08e6f57ddb443f5b595a87b7364b0d31e4b270f6 | 2,901 | py | Python | widgets/IP.py | ludat/lueng | 87d7a47825af73238a44d7808aac4bfc4314d411 | [
"MIT"
] | null | null | null | widgets/IP.py | ludat/lueng | 87d7a47825af73238a44d7808aac4bfc4314d411 | [
"MIT"
] | 2 | 2015-03-06T08:55:02.000Z | 2015-03-12T10:03:54.000Z | widgets/IP.py | ludat/lueng | 87d7a47825af73238a44d7808aac4bfc4314d411 | [
"MIT"
] | null | null | null | #!/bin/env python3
import threading
import logging
import time
import subprocess
import re
IS_SAFE = True
NAME = 'IP'
logger = logging.getLogger('WIDGET')
class mainThread (threading.Thread):
def __init__(self, codeName, mainQueue, inputQueue=None):
threading.Thread.__init__(self)
self.name = N... | 27.11215 | 61 | 0.491899 |
08e74cc1edf9decc63c13ed9c4f323dc0e1d213b | 1,673 | py | Python | test/test_show.py | prisae/asv | 57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c | [
"BSD-3-Clause"
] | 2 | 2019-08-18T11:05:25.000Z | 2019-11-17T02:07:18.000Z | test/test_show.py | prisae/asv | 57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c | [
"BSD-3-Clause"
] | 1 | 2019-02-19T17:11:38.000Z | 2019-02-19T17:11:38.000Z | test/test_show.py | prisae/asv | 57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import os
from os.path import abspath, dirname, join
import six
import textwrap
from asv import config
from . import t... | 28.355932 | 74 | 0.653317 |
08e75782dc6da85437bfd3491d6058618a98aa60 | 897 | py | Python | sensor-firmware/read_distance.py | greck2908/robot-software | 2e1e8177148a089e8883967375dde7f8ed3d878b | [
"MIT"
] | 40 | 2016-10-04T19:59:22.000Z | 2020-12-25T18:11:35.000Z | sensor-firmware/read_distance.py | greck2908/robot-software | 2e1e8177148a089e8883967375dde7f8ed3d878b | [
"MIT"
] | 209 | 2016-09-21T21:54:28.000Z | 2022-01-26T07:42:37.000Z | sensor-firmware/read_distance.py | greck2908/robot-software | 2e1e8177148a089e8883967375dde7f8ed3d878b | [
"MIT"
] | 21 | 2016-11-07T14:40:16.000Z | 2021-11-02T09:53:37.000Z | #!/usr/bin/env python3
"""
Listens for distance measurements on UAVCAN
"""
import argparse
import uavcan
import os
DSDL_DIR = os.path.join(os.path.dirname(__file__), "../uavcan_data_types/cvra")
def parse_args():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument(
"port",
... | 19.933333 | 88 | 0.667781 |
08e7748ee4c93228ee2ae7e7f329223cbb9db74c | 1,686 | py | Python | toontown/toontowngui/ToonHeadDialog.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 3 | 2020-01-02T08:43:36.000Z | 2020-07-05T08:59:02.000Z | toontown/toontowngui/ToonHeadDialog.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | toontown/toontowngui/ToonHeadDialog.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | 4 | 2019-06-20T23:45:23.000Z | 2020-10-14T20:30:15.000Z | from pandac.PandaModules import *
from toontown.toonbase.ToontownGlobals import *
from direct.directnotify import DirectNotifyGlobal
from toontown.toontowngui import TTDialog
from toontown.toon import ToonHead
class ToonHeadDialog(TTDialog.TTDialog):
notify = DirectNotifyGlobal.directNotify.newCategory('ToonHeadDi... | 39.209302 | 74 | 0.661329 |
08e77cab9df2082869c636662d80eaedf1589618 | 11,110 | py | Python | sog/threads.py | jnewblanc/sog | ed1ae5bd409bc3e64f204ed3180a5f06f28db731 | [
"CC0-1.0"
] | 1 | 2022-02-03T05:44:57.000Z | 2022-02-03T05:44:57.000Z | sog/threads.py | jnewblanc/sog | ed1ae5bd409bc3e64f204ed3180a5f06f28db731 | [
"CC0-1.0"
] | 1 | 2020-10-17T01:14:33.000Z | 2020-10-17T01:14:33.000Z | sog/threads.py | jnewblanc/sog | ed1ae5bd409bc3e64f204ed3180a5f06f28db731 | [
"CC0-1.0"
] | null | null | null | """ threads.py - server side client and async thread classes
* ClientThread - uses existing (or spins up) lobby/game instance
* AsyncThread - uses existing (or spins up) game instance
* Note: threads must be started before use"""
from datetime import datetime
import os
import socket
import threading
import... | 31.925287 | 85 | 0.558866 |
08e78682269b4695392120d9e96506458bcc3e33 | 14,221 | py | Python | sparkquantum/dtqw/mesh/grid/twodim/natural/box.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | 2 | 2020-04-07T18:25:03.000Z | 2020-04-07T18:25:21.000Z | sparkquantum/dtqw/mesh/grid/twodim/natural/box.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | null | null | null | sparkquantum/dtqw/mesh/grid/twodim/natural/box.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | null | null | null | from sparkquantum import constants, util
from sparkquantum.dtqw.mesh.grid.twodim.natural.natural import Natural
from sparkquantum.dtqw.operator import Operator
__all__ = ['Box']
class Box(Natural):
"""Class for natural box mesh."""
def __init__(self, shape, percolation=None):
"""Build a natural box ... | 42.834337 | 142 | 0.363406 |
08e7c5c579bec27cb0515ea3febded09aafec192 | 9,340 | py | Python | external/sbml/bindings/python/test/sbml/TestReadFromFile2.py | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | 1 | 2019-08-22T17:17:41.000Z | 2019-08-22T17:17:41.000Z | external/sbml/bindings/python/test/sbml/TestReadFromFile2.py | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | external/sbml/bindings/python/test/sbml/TestReadFromFile2.py | dchandran/evolvenetworks | 072f9e1292552f691a86457ffd16a5743724fb5e | [
"BSD-3-Clause"
] | null | null | null | #
# @file TestReadFromFile2.py
# @brief Reads tests/l1v1-units.xml into memory and tests it.
#
# @author Akiya Jouraku (Python conversion)
# @author Ben Bornstein
#
# $Id: TestReadFromFile2.py 10124 2009-08-28 12:04:51Z sarahkeating $
# $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/b... | 36.484375 | 124 | 0.6106 |
08e7d0a9be32598188ade47467667b9aa6d8faa2 | 36,927 | py | Python | exac.py | NBISweden/exac_browser | c4d62741d0298dbf2a09c19b3585a601b22d5336 | [
"MIT"
] | 2 | 2017-02-27T13:25:38.000Z | 2018-10-17T08:06:51.000Z | exac.py | NBISweden/exac_browser | c4d62741d0298dbf2a09c19b3585a601b22d5336 | [
"MIT"
] | 3 | 2017-02-15T13:52:00.000Z | 2017-11-09T09:38:01.000Z | exac.py | NBISweden/exac_browser | c4d62741d0298dbf2a09c19b3585a601b22d5336 | [
"MIT"
] | 1 | 2017-02-15T08:52:41.000Z | 2017-02-15T08:52:41.000Z | import itertools
import json
import os
import pymongo
import pysam
import gzip
from parsing import *
import logging
import lookups
import random
import sys
from utils import *
from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash, jsonify, send_from_directory
from flask.ext.com... | 38.788866 | 206 | 0.646113 |
08e7d132f2defb5bb82f57790552842eedc2700d | 1,579 | py | Python | scripts/stars.py | GRG2/nist-software-scraper | 632134956921657c3238f6afc9bc1c6c0a2fc76e | [
"MIT"
] | 38 | 2016-12-08T12:47:52.000Z | 2022-03-18T20:01:13.000Z | scripts/stars.py | GRG2/nist-software-scraper | 632134956921657c3238f6afc9bc1c6c0a2fc76e | [
"MIT"
] | 39 | 2017-10-19T20:41:08.000Z | 2021-06-28T19:04:39.000Z | scripts/stars.py | GRG2/nist-software-scraper | 632134956921657c3238f6afc9bc1c6c0a2fc76e | [
"MIT"
] | 17 | 2017-11-22T10:58:16.000Z | 2021-09-29T17:41:09.000Z | #!/usr/bin/env python
import logging
import os
import re
import requests
logging.basicConfig(level=logging.DEBUG)
github = requests.Session()
NEXT_LINK_REGEX = re.compile(r'<(\S+)>(?=; rel="next")')
def get_stargazers(url, session=None):
"""
Return a list of the stargazers of a GitHub repo
Includes ... | 25.467742 | 86 | 0.628879 |
08e7daa3de5bddd79f43ff33dc3312b637afff28 | 14,251 | py | Python | src/zptool/summary.py | STARS4ALL/zptess | 9bbe91720f283756a0938c7ac4dde180c1e1eda2 | [
"MIT"
] | null | null | null | src/zptool/summary.py | STARS4ALL/zptess | 9bbe91720f283756a0938c7ac4dde180c1e1eda2 | [
"MIT"
] | null | null | null | src/zptool/summary.py | STARS4ALL/zptess | 9bbe91720f283756a0938c7ac4dde180c1e1eda2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# Copyright (c) 2021
#
# See the LICENSE file for details
# see the AUTHORS file for authors
# ----------------------------------------------------------------------
#--------------------
# System wide imports
# ----------... | 35.100985 | 149 | 0.565574 |
08e7ed0a1e1c17cde2098c2d177ebb5cc8df94b7 | 14,607 | py | Python | SCRAPE/Lib/site-packages/twisted/cred/test/test_cred.py | Chinmoy-Prasad-Dutta/scrapy_scraper | 09f6abfc3bcf10ee28f486d83b450c89a07e066e | [
"MIT"
] | null | null | null | SCRAPE/Lib/site-packages/twisted/cred/test/test_cred.py | Chinmoy-Prasad-Dutta/scrapy_scraper | 09f6abfc3bcf10ee28f486d83b450c89a07e066e | [
"MIT"
] | null | null | null | SCRAPE/Lib/site-packages/twisted/cred/test/test_cred.py | Chinmoy-Prasad-Dutta/scrapy_scraper | 09f6abfc3bcf10ee28f486d83b450c89a07e066e | [
"MIT"
] | null | null | null | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.cred}, now with 30% more starch.
"""
from binascii import hexlify, unhexlify
from zope.interface import Interface, implementer
from twisted.cred import checkers, credentials, error, portal
from twisted.internet import d... | 31.278373 | 91 | 0.625111 |
08e81ca10154c4639aa292251515fbb47e6b68f8 | 5,043 | py | Python | modules/tools/gen_vehicle_protocol/gen_proto_file.py | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | 6 | 2019-10-11T07:57:49.000Z | 2022-02-23T15:23:41.000Z | modules/tools/gen_vehicle_protocol/gen_proto_file.py | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | null | null | null | modules/tools/gen_vehicle_protocol/gen_proto_file.py | DavidSplit/apollo-3.0 | 9f82838e857e4c9146952946cbc34b9f35098deb | [
"Apache-2.0"
] | 12 | 2019-10-11T07:57:49.000Z | 2022-03-16T05:13:00.000Z | #!/usr/bin/env python
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
# Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not ... | 34.306122 | 80 | 0.536784 |
08e836903ac5be601a22dbe4fab87aa5e0e66124 | 150 | py | Python | pwnables/input/sockets.py | RegaledSeer/netsecnoobie | d3366937ec8c67a9742f61e47698239ae693af49 | [
"MIT"
] | null | null | null | pwnables/input/sockets.py | RegaledSeer/netsecnoobie | d3366937ec8c67a9742f61e47698239ae693af49 | [
"MIT"
] | null | null | null | pwnables/input/sockets.py | RegaledSeer/netsecnoobie | d3366937ec8c67a9742f61e47698239ae693af49 | [
"MIT"
] | null | null | null | import socket
HOST = 'localhost'
PORT = 8800
c = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
c.connect((HOST,PORT))
c.send("\xde\xad\xbe\xef")
| 16.666667 | 52 | 0.726667 |
08e83868319f01006439fc645726788ba888b74e | 9,608 | py | Python | tests/regressiontests/utils/jslex.py | hafeez3000/django | 08e1175ac8d683b692ec3c67dc31df149f07dc8f | [
"BSD-3-Clause"
] | 4 | 2015-08-27T22:03:47.000Z | 2017-09-04T08:13:44.000Z | tests/regressiontests/utils/jslex.py | hafeez3000/django | 08e1175ac8d683b692ec3c67dc31df149f07dc8f | [
"BSD-3-Clause"
] | null | null | null | tests/regressiontests/utils/jslex.py | hafeez3000/django | 08e1175ac8d683b692ec3c67dc31df149f07dc8f | [
"BSD-3-Clause"
] | 1 | 2020-01-04T14:51:18.000Z | 2020-01-04T14:51:18.000Z | """Tests for jslex."""
# encoding: utf-8
# originally from https://bitbucket.org/ned/jslex
import difflib
from django.test import TestCase
from django.utils.jslex import JsLexer, prepare_js_for_gettext
class JsTokensTest(TestCase):
LEX_CASES = [
# ids
("a ABC $ _ a123", ["id a", "id ABC", "id $", ... | 44.073394 | 159 | 0.372606 |
08e8588a23daca8685503386257e53c8ddeb7234 | 4,461 | py | Python | Lib/site-packages/py2exe/boot_com_servers.py | Aakash10399/simple-health-glucheck | 1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2 | [
"bzip2-1.0.6"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | Lib/site-packages/py2exe/boot_com_servers.py | Aakash10399/simple-health-glucheck | 1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2 | [
"bzip2-1.0.6"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | Lib/site-packages/py2exe/boot_com_servers.py | Aakash10399/simple-health-glucheck | 1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2 | [
"bzip2-1.0.6"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | # This support script is executed as the entry point for py2exe.
import sys
import win32api
if 0:
################################################################
# XXX Remove later!
class LOGGER:
def __init__(self):
self.softspace = None
self.ofi = open(r"c:\comerror.txt",... | 36.565574 | 77 | 0.60659 |
08e8588e4b1f9534064d1e8775096e7597c21939 | 727 | py | Python | run.py | MBerger94/Lithophane | 6ed4c52b389127ce347f12848ae5443e1958198e | [
"MIT"
] | null | null | null | run.py | MBerger94/Lithophane | 6ed4c52b389127ce347f12848ae5443e1958198e | [
"MIT"
] | null | null | null | run.py | MBerger94/Lithophane | 6ed4c52b389127ce347f12848ae5443e1958198e | [
"MIT"
] | null | null | null | from lithostl import lithophane
#### Create Lithophane from Chicken
lith = lithophane("./example/Chicken.jpg", "flat", width = 40)
#### Create Image(xyz) and apply gaussian filter with sigma = 3
lith.generateSTL(filter_sigma = 3)
#### plot Original Image and gray scale Image
lith.plotImage(show = False)
#### Create... | 25.068966 | 63 | 0.730399 |
08e85bdc1868d324f9da567c74aaaeb16380f3ae | 1,153 | py | Python | setup.py | emmanvg/cti-stix-validator | 0e5e4320d100b1d2a9a5d3f748e1ac6da330c1ea | [
"BSD-3-Clause"
] | 1 | 2020-12-19T06:27:32.000Z | 2020-12-19T06:27:32.000Z | setup.py | emmanvg/cti-stix-validator | 0e5e4320d100b1d2a9a5d3f748e1ac6da330c1ea | [
"BSD-3-Clause"
] | null | null | null | setup.py | emmanvg/cti-stix-validator | 0e5e4320d100b1d2a9a5d3f748e1ac6da330c1ea | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from setuptools import find_packages, setup
with open('README.rst') as f:
readme = f.read()
def get_version():
with open('stix2validator/version.py') as f:
for line in f.readlines():
if line.startswith("__version__"):
version = line.split()[-1].stri... | 24.531915 | 82 | 0.635733 |
08e8a1e71353ceb1766f592db27c6e89203d3680 | 471 | py | Python | city_scrapers/commands/list.py | danielahuang/city-scrapers | 711d1995f59100793e771068a6f5d9149e773412 | [
"MIT"
] | null | null | null | city_scrapers/commands/list.py | danielahuang/city-scrapers | 711d1995f59100793e771068a6f5d9149e773412 | [
"MIT"
] | null | null | null | city_scrapers/commands/list.py | danielahuang/city-scrapers | 711d1995f59100793e771068a6f5d9149e773412 | [
"MIT"
] | null | null | null | from scrapy.commands.list import Command as ExistingListCommand
class Command(ExistingListCommand):
def run(self, args, opts):
for s in sorted(self.crawler_process.spider_loader.list()):
cls = self.crawler_process.spider_loader.load(s)
if hasattr(cls, 'long_name'):
... | 36.230769 | 67 | 0.619958 |
08e8a622462b4c821d24a0dbb4e3f81e9f396e1a | 5,518 | py | Python | tests/shell/test_shell_interactive.py | gistic/SpatialImpala | 749b7fe0b6ba897df6f30f87ad561f214bb613fc | [
"Apache-2.0"
] | 2 | 2017-05-30T16:47:31.000Z | 2020-07-21T04:28:17.000Z | tests/shell/test_shell_interactive.py | gistic/SpatialImpala | 749b7fe0b6ba897df6f30f87ad561f214bb613fc | [
"Apache-2.0"
] | null | null | null | tests/shell/test_shell_interactive.py | gistic/SpatialImpala | 749b7fe0b6ba897df6f30f87ad561f214bb613fc | [
"Apache-2.0"
] | 2 | 2019-06-08T23:27:36.000Z | 2022-02-08T09:53:37.000Z | #!/usr/bin/env python
# encoding=utf-8
# Copyright 2014 Cloudera 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 app... | 39.414286 | 87 | 0.72925 |
08e8ba2e6cfb3ee49b6d0b6090b6d09142142907 | 11,657 | py | Python | rally/plugins/openstack/scenarios/sahara/clusters.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/scenarios/sahara/clusters.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | rally/plugins/openstack/scenarios/sahara/clusters.py | DeanHwd/rally | d284aa0746c54f1c375470e76dd206d19877a7fd | [
"Apache-2.0"
] | null | null | null | # Copyright 2014: Mirantis 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... | 50.24569 | 79 | 0.61611 |
08e8d694dcf5b47cc7974e751e3ec7c0f6574145 | 7,671 | py | Python | features/steps/order_steps.py | NYU-Devops-orders/orders | cba4404c4a75550c4834a646ab91aae0ebc5fdac | [
"Apache-2.0"
] | null | null | null | features/steps/order_steps.py | NYU-Devops-orders/orders | cba4404c4a75550c4834a646ab91aae0ebc5fdac | [
"Apache-2.0"
] | 81 | 2020-02-28T19:00:36.000Z | 2020-05-08T02:54:23.000Z | features/steps/order_steps.py | NYU-Devops-orders/orders | cba4404c4a75550c4834a646ab91aae0ebc5fdac | [
"Apache-2.0"
] | 4 | 2020-03-02T05:04:44.000Z | 2020-04-07T16:03:32.000Z | """
Order Steps
Steps file for orders.feature
"""
from os import getenv
import logging
import json
import requests
from behave import *
from compare import expect, ensure
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select
... | 39.541237 | 115 | 0.658454 |
08e8eb1da2b45c64f070833fcaaaad124eddb272 | 718 | py | Python | tldextract/remote.py | AetherUnbound/tldextract | b29803340b4b5061a1aa225fcad925d6d83f8def | [
"BSD-3-Clause"
] | 1,200 | 2015-01-02T17:49:58.000Z | 2022-03-31T13:32:09.000Z | tldextract/remote.py | AetherUnbound/tldextract | b29803340b4b5061a1aa225fcad925d6d83f8def | [
"BSD-3-Clause"
] | 192 | 2015-02-09T15:53:48.000Z | 2022-03-19T20:45:11.000Z | tldextract/remote.py | AetherUnbound/tldextract | b29803340b4b5061a1aa225fcad925d6d83f8def | [
"BSD-3-Clause"
] | 186 | 2015-01-10T15:41:45.000Z | 2022-03-17T15:30:22.000Z | 'tldextract helpers for testing and fetching remote resources.'
import re
import socket
from urllib.parse import scheme_chars
IP_RE = re.compile(
r'^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$') # pylint: disable=line-too-long
SCHEME_RE = re.compile... | 23.933333 | 146 | 0.60585 |
08e8ef3f5fd15e33d5387eac3d750ead55f548d6 | 4,577 | py | Python | door_06/solution.py | EdinCitaku/advent-of-code | a7f6ddfc42365225c33a6eefc48c009dfcadfb11 | [
"MIT"
] | null | null | null | door_06/solution.py | EdinCitaku/advent-of-code | a7f6ddfc42365225c33a6eefc48c009dfcadfb11 | [
"MIT"
] | null | null | null | door_06/solution.py | EdinCitaku/advent-of-code | a7f6ddfc42365225c33a6eefc48c009dfcadfb11 | [
"MIT"
] | null | null | null | # We need the right data structure to accomodate for this!
# Worst case we need to search the tree every time!
# Idea save everythin in a tree! putting it all in a tree should be straight forward!
# Problem how can we do the insert efficiently? Do we need to save a point with every planet in a dictionary so we can aces... | 34.156716 | 213 | 0.627048 |
08e90aa235f4c329fc95a43e01c0a8f9116d32a2 | 33,812 | py | Python | api/desecapi/views.py | peterthomassen/desec-stack | 436e48e8fc3f55ecf0b0e6a57a735a899a736f19 | [
"MIT"
] | null | null | null | api/desecapi/views.py | peterthomassen/desec-stack | 436e48e8fc3f55ecf0b0e6a57a735a899a736f19 | [
"MIT"
] | null | null | null | api/desecapi/views.py | peterthomassen/desec-stack | 436e48e8fc3f55ecf0b0e6a57a735a899a736f19 | [
"MIT"
] | null | null | null | import base64
import binascii
from datetime import timedelta
from functools import cached_property
import django.core.exceptions
from django.conf import settings
from django.contrib.auth import user_logged_in
from django.contrib.auth.hashers import is_password_usable
from django.core.cache import cache
from django.cor... | 41.183922 | 122 | 0.65184 |
08e912ac67466a225c6d9de31092a2155273cf41 | 967 | py | Python | hallo/modules/ascii_art/train.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2018-05-19T22:27:20.000Z | 2018-05-19T22:27:20.000Z | hallo/modules/ascii_art/train.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 75 | 2015-09-26T18:07:18.000Z | 2022-01-04T07:15:11.000Z | hallo/modules/ascii_art/train.py | SpangleLabs/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2021-04-10T12:02:47.000Z | 2021-04-10T12:02:47.000Z | from hallo.function import Function
class Train(Function):
"""
Draws an ascii train
"""
def __init__(self):
"""
Constructor
"""
super().__init__()
# Name for use in help listing
self.help_name = "train"
# Names which can be used to address the f... | 33.344828 | 75 | 0.490176 |
08e934e090da65c0702622e95f0dcd1cdef8c7aa | 488 | py | Python | main.py | piculator/piculator_gamma | 3dc0f71dda663c05d606689e1167359a69bf11fd | [
"BSD-3-Clause"
] | 414 | 2015-01-17T21:40:32.000Z | 2022-03-31T11:42:37.000Z | main.py | piculator/piculator_gamma | 3dc0f71dda663c05d606689e1167359a69bf11fd | [
"BSD-3-Clause"
] | 112 | 2015-01-18T20:06:13.000Z | 2022-02-12T23:15:11.000Z | main.py | piculator/piculator_gamma | 3dc0f71dda663c05d606689e1167359a69bf11fd | [
"BSD-3-Clause"
] | 94 | 2015-01-08T13:10:24.000Z | 2022-02-22T03:16:34.000Z | from app.wsgi import application
# App Engine by default looks for a main.py file at the root of the app
# directory with a WSGI-compatible object called app.
# This file imports the WSGI-compatible object of your Django app,
# application from mysite/wsgi.py and renames it app so it is discoverable by
# App Engine wi... | 44.363636 | 77 | 0.784836 |
08e9bb9b925f751a4d5e868816055983c6020a30 | 5,054 | py | Python | asposeimagingcloud/models/requests/move_folder_request.py | aspose-imaging-cloud/aspose-imaging-cloud-python | 9280a4a1aa415cb569ec26a05792b33186d31a85 | [
"MIT"
] | 1 | 2022-01-14T10:06:26.000Z | 2022-01-14T10:06:26.000Z | asposeimagingcloud/models/requests/move_folder_request.py | aspose-imaging-cloud/aspose-imaging-cloud-python | 9280a4a1aa415cb569ec26a05792b33186d31a85 | [
"MIT"
] | 3 | 2019-07-17T15:01:31.000Z | 2020-12-29T09:16:10.000Z | asposeimagingcloud/models/requests/move_folder_request.py | aspose-imaging-cloud/aspose-imaging-cloud-python | 9280a4a1aa415cb569ec26a05792b33186d31a85 | [
"MIT"
] | null | null | null | # coding: utf-8
# ----------------------------------------------------------------------------
# <copyright company="Aspose" file="move_folder_request.py">
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person o... | 46.796296 | 162 | 0.671547 |
08e9c788ee74bbbb59f739753d5728d49504e503 | 415 | py | Python | car/urls.py | orsandra89/test-car-api | 9d4a0417d80b3922f760ab81428b04ab1cff67b6 | [
"MIT"
] | 1 | 2021-12-12T15:14:48.000Z | 2021-12-12T15:14:48.000Z | car/urls.py | orsandra89/test-car-api | 9d4a0417d80b3922f760ab81428b04ab1cff67b6 | [
"MIT"
] | null | null | null | car/urls.py | orsandra89/test-car-api | 9d4a0417d80b3922f760ab81428b04ab1cff67b6 | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework import urlpatterns, viewsets
from rest_framework.routers import DefaultRouter
from car import views
router = DefaultRouter()
router.register('carbrands', views.CarbrandViewSet)
router.register('carmodels', views.CarmodelViewSet)
router.register('carobjects', ... | 24.411765 | 53 | 0.792771 |
08e9c7b81a7fac13207908eefd686d971e79ae76 | 1,392 | py | Python | BagModules/bag_digital_ec/buffer_array.py | xyabc/bag_digital_ec | 71b982fc0fbe275fc3901db2e25ab7ca62fb319f | [
"BSD-3-Clause"
] | null | null | null | BagModules/bag_digital_ec/buffer_array.py | xyabc/bag_digital_ec | 71b982fc0fbe275fc3901db2e25ab7ca62fb319f | [
"BSD-3-Clause"
] | null | null | null | BagModules/bag_digital_ec/buffer_array.py | xyabc/bag_digital_ec | 71b982fc0fbe275fc3901db2e25ab7ca62fb319f | [
"BSD-3-Clause"
] | 2 | 2019-06-30T07:03:02.000Z | 2020-01-07T04:55:21.000Z | # -*- coding: utf-8 -*-
from typing import Dict
import os
import pkg_resources
from bag.design import Module
yaml_file = pkg_resources.resource_filename(__name__, os.path.join('netlist_info',
'buffer_array.yaml'))
# noinspection PyPep8Naming
clas... | 29.617021 | 88 | 0.575431 |
08e9e1415f0679948f7ae9a1fd6865b1ceedc227 | 22,337 | py | Python | scmer/_umap_l1.py | KChen-lab/marker-selection | 3d6b015655095540ba3a0ab7e8682d4355065ad5 | [
"MIT"
] | 26 | 2020-12-04T05:10:47.000Z | 2022-02-25T02:26:27.000Z | scmer/_umap_l1.py | KChen-lab/marker-selection | 3d6b015655095540ba3a0ab7e8682d4355065ad5 | [
"MIT"
] | 1 | 2021-01-23T21:29:03.000Z | 2021-01-24T12:04:12.000Z | scmer/_umap_l1.py | KChen-lab/marker-selection | 3d6b015655095540ba3a0ab7e8682d4355065ad5 | [
"MIT"
] | 1 | 2021-11-19T00:38:10.000Z | 2021-11-19T00:38:10.000Z | from typing import List, Union, Optional
import torch
from typing import Type
from ._interfaces import _ABCSelector, _ABCTorchModel
from ._base_selector import _BaseSelector
from ._owlqn import OWLQN
import warnings
import multiprocessing
import numpy as np
from sklearn.decomposition import PCA
from ._utils import ... | 44.763527 | 129 | 0.567399 |
08e9ffb2deed7cc8e24015904c211518545710e1 | 3,733 | py | Python | nile/common/lockutils.py | Orpheus11/nile | b92d514f57eec9583d9e6f2a7df83506efe2a2e8 | [
"Apache-2.0"
] | null | null | null | nile/common/lockutils.py | Orpheus11/nile | b92d514f57eec9583d9e6f2a7df83506efe2a2e8 | [
"Apache-2.0"
] | null | null | null | nile/common/lockutils.py | Orpheus11/nile | b92d514f57eec9583d9e6f2a7df83506efe2a2e8 | [
"Apache-2.0"
] | null | null | null | import threading
import weakref
import contextlib
import logging
import fasteners
import os
LOG = logging.getLogger(__name__)
class Semaphores(object):
def __init__(self):
self._semaphores = weakref.WeakValueDictionary()
self._lock = threading.Lock()
def get(self, name):
with self._loc... | 33.936364 | 78 | 0.668363 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.