hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
0c91e1c1cf29e15371a4ee6e5142850adc128722
1,657
py
Python
utilities/visualisation/log_file_plotter.py
bootml/agent
84235db931d6e4ef956962961c619994898ebdd5
[ "Apache-2.0" ]
null
null
null
utilities/visualisation/log_file_plotter.py
bootml/agent
84235db931d6e4ef956962961c619994898ebdd5
[ "Apache-2.0" ]
null
null
null
utilities/visualisation/log_file_plotter.py
bootml/agent
84235db931d6e4ef956962961c619994898ebdd5
[ "Apache-2.0" ]
1
2018-09-27T14:31:41.000Z
2018-09-27T14:31:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'cnheider' import csv import matplotlib.pyplot as plt import utilities as U # print(plt.style.available) plot_style = 'fivethirtyeight' # plot_style='bmh' # plot_style='ggplot' plt.style.use('seaborn-poster') plt.style.use(plot_style) plt.rcParams['axes.e...
25.106061
101
0.703681
0
0
0
0
0
0
0
0
765
0.461678
0c91f8beba1444262adffec26a3344ef48edb987
435
py
Python
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
print("I will now count my chickens:") print ("Hens",25+30/6) print ("Roosters",100-25*3%4) print("How I will count the eggs:") print(3+2+1-5+4%2-1/4+6) print("Is it true that 3+2<5-7?") print(3+2<5-7) print("What is 3+2?", 3+2) print("What is 5-7?", 5-7) print("Oh,that's why it's false") print("How about some...
16.730769
38
0.62069
0
0
0
0
0
0
0
0
240
0.551724
0c92ac74a41c6d27584a5d7d7e530d1077058597
2,385
py
Python
datasets/few_shot_test_pickle.py
PengWan-Yang/few-shot-transformer
c055239061744124c72960420cd4037495952b6d
[ "Apache-2.0" ]
4
2022-02-06T19:51:19.000Z
2022-03-15T21:19:23.000Z
datasets/few_shot_test_pickle.py
PengWan-Yang/few-shot-transformer
c055239061744124c72960420cd4037495952b6d
[ "Apache-2.0" ]
1
2022-02-06T20:00:15.000Z
2022-02-06T20:00:15.000Z
datasets/few_shot_test_pickle.py
PengWan-Yang/few-shot-transformer
c055239061744124c72960420cd4037495952b6d
[ "Apache-2.0" ]
null
null
null
import pickle # modify validation data _few_shot_pickle_file = 'few_shot_test_data.pkl' _few_shot_file = open(_few_shot_pickle_file, 'rb') data_few_shot = pickle.load(_few_shot_file) _few_shot_pickle_file = 'few_shot_val_data.pkl' _few_shot_file = open(_few_shot_pickle_file, 'rb') data_val = pickle.load(_few_shot_...
37.857143
98
0.65283
0
0
0
0
0
0
0
0
771
0.32327
0c93992159c77c279e8541bafd3b789955b4b418
473
py
Python
3/node.py
Pavel3P/Machine-Learning
441da7de69ebf6cef9ebe54a0b3992918faf1d40
[ "MIT" ]
null
null
null
3/node.py
Pavel3P/Machine-Learning
441da7de69ebf6cef9ebe54a0b3992918faf1d40
[ "MIT" ]
null
null
null
3/node.py
Pavel3P/Machine-Learning
441da7de69ebf6cef9ebe54a0b3992918faf1d40
[ "MIT" ]
null
null
null
import numpy as np class Node: def __init__(self, gini: float, num_samples_per_class: np.ndarray, ) -> None: self.gini: float = gini self.num_samples_per_class: np.ndarray = num_samples_per_class self.predicted_class: int = np.argmax(num_s...
26.277778
70
0.587738
451
0.953488
0
0
0
0
0
0
0
0
0c960c32123fe98899d1aea36a071118d99135d2
5,654
py
Python
nemo/collections/nlp/utils/evaluation_utils.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
1
2020-08-04T08:29:41.000Z
2020-08-04T08:29:41.000Z
nemo/collections/nlp/utils/evaluation_utils.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
1
2020-06-11T00:54:42.000Z
2020-06-11T00:54:42.000Z
nemo/collections/nlp/utils/evaluation_utils.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
3
2020-03-10T05:10:07.000Z
2020-12-08T01:33:35.000Z
# ============================================================================= # Copyright 2020 NVIDIA. 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://ww...
37.197368
115
0.598161
0
0
0
0
0
0
0
0
2,603
0.460382
0c9646550e91efca615eedc91a6895d4f88c0e06
276
py
Python
fdk_client/common/date_helper.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/common/date_helper.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/common/date_helper.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
from datetime import datetime import pytz from .constants import TIMEZONE timezone = pytz.timezone(TIMEZONE) def get_ist_now(): """Returns Indian Standard Time datetime object. Returns: object -- Datetime object """ return datetime.now(timezone)
16.235294
52
0.710145
0
0
0
0
0
0
0
0
104
0.376812
0c966317072167bda3878121dfa458b395fd1b61
1,357
py
Python
recipes/LibriParty/generate_dataset/get_dataset_from_metadata.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
recipes/LibriParty/generate_dataset/get_dataset_from_metadata.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
recipes/LibriParty/generate_dataset/get_dataset_from_metadata.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
""" LibriParty Dataset creation by using official metadata. Author ------ Samuele Cornell, 2020 Mirco Ravanelli, 2020 """ import os import sys import speechbrain as sb from hyperpyyaml import load_hyperpyyaml from speechbrain.utils.data_utils import download_file from local.create_mixtures_from_metadata import create...
28.270833
77
0.745763
0
0
0
0
0
0
0
0
375
0.276345
0c9682abb64f3ba26f9ba369881899db7f3b759b
3,440
py
Python
tests/test_py4gh.py
iCAN-PCM/py4gh
192e62d531b5fd8c4c9a04a83c98bd63795578b8
[ "Apache-2.0" ]
null
null
null
tests/test_py4gh.py
iCAN-PCM/py4gh
192e62d531b5fd8c4c9a04a83c98bd63795578b8
[ "Apache-2.0" ]
null
null
null
tests/test_py4gh.py
iCAN-PCM/py4gh
192e62d531b5fd8c4c9a04a83c98bd63795578b8
[ "Apache-2.0" ]
null
null
null
import subprocess from pathlib import Path import pytest # from py4gh import __version__ from py4gh.utility import decrypt_files, encrypt_files, get_files # def test_version(): # assert __version__ == "0.1.0" @pytest.fixture(scope="session") def keys(tmpdir_factory): test_pub1 = tmpdir_factory.mktemp("data...
31.559633
79
0.636047
0
0
0
0
1,051
0.305523
0
0
848
0.246512
0c96e86ca1a15c8434d2cbc7e56c0f749d433cc7
2,885
py
Python
test/sca/test_rpa.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
test/sca/test_rpa.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
test/sca/test_rpa.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
from unittest import TestCase from parameterized import parameterized from pyecsca.ec.context import local from pyecsca.ec.mult import LTRMultiplier, BinaryNAFMultiplier, WindowNAFMultiplier, LadderMultiplier, \ DifferentialLadderMultiplier from pyecsca.ec.params import get_params from pyecsca.sca.re.rpa import M...
41.214286
110
0.664471
2,547
0.882842
0
0
593
0.205546
0
0
209
0.072444
0c97356ee6bbe49ca37564ac2a4ced12f750d008
624
py
Python
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
import unittest # time complexity O(n**2) # space complexity O(1) def selection_sort(arr): n = len(arr) while n >= 2: value_max = arr[0] index_max = 0 for i in range(1, n): if arr[i] > value_max: value_max = arr[i] index_max = i arr[...
22.285714
71
0.543269
175
0.280449
0
0
0
0
0
0
58
0.092949
0c97d3a32db9b335bffe637b1d619f3774455b40
2,930
py
Python
createExeWindows.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
createExeWindows.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
createExeWindows.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
# !/usr/bin/python3 # -*- coding: utf-8 -*- # *****************************************************************************/ # * Authors: Daniel Garces, Joseph Tarango # *****************************************************************************/ import os, datetime, traceback, optparse, shutil import PyInstall...
39.594595
121
0.509556
0
0
0
0
0
0
0
0
1,295
0.44198
0c983c89d954e199eb26dc9eb1e9dfde6cd61d8c
1,395
py
Python
day10/django/app4/dateview/updateTeachPlan.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
day10/django/app4/dateview/updateTeachPlan.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
day10/django/app4/dateview/updateTeachPlan.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
from app1.models import * from app1.util.utils import * def updateTeachPlan(request): ''' get: http://127.0.0.1:8000/app4/updateTeachPlan?tpno=001&credit=7.0&teach_date=2019-08-22&evaluation_method=考查 调用参数: tpno:计划编号 credit:学分 teach_date:开课日期 ...
35.769231
195
0.593548
0
0
0
0
0
0
0
0
717
0.499652
0c98a8571671f7ec771a67037041f3b8e9ba1d24
274
py
Python
tests/test_tradera.py
paeronskruven/lw
a2e4b6363656812a0857a8b2cf69be3e710afe94
[ "MIT" ]
null
null
null
tests/test_tradera.py
paeronskruven/lw
a2e4b6363656812a0857a8b2cf69be3e710afe94
[ "MIT" ]
null
null
null
tests/test_tradera.py
paeronskruven/lw
a2e4b6363656812a0857a8b2cf69be3e710afe94
[ "MIT" ]
null
null
null
import lw.sources.tradera def test_valid_query(): results = lw.sources.tradera.TraderaSource().query('a') assert len(list(results)) > 0 def test_invalid_query(): results = lw.sources.tradera.TraderaSource().query('abc123') assert len(list(results)) == 0
22.833333
64
0.70438
0
0
0
0
0
0
0
0
11
0.040146
0c98bb4fe620a4715169adb783364dc34a8d9e45
3,973
py
Python
app/app/process_data.py
yongjjang/book-rental-service
53133c88fed6e8d5d9b1374e951f5aa83598e547
[ "MIT" ]
null
null
null
app/app/process_data.py
yongjjang/book-rental-service
53133c88fed6e8d5d9b1374e951f5aa83598e547
[ "MIT" ]
null
null
null
app/app/process_data.py
yongjjang/book-rental-service
53133c88fed6e8d5d9b1374e951f5aa83598e547
[ "MIT" ]
null
null
null
from .database import db_session, init_db from .models import User, Book, BookRental from sqlalchemy import func import datetime import logging init_db() def get_tables(db_table): """ @author : TAEYONG LEE :param db_table: database table in model.py :type db_table: database model Object ...
24.524691
127
0.597533
0
0
0
0
0
0
0
0
2,089
0.52369
0c998b3ac75eae9f76dce560875ced69e8123b01
6,511
py
Python
cmdb_v0.1/apps/detail/models.py
codemaker-man/projects
334aac28b72a7b466fba23df4db11e95df13a3ec
[ "MIT" ]
1
2018-12-05T05:29:46.000Z
2018-12-05T05:29:46.000Z
cmdb_v0.1/apps/detail/models.py
codemaker-man/projects
334aac28b72a7b466fba23df4db11e95df13a3ec
[ "MIT" ]
null
null
null
cmdb_v0.1/apps/detail/models.py
codemaker-man/projects
334aac28b72a7b466fba23df4db11e95df13a3ec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.db import models import django.utils.timezone as timezone # 用户登录信息表(服务器、虚拟机) class ConnectionInfo(models.Model): # 用户连接相关信息 ssh_username = models.CharField(max_length=10, default='', verbose_name=u'ssh用户名', null=True) ssh_userpasswd = models.CharField(max_length=40, defa...
42.835526
109
0.714176
7,314
0.961483
0
0
0
0
0
0
2,626
0.345208
0c9a4fc23573fcb066eaa1cdddfd05b22ff7fab8
10,370
py
Python
tests/__init__.py
pywikibot-catfiles/file-metadata
79c585dcb67b966f02485136c4d875d5b5365230
[ "MIT" ]
10
2016-07-15T07:07:53.000Z
2022-02-17T07:41:03.000Z
tests/__init__.py
AbdealiJK/file-metadata
79c585dcb67b966f02485136c4d875d5b5365230
[ "MIT" ]
48
2016-03-14T06:44:36.000Z
2016-07-13T00:35:54.000Z
tests/__init__.py
pywikibot-catfiles/file-metadata
79c585dcb67b966f02485136c4d875d5b5365230
[ "MIT" ]
5
2017-04-24T07:02:22.000Z
2020-12-14T06:23:57.000Z
# -*- coding: utf-8 -*- from __future__ import (division, absolute_import, unicode_literals, print_function) # flake8: noqa (unused import and line too long due to links) import os import random import string import struct import wave try: import unittest except ImportError: import u...
56.666667
250
0.73433
0
0
0
0
0
0
0
0
7,837
0.755738
0c9ae2b51288ca98ffcd2520e0ff6c3e32a621f6
5,707
py
Python
src/api/dataflow/batch/periodic/backend/validator/processings_validator.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/dataflow/batch/periodic/backend/validator/processings_validator.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/dataflow/batch/periodic/backend/validator/processings_validator.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
51.414414
111
0.715437
4,085
0.701047
0
0
0
0
0
0
2,366
0.406041
0c9ae725d3c7ffae05b2711dd0cf627833bcd823
5,855
py
Python
tests/test_build_endpoint.py
lsst-sqre/ltd-dasher
176e125839b380f005a092189db760b716e8e23d
[ "MIT" ]
null
null
null
tests/test_build_endpoint.py
lsst-sqre/ltd-dasher
176e125839b380f005a092189db760b716e8e23d
[ "MIT" ]
9
2017-01-24T20:28:49.000Z
2021-10-04T15:36:17.000Z
tests/test_build_endpoint.py
lsst-sqre/ltd-dasher
176e125839b380f005a092189db760b716e8e23d
[ "MIT" ]
null
null
null
"""Test app.routes.build.""" import responses mock_product_data = { "bucket_name": "lsst-the-docs", "doc_repo": "https://github.com/lsst-sqre/test-059.git", "domain": "test-059.lsst.io", "fastly_domain": "n.global-ssl.fastly.net", "published_url": "https://test-059.lsst.io", "root_domain": "l...
28.985149
76
0.625107
0
0
0
0
2,531
0.43228
0
0
3,270
0.558497
0c9b0609ebab7f0a04accd501a146384f501a809
2,650
py
Python
HW2/heart.py
MohammadJRanjbar/Data-Mining
66492166df12924a754273cdaad169d84968f2e1
[ "MIT" ]
null
null
null
HW2/heart.py
MohammadJRanjbar/Data-Mining
66492166df12924a754273cdaad169d84968f2e1
[ "MIT" ]
null
null
null
HW2/heart.py
MohammadJRanjbar/Data-Mining
66492166df12924a754273cdaad169d84968f2e1
[ "MIT" ]
null
null
null
from sklearn import tree from matplotlib import pyplot as plt from sklearn.model_selection import cross_val_score from sklearn.model_selection import train_test_split from sklearn import model_selection from sklearn import metrics import numpy as np import pandas as pd import seaborn as sns from sklearn.neighbors impor...
29.444444
116
0.755849
0
0
0
0
0
0
0
0
1,180
0.445283
0c9b51976e219b5f5ddeb4bf2182d69d5aa73bdd
1,202
py
Python
backend/api/migrations/0002_auto_20210517_0943.py
luxu/django-vue-luxu
a4da215697df578074e354d43dd1d9995490d0db
[ "MIT" ]
null
null
null
backend/api/migrations/0002_auto_20210517_0943.py
luxu/django-vue-luxu
a4da215697df578074e354d43dd1d9995490d0db
[ "MIT" ]
null
null
null
backend/api/migrations/0002_auto_20210517_0943.py
luxu/django-vue-luxu
a4da215697df578074e354d43dd1d9995490d0db
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-17 12:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( name='Pavilhao', fiel...
33.388889
117
0.578203
1,078
0.896839
0
0
0
0
0
0
169
0.140599
0c9b6c9c5f4b186068f0fcfe5f2c329ce7772e4d
740
py
Python
Module 2/Chapter08/template_simple.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
73
2016-09-15T23:07:04.000Z
2022-03-05T15:09:48.000Z
Module 2/Chapter08/template_simple.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
null
null
null
Module 2/Chapter08/template_simple.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
51
2016-10-07T20:47:51.000Z
2021-12-22T21:00:24.000Z
__author__ = 'Chetan' from abc import ABCMeta, abstractmethod class AbstractClass(metaclass=ABCMeta): def __init__(self): pass @abstractmethod def operation1(self): pass @abstractmethod def operation2(self): pass def template_method(self): print("Defining the...
19.473684
70
0.660811
637
0.860811
0
0
108
0.145946
0
0
113
0.152703
0ca19eadb115712fb3c48ed0a589480fef063fda
27,687
py
Python
tests/test_home.py
jeroenterheerdt/nexia
93ff554913e1dad6389b54179eca7c4ec1f29371
[ "Apache-2.0" ]
null
null
null
tests/test_home.py
jeroenterheerdt/nexia
93ff554913e1dad6389b54179eca7c4ec1f29371
[ "Apache-2.0" ]
null
null
null
tests/test_home.py
jeroenterheerdt/nexia
93ff554913e1dad6389b54179eca7c4ec1f29371
[ "Apache-2.0" ]
null
null
null
"""Tests for Nexia Home.""" import json import os from os.path import dirname import unittest import pytest from nexia.home import NexiaHome def load_fixture(filename): """Load a fixture.""" test_dir = dirname(__file__) path = os.path.join(test_dir, "fixtures", filename) with open(path) as fptr: ...
44.946429
86
0.674757
27,330
0.987106
0
0
1,932
0.06978
0
0
3,308
0.119478
0ca1f24778ecd88cae66d775c3768ee93dee6382
6,217
py
Python
FarmSwapG.py
resake/DuelsFarm
b6a0da11af4866d4ea6caa30be1436c256a55af4
[ "MIT" ]
null
null
null
FarmSwapG.py
resake/DuelsFarm
b6a0da11af4866d4ea6caa30be1436c256a55af4
[ "MIT" ]
null
null
null
FarmSwapG.py
resake/DuelsFarm
b6a0da11af4866d4ea6caa30be1436c256a55af4
[ "MIT" ]
null
null
null
import re import time import aiohttp CHANGE_CLOTHES = True # Use swap gear ACCOUNT_ID = 'b8dd6d09-0bf1-4455-99c5-4cec41b3a789' # account id goes here class DuelsAPI: def __init__(self, account_id, **kwargs): self.account_id = account_id self.API_ENTRY = kwargs.get('api_entry_url', ...
37.678788
79
0.551391
3,407
0.548014
0
0
77
0.012385
5,444
0.875664
1,254
0.201705
0ca263d5ceb8c0df9da68a027a9e2c49d50656ac
268
py
Python
data/landice-5g/tiff_to_shp.py
scottsfarley93/IceSheetsViz
f4af84f16af875c5753dca6b8c173c253d9218d4
[ "MIT" ]
null
null
null
data/landice-5g/tiff_to_shp.py
scottsfarley93/IceSheetsViz
f4af84f16af875c5753dca6b8c173c253d9218d4
[ "MIT" ]
1
2017-02-28T18:49:04.000Z
2017-02-28T18:49:55.000Z
data/landice-5g/tiff_to_shp.py
scottsfarley93/IceSheetsViz
f4af84f16af875c5753dca6b8c173c253d9218d4
[ "MIT" ]
null
null
null
import os for filename in os.listdir("rasters"): print filename f = filename.replace(".tiff", "") tiff = "rasters/" + filename out = "shapefiles/" + f + ".shp" cmd = "gdal_polygonize.py " + tiff + " -f 'ESRI Shapefile' " + out os.system(cmd)
24.363636
70
0.589552
0
0
0
0
0
0
0
0
91
0.339552
0ca33e888a8c5506799931e71fe1070bf6588145
3,758
py
Python
we_sensesim.py
y95847frank/GenSense
0da122bea9b7bd51444748444700b5f788bd8a48
[ "MIT" ]
3
2018-05-31T05:52:18.000Z
2019-12-20T07:15:56.000Z
we_sensesim.py
y95847frank/GenSense
0da122bea9b7bd51444748444700b5f788bd8a48
[ "MIT" ]
null
null
null
we_sensesim.py
y95847frank/GenSense
0da122bea9b7bd51444748444700b5f788bd8a48
[ "MIT" ]
null
null
null
import numpy as np import sys import utils import os from collections import defaultdict from nltk.corpus import wordnet as wn from scipy.spatial.distance import cosine from scipy.spatial.distance import correlation from numpy.linalg import norm from scipy.stats import spearmanr, pearsonr from utils import trim import...
33.256637
140
0.549228
0
0
0
0
0
0
0
0
1,256
0.33422
0ca3cc7e85961f379dcec8f7f5d9db60fd5df51d
138,423
py
Python
dlkit/abstract_osid/calendaring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/abstract_osid/calendaring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/abstract_osid/calendaring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Implementations of calendaring abstract base class queries.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and inclu...
28.934574
120
0.632409
137,690
0.994705
0
0
123,595
0.892879
0
0
97,690
0.705735
0ca4dce21686a03b945a69ccbec119c4e788576f
2,373
py
Python
scripts/republish_s3_products.py
hysds/grq2
c86704a4e46f106ab00dcdfc9a658a97097e9289
[ "Apache-2.0" ]
1
2019-10-18T21:27:56.000Z
2019-10-18T21:27:56.000Z
scripts/republish_s3_products.py
hysds/grq2
c86704a4e46f106ab00dcdfc9a658a97097e9289
[ "Apache-2.0" ]
5
2019-10-17T15:46:23.000Z
2021-06-04T22:18:36.000Z
scripts/republish_s3_products.py
hysds/grq2
c86704a4e46f106ab00dcdfc9a658a97097e9289
[ "Apache-2.0" ]
3
2018-04-08T12:53:24.000Z
2020-05-05T01:10:32.000Z
#!/usr/bin/env python from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() import json import requests import sys import os from boto.s3.connection impor...
30.423077
136
0.629583
0
0
0
0
0
0
0
0
840
0.353982
0ca59997a346eb090f3898738011c007aac380e0
5,550
py
Python
tensorflow/emo_tflearn.py
lukewegryn/emo_net
5f8f0d047b41a978c2c96e6d0dcd8e8c05d89fe5
[ "MIT" ]
4
2017-08-15T06:52:22.000Z
2020-02-13T18:18:13.000Z
tensorflow/emo_tflearn.py
luoda888/emo_net
5f8f0d047b41a978c2c96e6d0dcd8e8c05d89fe5
[ "MIT" ]
1
2018-06-14T08:42:11.000Z
2018-06-14T08:42:11.000Z
tensorflow/emo_tflearn.py
luoda888/emo_net
5f8f0d047b41a978c2c96e6d0dcd8e8c05d89fe5
[ "MIT" ]
6
2017-08-04T13:40:35.000Z
2021-08-07T11:37:44.000Z
# First check the Python version import sys if sys.version_info < (3,4): print('You are running an older version of Python!\n\n' \ 'You should consider updating to Python 3.4.0 or ' \ 'higher as the libraries built for this course ' \ 'have only been tested in Python 3.4 and higher.\n'...
37.248322
170
0.718739
0
0
0
0
0
0
0
0
2,041
0.367748
0ca67ab44bcdd00d832c2b6369f179cd48b4cfb9
1,786
py
Python
strivial/__init__.py
watsosc/strivial
aa7efe889227650d8f39b247fd0208deb71d246b
[ "Apache-2.0" ]
null
null
null
strivial/__init__.py
watsosc/strivial
aa7efe889227650d8f39b247fd0208deb71d246b
[ "Apache-2.0" ]
null
null
null
strivial/__init__.py
watsosc/strivial
aa7efe889227650d8f39b247fd0208deb71d246b
[ "Apache-2.0" ]
null
null
null
import os import logging from logging import Formatter, FileHandler from flask import Flask def create_app(test_config=False): app = Flask(__name__, instance_relative_config=True) if test_config: app.config.from_object('config.TestingConfig') else: app.config.from_object(os.environ['APP_SET...
29.766667
92
0.703807
0
0
0
0
0
0
0
0
344
0.192609
0cab184754b8b6e990d3f1607a9b78c8dc5d5f41
7,421
py
Python
model_functions.py
blowe615/flower_classifier
7cdb6ebe292f90ae711f050ff24fb68e3a9570c1
[ "MIT" ]
1
2019-08-29T04:24:22.000Z
2019-08-29T04:24:22.000Z
model_functions.py
blowe615/flower_classifier
7cdb6ebe292f90ae711f050ff24fb68e3a9570c1
[ "MIT" ]
null
null
null
model_functions.py
blowe615/flower_classifier
7cdb6ebe292f90ae711f050ff24fb68e3a9570c1
[ "MIT" ]
null
null
null
import torch from torch import nn import torch.nn.functional as F #from helper_functions import process_image class DeepNetworkClassifier(nn.Module): def __init__(self, input_units, output_units, hidden_units,p_drop=0.2): ''' Builds a classifier for a pretrained deep neural network for the flower d...
38.252577
107
0.603153
1,238
0.166824
0
0
0
0
0
0
3,541
0.477159
0cab395492740b9b3d338ab6d9a913dcbe6912e1
1,327
py
Python
src/pages/random.py
jojo935/Kemono2
bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b
[ "BSD-3-Clause" ]
null
null
null
src/pages/random.py
jojo935/Kemono2
bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b
[ "BSD-3-Clause" ]
null
null
null
src/pages/random.py
jojo935/Kemono2
bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint, redirect, url_for, g from ..utils.utils import make_cache_key from ..internals.cache.redis import get_conn from ..internals.cache.flask_cache import cache from ..internals.database.database import get_cursor from ..lib.artist import get_artist, get_random_artist_keys from ..lib.po...
30.159091
116
0.699322
0
0
0
0
501
0.377543
0
0
107
0.080633
0cab46908744c082e44a614483e84981deda1786
4,258
py
Python
rljax/algorithm/tqc.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
56
2020-10-01T02:55:47.000Z
2022-03-07T08:00:25.000Z
rljax/algorithm/tqc.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
4
2020-10-02T03:52:29.000Z
2021-10-02T03:59:00.000Z
rljax/algorithm/tqc.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
10
2020-12-21T08:21:02.000Z
2022-01-11T03:36:20.000Z
from functools import partial from typing import List import haiku as hk import jax import jax.numpy as jnp import numpy as np from rljax.algorithm.sac import SAC from rljax.network import ContinuousQuantileFunction, StateDependentGaussianPolicy from rljax.util import quantile_loss class TQC(SAC): name = "TQC" ...
32.015038
118
0.59488
3,970
0.932363
0
0
1,601
0.375998
0
0
19
0.004462
0cac991dc2d4d32121af9b2da9f1960fba266638
917
py
Python
benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py
Kortemme-Lab/benchmark_set_construct
ee6c9e097ff49d370936b41f102ada006fb4441a
[ "MIT" ]
null
null
null
benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py
Kortemme-Lab/benchmark_set_construct
ee6c9e097ff49d370936b41f102ada006fb4441a
[ "MIT" ]
null
null
null
benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py
Kortemme-Lab/benchmark_set_construct
ee6c9e097ff49d370936b41f102ada006fb4441a
[ "MIT" ]
null
null
null
import os from .FileNormalizer import FileNormalizer class ContactSelectFileNormalizer(FileNormalizer): '''ContactSelectFileNormalizer creates a pymol script that selects residues which have contacts to asymmetric units. ''' def __init__(self): pass def normalize_one_file(self, path, crystal_con...
31.62069
94
0.691385
847
0.923664
0
0
0
0
0
0
292
0.31843
0cac9d083e4dfd2daccd29d3da4102e79f646255
1,919
py
Python
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
68
2015-02-07T06:09:49.000Z
2022-03-03T22:58:33.000Z
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
436
2015-01-01T01:01:13.000Z
2021-11-07T18:24:00.000Z
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
60
2015-01-10T23:31:26.000Z
2021-08-10T06:39:57.000Z
import os import nibabel as nb import numpy as np from django.test import TestCase from neurovault.apps.statmaps.models import BaseStatisticMap from neurovault.apps.statmaps.utils import is_thresholded, infer_map_type class QATest(TestCase): def setUp(self): this_path = os.path.abspath(os.path.dirname(...
50.5
112
0.684211
1,697
0.884315
0
0
0
0
0
0
226
0.11777
0cad53d938be9fc089dc7d7cacb7515f952a2770
1,758
py
Python
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
5
2017-06-24T22:54:13.000Z
2020-02-13T17:23:12.000Z
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
2
2017-06-24T12:07:22.000Z
2017-06-25T18:12:24.000Z
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
1
2017-08-02T12:37:52.000Z
2017-08-02T12:37:52.000Z
# -*- coding: utf-8 -*- import scrapy class BitcointalkSpider(scrapy.Spider): name = 'bitcointalk' allowed_domains = ['bitcointalk.org'] start_urls = [ 'https://bitcointalk.org/index.php?board=1.0', ] def parse(self, response): topics = response.css('div.tborder table.bordercolor'...
33.807692
92
0.585324
1,719
0.976705
1,521
0.864205
0
0
0
0
493
0.280114
0cae04c95140cd33bca1362795247caf69458f47
9,770
py
Python
fugue/column/functions.py
kvnkho/fugue
5f3fe8f1fb72632e5b5987d720c1d1ef546e4682
[ "Apache-2.0" ]
547
2020-09-22T08:30:14.000Z
2022-03-30T23:11:05.000Z
fugue/column/functions.py
kvnkho/fugue
5f3fe8f1fb72632e5b5987d720c1d1ef546e4682
[ "Apache-2.0" ]
196
2020-09-22T23:08:26.000Z
2022-03-26T21:22:48.000Z
fugue/column/functions.py
kvnkho/fugue
5f3fe8f1fb72632e5b5987d720c1d1ef546e4682
[ "Apache-2.0" ]
37
2020-09-23T17:05:00.000Z
2022-03-29T18:26:52.000Z
from typing import Any, Optional import pyarrow as pa from fugue.column.expressions import ( ColumnExpr, _FuncExpr, _to_col, function, ) from triad import Schema def coalesce(*args: Any) -> ColumnExpr: """SQL ``COALESCE`` function :param args: If a value is not :class:`~fugue.column.expressi...
26.334232
80
0.572467
771
0.078915
0
0
0
0
0
0
7,385
0.755885
0cae7bc6d95d0a5148d10292b4933dd1fd93753f
1,968
py
Python
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
13
2020-08-06T17:05:50.000Z
2021-11-08T13:12:11.000Z
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
4
2020-09-20T05:30:39.000Z
2021-04-01T08:35:40.000Z
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
12
2020-08-07T06:45:43.000Z
2021-12-08T06:58:23.000Z
# biglittle.entity.user # tell python where to find module source code import os,sys sys.path.append(os.path.realpath('../../../src')) from biglittle.entity.base import Base class Name(Base) : formFieldPrefix = 'name_' fields = { 'title' : '', 'first' : '', 'middle' : '', 'la...
22.363636
57
0.427846
1,779
0.903963
0
0
0
0
0
0
564
0.286585
0caedcb03495a9332700a86dd6b9b7674d0e59ac
32
py
Python
gaia-sdk-python/conftest.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
null
null
null
gaia-sdk-python/conftest.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
10
2019-11-14T07:55:47.000Z
2022-02-26T19:36:45.000Z
gaia-sdk-python/conftest.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
2
2020-05-12T11:09:53.000Z
2020-12-25T14:03:04.000Z
# enabled testing relative paths
32
32
0.84375
0
0
0
0
0
0
0
0
32
1
0caeebf4e3ed3af12c71f32665fdf047f4676dd8
497
py
Python
backend/app/utils.py
dashdashforce/int20h-test-photo-viewer
1720ec2c30685eac9d1e5ef9ecf3d389239ee566
[ "MIT" ]
null
null
null
backend/app/utils.py
dashdashforce/int20h-test-photo-viewer
1720ec2c30685eac9d1e5ef9ecf3d389239ee566
[ "MIT" ]
20
2019-02-04T21:57:59.000Z
2019-02-10T21:50:17.000Z
backend/app/utils.py
dashdashforce/int20h-test-photo-viewer
1720ec2c30685eac9d1e5ef9ecf3d389239ee566
[ "MIT" ]
null
null
null
from functools import reduce from itertools import groupby from operator import add, itemgetter def merge_records_by(key, combine): return lambda first, second: { k: first[k] if k == key else combine(first[k], second[k]) for k in first } def merge_list_of_records_by(key, combine): keypr...
24.85
68
0.682093
0
0
0
0
0
0
0
0
0
0
0cb1135cd1e8235884dc831dd92989b829868853
704
py
Python
main/validadorCPF/cpf.py
LuizMoreira-py/cadastro
606c024f126f99ba943cb68115aef472ea61e57e
[ "MIT" ]
null
null
null
main/validadorCPF/cpf.py
LuizMoreira-py/cadastro
606c024f126f99ba943cb68115aef472ea61e57e
[ "MIT" ]
null
null
null
main/validadorCPF/cpf.py
LuizMoreira-py/cadastro
606c024f126f99ba943cb68115aef472ea61e57e
[ "MIT" ]
null
null
null
class Cpf: def __init__(self, documento): documento = str(documento) if self.cpf_eh_valido(documento): self.cpf = documento else: raise ValueError("CPF inválido!") def cpf_eh_valido(self, documento): if len(documento) == 11: return True ...
25.142857
45
0.484375
704
0.998582
0
0
0
0
0
0
29
0.041135
0cb1a795ec8e001999c9a8e30123e5f34107264b
1,484
py
Python
backend/venue_scraper.py
illicitonion/edfringeplanner
ab6d4a3218ee211de5078b3205fd39da1fbdfb50
[ "BSD-3-Clause" ]
null
null
null
backend/venue_scraper.py
illicitonion/edfringeplanner
ab6d4a3218ee211de5078b3205fd39da1fbdfb50
[ "BSD-3-Clause" ]
null
null
null
backend/venue_scraper.py
illicitonion/edfringeplanner
ab6d4a3218ee211de5078b3205fd39da1fbdfb50
[ "BSD-3-Clause" ]
null
null
null
from selenium import webdriver from config import Config from db import cursor def get_venues(): driver = webdriver.Chrome() try: driver.get("https://tickets.edfringe.com/venues") while True: venues_container = driver.find_element_by_class_name("venues") for venue in ...
32.26087
108
0.574798
0
0
903
0.608081
0
0
0
0
236
0.158923
0cb24ca44f49e7024594f31e5eea8a2d6ed7620b
1,437
py
Python
Source Files/auth.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
1
2021-05-18T21:32:43.000Z
2021-05-18T21:32:43.000Z
Source Files/auth.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
null
null
null
Source Files/auth.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
2
2015-05-18T14:52:01.000Z
2015-05-19T18:21:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """This program prompts for a password.""" import authentication import getpass def login(username, maxattempts=3): """This function takes input from a user and checks the password. Arg: username(str): String input from user. maxattempts...
31.933333
78
0.592206
0
0
0
0
0
0
0
0
962
0.66945
0cb26210fdbce5c2de9ff66cfbeec89817eff49b
267
py
Python
tests/test_utils.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
1
2017-08-13T09:50:06.000Z
2017-08-13T09:50:06.000Z
tests/test_utils.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
null
null
null
import unittest import logging import xml.etree.ElementTree as et import dscraper.utils as utils logger = logging.getLogger(__name__) class TestUtils(unittest.TestCase): XML_FILES = ( 'tests/resources/1.xml', ) def setUp(self): pass
14.833333
36
0.692884
128
0.479401
0
0
0
0
0
0
23
0.086142
0cb5558fd712cd9664d2840e0dfa1433d69b0ae5
7,491
py
Python
CameraCalibration.py
lsmanoel/StereoVision
22e9a422a217290e6fb2b71afc663db87e530842
[ "MIT" ]
null
null
null
CameraCalibration.py
lsmanoel/StereoVision
22e9a422a217290e6fb2b71afc663db87e530842
[ "MIT" ]
null
null
null
CameraCalibration.py
lsmanoel/StereoVision
22e9a422a217290e6fb2b71afc663db87e530842
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob from matplotlib import pyplot as plt class CameraCalibration(): def __init__(self): pass # =========================================================== # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @staticmethod def find_chess(frame...
39.015625
128
0.394206
7,162
0.956081
0
0
6,547
0.873982
0
0
2,071
0.276465
0cb626407dc59dff1be601a5e0499c7a012ea0ad
75
py
Python
app/database/base.py
CabetoDP/fastapi-crud
bbeef58b74b7a010037ca8503a7f05f8b4db2ab4
[ "MIT" ]
null
null
null
app/database/base.py
CabetoDP/fastapi-crud
bbeef58b74b7a010037ca8503a7f05f8b4db2ab4
[ "MIT" ]
null
null
null
app/database/base.py
CabetoDP/fastapi-crud
bbeef58b74b7a010037ca8503a7f05f8b4db2ab4
[ "MIT" ]
null
null
null
from app.database.base_class import Base from app.models.place import Place
37.5
40
0.853333
0
0
0
0
0
0
0
0
0
0
0cb66d2801b2daaa2e8e7ffbed52fec520091038
3,499
py
Python
yolox/models/simo_fpn.py
RawFisher/YOLOX
bec9423bdd25a9e85b976c32d774e31a33fcefed
[ "Apache-2.0" ]
null
null
null
yolox/models/simo_fpn.py
RawFisher/YOLOX
bec9423bdd25a9e85b976c32d774e31a33fcefed
[ "Apache-2.0" ]
null
null
null
yolox/models/simo_fpn.py
RawFisher/YOLOX
bec9423bdd25a9e85b976c32d774e31a33fcefed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import torch import torch.nn as nn from .sdc_darknet import SDCCSPDarknet # from .simo_darknet import SIMOCSPDarknet from .network_blocks import BaseConv, CSPLayer, DWConv from .network_blocks import get_activatio...
30.964602
115
0.595027
3,172
0.906545
0
0
0
0
0
0
555
0.158617
0cb6a5d9b64c81ee9b97838a133419cdba2cb50d
326
py
Python
benchmark/mysql_benchmark.py
AlonFischer/SpatialDatabaseBench
1fe933bd4196ba17c687f04c37cb5a34acc6d824
[ "Apache-2.0" ]
1
2020-11-17T22:56:56.000Z
2020-11-17T22:56:56.000Z
benchmark/mysql_benchmark.py
AlonFischer/SpatialDatabaseBench
1fe933bd4196ba17c687f04c37cb5a34acc6d824
[ "Apache-2.0" ]
null
null
null
benchmark/mysql_benchmark.py
AlonFischer/SpatialDatabaseBench
1fe933bd4196ba17c687f04c37cb5a34acc6d824
[ "Apache-2.0" ]
null
null
null
from benchmark.benchmark import Benchmark from mysqlutils.mysqladapter import MySQLAdapter class MysqlBenchmark(Benchmark): """Abstract parent class for mysql benchmarks""" def __init__(self, adapter, title, repeat_count=7): super().__init__(title, repeat_count=repeat_count) self.adapter = ad...
29.636364
58
0.754601
232
0.711656
0
0
0
0
0
0
48
0.147239
0cb86fe9bbc7f2cf6d3e6c50ebc4e8bef2550fd2
316
py
Python
packages/core/minos-microservice-networks/tests/test_networks/test_exceptions.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-networks/tests/test_networks/test_exceptions.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
275
2021-04-03T09:23:40.000Z
2022-01-28T11:56:25.000Z
tests/test_networks/test_exceptions.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
import unittest from minos.common import ( MinosException, ) from minos.networks import ( MinosNetworkException, ) class TestExceptions(unittest.TestCase): def test_type(self): self.assertTrue(issubclass(MinosNetworkException, MinosException)) if __name__ == "__main__": unittest.main()
17.555556
74
0.737342
140
0.443038
0
0
0
0
0
0
10
0.031646
0cb88d9738f070179ad3791e8725e49dddde3cbd
45
py
Python
Weltantschauung/__init__.py
area42/Weltanschauung-
85694740f149aa741f69a67bf234b447ba11fb22
[ "MIT" ]
null
null
null
Weltantschauung/__init__.py
area42/Weltanschauung-
85694740f149aa741f69a67bf234b447ba11fb22
[ "MIT" ]
null
null
null
Weltantschauung/__init__.py
area42/Weltanschauung-
85694740f149aa741f69a67bf234b447ba11fb22
[ "MIT" ]
null
null
null
from .Weltantschauung import Weltantschauung
22.5
44
0.888889
0
0
0
0
0
0
0
0
0
0
0cb8ec1c4a754eeb4820931d43bc795cf047e17e
187
py
Python
api/messages/csv_file.py
pikanezi/Roadkill
b2c69294afa4cce810fa898f3aa1cb467bffa413
[ "MIT" ]
null
null
null
api/messages/csv_file.py
pikanezi/Roadkill
b2c69294afa4cce810fa898f3aa1cb467bffa413
[ "MIT" ]
null
null
null
api/messages/csv_file.py
pikanezi/Roadkill
b2c69294afa4cce810fa898f3aa1cb467bffa413
[ "MIT" ]
null
null
null
__author__ = 'Vincent' from protorpc import messages class CsvFile(messages.Message): file = messages.BytesField(1, required=True) name = messages.StringField(2, required=False)
26.714286
50
0.759358
132
0.705882
0
0
0
0
0
0
9
0.048128
0cb8edc3aaa4ea60cf2e8cdba8dd3f71fa79f1ce
1,510
py
Python
run.py
whyjay/memoryGAN
cfc5e8cf37f9537a3136595a6afa734335622202
[ "MIT" ]
44
2018-03-05T06:11:31.000Z
2022-03-30T06:40:24.000Z
run.py
whyjay/memoryGAN
cfc5e8cf37f9537a3136595a6afa734335622202
[ "MIT" ]
3
2018-03-20T03:17:23.000Z
2018-07-29T11:46:34.000Z
run.py
whyjay/memoryGAN
cfc5e8cf37f9537a3136595a6afa734335622202
[ "MIT" ]
11
2018-04-01T18:24:53.000Z
2020-10-15T08:55:21.000Z
import os import numpy as np import tensorflow as tf from models.config import Config from models.memory_gan import MemoryGAN from models.test_generation import test_generation from models.train import train from utils import pp, visualize, to_json os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' flags = tf.app.flags flags....
31.458333
98
0.724503
0
0
0
0
0
0
0
0
365
0.241722
0cb901c85f60e28cdd422152266e1ce6e9afaf21
2,164
py
Python
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from django.views import View from django.http import HttpResponseRedirect from add2cal import Add2Cal from pytz import timezone import datetime from django.http import ( JsonResponse, HttpResponse ) ADD2CAL_DATE_FORMAT = "%Y%m%dT%H%M%S" CALENDAR_CONTENT_TYPE = 'text/calendar' OUTLOOK_LINK_TYPE = 'outlook' GOO...
35.47541
79
0.636322
1,766
0.816081
0
0
0
0
0
0
309
0.142791
0cb93959fe2a17c6bba6b5049a41d091d98ecf1d
1,174
py
Python
slixmpp/plugins/xep_0421/stanza.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0421/stanza.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0421/stanza.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2020 "Maxime “pep” Buquet <[email protected]>" This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.xmlstream import ElementBase NS = 'urn:xmpp:occupant-id:0' class OccupantId(ElementBase): ''' An Occupant...
28.634146
78
0.663543
907
0.769949
0
0
0
0
0
0
1,037
0.880306
0cba78e638ec2faf5f7126a5c233d72920bc6dd8
3,458
py
Python
poseidon/dags/traffic_counts/traffic_counts_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
poseidon/dags/traffic_counts/traffic_counts_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
poseidon/dags/traffic_counts/traffic_counts_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
"""Traffic counts _jobs file.""" import pandas as pd import logging from subprocess import Popen, PIPE from trident.util import general conf = general.config fy = general.get_FY_year() def get_traffic_counts(out_fname='traffic_counts_file'): """Get traffic counts file from shared drive.""" logging.info(f'Ret...
32.317757
79
0.571429
0
0
0
0
0
0
0
0
1,286
0.371891
0cba867a6c14d6b3104167202a30906c2120dfc6
2,624
py
Python
metaquantome/modules/run_viz.py
jj-umn/metaquantome
46461dea0914b9c153985e02c594eeb781bf3a27
[ "Apache-2.0" ]
4
2019-03-19T10:40:34.000Z
2021-08-16T14:10:53.000Z
metaquantome/modules/run_viz.py
jj-umn/metaquantome
46461dea0914b9c153985e02c594eeb781bf3a27
[ "Apache-2.0" ]
35
2018-11-15T18:33:39.000Z
2021-02-20T20:37:55.000Z
metaquantome/modules/run_viz.py
jj-umn/metaquantome
46461dea0914b9c153985e02c594eeb781bf3a27
[ "Apache-2.0" ]
6
2018-11-16T03:10:45.000Z
2021-02-24T20:56:45.000Z
import os import subprocess import json from metaquantome.util.utils import BASE_DIR from metaquantome.classes.SampleGroups import SampleGroups def run_viz(plottype, img, infile, strip=None, mode=None, meancol=None, nterms='5', target_rank=None, barcol=6, # barplot, stacked_bar textannot=Non...
47.709091
141
0.676829
0
0
0
0
0
0
0
0
511
0.194741
0cbd16de6a3b89e4146e58d8e4a4fcddb5bba48b
7,173
py
Python
src/mtweepy/__init__.py
Souvic/mtweepy
26c5480aee1032a38335018efc66610b6960f7d4
[ "MIT" ]
1
2021-07-04T09:30:10.000Z
2021-07-04T09:30:10.000Z
src/mtweepy/__init__.py
Souvic/mtweepy
26c5480aee1032a38335018efc66610b6960f7d4
[ "MIT" ]
null
null
null
src/mtweepy/__init__.py
Souvic/mtweepy
26c5480aee1032a38335018efc66610b6960f7d4
[ "MIT" ]
null
null
null
import json import multiprocessing import os import requests from requests_oauthlib import OAuth1 from time import sleep import tweepy def get_users_single(x,auth,output_folder): while(True): url=f"https://api.twitter.com/1.1/users/lookup.json?user_id={','.join([str(i) for i in x])}" if(type...
33.518692
196
0.539384
0
0
0
0
0
0
0
0
1,281
0.178586
0cbd7b1b3648a635297e6eb2447f59f26aa10163
49,924
py
Python
pyUSID/io/hdf_utils/model.py
rajgiriUW/pyUSID
064dcd81d9c42f4eb4782f0a41fd437b3f56f50c
[ "MIT" ]
25
2018-07-11T21:43:56.000Z
2021-11-17T11:40:00.000Z
pyUSID/io/hdf_utils/model.py
rajgiriUW/pyUSID
064dcd81d9c42f4eb4782f0a41fd437b3f56f50c
[ "MIT" ]
62
2018-07-05T20:28:52.000Z
2021-12-14T09:49:35.000Z
pyUSID/io/hdf_utils/model.py
rajgiriUW/pyUSID
064dcd81d9c42f4eb4782f0a41fd437b3f56f50c
[ "MIT" ]
15
2019-03-27T22:28:47.000Z
2021-01-03T20:23:42.000Z
# -*- coding: utf-8 -*- """ Utilities for reading and writing USID datasets that are highly model-dependent (with or without N-dimensional form) Created on Tue Nov 3 21:14:25 2015 @author: Suhas Somnath, Chris Smith """ from __future__ import division, print_function, absolute_import, unicode_literals from warnings ...
45.303085
223
0.640834
0
0
0
0
0
0
0
0
23,168
0.464065
0cbd80d538ed5aeecd342647472ca2c49593352a
3,110
py
Python
TaxPy/data_processing/export_reads.py
stenglein-lab/TaxAssessor
144599d1395627c4e86ab68a4d6d3e0785e606f0
[ "MIT" ]
null
null
null
TaxPy/data_processing/export_reads.py
stenglein-lab/TaxAssessor
144599d1395627c4e86ab68a4d6d3e0785e606f0
[ "MIT" ]
2
2016-11-29T19:48:27.000Z
2016-12-09T17:18:56.000Z
TaxPy/data_processing/export_reads.py
stenglein-lab/TaxAssessor
144599d1395627c4e86ab68a4d6d3e0785e606f0
[ "MIT" ]
null
null
null
#!/usr/bin/python import json import timeit import re import TaxPy.db_management.db_wrap as TaxDb from itertools import izip def retrieveReads(userName,fileName,fileId,parentTaxId,query): time1 = timeit.default_timer() taxTree = loadTaxTree(userName,fileName) time2 = timeit.default_timer() print str...
27.280702
76
0.618971
0
0
0
0
0
0
0
0
417
0.134084
0cbdc5e7cc5bd19da3d1e30a35d3c1cd8334e753
1,209
py
Python
python/caliper-reader/setup.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
220
2016-01-19T19:00:10.000Z
2022-03-29T02:09:39.000Z
python/caliper-reader/setup.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
328
2016-05-12T15:47:30.000Z
2022-03-30T19:42:02.000Z
python/caliper-reader/setup.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
48
2016-03-04T22:04:39.000Z
2021-12-18T12:11:43.000Z
# Copyright (c) 2020-20201, Lawrence Livermore National Security, LLC. # See top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import setuptools from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with ope...
31.815789
87
0.715467
0
0
0
0
0
0
0
0
664
0.549214
0cbded3b957b5b9247296e61a096662c54742d11
774
py
Python
programming_fundamentals/python_part_2/common_vars.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
629
2017-12-15T20:26:13.000Z
2022-03-30T04:02:02.000Z
programming_fundamentals/python_part_2/common_vars.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
40
2018-01-18T09:07:50.000Z
2021-09-23T23:21:47.000Z
programming_fundamentals/python_part_2/common_vars.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
394
2017-12-18T22:35:36.000Z
2022-03-29T19:41:25.000Z
#! /usr/bin/env python """ Learning Series: Network Programmability Basics Module: Programming Fundamentals Lesson: Python Part 2 Author: Hank Preston <[email protected]> common_vars.py Illustrate the following concepts: - Code reuse imported into other examples """ shapes = ["square", "triangle", "circle"] books =...
22.764706
56
0.485788
0
0
0
0
0
0
0
0
440
0.568475
0cc0715c89b9cf37ccc8268295889e035e429cd7
4,118
py
Python
forms.py
godsgift/gdohs
fc7fa4e010b7c508c3c1154255fa2ded0534fb1d
[ "MIT" ]
null
null
null
forms.py
godsgift/gdohs
fc7fa4e010b7c508c3c1154255fa2ded0534fb1d
[ "MIT" ]
null
null
null
forms.py
godsgift/gdohs
fc7fa4e010b7c508c3c1154255fa2ded0534fb1d
[ "MIT" ]
null
null
null
from flask_wtf import Form from wtforms import TextField, PasswordField, validators, IntegerField, BooleanField, SelectField, SubmitField from wtforms.validators import Required, Length, Email, ValidationError, Regexp, EqualTo, NumberRange from wtforms.widgets import SubmitInput class SignUp(Form): username = TextFie...
52.126582
118
0.723409
3,818
0.927149
0
0
0
0
0
0
1,955
0.474745
0cc0bf99ee01e613b032f7efe713db47ddaef6b6
1,137
py
Python
ossdbtoolsservice/metadata/contracts/object_metadata.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
ossdbtoolsservice/metadata/contracts/object_metadata.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
ossdbtoolsservice/metadata/contracts/object_metadata.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
34.454545
156
0.591029
687
0.604222
0
0
102
0.08971
0
0
437
0.384345
0cc14f945ff11b1ec78d14d582d03623e82355fd
4,657
py
Python
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
5
2021-01-05T23:16:55.000Z
2021-07-23T12:26:06.000Z
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
null
null
null
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
1
2021-02-22T08:31:05.000Z
2021-02-22T08:31:05.000Z
import torch from shape_utils import Shape, load_shape_pair, scatter_shape_pair from torch_geometric.nn import knn from param import * from arap_potential import arap_vert def load_multiscale_shapes(folder_path, file_name, scales, offset=0.5*torch.ones([3], device=device, dtype=torch.float32)): """Like 'load_shap...
33.503597
126
0.665235
3,622
0.777754
0
0
0
0
0
0
711
0.152673
0cc186344e52a624e94b0910847681d7c50bf522
7,919
py
Python
src/RBF.py
KastnerRG/sherlock
ba3e8a81e08315df169bb5dd76d9fdd8f2660583
[ "CC-BY-4.0" ]
null
null
null
src/RBF.py
KastnerRG/sherlock
ba3e8a81e08315df169bb5dd76d9fdd8f2660583
[ "CC-BY-4.0" ]
null
null
null
src/RBF.py
KastnerRG/sherlock
ba3e8a81e08315df169bb5dd76d9fdd8f2660583
[ "CC-BY-4.0" ]
null
null
null
import numpy as np import scipy import scipy.linalg as linalg import scipy.spatial import scipy.special import scipy.optimize import sklearn def bases(name): if name == 'linear': f = lambda x: x elif name == 'cubic': f = lambda x: x**3 elif name == 'multiquadric': f = lambda x, s: ...
32.858921
164
0.56194
6,490
0.819548
0
0
0
0
0
0
1,033
0.130446
0cc31eec76a99a4705096b18e21f9ea4dd88bce8
523
py
Python
web/pyshop/admin.py
Andrew7891-kip/Ecommerce-pyshop
2eaa7b553789b65992cbd80f80a68fcf25ef0efd
[ "Apache-2.0" ]
null
null
null
web/pyshop/admin.py
Andrew7891-kip/Ecommerce-pyshop
2eaa7b553789b65992cbd80f80a68fcf25ef0efd
[ "Apache-2.0" ]
null
null
null
web/pyshop/admin.py
Andrew7891-kip/Ecommerce-pyshop
2eaa7b553789b65992cbd80f80a68fcf25ef0efd
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * class ProductAdmin(admin.ModelAdmin): list_display=['name','category','price_is'] prepopulated_fields = {"slug": ("name",)} class CartAdmin(admin.ModelAdmin): list_display=['item','user','created'] class OrderAdmin(admin.ModelAdmin): list_displ...
20.115385
47
0.743786
279
0.533461
0
0
0
0
0
0
102
0.195029
0cc3636c2c8cdfc0167b425c8f83724d3610d2e3
1,063
py
Python
extract/tef/incident_reflected_power_test.py
PuffyPuffin/LO_user
c7cafc2045b027aad0098d034cbe2b70126c8379
[ "MIT" ]
null
null
null
extract/tef/incident_reflected_power_test.py
PuffyPuffin/LO_user
c7cafc2045b027aad0098d034cbe2b70126c8379
[ "MIT" ]
null
null
null
extract/tef/incident_reflected_power_test.py
PuffyPuffin/LO_user
c7cafc2045b027aad0098d034cbe2b70126c8379
[ "MIT" ]
null
null
null
""" Test of the cancellation of terms in the calculation of tidal energy flux. This will follow Mofjeld's notation. F is proportional to the energy flux of the original signal, and FF is proportional to the sum of the energy fluxes of the incident and reflected waves. RESULT: The two net fluxes are only equal for ze...
25.309524
78
0.659454
0
0
0
0
0
0
0
0
551
0.518344
0cc371f590d58414f3d55a84eb2346850fb66bd9
552
py
Python
tests/test_recipe.py
iruoma/DevCookbook
e13b955bc2dbfaacab1852d857af058aab0029e5
[ "MIT" ]
20
2020-10-28T03:06:41.000Z
2021-11-15T02:52:43.000Z
tests/test_recipe.py
iruoma/DevCookbook
e13b955bc2dbfaacab1852d857af058aab0029e5
[ "MIT" ]
15
2020-12-04T00:47:59.000Z
2021-03-23T11:42:48.000Z
tests/test_recipe.py
iruoma/DevCookbook
e13b955bc2dbfaacab1852d857af058aab0029e5
[ "MIT" ]
22
2020-11-24T14:02:07.000Z
2022-02-01T18:52:26.000Z
from recipe_compiler.recipe import Recipe from recipe_compiler.recipe_category import RecipeCategory def test_recipe_slug(): # Given name = "Thomas Eckert" residence = "Seattle, WA" category = RecipeCategory("dessert") recipe_name = '"Pie" Shell Script' quote = "Hello, World" ingredients =...
23
80
0.664855
0
0
0
0
0
0
0
0
112
0.202899
0cc46073749631b895fb07e8351d82807fbd6e14
2,140
py
Python
lms_app/v1/serializers/user_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
null
null
null
lms_app/v1/serializers/user_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
1
2021-06-02T00:45:56.000Z
2021-06-02T00:45:56.000Z
lms_app/v1/serializers/user_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
null
null
null
from flask_restplus import Namespace, fields class UserDataModel(object): """Represents the user data transfer object.""" api = Namespace( 'user', description='user authentication and signup resources' ) this_user = api.model('Register input data', { 'username': fields.String( ...
33.4375
70
0.574299
2,092
0.97757
0
0
0
0
0
0
636
0.297196
0cc52afa5bda9e011a3f67aa407ce29b267af421
1,409
py
Python
Unit 7 Objects/LessonQ33.1.py
ItsMrTurtle/PythonChris
4513dea336e68f48fabf480ad87bc538a323c2cd
[ "MIT" ]
null
null
null
Unit 7 Objects/LessonQ33.1.py
ItsMrTurtle/PythonChris
4513dea336e68f48fabf480ad87bc538a323c2cd
[ "MIT" ]
null
null
null
Unit 7 Objects/LessonQ33.1.py
ItsMrTurtle/PythonChris
4513dea336e68f48fabf480ad87bc538a323c2cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 27 18:48:24 2020 @author: Christopher Cheng """ class Stack(object): def __init__ (self): self.stack = [] def get_stack_elements(self): return self.stack.copy() def add_one(self, item): self.stack.append(item) def add_many(self,ite...
26.092593
71
0.581973
1,108
0.786373
0
0
0
0
0
0
164
0.116395
0cc6417c3e829823797e9f3e6ad674ead279d5e9
2,657
py
Python
src/data_analysis_util.py
vikramnayyar/Customer-Identification-for-Bank-Marketing
4727f6d8997d26836ad167616a8edb4898623c39
[ "Apache-2.0" ]
null
null
null
src/data_analysis_util.py
vikramnayyar/Customer-Identification-for-Bank-Marketing
4727f6d8997d26836ad167616a8edb4898623c39
[ "Apache-2.0" ]
null
null
null
src/data_analysis_util.py
vikramnayyar/Customer-Identification-for-Bank-Marketing
4727f6d8997d26836ad167616a8edb4898623c39
[ "Apache-2.0" ]
null
null
null
""" The script declares functions used in 'data_analysis.py' """ import os import yaml from logzero import logger import matplotlib.pyplot as plt import seaborn as sns from matplotlib.patches import Patch import plotly.graph_objects as go from utility import parse_config config_path = "config/config.yaml" con...
34.064103
125
0.657132
0
0
0
0
0
0
0
0
663
0.24953
0cc6f68c50e68c364cd5514c50d107da2d606391
122
py
Python
api/crawller/admin.py
MahsaSeifikar/tweetphus
01b687f38365023cfaaa34739c50b0da79f0b510
[ "MIT" ]
null
null
null
api/crawller/admin.py
MahsaSeifikar/tweetphus
01b687f38365023cfaaa34739c50b0da79f0b510
[ "MIT" ]
1
2021-12-26T16:35:36.000Z
2021-12-29T15:07:01.000Z
api/crawller/admin.py
MahsaSeifikar/tweetphus
01b687f38365023cfaaa34739c50b0da79f0b510
[ "MIT" ]
null
null
null
from django.contrib import admin from crawller.models import User # Register your models here. admin.site.register(User)
20.333333
32
0.811475
0
0
0
0
0
0
0
0
28
0.229508
0cc75fc2057f1d904d4d63b853c8dc9ff11fc8ab
987
py
Python
featureflags/config.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
featureflags/config.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
featureflags/config.py
enverbisevac/ff-python-server-sdk
e7c809229d13517e0bf4b28fc0a556e693c9034e
[ "Apache-2.0" ]
null
null
null
"""Configuration is a base class that has default values that you can change during the instance of the client class""" from typing import Callable BASE_URL = "https://config.feature-flags.uat.harness.io/api/1.0" MINUTE = 60 PULL_INTERVAL = 1 * MINUTE class Config(object): def __init__(self, base_url: str = BA...
25.973684
76
0.64843
422
0.427558
0
0
0
0
0
0
172
0.174265
0cc7dbac1b53714dc8579ed543f77deb34610c57
1,705
py
Python
src/users/management/commands/populate_tables.py
pimpale/BQuest-Backend
b32833ee5053db1c47fa28f57273632eae43a5cc
[ "MIT" ]
null
null
null
src/users/management/commands/populate_tables.py
pimpale/BQuest-Backend
b32833ee5053db1c47fa28f57273632eae43a5cc
[ "MIT" ]
51
2018-01-24T05:53:15.000Z
2022-01-13T00:44:24.000Z
src/users/management/commands/populate_tables.py
pimpale/BQuest-Backend
b32833ee5053db1c47fa28f57273632eae43a5cc
[ "MIT" ]
3
2020-04-22T03:21:37.000Z
2020-12-15T22:45:52.000Z
from django.core.management.base import BaseCommand from users.models import Major, Minor, Course from django.db import IntegrityError from os import path import json class Command(BaseCommand): def _create_majors(self): base_path = path.dirname(__file__) majors_path = path.abspath(path.join(base_...
32.788462
85
0.567742
1,536
0.90088
0
0
0
0
0
0
64
0.037537
0cc8db72c131873f18e22e999afa4a7e2c43c233
2,041
py
Python
contrib/stack/stripmapStack/unpackFrame_risat_raw.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
contrib/stack/stripmapStack/unpackFrame_risat_raw.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
contrib/stack/stripmapStack/unpackFrame_risat_raw.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
#!/usr/bin/env python3 import isce from isceobj.Sensor import createSensor import shelve import argparse import os from isceobj.Util import Poly1D from isceobj.Planet.AstronomicalHandbook import Const from mroipac.dopiq.DopIQ import DopIQ import copy def cmdLineParse(): ''' Command line parser. ''' ...
26.506494
108
0.652621
0
0
0
0
0
0
0
0
455
0.22293
0cc92881b3783140afbb04ec688ee09d279aa156
2,794
py
Python
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
2
2021-12-19T21:17:06.000Z
2021-12-25T09:19:47.000Z
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
null
null
null
distla/distla_core/distla_core/linalg/qr/test_qr_ooc.py
google/distla_core
7f0d8ab7b847a75e0fc713627488643a8984712a
[ "Apache-2.0" ]
1
2021-12-25T09:19:56.000Z
2021-12-25T09:19:56.000Z
"""Tests for qr.py.""" from jax import lax import jax.numpy as jnp import numpy as np import pytest import tempfile from distla_core.linalg.utils import testutils from distla_core.linalg.qr import qr_ooc from distla_core.utils import pops DTYPE = jnp.float32 seeds = [0, 1] flags = [True, False] def _dephase_qr(R,...
30.703297
78
0.700787
0
0
0
0
2,094
0.749463
0
0
403
0.144238
0cca1b15bf096080117912090cc7cfaa4cb29eca
7,940
py
Python
modules/preprocessing/text/NeMo/nemo_text_processing/text_normalization/ar/taggers/cardinal.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
modules/preprocessing/text/NeMo/nemo_text_processing/text_normalization/ar/taggers/cardinal.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
modules/preprocessing/text/NeMo/nemo_text_processing/text_normalization/ar/taggers/cardinal.py
serkhanekarim/AI
0a13880ae8e608cd00fa819dc590097abdb7ae6e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
43.387978
118
0.639924
6,791
0.85529
0
0
0
0
0
0
1,843
0.232116
0cca7a33169b15c0dca26a3d1d4121500e7fe51e
7,735
py
Python
robot.py
dragonrobotics/2018-PowerUp
0fb6be22420b1488ca3d6abb04588e8564d768b9
[ "MIT" ]
2
2018-02-08T23:29:21.000Z
2018-12-27T22:45:12.000Z
robot.py
dragonrobotics/2018-PowerUp
0fb6be22420b1488ca3d6abb04588e8564d768b9
[ "MIT" ]
2
2018-02-10T20:25:16.000Z
2018-02-20T12:47:33.000Z
robot.py
dragonrobotics/2018-PowerUp
0fb6be22420b1488ca3d6abb04588e8564d768b9
[ "MIT" ]
8
2018-01-15T14:53:52.000Z
2018-02-14T22:34:30.000Z
import wpilib import constants import swerve import lift import winch import sys from teleop import Teleop from autonomous.baseline_simple import Autonomous from sensors.imu import IMU def log(src, msg): try: full_msg = "[{:.3f}] [{}] {}".format( wpilib.Timer.getMatchTime(), str(src), str(msg)...
31.315789
95
0.576083
6,807
0.880026
0
0
0
0
0
0
1,483
0.191726
0ccb7361200b302e98746fb913273e875a9c713b
593
py
Python
2019/06-hsctf/web-networked/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
25
2019-03-06T11:55:56.000Z
2021-05-21T22:07:14.000Z
2019/06-hsctf/web-networked/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2020-06-25T07:27:15.000Z
2020-06-25T07:27:15.000Z
2019/06-hsctf/web-networked/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2019-02-14T00:42:28.000Z
2019-02-14T00:42:28.000Z
import requests text = "0123456789abcdefghijklmnopqrstuvwxyz_}" flag = "hsctf{" for _ in range(30): time = [0.1 for _ in range(38)] for _ in range(5): for i in range(38): payload = {"password": flag + text[i]} r = requests.post( "https://networked-password.we...
21.962963
77
0.563238
0
0
0
0
0
0
0
0
134
0.22597
0ccc1f35f3830db92996f5a342365046d1d2adc7
47,367
py
Python
gda-public/multidim/covertree.py
drkostas/tda_examples
3fdef4f890ced14b8e3207bd9393eaf262dd0c24
[ "MIT" ]
1
2021-12-22T14:29:40.000Z
2021-12-22T14:29:40.000Z
gda-public/multidim/covertree.py
drkostas/tda_examples
3fdef4f890ced14b8e3207bd9393eaf262dd0c24
[ "MIT" ]
null
null
null
gda-public/multidim/covertree.py
drkostas/tda_examples
3fdef4f890ced14b8e3207bd9393eaf262dd0c24
[ "MIT" ]
null
null
null
r"""This module contains the essential classes for the "Cover-tree with friends" algorithm, namely: - :class:`CoverTree` - :class:`CoverLevel` This module also defines the constants - :code:`ratio_Ag` :math:`=\sqrt{2} - 1=0.414\ldots`, the inverse of the silver ratio - :code:`ratio_Au` :math:`=\frac{...
40.623499
164
0.583508
45,898
0.968987
3,357
0.070872
0
0
0
0
24,243
0.511812
0ccc2e5ca0664e29a1337110f68367598882b29e
3,936
py
Python
azure-iot-device/azure/iot/device/iothub/models/message.py
elhorton/azure-iot-sdk-python
484b804a64c245bd92930c13b970ff86f868b5fe
[ "MIT" ]
1
2019-02-06T06:52:44.000Z
2019-02-06T06:52:44.000Z
azure-iot-device/azure/iot/device/iothub/models/message.py
elhorton/azure-iot-sdk-python
484b804a64c245bd92930c13b970ff86f868b5fe
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/iothub/models/message.py
elhorton/azure-iot-sdk-python
484b804a64c245bd92930c13b970ff86f868b5fe
[ "MIT" ]
1
2019-12-17T17:50:43.000Z
2019-12-17T17:50:43.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """This mo...
50.461538
298
0.649644
3,432
0.871951
0
0
85
0.021596
0
0
2,913
0.740091
0ccd4f9fbf2b5d4dda1cc40e475be33aa9ef28bc
320
py
Python
scraping/test001.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
null
null
null
scraping/test001.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
5
2019-12-29T04:58:10.000Z
2021-03-11T04:35:15.000Z
scraping/test001.py
flaviogf/Exemplos
fc666429f6e90c388e201fb7b7d5801e3c25bd25
[ "MIT" ]
null
null
null
import pandas import requests with open('avengers.csv', 'w') as file: file_url = 'https://raw.githubusercontent.com/fivethirtyeight/data/master/avengers/avengers.csv' response = requests.get(file_url) file.write(response.text) with open('avengers.csv', 'r') as file: data_frame = pandas.read_csv(file)
29.090909
100
0.73125
0
0
0
0
0
0
0
0
119
0.371875
0ccde3d4f64a774d9d8fa84b6c6fe3d0ad69c35d
3,997
py
Python
backup/guitemplates/custominvocationcutdurationdialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/custominvocationcutdurationdialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
backup/guitemplates/custominvocationcutdurationdialog.py
calebtrahan/KujiIn_Python
0599d36993fa1d5988a4cf3206a12fdbe63781d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'custominvocationcutdurationdialog.ui' # # Created by: PyQt4 UI code generator 4.11.2 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeErro...
60.560606
138
0.788341
3,317
0.829872
0
0
0
0
0
0
750
0.187641
0ccf64808d3042c572ef4543702896d84041599e
1,393
py
Python
benchmarks/pytorch_alexnet_inference.py
d3dave/python-macrobenchmarks
ee52cce1af120f543ce3e2f6bc99225784b59506
[ "MIT" ]
20
2020-10-20T20:55:51.000Z
2021-11-18T16:26:49.000Z
benchmarks/pytorch_alexnet_inference.py
d3dave/python-macrobenchmarks
ee52cce1af120f543ce3e2f6bc99225784b59506
[ "MIT" ]
2
2021-11-17T18:37:27.000Z
2022-03-22T20:26:24.000Z
benchmarks/pytorch_alexnet_inference.py
d3dave/python-macrobenchmarks
ee52cce1af120f543ce3e2f6bc99225784b59506
[ "MIT" ]
4
2020-10-30T15:09:37.000Z
2022-02-12T00:12:12.000Z
import json import time import torch import urllib import sys if __name__ == "__main__": start = time.time() model = torch.hub.load('pytorch/vision:v0.6.0', 'alexnet', pretrained=True) # assert time.time() - start < 3, "looks like we just did the first-time download, run this benchmark again to get a clean...
31.659091
131
0.613065
0
0
0
0
0
0
0
0
289
0.207466
0cd1d7ce809f4555127103b9f2ebc53cd22fdca6
2,885
py
Python
Curso Python Completo - Udemy/Teste/core/poo1.py
Cauenumo/Python
6414ee2013c651e9d45cd328a381a476c6c9073b
[ "Apache-2.0" ]
null
null
null
Curso Python Completo - Udemy/Teste/core/poo1.py
Cauenumo/Python
6414ee2013c651e9d45cd328a381a476c6c9073b
[ "Apache-2.0" ]
null
null
null
Curso Python Completo - Udemy/Teste/core/poo1.py
Cauenumo/Python
6414ee2013c651e9d45cd328a381a476c6c9073b
[ "Apache-2.0" ]
null
null
null
# class Circle(object): # pi = 3.14 # # O círculo é instanciado com um raio (o padrão é 1) # def __init__(self, radius=1): # self.radius = radius # # Método de cálculo da área. Observe o uso de si mesmo. # def area(self): # return self.radius * self.radius * Circle.pi # # Mét...
20.316901
64
0.533449
0
0
0
0
0
0
0
0
2,732
0.939154
0cd346f1de289a9e93d3b25b5635b78a4192c096
1,126
py
Python
gen-raw-logs.py
lightoyou/grapl
77488059891091e5656254ee15efef038a1b46a7
[ "Apache-2.0" ]
null
null
null
gen-raw-logs.py
lightoyou/grapl
77488059891091e5656254ee15efef038a1b46a7
[ "Apache-2.0" ]
null
null
null
gen-raw-logs.py
lightoyou/grapl
77488059891091e5656254ee15efef038a1b46a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python try: from typing import Any, Dict, Union, Optional except: pass import time import string import boto3 import random import zstd import sys def rand_str(l): # type: (int) -> str return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in ran...
22.078431
72
0.571936
0
0
0
0
0
0
0
0
155
0.137655
0cd35d400b8ba8d38cccab4e5289309cd18ed0ce
2,773
py
Python
src/bot/lib/economy/economy.py
rdunc/rybot
ec3bf6159e095b53e69f6f81af9f10739c180b42
[ "MIT" ]
1
2016-01-11T02:10:05.000Z
2016-01-11T02:10:05.000Z
src/bot/lib/economy/economy.py
rdunc/RyBot
ec3bf6159e095b53e69f6f81af9f10739c180b42
[ "MIT" ]
null
null
null
src/bot/lib/economy/economy.py
rdunc/RyBot
ec3bf6159e095b53e69f6f81af9f10739c180b42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests, json, threading, sys import collections, os, time from bot.lib.economy import EconomyInit from bot.lib.core.benchmark import Benchmark from bot.lib.core.log import Log from bot.helpers.color_helper import ColorHelper from bot.helpers.rybot_helper import RyBotHelper fr...
39.056338
141
0.582402
2,418
0.87198
0
0
0
0
0
0
485
0.174901
0cd6ed4cd564901c9d6e6419361c7b61b1d56dfb
120
py
Python
CF_Functions/Arcade/WordPower.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Arcade/WordPower.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
null
null
null
CF_Functions/Arcade/WordPower.py
glickmac/Misc_Scripts
7e18be79b84a309a1e79935f4470ea915141938d
[ "MIT" ]
1
2020-07-30T17:37:12.000Z
2020-07-30T17:37:12.000Z
def wordPower(word): num = dict(zip(string.ascii_lowercase, range(1,27))) return sum([num[ch] for ch in word])
24
56
0.666667
0
0
0
0
0
0
0
0
0
0
0cd7b71bf7de36ad8722f58dc56d94db5fb81535
827
py
Python
python/mapper.py
qoofyk/zipper
c1d77448f8d479f9ef4bf785d49cf2b41da09130
[ "BSD-3-Clause" ]
null
null
null
python/mapper.py
qoofyk/zipper
c1d77448f8d479f9ef4bf785d49cf2b41da09130
[ "BSD-3-Clause" ]
null
null
null
python/mapper.py
qoofyk/zipper
c1d77448f8d479f9ef4bf785d49cf2b41da09130
[ "BSD-3-Clause" ]
null
null
null
import sys import math def contiguous_mapper(mpi_rank, mpi_size, num_endpoints): group_size = math.ceil(mpi_size/num_endpoints) # round up local_id = mpi_rank % group_size group_id = mpi_rank // group_size return (group_id, local_id) def generate_endpoint_file(endpoint_list, mpi_size, mapper_func): ...
35.956522
79
0.71705
0
0
0
0
0
0
0
0
190
0.229746
0cd87ef313939da59162ef6b202deb04d9ca957b
7,079
py
Python
src/deepcover.py
nce11/deepcover
129488e3593f8d69e352be1e613f44480e4033e6
[ "BSD-3-Clause" ]
25
2018-03-14T21:23:00.000Z
2021-11-22T14:06:20.000Z
src/deepcover.py
nce11/deepcover
129488e3593f8d69e352be1e613f44480e4033e6
[ "BSD-3-Clause" ]
1
2022-03-13T07:15:15.000Z
2022-03-14T10:29:50.000Z
src/deepcover.py
nce11/deepcover
129488e3593f8d69e352be1e613f44480e4033e6
[ "BSD-3-Clause" ]
18
2018-03-14T19:20:45.000Z
2022-02-16T18:33:10.000Z
from keras.preprocessing import image from keras.applications import vgg16 from keras.applications.vgg16 import VGG16 from keras.applications import inception_v3, mobilenet, xception from keras.models import load_model import matplotlib.pyplot as plt import csv import argparse import os import numpy as np from utils...
44.24375
114
0.676508
0
0
0
0
0
0
0
0
2,129
0.300749
0cdb931bc3d4d0011e0c24642dc040bbe2b51af1
8,924
py
Python
phigaro/cli/batch.py
bobeobibo/phigaro
342a3454bb5324426b25feb4a4d1f640b58bf8f8
[ "MIT" ]
31
2019-03-06T14:33:37.000Z
2022-03-08T07:16:07.000Z
phigaro/cli/batch.py
bobeobibo/phigaro
342a3454bb5324426b25feb4a4d1f640b58bf8f8
[ "MIT" ]
27
2019-05-17T05:06:58.000Z
2022-03-27T00:38:56.000Z
phigaro/cli/batch.py
bobeobibo/phigaro
342a3454bb5324426b25feb4a4d1f640b58bf8f8
[ "MIT" ]
12
2017-08-23T12:48:38.000Z
2021-06-24T00:57:22.000Z
from __future__ import absolute_import import argparse import logging import multiprocessing import os import sys import uuid from os.path import join, exists import yaml from phigaro.context import Context from phigaro.batch.runner import run_tasks_chain from phigaro.batch.task.path import sample_name from phigaro....
33.174721
296
0.61766
0
0
0
0
0
0
0
0
2,727
0.30558
0cdb9744480da6f8e1b4899b7fcf04b7238e340b
1,551
py
Python
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/decision-tree
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
null
null
null
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/decision-tree
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
1
2019-12-29T13:49:52.000Z
2019-12-29T13:49:52.000Z
MachineLearning.BayesianNetwork/python-imp/bayes_core.py
JillyMan/MachineLerningFramework
8e2efc914aaade9cc97a2c94052bc909e50fdb48
[ "MIT" ]
null
null
null
import math RangeType = 'Range' BinaryType = 'Binary' class Hipothesis: def __init__(self, id, name, p): self.id = id self.name = name self.p = p class Attribute: def __init__(self, id, name, question, _type): self.id = id self.name = name self.question = quest...
23.149254
54
0.588008
983
0.633785
0
0
0
0
0
0
15
0.009671
0cdc773a241a8d2d5331293406b95caeb6731f44
926
py
Python
tests/test_load_bin_log.py
bols-blue-org/pid_evaluation
af210f2ef7ca49681ff41f4531cfcbd83d70aca0
[ "MIT" ]
1
2020-08-27T06:30:53.000Z
2020-08-27T06:30:53.000Z
tests/test_load_bin_log.py
bols-blue-org/ape
af210f2ef7ca49681ff41f4531cfcbd83d70aca0
[ "MIT" ]
null
null
null
tests/test_load_bin_log.py
bols-blue-org/ape
af210f2ef7ca49681ff41f4531cfcbd83d70aca0
[ "MIT" ]
null
null
null
import unittest from ape.load_bin_log import LoadBinLog class LoadBinTestCase(unittest.TestCase): def test_LoadBinLogAll(self): data = LoadBinLog("../tests/log_0_2020-5-1-14-53-42.bin") self.assertGreater(len(data), 0, "no data") def test_LoadBinLogString(self): data = LoadBinLog(".....
31.931034
92
0.637149
818
0.883369
0
0
0
0
0
0
240
0.259179
0cdcd31b1d541c0b2fc7fa87f9fe6a1fb877291b
4,997
py
Python
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
null
null
null
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
4
2018-02-15T12:32:26.000Z
2018-03-06T16:33:34.000Z
rdsslib/kinesis/client.py
JiscSD/rdss-shared-libraries
cf07cad3f176ef8be1410fc29b240fb4791e607a
[ "Apache-2.0" ]
1
2018-03-13T19:38:54.000Z
2018-03-13T19:38:54.000Z
import json import logging from .errors import MaxRetriesExceededException, DecoratorApplyException MAX_ATTEMPTS = 6 class KinesisClient(object): def __init__(self, writer, reader): """ Writes and reads messages to and from Kinesis streams :param writer: handles writing of payloads to K...
39.346457
79
0.626976
4,871
0.974785
0
0
0
0
0
0
2,378
0.475886
0cdd0af2f9cdd4f1682dfeb1a35ec8ea6569dc39
516
py
Python
offer/10-qing-wa-tiao-tai-jie-wen-ti-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
offer/10-qing-wa-tiao-tai-jie-wen-ti-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
offer/10-qing-wa-tiao-tai-jie-wen-ti-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' 剑指 Offer 10- II. 青蛙跳台阶问题 一只青蛙一次可以跳上1级台阶,也可以跳上2级台阶。求该青蛙跳上一个 n 级的台阶总共有多少种跳法。 答案需要取模 1e9+7(1000000007),如计算初始结果为:1000000008,请返回 1。 提示: 0 <= n <= 100 ''' ''' 思路:递归 ''' class Solution: def numWays(self, n: int) -> int: if n == 0: return 1 if n == 1: return 1 if n ...
15.636364
71
0.560078
245
0.358712
0
0
0
0
0
0
336
0.491947
0cddc6fcdac1a04a9f2296ecc74335e532a712c0
2,624
py
Python
recipes/libmount/all/conanfile.py
KristianJerpetjon/conan-center-index
f368200c30fb3be44862e2e709be990d0db4d30e
[ "MIT" ]
null
null
null
recipes/libmount/all/conanfile.py
KristianJerpetjon/conan-center-index
f368200c30fb3be44862e2e709be990d0db4d30e
[ "MIT" ]
1
2019-11-26T10:55:31.000Z
2019-11-26T10:55:31.000Z
recipes/libmount/all/conanfile.py
KristianJerpetjon/conan-center-index
f368200c30fb3be44862e2e709be990d0db4d30e
[ "MIT" ]
1
2019-10-31T19:29:14.000Z
2019-10-31T19:29:14.000Z
from conans import ConanFile, tools, AutoToolsBuildEnvironment from conans.errors import ConanInvalidConfiguration import os class LibmountConan(ConanFile): name = "libmount" description = "The libmount library is used to parse /etc/fstab, /etc/mtab and /proc/self/mountinfo files, manage the mtab file, evalua...
43.733333
161
0.651296
2,496
0.95122
0
0
0
0
0
0
707
0.269436
0cde288694905dadb83458256a681e9a26cd9df7
36,246
py
Python
code/tmp_rtrip/nntplib.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/nntplib.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/nntplib.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""An NNTP client class based on: - RFC 977: Network News Transfer Protocol - RFC 2980: Common NNTP Extensions - RFC 3977: Network News Transfer Protocol (version 2) Example: >>> from nntplib import NNTP >>> s = NNTP('news') >>> resp, count, first, last, name = s.group('comp.lang.python') >>> print('Group', name, 'ha...
36.20979
89
0.580202
28,026
0.773216
0
0
0
0
0
0
15,012
0.41417
0cde5c372756830b141e6816281e99f572d9eff3
3,463
py
Python
tests/required_with_test.py
roypeters/spotlight
f23818cf7b49aa7a31200c1945ebc2d91656156e
[ "MIT" ]
9
2019-03-26T13:21:16.000Z
2021-03-21T08:55:49.000Z
tests/required_with_test.py
roypeters/spotlight
f23818cf7b49aa7a31200c1945ebc2d91656156e
[ "MIT" ]
7
2019-03-28T17:32:03.000Z
2021-09-24T13:17:32.000Z
tests/required_with_test.py
roypeters/spotlight
f23818cf7b49aa7a31200c1945ebc2d91656156e
[ "MIT" ]
4
2019-03-30T13:28:22.000Z
2020-06-15T13:15:44.000Z
from src.spotlight.errors import REQUIRED_WITH_ERROR from .validator_test import ValidatorTest class RequiredWithTest(ValidatorTest): def setUp(self): self.other_field = "test1" self.field = "test2" self.required_with_error = REQUIRED_WITH_ERROR.format( field=self.field, other=...
32.064815
86
0.626047
3,365
0.971701
0
0
0
0
0
0
560
0.16171
0cde6e9d59bff904867397a498cf0cce96687bf3
3,194
py
Python
default-approach/data-collection/harpers-data/scraper_scripts/get-harpers-links.py
the-browser/recommending-interesting-writing
9ff4771d3f437d33c26d2f306e393b5a90a04878
[ "MIT" ]
5
2020-09-17T17:56:21.000Z
2021-11-03T02:40:27.000Z
default-approach/data-collection/harpers-data/scraper_scripts/get-harpers-links.py
the-browser/recommending-interesting-writing
9ff4771d3f437d33c26d2f306e393b5a90a04878
[ "MIT" ]
null
null
null
default-approach/data-collection/harpers-data/scraper_scripts/get-harpers-links.py
the-browser/recommending-interesting-writing
9ff4771d3f437d33c26d2f306e393b5a90a04878
[ "MIT" ]
1
2020-11-01T11:37:38.000Z
2020-11-01T11:37:38.000Z
BASE_URL="https://harpers.org/sections/readings/page/" N_ARTICLE_LINK_PAGES = 50 OUTPUT_FILE = 'harpers-later-urls.json' WORKER_THREADS = 32 import json import datetime import dateutil.parser from dataclasses import dataclass from dataclasses_json import dataclass_json from datetime import datetime from newspaper imp...
31.313725
114
0.60551
2,034
0.636819
0
0
85
0.026612
0
0
369
0.115529
0cdee741020f9cadb35d114ce192b7140ac463d7
8,711
py
Python
rulm/models/neural_net/encoder_only.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
rulm/models/neural_net/encoder_only.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
rulm/models/neural_net/encoder_only.py
IlyaGusev/rulm
4e78a495eba6cd6ea1fea839463c8145ed7051f2
[ "Apache-2.0" ]
null
null
null
from typing import Dict import numpy as np import torch from torch.nn.functional import linear, log_softmax, embedding from torch.nn import Dropout, LogSoftmax, NLLLoss from allennlp.common import Params from allennlp.models.model import Model from allennlp.data.vocabulary import Vocabulary, DEFAULT_PADDING_TOKEN from...
44.218274
105
0.630926
7,844
0.900471
0
0
6,951
0.797957
0
0
408
0.046837
0cdf83ec2ee6735ac3ecbd989380ce0f87917a5d
102
py
Python
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
from api.cases.models import Case class Query(Case): """ Base query class """ pass
10.2
33
0.588235
65
0.637255
0
0
0
0
0
0
32
0.313725