hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4b922114fe8857917cc97991185cf8a10ca74b3e
618
py
Python
lconfig.py
litecord/rest-py
1fcc08566dafd435e1df701a5928b0806ce9a294
[ "MIT" ]
null
null
null
lconfig.py
litecord/rest-py
1fcc08566dafd435e1df701a5928b0806ce9a294
[ "MIT" ]
6
2018-02-22T21:03:18.000Z
2018-02-23T21:29:53.000Z
lconfig.py
litecord/rest-py
1fcc08566dafd435e1df701a5928b0806ce9a294
[ "MIT" ]
null
null
null
# configuration for litecord rest # Where to start the webserver server_url = ('0.0.0.0', 8000) ssl = False ssl_certfile = '' ssl_keyfile = '' # Where the gateway is in the world gateway_url = 'ws://localhost:8081/gw' # Where the litebridge connection will happen litebridge_server = 'ws://localhost:10101/' litebridg...
22.071429
55
0.708738
3991e3c3070b3c6658247242dfbc7361cced9cfe
545
py
Python
Ekler/Neural_Network/skNN.py
ardamavi/SesimVar
ed344b4a88e6186127d9488c1787d7232fcd7c38
[ "Apache-2.0" ]
18
2017-04-01T19:50:02.000Z
2021-03-10T06:52:17.000Z
Ekler/Neural_Network/skNN.py
sygops/SesimVar
ed344b4a88e6186127d9488c1787d7232fcd7c38
[ "Apache-2.0" ]
1
2017-04-01T19:47:20.000Z
2017-04-01T19:47:20.000Z
Ekler/Neural_Network/skNN.py
sygops/SesimVar
ed344b4a88e6186127d9488c1787d7232fcd7c38
[ "Apache-2.0" ]
6
2018-02-17T20:58:14.000Z
2021-01-06T23:37:16.000Z
# Arda Mavi from sklearn.neural_network import MLPClassifier def egitim(X,y): # X => Eğitim için örnek giriş verileri. # y => Eğitim için X girişlerinin beklenen çıktıları. # MLPClassifier -> multi-layer perceptron (MLP) clf = MLPClassifier(solver='lbfgs', alpha=1e-5,hidden_layer_sizes=(2), random_sta...
27.25
90
0.689908
ba1e02988122dbee1766330fbf0929a094e611f2
3,656
py
Python
GPCR/main_bert.py
nepp1d0/transformerCPI
a84c1e9b23b35ba3f02ad13621a1413f0ae7c62a
[ "Apache-2.0" ]
null
null
null
GPCR/main_bert.py
nepp1d0/transformerCPI
a84c1e9b23b35ba3f02ad13621a1413f0ae7c62a
[ "Apache-2.0" ]
null
null
null
GPCR/main_bert.py
nepp1d0/transformerCPI
a84c1e9b23b35ba3f02ad13621a1413f0ae7c62a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @Time:Created on 2019/9/17 8:54 @author: LiFan Chen @Filename: main.py @Software: PyCharm """ import torch import numpy as np import random import os import time import timeit import warnings from model_bert import BERT from model_bert import Trainer def load_tensor(file_name, dtype): ...
29.723577
160
0.646061
ccbaa1d4bd9a9a155dc22845efdaeb1b42c9a366
18,841
py
Python
Hangman example test thing 3.py
nicholashall14/Hangman-Game-Python
94a75f95b873001f72b94cb770a9c3bf66cdb70e
[ "MIT" ]
null
null
null
Hangman example test thing 3.py
nicholashall14/Hangman-Game-Python
94a75f95b873001f72b94cb770a9c3bf66cdb70e
[ "MIT" ]
null
null
null
Hangman example test thing 3.py
nicholashall14/Hangman-Game-Python
94a75f95b873001f72b94cb770a9c3bf66cdb70e
[ "MIT" ]
null
null
null
################################################# # Author : Ciel, imwithye # Matric No : U1220539K # Group : FS4 ################################################# import time import random easy = ['PHONE','HAPPY','APPLE','EARTH','GONGYIWEI'] normal = ['PYTHON','PIONEER','SINGAPORE','FATHER','MOTHE...
40.605603
104
0.359854
89f11fefed8fd135e8461264054ff4357f0133c4
4,242
py
Python
hypha/apply/api/v1/utils.py
maxpearl/hypha
e181ebadfb744aab34617bb766e746368d6f2de0
[ "BSD-3-Clause" ]
20
2021-04-08T16:38:49.000Z
2022-02-09T20:05:57.000Z
hypha/apply/api/v1/utils.py
maxpearl/hypha
e181ebadfb744aab34617bb766e746368d6f2de0
[ "BSD-3-Clause" ]
1,098
2017-12-15T11:23:03.000Z
2020-01-24T07:58:07.000Z
hypha/apply/api/v1/utils.py
maxpearl/hypha
e181ebadfb744aab34617bb766e746368d6f2de0
[ "BSD-3-Clause" ]
17
2020-02-07T14:55:54.000Z
2021-04-04T19:32:38.000Z
from collections import OrderedDict from django import forms from django.contrib.auth import get_user_model from django.db.models import Q from tinymce.widgets import TinyMCE from wagtail.core.models import Page from hypha.apply.categories.models import Option from hypha.apply.funds.models import ApplicationSubmissio...
35.647059
138
0.67091
6d8c2c5848af5f1b26c7e919bf95d2aae504f0df
16,775
py
Python
setup.py
halvisg/dtaidistance
80a23e9998bc3f3ca50213c2fd27d307ef6098e5
[ "Apache-2.0" ]
null
null
null
setup.py
halvisg/dtaidistance
80a23e9998bc3f3ca50213c2fd27d307ef6098e5
[ "Apache-2.0" ]
null
null
null
setup.py
halvisg/dtaidistance
80a23e9998bc3f3ca50213c2fd27d307ef6098e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ python3 setup.py build_ext --inplace """ from setuptools import setup, Command, find_packages from setuptools.extension import Extension from setuptools.command.test import test as TestCommand from setuptools.command.sdist import sdist as SDistCommand from setuptools....
39.940476
124
0.611326
f63d9bdf68321f45affad5b7f59d37803575cd91
794
py
Python
class5/ex2b.py
nkbyrne/pyplus
2fd31eb41c697259f641fd90a371d2cd9ed4a673
[ "Apache-2.0" ]
null
null
null
class5/ex2b.py
nkbyrne/pyplus
2fd31eb41c697259f641fd90a371d2cd9ed4a673
[ "Apache-2.0" ]
null
null
null
class5/ex2b.py
nkbyrne/pyplus
2fd31eb41c697259f641fd90a371d2cd9ed4a673
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import unicode_literals, print_function from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment env = Environment(undefined=StrictUndefined) env.loader = FileSystemLoader([".", "./templates/"]) template_file = "ex2b.j2" template = env.get_t...
22.685714
55
0.653652
6b75449b66afa0bb0cb1820fb349703a2cc771c0
10,107
py
Python
tests/bip/bip32/test_bip32_keys.py
MIPPLTeam/bip_utils
c66446e7ac3879d2cf6308c5b8eb7f7705292660
[ "MIT" ]
149
2020-05-15T08:11:43.000Z
2022-03-29T16:34:42.000Z
tests/bip/bip32/test_bip32_keys.py
MIPPLTeam/bip_utils
c66446e7ac3879d2cf6308c5b8eb7f7705292660
[ "MIT" ]
41
2020-04-03T15:57:56.000Z
2022-03-31T08:25:11.000Z
tests/bip/bip32/test_bip32_keys.py
MIPPLTeam/bip_utils
c66446e7ac3879d2cf6308c5b8eb7f7705292660
[ "MIT" ]
55
2020-04-03T17:05:15.000Z
2022-03-24T12:43:42.000Z
# Copyright (c) 2021 Emanuele Bellocchia # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
51.045455
159
0.722173
7ec096710584bedea932b6345cfbd84ff055e1c2
680
py
Python
Mundo 2/ex070 Estatistica em produtos.py
AbelRapha/Python-Exercicios-CeV
17e7055c982c8a1224992602ece50bae8eeee365
[ "MIT" ]
null
null
null
Mundo 2/ex070 Estatistica em produtos.py
AbelRapha/Python-Exercicios-CeV
17e7055c982c8a1224992602ece50bae8eeee365
[ "MIT" ]
null
null
null
Mundo 2/ex070 Estatistica em produtos.py
AbelRapha/Python-Exercicios-CeV
17e7055c982c8a1224992602ece50bae8eeee365
[ "MIT" ]
null
null
null
print("-="*15) print(" MERCADAO ") print("-="*15) decisao =" " dict_produtos = {} while(decisao not in "N"): produto = input("Digite o nome do produto: ").strip() preco = float(input("Digite o preco do produto ")) dict_produtos[produto] = preco decisao = input("Deseja continuar? ").strip().upp...
40
128
0.660294
971fa2b66f525b9d0f33bc530e21428d15fde61a
4,784
py
Python
yt/frontends/athena/io.py
FeiLi5/git-github.com-yt-project-yt
0c6cf75351b91e4da80f6a0207ebbcb73dd72a59
[ "BSD-3-Clause-Clear" ]
2
2021-03-02T18:59:49.000Z
2021-03-02T18:59:50.000Z
yt/frontends/athena/io.py
FeiLi5/git-github.com-yt-project-yt
0c6cf75351b91e4da80f6a0207ebbcb73dd72a59
[ "BSD-3-Clause-Clear" ]
4
2018-04-13T23:03:42.000Z
2018-05-08T17:50:43.000Z
yt/frontends/athena/io.py
FeiLi5/git-github.com-yt-project-yt
0c6cf75351b91e4da80f6a0207ebbcb73dd72a59
[ "BSD-3-Clause-Clear" ]
2
2020-05-16T15:29:37.000Z
2020-06-22T10:17:08.000Z
""" The data-file handling functions """ #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #----------...
37.375
93
0.534072
f51a45fe1a8a67667d2a40a89fde26a30975bde6
865
py
Python
2018/day01.py
harendra263/AdventOfCode
86db33409961681dcb05be9bf9197f7464ee7697
[ "MIT" ]
null
null
null
2018/day01.py
harendra263/AdventOfCode
86db33409961681dcb05be9bf9197f7464ee7697
[ "MIT" ]
null
null
null
2018/day01.py
harendra263/AdventOfCode
86db33409961681dcb05be9bf9197f7464ee7697
[ "MIT" ]
null
null
null
from typing import List, Iterator, Set with open('data/day01a.txt') as f: numbers = [int(line.strip()) for line in f] print(sum(numbers)) def all_frequencies(numbers: List[int], start: int = 0) -> Iterator[int]: frequency = start while True: for number in numbers: yield frequency ...
20.116279
73
0.625434
74c4ba165f5264b43f651d253da1d1ddbad87714
2,270
py
Python
basicdata/FileTest.py
xuwujing/python-study
a48a81595b28757a7ecd4dcf0416b8d897b46e41
[ "Apache-2.0" ]
1
2020-07-29T01:19:43.000Z
2020-07-29T01:19:43.000Z
basicdata/FileTest.py
xuwujing/python-study
a48a81595b28757a7ecd4dcf0416b8d897b46e41
[ "Apache-2.0" ]
null
null
null
basicdata/FileTest.py
xuwujing/python-study
a48a81595b28757a7ecd4dcf0416b8d897b46e41
[ "Apache-2.0" ]
null
null
null
# 文件读写 # open() 将会返回一个 file 对象,基本语法格式如下: # open(filename, mode) # filename:包含了你要访问的文件名称的字符串值。 # mode:决定了打开文件的模式:只读,写入,追加等。所有可取值见如下的完全列表。这个参数是非强制的,默认文件访问模式为只读(r)。 # 模式 # 描述 # r # 以只读方式打开文件。文件的指针将会放在文件的开头。这是默认模式。 # rb # 以二进制格式打开一个文件用于只读。文件指针将会放在文件的开头。 # r+ # 打开一个文件用于读写。文件指针将会放在文件的开头。 # rb+ # 以二进制格式打开一个文件用于读写。文件指针将会放在文件的开...
19.912281
83
0.701762
619af894f1d7a0532a43c088c2d6ae2aff7068b5
12,603
py
Python
main.py
addicx/plantsensor
3089fcb603266bd54d629637ef9ce0c10ffc9e74
[ "MIT" ]
74
2021-08-04T20:15:58.000Z
2022-01-01T11:10:30.000Z
main.py
addicx/plantsensor
3089fcb603266bd54d629637ef9ce0c10ffc9e74
[ "MIT" ]
1
2021-12-29T17:34:42.000Z
2021-12-29T17:34:42.000Z
main.py
addicx/plantsensor
3089fcb603266bd54d629637ef9ce0c10ffc9e74
[ "MIT" ]
4
2021-08-06T18:35:42.000Z
2021-08-13T14:36:45.000Z
from machine import Pin,SPI,ADC #3v3 to humidity1, GP2 to humidity2 GND to humidity 4, (Link DHT22 pins 1&2 with a 4.7K - 10K resistor) import framebuf, onewire, ds18x20, rp2, time, random from src.CSMS import CSMS DC = 8 RST = 12 MOSI = 11 SCK = 10 CS = 9 class OLED_1inch3(framebuf.FrameBuffer): def __init__(s...
35.905983
201
0.523288
643627c436a8b0e9d41420be4b72c3a010bd3b54
488
py
Python
Python/python_study_4/page17/menu_item.py
zharmedia386/Progate-Course-Repo
0dec6bd2d5594b1624251a74f6ebcf8266c449ba
[ "MIT" ]
null
null
null
Python/python_study_4/page17/menu_item.py
zharmedia386/Progate-Course-Repo
0dec6bd2d5594b1624251a74f6ebcf8266c449ba
[ "MIT" ]
null
null
null
Python/python_study_4/page17/menu_item.py
zharmedia386/Progate-Course-Repo
0dec6bd2d5594b1624251a74f6ebcf8266c449ba
[ "MIT" ]
null
null
null
class MenuItem: def __init__(self, name, price): self.name = name self.price = price def info(self): return self.name + ': $' + str(self.price) def get_total_price(self, count): total_price = self.price * count # If count is 3 or higher, multiply it by 0.9 ...
27.111111
69
0.567623
a6ebeb4dee48c51529f655eecbe38689866b16e1
1,586
py
Python
coreference/data_loader.py
shinoyuki222/torch-light
4799805d9bcae82a9f12a574dcf9fdd838c92ee9
[ "MIT" ]
null
null
null
coreference/data_loader.py
shinoyuki222/torch-light
4799805d9bcae82a9f12a574dcf9fdd838c92ee9
[ "MIT" ]
null
null
null
coreference/data_loader.py
shinoyuki222/torch-light
4799805d9bcae82a9f12a574dcf9fdd838c92ee9
[ "MIT" ]
null
null
null
import random import os import numpy as np import torch import const import utils class DataLoader: def __init__(self, inp_data, word2idx, cuda=True): self.cuda = cuda self.inp_data = inp_data self.word2idx = word2idx self.train_docs = self.load_files("train") self.test_...
29.37037
97
0.627364
c460d502c1ff96f051be2d605e5ec5fface23ea3
401
py
Python
Chapter04/04_04_determine_file_extension_from_contenttype.py
susumuasaga/Python-Web-Scraping-Cookbook
dcb6241c5ead11070648b9c829b18f4e0d90f464
[ "MIT" ]
1
2019-09-29T13:58:54.000Z
2019-09-29T13:58:54.000Z
Chapter04/04_04_determine_file_extension_from_contenttype.py
MindaugasVaitkus2/Python-Web-Scraping-Cookbook
dcb6241c5ead11070648b9c829b18f4e0d90f464
[ "MIT" ]
null
null
null
Chapter04/04_04_determine_file_extension_from_contenttype.py
MindaugasVaitkus2/Python-Web-Scraping-Cookbook
dcb6241c5ead11070648b9c829b18f4e0d90f464
[ "MIT" ]
null
null
null
""" Demonstrate determining extension from content type returned in response """ import sys from os import path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) import const from util.urls import URLUtility util = URLUtility(const.ApodEclipseImage()) print("Filename from content-type: " + util.exte...
28.642857
80
0.790524
714ac4e1a87d76c223c640703f0b4bf5513a7f3a
8,968
py
Python
dccd/histo_dl/exchange.py
irvingprog/Download_Crypto_Currencies_Data
b59f3a3eed3df29a1a68915cdf18f65b9023a992
[ "MIT" ]
null
null
null
dccd/histo_dl/exchange.py
irvingprog/Download_Crypto_Currencies_Data
b59f3a3eed3df29a1a68915cdf18f65b9023a992
[ "MIT" ]
null
null
null
dccd/histo_dl/exchange.py
irvingprog/Download_Crypto_Currencies_Data
b59f3a3eed3df29a1a68915cdf18f65b9023a992
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 # @Author: ArthurBernard # @Email: arthur.bernard.92@gmail.com # @Date: 2019-08-30 09:25:01 # @Last modified by: ArthurBernard # @Last modified time: 2019-09-03 21:56:51 """ Base object to download historical data from REST API. Notes ----- The following object is shapped to dow...
29.695364
79
0.547614
63866555de4a34269880685c3d02b4ff7c5909b0
6,308
py
Python
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_info_v2.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_info_v2.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/sub_customer_info_v2.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class SubCustomerInfoV2: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key ...
25.232
103
0.556753
8b3928543d55f1c27ef1c4a2ab952fedf2d0d778
6,918
py
Python
train.py
Jiannan-Liu/nCoVSegNet
7543e68edff011a7f7b694c97cf0f185d441fd6b
[ "MIT" ]
5
2021-08-31T14:28:52.000Z
2022-02-12T04:10:31.000Z
train.py
Jiannan-Liu/nCoVSegNet
7543e68edff011a7f7b694c97cf0f185d441fd6b
[ "MIT" ]
null
null
null
train.py
Jiannan-Liu/nCoVSegNet
7543e68edff011a7f7b694c97cf0f185d441fd6b
[ "MIT" ]
3
2021-08-09T02:53:17.000Z
2022-02-20T09:35:28.000Z
import torch from torch.autograd import Variable import os import argparse from datetime import datetime from utils.dataset import get_loader from utils.utils import clip_gradient, adjust_lr, AvgMeter import torch.nn.functional as F def joint_loss(pred, mask): weit = 1 + 5*torch.abs(F.avg_pool2d(mask, kernel_size...
43.2375
109
0.603787
37ed19ad54af99b7080486c478a9cb6d9a5768c5
9,937
py
Python
graph.py
kunrii/NodeNet
192579807cb13fc363ea28f787da7d431b39646d
[ "MIT" ]
null
null
null
graph.py
kunrii/NodeNet
192579807cb13fc363ea28f787da7d431b39646d
[ "MIT" ]
null
null
null
graph.py
kunrii/NodeNet
192579807cb13fc363ea28f787da7d431b39646d
[ "MIT" ]
null
null
null
import numpy as _lib_ import node as _node_ class Graph: def __init__(self): self.nodes = set() self.inputNodes = set() self.outputNodes = set() self.links = set() self.learning_rate = 1e-3 #############################################################...
28.070621
150
0.447016
e2f672ac6d30c611fad6639605013230c182f377
4,102
py
Python
seata/rm/datasource/ColumnUtils.py
opentrx/seata-python
66fb3382217a43effa3d1bc5ec2b62204d499dba
[ "Apache-2.0" ]
8
2021-09-09T06:28:08.000Z
2022-03-06T04:58:40.000Z
seata/rm/datasource/ColumnUtils.py
opentrx/seata-python
66fb3382217a43effa3d1bc5ec2b62204d499dba
[ "Apache-2.0" ]
null
null
null
seata/rm/datasource/ColumnUtils.py
opentrx/seata-python
66fb3382217a43effa3d1bc5ec2b62204d499dba
[ "Apache-2.0" ]
4
2021-08-23T07:44:27.000Z
2022-02-11T08:42:54.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # @author jsbxyyx # @since 1.0 from enum import Enum class Escape(Enum): STANDARD = '"' MYSQL = '`' class ColumnUtils(object): DOT = "." @classmethod def del_escape_by_cols_dbtype(cls, cols, db_type): new_cols = cls.del_escape_by_cols_escape...
37.290909
115
0.591663
77411663a515a9268438c85921e22a661c684d07
5,050
py
Python
src/commands/errors.py
L0ad1n6/Banana-Bot
d76dff9d782b1fe614b539bf13d176daecc24c8c
[ "MIT" ]
2
2021-12-26T05:24:37.000Z
2022-02-15T15:28:39.000Z
src/commands/errors.py
L0ad1n6/Banana-Bot
d76dff9d782b1fe614b539bf13d176daecc24c8c
[ "MIT" ]
null
null
null
src/commands/errors.py
L0ad1n6/Banana-Bot
d76dff9d782b1fe614b539bf13d176daecc24c8c
[ "MIT" ]
3
2022-01-15T19:05:49.000Z
2022-01-22T03:27:14.000Z
from discord.ext import commands from discord.ext.commands.errors import * from .music import HZ_BANDS from wavelink.errors import ZeroConnectedNodes import os import sys class InsufficientCredit(commands.CommandError): pass class InsufficientRole(commands.CommandError): pass class UserNotConnected(commands.Co...
39.76378
196
0.693663
c0aef349ff8358f5a205aeae6e888287623c646c
1,919
py
Python
training/checkpointing.py
chapter09/open_lth
53403fdb3fb82b833e336cf36b0292bfed61820a
[ "MIT" ]
null
null
null
training/checkpointing.py
chapter09/open_lth
53403fdb3fb82b833e336cf36b0292bfed61820a
[ "MIT" ]
null
null
null
training/checkpointing.py
chapter09/open_lth
53403fdb3fb82b833e336cf36b0292bfed61820a
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from ..foundations import paths from ..foundations.step import Step from ..platforms.platform import get_platform from ..training...
42.644444
115
0.722251
52e1eb99295fa488792259b54c47ab5d2ffacdca
3,742
py
Python
clevrer_dev/feature_extraction/generate_features.py
gabrielsluz/SlowFast
bd06eac47fa236b070fd9a3b39518eea08d02947
[ "Apache-2.0" ]
null
null
null
clevrer_dev/feature_extraction/generate_features.py
gabrielsluz/SlowFast
bd06eac47fa236b070fd9a3b39518eea08d02947
[ "Apache-2.0" ]
null
null
null
clevrer_dev/feature_extraction/generate_features.py
gabrielsluz/SlowFast
bd06eac47fa236b070fd9a3b39518eea08d02947
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import torch from torch.utils.data import DataLoader import sys import os from tqdm import tqdm import h5py from slowfast.datasets.clevrer_video import Clevrer_video from slowfast.models.video_model_builder import SlowFast import slowfast.utils.checkpoint as cu from slowfast.utils.parser impor...
33.410714
90
0.652859
d07e0b72a8cc5b6f32fa03cf3333d6b8fd181655
1,222
py
Python
advent_of_code/solutions/day_01.py
deadpyxel/advent-of-code-2020
0aa42fe49aa06e8822c6c61125425f387c330710
[ "MIT" ]
null
null
null
advent_of_code/solutions/day_01.py
deadpyxel/advent-of-code-2020
0aa42fe49aa06e8822c6c61125425f387c330710
[ "MIT" ]
null
null
null
advent_of_code/solutions/day_01.py
deadpyxel/advent-of-code-2020
0aa42fe49aa06e8822c6c61125425f387c330710
[ "MIT" ]
null
null
null
from itertools import combinations from typing import Collection from typing import List from advent_of_code.adapter import acquire_problem_input from advent_of_code.utils import calc_product from advent_of_code.utils import parse_input_as_integer def _filter_possible_combinations( original_list: List[int], n: i...
33.944444
78
0.744681
b74069aea38bb72e0acf0e46d06ac2ae661c9559
2,183
py
Python
Z - Tool Box/LaZagne/Windows/lazagne/softwares/php/composer.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
1,290
2020-05-28T21:24:43.000Z
2022-03-31T16:38:43.000Z
Z - Tool Box/LaZagne/Windows/lazagne/softwares/php/composer.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
1
2020-07-03T21:14:52.000Z
2020-07-03T21:14:52.000Z
Z - Tool Box/LaZagne/Windows/lazagne/softwares/php/composer.py
dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1
1dcf54522e9d20711ff1114550dc2893ed3e9ed0
[ "MIT" ]
280
2020-05-29T17:28:38.000Z
2022-03-31T13:54:15.000Z
# -*- coding: utf-8 -*- import json from lazagne.config.module_info import ModuleInfo from lazagne.config.constant import constant import os class Composer(ModuleInfo): def __init__(self): ModuleInfo.__init__(self, 'composer', 'php') def extract_credentials(self, location): """ Ex...
35.209677
96
0.554283
9d3709c5ccef6b681b8f43840012677d5a56f769
3,391
py
Python
scripts/nasjonal_speakers.py
RuntimeRacer/Real-Time-Voice-Cloning
c363926774cf3a110b70abef939d907dc8998ca9
[ "MIT" ]
null
null
null
scripts/nasjonal_speakers.py
RuntimeRacer/Real-Time-Voice-Cloning
c363926774cf3a110b70abef939d907dc8998ca9
[ "MIT" ]
1
2022-01-08T09:36:20.000Z
2022-01-08T09:36:20.000Z
scripts/nasjonal_speakers.py
RuntimeRacer/Real-Time-Voice-Cloning
c363926774cf3a110b70abef939d907dc8998ca9
[ "MIT" ]
null
null
null
import os from pathlib import Path import argparse from tqdm import tqdm import random from multiprocess.pool import ThreadPool from shutil import copyfile # should pull this from args parser = argparse.ArgumentParser(description='Process nasjonalbank dataset for a language.') parser.add_argument("datasets_root", type...
30.00885
92
0.675022
ef3e963bb884b9c9ea4fe2f960724485185b9342
227
py
Python
skodaconnect/__version__.py
stefanuc111/skodaconnect
106c83825fa009a238cdedebd67d0157fc950e90
[ "Apache-2.0" ]
null
null
null
skodaconnect/__version__.py
stefanuc111/skodaconnect
106c83825fa009a238cdedebd67d0157fc950e90
[ "Apache-2.0" ]
null
null
null
skodaconnect/__version__.py
stefanuc111/skodaconnect
106c83825fa009a238cdedebd67d0157fc950e90
[ "Apache-2.0" ]
null
null
null
""" skodaconnect - A Python 3 library for interacting with Skoda Connect and Smartlink services. For more details and documentation, visit the github page at https://github.com/lendy007/skodaconnect """ __version__ = "1.1.19"
32.428571
101
0.77533
41ca4c1aba343e59ae4ccfad7642bbc132cf901e
3,831
py
Python
solace/views/api.py
Plurk/Solace
752a98e3279f1e7e0dafd6281e90ba24cb733474
[ "BSD-3-Clause" ]
4
2015-10-28T22:23:07.000Z
2021-08-25T15:21:25.000Z
solace/views/api.py
sfermigier/solace
32d0b398643344c797a40a094689300c364de3b0
[ "BSD-3-Clause" ]
null
null
null
solace/views/api.py
sfermigier/solace
32d0b398643344c797a40a094689300c364de3b0
[ "BSD-3-Clause" ]
1
2018-11-25T17:52:22.000Z
2018-11-25T17:52:22.000Z
# -*- coding: utf-8 -*- """ solace.views.api ~~~~~~~~~~~~~~~~ This module implements version 1.0 of the API. If we ever provide a new version, it should be renamed. Because the docstrings of this module are displayed on the API page different rules apply. Format docstrings with creole markup...
30.648
74
0.666928
f651322201921e80c761a4927fb2c44106163dc7
6,108
py
Python
src/Products/PageTemplates/expression.py
CMYanko/Zope
bbd2f4ce565740bfc9d9cae00c147f963ba49085
[ "ZPL-2.1" ]
null
null
null
src/Products/PageTemplates/expression.py
CMYanko/Zope
bbd2f4ce565740bfc9d9cae00c147f963ba49085
[ "ZPL-2.1" ]
null
null
null
src/Products/PageTemplates/expression.py
CMYanko/Zope
bbd2f4ce565740bfc9d9cae00c147f963ba49085
[ "ZPL-2.1" ]
null
null
null
"""``chameleon.tales`` expressions.""" from ast import NodeTransformer from ast import parse from chameleon.astutil import Static from chameleon.astutil import Symbol from chameleon.codegen import template from chameleon.tales import NotExpr from chameleon.tales import StringExpr from AccessControl.ZopeGuards import...
26.102564
77
0.695809
690fadcc0a20e867b674f68a250f6e3713d6497f
5,522
py
Python
Demo/threads/Coroutine.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2021-12-26T22:20:34.000Z
2021-12-26T22:20:34.000Z
Demo/threads/Coroutine.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-10-29T20:51:31.000Z
2015-10-29T20:51:31.000Z
Demo/threads/Coroutine.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
# Coroutine implementation using Python threads. # # Combines ideas from Guido's Generator module, and from the coroutine # features of Icon and Simula 67. # # To run a collection of functions as coroutines, you need to create # a Coroutine object to control them: # co = Coroutine() # and then 'create' a subsidiary ...
34.5125
85
0.628214
a89597857a42c548b374e4b23a9a419b08ce03c5
587
py
Python
netbox/payment/navigation.py
cbipoe3ka/new-netbox-2.9
ce54c710034d58f99dbcefc1ad16c947a8b78dc8
[ "Apache-2.0" ]
null
null
null
netbox/payment/navigation.py
cbipoe3ka/new-netbox-2.9
ce54c710034d58f99dbcefc1ad16c947a8b78dc8
[ "Apache-2.0" ]
null
null
null
netbox/payment/navigation.py
cbipoe3ka/new-netbox-2.9
ce54c710034d58f99dbcefc1ad16c947a8b78dc8
[ "Apache-2.0" ]
null
null
null
from extras.plugins import PluginMenuButton, PluginMenuItem from utilities.choices import ButtonColorChoices menu_items = ( PluginMenuItem( link='plugins:payment:payment_list', link_text='Payments list', permissions=['payment.view_payment'], buttons= ( PluginMenuButto...
26.681818
59
0.586031
166922b5aee4550fea294cb262434e18ab441e2b
3,794
py
Python
uvicore/auth/services.py
uvicore/framework
9c21b85e9e470c6d789899340332a9abd0b26ab1
[ "MIT" ]
11
2021-03-22T22:07:49.000Z
2022-03-08T16:18:33.000Z
uvicore/auth/services.py
uvicore/framework
9c21b85e9e470c6d789899340332a9abd0b26ab1
[ "MIT" ]
12
2021-03-04T05:51:24.000Z
2021-09-22T05:16:18.000Z
uvicore/auth/services.py
uvicore/framework
9c21b85e9e470c6d789899340332a9abd0b26ab1
[ "MIT" ]
2
2021-03-25T14:49:56.000Z
2021-11-17T23:20:29.000Z
import uvicore from uvicore.http.provider import Http from uvicore.database.provider import Db from uvicore.package import ServiceProvider from uvicore.support.dumper import dump, dd # type: ignore @uvicore.provider() class Auth(ServiceProvider, Db, Http): def register(self) -> None: # Register IoC bind...
39.936842
137
0.650501
a53dbf2dee0a55ca6ae0acd9dcea926b37c89ee5
11,270
py
Python
sudoku.py
JaakkoRoponen/sudoku-solver
44355b5ce176f4f2210b5f7a1206c3f5786088c5
[ "MIT" ]
null
null
null
sudoku.py
JaakkoRoponen/sudoku-solver
44355b5ce176f4f2210b5f7a1206c3f5786088c5
[ "MIT" ]
null
null
null
sudoku.py
JaakkoRoponen/sudoku-solver
44355b5ce176f4f2210b5f7a1206c3f5786088c5
[ "MIT" ]
null
null
null
import itertools import random import numpy as np class Sudoku: """Class for creating and solving Sudoku puzzles""" def _get_square(self, row, col): """ Returns coordinates for the square where the row,col coordinate is """ top = int(row / 3) * 3 # (0 or 1 or 2) * 3 ...
43.015267
79
0.565129
1b579f594f5cf06701a36a04347c2a0975c62ec7
2,534
py
Python
tidal_precession.py
ddeb32/APR_Testing
08cf346e6047f75ad57a7c9b497ea2dd9cb13f59
[ "MIT" ]
null
null
null
tidal_precession.py
ddeb32/APR_Testing
08cf346e6047f75ad57a7c9b497ea2dd9cb13f59
[ "MIT" ]
null
null
null
tidal_precession.py
ddeb32/APR_Testing
08cf346e6047f75ad57a7c9b497ea2dd9cb13f59
[ "MIT" ]
null
null
null
##################################################################### ### Evaluating the tidal component to the precession rate ### ##################################################################### import numpy as np import pandas as pd from numpy import pi from scipy import integrate import scipy.consta...
28.155556
98
0.480268
0bc0a183901e3a618faf1eab6fa1a8dd805e5e09
549
py
Python
foodcartapp/migrations/0048_auto_20201217_1212.py
Sam1808/Add-orders-to-the-online-store
2ca137915689df6012746c9d5e3b6307b53e112b
[ "MIT" ]
null
null
null
foodcartapp/migrations/0048_auto_20201217_1212.py
Sam1808/Add-orders-to-the-online-store
2ca137915689df6012746c9d5e3b6307b53e112b
[ "MIT" ]
null
null
null
foodcartapp/migrations/0048_auto_20201217_1212.py
Sam1808/Add-orders-to-the-online-store
2ca137915689df6012746c9d5e3b6307b53e112b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-12-17 12:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('foodcartapp', '0047_auto_20201216_2004'), ] operations = [ migrations.AlterField( model_name='o...
27.45
169
0.666667
bae67ecabe1b047880d24559c3cb7b1aa27dfb89
461
py
Python
EMDetector/train/augment/contrast.py
jabae/detectEM
2d1a5116164d0bed0a8ea767a227d05a8970a448
[ "MIT" ]
1
2021-02-14T06:41:05.000Z
2021-02-14T06:41:05.000Z
EMDetector/train/augment/contrast.py
jabae/detectEM
2d1a5116164d0bed0a8ea767a227d05a8970a448
[ "MIT" ]
null
null
null
EMDetector/train/augment/contrast.py
jabae/detectEM
2d1a5116164d0bed0a8ea767a227d05a8970a448
[ "MIT" ]
null
null
null
import numpy as np def contrast_augment(sample): """Performs contrast/brightness augmentation on img. Args: sample: Dictionary of (np array: <ch,z,x,y>) image and mask """ f_s = 1 f_b = 0.5 a = 1 + (np.random.rand() - 0.5) * f_s b = (np.random.rand() - 0.5) * f_b g = (np.random.rand()*2 - 1) sample["im...
20.043478
61
0.607375
2d1b761229331ea1c9891c2193efe1b693996f13
4,416
py
Python
supplier/views.py
chinxianjun2016/GreaterWMS
aacd0e15e0114f103eb57002e93670c008cce63b
[ "Apache-2.0" ]
null
null
null
supplier/views.py
chinxianjun2016/GreaterWMS
aacd0e15e0114f103eb57002e93670c008cce63b
[ "Apache-2.0" ]
null
null
null
supplier/views.py
chinxianjun2016/GreaterWMS
aacd0e15e0114f103eb57002e93670c008cce63b
[ "Apache-2.0" ]
null
null
null
from rest_framework import viewsets from .models import ListModel from . import serializers from utils.page import MyPageNumberPagination from rest_framework.filters import OrderingFilter from django_filters.rest_framework import DjangoFilterBackend from rest_framework.response import Response from .filter import Filte...
37.74359
118
0.639719
9a64af6060ed3aa8f41e22948952679e479f3b7e
466
py
Python
data/scripts/templates/object/tangible/medicine/crafted/shared_medpack_blinded_a.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/medicine/crafted/shared_medpack_blinded_a.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/medicine/crafted/shared_medpack_blinded_a.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/medicine/crafted/shared_medpack_blinded_a.iff" result.attribute_tem...
27.411765
82
0.738197
923b31bcd10a8d4a66d790edf51fc2941b1c3ad5
2,154
py
Python
src/app.py
amiiiirrrr/Machine_learning_task
2d066d06ea8622b06bd9e4e9f791074a44f80173
[ "Apache-2.0" ]
null
null
null
src/app.py
amiiiirrrr/Machine_learning_task
2d066d06ea8622b06bd9e4e9f791074a44f80173
[ "Apache-2.0" ]
null
null
null
src/app.py
amiiiirrrr/Machine_learning_task
2d066d06ea8622b06bd9e4e9f791074a44f80173
[ "Apache-2.0" ]
null
null
null
""" app.py """ import pika import json from test_model import TestModel __author__ = "Seyed Amir Mousavi" __license__ = "Public Domain" __version__ = "1.0.0" __status__ = "Production" def run(): """ To process requests """ connection = pika.BlockingConnection( pika.Connect...
33.65625
99
0.539926
3bb557f49546b91fd8610b75d10f654ae858771a
4,755
py
Python
python/hopsworks/engine/execution_engine.py
robzor92/hopsworks-api
94a0cfabedc0278e5d5e0eec699317073a65a126
[ "Apache-2.0" ]
null
null
null
python/hopsworks/engine/execution_engine.py
robzor92/hopsworks-api
94a0cfabedc0278e5d5e0eec699317073a65a126
[ "Apache-2.0" ]
9
2022-03-18T08:21:41.000Z
2022-03-28T14:46:31.000Z
python/hopsworks/engine/execution_engine.py
robzor92/hopsworks-api
94a0cfabedc0278e5d5e0eec699317073a65a126
[ "Apache-2.0" ]
3
2022-03-14T08:20:45.000Z
2022-03-16T11:15:04.000Z
# # Copyright 2022 Logical Clocks AB # # 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 ag...
37.440945
102
0.609043
7f297181c692fc9537ab582c38bc14cccd652d05
3,546
py
Python
tests/data/test_load_wyscout.py
BWyckaert/socceraction
5fd6bd7e29df8d230103d586f8f9449bdb0ca500
[ "MIT" ]
null
null
null
tests/data/test_load_wyscout.py
BWyckaert/socceraction
5fd6bd7e29df8d230103d586f8f9449bdb0ca500
[ "MIT" ]
null
null
null
tests/data/test_load_wyscout.py
BWyckaert/socceraction
5fd6bd7e29df8d230103d586f8f9449bdb0ca500
[ "MIT" ]
null
null
null
import os from socceraction.data import wyscout as wy from socceraction.data.wyscout import ( WyscoutCompetitionSchema, WyscoutEventSchema, WyscoutGameSchema, WyscoutPlayerSchema, WyscoutTeamSchema, ) class TestPublicWyscoutLoader: def setup_method(self) -> None: data_dir = os.path.jo...
36.556701
96
0.654258
7c7a0346e794b19ed578943f5ccb8ba49e761dc0
3,905
py
Python
ai_flow/runtime/job_runtime_util.py
SteNicholas/ai-flow
2c70547981f1516f0e37bbe6936a1b7cccd31822
[ "Apache-2.0" ]
null
null
null
ai_flow/runtime/job_runtime_util.py
SteNicholas/ai-flow
2c70547981f1516f0e37bbe6936a1b7cccd31822
[ "Apache-2.0" ]
null
null
null
ai_flow/runtime/job_runtime_util.py
SteNicholas/ai-flow
2c70547981f1516f0e37bbe6936a1b7cccd31822
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
55.785714
105
0.680154
a6a60863aa381bd88c89131760c48a129334db8e
7,166
py
Python
analysis/create_plots/detect.py
shibaji7/clustering_superdarn_data
02bc31dd85f66319bb46b632e0e7ac51ed98c432
[ "BSD-3-Clause" ]
1
2020-12-02T20:13:14.000Z
2020-12-02T20:13:14.000Z
analysis/create_plots/detect.py
shibaji7/clustering_superdarn_data
02bc31dd85f66319bb46b632e0e7ac51ed98c432
[ "BSD-3-Clause" ]
null
null
null
analysis/create_plots/detect.py
shibaji7/clustering_superdarn_data
02bc31dd85f66319bb46b632e0e7ac51ed98c432
[ "BSD-3-Clause" ]
null
null
null
import os import sys sys.path.append("./") sys.path.append("../") sys.path.append("create_plots/") import datetime as dt import pandas as pd import numpy as np import matplotlib as mpl from matplotlib.dates import num2date import matplotlib.pyplot as plt from scipy.stats import beta import pickle import pydarn from py...
41.421965
181
0.611359
ad29833d6957aa81efada3975b1c470dfc2bd2e6
14,228
py
Python
integration_tests/test_suites/celery-k8s-integration-test-suite/test_integration.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
integration_tests/test_suites/celery-k8s-integration-test-suite/test_integration.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
integration_tests/test_suites/celery-k8s-integration-test-suite/test_integration.py
coderanger/dagster
d3e323f8ed55cd906d6f44f19595348ea1580b2d
[ "Apache-2.0" ]
null
null
null
# pylint doesn't know about pytest fixtures # pylint: disable=unused-argument import datetime import os import time import boto3 import pytest from dagster import DagsterEventType from dagster.core.storage.pipeline_run import PipelineRunStatus from dagster.core.test_utils import create_run_for_test from dagster.utils ...
36.670103
100
0.691032
1a0d9ba96d42971f51efaca127b411dd2c1a5ff9
3,056
py
Python
matcher/utils.py
aehrc/clinicaltrialsearch
03eb78923dd22c10c77257ffb8aeaf60b2f2c62d
[ "MIT" ]
null
null
null
matcher/utils.py
aehrc/clinicaltrialsearch
03eb78923dd22c10c77257ffb8aeaf60b2f2c62d
[ "MIT" ]
null
null
null
matcher/utils.py
aehrc/clinicaltrialsearch
03eb78923dd22c10c77257ffb8aeaf60b2f2c62d
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as etree import re import argparse from typing import Dict, Union, Optional, List, Any from collections import defaultdict SPECIAL_MEDICAL_TERMS = ['covid', 'covid-19', 'coronavirus', 'corona'] def get_queries(query_file: str): """ Reads a Indri formatted query file. :par...
36.819277
118
0.622382
21acb432c48fc6fb4dd56ea2ef6aa2903b327314
1,746
py
Python
django/aihackingbad/videos/views.py
GauravB159/Recommend
1bfc1826239e1fe2ccdab7d75f3a4320a70290db
[ "MIT" ]
null
null
null
django/aihackingbad/videos/views.py
GauravB159/Recommend
1bfc1826239e1fe2ccdab7d75f3a4320a70290db
[ "MIT" ]
null
null
null
django/aihackingbad/videos/views.py
GauravB159/Recommend
1bfc1826239e1fe2ccdab7d75f3a4320a70290db
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, JsonResponse import uuid, json ,os,time # Create your views here. def index(request): # return HttpResponse('videos') return render(request, 'videos/index.html') def videoGen(category): path = 'data/videos/'+category+'/'; baseUrl='http:...
29.1
77
0.700458
76802d81407fc97c7ce3c8cd3d3fd8b34784deec
1,310
py
Python
app/core/test/test_admin.py
Umutbek/crm-food
96a59b2624aef46b9c4fa250812626948edb4d88
[ "MIT" ]
null
null
null
app/core/test/test_admin.py
Umutbek/crm-food
96a59b2624aef46b9c4fa250812626948edb4d88
[ "MIT" ]
null
null
null
app/core/test/test_admin.py
Umutbek/crm-food
96a59b2624aef46b9c4fa250812626948edb4d88
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@gmail.com', ...
31.190476
68
0.636641
33938c9651069841dddc01e6634e7715b459ead7
2,688
py
Python
lib/web/exceptions.py
kpark1/dynamo
cb713fac5438b125b6bd05cbe38316fde5868a18
[ "MIT" ]
1
2018-08-02T03:06:27.000Z
2018-08-02T03:06:27.000Z
lib/web/exceptions.py
kpark1/dynamo
cb713fac5438b125b6bd05cbe38316fde5868a18
[ "MIT" ]
16
2017-11-24T21:09:26.000Z
2019-05-14T15:13:57.000Z
lib/web/exceptions.py
kpark1/dynamo
cb713fac5438b125b6bd05cbe38316fde5868a18
[ "MIT" ]
11
2016-08-03T10:37:31.000Z
2018-08-21T14:32:25.000Z
class MissingParameter(Exception): """Raise if request is missing a required parameter.""" def __init__(self, param_name, context = None): self.param_name = param_name self.context = context def __str__(self): msg = 'Missing required parameter "%s"' % self.param_name if self...
34.025316
108
0.60119
ded4a5fa8c826c8a05b1dd5e86c5ae42611f5785
1,253
py
Python
gozokia/i_o/input.py
avara1986/gozokia
03da46359c4a97a35b8f94686cccec7fc9b438cd
[ "MIT-0", "MIT" ]
null
null
null
gozokia/i_o/input.py
avara1986/gozokia
03da46359c4a97a35b8f94686cccec7fc9b438cd
[ "MIT-0", "MIT" ]
null
null
null
gozokia/i_o/input.py
avara1986/gozokia
03da46359c4a97a35b8f94686cccec7fc9b438cd
[ "MIT-0", "MIT" ]
null
null
null
import sys from .io_base import InputBase from .io_voice import VoiceRecognizerMixin from gozokia.conf import settings class InputTerminalText(InputBase): def listen(self, *args, **kwargs): super(InputTerminalText, self).listen(*args, **kwargs) """ Normalize reading input between python 2...
29.139535
68
0.64166
6e8482d99a7cf6fbdf23dba1b17bde54c69208ae
817
py
Python
backend/migrations/0026_auto_20190928_2138.py
Raniac/NEURO-LEARN
3c3acc55de8ba741e673063378e6cbaf10b64c7a
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
backend/migrations/0026_auto_20190928_2138.py
Raniac/neurolearn_dev
3c3acc55de8ba741e673063378e6cbaf10b64c7a
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
backend/migrations/0026_auto_20190928_2138.py
Raniac/NEURO-LEARN
3c3acc55de8ba741e673063378e6cbaf10b64c7a
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# Generated by Django 2.1.7 on 2019-09-28 13:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('backend', '0025_auto_20190926_2049'), ] operations = [ migrations.RenameModel( old_name='Data_Demo', new_name='Data_Old', ...
24.029412
47
0.561812
692c6134783df3fcbd3a1574bfb27054eeba5062
1,082
py
Python
setup.py
Photonios/py-momit-cool
b702f53c3f5d16f02c3d7fd95c0d980f2683271b
[ "MIT" ]
2
2018-09-05T17:17:26.000Z
2019-03-26T18:38:41.000Z
setup.py
Photonios/py-momit-cool
b702f53c3f5d16f02c3d7fd95c0d980f2683271b
[ "MIT" ]
2
2018-09-05T05:41:19.000Z
2020-01-05T14:45:39.000Z
setup.py
Photonios/py-momit-cool
b702f53c3f5d16f02c3d7fd95c0d980f2683271b
[ "MIT" ]
1
2019-03-26T18:38:46.000Z
2019-03-26T18:38:46.000Z
import os from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() setup( name='py-momit-cool-remote', version='1.1', packages=find_packages(), include_package_data=True, license='MIT License', descripti...
30.914286
100
0.634011
475df6c915b0228b10ae229a8ea6f0937e5f61a0
67,374
py
Python
taco/full_node/weight_proof.py
grayfallstown/taco-blockchain
6196d73af7a982301a0a1ad5c1bed836b2f95a8d
[ "Apache-2.0" ]
18
2021-07-14T09:56:37.000Z
2022-02-09T04:32:58.000Z
taco/full_node/weight_proof.py
grayfallstown/taco-blockchain
6196d73af7a982301a0a1ad5c1bed836b2f95a8d
[ "Apache-2.0" ]
9
2021-07-14T15:48:28.000Z
2021-10-10T02:32:59.000Z
taco/full_node/weight_proof.py
grayfallstown/taco-blockchain
6196d73af7a982301a0a1ad5c1bed836b2f95a8d
[ "Apache-2.0" ]
10
2021-07-18T03:22:43.000Z
2022-03-15T08:40:06.000Z
import asyncio import dataclasses import logging import math import random from concurrent.futures.process import ProcessPoolExecutor from typing import Dict, List, Optional, Tuple from taco.consensus.block_header_validation import validate_finished_header_block from taco.consensus.block_record import BlockRecord from...
42.373585
120
0.67247
15eea01b6d32560e7552a6a3c6876f04ca6a418d
3,893
py
Python
DJANGO/trainingapp/trainingapp/settings.py
NIXON707/Frameworks-7a-2020B
6892f8dd14b4b6f54eaf06ee5365c95006d815db
[ "MIT" ]
null
null
null
DJANGO/trainingapp/trainingapp/settings.py
NIXON707/Frameworks-7a-2020B
6892f8dd14b4b6f54eaf06ee5365c95006d815db
[ "MIT" ]
null
null
null
DJANGO/trainingapp/trainingapp/settings.py
NIXON707/Frameworks-7a-2020B
6892f8dd14b4b6f54eaf06ee5365c95006d815db
[ "MIT" ]
null
null
null
""" Django settings for trainingapp project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import p...
25.444444
91
0.658618
8d87b1712970beae100a3b5dc1a249e0b3210081
936
py
Python
clean.py
ychnlgy/MailUpdater
4cac2e62a699ade0257418be68c76c450e5c7d5a
[ "MIT" ]
null
null
null
clean.py
ychnlgy/MailUpdater
4cac2e62a699ade0257418be68c76c450e5c7d5a
[ "MIT" ]
null
null
null
clean.py
ychnlgy/MailUpdater
4cac2e62a699ade0257418be68c76c450e5c7d5a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os, shutil ROOT = "." PATTERNS = [".pyc", "__pycache__"] BOLD = '\033[1m' ENDC = '\033[0m' TEMPLATE = "%s -- %s" def main(): recurse(ROOT, PATTERNS) def bold(s): return BOLD + s + ENDC def report(d, t, f): t = ["F", "D"][t] temp = TEMPLATE % (t, f) if d: tem...
17.660377
45
0.497863
0dd47dde3df618b0769da1e05b388749efaf95a8
10,361
py
Python
tests/garage/tf/policies/test_categorical_lstm_policy_with_model_transit.py
arbenton/garage
5c398255fbfae375370483f18216996d82590a88
[ "MIT" ]
null
null
null
tests/garage/tf/policies/test_categorical_lstm_policy_with_model_transit.py
arbenton/garage
5c398255fbfae375370483f18216996d82590a88
[ "MIT" ]
null
null
null
tests/garage/tf/policies/test_categorical_lstm_policy_with_model_transit.py
arbenton/garage
5c398255fbfae375370483f18216996d82590a88
[ "MIT" ]
1
2020-02-05T00:34:07.000Z
2020-02-05T00:34:07.000Z
""" Unit test for Categorical LSTM Policy with Model. This test consists of four different CategoricalLSTMPolicy: P1, P2, P3 and P4. P1 and P2 are from CategoricalLSTMPolicy, which does not use garage.tf.models.LSTMModel while P3 and P4 do use. This test ensures the outputs from all the policies are the same, for the...
43.533613
79
0.657562
958768b8dd14855315f22560afe6620767e37771
17
py
Python
benchmarks/models/__init__.py
markozeman/TransformerSuperposition
a0638c8cb7a346dc9bd0ac992ce5bf306d44303b
[ "MIT" ]
null
null
null
benchmarks/models/__init__.py
markozeman/TransformerSuperposition
a0638c8cb7a346dc9bd0ac992ce5bf306d44303b
[ "MIT" ]
null
null
null
benchmarks/models/__init__.py
markozeman/TransformerSuperposition
a0638c8cb7a346dc9bd0ac992ce5bf306d44303b
[ "MIT" ]
null
null
null
from . import mlp
17
17
0.764706
ba90e2ebaf9c707b86e448928f2850de34296a6b
1,170
py
Python
osbenchmark/builder/launchers/launcher.py
sharp-pixel/opensearch-benchmark
32b2a68c3672f680fbc90a591f6c15b46701142e
[ "Apache-2.0" ]
26
2021-12-09T06:58:53.000Z
2022-03-29T15:01:37.000Z
osbenchmark/builder/launchers/launcher.py
sharp-pixel/opensearch-benchmark
32b2a68c3672f680fbc90a591f6c15b46701142e
[ "Apache-2.0" ]
63
2021-12-08T20:47:17.000Z
2022-03-31T18:21:31.000Z
osbenchmark/builder/launchers/launcher.py
sharp-pixel/opensearch-benchmark
32b2a68c3672f680fbc90a591f6c15b46701142e
[ "Apache-2.0" ]
5
2021-12-09T10:17:30.000Z
2022-03-03T05:31:12.000Z
from abc import ABC, abstractmethod class Launcher(ABC): """ Launchers are used to start and stop OpenSearch on the nodes in a self-managed cluster. """ def __init__(self, shell_executor): self.shell_executor = shell_executor @abstractmethod def start(self, host, node_configurations):...
36.5625
128
0.687179
f6eca5db0b003550ce8068afa299c42f2a0019dc
325
py
Python
librerias_mauro/maths.py
paleomau/MGOL_BOOTCAMP
8c2b018f49fd12a255ea6f323141260d04d4421d
[ "MIT" ]
null
null
null
librerias_mauro/maths.py
paleomau/MGOL_BOOTCAMP
8c2b018f49fd12a255ea6f323141260d04d4421d
[ "MIT" ]
null
null
null
librerias_mauro/maths.py
paleomau/MGOL_BOOTCAMP
8c2b018f49fd12a255ea6f323141260d04d4421d
[ "MIT" ]
null
null
null
''' Esta funcion eleve a la potencia deseada un rango de numeros que hay que definir''' def math_powers (range, power): the_list = [(a ** power) for a in range(range)] print(the_list) math_powers(10,3) # me da error int objetc is not callable. Prefiero dejar la funcion asi y resolver la duda el lunes en tut...
46.428571
111
0.72
ae726ac52d8f2253720213951983bdab64a7ae87
29,790
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/base_date.py
acblacktea/Recognizers-Text
2170b8e35216f3fd56cce98fb33cde5339c9f088
[ "MIT" ]
1
2019-06-19T10:45:24.000Z
2019-06-19T10:45:24.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/base_date.py
mcunille/Recognizers-Text
c5375796ab3f00bee4d9ac1cf8873fe2cc29121b
[ "MIT" ]
null
null
null
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/base_date.py
mcunille/Recognizers-Text
c5375796ab3f00bee4d9ac1cf8873fe2cc29121b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List, Optional, Pattern, Dict from datetime import datetime, timedelta import calendar from datedelta import datedelta import regex from recognizers_text.extractor import ExtractResult from recognizers_text.utilities import RegExpUtility from recognizers_number im...
36.418093
195
0.629708
6911d1f6589c7081c29210bafedded78c816581a
5,332
py
Python
cycada/data/data_loader.py
masterfulai/cycada_release
8c47ff6405074dd247aae0859ec1aec60509447e
[ "BSD-2-Clause" ]
null
null
null
cycada/data/data_loader.py
masterfulai/cycada_release
8c47ff6405074dd247aae0859ec1aec60509447e
[ "BSD-2-Clause" ]
null
null
null
cycada/data/data_loader.py
masterfulai/cycada_release
8c47ff6405074dd247aae0859ec1aec60509447e
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import os from os.path import join import numpy as np from PIL import Image import torch import torch.utils.data as data import torch.nn as nn from torchvision import datasets, transforms from ..util import to_tensor_raw def load_data(name, dset, batch=64, rootdir='', num_channe...
33.746835
88
0.674794
84f9916e456b71ad319f79a0b277ac8227533160
29,086
py
Python
sympy/__init__.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/__init__.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/__init__.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
""" SymPy is a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python. It depends on mpmath, and other external libraries may be o...
54.879245
91
0.675789
f36915faba08a1ee5f120c5b1f0aa369c0ba0a0f
62
py
Python
.history/postImages/index_20201005142231.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
2
2020-10-21T22:14:15.000Z
2020-10-21T22:14:16.000Z
.history/postImages/index_20201005142231.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
.history/postImages/index_20201005142231.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_excel("bridgeData2.xlsx")
12.4
38
0.725806
0ffad7247f063b37292363f378b5bcb87dc48c33
1,352
py
Python
src/target.py
agoswam/Simulator
3507b697aab134022cfab61b6231979795bb9115
[ "MIT" ]
2
2018-04-01T23:26:31.000Z
2020-04-24T17:12:00.000Z
src/target.py
agoswam/Simulator
3507b697aab134022cfab61b6231979795bb9115
[ "MIT" ]
null
null
null
src/target.py
agoswam/Simulator
3507b697aab134022cfab61b6231979795bb9115
[ "MIT" ]
2
2022-02-18T12:13:12.000Z
2022-03-13T13:07:19.000Z
#!/usr/bin/env python # --------------------------------------------------------------------------------------\n # Author: Angshuman Goswami, Graduate Student, Clemson University # Date Create: 20/5/2016, Last Modified: 20/5/2016 \n # ------------------------------------------------------------------------------------...
26.509804
90
0.553994
59fedc7421e9567d2bddf07c2afe51b2c3399aac
10,215
py
Python
venv/Lib/site-packages/sklearn/linear_model/tests/test_theil_sen.py
Jos33y/student-performance-knn
4e965434f52dd6a1380904aa257df1edfaebb3c4
[ "MIT" ]
2
2021-05-02T07:59:56.000Z
2021-12-14T19:53:13.000Z
venv/Lib/site-packages/sklearn/linear_model/tests/test_theil_sen.py
Jos33y/student-performance-knn
4e965434f52dd6a1380904aa257df1edfaebb3c4
[ "MIT" ]
7
2021-06-08T21:46:24.000Z
2022-03-12T00:35:31.000Z
my_env/Lib/site-packages/sklearn/linear_model/tests/test_theil_sen.py
obulrdy6881/Drowsinss
61cb9281d7dd22aee282b517e2fbf500f0ff9935
[ "MIT" ]
1
2021-05-02T07:59:59.000Z
2021-05-02T07:59:59.000Z
""" Testing for Theil-Sen module (sklearn.linear_model.theil_sen) """ # Author: Florian Wilhelm <florian.wilhelm@gmail.com> # License: BSD 3 clause import os import sys from contextlib import contextmanager import numpy as np from numpy.testing import assert_array_equal, assert_array_less from numpy.testing...
36.223404
80
0.648556
3bafd4ac8dce53a61bc5f969df68d84407e7f6df
22,480
py
Python
scipy/optimize/_linprog.py
gitter-badger/scipy
0d10fea581d5044bbecc8b4fbe8c11fc102f6592
[ "BSD-3-Clause" ]
1
2019-07-14T23:22:16.000Z
2019-07-14T23:22:16.000Z
scipy/optimize/_linprog.py
gitter-badger/scipy
0d10fea581d5044bbecc8b4fbe8c11fc102f6592
[ "BSD-3-Clause" ]
1
2021-06-25T15:36:38.000Z
2021-06-25T15:36:38.000Z
scipy/optimize/_linprog.py
gitter-badger/scipy
0d10fea581d5044bbecc8b4fbe8c11fc102f6592
[ "BSD-3-Clause" ]
1
2019-07-21T15:59:29.000Z
2019-07-21T15:59:29.000Z
""" A top-level linear programming interface. Currently this interface solves linear programming problems via the Simplex and Interior-Point methods. .. versionadded:: 0.15.0 Functions --------- .. autosummary:: :toctree: generated/ linprog linprog_verbose_callback linprog_terse_callback """ from __...
40.650995
143
0.634342
b4dedc3acd601780663bee854729475c458d315c
818
py
Python
presto/migrations/0056_auto_20180816_0948.py
pwgbots/presto
49622bdfb6c597c3451d9f5c589d9a1797143d4f
[ "MIT" ]
null
null
null
presto/migrations/0056_auto_20180816_0948.py
pwgbots/presto
49622bdfb6c597c3451d9f5c589d9a1797143d4f
[ "MIT" ]
8
2020-07-28T07:59:09.000Z
2022-03-11T23:43:01.000Z
presto/migrations/0056_auto_20180816_0948.py
pwgbots/presto
49622bdfb6c597c3451d9f5c589d9a1797143d4f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-08-16 07:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('presto', '0055_auto_20180815_2208'), ] operations = [ migrations.AddField( ...
26.387097
75
0.589242
3cf10124766b687e8713c783e217653c4f0301ba
7,564
py
Python
test/tensorflow_test.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
test/tensorflow_test.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
test/tensorflow_test.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from numpy.testing import assert_almost_equal import tensorflow as tf import unittest import ray def make_linear_network(w_name=None, b_name=None): # Define the inputs. x_data = tf.placeholder(tf.float32...
33.469027
79
0.691433
df932a1d318345b8235882775e0cd92939917f5c
1,968
py
Python
lib/tests/test_runner.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
10
2021-02-09T19:25:46.000Z
2022-03-29T13:49:23.000Z
lib/tests/test_runner.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
null
null
null
lib/tests/test_runner.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
5
2020-12-23T15:24:40.000Z
2022-01-06T09:42:38.000Z
#! /usr/bin/env python from .toy_problem_test import ToyProblemTest from .reconciliation_problem_test import ReconciliationProblemTest from .reconciliation_problem_2_test import ReconciliationProblem2Test from .recon3_test import Recon3Test from .optgapc1_test import OptGapC1Test from .optgapc2_test import OptGapC2Te...
33.931034
102
0.723069
d1a50a3f9e7436229e04040cd893d47631ec5b01
5,033
py
Python
src/lib/detectors/base_detector.py
hieubkvn123/CenterNet
438c1e8d0424122ece353bb20e64ff51f9444b6f
[ "MIT" ]
null
null
null
src/lib/detectors/base_detector.py
hieubkvn123/CenterNet
438c1e8d0424122ece353bb20e64ff51f9444b6f
[ "MIT" ]
null
null
null
src/lib/detectors/base_detector.py
hieubkvn123/CenterNet
438c1e8d0424122ece353bb20e64ff51f9444b6f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np import time import torch from models.model import create_model, load_model from utils.image import get_affine_transform from utils.debugger import Debugger class BaseDetector(ob...
34.951389
78
0.66362
9f5208b51e8e6a67eae1cac19789cc03133b7f42
20,406
py
Python
sdk/python/pulumi_azure_native/datalakeanalytics/get_account.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datalakeanalytics/get_account.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datalakeanalytics/get_account.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
44.554585
751
0.693276
86f6642f596353769ef97edecbd241ea64b055e4
7,211
py
Python
trax/rl_trainer.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
1
2020-05-30T15:19:39.000Z
2020-05-30T15:19:39.000Z
trax/rl_trainer.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/rl_trainer.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.816239
79
0.731383
663e40c4d11b49d3253c606f44057700f25209a0
6,419
py
Python
apps/core/backends/auth.py
sparcs-kaist/sparcssso
9aeedc02652dadacb44c6a4ba06901f6d2372223
[ "MIT" ]
18
2015-07-06T06:20:14.000Z
2022-03-20T23:45:40.000Z
apps/core/backends/auth.py
sparcs-kaist/sparcssso
9aeedc02652dadacb44c6a4ba06901f6d2372223
[ "MIT" ]
170
2015-07-07T08:42:03.000Z
2022-03-24T17:31:17.000Z
apps/core/backends/auth.py
sparcs-kaist/sparcssso
9aeedc02652dadacb44c6a4ba06901f6d2372223
[ "MIT" ]
11
2015-07-07T20:42:19.000Z
2022-01-12T22:39:59.000Z
import json import logging import re import uuid from urllib.parse import parse_qsl, urlencode import ldap3 import oauth2 as oauth import requests from django.conf import settings from django.contrib.auth.backends import ModelBackend from django.contrib.auth.models import User from apps.core.models import UserProfile...
29.995327
83
0.618476
aa96ac5f62cb897c38639d4e68f348c7fcf1d769
1,249
py
Python
tracker/models.py
RacherinTest/pricetracker
4b9fc5c12301ae35fba7a78b18cf6bfd5b21a481
[ "Apache-2.0" ]
3
2020-10-03T14:37:40.000Z
2021-03-28T17:21:44.000Z
tracker/models.py
RacherinTest/pricetracker
4b9fc5c12301ae35fba7a78b18cf6bfd5b21a481
[ "Apache-2.0" ]
8
2021-02-08T20:41:55.000Z
2021-09-22T18:36:38.000Z
tracker/models.py
RacherinTest/pricetracker
4b9fc5c12301ae35fba7a78b18cf6bfd5b21a481
[ "Apache-2.0" ]
1
2020-10-03T14:37:41.000Z
2020-10-03T14:37:41.000Z
from django.db import models from django.contrib.auth.models import AbstractUser, User from django.utils.crypto import get_random_string from pricetracker.settings import AUTH_USER_MODEL # Create your models here. class MyUser(AbstractUser): telegram_id = models.CharField(max_length=200) telegram_status = m...
34.694444
76
0.763811
72d2e7b85ee578fda758a101760900da45965cac
3,123
py
Python
mtp_api/apps/core/tests/test_admin.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/core/tests/test_admin.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/core/tests/test_admin.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
from unittest import mock from django.contrib.auth import get_user_model from django.core.management import call_command from django.urls import reverse from django.test import TestCase from mtp_common.test_utils import silence_logger class RecreateTestDataViewTestCase(TestCase): @property def url(self): ...
36.741176
79
0.5943
dba0946cd4f8f0080c5a74ac81c9f5a350bd5084
1,045
py
Python
Labs/lab5/l5e2.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
Labs/lab5/l5e2.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
Labs/lab5/l5e2.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ############################################################################### # File Name : l5e2.py # Created By : Félix Chiasson (7138723) # Creation Date : [2015-10-13 11:44] # Last Modified : [2015-10-13 12:45] # Description...
30.735294
79
0.44689
69f1e438400cfe7d94491a057c076b49baf9e256
3,814
py
Python
utils/augmentation.py
flytocc/RAPiD
92e6a44b8a0107def055e93c971d78fd548562f8
[ "MIT" ]
142
2020-05-26T03:07:00.000Z
2022-03-31T08:12:43.000Z
utils/augmentation.py
flytocc/RAPiD
92e6a44b8a0107def055e93c971d78fd548562f8
[ "MIT" ]
36
2020-06-03T08:07:37.000Z
2022-03-25T04:12:14.000Z
utils/augmentation.py
flytocc/RAPiD
92e6a44b8a0107def055e93c971d78fd548562f8
[ "MIT" ]
46
2020-05-26T03:08:17.000Z
2022-03-11T02:47:05.000Z
import random import numpy as np import scipy.ndimage import torch import torchvision.transforms.functional as tvf import torch.nn.functional as tnf def hflip(image, labels): ''' left-right flip Args: image: PIL.Image labels: tensor, shape(N,5), absolute x,y,w,h, angle in degree ''' ...
26.486111
73
0.61484
2df4edc1521bc842558c4436eaa33a2e1d052fd4
184
py
Python
keras-onnx/onnx_keras/__init__.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
33
2020-06-09T21:05:35.000Z
2022-02-24T01:48:45.000Z
keras-onnx/onnx_keras/__init__.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
17
2020-07-14T19:44:09.000Z
2022-02-10T10:03:01.000Z
keras-onnx/onnx_keras/__init__.py
jwj04ok/ONNX_Convertor
067a17e16dfc8aa80e36f44c4523959daf7359f5
[ "MIT" ]
16
2020-06-17T22:56:11.000Z
2021-12-21T05:44:32.000Z
# This is an empty file for the subdirectory from . import frontend from .helper import set_compatibility from .helper import set_custom_layer from .helper import set_duplicate_weights
36.8
44
0.842391
47b062d3d099046df08948eb5a978abf1fb29284
2,104
py
Python
LSTMModel/PrepareDataset.py
Mozartuss/DEAP_EmotionRecognition_V2
39bd50f327d465114ee0f798ac7bcee13b457b17
[ "Apache-2.0" ]
5
2022-01-25T19:46:19.000Z
2022-01-28T18:07:53.000Z
LSTMModel/PrepareDataset.py
Mozartuss/DEAP_EmotionRecognition_V2
39bd50f327d465114ee0f798ac7bcee13b457b17
[ "Apache-2.0" ]
null
null
null
LSTMModel/PrepareDataset.py
Mozartuss/DEAP_EmotionRecognition_V2
39bd50f327d465114ee0f798ac7bcee13b457b17
[ "Apache-2.0" ]
1
2022-02-23T09:52:11.000Z
2022-02-23T09:52:11.000Z
from pathlib import Path import numpy as np from sklearn.preprocessing import normalize, StandardScaler from tensorflow.keras.utils import to_categorical from Utils.Constants import FINAL_DATASET_PATH, FINAL_DATASET_PATH_PCA, FINAL_DATASET_PATH_MRMR, FINAL_DATASET_PATH_PSO, \ FINAL_DATASET_PATH_GWO, FINAL_DATASET...
34.491803
122
0.705798
5a37912dceacf56d07b3e8bacd322a8ad053c95b
411
py
Python
examples/download.py
alexcapstick/minder_utils
3bb9380b7796b5dd5b995ce1839ea6a94321021d
[ "MIT" ]
null
null
null
examples/download.py
alexcapstick/minder_utils
3bb9380b7796b5dd5b995ce1839ea6a94321021d
[ "MIT" ]
null
null
null
examples/download.py
alexcapstick/minder_utils
3bb9380b7796b5dd5b995ce1839ea6a94321021d
[ "MIT" ]
1
2022-03-16T11:10:43.000Z
2022-03-16T11:10:43.000Z
''' This script introduces how to download the data ''' import os os.chdir('..') from minder_utils.download import Downloader Downloader().export(since='2021-10-10', until='2021-10-12', reload=True, save_path='./data/activity/', categories=['raw_activity_pir']) Downloader().refresh(until='2021-1...
25.6875
82
0.659367
a43ec0a8d461b0643e27ed88ad4fab502bf081ad
68,124
py
Python
lib/lib/mle_classes.py
jkaessens/gwas-assoc
1053c94222701f108362e33c99155cfc148f4ca2
[ "MIT" ]
null
null
null
lib/lib/mle_classes.py
jkaessens/gwas-assoc
1053c94222701f108362e33c99155cfc148f4ca2
[ "MIT" ]
null
null
null
lib/lib/mle_classes.py
jkaessens/gwas-assoc
1053c94222701f108362e33c99155cfc148f4ca2
[ "MIT" ]
null
null
null
import os import os.path import sys import re import gzip import decimal ## -- several mlinfo and mldose files can be put into an object of Mlinfo -- # ## -- or Mldose -- # class Mlinfo: """ class Mlinfo implements tasks on Mlinfo files from MACH software ""...
35.685699
110
0.508529
c60bb420ee439965704054f35a930536ccc79dd5
1,752
py
Python
prs2/middleware.py
ropable/prs
0654ca7fce5a6639f5df67905dd2e5c09a1c1f17
[ "Apache-2.0" ]
1
2016-08-21T06:45:50.000Z
2016-08-21T06:45:50.000Z
prs2/middleware.py
dbca-wa/prs
0654ca7fce5a6639f5df67905dd2e5c09a1c1f17
[ "Apache-2.0" ]
12
2019-02-11T00:01:01.000Z
2022-02-01T02:07:49.000Z
prs2/middleware.py
ropable/prs
0654ca7fce5a6639f5df67905dd2e5c09a1c1f17
[ "Apache-2.0" ]
4
2018-08-09T06:56:43.000Z
2019-11-13T08:05:46.000Z
from django.conf import settings from django.http import HttpResponse, HttpResponseServerError import logging LOGGER = logging.getLogger("healthcheck") class HealthCheckMiddleware(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): if re...
30.736842
77
0.619863
30036277781490055c42f7ee2cf4328a736114ba
3,692
py
Python
test/functional/mining_getblocktemplate_longpoll.py
yvettep321/bitcoin
33707a2a8828c68e3c0586bdadea52c84873d386
[ "MIT" ]
7
2020-11-09T15:10:26.000Z
2022-03-04T21:55:39.000Z
test/functional/mining_getblocktemplate_longpoll.py
yvettep321/bitcoin
33707a2a8828c68e3c0586bdadea52c84873d386
[ "MIT" ]
2
2021-03-29T01:09:59.000Z
2021-07-02T04:34:25.000Z
test/functional/mining_getblocktemplate_longpoll.py
yvettep321/bitcoin
33707a2a8828c68e3c0586bdadea52c84873d386
[ "MIT" ]
2
2021-09-05T22:45:02.000Z
2021-09-08T16:16:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test longpolling with getblocktemplate.""" from decimal import Decimal import random import threading ...
44.481928
134
0.685536
b3c31a12c8c7dd11900921555205a2cb2b093ea7
405
py
Python
accounts/migrations/0002_customuser_phone_number.py
abdallah-alabed/DjangoX
f8d8f4d3f60699bf3b6fd29cca59a6644a591a42
[ "MIT" ]
null
null
null
accounts/migrations/0002_customuser_phone_number.py
abdallah-alabed/DjangoX
f8d8f4d3f60699bf3b6fd29cca59a6644a591a42
[ "MIT" ]
null
null
null
accounts/migrations/0002_customuser_phone_number.py
abdallah-alabed/DjangoX
f8d8f4d3f60699bf3b6fd29cca59a6644a591a42
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-08 12:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( model_name='customuser', name='phone_number', ...
21.315789
73
0.604938
69ab5c11be2ea7dbd3119a2d416c95f288b41681
2,203
py
Python
docs/conf.py
meakio/python-proc
0302fe62fa7990e4a8f8020fca83e7566a35e315
[ "MIT" ]
null
null
null
docs/conf.py
meakio/python-proc
0302fe62fa7990e4a8f8020fca83e7566a35e315
[ "MIT" ]
null
null
null
docs/conf.py
meakio/python-proc
0302fe62fa7990e4a8f8020fca83e7566a35e315
[ "MIT" ]
null
null
null
""" Documentation build configuration file for the `proc` package. """ # Author: Peter Odding <peter@peterodding.com> # Last Change: June 21, 2018 # URL: https://proc.readthedocs.io import os import sys # Add the 'proc' source distribution's root directory to the module search path. sys.path.insert(0, os.path.abspat...
29.373333
80
0.695869
ac7a36fd698d79fb6a541fd13c8007927aef9250
56
py
Python
src/ThaiPersonalCardExtract/ThaiGovernmentLottery/__init__.py
ggafiled/ThaiPersonalCardExtract
7747086ff4d28ad9ec04f8ca7d68ac6e6f393cd4
[ "Apache-2.0" ]
12
2021-08-11T08:48:48.000Z
2022-02-10T03:06:34.000Z
src/ThaiPersonalCardExtract/ThaiGovernmentLottery/__init__.py
ggafiled/ThaiPersonalCardExtract
7747086ff4d28ad9ec04f8ca7d68ac6e6f393cd4
[ "Apache-2.0" ]
2
2021-08-21T16:14:39.000Z
2022-02-17T15:31:07.000Z
src/ThaiPersonalCardExtract/ThaiGovernmentLottery/__init__.py
ggafiled/ThaiPersonalCardExtract
7747086ff4d28ad9ec04f8ca7d68ac6e6f393cd4
[ "Apache-2.0" ]
7
2021-08-11T09:32:02.000Z
2022-03-26T13:56:46.000Z
from .ThaiGovernmentLottery import ThaiGovernmentLottery
56
56
0.928571
a64f3b9bb298a2099c68d2a32b4f6ee7111d6548
795
bzl
Python
google/cloud/bigtable/examples/bigtable_examples_unit_tests.bzl
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
299
2019-01-31T12:17:56.000Z
2022-03-30T15:46:15.000Z
google/cloud/bigtable/examples/bigtable_examples_unit_tests.bzl
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
6,560
2019-01-29T03:15:15.000Z
2022-03-31T23:58:48.000Z
google/cloud/bigtable/examples/bigtable_examples_unit_tests.bzl
joezqren/google-cloud-cpp
325d312b0a21569f3c57515aec7d91f3540d3b48
[ "Apache-2.0" ]
253
2019-02-07T01:18:13.000Z
2022-03-30T17:21:10.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.136364
79
0.755975
f19feea1875d1b945c8c45fbd873163cd146cbda
16,187
py
Python
mne/tests/test_bem.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
1
2021-03-13T04:41:45.000Z
2021-03-13T04:41:45.000Z
mne/tests/test_bem.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
28
2020-05-07T00:58:34.000Z
2020-08-29T23:02:17.000Z
mne/tests/test_bem.py
hichamjanati/mne-python
b8f5e5ce0da8acfeb7298c8eb1d26a75d5526eac
[ "BSD-3-Clause" ]
1
2020-07-29T15:48:58.000Z
2020-07-29T15:48:58.000Z
# Authors: Marijn van Vliet <w.m.vanvliet@gmail.com> # # License: BSD 3 clause from copy import deepcopy from os import makedirs import os.path as op import re from shutil import copy import numpy as np import pytest from numpy.testing import assert_equal, assert_allclose from mne import (make_bem_model, read_bem_su...
41.398977
79
0.641317
7606af1b9446ca05e1481ccb188e83c054d738db
111,783
py
Python
statsmodels/regression/linear_model.py
anntzer/statsmodels
1ccd5cdba4f9949c5c27ac4d44718893e17d7184
[ "BSD-3-Clause" ]
2
2020-04-13T15:45:38.000Z
2020-06-01T14:41:04.000Z
statsmodels/regression/linear_model.py
giuliobeseghi/statsmodels
1ccd5cdba4f9949c5c27ac4d44718893e17d7184
[ "BSD-3-Clause" ]
null
null
null
statsmodels/regression/linear_model.py
giuliobeseghi/statsmodels
1ccd5cdba4f9949c5c27ac4d44718893e17d7184
[ "BSD-3-Clause" ]
1
2020-04-13T17:21:27.000Z
2020-04-13T17:21:27.000Z
# TODO: Determine which tests are valid for GLSAR, and under what conditions # TODO: Fix issue with constant and GLS # TODO: GLS: add options Iterative GLS, for iterative fgls if sigma is None # TODO: GLS: default if sigma is none should be two-step GLS # TODO: Check nesting when performing model based tests, lr, wald,...
36.566241
132
0.578961
bf2e86812c9255316519b6a977da47f13ec5dd4c
2,103
py
Python
Components.py
oransimhony/pygame_components
b4d0f2fa1d0de3d37d45a8cb73e29559c2f2149b
[ "MIT" ]
null
null
null
Components.py
oransimhony/pygame_components
b4d0f2fa1d0de3d37d45a8cb73e29559c2f2149b
[ "MIT" ]
null
null
null
Components.py
oransimhony/pygame_components
b4d0f2fa1d0de3d37d45a8cb73e29559c2f2149b
[ "MIT" ]
null
null
null
import pygame class Button: def __init__(self, screen, x, y, w, h, color, hover_color=None, label="", label_color=(0, 0, 0), on_click=None): self.screen = screen self.x = x self.y = y self.w = w self.h = h self.color = color self.hover_color = hover_color if ...
32.353846
116
0.551593
c87d2ee6ae703d50c916dbedc7fcc03936880f71
11,839
py
Python
tensorflow/python/saved_model/model_utils/export_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/saved_model/model_utils/export_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/saved_model/model_utils/export_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2017 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...
40.965398
80
0.710195
6a4bf349ce18d0ff1a0aeec2f724f4290e2da17d
3,822
py
Python
Ru_splitter.py
mithfin/Sentence-Splitter-for-Russian
e4abe23a124f9f5f77490a3328be3632e52b2c0a
[ "Apache-2.0" ]
9
2017-03-24T22:30:40.000Z
2021-08-19T23:16:57.000Z
Ru_splitter.py
mithfin/Sentence-Splitter-for-Russian
e4abe23a124f9f5f77490a3328be3632e52b2c0a
[ "Apache-2.0" ]
null
null
null
Ru_splitter.py
mithfin/Sentence-Splitter-for-Russian
e4abe23a124f9f5f77490a3328be3632e52b2c0a
[ "Apache-2.0" ]
2
2018-10-07T03:47:28.000Z
2019-04-16T17:03:40.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import collections import re import numpy as np import pandas as pd from keras.models import model_from_json class Splitter: def __init__(self): self.model = model_from_json(open('./Models/keras_model.json').read()) self.model.load_we...
35.719626
119
0.568289
2acb63fc123870bc66462797178e583dc18fe8d5
176
py
Python
tests/conftest.py
kevinheavey/borsh-py
e49dee71716ec217e8c9966aaa621c61669f7c15
[ "MIT" ]
11
2021-10-04T19:47:22.000Z
2022-03-27T05:27:17.000Z
tests/conftest.py
kevinheavey/borsh-py
e49dee71716ec217e8c9966aaa621c61669f7c15
[ "MIT" ]
8
2021-09-30T13:57:43.000Z
2022-03-14T11:20:53.000Z
tests/conftest.py
kevinheavey/borsh-py
e49dee71716ec217e8c9966aaa621c61669f7c15
[ "MIT" ]
4
2021-11-13T10:46:37.000Z
2022-03-27T05:27:20.000Z
import logging def pytest_configure(config): """Flake8 is very verbose by default. Silence it.""" # noqa: DAR101 logging.getLogger("flake8").setLevel(logging.ERROR)
25.142857
72
0.721591
0a4a8a621ed1fb8a47f6046407125abf84c55ec6
8,972
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/_default_security_rules_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/_default_security_rules_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/_default_security_rules_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.497297
236
0.672314
1d19ba241cc0de3c1e19d0d1ea860cd18bb43bb1
645
py
Python
rentals/migrations/0003_auto_20180308_1706.py
dpakach/RentalService
2fe2c899b7f149ed3f0fc475100beaa0bc76619e
[ "MIT" ]
null
null
null
rentals/migrations/0003_auto_20180308_1706.py
dpakach/RentalService
2fe2c899b7f149ed3f0fc475100beaa0bc76619e
[ "MIT" ]
1
2018-11-06T03:17:14.000Z
2018-11-06T03:17:14.000Z
rentals/migrations/0003_auto_20180308_1706.py
dpakach/RentalService
2fe2c899b7f149ed3f0fc475100beaa0bc76619e
[ "MIT" ]
1
2020-02-04T10:44:11.000Z
2020-02-04T10:44:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-03-08 17:06 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("rentals", "0002_auto_20180306_0823")] operations = [ migra...
25.8
64
0.590698
d06ee9b8d2dc8019e6201c629cf80bda7956b65a
11,539
py
Python
ehb_datasources/tests/unit_tests/test_nautilus_driver.py
chop-dbhi/ehb-datasources
ff26dafa0a0919abbe53277e85e019c6df3f8f88
[ "BSD-2-Clause" ]
2
2019-09-13T20:27:39.000Z
2020-03-05T02:24:47.000Z
ehb_datasources/tests/unit_tests/test_nautilus_driver.py
chop-dbhi/ehb-datasources
ff26dafa0a0919abbe53277e85e019c6df3f8f88
[ "BSD-2-Clause" ]
46
2015-09-25T14:34:34.000Z
2020-10-05T22:04:36.000Z
ehb_datasources/tests/unit_tests/test_nautilus_driver.py
chop-dbhi/ehb-datasources
ff26dafa0a0919abbe53277e85e019c6df3f8f88
[ "BSD-2-Clause" ]
5
2016-04-25T15:01:39.000Z
2016-08-29T20:40:31.000Z
import pytest import json from ehb_datasources.drivers.nautilus.driver import ehbDriver from ehb_datasources.drivers.exceptions import RecordCreationError, \ IgnoreEhbExceptions @pytest.fixture() def driver(): return ehbDriver( url='http://example.com/api/', user='foo', password='bar...
41.65704
320
0.685675
a8da001e887065069b4a1289c2a5f95d84b3ea09
4,110
py
Python
ssd/nn/multibox_loss.py
Guillem96/ssd-pytorch
ffbb64d60c6e72c8126c2943f46b0e17298c8f81
[ "MIT" ]
2
2020-10-24T09:57:42.000Z
2021-11-11T01:20:08.000Z
ssd/nn/multibox_loss.py
Guillem96/ssd-pytorch
ffbb64d60c6e72c8126c2943f46b0e17298c8f81
[ "MIT" ]
null
null
null
ssd/nn/multibox_loss.py
Guillem96/ssd-pytorch
ffbb64d60c6e72c8126c2943f46b0e17298c8f81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F from ..boxes import match class MultiBoxLoss(nn.Module): """SSD Weighted Loss Function Compute Targets: 1) Produce Confidence Target Indices by matching ground truth boxes with (default) 'priorboxes'...
38.773585
84
0.589294
9eb8332d352feed0c89bfddcb910b39224af99d4
2,159
py
Python
augraphy/augmentations/lowinkline.py
kwcckw/augraphy
b0e8cc4192eaf827e36fb67ae1b7b9c762f9578b
[ "MIT" ]
36
2021-06-25T02:17:57.000Z
2022-03-29T02:36:09.000Z
augraphy/augmentations/lowinkline.py
shaheryar1/augraphy
5dd52fdd3b497312606c6d3afa4003f94a8cbcc4
[ "MIT" ]
136
2021-06-25T07:39:46.000Z
2022-03-31T13:00:30.000Z
augraphy/augmentations/lowinkline.py
shaheryar1/augraphy
5dd52fdd3b497312606c6d3afa4003f94a8cbcc4
[ "MIT" ]
24
2021-06-27T21:15:11.000Z
2022-03-08T03:28:17.000Z
################################################################################ # File: lowinkline.py # import random import numpy as np from augraphy.base.augmentation import Augmentation class LowInkLine(Augmentation): """Generates streaking behavior common to printers running out of ink. :param use_con...
33.215385
90
0.628069
f2c1132b58e0998db2f0def99459f75d96b04916
2,267
py
Python
mindarmour/defenses/natural_adversarial_defense.py
zengchen1024/mindarmour
eed59453cf048da92fe15f57dbe3ca7de8b7adcb
[ "Apache-2.0" ]
null
null
null
mindarmour/defenses/natural_adversarial_defense.py
zengchen1024/mindarmour
eed59453cf048da92fe15f57dbe3ca7de8b7adcb
[ "Apache-2.0" ]
null
null
null
mindarmour/defenses/natural_adversarial_defense.py
zengchen1024/mindarmour
eed59453cf048da92fe15f57dbe3ca7de8b7adcb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.77193
79
0.651081
226ddb4a0bf7913211f1cc9a09ca633a11848f7d
9,119
py
Python
docs/conf.py
Azima1985/recommender_package
84234b1394d797faa4e21090f99e58e639b27ebd
[ "MIT" ]
null
null
null
docs/conf.py
Azima1985/recommender_package
84234b1394d797faa4e21090f99e58e639b27ebd
[ "MIT" ]
null
null
null
docs/conf.py
Azima1985/recommender_package
84234b1394d797faa4e21090f99e58e639b27ebd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import os impo...
33.774074
85
0.704244