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
2c33c3656f1470ff41575901a7b5533eecb2a153
20,247
py
Python
out.py
CYB3R73/hiro-bot
a1217d950b4bb228689b1a4b585cecbb064f3a2b
[ "Apache-2.0" ]
null
null
null
out.py
CYB3R73/hiro-bot
a1217d950b4bb228689b1a4b585cecbb064f3a2b
[ "Apache-2.0" ]
null
null
null
out.py
CYB3R73/hiro-bot
a1217d950b4bb228689b1a4b585cecbb064f3a2b
[ "Apache-2.0" ]
null
null
null
[2021-06-17T19:47:05.267189+03:00] DiscordPHP.INFO: gateway retrieved and set {"gateway":"wss://gateway.discord.gg/?v=6&encoding=json","session":{"total":1000,"remaining":983,"reset_after":62092171,"max_concurrency":1}} [] [2021-06-17T19:47:05.270016+03:00] DiscordPHP.INFO: starting connection to websocket {"gateway":"...
54.721622
426
0.703265
2c3545b94818bca3c82a497be99bd356be44a3e7
7,592
py
Python
lokii/table.py
dorukerenaktas/lok
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
1
2021-02-07T09:57:28.000Z
2021-02-07T09:57:28.000Z
lokii/table.py
dorukerenaktas/lokii
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
null
null
null
lokii/table.py
dorukerenaktas/lokii
0fce198cfc3e5293a2666a66a5d1ee80b81fca48
[ "MIT" ]
null
null
null
import random from typing import Dict, Callable, List, Any, Optional import pandas as pd
37.584158
107
0.601159
2c36eb0bb22cd8a2ed48443d1c87d8de5ed364ca
13,428
py
Python
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
4
2019-06-25T02:02:56.000Z
2019-10-24T08:12:41.000Z
powerspectrum.py
ronniyjoseph/Beam-Perturbations
0122fed7e3018f2e188e12b62ad760e11f6eb158
[ "MIT" ]
null
null
null
import numpy import powerbox import matplotlib from matplotlib import pyplot import matplotlib.colors as colors from plottools import colorbar from generaltools import symlog_bounds from radiotelescope import beam_width """ This file is going to contain all relevant power spectrum functions, i.e data gridding, (freq...
44.611296
126
0.629803
2c3a2df09b00838929b47a69b48dbd4d97a14392
3,089
py
Python
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
banditpylib/protocols/single_player.py
XiGYmax/banditpylib
07698a1c6b17720a8199dea76580546fe3dfb9be
[ "MIT" ]
null
null
null
from typing import List, Dict import numpy as np from absl import logging from banditpylib.bandits import Bandit from banditpylib.learners import Learner from .utils import Protocol
28.601852
79
0.672062
2c3ba3a7de0cd2d1f09de245212daad861a07972
2,873
py
Python
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
7
2020-12-11T16:06:03.000Z
2022-02-13T20:56:06.000Z
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
4
2021-07-13T10:50:49.000Z
2021-08-13T16:06:20.000Z
3pxnet-inference/scripts/runValidation.py
SRavit1/3pxnet
1f81a2bdcbb97c42163e914b01dba4e6c73ade60
[ "MIT" ]
1
2021-07-06T03:41:55.000Z
2021-07-06T03:41:55.000Z
#!/usr/bin/env python ################################################################################ # MIT License # # Copyright (c) 2019 UCLA NanoCAD Laboratory # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "So...
34.614458
95
0.577445
2c3c00e8f94657bbf831d69554620cc2f14d7279
978
py
Python
setup.py
nous-consulting/basecamp-next
33851de091056a33663c9370f564cf3d41fe868f
[ "MIT" ]
2
2015-03-28T21:50:36.000Z
2015-09-10T22:29:17.000Z
setup.py
GetBlimp/basecamp-next
f7ebdd3da97ee13cd5ca18f440506fbbc84e7800
[ "MIT" ]
null
null
null
setup.py
GetBlimp/basecamp-next
f7ebdd3da97ee13cd5ca18f440506fbbc84e7800
[ "MIT" ]
4
2015-04-14T16:18:26.000Z
2021-03-28T19:00:21.000Z
import os try: from setuptools import setup except ImportError: from distutils.core import setup required = ['requests>=1.0.0', 'requests-oauth2>=0.2.0'] setup( name='basecampx', version='0.1.8', author='Rimvydas Naktinis', author_email='naktinis@gmail.com', description=('Wrap...
27.166667
70
0.641104
2c3c2a730b5f9ebaec5a9cf2153e02f5e709d39e
2,602
py
Python
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
15
2020-11-09T16:35:08.000Z
2022-02-12T14:53:11.000Z
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
1
2021-07-21T03:33:46.000Z
2021-08-08T20:24:12.000Z
crop_align/crop_align_affectnet.py
AutoLV/NoisyFER
353ff60bad90dd346cd6a8fc54d7a6acd5897044
[ "MIT" ]
3
2021-03-30T10:21:52.000Z
2021-09-12T15:55:32.000Z
import sys rootPath = '/Users/siwei/Desktop/noisyFER' sys.path.append(rootPath) import os from tqdm import tqdm import cv2 import csv import numpy as np import argparse from crop_align.align import MyFaceAligner parser = argparse.ArgumentParser() parser.add_argument("--root", type=str, default='datasets/affectnet')...
35.162162
103
0.618755
2c3c89d30724c38d60dae13286e13556b05ebcb3
640
py
Python
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
bot/cli.py
LukasForst/toggl-wire-bot
1a242ef281b3cb501f30a1acee9cda7fd2cb2a84
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from Toggl.togglApi import getTogglReport if __name__ == '__main__': parser = argparse.ArgumentParser(description='Obtain report from Toggl.') parser.add_argument("--toggl-token", "-tt", help="Set Toggl token.") parser.add_argument("--toggl-workspace", "-w", help="S...
32
96
0.698438
2c3e24b4b6d91fcd05c76dfb86067fae1b3b498e
3,746
py
Python
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
null
null
null
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2022-03-28T13:44:24.000Z
2022-03-28T13:53:57.000Z
a_storage/codec/codec_agroup.py
praefrontalis/Anfisa-Annotations
b4127c68e3696b75b2972f6759437034cc56f8e3
[ "Apache-2.0" ]
3
2019-02-18T17:05:06.000Z
2022-03-22T19:42:38.000Z
from ._codec_data import _CodecData #===============================================
38.618557
77
0.540577
2c3ea335989982f0ae8f5847cf419f798c2e40fa
3,528
py
Python
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
2
2017-12-02T13:58:30.000Z
2018-08-02T17:07:59.000Z
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
app/customer/models/bottle_message.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import random from mongoengine import * from base.settings import CHATPAMONGO import datetime connect(CHATPAMONGO.db, host=CHATPAMONGO.host, port=CHATPAMONGO.port, username=CHATPAMONGO.username, password=CHATPAMONGO.password)
23.837838
100
0.622166
2c3fd53f9be0ab6b23ce5e13685ed3cedb8f6c3f
1,440
py
Python
app/twitter_client/services/twitter.py
TennaGraph/TennaGraph
002998d94300ee67168f1a8164c0e6bc86836e1f
[ "Apache-2.0" ]
7
2018-11-13T17:39:15.000Z
2019-03-27T04:55:24.000Z
app/twitter_client/services/twitter.py
TennaGraph/TennaGraph
002998d94300ee67168f1a8164c0e6bc86836e1f
[ "Apache-2.0" ]
72
2018-11-09T14:20:25.000Z
2020-06-05T19:28:19.000Z
app/twitter_client/services/twitter.py
TennaGraph/TennaGraph
002998d94300ee67168f1a8164c0e6bc86836e1f
[ "Apache-2.0" ]
3
2018-11-19T19:10:39.000Z
2019-08-23T20:52:23.000Z
# Stdlib import logging # Django imports from django.conf import settings # Pip imports import twitter logger = logging.getLogger(__name__)
27.692308
99
0.609028
2c4009a74bdc9f67bd15c60010e651ad516d4094
5,834
py
Python
app/unit_test_text_buffer.py
nthparameter/ci_edit
e9227fbdf99ac1c0afa3a5af4e458409d9c6ce55
[ "Apache-2.0" ]
229
2017-05-25T04:59:28.000Z
2022-03-30T17:35:33.000Z
app/unit_test_text_buffer.py
nthparameter/ci_edit
e9227fbdf99ac1c0afa3a5af4e458409d9c6ce55
[ "Apache-2.0" ]
185
2017-06-08T17:48:48.000Z
2022-03-15T12:25:18.000Z
app/unit_test_text_buffer.py
nthparameter/ci_edit
e9227fbdf99ac1c0afa3a5af4e458409d9c6ce55
[ "Apache-2.0" ]
76
2017-05-25T17:16:21.000Z
2022-03-12T23:48:06.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.883117
86
0.495886
2c4056e4df5f108b083b534021811e7cb612782d
1,399
py
Python
watchmate/user_app/tests.py
bvmcardoso/drf_python_api
cbb7289594287039a133131b73bdc75c8c4e0530
[ "MIT" ]
null
null
null
watchmate/user_app/tests.py
bvmcardoso/drf_python_api
cbb7289594287039a133131b73bdc75c8c4e0530
[ "MIT" ]
null
null
null
watchmate/user_app/tests.py
bvmcardoso/drf_python_api
cbb7289594287039a133131b73bdc75c8c4e0530
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.urls import reverse from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase
31.795455
89
0.647605
2c414ad869d7c8870326e68eef3da496a4777bf5
663
py
Python
reports/views.py
erinspace/rivannastreamwatch
23bfcee247d539449fca2ab9357bd450aa0a431d
[ "MIT" ]
null
null
null
reports/views.py
erinspace/rivannastreamwatch
23bfcee247d539449fca2ab9357bd450aa0a431d
[ "MIT" ]
null
null
null
reports/views.py
erinspace/rivannastreamwatch
23bfcee247d539449fca2ab9357bd450aa0a431d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView, RetrieveAPIView from reports.models import Report from reports.serializers import ReportSerializer, UserSerializer
26.52
100
0.803922
2c415bbaa990e45ba44ba5f6b832f5d35a83609a
67,578
py
Python
qt4a/androiddriver/webdriver.py
qtateam/QT4A
3852e1a7740229e9930c610072bbbc700fb13f81
[ "BSD-3-Clause" ]
1
2018-11-27T03:32:38.000Z
2018-11-27T03:32:38.000Z
qt4a/androiddriver/webdriver.py
qtateam/QT4A
3852e1a7740229e9930c610072bbbc700fb13f81
[ "BSD-3-Clause" ]
null
null
null
qt4a/androiddriver/webdriver.py
qtateam/QT4A
3852e1a7740229e9930c610072bbbc700fb13f81
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Tencent is pleased to support the open source community by making QTA available. # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # Licensed under the BSD 3-Clause License (the "License"); you may not use this # file except in compliance with the License. You may...
32.287625
160
0.40892
2c43035692fa6a7c9793606b200857a4997d78db
3,646
py
Python
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
1
2020-12-03T08:52:58.000Z
2020-12-03T08:52:58.000Z
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
null
null
null
names_generator/__init__.py
glentner/names_generator
c3526a90f3c0f8d2b388542dc3770baa4cc455fe
[ "Apache-2.0" ]
2
2021-01-16T08:52:33.000Z
2022-02-24T13:53:58.000Z
# This program is free software: you can redistribute it and/or modify it under the # terms of the Apache License (v2.0) as published by the Apache Software Foundation. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or...
28.708661
93
0.694185
2c431d85cef6b81fa14e9c6e9f5d7057ee4c9176
849
py
Python
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
1
2021-01-14T10:03:49.000Z
2021-01-14T10:03:49.000Z
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
2
2020-09-13T00:47:54.000Z
2021-09-25T16:14:35.000Z
cotd/plugins/motivationv2.py
5h4d0w4rt/cotd-telegram-bot
2185353047557aa0864d64d464597993d0b5eb02
[ "MIT" ]
1
2020-09-12T22:34:04.000Z
2020-09-12T22:34:04.000Z
import io import typing import uuid import ratelimit import telegram import telegram.ext from cotd.plugins.helpers import make_image from PIL import Image ONE_SECOND = 1
24.257143
83
0.714959
2c4650e94fee91b5f49f98368ac81c86ddacf390
265
py
Python
torabot/lang/targets/test/ut.py
Answeror/torabot
b6260190ec1f0dc8bf3f7ba3512c0522668c59ed
[ "MIT" ]
42
2015-01-20T10:45:08.000Z
2021-04-17T05:10:27.000Z
torabot/lang/targets/test/ut.py
Answeror/torabot
b6260190ec1f0dc8bf3f7ba3512c0522668c59ed
[ "MIT" ]
4
2015-01-23T05:40:44.000Z
2016-12-19T03:52:20.000Z
torabot/lang/targets/test/ut.py
Answeror/torabot
b6260190ec1f0dc8bf3f7ba3512c0522668c59ed
[ "MIT" ]
8
2015-05-07T03:51:05.000Z
2019-03-20T05:40:47.000Z
import os from ...envs.fs import Env CURRENT_PATH = os.path.abspath(os.path.dirname(__file__))
17.666667
59
0.675472
2c4678c8414aab0401b6d84d47eed85060f96ad3
1,844
py
Python
btorch/device.py
vladstreltsin/blox
2822b84220e512c8012b1b4ec51d6e534bd4d652
[ "MIT" ]
null
null
null
btorch/device.py
vladstreltsin/blox
2822b84220e512c8012b1b4ec51d6e534bd4d652
[ "MIT" ]
null
null
null
btorch/device.py
vladstreltsin/blox
2822b84220e512c8012b1b4ec51d6e534bd4d652
[ "MIT" ]
null
null
null
from __future__ import annotations from blox_old.core.engine.device import BlockDevice from blox_old.btorch.module import TorchModule, TorchModuleError import torch from blox_old.utils import raise_if from blox_old.core.block.base import Block import typing as T # Moves all TorchModule to the cpu def unset(...
32.350877
118
0.66974
2c46b8c428613c0415bcebe2afa738881759f61c
2,987
py
Python
DARPAScripts/farsight_Split_Montage.py
tostathaina/farsight
7e9d6d15688735f34f7ca272e4e715acd11473ff
[ "Apache-2.0" ]
8
2016-07-22T11:24:19.000Z
2021-04-10T04:22:31.000Z
DARPAScripts/farsight_Split_Montage.py
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
null
null
null
DARPAScripts/farsight_Split_Montage.py
YanXuHappygela/Farsight
1711b2a1458c7e035edd21fe0019a1f7d23fcafa
[ "Apache-2.0" ]
7
2016-07-21T07:39:17.000Z
2020-01-29T02:03:27.000Z
import ij import os import math global foldername foldername=None tilesize=1024 ############################## ''' Start of actual script ''' ############################## #fd = OpenDialog("Save Tiles In",None) prefixval = 'Chan3_' fd= DirectoryChooser("Save Tiles In") foldername= fd.getDirectory() if foldername: ...
31.776596
259
0.668899
2c46ebea0fe0e050587aad5c5ac6a903aa168e9c
21,090
py
Python
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
2
2020-02-12T09:57:46.000Z
2020-04-03T07:40:07.000Z
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
null
null
null
renderSDK/Rayvision.py
wangshunhui/renderSDK
b512c43fd0111c114b6abc6398c4609b758436e4
[ "Apache-2.0" ]
1
2020-04-16T11:19:58.000Z
2020-04-16T11:19:58.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Main """ from .compat import * import os import sys import logging import codecs import time from .RayvisionUtil import get_os, hump2underline, cg_id_name_dict, decorator_use_in_class, format_time from .RayvisionAPI import RayvisionAPI from .RayvisionJob import Rayvi...
46.048035
233
0.625273
2c46f1ebeef6b35cb302f6dc0cc36da77f79c3c9
2,943
py
Python
python/mxnet/gluon/data/dataset.py
Adesun/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
116
2018-01-01T03:53:49.000Z
2021-09-06T07:09:09.000Z
python/mxnet/gluon/data/dataset.py
wkcn/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
null
null
null
python/mxnet/gluon/data/dataset.py
wkcn/incubator-mxnet
2586c6691ca74d2df455a49cad964bcac8e34f25
[ "Apache-2.0" ]
40
2018-01-16T04:12:39.000Z
2022-02-25T11:53:17.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...
31.645161
81
0.652396
2c473e9063a2d9474f913c2996b82cf153785914
576
py
Python
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
""" Parrots ~~~~~~~ """ from party_parrot._utils import get_parrots slack_parrots = """ :aussie_parrot: :blonde_sassy_parrot: :bored_parrot: :chill_parrot: :christmas_parrot: :coffee_parrot: :confused_parrot: :conga_parrot: :dark_beer_parrot: :deal_with_it_parrot: :angel_parrot: :fieri_parrot: :goth_parrot: ...
32
107
0.776042
2c4810e4fa88798c039566c38fcfb8acd43be82c
13,764
py
Python
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/io_utils/fileio_backends.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
# fileio_backends.py # # This file is part of scqubits. # # Copyright (c) 2019 and later, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ###############################...
35.84375
89
0.613266
2c4c3f89728261e77401999119b2d00bd703d99b
7,855
py
Python
backend/tests/baserow/api/groups/test_group_user_views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
839
2020-07-20T13:29:34.000Z
2022-03-31T21:09:16.000Z
backend/tests/baserow/api/groups/test_group_user_views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
28
2020-08-07T09:23:58.000Z
2022-03-01T22:32:40.000Z
backend/tests/baserow/api/groups/test_group_user_views.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
79
2020-08-04T01:48:01.000Z
2022-03-27T13:30:54.000Z
import pytest from rest_framework.status import ( HTTP_200_OK, HTTP_204_NO_CONTENT, HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND, ) from django.shortcuts import reverse from baserow.core.handler import CoreHandler from baserow.core.models import GroupUser from baserow.core.trash.handler import TrashHandl...
40.282051
84
0.711903
2c4c4b657eb3513f16420ddec79e50b77562fbf1
4,636
py
Python
superscript/security/pwdcheck.py
AngeIo/projet_python_netway
629c7e8573e4630a5da64fd7166f2b3b6a7697d9
[ "Unlicense" ]
null
null
null
superscript/security/pwdcheck.py
AngeIo/projet_python_netway
629c7e8573e4630a5da64fd7166f2b3b6a7697d9
[ "Unlicense" ]
null
null
null
superscript/security/pwdcheck.py
AngeIo/projet_python_netway
629c7e8573e4630a5da64fd7166f2b3b6a7697d9
[ "Unlicense" ]
null
null
null
# Ce fichier contient une fonction permettant de vrifier si le mot de passe est assez complexe et s'il peut tre brute force grce un dictonnaire de mots communs # Permet la recherche import re # Permet de faire une pause dans le programme import time # Importe nos fonctions utiles import sys sys.path.insert(0, '../'...
40.313043
266
0.628991
2c4d45ff10bd4e69f4855abfc1937bd80b3bc0d3
524
py
Python
lib/galaxy_ext/cwl/handle_outputs.py
hmenager/galaxy
d65d6b586c4760ff65cf294d2587e729b65e7fea
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy_ext/cwl/handle_outputs.py
hmenager/galaxy
d65d6b586c4760ff65cf294d2587e729b65e7fea
[ "CC-BY-3.0" ]
4
2021-02-08T20:28:34.000Z
2022-03-02T02:52:55.000Z
lib/galaxy_ext/cwl/handle_outputs.py
hmenager/galaxy
d65d6b586c4760ff65cf294d2587e729b65e7fea
[ "CC-BY-3.0" ]
1
2018-05-30T07:38:54.000Z
2018-05-30T07:38:54.000Z
""" """ import logging import os import sys # insert *this* galaxy before all others on sys.path sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))) from galaxy.tool_util.cwl import handle_outputs # ensure supported version assert sys.version_info[:2] >= (2, 6) and sys...
23.818182
136
0.727099
2c4e1b3188875d9cc7ead2bb542721689bd51cbf
2,107
py
Python
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
2
2021-08-07T12:01:26.000Z
2022-01-31T13:48:25.000Z
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
null
null
null
util/trig.py
alemigliardi/talkbot
371f2c9e7240a4438cbb202865cf18dbefb0c352
[ "MIT" ]
1
2021-08-07T12:01:28.000Z
2021-08-07T12:01:28.000Z
import os import re import asyncio from pyrogram.types import Message from util.message import send_media # TRIGGERS = TriggerList()
24.218391
79
0.688657
2c4fccadd03cd528d853e80ad9d2e69c96250a99
3,185
py
Python
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
1
2020-04-15T13:48:34.000Z
2020-04-15T13:48:34.000Z
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
1
2022-02-13T09:58:43.000Z
2022-02-13T09:58:43.000Z
back-app/research/form_vision/template_matching.py
AntoineAwaida/ad-covia
1dd10a0361421149e6e318fee146ccf370a81074
[ "MIT" ]
null
null
null
import cv2 from typing import Tuple, Generator from research.form_vision.image import Image, NormalizedCoords import numpy as np
44.236111
96
0.663736
2c5166b8cabcb5a4f633be4f4e1a16e185d3520c
763
py
Python
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
src/run.py
ShaghayeghAmeri/test
968eea52ce0ea309f020add61ab597ca402feb14
[ "MIT" ]
null
null
null
import os import emoji import telebot from loguru import logger from src.utils.constant import keyboards from src.utils.io import write_json if __name__=='__main__': bot = But() bot.run()
23.84375
89
0.673657
2c52b06ffe9aba58e5600ed9c53a392211b57c2c
713
py
Python
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
null
null
null
PythonFiles/MCQGame.py
IamVaibhavsar/Python_Files
283d73929a3e11955c71499407c4f8bff56e4273
[ "MIT" ]
1
2019-07-26T15:25:21.000Z
2019-07-26T15:25:21.000Z
from MCQGame2 import Question MCQ=[ "What color of apples? \na)red\nb)blue\nc)green\nd)yellow", "Half adder has how many inputs?\na)1\nb)2\nc)3\nd)4", "which operator can be overloaded?\na).\nb).*\nc)::\nd)+" ] questions = [ Question(MCQ[0],"a"), #Objects of class Question Question...
31
82
0.601683
2c52e41b928f577557908dcb035f2bea35861221
5,286
py
Python
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
null
null
null
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
null
null
null
gada/main.py
gadalang/gada
2dd4f4dfd5b7390c06307040cad23203a015f7a4
[ "MIT" ]
1
2021-06-15T13:52:33.000Z
2021-06-15T13:52:33.000Z
from __future__ import annotations __all__ = ["run", "main"] import os import sys import io import argparse from typing import Optional from gada import component, runners, datadir def split_unknown_args(argv: list[str]) -> tuple[list[str], list[str]]: """Separate known command-line arguments from unknown one. ...
30.034091
90
0.541241
2c542dbe200f504a92d4395bd7676e95bb9c6b42
2,912
py
Python
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
6
2016-06-19T12:44:22.000Z
2021-12-21T07:01:38.000Z
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
null
null
null
Example_Cases/Gypsum_Model/Scripts/external_gyp1d.py
koverholt/bayes-fire
4333cdf7b93bf77d8e021f0c4a1931a77056534d
[ "BSD-3-Clause" ]
2
2017-10-15T02:37:25.000Z
2022-03-04T16:22:44.000Z
#!/usr/bin/env python """Module for gyp1d functions""" import numpy as np import platform import subprocess import os import data_expt as de # Detect operating system op_sys = platform.system() def gen_input( k1, k2, k3, k4, rho_0, c_p1, c_p2, c_p3, eps, Y1_0, A1, A2, E1, E2, dh1, dh2 ): """Genera...
26
76
0.457074
2c54677ea98da9a5515de3a923f5ef0038257527
6,356
py
Python
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
2
2021-04-26T07:08:26.000Z
2021-05-01T16:01:26.000Z
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
null
null
null
datacollector/collector/maincollector.py
samharju/5GDrones-data-collector
331d8c433f5b46eaba62a55c39bbe12d365b2474
[ "Apache-2.0" ]
1
2021-05-01T15:04:46.000Z
2021-05-01T15:04:46.000Z
# 2021 Nokia # # Licensed under the Apache license, version 2.0 # SPDX-License-Identifier: Apache-2.0 """Class for handling collector threads.""" import logging import time from datetime import datetime from threading import Event, Thread from datacollector.collector.connection_config_parser import ConnectionConfig ...
35.50838
118
0.637823
2c55b9fde76dce6c7aa8c956dc28575c3c2afb98
5,959
py
Python
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
utils/memory.py
alanmackey/DRL-for-BG-Control
a7c5015b828c250205b9ecb1bf4bdb928e0d975f
[ "MIT" ]
null
null
null
import numpy as np import torch
38.445161
80
0.538345
2c55cb60066b63268c6e425f58d7bb8433e5fe69
1,226
py
Python
src/five/grok/subscribers.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
1
2016-10-26T16:45:57.000Z
2016-10-26T16:45:57.000Z
src/five/grok/subscribers.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
2
2021-01-05T14:30:32.000Z
2021-03-25T18:38:06.000Z
src/five/grok/subscribers.py
zopefoundation/five.grok
d5fcbe2e081a4cec96d8ec658498f9fc33963bf9
[ "ZPL-2.1" ]
2
2015-04-03T04:41:12.000Z
2019-08-20T08:02:52.000Z
############################################################################## # # Copyright (c) 2006-2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THI...
38.3125
78
0.675367
2c566a2dcb7cec78c109c0686b33ccf0da89a5b9
1,043
py
Python
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
TilingDomains/main.py
ClathomasPrime/linear-prefs
e700589a82667ca0f307459816e4f5b211fbd7d2
[ "BSD-3-Clause" ]
null
null
null
from GraphDraw import * from Graph import * from Implicit import * from impExamples import * import os import errno flags = os.O_CREAT | os.O_EXCL | os.O_WRONLY # For trying stuff # Currently just displays the alternating domain on 9 outcomes n = 9 impG = impAlternatingDomain(n) G = impG.explicit() d = G.d G.comp...
21.285714
71
0.700863
2c583e62e222fa52ab726c248c5d0731a9185e71
3,647
py
Python
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
reinforcement-learning/deep-line-wars/game_1.py
cair/experiments
d19a9eda0e9e743e401f46eec358f0c815c64a7c
[ "MIT" ]
null
null
null
import random import numpy as np from PIL import Image from DeepLineWars.Game import Game import uuid # https://github.com/cair/DeepRTS # https://github.com/reinforceio/tensorforce if __name__ == "__main__": import multiprocessing import threading n_proc = 10 processes = [] data_queue = multipr...
26.427536
87
0.502879
2c59f1356149160db7e39588bbaf937c38c8c634
790
py
Python
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
src/back-django/scraper_api/tests/views/test_page_list_view.py
Arkko002/PyWalker
9e8a02b74a1217cfed385898654815a218297cce
[ "MIT" ]
null
null
null
import json import pytest from django.urls import reverse from scraper_api.models import ScrapedPage
23.939394
53
0.605063
2c5b65c5e6531b659a8e6e99893df6321affb8d2
1,566
py
Python
budgeted_bo/experiment_manager.py
RaulAstudillo06/BudgetedBO
740cbf8397ac68bcdb1a196f2b56381adb1be1b4
[ "MIT" ]
1
2022-03-30T11:45:59.000Z
2022-03-30T11:45:59.000Z
budgeted_bo/experiment_manager.py
RaulAstudillo06/BudgetedBO
740cbf8397ac68bcdb1a196f2b56381adb1be1b4
[ "MIT" ]
null
null
null
budgeted_bo/experiment_manager.py
RaulAstudillo06/BudgetedBO
740cbf8397ac68bcdb1a196f2b56381adb1be1b4
[ "MIT" ]
null
null
null
from typing import Callable, Dict, List, Optional import os import sys from budgeted_bo.budgeted_bo_trial import budgeted_bo_trial
29.54717
84
0.658365
2c5bc0aa11bc0c3b60a29a13ecd16e57a11921fb
594
py
Python
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
2
2020-03-15T13:46:46.000Z
2020-05-26T06:56:52.000Z
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
1
2018-05-22T20:22:39.000Z
2018-05-22T20:22:39.000Z
skfasttext/sk_ft_example.py
tatacoa/hatespeech
fab054d86848c2242443ae3ddf532e94f404f529
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 2 17:34:43 2018 @author: arndt """ # http://scikit-learn.org/stable/developers/contributing.html#rolling-your-own-estimator # https://github.com/vishnumani2009/sklearn-fasttext from os import chdir chdir("/home/arndt/git-reps/hatespeech/") from ...
25.826087
88
0.76936
2c5c4a72fd65572e3fc2aa97977ae16747547c5e
15,366
py
Python
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
2
2019-07-24T12:41:11.000Z
2020-03-31T10:10:04.000Z
src/niweb/apps/noclook/tests/schema/admin/test_schema.py
SUNET/ni
f652e230524346bf0801cdf8bbb6ee63f4985cc2
[ "BSD-2-Clause-FreeBSD" ]
1
2019-02-25T14:58:20.000Z
2019-02-25T14:58:20.000Z
# -*- coding: utf-8 -*- __author__ = 'ffuentes' from apps.noclook.tests.schema.base import Neo4jGraphQLGenericTest from apps.noclook.models import NodeHandleContext from django.contrib.auth.models import User from niweb.schema import schema from pprint import pformat from . import BasicAdminTest import apps.noclook....
32.486258
84
0.416829
2c5e15ddaa18b77dfb245e91f9e636201f9744ac
1,542
py
Python
alphamind/tests/analysis/test_perfanalysis.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/tests/analysis/test_perfanalysis.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/tests/analysis/test_perfanalysis.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-5-12 @author: cheng.li """ import unittest import numpy as np import pandas as pd from alphamind.analysis.perfanalysis import perf_attribution_by_pos if __name__ == '__main__': unittest.main()
33.521739
90
0.630999
2c5f7612ff8eec29cef986e54718511e7172e74e
1,457
py
Python
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
6
2018-07-31T16:48:07.000Z
2020-02-01T03:17:51.000Z
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
41
2018-08-07T16:43:07.000Z
2020-06-05T18:54:50.000Z
appengine/src/greenday_api/tests/test_distinct_channels_api.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
1
2018-08-07T16:40:18.000Z
2018-08-07T16:40:18.000Z
""" Tests for :mod:`greenday_api.misc.distinct_channels_api <greenday_api.misc.distinct_channels_api>` """ from protorpc import message_types from .base import ApiTestCase from ..misc.distinct_channels_api import DistinctChannelsAPI
29.734694
102
0.660261
2c61fe287fc769d5cf8304f253d442e59d2612c9
1,043
py
Python
lib/augment/random_intensity_shift.py
Healingl/3DAPRNet
7c5e0028ae844df4e1f26327e8b438532ca0745f
[ "BSD-2-Clause" ]
null
null
null
lib/augment/random_intensity_shift.py
Healingl/3DAPRNet
7c5e0028ae844df4e1f26327e8b438532ca0745f
[ "BSD-2-Clause" ]
null
null
null
lib/augment/random_intensity_shift.py
Healingl/3DAPRNet
7c5e0028ae844df4e1f26327e8b438532ca0745f
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @Author: ZhuangYuZhou # @E-mail: 605540375@qq.com # @Desc: # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # import numpy as np
26.74359
79
0.541707
2c6286fd32645a00f545efe144b70f41a29faabd
291
py
Python
src/djask/exceptions.py
z-t-y/Djask
d9867b3b91e2c50a07c701b4e2ef51a0c583c82c
[ "MIT" ]
19
2021-11-10T07:26:56.000Z
2022-02-07T08:45:48.000Z
src/djask/exceptions.py
z-t-y/Djask
d9867b3b91e2c50a07c701b4e2ef51a0c583c82c
[ "MIT" ]
2
2021-11-10T07:25:19.000Z
2021-11-30T14:23:53.000Z
src/djask/exceptions.py
z-t-y/Djask
d9867b3b91e2c50a07c701b4e2ef51a0c583c82c
[ "MIT" ]
1
2021-11-10T13:06:57.000Z
2021-11-10T13:06:57.000Z
AuthModelInvalid = Exception( "The auth model you passed to the app config" "should be a subclass of djask.auth.abstract.AbstractUser." ) ModelTypeError = TypeError( "The arg passed to register_model() must be a subclass of" "Model instead of PureModel or something else." )
32.333333
63
0.735395
2c6349a307102d7f6afaff901e97fb40d85722ea
3,142
py
Python
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
4
2017-05-24T16:57:42.000Z
2017-09-21T19:55:27.000Z
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
2
2019-11-22T15:33:47.000Z
2020-07-27T11:59:44.000Z
pypipegraph/utils/log_listen.py
bopopescu/pypipegraph-2
3a3f9ba565789d8d73c8cd503703a957de2be9d8
[ "MIT" ]
4
2015-08-26T15:43:00.000Z
2020-07-20T03:36:40.000Z
""" The MIT License (MIT) Copyright (c) 2012, Florian Finkernagel <finkernagel@imt.uni-marburg.de> 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 limitatio...
33.425532
88
0.693507
2c68214d1193846a164314f13ae12a80f459ffd1
9,130
py
Python
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
ldapauthenticator/ldapauthenticator.py
jbmarcille/ldapauthenticator
f6037d72bd8c76317b8741d96de1c7b1dee26298
[ "BSD-3-Clause" ]
null
null
null
import ldap3 import re from jupyterhub.auth import Authenticator from tornado import gen from traitlets import Unicode, Int, Bool, List, Union
37.572016
142
0.571742
2c690bc84bca9b6e4b870cf8e5b1443608a944f6
6,567
py
Python
mayan/apps/mailer/tests/mixins.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
336
2019-05-09T07:05:19.000Z
2022-03-25T09:50:22.000Z
mayan/apps/mailer/tests/mixins.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
9
2019-10-29T00:12:27.000Z
2021-09-09T15:16:51.000Z
mayan/apps/mailer/tests/mixins.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
import json from ..models import UserMailer from .literals import ( TEST_EMAIL_ADDRESS, TEST_EMAIL_FROM_ADDRESS, TEST_USER_MAILER_BACKEND_PATH, TEST_USER_MAILER_LABEL )
33.676923
77
0.568296
2c695519ed44dfa893d318d7ce5d6dc9b04a5db7
223
py
Python
method_photo2paint/loader.py
Qwinpin/NeuroDemo
52220dd2904e96485ce92adb171e68522915a1fb
[ "MIT" ]
1
2021-03-09T22:59:55.000Z
2021-03-09T22:59:55.000Z
method_photo2paint/loader.py
Qwinpin/NeuroDemo
52220dd2904e96485ce92adb171e68522915a1fb
[ "MIT" ]
null
null
null
method_photo2paint/loader.py
Qwinpin/NeuroDemo
52220dd2904e96485ce92adb171e68522915a1fb
[ "MIT" ]
null
null
null
import json import io from PIL import Image import cv2 import numpy as np
18.583333
66
0.73991
2c6b0c96f51c49cf2ddaf1214e424470ce2b7534
23,329
py
Python
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
null
null
null
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
null
null
null
PyText3.py
Shock9616/PyText3
f16214060390ae8b457fc8dfbdb0943c7c34720b
[ "MIT" ]
1
2021-11-06T13:45:11.000Z
2021-11-06T13:45:11.000Z
#!/usr/bin/env python3 """ The main file for a basic code editor written entirely with the python standard library main.py PyText3 Text Editor Created by Kaleb Rosborough on 10/23/2018 Copyright Shock9616 2018 All rights reserved """ #region Imports from tkinter import * import tkinter as tk from t...
37.207337
114
0.582365
2c6b575ef99f368943f9457f0e564df734ee7fbc
569
py
Python
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
6
2019-09-16T01:50:44.000Z
2020-09-17T08:52:25.000Z
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
null
null
null
array/0075_sort_colors/0075_sort_colors.py
zdyxry/LeetCode
33371285d0f3302158230f46e8b1b63b9f4639c4
[ "Xnet", "X11" ]
4
2020-02-07T12:43:16.000Z
2021-04-11T06:38:55.000Z
nums = [2,0,2,1,1,0] Solution().sortColors(nums) print(nums)
27.095238
55
0.391916
2c6b6b00c0e5fe6ce8b9350c4a38df05692a0c5c
2,545
py
Python
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
3
2018-08-10T21:11:09.000Z
2019-07-26T13:47:24.000Z
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
null
null
null
transforms/h52h5.py
srujanm/ibex
ed8167b8b1573830bee39c469db7733fdfcb41d1
[ "MIT" ]
6
2018-03-05T20:14:11.000Z
2020-07-23T18:39:16.000Z
# general functions for transforming h5 files from ibex.utilities.constants import * from numba import jit import numpy as np import math # downsample the data by (z, y, x) ratio # split the data to create training and validation data
31.036585
118
0.604715
2c6b8ac427b82ce738a5cf54c3cc83a98bf7c03e
278
py
Python
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
bank_card.py
rizuchaa/atm-machine
272882c336e43249d5910c3832be4c605da504a9
[ "Apache-2.0" ]
null
null
null
# inisiasi set awal kartu
21.384615
37
0.643885
2c6cb0e6002ce145b860df144f89f8a9ed73d281
5,629
py
Python
unpythonic/syntax/test/test_conts_topo.py
aisha-w/unpythonic
0f63abf6ac7efb7304b676d0e1ebce0ef4040438
[ "BSD-2-Clause" ]
null
null
null
unpythonic/syntax/test/test_conts_topo.py
aisha-w/unpythonic
0f63abf6ac7efb7304b676d0e1ebce0ef4040438
[ "BSD-2-Clause" ]
null
null
null
unpythonic/syntax/test/test_conts_topo.py
aisha-w/unpythonic
0f63abf6ac7efb7304b676d0e1ebce0ef4040438
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test exotic program topologies. For pictures, see ``macro_extras/callcc_topology.pdf`` in the source distribution. """ from inspect import stack from ...syntax import macros, continuations, call_cc def me(): """Return the caller's function name.""" callstack = stack() framerec...
25.703196
83
0.445905
2c6ed73d803fe3c8ab6eab6f07fcada596456cd6
7,933
py
Python
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
2
2020-12-18T12:26:22.000Z
2020-12-19T18:47:07.000Z
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
null
null
null
src/lingcomp/farm/prediction_head.py
CharlottePouw/interpreting-complexity
b9a73c0aff18e4c6b4209a6511d00639494c70da
[ "Apache-2.0" ]
1
2021-05-19T13:39:45.000Z
2021-05-19T13:39:45.000Z
import logging import os import torch from farm.modeling.prediction_head import FeedForwardBlock, PredictionHead from torch.nn import MSELoss from torch.nn.functional import pad from lingcomp.farm.utils import roll logger = logging.getLogger(__name__) # TokenRegressionHead
46.391813
154
0.607715
2c7013fe7de804ea6c1f8cce79d5e2ec488e9041
381
py
Python
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
6.00.2x/week1/lecture1/more_on_plotting.py
NicholasAsimov/courses
d60981f25816445578eb9e89bbbeef2d38eaf014
[ "MIT" ]
null
null
null
import matplotlib.pyplot as pylab principal = 10000 interestRate = 0.05 years = 20 values = [] for i in range(years + 1): values.append(principal) principal += principal * interestRate pylab.plot(range(years + 1), values, linewidth=3) pylab.title('5% Growth, Compaunded Annually') pylab.xlabel('Years or Compo...
22.411765
49
0.721785
2c71d0c31bdecb9c1cda6baa928bcf39966a850b
1,455
py
Python
account/migrations/0003_passwordexpiry_passwordhistory.py
ProgrammingLanguageLeader/django-user-accounts
ad301bd57ae65c456ed6e45ae3b5cb06d4e2378b
[ "MIT" ]
841
2015-01-03T13:15:52.000Z
2022-03-31T14:08:23.000Z
account/migrations/0003_passwordexpiry_passwordhistory.py
ProgrammingLanguageLeader/django-user-accounts
ad301bd57ae65c456ed6e45ae3b5cb06d4e2378b
[ "MIT" ]
187
2015-01-05T17:03:47.000Z
2022-01-26T06:56:09.000Z
account/migrations/0003_passwordexpiry_passwordhistory.py
massware/django-user-accounts
8fe4633cbbed89eb7ced8b0b4b0337c3bded4247
[ "MIT" ]
317
2015-01-11T04:24:22.000Z
2022-03-26T16:28:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-13 08:55 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
39.324324
174
0.645361
2c71f92a4a5781b16a490c2760b6a652cc5afb93
780
py
Python
microsentry/models.py
feliperuhland/microsentry
8fc640b22f69c3759d87c2358cad025ec45c8cc7
[ "MIT" ]
null
null
null
microsentry/models.py
feliperuhland/microsentry
8fc640b22f69c3759d87c2358cad025ec45c8cc7
[ "MIT" ]
null
null
null
microsentry/models.py
feliperuhland/microsentry
8fc640b22f69c3759d87c2358cad025ec45c8cc7
[ "MIT" ]
null
null
null
import dataclasses import datetime import typing
17.333333
48
0.697436
2c7445d1033e462318cd29a86e11ffd318baee78
3,986
py
Python
src/t2m/user.py
time2meet/time2meet-cli
3aa41de084572d242c51375fed6bcaaf6694c24e
[ "MIT" ]
1
2021-12-10T06:03:11.000Z
2021-12-10T06:03:11.000Z
src/t2m/user.py
time2meet/time2meet-cli
3aa41de084572d242c51375fed6bcaaf6694c24e
[ "MIT" ]
1
2021-12-05T23:57:37.000Z
2021-12-09T17:15:31.000Z
src/t2m/user.py
time2meet/time2meet-cli
3aa41de084572d242c51375fed6bcaaf6694c24e
[ "MIT" ]
null
null
null
import os from getpass import getpass from .request_handler import request, set_dry from .yaml_validator import yaml_user, yaml_update, yaml_reset from .tokens import new_token from datetime import datetime, timedelta import json #Print out current user_info # #Register a new account and set the account for t...
29.308824
128
0.617411
2c7496e73af3dc1a12f6aa6a4517eb8851e79e00
972
py
Python
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
10
2018-06-18T09:17:59.000Z
2020-04-22T11:46:12.000Z
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
4
2020-06-05T18:24:12.000Z
2021-06-10T20:29:49.000Z
activitypub/lib.py
wakin-/simple_ap
f13013fdc79207cfb07f3944caeeef45fe31bbf7
[ "MIT" ]
null
null
null
import requests import json from urllib.parse import urlparse from httpsig import HeaderSigner from datetime import datetime
38.88
192
0.68107
2c74d6e02e3c3e03fa94c6d04730c15d838799a4
4,230
py
Python
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
null
null
null
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
3
2021-09-22T18:45:21.000Z
2022-03-12T00:58:12.000Z
account/views.py
josephdubon/boilerplate_image_share_app
e079715577ca112e4de234c8a35dde73639c3366
[ "Unlicense" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from .forms import ( LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm ...
35.25
105
0.56052
2c7682b009eb38c54e309396068e17197bba18a5
2,478
py
Python
web/app/ponthe/config.py
ENPC-Ponthe/Galeries
77648d880f4f71f62f620227d50452fa7a1482e3
[ "MIT" ]
null
null
null
web/app/ponthe/config.py
ENPC-Ponthe/Galeries
77648d880f4f71f62f620227d50452fa7a1482e3
[ "MIT" ]
1
2021-01-05T03:43:06.000Z
2021-01-05T03:43:06.000Z
web/app/ponthe/config.py
ENPC-Ponthe/Galeries
77648d880f4f71f62f620227d50452fa7a1482e3
[ "MIT" ]
3
2020-09-09T17:50:01.000Z
2021-07-29T19:48:49.000Z
import os from datetime import datetime from flask import Flask IS_PROD_ENV = True # CHANGE BETWEEN STAGING AND PRODUCTION ENVS SUBDOMAIN_NAME = 'ponthe' if IS_PROD_ENV else 'ponthe-testing' DOMAIN_NAME = f'https://{SUBDOMAIN_NAME}.enpc.org/'
42
102
0.661421
2c7775424a57f17a890bdf4b7a7ff0cf9abb892f
932
py
Python
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
583
2015-03-28T23:49:34.000Z
2022-03-25T10:58:07.000Z
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
61
2015-04-02T01:08:34.000Z
2021-05-27T16:19:35.000Z
admin_tasks.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
175
2015-03-29T13:06:36.000Z
2022-03-31T07:02:20.000Z
"""Collection of mapreduce jobs.""" import logging from mapreduce import operation as op from codereview.models import Account, Issue
31.066667
78
0.730687
2c778b23ac35cdce2fabe050d19757ad54f60c5c
3,426
py
Python
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
core/pwc_tiny.py
hologerry/RAFT
a80209c442ea2e2a8860af3c9ca96e62498533ca
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from core.corr import AlternateCorrBlock, CorrBlock from core.extractor import BasicEncoder, SmallEncoder from core.mobilenetv3 import MobileNetV3 from core.pwc_decoder import Decoder from core.pwc_refiner import Refiner from core.up...
34.606061
125
0.646235
2c784ec9ca5bd9cab47e3e48eed02b1261eb6710
1,631
py
Python
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
dependencies_analysis/src/utils.py
afdaniele/director
845ba027f9009803fcf77f44874f2ab9d7ab72e3
[ "BSD-3-Clause" ]
null
null
null
''' Created by: @author: Andrea F Daniele - TTIC - Toyota Technological Institute at Chicago Feb 6, 2019 - Mountain View, CA ''' import sys import numpy as np from os.path import isfile
28.614035
92
0.650521
2c78b387f4bdb0a5aec5ed308c83c4da0844e7b4
1,673
py
Python
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
attendees/persons/serializers/folk_serializer.py
xjlin0/-attendees30
48a2f2cbec11ec471d7a40d24903b48890feebf9
[ "MIT" ]
null
null
null
from attendees.persons.models import Folk, FolkAttendee, Relation, Utility, Attendee from attendees.whereabouts.serializers import PlaceSerializer from rest_framework import serializers
30.418182
85
0.569038
2c7a4215e79452e900349586a25792c9f22bcf7f
114
py
Python
layoutlm/examples/__init__.py
Cedrusco/unilm
f5485696aad9a39b733bc16d40e5e5d2c37284eb
[ "MIT" ]
null
null
null
layoutlm/examples/__init__.py
Cedrusco/unilm
f5485696aad9a39b733bc16d40e5e5d2c37284eb
[ "MIT" ]
null
null
null
layoutlm/examples/__init__.py
Cedrusco/unilm
f5485696aad9a39b733bc16d40e5e5d2c37284eb
[ "MIT" ]
null
null
null
# flake8: noqa from .classification.predict import make_prediction from .classification.predict_api import predict
38
51
0.859649
2c7a53fa7046ae0ca4fe288507356e009d06bfd4
6,826
py
Python
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
null
null
null
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
1
2021-10-06T15:56:14.000Z
2021-10-07T04:54:15.000Z
V4 - HybridTTS/Utils/functions.py
riju-stone/chatbot
cfbd1a162f777440b138e2824d07f70cca8c4a48
[ "MIT" ]
null
null
null
import string import random from nltk.tokenize import TweetTokenizer import re import time import sys import numpy as np # source: https://gist.github.com/nealrs/96342d8231b75cf4bb82 cList = { "ain't": "am not", "aren't": "are not", "can't": "cannot", "can't've": "cannot have", "'cause": "because",...
28.206612
200
0.547612
2c7b3b7be42370503ba918b7f804028312f44fe9
896
py
Python
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
reverse_integer.py
alexhla/programming-problems-in-python
2db759f6196c026f43c6f2d6c9104d04a6850829
[ "MIT" ]
null
null
null
obj = Solution() num = 123456789 print("Reversing {}" .format(num)) print("Answer-1: {}" .format(obj.reverse(num))) print("Answer-2: {}" .format(obj.reverse2(num)))
28.903226
81
0.626116
2c7b635f7078761a4178b130bfb1d6906ad54eea
405
py
Python
grid.py
Hec98/tkinterIntro
03d33b97aa4fc2d9d12c4590cf17dccdb343980a
[ "MIT" ]
2
2022-01-12T04:25:55.000Z
2022-01-12T04:31:18.000Z
grid.py
Hec98/tkinterIntro
03d33b97aa4fc2d9d12c4590cf17dccdb343980a
[ "MIT" ]
null
null
null
grid.py
Hec98/tkinterIntro
03d33b97aa4fc2d9d12c4590cf17dccdb343980a
[ "MIT" ]
null
null
null
from tkinter import Tk, Label root = Tk() root.title('Hello World') root.geometry('500x300') lb1 = Label(root, text = 'Hello, this is a tag -> 1') lb2 = Label(root, text = 'Hello, this is a tag -> 2') lb3 = Label(root, text = 'Hello, this is a tag -> 3') # Label(root, text = 'Hello, this is a tag').pack() lb1.grid(r...
23.823529
53
0.646914
2c7bfdfed15f5f5901f0720b936cf94f5ee4a1ec
836
py
Python
populus/contracts/backends/testing.py
mandarvaze/populus
4577bba67f6cba3c4800d250f2a228562a5d9a8f
[ "MIT" ]
1
2022-03-14T03:35:17.000Z
2022-03-14T03:35:17.000Z
populus/contracts/backends/testing.py
mandarvaze/populus
4577bba67f6cba3c4800d250f2a228562a5d9a8f
[ "MIT" ]
null
null
null
populus/contracts/backends/testing.py
mandarvaze/populus
4577bba67f6cba3c4800d250f2a228562a5d9a8f
[ "MIT" ]
1
2021-12-06T04:03:32.000Z
2021-12-06T04:03:32.000Z
from __future__ import absolute_import from populus.utils.contracts import ( is_test_contract, ) from .base import ( BaseContractBackend, )
23.885714
76
0.690191
2c7c784cba091d8ae89f7a03a13304373982e2b3
2,125
py
Python
powmap.py
jossef/power-scanner
729a4de35a5de11284aa6c14b2871536cc321d0a
[ "MIT" ]
3
2017-01-04T18:27:28.000Z
2018-05-19T14:08:14.000Z
powmap.py
Jossef/power-scanner
729a4de35a5de11284aa6c14b2871536cc321d0a
[ "MIT" ]
3
2016-10-21T05:53:33.000Z
2016-10-21T05:53:47.000Z
powmap.py
Jossef/power-scanner
729a4de35a5de11284aa6c14b2871536cc321d0a
[ "MIT" ]
null
null
null
import argparse import logging import re import struct import uuid import sys from struct import * import sys import os import array import fcntl import socket import fcntl import struct import array from multiprocessing.pool import ThreadPool from powscan_common.banner_grabber import * from powscan_common.network_ma...
26.234568
145
0.704
2c7e9414f375e98aa585b74113d615f72c0ae399
1,563
py
Python
ts_bot_stream.py
JonthanLT/ts-slack-twitter
191ba5d1f94e70057c8b4c611230d3d08f40d1bd
[ "MIT" ]
null
null
null
ts_bot_stream.py
JonthanLT/ts-slack-twitter
191ba5d1f94e70057c8b4c611230d3d08f40d1bd
[ "MIT" ]
null
null
null
ts_bot_stream.py
JonthanLT/ts-slack-twitter
191ba5d1f94e70057c8b4c611230d3d08f40d1bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import json import sys import tweepy import slackweb import configparser from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener if __name__ == '__main__': l = StdOutListener() stream = Stream(get_auth(), l) stream.filter(foll...
25.622951
75
0.651312
2c7f21cfb7367dac7b5dd73bdc08aa5b0d9426f9
102
py
Python
myflaskapp/selling/__init__.py
RubyHome/Parking-Dev
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/selling/__init__.py
RubyHome/Parking-Dev
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
[ "BSD-3-Clause" ]
null
null
null
myflaskapp/selling/__init__.py
RubyHome/Parking-Dev
20f5e1c44160ecc80b65ef0df63f1cd96e2de564
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The sales features related to parking spots""" from . import views # noqa
25.5
49
0.647059
2c827b375cd33ffc35313851f36e3892e6b7ddad
17,537
py
Python
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
72
2020-11-24T22:12:59.000Z
2022-03-21T21:18:21.000Z
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
2
2021-06-02T08:01:10.000Z
2021-07-03T03:11:54.000Z
revisiting_rainbow/Agents/quantile_agent_new.py
jiawei415/revisiting_rainbow
7cd2bc6f64d08ebc2233d93210063cc64d2598a7
[ "Apache-2.0" ]
6
2021-01-13T22:15:17.000Z
2021-11-04T04:00:05.000Z
"""An extension of Rainbow to perform quantile regression. This loss is computed as in "Distributional Reinforcement Learning with Quantile Regression" - Dabney et. al, 2017" Specifically, we implement the following components: * n-step updates * prioritized replay * double_dqn * noisy * dueling """ impor...
43.301235
117
0.642584
2c8319da00390bc626331c0ea2a57c8feafdc2f3
208
py
Python
read_data.py
AnirudhSridhar/heimdall
8c677e6b346a964a149ea06806b12d8d947a1a1d
[ "Apache-2.0" ]
1
2018-04-03T19:26:10.000Z
2018-04-03T19:26:10.000Z
read_data.py
AnirudhSridhar/heimdall
8c677e6b346a964a149ea06806b12d8d947a1a1d
[ "Apache-2.0" ]
null
null
null
read_data.py
AnirudhSridhar/heimdall
8c677e6b346a964a149ea06806b12d8d947a1a1d
[ "Apache-2.0" ]
null
null
null
import pandas as pd from glob import glob import os path = 'data/' all_files = glob(os.path.join(path, '*.json')) dfs = (pd.read_json(f) for f in all_files) df = pd.concat(dfs, ignore_index=True) print (df)
20.8
46
0.706731
2c846fbf1fb31138dd5ef08bbb8178074cf8b762
4,395
py
Python
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
utils/visualize_utils.py
ljrprocc/Motif-Removal
8979ca91398212248a2be61345c99bdec53ae37e
[ "MIT" ]
null
null
null
import torch import os.path from utils.train_utils import load_globals, init_folders, init_nets from loaders.motif_dataset import MotifDS from PIL import Image import numpy as np # network names root_path = '..' train_tag = 'vm_demo_text_remover' load_tag = '' device = torch.device('cuda:0') net_path =...
40.321101
111
0.61661
2c848407f39b4ac205ac81625e387c4023a7a21b
3,651
py
Python
djcyradm/urls.py
angeelgarr/django-cyradm
3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97
[ "BSD-3-Clause" ]
5
2019-12-16T13:25:44.000Z
2022-01-21T17:42:16.000Z
djcyradm/urls.py
angeelgarr/django-cyradm
3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97
[ "BSD-3-Clause" ]
1
2021-03-30T14:23:56.000Z
2021-03-30T14:23:56.000Z
djcyradm/urls.py
angeelgarr/django-cyradm
3d8ea83c9b52d79eae25ccdfd92dd39f5fe2ca97
[ "BSD-3-Clause" ]
1
2021-06-24T01:49:22.000Z
2021-06-24T01:49:22.000Z
from django.conf.urls import include, url from djcyradm.views import locked_out from djcyradm import views urlpatterns = [ url(r"session_security/", include("session_security.urls")), url( r"^mail-users/$", views.MailUsersTableView.as_view(), name="mail-users"), url(r"^login/?$", v...
29.92623
79
0.568064
2c8726dfb28106d95bb06c1763a01f4331da1d8a
651
py
Python
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
7
2020-05-10T09:57:23.000Z
2021-03-27T11:55:07.000Z
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
null
null
null
python/Data Structures and Algorithms in Python Book/stacks/match_delimiter.py
gauravssnl/Data-Structures-and-Algorithms
1c335c72ce514d4f95090241bbd6edf01a1141a8
[ "MIT" ]
3
2021-03-27T03:42:57.000Z
2021-08-09T12:03:41.000Z
from arraystack import ArrayStack def is_matched(expr): """Return True if all delimiters properly match (or closed); False otherwise""" left_delimiters = "({[" right_delimiter = ")}]" S = ArrayStack() for c in expr: if c in left_delimiters: S.push(c) elif c in right_del...
28.304348
84
0.572965
2c889835bd8ac35d8cbc3f5d416195de17ced7a8
24,522
py
Python
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
null
null
null
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
4
2021-04-24T06:38:49.000Z
2021-04-24T06:44:21.000Z
cogs/werewolf.py
vluk/baymaxBot
fb7e7dd4b2d99a6987a8e8c09afc7e43af844ffc
[ "MIT" ]
1
2021-05-02T08:04:08.000Z
2021-05-02T08:04:08.000Z
import discord from discord.ext import commands import random import asyncio cards = ["villager", "werewolf", "minion", "mason", "seer", "robber", "troublemaker", "drunk", "insomniac", "tanner", "hunter"] aesthetics = { "werewolf" : { "color" : 0x25d0ff, "thumbnail" : "https://cdn.discordapp.com/a...
38.496075
157
0.540046
2c8b5792d3174dff39013842e2317ce417ed4a8a
650
py
Python
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
main.py
KShah707/TweetDownloader
ff6770e2f86273919c279466337a4e5ab2cd63e0
[ "MIT" ]
null
null
null
################################################### # Uses the tweepy client to query a user's tweets # ################################################### import csv import tweepy # Load secrets from separate file from user_secrets import * # Set up API client auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRE...
30.952381
89
0.641538
2c8c64b7f637476a4c3e62cdc4f47747851211f2
1,664
py
Python
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
1,077
2020-10-17T15:43:17.000Z
2022-03-31T15:24:29.000Z
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
509
2018-06-01T13:07:56.000Z
2020-10-17T13:34:39.000Z
anime_downloader/sites/nyaa.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
255
2018-05-27T03:52:11.000Z
2020-10-12T17:27:38.000Z
from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult from anime_downloader.sites import helpers
35.404255
145
0.612981
2c8d085bc87d2f9a2e5cc8b6d9aa97e5e95633d5
1,212
py
Python
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
3
2020-07-06T04:28:19.000Z
2021-04-20T07:50:53.000Z
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
tests/strategies/__init__.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
from .factories import (coordinates_to_ported_edges, coordinates_to_ported_edges_with_nodes_pairs, coordinates_to_ported_leaves, coordinates_to_ported_points, coordinates_to_ported_points_pairs_edges_pairs, ...
52.695652
71
0.560231
2c8f674fb4bb528a31df28c9e6f31e31a0334ee4
810
py
Python
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
3
2021-07-22T07:02:03.000Z
2021-09-22T07:01:59.000Z
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
2
2021-08-16T16:08:09.000Z
2021-11-12T00:41:50.000Z
src/hgg_coffea/tools/xgb_loader.py
holzman/hgg-coffea
5aabdb127edaa15b0f22d54f0e3ccdc74c5c10de
[ "BSD-3-Clause" ]
8
2021-07-22T07:49:19.000Z
2022-01-26T22:58:03.000Z
import gzip import lzma import warnings from typing import Optional import xgboost _magics = { b"\x1f\x8b": _get_gzip, b"\xfd7": _get_lzma, }
21.891892
54
0.632099
2c8f9cd8c353d266e205c8f9c1f417a0f3e49d42
438
py
Python
HuaWeiOJ Algorithms/What-I-had/countstr.py
zipingguo/HuaWeiOJAlgorithm
3eb535dd047b85d263b0d5db95e592dde9fe4878
[ "MIT" ]
1
2019-06-03T13:00:49.000Z
2019-06-03T13:00:49.000Z
HuaWeiOJ Algorithms/What-I-had/countstr.py
skylinebin/AlgorithmPractice
3eb535dd047b85d263b0d5db95e592dde9fe4878
[ "MIT" ]
1
2018-07-24T08:43:15.000Z
2018-07-24T08:43:15.000Z
HuaWeiOJ Algorithms/What-I-had/countstr.py
skylinebin/AlgorithmPractice
3eb535dd047b85d263b0d5db95e592dde9fe4878
[ "MIT" ]
null
null
null
if __name__ =='__main__': main()
17.52
50
0.436073
2c8faf8eecad5b6ac0b19aefead4deb655a3a6fb
16,629
py
Python
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
100
2019-05-21T21:26:19.000Z
2022-03-27T18:22:27.000Z
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
6
2019-07-30T03:08:44.000Z
2021-05-07T16:49:55.000Z
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
20
2019-06-19T18:36:41.000Z
2022-01-08T12:59:39.000Z
import os from argparse import ArgumentParser import torch from hashlib import md5 import numpy as np import glob import re from torch.nn import functional as F from latent_rationale.snli.constants import UNK_TOKEN, PAD_TOKEN, INIT_TOKEN from latent_rationale.snli.plotting import plot_heatmap from latent_rationale.snl...
35.76129
81
0.561609
2c90b5d9ca4e30a7536eb52aa5d3f546ab0a79d4
1,709
py
Python
app.py
jainanchit51/quora-questions
bb43416a08d03fd92be4da68a125efcff6b84bb7
[ "Apache-2.0" ]
null
null
null
app.py
jainanchit51/quora-questions
bb43416a08d03fd92be4da68a125efcff6b84bb7
[ "Apache-2.0" ]
null
null
null
app.py
jainanchit51/quora-questions
bb43416a08d03fd92be4da68a125efcff6b84bb7
[ "Apache-2.0" ]
null
null
null
import os import sys import logging from flask import Flask, request, jsonify, send_file from flask_cors import CORS import pandas as pd import numpy as np import tensorflow as tf import tensorflow_hub as hub import numpy as np import os import pandas as pd import re import keras.layers as layers from keras.models impo...
20.590361
73
0.710942
2c90d43bd4573142aef667226910752d64197626
1,437
py
Python
robotframework_rp_tools/visitor.py
Shumodan/robotframework_tools
f2daac5ef54027d1014c9036dfbd167bf2d1279c
[ "MIT" ]
1
2020-02-12T13:07:56.000Z
2020-02-12T13:07:56.000Z
robotframework_rp_tools/visitor.py
Shumodan/robotframework_tools
f2daac5ef54027d1014c9036dfbd167bf2d1279c
[ "MIT" ]
null
null
null
robotframework_rp_tools/visitor.py
Shumodan/robotframework_tools
f2daac5ef54027d1014c9036dfbd167bf2d1279c
[ "MIT" ]
null
null
null
import logging from robot.model import SuiteVisitor from .visitor_model import Keyword, Test, Suite, Message from .service import RobotService from .variables import ConfigurationVariables logging.getLogger(name='reportportal_client').setLevel(logging.WARNING) logging.getLogger(name='urllib3').setLevel(lo...
28.74
72
0.661795
2c9220dbfde66eef7cdc24410685f09d9949bf06
5,357
py
Python
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
1
2018-09-10T01:35:08.000Z
2018-09-10T01:35:08.000Z
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
null
null
null
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
null
null
null
import numpy as np from pyraf import iraf from pyraf.iraf import kepler ''' Useful functions for Kepler light curve processing Use this with the program 'makelc.py' Originally by Jean McKeever Edited and improved by Meredith Rawls ''' # calculate orbital phase # times must be a list of observation times in the same un...
36.691781
82
0.682472
2c925b2706415b690a9c401ac995120ba9c0bb9d
220
py
Python
rdfs/__init__.py
Caterpillar3211/respect_your_dfs
c7fa9fc187aa4bd7fdcd7b58b79981f351adbd71
[ "MIT" ]
1
2019-06-19T20:11:12.000Z
2019-06-19T20:11:12.000Z
rdfs/__init__.py
Caterpillar3211/respect_your_dfs
c7fa9fc187aa4bd7fdcd7b58b79981f351adbd71
[ "MIT" ]
null
null
null
rdfs/__init__.py
Caterpillar3211/respect_your_dfs
c7fa9fc187aa4bd7fdcd7b58b79981f351adbd71
[ "MIT" ]
null
null
null
from .helpers import load_dataset from .core import Merger from .core import CategoryEncoder from .core import Imputer from .core import AttributeAdder from .core import Pipesystem from .core import OptimizedPipesystem
24.444444
37
0.836364
2c93c3807680923e216b02227b5a6105e6428b73
17,649
py
Python
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
""" Functions used by different endopoints. - To do basic operations - To parse the filters request - To manage access resolution """ import ast import logging import yaml import requests from pathlib import Path from ..api.exceptions import BeaconBadRequest, BeaconServerError, BeaconForbidden, BeaconUnauthorised...
49.025
209
0.570854
2c944c74e0e3bc492036f61816aa58854af0c891
219
py
Python
eworld/apps/mytest/views.py
wwfyde/Asa
d61230479d72e53b49e4b2a5c1589514a4b34b71
[ "MIT" ]
null
null
null
eworld/apps/mytest/views.py
wwfyde/Asa
d61230479d72e53b49e4b2a5c1589514a4b34b71
[ "MIT" ]
null
null
null
eworld/apps/mytest/views.py
wwfyde/Asa
d61230479d72e53b49e4b2a5c1589514a4b34b71
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here.
18.25
37
0.748858
2c94bd3786b5a0a64f466b5fdfd28ee49d03d138
990
py
Python
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
17
2020-01-14T06:25:10.000Z
2022-01-25T18:02:37.000Z
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
null
null
null
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
5
2020-05-30T18:49:18.000Z
2021-09-03T19:38:39.000Z
''' @author: AWS Samples @Link: https://docs.aws.amazon.com/deepracer/latest/developerguide/what-is-deepracer.html @License: Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. ''' def reward_function(params): ''' Example of rewarding the agent to follow the track center line ...
30.9375
93
0.680808
2c95e40e7220fe3c7db4c0c8a471b2078f613932
14,498
py
Python
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
3
2019-09-05T16:57:15.000Z
2019-10-01T19:56:58.000Z
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
22
2019-09-03T13:23:37.000Z
2019-10-03T20:32:48.000Z
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
2
2019-09-01T18:30:10.000Z
2019-10-03T20:07:46.000Z
import logging from functools import partial, wraps import petl import requests from github import Github as PyGithub from github.GithubException import UnknownObjectException from parsons.etl.table import Table from parsons.utilities import check_env, files logger = logging.getLogger(__name__)
34.193396
100
0.588702
2c9a5e861f23480fac50f9be5af7a2dbcb98e3ce
883
py
Python
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
3
2015-01-05T14:09:25.000Z
2018-03-21T19:33:15.000Z
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
# Copyright (c) 2015, Daniel Svensson <dsvensson@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND T...
51.941176
79
0.770102
2c9aecffdd6b777c17830740cf390cf1fac9b755
2,815
py
Python
Tensorflow/tensorflow_random_seed.py
cuevas1208/BlogEntries
efaa4a21f0cbe8630dcdd856d0f9202a038f3022
[ "MIT" ]
null
null
null
Tensorflow/tensorflow_random_seed.py
cuevas1208/BlogEntries
efaa4a21f0cbe8630dcdd856d0f9202a038f3022
[ "MIT" ]
null
null
null
Tensorflow/tensorflow_random_seed.py
cuevas1208/BlogEntries
efaa4a21f0cbe8630dcdd856d0f9202a038f3022
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tensorflow random seed """ import tensorflow as tf import numpy as np mu = 0 sigma = 0.3 # variables with/without function seed fc1_W = tf.Variable(tf.truncated_normal(shape=(1, 2), mean=mu, stddev=sigma, seed=1)) fc2_W = tf.Variable(tf.truncated_normal(shape=(1, 2), mean=mu, stddev=sigma)...
42.014925
121
0.666785
2c9c0d396117796db353f3a441a592194e83f2a4
291
py
Python
apps/registro_hora_extra/models.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
1
2020-11-08T16:44:20.000Z
2020-11-08T16:44:20.000Z
apps/registro_hora_extra/models.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
null
null
null
apps/registro_hora_extra/models.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
null
null
null
from django.db import models from apps.funcionarios.models import Funcionario
26.454545
74
0.769759
2c9cde5b74aab37c4a5c3f8526d53c2ae5e2a58f
11
py
Python
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
Ongoing....
11
11
0.636364
2c9cfa04dec4051e0276862ca37caf6daae18af1
3,716
py
Python
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
from __future__ import annotations from pathlib import Path from gd2c.gdscriptclass import GDScriptClass, GDScriptClassConstant, GDScriptFunctionConstant, GDScriptFunction, GDScriptGlobal, GDScriptMember, GDScriptFunctionParameter from gd2c.variant import VariantType from gd2c.bytecode import extract from typing import...
43.209302
170
0.626749