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
417b57d9a12833b40b6e93faf3fe1e15baea9076
143
py
Python
dcm_anon/__main__.py
LilMit/pl-dcm_anon
084d3f902f8dae32c4ba3a1ec979ef278186062f
[ "MIT" ]
null
null
null
dcm_anon/__main__.py
LilMit/pl-dcm_anon
084d3f902f8dae32c4ba3a1ec979ef278186062f
[ "MIT" ]
null
null
null
dcm_anon/__main__.py
LilMit/pl-dcm_anon
084d3f902f8dae32c4ba3a1ec979ef278186062f
[ "MIT" ]
null
null
null
from dcm_anon.dcm_anon import dcm_anon if __name__ == "__main__": main()
13
38
0.664336
417e4e14a59f787a0882eb60937548a0683d9e66
299
py
Python
app/resources/users/resources/__init__.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
34
2016-10-26T17:19:23.000Z
2020-04-30T09:12:34.000Z
app/resources/users/resources/__init__.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
2
2019-04-09T11:50:38.000Z
2019-07-05T03:31:57.000Z
app/resources/users/resources/__init__.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
12
2017-01-14T09:40:24.000Z
2020-04-16T07:40:56.000Z
import falcon from app.data.db import setup from .user import User, UserSchema from .users import Users
19.933333
52
0.688963
417fb5c50105e5ee2c309bd500ecc1c0f5906c48
509
py
Python
Menu.py
Irish-Gambit73/Python-Project
194c6d6e7c7aa4a9be14ff4f92056b34f893475d
[ "Unlicense" ]
null
null
null
Menu.py
Irish-Gambit73/Python-Project
194c6d6e7c7aa4a9be14ff4f92056b34f893475d
[ "Unlicense" ]
null
null
null
Menu.py
Irish-Gambit73/Python-Project
194c6d6e7c7aa4a9be14ff4f92056b34f893475d
[ "Unlicense" ]
null
null
null
from direct.showbase.ShowBase import ShowBase from panda3d.core import CardMaker, NodePath, loadPrcFileData from panda3d.core import * import sys configVars = """ win-size 1920 1080 show-frame-rate-meter 0 """ loadPrcFileData("", configVars) menu = mymenu() menu.run()
20.36
62
0.667976
4180c010d94ce77b0775ae90c79802a1245aa772
1,999
py
Python
src/tmdb/api_testing.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
1
2019-03-02T20:06:16.000Z
2019-03-02T20:06:16.000Z
src/tmdb/api_testing.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
1
2022-01-07T22:57:41.000Z
2022-01-07T22:57:41.000Z
src/tmdb/api_testing.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
null
null
null
import django import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") django.setup() from django.contrib.auth import get_user_model from importer.utils import import_ratings_from_csv from titles.models import Title from tmdb.api import TmdbWrapper, TitleDetailsGetter User = get_user_model() #...
25.303797
100
0.72036
41822935cee498ccc19d60043c872f0d93b47183
1,016
py
Python
cuhk01/constants.py
hashknot/person-reid
64a8c441388ea53555669986338af0b40bd854de
[ "MIT" ]
null
null
null
cuhk01/constants.py
hashknot/person-reid
64a8c441388ea53555669986338af0b40bd854de
[ "MIT" ]
null
null
null
cuhk01/constants.py
hashknot/person-reid
64a8c441388ea53555669986338af0b40bd854de
[ "MIT" ]
null
null
null
BATCH_SIZE = 100 # Constants describing the training process. MOVING_AVERAGE_DECAY = 0.9999 # The decay to use for the moving average. NUM_EPOCHS_PER_DECAY = 50 # Epochs after which learning rate decays. LEARNING_RATE_DECAY_FACTOR = 0.1 # Learning rate decay factor. INITIAL_LEARNING_RATE = 0.001 # Ini...
25.4
76
0.761811
4185a8a08540921d3dabaeb5390caa5b7a13a571
9,226
py
Python
music.py
konsou/autsball
9252a104c0f107098352ec1857f4ff5bb71931ab
[ "MIT" ]
null
null
null
music.py
konsou/autsball
9252a104c0f107098352ec1857f4ff5bb71931ab
[ "MIT" ]
3
2017-06-27T13:39:30.000Z
2017-07-10T10:24:53.000Z
music.py
konsou/autsball
9252a104c0f107098352ec1857f4ff5bb71931ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pygame import random import tinytag import groups from constants import * """ Pit sislln seuraavaa: class MusicPlayer(pygame.sprite.Sprite): taustamusiikin soittajaclass, osaa nytt infoblurbin biisist class MusicFile(object): lukee tiedoston tagit ja tallettaa tiedon siit, miss ruuduis...
36.904
136
0.638196
41862d17d86e2df373c597564852dbddf775109e
1,567
py
Python
tensorflow/python/data/experimental/ops/take_while_ops.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
8
2021-08-03T03:57:10.000Z
2021-12-13T01:19:02.000Z
tensorflow/python/data/experimental/ops/take_while_ops.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
17
2021-08-12T19:38:42.000Z
2022-01-27T14:39:35.000Z
tensorflow/python/data/experimental/ops/take_while_ops.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
4
2022-01-13T11:23:44.000Z
2022-03-02T11:11:42.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.44186
80
0.724952
418640943981b4a1c0fe6e9418aadaf087804487
3,822
py
Python
tests/e2e/dags/__init__.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
null
null
null
tests/e2e/dags/__init__.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
null
null
null
tests/e2e/dags/__init__.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
null
null
null
from datetime import timezone from airflow.models import DagRun, TaskInstance from airflow.utils.types import DagRunType NORMALISE_NOTICE_METADATA_TASK_ID = "normalise_notice_metadata" CHECK_ELIGIBILITY_FOR_TRANSFORMATION_TASK_ID = "check_eligibility_for_transformation" PREPROCESS_XML_MANIFESTATION_TASK_ID = "preproc...
47.775
138
0.837781
4187de5950df159828a7772938f462e9332f2e53
526
py
Python
ustack_etl/mongo.py
ustudio/ustack-etl
ae0c3104178109cd12ca395122ab12aae72e365a
[ "MIT" ]
1
2019-06-28T16:09:09.000Z
2019-06-28T16:09:09.000Z
ustack_etl/mongo.py
ustudio/ustack-etl
ae0c3104178109cd12ca395122ab12aae72e365a
[ "MIT" ]
null
null
null
ustack_etl/mongo.py
ustudio/ustack-etl
ae0c3104178109cd12ca395122ab12aae72e365a
[ "MIT" ]
null
null
null
import logging
27.684211
58
0.619772
41882a3f1711e24147a99f68566e391ca017719c
4,794
py
Python
tiler.py
arancaytar/mcmap-web
6ce1172c4e785048922cdda98fa88814a48ac2ca
[ "MIT" ]
5
2018-06-01T17:54:10.000Z
2022-01-06T08:48:26.000Z
tiler.py
arancaytar/mcmap-web
6ce1172c4e785048922cdda98fa88814a48ac2ca
[ "MIT" ]
null
null
null
tiler.py
arancaytar/mcmap-web
6ce1172c4e785048922cdda98fa88814a48ac2ca
[ "MIT" ]
null
null
null
import os import re import math import subprocess import argparse from wand.image import Image main()
38.352
138
0.532541
4188b579ad1181892d567d0767ea95ba676c48c9
6,732
py
Python
axonius_api_client/api/system/users.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
axonius_api_client/api/system/users.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
3
2021-05-18T14:28:30.000Z
2021-09-06T20:01:56.000Z
axonius_api_client/api/system/users.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """API model for working with system configuration.""" from typing import List, Optional from ...exceptions import ApiError, NotFoundError from ..mixins import ChildMixins from ..parsers import parse_unchanged
33.162562
98
0.58066
4189511087d85647283dbbe71f1c8222d29d8cec
6,667
py
Python
comparisontool/tests/test_views.py
mikiec84/django-college-costs-comparison
319adfe7d4c48332ce08608c57a88555384a8e14
[ "CC0-1.0" ]
null
null
null
comparisontool/tests/test_views.py
mikiec84/django-college-costs-comparison
319adfe7d4c48332ce08608c57a88555384a8e14
[ "CC0-1.0" ]
null
null
null
comparisontool/tests/test_views.py
mikiec84/django-college-costs-comparison
319adfe7d4c48332ce08608c57a88555384a8e14
[ "CC0-1.0" ]
null
null
null
import json import uuid from django.core import mail from django.core.urlresolvers import reverse from django.test import RequestFactory, TestCase from comparisontool.models import BAHRate, School, Worksheet from comparisontool.views import ( DataStorageView, WorksheetJsonValidationError, bah_lookup_api, scho...
32.842365
78
0.621119
418a47545dba7c6d93ab6c76878963058167ca2f
6,292
py
Python
Employee_Retention_Prediction-main/apps/tuning/model_tuner.py
jrderek/Deployment-
eff84d3141136138154d26567d04d61dd76ee842
[ "MIT" ]
null
null
null
Employee_Retention_Prediction-main/apps/tuning/model_tuner.py
jrderek/Deployment-
eff84d3141136138154d26567d04d61dd76ee842
[ "MIT" ]
null
null
null
Employee_Retention_Prediction-main/apps/tuning/model_tuner.py
jrderek/Deployment-
eff84d3141136138154d26567d04d61dd76ee842
[ "MIT" ]
null
null
null
from sklearn.model_selection import GridSearchCV from sklearn.ensemble import RandomForestClassifier from xgboost import XGBClassifier from sklearn.metrics import roc_auc_score,accuracy_score from apps.core.logger import Logger from sklearn.metrics import r2_score
39.572327
148
0.695486
418abad5cdf933df3ff6588608512e91ba155c71
7,501
py
Python
CSCA48 - Introduction to CS 2/ex5.py
zaind6/University-CS-Exercises
2c48a35f2b9e8b96cfc1384e225ced94ae00badc
[ "MIT" ]
1
2020-11-03T01:35:35.000Z
2020-11-03T01:35:35.000Z
CSCA48 - Introduction to CS 2/ex5.py
zain-zafar/University-CS-Exercises
2c48a35f2b9e8b96cfc1384e225ced94ae00badc
[ "MIT" ]
null
null
null
CSCA48 - Introduction to CS 2/ex5.py
zain-zafar/University-CS-Exercises
2c48a35f2b9e8b96cfc1384e225ced94ae00badc
[ "MIT" ]
null
null
null
def rsum(any_list): '''(list of int) -> int REQ: Length of the list must be greater than 0 This function will add up all the integers in the given list of integers >>>rsum([9,1000,-1000,57,78,0]) 144 >>>rsum([1]) 1 ''' # Base case for one element if len(any_list) == 1: # ...
35.215962
79
0.592988
418bde481cd9a862ca6b0f7d948b2cb9c4751dc4
5,165
py
Python
src/data/dataloader.py
TencentYoutuResearch/SelfSupervisedLearning-DSM
655a0a23a47bf2559f3d435384ae59a8871a5ff5
[ "Apache-2.0" ]
27
2021-01-07T11:09:33.000Z
2021-08-31T02:46:23.000Z
src/data/dataloader.py
TencentYoutuResearch/SelfSupervisedLearning-DSM
655a0a23a47bf2559f3d435384ae59a8871a5ff5
[ "Apache-2.0" ]
null
null
null
src/data/dataloader.py
TencentYoutuResearch/SelfSupervisedLearning-DSM
655a0a23a47bf2559f3d435384ae59a8871a5ff5
[ "Apache-2.0" ]
3
2021-01-08T08:31:06.000Z
2021-11-26T04:10:23.000Z
import torch
80.703125
135
0.66544
418f86a801fe05cec1886299103a277fc6c78c68
30,694
py
Python
plot_results.py
freedmanlab/Context-Dependent-Gating
14c6ba0f9ab840a43e236e6a7ca536cc97240ffc
[ "Apache-2.0" ]
null
null
null
plot_results.py
freedmanlab/Context-Dependent-Gating
14c6ba0f9ab840a43e236e6a7ca536cc97240ffc
[ "Apache-2.0" ]
null
null
null
plot_results.py
freedmanlab/Context-Dependent-Gating
14c6ba0f9ab840a43e236e6a7ca536cc97240ffc
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pickle import os import matplotlib from itertools import product from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes from mpl_toolkits.axes_grid1.inset_locator import mark_inset matplotlib.rcParams['pdf.fonttype'] = 42 matplotlib.rcParams['ps.f...
35.159221
178
0.607904
418f93f4679d95c3aaf22751edd8bf534824d9d6
3,103
py
Python
code/lib/warn/constants/api_constants.py
JaspervanRooijen/covid-apps-observer
59f6049a493c80797d83fd24e4a4789a14f3110e
[ "MIT" ]
2
2022-01-21T01:47:03.000Z
2022-01-22T14:43:40.000Z
ml_src/warn/constants/api_constants.py
li0926/ThorDroid
1250241181cce2db76877df56a9acceae34461c6
[ "MIT" ]
null
null
null
ml_src/warn/constants/api_constants.py
li0926/ThorDroid
1250241181cce2db76877df56a9acceae34461c6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of Androwarn. # # Copyright (C) 2012, 2019, Thomas Debize <tdebize at mail.com> # All rights reserved. # # Androwarn is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by #...
49.253968
87
0.447631
419150dfed5608e1cdb33c4b0424f56f1d20f1e2
2,217
py
Python
pudzu/sandbox/tinytim.py
Udzu/pudzu
5a0302830b052fc54feba891eb7bf634957a9d90
[ "MIT" ]
119
2017-07-22T15:02:30.000Z
2021-08-02T10:42:59.000Z
pudzu/sandbox/tinytim.py
Udzu/pudzu
5a0302830b052fc54feba891eb7bf634957a9d90
[ "MIT" ]
null
null
null
pudzu/sandbox/tinytim.py
Udzu/pudzu
5a0302830b052fc54feba891eb7bf634957a9d90
[ "MIT" ]
28
2017-08-04T14:28:41.000Z
2019-11-27T23:46:14.000Z
from collections import namedtuple from turtle import fd, heading, lt, pd, position, pu, rt, setheading, setposition # pylint: disable=no-name-in-module from pudzu.utils import weighted_choice Koch = LSystem("F--F--F", [("F", "F+F--F+F")], 6) Dragon = LSystem("FX", [("F", ""), ("Y", "+FX--FY+"), ("X", "-FX++FY-")]...
36.344262
130
0.47226
41925e4d846420538e48424da9d010efc9d36382
2,135
py
Python
modules/nyc_taxi/cleanse.py
likebupt/aml-modules
fcf6c9863cfd56cfca1990de2fcae6269caf1bcf
[ "MIT" ]
null
null
null
modules/nyc_taxi/cleanse.py
likebupt/aml-modules
fcf6c9863cfd56cfca1990de2fcae6269caf1bcf
[ "MIT" ]
null
null
null
modules/nyc_taxi/cleanse.py
likebupt/aml-modules
fcf6c9863cfd56cfca1990de2fcae6269caf1bcf
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. import sys import os import subprocess import pandas as pd from azureml.pipeline.wrapper import dsl from azureml.pipeline.wrapper.dsl.module import ModuleExecutor, InputDirectory, OutputDirectory, StringParameter if __name__ == '__ma...
35.583333
117
0.690867
419270c6a2e0d4e0cffe5ae48720cc87aa15fbca
1,016
py
Python
1301-1400/1363-Largest Multiple of Three/1363-Largest Multiple of Three.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
1301-1400/1363-Largest Multiple of Three/1363-Largest Multiple of Three.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
1301-1400/1363-Largest Multiple of Three/1363-Largest Multiple of Three.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
import collections
33.866667
71
0.464567
4192f33d43a6d4fe88ccb5f98e5c5019eb11c003
334
py
Python
Megatron-LM-v1.1.5-3D_parallelism/megatron/configs/realm.py
Ezra-H/DeepSpeedExamples
1d96125f4b08e998da108e800f29fa7e322d4914
[ "MIT" ]
null
null
null
Megatron-LM-v1.1.5-3D_parallelism/megatron/configs/realm.py
Ezra-H/DeepSpeedExamples
1d96125f4b08e998da108e800f29fa7e322d4914
[ "MIT" ]
null
null
null
Megatron-LM-v1.1.5-3D_parallelism/megatron/configs/realm.py
Ezra-H/DeepSpeedExamples
1d96125f4b08e998da108e800f29fa7e322d4914
[ "MIT" ]
null
null
null
# network size ict_head_size = None # checkpointing ict_load = None bert_load = None # data titles_data_path = None query_in_block_prob = 0.1 use_one_sent_docs = False # training report_topk_accuracies = [] # faiss index faiss_use_gpu = False block_data_path = None # indexer indexer_batch_size = 128 indexer_log_i...
14.521739
27
0.784431
419342be8f3825c855a7713b7897a292adb70455
2,779
py
Python
nao_dcm_apps/nao_dcm_rqt_dashboard/src/nao_dcm_rqt_dashboard/stiffness.py
HeeroYui/nao_dcm
ec8f53cfcc3c7d5c90de444886de09f88cd1972f
[ "BSD-3-Clause" ]
null
null
null
nao_dcm_apps/nao_dcm_rqt_dashboard/src/nao_dcm_rqt_dashboard/stiffness.py
HeeroYui/nao_dcm
ec8f53cfcc3c7d5c90de444886de09f88cd1972f
[ "BSD-3-Clause" ]
null
null
null
nao_dcm_apps/nao_dcm_rqt_dashboard/src/nao_dcm_rqt_dashboard/stiffness.py
HeeroYui/nao_dcm
ec8f53cfcc3c7d5c90de444886de09f88cd1972f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014, Konstantinos Chatzilygeroudis # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list of condition...
48.754386
144
0.729399
4193bbbe179ececf98d9b6a579f1c5fc14ed6728
107
py
Python
testdemo/pytest_project/run.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
testdemo/pytest_project/run.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
testdemo/pytest_project/run.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
import pytest if __name__ == '__main__': pytest.main(["-s", "../pytest_project/"]) #
21.4
45
0.616822
41948c0e96fc3d09b93fb9d28d7bdd77963f1301
6,747
py
Python
layers/hsm.py
ryanai3/TooMuchData
67028d8b2ba92954f27a53cfad6e433d611eb373
[ "MIT" ]
null
null
null
layers/hsm.py
ryanai3/TooMuchData
67028d8b2ba92954f27a53cfad6e433d611eb373
[ "MIT" ]
null
null
null
layers/hsm.py
ryanai3/TooMuchData
67028d8b2ba92954f27a53cfad6e433d611eb373
[ "MIT" ]
null
null
null
import torch from torch import nn import torch.nn.functional as nf from torch.nn import init from torch.autograd import Variable import numpy as np from chainer.links.loss.hierarchical_softmax import TreeParser #class HSM(nn.Module): # def __init__(self, input_size, vocab_size):
38.335227
111
0.655106
41984c93c4fccdecd96f83c0f4a9f8a26809e9ad
5,524
py
Python
trypython/advanced/generator/yield01.py
devlights/try-python
67d1d26476794da81c8c76662486108ce03f8fb4
[ "MIT" ]
4
2019-10-21T11:42:11.000Z
2020-03-12T16:35:51.000Z
trypython/advanced/generator/yield01.py
devlights/try-python
67d1d26476794da81c8c76662486108ce03f8fb4
[ "MIT" ]
80
2017-02-08T07:55:37.000Z
2021-10-06T06:30:30.000Z
trypython/advanced/generator/yield01.py
devlights/try-python
67d1d26476794da81c8c76662486108ce03f8fb4
[ "MIT" ]
1
2020-03-12T04:37:17.000Z
2020-03-12T04:37:17.000Z
# coding: utf-8 """yield stackoverflow https://stackoverflow.com/questions/231767/what-does-the-yield-keyword-do-in-python/231855#231855 """ import time from datetime import datetime from trypython.common.commoncls import SampleBase from trypython.common.commonfunc import pr
32.880952
107
0.453114
4198aca2cc9532210c23f611bb17d55ef7abde24
2,056
py
Python
rqalpha/model/benchmark_portfolio.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-11-10T05:44:39.000Z
2020-11-10T05:44:39.000Z
rqalpha/model/benchmark_portfolio.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
null
null
null
rqalpha/model/benchmark_portfolio.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-03-05T05:06:45.000Z
2020-03-05T05:06:45.000Z
# -*- coding: utf-8 -*- # 2019 # # # # * # Apache License 2.0Apache 2.0 Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0 # # # * # # Apache 2.0 Apache 2.0 # public@ricequant.com from rqalpha.environment import Environment from rqalpha.const import DAYS_...
29.371429
144
0.697471
4198c7985f42857aa78326c2c1649445641a52c4
1,897
py
Python
diagnostics/GHIplot.py
amcmahon01/SolarForecasting
4781f10772178eac0cc7c456c3fa03f68bfb9167
[ "MIT" ]
2
2020-02-04T22:30:00.000Z
2020-07-26T13:07:55.000Z
diagnostics/GHIplot.py
amcmahon01/SolarForecasting
4781f10772178eac0cc7c456c3fa03f68bfb9167
[ "MIT" ]
8
2020-03-12T15:55:23.000Z
2021-02-12T23:41:11.000Z
diagnostics/GHIplot.py
amcmahon01/SolarForecasting
4781f10772178eac0cc7c456c3fa03f68bfb9167
[ "MIT" ]
1
2021-01-25T15:30:11.000Z
2021-01-25T15:30:11.000Z
# plot daily box-whisker graphs of GHI data # Use standard config_handler with .yaml config to parse arguments from config_handler import handle_config from datetime import datetime,timezone,date import pandas as pd import matplotlib.pyplot as plt import pysolar.solar as ps import sys import time # note: pathlibs Path ...
37.94
119
0.634159
4199f294a2e28e1458f5bcf7a7ab4d59791be55e
497
py
Python
back-end/curso-em-video/python3/Mundo I/Desafios/15F - (Aluguel de Carros).py
gustavocamalionti/cursos-e-linguagens
615db91aff13db5678a783aac69df11231c925e8
[ "MIT" ]
null
null
null
back-end/curso-em-video/python3/Mundo I/Desafios/15F - (Aluguel de Carros).py
gustavocamalionti/cursos-e-linguagens
615db91aff13db5678a783aac69df11231c925e8
[ "MIT" ]
null
null
null
back-end/curso-em-video/python3/Mundo I/Desafios/15F - (Aluguel de Carros).py
gustavocamalionti/cursos-e-linguagens
615db91aff13db5678a783aac69df11231c925e8
[ "MIT" ]
null
null
null
#Desafio 015: escreva um programa que pergunte a quantidade de km percorridos por um carro alugado e a quantidade de dias pelos quais ele foi alugado. Calcule o preo a pagar, sabendo que o carro custa R$60 por dia e R$0.15 por km rodado. from math import ceil n1 = float(input('Quantos dias voc ficou com o carro? ')) n...
71
238
0.732394
4199fd000a6eeaed645e325824d9e5358133f869
4,422
py
Python
starling_sim/basemodel/output/kpi_output.py
tellae/starling
56121c728eb5de3dfc77cdf08da89548f3315c87
[ "CECILL-B" ]
19
2021-02-16T12:32:22.000Z
2022-01-06T11:16:44.000Z
starling_sim/basemodel/output/kpi_output.py
tellae/starling
56121c728eb5de3dfc77cdf08da89548f3315c87
[ "CECILL-B" ]
20
2021-01-13T20:58:07.000Z
2022-03-21T15:53:07.000Z
starling_sim/basemodel/output/kpi_output.py
tellae/starling
56121c728eb5de3dfc77cdf08da89548f3315c87
[ "CECILL-B" ]
null
null
null
from starling_sim.basemodel.output.kpis import KPI import logging import pandas as pd
30.081633
93
0.601312
419b810a097b707c486896ea644d7ea06d891f98
499
py
Python
examples/pytorch/diffpool/model/tensorized_layers/assignment.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
9,516
2018-12-08T22:11:31.000Z
2022-03-31T13:04:33.000Z
examples/pytorch/diffpool/model/tensorized_layers/assignment.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,494
2018-12-08T22:43:00.000Z
2022-03-31T21:16:27.000Z
examples/pytorch/diffpool/model/tensorized_layers/assignment.py
ketyi/dgl
a1b859c29b63a673c148d13231a49504740e0e01
[ "Apache-2.0" ]
2,529
2018-12-08T22:56:14.000Z
2022-03-31T13:07:41.000Z
import torch from torch import nn as nn from torch.nn import functional as F from torch.autograd import Variable from model.tensorized_layers.graphsage import BatchedGraphSAGE
26.263158
69
0.707415
419c065e166767452e2177fccdab49035d96b6a9
1,315
py
Python
openpype/hosts/webpublisher/plugins/publish/integrate_context_to_log.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
44
2019-03-19T04:56:35.000Z
2021-04-23T12:05:08.000Z
openpype/hosts/webpublisher/plugins/publish/integrate_context_to_log.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
655
2020-03-17T15:10:21.000Z
2021-04-23T18:22:52.000Z
openpype/hosts/webpublisher/plugins/publish/integrate_context_to_log.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
21
2019-03-19T04:56:38.000Z
2021-04-23T09:10:59.000Z
import os import pyblish.api from openpype.lib import OpenPypeMongoConnection
33.717949
79
0.558175
41a1a62b31efa7a1a933f7dd1b0d88b413af3645
6,756
py
Python
demo/myKNN-2.py
wei1224hf/photo-MES
3cca55cf438bd1917c1fc8d84e655777d92c3298
[ "BSD-3-Clause" ]
2
2021-05-09T10:43:06.000Z
2021-05-11T14:24:51.000Z
demo/myKNN-2.py
wei1224hf/photo-MES
3cca55cf438bd1917c1fc8d84e655777d92c3298
[ "BSD-3-Clause" ]
null
null
null
demo/myKNN-2.py
wei1224hf/photo-MES
3cca55cf438bd1917c1fc8d84e655777d92c3298
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import cv2 as cv from matplotlib import pyplot as plt import glob from imutils import contours import imutils arr = [[154,1855,180,1381 ,"box"],[260,343,374,777 ,"t"]] ab = arr[0] pt1 = arr[1] ct = [ int((ab[3]+ab[2])/2), int((ab[1]+ab[0])/2) ] area1 = [ pt1[0]-ct[1],pt1[1]-ct[1],pt1[2]-ct[0],pt1[3...
36.322581
109
0.51495
41a1a65579b9b9fb4619e6879a5263fb65b7ed83
1,206
py
Python
gameball/exceptions/gameball_exception.py
aaelfiky/gameball-python
bd7aead60ac53c6539f10a41d9c47e87569ce8c3
[ "MIT" ]
1
2022-03-15T14:08:06.000Z
2022-03-15T14:08:06.000Z
gameball/exceptions/gameball_exception.py
aaelfiky/gameball-python
bd7aead60ac53c6539f10a41d9c47e87569ce8c3
[ "MIT" ]
null
null
null
gameball/exceptions/gameball_exception.py
aaelfiky/gameball-python
bd7aead60ac53c6539f10a41d9c47e87569ce8c3
[ "MIT" ]
1
2022-01-17T00:38:18.000Z
2022-01-17T00:38:18.000Z
from __future__ import absolute_import, division, print_function
26.8
80
0.611111
41a269ef01a1b76a3d4233ac5822329857bc357f
968
py
Python
priority.py
donkirkby/domiculture
eb4258474055846eabd14ec791309354bdfba944
[ "MIT" ]
4
2017-02-19T03:08:50.000Z
2021-11-08T12:04:00.000Z
priority.py
donkirkby/donimoes
100e83e1d8701015e1a06f850935a3f3a52a0f5e
[ "MIT" ]
68
2016-10-07T05:56:40.000Z
2022-02-14T03:48:53.000Z
priority.py
donkirkby/domiculture
eb4258474055846eabd14ec791309354bdfba944
[ "MIT" ]
3
2019-07-23T15:40:12.000Z
2022-03-29T18:25:47.000Z
from heapq import heappush, heappop
26.888889
66
0.553719
41a560b70e557b523aecae7aa979cc3792b481c5
2,321
py
Python
speed_friending_matcher/exporter/cliqueexporter.py
machinekoder/speed-friending-matcher
c1d63c44e198497662c561342b64f597cb8623e9
[ "MIT" ]
4
2018-05-04T15:44:09.000Z
2019-03-17T04:54:20.000Z
speed_friending_matcher/exporter/cliqueexporter.py
machinekoder/speed-friending-and-dating-matcher
c1d63c44e198497662c561342b64f597cb8623e9
[ "MIT" ]
12
2017-10-21T10:42:28.000Z
2019-02-27T10:33:04.000Z
speed_friending_matcher/exporter/cliqueexporter.py
machinekoder/speed-friending-matcher
c1d63c44e198497662c561342b64f597cb8623e9
[ "MIT" ]
8
2018-01-02T10:14:19.000Z
2022-01-11T03:17:04.000Z
# -*- coding: utf-8 -*- from .exporter import Exporter from .export_tools import create_person_simple_string HEADER = '''\ Following cliques have been found: ''' GROUP_TEMPLATE = '''\ TEAM {number}: {count} friends {friends} ''' exporter = CliqueExporter
31.364865
97
0.627316
41a5b6b38108b4168c957b2862040c55b1835d9d
360
py
Python
plugins/avro-java/register.py
arron-green/pants-avro
fda2605cace481e79a8a5027219776af6d896d33
[ "Apache-2.0" ]
null
null
null
plugins/avro-java/register.py
arron-green/pants-avro
fda2605cace481e79a8a5027219776af6d896d33
[ "Apache-2.0" ]
null
null
null
plugins/avro-java/register.py
arron-green/pants-avro
fda2605cace481e79a8a5027219776af6d896d33
[ "Apache-2.0" ]
null
null
null
from pants.build_graph.build_file_aliases import BuildFileAliases from .targets import AvroJava from .gen import AvroJavaGen from pants.goal.task_registrar import TaskRegistrar as task
27.692308
65
0.8
41a7633ddffb30cf6b1f5142c98eefc976d7f329
1,264
py
Python
comments/models.py
chench53/jquery-comments-server
15f4b3dead770846bbb7c0d6aec889c64df6387c
[ "MIT" ]
2
2020-06-02T05:08:30.000Z
2020-06-02T05:08:33.000Z
comments/models.py
chench53/jquery-comments-server
15f4b3dead770846bbb7c0d6aec889c64df6387c
[ "MIT" ]
null
null
null
comments/models.py
chench53/jquery-comments-server
15f4b3dead770846bbb7c0d6aec889c64df6387c
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone # Create your models here.
28.088889
96
0.711234
41a7bf570de5af2196396f6db7d2f68a8abdfe45
5,984
py
Python
ana/fresnel.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
11
2020-07-05T02:39:32.000Z
2022-03-20T18:52:44.000Z
ana/fresnel.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
null
null
null
ana/fresnel.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
4
2020-09-03T20:36:32.000Z
2022-01-19T07:42:21.000Z
#!/usr/bin/env python # # Copyright (c) 2019 Opticks Team. All Rights Reserved. # # This file is part of Opticks # (see https://bitbucket.org/simoncblyth/opticks). # # 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...
24.42449
92
0.546123
41a80a7bb2ea9f3edd7fce0c895966513940b18c
17,695
py
Python
examples/api-samples/inc_samples/sample31.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/sample31.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/sample31.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
### This sample will show how to Create and Upload Envelop to GroupDocs account using Python SDK # Import of classes from libraries import os, time, random from pyramid.renderers import render_to_response from groupdocs.ApiClient import ApiClient from groupdocs.StorageApi import StorageApi from groupdocs.SignatureAp...
64.345455
289
0.441989
41a8ad6c52784414d3afc665096b267a843b65be
678
py
Python
tests/test_data.py
hhsecond/stockroom
d1335773e33493df07cc95f9bb48fbc351313dd6
[ "Apache-2.0" ]
null
null
null
tests/test_data.py
hhsecond/stockroom
d1335773e33493df07cc95f9bb48fbc351313dd6
[ "Apache-2.0" ]
null
null
null
tests/test_data.py
hhsecond/stockroom
d1335773e33493df07cc95f9bb48fbc351313dd6
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np
24.214286
54
0.675516
41a8d342baf300c3e7063c86b9c63dcb4a0417e4
515
py
Python
pandas_market_calendars/holidays_jp.py
mgellman-radix/pandas_market_calendars
2de80686267cdbb0b3b6878521fd2aebc6dca3bb
[ "MIT" ]
null
null
null
pandas_market_calendars/holidays_jp.py
mgellman-radix/pandas_market_calendars
2de80686267cdbb0b3b6878521fd2aebc6dca3bb
[ "MIT" ]
null
null
null
pandas_market_calendars/holidays_jp.py
mgellman-radix/pandas_market_calendars
2de80686267cdbb0b3b6878521fd2aebc6dca3bb
[ "MIT" ]
null
null
null
from pandas import ( Timestamp ) # Apr. 30 (Tue.) Abdication Day # May 1 (Wed.) Accession Day # May 2 (Thu.) National Holiday # May 3 (Fri.) Constitution Memorial Day # May 4 (Sat.) Greenery Day # May 6 (Mon.) Children's Day (May 5) observed AscensionDays = [ Timestamp('2019-04-30', tz='Asia/...
28.611111
49
0.619417
41a8f82ae00ac2a6ba6585edd33f5b6ec99755b6
5,226
py
Python
data/dataframes.py
MichaelVerdegaal/hotel-reviews-sentiment-analysis
a5a66efd09f16830f7d20cb48f6e062890d0a0f0
[ "MIT" ]
null
null
null
data/dataframes.py
MichaelVerdegaal/hotel-reviews-sentiment-analysis
a5a66efd09f16830f7d20cb48f6e062890d0a0f0
[ "MIT" ]
null
null
null
data/dataframes.py
MichaelVerdegaal/hotel-reviews-sentiment-analysis
a5a66efd09f16830f7d20cb48f6e062890d0a0f0
[ "MIT" ]
null
null
null
import os import re import nltk import pandas as pd from langdetect import detect from textblob import TextBlob from config import ROOT_DIR from data.file_util import (read_scraped_reviews, read_kaggle_reviews, read_manual_reviews, file_exists, read_pickled_dataframe, pickle_dataframe) usa...
30.034483
112
0.661883
41ab43a6c50dd2eb444bcff693eb194504df2b1c
5,018
py
Python
starter_bundle/ch20-out_of_the_box/imagenet_pretrained.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
1
2020-06-07T04:02:16.000Z
2020-06-07T04:02:16.000Z
starter_bundle/ch20-out_of_the_box/imagenet_pretrained.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
null
null
null
starter_bundle/ch20-out_of_the_box/imagenet_pretrained.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
2
2020-03-25T10:51:54.000Z
2020-09-18T09:36:44.000Z
# -*- coding: utf-8 -*- """Classifying Images with Pre-trained ImageNet CNNs. Lets learn how to classify images with pre-trained Convolutional Neural Networks using the Keras library. Example: $ python imagenet_pretrained.py --image example_images/example_01.jpg --model vgg16 $ python imagenet_pretrained.py -...
46.462963
112
0.709247
41ad9906c1085415e4a69dffa99b0120b61435c1
103
py
Python
Programmieren_in_Python_2/NumPy_matplotlib/plot_random_numbers.py
ThomasGrafCode/EF_WF_Informatik
d875189bfdb56b5989e2aa567b8e5cf8f009585e
[ "MIT" ]
null
null
null
Programmieren_in_Python_2/NumPy_matplotlib/plot_random_numbers.py
ThomasGrafCode/EF_WF_Informatik
d875189bfdb56b5989e2aa567b8e5cf8f009585e
[ "MIT" ]
null
null
null
Programmieren_in_Python_2/NumPy_matplotlib/plot_random_numbers.py
ThomasGrafCode/EF_WF_Informatik
d875189bfdb56b5989e2aa567b8e5cf8f009585e
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt N = 30 y = np.random.rand(N) plt.plot(y,'bo')
14.714286
36
0.708738
41b028aa3880d819cacddc876ce5774ff3b88727
1,240
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/insert-delete-getrandom-o1.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/insert-delete-getrandom-o1.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/insert-delete-getrandom-o1.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(1) # Space: O(n) from random import randint
21.754386
106
0.542742
41b065470fffdf9eae5d6c19c821f5e6d4ce2c57
3,733
py
Python
lingvo/jax/layers/__init__.py
drpngx/lingvo
adb50163814fd5dd2f07ac186adaedfe57ba4b2a
[ "Apache-2.0" ]
null
null
null
lingvo/jax/layers/__init__.py
drpngx/lingvo
adb50163814fd5dd2f07ac186adaedfe57ba4b2a
[ "Apache-2.0" ]
null
null
null
lingvo/jax/layers/__init__.py
drpngx/lingvo
adb50163814fd5dd2f07ac186adaedfe57ba4b2a
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
43.917647
82
0.835253
41b21c34afb4da8fd062144fa479a531bb699708
1,763
py
Python
iter2/utils.py
ramon93i7/iter2
7893d78af77cbb3e66e3e0795a3f08e7c162b07e
[ "Apache-2.0" ]
1
2020-11-07T06:04:33.000Z
2020-11-07T06:04:33.000Z
iter2/utils.py
ramon93i7/iter2
7893d78af77cbb3e66e3e0795a3f08e7c162b07e
[ "Apache-2.0" ]
null
null
null
iter2/utils.py
ramon93i7/iter2
7893d78af77cbb3e66e3e0795a3f08e7c162b07e
[ "Apache-2.0" ]
null
null
null
import functools import types
25.550725
104
0.598979
41b2f9e9a99ef44dae2779b7bbd38f6de8ad7e95
4,523
py
Python
hp4controller/virtualdevice/archive/hp4loader.py
MNCHr/Hyper4-Controller
3da4956d29af805d933937e545cbb33fecc4c082
[ "MIT" ]
null
null
null
hp4controller/virtualdevice/archive/hp4loader.py
MNCHr/Hyper4-Controller
3da4956d29af805d933937e545cbb33fecc4c082
[ "MIT" ]
null
null
null
hp4controller/virtualdevice/archive/hp4loader.py
MNCHr/Hyper4-Controller
3da4956d29af805d933937e545cbb33fecc4c082
[ "MIT" ]
null
null
null
from virtualdevice import VirtualDevice import hp4compiler from hp4translator import InterpretationGuide def produce_vdev(args): vdf = VirtualDeviceFactory() vdf.load(args.output, args.vdevID, args.input) vdf.writefile(args.input, args.output) def parse_args(args): parser = argparse.ArgumentParser(description...
29.562092
87
0.589432
41b3ecce4c4cf457c5be4734b8ecfb7923dee70c
3,787
py
Python
autotweet/twitter.py
Kjwon15/autotweet
c35b68ee1814916fbe9e5a5bd6ea6e75b3cc596e
[ "MIT" ]
5
2015-01-04T16:10:31.000Z
2020-08-25T06:49:30.000Z
autotweet/twitter.py
Kjwon15/autotweet
c35b68ee1814916fbe9e5a5bd6ea6e75b3cc596e
[ "MIT" ]
null
null
null
autotweet/twitter.py
Kjwon15/autotweet
c35b68ee1814916fbe9e5a5bd6ea6e75b3cc596e
[ "MIT" ]
null
null
null
""":mod:`autotweet.twitter` --- Twitter utilities ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains Twitter API key and some useful methods. """ from __future__ import unicode_literals import cgi import re import tweepy import webbrowser try: from HTMLParser import HTMLParser except ImportErr...
25.246667
73
0.659097
41b4c165cee002912774e614a621bf94ec4370ae
951
py
Python
main.py
Clemson-Esports/ReactionBot
148934f96c940728072dc8de9cc73f0164679554
[ "MIT" ]
null
null
null
main.py
Clemson-Esports/ReactionBot
148934f96c940728072dc8de9cc73f0164679554
[ "MIT" ]
7
2022-02-06T15:05:18.000Z
2022-02-28T01:25:17.000Z
main.py
Clemson-Esports/Reaction-Bot
148934f96c940728072dc8de9cc73f0164679554
[ "MIT" ]
null
null
null
import json import discord import os from discord.ext import commands import discord_components import ErrorHandling import Reactions import Help with open('Bot_Secrets.json', 'r') as botSecrets: settings = json.load(botSecrets) TOKEN = settings['BotToken'] intents = discord.Intents.default() intents.members ...
27.171429
82
0.754995
41b54267490971fa18558b1ff581557f6e72fe91
491
py
Python
test/integration/test_attributename.py
immijimmi/managedState
cb24aaa288f7ddb12a5042d104f6f0d6ab79828c
[ "MIT" ]
null
null
null
test/integration/test_attributename.py
immijimmi/managedState
cb24aaa288f7ddb12a5042d104f6f0d6ab79828c
[ "MIT" ]
null
null
null
test/integration/test_attributename.py
immijimmi/managedState
cb24aaa288f7ddb12a5042d104f6f0d6ab79828c
[ "MIT" ]
null
null
null
from managedstate import State, AttributeName
30.6875
79
0.688391
41b57894f84cea820873a10a935510ce5d26741e
2,445
py
Python
restdf/utils/exceptions.py
Mukhopadhyay/restdf
adeb6c188a20ecd9ee7eeafc12111e260072777e
[ "MIT" ]
3
2021-11-07T10:12:48.000Z
2021-11-11T07:06:25.000Z
restdf/utils/exceptions.py
Mukhopadhyay/restdf
adeb6c188a20ecd9ee7eeafc12111e260072777e
[ "MIT" ]
null
null
null
restdf/utils/exceptions.py
Mukhopadhyay/restdf
adeb6c188a20ecd9ee7eeafc12111e260072777e
[ "MIT" ]
null
null
null
""" Exceptions for RestDF """ from typing import Union, List
30.5625
90
0.611043
41b57a8acaa54b8ec6e98947784fbd39ad2dadcd
15,100
py
Python
pysnmp-with-texts/TFTIF-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/TFTIF-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/TFTIF-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 TFTIF-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TFTIF-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:16:16 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
160.638298
1,207
0.753444
41b57c0d33d477d09b1dd88ceeff4ea07dbdc75c
3,585
py
Python
tarefas-poo/lista-04/matriz_de_inteiros/model/matriz_de_inteiros.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/matriz_de_inteiros/model/matriz_de_inteiros.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/matriz_de_inteiros/model/matriz_de_inteiros.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# ------------------------------- # UFSC - CTC - INE - INE5663 # Exerccio da Matriz de Inteiros # ------------------------------- # Classe que representa uma matriz de nmeros inteiros. #
33.504673
103
0.590237
41b6767e1bcfb6a72ecdcfb98423ab0320c75e52
1,614
py
Python
alpyro_msgs/trajectory_msgs/multidofjointtrajectory.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
1
2020-12-13T13:07:10.000Z
2020-12-13T13:07:10.000Z
alpyro_msgs/trajectory_msgs/multidofjointtrajectory.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
alpyro_msgs/trajectory_msgs/multidofjointtrajectory.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
from typing import List from typing_extensions import Annotated from alpyro_msgs import RosMessage, string from alpyro_msgs.std_msgs.header import Header from alpyro_msgs.trajectory_msgs.multidofjointtrajectorypoint import MultiDOFJointTrajectoryPoint
100.875
1,082
0.942999
41b6954c963fd1c40212d6e6d3a76f68cc1f9063
777
py
Python
Python/python_logging/aula/app.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/python_logging/aula/app.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/python_logging/aula/app.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
''' Etapas do logger ''' import logging # Instancia do objeto getLogger() logger = logging.getLogger() # Definindo o level do logger logger.setLevel(logging.DEBUG) # formatador do log formatter = logging.Formatter( 'Data/Hora: %(asctime)s | level: %(levelname)s | file: %(filename)s | mensagem: %(message)s', ...
21.583333
97
0.682111
41b85e761dcd5f61aa3476d5fcfccf282a2d830b
675
py
Python
submissions/joi2009yo/d.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/joi2009yo/d.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/joi2009yo/d.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) m = int(readline()) n = int(readline()) a = [list(map(int, readline().split())) for _ in range(n)] ans = 0 for i, aa in enumerate(a): for j, check in enumerate(aa): ...
22.5
58
0.518519
41b8fe61ea30cea12c5965b50e3135e870aa3f8f
1,637
py
Python
BuildSimHubAPI/measures/hvac_template.py
ruijis/buildsimhub_python_api
67a88a421a5970b9134a97faf3d52a5a8a6c6258
[ "MIT" ]
19
2018-02-27T22:58:04.000Z
2022-02-21T15:03:59.000Z
BuildSimHubAPI/measures/hvac_template.py
ruijis/buildsimhub_python_api
67a88a421a5970b9134a97faf3d52a5a8a6c6258
[ "MIT" ]
11
2018-02-15T16:47:53.000Z
2018-12-19T18:33:20.000Z
BuildSimHubAPI/measures/hvac_template.py
ruijis/buildsimhub_python_api
67a88a421a5970b9134a97faf3d52a5a8a6c6258
[ "MIT" ]
11
2018-01-26T02:12:38.000Z
2019-09-29T12:05:31.000Z
from .model_action import ModelAction
34.104167
79
0.60843
41baba6d45efb33b6b1668aec3423b969a4f4ce4
1,633
py
Python
test/mc_init_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/mc_init_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
test/mc_init_test.py
lechat/multiconf
c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT # All rights reserved. This work is under a BSD license, see LICENSE.TXT. # pylint: disable=E0611 from pytest import xfail from .. import ConfigRoot, ConfigItem from ..envs import EnvFactory ef = EnvFactory() dev1 = ef.Env('dev1') dev2 = ef.Env('dev2') g_dev ...
23.666667
73
0.63319
41bc4086c207a194260d052ce2feddf7d01e228c
3,620
py
Python
app.py
wisemuffin/San_Francisco_Police_Reports
450c94bf98fd9fae8e6add76f39fde8ea31c8734
[ "MIT" ]
1
2020-01-19T00:25:15.000Z
2020-01-19T00:25:15.000Z
app.py
wisemuffin/San_Francisco_Police_Reports
450c94bf98fd9fae8e6add76f39fde8ea31c8734
[ "MIT" ]
null
null
null
app.py
wisemuffin/San_Francisco_Police_Reports
450c94bf98fd9fae8e6add76f39fde8ea31c8734
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import dash import dash_core_components as dcc import dash_html_components as html # from dash.dependencies import Input, Output # # import plotly.plotly as py # import plotly.graph_objs as go # # import pandas as pd # import numpy as np # from datetime import datetime # import pandas_datareader...
36.938776
216
0.616298
41bcd47b1c2d7f3f6218c6526b4655140b0b69e7
8,773
py
Python
pythonSublib/visao_comp/classificacao.py
leohmcs/AVANTLink
106dfc144ce882f700d69d9b77956577f8cd8422
[ "Apache-2.0" ]
5
2019-10-07T01:23:37.000Z
2021-06-21T03:00:11.000Z
pythonSublib/visao_comp/classificacao.py
leohmcs/AVANTLink
106dfc144ce882f700d69d9b77956577f8cd8422
[ "Apache-2.0" ]
5
2019-02-27T21:48:13.000Z
2020-12-20T00:54:39.000Z
pythonSublib/visao_comp/classificacao.py
leohmcs/AVANTLink
106dfc144ce882f700d69d9b77956577f8cd8422
[ "Apache-2.0" ]
9
2018-07-19T19:57:39.000Z
2020-10-16T20:26:37.000Z
import cv2 import numpy as np import math import matplotlib.pyplot as plt from PIL import Image nome = "triangulo" img_original = cv2.imread("entradas/" + nome + ".png") #cv2.imshow('Imagem Original',img_original) imagem_cinza = cv2.cvtColor(img_original, cv2.COLOR_BGR2GRAY) #cv2.imshow('Imagem Original',imagem_cinz...
34.952191
203
0.70375
41be66da2fbff0a708f7b07a6028fd3e0aa7d6ba
2,179
py
Python
test/observer/index_file_test.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
9
2017-05-24T09:55:34.000Z
2020-06-22T03:55:51.000Z
test/observer/index_file_test.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
97
2016-11-17T16:30:35.000Z
2021-10-09T00:27:56.000Z
test/observer/index_file_test.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
3
2017-05-21T19:20:38.000Z
2019-11-04T23:53:59.000Z
# Copyright 2017 SrMouraSilva # # 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.128571
74
0.650298
41be8ad9b87e428d6c9fb93063564080df1a6f56
1,650
py
Python
plotly/run_funcs.py
NREL/MetMastVis
0c3dd87540471c061eb491c871fdb32e6dabd31b
[ "Apache-2.0" ]
1
2018-05-25T20:03:48.000Z
2018-05-25T20:03:48.000Z
plotly/run_funcs.py
nhamilto/MetMast
38475682adb21081c86c58e9008a278971306c23
[ "Apache-2.0" ]
null
null
null
plotly/run_funcs.py
nhamilto/MetMast
38475682adb21081c86c58e9008a278971306c23
[ "Apache-2.0" ]
2
2018-06-07T20:00:03.000Z
2020-11-26T21:52:04.000Z
import vis import utils import met_funcs import plotly_vis import MetMastData import pandas as pd import matplotlib.pyplot as plt from colour import Color import plotly from plotly import tools #import plotly.tools as tls import plotly.plotly as py import plotly.graph_objs as go # Place input files here #inputfiles_he...
34.375
238
0.807273
41bfa761ab7c701386be39692e26aaad84e7ea20
11,074
py
Python
Tools/imgfunc/convert_img.py
ka10ryu1/jpegcomp2
1cf0e12140ea093725da8959b0ecfd27e2b08c59
[ "MIT" ]
1
2018-09-28T07:02:22.000Z
2018-09-28T07:02:22.000Z
Tools/imgfunc/convert_img.py
ka10ryu1/jpegcomp2
1cf0e12140ea093725da8959b0ecfd27e2b08c59
[ "MIT" ]
null
null
null
Tools/imgfunc/convert_img.py
ka10ryu1/jpegcomp2
1cf0e12140ea093725da8959b0ecfd27e2b08c59
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*-coding: utf-8 -*- # help = '[imgfunc] ' # import os import sys import cv2 import numpy as np from logging import getLogger logger = getLogger(__name__) [sys.path.append(d) for d in ['./Tools/', '../Tools/'] if os.path.isdir(d)] from func import fileFuncLine from imgfunc.read_write import g...
25.399083
84
0.570435
41c1f7279ddbf9791bbaa8022fac20b30c80a639
7,268
py
Python
c15/p449_httplib2_test2.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
c15/p449_httplib2_test2.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
c15/p449_httplib2_test2.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
from pprint import pprint import httplib2 from file_path_collect import output_cache_path_dir as cache httplib2.debuglevel = 1 h = httplib2.Http(cache) # jianshu = 'https://www.jianshu.com/' # cache response0, content0 = h.request(jianshu) print() response, content = h.request(jianshu) print() print(len(conten...
49.108108
603
0.718079
41c45ed05c4758d4e2d6a787be613269792fe8b5
354
py
Python
spikey/snn/readout/__init__.py
SpikeyCNS/spikey
03a49073491974eff01bc017fd8eadb822e13f0d
[ "MIT" ]
4
2021-02-25T20:53:41.000Z
2022-01-18T15:27:07.000Z
spikey/snn/readout/__init__.py
SpikeyCNS/spikey
03a49073491974eff01bc017fd8eadb822e13f0d
[ "MIT" ]
5
2021-03-06T05:35:10.000Z
2021-03-31T09:27:57.000Z
spikey/snn/readout/__init__.py
SpikeyCNS/spikey
03a49073491974eff01bc017fd8eadb822e13f0d
[ "MIT" ]
null
null
null
""" Readout __init__. """ try: from spikey.snn.readout.threshold import Threshold from spikey.snn.readout.neuron_rates import NeuronRates from spikey.snn.readout.population_vector import PopulationVector from spikey.snn.readout.topaction import TopAction except ImportError as e: raise ImportError(f"...
32.181818
69
0.776836
41c4a4c7f8fa7bfdd7d61a41f1278a69f5304239
678
py
Python
robust_offline_contextual_bandits/test/named_results_test.py
dmorrill10/research2018
3604e3fb774f6d882e41cc217ceb85038d3775e5
[ "MIT" ]
null
null
null
robust_offline_contextual_bandits/test/named_results_test.py
dmorrill10/research2018
3604e3fb774f6d882e41cc217ceb85038d3775e5
[ "MIT" ]
null
null
null
robust_offline_contextual_bandits/test/named_results_test.py
dmorrill10/research2018
3604e3fb774f6d882e41cc217ceb85038d3775e5
[ "MIT" ]
null
null
null
import tensorflow as tf from robust_offline_contextual_bandits.named_results import NamedResults import numpy as np if __name__ == '__main__': tf.test.main()
29.478261
72
0.648968
41c58dfd1e2400f8d789ceb0424c0287fdc36060
1,622
py
Python
examples/pubsub_broadcaster_server_example.py
sondrelg/fastapi_websocket_pubsub
6aaa0a90d736620b7229d7af06acb40e60716ce7
[ "MIT" ]
125
2021-02-08T11:16:12.000Z
2022-03-31T18:42:21.000Z
examples/pubsub_broadcaster_server_example.py
sondrelg/fastapi_websocket_pubsub
6aaa0a90d736620b7229d7af06acb40e60716ce7
[ "MIT" ]
11
2021-03-10T07:47:15.000Z
2021-11-23T09:00:43.000Z
examples/pubsub_broadcaster_server_example.py
sondrelg/fastapi_websocket_pubsub
6aaa0a90d736620b7229d7af06acb40e60716ce7
[ "MIT" ]
11
2021-02-25T21:01:25.000Z
2022-03-24T20:52:50.000Z
""" Multiple Servers linked via broadcaster example. To run this example. - 0. Setup a broadcast medium and pass its configuration to the endpoint (e.g. postgres on 'postgres://localhost:5432/' ) - 1. run this script for the servers (as many instances as you'd like) - use the PORT env-variable to run them on differ...
30.037037
139
0.741677
41c671a28baa4a3f74bfc396e33c985bddd2a406
1,977
py
Python
tests/test_utils_sizing.py
lcsgrlch/oap
b1e2e15118d5b73edf5d1848ccbc207921ecbf91
[ "MIT" ]
null
null
null
tests/test_utils_sizing.py
lcsgrlch/oap
b1e2e15118d5b73edf5d1848ccbc207921ecbf91
[ "MIT" ]
null
null
null
tests/test_utils_sizing.py
lcsgrlch/oap
b1e2e15118d5b73edf5d1848ccbc207921ecbf91
[ "MIT" ]
null
null
null
""" Testing all methods from oap.utils.sizing """ import unittest import oap from tests.data import array01_original as array
38.019231
101
0.706626
41c6b25db97ed211a457a3a156e943c7769ba1da
4,009
py
Python
advent_of_code/day_04/solution.py
novotl/advent_of_code
07e14d2107efcdecce8355b718d93cd1ac9edd4a
[ "MIT" ]
null
null
null
advent_of_code/day_04/solution.py
novotl/advent_of_code
07e14d2107efcdecce8355b718d93cd1ac9edd4a
[ "MIT" ]
null
null
null
advent_of_code/day_04/solution.py
novotl/advent_of_code
07e14d2107efcdecce8355b718d93cd1ac9edd4a
[ "MIT" ]
null
null
null
from typing import Iterable from copy import deepcopy from advent_of_code.runner import PuzzleTemplate from dataclasses import dataclass, field
32.860656
98
0.572462
41c78c68d065b859c2c2e5291510d5c31db6e4ea
3,166
py
Python
pandaserver/test/testSimulReco14.py
rybkine/panda-server
30fdeaa658a38fe2049849446c300c1e1f5b5231
[ "Apache-2.0" ]
1
2019-08-30T13:47:51.000Z
2019-08-30T13:47:51.000Z
pandaserver/test/testSimulReco14.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
pandaserver/test/testSimulReco14.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
import sys import time import random import commands import userinterface.Client as Client from taskbuffer.JobSpec import JobSpec from taskbuffer.FileSpec import FileSpec if len(sys.argv)>1: site = sys.argv[1] cloud = None else: site = None cloud = 'US' #cloud = 'TW' #Recent changes (BNL migrati...
31.039216
259
0.669299
41c7bcd341ef6d9db7278e79f57fd4a8cff03453
8,012
py
Python
TweakApi/models/billing_source_sofort.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
TweakApi/models/billing_source_sofort.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
TweakApi/models/billing_source_sofort.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ tweak-api Tweak API to integrate with all the Tweak services. You can find out more about Tweak at <a href='https://www.tweak.com'>https://www.tweak.com</a>, #tweak. OpenAPI spec version: 1.0.8-beta.0 Generated by: https://github.com/swagger-api/swagger-codegen.git ...
25.928803
165
0.585122
41c7dd5c53f3f8717ce8a20c270e0535db91de86
3,889
py
Python
mnt/airflow/dags/product_lookup_pipeline.py
dataength/automating-your-data-pipeline-with-apache-airflow
19b7fe4a41874708c5927b7c32f9840f4285090c
[ "MIT" ]
30
2020-07-09T17:37:47.000Z
2022-01-19T04:17:02.000Z
mnt/airflow/dags/product_lookup_pipeline.py
mizzony/automating-your-data-pipeline-with-apache-airflow
90a1351de6de78c0f0a6fb2e778e2ba3b7c78f5e
[ "MIT" ]
38
2021-08-12T08:01:47.000Z
2022-03-29T22:29:27.000Z
mnt/airflow/dags/product_lookup_pipeline.py
mizzony/automating-your-data-pipeline-with-apache-airflow
90a1351de6de78c0f0a6fb2e778e2ba3b7c78f5e
[ "MIT" ]
22
2020-07-10T02:41:39.000Z
2022-03-23T22:08:52.000Z
import csv import logging from airflow import DAG from airflow.operators.bash import BashOperator from airflow.operators.dummy import DummyOperator from airflow.providers.apache.hive.operators.hive import HiveOperator from airflow.operators.python import PythonOperator from airflow.providers.postgres.hooks.postgres im...
31.112
197
0.665981
41c9182645d673acce1bb52cd27576b1ae48e413
2,564
py
Python
clovars/bio/treatment.py
jfaccioni/clovars
64e24286a2dc185490384aeb08027d88eb9462c4
[ "MIT" ]
null
null
null
clovars/bio/treatment.py
jfaccioni/clovars
64e24286a2dc185490384aeb08027d88eb9462c4
[ "MIT" ]
null
null
null
clovars/bio/treatment.py
jfaccioni/clovars
64e24286a2dc185490384aeb08027d88eb9462c4
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING, Any from clovars.scientific import Gaussian, get_curve if TYPE_CHECKING: from clovars.scientific import Curve def get_treatment( name: str = '', division_curve: dict[str, Any] | None = None, death_curve: dict[str, Any...
32.05
75
0.613105
41caa407faa0f887428504d5f4adbe6e39ba8215
1,550
py
Python
lookup_api_v1/api_handler/types.py
markspolakovs/coronavirus-dashboard-api-v1
5f9a7a62f5b361f7d2805bcd35ea0ccc5aa0bd4c
[ "MIT" ]
null
null
null
lookup_api_v1/api_handler/types.py
markspolakovs/coronavirus-dashboard-api-v1
5f9a7a62f5b361f7d2805bcd35ea0ccc5aa0bd4c
[ "MIT" ]
65
2020-12-03T20:15:58.000Z
2022-03-17T09:06:52.000Z
lookup_api_v1/api_handler/types.py
markspolakovs/coronavirus-dashboard-api-v1
5f9a7a62f5b361f7d2805bcd35ea0ccc5aa0bd4c
[ "MIT" ]
1
2020-12-07T13:45:20.000Z
2020-12-07T13:45:20.000Z
#!/usr/bin python3 """ Type definitions ---------------- Custom type hint definitions used across the API service. Author: Pouria Hadjibagheri <pouria.hadjibagheri@phe.gov.uk> Created: 23 May 2020 License: MIT Contributors: Pouria Hadjibagheri """ # Imports # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
21.527778
90
0.568387
41cb6174b0eb3f32fce935cceb7087df91f7622f
595
py
Python
src/help/text/chsh.py
Hamzah-z/user-scripts
b345c812d45f1bd872c771809ecd3c0330ca236e
[ "Apache-2.0" ]
1
2019-12-18T19:49:45.000Z
2019-12-18T19:49:45.000Z
src/help/text/chsh.py
Hamzah-z/user-scripts
b345c812d45f1bd872c771809ecd3c0330ca236e
[ "Apache-2.0" ]
null
null
null
src/help/text/chsh.py
Hamzah-z/user-scripts
b345c812d45f1bd872c771809ecd3c0330ca236e
[ "Apache-2.0" ]
1
2021-06-13T00:08:02.000Z
2021-06-13T00:08:02.000Z
"""chfn help text""" CHSH = dict( text="""chsh changes your "shell" on Redbrick. ** WARNING - Do not use this command if you are unsure ** of what you are doing! :-) A "Shell" is the style of command line environment on RedBrick. It is essentially, the 'prompt' and set of commands that you get when you log in. ...
27.045455
64
0.736134
41cc6ae2442a70cc296bd15389db7a02e9f370af
1,996
py
Python
Cluster/k-means_tutorial.py
MarkWh1te/MLAlgorithms
1a3ba3adcbfe379a78a4508ae9433c78270d77f5
[ "MIT" ]
null
null
null
Cluster/k-means_tutorial.py
MarkWh1te/MLAlgorithms
1a3ba3adcbfe379a78a4508ae9433c78270d77f5
[ "MIT" ]
null
null
null
Cluster/k-means_tutorial.py
MarkWh1te/MLAlgorithms
1a3ba3adcbfe379a78a4508ae9433c78270d77f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np np.random.seed(0) import matplotlib.pyplot as plt from sklearn.datasets import make_blobs def initialize_clusters(points, k): """Initializes clusters as k randomly selected points from points.""" return points[np.random.randint(points.shape[0], size=k)] # Function ...
29.791045
96
0.698397
41cccc5396748efdf0684e52b6a1992b167b0dcf
3,612
py
Python
test/test_server.py
gomezportillo/apolo
8811fd805086d22ac15243eef43fc9be77be5484
[ "MIT" ]
1
2018-10-08T09:45:53.000Z
2018-10-08T09:45:53.000Z
test/test_server.py
gomezportillo/cloud-computing
8811fd805086d22ac15243eef43fc9be77be5484
[ "MIT" ]
30
2018-10-26T15:48:37.000Z
2019-01-22T18:52:42.000Z
test/test_server.py
gomezportillo/cloud-computing
8811fd805086d22ac15243eef43fc9be77be5484
[ "MIT" ]
3
2018-11-30T14:40:29.000Z
2019-01-01T23:07:32.000Z
import unittest import requests import json if __name__ == '__main__': unittest.main()
31.964602
85
0.629014
41cde944efb368315e222c2b9157667041eb8d7e
921
py
Python
modulo_7/src/4_diferencia_antipodas.py
SRendonn/analisis-diseno-algoritmos
16afc95f7a473c067a6bade5b70e458da53f70f7
[ "MIT" ]
null
null
null
modulo_7/src/4_diferencia_antipodas.py
SRendonn/analisis-diseno-algoritmos
16afc95f7a473c067a6bade5b70e458da53f70f7
[ "MIT" ]
null
null
null
modulo_7/src/4_diferencia_antipodas.py
SRendonn/analisis-diseno-algoritmos
16afc95f7a473c067a6bade5b70e458da53f70f7
[ "MIT" ]
null
null
null
N, i = [int(x) for x in input().split()] lista = [] for j in range(N): lista.append(int(input())) print(abs(find_k(lista, 0, len(lista) - 1, N - i) - find_k(lista, 0, len(lista) - 1, i - 1)))
26.314286
65
0.522258
41ce532a4040ebb98f597bfd44d50c48154e9a75
171
py
Python
avx512-cnnopt/TileLoopGenerator/solver/main.py
Mastli/ASPLOS_artifact
1a592f7cfb0592f0a786e156a249087b56a4e647
[ "BSD-4-Clause" ]
7
2021-05-21T02:01:50.000Z
2021-11-22T05:51:22.000Z
avx512-cnnopt/TileLoopGenerator/solver/main.py
Mastli/ASPLOS_artifact
1a592f7cfb0592f0a786e156a249087b56a4e647
[ "BSD-4-Clause" ]
null
null
null
avx512-cnnopt/TileLoopGenerator/solver/main.py
Mastli/ASPLOS_artifact
1a592f7cfb0592f0a786e156a249087b56a4e647
[ "BSD-4-Clause" ]
3
2021-03-27T13:11:21.000Z
2021-11-01T15:40:35.000Z
from SymbolPool import * from Tensor import * from LoopStacker import * from Test import * if __name__ == "__main__": main()
13.153846
26
0.649123
68b72f9cf752c76a687108c02d9066d2f68554b7
908
py
Python
step3_upload_to_s3.py
OpenKBC/deg-pipeline-batch-image
0b640d1b3209ad216eed0909fa577451cbe323d4
[ "MIT" ]
null
null
null
step3_upload_to_s3.py
OpenKBC/deg-pipeline-batch-image
0b640d1b3209ad216eed0909fa577451cbe323d4
[ "MIT" ]
null
null
null
step3_upload_to_s3.py
OpenKBC/deg-pipeline-batch-image
0b640d1b3209ad216eed0909fa577451cbe323d4
[ "MIT" ]
null
null
null
__author__ = "Junhee Yoon" __version__ = "1.0.0" __maintainer__ = "Junhee Yoon" __email__ = "swiri021@gmail.com" """ Description: This is batch job for uploading result file to S3. """ import os import argparse from libraries.botoClass import botoHandler ## argparse setting parser = argparse.ArgumentParser(prog='step...
31.310345
81
0.712555
68bb9912ef13f9b892f27cca3983560845ebbab2
1,926
py
Python
algorithms/2.1_add_two_numbers.py
ycpeng7/leetcode_challenges
1a55e2af08f8b5c5d204c16cc161721ffe7d6647
[ "MIT" ]
null
null
null
algorithms/2.1_add_two_numbers.py
ycpeng7/leetcode_challenges
1a55e2af08f8b5c5d204c16cc161721ffe7d6647
[ "MIT" ]
null
null
null
algorithms/2.1_add_two_numbers.py
ycpeng7/leetcode_challenges
1a55e2af08f8b5c5d204c16cc161721ffe7d6647
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Add Two Numbers #------------------------------------------------------------------------------- # By Ying Peng # https://leetcode.com/problems/add-two-numbers/ # Completed 12/3/20 #----------------------------------------------------...
27.514286
80
0.330737
68bd3511181a0ce3a2e7e28973f1e99a98020c70
3,953
py
Python
backend/api/viewsets/vehicle.py
amichard/zeva
19ba22b07946674cc31a48c632aceca594a53e1a
[ "Apache-2.0" ]
null
null
null
backend/api/viewsets/vehicle.py
amichard/zeva
19ba22b07946674cc31a48c632aceca594a53e1a
[ "Apache-2.0" ]
null
null
null
backend/api/viewsets/vehicle.py
amichard/zeva
19ba22b07946674cc31a48c632aceca594a53e1a
[ "Apache-2.0" ]
null
null
null
from rest_framework import mixins, viewsets from rest_framework.decorators import action from rest_framework.permissions import AllowAny from rest_framework.response import Response from api.models.model_year import ModelYear from api.models.vehicle import Vehicle, VehicleDefinitionStatuses from api.models.vehicle_cla...
31.879032
102
0.663294
68bd8231126ef0d9ff6ee74b1940ca4d28ca1498
5,074
py
Python
timelight_ai_python_api_client/models/__init__.py
timelight-ai/python-api-client
7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39
[ "MIT" ]
null
null
null
timelight_ai_python_api_client/models/__init__.py
timelight-ai/python-api-client
7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39
[ "MIT" ]
null
null
null
timelight_ai_python_api_client/models/__init__.py
timelight-ai/python-api-client
7e14341a89e8b7e1b4b0730416f6ddd3ef66ef39
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ timelight This is the timelight api. # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import # import models into model package from timelight_ai_python_api_client.mo...
69.506849
123
0.917422
68be90104be80974dc3c67a611df81f62dbaabc1
1,620
py
Python
Chapter03/plot_convolution.py
arifmudi/Advanced-Deep-Learning-with-Python
180cae0ec62857670bfc2a4d566857030adc4905
[ "MIT" ]
107
2019-12-09T13:49:33.000Z
2021-08-31T03:23:39.000Z
Chapter03/plot_convolution.py
bwantan/Advanced-Deep-Learning-with-Python
083f63dfc0c5f404143552ea20d560b06ec303f5
[ "MIT" ]
null
null
null
Chapter03/plot_convolution.py
bwantan/Advanced-Deep-Learning-with-Python
083f63dfc0c5f404143552ea20d560b06ec303f5
[ "MIT" ]
48
2019-12-05T05:30:51.000Z
2022-03-22T02:03:00.000Z
import matplotlib.pyplot as plt import numpy as np signal = np.zeros(30000) signal[10000:20000] = 1 kernel = np.zeros(30000) kernel[10000:20000] = np.linspace(1, 0, 10000) plot_convolution(signal, kernel) plot_convolution_step_by_step(signal, kernel)
25.3125
56
0.62284
68bf0b03006f00f183ed52d981b3c274ac0142ec
700
py
Python
materialist/commonconstants.py
srungta/i-materialist
0899593e0de0f311ff2dd4e76900ee4bd07895d7
[ "MIT" ]
null
null
null
materialist/commonconstants.py
srungta/i-materialist
0899593e0de0f311ff2dd4e76900ee4bd07895d7
[ "MIT" ]
null
null
null
materialist/commonconstants.py
srungta/i-materialist
0899593e0de0f311ff2dd4e76900ee4bd07895d7
[ "MIT" ]
null
null
null
DATA_FOLDER = './materialist/data' TEST_FOLDER = './materialist/data/test' TRAIN_FOLDER = './materialist/data/train' VALIDATION_FOLDER = './materialist/data/validation' TEST_FILE = './materialist/data/test.json' TRAIN_FILE = './materialist/data/train.json' VALIDATION_FILE = './materialist/data/validation.json' TEST_...
35
70
0.78
68bf99c7dad36ea5c5f85c9c40a52a0873cbd213
7,202
py
Python
vision/src/VisionROS/dialogConfigROS.py
victoriapc/HockusPockus
2130b462b0038a527061744ab7faf20c2996c04f
[ "BSD-3-Clause" ]
null
null
null
vision/src/VisionROS/dialogConfigROS.py
victoriapc/HockusPockus
2130b462b0038a527061744ab7faf20c2996c04f
[ "BSD-3-Clause" ]
52
2020-01-15T16:45:32.000Z
2020-04-19T12:00:01.000Z
vision/src/VisionROS/dialogConfigROS.py
victoriapc/HockusPockus
2130b462b0038a527061744ab7faf20c2996c04f
[ "BSD-3-Clause" ]
4
2020-01-15T15:11:08.000Z
2021-01-11T17:41:07.000Z
import threading import copy import time from VisionROS.ROS_CONSTANTS import * from VisionUtils.TableDimensions import TableDimensions try: import rospy from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError from geometry_msgs.msg import Point from std_msgs.msg import Int32...
41.390805
144
0.713968
68c3b0e3c32c4d0937107143623d703a7f6d4cba
2,279
py
Python
todo/bucketlist/tests/test_models.py
NdagiStanley/not-by-might
5216c066c0869056e47259b33e42f375366f022c
[ "MIT" ]
1
2019-01-15T20:18:50.000Z
2019-01-15T20:18:50.000Z
todo/bucketlist/tests/test_models.py
NdagiStanley/not-by-might
5216c066c0869056e47259b33e42f375366f022c
[ "MIT" ]
17
2018-09-24T16:46:30.000Z
2019-01-21T17:19:26.000Z
todo/bucketlist/tests/test_models.py
NdagiStanley/not-by-might
5216c066c0869056e47259b33e42f375366f022c
[ "MIT" ]
1
2016-04-13T11:16:27.000Z
2016-04-13T11:16:27.000Z
import datetime from django.test import TestCase from django.core.urlresolvers import reverse from ..models import Bucketlist, BucketlistItem, User
39.982456
94
0.678806
68c3f71371da194345e2c06a2e4bb2bc19f623aa
126
py
Python
skyportal/facility_apis/__init__.py
steveschulze/skyportal
47e334d71e34e82ff41bd0e32326e4107741e8e6
[ "BSD-3-Clause" ]
null
null
null
skyportal/facility_apis/__init__.py
steveschulze/skyportal
47e334d71e34e82ff41bd0e32326e4107741e8e6
[ "BSD-3-Clause" ]
null
null
null
skyportal/facility_apis/__init__.py
steveschulze/skyportal
47e334d71e34e82ff41bd0e32326e4107741e8e6
[ "BSD-3-Clause" ]
null
null
null
from .interface import FollowUpAPI, Listener from .sedm import SEDMAPI, SEDMListener from .lt import IOOAPI, IOIAPI, SPRATAPI
31.5
44
0.81746
68c41f425ed9a900c2ffb53250f96b3e217dd617
507
py
Python
etsy_convos/convos/filters.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
2
2018-12-17T15:47:43.000Z
2020-02-29T19:47:30.000Z
etsy_convos/convos/filters.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
2
2017-07-12T02:45:33.000Z
2017-11-02T00:37:59.000Z
etsy_convos/convos/filters.py
jessehon/etsy-convos
34631f49ec745fa11611af6122a7522adc16d241
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import filters
36.214286
64
0.719921
68c4d4265afe5b1a41c37f73f622f02a4950d729
7,797
py
Python
rocAL/rocAL_pybind/example/tf_mnistTrainingExample/tf_mnist_classification_rali.py
asalmanp/MIVisionX
a964774944331827c8d6e9bb1ffbb2578f335056
[ "MIT" ]
153
2018-12-20T19:33:15.000Z
2022-03-30T03:51:14.000Z
rocAL/rocAL_pybind/example/tf_mnistTrainingExample/tf_mnist_classification_rali.py
asalmanp/MIVisionX
a964774944331827c8d6e9bb1ffbb2578f335056
[ "MIT" ]
484
2019-01-02T23:51:58.000Z
2022-03-31T15:52:43.000Z
rocAL/rocAL_pybind/example/tf_mnistTrainingExample/tf_mnist_classification_rali.py
asalmanp/MIVisionX
a964774944331827c8d6e9bb1ffbb2578f335056
[ "MIT" ]
105
2018-12-21T00:02:38.000Z
2022-03-25T15:44:02.000Z
from __future__ import print_function from amd.rali.plugin.tf import RALIIterator from amd.rali.pipeline import Pipeline import amd.rali.ops as ops import amd.rali.types as types import sys import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import numpy as np ############################### HYPER PARAMETERS F...
42.375
258
0.702193
68c576960ed4b14647e54e0f97d34c5fc34587e3
22
py
Python
src/cnpj/seek/__init__.py
pedromxavier/cnpj
0b0f4914a49866990e484a03111f3b2c80d83aaa
[ "MIT" ]
1
2021-03-13T13:47:40.000Z
2021-03-13T13:47:40.000Z
src/cnpj/seek/__init__.py
pedromxavier/cnpj
0b0f4914a49866990e484a03111f3b2c80d83aaa
[ "MIT" ]
null
null
null
src/cnpj/seek/__init__.py
pedromxavier/cnpj
0b0f4914a49866990e484a03111f3b2c80d83aaa
[ "MIT" ]
null
null
null
from .seek import seek
22
22
0.818182
68c69cdec506eb8316038799ca2554afbcc61e60
513
py
Python
youtube_mp3/main.py
ewenchou/youtube-mp3
58aabceb199d09f95c4a877638c2202a9506ec79
[ "MIT" ]
null
null
null
youtube_mp3/main.py
ewenchou/youtube-mp3
58aabceb199d09f95c4a877638c2202a9506ec79
[ "MIT" ]
null
null
null
youtube_mp3/main.py
ewenchou/youtube-mp3
58aabceb199d09f95c4a877638c2202a9506ec79
[ "MIT" ]
null
null
null
# coding=utf8 # Main executable for download import sys, traceback import pprint from youtube_mp3 import YouTubeMP3 if __name__ == '__main__': if len(sys.argv) != 2: raise ValueError("Missing URL argument") yt = YouTubeMP3() url = sys.argv[1] data_list = yt.download(url) print(data_list) ...
23.318182
48
0.637427
68c8c49a947bfb4e3cdee097d291390bb5c31758
1,726
py
Python
tests/test_backup.py
RSabet/rolling-backup
9dcc9ca350d1e5d4d1ee031c36487253c60eafa0
[ "MIT" ]
null
null
null
tests/test_backup.py
RSabet/rolling-backup
9dcc9ca350d1e5d4d1ee031c36487253c60eafa0
[ "MIT" ]
null
null
null
tests/test_backup.py
RSabet/rolling-backup
9dcc9ca350d1e5d4d1ee031c36487253c60eafa0
[ "MIT" ]
null
null
null
import random import pytest from rolling_backup import backup CONTENT = "Hello"
28.295082
95
0.616454
68caf27fb5451631df049d1573b4235a1bdc14a4
7,705
py
Python
post/views.py
agiledesign2/drf-blog-post
a0dc7457e9e85e6b1a1f3aa81036b81f7054734f
[ "MIT" ]
null
null
null
post/views.py
agiledesign2/drf-blog-post
a0dc7457e9e85e6b1a1f3aa81036b81f7054734f
[ "MIT" ]
1
2020-05-16T09:44:57.000Z
2020-05-16T09:44:57.000Z
posts/views.py
agiledesign2/django-blog-post
318636682b9d4993b5ef7c3e8ead8bb5460aba01
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.utils import timezone from .models import Post, Category from taggit.models import Tag from .forms import AddPostForm #from .validator import group_required # complex lookups (for searching) from django.db.models import Q from django.urls ...
29.185606
94
0.662297
68cbb45a7e83cc2362b7fb123c4deb4d27e5b29e
9,466
py
Python
examples/classifier_compression/main.py
wanshanhsieh/distiller
2ae998c066b975bcb38b8ecc2927bf1015f634b9
[ "Apache-2.0" ]
null
null
null
examples/classifier_compression/main.py
wanshanhsieh/distiller
2ae998c066b975bcb38b8ecc2927bf1015f634b9
[ "Apache-2.0" ]
null
null
null
examples/classifier_compression/main.py
wanshanhsieh/distiller
2ae998c066b975bcb38b8ecc2927bf1015f634b9
[ "Apache-2.0" ]
null
null
null
'''Train CIFAR10 with PyTorch.''' import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn from torch.autograd import Variable import torchvision import torchvision.transforms as transforms import sys import os import argparse import numpy as ...
38.323887
153
0.649905
68cbe97d31e3324032f88dccfed54fc66b602a89
19,079
py
Python
src/python/tests/unittests/test_controller/test_scan/test_remote_scanner.py
annihilatethee/seedsync
7a0ba915cc570bc12916088baa6eb6bee6f291c9
[ "Apache-2.0" ]
null
null
null
src/python/tests/unittests/test_controller/test_scan/test_remote_scanner.py
annihilatethee/seedsync
7a0ba915cc570bc12916088baa6eb6bee6f291c9
[ "Apache-2.0" ]
null
null
null
src/python/tests/unittests/test_controller/test_scan/test_remote_scanner.py
annihilatethee/seedsync
7a0ba915cc570bc12916088baa6eb6bee6f291c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, Inderpreet Singh, All rights reserved. import unittest import logging import sys from unittest.mock import patch, call, ANY import tempfile import os import pickle import shutil from controller.scan import RemoteScanner from ssh import SshcpError from common import AppError from common import Locali...
37.780198
108
0.62498
68cbf12bc70184cee6d43fa3ffcdca46bedc9617
9,137
py
Python
python/snippet_utils.py
emory-irlab/Mouse2Gaze
3280c905d76fb85b8a7b9803ec56a719730392d7
[ "MIT" ]
null
null
null
python/snippet_utils.py
emory-irlab/Mouse2Gaze
3280c905d76fb85b8a7b9803ec56a719730392d7
[ "MIT" ]
null
null
null
python/snippet_utils.py
emory-irlab/Mouse2Gaze
3280c905d76fb85b8a7b9803ec56a719730392d7
[ "MIT" ]
null
null
null
# -- Writtenb by dsavenk import psycopg2 from os import path import re import urllib2 #import emu_load_snippets from BeautifulSoup import BeautifulSoup #from html_resource_save import resource_extractor import urllib import httplib import socket #prefix = emu_load_snippets.prefix prefix = 'dg21' socket.setdefaulttimeo...
39.214592
150
0.572398
68cc80fa7c076c3048e70f3b89a43ad88f5c90bb
4,597
py
Python
nertivia/bot.py
Nertivia-PY/Nertivia.py
f4511d9fe4e4cb5ca59c7e8a2167cc587dcd5c75
[ "MIT" ]
2
2021-08-28T21:19:17.000Z
2022-02-10T19:43:45.000Z
nertivia/bot.py
Nertivia-PY/Nertivia.py
f4511d9fe4e4cb5ca59c7e8a2167cc587dcd5c75
[ "MIT" ]
5
2021-08-28T23:06:26.000Z
2022-02-11T17:41:15.000Z
nertivia/bot.py
Nertivia-PY/Nertivia.py
f4511d9fe4e4cb5ca59c7e8a2167cc587dcd5c75
[ "MIT" ]
3
2021-08-28T21:19:32.000Z
2021-09-12T12:45:47.000Z
import json import logging import nertivia.events import websockets import asyncio
34.56391
109
0.568197
68cd259631984c9943cb64ba2e8d9ad5b8e4a938
2,339
py
Python
vedastr_cstr/vedastr/models/heads/transformer_head.py
bsm8734/formula-image-latex-recognition
86d5070e8f907571a47967d64facaee246d92a35
[ "MIT" ]
13
2021-06-20T18:11:23.000Z
2021-12-07T18:06:42.000Z
vedastr_cstr/vedastr/models/heads/transformer_head.py
bsm8734/formula-image-latex-recognition
86d5070e8f907571a47967d64facaee246d92a35
[ "MIT" ]
9
2021-06-16T14:55:07.000Z
2021-06-23T14:45:36.000Z
vedastr_cstr/vedastr/models/heads/transformer_head.py
bsm8734/formula-image-latex-recognition
86d5070e8f907571a47967d64facaee246d92a35
[ "MIT" ]
6
2021-06-17T15:16:50.000Z
2021-07-05T20:41:26.000Z
import logging import math import torch import torch.nn as nn from vedastr.models.bodies import build_sequence_decoder from vedastr.models.utils import build_torch_nn from vedastr.models.weight_init import init_weights from .registry import HEADS logger = logging.getLogger()
27.197674
70
0.604959