hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
2a07b7ade1a2a41f2a562fa8fa5cc67a39804a53
152
py
Python
api/urls.py
RahulML2505/My-Django-App
57c93b1cbfd95e298d33bb2b2b632ee65533113d
[ "MIT" ]
null
null
null
api/urls.py
RahulML2505/My-Django-App
57c93b1cbfd95e298d33bb2b2b632ee65533113d
[ "MIT" ]
null
null
null
api/urls.py
RahulML2505/My-Django-App
57c93b1cbfd95e298d33bb2b2b632ee65533113d
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('member', views.memberApi), path('member/<int:id>', views.memberApi), ]
16.888889
45
0.677632
4c348de52059a9ce5cbd5b68460bc8b5ef706dcd
5,573
py
Python
checkers/board.py
danielkaichis/CheckersMinimax
0d54d745c0f5cb57131bf8774312d5bcd584134b
[ "MIT" ]
null
null
null
checkers/board.py
danielkaichis/CheckersMinimax
0d54d745c0f5cb57131bf8774312d5bcd584134b
[ "MIT" ]
null
null
null
checkers/board.py
danielkaichis/CheckersMinimax
0d54d745c0f5cb57131bf8774312d5bcd584134b
[ "MIT" ]
null
null
null
import pygame from .constants import BLACK, ROWS, RED, SQUARE_SIZE, COLS, WHITE, RED_STRING, WHITE_STRING from .piece import Piece class Board: def __init__(self): self.board = [] self.red_left = self.white_left = 12 self.red_kings = self.white_kings = 0 self.create_board() def...
32.782353
119
0.464382
31f649fd8cb99f624d351cb262af0b737b97ada7
1,369
py
Python
setup.py
garanews/jbxapi
195d4e44762c081214fdb691ba61310dbc962dc8
[ "MIT" ]
null
null
null
setup.py
garanews/jbxapi
195d4e44762c081214fdb691ba61310dbc962dc8
[ "MIT" ]
null
null
null
setup.py
garanews/jbxapi
195d4e44762c081214fdb691ba61310dbc962dc8
[ "MIT" ]
null
null
null
import re import os from setuptools import setup def get_version(): """ Extract the version number from the code. """ here = os.path.abspath(os.path.dirname(__file__)) jbxapi_file = os.path.join(here, "jbxapi.py") with open(jbxapi_file) as f: content = f.read() match = re.search(r"^_...
26.843137
79
0.569028
3d011c180f31275b6fe5460be6f0124c43a052b2
1,168
py
Python
PortScanner/AdvScanner.py
saadhaxxan/Python-For-Ethical-Hacking
87ef18b2c2876bf1711442a5f00ddb7d2dacfd43
[ "MIT" ]
26
2020-09-16T18:26:00.000Z
2022-02-09T15:18:34.000Z
PortScanner/AdvScanner.py
saadhaxxan/Python-For-Ethical-Hacking
87ef18b2c2876bf1711442a5f00ddb7d2dacfd43
[ "MIT" ]
null
null
null
PortScanner/AdvScanner.py
saadhaxxan/Python-For-Ethical-Hacking
87ef18b2c2876bf1711442a5f00ddb7d2dacfd43
[ "MIT" ]
3
2020-11-27T20:30:22.000Z
2022-02-16T05:57:16.000Z
#!/usr/bin/python from socket import * import socket from termcolor import colored from threading import * print(colored("[*] Enter Host IP Address or Website Name:","green")) host = input() print(colored("[*] Enter number of ports to scan:","green")) num = int(input()) def PScanner(port): # AF_INT means w...
25.955556
77
0.629281
751619e1b09b688ac2db2dcb55dbbd87c919594a
6,165
py
Python
utils/interactive_plotting.py
TUM-LMF/ijgi18
f6e5aed5c59af084a91428fdd285a17fcf6344f4
[ "MIT" ]
68
2018-03-23T01:32:39.000Z
2021-07-29T14:00:02.000Z
utils/interactive_plotting.py
natumeyuzuru/MTLCC
8abe62dfc759e2e8034ee372bf22dce510e15a59
[ "MIT" ]
2
2020-03-02T16:19:45.000Z
2020-05-21T02:08:29.000Z
utils/interactive_plotting.py
natumeyuzuru/MTLCC
8abe62dfc759e2e8034ee372bf22dce510e15a59
[ "MIT" ]
29
2018-07-26T07:31:53.000Z
2021-08-21T17:41:02.000Z
from __future__ import print_function import matplotlib.pyplot as plt from ipywidgets import interact, interactive, fixed, interact_manual import ipywidgets as widgets import numpy as np def show_rgb(x, name=""): if len(x.shape)==5: # BTHWD max_b, max_t,_,_,max_d = x.shape elif len(x.shape)==4: # ...
32.792553
109
0.586699
514571375cedc9738249d0632f9eda3d051b2ffb
11,662
py
Python
docs/conf.py
soheil191/translate.py
b136ec92dfe225aba06d96b7009318e3707ee465
[ "Apache-2.0" ]
null
null
null
docs/conf.py
soheil191/translate.py
b136ec92dfe225aba06d96b7009318e3707ee465
[ "Apache-2.0" ]
1
2021-02-24T06:42:22.000Z
2021-02-24T06:42:22.000Z
docs/conf.py
isabella232/python-translate
6fb2effa6903cae5584f51a74d1399f12697db1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # google-cloud-translate documentation build configuration file # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values...
31.863388
88
0.703653
492d50a1df2a3d6ba5d0fba4fae6bd58552cb06e
1,815
py
Python
src/main.py
lukas2511/bbb-streaming
3ce86576e1921236d329a8002d7aedfa9528f36d
[ "MIT" ]
60
2021-03-06T10:50:27.000Z
2022-03-19T06:26:52.000Z
src/main.py
aguerson/bbb-streaming
3ce86576e1921236d329a8002d7aedfa9528f36d
[ "MIT" ]
8
2021-03-11T13:09:16.000Z
2021-08-05T07:49:23.000Z
src/main.py
aguerson/bbb-streaming
3ce86576e1921236d329a8002d7aedfa9528f36d
[ "MIT" ]
15
2021-03-11T03:17:40.000Z
2022-03-30T10:07:15.000Z
#!/usr/bin/env python3 import argparse from lib import run import logging logging.basicConfig() log = logging.getLogger('bbb-streamer') def main(): argp = argparse.ArgumentParser(allow_abbrev=False) argp.add_argument("--debug", help="Print debug log", action='store_true') argp.add_argument("--background...
40.333333
134
0.71405
3deb5b0f57e4b46fa49ae20c52eed49acc76483a
3,108
py
Python
satyrus/sat/types/problem.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/problem.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/problem.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
from collections import deque ## Local from ...satlib import arange from .expr import Expr from .main import Var, Number from .symbols import CONS_INT, CONS_OPT from .symbols.tokens import T_FORALL, T_EXISTS, T_EXISTS_ONE, T_AND, T_OR class Loop(object): """ :: LOOP :: ========== """ ...
26.793103
111
0.517053
fc77c82f88c02f562c2c58c18b3a7e97843f7536
5,241
py
Python
AutomatedTesting/Gem/PythonTests/Prefab/TestSuite_Main.py
LB-KatarzynaDylska/o3de
d8d273697ea8e1beeb698f62b84904a192b0ab76
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Prefab/TestSuite_Main.py
LB-KatarzynaDylska/o3de
d8d273697ea8e1beeb698f62b84904a192b0ab76
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Prefab/TestSuite_Main.py
LB-KatarzynaDylska/o3de
d8d273697ea8e1beeb698f62b84904a192b0ab76
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # This suite consists of all test cases that are passing and have been verified. import pytest import os imp...
59.556818
118
0.803854
1aee38404db49305005ca712f5ae49f2550d4cf3
4,353
py
Python
example_problems/tutorial/eggs/services/get_tables.py
DottaPaperella/TALight
580322c3121c9acde9827f996fd4e39e31d93a6f
[ "MIT" ]
4
2021-06-27T13:27:24.000Z
2022-03-24T10:46:28.000Z
example_problems/tutorial/eggs/services/get_tables.py
DottaPaperella/TALight
580322c3121c9acde9827f996fd4e39e31d93a6f
[ "MIT" ]
1
2021-01-23T06:50:31.000Z
2021-03-17T15:35:18.000Z
example_problems/tutorial/eggs/services/get_tables.py
DottaPaperella/TALight
580322c3121c9acde9827f996fd4e39e31d93a6f
[ "MIT" ]
5
2021-04-01T15:21:57.000Z
2022-01-29T15:07:38.000Z
#!/usr/bin/env python3 from sys import stderr, exit def convert2number(s): try: risp = int(s) return risp except (TypeError, ValueError): pass try: risp = float(s) return risp except (TypeError, ValueError): return None def get_one_numeric_table(sep=N...
56.532468
390
0.637721
0d41fdc3abb34a6668696f810b09df3d1f133f81
2,931
py
Python
pynetworking/features/ats_vlan_config_interface_lexer.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
4
2015-04-24T20:36:56.000Z
2021-05-03T20:21:54.000Z
pynetworking/features/ats_vlan_config_interface_lexer.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
1
2019-07-14T07:07:21.000Z
2019-07-14T07:07:21.000Z
pynetworking/features/ats_vlan_config_interface_lexer.py
alliedtelesis/py-networking
6c5d4bdafabfb4feef235a02344432e1f0336e48
[ "Apache-2.0" ]
3
2015-04-24T20:37:04.000Z
2017-03-02T15:14:46.000Z
# -*- coding: utf-8 -*- import re import ply.lex as lex class VlanInterfaceConfigLexer(object): states = ( ('ifport', 'exclusive'), ('ifportrange', 'exclusive'), ) tokens = ( 'IF_PORT', 'IF_PORT_RANGE', 'IF_VLAN', 'switchport_mode', 'switchport_acce...
28.182692
89
0.528489
db9d4fb4678ecbb690deb214fe46e62301b6d84a
890
py
Python
release/scripts/templates/driver_functions.py
wycivil08/blendocv
f6cce83e1f149fef39afa8043aade9c64378f33e
[ "Unlicense" ]
30
2015-01-29T14:06:05.000Z
2022-01-10T07:47:29.000Z
release/scripts/templates/driver_functions.py
ttagu99/blendocv
f6cce83e1f149fef39afa8043aade9c64378f33e
[ "Unlicense" ]
1
2017-02-20T20:57:48.000Z
2018-12-19T23:44:38.000Z
release/scripts/templates/driver_functions.py
ttagu99/blendocv
f6cce83e1f149fef39afa8043aade9c64378f33e
[ "Unlicense" ]
15
2015-04-23T02:38:36.000Z
2021-03-01T20:09:39.000Z
# This script defines functions to be used directly in drivers expressions to # extend the builtin set of python functions. # # This can be executed on manually or set to 'Register' to # initialize thefunctions on file load. # two sample functions def invert(f): """ Simple function call: invert(val) ...
25.428571
77
0.68427
b2ba4b07e83ee203d0b4282ba0772985cfb69142
28
py
Python
mbserializer/tests/__init__.py
gomafutofu/mbserializer
013f287520fa593d5f8162ce31097f9c1bf34622
[ "MIT" ]
1
2015-09-08T05:56:23.000Z
2015-09-08T05:56:23.000Z
mbserializer/tests/__init__.py
gomafutofu/mbserializer
013f287520fa593d5f8162ce31097f9c1bf34622
[ "MIT" ]
null
null
null
mbserializer/tests/__init__.py
gomafutofu/mbserializer
013f287520fa593d5f8162ce31097f9c1bf34622
[ "MIT" ]
null
null
null
__author__ = 'Junki Ishida'
14
27
0.75
46dede09821db8d973ea630be006581c99400533
987
py
Python
sp_products/suggested_keywords.py
wufangjie/adapi
0015cfef1b85f2c64be828c3ce3122469763fa83
[ "MIT" ]
5
2021-01-07T07:11:39.000Z
2021-10-30T09:57:01.000Z
sp_products/suggested_keywords.py
wufangjie/adapi
0015cfef1b85f2c64be828c3ce3122469763fa83
[ "MIT" ]
1
2020-08-10T06:49:11.000Z
2020-08-10T06:49:57.000Z
sp_products/suggested_keywords.py
wufangjie/adapi
0015cfef1b85f2c64be828c3ce3122469763fa83
[ "MIT" ]
4
2021-02-03T12:38:37.000Z
2021-10-30T09:57:08.000Z
from ..adapi import Client class SuggestKeywords(Client): def get_suggest_keywords_by_ad_group_id(self, ad_group_id): self.method = "get" self.uri_path = "/v2/sp/adGroups/{}/suggested/keywords".format(ad_group_id) return self.execute() def get_suggest_keywords_extended_by_ad_group_...
29.029412
93
0.655522
64cd3683b67a8bb67ad65d03b75b21e34000b7f6
5,238
py
Python
models.py
twuilliam/open-search
5f74e3de5552a185e5d13d706bb3a9322606e704
[ "MIT" ]
10
2020-07-29T13:06:20.000Z
2022-03-29T14:50:28.000Z
models.py
twuilliam/open-search
5f74e3de5552a185e5d13d706bb3a9322606e704
[ "MIT" ]
null
null
null
models.py
twuilliam/open-search
5f74e3de5552a185e5d13d706bb3a9322606e704
[ "MIT" ]
4
2020-10-05T02:18:04.000Z
2022-03-29T07:26:30.000Z
import torch import numpy as np import torch.nn as nn from torch.autograd import Variable from torchvision import models from utils import cosine_similarity class VGG16(nn.Module): def __init__(self, pretrained=True): super(VGG16, self).__init__() model = models.vgg16(pretrained=pretrained) ...
29.761364
76
0.612447
e2f7627a494c774560dd7df0e635044b102909f1
1,741
py
Python
mars/worker/prochelper.py
pingrunhuang/mars
ae920c374e9844d7426d0cc09c0d97059dc5341c
[ "Apache-2.0" ]
1
2019-09-22T16:00:48.000Z
2019-09-22T16:00:48.000Z
mars/worker/prochelper.py
turboFei/mars
cde691285d921add5460944764c7278e7ddec8ff
[ "Apache-2.0" ]
null
null
null
mars/worker/prochelper.py
turboFei/mars
cde691285d921add5460944764c7278e7ddec8ff
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2018 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.240741
82
0.699598
34e043a44c07582eb2be3b2e63d9ffe81dde4f20
10,658
py
Python
quantstats/utils.py
gabrieljenik/quantstats
a76c1e3f5cfab91305c91f4deea132413222c3e7
[ "Apache-2.0" ]
2
2021-08-01T15:38:34.000Z
2021-10-01T13:20:29.000Z
quantstats/utils.py
gabrieljenik/quantstats
a76c1e3f5cfab91305c91f4deea132413222c3e7
[ "Apache-2.0" ]
null
null
null
quantstats/utils.py
gabrieljenik/quantstats
a76c1e3f5cfab91305c91f4deea132413222c3e7
[ "Apache-2.0" ]
2
2021-07-11T12:55:31.000Z
2021-08-31T06:57:05.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # QuantStats: Portfolio analytics for quants # https://github.com/ranaroussi/quantstats # # Copyright 2019 Ran Aroussi # 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 c...
30.192635
77
0.633702
3894ed3b72f9993a722248d15a2554286b2a5012
1,566
py
Python
tests/models/rl/unit/test_a2c.py
lavoiems/lightning-bolts
208e92ba3dcdbc029afd37e09ec9461fbcf3f293
[ "Apache-2.0" ]
822
2020-04-21T03:30:43.000Z
2021-03-07T06:41:31.000Z
tests/models/rl/unit/test_a2c.py
lavoiems/lightning-bolts
208e92ba3dcdbc029afd37e09ec9461fbcf3f293
[ "Apache-2.0" ]
538
2020-04-18T01:07:58.000Z
2021-03-09T13:48:50.000Z
tests/models/rl/unit/test_a2c.py
lavoiems/lightning-bolts
208e92ba3dcdbc029afd37e09ec9461fbcf3f293
[ "Apache-2.0" ]
162
2020-04-17T15:44:54.000Z
2021-03-09T14:04:02.000Z
import argparse import torch from torch import Tensor from pl_bolts.models.rl.advantage_actor_critic_model import AdvantageActorCritic def test_a2c_loss(): """Test the reinforce loss function.""" parent_parser = argparse.ArgumentParser(add_help=False) parent_parser = AdvantageActorCritic.add_model_speci...
27.964286
80
0.692209
e05e9a95170a5d9cdc87f3c3adb0bb27ee4c2f65
763
py
Python
boost/tools/build/v2/test/core_option_l.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
11
2016-04-12T16:29:29.000Z
2021-06-28T11:01:57.000Z
boost/tools/build/v2/test/core_option_l.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
3
2018-10-31T19:35:14.000Z
2019-06-04T17:11:27.000Z
boost/tools/build/v2/test/core_option_l.py
randolphwong/mcsema
eb5b376736e7f57ff0a61f7e4e5a436bbb874720
[ "BSD-3-Clause" ]
9
2015-09-09T02:38:32.000Z
2021-01-30T00:24:24.000Z
#!/usr/bin/python # Copyright 2007 Rene Rivera. # Copyright 2011 Steven Watanabe # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) import BoostBuild t = BoostBuild.Tester(pass_toolset=0) t.write("sleep.bat","""@setlocal @...
15.895833
82
0.672346
239b8fd625aae72787ba7e8703d3178d696eee65
21,928
py
Python
applications/incompressible_fluid_application/python_scripts/monolithic_solver_lagrangian_compressible_two_fluids_splited.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
2
2020-04-30T19:13:08.000Z
2021-04-14T19:40:47.000Z
applications/incompressible_fluid_application/python_scripts/monolithic_solver_lagrangian_compressible_two_fluids_splited.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2020-04-30T19:19:09.000Z
2020-05-02T14:22:36.000Z
applications/incompressible_fluid_application/python_scripts/monolithic_solver_lagrangian_compressible_two_fluids_splited.py
Jacklwln/Kratos
12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # importing the Kratos Library from KratosMultiphysics import * from KratosMultiphysics.IncompressibleFluidApplication import * from KratosMultiphysics.PFEMApplication import * from Kra...
36.304636
160
0.631202
4e4eafe9018b3a5ed5dc51b08d419da24cc73636
765
py
Python
odps/mars_extension/dataframe/__init__.py
hekaisheng/aliyun-odps-python-sdk
a08f5a9f006487dd3443ebe000f363e9cbee6a80
[ "Apache-2.0" ]
null
null
null
odps/mars_extension/dataframe/__init__.py
hekaisheng/aliyun-odps-python-sdk
a08f5a9f006487dd3443ebe000f363e9cbee6a80
[ "Apache-2.0" ]
null
null
null
odps/mars_extension/dataframe/__init__.py
hekaisheng/aliyun-odps-python-sdk
a08f5a9f006487dd3443ebe000f363e9cbee6a80
[ "Apache-2.0" ]
1
2017-06-27T08:18:29.000Z
2017-06-27T08:18:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
38.25
74
0.76732
f4ad0af4262b460e5b1d7b516e11a19812a03318
754
py
Python
Tutorial_Kivy_Codemy/codemy_KivyMd_32_ButtonBar.py
LivioAlvarenga/Tutoriais_Kivy_KivyMD
b6225578e764eaf0312afafbb2f76dc06f92342d
[ "MIT" ]
null
null
null
Tutorial_Kivy_Codemy/codemy_KivyMd_32_ButtonBar.py
LivioAlvarenga/Tutoriais_Kivy_KivyMD
b6225578e764eaf0312afafbb2f76dc06f92342d
[ "MIT" ]
null
null
null
Tutorial_Kivy_Codemy/codemy_KivyMd_32_ButtonBar.py
LivioAlvarenga/Tutoriais_Kivy_KivyMD
b6225578e764eaf0312afafbb2f76dc06f92342d
[ "MIT" ]
null
null
null
# https://www.youtube.com/watch?v=G-Rp41BzGxg&list=PLCC34OHNcOtpz7PJQ7Tv7hqFBP_xDDjqg&index=44 from kivymd.app import MDApp from kivy.lang import Builder class Codemy_Tutorial_App(MDApp): def build(self): self.theme_cls.theme_style = 'Dark' self.theme_cls.primary_palette = 'BlueGray' retu...
31.416667
94
0.713528
35b09c9674eb99f74242c8fd482bf9436add9c2c
91
py
Python
cogdl/__init__.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
1
2020-06-17T08:47:41.000Z
2020-06-17T08:47:41.000Z
cogdl/__init__.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
null
null
null
cogdl/__init__.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
1
2020-05-19T11:45:45.000Z
2020-05-19T11:45:45.000Z
__version__ = "0.5.2" from .experiments import experiment from .pipelines import pipeline
18.2
35
0.791209
6523a7871aca73b34087adb1e132e0b9292ddd67
18,318
py
Python
utils/reconstruct.py
hengwei-chan/3D_SBDD
eda6d51aaf01ef25581a46920a25161678fab76d
[ "MIT" ]
67
2021-12-02T05:53:44.000Z
2022-03-31T07:21:26.000Z
utils/reconstruct.py
hengwei-chan/3D_SBDD
eda6d51aaf01ef25581a46920a25161678fab76d
[ "MIT" ]
13
2021-12-05T14:23:46.000Z
2022-03-25T21:07:20.000Z
utils/reconstruct.py
hengwei-chan/3D_SBDD
eda6d51aaf01ef25581a46920a25161678fab76d
[ "MIT" ]
16
2022-01-11T11:48:24.000Z
2022-03-27T19:20:58.000Z
""" https://github.com/mattragoza/liGAN/blob/master/fitting.py License: GNU General Public License v2.0 https://github.com/mattragoza/liGAN/blob/master/LICENSE """ import numpy as np from rdkit.Chem import AllChem as Chem from rdkit import Geometry from openbabel import openbabel as ob from openbabel import pybel from...
36.273267
143
0.609455
57206868362f89b168d73742319f64e0c10709a8
2,516
py
Python
tests/test_binary.py
tchaye59/torchutils
ca7b01bf63b6c3adaa36a4a66dfd87e927ef2460
[ "MIT" ]
null
null
null
tests/test_binary.py
tchaye59/torchutils
ca7b01bf63b6c3adaa36a4a66dfd87e927ef2460
[ "MIT" ]
null
null
null
tests/test_binary.py
tchaye59/torchutils
ca7b01bf63b6c3adaa36a4a66dfd87e927ef2460
[ "MIT" ]
null
null
null
import os import pandas as pd import pytorch_lightning as pl import torch import torch.nn as nn import torch.nn.functional as F import torchmetrics as tm from torch.utils.data import random_split from torch.utils.data.dataloader import DataLoader from torchvision import transforms as T from torchvision.datasets import...
27.955556
93
0.715024
a0242e302235693d21bc12dfab659059bbaad25b
3,021
py
Python
boardencoder/snapshotencoder.py
luxunxiansheng/DRLGP
85b08186fbf189b625dcfce2b5c3bf6c3f428bbe
[ "MIT" ]
null
null
null
boardencoder/snapshotencoder.py
luxunxiansheng/DRLGP
85b08186fbf189b625dcfce2b5c3bf6c3f428bbe
[ "MIT" ]
null
null
null
boardencoder/snapshotencoder.py
luxunxiansheng/DRLGP
85b08186fbf189b625dcfce2b5c3bf6c3f428bbe
[ "MIT" ]
1
2020-08-05T01:39:38.000Z
2020-08-05T01:39:38.000Z
# #### BEGIN LICENSE BLOCK ##### # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwar...
34.724138
77
0.684211
8800820d9dccf0330e6e37ad2382b038d148d339
861
py
Python
problem_39.py
alfonsokim/project-euler
cdc5a271c22f3ad78681ac920f2d9be6e75cdbc5
[ "Unlicense" ]
null
null
null
problem_39.py
alfonsokim/project-euler
cdc5a271c22f3ad78681ac920f2d9be6e75cdbc5
[ "Unlicense" ]
null
null
null
problem_39.py
alfonsokim/project-euler
cdc5a271c22f3ad78681ac920f2d9be6e75cdbc5
[ "Unlicense" ]
null
null
null
import itertools from collections import defaultdict # ======================================================================================= def next_triangle(max_perimeter): for a, b in itertools.product(range(1, max_perimeter), range(1, max_perimeter)): c = ((a*a) + (b*b)) ** 0.5 if c.is_intege...
37.434783
89
0.432056
adbdddeda45cdc228058a4b3cb55b954ed8d7051
4,670
py
Python
tests/garage/sampler/test_off_policy_vectorized_sampler_integration.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
tests/garage/sampler/test_off_policy_vectorized_sampler_integration.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
tests/garage/sampler/test_off_policy_vectorized_sampler_integration.py
bainro/garage
c5afbb19524792d9bbad9b9741f45e1d48ddca3d
[ "MIT" ]
null
null
null
import gym import numpy as np import pytest import tensorflow as tf from garage.envs import normalize from garage.np.exploration_strategies import OUStrategy from garage.replay_buffer import SimpleReplayBuffer from garage.sampler import OffPolicyVectorizedSampler from garage.tf.algos import DDPG from garage.tf.envs im...
44.056604
79
0.571949
502d43fea9653e2fc0be16d73a85ac9c685f9873
334
py
Python
models/backbone/__init__.py
killf/FarSeg
a696576bfe76ad4b2c5fea842830ae2e60e0b867
[ "MIT" ]
7
2020-10-22T08:27:12.000Z
2021-11-14T15:27:18.000Z
models/backbone/__init__.py
killf/FarSeg
a696576bfe76ad4b2c5fea842830ae2e60e0b867
[ "MIT" ]
1
2020-10-29T02:13:04.000Z
2020-10-29T13:27:58.000Z
models/backbone/__init__.py
killf/FarSeg
a696576bfe76ad4b2c5fea842830ae2e60e0b867
[ "MIT" ]
1
2021-05-05T05:32:28.000Z
2021-05-05T05:32:28.000Z
from .resnet import * BACKBONES = { "ResNet18": resnet18, "ResNet34": resnet34, "ResNet50": resnet50, "ResNet101": resnet101, "ResNet152": resnet152, "ResNext50_32x4d": resnext50_32x4d, "ResNeXt101_32x8d": resnext101_32x8d, "WideResNet50_2": wide_resnet50_2, "WideResNet101_2": wide_...
23.857143
41
0.691617
41433f3c17fb6ab214e7490d9731bffbd3df1648
21,010
py
Python
test/functional/tests/cli/test_cli_standby.py
kmajzero/open-cas-linux
9d7afc467494cc6a929c00c1b938d9894e96ec8b
[ "BSD-3-Clause" ]
null
null
null
test/functional/tests/cli/test_cli_standby.py
kmajzero/open-cas-linux
9d7afc467494cc6a929c00c1b938d9894e96ec8b
[ "BSD-3-Clause" ]
null
null
null
test/functional/tests/cli/test_cli_standby.py
kmajzero/open-cas-linux
9d7afc467494cc6a929c00c1b938d9894e96ec8b
[ "BSD-3-Clause" ]
null
null
null
# # Copyright(c) 2019-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # import pytest from api.cas import casadm, casadm_parser, dmesg from api.cas.casadm import standby_init from api.cas.cli import casadm_bin from core.test_run import TestRun from storage_devices.device import Device from storage_devi...
45.47619
100
0.625083
03ba26d7075b9d70df7043455f1ff1dc3c87c65d
399
py
Python
exercicios_resolvidos/ex015.py
WagnerAndrade-DEV/Python-Basics
77b6f4b48721809c6a13ddbb7b7bc4c3bc9f712f
[ "MIT" ]
null
null
null
exercicios_resolvidos/ex015.py
WagnerAndrade-DEV/Python-Basics
77b6f4b48721809c6a13ddbb7b7bc4c3bc9f712f
[ "MIT" ]
null
null
null
exercicios_resolvidos/ex015.py
WagnerAndrade-DEV/Python-Basics
77b6f4b48721809c6a13ddbb7b7bc4c3bc9f712f
[ "MIT" ]
null
null
null
#Escreva um programa que pergunte a quantidade de Km percorridos por um carro alugado e a quantidade de dias pelos quais ele foi alugado. Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$0,15 por Km rodado dias = int(input('Quantos dias alugados?: ')) km = int(input('Quantos Km rodados?: ')) valor ...
49.875
224
0.706767
3671bc35da7afa873db50671fafe420e51c0e587
3,117
py
Python
oakling/oakling/settings.py
zym1115718204/oakling
e925e324c0a18b4cb246a1811f2dca522c4e2892
[ "Apache-2.0" ]
1
2018-03-22T10:45:22.000Z
2018-03-22T10:45:22.000Z
oakling/oakling/settings.py
zym1115718204/oakling
e925e324c0a18b4cb246a1811f2dca522c4e2892
[ "Apache-2.0" ]
null
null
null
oakling/oakling/settings.py
zym1115718204/oakling
e925e324c0a18b4cb246a1811f2dca522c4e2892
[ "Apache-2.0" ]
null
null
null
""" Django settings for oakling project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ from comm...
28.59633
70
0.545075
59827d555348300a1d315c0f322126b508a33533
8,637
py
Python
snsim/utils.py
bcarreres/snsim
86ffc49f254cd89c74be9c3350c00982e3d216e2
[ "BSD-3-Clause" ]
5
2021-07-14T18:23:59.000Z
2022-02-02T13:09:55.000Z
snsim/utils.py
bcarreres/snsim
86ffc49f254cd89c74be9c3350c00982e3d216e2
[ "BSD-3-Clause" ]
7
2021-02-25T15:19:59.000Z
2021-11-24T08:24:55.000Z
snsim/utils.py
bcarreres/snsim
86ffc49f254cd89c74be9c3350c00982e3d216e2
[ "BSD-3-Clause" ]
1
2021-05-19T11:25:18.000Z
2021-05-19T11:25:18.000Z
"""This module contains usefull function for the simulation.""" import numpy as np import sncosmo as snc import astropy.time as atime from astropy.coordinates import SkyCoord from astropy import cosmology as acosmo import astropy.units as u from .constants import C_LIGHT_KMS def set_cosmo(cosmo_dic): """Load an ...
27.506369
91
0.582031
87fe37fb12032f1b9127840d796ca56a211169f5
14,527
py
Python
nailgun/nailgun/test/integration/test_network_manager.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
1
2021-04-06T16:13:35.000Z
2021-04-06T16:13:35.000Z
nailgun/nailgun/test/integration/test_network_manager.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/test/integration/test_network_manager.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Mirantis, 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 requi...
34.588095
79
0.570799
07b0009a020c1a5dc29d6c312813895952d1e6ad
1,797
py
Python
src/plugins/pcr/config.py
cdlaimin/CoolQBot
eb77046dd9f8c53c4e7b2e8419d2e447261ade97
[ "MIT" ]
72
2019-10-23T08:07:58.000Z
2022-03-31T12:02:08.000Z
src/plugins/pcr/config.py
cdlaimin/CoolQBot
eb77046dd9f8c53c4e7b2e8419d2e447261ade97
[ "MIT" ]
87
2019-03-11T09:52:31.000Z
2022-03-21T21:56:48.000Z
src/plugins/pcr/config.py
cdlaimin/CoolQBot
eb77046dd9f8c53c4e7b2e8419d2e447261ade97
[ "MIT" ]
24
2019-03-08T08:15:17.000Z
2021-12-24T05:25:58.000Z
""" 配置文件 """ from typing import List from nonebot import get_driver from pydantic import BaseSettings, validator from src.utils.helpers import groupidtostr, strtogroupid from src.utils.plugin import PluginData DATA = PluginData("pcr") class Config(BaseSettings): # 新闻推送相关配置 # 自动推送新闻的间隔,单位 分钟 push_news_i...
29.459016
86
0.671675
44df28fae9a71b9af5ad8e7864a6ecbd5ac4ebae
614
py
Python
Prime3.py
rashidulhasanhridoy/Prime-Number-Problem-in-Python-3
15edc619b6d282cf482dc312fc01aa5d4a9ee6d1
[ "Apache-2.0" ]
1
2020-07-21T18:01:04.000Z
2020-07-21T18:01:04.000Z
Prime3.py
rashidulhasanhridoy/Prime-Number-Problem-in-Python-3
15edc619b6d282cf482dc312fc01aa5d4a9ee6d1
[ "Apache-2.0" ]
null
null
null
Prime3.py
rashidulhasanhridoy/Prime-Number-Problem-in-Python-3
15edc619b6d282cf482dc312fc01aa5d4a9ee6d1
[ "Apache-2.0" ]
null
null
null
#This program will show n-th number prime. def prime(X): if X == 1: return 0 else: for i in range(2, X): if X % i == 0: return 0 break else: return 1 P = [] count = 0 i = 1 while True: Y = prime(i) if Y == 1: P.appen...
21.928571
86
0.480456
40214ade0843fb29c7958bb6e5eb25440757e5e5
50,130
py
Python
gplearn/genetic.py
hofesh/gplearn
2f93916a134fc0a2e4410025aa31f7805848c9d5
[ "BSD-3-Clause" ]
null
null
null
gplearn/genetic.py
hofesh/gplearn
2f93916a134fc0a2e4410025aa31f7805848c9d5
[ "BSD-3-Clause" ]
null
null
null
gplearn/genetic.py
hofesh/gplearn
2f93916a134fc0a2e4410025aa31f7805848c9d5
[ "BSD-3-Clause" ]
null
null
null
"""Genetic Programming in Python, with a scikit-learn inspired API The :mod:`gplearn.genetic` module implements Genetic Programming. These are supervised learning methods based on applying evolutionary operations on computer programs. """ # Author: Trevor Stephens <trevorstephens.com> # # License: BSD 3 clause impor...
43.629243
87
0.601456
6f23cf58cc6c297356a20b4a8e6a1b00fa2e9db3
4,575
py
Python
micropython-maixpy-0_6_2-66/stubs/fpioa_manager.py
mongonta0716/stub_for_maixpy
f8f29454668919873f9a0f14bb5a9b01ab103bc8
[ "MIT" ]
1
2021-08-22T09:10:43.000Z
2021-08-22T09:10:43.000Z
micropython-maixpy-0_6_2-66/stubs/fpioa_manager.py
mongonta0716/stub_for_maixpy
f8f29454668919873f9a0f14bb5a9b01ab103bc8
[ "MIT" ]
null
null
null
micropython-maixpy-0_6_2-66/stubs/fpioa_manager.py
mongonta0716/stub_for_maixpy
f8f29454668919873f9a0f14bb5a9b01ab103bc8
[ "MIT" ]
null
null
null
""" Module: 'fpioa_manager' on micropython-maixpy-0.6.2-66 """ # MCU: {'ver': '0.6.2-66', 'build': '66', 'sysname': 'MaixPy', 'platform': 'MaixPy', 'version': '0.6.2', 'release': '0.6.2', 'port': 'MaixPy', 'family': 'micropython', 'name': 'micropython', 'machine': 'Sipeed_M1 with kendryte-k210', 'nodename': 'MaixPy'} #...
19.551282
255
0.582951
2bc2bfcf615486f068ed5f13a90cea210ddff6de
1,589
py
Python
src/wai/bynning/binners/_MinSizeBinner.py
waikato-datamining/bynning
01b7368d4dc1094651d7cbe067576dfb3756a1d3
[ "MIT" ]
null
null
null
src/wai/bynning/binners/_MinSizeBinner.py
waikato-datamining/bynning
01b7368d4dc1094651d7cbe067576dfb3756a1d3
[ "MIT" ]
null
null
null
src/wai/bynning/binners/_MinSizeBinner.py
waikato-datamining/bynning
01b7368d4dc1094651d7cbe067576dfb3756a1d3
[ "MIT" ]
null
null
null
from typing import List from .._Binnable import Binnable from ._TwoPassBinner import TwoPassBinner class MinSizeBinner(TwoPassBinner[int, int]): """ Binner which bins items by their size, placing items in indexed bins until they exceed a certain minimum total size. """ def __init__(self, min_...
32.428571
94
0.638137
3db62ca594a470366b81fcae9762bd06b120655e
683
py
Python
tests/runners/lib/env.py
CyberFlameGO/tilck
4c32541874102e524374ab79d46b68af9d759390
[ "BSD-2-Clause" ]
1,059
2018-07-30T14:48:42.000Z
2022-03-30T19:54:49.000Z
tests/runners/lib/env.py
CyberFlameGO/tilck
4c32541874102e524374ab79d46b68af9d759390
[ "BSD-2-Clause" ]
15
2019-06-17T13:58:08.000Z
2021-10-16T18:19:25.000Z
tests/runners/lib/env.py
CyberFlameGO/tilck
4c32541874102e524374ab79d46b68af9d759390
[ "BSD-2-Clause" ]
47
2020-03-09T16:54:07.000Z
2022-03-12T08:53:56.000Z
# SPDX-License-Identifier: BSD-2-Clause import os import sys from .lang_aux import Const, ReloadAsConstModule def env_bool(x): return Const(os.environ.get(x, '0') == '1') def env_int(x, val): return Const(int(os.environ.get(x, str(val)))) VM_MEMORY_SIZE_IN_MB = env_int('TILCK_VM_MEM', 128) GEN_TEST_DATA = env...
25.296296
77
0.751098
a50d92ea7ad239e15d642bffd39cff71238d0877
3,042
py
Python
main.py
guntata/-2-
87814dbddc4e95b5413b09ceec6527c896e3eb66
[ "Apache-2.0" ]
null
null
null
main.py
guntata/-2-
87814dbddc4e95b5413b09ceec6527c896e3eb66
[ "Apache-2.0" ]
null
null
null
main.py
guntata/-2-
87814dbddc4e95b5413b09ceec6527c896e3eb66
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import matplotlib; matplotlib.use('Agg') import os import os.path as osp import argparse from train import train from test import test from test_beam import test_beam parser = argparse.ArgumentParser(description='PyTorch Convolutional Image Captioning Model') parser.add_arg...
33.8
95
0.642669
19802b903dba28a18c9f316c2f7adb7edac2c1db
12,091
py
Python
galloper/api/sequrity_report.py
borysvorona/galloper
09d5e78f0e17c8f309666db7bcf3f7bf6a766ffa
[ "Apache-2.0" ]
1
2020-03-11T13:36:16.000Z
2020-03-11T13:36:16.000Z
galloper/api/sequrity_report.py
borysvorona/galloper
09d5e78f0e17c8f309666db7bcf3f7bf6a766ffa
[ "Apache-2.0" ]
null
null
null
galloper/api/sequrity_report.py
borysvorona/galloper
09d5e78f0e17c8f309666db7bcf3f7bf6a766ffa
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 getcarrier.io # # 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...
47.415686
111
0.592259
1673dff8123bbcb4f2d081f9e0d321fb5e76890b
1,887
py
Python
src/maintenance/setup.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-02-18T00:16:47.000Z
2022-02-18T00:16:47.000Z
src/maintenance/setup.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/maintenance/setup.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.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. # ---------------------------------------------...
31.983051
94
0.6354
88ba44a50899b0dd7d69b492ce481c7870b373f0
56,972
py
Python
clifter_slam/structures/pointclouds.py
slowy07/clifter_slam
4b4fc2dde07bb4d66084c09f53b88a87c8cbf319
[ "MIT" ]
12
2021-09-05T10:56:42.000Z
2021-11-21T07:38:17.000Z
clifter_slam/structures/pointclouds.py
slowy07/clifter_slam
4b4fc2dde07bb4d66084c09f53b88a87c8cbf319
[ "MIT" ]
null
null
null
clifter_slam/structures/pointclouds.py
slowy07/clifter_slam
4b4fc2dde07bb4d66084c09f53b88a87c8cbf319
[ "MIT" ]
2
2021-09-05T10:56:46.000Z
2021-10-23T00:46:43.000Z
from typing import List, Optional, Union import open3d as o3d import plotly.graph_objects as go import torch from ..geometry import projutils from . import structutils __all__ = ["Pointclouds"] class Pointclouds(object): r"""Batch of pointclouds (with varying numbers of points), enabling conversion between 2 r...
38.809264
123
0.568771
aeb6ca53a6eda4a7ad863c9fdebbcc8ac7c9f404
2,036
py
Python
version.py
KD-Group/prett
b605a5637958eb9a475494bba2622b712b23c680
[ "MIT" ]
1
2017-11-28T10:31:45.000Z
2017-11-28T10:31:45.000Z
version.py
KD-Group/prett
b605a5637958eb9a475494bba2622b712b23c680
[ "MIT" ]
1
2018-05-21T04:53:15.000Z
2018-05-21T04:53:15.000Z
version.py
KD-Group/prett
b605a5637958eb9a475494bba2622b712b23c680
[ "MIT" ]
2
2018-01-03T12:13:13.000Z
2018-01-19T06:19:10.000Z
# 获取git的tag并保存在RELEASE-VERSION中, 以便每次打包自动识别最新的tag, # 并且作为version去发布, 如果不存在RELEASE-VERSION文件且无tag, 默认使用"0.0.1" # 使用前必须在MANIFEST.in中加入 # include RELEASE-VERSION # include version.py __all__ = ("get_git_version") import subprocess import os def get_git_latest_tag(): def _minimal_ext_cmd(cmd: str): # c...
24.53012
96
0.582515
d9ee75336dc50fa9d021fbb61b5dad52534edc05
4,716
py
Python
Virtual_Piano.py
PrathameshDeshpande/Virtual_Piano_OpenCV
a5587b3ebe795c1fa4e2a816ef02f1e8e700444c
[ "Apache-2.0" ]
6
2020-07-30T19:12:02.000Z
2020-08-06T16:04:48.000Z
Virtual_Piano.py
PrathameshDeshpande/Virtual_Piano_OpenCV
a5587b3ebe795c1fa4e2a816ef02f1e8e700444c
[ "Apache-2.0" ]
null
null
null
Virtual_Piano.py
PrathameshDeshpande/Virtual_Piano_OpenCV
a5587b3ebe795c1fa4e2a816ef02f1e8e700444c
[ "Apache-2.0" ]
1
2020-08-02T05:09:55.000Z
2020-08-02T05:09:55.000Z
import cv2 import numpy as np import time import pygame pygame.init() w,h = 78,110 x1,y1= 10,10 x2,y2 = 10+w,10 x3,y3 = 10+2*w,10 x4,y4 = 10+3*w,10 x5,y5 = 10+4*w,10 x6,y6 = 10+5*w,10 x7,y7 = 10+6*w,10 x8,y8 =10+7*w,10 def draw_piano(frame): cv2.rectangle(frame, (x1, y1), (x1 + w, y1 + h), (255, 255, 255), -1) ...
43.266055
90
0.553223
d5a1cd165c93547dcc99d7272d1224eefc73e114
7,907
py
Python
ctypesgencore/parser/pplexer.py
kernsuite-debian/ctypesgen
391c5eecac347e91c720295866c9d2431a378ee1
[ "BSD-3-Clause" ]
null
null
null
ctypesgencore/parser/pplexer.py
kernsuite-debian/ctypesgen
391c5eecac347e91c720295866c9d2431a378ee1
[ "BSD-3-Clause" ]
null
null
null
ctypesgencore/parser/pplexer.py
kernsuite-debian/ctypesgen
391c5eecac347e91c720295866c9d2431a378ee1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''Preprocess a C source file using gcc and convert the result into a token stream Reference is C99: * http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf ''' __docformat__ = 'restructuredtext' import os, re, shlex, sys, tokenize, lex, yacc, traceback import ctypes from lex import ...
27.359862
79
0.502846
e773dd39ce91e41bae2b1b2a5885788456933304
13,500
py
Python
test/models/test_model_list_gp_regression.py
talesa/botorch
ab04dd39a2d4c7734e41c5f26eb2dbba5b0e1771
[ "MIT" ]
null
null
null
test/models/test_model_list_gp_regression.py
talesa/botorch
ab04dd39a2d4c7734e41c5f26eb2dbba5b0e1771
[ "MIT" ]
null
null
null
test/models/test_model_list_gp_regression.py
talesa/botorch
ab04dd39a2d4c7734e41c5f26eb2dbba5b0e1771
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import itertools import warnings import torch from botorch.acquisition.objective import ScalarizedPosteriorTransform...
45.302013
85
0.625259
0f9b908cfe4b72a0ec925317c7359c3bc6b0bc88
3,364
py
Python
portality/blog.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
null
null
null
portality/blog.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
null
null
null
portality/blog.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
null
null
null
from portality.core import app import feedparser from portality.dao import DomainObject as DomainObject from copy import deepcopy from datetime import datetime class FeedError(Exception): pass class News(DomainObject): __type__ = "news" @classmethod def by_remote_id(cls, remote_id): q = NewsQ...
29.252174
95
0.611772
73732cf9a7098402f3caf0cf3b6697f868149a08
2,319
py
Python
osplugin/config.py
mkr1481/mecm-applcm
87538ac4aa5d5607597d3bf43b0ac0f675cc292b
[ "Apache-2.0" ]
null
null
null
osplugin/config.py
mkr1481/mecm-applcm
87538ac4aa5d5607597d3bf43b0ac0f675cc292b
[ "Apache-2.0" ]
null
null
null
osplugin/config.py
mkr1481/mecm-applcm
87538ac4aa5d5607597d3bf43b0ac0f675cc292b
[ "Apache-2.0" ]
null
null
null
""" # Copyright 2021 21CN Corporation Limited # # 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 agree...
38.016393
87
0.710651
04c3908a2fb7ca0310b228c1394661d40d9c5143
6,681
py
Python
src/driving_node/src/deeplearning_driving_node.py
mommy79/AuDi-GIT-turtlebot3_autorace
fd1382246f1ee74ee70857006563184d672a6666
[ "Apache-2.0" ]
1
2021-06-13T06:20:15.000Z
2021-06-13T06:20:15.000Z
src/driving_node/src/deeplearning_driving_node.py
taening/AuDi-GIT-turtlebot3_autorace
fd1382246f1ee74ee70857006563184d672a6666
[ "Apache-2.0" ]
null
null
null
src/driving_node/src/deeplearning_driving_node.py
taening/AuDi-GIT-turtlebot3_autorace
fd1382246f1ee74ee70857006563184d672a6666
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from std_msgs.msg import Float32, UInt8 from geometry_msgs.msg import Twist from sensor_msgs.msg import Image, CompressedImage from cv_bridge import CvBridge import tensorflow as tf import numpy as np import enum import rospy import cv2 import threading import time # Hyper...
38.177143
191
0.624457
0d08d871cdab4cdc8b0b7bd3d39ec380b184b88d
804
py
Python
python-scrips/PDF extraction-elsie/main.py
emetikos/chatbot
b28378661afda009e8b5e93d856ada6f34ef151a
[ "MIT" ]
null
null
null
python-scrips/PDF extraction-elsie/main.py
emetikos/chatbot
b28378661afda009e8b5e93d856ada6f34ef151a
[ "MIT" ]
null
null
null
python-scrips/PDF extraction-elsie/main.py
emetikos/chatbot
b28378661afda009e8b5e93d856ada6f34ef151a
[ "MIT" ]
null
null
null
import PyPDF2 # open the pdf file pdfFileObj = open("Hello.pdf", "rb") # creating an object reader to read file pdfReader = PyPDF2.PdfFileReader(pdfFileObj) # print out no. of pages in the file print("Number of Pages: ",pdfReader.numPages) pageObj = pdfReader.getPage(0) # extract all the text from file/doc print(...
22.971429
63
0.665423
502acc91902f829c346d2af504a0cd0526fc4629
5,822
py
Python
rldb/db/paper__acktr/algo__acktr/entries.py
seungjaeryanlee/sotarl
8c471c4666d6210c68f3cb468e439a2b168c785d
[ "MIT" ]
45
2019-05-13T17:39:33.000Z
2022-03-07T23:44:13.000Z
rldb/db/paper__acktr/algo__acktr/entries.py
seungjaeryanlee/sotarl
8c471c4666d6210c68f3cb468e439a2b168c785d
[ "MIT" ]
2
2019-03-29T01:41:59.000Z
2019-07-02T02:48:31.000Z
rldb/db/paper__acktr/algo__acktr/entries.py
seungjaeryanlee/sotarl
8c471c4666d6210c68f3cb468e439a2b168c785d
[ "MIT" ]
2
2020-04-07T20:57:30.000Z
2020-07-08T12:55:15.000Z
atari_entries = [ { 'env-title': 'atari-alien', 'env-variant': 'No-op start', 'score': 3197.1, }, { 'env-title': 'atari-amidar', 'env-variant': 'No-op start', 'score': 1059.4, }, { 'env-title': 'atari-assault', 'env-variant': 'No-op sta...
22.392308
55
0.437135
f1d07b906971c12d57649f79c1464352dac2a01c
2,287
py
Python
tests/unit/test_diffusion2d_functions.py
LarissaBrencher/testing-python-exercise
84787d0ee8905addd6c738e737532465780c0733
[ "CC-BY-4.0" ]
null
null
null
tests/unit/test_diffusion2d_functions.py
LarissaBrencher/testing-python-exercise
84787d0ee8905addd6c738e737532465780c0733
[ "CC-BY-4.0" ]
null
null
null
tests/unit/test_diffusion2d_functions.py
LarissaBrencher/testing-python-exercise
84787d0ee8905addd6c738e737532465780c0733
[ "CC-BY-4.0" ]
null
null
null
""" Tests for functions in class SolveDiffusion2D """ from diffusion2d import SolveDiffusion2D import pytest import numpy as np from unittest import TestCase class TestDiffusion2D(TestCase): def setUp(self): # fixture self.solver = SolveDiffusion2D() def test_initialize_domain(self): ...
30.493333
82
0.602973
72564a7635f7a6cf2d4863f61957b787f1bfc3e3
2,751
py
Python
tensorpack/utils/timer.py
ChriPo92/tensorpack
45d2155850d3870bbf110c94c73508c707e1ae42
[ "Apache-2.0" ]
121
2019-06-04T08:30:53.000Z
2021-12-17T13:27:54.000Z
tensorpack/utils/timer.py
lkn123/tensorpack
d7a13cb74c9066bc791d7aafc3b744b60ee79a9f
[ "Apache-2.0" ]
1
2019-11-21T04:29:09.000Z
2019-11-21T04:29:09.000Z
tensorpack/utils/timer.py
lkn123/tensorpack
d7a13cb74c9066bc791d7aafc3b744b60ee79a9f
[ "Apache-2.0" ]
22
2019-10-10T15:35:47.000Z
2021-09-13T12:46:09.000Z
# -*- coding: utf-8 -*- # File: timer.py import atexit from collections import defaultdict from contextlib import contextmanager from time import time as timer import six from . import logger from .stats import StatCounter if six.PY3: from time import perf_counter as timer # noqa __all__ = ['total_timer', 't...
23.715517
96
0.586696
1748197936ae4cc554cc49a1cbd241171b134478
55,316
py
Python
tests/unit/utils/test_jinja.py
ContextLogic/salt
f98839c72df2294cdd1670835d10904b12089622
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_jinja.py
ContextLogic/salt
f98839c72df2294cdd1670835d10904b12089622
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/test_jinja.py
ContextLogic/salt
f98839c72df2294cdd1670835d10904b12089622
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Tests for salt.utils.jinja ''' # Import Python libs from __future__ import absolute_import, unicode_literals, print_function from jinja2 import Environment, DictLoader, exceptions import ast import copy import datetime import os import pprint import re import tempfile # Import Salt Testing ...
41.127138
125
0.553258
44f6ef45a2ddaf43310c6cb20183d83d527b6c2f
1,823
py
Python
var/spack/repos/builtin/packages/votca-csgapps/package.py
gwagenbreth/spack
e10c0a6a340956a8626de747036a745cd10d606d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-09-19T10:20:43.000Z
2021-09-19T10:20:43.000Z
var/spack/repos/builtin/packages/votca-csgapps/package.py
gwagenbreth/spack
e10c0a6a340956a8626de747036a745cd10d606d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2021-05-12T05:42:26.000Z
2022-03-30T17:06:14.000Z
var/spack/repos/builtin/packages/votca-csgapps/package.py
gwagenbreth/spack
e10c0a6a340956a8626de747036a745cd10d606d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class VotcaCsgapps(CMakePackage): """Versatile Object-oriented Toolkit for Coarse-graining ...
47.973684
97
0.719144
1e5ff2c329009d0a50a8daff526b12d4949b452c
1,616
py
Python
main/sign.py
6688aa/-
e810e433fa5088d9df615881a475e5ceeccfe6ff
[ "Apache-2.0" ]
27
2021-01-24T15:30:46.000Z
2022-03-22T04:28:40.000Z
main/sign.py
6688aa/-
e810e433fa5088d9df615881a475e5ceeccfe6ff
[ "Apache-2.0" ]
13
2021-03-22T05:24:20.000Z
2022-03-26T18:12:29.000Z
main/sign.py
6688aa/-
e810e433fa5088d9df615881a475e5ceeccfe6ff
[ "Apache-2.0" ]
39
2021-02-02T07:45:21.000Z
2022-03-25T04:06:02.000Z
# coding=utf-8 import requests from urllib.parse import quote def login(user, retry=False): """获取处理后的数据 :param user:用户信息 :return : 传回登陆成功的cookie """ # 姓名,学号,密码,学校编码 name = user.get("name") stucode = user.get("stucode") password = user.get("password") schoolcode = user.get("schoolcod...
35.130435
178
0.612624
a89dd2cf7e546a9353b376e0ce96c56c443ca9bd
10,187
py
Python
python/taichi/misc/util.py
youyufeng92/taichi
c826de521d254745db556835e322dd2e0cfdbfa0
[ "MIT" ]
1
2020-07-17T08:59:53.000Z
2020-07-17T08:59:53.000Z
python/taichi/misc/util.py
youyufeng92/taichi
c826de521d254745db556835e322dd2e0cfdbfa0
[ "MIT" ]
null
null
null
python/taichi/misc/util.py
youyufeng92/taichi
c826de521d254745db556835e322dd2e0cfdbfa0
[ "MIT" ]
null
null
null
import sys import datetime import platform import random import taichi def get_os_name(): name = platform.platform() # in python 3.8, platform.platform() uses mac_ver() on macOS # it will return 'macOS-XXXX' instead of 'Darwin-XXXX' if name.lower().startswith('darwin') or name.lower().startswith('macos'): ...
27.833333
80
0.652596
5f8129d533d8a5052006008e39412acf7863788a
752
py
Python
distributed_frontera/messagebus/zeromq/socket_config.py
abael/ScrapyFronteraDistributed
50a636be9dbff1e27698f55968ffb0a0b53a6123
[ "BSD-3-Clause" ]
null
null
null
distributed_frontera/messagebus/zeromq/socket_config.py
abael/ScrapyFronteraDistributed
50a636be9dbff1e27698f55968ffb0a0b53a6123
[ "BSD-3-Clause" ]
null
null
null
distributed_frontera/messagebus/zeromq/socket_config.py
abael/ScrapyFronteraDistributed
50a636be9dbff1e27698f55968ffb0a0b53a6123
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- class SocketConfig(object): hostname = None base_port = None def __init__(self, hostname, base_port): self.hostname = hostname self.base_port = base_port def spiders_in(self): return 'tcp://%s:%d' % (self.hostname, self.base_port) def spiders_out...
25.931034
66
0.582447
1f4a9b194306e44403bff0be0b7b6c948fe73861
291
py
Python
flow-control/Demos/add_nums.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
2
2022-01-04T22:25:01.000Z
2022-01-16T16:50:23.000Z
flow-control/Demos/add_nums.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
null
null
null
flow-control/Demos/add_nums.py
WebucatorTraining/classfiles-actionable-python
930c154a6dbfa6c54768557a998b4dbafb43df38
[ "MIT" ]
null
null
null
def add_nums(num, *nums): total = sum(nums, num) nums_joined = ', '.join([str(n) for n in nums]) print(f"The sum of {nums_joined} and {num} is {total}.") def main(): add_nums(1, 2) add_nums(1, 2, 3, 4, 5) add_nums(11, 12, 13, 14) add_nums(101, 201, 301) main()
22.384615
60
0.573883
4e2feca1d7b9f3231a38137e96b01c6af8ee06ed
374
py
Python
bin/uwin-lift-hlp/uwin_lift_hlp/dump_debug.py
DCNick3/uwin-remill
1434c3e102b781690c764fb8a21cdba3380a8b06
[ "Apache-2.0" ]
null
null
null
bin/uwin-lift-hlp/uwin_lift_hlp/dump_debug.py
DCNick3/uwin-remill
1434c3e102b781690c764fb8a21cdba3380a8b06
[ "Apache-2.0" ]
null
null
null
bin/uwin-lift-hlp/uwin_lift_hlp/dump_debug.py
DCNick3/uwin-remill
1434c3e102b781690c764fb8a21cdba3380a8b06
[ "Apache-2.0" ]
null
null
null
from .watcom_debug_info import try_get_watcom_debug_info import pefile import sys def main(): fname = sys.argv[1] pe = pefile.PE(fname) debug = try_get_watcom_debug_info(pe, fname) for x in debug: lo, hi = debug[x] print(f"0x{lo:00000000x}{' ' if not hi else f' - 0x{hi:000...
23.375
93
0.622995
ed3b21943c2f9baae29dd5ad2e45a0e03bc0e035
4,284
py
Python
compliance/verify_submission/mlperf_submission_helper/crypto.py
sanyalington/mlperf_training_mitest
d07b360e475afb87c7da57f173952822d84ed212
[ "Apache-2.0" ]
1
2019-02-19T09:53:42.000Z
2019-02-19T09:53:42.000Z
compliance/verify_submission/mlperf_submission_helper/crypto.py
sanyalington/mlperf_training_mitest
d07b360e475afb87c7da57f173952822d84ed212
[ "Apache-2.0" ]
1
2018-11-06T06:03:30.000Z
2018-11-06T06:03:30.000Z
compliance/verify_submission/mlperf_submission_helper/crypto.py
sanyalington/mlperf_training_mitest
d07b360e475afb87c7da57f173952822d84ed212
[ "Apache-2.0" ]
3
2019-01-14T13:57:03.000Z
2019-02-22T23:19:41.000Z
import fnmatch import os import shutil from Cryptodome.PublicKey import RSA from Cryptodome.Random import get_random_bytes from Cryptodome.Cipher import AES, PKCS1_OAEP def encrypt_file(public_key, src_file, dest_file): try: with open(src_file) as f: rsa_key = RSA.import_key(open(public_key)....
39.302752
85
0.582166
1cc546629589d38106c72d66572f36ff499a6f28
129,828
py
Python
pandas/indexes/base.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2019-10-24T09:00:26.000Z
2019-10-24T09:00:26.000Z
pandas/indexes/base.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/indexes/base.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
3
2019-12-24T18:46:58.000Z
2021-09-04T11:57:13.000Z
import datetime import warnings import operator import numpy as np import pandas.tslib as tslib import pandas.lib as lib import pandas._join as _join import pandas.algos as _algos import pandas.index as _index from pandas.lib import Timestamp, Timedelta, is_datetime_array from pandas.compat import range, u from panda...
34.937567
83
0.551068
03173d8098eebf2d45f338127756a5883be03511
1,040
py
Python
datadog_checks_base/datadog_checks/base/utils/prometheus/functions.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
datadog_checks_base/datadog_checks/base/utils/prometheus/functions.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
datadog_checks_base/datadog_checks/base/utils/prometheus/functions.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2016-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from google.protobuf.internal.decoder import _DecodeVarint32 # pylint: disable=E0611,E0401 from . import metrics_pb2 # Deprecated, please use the PrometheusCheck class def parse_metric_family(buf): """ ...
35.862069
167
0.714423
c6f9855ea24bab4a6fe1a0d931a21d7371e5fa5d
4,027
py
Python
src/evaluate.py
Fantoni0/RingCTPerformance
84fc27f052919625a0db4d905614b52f693e59a3
[ "MIT" ]
2
2020-11-14T05:33:06.000Z
2021-01-15T10:31:21.000Z
src/evaluate.py
Fantoni0/RingCTPerformance
84fc27f052919625a0db4d905614b52f693e59a3
[ "MIT" ]
null
null
null
src/evaluate.py
Fantoni0/RingCTPerformance
84fc27f052919625a0db4d905614b52f693e59a3
[ "MIT" ]
1
2021-08-12T18:23:16.000Z
2021-08-12T18:23:16.000Z
# Standard library imports import secrets from timeit import default_timer as timer import os # Custom imports from src.ringCT import sign, verify from src.utils import utils from src.plot import plot # Third party library from joblib import Parallel, delayed def auxSign(index, parameters, signatures): """ ...
38.721154
114
0.625528
a74f41b8c63e9716f46430fe18d6b543d0682cb3
8,258
py
Python
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
2
2016-12-12T15:16:16.000Z
2018-10-30T02:35:36.000Z
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
null
null
null
device/app.py
panjanek/IotCenter
e139617d14617c10a18c35515e2d3aaae797bcac
[ "MIT" ]
null
null
null
import logging import threading import json import base64 import os from subprocess import Popen import glob import time import urllib2 import re import string import datetime class DeviceHandler: logger = logging.getLogger() def __init__(self, config): self.service = None self.tunnel = None ...
47.45977
177
0.552434
cba18e98a43145e22cc372bdce693139ef160ef3
6,333
py
Python
auto_ts/utils/etl.py
ahmedgu1/Auto_TS
fd40bb6c47e6079b8c9974662e0baea11edf09fa
[ "Apache-2.0" ]
423
2020-05-11T10:47:49.000Z
2022-03-30T14:14:20.000Z
auto_ts/utils/etl.py
Moehrenbaum/Auto_TS
e0a6634a727e44b4d5bbf6fbfefde99b6b3e8f86
[ "Apache-2.0" ]
70
2020-06-05T13:38:49.000Z
2022-03-17T11:42:25.000Z
auto_ts/utils/etl.py
Moehrenbaum/Auto_TS
e0a6634a727e44b4d5bbf6fbfefde99b6b3e8f86
[ "Apache-2.0" ]
75
2020-02-16T00:55:20.000Z
2022-03-22T03:55:09.000Z
from typing import List import numpy as np import pandas as pd # type: ignore import copy import pdb from sklearn.model_selection import TimeSeriesSplit # type: ignore import dask import dask.dataframe as dd ##### This function loads a time series data and sets the index as a time series def load_ts_data(f...
43.979167
118
0.605558
cf3ee8fdc1038f141c16ab31743278cb4c2b9637
21,326
py
Python
lib/lib-python/2.7/site.py
ojii/sandlib
f822eb308a86e413076c185724bd28a450c59187
[ "BSD-3-Clause" ]
1
2019-04-11T22:53:51.000Z
2019-04-11T22:53:51.000Z
lib/lib-python/2.7/site.py
ojii/sandlib
f822eb308a86e413076c185724bd28a450c59187
[ "BSD-3-Clause" ]
null
null
null
lib/lib-python/2.7/site.py
ojii/sandlib
f822eb308a86e413076c185724bd28a450c59187
[ "BSD-3-Clause" ]
null
null
null
"""Append module search paths for third-party packages to sys.path. **************************************************************** * This module is automatically imported during initialization. * **************************************************************** In earlier versions of Python (up to 1.5a3), scripts or...
33.166407
86
0.615352
311a0ae5e08f83bc782f3290b4d360ef06216e5c
679
py
Python
scout/commands/export/exon.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
scout/commands/export/exon.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
scout/commands/export/exon.py
szilvajuhos/scout
2f4a03fb3192a57c99fd62be626e8c22051e81af
[ "BSD-3-Clause" ]
null
null
null
import logging import click from flask.cli import with_appcontext from scout.commands.utils import builds_option from scout.export.exon import export_exons from scout.server.extensions import store LOG = logging.getLogger(__name__) @click.command('exons', short_help='Export exons') @builds_option @with_appcontext ...
23.413793
78
0.748159
e8d067db9ebb42e3a7ca556fc0cc24a9131fbb36
8,938
py
Python
cogs/background_tasks.py
Dakskihedron/snakebot
5770aed8663df47a3182bdf56c4202b2874c056f
[ "MIT" ]
null
null
null
cogs/background_tasks.py
Dakskihedron/snakebot
5770aed8663df47a3182bdf56c4202b2874c056f
[ "MIT" ]
null
null
null
cogs/background_tasks.py
Dakskihedron/snakebot
5770aed8663df47a3182bdf56c4202b2874c056f
[ "MIT" ]
null
null
null
import aiohttp import os import asyncio import subprocess import orjson from discord.ext import commands, tasks import discord import cogs.utils.database as DB class background_tasks(commands.Cog): """Commands related to the background tasks of the bot.""" def __init__(self, bot: commands.Bot) -> None: ...
34.114504
143
0.522264
9fce33945ff2f01bd2e396a3b4626104ee578462
18,645
py
Python
tests/test_process.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
29
2016-11-03T18:39:21.000Z
2022-02-27T17:42:37.000Z
tests/test_process.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
146
2016-07-07T16:41:07.000Z
2021-12-11T00:27:20.000Z
tests/test_process.py
ducdk90/tilequeue
c664b5c89a9f0e6743405ab266aa9ca80b57806e
[ "MIT" ]
28
2016-08-19T16:08:52.000Z
2021-07-26T10:16:29.000Z
from ModestMaps.Core import Coordinate import unittest class TestProcess(unittest.TestCase): def _make_json_tiles( self, coord, post_process_data={}, db_features=[], cut_coords=[], buffer_cfg={}): from tilequeue.process import process_coord from tilequeue.tile import coord...
34.91573
79
0.560472
26f69dab763dc0ae696381120f40417ab76f59dc
1,608
py
Python
expert.py
bbrighttaer/guided-irl
470302c272af1226aa268ffe81737fc14c5a1a50
[ "MIT" ]
9
2020-02-19T10:11:40.000Z
2021-07-21T03:16:24.000Z
expert.py
bbrighttaer/guided-irl
470302c272af1226aa268ffe81737fc14c5a1a50
[ "MIT" ]
null
null
null
expert.py
bbrighttaer/guided-irl
470302c272af1226aa268ffe81737fc14c5a1a50
[ "MIT" ]
3
2020-05-08T04:50:04.000Z
2021-07-12T21:58:23.000Z
from collections import namedtuple import pickle import gym import ptan from ptan.agent import float32_preprocessor import torch import numpy as np from util import PGN GAMMA = 0.99 NUM_TRAJS = 100 EpisodeStep = namedtuple('EpisodeStep', field_names=['state', 'action', 'reward', 'next_state']) Trajecto...
38.285714
99
0.647388
b5714b01b740d4103ad31394410f195fc60ced0c
9,273
py
Python
radiobear/brightness.py
david-deboer/radiobear
aedc716c7acf0c69d278988842407545f1043c17
[ "BSD-2-Clause" ]
3
2019-05-13T21:03:57.000Z
2021-04-22T05:33:33.000Z
radiobear/brightness.py
david-deboer/radiobear
aedc716c7acf0c69d278988842407545f1043c17
[ "BSD-2-Clause" ]
1
2020-02-11T20:34:49.000Z
2020-02-11T20:34:49.000Z
radiobear/brightness.py
david-deboer/radiobear
aedc716c7acf0c69d278988842407545f1043c17
[ "BSD-2-Clause" ]
null
null
null
# -*- mode: python; coding: utf-8 -*- # Copyright 2018 David DeBoer # Licensed under the 2-clause BSD license. import numpy as np from scipy.special import expn import os.path from . import utils from . import raypath as ray from . import logging class Brightness(): def __init__(self, config=None, log=None, verb...
38.799163
100
0.485496
7055d4bfb9e72fa7d3b37c9c57004539fe049216
10,050
py
Python
examples/example.py
godchen0212/pymilvus
09848e14206d956e3728131e73da1cc870f3c19b
[ "Apache-2.0" ]
null
null
null
examples/example.py
godchen0212/pymilvus
09848e14206d956e3728131e73da1cc870f3c19b
[ "Apache-2.0" ]
null
null
null
examples/example.py
godchen0212/pymilvus
09848e14206d956e3728131e73da1cc870f3c19b
[ "Apache-2.0" ]
null
null
null
import random from pprint import pprint from milvus import Milvus, DataType # ------ # Setup: # First of all, you need a runing Milvus(0.11.x). By default, Milvus runs on localhost in port 19530. # Then, you can use pymilvus(0.3.x) to connect to the server, You can change the _HOST and _PORT accordingly. # ----...
41.020408
112
0.657313
b78abe04e41b87829e6b9954ba648e9ca6d697d2
1,688
py
Python
pdf_to_scan/make_pdfs_look_scanned.py
apurvmishra99/pdf-to-scan
20ae5423224174cc2800f62318e2313e649957ab
[ "MIT" ]
42
2020-05-13T22:02:34.000Z
2022-02-27T18:35:14.000Z
pdf_to_scan/make_pdfs_look_scanned.py
apurvmishra99/pdf-to-scan
20ae5423224174cc2800f62318e2313e649957ab
[ "MIT" ]
1
2020-12-11T16:29:01.000Z
2020-12-11T16:29:01.000Z
pdf_to_scan/make_pdfs_look_scanned.py
apurvmishra99/pdf-to-scan
20ae5423224174cc2800f62318e2313e649957ab
[ "MIT" ]
2
2021-06-08T11:49:02.000Z
2021-08-03T14:18:31.000Z
#! /usr/bin/env python # Copyright (c) 2020 apurv # # This software is released under the MIT License. # https://opensource.org/licenses/MIT import os import sys import subprocess from pathlib import Path import click import locale import ghostscript from wand.image import Image @click.command() @click.argument...
35.914894
199
0.658768
1c8101f3524f904dfb19c5f6e85c42d23132ed8a
570
py
Python
ontask/migrations/0015_auto_20180530_0914.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/migrations/0015_auto_20180530_0914.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/migrations/0015_auto_20180530_0914.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-29 23:44 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ontask', '0014_auto_20180530_0754'), ] operations = [ migrations.AlterModelOptions...
22.8
49
0.587719
0c2610f8d10e9f0be45e18eb51e2edd56804faa8
1,317
py
Python
mindspore/ops/_op_impl/tbe/sqrt.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
mindspore/ops/_op_impl/tbe/sqrt.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
mindspore/ops/_op_impl/tbe/sqrt.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.657895
79
0.668185
e186226e0895d9787f179f8f29faabc35d7d8a8f
6,415
py
Python
tfx/extensions/google_cloud_big_query/example_gen/executor_test.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
2
2021-05-10T21:39:48.000Z
2021-11-17T11:24:29.000Z
tfx/extensions/google_cloud_big_query/example_gen/executor_test.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
1
2021-01-28T13:44:51.000Z
2021-04-28T16:15:47.000Z
tfx/extensions/google_cloud_big_query/example_gen/executor_test.py
Anon-Artist/tfx
2692c9ab437d76b5d9517996bfe2596862e0791d
[ "Apache-2.0" ]
1
2021-01-28T13:41:51.000Z
2021-01-28T13:41:51.000Z
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
36.448864
89
0.656898
e0449d2d865ed7916fb9278262d7ae47ff780f25
105,614
py
Python
sympy/solvers/tests/test_solveset.py
MaqOwais/sympy
c14ff3308aa416b4e9412af6f6682bff7a24e376
[ "BSD-3-Clause" ]
null
null
null
sympy/solvers/tests/test_solveset.py
MaqOwais/sympy
c14ff3308aa416b4e9412af6f6682bff7a24e376
[ "BSD-3-Clause" ]
null
null
null
sympy/solvers/tests/test_solveset.py
MaqOwais/sympy
c14ff3308aa416b4e9412af6f6682bff7a24e376
[ "BSD-3-Clause" ]
null
null
null
from sympy.core.containers import Tuple from sympy.core.function import (Function, Lambda, nfloat, diff) from sympy.core.mod import Mod from sympy.core.numbers import (E, I, Rational, oo, pi) from sympy.core.relational import (Eq, Gt, Ne) from sympy.core.singleton import S from sympy.core.symbol import (Dummy, Symb...
40.935659
160
0.563155
c320c3f3b7a034f8a18ee62226c2749a4fd174af
1,427
py
Python
rllib/environment/vectorized/pendulum.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
rllib/environment/vectorized/pendulum.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
rllib/environment/vectorized/pendulum.py
SamueleMeta/optimal_IS
7d8e0041825acfa003874cd1ad2aec0581f6a9e1
[ "MIT" ]
null
null
null
"""Vectorized Gym Pendulum Environment.""" import numpy as np from gym.envs.classic_control.pendulum import PendulumEnv, angle_normalize from rllib.environment.vectorized.util import VectorizedEnv class VectorizedPendulumEnv(PendulumEnv, VectorizedEnv): """Vectorized implementation of Pendulum.""" def step...
34.804878
87
0.60897
d750caaf7b3d26c7f24346867e370302ed4a76d1
1,308
py
Python
dataloader/CustomDataSetLoader.py
BadlyDrunkScotsman/PSMNet
2bed5282daccb7eba2ef1f454e1e9f34e0f9aed3
[ "MIT" ]
null
null
null
dataloader/CustomDataSetLoader.py
BadlyDrunkScotsman/PSMNet
2bed5282daccb7eba2ef1f454e1e9f34e0f9aed3
[ "MIT" ]
null
null
null
dataloader/CustomDataSetLoader.py
BadlyDrunkScotsman/PSMNet
2bed5282daccb7eba2ef1f454e1e9f34e0f9aed3
[ "MIT" ]
null
null
null
import torch.utils.data as data from PIL import Image import os import os.path IMG_EXTENSIONS = [ '.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP', ] def is_image_file(filename): return any(filename.endswith(extension) for extension in IMG_EXTENSIONS) def dataloader(fil...
25.153846
100
0.643731
ac1e30cd9512b0892980ed668f38d0302521e61c
2,686
py
Python
IMLearn/learners/regressors/linear_regression.py
LidarAb/IML.HUJI
798c99f9b1c29a701c1e06e923a429cae639937f
[ "MIT" ]
null
null
null
IMLearn/learners/regressors/linear_regression.py
LidarAb/IML.HUJI
798c99f9b1c29a701c1e06e923a429cae639937f
[ "MIT" ]
null
null
null
IMLearn/learners/regressors/linear_regression.py
LidarAb/IML.HUJI
798c99f9b1c29a701c1e06e923a429cae639937f
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import NoReturn from ...base import BaseEstimator import numpy as np from numpy.linalg import pinv import IMLearn.metrics.loss_functions as loss_functions class LinearRegression(BaseEstimator): """ Linear Regression Estimator Solving Ordinary Least Squares o...
28.574468
95
0.593075
e7898c08bc90f34ff16a94f0674b31474b60a3f2
11,215
py
Python
flask_dance/consumer/storage/sqla.py
timgates42/flask-dance
ebe3ea48d3263136e18ccea37e50292b7c503c67
[ "MIT" ]
null
null
null
flask_dance/consumer/storage/sqla.py
timgates42/flask-dance
ebe3ea48d3263136e18ccea37e50292b7c503c67
[ "MIT" ]
null
null
null
flask_dance/consumer/storage/sqla.py
timgates42/flask-dance
ebe3ea48d3263136e18ccea37e50292b7c503c67
[ "MIT" ]
null
null
null
from datetime import datetime from sqlalchemy import Column, Integer, String, DateTime from sqlalchemy.ext.mutable import MutableDict from sqlalchemy.ext.declarative import declared_attr from sqlalchemy_utils import JSONType from sqlalchemy.orm.exc import NoResultFound from flask_dance.utils import FakeCache, first fr...
39.911032
88
0.618457
086fcdea8dda34e51db9417f80d5f372f1251f5f
2,798
py
Python
commons/c2cgeoportal_commons/alembic/main/338b57593823_remove_trigger_on_role_name_change.py
rbovard/c2cgeoportal
61b7a4fc98f686f9b7d4c5fda7bb4c5cc09f8de8
[ "BSD-2-Clause-FreeBSD" ]
43
2015-02-16T06:56:25.000Z
2021-09-12T17:49:16.000Z
commons/c2cgeoportal_commons/alembic/main/338b57593823_remove_trigger_on_role_name_change.py
rbovard/c2cgeoportal
61b7a4fc98f686f9b7d4c5fda7bb4c5cc09f8de8
[ "BSD-2-Clause-FreeBSD" ]
3,227
2015-01-05T10:30:59.000Z
2022-03-31T03:25:39.000Z
commons/c2cgeoportal_commons/alembic/main/338b57593823_remove_trigger_on_role_name_change.py
rbovard/c2cgeoportal
61b7a4fc98f686f9b7d4c5fda7bb4c5cc09f8de8
[ "BSD-2-Clause-FreeBSD" ]
57
2015-01-29T08:32:12.000Z
2022-03-16T07:07:33.000Z
# Copyright (c) 2018-2019, Camptocamp SA # 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 notice, this # list of conditions an...
34.54321
88
0.750179
4261d5c311787ac0dda83085eb784eabf66362a9
2,498
py
Python
snippets.py
dmidlo/histdata.com-tools
dd1f17134711e5588ba019d6575287937936afb7
[ "MIT" ]
null
null
null
snippets.py
dmidlo/histdata.com-tools
dd1f17134711e5588ba019d6575287937936afb7
[ "MIT" ]
null
null
null
snippets.py
dmidlo/histdata.com-tools
dd1f17134711e5588ba019d6575287937936afb7
[ "MIT" ]
null
null
null
# import datatable as dt # from datatable import f # Try something like this # DT = dt.Frame(["20220401 001612839"]) # print(DT) # | C0 # | str32 # -- + ------------------ # 0 | 20220401 000012839 # year, month, day, hour # DT = DT[:, dt.time.ymdt(f[:][0:4].as_type(int), \ # f[:][4:6]....
41.633333
127
0.558847
e1714ff66e00b41a99eeb0443e2f72c1d4917702
22,478
py
Python
file/importer.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
null
null
null
file/importer.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
25
2019-03-05T05:56:35.000Z
2019-07-24T13:11:57.000Z
file/importer.py
stylekilla/syncmrt
816bb57d80d6595719b8b9d7f027f4f17d0a6c0a
[ "Apache-2.0" ]
1
2019-11-27T05:10:47.000Z
2019-11-27T05:10:47.000Z
import os import pydicom as dicom import numpy as np from file.image import Image2d from file import hdf5 from tools.opencl import gpu as gpuInterface from tools.math import wcs2wcs from natsort import natsorted from PyQt5 import QtCore, QtWidgets import csv import logging np.set_printoptions(formatter={'float': lambd...
36.788871
169
0.666162
eee36d733f56b35ea257a19a7406ae9a31da74f7
6,197
py
Python
SEIR_ImpVac.py
malenetxeberria/TFG-IngElec
1a60be3d767540e9254aa3ae0348ae0dbc669758
[ "MIT" ]
null
null
null
SEIR_ImpVac.py
malenetxeberria/TFG-IngElec
1a60be3d767540e9254aa3ae0348ae0dbc669758
[ "MIT" ]
null
null
null
SEIR_ImpVac.py
malenetxeberria/TFG-IngElec
1a60be3d767540e9254aa3ae0348ae0dbc669758
[ "MIT" ]
1
2021-01-27T19:27:59.000Z
2021-01-27T19:27:59.000Z
# -*- coding: utf-8 -*- """ Date: 18/02/2020 Description: The SEIR epidemic model with pulse vaccination. """ import numpy as np from scipy.integrate import odeint import matplotlib import matplotlib.pyplot as plt import sys # -----------------------------------------------------------------------------...
32.615789
81
0.512345
cf427f1d9c02a665d96cef051d10239cb77038b0
6,416
py
Python
lib/core/loss.py
lsrock1/human-pose-estimation-polar-coordinate
378ed6fb8ac37a90758381fdeabcc5f936ce0f60
[ "MIT" ]
null
null
null
lib/core/loss.py
lsrock1/human-pose-estimation-polar-coordinate
378ed6fb8ac37a90758381fdeabcc5f936ce0f60
[ "MIT" ]
null
null
null
lib/core/loss.py
lsrock1/human-pose-estimation-polar-coordinate
378ed6fb8ac37a90758381fdeabcc5f936ce0f60
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __futu...
38.884848
118
0.541771
0d8cad0980295b6751e3723add416e505790795a
6,058
py
Python
test/integration/component/test_asa1000v_fw.py
ksowmya/cloudstack-1
f8f779158da056be7da669884ae4ddd109cec044
[ "Apache-2.0" ]
1
2020-03-27T22:21:20.000Z
2020-03-27T22:21:20.000Z
test/integration/component/test_asa1000v_fw.py
ksowmya/cloudstack-1
f8f779158da056be7da669884ae4ddd109cec044
[ "Apache-2.0" ]
null
null
null
test/integration/component/test_asa1000v_fw.py
ksowmya/cloudstack-1
f8f779158da056be7da669884ae4ddd109cec044
[ "Apache-2.0" ]
1
2019-12-26T07:16:06.000Z
2019-12-26T07:16:06.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
44.218978
177
0.551172
10a7c6d5ad36d9a07821a4e5b70c301030e8d031
4,243
py
Python
pong-server.py
hsubbaraj/pong-demo
dd747a6e25862e4dd0e3e4c553ae31a3f388553b
[ "MIT" ]
null
null
null
pong-server.py
hsubbaraj/pong-demo
dd747a6e25862e4dd0e3e4c553ae31a3f388553b
[ "MIT" ]
null
null
null
pong-server.py
hsubbaraj/pong-demo
dd747a6e25862e4dd0e3e4c553ae31a3f388553b
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import from socketserver import ThreadingMixIn from http.server import BaseHTTPRequestHandler, HTTPServer import mimetypes mimetypes.init() import os import requests from datetime import datetime import logging import json import sys cur_dir = os.path.dirname(os.path.absp...
35.957627
102
0.63917
f5c7978a4bceb8949af73bf64e42a1743ec4117d
8,503
py
Python
app.py
reecestart/SessionManagerTGWControlTower
951c12e261ea46b9c37bfe3064878359e3b47118
[ "MIT" ]
null
null
null
app.py
reecestart/SessionManagerTGWControlTower
951c12e261ea46b9c37bfe3064878359e3b47118
[ "MIT" ]
null
null
null
app.py
reecestart/SessionManagerTGWControlTower
951c12e261ea46b9c37bfe3064878359e3b47118
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from enum import auto from aws_cdk import ( aws_ec2 as ec2, aws_rds as rds, aws_secretsmanager as secretsmanager, aws_iam as iam, aws_autoscaling as autoscaling, aws_glue as glue, core, ) from session_manager_tgw_control_tower.session_manager_tgw_control_tower_stack ...
38.301802
156
0.552628
c006e2459a82b3a12e9d9c2bcea003fa6a6f50fb
15,521
py
Python
tools/accuracy_checker/accuracy_checker/metrics/reid.py
apankratovantonp/open_model_zoo
e372d4173e50741a6828cda415d55c37320f89cd
[ "Apache-2.0" ]
5
2020-03-09T07:39:04.000Z
2021-08-16T07:17:28.000Z
tools/accuracy_checker/accuracy_checker/metrics/reid.py
ananda89/open_model_zoo
e372d4173e50741a6828cda415d55c37320f89cd
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/accuracy_checker/metrics/reid.py
ananda89/open_model_zoo
e372d4173e50741a6828cda415d55c37320f89cd
[ "Apache-2.0" ]
3
2020-07-06T08:45:26.000Z
2020-11-12T10:14:45.000Z
""" Copyright (c) 2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
38.418317
120
0.679918
cef3dfcf89b4c0012921ac579cf9f2950b4180b9
5,535
py
Python
pwncat/target.py
Mitul16/pwncat
b8d7876a9779c2c7796a9a29110d3f1cda721dff
[ "MIT" ]
1,454
2020-05-07T02:20:52.000Z
2022-03-31T21:32:22.000Z
pwncat/target.py
akr3ch/pwncat
d67865bdaac60dd0761d0698062e7b443a62c6db
[ "MIT" ]
187
2020-05-08T06:26:01.000Z
2022-03-07T21:15:29.000Z
pwncat/target.py
akr3ch/pwncat
d67865bdaac60dd0761d0698062e7b443a62c6db
[ "MIT" ]
184
2020-05-07T02:31:58.000Z
2022-03-31T09:11:59.000Z
""" A target is the data structure stored in the ZODB. It contains all enumerated facts, installed implants, unique ID, last remote address identified and other information needed across pwncat sessions to identify or interact with a target. No information in this object is specific to a connection protocol or session....
44.637097
132
0.685456
a2f01771aff7cf5b4fbd1b7f7ea0beddf92a62d0
549
py
Python
bslint/messages/handler.py
alexmakii/bslint
0795467166ca10c362fecc12ac17765cb85b659b
[ "BSD-3-Clause" ]
null
null
null
bslint/messages/handler.py
alexmakii/bslint
0795467166ca10c362fecc12ac17765cb85b659b
[ "BSD-3-Clause" ]
null
null
null
bslint/messages/handler.py
alexmakii/bslint
0795467166ca10c362fecc12ac17765cb85b659b
[ "BSD-3-Clause" ]
1
2017-04-12T09:39:54.000Z
2017-04-12T09:39:54.000Z
import bslint.messages.error_constants as err_const import bslint.messages.print_constants as print_const def get_error_msg(key, params=None): return get_message(key, err_const.MESSAGE_TABLE, params, "") def get_print_msg(key, params=None): return get_message(key, print_const.MESSAGE_TABLE, params, "\n") ...
30.5
68
0.765027
4d0f61d7894d643dc577190297c341ac36ea806e
36,172
py
Python
flexget/manager.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
null
null
null
flexget/manager.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
null
null
null
flexget/manager.py
tvcsantos/Flexget
e08ce2957dd4f0668911d1e56347369939e4d0a5
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import atexit import codecs import copy import fnmatch import logging import os import shutil import signal import sys import threading from contextlib import contextmanager from datetime import datetime, timedelta import pkg_resources...
40.780158
120
0.595488
c37ed6aec9858119f329b590a81bb91d689fd540
3,337
py
Python
cloudframe/manager/builder.py
cloudken/faas-build
ab72151c7a518377f368c10136ecadb3e86430b7
[ "Apache-2.0" ]
null
null
null
cloudframe/manager/builder.py
cloudken/faas-build
ab72151c7a518377f368c10136ecadb3e86430b7
[ "Apache-2.0" ]
null
null
null
cloudframe/manager/builder.py
cloudken/faas-build
ab72151c7a518377f368c10136ecadb3e86430b7
[ "Apache-2.0" ]
null
null
null
from six.moves import http_client from datetime import datetime import logging import os from cloudframe.common import exception from cloudframe.common.config import HostConfig from cloudframe.common.config import get_faas_buildinfo from cloudframe.common.config import FAAS_CONFIG_PATH from cloudframe.common.http_rpc...
38.356322
86
0.603536
6208aedca6f392e06035f826e6922af4bd68bf3a
3,207
py
Python
requests/exceptions.py
hwms/requests
fa3fabc0732980230bae00bd8a30098f0a0bd30f
[ "Apache-2.0" ]
null
null
null
requests/exceptions.py
hwms/requests
fa3fabc0732980230bae00bd8a30098f0a0bd30f
[ "Apache-2.0" ]
3
2020-03-24T18:09:12.000Z
2021-02-02T22:28:25.000Z
requests/exceptions.py
hwms/requests
fa3fabc0732980230bae00bd8a30098f0a0bd30f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. """ from urllib3.exceptions import HTTPError as BaseHTTPError class RequestException(IOError): """There was an ambiguous exception that occurred while handling your request. """ ...
25.251969
84
0.708762
4bfc3af22040261928a63c8e80461d789fbe86d4
19,982
py
Python
processit/preprocessor.py
tatkaal/preprocessor
f3002d976f3cedbb46d96122e47b1d922118abed
[ "MIT" ]
null
null
null
processit/preprocessor.py
tatkaal/preprocessor
f3002d976f3cedbb46d96122e47b1d922118abed
[ "MIT" ]
null
null
null
processit/preprocessor.py
tatkaal/preprocessor
f3002d976f3cedbb46d96122e47b1d922118abed
[ "MIT" ]
null
null
null
# Install this # pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib import os import re import io import unidecode import pickle from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request fr...
38.57529
157
0.590381
b314c31995d4c078e1b65049b12c9366a038b216
5,432
py
Python
src/main.py
gfjiangly/RCNet
ef6860f23943eb8e21fdec565019f2f8eda17673
[ "MIT" ]
null
null
null
src/main.py
gfjiangly/RCNet
ef6860f23943eb8e21fdec565019f2f8eda17673
[ "MIT" ]
null
null
null
src/main.py
gfjiangly/RCNet
ef6860f23943eb8e21fdec565019f2f8eda17673
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import torch import torch.utils.data from opts import opts from models.model import create_model, load_model, save_model from models.data_parallel import DataParallel ...
36.952381
104
0.591863