hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
36b4217be63fc502a7a8b608b61caf14733e4c6e
1,477
py
Python
carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py
OlafOrangi/ros-bridge
732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c
[ "MIT" ]
null
null
null
carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py
OlafOrangi/ros-bridge
732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c
[ "MIT" ]
null
null
null
carla_ros_bridge/src/carla_ros_bridge/coordinate_converter.py
OlafOrangi/ros-bridge
732d5f99e5e1f4d0ea7e4873ccc34f0a40f1203c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from geometry_msgs.msg import Pose, Point, Quaternion, Vector3 import numpy as np import tf def convert_pose(pose): """ convert pose between left and right-hand coordinate system :param pose: pose to be converted :return: converted pose """ data = Pose() data.position...
26.375
74
0.688558
0
0
0
0
0
0
0
0
765
0.517942
36b50824ddb6f2e96f0d94699793a7e9265c44f3
518
py
Python
models/IFR_generalized_SB.py
rileymcmorrow/C-SFRAT
c696942940118172dfb2c3b8cc27b8d2fd5a5a17
[ "MIT" ]
null
null
null
models/IFR_generalized_SB.py
rileymcmorrow/C-SFRAT
c696942940118172dfb2c3b8cc27b8d2fd5a5a17
[ "MIT" ]
3
2021-03-09T16:13:59.000Z
2021-09-20T16:50:07.000Z
models/IFR_generalized_SB.py
rileymcmorrow/C-SFRAT
c696942940118172dfb2c3b8cc27b8d2fd5a5a17
[ "MIT" ]
4
2021-07-20T18:01:12.000Z
2021-11-22T10:13:35.000Z
from core.model import Model class IFR_Generalized_SB(Model): name = "IFR generalized Salvia & Bollinger" shortName = "IFRGSB" # initial parameter estimates beta0 = 0.01 parameterEstimates = (0.1, 0.1) def hazardSymbolic(self, i, args): # args -> (c, alpha) f = 1...
24.666667
50
0.525097
482
0.930502
0
0
0
0
0
0
116
0.223938
36b666e75f8d2123fc2f466527229d2f55e94174
1,263
py
Python
TrendTrading/ProbModel/CheckScripts/updated market indicator.py
benjabee10/WKUResearch
5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97
[ "MIT" ]
null
null
null
TrendTrading/ProbModel/CheckScripts/updated market indicator.py
benjabee10/WKUResearch
5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97
[ "MIT" ]
null
null
null
TrendTrading/ProbModel/CheckScripts/updated market indicator.py
benjabee10/WKUResearch
5cc384c0e0c1afc82c38a9e6eb63b80c85af7c97
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import talib big= 200 small= 50 threshold=0.02 #context.market (shortperiod, longperiod): #Market Values= 0-negative, 1-no trend, 2-positive def initialize(context): context.spy= sid(8554) schedule_function(check) def check(context, data): spydata= data.histo...
25.26
61
0.639747
0
0
0
0
0
0
0
0
104
0.082344
36b8262c6d34969be77ba59f989410637bf778e2
6,097
py
Python
google_drive_online_decompression.py
xunyixiangchao/Google-Drive-Online-Decompression
02121e3c25ad0ef3ceb0652a4a4e16f803e8463a
[ "Apache-2.0" ]
null
null
null
google_drive_online_decompression.py
xunyixiangchao/Google-Drive-Online-Decompression
02121e3c25ad0ef3ceb0652a4a4e16f803e8463a
[ "Apache-2.0" ]
null
null
null
google_drive_online_decompression.py
xunyixiangchao/Google-Drive-Online-Decompression
02121e3c25ad0ef3ceb0652a4a4e16f803e8463a
[ "Apache-2.0" ]
1
2021-06-04T16:08:35.000Z
2021-06-04T16:08:35.000Z
# -*- coding: utf-8 -*- """Google_Drive_Online_Decompression.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/16e0tv3LEkAFaYHmKH2H63Cg6rpCNWFky # **第一步 绑定GoogleDrive** """ #@markdown 点击左侧按钮,授权绑定GoogleDrive from google.colab import drive drive.mo...
23.360153
102
0.657865
0
0
0
0
0
0
0
0
7,385
0.885598
36b8b92109f8c9655104ce9dade2ed763cbf2735
678
py
Python
hackerearth/Algorithms/A plane journey/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/A plane journey/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/A plane journey/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here n, m = map(int, input().strip().split()) a ...
26.076923
94
0.538348
0
0
0
0
0
0
0
0
274
0.40413
36b8bfd65b80b877d57938c5b868d8f66abde496
65
py
Python
ml/av/io/__init__.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
1
2022-02-21T21:06:29.000Z
2022-02-21T21:06:29.000Z
ml/av/io/__init__.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
ml/av/io/__init__.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
"""APIs from ml.vision.io and ml.audio.io """ from .api import *
16.25
41
0.661538
0
0
0
0
0
0
0
0
45
0.692308
36b8ccb8c50334dfa92a74050719c2548bf9dec4
738
py
Python
addon.py
codingPF/plugin.video.newsApp
64f7c3e2e742cef5cd7c3303e2ffb3ec07771476
[ "MIT" ]
null
null
null
addon.py
codingPF/plugin.video.newsApp
64f7c3e2e742cef5cd7c3303e2ffb3ec07771476
[ "MIT" ]
null
null
null
addon.py
codingPF/plugin.video.newsApp
64f7c3e2e742cef5cd7c3303e2ffb3ec07771476
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The main addon module SPDX-License-Identifier: MIT """ # -- Imports ------------------------------------------------ import xbmcaddon import resources.lib.appContext as appContext import resources.lib.settings as Settings import resources.lib.logger as Logger import resources.lib.main as ...
29.52
129
0.647696
0
0
0
0
0
0
0
0
228
0.308943
36ba21d593e601f39648ce3de11ea90f9d215efd
6,226
py
Python
bfgame/components/equipment.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bfgame/components/equipment.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bfgame/components/equipment.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib import units from core import contexts from core.components import Component, listing from core.messaging import StringBuilder, Actor, Target, Verb @listing.register class Equipment(Component): NAME = "equipment" __slots__ = ["armor_restrictions", "weapon_restrictions", "weapon_size_restrictions", ...
37.506024
115
0.625442
6,046
0.971089
0
0
6,064
0.97398
0
0
362
0.058143
36ba65041a866ce133db66a746c7905283d02484
544
py
Python
students/K33402/Shuginin_Yurii/LR2/homework_board/board_app/urls.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
null
null
null
students/K33402/Shuginin_Yurii/LR2/homework_board/board_app/urls.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
null
null
null
students/K33402/Shuginin_Yurii/LR2/homework_board/board_app/urls.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
1
2022-03-19T09:24:42.000Z
2022-03-19T09:24:42.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.StartPageView.as_view()), path('accounts/created/', views.NotificationView.as_view()), path('accounts/<int:pk>/update/', views.StudentUpdate.as_view()), path('profile/', views.ProfilePageView.as_view()), path('profile/a...
38.857143
69
0.71875
0
0
0
0
0
0
0
0
161
0.295956
36bbde81383cafa0b00f9d5defddc4acebc151af
4,478
py
Python
tests/enviroments_test/test_environments.py
DKE-Data/agrirouter-sdk-python
6d6b26606f7d424c62289af56da55acf412772fc
[ "Apache-2.0" ]
null
null
null
tests/enviroments_test/test_environments.py
DKE-Data/agrirouter-sdk-python
6d6b26606f7d424c62289af56da55acf412772fc
[ "Apache-2.0" ]
null
null
null
tests/enviroments_test/test_environments.py
DKE-Data/agrirouter-sdk-python
6d6b26606f7d424c62289af56da55acf412772fc
[ "Apache-2.0" ]
null
null
null
"""Test agrirouter/environments/environments.py""" from agrirouter.environments.environments import ProductionEnvironment as PE from agrirouter.environments.environments import QAEnvironment as QAE from tests.constants import application_id class TestPE: def test_get_base_url(self): assert PE().get_base_...
42.245283
143
0.712818
4,230
0.944618
0
0
0
0
0
0
629
0.140464
36bbe5261935347fbb62f2ff569d538d41679679
556
py
Python
foursquare/tests/test_lang.py
milind-shakya-sp/foursquare
1df90777f9b86d8247e8d79e7fbe8e88c8cdd467
[ "MIT" ]
1
2019-06-10T21:12:01.000Z
2019-06-10T21:12:01.000Z
foursquare/tests/test_lang.py
milind-shakya-sp/foursquare
1df90777f9b86d8247e8d79e7fbe8e88c8cdd467
[ "MIT" ]
null
null
null
foursquare/tests/test_lang.py
milind-shakya-sp/foursquare
1df90777f9b86d8247e8d79e7fbe8e88c8cdd467
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # (c) 2016 Mike Lewis import logging; log = logging.getLogger(__name__) from . import MultilangEndpointTestCase class MultiLangTestCase(MultilangEndpointTestCase): """ General """ def test_lang(self): """Test a wide swath of languages""" ...
27.8
85
0.652878
393
0.706835
0
0
0
0
0
0
210
0.377698
36bc7e0436f464b768c92e41f855171401f6f554
4,923
py
Python
src/tests/model_deployment_tests.py
vravisrpi/mlops-vertex
0944b22996a5405f64d7ae162bd2427ffd81884d
[ "Apache-2.0" ]
null
null
null
src/tests/model_deployment_tests.py
vravisrpi/mlops-vertex
0944b22996a5405f64d7ae162bd2427ffd81884d
[ "Apache-2.0" ]
null
null
null
src/tests/model_deployment_tests.py
vravisrpi/mlops-vertex
0944b22996a5405f64d7ae162bd2427ffd81884d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.557692
95
0.672354
0
0
0
0
0
0
0
0
4,535
0.921186
36bd2fc4cc690280e24a0e546825f3792edd1b9b
266
py
Python
noxfile.py
aodag/asbool
1c5d74c9b2f641a3452c1e7118a4a83ffe665ab5
[ "MIT" ]
8
2015-11-20T01:20:13.000Z
2021-02-20T04:24:08.000Z
noxfile.py
aodag/asbool
1c5d74c9b2f641a3452c1e7118a4a83ffe665ab5
[ "MIT" ]
2
2020-12-08T05:16:48.000Z
2021-02-16T11:12:06.000Z
noxfile.py
aodag/asbool
1c5d74c9b2f641a3452c1e7118a4a83ffe665ab5
[ "MIT" ]
null
null
null
import nox nox.options.sessions = ["test"] @nox.session def test(session): session.install("-e", ".[testing]") session.run("pytest") @nox.session def pack(session): session.install("build") session.run("python", "-m", "build", ".")
17.733333
45
0.593985
0
0
0
0
209
0.785714
0
0
59
0.221805
36bdb06f6f3497fa1d06a8cb17f94061f6766f18
9,085
py
Python
selectGoodFeatures.py
TimSC/PyFeatureTrack
11668181e56fb9472a0c8db291c88546e7fae0cf
[ "BSD-2-Clause" ]
33
2015-02-24T18:23:11.000Z
2022-03-08T09:55:02.000Z
selectGoodFeatures.py
Nestart/PyFeatureTrack
11668181e56fb9472a0c8db291c88546e7fae0cf
[ "BSD-2-Clause" ]
1
2017-03-08T21:07:33.000Z
2017-06-04T21:58:01.000Z
selectGoodFeatures.py
Nestart/PyFeatureTrack
11668181e56fb9472a0c8db291c88546e7fae0cf
[ "BSD-2-Clause" ]
15
2016-06-29T08:55:58.000Z
2020-06-04T03:01:39.000Z
from __future__ import print_function import math, numpy as np from PIL import Image from klt import * from error import * from convolve import * from klt_util import * import goodFeaturesUtils class selectionMode: SELECTING_ALL = 1 REPLACING_SOME = 2 KLT_verbose = 1 #**********************************************...
30.692568
128
0.681233
59
0.006494
0
0
0
0
0
0
3,869
0.425867
36be052ecd5aed78815486dfc598f4e2ff2a749d
3,345
py
Python
pysparsdr/pySparSDR.py
ucsdwcsng/pySparSDR
6622fce9c75b180b8601d9deecafff401e6a4d9f
[ "Apache-2.0" ]
null
null
null
pysparsdr/pySparSDR.py
ucsdwcsng/pySparSDR
6622fce9c75b180b8601d9deecafff401e6a4d9f
[ "Apache-2.0" ]
null
null
null
pysparsdr/pySparSDR.py
ucsdwcsng/pySparSDR
6622fce9c75b180b8601d9deecafff401e6a4d9f
[ "Apache-2.0" ]
null
null
null
#/bin/python3 import numpy as np from scipy import signal as sig class pySparSDRCompress(): ''' Implementation of the SparSDR Compressor based on Khazraee, M., Guddeti, Y., Crow, S., Snoeren, A.C., Levchenko, K., Bharadia, D. and Schulman, A., 2019, June. Sparsdr: Sparsity-proportional backhaul and comp...
37.166667
295
0.635277
3,277
0.979671
0
0
0
0
0
0
1,387
0.414649
36bf9270f81abe8f83096f56129e26e2554011cc
803
py
Python
dirtyclean/tests/test_dirtyclean.py
paultopia/dirtyclean
1b93b29e070b53afede22ff28497fd68f28d0326
[ "MIT" ]
2
2017-12-04T16:58:57.000Z
2021-03-02T04:59:54.000Z
dirtyclean/tests/test_dirtyclean.py
paultopia/dirtyclean
1b93b29e070b53afede22ff28497fd68f28d0326
[ "MIT" ]
null
null
null
dirtyclean/tests/test_dirtyclean.py
paultopia/dirtyclean
1b93b29e070b53afede22ff28497fd68f28d0326
[ "MIT" ]
null
null
null
from dirtyclean import clean import unittest class TestDirtyClean(unittest.TestCase): def setUp(self): self.uglystring = " st—up•id ‘char−ac ter..s’, in its’ string...”Ç " with open("multiline.txt") as mt: self.multiline = mt.read() def test_basic_clean(self): self.ass...
33.458333
124
0.617684
771
0.940244
0
0
0
0
0
0
264
0.321951
36bfb2d78d16ac861521aa10b4dcdbc76d656637
1,321
py
Python
findNearestControl.py
petrarch1603/SurveyApplications
129a4e24123bf81687c0a60cccbe3d0a83f63e40
[ "MIT" ]
1
2019-08-24T20:29:05.000Z
2019-08-24T20:29:05.000Z
findNearestControl.py
petrarch1603/SurveyApplications
129a4e24123bf81687c0a60cccbe3d0a83f63e40
[ "MIT" ]
null
null
null
findNearestControl.py
petrarch1603/SurveyApplications
129a4e24123bf81687c0a60cccbe3d0a83f63e40
[ "MIT" ]
null
null
null
import csv control = "/Users/patrickmcgranaghan1/Documents/Python/python_work/SurveyApplications/source_data/control.csv" set_points = "/Users/patrickmcgranaghan1/Documents/Python/python_work/SurveyApplications/source_data/setPoints.csv" max_hypotenuse = 200 # Integer in feet # Note in the State Plane Coordinate Sys...
48.925926
115
0.650265
0
0
0
0
0
0
0
0
516
0.390613
36c07f8de0ab1e4bb4abec5686212164de45b5a1
2,118
py
Python
stac_compose/collections/controller.py
dgi-catalog/stac-compose
1cae4a58fcfb36082c203db3c99e2779fc207400
[ "MIT" ]
null
null
null
stac_compose/collections/controller.py
dgi-catalog/stac-compose
1cae4a58fcfb36082c203db3c99e2779fc207400
[ "MIT" ]
14
2021-03-01T20:59:20.000Z
2021-11-24T19:14:49.000Z
stac_compose/collections/controller.py
dgi-catalog/stac-compose
1cae4a58fcfb36082c203db3c99e2779fc207400
[ "MIT" ]
null
null
null
from json import dumps from pprint import PrettyPrinter from cerberus.validator import Validator from flask import request from flask_restx import Resource from werkzeug.exceptions import BadRequest from stac_compose.collections import ns as api from stac_compose.collections.business import CollectionsBusiness from s...
29.830986
92
0.715297
1,399
0.660529
0
0
1,437
0.67847
0
0
460
0.217186
36c20378107325500044b16060b5655f3ad7826c
6,070
py
Python
python/tvm/auto_scheduler/workload_registry.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
2
2020-07-07T07:38:45.000Z
2021-06-02T07:08:09.000Z
python/tvm/auto_scheduler/workload_registry.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
1
2020-07-29T07:29:17.000Z
2020-07-29T07:29:17.000Z
python/tvm/auto_scheduler/workload_registry.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
1
2021-07-03T08:09:32.000Z
2021-07-03T08:09:32.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...
31.614583
99
0.682208
0
0
0
0
633
0.104283
0
0
4,065
0.669687
36c26ea8b70af852028240a4c83a673def2fbdd3
485
py
Python
main/xrandr/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/xrandr/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/xrandr/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
pkgname = "xrandr" pkgver = "1.5.1" pkgrel = 0 build_style = "gnu_configure" hostmakedepends = ["pkgconf"] makedepends = ["libxrandr-devel"] pkgdesc = "Command line interface to X RandR extension" maintainer = "q66 <[email protected]>" license = "MIT" url = "https://xorg.freedesktop.org" source = f"$(XORG_SITE)/app...
30.3125
75
0.748454
0
0
0
0
0
0
0
0
285
0.587629
36c29207131a5d0aabb533544ef1349cab67ea61
2,477
py
Python
src/arch/riscv/RiscvCPU.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T13:18:26.000Z
2022-03-25T13:18:26.000Z
src/arch/riscv/RiscvCPU.py
yclin99/CS251A_final_gem5
391ca1d7c9484f4d58fce9a4424821dcbb2463ac
[ "BSD-3-Clause" ]
1
2022-03-25T14:15:30.000Z
2022-03-25T14:15:30.000Z
src/arch/riscv/RiscvCPU.py
ksco/gem5-xiangshan
0baf1b5229885d81d689a677102f0665aaac5514
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # redistribu...
44.232143
72
0.805006
498
0.20105
0
0
0
0
0
0
1,467
0.592249
36c4f0d8dd30675016f1cde8a4e0b430d5e215ed
164
py
Python
misc/validateInput.py
viju4you/Python
3c4a3a46265e71fc21da62d2cb204d20dcd9ec62
[ "CC0-1.0" ]
110
2017-03-11T23:37:46.000Z
2021-07-12T11:51:32.000Z
misc/validateInput.py
viju4you/Python
3c4a3a46265e71fc21da62d2cb204d20dcd9ec62
[ "CC0-1.0" ]
null
null
null
misc/validateInput.py
viju4you/Python
3c4a3a46265e71fc21da62d2cb204d20dcd9ec62
[ "CC0-1.0" ]
52
2016-11-27T19:50:40.000Z
2022-02-09T06:37:24.000Z
# Validate input while True: print('Enter your age:') age = input() if age.isdecimal(): break print('Pleas enter a number for your age.')
16.4
47
0.597561
0
0
0
0
0
0
0
0
69
0.420732
36c5772cb7b021a7fd6965ba28a4663832c436d3
1,003
py
Python
ckan/migration/versions/041_resource_new_fields.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
12
2015-08-28T16:59:07.000Z
2020-03-08T01:39:30.000Z
ckan/migration/versions/041_resource_new_fields.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
13
2019-05-02T21:01:28.000Z
2020-10-20T23:34:48.000Z
ckan/migration/versions/041_resource_new_fields.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
10
2015-05-08T04:33:20.000Z
2020-03-03T15:17:58.000Z
from migrate import * def upgrade(migrate_engine): migrate_engine.execute( ''' begin; ALTER TABLE resource ADD COLUMN name text, ADD COLUMN resource_type text, ADD COLUMN mimetype text, ADD COLUMN mimetype_inner text, ADD COLUMN "size" bigint, ADD COLUMN last_modified timestamp ...
30.393939
65
0.731805
0
0
0
0
0
0
0
0
912
0.909272
36c6dd4f5d4854726c666ad63dd36dff26b82159
1,153
py
Python
src/train_model.py
hzdr/dvc_tutorial_series
f53eee599cc05e2c2ea31f6e2fd567a4ac3061a3
[ "BSD-3-Clause" ]
2
2021-06-24T13:39:39.000Z
2022-02-27T13:35:02.000Z
src/train_model.py
hzdr/dvc_tutorial_series
f53eee599cc05e2c2ea31f6e2fd567a4ac3061a3
[ "BSD-3-Clause" ]
null
null
null
src/train_model.py
hzdr/dvc_tutorial_series
f53eee599cc05e2c2ea31f6e2fd567a4ac3061a3
[ "BSD-3-Clause" ]
null
null
null
import pickle import pandas as pd import yaml from sklearn.linear_model import ElasticNet, LogisticRegression from sklearn.ensemble import RandomForestRegressor from config import Config Config.MODELS_PATH.mkdir(parents=True, exist_ok=True) with open ("params.yaml", "r") as fd: params = yaml.safe_load(fd) model...
28.825
75
0.743278
0
0
0
0
0
0
0
0
222
0.192541
36c6fc43e8d2fdc269e708e857550cc5862aa1c5
8,226
py
Python
opentracing/harness/api_check.py
autocracy/opentracing-python
ac45df0c39b4cce8e6e6ca40dedc2b9f6c388328
[ "MIT" ]
null
null
null
opentracing/harness/api_check.py
autocracy/opentracing-python
ac45df0c39b4cce8e6e6ca40dedc2b9f6c388328
[ "MIT" ]
null
null
null
opentracing/harness/api_check.py
autocracy/opentracing-python
ac45df0c39b4cce8e6e6ca40dedc2b9f6c388328
[ "MIT" ]
null
null
null
# Copyright (c) 2016 The OpenTracing Authors. # # 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, pub...
39.358852
79
0.612205
7,003
0.851325
0
0
0
0
0
0
2,499
0.303793
36c93b1ef9b9eeb9b865aada75df7cf42d64021f
29,950
py
Python
Colab/vision_transformer_dogs_and_cats_python_generator.py
Thanusan19/Vision_Transformer
80179d57e617ef6cd9599de93c7c7633f891f9a9
[ "Apache-2.0" ]
1
2021-07-02T13:55:11.000Z
2021-07-02T13:55:11.000Z
Colab/vision_transformer_dogs_and_cats_python_generator.py
Thanusan19/Vision_Transformer
80179d57e617ef6cd9599de93c7c7633f891f9a9
[ "Apache-2.0" ]
null
null
null
Colab/vision_transformer_dogs_and_cats_python_generator.py
Thanusan19/Vision_Transformer
80179d57e617ef6cd9599de93c7c7633f891f9a9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Vision Transformer Dogs and Cats Python Generator Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/12u7r2OMkt_rFmOQq2g5FtX7Z0EbyPYFN See code at https://github.com/google-research/vision_transformer/ See paper at https://arxi...
38.007614
1,046
0.67576
4,425
0.147638
1,047
0.034933
0
0
0
0
13,541
0.451788
36c9545921e82accc771994b4028870845e16cb0
19,349
py
Python
tests/test_cli.py
jameswilkerson/elex
27733e3c473fef48676f8bdd56247bee49ad32ea
[ "Apache-2.0" ]
183
2015-11-25T15:13:47.000Z
2022-01-07T23:02:36.000Z
tests/test_cli.py
jameswilkerson/elex
27733e3c473fef48676f8bdd56247bee49ad32ea
[ "Apache-2.0" ]
198
2015-11-24T16:48:48.000Z
2020-10-26T10:38:56.000Z
tests/test_cli.py
jameswilkerson/elex
27733e3c473fef48676f8bdd56247bee49ad32ea
[ "Apache-2.0" ]
65
2015-12-03T21:29:38.000Z
2021-08-10T20:03:49.000Z
import csv import sys import json import tests try: from cStringIO import StringIO except ImportError: from io import StringIO from six import with_metaclass from elex.cli.app import ElexApp from collections import OrderedDict DATA_FILE = 'tests/data/20151103_national.json' DATA_ELECTION_DATE = '2015-11-03' DE...
33.826923
80
0.567213
18,662
0.964494
0
0
0
0
0
0
3,913
0.202233
36cad5c25faaf8cf1d768a98197ce4f6fa877fa3
4,321
py
Python
unipipeline/worker/uni_worker_consumer.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
null
null
null
unipipeline/worker/uni_worker_consumer.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
1
2021-09-14T13:08:13.000Z
2021-09-14T13:08:13.000Z
unipipeline/worker/uni_worker_consumer.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
null
null
null
from typing import TypeVar, Generic, Optional, Type, Any, Union, Dict, TYPE_CHECKING from unipipeline.errors.uni_payload_error import UniPayloadParsingError, UniAnswerPayloadParsingError from unipipeline.errors.uni_sending_to_worker_error import UniSendingToWorkerError from unipipeline.answer.uni_answer_message import...
61.728571
207
0.765564
3,143
0.727378
0
0
0
0
0
0
428
0.099051
36cae8cc11223214274fe92b0ac8c6515461f9fe
1,825
py
Python
funing/_ui/about.py
larryw3i/Funing
8ef88af8766f0246614517fa00f3b322ba722d6b
[ "MIT" ]
1
2021-08-22T05:56:09.000Z
2021-08-22T05:56:09.000Z
funing/_ui/about.py
larryw3i/Funing
8ef88af8766f0246614517fa00f3b322ba722d6b
[ "MIT" ]
null
null
null
funing/_ui/about.py
larryw3i/Funing
8ef88af8766f0246614517fa00f3b322ba722d6b
[ "MIT" ]
null
null
null
import gettext import os import re import subprocess import sys import time import tkinter as tk import tkinter.filedialog as tkf import uuid import webbrowser from datetime import date, datetime from enum import Enum from tkinter import * from tkinter import messagebox from tkinter.ttk import * import cv2 import num...
23.397436
73
0.656438
1,340
0.734247
0
0
0
0
0
0
142
0.077808
36cd33528502d61cfd130bce552b6359665140f3
8,039
py
Python
pysnmp-with-texts/Fore-Common-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Fore-Common-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Fore-Common-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Fore-Common-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Fore-Common-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:14:34 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
73.752294
1,461
0.707302
1,520
0.189078
0
0
0
0
0
0
1,271
0.158104
36d0e1753fba4845d6f1c53b001fd0c1077f6cbc
2,753
py
Python
lib/logger.py
YahiaKandeel/ironport-correlator
cb426f412dba403f056c40eef631f0c252eada08
[ "Apache-2.0" ]
6
2019-10-28T01:18:51.000Z
2022-01-26T11:43:14.000Z
lib/logger.py
YahiaKandeel/ironport-correlator
cb426f412dba403f056c40eef631f0c252eada08
[ "Apache-2.0" ]
null
null
null
lib/logger.py
YahiaKandeel/ironport-correlator
cb426f412dba403f056c40eef631f0c252eada08
[ "Apache-2.0" ]
2
2020-04-30T11:17:27.000Z
2021-11-17T02:26:48.000Z
################################################################################ # Styler & Logger ################################################################################ from logging.handlers import SysLogHandler import logging import json import pprint import time from .decoder import decode import collectio...
27.808081
81
0.564475
0
0
0
0
0
0
0
0
1,014
0.368325
36d148c1ce0bdea8709582045309f0f2acad2b33
954
py
Python
services/web/apps/inv/inv/plugins/log.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
services/web/apps/inv/inv/plugins/log.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
services/web/apps/inv/inv/plugins/log.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # inv.inv log plugin # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NOC modules ...
28.909091
71
0.336478
603
0.632075
0
0
0
0
0
0
420
0.440252
36d22a39c7974086f08155ff6bf52d3cb2267f62
574
py
Python
blender/arm/logicnode/transform/LN_separate_quaternion.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_separate_quaternion.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
blender/arm/logicnode/transform/LN_separate_quaternion.py
niacdoial/armory
3f9b633fbf772017c576a3f77695a6c28d9956e1
[ "Zlib" ]
null
null
null
from arm.logicnode.arm_nodes import * class SeparateQuaternionNode(ArmLogicTreeNode): """TO DO.""" bl_idname = 'LNSeparateQuaternionNode' bl_label = "Separate Quaternion" arm_section = 'quaternions' arm_version = 1 def init(self, context): super(SeparateQuaternionNode, self).init(cont...
31.888889
57
0.679443
533
0.928571
0
0
0
0
0
0
182
0.317073
36d3212ee65298917f85198d847d449f780e78c7
3,110
py
Python
tools/exporter_python/exporter.py
moriyalb/hades
ea2743a23022f65b3931eb482b6ec18804410ba3
[ "MIT" ]
5
2018-05-18T10:01:46.000Z
2021-08-18T13:59:47.000Z
tools/exporter_python/exporter.py
moriyalb/hades
ea2743a23022f65b3931eb482b6ec18804410ba3
[ "MIT" ]
null
null
null
tools/exporter_python/exporter.py
moriyalb/hades
ea2743a23022f65b3931eb482b6ec18804410ba3
[ "MIT" ]
null
null
null
import getopt import sys import os import schema import server import orm CLIENT_TYPE = { '--client_lua_path' : "lua", '--client_cs_path' : "cs", '--client_cpp_path' : "cpp", '--client_js_path' : "js", '--client_python_path' : "python", } def export(): opts, args = getopt.getopt(sys.argv[...
31.734694
104
0.684566
0
0
0
0
0
0
0
0
1,781
0.503392
36d456418e0f32038550bac5f2b5a0f1d2148fc5
707
py
Python
python/python project/te330.py
WhitePhosphorus4/xh-learning-code
025e31500d9f46d97ea634d7fd311c65052fd78e
[ "Apache-2.0" ]
null
null
null
python/python project/te330.py
WhitePhosphorus4/xh-learning-code
025e31500d9f46d97ea634d7fd311c65052fd78e
[ "Apache-2.0" ]
null
null
null
python/python project/te330.py
WhitePhosphorus4/xh-learning-code
025e31500d9f46d97ea634d7fd311c65052fd78e
[ "Apache-2.0" ]
null
null
null
import wx class App(wx.App): def OnInit(self): self.locale = wx.Locale(wx.LANGUAGE_CHINESE) return 1 def A(evt): print("hello") f.Maximize() def B(evt): b.SetBackgroundColour("#FFFFFF") def C(evt): b.SetBackgroundColour("#EFEFEF") app = App() f = wx.Frame(None, -1, "Hello", [700, 500]) wx...
27.192308
85
0.666195
107
0.151344
0
0
0
0
0
0
194
0.274399
36d4d897387b020fc8db80ecfcfac7847d28fc17
2,048
py
Python
examples/sneswii2gamepad/code.py
dglaude/CircuitPython_Joystic_Controller
a9ef8855b9be457b25c9a436fcbbf6aebe39b4e9
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
examples/sneswii2gamepad/code.py
dglaude/CircuitPython_Joystic_Controller
a9ef8855b9be457b25c9a436fcbbf6aebe39b4e9
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
examples/sneswii2gamepad/code.py
dglaude/CircuitPython_Joystic_Controller
a9ef8855b9be457b25c9a436fcbbf6aebe39b4e9
[ "Unlicense", "MIT-0", "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # You must add a gamepad HID device inside your boot.py file # in order to use this example. # See this Learn Guide for details: # https://learn.adafruit.com/customizing-usb-devices-in-circuitpython/hid-devices#custom-hid-dev...
23.54023
110
0.605957
0
0
0
0
0
0
0
0
740
0.361328
36d54bbaca57e4631b154f3ca77d029d7fd103ad
3,345
py
Python
spleeter/util.py
ashirviskas/spleeter-pytorch
853d4bb6048fae879543342a8278c298854637f3
[ "MIT" ]
28
2019-11-29T10:23:16.000Z
2022-03-28T13:02:29.000Z
spleeter/util.py
ashirviskas/spleeter-pytorch
853d4bb6048fae879543342a8278c298854637f3
[ "MIT" ]
2
2020-05-07T04:07:50.000Z
2020-07-13T02:40:41.000Z
spleeter/util.py
ashirviskas/spleeter-pytorch
853d4bb6048fae879543342a8278c298854637f3
[ "MIT" ]
6
2020-05-31T08:23:56.000Z
2022-02-22T16:38:19.000Z
import numpy as np import tensorflow as tf from .unet import UNet def tf2pytorch(checkpoint_path, num_instrumments): tf_vars = {} init_vars = tf.train.list_variables(checkpoint_path) # print(init_vars) for name, shape in init_vars: try: # print('Loading TF Weight {} with shape {}'...
36.358696
88
0.529746
0
0
0
0
0
0
0
0
828
0.247534
36d54c415ce82d548b3b02e02ceb85813202d7ef
1,920
py
Python
SDEprocesses/explicit.py
PyPaperParrot/pystoch
14d1dbeefaeb3696378e0db6e565347df87a02bc
[ "MIT" ]
1
2019-06-06T13:53:51.000Z
2019-06-06T13:53:51.000Z
SDEprocesses/explicit.py
PyPaperParrot/pystoch
14d1dbeefaeb3696378e0db6e565347df87a02bc
[ "MIT" ]
null
null
null
SDEprocesses/explicit.py
PyPaperParrot/pystoch
14d1dbeefaeb3696378e0db6e565347df87a02bc
[ "MIT" ]
null
null
null
import numpy as np import exceptions as ex def LogWalk(T, nSteps, mu, sigma, x_0=1, t_0=0, boundary=500): ex._check_params(T, nSteps, t_0) dt = T/(10*nSteps) x_t = [] t = t_0 for i in range((10*nSteps)): x = x_0*np.exp((mu - sigma**2/2)*t + sigma*np.random.randn()*np.sqrt(t)) if ...
34.285714
207
0.611458
0
0
0
0
0
0
0
0
574
0.293007
36d5db401ea4ab6c6ef162a66fa84ae2937cecdb
3,847
py
Python
oscontainer/cgroup_v2_subsystem.py
Lothiraldan/oscontainer
140504711372494f919b4de7bf84e80d11013fa0
[ "MIT" ]
null
null
null
oscontainer/cgroup_v2_subsystem.py
Lothiraldan/oscontainer
140504711372494f919b4de7bf84e80d11013fa0
[ "MIT" ]
null
null
null
oscontainer/cgroup_v2_subsystem.py
Lothiraldan/oscontainer
140504711372494f919b4de7bf84e80d11013fa0
[ "MIT" ]
null
null
null
import math from oscontainer.constants import CGROUP_TYPE_V2, PER_CPU_SHARES, NO_LIMIT from oscontainer.cgroup_subsystem import CgroupController, CgroupSubsystem from oscontainer.utils import limit_from_str CPU_WEIGHT = "cpu.weight" CPU_MAX = "cpu.max" CPU_CPUSET_CPUS = "cpuset.cpus" CPU_CPUSET_CPUS_EFFECTIVE = "cpus...
34.044248
102
0.641279
3,442
0.894723
0
0
144
0.037432
0
0
1,092
0.283858
36d6b30d341d10b3fc5496de476fb8b78f692188
460
py
Python
openapi/tests/matchers.py
suihanki/openapi
c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0
[ "Apache-2.0" ]
25
2016-08-09T18:40:42.000Z
2019-07-15T20:37:13.000Z
openapi/tests/matchers.py
suihanki/openapi
c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0
[ "Apache-2.0" ]
5
2016-08-16T18:34:44.000Z
2020-03-24T21:01:26.000Z
openapi/tests/matchers.py
suihanki/openapi
c67ee4ec0284bc1da5bda2c6b8497d6a33bb69a0
[ "Apache-2.0" ]
11
2016-09-14T09:12:49.000Z
2020-01-31T19:27:07.000Z
""" Custom hamcrest matchers. """ from hamcrest.core.base_matcher import BaseMatcher from json import dumps, loads class JSONMatcher(BaseMatcher): """ Match JSON content. """ def __init__(self, s): self.json = loads(s) def _matches(self, item): return loads(item) == self.json ...
18.4
70
0.671739
312
0.678261
0
0
0
0
0
0
76
0.165217
36d743457c72e522cd69762028d8c4a8aaf9d131
2,741
py
Python
build-container/docxify3.py
signaux-faibles/datapi
296ee922dc47eea4176f5c7bdde35c218bf9c817
[ "MIT" ]
null
null
null
build-container/docxify3.py
signaux-faibles/datapi
296ee922dc47eea4176f5c7bdde35c218bf9c817
[ "MIT" ]
31
2020-04-23T11:29:16.000Z
2021-06-23T05:45:08.000Z
build-container/docxify3.py
signaux-faibles/datapi
296ee922dc47eea4176f5c7bdde35c218bf9c817
[ "MIT" ]
null
null
null
# coding: utf-8 import sys import json from mailmerge import MailMerge # Le template contient à ce jour les champs : # auteur l'auteur du document # date_edition la date d'édition du document # confidentialite le destinataire du document # raison_sociale la raison sociale de l'entreprise # siret le numéro de SIRET de ...
38.069444
108
0.785845
0
0
0
0
0
0
0
0
1,910
0.689033
36d88c360c0960445e0699b390c5bc46416d33e6
406
py
Python
super32assembler/super32assembler/preprocessor/asmdirectives.py
Projektstudium-Mikroprozessor/Super32
d502d2d5885ac0408d06e57e0f5a67fe2a2fee15
[ "BSD-3-Clause" ]
1
2019-12-07T01:56:31.000Z
2019-12-07T01:56:31.000Z
super32assembler/super32assembler/preprocessor/asmdirectives.py
Projektstudium-Mikroprozessor/Super32
d502d2d5885ac0408d06e57e0f5a67fe2a2fee15
[ "BSD-3-Clause" ]
42
2020-05-15T10:39:30.000Z
2020-08-30T10:59:43.000Z
super32assembler/preprocessor/asmdirectives.py
xsjad0/Super32
75cf5828b17cdbce144447a69ff3d1be7ad601f2
[ "BSD-3-Clause" ]
4
2019-11-27T15:05:33.000Z
2020-05-13T06:51:21.000Z
""" Enum Assembler-Directives """ from enum import Enum, auto class AssemblerDirectives(Enum): START = auto() END = auto() ORG = auto() DEFINE = auto() @classmethod def to_string(cls): return "{START},{END},{ORG},{DEFINE}".format( START=cls.START.name, END=cls...
18.454545
53
0.549261
340
0.837438
0
0
229
0.564039
0
0
63
0.155172
36d90f9194a3f4a5adea321bf4cf9176ed0ded59
250
py
Python
Wyklad/OOP/Sheep.py
tborzyszkowski/PythonWorld
dc776d3ab4569297b6b6681e4390aeedf1262c78
[ "MIT" ]
3
2019-02-24T07:49:33.000Z
2022-01-09T11:27:21.000Z
Wyklad/OOP/Sheep.py
tborzyszkowski/PythonWorld
dc776d3ab4569297b6b6681e4390aeedf1262c78
[ "MIT" ]
null
null
null
Wyklad/OOP/Sheep.py
tborzyszkowski/PythonWorld
dc776d3ab4569297b6b6681e4390aeedf1262c78
[ "MIT" ]
17
2018-12-09T08:44:52.000Z
2022-01-25T15:08:04.000Z
from Animal import Animal class Sheep(Animal): def __init__(self, sheep=None, position=None): super(Sheep, self).__init__(sheep, position) def clone(self): return Sheep(self, None) def initParams(self): self.power = 3 self.sign = 'S'
16.666667
47
0.704
221
0.884
0
0
0
0
0
0
3
0.012
36da2c9e737689743389837a193464187fe5262e
154
py
Python
Python/WSClock/Page.py
Camiloasc1/OperativeSystemsUNAL
a07bfc235789b7a8848280a549a6b2c9602e61b5
[ "MIT" ]
null
null
null
Python/WSClock/Page.py
Camiloasc1/OperativeSystemsUNAL
a07bfc235789b7a8848280a549a6b2c9602e61b5
[ "MIT" ]
null
null
null
Python/WSClock/Page.py
Camiloasc1/OperativeSystemsUNAL
a07bfc235789b7a8848280a549a6b2c9602e61b5
[ "MIT" ]
null
null
null
class Page(object): def __init__(self, params): self.size = 2 ** 10 self.Time = False self.R = False self.M = False
17.111111
31
0.519481
152
0.987013
0
0
0
0
0
0
0
0
36da2e9adf116505c11742d74e8d8a7c885d7c7d
1,034
py
Python
python/python-algorithm-intervew/8-linked-list/16-add-two-numbers-2.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
1
2022-03-06T03:49:31.000Z
2022-03-06T03:49:31.000Z
python/python-algorithm-intervew/8-linked-list/16-add-two-numbers-2.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
python/python-algorithm-intervew/8-linked-list/16-add-two-numbers-2.py
bum12ark/algorithm
b6e262b0c29a8b5fb551db5a177a40feebc411b4
[ "MIT" ]
null
null
null
class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next def print_list(self): cur = self while cur: print(cur.val, end='->') cur = cur.next class Solution: # 전가산기구현 def addTwoNumbers(selfself, l1: ListNode, l2: List...
24.619048
72
0.500967
874
0.795993
0
0
0
0
0
0
128
0.116576
36dbe66f53ea99cba7463f1defbdf1646e602362
15,516
py
Python
pyjokes/jokes_pl.py
r0d0dendr0n/pyjokes
382065cba91007302be7fd04c5c35a9957e173b2
[ "BSD-3-Clause" ]
null
null
null
pyjokes/jokes_pl.py
r0d0dendr0n/pyjokes
382065cba91007302be7fd04c5c35a9957e173b2
[ "BSD-3-Clause" ]
null
null
null
pyjokes/jokes_pl.py
r0d0dendr0n/pyjokes
382065cba91007302be7fd04c5c35a9957e173b2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Jokes below come from the "jokes_en.py" file. Translation to Polish: Tomasz Rozynek - provided under CC BY-SA 3.0 """ neutral = [ "W 2030 roku Beata z ulgą usunęła Python'a 2.7 ze swoich maszyn. 'No!' westchnęła, by za chwilę przeczytać ogłoszenia na temat Python'a 4.4.", "Zapytani...
77.969849
147
0.743942
0
0
0
0
0
0
0
0
15,071
0.929391
36dc5f7d17dd68b5094396174551645ca5e9fe1c
2,335
py
Python
pele_platform/Utilities/Helpers/launcher.py
gabrii/pele_platform
64ef9affdd1740fc2e0545c706f30eb2723aa300
[ "Apache-2.0" ]
null
null
null
pele_platform/Utilities/Helpers/launcher.py
gabrii/pele_platform
64ef9affdd1740fc2e0545c706f30eb2723aa300
[ "Apache-2.0" ]
null
null
null
pele_platform/Utilities/Helpers/launcher.py
gabrii/pele_platform
64ef9affdd1740fc2e0545c706f30eb2723aa300
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass import pele_platform.Checker.main as ck import pele_platform.Frag.simulation as fr import pele_platform.Adaptive.simulation as ad from pele_platform.Allosteric.main import run_allosteric import pele_platform.gpcr.main as gpcr import pele_platform.out_in.main as outin from pele_platform...
37.063492
93
0.68137
1,903
0.814989
0
0
1,914
0.8197
0
0
188
0.080514
36dc9e14a8dd2c4fe9c4599b6173dd0c635c5f35
1,607
py
Python
Project/AuditReport/Aw/audit_aw.py
StarryHome/MultiToolsPlatform
2bd2b7e0700dbf542f0272ece3590a4afde328a4
[ "MIT" ]
null
null
null
Project/AuditReport/Aw/audit_aw.py
StarryHome/MultiToolsPlatform
2bd2b7e0700dbf542f0272ece3590a4afde328a4
[ "MIT" ]
null
null
null
Project/AuditReport/Aw/audit_aw.py
StarryHome/MultiToolsPlatform
2bd2b7e0700dbf542f0272ece3590a4afde328a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .pandas_aw import PandasAw class AuditAw(object): """ @summary: 审核AW类,负责审核规则整体流程 """ def __init__(self): self.result = [] def audit_report(self, visit_data_path, visit_demand_path, outliers_path): """ @summary: 审核报告入口 """ # 1.获取...
30.903846
109
0.655881
1,315
0.757925
0
0
0
0
0
0
548
0.31585
36de3480ccf6ebc0ee5035bf6d2e1a0522de31d5
812
py
Python
libs/subsets_of_subset.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
1
2021-03-09T04:28:13.000Z
2021-03-09T04:28:13.000Z
libs/subsets_of_subset.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
libs/subsets_of_subset.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
""" all subsets of given subset """ def subsets_of_subset(subset): s = subset superset = subset while True: yield s s = (s - 1) & superset if s == superset: break # --- end of library --- def debugprint(g): for x in g: print(f"{x:06b}") TEST_1 = """ >>> ...
15.615385
59
0.566502
0
0
174
0.214286
0
0
0
0
197
0.242611
36df1c98bfbc556da9445e6a4a358b0bfd225e8a
9,312
py
Python
models/backbone.py
kakaobrain/sparse-detr
1ea7a062ca6d1dd57768d65b14352cfd1a65ab52
[ "Apache-2.0" ]
83
2021-11-29T04:45:39.000Z
2022-03-30T13:39:46.000Z
models/backbone.py
kakaobrain/sparse-detr
1ea7a062ca6d1dd57768d65b14352cfd1a65ab52
[ "Apache-2.0" ]
4
2021-12-18T21:24:50.000Z
2022-03-18T07:22:04.000Z
models/backbone.py
kakaobrain/sparse-detr
1ea7a062ca6d1dd57768d65b14352cfd1a65ab52
[ "Apache-2.0" ]
3
2021-12-29T12:07:20.000Z
2022-02-11T08:26:16.000Z
# ------------------------------------------------------------------------------------ # Sparse DETR # Copyright (c) 2021 KakaoBrain. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------------------ # M...
38.962343
107
0.578393
7,508
0.806271
0
0
134
0.01439
0
0
1,966
0.211125
36dfbf17404b4b4327586ca76fafeed5dd3aea90
496
py
Python
resonate-carla/risk_calculation/function_test.py
scope-lab-vu/Resonate-Dynamic-Risk
46972bdb0a2b6b08cc188a9f1f6567971c9d263d
[ "MIT" ]
3
2021-08-15T05:02:17.000Z
2022-03-16T11:25:45.000Z
resonate-carla/risk_calculation/function_test.py
scope-lab-vu/Resonate-Dynamic-Risk
46972bdb0a2b6b08cc188a9f1f6567971c9d263d
[ "MIT" ]
null
null
null
resonate-carla/risk_calculation/function_test.py
scope-lab-vu/Resonate-Dynamic-Risk
46972bdb0a2b6b08cc188a9f1f6567971c9d263d
[ "MIT" ]
2
2021-03-21T02:35:17.000Z
2021-06-02T22:40:07.000Z
from bowtie_diagram import BowTie import matplotlib.pyplot as plt EXAMPLE_MONITOR_VALUES = [x for x in range(-5, 21)] bowtie = BowTie() state = {"monitor_values": {"lec_martingale": None}} true_y_vals = [] true_x_vals = [] for x_val in EXAMPLE_MONITOR_VALUES: true_x_vals.append(x_val) state["monitor_values"]...
24.8
53
0.737903
0
0
0
0
0
0
0
0
91
0.183468
36dfdaf21f66ae9305bc8e42cb69c1de214c4d13
3,760
py
Python
hw_asr/model/dsmodel.py
ivan-gorin/asr_project_template
6a9f908d7f287ac2a66d5740fa6c73133825845a
[ "MIT" ]
null
null
null
hw_asr/model/dsmodel.py
ivan-gorin/asr_project_template
6a9f908d7f287ac2a66d5740fa6c73133825845a
[ "MIT" ]
null
null
null
hw_asr/model/dsmodel.py
ivan-gorin/asr_project_template
6a9f908d7f287ac2a66d5740fa6c73133825845a
[ "MIT" ]
null
null
null
#from https://www.assemblyai.com/blog/end-to-end-speech-recognition-pytorch/ from torch import nn import torch.nn.functional as F from hw_asr.base import BaseModel class CNNLayerNorm(nn.Module): def __init__(self, n_feats): super().__init__() self.layer_norm = nn.LayerNorm(n_feats) def forw...
35.471698
116
0.614894
3,582
0.95266
0
0
0
0
0
0
317
0.084309
36e0a5cff93ebca1eb7f6ddcf88fb764dd56d580
9,198
py
Python
reminders/menu.py
elanorstark/reminder_pi
e6419f9bce29a1a06e0fee1b9e79156779a08c8b
[ "MIT" ]
null
null
null
reminders/menu.py
elanorstark/reminder_pi
e6419f9bce29a1a06e0fee1b9e79156779a08c8b
[ "MIT" ]
null
null
null
reminders/menu.py
elanorstark/reminder_pi
e6419f9bce29a1a06e0fee1b9e79156779a08c8b
[ "MIT" ]
null
null
null
import datetime from typing import List from reminders.events import Buttons, Alerts from reminders.screen import Screen # highest level, things that can be in a list menu class ListMenuItem: def __init__(self, name): self._name = str(name) @property def name(self): return self._name ...
31.717241
112
0.607741
8,466
0.920317
0
0
393
0.042722
0
0
1,401
0.152299
36e0bc6b9fd730df1ea36e866d1ae6f2849b3e37
2,127
py
Python
custom_components/goldair_climate/configuration.py
jwhite/homeassistant-goldair-climate
cca1831a1d257c507f3831ca053478e1e7643c75
[ "MIT" ]
8
2019-05-31T00:17:13.000Z
2021-01-12T21:43:21.000Z
custom_components/goldair_climate/configuration.py
jwhite/homeassistant-goldair-climate
cca1831a1d257c507f3831ca053478e1e7643c75
[ "MIT" ]
25
2019-07-04T06:46:30.000Z
2021-07-15T03:13:46.000Z
custom_components/goldair_climate/configuration.py
nicole-ashley/homeassistant-goldair-climate
df5f895db20d826b673142e785477944497d9402
[ "MIT" ]
9
2019-11-22T02:46:55.000Z
2021-07-04T21:57:41.000Z
import voluptuous as vol from homeassistant.const import CONF_HOST, CONF_NAME from .const import ( CONF_CHILD_LOCK, CONF_CLIMATE, CONF_DEVICE_ID, CONF_DISPLAY_LIGHT, CONF_LOCAL_KEY, CONF_TYPE, CONF_TYPE_AUTO, CONF_TYPE_DEHUMIDIFIER, CONF_TYPE_FAN, CONF_TYPE_GECO_HEATER, CONF...
25.023529
76
0.550071
0
0
0
0
0
0
0
0
325
0.152797
36e0e9a9d4e28937589b02ccb2d38ccef3931ed6
255
py
Python
20-29/nlp23.py
emergent/nlp100.python
636546ce1c4368faa6685eec315773c5c9fb424a
[ "Apache-2.0" ]
null
null
null
20-29/nlp23.py
emergent/nlp100.python
636546ce1c4368faa6685eec315773c5c9fb424a
[ "Apache-2.0" ]
null
null
null
20-29/nlp23.py
emergent/nlp100.python
636546ce1c4368faa6685eec315773c5c9fb424a
[ "Apache-2.0" ]
null
null
null
from nlp20 import get_england import re str = get_england() lines = str.split('\n') p = re.compile(r'^(=+)\s*(.+?)\s*=+') for l in lines: m = re.search(p, l) if m is not None: level = len(m.group(1)) - 1 print(m.group(2), level)
19.615385
37
0.556863
0
0
0
0
0
0
0
0
25
0.098039
36e117d0d57d57188bd69bce4d500df94875ceb8
4,913
py
Python
platform_reports/prometheus_grammars.py
neuro-inc/platform-reports
161c18733370235af0b63a772de49343e956c35c
[ "Apache-2.0" ]
null
null
null
platform_reports/prometheus_grammars.py
neuro-inc/platform-reports
161c18733370235af0b63a772de49343e956c35c
[ "Apache-2.0" ]
9
2021-12-23T03:10:40.000Z
2022-03-31T03:15:52.000Z
platform_reports/prometheus_grammars.py
neuro-inc/platform-reports
161c18733370235af0b63a772de49343e956c35c
[ "Apache-2.0" ]
null
null
null
PROMQL = """ start: query // Binary operations are defined separately in order to support precedence ?query\ : or_match | matrix | subquery | offset ?or_match\ : and_unless_match | or_match OR grouping? and_unless_match ?and_unless_match\ : comparison_match | and_unless_match (AND | ...
17.996337
77
0.65113
0
0
0
0
0
0
0
0
4,903
0.997965
36e1fd31cd58507e88abf55b7c02a2da45a269b3
2,750
py
Python
usersmanagement/models.py
Open-CMMS/openCMMS_backend
56511ebac83a5dc1fb8768a98bc675e88530a447
[ "BSD-3-Clause" ]
3
2021-03-08T19:14:38.000Z
2022-02-01T17:57:31.000Z
usersmanagement/models.py
Open-CMMS/openCMMS_backend
56511ebac83a5dc1fb8768a98bc675e88530a447
[ "BSD-3-Clause" ]
null
null
null
usersmanagement/models.py
Open-CMMS/openCMMS_backend
56511ebac83a5dc1fb8768a98bc675e88530a447
[ "BSD-3-Clause" ]
null
null
null
"""This file contain the model for the usermanagement app.""" from django.contrib.auth.models import AbstractUser, Group, Permission from django.db import models class UserProfile(AbstractUser): """ Define a user. Here, we use heritage of abstract user and addition of the field nb_tries to detect if ...
28.350515
92
0.627273
2,579
0.937818
0
0
0
0
0
0
1,098
0.399273
36e3612bbbacdd9cd6a33c5bc043ceb7c94b8118
572
py
Python
resrc/utils/templatetags/gravatar.py
theWhiteFox/resrc
d62bcf3ba2a55f50ae38a1e606072ee3d6025da5
[ "MIT" ]
274
2015-01-02T08:57:58.000Z
2022-03-11T11:44:44.000Z
resrc/utils/templatetags/gravatar.py
ninjaCheery/resrc
8af3a1a3617fd305a2c8aecffb609ed3e9c1addc
[ "MIT" ]
8
2015-05-19T02:54:49.000Z
2016-07-07T18:10:40.000Z
resrc/utils/templatetags/gravatar.py
ninjaCheery/resrc
8af3a1a3617fd305a2c8aecffb609ed3e9c1addc
[ "MIT" ]
112
2015-01-03T18:59:23.000Z
2019-10-08T11:49:18.000Z
# -*- coding: utf-8 -*-: from django import template import urllib import hashlib register = template.Library() def gravatar(email, size=80, username=None): gravatar_url = "http://www.gravatar.com/avatar.php?" gravatar_url += urllib.urlencode({ 'gravatar_id': hashlib.md5(email).hexdigest(), ...
26
86
0.631119
0
0
0
0
0
0
0
0
161
0.281469
36e397fd23e48d333c1f759c070a0a56a3fe0024
11,149
py
Python
utils/torch_utils.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
5
2019-12-23T05:13:15.000Z
2020-04-09T03:47:53.000Z
utils/torch_utils.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
null
null
null
utils/torch_utils.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
null
null
null
# encoding=utf-8 """ Misc PyTorch utils Author: [email protected] update 12.7 Usage: `from torch_utils import *` `func_name()` # to call functions in this file """ from datetime import datetime import math import os import torch import torch.nn as nn from tensorboardX import SummaryWriter ##############...
28.296954
101
0.544713
5,173
0.463489
0
0
0
0
0
0
4,759
0.426395
36e43c1fea8564dd6886b6925030fdbb9a39b677
19,421
py
Python
library/route_vpn.py
sebbbastien/ansible-stonesoft
ebc0d1c0720f8d79224ae58a80d3e9155bda4385
[ "Apache-2.0" ]
null
null
null
library/route_vpn.py
sebbbastien/ansible-stonesoft
ebc0d1c0720f8d79224ae58a80d3e9155bda4385
[ "Apache-2.0" ]
null
null
null
library/route_vpn.py
sebbbastien/ansible-stonesoft
ebc0d1c0720f8d79224ae58a80d3e9155bda4385
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2017 David LePage # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: route_vpn short_description...
37.204981
118
0.563771
11,966
0.616137
0
0
0
0
0
0
9,916
0.510581
36e64aadf7aac130d35406e0cf99b998faa79a22
6,407
py
Python
tfx/experimental/pipeline_testing/pipeline_recorder_utils.py
ntakouris/tfx
deb618730dc7675c8e9dc75e03b8ca795d49653d
[ "Apache-2.0" ]
1
2020-06-09T03:50:59.000Z
2020-06-09T03:50:59.000Z
tfx/experimental/pipeline_testing/pipeline_recorder_utils.py
tommywei110/tfx
2152534c81dbc06dc90de37c56e4d63bf810f150
[ "Apache-2.0" ]
null
null
null
tfx/experimental/pipeline_testing/pipeline_recorder_utils.py
tommywei110/tfx
2152534c81dbc06dc90de37c56e4d63bf810f150
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 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 required by ...
39.795031
82
0.74044
0
0
1,260
0.19666
0
0
0
0
2,973
0.464024
36e67ff06717bc841187da318c7c341f30def84e
16,034
py
Python
src/third_party/wiredtiger/lang/python/setup_pip.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
4
2018-02-06T01:53:12.000Z
2018-02-20T01:47:36.000Z
src/third_party/wiredtiger/lang/python/setup_pip.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/lang/python/setup_pip.py
SunguckLee/real-mongodb
fef0e44fafc6d3709a84101327e7d2f54dd18d88
[ "Apache-2.0" ]
3
2018-02-06T01:53:18.000Z
2021-07-28T09:48:15.000Z
#!/usr/bin/env python # # Public Domain 2014-2016 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as ...
39.202934
81
0.641574
1,163
0.072533
0
0
0
0
0
0
7,103
0.442996
36e6a531b83457a4c48394e73a9fc94d96c25f64
77
py
Python
2022-02-24-ftx-rest-api-python/local_settings.py
georgehaan/analyzingalpha
f1f821e8d74d64addf410bfd205cb089ddf5517e
[ "Unlicense" ]
null
null
null
2022-02-24-ftx-rest-api-python/local_settings.py
georgehaan/analyzingalpha
f1f821e8d74d64addf410bfd205cb089ddf5517e
[ "Unlicense" ]
null
null
null
2022-02-24-ftx-rest-api-python/local_settings.py
georgehaan/analyzingalpha
f1f821e8d74d64addf410bfd205cb089ddf5517e
[ "Unlicense" ]
null
null
null
ftxus = { 'api_key':'YOUR_API_KEY', 'api_secret':'YOUR_API_SECRET' }
15.4
34
0.636364
0
0
0
0
0
0
0
0
52
0.675325
36e87b1e11d644470443480a35f8b9e8b72438cd
4,387
py
Python
src/rechub/parameters.py
yusanshi/easy-rec
86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24
[ "MIT" ]
null
null
null
src/rechub/parameters.py
yusanshi/easy-rec
86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24
[ "MIT" ]
null
null
null
src/rechub/parameters.py
yusanshi/easy-rec
86db0bbd1eb0caf94c4b0ec4198bf49e64f65f24
[ "MIT" ]
null
null
null
import argparse from distutils.util import strtobool def str2bool(x): return bool(strtobool(x)) def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--num_epochs', type=int, default=1000) parser.add_argument('--learning_rate', type=float, default=0.0005) parser.add_argument...
38.823009
99
0.56713
0
0
0
0
0
0
0
0
1,472
0.335537
36e9553b230e4e00a0c8f9a0c28cdd825854c4a3
4,955
py
Python
course_difficulty.py
ewang26/dailytimedschedule
1d891828af67caab47ef6286051da7e84b980b2a
[ "MIT" ]
null
null
null
course_difficulty.py
ewang26/dailytimedschedule
1d891828af67caab47ef6286051da7e84b980b2a
[ "MIT" ]
null
null
null
course_difficulty.py
ewang26/dailytimedschedule
1d891828af67caab47ef6286051da7e84b980b2a
[ "MIT" ]
null
null
null
# Koki Kapoor # CSC 630 # Course Difficulty.py file # have each homework assignment be ranked based on difficulty of the course and on difficulty of the assignment itself # list_of_courses_and_difficulty only takes into consideration the difficulty of the course, not the assignment from array import * # install num...
36.703704
166
0.70333
0
0
0
0
0
0
0
0
3,116
0.62886
36e98b5ce7e26ba1ac762413ca0565df029c2001
1,826
py
Python
src/esss_fix_format/hooks.py
nicoddemus/esss_fix_format
1f46e0d1c05cc88fd47be2f0b0f120d8265a759e
[ "MIT" ]
20
2016-12-05T12:09:27.000Z
2021-11-23T21:57:59.000Z
src/esss_fix_format/hooks.py
nicoddemus/esss_fix_format
1f46e0d1c05cc88fd47be2f0b0f120d8265a759e
[ "MIT" ]
43
2016-07-20T12:21:16.000Z
2022-03-14T20:31:07.000Z
src/esss_fix_format/hooks.py
nicoddemus/esss_fix_format
1f46e0d1c05cc88fd47be2f0b0f120d8265a759e
[ "MIT" ]
8
2016-09-27T20:02:44.000Z
2021-04-16T14:58:08.000Z
import abc import textwrap class GitHook(metaclass=abc.ABCMeta): """ Base class to define a Git hook usable by `hooks` task. """ @abc.abstractmethod def name(self): """ :rtype: unicode :return: Name of hook. """ @abc.abstractmethod def script(self): ...
23.714286
99
0.557503
1,378
0.754655
0
0
348
0.190581
0
0
1,247
0.682913
36e9aa3443706da87ee4f539703a4f5d9195cf72
166
py
Python
Solutions/print all subset.py
Adityasriram0901/Python-Thunder
192920c48092ce1783d56c7b45cdd7e7a50246fa
[ "MIT" ]
81
2020-09-25T15:02:11.000Z
2020-10-12T14:20:31.000Z
Solutions/print all subset.py
Adityasriram0901/Python-Thunder
192920c48092ce1783d56c7b45cdd7e7a50246fa
[ "MIT" ]
196
2020-09-25T13:52:13.000Z
2020-10-12T20:20:00.000Z
Solutions/print all subset.py
Adityasriram0901/Python-Thunder
192920c48092ce1783d56c7b45cdd7e7a50246fa
[ "MIT" ]
209
2020-09-25T16:15:46.000Z
2020-10-12T20:08:08.000Z
a = [1, 2, 3, 4] def subset(a, n): if n == 1: return n else: return (subset(a[n - 1]), subset(a[n - 2])) print(subset(a, n=4))
13.833333
52
0.415663
0
0
0
0
0
0
0
0
0
0
36eb37aac32d06e68b8f0f03ae15c8cd3b04fb1f
49
py
Python
trees/dasgupta/__init__.py
islamazhar/trees
502565c5bf02503c7bece09cddd93f9368da02c3
[ "MIT" ]
null
null
null
trees/dasgupta/__init__.py
islamazhar/trees
502565c5bf02503c7bece09cddd93f9368da02c3
[ "MIT" ]
null
null
null
trees/dasgupta/__init__.py
islamazhar/trees
502565c5bf02503c7bece09cddd93f9368da02c3
[ "MIT" ]
null
null
null
from trees.dasgupta.costtree import DasguptaTree
24.5
48
0.877551
0
0
0
0
0
0
0
0
0
0
36eb6ff512aad2f53a0ace07b5c62237d039ba4a
11,810
py
Python
examples/references/segmentation/pascal_voc2012/code/scripts/training.py
1nF0rmed/ignite
cfcd667e3cb9d67b67d928d12fa3ccdac05f7a3e
[ "BSD-3-Clause" ]
null
null
null
examples/references/segmentation/pascal_voc2012/code/scripts/training.py
1nF0rmed/ignite
cfcd667e3cb9d67b67d928d12fa3ccdac05f7a3e
[ "BSD-3-Clause" ]
null
null
null
examples/references/segmentation/pascal_voc2012/code/scripts/training.py
1nF0rmed/ignite
cfcd667e3cb9d67b67d928d12fa3ccdac05f7a3e
[ "BSD-3-Clause" ]
null
null
null
# This a training script launched with py_config_runner # It should obligatory contain `run(config, **kwargs)` method import sys from collections.abc import Mapping from pathlib import Path import torch from apex import amp from dataflow.datasets import VOCSegmentationOpencv from py_config_runner.config_utils import ...
35.896657
120
0.676545
0
0
0
0
1,346
0.113971
0
0
2,278
0.192887
36ec49281113de21af1d91215fc919058901c862
17,387
py
Python
src/instaBot.py
pabloqb2000/py-instabot
2bfdd51d588050d370d069db5d0352d29fd4560d
[ "Apache-2.0" ]
null
null
null
src/instaBot.py
pabloqb2000/py-instabot
2bfdd51d588050d370d069db5d0352d29fd4560d
[ "Apache-2.0" ]
null
null
null
src/instaBot.py
pabloqb2000/py-instabot
2bfdd51d588050d370d069db5d0352d29fd4560d
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from time import sleep from tqdm import tqdm import random from EmailSender import * class InstagramBot: # Creates object and starts the browser def __init__(self, username, password): print("Hi, i'm your persona...
38.897092
256
0.572554
17,209
0.989762
0
0
0
0
0
0
5,565
0.320067
36edb3403cd5d8abc890118c85bd880dd47b74ce
198
py
Python
Python/03 - Strings/String Formatting.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/03 - Strings/String Formatting.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/03 - Strings/String Formatting.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
def print_formatted(number): # your code goes here for i in range(1, number +1): width = len(f"{number:b}") print(f"{i:{width}} {i:{width}o} {i:{width}X} {i:{width}b}")
33
69
0.545455
0
0
0
0
0
0
0
0
88
0.444444
36ede9c0901ffceceb90ea9e2eb43efe24230727
813
py
Python
BattleCity-NES/main.py
iOsnaaente/Kata-train_Code
22cdf9d087bad879875c1f70029bda0771242c50
[ "MIT" ]
null
null
null
BattleCity-NES/main.py
iOsnaaente/Kata-train_Code
22cdf9d087bad879875c1f70029bda0771242c50
[ "MIT" ]
null
null
null
BattleCity-NES/main.py
iOsnaaente/Kata-train_Code
22cdf9d087bad879875c1f70029bda0771242c50
[ "MIT" ]
null
null
null
#! usr/bin/dev python from stages import Stages #Le as fases from code import tanks #Responsável pelos tanques do player from images import imagens #imagens do jogo import pygame import random screen_Dimension=[32*20,32*20] pygame.init() screen = pygame.display.set_mode(screen_Dimension) pygame.display....
16.591837
62
0.719557
0
0
0
0
0
0
0
0
111
0.136364
36ee554e3410e965f70042cc4e96c4361520515d
6,271
py
Python
n_queens.py
lkk7/n-queens-genetic-solver
d8b87b49970e58d4599618eb014c1b12e4f471fa
[ "MIT" ]
null
null
null
n_queens.py
lkk7/n-queens-genetic-solver
d8b87b49970e58d4599618eb014c1b12e4f471fa
[ "MIT" ]
null
null
null
n_queens.py
lkk7/n-queens-genetic-solver
d8b87b49970e58d4599618eb014c1b12e4f471fa
[ "MIT" ]
null
null
null
from typing import Dict from numba import njit import numpy as np import matplotlib.pyplot as plt plt.rcParams['image.cmap'] = 'binary' def read_parameters(filename: str) -> Dict[str, float]: """Read parameters from a file to a dictionary and return it.""" parameters = {} with open(filename, "r") as file:...
38.237805
76
0.591293
0
0
0
0
3,527
0.56243
0
0
676
0.107798
36f0a039978f0025fa6da35feb5807f99a23cd6a
1,362
py
Python
tests/plugins/test_ustreamtv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
2
2019-09-17T15:01:47.000Z
2019-09-21T16:26:50.000Z
tests/plugins/test_ustreamtv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
1
2020-06-02T02:36:30.000Z
2020-06-02T02:36:30.000Z
tests/plugins/test_ustreamtv.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
1
2020-08-12T08:27:22.000Z
2020-08-12T08:27:22.000Z
import unittest from streamlink import Streamlink try: from unittest.mock import ANY, MagicMock, call except ImportError: from mock import ANY, MagicMock, call from streamlink.plugins.ustreamtv import UStreamTV class TestPluginUStreamTV(unittest.TestCase): def test_can_handle_url(self): should_m...
30.954545
105
0.64978
1,138
0.835536
0
0
0
0
0
0
267
0.196035
36f1c4a0f6e35abb7375acc751edca8cda2db44e
304
py
Python
tests/test_xgboost.py
ak110/dl_allinone
976f0d65b20bcf9bfc00286608bcd957dd086209
[ "MIT" ]
1
2019-02-07T03:48:19.000Z
2019-02-07T03:48:19.000Z
tests/test_xgboost.py
ak110/dl_allinone
976f0d65b20bcf9bfc00286608bcd957dd086209
[ "MIT" ]
1
2019-03-26T03:48:15.000Z
2019-05-24T04:12:33.000Z
tests/test_xgboost.py
ak110/dl_allinone
976f0d65b20bcf9bfc00286608bcd957dd086209
[ "MIT" ]
null
null
null
def test_run(): import sklearn.datasets import xgboost data = sklearn.datasets.load_boston() X, y = data.data, data.target # pylint: disable=no-member xgb = xgboost.XGBRegressor(n_estimators=3) xgb.fit(X[:100], y[:100]) assert xgb.predict(X[100:]).shape == (len(X[100:]),)
27.636364
62
0.648026
0
0
0
0
0
0
0
0
27
0.088816
36f2445925b38eafa6fa76d91317ba20cacff47f
1,241
py
Python
test/unit/object/test_collaboration_allowlist_entry.py
box/box-python-sdk
5c6766a17bac0315bede7a1f5909c912d194a793
[ "Apache-2.0" ]
367
2015-02-10T05:55:45.000Z
2022-03-16T23:39:58.000Z
test/unit/object/test_collaboration_allowlist_entry.py
box/box-python-sdk
5c6766a17bac0315bede7a1f5909c912d194a793
[ "Apache-2.0" ]
686
2015-02-10T01:21:28.000Z
2022-03-31T11:40:22.000Z
test/unit/object/test_collaboration_allowlist_entry.py
box/box-python-sdk
5c6766a17bac0315bede7a1f5909c912d194a793
[ "Apache-2.0" ]
260
2015-02-16T17:35:06.000Z
2022-03-20T17:45:28.000Z
# coding: utf-8 from __future__ import unicode_literals, absolute_import from boxsdk.config import API def test_get(mock_box_session, test_collaboration_allowlist_entry): entry_id = test_collaboration_allowlist_entry.object_id expected_url = '{0}/collaboration_whitelist_entries/{1}'.format(API.BASE_API_URL, ...
42.793103
118
0.767929
0
0
0
0
0
0
0
0
209
0.168413
36f7aca45d40f82d8142db3d4804603a2675f264
1,463
py
Python
jumpy/setup.py
bharadwaj1098/brax
3108a0535b9b59725c97ef35732ed0378c0fd5cc
[ "Apache-2.0" ]
1,162
2021-06-03T20:15:05.000Z
2022-03-31T19:53:06.000Z
jumpy/setup.py
bharadwaj1098/brax
3108a0535b9b59725c97ef35732ed0378c0fd5cc
[ "Apache-2.0" ]
160
2021-06-05T02:32:39.000Z
2022-03-31T11:39:58.000Z
jumpy/setup.py
bharadwaj1098/brax
3108a0535b9b59725c97ef35732ed0378c0fd5cc
[ "Apache-2.0" ]
117
2021-06-04T17:18:21.000Z
2022-03-30T18:04:48.000Z
# Copyright 2021 The Brax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
29.857143
74
0.673274
0
0
0
0
0
0
0
0
1,071
0.732057
36f7ebcb27998b0af7e58a152f1c6385a165aa9d
33,411
py
Python
simulation/Distance2.py
vivirodrigues/carrinheiros-heuristics
92c8c4a8384f8e3a86e9c53b41bcb2ab001de5f5
[ "MIT" ]
null
null
null
simulation/Distance2.py
vivirodrigues/carrinheiros-heuristics
92c8c4a8384f8e3a86e9c53b41bcb2ab001de5f5
[ "MIT" ]
null
null
null
simulation/Distance2.py
vivirodrigues/carrinheiros-heuristics
92c8c4a8384f8e3a86e9c53b41bcb2ab001de5f5
[ "MIT" ]
null
null
null
import json import scipy.stats import matplotlib.pyplot as plt import scipy.stats as st from decimal import Decimal, ROUND_HALF_UP from xml.dom import minidom import numpy as np def open_file(nameFile): try: f = open(nameFile + ".json", "r") dados = json.loads(f.read()) f.close() excep...
103.12037
160
0.829427
0
0
0
0
0
0
0
0
28,352
0.848532
36f815fa18399e9d17f81a9738794e259e786f45
9,134
py
Python
spatial_interpolators/radial_basis.py
tsutterley/spatial-interpolators
6949807dd3ee4cbc7cd9bd323dbf3304fbd19ca2
[ "MIT" ]
18
2018-09-14T04:12:01.000Z
2021-08-03T11:14:45.000Z
spatial_interpolators/radial_basis.py
tsutterley/spatial-interpolators
6949807dd3ee4cbc7cd9bd323dbf3304fbd19ca2
[ "MIT" ]
2
2021-07-08T16:17:10.000Z
2022-01-04T16:26:55.000Z
spatial_interpolators/radial_basis.py
tsutterley/spatial-interpolators
6949807dd3ee4cbc7cd9bd323dbf3304fbd19ca2
[ "MIT" ]
3
2018-09-19T06:34:42.000Z
2019-10-03T12:22:23.000Z
#!/usr/bin/env python u""" radial_basis.py Written by Tyler Sutterley (01/2022) Interpolates data using radial basis functions CALLING SEQUENCE: ZI = radial_basis(xs, ys, zs, XI, YI, polynomial=0, smooth=smooth, epsilon=epsilon, method='inverse') INPUTS: xs: scaled input X data ys: scaled input Y...
33.214545
78
0.637837
0
0
0
0
0
0
0
0
4,961
0.543136
36fae5ad374222c00d5bde1c50b8adc1fc9b19c3
465
py
Python
oldstuff/api1.py
miusuarioamigo/python-Le
dbb653255dab7d11b87f25eec94bcce63a86aa42
[ "MIT" ]
null
null
null
oldstuff/api1.py
miusuarioamigo/python-Le
dbb653255dab7d11b87f25eec94bcce63a86aa42
[ "MIT" ]
null
null
null
oldstuff/api1.py
miusuarioamigo/python-Le
dbb653255dab7d11b87f25eec94bcce63a86aa42
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request app = Flask(__name__) @app.route('/', methods =['GET', 'POST']) def index(): if (request.method == 'POST'): some_json = request.get_json() return jsonify({'you sent': some_json}),201 else: return jsonify({"about" : "Hello World!"}) @app.route('...
25.833333
51
0.612903
0
0
0
0
345
0.741935
0
0
91
0.195699
36fb1e4b44269afa44164c5c335b64583671d7bf
5,129
py
Python
tests/mock/tests/settings.py
magicjoey/django-knowledge
ce6faa904a88e5d4f565763bc1d5cd07e6b5c5bd
[ "ISC" ]
199
2015-01-22T05:07:30.000Z
2022-03-28T06:59:46.000Z
tests/mock/tests/settings.py
tzangms/django-knowledge
8238b1f4c1c6e12acb7f3fc327346776379a7a68
[ "0BSD" ]
3
2015-10-20T09:48:58.000Z
2018-03-14T21:16:29.000Z
tests/mock/tests/settings.py
tzangms/django-knowledge
8238b1f4c1c6e12acb7f3fc327346776379a7a68
[ "0BSD" ]
78
2015-02-09T02:23:16.000Z
2021-12-25T07:02:08.000Z
from mock.tests.base import TestCase from django.test.client import Client from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.template.defaultfilters import slugify from knowledge import settings from knowledge.models import Question, Response from knowledge.forms imp...
32.66879
105
0.580425
4,775
0.930981
0
0
0
0
0
0
1,261
0.245857
36fd537a07164889366087995d08455fc14bd19e
828
py
Python
Batch_sentiment/spark_hashtag.py
malli3131/SparkApps
b24763eaf6411cba3c22a4c070a45d6fe96dfa1d
[ "Apache-2.0" ]
3
2018-01-17T05:51:10.000Z
2018-11-22T16:59:53.000Z
Batch_sentiment/spark_hashtag.py
malli3131/SparkApps
b24763eaf6411cba3c22a4c070a45d6fe96dfa1d
[ "Apache-2.0" ]
2
2016-12-15T13:15:42.000Z
2016-12-15T13:19:19.000Z
Batch_sentiment/spark_hashtag.py
malli3131/SparkApps
b24763eaf6411cba3c22a4c070a45d6fe96dfa1d
[ "Apache-2.0" ]
4
2018-02-12T06:37:04.000Z
2020-01-04T11:30:24.000Z
import re import string import sys from pyspark import SparkContext exclude = set(string.punctuation) def get_hash_tag(word, rmPunc): pattern = re.compile("^#(.*)") m = pattern.match(word) tag = None if m: match = m.groups() for m_word in match: tag = ''.join(letter for letter in m_word...
30.666667
84
0.695652
0
0
0
0
0
0
0
0
148
0.178744
7fc0ed53e23bdf7182409dab9a83d9dcb7cb0ae5
417
py
Python
backend/apps/risks/urls.py
intellisense/risks
e98b8c6e5694b895603f7ff1b3c04b6057aa1136
[ "MIT" ]
null
null
null
backend/apps/risks/urls.py
intellisense/risks
e98b8c6e5694b895603f7ff1b3c04b6057aa1136
[ "MIT" ]
null
null
null
backend/apps/risks/urls.py
intellisense/risks
e98b8c6e5694b895603f7ff1b3c04b6057aa1136
[ "MIT" ]
null
null
null
from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from . import views urlpatterns = [ url(r'^risks/$', views.RiskTypeList.as_view(), name='risks_list'), url(r'^risks/(?P<pk>[0-9]+)/$', views.RiskTypeDetail.as_view(), name='risk_details'), url(r'^fields/$', views...
34.75
89
0.729017
0
0
0
0
0
0
0
0
88
0.211031
7fc0f798553336843920795f3c9cd1c0cfdb4288
534
py
Python
src/main.py
sguzman/Dbase_Channel_Grab
30a9e3abd72ed93cd3c7ea80d44b664a0a76d8af
[ "Unlicense" ]
null
null
null
src/main.py
sguzman/Dbase_Channel_Grab
30a9e3abd72ed93cd3c7ea80d44b664a0a76d8af
[ "Unlicense" ]
null
null
null
src/main.py
sguzman/Dbase_Channel_Grab
30a9e3abd72ed93cd3c7ea80d44b664a0a76d8af
[ "Unlicense" ]
null
null
null
import json import bs4 import requests url_base = 'https://dbase.tube/chart/channels/subscribers/all?page=%s&spf=navigate' max_page = 19084 html_doc = requests.get(url_base).text for i in range(max_page): url = url_base % i hot_bod = requests.get(url).text json_blob = json.loads(hot_bod) html_body = j...
28.105263
83
0.687266
0
0
0
0
0
0
0
0
128
0.2397
7fc1e0de66e5ca0c06e7e6fc0f89c827b64df6c5
315
py
Python
Leetcode/322. Coin Change/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/322. Coin Change/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/322. Coin Change/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def coinChange(self, coins: List[int], amount: int) -> int: dp = [inf] * (amount + 1) dp[0] = 0 for coin in coins: for x in range(coin, amount + 1): dp[x] = min(dp[x], dp[x - coin] + 1) return dp[amount] if dp[amount] != inf else -1
28.636364
63
0.492063
314
0.996825
0
0
0
0
0
0
0
0
7fc44269a458fb1cbf6dc4894b2532e5211304c0
1,166
py
Python
kanban_board/admin.py
Zeerooth/django-kanban-board
d390635017199a90da666bba3a74cafc86838884
[ "BSD-3-Clause" ]
null
null
null
kanban_board/admin.py
Zeerooth/django-kanban-board
d390635017199a90da666bba3a74cafc86838884
[ "BSD-3-Clause" ]
2
2021-06-10T17:52:06.000Z
2021-09-22T18:00:26.000Z
kanban_board/admin.py
Zeerooth/django-kanban-board
d390635017199a90da666bba3a74cafc86838884
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from ordered_model.admin import OrderedStackedInline, OrderedInlineModelAdminMixin from kanban_board.models import KanbanBoard, KanbanBoardState, Workflow, KanbanBoardElement class KanbanBoardAdmin(admin.ModelAdmin): list_display = ('name', 'workflow', 'element_count') filter_h...
37.612903
101
0.762436
815
0.698971
0
0
0
0
0
0
164
0.140652
7fc4576c38452997b1f8bd1ddca0fc4d69cf33db
16,705
py
Python
certbot-nginx/certbot_nginx/tests/nginxparser_test.py
jcollie/certbot
1df778859b7ace699c02039b269abd426058a237
[ "Apache-2.0" ]
4
2020-04-09T21:57:23.000Z
2020-04-11T13:26:54.000Z
certbot-nginx/certbot_nginx/tests/nginxparser_test.py
jcollie/certbot
1df778859b7ace699c02039b269abd426058a237
[ "Apache-2.0" ]
32
2019-02-20T14:51:48.000Z
2019-02-27T10:11:34.000Z
certbot-nginx/certbot_nginx/tests/nginxparser_test.py
jcollie/certbot
1df778859b7ace699c02039b269abd426058a237
[ "Apache-2.0" ]
1
2020-02-06T15:04:02.000Z
2020-02-06T15:04:02.000Z
"""Test for certbot_nginx.nginxparser.""" import copy import operator import tempfile import unittest from pyparsing import ParseException from certbot_nginx.nginxparser import ( RawNginxParser, loads, load, dumps, dump, UnspacedList) from certbot_nginx.tests import util FIRST = operator.itemgetter(0) class T...
37.879819
95
0.449386
16,319
0.976893
0
0
0
0
0
0
6,625
0.396588
7fc49c5390bfb96b900f097bb43b1a2528a313d1
6,522
py
Python
pysnmp-with-texts/Intel-Common-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Intel-Common-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Intel-Common-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Intel-Common-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Intel-Common-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:54:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
103.52381
1,274
0.713891
0
0
0
0
0
0
0
0
1,313
0.201319
7fc5dfd088a228987587fd982a1eb94c9c4b2b71
4,430
py
Python
src/python/pants/jvm/resolve/coursier_setup.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
null
null
null
src/python/pants/jvm/resolve/coursier_setup.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
12
2022-01-06T23:20:22.000Z
2022-03-17T05:06:37.000Z
src/python/pants/jvm/resolve/coursier_setup.py
Eric-Arellano/pants
aaa9756bc4f2cc97bb97851a4295a0de85f374b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import textwrap from dataclasses import dataclass from typing import ClassVar, Iterable from pants.core.util_rules.external_tool import ( Downloade...
31.41844
106
0.66614
1,693
0.382167
0
0
1,886
0.425734
1,160
0.261851
1,824
0.411738
7fc62c697596e38c94228733e0069508642f51ad
198
py
Python
app/emails/__init__.py
zollf/CITS3200
95fb7569dad325c057e441cd7265d3e85735c058
[ "CC0-1.0" ]
null
null
null
app/emails/__init__.py
zollf/CITS3200
95fb7569dad325c057e441cd7265d3e85735c058
[ "CC0-1.0" ]
null
null
null
app/emails/__init__.py
zollf/CITS3200
95fb7569dad325c057e441cd7265d3e85735c058
[ "CC0-1.0" ]
null
null
null
from django.apps import AppConfig class EmailAppConfig(AppConfig): name = 'app.emails' label = 'email_app' verbose_name = 'Emails App' default_app_config = 'app.emails.EmailAppConfig'
22
48
0.737374
112
0.565657
0
0
0
0
0
0
62
0.313131
7fc685dc97d5c6a0bef64129b54db775abc19da1
21,614
py
Python
polyaxon_schemas/layers/core.py
gzcf/polyaxon-schemas
a381280cd7535f64158d52f0a9eff2afec997d90
[ "MIT" ]
null
null
null
polyaxon_schemas/layers/core.py
gzcf/polyaxon-schemas
a381280cd7535f64158d52f0a9eff2afec997d90
[ "MIT" ]
null
null
null
polyaxon_schemas/layers/core.py
gzcf/polyaxon-schemas
a381280cd7535f64158d52f0a9eff2afec997d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from marshmallow import fields, post_dump, post_load, validate from polyaxon_schemas.constraints import ConstraintSchema from polyaxon_schemas.initializations import ( GlorotNormalInitializerConfig, InitializerSchema, ...
28.364829
88
0.659434
20,942
0.968909
0
0
2,261
0.104608
0
0
12,461
0.576524
7fc71d742b9583424424ab4953dff97d093bc116
5,556
py
Python
tests/unit/models/cardlesscredit/test_create_payment.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
10
2020-10-31T23:34:34.000Z
2022-03-08T19:08:55.000Z
tests/unit/models/cardlesscredit/test_create_payment.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
22
2020-07-30T14:25:07.000Z
2022-03-31T03:55:46.000Z
tests/unit/models/cardlesscredit/test_create_payment.py
glendaesutanto/xendit-python
f9b131882ff7d045f2e2c6518933d1594efba3e6
[ "MIT" ]
11
2020-07-28T08:09:40.000Z
2022-03-18T00:14:02.000Z
import pytest from ..model_base_test import ModelBaseTest from tests.sampleresponse.cardless_credit import cardless_credit_payment_response from xendit.models import CardlessCredit, CardlessCreditType # fmt: off class TestCreateCardlessCreditPayment(ModelBaseTest): @pytest.fixture def default_cardles...
44.095238
121
0.62203
5,320
0.957523
0
0
4,683
0.842873
0
0
1,252
0.225342
7fc87ac068a828700f0e5927697f90ef933d4e60
293
py
Python
docs/examples/http_proxy/constructor_argument.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
4
2017-11-14T17:24:12.000Z
2020-10-30T01:46:02.000Z
docs/examples/http_proxy/constructor_argument.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
11
2017-01-29T08:59:21.000Z
2018-07-02T09:17:47.000Z
docs/examples/http_proxy/constructor_argument.py
dupontz/libcloud
419c69441ea10e7bbf37319e5e8d02e82e7e6b40
[ "Apache-2.0" ]
4
2016-04-04T08:01:48.000Z
2018-06-06T08:04:36.000Z
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver PROXY_URL_NO_AUTH_1 = 'http://<proxy hostname 1>:<proxy port 2>' cls = get_driver(Provider.RACKSPACE) driver = cls('username', 'api key', region='ord', http_proxy=PROXY_URL_NO_AUTH_1)
32.555556
64
0.750853
0
0
0
0
0
0
0
0
66
0.225256
7fc8a85a68b8ccffabd8645da52a646787f3b6c2
2,576
py
Python
cakechat/dialog_model/factory.py
jacswork/cakechat
d46c3ef05be8adfeac5d48ff1cfcefb87ac1eb2e
[ "Apache-2.0" ]
1
2020-03-20T18:38:47.000Z
2020-03-20T18:38:47.000Z
cakechat/dialog_model/factory.py
jacswork/cakechat
d46c3ef05be8adfeac5d48ff1cfcefb87ac1eb2e
[ "Apache-2.0" ]
64
2019-07-05T06:06:43.000Z
2021-08-02T05:22:31.000Z
cakechat/dialog_model/factory.py
Spark3757/chatbot
4e8eae70af2d5b68564d86b7ea0dbec956ae676f
[ "Apache-2.0" ]
1
2020-12-04T15:25:45.000Z
2020-12-04T15:25:45.000Z
import os from cakechat.config import BASE_CORPUS_NAME, S3_MODELS_BUCKET_NAME, S3_TOKENS_IDX_REMOTE_DIR, \ S3_NN_MODEL_REMOTE_DIR, S3_CONDITIONS_IDX_REMOTE_DIR from cakechat.dialog_model.model import get_nn_model from cakechat.utils.s3 import S3FileResolver from cakechat.utils.text_processing import get_index_to_t...
45.192982
119
0.733696
0
0
0
0
0
0
0
0
534
0.207298
7fc9f53a7aff684d5bb0d1b56fcc2703e86c8f57
532
py
Python
WhileLoop/GraduationPt.2.py
Rohitm619/Softuni-Python-Basic
03c9d0b44f5652c99db3b0e42014dd5af50205a2
[ "MIT" ]
1
2020-09-22T13:25:34.000Z
2020-09-22T13:25:34.000Z
WhileLoop/GraduationPt.2.py
Rohitm619/Softuni-Python-Basic
03c9d0b44f5652c99db3b0e42014dd5af50205a2
[ "MIT" ]
null
null
null
WhileLoop/GraduationPt.2.py
Rohitm619/Softuni-Python-Basic
03c9d0b44f5652c99db3b0e42014dd5af50205a2
[ "MIT" ]
1
2020-10-17T09:27:46.000Z
2020-10-17T09:27:46.000Z
name = input() class_school = 1 sum_of_grades = 0 ejected = False failed = 0 while True: grade = float(input()) if grade >= 4.00: sum_of_grades += grade if class_school == 12: break class_school += 1 else: failed += 1 if failed == 2: ejected ...
19.703704
62
0.575188
0
0
0
0
0
0
0
0
100
0.18797
7fc9fa1da3516cccfb91e93a1b16adc0a561f07f
8,990
py
Python
NAO/train_cifar.py
yaogood/NAS-tensorflow2
a3ed9bc3a2a973c8c54d2ea5b7344a31ed86c057
[ "BSD-3-Clause" ]
null
null
null
NAO/train_cifar.py
yaogood/NAS-tensorflow2
a3ed9bc3a2a973c8c54d2ea5b7344a31ed86c057
[ "BSD-3-Clause" ]
null
null
null
NAO/train_cifar.py
yaogood/NAS-tensorflow2
a3ed9bc3a2a973c8c54d2ea5b7344a31ed86c057
[ "BSD-3-Clause" ]
null
null
null
import os import sys import glob import time import copy import random import numpy as np import utils import logging import argparse import tensorflow as tf import tensorflow.keras as keras from model import NASNetworkCIFAR os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # os.environ['CUDA_VISIBLE_DEVICES'] = '1' # Basic m...
44.068627
120
0.628031
0
0
0
0
0
0
0
0
1,582
0.175973
7fca526c31f2627682c2720c9612c105d831e507
1,585
py
Python
examples/regression.py
Spotflock/studio-sdk-python
4831819d2a69755777ff773091afc4330f8a91f6
[ "MIT" ]
8
2019-03-25T17:21:27.000Z
2019-03-26T10:34:30.000Z
examples/regression.py
Spotflock/studio-sdk-python
4831819d2a69755777ff773091afc4330f8a91f6
[ "MIT" ]
null
null
null
examples/regression.py
Spotflock/studio-sdk-python
4831819d2a69755777ff773091afc4330f8a91f6
[ "MIT" ]
null
null
null
import studio def main(): c = studio.StudioClient('xxx') # put your app key here. # REGRESSION test_data = "" train_data = "" test_file_store_response = c.store('../csv/housing_test.csv') print(test_file_store_response) test_data = test_file_store_response['fileUrl'] train_data_store_...
40.641026
93
0.692744
0
0
0
0
0
0
0
0
347
0.218927
7fcb384cb9988d683d28c2f7b5a6810c88a449fa
2,763
py
Python
VAE/models/vae_mnist.py
Aroksak/generative-dl
66b71860266d15736b66b0b17fff37c7e881b142
[ "MIT" ]
null
null
null
VAE/models/vae_mnist.py
Aroksak/generative-dl
66b71860266d15736b66b0b17fff37c7e881b142
[ "MIT" ]
null
null
null
VAE/models/vae_mnist.py
Aroksak/generative-dl
66b71860266d15736b66b0b17fff37c7e881b142
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class Encoder(nn.Module): def _conv_layer_factory(self, input_channels, output_channels, **kwargs): return nn.Sequential( nn.Conv2d(input_channels, output_channels, **kwargs), nn.LeakyReLU(), ) def __init__(self, input_channels=1, bot...
32.127907
106
0.627579
2,719
0.984075
0
0
0
0
0
0
0
0
7fcd0efe44d52a8f5eb0ccaff5033e799faefab2
503
py
Python
json-read.py
ccoffrin/py-json-examples
c01bf6994e4480470939621ed0b4b7043b38819f
[ "MIT" ]
null
null
null
json-read.py
ccoffrin/py-json-examples
c01bf6994e4480470939621ed0b4b7043b38819f
[ "MIT" ]
null
null
null
json-read.py
ccoffrin/py-json-examples
c01bf6994e4480470939621ed0b4b7043b38819f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json data_json = {} with open('data/json_00.json', 'r') as file: data_json = json.load(file) print(data_json) print(data_json[0]) print(data_json[1]) print(data_json[2]) print(data_json[3]) print(data_json[4]) print(data_json[5]) print(data_json[6]) print(data_json[5][0]) print(d...
16.766667
44
0.691849
0
0
0
0
0
0
0
0
56
0.111332
7fce7a6d8d2ce871e7042ada46c6923907411052
257
py
Python
api_python/app/models/classes_basicas/Empregado.py
uninassau-2020-2/proj-grupo5
ea7ca233004860a432f7301c72bde03fccce5f92
[ "CC0-1.0" ]
null
null
null
api_python/app/models/classes_basicas/Empregado.py
uninassau-2020-2/proj-grupo5
ea7ca233004860a432f7301c72bde03fccce5f92
[ "CC0-1.0" ]
null
null
null
api_python/app/models/classes_basicas/Empregado.py
uninassau-2020-2/proj-grupo5
ea7ca233004860a432f7301c72bde03fccce5f92
[ "CC0-1.0" ]
null
null
null
from app.models.classes_basicas.Pessoa import Pessoa class Empregado(Pessoa): id_empregado = None def getIdEmpregado(self): return self.id_empregado def setIdEmpregado(self, id_empregado): self.id_empregado = id_empregado
23.363636
52
0.723735
203
0.789883
0
0
0
0
0
0
0
0