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
74a7c7677303ac49d703bbe08cc7a416a4c36b11
1,920
py
Python
.leetcode/476.number-complement.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/476.number-complement.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/476.number-complement.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=476 lang=python3 # # [476] Number Complement # # https://leetcode.com/problems/number-complement/description/ # # algorithms # Easy (65.38%) # Likes: 1300 # Dislikes: 90 # Total Accepted: 220.6K # Total Submissions: 337.3K # Testcase Example: '5' # # The complement of an integer is the inte...
17.614679
79
0.620313
74a7cdc47daabf8ada60bf329beff55f9c322875
16,180
py
Python
src/Solver/kociembaSolver/source/tests/test_solve.py
jbeck18/ScrambleGenerator
8dd517685b89e102106f76db134e2213e89db1e3
[ "MIT" ]
null
null
null
src/Solver/kociembaSolver/source/tests/test_solve.py
jbeck18/ScrambleGenerator
8dd517685b89e102106f76db134e2213e89db1e3
[ "MIT" ]
null
null
null
src/Solver/kociembaSolver/source/tests/test_solve.py
jbeck18/ScrambleGenerator
8dd517685b89e102106f76db134e2213e89db1e3
[ "MIT" ]
null
null
null
from kociemba import solve import pytest # these results were produced by original Kociemba's Java implementation @pytest.mark.parametrize("input,expected", [ ("BBURUDBFUFFFRRFUUFLULUFUDLRRDBBDBDBLUDDFLLRRBRLLLBRDDF", "B U' L' D' R' D' L2 D' L F' L' D F2 R2 U R2 B2 U2 L2 F2 D'"), ("FDLUUURLFLBDFRRDLBBBU...
42.917772
102
0.650927
74a7dc377abc705adbd9c17d0c494cb99d7d7496
485
py
Python
src/get_data.py
partham16/ev_objdet_pc
2ab64c94a9d7693f92bb3e4466014260f77072bb
[ "MIT" ]
null
null
null
src/get_data.py
partham16/ev_objdet_pc
2ab64c94a9d7693f92bb3e4466014260f77072bb
[ "MIT" ]
null
null
null
src/get_data.py
partham16/ev_objdet_pc
2ab64c94a9d7693f92bb3e4466014260f77072bb
[ "MIT" ]
null
null
null
import icedata from .config import Config def get_data(url: str = Config.data_url, dest_dir: str = Config.dest_dir) -> None: """[download the trainval data] Keyword Arguments: url {str} -- [the url to download data from] (default: {Config.data_url}) dest_dir {str} -- [directory to save data ...
26.944444
82
0.680412
74a7efee7ab6a58e1e85bc6229431ab9d9940819
16,284
py
Python
dipy/viz/regtools.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/viz/regtools.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/viz/regtools.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
import numpy as np from ..utils.optpkg import optional_package matplotlib, has_mpl, setup_module = optional_package("matplotlib") plt, _, _ = optional_package("matplotlib.pyplot") def _tile_plot(imgs, titles, **kwargs): """ Helper function """ # Create a new figure and plot the three images fig, a...
41.017632
79
0.645787
74a802ffa6bff2c5d3b11143225b8e7d81c2ce0d
1,597
py
Python
python/pymei/__init__.py
Breakend/libmei
c031be79a2775e8bb9b47e1057e1398232d4b293
[ "MIT" ]
null
null
null
python/pymei/__init__.py
Breakend/libmei
c031be79a2775e8bb9b47e1057e1398232d4b293
[ "MIT" ]
null
null
null
python/pymei/__init__.py
Breakend/libmei
c031be79a2775e8bb9b47e1057e1398232d4b293
[ "MIT" ]
1
2021-02-23T21:13:47.000Z
2021-02-23T21:13:47.000Z
# Copyright (c) 2011 Andrew Hankinson # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # d...
40.948718
72
0.765811
74a803af55c9eb1645eaff0b9345c69a8f4b87b0
9,731
py
Python
optimum/onnxruntime/optimize_model.py
lipovsek/optimum
07e35a1e4cd308956113bea880c11f90af5d6446
[ "Apache-2.0" ]
null
null
null
optimum/onnxruntime/optimize_model.py
lipovsek/optimum
07e35a1e4cd308956113bea880c11f90af5d6446
[ "Apache-2.0" ]
null
null
null
optimum/onnxruntime/optimize_model.py
lipovsek/optimum
07e35a1e4cd308956113bea880c11f90af5d6446
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The HuggingFace Team. 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...
35.129964
119
0.674134
74a80e05885572c20f72417149732f0784efc8d6
831
py
Python
src/azul/aws_service_model.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/aws_service_model.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
src/azul/aws_service_model.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
from enum import Enum, auto from typing import Set class ServiceActionType(Enum): """ Identifies the type of action in IAM's service model """ list = auto() read = auto() write = auto() tagging = auto() permissions = auto() @classmethod def forActionGroups(cls, groups: Set[str...
25.96875
70
0.569194
74a83d757cc16507e0c8d3a61a09eb95d60bab64
2,494
py
Python
ibms_project/sfm/models.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
ibms_project/sfm/models.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
ibms_project/sfm/models.py
mohdbakhrayba/ibms
029e1f3bf108586289c65bb1d547f86851f9494f
[ "Apache-2.0" ]
null
null
null
from django.db import models class CostCentre(models.Model): costCentre = models.CharField(max_length=6, verbose_name="CostCentre", help_text="Cost Centre") name = models.CharField(max_length=128, null=True, blank=True) def __str__(self): return (self.name and "{...
30.414634
81
0.691259
74a84ac895696ecb6ec3bb1ebbc6bb507ae0cfcd
65,036
py
Python
roles/lib_openshift/library/oc_env.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/library/oc_env.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
null
null
null
roles/lib_openshift/library/oc_env.py
dulek/openshift-ansible
2d0501b63ff07b177b3fb5b1c6663ed369656240
[ "Apache-2.0" ]
1
2020-12-02T00:39:02.000Z
2020-12-02T00:39:02.000Z
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
33.403184
139
0.55194
74a8544cafcd75fbd505b51c7fc0ed9417cfec88
2,289
py
Python
teacher_app/apps/classes/serializers/class_serializer.py
Darius-Ndubi/Teacher_APP_API
1bafbccbbb3f8a9cc4b396bdd91e0d8c8e9a17dc
[ "MIT" ]
null
null
null
teacher_app/apps/classes/serializers/class_serializer.py
Darius-Ndubi/Teacher_APP_API
1bafbccbbb3f8a9cc4b396bdd91e0d8c8e9a17dc
[ "MIT" ]
4
2021-03-19T02:10:15.000Z
2022-02-10T09:23:23.000Z
teacher_app/apps/classes/serializers/class_serializer.py
Darius-Ndubi/Teacher_APP_API
1bafbccbbb3f8a9cc4b396bdd91e0d8c8e9a17dc
[ "MIT" ]
null
null
null
from django.core import exceptions from rest_framework import serializers from rest_framework.validators import UniqueValidator from rest_framework import exceptions as rest_exception from ..models import StudentClass from ...authentication.models import User class ClassSerializer(serializers.ModelSerializer): ...
31.791667
88
0.67322
74a85498091e3315a0b3c5e8d03f82a41d8e5f93
3,217
py
Python
tests/test_request.py
simonw/c64
ee939384fc0966206b6a22fd72ab1a9051f167ad
[ "Apache-2.0" ]
1
2021-03-22T06:23:55.000Z
2021-03-22T06:23:55.000Z
tests/test_request.py
simonw/c64
ee939384fc0966206b6a22fd72ab1a9051f167ad
[ "Apache-2.0" ]
null
null
null
tests/test_request.py
simonw/c64
ee939384fc0966206b6a22fd72ab1a9051f167ad
[ "Apache-2.0" ]
null
null
null
import json import pytest from c64 import Request @pytest.mark.asyncio async def test_request_post_vars(): scope = { "http_version": "1.1", "method": "POST", "path": "/", "raw_path": b"/", "query_string": b"", "scheme": "http", "type": "http", "hea...
27.973913
81
0.553
74a859e5140d90eae975dd60e04c679913c035e0
6,834
py
Python
stocal/tests/test_algorithms.py
JoeQureshi/stocal
fedd065c7414c28a5c71a082d712cd736e123d41
[ "MIT" ]
null
null
null
stocal/tests/test_algorithms.py
JoeQureshi/stocal
fedd065c7414c28a5c71a082d712cd736e123d41
[ "MIT" ]
null
null
null
stocal/tests/test_algorithms.py
JoeQureshi/stocal
fedd065c7414c28a5c71a082d712cd736e123d41
[ "MIT" ]
null
null
null
"""Tests for stocal.algorithms""" import unittest from stocal.tests.abstract_test import AbstractTestCase import stocal class TestTrajectorySampler(AbstractTestCase('Sampler', stocal.algorithms.TrajectorySampler)): """Test Trajectory sampler interface This abstract test case provides tests that specify the Tra...
39.50289
94
0.635938
74a85ccb6210bc53d18cb5bffc328fb2b2d1f06c
32,823
py
Python
cdlib/evaluation/fitness.py
GilCampos/cdlib
3d588b051bb6619f69d12bba83e72493acbdff13
[ "BSD-2-Clause" ]
null
null
null
cdlib/evaluation/fitness.py
GilCampos/cdlib
3d588b051bb6619f69d12bba83e72493acbdff13
[ "BSD-2-Clause" ]
null
null
null
cdlib/evaluation/fitness.py
GilCampos/cdlib
3d588b051bb6619f69d12bba83e72493acbdff13
[ "BSD-2-Clause" ]
null
null
null
import pquality as pq import networkx as nx from cdlib.utils import convert_graph_formats from collections import namedtuple import numpy as np import scipy from cdlib.evaluation.internal.link_modularity import cal_modularity import Eva __all__ = ["FitnessResult", "link_modularity", "normalized_cut", "internal_edge_de...
39.121573
320
0.674923
74a87ac48818ea80d339d80828ca19172022c05a
9,795
py
Python
tests/plugins/test_download_remote_source.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
16
2019-07-04T16:00:13.000Z
2022-01-28T19:51:58.000Z
tests/plugins/test_download_remote_source.py
containerbuildsystem/atomic-reactor
5734a189fc79245d99610f3a81b3aee9913db355
[ "BSD-3-Clause" ]
577
2019-06-03T07:53:16.000Z
2022-03-31T04:01:23.000Z
tests/plugins/test_download_remote_source.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
17
2020-02-21T13:30:06.000Z
2022-02-15T10:42:32.000Z
""" Copyright (c) 2019 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from copy import deepcopy from io import BytesIO from textwrap import dedent import base64 import json import os import responses import tarf...
37.528736
99
0.58489
74a88c5d3193238c918011e778bf592a5fd3098c
3,930
py
Python
scripts/general_plots/halo_over_stellar_gal.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/general_plots/halo_over_stellar_gal.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/general_plots/halo_over_stellar_gal.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# -*- coding: utf-8 -*- """ Created on Thu May 28 22:10:36 2015 halos over stellar density map @author: hoseung """ def extract_halos_within(halos, ind_center, scale=1.0): import numpy as np import utils.sampling as smp ''' Returns indices of halos within SCALE * Rvir of the central halo. halos ...
27.103448
87
0.577354
74a8b387baa7f3993397f62b2f2900b1f2024f00
1,764
py
Python
integration/airflow/setup.py
skcc00000app08542/OpenLineage
e0dd3715e61b3d89f60ece0d7385e82ccd141ba4
[ "Apache-2.0" ]
1
2022-01-06T03:45:24.000Z
2022-01-06T03:45:24.000Z
integration/airflow/setup.py
skcc00000app08542/OpenLineage
e0dd3715e61b3d89f60ece0d7385e82ccd141ba4
[ "Apache-2.0" ]
null
null
null
integration/airflow/setup.py
skcc00000app08542/OpenLineage
e0dd3715e61b3d89f60ece0d7385e82ccd141ba4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # SPDX-License-Identifier: Apache-2.0. # # -*- coding: utf-8 -*- from setuptools import setup, find_namespace_packages with open("README.md") as readme_file: readme = readme_file.read() __version__ = "0.7.0" requirements = [ "attrs>=19.3", "requests>=2.20.0", "sqlparse>=0.3.1...
28
91
0.64059
74a8bf12d8460446bdbc7ae9eed2b291ec6e31e9
1,107
py
Python
testing/local-binder-k8s-hub/binderhub_config.py
jupyterhub/builderhub
37551212e47f515186b62fa02443f50b6e7b5839
[ "BSD-3-Clause" ]
null
null
null
testing/local-binder-k8s-hub/binderhub_config.py
jupyterhub/builderhub
37551212e47f515186b62fa02443f50b6e7b5839
[ "BSD-3-Clause" ]
null
null
null
testing/local-binder-k8s-hub/binderhub_config.py
jupyterhub/builderhub
37551212e47f515186b62fa02443f50b6e7b5839
[ "BSD-3-Clause" ]
null
null
null
# A development config to test a BinderHub deployment generally. It can be # combined with with the auth specific config. # Deployment assumptions: # - BinderHub: standalone local installation # - JupyterHub: standalone k8s installation import os import subprocess # We need to find out the IP at which BinderHub can...
35.709677
86
0.760614
74a8edd35dfad1efecc7f0bc39b488c3b1483dba
6,739
py
Python
test/config/test_cutflow_stage.py
benkrikler/alphatwirl-interface
ce9b3775b099fbcc55402be2df0e4f2e477d8e6d
[ "BSD-3-Clause" ]
null
null
null
test/config/test_cutflow_stage.py
benkrikler/alphatwirl-interface
ce9b3775b099fbcc55402be2df0e4f2e477d8e6d
[ "BSD-3-Clause" ]
4
2018-03-05T13:48:26.000Z
2018-03-19T12:28:56.000Z
test/config/test_cutflow_stage.py
benkrikler/alphatwirl-interface
ce9b3775b099fbcc55402be2df0e4f2e477d8e6d
[ "BSD-3-Clause" ]
1
2018-02-15T17:10:23.000Z
2018-02-15T17:10:23.000Z
import pytest import alphatwirl_interface.config.cutflow_stage as cfs @pytest.fixture def selection_cut_1(): return "ev.jet_pt[0] > 0" @pytest.fixture def selection_cut_2(): return "ev.nJet > 1" @pytest.fixture def selection_cut_alias(): return "some_alias" def test__process_single_selection_1(selec...
36.825137
104
0.70782
74a8fe1261f32b5e02ccbbb598a8bb5e02ca48c0
300
py
Python
towers/boomerang_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
towers/boomerang_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
towers/boomerang_monkey.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from tower import Tower from config import keybinds class BoomerangMonkey(Tower): name = 'boomerang_monkey' range = 231 width = 75 height = 65 size = 'medium' keybind = keybinds[name] aquatic = False def __init__(self, **kwargs): super().__init__(**kwargs)
18.75
34
0.643333
74a90395a8666be401117d5ae676926555c615e2
886
py
Python
neuro-cli/tests/unit/formatters/test_secrets.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/tests/unit/formatters/test_secrets.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/tests/unit/formatters/test_secrets.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
from typing import Any, List import pytest from neuro_sdk import Secret from neuro_cli.formatters.secrets import SecretsFormatter, SimpleSecretsFormatter @pytest.fixture def secrets_list() -> List[Secret]: return [ Secret( key="key1", owner="user", cluster_name="clus...
22.717949
85
0.611738
74a936259a3e7c83f9917fc9671082825d16d55d
105
py
Python
apps/authentication/admin.py
lucifurtun/myquotes
4b78622acc9223cc18999dce1c2d6374bb52e20f
[ "BSD-3-Clause" ]
4
2016-12-12T12:18:37.000Z
2017-03-08T07:49:14.000Z
apps/authentication/admin.py
lucifurtun/myquotes
4b78622acc9223cc18999dce1c2d6374bb52e20f
[ "BSD-3-Clause" ]
24
2017-08-25T14:15:52.000Z
2022-02-26T19:24:17.000Z
apps/authentication/admin.py
lucifurtun/myquotes
4b78622acc9223cc18999dce1c2d6374bb52e20f
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from apps.authentication.models import User admin.site.register(User)
17.5
43
0.828571
74a969deaba6bacbf3ca77cb9ae22a5416738aaf
67
py
Python
python/11_built-ins/1_zipped!.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/11_built-ins/1_zipped!.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/11_built-ins/1_zipped!.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
Solution to [Zipped!](https://www.hackerrank.com/challenges/zipped)
67
67
0.791045
74a981d274da9c93b5fc09450f346f0b036b42ad
1,157
py
Python
src/ex1/tests/test_nmc.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
7
2021-01-20T09:11:53.000Z
2022-03-15T12:19:06.000Z
src/ex1/tests/test_nmc.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
null
null
null
src/ex1/tests/test_nmc.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
10
2020-11-01T09:47:02.000Z
2021-11-02T12:59:50.000Z
import unittest import numpy as np from ex1.classifiers import NearestMeanCentroid class TestNMC(unittest.TestCase): def setUp(self): n_samples = 100 n_features = 20 self.x = np.zeros(shape=(n_samples, n_features)) # a matrix of zeros self.y = np.zeros(shape=(n_samples,)) # som...
30.447368
77
0.630942
74a985a774b8420b1f37d39466dd6d5c78c1224d
4,493
py
Python
catalyst/dl/callbacks/metrics/accuracy.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
2
2021-02-22T12:15:41.000Z
2021-05-02T15:22:24.000Z
catalyst/dl/callbacks/metrics/accuracy.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/dl/callbacks/metrics/accuracy.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
from typing import List from catalyst.core import MultiMetricCallback from catalyst.utils import metrics def _get_default_accuracy_args(num_classes: int) -> List[int]: """Calculate list params for ``Accuracy@k`` and ``mAP@k``. Examples: >>> _get_default_accuracy_args(num_classes=4) >>> [1, 3...
32.557971
79
0.572891
74a9b3ba51c4e580a126a4cee3d7cbb4a243c887
4,425
py
Python
tests/pygenome/operators/test_selection.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
1
2019-11-18T14:41:20.000Z
2019-11-18T14:41:20.000Z
tests/pygenome/operators/test_selection.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
null
null
null
tests/pygenome/operators/test_selection.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
null
null
null
import numpy as np import pygenome as pg def test_select_population(): np.random.seed(42) pop = pg.make_integer_population(10, 5) pop = pg.evaluate_population(pop, lambda x : 1. / (1. + pg.onemax(x))) diff = 0 for i in range(pop.size): if not np.array_equal(pop.individuals[i].genotype, pop....
43.811881
105
0.639322
74a9ee7411a6e1703a9022caaef0213481abb405
5,329
py
Python
seamo/preproc/convert_dynamodb.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
3
2018-08-20T18:34:03.000Z
2018-10-02T23:41:52.000Z
seamo/preproc/convert_dynamodb.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
null
null
null
seamo/preproc/convert_dynamodb.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
1
2018-10-02T23:42:24.000Z
2018-10-02T23:42:24.000Z
import init import os import constants as cn import pandas as pd import data_accessor as daq from geocoder import Geocoder class ConvertDynamodb(object): def __init__(self): pass def _read_dynamodb_outfile(self, dynamodb_csv, dynamodb_dir=cn.DYNAMODB_OUT_DIR): df = pd.read_csv(os.path.join(dy...
43.680328
113
0.678551
74aa014d95eaec35b7142c625c7b99f32bde92e0
4,636
py
Python
data/tracking/methods/SiamFC/builders/components/dataset.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/tracking/methods/SiamFC/builders/components/dataset.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/tracking/methods/SiamFC/builders/components/dataset.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from data.tracking.sampler.SiamFC.dataset_sampler import SOTTrackingSiameseForwardIteratorDatasetSampler,SOTTrackingSiameseRandomAccessIteratorDatasetSampler from data.tracking.methods.SiamFC.common.image_decoding import SiamFCImageDecodingProcessor from data.tracking.sampler.SiamFC.type import SiamesePairSamplingMetho...
60.207792
157
0.786238
74aa01ee54b76b241cd1341d5ee9092ae28067f0
2,020
py
Python
test/config/test_region.py
WiseApp/cloudlift
36fd8b3a8de15437bc0acca2060df7e6dff7ccc0
[ "MIT" ]
1
2021-07-12T05:22:48.000Z
2021-07-12T05:22:48.000Z
test/config/test_region.py
WiseApp/cloudlift
36fd8b3a8de15437bc0acca2060df7e6dff7ccc0
[ "MIT" ]
22
2020-04-08T18:48:58.000Z
2021-11-03T17:11:37.000Z
test/config/test_region.py
WiseApp/cloudlift
36fd8b3a8de15437bc0acca2060df7e6dff7ccc0
[ "MIT" ]
2
2020-04-19T10:10:22.000Z
2021-07-21T07:33:05.000Z
from cloudlift.config import region from unittest import TestCase from mock import patch, MagicMock class TestRegion(TestCase): @patch("cloudlift.config.region.local_cache", {}) @patch("cloudlift.config.region.EnvironmentConfiguration") def test_get_region_for_environment_without_cache(self, env_config): ...
36.071429
90
0.689604
74aa9f5f4179a134f8ef5e44025df49239aa24b7
10,517
py
Python
stonesoup/serialise.py
SohSalari/Stone-Soup
e073d4145df18facad43e4ab7b0a34e8d65f67ee
[ "MIT" ]
1
2020-07-21T15:20:20.000Z
2020-07-21T15:20:20.000Z
stonesoup/serialise.py
SohSalari/Stone-Soup
e073d4145df18facad43e4ab7b0a34e8d65f67ee
[ "MIT" ]
null
null
null
stonesoup/serialise.py
SohSalari/Stone-Soup
e073d4145df18facad43e4ab7b0a34e8d65f67ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Provides an ability to serialise Stone Soup objects into and from YAML. Stone Soup utilises YAML_ for serialisation. The :doc:`stonesoup.base` feature of components is exploited in order to store the data of the components and data types. .. _YAML: http://yaml.org/""" import datetime import...
36.391003
95
0.656461
74aaa16b606d31bbcb8472775873ce2d7b50b3f4
556
py
Python
tests/directory_setup.py
CaioVSMSantos/vesting-schedule-calculator
f77e24aabf3d073893eded90ae978839aef6f1f0
[ "MIT" ]
null
null
null
tests/directory_setup.py
CaioVSMSantos/vesting-schedule-calculator
f77e24aabf3d073893eded90ae978839aef6f1f0
[ "MIT" ]
null
null
null
tests/directory_setup.py
CaioVSMSantos/vesting-schedule-calculator
f77e24aabf3d073893eded90ae978839aef6f1f0
[ "MIT" ]
null
null
null
""" This is a support script to be used in tests so they can access the src directory and it's classes The method 'tests_setup_confirm()' os a sanity check that can be called from the tests main() method. """ import inspect import os import sys # Adding the top level directory to path in order to use the packages cu...
26.47619
71
0.760791
74aaad1587e9010b045d6bdb35042c48ab92df73
1,533
py
Python
src/devices/base.py
Dorniak/NEVA_Control
d946ff27f4c1196ac2808d8fe4a1227406a8b3c2
[ "MIT" ]
null
null
null
src/devices/base.py
Dorniak/NEVA_Control
d946ff27f4c1196ac2808d8fe4a1227406a8b3c2
[ "MIT" ]
null
null
null
src/devices/base.py
Dorniak/NEVA_Control
d946ff27f4c1196ac2808d8fe4a1227406a8b3c2
[ "MIT" ]
null
null
null
from multiprocessing.queues import Queue from traceback import format_exc from geometry_msgs.msg import Point from rclpy.logging import get_logger from std_msgs.msg import Bool, Float64 class VehicleState(object): """ Class to store the vehicle state """ id_platforma: str velocidad_real: float ...
23.953125
54
0.692107
74aaedf03d71fb1f48a1bd482a33e144bfeba01f
9,210
py
Python
mzidGenerator/psims/controlled_vocabulary/obo.py
toppic-suite/topmsv
fef5d1f1f1c00ffdad2c258401d319f1e227c7cb
[ "Apache-2.0" ]
null
null
null
mzidGenerator/psims/controlled_vocabulary/obo.py
toppic-suite/topmsv
fef5d1f1f1c00ffdad2c258401d319f1e227c7cb
[ "Apache-2.0" ]
8
2021-02-19T18:42:42.000Z
2022-02-10T17:37:42.000Z
mzidGenerator/psims/controlled_vocabulary/obo.py
toppic-suite/topmsv
fef5d1f1f1c00ffdad2c258401d319f1e227c7cb
[ "Apache-2.0" ]
1
2021-04-19T11:55:08.000Z
2021-04-19T11:55:08.000Z
import warnings from collections import defaultdict from six import string_types as basestring from psims.utils import ensure_iterable from .entity import Entity from .relationship import Relationship, Reference from .type_definition import parse_xsdtype synonym_scopes = { "EXACT", "BROAD", "NARROW", ...
32.202797
102
0.518893
74aafad35b31ba17f7e7ab84c1ddfd69eaf878cd
1,229
py
Python
miniworld/management/spatial/MovementDirectorCoreConfig.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/management/spatial/MovementDirectorCoreConfig.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/management/spatial/MovementDirectorCoreConfig.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
from miniworld.management.spatial.MovementDirectorAbstract import MovementDirectorAbstract from miniworld.model.spatial import CoreConfigNodes class MovementDirectorCoreConfig(MovementDirectorAbstract): """ Attributes ---------- scenario_changes : list<list<str, int>> Describes the change of a...
27.311111
108
0.591538
74aafade462c2359242375165c187689897ddcf5
5,131
py
Python
toontown/makeatoon/StatusShop.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/makeatoon/StatusShop.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/makeatoon/StatusShop.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 panda3d.core import * from toontown.toon import ToonDNA from direct.fsm import StateData from direct.gui.DirectGui import * from toontown.makeatoon.MakeAToonGlobals import * from toontown.toonbase import TTLocalizer, ToontownGlobals from direct.directnotify import DirectNotifyGlobal from direct.task import Task c...
47.073394
275
0.66907
74ab67eac0e602cd8ea8cbf76996de4c533167c6
5,324
py
Python
pytype/tests/test_special_builtins.py
souravbadami/pytype
804fa97e7f9208df2711976085a96f756b3949e6
[ "Apache-2.0" ]
1
2020-04-20T02:55:21.000Z
2020-04-20T02:55:21.000Z
pytype/tests/test_special_builtins.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_special_builtins.py
doc22940/pytype
4772ad6fe89f4df75ae3d08e7374f68074175d4a
[ "Apache-2.0" ]
null
null
null
"""Tests of special builtins (special_builtins.py).""" from pytype import file_utils from pytype.tests import test_base class SpecialBuiltinsTest(test_base.TargetIndependentTest): """Tests for special_builtins.py.""" def testNext(self): self.assertNoCrash(self.Check, """ next(None) """) def tes...
25.352381
73
0.50263
74ab9186e77df00742b931ef238ad6b08af10af9
52,679
py
Python
bioCanon/__main__.py
phac-nml/bioCanon
3797a16d3782f1784105ce1f6a4661aa69d0a150
[ "MIT" ]
1
2021-01-18T03:39:40.000Z
2021-01-18T03:39:40.000Z
bioCanon/__main__.py
phac-nml/bioCanon
3797a16d3782f1784105ce1f6a4661aa69d0a150
[ "MIT" ]
2
2020-06-23T18:44:16.000Z
2020-06-25T17:03:25.000Z
bioCanon/__main__.py
phac-nml/bioCanon
3797a16d3782f1784105ce1f6a4661aa69d0a150
[ "MIT" ]
null
null
null
""" Biohansel requires a strain specific fasta format scheme to be able to classify samples. Schemes exist for some common clonal pathogens but there are many untapped applications. This module includes functions to aid in the generation of k-mers linked to predefined groups to serve as the basis for automatic scheme d...
45.649047
141
0.579396
74aba316ee8e15177f44d5a376970af327c31b39
6,643
py
Python
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/aio/operations/_locations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/aio/operations/_locations_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/aio/operations/_locations_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
44.286667
166
0.670781
74abde6e24ae63629ae9c353c29c302cc7bf246a
1,009
py
Python
toontown/hood/CashbotHQ.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/hood/CashbotHQ.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/hood/CashbotHQ.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 toontown.coghq.CashbotCogHQLoader import CashbotCogHQLoader from toontown.toonbase import ToontownGlobals from toontown.toonbase import TTLocalizer from toontown.hood.CogHood import CogHood from toontown.hood import ZoneUtil class CashbotHQ(CogHood): notify = directNotify.newCategory('CashbotHQ') ID = To...
37.37037
116
0.750248
74ac02746e6549ceb2383bd495e20fbf7c97e68e
9,896
py
Python
sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-eventgrid/azure/eventgrid/aio/_publisher_client_async.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 ...
43.213974
117
0.666835
74ac0701fd1ec83e45037c7acc16947c07cba66f
922
py
Python
test/test_mathutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_mathutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_mathutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import unittest import numpy as np import vnmrjpy as vj from scipy.ndimage.filters import convolve from scipy.signal import fftconvolve import matplotlib.pyplot as plt class Test_fftconvolve(unittest.TestCase): def test_fftconvolve(self): hankel = np.random.rand(50,20) kernel = np.fliplr(np.eye(h...
36.88
78
0.675705
74ac8552ede79e1d1402e66e78bf3b3abb575dd7
8,289
py
Python
src/modules/libs/toolsattr.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
46
2020-04-18T16:42:59.000Z
2022-01-31T22:08:52.000Z
src/modules/libs/toolsattr.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
null
null
null
src/modules/libs/toolsattr.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
11
2020-04-23T12:46:18.000Z
2022-02-04T12:53:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # ____ _ __ # # ___ __ __/ / /__ ___ ______ ______(_) /___ __ # # / _ \/ // / / (_-</ -_) __/ // / __/ / __/ // / ...
41.863636
193
0.514658
74ac92de36e0bcaea21c0e7a7ac330851e13b9ea
5,024
py
Python
xbbo/search_algorithm/pbt_optimizer.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
xbbo/search_algorithm/pbt_optimizer.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
xbbo/search_algorithm/pbt_optimizer.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
import copy import math from typing import Optional, List, Tuple, cast import numpy as np from xbbo.configspace.space import DenseConfiguration, DenseConfigurationSpace, convert_denseConfigurations_to_array from xbbo.core.trials import Trials from xbbo.initial_design import ALL_avaliable_design from . import alg_regi...
45.261261
116
0.644705
74acc0f99e2cf5fa3f66a54c3f8ac9ce57622275
32,630
py
Python
get_kernel_feature_area/test_sdcard_numpy.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
get_kernel_feature_area/test_sdcard_numpy.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
get_kernel_feature_area/test_sdcard_numpy.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
#-*- encoding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os, sys import numpy as np import time from numpy.lib.npyio import save # 设置信息全打印 np.set_printoptions(threshold=np.inf) # sys.path.append('../') from layers i...
42.709424
281
0.680876
74acc58119a5a783b5f627283ba21440737de688
6,092
py
Python
rlkit/torch/sac/dads/policies.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
rlkit/torch/sac/dads/policies.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
rlkit/torch/sac/dads/policies.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn as nn from torch.distributions.dirichlet import Dirichlet from torch.distributions.uniform import Uniform import random from rlkit.torch.sac.policies import TanhGaussianPolicy from rlkit.policies.base import Policy from rlkit.torch.core import eval_np from rlkit.tor...
33.844444
129
0.584701
74acc960a619a89a5f8e2d19616b4cc81e9da6a8
4,850
py
Python
itests/pages/service_accounts.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
itests/pages/service_accounts.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
itests/pages/service_accounts.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from selenium.webdriver.support.select import Select from itests.pages.base import BaseElement, BaseModal, BasePage if TYPE_CHECKING: from selenium.webdriver.remote.webelement import WebElement from typing import List class ServiceAccountViewPage(BasePage): @property ...
30.89172
80
0.66866
74ad06e955e24b00f6829d069f1ab67dc353babb
762
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.http import Http404 from django.utils.translation import ugettext as _ def feed(request, url, feed_dict=None): """Provided for backwards compatibility.""" if not feed_dict: raise Http404(_("No feeds are registered.")) slug = url.part...
33.130435
99
0.675853
74ad3b4a9ffa6d7d1160864d2960de9f4c7dfdfd
1,464
py
Python
api/tests/opentrons/containers/test_default_containers.py
rvinzent/opentrons
de1b7148983760d90a96642fe940878fb6658cf1
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/containers/test_default_containers.py
rvinzent/opentrons
de1b7148983760d90a96642fe940878fb6658cf1
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/containers/test_default_containers.py
rvinzent/opentrons
de1b7148983760d90a96642fe940878fb6658cf1
[ "Apache-2.0" ]
null
null
null
from opentrons.containers import load as containers_load from opentrons import instruments, robot from opentrons.trackers import pose_tracker from numpy import isclose import pytest def test_new_containers(): robot.reset() trash_box = containers_load(robot, 'trash-box', '1') tip_rack = containers_load(rob...
39.567568
79
0.729508
74ad5a76f69dcf19808cad7bebc09ae784a150a4
1,196
py
Python
doughnuts/webshell_plugins/execute.py
WAY29/Doughnuts
a5fe941e69c0903c8ff418e0a6f0a30b09f3d9b1
[ "MIT" ]
61
2020-03-17T11:19:55.000Z
2022-03-17T21:30:11.000Z
doughnuts/webshell_plugins/execute.py
WAY29/Doughnuts
a5fe941e69c0903c8ff418e0a6f0a30b09f3d9b1
[ "MIT" ]
1
2021-07-05T02:55:10.000Z
2021-07-05T03:01:45.000Z
doughnuts/webshell_plugins/execute.py
WAY29/Doughnuts
a5fe941e69c0903c8ff418e0a6f0a30b09f3d9b1
[ "MIT" ]
19
2020-05-05T13:29:52.000Z
2022-03-17T21:30:04.000Z
from os import remove from uuid import uuid4 from libs.config import alias, color from libs.myapp import send, open_editor, newfile @alias(True, func_alias="exec", _type="SHELL") def run(editor: str = "", edit_args: str = ""): """ execute execute Custom PHP code by notepad / vi as default or y...
34.171429
122
0.594482
74ad891c998f0b6a74626aded044cd9ec34c5782
4,260
py
Python
yt_dlp/minicurses.py
damianoamatruda/yt-dlp
705e7c2005dfe67a905e18736c9f6345ee9d386b
[ "Unlicense" ]
1
2022-01-03T19:13:33.000Z
2022-01-03T19:13:33.000Z
yt_dlp/minicurses.py
XkaV/yt-dlp
fee3f44f5f58274c637499f077aa0312e650f493
[ "Unlicense" ]
null
null
null
yt_dlp/minicurses.py
XkaV/yt-dlp
fee3f44f5f58274c637499f077aa0312e650f493
[ "Unlicense" ]
null
null
null
import os from threading import Lock from .utils import compat_os_name, get_windows_version class MultilinePrinterBase(): def __enter__(self): return self def __exit__(self, *args): self.end() def print_at_line(self, text, pos): pass def end(self): pass class Mult...
31.323529
124
0.551174
74ada99c1d57c2121fdd5a1c62b2104dac18f447
1,574
py
Python
apps/iiif/serializers/kollection.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/iiif/serializers/kollection.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/iiif/serializers/kollection.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# pylint: disable = attribute-defined-outside-init, too-few-public-methods """Module for serializing IIIF Annotation Lists""" import json from django.core.serializers.base import SerializerDoesNotExist from django.core.serializers import serialize import config.settings.local as settings from apps.iiif.serializers.base...
34.977778
85
0.555273
74add53e8f19324c33f255315da15405021c63c4
6,428
py
Python
datamidware/pydm/csv2viz.py
JagritiG/data-middleware
e51cedf173e487d270f42c993e5e7f79f85bd263
[ "MIT" ]
null
null
null
datamidware/pydm/csv2viz.py
JagritiG/data-middleware
e51cedf173e487d270f42c993e5e7f79f85bd263
[ "MIT" ]
null
null
null
datamidware/pydm/csv2viz.py
JagritiG/data-middleware
e51cedf173e487d270f42c993e5e7f79f85bd263
[ "MIT" ]
null
null
null
""" Implementation of csv2viz() function: Visualize csv data param filename: csv file name param kind: plot kind (bar, horizontal bar, stacked bar, group bar, scatter, line, hist, kde, pie and more..) param file_path: file path to save figure param x: x data; list or array-like data param y: y d...
43.14094
135
0.651991
74ae138bb9a38726be3b5ca90d229b6522e190d3
17,770
py
Python
zerver/lib/api_test_helpers.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/lib/api_test_helpers.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/lib/api_test_helpers.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
from typing import Dict, Any, Optional, Iterable from io import StringIO import os import ujson if False: from zulip import Client ZULIP_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) FIXTURE_PATH = os.path.join(ZULIP_DIR, 'templates', 'zerver', 'api', 'fixtures.json') def lo...
30.221088
102
0.64924
74ae24f9ef42470cc0b3bdcd836f5955b7bdc334
1,475
py
Python
python/tree/0654_maximum_binary_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0654_maximum_binary_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0654_maximum_binary_tree.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def constructMaximumBinaryTree(self, nums): """ :type nums: List[int] :rtype: TreeNode """ ...
27.314815
59
0.493559
74ae26b704805e3048597e65c0b89f4a7c472cd4
2,102
py
Python
chaospy/distributions/collection/chi_squared.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
null
null
null
chaospy/distributions/collection/chi_squared.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
null
null
null
chaospy/distributions/collection/chi_squared.py
lblonk/chaospy
1759a4307c6134b74ce63ff44973195f1e185f94
[ "MIT" ]
null
null
null
"""Non-central Chi-squared distribution.""" import numpy from scipy import special from ..baseclass import Dist from ..operators.addition import Add class chi_squared(Dist): """Central Chi-squared distribution.""" def __init__(self, df, nc): Dist.__init__(self, df=df, nc=nc) def _pdf(self, x, d...
29.605634
73
0.551855
74ae2eec0a52a1bfc4a1b51bfeb29f39587f251d
2,209
py
Python
mmcif/sitegen/dictionary/DictionaryItemCoverage.py
rcsb/py-mmcif_sitegen
93be68dca60d6378b21c2b10199516f944624020
[ "Apache-2.0" ]
null
null
null
mmcif/sitegen/dictionary/DictionaryItemCoverage.py
rcsb/py-mmcif_sitegen
93be68dca60d6378b21c2b10199516f944624020
[ "Apache-2.0" ]
null
null
null
mmcif/sitegen/dictionary/DictionaryItemCoverage.py
rcsb/py-mmcif_sitegen
93be68dca60d6378b21c2b10199516f944624020
[ "Apache-2.0" ]
null
null
null
## # File: DictionaryItemCoverage.py # Author: jdw # Date: 28-Oct-2020 # Version: 0.001 # # Updates: ## """ Class providing data item coverage statistics. """ __docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "jwest@rcsb.rutgers.edu" __license__ = "Apache 2,0" import logging impor...
32.485294
108
0.674061
74ae41f5ce78fddc025149f489f66d0dd9d8f137
2,013
py
Python
alipay/aop/api/domain/AlipayMarketingCampaignUserVoucherBatchqueryModel.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/AlipayMarketingCampaignUserVoucherBatchqueryModel.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/AlipayMarketingCampaignUserVoucherBatchqueryModel.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 AlipayMarketingCampaignUserVoucherBatchqueryModel(object): def __init__(self): self._page_number = None self._page_size = None self._voucher_status = None @property ...
28.352113
79
0.613512
74ae480fb1cccc45410aaa84ca98970584ede983
9,668
py
Python
data/imagenet_preprocessing.py
Cloud9Bumsu/Deepjsccf_AE
e54f49cd2107538627caed24806c54a805acf674
[ "Apache-2.0" ]
3
2021-03-15T15:48:04.000Z
2021-03-15T22:09:59.000Z
data/imagenet_preprocessing.py
Cloud9Bumsu/Deepjsccf_AE
e54f49cd2107538627caed24806c54a805acf674
[ "Apache-2.0" ]
null
null
null
data/imagenet_preprocessing.py
Cloud9Bumsu/Deepjsccf_AE
e54f49cd2107538627caed24806c54a805acf674
[ "Apache-2.0" ]
1
2021-03-17T02:16:20.000Z
2021-03-17T02:16:20.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...
36.900763
80
0.737898
74ae7b1335a281084f351e34dfeb7f4e15f45b8d
14,577
py
Python
Hive/Hive.py
rwuilbercq/Hive
ba42269e05bc8be6c640d6759eff5d7ffc74887f
[ "MIT" ]
78
2017-06-28T10:47:01.000Z
2022-03-01T11:58:24.000Z
Hive/Hive.py
crazyavi/Hive
d24e2eec21b2c4bc96c0e008510155827398ee32
[ "MIT" ]
2
2017-10-09T14:29:54.000Z
2018-06-26T08:49:02.000Z
Hive/Hive.py
crazyavi/Hive
d24e2eec21b2c4bc96c0e008510155827398ee32
[ "MIT" ]
41
2018-02-25T23:53:22.000Z
2022-02-17T05:37:58.000Z
#!/usr/bin/env python # ---- MODULE DOCSTRING __doc__ = """ (C) Hive, Romain Wuilbercq, 2017 _ /_/_ .'''. =O(_)))) ...' `. \_\ `. .'''X `..' .---. .---..-./`) ,---. ,---. .-''-. | | |_ _|\ .-.')| / | | .'_ _ \ | | ( ' )/ `-' \| | | .'...
31.281116
100
0.563079
74ae800437658fc560523c4118dc28963fc72d01
6,420
py
Python
cliente_freeling_mk.py
jesusmiguelgarcia/FSTmikes
34d68c979b0c019510db87793e5870eea8f9154f
[ "Apache-2.0" ]
null
null
null
cliente_freeling_mk.py
jesusmiguelgarcia/FSTmikes
34d68c979b0c019510db87793e5870eea8f9154f
[ "Apache-2.0" ]
null
null
null
cliente_freeling_mk.py
jesusmiguelgarcia/FSTmikes
34d68c979b0c019510db87793e5870eea8f9154f
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # coding: utf-8 import re, string import nltk from sys import stderr, version import socket import sys # Codigo de Mike apoyado en pynlpl #regresar lemas, tags , tuplas (texto , lema, tag) #uso con regexp que separa #regexp = "[a-zA-Z'ÁÉÍÓÚáéíóúñÑüÜ]+-*[a-zA-Z'ÁÉÍÓÚáéíóúñÑüÜ]+|[a-zA-Z'ÁÉÍÓÚ...
35.274725
829
0.620717
74ae849314991297a83765763187d2340cbcc4d5
28,785
py
Python
django/template/defaultfilters.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
django/template/defaultfilters.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/template/defaultfilters.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
"""Default variable filters.""" import re import random as random_module import unicodedata from decimal import Decimal, InvalidOperation, ROUND_HALF_UP from functools import wraps from pprint import pformat from django.template.base import Variable, Library from django.conf import settings from django.utils import f...
31.288043
97
0.633941
74ae8cd92694dbf3461136392575f9cd04926b11
629
py
Python
bflib/items/survival/common.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/items/survival/common.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/items/survival/common.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib import units from bflib.items import coins, listing from bflib.items.survival.base import SurvivalItem from bflib.sizes import Size @listing.register_item class LargeTent(SurvivalItem): name = "Tent, Large" size = Size.Large price = coins.Gold(25) weight = units.Pound(20) @listing.regist...
19.65625
50
0.707472
74aeaa80d96e665d8e5327396660edf629171a3a
1,113
py
Python
tests/unit/utils/filebuffer_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2018-02-03T17:30:56.000Z
2018-02-03T17:30:56.000Z
tests/unit/utils/filebuffer_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/filebuffer_test.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` :copyright: © 2012-2013 by the SaltStack Team, see AUTHORS for more details :license: Apache 2.0, see LICENSE for more details. tests.unit.utils.filebuffer_test ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import Salt ...
28.538462
79
0.671159
74aeaf789ff07398d29c12aeacfe9e0e6f2283ac
2,728
py
Python
source/runBOXR2COV.py
nicoloabrate/ndl
73e1e8136fdf94bb335fc91c97a511bc6ee2b5f1
[ "MIT" ]
null
null
null
source/runBOXR2COV.py
nicoloabrate/ndl
73e1e8136fdf94bb335fc91c97a511bc6ee2b5f1
[ "MIT" ]
1
2021-03-13T05:09:09.000Z
2021-03-19T12:31:11.000Z
source/runBOXR2COV.py
nicoloabrate/ndl
73e1e8136fdf94bb335fc91c97a511bc6ee2b5f1
[ "MIT" ]
null
null
null
""" author: N. Abrate. file: runBOXR2COV.py description: """ import os import itertools import subprocess import shutil as sh from ProcessNDL import parseENDF6 def execute(commands): # execute job in the shell process = subprocess.Popen('./boxr2cov1000.exe', stdout=subprocess.PIPE, ...
32.094118
79
0.523094
74af17bae2dd77cc4306cd12e3f52ce728d80400
1,977
py
Python
dataset_tagger/odt/queryextractor.py
quaat/OTD-semantic-framework
128f11e73ac8b7e2bc038e6429b8fa01a42ae677
[ "MIT" ]
null
null
null
dataset_tagger/odt/queryextractor.py
quaat/OTD-semantic-framework
128f11e73ac8b7e2bc038e6429b8fa01a42ae677
[ "MIT" ]
null
null
null
dataset_tagger/odt/queryextractor.py
quaat/OTD-semantic-framework
128f11e73ac8b7e2bc038e6429b8fa01a42ae677
[ "MIT" ]
1
2018-09-06T12:13:24.000Z
2018-09-06T12:13:24.000Z
import nltk from nltk.tokenize import PunktSentenceTokenizer from nltk.corpus import wordnet as wn class QueryExtractor: def __init__(self, graph): self.graph = graph def filter_question(question): switcher = { "where": "location", "when": "event", "how": "...
29.507463
73
0.603945
74af28741157dab4416f8c58ef9d8502fc482c10
2,000
py
Python
examples/ellipsoid_packing/test_api.py
AHartmaier/Kanapy
876644f4c03a233da14101e26db9760299667342
[ "BSD-2-Clause" ]
5
2021-06-17T07:12:02.000Z
2022-03-06T05:49:36.000Z
examples/ellipsoid_packing/test_api.py
AHartmaier/Kanapy
876644f4c03a233da14101e26db9760299667342
[ "BSD-2-Clause" ]
6
2021-06-10T14:42:03.000Z
2022-03-28T00:19:37.000Z
examples/ellipsoid_packing/test_api.py
AHartmaier/Kanapy
876644f4c03a233da14101e26db9760299667342
[ "BSD-2-Clause" ]
4
2021-06-10T14:35:35.000Z
2022-03-25T07:34:16.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 22 09:56:39 2021 @author: alexander """ import kanapy as knpy ms_elong = {'Grain type': 'Elongated', 'Equivalent diameter': {'std': 0.3, 'mean': 3.0, 'cutoff_min': 12.0, 'cutoff_max': 25.0}, 'Aspect ratio': {'std':0.4, 'mean':...
43.478261
99
0.585
74af3ef2ca2e94617d97d4f26eafa780608cb9ba
1,817
py
Python
hytra/util/progressbar.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2021-08-25T03:57:55.000Z
2021-08-25T03:57:55.000Z
hytra/util/progressbar.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2019-04-01T13:39:09.000Z
2019-04-01T13:39:09.000Z
hytra/util/progressbar.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2018-11-15T13:17:26.000Z
2018-11-15T13:17:26.000Z
import sys class ProgressBar: def __init__(self, start=0, stop=100): self._state = 0 self._start = start self._stop = stop def reset(self, val=0): self._state = val def show(self, increase=1): self._state += increase if self._state > self._stop: ...
23.907895
83
0.518987
74af69fb464ff2db14aec37f2eb3309aeafed010
5,611
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_user_info.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_user_info.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1_user_info.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1Use...
28.19598
174
0.569774
74af6a80e74b8ceaeecb8c84838579de26b68457
4,329
py
Python
test_scripts/example_inverted_pendulum_ode.py
forgi86/pyMPC
291db149554767a035fcb01df3fed7a6b3fe60e4
[ "MIT" ]
84
2019-05-28T09:27:37.000Z
2022-03-31T08:38:23.000Z
test_scripts/example_inverted_pendulum_ode.py
passion4energy/pyMPC
4b004ba707dab49cd36d96a3575b8593c870a904
[ "MIT" ]
2
2020-04-17T00:03:27.000Z
2021-01-30T11:35:58.000Z
test_scripts/example_inverted_pendulum_ode.py
passion4energy/pyMPC
4b004ba707dab49cd36d96a3575b8593c870a904
[ "MIT" ]
20
2019-10-13T13:50:16.000Z
2022-03-31T08:38:25.000Z
import numpy as np import scipy.sparse as sparse import time import matplotlib.pyplot as plt from scipy.integrate import ode from pyMPC.mpc import MPCController if __name__ == '__main__': # Constants # M = 0.5 m = 0.2 b = 0.1 ftheta = 0.1 l = 0.3 g = 9.81 Ts = 5e-3 Ac =np.array([...
31.59854
150
0.522292
74af6f67b4ceefe4522348ae7c52f371c74163b0
11,650
py
Python
remo/profiles/api/api_v1.py
acidburn0zzz/remo
caa7adc40928d7f83475cf4bd78f8d609967bc87
[ "BSD-3-Clause" ]
1
2018-04-05T13:29:30.000Z
2018-04-05T13:29:30.000Z
remo/profiles/api/api_v1.py
acidburn0zzz/remo
caa7adc40928d7f83475cf4bd78f8d609967bc87
[ "BSD-3-Clause" ]
3
2021-03-20T05:31:34.000Z
2021-06-10T23:43:06.000Z
remo/profiles/api/api_v1.py
Acidburn0zzz/remo
caa7adc40928d7f83475cf4bd78f8d609967bc87
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta from urllib import unquote from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.db.models import Q from django.http import QueryDict from django.utils.timezone import now from tastypie import fields from ta...
42.830882
97
0.617082
74afb9a18fc6d3ffe4e83e9c95a251442fe5aedf
1,001
py
Python
tests/tls12/test_tls12_ClientAuth_ECDSA_SHA256.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tests/tls12/test_tls12_ClientAuth_ECDSA_SHA256.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tests/tls12/test_tls12_ClientAuth_ECDSA_SHA256.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implements a class to be used for unit testing. """ import pathlib from tests.cipher_suite_tester import CipherSuiteTester from tlsmate import tls from tlsmate.tlssuite import TlsLibrary class TestCase(CipherSuiteTester): """Class used for tests with pytest. For more information re...
30.333333
83
0.712288
74afbdaa54f9f33ff21bc2b67037a898a8f3947a
510
py
Python
test/generate/autotest/33_RLC_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/33_RLC_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/33_RLC_A.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-21 20:55:32 # AI # ins: RLC A ######################################################### import random from .. import testutil as u from ..asmconst import * p = u.create_test() CY = 0 for x in range(3000): value = random.getrandbits(8) rv = ...
20.4
57
0.413725
74afcb981a05846acea236879d11f42738b25a16
141
py
Python
catalyst/utils/tools/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/utils/tools/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/utils/tools/__init__.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
# flake8: noqa from .frozen_class import FrozenClass from .registry import Registry, RegistryException from .time_manager import TimeManager
28.2
49
0.843972
74afd5a22bbb19be1cc54429af247a2fac0f349a
1,341
py
Python
dags/upload_data_to_S3_dag.py
tonydo95/udacity-capstone-project
f3d0d9068998b734b76dae894265459102e90936
[ "Apache-2.0" ]
null
null
null
dags/upload_data_to_S3_dag.py
tonydo95/udacity-capstone-project
f3d0d9068998b734b76dae894265459102e90936
[ "Apache-2.0" ]
null
null
null
dags/upload_data_to_S3_dag.py
tonydo95/udacity-capstone-project
f3d0d9068998b734b76dae894265459102e90936
[ "Apache-2.0" ]
null
null
null
import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from operators import (UploadToS3Operator) from datetime import datetime, timedelta # Configurations BUCKET_NAME = "input-data-project" default_args = { 'owner' : 'tindo', 'start_date' : datetime(2020, 11, 1), 'de...
26.82
83
0.712901
74afebf6cada4334636e71471a06018d6476ede2
2,137
py
Python
cleaning.py
omartrinidad/challenge
5e6ea3c7c488c43ade33823c41a7297bea83dbc4
[ "MIT" ]
null
null
null
cleaning.py
omartrinidad/challenge
5e6ea3c7c488c43ade33823c41a7297bea83dbc4
[ "MIT" ]
null
null
null
cleaning.py
omartrinidad/challenge
5e6ea3c7c488c43ade33823c41a7297bea83dbc4
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split from xgboost import XGBClassifier from sklearn.metrics import accuracy_score import preprocessing as pre import pandas as pd import pickle def preprocess_zeros_test(test, alles): """ This function updates the value of genres with 0 and learn which one shou...
26.7125
108
0.686944
74aff5daa66fbd9b7f7f4f7e1563a3c54e454e6c
3,287
py
Python
venv/Lib/site-packages/pyrogram/methods/chats/get_chat_member.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/chats/get_chat_member.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/chats/get_chat_member.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
36.120879
107
0.594767
74affe1177f17007bd9b3d4de1fcdc39672c9e55
691
py
Python
coronavirus/jsonUpdate.py
StevenHuang2020/COVID-19-Statistics
bc81c8eb6f16c370c65a328d403995b78e537b9a
[ "MIT" ]
null
null
null
coronavirus/jsonUpdate.py
StevenHuang2020/COVID-19-Statistics
bc81c8eb6f16c370c65a328d403995b78e537b9a
[ "MIT" ]
null
null
null
coronavirus/jsonUpdate.py
StevenHuang2020/COVID-19-Statistics
bc81c8eb6f16c370c65a328d403995b78e537b9a
[ "MIT" ]
null
null
null
#steven 27/04/2020 import json import datetime def WriteFile(file,content): with open(file,'w',newline='\n') as f: f.write(content) def getDataTime(): daytime = datetime.datetime.now() today = datetime.date.today() #t = str(today) + ' ' + str(daytime.hour) +':' + str(daytime.minute) t...
24.678571
86
0.610709
74b010bea6251ede7ceebbc37c850244c2541216
1,923
py
Python
Testing/Skew.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
Testing/Skew.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
Testing/Skew.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens # www.pagebot.io # # P A G E B O T E X A M P L E S # # Licensed under MIT conditions # # Supporting DrawBot, www...
26.342466
79
0.590744
74b03189b3ede630036a940367f1497d9921edff
7,896
py
Python
tests/scripts/thread-cert/Cert_5_3_01_LinkLocal.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/Cert_5_3_01_LinkLocal.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/Cert_5_3_01_LinkLocal.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
39.089109
113
0.656408
74b09ca742b56cfd5d8690dad1f617603a5ceff3
404
py
Python
uefispider/spiders/__init__.py
theopolis/uefi-spider
369c8e7fe235aea89fdc81d10aa833f23a062d49
[ "MIT" ]
48
2015-01-08T13:33:35.000Z
2022-01-25T17:54:03.000Z
uefispider/spiders/__init__.py
theopolis/uefi-spider
369c8e7fe235aea89fdc81d10aa833f23a062d49
[ "MIT" ]
1
2018-11-26T08:37:17.000Z
2019-01-07T17:43:27.000Z
uefispider/spiders/__init__.py
theopolis/uefi-spider
369c8e7fe235aea89fdc81d10aa833f23a062d49
[ "MIT" ]
11
2016-05-14T04:40:02.000Z
2022-01-11T18:11:11.000Z
# This package will contain the spiders of your Scrapy project # # Please refer to the documentation for information on how to create and manage # your spiders. from scrapy.spider import Spider import os class UefiSpider(Spider): name = 'UefiSpider' def __init__(self, dump= 'output'): self.output = dump ...
26.933333
79
0.712871
74b0ad9ee93d0533cdb239dbdab36769347dbfda
2,946
py
Python
Battleships/model/game.py
ruslanabdulin1985/TheTask
99e53bd283273a90233b29c8aa7aa4380211263b
[ "MIT" ]
null
null
null
Battleships/model/game.py
ruslanabdulin1985/TheTask
99e53bd283273a90233b29c8aa7aa4380211263b
[ "MIT" ]
null
null
null
Battleships/model/game.py
ruslanabdulin1985/TheTask
99e53bd283273a90233b29c8aa7aa4380211263b
[ "MIT" ]
null
null
null
""" Module contains class Game The module imports two Classes of this model: Player to represent players and Coordinates to let players exchange coordinates """ from model.rules import Rules from model.player import Player from model.coordinates import Coordinates # FIXME from model.ship import Ship class Game: ...
28.882353
113
0.61575
74b0b5f90b909ceeacd1120b32e7ef90aa964344
1,448
py
Python
pypeit/tests/test_utils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/test_utils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/tests/test_utils.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Module to run tests on ararclines """ import os import numpy as np import pytest from pypeit import utils from pypeit import msgs #def data_path(filename): # data_dir = os.path.join(os.path.dirname(__file__), 'files') # return os.path.join(data_dir, filename) def test_func_fit(): """ Run the paramete...
33.674419
107
0.583564
74b0d3b8c71fc1464238224e0f53ebccd7884ef5
34,923
py
Python
salt/modules/status.py
gravyboat/salt
4c2d4159fd8705d1b3bb8f90500635f8ccec4f22
[ "Apache-2.0" ]
null
null
null
salt/modules/status.py
gravyboat/salt
4c2d4159fd8705d1b3bb8f90500635f8ccec4f22
[ "Apache-2.0" ]
null
null
null
salt/modules/status.py
gravyboat/salt
4c2d4159fd8705d1b3bb8f90500635f8ccec4f22
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for returning various status data about a minion. These data can be useful for compiling into stats later. ''' # Import python libs from __future__ import absolute_import import datetime import os import re import fnmatch import collections import copy import time # Import 3rd-part...
31.604525
145
0.524497
74b0e42ed6e61e936e815854557927fce827e67a
2,582
py
Python
tests/algorithms/test_word_count.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/algorithms/test_word_count.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/algorithms/test_word_count.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
# -*- coding: utf-8 -*- import unittest from algorithms.word_count import word_count # to be backwards compatible with the old Python 2.X def decode_if_needed(string): try: return string.decode('utf-8') except AttributeError: return string class WordCountTests(unittest.TestCase): def t...
28.688889
78
0.515105
74b0eb5989d4028bcf9613ddd4d4c3e23e9edcf2
250
py
Python
moto/resourcegroups/__init__.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
moto/resourcegroups/__init__.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
moto/resourcegroups/__init__.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals from .models import resourcegroups_backends from ..core.models import base_decorator resourcegroups_backend = resourcegroups_backends['us-east-1'] mock_resourcegroups = base_decorator(resourcegroups_backends)
35.714286
61
0.868
74b0faef36f5cf334e634e31fa97f3251ef0c733
531
py
Python
run_tests.py
Osmose/tower
0f0245da3b34f4a51e7c00f69bd8a7f1bee4e7e6
[ "BSD-3-Clause" ]
null
null
null
run_tests.py
Osmose/tower
0f0245da3b34f4a51e7c00f69bd8a7f1bee4e7e6
[ "BSD-3-Clause" ]
null
null
null
run_tests.py
Osmose/tower
0f0245da3b34f4a51e7c00f69bd8a7f1bee4e7e6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys # Set up the environment for our test project. ROOT = os.path.abspath(os.path.dirname(__file__)) os.environ['DJANGO_SETTINGS_MODULE'] = 'tower-project.settings' sys.path.insert(0, os.path.join(ROOT, 'examples')) # This can't be imported until after we've fiddled with the ...
24.136364
63
0.775895
74b12a6cf75341dd93e20feeb2a655e88644fead
776
py
Python
CryptMeme/apps/sam/python/src/examples/dos.py
NoYouShutup/CryptMeme
95d766a222e8ef9310337a7f568a83e462df057c
[ "MIT" ]
4
2016-07-17T22:29:28.000Z
2021-01-16T02:35:00.000Z
CryptMeme/apps/sam/python/src/examples/dos.py
NoYouShutup/CryptMeme
95d766a222e8ef9310337a7f568a83e462df057c
[ "MIT" ]
null
null
null
CryptMeme/apps/sam/python/src/examples/dos.py
NoYouShutup/CryptMeme
95d766a222e8ef9310337a7f568a83e462df057c
[ "MIT" ]
null
null
null
#! /usr/bin/env python # ----------------------------------------------- # dos.py: Noneffective denial of service tool # ----------------------------------------------- from i2p import socket import threading, sys def dos_stream(dest): """Perform a DOS attack on a stream server.""" dest = socket.resolve(dest) ...
22.171429
49
0.554124
74b13283ffd9e66d809d1aa8dc0e949cbd77b50d
1,971
py
Python
Trescope4Python/example/src/example_plot_front3d_blender.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
null
null
null
Trescope4Python/example/src/example_plot_front3d_blender.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
null
null
null
Trescope4Python/example/src/example_plot_front3d_blender.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
null
null
null
import json import os import numpy as np from trescope import Trescope, Layout from trescope.config import (PerspectiveCamera, FRONT3DConfig) from trescope.toolbox import simpleFileOutputs def visualize_front3d_color(output_id, front3d_scene_file, camera): Trescope().selectOutput(output_id).updateLayout( ...
42.847826
153
0.658549
74b159a41b3999471ff5beac1bf04fb09228017c
6,848
py
Python
awesomeness/craig_sunrise.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
awesomeness/craig_sunrise.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
awesomeness/craig_sunrise.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
# Create an empty GUI window based on the graphics.py file we downloaded # from canvas # Import the graphics.py module from graphics import * # open a graphics window win = GraphWin("Sunrise", 300, 300) win.setBackground('navy') # set the color of the sky # describe the ground earth = Circle(Point(150, ...
23.695502
73
0.68604
74b16e551ba6edd2e41b46d635f11728ebfd199d
17,570
py
Python
backend/model/account/service.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/account/service.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/account/service.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
import conf import errors import logbook from model import DisplayedModel, AccountDb, db, duplicate_handle from utils.i18n import available_languages, DEFAULT_LANGUAGE from functools import lru_cache from sqlalchemy import Column, ForeignKey, UniqueConstraint, Enum from sqlalchemy.orm import relationship from arrow imp...
35.566802
113
0.638532
74b182311fb6f17de25e95684bd95cb5f17cb506
719
py
Python
script.module.transmissionrpc/lib/transmissionrpc/__init__.py
lsellens/script.module.transmissionrpc
b1118e5715351897c4a4937f861b8653278e7f7d
[ "MIT" ]
null
null
null
script.module.transmissionrpc/lib/transmissionrpc/__init__.py
lsellens/script.module.transmissionrpc
b1118e5715351897c4a4937f861b8653278e7f7d
[ "MIT" ]
null
null
null
script.module.transmissionrpc/lib/transmissionrpc/__init__.py
lsellens/script.module.transmissionrpc
b1118e5715351897c4a4937f861b8653278e7f7d
[ "MIT" ]
null
null
null
# Copyright (c) 2008-2014 Erik Svensson <erik.public@gmail.com> # Licensed under the MIT license. from transmission_rpc.error import TransmissionError from transmission_rpc.client import Client from transmission_rpc.session import Session from transmission_rpc.torrent import Torrent from transmission_rpc.constants imp...
32.681818
75
0.773296
74b1945631a05ed88493fbbe0672169f59ce2c04
28,367
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/core/util/files.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/core/util/files.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/core/util/files.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2013 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 by applicable law or ag...
31.624303
80
0.685057
74b196445d0b4c61e25ac96a4df9b8d71df99b77
1,563
py
Python
fabfile.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
1
2019-07-06T10:27:43.000Z
2019-07-06T10:27:43.000Z
fabfile.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
null
null
null
fabfile.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
null
null
null
from fabric.api import * env.user = 'root' env.hosts = ['188.226.195.158'] def moveSupervisor(): run('mv /tmp/TaskWetu/taskwetu/supervisord.conf /etc/supervisord.conf') def setSupervisordLog(): run('mkdir /var/log/supervisord/') def startCelery(): run('celery -A app.celery worker --loglevel=INFO --co...
22.652174
75
0.628279
74b1a59630fd91e229328bd92e067b33204549dc
3,393
py
Python
corehq/apps/hqwebapp/tests/test_login_handlers.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/hqwebapp/tests/test_login_handlers.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
2
2020-04-16T13:25:44.000Z
2021-02-08T22:08:28.000Z
corehq/apps/hqwebapp/tests/test_login_handlers.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
from django.test import RequestFactory, TestCase from freezegun import freeze_time from django.contrib.auth.models import User from corehq.apps.hqwebapp.models import UserAccessLog from corehq.apps.hqwebapp.login_handlers import handle_failed_login, \ handle_login, handle_logout, handle_access_event class TestLo...
40.392857
77
0.702623
74b1d1439ad112cf4337b4fef6909870f41883c3
5,091
py
Python
homeassistant/components/tuya/__init__.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-04-07T15:44:54.000Z
2020-04-07T15:44:54.000Z
homeassistant/components/tuya/__init__.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
homeassistant/components/tuya/__init__.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
1
2020-05-24T07:37:49.000Z
2020-05-24T07:37:49.000Z
"""Support for Tuya Smart devices.""" from datetime import timedelta import logging from tuyaha import TuyaApi import voluptuous as vol from homeassistant.const import CONF_PASSWORD, CONF_PLATFORM, CONF_USERNAME from homeassistant.core import callback from homeassistant.helpers import discovery import homeassistant.h...
30.854545
88
0.654488
74b1e6767f29d6e17b6d738007889c6b0f0bd8d4
117
py
Python
src/speaking_eye/special_application_info_title.py
alena-bartosh/speaking-eye
86e692cf5d3182f77b28e5264da74657d1972303
[ "MIT" ]
6
2020-04-30T17:35:09.000Z
2021-11-18T09:41:50.000Z
src/speaking_eye/special_application_info_title.py
alena-bartosh/speaking-eye
86e692cf5d3182f77b28e5264da74657d1972303
[ "MIT" ]
6
2020-05-16T17:52:45.000Z
2021-08-16T11:47:11.000Z
src/speaking_eye/special_application_info_title.py
alena-bartosh/speaking-eye
86e692cf5d3182f77b28e5264da74657d1972303
[ "MIT" ]
null
null
null
from enum import Enum class SpecialApplicationInfoTitle(Enum): BREAK_TIME = 'Break Time' OTHERS = 'Others'
16.714286
40
0.726496
74b2290adb152f3a1ca6506a0eb49fc15136ca35
5,193
py
Python
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/operations/_operation_result_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/operations/_operation_result_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/operations/_operation_result_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.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 (autorest: 3.0....
45.156522
164
0.676488
74b2408dedd2c63fc509b5fbcd15d672df3114c6
12,066
py
Python
hummingbot/connector/exchange/ascend_ex/ascend_ex_api_order_book_data_source.py
subchap/hummingbot
de1ed87977c45a72425bb9708e707230fe117b99
[ "Apache-2.0" ]
2
2021-06-17T13:09:25.000Z
2021-06-17T13:09:29.000Z
hummingbot/connector/exchange/ascend_ex/ascend_ex_api_order_book_data_source.py
rabbitholeanalytics/hummingbot
60e5b0f7eca84cbd3288a786a20ac99d622510a8
[ "Apache-2.0" ]
null
null
null
hummingbot/connector/exchange/ascend_ex/ascend_ex_api_order_book_data_source.py
rabbitholeanalytics/hummingbot
60e5b0f7eca84cbd3288a786a20ac99d622510a8
[ "Apache-2.0" ]
1
2021-06-02T09:34:13.000Z
2021-06-02T09:34:13.000Z
#!/usr/bin/env python import asyncio import logging import aiohttp import websockets import ujson import time import pandas as pd from typing import Optional, List, Dict, Any, AsyncIterable from hummingbot.core.data_type.order_book import OrderBook from hummingbot.core.data_type.order_book_message import OrderBookMess...
45.532075
136
0.547655
74b269ca8719be72b5bc04fc84738c6e24faa17e
519,476
py
Python
Florence/QuadratureRules/FeketePointsTet.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/QuadratureRules/FeketePointsTet.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/QuadratureRules/FeketePointsTet.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
import numpy as np def FeketePointsTet(C): if C==0: feketeNodes = np.array([ [-1., -1., -1.], [1., -1., -1.], [-1., 1., -1.], [-1., -1., 1.] ]) elif C==1: feketeNodes = np.array([ [-1., -1., ...
70.142587
93
0.636763
74b26b9fa9e734a65aca30d3f07d903fd50874e8
7,251
py
Python
src/core/options.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
46
2020-04-18T16:42:59.000Z
2022-01-31T22:08:52.000Z
src/core/options.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
null
null
null
src/core/options.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
11
2020-04-23T12:46:18.000Z
2022-02-04T12:53:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # ____ _ __ # # ___ __ __/ / /__ ___ ______ ______(_) /___ __ # # / _ \/ // / / (_-</ -_) __/ // / __/ / __/ // / ...
30.594937
80
0.491105
74b2726c89f8741c6b35e8f0541309f896ccfe80
2,389
py
Python
stonesoup/types/mixture.py
SohSalari/Stone-Soup
e073d4145df18facad43e4ab7b0a34e8d65f67ee
[ "MIT" ]
1
2020-07-21T15:20:20.000Z
2020-07-21T15:20:20.000Z
stonesoup/types/mixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
stonesoup/types/mixture.py
mgomesborges/Stone-Soup
39c7f02ce11e10c9b3c612ad359f6d8bca495266
[ "MIT" ]
null
null
null
from collections.abc import Sized, Iterable, Container from .base import Type from ..base import Property from .state import TaggedWeightedGaussianState, WeightedGaussianState class GaussianMixture(Type, Sized, Iterable, Container): """ Gaussian Mixture type Represents the target space through a Gaussia...
34.128571
94
0.661365