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
6b2cec5a2588f39302333a5f4dacaf75c507b16b
3,344
py
Python
backend/api/management/commands/create_testdb.py
INSRapperswil/nornir-web
458e6b24bc373197044b4b7b5da74f16f93a9459
[ "MIT" ]
2
2021-06-01T08:33:04.000Z
2021-08-20T04:22:39.000Z
backend/api/management/commands/create_testdb.py
INSRapperswil/nornir-web
458e6b24bc373197044b4b7b5da74f16f93a9459
[ "MIT" ]
null
null
null
backend/api/management/commands/create_testdb.py
INSRapperswil/nornir-web
458e6b24bc373197044b4b7b5da74f16f93a9459
[ "MIT" ]
null
null
null
""" Setup DB with example data for tests """ from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User, Group from django.core.management.base import BaseCommand from api import models class Command(BaseCommand): help = 'Setup DB with example data for tests' ...
54.819672
121
0.62201
3,102
0.927632
0
0
0
0
0
0
1,050
0.313995
6b2cf4b5b97a007dddbfd9bea2e0b5aea5f19d54
576
py
Python
pyinfra/facts/util/distro.py
charles-l/pyinfra
1992d98ff31d41404427dbb3cc6095a7bebd4052
[ "MIT" ]
1
2020-12-24T08:24:13.000Z
2020-12-24T08:24:13.000Z
pyinfra/facts/util/distro.py
charles-l/pyinfra
1992d98ff31d41404427dbb3cc6095a7bebd4052
[ "MIT" ]
null
null
null
pyinfra/facts/util/distro.py
charles-l/pyinfra
1992d98ff31d41404427dbb3cc6095a7bebd4052
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os import distro def get_distro_info(root_dir): # We point _UNIXCONFDIR to root_dir old_value = distro._UNIXCONFDIR distro._UNIXCONFDIR = os.path.join(root_dir, 'etc') obj = distro.LinuxDistribution(include_lsb=False, include_uname=Fal...
27.428571
92
0.751736
0
0
0
0
0
0
0
0
210
0.364583
6b2d1574c0e19ae7863baaa36967e1b1432a37dd
3,206
py
Python
appium/webdriver/common/multi_action.py
salabogdan/python-client
66208fdbbc8f0a8b0e90376b404135b57e797fa5
[ "Apache-2.0" ]
1
2021-07-23T03:56:49.000Z
2021-07-23T03:56:49.000Z
appium/webdriver/common/multi_action.py
ayvnkhan/python-client
ba408b74f0d30fc06a51e77f68fc5cfd4ac8f99a
[ "Apache-2.0" ]
11
2019-07-16T04:21:22.000Z
2021-02-24T15:11:02.000Z
appium/webdriver/common/multi_action.py
ki4070ma/python-client
d5f29f08a2fe9b5a9cca4162726c7cfb4faa42e9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
35.622222
118
0.663132
1,937
0.60418
0
0
337
0.105115
0
0
1,882
0.587024
6b2de30f1514c024be028007b3c7a182b53eba57
8,652
py
Python
src/visu/visualizer.py
JonasFrey96/PLR2
a0498e6ff283a27c6db11b3d57d3b3100026f069
[ "MIT" ]
null
null
null
src/visu/visualizer.py
JonasFrey96/PLR2
a0498e6ff283a27c6db11b3d57d3b3100026f069
[ "MIT" ]
2
2020-06-30T17:33:54.000Z
2020-07-07T18:12:21.000Z
src/visu/visualizer.py
JonasFrey96/PLR2
a0498e6ff283a27c6db11b3d57d3b3100026f069
[ "MIT" ]
null
null
null
import numpy as np import sys import os from PIL import Image from visu.helper_functions import save_image from scipy.spatial.transform import Rotation as R from helper import re_quat import copy import torch import numpy as np import k3d class Visualizer(): def __init__(self, p_visu, writer=None): if p_v...
33.929412
194
0.532016
7,135
0.824665
0
0
0
0
0
0
1,497
0.173024
6b2de9f9abfa7c9d1e5aab26305227c69409476d
3,317
py
Python
leetCode_Q37_serializeTree.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
leetCode_Q37_serializeTree.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
leetCode_Q37_serializeTree.py
FreesiaLikesPomelo/-offer
14ac73cb46d13c7f5bbc294329a14f3c5995bc7a
[ "Apache-2.0" ]
null
null
null
''' 面试题37. 序列化二叉树 请实现两个函数,分别用来序列化和反序列化二叉树。 示例: 你可以将以下二叉树: 1 / \ 2 3 / \ 4 5 序列化为 "[1,2,3,null,null,4,5]" ''' # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # 执行用时 :240 ms...
27.188525
81
0.472716
2,799
0.804542
0
0
0
0
0
0
1,194
0.343202
6b2e543e1da4f0dd04f05a16bdaaac83f262d6ce
1,505
py
Python
ipuz/puzzlekinds/__init__.py
maiamcc/ipuz
fbe6f663b28ad42754622bf2d3bbe59a26be2615
[ "MIT" ]
5
2015-06-23T17:18:41.000Z
2020-05-05T16:43:14.000Z
ipuz/puzzlekinds/__init__.py
maiamcc/ipuz
fbe6f663b28ad42754622bf2d3bbe59a26be2615
[ "MIT" ]
3
2015-08-21T05:17:22.000Z
2021-03-20T18:39:31.000Z
ipuz/puzzlekinds/__init__.py
maiamcc/ipuz
fbe6f663b28ad42754622bf2d3bbe59a26be2615
[ "MIT" ]
3
2018-01-15T17:28:10.000Z
2020-09-29T20:32:21.000Z
from .acrostic import IPUZ_ACROSTIC_VALIDATORS from .answer import IPUZ_ANSWER_VALIDATORS from .block import IPUZ_BLOCK_VALIDATORS from .crossword import IPUZ_CROSSWORD_VALIDATORS from .fill import IPUZ_FILL_VALIDATORS from .sudoku import IPUZ_SUDOKU_VALIDATORS from .wordsearch import IPUZ_WORDSEARCH_VALIDATORS IPUZ_...
23.153846
50
0.509635
0
0
0
0
0
0
0
0
395
0.262458
6b2f80664f980dad5a40411dc361a14a2b34e519
8,263
py
Python
CTFd/api/v1/users.py
MrQubo/CTFd
5c8ffff1412ea91ad6cf87135cb3d175a1223544
[ "Apache-2.0" ]
null
null
null
CTFd/api/v1/users.py
MrQubo/CTFd
5c8ffff1412ea91ad6cf87135cb3d175a1223544
[ "Apache-2.0" ]
null
null
null
CTFd/api/v1/users.py
MrQubo/CTFd
5c8ffff1412ea91ad6cf87135cb3d175a1223544
[ "Apache-2.0" ]
null
null
null
from flask import session, request, abort from flask_restplus import Namespace, Resource from CTFd.models import ( db, Users, Solves, Awards, Tracking, Unlocks, Submissions, Notifications, ) from CTFd.utils.decorators import authed_only, admins_only, ratelimit from CTFd.cache import clea...
30.156934
78
0.634031
6,948
0.840857
0
0
7,520
0.910081
0
0
988
0.119569
6b33e7e0e395a01bbb9aefe040bd4c754743cdbd
1,005
py
Python
getting_started/pages.py
emilhe/dash-extensions-docs
f44edba1c955242fc503185954ea5f3be69eb122
[ "MIT" ]
1
2022-03-20T09:50:07.000Z
2022-03-20T09:50:07.000Z
getting_started/pages.py
emilhe/dash-extensions-docs
f44edba1c955242fc503185954ea5f3be69eb122
[ "MIT" ]
null
null
null
getting_started/pages.py
emilhe/dash-extensions-docs
f44edba1c955242fc503185954ea5f3be69eb122
[ "MIT" ]
null
null
null
import dash_labs as dl from dash_extensions.enrich import DashBlueprint, DashProxy, html, Output, Input def page_name(i: int): return f"page{i}" def make_page(i: int): page = DashBlueprint() page.layout = html.Div([html.H2(f"Page {i}"), html.Button('Click me!', id='btn'), html.Div(id='log')]) @page.c...
34.655172
106
0.689552
0
0
0
0
151
0.150249
0
0
187
0.18607
6b34589c449dc4aced65c72c732c394afc998c68
8,790
py
Python
zaqar/transport/wsgi/v2_0/homedoc.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
1
2015-03-22T18:41:13.000Z
2015-03-22T18:41:13.000Z
zaqar/transport/wsgi/v2_0/homedoc.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
null
null
null
zaqar/transport/wsgi/v2_0/homedoc.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
31.170213
93
0.367577
485
0.055176
0
0
0
0
0
0
4,594
0.522639
6b35baeaa7950e5538a7f5306ca85d6a854ed57e
82,533
py
Python
synapse/models/infotech.py
vertexproject/synapse
9712e2aee63914441c59ce6cfc060fe06a2e5920
[ "Apache-2.0" ]
216
2017-01-17T18:52:50.000Z
2022-03-31T18:44:49.000Z
synapse/models/infotech.py
vertexproject/synapse
9712e2aee63914441c59ce6cfc060fe06a2e5920
[ "Apache-2.0" ]
2,189
2017-01-17T22:31:48.000Z
2022-03-31T20:41:45.000Z
synapse/models/infotech.py
vertexproject/synapse
9712e2aee63914441c59ce6cfc060fe06a2e5920
[ "Apache-2.0" ]
44
2017-01-17T16:50:57.000Z
2022-03-16T18:35:52.000Z
import asyncio import logging import synapse.exc as s_exc import synapse.lib.types as s_types import synapse.lib.module as s_module import synapse.lib.version as s_version logger = logging.getLogger(__name__) class Cpe23Str(s_types.Str): ''' CPE 2.3 Formatted String https://nvlpubs.nist.gov/nistpubs/Leg...
48.807215
191
0.372506
82,148
0.995335
0
0
0
0
2,117
0.02565
37,026
0.448621
6b35eaa0ed1f5a899840c77cec0648c4c36f9761
1,447
py
Python
test/test.py
bciar/ppp-web
1afe39a3c8d2197595ad0e2610c612db210cd62e
[ "MIT" ]
2
2018-09-27T03:31:42.000Z
2018-09-27T11:11:17.000Z
test/test.py
bciar/ppp-web
1afe39a3c8d2197595ad0e2610c612db210cd62e
[ "MIT" ]
null
null
null
test/test.py
bciar/ppp-web
1afe39a3c8d2197595ad0e2610c612db210cd62e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Unit tests.""" import os import unittest from copy import copy from webui.app import create_app class TestRoutes(unittest.TestCase): """Test routes.""" ignore_routes = ('/static/<path:filename>',) ignore_end_patterns = ('>',) def setUp(self): ...
27.826923
79
0.607464
991
0.684865
0
0
361
0.249482
0
0
385
0.266068
6b36c2213b18abb5b4d5cac68e49cf0ee92025a0
6,938
py
Python
tests/sources/test_clang_format.py
Justin-Fisher/webots
8a39e8e4390612919a8d82c7815aa914f4c079a4
[ "Apache-2.0" ]
1,561
2019-09-04T11:32:32.000Z
2022-03-31T18:00:09.000Z
tests/sources/test_clang_format.py
Justin-Fisher/webots
8a39e8e4390612919a8d82c7815aa914f4c079a4
[ "Apache-2.0" ]
2,184
2019-09-03T11:35:02.000Z
2022-03-31T10:01:44.000Z
tests/sources/test_clang_format.py
Justin-Fisher/webots
8a39e8e4390612919a8d82c7815aa914f4c079a4
[ "Apache-2.0" ]
1,013
2019-09-07T05:09:32.000Z
2022-03-31T13:01:28.000Z
#!/usr/bin/env python # Copyright 1996-2021 Cyberbotics 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 applica...
41.54491
113
0.528971
6,070
0.874892
0
0
0
0
0
0
2,072
0.298645
6b37d79a6bcd2f11e42ccf5ea2b0694fffb12722
10,361
py
Python
src/python/tests/core/system/shell_test.py
sanketsaurav/clusterfuzz
9f7efba7781614d50cdc6ab136b9bcf19607731c
[ "Apache-2.0" ]
1
2019-04-09T06:40:55.000Z
2019-04-09T06:40:55.000Z
src/python/tests/core/system/shell_test.py
Delaney6/clusterfuzz
9eeb08a85869b32733dd54c69b098688ff3b1bf5
[ "Apache-2.0" ]
null
null
null
src/python/tests/core/system/shell_test.py
Delaney6/clusterfuzz
9eeb08a85869b32733dd54c69b098688ff3b1bf5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.101045
79
0.705434
9,510
0.917865
0
0
332
0.032043
0
0
3,505
0.338288
6b3842e1a431bbf5fa9d29f78a1c73a20bb3a410
2,735
py
Python
Language Model/birnn/model.py
osamaqureshi/NLP-for-Urdu
864550dbf27244900c2be86e0bedcfb5bb519cb6
[ "MIT" ]
1
2020-10-22T20:18:22.000Z
2020-10-22T20:18:22.000Z
Language Model/birnn/model.py
osamaqureshi/NLP-for-Urdu
864550dbf27244900c2be86e0bedcfb5bb519cb6
[ "MIT" ]
null
null
null
Language Model/birnn/model.py
osamaqureshi/NLP-for-Urdu
864550dbf27244900c2be86e0bedcfb5bb519cb6
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf class Bidirectional(tf.keras.Model): def __init__(self, units: int, projection_units: int): super(Bidirectional, self).__init__() self.units = units self.projection_units = projection_units self.Layers = [tf.keras.layers.B...
42.734375
113
0.545521
2,261
0.826691
0
0
0
0
0
0
65
0.023766
6b385bed93debf4cc525192d73536e80c2566746
591
py
Python
python/ray/train/__init__.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
33
2020-05-27T14:25:24.000Z
2022-03-22T06:11:30.000Z
python/ray/train/__init__.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
227
2021-10-01T08:00:01.000Z
2021-12-28T16:47:26.000Z
python/ray/train/__init__.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
5
2020-08-06T15:53:07.000Z
2022-02-09T03:31:31.000Z
from ray.train.backend import BackendConfig from ray.train.callbacks import TrainingCallback from ray.train.checkpoint import CheckpointStrategy from ray.train.session import (get_dataset_shard, local_rank, load_checkpoint, report, save_checkpoint, world_rank, world_size) from ray.train.t...
42.214286
79
0.749577
0
0
0
0
0
0
0
0
177
0.299492
6b387e13117dba7e993918eb8dcf86f67409ab84
1,548
py
Python
test/test_contact_in_group.py
anastas11a/python_training
1daceddb193d92542f7f7313026a7e67af4d89bb
[ "Apache-2.0" ]
null
null
null
test/test_contact_in_group.py
anastas11a/python_training
1daceddb193d92542f7f7313026a7e67af4d89bb
[ "Apache-2.0" ]
null
null
null
test/test_contact_in_group.py
anastas11a/python_training
1daceddb193d92542f7f7313026a7e67af4d89bb
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from model.group import Group import random def test_add_contact_in_group(app, db): app.open_home_page() contact = db.get_contact_list() if len(contact) == 0: app.contact.create(Contact(firstname = "test firstname changed")) group = db.get_group_list() if l...
29.207547
73
0.709302
0
0
0
0
0
0
0
0
60
0.03876
6b3881271e2eaf5752f4f95cac12eda083886a6f
301
py
Python
byurak/accounts/admin.py
LikeLion-CAU-9th/Django-fancy-coder
53c770f4c1891f9076bed8c89d0b942b77e67667
[ "MIT" ]
null
null
null
byurak/accounts/admin.py
LikeLion-CAU-9th/Django-fancy-coder
53c770f4c1891f9076bed8c89d0b942b77e67667
[ "MIT" ]
2
2021-06-27T16:19:47.000Z
2021-08-01T16:41:54.000Z
byurak/accounts/admin.py
LikeLion-CAU-9th/Django-fancy-coder
53c770f4c1891f9076bed8c89d0b942b77e67667
[ "MIT" ]
2
2021-08-21T13:32:52.000Z
2021-12-20T10:12:45.000Z
from django.contrib import admin from accounts.models import User, Profile, UserFollow @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display = ['email', 'nickname'] list_display_links = ['email', 'nickname'] admin.site.register(Profile) admin.site.register(UserFollow)
23.153846
53
0.750831
122
0.405316
0
0
144
0.478405
0
0
34
0.112957
6b3934ad826855dff168d0197fe9075473c458c0
20,474
py
Python
viz_utils/eoa_viz.py
olmozavala/eoas-pyutils
f552a512e250f8aa16e1f3ababf8b4644253918b
[ "MIT" ]
null
null
null
viz_utils/eoa_viz.py
olmozavala/eoas-pyutils
f552a512e250f8aa16e1f3ababf8b4644253918b
[ "MIT" ]
null
null
null
viz_utils/eoa_viz.py
olmozavala/eoas-pyutils
f552a512e250f8aa16e1f3ababf8b4644253918b
[ "MIT" ]
null
null
null
import os from PIL import Image import cv2 from os import listdir from os.path import join import matplotlib.pyplot as plt import matplotlib from matplotlib.colors import LogNorm from io_utils.io_common import create_folder from viz_utils.constants import PlotMode, BackgroundType import pylab import numpy as np import...
41.869121
163
0.575657
19,107
0.933232
0
0
0
0
0
0
5,872
0.286803
6b39d4fb43437addee89cd08745a9f78f2bca971
1,414
py
Python
ade20kScripts/setup.py
fcendra/PSPnet18
bc4f4292f4ddd09dba7076ca0b587c8f60dfa043
[ "MIT" ]
1
2020-08-16T14:27:31.000Z
2020-08-16T14:27:31.000Z
ade20kScripts/setup.py
fcendra/PSPNet.pytorch
bc4f4292f4ddd09dba7076ca0b587c8f60dfa043
[ "MIT" ]
null
null
null
ade20kScripts/setup.py
fcendra/PSPNet.pytorch
bc4f4292f4ddd09dba7076ca0b587c8f60dfa043
[ "MIT" ]
null
null
null
from os import listdir from os.path import isfile, join from path import Path import numpy as np import cv2 # Dataset path target_path = Path('target/') annotation_images_path = Path('dataset/ade20k/annotations/training/').abspath() dataset = [ f for f in listdir(annotation_images_path) if isfile(join(annotation_image...
34.487805
97
0.65983
0
0
0
0
0
0
0
0
381
0.269448
6b3b2f253f3b9ff3bee85537636c322b9a7a1ad0
8,617
py
Python
src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/mesh/azext_mesh/servicefabricmesh/mgmt/servicefabricmesh/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
42.034146
150
0.82755
0
0
0
0
0
0
0
0
2,694
0.312638
6b3bed4772887b4ca3b8868f07f00b80ff44103a
1,503
py
Python
Core/managers/InputPeripherals.py
Scoppio/Rogue-EVE
a46f1faa9c7835e8c5838f6270fb5d75b349936b
[ "MIT" ]
2
2016-11-07T23:43:17.000Z
2016-11-08T21:49:57.000Z
Core/managers/InputPeripherals.py
Scoppio/Rogue-EVE
a46f1faa9c7835e8c5838f6270fb5d75b349936b
[ "MIT" ]
null
null
null
Core/managers/InputPeripherals.py
Scoppio/Rogue-EVE
a46f1faa9c7835e8c5838f6270fb5d75b349936b
[ "MIT" ]
null
null
null
import logging from models.GenericObjects import Vector2 logger = logging.getLogger('Rogue-EVE') class MouseController(object): """ Mouse controller needs the map, get over it """ def __init__(self, map=None, object_pool=None): self.mouse_coord = (0, 0) self.map = map self.obj...
33.4
109
0.630739
1,402
0.932801
0
0
0
0
0
0
315
0.209581
6b3c8e618e44b6365d5b13bea7673584e02f77cc
1,652
py
Python
the_unsync/thesync.py
vromanuk/async_techniques
7e1c6efcd4c81c322002eb3002d5bb929c5bc623
[ "MIT" ]
null
null
null
the_unsync/thesync.py
vromanuk/async_techniques
7e1c6efcd4c81c322002eb3002d5bb929c5bc623
[ "MIT" ]
null
null
null
the_unsync/thesync.py
vromanuk/async_techniques
7e1c6efcd4c81c322002eb3002d5bb929c5bc623
[ "MIT" ]
null
null
null
from unsync import unsync import asyncio import datetime import math import aiohttp import requests def main(): t0 = datetime.datetime.now() tasks = [ compute_some(), compute_some(), compute_some(), download_some(), download_some(), download_some(), down...
24.656716
99
0.626513
0
0
0
0
997
0.603511
546
0.330508
344
0.208232
6b3dd632291d2f985432a2f2e2e3bd67cb5c5d46
19,209
py
Python
sdk/python/pulumi_azure/desktopvirtualization/workspace.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/desktopvirtualization/workspace.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/desktopvirtualization/workspace.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, overload from .. import...
42.781737
221
0.645895
18,788
0.978083
0
0
16,531
0.860586
0
0
9,413
0.490031
6b3deda0113b8eb8f9bdf6272cc95e4fe0c53714
2,743
py
Python
jupyanno/sheets.py
betatim/jupyanno
11fbb1825c8e6966260620758768e0e1fa5cecc9
[ "Apache-2.0" ]
23
2018-08-24T16:48:20.000Z
2021-02-26T02:52:40.000Z
jupyanno/sheets.py
L3-data/jupyanno
6f6ec37e88b4d92f00bc359e7e39157b6b7f0eb5
[ "Apache-2.0" ]
73
2018-08-13T07:56:15.000Z
2018-10-09T13:55:20.000Z
jupyanno/sheets.py
L3-data/jupyanno
6f6ec37e88b4d92f00bc359e7e39157b6b7f0eb5
[ "Apache-2.0" ]
4
2018-08-13T07:55:50.000Z
2020-09-30T12:04:27.000Z
"""Code for reading and writing results to google sheets""" from bs4 import BeautifulSoup import requests import warnings import json import pandas as pd from six.moves.urllib.parse import urlparse, parse_qs from six.moves.urllib.request import urlopen _CELLSET_ID = "AIzaSyC8Zo-9EbXgHfqNzDxVb_YS_IIZBWtvoJ4" def get_...
33.45122
79
0.606635
0
0
0
0
0
0
0
0
724
0.263945
6b3e1154af6f1eb866c2c34cdc822a0ff3902ab9
2,191
py
Python
sorting/python/max_heap.py
zhou7rui/algorithm
9b5500ac3d8bdfd223bf9aec55e68675f2df7c59
[ "MIT" ]
6
2017-08-31T07:13:34.000Z
2018-09-10T08:54:43.000Z
sorting/python/max_heap.py
zhou7rui/algorithm
9b5500ac3d8bdfd223bf9aec55e68675f2df7c59
[ "MIT" ]
null
null
null
sorting/python/max_heap.py
zhou7rui/algorithm
9b5500ac3d8bdfd223bf9aec55e68675f2df7c59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* ''' 最大堆实现 98 / \ 96 84 / \ / \ 92 82 78 47 / \ / \ / \ / \ ...
24.076923
84
0.426289
1,380
0.626988
0
0
0
0
0
0
568
0.258065
6b3e3c2d633954d06881dc1103a976a7248201f2
585
py
Python
ink2canvas/svg/Use.py
greipfrut/pdftohtml5canvas
bd4b829a5fd02b503e6b32c268b265daa92e92e5
[ "MIT" ]
4
2016-05-06T21:29:39.000Z
2020-02-25T08:47:48.000Z
ink2canvas/svg/Use.py
letw/pdftohtml5canvas
bd4b829a5fd02b503e6b32c268b265daa92e92e5
[ "MIT" ]
null
null
null
ink2canvas/svg/Use.py
letw/pdftohtml5canvas
bd4b829a5fd02b503e6b32c268b265daa92e92e5
[ "MIT" ]
null
null
null
from ink2canvas.svg.AbstractShape import AbstractShape class Use(AbstractShape): def drawClone(self): drawables = self.rootTree.getDrawable() OriginName = self.getCloneId() OriginObject = self.rootTree.searchElementById(OriginName,drawables) OriginObject.runDraw() de...
32.5
76
0.647863
529
0.904274
0
0
0
0
0
0
13
0.022222
6b3ef77f1a082e51763d4a446e010e19a72af147
101
py
Python
docs/source/tutorial/code/read_csv.py
HanSooLim/DIL-Project
069fa7e35a2e1edfff30dc2540d9b87f5db95dde
[ "MIT", "BSD-3-Clause" ]
2
2021-10-16T15:08:05.000Z
2021-10-16T15:59:57.000Z
docs/source/tutorial/code/read_csv.py
HanSooLim/DIL-Project
069fa7e35a2e1edfff30dc2540d9b87f5db95dde
[ "MIT", "BSD-3-Clause" ]
8
2021-10-21T04:48:12.000Z
2021-11-07T03:09:25.000Z
docs/source/tutorial/code/read_csv.py
HanSooLim/DIL-Project
069fa7e35a2e1edfff30dc2540d9b87f5db95dde
[ "MIT", "BSD-3-Clause" ]
3
2021-05-02T13:39:14.000Z
2021-05-31T14:05:56.000Z
import pandas datas = pandas.read_csv("../../Sample/example_dataset.csv", index_col=0) print(datas)
20.2
72
0.742574
0
0
0
0
0
0
0
0
34
0.336634
6b4010a8299e923b75856db3391db03cdf9dc135
641
py
Python
app.py
rghose/lol3
c902e61bd5d69c541b46c834a5183e4da8eec591
[ "BSD-2-Clause" ]
null
null
null
app.py
rghose/lol3
c902e61bd5d69c541b46c834a5183e4da8eec591
[ "BSD-2-Clause" ]
null
null
null
app.py
rghose/lol3
c902e61bd5d69c541b46c834a5183e4da8eec591
[ "BSD-2-Clause" ]
null
null
null
from flask import * app = Flask(__name__) import botty # ---------------------------------- @app.route("/", methods=['GET', 'POST']) def hello(): if request.method == 'POST': data = request.form["query"] return render_template("index.html",data=data) return render_template("main.html") # ...
23.740741
54
0.483619
0
0
0
0
352
0.549142
0
0
238
0.371295
6b40618c90c089307047e8b7e28b599c38d7a399
451
py
Python
config.py
metarom-quality/gooseberry
544503c52edd360a53d09f69ea6b4a0645aa617a
[ "MIT" ]
null
null
null
config.py
metarom-quality/gooseberry
544503c52edd360a53d09f69ea6b4a0645aa617a
[ "MIT" ]
null
null
null
config.py
metarom-quality/gooseberry
544503c52edd360a53d09f69ea6b4a0645aa617a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os DATABASE="/home/tomate/Warehouse/syte/meta.db" XLSDIR = "/mnt/c/Users/Natacha/Documents/TempDocs/progen/Formula/" temp = [i for i in next(os.walk(XLSDIR))[2] if i.endswith("xlsx") or i.endswith("xls")] flist = {} for i in temp: name = i.split(" ")[0].split("-")[0].split(".")[0] ...
26.529412
87
0.627494
0
0
0
0
0
0
0
0
148
0.32816
6b41d9378cb46e318f4cb6580acecc3d11ab3c3b
1,054
py
Python
setup.py
markostrajkov/range-requests-proxy
74d4bfee93098854c7b9f723c03c2316e729f295
[ "BSD-3-Clause" ]
1
2016-08-14T14:12:04.000Z
2016-08-14T14:12:04.000Z
setup.py
markostrajkov/range-requests-proxy
74d4bfee93098854c7b9f723c03c2316e729f295
[ "BSD-3-Clause" ]
null
null
null
setup.py
markostrajkov/range-requests-proxy
74d4bfee93098854c7b9f723c03c2316e729f295
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")] def initialize_options(self): TestCommand.initialize_options(self) self.py...
26.35
76
0.665085
467
0.443074
0
0
0
0
0
0
332
0.314991
6b42790dafdbd5621ed121da922a0750203f73ba
918
py
Python
tests/pytorch_pfn_extras_tests/onnx/test_load_model.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
243
2020-05-12T01:15:46.000Z
2022-03-21T22:07:57.000Z
tests/pytorch_pfn_extras_tests/onnx/test_load_model.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
495
2020-05-12T06:45:12.000Z
2022-03-31T07:14:02.000Z
tests/pytorch_pfn_extras_tests/onnx/test_load_model.py
kmaehashi/pytorch-pfn-extras
70b5db0dad8a8e342cc231e8a18c6f32ce250d1c
[ "MIT" ]
37
2020-05-12T02:16:07.000Z
2021-08-11T06:00:16.000Z
import os import pytest import torch import pytorch_pfn_extras.onnx as tou from tests.pytorch_pfn_extras_tests.onnx.test_export_testcase import Net @pytest.mark.filterwarnings("ignore:Named tensors .* experimental:UserWarning") def test_onnx_load_model(): model = Net() outdir = "out/load_model_test" tou...
34
79
0.704793
0
0
0
0
762
0.830065
0
0
173
0.188453
6b433031281aa45b18a53118e3852e760126a4ce
867
py
Python
validate/v1/base.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
4
2019-09-04T09:16:24.000Z
2019-09-18T08:50:36.000Z
validate/v1/base.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
null
null
null
validate/v1/base.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:UTF-8 -*- ''' @Description: 数据库验证器 @Author: Zpp @Date: 2020-05-28 13:44:29 @LastEditors: Zpp @LastEditTime: 2020-05-28 14:02:02 ''' params = { # 验证字段 'fields': { 'type': { 'name': '导出类型', 'type': 'int', 'between': [1, 2, 3], ...
19.704545
34
0.392157
0
0
0
0
0
0
0
0
556
0.570256
6b434ec1049bc3564470ff973bc2f2c30ca659c6
329
py
Python
example/speech_recognition/stt_layer_slice.py
axbaretto/mxnet
5f593885356ff6d14f5519fa18e79b944beb51cd
[ "Apache-2.0" ]
92
2017-04-25T15:40:55.000Z
2022-03-28T17:54:53.000Z
example/speech_recognition/stt_layer_slice.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
18
2017-05-15T05:16:41.000Z
2019-06-14T06:02:08.000Z
example/speech_recognition/stt_layer_slice.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
39
2017-04-23T12:38:45.000Z
2021-04-04T05:01:03.000Z
import mxnet as mx def slice_symbol_to_seq_symobls(net, seq_len, axis=1, squeeze_axis=True): net = mx.sym.SliceChannel(data=net, num_outputs=seq_len, axis=axis, squeeze_axis=squeeze_axis) hidden_all = [] for seq_index in range(seq_len): hidden_all.append(net[seq_index]) net = hidden_all re...
29.909091
98
0.726444
0
0
0
0
0
0
0
0
0
0
6b4469c0d369d163f87c18b571da60869e4d600b
8,000
py
Python
api/auth.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
api/auth.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
api/auth.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
import datetime import json from calendar import timegm from urllib.parse import parse_qsl import requests from allauth.socialaccount import models as aamodels from requests_oauthlib import OAuth1 from rest_framework import parsers, renderers from rest_framework import status from rest_framework.authtoken.models impor...
42.105263
101
0.61525
5,794
0.72425
0
0
0
0
0
0
1,362
0.17025
6b454d373a4daf57bd5eb97d08752d3322beb78a
6,146
py
Python
bcgs/disqus_objects.py
aeturnum/bcgs
e5ae4c9f4cdd45b47615f00581dcc3792c281ea3
[ "MIT" ]
null
null
null
bcgs/disqus_objects.py
aeturnum/bcgs
e5ae4c9f4cdd45b47615f00581dcc3792c281ea3
[ "MIT" ]
null
null
null
bcgs/disqus_objects.py
aeturnum/bcgs
e5ae4c9f4cdd45b47615f00581dcc3792c281ea3
[ "MIT" ]
null
null
null
import requests import aiohttp from constants import API_KEY class User(object): def __init__(self, author_info): # "author": { # "about": "", # "avatar": { # "cache": "//a.disquscdn.com/1519942534/images/noavatar92.png", # ...
36.802395
143
0.493817
6,082
0.989587
0
0
1,334
0.217052
572
0.093069
3,170
0.515783
6b46022f290a59526dcdb44e97324f9e8df677ff
11,520
py
Python
nvdbgeotricks.py
LtGlahn/estimat_gulstripe
8bb93d52131bdda9846810dbd6bac7f872377859
[ "MIT" ]
null
null
null
nvdbgeotricks.py
LtGlahn/estimat_gulstripe
8bb93d52131bdda9846810dbd6bac7f872377859
[ "MIT" ]
null
null
null
nvdbgeotricks.py
LtGlahn/estimat_gulstripe
8bb93d52131bdda9846810dbd6bac7f872377859
[ "MIT" ]
null
null
null
""" En samling hjelpefunksjoner som bruker nvdbapiv3-funksjonene til å gjøre nyttige ting, f.eks. lagre geografiske datasett Disse hjelpefunksjonene forutsetter fungerende installasjon av geopandas, shapely og en del andre ting som må installeres separat. Noen av disse bibliotekene kunne historisk av og til være plun...
39.183673
157
0.615712
0
0
0
0
0
0
0
0
5,684
0.490889
6b477719b2c91c9e3ee4ff6ba226b115ec30e5ff
979
py
Python
019_CountingSundays.py
joetache4/project-euler
82f9e25b414929d9f62d94905906ba2f57db7935
[ "MIT" ]
null
null
null
019_CountingSundays.py
joetache4/project-euler
82f9e25b414929d9f62d94905906ba2f57db7935
[ "MIT" ]
null
null
null
019_CountingSundays.py
joetache4/project-euler
82f9e25b414929d9f62d94905906ba2f57db7935
[ "MIT" ]
null
null
null
""" You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday. Thirty days has September, April, June and November. All the rest have thirty-one, Saving February alone, Which has twenty-eight, rain or shine. And on leap years, twen...
23.878049
109
0.660878
0
0
0
0
0
0
0
0
604
0.616956
6b496440b1b757ff1f65cdc922e139b550fcb6ef
473
py
Python
setup.py
aagaard/dbservice
47daadab307e6744ef151dd4e0aacff27dcda881
[ "MIT" ]
1
2020-04-27T16:30:50.000Z
2020-04-27T16:30:50.000Z
setup.py
aagaard/dbservice
47daadab307e6744ef151dd4e0aacff27dcda881
[ "MIT" ]
null
null
null
setup.py
aagaard/dbservice
47daadab307e6744ef151dd4e0aacff27dcda881
[ "MIT" ]
1
2021-01-13T02:16:56.000Z
2021-01-13T02:16:56.000Z
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ Setup for the dbservice """ from setuptools import setup, find_packages setup( name='dbservice', version='0.9', description="Database service for storing meter data", author="Søren Aagaard Mikkelsen", author_email='smik@eng.au.dk', url='htt...
22.52381
58
0.646934
0
0
0
0
0
0
0
0
257
0.542194
6b4af341d1bd006f2df5874fa788b8866cb5c77d
800
py
Python
venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/argspec/facts/facts.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The arg spec for the junos facts module. """ from __future__ import absolute_import, division, print_function __metaclass__ = type class FactsArgs(object): """ The...
25.806452
74
0.60625
515
0.64375
0
0
0
0
0
0
405
0.50625
6b4c6ac7304c74c6af0453d81ea3a3dfae8d7b81
1,033
py
Python
server/dbcls/api/resources/authenticate.py
ripry/umakaviewer
e3df32313219d1b9d65edb6d180b2b4799d87e25
[ "MIT" ]
2
2017-08-17T02:01:48.000Z
2019-12-19T12:11:08.000Z
server/dbcls/api/resources/authenticate.py
ripry/umakaviewer
e3df32313219d1b9d65edb6d180b2b4799d87e25
[ "MIT" ]
3
2021-04-04T01:25:07.000Z
2021-10-20T06:07:29.000Z
server/dbcls/api/resources/authenticate.py
ripry/umakaviewer
e3df32313219d1b9d65edb6d180b2b4799d87e25
[ "MIT" ]
4
2020-12-01T04:20:55.000Z
2020-12-04T04:51:54.000Z
from flask_restful import Resource, reqparse from firebase_admin import auth as firebase_auth from dbcls.models import User parser = reqparse.RequestParser() parser.add_argument('token', type=str, required=True, nullable=False) class Authenticate(Resource): def post(self): try: args = parse...
33.322581
75
0.653437
799
0.773475
0
0
0
0
0
0
129
0.124879
860946d6e7694a280a705683f6a6189d61f153d3
475
py
Python
GetJSONData_NLPParser.py
Feiyi-Ding/2021A
f599f0a21e05964fffce3dcf2d32ef70ddc3c75d
[ "Apache-2.0" ]
null
null
null
GetJSONData_NLPParser.py
Feiyi-Ding/2021A
f599f0a21e05964fffce3dcf2d32ef70ddc3c75d
[ "Apache-2.0" ]
2
2021-03-22T17:57:27.000Z
2021-03-22T17:58:01.000Z
GetJSONData_NLPParser.py
Feiyi-Ding/2021A
f599f0a21e05964fffce3dcf2d32ef70ddc3c75d
[ "Apache-2.0" ]
4
2021-03-09T16:15:30.000Z
2021-03-17T15:04:17.000Z
#Import required modules import requests import json # Get json results for the required input InputString = "kobe is a basketball player" headers = { 'Content-type': 'application/json', } data = '{"text":InputString = '+ InputString + '}' response = requests.post('http://66.76.242.198:9888/', d...
23.75
76
0.688421
0
0
0
0
0
0
0
0
315
0.663158
86095983c39bff7a689e2233b004ba39842ac699
1,719
py
Python
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/bert_extraction/steal_bert_classifier/utils/wiki103_sentencize.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
29.135593
76
0.64107
0
0
0
0
0
0
0
0
877
0.51018
860a02e12fea480e4c4b823d5c9ef02e0bf6f4a4
53
py
Python
example_bots/any_to_any/__init__.py
budacom/trading-bots
9ac362cc21ce185e7b974bf9bcc7480ff9c6b2aa
[ "MIT" ]
21
2018-08-10T16:45:21.000Z
2022-01-25T13:04:07.000Z
example_bots/any_to_any/__init__.py
rob-Hitchens/trading-bots
16d53be0c32b45bee0520d8192629ade09727e24
[ "MIT" ]
6
2018-07-18T15:34:32.000Z
2021-02-02T21:59:04.000Z
example_bots/any_to_any/__init__.py
rob-Hitchens/trading-bots
16d53be0c32b45bee0520d8192629ade09727e24
[ "MIT" ]
10
2018-10-24T22:14:10.000Z
2022-02-08T17:21:47.000Z
default_bot = 'example_bots.any_to_any.bot.AnyToAny'
26.5
52
0.830189
0
0
0
0
0
0
0
0
38
0.716981
860a91391db83eb979d9849bfe427e0dbb8bf3eb
1,171
py
Python
helpers.py
owenjones/CaBot
dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc
[ "MIT" ]
3
2020-03-26T11:43:40.000Z
2021-12-27T18:26:06.000Z
helpers.py
owenjones/CaBot
dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc
[ "MIT" ]
2
2021-05-14T01:31:12.000Z
2021-08-23T16:07:44.000Z
helpers.py
owenjones/CaBot
dd47c077b21cbcf52c0ffd2e30b47fb736a41ebc
[ "MIT" ]
1
2020-04-22T19:06:43.000Z
2020-04-22T19:06:43.000Z
from server import roles def hasRole(member, roleID): role = member.guild.get_role(roleID) return role in member.roles def gainedRole(before, after, roleID): role = before.guild.get_role(roleID) return (role not in before.roles) and (role in after.roles) def isExplorer(ctx): return hasRole(ctx...
20.189655
63
0.679761
550
0.469684
0
0
0
0
0
0
39
0.033305
860af185b3aec78bf051659802424a1b61b8f5ba
6,742
py
Python
databuilder/loader/file_system_neo4j_csv_loader.py
davcamer/amundsendatabuilder
1bd6cd5c30413640d4c377dc3c59c283e86347eb
[ "Apache-2.0" ]
null
null
null
databuilder/loader/file_system_neo4j_csv_loader.py
davcamer/amundsendatabuilder
1bd6cd5c30413640d4c377dc3c59c283e86347eb
[ "Apache-2.0" ]
null
null
null
databuilder/loader/file_system_neo4j_csv_loader.py
davcamer/amundsendatabuilder
1bd6cd5c30413640d4c377dc3c59c283e86347eb
[ "Apache-2.0" ]
1
2019-09-21T23:56:41.000Z
2019-09-21T23:56:41.000Z
import csv import logging import os import shutil from csv import DictWriter # noqa: F401 from pyhocon import ConfigTree, ConfigFactory # noqa: F401 from typing import Dict, Any # noqa: F401 from databuilder.job.base_job import Job from databuilder.loader.base_loader import Loader from databuilder.models.neo4j_csv...
35.671958
82
0.590478
6,167
0.914714
0
0
0
0
0
0
2,329
0.345446
860b3ffda1922298f17135c358d64932d9e08e95
3,015
py
Python
sample_program_04_02_knn.py
pepsinal/python_doe_kspub
65ae5c2d214f1a34fa242fee7d63453c81d56bfe
[ "MIT" ]
16
2021-01-11T17:57:05.000Z
2022-03-29T07:04:26.000Z
sample_program_04_02_knn.py
pepsinal/python_doe_kspub
65ae5c2d214f1a34fa242fee7d63453c81d56bfe
[ "MIT" ]
2
2021-08-12T03:18:52.000Z
2021-08-13T06:31:55.000Z
sample_program_04_02_knn.py
pepsinal/python_doe_kspub
65ae5c2d214f1a34fa242fee7d63453c81d56bfe
[ "MIT" ]
14
2021-06-05T11:17:45.000Z
2022-03-26T02:56:40.000Z
# -*- coding: utf-8 -*- """ @author: Hiromasa Kaneko """ import pandas as pd from sklearn.neighbors import NearestNeighbors # k-NN k_in_knn = 5 # k-NN における k rate_of_training_samples_inside_ad = 0.96 # AD 内となるトレーニングデータの割合。AD のしきい値を決めるときに使用 dataset = pd.read_csv('resin.csv', index_col=0, header=0) x_pr...
49.42623
121
0.769818
0
0
0
0
0
0
0
0
2,097
0.522552
860b82a531bcd228b8d28c903681d9b70c4a8b49
2,793
py
Python
topology.py
destinysky/nsh_sfc
290fa49df2880527e0b7844bf3bec4d55c4945a6
[ "Apache-2.0" ]
2
2020-10-26T17:22:04.000Z
2020-11-11T13:19:08.000Z
topology.py
destinysky/nsh_sfc
290fa49df2880527e0b7844bf3bec4d55c4945a6
[ "Apache-2.0" ]
null
null
null
topology.py
destinysky/nsh_sfc
290fa49df2880527e0b7844bf3bec4d55c4945a6
[ "Apache-2.0" ]
3
2020-03-28T12:53:35.000Z
2021-06-29T18:13:43.000Z
#!/usr/bin/python """ """ from mininet.net import Mininet from mininet.node import Controller, RemoteController, OVSKernelSwitch,UserSwitch #OVSLegacyKernelSwitch, UserSwitch from mininet.cli import CLI from mininet.log import setLogLevel from mininet.link import Link, TCLink #conf_port=50000 conf_ip_1='10.0.0.254'...
30.358696
90
0.617257
0
0
0
0
0
0
0
0
1,026
0.367347
860d13de1aea5d89a236db351b3f802f70a454be
815
py
Python
lampara/lamp.py
gventuraagramonte/python
d96796c302f2f423a8e949f9c7d33a3bfabf8a0f
[ "MIT" ]
null
null
null
lampara/lamp.py
gventuraagramonte/python
d96796c302f2f423a8e949f9c7d33a3bfabf8a0f
[ "MIT" ]
null
null
null
lampara/lamp.py
gventuraagramonte/python
d96796c302f2f423a8e949f9c7d33a3bfabf8a0f
[ "MIT" ]
null
null
null
#Definicion de la clase #antes de empezar una clase se declara de la siguiente manera class Lamp: _LAMPS = [''' . . | , \ ' / ` ,-. ' --- ( ) --- \ / _|=|_ |_____| ''', ''' ,-. ( ) \ / _|=|_ |___...
19.404762
114
0.490798
724
0.888344
0
0
0
0
0
0
371
0.455215
860d27b54af610b3354ec914d17139eb593aede5
1,127
py
Python
lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py
sneumann/galaxy
f6011bab5b8adbabae4986a45849bb9158ffc8bb
[ "CC-BY-3.0" ]
1
2019-07-27T19:30:55.000Z
2019-07-27T19:30:55.000Z
lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py
sneumann/galaxy
f6011bab5b8adbabae4986a45849bb9158ffc8bb
[ "CC-BY-3.0" ]
4
2021-02-08T20:28:34.000Z
2022-03-02T02:52:55.000Z
lib/galaxy/model/migrate/versions/0084_add_ldda_id_to_implicit_conversion_table.py
sneumann/galaxy
f6011bab5b8adbabae4986a45849bb9158ffc8bb
[ "CC-BY-3.0" ]
1
2018-05-30T07:38:54.000Z
2018-05-30T07:38:54.000Z
""" Migration script to add 'ldda_id' column to the implicitly_converted_dataset_association table. """ from __future__ import print_function import logging from sqlalchemy import ( Column, ForeignKey, Integer, MetaData ) from galaxy.model.migrate.versions.util import ( add_column, drop_colum...
26.833333
126
0.747116
0
0
0
0
0
0
0
0
400
0.354925
860d477a0db1e737249b6ea5b90c2c542a001e37
102
py
Python
ds.py
tobiichiorigami1/csp
e1f419869a0a1aa3e39aeb5888571267be5d80bd
[ "bzip2-1.0.6" ]
null
null
null
ds.py
tobiichiorigami1/csp
e1f419869a0a1aa3e39aeb5888571267be5d80bd
[ "bzip2-1.0.6" ]
null
null
null
ds.py
tobiichiorigami1/csp
e1f419869a0a1aa3e39aeb5888571267be5d80bd
[ "bzip2-1.0.6" ]
null
null
null
votes_t_shape = [3, 0, 1, 2] for i in range(6 - 4): votes_t_shape += [i + 4] print(votes_t_shape)
20.4
28
0.617647
0
0
0
0
0
0
0
0
0
0
860e80203a82d7ffdb492d80f10371c72ae4d44a
8,231
py
Python
scripts/adam/cc100_baselines.py
TimDettmers/sched
e16735f2c2eb6a51f5cf29ead534041574034e2e
[ "MIT" ]
1
2020-04-22T17:49:48.000Z
2020-04-22T17:49:48.000Z
scripts/adam/cc100_baselines.py
TimDettmers/sched
e16735f2c2eb6a51f5cf29ead534041574034e2e
[ "MIT" ]
null
null
null
scripts/adam/cc100_baselines.py
TimDettmers/sched
e16735f2c2eb6a51f5cf29ead534041574034e2e
[ "MIT" ]
null
null
null
import numpy as np import itertools import gpuscheduler import argparse import os import uuid import hashlib import glob import math from itertools import product from torch.optim.lr_scheduler import OneCycleLR from os.path import join parser = argparse.ArgumentParser(description='Compute script.') parser.add_argumen...
37.756881
773
0.628721
0
0
0
0
0
0
0
0
4,793
0.582311
860eaaee93a0cd4aceb0ebc7da1f6e2b65f05589
224
py
Python
boa3_test/test_sc/event_test/EventNep5Transfer.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/event_test/EventNep5Transfer.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/event_test/EventNep5Transfer.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import public from boa3.builtin.contract import Nep5TransferEvent transfer = Nep5TransferEvent @public def Main(from_addr: bytes, to_addr: bytes, amount: int): transfer(from_addr, to_addr, amount)
18.666667
56
0.785714
0
0
0
0
105
0.46875
0
0
0
0
860efe37f66eefaa650bbcf92ef4ff07b3bc6d05
1,844
py
Python
abtest/views.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
null
null
null
abtest/views.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
null
null
null
abtest/views.py
SchuylerGoodman/topicalguide
7c26c8be8e1dddb7bf2be33ea9a7ba59034bf620
[ "PostgreSQL" ]
null
null
null
# The Topical Guide # Copyright 2010-2011 Brigham Young University # # This file is part of the Topical Guide <http://nlp.cs.byu.edu/topic_browser>. # # The Topical Guide is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published by the # Free Soft...
37.632653
79
0.750542
0
0
0
0
0
0
0
0
1,222
0.66269
860f02df53bc5c8189989d03588264d399ebda12
2,086
py
Python
neurodocker/reprozip/tests/test_merge.py
sulantha2006/neurodocker
d03fe865ae05fea2f7ce9a8b417717dae7bd640f
[ "Apache-2.0" ]
null
null
null
neurodocker/reprozip/tests/test_merge.py
sulantha2006/neurodocker
d03fe865ae05fea2f7ce9a8b417717dae7bd640f
[ "Apache-2.0" ]
null
null
null
neurodocker/reprozip/tests/test_merge.py
sulantha2006/neurodocker
d03fe865ae05fea2f7ce9a8b417717dae7bd640f
[ "Apache-2.0" ]
1
2020-01-17T17:30:16.000Z
2020-01-17T17:30:16.000Z
"""Tests for merge.py.""" from __future__ import absolute_import, division, print_function from glob import glob import os import tarfile import tempfile from neurodocker.docker import client from neurodocker.reprozip.trace import ReproZipMinimizer from neurodocker.reprozip.merge import merge_pack_files def _creat...
34.196721
78
0.64861
0
0
0
0
0
0
0
0
291
0.139501
860f4df3a0a1148896e3af7d663a6706e11e5b27
2,429
py
Python
build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py
dolang/build-kivy-linux
bb3e6dce956659d94604b524aa6702e8c390e15a
[ "MIT" ]
null
null
null
build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py
dolang/build-kivy-linux
bb3e6dce956659d94604b524aa6702e8c390e15a
[ "MIT" ]
null
null
null
build/step-3-kivy-almost-manylinux/scripts/redirect_html5.py
dolang/build-kivy-linux
bb3e6dce956659d94604b524aa6702e8c390e15a
[ "MIT" ]
null
null
null
""" HTML5 contexts. :author: Dominik Lang :license: MIT """ import contextlib import io import sys __all__ = ['create_document', 'tag', 'as_link'] class create_document(contextlib.redirect_stdout): """Redirect output to an HTML5 document specified by new_target. A HTML document titl...
28.244186
76
0.573075
2,061
0.848497
152
0.062577
180
0.074105
0
0
785
0.323178
860f856dd45e64104260a9b161c8dc5f275852d1
1,454
py
Python
lab/hw03-part-i_nov14.py
jzacsh/neuralnets-cmp464
de35bbba93b87446b231bf012a8de5acc7896a04
[ "Apache-2.0" ]
1
2017-08-30T04:31:00.000Z
2017-08-30T04:31:00.000Z
lab/hw03-part-i_nov14.py
jzacsh/neuralnets-cmp464
de35bbba93b87446b231bf012a8de5acc7896a04
[ "Apache-2.0" ]
1
2017-10-10T23:30:05.000Z
2017-10-16T00:32:09.000Z
lab/hw03-part-i_nov14.py
jzacsh/neuralnets-cmp464
de35bbba93b87446b231bf012a8de5acc7896a04
[ "Apache-2.0" ]
null
null
null
""" Jonathan Zacsh's solution to homework #3, Nov 14., Part I """ # Per homework instructions, following lead from matlab example by professor: # http://comet.lehman.cuny.edu/schneider/Fall17/CMP464/Maple/PartialDerivatives1.pdf import sys import tensorflow as tf import tempfile import os import numpy as np os.envir...
31.608696
86
0.681568
237
0.162999
0
0
0
0
0
0
646
0.444292
860ffd8531729695796f989eadffa27a2953a3a7
8,437
py
Python
modules/experiments_bc/set_tp.py
GChrysostomou/tasc
d943de343d725b99fa1a1ad201b32a21e5970801
[ "MIT" ]
2
2021-12-27T12:46:48.000Z
2022-03-01T11:43:41.000Z
modules/experiments_bc/set_tp.py
tbose20/D-Ref
eda6170a72838b89637df241dd5619e001f3afdb
[ "MIT" ]
null
null
null
modules/experiments_bc/set_tp.py
tbose20/D-Ref
eda6170a72838b89637df241dd5619e001f3afdb
[ "MIT" ]
3
2021-11-10T15:15:02.000Z
2022-03-01T11:44:35.000Z
import torch import torch.nn as nn import numpy as np import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import pandas as pd from sklearn.metrics import * from sklearn.metrics import precision_recall_fscore_support as prfs device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') d...
34.157895
96
0.505393
0
0
0
0
0
0
0
0
405
0.048003
8610097182707b2aa40abc68e79c148fa664b19d
4,224
py
Python
helios/tasks.py
mattmurch/helios-server
c4f5409bbf7117fc561774208c07801b9ae61ff2
[ "Apache-2.0" ]
null
null
null
helios/tasks.py
mattmurch/helios-server
c4f5409bbf7117fc561774208c07801b9ae61ff2
[ "Apache-2.0" ]
2
2018-08-20T18:44:57.000Z
2019-01-31T17:45:08.000Z
helios/tasks.py
mattmurch/helios-server
c4f5409bbf7117fc561774208c07801b9ae61ff2
[ "Apache-2.0" ]
1
2017-12-10T15:33:18.000Z
2017-12-10T15:33:18.000Z
""" Celery queued tasks for Helios 2010-08-01 ben@adida.net """ import copy from celery import shared_task from celery.utils.log import get_logger import signals from models import CastVote, Election, Voter, VoterFile from view_utils import render_template_raw @shared_task def cast_vote_verify_and_store(cast_vote_i...
29.746479
111
0.722775
0
0
0
0
3,934
0.931345
0
0
625
0.147964
8611c5caf6cad3b09e4113e9f2732c41ec4305ae
992
py
Python
tests/conftest.py
AlanRosenthal/virtual-dealer
5c5689172b38b122a69e5ca244497646bf9d8fa8
[ "MIT" ]
1
2020-03-23T21:03:46.000Z
2020-03-23T21:03:46.000Z
tests/conftest.py
AlanRosenthal/virtual-dealer
5c5689172b38b122a69e5ca244497646bf9d8fa8
[ "MIT" ]
null
null
null
tests/conftest.py
AlanRosenthal/virtual-dealer
5c5689172b38b122a69e5ca244497646bf9d8fa8
[ "MIT" ]
null
null
null
""" pytest fixtures """ import unittest.mock as mock import pytest import virtual_dealer.api @pytest.fixture(name="client") def fixture_client(): """ Client test fixture for testing flask APIs """ return virtual_dealer.api.app.test_client() @pytest.fixture(name="store") def fixture_store(): """ ...
20.244898
87
0.688508
0
0
382
0.385081
884
0.891129
0
0
377
0.38004
8612815990d7f299a2f7af8454d7502cc4069e32
4,890
py
Python
corehq/apps/fixtures/tests.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
corehq/apps/fixtures/tests.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/fixtures/tests.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
from xml.etree import ElementTree from casexml.apps.case.tests.util import check_xml_line_by_line from casexml.apps.case.xml import V2 from corehq.apps.fixtures import fixturegenerators from corehq.apps.fixtures.models import FixtureDataItem, FixtureDataType, FixtureOwnership, FixtureTypeField, \ FixtureItemField, ...
36.492537
111
0.537628
4,357
0.891002
0
0
0
0
0
0
1,019
0.208384
86160af095ef8d0435d3f1fd7140e93918c54b2c
2,685
py
Python
readthedocs/search/signals.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
10
2019-05-21T03:00:40.000Z
2022-03-12T11:24:39.000Z
readthedocs/search/signals.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
12
2019-12-05T04:47:01.000Z
2022-01-09T00:56:58.000Z
readthedocs/search/signals.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
5
2019-07-08T23:45:10.000Z
2021-02-26T07:29:49.000Z
# -*- coding: utf-8 -*- """We define custom Django signals to trigger before executing searches.""" from django.db.models.signals import post_save, pre_delete from django.dispatch import receiver from django_elasticsearch_dsl.apps import DEDConfig from readthedocs.projects.models import HTMLFile, Project from readthe...
33.987342
80
0.714339
0
0
0
0
2,210
0.823091
0
0
772
0.287523
86161f7e9f969066db82c2f68d6e2be07cfb7ad1
3,694
py
Python
src/falconpy/_endpoint/_filevantage.py
kra-ts/falconpy
c7c4ed93cb3b56cdfd86757f573fde57e4ccf857
[ "Unlicense" ]
null
null
null
src/falconpy/_endpoint/_filevantage.py
kra-ts/falconpy
c7c4ed93cb3b56cdfd86757f573fde57e4ccf857
[ "Unlicense" ]
null
null
null
src/falconpy/_endpoint/_filevantage.py
kra-ts/falconpy
c7c4ed93cb3b56cdfd86757f573fde57e4ccf857
[ "Unlicense" ]
null
null
null
"""Internal API endpoint constant library. _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | ...
35.180952
95
0.600704
0
0
0
0
0
0
0
0
3,077
0.832972
86168b46a8faaf9e6d96f727abd89d459b3f8564
8,837
py
Python
TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/pip/_internal/cli/progress_bars.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-06-20T19:28:37.000Z
2021-06-20T19:28:37.000Z
import itertools import sys from signal import SIGINT, default_int_handler, signal from typing import Any, Dict, List from pip._vendor.progress.bar import Bar, FillingCirclesBar, IncrementalBar from pip._vendor.progress.spinner import Spinner from pip._internal.utils.compat import WINDOWS from pip._internal....
33.729008
88
0.625099
6,572
0.743691
258
0.029195
542
0.061333
0
0
3,894
0.440647
86169ad5486623924eba0430b7afc33561fa170a
4,012
py
Python
scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
8
2021-06-30T06:55:14.000Z
2022-03-18T01:57:14.000Z
scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
1
2021-06-30T03:08:15.000Z
2021-06-30T03:08:15.000Z
scripts/study_case/ID_5/matchzoo/auto/tuner/tune.py
kzbnb/numerical_bugs
bc22e72bcc06df6ce7889a25e0aeed027bde910b
[ "Apache-2.0" ]
2
2021-11-17T11:19:48.000Z
2021-11-18T03:05:58.000Z
import typing import numpy as np import scripts.study_case.ID_5.matchzoo as mz from scripts.study_case.ID_5.matchzoo.engine.base_metric import BaseMetric from .tuner import Tuner def tune( params: 'mz.ParamTable', optimizer: str = 'adam', trainloader: mz.dataloader.DataLoader = None, validloader: mz...
38.951456
79
0.642323
0
0
0
0
0
0
0
0
3,184
0.793619
861799191a7d114eaded88fe6c8c8ba1d448c7c7
4,392
py
Python
libs/gym/tests/wrappers/test_pixel_observation.py
maxgold/icml22
49f026dd2314091639b52f5b8364a29e8000b738
[ "MIT" ]
null
null
null
libs/gym/tests/wrappers/test_pixel_observation.py
maxgold/icml22
49f026dd2314091639b52f5b8364a29e8000b738
[ "MIT" ]
null
null
null
libs/gym/tests/wrappers/test_pixel_observation.py
maxgold/icml22
49f026dd2314091639b52f5b8364a29e8000b738
[ "MIT" ]
null
null
null
"""Tests for the pixel observation wrapper.""" from typing import Optional import pytest import numpy as np import gym from gym import spaces from gym.wrappers.pixel_observation import PixelObservationWrapper, STATE_KEY class FakeEnvironment(gym.Env): def __init__(self): self.action_space = spaces.Box(s...
35.136
85
0.651184
4,158
0.946721
0
0
2,782
0.633424
0
0
289
0.065801
8618701c5bffe90f48c4363133a7c542c718e23a
2,144
py
Python
real_plot_fft_stft_impl.py
MuAuan/Scipy-Swan
2d79175e8fc2ab8179ea95e1b22918c29d88b7b5
[ "MIT" ]
null
null
null
real_plot_fft_stft_impl.py
MuAuan/Scipy-Swan
2d79175e8fc2ab8179ea95e1b22918c29d88b7b5
[ "MIT" ]
null
null
null
real_plot_fft_stft_impl.py
MuAuan/Scipy-Swan
2d79175e8fc2ab8179ea95e1b22918c29d88b7b5
[ "MIT" ]
null
null
null
import pyaudio import wave from scipy.fftpack import fft, ifft import numpy as np import matplotlib.pyplot as plt import cv2 from scipy import signal from swan import pycwt CHUNK = 1024 FORMAT = pyaudio.paInt16 # int16型 CHANNELS = 1 # 1;monoral 2;ステレオ- RATE = 22100 # 22.1kHz 44.1kHz RECORD_SECO...
24.930233
62
0.620802
0
0
0
0
0
0
0
0
231
0.10655
8618b81e3f7d92d3dac7ffa13548c536b939484f
109
py
Python
tests/pydecompile-test/baselines/events_in_code_blocks.py
gengxf0505/pxt
eca93a0e0605e68adcfbebce778cc5912a10efcf
[ "MIT" ]
1
2020-04-17T01:45:18.000Z
2020-04-17T01:45:18.000Z
tests/pydecompile-test/baselines/events_in_code_blocks.py
gengxf0505/pxt
eca93a0e0605e68adcfbebce778cc5912a10efcf
[ "MIT" ]
3
2019-02-07T23:34:43.000Z
2019-03-06T18:25:37.000Z
tests/pydecompile-test/baselines/events_in_code_blocks.py
gengxf0505/pxt
eca93a0e0605e68adcfbebce778cc5912a10efcf
[ "MIT" ]
2
2019-10-29T06:56:11.000Z
2021-05-25T10:18:12.000Z
#/ <reference path="./testBlocks/mb.ts" /> def function_0(): basic.showNumber(7) basic.forever(function_0)
21.8
42
0.715596
0
0
0
0
0
0
0
0
42
0.385321
861975d3c36c28b9ba6319750aff575b598fb65c
4,147
py
Python
PID/PDControl.py
l756302098/ros_practice
4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7
[ "MIT" ]
null
null
null
PID/PDControl.py
l756302098/ros_practice
4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7
[ "MIT" ]
null
null
null
PID/PDControl.py
l756302098/ros_practice
4da8b4ddb25ada2e6f1adb3c0f8b34576aedf6b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import random import numpy as np import matplotlib.pyplot as plt class Robot(object): def __init__(self, length=20.0): """ Creates robotand initializes location/orientation to 0, 0, 0. """ self.x = 0.0 self.y = 0.0 self.orientatio...
17.875
85
0.628647
2,431
0.586207
0
0
0
0
0
0
800
0.192911
861a029a9ec9483f45fb602ca0d783eedc1d7f90
161
py
Python
torchvision/datasets/samplers/__init__.py
yoshitomo-matsubara/vision
03d11338f3faf94a0749549912593ddb8b70be17
[ "BSD-3-Clause" ]
12,063
2017-01-18T19:58:38.000Z
2022-03-31T23:08:44.000Z
torchvision/datasets/samplers/__init__.py
yoshitomo-matsubara/vision
03d11338f3faf94a0749549912593ddb8b70be17
[ "BSD-3-Clause" ]
4,673
2017-01-18T21:30:03.000Z
2022-03-31T20:58:33.000Z
torchvision/datasets/samplers/__init__.py
yoshitomo-matsubara/vision
03d11338f3faf94a0749549912593ddb8b70be17
[ "BSD-3-Clause" ]
7,132
2017-01-18T18:12:23.000Z
2022-03-31T21:19:10.000Z
from .clip_sampler import DistributedSampler, UniformClipSampler, RandomClipSampler __all__ = ("DistributedSampler", "UniformClipSampler", "RandomClipSampler")
40.25
83
0.838509
0
0
0
0
0
0
0
0
59
0.36646
861a31bb111c594972aeb70c462a963cf1fefdb9
5,215
py
Python
pysnmp/HH3C-PPPOE-SERVER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HH3C-PPPOE-SERVER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HH3C-PPPOE-SERVER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HH3C-PPPOE-SERVER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-PPPOE-SERVER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:16:17 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
115.888889
892
0.797124
0
0
0
0
0
0
0
0
1,158
0.222052
861a472cf4ef7f924185a3fe1ea6569338502257
2,041
py
Python
Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py
suhaili99/python-share
6c65faaff722b8bd9e381650a6b277f56d1ae4c9
[ "MIT" ]
4
2019-10-21T11:00:55.000Z
2020-10-22T16:11:21.000Z
Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py
suhaili99/python-share
6c65faaff722b8bd9e381650a6b277f56d1ae4c9
[ "MIT" ]
1
2019-12-17T05:20:26.000Z
2019-12-17T05:20:26.000Z
Pyshare2019/02 - if + Nesteed if/Nesteed-IF.py
suhaili99/python-share
6c65faaff722b8bd9e381650a6b277f56d1ae4c9
[ "MIT" ]
9
2019-10-20T05:48:03.000Z
2020-11-17T14:08:14.000Z
name = input("masukkan nama pembeli = ") alamat= input("Alamat = ") NoTelp = input("No Telp = ") print("\n") print("=================INFORMASI HARGA MOBIL DEALER JAYA ABADI===============") print("Pilih Jenis Mobil :") print("\t 1.Daihatsu ") print("\t 2.Honda ") print("\t 3.Toyota ") print("") pilihan = int(input("Pil...
34.59322
80
0.529152
0
0
0
0
0
0
0
0
1,066
0.522293
861c79331c252b7937573a42f8e033c57c978cd9
6,138
py
Python
oneflow/python/test/ops/test_l1loss.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/ops/test_l1loss.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/test/ops/test_l1loss.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
33.540984
99
0.665689
998
0.162594
0
0
2,402
0.391333
0
0
1,490
0.24275
861cc7ffb7999a7f4d6f545192eee4e0b87dd394
869
py
Python
tests/test_schema.py
Dog-Egg/dida
17fd8dce0fe198e65effb48816a2339802234974
[ "MIT" ]
null
null
null
tests/test_schema.py
Dog-Egg/dida
17fd8dce0fe198e65effb48816a2339802234974
[ "MIT" ]
3
2021-06-15T19:10:55.000Z
2022-02-27T10:30:28.000Z
tests/test_schema.py
Dog-Egg/dida
17fd8dce0fe198e65effb48816a2339802234974
[ "MIT" ]
null
null
null
import unittest import datetime from dida import schemas, triggers from marshmallow import ValidationError class TestTriggerSchema(unittest.TestCase): def test_dump_trigger(self): result = schemas.TriggerSchema().dump(triggers.IntervalTrigger()) print('IntervalTrigger dump:', result) res...
36.208333
107
0.700806
758
0.872267
0
0
0
0
0
0
124
0.142693
861cdcc494cb3bd3e797fd81fd6a76984fde4f26
26,883
py
Python
apps/content/views.py
Sunbird-Ed/evolve-api
371b39422839762e32401340456c13858cb8e1e9
[ "MIT" ]
1
2019-02-27T15:26:11.000Z
2019-02-27T15:26:11.000Z
apps/content/views.py
Sunbird-Ed/evolve-api
371b39422839762e32401340456c13858cb8e1e9
[ "MIT" ]
9
2019-12-16T10:09:46.000Z
2022-03-11T23:42:12.000Z
apps/content/views.py
Sunbird-Ed/evolve-api
371b39422839762e32401340456c13858cb8e1e9
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import status from rest_framework.generics import ( ListAPIView, ListCreateAPIView, ListAPIView, RetrieveUpdateAPIView,) from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from rest_framework.decorat...
47.246046
386
0.654986
24,779
0.921735
0
0
5,592
0.208012
0
0
3,814
0.141874
861d74d55db578d9eef6b283f432f055362e839e
975
py
Python
examples/given_data.py
GuoJingyao/cornac
e7529990ec1dfa586c4af3de98e4b3e00a786578
[ "Apache-2.0" ]
null
null
null
examples/given_data.py
GuoJingyao/cornac
e7529990ec1dfa586c4af3de98e4b3e00a786578
[ "Apache-2.0" ]
null
null
null
examples/given_data.py
GuoJingyao/cornac
e7529990ec1dfa586c4af3de98e4b3e00a786578
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Example to train and evaluate a model with given data @author: Quoc-Tuan Truong <tuantq.vnu@gmail.com> """ from cornac.data import Reader from cornac.eval_methods import BaseMethod from cornac.models import MF from cornac.metrics import MAE, RMSE from cornac.utils import cache # Download...
33.62069
100
0.73641
0
0
0
0
0
0
0
0
331
0.339487
861eccc43552e108c8eb7cab4531e62034debd26
5,446
py
Python
taming/data/ade20k.py
ZlodeiBaal/taming
b6c0f896992881f154bdfd910a8163ee754df83a
[ "MIT" ]
null
null
null
taming/data/ade20k.py
ZlodeiBaal/taming
b6c0f896992881f154bdfd910a8163ee754df83a
[ "MIT" ]
null
null
null
taming/data/ade20k.py
ZlodeiBaal/taming
b6c0f896992881f154bdfd910a8163ee754df83a
[ "MIT" ]
1
2022-01-31T15:55:24.000Z
2022-01-31T15:55:24.000Z
import os import numpy as np import cv2 import albumentations from PIL import Image from torch.utils.data import Dataset from taming.data.sflckr import SegmentationBase # for examples included in repo class Examples(SegmentationBase): def __init__(self, size=256, random_crop=False, interpolation="bicubic"): ...
42.546875
107
0.58722
4,950
0.908924
0
0
0
0
0
0
701
0.128718
861f13a8761f8f22a82c122d42219d7e56bf820e
14,650
py
Python
templates/federated_reporting/distributed_cleanup.py
olehermanse/masterfiles
bcee0a8c0a925e885ba47ba3300b96c722b91f02
[ "MIT" ]
44
2015-01-12T05:26:46.000Z
2021-08-24T02:47:19.000Z
templates/federated_reporting/distributed_cleanup.py
olehermanse/masterfiles
bcee0a8c0a925e885ba47ba3300b96c722b91f02
[ "MIT" ]
1,104
2015-01-02T08:17:57.000Z
2022-03-31T15:58:37.000Z
templates/federated_reporting/distributed_cleanup.py
Lex-2008/masterfiles
b43c44af2c4e544ff7d044e76580ced2168ce5e0
[ "MIT" ]
79
2015-01-05T19:13:03.000Z
2021-08-25T07:57:31.000Z
#!/usr/bin/env python3 """ fr_distributed_cleanup.py - a script to remove hosts which have migrated to other feeder hubs. To be run on Federated Reporting superhub after each import of feeder data. First, to setup, enable fr_distributed_cleanup by setting a class in augments (def.json). This enables policy in cfe_inte...
35.386473
110
0.597543
0
0
0
0
0
0
0
0
6,117
0.417543
861f5e4cfdc98de2a394371bb5b02dd397322979
203
py
Python
Python/Fibonacci.py
kennethsequeira/Hello-world
464227bc7d9778a4a2a4044fe415a629003ea77f
[ "MIT" ]
1
2018-12-19T11:42:09.000Z
2018-12-19T11:42:09.000Z
Python/Fibonacci.py
kennethsequeira/Hello-world
464227bc7d9778a4a2a4044fe415a629003ea77f
[ "MIT" ]
1
2019-10-25T09:19:21.000Z
2019-10-25T09:19:21.000Z
Python/Fibonacci.py
kennethsequeira/Hello-world
464227bc7d9778a4a2a4044fe415a629003ea77f
[ "MIT" ]
7
2019-09-11T07:17:32.000Z
2019-09-25T12:23:52.000Z
#Doesn't work. import time fibonacci = [1, 1] n = int(input()) while len(fibonacci) < n: fibonacci.append(fibonacci[-1] + fibonacci[-2]) for i in range(n): print(fibonacci[i], end=' ')
20.3
52
0.605911
0
0
0
0
0
0
0
0
18
0.08867
862043a9de9b5c9db7b311f570877aeebbcfcd84
59
py
Python
setup.py
kreyoo/csgo-inv-shuffle
6392dd1eef1ca87ec25c9cf4845af3f8df3594a5
[ "MIT" ]
null
null
null
setup.py
kreyoo/csgo-inv-shuffle
6392dd1eef1ca87ec25c9cf4845af3f8df3594a5
[ "MIT" ]
5
2021-12-22T19:25:51.000Z
2022-03-28T19:27:34.000Z
setup.py
kreyoo/csgo-inv-shuffle
6392dd1eef1ca87ec25c9cf4845af3f8df3594a5
[ "MIT" ]
null
null
null
from setuptools import setup setup(name="csgoinvshuffle")
14.75
28
0.813559
0
0
0
0
0
0
0
0
16
0.271186
86205fe9ef8a0c045201301f18357ead5b9c92fc
6,081
py
Python
py/_log/log.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
2
2018-03-14T06:45:40.000Z
2018-06-08T07:46:02.000Z
py/_log/log.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-03-23T08:23:21.000Z
2019-03-23T08:23:21.000Z
py/_log/log.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-11-07T18:05:19.000Z
2017-11-14T18:06:55.000Z
""" basic logging functionality based on a producer/consumer scheme. XXX implement this API: (maybe put it into slogger.py?) log = Logger( info=py.log.STDOUT, debug=py.log.STDOUT, command=None) log.info("hello", "world") log...
32.518717
79
0.587568
4,689
0.77109
0
0
0
0
0
0
1,854
0.304884
86207cdb07326bc532b6b5b79d11a692b3f498c4
1,696
py
Python
test/test_all_contacts.py
Sergggio/python_training
6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4
[ "Apache-2.0" ]
null
null
null
test/test_all_contacts.py
Sergggio/python_training
6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4
[ "Apache-2.0" ]
null
null
null
test/test_all_contacts.py
Sergggio/python_training
6dfdbed9a503cf9a6810b31c57bdde76b15e4ec4
[ "Apache-2.0" ]
null
null
null
import re from model.contact import Contact def test_all_contacts(app, db): contacts_from_db = db.get_contact_list() phone_list_from_db = db.phones_from_db() #email_liset_from_db = db.emails_from_db() phone_list = [] for phone in phone_list_from_db: phone_list.append(merge_phones_like_on_h...
38.545455
94
0.635024
0
0
0
0
0
0
0
0
296
0.174528
8621222cce83ccae2b5fe5d557b5c9ece5f258f8
604
py
Python
samples/abp/test_graphics.py
jproudlo/PyModel
2ab0e2cf821807206725adaa425409b0c28929b7
[ "BSD-3-Clause" ]
61
2015-01-29T16:18:51.000Z
2021-09-28T10:14:02.000Z
samples/abp/test_graphics.py
vikstr/PyModel
4fff616fe0fd8342c91a42d9db5d4097a179dff8
[ "BSD-3-Clause" ]
2
2015-02-04T11:57:53.000Z
2021-07-18T20:59:55.000Z
samples/abp/test_graphics.py
vikstr/PyModel
4fff616fe0fd8342c91a42d9db5d4097a179dff8
[ "BSD-3-Clause" ]
34
2015-02-04T12:00:29.000Z
2022-03-14T07:41:25.000Z
""" ABP analyzer and graphics tests """ cases = [ ('Run Pymodel Graphics to generate dot file from FSM model, no need use pma', 'pmg ABP'), ('Generate SVG file from dot', 'dotsvg ABP'), # Now display ABP.dot in browser ('Run PyModel Analyzer to generate FSM from original FSM, should be the...
24.16
82
0.653974
0
0
0
0
0
0
0
0
499
0.826159
86226920fab3327506a58d2f239e976d2e4d87d4
634
py
Python
games/migrations/0002_auto_20201026_1221.py
IceArrow256/game-list
5f06e0ff80023acdc0290a9a8f814f7c93b45e0e
[ "Unlicense" ]
3
2020-10-19T12:33:37.000Z
2020-10-21T05:28:35.000Z
games/migrations/0002_auto_20201026_1221.py
IceArrow256/gamelist
5f06e0ff80023acdc0290a9a8f814f7c93b45e0e
[ "Unlicense" ]
null
null
null
games/migrations/0002_auto_20201026_1221.py
IceArrow256/gamelist
5f06e0ff80023acdc0290a9a8f814f7c93b45e0e
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-26 12:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('games', '0001_initial'), ] operations = [ migrations.AlterField( model_name='game', ...
25.36
111
0.600946
508
0.801262
0
0
0
0
0
0
116
0.182965
862625f0bd5d6882a14a812018126e427778e14a
11,603
py
Python
build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py
mkubux/egenix-mx-base
3e6f9186334d9d73743b0219ae857564c7208247
[ "eGenix" ]
null
null
null
build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py
mkubux/egenix-mx-base
3e6f9186334d9d73743b0219ae857564c7208247
[ "eGenix" ]
null
null
null
build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py
mkubux/egenix-mx-base
3e6f9186334d9d73743b0219ae857564c7208247
[ "eGenix" ]
null
null
null
""" PackageTools - A set of tools to aid working with packages. Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2015, eGenix.com Software GmbH; mailto:info@egenix.com See the documentation for further information on copyrights, or contact the author. All Rights Re...
35.375
82
0.613031
0
0
0
0
0
0
0
0
5,531
0.476687
8626687151185e3140516d592a31a3534739d928
72,182
py
Python
Lib/test/test_urllib.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
4
2020-08-06T04:39:33.000Z
2020-12-01T08:35:09.000Z
Lib/test/test_urllib.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
6
2020-07-22T01:19:01.000Z
2021-04-25T15:03:35.000Z
Lib/test/test_urllib.py
Kshitijkrishnadas/haribol
ca45e633baaabaad3bb923f5633340ccf88d996c
[ "bzip2-1.0.6" ]
2
2020-12-02T03:52:33.000Z
2021-01-20T01:36:09.000Z
"""Regression tests for what was in Python 2's "urllib" module""" import urllib.parse import urllib.request import urllib.error import http.client import email.message import io import unittest from unittest.mock import patch from test import support import os try: import ssl except ImportError: ssl = None imp...
41.796178
108
0.589759
68,021
0.942354
0
0
7,555
0.104666
0
0
23,748
0.329002
86273fb9e1a631cb61fc755f591bccb65bcc2063
553
py
Python
gapipy/resources/tour/transport.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
gapipy/resources/tour/transport.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
gapipy/resources/tour/transport.py
wmak/gapipy
b6849606d4f6af24b9f871f65e87aaf0d0c013cc
[ "MIT" ]
null
null
null
# Python 2 and 3 from __future__ import unicode_literals from ...models import Address, SeasonalPriceBand from ..base import Product class Transport(Product): _resource_name = 'transports' _is_listable = False _as_is_fields = [ 'id', 'href', 'availability', 'name', 'product_line', 'sku', 'type...
27.65
87
0.703436
415
0.750452
0
0
0
0
0
0
171
0.309222
8627cb215475c4cdba11abae1ef96d79eaf6f75a
440
py
Python
modules/dare.py
VeNoM-hubs/nyx
1d76b3ad50add2e71e70fac40699e0cb513b084e
[ "MIT" ]
null
null
null
modules/dare.py
VeNoM-hubs/nyx
1d76b3ad50add2e71e70fac40699e0cb513b084e
[ "MIT" ]
3
2020-10-16T16:23:02.000Z
2021-09-08T02:33:38.000Z
modules/dare.py
VeNoM-hubs/nyx
1d76b3ad50add2e71e70fac40699e0cb513b084e
[ "MIT" ]
5
2020-10-14T04:03:27.000Z
2020-11-24T04:10:03.000Z
from discord.ext import commands import json import random with open("assets/json/questions.json") as data: data = json.load(data) dares = data["dares"] class Dare(commands.Cog): def __init__(self, client): self.client = client @commands.command(aliases=["d"]) async def dare(self, ctx):...
19.130435
48
0.659091
220
0.5
0
0
128
0.290909
91
0.206818
38
0.086364
8627e459bffff8a71e23af3dc3f940f880264aa8
65
py
Python
scripts/apic.py
nicmatth/APIC-EM-HelloWorldv3
c0645e6decf57dbd87c5a239b6fce36f3dcbef41
[ "Apache-2.0" ]
null
null
null
scripts/apic.py
nicmatth/APIC-EM-HelloWorldv3
c0645e6decf57dbd87c5a239b6fce36f3dcbef41
[ "Apache-2.0" ]
null
null
null
scripts/apic.py
nicmatth/APIC-EM-HelloWorldv3
c0645e6decf57dbd87c5a239b6fce36f3dcbef41
[ "Apache-2.0" ]
null
null
null
APIC_IP="sandboxapic.cisco.com" APIC_PORT="443" GROUP='group-xx'
16.25
31
0.769231
0
0
0
0
0
0
0
0
38
0.584615
8627f95ead1f5387af07178d55a37d9519bc58b3
1,205
py
Python
stella/test/external_func.py
squisher/stella
d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9
[ "Apache-2.0" ]
11
2015-08-03T17:37:46.000Z
2021-05-26T07:29:36.000Z
stella/test/external_func.py
squisher/stella
d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9
[ "Apache-2.0" ]
1
2016-09-17T01:46:13.000Z
2016-09-17T01:46:13.000Z
stella/test/external_func.py
squisher/stella
d9f0b2ebbd853b31c6f75cd0f0286037da4bcaf9
[ "Apache-2.0" ]
3
2016-05-21T19:17:16.000Z
2019-05-10T17:35:37.000Z
# Copyright 2013-2015 David Mohr # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
24.591837
78
0.692946
0
0
0
0
309
0.256432
0
0
583
0.483817
862895e0beee8139d3bebfdbda1b874ae1ecc23b
18,880
py
Python
szh_objects.py
ipqhjjybj/bitcoin_trend_strategy
0c85055558591574a4171abd68142ebbeb502958
[ "MIT" ]
4
2019-10-07T13:24:35.000Z
2020-12-03T19:03:15.000Z
szh_objects.py
ipqhjjybj/bitcoin_trend_strategy
0c85055558591574a4171abd68142ebbeb502958
[ "MIT" ]
1
2019-10-08T07:11:30.000Z
2019-10-08T07:11:30.000Z
szh_objects.py
ipqhjjybj/bitcoin_trend_strategy
0c85055558591574a4171abd68142ebbeb502958
[ "MIT" ]
2
2019-12-15T03:50:57.000Z
2021-05-25T15:44:05.000Z
# encoding: utf-8 import sys from market_maker import OrderManager from settings import * import os from pymongo import MongoClient, ASCENDING from pymongo.errors import ConnectionFailure from datetime import datetime , timedelta import numpy as np ################################################################...
33.895871
131
0.476536
19,552
0.957586
0
0
483
0.023656
0
0
5,662
0.277304
8628a8ccf18c32191b9cace42141414df8e8de89
7,864
py
Python
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/pylint/pyreverse/writer.py
ishtjot/susereumutep
56e20c1777e0c938ac42bd8056f84af9e0b76e46
[ "Apache-2.0" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2008-2013 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # 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 ver...
39.32
82
0.594863
6,828
0.86804
0
0
0
0
0
0
2,404
0.305619
86291f58eceea662a0595f262f1d06df3c3cd46d
1,070
py
Python
graphql-ml-serving/backend/mutations.py
philippe-heitzmann/python-apps
1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a
[ "MIT" ]
13
2021-05-23T15:47:24.000Z
2022-03-24T16:22:14.000Z
graphql-ml-serving/backend/mutations.py
philippe-heitzmann/python-apps
1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a
[ "MIT" ]
4
2021-11-16T20:44:55.000Z
2022-01-13T19:13:38.000Z
graphql-ml-serving/backend/mutations.py
philippe-heitzmann/python-apps
1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a
[ "MIT" ]
11
2021-01-31T06:18:10.000Z
2021-11-21T00:02:05.000Z
import logging from ariadne import MutationType, convert_kwargs_to_snake_case from config import clients, messages, queue mutation = MutationType() @mutation.field("createMessage") @convert_kwargs_to_snake_case async def resolve_create_message(obj, info, content, client_id): try: message = {"content": co...
32.424242
64
0.673832
0
0
0
0
915
0.85514
790
0.738318
188
0.175701
8629a20e8661d77754338b9cfeef38848a59f1c8
18,336
py
Python
hc/api/transports.py
MaxwellDPS/healthchecks
3730c67c803e707ae51b01bacf2929bd053ee22f
[ "BSD-3-Clause" ]
1
2020-06-08T12:22:51.000Z
2020-06-08T12:22:51.000Z
hc/api/transports.py
pathcl/healthchecks
ffc45f0c74694d06679aefe3b92a0b0778473ca7
[ "BSD-3-Clause" ]
5
2021-03-19T11:20:11.000Z
2021-09-22T19:36:18.000Z
hc/api/transports.py
MaxwellDPS/healthchecks
3730c67c803e707ae51b01bacf2929bd053ee22f
[ "BSD-3-Clause" ]
null
null
null
import os from django.conf import settings from django.template.loader import render_to_string from django.utils import timezone import json import requests from urllib.parse import quote, urlencode from hc.accounts.models import Profile from hc.lib import emails from hc.lib.string import replace try: import app...
30.816807
88
0.588405
17,596
0.959642
0
0
2,508
0.13678
0
0
4,261
0.232384
8629c195c4f2a076441e398a8eff9a8680863488
9,419
py
Python
graviti/portex/builder.py
Graviti-AI/graviti-python-sdk
d2faf86b4718416503b965f6057b31015417446f
[ "MIT" ]
12
2022-01-26T06:51:02.000Z
2022-03-22T21:28:35.000Z
graviti/portex/builder.py
Graviti-AI/graviti-python-sdk
d2faf86b4718416503b965f6057b31015417446f
[ "MIT" ]
51
2022-02-22T07:19:34.000Z
2022-03-31T11:39:51.000Z
graviti/portex/builder.py
Graviti-AI/graviti-python-sdk
d2faf86b4718416503b965f6057b31015417446f
[ "MIT" ]
5
2022-01-26T06:51:49.000Z
2022-03-08T03:41:11.000Z
#!/usr/bin/env python3 # # Copyright 2022 Graviti. Licensed under MIT License. # """Portex type builder related classes.""" from hashlib import md5 from pathlib import Path from shutil import rmtree from subprocess import PIPE, CalledProcessError, run from tempfile import gettempdir from typing import TYPE_CHECKING, ...
29.996815
93
0.62013
7,882
0.836819
0
0
619
0.065718
0
0
2,880
0.305765
862a6e4ef7c112a1f58f960d0cfe8a4298a64c51
3,184
py
Python
dffml/operation/mapping.py
SGeetansh/dffml
04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b
[ "MIT" ]
171
2019-03-08T19:02:06.000Z
2022-03-29T16:17:23.000Z
dffml/operation/mapping.py
NikhilBartwal/dffml
16180144f388924d9e5840c4aa80d08970af5e60
[ "MIT" ]
1,158
2019-03-08T19:07:50.000Z
2022-03-25T08:28:27.000Z
dffml/operation/mapping.py
NikhilBartwal/dffml
16180144f388924d9e5840c4aa80d08970af5e60
[ "MIT" ]
183
2019-03-10T02:40:56.000Z
2022-03-27T18:51:26.000Z
from typing import Dict, List, Any from ..df.types import Definition from ..df.base import op from ..util.data import traverse_get MAPPING = Definition(name="mapping", primitive="map") MAPPING_TRAVERSE = Definition(name="mapping_traverse", primitive="List[str]") MAPPING_KEY = Definition(name="key", primitive="str") M...
26.533333
89
0.557161
0
0
0
0
2,797
0.878455
0
0
2,486
0.780779
862ab8872e3c569f3400e44a0e697886a1c4335b
13,859
py
Python
anchore_engine/services/policy_engine/__init__.py
Vijay-P/anchore-engine
660a0bf10c56d16f894919209c51ec7a12081e9b
[ "Apache-2.0" ]
null
null
null
anchore_engine/services/policy_engine/__init__.py
Vijay-P/anchore-engine
660a0bf10c56d16f894919209c51ec7a12081e9b
[ "Apache-2.0" ]
null
null
null
anchore_engine/services/policy_engine/__init__.py
Vijay-P/anchore-engine
660a0bf10c56d16f894919209c51ec7a12081e9b
[ "Apache-2.0" ]
null
null
null
import time import sys import pkg_resources import os import retrying from sqlalchemy.exc import IntegrityError # anchore modules import anchore_engine.clients.services.common import anchore_engine.subsys.servicestatus import anchore_engine.subsys.metrics from anchore_engine.subsys import logger from anchore_engine.c...
32.91924
126
0.637925
1,443
0.10412
0
0
2,022
0.145898
0
0
4,200
0.303052
862c0ef5874a647cec05d7913d882ea14b577a42
1,767
py
Python
juriscraper/oral_args/united_states/federal_appellate/scotus.py
EvandoBlanco/juriscraper
3d16af258620d4ba1b4827f66ef69e8a2c5a0484
[ "BSD-2-Clause" ]
228
2015-01-23T04:41:39.000Z
2022-03-30T09:52:20.000Z
juriscraper/oral_args/united_states/federal_appellate/scotus.py
EvandoBlanco/juriscraper
3d16af258620d4ba1b4827f66ef69e8a2c5a0484
[ "BSD-2-Clause" ]
331
2015-01-05T18:53:40.000Z
2022-03-29T23:43:30.000Z
juriscraper/oral_args/united_states/federal_appellate/scotus.py
EvandoBlanco/juriscraper
3d16af258620d4ba1b4827f66ef69e8a2c5a0484
[ "BSD-2-Clause" ]
84
2015-01-03T01:19:21.000Z
2022-03-01T08:09:32.000Z
"""Scraper for Supreme Court of U.S. CourtID: scotus Court Short Name: scotus History: - 2014-07-20 - Created by Andrei Chelaru, reviewed by MLR - 2017-10-09 - Updated by MLR. """ from datetime import datetime from juriscraper.OralArgumentSite import OralArgumentSite class Site(OralArgumentSite): def __init__...
31
107
0.611771
1,492
0.844369
0
0
306
0.173175
0
0
563
0.318619
862c27d164efa5a02f7a2714b410e87587a9e318
26,357
py
Python
code/main.py
pengzhansun/CF-CAR
2e497a4da0bcc80bb327ee041f1aa0107f53bc3f
[ "MIT" ]
8
2022-03-19T06:53:43.000Z
2022-03-30T06:37:48.000Z
code/main.py
pengzhansun/CF-CAR
2e497a4da0bcc80bb327ee041f1aa0107f53bc3f
[ "MIT" ]
1
2022-03-22T12:03:23.000Z
2022-03-23T02:40:52.000Z
code/main.py
pengzhansun/CF-CAR
2e497a4da0bcc80bb327ee041f1aa0107f53bc3f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os import shutil import time import numpy as np import random from collections import OrderedDict import torch import torch.backends.cudnn as cudnn from callbacks import AverageMeter from data_utils.causal_data_loader_frames import VideoFolder from utils impo...
45.679376
133
0.624009
0
0
0
0
0
0
0
0
6,142
0.233031
862c8c299735f25fc3f48ddc79dfdcc178dd4e54
606
py
Python
api/application/__init__.py
114000/webapp-boilerplate
0550396694b4f009e5d862b0098bf7d1f61a4a40
[ "MIT" ]
null
null
null
api/application/__init__.py
114000/webapp-boilerplate
0550396694b4f009e5d862b0098bf7d1f61a4a40
[ "MIT" ]
null
null
null
api/application/__init__.py
114000/webapp-boilerplate
0550396694b4f009e5d862b0098bf7d1f61a4a40
[ "MIT" ]
1
2021-06-10T02:08:30.000Z
2021-06-10T02:08:30.000Z
# encoding: utf-8 from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_cors import CORS import logging app = Flask(__name__) CORS(app, resources={r"/*": {"origins": "*"}}) app.config.from_object('config.current') db = SQLAlchemy(app) logger = logging.getLogger(__name__) log...
16.833333
47
0.729373
0
0
0
0
0
0
0
0
83
0.136964
862cf0dcbc5e00c994d2c00c5e16de0409816e8b
1,004
py
Python
Betsy/Betsy/modules/get_illumina_control.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
Betsy/Betsy/modules/get_illumina_control.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
Betsy/Betsy/modules/get_illumina_control.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
from Module import AbstractModule class Module(AbstractModule): def __init__(self): AbstractModule.__init__(self) def run( self, network, antecedents, out_attributes, user_options, num_cores, outfile): import os import shutil from genomicode import filelib ...
29.529412
76
0.645418
965
0.961155
0
0
0
0
0
0
79
0.078685