hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
0c71acdaf0692c5c50594e6de8fdef846a2f49a3
2,425
py
Python
iproxy/ip_select.py
tempoker/third
e220c79c8646a68e96a996e0fda1346b5f7de2e3
[ "MIT" ]
null
null
null
iproxy/ip_select.py
tempoker/third
e220c79c8646a68e96a996e0fda1346b5f7de2e3
[ "MIT" ]
null
null
null
iproxy/ip_select.py
tempoker/third
e220c79c8646a68e96a996e0fda1346b5f7de2e3
[ "MIT" ]
null
null
null
#-*- conding:utf-8 -*- #2018-02-02 11:04:54 import time,random,requests from lxml import etree from fake_useragent import UserAgent import urllib.request as ur from pymongo import MongoClient from multiprocessing.dummy import Pool as ThreadPool client = MongoClient('localhost',27017) db = client['test'] ip_list = db[...
33.680556
81
0.547629
0c726da14e32932a0096adc8ac65fa50f4a28ab1
5,359
py
Python
utils/node_data_snapshot.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
utils/node_data_snapshot.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
utils/node_data_snapshot.py
nigelbowden/wlanpi-chat-bot
cedab0e83d6e33d47f66c1a3be202564f95ac408
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Read & write snapshot of node status data dumped to local file system. This data is used to detect things like sytem changes that may need to be reported. """ import json import time import logging import os import socket import psutil import netifaces as ni logging.ba...
28.505319
101
0.560552
0c729770e81b2c493f1f39b13a63dd8b4098a0c6
104
py
Python
micropsi_core/world/island/__init__.py
brucepro/micropsi2
84c304d5339f25d112da5565fb2cd98c31524f94
[ "Apache-2.0" ]
119
2015-01-23T11:24:58.000Z
2022-03-13T08:00:50.000Z
micropsi_core/world/island/__init__.py
Chediak/micropsi2
74a2642d20da9da1d64acc5e4c11aeabee192a27
[ "MIT" ]
9
2015-02-18T20:44:58.000Z
2021-09-17T14:38:05.000Z
micropsi_core/world/island/__init__.py
Chediak/micropsi2
74a2642d20da9da1d64acc5e4c11aeabee192a27
[ "MIT" ]
34
2015-04-01T20:48:49.000Z
2022-03-13T08:02:00.000Z
#!/usr/local/bin/python # -*- coding: utf-8 -*- """ """ __author__ = 'joscha' __date__ = '03.08.12'
9.454545
23
0.548077
0c72ac90b8c93f18a7c53036beae18e66ed1f754
273
py
Python
settings/DataLogger_HS2_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
settings/DataLogger_HS2_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
settings/DataLogger_HS2_settings.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
counter_name = 'I0_PIN' Size = wx.Size(1007, 726) logfile = '/net/helix/data/anfinrud_1502/Logfiles/I0_PIN-2.log' average_count = 1 max_value = 11 min_value = 0 start_fraction = 0.401 reject_outliers = False outlier_cutoff = 2.5 show_statistics = True time_window = 172800
22.75
63
0.769231
0c755c497d1f3421add1deb1d2e25dd35e398b8e
1,976
py
Python
register_printer/generators/uvm_generator/print_uvm.py
zhangyiant/RegisterPrinter
9d26032eeb486c7abc04d11794d07df2fd1dfe4e
[ "MIT" ]
null
null
null
register_printer/generators/uvm_generator/print_uvm.py
zhangyiant/RegisterPrinter
9d26032eeb486c7abc04d11794d07df2fd1dfe4e
[ "MIT" ]
4
2021-01-25T07:05:41.000Z
2021-01-25T12:07:37.000Z
register_printer/generators/uvm_generator/print_uvm.py
zhangyiant/RegisterPrinter
9d26032eeb486c7abc04d11794d07df2fd1dfe4e
[ "MIT" ]
null
null
null
import re import os import os.path import logging from register_printer.template_loader import get_template LOGGER = logging.getLogger(__name__)
20.163265
73
0.624494
0c76b0962d8629ce997e757dfe7bab0062971c5a
5,466
py
Python
django/blog/statistics.py
nekrassov01/docker-django-blog
0d3d8815e1f82dd356e9aa81e2b5d1d082cb961b
[ "MIT" ]
null
null
null
django/blog/statistics.py
nekrassov01/docker-django-blog
0d3d8815e1f82dd356e9aa81e2b5d1d082cb961b
[ "MIT" ]
null
null
null
django/blog/statistics.py
nekrassov01/docker-django-blog
0d3d8815e1f82dd356e9aa81e2b5d1d082cb961b
[ "MIT" ]
null
null
null
""" VIEW VIEW """ from django.conf import settings from django.db.models import Q, Count from django.utils import html from .models import Post, Category, Tag from datetime import datetime from janome.tokenizer import Tokenizer from janome.analyzer import Analyzer from janome.charfilter import * from ja...
38.492958
171
0.664654
0c7833d91939bf6585a47068c0db482d70b2ffe6
131
py
Python
config/__init__.py
IMBINGO95/FairMOT
c496e911a89870a9b6988d93f80e680d01ee8afc
[ "MIT" ]
null
null
null
config/__init__.py
IMBINGO95/FairMOT
c496e911a89870a9b6988d93f80e680d01ee8afc
[ "MIT" ]
null
null
null
config/__init__.py
IMBINGO95/FairMOT
c496e911a89870a9b6988d93f80e680d01ee8afc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/1/27 22:33 # @Author : BINGO # @School: # @Campany: # @FileName: __init__.py.py
18.714286
28
0.572519
0c7993194c4b04f1fd68f17d7709a5f26721129f
8,502
py
Python
xnmt/expression_seqs.py
esalesky/xnmt-devel
90598d7cc8d22a7167acf88e29df81e130fc64fc
[ "Apache-2.0" ]
4
2020-07-20T08:53:32.000Z
2020-11-25T21:21:23.000Z
xnmt/expression_seqs.py
esalesky/xnmt-devel
90598d7cc8d22a7167acf88e29df81e130fc64fc
[ "Apache-2.0" ]
null
null
null
xnmt/expression_seqs.py
esalesky/xnmt-devel
90598d7cc8d22a7167acf88e29df81e130fc64fc
[ "Apache-2.0" ]
1
2020-09-04T07:19:10.000Z
2020-09-04T07:19:10.000Z
from typing import Optional, Sequence import dynet as dy import numpy as np from xnmt import batchers
35.573222
166
0.699718
0c7a5201b457dc27f7c1cc8f8c9c04dfe54b1dc5
12,423
py
Python
test/unit/test_localdb.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_localdb.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_localdb.py
muchu1983/104_cameo
8c7f78de198a5bd8d870589402e3b7e8b59f520a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ import unittest import logging from cameo.localdb import LocalDbForCurrencyApi from cameo.localdb import LocalDbForTECHORANGE from...
62.115
149
0.738871
0c7a5957fe9864225fb891e5477469385f447a91
3,456
py
Python
complex_venv/lib/python3.7/site-packages/test/test_graph_list_of_file_inputs.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-10-06T00:21:10.000Z
2021-10-06T00:21:10.000Z
complex_venv/lib/python3.7/site-packages/test/test_graph_list_of_file_inputs.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
14
2021-01-15T21:51:38.000Z
2021-11-10T10:08:22.000Z
complex_venv/lib/python3.7/site-packages/test/test_graph_list_of_file_inputs.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-01-18T10:32:56.000Z
2021-01-18T10:32:56.000Z
import unittest from shexer.shaper import Shaper from test.const import G1, BASE_FILES, G1_NT, default_namespaces, BASE_FILES_GENERAL from test.t_utils import file_vs_str_tunned_comparison import os.path as pth from shexer.consts import NT, TURTLE _BASE_DIR = BASE_FILES + "graph_list_of_files_input" + pth.sep
54.857143
120
0.550926
0c7a6a41c0a3a1f235803d1783bd66e37bc01cb9
217
py
Python
geoscilabs/gpr/Wiggle.py
jcapriot/geosci-labs
044a73432b9cb1187924f7761942ab329259d875
[ "MIT" ]
2
2019-01-15T03:02:28.000Z
2019-03-20T03:41:12.000Z
geoscilabs/gpr/Wiggle.py
jcapriot/geosci-labs
044a73432b9cb1187924f7761942ab329259d875
[ "MIT" ]
1
2018-12-30T20:09:25.000Z
2018-12-30T20:09:25.000Z
geoscilabs/gpr/Wiggle.py
jcapriot/geosci-labs
044a73432b9cb1187924f7761942ab329259d875
[ "MIT" ]
null
null
null
import numpy as np
19.727273
57
0.645161
0c7aac81098c986f5d8ddb73b8e89765a14cd635
6,487
py
Python
tests/test_mxnet.py
haoxintong/byteps
495f1372af5f6fd4832393d5e52d4b02b42a7a03
[ "Apache-2.0" ]
1
2019-07-01T10:08:00.000Z
2019-07-01T10:08:00.000Z
tests/test_mxnet.py
haoxintong/byteps
495f1372af5f6fd4832393d5e52d4b02b42a7a03
[ "Apache-2.0" ]
null
null
null
tests/test_mxnet.py
haoxintong/byteps
495f1372af5f6fd4832393d5e52d4b02b42a7a03
[ "Apache-2.0" ]
1
2021-02-02T02:58:37.000Z
2021-02-02T02:58:37.000Z
# Copyright 2018 Uber Technologies, Inc. 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...
39.554878
80
0.564668
0c7b118e6f6819cf4d1ad8f8d9c8320221d64d32
889
py
Python
frux_app_server/migrations/versions/299e2bc265af_favorites.py
camidvorkin/frux-app-server
21098234a7867908250022e3e1c0580417d1ca35
[ "Apache-2.0", "MIT" ]
3
2021-08-03T21:52:01.000Z
2021-09-14T19:39:10.000Z
frux_app_server/migrations/versions/299e2bc265af_favorites.py
camidvorkin/frux-app-server
21098234a7867908250022e3e1c0580417d1ca35
[ "Apache-2.0", "MIT" ]
null
null
null
frux_app_server/migrations/versions/299e2bc265af_favorites.py
camidvorkin/frux-app-server
21098234a7867908250022e3e1c0580417d1ca35
[ "Apache-2.0", "MIT" ]
null
null
null
"""Favorites Revision ID: 299e2bc265af Revises: 24f1df018932 Create Date: 2021-06-25 17:24:27.020289 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '299e2bc265af' down_revision = '24f1df018932' branch_labels = None depends_on = None
25.4
65
0.68054
0c7d87c2d7143decedcd6ade00a74af0379219d4
902
py
Python
src/lib/libpasteurize/fixes/fix_newstyle.py
thonkify/thonkify
2cb4493d796746cb46c8519a100ef3ef128a761a
[ "MIT" ]
17
2017-08-04T15:41:05.000Z
2020-10-16T18:02:41.000Z
src/lib/libpasteurize/fixes/fix_newstyle.py
thonkify/thonkify
2cb4493d796746cb46c8519a100ef3ef128a761a
[ "MIT" ]
3
2017-08-04T23:37:37.000Z
2017-08-04T23:38:34.000Z
src/lib/libpasteurize/fixes/fix_newstyle.py
thonkify/thonkify
2cb4493d796746cb46c8519a100ef3ef128a761a
[ "MIT" ]
3
2017-12-07T16:30:59.000Z
2019-06-16T02:48:28.000Z
u""" Fixer for "class Foo: ..." -> "class Foo(object): ..." """ from lib2to3 import fixer_base from lib2to3.fixer_util import LParen, RParen, Name from libfuturize.fixer_util import touch_import_top
26.529412
65
0.599778
0c7de1d97913a4091e354725bc2562a43f7d9e56
14,825
py
Python
pinochle/Game.py
Atrus619/DeckOfCards
bf0668ea26041e7faab2b88a03d42ba6887d054a
[ "MIT" ]
1
2019-06-27T12:14:38.000Z
2019-06-27T12:14:38.000Z
pinochle/Game.py
Atrus619/DeckOfCards
bf0668ea26041e7faab2b88a03d42ba6887d054a
[ "MIT" ]
18
2019-07-14T17:40:22.000Z
2019-11-11T01:54:07.000Z
pinochle/Game.py
Atrus619/DeckOfCards
bf0668ea26041e7faab2b88a03d42ba6887d054a
[ "MIT" ]
null
null
null
from pinochle.State import State from classes.Deck import Deck from classes.Hand import Hand from pinochle.MeldUtil import MeldUtil from pinochle.Meld import Meld from pinochle.Trick import Trick from pinochle.MeldTuple import MeldTuple from util.Constants import Constants as cs from util.util import print_divider from...
44.924242
165
0.616256
0c806a0eaf687b2d10c9f68f4752a320058970ab
737
py
Python
.eggs/py2app-0.14-py3.6.egg/py2app/recipes/matplotlib.py
stfbnc/mtsa_py
0dd14f0e51e3251f10b3da781867fbc7173608eb
[ "MIT" ]
17
2018-08-28T04:40:07.000Z
2021-12-15T06:19:31.000Z
.eggs/py2app-0.14-py3.6.egg/py2app/recipes/matplotlib.py
stfbnc/mtsa_py
0dd14f0e51e3251f10b3da781867fbc7173608eb
[ "MIT" ]
4
2019-05-17T09:35:30.000Z
2022-03-13T03:50:20.000Z
.eggs/py2app-0.14-py3.6.egg/py2app/recipes/matplotlib.py
stfbnc/mtsa_py
0dd14f0e51e3251f10b3da781867fbc7173608eb
[ "MIT" ]
3
2019-01-15T07:13:53.000Z
2020-03-29T00:48:39.000Z
import os
24.566667
74
0.530529
0c82f844757360c3545bf98aad68a6f84622e3da
711
py
Python
app/core/migrations/0009_auto_20210214_2113.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
app/core/migrations/0009_auto_20210214_2113.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
app/core/migrations/0009_auto_20210214_2113.py
Valentin-Golyonko/FlaskTestRPi
b9796a9acb2bb1c122301a3ef192f43c857eb27b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-14 18:13 from django.db import migrations, models
29.625
138
0.613221
0c83ca38634452225fc5796f360c1d45205cc40e
1,552
py
Python
grabber.py
serj12342/pstreehunter
255b2da9a7110ca37f776baa3071ecbb10fec2f5
[ "MIT" ]
1
2022-01-03T13:30:01.000Z
2022-01-03T13:30:01.000Z
grabber.py
serj12342/pstreehunter
255b2da9a7110ca37f776baa3071ecbb10fec2f5
[ "MIT" ]
null
null
null
grabber.py
serj12342/pstreehunter
255b2da9a7110ca37f776baa3071ecbb10fec2f5
[ "MIT" ]
null
null
null
import requests import re pattern_hashes = "^[a-f0-9]{64}$" pattern_url = "https?:\/\/.*" pattern_ip = "(?:(?:\d|[01]?\d\d|2[0-4]\d|25[0-5])\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d|\d)(?:\/\d{1,2})?" pattern_domain = "^[a-zA-Z0-9][a-zA-Z0-9-_]{0,61}[a-zA-Z0-9]{0,1}\.([a-zA-Z]{1,6}|[a-zA-Z0-9-]{1,30}\.[a-zA-Z]{2,3})$" head...
32.333333
118
0.607603
0c844a07b81367c6e40feb94bf39e5508b8f654c
1,134
py
Python
prac2_2.py
JulianAZW/bookish-lamp
24f354d8fa16841f256a2ad40668126604131cef
[ "MIT" ]
1
2022-03-26T01:07:57.000Z
2022-03-26T01:07:57.000Z
prac2_2.py
JulianAZW/bookish-lamp
24f354d8fa16841f256a2ad40668126604131cef
[ "MIT" ]
null
null
null
prac2_2.py
JulianAZW/bookish-lamp
24f354d8fa16841f256a2ad40668126604131cef
[ "MIT" ]
1
2022-03-27T02:32:39.000Z
2022-03-27T02:32:39.000Z
# -*- coding: utf-8 -*- """ Created on Thu Mar 17 19:08:54 2022 @author: julian """ import pandas as pd import matplotlib.pyplot as plt import seaborn as sns if __name__=='__main__': df1 = pd.read_csv("data_train.csv", sep=',', engine='python') df2 = pd.read_csv("medianHouseValue_train.csv...
26.372093
77
0.613757
0c854c215d158012c99078b8d02a0bf8423f9708
20,048
py
Python
bookworm/ocr/ocr_dialogs.py
xingkong0113/bookworm
7214067f48e7a951198806a1f9170e3fd8fc0cce
[ "MIT" ]
36
2020-11-15T03:21:39.000Z
2022-03-05T01:11:26.000Z
bookworm/ocr/ocr_dialogs.py
xingkong0113/bookworm
7214067f48e7a951198806a1f9170e3fd8fc0cce
[ "MIT" ]
90
2020-10-06T14:46:07.000Z
2022-03-31T03:03:34.000Z
bookworm/ocr/ocr_dialogs.py
xingkong0113/bookworm
7214067f48e7a951198806a1f9170e3fd8fc0cce
[ "MIT" ]
20
2020-09-30T17:40:44.000Z
2022-03-17T19:59:53.000Z
# coding: utf-8 import wx import wx.lib.sized_controls as sc from dataclasses import dataclass from functools import partial from wx.adv import CommandLinkButton from bookworm import app from bookworm import config from bookworm import typehints as t from bookworm.i18n import LocaleInfo from bookworm.concurrency impor...
39.232877
105
0.610934
0c85c0c3fc3e88d3d1512b447e6a7c16569279b2
1,376
py
Python
nginx_rtmp_wizard/models.py
Gerhut/nginx-rtmp-wizard
c821c3bb262503ee26408b8b3bf4a252b49a29d6
[ "Unlicense" ]
null
null
null
nginx_rtmp_wizard/models.py
Gerhut/nginx-rtmp-wizard
c821c3bb262503ee26408b8b3bf4a252b49a29d6
[ "Unlicense" ]
1
2021-06-10T20:32:59.000Z
2021-06-10T20:32:59.000Z
nginx_rtmp_wizard/models.py
Gerhut/nginx-rtmp-wizard
c821c3bb262503ee26408b8b3bf4a252b49a29d6
[ "Unlicense" ]
null
null
null
from django.conf import settings from django.core import validators from django.db import models DEFAULT_RTMP_PORT = 1935
27.52
77
0.634448
0c873f69a18440e8e7c7b2463204d9290fbcbf4a
6,513
py
Python
fsmonitor/polling.py
ljmccarthy/fsmonitor
4d84d9817dce7b274cb4586b5c2091dea96982f9
[ "MIT" ]
26
2018-03-24T06:38:19.000Z
2022-02-18T10:22:51.000Z
fsmonitor/polling.py
ljmccarthy/fsmonitor
4d84d9817dce7b274cb4586b5c2091dea96982f9
[ "MIT" ]
5
2018-06-19T21:35:00.000Z
2018-06-26T21:11:38.000Z
fsmonitor/polling.py
ljmccarthy/fsmonitor
4d84d9817dce7b274cb4586b5c2091dea96982f9
[ "MIT" ]
9
2018-06-19T21:35:53.000Z
2022-03-26T17:01:11.000Z
# Copyright (c) 2012 Luke McCarthy <luke@iogopro.co.uk> # # This is free software released under the MIT license. # See COPYING file for details, or visit: # http://www.opensource.org/licenses/mit-license.php # # The file is part of FSMonitor, a file-system monitoring library. # https://github.com/shaurz/fsmonitor imp...
29.876147
81
0.60172
0c88e62584b3021b90b1b02ca77fbe06e08b2b02
2,302
py
Python
cogs/commands.py
ibx34/logger
2b99d579c5313434ef82fe500bd45aef94627696
[ "Apache-2.0" ]
null
null
null
cogs/commands.py
ibx34/logger
2b99d579c5313434ef82fe500bd45aef94627696
[ "Apache-2.0" ]
1
2021-01-21T13:06:17.000Z
2021-01-21T14:15:35.000Z
cogs/commands.py
ibx34/logger
2b99d579c5313434ef82fe500bd45aef94627696
[ "Apache-2.0" ]
null
null
null
import math import random import string from datetime import datetime, timedelta from textwrap import dedent import config import discord from discord.ext import commands import asyncio
35.415385
172
0.577324
0c8967029f04eaa76a7e75ae4334c986e1287fc3
1,887
py
Python
dataset_generator/learning/imitation/tensorflow/_layers.py
rjean/duckie-segmentation
5e720e1a96ef61c4560823030549ac1d5d16e2a4
[ "Apache-2.0" ]
1
2021-02-03T02:23:34.000Z
2021-02-03T02:23:34.000Z
dataset_generator/learning/imitation/tensorflow/_layers.py
rjean/mobile-segmentation
5e720e1a96ef61c4560823030549ac1d5d16e2a4
[ "Apache-2.0" ]
null
null
null
dataset_generator/learning/imitation/tensorflow/_layers.py
rjean/mobile-segmentation
5e720e1a96ef61c4560823030549ac1d5d16e2a4
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf L2_LAMBDA = 1e-04
29.484375
109
0.650768
0c8a7a498a0f1b713f01a2cb053d95a45b749576
3,071
py
Python
test_API/demo4.py
UppASD/aiida-uppasd
f3f26d523280cb7484ad24c826ad275a6d329c01
[ "MIT" ]
2
2020-12-03T13:29:33.000Z
2022-01-03T11:36:24.000Z
test_API/demo4.py
UppASD/aiida-uppasd
f3f26d523280cb7484ad24c826ad275a6d329c01
[ "MIT" ]
null
null
null
test_API/demo4.py
UppASD/aiida-uppasd
f3f26d523280cb7484ad24c826ad275a6d329c01
[ "MIT" ]
2
2021-04-22T07:19:21.000Z
2022-03-16T21:49:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 23 15:15:05 2021 @author: qichen """ from aiida.plugins import DataFactory, CalculationFactory from aiida.engine import run from aiida.orm import Code, SinglefileData, Int, Float, Str, Bool, List, Dict, ArrayData, XyData, SinglefileData, FolderData,...
32.670213
136
0.643113
0c8aee4b13af709adea28d410ab48e9fcca43ac4
83
py
Python
pyqt_horizontal_selection_square_graphics_view/__init__.py
berty-2007/pyqt-horizontal-selection-square-graphics-view
29d3d6f63a2d464b0c4b1d64c451439de6f1eded
[ "MIT" ]
1
2021-12-23T14:44:07.000Z
2021-12-23T14:44:07.000Z
pyqt_horizontal_selection_square_graphics_view/__init__.py
berty-2007/pyqt-horizontal-selection-square-graphics-view
29d3d6f63a2d464b0c4b1d64c451439de6f1eded
[ "MIT" ]
null
null
null
pyqt_horizontal_selection_square_graphics_view/__init__.py
berty-2007/pyqt-horizontal-selection-square-graphics-view
29d3d6f63a2d464b0c4b1d64c451439de6f1eded
[ "MIT" ]
null
null
null
from .horizontalSelectionSquareGraphicsView import * from .selectionSquare import *
41.5
52
0.86747
0c8b19dac043c6f1fd044d080e97281c266335ea
557
py
Python
src/tests/t_kadm5_hook.py
tizenorg/platform.upstream.krb5
a98efd0c8f97aba9d71c2130c048f1adc242772e
[ "MIT" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
src/tests/t_kadm5_hook.py
tizenorg/platform.upstream.krb5
a98efd0c8f97aba9d71c2130c048f1adc242772e
[ "MIT" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
src/tests/t_kadm5_hook.py
tizenorg/platform.upstream.krb5
a98efd0c8f97aba9d71c2130c048f1adc242772e
[ "MIT" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
#!/usr/bin/python from k5test import * plugin = os.path.join(buildtop, "plugins", "kadm5_hook", "test", "kadm5_hook_test.so") hook_krb5_conf = { 'all' : { "plugins" : { "kadm5_hook" : { "module" : "test:" + plugin } } } } realm = K...
24.217391
79
0.59246
0c8d8ebe08a6b4445a731df985a3abbe390f7b84
11,465
py
Python
src/visaplan/plone/tools/setup/_get_object.py
visaplan/plone.tools
080da21af710334033540cd2e7e0c63358d234d2
[ "Apache-2.0" ]
1
2021-01-04T01:30:50.000Z
2021-01-04T01:30:50.000Z
src/visaplan/plone/tools/setup/_get_object.py
visaplan/plone.tools
080da21af710334033540cd2e7e0c63358d234d2
[ "Apache-2.0" ]
null
null
null
src/visaplan/plone/tools/setup/_get_object.py
visaplan/plone.tools
080da21af710334033540cd2e7e0c63358d234d2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- vim: sw=4 sts=4 et tw=79 """ Tools fr Produkt-Setup (Migrationsschritte, "upgrade steps"): _tree """ # Python compatibility: from __future__ import absolute_import # Standard library: from posixpath import normpath # Zope: from Products.CMFCore.utils import getToolByName # Plone: from plone...
35.495356
84
0.527955
0c90583bb1e8038246e08d81681f08ae3de8075d
3,738
py
Python
tests/test_remove.py
sanjaymsh/Fiona
7be39538f7317efec3e60b8dc722af7e8fea6d52
[ "BSD-3-Clause" ]
1
2020-03-06T21:13:54.000Z
2020-03-06T21:13:54.000Z
tests/test_remove.py
sanjaymsh/Fiona
7be39538f7317efec3e60b8dc722af7e8fea6d52
[ "BSD-3-Clause" ]
null
null
null
tests/test_remove.py
sanjaymsh/Fiona
7be39538f7317efec3e60b8dc722af7e8fea6d52
[ "BSD-3-Clause" ]
1
2021-04-12T05:38:58.000Z
2021-04-12T05:38:58.000Z
import logging import sys import os import itertools from .conftest import requires_gpkg import pytest import fiona from fiona.errors import DatasetDeleteError drivers = ["ESRI Shapefile", "GeoJSON"] kinds = ["path", "collection"] specify_drivers = [True, False] test_data = itertools.product(drivers, kinds, specif...
31.677966
81
0.677368
0c90a406e4f9fdbea0679ef7fa814f9200555402
15,023
py
Python
taylor_based_methods.py
PabloAMC/TFermion
ed313a7d9cae0c4ca232732bed046f56bc8594a2
[ "Apache-2.0" ]
4
2021-12-02T09:13:16.000Z
2022-01-25T10:43:50.000Z
taylor_based_methods.py
PabloAMC/TFermion
ed313a7d9cae0c4ca232732bed046f56bc8594a2
[ "Apache-2.0" ]
3
2021-12-21T14:22:57.000Z
2022-02-05T18:35:16.000Z
taylor_based_methods.py
PabloAMC/TFermion
ed313a7d9cae0c4ca232732bed046f56bc8594a2
[ "Apache-2.0" ]
null
null
null
import math import sympy import numpy as np from scipy.special import binom import scipy
55.847584
387
0.628969
0c914b89127421ea137b1e5268f255c0188586da
775
py
Python
contoh_2.py
sumarouno/4x4-Matrix-Keypad-Library-for-CHIP
42794c3460818714fccc1c5a967e151504ef2ade
[ "MIT" ]
null
null
null
contoh_2.py
sumarouno/4x4-Matrix-Keypad-Library-for-CHIP
42794c3460818714fccc1c5a967e151504ef2ade
[ "MIT" ]
null
null
null
contoh_2.py
sumarouno/4x4-Matrix-Keypad-Library-for-CHIP
42794c3460818714fccc1c5a967e151504ef2ade
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from time import sleep from sys import exit import keypad_4x4_lib_sumar kp =keypad_4x4_lib_sumar.keypad() # Setup variables attempt = "0000" passcode = "1912" counter = 0 # Loop while waiting for a keypress while True: # Loop to get a pressed digit digit = None while digit == None: digit = ...
18.452381
43
0.658065
0c914d8fbc8a5b30dab1155628e15079383dc757
1,342
py
Python
apps/images/migrations/0001_initial.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
48
2018-04-13T13:00:10.000Z
2020-03-17T23:35:23.000Z
apps/images/migrations/0001_initial.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
77
2018-03-25T13:17:12.000Z
2020-08-11T08:24:49.000Z
apps/images/migrations/0001_initial.py
coogger/coogger
9e5e3ca172d8a14272948284a6822000b119119c
[ "MIT" ]
35
2018-03-30T21:43:21.000Z
2020-08-11T05:51:46.000Z
# Generated by Django 3.0.3 on 2020-02-28 13:21 import django.utils.timezone from django.db import migrations, models
26.84
76
0.354694
0c91e1acb55c07461c81aa43572f944b6b04b240
4,007
py
Python
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_facerec-resnet64_112_96_11G_1.3/code/get_aligned_face/api/detect_api.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
1
2020-12-18T14:49:19.000Z
2020-12-18T14:49:19.000Z
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_facerec-resnet64_112_96_11G_1.3/code/get_aligned_face/api/detect_api.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/caffe/cf_facerec-resnet64_112_96_11G_1.3/code/get_aligned_face/api/detect_api.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xilinx 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 agreed to in writing, ...
32.577236
108
0.639631
0c91e1c1cf29e15371a4ee6e5142850adc128722
1,657
py
Python
utilities/visualisation/log_file_plotter.py
bootml/agent
84235db931d6e4ef956962961c619994898ebdd5
[ "Apache-2.0" ]
null
null
null
utilities/visualisation/log_file_plotter.py
bootml/agent
84235db931d6e4ef956962961c619994898ebdd5
[ "Apache-2.0" ]
null
null
null
utilities/visualisation/log_file_plotter.py
bootml/agent
84235db931d6e4ef956962961c619994898ebdd5
[ "Apache-2.0" ]
1
2018-09-27T14:31:41.000Z
2018-09-27T14:31:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'cnheider' import csv import matplotlib.pyplot as plt import utilities as U # print(plt.style.available) plot_style = 'fivethirtyeight' # plot_style='bmh' # plot_style='ggplot' plt.style.use('seaborn-poster') plt.style.use(plot_style) plt.rcParams['axes.e...
25.106061
101
0.703681
0c91f8beba1444262adffec26a3344ef48edb987
435
py
Python
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
ex3.py
SuPoPoo/python-exercise
601b87c38c0090406cf532d2f9676b18650a0e0f
[ "MIT" ]
null
null
null
print("I will now count my chickens:") print ("Hens",25+30/6) print ("Roosters",100-25*3%4) print("How I will count the eggs:") print(3+2+1-5+4%2-1/4+6) print("Is it true that 3+2<5-7?") print(3+2<5-7) print("What is 3+2?", 3+2) print("What is 5-7?", 5-7) print("Oh,that's why it's false") print("How about some...
16.730769
38
0.62069
0c92ac74a41c6d27584a5d7d7e530d1077058597
2,385
py
Python
datasets/few_shot_test_pickle.py
PengWan-Yang/few-shot-transformer
c055239061744124c72960420cd4037495952b6d
[ "Apache-2.0" ]
4
2022-02-06T19:51:19.000Z
2022-03-15T21:19:23.000Z
datasets/few_shot_test_pickle.py
PengWan-Yang/few-shot-transformer
c055239061744124c72960420cd4037495952b6d
[ "Apache-2.0" ]
1
2022-02-06T20:00:15.000Z
2022-02-06T20:00:15.000Z
datasets/few_shot_test_pickle.py
PengWan-Yang/few-shot-transformer
c055239061744124c72960420cd4037495952b6d
[ "Apache-2.0" ]
null
null
null
import pickle # modify validation data _few_shot_pickle_file = 'few_shot_test_data.pkl' _few_shot_file = open(_few_shot_pickle_file, 'rb') data_few_shot = pickle.load(_few_shot_file) _few_shot_pickle_file = 'few_shot_val_data.pkl' _few_shot_file = open(_few_shot_pickle_file, 'rb') data_val = pickle.load(_few_shot_...
37.857143
98
0.65283
0c93992159c77c279e8541bafd3b789955b4b418
473
py
Python
3/node.py
Pavel3P/Machine-Learning
441da7de69ebf6cef9ebe54a0b3992918faf1d40
[ "MIT" ]
null
null
null
3/node.py
Pavel3P/Machine-Learning
441da7de69ebf6cef9ebe54a0b3992918faf1d40
[ "MIT" ]
null
null
null
3/node.py
Pavel3P/Machine-Learning
441da7de69ebf6cef9ebe54a0b3992918faf1d40
[ "MIT" ]
null
null
null
import numpy as np
26.277778
70
0.587738
0c960c32123fe98899d1aea36a071118d99135d2
5,654
py
Python
nemo/collections/nlp/utils/evaluation_utils.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
1
2020-08-04T08:29:41.000Z
2020-08-04T08:29:41.000Z
nemo/collections/nlp/utils/evaluation_utils.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
1
2020-06-11T00:54:42.000Z
2020-06-11T00:54:42.000Z
nemo/collections/nlp/utils/evaluation_utils.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
3
2020-03-10T05:10:07.000Z
2020-12-08T01:33:35.000Z
# ============================================================================= # Copyright 2020 NVIDIA. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://ww...
37.197368
115
0.598161
0c9646550e91efca615eedc91a6895d4f88c0e06
276
py
Python
fdk_client/common/date_helper.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/common/date_helper.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/common/date_helper.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
from datetime import datetime import pytz from .constants import TIMEZONE timezone = pytz.timezone(TIMEZONE) def get_ist_now(): """Returns Indian Standard Time datetime object. Returns: object -- Datetime object """ return datetime.now(timezone)
16.235294
52
0.710145
0c966317072167bda3878121dfa458b395fd1b61
1,357
py
Python
recipes/LibriParty/generate_dataset/get_dataset_from_metadata.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
recipes/LibriParty/generate_dataset/get_dataset_from_metadata.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
recipes/LibriParty/generate_dataset/get_dataset_from_metadata.py
JasonSWFu/speechbrain
cb78ba2b33fceba273b055dc471535344c3053f0
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
""" LibriParty Dataset creation by using official metadata. Author ------ Samuele Cornell, 2020 Mirco Ravanelli, 2020 """ import os import sys import speechbrain as sb from hyperpyyaml import load_hyperpyyaml from speechbrain.utils.data_utils import download_file from local.create_mixtures_from_metadata import create...
28.270833
77
0.745763
0c9682abb64f3ba26f9ba369881899db7f3b759b
3,440
py
Python
tests/test_py4gh.py
iCAN-PCM/py4gh
192e62d531b5fd8c4c9a04a83c98bd63795578b8
[ "Apache-2.0" ]
null
null
null
tests/test_py4gh.py
iCAN-PCM/py4gh
192e62d531b5fd8c4c9a04a83c98bd63795578b8
[ "Apache-2.0" ]
null
null
null
tests/test_py4gh.py
iCAN-PCM/py4gh
192e62d531b5fd8c4c9a04a83c98bd63795578b8
[ "Apache-2.0" ]
null
null
null
import subprocess from pathlib import Path import pytest # from py4gh import __version__ from py4gh.utility import decrypt_files, encrypt_files, get_files # def test_version(): # assert __version__ == "0.1.0" # def test_file(files): # with open(files, "r") as f: # print(f.read()) # assert...
31.559633
79
0.636047
0c96e86ca1a15c8434d2cbc7e56c0f749d433cc7
2,885
py
Python
test/sca/test_rpa.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
test/sca/test_rpa.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
test/sca/test_rpa.py
scrambler-crypto/pyecsca
491abfb548455669abd470382a48dcd07b2eda87
[ "MIT" ]
null
null
null
from unittest import TestCase from parameterized import parameterized from pyecsca.ec.context import local from pyecsca.ec.mult import LTRMultiplier, BinaryNAFMultiplier, WindowNAFMultiplier, LadderMultiplier, \ DifferentialLadderMultiplier from pyecsca.ec.params import get_params from pyecsca.sca.re.rpa import M...
41.214286
110
0.664471
0c97356ee6bbe49ca37564ac2a4ced12f750d008
624
py
Python
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
sorting-and-searching/selection-sort.py
rayruicai/coding-interview
4de5de63fe09eae488bdbde372aa1c0cb4defa85
[ "MIT" ]
null
null
null
import unittest # time complexity O(n**2) # space complexity O(1) if __name__ == "__main__": unittest.main()
22.285714
71
0.543269
0c97d3a32db9b335bffe637b1d619f3774455b40
2,930
py
Python
createExeWindows.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
createExeWindows.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
createExeWindows.py
intel/RAAD
9cca9e72ff61658191e30756bb260173d5600102
[ "Intel", "Apache-2.0" ]
null
null
null
# !/usr/bin/python3 # -*- coding: utf-8 -*- # *****************************************************************************/ # * Authors: Daniel Garces, Joseph Tarango # *****************************************************************************/ import os, datetime, traceback, optparse, shutil import PyInstall...
39.594595
121
0.509556
0c983c89d954e199eb26dc9eb1e9dfde6cd61d8c
1,395
py
Python
day10/django/app4/dateview/updateTeachPlan.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
day10/django/app4/dateview/updateTeachPlan.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
day10/django/app4/dateview/updateTeachPlan.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
from app1.models import * from app1.util.utils import * def updateTeachPlan(request): ''' get: http://127.0.0.1:8000/app4/updateTeachPlan?tpno=001&credit=7.0&teach_date=2019-08-22&evaluation_method= : tpno: credit: teach_date: evaluation_m...
35.769231
195
0.593548
0c98a8571671f7ec771a67037041f3b8e9ba1d24
274
py
Python
tests/test_tradera.py
paeronskruven/lw
a2e4b6363656812a0857a8b2cf69be3e710afe94
[ "MIT" ]
null
null
null
tests/test_tradera.py
paeronskruven/lw
a2e4b6363656812a0857a8b2cf69be3e710afe94
[ "MIT" ]
null
null
null
tests/test_tradera.py
paeronskruven/lw
a2e4b6363656812a0857a8b2cf69be3e710afe94
[ "MIT" ]
null
null
null
import lw.sources.tradera
22.833333
64
0.70438
0c98bb4fe620a4715169adb783364dc34a8d9e45
3,973
py
Python
app/app/process_data.py
yongjjang/book-rental-service
53133c88fed6e8d5d9b1374e951f5aa83598e547
[ "MIT" ]
null
null
null
app/app/process_data.py
yongjjang/book-rental-service
53133c88fed6e8d5d9b1374e951f5aa83598e547
[ "MIT" ]
null
null
null
app/app/process_data.py
yongjjang/book-rental-service
53133c88fed6e8d5d9b1374e951f5aa83598e547
[ "MIT" ]
null
null
null
from .database import db_session, init_db from .models import User, Book, BookRental from sqlalchemy import func import datetime import logging init_db() def get_tables(db_table): """ @author : TAEYONG LEE :param db_table: database table in model.py :type db_table: database model Object ...
24.524691
127
0.597533
0c998b3ac75eae9f76dce560875ced69e8123b01
6,511
py
Python
cmdb_v0.1/apps/detail/models.py
codemaker-man/projects
334aac28b72a7b466fba23df4db11e95df13a3ec
[ "MIT" ]
1
2018-12-05T05:29:46.000Z
2018-12-05T05:29:46.000Z
cmdb_v0.1/apps/detail/models.py
codemaker-man/projects
334aac28b72a7b466fba23df4db11e95df13a3ec
[ "MIT" ]
null
null
null
cmdb_v0.1/apps/detail/models.py
codemaker-man/projects
334aac28b72a7b466fba23df4db11e95df13a3ec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.db import models import django.utils.timezone as timezone # () #() # # # #
42.835526
109
0.714176
0c9a4fc23573fcb066eaa1cdddfd05b22ff7fab8
10,370
py
Python
tests/__init__.py
pywikibot-catfiles/file-metadata
79c585dcb67b966f02485136c4d875d5b5365230
[ "MIT" ]
10
2016-07-15T07:07:53.000Z
2022-02-17T07:41:03.000Z
tests/__init__.py
AbdealiJK/file-metadata
79c585dcb67b966f02485136c4d875d5b5365230
[ "MIT" ]
48
2016-03-14T06:44:36.000Z
2016-07-13T00:35:54.000Z
tests/__init__.py
pywikibot-catfiles/file-metadata
79c585dcb67b966f02485136c4d875d5b5365230
[ "MIT" ]
5
2017-04-24T07:02:22.000Z
2020-12-14T06:23:57.000Z
# -*- coding: utf-8 -*- from __future__ import (division, absolute_import, unicode_literals, print_function) # flake8: noqa (unused import and line too long due to links) import os import random import string import struct import wave try: import unittest except ImportError: import u...
56.666667
250
0.73433
0c9ae2b51288ca98ffcd2520e0ff6c3e32a621f6
5,707
py
Python
src/api/dataflow/batch/periodic/backend/validator/processings_validator.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/dataflow/batch/periodic/backend/validator/processings_validator.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/dataflow/batch/periodic/backend/validator/processings_validator.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE is licensed under the MIT License. License for BK-BASE : ------------------------------------------------------------...
51.414414
111
0.715437
0c9ae725d3c7ffae05b2711dd0cf627833bcd823
5,855
py
Python
tests/test_build_endpoint.py
lsst-sqre/ltd-dasher
176e125839b380f005a092189db760b716e8e23d
[ "MIT" ]
null
null
null
tests/test_build_endpoint.py
lsst-sqre/ltd-dasher
176e125839b380f005a092189db760b716e8e23d
[ "MIT" ]
9
2017-01-24T20:28:49.000Z
2021-10-04T15:36:17.000Z
tests/test_build_endpoint.py
lsst-sqre/ltd-dasher
176e125839b380f005a092189db760b716e8e23d
[ "MIT" ]
null
null
null
"""Test app.routes.build.""" import responses mock_product_data = { "bucket_name": "lsst-the-docs", "doc_repo": "https://github.com/lsst-sqre/test-059.git", "domain": "test-059.lsst.io", "fastly_domain": "n.global-ssl.fastly.net", "published_url": "https://test-059.lsst.io", "root_domain": "l...
28.985149
76
0.625107
0c9b0609ebab7f0a04accd501a146384f501a809
2,650
py
Python
HW2/heart.py
MohammadJRanjbar/Data-Mining
66492166df12924a754273cdaad169d84968f2e1
[ "MIT" ]
null
null
null
HW2/heart.py
MohammadJRanjbar/Data-Mining
66492166df12924a754273cdaad169d84968f2e1
[ "MIT" ]
null
null
null
HW2/heart.py
MohammadJRanjbar/Data-Mining
66492166df12924a754273cdaad169d84968f2e1
[ "MIT" ]
null
null
null
from sklearn import tree from matplotlib import pyplot as plt from sklearn.model_selection import cross_val_score from sklearn.model_selection import train_test_split from sklearn import model_selection from sklearn import metrics import numpy as np import pandas as pd import seaborn as sns from sklearn.neighbors impor...
29.444444
116
0.755849
0c9b51976e219b5f5ddeb4bf2182d69d5aa73bdd
1,202
py
Python
backend/api/migrations/0002_auto_20210517_0943.py
luxu/django-vue-luxu
a4da215697df578074e354d43dd1d9995490d0db
[ "MIT" ]
null
null
null
backend/api/migrations/0002_auto_20210517_0943.py
luxu/django-vue-luxu
a4da215697df578074e354d43dd1d9995490d0db
[ "MIT" ]
null
null
null
backend/api/migrations/0002_auto_20210517_0943.py
luxu/django-vue-luxu
a4da215697df578074e354d43dd1d9995490d0db
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-17 12:43 from django.db import migrations, models import django.db.models.deletion
33.388889
117
0.578203
0c9b6c9c5f4b186068f0fcfe5f2c329ce7772e4d
740
py
Python
Module 2/Chapter08/template_simple.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
73
2016-09-15T23:07:04.000Z
2022-03-05T15:09:48.000Z
Module 2/Chapter08/template_simple.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
null
null
null
Module 2/Chapter08/template_simple.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
51
2016-10-07T20:47:51.000Z
2021-12-22T21:00:24.000Z
__author__ = 'Chetan' from abc import ABCMeta, abstractmethod class ConcreteClass(AbstractClass): class Client: client = Client() client.main()
19.473684
70
0.660811
0ca19eadb115712fb3c48ed0a589480fef063fda
27,687
py
Python
tests/test_home.py
jeroenterheerdt/nexia
93ff554913e1dad6389b54179eca7c4ec1f29371
[ "Apache-2.0" ]
null
null
null
tests/test_home.py
jeroenterheerdt/nexia
93ff554913e1dad6389b54179eca7c4ec1f29371
[ "Apache-2.0" ]
null
null
null
tests/test_home.py
jeroenterheerdt/nexia
93ff554913e1dad6389b54179eca7c4ec1f29371
[ "Apache-2.0" ]
null
null
null
"""Tests for Nexia Home.""" import json import os from os.path import dirname import unittest import pytest from nexia.home import NexiaHome def load_fixture(filename): """Load a fixture.""" test_dir = dirname(__file__) path = os.path.join(test_dir, "fixtures", filename) with open(path) as fptr: ...
44.946429
86
0.674757
0ca1f24778ecd88cae66d775c3768ee93dee6382
6,217
py
Python
FarmSwapG.py
resake/DuelsFarm
b6a0da11af4866d4ea6caa30be1436c256a55af4
[ "MIT" ]
null
null
null
FarmSwapG.py
resake/DuelsFarm
b6a0da11af4866d4ea6caa30be1436c256a55af4
[ "MIT" ]
null
null
null
FarmSwapG.py
resake/DuelsFarm
b6a0da11af4866d4ea6caa30be1436c256a55af4
[ "MIT" ]
null
null
null
import re import time import aiohttp CHANGE_CLOTHES = True # Use swap gear ACCOUNT_ID = 'b8dd6d09-0bf1-4455-99c5-4cec41b3a789' # account id goes here if __name__ == '__main__': import asyncio loop = asyncio.get_event_loop() loop.run_until_complete(main())
37.678788
79
0.551391
0ca263d5ceb8c0df9da68a027a9e2c49d50656ac
268
py
Python
data/landice-5g/tiff_to_shp.py
scottsfarley93/IceSheetsViz
f4af84f16af875c5753dca6b8c173c253d9218d4
[ "MIT" ]
null
null
null
data/landice-5g/tiff_to_shp.py
scottsfarley93/IceSheetsViz
f4af84f16af875c5753dca6b8c173c253d9218d4
[ "MIT" ]
1
2017-02-28T18:49:04.000Z
2017-02-28T18:49:55.000Z
data/landice-5g/tiff_to_shp.py
scottsfarley93/IceSheetsViz
f4af84f16af875c5753dca6b8c173c253d9218d4
[ "MIT" ]
null
null
null
import os for filename in os.listdir("rasters"): print filename f = filename.replace(".tiff", "") tiff = "rasters/" + filename out = "shapefiles/" + f + ".shp" cmd = "gdal_polygonize.py " + tiff + " -f 'ESRI Shapefile' " + out os.system(cmd)
24.363636
70
0.589552
0ca33e888a8c5506799931e71fe1070bf6588145
3,758
py
Python
we_sensesim.py
y95847frank/GenSense
0da122bea9b7bd51444748444700b5f788bd8a48
[ "MIT" ]
3
2018-05-31T05:52:18.000Z
2019-12-20T07:15:56.000Z
we_sensesim.py
y95847frank/GenSense
0da122bea9b7bd51444748444700b5f788bd8a48
[ "MIT" ]
null
null
null
we_sensesim.py
y95847frank/GenSense
0da122bea9b7bd51444748444700b5f788bd8a48
[ "MIT" ]
null
null
null
import numpy as np import sys import utils import os from collections import defaultdict from nltk.corpus import wordnet as wn from scipy.spatial.distance import cosine from scipy.spatial.distance import correlation from numpy.linalg import norm from scipy.stats import spearmanr, pearsonr from utils import trim import...
33.256637
140
0.549228
0ca3cc7e85961f379dcec8f7f5d9db60fd5df51d
138,423
py
Python
dlkit/abstract_osid/calendaring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/abstract_osid/calendaring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/abstract_osid/calendaring/queries.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Implementations of calendaring abstract base class queries.""" # pylint: disable=invalid-name # Method names comply with OSID specification. # pylint: disable=no-init # Abstract classes do not define __init__. # pylint: disable=too-few-public-methods # Some interfaces are specified as 'markers' and inclu...
28.934574
120
0.632409
0ca4dce21686a03b945a69ccbec119c4e788576f
2,373
py
Python
scripts/republish_s3_products.py
hysds/grq2
c86704a4e46f106ab00dcdfc9a658a97097e9289
[ "Apache-2.0" ]
1
2019-10-18T21:27:56.000Z
2019-10-18T21:27:56.000Z
scripts/republish_s3_products.py
hysds/grq2
c86704a4e46f106ab00dcdfc9a658a97097e9289
[ "Apache-2.0" ]
5
2019-10-17T15:46:23.000Z
2021-06-04T22:18:36.000Z
scripts/republish_s3_products.py
hysds/grq2
c86704a4e46f106ab00dcdfc9a658a97097e9289
[ "Apache-2.0" ]
3
2018-04-08T12:53:24.000Z
2020-05-05T01:10:32.000Z
#!/usr/bin/env python from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() import json import requests import sys import os from boto.s3.connection impor...
30.423077
136
0.629583
0ca59997a346eb090f3898738011c007aac380e0
5,550
py
Python
tensorflow/emo_tflearn.py
lukewegryn/emo_net
5f8f0d047b41a978c2c96e6d0dcd8e8c05d89fe5
[ "MIT" ]
4
2017-08-15T06:52:22.000Z
2020-02-13T18:18:13.000Z
tensorflow/emo_tflearn.py
luoda888/emo_net
5f8f0d047b41a978c2c96e6d0dcd8e8c05d89fe5
[ "MIT" ]
1
2018-06-14T08:42:11.000Z
2018-06-14T08:42:11.000Z
tensorflow/emo_tflearn.py
luoda888/emo_net
5f8f0d047b41a978c2c96e6d0dcd8e8c05d89fe5
[ "MIT" ]
6
2017-08-04T13:40:35.000Z
2021-08-07T11:37:44.000Z
# First check the Python version import sys if sys.version_info < (3,4): print('You are running an older version of Python!\n\n' \ 'You should consider updating to Python 3.4.0 or ' \ 'higher as the libraries built for this course ' \ 'have only been tested in Python 3.4 and higher.\n'...
37.248322
170
0.718739
0ca67ab44bcdd00d832c2b6369f179cd48b4cfb9
1,786
py
Python
strivial/__init__.py
watsosc/strivial
aa7efe889227650d8f39b247fd0208deb71d246b
[ "Apache-2.0" ]
null
null
null
strivial/__init__.py
watsosc/strivial
aa7efe889227650d8f39b247fd0208deb71d246b
[ "Apache-2.0" ]
null
null
null
strivial/__init__.py
watsosc/strivial
aa7efe889227650d8f39b247fd0208deb71d246b
[ "Apache-2.0" ]
null
null
null
import os import logging from logging import Formatter, FileHandler from flask import Flask
29.766667
92
0.703807
0cab184754b8b6e990d3f1607a9b78c8dc5d5f41
7,421
py
Python
model_functions.py
blowe615/flower_classifier
7cdb6ebe292f90ae711f050ff24fb68e3a9570c1
[ "MIT" ]
1
2019-08-29T04:24:22.000Z
2019-08-29T04:24:22.000Z
model_functions.py
blowe615/flower_classifier
7cdb6ebe292f90ae711f050ff24fb68e3a9570c1
[ "MIT" ]
null
null
null
model_functions.py
blowe615/flower_classifier
7cdb6ebe292f90ae711f050ff24fb68e3a9570c1
[ "MIT" ]
null
null
null
import torch from torch import nn import torch.nn.functional as F #from helper_functions import process_image def train(model, trainloader, validloader, criterion, optimizer, epochs, device): ''' Train the model Inputs ------- model: torchvision model trainloader: PyTorch dataloader containing...
38.252577
107
0.603153
0cab395492740b9b3d338ab6d9a913dcbe6912e1
1,327
py
Python
src/pages/random.py
jojo935/Kemono2
bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b
[ "BSD-3-Clause" ]
null
null
null
src/pages/random.py
jojo935/Kemono2
bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b
[ "BSD-3-Clause" ]
null
null
null
src/pages/random.py
jojo935/Kemono2
bdfaf0ab2dd3c2c4a04805feea8e9fb6193cbd9b
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint, redirect, url_for, g from ..utils.utils import make_cache_key from ..internals.cache.redis import get_conn from ..internals.cache.flask_cache import cache from ..internals.database.database import get_cursor from ..lib.artist import get_artist, get_random_artist_keys from ..lib.po...
30.159091
116
0.699322
0cab46908744c082e44a614483e84981deda1786
4,258
py
Python
rljax/algorithm/tqc.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
56
2020-10-01T02:55:47.000Z
2022-03-07T08:00:25.000Z
rljax/algorithm/tqc.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
4
2020-10-02T03:52:29.000Z
2021-10-02T03:59:00.000Z
rljax/algorithm/tqc.py
kew96/rljax
f80998b7698e87ee9f81b159ba33d619e4cf77c1
[ "MIT" ]
10
2020-12-21T08:21:02.000Z
2022-01-11T03:36:20.000Z
from functools import partial from typing import List import haiku as hk import jax import jax.numpy as jnp import numpy as np from rljax.algorithm.sac import SAC from rljax.network import ContinuousQuantileFunction, StateDependentGaussianPolicy from rljax.util import quantile_loss
32.015038
118
0.59488
0cac991dc2d4d32121af9b2da9f1960fba266638
917
py
Python
benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py
Kortemme-Lab/benchmark_set_construct
ee6c9e097ff49d370936b41f102ada006fb4441a
[ "MIT" ]
null
null
null
benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py
Kortemme-Lab/benchmark_set_construct
ee6c9e097ff49d370936b41f102ada006fb4441a
[ "MIT" ]
null
null
null
benchmark_constructor/file_normalizers/ContactSelectFileNormalizer.py
Kortemme-Lab/benchmark_set_construct
ee6c9e097ff49d370936b41f102ada006fb4441a
[ "MIT" ]
null
null
null
import os from .FileNormalizer import FileNormalizer
31.62069
94
0.691385
0cac9d083e4dfd2daccd29d3da4102e79f646255
1,919
py
Python
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
68
2015-02-07T06:09:49.000Z
2022-03-03T22:58:33.000Z
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
436
2015-01-01T01:01:13.000Z
2021-11-07T18:24:00.000Z
neurovault/apps/statmaps/tests/test_qa.py
abitrolly/NeuroVault
e62bc65c8e0e58bff55bb9fa7cf11193dc54d734
[ "MIT" ]
60
2015-01-10T23:31:26.000Z
2021-08-10T06:39:57.000Z
import os import nibabel as nb import numpy as np from django.test import TestCase from neurovault.apps.statmaps.models import BaseStatisticMap from neurovault.apps.statmaps.utils import is_thresholded, infer_map_type
50.5
112
0.684211
0cad53d938be9fc089dc7d7cacb7515f952a2770
1,758
py
Python
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
5
2017-06-24T22:54:13.000Z
2020-02-13T17:23:12.000Z
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
2
2017-06-24T12:07:22.000Z
2017-06-25T18:12:24.000Z
src/crawler/input_data/spiders/bitcointalk.py
HofmannZ/global-ai-hackathon--truth-coin
9f544cdb05de0811796d2465fba64875ee77cdab
[ "MIT" ]
1
2017-08-02T12:37:52.000Z
2017-08-02T12:37:52.000Z
# -*- coding: utf-8 -*- import scrapy
33.807692
92
0.585324
0cae04c95140cd33bca1362795247caf69458f47
9,770
py
Python
fugue/column/functions.py
kvnkho/fugue
5f3fe8f1fb72632e5b5987d720c1d1ef546e4682
[ "Apache-2.0" ]
547
2020-09-22T08:30:14.000Z
2022-03-30T23:11:05.000Z
fugue/column/functions.py
kvnkho/fugue
5f3fe8f1fb72632e5b5987d720c1d1ef546e4682
[ "Apache-2.0" ]
196
2020-09-22T23:08:26.000Z
2022-03-26T21:22:48.000Z
fugue/column/functions.py
kvnkho/fugue
5f3fe8f1fb72632e5b5987d720c1d1ef546e4682
[ "Apache-2.0" ]
37
2020-09-23T17:05:00.000Z
2022-03-29T18:26:52.000Z
from typing import Any, Optional import pyarrow as pa from fugue.column.expressions import ( ColumnExpr, _FuncExpr, _to_col, function, ) from triad import Schema def coalesce(*args: Any) -> ColumnExpr: """SQL ``COALESCE`` function :param args: If a value is not :class:`~fugue.column.expressi...
26.334232
80
0.572467
0cae7bc6d95d0a5148d10292b4933dd1fd93753f
1,968
py
Python
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
13
2020-08-06T17:05:50.000Z
2021-11-08T13:12:11.000Z
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
4
2020-09-20T05:30:39.000Z
2021-04-01T08:35:40.000Z
chapters/10/src/biglittle/entity/user.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
12
2020-08-07T06:45:43.000Z
2021-12-08T06:58:23.000Z
# biglittle.entity.user # tell python where to find module source code import os,sys sys.path.append(os.path.realpath('../../../src')) from biglittle.entity.base import Base
22.363636
57
0.427846
0caedcb03495a9332700a86dd6b9b7674d0e59ac
32
py
Python
gaia-sdk-python/conftest.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
null
null
null
gaia-sdk-python/conftest.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
10
2019-11-14T07:55:47.000Z
2022-02-26T19:36:45.000Z
gaia-sdk-python/conftest.py
leftshiftone/gaia-sdk
7e0d1ce054fada8ae154da70b71e8a90347c9f97
[ "MIT" ]
2
2020-05-12T11:09:53.000Z
2020-12-25T14:03:04.000Z
# enabled testing relative paths
32
32
0.84375
0caeebf4e3ed3af12c71f32665fdf047f4676dd8
497
py
Python
backend/app/utils.py
dashdashforce/int20h-test-photo-viewer
1720ec2c30685eac9d1e5ef9ecf3d389239ee566
[ "MIT" ]
null
null
null
backend/app/utils.py
dashdashforce/int20h-test-photo-viewer
1720ec2c30685eac9d1e5ef9ecf3d389239ee566
[ "MIT" ]
20
2019-02-04T21:57:59.000Z
2019-02-10T21:50:17.000Z
backend/app/utils.py
dashdashforce/int20h-test-photo-viewer
1720ec2c30685eac9d1e5ef9ecf3d389239ee566
[ "MIT" ]
null
null
null
from functools import reduce from itertools import groupby from operator import add, itemgetter
24.85
68
0.682093
0cb1a795ec8e001999c9a8e30123e5f34107264b
1,484
py
Python
backend/venue_scraper.py
illicitonion/edfringeplanner
ab6d4a3218ee211de5078b3205fd39da1fbdfb50
[ "BSD-3-Clause" ]
null
null
null
backend/venue_scraper.py
illicitonion/edfringeplanner
ab6d4a3218ee211de5078b3205fd39da1fbdfb50
[ "BSD-3-Clause" ]
null
null
null
backend/venue_scraper.py
illicitonion/edfringeplanner
ab6d4a3218ee211de5078b3205fd39da1fbdfb50
[ "BSD-3-Clause" ]
null
null
null
from selenium import webdriver from config import Config from db import cursor venues = tuple(get_venues()) with cursor(Config.from_env()) as cur: cur.execute("SELECT edfringe_number FROM venues") existing = {row[0] for row in cur.fetchall()} for venue in sorted(venues): if venue[0] in existin...
32.26087
108
0.574798
0cb24ca44f49e7024594f31e5eea8a2d6ed7620b
1,437
py
Python
Source Files/auth.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
1
2021-05-18T21:32:43.000Z
2021-05-18T21:32:43.000Z
Source Files/auth.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
null
null
null
Source Files/auth.py
clever-username/baseball-card-inventory
9940ba746072892961b7ade586e63f7deb26d2e6
[ "MIT" ]
2
2015-05-18T14:52:01.000Z
2015-05-19T18:21:51.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """This program prompts for a password.""" import authentication import getpass def login(username, maxattempts=3): """This function takes input from a user and checks the password. Arg: username(str): String input from user. maxattempts...
31.933333
78
0.592206
0cb26210fdbce5c2de9ff66cfbeec89817eff49b
267
py
Python
tests/test_utils.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
1
2017-08-13T09:50:06.000Z
2017-08-13T09:50:06.000Z
tests/test_utils.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
yehzhang/dscraper
6fd1a4238795e9eb01b9dd8329a84495a70979d1
[ "Apache-2.0" ]
null
null
null
import unittest import logging import xml.etree.ElementTree as et import dscraper.utils as utils logger = logging.getLogger(__name__)
14.833333
36
0.692884
0cb5558fd712cd9664d2840e0dfa1433d69b0ae5
7,491
py
Python
CameraCalibration.py
lsmanoel/StereoVision
22e9a422a217290e6fb2b71afc663db87e530842
[ "MIT" ]
null
null
null
CameraCalibration.py
lsmanoel/StereoVision
22e9a422a217290e6fb2b71afc663db87e530842
[ "MIT" ]
null
null
null
CameraCalibration.py
lsmanoel/StereoVision
22e9a422a217290e6fb2b71afc663db87e530842
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob from matplotlib import pyplot as plt # $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ # $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ # $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ # CameraCalibration.testbench(video_so...
39.015625
128
0.394206
0cb626407dc59dff1be601a5e0499c7a012ea0ad
75
py
Python
app/database/base.py
CabetoDP/fastapi-crud
bbeef58b74b7a010037ca8503a7f05f8b4db2ab4
[ "MIT" ]
null
null
null
app/database/base.py
CabetoDP/fastapi-crud
bbeef58b74b7a010037ca8503a7f05f8b4db2ab4
[ "MIT" ]
null
null
null
app/database/base.py
CabetoDP/fastapi-crud
bbeef58b74b7a010037ca8503a7f05f8b4db2ab4
[ "MIT" ]
null
null
null
from app.database.base_class import Base from app.models.place import Place
37.5
40
0.853333
0cb66d2801b2daaa2e8e7ffbed52fec520091038
3,499
py
Python
yolox/models/simo_fpn.py
RawFisher/YOLOX
bec9423bdd25a9e85b976c32d774e31a33fcefed
[ "Apache-2.0" ]
null
null
null
yolox/models/simo_fpn.py
RawFisher/YOLOX
bec9423bdd25a9e85b976c32d774e31a33fcefed
[ "Apache-2.0" ]
null
null
null
yolox/models/simo_fpn.py
RawFisher/YOLOX
bec9423bdd25a9e85b976c32d774e31a33fcefed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import torch import torch.nn as nn from .sdc_darknet import SDCCSPDarknet # from .simo_darknet import SIMOCSPDarknet from .network_blocks import BaseConv, CSPLayer, DWConv from .network_blocks import get_activatio...
30.964602
115
0.595027
0cb6a5d9b64c81ee9b97838a133419cdba2cb50d
326
py
Python
benchmark/mysql_benchmark.py
AlonFischer/SpatialDatabaseBench
1fe933bd4196ba17c687f04c37cb5a34acc6d824
[ "Apache-2.0" ]
1
2020-11-17T22:56:56.000Z
2020-11-17T22:56:56.000Z
benchmark/mysql_benchmark.py
AlonFischer/SpatialDatabaseBench
1fe933bd4196ba17c687f04c37cb5a34acc6d824
[ "Apache-2.0" ]
null
null
null
benchmark/mysql_benchmark.py
AlonFischer/SpatialDatabaseBench
1fe933bd4196ba17c687f04c37cb5a34acc6d824
[ "Apache-2.0" ]
null
null
null
from benchmark.benchmark import Benchmark from mysqlutils.mysqladapter import MySQLAdapter
29.636364
58
0.754601
0cb86fe9bbc7f2cf6d3e6c50ebc4e8bef2550fd2
316
py
Python
packages/core/minos-microservice-networks/tests/test_networks/test_exceptions.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-networks/tests/test_networks/test_exceptions.py
sorasful/minos-python
1189330eebf6444627a2af6b29f347670f95a4dd
[ "MIT" ]
275
2021-04-03T09:23:40.000Z
2022-01-28T11:56:25.000Z
tests/test_networks/test_exceptions.py
Clariteia/minos_microservice_networks
77f239429653272c5cb3447311513143f8521ed9
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
import unittest from minos.common import ( MinosException, ) from minos.networks import ( MinosNetworkException, ) if __name__ == "__main__": unittest.main()
17.555556
74
0.737342
0cb88d9738f070179ad3791e8725e49dddde3cbd
45
py
Python
Weltantschauung/__init__.py
area42/Weltanschauung-
85694740f149aa741f69a67bf234b447ba11fb22
[ "MIT" ]
null
null
null
Weltantschauung/__init__.py
area42/Weltanschauung-
85694740f149aa741f69a67bf234b447ba11fb22
[ "MIT" ]
null
null
null
Weltantschauung/__init__.py
area42/Weltanschauung-
85694740f149aa741f69a67bf234b447ba11fb22
[ "MIT" ]
null
null
null
from .Weltantschauung import Weltantschauung
22.5
44
0.888889
0cb8ec1c4a754eeb4820931d43bc795cf047e17e
187
py
Python
api/messages/csv_file.py
pikanezi/Roadkill
b2c69294afa4cce810fa898f3aa1cb467bffa413
[ "MIT" ]
null
null
null
api/messages/csv_file.py
pikanezi/Roadkill
b2c69294afa4cce810fa898f3aa1cb467bffa413
[ "MIT" ]
null
null
null
api/messages/csv_file.py
pikanezi/Roadkill
b2c69294afa4cce810fa898f3aa1cb467bffa413
[ "MIT" ]
null
null
null
__author__ = 'Vincent' from protorpc import messages
26.714286
50
0.759358
0cb8edc3aaa4ea60cf2e8cdba8dd3f71fa79f1ce
1,510
py
Python
run.py
whyjay/memoryGAN
cfc5e8cf37f9537a3136595a6afa734335622202
[ "MIT" ]
44
2018-03-05T06:11:31.000Z
2022-03-30T06:40:24.000Z
run.py
whyjay/memoryGAN
cfc5e8cf37f9537a3136595a6afa734335622202
[ "MIT" ]
3
2018-03-20T03:17:23.000Z
2018-07-29T11:46:34.000Z
run.py
whyjay/memoryGAN
cfc5e8cf37f9537a3136595a6afa734335622202
[ "MIT" ]
11
2018-04-01T18:24:53.000Z
2020-10-15T08:55:21.000Z
import os import numpy as np import tensorflow as tf from models.config import Config from models.memory_gan import MemoryGAN from models.test_generation import test_generation from models.train import train from utils import pp, visualize, to_json os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' flags = tf.app.flags flags....
31.458333
98
0.724503
0cb901c85f60e28cdd422152266e1ce6e9afaf21
2,164
py
Python
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
5
2017-10-19T15:11:52.000Z
2020-03-08T07:16:21.000Z
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
182
2017-06-21T19:32:13.000Z
2021-03-22T13:38:16.000Z
web/impact/impact/views/calendar_reminder_view.py
masschallenge/impact-api
81075ced8fcc95de9390dd83c15e523e67fc48c0
[ "MIT" ]
1
2018-06-23T11:53:18.000Z
2018-06-23T11:53:18.000Z
from django.views import View from django.http import HttpResponseRedirect from add2cal import Add2Cal from pytz import timezone import datetime from django.http import ( JsonResponse, HttpResponse ) ADD2CAL_DATE_FORMAT = "%Y%m%dT%H%M%S" CALENDAR_CONTENT_TYPE = 'text/calendar' OUTLOOK_LINK_TYPE = 'outlook' GOO...
35.47541
79
0.636322
0cb93959fe2a17c6bba6b5049a41d091d98ecf1d
1,174
py
Python
slixmpp/plugins/xep_0421/stanza.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0421/stanza.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0421/stanza.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2020 "Maxime pep Buquet <pep@bouah.net>" This file is part of Slixmpp. See the file LICENSE for copying permission. """ from slixmpp.xmlstream import ElementBase NS = 'urn:xmpp:occupant-id:0'
28.634146
78
0.663543
0cba78e638ec2faf5f7126a5c233d72920bc6dd8
3,458
py
Python
poseidon/dags/traffic_counts/traffic_counts_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
poseidon/dags/traffic_counts/traffic_counts_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
poseidon/dags/traffic_counts/traffic_counts_jobs.py
panda-tech/poseidon-airflow
bce5bc02b55f15330635a436056d99acb93488ef
[ "Apache-2.0" ]
null
null
null
"""Traffic counts _jobs file.""" import pandas as pd import logging from subprocess import Popen, PIPE from trident.util import general conf = general.config fy = general.get_FY_year() def get_traffic_counts(out_fname='traffic_counts_file'): """Get traffic counts file from shared drive.""" logging.info(f'Ret...
32.317757
79
0.571429
0cba867a6c14d6b3104167202a30906c2120dfc6
2,624
py
Python
metaquantome/modules/run_viz.py
jj-umn/metaquantome
46461dea0914b9c153985e02c594eeb781bf3a27
[ "Apache-2.0" ]
4
2019-03-19T10:40:34.000Z
2021-08-16T14:10:53.000Z
metaquantome/modules/run_viz.py
jj-umn/metaquantome
46461dea0914b9c153985e02c594eeb781bf3a27
[ "Apache-2.0" ]
35
2018-11-15T18:33:39.000Z
2021-02-20T20:37:55.000Z
metaquantome/modules/run_viz.py
jj-umn/metaquantome
46461dea0914b9c153985e02c594eeb781bf3a27
[ "Apache-2.0" ]
6
2018-11-16T03:10:45.000Z
2021-02-24T20:56:45.000Z
import os import subprocess import json from metaquantome.util.utils import BASE_DIR from metaquantome.classes.SampleGroups import SampleGroups def run_viz(plottype, img, infile, strip=None, mode=None, meancol=None, nterms='5', target_rank=None, barcol=6, # barplot, stacked_bar textannot=Non...
47.709091
141
0.676829
0cbd16de6a3b89e4146e58d8e4a4fcddb5bba48b
7,173
py
Python
src/mtweepy/__init__.py
Souvic/mtweepy
26c5480aee1032a38335018efc66610b6960f7d4
[ "MIT" ]
1
2021-07-04T09:30:10.000Z
2021-07-04T09:30:10.000Z
src/mtweepy/__init__.py
Souvic/mtweepy
26c5480aee1032a38335018efc66610b6960f7d4
[ "MIT" ]
null
null
null
src/mtweepy/__init__.py
Souvic/mtweepy
26c5480aee1032a38335018efc66610b6960f7d4
[ "MIT" ]
null
null
null
import json import multiprocessing import os import requests from requests_oauthlib import OAuth1 from time import sleep import tweepy
33.518692
196
0.539384
0cbd7b1b3648a635297e6eb2447f59f26aa10163
49,924
py
Python
pyUSID/io/hdf_utils/model.py
rajgiriUW/pyUSID
064dcd81d9c42f4eb4782f0a41fd437b3f56f50c
[ "MIT" ]
25
2018-07-11T21:43:56.000Z
2021-11-17T11:40:00.000Z
pyUSID/io/hdf_utils/model.py
rajgiriUW/pyUSID
064dcd81d9c42f4eb4782f0a41fd437b3f56f50c
[ "MIT" ]
62
2018-07-05T20:28:52.000Z
2021-12-14T09:49:35.000Z
pyUSID/io/hdf_utils/model.py
rajgiriUW/pyUSID
064dcd81d9c42f4eb4782f0a41fd437b3f56f50c
[ "MIT" ]
15
2019-03-27T22:28:47.000Z
2021-01-03T20:23:42.000Z
# -*- coding: utf-8 -*- """ Utilities for reading and writing USID datasets that are highly model-dependent (with or without N-dimensional form) Created on Tue Nov 3 21:14:25 2015 @author: Suhas Somnath, Chris Smith """ from __future__ import division, print_function, absolute_import, unicode_literals from warnings ...
45.303085
223
0.640834
0cbd80d538ed5aeecd342647472ca2c49593352a
3,110
py
Python
TaxPy/data_processing/export_reads.py
stenglein-lab/TaxAssessor
144599d1395627c4e86ab68a4d6d3e0785e606f0
[ "MIT" ]
null
null
null
TaxPy/data_processing/export_reads.py
stenglein-lab/TaxAssessor
144599d1395627c4e86ab68a4d6d3e0785e606f0
[ "MIT" ]
2
2016-11-29T19:48:27.000Z
2016-12-09T17:18:56.000Z
TaxPy/data_processing/export_reads.py
stenglein-lab/TaxAssessor
144599d1395627c4e86ab68a4d6d3e0785e606f0
[ "MIT" ]
null
null
null
#!/usr/bin/python import json import timeit import re import TaxPy.db_management.db_wrap as TaxDb from itertools import izip
27.280702
76
0.618971
0cbdc5e7cc5bd19da3d1e30a35d3c1cd8334e753
1,209
py
Python
python/caliper-reader/setup.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
220
2016-01-19T19:00:10.000Z
2022-03-29T02:09:39.000Z
python/caliper-reader/setup.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
328
2016-05-12T15:47:30.000Z
2022-03-30T19:42:02.000Z
python/caliper-reader/setup.py
slabasan/Caliper
85601f48e7f883fb87dec85e92c849eec2bb61f7
[ "BSD-3-Clause" ]
48
2016-03-04T22:04:39.000Z
2021-12-18T12:11:43.000Z
# Copyright (c) 2020-20201, Lawrence Livermore National Security, LLC. # See top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import setuptools from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with ope...
31.815789
87
0.715467
0cbded3b957b5b9247296e61a096662c54742d11
774
py
Python
programming_fundamentals/python_part_2/common_vars.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
629
2017-12-15T20:26:13.000Z
2022-03-30T04:02:02.000Z
programming_fundamentals/python_part_2/common_vars.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
40
2018-01-18T09:07:50.000Z
2021-09-23T23:21:47.000Z
programming_fundamentals/python_part_2/common_vars.py
tobaidullah/2
3fa67855ef461ccaee283dcbbdd9bf00e7a52378
[ "MIT" ]
394
2017-12-18T22:35:36.000Z
2022-03-29T19:41:25.000Z
#! /usr/bin/env python """ Learning Series: Network Programmability Basics Module: Programming Fundamentals Lesson: Python Part 2 Author: Hank Preston <hapresto@cisco.com> common_vars.py Illustrate the following concepts: - Code reuse imported into other examples """ shapes = ["square", "triangle", "circle"] books =...
22.764706
56
0.485788
0cc0715c89b9cf37ccc8268295889e035e429cd7
4,118
py
Python
forms.py
godsgift/gdohs
fc7fa4e010b7c508c3c1154255fa2ded0534fb1d
[ "MIT" ]
null
null
null
forms.py
godsgift/gdohs
fc7fa4e010b7c508c3c1154255fa2ded0534fb1d
[ "MIT" ]
null
null
null
forms.py
godsgift/gdohs
fc7fa4e010b7c508c3c1154255fa2ded0534fb1d
[ "MIT" ]
null
null
null
from flask_wtf import Form from wtforms import TextField, PasswordField, validators, IntegerField, BooleanField, SelectField, SubmitField from wtforms.validators import Required, Length, Email, ValidationError, Regexp, EqualTo, NumberRange from wtforms.widgets import SubmitInput
52.126582
118
0.723409
0cc0bf99ee01e613b032f7efe713db47ddaef6b6
1,137
py
Python
ossdbtoolsservice/metadata/contracts/object_metadata.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
33
2019-05-27T13:04:35.000Z
2022-03-17T13:33:05.000Z
ossdbtoolsservice/metadata/contracts/object_metadata.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
31
2019-06-10T01:55:47.000Z
2022-03-09T07:27:49.000Z
ossdbtoolsservice/metadata/contracts/object_metadata.py
DaeunYim/pgtoolsservice
b7e548718d797883027b2caee2d4722810b33c0f
[ "MIT" ]
25
2019-05-13T18:39:24.000Z
2021-11-16T03:07:33.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
34.454545
156
0.591029
0cc14f945ff11b1ec78d14d582d03623e82355fd
4,657
py
Python
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
5
2021-01-05T23:16:55.000Z
2021-07-23T12:26:06.000Z
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
null
null
null
tools/multiscale_shape.py
marvin-eisenberger/hamiltonian-interpolation
d18c2f401feffc672998c5fa1d50c1de03dba902
[ "MIT" ]
1
2021-02-22T08:31:05.000Z
2021-02-22T08:31:05.000Z
import torch from shape_utils import Shape, load_shape_pair, scatter_shape_pair from torch_geometric.nn import knn from param import * from arap_potential import arap_vert def load_multiscale_shapes(folder_path, file_name, scales, offset=0.5*torch.ones([3], device=device, dtype=torch.float32)): """Like 'load_shap...
33.503597
126
0.665235
0cc186344e52a624e94b0910847681d7c50bf522
7,919
py
Python
src/RBF.py
KastnerRG/sherlock
ba3e8a81e08315df169bb5dd76d9fdd8f2660583
[ "CC-BY-4.0" ]
null
null
null
src/RBF.py
KastnerRG/sherlock
ba3e8a81e08315df169bb5dd76d9fdd8f2660583
[ "CC-BY-4.0" ]
null
null
null
src/RBF.py
KastnerRG/sherlock
ba3e8a81e08315df169bb5dd76d9fdd8f2660583
[ "CC-BY-4.0" ]
null
null
null
import numpy as np import scipy import scipy.linalg as linalg import scipy.spatial import scipy.special import scipy.optimize import sklearn def RBF_unit_test(): import matplotlib.pyplot as plt import time # Generate synthetic 1-d data N = 300 lo = -10.0 hi = 1...
32.858921
164
0.56194
0cc31eec76a99a4705096b18e21f9ea4dd88bce8
523
py
Python
web/pyshop/admin.py
Andrew7891-kip/Ecommerce-pyshop
2eaa7b553789b65992cbd80f80a68fcf25ef0efd
[ "Apache-2.0" ]
null
null
null
web/pyshop/admin.py
Andrew7891-kip/Ecommerce-pyshop
2eaa7b553789b65992cbd80f80a68fcf25ef0efd
[ "Apache-2.0" ]
null
null
null
web/pyshop/admin.py
Andrew7891-kip/Ecommerce-pyshop
2eaa7b553789b65992cbd80f80a68fcf25ef0efd
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Product,ProductAdmin) admin.site.register(Cart,CartAdmin) admin.site.register(Order,OrderAdmin) admin.site.register(Checkout) # Register your models here.
20.115385
47
0.743786
0cc3636c2c8cdfc0167b425c8f83724d3610d2e3
1,063
py
Python
extract/tef/incident_reflected_power_test.py
PuffyPuffin/LO_user
c7cafc2045b027aad0098d034cbe2b70126c8379
[ "MIT" ]
null
null
null
extract/tef/incident_reflected_power_test.py
PuffyPuffin/LO_user
c7cafc2045b027aad0098d034cbe2b70126c8379
[ "MIT" ]
null
null
null
extract/tef/incident_reflected_power_test.py
PuffyPuffin/LO_user
c7cafc2045b027aad0098d034cbe2b70126c8379
[ "MIT" ]
null
null
null
""" Test of the cancellation of terms in the calculation of tidal energy flux. This will follow Mofjeld's notation. F is proportional to the energy flux of the original signal, and FF is proportional to the sum of the energy fluxes of the incident and reflected waves. RESULT: The two net fluxes are only equal for ze...
25.309524
78
0.659454
0cc371f590d58414f3d55a84eb2346850fb66bd9
552
py
Python
tests/test_recipe.py
iruoma/DevCookbook
e13b955bc2dbfaacab1852d857af058aab0029e5
[ "MIT" ]
20
2020-10-28T03:06:41.000Z
2021-11-15T02:52:43.000Z
tests/test_recipe.py
iruoma/DevCookbook
e13b955bc2dbfaacab1852d857af058aab0029e5
[ "MIT" ]
15
2020-12-04T00:47:59.000Z
2021-03-23T11:42:48.000Z
tests/test_recipe.py
iruoma/DevCookbook
e13b955bc2dbfaacab1852d857af058aab0029e5
[ "MIT" ]
22
2020-11-24T14:02:07.000Z
2022-02-01T18:52:26.000Z
from recipe_compiler.recipe import Recipe from recipe_compiler.recipe_category import RecipeCategory
23
80
0.664855
0cc46073749631b895fb07e8351d82807fbd6e14
2,140
py
Python
lms_app/v1/serializers/user_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
null
null
null
lms_app/v1/serializers/user_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
1
2021-06-02T00:45:56.000Z
2021-06-02T00:45:56.000Z
lms_app/v1/serializers/user_serializers.py
Etomovich/lms-backend
e586abc44a0e74ed28da7a77f6ef31230995c84b
[ "MIT" ]
null
null
null
from flask_restplus import Namespace, fields
33.4375
70
0.574299