hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acfc9bc553f33ab7c4ec3f6504bde18eeb37b64d
876
py
Python
nvtabular/ops/internal/__init__.py
bschifferer/NVTabular
5f8c040b6a42b366d2ac70e8c5087729cdeb95cf
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/internal/__init__.py
bschifferer/NVTabular
5f8c040b6a42b366d2ac70e8c5087729cdeb95cf
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/internal/__init__.py
bschifferer/NVTabular
5f8c040b6a42b366d2ac70e8c5087729cdeb95cf
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.5
78
0.784247
acfc9bd29feae2d0863a2b5ed5ec99356a863117
11,808
py
Python
tests/test_ignite.py
rjpower/tensorflow-io
39aa0b46cfaa403121fdddbd491a03d2f3190a87
[ "Apache-2.0" ]
null
null
null
tests/test_ignite.py
rjpower/tensorflow-io
39aa0b46cfaa403121fdddbd491a03d2f3190a87
[ "Apache-2.0" ]
null
null
null
tests/test_ignite.py
rjpower/tensorflow-io
39aa0b46cfaa403121fdddbd491a03d2f3190a87
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
33.931034
95
0.676152
acfc9ce74e960e2198d732db5e764b1a92093582
1,674
py
Python
app/main/views.py
Kennedy128/kennedy-blog
835b911f1eea7f24fc0db9e3c1250a81ddfa488e
[ "MIT", "Unlicense" ]
null
null
null
app/main/views.py
Kennedy128/kennedy-blog
835b911f1eea7f24fc0db9e3c1250a81ddfa488e
[ "MIT", "Unlicense" ]
null
null
null
app/main/views.py
Kennedy128/kennedy-blog
835b911f1eea7f24fc0db9e3c1250a81ddfa488e
[ "MIT", "Unlicense" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort from . import main from ..models import User,Comment,Quote,Blog,Subscriber from .forms import CommentForm,NewBlog from .. import db from flask_login import login_required,current_user from ..requests import get_quote from ..email import subscribe_message...
28.862069
99
0.721625
acfc9d1871fd6a9e7ab8d9326441c808bb7adc76
905
py
Python
calcPostsPerUserPerWeek.py
fgolemo/SocWeb-Reddit-Crawler
bb115ca28b5354bdfc36ff94ee9f51793fa8b106
[ "MIT" ]
1
2016-07-26T14:50:49.000Z
2016-07-26T14:50:49.000Z
calcPostsPerUserPerWeek.py
fgolemo/SocWeb-Reddit-Crawler
bb115ca28b5354bdfc36ff94ee9f51793fa8b106
[ "MIT" ]
null
null
null
calcPostsPerUserPerWeek.py
fgolemo/SocWeb-Reddit-Crawler
bb115ca28b5354bdfc36ff94ee9f51793fa8b106
[ "MIT" ]
null
null
null
import datetime import os import math import cPickle as pickle user_data = [] with open("submissions-0-8000.csv") as f: for line in f: user_data_line = [] segments = line.split(",") join_date = datetime.datetime.fromtimestamp(int(segments[1])) user_data_line.append(int(segments[1...
26.617647
69
0.639779
acfc9d27624f1b8c54c851228f818f72d4a0b833
1,885
py
Python
vistrails/gui/extras/core/db/__init__.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
1
2015-05-11T16:46:49.000Z
2015-05-11T16:46:49.000Z
vistrails/gui/extras/core/db/__init__.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
vistrails/gui/extras/core/db/__init__.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
52.361111
79
0.689125
acfc9d86e1537f809bae9523284189eda6991691
1,583
py
Python
test/test_web_link.py
jensenbox/python-jamf
85213085b1064a00375a7aa7df5e33c19f5178eb
[ "RSA-MD" ]
1
2021-04-20T15:28:57.000Z
2021-04-20T15:28:57.000Z
test/test_web_link.py
jensenbox/python-jamf
85213085b1064a00375a7aa7df5e33c19f5178eb
[ "RSA-MD" ]
null
null
null
test/test_web_link.py
jensenbox/python-jamf
85213085b1064a00375a7aa7df5e33c19f5178eb
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ Jamf Pro API ## Overview This is a sample Jamf Pro server which allows for usage without any authentication. The Jamf Pro environment which supports the Try it Out functionality does not run the current beta version of Jamf Pro, thus any newly added endpoints will result in an error and sh...
29.314815
342
0.664561
acfc9d87e895afeb2eab9df1a8c37e893791c200
1,838
py
Python
hylfm/datasets/dualview.py
kreshuklab/hylfm-net
9f1013640e40e998674b65176023367b1e978782
[ "MIT" ]
8
2020-11-13T05:46:59.000Z
2022-01-30T06:12:04.000Z
hylfm/datasets/dualview.py
kreshuklab/hylfm-net
9f1013640e40e998674b65176023367b1e978782
[ "MIT" ]
1
2020-11-13T08:29:23.000Z
2022-02-10T16:45:19.000Z
hylfm/datasets/dualview.py
kreshuklab/hylfm-net
9f1013640e40e998674b65176023367b1e978782
[ "MIT" ]
2
2020-10-30T11:02:42.000Z
2021-01-12T06:51:33.000Z
from hylfm.datasets import TensorInfo beads_right = TensorInfo( name="lf", root="GKRESHUK", location="LF_computed/LenseLeNet_Microscope/DualView_comparison_heart_movie/beads/2018-09-06_13.16.46/stack_2_channel_0/RC_rectified/*.tif", insert_singleton_axes_at=[0, 0], tag="dualbeads_right", ) beads_l...
37.510204
144
0.714363
acfc9db1c5f9e36ecbff43d461338f9a8928b3ea
2,163
py
Python
agent/tests/test_input/test_1/test_solarwinds.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
16
2019-04-03T08:31:54.000Z
2021-01-24T17:12:04.000Z
agent/tests/test_input/test_1/test_solarwinds.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
10
2020-01-20T14:59:06.000Z
2022-01-21T10:19:16.000Z
agent/tests/test_input/test_1/test_solarwinds.py
anodot/daria
d475899309f56cd85347be0f7001a0dd97dd197a
[ "Apache-2.0" ]
5
2021-01-08T19:23:03.000Z
2021-11-09T14:15:49.000Z
from datetime import datetime from ..test_zpipeline_base import TestInputBase from ...conftest import generate_input from agent import cli, source, pipeline class TestSolarwinds(TestInputBase): __test__ = True params = { 'test_create_source_with_file': [{'file_name': 'solarwinds_sources'}], 't...
41.596154
109
0.616274
acfc9ef5527be5dcf97e9485484dddcfa9f48ac7
33,724
py
Python
doc/integrations/yolo/train.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
552
2020-09-24T18:16:09.000Z
2022-03-25T06:21:55.000Z
doc/integrations/yolo/train.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
722
2020-09-24T19:48:44.000Z
2022-03-31T17:42:41.000Z
doc/integrations/yolo/train.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
442
2020-09-24T14:24:21.000Z
2022-03-25T10:40:16.000Z
import argparse import logging import math import os import random import time from copy import deepcopy from pathlib import Path from threading import Thread import numpy as np import torch.distributed as dist import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.optim.lr_sche...
53.786284
123
0.569565
acfc9ffbd78124f9bb143ee30d8e1138a0c20f50
16,536
py
Python
src/m4_wait_for_events.py
tabuyoah/14-WaitUntilEvent_WhileLoops
a4befd7d2bdc4af7ee4d348ac3b74483a1cf860b
[ "MIT" ]
null
null
null
src/m4_wait_for_events.py
tabuyoah/14-WaitUntilEvent_WhileLoops
a4befd7d2bdc4af7ee4d348ac3b74483a1cf860b
[ "MIT" ]
null
null
null
src/m4_wait_for_events.py
tabuyoah/14-WaitUntilEvent_WhileLoops
a4befd7d2bdc4af7ee4d348ac3b74483a1cf860b
[ "MIT" ]
null
null
null
""" This module lets you practice the WAIT-FOR-EVENT pattern. See your instructor for whether you should use: ------------------------------------------------------------------------------- The WHILE TRUE pattern: while True: ... if <event has occurred>: break ... -------------...
31.861272
79
0.523101
acfca09417552b2b8ba84851588f1ee67b85c024
1,338
py
Python
tests/test_main.py
michalisioak/translate-python
8117a9686075496cf3c019e8e76b73b5ccadd2a6
[ "MIT" ]
1
2020-12-20T23:15:02.000Z
2020-12-20T23:15:02.000Z
tests/test_main.py
michalisioak/translate-python
8117a9686075496cf3c019e8e76b73b5ccadd2a6
[ "MIT" ]
null
null
null
tests/test_main.py
michalisioak/translate-python
8117a9686075496cf3c019e8e76b73b5ccadd2a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import unicode_literals try: from unittest import mock except Exception: import mock from translate.main import main from .vcr_conf import vcr response_template = ( '\nTranslation: {}\n' '-------------------------\n' 'Translated by: MyMemory...
27.306122
73
0.686099
acfca0cb5e993c8c340edc31a1387136c91ac610
1,253
py
Python
2015/day14.py
tcbegley/advent-of-code
e293d06e9cd994b26c0d10619672a6d8d2d65377
[ "MIT" ]
6
2021-12-05T11:21:17.000Z
2021-12-07T03:04:24.000Z
2015/day14.py
tcbegley/advent-of-code
e293d06e9cd994b26c0d10619672a6d8d2d65377
[ "MIT" ]
null
null
null
2015/day14.py
tcbegley/advent-of-code
e293d06e9cd994b26c0d10619672a6d8d2d65377
[ "MIT" ]
null
null
null
import re import sys NUMBERS = re.compile(r"\d+") class Reindeer: def __init__(self, speed, time, rest): self.speed = speed self.time = time self.T = time + rest self.loc = 0 self.score = 0 def advance(self, i): if (i % self.T) < self.time: self.l...
20.540984
52
0.553871
acfca31fc559ccaf31aca6208b848d3d7a4f495f
51,103
py
Python
util/config/schema.py
ldelossa/quay
bd7252c536bcf8c49cca167d7c4b433489d36044
[ "Apache-2.0" ]
null
null
null
util/config/schema.py
ldelossa/quay
bd7252c536bcf8c49cca167d7c4b433489d36044
[ "Apache-2.0" ]
null
null
null
util/config/schema.py
ldelossa/quay
bd7252c536bcf8c49cca167d7c4b433489d36044
[ "Apache-2.0" ]
null
null
null
# INTERNAL_ONLY_PROPERTIES defines the properties in the config that, while settable, should # not be documented for external users. These will generally be used for internal test or only # given to customers when they have been briefed on the side effects of using them. INTERNAL_ONLY_PROPERTIES = { "__module__", ...
44.016365
172
0.513179
acfca358d63cb04f0e997bb0987e4620b73f860d
2,193
py
Python
tests/test_resize_scipy.py
shuohan/resize
8b1f9191d398504c082723623ef9131412cd0710
[ "MIT" ]
null
null
null
tests/test_resize_scipy.py
shuohan/resize
8b1f9191d398504c082723623ef9131412cd0710
[ "MIT" ]
null
null
null
tests/test_resize_scipy.py
shuohan/resize
8b1f9191d398504c082723623ef9131412cd0710
[ "MIT" ]
1
2022-03-23T13:39:48.000Z
2022-03-23T13:39:48.000Z
#!/usr/bin/env python import numpy as np from resize.scipy import resize def test_scipy(): # Same FOV x1 = np.arange(6)[:, None, None] x2 = np.arange(7)[None, :, None] x3 = np.arange(5)[None, None, :] x = (x1 + x2 + x3).astype(float) dxyz = (1.5, 2, 0.3) y, coords = resize(x, dxyz, order...
36.55
85
0.465572
acfca379ed9cad84a42531894abecd7926bb6555
7,613
py
Python
modules/processing/procmemory.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
1
2021-06-22T05:33:08.000Z
2021-06-22T05:33:08.000Z
modules/processing/procmemory.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
modules/processing/procmemory.py
xuna123/Bold-Falcon
bef7dfc3103143bd51ca82838565877097fecc49
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import hashlib import logging import os import re import struct from lib.cuckoo.common.abstracts import P...
33.1
96
0.535663
acfca4ba8bfed505a973f1d64e2f8d42b825e03b
1,385
py
Python
src/task_manager_turtlesim_smach/missions/mission_cond.py
IronClimber/ros_task_manager
6edd69777eb2007072475f4f42ec76d89cc13d28
[ "BSD-2-Clause" ]
6
2019-12-06T14:47:53.000Z
2020-06-08T06:51:44.000Z
src/task_manager_turtlesim_smach/missions/mission_cond.py
IronClimber/ros_task_manager
6edd69777eb2007072475f4f42ec76d89cc13d28
[ "BSD-2-Clause" ]
1
2019-12-02T15:09:39.000Z
2019-12-02T15:09:39.000Z
src/task_manager_turtlesim_smach/missions/mission_cond.py
IronClimber/ros_task_manager
6edd69777eb2007072475f4f42ec76d89cc13d28
[ "BSD-2-Clause" ]
2
2020-02-02T08:06:24.000Z
2020-02-10T09:25:16.000Z
#!/usr/bin/python # ROS specific imports import roslib; roslib.load_manifest('task_manager_turtlesim') import rospy from math import * from task_manager_lib.TaskSmach import * rospy.init_node('task_client') mi = MissionStateMachine() wp = [ [1., 9., pi/2, 0, 0, 255], [9., 9., 0., 0, 255, 255], [9., 1., -pi/2,...
28.854167
90
0.637545
acfca4e1ed7b1885f4035e2ae7574ae6ecb089bc
16,824
py
Python
src/azure-cli/azure/cli/command_modules/backup/custom_help.py
wenjie1070116/azure-cli
edfaf8154d53475e35c497cd403962e2e2b74a28
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/backup/custom_help.py
wenjie1070116/azure-cli
edfaf8154d53475e35c497cd403962e2e2b74a28
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/backup/custom_help.py
wenjie1070116/azure-cli
edfaf8154d53475e35c497cd403962e2e2b74a28
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.410959
118
0.696505
acfca565b67f4221586ad2a819342aee78a8e9b5
779
py
Python
libexploit/payloads/validation.py
kkirsche/libexploit
d6e8dec9c09fde23d0ca4e1b3d6676573f89eef4
[ "BSD-2-Clause" ]
null
null
null
libexploit/payloads/validation.py
kkirsche/libexploit
d6e8dec9c09fde23d0ca4e1b3d6676573f89eef4
[ "BSD-2-Clause" ]
null
null
null
libexploit/payloads/validation.py
kkirsche/libexploit
d6e8dec9c09fde23d0ca4e1b3d6676573f89eef4
[ "BSD-2-Clause" ]
null
null
null
from sys import exit from libexploit.io.stdout import init_logger def __validate(payload, expected_len, err_msg): logger = init_logger() payload_len = len(payload) if payload_len != expected_len: logger.error(msg.format( p=payload_len, e=expected_len)) exit(1) def validate_p...
27.821429
71
0.679076
acfca5cc06dfaf8c24fe607d643cc44a3addd267
15,603
py
Python
locora/grid_solvent/spatial.py
wutobias/locora
07f907ea9d86a3607973f5861ca332a01added54
[ "MIT" ]
null
null
null
locora/grid_solvent/spatial.py
wutobias/locora
07f907ea9d86a3607973f5861ca332a01added54
[ "MIT" ]
null
null
null
locora/grid_solvent/spatial.py
wutobias/locora
07f907ea9d86a3607973f5861ca332a01added54
[ "MIT" ]
null
null
null
import numpy as np from locora.utils.constants import DEG2RAD, RAD2DEG ### Written by T. Wulsdorf, AG Klebe Marburg University ### 08/2016 class field(object): """ This is a class for operation on generic scalar fields. They are described in cartesian as well as in fractional space. That means...
31.206
123
0.579248
acfca671feed19c576f8ae324be3f60babc858f5
839
py
Python
views.py
gitter-badger/boyd_bot_messenger
1636e4373db5fac981903273ba196c3e45d8a0a5
[ "MIT" ]
null
null
null
views.py
gitter-badger/boyd_bot_messenger
1636e4373db5fac981903273ba196c3e45d8a0a5
[ "MIT" ]
null
null
null
views.py
gitter-badger/boyd_bot_messenger
1636e4373db5fac981903273ba196c3e45d8a0a5
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template from flask_wtf import FlaskForm from wtforms.validators import DataRequired from wtforms import StringField, PasswordField, SubmitField, HiddenField pages = Blueprint("pages", __name__, template_folder="templates") class RegisterForm(FlaskForm): reg_id = HiddenField(...
23.971429
72
0.743743
acfca7a0f9958283bd873b2b8b9e3e6b3cbc8d87
8,478
py
Python
setup.py
LEGEND-LX/utra-x-spahinx
bfd6255c9c950eb037169abc30020aa2f5c027b8
[ "BSD-2-Clause" ]
2
2021-09-17T15:08:20.000Z
2021-10-01T16:59:44.000Z
setup.py
LEGEND-LX/java
dface7d2950ceef744256eb74b168a8f25e551ab
[ "BSD-2-Clause" ]
1
2021-09-19T06:03:11.000Z
2021-09-19T06:03:29.000Z
setup.py
LEGEND-LX/java
dface7d2950ceef744256eb74b168a8f25e551ab
[ "BSD-2-Clause" ]
null
null
null
import os import sys from distutils import log from io import StringIO from setuptools import find_packages, setup import sphinx with open('README.rst') as f: long_desc = f.read() if sys.version_info < (3, 5): print('ERROR: Sphinx requires at least Python 3.5 to run.') sys.exit(1) install_requires = [ ...
33.509881
80
0.522293
acfca83ac6cd5ef23c4e8fa2f2b656018ee59441
1,448
py
Python
api/anubis/lms/forum.py
Racheltrq/Anubis
20eabe5651cee4ca5dc2f2b9bb531724aad1cf37
[ "MIT" ]
null
null
null
api/anubis/lms/forum.py
Racheltrq/Anubis
20eabe5651cee4ca5dc2f2b9bb531724aad1cf37
[ "MIT" ]
null
null
null
api/anubis/lms/forum.py
Racheltrq/Anubis
20eabe5651cee4ca5dc2f2b9bb531724aad1cf37
[ "MIT" ]
null
null
null
from typing import List from anubis.models import ( db, User, Course, InCourse, ForumPost, ForumCategory, ForumPostInCategory, ForumPostUpvote, ForumPostComment, ForumPostViewed, ) from anubis.utils.auth.user import current_user from anubis.utils.http import req_assert def veri...
27.846154
85
0.724448
acfca979dacd8bdda6ecd5367d32052116111451
544
py
Python
backend/blog_backend/manage.py
bluemonkey9241/django-django-react1
a2219b08f9d33452a82954b8a40c02621778f917
[ "MIT" ]
62
2019-03-19T02:03:16.000Z
2022-03-17T06:51:08.000Z
backend/blog_backend/manage.py
bluemonkey9241/django-django-react1
a2219b08f9d33452a82954b8a40c02621778f917
[ "MIT" ]
15
2020-07-20T08:55:52.000Z
2022-03-15T20:14:05.000Z
backend/blog_backend/manage.py
bluemonkey9241/django-django-react1
a2219b08f9d33452a82954b8a40c02621778f917
[ "MIT" ]
37
2018-08-17T15:55:50.000Z
2022-02-24T16:58:01.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog_backend.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django....
34
76
0.689338
acfcab52f8088182a6067ce7f8ce5e21df55115d
1,178
py
Python
PYTHON/FCFS.py
kunalmpandey/open-source-contribution
7ad65c40720cab0b0b80d466af9dc276cf235686
[ "MIT" ]
2
2022-03-10T17:37:24.000Z
2022-03-10T17:40:05.000Z
PYTHON/FCFS.py
kunalmpandey/open-source-contribution
7ad65c40720cab0b0b80d466af9dc276cf235686
[ "MIT" ]
null
null
null
PYTHON/FCFS.py
kunalmpandey/open-source-contribution
7ad65c40720cab0b0b80d466af9dc276cf235686
[ "MIT" ]
1
2021-12-29T16:13:52.000Z
2021-12-29T16:13:52.000Z
from prettytable import PrettyTable x = PrettyTable() pid = list(map(int, input("Enter process ids: ").split())) arrival = list(map(int, input("Enter arrival time: ").split())) burst = list(map(int, input("Enter the burst time: ").split())) for i in range(len(pid)-1): for j in range(i, len(pid)): ...
28.047619
80
0.55348
acfcacb1300baff6da3c5f91b3e800e9f145db79
295
py
Python
collectors/admin.py
zxyctn/PhenObs
c5ed2e2fdd6a1bee5085c1336dfba31bf9e6abdf
[ "BSD-3-Clause" ]
null
null
null
collectors/admin.py
zxyctn/PhenObs
c5ed2e2fdd6a1bee5085c1336dfba31bf9e6abdf
[ "BSD-3-Clause" ]
44
2021-10-19T15:59:57.000Z
2022-03-23T14:39:30.000Z
collectors/admin.py
zxyctn/PhenObs
c5ed2e2fdd6a1bee5085c1336dfba31bf9e6abdf
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Collector class CollectorAdmin(admin.ModelAdmin): list_display = ( "id", "user_id", "gardens", ) search_fields = ("id", "user_id") list_per_page = 25 admin.site.register(Collector, CollectorAdmin)
17.352941
46
0.650847
acfcace9fcf0f65600410a008570a11362682443
3,838
py
Python
src/pallas/csv.py
akamai/pallas
63aba588be3ab97b5e6183e4c560a45c82870cdc
[ "Apache-2.0" ]
7
2020-04-03T19:40:35.000Z
2022-01-03T17:28:58.000Z
src/pallas/csv.py
akamai/pallas
63aba588be3ab97b5e6183e4c560a45c82870cdc
[ "Apache-2.0" ]
1
2022-01-05T13:29:18.000Z
2022-01-05T13:29:18.000Z
src/pallas/csv.py
akamai/pallas
63aba588be3ab97b5e6183e4c560a45c82870cdc
[ "Apache-2.0" ]
1
2020-10-23T11:31:54.000Z
2020-10-23T11:31:54.000Z
# Copyright 2020 Akamai Technologies, 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...
28.857143
75
0.620375
acfcacf5ce9eba1e421ff59ec538f54d9d013c4d
2,388
py
Python
new/move.py
roboapex/nrc2021-fe-hexacore
a17e46c58fd9367084555eac86a6ba373003fc71
[ "MIT" ]
1
2021-07-16T07:30:43.000Z
2021-07-16T07:30:43.000Z
new/move.py
roboapex/nrc2021-fe-hexacore
a17e46c58fd9367084555eac86a6ba373003fc71
[ "MIT" ]
null
null
null
new/move.py
roboapex/nrc2021-fe-hexacore
a17e46c58fd9367084555eac86a6ba373003fc71
[ "MIT" ]
null
null
null
# Python Script # https://www.electronicshub.org/raspberry-pi-l298n-interface-tutorial-control-dc-motor-l298n-raspberry-pi/ # https://www.youtube.com/watch?v=2bganVdLg5Q import RPi.GPIO as GPIO from time import sleep in1 = 24 in2 = 23 in3 = 17 in4 = 27 en2 = 22 en1 = 25 temp1=1 GPIO.setmode(GPIO.BCM) GPIO....
21.908257
107
0.563233
acfcad1afbc4195575f3b1c885becc6f4c84380d
29,194
py
Python
code/network/network_creation_functions.py
JanaLasser/uni_SEIRX
9c4f16924ba78c85c7621b192f5c5f00ddd473b9
[ "MIT" ]
1
2021-12-05T23:58:12.000Z
2021-12-05T23:58:12.000Z
code/network/network_creation_functions.py
JanaLasser/uni_SEIRX
9c4f16924ba78c85c7621b192f5c5f00ddd473b9
[ "MIT" ]
null
null
null
code/network/network_creation_functions.py
JanaLasser/uni_SEIRX
9c4f16924ba78c85c7621b192f5c5f00ddd473b9
[ "MIT" ]
null
null
null
import networkx as nx import matplotlib.pyplot as plt import pandas as pd import numpy as np import datetime from os.path import join semester_start = '2019-10-01' semester_end = '2020-02-28' study_map = { 'Bachelorstudium' : 'bachelor', 'Masterstudium' ...
45.902516
94
0.57457
acfcadefa5ed73e64ba8e84392dfc7d731dab28b
830
py
Python
pyramid_nested_ner/training/optim.py
m-stoeckel/pyramid-nested-ner
ee169d3d84b4beeeecb3d5aeb5caa826166cce78
[ "MIT" ]
6
2020-11-15T09:17:36.000Z
2021-12-10T18:30:58.000Z
pyramid_nested_ner/training/optim.py
m-stoeckel/pyramid-nested-ner
ee169d3d84b4beeeecb3d5aeb5caa826166cce78
[ "MIT" ]
2
2021-03-31T01:06:43.000Z
2021-07-01T12:44:33.000Z
pyramid_nested_ner/training/optim.py
m-stoeckel/pyramid-nested-ner
ee169d3d84b4beeeecb3d5aeb5caa826166cce78
[ "MIT" ]
3
2021-04-05T18:58:01.000Z
2021-10-11T03:57:17.000Z
import torch def get_default_sgd_optim(params, lr=1e-2, momentum=0.9, inverse_time_lr_decay=True): """ Returns the default SGD optimizer used in the paper and the LR scheduler. :param params: :param lr: :param momentum: :param inverse_time_lr_decay: :return: """ def inverse_time_...
30.740741
102
0.7
acfcae4f80b115717657da2aa7d080b2c13b2eb9
291
py
Python
openapi_core/schema/schemas/types.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/types.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/types.py
gjo/openapi-core
cabe512fb043d3e95b93fbe7a20b8e2d095d7d99
[ "BSD-3-Clause" ]
null
null
null
import attr @attr.s(hash=True) class Contribution(object): src_prop_name = attr.ib() src_prop_attr = attr.ib(default=None) dest_prop_name = attr.ib(default=None) is_list = attr.ib(default=False) is_dict = attr.ib(default=False) dest_default = attr.ib(default=None)
24.25
42
0.704467
acfcaee8b87909916cf67310d5fa05ed5a3dbfe2
1,711
py
Python
revel/setup.py
oberhamsi/FrameworkBenchmarks
660a66d51a9aad10b43c0660208fb13c098121af
[ "BSD-3-Clause" ]
4
2015-01-22T02:13:03.000Z
2018-06-13T12:02:46.000Z
frameworks/Go/revel/setup.py
ratpack/FrameworkBenchmarks
81604309e46e382fe2ffb7970a87d728f20c8be6
[ "BSD-3-Clause" ]
null
null
null
frameworks/Go/revel/setup.py
ratpack/FrameworkBenchmarks
81604309e46e382fe2ffb7970a87d728f20c8be6
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import os import setup_util import time def start(args, logfile, errfile): setup_util.replace_text("revel/src/benchmark/conf/app.conf", "tcp\(.*:3306\)", "tcp(" + args.database_host + ":3306)") if os.name == 'nt': env = os.environ.copy() env["GOPATH"] = r"C:\FrameworkBenchmar...
47.527778
145
0.700175
acfcaf0c0de73746d078562c5f62ebdd3632243b
1,491
py
Python
polling_stations/apps/data_importers/management/commands/import_darlington.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/data_importers/management/commands/import_darlington.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/data_importers/management/commands/import_darlington.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
from django.contrib.gis.geos import Point from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "DAL" addresses_name = "2021-03-19T13:08:53.439791/darlington.gov.uk-1616156390000-.tsv" stations_name = "2021-03-19T1...
39.236842
86
0.665325
acfcaf31137290052c2e44ae4623b0d032b7a48a
687
py
Python
exercises/solution_02_14.py
tuomastik/spacy-course
bb7cba6aea221289cf078f36233813794c32f84c
[ "MIT" ]
4
2019-12-31T05:45:44.000Z
2021-04-20T23:20:03.000Z
exercises/solution_02_14.py
tuomastik/spacy-course
bb7cba6aea221289cf078f36233813794c32f84c
[ "MIT" ]
null
null
null
exercises/solution_02_14.py
tuomastik/spacy-course
bb7cba6aea221289cf078f36233813794c32f84c
[ "MIT" ]
2
2019-10-05T15:13:14.000Z
2021-06-23T18:36:39.000Z
import json from spacy.lang.en import English with open("exercises/countries.json") as f: COUNTRIES = json.loads(f.read()) nlp = English() doc = nlp("Czech Republic may help Slovakia protect its airspace") # Import the PhraseMatcher and initialize it from spacy.matcher import PhraseMatcher matcher = PhraseMatch...
29.869565
72
0.759825
acfcafa9a6c01cde5afc9d2ac749343f8f6e1b38
1,535
py
Python
Calendar.py
ValentinChareyre/adventofcode-2020
8b223ee4511dd4578e68f2adfe1c962185ef70d4
[ "MIT" ]
null
null
null
Calendar.py
ValentinChareyre/adventofcode-2020
8b223ee4511dd4578e68f2adfe1c962185ef70d4
[ "MIT" ]
null
null
null
Calendar.py
ValentinChareyre/adventofcode-2020
8b223ee4511dd4578e68f2adfe1c962185ef70d4
[ "MIT" ]
null
null
null
import os import glob from os import system, name from typing import List def clear(): if name == 'nt': # windows _ = system('cls') else: # for mac and linux(here, os.name is 'posix') _ = system('clear') def get_calendar_directory() -> str: calendar_file:str = os.path.realpath(__file_...
34.886364
99
0.624756
acfcb03ed9d3f34baf8d7528798db7a965f5a173
6,341
py
Python
test/functional/combine_logs.py
Bandexcoin-Project/bandexcoin
6d1a579479db00c8217c303c5bde594b4a5c9589
[ "MIT" ]
1
2021-11-24T20:24:36.000Z
2021-11-24T20:24:36.000Z
test/functional/combine_logs.py
Bandexcoin-Project/bandexcoin
6d1a579479db00c8217c303c5bde594b4a5c9589
[ "MIT" ]
1
2021-08-07T16:26:24.000Z
2021-08-07T17:05:20.000Z
test/functional/combine_logs.py
Bandexcoin-Project/bandexcoin
6d1a579479db00c8217c303c5bde594b4a5c9589
[ "MIT" ]
1
2021-08-08T14:15:42.000Z
2021-08-08T14:15:42.000Z
#!/usr/bin/env python3 """Combine logs from multiple bitcoin nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile. If no argument is provided, the most recent test directory will be used.""" import argparse from collection...
39.385093
196
0.615045
acfcb0477ce16aaf5ed7e281433e1832d951c9cf
7,398
py
Python
tests/ut/python/dataset/test_random_invert.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-03-30T03:43:29.000Z
2022-03-30T03:43:29.000Z
tests/ut/python/dataset/test_random_invert.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_random_invert.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# 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 applicable law or agreed to...
37.363636
120
0.667883
acfcb079f2c0eb8898a1ddd5ccfa904ce09393f9
12,200
py
Python
api/chalice-api/tests.py
plugblockchain/explorer
7e550e36249b1aee7b3ffc91b5b8c2bafe343508
[ "Apache-2.0" ]
2
2021-03-25T05:29:01.000Z
2022-02-04T06:19:39.000Z
api/chalice-api/tests.py
plugblockchain/explorer
7e550e36249b1aee7b3ffc91b5b8c2bafe343508
[ "Apache-2.0" ]
16
2020-09-06T15:59:20.000Z
2022-02-12T17:42:49.000Z
api/chalice-api/tests.py
plugblockchain/explorer
7e550e36249b1aee7b3ffc91b5b8c2bafe343508
[ "Apache-2.0" ]
1
2020-12-23T20:37:25.000Z
2020-12-23T20:37:25.000Z
import decimal import json import unittest import chalice import app class TestApp(unittest.TestCase): def test_debug(self): # Debug disabled if omitted self.assertFalse(app._is_debug()) self.assertFalse(app._is_debug(debug=None)) self.assertTrue(app._is_debug("True")) se...
28.045977
85
0.528197
acfcb0b9f4c57f0bc9f8f8590f0340143eb76de4
1,940
py
Python
docs/python/stack_instructions.py
Voldemort373/Notes-and-Reference
796885e315e9c349ff1cb37760abc56327547140
[ "CC-BY-4.0", "CC0-1.0" ]
30
2018-11-12T09:03:45.000Z
2021-12-09T02:20:08.000Z
docs/python/stack_instructions.py
Voldemort373/Notes-and-Reference
796885e315e9c349ff1cb37760abc56327547140
[ "CC-BY-4.0", "CC0-1.0" ]
36
2018-11-11T21:32:31.000Z
2019-02-02T16:18:11.000Z
docs/python/stack_instructions.py
Voldemort373/Notes-and-Reference
796885e315e9c349ff1cb37760abc56327547140
[ "CC-BY-4.0", "CC0-1.0" ]
8
2018-11-14T17:09:21.000Z
2020-05-28T16:18:12.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018, Silvio Peroni <essepuntato@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 I...
38.039216
84
0.735567
acfcb3b4eed8749555c6a68f81a13da6a446885a
7,821
py
Python
fedcloudclient/checkin.py
MartinBobak/fedcloudclient
54d6b4be5f3a6bfb13aaa8df799fda000649d48a
[ "MIT" ]
null
null
null
fedcloudclient/checkin.py
MartinBobak/fedcloudclient
54d6b4be5f3a6bfb13aaa8df799fda000649d48a
[ "MIT" ]
null
null
null
fedcloudclient/checkin.py
MartinBobak/fedcloudclient
54d6b4be5f3a6bfb13aaa8df799fda000649d48a
[ "MIT" ]
null
null
null
""" Implementation of "fedcloud token" commands for interactions with EGI Check-in and access tokens """ import re import sys import time from datetime import datetime import click import jwt import liboidcagent as agent import requests from fedcloudclient.decorators import ( oidc_access_token_params, oidc_p...
28.133094
88
0.639816
acfcb5e32a383e781d119e90cc0657aa2194d6b3
673
py
Python
Chapter 13/hello_world2.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
35
2019-05-03T00:30:31.000Z
2022-01-20T06:57:25.000Z
Chapter 13/hello_world2.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
null
null
null
Chapter 13/hello_world2.py
nescience8/starting-out-with-python-global-4th-edition
c16f93b7cbb4c7ae7b57653a7190bf192fe6b472
[ "MIT" ]
22
2020-05-13T21:20:02.000Z
2021-12-21T08:35:59.000Z
# This program displays two labels with text. import tkinter class MyGUI: def __init__(self): # Create the main window widget. self.main_window = tkinter.Tk() # Create two Label widget. self.label1 = tkinter.Label(self.main_window, \ text='Hello...
25.884615
56
0.580981
acfcb5fa170f60a2d085e19b0d780459820cdd8f
1,147
py
Python
learning_log/urls.py
9527A/learning_log_django
d4780ae82b3e3e72ab2f6d9e26364b8ddc2a8706
[ "MIT" ]
1
2019-06-10T11:37:48.000Z
2019-06-10T11:37:48.000Z
learning_log/urls.py
9527A/learning_log_django
d4780ae82b3e3e72ab2f6d9e26364b8ddc2a8706
[ "MIT" ]
null
null
null
learning_log/urls.py
9527A/learning_log_django
d4780ae82b3e3e72ab2f6d9e26364b8ddc2a8706
[ "MIT" ]
null
null
null
"""learning_log URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
40.964286
129
0.709677
acfcb60f92fb82d806edd4ee422c352c47b9968c
7,610
py
Python
python/cucim/src/cucim/skimage/color/tests/test_colorlabel.py
aasthajh/cucim
a95cc5c4ab25beffeac42d642dea8cb1bbf21408
[ "Apache-2.0" ]
131
2021-04-09T19:02:10.000Z
2022-03-25T08:49:11.000Z
python/cucim/src/cucim/skimage/color/tests/test_colorlabel.py
aasthajh/cucim
a95cc5c4ab25beffeac42d642dea8cb1bbf21408
[ "Apache-2.0" ]
222
2021-04-12T07:15:14.000Z
2022-03-31T20:01:01.000Z
python/cucim/src/cucim/skimage/color/tests/test_colorlabel.py
aasthajh/cucim
a95cc5c4ab25beffeac42d642dea8cb1bbf21408
[ "Apache-2.0" ]
34
2021-04-09T18:54:13.000Z
2022-03-29T12:59:26.000Z
import itertools import cupy as cp import numpy as np import pytest from cupy.testing import assert_array_almost_equal, assert_array_equal from cucim.skimage._shared.testing import assert_no_warnings from cucim.skimage.color.colorlabel import label2rgb def test_deprecation_warning(): image = cp.ones((3, 3)) ...
33.822222
80
0.579238
acfcb6e9a32e47bd6d4543bf2746e68857598624
2,334
py
Python
web/api/models/api_response_model.py
alexpotter1/vulndetect-ml
338fbf919b24520f9107a1604d1c8af48aadff76
[ "MIT" ]
1
2020-02-25T01:53:23.000Z
2020-02-25T01:53:23.000Z
web/api/models/api_response_model.py
alexpotter1/vulndetect-ml
338fbf919b24520f9107a1604d1c8af48aadff76
[ "MIT" ]
null
null
null
web/api/models/api_response_model.py
alexpotter1/vulndetect-ml
338fbf919b24520f9107a1604d1c8af48aadff76
[ "MIT" ]
1
2020-10-24T15:30:38.000Z
2020-10-24T15:30:38.000Z
STATUS_CODES = { 200: '200 OK', 201: '201 Created', 400: '400 Bad Request', 404: '404 Not Found', 500: '500 Internal Server Error', } class APIResponse(object): def __init__(self): self._statusCode: str = None self._message: str = None self._isVulnerable: bool = None ...
26.224719
64
0.639246
acfcb6fb0bdd6dc5bbb1a842c75ea481555b3427
5,430
py
Python
Lib/site-packages/hackedit/vendor/humanfriendly/sphinx.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/hackedit/vendor/humanfriendly/sphinx.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/hackedit/vendor/humanfriendly/sphinx.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# Human friendly input/output in Python. # # Author: Peter Odding <peter@peterodding.com> # Last Change: February 17, 2016 # URL: https://humanfriendly.readthedocs.org """ Customizations for and integration with the Sphinx_ documentation generator. The :mod:`humanfriendly.sphinx` module uses the `Sphinx extension API...
37.708333
97
0.712707
acfcb803241a02ecb8322eaf759b75c332d96ece
26,289
py
Python
mitmproxy/proxy/layers/http/_http2.py
nneonneo/mitmproxy
a201adebe174897c1c10e8d78028d44ea0b6fc92
[ "MIT" ]
null
null
null
mitmproxy/proxy/layers/http/_http2.py
nneonneo/mitmproxy
a201adebe174897c1c10e8d78028d44ea0b6fc92
[ "MIT" ]
null
null
null
mitmproxy/proxy/layers/http/_http2.py
nneonneo/mitmproxy
a201adebe174897c1c10e8d78028d44ea0b6fc92
[ "MIT" ]
null
null
null
import collections import time from collections.abc import Sequence from enum import Enum from typing import ClassVar, Optional, Union import h2.config import h2.connection import h2.errors import h2.events import h2.exceptions import h2.settings import h2.stream import h2.utilities from mitmproxy import http, versio...
41.662441
120
0.603066
acfcb9ac30d605f736c582456539db0a6ce553db
107
py
Python
tests/conftest.py
valentjedi/hackme
a61b02ea6a65cdcf907ec02a56541ea6851b04ea
[ "MIT" ]
5
2018-03-02T06:59:02.000Z
2021-02-02T13:07:39.000Z
tests/conftest.py
valignatev/hackme
a61b02ea6a65cdcf907ec02a56541ea6851b04ea
[ "MIT" ]
null
null
null
tests/conftest.py
valignatev/hackme
a61b02ea6a65cdcf907ec02a56541ea6851b04ea
[ "MIT" ]
null
null
null
import pytest from shoppy.app import app as shoppy_app @pytest.fixture def app(): return shoppy_app
11.888889
40
0.757009
acfcbc0cc09f69e9dcedd068b6d964ca0efd1cd3
3,728
py
Python
scripts/bioconductor/rootNodes.py
corneliusroemer/bioconda-recipes
e1eced9063e15f6a97ab2b8e42cf3e38af4c93ba
[ "MIT" ]
null
null
null
scripts/bioconductor/rootNodes.py
corneliusroemer/bioconda-recipes
e1eced9063e15f6a97ab2b8e42cf3e38af4c93ba
[ "MIT" ]
null
null
null
scripts/bioconductor/rootNodes.py
corneliusroemer/bioconda-recipes
e1eced9063e15f6a97ab2b8e42cf3e38af4c93ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import networkx as nx from datetime import datetime, timedelta import requests from bioconda_utils import utils, graph def getRepoData(ts): res = [] for subdir in ["linux-64", "noarch", "osx-64"]: r = requests.get(f"https://conda.anaconda.org/bioconda/{subdir}/rep...
47.794872
226
0.661212
acfcbc1226064977e4bd08981608d0db2918cc5a
4,059
py
Python
calendar_util/util.py
christiankuhl/todolist
a10316f8b24c33da7d0b386a4fda5b4a9c128cae
[ "MIT" ]
null
null
null
calendar_util/util.py
christiankuhl/todolist
a10316f8b24c33da7d0b386a4fda5b4a9c128cae
[ "MIT" ]
5
2020-06-05T17:35:16.000Z
2021-09-07T10:20:36.000Z
calendar_util/util.py
christiankuhl/todolist
a10316f8b24c33da7d0b386a4fda5b4a9c128cae
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from calendar_util.constants import * from calendar_util.models import Holidays from collections import defaultdict import datetime from math import ceil import calendar as cal cal.setfirstweekday(cal.MONDAY) def next_friday(date=None): if not date: ...
32.472
89
0.630944
acfcbc891a5e8dae71016722a43772e24295dd1c
25,037
py
Python
venv/Lib/site-packages/aniso8601/tests/test_duration.py
GabrielSilva2y3d/dev-api
39f67521e0509dd073a6e051c06aa533c821d681
[ "MIT" ]
9
2019-05-29T23:50:28.000Z
2021-01-29T20:51:05.000Z
venv/Lib/site-packages/aniso8601/tests/test_duration.py
GabrielSilva2y3d/dev-api
39f67521e0509dd073a6e051c06aa533c821d681
[ "MIT" ]
1
2021-06-02T03:57:18.000Z
2021-06-02T03:57:18.000Z
venv/Lib/site-packages/aniso8601/tests/test_duration.py
GabrielSilva2y3d/dev-api
39f67521e0509dd073a6e051c06aa533c821d681
[ "MIT" ]
3
2020-05-25T02:38:08.000Z
2021-01-20T06:23:06.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Brandon Nielsen # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import unittest import aniso8601 from aniso8601.exceptions import ISOFormatError, NegativeDurationError from ...
48.996086
104
0.477294
acfcbd24441982f326d475353e2d6214cb457640
1,155
py
Python
fsharp_token_builders.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
fsharp_token_builders.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
fsharp_token_builders.py
jfitz/code-stat
dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26
[ "MIT" ]
null
null
null
from codestat_token import Token from token_builders import ( TokenBuilder, EscapedStringTokenBuilder ) # token reader for single-character text literal (string) class FsharpCharTokenBuilder(EscapedStringTokenBuilder): @staticmethod def __escape_z__(): Token.__escape_z__() return 'Escape ?Z' def __...
24.0625
65
0.649351
acfcbd5fda902955a9eb6021890eb53b034fa478
405
py
Python
blender/arm/logicnode/value_random_color.py
DsmMatt/armory
3fa9321016f6e83b2c1009e5ce220566fb35011e
[ "Zlib" ]
1
2018-12-04T05:33:53.000Z
2018-12-04T05:33:53.000Z
blender/arm/logicnode/value_random_color.py
DsmMatt/armory
3fa9321016f6e83b2c1009e5ce220566fb35011e
[ "Zlib" ]
null
null
null
blender/arm/logicnode/value_random_color.py
DsmMatt/armory
3fa9321016f6e83b2c1009e5ce220566fb35011e
[ "Zlib" ]
null
null
null
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class RandomColorNode(Node, ArmLogicTreeNode): '''Random color node''' bl_idname = 'LNRandomColorNode' bl_label = 'Random (Color)' bl_icon = 'GAME' def init(self, context): self....
25.3125
52
0.71358
acfcbdb1107363f99b74f244e518d190be83d424
10,680
py
Python
daisy/tasks/ONT.py
tschoonj/cgat-daisy
f85a2c82ca04f352aad00660cfc14a9aa6773168
[ "MIT" ]
1
2020-06-29T14:39:42.000Z
2020-06-29T14:39:42.000Z
daisy/tasks/ONT.py
tschoonj/cgat-daisy
f85a2c82ca04f352aad00660cfc14a9aa6773168
[ "MIT" ]
1
2019-05-15T20:50:37.000Z
2019-05-15T20:50:37.000Z
daisy/tasks/ONT.py
tschoonj/cgat-daisy
f85a2c82ca04f352aad00660cfc14a9aa6773168
[ "MIT" ]
1
2021-11-11T13:22:56.000Z
2021-11-11T13:22:56.000Z
import re import os from .ToolRunner import ToolRunner from .CollateRunner import CollateRunner from .MetricRunner import MetricRunner import cgatcore.pipeline as P import cgatcore.iotools as IOTools import cgatcore.experiment as E from .VariantCallers import VariantCaller, get_reference from .Runner import resolve_...
31.597633
90
0.544288
acfcbf2614abd719d68bf6e78f82f1bd53db7e65
14,267
py
Python
sdk/python/pulumi_azure_native/network/v20200801/get_security_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200801/get_security_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200801/get_security_rule.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
45.006309
492
0.693839
acfcc1116197c60e1452808bda5232a89c85ee48
2,026
py
Python
docs/conf.py
shreesowndarya/aqme
2cb45c5068b15b94e658bfdc53b60db82ec3502a
[ "MIT" ]
7
2022-01-20T22:18:57.000Z
2022-03-11T05:47:55.000Z
docs/conf.py
shreesowndarya/aqme
2cb45c5068b15b94e658bfdc53b60db82ec3502a
[ "MIT" ]
13
2022-01-21T19:11:02.000Z
2022-02-07T18:02:18.000Z
docs/conf.py
shreesowndarya/aqme
2cb45c5068b15b94e658bfdc53b60db82ec3502a
[ "MIT" ]
4
2022-01-21T19:03:37.000Z
2022-03-11T05:45:49.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
36.836364
82
0.665844
acfcc124acd49d7fe78c67f5ca8ebce802fab8c7
2,360
py
Python
config/cassava/resnet50_c2.py
li-phone/OpenOneCla
b70a752fe405307fa7e77465a8772846e1d29d5a
[ "MIT" ]
null
null
null
config/cassava/resnet50_c2.py
li-phone/OpenOneCla
b70a752fe405307fa7e77465a8772846e1d29d5a
[ "MIT" ]
null
null
null
config/cassava/resnet50_c2.py
li-phone/OpenOneCla
b70a752fe405307fa7e77465a8772846e1d29d5a
[ "MIT" ]
null
null
null
# model settings model_config = dict( model='resnet50', num_classes=2, pretrained=True ) # split data settings data_name = 'cassava' data_root = "data/cassava/" # img_save_dir = data_root + "/imgs/" img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) dataset ...
25.652174
86
0.636864
acfcc4647181551c931f67d4eea85a3324544525
4,119
py
Python
syne_tune/stopping_criterion.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
syne_tune/stopping_criterion.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-25T15:56:36.000Z
2022-02-25T17:53:10.000Z
syne_tune/stopping_criterion.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
53.493506
118
0.71158
acfcc51f20e8ddb36d6a579f337f644acdf23a5d
1,825
py
Python
pynasqm/trajectories/amber_restart_files.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
1
2020-03-13T22:34:03.000Z
2020-03-13T22:34:03.000Z
pynasqm/trajectories/amber_restart_files.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
null
null
null
pynasqm/trajectories/amber_restart_files.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
null
null
null
from functools import singledispatch from pynasqm.trajectories.qmground import QmGround from pynasqm.trajectories.qmexcited import QmExcited from pynasqm.trajectories.fluorescence import Fluorescence from pynasqm.trajectories.absorption import Absorption from pynasqm.trajectories.ppump import PPump from pynasqm.traject...
46.794872
91
0.786301
acfcc52a82f116ae13610f88a38e701815896775
397
py
Python
materialize-css-django-material-admin/step1/djmaterial/djmaterial/wsgi.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
65
2017-06-13T01:02:17.000Z
2022-01-10T09:58:29.000Z
materialize-css-django-material-admin/step1/djmaterial/djmaterial/wsgi.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
1
2020-06-05T18:07:42.000Z
2020-06-05T18:07:42.000Z
materialize-css-django-material-admin/step1/djmaterial/djmaterial/wsgi.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
50
2017-07-01T02:10:19.000Z
2022-03-24T17:23:58.000Z
""" WSGI config for djmaterial project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
acfcc54f05c8bc2da35b82ee1d544d88ddf612c6
13,455
py
Python
homeassistant/components/system_bridge/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
2
2021-01-29T02:52:01.000Z
2021-05-15T04:23:18.000Z
homeassistant/components/system_bridge/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
69
2020-08-04T09:03:43.000Z
2022-03-31T06:13:01.000Z
homeassistant/components/system_bridge/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""Support for System Bridge sensors.""" from __future__ import annotations from datetime import datetime, timedelta from typing import Any from systembridge import Bridge from homeassistant.components.sensor import SensorEntity from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ...
30.719178
87
0.618803
acfcc623f98d8b735c18b16d0bcedba0ed9190d1
1,777
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/GetPredictiveTaskDataRequest.py
Explorer1092/aliyun-openapi-python-sdk
13d95bdceb7fd3bba807275a5a15b32d531a1a63
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/GetPredictiveTaskDataRequest.py
Explorer1092/aliyun-openapi-python-sdk
13d95bdceb7fd3bba807275a5a15b32d531a1a63
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/GetPredictiveTaskDataRequest.py
Explorer1092/aliyun-openapi-python-sdk
13d95bdceb7fd3bba807275a5a15b32d531a1a63
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.54
74
0.76646
acfcc73856728552fb047bb3ad993df6fdebc53d
1,370
py
Python
cnfencoder/cnf.py
jreig/cnf-encoder
9f3f098bc0c7b5aaf87ae4bf949222ae80950a5a
[ "MIT" ]
null
null
null
cnfencoder/cnf.py
jreig/cnf-encoder
9f3f098bc0c7b5aaf87ae4bf949222ae80950a5a
[ "MIT" ]
null
null
null
cnfencoder/cnf.py
jreig/cnf-encoder
9f3f098bc0c7b5aaf87ae4bf949222ae80950a5a
[ "MIT" ]
null
null
null
import os class CNF: """ Store the total number of variables and the list of clauses of the CNF. Clauses are represented by a list of literals, where each literal is encoded using an integer. Negative integers represents negated literals. """ def __init__(self): self.num_variables = 0...
32.619048
80
0.516058
acfcc77844c7bd017a7158b2fa3b965bd88e28fd
1,940
py
Python
tests/pyre.pkg/components/protocol_compatibility.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/pyre.pkg/components/protocol_compatibility.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/pyre.pkg/components/protocol_compatibility.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2022 all rights reserved # """ Verify that compatibility among protocols is detected correctly """ def test(): import pyre # declare a couple of protocols class base(pyre.protocol): """the base proto...
26.575342
75
0.666495
acfcc8a1573a785e9e3c18002e8fdee900e8464e
12,234
py
Python
mvsnet/test.py
GentleDell/MVSNet
c6407b1b2301c4a0bdb629e41ba3f8d2d9fe3b11
[ "MIT" ]
null
null
null
mvsnet/test.py
GentleDell/MVSNet
c6407b1b2301c4a0bdb629e41ba3f8d2d9fe3b11
[ "MIT" ]
null
null
null
mvsnet/test.py
GentleDell/MVSNet
c6407b1b2301c4a0bdb629e41ba3f8d2d9fe3b11
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright 2019, Yao Yao, HKUST. Test script. """ from __future__ import print_function import os import time import sys import math import argparse import imageio import numpy as np import cv2 import tensorflow as tf sys.path.append("../") from tools.common import Notify from preprocess im...
44.007194
158
0.586644
acfcc92bfdc5044082d8828ce3edb26c1acc5e29
24,028
py
Python
environment/lib/python3.8/site-packages/dask_ml/model_selection/_hyperband.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
null
null
null
environment/lib/python3.8/site-packages/dask_ml/model_selection/_hyperband.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
2
2021-05-11T16:00:55.000Z
2021-08-23T20:45:22.000Z
environment/lib/python3.8/site-packages/dask_ml/model_selection/_hyperband.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
null
null
null
from __future__ import division import logging import math from warnings import warn import numpy as np from sklearn.utils import check_random_state from tornado import gen from ._incremental import BaseIncrementalSearchCV from ._successive_halving import SuccessiveHalvingSearchCV logger = logging.getLogger(__name_...
37.958926
102
0.613243
acfcc967ab137664a189755cf911564205187b6a
5,618
py
Python
keybind/binder.py
idlesign/keybind
d439051bf3db019f466aa6396b31d61d9df9d254
[ "BSD-3-Clause" ]
14
2018-12-15T08:40:47.000Z
2022-03-29T13:37:09.000Z
keybind/binder.py
idlesign/keybind
d439051bf3db019f466aa6396b31d61d9df9d254
[ "BSD-3-Clause" ]
4
2019-07-04T21:26:19.000Z
2021-03-03T09:25:02.000Z
keybind/binder.py
idlesign/keybind
d439051bf3db019f466aa6396b31d61d9df9d254
[ "BSD-3-Clause" ]
3
2019-04-25T18:53:59.000Z
2020-04-16T11:36:15.000Z
# -*- encoding: utf-8 -*- from __future__ import unicode_literals import logging import threading LOGGER = logging.getLogger('keybinder') def configure_logging(log_level=None): """Performs basic logging configuration. :param log_level: logging level, e.g. logging.DEBUG Default: logging.INFO :p...
26.375587
107
0.568708
acfcc9dc25396820d8e51ccba891f343ea3ba467
1,205
py
Python
src/ralph/reports/urls.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/reports/urls.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/reports/urls.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from ralph.reports import views urlpatterns = [ url( r'^category_model_report/?$', views.CategoryModelReport.as_view(), name='category_model_report' ), url( r'^category_model__status_report/?$', views.Category...
25.104167
56
0.60332
acfccb3dbdccbd118f55a7132d9ae2ff7cfe322e
3,188
py
Python
tensorboard/examples/plugins/example_basic/tensorboard_plugin_example/plugin.py
davidsoergel/tensorboard
2f6d8dc93ca83484f8f6473ab008ea43202b3a46
[ "Apache-2.0" ]
2
2019-11-23T18:36:20.000Z
2019-12-07T20:58:02.000Z
tensorboard/examples/plugins/example_basic/tensorboard_plugin_example/plugin.py
davidsoergel/tensorboard
2f6d8dc93ca83484f8f6473ab008ea43202b3a46
[ "Apache-2.0" ]
null
null
null
tensorboard/examples/plugins/example_basic/tensorboard_plugin_example/plugin.py
davidsoergel/tensorboard
2f6d8dc93ca83484f8f6473ab008ea43202b3a46
[ "Apache-2.0" ]
1
2019-10-10T06:04:28.000Z
2019-10-10T06:04:28.000Z
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.032967
80
0.7133
acfccb5fadbdc3e2a1fb127d2c15bc4752f96e7c
1,383
py
Python
server/video_capture_server.py
nuk-icslab/nukxScan
fb11c90d44f6b9bcb57d2254a34ea74539397bb2
[ "MIT" ]
null
null
null
server/video_capture_server.py
nuk-icslab/nukxScan
fb11c90d44f6b9bcb57d2254a34ea74539397bb2
[ "MIT" ]
null
null
null
server/video_capture_server.py
nuk-icslab/nukxScan
fb11c90d44f6b9bcb57d2254a34ea74539397bb2
[ "MIT" ]
1
2022-01-03T07:57:50.000Z
2022-01-03T07:57:50.000Z
#!/bin/python import cv2 import socket import numpy as np import hashlib import binascii SERVER = { 'HOST': '0.0.0.0', 'PORT': 3000 } def recvFrame(sock): BUFF_SIZE = 4096 # 4 KiB data = b'' data_len = -1 while True: part = sock.recv(BUFF_SIZE) if data_len == -1: da...
24.263158
68
0.636298
acfccb6e7b62cdab266e7901344a64460702b59b
3,996
py
Python
src/trainer.py
JunjieHu/ReCo-RL
4406f6eec2d6bee4aa12c8b22494f2d167c570c1
[ "MIT" ]
22
2020-02-25T02:07:15.000Z
2022-02-20T20:15:32.000Z
src/trainer.py
JunjieHu/ReCo-RL
4406f6eec2d6bee4aa12c8b22494f2d167c570c1
[ "MIT" ]
7
2020-05-18T09:13:47.000Z
2021-09-26T14:21:19.000Z
src/trainer.py
JunjieHu/ReCo-RL
4406f6eec2d6bee4aa12c8b22494f2d167c570c1
[ "MIT" ]
9
2020-02-25T21:30:31.000Z
2021-04-22T11:36:49.000Z
from __future__ import print_function import math import torch import numpy as np class Trainer(object): def __init__(self, args, model, criterion): self.args = args self.model = model self.criterion = criterion # initialize optimizer and learning rate if self.args.optim ...
37.345794
156
0.605105
acfccb8daecccd9fa8a44af8870dfa9b4e049a51
1,962
py
Python
Python 3 - 9 - Testes automatizados/tests/test_leilao.py
dudu1626/Cursos-Alura-de-Python
3ebe63d732c4e40984ad5423c7158d5f59a1fd0e
[ "MIT" ]
null
null
null
Python 3 - 9 - Testes automatizados/tests/test_leilao.py
dudu1626/Cursos-Alura-de-Python
3ebe63d732c4e40984ad5423c7158d5f59a1fd0e
[ "MIT" ]
null
null
null
Python 3 - 9 - Testes automatizados/tests/test_leilao.py
dudu1626/Cursos-Alura-de-Python
3ebe63d732c4e40984ad5423c7158d5f59a1fd0e
[ "MIT" ]
null
null
null
from unittest import TestCase from src.leilao.dominio import Usuario, Lance, Leilao # criado automaticamente com o comando Ctrl+shift+t com o cursor na classe Avaliador class TestLeilao(TestCase): def setUp(self): # criação de um cenário único para os teste rodarem self.dudu = Usuario('Eduardo', 300.0)...
38.470588
108
0.722222
acfccd452e0f0a707c132f04e46795d0f4b49370
10,875
py
Python
src/problem4.py
bobbyliu6/24-Exam3-201920
633a5f58ea7b8287c7299b7ce0ef41f07317d306
[ "MIT" ]
null
null
null
src/problem4.py
bobbyliu6/24-Exam3-201920
633a5f58ea7b8287c7299b7ce0ef41f07317d306
[ "MIT" ]
null
null
null
src/problem4.py
bobbyliu6/24-Exam3-201920
633a5f58ea7b8287c7299b7ce0ef41f07317d306
[ "MIT" ]
null
null
null
""" Exam 3, problem 4. Authors: Vibha Alangar, Aaron Wilkin, David Mutchler, Dave Fisher, Matt Boutell, Amanda Stouder, their colleagues and Weizhou Liu. January 2019. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import time import testing_helper def main(): """ Calls the TE...
32.854985
79
0.490943
acfccdb13ab96a1d2a78a237467c4510eaf22d28
907
py
Python
rusentrel/rusentrel_ds_cv/mi_att/att_hidden_z_yang.py
nicolay-r/attitude-extraction-with-attention-and-ds
fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d
[ "MIT" ]
null
null
null
rusentrel/rusentrel_ds_cv/mi_att/att_hidden_z_yang.py
nicolay-r/attitude-extraction-with-attention-and-ds
fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d
[ "MIT" ]
1
2020-12-16T18:21:11.000Z
2020-12-30T10:08:27.000Z
rusentrel/rusentrel_ds_cv/mi_att/att_hidden_z_yang.py
nicolay-r/attitude-extraction-with-attention-and-ds
fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d
[ "MIT" ]
1
2021-03-29T20:58:26.000Z
2021-03-29T20:58:26.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys sys.path.append('../../../') from arekit.contrib.networks.multi.configurations.att_self import AttSelfOverSentencesConfig from arekit.contrib.networks.multi.architectures.att_self import AttSelfOverSentences from rusentrel.mi_names import AttSelfOverInstancesModelN...
36.28
92
0.805954
acfccdb6d24a7e1ba490705dd147f21dbf921d31
2,656
py
Python
deploy/pdserving/det_local_server.py
gvvynplaine/PaddleOCR
ec903eb5a0aeed54067739e2e6c3dfa0cdc112c9
[ "Apache-2.0" ]
2
2020-09-18T04:28:50.000Z
2020-09-18T04:30:09.000Z
deploy/pdserving/det_local_server.py
pengfudan/paddleocr
7404050bdf4d4555065d2db1ac30cdb6d892d6f8
[ "Apache-2.0" ]
3
2020-03-05T03:45:46.000Z
2020-03-05T04:26:26.000Z
deploy/pdserving/det_local_server.py
pengfudan/paddleocr
7404050bdf4d4555065d2db1ac30cdb6d892d6f8
[ "Apache-2.0" ]
1
2020-07-22T10:31:31.000Z
2020-07-22T10:31:31.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.888889
79
0.68637
acfccdc39be08944b1d7ea686b0db3515119678e
2,667
py
Python
src/vdbdump.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
4
2021-10-17T11:17:59.000Z
2022-02-28T16:58:40.000Z
src/vdbdump.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
17
2021-10-05T21:44:06.000Z
2022-03-31T16:58:40.000Z
src/vdbdump.py
moibenko/enstore
6f2ff5b67ff73872a9e68f2a68b0bdaa70cef9b9
[ "Intel", "Unlicense" ]
8
2021-09-02T18:55:49.000Z
2022-03-09T21:05:28.000Z
#!/usr/bin/env python import db import sys import time import string import pprint # time2timestamp(t) -- convert time to "YYYY-MM-DD HH:MM:SS" def time2timestamp(t): return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(t)) # timestamp2time(ts) -- convert "YYYY-MM-DD HH:MM:SS" to time def timestamp2time(s): r...
27.494845
113
0.68054
acfccde0024f39961407b72068541d9b4027c54c
3,119
py
Python
sdks/python/apache_beam/examples/snippets/transforms/aggregation/combineglobally_test.py
dannymartinm/beam
7bf822a541939ff6874d60d4ef18957bc05128b8
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2022-02-25T21:58:19.000Z
2022-02-25T21:58:19.000Z
sdks/python/apache_beam/examples/snippets/transforms/aggregation/combineglobally_test.py
dannymartinm/beam
7bf822a541939ff6874d60d4ef18957bc05128b8
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2022-01-06T16:01:15.000Z
2022-01-06T16:01:15.000Z
sdks/python/apache_beam/examples/snippets/transforms/aggregation/combineglobally_test.py
dannymartinm/beam
7bf822a541939ff6874d60d4ef18957bc05128b8
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
17
2021-12-15T19:31:54.000Z
2022-01-31T18:54:23.000Z
# coding=utf-8 # # 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");...
32.489583
81
0.77621
acfccdff6c07b3fcd2e75a6baaa4653d42189912
155
py
Python
src/macro/untitled1.py
shreyash-sharma/automater
aebec0492ce03f7d7d2f8b1a902bfb059803c9be
[ "Apache-2.0" ]
1
2021-05-14T06:12:07.000Z
2021-05-14T06:12:07.000Z
src/macro/untitled1.py
shreyash-sharma/automater
aebec0492ce03f7d7d2f8b1a902bfb059803c9be
[ "Apache-2.0" ]
null
null
null
src/macro/untitled1.py
shreyash-sharma/automater
aebec0492ce03f7d7d2f8b1a902bfb059803c9be
[ "Apache-2.0" ]
null
null
null
import pyautogui start = pyautogui.locateCenterOnScreen('prett.png')#If the file is not a png file it will not work print(start) pyautogui.moveTo(start)
38.75
99
0.787097
acfccf49946afcddb0fc5a1305f405bd5685595d
1,480
py
Python
pretty_display.py
hsean/python_web_scrapper
39f8bda3b589a9126b12177e70896728c2407384
[ "MIT" ]
null
null
null
pretty_display.py
hsean/python_web_scrapper
39f8bda3b589a9126b12177e70896728c2407384
[ "MIT" ]
null
null
null
pretty_display.py
hsean/python_web_scrapper
39f8bda3b589a9126b12177e70896728c2407384
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ############################################################################### # Author: Sean Hendrickson # File: pretty_display.py # Desc: This file displays a list of titles and prices in two columns and # displays the total sum at the end of the list #######################################...
32.888889
117
0.538514
acfcd17f187c19ecc2e78baa7599cad920280fe9
989
py
Python
userbot/utils/__init__.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/utils/__init__.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/utils/__init__.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
10
2020-12-13T14:32:47.000Z
2021-04-11T06:45:35.000Z
# Copyright (C) 2020 Adek Maulana # # SPDX-License-Identifier: GPL-3.0-or-later # 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 3 of the License, or # (at your option) any l...
35.321429
72
0.73913
acfcd1a2def76a0befdca6f8dfca422a50db9c6b
3,247
py
Python
bin/batch_process.py
atomicguy/vvr_tools
76989d3d432bbb2a93249978f1b894e6e98cd8f4
[ "MIT" ]
1
2018-10-18T09:33:05.000Z
2018-10-18T09:33:05.000Z
bin/batch_process.py
atomicguy/vvr_tools
76989d3d432bbb2a93249978f1b894e6e98cd8f4
[ "MIT" ]
null
null
null
bin/batch_process.py
atomicguy/vvr_tools
76989d3d432bbb2a93249978f1b894e6e98cd8f4
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import import os import glob import json import progressbar import subprocess from argparse import ArgumentParser from src.card import StereoCard from src.pairs import StereoPairGC def find_filepaths(path, extension): return glob.glob('%s/*.%s' % (path, extension)) if ...
32.47
107
0.578072
acfcd3b371da66b9d6bbba28ff77045e3a2c76b3
12,880
py
Python
train.py
quanzhanjiajia/yolov4-flask
644aa91ad776c9e306b49aec0aaa33fc34d5dd05
[ "MIT" ]
null
null
null
train.py
quanzhanjiajia/yolov4-flask
644aa91ad776c9e306b49aec0aaa33fc34d5dd05
[ "MIT" ]
null
null
null
train.py
quanzhanjiajia/yolov4-flask
644aa91ad776c9e306b49aec0aaa33fc34d5dd05
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras.layers import Input, Lambda from tensorflow.keras.models import Model from tensorflow.keras.optimizers import Adam from tensorflow.keras.callbacks import TensorBoard, ReduceLROnPlateau, EarlyStopping from nets.yolo4 im...
41.682848
155
0.563975
acfcd3d93d2af7d238335cfb9c35406a8e49d4ee
1,263
py
Python
src/robot/running/usererrorhandler.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
1
2015-03-11T14:59:20.000Z
2015-03-11T14:59:20.000Z
src/robot/running/usererrorhandler.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/usererrorhandler.py
yahman72/robotframework
9f82d9a2bf088073859eb23a33d275c6a8c0b975
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
33.236842
77
0.705463
acfcd407595d516404479fdfc5895e79ddfdccc9
175
py
Python
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_title-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_title-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_title-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
import pyvista pl = pyvista.Plotter() pl.background_color = 'grey' actor = pl.add_title('Plot Title', font='courier', color='k', font_size=40) pl.show()
25
62
0.628571
acfcd49bfb2e12972435d8f893e645d973081769
5,641
py
Python
buildpack/start.py
rrkh/cf-mendix-buildpack
ce60432790e501e4237cbeca62b1a33c4849a77c
[ "Apache-2.0" ]
1
2021-06-17T17:48:21.000Z
2021-06-17T17:48:21.000Z
buildpack/start.py
todd-a-jacobs/cf-mendix-buildpack
7c3fe7cff21567efc9764960d24752730c675eb2
[ "Apache-2.0" ]
null
null
null
buildpack/start.py
todd-a-jacobs/cf-mendix-buildpack
7c3fe7cff21567efc9764960d24752730c675eb2
[ "Apache-2.0" ]
1
2021-07-21T11:36:46.000Z
2021-07-21T11:36:46.000Z
#!/usr/bin/env python3 import atexit import logging import os import signal import sys import traceback from http.server import BaseHTTPRequestHandler, HTTPServer from buildpack import ( appdynamics, databroker, datadog, dynatrace, java, metering, mx_java_agent, newrelic, nginx, ...
30.327957
116
0.648644
acfcd8487ce3fe39518bdf64623d087fa367c6bd
1,896
py
Python
boot.py
allenc4/Vehicle-GPS-Tracking
9adf6e8987f52f0a3808f8ac0717390a27b4475c
[ "MIT" ]
null
null
null
boot.py
allenc4/Vehicle-GPS-Tracking
9adf6e8987f52f0a3808f8ac0717390a27b4475c
[ "MIT" ]
null
null
null
boot.py
allenc4/Vehicle-GPS-Tracking
9adf6e8987f52f0a3808f8ac0717390a27b4475c
[ "MIT" ]
null
null
null
# boot file for the gpy. Runs once on startup before executing main.py. # Functionality here initializes WiFi network with known network if found. # Otherwise, sets wifi in Access Point mode # author: callen # import os import machine from config import ConfigNetwork uart = machine.UART(0, baudrate=115200) os.dupterm...
36.461538
106
0.696203
acfcd898ce6717a50b38b184a7e5dff69bfa7b38
1,484
py
Python
models/discussion.py
Officeyutong/HelloJudge2
e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e
[ "MIT" ]
21
2020-02-24T07:56:55.000Z
2022-01-22T11:32:28.000Z
models/discussion.py
Officeyutong/HelloJudge2
e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e
[ "MIT" ]
1
2021-02-07T13:08:47.000Z
2021-02-09T04:50:49.000Z
models/discussion.py
Officeyutong/HelloJudge2
e88c0a1198f8531ee0c1121dccfedb51f3f0aa0e
[ "MIT" ]
3
2020-06-04T07:56:20.000Z
2021-06-21T04:04:15.000Z
from main import db from sqlalchemy.dialects import mysql from sqlalchemy import Column, Integer, Text, String, DateTime, ForeignKey from sqlalchemy.sql.expression import text class Discussion(db.Model): __tablename__ = "discussion" # 讨论ID id = Column(Integer, primary_key=True) # 板块 # 每一个板块使用一个...
30.916667
87
0.662399
acfcd8a8a34cc7a88e9466d33557620bed0eb0f4
403
py
Python
bmstu_project/bmstu_project/wsgi.py
TrungLuong1194/django-student-management
5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a
[ "MIT" ]
1
2020-07-17T14:10:50.000Z
2020-07-17T14:10:50.000Z
bmstu_project/bmstu_project/wsgi.py
TrungLuong1194/django-student-management
5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a
[ "MIT" ]
null
null
null
bmstu_project/bmstu_project/wsgi.py
TrungLuong1194/django-student-management
5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a
[ "MIT" ]
null
null
null
""" WSGI config for bmstu_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
acfcd98e366106d07ae1ecb9f418c20417f35bc2
8,006
py
Python
RNN/rnnModel.py
pedroig/Parkinsons-Disease-Digital-Biomarker
4c8bf1b5c4337ebc1940a7dfd2dbcce0c974e1fd
[ "MIT" ]
12
2018-01-09T01:18:41.000Z
2021-04-22T19:15:38.000Z
RNN/rnnModel.py
pedroig/Parkinsons-Disease-Digital-Biomarker
4c8bf1b5c4337ebc1940a7dfd2dbcce0c974e1fd
[ "MIT" ]
null
null
null
RNN/rnnModel.py
pedroig/Parkinsons-Disease-Digital-Biomarker
4c8bf1b5c4337ebc1940a7dfd2dbcce0c974e1fd
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import rnn_utils as ru import time from datetime import datetime tf.reset_default_graph() # Hard-coded parameters timeSeries = ['outbound', 'rest'] # , 'return'] n_steps = 4000 n_inputs = 6 # Rotation Rate (XYZ) and Acceleration (XYZ) n_neurons = 20 n_outputs = 2 n_layers ...
41.481865
134
0.701599
acfcda31dc993b0ea1b3eff18cda49ddf0059ca3
1,615
py
Python
apps/sso/oauth2/decorators.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
3
2021-05-16T17:06:57.000Z
2021-05-28T17:14:05.000Z
apps/sso/oauth2/decorators.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
apps/sso/oauth2/decorators.py
g10f/sso
ba6eb712add388c69d4880f5620a2e4ce42d3fee
[ "BSD-3-Clause" ]
null
null
null
from functools import wraps from django.core.exceptions import PermissionDenied import logging logger = logging.getLogger(__name__) def request_passes_test(test_func): """ Decorator for views that checks that the request object passes the given test. The test should be a callable that takes the request o...
30.471698
103
0.66192
acfcdb6276d360c3313fdfdbb91c2a9d5a8ada83
1,995
py
Python
tensorflow/inception_v2/run.py
asutic/ncappzoo
cfac66c16e25105eedb258c895caead83db361de
[ "MIT" ]
1
2021-07-31T07:59:58.000Z
2021-07-31T07:59:58.000Z
tensorflow/inception_v2/run.py
asutic/ncappzoo
cfac66c16e25105eedb258c895caead83db361de
[ "MIT" ]
null
null
null
tensorflow/inception_v2/run.py
asutic/ncappzoo
cfac66c16e25105eedb258c895caead83db361de
[ "MIT" ]
1
2018-12-05T10:48:43.000Z
2018-12-05T10:48:43.000Z
#! /usr/bin/env python3 # Copyright(c) 2017 Intel Corporation. # License: MIT See LICENSE file in root directory. from mvnc import mvncapi as mvnc import sys import numpy import cv2 path_to_networks = './' path_to_images = '../../data/images/' graph_filename = 'graph' image_filename = path_to_images + 'nps_electric...
24.62963
68
0.674185
acfcde5ce1e093d516547f3a391236ed11ad530e
5,816
py
Python
django_archive/management/commands/archive.py
Adnn/django-archive
2ea3256c560a35b79eaa4cf2808da8687179a164
[ "MIT" ]
5
2017-06-21T13:15:22.000Z
2020-12-18T09:21:03.000Z
django_archive/management/commands/archive.py
Adnn/django-archive
2ea3256c560a35b79eaa4cf2808da8687179a164
[ "MIT" ]
null
null
null
django_archive/management/commands/archive.py
Adnn/django-archive
2ea3256c560a35b79eaa4cf2808da8687179a164
[ "MIT" ]
1
2020-11-09T18:40:00.000Z
2020-11-09T18:40:00.000Z
from collections import OrderedDict from datetime import datetime from io import BytesIO from json import dump from os import path from tarfile import TarInfo, TarFile from django.apps.registry import apps from django.conf import settings from django.core.files.base import File from django.core.management import call_...
33.813953
116
0.604883
acfcde7fc6522ff42b1d50c2c5d1ae84d1959542
23,507
py
Python
.vscode-server/data/User/History/-27e0d3eb/nbc2.py
UNIZAR-30226-2022-09/back-end
7f20e141e34bf0ae7cce70515a1e4bb0cd85b173
[ "MIT" ]
null
null
null
.vscode-server/data/User/History/-27e0d3eb/nbc2.py
UNIZAR-30226-2022-09/back-end
7f20e141e34bf0ae7cce70515a1e4bb0cd85b173
[ "MIT" ]
1
2022-02-16T12:12:43.000Z
2022-02-16T12:15:03.000Z
.vscode-server/data/User/History/-27e0d3eb/nbc2.py
UNIZAR-30226-2022-09/back-end
7f20e141e34bf0ae7cce70515a1e4bb0cd85b173
[ "MIT" ]
null
null
null
# from flask import Flask, Blueprint # from flask_sqlalchemy import SQLAlchemy # from flask_login import LoginManager # import os from flask import Flask, jsonify, request, make_response, redirect, url_for import jwt import datetime import os from functools import wraps from flask_sqlalchemy import SQLAlchemy import u...
37.431529
396
0.646318
acfcdf275cd9dff5ea372abc6c4c061fc0f8d165
459
py
Python
mediaman/core/clients/single/abstract.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
1
2019-05-06T19:51:08.000Z
2019-05-06T19:51:08.000Z
mediaman/core/clients/single/abstract.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
1
2021-02-08T20:22:34.000Z
2021-02-08T20:22:34.000Z
mediaman/core/clients/single/abstract.py
MattCCS/MediaMan
388c0d16da437b0ede4f0903a01e41dc8e927ae6
[ "BSD-3-Clause-Clear" ]
null
null
null
from mediaman.core.clients.abstract import abstract class AbstractSingleClient(abstract.AbstractClient): def __init__(self, index): self.index = index # self.force_init() def force_init(self): self.index.force_init() def name(self): return self.index.name() def nic...
20.863636
63
0.653595
acfcdf437d57f0db72de41dbb7e933b1ffeb3572
13,463
py
Python
django/core/management/templates.py
findoslice/django
bb99832b0a8635cf9a29dfcb66088d8c593b8796
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/core/management/templates.py
findoslice/django
bb99832b0a8635cf9a29dfcb66088d8c593b8796
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/core/management/templates.py
findoslice/django
bb99832b0a8635cf9a29dfcb66088d8c593b8796
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import cgi import mimetypes import os import posixpath import shutil import stat import tempfile from importlib import import_module from os import path from urllib.request import urlretrieve import django from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django.co...
40.18806
92
0.564287
acfcdf5fb651d3176f0201b4299a718ca7ee5ade
31,658
py
Python
fastapi/applications.py
johntheprime/fastapisoucecodes
8f22a865864d495f8b12820994ebdd82a76b262e
[ "MIT" ]
2
2021-09-27T13:54:01.000Z
2021-11-10T10:18:20.000Z
fastapi/applications.py
johntheprime/fastapisoucecodes
8f22a865864d495f8b12820994ebdd82a76b262e
[ "MIT" ]
null
null
null
fastapi/applications.py
johntheprime/fastapisoucecodes
8f22a865864d495f8b12820994ebdd82a76b262e
[ "MIT" ]
null
null
null
# 概览:本文件是整个框架中第二大文件(以代码行数论),仅次于routing.py; # TODO:待继续 from typing import Any, Callable, Coroutine, Dict, List, Optional, Sequence, Type, Union from fastapi import routing from fastapi.concurrency import AsyncExitStack from fastapi.datastructures import Default, DefaultPlaceholder from fastapi.encoders import DictIntS...
42.608345
88
0.637438
acfcdf7f703be873f5f13222778414082b25761b
13,886
py
Python
asa_tgcn_main.py
cuhksz-nlp/ASA-TGCN
4743fb5a941114a14530aa499243dbe955583ea9
[ "MIT" ]
14
2021-05-29T13:50:46.000Z
2022-03-31T09:52:37.000Z
asa_tgcn_main.py
cuhksz-nlp/ASA-TGCN
4743fb5a941114a14530aa499243dbe955583ea9
[ "MIT" ]
5
2021-06-07T01:19:10.000Z
2022-02-20T04:11:46.000Z
asa_tgcn_main.py
cuhksz-nlp/ASA-TGCN
4743fb5a941114a14530aa499243dbe955583ea9
[ "MIT" ]
9
2021-07-01T13:23:06.000Z
2022-02-24T03:04:52.000Z
import logging import argparse import math import os import sys from time import strftime, localtime import random import numpy as np from pytorch_transformers import BertModel, BertConfig from data_utils import Tokenizer4Bert, ABSADataset from asa_tgcn_model import AsaTgcn from sklearn import metrics import torch im...
45.379085
136
0.620409
acfce07f87efa9440bafaec53b9a6b5bbe7c8c41
2,870
py
Python
models/rundoc2vec.py
andrew-lockwood/lab-project
e39a0f21966cdee519942cf2f94b7bab6ed2196e
[ "MIT" ]
1
2017-08-30T15:21:31.000Z
2017-08-30T15:21:31.000Z
models/rundoc2vec.py
andrew-lockwood/lab-project-summer2016
e39a0f21966cdee519942cf2f94b7bab6ed2196e
[ "MIT" ]
null
null
null
models/rundoc2vec.py
andrew-lockwood/lab-project-summer2016
e39a0f21966cdee519942cf2f94b7bab6ed2196e
[ "MIT" ]
1
2017-06-15T20:44:59.000Z
2017-06-15T20:44:59.000Z
#### Directories that need to be set before using #### # Models: where models will be stored # Scores: where model scores will be stored from context import LabeledSentences, settings # De-comment to set up gensims native logging. Extremely useful when # training models to visualize progress import logging loggi...
29.587629
78
0.650871
acfce30b9254f9c11d2a226b0b6caab4d0770895
1,735
py
Python
bitmovin_api_sdk/encoding/inputs/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/encoding/inputs/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/encoding/inputs/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.encoding.inputs.inputs_api import InputsApi from bitmovin_api_sdk.encoding.inputs.type.type_api import TypeApi from bitmovin_api_sdk.encoding.inputs.rtmp.rtmp_api import RtmpApi from bitmovin_api_sdk.encoding.inputs.redundant_rtmp.redundant_rtmp_api import RedundantRtmpApi from bitmovin_api_sdk.en...
72.291667
109
0.895101
acfce3126c4cc84eddfecc14e161e627d2a39c15
29,566
py
Python
azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2020-12-12T21:04:41.000Z
2020-12-12T21:04:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.533762
242
0.663702
acfce45248ef3528e1d11462dbac03ee76474d6f
4,951
py
Python
Current/l_test_model.py
Alden-G878/AI_Traintime
3d405952bd2c30171358219591f806efcb157d49
[ "MIT" ]
null
null
null
Current/l_test_model.py
Alden-G878/AI_Traintime
3d405952bd2c30171358219591f806efcb157d49
[ "MIT" ]
null
null
null
Current/l_test_model.py
Alden-G878/AI_Traintime
3d405952bd2c30171358219591f806efcb157d49
[ "MIT" ]
null
null
null
import random import gym import numpy as np import tensorflow as tf import os from tensorflow import keras from collections import deque from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense from tensorflow.keras.optimizers import Adam #from gym.cartpole.scores.score_logger import S...
40.917355
135
0.68168
acfce4f8296bd9dbe569b8ff0f5288836318909a
23,586
py
Python
stake-pool/py/stake_pool/actions.py
biw/solana-program-library
5611ad8bd595d9e3666f8b115cd28f8116038645
[ "Apache-2.0" ]
3
2022-03-04T18:18:53.000Z
2022-03-04T18:24:37.000Z
stake-pool/py/stake_pool/actions.py
biw/solana-program-library
5611ad8bd595d9e3666f8b115cd28f8116038645
[ "Apache-2.0" ]
78
2021-12-21T13:13:19.000Z
2022-03-29T08:31:44.000Z
stake-pool/py/stake_pool/actions.py
biw/solana-program-library
5611ad8bd595d9e3666f8b115cd28f8116038645
[ "Apache-2.0" ]
2
2022-03-23T14:29:32.000Z
2022-03-24T01:07:13.000Z
from typing import Tuple from solana.keypair import Keypair from solana.publickey import PublicKey from solana.rpc.async_api import AsyncClient from solana.rpc.commitment import Confirmed from solana.rpc.types import TxOpts from solana.sysvar import SYSVAR_CLOCK_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY ...
40.947917
120
0.675443