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
3b609c46e8acbabd432957bab07543eeb95588cd
1,688
py
Python
pyprocessing/renderer/tkinter/renderer.py
InfiniteSwerve/pyprocessing
cfc4574c5d2f65a7f95016f3b406475109c5246b
[ "MIT" ]
null
null
null
pyprocessing/renderer/tkinter/renderer.py
InfiniteSwerve/pyprocessing
cfc4574c5d2f65a7f95016f3b406475109c5246b
[ "MIT" ]
null
null
null
pyprocessing/renderer/tkinter/renderer.py
InfiniteSwerve/pyprocessing
cfc4574c5d2f65a7f95016f3b406475109c5246b
[ "MIT" ]
null
null
null
import tkinter as tk from pyprocessing.renderer.tkinter.window import Window
31.849057
79
0.637441
3b60ef8e91e7392daee62726820909fae0e9778a
2,345
py
Python
erica/api/v2/endpoints/tax.py
digitalservice4germany/erica
7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2
[ "MIT" ]
3
2022-01-31T15:17:17.000Z
2022-03-01T16:15:47.000Z
erica/api/v2/endpoints/tax.py
digitalservice4germany/erica
7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2
[ "MIT" ]
59
2022-01-31T14:04:20.000Z
2022-03-31T20:08:47.000Z
erica/api/v2/endpoints/tax.py
digitalservice4germany/erica
7e07d88f3db78ab6e4f7cccad8dfef2a4b3a71b2
[ "MIT" ]
1
2022-03-10T09:24:28.000Z
2022-03-10T09:24:28.000Z
from uuid import UUID from fastapi import status, APIRouter from starlette.requests import Request from starlette.responses import FileResponse, RedirectResponse from erica.api.v2.responses.model import response_model_get_tax_number_validity_from_queue, response_model_post_to_queue from erica.application.JobService.job...
49.893617
132
0.816205
3b625b2731273ccb49023bc715fec206170cb4de
110
py
Python
libsvc/persistence/__init__.py
derekmerck/endpoint
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
[ "MIT" ]
null
null
null
libsvc/persistence/__init__.py
derekmerck/endpoint
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
[ "MIT" ]
null
null
null
libsvc/persistence/__init__.py
derekmerck/endpoint
5b74f0b3303bbf419a6c9f71e9a4a156583bf51d
[ "MIT" ]
null
null
null
from .persistence import PersistenceBackend, ShelfMixin from .redis_persistence import RedisPersistenceBackend
55
55
0.9
3b628b55e83a5d18872091cffecbc52c87f05478
151
py
Python
py/redrock/__init__.py
michaelJwilson/redrock
477c3d231514b1926dca493f8ab121aa194917bb
[ "BSD-3-Clause" ]
14
2017-09-22T23:57:33.000Z
2022-03-15T10:36:16.000Z
py/redrock/__init__.py
michaelJwilson/redrock
477c3d231514b1926dca493f8ab121aa194917bb
[ "BSD-3-Clause" ]
154
2017-06-04T22:57:39.000Z
2022-03-11T23:01:16.000Z
py/redrock/__init__.py
michaelJwilson/redrock
477c3d231514b1926dca493f8ab121aa194917bb
[ "BSD-3-Clause" ]
10
2017-06-09T15:24:59.000Z
2021-05-26T13:16:42.000Z
""" redrock ======= Redrock redshift fitter. """ from __future__ import absolute_import, division, print_function from ._version import __version__
13.727273
64
0.754967
3b641a0c2766ce37091f0a6b3166ad667f6adaa2
2,209
py
Python
pyrez/api/APIBase.py
pytheous/Pyrez
85f6f27359288b5f0ad70ff543f247843ac326f9
[ "MIT" ]
null
null
null
pyrez/api/APIBase.py
pytheous/Pyrez
85f6f27359288b5f0ad70ff543f247843ac326f9
[ "MIT" ]
null
null
null
pyrez/api/APIBase.py
pytheous/Pyrez
85f6f27359288b5f0ad70ff543f247843ac326f9
[ "MIT" ]
null
null
null
from ..exceptions.ServiceUnavailable import ServiceUnavailable from ..logging import create_logger from ..utils.http import http_request
30.680556
124
0.593481
3b647027280f7ce127436a345c0165454a840a45
2,613
py
Python
lambda/slack_bot.py
ebc-2in2crc/slack-echo-bot
223aea0dc00e6097ff37c5758c64f54a8091eb7b
[ "MIT" ]
1
2020-09-24T20:31:20.000Z
2020-09-24T20:31:20.000Z
lambda/slack_bot.py
ebc-2in2crc/slack-echo-bot
223aea0dc00e6097ff37c5758c64f54a8091eb7b
[ "MIT" ]
1
2021-05-12T13:47:50.000Z
2021-05-12T13:47:50.000Z
lambda/slack_bot.py
ebc-2in2crc/slack-echo-bot
223aea0dc00e6097ff37c5758c64f54a8091eb7b
[ "MIT" ]
null
null
null
import hashlib import hmac import json import logging import os import urllib.request SLACK_BOT_USER_ACCESS_TOKEN = os.environ["SLACK_BOT_USER_ACCESS_TOKEN"] SLACK_SIGNING_SECRET = os.environ["SLACK_SIGNING_SECRET"] # logger = logging.getLogger() logger.setLevel(logging.INFO)
27.21875
108
0.670494
3b663b409c5b29c165336e7debdda67f9b5f9eb7
1,059
py
Python
aims/analysis/density.py
Xiangyan93/AIMS
1d0d6de03ef79d3cbfe2cd244f12c41d18acb61d
[ "MIT" ]
3
2021-05-14T04:27:53.000Z
2022-01-11T17:47:20.000Z
aims/analysis/density.py
Xiangyan93/AIMS
1d0d6de03ef79d3cbfe2cd244f12c41d18acb61d
[ "MIT" ]
null
null
null
aims/analysis/density.py
Xiangyan93/AIMS
1d0d6de03ef79d3cbfe2cd244f12c41d18acb61d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from ..database.models import * from aims.aimstools.utils import polyfit, is_monotonic, get_V
35.3
114
0.637394
3b67741092ee08f64764247dcb3517f76f517e1b
113
py
Python
elvia/types/common.py
andersem/elvia-python
cd71d13e1200845c93222dffed53baaa3a136bd4
[ "MIT" ]
null
null
null
elvia/types/common.py
andersem/elvia-python
cd71d13e1200845c93222dffed53baaa3a136bd4
[ "MIT" ]
null
null
null
elvia/types/common.py
andersem/elvia-python
cd71d13e1200845c93222dffed53baaa3a136bd4
[ "MIT" ]
null
null
null
from typing_extensions import TypedDict
16.142857
39
0.778761
3b69aec95b3206db693240793ada22d1a026d313
1,417
py
Python
tests/port_tests/polygon_tests/test_equals.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
7
2020-05-07T08:13:44.000Z
2021-12-17T07:33:51.000Z
tests/port_tests/polygon_tests/test_equals.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
17
2019-11-29T23:17:26.000Z
2020-12-20T15:47:17.000Z
tests/port_tests/polygon_tests/test_equals.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
1
2020-12-17T22:44:21.000Z
2020-12-17T22:44:21.000Z
from typing import Tuple from hypothesis import given from tests.port_tests.hints import PortedPolygon from tests.utils import (equivalence, implication) from . import strategies
33.738095
78
0.661962
3b69e897b47158318024cd3e8be4dd3fe3c33a8d
2,783
py
Python
src/openeo_grass_gis_driver/process_graph_validation.py
marcjansen/openeo-grassgis-driver
57b309819fdc456fba02cd1ab8fe6731ddfbb66a
[ "Apache-2.0" ]
7
2018-03-16T17:26:14.000Z
2022-03-09T08:19:10.000Z
src/openeo_grass_gis_driver/process_graph_validation.py
marcjansen/openeo-grassgis-driver
57b309819fdc456fba02cd1ab8fe6731ddfbb66a
[ "Apache-2.0" ]
70
2018-03-09T11:28:12.000Z
2022-02-17T09:06:17.000Z
src/openeo_grass_gis_driver/process_graph_validation.py
marcjansen/openeo-grassgis-driver
57b309819fdc456fba02cd1ab8fe6731ddfbb66a
[ "Apache-2.0" ]
13
2018-03-12T09:58:24.000Z
2022-02-23T10:40:11.000Z
# -*- coding: utf-8 -*- from flask import make_response, request from openeo_grass_gis_driver.actinia_processing.base import Graph from openeo_grass_gis_driver.actinia_processing.config import \ Config as ActiniaConfig from openeo_grass_gis_driver.actinia_processing.actinia_interface import \ ActiniaInterface...
35.227848
79
0.603665
3b6b9691cd266a9a90cf6ce67aa4d692b5f9390a
4,306
py
Python
tests/test_views.py
jeancochrane/just-spaces
f7e8f710c3ab2db5f8a87a533547c5176a2d1e83
[ "MIT" ]
null
null
null
tests/test_views.py
jeancochrane/just-spaces
f7e8f710c3ab2db5f8a87a533547c5176a2d1e83
[ "MIT" ]
null
null
null
tests/test_views.py
jeancochrane/just-spaces
f7e8f710c3ab2db5f8a87a533547c5176a2d1e83
[ "MIT" ]
null
null
null
import pytest from django.urls import reverse from pldp.forms import AGE_COMPLEX_CHOICES
34.725806
110
0.717836
3b6d696a3cfb32c61aa79adf234cb42b6c93acda
38
py
Python
blocks/__init__.py
blandfort/mirror
70ae41fd151275d42506d07117aa2ea3ce59ad23
[ "MIT" ]
null
null
null
blocks/__init__.py
blandfort/mirror
70ae41fd151275d42506d07117aa2ea3ce59ad23
[ "MIT" ]
6
2020-11-06T22:40:05.000Z
2022-03-12T00:51:06.000Z
blocks/__init__.py
blandfort/mirror
70ae41fd151275d42506d07117aa2ea3ce59ad23
[ "MIT" ]
null
null
null
from .countdown import CountdownBlock
19
37
0.868421
3b6eaa61670e09b9e37fdea0b9e2fa79ddf52d7c
1,375
py
Python
app.py
bmcculley/mailhide
f7ba582a2a8d419a723c517389d6c3288ed6a834
[ "Apache-2.0" ]
null
null
null
app.py
bmcculley/mailhide
f7ba582a2a8d419a723c517389d6c3288ed6a834
[ "Apache-2.0" ]
null
null
null
app.py
bmcculley/mailhide
f7ba582a2a8d419a723c517389d6c3288ed6a834
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request, jsonify, \ redirect, Response, url_for, abort import helpers config_dic = helpers.load_config() # flask app setup app = Flask(__name__) app.secret_key = config_dic["app_secret_key"] if __name__ == "__main__": app.run(debug=True)
30.555556
84
0.713455
3b6eb9f34813352f880e0ad30041ff68e5b64e92
895
py
Python
system_a/analyzer_main.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
system_a/analyzer_main.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
system_a/analyzer_main.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
from scripts.processing import Processor import time import argparse parser = argparse.ArgumentParser() parser.add_argument("--train", type=str, default='files/mmhsct_dataset.csv', help="--train file_path") parser.add_argument("--data", type=str, default='files/sr_all_comments_111.csv', help="--data file_path") parse...
30.862069
105
0.716201
3b6f12acccf4f926a75b0719a710025ee03bc50f
169
py
Python
problem0669.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0669.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0669.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #669 The King's Banquet - Project Euler # https://projecteuler.net/problem=669 # # Code by Kevin Marciniak # ###########################
18.777778
41
0.473373
3b6fe5c97472a5e38212eb7e9fc96de5efa75c68
281
py
Python
env.py
camigord/WorldModels
fe54dd832e62efff7ca7898ef2dd983d908bd1fb
[ "MIT" ]
83
2018-06-03T05:51:55.000Z
2021-04-05T15:26:02.000Z
env.py
camigord/WorldModels
fe54dd832e62efff7ca7898ef2dd983d908bd1fb
[ "MIT" ]
16
2020-01-28T22:26:22.000Z
2022-02-09T23:47:02.000Z
env.py
mikebuchanan/world_models
6bb028eaac44a75a7ed66c0c19fb2afe7c428263
[ "MIT" ]
29
2018-06-03T18:36:07.000Z
2022-03-17T14:27:59.000Z
import numpy as np #import gym from custom_envs.car_racing import CarRacing
20.071429
51
0.676157
3b714aa075b300f1c0a7f41e5ad7d665e8b6b9c7
15,602
py
Python
slalom/dataops/infra.py
slalom-ggp/dataops-tools
6b8f773c0cb206e834c2d44595b45149323945e2
[ "MIT" ]
5
2020-03-14T00:13:17.000Z
2020-05-27T21:53:42.000Z
slalom/dataops/infra.py
slalom-ggp/dataops-tools
6b8f773c0cb206e834c2d44595b45149323945e2
[ "MIT" ]
21
2019-11-19T22:22:21.000Z
2020-03-23T23:53:00.000Z
slalom/dataops/infra.py
slalom-ggp/dataops-tools
6b8f773c0cb206e834c2d44595b45149323945e2
[ "MIT" ]
2
2019-10-11T17:53:50.000Z
2020-09-05T21:47:05.000Z
#!/usr/bin/env python3 from joblib import Parallel, delayed import os import sys from pathlib import Path from typing import Dict, List import fire from logless import get_logger, logged, logged_block import runnow from tqdm import tqdm import uio code_file = os.path.realpath(__file__) repo_dir = os.path.dirname(os.p...
35.784404
112
0.578772
3b71a724b373390581169387e2b980a957c6564b
1,142
py
Python
bgSim/combatEvents.py
philhteoma/hsBattlegroundsSimulator
bd558e1687c89953191fbcbe6186dc9e58a3c7da
[ "MIT" ]
null
null
null
bgSim/combatEvents.py
philhteoma/hsBattlegroundsSimulator
bd558e1687c89953191fbcbe6186dc9e58a3c7da
[ "MIT" ]
null
null
null
bgSim/combatEvents.py
philhteoma/hsBattlegroundsSimulator
bd558e1687c89953191fbcbe6186dc9e58a3c7da
[ "MIT" ]
null
null
null
import random classList = [ ChooseAttackTarget, Fight, ] combatEvents = {x.name: x for x in classList}
27.853659
116
0.712785
3b720f3bb632a743be48e6a5d8c5f3230e1ef784
1,842
py
Python
delfin/drivers/hitachi/hus_110/constants.py
guankecheng/netapp
0852bd9f14d47d8f92beceb91bbd8158994f8ab1
[ "Apache-2.0" ]
null
null
null
delfin/drivers/hitachi/hus_110/constants.py
guankecheng/netapp
0852bd9f14d47d8f92beceb91bbd8158994f8ab1
[ "Apache-2.0" ]
null
null
null
delfin/drivers/hitachi/hus_110/constants.py
guankecheng/netapp
0852bd9f14d47d8f92beceb91bbd8158994f8ab1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SODA Authors. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
40.043478
78
0.729099
3b72cfe27fe1026ac855221b649d4738b38ec25c
915
py
Python
html2md/mobilizers/instapaper.py
semond/html2md
e9d697ebe1e5af438275425a26dae2473beac217
[ "Apache-2.0" ]
null
null
null
html2md/mobilizers/instapaper.py
semond/html2md
e9d697ebe1e5af438275425a26dae2473beac217
[ "Apache-2.0" ]
null
null
null
html2md/mobilizers/instapaper.py
semond/html2md
e9d697ebe1e5af438275425a26dae2473beac217
[ "Apache-2.0" ]
null
null
null
""" :copyright: 2019, Serge Emond :license: Apache License 2.0 """ from urllib.parse import quote_plus import requests from pyquery import PyQuery as pq from .mobilizer import Mobilizer
26.911765
86
0.652459
3b7429619e17d7df3d00811edac6228a84a03e82
12,649
py
Python
rsvis/tools/canvas/imgcv.py
Tom-Hirschberger/DataVisualization
1aec6a85e2af7ba62ba47e6ee93dc9a7d99c6221
[ "MIT" ]
null
null
null
rsvis/tools/canvas/imgcv.py
Tom-Hirschberger/DataVisualization
1aec6a85e2af7ba62ba47e6ee93dc9a7d99c6221
[ "MIT" ]
4
2020-04-28T11:53:24.000Z
2022-03-12T00:15:30.000Z
rsvis/tools/canvas/imgcv.py
Tom-Hirschberger/DataVisualization
1aec6a85e2af7ba62ba47e6ee93dc9a7d99c6221
[ "MIT" ]
2
2020-07-01T15:35:29.000Z
2021-03-11T17:53:23.000Z
# =========================================================================== # imgcv.py ---------------------------------------------------------------- # =========================================================================== # import ------------------------------------------------------------------ # -----...
43.920139
135
0.386908
3b746b4b5db548c71615d8260b4325217501e91f
1,242
py
Python
django_discord_connector/admin.py
DubClub-win/django-discord-connector
fe1c40ef40c9bf6d4a6e70c7bf963a4931421036
[ "MIT" ]
2
2020-08-24T06:45:40.000Z
2020-11-15T09:58:49.000Z
django_discord_connector/admin.py
DubClub-win/django-discord-connector
fe1c40ef40c9bf6d4a6e70c7bf963a4931421036
[ "MIT" ]
20
2019-12-17T20:29:19.000Z
2021-05-03T17:23:45.000Z
django_discord_connector/admin.py
DubClub-win/django-discord-connector
fe1c40ef40c9bf6d4a6e70c7bf963a4931421036
[ "MIT" ]
2
2021-04-16T14:07:48.000Z
2021-12-29T15:01:28.000Z
from django.contrib import admin from django_discord_connector.models import DiscordClient, DiscordToken, DiscordGroup, DiscordChannel, DiscordUser from django_discord_connector.tasks import sync_discord_groups from django.apps import apps update_discord_groups.short_description="Update Discord groups from Discord Serv...
44.357143
140
0.724638
3b7503ccee6fd0fa692daf48884183bb671c437d
2,951
py
Python
tests/integration/test_wallet_mqtt.py
mantaprotocol/manta-python
78f56f040832d4674c6d37fabfc4eb69c4a4e44e
[ "BSD-2-Clause" ]
14
2019-09-26T08:39:17.000Z
2022-02-22T11:46:26.000Z
tests/integration/test_wallet_mqtt.py
mantaprotocol/manta-python
78f56f040832d4674c6d37fabfc4eb69c4a4e44e
[ "BSD-2-Clause" ]
null
null
null
tests/integration/test_wallet_mqtt.py
mantaprotocol/manta-python
78f56f040832d4674c6d37fabfc4eb69c4a4e44e
[ "BSD-2-Clause" ]
1
2021-03-24T12:03:38.000Z
2021-03-24T12:03:38.000Z
# Manta Python # Manta Protocol Implementation for Python # Copyright (C) 2018-2019 Alessandro Vigan import asyncio from dataclasses import dataclass from decimal import Decimal import logging import pytest from manta.messages import PaymentRequestEnvelope, Status from manta.wallet import Wallet # See https://git...
29.51
84
0.63165
3b753f30cfeb206f88b5f9dc2a6515035a15ef8b
7,956
py
Python
implementations/warris2018/pyPaSWAS/Core/Formatters.py
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
24
2015-09-03T13:36:10.000Z
2021-11-18T15:09:53.000Z
pyPaSWAS/Core/Formatters.py
Aaron1993/pyPaSWAS
0f1edceba2a002ef30a803cc5c5fe45587ffd2aa
[ "MIT" ]
6
2015-02-25T16:07:19.000Z
2020-02-28T08:19:25.000Z
pyPaSWAS/Core/Formatters.py
Aaron1993/pyPaSWAS
0f1edceba2a002ef30a803cc5c5fe45587ffd2aa
[ "MIT" ]
9
2017-10-31T09:55:06.000Z
2021-12-03T02:47:56.000Z
'''This module contains the output formatters for pyPaSWAS'''
40.8
125
0.618778
3b7583d6fd68f18ec44dfcd8d3d60133b50b2fcc
1,966
py
Python
tests/_utils.py
kura/blackhole
5d5e6f4395a413ed99b6c0721af1a86276a6225f
[ "MIT" ]
43
2015-02-16T04:18:03.000Z
2021-11-01T22:57:24.000Z
tests/_utils.py
kura/blackhole
5d5e6f4395a413ed99b6c0721af1a86276a6225f
[ "MIT" ]
30
2015-07-08T14:17:38.000Z
2020-03-01T00:36:55.000Z
tests/_utils.py
kura/blackhole
5d5e6f4395a413ed99b6c0721af1a86276a6225f
[ "MIT" ]
7
2015-05-21T07:01:12.000Z
2020-10-27T16:05:18.000Z
# -*- coding: utf-8 -*- # (The MIT License) # # Copyright (c) 2013-2021 Kura # # 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 # ...
28.085714
79
0.709054
3b760115ef07c1475153b48cd74f10e8e8b417e7
6,096
py
Python
observables/integer.py
North-Guard/observable_primitives
4ab8ad6f67b79490209815051d7731393413d3dd
[ "MIT" ]
1
2018-01-11T14:01:05.000Z
2018-01-11T14:01:05.000Z
observables/integer.py
North-Guard/observable_primitives
4ab8ad6f67b79490209815051d7731393413d3dd
[ "MIT" ]
null
null
null
observables/integer.py
North-Guard/observable_primitives
4ab8ad6f67b79490209815051d7731393413d3dd
[ "MIT" ]
null
null
null
from typing import Callable, SupportsInt, SupportsFloat, SupportsRound, SupportsComplex, SupportsAbs, SupportsBytes from observable_primitives.observables.numeric_base import ObservableNumeric # Added specials
29.592233
115
0.621391
3b767da98ef4ac589e5f659573f9faebada56912
5,958
py
Python
tests/python/contrib/test_ethosu/test_remove_concatenates.py
jwfromm/relax
f120282007778706199243ee88b50697c2b9550c
[ "Apache-2.0" ]
2,084
2020-11-25T02:31:53.000Z
2022-03-31T11:33:47.000Z
tests/python/contrib/test_ethosu/test_remove_concatenates.py
jwfromm/relax
f120282007778706199243ee88b50697c2b9550c
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
tests/python/contrib/test_ethosu/test_remove_concatenates.py
jwfromm/relax
f120282007778706199243ee88b50697c2b9550c
[ "Apache-2.0" ]
977
2020-11-25T00:54:52.000Z
2022-03-31T12:47:08.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...
72.658537
456
0.663981
3b78f63bd45123d2bddd69150e96fc397c067291
2,255
py
Python
kk_tf/kk_tf.py
hakyimlab/multixcan-paper
bafad243f42298a0973ba4d4009b2b2f783743a3
[ "MIT" ]
null
null
null
kk_tf/kk_tf.py
hakyimlab/multixcan-paper
bafad243f42298a0973ba4d4009b2b2f783743a3
[ "MIT" ]
null
null
null
kk_tf/kk_tf.py
hakyimlab/multixcan-paper
bafad243f42298a0973ba4d4009b2b2f783743a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "alvaro barbeira" import numpy import pandas import tensorflow as tf from tensorflow import keras from sklearn.model_selection import train_test_split d = pandas.read_table("../results/smultixcan_wrong.txt") d_ = d.loc[d.n>1] d_ = d_.assign(pvalue = numpy.maximum(d_.pvalue, 1e-30), ...
36.967213
133
0.705543
3b7cf7fe88491f39d41118c5372b2efff2e8da58
12,343
py
Python
doclabel/core/models.py
sondh0127/doclabel
2cadea9fc925435aea49ac0b56c29474664ade4e
[ "MIT" ]
null
null
null
doclabel/core/models.py
sondh0127/doclabel
2cadea9fc925435aea49ac0b56c29474664ade4e
[ "MIT" ]
null
null
null
doclabel/core/models.py
sondh0127/doclabel
2cadea9fc925435aea49ac0b56c29474664ade4e
[ "MIT" ]
null
null
null
import string import os from django.conf import settings from django.dispatch import receiver from django.db.models.signals import post_save, pre_delete, post_delete from django.db import models from django.urls import reverse from django.contrib.auth import get_user_model from django.contrib.postgres.fields import JS...
31.894057
88
0.694969
3b7de04c42bc46c1bd3b08a16aa1872fc97cd4ba
2,742
py
Python
kafcrapy/spider.py
JoeyRead/kafcrapy
bef4aab0033b1c2d6d280abc4410f05abc34f054
[ "Apache-2.0" ]
null
null
null
kafcrapy/spider.py
JoeyRead/kafcrapy
bef4aab0033b1c2d6d280abc4410f05abc34f054
[ "Apache-2.0" ]
null
null
null
kafcrapy/spider.py
JoeyRead/kafcrapy
bef4aab0033b1c2d6d280abc4410f05abc34f054
[ "Apache-2.0" ]
null
null
null
from scrapy import signals from scrapy.exceptions import DontCloseSpider from scrapy.spiders import Spider from . import connection
33.036145
106
0.654996
3b83b290e1ee1ab9ac6190adb149232aad5fa196
2,748
py
Python
unipipeline/utils/sig.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
null
null
null
unipipeline/utils/sig.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
1
2021-09-14T13:08:13.000Z
2021-09-14T13:08:13.000Z
unipipeline/utils/sig.py
aliaksandr-master/unipipeline
d8eac38534172aee59ab5777321cabe67f3779ef
[ "MIT" ]
null
null
null
import signal from types import FrameType from typing import Callable, Tuple, Any, Optional, Union
42.9375
186
0.640102
3b83dbfdc78516407288131080becdb5ade41b86
5,450
py
Python
HuberyBlog/apps/blog/views.py
SomnambulistOfChina/ChineseSomnambulist
dc6efcb4ea1bc02f8999cd78bebfd648253631a6
[ "Apache-2.0" ]
null
null
null
HuberyBlog/apps/blog/views.py
SomnambulistOfChina/ChineseSomnambulist
dc6efcb4ea1bc02f8999cd78bebfd648253631a6
[ "Apache-2.0" ]
null
null
null
HuberyBlog/apps/blog/views.py
SomnambulistOfChina/ChineseSomnambulist
dc6efcb4ea1bc02f8999cd78bebfd648253631a6
[ "Apache-2.0" ]
null
null
null
# from django.core.cache import cache from django.db.models import Sum from django.http import JsonResponse, Http404, HttpResponse from django.shortcuts import render, redirect from django.core.cache import cache # from django.urls import reverse # from django.views.decorators.csrf import csrf_exempt from blog.models...
25.707547
105
0.61633
3b848706a58c6a84476c600561514d874390dae1
11,173
py
Python
ginga/examples/gw/plot_time_series.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2015-01-05T14:46:14.000Z
2022-03-23T04:10:54.000Z
ginga/examples/gw/plot_time_series.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
858
2015-01-17T01:55:12.000Z
2022-03-08T20:20:31.000Z
ginga/examples/gw/plot_time_series.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
60
2015-01-14T21:59:07.000Z
2022-02-13T03:38:49.000Z
#! /usr/bin/env python3 # """ Plot time series data in an interactive plot viewer. Usage ===== $ python3 plot_time_series.py --loglevel=20 --stderr Plots add new data every second, and update on screen every 5 sec. 24 hours of data is kept. Each plot starts out in "autoaxis X PAN" and "autoaxis Y VIS". Things you c...
30.444142
82
0.614786
3b84da4ea4fc9d56f6771900e256ad6f44422323
1,343
py
Python
todo/[Keras]DeepFakes_FaceSwap/faceswap-master/scripts/extract.py
tonyhuang84/notebook_dnn
59615cc2c6b6daadc5e96ca068552fcfaa147e5c
[ "BSD-2-Clause" ]
null
null
null
todo/[Keras]DeepFakes_FaceSwap/faceswap-master/scripts/extract.py
tonyhuang84/notebook_dnn
59615cc2c6b6daadc5e96ca068552fcfaa147e5c
[ "BSD-2-Clause" ]
null
null
null
todo/[Keras]DeepFakes_FaceSwap/faceswap-master/scripts/extract.py
tonyhuang84/notebook_dnn
59615cc2c6b6daadc5e96ca068552fcfaa147e5c
[ "BSD-2-Clause" ]
null
null
null
import cv2 from pathlib import Path from lib.cli import DirectoryProcessor from lib.faces_detect import detect_faces from plugins.PluginLoader import PluginLoader
39.5
95
0.62621
3b8578610c1e2fc52d89aa678e89e47ae66ab205
3,552
py
Python
machine-learning-gists/1a41cc3b5ef28bb7d99a43b64453bfc9c81d53cd/snippet.py
qwbjtu2015/dockerizeme
9039beacf281ea7058d721784ed4eff054453b09
[ "Apache-2.0" ]
null
null
null
machine-learning-gists/1a41cc3b5ef28bb7d99a43b64453bfc9c81d53cd/snippet.py
qwbjtu2015/dockerizeme
9039beacf281ea7058d721784ed4eff054453b09
[ "Apache-2.0" ]
null
null
null
machine-learning-gists/1a41cc3b5ef28bb7d99a43b64453bfc9c81d53cd/snippet.py
qwbjtu2015/dockerizeme
9039beacf281ea7058d721784ed4eff054453b09
[ "Apache-2.0" ]
null
null
null
''' This script is based on the original work of Randal S. Olson (randalolson.com) for the Traveling Salesman Portrait project. http://www.randalolson.com/2018/04/11/traveling-salesman-portrait-in-python/ Please check out the original project repository for information: https://github.com/rhiever/Data-Analysis-and-Ma...
39.466667
136
0.761543
3b867a71bab84e93ec2ed8b6bc8821e5088771cc
23,656
py
Python
anno2070/list_of_buildings.py
Aprillion/aprillion.github.io
9327d2324954e941f50c5171cbcc5bb1b69fc039
[ "MIT" ]
null
null
null
anno2070/list_of_buildings.py
Aprillion/aprillion.github.io
9327d2324954e941f50c5171cbcc5bb1b69fc039
[ "MIT" ]
null
null
null
anno2070/list_of_buildings.py
Aprillion/aprillion.github.io
9327d2324954e941f50c5171cbcc5bb1b69fc039
[ "MIT" ]
null
null
null
''' Created on 13.12.2011 @author: peter.hozak@gmail.com ''' from __future__ import division import json, re #, sys from xml.etree import ElementTree as ET __version__ = "0.3" # global settings # txt files must be changed encoding from UCS-2 to ANSI :(( xml files are ok ) folder = "C:\\Users\\Peter\\Documents\\ANNO...
55.661176
307
0.534283
3b87d0d0e1f347b21acbab96ded62520b7e2bd04
54
py
Python
credentials.py
BAHETIHARSH/automate-linkedin
99af94bf0894b2901d9f9a54ba2a440c69dcfc64
[ "MIT" ]
null
null
null
credentials.py
BAHETIHARSH/automate-linkedin
99af94bf0894b2901d9f9a54ba2a440c69dcfc64
[ "MIT" ]
null
null
null
credentials.py
BAHETIHARSH/automate-linkedin
99af94bf0894b2901d9f9a54ba2a440c69dcfc64
[ "MIT" ]
null
null
null
loginid = "your login id" password = "your password"
27
27
0.703704
3b8d73bcbe102b75369e5e4c8b626fcf40a07c9c
1,557
py
Python
preprocess_data/pathway/util.py
rocke2020/AutoNER
e502371d26e8ec2de842a606e52021f4ad6f1572
[ "Apache-2.0" ]
null
null
null
preprocess_data/pathway/util.py
rocke2020/AutoNER
e502371d26e8ec2de842a606e52021f4ad6f1572
[ "Apache-2.0" ]
null
null
null
preprocess_data/pathway/util.py
rocke2020/AutoNER
e502371d26e8ec2de842a606e52021f4ad6f1572
[ "Apache-2.0" ]
null
null
null
import logging, os _nameToLevel = { # 'CRITICAL': logging.CRITICAL, # 'FATAL': logging.FATAL, # FATAL = CRITICAL # 'ERROR': logging.ERROR, # 'WARN': logging.WARNING, 'INFO': logging.INFO, 'DEBUG': logging.DEBUG, } def get_logger(name=__name__, log_file=None, log_level=logging.DEBUG, log_level_nam...
28.309091
89
0.629416
3b8e0a858cbe8713d99629d535119594aeb08d18
4,975
py
Python
examples/simultaneous_translation/utils/monotonic_attention.py
Shiguang-Guo/fairseq
c9d3df5679d0829cda8fc3c818b6cab52b78dc37
[ "MIT" ]
16,259
2018-05-02T02:31:30.000Z
2022-03-31T21:50:23.000Z
examples/simultaneous_translation/utils/monotonic_attention.py
Shiguang-Guo/fairseq
c9d3df5679d0829cda8fc3c818b6cab52b78dc37
[ "MIT" ]
3,863
2018-05-02T13:42:39.000Z
2022-03-31T19:03:32.000Z
examples/simultaneous_translation/utils/monotonic_attention.py
Shiguang-Guo/fairseq
c9d3df5679d0829cda8fc3c818b6cab52b78dc37
[ "MIT" ]
4,796
2018-05-02T07:55:51.000Z
2022-03-31T14:46:45.000Z
from typing import Optional import torch from torch import Tensor from examples.simultaneous_translation.utils.functions import ( exclusive_cumprod, prob_check, moving_sum, ) def expected_alignment_from_p_choose( p_choose: Tensor, padding_mask: Optional[Tensor] = None, eps: float = 1e-6 ): ...
27.486188
88
0.638995
3b8e8d06cfce2b43bdd7cdd30c37e30193ba81c6
540
py
Python
memcache/test_naive.py
oldhill/halloween
92de86a6d8e930ee5c0158be9fb47296432d2ba0
[ "MIT" ]
null
null
null
memcache/test_naive.py
oldhill/halloween
92de86a6d8e930ee5c0158be9fb47296432d2ba0
[ "MIT" ]
null
null
null
memcache/test_naive.py
oldhill/halloween
92de86a6d8e930ee5c0158be9fb47296432d2ba0
[ "MIT" ]
null
null
null
import time import unittest import naive if __name__ == '__main__': unittest.main()
20.769231
51
0.62963
3b8ea57cf350f46a0b5175e07f66d2bedeb67fa8
8,795
py
Python
environments/transfer_env/reacher_env.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
33
2019-06-06T13:59:51.000Z
2022-03-07T10:36:42.000Z
environments/transfer_env/reacher_env.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
8
2019-07-09T16:58:28.000Z
2022-02-10T00:27:39.000Z
environments/transfer_env/reacher_env.py
WilsonWangTHU/neural_graph_evolution
9142b7f1c32c476aa44c83da38d3f0bacc276d73
[ "MIT" ]
12
2019-06-07T10:43:12.000Z
2022-03-09T13:47:01.000Z
#!/usr/bin/env python2 # ----------------------------------------------------------------------------- # @brief: # The reacher task # @author: # Tingwu (Wilson) Wang, July 22nd, 2017 # ----------------------------------------------------------------------------- import pdb import numpy as np from gym i...
24.430556
79
0.621717
3b8ebfe0b1ca313f1d2207256efed0dbd4039431
38
py
Python
chocopy-rs/test/original/pa2/expr_var_assign.py
wwylele/chocopy-wwylele
ef60c94cc9c2d7c8ac11cf2761b724a717ac36aa
[ "MIT" ]
7
2021-08-28T18:20:45.000Z
2022-02-01T07:35:59.000Z
chocopy-rs/test/original/pa2/expr_var_assign.py
wwylele/chocopy-wwylele
ef60c94cc9c2d7c8ac11cf2761b724a717ac36aa
[ "MIT" ]
5
2020-03-04T23:49:17.000Z
2021-12-09T21:42:55.000Z
tests/typecheck/expr_var_assign.py
yangdanny97/chocopy-python-frontend
d0fb63fc744771640fa4d06076743f42089899c1
[ "MIT" ]
3
2019-11-07T23:54:49.000Z
2021-06-21T20:45:54.000Z
x:int = 1 o:object = None x = o = 42
7.6
15
0.526316
3b90e01f97c9f9b164bb39ffe2d1651f169409d3
647
py
Python
test/test_constraints.py
maffettone/constrained_sampler
7674116d330ce3a56e44511797929127b4374a85
[ "MIT" ]
null
null
null
test/test_constraints.py
maffettone/constrained_sampler
7674116d330ce3a56e44511797929127b4374a85
[ "MIT" ]
null
null
null
test/test_constraints.py
maffettone/constrained_sampler
7674116d330ce3a56e44511797929127b4374a85
[ "MIT" ]
null
null
null
import unittest import os from constrained_sampler.constraints import Constraint if __name__ == '__main__': unittest.main()
28.130435
104
0.704791
3b91a60fc28a44b7333d8840574bee24164ae81f
318
py
Python
doc/week1/w1d3/fasta.py
VinceSD/mebioda
79021e7e0313ed7b2a116a4f2c1099eac9d5ed63
[ "MIT" ]
null
null
null
doc/week1/w1d3/fasta.py
VinceSD/mebioda
79021e7e0313ed7b2a116a4f2c1099eac9d5ed63
[ "MIT" ]
null
null
null
doc/week1/w1d3/fasta.py
VinceSD/mebioda
79021e7e0313ed7b2a116a4f2c1099eac9d5ed63
[ "MIT" ]
2
2019-12-09T12:05:59.000Z
2019-12-09T12:09:57.000Z
from Bio import SeqIO # sudo pip install biopython with open("Danaus.fas", "rU") as handle: # Example: retain COI for record in SeqIO.parse(handle, "fasta"): fields = record.description.split('|') if fields[2] == 'COI-5P': print '>' + record.description print record.seq
31.8
50
0.610063
3b91e4b5aa6dd4f1b05b89a6f707cb59981bdd7e
68
py
Python
2 semester/PW/Coursera/Python/1 Week/11.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-02-06T17:50:25.000Z
2022-02-06T17:50:25.000Z
2 semester/PW/Coursera/Python/1 Week/11.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
null
null
null
2 semester/PW/Coursera/Python/1 Week/11.py
kurpenok/Labs
069c92b7964a1445d093313b38ebdc56318d2a73
[ "MIT" ]
1
2022-03-02T06:45:06.000Z
2022-03-02T06:45:06.000Z
m = int(input()) m = m % 1440 a = m // 60 b = m % 60 print(a, b)
7.555556
16
0.441176
3b9296a58d260ab2a4323504b1f9faec2a308ddd
1,344
py
Python
polls_service/polls/tests/test_services.py
KirovVerst/django-polls-site
301103c94e239d5d63e5ffb751abedcf3b927df2
[ "MIT" ]
1
2021-02-27T16:55:45.000Z
2021-02-27T16:55:45.000Z
polls_service/polls/tests/test_services.py
KirovVerst/django-polls-site
301103c94e239d5d63e5ffb751abedcf3b927df2
[ "MIT" ]
4
2021-03-30T13:26:50.000Z
2021-09-22T19:03:07.000Z
polls_service/polls/tests/test_services.py
KirovVerst/polls-service
301103c94e239d5d63e5ffb751abedcf3b927df2
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase from django.utils import timezone from polls.models import Choice from polls.models import Question from polls.services import VoteService
40.727273
102
0.723958
3b933563fc80b8fe68d1b6435ab7769cf6846aab
90
py
Python
contak/apps.py
dasfrosty/contak-service
49808b6232e751138e0e17683045540fbe5861d1
[ "MIT" ]
null
null
null
contak/apps.py
dasfrosty/contak-service
49808b6232e751138e0e17683045540fbe5861d1
[ "MIT" ]
null
null
null
contak/apps.py
dasfrosty/contak-service
49808b6232e751138e0e17683045540fbe5861d1
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15
33
0.755556
3b934e63bba3768ddeff1f2ea4c62427c1ff6de9
5,600
py
Python
Script_Backup.py
Fanliaa/Projet6_OpenClassRooms
2fd0a3540c04f972e7c35180e24cbd9a8d5687ab
[ "MIT" ]
null
null
null
Script_Backup.py
Fanliaa/Projet6_OpenClassRooms
2fd0a3540c04f972e7c35180e24cbd9a8d5687ab
[ "MIT" ]
null
null
null
Script_Backup.py
Fanliaa/Projet6_OpenClassRooms
2fd0a3540c04f972e7c35180e24cbd9a8d5687ab
[ "MIT" ]
null
null
null
#!/bin/bash/python # # Importation des librairies utiles import json import os import pipes import time import datetime import sys import zipfile from os.path import basename import paramiko import logging import boto3 from botocore.exceptions import ClientError # Declaration des variables DATETIME = time.strftime('%...
43.75
225
0.632321
3b96c1333b6dfd395da0f48f805e9962fcefe5e8
399
py
Python
lab/refactoring/remove_control_flag2.py
JericHunter/SPD-2.31-Testing-and-Architecture
e76030410d08f74dd867ad32e05de38e037dacc3
[ "MIT" ]
null
null
null
lab/refactoring/remove_control_flag2.py
JericHunter/SPD-2.31-Testing-and-Architecture
e76030410d08f74dd867ad32e05de38e037dacc3
[ "MIT" ]
null
null
null
lab/refactoring/remove_control_flag2.py
JericHunter/SPD-2.31-Testing-and-Architecture
e76030410d08f74dd867ad32e05de38e037dacc3
[ "MIT" ]
null
null
null
# by Kami Bigdely # Remove control flag # Reference: https://stackoverflow.com/a/10140333/81306 # This code snippet reads up to the end of the file n = 16 file = 'foobar.file' readfile(file, n)
23.470588
55
0.611529
3b979b8b27ffcfe9bd6784d35e976ab788514c6d
146
py
Python
src/examples/minimal.py
apatrushev/aioflows
2e8fb3d84c0b177931bb92f9693349985c83fe37
[ "MIT" ]
2
2020-11-22T13:51:34.000Z
2020-11-24T20:18:15.000Z
src/examples/minimal.py
apatrushev/aioflows
2e8fb3d84c0b177931bb92f9693349985c83fe37
[ "MIT" ]
null
null
null
src/examples/minimal.py
apatrushev/aioflows
2e8fb3d84c0b177931bb92f9693349985c83fe37
[ "MIT" ]
null
null
null
import asyncio from aioflows.simple import Printer, Ticker asyncio.run(start())
13.272727
43
0.691781
3b979d74f6e8f31c561e6e8ceb34cc6c5fafe859
3,197
py
Python
config/HttpdParser.py
automicus/OpenAlarm
68bcc4aa75338e8d5a2ff423029f7c4064d2b9c8
[ "Apache-2.0" ]
1
2016-03-30T05:41:19.000Z
2016-03-30T05:41:19.000Z
config/HttpdParser.py
automicus/OpenAlarm
68bcc4aa75338e8d5a2ff423029f7c4064d2b9c8
[ "Apache-2.0" ]
null
null
null
config/HttpdParser.py
automicus/OpenAlarm
68bcc4aa75338e8d5a2ff423029f7c4064d2b9c8
[ "Apache-2.0" ]
null
null
null
from HTMLParser import HTMLParser def readHttpd(fname): parser = HttpdParser() return parser.read(fname) if __name__ == "__main__": print readHttpd('../httpd.conf')
26.865546
71
0.541758
3b9812e3197d01caf52753ac8dad1d630195216c
10,175
py
Python
cnnlstm/forecast.py
mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020
6467a08640990f2d07e517adf7bacd566fb442c4
[ "MIT" ]
null
null
null
cnnlstm/forecast.py
mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020
6467a08640990f2d07e517adf7bacd566fb442c4
[ "MIT" ]
null
null
null
cnnlstm/forecast.py
mingjiewong/Kaggle-M5-Forecasting-Accuracy-2020
6467a08640990f2d07e517adf7bacd566fb442c4
[ "MIT" ]
null
null
null
import tensorflow as tf import pandas as pd import numpy as np from sklearn.preprocessing import MinMaxScaler from data_processing.helpers import Config tf.random.set_seed(51) np.random.seed(51)
41.194332
204
0.617396
3b9a773e3abc846607b76f0dc17a733001fd9d52
1,048
py
Python
src/graia/amnesia/transport/common/websocket/shortcut.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
2
2022-03-13T09:12:44.000Z
2022-03-28T10:53:06.000Z
src/graia/amnesia/transport/common/websocket/shortcut.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
null
null
null
src/graia/amnesia/transport/common/websocket/shortcut.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
null
null
null
from functools import wraps from typing import TYPE_CHECKING, Any, AnyStr, Callable, Type, TypeVar from graia.amnesia.json import TJson from graia.amnesia.json.frontend import Json if TYPE_CHECKING: from graia.amnesia.transport.common.websocket.io import AbstractWebsocketIO _S = TypeVar("_S") _R = TypeVar("_R")...
28.324324
91
0.667939
3b9d427a5ce89470aa288f0a8a1dd15c162dccb4
190
py
Python
src/zeit/ldap/generation/__init__.py
ZeitOnline/zeit.ldap
42dbf372d8108a011b3d112126e3769a130e52e7
[ "BSD-3-Clause" ]
null
null
null
src/zeit/ldap/generation/__init__.py
ZeitOnline/zeit.ldap
42dbf372d8108a011b3d112126e3769a130e52e7
[ "BSD-3-Clause" ]
1
2017-07-14T09:52:30.000Z
2017-07-14T09:52:30.000Z
src/zeit/ldap/generation/__init__.py
ZeitOnline/zeit.ldap
42dbf372d8108a011b3d112126e3769a130e52e7
[ "BSD-3-Clause" ]
null
null
null
import zope.generations.generations minimum_generation = 3 generation = 3 manager = zope.generations.generations.SchemaManager( minimum_generation, generation, "zeit.ldap.generation")
23.75
59
0.810526
3b9ea716c66447211a1101f9542e4f8840955479
2,345
py
Python
futaba/download.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
23
2018-09-17T09:06:27.000Z
2021-05-27T15:21:37.000Z
futaba/download.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
257
2018-08-18T21:27:54.000Z
2020-12-29T23:27:10.000Z
futaba/download.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
22
2018-09-09T09:03:13.000Z
2021-11-09T03:34:34.000Z
# # download.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in the hopes that ...
31.266667
85
0.639232
3b9ec30dc6324941e3f8a528c1f965765ba0b429
16,986
py
Python
Tuchart3.0 -beta/main.py
Seedarchangel/TuChart
46ab90d58f231dc7e3d0a623664bf5f742161d1d
[ "MIT" ]
801
2017-08-30T02:56:29.000Z
2022-03-31T07:14:56.000Z
Tuchart3.0 -beta/main.py
keybatman/HareChart
46ab90d58f231dc7e3d0a623664bf5f742161d1d
[ "MIT" ]
28
2017-08-31T21:58:50.000Z
2020-05-11T02:09:30.000Z
Tuchart3.0 -beta/main.py
keybatman/HareChart
46ab90d58f231dc7e3d0a623664bf5f742161d1d
[ "MIT" ]
306
2017-08-30T02:59:52.000Z
2022-03-31T07:04:49.000Z
#-*- coding:utf-8 -*- from __future__ import print_function import os,sys,sip,time from datetime import datetime,timedelta from qtpy.QtWidgets import QTreeWidgetItem,QMenu,QApplication,QAction,QMainWindow from qtpy import QtGui,QtWidgets from qtpy.QtCore import Qt,QUrl,QDate from Graph import graphpage from layout impo...
44.936508
128
0.594784
3b9f841a99c7ae50e88504be5283d7a03d6ed2e4
2,101
py
Python
setup.py
EncoreTechnologies/py-menandmice
3233d884744a9df0a8b0781dd3c84845955c5200
[ "Apache-2.0" ]
1
2017-06-21T12:33:43.000Z
2017-06-21T12:33:43.000Z
setup.py
EncoreTechnologies/py-menandmice
3233d884744a9df0a8b0781dd3c84845955c5200
[ "Apache-2.0" ]
null
null
null
setup.py
EncoreTechnologies/py-menandmice
3233d884744a9df0a8b0781dd3c84845955c5200
[ "Apache-2.0" ]
null
null
null
# Licensed to the Encore Technologies ("Encore") 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 use...
31.833333
86
0.735364
3b9f8d121dded93a938e61065a3bf850418949f4
79
py
Python
mmpose/models/necks/__init__.py
jlgzb/mmpose
0ecf06e3580f141f6ab44645768a0d6d8ba48383
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
mmpose/models/necks/__init__.py
jlgzb/mmpose
0ecf06e3580f141f6ab44645768a0d6d8ba48383
[ "Apache-2.0" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
mmpose/models/necks/__init__.py
jlgzb/mmpose
0ecf06e3580f141f6ab44645768a0d6d8ba48383
[ "Apache-2.0" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
from .gap_neck import GlobalAveragePooling __all__ = ['GlobalAveragePooling']
19.75
42
0.822785
3b9fb3dac066072f489c406ee52505f3cf651095
14,898
py
Python
Script_Kali_Machine/DownloadTools_Old.py
manesec/tools4me
d6f0e41aabc3dc4fdc1ff8ad8bebaf578fdbe69e
[ "MIT" ]
null
null
null
Script_Kali_Machine/DownloadTools_Old.py
manesec/tools4me
d6f0e41aabc3dc4fdc1ff8ad8bebaf578fdbe69e
[ "MIT" ]
null
null
null
Script_Kali_Machine/DownloadTools_Old.py
manesec/tools4me
d6f0e41aabc3dc4fdc1ff8ad8bebaf578fdbe69e
[ "MIT" ]
2
2022-02-09T07:30:12.000Z
2022-03-06T08:00:22.000Z
# List slow update .. Optional_Installation = { # Update ExploitDB "EXPLOITDB" : True, # Install ZAP # It have some bug in old kali linux, if you are running old kali linux please disable it. "ZAP" : False, # Install DBeaver "DBEAVER" : True, # Install Big Webshell Collection ~ 0.84 G...
39.941019
142
0.647872
3ba11498a776ef72e094f9860944bc017a359568
7,375
py
Python
metrics/recall/recall.py
leondz/datasets
4110fb6034f79c5fb470cf1043ff52180e9c63b7
[ "Apache-2.0" ]
3,395
2020-05-13T21:16:50.000Z
2020-09-10T14:36:50.000Z
metrics/recall/recall.py
leondz/datasets
4110fb6034f79c5fb470cf1043ff52180e9c63b7
[ "Apache-2.0" ]
370
2020-05-13T21:28:57.000Z
2020-09-10T11:03:38.000Z
metrics/recall/recall.py
leondz/datasets
4110fb6034f79c5fb470cf1043ff52180e9c63b7
[ "Apache-2.0" ]
258
2020-05-15T01:17:09.000Z
2020-09-10T12:41:43.000Z
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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....
54.62963
503
0.672949
3ba1c5c69fdcb44ffda811189f8175a51d2e047b
1,354
py
Python
KonaChan-Download/PicDownload.py
TsumugiWenders/Archives
faeb60c8592a1ca33ef36399bc00e56e822323fe
[ "MIT" ]
null
null
null
KonaChan-Download/PicDownload.py
TsumugiWenders/Archives
faeb60c8592a1ca33ef36399bc00e56e822323fe
[ "MIT" ]
null
null
null
KonaChan-Download/PicDownload.py
TsumugiWenders/Archives
faeb60c8592a1ca33ef36399bc00e56e822323fe
[ "MIT" ]
null
null
null
import traceback import urllib from time import sleep import requests from bs4 import BeautifulSoup import os if __name__ == '__main__': if os.path.exists('IMG') is False: os.makedirs('IMG') start = 300000 #end = 600000 end = 9999999999999 for i in range(start,end+1): ...
30.772727
83
0.581979
8e5362f989311d903403ad3e14e1eeefea583267
653
py
Python
formal_modelling/ela_balance_sheet_effects.py
christophergandrud/ela_fiscal_costs
4f502980a6338944f4807f2ea7b05bf374b3417c
[ "MIT" ]
2
2015-01-21T02:54:12.000Z
2015-01-21T15:31:55.000Z
formal_modelling/ela_balance_sheet_effects.py
christophergandrud/ela_fiscal_costs
4f502980a6338944f4807f2ea7b05bf374b3417c
[ "MIT" ]
null
null
null
formal_modelling/ela_balance_sheet_effects.py
christophergandrud/ela_fiscal_costs
4f502980a6338944f4807f2ea7b05bf374b3417c
[ "MIT" ]
null
null
null
# Find simplified formula for bank balance sheet change as a result of # ELA collateral seizure # Christopher Gandrud # MIT License ################################################################################ # Import SymPy import sympy as sp from sympy.abc import eta, gamma # Define symbols (eta and gamma import...
27.208333
80
0.633997
8e544f3d4e7f56595f218e1ef6f80da40b3926fd
5,411
py
Python
beam.py
numediart/multi-rnn-wordlevel
214e43f6c6f9de3a610389881ffbe4521c9df635
[ "MIT" ]
null
null
null
beam.py
numediart/multi-rnn-wordlevel
214e43f6c6f9de3a610389881ffbe4521c9df635
[ "MIT" ]
null
null
null
beam.py
numediart/multi-rnn-wordlevel
214e43f6c6f9de3a610389881ffbe4521c9df635
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2015 Sherjil Ozair, 2018 UMONS # # 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 ...
41.623077
105
0.625208
8e55e38bc2b4e8c638f7719b125e8f660e843387
4,454
py
Python
slug/win.py
xonsh/slug
b4a229f930eb4bf7b508c0a454aceafb7e0fb8b9
[ "BSD-3-Clause" ]
17
2017-04-30T17:58:49.000Z
2022-01-24T20:25:01.000Z
slug/win.py
xonsh/slug
b4a229f930eb4bf7b508c0a454aceafb7e0fb8b9
[ "BSD-3-Clause" ]
25
2017-02-05T23:17:16.000Z
2017-12-12T21:46:19.000Z
slug/win.py
xonsh/slug
b4a229f930eb4bf7b508c0a454aceafb7e0fb8b9
[ "BSD-3-Clause" ]
1
2019-03-20T11:53:36.000Z
2019-03-20T11:53:36.000Z
""" Versions of the base functionality optimized for the NT kernel. The 9x kernel is just unsupported. """ import ctypes import _winapi import signal from . import base __all__ = ('Process', 'ProcessGroup') # {{{ win32 API calls CreateJobObject = ctypes.windll.kernel32.CreateJobObjectW CreateJobObject.argtypes ...
30.930556
103
0.679614
8e560ea211629f88d2305a2cde17e367e5845602
785
py
Python
util.py
davidar/polya
b796e38f39c8d5d82db67275423127d774fde171
[ "MIT" ]
6
2015-09-10T14:35:03.000Z
2021-01-16T09:32:00.000Z
util.py
davidar/polya
b796e38f39c8d5d82db67275423127d774fde171
[ "MIT" ]
null
null
null
util.py
davidar/polya
b796e38f39c8d5d82db67275423127d774fde171
[ "MIT" ]
1
2017-09-13T19:10:35.000Z
2017-09-13T19:10:35.000Z
import operator
24.53125
38
0.550318
8e57671357a3114ced6ad66f000ad514cab3904f
3,677
py
Python
commandable/command_loader.py
cedriclv/nci-python-commands
c6141c5ca4de155fd033c9f79a670192272a5615
[ "Apache-2.0" ]
1
2017-12-19T16:40:21.000Z
2017-12-19T16:40:21.000Z
commandable/command_loader.py
cedriclv/nci-python-commands
c6141c5ca4de155fd033c9f79a670192272a5615
[ "Apache-2.0" ]
4
2018-01-12T14:37:27.000Z
2018-03-12T12:35:49.000Z
commandable/command_loader.py
cedriclv/nci-python-commands
c6141c5ca4de155fd033c9f79a670192272a5615
[ "Apache-2.0" ]
1
2018-02-26T17:13:26.000Z
2018-02-26T17:13:26.000Z
# Copyright 2017 NEWCRAFT GROUP B.V. # # 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...
28.068702
114
0.590427
8e5797cf08b188c5fd5c095d760208bf38b5f01a
1,309
py
Python
src/2020/binary_boarding.py
lazycoco-net/advent-of-code
3c829650c054f7c5d6665ceb2a3544f151962bc7
[ "MIT" ]
1
2020-12-08T06:49:33.000Z
2020-12-08T06:49:33.000Z
src/2020/binary_boarding.py
lazycoco-net/advent-of-code
3c829650c054f7c5d6665ceb2a3544f151962bc7
[ "MIT" ]
null
null
null
src/2020/binary_boarding.py
lazycoco-net/advent-of-code
3c829650c054f7c5d6665ceb2a3544f151962bc7
[ "MIT" ]
null
null
null
import math import re import time from typing import Dict if __name__ == '__main__': with open('binary_boarding.txt', 'r') as f: star_time = time.time() maximum = -math.inf seats_taken = {i: False for i in range(0, 128 * 8)} for line in f: match = re.match(r'([B|F]{7}...
36.361111
130
0.620321
8e584128245384209ee3f11e0e410018e7765c9c
9,938
py
Python
toastbot/__main__.py
mdegreg/discord-toastlogger
31fc69fa3e0b94c3885f6ed2dc77f6e70b8f78c1
[ "MIT" ]
null
null
null
toastbot/__main__.py
mdegreg/discord-toastlogger
31fc69fa3e0b94c3885f6ed2dc77f6e70b8f78c1
[ "MIT" ]
8
2017-08-19T03:41:21.000Z
2017-08-19T03:44:03.000Z
toastbot/__main__.py
mdegreg/discord-toastlogger
31fc69fa3e0b94c3885f6ed2dc77f6e70b8f78c1
[ "MIT" ]
null
null
null
import collections import logging import asyncio import importlib import pip import toastbot.toast as toast try: import discord import discord.ext.commands as commands except ImportError: print('Installing discord package...') pip.main(['install', 'discord']) import discord import discord.ext...
38.223077
119
0.657577
8e59c21141a721d1a6e1f045be78ca7645d03839
1,631
py
Python
2019/day19/beam.py
ivobatkovic/advent-of-code
e43489bcd2307f0f3ac8b0ec4e850f0a201f9944
[ "MIT" ]
3
2019-12-14T16:24:50.000Z
2020-12-06T16:40:13.000Z
2019/day19/beam.py
ivobatkovic/advent-of-code
e43489bcd2307f0f3ac8b0ec4e850f0a201f9944
[ "MIT" ]
4
2019-12-03T14:18:13.000Z
2020-12-03T08:29:32.000Z
2019/day19/beam.py
ivobatkovic/advent-of-code
e43489bcd2307f0f3ac8b0ec4e850f0a201f9944
[ "MIT" ]
2
2019-12-06T07:25:57.000Z
2020-12-08T12:42:37.000Z
from os.path import dirname from os.path import realpath from os.path import join import sys sys.path.append(join(dirname(realpath(__file__)), *[".."])) from day5.intcode import Intcode
30.203704
68
0.532189
8e5a77b0b67c023d2789aba656c385ac5032dd71
5,104
py
Python
backend/infs3202/settings/base.py
eivrei/INFS3202
e5b2aa29768a75475f4be3a31d824de842c8b1e9
[ "MIT" ]
null
null
null
backend/infs3202/settings/base.py
eivrei/INFS3202
e5b2aa29768a75475f4be3a31d824de842c8b1e9
[ "MIT" ]
9
2020-02-12T00:03:08.000Z
2022-02-10T07:52:04.000Z
backend/infs3202/settings/base.py
eivrei/INFS3202
e5b2aa29768a75475f4be3a31d824de842c8b1e9
[ "MIT" ]
null
null
null
""" Django settings for infs3202 project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os fro...
28.674157
140
0.702194
8e5ac2348781f289888c36eddf463b89f8679a94
5,353
py
Python
nilmtk_converter/generate_metadata.py
klemenjak/antgen
a6e465ee2e9150cf453ac84310e9399f2bb96f52
[ "MIT" ]
null
null
null
nilmtk_converter/generate_metadata.py
klemenjak/antgen
a6e465ee2e9150cf453ac84310e9399f2bb96f52
[ "MIT" ]
null
null
null
nilmtk_converter/generate_metadata.py
klemenjak/antgen
a6e465ee2e9150cf453ac84310e9399f2bb96f52
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ANTgen nilmtk_converter -- NILMTK output for the AMBAL-based NILM Trace generator # # Copyright (c) 2019-2020 Andreas Reinhardt <reinhardt@ieee.org>, Christoph Klemenjak # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated ...
35.926174
128
0.639081
8e5ad2559eb74a2ba3295de077382652f6e538ac
3,599
py
Python
utils/single_scripts/get_fundamentals.py
GrovesD2/ma_crossover
ad46039fce50f8ed1bff2c262495cf6bcb9f9f8a
[ "MIT" ]
null
null
null
utils/single_scripts/get_fundamentals.py
GrovesD2/ma_crossover
ad46039fce50f8ed1bff2c262495cf6bcb9f9f8a
[ "MIT" ]
null
null
null
utils/single_scripts/get_fundamentals.py
GrovesD2/ma_crossover
ad46039fce50f8ed1bff2c262495cf6bcb9f9f8a
[ "MIT" ]
null
null
null
import time from alpha_vantage.fundamentaldata import FundamentalData def fundamental_download_case(case: int, ticker: str, fd): ''' Due to the API limit of 5 calls per minute, this function was desinged so that every 5th download can impose a sl...
31.849558
86
0.580439
8e5dbf77c1f4b6d7c9826552285c5cd207894832
1,257
py
Python
miconvolucion.py
A01377098/pruebaSemanaTEC-A01377098
bf223c3e0bd79d8a7885f4ec9f86d62549bde208
[ "MIT" ]
null
null
null
miconvolucion.py
A01377098/pruebaSemanaTEC-A01377098
bf223c3e0bd79d8a7885f4ec9f86d62549bde208
[ "MIT" ]
null
null
null
miconvolucion.py
A01377098/pruebaSemanaTEC-A01377098
bf223c3e0bd79d8a7885f4ec9f86d62549bde208
[ "MIT" ]
null
null
null
#Funcin que calcula la matriz resultante "C" despus de aplicar la operacin convolucin de A*B= # EJERCICIO 28 DE OCTUBRE # Eva Denisse Vargas Sosa A01377098 import numpy as np Matriz = [[6, 9, 0, 3], [8, 4, 9, 1], [4, 1, 3, 12], [3, 2, 1, 100]] Filtro = [[1, 0, 2], [5, 0, 9], [6, 2, 1]] A = np.array(Matriz) B = np...
30.658537
97
0.504375
8e605be6a5e8d416273e08bffcd14fcff9ddc548
848
py
Python
blog/home/migrations/0001_initial.py
iflyBird/blog
33dbf6345ae4ae64f726c7ce5353b7c7864351af
[ "MIT" ]
null
null
null
blog/home/migrations/0001_initial.py
iflyBird/blog
33dbf6345ae4ae64f726c7ce5353b7c7864351af
[ "MIT" ]
null
null
null
blog/home/migrations/0001_initial.py
iflyBird/blog
33dbf6345ae4ae64f726c7ce5353b7c7864351af
[ "MIT" ]
null
null
null
# Generated by Django 2.1.8 on 2020-05-27 15:24 import datetime from django.db import migrations, models from django.utils.timezone import utc
28.266667
118
0.568396
8e66950476f3120b32bcd04589815986e5d86f82
1,587
py
Python
Ulanowicz_Chris/Assignments/ninja_gold/server.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Ulanowicz_Chris/Assignments/ninja_gold/server.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Ulanowicz_Chris/Assignments/ninja_gold/server.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, session, request import random import datetime app = Flask(__name__) app.secret_key = "12345678asdfghjk" app.run()
29.943396
84
0.625709
8e66f42aa9f3d76581d68b02d53d96cb65653cfe
1,066
py
Python
src/compas_ghpython/artists/polylineartist.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas_ghpython/artists/polylineartist.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas_ghpython/artists/polylineartist.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas_ghpython from compas.artists import PrimitiveArtist from .artist import GHArtist
26.65
112
0.680113
8e679278b307b465ecd252c4828b2ff98fb05271
14,890
py
Python
stade/core/views.py
ImageMarkup/stade
d930e8c7487754b2babd6a3be69f2c614cd7f609
[ "Apache-2.0" ]
4
2019-09-25T22:57:32.000Z
2021-03-03T16:49:30.000Z
stade/core/views.py
ImageMarkup/stade
d930e8c7487754b2babd6a3be69f2c614cd7f609
[ "Apache-2.0" ]
55
2019-10-30T16:58:43.000Z
2021-10-09T23:26:03.000Z
stade/core/views.py
ImageMarkup/stade
d930e8c7487754b2babd6a3be69f2c614cd7f609
[ "Apache-2.0" ]
1
2020-02-03T17:14:32.000Z
2020-02-03T17:14:32.000Z
from datetime import timedelta import logging from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib.auth.models import User from django.db.models import Count, Exists, OuterRef, Prefetch from django.http impo...
33.611738
100
0.651041
8e67cd9cfa819f5435d8aaa629ca0362047fd00b
2,356
py
Python
auctions/utils.py
zebadiahtaylor/cs50-Commerce
c8c56a0da861a32b1929053dd62e926e37f6b1b5
[ "MIT" ]
null
null
null
auctions/utils.py
zebadiahtaylor/cs50-Commerce
c8c56a0da861a32b1929053dd62e926e37f6b1b5
[ "MIT" ]
null
null
null
auctions/utils.py
zebadiahtaylor/cs50-Commerce
c8c56a0da861a32b1929053dd62e926e37f6b1b5
[ "MIT" ]
null
null
null
from .models import Auction, Bid, Comment, User from django.db.models import Max def has_bids(auction): """ Returns True if others have bid on the item. TODO: Throws TypeError if user not logged in """ # auction = Auction.objects.get(id=auction) has_bids = False try: current_bid ...
24.8
110
0.660866
8e67d515242da662f008461e6ce926c1409d9c17
123
py
Python
demo_broadcast.py
Monster880/pytorch_py
9c5ac5974f48edb5ea3d897a1100a63d488c61d9
[ "MIT" ]
null
null
null
demo_broadcast.py
Monster880/pytorch_py
9c5ac5974f48edb5ea3d897a1100a63d488c61d9
[ "MIT" ]
null
null
null
demo_broadcast.py
Monster880/pytorch_py
9c5ac5974f48edb5ea3d897a1100a63d488c61d9
[ "MIT" ]
null
null
null
import torch a = torch.rand(2,4,1,3) b = torch.rand(4,2,3) c = a + b # 2*4*2*3 print(a) print(b) print(c) print(c.shape)
10.25
23
0.601626
8e69a5c8081ab67d24d71533f90942eb113eab78
1,178
py
Python
src/test.py
D038806/face_classification
9be2b51871008c97f3e71e4ceb2d4d031a0ca363
[ "MIT" ]
null
null
null
src/test.py
D038806/face_classification
9be2b51871008c97f3e71e4ceb2d4d031a0ca363
[ "MIT" ]
7
2019-12-16T21:39:15.000Z
2021-10-12T22:56:31.000Z
src/test.py
Huang-chi/face_classification
9be2b51871008c97f3e71e4ceb2d4d031a0ca363
[ "MIT" ]
null
null
null
import cv2 as cv import matplotlib.pyplot as plt import random as rd import pandas as pd from emotion_icon import load_emotion_icon angry_man = None all_image = load_emotion_icon() # images = pd.DataFrame(all_image) # print(all_image['angry_man']) # load # angry_man = cv.imread("./img/angry_man.jpg...
24.040816
62
0.656197
8e6c720ed11080cd24768da2e5b31afb17339d1c
1,778
py
Python
tests/test_urls.py
kverdecia/dj-mypypi2
4ca5f67901a6a41029b4e1b0eccf8d74d4958b58
[ "MIT" ]
1
2021-08-12T08:59:09.000Z
2021-08-12T08:59:09.000Z
tests/test_urls.py
kverdecia/dj-mypypi2
4ca5f67901a6a41029b4e1b0eccf8d74d4958b58
[ "MIT" ]
8
2021-04-24T06:08:07.000Z
2021-07-25T07:18:03.000Z
tests/test_urls.py
kverdecia/dj-mypypi2
4ca5f67901a6a41029b4e1b0eccf8d74d4958b58
[ "MIT" ]
null
null
null
import cuid from django.urls import reverse, resolve from django.test import TestCase from djmypypi2 import models from djmypypi2 import factories
35.56
98
0.707537
8e6de0dffa62535acd94ac48b411c974051bb2fa
6,558
py
Python
deepst/utils/evalMultiStepAhead.py
amirkhango/DeepST
7ba669013bbafd5f413ef50d5d76094c3a68efd6
[ "MIT" ]
29
2020-05-16T01:24:03.000Z
2022-03-28T02:17:16.000Z
deepst/utils/evalMultiStepAhead.py
wss981086665/DeepST
7ba669013bbafd5f413ef50d5d76094c3a68efd6
[ "MIT" ]
null
null
null
deepst/utils/evalMultiStepAhead.py
wss981086665/DeepST
7ba669013bbafd5f413ef50d5d76094c3a68efd6
[ "MIT" ]
21
2020-04-21T02:44:27.000Z
2022-03-13T14:18:34.000Z
from __future__ import print_function import sys from deepst_flow.models.gan import generator_model from deepst_flow.datasets import load_stdata from deepst_flow.preprocessing import MinMaxNormalization from deepst_flow.preprocessing import remove_incomplete_days # import h5py import numpy as np from keras.opti...
33.28934
116
0.613602
8e6f1d30087ea8e2e9784ed81ab2535019f36f7a
2,263
py
Python
google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/rest_api_helper.py
Parkman328/datacatalog-connectors-bi
630de336617728713779d7224eeab140d5abaec2
[ "Apache-2.0" ]
27
2020-04-27T21:55:49.000Z
2022-02-18T22:09:13.000Z
google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/rest_api_helper.py
Parkman328/datacatalog-connectors-bi
630de336617728713779d7224eeab140d5abaec2
[ "Apache-2.0" ]
36
2020-05-01T15:26:14.000Z
2022-03-26T00:09:19.000Z
google-datacatalog-tableau-connector/src/google/datacatalog_connectors/tableau/scrape/rest_api_helper.py
Parkman328/datacatalog-connectors-bi
630de336617728713779d7224eeab140d5abaec2
[ "Apache-2.0" ]
18
2020-04-30T22:14:09.000Z
2022-01-13T10:28:03.000Z
#!/usr/bin/python # # 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 ag...
31
74
0.646929
8e6f8dcf33c75f93ce9f79ec223c5b18d53a4296
5,426
py
Python
app.py
tiesjan/htmx-flask-experiment
4a8007406c2b7c7cba1994b10bc3831777ed2bb7
[ "BSD-3-Clause" ]
1
2022-03-07T14:43:56.000Z
2022-03-07T14:43:56.000Z
app.py
tiesjan/htmx-flask-experiment
4a8007406c2b7c7cba1994b10bc3831777ed2bb7
[ "BSD-3-Clause" ]
null
null
null
app.py
tiesjan/htmx-flask-experiment
4a8007406c2b7c7cba1994b10bc3831777ed2bb7
[ "BSD-3-Clause" ]
null
null
null
import functools import random import secrets import string import time from flask import Flask, abort, g, render_template, redirect, request, url_for from flask_wtf.csrf import CSRFProtect from werkzeug.exceptions import HTTPException from .db import ( create_contact, delete_contact, get_contact_or_404, init_db,...
29.813187
80
0.66937
8e730584ca11f30284920b2922622bfc0a12117d
729
py
Python
use/python/pkg_project/mugglefoo/tests/test_foo.py
MuggleWei/Hakuna_Matata
6a3a012dc2a5942599098d94e90e9381d660500d
[ "WTFPL" ]
null
null
null
use/python/pkg_project/mugglefoo/tests/test_foo.py
MuggleWei/Hakuna_Matata
6a3a012dc2a5942599098d94e90e9381d660500d
[ "WTFPL" ]
30
2020-03-04T21:59:09.000Z
2022-01-04T16:46:52.000Z
use/python/pkg_project/mugglefoo/tests/test_foo.py
MuggleWei/Hakuna_Matata
6a3a012dc2a5942599098d94e90e9381d660500d
[ "WTFPL" ]
null
null
null
import unittest from src.mugglefoo.foo import Foo if __name__ == "__main__": unittest.main()
24.3
54
0.61454
8e737e33e74f3276d844344a4c10171eec52b639
9,398
py
Python
mpl_gui/__init__.py
matplotlib/mpl-gui
5be9b47a6afb018e79c502e5c8c9211c3e04918b
[ "BSD-3-Clause" ]
null
null
null
mpl_gui/__init__.py
matplotlib/mpl-gui
5be9b47a6afb018e79c502e5c8c9211c3e04918b
[ "BSD-3-Clause" ]
2
2022-02-11T15:35:56.000Z
2022-02-11T15:36:01.000Z
mpl_gui/__init__.py
matplotlib/mpl-gui
5be9b47a6afb018e79c502e5c8c9211c3e04918b
[ "BSD-3-Clause" ]
null
null
null
""" Prototype project for new Matplotlib GUI management. The pyplot module current serves two critical, but unrelated functions: 1. provide a state-full implicit API that rhymes / was inspired by MATLAB 2. provide the management of interaction between Matplotlib and the GUI event loop This project is prototype fo...
32.86014
109
0.653437
8e74e2a27e4c0d194d3b3afda09bbcba3cc4b1b2
1,261
py
Python
tests/integration/test_application_variables.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
tests/integration/test_application_variables.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
tests/integration/test_application_variables.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from app import settings from tests.integration.create_token import create_token from tests.integration.integration_test_case import IntegrationTestCase
33.184211
114
0.723236
8e753ccf05cb23cf58607be8adc09922fb01557d
1,125
py
Python
configs/selfsup/simmim/simmim_swin-base_16xb128-coslr-100e_in1k-192.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
355
2021-12-16T04:32:49.000Z
2022-03-31T22:15:23.000Z
configs/selfsup/simmim/simmim_swin-base_16xb128-coslr-100e_in1k-192.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
89
2021-12-16T05:15:42.000Z
2022-03-31T10:57:39.000Z
configs/selfsup/simmim/simmim_swin-base_16xb128-coslr-100e_in1k-192.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
74
2021-12-16T04:40:02.000Z
2022-03-31T08:40:32.000Z
_base_ = [ '../_base_/models/simmim_swin-base.py', '../_base_/datasets/imagenet_simmim.py', '../_base_/schedules/adamw_coslr-200e_in1k.py', '../_base_/default_runtime.py', ] # data data = dict(samples_per_gpu=128) # optimizer optimizer = dict( lr=2e-4 * 2048 / 512, betas=(0.9, 0.999), eps=...
22.959184
66
0.662222
8e75a055e209b834657641cfacff2b7ed0b25ae6
58
py
Python
ktpdriver/__init__.py
kevinmooreiii/moldriver
65a0a9cef8971737076f81720a61aa5b607333d2
[ "Apache-2.0" ]
null
null
null
ktpdriver/__init__.py
kevinmooreiii/moldriver
65a0a9cef8971737076f81720a61aa5b607333d2
[ "Apache-2.0" ]
null
null
null
ktpdriver/__init__.py
kevinmooreiii/moldriver
65a0a9cef8971737076f81720a61aa5b607333d2
[ "Apache-2.0" ]
null
null
null
from ktpdriver import driver __all__ = [ 'driver', ]
9.666667
28
0.655172
8e75e5f26cb8629567f69c1cfa9a9de6e016a2ad
649
py
Python
rl_env/Trackers/ScalarTracker.py
Florian-BACHO/RL-ENV
fa3c244f568237d12abc4bfc3344fc4e3dbc9f2c
[ "MIT" ]
null
null
null
rl_env/Trackers/ScalarTracker.py
Florian-BACHO/RL-ENV
fa3c244f568237d12abc4bfc3344fc4e3dbc9f2c
[ "MIT" ]
1
2018-10-02T07:49:42.000Z
2018-10-02T07:49:42.000Z
rl_env/Trackers/ScalarTracker.py
Florian-BACHO/RL-ENV
fa3c244f568237d12abc4bfc3344fc4e3dbc9f2c
[ "MIT" ]
null
null
null
import tensorflow as tf
30.904762
76
0.587057
8e769912ad571ddd4491f18b4879606e05b5fda5
1,793
py
Python
dnac_pnp/api_endpoint_handler.py
nttde/dnac_pnp
248dc397fc083ff13f5a0106b1cde77a9aaead55
[ "BSD-3-Clause" ]
5
2020-10-13T01:06:39.000Z
2021-02-21T20:21:45.000Z
dnac_pnp/api_endpoint_handler.py
nttde/dnac_pnp
248dc397fc083ff13f5a0106b1cde77a9aaead55
[ "BSD-3-Clause" ]
null
null
null
dnac_pnp/api_endpoint_handler.py
nttde/dnac_pnp
248dc397fc083ff13f5a0106b1cde77a9aaead55
[ "BSD-3-Clause" ]
1
2020-11-10T01:34:33.000Z
2020-11-10T01:34:33.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module handles API endpoints""" # Import builtin python libraries import json import logging import os import sys # Import external python libraries import click # Import custom (local) python packages from . import dnac_handler as dnac # Source code meta data...
30.913793
85
0.661461
8e775a9ec46afc1926576d289cbfc029d509f902
91
py
Python
Django_ResumeParser/views.py
Aarif1430/Django_Crispy_Forms
67b8ae5220cd2f3c85189f8901af1cd3eba17af8
[ "MIT" ]
4
2019-03-01T03:00:55.000Z
2021-01-13T21:20:32.000Z
Django_ResumeParser/views.py
Aarif1430/Django_Crispy_Forms
67b8ae5220cd2f3c85189f8901af1cd3eba17af8
[ "MIT" ]
null
null
null
Django_ResumeParser/views.py
Aarif1430/Django_Crispy_Forms
67b8ae5220cd2f3c85189f8901af1cd3eba17af8
[ "MIT" ]
null
null
null
from django.shortcuts import redirect
22.75
37
0.802198
8e7a1837cbc757431ff0099103a28628dcad3aa0
5,754
py
Python
SC101_Assignment4/babygraphics.py
kevinfang418/sc-projects
c5b9023b137c704de3488fe2f5fe307187d957b6
[ "MIT" ]
null
null
null
SC101_Assignment4/babygraphics.py
kevinfang418/sc-projects
c5b9023b137c704de3488fe2f5fe307187d957b6
[ "MIT" ]
null
null
null
SC101_Assignment4/babygraphics.py
kevinfang418/sc-projects
c5b9023b137c704de3488fe2f5fe307187d957b6
[ "MIT" ]
null
null
null
""" SC101 Baby Names Project Adapted from Nick Parlante's Baby Names assignment by Jerry Liao. YOUR DESCRIPTION HERE """ import tkinter import babynames import babygraphicsgui as gui FILENAMES = [ 'data/full/baby-1900.txt', 'data/full/baby-1910.txt', 'data/full/baby-1920.txt', 'data/full/baby-1930.txt', ...
34.45509
111
0.631213
8e7a68b2753d93b65ff3b67dcdc29ddb94146add
3,341
py
Python
model/vgg_16_minggu_malam.py
ferdyandannes/Monocular-3D-Object-Detection
85c424ce0ab386da9b30629819d63f7ec888c9c1
[ "MIT" ]
4
2020-08-19T19:01:42.000Z
2021-01-15T09:00:32.000Z
model/vgg_16_minggu_malam.py
ferdyandannes/Monocular-3D-Object-Detection
85c424ce0ab386da9b30629819d63f7ec888c9c1
[ "MIT" ]
2
2020-11-28T03:38:29.000Z
2022-01-18T01:24:45.000Z
model/vgg_16_minggu_malam.py
ferdyandannes/Monocular-3D-Object-Detection
85c424ce0ab386da9b30629819d63f7ec888c9c1
[ "MIT" ]
null
null
null
''' Refs: Very Deep Convolutional Networks for Large-Scale Image Recognition -- https://arxiv.org/abs/1409.1556 ''' import tensorflow as tf layers = tf.keras.layers reg = tf.keras.regularizers from config import config as cfg ## from keras.models import Sequential from keras.layers.core import Flatten, Dense, Dr...
38.848837
105
0.671955
8e7b08d637cce69bc4a4d0a5a4c6c80ffe9778af
5,864
py
Python
Space_Dodge/Main.py
Mctowell/Space-Dodge
5130f7fb42b6f129b0aa2b237ab0ad6a6b2028b2
[ "Unlicense" ]
null
null
null
Space_Dodge/Main.py
Mctowell/Space-Dodge
5130f7fb42b6f129b0aa2b237ab0ad6a6b2028b2
[ "Unlicense" ]
null
null
null
Space_Dodge/Main.py
Mctowell/Space-Dodge
5130f7fb42b6f129b0aa2b237ab0ad6a6b2028b2
[ "Unlicense" ]
null
null
null
import time import pygame, random pygame.mixer.pre_init(44100, -16, 2, 512) pygame.init() win=pygame.display.set_mode((700, 700)) pygame.display.set_caption('Space Dodge') game=True menu=True run=False plyr=pygame.image.load('Assets/Spaceship.png') plyr=pygame.transform.scale(plyr, (100, 100)) asteroid1=pygame.image...
26.776256
144
0.598397
8e8200ed6d5021d08655aa8f904b78250d30b5d3
4,621
py
Python
src/greenbudget/conf/__init__.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/conf/__init__.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/conf/__init__.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
import os import csv from dotenv import load_dotenv import logging import pathlib import sys logger = logging.getLogger('greenbudget') config = Config()
31.222973
79
0.602034
8e88b53f62608fe65e014978d4aa6994a1935a70
1,019
py
Python
enStego.py
q1jun/EncodeBase64
a7ca5f4703b54fe512125b517d19565fb12409e3
[ "MIT" ]
null
null
null
enStego.py
q1jun/EncodeBase64
a7ca5f4703b54fe512125b517d19565fb12409e3
[ "MIT" ]
null
null
null
enStego.py
q1jun/EncodeBase64
a7ca5f4703b54fe512125b517d19565fb12409e3
[ "MIT" ]
null
null
null
import base64 import sys if __name__ == "__main__": if len(sys.argv) == 4: print("Remaining",enStego(sys.argv[1],sys.argv[2],sys.argv[3]),"bits!") else: print("Remaining",enStego("source.txt","stego.txt","SimpleMessage\n"),"bits!")
42.458333
106
0.576055
8e8955df8f741d9a397d8fe6b6519e05ceb7da8b
2,437
py
Python
Extra/rdkit_fingerprint.py
TBomberman/DeepCOP-1
5a496a27c71fb93768ebd9051981a76bb3d7ecfc
[ "MIT" ]
4
2019-10-04T16:04:43.000Z
2020-09-14T01:57:36.000Z
Extra/rdkit_fingerprint.py
TBomberman/DeepCOP-1
5a496a27c71fb93768ebd9051981a76bb3d7ecfc
[ "MIT" ]
null
null
null
Extra/rdkit_fingerprint.py
TBomberman/DeepCOP-1
5a496a27c71fb93768ebd9051981a76bb3d7ecfc
[ "MIT" ]
8
2019-06-25T22:41:07.000Z
2021-12-30T11:57:09.000Z
import numpy as np from rdkit.Chem import AllChem, DataStructs from rdkit import Chem import csv i = 0 finger_dimension = 2048 molecules = [] fps = [] id = [] smiles = [] names = [] import os path = os.path.dirname(os.path.abspath(__file__)) print(path) drug_dict = get_feature_dict('GSE92742_Broad_LINCS_pert_info.txt'...
32.932432
123
0.627
8e89db1f3b5d7c76a68b0918dad3ab56b9df8420
1,756
py
Python
conjur/argument_parser/_screen_options_parser.py
mbjahnoon/conjur-api-python3
ec1f62bb1baf2bdcd34d2fb92c97db724f761020
[ "Apache-2.0" ]
null
null
null
conjur/argument_parser/_screen_options_parser.py
mbjahnoon/conjur-api-python3
ec1f62bb1baf2bdcd34d2fb92c97db724f761020
[ "Apache-2.0" ]
2
2022-03-09T11:56:10.000Z
2022-03-14T14:53:15.000Z
conjur/argument_parser/_screen_options_parser.py
cyberark/cyberark-conjur-cli
2507e8769808643d89efa7e2496cfc14f505bd7e
[ "Apache-2.0" ]
null
null
null
""" Module For the ScreenOptionsParser """ from conjur.version import __version__ from conjur.argument_parser.parser_utils import conjur_copyright # pylint: disable=too-few-public-methods
45.025641
95
0.559226
8e8a3b4799aa3a03f585bb3ef581ec16b284dad4
3,134
py
Python
corpora/caito.py
ishine/neural-lexicon-reader
66f4c464a7a442812e79458759ac913ce51d1c6e
[ "MIT" ]
4
2021-10-31T08:29:21.000Z
2021-12-29T08:12:56.000Z
corpora/caito.py
shaun95/neural-lexicon-reader
66f4c464a7a442812e79458759ac913ce51d1c6e
[ "MIT" ]
1
2021-12-12T11:22:20.000Z
2021-12-12T11:53:47.000Z
corpora/caito.py
mutiann/neural-lexicon-reader
66f4c464a7a442812e79458759ac913ce51d1c6e
[ "MIT" ]
null
null
null
# Available at https://www.caito.de/2019/01/the-m-ailabs-speech-dataset/ from corpora import dataset_path, transformed_path import os, glob, shutil import librosa import tqdm from collections import defaultdict subcorpora = ['en_US', 'en_UK', 'de_DE', 'es_ES', 'it_IT', 'uk_UK', 'ru_RU', 'pl_PL', 'fr_FR'] spk_names = {...
40.701299
98
0.574984