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
501426edeff24bcb484648273e3ff6e75955852a
11,806
py
Python
sdk/aqualink_sdk/model/exclusion_dates.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
1
2022-02-06T23:05:37.000Z
2022-02-06T23:05:37.000Z
sdk/aqualink_sdk/model/exclusion_dates.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
3
2022-02-07T06:13:31.000Z
2022-03-11T12:43:39.000Z
sdk/aqualink_sdk/model/exclusion_dates.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
null
null
null
""" Aqualink API documentation The Aqualink public API documentation # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from aqualink_sdk.model_utils import ( # noqa: F401 ApiTypeError, ...
42.164286
121
0.566068
3ac0209bd640cbfc118432c8d5e4f7af3da66b8f
1,965
py
Python
.actions/assistant.py
jungin500/pytorch-lightning
b5f2b3e12c099282d475c8ec4d058064c433d7d5
[ "Apache-2.0" ]
null
null
null
.actions/assistant.py
jungin500/pytorch-lightning
b5f2b3e12c099282d475c8ec4d058064c433d7d5
[ "Apache-2.0" ]
1
2022-03-18T21:56:53.000Z
2022-03-18T21:56:53.000Z
.actions/assistant.py
jungin500/pytorch-lightning
b5f2b3e12c099282d475c8ec4d058064c433d7d5
[ "Apache-2.0" ]
null
null
null
import datetime import os import re from pprint import pprint from typing import Sequence import fire REQUIREMENT_FILES = ( "requirements.txt", "requirements/extra.txt", "requirements/loggers.txt", # "requirements/test.txt", "requirements/examples.txt", ) class AssistantCLI: _PATH_ROOT = os...
29.772727
90
0.625954
b1d8cf43c538a12c9ba9fc8cfb36780d4fcaeabf
584
py
Python
Client_Requests_Classes/update_contact.py
TarekElDick/Peer-to-Peer-File-System
a98244088a4ea57860adc3b6565b833a25ab9ea3
[ "MIT" ]
null
null
null
Client_Requests_Classes/update_contact.py
TarekElDick/Peer-to-Peer-File-System
a98244088a4ea57860adc3b6565b833a25ab9ea3
[ "MIT" ]
null
null
null
Client_Requests_Classes/update_contact.py
TarekElDick/Peer-to-Peer-File-System
a98244088a4ea57860adc3b6565b833a25ab9ea3
[ "MIT" ]
null
null
null
from Client_Requests_Classes import request class UpdateContact(request.clientRequest): def __init__(self, name, host, udp_socket, tcp_socket) -> object: super().__init__('update-contact') self.name = name self.host = host self.udp_socket = udp_socket self.tcp_socket = tcp_...
36.5
108
0.606164
99418fe4aec5902842ab9cce5a7640495ff70b71
1,535
py
Python
4-Redis/Redis-Basics/Redis-as-caching/driver.py
Ziang-Lu/Database-Learning-Notes
5435ebd56a412155e98d1edb29f442439b6c199b
[ "MIT" ]
2
2019-04-11T12:25:38.000Z
2019-09-20T12:11:30.000Z
4-Redis/Redis-Basics/Redis-as-caching/driver.py
Ziang-Lu/Database-Learning-Notes
5435ebd56a412155e98d1edb29f442439b6c199b
[ "MIT" ]
null
null
null
4-Redis/Redis-Basics/Redis-as-caching/driver.py
Ziang-Lu/Database-Learning-Notes
5435ebd56a412155e98d1edb29f442439b6c199b
[ "MIT" ]
null
null
null
#!usr/bin/env python3 # -*- coding: utf-8 -*- """ Simple demo to use Redis between the application layer and the actual DB (here, MySQL) as a cache. Before running this script, first make sure: 1. MySQL server is up and running, and create a MySQL database called "test": > mysql -u root -p (inside interactive s...
26.016949
79
0.68013
3f608f313c16fec08cefbbb48ee0b85b9733915c
20,286
py
Python
sdks/python/apache_beam/pipeline_test.py
nguyent/beam
d264cf9d5e80cf100880a456a61bc5077b9ff437
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/pipeline_test.py
nguyent/beam
d264cf9d5e80cf100880a456a61bc5077b9ff437
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/pipeline_test.py
nguyent/beam
d264cf9d5e80cf100880a456a61bc5077b9ff437
[ "Apache-2.0" ]
1
2018-08-08T15:10:20.000Z
2018-08-08T15:10:20.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 us...
34.266892
94
0.676378
3aa7a835c42969a7361c77e629ab2c2cae750b43
1,611
py
Python
main.py
SamGarlick/RL-TicTacToe
bee72b99936b343cdc170c2bc41f81257ac72b50
[ "Unlicense" ]
1
2020-09-11T18:33:59.000Z
2020-09-11T18:33:59.000Z
main.py
SamGarlick/RL-TicTacToe
bee72b99936b343cdc170c2bc41f81257ac72b50
[ "Unlicense" ]
null
null
null
main.py
SamGarlick/RL-TicTacToe
bee72b99936b343cdc170c2bc41f81257ac72b50
[ "Unlicense" ]
null
null
null
import random from environment import TicTacToe, X, O from agent import Agent def get_player_move(env): """ Get the player move as an index in the board """ valid_moves = ["a1", "a2", "a3", "b1", "b2", "b3", "c1", "c2", "c3"] while True: move = input("Where would you like to go? (a...
29.833333
78
0.520174
dd76db453903e5f490f5e716f608e3654a206c5c
245
py
Python
Section01_SOLID/OpenClosePrinciple/SizeSpecification.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
1
2020-10-20T07:41:51.000Z
2020-10-20T07:41:51.000Z
Section01_SOLID/OpenClosePrinciple/SizeSpecification.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
null
null
null
Section01_SOLID/OpenClosePrinciple/SizeSpecification.py
enriqueescobar-askida/Kinito.Python
e4c5521e771c4de0ceaf81776a4a61f7de01edb4
[ "MIT" ]
null
null
null
from Section01_SOLID.OpenClosePrinciple.Specification import Specification class SizeSpecification(Specification): def __init__(self, size): self.size = size def is_satisfied(self, item): return item.size == self.size
24.5
74
0.734694
b0e81bd8cbc1052d1d461a12b04a27e79fad1172
45,534
py
Python
src/transformers/utils/dummy_pt_objects.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
2
2020-11-30T11:30:40.000Z
2021-03-26T17:20:33.000Z
src/transformers/utils/dummy_pt_objects.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-11-12T11:00:12.000Z
2020-11-12T11:00:12.000Z
src/transformers/utils/dummy_pt_objects.py
timpal0l/transformers
d86d57faa3b6511c6e4d9139535d77b695b9af8a
[ "Apache-2.0" ]
1
2020-11-17T02:48:00.000Z
2020-11-17T02:48:00.000Z
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_pytorch class PyTorchBenchmark: def __init__(self, *args, **kwargs): requires_pytorch(self) class PyTorchBenchmarkArguments: def __init__(self, *args, **kwargs): requires_pytorch(sel...
21.838849
75
0.690715
e031bb25fa647b9744b2626c024e1c665824bedc
334
py
Python
user_response/migrations/0017_auto_20181007_1958.py
Riyazm16/chatbot
1d0eb3ac70cc60be34f395b895edc473fd33bd62
[ "MIT" ]
null
null
null
user_response/migrations/0017_auto_20181007_1958.py
Riyazm16/chatbot
1d0eb3ac70cc60be34f395b895edc473fd33bd62
[ "MIT" ]
null
null
null
user_response/migrations/0017_auto_20181007_1958.py
Riyazm16/chatbot
1d0eb3ac70cc60be34f395b895edc473fd33bd62
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-07 19:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user_response', '0016_auto_20181007_1957'), ] operations = [ migrations.RenameModel( old_name='Userb', new_name='Userz', ...
18.555556
53
0.598802
cd23c3a48ada3289d432a4edd82fd726eb9277e9
100
py
Python
enthought/block_canvas/canvas/i_selectable.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/block_canvas/canvas/i_selectable.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/block_canvas/canvas/i_selectable.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from blockcanvas.canvas.i_selectable import *
25
45
0.85
408939910cff209b6e6c7661dd7d52b3eadee979
717
py
Python
src/cuddlybuddly/thumbnail/listeners.py
kylemacfarlane/django-cb-thumbnail
75bf81993cc86969d8bfb467cba918cd80a6803d
[ "BSD-3-Clause" ]
1
2015-09-28T10:08:13.000Z
2015-09-28T10:08:13.000Z
src/cuddlybuddly/thumbnail/listeners.py
kylemacfarlane/django-cb-thumbnail
75bf81993cc86969d8bfb467cba918cd80a6803d
[ "BSD-3-Clause" ]
null
null
null
src/cuddlybuddly/thumbnail/listeners.py
kylemacfarlane/django-cb-thumbnail
75bf81993cc86969d8bfb467cba918cd80a6803d
[ "BSD-3-Clause" ]
null
null
null
import hashlib import os from django.conf import settings from django.db.models.fields.files import FieldFile from django.utils.encoding import force_unicode def update_cache(sender, instance, **kwargs): for field in instance.__dict__.keys(): field = getattr(instance, field) if isinstance(field, F...
34.142857
79
0.610879
69215468a5e49078e116ae5cd5818664a0011932
153
py
Python
example/app.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
12
2019-09-06T05:14:46.000Z
2022-02-17T09:26:38.000Z
example/app.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
null
null
null
example/app.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
1
2019-09-10T03:57:21.000Z
2019-09-10T03:57:21.000Z
from sanic import Sanic from .routes import register_routes def create_app(): app = Sanic("devtools-demo") register_routes(app) return app
17
35
0.72549
7ad58c5023dcc49075a77342a7ffb55d85c847f9
349
py
Python
Leetcode/0063. Unique Paths II/0063-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0063. Unique Paths II/0063-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
Leetcode/0063. Unique Paths II/0063-2.py
Next-Gen-UI/Code-Dynamics
a9b9d5e3f27e870b3e030c75a1060d88292de01c
[ "MIT" ]
null
null
null
class Solution: def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: m = len(obstacleGrid) n = len(obstacleGrid[0]) dp = [0] * n dp[0] = 1 for i in range(m): for j in range(n): if obstacleGrid[i][j]: dp[j] = 0 elif j > 0: dp[j] += dp[...
21.8125
75
0.510029
6ba6c91dfa0cd78d9fe53e9b80af6fc3bf357741
390
py
Python
Balkan/wsgi.py
hell0ut/Balkan
ab0b03376740e1ae78618f76c18092cc99d7f00c
[ "MIT" ]
null
null
null
Balkan/wsgi.py
hell0ut/Balkan
ab0b03376740e1ae78618f76c18092cc99d7f00c
[ "MIT" ]
null
null
null
Balkan/wsgi.py
hell0ut/Balkan
ab0b03376740e1ae78618f76c18092cc99d7f00c
[ "MIT" ]
null
null
null
""" WSGI config for Balkan project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
21.666667
78
0.782051
81862c6a26e2bd18ed7e36814f416188a7ec02e0
7,504
py
Python
contrib/message-capture/message-capture-parser.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
3
2020-04-24T08:03:09.000Z
2020-06-24T00:53:03.000Z
contrib/message-capture/message-capture-parser.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
8
2021-02-06T16:15:10.000Z
2022-02-20T20:08:45.000Z
contrib/message-capture/message-capture-parser.py
eleccoin/eleccoin
95f86f28019fe8666816e75e1dc82f1edeee3b31
[ "MIT" ]
7
2020-02-26T22:08:49.000Z
2021-02-06T12:35:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 The Eleccoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Parse message capture binary files. To be used in conjunction with -capturemessages.""" import argparse i...
34.902326
126
0.595016
6e333c3f1a05a5a06c7fa1c66043d7355b414cf4
8,991
py
Python
nova/tests/unit/compute/test_resources.py
patanric/nova-fairness
559f121190f3d71f7e3067e688b50d3d6d16e383
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/compute/test_resources.py
patanric/nova-fairness
559f121190f3d71f7e3067e688b50d3d6d16e383
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/compute/test_resources.py
patanric/nova-fairness
559f121190f3d71f7e3067e688b50d3d6d16e383
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # 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/LICEN...
33.055147
79
0.64965
0d214b28eaf33a0482edd2aa5cdaac4835ad58fe
19,455
py
Python
tjsp-beta/tjsp/tjsp.py
aassumpcao/judicialbias
fe03583251a31075a147f397279be48d706309e2
[ "MIT" ]
7
2019-01-14T21:15:05.000Z
2021-09-03T14:09:40.000Z
tjsp-beta/tjsp/tjsp.py
aassumpcao/judicialbias
fe03583251a31075a147f397279be48d706309e2
[ "MIT" ]
null
null
null
tjsp-beta/tjsp/tjsp.py
aassumpcao/judicialbias
fe03583251a31075a147f397279be48d706309e2
[ "MIT" ]
null
null
null
### tjsp classes and methods # developed by: # Andre Assumpcao # andre.assumpcao@gmail.com # import standard libraries import codecs import glob import math import numpy as np import os import pandas as pd import re import time # import third-party libraries from bs4 import BeautifulSoup from selenium ...
34.55595
79
0.599126
3dd2c1fead2a5029433731fd82c6e88863ef52fc
3,097
py
Python
tensorflow_addons/activations/hardshrink_test.py
PhilJd/addons
758d8838090c24914ee74b88bd24ee02f7e68850
[ "Apache-2.0" ]
1
2021-01-13T17:56:42.000Z
2021-01-13T17:56:42.000Z
tensorflow_addons/activations/tests/hardshrink_test.py
Ankur3107/addons
af6866a2e6d9ddbc79d612d7cb04a8a5befe4a47
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/activations/tests/hardshrink_test.py
Ankur3107/addons
af6866a2e6d9ddbc79d612d7cb04a8a5befe4a47
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.869048
83
0.704876
24057333871fd8c53f5f599b75bbd3bb2da776ae
2,044
py
Python
examples/dfp/v201405/activity_service/get_all_activities.py
dietrichc/streamline-ppc-reports
256f79246aba3c2cf8f792d87a066391a2f471e0
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201405/activity_service/get_all_activities.py
dietrichc/streamline-ppc-reports
256f79246aba3c2cf8f792d87a066391a2f471e0
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201405/activity_service/get_all_activities.py
dietrichc/streamline-ppc-reports
256f79246aba3c2cf8f792d87a066391a2f471e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
32.967742
79
0.726517
673ced1d6bc08c1dacd1616a6d5217c0506ea998
1,307
py
Python
setup.py
aaronaddleman/python-experiments
ab79790bbb604e54f7c4fd64ee905a313b6ad913
[ "MIT" ]
null
null
null
setup.py
aaronaddleman/python-experiments
ab79790bbb604e54f7c4fd64ee905a313b6ad913
[ "MIT" ]
null
null
null
setup.py
aaronaddleman/python-experiments
ab79790bbb604e54f7c4fd64ee905a313b6ad913
[ "MIT" ]
null
null
null
""" Python experiments """ from setuptools import setup, find_packages import pathlib here = pathlib.Path(__file__).parent.resolve() long_description = (here / 'README.md').read_text(encoding='utf-8') setup( name='Python Experiments', version='0.0.1', description='Things to show off Python', long_de...
25.627451
67
0.586075
ece55f360cf06a555eec4364e67bc4bbdb8b9d2a
1,699
py
Python
GridPi/tests/test_SQLAlchemyGP.py
ohowland/GridPi
147490e18401763fb2bde6d4deeb44b7737aa68b
[ "MIT" ]
4
2018-12-31T02:05:12.000Z
2022-03-18T00:07:36.000Z
GridPi/tests/test_SQLAlchemyGP.py
ohowland/GridPi
147490e18401763fb2bde6d4deeb44b7737aa68b
[ "MIT" ]
null
null
null
GridPi/tests/test_SQLAlchemyGP.py
ohowland/GridPi
147490e18401763fb2bde6d4deeb44b7737aa68b
[ "MIT" ]
1
2020-09-29T19:53:06.000Z
2020-09-29T19:53:06.000Z
import logging import unittest from configparser import ConfigParser from GridPi.lib import gridpi_core from GridPi.lib.models import model_core from GridPi.lib.persistence import SQLAlchemyGP class TestStorageClass(unittest.TestCase): def setUp(self): logging.basicConfig(format='%(levelname)s:%(message...
36.148936
105
0.57269
d32de7736d24e58a249e6e866ec9fc0d072384f3
2,834
py
Python
selection.py
cenwangumass/cs590m-homework06
f2ca68318dcc54503e77dcb62ff973515eaf764a
[ "MIT" ]
null
null
null
selection.py
cenwangumass/cs590m-homework06
f2ca68318dcc54503e77dcb62ff973515eaf764a
[ "MIT" ]
null
null
null
selection.py
cenwangumass/cs590m-homework06
f2ca68318dcc54503e77dcb62ff973515eaf764a
[ "MIT" ]
null
null
null
from math import ceil, sqrt import numpy as np from simulation import Simulation, TimeStopCondition, Collector, Event from stats import make_successive_call_distribution from model import SystemState, CallStarted def compute_lambda(r): return 6 * (r / 0.05) ** 1.3 class FeeCollector(Collector): def __ini...
26.990476
77
0.595272
65febfb0dafbce2480d220b347787c8b46b2b341
763
py
Python
mysite/account/models/user_model.py
ismailtimo29/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
1
2021-03-03T22:25:23.000Z
2021-03-03T22:25:23.000Z
mysite/account/models/user_model.py
akhadov11/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
null
null
null
mysite/account/models/user_model.py
akhadov11/e-olymp-clone
900b8eb596d893642b493c12c09e248d86d72a85
[ "Unlicense" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from django.utils.translation import ugettext_lazy as _ from .models import Country User = get_user_model() class Account(models.Model): user = models.OneToOneField( User, related_name='account' ) institution = m...
22.441176
55
0.647444
2dd09ba8e17a4c5e89afcd7d18e9fe36f622af6a
27,696
py
Python
mars/tensor/core.py
SimonCqk/mars
167f1b70e074f01fa8dce4b771c4a42bd73a5587
[ "Apache-2.0" ]
null
null
null
mars/tensor/core.py
SimonCqk/mars
167f1b70e074f01fa8dce4b771c4a42bd73a5587
[ "Apache-2.0" ]
null
null
null
mars/tensor/core.py
SimonCqk/mars
167f1b70e074f01fa8dce4b771c4a42bd73a5587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding 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-...
33.368675
119
0.603769
fe1911c2eaea21af203060b39b214866e2bad157
1,968
py
Python
airflow/plugins/hooks/twitter_hook.py
felipeoferreira/datapipeline
852e757cb52cd73bcfd4abb4138e4f512b102a36
[ "MIT" ]
null
null
null
airflow/plugins/hooks/twitter_hook.py
felipeoferreira/datapipeline
852e757cb52cd73bcfd4abb4138e4f512b102a36
[ "MIT" ]
null
null
null
airflow/plugins/hooks/twitter_hook.py
felipeoferreira/datapipeline
852e757cb52cd73bcfd4abb4138e4f512b102a36
[ "MIT" ]
null
null
null
from airflow.hooks.http_hook import HttpHook import requests import json class TwitterHook(HttpHook): def __init__(self, query, conn_id = None, start_time = None, end_time = None): self.query = query self.conn_id = conn_id or "twitter_default" self.start_time = start_time self.end_...
32.262295
117
0.61128
429c81adb22839bcdeb5a9b5a9206ae84aa38cbc
4,817
py
Python
src/aleph/network.py
aleph-im/pyaleph
26c1e30eff26909d0f4c6c07f0f4d799073588c4
[ "MIT" ]
58
2019-03-12T15:58:21.000Z
2022-02-28T23:56:00.000Z
src/aleph/network.py
aleph-im/pyaleph
26c1e30eff26909d0f4c6c07f0f4d799073588c4
[ "MIT" ]
92
2019-06-17T08:17:42.000Z
2022-03-30T21:10:15.000Z
src/aleph/network.py
aleph-im/pyaleph
26c1e30eff26909d0f4c6c07f0f4d799073588c4
[ "MIT" ]
13
2019-06-04T18:35:54.000Z
2022-03-26T06:51:05.000Z
import asyncio import json import logging from typing import Coroutine, List, Dict from urllib.parse import unquote from aleph.chains.register import VERIFIER_REGISTER from aleph.services.ipfs.pubsub import incoming_channel as incoming_ipfs_channel from aleph.types import ItemType from aleph.utils import get_sha256 L...
33.922535
99
0.6448
e622aee51aea21ca00256a26d3b90efdfc321019
393
py
Python
d.math/boj2108.py
kimminki10/algorithms2
5d3b2d970dbc88169108632ce0d234bf74446316
[ "MIT" ]
null
null
null
d.math/boj2108.py
kimminki10/algorithms2
5d3b2d970dbc88169108632ce0d234bf74446316
[ "MIT" ]
null
null
null
d.math/boj2108.py
kimminki10/algorithms2
5d3b2d970dbc88169108632ce0d234bf74446316
[ "MIT" ]
null
null
null
from collections import Counter import math import sys input = sys.stdin.readline N = int(input()) arr = [ int(input()) for _ in range(N)] sarr = sorted(arr) larr = len(arr) cdict = Counter(sarr) ss = sum(arr) common = cdict.most_common(2) commonv = max(common[-1], common[0], key=lambda x:x[1])[0] print(math.floor...
18.714286
58
0.679389
e54a79f420ac0ecd44170a578f8614ed63332a83
19,269
py
Python
ccmlib/remote.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
626
2015-01-01T18:11:03.000Z
2017-12-19T00:06:49.000Z
ccmlib/remote.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
358
2015-01-21T17:06:45.000Z
2017-12-20T16:03:01.000Z
ccmlib/remote.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
172
2015-01-02T21:40:45.000Z
2017-12-19T20:17:49.000Z
# # Remote execution helper functionality for executing CCM commands on a remote # machine with CCM installed # from __future__ import absolute_import import argparse import logging import os import re import select import stat import sys import tempfile # Paramiko is an optional library as SSH is optional for CCM P...
38.384462
99
0.618351
7cd7953f87d54e721a55f50d7cc92f635bae330e
381
py
Python
examples/gateway/connect_disconnect_device.py
aaronkirsh/thingsboard-python-client-sdk
f08e272067e43bbdd482794fa81ecff2e30cfcac
[ "Apache-2.0" ]
null
null
null
examples/gateway/connect_disconnect_device.py
aaronkirsh/thingsboard-python-client-sdk
f08e272067e43bbdd482794fa81ecff2e30cfcac
[ "Apache-2.0" ]
null
null
null
examples/gateway/connect_disconnect_device.py
aaronkirsh/thingsboard-python-client-sdk
f08e272067e43bbdd482794fa81ecff2e30cfcac
[ "Apache-2.0" ]
null
null
null
import logging from tb_gateway_mqtt import TBGatewayMqttClient logging.basicConfig(level=logging.DEBUG) gateway = TBGatewayMqttClient("127.0.0.1", "TEST_GATEWAY_TOKEN") gateway.connect() gateway.gw_connect_device("Example Name") # device disconnecting will not delete device, gateway just stops receiving messages gatew...
34.636364
84
0.832021
9607b5982532d3e9a68bf95ea933e2ed731b8442
5,768
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/core/tests/test_records.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/core/tests/test_records.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/core/tests/test_records.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
from os import path import numpy as np from numpy.testing import * from numpy.compat import asbytes, asunicode import warnings import collections class TestFromrecords(TestCase): def test_fromrecords(self): r = np.rec.fromrecords([[456, 'dbe', 1.2], [2, 'de', 1.3]], names='col...
35.604938
96
0.499827
8bbf3226cf52e1f075af40f0817fd2ddb252f6b7
24,691
py
Python
core/thread.py
eaglebot1/Mod-Mail-EAGLE-
784a760ecf640566dd478fa9b252e67d1002d41a
[ "MIT" ]
1
2019-02-23T07:00:01.000Z
2019-02-23T07:00:01.000Z
core/thread.py
eaglebot1/Mod-Mail-EAGLE-
784a760ecf640566dd478fa9b252e67d1002d41a
[ "MIT" ]
null
null
null
core/thread.py
eaglebot1/Mod-Mail-EAGLE-
784a760ecf640566dd478fa9b252e67d1002d41a
[ "MIT" ]
null
null
null
import asyncio import logging import re import string import typing from datetime import datetime, timedelta import discord from discord.ext.commands import UserInputError, CommandError from core.models import Bot, ThreadManagerABC, ThreadABC from core.utils import is_image_url, days, match_user_id from core.utils im...
35.373926
92
0.543639
fb1d357f0dabfc02d50b76d1c198672426d2c091
15,087
py
Python
examples/PILCO/cartpole_learn_serial.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
22
2018-08-04T04:51:27.000Z
2021-11-03T14:22:16.000Z
examples/PILCO/cartpole_learn_serial.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
1
2021-11-16T12:41:14.000Z
2021-11-16T12:41:14.000Z
examples/PILCO/cartpole_learn_serial.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
7
2018-08-04T04:51:29.000Z
2021-07-17T07:26:04.000Z
''' Example of how to use the library for learning using the PILCO learner on the cartpole task ''' # pylint: disable=C0103 import argparse import dill import os import sys import numpy as np import lasagne import theano from functools import partial from kusanagi import utils from kusanagi.ghost import regression, co...
38.002519
79
0.646252
021c927184c4332299e40be3805c16f25143e308
4,923
py
Python
tools/cmake-qstr.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
null
null
null
tools/cmake-qstr.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
null
null
null
tools/cmake-qstr.py
iotctl/pycopy
eeb841afea61b19800d054b3b289729665fc9aa4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import re import sys import io from os import path as p, environ, system, chdir, makedirs, remove from os.path import pardir, abspath, join, dirname, realpath, relpath, basename from glob import glob from contextlib import redirect_stdout ARGS = None BASEDIR = p.dirname(p.realpa...
38.460938
129
0.621978
d7b65eb6fd6fdf6fffdd8dd9815c3e6834491e70
1,399
py
Python
app.py
cds-hooks/cds-service-example-python
74ed1042fc11dc8f6143c7d03bf9e2b9c3de51df
[ "MIT" ]
5
2016-12-21T20:01:22.000Z
2020-04-21T19:18:26.000Z
app.py
cds-hooks/cds-service-example-python
74ed1042fc11dc8f6143c7d03bf9e2b9c3de51df
[ "MIT" ]
null
null
null
app.py
cds-hooks/cds-service-example-python
74ed1042fc11dc8f6143c7d03bf9e2b9c3de51df
[ "MIT" ]
3
2016-09-12T20:20:50.000Z
2020-10-07T23:28:26.000Z
from flask import Flask, json from flask.ext.cors import CORS app = Flask(__name__) cors = CORS(app) @app.route('/cds-services') def discovery(): return json.jsonify({ 'services': [ { 'hook': 'patient-view', 'name': 'Static CDS Service in Python', 'description': 'An example static ...
24.982143
91
0.604718
5274aa4b00f497ecb2169879fa71459e38afe9ae
134
py
Python
joke/routing.py
vwaaala/celery_redis_broadcast_django
50913088aae162e029cf2801afbcd3a0cfe17845
[ "MIT" ]
null
null
null
joke/routing.py
vwaaala/celery_redis_broadcast_django
50913088aae162e029cf2801afbcd3a0cfe17845
[ "MIT" ]
null
null
null
joke/routing.py
vwaaala/celery_redis_broadcast_django
50913088aae162e029cf2801afbcd3a0cfe17845
[ "MIT" ]
null
null
null
from django.urls import path from .consumer import JokeConsumer ws_urlpatterns = [ path('ws/jokes/', JokeConsumer.as_asgi()), ]
16.75
46
0.731343
086e5c9088213071507a9e8cfd0d9683a3fa79e0
16,166
py
Python
python/ccxt/async_support/__init__.py
colbycornish/ccxt
60c93120bd4c2b91a81e0da4898ec63c2f138d03
[ "MIT" ]
1
2018-09-17T05:12:37.000Z
2018-09-17T05:12:37.000Z
python/ccxt/async_support/__init__.py
qiushenchao/ccxt_myown
644907281a8c3d7182054bcb8ed87bb31f967c07
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
qiushenchao/ccxt_myown
644907281a8c3d7182054bcb8ed87bb31f967c07
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.17.210' # ----------------------------------------------------------------------------- from ccxt.async_support.base.exchange import E...
50.677116
86
0.555239
b8126995e76c3db453c0ba337794c58fbfb2332c
1,482
py
Python
profiles_api/serializers.py
barlydjaja/profiles-rest-api
9cbac57e079888df1fdcffc09e131d2e041aaa5b
[ "MIT" ]
null
null
null
profiles_api/serializers.py
barlydjaja/profiles-rest-api
9cbac57e079888df1fdcffc09e131d2e041aaa5b
[ "MIT" ]
null
null
null
profiles_api/serializers.py
barlydjaja/profiles-rest-api
9cbac57e079888df1fdcffc09e131d2e041aaa5b
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer(serializers.Serializer): """Serializes a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): """Serializes a user profile...
30.244898
76
0.612686
152322f26fa656fc2948407bc4038422de754e93
1,109
py
Python
app/integrations/base.py
javi-cortes/linkedon
3021e2d737ac1c71b2bda3a74a0d8a8b0db37158
[ "MIT" ]
null
null
null
app/integrations/base.py
javi-cortes/linkedon
3021e2d737ac1c71b2bda3a74a0d8a8b0db37158
[ "MIT" ]
null
null
null
app/integrations/base.py
javi-cortes/linkedon
3021e2d737ac1c71b2bda3a74a0d8a8b0db37158
[ "MIT" ]
null
null
null
from typing import Any, List from urllib.parse import urlencode import aiohttp from app.schemas import Job from app.schemas.job import JobSearchCriteria class BaseIntegration(object): EXTERNAL_FIELDS = [] URL = "" async def retrieve_data(self, job_search: JobSearchCriteria) -> List[Job]: async ...
32.617647
79
0.683499
e3f49643d15ce06e8e585e81ecf7fddda86451d3
21,239
py
Python
main.py
Eric-Bokai-Zhang/Sound-of-Pixels
e1ec773414e4c2a9f23d9db5737054aebd854077
[ "MIT" ]
null
null
null
main.py
Eric-Bokai-Zhang/Sound-of-Pixels
e1ec773414e4c2a9f23d9db5737054aebd854077
[ "MIT" ]
null
null
null
main.py
Eric-Bokai-Zhang/Sound-of-Pixels
e1ec773414e4c2a9f23d9db5737054aebd854077
[ "MIT" ]
null
null
null
# System libs import os import random import time # Numerical libs import torch import torch.nn.functional as F import numpy as np import scipy.io.wavfile as wavfile from imageio import imwrite from mir_eval.separation import bss_eval_sources # Our libs from arguments import ArgParser from dataset import MUSICMixData...
36.937391
102
0.60436
c90b464b09d8a0518740cce72bd8808a1387eeae
94
py
Python
pinax/apps/signup_codes/urls.py
jpic/pinax
a9b30e437e4298d74101b45cec0d4dba9702cdd1
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/signup_codes/urls.py
jpic/pinax
a9b30e437e4298d74101b45cec0d4dba9702cdd1
[ "MIT" ]
null
null
null
pinax/apps/signup_codes/urls.py
jpic/pinax
a9b30e437e4298d74101b45cec0d4dba9702cdd1
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf.url.defaults import * patterns = patterns("", #url(r"^failure/$", ) )
11.75
38
0.617021
800dcdfae76d21324a5cd5598db9adc7a75e473e
3,134
py
Python
keras/dtensor/mnist_model_test.py
code-review-doctor/keras
96130040540e1405ffe746ddf2b2cceb9b8b8f65
[ "Apache-2.0" ]
null
null
null
keras/dtensor/mnist_model_test.py
code-review-doctor/keras
96130040540e1405ffe746ddf2b2cceb9b8b8f65
[ "Apache-2.0" ]
null
null
null
keras/dtensor/mnist_model_test.py
code-review-doctor/keras
96130040540e1405ffe746ddf2b2cceb9b8b8f65
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 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...
37.309524
80
0.746969
3579bbec6d5a6d800990857ebb7c9827789827fe
189
py
Python
news/urls.py
vindeolal/pari
8c69d15101480c3e803d6d74f8007cefee20c350
[ "BSD-3-Clause" ]
null
null
null
news/urls.py
vindeolal/pari
8c69d15101480c3e803d6d74f8007cefee20c350
[ "BSD-3-Clause" ]
null
null
null
news/urls.py
vindeolal/pari
8c69d15101480c3e803d6d74f8007cefee20c350
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url from news.views import PariNewsView urlpatterns = patterns('news.views', url(r'^$', PariNewsView.as_view(), name='pari-news') )
23.625
68
0.68254
91ad5006688a620485d7a87108a47b13ee71c66f
169
py
Python
bert/train/utils/pad.py
public1024/BERT-pytorch
50dd20816c7b33d863ddfd761de72859c7799c5e
[ "Unlicense" ]
66
2018-10-30T16:17:43.000Z
2022-03-18T13:13:01.000Z
bert/train/utils/pad.py
public1024/BERT-pytorch
50dd20816c7b33d863ddfd761de72859c7799c5e
[ "Unlicense" ]
4
2019-03-22T10:30:26.000Z
2022-03-21T12:19:22.000Z
bert/train/utils/pad.py
public1024/BERT-pytorch
50dd20816c7b33d863ddfd761de72859c7799c5e
[ "Unlicense" ]
28
2018-11-01T09:06:27.000Z
2022-03-11T04:56:10.000Z
from bert.preprocess import PAD_INDEX def pad_masking(x): # x: (batch_size, seq_len) padded_positions = x == PAD_INDEX return padded_positions.unsqueeze(1)
24.142857
40
0.733728
652b3757830e20ce5a02e697eea5e122045eb1be
6,252
py
Python
MaxLatestVersion/transport.py
getlove555/getbotline
639e157495849e12ac7dd4bae6012841cf511892
[ "MIT" ]
6
2020-05-23T21:47:52.000Z
2021-03-30T00:19:08.000Z
MaxLatestVersion/transport.py
getlove555/getbotline
639e157495849e12ac7dd4bae6012841cf511892
[ "MIT" ]
4
2020-08-01T10:10:14.000Z
2021-01-03T00:55:05.000Z
MaxLatestVersion/transport.py
LOUREN03/lourenelle
5448a8634d438f35df98e43ad135f232cf74d2b1
[ "MIT" ]
20
2020-05-11T08:53:30.000Z
2021-07-16T09:50:20.000Z
# -*- coding: utf-8 -*- from io import BytesIO from six.moves import urllib, http_client import os, socket, sys, warnings, base64, time, json, asyncio, six from thrift.transport.TTransport import TTransportBase try: from thrift.protocol import fastbinary except ImportError: fastbinary = None class THttpClient...
35.123596
88
0.580294
4b4922fff39a005f36c36885f06fb6776d0df324
3,649
py
Python
scripts/dump-swagger.py
ilovecommits/matrix-doc
7aecdbe2f5ae94ed4f41f3b8772287bc6fcf26b6
[ "Apache-2.0" ]
1
2021-12-06T11:01:59.000Z
2021-12-06T11:01:59.000Z
scripts/dump-swagger.py
ilovecommits/matrix-doc
7aecdbe2f5ae94ed4f41f3b8772287bc6fcf26b6
[ "Apache-2.0" ]
1
2021-02-28T18:29:23.000Z
2021-02-28T19:24:26.000Z
scripts/dump-swagger.py
ilovecommits/matrix-doc
7aecdbe2f5ae94ed4f41f3b8772287bc6fcf26b6
[ "Apache-2.0" ]
1
2021-03-03T09:59:44.000Z
2021-03-03T09:59:44.000Z
#!/usr/bin/env python3 # dump-swagger reads all of the swagger API docs used in spec generation and # outputs a JSON file which merges them all, for use as input to a swagger UI # viewer. # See https://github.com/swagger-api/swagger-ui for details of swagger-ui. # Copyright 2016 OpenMarket Ltd # # Licensed under the ...
30.663866
77
0.660455
b0cbcd7049957597aba8cafca7d198e927fa3eec
681
py
Python
RPG/scripts/enemies/red_slime.py
Flashweb14/PyGameRPG
1fc3b06b1875eb8ba5928cd6b1ad3cdefdb3ce3b
[ "MIT" ]
null
null
null
RPG/scripts/enemies/red_slime.py
Flashweb14/PyGameRPG
1fc3b06b1875eb8ba5928cd6b1ad3cdefdb3ce3b
[ "MIT" ]
null
null
null
RPG/scripts/enemies/red_slime.py
Flashweb14/PyGameRPG
1fc3b06b1875eb8ba5928cd6b1ad3cdefdb3ce3b
[ "MIT" ]
null
null
null
from scripts.enemies.base_enemy import BaseEnemy from scripts.consts import RED_SLIME_1, RED_SLIME_2, RED_SLIME_3 class RedSlime(BaseEnemy): def __init__(self, game, x, y, name): super().__init__(game, RED_SLIME_1, x, y, 56, 20, name) self.animation_list = [RED_SLIME_1, RED_SLIME_2, RED_SLIME_3] ...
35.842105
91
0.632893
ad389609ba9e7ae64741d0602a91c0f6e3f13f41
596
py
Python
once/lol-unfriend-all.py
erikfastermann/etc
a85ad6f0cb87dab208716dcc5a58c3f71a9b202c
[ "MIT" ]
null
null
null
once/lol-unfriend-all.py
erikfastermann/etc
a85ad6f0cb87dab208716dcc5a58c3f71a9b202c
[ "MIT" ]
null
null
null
once/lol-unfriend-all.py
erikfastermann/etc
a85ad6f0cb87dab208716dcc5a58c3f71a9b202c
[ "MIT" ]
null
null
null
import pyautogui import time pyautogui.PAUSE = 0.1 pyautogui.FAILSAFE = True print("League of Legends - Client size: 1920x1080") number_friends = input("Number of friends? ") print("Move the cursor on the icon of the first person in your friendlist...") time.sleep(5) for i in range(int(number_friends)): start_pos...
31.368421
78
0.734899
62b4f913d690b2a894309ffd6ce3f4890572deb1
6,954
py
Python
pytext/models/output_layers/distance_output_layer.py
qwhelan/pytext
2e014104eb3b5ab100ca2f9f21d6e3f37d15715e
[ "BSD-3-Clause" ]
1
2020-10-13T09:44:37.000Z
2020-10-13T09:44:37.000Z
pytext/models/output_layers/distance_output_layer.py
coderbyr/pytext
72c1ad835a30bef425494b02a6210f2e3232b1a4
[ "BSD-3-Clause" ]
null
null
null
pytext/models/output_layers/distance_output_layer.py
coderbyr/pytext
72c1ad835a30bef425494b02a6210f2e3232b1a4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from enum import IntEnum, unique from typing import Any, Dict, List, Optional, Tuple, Union import torch import torch.nn.functional as F from pytext.config.component import create_loss from pytext.data.utils import Vocabulary...
36.408377
88
0.63086
4bafec3b45dae58f86b1d756a76ba861a0e1d37b
4,849
py
Python
lavalink/events.py
TrackRunny/Lavalink.py
b6b856bb017b740469bc5359024b224dd7a7b665
[ "MIT" ]
null
null
null
lavalink/events.py
TrackRunny/Lavalink.py
b6b856bb017b740469bc5359024b224dd7a7b665
[ "MIT" ]
null
null
null
lavalink/events.py
TrackRunny/Lavalink.py
b6b856bb017b740469bc5359024b224dd7a7b665
[ "MIT" ]
1
2019-07-10T19:51:01.000Z
2019-07-10T19:51:01.000Z
class Event: """ The base for all Lavalink events. """ class QueueEndEvent(Event): """ This event is dispatched when there are no more songs in the queue. Parameters ---------- player: BasePlayer The player that has no more songs in queue. """ def __init__(self, player): ...
26.210811
78
0.63477
389c0ccffbb5af9dae1e48976dc850e3b0f86d34
5,075
py
Python
test/functional/test_framework/netutil.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
5
2019-03-18T02:14:20.000Z
2019-03-21T17:08:27.000Z
test/functional/test_framework/netutil.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
null
null
null
test/functional/test_framework/netutil.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The dogxcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Linux network utilities. Roughly based on http://voorloopnul.com/blog/a-python-netstat-in-less-than-1...
32.120253
111
0.600197
34d5db854f69f274f391b1c69328a3cb42117948
1,128
py
Python
scipy/fftpack/tests/test_import.py
ikamensh/scipy
d645404be21b7c0b1e7ba24bf8d525b624aeb848
[ "BSD-3-Clause" ]
null
null
null
scipy/fftpack/tests/test_import.py
ikamensh/scipy
d645404be21b7c0b1e7ba24bf8d525b624aeb848
[ "BSD-3-Clause" ]
null
null
null
scipy/fftpack/tests/test_import.py
ikamensh/scipy
d645404be21b7c0b1e7ba24bf8d525b624aeb848
[ "BSD-3-Clause" ]
null
null
null
"""Test possibility of patching fftpack with pyfftw. No module source outside of scipy.fftpack should contain an import of the form `from scipy.fftpack import ...`, so that a simple replacement of scipy.fftpack by the corresponding fftw interface completely swaps the two FFT implementations. Because this simply inspe...
35.25
71
0.660461
0dab2612d9fab90d3e8324a7862277f46f62716a
1,466
py
Python
game/content/ghplots/randomplots.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
74
2015-03-09T00:33:09.000Z
2022-02-25T20:28:27.000Z
game/content/ghplots/randomplots.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
108
2017-12-30T20:26:12.000Z
2021-01-16T12:37:00.000Z
game/content/ghplots/randomplots.py
jwvhewitt/gearhead-caramel
dfe1bc5dbf2960b82a97577f4bf687b60040d8bf
[ "Apache-2.0" ]
61
2018-03-03T09:55:31.000Z
2022-03-18T17:28:33.000Z
# We have plots for every occassion- random events to spice up your metroscenes. from pbge.plots import Plot, PlotState, Rumor, TimeExpiration import game import gears import pbge import pygame import random from game import teams,ghdialogue from game.content import gharchitecture,ghterrain,ghwaypoints,plotutility,ghc...
31.869565
97
0.703956
b96aba8c304e662840857c89cfee26baba9d8410
108
py
Python
Part 1/Chapter 8/exercise_8.2.py
kg55555/pypractice
1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef
[ "MIT" ]
null
null
null
Part 1/Chapter 8/exercise_8.2.py
kg55555/pypractice
1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef
[ "MIT" ]
null
null
null
Part 1/Chapter 8/exercise_8.2.py
kg55555/pypractice
1867f001b3d2a7174ea00d7b9e2fa22e9f1877ef
[ "MIT" ]
null
null
null
def favourite_book(title): print(f"My favourite book is {title}") favourite_book('alice in wonderland')
27
42
0.75
4085880bc107e0272c9f8cfb4bbe5592402e97a7
8,407
py
Python
docs/conf.py
art-spilgames/mysql-statsd
31a6a552430a3576d41b3c9156c3100e6952ad68
[ "BSD-3-Clause" ]
47
2015-07-29T11:05:37.000Z
2020-12-24T11:42:59.000Z
docs/conf.py
db-art/mysql-statsd-tmp
b5ca779194cef13450ef97a98fea63b4d9aba6ef
[ "BSD-3-Clause" ]
11
2015-01-05T04:37:03.000Z
2015-07-29T11:30:59.000Z
docs/conf.py
db-art/mysql-statsd-tmp
b5ca779194cef13450ef97a98fea63b4d9aba6ef
[ "BSD-3-Clause" ]
19
2015-09-09T14:53:41.000Z
2018-09-04T22:05:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # au...
32.210728
80
0.719163
280f00b9b2543962cfa862fd7a2bba9631b307bb
510
py
Python
bfg9000/platforms/cygwin.py
jmgao/bfg9000
7ffb15aed8ea88ee454821e83aa8c42014ac8e34
[ "BSD-3-Clause" ]
1
2020-05-15T07:24:43.000Z
2020-05-15T07:24:43.000Z
bfg9000/platforms/cygwin.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
null
null
null
bfg9000/platforms/cygwin.py
Acidburn0zzz/bfg9000
5f9ed9940b87f23abe55cde745c46e7e2bc6eaee
[ "BSD-3-Clause" ]
null
null
null
from .posix import PosixHostPlatform, PosixTargetPlatform class CygwinHostPlatform(PosixHostPlatform): pass class CygwinTargetPlatform(PosixTargetPlatform): @property def object_format(self): return 'coff' @property def executable_ext(self): return '.exe' @property def ...
18.214286
57
0.680392
883525348512126bee5af4c80b5183c864c2979b
932
py
Python
tests/utils/create_fake_database/create_fake_database.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
5
2021-02-28T18:33:02.000Z
2022-03-12T01:43:40.000Z
tests/utils/create_fake_database/create_fake_database.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
null
null
null
tests/utils/create_fake_database/create_fake_database.py
michaelcukier/Poker-Hand-Tracker
9adae42fab9f640e6939ba06bd588ab1a2feb90f
[ "MIT" ]
2
2021-03-01T03:08:04.000Z
2021-12-31T17:53:46.000Z
import sqlite3 import os class CreateFakeDatabase: def __init__(self, db_name, table_name, columns_labels, data): self._db_name = db_name self.conn = sqlite3.connect('./' + db_name + '.db') _columns = ''.join([str(c) + ' text, ' for c in columns_labels])[:-2] self.exec_query("CRE...
30.064516
110
0.527897
2203756c3e18ce1d6ef78de076868019a9fbad61
5,865
py
Python
tests/api_tests/admin_backend/test_service.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
tests/api_tests/admin_backend/test_service.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
tests/api_tests/admin_backend/test_service.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
from api_tests.admin_backend import AdminBackendTestCase import entities from utils.context_managers import TemporaryLogout class SimpleServiceTests(AdminBackendTestCase): def test_list_categories(self): category_list = self.default_admin_client.service.list_categories() self.assertGreater(len(cat...
45.115385
128
0.707417
6b8c174e34bb6c75934b35bc49d9094def743cb2
93
py
Python
memtkinter/colorchooser.py
JamesGKent/memtkinter
c4e178b33f24e609c812b20bddfff7448782a192
[ "MIT" ]
null
null
null
memtkinter/colorchooser.py
JamesGKent/memtkinter
c4e178b33f24e609c812b20bddfff7448782a192
[ "MIT" ]
3
2018-06-04T09:32:20.000Z
2018-06-07T15:27:56.000Z
memtkinter/colorchooser.py
JamesGKent/memtkinter
c4e178b33f24e609c812b20bddfff7448782a192
[ "MIT" ]
null
null
null
try: from tkinter.colorchooser import * except ImportError: from tkColorChooser import *
23.25
36
0.784946
208a56a9444faab13d9e81d4aee06ecb6b45cfef
5,215
py
Python
tests/contrib/redis/test.py
sharov/dd-trace-py
d0995b49cf7147ab463d0a67a38779fad3f539b4
[ "BSD-3-Clause" ]
1
2019-11-24T23:09:29.000Z
2019-11-24T23:09:29.000Z
tests/contrib/redis/test.py
sharov/dd-trace-py
d0995b49cf7147ab463d0a67a38779fad3f539b4
[ "BSD-3-Clause" ]
null
null
null
tests/contrib/redis/test.py
sharov/dd-trace-py
d0995b49cf7147ab463d0a67a38779fad3f539b4
[ "BSD-3-Clause" ]
1
2019-11-24T23:09:30.000Z
2019-11-24T23:09:30.000Z
# -*- coding: utf-8 -*- import redis from nose.tools import eq_, ok_ from ddtrace import Pin, compat from ddtrace.contrib.redis import get_traced_redis from ddtrace.contrib.redis.patch import patch, unpatch from ..config import REDIS_CONFIG from ...test_tracer import get_dummy_tracer def test_redis_legacy(): # e...
28.653846
85
0.608821
63dd0a621ffbb997432796db3ee7465727d90a9a
2,939
py
Python
magenta/common/state_util_test.py
sleep-yearning/magenta
a03a14ef5a691ee9e3d336aa621281028dc5af32
[ "Apache-2.0" ]
1
2020-02-24T06:12:09.000Z
2020-02-24T06:12:09.000Z
magenta/common/state_util_test.py
sleep-yearning/magenta
a03a14ef5a691ee9e3d336aa621281028dc5af32
[ "Apache-2.0" ]
null
null
null
magenta/common/state_util_test.py
sleep-yearning/magenta
a03a14ef5a691ee9e3d336aa621281028dc5af32
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Magenta 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 ...
36.283951
83
0.60837
539b638336bd159b9677e767f95deed6a45a2841
281
py
Python
backup_engine/__init__.py
music1353/backup-engine
e21eb7b09eb2808eecba08143c6bd38eda3692a7
[ "MIT" ]
null
null
null
backup_engine/__init__.py
music1353/backup-engine
e21eb7b09eb2808eecba08143c6bd38eda3692a7
[ "MIT" ]
null
null
null
backup_engine/__init__.py
music1353/backup-engine
e21eb7b09eb2808eecba08143c6bd38eda3692a7
[ "MIT" ]
null
null
null
'''A python module easy to do local backup and google cloud backup for Flask web application. - Version: 1.0.2 - Author: Ching-Hsuan Su (Jenson) on 2019/11/21. - Requirement: google-api-python-client google-auth-httplib2 google-auth-oauthlib '''
35.125
93
0.661922
92072d3c82479b9fc85d71bd9a064837af3054a0
4,506
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/aio/operations/_service_tags_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/aio/operations/_service_tags_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2021_03_01/v2021_03_01/aio/operations/_service_tags_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "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 may ...
45.979592
139
0.683311
aaecd01a1dcf4a95ad445dcd563b5a242324a4ce
197
py
Python
azure_databricks_api/__init__.py
croc541/azure-databricks-api
a5f2dfa167daaa34dcdb2b7a18f857f2a3437819
[ "MIT" ]
6
2018-12-25T18:35:00.000Z
2020-11-05T10:01:04.000Z
azure_databricks_api/__init__.py
croc541/azure-databricks-api
a5f2dfa167daaa34dcdb2b7a18f857f2a3437819
[ "MIT" ]
10
2018-10-05T16:56:58.000Z
2021-01-15T20:54:58.000Z
azure_databricks_api/__init__.py
croc541/azure-databricks-api
a5f2dfa167daaa34dcdb2b7a18f857f2a3437819
[ "MIT" ]
13
2018-10-08T20:08:57.000Z
2020-12-17T13:31:29.000Z
# Copyright (c) 2018 Microsoft # # This software is released under the MIT License. # https://opensource.org/licenses/MIT from azure_databricks_api.__rest_client import AzureDatabricksRESTClient
28.142857
72
0.812183
26b345fa2e3f2e958df9e35537848cb3868923d6
1,056
py
Python
odoo-14.0/addons/l10n_ec/__manifest__.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/l10n_ec/__manifest__.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/l10n_ec/__manifest__.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # Copyright (C) 2010-2012 Cristian Salamea Gnuthink Software Labs Cia. Ltda { 'name': 'Ecuador - Accounting', 'version': '1.1', 'category': 'Accounting/Localizations/Account Charts', 'description': """ T...
29.333333
78
0.575758
3f07dc93b37cf1bf8c17deb226c77fdb8cc21bba
17,963
py
Python
wmt-shared-task/segment-level/segment_level_prism.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
wmt-shared-task/segment-level/segment_level_prism.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
wmt-shared-task/segment-level/segment_level_prism.py
chryssa-zrv/UA_COMET
527e7c86bd0a0d8ff90efda58e820108a5666b92
[ "Apache-2.0" ]
null
null
null
f""" Shell script tho reproduce results for BERTScores in data from WMT18/19 Metrics Shared task. """ import argparse import hashlib import logging import os import sys from typing import Any, Dict, Iterator, List import numpy as np import pandas as pd import sentencepiece as spm import torch from tqdm import tqdm fr...
40.006682
137
0.571341
35c16def5e0cf235788fe425e4d90c06682d5679
26,155
py
Python
IPython/core/magics/code.py
ptone/ipython
b91d6a658d4526746dcbfb62e653d71c5d84eee9
[ "BSD-3-Clause-Clear" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
IPython/core/magics/code.py
lelegan/ipython
7d0bedb0698af89be54802f32a1947678074945a
[ "BSD-3-Clause-Clear" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
IPython/core/magics/code.py
lelegan/ipython
7d0bedb0698af89be54802f32a1947678074945a
[ "BSD-3-Clause-Clear" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
"""Implementation of code management magic functions. """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (c) 2012 The IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the...
37.525108
111
0.552437
a51a434a8554cb4fb5bd6ba4e426f1d4d25f9917
559
py
Python
python/phonenumbers/shortdata/region_CC.py
nickhargreaves/python-phonenumbers
df203baa68fc307e5c833c015bee2e15386a8dbe
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_CC.py
nickhargreaves/python-phonenumbers
df203baa68fc307e5c833c015bee2e15386a8dbe
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_CC.py
nickhargreaves/python-phonenumbers
df203baa68fc307e5c833c015bee2e15386a8dbe
[ "Apache-2.0" ]
1
2020-09-08T14:45:34.000Z
2020-09-08T14:45:34.000Z
"""Auto-generated file, do not edit by hand. CC metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CC = PhoneMetadata(id='CC', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[01]\\d\\d', possible_length=(3,)), ...
62.111111
110
0.779964
d072fd56026331e2ad20d64b1d4c799db5efebb0
2,314
py
Python
flask_template/app.py
ling7334/flask-template
657c31f0aeb97b0e20d10ca22cbe9c380de9083e
[ "MIT" ]
1
2019-01-08T07:18:29.000Z
2019-01-08T07:18:29.000Z
flask_template/app.py
ling7334/flask-template
657c31f0aeb97b0e20d10ca22cbe9c380de9083e
[ "MIT" ]
2
2019-11-14T10:17:29.000Z
2021-03-20T00:27:38.000Z
flask_template/app.py
ling7334/flask-template
657c31f0aeb97b0e20d10ca22cbe9c380de9083e
[ "MIT" ]
1
2019-01-11T05:50:26.000Z
2019-01-11T05:50:26.000Z
import os, string, random, datetime from flask import Flask, session, g from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(test_config=None): # create and configure the app app = Flask(__name__, instance_path=os.path.dirname(__file__), instance_relative_config=True) from ut...
34.537313
120
0.655575
50319a75b8af23aec61d7b0d563253e42fc2267f
1,107
py
Python
setup.py
shmakovpn/whatprovides
69aab055397ae49844c93cfe17fdfaf18b02f79d
[ "Apache-2.0" ]
null
null
null
setup.py
shmakovpn/whatprovides
69aab055397ae49844c93cfe17fdfaf18b02f79d
[ "Apache-2.0" ]
1
2020-07-02T04:26:22.000Z
2020-07-02T09:32:08.000Z
setup.py
shmakovpn/whatprovides
69aab055397ae49844c93cfe17fdfaf18b02f79d
[ "Apache-2.0" ]
null
null
null
""" whatprovides setup.py """ import os from setuptools import setup, find_packages from whatprovides.version import VERSION SCRIPT_DIR: str = os.path.dirname(os.path.abspath(__file__)) os.chdir(SCRIPT_DIR) with open('README.rst') as f: long_description: str = f.read() setup( name='whatprovides', versio...
27
90
0.676603
2bff10a52c99db58c1350dbe6aca63536ab27985
447
py
Python
examples/test.py
yourstudio/Ghat-Bcode
00d4acf86bc58cc192622b717a3f2effd53341d4
[ "MIT" ]
null
null
null
examples/test.py
yourstudio/Ghat-Bcode
00d4acf86bc58cc192622b717a3f2effd53341d4
[ "MIT" ]
null
null
null
examples/test.py
yourstudio/Ghat-Bcode
00d4acf86bc58cc192622b717a3f2effd53341d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import unicornhathd unicornhathd.clear() unicornhathd.set_all(10, 0, 10) unicornhathd._buf = unicornhathd.numpy.random.randint(low=0,high=255,size=(16,16,3)) frame = 0 t_start = time.time() try: while True: unicornhathd.show() unicornhathd.rotation(frame) ...
17.88
84
0.675615
e95c2ac674ce9c6e19273b7cd3ca67827e573bd4
2,842
py
Python
docs/example_app/example_app/settings.py
dlancer/django-cached-httpbl
b32106f4283f9605122255f2c9bfbd3bff465fa5
[ "BSD-3-Clause" ]
null
null
null
docs/example_app/example_app/settings.py
dlancer/django-cached-httpbl
b32106f4283f9605122255f2c9bfbd3bff465fa5
[ "BSD-3-Clause" ]
null
null
null
docs/example_app/example_app/settings.py
dlancer/django-cached-httpbl
b32106f4283f9605122255f2c9bfbd3bff465fa5
[ "BSD-3-Clause" ]
null
null
null
""" Django settings for example_app project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ......
26.314815
101
0.743139
67233c810ef1ca4eb746c168dd34b46eb21c6521
357
py
Python
pq_ce_monitoring/workers_jobs_acc.py
PanDAWMS/harvester_monitoring
85d4ce57eab97ad20f146ad1068325ce7a596667
[ "Apache-2.0" ]
null
null
null
pq_ce_monitoring/workers_jobs_acc.py
PanDAWMS/harvester_monitoring
85d4ce57eab97ad20f146ad1068325ce7a596667
[ "Apache-2.0" ]
null
null
null
pq_ce_monitoring/workers_jobs_acc.py
PanDAWMS/harvester_monitoring
85d4ce57eab97ad20f146ad1068325ce7a596667
[ "Apache-2.0" ]
1
2019-02-20T17:36:48.000Z
2019-02-20T17:36:48.000Z
from os import sys, path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from pq_ce_monitoring.pq_infdb import InfluxPQ def main(): settings = path.abspath(path.join(path.dirname(__file__), '..', 'settings.ini')) client_infdb = InfluxPQ(settings) client_infdb.write_workers_jobs() ...
22.3125
84
0.72549
4e6036e25488bb777c4b474611549ba585697611
5,231
py
Python
hack/examples/python/facerecognizer/face.py
nsahaytech/nuclio
3adc7c0f563261e956221cd775c84da27edaf26f
[ "Apache-2.0" ]
null
null
null
hack/examples/python/facerecognizer/face.py
nsahaytech/nuclio
3adc7c0f563261e956221cd775c84da27edaf26f
[ "Apache-2.0" ]
13
2018-02-22T15:56:21.000Z
2018-06-07T12:14:41.000Z
hack/examples/python/facerecognizer/face.py
nsahaytech/nuclio
3adc7c0f563261e956221cd775c84da27edaf26f
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Nuclio 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 wr...
38.463235
97
0.635634
e70f591fc7ece8450e197bfe75e84ee525c4d0c9
1,805
py
Python
setup.py
raghuu14/Script-Evaluation-Assistant
e609b5ee267b899dc8b9967699dd762287cd8719
[ "MIT" ]
null
null
null
setup.py
raghuu14/Script-Evaluation-Assistant
e609b5ee267b899dc8b9967699dd762287cd8719
[ "MIT" ]
null
null
null
setup.py
raghuu14/Script-Evaluation-Assistant
e609b5ee267b899dc8b9967699dd762287cd8719
[ "MIT" ]
1
2020-02-06T09:50:28.000Z
2020-02-06T09:50:28.000Z
from tkinter import * def display(mysql): ''' display(mysql) :param mysql: mysql object to execute queries :return: None Displays an UI to setup students data, course plan ''' def config_student(): student_file = student_entry.get() mysql.init_student_table(student_file) ...
32.818182
81
0.653186
06f0b6092250c108d82ad17f8d29d249cb0341bd
4,478
py
Python
MovableObj.py
marianylund/physicaldistRL
59c4c840107ae7fa59f2b977c13cde4861b00f94
[ "Unlicense" ]
null
null
null
MovableObj.py
marianylund/physicaldistRL
59c4c840107ae7fa59f2b977c13cde4861b00f94
[ "Unlicense" ]
null
null
null
MovableObj.py
marianylund/physicaldistRL
59c4c840107ae7fa59f2b977c13cde4861b00f94
[ "Unlicense" ]
null
null
null
from graphics import * import math class MovableObj(): up = [0, 1] down = [0, -1] right = [1, 0] left = [-1, 0] def __init__(self, start_pos): self.directions = [[1, 3], [2, 0], [3, 1], [0, 2]] self.moves = [[[-1, -1], [1, -1]], [[1, -1], [1, 1]], [[1, 1], [-1, 1]], [[-1, 1],[-1, ...
38.273504
130
0.5795
5f5ef0f7123f86f906467f1049c5073a195c6b86
5,038
py
Python
cord/client.py
EveryZooM/cord-client-python
84915dece3de45ae2be55255b709f1894dbab1f8
[ "Apache-2.0" ]
null
null
null
cord/client.py
EveryZooM/cord-client-python
84915dece3de45ae2be55255b709f1894dbab1f8
[ "Apache-2.0" ]
null
null
null
cord/client.py
EveryZooM/cord-client-python
84915dece3de45ae2be55255b709f1894dbab1f8
[ "Apache-2.0" ]
1
2021-01-11T22:12:47.000Z
2021-01-11T22:12:47.000Z
# # Copyright (c) 2020 Cord Technologies Limited # # 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 ag...
33.364238
116
0.65522
5f16aeb7f9947051ee95d0215ba53291f7914eb8
5,585
py
Python
src/lib/utils/stress_test/.s/python/lib/python3.6/site-packages/locust/event.py
devsapp/fc-stress-desktop
98666caacac0ee91ba10c02551d3ab7c5069125b
[ "MIT" ]
2
2021-02-14T22:33:59.000Z
2021-02-14T23:36:18.000Z
src/lib/utils/stress_test/.s/python/lib/python3.6/site-packages/locust/event.py
devsapp/fc-stress-desktop
98666caacac0ee91ba10c02551d3ab7c5069125b
[ "MIT" ]
2
2021-09-29T05:26:49.000Z
2021-11-09T10:27:32.000Z
src/lib/utils/stress_test/.s/python/lib/python3.6/site-packages/locust/event.py
devsapp/fc-stress-desktop
98666caacac0ee91ba10c02551d3ab7c5069125b
[ "MIT" ]
1
2019-10-18T20:36:13.000Z
2019-10-18T20:36:13.000Z
import logging from . import log import traceback from .exception import StopUser, RescheduleTask, RescheduleTaskImmediately, InterruptTaskSet class EventHook: """ Simple event class used to provide hooks for different types of events in Locust. Here's how to use the EventHook class:: my_event =...
31.553672
108
0.680036
ab3ee3dbc0b9e754b372fd5ae8f648579e1f88b0
20,417
py
Python
src/transformers/data/processors/glue.py
Duayt/set_thai_bert
7cb8041d6acfebdefe2bd245dd3564b615f5dab6
[ "Apache-2.0" ]
null
null
null
src/transformers/data/processors/glue.py
Duayt/set_thai_bert
7cb8041d6acfebdefe2bd245dd3564b615f5dab6
[ "Apache-2.0" ]
null
null
null
src/transformers/data/processors/glue.py
Duayt/set_thai_bert
7cb8041d6acfebdefe2bd245dd3564b615f5dab6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
34.722789
119
0.600529
c5e97253d94bd106b4c6c953b7246a6705af0fd9
7,125
py
Python
tests/python/contrib/test_cmsisnn/test_generate_constants.py
ccjoechou/tvm
779dc51e1332f417fa4c304b595ce76891dfc33a
[ "Apache-2.0" ]
2,084
2020-11-25T02:31:53.000Z
2022-03-31T11:33:47.000Z
tests/python/contrib/test_cmsisnn/test_generate_constants.py
ccjoechou/tvm
779dc51e1332f417fa4c304b595ce76891dfc33a
[ "Apache-2.0" ]
3,022
2020-11-24T14:02:31.000Z
2022-03-31T23:55:31.000Z
tests/python/contrib/test_cmsisnn/test_generate_constants.py
ccjoechou/tvm
779dc51e1332f417fa4c304b595ce76891dfc33a
[ "Apache-2.0" ]
977
2020-11-25T00:54:52.000Z
2022-03-31T12:47:08.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...
30.978261
104
0.645053
0a763e850e5404b5d919e2604560b57b57fc67df
11,969
py
Python
homeassistant/components/mqtt/config_flow.py
steverep/core
17abbd7f51ac89641e4dee14347ab519f6d68375
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/config_flow.py
steverep/core
17abbd7f51ac89641e4dee14347ab519f6d68375
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/config_flow.py
steverep/core
17abbd7f51ac89641e4dee14347ab519f6d68375
[ "Apache-2.0" ]
null
null
null
"""Config flow for MQTT.""" from collections import OrderedDict import queue import voluptuous as vol from homeassistant import config_entries from homeassistant.components.hassio import HassioServiceInfo from homeassistant.const import ( CONF_DISCOVERY, CONF_HOST, CONF_PASSWORD, CONF_PAYLOAD, CON...
33.810734
88
0.584092
fc680a8efd200b0716791b297ea88f58a383e6cd
6,768
gyp
Python
cloud_print/service/service.gyp
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
cloud_print/service/service.gyp
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
cloud_print/service/service.gyp
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'target_defaults': { 'variables': { 'chromium_code': 1, 'enable_wexit_time_destructors': 1, }, 'include_dirs': [ '<(DEPT...
32.075829
152
0.551862
4ce733e594bfea71bc0e2df0af330497ff1c6a47
603
py
Python
mmdet/core/loss/__init__.py
escapist2019/AugFPN
ffc7e5e2ec367a77d43b072968050951ca6406b6
[ "Apache-2.0" ]
144
2019-12-12T02:34:59.000Z
2022-03-21T09:13:54.000Z
mmdet/core/loss/__init__.py
wyf-1996/AugFPN
cceb9be892767ba77db48fa1e36280c54a565fe1
[ "Apache-2.0" ]
18
2020-01-08T12:16:57.000Z
2021-12-11T03:35:59.000Z
mmdet/core/loss/__init__.py
wyf-1996/AugFPN
cceb9be892767ba77db48fa1e36280c54a565fe1
[ "Apache-2.0" ]
44
2020-05-18T13:25:50.000Z
2022-03-04T11:28:17.000Z
from .losses import (weighted_nll_loss, weighted_cross_entropy, weighted_binary_cross_entropy, sigmoid_focal_loss, weighted_sigmoid_focal_loss, mask_cross_entropy, smooth_l1_loss, weighted_smoothl1, accuracy, fcos_binary_cross_entropy, weighted_iou_loss) _...
50.25
111
0.741294
d3b965225b17c0e7ba0526d578f3a77e8f418447
14,163
py
Python
manila/api/v1/limits.py
cloudification-io/manila
9555e181f9e1b817b1072b986d35b46b59fb4e65
[ "Apache-2.0" ]
1
2020-06-17T13:20:21.000Z
2020-06-17T13:20:21.000Z
manila/api/v1/limits.py
viroel/manila
fbcabd2c03985000bd9b4d4d9a4478bc0b784efa
[ "Apache-2.0" ]
null
null
null
manila/api/v1/limits.py
viroel/manila
fbcabd2c03985000bd9b4d4d9a4478bc0b784efa
[ "Apache-2.0" ]
1
2021-02-23T05:52:11.000Z
2021-02-23T05:52:11.000Z
# Copyright 2011 OpenStack LLC. # 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 b...
31.898649
78
0.610252
ce4b92159c9c87017021bdd5bcabbe8a648a934c
5,404
py
Python
rlberry/agents/adaptiveql/adaptiveql.py
rlberry-py/rlberry
b4a8dcf17da69fc49a4d2d8b8d1a93e6cb054078
[ "MIT" ]
86
2020-11-20T21:02:27.000Z
2022-03-07T14:57:40.000Z
rlberry/agents/adaptiveql/adaptiveql.py
rlberry-py/rlberry
b4a8dcf17da69fc49a4d2d8b8d1a93e6cb054078
[ "MIT" ]
103
2020-11-17T12:31:21.000Z
2022-03-28T13:46:16.000Z
rlberry/agents/adaptiveql/adaptiveql.py
rlberry-py/rlberry
b4a8dcf17da69fc49a4d2d8b8d1a93e6cb054078
[ "MIT" ]
20
2020-11-23T01:47:50.000Z
2022-03-25T07:45:24.000Z
import logging import gym.spaces as spaces import numpy as np from rlberry.agents import AgentWithSimplePolicy from rlberry.utils.writers import DefaultWriter from rlberry.agents.adaptiveql.tree import MDPTreePartition logger = logging.getLogger(__name__) class AdaptiveQLAgent(AgentWithSimplePolicy): """ Ada...
32.554217
94
0.604552
4828b390b7e561913381c97f6a77530216fcf94f
224
py
Python
tests/petstore-full/petstore_full/service/user/__init__.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
6
2021-01-16T21:36:43.000Z
2022-01-24T10:21:14.000Z
tests/petstore-full/petstore_full/service/user/__init__.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
11
2021-01-17T00:05:44.000Z
2022-01-23T16:13:56.000Z
tests/petstore-full/petstore_full/service/user/__init__.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
2
2021-11-06T00:07:34.000Z
2022-01-14T01:35:06.000Z
""" Auto-generated by openapi-client-generator https://github.com/avanov/openapi-client-generator """ from . import post from . import by_username from . import logout from . import create_with_list from . import login
16
50
0.763393
002103780a82c82c5d3d8f1e141fd78bb6084e6b
12,396
py
Python
petrarch2/PETRwriter.py
Dipendra543/petrarch2
ba5cd0a973282cf38ad131034f2ea08fca8f33e3
[ "MIT" ]
69
2015-10-22T18:04:41.000Z
2021-09-08T22:31:28.000Z
petrarch2/PETRwriter.py
Dipendra543/petrarch2
ba5cd0a973282cf38ad131034f2ea08fca8f33e3
[ "MIT" ]
31
2016-02-04T20:57:54.000Z
2020-11-19T11:34:32.000Z
petrarch2/PETRwriter.py
Dipendra543/petrarch2
ba5cd0a973282cf38ad131034f2ea08fca8f33e3
[ "MIT" ]
41
2015-11-05T07:44:41.000Z
2021-09-23T14:16:06.000Z
# SYSTEM REQUIREMENTS # This program has been successfully run under Mac OS 10.10; it is standard Python 2.7 # so it should also run in Unix or Windows. # # INITIAL PROVENANCE: # Programmer: Philip A. Schrodt # Parus Analytics # Charlottesville, VA, 22901 U.S.A. # http://eventdata.parusanalytics.com # # Git...
35.82659
137
0.50605
f269d98035deea1c165393404c9be08522001c2d
48,392
py
Python
Robinhood/Robinhood.py
SamVarney/Robinhood
8dc517f86957138a543cef186997a18371ca1e9b
[ "MIT" ]
null
null
null
Robinhood/Robinhood.py
SamVarney/Robinhood
8dc517f86957138a543cef186997a18371ca1e9b
[ "MIT" ]
null
null
null
Robinhood/Robinhood.py
SamVarney/Robinhood
8dc517f86957138a543cef186997a18371ca1e9b
[ "MIT" ]
null
null
null
"""Robinhood.py: a collection of utilities for working with Robinhood's Private API """ #Standard libraries import logging import warnings from enum import Enum #External dependencies from six.moves.urllib.parse import unquote # pylint: disable=E0401 from six.moves.urllib.request import getproxies # pylint: disabl...
33.213452
151
0.510208
6637be38de1c15702a36a9f1aaff12521778cb39
2,120
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/get_future_salts.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/get_future_salts.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/get_future_salts.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
29.444444
103
0.611792
f79e3bab17a8a1182acf39c89656cb49af8a1a4c
404
py
Python
ProductionApp/forms.py
Tarikol-Islam/Django_CRM
b8c6623c830437e05e5958101d8705703ebeb197
[ "MIT" ]
null
null
null
ProductionApp/forms.py
Tarikol-Islam/Django_CRM
b8c6623c830437e05e5958101d8705703ebeb197
[ "MIT" ]
null
null
null
ProductionApp/forms.py
Tarikol-Islam/Django_CRM
b8c6623c830437e05e5958101d8705703ebeb197
[ "MIT" ]
null
null
null
from django import forms from .models import Supplier,RawOrder,RawMaterial class SupplierForm(forms.ModelForm): class Meta: model = Supplier fields = ("",) class RawOrderForm(forms.ModelForm): class Meta: model = RawOrder fields = ("",) class RawMaterailForm(forms...
17.565217
49
0.611386
8e01ddb7863893d875cab35c6344ccd8d4679a3b
1,480
py
Python
test_settings.py
cdriehuys/django-simple-email-auth
3ea1e227d7faa61692aeefe40b24c6696ea04f75
[ "MIT" ]
1
2020-06-05T23:29:24.000Z
2020-06-05T23:29:24.000Z
test_settings.py
cdriehuys/django-simple-email-auth
3ea1e227d7faa61692aeefe40b24c6696ea04f75
[ "MIT" ]
40
2019-08-30T23:08:10.000Z
2019-12-08T13:58:19.000Z
test_settings.py
cdriehuys/django-simple-email-auth
3ea1e227d7faa61692aeefe40b24c6696ea04f75
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = "secret" INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.messages", "email_auth.interfaces.rest", "email_auth", ] MIDDLEWARE = [ ...
24.262295
79
0.638514
4958251d20ab21403fa694dbcc1ae314fb278b5d
5,655
py
Python
Processes/dlpredictor/tests/test_dlpredictor_system_errors_11/test_dlpredictor_system_errors_11.py
sanjaynirmal/blue-marlin
725d614e941e5de76562d354edf11ac18897f242
[ "Apache-2.0" ]
21
2019-10-08T16:23:44.000Z
2020-04-08T23:14:36.000Z
Processes/dlpredictor/tests/test_dlpredictor_system_errors_11/test_dlpredictor_system_errors_11.py
sanjaynirmal/blue-marlin
725d614e941e5de76562d354edf11ac18897f242
[ "Apache-2.0" ]
162
2019-10-26T05:30:04.000Z
2022-03-30T12:44:41.000Z
Processes/dlpredictor/tests/test_dlpredictor_system_errors_11/test_dlpredictor_system_errors_11.py
sanjaynirmal/blue-marlin
725d614e941e5de76562d354edf11ac18897f242
[ "Apache-2.0" ]
33
2019-10-09T01:31:12.000Z
2022-03-29T08:00:36.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...
30.079787
143
0.574359
1edacea4a078cc6a66d6b4e15f5e694675ee619c
659
py
Python
var/spack/repos/builtin/packages/r-beanplot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/r-beanplot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/r-beanplot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RBeanplot(RPackage): """Plots univariate comparison graphs, an alternative to boxpl...
36.611111
93
0.745068
0b9440d12a0438411f60efaacc79fd94ecccbf7e
30
py
Python
smspy/__init__.py
maljovec/sms
332b557a1b401721e3b9e570933d14eb471e8e58
[ "MIT" ]
null
null
null
smspy/__init__.py
maljovec/sms
332b557a1b401721e3b9e570933d14eb471e8e58
[ "MIT" ]
null
null
null
smspy/__init__.py
maljovec/sms
332b557a1b401721e3b9e570933d14eb471e8e58
[ "MIT" ]
1
2020-08-27T18:27:24.000Z
2020-08-27T18:27:24.000Z
from main import send_message
15
29
0.866667
f16e162441326762957332efd931ecb3beb2e621
1,162
py
Python
tools/Polygraphy/polygraphy/backend/trt/__init__.py
spradius/TensorRT
eb5de99b523c76c2f3ae997855ad86d3a1e86a31
[ "Apache-2.0" ]
1
2021-08-23T01:15:16.000Z
2021-08-23T01:15:16.000Z
tools/Polygraphy/polygraphy/backend/trt/__init__.py
spradius/TensorRT
eb5de99b523c76c2f3ae997855ad86d3a1e86a31
[ "Apache-2.0" ]
null
null
null
tools/Polygraphy/polygraphy/backend/trt/__init__.py
spradius/TensorRT
eb5de99b523c76c2f3ae997855ad86d3a1e86a31
[ "Apache-2.0" ]
null
null
null
from polygraphy.backend.trt.algorithm_selector import * from polygraphy.backend.trt.calibrator import * from polygraphy.backend.trt.loader import * from polygraphy.backend.trt.profile import * from polygraphy.backend.trt.runner import * from polygraphy.backend.trt.util import * def register_logger_callback(): fro...
34.176471
105
0.704819
1fb7e0bfddb8ef3fe61e54e6eefa6db358d2a991
1,031
py
Python
src/snakeoil/weakrefs.py
Arusekk/snakeoil
aad28a50118223766e5308452b369f2c72b971b2
[ "BSD-3-Clause" ]
null
null
null
src/snakeoil/weakrefs.py
Arusekk/snakeoil
aad28a50118223766e5308452b369f2c72b971b2
[ "BSD-3-Clause" ]
null
null
null
src/snakeoil/weakrefs.py
Arusekk/snakeoil
aad28a50118223766e5308452b369f2c72b971b2
[ "BSD-3-Clause" ]
null
null
null
import os from functools import partial from weakref import ref from .obj import BaseDelayedObject def finalize_instance(obj, weakref_inst): try: obj.__finalizer__() finally: obj.__disable_finalization__() class WeakRefProxy(BaseDelayedObject): def __instantiate_proxy_instance__(self):...
29.457143
84
0.741028
5a105a4a2ae4e3793142626e041ea3eaef9fbedb
2,429
py
Python
nova/scheduler/filters/type_filter.py
jamielennox/nova
ef42f74a07b6a96252f91f1755631ddc314a3b2f
[ "Apache-2.0" ]
null
null
null
nova/scheduler/filters/type_filter.py
jamielennox/nova
ef42f74a07b6a96252f91f1755631ddc314a3b2f
[ "Apache-2.0" ]
null
null
null
nova/scheduler/filters/type_filter.py
jamielennox/nova
ef42f74a07b6a96252f91f1755631ddc314a3b2f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 The Cloudscaling Group, Inc. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
38.555556
78
0.70564
adc4c5c3ddb0dc4e8a02807a177f67371eec9d11
3,433
py
Python
Know_Your_Lockdown/settings.py
smahesh29/KnowYourLockdown
49e1adc219547b5789b0b484b0ffd607d5a7ec66
[ "MIT" ]
1
2020-08-09T09:52:28.000Z
2020-08-09T09:52:28.000Z
Know_Your_Lockdown/settings.py
smahesh29/KnowYourLockdown
49e1adc219547b5789b0b484b0ffd607d5a7ec66
[ "MIT" ]
13
2021-03-30T14:14:36.000Z
2021-06-30T07:03:21.000Z
Know_Your_Lockdown/settings.py
smahesh29/KnowYourLockdown
49e1adc219547b5789b0b484b0ffd607d5a7ec66
[ "MIT" ]
null
null
null
""" Django settings for Know_Your_Lockdown project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/setting...
26.407692
92
0.67259
6db6323b55b073c87a2a1981969a02073369be07
1,182
py
Python
oriskami/test/resources/test_filter_scorings_dedicated.py
oriskami/oriskami-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
4
2017-05-28T19:37:31.000Z
2017-06-13T11:34:26.000Z
oriskami/test/resources/test_filter_scorings_dedicated.py
ubivar/ubivar-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
null
null
null
oriskami/test/resources/test_filter_scorings_dedicated.py
ubivar/ubivar-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
null
null
null
import os import oriskami import warnings from oriskami.test.helper import (OriskamiTestCase) DUMMY_DEDICATED_SCORINGS = { "score_id": "124", "is_active": "false" } class OriskamiAPIResourcesTests(OriskamiTestCase): def test_filter_scorings_dedicated_list(self): response = oriska...
39.4
101
0.738579
56649c359719cc9a0053a95de0fc2a710ce33fed
20,574
py
Python
animations/src/algo_rbtree.py
61smiling/algorithm-stone
625bcef514a82ad93871987e81c6ec18b34f27cb
[ "MIT" ]
693
2021-02-22T03:52:10.000Z
2022-03-31T15:54:46.000Z
animations/src/algo_rbtree.py
Karen4tree/algorithm-stone
12e46463bb57929dfb4ab142f5cf0e8e69d460a8
[ "MIT" ]
5
2021-09-14T07:06:20.000Z
2022-01-04T02:49:11.000Z
animations/src/algo_rbtree.py
Karen4tree/algorithm-stone
12e46463bb57929dfb4ab142f5cf0e8e69d460a8
[ "MIT" ]
265
2021-02-28T02:35:44.000Z
2022-03-31T13:21:31.000Z
from manimlib import * import copy import networkx as nx from .algo_vgroup import * from .algo_node import * import queue COLOR_TARGET_INSERT = GREEN_D COLOR_TARGET_DELETE = RED_D COLOR_PARENT = YELLOW_D COLOR_UNCLE = BLUE COLOR_GRAND = PURPLE COLOR_BROTHER = TEAL class DataNode(object): def __init__(self, id, k,...
33.07717
127
0.492369
4becbd3737bcf9aea85ae8169b3642a1d2055766
23,776
py
Python
cloudiscovery/provider/all/resource/all.py
nathanaelassis/cloudiscovery
b05c80bb5b8c32592f6656ee43cfa65ade218bf8
[ "Apache-2.0" ]
null
null
null
cloudiscovery/provider/all/resource/all.py
nathanaelassis/cloudiscovery
b05c80bb5b8c32592f6656ee43cfa65ade218bf8
[ "Apache-2.0" ]
null
null
null
cloudiscovery/provider/all/resource/all.py
nathanaelassis/cloudiscovery
b05c80bb5b8c32592f6656ee43cfa65ade218bf8
[ "Apache-2.0" ]
1
2020-11-17T19:32:03.000Z
2020-11-17T19:32:03.000Z
import collections import functools import re from concurrent.futures.thread import ThreadPoolExecutor from typing import List, Optional from botocore.exceptions import UnknownServiceError from botocore.loaders import Loader from provider.all.command import AllOptions from shared.common import ( ResourceProvider,...
36.578462
111
0.591226