hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
70f9780dd1066df809bf256c632987a9ff361e1c
1,893
py
Python
lecarb/estimator/estimator.py
anshumandutt/AreCELearnedYet
e2286c3621dea8e4961057b6197c1e14e75aea5a
[ "MIT" ]
34
2020-12-14T01:21:29.000Z
2022-03-29T04:52:46.000Z
lecarb/estimator/estimator.py
anshumandutt/AreCELearnedYet
e2286c3621dea8e4961057b6197c1e14e75aea5a
[ "MIT" ]
5
2020-12-28T16:06:22.000Z
2022-01-19T18:28:53.000Z
lecarb/estimator/estimator.py
anshumandutt/AreCELearnedYet
e2286c3621dea8e4961057b6197c1e14e75aea5a
[ "MIT" ]
12
2021-02-08T17:50:13.000Z
2022-03-28T11:09:06.000Z
import time import logging import numpy as np from typing import Tuple, Any from ..workload.workload import Query, query_2_triple from ..dataset.dataset import Table L = logging.getLogger(__name__) class Estimator(object): """Base class for a cardinality estimator.""" def __init__(self, table: Table, **kwargs...
31.032787
94
0.605917
7e1c37ec37782385c3f5577272f4ed283a511c87
8,756
py
Python
pypy/module/cpyext/memoryobject.py
SeraphRoy/PyPy-Functional
e825dce7f7c484fa666566974a93ed5d59fb73be
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/cpyext/memoryobject.py
SeraphRoy/PyPy-Functional
e825dce7f7c484fa666566974a93ed5d59fb73be
[ "Apache-2.0", "OpenSSL" ]
null
null
null
pypy/module/cpyext/memoryobject.py
SeraphRoy/PyPy-Functional
e825dce7f7c484fa666566974a93ed5d59fb73be
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from rpython.rlib.objectmodel import keepalive_until_here from pypy.interpreter.error import oefmt from pypy.module.cpyext.api import ( cpython_api, Py_buffer, CANNOT_FAIL, Py_MAX_FMT, Py_MAX_NDIMS, build_type_checkers, Py_ssize_tP, PyObjectFields, cpython_struct, bootstrap_function, Py_bufferP, slot_functi...
38.069565
82
0.668342
bc1bc53909301bdbb2f581959b4822dcd2eea90e
10,170
py
Python
library/search_indexes.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
library/search_indexes.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
library/search_indexes.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
from haystack import indexes from library.models import Item, CaseBrief, SynthesisItem, Synthesis, CollectionTag name_boost = 1.25 class LibraryCommonIndexPropertiesMixin(object): belongs_to = indexes.CharField() # class ItemIndex(indexes.SearchIndex): # this would disable indexing for this index class. class I...
39.571984
126
0.726549
3d55fba3865da043632ac5893d58b4b95007fb77
1,789
py
Python
asyncio_pool/mx_asyncgen.py
alvistack/gistart-asyncio-pool
1da1080594a51e59a4c0d9d58879513e6583fdd2
[ "MIT" ]
79
2018-07-22T18:41:29.000Z
2022-03-31T17:48:30.000Z
asyncio_pool/mx_asyncgen.py
alvistack/gistart-asyncio-pool
1da1080594a51e59a4c0d9d58879513e6583fdd2
[ "MIT" ]
5
2019-12-08T01:21:51.000Z
2020-08-05T10:34:48.000Z
asyncio_pool/mx_asyncgen.py
alvistack/gistart-asyncio-pool
1da1080594a51e59a4c0d9d58879513e6583fdd2
[ "MIT" ]
10
2019-02-05T20:32:55.000Z
2021-11-11T12:29:50.000Z
'''Mixin for BaseAioPool with async generator features, python3.6+''' import asyncio as aio from .results import getres async def iterwait(futures, *, flat=True, get_result=getres.flat, timeout=None, yield_when=aio.ALL_COMPLETED, loop=None): '''Wraps `asyncio.wait` into asynchronous generator, accessible...
40.659091
80
0.65232
ef40072b93837edd3f0cc3036b0617daf18c9469
124
py
Python
tests/test_inductivestep.py
dmgolembiowski/edbpool
665eefd31a12e6c469e2eef9e588e169e475ec9e
[ "Apache-2.0" ]
1
2020-05-08T05:57:50.000Z
2020-05-08T05:57:50.000Z
tests/test_inductivestep.py
dmgolembiowski/edbpool-server
665eefd31a12e6c469e2eef9e588e169e475ec9e
[ "Apache-2.0" ]
1
2020-05-04T19:54:00.000Z
2020-05-05T06:57:04.000Z
tests/test_inductivestep.py
dmgolembiowski/edbpool
665eefd31a12e6c469e2eef9e588e169e475ec9e
[ "Apache-2.0" ]
1
2020-05-08T05:58:11.000Z
2020-05-08T05:58:11.000Z
from unittest import TestCase class InductiveStepTestCase(TestCase): def test(self): self.assertEqual(0+1, 1)
17.714286
38
0.717742
cb6984d9f3004230bb8313d19f279620d603f172
6,624
py
Python
justap_server_sdk_python/models/v1_channel.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_channel.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_channel.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Justap API 欢迎阅读 Justap Api 文档 Justap 是为移动端应用和PC端应用打造的下一代聚合支付SAAS服务平台,通过一个 SDK 即可快速的支持各种形式的应用,并且一次接口完成多个不同支付渠道的接入。平台除了支持服务商子商户模式,同时还对商家自有商户(即自己前往微信、支付宝等机构开户)提供了完整的支持。 感谢您的支持,我们将不断探索,为您提供更优质的服务!如需技术支持可前往商户中心提交工单,支持工程师会尽快与您取得联系! # 文档说明 采用 REST 风格设计。所有接口请求地址都是可预期的以及面向资源的。使用规范的 HTTP 响应代码来表示请...
57.103448
3,404
0.683273
dbd24b1e3d7696b016c49aa64680a5efdfcfcef4
5,099
bzl
Python
dependency_support/repo.bzl
cbalint13/xls
7033a1482dc6f536d15d46d3954187c9845bba2a
[ "Apache-2.0" ]
null
null
null
dependency_support/repo.bzl
cbalint13/xls
7033a1482dc6f536d15d46d3954187c9845bba2a
[ "Apache-2.0" ]
null
null
null
dependency_support/repo.bzl
cbalint13/xls
7033a1482dc6f536d15d46d3954187c9845bba2a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The XLS Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
34.924658
85
0.635811
dd025c7d6df2e07e28458d483bdf902a0623b5c7
2,352
py
Python
resamble.py
Asseel-Naji/stutter_AI
9992eae8b39e7f73f35c51069e2a55f1080f42d4
[ "MIT" ]
null
null
null
resamble.py
Asseel-Naji/stutter_AI
9992eae8b39e7f73f35c51069e2a55f1080f42d4
[ "MIT" ]
null
null
null
resamble.py
Asseel-Naji/stutter_AI
9992eae8b39e7f73f35c51069e2a55f1080f42d4
[ "MIT" ]
null
null
null
#I officially GIVE UP ON THIS FUNCTION. # In order to remove silence I have to split into mono, then resample and then clean # and EVEN AFTER I managed to do all that, the script I use to remove silence doesn't like # libosa resambling, however when I manually resamble with audacity it works just fine. # THIS MAKES NO ...
36.75
190
0.650935
917b7d755599e783c340a33573e71777747e148a
58
py
Python
test/unit/test_topologies/test_abc/__init__.py
MichalKononenko/FoundationsOfMechanics
d1ca2cc961a98be4761b3938f3a7f58d82daed62
[ "MIT" ]
null
null
null
test/unit/test_topologies/test_abc/__init__.py
MichalKononenko/FoundationsOfMechanics
d1ca2cc961a98be4761b3938f3a7f58d82daed62
[ "MIT" ]
null
null
null
test/unit/test_topologies/test_abc/__init__.py
MichalKononenko/FoundationsOfMechanics
d1ca2cc961a98be4761b3938f3a7f58d82daed62
[ "MIT" ]
null
null
null
""" Contains unit tests for :mod:`fom.topologies.abc` """
14.5
49
0.672414
1d231744a682d25ba943d36e8380290c3d7f5a39
2,898
py
Python
tests/test_train_classifier.py
LesterFreamon/disaster_response_pipeline
388cdb2fe74da8dc8c4cea14298ef3fd36348dc6
[ "MIT" ]
null
null
null
tests/test_train_classifier.py
LesterFreamon/disaster_response_pipeline
388cdb2fe74da8dc8c4cea14298ef3fd36348dc6
[ "MIT" ]
null
null
null
tests/test_train_classifier.py
LesterFreamon/disaster_response_pipeline
388cdb2fe74da8dc8c4cea14298ef3fd36348dc6
[ "MIT" ]
null
null
null
import unittest import pandas as pd from ..src.train_classifier import ( _split_to_feature_and_targets, evaluate_model, SpecialCharExtractor, tokenize ) from .helpers import sort_and_assert_frame_equal class TestTrainClassifier(unittest.TestCase): def test_split_to_feature_and_targets(self): ...
29.876289
97
0.507246
fc36e7b0fb70defe5246149030c1149bd3ef034b
5,053
py
Python
tests/functional/test_hands.py
gkuznetsov/veles.znicz
73147839f80e1eec3a627be8cc2a11211d74a801
[ "Apache-2.0" ]
28
2015-07-20T12:02:02.000Z
2020-10-08T02:50:28.000Z
tests/functional/test_hands.py
gkuznetsov/veles.znicz
73147839f80e1eec3a627be8cc2a11211d74a801
[ "Apache-2.0" ]
39
2015-08-11T06:56:51.000Z
2016-05-11T15:02:05.000Z
tests/functional/test_hands.py
gkuznetsov/veles.znicz
73147839f80e1eec3a627be8cc2a11211d74a801
[ "Apache-2.0" ]
27
2015-07-20T09:45:34.000Z
2021-04-15T01:03:54.000Z
#!/usr/bin/env python3 # -*-coding: utf-8 -*- """ .. invisible: _ _ _____ _ _____ _____ | | | | ___| | | ___/ ___| | | | | |__ | | | |__ \ `--. | | | | __|| | | __| `--. \ \ \_/ / |___| |___| |___/\__/ / \___/\____/\_____|____/\____/ Created on April 2, 2014 ████████████████...
40.103175
79
0.605779
ebac8fbe63ea1d58d1903fca95598c17e219bab4
2,146
py
Python
temperature_processing_lt4.py
mknowlton15/genesis
80b1baa621d7dbfea84a3b128b565dd92918d55f
[ "MIT" ]
null
null
null
temperature_processing_lt4.py
mknowlton15/genesis
80b1baa621d7dbfea84a3b128b565dd92918d55f
[ "MIT" ]
null
null
null
temperature_processing_lt4.py
mknowlton15/genesis
80b1baa621d7dbfea84a3b128b565dd92918d55f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #Steven Guinn #02/24/2016 #University of Maryland Center for Environmental Science #Appalachian Laboratory http://www.al.umces.edu/ #301 689 7146 #301 Braddock Rd Frostburg MD 215325 import sys,os # Import arcpy module import arcpy def cleanMakeDir(out_dir,mode=0777)...
27.87013
110
0.678938
fec3b38203c93a020f2f12f565eb5add9c2c0c1f
296
py
Python
benchmark/python_fastapi/main.py
SABER-labs/Drogon-torch-serve
eb61472abe32f769daa870278685f0342a00b292
[ "MIT" ]
15
2022-01-15T03:07:12.000Z
2022-02-18T15:30:06.000Z
benchmark/python_fastapi/main.py
SABER-labs/Drogon-torch-serve
eb61472abe32f769daa870278685f0342a00b292
[ "MIT" ]
1
2022-01-27T11:13:49.000Z
2022-01-28T05:42:24.000Z
benchmark/python_fastapi/main.py
SABER-labs/Drogon-torch-serve
eb61472abe32f769daa870278685f0342a00b292
[ "MIT" ]
2
2022-01-17T02:55:34.000Z
2022-01-19T05:46:30.000Z
import utils from fastapi import FastAPI, File, UploadFile from fastapi.staticfiles import StaticFiles app = FastAPI() @app.get("/") def home(): return 'OK' @app.post("/classify") async def classify(image: UploadFile = File(...)): return utils.get_result(image_file=image, is_api=True)
22.769231
58
0.726351
72a26975b80b67478f0d9a29d9a4b42db8d81674
2,008
py
Python
commands/avatar.py
brunohpaiva/fire-bot
de9d67043eef1023d5bd40f3aaa249111fcd253f
[ "MIT" ]
1
2021-09-24T22:48:33.000Z
2021-09-24T22:48:33.000Z
commands/avatar.py
brunohpaiva/fire-bot
de9d67043eef1023d5bd40f3aaa249111fcd253f
[ "MIT" ]
1
2022-01-13T04:05:04.000Z
2022-01-13T04:05:04.000Z
commands/avatar.py
brunohpaiva/fire-bot
de9d67043eef1023d5bd40f3aaa249111fcd253f
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 GamingGeek 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, dis...
40.16
133
0.725598
52dd7932165b262aa084081afd98829e13ec6c91
1,245
py
Python
tests/flows/test_mixedsource.py
mfkiwl/siliconcompiler
49a16d9a07c526821afe1ce2f2d77394e439ca05
[ "Apache-2.0" ]
424
2021-12-04T15:45:12.000Z
2022-03-31T20:27:55.000Z
tests/flows/test_mixedsource.py
mfkiwl/siliconcompiler
49a16d9a07c526821afe1ce2f2d77394e439ca05
[ "Apache-2.0" ]
105
2021-12-03T21:25:29.000Z
2022-03-31T22:36:59.000Z
tests/flows/test_mixedsource.py
mfkiwl/siliconcompiler
49a16d9a07c526821afe1ce2f2d77394e439ca05
[ "Apache-2.0" ]
38
2021-12-04T21:26:20.000Z
2022-03-21T02:39:29.000Z
import os import pytest import siliconcompiler ################################## @pytest.mark.skip(reason="Mixed-source functionality is still a work-in-progress.") @pytest.mark.eda @pytest.mark.quick def test_mixedsrc_local_py(scroot): '''Basic Python API test: build the mixed-source example using only Python co...
27.666667
84
0.627309
ecbf2633b378cf15838b4a6a069c0cce69d0b356
76,207
py
Python
airflow/models/dag.py
ternarydata/airflow
1e3cdddcd87be3c0f11b43efea11cdbddaff4470
[ "Apache-2.0" ]
null
null
null
airflow/models/dag.py
ternarydata/airflow
1e3cdddcd87be3c0f11b43efea11cdbddaff4470
[ "Apache-2.0" ]
null
null
null
airflow/models/dag.py
ternarydata/airflow
1e3cdddcd87be3c0f11b43efea11cdbddaff4470
[ "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...
39.180977
109
0.607438
49101d72fc546fa093f4a440de795801c4a41279
6,168
py
Python
school/school_spider.py
xuludev/Work
ac7418cb907df23c9a4613928c07b4d89b63aff6
[ "MIT" ]
null
null
null
school/school_spider.py
xuludev/Work
ac7418cb907df23c9a4613928c07b4d89b63aff6
[ "MIT" ]
null
null
null
school/school_spider.py
xuludev/Work
ac7418cb907df23c9a4613928c07b4d89b63aff6
[ "MIT" ]
null
null
null
""" a web spider for http://xuexiao.pinwaiyi.com/hy/ """ import logging.handlers import urllib.parse import pandas as pd import pymysql.cursors import requests from bs4 import BeautifulSoup LOG_FILE = 'baikespider.log' handler = logging.handlers.RotatingFileHandler(LOG_FILE, maxBytes=1024 * 1024, backupCount=5) fmt ...
37.609756
139
0.554475
abb08b442f09f7bf4cfb96474e67bf0b245f9f5b
3,236
py
Python
main.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
main.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
main.py
mkrum/das
76559ffa3055d718590e9c457675cdf9a885f656
[ "MIT" ]
null
null
null
import pickle as pkl from dataclasses import dataclass import torch import numpy as np from torch.utils.data import Dataset from torch.utils.data import DataLoader import torch.optim as optim import torch.nn.functional as F from data import make_binary_datasets from mllg import LogWriter, TestInfo, TrainInfo, Validat...
28.637168
85
0.615266
877ecf1a02d45559b8d28c871dc33786eb727bda
1,126
py
Python
src/main/python/tests/test_ts.py
marregui/mygupsql
2adca0da4bd95932fa08e2b122aa4f6f6713ad0c
[ "Apache-2.0" ]
null
null
null
src/main/python/tests/test_ts.py
marregui/mygupsql
2adca0da4bd95932fa08e2b122aa4f6f6713ad0c
[ "Apache-2.0" ]
1
2020-12-29T18:03:45.000Z
2020-12-29T18:03:45.000Z
src/main/python/tests/test_ts.py
marregui/mygupsql
2adca0da4bd95932fa08e2b122aa4f6f6713ad0c
[ "Apache-2.0" ]
null
null
null
# Licensed to Miguel Arregui ("marregui") under one or more contributor # license agreements. See the LICENSE file distributed with this work # for additional information regarding copyright ownership. You may # obtain a copy at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.171429
87
0.737123
c25988b9e6d8bb9069ee293a3fe1a1caa7bf3fe1
138
py
Python
zk/datadog_checks/zk/__about__.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
1
2021-01-28T01:45:37.000Z
2021-01-28T01:45:37.000Z
zk/datadog_checks/zk/__about__.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
3
2021-01-27T04:56:40.000Z
2021-02-26T06:29:22.000Z
zk/datadog_checks/zk/__about__.py
flowcommerce/integrations-core
c562b0d423ec1a5dd4073b703d6a8d3a9ab23c72
[ "BSD-3-Clause" ]
1
2021-04-07T16:58:27.000Z
2021-04-07T16:58:27.000Z
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '4.0.0'
23
59
0.717391
12f60063c35ca7aa7ad55da1ab46b66839f1fd3b
335
py
Python
reboot.py
klaslofstedt/alfred_home_assistent
d7f79786336f53a2867037de3b64d6fe375062a0
[ "Apache-2.0" ]
1
2016-02-14T23:53:37.000Z
2016-02-14T23:53:37.000Z
reboot.py
klaslofstedt/alfred_home_assistent_webapp
d7f79786336f53a2867037de3b64d6fe375062a0
[ "Apache-2.0" ]
null
null
null
reboot.py
klaslofstedt/alfred_home_assistent_webapp
d7f79786336f53a2867037de3b64d6fe375062a0
[ "Apache-2.0" ]
null
null
null
import datetime import time import os reboot_time = datetime.datetime.now().time().strftime("%H:%M:%S") while(reboot_time != "06:00:00"): reboot_time = datetime.datetime.now().time().strftime("%H:%M:%S") print reboot_time time.sleep(0.5) print "rebooting" os.system("/usr/bin/sudo /sbin/shutdown -r now") #os.system(...
25.769231
66
0.707463
01033ad82d44cee3b4e64f780e182ed97103db13
7,214
py
Python
sa_rbac_aggregator.py
nezdali/k8s-api
f75b6ff648fccd8fb4ef8d0aa1b9c09e9c4b22cd
[ "MIT" ]
null
null
null
sa_rbac_aggregator.py
nezdali/k8s-api
f75b6ff648fccd8fb4ef8d0aa1b9c09e9c4b22cd
[ "MIT" ]
null
null
null
sa_rbac_aggregator.py
nezdali/k8s-api
f75b6ff648fccd8fb4ef8d0aa1b9c09e9c4b22cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Scrape ClusterRole/Binding, ServiceAccount data and aggregate it per Pod """ import logging from kubernetes import client, config from kubernetes.client.rest import ApiException class GetMetadata: """Get metadata via k8s api class""" def __init__(self): #config.load_inclus...
44.257669
156
0.626421
4a8d3bf8fbd403fd8ac1e39184a7e0aec0ec0f5a
7,180
py
Python
openGaussBase/testcase/SQL/DDL/gin_index/Opengauss_Function_DDL_Gin_Index_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DDL/gin_index/Opengauss_Function_DDL_Gin_Index_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/DDL/gin_index/Opengauss_Function_DDL_Gin_Index_Case0037.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
47.236842
323
0.605292
308d47621e1139226234acd8c7a722408efbbe86
753
py
Python
new/tidebilling/tidebilling/urls.py
ashraful88/tide-billing
cd11d273889c39bbb4768060fc61e9dfef1972f9
[ "MIT" ]
1
2020-07-27T17:47:26.000Z
2020-07-27T17:47:26.000Z
new/tidebilling/tidebilling/urls.py
ashraful88/tide-billing
cd11d273889c39bbb4768060fc61e9dfef1972f9
[ "MIT" ]
4
2021-06-04T22:32:50.000Z
2022-03-12T00:17:15.000Z
new/tidebilling/tidebilling/urls.py
ashraful88/tide-billing
cd11d273889c39bbb4768060fc61e9dfef1972f9
[ "MIT" ]
1
2020-03-16T22:10:06.000Z
2020-03-16T22:10:06.000Z
"""tidebilling URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
34.227273
77
0.710491
85e2bd96f56b68de80e799edc3797a14c41282a3
2,172
py
Python
tuprolog/solve/flags/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-08-07T06:29:28.000Z
2021-08-07T06:29:28.000Z
tuprolog/solve/flags/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
14
2021-09-16T13:25:12.000Z
2022-01-03T10:12:22.000Z
tuprolog/solve/flags/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-12-22T00:25:32.000Z
2021-12-22T00:25:32.000Z
from tuprolog import logger # noinspection PyUnresolvedReferences import jpype.imports # noinspection PyUnresolvedReferences import it.unibo.tuprolog.solve.flags as _flags from tuprolog.core import Term from tuprolog.jvmutils import kpair, jmap, jarray, Pair from typing import Iterable, Union, Mapping DoubleQuotes = ...
28.207792
100
0.708103
de19f3beaa3567f4fcd26eeb01ae84659a72c7a4
10,676
py
Python
NEST-14.0-FPGA/examples/neuronview/neuronview.py
OpenHEC/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
45
2019-12-09T06:45:53.000Z
2022-01-29T12:16:41.000Z
NEST-14.0-FPGA/examples/neuronview/neuronview.py
zlchai/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
2
2020-05-23T05:34:21.000Z
2021-09-08T02:33:46.000Z
NEST-14.0-FPGA/examples/neuronview/neuronview.py
OpenHEC/SNN-simulator-on-PYNQcluster
14f86a76edf4e8763b58f84960876e95d4efc43a
[ "MIT" ]
10
2019-12-09T06:45:59.000Z
2021-03-25T09:32:56.000Z
# -*- coding: utf-8 -*- # # neuronview.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or ...
32.351515
77
0.610809
adff8ec59fd16afc2173c12cf3cb24e315854461
52,965
py
Python
cogs/utility.py
drumman22/modmail
a7126674aaa23d01846849b7407a98daa64dc85a
[ "MIT" ]
1
2019-05-22T23:23:19.000Z
2019-05-22T23:23:19.000Z
cogs/utility.py
AliUltimate/modmail
dcd5a583b142dc629b414f287611c04c81beca2f
[ "MIT" ]
null
null
null
cogs/utility.py
AliUltimate/modmail
dcd5a583b142dc629b414f287611c04c81beca2f
[ "MIT" ]
null
null
null
import inspect import logging import os import traceback from contextlib import redirect_stdout from datetime import datetime from difflib import get_close_matches from io import StringIO from typing import Union from types import SimpleNamespace as param from json import JSONDecodeError from textwrap import indent fr...
37.886266
109
0.554479
b32084de90e11d15b938eceb3d9bc7d32a916e60
4,331
py
Python
src/robot/utils/ordereddict.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
7
2015-02-25T10:55:02.000Z
2015-11-04T03:20:05.000Z
src/robot/utils/ordereddict.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
12
2015-02-24T17:00:06.000Z
2015-07-31T08:32:07.000Z
src/robot/utils/ordereddict.py
userzimmermann/robotframework
7aa16338ce2120cb082605cf548c0794956ec901
[ "Apache-2.0" ]
2
2015-12-15T11:00:35.000Z
2018-02-24T18:11:24.000Z
# Copyright (c) 2009 Raymond Hettinger # # 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,...
31.384058
79
0.596398
cef1baa7fc3017b609649a7233b32714d3eff769
2,246
py
Python
src/envee/virtual_environments.py
Peilonrayz/envee
66f5b6b1ff7f5966be794e1e3878418c560c1f65
[ "MIT" ]
null
null
null
src/envee/virtual_environments.py
Peilonrayz/envee
66f5b6b1ff7f5966be794e1e3878418c560c1f65
[ "MIT" ]
null
null
null
src/envee/virtual_environments.py
Peilonrayz/envee
66f5b6b1ff7f5966be794e1e3878418c560c1f65
[ "MIT" ]
null
null
null
import collections import functools import io import logging import os.path import pathlib import shutil import subprocess import sys import tempfile import textwrap from typing import Dict, Optional, Type, Union import teetime from . import core, package_managers __all__ = [ "VirtualEnvironment", "VirtualEn...
24.413043
84
0.596171
3fb79c42b5ad107658366517b7a85c0640545cf2
12,126
py
Python
attention_decoder.py
AngledLuffa/pointer-generator
7929237250aecffbee8a02c82c0cb9b0b9508f63
[ "Apache-2.0" ]
null
null
null
attention_decoder.py
AngledLuffa/pointer-generator
7929237250aecffbee8a02c82c0cb9b0b9508f63
[ "Apache-2.0" ]
null
null
null
attention_decoder.py
AngledLuffa/pointer-generator
7929237250aecffbee8a02c82c0cb9b0b9508f63
[ "Apache-2.0" ]
1
2021-04-26T18:18:48.000Z
2021-04-26T18:18:48.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # Modifications Copyright 2017 Abigail See # # 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...
52.951965
586
0.708065
e054daade03b94300ff2ac909db8dae36ef2162e
1,912
py
Python
pygpu/basic.py
heha180/array
9fa8fe6e344acf98e53fcece337e2008e15d6279
[ "0BSD" ]
null
null
null
pygpu/basic.py
heha180/array
9fa8fe6e344acf98e53fcece337e2008e15d6279
[ "0BSD" ]
null
null
null
pygpu/basic.py
heha180/array
9fa8fe6e344acf98e53fcece337e2008e15d6279
[ "0BSD" ]
1
2021-05-14T00:32:33.000Z
2021-05-14T00:32:33.000Z
from string import Template from .gpuarray import GpuArray, GpuKernel, SIZE def _generate_kernel(ctx, cols, upper=True): tmpl = Template(""" #include "cluda.h" KERNEL void extract_tri(GLOBAL_MEM ga_float *a, ga_size a_off, ga_uint N) { a = (GLOBAL_MEM ga_float *)(((GLOBAL_MEM char *)a) + a_off); ...
28.969697
79
0.566946
a1a2bf9b9c6fd0e77c83da38bba977263b9a0ae7
8,553
py
Python
frappe/tests/test_twofactor.py
bahaou/frappe
53d4ddca43b114414f1b81c58944064559a3e823
[ "MIT" ]
null
null
null
frappe/tests/test_twofactor.py
bahaou/frappe
53d4ddca43b114414f1b81c58944064559a3e823
[ "MIT" ]
1
2021-10-01T13:08:45.000Z
2021-10-01T13:08:45.000Z
frappe/tests/test_twofactor.py
bahaou/frappe
53d4ddca43b114414f1b81c58944064559a3e823
[ "MIT" ]
null
null
null
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import unittest, frappe, pyotp from frappe.auth import HTTPRequest from frappe.utils import cint from frappe.utils import set_request from frappe.auth import validate_ip_address, get_login_attempt_tracker from frappe.twofac...
36.241525
112
0.778557
5b04fe92b12f5a747062a312ea36540ed0d99b8c
57,383
py
Python
test/test_remote.py
ccacciari/bdbag
f9e9eb257c43c9cc1c6ad83519070d7bdd8bab1e
[ "Apache-2.0" ]
39
2018-04-13T16:36:39.000Z
2022-02-11T08:59:35.000Z
test/test_remote.py
ccacciari/bdbag
f9e9eb257c43c9cc1c6ad83519070d7bdd8bab1e
[ "Apache-2.0" ]
30
2018-03-30T23:05:41.000Z
2022-02-24T13:38:52.000Z
test/test_remote.py
ccacciari/bdbag
f9e9eb257c43c9cc1c6ad83519070d7bdd8bab1e
[ "Apache-2.0" ]
18
2018-05-14T12:50:41.000Z
2021-11-25T15:50:19.000Z
# encoding: utf-8 # # Copyright 2016 University of Southern California # # 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 b...
48.919864
148
0.590837
f2de3139114025b512d7610ed49160f1924fa4df
2,774
py
Python
roulette/builder/utils.py
miararoy/bliz
0d197b6790ccfa0c71682abf551aa4df83a9b589
[ "MIT" ]
null
null
null
roulette/builder/utils.py
miararoy/bliz
0d197b6790ccfa0c71682abf551aa4df83a9b589
[ "MIT" ]
null
null
null
roulette/builder/utils.py
miararoy/bliz
0d197b6790ccfa0c71682abf551aa4df83a9b589
[ "MIT" ]
null
null
null
import numpy as np from collections import namedtuple from sklearn.metrics import classification_report, confusion_matrix Doc = namedtuple( 'Doc', [ "version", "type", "algo", "param", "cv", ] ) def compress_regression_results(l, true_condition=lambda x: x >= 0.6...
25.925234
88
0.540014
b23eb4175ade8c5b44dd2bd2a1ace6d541e6540f
1,494
py
Python
ai_toolkit/models/cnn.py
TylerYep/ml-toolkit
095bdce961133acc720f90b6d1bbb0a7becbfc9f
[ "MIT" ]
7
2020-04-07T06:10:29.000Z
2021-10-30T06:31:46.000Z
ai_toolkit/models/cnn.py
TylerYep/ml-toolkit
095bdce961133acc720f90b6d1bbb0a7becbfc9f
[ "MIT" ]
2
2021-09-08T01:48:49.000Z
2022-01-16T19:31:35.000Z
ai_toolkit/models/cnn.py
TylerYep/ml-toolkit
095bdce961133acc720f90b6d1bbb0a7becbfc9f
[ "MIT" ]
2
2021-04-27T22:45:14.000Z
2021-07-16T06:40:30.000Z
import torch from torch import nn from torch.nn import functional as F class BasicCNN(nn.Module): """Neural network""" def __init__(self, input_shape): super().__init__() self.input_shape = input_shape self.conv1 = nn.Conv2d(1, 32, 3, 1) self.conv2 = nn.Conv2d(32, 64, 3, 1) ...
26.678571
64
0.522758
66b35518304691850f9b54f6bdc530c6aaddb351
2,413
py
Python
tests/precalculations/test_count_vectorizer.py
hpi-bp1819-naumann/shift-detector
5d081d05ec084021f11827aa3fd3e167854b2a2a
[ "Apache-2.0" ]
3
2019-06-21T11:41:08.000Z
2019-10-24T06:41:51.000Z
tests/precalculations/test_count_vectorizer.py
hpi-bp1819-naumann/shift-detector
5d081d05ec084021f11827aa3fd3e167854b2a2a
[ "Apache-2.0" ]
63
2019-05-16T12:09:57.000Z
2022-02-10T00:21:01.000Z
tests/precalculations/test_count_vectorizer.py
hpi-bp1819-naumann/shift-detector
5d081d05ec084021f11827aa3fd3e167854b2a2a
[ "Apache-2.0" ]
null
null
null
import unittest from shift_detector.precalculations.count_vectorizer import CountVectorizer from shift_detector.precalculations.store import Store import pandas as pd import numpy as np class TestCountVectorizer(unittest.TestCase): def setUp(self): self.count1 = CountVectorizer(columns=['col1'], stop_wor...
47.313725
108
0.640282
7fd0d86de9e981bfc074cb2f99263eaa21d92b2a
4,911
py
Python
App/CSJam2015/Content/PrebuiltResources/Scripts/texture_atlas_builder.py
KamiGrave/CSJam2015
e96db2f0797e4e9f33f949b4c36955243c6bbc23
[ "MIT" ]
null
null
null
App/CSJam2015/Content/PrebuiltResources/Scripts/texture_atlas_builder.py
KamiGrave/CSJam2015
e96db2f0797e4e9f33f949b4c36955243c6bbc23
[ "MIT" ]
null
null
null
App/CSJam2015/Content/PrebuiltResources/Scripts/texture_atlas_builder.py
KamiGrave/CSJam2015
e96db2f0797e4e9f33f949b4c36955243c6bbc23
[ "MIT" ]
null
null
null
#!/usr/bin/python # # texture_atlas_builder.py # CSJam2015 # Created by Scott Downie on 30/06/2014. # # The MIT License (MIT) # # Copyright (c) 2014 Tag Games Limited # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Softw...
29.945122
211
0.635919
92cdb9e7de0436a6771577c5dc7cf2e0a0c64bbf
1,210
py
Python
main.py
crrapi/Rin
41f3ae7421acd03ad214b2f3689d8043a01ae1df
[ "MIT" ]
null
null
null
main.py
crrapi/Rin
41f3ae7421acd03ad214b2f3689d8043a01ae1df
[ "MIT" ]
null
null
null
main.py
crrapi/Rin
41f3ae7421acd03ad214b2f3689d8043a01ae1df
[ "MIT" ]
null
null
null
import json import discord from discord.ext import commands # Put your token in a file called config.json, if you want to self-host with open('config.json') as file: config = json.load(file) async def get_prefix(_bot, message): prefixes = ['rin '] return commands.when_mentioned_or(*prefixes)(_bot, messa...
27.5
99
0.65124
c950a78eed5b346d273b2e398fa8b3345fe51152
4,414
py
Python
slimelearnpy/slimelearn.py
javierburgosv/slimelearn.py
2a5f8bd43e52e199f052d51a79c4f097c6f6b547
[ "MIT" ]
1
2021-06-22T11:40:17.000Z
2021-06-22T11:40:17.000Z
slimelearnpy/slimelearn.py
javierburgosv/slimelearn.py
2a5f8bd43e52e199f052d51a79c4f097c6f6b547
[ "MIT" ]
null
null
null
slimelearnpy/slimelearn.py
javierburgosv/slimelearn.py
2a5f8bd43e52e199f052d51a79c4f097c6f6b547
[ "MIT" ]
null
null
null
from asyncio.events import get_event_loop from asyncio.tasks import all_tasks from typing import final import websockets import asyncio import json import nest_asyncio nest_asyncio.apply() class SlimeLearn: ws = None req_template = { "req": "", "payload": {} } def __init__(self): ...
30.027211
91
0.478478
2056de4c8fc4c155ab7bc0258f2005699183a8cb
1,742
py
Python
backend/match_games/models.py
flaviogf/match_games
7d2c2f35749715f36855031911ba67690cea8cb1
[ "MIT" ]
null
null
null
backend/match_games/models.py
flaviogf/match_games
7d2c2f35749715f36855031911ba67690cea8cb1
[ "MIT" ]
null
null
null
backend/match_games/models.py
flaviogf/match_games
7d2c2f35749715f36855031911ba67690cea8cb1
[ "MIT" ]
null
null
null
from match_games import db from sqlalchemy.orm import relationship class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(250), nullable=False) email = db.Column(db.String(250), nullable=False) passwor...
32.259259
61
0.537887
1d5ba429fc4f0cc992f0bea6256d036468c81764
2,888
py
Python
core/management/commands/createOrder.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
null
null
null
core/management/commands/createOrder.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
9
2020-01-10T14:10:02.000Z
2022-03-12T00:08:19.000Z
core/management/commands/createOrder.py
yun-mh/uniwalk
f5307f6970b24736d13b56b4792c580398c35b3a
[ "Apache-2.0" ]
null
null
null
import random, time, datetime, math from django.core.management.base import BaseCommand from django_seed import Seed from reviews.models import Review from products.models import Product from orders.models import Order, Step from users.models import User # テストデータ用コマンドの作成 def str_time_prop(start, end, format, prop): ...
25.557522
86
0.437673
8080782e2fe627930333f1566a9f55a55d2727dd
1,845
py
Python
setup.py
cordalace/nsjwt
424b85f9ec003e965db4da2089efc47602566c16
[ "Apache-2.0" ]
11
2018-02-01T11:29:45.000Z
2020-05-28T17:39:41.000Z
setup.py
cordalace/nsjwt
424b85f9ec003e965db4da2089efc47602566c16
[ "Apache-2.0" ]
null
null
null
setup.py
cordalace/nsjwt
424b85f9ec003e965db4da2089efc47602566c16
[ "Apache-2.0" ]
1
2018-05-10T09:25:49.000Z
2018-05-10T09:25:49.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.166667
71
0.681301
215b1bcbb0694d0c75e1e2a7f6eeb82529e4df94
16,168
py
Python
sensors/kalman/auv-kalmand.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
sensors/kalman/auv-kalmand.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
sensors/kalman/auv-kalmand.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
#!/usr/bin/env python3 ''' The daemon that runs Kalman filters for orientation and position. ''' import math import time from functools import reduce import numpy as np import shm from auv_math.quat import Quaternion from auv_python_helpers.angles import abs_heading_sub_degrees from conf.vehicle import sensors, dvl_...
38.679426
154
0.58925
e0385727acf47b905910e086e86fee8b1c04a482
23,153
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/third_party_auth/saml.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/third_party_auth/saml.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/third_party_auth/saml.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Slightly customized python-social-auth backend for SAML 2.0 support """ import logging from copy import deepcopy import requests from django.contrib.sites.models import Site from django.http import Http404 from django.utils.functional import cached_property from django_countries import countries from onelogin.sa...
41.492832
120
0.638319
2a29a06cb682f4030b8aa3e1fde4f7ee3bc42be4
1,465
py
Python
Serial.py
flasonil/Deep-Neural-Network-for-CS-based-signal-reconstruction-on-STM32-MCU-board
57cc1e57e4497bea93a12b71c18db8f472ae4295
[ "MIT" ]
11
2020-07-06T13:23:35.000Z
2021-09-04T17:41:00.000Z
Serial.py
flasonil/Deep-Neural-Network-for-CS-based-signal-reconstruction-on-STM32-MCU-board
57cc1e57e4497bea93a12b71c18db8f472ae4295
[ "MIT" ]
null
null
null
Serial.py
flasonil/Deep-Neural-Network-for-CS-based-signal-reconstruction-on-STM32-MCU-board
57cc1e57e4497bea93a12b71c18db8f472ae4295
[ "MIT" ]
1
2021-04-04T23:05:29.000Z
2021-04-04T23:05:29.000Z
from scipy import signal from scipy import io from scipy import random import os import serial import sys import numpy as np import time import struct from dnnCS_functions import * # The data, split between train and test sets: # Load y_test float32 type data = io.loadmat('float_y.mat') y_test = data['ans'][:32,:].T #...
31.170213
129
0.659386
e7b6ca5c579e2636abe80ec265cea7682ae93534
1,049
py
Python
packages/pyright-internal/src/tests/samples/classVar1.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
packages/pyright-internal/src/tests/samples/classVar1.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
packages/pyright-internal/src/tests/samples/classVar1.py
lipovsek/pytea
c536515a5e5947fac8871784323ba7eddc58956d
[ "MIT" ]
null
null
null
# This sample tests the type checker's handling of ClassVar # as described in PEP 526. from typing import Any, ClassVar, Dict class MyDescriptor: def __get__(self, *args: Any) -> str: return "" def __set__(self, obj: Any, value: str): pass class Starship: captain: str = ...
24.97619
67
0.63775
11a960c94e7eecc7c10896bae1eaab08ab8d5447
5,548
py
Python
app.py
david-fried/sqlalchemy-challenge
3886f1f701f38344fe740d8d9e2a07178754a901
[ "ADSL" ]
1
2020-09-23T22:40:42.000Z
2020-09-23T22:40:42.000Z
app.py
david-fried/SQL_Alchemy
3886f1f701f38344fe740d8d9e2a07178754a901
[ "ADSL" ]
null
null
null
app.py
david-fried/SQL_Alchemy
3886f1f701f38344fe740d8d9e2a07178754a901
[ "ADSL" ]
null
null
null
from matplotlib import style style.use('fivethirtyeight') import matplotlib.pyplot as plt from flask import Flask, jsonify, request import numpy as np import pandas as pd import datetime as dt import sqlalchemy import pandas as pd from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Sess...
32.635294
172
0.616078
11cc0cafc28fbfb9ddc05957964d4cb83f059ad6
1,538
py
Python
setup.py
csdms/standard_names
385e8700125c9823720ca16f112ef5e1c3903b1f
[ "MIT" ]
1
2017-12-19T04:01:36.000Z
2017-12-19T04:01:36.000Z
setup.py
csdms/standard_names
385e8700125c9823720ca16f112ef5e1c3903b1f
[ "MIT" ]
1
2019-04-09T16:02:47.000Z
2019-04-09T16:02:47.000Z
setup.py
csdms/standard_names
385e8700125c9823720ca16f112ef5e1c3903b1f
[ "MIT" ]
2
2015-04-15T23:23:46.000Z
2017-08-28T20:35:35.000Z
#!/usr/bin/env python from setuptools import setup import versioneer setup( name="standard_names", version=versioneer.get_version(), description="CSDMS standard names", author="Eric Hutton", author_email="eric.hutton@colorado.edu", url="https://csdms.colorado.edu", classifiers=[ ...
28.481481
70
0.592328
660ec3e96506fb2783a47308fb24478f564ced8d
3,948
py
Python
selfdrive/controls/lib/lane_planner.py
vincentw56/openpilot
7eca4d62078b14de62c5f2ce08e382eb31cc7076
[ "MIT" ]
null
null
null
selfdrive/controls/lib/lane_planner.py
vincentw56/openpilot
7eca4d62078b14de62c5f2ce08e382eb31cc7076
[ "MIT" ]
null
null
null
selfdrive/controls/lib/lane_planner.py
vincentw56/openpilot
7eca4d62078b14de62c5f2ce08e382eb31cc7076
[ "MIT" ]
null
null
null
import numpy as np from cereal import log from common.filter_simple import FirstOrderFilter from common.numpy_fast import interp from common.realtime import DT_MDL from selfdrive.hardware import EON, TICI from selfdrive.swaglog import cloudlog TRAJECTORY_SIZE = 33 # camera offset is meters from center car to camera i...
37.245283
109
0.692756
d878d3dcc19441f3b92683d1156ec712354d222a
2,232
py
Python
being/logging.py
andsteing/being
0d0dca71edc512df47fe5ff3bea692e728f90924
[ "MIT" ]
2
2021-11-11T12:16:43.000Z
2022-01-13T06:06:20.000Z
being/logging.py
andsteing/being
0d0dca71edc512df47fe5ff3bea692e728f90924
[ "MIT" ]
5
2022-01-13T08:01:54.000Z
2022-02-22T12:28:02.000Z
being/logging.py
andsteing/being
0d0dca71edc512df47fe5ff3bea692e728f90924
[ "MIT" ]
3
2022-01-11T18:16:35.000Z
2022-01-13T13:14:26.000Z
"""Being logging. Resources: - https://stackoverflow.com/questions/7016056/python-logging-not-outputting-anything """ import logging import logging.handlers import os from typing import Optional from logging import Logger from being.configuration import CONFIG from being.constants import MB LEVEL = CONFIG['Loggin...
27.9
94
0.667115
bb74e00c63f7f77d8cef2ac22b8fecc46549e816
18,812
py
Python
ppcls/arch/backbone/model_zoo/levit.py
qili93/PaddleClas
21a89ee365613890b601001343a6bef2cbd99c2c
[ "Apache-2.0" ]
2
2021-06-22T06:28:20.000Z
2021-06-22T06:28:23.000Z
ppcls/arch/backbone/model_zoo/levit.py
sunjianfengHub/PaddleClas
dad9fa8b54da97691d2c7f2b6e0c2b4f077177b7
[ "Apache-2.0" ]
null
null
null
ppcls/arch/backbone/model_zoo/levit.py
sunjianfengHub/PaddleClas
dad9fa8b54da97691d2c7f2b6e0c2b4f077177b7
[ "Apache-2.0" ]
1
2021-06-25T17:50:30.000Z
2021-06-25T17:50:30.000Z
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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...
34.328467
119
0.536253
1e45fd48aa214d10ea9511ba99af204eaedc136a
3,704
py
Python
log_queries.py
calpoly-csai/swanson
8f5aed72ebabf06daaf37ba6a6feefec06654802
[ "MIT" ]
3
2020-07-26T21:08:58.000Z
2021-04-26T04:07:25.000Z
log_queries.py
calpoly-csai/swanson
8f5aed72ebabf06daaf37ba6a6feefec06654802
[ "MIT" ]
34
2020-07-26T20:32:13.000Z
2021-02-02T01:07:13.000Z
log_queries.py
calpoly-csai/swanson
8f5aed72ebabf06daaf37ba6a6feefec06654802
[ "MIT" ]
2
2020-08-25T23:10:15.000Z
2021-11-08T21:24:34.000Z
import datetime import pickle from flask import Flask, request from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from os import path, environ # If modifying these scopes, delete the file token.pickle. SCOPES = ['http...
32.778761
120
0.674946
cafa01eebf61dad95766432bc5b7bbda89b102b2
16,983
py
Python
Savethemblobs/PythonistaKit.framework/pylib/HTMLParser.py
iApeiron/Savethemblobs_app
38184facf78b55ba89a727be7b1fc08d6085f20c
[ "MIT" ]
19
2017-05-17T16:48:02.000Z
2020-08-18T18:21:45.000Z
Savethemblobs/PythonistaKit.framework/pylib/HTMLParser.py
iApeiron/Savethemblobs_app
38184facf78b55ba89a727be7b1fc08d6085f20c
[ "MIT" ]
2
2017-05-17T06:41:47.000Z
2017-05-17T17:27:13.000Z
Savethemblobs/PythonistaKit.framework/pylib/HTMLParser.py
iApeiron/Savethemblobs_app
38184facf78b55ba89a727be7b1fc08d6085f20c
[ "MIT" ]
4
2017-05-17T03:56:25.000Z
2018-11-09T00:00:20.000Z
"""A parser for HTML and XHTML.""" # This file is based on sgmllib.py, but the API is slightly different. # XXX There should be a way to distinguish between PCDATA (parsed # character data -- the normal case), RCDATA (replaceable character # data -- only char and entity references and end tags are special) # and CDA...
35.829114
87
0.508626
07deb9b9939240c6fc5e284d4562317b41b5a3b7
1,669
py
Python
examples/keras_example.py
vittot/pyCeterisParibus
efe5835574026fe6b1a6993cc08cc34e67b8e018
[ "Apache-2.0" ]
22
2019-04-06T17:33:12.000Z
2021-12-13T21:46:47.000Z
examples/keras_example.py
vittot/pyCeterisParibus
efe5835574026fe6b1a6993cc08cc34e67b8e018
[ "Apache-2.0" ]
15
2018-11-27T17:50:16.000Z
2019-04-23T17:07:43.000Z
examples/keras_example.py
vittot/pyCeterisParibus
efe5835574026fe6b1a6993cc08cc34e67b8e018
[ "Apache-2.0" ]
8
2018-12-12T12:24:21.000Z
2022-02-06T21:09:55.000Z
from keras.layers import Dense, Activation from keras.models import Sequential from keras.wrappers.scikit_learn import KerasRegressor from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler from...
35.510638
104
0.724985
f7affd78d47b0ca00a5ca32636b890ef6eea5516
1,941
py
Python
config/wsgi.py
stephenaiesi/customcreations.site
6c47f033c740b180d7598ef2bfdbbe8a0f71447c
[ "MIT" ]
null
null
null
config/wsgi.py
stephenaiesi/customcreations.site
6c47f033c740b180d7598ef2bfdbbe8a0f71447c
[ "MIT" ]
null
null
null
config/wsgi.py
stephenaiesi/customcreations.site
6c47f033c740b180d7598ef2bfdbbe8a0f71447c
[ "MIT" ]
null
null
null
""" WSGI config for Custom Creations project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLI...
44.113636
79
0.796497
1b6dec3580eab314335f2dc2e82c74a5031177d9
1,309
py
Python
Lab 3/word_count_system_architecture_client.py
lucca30/distributed-systems
e463a894f679b8ac6db6cddfc0e0302d2f08927f
[ "MIT" ]
null
null
null
Lab 3/word_count_system_architecture_client.py
lucca30/distributed-systems
e463a894f679b8ac6db6cddfc0e0302d2f08927f
[ "MIT" ]
null
null
null
Lab 3/word_count_system_architecture_client.py
lucca30/distributed-systems
e463a894f679b8ac6db6cddfc0e0302d2f08927f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from socket import * import time import json host = 'localhost' port = 7001 retry_time_secs = 10 wait_time_msecs = 1000 msg = '' sckt = socket() def acquire_connection(): connected = False # Retry until is not connected while not connected: try: print ("Tryin...
25.666667
91
0.588235
64e6fa8a3bac37ed29fd74a76fc6c7a78b766e6d
1,760
py
Python
assistant/core/management/commands/consume.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/core/management/commands/consume.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/core/management/commands/consume.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
from django.utils.translation import gettext_lazy as _ from django.core.management.base import BaseCommand from assistant.core.pub_sub import Consumer class Command(BaseCommand): """A management command to run a worker to consume events from rabbitmq.""" help = _("Consumer Worker from RabbitMQ") callba...
35.918367
116
0.615341
85f0db23b028addcd806bcdcd286d89eccf8bbe8
4,685
py
Python
bot/cogs/owner.py
jnpoJuwan/Just-a-bot
31fc52d61312bcca75515b988de68676573ea401
[ "MIT" ]
null
null
null
bot/cogs/owner.py
jnpoJuwan/Just-a-bot
31fc52d61312bcca75515b988de68676573ea401
[ "MIT" ]
null
null
null
bot/cogs/owner.py
jnpoJuwan/Just-a-bot
31fc52d61312bcca75515b988de68676573ea401
[ "MIT" ]
null
null
null
import io import textwrap import traceback from contextlib import redirect_stdout from pathlib import Path from discord.ext import commands from ..utils import checks class Owner(commands.Cog, command_attrs=dict(hidden=True)): def __init__(self, bot): self.bot = bot @commands.command(name='quit', a...
34.19708
111
0.573533
448c5968b1c12540fa3ddba1e372f1a591079285
849
py
Python
scipy_central/feeds/urls.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
scipy_central/feeds/urls.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
scipy_central/feeds/urls.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url from django.contrib.comments.feeds import LatestCommentFeed import feeds urlpatterns = patterns('scipy_central.feeds.views', # latest comments url(r'^comments/$', LatestCommentFeed(), name="spc-rss-latest-comments"), # all revision comments url(r'^comments/(?P<item_id>\d+...
44.684211
107
0.691402
975fff16ecb812ee2d92144b2486c964a9da73e4
326
py
Python
day02/python/murku/tests/test_solution.py
murku/aoc-2020
bc74b78905524e185b10b2afabcd89ee9f3c2fa7
[ "MIT" ]
null
null
null
day02/python/murku/tests/test_solution.py
murku/aoc-2020
bc74b78905524e185b10b2afabcd89ee9f3c2fa7
[ "MIT" ]
null
null
null
day02/python/murku/tests/test_solution.py
murku/aoc-2020
bc74b78905524e185b10b2afabcd89ee9f3c2fa7
[ "MIT" ]
null
null
null
import pytest # from solution import multiply_list multiply_list_testdata = [ ([1], 1), ([2, 3], 3), ([2, 5, 6], 60) ] @pytest.mark.parametrize("numbers,expected", multiply_list_testdata) def test_multiply_list(numbers, expected): actual = multiply_list(numbers) assert actual == expected, "test fa...
23.285714
68
0.690184
f5cf542b13af485c545f526728a79993112b594f
8,230
py
Python
server/planarserver.py
Kruptein/PlanarAlly
6c7dd9d02474a86610f0aa0b2afb92f400438818
[ "MIT" ]
300
2018-03-22T12:09:15.000Z
2022-03-30T05:33:39.000Z
server/planarserver.py
Kruptein/PlanarAlly
6c7dd9d02474a86610f0aa0b2afb92f400438818
[ "MIT" ]
482
2018-03-08T23:44:56.000Z
2022-03-30T18:06:04.000Z
server/planarserver.py
Kruptein/PlanarAlly
6c7dd9d02474a86610f0aa0b2afb92f400438818
[ "MIT" ]
79
2018-05-12T18:42:59.000Z
2022-03-29T17:12:22.000Z
""" PlanarAlly backend server code. This is the code responsible for starting the backend and reacting to socket IO events. """ # Check for existence of './templates/' as it is not present if client was not built before from argparse import ArgumentParser import getpass import os import sys from urllib.parse import qu...
26.807818
209
0.608019
6cb9bbb0555ba2a5c7a5a94cfaaf5f2a82d1f4f2
1,154
py
Python
stack/stack_fixed_listSize.py
vsjadhav/DSA_python
1dd71b418bb604ebfd561c3dc9b8e123486ad8ef
[ "MIT" ]
null
null
null
stack/stack_fixed_listSize.py
vsjadhav/DSA_python
1dd71b418bb604ebfd561c3dc9b8e123486ad8ef
[ "MIT" ]
null
null
null
stack/stack_fixed_listSize.py
vsjadhav/DSA_python
1dd71b418bb604ebfd561c3dc9b8e123486ad8ef
[ "MIT" ]
null
null
null
class stack: def __init__(self,maxsize): self.maxsize = maxsize self.list = [] def __str__(self): l = self.list.copy() l.reverse() l1 = [str(i) for i in l] return "\n".join(l1) def isempty(self): if self.list: return False ...
20.981818
42
0.517331
35b0eba9267b6373aa25aaecb78149840bf6dd2d
8,647
py
Python
python/pyspark/ml/wrapper.py
kandu009/Apache_Spark
7092a1600a6a151a77d6bf9d64e00fcd43f979e4
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
1
2017-06-02T09:51:13.000Z
2017-06-02T09:51:13.000Z
python/pyspark/ml/wrapper.py
kandu009/Apache_Spark
7092a1600a6a151a77d6bf9d64e00fcd43f979e4
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
python/pyspark/ml/wrapper.py
kandu009/Apache_Spark
7092a1600a6a151a77d6bf9d64e00fcd43f979e4
[ "BSD-3-Clause-Open-MPI", "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "MIT-0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause-Clear", "BSD-3-Clause" ]
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 us...
35.293878
98
0.649474
83e51c71e5bdaa1e79b0f051b9929c261e25a3fd
1,681
py
Python
tests/st/ops/ascend/test_biasAddGrad.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/st/ops/ascend/test_biasAddGrad.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
tests/st/ops/ascend/test_biasAddGrad.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "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...
36.543478
114
0.710886
ee32ebc522ac8a42999da011ebc916a8df314599
1,517
py
Python
samples/snippets/language_sentiment_analysis_predict_test.py
renovate-bot/python-automl
5c1a9a383680bc5b89f514aa9a3aef47af9feac2
[ "Apache-2.0" ]
68
2020-01-31T18:13:23.000Z
2022-03-28T14:57:12.000Z
samples/snippets/language_sentiment_analysis_predict_test.py
renovate-bot/python-automl
5c1a9a383680bc5b89f514aa9a3aef47af9feac2
[ "Apache-2.0" ]
184
2020-01-31T17:34:00.000Z
2022-03-30T22:42:11.000Z
samples/snippets/language_sentiment_analysis_predict_test.py
isabella232/python-automl
dbf1bf1bcc7575cd5ab85921311e18ecfed27dc7
[ "Apache-2.0" ]
29
2020-01-31T19:32:55.000Z
2022-01-29T08:07:34.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.477273
75
0.759394
6d1bd0bedda48972f98a2608dc4637dd8bffd3bf
454
py
Python
backend/music/migrations/0004_artist_scene_name.py
kiselevvn/django-music
3c61319fb03d52f8642b21eefc80dccb912ddcd0
[ "MIT" ]
null
null
null
backend/music/migrations/0004_artist_scene_name.py
kiselevvn/django-music
3c61319fb03d52f8642b21eefc80dccb912ddcd0
[ "MIT" ]
null
null
null
backend/music/migrations/0004_artist_scene_name.py
kiselevvn/django-music
3c61319fb03d52f8642b21eefc80dccb912ddcd0
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-20 00:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music', '0003_auto_20211120_0344'), ] operations = [ migrations.AddField( model_name='artist', name='scene_name', ...
23.894737
118
0.629956
be6683a5fbaac35658c38a5c9e751bf1dbdc4559
888
py
Python
computer_network_real/6/singleProcessServer.py
mtjin/University_and_AndroidProjects
c0ac3394043fd10730e68b391866d55c3be2c23b
[ "MIT" ]
1
2021-04-13T12:06:51.000Z
2021-04-13T12:06:51.000Z
computer_network_real/6/singleProcessServer.py
mtjin/University
c0ac3394043fd10730e68b391866d55c3be2c23b
[ "MIT" ]
2
2022-01-21T23:46:50.000Z
2022-01-21T23:48:45.000Z
computer_network_real/6/singleProcessServer.py
mtjin/university
c0ac3394043fd10730e68b391866d55c3be2c23b
[ "MIT" ]
null
null
null
import time import os import socket def send_recv(client_socket): data = client_socket.recv(1024) print("[client {}] {}".format(os.getpid(), data.decode())) response = "HTTP/1.1 200 OK\r\n" client_socket.send(response.encode('utf-8')) client_socket.send(data) client_socket.close() def main(FLA...
26.117647
68
0.643018
3230369953fec889fbe51ac623fc79d0887a48af
12,107
py
Python
composer/airflow_1_samples/kubernetes_pod_operator.py
BaljitSingh919/Project360
b8ec08f6598e6b4d6d190b63c6b64f268225bd2d
[ "Apache-2.0" ]
5,938
2015-05-18T05:04:37.000Z
2022-03-31T20:16:39.000Z
composer/airflow_1_samples/kubernetes_pod_operator.py
BaljitSingh919/Project360
b8ec08f6598e6b4d6d190b63c6b64f268225bd2d
[ "Apache-2.0" ]
4,730
2015-05-07T19:00:38.000Z
2022-03-31T21:59:41.000Z
composer/airflow_1_samples/kubernetes_pod_operator.py
BaljitSingh919/Project360
b8ec08f6598e6b4d6d190b63c6b64f268225bd2d
[ "Apache-2.0" ]
6,734
2015-05-05T17:06:20.000Z
2022-03-31T12:02:51.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, s...
51.084388
91
0.664905
3375c9df434c5eb9f95398b6e36650226bb0dc6c
740
py
Python
local_deploy/rx_info/migrations/0005_rxclaim.py
jojordan3/prescription-search-django
7c36766e7bac5d22e42d6bd2bae7ca3d5865f93b
[ "MIT" ]
1
2019-05-21T11:33:32.000Z
2019-05-21T11:33:32.000Z
local_deploy/rx_info/migrations/0005_rxclaim.py
jojordan3/prescription-search-django
7c36766e7bac5d22e42d6bd2bae7ca3d5865f93b
[ "MIT" ]
3
2020-02-11T23:48:18.000Z
2021-06-10T21:15:44.000Z
local_deploy/rx_info/migrations/0005_rxclaim.py
jojordan3/prescription-search-django
7c36766e7bac5d22e42d6bd2bae7ca3d5865f93b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-10 11:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rx_info', '0004_auto_20190310_0353'), ] operations = [ migrations.CreateModel( name='RxClaim', fields=[ ...
30.833333
114
0.583784
2f8c75cc950bb0dcd0e35775f08911de99cc5e44
460
py
Python
commands/cmd_stats.py
Serbirial/regiusBot
ac54e10f721ccbd6c1848130abecff2aa8552778
[ "MIT" ]
2
2018-01-07T06:12:23.000Z
2018-03-29T12:52:54.000Z
commands/cmd_stats.py
zekroTJA/regiusBot
ac54e10f721ccbd6c1848130abecff2aa8552778
[ "MIT" ]
null
null
null
commands/cmd_stats.py
zekroTJA/regiusBot
ac54e10f721ccbd6c1848130abecff2aa8552778
[ "MIT" ]
14
2017-06-28T11:46:04.000Z
2020-09-06T17:46:42.000Z
from discord import Embed, Color description = "Shows the link to the statistics page of the guild" async def ex(message, client): await client.send_message(message.channel, embed=Embed(color=Color.gold(), title="Discord Member Stats", ...
38.333333
115
0.563043
6ff96649c38d7c815726ba986224419811968f77
12,814
py
Python
stingray/crosscorrelation.py
pierfra-ro/stingray
d255e3ced23e97d297be7d8d659ddf163b808064
[ "MIT" ]
133
2016-02-05T09:37:00.000Z
2022-03-30T04:49:18.000Z
stingray/crosscorrelation.py
pierfra-ro/stingray
d255e3ced23e97d297be7d8d659ddf163b808064
[ "MIT" ]
578
2016-02-04T10:38:28.000Z
2022-03-31T13:27:13.000Z
stingray/crosscorrelation.py
pierfra-ro/stingray
d255e3ced23e97d297be7d8d659ddf163b808064
[ "MIT" ]
125
2016-02-04T17:04:43.000Z
2022-03-24T18:05:22.000Z
import warnings import numpy as np from scipy import signal try: from pyfftw.interfaces.scipy_fft import ifft, fftfreq except ImportError: warnings.warn("pyfftw not installed. Using standard scipy fft") from scipy.fft import ifft, fftfreq from stingray.lightcurve import Lightcurve from stingray.crossspect...
35.994382
110
0.604729
9df3fbb38695bb52cbdc2f05bc725c14e12b94f3
5,061
py
Python
app/user/tests/test_user_api.py
Kshitiz-Karki/recipe-app-api
22526e58200235197e17b25cfd06f23de12160a1
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
Kshitiz-Karki/recipe-app-api
22526e58200235197e17b25cfd06f23de12160a1
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
Kshitiz-Karki/recipe-app-api
22526e58200235197e17b25cfd06f23de12160a1
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params...
34.903448
77
0.647105
526845c85ca9e714514e62361698377e120e89b4
5,555
py
Python
nova/tests/unit/fake_notifier.py
confi-surya/nova
adda77352cbe037f47c86bbd809c94fee269eaae
[ "Apache-2.0" ]
1
2018-12-28T06:47:39.000Z
2018-12-28T06:47:39.000Z
nova/tests/unit/fake_notifier.py
confi-surya/nova
adda77352cbe037f47c86bbd809c94fee269eaae
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/fake_notifier.py
confi-surya/nova
adda77352cbe037f47c86bbd809c94fee269eaae
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Red Hat, 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/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.047945
78
0.59622
c40b0a433fa8e3a5c20daeeb9f134993911bada7
5,613
py
Python
tests/glsl.py
Konsonanz/dnload
52668c73339f6d11b54c8b41e6fe3ba6c4ef6b77
[ "BSD-3-Clause" ]
63
2016-11-03T09:13:58.000Z
2022-03-29T12:54:58.000Z
tests/glsl.py
Konsonanz/dnload
52668c73339f6d11b54c8b41e6fe3ba6c4ef6b77
[ "BSD-3-Clause" ]
6
2018-07-27T18:21:25.000Z
2021-03-19T08:04:07.000Z
tests/glsl.py
Konsonanz/dnload
52668c73339f6d11b54c8b41e6fe3ba6c4ef6b77
[ "BSD-3-Clause" ]
10
2016-07-27T17:03:00.000Z
2021-03-13T19:34:36.000Z
#!/usr/bin/env python import argparse import os import re import sys (pathname, basename) = os.path.split(__file__) if pathname and (pathname != "."): sys.path.append(pathname + "/..") from dnload.common import executable_check from dnload.common import executable_search from dnload.common import is_verbose from...
38.445205
130
0.605737
5e8b9eac9c03c795b43fc0064a660bdb33a27529
13,261
py
Python
Code/CAML/zzz_ReduceDataPoints.py
NoldAndreas/FINDER
a3d947c5d59a7cd6e54400b0e9aeb9e111689976
[ "MIT" ]
null
null
null
Code/CAML/zzz_ReduceDataPoints.py
NoldAndreas/FINDER
a3d947c5d59a7cd6e54400b0e9aeb9e111689976
[ "MIT" ]
null
null
null
Code/CAML/zzz_ReduceDataPoints.py
NoldAndreas/FINDER
a3d947c5d59a7cd6e54400b0e9aeb9e111689976
[ "MIT" ]
1
2022-02-08T17:03:39.000Z
2022-02-08T17:03:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Reduces the number of points in SMLM images to a given maximum count or fraction. This script takes a folder of SMLM files and, for each file, saves a copy of it up to the specified maximum number of points in the output folder. The number of points is given either ...
46.858657
207
0.618882
d9843954431b5b52ec43e3ae9e5373ec437b4722
106,536
py
Python
scripts/pfg.py
sjkelly/openlane
0fec8c8fb2382d3d487127face5109ec7d2baa51
[ "Apache-2.0" ]
2
2021-09-23T01:55:01.000Z
2022-03-10T04:06:44.000Z
scripts/pfg.py
sjkelly/openlane
0fec8c8fb2382d3d487127face5109ec7d2baa51
[ "Apache-2.0" ]
null
null
null
scripts/pfg.py
sjkelly/openlane
0fec8c8fb2382d3d487127face5109ec7d2baa51
[ "Apache-2.0" ]
2
2021-09-23T01:55:04.000Z
2022-01-30T10:01:33.000Z
#!/usr/bin/env python3 # Copyright 2020 Efabless Corporation # # 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...
41.101852
146
0.484315
117c6caed0886eec8c0aac5561ccec9deb809112
577
py
Python
run.py
littlebai3618/bproxypool
358cf5c14164dadbd0d9bdf7cc3932b46ec81812
[ "MIT" ]
2
2019-12-26T02:49:59.000Z
2020-02-11T09:22:07.000Z
run.py
littlebai3618/bproxypool
358cf5c14164dadbd0d9bdf7cc3932b46ec81812
[ "MIT" ]
3
2021-03-31T19:33:59.000Z
2021-12-13T20:29:21.000Z
run.py
littlebai3618/bproxypool
358cf5c14164dadbd0d9bdf7cc3932b46ec81812
[ "MIT" ]
2
2020-01-25T12:05:47.000Z
2020-07-19T02:57:12.000Z
import sys import traceback from bproxypool.scheduler import run from bproxypool.server import create_app from bproxypool.utils.notify import ding app = create_app() if __name__ == '__main__': # app.run(debug=True) if len(sys.argv) == 2: if sys.argv[1] == 'scheduler': try: ...
26.227273
73
0.577123
7967904c21083809b412cf1d907dfc6346771e2c
833
py
Python
short_reads_pipeline/tools/deepargClass.py
antkak/deeparg-keras
0f3b640249d22a0c5aea7e8ad9c9af0b667d2176
[ "MIT" ]
null
null
null
short_reads_pipeline/tools/deepargClass.py
antkak/deeparg-keras
0f3b640249d22a0c5aea7e8ad9c9af0b667d2176
[ "MIT" ]
null
null
null
short_reads_pipeline/tools/deepargClass.py
antkak/deeparg-keras
0f3b640249d22a0c5aea7e8ad9c9af0b667d2176
[ "MIT" ]
null
null
null
import os import sys def run(R, data, path_to_deeparg='/deeparg/'): # print sys.path try: cmd = " ".join( ['python '+path_to_deeparg+'deepARG.py', '--align', '--type nucl', '--reads', '--input', R, '--output', R+'.deeparg', ...
28.724138
126
0.510204
ced0a153679ae5cae7f1dfab12edba497d745736
851
py
Python
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/148_sum_of_digits.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/148_sum_of_digits.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EXPERT/148_sum_of_digits.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
2
2022-02-09T15:41:33.000Z
2022-02-11T07:47:40.000Z
""" https://edabit.com/challenge/K7NbqZBYD5xzZLro9 EXPERT---- Sum of Digits Create a function that takes a range of numbers and returns the sum of each digit from start to stop. Examples digits_sum(1, 10) ➞ 46 # total numbers in the range are = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 # sum of each digits is = 1 + 2 + ...
23
101
0.620447
66d97823e69fccc90f89137feb031bf67263da85
6,453
py
Python
lib/data/datasets/aicity20_ReOri.py
Johere/AICity2020-VOC-ReID
21268535595c8c90b87cd1ee89ddbcb341a86d76
[ "MIT" ]
100
2020-04-25T03:58:01.000Z
2022-03-30T18:24:17.000Z
lib/data/datasets/aicity20_ReOri.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
30
2020-04-27T07:15:00.000Z
2022-01-03T19:49:49.000Z
lib/data/datasets/aicity20_ReOri.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
25
2020-04-25T22:53:30.000Z
2022-03-28T00:46:51.000Z
# encoding: utf-8 import glob import re import os import os.path as osp import xml.etree.ElementTree as ET import json from .bases import BaseImageDataset from .aicity20 import AICity20 class AICity20ReOri(AICity20): """ Simulation data: include attribute information - orientation - color - cls t...
38.640719
117
0.619867
0d2dca954c15b19a9192f409d0a9ae287a44d785
2,325
py
Python
algorithms/patterns/01. Sliding window/07. Longest Substring with Same Letters after Replacement.py
csanry/dsa
3ba72e0a76a24f261b9c0974cdad862ed97cf3bc
[ "MIT" ]
1
2022-01-06T11:35:28.000Z
2022-01-06T11:35:28.000Z
algorithms/patterns/01. Sliding window/07. Longest Substring with Same Letters after Replacement.py
csanry/dsa
3ba72e0a76a24f261b9c0974cdad862ed97cf3bc
[ "MIT" ]
null
null
null
algorithms/patterns/01. Sliding window/07. Longest Substring with Same Letters after Replacement.py
csanry/dsa
3ba72e0a76a24f261b9c0974cdad862ed97cf3bc
[ "MIT" ]
null
null
null
''' Problem Statement Given a string with lowercase letters only, if you are allowed to replace no more than ‘k’ letters with any letter, find the length of the longest substring having the same letters after replacement. Example 1: Input: String="aabccbb", k=2 Output: 5 Explanation: Replace the two 'c' with 'b' to ha...
40.086207
213
0.715269
0c1c0ff68126806825202c312a1983297c28a3a3
1,030
py
Python
server.py
BladeSides/ApertER-API
538c3f2e8b602ad7c0296cf5b6621bd32e26ea55
[ "MIT" ]
null
null
null
server.py
BladeSides/ApertER-API
538c3f2e8b602ad7c0296cf5b6621bd32e26ea55
[ "MIT" ]
null
null
null
server.py
BladeSides/ApertER-API
538c3f2e8b602ad7c0296cf5b6621bd32e26ea55
[ "MIT" ]
null
null
null
from bottle import get, route, post, run, request # or route from aperter import er_, json_ @route('/') def root(): return ''' <h1>Wrong Route</h1> ''' @route('/api') def api(): url = request.query.url try: em = -1 em = er_(url=url) except: print("ur...
23.953488
61
0.505825
fc2242b17a2df5b65645ac7bb1b898fee82e5a39
35,868
py
Python
venv/Lib/site-packages/fontTools/merge.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
7
2016-03-22T12:14:47.000Z
2021-05-07T20:21:11.000Z
activate/Lib/site-packages/fontTools/merge.py
Tanushree28/Cyberbullying-Detection
3a69ade5cf068b640a0d6d1f176ff0d0e2040501
[ "MIT" ]
3
2019-03-28T18:17:45.000Z
2021-06-30T23:37:13.000Z
activate/Lib/site-packages/fontTools/merge.py
Tanushree28/Cyberbullying-Detection
3a69ade5cf068b640a0d6d1f176ff0d0e2040501
[ "MIT" ]
3
2020-08-04T02:48:32.000Z
2020-08-17T01:20:09.000Z
# Copyright 2013 Google, Inc. All Rights Reserved. # # Google Author(s): Behdad Esfahbod, Roozbeh Pournader from fontTools.misc.timeTools import timestampNow from fontTools import ttLib, cffLib from fontTools.ttLib.tables import otTables, _h_e_a_d from fontTools.ttLib.tables.DefaultTable import DefaultTable from fontT...
27.956352
134
0.704974
c26534002f66ede36e3690eb0558960e0bfc378e
2,906
py
Python
manage.py
MahmoudYounes/BeOS
e832950a9103f154903eb600b0496d95c9826efb
[ "MIT" ]
null
null
null
manage.py
MahmoudYounes/BeOS
e832950a9103f154903eb600b0496d95c9826efb
[ "MIT" ]
null
null
null
manage.py
MahmoudYounes/BeOS
e832950a9103f154903eb600b0496d95c9826efb
[ "MIT" ]
null
null
null
#!/usr/bin/python """ script that manages BeOS development operations TODO: move to make (done) this build script is obsolete please use make instead (this build script won't be supported) """ import os, sys, subprocess, shutil CURRENT_DIR = os.getcwd() BOOTLOADER_DIR = "{}/bootLoader/".format(CURRENT_DIR) BUILD_...
25.051724
98
0.698899
d3786434e8d88119ce25a92b0d44565708206b7c
1,717
py
Python
custom_components/dwains_dashboard/load_plugins.py
pavolholes/dwains-lovelace-dashboard
bab816a165832ac0c36e4faf5ae3a7fd67c31004
[ "MIT" ]
null
null
null
custom_components/dwains_dashboard/load_plugins.py
pavolholes/dwains-lovelace-dashboard
bab816a165832ac0c36e4faf5ae3a7fd67c31004
[ "MIT" ]
null
null
null
custom_components/dwains_dashboard/load_plugins.py
pavolholes/dwains-lovelace-dashboard
bab816a165832ac0c36e4faf5ae3a7fd67c31004
[ "MIT" ]
null
null
null
import logging DATA_EXTRA_MODULE_URL = 'frontend_extra_module_url' _LOGGER = logging.getLogger(__name__) def load_plugins(hass, name): if DATA_EXTRA_MODULE_URL not in hass.data: hass.data[DATA_EXTRA_MODULE_URL] = set() url_set = set() url_set.add("/dwains_dashboard/js/dwains-dashboard...
53.65625
120
0.75364
9028f820032f80750b0d5881028659e2c6f86ba6
3,427
py
Python
kubernetes/client/models/v1_load_balancer_status.py
dix000p/kubernetes-client-python
22e473e02883aca1058606092c86311f02f42be2
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_load_balancer_status.py
dix000p/kubernetes-client-python
22e473e02883aca1058606092c86311f02f42be2
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_load_balancer_status.py
dix000p/kubernetes-client-python
22e473e02883aca1058606092c86311f02f42be2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
26.984252
147
0.570178
ed95a22194a487caea28d40f2ae6c4e04bb31ea0
938
py
Python
SparkState/src/SparkState/urls.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
SparkState/src/SparkState/urls.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
null
null
null
SparkState/src/SparkState/urls.py
lumanjiao/XLS_BigData
2c4c37872b8636df1c8b0e005bc12a635a753c7a
[ "Apache-2.0" ]
5
2019-06-29T03:13:02.000Z
2020-04-23T04:47:11.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
40.782609
74
0.763326
96d8e8fa18f8aeed4c6c83986c6ad970a29dda05
251
py
Python
calender/calender/doctype/wisests/wisests.py
bahaaabed/AumAlqura
9d12d7917225d9e82b4a480c3bc8f7acf8edab77
[ "MIT" ]
null
null
null
calender/calender/doctype/wisests/wisests.py
bahaaabed/AumAlqura
9d12d7917225d9e82b4a480c3bc8f7acf8edab77
[ "MIT" ]
null
null
null
calender/calender/doctype/wisests/wisests.py
bahaaabed/AumAlqura
9d12d7917225d9e82b4a480c3bc8f7acf8edab77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2022, bahaa and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class Wisests(Document): pass
22.818182
49
0.768924
3838da9ae3173fb4e8eab12556058dc965d4dcab
97
py
Python
domain/example.py
kirberich/django-heroku-template
425443f6b7d12f0db99a218f6809d9bba5a57443
[ "MIT" ]
null
null
null
domain/example.py
kirberich/django-heroku-template
425443f6b7d12f0db99a218f6809d9bba5a57443
[ "MIT" ]
null
null
null
domain/example.py
kirberich/django-heroku-template
425443f6b7d12f0db99a218f6809d9bba5a57443
[ "MIT" ]
null
null
null
from data.models import TestModel def get(obj_id): return TestModel.objects.get(id=obj_id)
16.166667
43
0.762887
536e69b7f446e2d85d7b4c89a09698724694f79e
965
py
Python
logger.py
andyts93/plex-coming-soon
f7d83f2bf6d41675af4e772dcb2cecf545d9e3ba
[ "MIT" ]
1
2020-03-17T22:54:43.000Z
2020-03-17T22:54:43.000Z
logger.py
andyts93/plex-coming-soon
f7d83f2bf6d41675af4e772dcb2cecf545d9e3ba
[ "MIT" ]
1
2020-05-05T21:38:38.000Z
2020-05-18T10:43:27.000Z
logger.py
andyts93/plex-coming-soon
f7d83f2bf6d41675af4e772dcb2cecf545d9e3ba
[ "MIT" ]
null
null
null
import logging import sys import os from logging.handlers import TimedRotatingFileHandler LOG_FILE_NAME = os.path.dirname(__file__)+'/logs/log.log' # set up formatting formatter = logging.Formatter('[%(asctime)s] %(levelname)s (%(process)d) %(module)s:%(lineno)d %(message)s') # set up logging to STDOUT for...
29.242424
109
0.75544
8116be124837867eb1f298247bc96380e91be18f
35
py
Python
python/testData/codeInsight/controlflow/MatchStatementSingleClauseBindingSequencePattern.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/codeInsight/controlflow/MatchStatementSingleClauseBindingSequencePattern.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/codeInsight/controlflow/MatchStatementSingleClauseBindingSequencePattern.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
match 42: case [x]: y z
8.75
13
0.4
9cad242776a41b0bec1bc250b4b244b12b4279ba
1,275
py
Python
testsuites/test_douban.py
BranRoyal/automation_framework
acb9434b58e18a61605935f7e66c9c68224e8de1
[ "MIT" ]
null
null
null
testsuites/test_douban.py
BranRoyal/automation_framework
acb9434b58e18a61605935f7e66c9c68224e8de1
[ "MIT" ]
null
null
null
testsuites/test_douban.py
BranRoyal/automation_framework
acb9434b58e18a61605935f7e66c9c68224e8de1
[ "MIT" ]
null
null
null
# _*_ coding=utf-8 _*_ import time import unittest from framework.browser_engine import BrowserEngine from pageobjects.home_page import HomePage class TestDouBan(unittest.TestCase): @classmethod def setUp(cls): """ 测试固件的setUp()的代码,主要是测试的前提准备工作 :return: """ browser = B...
26.5625
86
0.600784
edae3254d91c148a979e5f2b3f83b9f3a776950f
8,825
py
Python
doc/source/conf.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
doc/source/conf.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
40
2015-04-13T02:32:42.000Z
2022-02-16T02:28:06.000Z
doc/source/conf.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
32.208029
99
0.66051
046ec54238ecec204769f55470dbe32cf28c7219
518
py
Python
api/migrations/0004_auto_20200906_1752.py
sh2MAN/yamdb_final
17f84bacd832237d88d3389605cf2acdf2a590f5
[ "BSD-3-Clause" ]
null
null
null
api/migrations/0004_auto_20200906_1752.py
sh2MAN/yamdb_final
17f84bacd832237d88d3389605cf2acdf2a590f5
[ "BSD-3-Clause" ]
null
null
null
api/migrations/0004_auto_20200906_1752.py
sh2MAN/yamdb_final
17f84bacd832237d88d3389605cf2acdf2a590f5
[ "BSD-3-Clause" ]
12
2021-02-11T16:39:00.000Z
2022-03-30T19:18:24.000Z
# Generated by Django 3.0.5 on 2020-09-06 14:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0003_auto_20200906_1745'), ] operations = [ migrations.RemoveConstraint( model_name='review', name='unique_re...
23.545455
95
0.600386
80237a621c7ba7b199d8f1c02c8f009484e6a9fd
596
py
Python
model/deeplabv3/backbone/__init__.py
steermomo/pytorch-template
bddd62ee292c9f356b4b0a305fb0832176912c80
[ "MIT" ]
1
2021-08-21T09:37:07.000Z
2021-08-21T09:37:07.000Z
model/deeplabv3/backbone/__init__.py
steermomo/pytorch-template
bddd62ee292c9f356b4b0a305fb0832176912c80
[ "MIT" ]
null
null
null
model/deeplabv3/backbone/__init__.py
steermomo/pytorch-template
bddd62ee292c9f356b4b0a305fb0832176912c80
[ "MIT" ]
null
null
null
from model.deeplabv3.backbone import resnet, mobilenet # xception, drn, def build_backbone(backbone, output_stride, BatchNorm): if backbone == 'resnet': return resnet.ResNet101(output_stride, BatchNorm) elif backbone == 'xception': # return xception.AlignedXception(output_stride, BatchNorm) ...
37.25
72
0.706376
fe34ea49356ebcb17761ed5f70cf15a890065b3a
2,187
py
Python
helper.py
zhiji95/cDCGAN-face-completion-classification
1eaad325eea5e0e8e233b805f4dbec23e1052fb3
[ "MIT" ]
11
2019-01-11T15:00:27.000Z
2020-11-11T10:05:39.000Z
helper.py
zhiji95/cDCGAN-face-completion-classification
1eaad325eea5e0e8e233b805f4dbec23e1052fb3
[ "MIT" ]
12
2020-01-28T22:06:44.000Z
2022-03-11T23:39:26.000Z
helper.py
zhiji95/cDCGAN-face-completion-classification
1eaad325eea5e0e8e233b805f4dbec23e1052fb3
[ "MIT" ]
3
2019-05-07T13:41:14.000Z
2019-07-21T18:42:18.000Z
import os import hashlib from urllib.request import urlretrieve import shutil from tqdm import tqdm def download_extract(data_path): """ Download and extract database :param database_name: Database name """ database_name = 'CelebA' url = 'https://s3-us-west-1.amazonaws.com/udacity-dlnfd/data...
31.695652
116
0.657979
858876c47b7ccdcc172524c1522bf318be23ab48
320
py
Python
lib/models/linear.py
qipengwang/TransPose
2ca260768f3b0afdb92c7a0425c3c28e9cdd379d
[ "MIT" ]
null
null
null
lib/models/linear.py
qipengwang/TransPose
2ca260768f3b0afdb92c7a0425c3c28e9cdd379d
[ "MIT" ]
null
null
null
lib/models/linear.py
qipengwang/TransPose
2ca260768f3b0afdb92c7a0425c3c28e9cdd379d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class LinearProjection(nn.Module): def __init__(self) -> None: super().__init__() self.features = [nn.Conv2d(3, 3, 8, 8)] self.model = nn.Sequential(*self.features) self.features_out = [3] def forward(self, x): return self.model(x)
26.666667
50
0.60625
bb4877ba9e24d38f6654520d945348a3b6ac7c01
3,723
py
Python
tests/test_electrochem.py
donnyyy777/pyteomics
dc0cafb16823767457fa52342574e3fa1c61b970
[ "Apache-2.0" ]
47
2020-02-29T21:47:01.000Z
2022-03-17T13:27:30.000Z
tests/test_electrochem.py
donnyyy777/pyteomics
dc0cafb16823767457fa52342574e3fa1c61b970
[ "Apache-2.0" ]
53
2020-04-07T01:40:31.000Z
2022-03-17T12:15:44.000Z
tests/test_electrochem.py
donnyyy777/pyteomics
dc0cafb16823767457fa52342574e3fa1c61b970
[ "Apache-2.0" ]
23
2020-02-29T21:47:13.000Z
2021-11-26T04:32:07.000Z
from os import path import pyteomics pyteomics.__path__ = [path.abspath(path.join(path.dirname(__file__), path.pardir, 'pyteomics'))] import unittest from pyteomics.electrochem import charge, pI from pyteomics.auxiliary import PyteomicsError class ElectrochemTest(unittest.TestCase): def setUp(self): pass ...
41.831461
96
0.425195
296b1521278318f8e12397bdc41f811ab8c7df58
8,019
py
Python
src/lib/detectors/car_pose.py
ngoductuanlhp/GAC3D
5eb8dbb025546f7d800559c685bb96969991fa87
[ "MIT" ]
5
2021-07-31T13:20:38.000Z
2022-02-22T16:50:19.000Z
src/lib/detectors/car_pose.py
ngoductuanlhp/GAC3D
5eb8dbb025546f7d800559c685bb96969991fa87
[ "MIT" ]
null
null
null
src/lib/detectors/car_pose.py
ngoductuanlhp/GAC3D
5eb8dbb025546f7d800559c685bb96969991fa87
[ "MIT" ]
2
2021-08-07T10:13:13.000Z
2021-10-12T02:05:51.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch try: from external.nms import soft_nms_39 except: print('NMS not imported! If you need it,' ' do \n cd $Cen...
42.882353
133
0.59995
3fc85871f2011bfda3cc238aad277770e381962b
4,364
py
Python
src/logs/__init__.py
michelle-holmusk/biobank
8d170373b4e7bc81188cda56b13816be16085ba6
[ "MIT" ]
null
null
null
src/logs/__init__.py
michelle-holmusk/biobank
8d170373b4e7bc81188cda56b13816be16085ba6
[ "MIT" ]
1
2021-08-23T20:43:55.000Z
2021-08-23T20:43:55.000Z
src/logs/__init__.py
michelle-holmusk/biobank
8d170373b4e7bc81188cda56b13816be16085ba6
[ "MIT" ]
null
null
null
'''Module containing helper classes for logging This module contains two classes. The first one will be used for generating a new logger object, and another one for uisng that logging object for new tasks. Each class is modeled as a decorator, that will inject a ``logging.getLogger`` instance as a first parameter o...
34.912
118
0.624427