hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
โŒ€
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
โŒ€
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
โŒ€
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b82c60629edbd503cad186008edb4548bf7c7524
1,010
py
Python
docs/core/howto/listings/ssl/check_echo_certificate.py
giadram/twisted
4771b1340b822d20d0664bb7d8334e8fb7e52863
[ "MIT", "Unlicense" ]
1
2020-12-18T06:32:58.000Z
2020-12-18T06:32:58.000Z
docs/core/howto/listings/ssl/check_echo_certificate.py
giadram/twisted
4771b1340b822d20d0664bb7d8334e8fb7e52863
[ "MIT", "Unlicense" ]
3
2015-08-20T09:05:57.000Z
2015-11-10T08:30:51.000Z
docs/core/howto/listings/ssl/check_echo_certificate.py
giadram/twisted
4771b1340b822d20d0664bb7d8334e8fb7e52863
[ "MIT", "Unlicense" ]
null
null
null
import sys from twisted.internet import defer, endpoints, protocol, ssl, task with open("../../../examples/server.pem") as f: certificate = ssl.Certificate.loadPEM(f.read()) def main(reactor, host, port=443): options = ssl.optionsForClientTLS(host.decode("utf-8"), trustRoot=certificate) port = int(port) ...
29.705882
85
0.650495
c9696a836fb85799420c7070484037b8fadf3aac
229
py
Python
Sources/01XXX/1000/1000.py
DDManager/Baekjoon-Online-Judge
7dd6d76838d3309bfe5bef46f1778c5776ebdf2a
[ "MIT" ]
1
2019-07-02T09:07:58.000Z
2019-07-02T09:07:58.000Z
Sources/01XXX/1000/1000.py
DDManager/Baekjoon-Online-Judge
7dd6d76838d3309bfe5bef46f1778c5776ebdf2a
[ "MIT" ]
null
null
null
Sources/01XXX/1000/1000.py
DDManager/Baekjoon-Online-Judge
7dd6d76838d3309bfe5bef46f1778c5776ebdf2a
[ "MIT" ]
1
2022-02-13T04:17:10.000Z
2022-02-13T04:17:10.000Z
## # BOJ 1000๋ฒˆ Python 3 ์†Œ์Šค ์ฝ”๋“œ # ์ž‘์„ฑ์ž : ๋™๋™๋งค๋‹ˆ์ € (DDManager) # # โ€ป ์‹คํ–‰ ๊ฒฐ๊ณผ # ์‚ฌ์šฉ ๋ฉ”๋ชจ๋ฆฌ : 29,056 KB / 294,912 KB # ์†Œ์š” ์‹œ๊ฐ„ : 60 ms / 8,000 ms # # Copyright 2019. DDManager all rights reserved. ## a,b=map(int,input().split()) print(a+b)
17.615385
49
0.60262
b75abe691bc1aa4ce428b8d2b02f015a4d3c54b9
3,377
py
Python
ucscentralsdk/mometa/vnic/VnicBootIpPolicy.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/mometa/vnic/VnicBootIpPolicy.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
ucscentralsdk/mometa/vnic/VnicBootIpPolicy.py
ragupta-git/ucscentralsdk
2678008b5fb6b0fafafec388d0874147e95a1086
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for VnicBootIpPolicy ManagedObject.""" from ...ucscentralmo import ManagedObject from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta from ...ucscentralmeta import VersionMeta class VnicBootIpPolicyConsts(): INT_ID_NONE = "none" POLICY_OW...
53.603175
249
0.644655
337e3e4a73b757dc9c52679bd0ebfa8ae65425a0
273
py
Python
tests/artificial/transf_BoxCox/trend_MovingAverage/cycle_7/ar_12/test_artificial_1024_BoxCox_MovingAverage_7_12_100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_BoxCox/trend_MovingAverage/cycle_7/ar_12/test_artificial_1024_BoxCox_MovingAverage_7_12_100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_BoxCox/trend_MovingAverage/cycle_7/ar_12/test_artificial_1024_BoxCox_MovingAverage_7_12_100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 12);
39
168
0.736264
00706f8950a9bb3254ed9e85de44892ff48d443b
13,789
py
Python
discord/audit_logs.py
mccoderpy/discord.py-with-message-components
2945eec9c9ef79d3bcfeaaa8687cba3d60fd3a85
[ "MIT" ]
22
2021-06-11T15:39:08.000Z
2021-12-19T18:42:22.000Z
discord/audit_logs.py
mccoderpy/discord.py-with-message-components
2945eec9c9ef79d3bcfeaaa8687cba3d60fd3a85
[ "MIT" ]
8
2021-06-08T13:44:48.000Z
2021-10-09T09:51:22.000Z
discord/audit_logs.py
mccoderpy/discord.py-with-message-components
2945eec9c9ef79d3bcfeaaa8687cba3d60fd3a85
[ "MIT" ]
7
2021-06-28T18:39:03.000Z
2022-02-06T17:44:18.000Z
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
36.002611
119
0.603452
de8a5f796be826a3127581c8f82d9c6571bb4cd1
4,536
py
Python
conans/model/editable_layout.py
Ignition/conan
84a38590987ecb9f3011f73babc95598ea62535f
[ "MIT" ]
2
2020-02-12T09:56:25.000Z
2022-03-03T06:41:35.000Z
conans/model/editable_layout.py
Ignition/conan
84a38590987ecb9f3011f73babc95598ea62535f
[ "MIT" ]
6
2016-03-08T22:06:45.000Z
2020-06-02T15:22:19.000Z
conans/model/editable_layout.py
Ignition/conan
84a38590987ecb9f3011f73babc95598ea62535f
[ "MIT" ]
1
2016-11-13T20:23:18.000Z
2016-11-13T20:23:18.000Z
# coding=utf-8 import os from collections import OrderedDict import six from six.moves import configparser from conans.errors import ConanException from conans.model.ref import ConanFileReference from conans.util.files import load from conans.util.templates import render_layout_file DEFAULT_LAYOUT_FILE = "default" L...
39.443478
99
0.611993
402343b48817415d7b6fec7590216fe2e47794e6
6,090
py
Python
ceilometerclient/tests/v2/test_shell.py
citrix-openstack-build/python-ceilometerclient
c3283ec1e861f29a53c59c1a09f2a1bc21a713e4
[ "Apache-2.0" ]
null
null
null
ceilometerclient/tests/v2/test_shell.py
citrix-openstack-build/python-ceilometerclient
c3283ec1e861f29a53c59c1a09f2a1bc21a713e4
[ "Apache-2.0" ]
null
null
null
ceilometerclient/tests/v2/test_shell.py
citrix-openstack-build/python-ceilometerclient
c3283ec1e861f29a53c59c1a09f2a1bc21a713e4
[ "Apache-2.0" ]
null
null
null
# 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 # distribu...
44.130435
78
0.577833
59bbf71ab32c3df8c1a39e638fa01e1ece56464c
5,982
py
Python
keras/baseline/src/train.py
Angus1996/HuaweiCloud_AI_Competition2019
08f4a262a7563bc26561acae8bfe3b41aab9af6b
[ "MIT" ]
3
2020-09-11T13:42:50.000Z
2020-12-02T08:09:04.000Z
keras/baseline/src/train.py
Angus1996/HuaweiCloud_AI_Competition2019
08f4a262a7563bc26561acae8bfe3b41aab9af6b
[ "MIT" ]
null
null
null
keras/baseline/src/train.py
Angus1996/HuaweiCloud_AI_Competition2019
08f4a262a7563bc26561acae8bfe3b41aab9af6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import multiprocessing from glob import glob import moxing as mox # ๅŽไธบ่‡ช็ ”ๆจกๅ—moxing๏ผŒๆœฌๅœฐๆœบๅ™จๆ— ๆณ•ๅฎ‰่ฃ…๏ผŒไป…ๅฏๅœจๅŽไธบไบ‘ModelArtsๅนณๅฐไธŠไฝฟ็”จ๏ผŒ # moxingๆ–‡ๆกฃ่ฏทๆŸฅ็œ‹ https://github.com/huaweicloud/ModelArts-Lab/tree/master/docs/moxing_api_doc import numpy as np from keras import backend from keras.models import Model from k...
44.977444
141
0.668673
acc26444ff052192e02fdcbbf01f56c0c36332a3
505
py
Python
LeetCode/Count Largest Group.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
13
2021-09-02T07:30:02.000Z
2022-03-22T19:32:03.000Z
LeetCode/Count Largest Group.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
null
null
null
LeetCode/Count Largest Group.py
UtkarshPathrabe/Competitive-Coding
ba322fbb1b88682d56a9b80bdd92a853f1caa84e
[ "MIT" ]
3
2021-08-24T16:06:22.000Z
2021-09-17T15:39:53.000Z
class Solution: def countLargestGroup(self, n: int) -> int: hashMap, maxGroupSize = defaultdict(int), 0 def getDigitSum(x): currentSum = 0 while x: currentSum += (x % 10) x //= 10 return currentSum for i in range(1, n + 1): ...
38.846154
74
0.534653
77b42b177656e4b633ae0b907f4c4662c71e7aaf
10,073
py
Python
tests/core/activity/registry_test.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
tests/core/activity/registry_test.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
tests/core/activity/registry_test.py
SymphonyOSF/symphony-api-client-python
70137a893f4385381a3158ef80e1be156e0fc4bd
[ "Apache-2.0" ]
null
null
null
from unittest.mock import MagicMock, AsyncMock import pytest from symphony.bdk.core.activity.parsing.command_token import MatchingUserIdMentionToken, StaticCommandToken from symphony.bdk.gen.agent_model.v4_user import V4User from symphony.bdk.core.activity.command import CommandActivity, SlashCommandActivity from sy...
34.975694
107
0.783878
86a92e0d3e4572d8f1b6988adf2ec32970f29921
3,371
py
Python
toyClassification/HMC/train.py
dataflowr/evaluating_bdl
b7d7e3f2b8095a0ec43118d2b69b4b49e0b910f2
[ "MIT" ]
110
2019-06-04T13:30:23.000Z
2022-03-05T07:37:52.000Z
toyClassification/HMC/train.py
dataflowr/evaluating_bdl
b7d7e3f2b8095a0ec43118d2b69b4b49e0b910f2
[ "MIT" ]
3
2020-08-31T17:12:39.000Z
2021-09-12T01:21:24.000Z
toyClassification/HMC/train.py
dataflowr/evaluating_bdl
b7d7e3f2b8095a0ec43118d2b69b4b49e0b910f2
[ "MIT" ]
23
2019-06-05T08:53:28.000Z
2022-03-05T09:01:25.000Z
# code-checked # server-checked from datasets import ToyDataset # (this needs to be imported before torch, because cv2 needs to be imported before torch for some reason) import torch import torch.utils.data import torch.nn as nn from torch.autograd import Variable import pyro from pyro.infer import EmpiricalMarginal...
44.946667
172
0.713142
e55ac8e9063f37ed30bdb6910ee614b3a87fed2a
265
py
Python
src/lesson4/samples/randomMoveBall.py
saji-ryu/pyxel-study
b10ef781a86cfea4dad28efee89f851195189560
[ "MIT" ]
null
null
null
src/lesson4/samples/randomMoveBall.py
saji-ryu/pyxel-study
b10ef781a86cfea4dad28efee89f851195189560
[ "MIT" ]
null
null
null
src/lesson4/samples/randomMoveBall.py
saji-ryu/pyxel-study
b10ef781a86cfea4dad28efee89f851195189560
[ "MIT" ]
null
null
null
import pyxel import random pyxel.init(200, 200) pyxel.cls(7) for a in range(0, 10): x = random.randint(0, 199) y = random.randint(0, 199) r = random.randint(5, 20) c = random.randint(0, 15) pyxel.circ(x, y, r, c) pyxel.flip() pyxel.show()
17.666667
30
0.611321
0c6733fbeaf1ce8cae3197bc945f20bd76dde4e3
13,006
py
Python
smoke-test/tests/tokens/revokable_access_token_test.py
Ankit-Keshari-Vituity/datahub
1b50709e20a2d4f0079bbb6cda14889d6e2d3680
[ "Apache-2.0" ]
1,603
2016-03-03T17:21:03.000Z
2020-01-22T22:12:02.000Z
smoke-test/tests/tokens/revokable_access_token_test.py
Ankit-Keshari-Vituity/datahub
1b50709e20a2d4f0079bbb6cda14889d6e2d3680
[ "Apache-2.0" ]
1,157
2016-03-03T19:29:22.000Z
2020-01-20T14:41:59.000Z
smoke-test/tests/tokens/revokable_access_token_test.py
Ankit-Keshari-Vituity/datahub
1b50709e20a2d4f0079bbb6cda14889d6e2d3680
[ "Apache-2.0" ]
570
2016-03-03T17:21:05.000Z
2020-01-21T06:54:10.000Z
import pytest import time import requests from tests.utils import FRONTEND_ENDPOINT from time import sleep from tests.utils import ingest_file_via_rest from datahub.cli.ingest_cli import get_session_and_host @pytest.fixture(autouse=True) def test_setup(): """Fixture to execute asserts before and after a test is ru...
38.365782
128
0.663002
24ea70916a97caebfa79c222926c5a5dea999aa8
3,786
py
Python
MyFirstApps/PySys/acts/mbox/Box.py
EnzoH8321/Minis
75c94c865e26128f35bdab481c4cad792beb91b2
[ "MIT" ]
null
null
null
MyFirstApps/PySys/acts/mbox/Box.py
EnzoH8321/Minis
75c94c865e26128f35bdab481c4cad792beb91b2
[ "MIT" ]
null
null
null
MyFirstApps/PySys/acts/mbox/Box.py
EnzoH8321/Minis
75c94c865e26128f35bdab481c4cad792beb91b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PyLibs from PyQt5 import QtCore, QtGui, QtWidgets # Class class Ui_MainWindow(object): # App def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(250, 150) MainWindow.setMinimumSize(QtCore.QSize(250, 150)) ...
43.517241
104
0.65663
83bbccc79630bb9ca04aacbf8b2cd9fc66660825
1,280
py
Python
api.py
OscarMelin/Boten-Anna
4924dd62f962bee5761f716475528fc8a5469bf1
[ "MIT" ]
1
2015-06-16T11:24:27.000Z
2015-06-16T11:24:27.000Z
api.py
OscarMelin/Boten-Anna
4924dd62f962bee5761f716475528fc8a5469bf1
[ "MIT" ]
null
null
null
api.py
OscarMelin/Boten-Anna
4924dd62f962bee5761f716475528fc8a5469bf1
[ "MIT" ]
null
null
null
import json import urllib.request API_URL = "https://slack.com/api/" with open("config.json") as config_file: settings = json.load(config_file) USERTOKENSTRING = settings["USERTOKENSTRING"] URLTOKENSTRING = settings["URLTOKENSTRING"] TEAMNAMESTRING = settings["TEAMNAMESTRING"] def get_users(): w...
38.787879
122
0.709375
56bf6ba851b4345c57af1e01bb7465fc3a09d976
190
py
Python
LifeIsShort/c/callback.py
loopyme/Life-is-Short
bd37e8597971283aa35bc31e29543c071f03acba
[ "MIT" ]
1
2020-04-02T02:03:21.000Z
2020-04-02T02:03:21.000Z
LifeIsShort/c/callback.py
loopyme/Life-is-Short
bd37e8597971283aa35bc31e29543c071f03acba
[ "MIT" ]
null
null
null
LifeIsShort/c/callback.py
loopyme/Life-is-Short
bd37e8597971283aa35bc31e29543c071f03acba
[ "MIT" ]
null
null
null
words = "Life is short" class TaskRunner: @staticmethod def run(func, *args, **kwargs): func(*args, **kwargs) runner = TaskRunner() runner.run(lambda x: print(x), words)
15.833333
37
0.631579
d92ba1f6d8629a1942755d037af319ee02b03c64
295
py
Python
src/config.py
Mathematical-Olympiads-Discord-Server/mods-website
de0fd5b107a1f40f289c72d8e370bf3dc4f77d1c
[ "MIT" ]
2
2020-03-04T04:33:55.000Z
2020-03-04T06:20:59.000Z
src/config.py
Mathematical-Olympiads-Discord-Server/mods-website
de0fd5b107a1f40f289c72d8e370bf3dc4f77d1c
[ "MIT" ]
25
2020-04-03T12:34:12.000Z
2020-08-11T03:27:38.000Z
src/config.py
Mathematical-Olympiads-Discord-Server/mods-website
de0fd5b107a1f40f289c72d8e370bf3dc4f77d1c
[ "MIT" ]
1
2020-06-20T11:58:26.000Z
2020-06-20T11:58:26.000Z
#!/usr/bin/python email = "mo.discord.server@gmail.com" # Technically, these can be non-consecutive previous_month = "2021-07-modsmo-int" next_month = "2021-07-modsmo-adv" # On github, the links don't have to have .html prefix, # and directories forward to index.html inside. github = True
24.583333
55
0.735593
2c73725ca3b39956b4bf1a70c8be35bda0f04b78
3,592
py
Python
berserker_resolver/resolver.py
DmitryFillo/berserker_resolver
8f6aa8530b54d19de4bde3f3c84f566d875c3673
[ "BSD-2-Clause" ]
19
2015-02-28T17:45:06.000Z
2022-03-22T10:36:44.000Z
berserker_resolver/resolver.py
DmitryFillo/berserker_resolver
8f6aa8530b54d19de4bde3f3c84f566d875c3673
[ "BSD-2-Clause" ]
5
2015-08-08T09:57:50.000Z
2018-01-03T15:47:48.000Z
berserker_resolver/resolver.py
DmitryFillo/berserker_resolver
8f6aa8530b54d19de4bde3f3c84f566d875c3673
[ "BSD-2-Clause" ]
5
2015-04-09T17:09:15.000Z
2020-11-02T15:04:46.000Z
import re import random import threading import dns.resolver import dns.exception from berserker_resolver.utils import locked_iterator class BaseResolver(object): _regexp_www = re.compile(r'(?:www\.){1}(.+\..+)', re.I) _regexp_www_combine = re.compile(r'(?:www\.)?(.+\..+)', re.I) def __init__(self, *args...
34.538462
135
0.552339
b04edeca78fa27350a14f300615eb714a12b9b9d
5,440
py
Python
invite/admin.py
lmarvaud/django-invite
86db0fa278f373cc9481aa9af22fb927ebc1a5d9
[ "MIT" ]
null
null
null
invite/admin.py
lmarvaud/django-invite
86db0fa278f373cc9481aa9af22fb927ebc1a5d9
[ "MIT" ]
4
2019-04-21T19:46:33.000Z
2019-05-26T11:30:01.000Z
invite/admin.py
lmarvaud/django-invite
86db0fa278f373cc9481aa9af22fb927ebc1a5d9
[ "MIT" ]
null
null
null
""" Admin configurations for django-invite project """ from django.conf import settings from django.contrib import admin, messages from django.forms import BooleanField, ModelForm from django.urls import reverse from django.utils.html import format_html from django.utils.translation import gettext as _ from invite.joi...
35.096774
97
0.641544
4c64283c13360b047a884cf4b6ced0d0bce12f46
7,719
py
Python
tests/handlers/auth_logging_test.py
lsst/jwt_authorizer
76b984c809ad10843f2cd6f543e88ee1002bdb96
[ "MIT" ]
null
null
null
tests/handlers/auth_logging_test.py
lsst/jwt_authorizer
76b984c809ad10843f2cd6f543e88ee1002bdb96
[ "MIT" ]
5
2019-06-18T17:28:52.000Z
2020-04-20T22:15:54.000Z
tests/handlers/auth_logging_test.py
lsst/gafaelfawr
a9dd91c7770e194d609f64fee6fd955a27231bd6
[ "MIT" ]
1
2019-06-25T16:04:57.000Z
2019-06-25T16:04:57.000Z
"""Tests for logging in the /auth route.""" from __future__ import annotations import base64 import pytest from _pytest.logging import LogCaptureFixture from httpx import AsyncClient from gafaelfawr.factory import Factory from ..support.constants import TEST_HOSTNAME from ..support.logging import parse_log from .....
30.389764
79
0.545278
ba2f37ae5a77a00c92d022170097c184e46bbf5d
1,351
py
Python
pyosu/types/game_modes.py
obayemi/Osu.py
3d6e5390230732e716c9251d9e978fbf1f939ca4
[ "MIT" ]
null
null
null
pyosu/types/game_modes.py
obayemi/Osu.py
3d6e5390230732e716c9251d9e978fbf1f939ca4
[ "MIT" ]
null
null
null
pyosu/types/game_modes.py
obayemi/Osu.py
3d6e5390230732e716c9251d9e978fbf1f939ca4
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2018 Renondedju # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pub...
36.513514
80
0.717987
d3032b63d387c5498a63b9d777cc69a7666c4d24
32,933
py
Python
libs/blocks/blocks/algorithms/__init__.py
dendisuhubdy/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
295
2015-09-25T21:15:04.000Z
2022-01-13T01:16:18.000Z
libs/blocks/blocks/algorithms/__init__.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
21
2015-10-28T19:06:32.000Z
2022-03-11T23:13:05.000Z
libs/blocks/blocks/algorithms/__init__.py
shenshenzhanzhan/attention-lvcsr
598d487c118e66875fdd625baa84ed29d283b800
[ "MIT" ]
114
2015-09-26T21:23:02.000Z
2021-11-19T02:36:41.000Z
"""Training algorithms.""" import logging import itertools from abc import ABCMeta, abstractmethod from collections import OrderedDict from six.moves import reduce from picklable_itertools.extras import equizip import theano from six import add_metaclass from theano import tensor from blocks.graph import Computation...
36.837808
79
0.642426
24dec208e253c34bc6db32e687a9a080b0f99af3
5,219
py
Python
neo/contrib/nex/test_withdraw.py
iNomaD/neo-python
bf27e91c041daa05b1d73c96d97a69777048f3da
[ "MIT" ]
3
2018-08-07T23:05:34.000Z
2021-01-25T03:55:18.000Z
neo/contrib/nex/test_withdraw.py
iNomaD/neo-python
bf27e91c041daa05b1d73c96d97a69777048f3da
[ "MIT" ]
null
null
null
neo/contrib/nex/test_withdraw.py
iNomaD/neo-python
bf27e91c041daa05b1d73c96d97a69777048f3da
[ "MIT" ]
2
2021-01-17T23:13:49.000Z
2021-04-03T17:13:10.000Z
from neo.Utils.WalletFixtureTestCase import WalletFixtureTestCase from neo.Implementations.Wallets.peewee.UserWallet import UserWallet from neo.Core.Blockchain import Blockchain from neo.Core.TX.InvocationTransaction import InvocationTransaction from neo.Core.TX.Transaction import ContractTransaction from neocore.UInt1...
30.343023
149
0.707607
7f0021e7c37957c8301408a1ae409bb40051faf7
3,018
py
Python
sdk/python/kfp/v2/compiler/compiler_utils_test.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
2
2021-03-11T14:27:12.000Z
2021-03-11T14:27:24.000Z
sdk/python/kfp/v2/compiler/compiler_utils_test.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
6
2019-08-20T18:59:22.000Z
2019-08-21T16:42:18.000Z
sdk/python/kfp/v2/compiler/compiler_utils_test.py
ConverJens/pipelines
a1d453af214ec9eebad73fb05845dd3499d60d00
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.361446
80
0.725646
397e8739aff425fb3616fd5d22a4a31742305dee
3,091
py
Python
remind/models.py
jscpeterson/reminders
f1ad78daff6314a697a32a0a52d5ac16aa54eeca
[ "FSFAP" ]
null
null
null
remind/models.py
jscpeterson/reminders
f1ad78daff6314a697a32a0a52d5ac16aa54eeca
[ "FSFAP" ]
null
null
null
remind/models.py
jscpeterson/reminders
f1ad78daff6314a697a32a0a52d5ac16aa54eeca
[ "FSFAP" ]
null
null
null
from django.db import models from reminders.models import TimeStampedModel from cases.models import Case, Motion class Deadline(TimeStampedModel): FFA = 0 SCHEDULING_CONFERENCE = 1 WITNESS_LIST = 2 REQUEST_PTI = 3 CONDUCT_PTI = 4 WITNESS_PTI = 5 SCIENTIFIC_EVIDENCE = 6 PRETRIAL_MOTION_...
32.197917
87
0.658687
efb1b3c431a17a275e54d9661c24c3508e266e62
440
py
Python
gates/Sub.py
DrugoLebowski/nram-executor
3abb49b3f28cc1457f246b158167f664eaf37a8e
[ "MIT" ]
2
2018-03-13T19:55:25.000Z
2020-10-24T10:02:52.000Z
gates/Sub.py
DrugoLebowski/nram-executor
3abb49b3f28cc1457f246b158167f664eaf37a8e
[ "MIT" ]
null
null
null
gates/Sub.py
DrugoLebowski/nram-executor
3abb49b3f28cc1457f246b158167f664eaf37a8e
[ "MIT" ]
null
null
null
import numpy as np from numpy import tensordot, roll, transpose, stack from gates.Gate import Gate class Sub(Gate): def __call__(self, M: np.array, A: np.array = None, B: np.array = None) -> (np.array, np.array): rows = [roll(B[:], shift=shift, axis=1) for shift in range(M.shape[1])] ...
33.846154
100
0.611364
fbd3d0c2b0afe09da7bc6aeb29de36cbf84cf76a
216,520
py
Python
msgraph-cli-extensions/v1_0/applications_v1_0/azext_applications_v1_0/vendored_sdks/applications/aio/operations/_service_principals_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/applications_v1_0/azext_applications_v1_0/vendored_sdks/applications/aio/operations/_service_principals_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
22
2022-03-29T22:54:37.000Z
2022-03-29T22:55:27.000Z
msgraph-cli-extensions/v1_0/applications_v1_0/azext_applications_v1_0/vendored_sdks/applications/aio/operations/_service_principals_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# 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 may ...
50.826291
175
0.656466
31f577c112ff35e98c9e574a562888c04ebef78a
3,409
py
Python
barbeque/staticfiles/middleware.py
moccu/barbeque
6f18ef67162763bb9c33f73ad6af7f20e2d08b86
[ "BSD-3-Clause" ]
5
2015-04-15T08:56:14.000Z
2020-04-10T00:02:41.000Z
barbeque/staticfiles/middleware.py
moccu/barbeque
6f18ef67162763bb9c33f73ad6af7f20e2d08b86
[ "BSD-3-Clause" ]
22
2015-03-11T13:38:44.000Z
2018-12-04T17:01:23.000Z
barbeque/staticfiles/middleware.py
moccu/barbeque
6f18ef67162763bb9c33f73ad6af7f20e2d08b86
[ "BSD-3-Clause" ]
3
2015-10-01T13:20:08.000Z
2018-04-18T09:04:14.000Z
"""ServeStaticFileMiddleware facilitates serving static files on docker. When serving static files with docker we first serve them through Django, it happens only for the first time a static file is requested, then static files are cached by nginx. Another function of the middleware is to maps static files to their h...
33.752475
82
0.654444
aab52ff5307fb4dee5350f205e019e6650f97996
5,298
py
Python
tibiawikisql/models/spell.py
Galarzaa90/tibiawiki-sql
d1683320661ec3272666c846bdbeed851db1b26c
[ "Apache-2.0" ]
19
2017-10-31T12:24:37.000Z
2022-01-25T14:16:38.000Z
tibiawikisql/models/spell.py
Galarzaa90/tibiawiki-sql
d1683320661ec3272666c846bdbeed851db1b26c
[ "Apache-2.0" ]
29
2017-11-01T21:01:57.000Z
2021-08-17T23:47:51.000Z
tibiawikisql/models/spell.py
Galarzaa90/tibiawiki-sql
d1683320661ec3272666c846bdbeed851db1b26c
[ "Apache-2.0" ]
7
2017-11-01T20:47:06.000Z
2021-01-16T23:37:26.000Z
# Copyright 2021 Allan Galarza # # 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...
33.745223
120
0.606833
9eb7109d3dcc98a8cd5bea3da453230886cf093d
16,233
py
Python
tests/xbeam/modal/rotating_beam/generate_bielawa_baromega2_1e3.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
tests/xbeam/modal/rotating_beam/generate_bielawa_baromega2_1e3.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
tests/xbeam/modal/rotating_beam/generate_bielawa_baromega2_1e3.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
import h5py as h5 import numpy as np import configparser import os import sharpy.utils.algebra as algebra # Generate errors during execution import sys import sharpy.utils.cout_utils as cout case_name = 'bielawa_baromega2_1e3' route = os.path.dirname(os.path.realpath(__file__)) + '/' num_elem = 40 num_node_elem = 3 ...
41.837629
152
0.547157
1aa30dfd34d6396648b15822b1c41c2ec03fccaf
8,011
py
Python
Pyto Mac/PyObjC/DiscRecordingUI/_metadata.py
cclauss/Pyto
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
[ "MIT" ]
4
2019-03-11T18:05:49.000Z
2021-05-22T21:09:09.000Z
Pyto Mac/PyObjC/DiscRecordingUI/_metadata.py
cclauss/Pyto
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
[ "MIT" ]
null
null
null
Pyto Mac/PyObjC/DiscRecordingUI/_metadata.py
cclauss/Pyto
1c4ccc47e3a91e996bf6ec38c527d244de2cf7ed
[ "MIT" ]
1
2019-03-18T18:53:36.000Z
2019-03-18T18:53:36.000Z
# This file is generated by objective.metadata # # Last update: Sun Jul 1 17:39:54 2018 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == 'little': def littleOrBig(a, b): return a else: def littleOrBig(a, b): return b mis...
163.489796
1,973
0.739858
e1d8991d599b5dc94ae780af73d0eafaceac0003
2,433
py
Python
tools/gcc-4.8.2-Ee500v2-eabispe/powerpc-eabispe/lib/mpc7400/altivec/abi-altivec/le/libstdc++.a-gdb.py
singhalshubh/echronos
c996f1d2c8af6c6536205eb319c1bf1d4d84569c
[ "MIT" ]
154
2015-08-14T03:28:16.000Z
2022-03-19T00:06:38.000Z
tools/gcc-4.8.2-Ee500v2-eabispe/powerpc-eabispe/lib/mpc7400/altivec/abi-altivec/le/libstdc++.a-gdb.py
singhalshubh/echronos
c996f1d2c8af6c6536205eb319c1bf1d4d84569c
[ "MIT" ]
59
2015-08-30T23:17:33.000Z
2019-06-12T09:20:57.000Z
tools/gcc-4.8.2-Ee500v2-eabispe/powerpc-eabispe/lib/mpc7400/altivec/abi-altivec/le/libstdc++.a-gdb.py
singhalshubh/echronos
c996f1d2c8af6c6536205eb319c1bf1d4d84569c
[ "MIT" ]
44
2015-09-19T13:02:07.000Z
2022-03-19T00:14:11.000Z
# -*- python -*- # Copyright (C) 2009-2013 Free Software Foundation, Inc. # 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 later versio...
39.885246
113
0.721332
03ac98798faabf1f1f24d400b430a29064e1e7e4
145,105
py
Python
nova/db/sqlalchemy/api.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/api.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
null
null
null
nova/db/sqlalchemy/api.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
1
2020-07-24T10:43:58.000Z
2020-07-24T10:43:58.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (t...
33.136561
79
0.622184
a287b878b79373953d8d12f969a161dc20c978a2
2,588
py
Python
accounts/migrations/0001_initial.py
shakori999/Django_CRM
82789878b679e68e993295fde0040b16a1c56767
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0001_initial.py
shakori999/Django_CRM
82789878b679e68e993295fde0040b16a1c56767
[ "Apache-2.0" ]
2
2022-03-21T08:48:46.000Z
2022-03-21T08:49:57.000Z
accounts/migrations/0001_initial.py
shakori999/Django_CRM
82789878b679e68e993295fde0040b16a1c56767
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-10 05:24 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
51.76
235
0.590804
fb3faf6295041dcca04e5317e0852d279cff031f
8,010
py
Python
rq/utils.py
Chyroc/rq
4b8e6156448ef2e7fafd4cf22fc869bb66286995
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-29T13:47:15.000Z
2020-07-08T06:25:47.000Z
rq/utils.py
Chyroc/rq
4b8e6156448ef2e7fafd4cf22fc869bb66286995
[ "BSD-2-Clause-FreeBSD" ]
6
2020-03-24T17:12:34.000Z
2022-03-08T21:09:52.000Z
env/lib/python2.7/site-packages/rq/utils.py
Eric-Muthemba/qontroverse
1f12d0e3bbdee628a88bac77dc53426ded220755
[ "MIT" ]
1
2020-04-23T09:01:13.000Z
2020-04-23T09:01:13.000Z
# -*- coding: utf-8 -*- """ Miscellaneous helper functions. The formatter for ANSI colored console output is heavily based on Pygments terminal colorizing code, originally by Georg Brandl. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import calendar ...
29.557196
112
0.585019
e8cb0b31e0caba4312fcf1badf4c4292eba4263b
163
py
Python
backend/server/MyAPI/admin.py
boorishboy/cross-validation-web-app
eee4d452bf2654a2070fb0f5499600302fe004a8
[ "MIT" ]
null
null
null
backend/server/MyAPI/admin.py
boorishboy/cross-validation-web-app
eee4d452bf2654a2070fb0f5499600302fe004a8
[ "MIT" ]
null
null
null
backend/server/MyAPI/admin.py
boorishboy/cross-validation-web-app
eee4d452bf2654a2070fb0f5499600302fe004a8
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Parameters, Results # Register your models here. admin.site.register(Parameters) admin.site.register(Results)
27.166667
39
0.822086
46849fe7c1b65216084bf0fa5acd1b63a56a1466
539
py
Python
examples/estimating_the_flat_value.py
kamilcieslik/test_house_price_lib
98a9c9ada05b7cac1e9b835cc15031619cfa8e13
[ "MIT" ]
null
null
null
examples/estimating_the_flat_value.py
kamilcieslik/test_house_price_lib
98a9c9ada05b7cac1e9b835cc15031619cfa8e13
[ "MIT" ]
null
null
null
examples/estimating_the_flat_value.py
kamilcieslik/test_house_price_lib
98a9c9ada05b7cac1e9b835cc15031619cfa8e13
[ "MIT" ]
null
null
null
import calculator.util from calculator.prices_calculator import PricesCalculator address = calculator.util.Address("", 49.95153, 18.609122) calculator = PricesCalculator("AIzaSyBEmx5P3vl4ox4OU6nPgwTbU9k-_0Zm6Lo") calculator.selected_address = address calculator_result \ = calculator.calculate_house_price("blok", "...
38.5
85
0.751391
9d2e34c267ea1efa4ee597f2a411bab411e2475f
779
py
Python
ITP2/ITP2_11_D.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ITP2/ITP2_11_D.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ITP2/ITP2_11_D.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys import io import time import pprint input_txt = """ 5 3 """ sys.stdin = io.StringIO(input_txt);input() #sys.stdin = open('in.test') start = time.time() # copy the below part and paste to the submission form. # ---------function------------ from itertools import combinations def calc_int(...
21.638889
108
0.563543
671bc984defc53f38b0f62e450772f089861ba2a
1,670
py
Python
requirement_cmp.py
WeLikeCode/python2-final
c5cdaab9463f03e56add2424fc38f9219c185da1
[ "CC0-1.0" ]
null
null
null
requirement_cmp.py
WeLikeCode/python2-final
c5cdaab9463f03e56add2424fc38f9219c185da1
[ "CC0-1.0" ]
null
null
null
requirement_cmp.py
WeLikeCode/python2-final
c5cdaab9463f03e56add2424fc38f9219c185da1
[ "CC0-1.0" ]
null
null
null
import argparse import sys import pkg_resources from pkg_resources import DistributionNotFound, VersionConflict if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('input', nargs='+', help="File name of path - only give 2") args = parser.parse_args() assert len(args.inpu...
29.821429
105
0.568263
dbc17b2f62d645c2c14d356813ac9c2a2b5bc5d0
6,688
py
Python
pip/commands/list.py
graingert/pip
f61fb6a178eb46df811da3c729075c29f24a7080
[ "MIT" ]
null
null
null
pip/commands/list.py
graingert/pip
f61fb6a178eb46df811da3c729075c29f24a7080
[ "MIT" ]
null
null
null
pip/commands/list.py
graingert/pip
f61fb6a178eb46df811da3c729075c29f24a7080
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging from pip.basecommand import Command from pip.exceptions import DistributionNotFound from pip.index import PackageFinder from pip.req import InstallRequirement from pip.utils import get_installed_distributions, dist_is_editable from pip.cmdoptions import make_optio...
34.833333
78
0.570873
49238b352b6018cd38d9806c6a3c6a3029cd07cd
4,308
py
Python
dashboard_api/widget_data/views.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
2
2017-08-29T23:05:51.000Z
2019-04-02T21:11:35.000Z
dashboard_api/widget_data/views.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
1
2019-04-02T21:11:26.000Z
2019-04-03T15:12:57.000Z
dashboard_api/widget_data/views.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
null
null
null
# Copyright 2015,2016,2017 CSIRO # # 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...
41.028571
123
0.697075
2282b0c3de971ebe15d3f1b8878f987600d48229
1,052
py
Python
tools/clean_webconsole.py
ajesse11x/emscripten
baefce05a0c9b11b443195016c08025a386ba063
[ "MIT" ]
1
2020-03-07T09:20:03.000Z
2020-03-07T09:20:03.000Z
tools/clean_webconsole.py
ajesse11x/emscripten
baefce05a0c9b11b443195016c08025a386ba063
[ "MIT" ]
1
2017-11-08T13:48:46.000Z
2018-03-07T11:35:49.000Z
tools/clean_webconsole.py
ajesse11x/emscripten
baefce05a0c9b11b443195016c08025a386ba063
[ "MIT" ]
1
2020-02-17T01:24:51.000Z
2020-02-17T01:24:51.000Z
"""Removes timestamp and line info from a webgl log """ from __future__ import print_function import os import re import sys __rootpath__ = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def path_from_root(*pathelems): return os.path.join(__rootpath__, *pathelems) def nice(x): return '0x' + ('0' ...
28.432432
136
0.621673
228e9f2e7bac71670ee29aaf7f8a044b4801f268
107
py
Python
env/Lib/site-packages/plotly/offline/_plotlyjs_version.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
env/Lib/site-packages/plotly/offline/_plotlyjs_version.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
env/Lib/site-packages/plotly/offline/_plotlyjs_version.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
null
null
null
# DO NOT EDIT # This file is generated by the updatebundle setup.py command __plotlyjs_version__ = "2.8.3"
26.75
61
0.766355
2fa1b74248c0282bec504ca6327f48475f010552
2,972
py
Python
chat-bot/storage.py
NepStark/mee6
4a7ba6b900277dd4e55c1e2a119d49ae9f98814b
[ "MIT" ]
43
2018-02-17T21:53:51.000Z
2022-03-28T08:40:14.000Z
chat-bot/storage.py
NepStark/mee6
4a7ba6b900277dd4e55c1e2a119d49ae9f98814b
[ "MIT" ]
16
2018-02-18T01:09:32.000Z
2021-07-01T00:36:29.000Z
chat-bot/storage.py
NepStark/mee6
4a7ba6b900277dd4e55c1e2a119d49ae9f98814b
[ "MIT" ]
42
2018-03-16T01:36:49.000Z
2022-02-22T07:35:45.000Z
import asyncio import aioredis from utils import parse_redis_url class Storage(): """Adds a prefix to Redis""" def __init__(self, namespace, redis): self.namespace = namespace self.redis = redis async def set(self, key, value, expire=0): key = self.namespace + key return aw...
31.617021
78
0.597577
2b4807f27bbb85edc4db2a496c42239b2d594bda
277
py
Python
plugins/sign-in/__init__.py
fz6m/tomon-naixue
dfbdd69836f26d160cece34e204f9fb2ed731607
[ "MIT" ]
3
2020-08-23T17:43:09.000Z
2020-08-31T04:43:42.000Z
plugins/sign-in/__init__.py
fz6m/tomon-naixue
dfbdd69836f26d160cece34e204f9fb2ed731607
[ "MIT" ]
null
null
null
plugins/sign-in/__init__.py
fz6m/tomon-naixue
dfbdd69836f26d160cece34e204f9fb2ed731607
[ "MIT" ]
null
null
null
from aiotomon import get_bot from .main import mainProgram bot = get_bot() @bot.on_message async def _(ctx): await mainProgram(ctx.content, bot, ctx.author.id, ctx.channel_id, ctx.author.name, ctx.guild_id, ctx.author.id)
19.785714
55
0.624549
9ebcfd924b92c378c6769ffb6ddcf7df835b071e
9,347
py
Python
app.py
drakylar/pcf_FORK_CHECK_GITLAB
4e5e6934168857c319a56f7e474ea80705b0cdd3
[ "MIT" ]
2
2021-05-08T22:40:31.000Z
2021-05-09T19:16:28.000Z
app.py
drakylar/pcf_FORK_CHECK_GITLAB
4e5e6934168857c319a56f7e474ea80705b0cdd3
[ "MIT" ]
null
null
null
app.py
drakylar/pcf_FORK_CHECK_GITLAB
4e5e6934168857c319a56f7e474ea80705b0cdd3
[ "MIT" ]
3
2021-08-12T06:40:57.000Z
2021-12-19T11:23:03.000Z
from flask import Flask, session, render_template, request from flask import jsonify from flask_apscheduler import APScheduler from flask_session import Session from flask_compress import Compress from datetime import timedelta from system.config_load import config_dict from xml.sax.saxutils import escape import json i...
30.545752
112
0.619878
17216f94822fc5113c3363c9d376c7677edcee0b
6,682
py
Python
tests/standalone/test_admin.py
Hornobster/django-cropduster
c8ee31111c125d534160fe06eb6a9f84fd4d8417
[ "BSD-2-Clause", "MIT" ]
43
2015-01-27T11:12:37.000Z
2021-03-14T01:51:34.000Z
tests/standalone/test_admin.py
Hornobster/django-cropduster
c8ee31111c125d534160fe06eb6a9f84fd4d8417
[ "BSD-2-Clause", "MIT" ]
37
2015-01-05T16:25:39.000Z
2021-12-08T18:15:40.000Z
tests/standalone/test_admin.py
Hornobster/django-cropduster
c8ee31111c125d534160fe06eb6a9f84fd4d8417
[ "BSD-2-Clause", "MIT" ]
5
2015-05-27T21:01:50.000Z
2021-04-29T07:41:33.000Z
from __future__ import absolute_import import contextlib import re import time from unittest import SkipTest import os import django from django.core.files.storage import default_storage from django.test import override_settings import PIL.Image from selenosis import AdminSelenosisTestCase from cropduster.models im...
34.266667
94
0.614487
5aaeed6cd417ae2b5b014398a4299ba0a12405f5
1,669
py
Python
Python/klampt/control/blocks/estimators.py
mass2010chromium/Klampt
4a50ac10daf636e4f2d7acb635db2292fc2c72b6
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/control/blocks/estimators.py
mass2010chromium/Klampt
4a50ac10daf636e4f2d7acb635db2292fc2c72b6
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/control/blocks/estimators.py
mass2010chromium/Klampt
4a50ac10daf636e4f2d7acb635db2292fc2c72b6
[ "BSD-3-Clause" ]
null
null
null
from klampt.math import vectorops from .core import Block class Differentiator(Block): """Computes the derivative of some input using finite differences. """ def __init__(self,robot=None): self.robot = robot self.xlast = None Block.__init__(self,['dt','x'],['dx']) def __getstate...
29.280702
81
0.575195
6ee56bf6bef054dc56cf73b7cbd4c8d4ef013044
2,231
py
Python
tensorflow/python/autograph/converters/call_trees_test.py
khodges42/tensorflow
cb011e1dd8d79757fea01be39e19cb1155681e7e
[ "Apache-2.0" ]
3
2019-02-04T10:10:19.000Z
2019-12-29T08:09:37.000Z
tensorflow/python/autograph/converters/call_trees_test.py
khodges42/tensorflow
cb011e1dd8d79757fea01be39e19cb1155681e7e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/autograph/converters/call_trees_test.py
khodges42/tensorflow
cb011e1dd8d79757fea01be39e19cb1155681e7e
[ "Apache-2.0" ]
6
2018-11-29T20:52:00.000Z
2021-02-19T22:43:32.000Z
# Copyright 2017 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...
32.808824
80
0.694307
b99815894b07785318be64ec2d0493ab881f97bc
3,857
py
Python
src/market_watcher/market_watcher_cli.py
mcf-long-short/ibkr-options-volatility-trading
2942456b1023618ac3f9741405029d9d3b08be13
[ "MIT" ]
28
2021-06-05T23:55:50.000Z
2022-03-30T01:09:22.000Z
src/market_watcher/market_watcher_cli.py
sarangab/ibkr-options-volatility-trading
2942456b1023618ac3f9741405029d9d3b08be13
[ "MIT" ]
1
2021-06-05T10:45:14.000Z
2021-06-05T10:45:14.000Z
src/market_watcher/market_watcher_cli.py
sarangab/ibkr-options-volatility-trading
2942456b1023618ac3f9741405029d9d3b08be13
[ "MIT" ]
8
2021-06-08T06:42:02.000Z
2021-11-15T18:35:38.000Z
import click from click.utils import echo from market_watcher.version import VERSION from market_watcher.config import context from market_watcher.common import get_terget_stocks from market_watcher.common import get_email_config, get_slack_config from market_watcher.common import MarketWatcherEngine from market_watch...
32.686441
109
0.581799
f15910541218771e6961f7a3486cc1de53fa5acf
5,737
py
Python
py-tk-balls/final_bounce.py
bjocallaghan/misc-junk
dbcc3fea55b230f6d37a81c3ad6c4040d519f754
[ "MIT" ]
null
null
null
py-tk-balls/final_bounce.py
bjocallaghan/misc-junk
dbcc3fea55b230f6d37a81c3ad6c4040d519f754
[ "MIT" ]
null
null
null
py-tk-balls/final_bounce.py
bjocallaghan/misc-junk
dbcc3fea55b230f6d37a81c3ad6c4040d519f754
[ "MIT" ]
null
null
null
import Tkinter from Tkinter import Tk, Canvas, Entry, Frame, Label from time import sleep, time from random import randint, random import math NUM_BALLS = 1 MIN_RADIUS = 2 MAX_RADIUS = 15 CANVAS_WIDTH = 1000 CANVAS_HEIGHT = 600 TARGET_FPS = 60.0 G_CONSTANT = -500.0 class Ball: def __init__(self, time_step, **...
33.946746
79
0.605194
1590c00f1dbbd491961a1ecc78fd2a3a867e4929
2,885
py
Python
Assignments/CV Assignment 2/Code/q3_harris_corner_detection.py
kshitijsriv/Computer-Vision-Spring-19
7e84726d51d30ecf8a22e890aced5a48e3b5b7e5
[ "MIT" ]
null
null
null
Assignments/CV Assignment 2/Code/q3_harris_corner_detection.py
kshitijsriv/Computer-Vision-Spring-19
7e84726d51d30ecf8a22e890aced5a48e3b5b7e5
[ "MIT" ]
null
null
null
Assignments/CV Assignment 2/Code/q3_harris_corner_detection.py
kshitijsriv/Computer-Vision-Spring-19
7e84726d51d30ecf8a22e890aced5a48e3b5b7e5
[ "MIT" ]
null
null
null
import numpy as np import cv2 import Assignment_1.pad_image as pad from Assignment_1.gaussian_filter import apply_filter as convolve import matplotlib.pyplot as plt import copy sobel_v = [ [-1, 0, 1], [-2, 0, 2], [-1, 0, 1] ] sobel_h = [ [-1, -2, -1], [0, 0, 0], [1, 2, 1] ] threshold = 0.08 ...
30.052083
106
0.587175
85d2a2d89b369aeb820e9c02155cf99b21736482
6,040
py
Python
extractors/ClassroomDetector.py
mjgm97/opengamedata-core
10bbaaf8ffc43855298ecb8ad0940acc59475cc1
[ "MIT" ]
1
2021-01-19T06:50:41.000Z
2021-01-19T06:50:41.000Z
extractors/ClassroomDetector.py
mjgm97/opengamedata-core
10bbaaf8ffc43855298ecb8ad0940acc59475cc1
[ "MIT" ]
2
2020-11-30T04:20:24.000Z
2021-02-03T18:44:34.000Z
extractors/ClassroomDetector.py
opengamedata/opengamedata-backend
b6b2aa6e7c80d1bf50f71ffba917672f80f7f948
[ "MIT" ]
1
2021-12-17T15:53:16.000Z
2021-12-17T15:53:16.000Z
import csv import datetime import time from operator import itemgetter from collections import defaultdict import winsound class ClassroomDetector: def __init__(self, data_table, dt_format = "%Y-%m-%d %H:%M:%S", class_size_lower = 10, class_size_upper = 45, class_window = 600, durat...
47.1875
120
0.616225
df708255378b8948231fac11a51f6f28c5edd6c0
6,526
py
Python
billy/web/public/templatetags/customtags.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
billy/web/public/templatetags/customtags.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
billy/web/public/templatetags/customtags.py
paultag/billy
70f4c55d760552829a86b30baa6d6eac3f6dc47f
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal import re import json import urllib from django import template from django.utils.html import strip_tags import pytz from billy.core import settings from billy.web.public.forms import get_region_select_form from billy.web.public.views.utils import templatename from billy.web.public.views....
29.133929
77
0.658903
600af9a1bde01f78d2b4e6b1151402fa6b37336b
23,676
py
Python
venv/lib/python3.8/site-packages/azure/mgmt/synapse/operations/_ip_firewall_rules_operations.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/mgmt/synapse/operations/_ip_firewall_rules_operations.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/mgmt/synapse/operations/_ip_firewall_rules_operations.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 ...
48.219959
189
0.681069
ee21728ebee724e1c90f2c54846b8f889e090988
752
py
Python
org/bobink/my_eval/tokan.py
bobink/my_python_eval
9cc67f24600cc642b14f18b99eb1350e77cf87c2
[ "Apache-2.0" ]
null
null
null
org/bobink/my_eval/tokan.py
bobink/my_python_eval
9cc67f24600cc642b14f18b99eb1350e77cf87c2
[ "Apache-2.0" ]
null
null
null
org/bobink/my_eval/tokan.py
bobink/my_python_eval
9cc67f24600cc642b14f18b99eb1350e77cf87c2
[ "Apache-2.0" ]
null
null
null
from enum import Enum class TokanType(Enum): PLUS = 1 MINUS = 2 TIMES = 3 DIV = 4 LEFT_PARENTHESIS = 5 RIGHT_PARENTHESIS = 6 VALUE = 7 class Tokan: def __init__(self, __type: TokanType, __value: int): self.__type = __type self.__value = __value def get_type(self)...
22.117647
76
0.615691
988a5fefd6be7bf6bb01c2bba8c82bd65612b547
6,367
py
Python
catkin_ws/src/arg_nctu/kaku/duckietown_kaku/src/ros_smach_server.py
dimension4TW/Duckie-Servant-Robot
0dbeddf353e5407bc395dc36817775f8ce991de1
[ "CC-BY-2.0" ]
12
2016-04-14T12:21:46.000Z
2021-06-18T07:51:40.000Z
catkin_ws/src/arg_nctu/kaku/duckietown_kaku/src/ros_smach_server.py
dimension4TW/Duckie-Servant-Robot
0dbeddf353e5407bc395dc36817775f8ce991de1
[ "CC-BY-2.0" ]
4
2017-03-12T15:59:10.000Z
2017-05-21T16:14:23.000Z
catkin_ws/src/arg_nctu/kaku/duckietown_kaku/src/ros_smach_server.py
dimension4TW/Duckie-Servant-Robot
0dbeddf353e5407bc395dc36817775f8ce991de1
[ "CC-BY-2.0" ]
113
2016-05-03T06:11:42.000Z
2019-06-01T14:37:38.000Z
#!/usr/bin/env python import rospy import smach import smach_ros from geometry_msgs.msg import Twist, Point, PoseArray, Pose from gazebo_msgs.srv import GetModelState from duckietown_kaku.msg import path_followingAction, path_followingGoal, gripper_modeAction, gripper_modeGoal, gripper_grabAction, gripper_grabGoal from...
44.215278
223
0.710853
6b6759df6215a2aa900edd22fb3483fd8678d4d6
3,224
py
Python
delfin/tests/unit/drivers/hitachi/hus/test_hus.py
guankecheng/netapp
0852bd9f14d47d8f92beceb91bbd8158994f8ab1
[ "Apache-2.0" ]
null
null
null
delfin/tests/unit/drivers/hitachi/hus/test_hus.py
guankecheng/netapp
0852bd9f14d47d8f92beceb91bbd8158994f8ab1
[ "Apache-2.0" ]
null
null
null
delfin/tests/unit/drivers/hitachi/hus/test_hus.py
guankecheng/netapp
0852bd9f14d47d8f92beceb91bbd8158994f8ab1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SODA 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 applicable law or agreed to in wri...
38.380952
74
0.656017
30cd067bd51166d69fdf65a137a172c994588a4b
13,973
py
Python
services/director-v2/src/simcore_service_director_v2/api/routes/computations.py
Surfict/osparc-simcore
1e0b89574ec17ecb089674f9e5daa83d624430c8
[ "MIT" ]
null
null
null
services/director-v2/src/simcore_service_director_v2/api/routes/computations.py
Surfict/osparc-simcore
1e0b89574ec17ecb089674f9e5daa83d624430c8
[ "MIT" ]
16
2021-10-04T20:31:52.000Z
2022-03-14T04:31:25.000Z
services/director-v2/src/simcore_service_director_v2/api/routes/computations.py
Surfict/osparc-simcore
1e0b89574ec17ecb089674f9e5daa83d624430c8
[ "MIT" ]
null
null
null
# pylint: disable=too-many-arguments import logging from typing import Any, List import networkx as nx from fastapi import APIRouter, Depends, HTTPException from models_library.projects import ProjectAtDB, ProjectID from models_library.projects_state import RunningState from starlette import status from starlette.req...
38.493113
158
0.674444
0db6e90fadcb7d95b4650be7a5dff8a69cdcc7eb
970
py
Python
kubernetes/test/test_v1beta2_replica_set.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
1
2020-04-13T09:54:21.000Z
2020-04-13T09:54:21.000Z
kubernetes/test/test_v1beta2_replica_set.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
1
2019-08-15T14:27:17.000Z
2019-08-15T14:28:07.000Z
kubernetes/test/test_v1beta2_replica_set.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
2
2020-08-05T03:06:48.000Z
2020-08-05T16:08:21.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
21.555556
105
0.71134
0deefcbb57509edb6b8038c0c18d2d01cd8ebefc
9,419
py
Python
docs/conf.py
zopefoundation/zope.filerepresentation
961701bcab86a96a9a82b8bf42600d680841e753
[ "ZPL-2.1" ]
2
2019-03-18T16:32:16.000Z
2019-10-23T22:32:39.000Z
docs/conf.py
zopefoundation/zope.filerepresentation
961701bcab86a96a9a82b8bf42600d680841e753
[ "ZPL-2.1" ]
5
2016-03-24T15:22:32.000Z
2020-03-31T12:39:45.000Z
docs/conf.py
zopefoundation/zope.filerepresentation
961701bcab86a96a9a82b8bf42600d680841e753
[ "ZPL-2.1" ]
1
2015-04-03T08:50:07.000Z
2015-04-03T08:50:07.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # zope.filerepresentation documentation build configuration file, created by # sphinx-quickstart on Wed Feb 25 11:38:35 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are pres...
32.933566
140
0.719291
946a31ed6ea2efa5e706e9e1345633524236d482
61
py
Python
backend/app/common.py
Polsaker/mateapp
8dfce3b642e8b7a68e74f22864aad8cee5b65239
[ "MIT" ]
null
null
null
backend/app/common.py
Polsaker/mateapp
8dfce3b642e8b7a68e74f22864aad8cee5b65239
[ "MIT" ]
null
null
null
backend/app/common.py
Polsaker/mateapp
8dfce3b642e8b7a68e74f22864aad8cee5b65239
[ "MIT" ]
null
null
null
from flask_jwt_extended import JWTManager JWT = JWTManager()
20.333333
41
0.836066
8ca088913fdcc7bd4dd281421fa534429f5a55f3
115
py
Python
inference/example_webserver.py
zhoujinhai/MeshCNN
d76259079b39bc5c66113bda54b52da4fd64de11
[ "MIT" ]
null
null
null
inference/example_webserver.py
zhoujinhai/MeshCNN
d76259079b39bc5c66113bda54b52da4fd64de11
[ "MIT" ]
null
null
null
inference/example_webserver.py
zhoujinhai/MeshCNN
d76259079b39bc5c66113bda54b52da4fd64de11
[ "MIT" ]
null
null
null
import webserver if __name__ == '__main__': server = webserver.MeshWebServer() server.run(port=8000)
19.166667
39
0.678261
de20fb84d220e309fe57cf8a9f881c27b45bcf07
2,373
py
Python
huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/model/list_protected_instances_project_tags_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListProtectedInstancesProjectTagsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribu...
27.593023
91
0.54488
7298c3a28b0ca3d6d2fe8c6a8806e0c9efbd0735
112
py
Python
gym_ucv/__init__.py
mkisantal/gym-ucv-control
979ecbf0942ce81fab8aa7a179b154194bd023f0
[ "MIT" ]
null
null
null
gym_ucv/__init__.py
mkisantal/gym-ucv-control
979ecbf0942ce81fab8aa7a179b154194bd023f0
[ "MIT" ]
null
null
null
gym_ucv/__init__.py
mkisantal/gym-ucv-control
979ecbf0942ce81fab8aa7a179b154194bd023f0
[ "MIT" ]
null
null
null
from gym.envs.registration import register register( id='ucv-v0', entry_point='gym_ucv.envs:UcvEnv', )
16
42
0.714286
b836d2a335ae0f4146e9577ff6a90561c9e5feec
439
py
Python
src/Cleaner.py
arnavkohli/Reddgram
d91c914d1c575405a162c62385303827d675e2f5
[ "MIT" ]
1
2019-08-24T15:54:34.000Z
2019-08-24T15:54:34.000Z
src/Cleaner.py
arnavkohli/Reddgram
d91c914d1c575405a162c62385303827d675e2f5
[ "MIT" ]
5
2021-03-19T02:57:31.000Z
2022-03-11T23:57:28.000Z
src/Cleaner.py
arnavkohli/Reddgram
d91c914d1c575405a162c62385303827d675e2f5
[ "MIT" ]
null
null
null
import os class Cleaner: @staticmethod def clean(path=os.getcwd()): """ Removes all files which do not have a .py extension. """ l = os.listdir(path) to_delete = [] for item in l: if ('.' in item and 'html' not in item) or os.path.isdir(path + '/{}'.format(item)): pass else: to_delet...
18.291667
87
0.610478
f9a79a7210f2e47a43d2a6f96df0e67da9dc36c7
1,354
py
Python
scripts/conservation/reformat.py
dbmi-bgm/cgap-annotation-server
05d022f254b5e3057abf13aa9c8bdae5eb8b6e3a
[ "MIT" ]
1
2021-05-27T14:27:47.000Z
2021-05-27T14:27:47.000Z
scripts/conservation/reformat.py
dbmi-bgm/cgap-annotation-server
05d022f254b5e3057abf13aa9c8bdae5eb8b6e3a
[ "MIT" ]
8
2020-02-11T20:06:10.000Z
2020-09-28T20:03:17.000Z
scripts/conservation/reformat.py
dbmi-bgm/cgap-annotation-server
05d022f254b5e3057abf13aa9c8bdae5eb8b6e3a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # reformat.py # made by Daniel Minseok Kwon # 2020-01-28 04:36:09 ######################### import sys import os import time SVRNAME = os.uname()[1] if "MBI" in SVRNAME.upper(): sys_path = "/Users/pcaso/bin/python_lib" elif SVRNAME == "T7": sys_path = "/ms1/bin/pyth...
25.54717
77
0.554653
4fe090f35eac4024d828ca6877472d8fe54fb7fe
31,747
py
Python
odebase.py
zed-ee/grader-simulator
e8a7f14008bad1aac2363dd46afa313c6d49ac03
[ "MIT" ]
1
2019-07-18T23:19:49.000Z
2019-07-18T23:19:49.000Z
odebase.py
zed-ee/grader-simulator
e8a7f14008bad1aac2363dd46afa313c6d49ac03
[ "MIT" ]
null
null
null
odebase.py
zed-ee/grader-simulator
e8a7f14008bad1aac2363dd46afa313c6d49ac03
[ "MIT" ]
null
null
null
import sys, random, time from math import degrees, sin, cos, pi, sqrt, pow, atan from direct.showbase import PythonUtil as PU #import ode as ode #import direct.directbase.DirectStart from pandac.PandaModules import PerspectiveLens from pandac.PandaModules import TransparencyAttrib,GeomVertexReader,GeomVertexFormat,Geom...
39.388337
161
0.565313
3df32f16208c9eb761c41976b7f9102e323ebbe5
3,331
py
Python
events/settings.py
asmuratbek/events
bcc045f75a4c46d8a1a444279911f6f73662b9a1
[ "MIT" ]
null
null
null
events/settings.py
asmuratbek/events
bcc045f75a4c46d8a1a444279911f6f73662b9a1
[ "MIT" ]
null
null
null
events/settings.py
asmuratbek/events
bcc045f75a4c46d8a1a444279911f6f73662b9a1
[ "MIT" ]
null
null
null
""" Django settings for events project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
25.821705
91
0.68628
33ccb256c4c1a3a5673f595a8edb0b66c2288df2
1,266
py
Python
dockstream/utils/execute_external/Omega.py
niladell/DockStream
75f06d24a95699cdc06fe1ea021e213e1d9fa5b3
[ "Apache-2.0" ]
34
2021-08-05T06:28:30.000Z
2022-03-17T02:42:49.000Z
dockstream/utils/execute_external/Omega.py
niladell/DockStream
75f06d24a95699cdc06fe1ea021e213e1d9fa5b3
[ "Apache-2.0" ]
9
2021-08-31T10:35:51.000Z
2022-02-03T08:57:58.000Z
dockstream/utils/execute_external/Omega.py
niladell/DockStream
75f06d24a95699cdc06fe1ea021e213e1d9fa5b3
[ "Apache-2.0" ]
10
2021-08-12T02:32:11.000Z
2022-01-19T11:51:33.000Z
from dockstream.utils.enums.Omega_enums import OmegaExecutablesEnum from dockstream.utils.execute_external.execute import ExecutorBase _OE = OmegaExecutablesEnum() class OmegaExecutor(ExecutorBase): """For the execution of the "OMEGA".""" def __init__(self, prefix_execution=None, binary_location=None): ...
38.363636
99
0.617694
491ce8bfe3ba13ff7f971d39b6b3ff347062f6c9
430
py
Python
hackerrank/hkr_concatenate.py
FelixTheC/hackerrank_exercises
24eedbedebd122c53fd2cb6018cc3535d0d4c6a0
[ "MIT" ]
null
null
null
hackerrank/hkr_concatenate.py
FelixTheC/hackerrank_exercises
24eedbedebd122c53fd2cb6018cc3535d0d4c6a0
[ "MIT" ]
null
null
null
hackerrank/hkr_concatenate.py
FelixTheC/hackerrank_exercises
24eedbedebd122c53fd2cb6018cc3535d0d4c6a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @created: 01.12.19 @author: felix """ import numpy as np if __name__ == '__main__': lists_n = [] lists_m = [] n, m, p = input().split(' ') for i in range(int(n)): lists_n.append([int(i) for i in input() if i != ' ']) for i in range(int(m))...
22.631579
61
0.544186
50e3647699b45179a4bdd0e0ac45cbc61e294cfb
49,136
py
Python
env/lib/python3.6/site-packages/scipy/ndimage/filters.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
69
2019-02-18T12:07:35.000Z
2022-03-12T10:38:32.000Z
venv/lib/python3.7/site-packages/scipy/ndimage/filters.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
venv/lib/python3.7/site-packages/scipy/ndimage/filters.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
28
2019-03-22T01:07:13.000Z
2022-02-21T16:38:27.000Z
# Copyright (C) 2003-2005 Peter J. Verveer # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following d...
34.312849
90
0.60998
39ad58763e4b5d5cacf4a591118e5f0bc2da982e
24,501
py
Python
sdk/python/pulumi_gcp/compute/get_instance.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/get_instance.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/compute/get_instance.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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...
44.145946
821
0.685564
4db23badd3e491b966c6c1eb50f854e897a2a92a
644
py
Python
cybereason-threat-intel/connector.py
ftnt-cse/connector-cybereason-threat-intel
912ff3823db51126672c11c3ecd9f5b82738fa5b
[ "MIT" ]
null
null
null
cybereason-threat-intel/connector.py
ftnt-cse/connector-cybereason-threat-intel
912ff3823db51126672c11c3ecd9f5b82738fa5b
[ "MIT" ]
null
null
null
cybereason-threat-intel/connector.py
ftnt-cse/connector-cybereason-threat-intel
912ff3823db51126672c11c3ecd9f5b82738fa5b
[ "MIT" ]
null
null
null
""" Connector """ from connectors.core.connector import Connector, get_logger, ConnectorError from .operations import _run_operation, _check_health logger = get_logger('Cybereason-Threat-Intel') class CybereasonTI(Connector): def execute(self, config, operation, params, **kwargs): try: params...
33.894737
75
0.67236
775dba1f3db39f0ec1e60363bac0e139b77fdfca
1,216
py
Python
cupyx/scipy/special/bessel.py
svlandeg/cupy
484e007d5bf58a0445af2f6e7aa3fdfe0fcc2363
[ "MIT" ]
2
2020-02-28T09:27:58.000Z
2020-10-12T07:10:24.000Z
cupyx/scipy/special/bessel.py
svlandeg/cupy
484e007d5bf58a0445af2f6e7aa3fdfe0fcc2363
[ "MIT" ]
4
2020-09-15T01:49:38.000Z
2020-12-11T03:52:35.000Z
cupyx/scipy/special/bessel.py
svlandeg/cupy
484e007d5bf58a0445af2f6e7aa3fdfe0fcc2363
[ "MIT" ]
2
2018-07-21T13:44:26.000Z
2019-03-25T11:30:16.000Z
from cupy import core j0 = core.create_ufunc( 'cupyx_scipy_j0', ('f->f', 'd->d'), 'out0 = j0(in0)', doc='''Bessel function of the first kind of order 0. .. seealso:: :meth:`scipy.special.j0` ''') j1 = core.create_ufunc( 'cupyx_scipy_j1', ('f->f', 'd->d'), 'out0 = j1(in0)', doc='''B...
19.612903
57
0.5625
e737efe35c9a861fc68864533fbc64060b2608d0
3,159
py
Python
locatable-turk/generate_truth_gtjson.py
patcon/oldto
44c099550a4e3cfafa85afbaebd3cd6c33325891
[ "Apache-2.0" ]
22
2018-04-25T22:03:53.000Z
2021-07-13T18:43:23.000Z
locatable-turk/generate_truth_gtjson.py
patcon/oldto
44c099550a4e3cfafa85afbaebd3cd6c33325891
[ "Apache-2.0" ]
17
2018-04-30T14:04:08.000Z
2022-02-13T19:52:44.000Z
locatable-turk/generate_truth_gtjson.py
patcon/oldto
44c099550a4e3cfafa85afbaebd3cd6c33325891
[ "Apache-2.0" ]
7
2018-05-08T23:32:44.000Z
2022-01-27T17:49:30.000Z
#!/usr/bin/env python3 """Generate truth GTJSON from the localturk CSV output. See: https://docs.google.com/spreadsheets/d/1AZ_X4YFPJF9-KdRxjdiDJhRF5z6tAd3fBBaAXBZLNHE/edit """ from collections import defaultdict import json import csv def merge_entries(entries): """We have more than one source of truth data fo...
29.25
98
0.534663
8e69cb75d86865460995696e13255e837c4cd76f
3,823
py
Python
ex3_server.py
bokunimowakaru/ble_sensor
09e3b8252390c5c0738ca37f13a1efd47eeb298c
[ "MIT" ]
null
null
null
ex3_server.py
bokunimowakaru/ble_sensor
09e3b8252390c5c0738ca37f13a1efd47eeb298c
[ "MIT" ]
null
null
null
ex3_server.py
bokunimowakaru/ble_sensor
09e3b8252390c5c0738ca37f13a1efd47eeb298c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 ################################################################################ # BLE Sensor ex3_server.py # 1ๅˆ†้–“ใซ็™บ่ฆ‹ใ—ใŸBLEใƒ“ใƒผใ‚ณใƒณๆ•ฐใ‚’HTTPใ‚ตใƒผใƒใงLANๅ†…ใซ้…ไฟกใ—ใพใ™ใ€‚ # # Copyright (c) 2021 Wataru KUNINO ##################################################...
42.010989
80
0.472404
a3cbb789c24ff31287739d9d7edec1028f8e8c38
13,852
py
Python
tests/unit/modules/network_test.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
1
2020-10-19T11:49:49.000Z
2020-10-19T11:49:49.000Z
tests/unit/modules/network_test.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/network_test.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python Libs from __future__ import absolute_import import socket import os.path # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( mock_open, MagicMock, ...
38.477778
80
0.545625
8ed4c3a04fc6bc1966de2c63fe8911dbe83bcc74
8,226
py
Python
code/GSE84433_K-medoids.py
mrshihabullah/federated-predicted-euclidean-distance
4b7ec03e9a93cdac9d64032728028c2bec46c916
[ "BSD-3-Clause" ]
2
2022-01-09T18:39:16.000Z
2022-01-09T18:40:14.000Z
code/GSE84433_K-medoids.py
mrshihabullah/federated-predicted-euclidean-distance
4b7ec03e9a93cdac9d64032728028c2bec46c916
[ "BSD-3-Clause" ]
null
null
null
code/GSE84433_K-medoids.py
mrshihabullah/federated-predicted-euclidean-distance
4b7ec03e9a93cdac9d64032728028c2bec46c916
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import numpy as np import pandas as pd from sklearn.preprocessing import LabelEncoder from sklearn.metrics.pairwise import euclidean_distances import participant_utils as pu import coordinator_utils as cu from sklearn_extra.cluster import KMedoids import matplotlib.pyplot as plt # Read the dat...
51.093168
210
0.782276
bf698ceab92c0643a996065de58cd501336dad32
1,139
py
Python
src/megapy/pin.py
aakash-sahai/megapy
12425622937debb5323486b703361cf77986a478
[ "MIT" ]
null
null
null
src/megapy/pin.py
aakash-sahai/megapy
12425622937debb5323486b703361cf77986a478
[ "MIT" ]
null
null
null
src/megapy/pin.py
aakash-sahai/megapy
12425622937debb5323486b703361cf77986a478
[ "MIT" ]
null
null
null
from arduino import ArduinoConnection, ArduinoObject class DigitalPin(ArduinoObject): def __init__(self, conn, pin, mode='input'): ArduinoObject.__init__(self, conn, 'dp' + str(pin), 'pin digital') self._pin = pin self._mode = mode super(DigitalPin, self).create("{} {}".format(mod...
27.119048
75
0.639157
aecd7b5b3e5ad0d6ec34ed308ffc2e4f8488ff2f
5,847
py
Python
gridnode/main/persistence/model_storage.py
gmuraru/PyGridNode
f820b237e684733aa60d3fa691366c324e843276
[ "Apache-2.0" ]
null
null
null
gridnode/main/persistence/model_storage.py
gmuraru/PyGridNode
f820b237e684733aa60d3fa691366c324e843276
[ "Apache-2.0" ]
null
null
null
gridnode/main/persistence/model_storage.py
gmuraru/PyGridNode
f820b237e684733aa60d3fa691366c324e843276
[ "Apache-2.0" ]
1
2021-07-06T04:32:18.000Z
2021-07-06T04:32:18.000Z
from typing import List, Dict, Union from .database import db_instance from .model_cache import ModelCache from ..codes import MODEL from syft.serde import serialize, deserialize import hashlib class ModelStorage: """ Manage all models hosted by an specific worker. """ def __init__(self, worker): se...
34.597633
116
0.571404
67aca4ea26d8b86d58f6ccdcf6f510e70e65c65a
5,599
py
Python
evaluation_service_pb2.py
lerrytang/es_on_gke
fd498f12db73a22726b3e70362bdcbc41e75b46a
[ "Apache-2.0" ]
38
2019-06-18T00:13:18.000Z
2020-10-08T18:30:23.000Z
evaluation_service_pb2.py
BorjaEst/es_on_gke
fd498f12db73a22726b3e70362bdcbc41e75b46a
[ "Apache-2.0" ]
null
null
null
evaluation_service_pb2.py
BorjaEst/es_on_gke
fd498f12db73a22726b3e70362bdcbc41e75b46a
[ "Apache-2.0" ]
7
2019-06-18T08:09:41.000Z
2021-03-08T18:10:34.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: evaluation_service.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.p...
34.561728
517
0.757992
5df4d9fbecbb2cc92e23f82cc300df8454298060
652
py
Python
setup.py
covalentcareers/wagtail-polls
70c7ab57e5560feee603c9b5f2236f0436ac226c
[ "MIT" ]
null
null
null
setup.py
covalentcareers/wagtail-polls
70c7ab57e5560feee603c9b5f2236f0436ac226c
[ "MIT" ]
null
null
null
setup.py
covalentcareers/wagtail-polls
70c7ab57e5560feee603c9b5f2236f0436ac226c
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages import polls with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name='wagtail-rest-polls', version=polls.__version__, description='A simple polls app for wagtail in django', long_description=long_descript...
26.08
59
0.710123
6f47c87a669aff866bcda779598feea0ed4b57e1
731
py
Python
variation/translators/genomic_substitution.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
1
2022-01-19T18:17:49.000Z
2022-01-19T18:17:49.000Z
variation/translators/genomic_substitution.py
cancervariants/variation-normalization
9c8fbab1562591ae9445d82ddd15df29f1ea1f5a
[ "MIT" ]
99
2021-06-07T12:50:34.000Z
2022-03-23T13:38:29.000Z
variation/translators/genomic_substitution.py
cancervariants/variant-normalization
e89a9f8366a659c82b2042aeb7effe339851bfb4
[ "MIT" ]
null
null
null
"""Module for Genomic Substitution Translation.""" from variation.translators.translator import Translator from variation.schemas.classification_response_schema import ClassificationType from variation.schemas.token_response_schema import GenomicSubstitutionToken class GenomicSubstitution(Translator): """The Geno...
43
79
0.78249
2bea676b32223bbb1395381005b33a4ec835d906
251
py
Python
myapp/main/__init__.py
menghao2015/MyBlog
8cc7b74295bfbdfc0f825665c915bf36bbf772fe
[ "MIT" ]
null
null
null
myapp/main/__init__.py
menghao2015/MyBlog
8cc7b74295bfbdfc0f825665c915bf36bbf772fe
[ "MIT" ]
null
null
null
myapp/main/__init__.py
menghao2015/MyBlog
8cc7b74295bfbdfc0f825665c915bf36bbf772fe
[ "MIT" ]
null
null
null
from flask import Blueprint main = Blueprint('main', __name__) from . import views, errors from ..models import Permission #define variable in all template @main.app_context_processor def injuect_permissions(): return dict(Permission=Permission)
19.307692
35
0.796813
5270a13f4462fc48eadd31c88bbe272ddbda57d5
3,739
py
Python
datadog_checks_downloader/datadog_checks/downloader/cli.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_downloader/datadog_checks/downloader/cli.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_downloader/datadog_checks/downloader/cli.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # 1st party. import argparse import os import re import sys # 2nd party. from .download import DEFAULT_ROOT_LAYOUT_TYPE, REPOSITORY_URL_PREFIX, ROOT_LAYOUTS, TUFDownloader from .exceptions import NonCan...
30.900826
120
0.677186
7c9e0689f9cf7cbfb2758a84620823459083a93f
21,792
py
Python
src/scripts/utility_source_generator.py
TrevorDev/OpenXR-SDK
5ca8a38cb7a65fc0ffcea88f565f27465d3b5be8
[ "Apache-2.0" ]
null
null
null
src/scripts/utility_source_generator.py
TrevorDev/OpenXR-SDK
5ca8a38cb7a65fc0ffcea88f565f27465d3b5be8
[ "Apache-2.0" ]
null
null
null
src/scripts/utility_source_generator.py
TrevorDev/OpenXR-SDK
5ca8a38cb7a65fc0ffcea88f565f27465d3b5be8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 -i # # Copyright (c) 2017-2019 The Khronos Group Inc. # Copyright (c) 2017-2019 Valve Corporation # Copyright (c) 2017-2019 LunarG, 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 th...
49.191874
126
0.598109
058cd126080b8dcb22d6d4f9d19205851c09eec7
6,131
py
Python
tests/cupy_tests/cuda_tests/test_memory.py
PhysicsTeacher13/CHAINER
64018f7c6956c8ea42220e2e4bd55f7ff30df097
[ "BSD-3-Clause" ]
null
null
null
tests/cupy_tests/cuda_tests/test_memory.py
PhysicsTeacher13/CHAINER
64018f7c6956c8ea42220e2e4bd55f7ff30df097
[ "BSD-3-Clause" ]
null
null
null
tests/cupy_tests/cuda_tests/test_memory.py
PhysicsTeacher13/CHAINER
64018f7c6956c8ea42220e2e4bd55f7ff30df097
[ "BSD-3-Clause" ]
null
null
null
import ctypes import unittest import cupy.cuda from cupy.cuda import memory from cupy import testing class MockMemory(memory.Memory): cur_ptr = 1 def __init__(self, size): self.ptr = MockMemory.cur_ptr MockMemory.cur_ptr += size self.size = size self.device = None def __...
30.053922
79
0.602349
5dc20ed4d850bac830e27240c8ca5946967c396e
1,712
py
Python
aliyun-python-sdk-reid/aliyunsdkreid/request/v20190928/PullTakeShoesEventRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-reid/aliyunsdkreid/request/v20190928/PullTakeShoesEventRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-reid/aliyunsdkreid/request/v20190928/PullTakeShoesEventRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.24
82
0.752336
3a7ba97d6bfc04a4b61127a34d5b2ad3d7354bef
5,985
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_list_searches_response.py
onilton/polyaxon
3b0d7cbeead74e62eb0eedbb2962f605ebb9fa81
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_list_searches_response.py
onilton/polyaxon
3b0d7cbeead74e62eb0eedbb2962f605ebb9fa81
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_list_searches_response.py
onilton/polyaxon
3b0d7cbeead74e62eb0eedbb2962f605ebb9fa81
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
27.708333
120
0.597327
b8be9c32211bd94d19dd347849f3c6fdd709c5d3
1,145
py
Python
UserModel/migrations/0001_initial.py
CryptoCompetition2019-RNG/AuthServer
c22e2b13af2cc51f62fdc55e3f682eb344d4fbcb
[ "Apache-2.0" ]
null
null
null
UserModel/migrations/0001_initial.py
CryptoCompetition2019-RNG/AuthServer
c22e2b13af2cc51f62fdc55e3f682eb344d4fbcb
[ "Apache-2.0" ]
10
2020-06-05T23:28:04.000Z
2022-03-12T00:02:52.000Z
UserModel/migrations/0001_initial.py
CryptoCompetition2019-RNG/AuthServer
c22e2b13af2cc51f62fdc55e3f682eb344d4fbcb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-21 03:24 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='UserModel', fields=[ ('id', models.AutoFiel...
39.482759
148
0.61048
4814c0724f27b85529dac2f350d37b70f1e89d31
5,855
py
Python
docs/conf.py
mt-inside/tarmak
ba3d95dbf54cc321156a0c21399249768d4e37c1
[ "Apache-2.0" ]
1
2021-10-15T13:43:54.000Z
2021-10-15T13:43:54.000Z
docs/conf.py
mt-inside/tarmak
ba3d95dbf54cc321156a0c21399249768d4e37c1
[ "Apache-2.0" ]
6
2021-09-28T06:04:47.000Z
2022-02-26T12:25:30.000Z
docs/conf.py
mt-inside/tarmak
ba3d95dbf54cc321156a0c21399249768d4e37c1
[ "Apache-2.0" ]
1
2021-10-15T13:43:45.000Z
2021-10-15T13:43:45.000Z
# Copyright Jetstack Ltd. See LICENSE for details. # -*- coding: utf-8 -*- # # Tarmak documentation build configuration file, created by # sphinx-quickstart on Mon Sep 4 15:49:00 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration valu...
30.180412
79
0.680102
3fc5341451e4c0605177b6e4f86ea507d19449e9
2,066
py
Python
workflow/scripts/tsinfer-gnn.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
1
2022-03-21T17:43:08.000Z
2022-03-21T17:43:08.000Z
workflow/scripts/tsinfer-gnn.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
null
null
null
workflow/scripts/tsinfer-gnn.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import sys import json import pandas as pd import tskit ts = tskit.load(snakemake.input.trees) mode = snakemake.wildcards.mode if mode == "population": samples_listed_by_group = [ ts.samples(population=pop_id) for pop_id in range(ts.num_populations...
28.30137
81
0.689255
d84d74041cedc2ff191ea7bdde87fccf3b1477b7
681
py
Python
compliance/utils/__init__.py
Invidence/auditree-framework
39fbef32aa5066449485af501a74051838dc45f6
[ "Apache-2.0" ]
null
null
null
compliance/utils/__init__.py
Invidence/auditree-framework
39fbef32aa5066449485af501a74051838dc45f6
[ "Apache-2.0" ]
15
2020-11-10T23:01:35.000Z
2021-08-19T23:30:27.000Z
compliance/utils/__init__.py
dlminvestments/auditree-framework
19858c17797a7626fe20f0489d1aab163c6d69ec
[ "Apache-2.0" ]
null
null
null
# -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. 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 # # ...
42.5625
74
0.748899
c65df0aa2ecca35449ea4c52883c674c0b732ff8
159
py
Python
fundamentals/list_unpacking.py
fredsonchaves07/python-fundamentals
4aee479c48f86319a2041e35ea985f971393c2ce
[ "MIT" ]
null
null
null
fundamentals/list_unpacking.py
fredsonchaves07/python-fundamentals
4aee479c48f86319a2041e35ea985f971393c2ce
[ "MIT" ]
null
null
null
fundamentals/list_unpacking.py
fredsonchaves07/python-fundamentals
4aee479c48f86319a2041e35ea985f971393c2ce
[ "MIT" ]
null
null
null
""" - Podemos realizar a operaรงรฃo de desempacotamento de listas """ lista = ['Python', 'Java', 'Javascript'] python, java, javascript = lista print(python)
17.666667
59
0.698113
0357ef08a55981e29f07ac5b3b07f8ad534c3ff4
144
py
Python
DungeonCrawl/Model/GameObjects/Sword.py
BoogyWinterfell/friday-fun
686e8c53415e748db437e74c3e2b02afcd9695bf
[ "MIT" ]
null
null
null
DungeonCrawl/Model/GameObjects/Sword.py
BoogyWinterfell/friday-fun
686e8c53415e748db437e74c3e2b02afcd9695bf
[ "MIT" ]
null
null
null
DungeonCrawl/Model/GameObjects/Sword.py
BoogyWinterfell/friday-fun
686e8c53415e748db437e74c3e2b02afcd9695bf
[ "MIT" ]
null
null
null
from dataclasses import dataclass from DungeonCrawl.Model.GameObjects.Abstract.Weapon import Weapon @dataclass class Sword(Weapon): pass
16
65
0.8125
7a95643dfa8762f85fec236a361696f90866b5a6
3,552
py
Python
libs/telegram/dice.py
rocketbot-cl/Telegram
e44713f6eb15460d4609d844ed5cccbbc84d4309
[ "MIT" ]
null
null
null
libs/telegram/dice.py
rocketbot-cl/Telegram
e44713f6eb15460d4609d844ed5cccbbc84d4309
[ "MIT" ]
null
null
null
libs/telegram/dice.py
rocketbot-cl/Telegram
e44713f6eb15460d4609d844ed5cccbbc84d4309
[ "MIT" ]
null
null
null
#!/usr/bin/env python # pylint: disable=R0903 # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2020 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public L...
44.4
99
0.701014
b2a8e74da3cd6d797f2e8539cbac096dbddf826d
1,384
py
Python
CLRS/Chapter4/max_subarray_recursive.py
Niranjan-Ananth/DS-and-Algorithms
8a0c7331fa18dde24ff50888714bb1949af821f4
[ "MIT" ]
null
null
null
CLRS/Chapter4/max_subarray_recursive.py
Niranjan-Ananth/DS-and-Algorithms
8a0c7331fa18dde24ff50888714bb1949af821f4
[ "MIT" ]
null
null
null
CLRS/Chapter4/max_subarray_recursive.py
Niranjan-Ananth/DS-and-Algorithms
8a0c7331fa18dde24ff50888714bb1949af821f4
[ "MIT" ]
null
null
null
def find_max_crossing_subarray(arr, low, mid, high): left_sum = -10000 sum = 0 left = 0 right = 0 for i in range(mid, low-1, -1): sum += arr[i] if sum > left_sum: left_sum = sum left = i right_sum = -10000 sum = 0 for i in range(mid+1, high+1): ...
37.405405
115
0.620665
8aebbc975ba3b764d39a708483b8860ff79580c6
1,314
py
Python
samples/getting-started/qrng/host.py
Rayislandstyle/Quantum
fa1eb9dcc64785eeefc25ba332967fc67789bc78
[ "MIT" ]
2
2020-12-21T05:59:27.000Z
2021-03-07T01:55:57.000Z
samples/getting-started/qrng/host.py
Rayislandstyle/Quantum
fa1eb9dcc64785eeefc25ba332967fc67789bc78
[ "MIT" ]
2
2021-05-13T03:33:09.000Z
2022-03-25T19:18:38.000Z
samples/getting-started/qrng/host.py
Rayislandstyle/Quantum
fa1eb9dcc64785eeefc25ba332967fc67789bc78
[ "MIT" ]
1
2020-07-28T01:34:44.000Z
2020-07-28T01:34:44.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # This Python script contains a quantum random integer generator # using the operation QuantumRandomNumberGenerator defined in # the file qrng.qs. # For instructions on how to install the qsharp package, # see: https://docs.microsoft.com/quantum...
42.387097
73
0.727549
e41d10bf745acbb9eeb46e9f07d077f0f14cc477
6,172
py
Python
tracking/tracks.py
XiaoJake/EagerMOT
99ffeee5a9d2ff9950701b00e0daedb1704e3812
[ "MIT" ]
2
2021-12-30T14:41:05.000Z
2022-01-21T20:58:31.000Z
tracking/tracks.py
chisyliu/EagerMOT
3733e6070e7ac644315d28c1c5c4c525cce64746
[ "MIT" ]
null
null
null
tracking/tracks.py
chisyliu/EagerMOT
3733e6070e7ac644315d28c1c5c4c525cce64746
[ "MIT" ]
1
2021-07-04T06:16:57.000Z
2021-07-04T06:16:57.000Z
import copy import pickle from pathlib import Path import time from statistics import median from typing import List, Optional, Dict, Any, Mapping import numpy as np from filterpy.kalman import KalmanFilter from inputs.bbox import Bbox3d, Bbox2d, ProjectsToCam from objects.fused_instance import FusedInstance, Source ...
40.077922
105
0.68908