hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
77f23de07c25946522c768f1ef7e8ffca7391f96
2,272
py
Python
qsrlib/src/qsrlib_qsrs/qsr_tpcc.py
alexiatoumpa/QSR_Detector
ff92a128dddb613690a49a7b4130afeac0dd4381
[ "MIT" ]
15
2015-06-15T16:50:37.000Z
2022-03-27T09:25:56.000Z
qsrlib/src/qsrlib_qsrs/qsr_tpcc.py
alexiatoumpa/QSR_Detector
ff92a128dddb613690a49a7b4130afeac0dd4381
[ "MIT" ]
205
2015-01-22T12:02:59.000Z
2022-03-29T11:59:55.000Z
qsrlib/src/qsrlib_qsrs/qsr_tpcc.py
alexiatoumpa/QSR_Detector
ff92a128dddb613690a49a7b4130afeac0dd4381
[ "MIT" ]
16
2015-02-04T23:13:18.000Z
2022-03-08T13:45:53.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division from qsrlib_qsrs.qsr_triadic_abstractclass import QSR_Triadic_1t_Abstractclass import math
37.245902
108
0.559859
77f3d071cf3be67ef3b31b8f16f8ea3ddb7f75dc
9,434
py
Python
baobab/configs/tdlmc_diagonal_config.py
aymgal/baobab
960ddbd55fc4391f2b857f2232af38c45c809ae8
[ "MIT" ]
null
null
null
baobab/configs/tdlmc_diagonal_config.py
aymgal/baobab
960ddbd55fc4391f2b857f2232af38c45c809ae8
[ "MIT" ]
null
null
null
baobab/configs/tdlmc_diagonal_config.py
aymgal/baobab
960ddbd55fc4391f2b857f2232af38c45c809ae8
[ "MIT" ]
null
null
null
import numpy as np from addict import Dict cfg = Dict() cfg.name = 'tdlmc' cfg.seed = 1113 # random seed cfg.bnn_prior_class = 'DiagonalBNNPrior' cfg.n_data = 200 # number of images to generate cfg.train_vs_val = 'train' cfg.components = ['lens_mass', 'external_shear', 'src_light', 'lens_light', 'agn_light'] cfg.chec...
49.39267
178
0.246555
77f68b4f89363b8438a93d741379bb05a3a09d63
1,053
py
Python
arrandmatrix/q17.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
79
2018-03-27T12:37:49.000Z
2022-01-21T10:18:17.000Z
arrandmatrix/q17.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
null
null
null
arrandmatrix/q17.py
pengfei-chen/algorithm_qa
c2ccdcb77004e88279d61e4e433ee49527fc34d6
[ "MIT" ]
27
2018-04-08T03:07:06.000Z
2021-10-30T00:01:50.000Z
""" :matrix,0,. ,matrix -90 48 78 64 -40 64 -81 -7 66 ,: 48 78 -40 64 -7 66 209. ,matrix: -1 -1 -1 -1 2 2 -1 -1 -1 ,: 2 2 4. """ import sys from arrandmatrix.q16 import MaxSum if __name__ == '__main__': my_matrix = [ [-90, 48, 78], [64, -40, 64], [-81, -7, 66] ] ...
18.155172
69
0.545109
77f69a445572611cb4e740401ece731d7139aa76
842
py
Python
registro/migrations/0001_initial.py
lokcito/salute
655a9407ca725785527f486b60162e406d140bfa
[ "bzip2-1.0.6" ]
null
null
null
registro/migrations/0001_initial.py
lokcito/salute
655a9407ca725785527f486b60162e406d140bfa
[ "bzip2-1.0.6" ]
null
null
null
registro/migrations/0001_initial.py
lokcito/salute
655a9407ca725785527f486b60162e406d140bfa
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-22 00:26 from django.db import migrations, models
32.384615
114
0.589074
77f7e72e1c1010465e3c08a2178c53ca02ebd59a
362
py
Python
Beginner/Easy Math/easy_math.py
agnisain123/CodeChef-1
c6316b179e4b055eb17ead9df8f93505d8fc1166
[ "Apache-2.0" ]
null
null
null
Beginner/Easy Math/easy_math.py
agnisain123/CodeChef-1
c6316b179e4b055eb17ead9df8f93505d8fc1166
[ "Apache-2.0" ]
null
null
null
Beginner/Easy Math/easy_math.py
agnisain123/CodeChef-1
c6316b179e4b055eb17ead9df8f93505d8fc1166
[ "Apache-2.0" ]
null
null
null
t=int(input()) for _ in range(t): n=int(input()) a=list(map(int, input().split())) max_sum=0 for j in range(n): for k in range(j+1, n): num=a[j]*a[k] add=0 while(num!=0): add+=num%10 num=num//10 if max_sum<add: ...
22.625
37
0.428177
77fb88e214d8327d25cb3dbd91a4d85fb6136d9e
5,686
py
Python
openapi_client/models/validation_error.py
brighthive/jdx-client-api-python
ed94c578a6c9a5e9aadf8764439c22783ac1d9d5
[ "Apache-2.0" ]
null
null
null
openapi_client/models/validation_error.py
brighthive/jdx-client-api-python
ed94c578a6c9a5e9aadf8764439c22783ac1d9d5
[ "Apache-2.0" ]
null
null
null
openapi_client/models/validation_error.py
brighthive/jdx-client-api-python
ed94c578a6c9a5e9aadf8764439c22783ac1d9d5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ JDX reference application API This is a collection of schemas and endpoints for the various JDX, Concentric Sky facing REST endpoints, the schemas define an API contract of sorts between the request and response expectations of the JDX reference application. This API is to be mutually deve...
32.678161
317
0.615195
77fd511d1f33029866da7ab3ca7352cff624cfec
435
py
Python
exercises/play_ground/pg_008.py
EngineerToBe/python-labs
dbedcf1f8ebb4bdf756c732ad65c3b737df62cdf
[ "Apache-2.0" ]
null
null
null
exercises/play_ground/pg_008.py
EngineerToBe/python-labs
dbedcf1f8ebb4bdf756c732ad65c3b737df62cdf
[ "Apache-2.0" ]
null
null
null
exercises/play_ground/pg_008.py
EngineerToBe/python-labs
dbedcf1f8ebb4bdf756c732ad65c3b737df62cdf
[ "Apache-2.0" ]
null
null
null
# Some say that every one year of a humans life is equivalent to seven years of a dogs life. # Write a function named dog_years() that has two parameters named name and age. # The function should compute the age in dog years and return the following string: # "{name}, you are {age} years old in dog years"
43.5
95
0.698851
77ff924bd9452e672bd6d921994120546cb53305
102
py
Python
custom_components/matts_gadgets_ceiling_fan/const.py
mattyway/matts_gadgets_ceiling_fan
f7b353fb9752f87569ec1925d08804a83e6715cf
[ "MIT" ]
null
null
null
custom_components/matts_gadgets_ceiling_fan/const.py
mattyway/matts_gadgets_ceiling_fan
f7b353fb9752f87569ec1925d08804a83e6715cf
[ "MIT" ]
null
null
null
custom_components/matts_gadgets_ceiling_fan/const.py
mattyway/matts_gadgets_ceiling_fan
f7b353fb9752f87569ec1925d08804a83e6715cf
[ "MIT" ]
null
null
null
"""Constants for the Matt's Gadgets Ceiling Fan integration.""" DOMAIN = "matts_gadgets_ceiling_fan"
25.5
63
0.77451
ae0070be3b3f3ac59a97d47087604c2b0da1ad24
393
py
Python
src/spaceone/repository/manager/repository_manager/local_repository_manager.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
src/spaceone/repository/manager/repository_manager/local_repository_manager.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
src/spaceone/repository/manager/repository_manager/local_repository_manager.py
choonho/repository
9522ecad06dd4e36c718e203864d1d58574cdbfc
[ "Apache-2.0" ]
null
null
null
from spaceone.repository.manager.repository_manager import RepositoryManager
24.5625
76
0.628499
ae03795c6c2f7e8cd5507cfab2b5d4572af1aac3
1,522
py
Python
src/python/WMCore/WMBS/MySQL/Files/AddToFileset.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/MySQL/Files/AddToFileset.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/MySQL/Files/AddToFileset.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _AddToFileset_ MySQL implementation of Files.AddToFileset """ import time from WMCore.Database.DBFormatter import DBFormatter
36.238095
84
0.580158
7ac3121e87d675bdde978afec9d75c5cc0beed90
537
py
Python
geo/models/keras/evaluation.py
stefantaubert/life
14fe8c0d631eb22f6c3f9e41430dbcfcd1718012
[ "MIT" ]
2
2018-06-28T13:02:35.000Z
2018-12-25T08:58:26.000Z
geo/models/keras/evaluation.py
stefantaubert/life
14fe8c0d631eb22f6c3f9e41430dbcfcd1718012
[ "MIT" ]
null
null
null
geo/models/keras/evaluation.py
stefantaubert/life
14fe8c0d631eb22f6c3f9e41430dbcfcd1718012
[ "MIT" ]
null
null
null
import module_support_main import pandas as pd import mrr import numpy as np import settings_main as settings import get_ranks
29.833333
76
0.724395
7ac3b18e2b2f5eb9e5b456e6eaeeeea667be53a4
2,210
py
Python
backend/src/Blueprints/Posts.py
mechaadi/OnlineLawyerSuite
a5debc337afe3f3693978177bf53d7646ae3536b
[ "MIT" ]
3
2020-05-31T12:31:16.000Z
2021-08-29T00:00:01.000Z
backend/src/Blueprints/Posts.py
mechaadi/OnlineLawyerSuite
a5debc337afe3f3693978177bf53d7646ae3536b
[ "MIT" ]
21
2020-05-28T16:16:03.000Z
2022-02-27T06:51:53.000Z
backend/src/Blueprints/Posts.py
mechaadi/OnlineLawyerSuite
a5debc337afe3f3693978177bf53d7646ae3536b
[ "MIT" ]
null
null
null
from flask import Flask, Blueprint, g, request from src.model import Post, File from src.db import db from src.Middlewares.AuthMiddleware import * from werkzeug.utils import secure_filename import os import dateutil.parser as dt post_bp = Blueprint('post', __name__, url_prefix='/posts')
24.555556
95
0.609502
7ac6dc3dc3bb8ad5ce9781cd7166fbd71e9510f9
9,349
py
Python
felpy/analysis/optics/complex/coherence.py
twguest/FELpy
0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd
[ "Apache-2.0" ]
1
2021-03-15T14:04:19.000Z
2021-03-15T14:04:19.000Z
felpy/analysis/optics/complex/coherence.py
twguest/FELpy
0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd
[ "Apache-2.0" ]
2
2021-11-27T11:55:48.000Z
2021-11-27T11:56:26.000Z
felpy/analysis/optics/complex/coherence.py
twguest/FELpy
0ac9dd965b0d8e04dddbf2c9aef5ac137d1f0dfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 15 14:24:28 2020 @author: twguest """ import os import numpy as np from time import time from wpg import srwlib from felpy.model.tools import radial_profile #from wpg.wpg_uti_wf import get_axis from tqdm import tqdm from felpy.utils.job_utils imp...
27.578171
93
0.568403
7ac87bf72cc8a3c3039638b11a435af514a8fc27
911
py
Python
training_program_2019/core_python/basic/threading_join.py
jeffrey-zhang/learn
7d9d53f955f0424ad4c68f69d5538867e5b7fa98
[ "Apache-2.0" ]
1
2020-10-12T01:23:51.000Z
2020-10-12T01:23:51.000Z
training_program_2019/core_python/basic/threading_join.py
jeffrey-zhang/learn
7d9d53f955f0424ad4c68f69d5538867e5b7fa98
[ "Apache-2.0" ]
1
2020-10-11T10:38:21.000Z
2020-10-11T10:38:21.000Z
training_program_2019/core_python/basic/threading_join.py
jeffrey-zhang/learn
7d9d53f955f0424ad4c68f69d5538867e5b7fa98
[ "Apache-2.0" ]
1
2020-09-07T07:22:54.000Z
2020-09-07T07:22:54.000Z
import threading import time products = [] condition = threading.Condition()
24.621622
95
0.594951
7ac89552408a022b01f6bab28396624e4b438a5a
2,168
py
Python
tests/meltano/core/test_utils.py
Mu-L/meltano
7bf8f370608ee9a8833b33ea94112c6e219c8161
[ "MIT" ]
null
null
null
tests/meltano/core/test_utils.py
Mu-L/meltano
7bf8f370608ee9a8833b33ea94112c6e219c8161
[ "MIT" ]
null
null
null
tests/meltano/core/test_utils.py
Mu-L/meltano
7bf8f370608ee9a8833b33ea94112c6e219c8161
[ "MIT" ]
null
null
null
import pytest # noqa: F401 from meltano.core.utils import flatten, nest, pop_at_path, set_at_path
27.1
72
0.565959
7ac9a5104e19b66025a9a8ecc99a6c8ec491db7d
927
py
Python
phc/easy/diagnostic_report.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
1
2020-07-22T12:46:58.000Z
2020-07-22T12:46:58.000Z
phc/easy/diagnostic_report.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
54
2019-10-09T16:19:04.000Z
2022-01-19T20:28:59.000Z
phc/easy/diagnostic_report.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
2
2019-10-30T19:54:43.000Z
2020-12-03T18:57:15.000Z
import pandas as pd from phc.easy.frame import Frame from phc.easy.abstract.fhir_service_patient_item import FhirServicePatientItem
26.485714
78
0.638619
7ac9c5a18f03b6f72c0a1607e900467a67c17aa0
1,048
py
Python
tests/performance/test_mm_lazy_eval.py
varun19299/FeatherMap
a3991ce48eed98584bc12d6ddcb6409ef3db5d60
[ "MIT" ]
14
2020-11-05T00:24:40.000Z
2022-03-30T15:22:31.000Z
tests/performance/test_mm_lazy_eval.py
varun19299/FeatherMap
a3991ce48eed98584bc12d6ddcb6409ef3db5d60
[ "MIT" ]
4
2020-10-01T00:46:39.000Z
2021-02-26T23:38:09.000Z
tests/performance/test_mm_lazy_eval.py
varun19299/FeatherMap
a3991ce48eed98584bc12d6ddcb6409ef3db5d60
[ "MIT" ]
2
2020-11-09T13:09:10.000Z
2021-02-18T11:09:32.000Z
import torch from feathermap.utils import timed from math import sqrt dim_in = 2 ** 14 dim_out = 2 ** 4 A = torch.randn(dim_in, dim_out) B = torch.randn(dim_out, dim_in) C = torch.rand(dim_in, dim_in) D = torch.rand(dim_in, dim_in) E = torch.rand(1, dim_out) F = torch.rand(dim_out, dim_in) G = torch.rand(int(sqrt(dim...
18.714286
52
0.578244
7ad04a1e5c739e7d4690a2753dc470af7567beec
785
py
Python
PythonWeb/example/App/urls.py
JimouChen/python-application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
1
2020-08-09T12:47:27.000Z
2020-08-09T12:47:27.000Z
PythonWeb/example/App/urls.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
PythonWeb/example/App/urls.py
JimouChen/Python_Application
b7b16506a17e2c304d1c5fabd6385e96be211c56
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.urls import path from App import views app_name = 'App' urlpatterns = [ path('', views.home, name='home'), # path('cud/', views.handle_data, name='handle_data'), # path('search/', views.find_data, name='search'), # sql path('rawsql/', views.ra...
27.068966
66
0.63949
7ad2462093f3bfe8307d27ce00eeee4b819dafcf
5,098
py
Python
carla_walker_agent/src/carla_walker_agent/carla_walker_agent.py
umateusz/ros-bridge
e1a99d94eca9fa82c7bfb8417d2282ef6939d8fa
[ "MIT" ]
null
null
null
carla_walker_agent/src/carla_walker_agent/carla_walker_agent.py
umateusz/ros-bridge
e1a99d94eca9fa82c7bfb8417d2282ef6939d8fa
[ "MIT" ]
null
null
null
carla_walker_agent/src/carla_walker_agent/carla_walker_agent.py
umateusz/ros-bridge
e1a99d94eca9fa82c7bfb8417d2282ef6939d8fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # """ Agent for Walker """ import math from nav_msgs.msg import Path, Odometry from std_msgs.msg import Float64 from geometry_msgs.msg imp...
29.988235
92
0.594547
7ad5b9de70a9e9b65388bd37817ad835c2ba9f1f
5,125
py
Python
megyr/config_validation.py
ExcaliburZero/megyr
f5543cebe0562c78b5d3c710bd6f11c0efbff25b
[ "MIT" ]
1
2020-11-17T20:35:09.000Z
2020-11-17T20:35:09.000Z
megyr/config_validation.py
ExcaliburZero/megyr
f5543cebe0562c78b5d3c710bd6f11c0efbff25b
[ "MIT" ]
17
2018-09-25T18:37:17.000Z
2020-03-31T03:54:36.000Z
megyr/config_validation.py
ExcaliburZero/megyr
f5543cebe0562c78b5d3c710bd6f11c0efbff25b
[ "MIT" ]
null
null
null
from typing import Any, Dict, List def nested_in(config: Dict[str, Any], nested_keys: List[str]) -> bool: """ Checks if the given nested keys are within the given dict. Returns false if any of the intermediate keys or the final key are not nested in the dict. >>> config = {} >>> nested_in(con...
33.717105
202
0.606244
7ad6399647944ee35628a46c260ef1d398254324
81
py
Python
src/polytropon/__init__.py
xhlulu/polytropon
fd4df35a479f17ca1e3f568d96a95c1b8b5b518f
[ "MIT" ]
14
2022-03-02T10:25:22.000Z
2022-03-13T01:22:08.000Z
src/polytropon/__init__.py
xhlulu/polytropon
fd4df35a479f17ca1e3f568d96a95c1b8b5b518f
[ "MIT" ]
2
2022-03-02T15:56:37.000Z
2022-03-29T17:40:34.000Z
src/polytropon/__init__.py
xhlulu/polytropon
fd4df35a479f17ca1e3f568d96a95c1b8b5b518f
[ "MIT" ]
2
2022-03-02T15:59:47.000Z
2022-03-03T01:14:45.000Z
from . import adapters, utils from .polytropon import VARIANT2CLASS, SkilledMixin
40.5
51
0.839506
7ad705963a4ae17d0227c03011bc22494dcbdf66
674
py
Python
cdhweb/pages/tests/test_context_processors.py
bwhicks/cdh-web
d6002dc1933a4d6e97f5459aafc9ab92cb1f8050
[ "Apache-2.0" ]
1
2017-11-21T16:02:33.000Z
2017-11-21T16:02:33.000Z
cdhweb/pages/tests/test_context_processors.py
bwhicks/cdh-web
d6002dc1933a4d6e97f5459aafc9ab92cb1f8050
[ "Apache-2.0" ]
367
2017-08-14T16:05:41.000Z
2021-11-03T15:29:18.000Z
cdhweb/pages/tests/test_context_processors.py
bwhicks/cdh-web
d6002dc1933a4d6e97f5459aafc9ab92cb1f8050
[ "Apache-2.0" ]
5
2017-09-08T21:08:49.000Z
2020-10-02T04:39:37.000Z
import pytest from wagtail.core.models import Page from cdhweb.pages.context_processors import page_intro from cdhweb.pages.models import LinkPage, PageIntro
32.095238
75
0.718101
7ad8ae63fb76ddfd06eb6578ef0cef5a87d9b13a
641
py
Python
tri_selection.py
Erwanexyz/Python
1197c0a27530b60e6cbe048758bfe86f0e159e95
[ "MIT" ]
1
2017-09-07T09:14:55.000Z
2017-09-07T09:14:55.000Z
tri_selection.py
Erwanexyz/Python
1197c0a27530b60e6cbe048758bfe86f0e159e95
[ "MIT" ]
null
null
null
tri_selection.py
Erwanexyz/Python
1197c0a27530b60e6cbe048758bfe86f0e159e95
[ "MIT" ]
null
null
null
def tri_selection(tableau): '''tri_selection (list(object) -> list(object)): trie un tableau''' # Initialisation '''taille (int) : taille du tableau''' taille = len(tableau) # Dbut du traitement # Pour chaque lment tableau[i] du tableau for i in range(taille): # Pour chaque j al...
37.705882
79
0.609984
7ad8d19aeb7a5e334f966fd5933774700a903b04
5,297
py
Python
main.py
AKBakshay/DCNet
94d30ae44c95a8db7f7474fcf8cf63347271c1cb
[ "MIT" ]
3
2021-04-18T07:56:18.000Z
2021-08-15T11:30:25.000Z
main.py
AKBakshay/DCNet
94d30ae44c95a8db7f7474fcf8cf63347271c1cb
[ "MIT" ]
null
null
null
main.py
AKBakshay/DCNet
94d30ae44c95a8db7f7474fcf8cf63347271c1cb
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import torch import torch.utils.data import yaml from torchvision import transforms import src.config.config as config from src.model.nn.dcnet import DCNet from src.test.predictor import Predictor from src.test.tester import Tester from src.train.trainer import Trainer ...
32.496933
92
0.570512
7ada8d12418618cb46c91bcc7ce0df76b2c106a3
1,645
py
Python
metagenscope_cli/cli/run_cli.py
LongTailBio/python-metagenscope
0c29042774a09e832fcecd0662657ac6e4895dea
[ "MIT" ]
null
null
null
metagenscope_cli/cli/run_cli.py
LongTailBio/python-metagenscope
0c29042774a09e832fcecd0662657ac6e4895dea
[ "MIT" ]
6
2018-10-30T23:51:55.000Z
2018-11-01T20:41:23.000Z
metagenscope_cli/cli/run_cli.py
LongTailBio/python-metagenscope
0c29042774a09e832fcecd0662657ac6e4895dea
[ "MIT" ]
null
null
null
"""CLI to run commands on MGS server.""" from sys import stderr import click from .utils import add_authorization
29.909091
90
0.646809
7adab11f81fe9641b079dc6d9cfecadb798ccba4
165
py
Python
ergo/contrib/utils/utils.py
bmillwood/ergo
34be736f1979ad7f1f130bb90728270cb58dbfe8
[ "MIT" ]
93
2020-04-16T03:49:55.000Z
2022-03-26T14:56:29.000Z
ergo/contrib/utils/utils.py
bmillwood/ergo
34be736f1979ad7f1f130bb90728270cb58dbfe8
[ "MIT" ]
326
2020-03-25T17:49:11.000Z
2021-03-25T03:19:51.000Z
ergo/contrib/utils/utils.py
bmillwood/ergo
34be736f1979ad7f1f130bb90728270cb58dbfe8
[ "MIT" ]
26
2020-03-25T03:18:58.000Z
2022-03-18T21:19:11.000Z
from datetime import timedelta
23.571429
54
0.715152
7add913572dab6aa965813722b95547e25bae2fd
248
py
Python
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
uts/session_py/5.py
viad00/code_olymp
90f20f9fd075e8967d02baf7554fcf24f4ae089c
[ "MIT" ]
null
null
null
import sys sys.stdin = open("input.txt", "r") sys.stdout = open("output.txt", "w") n, m = map(int, input().split()) n_mas = [0 for i in range(n)] for i in range(m): for j in list(map(int, input().split())): n_mas[j-1] += 1 print(*n_mas)
27.555556
45
0.584677
7addb1ac9be726107051f2594c1af6bf1d661239
9,183
py
Python
nitroml/automl/ensemble_selection/subpipeline.py
google/nitroml
5eabdbe6de85ff7fdae4fefda7547c0c031f9431
[ "Apache-2.0" ]
43
2020-09-13T18:07:15.000Z
2022-01-05T19:05:28.000Z
nitroml/automl/ensemble_selection/subpipeline.py
google/nitroml
5eabdbe6de85ff7fdae4fefda7547c0c031f9431
[ "Apache-2.0" ]
4
2020-09-14T13:15:09.000Z
2021-11-21T11:21:13.000Z
nitroml/automl/ensemble_selection/subpipeline.py
google/nitroml
5eabdbe6de85ff7fdae4fefda7547c0c031f9431
[ "Apache-2.0" ]
5
2020-09-14T13:03:04.000Z
2021-10-21T01:55:48.000Z
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.453744
86
0.732658
7ade72c37577df6464ca8dc5d4f8c8a62f6533b2
246
py
Python
ndn_python_repo/handle/__init__.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
5
2020-03-23T01:32:12.000Z
2020-10-03T14:36:19.000Z
ndn_python_repo/handle/__init__.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
48
2020-01-24T04:29:14.000Z
2020-12-11T09:08:50.000Z
ndn_python_repo/handle/__init__.py
susmit85/ndn-python-repo
45a76bd3e78b0157e364413d62d3aaa51cd20353
[ "Apache-2.0" ]
6
2020-02-20T00:05:33.000Z
2020-11-27T05:27:14.000Z
from .read_handle import ReadHandle from .command_handle_base import CommandHandle from .write_command_handle import WriteCommandHandle from .delete_command_handle import DeleteCommandHandle from .tcp_bulk_insert_handle import TcpBulkInsertHandle
49.2
55
0.902439
7ade9e743940d11d6af70b1681562c89779125eb
23,545
py
Python
main/academy/views.py
UsamaKashif/studentutor
7aa5407ac81134a49e474726220e48beaadc9390
[ "MIT" ]
7
2021-01-17T23:10:15.000Z
2021-02-01T21:35:36.000Z
main/academy/views.py
DiveshTheReal/studentutor
0d3ef57887bde4dd2ee40d68015598f9c8052ffd
[ "MIT" ]
7
2021-01-17T15:10:47.000Z
2022-03-12T00:53:49.000Z
main/academy/views.py
DiveshTheReal/studentutor
0d3ef57887bde4dd2ee40d68015598f9c8052ffd
[ "MIT" ]
3
2021-01-18T09:36:16.000Z
2021-01-20T16:29:40.000Z
from django.shortcuts import render,redirect from django.contrib.auth.models import Group from .forms import AcademySignUpForm, AcademyProfile, ProfilePicture, PostAnAdForm, AboutAcademyForm from django.contrib.auth.models import User from django.views.generic import RedirectView from .decorators import unauthentic...
33.302687
149
0.615715
7adffba1ca679eea400ec7eeac7d960a50759561
1,019
py
Python
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
null
null
null
exercises/Desafio042.py
zThiago15/Curso-em-Video
ef25e0497edb79bdfbe71fde485f4dafc0d2a0e6
[ "MIT" ]
1
2021-07-24T21:39:26.000Z
2021-07-24T21:39:26.000Z
cores = {'limpar':'\033[m', 'vermelho':'\033[1;31m','ciano':'\033[1;36m','azul':'\033[1;34m','amarelo':'\033[1;33m','verde':'\033[1;32m'} print('===== Tipo de Tringulo -> Aprimoramento do Desafio 35 =====') print() s1 = float(input('Primeiro segmento: ')) s2 = float(input('Segundo segmento: ')) s3 = float(input('Terce...
48.52381
137
0.618253
7ae0cbb3da1cad9d593dd273b1430c763adce93f
2,628
py
Python
bin/Lib/tkinter/test/support.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
36
2015-02-04T10:43:31.000Z
2022-03-30T13:01:12.000Z
bin/Lib/tkinter/test/support.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
9
2015-03-17T05:56:16.000Z
2021-11-17T09:31:50.000Z
bin/Lib/tkinter/test/support.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
22
2015-05-13T17:37:35.000Z
2022-01-25T06:24:42.000Z
import sys import tkinter import unittest from test.support import requires def simulate_mouse_click(widget, x, y): """Generate proper events to click at the x, y position (tries to act like an X server).""" widget.event_generate('<Enter>', x=0, y=0) widget.event_generate('<Motion>', x=x, y=y) wid...
28.565217
73
0.603501
7ae5c9480c9d4736f4023646d3b8790e5fc94459
924
py
Python
setup.py
impergator493/PySeus
faa7e5741acea9c3b8e0acad066905fa3b1c301b
[ "X11" ]
2
2020-02-17T09:20:50.000Z
2022-03-22T13:05:22.000Z
setup.py
impergator493/PySeus
faa7e5741acea9c3b8e0acad066905fa3b1c301b
[ "X11" ]
null
null
null
setup.py
impergator493/PySeus
faa7e5741acea9c3b8e0acad066905fa3b1c301b
[ "X11" ]
1
2021-05-26T08:14:58.000Z
2021-05-26T08:14:58.000Z
from io import open from setuptools import setup, find_packages setup( name='pyseus', version='0.1', description='PySeus is a minimal viewer for medical imaging data.', long_description=open('README.md', encoding='utf-8').read(), long_description_content_type='text/markdown', url='http://github...
24.315789
71
0.58658
7ae6eee9c017c38595289696d2aff8e25f24cb29
1,753
py
Python
databricks/pixels/path_extractor.py
dmoore247/pixels
cf78ab016530c42bc36538a9b812fe23107f87d7
[ "Apache-2.0" ]
2
2021-03-28T18:50:50.000Z
2021-08-09T02:06:15.000Z
databricks/pixels/path_extractor.py
dmoore247/pixels
cf78ab016530c42bc36538a9b812fe23107f87d7
[ "Apache-2.0" ]
null
null
null
databricks/pixels/path_extractor.py
dmoore247/pixels
cf78ab016530c42bc36538a9b812fe23107f87d7
[ "Apache-2.0" ]
null
null
null
from pyspark.ml.pipeline import Transformer import pyspark.sql.functions as f import pyspark.sql.types as t from pyspark.sql import DataFrame
42.756098
111
0.557901
7ae87b35274b2c9c47cbad11cf4cc8f53a9dfec9
9,371
py
Python
microbenchmarks/sort2_20.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
microbenchmarks/sort2_20.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
microbenchmarks/sort2_20.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
print f([3, 12, 16, 8, 17, 6, 13, 0, 4, 15, 1, 14, 11, 18, 10, 5, 9, 7, 2, 19]) print f([2, 6, 11, 4, 7, 18, 19, 10, 15, 13, 3, 0, 17, 5, 8, 1, 14, 9, 16, 12]) print f([6, 12, 10, 7, 19, 15, 14, 5, 16, 1, 4, 11, 13, 2, 18, 9, 0, 3, 17, 8]) print f([1, 17, 13, 8, 9, 19, 18, 6, 5, 10, 12, 14, 2, 15, 0, 4, 11, 16, 7, 3]) ...
46.162562
79
0.384377
7ae91d54f6551b3200a7ad1c7b4b024eb589bb18
91
py
Python
BackendBaggie/cartview/apps.py
Baggie-App/Updateapi
80f200d7ffd4695e6348ce6bb9a7a31a6b821e77
[ "MIT" ]
null
null
null
BackendBaggie/cartview/apps.py
Baggie-App/Updateapi
80f200d7ffd4695e6348ce6bb9a7a31a6b821e77
[ "MIT" ]
null
null
null
BackendBaggie/cartview/apps.py
Baggie-App/Updateapi
80f200d7ffd4695e6348ce6bb9a7a31a6b821e77
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.166667
33
0.758242
7aeb3ca58882967e00e1a0f51dac95fb61f266aa
384
py
Python
s04_variaveis_tipos_de_dados/s04_exercicios/s04_exercicio_07.py
adeogliari/GeekUniversity_Python
1b6badc45ca1dfbaa2f42196fb2dedac417b866e
[ "MIT" ]
null
null
null
s04_variaveis_tipos_de_dados/s04_exercicios/s04_exercicio_07.py
adeogliari/GeekUniversity_Python
1b6badc45ca1dfbaa2f42196fb2dedac417b866e
[ "MIT" ]
null
null
null
s04_variaveis_tipos_de_dados/s04_exercicios/s04_exercicio_07.py
adeogliari/GeekUniversity_Python
1b6badc45ca1dfbaa2f42196fb2dedac417b866e
[ "MIT" ]
null
null
null
""" 7) Leia uma temperatura em graus Fahrenheit e apresente-a convertida em graus Celsius. A frmula de converso : C = (F-32.0)*5.0/9.0, sendo C a temperatura em Celsius e F a temperatura em Fahrenheit. """ fahrenheit = float(input('Digite a temperatura em graus Fahrenheit F: \n')) print(f'A temperatura em graus Celsi...
48
200
0.716146
7aec73e5242fe246bd53368966dcb8b97fdec44b
862
py
Python
software/openvisualizer/openvisualizer/openType/typeRssi.py
pedrohenriquegomes/openwsn-sw
24761e01dc1e8dbc351e61bd927c57facc64c155
[ "BSD-3-Clause" ]
26
2015-01-31T23:56:36.000Z
2021-04-10T20:26:11.000Z
software/openvisualizer/openvisualizer/openType/typeRssi.py
pedrohenriquegomes/openwsn-sw
24761e01dc1e8dbc351e61bd927c57facc64c155
[ "BSD-3-Clause" ]
33
2015-03-18T15:54:01.000Z
2018-03-08T14:28:50.000Z
software/openvisualizer/openvisualizer/openType/typeRssi.py
pedrohenriquegomes/openwsn-sw
24761e01dc1e8dbc351e61bd927c57facc64c155
[ "BSD-3-Clause" ]
80
2015-01-07T08:54:58.000Z
2020-05-06T21:33:41.000Z
# Copyright (c) 2010-2013, Regents of the University of California. # All rights reserved. # # Released under the BSD 3-Clause license as published at the link below. # https://openwsn.atlassian.net/wiki/display/OW/License import logging log = logging.getLogger('typeRssi') log.setLevel(logging.ERROR) log.addHandler...
27.806452
79
0.552204
7aec991a251b8b5ba72c6f603e780ca170fd3d9c
16,092
py
Python
SMI/pycopia/SMI/Compile.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
89
2015-03-26T11:25:20.000Z
2022-01-12T06:25:14.000Z
SMI/pycopia/SMI/Compile.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
1
2015-07-05T03:27:43.000Z
2015-07-11T06:21:20.000Z
SMI/pycopia/SMI/Compile.py
kdart/pycopia
1446fabaedf8c6bdd4ab1fc3f0ea731e0ef8da9d
[ "Apache-2.0" ]
30
2015-04-30T01:35:54.000Z
2022-01-12T06:19:49.000Z
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 ...
35.135371
108
0.59222
7aed93f1001f0b20c9235af1ae0433ce9cdab764
960
py
Python
burotel/indico_burotel/migrations/20211029_1202_564d660d4ddb_create_count_weekdays_function.py
bpedersen2/indico-plugins-cern
c4f06d11d981c316fc8de2892758484deb58e2f5
[ "MIT" ]
null
null
null
burotel/indico_burotel/migrations/20211029_1202_564d660d4ddb_create_count_weekdays_function.py
bpedersen2/indico-plugins-cern
c4f06d11d981c316fc8de2892758484deb58e2f5
[ "MIT" ]
null
null
null
burotel/indico_burotel/migrations/20211029_1202_564d660d4ddb_create_count_weekdays_function.py
bpedersen2/indico-plugins-cern
c4f06d11d981c316fc8de2892758484deb58e2f5
[ "MIT" ]
null
null
null
"""Create count_weekdays function Revision ID: 564d660d4ddb Revises: Create Date: 2021-10-29 12:02:59.409012 """ import textwrap from alembic import op from sqlalchemy.sql.ddl import CreateSchema, DropSchema # revision identifiers, used by Alembic. revision = '564d660d4ddb' down_revision = None branch_labels = Non...
23.414634
91
0.730208
7aef5d12e97ce42126f8f1a2e3852a9ec848f12a
354
py
Python
pywinrt/winsdk/windows/graphics/capture/interop/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
3
2022-02-14T14:53:08.000Z
2022-03-29T20:48:54.000Z
pywinrt/winsdk/windows/graphics/capture/interop/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
4
2022-01-28T02:53:52.000Z
2022-02-26T18:10:05.000Z
pywinrt/winsdk/windows/graphics/capture/interop/__init__.py
pywinrt/python-winsdk
1e2958a712949579f5e84d38220062b2cec12511
[ "MIT" ]
null
null
null
# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4 import winsdk _ns_module = winsdk._import_ns_module("Windows.Graphics.Capture.Interop") try: import winsdk.windows.graphics.capture except Exception: pass create_for_monitor = _ns_module.create_for_monitor create_for_wind...
25.285714
86
0.805085
7aef5d40168535dab3efb9c32c0b60a29e7ae107
2,327
py
Python
models/utils.py
ZephyrII/competitive_colaboration
a557d1e23ef2c0b8e3794f085a79bfffb860f9df
[ "MIT" ]
357
2019-03-12T07:17:32.000Z
2022-03-24T14:13:24.000Z
models/utils.py
DevLooptt/SJTU-CS386-2021Fall-DIP-Project
2167e089be80ca01911ba55c07b83c9f26f147e7
[ "MIT" ]
27
2019-03-11T19:16:11.000Z
2021-05-30T13:30:19.000Z
models/utils.py
DevLooptt/SJTU-CS386-2021Fall-DIP-Project
2167e089be80ca01911ba55c07b83c9f26f147e7
[ "MIT" ]
66
2019-03-27T14:16:22.000Z
2021-11-11T12:40:33.000Z
from __future__ import division import math import torch import torch.nn as nn
34.220588
107
0.644177
7af03651a5bc87d941460e143a24cf2c0a69bf1a
516
py
Python
seminar-roulette/backend/migrations/0017_auto_20201029_2151.py
olliegardner/seminar-roulette
c8330258778dd7f71b1289c5dfe611e5637cf71d
[ "MIT" ]
null
null
null
seminar-roulette/backend/migrations/0017_auto_20201029_2151.py
olliegardner/seminar-roulette
c8330258778dd7f71b1289c5dfe611e5637cf71d
[ "MIT" ]
null
null
null
seminar-roulette/backend/migrations/0017_auto_20201029_2151.py
olliegardner/seminar-roulette
c8330258778dd7f71b1289c5dfe611e5637cf71d
[ "MIT" ]
1
2020-10-07T16:21:59.000Z
2020-10-07T16:21:59.000Z
# Generated by Django 3.1.2 on 2020-10-29 21:51 from django.db import migrations
23.454545
65
0.606589
7af0730950718ad5e375da7065398646acf80fd5
1,005
py
Python
saleor/graphql/shipping/resolvers.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2022-03-25T00:21:11.000Z
2022-03-25T00:21:11.000Z
saleor/graphql/shipping/resolvers.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
86
2021-11-01T04:51:55.000Z
2022-03-30T16:30:16.000Z
saleor/graphql/shipping/resolvers.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2021-12-28T18:02:49.000Z
2021-12-28T18:02:49.000Z
from prices import MoneyRange from ...shipping import models from ...shipping.interface import ShippingMethodData from ..channel import ChannelQsContext from ..translations.resolvers import resolve_translation
32.419355
83
0.774129
7af19d3043c8b6728ea0912a528bf1eada7c558c
2,806
py
Python
scripts/simulator_experiments/real_government_strategy_experiments.py
alfred100p/PandemicSimulator
2cb22c4b5c55d54a420fd104c74918d76189feb9
[ "Apache-2.0" ]
null
null
null
scripts/simulator_experiments/real_government_strategy_experiments.py
alfred100p/PandemicSimulator
2cb22c4b5c55d54a420fd104c74918d76189feb9
[ "Apache-2.0" ]
null
null
null
scripts/simulator_experiments/real_government_strategy_experiments.py
alfred100p/PandemicSimulator
2cb22c4b5c55d54a420fd104c74918d76189feb9
[ "Apache-2.0" ]
null
null
null
# Confidential, Copyright 2020, Sony Corporation of America, All rights reserved. from matplotlib import pyplot as plt import pandemic_simulator as ps if __name__ == '__main__': swedish_strategy = [ps.data.StageSchedule(stage=0, end_day=3), ps.data.StageSchedule(stage=1, end_day=None)] ...
45.258065
89
0.580542
7af2b9d69eec342a533a8a7c40f6317b22a86767
3,285
py
Python
EGGS_labrad/clients/ARTIQ_client/DAC_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
2
2021-12-26T05:00:54.000Z
2021-12-30T17:15:49.000Z
EGGS_labrad/clients/ARTIQ_client/DAC_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
EGGS_labrad/clients/ARTIQ_client/DAC_client.py
EGGS-Experiment/EGGS_Control
c29b3ab0e30dcb6e01d1ca3212ac64ad1506143b
[ "MIT" ]
null
null
null
from twisted.internet.defer import inlineCallbacks from EGGS_labrad.clients import GUIClient from EGGS_labrad.config.device_db import device_db from EGGS_labrad.clients.ARTIQ_client.DAC_gui import DAC_gui from copy import deepcopy DACID = 659312 if __name__ == "__main__": from EGGS_labrad.clients import runCl...
37.758621
109
0.60274
7af6e15055517b76f8b5a8e5e342b76b70bd47f6
6,156
py
Python
apps/profiles/views.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
2
2015-11-05T13:47:44.000Z
2020-07-20T19:57:45.000Z
apps/profiles/views.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
null
null
null
apps/profiles/views.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response from datetime import datetime, timedelta from django.contrib.auth.models import User from django.contrib import messages from django.shortcuts import render_to_response, get_object_or_404 from django.template impo...
39.210191
98
0.63564
7af7571d71981a894e8403a4dbebd261f79a20cf
486
py
Python
code/gits_version.py
ineelshah/GITS2.1-I.R.I.S
12c4455ea55920e0de94a76f45b26e3e43cbcced
[ "MIT" ]
1
2021-11-28T12:18:43.000Z
2021-11-28T12:18:43.000Z
code/gits_version.py
ineelshah/GITS2.1-I.R.I.S
12c4455ea55920e0de94a76f45b26e3e43cbcced
[ "MIT" ]
20
2021-11-26T17:59:00.000Z
2022-01-29T10:44:15.000Z
code/gits_version.py
jayrshah98/GITS2.1-I.R.I.S
2891ba27b3309bbc7e8ff25ed221d3f1c78fb9d3
[ "MIT" ]
3
2021-11-28T21:48:50.000Z
2022-01-05T15:44:06.000Z
import subprocess from subprocess import PIPE
24.3
66
0.615226
7af766090d703b356c60d610ebbb2f0858967ab4
5,271
py
Python
tests/data/rings_ringspecs.py
ArdanaCLM/swiftlm
a251c7fa4524bf35c95c15fcc21ec608780b07f4
[ "Apache-2.0" ]
1
2020-09-01T12:34:24.000Z
2020-09-01T12:34:24.000Z
tests/data/rings_ringspecs.py
ArdanaCLM/swiftlm
a251c7fa4524bf35c95c15fcc21ec608780b07f4
[ "Apache-2.0" ]
null
null
null
tests/data/rings_ringspecs.py
ArdanaCLM/swiftlm
a251c7fa4524bf35c95c15fcc21ec608780b07f4
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2015, 2016 Hewlett Packard Enterprise Development LP # (c) Copyright 2017 SUSE 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...
28.803279
75
0.540505
7af83d85dcf1ded1b08cade5086590e8e4f45487
254
py
Python
Maze.py
rcpsilva/BCC740_2021_2_Artificial_Intelligence
fad7c02d155ae377e1f8c2a6c941ea45ec3c2fe6
[ "MIT" ]
null
null
null
Maze.py
rcpsilva/BCC740_2021_2_Artificial_Intelligence
fad7c02d155ae377e1f8c2a6c941ea45ec3c2fe6
[ "MIT" ]
null
null
null
Maze.py
rcpsilva/BCC740_2021_2_Artificial_Intelligence
fad7c02d155ae377e1f8c2a6c941ea45ec3c2fe6
[ "MIT" ]
5
2022-03-23T12:21:31.000Z
2022-03-28T16:47:25.000Z
from pyamaze import maze,COLOR,agent from environments import Maze from agents import MazeAgentDFS, MazeAgentBranchAndBound, MazeAgentAStar env = Maze(8,8) ag = MazeAgentAStar(env) #ag = MazeAgentBranchAndBound(env,40) #ag = MazeAgentDFS(env) ag.act()
23.090909
72
0.795276
7af95ca39bf7740aabcc3f766de8108b97e29b27
921
py
Python
sourcecode/src/vx/spix/Util.py
ivarvb/SPIX
6c757b69c266f738d66164fa643a09f77721880d
[ "MIT" ]
null
null
null
sourcecode/src/vx/spix/Util.py
ivarvb/SPIX
6c757b69c266f738d66164fa643a09f77721880d
[ "MIT" ]
null
null
null
sourcecode/src/vx/spix/Util.py
ivarvb/SPIX
6c757b69c266f738d66164fa643a09f77721880d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import ujson from datetime import datetime
21.418605
54
0.591748
7af9ce8ba99ab0024b0d79ef7600bd2202d6b9e4
41
py
Python
packages/plugins/model-define/tensorflow-cycle-gan-model-define/CycleGAN/image_loader/__init__.py
CandyQiu/pipcook
12d482d6dcfb828bf80fcf908aee2c8ba5e9bd8a
[ "Apache-2.0" ]
2
2020-04-21T05:49:02.000Z
2021-03-01T15:14:29.000Z
packages/plugins/model-define/tensorflow-cycle-gan-model-define/CycleGAN/image_loader/__init__.py
CandyQiu/pipcook
12d482d6dcfb828bf80fcf908aee2c8ba5e9bd8a
[ "Apache-2.0" ]
null
null
null
packages/plugins/model-define/tensorflow-cycle-gan-model-define/CycleGAN/image_loader/__init__.py
CandyQiu/pipcook
12d482d6dcfb828bf80fcf908aee2c8ba5e9bd8a
[ "Apache-2.0" ]
null
null
null
from .image_loader import ImageGenerator
20.5
40
0.878049
7afb55eccc74a4c6a98c9ac3dd757cd060175686
1,005
py
Python
nmea_date_fix.py
hsur/NmeaDateFix
4585dc9541bb2ae87dfc0160cc5006960813a0d3
[ "BSD-2-Clause" ]
null
null
null
nmea_date_fix.py
hsur/NmeaDateFix
4585dc9541bb2ae87dfc0160cc5006960813a0d3
[ "BSD-2-Clause" ]
null
null
null
nmea_date_fix.py
hsur/NmeaDateFix
4585dc9541bb2ae87dfc0160cc5006960813a0d3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # vim:fenc=utf-8 ff=unix ft=python ts=4 sw=4 sts=4 noet : import os import sys import datetime from pynmea2 import NMEASentence, ParseError if len(sys.argv) != 2: print("Usage: %s nmeafile.nmea" % sys.argv[0] ) sys.exit(1) file_path = os.path.abspath(sys.argv[1]) tmp_path = os.p...
29.558824
91
0.649751
7afc056cd047372b424519a16da1dae8715cba34
1,103
py
Python
coinkit/keyspace.py
mflaxman/coink
8ce28ac4ff56e2320bf452d0559b83baf40b2b51
[ "MIT" ]
5
2017-09-06T11:59:50.000Z
2019-02-17T21:02:47.000Z
coinkit/keyspace.py
shea256/coinkit
81e86f4ea3dbf6622953c085016445fb4121fb44
[ "MIT" ]
null
null
null
coinkit/keyspace.py
shea256/coinkit
81e86f4ea3dbf6622953c085016445fb4121fb44
[ "MIT" ]
2
2015-01-23T03:10:25.000Z
2021-11-18T01:58:31.000Z
# -*- coding: utf-8 -*- """ Coinkit ~~~~~ :copyright: (c) 2013 by Halfmoon Labs :license: MIT, see LICENSE for more details. """ import re def int_to_string(integer, keyspace_chars): """ Turn a positive integer into a string. """ if not integer > 0: raise ValueError('integer must be >...
29.810811
74
0.668178
7afcbfcd3c3962e9a985188562c99110c3140f93
18,907
py
Python
cinder/zonemanager/drivers/brocade/brcd_rest_fc_zone_client.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/zonemanager/drivers/brocade/brcd_rest_fc_zone_client.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/zonemanager/drivers/brocade/brcd_rest_fc_zone_client.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# (c) Copyright 2019 Brocade, a Broadcom Company # 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 #...
45.779661
79
0.587825
7afd789557f9eb88e7608f59a30820ee3bb43296
4,233
py
Python
main/models.py
mnecas/bpc_bds_web
3c5d4289d74c053e1225e19cdcbb048994271f57
[ "Apache-2.0" ]
null
null
null
main/models.py
mnecas/bpc_bds_web
3c5d4289d74c053e1225e19cdcbb048994271f57
[ "Apache-2.0" ]
null
null
null
main/models.py
mnecas/bpc_bds_web
3c5d4289d74c053e1225e19cdcbb048994271f57
[ "Apache-2.0" ]
null
null
null
from django.db import models # TODO: Add list of params to the type
30.235714
94
0.697378
bb00617057f78b6193060f769f38f73ce61320ea
1,232
py
Python
eas_lookup/__init__.py
SFDigitalServices/address-microservice-fn-py
37bba144df2cc5a95822ba79c90de48c9dc7beb1
[ "MIT" ]
null
null
null
eas_lookup/__init__.py
SFDigitalServices/address-microservice-fn-py
37bba144df2cc5a95822ba79c90de48c9dc7beb1
[ "MIT" ]
null
null
null
eas_lookup/__init__.py
SFDigitalServices/address-microservice-fn-py
37bba144df2cc5a95822ba79c90de48c9dc7beb1
[ "MIT" ]
null
null
null
""" eas/lookup init file """ import os import json import logging import requests import azure.functions as func from shared_code.common import func_json_response def main(req: func.HttpRequest) -> func.HttpResponse: """ main function for eas/lookup """ logging.info('EAS Lookup processed a request.') try...
30.8
95
0.602273
bb006a911bddb51da85b674ee0ef5ef33b604be7
2,228
py
Python
recipes-bsp/polyos-setup/polyos-setup/polyaudio.py
PolyVection/meta-polyvection
a24fb91c4144e4d6e5fcaa73f456f805e30b751b
[ "MIT" ]
null
null
null
recipes-bsp/polyos-setup/polyos-setup/polyaudio.py
PolyVection/meta-polyvection
a24fb91c4144e4d6e5fcaa73f456f805e30b751b
[ "MIT" ]
null
null
null
recipes-bsp/polyos-setup/polyos-setup/polyaudio.py
PolyVection/meta-polyvection
a24fb91c4144e4d6e5fcaa73f456f805e30b751b
[ "MIT" ]
1
2018-04-13T22:32:38.000Z
2018-04-13T22:32:38.000Z
#!/usr/bin/python3 # Copyright (c) 2017, PolyVection UG. # # Based on configure-edison, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU Lesser General Public License, # version 2.1, as published by the Free Software Foundation. ...
27.170732
76
0.606373
bb015fa5e2c4d8430f9e89af39073bf40a1f5fc0
6,168
py
Python
3dcdrl/create_rollout_videos.py
NicholasSperryGrandhomme/Improving-RL-Navigation-using-TTA
8e0a405589a9b0bd3bd543dda72bf2325ebc9126
[ "MIT" ]
null
null
null
3dcdrl/create_rollout_videos.py
NicholasSperryGrandhomme/Improving-RL-Navigation-using-TTA
8e0a405589a9b0bd3bd543dda72bf2325ebc9126
[ "MIT" ]
null
null
null
3dcdrl/create_rollout_videos.py
NicholasSperryGrandhomme/Improving-RL-Navigation-using-TTA
8e0a405589a9b0bd3bd543dda72bf2325ebc9126
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 21 09:19:33 2018 @author: anonymous """ import os import torch import numpy as np from arguments import parse_a2c_args from multi_env import MultiEnv from models import CNNPolicy from a2c_agent import * from utils import initialize_logging from doom...
33.521739
130
0.600681
bb021a30b50060269f34e2949685cc9a7971c175
6,706
py
Python
napi/tests.py
abakan-zz/napi
314da65bd78e2c716b7efb6deaf3816d8f38f7fd
[ "MIT" ]
null
null
null
napi/tests.py
abakan-zz/napi
314da65bd78e2c716b7efb6deaf3816d8f38f7fd
[ "MIT" ]
1
2015-08-03T00:41:59.000Z
2015-08-07T06:37:26.000Z
napi/tests.py
abakan/napi
314da65bd78e2c716b7efb6deaf3816d8f38f7fd
[ "MIT" ]
null
null
null
from nose.tools import raises import numpy as np from napi import neval from napi.transformers import NapiTransformer, LazyTransformer from napi.transformers import short_circuit_and TRANSFORMERS = [NapiTransformer]#, LazyTransformer] randbools = lambda *n: np.random.randn(*n) < 0 ''' def test_o...
27.710744
82
0.53892
bb037b1a6312e7d97680adcc0f7b31cd176631f1
8,621
py
Python
src/api/impl/review.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
null
null
null
src/api/impl/review.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
null
null
null
src/api/impl/review.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
null
null
null
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2014 the Critic contributors, Opera Software ASA # # 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/LI...
43.540404
91
0.570931
bb037e64dca2ed5aefee607b5004f9b5b50431d4
1,080
py
Python
image_example.py
devonps/DearPyGui-Examples
15093d53f90ec6a2f6a53b7dfc9e0e511e93e27a
[ "MIT" ]
null
null
null
image_example.py
devonps/DearPyGui-Examples
15093d53f90ec6a2f6a53b7dfc9e0e511e93e27a
[ "MIT" ]
null
null
null
image_example.py
devonps/DearPyGui-Examples
15093d53f90ec6a2f6a53b7dfc9e0e511e93e27a
[ "MIT" ]
null
null
null
from dearpygui.core import * from dearpygui.simple import * # callback add_slider_float2("uv_min", default_value=[0, 0], callback=update, min_value=-2, max_value=2) add_slider_float2("uv_max", default_value=[1, 1], callback=update, min_value=-2, max_value=2) add_data("TextureCoordinates", [0, 0, 1, 1]) add_image("...
36
97
0.685185
bb03c2e16d10a68817b5577a1dbdeba0377e167e
8,833
py
Python
runner/runner/main.py
BinalModi/reproserver
2c1f86b67ba57473b507217a3289d92697a09665
[ "BSD-3-Clause" ]
null
null
null
runner/runner/main.py
BinalModi/reproserver
2c1f86b67ba57473b507217a3289d92697a09665
[ "BSD-3-Clause" ]
null
null
null
runner/runner/main.py
BinalModi/reproserver
2c1f86b67ba57473b507217a3289d92697a09665
[ "BSD-3-Clause" ]
null
null
null
from common import database from common import TaskQueues, get_object_store from common.utils import setup_logging, shell_escape from hashlib import sha256 import logging import os import shutil from sqlalchemy.orm import joinedload from sqlalchemy.sql import functions import subprocess import tempfile SQLSession = N...
35.051587
78
0.551681
bb06b45e3723a9ef4facef11872ccca58b2eadb8
184
py
Python
applications/ip2country/models/db_iptable.py
blazejkocon/csc438
b06555a965d914ea599d3e6fc85780168486d90c
[ "BSD-3-Clause" ]
null
null
null
applications/ip2country/models/db_iptable.py
blazejkocon/csc438
b06555a965d914ea599d3e6fc85780168486d90c
[ "BSD-3-Clause" ]
null
null
null
applications/ip2country/models/db_iptable.py
blazejkocon/csc438
b06555a965d914ea599d3e6fc85780168486d90c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- db.define_table('ip2nation', Field('code',type='integer', requires=IS_NOT_EMPTY()), Field('country', requires= IS_NOT_EMPTY()))
36.8
70
0.570652
bb085c85e7782e1a789b1bec7a2c6a71e68ad8d9
4,574
py
Python
tests/parser_test.py
OtavioHenrique/yalul
ce99e32365ed5607527b9f2f39705ad5d9e20ba2
[ "MIT" ]
1
2021-04-01T20:22:36.000Z
2021-04-01T20:22:36.000Z
tests/parser_test.py
OtavioHenrique/yalul
ce99e32365ed5607527b9f2f39705ad5d9e20ba2
[ "MIT" ]
1
2020-11-20T22:24:38.000Z
2020-11-20T22:24:38.000Z
tests/parser_test.py
OtavioHenrique/yalul
ce99e32365ed5607527b9f2f39705ad5d9e20ba2
[ "MIT" ]
null
null
null
from yalul.parser import Parser from yalul.parsers.ast.nodes.statements.expressions.binary import Binary from yalul.lex.token import Token from yalul.lex.token_type import TokenType from yalul.parsers.ast.nodes.statements.expressions.values.integer import Integer
34.134328
119
0.636205
bb0a2166fba41078615dd96cf7ca319832633515
4,036
py
Python
tests/core/daemon/test_daemon_alerts.py
akubera/chia-blockchain
91f038e2193755e2a6ca22e2160e2c8f547c23fe
[ "Apache-2.0" ]
1
2021-05-28T01:38:23.000Z
2021-05-28T01:38:23.000Z
tests/core/daemon/test_daemon_alerts.py
hoffmang9/chia-blockchain
edc5f1dfe57ecd81d00b5ba4477024309b1231de
[ "Apache-2.0" ]
null
null
null
tests/core/daemon/test_daemon_alerts.py
hoffmang9/chia-blockchain
edc5f1dfe57ecd81d00b5ba4477024309b1231de
[ "Apache-2.0" ]
null
null
null
import dataclasses import pytest from blspy import PrivateKey from src.server.outbound_message import NodeType from src.types.peer_info import PeerInfo from src.util.block_tools import BlockTools from src.util.hash import std_hash from src.util.ints import uint16 from src.util.validate_alert import create_alert_file,...
39.960396
112
0.745045
bb0b659ef2cc14f0a9cf674d122a6ce8c529a3af
8,196
py
Python
words.py
GuyKabiri/language-models
63b368aaee74ec077abcc8f66f0c8fbd4c712a07
[ "MIT" ]
41
2018-08-25T14:00:46.000Z
2022-01-20T05:21:03.000Z
words.py
GuyKabiri/language-models
63b368aaee74ec077abcc8f66f0c8fbd4c712a07
[ "MIT" ]
5
2018-07-06T11:34:22.000Z
2021-11-15T20:32:34.000Z
words.py
GuyKabiri/language-models
63b368aaee74ec077abcc8f66f0c8fbd4c712a07
[ "MIT" ]
17
2018-07-24T19:40:19.000Z
2022-01-25T09:14:11.000Z
import keras import keras.backend as K from keras.datasets import imdb from keras.layers import LSTM, Embedding, TimeDistributed, Input, Dense from keras.models import Model from tensorflow.python.client import device_lib from tqdm import tqdm import os, random from argparse import ArgumentParser import numpy as n...
33.453061
120
0.571986
bb0cafc42dfe07c8f9f0ade59b4efb5599bbec9d
979
py
Python
synthdnm/backend.py
james-guevara/synthdnm
8510cfd91438452da553d35894b63c5d75cdd47e
[ "MIT" ]
6
2021-02-22T08:29:49.000Z
2021-11-26T21:24:49.000Z
build/lib/synthdnm/backend.py
james-guevara/synthdnm
8510cfd91438452da553d35894b63c5d75cdd47e
[ "MIT" ]
1
2021-10-04T19:22:34.000Z
2021-11-16T21:22:12.000Z
synthdnm/backend.py
james-guevara/synthdnm
8510cfd91438452da553d35894b63c5d75cdd47e
[ "MIT" ]
1
2020-11-06T18:57:57.000Z
2020-11-06T18:57:57.000Z
import re # Splits a line by spaces or tabs, returns a list object # Returns dictionary containing information of pedigree file # Convert spaces to tabs
40.791667
130
0.657814
bb0cd1bc006214dc6eb22b166f68a1596ea8baca
1,925
py
Python
ws/RLAgents/B_ValueBased/Bootstrapping/OnPolicy/sarsa/impl_mgt.py
dattaray-basab/RLGames
b12263fe7a4a246be02fc20ed20cfb9fda40d29b
[ "MIT" ]
null
null
null
ws/RLAgents/B_ValueBased/Bootstrapping/OnPolicy/sarsa/impl_mgt.py
dattaray-basab/RLGames
b12263fe7a4a246be02fc20ed20cfb9fda40d29b
[ "MIT" ]
null
null
null
ws/RLAgents/B_ValueBased/Bootstrapping/OnPolicy/sarsa/impl_mgt.py
dattaray-basab/RLGames
b12263fe7a4a246be02fc20ed20cfb9fda40d29b
[ "MIT" ]
null
null
null
from ws.RLAgents.B_ValueBased.Bootstrapping.qtable_mgt import qtable_mgt
37.019231
89
0.652987
bb0e76409aeef486ffdd393f481e6ae875e7c355
7,338
py
Python
test/pytest/test_model_archiver.py
vvekic/serve
f02a56bf1f0de1705fd9f399c1115d36e343c90c
[ "Apache-2.0" ]
2
2022-03-26T05:17:45.000Z
2022-03-26T05:44:53.000Z
test/pytest/test_model_archiver.py
vvekic/serve
f02a56bf1f0de1705fd9f399c1115d36e343c90c
[ "Apache-2.0" ]
null
null
null
test/pytest/test_model_archiver.py
vvekic/serve
f02a56bf1f0de1705fd9f399c1115d36e343c90c
[ "Apache-2.0" ]
1
2020-09-14T08:31:34.000Z
2020-09-14T08:31:34.000Z
import subprocess import time import os import glob import requests import json import test_utils MODEL_SFILE_NAME = 'resnet18-f37072fd.pth'
34.613208
150
0.661897
bb0fd7461ac334e4ca39e6b98dfce5e7a36f1733
2,176
py
Python
scripts/isuag/zero_daily_precip.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
scripts/isuag/zero_daily_precip.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
scripts/isuag/zero_daily_precip.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
"""Sometimes we need to completely zero out precip for a day Likely due to water being dumped into the tipping bucket to clean it :/ """ from __future__ import print_function import sys import datetime import pytz from pyiem.util import get_dbconn def zero_hourly(station, sts, ets): """Zero out the hourly data"...
29.405405
78
0.619485
bb11c19b934ae7836905268d9b3aaa294ea05171
602
py
Python
tests/test_upload_client.py
hepoo6/gdc-client
4453c6412aca55bcc458d710de148a4cabf95cd6
[ "Apache-2.0" ]
null
null
null
tests/test_upload_client.py
hepoo6/gdc-client
4453c6412aca55bcc458d710de148a4cabf95cd6
[ "Apache-2.0" ]
null
null
null
tests/test_upload_client.py
hepoo6/gdc-client
4453c6412aca55bcc458d710de148a4cabf95cd6
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from gdc_client.upload.client import create_resume_path
28.666667
69
0.611296
bb123dfd4bea8d7fa36ad8f1991ad5d0085d8387
15,843
py
Python
Fibonnacci GUI VERSION.py
Nuklear-s-Team/fibonacciThing
2b32f10a87faf87b6702e7caa20c69d8df6873e3
[ "CC0-1.0" ]
null
null
null
Fibonnacci GUI VERSION.py
Nuklear-s-Team/fibonacciThing
2b32f10a87faf87b6702e7caa20c69d8df6873e3
[ "CC0-1.0" ]
null
null
null
Fibonnacci GUI VERSION.py
Nuklear-s-Team/fibonacciThing
2b32f10a87faf87b6702e7caa20c69d8df6873e3
[ "CC0-1.0" ]
1
2020-04-08T18:32:54.000Z
2020-04-08T18:32:54.000Z
# Copyright 2020 Khang Nguyen and Tim Merrill # Improved by Luzgog # Made with the same translate function as the original. import tkinter as tkinter from tkinter import messagebox from tkinter import scrolledtext from Fibonacci_Encoder import encode, decode, encodeReversed, decodeReversed, randomGen, encodeR...
57.194946
279
0.640977
bb1296c730e04aac4e482709b1a4e2821eed085b
177
py
Python
My Tools/Number Reverse/numberReverse.py
AbhyasKanaujia/Project-Euler
9359474e87ac86c89872692fb162119ca0841251
[ "MIT" ]
2
2020-11-18T15:10:03.000Z
2020-11-22T08:28:15.000Z
My Tools/Number Reverse/numberReverse.py
AbhyasKanaujia/Project-Euler
9359474e87ac86c89872692fb162119ca0841251
[ "MIT" ]
null
null
null
My Tools/Number Reverse/numberReverse.py
AbhyasKanaujia/Project-Euler
9359474e87ac86c89872692fb162119ca0841251
[ "MIT" ]
null
null
null
num = int(input("Enter a number: ")) temp = num reverse = 0 while(temp): reverse = (reverse * 10) + (temp % 10) temp = int(temp / 10) print("Reversed: " + str(reverse))
22.125
42
0.59322
bb13062c6af81b0c777ea745fa403b4616b78912
1,267
py
Python
Botnet-Generator/HTTPSocket.py
m4ta1l/KratosKnife
ff80631c2d1d865806e2da1e810239aa401891e8
[ "BSD-3-Clause" ]
155
2020-09-04T12:26:10.000Z
2022-03-09T02:20:27.000Z
Botnet-Generator/HTTPSocket.py
m4ta1l/KratosKnife
ff80631c2d1d865806e2da1e810239aa401891e8
[ "BSD-3-Clause" ]
14
2020-12-27T06:25:20.000Z
2022-03-01T04:27:01.000Z
Botnet-Generator/HTTPSocket.py
m4ta1l/KratosKnife
ff80631c2d1d865806e2da1e810239aa401891e8
[ "BSD-3-Clause" ]
57
2020-10-11T15:21:35.000Z
2022-03-23T19:46:30.000Z
import requests, base64
35.194444
123
0.595107
bb1432cc0316cac36dc4f14023445d368e2c8a51
790
py
Python
Binary Search/081. Search in Rotated Sorted Array II.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
Binary Search/081. Search in Rotated Sorted Array II.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
Binary Search/081. Search in Rotated Sorted Array II.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 81. Search in Rotated Sorted Array II """
29.259259
68
0.405063
bb153760d668539261a0d33707c85c1e1d93f62e
191
py
Python
PEPit/tools/__init__.py
bgoujaud/PEPit
7352607069f5e90fb1919fc689ec5e9d745c3bac
[ "MIT" ]
44
2021-11-18T16:41:20.000Z
2022-02-14T09:59:13.000Z
PEPit/tools/__init__.py
bgoujaud/PEPit
7352607069f5e90fb1919fc689ec5e9d745c3bac
[ "MIT" ]
2
2021-10-05T09:20:25.000Z
2022-02-19T13:58:01.000Z
PEPit/tools/__init__.py
PerformanceEstimation/PEPit
7005bc9a9da11dea448966437365c897734ec341
[ "MIT" ]
1
2022-02-08T12:03:29.000Z
2022-02-08T12:03:29.000Z
from .dict_operations import merge_dict, prune_dict, multiply_dicts __all__ = ['dict_operations', 'merge_dict', 'prune_dict', 'multiply_dicts', ]
23.875
67
0.602094
bb16c061583288ca3f3f83e5792419424b095ace
2,777
py
Python
methods/ham.py
vickyyu90/maxnet
38c49c39dbe77b2984d8cdb2f4087310b2220593
[ "Apache-2.0" ]
null
null
null
methods/ham.py
vickyyu90/maxnet
38c49c39dbe77b2984d8cdb2f4087310b2220593
[ "Apache-2.0" ]
null
null
null
methods/ham.py
vickyyu90/maxnet
38c49c39dbe77b2984d8cdb2f4087310b2220593
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from torch.autograd import Variable import torch.nn.functional as F
43.390625
137
0.658985
bb177b31aa9101d899611eb71a8b7cb4ca24eeba
1,173
py
Python
wicket/commands/__init__.py
GeekMasher/wicket-discord-docker-bot
5f7bfa466718018fba3babe1357115ac19a8ec18
[ "MIT" ]
null
null
null
wicket/commands/__init__.py
GeekMasher/wicket-discord-docker-bot
5f7bfa466718018fba3babe1357115ac19a8ec18
[ "MIT" ]
null
null
null
wicket/commands/__init__.py
GeekMasher/wicket-discord-docker-bot
5f7bfa466718018fba3babe1357115ac19a8ec18
[ "MIT" ]
null
null
null
import discord from wicket.commands.list import botListServices from wicket.commands.docker_commands import * COMMANDS = { "help": {"func": botHelp, "auth": False, "description": "Get help with the bot"}, "list": { "func": botListServices, "auth": False, "description": "Get a list of...
24.4375
85
0.553282
bb17d26fa2cfe52fac2399248342acf911c767f1
125
py
Python
rl_helper/__init__.py
yiwc/rl_helper
3cb0c088b40dabd3fa17af6e53f7c9563c7ef8b8
[ "MIT" ]
null
null
null
rl_helper/__init__.py
yiwc/rl_helper
3cb0c088b40dabd3fa17af6e53f7c9563c7ef8b8
[ "MIT" ]
null
null
null
rl_helper/__init__.py
yiwc/rl_helper
3cb0c088b40dabd3fa17af6e53f7c9563c7ef8b8
[ "MIT" ]
null
null
null
from rl_helper.envhelper import envhelper,VDisplay from rl_helper.fps import fps from rl_helper.exps import ExperimentManager
41.666667
50
0.88
bb1819c9bd2f8222a4a5fb0e41cee2222fe0b742
12,923
py
Python
abstract_matrix.py
sredroboto/math-matrix
71b8d53fb2b3bd7f8a27dde6a5ee2a4847b135ad
[ "BSD-3-Clause" ]
2
2019-11-21T14:28:50.000Z
2019-11-21T20:58:46.000Z
abstract_matrix.py
sredroboto/SistemaSolar
4fa946adab7e5308639954feb00a2b3bc7153f91
[ "BSD-3-Clause" ]
null
null
null
abstract_matrix.py
sredroboto/SistemaSolar
4fa946adab7e5308639954feb00a2b3bc7153f91
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod
30.550827
102
0.514973
bb186d9ac7e63873279e945b49b97d3ba19eab1c
534
py
Python
P0003.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0003.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
P0003.py
sebastianaldi17/ProjectEuler
19562fba3456ec904bcc264fb786a92610e42622
[ "MIT" ]
null
null
null
# Largest prime factor # https://projecteuler.net/problem=3 # Sieve of erasthotenes apporach # But still slow due to iteration to sqrt(n) from math import sqrt question = 600851475143 print(solve(question))
25.428571
44
0.586142
bb1a364dd066752f967226672bd3ed108b79d4bc
239
py
Python
data_structures/binary_heap_operations.py
johnnydevriese/python_fun
01fc5fcc82c7c27e25eabff85a2e88f3554129fe
[ "MIT" ]
null
null
null
data_structures/binary_heap_operations.py
johnnydevriese/python_fun
01fc5fcc82c7c27e25eabff85a2e88f3554129fe
[ "MIT" ]
null
null
null
data_structures/binary_heap_operations.py
johnnydevriese/python_fun
01fc5fcc82c7c27e25eabff85a2e88f3554129fe
[ "MIT" ]
null
null
null
from pythonds.trees.binheap import BinHeap # pythonds so we need to use python2.7 to run bh = BinHeap() bh.insert(5) bh.insert(7) bh.insert(3) bh.insert(11) print(bh.delMin()) print(bh.delMin()) print(bh.delMin()) print(bh.delMin())
13.277778
45
0.707113
bb1bdf6c26b937672babc629910c4f289f158546
3,893
py
Python
test/unit/extractor/test_sticky_relations.py
willangenent/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
8
2016-10-19T14:15:34.000Z
2020-06-23T09:37:02.000Z
test/unit/extractor/test_sticky_relations.py
freewilll/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
null
null
null
test/unit/extractor/test_sticky_relations.py
freewilll/abridger
6daa80f7360339376b38544ce60694c5addaa30f
[ "MIT" ]
null
null
null
import pytest from abridger.extraction_model import Relation from abridger.schema import SqliteSchema from test.unit.extractor.base import TestExtractorBase
33.273504
74
0.512972
bb1d0fc3b94fe211964f09e6d84f5d3d39abde23
6,375
py
Python
edl/gtdb.py
jmeppley/py-metagenomics
0dbab073cb7e52c4826054e40eb802c9e0298e9a
[ "MIT" ]
7
2015-05-14T09:36:36.000Z
2022-03-30T14:32:21.000Z
edl/gtdb.py
jmeppley/py-metagenomics
0dbab073cb7e52c4826054e40eb802c9e0298e9a
[ "MIT" ]
1
2015-07-14T11:47:25.000Z
2015-07-17T01:45:26.000Z
edl/gtdb.py
jmeppley/py-metagenomics
0dbab073cb7e52c4826054e40eb802c9e0298e9a
[ "MIT" ]
7
2015-07-25T22:29:29.000Z
2022-03-01T21:26:14.000Z
""" Tools for parsing GTDB headers into a taxonomy model """ import os import re import sys import logging from edl.taxon import TaxNode, Taxonomy from edl.silva import writeDumpFiles from edl.util import treeGenerator logger = logging.getLogger(__name__) GTDB = 'gtdb' GTDBTAB = 'gtdb_table' PHYLODB = 'phylodb' de...
30.797101
78
0.604863
bb1e4016be4331d352fd22fa658ec03e7e142dff
161
py
Python
Coursera/CICCP1/dezenas.py
marcelomiky/python_code
4b843c78e16c37e981e4adfe47ae974ee0f2ad81
[ "MIT" ]
2
2020-10-19T13:53:59.000Z
2021-08-05T19:48:07.000Z
Coursera/CICCP1/dezenas.py
marcelomiky/PythonCodes
07f0db8019805b3b9567b7b57ddb49b4333a3aa2
[ "MIT" ]
null
null
null
Coursera/CICCP1/dezenas.py
marcelomiky/PythonCodes
07f0db8019805b3b9567b7b57ddb49b4333a3aa2
[ "MIT" ]
null
null
null
numero_inteiro = int(input("Digite um nmero inteiro: ")) temp = numero_inteiro // 10 digito_dezena = temp % 10 print("O dgito das dezenas ", digito_dezena)
23
57
0.732919
bb1ea86265c925701352fac69e22fd621159f5e6
42
py
Python
tests/scope.py
ZYAZP/python2
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
1,062
2015-11-18T01:04:33.000Z
2022-03-29T07:13:30.000Z
tests/scope.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
26
2015-11-17T06:58:07.000Z
2022-01-15T18:11:16.000Z
tests/scope.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
100
2015-11-17T09:01:22.000Z
2021-09-12T13:58:28.000Z
x = 2 foo() print x
6
10
0.452381
bb1fdf7adb2c4dc824a85213461cdd3a0e0c6c0f
443
py
Python
Kalpurnia/items.py
JasonAnx/Kalpurnia
05760d4d475c6cee9c2158a34bb5fc2c20adb0bf
[ "MIT" ]
4
2017-07-12T06:21:24.000Z
2018-12-21T15:05:48.000Z
Kalpurnia/items.py
JasonAnx/Kalpurnia
05760d4d475c6cee9c2158a34bb5fc2c20adb0bf
[ "MIT" ]
null
null
null
Kalpurnia/items.py
JasonAnx/Kalpurnia
05760d4d475c6cee9c2158a34bb5fc2c20adb0bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy
21.095238
51
0.668172
bb1fea629f2a9e4489bdbe2cada201c3a470df90
38
py
Python
pyqt_helper/__init__.py
morefigs/pyqt-ui-helper
0f80f8483f57fc58a1c58fb2832094c7931b9fa6
[ "MIT" ]
2
2019-07-08T22:57:00.000Z
2022-01-07T10:36:53.000Z
pyqt_helper/__init__.py
morefigs/pyqt-ui-helper
0f80f8483f57fc58a1c58fb2832094c7931b9fa6
[ "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
pyqt_helper/__init__.py
morefigs/pyqt-ui-helper
0f80f8483f57fc58a1c58fb2832094c7931b9fa6
[ "MIT" ]
null
null
null
from .pyqt_helper import process_file
19
37
0.868421
bb20d40fa7052cc2042b31919fc23245949ffc78
1,107
py
Python
MeetmeApp/urls.py
Susan-Kathoni/Meet-Me
530d14e98a1cb8d14af77397515fe32e31018041
[ "MIT" ]
null
null
null
MeetmeApp/urls.py
Susan-Kathoni/Meet-Me
530d14e98a1cb8d14af77397515fe32e31018041
[ "MIT" ]
null
null
null
MeetmeApp/urls.py
Susan-Kathoni/Meet-Me
530d14e98a1cb8d14af77397515fe32e31018041
[ "MIT" ]
null
null
null
from django.urls import path from django.conf.urls import url, include from . import views from django.conf import settings from django.conf.urls.static import static from .views import * urlpatterns=[ path('', views.home, name="home-page"), path("home/", views.datePage, name="date-page"), #User...
39.535714
90
0.666667
bb218330c462c5abdbf828eb5bc82a026234a3e6
14,872
py
Python
gui/popups.py
Kameone/katrain
6d2f210a1997bf2f8108ca1c0678df6788867022
[ "MIT" ]
null
null
null
gui/popups.py
Kameone/katrain
6d2f210a1997bf2f8108ca1c0678df6788867022
[ "MIT" ]
null
null
null
gui/popups.py
Kameone/katrain
6d2f210a1997bf2f8108ca1c0678df6788867022
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List, DefaultDict, Tuple from kivy.clock import Clock from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.uix.popup import Popup from core.common import OUTPUT_DEBUG, OUTPUT_ERROR fr...
46.043344
172
0.623924
bb235d579c9e8335bb32b2de2493cd8f2ac94ba2
606
py
Python
Chessboard.py
choyai/basic-chess
34cf581544f63b07dba4a87d7f1a3bb19a0d102e
[ "MIT" ]
null
null
null
Chessboard.py
choyai/basic-chess
34cf581544f63b07dba4a87d7f1a3bb19a0d102e
[ "MIT" ]
null
null
null
Chessboard.py
choyai/basic-chess
34cf581544f63b07dba4a87d7f1a3bb19a0d102e
[ "MIT" ]
null
null
null
import numpy as np from enum import Enum
22.444444
50
0.4967
bb238153dbf091113a90e51973cf9de922375fa2
1,832
py
Python
server/main_app/views.py
impatrq/safe
e7ffd6a052304aceb4dd582df44032a29564f555
[ "MIT" ]
1
2021-07-13T23:01:56.000Z
2021-07-13T23:01:56.000Z
server/main_app/views.py
impatrq/safe
e7ffd6a052304aceb4dd582df44032a29564f555
[ "MIT" ]
null
null
null
server/main_app/views.py
impatrq/safe
e7ffd6a052304aceb4dd582df44032a29564f555
[ "MIT" ]
null
null
null
import os import json import requests from django.http.response import HttpResponse, JsonResponse from django.conf import settings from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.contrib.auth import login as auth_login, logout as auth_logout from api_t...
33.925926
107
0.694869
bb23d6cb8be15545236f6f64ea4106fde445f291
1,767
py
Python
threedi_settings/models.py
nens/threedi-settings
578e30edd4e71b38ebc61363b3777e7036906dbc
[ "MIT" ]
null
null
null
threedi_settings/models.py
nens/threedi-settings
578e30edd4e71b38ebc61363b3777e7036906dbc
[ "MIT" ]
null
null
null
threedi_settings/models.py
nens/threedi-settings
578e30edd4e71b38ebc61363b3777e7036906dbc
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional class SourceTypes(int, Enum): ini_file = 1 sqlite_file = 2
23.25
66
0.764573
bb25f70ffa6ee8081a8ce9f87977d0f789c35355
881
py
Python
devicegroups/tests.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
devicegroups/tests.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
devicegroups/tests.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.test.client import Client from django.test import TestCase from django.urls import reverse import six from model_mommy import mommy from devicegroups.models import Devicegroup from users.models import Lageruser
35.24
118
0.746879
bb26120df60c58054886a7da4810cc127da3d62a
3,494
py
Python
uai/operation/pack/base_pack_op.py
FinchZHU/uai-sdk
78e06bebba2d18233ce6dcb5be619e940f7a7ef3
[ "Apache-2.0" ]
38
2017-04-26T04:00:09.000Z
2022-02-10T02:51:05.000Z
uai/operation/pack/base_pack_op.py
FinchZHU/uai-sdk
78e06bebba2d18233ce6dcb5be619e940f7a7ef3
[ "Apache-2.0" ]
17
2017-11-20T20:47:09.000Z
2022-02-09T23:48:46.000Z
uai/operation/pack/base_pack_op.py
FinchZHU/uai-sdk
78e06bebba2d18233ce6dcb5be619e940f7a7ef3
[ "Apache-2.0" ]
28
2017-07-08T05:23:13.000Z
2020-08-18T03:12:27.000Z
# Copyright 2017 The UAI-SDK Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
38.822222
90
0.647682
bb27a05966e2cdc151b7cb1b1d26243619e72b33
778
py
Python
reader/migrations/0005_managers.py
FroshOU/manga
60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2
[ "MIT" ]
58
2019-03-04T09:22:42.000Z
2022-02-18T09:11:57.000Z
reader/migrations/0005_managers.py
FroshOU/manga
60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2
[ "MIT" ]
21
2019-03-07T19:34:53.000Z
2021-12-19T12:46:40.000Z
reader/migrations/0005_managers.py
FroshOU/manga
60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2
[ "MIT" ]
14
2019-06-06T09:53:13.000Z
2021-12-17T14:34:13.000Z
from django.conf import settings from django.db import migrations, models
29.923077
71
0.552699
bb2c5307cd59ead7a7f4bf7a140973af81e47bad
2,099
py
Python
mapss/static/packages/arches/arches/setup.py
MPI-MAPSS/MAPSS
3a5c0109758801717aaa8de1125ca5e98f83d3b4
[ "CC0-1.0" ]
null
null
null
mapss/static/packages/arches/arches/setup.py
MPI-MAPSS/MAPSS
3a5c0109758801717aaa8de1125ca5e98f83d3b4
[ "CC0-1.0" ]
null
null
null
mapss/static/packages/arches/arches/setup.py
MPI-MAPSS/MAPSS
3a5c0109758801717aaa8de1125ca5e98f83d3b4
[ "CC0-1.0" ]
null
null
null
import sys import os import subprocess import shutil import urllib.request, urllib.error, urllib.parse import zipfile import datetime import platform import tarfile from arches import settings here = os.path.dirname(os.path.abspath(__file__)) root_dir = os.path.dirname(here) def get_version(versio...
25.91358
80
0.623154
bb2ca45bc470c22818c168cb989383dbf565e235
3,360
py
Python
modules/dataproviders/mldataprovider.py
imdatsolak/bender
e20a5c7553d0db60440573b4fc3e907d6a8d5fad
[ "BSD-3-Clause" ]
null
null
null
modules/dataproviders/mldataprovider.py
imdatsolak/bender
e20a5c7553d0db60440573b4fc3e907d6a8d5fad
[ "BSD-3-Clause" ]
null
null
null
modules/dataproviders/mldataprovider.py
imdatsolak/bender
e20a5c7553d0db60440573b4fc3e907d6a8d5fad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding("utf-8") import logging import os from modules.mlbendermodule import MLBenderModule """ Class MLDataProvider as described at: https://wiki.ml.de/pages/viewpage.action?pageId=7144585 Copyright (c) 2019 Imdat Solak All Rights Res...
37.333333
112
0.600893
bb2e7d5f7c0ebcba291fff0eb900b78cfa2b84c9
24,753
py
Python
tests/integration/test_krkgw_page.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
tests/integration/test_krkgw_page.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
tests/integration/test_krkgw_page.py
konrad-kocik/nicelka
a174fce9b8c6d4414312120e89e10bb1e10629df
[ "MIT" ]
null
null
null
from pytest import fixture from tests.integration.utilities.utilities import get_io_dir_paths, create_dir, remove_dir, run_krkgw_searcher, assert_report_file_content_equals test_suite = 'krkgw_page' test_cases = ['no_result', 'no_result_twice', 'single_result', 'single_resul...
48.251462
145
0.531653