hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
56f0adb6ffb23ba292badc3740453920de7e1ff6
42,030
py
Python
src/move_arm/src/projik_example.py
citronella3alain/baxterDraw
c050254e8b4b8d4f5087e8743a34289844138e0c
[ "MIT" ]
null
null
null
src/move_arm/src/projik_example.py
citronella3alain/baxterDraw
c050254e8b4b8d4f5087e8743a34289844138e0c
[ "MIT" ]
null
null
null
src/move_arm/src/projik_example.py
citronella3alain/baxterDraw
c050254e8b4b8d4f5087e8743a34289844138e0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from moveit_msgs.srv import GetPositionIK, GetPositionIKRequest, GetPositionIKResponse from geometry_msgs.msg import PoseStamped from moveit_commander import MoveGroupCommander import numpy as np from numpy import linalg import sys def make0(robo, arm, xi, upper): # Construct the...
39.688385
115
0.550036
0
0
0
0
0
0
0
0
8,301
0.197502
56f2e5d5d632d949b005c992def0743a49363138
269
py
Python
day4/grid.py
Teckat/Python-Webinar
bc72f85487603fcde44ccd367ab362ad0cfb712b
[ "MIT" ]
null
null
null
day4/grid.py
Teckat/Python-Webinar
bc72f85487603fcde44ccd367ab362ad0cfb712b
[ "MIT" ]
null
null
null
day4/grid.py
Teckat/Python-Webinar
bc72f85487603fcde44ccd367ab362ad0cfb712b
[ "MIT" ]
null
null
null
import tkinter as tk # Create a window root = tk.Tk() name1 = tk.Label(root, text="Aman") name2 = tk.Label(root, text="Rahul") name3 = tk.Label(root, text="Manoj") name1.grid(row=0, column=0) name2.grid(row=1, column=1) name3.grid(row=3, column=3) root.mainloop()
16.8125
36
0.684015
0
0
0
0
0
0
0
0
37
0.137546
56f43352bfe59575a440aa446f6337c18f283182
1,747
py
Python
03LinkedList/143ReorderList.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
03LinkedList/143ReorderList.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
03LinkedList/143ReorderList.py
zhaoxinlu/leetcode-algorithms
f5e1c94c99628e7fb04ba158f686a55a8093e933
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Editor: Zhao Xinlu School: BUPT Date: 2018-04-11 算法思想:链表重排序 """ # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def reorderList(self, head): """ :type head: List...
21.048193
74
0.507728
1,616
0.914544
0
0
0
0
0
0
265
0.149972
56f4fe4a463dd38569b76ab12f231c84b957ff91
2,409
py
Python
libraries/colors/colors_example1.py
est/nodebox-gl
f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d
[ "BSD-3-Clause" ]
1
2015-09-29T14:22:49.000Z
2015-09-29T14:22:49.000Z
libraries/colors/colors_example1.py
est/nodebox-gl
f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d
[ "BSD-3-Clause" ]
1
2015-09-29T14:23:35.000Z
2015-09-30T02:33:13.000Z
libraries/colors/colors_example1.py
est/nodebox-gl
f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d
[ "BSD-3-Clause" ]
null
null
null
# ANALOG COLORS # Import the library try: # This is the statement you normally use. colors = ximport("colors") except ImportError: # But since these examples are "inside" the library # we may need to try something different when # the library is not located in /Application Support colors = ximp...
28.341176
68
0.628892
0
0
0
0
0
0
0
0
1,468
0.609381
56f59a848cb0e6dafae0001284fd9453da3b89e8
27
py
Python
code/cyclegan/__init__.py
karl-joan/text2art-gan
86370667f9a62bab95968abe1990dcaa4760b333
[ "MIT" ]
5
2021-10-30T13:40:41.000Z
2022-03-20T04:48:45.000Z
code/cyclegan/__init__.py
karl-joan/text2art-gan
86370667f9a62bab95968abe1990dcaa4760b333
[ "MIT" ]
null
null
null
code/cyclegan/__init__.py
karl-joan/text2art-gan
86370667f9a62bab95968abe1990dcaa4760b333
[ "MIT" ]
2
2021-09-06T03:45:04.000Z
2022-03-13T03:23:49.000Z
from .main import cyclegan
13.5
26
0.814815
0
0
0
0
0
0
0
0
0
0
56f6dc86c3ae14b0448108e0f2a5fb1570174b18
1,875
py
Python
base_site/mainapp/telegram_bot/handlers/custom_command_handler.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
4
2020-01-21T00:21:44.000Z
2021-06-15T19:38:36.000Z
base_site/mainapp/telegram_bot/handlers/custom_command_handler.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
173
2019-11-18T08:19:44.000Z
2021-09-08T01:37:19.000Z
base_site/mainapp/telegram_bot/handlers/custom_command_handler.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
3
2020-01-28T19:19:35.000Z
2021-05-01T02:33:36.000Z
from typing import Callable from typing import List from telegram import MessageEntity from telegram import Update from telegram.ext import Handler class CustomCommandHandle(Handler): def __init__( self, commands_callback: Callable[[], List[str]], callback: Callable, pass_update_q...
32.894737
117
0.5936
1,723
0.918933
0
0
0
0
0
0
260
0.138667
56f77dfab2b19510099200dcfd2b7bf839aee11a
175
py
Python
rainbowconnection/sources/__init__.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
6
2019-09-04T20:22:02.000Z
2020-12-30T05:00:10.000Z
rainbowconnection/sources/__init__.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
8
2019-05-23T18:06:51.000Z
2020-02-13T22:15:07.000Z
rainbowconnection/sources/__init__.py
zkbt/rainbow-connection
53828fd0b63a552a22a6aa38393cefda27c61b9a
[ "MIT" ]
null
null
null
from .spectrum import Spectrum from .blank import Blank from .thermal import Thermal from .sun import Sun from .lightbulbs import * # , LED, CFL # from .PHOENIX import Star
21.875
39
0.76
0
0
0
0
0
0
0
0
39
0.222857
56f7e6b34768a05254458c5974b6b68155a3ea9f
4,704
py
Python
tests/db/ops/test_import_convert_str.py
simonsobs/acondbs
6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6
[ "MIT" ]
null
null
null
tests/db/ops/test_import_convert_str.py
simonsobs/acondbs
6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6
[ "MIT" ]
24
2020-04-02T19:29:07.000Z
2022-03-08T03:05:43.000Z
tests/db/ops/test_import_convert_str.py
simonsobs/acondbs
6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6
[ "MIT" ]
1
2020-04-08T15:48:28.000Z
2020-04-08T15:48:28.000Z
import csv from io import StringIO import datetime from sqlalchemy import MetaData from flask_sqlalchemy import SQLAlchemy from sqlalchemy_utils import EncryptedType import pytest from acondbs import create_app from acondbs.db.ops import convert_data_type_for_insert ##_____________________________________________...
25.427027
75
0.625638
554
0.117249
452
0.095661
1,892
0.400423
0
0
888
0.187937
56f8f1bd78977f320adb7ac5e330627101781a73
3,041
py
Python
pythonFiles/PCA.py
SANDEEPREDDY56712/OELP_6thSem
0904c5b47eb57b8399844ca5f3cd9dded6361c5a
[ "MIT" ]
null
null
null
pythonFiles/PCA.py
SANDEEPREDDY56712/OELP_6thSem
0904c5b47eb57b8399844ca5f3cd9dded6361c5a
[ "MIT" ]
null
null
null
pythonFiles/PCA.py
SANDEEPREDDY56712/OELP_6thSem
0904c5b47eb57b8399844ca5f3cd9dded6361c5a
[ "MIT" ]
1
2021-07-30T17:24:10.000Z
2021-07-30T17:24:10.000Z
import pandas as pd from sklearn.decomposition import PCA import DataPreprocessing as dp import sys import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.cluster import KMeans from scipy.stats import pearsonr ##################################################...
32.698925
122
0.545215
0
0
0
0
0
0
0
0
1,235
0.406116
56fa36196b16c7d3153b31b44fd82e66ce67cc2c
86
py
Python
tap_rockgympro/consts.py
cinchio/tap-rockgympro
aaf55111e40a74708639363cea6198f5e70eeeaf
[ "Apache-2.0" ]
1
2021-09-07T09:29:42.000Z
2021-09-07T09:29:42.000Z
tap_rockgympro/consts.py
cinchio/tap-rockgympro
aaf55111e40a74708639363cea6198f5e70eeeaf
[ "Apache-2.0" ]
null
null
null
tap_rockgympro/consts.py
cinchio/tap-rockgympro
aaf55111e40a74708639363cea6198f5e70eeeaf
[ "Apache-2.0" ]
null
null
null
ORDERED_STREAM_NAMES = ['facilities', 'customers', 'bookings', 'checkins', 'invoices']
86
86
0.732558
0
0
0
0
0
0
0
0
53
0.616279
56fb6798738db165da7424a3d5f66f0c90904f19
98
py
Python
pygame_rl/scenario/soccer/teams.py
sc420/pygame-rl
f81da559385876616d99c74b43e4345f53d086d2
[ "MIT" ]
6
2019-02-18T09:34:34.000Z
2021-11-09T06:58:02.000Z
pygame_rl/scenario/soccer/teams.py
ebola777/pygame-soccer
f81da559385876616d99c74b43e4345f53d086d2
[ "MIT" ]
3
2019-03-14T03:10:48.000Z
2019-07-15T08:11:25.000Z
pygame_rl/scenario/soccer/teams.py
ebola777/pygame-soccer
f81da559385876616d99c74b43e4345f53d086d2
[ "MIT" ]
4
2019-02-13T13:41:17.000Z
2019-07-22T13:33:15.000Z
# Native modules from enum import IntEnum class Teams(IntEnum): PLAYER = 0 COMPUTER = 1
12.25
24
0.683673
53
0.540816
0
0
0
0
0
0
16
0.163265
56fcbdb798ac3caf6427669eb040b57eb4eb3d30
331
py
Python
graph_pruning/methods/zhenv5/remove_self_loops.py
shan18/taxi
286e2c9a97c1e0b52d63bbb3508045001f449714
[ "Apache-2.0" ]
49
2017-06-26T01:10:48.000Z
2022-03-15T12:15:26.000Z
graph_pruning/methods/zhenv5/remove_self_loops.py
uhh-lt/taxi
0abc016ff854cf3ebeff61be76acf10b7d6a67a7
[ "Apache-2.0" ]
7
2018-06-20T12:33:49.000Z
2018-08-27T09:30:34.000Z
graph_pruning/methods/zhenv5/remove_self_loops.py
shan18/taxi
286e2c9a97c1e0b52d63bbb3508045001f449714
[ "Apache-2.0" ]
20
2017-06-26T01:27:56.000Z
2021-12-24T10:38:09.000Z
import networkx as nx def remove_self_loops_from_graph(g): self_loops = list(g.selfloop_edges()) g.remove_edges_from(self_loops) return self_loops def remove_self_loops_from_edges_file(graph_file): g = nx.read_edgelist(args.original_graph, nodetype = int, create_using = nx.DiGraph()) return remove_self_loops_fro...
30.090909
87
0.81571
0
0
0
0
0
0
0
0
0
0
56fd5170b7684adf06467bcddc3847c7bea4ee50
3,438
py
Python
DailyProgrammer/DP20150422B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20150422B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20150422B.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [2015-04-22] Challenge #211 [Intermediate] Ogre Maze https://www.reddit.com/r/dailyprogrammer/comments/33hwwf/20150422_challenge_211_intermediate_ogre_maze/ #Description: Today we are going to solve a maze. What? Again? Come on, Simpsons did it. Yah okay so we always pick a hero to walk a maze. This time our her...
31.254545
119
0.617219
0
0
0
0
0
0
0
0
3,384
0.984293
56fe5a7bf702f7326f225c4e486c0a157601c27e
39,967
py
Python
test/intelliflow/core/signal_processing/routing_runtime_constructs/test_route.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
4
2022-03-24T04:39:02.000Z
2022-03-31T16:41:50.000Z
test/intelliflow/core/signal_processing/routing_runtime_constructs/test_route.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
null
null
null
test/intelliflow/core/signal_processing/routing_runtime_constructs/test_route.py
amzn/rheoceros
5e8f79d97f8b21d693d3c869b0df70de3d5fd068
[ "Apache-2.0", "MIT-0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import copy import time from test.intelliflow.core.signal_processing.dimension_constructs.test_dimension_spec import TestDimensionSpec from test.intelliflow.core.signal_processing.routing_runtime_constructs impor...
44.358491
138
0.636525
38,878
0.972753
0
0
14,097
0.352716
0
0
6,104
0.152726
56ff69de5c0b77597019e7ce269a5c5386a35249
1,519
py
Python
uocsecrets/forum/urls.py
jeff-zqiu/uocweb
bb6e99a7ab01c9634f8b8446127c4bd1c0701388
[ "MIT" ]
1
2018-09-24T13:32:06.000Z
2018-09-24T13:32:06.000Z
uocsecrets/forum/urls.py
jeff-zqiu/uocweb
bb6e99a7ab01c9634f8b8446127c4bd1c0701388
[ "MIT" ]
null
null
null
uocsecrets/forum/urls.py
jeff-zqiu/uocweb
bb6e99a7ab01c9634f8b8446127c4bd1c0701388
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views from django.views.generic import TemplateView app_name = 'forum' urlpatterns = [ # /forum/ path('about/', TemplateView.as_view(template_name='forum/about.html'),name='about'), path('', views.IndexView.as_view(), name = 'index'), path('top/', ...
41.054054
97
0.631995
0
0
0
0
0
0
0
0
521
0.342989
71008fe29a8062c4d781fffdb3dbd9227f9e7c32
12,085
py
Python
leer/core/primitives/block.py
WTRMQDev/leer
c77c6c1d31e6d99996f471bf4c45b8af70f44fa7
[ "MIT" ]
5
2018-11-10T03:33:37.000Z
2019-08-23T07:02:32.000Z
leer/core/primitives/block.py
WTRMQDev/leer
c77c6c1d31e6d99996f471bf4c45b8af70f44fa7
[ "MIT" ]
2
2018-11-22T11:10:49.000Z
2018-12-15T14:44:03.000Z
leer/core/primitives/block.py
WTRMQDev/leer
c77c6c1d31e6d99996f471bf4c45b8af70f44fa7
[ "MIT" ]
2
2018-10-30T13:43:54.000Z
2018-11-13T06:30:56.000Z
from leer.core.primitives.header import Header, PoPoW, VoteData from leer.core.storage.txos_storage import TXOsStorage from leer.core.chains.headers_manager import HeadersManager from leer.core.storage.excesses_storage import ExcessesStorage from leer.core.storage.headers_storage import HeadersStorage from leer.core.pr...
46.841085
289
0.725528
6,273
0.519073
0
0
654
0.054117
0
0
3,582
0.2964
71017d33ceca5fbf3aa398b934100c4307a77f61
1,982
py
Python
GpioService.py
slater1/gpio
ef4767456b746706ee5cb3304ed6ef29e0fe6d54
[ "MIT" ]
null
null
null
GpioService.py
slater1/gpio
ef4767456b746706ee5cb3304ed6ef29e0fe6d54
[ "MIT" ]
null
null
null
GpioService.py
slater1/gpio
ef4767456b746706ee5cb3304ed6ef29e0fe6d54
[ "MIT" ]
null
null
null
from datetime import datetime from gpiozero import LED from threading import Thread from time import sleep class GpioService: def __init__(self): self.pins = {} self.heartbeat_last = datetime.now() self.heartbeat_enabled = False self.have_heartbeat = False; ...
27.527778
70
0.592836
1,867
0.941978
0
0
0
0
0
0
16
0.008073
7101adf147765864029e975e6ef3b5f8d4d932f9
1,465
py
Python
Loan-Approval-Analysis/code.py
acharya221b/ga-learner-dsmp-repo
9b493aff25cf861fa8b757d7f2e926e1dcbe6061
[ "MIT" ]
null
null
null
Loan-Approval-Analysis/code.py
acharya221b/ga-learner-dsmp-repo
9b493aff25cf861fa8b757d7f2e926e1dcbe6061
[ "MIT" ]
null
null
null
Loan-Approval-Analysis/code.py
acharya221b/ga-learner-dsmp-repo
9b493aff25cf861fa8b757d7f2e926e1dcbe6061
[ "MIT" ]
null
null
null
# -------------- # Import packages import numpy as np import pandas as pd from scipy.stats import mode bank=pd.read_csv(path) categorical_var=bank.select_dtypes(include='object') print(categorical_var) numerical_var=bank.select_dtypes(include='number') print(numerical_var) # code starts here # code ends here #...
18.08642
112
0.703072
0
0
0
0
0
0
0
0
526
0.359044
7103030bd95a829786ccbdd3fa84915b9d8496a9
1,568
py
Python
test/test_mega.py
adacker10/showdown
8ceb1ff46d5c33ec3055928d6ad293224446f63c
[ "MIT" ]
8
2019-02-02T01:15:57.000Z
2021-12-23T04:43:46.000Z
test/test_mega.py
adacker10/showdown
8ceb1ff46d5c33ec3055928d6ad293224446f63c
[ "MIT" ]
null
null
null
test/test_mega.py
adacker10/showdown
8ceb1ff46d5c33ec3055928d6ad293224446f63c
[ "MIT" ]
6
2020-09-11T13:15:05.000Z
2022-03-18T15:46:35.000Z
import unittest from sim.battle import Battle from data import dex class TestMega(unittest.TestCase): def test_pidgeot(self): battle = Battle(debug=False, rng=False) battle.join(0, [{'species': 'pidgeot', 'item': 'pidgeotite', 'moves': ['tackle', '...
34.844444
65
0.53699
1,499
0.955995
0
0
0
0
0
0
255
0.162628
7105dbc3e130b4596cac492082bc99f3266720ff
3,872
py
Python
tests/test_pybrain.py
carlosf/rep
365917a1d582c7d784e26f80808eeed18f655cb3
[ "Apache-2.0" ]
null
null
null
tests/test_pybrain.py
carlosf/rep
365917a1d582c7d784e26f80808eeed18f655cb3
[ "Apache-2.0" ]
null
null
null
tests/test_pybrain.py
carlosf/rep
365917a1d582c7d784e26f80808eeed18f655cb3
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2015 Yandex LLC and contributors <https://yandex.com/> # # 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...
37.592233
143
0.737345
0
0
0
0
0
0
0
0
963
0.248709
710806234af5d094e32935a5e432c9bd6ad09b51
9,749
py
Python
apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py
semi-technologies/weaviate-chaos-engineering
57bc0cd919130749ead1ca2f397a3a46aa77c5fd
[ "BSD-3-Clause" ]
null
null
null
apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py
semi-technologies/weaviate-chaos-engineering
57bc0cd919130749ead1ca2f397a3a46aa77c5fd
[ "BSD-3-Clause" ]
1
2022-03-08T12:03:20.000Z
2022-03-14T10:28:45.000Z
apps/consecutive_create_and_update_operations/consecutive_create_and_update_operations.py
semi-technologies/weaviate-chaos-engineering
57bc0cd919130749ead1ca2f397a3a46aa77c5fd
[ "BSD-3-Clause" ]
null
null
null
from weaviate import Client from uuid import uuid1 class TestConsecutiveCreateAndUpdate: client: Client img = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV/TSou0ONhBxCFD62RBVMRRq1CECqFWaNXB5NIvaNKSpLg4Cq4FBz8Wqw4uzro6uAqC4AeIm5uToouU+L+k0CLGg+N+vLv3uHsHCK0q08zAOKDplpFJ...
89.440367
5,389
0.795569
9,570
0.981639
0
0
0
0
0
0
7,015
0.719561
710a8eb80318d483b7ae6c16ae6882b79bd7ec77
301
py
Python
backend/app.py
JohnnyDevNull/python-nuxt-starter
e6158818b7536212dafec2dfe3bc70385110440c
[ "MIT" ]
null
null
null
backend/app.py
JohnnyDevNull/python-nuxt-starter
e6158818b7536212dafec2dfe3bc70385110440c
[ "MIT" ]
1
2022-01-22T12:45:49.000Z
2022-01-22T12:45:49.000Z
backend/app.py
JohnnyDevNull/python-nuxt-starter
e6158818b7536212dafec2dfe3bc70385110440c
[ "MIT" ]
null
null
null
from flask import Flask from rest_server import rest_api from socket_server import socket_api app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' rest_api.init_app(app) socket_api.init_app(app) if __name__ == '__main__': socket_api.run(app, host="127.0.0.1", port="5000", debug='true')
21.5
68
0.744186
0
0
0
0
0
0
0
0
54
0.179402
710eaa9bc41c92a8622f37f457e57ace8494ee57
25,385
py
Python
eran/ELINA/python_interface/elina_coeff.py
pauls658/ReluDiff-ICSE2020-Artifact
212854fe04f482183c239e5dfec70106a9a83df8
[ "Apache-2.0" ]
7
2020-01-27T21:25:49.000Z
2022-01-07T04:37:37.000Z
eran/ELINA/python_interface/elina_coeff.py
yqtianust/ReluDiff-ICSE2020-Artifact
149f6efe4799602db749faa576980c36921a07c7
[ "Apache-2.0" ]
1
2022-01-25T17:41:54.000Z
2022-01-26T02:27:51.000Z
eran/ELINA/python_interface/elina_coeff.py
yqtianust/ReluDiff-ICSE2020-Artifact
149f6efe4799602db749faa576980c36921a07c7
[ "Apache-2.0" ]
3
2020-03-14T17:12:17.000Z
2022-03-16T09:50:46.000Z
# # # This source file is part of ELINA (ETH LIbrary for Numerical Analysis). # ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich # This software is distributed under GNU Lesser General Public License Version 3.0. # For more information, see the ELINA project website at: # http://elina.ethz.ch #...
29.144661
111
0.658105
0
0
0
0
0
0
0
0
14,646
0.576932
711002166da834a891f4c7b037ed34b457c09408
936
py
Python
utils/gatekeeper.py
whiletrace/dwellinglybackend
e766b3d612b4c92fd337b82498ab8ef68bd95e1f
[ "MIT" ]
15
2020-07-09T20:51:09.000Z
2021-11-28T21:59:02.000Z
utils/gatekeeper.py
codeforpdx/dwellinglybackend
92fee6d19a68ae00750927b8700eaa7195b57668
[ "MIT" ]
148
2020-03-28T22:10:30.000Z
2021-12-19T09:22:59.000Z
utils/gatekeeper.py
whiletrace/dwellinglybackend
e766b3d612b4c92fd337b82498ab8ef68bd95e1f
[ "MIT" ]
30
2020-03-12T02:31:27.000Z
2021-07-29T02:40:36.000Z
from flask import current_app, request from functools import wraps from typing import Set def allowed_params(params: Set[str]): def decorator(endpoint): @wraps(endpoint) def verify_fields(*args, **kwargs): if not (request.json.keys() <= params): return invalid_field_err...
27.529412
88
0.66453
319
0.340812
0
0
208
0.222222
0
0
140
0.149573
7113e4f6820f3436a0a547fe628d3433163dbab4
2,756
py
Python
single_preprocessing.py
OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge
dafe6f33ff6269869377d01a014ab1528b0f1c1d
[ "MIT" ]
null
null
null
single_preprocessing.py
OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge
dafe6f33ff6269869377d01a014ab1528b0f1c1d
[ "MIT" ]
null
null
null
single_preprocessing.py
OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge
dafe6f33ff6269869377d01a014ab1528b0f1c1d
[ "MIT" ]
null
null
null
import os import pandas as pd from brats_toolkit.preprocessor import Preprocessor # instantiate prep = Preprocessor() ## convert mapping info ## survial name_mapping = r"E:\Datasets\BraTS challenge\MICCAI_BraTS2020_TrainingData\name_mapping.csv" survival_info = r"E:\Datasets\BraTS challenge\MICCAI_BraTS2020_TrainingD...
38.816901
171
0.759071
0
0
0
0
0
0
0
0
1,541
0.559144
71165b6a3988566ca2a96415e483f35d734b5e5c
2,081
py
Python
src/gbkfit/params/params.py
bek0s/gbkf
2ef56e8554fdf7ee8136141bc16d59bd34efa6c8
[ "BSD-3-Clause" ]
6
2016-06-26T16:52:25.000Z
2022-03-22T06:37:13.000Z
src/gbkfit/params/params.py
bek0s/gbkf
2ef56e8554fdf7ee8136141bc16d59bd34efa6c8
[ "BSD-3-Clause" ]
4
2016-07-30T08:11:20.000Z
2021-02-12T08:33:42.000Z
src/gbkfit/params/params.py
bek0s/gbkf
2ef56e8554fdf7ee8136141bc16d59bd34efa6c8
[ "BSD-3-Clause" ]
2
2015-05-18T03:21:56.000Z
2015-09-21T06:16:18.000Z
import copy import numbers from gbkfit.params.interpreter import ( Interpreter, load_exprs_file, dump_exprs_file) from gbkfit.params.utils import parse_param_values_strict from gbkfit.utils import parseutils def load_params_info_common(cls, info): desc = parseutils.make_basic_desc(cls, 'params') ...
29.309859
80
0.710716
909
0.436809
0
0
128
0.061509
0
0
97
0.046612
7116b439a184e893f7256cd540dd3d4a730960fe
4,263
py
Python
infer/lib/capture/make.py
vaginessa/infer
553d39eb7d7663fb8762d368feb3b824416f37a1
[ "BSD-3-Clause" ]
null
null
null
infer/lib/capture/make.py
vaginessa/infer
553d39eb7d7663fb8762d368feb3b824416f37a1
[ "BSD-3-Clause" ]
null
null
null
infer/lib/capture/make.py
vaginessa/infer
553d39eb7d7663fb8762d368feb3b824416f37a1
[ "BSD-3-Clause" ]
null
null
null
import argparse import os import subprocess import traceback MODULE_NAME = 'make/cc/clang/gcc' MODULE_DESCRIPTION = '''Run analysis of code built with commands like: make [target] clang [compiler_options] <filename> gcc [compiler_options] <filename> cc [compiler_options] <filename> Analysis examples: infer -- make al...
32.295455
77
0.630776
2,156
0.505747
0
0
0
0
0
0
1,458
0.342013
7116ca2e4f0dcb2bd507fa78836458daf8085478
2,315
py
Python
projects/Doodle/Alexander/code/train/utils.py
liaopeiyuan/ml-arsenal-public
f8938ce3cb58b35fc7cc20d096c39a85ec9780b2
[ "Apache-2.0" ]
280
2018-10-21T01:07:18.000Z
2021-12-30T11:29:48.000Z
projects/Doodle/YourVenn_code/code/train/utils.py
liaopeiyuan/ml-arsenal-public
f8938ce3cb58b35fc7cc20d096c39a85ec9780b2
[ "Apache-2.0" ]
3
2018-11-13T08:04:48.000Z
2020-04-17T09:20:03.000Z
projects/Doodle/YourVenn_code/code/train/utils.py
liaopeiyuan/ml-arsenal-public
f8938ce3cb58b35fc7cc20d096c39a85ec9780b2
[ "Apache-2.0" ]
59
2018-10-21T04:38:23.000Z
2021-03-29T07:58:47.000Z
from common import * from torch.autograd import Variable def to_var(x, volatile=False): if torch.cuda.is_available(): x = x.cuda() return Variable(x, volatile=volatile) def softmax_cross_entropy_criterion(logit, truth, is_average=True): loss = F.cross_entropy(logit, truth, reduce=is_avera...
30.866667
84
0.570626
0
0
0
0
0
0
0
0
144
0.062203
71184f8e2f9e3b802d08210e84b8fd4a03eb2e43
1,281
py
Python
day14/a.py
Cefqrn/advent-of-code-2021
1979f3cff981cfe1a5d59d39ec02f104b0e27abd
[ "MIT" ]
null
null
null
day14/a.py
Cefqrn/advent-of-code-2021
1979f3cff981cfe1a5d59d39ec02f104b0e27abd
[ "MIT" ]
null
null
null
day14/a.py
Cefqrn/advent-of-code-2021
1979f3cff981cfe1a5d59d39ec02f104b0e27abd
[ "MIT" ]
null
null
null
import os from collections import defaultdict with open(os.path.join(os.path.dirname(__file__), "input")) as f: data = f.read().split('\n\n') template, rules = data rules = [x.split(' -> ') for x in rules.splitlines()] rules = dict(rules) pair_counts = defaultdict(int) for i, pair in enumerate(zip(tem...
30.5
69
0.613583
0
0
0
0
0
0
0
0
21
0.016393
71187322e743030c13b6dd0566757709045bdff7
3,793
py
Python
app/arguments.py
calio/taski
c06346d7e3600f41b1347c6d9f73616f17b226e4
[ "MIT" ]
null
null
null
app/arguments.py
calio/taski
c06346d7e3600f41b1347c6d9f73616f17b226e4
[ "MIT" ]
1
2021-06-01T22:24:59.000Z
2021-06-01T22:24:59.000Z
app/arguments.py
calio/taski
c06346d7e3600f41b1347c6d9f73616f17b226e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import six import argparse import app import app.taski as taski def check_positive_int(val): """Make sure input argument is an positive integer""" ival = int(val) if ival <= 0: raise argparse.ArgumentTypeError("%s is not a positive integer" % val) ...
36.471154
102
0.631163
0
0
0
0
0
0
0
0
1,276
0.336055
711ba77d02afa51aa92c2a5601172430744cd942
467
py
Python
tardis/apps/equipment/urls.py
keithschulze/mytardis
8ed3562574ce990d42bfe96133185a82c31c27d4
[ "Apache-2.0" ]
null
null
null
tardis/apps/equipment/urls.py
keithschulze/mytardis
8ed3562574ce990d42bfe96133185a82c31c27d4
[ "Apache-2.0" ]
null
null
null
tardis/apps/equipment/urls.py
keithschulze/mytardis
8ed3562574ce990d42bfe96133185a82c31c27d4
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns urlpatterns = patterns('', (r'^$', 'tardis.apps.equipment.views.index'), (r'^search/$', 'tardis.apps.equipment.views.search'), (r'^(?P<object_id>\d+)/$', 'tardis.apps.equipment.views.view_...
42.454545
76
0.441113
0
0
0
0
0
0
0
0
214
0.458244
711ba79d48c5acb9d3accd7a478bb0384f339f42
156
py
Python
anvil/interfaces/__init__.py
AndresMWeber/Anvil
9cd202183ac998983c2bf6e55cc46bbc0ca1a78e
[ "Apache-2.0" ]
3
2019-11-22T04:38:06.000Z
2022-01-19T08:27:18.000Z
anvil/interfaces/__init__.py
AndresMWeber/Anvil
9cd202183ac998983c2bf6e55cc46bbc0ca1a78e
[ "Apache-2.0" ]
28
2018-02-01T20:39:42.000Z
2018-04-26T17:25:23.000Z
anvil/interfaces/__init__.py
AndresMWeber/Anvil
9cd202183ac998983c2bf6e55cc46bbc0ca1a78e
[ "Apache-2.0" ]
1
2018-03-11T06:47:26.000Z
2018-03-11T06:47:26.000Z
"""The set of functions that enable Anvil to work in the given DCC.""" import api_proxy import dcc_plugin __all__ = ['api_proxy', 'dcc_plugin']
22.285714
70
0.692308
0
0
0
0
0
0
0
0
93
0.596154
711c0839688b9f5dedcef052e9032977bfdb8fbd
13,158
py
Python
nlp_uncertainty_ssl/models/emotion_classifier.py
apmoore1/nlp-uncertainty-ssl
4531ffce61557b4d4a71b97698479a30f65efaec
[ "Apache-2.0" ]
null
null
null
nlp_uncertainty_ssl/models/emotion_classifier.py
apmoore1/nlp-uncertainty-ssl
4531ffce61557b4d4a71b97698479a30f65efaec
[ "Apache-2.0" ]
null
null
null
nlp_uncertainty_ssl/models/emotion_classifier.py
apmoore1/nlp-uncertainty-ssl
4531ffce61557b4d4a71b97698479a30f65efaec
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional, List, Any from allennlp.common.checks import check_dimensions_match, ConfigurationError from allennlp.data import Vocabulary from allennlp.modules import Seq2VecEncoder, TimeDistributed, TextFieldEmbedder, Seq2SeqEncoder from allennlp.modules import FeedForward from allennlp.modules....
48.197802
104
0.636039
12,245
0.930613
0
0
12,283
0.933501
0
0
5,543
0.421265
711d1b4f75a4256d5a0cf38d84457010bf2940ef
3,225
py
Python
medcople.py
tks1998/statistical-function-and-algorithm-ML-
2b287524690e05087da400d879c2f901e148a5e3
[ "MIT" ]
null
null
null
medcople.py
tks1998/statistical-function-and-algorithm-ML-
2b287524690e05087da400d879c2f901e148a5e3
[ "MIT" ]
1
2020-12-07T19:29:21.000Z
2020-12-28T02:29:19.000Z
medcople.py
tks1998/statistical-function-and-algorithm-ML-
2b287524690e05087da400d879c2f901e148a5e3
[ "MIT" ]
null
null
null
import numpy as np import math from statistics import median from scipy.stats import skew import weightedstats as ws from statsmodels.stats.stattools import medcouple class Med_couple: def __init__(self,data): self.data = np.sort(data,axis = None)[::-1] # sorted decreasing self.med = np.medi...
27.801724
83
0.52124
2,644
0.819845
0
0
0
0
0
0
267
0.082791
711dc29809114966ffd1a3a12882c04b3dd3d23a
49
py
Python
feedback/views/__init__.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
feedback/views/__init__.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
feedback/views/__init__.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
from .feedback_view import feedback_view # noqa
24.5
48
0.816327
0
0
0
0
0
0
0
0
6
0.122449
711f7d7edce90878e1c7f4456d59b5282f3d8837
3,644
py
Python
shitty_tools/evil.py
njatkinson/shitty_tools
78c56eba331728d610d12c17fa5b34120fe31f03
[ "WTFPL" ]
null
null
null
shitty_tools/evil.py
njatkinson/shitty_tools
78c56eba331728d610d12c17fa5b34120fe31f03
[ "WTFPL" ]
null
null
null
shitty_tools/evil.py
njatkinson/shitty_tools
78c56eba331728d610d12c17fa5b34120fe31f03
[ "WTFPL" ]
null
null
null
from sqlalchemy.orm import relationship from sqlalchemy import and_ def create_attribute_associator(entity_id_col, eav_cls, eav_entity_id_col, eav_attr_col, eav_value_col): ''' Returns a class method that allows one to associate attributes in an Entity-Attribute-Value table with a sqlalchemy class and the...
46.126582
114
0.63831
0
0
0
0
1,051
0.288419
0
0
2,343
0.642975
712033ec7a6e7fd4c8901d3c8d26af890c676809
2,168
py
Python
backend/models/roboschool_fc.py
AroMorin/DNNOP
271e65811fe7cadcffc8155049e256fa78c0c5c6
[ "MIT" ]
6
2020-01-14T00:01:34.000Z
2021-12-28T14:31:05.000Z
backend/models/roboschool_fc.py
AroMorin/DNNOP
271e65811fe7cadcffc8155049e256fa78c0c5c6
[ "MIT" ]
null
null
null
backend/models/roboschool_fc.py
AroMorin/DNNOP
271e65811fe7cadcffc8155049e256fa78c0c5c6
[ "MIT" ]
1
2020-09-06T10:44:29.000Z
2020-09-06T10:44:29.000Z
"""A script that defines a simple FC model for function solving""" import torch.nn as nn import numpy as np import torch class Net(nn.Module): def __init__(self, model_params): super(Net, self).__init__() model_params = self.ingest_params_lvl1(model_params) ins = model_params['in features']...
30.971429
74
0.535055
2,045
0.943266
0
0
0
0
0
0
412
0.190037
71203d69e972ebd9a73901db8b42d1c645ea09f0
1,346
py
Python
src/face_check/social/backends/goodgame.py
tarvitz/face-check
e468025c7a5615f4ec8ee24c06252ceeb8a2e129
[ "BSD-4-Clause" ]
null
null
null
src/face_check/social/backends/goodgame.py
tarvitz/face-check
e468025c7a5615f4ec8ee24c06252ceeb8a2e129
[ "BSD-4-Clause" ]
7
2019-01-01T17:13:06.000Z
2021-06-10T17:42:54.000Z
src/face_check/social/backends/goodgame.py
tarvitz/face-check
e468025c7a5615f4ec8ee24c06252ceeb8a2e129
[ "BSD-4-Clause" ]
null
null
null
""" Twitch OAuth2 backend, docs at: https://python-social-auth.readthedocs.io/en/latest/backends/goodgame.html """ from social_core.backends import oauth class GoodGameOAuth2(oauth.BaseOAuth2): """GoodGame OAuth authentication backend""" name = 'goodgame' ID_KEY = 'user_id' AUTHORIZATION_URL = 'ht...
34.512821
78
0.642645
1,185
0.880386
0
0
0
0
0
0
664
0.493314
7120c63dc1de2d2819806215bfba1cf552bbc4da
666
py
Python
recipes/Python/576838_Recursivemethod/recipe-576838.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/576838_Recursivemethod/recipe-576838.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/576838_Recursivemethod/recipe-576838.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
def recursive(func): func.func_globals[func.__name__] = func return func class Test: def method(self, x = False): if x: print(x) else: self.method("I'm method") @staticmethod def smethod(x = False): if x: print(x) else: ...
20.8125
70
0.540541
422
0.633634
0
0
279
0.418919
0
0
142
0.213213
7122a8e74eb4212d1e6aaea222109cbc1f0c061a
18,717
py
Python
tests/src/python/test_qgssearchwidgetwrapper.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
tests/src/python/test_qgssearchwidgetwrapper.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
tests/src/python/test_qgssearchwidgetwrapper.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsSearchWidgetWrapper. .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version...
54.095376
131
0.689534
17,471
0.93343
0
0
0
0
0
0
4,211
0.224983
7122f7239260373acc14b5705783c292ba4716bb
220
py
Python
conftest.py
Ouss4/pytest-embedded
b8811f97f6e3a3688da3628b9f3cb4645723c552
[ "MIT" ]
12
2021-06-07T11:39:30.000Z
2022-03-07T18:42:04.000Z
conftest.py
Ouss4/pytest-embedded
b8811f97f6e3a3688da3628b9f3cb4645723c552
[ "MIT" ]
30
2021-08-10T10:27:41.000Z
2022-03-25T08:08:29.000Z
conftest.py
Ouss4/pytest-embedded
b8811f97f6e3a3688da3628b9f3cb4645723c552
[ "MIT" ]
6
2021-11-16T13:10:45.000Z
2022-03-31T10:51:29.000Z
import os import pytest pytest_plugins = [ 'pytester', ] @pytest.fixture(autouse=True) def copy_fixtures(testdir): testdir.copy_example(os.path.join(os.path.dirname(__file__), 'tests', 'fixtures')) yield
15.714286
86
0.713636
0
0
124
0.563636
154
0.7
0
0
27
0.122727
7125865039e4808ac309b57d84350350e5e69e6d
4,858
py
Python
tests/gitlab_test_utils.py
jarda-wien/gitlabber
e3e53b183233be6b08c47a8ce1264415dc7af6e4
[ "MIT" ]
344
2020-04-28T16:59:02.000Z
2022-03-30T08:50:58.000Z
tests/gitlab_test_utils.py
jarda-wien/gitlabber
e3e53b183233be6b08c47a8ce1264415dc7af6e4
[ "MIT" ]
86
2020-04-28T13:21:37.000Z
2022-03-31T12:51:29.000Z
tests/gitlab_test_utils.py
jarda-wien/gitlabber
e3e53b183233be6b08c47a8ce1264415dc7af6e4
[ "MIT" ]
64
2020-04-29T11:53:14.000Z
2022-03-23T09:41:05.000Z
import pytest import json from unittest import mock from gitlabber import gitlab_tree URL = "http://gitlab.my.com/" TOKEN = "MOCK_TOKEN" GROUP_URL = "http://gitlab.my.com/group" GROUP_NAME = "group" SUBGROUP_URL = "http://gitlab.my.com/group/subgroup" SUBGROUP_NAME = "subgroup" PROJECT_URL = "http://gitlab.my.com/gr...
36.253731
120
0.711404
1,102
0.226842
0
0
0
0
0
0
449
0.092425
7126a909c8eb6e0615ba8dbc55706b97b9c85813
33,512
py
Python
mindquantum/simulator/simulator.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
mindquantum/simulator/simulator.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
mindquantum/simulator/simulator.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
42.153459
120
0.586894
28,725
0.840625
0
0
0
0
0
0
19,495
0.570513
7126b8e0e2a112a169fa2ccb17434fdbeb6afcc6
10,853
py
Python
seasonedParser/core.py
KevinMidboe/seasonMover
380c4a02f48679c0204ecf1a5807718b93f2ff19
[ "MIT" ]
null
null
null
seasonedParser/core.py
KevinMidboe/seasonMover
380c4a02f48679c0204ecf1a5807718b93f2ff19
[ "MIT" ]
9
2017-09-29T11:35:37.000Z
2020-02-19T09:34:15.000Z
seasonedParser/core.py
KevinMidboe/seasonedParser
380c4a02f48679c0204ecf1a5807718b93f2ff19
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- # @Author: KevinMidboe # @Date: 2017-08-25 23:22:27 # @Last Modified by: KevinMidboe # @Last Modified time: 2019-02-02 01:04:25 from guessit import guessit from babelfish import Language, LanguageReverseError import hashlib import os, errno import shutil import re i...
32.887879
152
0.602322
0
0
0
0
0
0
0
0
2,745
0.252925
7127698ab3d52c9f1add1c5b008972b4228385d7
1,266
py
Python
networking_vsphere/utils/db.py
huadream/networking-vsphere
8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a
[ "Apache-2.0" ]
null
null
null
networking_vsphere/utils/db.py
huadream/networking-vsphere
8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a
[ "Apache-2.0" ]
null
null
null
networking_vsphere/utils/db.py
huadream/networking-vsphere
8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
37.235294
78
0.71169
0
0
0
0
0
0
0
0
648
0.511848
71290ff28eeef27fa1289d7f582ff081fb7a83c1
2,645
py
Python
Client/Classes/slide.py
crew/dds-client
5d530f053955df07b75410807816241a10b567d3
[ "MIT" ]
null
null
null
Client/Classes/slide.py
crew/dds-client
5d530f053955df07b75410807816241a10b567d3
[ "MIT" ]
null
null
null
Client/Classes/slide.py
crew/dds-client
5d530f053955df07b75410807816241a10b567d3
[ "MIT" ]
null
null
null
import json # TODO: Make symlinks between the Server and Client slide, message, and ConfigParser classes class Slide(): """ Class for Slide Show Slide Objects @ivar url: The Slide's URL @type url: String @ivar duration: The Duration to show the slide (in seconds) @type duration: Integer @i...
32.654321
97
0.582987
2,537
0.959168
0
0
606
0.229112
0
0
1,746
0.660113
712af4c8d551dfa14800db9ae1b75dfc39f56d2e
3,692
py
Python
eval_model.py
yaojin17/adversarial-project
76af16f126ae701fb3a0a83152b37cbec5e7b28f
[ "Apache-2.0" ]
null
null
null
eval_model.py
yaojin17/adversarial-project
76af16f126ae701fb3a0a83152b37cbec5e7b28f
[ "Apache-2.0" ]
null
null
null
eval_model.py
yaojin17/adversarial-project
76af16f126ae701fb3a0a83152b37cbec5e7b28f
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torchvision from torchvision import datasets, transforms from utils import prepare_cifar from fgsm_attack import FGSMAttack from tqdm import tqdm, trange from pgd20 import pgd20_attack from model import get_model_for_attack def eval_model(mode...
38.458333
120
0.578548
0
0
0
0
0
0
0
0
385
0.10428
712c4c6a5b75135845d649016c8d2919cb39542c
6,613
py
Python
api/app/main.py
JexPY/filemanager-fastapi
da830fe6d9a3d515e0d04e6e690ff366225ec251
[ "MIT" ]
24
2020-09-15T11:59:55.000Z
2022-03-13T19:58:02.000Z
api/app/main.py
JexPY/filemanager-fastapi
da830fe6d9a3d515e0d04e6e690ff366225ec251
[ "MIT" ]
null
null
null
api/app/main.py
JexPY/filemanager-fastapi
da830fe6d9a3d515e0d04e6e690ff366225ec251
[ "MIT" ]
5
2020-10-11T08:41:29.000Z
2022-03-10T07:23:55.000Z
from fastapi import FastAPI, File, UploadFile, BackgroundTasks, Depends, HTTPException,status,Query from fastapi.responses import FileResponse from fastapi.middleware.cors import CORSMiddleware from fastapi.security import HTTPBearer,OAuth2AuthorizationCodeBearer,HTTPBasicCredentials from fastapi.staticfiles import Sta...
37.573864
152
0.692122
0
0
0
0
5,004
0.756691
4,280
0.64721
1,642
0.248299
712c549f586b26511dd3c9bf33e7238504d23130
3,570
py
Python
src/modules/Load.py
aaanh/duplicated_accelcamp
7d4b60ace023bede907f8ed367ba492731a1951d
[ "FTL", "CNRI-Python", "RSA-MD" ]
null
null
null
src/modules/Load.py
aaanh/duplicated_accelcamp
7d4b60ace023bede907f8ed367ba492731a1951d
[ "FTL", "CNRI-Python", "RSA-MD" ]
2
2021-05-21T16:31:41.000Z
2021-08-25T16:05:48.000Z
src/modules/Load.py
aaanh/duplicated_accelcamp
7d4b60ace023bede907f8ed367ba492731a1951d
[ "FTL", "CNRI-Python", "RSA-MD" ]
null
null
null
from modules.LoadAccel import * from modules.LoadOmega import * import os from tkinter import * defaultdir = "../data" def LoadDataSet(dirpath=None): if(dirpath==None): root = Tk() root.withdraw() dirpath = filedialog.askdirectory(parent=root,initialdir=defaultdir,title=...
35.346535
123
0.519048
0
0
0
0
0
0
0
0
830
0.232493
712ec90b75d074ea84403e57993fff8f8e2dc0dc
3,069
py
Python
hundun/systems/_systems.py
llbxg/hundun
a063ba4cf42665a3b7861aaccd1e9e31719eef8d
[ "MIT" ]
4
2021-12-24T09:19:45.000Z
2022-03-17T23:44:44.000Z
hundun/systems/_systems.py
llbxg/hundun
a063ba4cf42665a3b7861aaccd1e9e31719eef8d
[ "MIT" ]
5
2022-02-15T07:17:26.000Z
2022-03-03T04:49:38.000Z
hundun/systems/_systems.py
llbxg/hundun
a063ba4cf42665a3b7861aaccd1e9e31719eef8d
[ "MIT" ]
null
null
null
# 力学系(dynamical systems) from abc import ABC as _ABC, abstractmethod as _abstractmethod import numpy as _np from ._tu import TU as _TU class DynamicalSystems(_ABC): def __init__(self, t=None, u=None, **params): self.dim = 0 self.parameter() if self.dim == 0: class_name = s...
24.165354
75
0.548713
2,928
0.952195
0
0
817
0.265691
0
0
232
0.075447
712f06edd2c360eccafbcbf093e6b134d0761a1c
3,919
py
Python
povary/apps/statistics/migrations/0001_initial.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/statistics/migrations/0001_initial.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
povary/apps/statistics/migrations/0001_initial.py
TorinAsakura/cooking
cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'TrackingType' db.create_table('statistics_trackingtype', ( ('id', self.gf('djang...
59.378788
161
0.602705
3,787
0.966318
0
0
0
0
0
0
2,266
0.578209
712f74ba0feddfa2cbc236392371cf7d36c0e8d3
306
py
Python
ex035.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex035.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
ex035.py
danilodelucio/Exercicios_Curso_em_Video
d59e1b4efaf27dd0fc828a608201613c69ac333d
[ "MIT" ]
null
null
null
r1 = float(input('Primeiro seguimento: ')) r2 = float(input('Segundo seguimento: ')) r3 = float(input('Terceiro seguimento: ')) if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2: print('Os segmentos acima PODEM FORMAR UM TRIÂNGULO!') else: print('Os segmentos acima NÃO PODEM FORMAR UM TRIÂGULO!')
38.25
61
0.676471
0
0
0
0
0
0
0
0
168
0.543689
712fe840477ae9afc89ee0d30308453c6ea2bba1
429
py
Python
PycharmProjects/PythonExercicios/ex027.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
PycharmProjects/PythonExercicios/ex027.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
PycharmProjects/PythonExercicios/ex027.py
RodrigoMASRamos/Projects.py
ed15981b320914c9667305dcd5fb5b7906fd9b00
[ "MIT" ]
null
null
null
# Faça um programa que leia o nome completo de uma pessoa, mostrando em seguida o primeiro e o último nome separadamente. # # Ex: Ana Maria de Souza #primeiro = Ana #último = Souza '''Tive dificuldades com a ultima linha desse código. Estude mais a função Split e a aula 9!''' nome = input('Digite um nome completo: ').s...
42.9
121
0.710956
0
0
0
0
0
0
0
0
377
0.860731
712febd61548dc3d1908db056b52dfe5ee29e08f
705
py
Python
lang/Python/playing-cards-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
lang/Python/playing-cards-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/playing-cards-1.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2021-04-13T04:19:31.000Z
2021-04-13T04:19:31.000Z
import random class Card(object): suits = ("Clubs","Hearts","Spades","Diamonds") pips = ("2","3","4","5","6","7","8","9","10","Jack","Queen","King","Ace") def __init__(self, pip,suit): self.pip=pip self.suit=suit def __str__(self): return "%s %s"%(self.pip,self.suit) class De...
26.111111
80
0.574468
687
0.974468
0
0
0
0
0
0
142
0.201418
712ffc09478a5f0361603a065889b6ec9109be8d
1,300
py
Python
restfulpy/tests/test_jwt_cli.py
mehdishirazi/restfulpy
244a53a8ea4692a37b4db82b6cb5ef83c27f0b53
[ "MIT" ]
null
null
null
restfulpy/tests/test_jwt_cli.py
mehdishirazi/restfulpy
244a53a8ea4692a37b4db82b6cb5ef83c27f0b53
[ "MIT" ]
null
null
null
restfulpy/tests/test_jwt_cli.py
mehdishirazi/restfulpy
244a53a8ea4692a37b4db82b6cb5ef83c27f0b53
[ "MIT" ]
null
null
null
import json import pytest from bddcli import Given, given, when, stdout, stderr, Application from itsdangerous import TimedJSONWebSignatureSerializer from itsdangerous.exc import SignatureExpired from nanohttp import settings from restfulpy import Application as RestfulpyApplication foo = RestfulpyApplication(name=...
24.528302
66
0.646923
0
0
0
0
0
0
0
0
220
0.169231
71313701f0c786d0a59625fef35a307d370ccdba
913
py
Python
Challenges/16/tree_max/tree_max.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Challenges/16/tree_max/tree_max.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Challenges/16/tree_max/tree_max.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
class BinaryNode: def __init__(self, value): self.value = value self.left = None self.right = None class BinaryTree: def __init__(self): self.root = None def tree_max(self): """ To find the maximum node value Input: None Output: ...
18.26
64
0.511501
871
0.953998
0
0
0
0
0
0
151
0.165389
7131fdbb28ce493b1ce2fdb0b6b3ceece6c2c5e7
234
py
Python
lulu/length-of-last-word.py
joshua-jin/algorithm-campus
8f60cd63542f4f5778a992179c3e767fbc023338
[ "MIT" ]
8
2016-05-10T12:59:36.000Z
2020-09-16T19:47:44.000Z
lulu/length-of-last-word.py
joshua-jin/algorithm-campus
8f60cd63542f4f5778a992179c3e767fbc023338
[ "MIT" ]
null
null
null
lulu/length-of-last-word.py
joshua-jin/algorithm-campus
8f60cd63542f4f5778a992179c3e767fbc023338
[ "MIT" ]
2
2016-12-22T09:28:54.000Z
2020-01-22T17:56:02.000Z
class Solution: # @param {string} s A string # @return {int} the length of last word def lengthOfLastWord(self, s): # Write your code here if s == '': return 0 return len(s.split()[-1])
26
43
0.542735
233
0.995726
0
0
0
0
0
0
91
0.388889
713212e94fcb5070eba40619572546d9533d74ef
406
py
Python
marvelmind_nav/launch/marvel_base_launch.py
aminballoon/ros_marvelmind_package
ca42a11d8c4205f0b15027eb32495b8abeddab52
[ "BSD-2-Clause" ]
null
null
null
marvelmind_nav/launch/marvel_base_launch.py
aminballoon/ros_marvelmind_package
ca42a11d8c4205f0b15027eb32495b8abeddab52
[ "BSD-2-Clause" ]
null
null
null
marvelmind_nav/launch/marvel_base_launch.py
aminballoon/ros_marvelmind_package
ca42a11d8c4205f0b15027eb32495b8abeddab52
[ "BSD-2-Clause" ]
null
null
null
from launch import LaunchDescription from launch_ros.actions import LifecycleNode # from launch_ros.actions import Node import sys def generate_launch_description(): return LaunchDescription([ LifecycleNode(package='marvelmind_nav', node_executable='marvelmind_nav', node_name='lc_marv...
31.230769
81
0.726601
0
0
0
0
0
0
0
0
103
0.253695
713280b49e1a2690e858ead874212334f33b4458
6,928
py
Python
sahyun_bot/elastic_settings.py
TheGoodlike13/sahyun-bot
8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb
[ "MIT" ]
1
2022-02-21T18:55:34.000Z
2022-02-21T18:55:34.000Z
sahyun_bot/elastic_settings.py
TheGoodlike13/sahyun-bot
8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb
[ "MIT" ]
null
null
null
sahyun_bot/elastic_settings.py
TheGoodlike13/sahyun-bot
8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb
[ "MIT" ]
null
null
null
""" Initializes settings for elastic.py. To make the index dynamic (which also allows to switch it out for tests), the value must be explicitly initialized by some other module. If this does not happen, and somebody attempts to load elastic.py, 'ready_or_die' will get executed which will shut down the application, thu...
32.990476
116
0.69948
2,997
0.432592
0
0
929
0.134094
0
0
1,872
0.270208
713385c102d9118616dbff568943593032126378
13,816
py
Python
ipec/ga/population.py
wwwbbb8510/ippso
fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5
[ "MIT" ]
9
2018-05-10T01:04:34.000Z
2019-06-28T07:47:37.000Z
ipec/ga/population.py
wwwbbb8510/ippso
fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5
[ "MIT" ]
null
null
null
ipec/ga/population.py
wwwbbb8510/ippso
fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5
[ "MIT" ]
2
2020-10-12T03:54:30.000Z
2021-09-08T14:10:21.000Z
import copy import logging import numpy as np from ipec.cnn.evaluator import Evaluator, CNNEvaluator, initialise_cnn_evaluator from ipec.cnn.layers import ConvLayer from ipec.cnn.layers import DisabledLayer from ipec.cnn.layers import FullyConnectedLayer from ipec.cnn.layers import PoolingLayer from ipec.ip.decoder i...
43.040498
191
0.652287
10,935
0.791474
0
0
0
0
0
0
4,964
0.359294
71347fdcbbf1d234dd6e12f39abe3f11e92be5a5
2,030
py
Python
migrations/versions/8a480de4de4c_adjusts_for_seed_development.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
1
2018-01-01T20:35:43.000Z
2018-01-01T20:35:43.000Z
migrations/versions/8a480de4de4c_adjusts_for_seed_development.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
37
2017-02-24T17:07:25.000Z
2021-09-02T14:49:19.000Z
migrations/versions/8a480de4de4c_adjusts_for_seed_development.py
eubr-bigsea/limonero
54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5
[ "Apache-2.0" ]
2
2019-11-05T13:45:45.000Z
2020-11-13T22:02:37.000Z
"""Adjusts for Seed development Revision ID: 8a480de4de4c Revises: 7addb7587b1a Create Date: 2021-07-13 17:16:20.807567 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql from limonero.migration_utils import (is_mysql, is_psql, upgrade_actions, downgrade_actions, get_psq...
32.222222
77
0.576355
0
0
0
0
0
0
0
0
1,023
0.503941
7134af531e2e0820e6645888186d7ca8871d70c0
537
py
Python
api/test/checkalive_api.py
kizunai/flask-server
79f1484e776c74f23ef22836c5a0970ef66ecdfb
[ "Apache-2.0" ]
null
null
null
api/test/checkalive_api.py
kizunai/flask-server
79f1484e776c74f23ef22836c5a0970ef66ecdfb
[ "Apache-2.0" ]
null
null
null
api/test/checkalive_api.py
kizunai/flask-server
79f1484e776c74f23ef22836c5a0970ef66ecdfb
[ "Apache-2.0" ]
null
null
null
import flask from flask_restful import Resource from utils import decoraters from logic.test.checkalive_logic import CheckaliveLogic class CheckaliveApi(Resource): """CheckaliveApi /api/checkalive """ def __init__(self): self.log_id = 1 #todo 暂时用1代替 @decoraters.response_format def ge...
22.375
55
0.648045
411
0.751371
0
0
254
0.464351
0
0
81
0.14808
713860ef4def0389233076f29b376d7d4ac7466d
226
py
Python
lesson8_work/Ex7.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson8_work/Ex7.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
lesson8_work/Ex7.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
# Написати функцію, яка перевіряє чи в списку є ім'я "Євген" def is_in_list(l, e): if e in l: return True else: return False print(is_in_list(['Ярослав', 'Богдан', 'Катя', 'Євген'], "Євгенпше"))
28.25
70
0.60177
0
0
0
0
0
0
0
0
176
0.584718
7139484e64db6cee198f70d7bc368fac65431c29
1,313
py
Python
Problems/199.py
kvedula/leetcode
8576b1ef466529b9e0d337af78fc833acb686a3c
[ "MIT" ]
null
null
null
Problems/199.py
kvedula/leetcode
8576b1ef466529b9e0d337af78fc833acb686a3c
[ "MIT" ]
null
null
null
Problems/199.py
kvedula/leetcode
8576b1ef466529b9e0d337af78fc833acb686a3c
[ "MIT" ]
null
null
null
# Kamesh Vedula # Problem: Binary Tree Right Side View # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right def rightSideView(self, root: TreeNode) -> List[int]: if root is N...
22.254237
55
0.450876
0
0
0
0
0
0
0
0
747
0.568926
713966fce8e27e796ccf934cd246351e192e1902
984
py
Python
scripts/preprocessing/gamma correction.py
dekelmeirom/pathologylab
262b0bd9cb9233bc960671c2d674cf895b228f39
[ "MIT" ]
null
null
null
scripts/preprocessing/gamma correction.py
dekelmeirom/pathologylab
262b0bd9cb9233bc960671c2d674cf895b228f39
[ "MIT" ]
null
null
null
scripts/preprocessing/gamma correction.py
dekelmeirom/pathologylab
262b0bd9cb9233bc960671c2d674cf895b228f39
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from skimage import exposure from matplotlib import pyplot as plt from matplotlib import colors as colors import numpy as np import matplotlib.image as mpimg import colorsys import math import os PATH = "C:\\Users\\dekelmeirom\\OneDrive - Technion\\Documents\\university\\pdl_proj...
28.114286
99
0.704268
0
0
0
0
0
0
0
0
265
0.269309
713a3074599a837fcc6b69f08f73d38cb5ca45a1
182
py
Python
curso2.py
ralabarta/educationar_python_repo
f89ddb0bb19b039459e42472e0f52f31c69a3853
[ "MIT" ]
null
null
null
curso2.py
ralabarta/educationar_python_repo
f89ddb0bb19b039459e42472e0f52f31c69a3853
[ "MIT" ]
null
null
null
curso2.py
ralabarta/educationar_python_repo
f89ddb0bb19b039459e42472e0f52f31c69a3853
[ "MIT" ]
null
null
null
import statistics datos = [2,4,6,8] datos2 = [2, 2, 3, 5, 8, 9] mean_r = statistics.mean(datos) median_r = statistics.median(datos2) print(mean_r) print(median_r)
13
37
0.637363
0
0
0
0
0
0
0
0
0
0
713cd79703169c6cc701b303f0c7df900f7c2689
491
py
Python
tasks/migrations/0005_itemtemplatefield_type.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
tasks/migrations/0005_itemtemplatefield_type.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
11
2019-11-12T23:26:45.000Z
2021-06-10T17:37:23.000Z
tasks/migrations/0005_itemtemplatefield_type.py
heolin123/funcrowd
20167783de208394c09ed0429a5f02ec6dd79c42
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-12-01 23:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_remove_annotation_is_done'), ] operations = [ migrations.AddField( model_name='itemtemplatefield', nam...
25.842105
143
0.586558
398
0.810591
0
0
0
0
0
0
160
0.325866
713e566b91f55269e724b2a11eda8f515d37d765
415
py
Python
evaluate/coverage_filter.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
null
null
null
evaluate/coverage_filter.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
null
null
null
evaluate/coverage_filter.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
2
2020-11-04T18:15:43.000Z
2020-11-06T01:38:08.000Z
from evaluate.filter import Filter from .vcf import VCF class CoverageFilter(Filter): def __init__(self, coverage_threshold: float): self._coverage_threshold = coverage_threshold @property def coverage_threshold(self) -> float: return self._coverage_threshold def record_should_be_fil...
27.666667
65
0.742169
356
0.857831
0
0
92
0.221687
0
0
0
0
713f16f6c1f8f19f1fc82172faed9240a38e2015
1,632
py
Python
examples/custom-validator.py
RyanSquared/gigaspoon
c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a
[ "MIT" ]
1
2018-02-06T16:15:44.000Z
2018-02-06T16:15:44.000Z
examples/custom-validator.py
RyanSquared/gigaspoon
c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a
[ "MIT" ]
1
2019-10-15T13:57:09.000Z
2019-10-15T16:08:42.000Z
examples/custom-validator.py
RyanSquared/gigaspoon
c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a
[ "MIT" ]
null
null
null
import os import flask import gigaspoon as gs app = flask.Flask(__name__) app.secret_key = os.urandom(24) class CustomSelect(gs.v.Validator): def __init__(self, name, options): self.name = name self._options = set(options) def __repr__(self): return "%r %r" % (type(self), self._opti...
23.652174
56
0.610907
457
0.280025
0
0
484
0.296569
0
0
642
0.393382
714198dc8f030861acfb87346bb996cc656b4494
2,244
py
Python
gdk/jetson/tracker.py
dbadrian/gdk_dlrc17
7aebed740dc4a09f3549674b0cfeb22bdb392ac6
[ "MIT" ]
1
2019-03-29T12:36:55.000Z
2019-03-29T12:36:55.000Z
gdk/jetson/tracker.py
dbadrian/gdk_dlrc17
7aebed740dc4a09f3549674b0cfeb22bdb392ac6
[ "MIT" ]
null
null
null
gdk/jetson/tracker.py
dbadrian/gdk_dlrc17
7aebed740dc4a09f3549674b0cfeb22bdb392ac6
[ "MIT" ]
null
null
null
import time import sys import logging # Import PS-Drone import cv2 import numpy as np import gdk.config as config logger = logging.getLogger(__name__) class CheckerBoardTracker(): def __init__(self): self.tracking = False def update(self, frame): self.tracking, self.corners = self.__get_cor...
34.523077
130
0.657754
2,078
0.926025
0
0
0
0
0
0
73
0.032531
7143d82db45d18175969ef941dd86101829ae9a5
15,402
py
Python
Tryp_T.py
johnheap/VAPPER-Galaxy
4ce903b3b44755198e59368057863a5eb62ff6c6
[ "Apache-2.0" ]
null
null
null
Tryp_T.py
johnheap/VAPPER-Galaxy
4ce903b3b44755198e59368057863a5eb62ff6c6
[ "Apache-2.0" ]
null
null
null
Tryp_T.py
johnheap/VAPPER-Galaxy
4ce903b3b44755198e59368057863a5eb62ff6c6
[ "Apache-2.0" ]
null
null
null
""" * Copyright 2018 University of Liverpool * Author: John Heap, Computational Biology Facility, UoL * Based on original scripts of Sara Silva Pereira, Institute of Infection and Global Health, UoL * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
44.514451
195
0.617907
0
0
0
0
0
0
0
0
7,006
0.454876
7144cdbf12d2350acabc972907aa336bd9391ec1
442
py
Python
scale/node/migrations/0003_node_is_paused_errors.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/node/migrations/0003_node_is_paused_errors.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/node/migrations/0003_node_is_paused_errors.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('node', '0002_node_pause_reason'), ] operations = [ migrations.AddField( model_name='node', name='is_...
21.047619
53
0.606335
333
0.753394
0
0
0
0
0
0
77
0.174208
852e97bba32d24a91db45aae8147ee20bfee4935
3,482
py
Python
LineDetect/videoLineDet.py
RonellBr/LaneDetection
349e5c75bee39c3006fcf206565915fe7493e796
[ "MIT" ]
null
null
null
LineDetect/videoLineDet.py
RonellBr/LaneDetection
349e5c75bee39c3006fcf206565915fe7493e796
[ "MIT" ]
null
null
null
LineDetect/videoLineDet.py
RonellBr/LaneDetection
349e5c75bee39c3006fcf206565915fe7493e796
[ "MIT" ]
null
null
null
################################################################ # Author: Ronell Bresler # Module: VideoLineDetect.py # # # References: # https://www.analyticsvidhya.com/blog/2020/05/tutorial-real-time-lane-detection-opencv/ # https://towardsdatascience.com/tutorial-build-a-lane-detector-679fd8953132 # https:/...
31.654545
138
0.553418
178
0.05112
0
0
0
0
0
0
1,145
0.328834
8531b1ab7623355d9bad7b738e3d301375faa339
75
py
Python
Raffle/__init__.py
duanegtr/legendv3-cogs
ffde1452a75ad42b4f6511b612ce486e96fcd6de
[ "MIT" ]
10
2020-05-25T13:32:30.000Z
2022-02-01T12:33:07.000Z
Raffle/__init__.py
darcyle/tl-cogs
6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79
[ "MIT" ]
2
2020-05-23T22:53:07.000Z
2020-08-09T11:28:12.000Z
Raffle/__init__.py
darcyle/tl-cogs
6b13c4a6247115571c5a2bb6ea98ed1fe2d44d79
[ "MIT" ]
7
2020-05-18T17:37:33.000Z
2022-01-13T04:08:05.000Z
from .raffle import Raffle def setup(bot): bot.add_cog(Raffle(bot))
18.75
28
0.693333
0
0
0
0
0
0
0
0
0
0
8531c7eec28be5dec06698cc6a230d91cb72ae17
88
py
Python
tritimap/__init__.py
zwbao/Triti-Map
58d79d773df3862b6e03717bf3563d8c427c7027
[ "MIT" ]
null
null
null
tritimap/__init__.py
zwbao/Triti-Map
58d79d773df3862b6e03717bf3563d8c427c7027
[ "MIT" ]
null
null
null
tritimap/__init__.py
zwbao/Triti-Map
58d79d773df3862b6e03717bf3563d8c427c7027
[ "MIT" ]
null
null
null
import os __version__ = "0.9.2" root_dir = os.path.dirname(os.path.abspath(__file__))
14.666667
53
0.727273
0
0
0
0
0
0
0
0
7
0.079545
85320c46304d80fec430c5914f3f698f8524a178
3,407
py
Python
code/app.py
annotation/app-uruk
aee4ed0c3fd574251f8b4eb9169705e8ac26bf95
[ "MIT" ]
null
null
null
code/app.py
annotation/app-uruk
aee4ed0c3fd574251f8b4eb9169705e8ac26bf95
[ "MIT" ]
null
null
null
code/app.py
annotation/app-uruk
aee4ed0c3fd574251f8b4eb9169705e8ac26bf95
[ "MIT" ]
null
null
null
import types from tf.advanced.helpers import dh from tf.advanced.find import loadModule from tf.advanced.app import App def transform_prime(app, n, p): return ("'" * int(p)) if p else "" def transform_ctype(app, n, t): if t == "uncertain": return "?" elif t == "properName": return "=" ...
28.872881
87
0.561785
2,936
0.861755
0
0
0
0
0
0
207
0.060757
85322edb1455b94f135f0f46c6eb2897360629a3
12,632
py
Python
shunt/hmap/hmap.py
velezj/project-manager
92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72
[ "MIT" ]
null
null
null
shunt/hmap/hmap.py
velezj/project-manager
92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72
[ "MIT" ]
null
null
null
shunt/hmap/hmap.py
velezj/project-manager
92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger( __name__ ) import copy import tempfile import os import jinja2 import yaml ## # Interface functions for Hiearchichal Maps (hmaps) # which are jsut dictionaries-of-dictionaries :) TEMPLATE_HANDLEBAR_START = "{{" TEMPLATE_HANDLEBAR_END = "}}" JINJA_VARIABLE_KEY = "_" ##===...
36.827988
116
0.443002
783
0.061985
0
0
0
0
0
0
7,077
0.560244
8533f45f79e26e6d7713f555d363262a5ebdca2b
2,496
py
Python
kur/sources/jsonl.py
greedyuser/kur
ba6588ebfa5dec66d1e462c180618cc115fd38ef
[ "Apache-2.0" ]
867
2016-12-05T20:24:23.000Z
2022-02-18T09:07:14.000Z
kur/sources/jsonl.py
greedyuser/kur
ba6588ebfa5dec66d1e462c180618cc115fd38ef
[ "Apache-2.0" ]
90
2017-01-14T22:46:23.000Z
2021-02-09T13:32:27.000Z
kur/sources/jsonl.py
greedyuser/kur
ba6588ebfa5dec66d1e462c180618cc115fd38ef
[ "Apache-2.0" ]
135
2017-01-18T19:21:20.000Z
2022-01-24T16:57:59.000Z
import linecache import numpy import json from ..sources import ChunkSource ############################################################################### class JSONLSource(ChunkSource): """ Data source for tensors stored in JSONL format """ #############################################################...
35.15493
93
0.455529
2,336
0.935897
564
0.225962
0
0
0
0
1,252
0.501603
8535410c8ebbea8fb51fba1d44a3fdf3092fb5af
161
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_flexbox_1/test_flexbox_stf_table_cell.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestFlexbox_StfTableCell(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_stf-table-cell'))
26.833333
77
0.807453
122
0.757764
0
0
0
0
0
0
24
0.149068
8539abd165125b9d66931bb7fd6e71c602de1c9e
346
py
Python
pages/middleware.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
6
2015-04-05T01:28:23.000Z
2022-02-06T17:29:47.000Z
pages/middleware.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-01-05T23:07:10.000Z
2022-03-30T17:52:45.000Z
pages/middleware.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-02-06T17:29:53.000Z
2022-02-26T17:23:09.000Z
''' Created on Jun 4, 2014 @author: benjamin ''' from pages.models import Page class PagesMiddleware(object): def process_template_response(self, request, response): ''' add pages to response context ''' response.context_data['page_list'] = Page.objects.filter(activated=True).order_by('orderid'...
21.625
100
0.699422
264
0.763006
0
0
0
0
0
0
106
0.306358
8539ad589810749d569e8c96666ae5bd84a052e5
2,571
py
Python
nb2blog.py
rowanc1/nb2blog
1c625a2727124898c4f3d9c9742feb268c554ebd
[ "MIT" ]
null
null
null
nb2blog.py
rowanc1/nb2blog
1c625a2727124898c4f3d9c9742feb268c554ebd
[ "MIT" ]
null
null
null
nb2blog.py
rowanc1/nb2blog
1c625a2727124898c4f3d9c9742feb268c554ebd
[ "MIT" ]
null
null
null
#!/usr/local/bin/python import requests, argparse, p3c, os, json, subprocess, keyring def main(): parser = argparse.ArgumentParser(description='Upload a notebook to a gist and 3point/SimPEG blog.') parser.add_argument('notebook', type=str, help='The file name of the notebook.') parser.add_argument('-m', t...
34.743243
127
0.596266
0
0
0
0
0
0
0
0
1,023
0.3979
853a7d0f953c95bc8bdbaefb204194d26a724aed
970
py
Python
tests/test_main.py
JeanmarieAlder/bollards-api
39c82a53575ecd2fbd7f98864512a5494b800836
[ "MIT" ]
1
2021-07-26T06:40:04.000Z
2021-07-26T06:40:04.000Z
tests/test_main.py
JeanmarieAlder/bollards-api
39c82a53575ecd2fbd7f98864512a5494b800836
[ "MIT" ]
null
null
null
tests/test_main.py
JeanmarieAlder/bollards-api
39c82a53575ecd2fbd7f98864512a5494b800836
[ "MIT" ]
null
null
null
from bollards_api.main.forms import ContactForm def test_home_page(client): """Test that home page displays correctly""" rv = client.get('/') assert b'<h1 class="text-center">Welcome to Bollards API</h1>' in rv.data assert b'<p class="card-text">Discover all bollards between Vaud, Switzerland and Fra...
27.714286
109
0.670103
0
0
0
0
0
0
0
0
363
0.374227
853bd8589a69bf83feb568fd0e023ea150961b83
11,382
py
Python
src/data_scraping.py
othmanefc/ttfl_fantasy
6b5d4316553a5d01114218fcfbe26588de499ead
[ "CC0-1.0" ]
null
null
null
src/data_scraping.py
othmanefc/ttfl_fantasy
6b5d4316553a5d01114218fcfbe26588de499ead
[ "CC0-1.0" ]
6
2020-01-28T23:09:28.000Z
2022-02-10T00:28:14.000Z
src/data_scraping.py
othmanefc/ttfl_fantasy
6b5d4316553a5d01114218fcfbe26588de499ead
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from typing import List, Dict, Any, Union, Optional, Callable, Sequence from bs4 import BeautifulSoup, Comment, element import pandas as pd import re from urllib.request import urlopen import os import datetime from tqdm import tqdm as tqdm_notebook import time from src.c...
41.540146
79
0.511949
6,907
0.606835
0
0
4,922
0.432437
0
0
1,618
0.142154
853d84e2e9e82207867461c37d8d12080faf1569
766
py
Python
src/DataGenerator.py
nikhil-garg/CartPoleSimulation
fd778327af5fe764248b68db53a456a77e903656
[ "MIT" ]
null
null
null
src/DataGenerator.py
nikhil-garg/CartPoleSimulation
fd778327af5fe764248b68db53a456a77e903656
[ "MIT" ]
null
null
null
src/DataGenerator.py
nikhil-garg/CartPoleSimulation
fd778327af5fe764248b68db53a456a77e903656
[ "MIT" ]
null
null
null
from src.CartClass import * from src.utilis import * from src.utilis import * from tqdm import tqdm csv = 'data_rnn' number_of_experiments = 10 length_of_experiment = 1e3 dt_main_simulation = dt_main_simulation_globals track_relative_complexity = 0.5 # randomly placed points/s track_complexity = int(dt_main_simulati...
30.64
131
0.678851
0
0
0
0
0
0
0
0
76
0.099217
854189ca67276f7eea81393038f259f4f1505403
4,970
py
Python
trojsten/events/migrations/0001_initial.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
5
2018-04-22T22:44:02.000Z
2021-04-26T20:44:44.000Z
trojsten/events/migrations/0001_initial.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
250
2018-04-24T12:04:11.000Z
2022-03-09T06:56:47.000Z
trojsten/events/migrations/0001_initial.py
MvonK/web
b701a6ea8fb6f0bdfb720e66d0a430db13db8bff
[ "MIT" ]
8
2019-04-28T11:33:03.000Z
2022-02-26T13:30:36.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [] operations = [ migrations.CreateModel( name="Event", fields=[ ( "id", models.AutoField( ...
37.368421
123
0.423742
4,902
0.986318
0
0
0
0
0
0
1,049
0.211066
85423a2d8bf70f44a96088e677ba0a04dd9e70d8
111
py
Python
common/code/snippets/py/arr_of_chunks.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
4
2020-04-07T14:45:02.000Z
2021-12-28T22:43:16.000Z
common/code/snippets/py/arr_of_chunks.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
null
null
null
common/code/snippets/py/arr_of_chunks.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
2
2020-04-08T03:12:06.000Z
2021-03-04T20:33:03.000Z
#!/usr/bin/env python3 n = 2 l = "foo" chunks = [l[i - n : i] for i in range(n, len(l) + n, n)] print(chunks)
15.857143
56
0.54955
0
0
0
0
0
0
0
0
27
0.243243
854307b441b9f6e3e18268c1d5065eddb624b4e1
545
py
Python
setup.py
pandapan0021/SHTTPServer_plus.py
c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b
[ "MIT" ]
null
null
null
setup.py
pandapan0021/SHTTPServer_plus.py
c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b
[ "MIT" ]
null
null
null
setup.py
pandapan0021/SHTTPServer_plus.py
c7c0fbe1a0a0ecc655d128cf61a49ea0b35bb32b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A setuptools based setup module. -------------------------------------------------------- See: http://packaging.python.org/en/latest/distributing.html http://github.com/pypa/sampleproject ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
23.695652
60
0.46055
0
0
0
0
0
0
0
0
454
0.833028
85440bc2c3a337f01c193e1d5db700e9605da53f
1,128
py
Python
lion - white.py
Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques
126690319297a5ed7df99ff47797980cc525ecf3
[ "MIT" ]
1
2019-10-27T13:03:05.000Z
2019-10-27T13:03:05.000Z
lion - white.py
Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques
126690319297a5ed7df99ff47797980cc525ecf3
[ "MIT" ]
null
null
null
lion - white.py
Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques
126690319297a5ed7df99ff47797980cc525ecf3
[ "MIT" ]
1
2021-12-17T06:01:52.000Z
2021-12-17T06:01:52.000Z
# import opencv import numpy as np import cv2 # Read image src = cv2.imread("exercise_images/lion.jpg",0) # Set threshold and maxValue thresh = 25 thresh3 = 255 thresh4 = 205 thresh5 = 105 thresh2 = 155 maxValue = 255 # Basic threshold example th, dst = cv2.threshold(src, thresh, maxValue, cv2.T...
28.923077
70
0.711879
0
0
0
0
0
0
0
0
341
0.302305
854591a05898d20509fd9ed5f1b49eb9ada02c6f
3,185
py
Python
gallery/tests.py
melissa-koi/PersonalGallery
0fed4a60a754d04f169a976403fb2bde6425ae59
[ "MIT" ]
null
null
null
gallery/tests.py
melissa-koi/PersonalGallery
0fed4a60a754d04f169a976403fb2bde6425ae59
[ "MIT" ]
null
null
null
gallery/tests.py
melissa-koi/PersonalGallery
0fed4a60a754d04f169a976403fb2bde6425ae59
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Image, Category, Location # Create your tests here. class CategoryTest(TestCase): # set up method def setUp(self): self.new_category = Category(name='newCategory') # tear down method def tearDown(self): Category.objects.all().delet...
30.333333
178
0.668132
3,070
0.963893
0
0
0
0
0
0
634
0.199058
8545d557cf7ae6b6369e7d408bec5095c2c77b1b
2,167
py
Python
examples/mxnet/export.py
mitaki28/onnx-chainer
845aa6c168d912ce044183c6dff6f21ce498d17c
[ "MIT" ]
null
null
null
examples/mxnet/export.py
mitaki28/onnx-chainer
845aa6c168d912ce044183c6dff6f21ce498d17c
[ "MIT" ]
1
2018-09-21T08:11:43.000Z
2018-09-21T08:11:43.000Z
examples/mxnet/export.py
mitaki28/onnx-chainer
845aa6c168d912ce044183c6dff6f21ce498d17c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import numpy as np import chainer import chainer.functions as F import chainercv.links as C import mxnet import onnx_chainer def save_as_onnx_then_import_from_mxnet(model, fn): # Prepare an input tensor x = np.random.rand(1, 3, 224, 224).asty...
28.893333
87
0.693124
0
0
0
0
0
0
0
0
545
0.2515
8545f8abe40c339f00fc63341382c5d42092fb16
982
py
Python
Otherfiles/notebook_check.py
lewiuberg/pycm
50fe8f55e073d438fadd0e27cc02090cd8361501
[ "MIT" ]
1,266
2018-01-22T20:54:00.000Z
2022-03-31T12:41:53.000Z
Otherfiles/notebook_check.py
lewiuberg/pycm
50fe8f55e073d438fadd0e27cc02090cd8361501
[ "MIT" ]
375
2018-02-19T16:06:24.000Z
2022-03-17T16:27:48.000Z
Otherfiles/notebook_check.py
lewiuberg/pycm
50fe8f55e073d438fadd0e27cc02090cd8361501
[ "MIT" ]
110
2018-01-22T23:38:59.000Z
2022-03-23T10:08:30.000Z
# -*- coding: utf-8 -*- """Notebook-check script.""" import os import nbformat from nbconvert.preprocessors import ExecutePreprocessor from art import tprint NOTEBOOKS_LIST = [ "Document", "Example1", "Example2", "Example3", "Example4", "Example5", "Example6", "Example7", "Example8"...
28.882353
69
0.607943
0
0
0
0
0
0
0
0
291
0.296334
8546f1c8d609306bdae939b66f98fe07f0ef570a
2,315
py
Python
src/eventsHandler/on_message/moderation/mute/revoke_mute.py
gastbob40/discord_brawl_bot
90ee7ef6492b5e4272a8baa42fd97f8369b07864
[ "MIT" ]
null
null
null
src/eventsHandler/on_message/moderation/mute/revoke_mute.py
gastbob40/discord_brawl_bot
90ee7ef6492b5e4272a8baa42fd97f8369b07864
[ "MIT" ]
null
null
null
src/eventsHandler/on_message/moderation/mute/revoke_mute.py
gastbob40/discord_brawl_bot
90ee7ef6492b5e4272a8baa42fd97f8369b07864
[ "MIT" ]
null
null
null
from typing import List import discord import yaml from src.models.models import Mute, session from src.utils.embeds_manager import EmbedsManager from src.utils.permissions_manager import PermissionsManager async def revoke_mute(client: discord.Client, message: discord.Message, args: List[str]): with open('run/c...
30.866667
89
0.597408
0
0
0
0
0
0
2,115
0.909286
389
0.16724
854748ec64dba84be69bb1448db0b45736a94d36
489
py
Python
modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py
tonioo/modoboa-public-api
6f8f31348488e15fe935cacc6ee4655d56087fa1
[ "MIT" ]
2
2017-08-31T14:59:40.000Z
2019-03-02T21:39:26.000Z
modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py
tonioo/modoboa-public-api
6f8f31348488e15fe935cacc6ee4655d56087fa1
[ "MIT" ]
null
null
null
modoboa_public_api/migrations/0005_modoboainstance_domain_alias_counter.py
tonioo/modoboa-public-api
6f8f31348488e15fe935cacc6ee4655d56087fa1
[ "MIT" ]
2
2017-07-24T22:42:01.000Z
2018-10-26T05:05:50.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-15 18:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('modoboa_public_api', '0004_auto_20160614_1717'), ] operations = [ migrations...
23.285714
58
0.646217
332
0.678937
0
0
0
0
0
0
154
0.314928
854863e9c50296993f6a388b3257fb1d9813ee80
1,398
py
Python
QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py
PenghuiCheng/QUANTAXIS
b8d81ed592d7008151dc0bbbd5d1030e8af73067
[ "MIT" ]
1
2020-01-31T05:23:21.000Z
2020-01-31T05:23:21.000Z
QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py
PenghuiCheng/QUANTAXIS
b8d81ed592d7008151dc0bbbd5d1030e8af73067
[ "MIT" ]
null
null
null
QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py
PenghuiCheng/QUANTAXIS
b8d81ed592d7008151dc0bbbd5d1030e8af73067
[ "MIT" ]
null
null
null
import QUANTAXIS as QA from numpy import * from scipy.signal import savgol_filter import numpy as np import matplotlib.pyplot as plt from QUANTAXIS.QAIndicator.talib_numpy import * import mpl_finance as mpf import matplotlib.dates as mdates def smooth_demo(): data2 = QA.QA_fetch_crypto_asset_day_adv(['huobi'], ...
33.285714
180
0.679542
0
0
0
0
0
0
0
0
259
0.185265
8548e030cb94201bb3f56fd501049ba22c2f09df
1,626
py
Python
Src/Server/handlers.py
HamishHamiltonSmith/TKNET-Remote-file-transfer
2fc394281463482c5e6039cead9dc052cc09eb94
[ "Apache-2.0" ]
1
2021-12-04T16:57:19.000Z
2021-12-04T16:57:19.000Z
Src/Server/handlers.py
HamishHamiltonSmith/TKNET-Remote-file-transfer
2fc394281463482c5e6039cead9dc052cc09eb94
[ "Apache-2.0" ]
null
null
null
Src/Server/handlers.py
HamishHamiltonSmith/TKNET-Remote-file-transfer
2fc394281463482c5e6039cead9dc052cc09eb94
[ "Apache-2.0" ]
null
null
null
import time import os from datetime import datetime import breakpoint def log(msg): curr_date = datetime.now() l = open('/usr/share/Tknet/Server/tknet.log','a') l.write(f'\n[{curr_date}]: {msg}') l.close() def file_transfer_handle(c,x,d_name,address): c.send('FILEMODE'.encode()) c.send(f'DIRAD...
31.269231
80
0.590406
0
0
0
0
0
0
0
0
680
0.418204
85495a86fbc5eda9a5807aaf00f10f29d51d67f3
5,297
py
Python
SequenceModel/seq_model.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
SequenceModel/seq_model.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
SequenceModel/seq_model.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim class SequenceModel(nn.Module): def __init__(self, model_num, feature_dim, feature_num, lstm_layers, hidden, drop_out, Add_position): super(SequenceModel, self).__init__() self.feature_n...
47.720721
150
0.473853
4,965
0.937323
0
0
0
0
0
0
510
0.096281
854a55982872822a46d98df1de533deb387f7009
179
py
Python
musicbrainz/world/admin.py
tourdownunder/musicbrainz-django
bd8f8767ca0144dc10fd9ba2b59beb9de9788640
[ "BSD-3-Clause" ]
1
2020-09-19T11:00:31.000Z
2020-09-19T11:00:31.000Z
musicbrainz/world/admin.py
tourdownunder/musicbrainz-django
bd8f8767ca0144dc10fd9ba2b59beb9de9788640
[ "BSD-3-Clause" ]
8
2019-12-30T14:30:13.000Z
2021-09-22T18:03:10.000Z
musicbrainz/world/admin.py
tourdownunder/musicbrainz-django
bd8f8767ca0144dc10fd9ba2b59beb9de9788640
[ "BSD-3-Clause" ]
1
2021-10-03T10:06:29.000Z
2021-10-03T10:06:29.000Z
from django.contrib.gis import admin from .models import WorldBorder # admin.site.register(WorldBorder, admin.GeoModelAdmin) admin.site.register(WorldBorder, admin.OSMGeoAdmin)
25.571429
55
0.826816
0
0
0
0
0
0
0
0
55
0.307263
854a9ce756635dcf347dd232a5a00548682056f7
1,597
py
Python
examples/task_hello.py
agarwalrounak/qmt
6fb8ee55fb9d544b72f6dc0c275000914e03af06
[ "MIT" ]
1
2018-09-30T00:45:53.000Z
2018-09-30T00:45:53.000Z
examples/task_hello.py
DalavanCloud/qmt
ea5d234012a1d1d39f34834ac9f2007c2a6d4852
[ "MIT" ]
null
null
null
examples/task_hello.py
DalavanCloud/qmt
ea5d234012a1d1d39f34834ac9f2007c2a6d4852
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from qmt.tasks import Task, SweepManager sweep = SweepManager.create_empty_sweep() # our dask sweep manager class HelloTask(Task): def __init__(self): super().__init__() # required init @staticmethod def _solve_instance(inputs, options): # requi...
28.017544
74
0.670632
1,077
0.674389
0
0
574
0.359424
0
0
364
0.227927
854b394bb67bd9f05c7137d19f721026d26e8cfb
1,107
py
Python
eventrack/settings/prod.py
FedorSelitsky/eventrack
54869ab0eaba56d266a3d9c0c56c601039905255
[ "MIT" ]
5
2017-12-14T09:04:42.000Z
2018-06-01T20:09:02.000Z
eventrack/settings/prod.py
FedorSelitsky/eventrack
54869ab0eaba56d266a3d9c0c56c601039905255
[ "MIT" ]
11
2017-11-08T10:35:08.000Z
2018-10-11T19:37:36.000Z
eventrack/settings/prod.py
FedorSelitsky/eventrack
54869ab0eaba56d266a3d9c0c56c601039905255
[ "MIT" ]
null
null
null
import dj_database_url from .base import * # NOQA # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False # SECURITY WARNING: keep the secret key used in production secret! if 'CFG_SECRET_KEY' in os.environ: SECRET_KEY = os.environ['CFG_SECRET_KEY'] if 'CFG_ALLOWED_HOSTS' in os.environ...
27
94
0.750678
0
0
0
0
0
0
0
0
692
0.625113
854bf3a30cf643b88428f0e25a363a7a8a2a0940
6,708
py
Python
pysparnn/cluster_selection.py
kchaliki/pysparnn
426b9e660fdd8c32bb6af4a7f833fb34a3d070ef
[ "BSD-3-Clause" ]
null
null
null
pysparnn/cluster_selection.py
kchaliki/pysparnn
426b9e660fdd8c32bb6af4a7f833fb34a3d070ef
[ "BSD-3-Clause" ]
null
null
null
pysparnn/cluster_selection.py
kchaliki/pysparnn
426b9e660fdd8c32bb6af4a7f833fb34a3d070ef
[ "BSD-3-Clause" ]
null
null
null
import random as _random import numpy as _np import collections as _collections from abc import ABC, abstractmethod from sklearn.cluster import DBSCAN def _k_best(tuple_list, k): """For a list of tuples [(distance, value), ...] - Get the k-best tuples by distance. Args: tuple_list: List of tupl...
42.726115
100
0.672481
6,191
0.922928
0
0
69
0.010286
0
0
2,834
0.422481