hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
17370904d0d292a39b8d04043b7c2090843bc603
16,999
py
Python
tensorflow/contrib/distributions/python/ops/operator_pd_cholesky.py
calebchoo/modulabs
10fbaf0581700641fc9b38b1bd722044bfb7c638
[ "Apache-2.0" ]
2
2020-06-30T05:52:37.000Z
2021-01-21T04:16:39.000Z
tensorflow/contrib/distributions/python/ops/operator_pd_cholesky.py
calebchoo/modulabs
10fbaf0581700641fc9b38b1bd722044bfb7c638
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/ops/operator_pd_cholesky.py
calebchoo/modulabs
10fbaf0581700641fc9b38b1bd722044bfb7c638
[ "Apache-2.0" ]
2
2020-06-24T11:07:08.000Z
2020-08-09T00:02:58.000Z
# Copyright 2016 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...
39.349537
80
0.66851
782ea16718ea1f44108e447edb0f17a49a4dbb74
655
py
Python
app/src/main/python/python_service_gz_to_json.py
MagenL/SuperCheap-Android-Application
c0a567634f29e58220cc9e13b6425db1fef5cfce
[ "MIT" ]
null
null
null
app/src/main/python/python_service_gz_to_json.py
MagenL/SuperCheap-Android-Application
c0a567634f29e58220cc9e13b6425db1fef5cfce
[ "MIT" ]
null
null
null
app/src/main/python/python_service_gz_to_json.py
MagenL/SuperCheap-Android-Application
c0a567634f29e58220cc9e13b6425db1fef5cfce
[ "MIT" ]
null
null
null
import io import gzip import json import urllib import xmltodict import requests def download(url): # Download SEED database print(('Downloading SEED Database from: {}'.format(url))) try: response = urllib.request.urlopen(url) except requests.exceptions.ConnectionError: return {} ...
26.2
62
0.729771
d8def4e569692584d3e1228de3f132f9b22b6735
200
py
Python
mstrio/access_and_security/__init__.py
MicroStrategy/mstrio-py
720af7e673ed62462366d1406e5ea14792461e94
[ "Apache-2.0" ]
60
2018-06-28T22:31:47.000Z
2022-03-30T14:03:30.000Z
mstrio/access_and_security/__init__.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
52
2018-11-15T15:31:03.000Z
2022-03-28T05:34:22.000Z
mstrio/access_and_security/__init__.py
czyzq/mstrio-py
b25fd19936b659d503a7eaaa96c8d0b4e118cb7c
[ "Apache-2.0" ]
44
2018-08-30T10:31:49.000Z
2022-03-31T16:16:36.000Z
# TODO: fix circular import # flake8: noqa # from .privilege_mode import PrivilegeMode # from .privilege import Privilege, PrivilegeList # from .security_role import list_security_roles, SecurityRole
33.333333
62
0.815
57ace038095d4dc5e157c55ceb727475dcddb1df
757
py
Python
tests/test_pyproject_toml.py
michael-k/flake8-nitpick
5e43c4604024d9fa1861ac9ffdbdbd4fa355eb50
[ "MIT" ]
null
null
null
tests/test_pyproject_toml.py
michael-k/flake8-nitpick
5e43c4604024d9fa1861ac9ffdbdbd4fa355eb50
[ "MIT" ]
null
null
null
tests/test_pyproject_toml.py
michael-k/flake8-nitpick
5e43c4604024d9fa1861ac9ffdbdbd4fa355eb50
[ "MIT" ]
null
null
null
"""pyproject.toml tests.""" from flake8_nitpick.files.pyproject_toml import PyProjectTomlFile from tests.helpers import ProjectMock def test_pyproject_should_be_deleted(request): """File should be deleted.""" ProjectMock(request).style("").pyproject_toml("").lint().assert_errors_contain( f"NIP312 File...
36.047619
108
0.721268
f19dc888b55755ea326076b5bd25342e64763407
3,130
py
Python
sdk/python/pulumi_azure_native/web/v20201001/list_web_app_host_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20201001/list_web_app_host_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20201001/list_web_app_host_keys.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
34.021739
141
0.669329
7bfa6afe243ee830987c80e87c4fd49fd8526340
5,728
py
Python
methods/transformers/src/transformers/configuration_t5.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/src/transformers/configuration_t5.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/src/transformers/configuration_t5.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2010, The T5 Authors and HuggingFace 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 req...
44.061538
120
0.660265
256c837b440c5d7cd2085183ca0de64f912e488e
42,557
py
Python
src/botCommonCommands.py
ScrappyCocco/ScroccoDiscordBot
4af8a7202032ebe6faaf1e899edf60c2b0a7d8b3
[ "MIT" ]
1
2018-06-27T13:59:27.000Z
2018-06-27T13:59:27.000Z
src/botCommonCommands.py
ScrappyCocco/ScroccoDiscordBot
4af8a7202032ebe6faaf1e899edf60c2b0a7d8b3
[ "MIT" ]
6
2019-03-12T15:07:36.000Z
2021-06-11T17:46:24.000Z
src/botCommonCommands.py
ScrappyCocco/ScroccoDiscordBot
4af8a7202032ebe6faaf1e899edf60c2b0a7d8b3
[ "MIT" ]
null
null
null
# --------------------------------------------------------------------- # IMPORTS from discord.ext import commands import html import re import os import json import random import discord import goslate import time import urllib.parse import aiohttp from discord.errors import HTTPException from urllib import error, ...
52.345633
140
0.500364
42c365fef0fa960f3763dc6220c67d17a1505c45
3,535
py
Python
battery_monitoring.test.py
clean-code-craft-tcq-1/current-ranges-python-DevadigaRahul
c135ef0020b5762c45235258e2dc3a394dd6f372
[ "MIT" ]
null
null
null
battery_monitoring.test.py
clean-code-craft-tcq-1/current-ranges-python-DevadigaRahul
c135ef0020b5762c45235258e2dc3a394dd6f372
[ "MIT" ]
null
null
null
battery_monitoring.test.py
clean-code-craft-tcq-1/current-ranges-python-DevadigaRahul
c135ef0020b5762c45235258e2dc3a394dd6f372
[ "MIT" ]
null
null
null
import unittest import battery_monitoring class battery_monitoringTest(unittest.TestCase): #Test for 'with_in_range' function def test_with_in_range_for_min_minus_one(self):#(min-1)<(min) self.assertFalse(battery_monitoring.with_in_range(19, 20, 30)) def test_with_in_range_for_max_plus_one(self):#(max)<(...
46.513158
181
0.783593
1d793f5c59a7a5a8c93c919a955300f3085323cc
11,250
py
Python
pycf.py
9kin/codeforces-dl
70edc1b8942f4a12ef052e0ae6e4331d34be6a71
[ "MIT" ]
5
2020-10-08T05:17:58.000Z
2021-05-16T17:42:04.000Z
pycf.py
9kin/cfdl
70edc1b8942f4a12ef052e0ae6e4331d34be6a71
[ "MIT" ]
null
null
null
pycf.py
9kin/cfdl
70edc1b8942f4a12ef052e0ae6e4331d34be6a71
[ "MIT" ]
null
null
null
import re import sys from os import getenv from pathlib import Path import arrow import requests from dotenv import load_dotenv from jinja2 import Environment, FileSystemLoader, select_autoescape from lxml.html import fromstring from PyQt5.QtCore import * from PyQt5.QtCore import pyqtSlot from PyQt5.QtGui import * fro...
30.821918
89
0.569778
a78c9bb2b194a1e55aa739db292f59c26c49fe29
1,025
py
Python
tests.py
mkcor/matplotlib
016a4e350cf48aa6ebb969abfcb3cee1904969e4
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests.py
mkcor/matplotlib
016a4e350cf48aa6ebb969abfcb3cee1904969e4
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests.py
mkcor/matplotlib
016a4e350cf48aa6ebb969abfcb3cee1904969e4
[ "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # This allows running the matplotlib tests from the command line: e.g. # python tests.py -v -d # See http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html # for options. import os import time import matplotlib matplotlib.use('agg') import nose from matplotlib.testing.noseclasses ...
26.282051
72
0.761951
2b1ac5926ae61ab04702370f12d6bffb80b2e620
4,089
py
Python
emukit/quadrature/measures/lebesgue_measure.py
amzn/emukit
c45407440c02cd8c053efa0f1701e864cb030e25
[ "Apache-2.0" ]
272
2018-09-18T11:56:37.000Z
2020-10-10T22:21:25.000Z
emukit/quadrature/measures/lebesgue_measure.py
amzn/emukit
c45407440c02cd8c053efa0f1701e864cb030e25
[ "Apache-2.0" ]
278
2018-09-19T15:38:50.000Z
2020-10-14T13:45:24.000Z
emukit/quadrature/measures/lebesgue_measure.py
amzn/emukit
c45407440c02cd8c053efa0f1701e864cb030e25
[ "Apache-2.0" ]
88
2018-09-18T11:56:48.000Z
2020-09-23T13:33:55.000Z
"""The Lebesgue measure.""" import numpy as np from ...core.optimization.context_manager import ContextManager from ..typing import BoundsType from .domain import BoxDomain from .integration_measure import IntegrationMeasure class LebesgueMeasure(IntegrationMeasure): r"""The Lebesgue measure. The Lebesgue ...
38.942857
115
0.646857
64a6cc54ffad23d0e3e4fe53783288036f0c27f4
7,309
py
Python
student_management_app/models.py
TonnyNguyen23/django
9c2c57b61fa7d7173222e7bf237b9fe38544f832
[ "MIT" ]
1
2021-10-04T00:59:07.000Z
2021-10-04T00:59:07.000Z
student_management_app/models.py
etasycandy/Project_Student_Management_System_UDA_Django
c15b865d3d964fa698b115ca5a690b1b0d52e759
[ "MIT" ]
1
2021-09-27T09:13:30.000Z
2021-09-27T09:13:30.000Z
student_management_app/models.py
etasycandy/Project_Student_Management_System_UDA_Django
c15b865d3d964fa698b115ca5a690b1b0d52e759
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class SessionYearModel(models.Model): id=models.AutoField(primary_key=True) session_start_year=models.DateField() s...
40.605556
173
0.773704
fc8cc6151fa5e701e0a4efaa1cd1748de005e2af
776
py
Python
cuit/utils.py
rasca/django-cuit
94ccaad1ff2a1c17f82bbb734c48f94b3f022727
[ "BSD-3-Clause" ]
2
2016-08-25T02:21:11.000Z
2019-06-27T16:31:58.000Z
cuit/utils.py
rasca/django-cuit
94ccaad1ff2a1c17f82bbb734c48f94b3f022727
[ "BSD-3-Clause" ]
null
null
null
cuit/utils.py
rasca/django-cuit
94ccaad1ff2a1c17f82bbb734c48f94b3f022727
[ "BSD-3-Clause" ]
1
2018-12-28T12:01:44.000Z
2018-12-28T12:01:44.000Z
from cuit.models import Inscription def update_cuit(file): # Deactivate ALL Inscriptions Inscription.objects.update(active=False) for line in file: cuit = u'%s-%s-%s' % (line[:2], line[2:10], line[10]) try: inscription = Inscription.objects.get(cuit=cuit) except Inscrip...
33.73913
61
0.646907
d6c0a8e3f64b74fe00336c11491e96bdcdbe6c85
3,044
py
Python
field.py
KaviMD/FRC-RL
abb700c8787da038818fd1e3f43fcdd2d0b00334
[ "MIT" ]
null
null
null
field.py
KaviMD/FRC-RL
abb700c8787da038818fd1e3f43fcdd2d0b00334
[ "MIT" ]
null
null
null
field.py
KaviMD/FRC-RL
abb700c8787da038818fd1e3f43fcdd2d0b00334
[ "MIT" ]
null
null
null
import enum class FieldCornerType(enum.Enum): normal = 1 bevel = 2 class Body: def __init__(self, name, body): self.name = name self.body = body class Obstacle(Body): def __init__(self, name, body): self.name = name self.body = body class Zone(Body): def __init__...
31.708333
95
0.627135
6af4d1030573ebc0389265e4912520c59c28aaa0
9,664
py
Python
tests/e2e/mysqloperator/cluster/check_apiobjects.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
1
2022-02-11T22:13:57.000Z
2022-02-11T22:13:57.000Z
tests/e2e/mysqloperator/cluster/check_apiobjects.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
tests/e2e/mysqloperator/cluster/check_apiobjects.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, 2021, Oracle and/or its affiliates. # # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # import time from setup import defaults from utils import kutil def check_pod_labels(test, pod, cluster, role): test.assertEqual(pod["metadata"]["la...
32.106312
104
0.628001
9bef380994974142582b7cb03a1e4cd82586e6dc
4,158
py
Python
function/write2dynamoDB.py
lihtiandxc/notification4sgchanges
6aeb5ceea1560399fdd7b7b4594856a1c6250414
[ "MIT" ]
null
null
null
function/write2dynamoDB.py
lihtiandxc/notification4sgchanges
6aeb5ceea1560399fdd7b7b4594856a1c6250414
[ "MIT" ]
null
null
null
function/write2dynamoDB.py
lihtiandxc/notification4sgchanges
6aeb5ceea1560399fdd7b7b4594856a1c6250414
[ "MIT" ]
null
null
null
import boto3 import json import datetime now = datetime.datetime.now() s3res = boto3.resource('s3') ec2client = boto3.client('ec2') asgclient = boto3.client('autoscaling') dynamores = boto3.resource('dynamodb') current_month = str(now.month) current_day = str(now.day) aws_region = 'us-east-1' def get_account_ec2_lis...
40.368932
148
0.687831
6ae676af0b40fc42795827cf06c0c12b0eed9f10
6,870
py
Python
pwncat/commands/listeners.py
Mitul16/pwncat
b8d7876a9779c2c7796a9a29110d3f1cda721dff
[ "MIT" ]
1,454
2020-05-07T02:20:52.000Z
2022-03-31T21:32:22.000Z
pwncat/commands/listeners.py
akr3ch/pwncat
d67865bdaac60dd0761d0698062e7b443a62c6db
[ "MIT" ]
187
2020-05-08T06:26:01.000Z
2022-03-07T21:15:29.000Z
pwncat/commands/listeners.py
akr3ch/pwncat
d67865bdaac60dd0761d0698062e7b443a62c6db
[ "MIT" ]
184
2020-05-07T02:31:58.000Z
2022-03-31T09:11:59.000Z
#!/usr/bin/env python3 from rich import box from rich.table import Table from rich.prompt import Prompt import pwncat from pwncat.util import console from pwncat.manager import Listener, ListenerError, ListenerState from pwncat.commands import Complete, Parameter, CommandDefinition class Command(CommandDefinition): ...
33.028846
89
0.535371
d553aa4002f7beee89702bf03d398cf8e5690a63
1,551
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py
mariotoffia/openapi-generator
878f6e5709e20f496f04cc4184ef7cf715e9c61f
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py
mariotoffia/openapi-generator
878f6e5709e20f496f04cc4184ef7cf715e9c61f
[ "Apache-2.0" ]
1
2022-03-30T16:31:07.000Z
2022-03-30T16:31:07.000Z
samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py
yields-io/openapi-generator
949b4e2008421e4abdae17ac5d3cf07c600ee1e0
[ "Apache-2.0" ]
1
2022-02-06T21:14:46.000Z
2022-02-06T21:14:46.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
19.884615
174
0.673114
26c950b9b8ca72470129d6d9ba3b8d755105078f
4,778
py
Python
envpool/python/envpool.py
ZerounNet/envpool
49780e7caceda5f781072d3ef0cbb8aae082595f
[ "Apache-2.0" ]
1
2021-12-06T04:25:13.000Z
2021-12-06T04:25:13.000Z
envpool/python/envpool.py
ZerounNet/envpool
49780e7caceda5f781072d3ef0cbb8aae082595f
[ "Apache-2.0" ]
null
null
null
envpool/python/envpool.py
ZerounNet/envpool
49780e7caceda5f781072d3ef0cbb8aae082595f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Garena Online Private 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 agr...
32.726027
75
0.646296
117e44385a912e35016a864c8f604ca278319341
1,708
py
Python
app/core/migrations/0001_initial.py
matomario8/recipe-app-api
0ffffb739b8dea383b3dca1f3eafa53a9fe5927c
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
matomario8/recipe-app-api
0ffffb739b8dea383b3dca1f3eafa53a9fe5927c
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
matomario8/recipe-app-api
0ffffb739b8dea383b3dca1f3eafa53a9fe5927c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.9 on 2019-06-08 17:48 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.235294
266
0.638759
25ac857fa7623f25ddc64a7509af6916f5feb75a
965
py
Python
scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
1,761
2015-07-10T23:14:17.000Z
2022-03-30T07:49:49.000Z
scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
487
2015-07-07T23:21:20.000Z
2022-03-30T17:13:22.000Z
scripts/examples/Arduino/Portenta-H7/16-Codes/find_datamatrices.py
jiskra/openmv
a0f321836f77f94d8118910598dcdb79eb784d58
[ "MIT" ]
882
2015-08-01T08:34:19.000Z
2022-03-30T07:36:23.000Z
# Find Data Matrices Example # # This example shows off how easy it is to detect data matrices using the # OpenMV Cam M7. Data matrices detection does not work on the M4 Camera. import sensor, image, time, math sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(...
35.740741
122
0.681865
63f47adb56a1f6d313e26a01d31d2baaa0a2aadb
35,072
py
Python
salt/modules/yumpkg.py
kaptk2/salt
8b06fff072c20d77f3447d8521a4667413218ab3
[ "Apache-2.0" ]
1
2015-06-05T13:47:02.000Z
2015-06-05T13:47:02.000Z
salt/modules/yumpkg.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/modules/yumpkg.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Support for YUM :depends: - yum Python module - rpmUtils Python module This module uses the python interface to YUM. Note that with a default /etc/yum.conf, this will cause messages to be sent to sent to syslog on /dev/log, with a log facility of :strong:`LOG_USER`. This is in addition to whatever i...
32.384118
97
0.590699
853d6bfb087bb433b04eb5f638b5152b88cb0f94
39,558
py
Python
covid_epidemiology/src/models/generic_seir_specs_state.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
covid_epidemiology/src/models/generic_seir_specs_state.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
covid_epidemiology/src/models/generic_seir_specs_state.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
45.944251
80
0.65428
ed223775a72890595313572414fac095db9e1588
15,852
py
Python
scielomanager/api/resources_v1.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/api/resources_v1.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/api/resources_v1.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# coding: utf-8 import logging from django.db.models import Q from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned from tastypie.resources import ModelResource from tastypie import fields from tastypie.contrib.contenttypes.fields import GenericForei...
34.163793
109
0.637396
4799a6881b5dcb5b4491414ddcbdd36902db5459
20,786
py
Python
ragtag_utilities/AGPFile.py
ASLeonard/RagTag
dfb46ff2ff8ee3fd6744977bac2003f3336b7819
[ "MIT" ]
220
2020-06-10T02:45:43.000Z
2022-03-28T03:07:40.000Z
ragtag_utilities/AGPFile.py
ASLeonard/RagTag
dfb46ff2ff8ee3fd6744977bac2003f3336b7819
[ "MIT" ]
109
2020-06-14T01:17:52.000Z
2022-03-26T21:46:39.000Z
ragtag_utilities/AGPFile.py
ASLeonard/RagTag
dfb46ff2ff8ee3fd6744977bac2003f3336b7819
[ "MIT" ]
28
2020-06-26T15:58:10.000Z
2022-01-27T04:42:33.000Z
#!/usr/bin/env python """ MIT License Copyright (c) 2021 Michael Alonge <malonge11@gmail.com> 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 th...
36.339161
211
0.618397
d2ac1b0c6c52c02fa4ae74c82e62f621483e07ae
1,140
py
Python
api/app/schemas/bookings/room_schema.py
saravanpa-aot/queue-management
02264c0c02626ef0da4b1f8ad41375b296f42d06
[ "Apache-2.0" ]
1
2020-09-08T21:49:04.000Z
2020-09-08T21:49:04.000Z
api/app/schemas/bookings/room_schema.py
ChrisDMac/queue-management
3d9b83c82e07d538214c2bbeac037dbec5567588
[ "Apache-2.0" ]
3
2020-10-21T15:44:41.000Z
2020-12-03T17:49:47.000Z
api/app/schemas/bookings/room_schema.py
acoard-aot/queue-management
07023246b2adee315d9e954a82c6f0891017e2da
[ "Apache-2.0" ]
null
null
null
'''Copyright 2018 Province of British Columbia 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,...
30
72
0.742105
787325e1e91d3bfa3d64b2b7b115a9a942d32783
33,936
py
Python
Bio/AlignIO/MafIO.py
uci-ics-32/biopython
ff7d3703d442192a1f6d84c52e028d566d44ff1c
[ "BSD-3-Clause" ]
1
2021-03-09T04:42:11.000Z
2021-03-09T04:42:11.000Z
Bio/AlignIO/MafIO.py
uci-ics-32/biopython
ff7d3703d442192a1f6d84c52e028d566d44ff1c
[ "BSD-3-Clause" ]
null
null
null
Bio/AlignIO/MafIO.py
uci-ics-32/biopython
ff7d3703d442192a1f6d84c52e028d566d44ff1c
[ "BSD-3-Clause" ]
1
2021-07-06T08:02:11.000Z
2021-07-06T08:02:11.000Z
# Copyright 2011, 2012 by Andrew Sczesnak. All rights reserved. # Revisions Copyright 2011, 2017 by Peter Cock. All rights reserved. # Revisions Copyright 2014, 2015 by Adam Novak. All rights reserved. # Revisions Copyright 2015, 2017 by Blaise Li. All rights reserved. # # This file is part of the Biopython distrib...
40.690647
121
0.550684
46c428dcdeeeb0afa6593e67e9aedfcb1fdf79ff
4,457
py
Python
dandi/tests/test_dandiarchive.py
AlmightyYakob/dandi-cli
511143dae0a2392cadbd6166c0648cae903677b1
[ "Apache-2.0" ]
null
null
null
dandi/tests/test_dandiarchive.py
AlmightyYakob/dandi-cli
511143dae0a2392cadbd6166c0648cae903677b1
[ "Apache-2.0" ]
2
2020-12-02T22:39:59.000Z
2020-12-03T18:10:53.000Z
dandi/tests/test_dandiarchive.py
AlmightyYakob/dandi-cli
511143dae0a2392cadbd6166c0648cae903677b1
[ "Apache-2.0" ]
1
2020-12-03T17:18:29.000Z
2020-12-03T17:18:29.000Z
import pytest from dandi.consts import known_instances from dandi.dandiarchive import parse_dandi_url, follow_redirect from dandi.exceptions import NotFoundError from dandi.tests.skip import mark def _assert_parse_girder_url(url): st, s, a, aid = parse_dandi_url(url) assert st == "girder" assert s == kno...
35.373016
141
0.647521
a6214c07871906839f6ca662a5c8ef3d4ec4818e
144
py
Python
python/test-data/testMissingReturn.py
Panteon32Om/write-your-python-program
615b73113466c1c8f901fad0a076b480f62ad437
[ "BSD-3-Clause" ]
null
null
null
python/test-data/testMissingReturn.py
Panteon32Om/write-your-python-program
615b73113466c1c8f901fad0a076b480f62ad437
[ "BSD-3-Clause" ]
null
null
null
python/test-data/testMissingReturn.py
Panteon32Om/write-your-python-program
615b73113466c1c8f901fad0a076b480f62ad437
[ "BSD-3-Clause" ]
null
null
null
# See: https://github.com/skogsbaer/write-your-python-program/issues/15 def billigStrom(kwh: float) -> float: pass print(billigStrom(500))
24
71
0.736111
6a7af1566fd79b48cc2e3b5dbbc73675edb4720b
138
py
Python
setup/fusion/scripts/Comp/avalon/loader.py
bumpybox/core
5a24640484f19e48dc12682dae979adc6d41dc0b
[ "MIT" ]
168
2017-06-23T15:50:43.000Z
2022-02-27T10:48:45.000Z
setup/fusion/scripts/Comp/avalon/loader.py
bumpybox/core
5a24640484f19e48dc12682dae979adc6d41dc0b
[ "MIT" ]
366
2017-06-22T08:38:45.000Z
2021-06-19T07:29:06.000Z
setup/fusion/scripts/Comp/avalon/loader.py
bumpybox/core
5a24640484f19e48dc12682dae979adc6d41dc0b
[ "MIT" ]
42
2017-06-23T15:27:26.000Z
2021-09-29T17:28:18.000Z
import avalon.api import avalon.fusion import avalon.tools.loader as tool avalon.api.install(avalon.fusion) tool.show(use_context=True)
17.25
34
0.818841
8ba0d728786744163b80106ae3252d85466d2ebd
36,547
py
Python
orbitx/physics/engine.py
Spoopidy/orbitx
701250d06bfeab3f624fe4ab8b5feea19039e088
[ "MIT" ]
null
null
null
orbitx/physics/engine.py
Spoopidy/orbitx
701250d06bfeab3f624fe4ab8b5feea19039e088
[ "MIT" ]
null
null
null
orbitx/physics/engine.py
Spoopidy/orbitx
701250d06bfeab3f624fe4ab8b5feea19039e088
[ "MIT" ]
null
null
null
"""This is the core of the OrbitX physics engine. Here, we simulate the state of the solar system over time. To do this, we start a thread running in the background to run the simulation, while our main thread handles all other user interaction. I've tried to provide a clean interface to this module, so that you don't...
41.017957
79
0.601992
1a00348c72d90ad4a28d2c6b760c1ed809238993
7,917
py
Python
output_template/python/usb_camera_demo.py
Joeper214/blueoil
5aeb6634770011753b8d5ae283b91b7a0050101e
[ "Apache-2.0" ]
null
null
null
output_template/python/usb_camera_demo.py
Joeper214/blueoil
5aeb6634770011753b8d5ae283b91b7a0050101e
[ "Apache-2.0" ]
null
null
null
output_template/python/usb_camera_demo.py
Joeper214/blueoil
5aeb6634770011753b8d5ae283b91b7a0050101e
[ "Apache-2.0" ]
1
2018-12-21T05:21:04.000Z
2018-12-21T05:21:04.000Z
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil 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 # # Unles...
31.416667
108
0.664898
d2dab8bd769adfcff767b53c48bb893b46942056
13,266
py
Python
homeassistant/components/rainmachine/switch.py
ldoench/core
1d733ed82a1f454e298dbf24c0be195922b9cb14
[ "Apache-2.0" ]
null
null
null
homeassistant/components/rainmachine/switch.py
ldoench/core
1d733ed82a1f454e298dbf24c0be195922b9cb14
[ "Apache-2.0" ]
29
2021-07-26T06:13:13.000Z
2022-03-31T06:14:56.000Z
homeassistant/components/rainmachine/switch.py
lbschenkel/home-assistant
e1797ea6709e4489ce592aa04e89927e3a9b6cec
[ "Apache-2.0" ]
null
null
null
"""This component provides support for RainMachine programs and zones.""" from __future__ import annotations from collections.abc import Coroutine from datetime import datetime from regenmaschine.controller import Controller from regenmaschine.errors import RequestError import voluptuous as vol from homeassistant.co...
33.331658
88
0.634931
d2f8be43f34b5348b817010be6b1f6020d3dbbc2
711
py
Python
src/python/grpcio/grpc/_grpcio_metadata.py
xeno14/grpc
ceb12c6be5f801997db976b564ddb14f95e46ce9
[ "Apache-2.0" ]
2
2019-08-15T18:29:13.000Z
2020-11-03T20:18:42.000Z
src/python/grpcio/grpc/_grpcio_metadata.py
xeno14/grpc
ceb12c6be5f801997db976b564ddb14f95e46ce9
[ "Apache-2.0" ]
2
2017-03-07T22:54:36.000Z
2017-04-14T15:17:36.000Z
src/python/grpcio/grpc/_grpcio_metadata.py
xeno14/grpc
ceb12c6be5f801997db976b564ddb14f95e46ce9
[ "Apache-2.0" ]
1
2021-08-03T19:12:54.000Z
2021-08-03T19:12:54.000Z
# Copyright 2017 gRPC 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 writing...
39.5
99
0.758087
9579ee13135dffb58ce6046942861533819ff481
2,792
py
Python
plugins/softraid/softraid.py
farazkhanfk7/ajenti
ff51635bea0d29bf9f35dd7912f145398040541d
[ "MIT" ]
1
2021-04-27T07:16:01.000Z
2021-04-27T07:16:01.000Z
plugins/softraid/softraid.py
farazkhanfk7/ajenti
ff51635bea0d29bf9f35dd7912f145398040541d
[ "MIT" ]
null
null
null
plugins/softraid/softraid.py
farazkhanfk7/ajenti
ff51635bea0d29bf9f35dd7912f145398040541d
[ "MIT" ]
null
null
null
class RAIDDevice(): def __init__(self): self.name = '' self.up = False self.failed = False self.spared = False self.down = False self.index = 0 class RAIDArray(): def __init__(self): self.name = '' self.type = '' self.state = '' s...
32.465116
78
0.445917
1b33416f45360f6ad23ce4c5b57bde21b5e7ae8b
3,325
py
Python
apis/etc.py
dyseo/ApkPure
e5d8fa559debd9577aa9eecdb8e78de2bd5cd815
[ "MIT" ]
14
2019-04-29T04:18:27.000Z
2022-03-26T07:33:56.000Z
apis/etc.py
dyseo/ApkPure
e5d8fa559debd9577aa9eecdb8e78de2bd5cd815
[ "MIT" ]
1
2021-05-17T07:52:28.000Z
2021-05-21T11:23:51.000Z
apis/etc.py
dyseo/ApkPure
e5d8fa559debd9577aa9eecdb8e78de2bd5cd815
[ "MIT" ]
6
2019-04-28T17:30:23.000Z
2021-03-13T12:04:28.000Z
# -*- coding: utf-8 -*- from connecting import Connect from bs4 import BeautifulSoup as Soup from bs4.element import Tag import re class Downloads(Connect): def __init__(self): super(Downloads, self).__init__() self.URL_RE = r"=(\w+)$" def sub_url(self, url): return re.sub(self.URL_RE, "=details", url) ...
30.227273
109
0.648722
4af0ad7187b473a23855bf97bc5dbcb252366b32
448
py
Python
AlyMoly/mantenedor/urls.py
CreceLibre/alymoly
1420e305f41301b8548dfbbabfc64330b74403be
[ "MIT" ]
null
null
null
AlyMoly/mantenedor/urls.py
CreceLibre/alymoly
1420e305f41301b8548dfbbabfc64330b74403be
[ "MIT" ]
null
null
null
AlyMoly/mantenedor/urls.py
CreceLibre/alymoly
1420e305f41301b8548dfbbabfc64330b74403be
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^subcategorias/(?P<supercategoria_id>\d*)/$', views.subcategorias, name='subcategorias'), url(r'^subcategoria_de_producto/(?P<producto_id>\d*)/$', views.subcategoria_de_producto, name='subcategori...
29.866667
60
0.640625
7f7e39b799dc7bb4ba69e3f85df10cb3b6d42fb2
4,972
py
Python
setup.py
hyperopt/hyperopt-nnet
766811d1128cda02d41c95ae118fd938e023c605
[ "BSD-3-Clause" ]
38
2015-02-06T03:54:59.000Z
2021-11-04T16:49:11.000Z
setup.py
hyperopt/hyperopt-nnet
766811d1128cda02d41c95ae118fd938e023c605
[ "BSD-3-Clause" ]
null
null
null
setup.py
hyperopt/hyperopt-nnet
766811d1128cda02d41c95ae118fd938e023c605
[ "BSD-3-Clause" ]
12
2016-01-09T21:54:51.000Z
2020-06-17T16:41:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ distribute- and pip-enabled setup.py """ import logging import os import re # ----- overrides ----- # set these to anything but None to override the automatic defaults packages = None package_name = None package_data = None scripts = None # --------------------- #...
31.27044
100
0.651046
f1e7e531964123215102752830eec9e1c2fbdd56
861
py
Python
cli/setup.py
dominikkurenda2/teleserver
24ba1e4dc167cad5d464ce0fe8da93ff57b2d726
[ "MIT" ]
null
null
null
cli/setup.py
dominikkurenda2/teleserver
24ba1e4dc167cad5d464ce0fe8da93ff57b2d726
[ "MIT" ]
1
2020-01-12T19:06:07.000Z
2020-01-12T19:06:07.000Z
cli/setup.py
Janek3d/teleserver
cf6027cd88bca39d2d208df956983d834ebf35a9
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() with open('requirements.txt') as f: required = f.read().splitlines() setuptools.setup( name="teleserver", py_modules=['teleserver'], version="0.0.5", author="Szymon Piotr Krasuski", description="CLI tool to ...
27.774194
58
0.665505
6c9de5585b9285c1632e070b0af46d239eada386
8,186
py
Python
homeassistant/components/powerwall/__init__.py
ohjohnsen/core
cd1a71b0706294f7e30ce8fdc435d68b48772de1
[ "Apache-2.0" ]
null
null
null
homeassistant/components/powerwall/__init__.py
ohjohnsen/core
cd1a71b0706294f7e30ce8fdc435d68b48772de1
[ "Apache-2.0" ]
null
null
null
homeassistant/components/powerwall/__init__.py
ohjohnsen/core
cd1a71b0706294f7e30ce8fdc435d68b48772de1
[ "Apache-2.0" ]
null
null
null
"""The Tesla Powerwall integration.""" from datetime import timedelta import logging import requests from tesla_powerwall import ( AccessDeniedError, MissingAttributeError, Powerwall, PowerwallUnreachableError, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF...
35.746725
97
0.706694
f508f992a055c512ee5283dd7d3ff414c3964598
289
py
Python
config_template.py
Lord-of-the-Galaxy/IISc-UG-Discord-Bot
b9247bc7a244a8726ff7437f06c4599efed132a0
[ "MIT" ]
2
2019-12-20T18:34:06.000Z
2020-04-28T06:24:44.000Z
config_template.py
Lord-of-the-Galaxy/IISc-UG-Discord-Bot
b9247bc7a244a8726ff7437f06c4599efed132a0
[ "MIT" ]
1
2019-12-21T17:17:39.000Z
2019-12-21T17:18:07.000Z
config_template.py
Lord-of-the-Galaxy/IISc-UG-Discord-Bot
b9247bc7a244a8726ff7437f06c4599efed132a0
[ "MIT" ]
1
2019-12-21T09:19:47.000Z
2019-12-21T09:19:47.000Z
member_role_id = 000000000000000000 senior_role_id = 111111111111111111 mod_role_id = 222222222222222222 muted_id = 333333333333333333 welcome_id = 444444444444444444 guild_id = 555555555555555555 COMMAND_PREFIX = '!' NAMES_PATH = "./data/names.txt" LOG_FOLDER = "./logs"
20.642857
36
0.771626
7dafa2c3f9642363635b24cb168de1349ab27410
3,236
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/antivirus_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/antivirus_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/antivirus_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_9_0_0.models.antivi...
27.65812
105
0.580346
2d5d64ee90b635e738d2f8344165947a294a235a
596
py
Python
abc/224/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/224/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/224/C.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N = ni() X = [0] * N Y = [0] * N for i in range(N): X[i], Y[i] = na() ans = 0 for i i...
20.551724
82
0.432886
3a60b5cfca086e07aaf872db412752e5497db89b
59,565
py
Python
contrib/opentimelineio_contrib/adapters/hls_playlist.py
TheBigSasha/OpenTimelineIO
0d857086cbb4fc39c1303947c61318aa6e523ea5
[ "Apache-2.0" ]
null
null
null
contrib/opentimelineio_contrib/adapters/hls_playlist.py
TheBigSasha/OpenTimelineIO
0d857086cbb4fc39c1303947c61318aa6e523ea5
[ "Apache-2.0" ]
null
null
null
contrib/opentimelineio_contrib/adapters/hls_playlist.py
TheBigSasha/OpenTimelineIO
0d857086cbb4fc39c1303947c61318aa6e523ea5
[ "Apache-2.0" ]
null
null
null
# # Copyright Contributors to the OpenTimelineIO project # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and rep...
33.425926
79
0.621439
0d1c5241c5a9336fc9a78f9a6829daa7727e3926
32,311
py
Python
pandas/core/arrays/datetimes.py
teoguso/pandas
c5870aa909ca97433809d0b28ed8bdd85353e16e
[ "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/datetimes.py
teoguso/pandas
c5870aa909ca97433809d0b28ed8bdd85353e16e
[ "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/datetimes.py
teoguso/pandas
c5870aa909ca97433809d0b28ed8bdd85353e16e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import timedelta import warnings import numpy as np from pytz import utc from pandas._libs import tslib from pandas._libs.tslib import Timestamp, NaT, iNaT from pandas._libs.tslibs import ( conversion, fields, timezones, resolution as libresolution) from pandas.util._dec...
34.083333
79
0.550184
370e7db245412a986043a6fe16ab540841d306b4
9,968
py
Python
clusteris/main/view.py
iturricf/clusteris
5be2768e926f411fca4156981688202e0734080a
[ "MIT" ]
null
null
null
clusteris/main/view.py
iturricf/clusteris
5be2768e926f411fca4156981688202e0734080a
[ "MIT" ]
null
null
null
clusteris/main/view.py
iturricf/clusteris
5be2768e926f411fca4156981688202e0734080a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import wx import wx.grid import wx.lib.newevent class MainView (wx.Frame): """ MainView is the main UI responsible. Shows dataset, processor and params related info. Provides public methods for asigning UI values from Presenter and dispatches user related actions events to...
34.975439
225
0.646569
b6195d9be479b901fa5d6cdbd3e51459b9ee48d4
1,820
py
Python
tests/test_gojot.py
schollz/gj
3d07f8254ca230dd795d34df1f9a23f763ae6420
[ "MIT" ]
null
null
null
tests/test_gojot.py
schollz/gj
3d07f8254ca230dd795d34df1f9a23f763ae6420
[ "MIT" ]
null
null
null
tests/test_gojot.py
schollz/gj
3d07f8254ca230dd795d34df1f9a23f763ae6420
[ "MIT" ]
1
2018-06-09T23:49:44.000Z
2018-06-09T23:49:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_gojot ---------------------------------- Tests for `gojot` module. """ import pytest from contextlib import contextmanager from click.testing import CliRunner from os.path import isfile, isdir from shutil import rmtree from gojot import gojot from gojot import...
26
90
0.676374
2b47b9a7ef5cfba6e2ae2cba8e4d7ee6a255792f
1,706
py
Python
profiles_api/migrations/0001_initial.py
bkmaibach/profiles-rest-api
422cc6a86fa4a6960792a8b103e5392018df4b4f
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
bkmaibach/profiles-rest-api
422cc6a86fa4a6960792a8b103e5392018df4b4f
[ "MIT" ]
6
2020-06-06T01:45:37.000Z
2022-02-10T11:53:00.000Z
profiles_api/migrations/0001_initial.py
bkmaibach/profiles-rest-api
422cc6a86fa4a6960792a8b103e5392018df4b4f
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-04-22 15:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
1b76da749326e5eaf157253ae2406e5a5d3d5c36
8,859
py
Python
scripts/recon_enum/smbrecon.py
bourbon-hunter/OSCPRepo
ce95c6da1400263b0117d61e168ac8c59603e18f
[ "MIT" ]
2,109
2018-01-05T21:01:55.000Z
2022-03-28T00:31:30.000Z
scripts/recon_enum/smbrecon.py
DollarBusiness/OSCPRepo
0d5a78e938a3861d11c70da41c8f37022cf55aba
[ "MIT" ]
11
2018-12-13T06:44:37.000Z
2022-03-26T16:58:06.000Z
scripts/recon_enum/smbrecon.py
DollarBusiness/OSCPRepo
0d5a78e938a3861d11c70da41c8f37022cf55aba
[ "MIT" ]
693
2017-11-14T19:25:15.000Z
2022-03-24T07:37:56.000Z
#!/usr/bin/python import sys import subprocess import os import errno import multiprocessing from multiprocessing import Process import argparse if len(sys.argv) != 3: print "Usage: smbrecon.py <ip address> <port>" sys.exit(0) ip_address = sys.argv[1] port = sys.argv[2].strip() #makedir function from https:/...
54.685185
503
0.723445
3f8f5943b86255745fd473a9c7457778f4eaceb6
6,124
py
Python
userbot/modules/misc.py
AbOuLfOoOoOuF/ProjectFizilionFrosT
596c01d4f4010984f3a8545b35ad8bfc23ea2327
[ "Naumen", "Condor-1.1", "MS-PL" ]
5
2021-11-14T06:04:23.000Z
2022-03-28T21:05:08.000Z
userbot/modules/misc.py
AbOuLfOoOoOuF/ProjectFizilionFrosT
596c01d4f4010984f3a8545b35ad8bfc23ea2327
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/misc.py
AbOuLfOoOoOuF/ProjectFizilionFrosT
596c01d4f4010984f3a8545b35ad8bfc23ea2327
[ "Naumen", "Condor-1.1", "MS-PL" ]
10
2021-11-13T16:27:15.000Z
2022-02-17T19:39:09.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # # You can find misc modules, which dont fit in anything xD # # #Modified by @PrajjuS """ Userbot module for other small...
34.212291
159
0.668191
4c746b268ff33f49df69f5ffc63c1137fb28c42f
5,319
py
Python
test/functional/feature_config_args.py
minblock/muncatascoin
08376c7207f735a3cdc470786f13a0832ecc1dd9
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
minblock/muncatascoin
08376c7207f735a3cdc470786f13a0832ecc1dd9
[ "MIT" ]
null
null
null
test/functional/feature_config_args.py
minblock/muncatascoin
08376c7207f735a3cdc470786f13a0832ecc1dd9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various command line arguments and configuration file parameters.""" import os from test_framewo...
53.19
200
0.688663
05e87e22e79ab21d0a881bab00b2f7bc8941c435
8,271
py
Python
pyisis/clns.py
choppsv1/pyisis
85ac02b438e824fe99ce97d095c362aec7c96d76
[ "Apache-2.0" ]
10
2015-02-12T16:17:06.000Z
2021-03-11T18:24:31.000Z
pyisis/clns.py
choppsv1/pyisis
85ac02b438e824fe99ce97d095c362aec7c96d76
[ "Apache-2.0" ]
1
2020-05-29T18:42:56.000Z
2020-07-03T09:57:33.000Z
pyisis/clns.py
choppsv1/pyisis
85ac02b438e824fe99ce97d095c362aec7c96d76
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2014 by Christian E. Hopps. # 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 appl...
29.539286
97
0.618909
c556e6d981c47ac64efbd038ec788d6be642d749
2,153
py
Python
run_once.py
bjnortier/tile-crop-py
4f97fe24df2acf77fcab884f2e84478cde9985c5
[ "MIT" ]
1
2019-04-16T18:46:42.000Z
2019-04-16T18:46:42.000Z
run_once.py
bjnortier/tile-crop-py
4f97fe24df2acf77fcab884f2e84478cde9985c5
[ "MIT" ]
11
2019-04-17T07:06:08.000Z
2022-02-10T00:06:34.000Z
run_once.py
bjnortier/tile-crop-py
4f97fe24df2acf77fcab884f2e84478cde9985c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python from PIL import Image import json from util import BBox, V2 from crop import calculate_composite_bbox_and_dimensions from crop import create_composite_image from crop import geo_json_bbox, calculate_crop from crop import create_boundary_pixels from crop import crop_to_boundary from crop import ma...
31.202899
79
0.675337
1c5be1a8c552d360e3316da781dc50597bddcbb3
65,131
py
Python
src/external/coremltools_wrap/coremltools/coremltools/converters/mil/frontend/torch/ops.py
cookingcodewithme/turicreate
a89e203d60529d2d72547c03ec9753ea979ee342
[ "BSD-3-Clause" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
src/external/coremltools_wrap/coremltools/coremltools/converters/mil/frontend/torch/ops.py
cookingcodewithme/turicreate
a89e203d60529d2d72547c03ec9753ea979ee342
[ "BSD-3-Clause" ]
2,402
2017-12-08T22:31:01.000Z
2022-03-28T19:25:52.000Z
src/external/coremltools_wrap/coremltools/coremltools/converters/mil/frontend/torch/ops.py
cookingcodewithme/turicreate
a89e203d60529d2d72547c03ec9753ea979ee342
[ "BSD-3-Clause" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import logging as _logging import math as _math import numpy as _np from tqdm import tqdm as _tqdm ...
32.630762
158
0.619674
68d58ba6cf0bfdc74207a9c5c8571b45110a35ba
2,378
py
Python
StanCode_project/name_searching/milestone1.py
samuel840712/python_stancode
2f504f9c97f1cddb655992b0a33cd79660228b3c
[ "MIT" ]
null
null
null
StanCode_project/name_searching/milestone1.py
samuel840712/python_stancode
2f504f9c97f1cddb655992b0a33cd79660228b3c
[ "MIT" ]
null
null
null
StanCode_project/name_searching/milestone1.py
samuel840712/python_stancode
2f504f9c97f1cddb655992b0a33cd79660228b3c
[ "MIT" ]
null
null
null
""" File: Milestone1.py Name: ----------------------- This file tests the milestone 1 for our babyname.py project """ import sys def add_data_for_name(name_data, year, rank, name): if name in name_data: if year in name_data[name]: if int(rank) < int(name_data[name][year]): nam...
30.101266
107
0.470563
743e2fcfcce12d1f224d52be6082f0149b7e9551
12,900
py
Python
tf_pwa/data.py
tdayu/tf-pwa
bc5286bef12c71796104d454858b1200bf197e57
[ "MIT" ]
null
null
null
tf_pwa/data.py
tdayu/tf-pwa
bc5286bef12c71796104d454858b1200bf197e57
[ "MIT" ]
null
null
null
tf_pwa/data.py
tdayu/tf-pwa
bc5286bef12c71796104d454858b1200bf197e57
[ "MIT" ]
null
null
null
""" module for describing data process. All data structure is describing as nested combination of `dict` or `list` for `ndarray`. Data process is a translation from data structure to another data structure or typical `ndarray`. Data cache can be implemented based on the dynamic features of `list` and `dict`. The full...
28.104575
118
0.549225
13e852e46491deb9b99f5f1f166a340cfe057bb8
7,478
py
Python
accentizer.py
sztupy/accentizer
964b0ae0bf91600e295d6f5a4a75a58bff1f6b83
[ "BSD-3-Clause" ]
19
2015-03-20T07:27:20.000Z
2021-08-30T18:46:16.000Z
accentizer.py
sztupy/accentizer
964b0ae0bf91600e295d6f5a4a75a58bff1f6b83
[ "BSD-3-Clause" ]
null
null
null
accentizer.py
sztupy/accentizer
964b0ae0bf91600e295d6f5a4a75a58bff1f6b83
[ "BSD-3-Clause" ]
1
2019-04-02T03:53:54.000Z
2019-04-02T03:53:54.000Z
#!/usr/bin/fontforge # -*- coding: utf-8 -*- # # ACCENTIZER by Zsolt Sz. Sztupák (mail@sztupy.hu) # Based on a FontForge script tutorial by George Williams # # Copyright © 2012 by Zsolt Sz. Sztupák (mail@sztupy.hu) # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
35.609524
153
0.730275
216cd6bbe17cbde25fe7dfbb358b6e7396b8e9a0
3,235
py
Python
docs/conf.py
afpsaros/uncertainty-toolbox
66a8428b3f3a6084fd0e5e0bb74e32b860db69f3
[ "MIT" ]
1
2022-02-06T22:03:45.000Z
2022-02-06T22:03:45.000Z
docs/conf.py
afpsaros/uncertainty-toolbox
66a8428b3f3a6084fd0e5e0bb74e32b860db69f3
[ "MIT" ]
null
null
null
docs/conf.py
afpsaros/uncertainty-toolbox
66a8428b3f3a6084fd0e5e0bb74e32b860db69f3
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.676768
80
0.688099
12bb0b184ab2fa0eb5afce0581da00a1b8b5f798
11,199
py
Python
src/fuzzingtool/core/Matcher.py
NESCAU-UFLA/FuzzingTool
d0dbe3ee4c17ec8ee72423bf7fabce6849e01807
[ "MIT" ]
131
2020-12-14T18:45:29.000Z
2022-03-31T03:00:21.000Z
src/fuzzingtool/core/Matcher.py
NESCAU-UFLA/FuzzingTool
d0dbe3ee4c17ec8ee72423bf7fabce6849e01807
[ "MIT" ]
51
2020-12-14T16:02:38.000Z
2022-03-31T18:47:12.000Z
src/fuzzingtool/core/Matcher.py
NESCAU-UFLA/FuzzingTool
d0dbe3ee4c17ec8ee72423bf7fabce6849e01807
[ "MIT" ]
38
2020-12-14T21:12:18.000Z
2022-03-29T18:23:20.000Z
# Copyright (c) 2020 - present Vitor Oriel <https://github.com/VitorOriel> # # 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 ...
38.885417
129
0.607644
929842fd0da4c955a27d9fd306d37a69de77c389
28,072
py
Python
airflow/models/dagbag.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
3
2017-08-06T23:19:48.000Z
2018-05-11T05:50:25.000Z
airflow/models/dagbag.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
20
2016-11-21T22:54:28.000Z
2018-10-28T20:03:13.000Z
airflow/models/dagbag.py
holly-evans/airflow
865406cbab4defd35c95afbf0a8d5987ff7788b1
[ "Apache-2.0" ]
3
2016-10-13T09:59:18.000Z
2017-02-22T11:29:09.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...
42.15015
110
0.613993
7adaa7e7d3fc321a4bc589c731685a93b4696c0b
100
py
Python
olympic_games/apps.py
PircK/OPB
71ad8168d92a61793cfb75ca7ee8d82961f65fd8
[ "MIT" ]
null
null
null
olympic_games/apps.py
PircK/OPB
71ad8168d92a61793cfb75ca7ee8d82961f65fd8
[ "MIT" ]
1
2019-04-26T09:43:48.000Z
2019-04-26T09:43:48.000Z
olympic_games/apps.py
PircK/OPB-olimpijske-igre
71ad8168d92a61793cfb75ca7ee8d82961f65fd8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class OlympicGamesConfig(AppConfig): name = 'olympic_games'
16.666667
36
0.78
2c4f7b7cd01fe7079c2c965d89ee89ab44051207
1,874
py
Python
douban/douban/items.py
kainzhang/scrapy-learning
54c7f4d253e4bf4003abc11c5751ea846093834d
[ "MIT" ]
4
2021-05-22T06:57:07.000Z
2022-03-15T04:43:09.000Z
douban/douban/items.py
kainzhang/scrapy-learning
54c7f4d253e4bf4003abc11c5751ea846093834d
[ "MIT" ]
null
null
null
douban/douban/items.py
kainzhang/scrapy-learning
54c7f4d253e4bf4003abc11c5751ea846093834d
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class MovieItem(scrapy.Item): id = scrapy.Field() name = scrapy.Field() date_published = scrapy.Field() genre = scrapy.Field() duration = scrapy.Field() ...
21.54023
53
0.61206
193d2bca4d51d588460494f9f90c43898de296d9
1,746
py
Python
tools/gimp-bitmap-generator/generate_bitmap_font.py
dalkon/otclient
fcd481ee1593da066ee54296c46590a7267cc1ca
[ "MIT" ]
518
2015-01-10T18:09:26.000Z
2022-03-27T11:41:33.000Z
tools/gimp-bitmap-generator/generate_bitmap_font.py
dalkon/otclient
fcd481ee1593da066ee54296c46590a7267cc1ca
[ "MIT" ]
504
2015-01-01T17:34:59.000Z
2022-03-25T18:27:37.000Z
tools/gimp-bitmap-generator/generate_bitmap_font.py
dalkon/otclient
fcd481ee1593da066ee54296c46590a7267cc1ca
[ "MIT" ]
545
2015-01-08T09:37:10.000Z
2022-03-05T00:57:50.000Z
#!/usr/bin/env python import math from gimpfu import * def generate_bitmap_font(timg, tdrawable, font, font_size, first_char, glyph_width, glyph_height, antialias): char_begin = int(first_char) char_end = 256 num_chars = char_end - char_begin width = int(glyph_width) * 16 num_lines = num_chars / 16 if num_chars...
26.861538
112
0.681558
2743b52bad661d76726dca6334b492a407c9e25d
12,042
py
Python
synapse/storage/pusher.py
zauguin/synapse
ea00f18135ce30e8415526ce68585ea90da5b856
[ "Apache-2.0" ]
1
2019-08-29T05:52:15.000Z
2019-08-29T05:52:15.000Z
synapse/storage/pusher.py
zauguin/synapse
ea00f18135ce30e8415526ce68585ea90da5b856
[ "Apache-2.0" ]
null
null
null
synapse/storage/pusher.py
zauguin/synapse
ea00f18135ce30e8415526ce68585ea90da5b856
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # Copyright 2018 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
35.005814
80
0.551486
1009e3cf71258d36289f8c617a0ddd50468c9077
1,452
py
Python
mimic/Utils/Time.py
link00000000/mimic
9452f4311e70deb23286504d9b02c64b9a76e14c
[ "MIT" ]
2
2021-07-29T04:30:34.000Z
2021-08-06T04:58:39.000Z
mimic/Utils/Time.py
link00000000/mimic
9452f4311e70deb23286504d9b02c64b9a76e14c
[ "MIT" ]
20
2021-04-02T17:03:53.000Z
2021-08-07T11:04:09.000Z
mimic/Utils/Time.py
link00000000/mimic
9452f4311e70deb23286504d9b02c64b9a76e14c
[ "MIT" ]
null
null
null
"""Utility functions for time.""" import asyncio from threading import Timer from time import time from typing import Callable from pyee import AsyncIOEventEmitter def timestamp() -> int: """Get number of milliseconds from epoch.""" return int(time() * 1000) def latency(previous_timestamp: int) -> int: ...
26.888889
102
0.650138
c9dd49f68149c9188431f0ad6c4815698dad9c99
20,470
py
Python
premade_modules/2.78/2.78c/bpy/ops/graph.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bpy/ops/graph.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bpy/ops/graph.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def bake(): '''Bake selected F-Curves to a set of sampled points defining a similar curve ''' pass def clean(threshold=0.001, channels=False): '''Simplify F-Curves by removing closely spaced keyframes :param threshold: Threshold :type threshold: float in [0, inf], (optional) :param c...
37.285974
791
0.698779
f053254aa0c9ed45ef2238c6e4e1316b76def664
782
py
Python
soundrts/tests/test_serverclient.py
Finnboy94/soundrts
284ffe2c507f4c9e44b4e5fa8c4ef05b6614c6c6
[ "BSD-3-Clause" ]
23
2015-04-02T16:54:08.000Z
2022-03-02T09:48:04.000Z
soundrts/tests/test_serverclient.py
Finnboy94/soundrts
284ffe2c507f4c9e44b4e5fa8c4ef05b6614c6c6
[ "BSD-3-Clause" ]
94
2015-03-25T21:05:45.000Z
2021-12-22T20:05:42.000Z
soundrts/tests/test_serverclient.py
TifloDev/soundrts
209695ed80b8746facdcb35f446f0f855c48da84
[ "BSD-3-Clause" ]
33
2015-05-27T05:53:14.000Z
2021-12-08T02:45:44.000Z
from soundrts.serverclient import ConnectionToClient class Client(ConnectionToClient): def __init__(self): self.inbuffer = b"" def _execute_command(self, data): self.cmd = data class Server: clients = [] # type: ignore def test_found_terminator(): c = Client() c.collect_inco...
21.135135
52
0.622762
b9af61630c81d0730781c0350a2f97fe5581847f
2,803
py
Python
tests/jadoc/test_conj.py
poyo46/jadoc
06645db474d2ad264f7a63cfa2f39584869ccf39
[ "Apache-2.0" ]
null
null
null
tests/jadoc/test_conj.py
poyo46/jadoc
06645db474d2ad264f7a63cfa2f39584869ccf39
[ "Apache-2.0" ]
null
null
null
tests/jadoc/test_conj.py
poyo46/jadoc
06645db474d2ad264f7a63cfa2f39584869ccf39
[ "Apache-2.0" ]
null
null
null
from typing import List import pytest from jadoc.conj import Conjugation, _replace_with_vowel from jadoc.mecab.config import get_dicdirs from jadoc.mecab.tokenizer import generate_tokenizer from jadoc.word.cform import Gokan, Meirei, RenyoOnbin from jadoc.word.word import Word tokenizers = [generate_tokenizer(dicdir...
29.505263
69
0.500178
38810c010e22212ea5aa750bc2234b4ee54e44c2
1,133
py
Python
chat/legends.py
cambridgeltl/chat
98eaa1da042a149496d2d31373fc7265cdb3043d
[ "MIT" ]
9
2017-07-15T08:45:22.000Z
2021-07-06T08:32:03.000Z
chat/legends.py
cambridgeltl/chat
98eaa1da042a149496d2d31373fc7265cdb3043d
[ "MIT" ]
6
2017-05-05T13:11:51.000Z
2019-01-25T22:46:30.000Z
chat/legends.py
cambridgeltl/chat
98eaa1da042a149496d2d31373fc7265cdb3043d
[ "MIT" ]
3
2018-03-16T14:11:52.000Z
2020-03-04T02:08:31.000Z
_top_hallmark_legend = '''<div class="chart-legend" id="chart-legend"> <ul class="0-legend"> <li><span style="background-color:#221E1F"></span>invasion and metastasis</li> <li><span style="background-color:#D1268C"></span>immune destruction</li> <li><span style="background-color:#813C96"></span>cellular e...
49.26087
93
0.691086
018b28dcd3ae6fc590640f3e6ae8721782caa2ee
399
py
Python
sentry_demo/sentry_demo/asgi.py
JoshStegmaier/sentry-demo
a034f8eed63604671bf2552167bc1fbcc14446c3
[ "MIT" ]
null
null
null
sentry_demo/sentry_demo/asgi.py
JoshStegmaier/sentry-demo
a034f8eed63604671bf2552167bc1fbcc14446c3
[ "MIT" ]
null
null
null
sentry_demo/sentry_demo/asgi.py
JoshStegmaier/sentry-demo
a034f8eed63604671bf2552167bc1fbcc14446c3
[ "MIT" ]
null
null
null
""" ASGI config for sentry_demo project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
98734b8d14012ba88698f97155cbe430b6703f79
8,162
py
Python
tensorflow_probability/python/distributions/logistic_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/distributions/logistic_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/distributions/logistic_test.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
37.269406
78
0.685371
56a945a4d68ccbee407778cc0e83c6c600132358
10,053
py
Python
test_query_counter/query_count.py
sophilabs/django-test-query-counter
467419b40c6b2cd3f19047522ee25d843b73d768
[ "MIT" ]
23
2017-07-14T02:43:06.000Z
2019-12-20T12:31:39.000Z
test_query_counter/query_count.py
sophilabs/django-test-query-counter
467419b40c6b2cd3f19047522ee25d843b73d768
[ "MIT" ]
1
2017-12-14T12:26:41.000Z
2017-12-14T12:26:41.000Z
test_query_counter/query_count.py
sophilabs/django-test-query-counter
467419b40c6b2cd3f19047522ee25d843b73d768
[ "MIT" ]
3
2020-04-25T10:46:24.000Z
2021-09-29T20:14:26.000Z
import json import re import sys from sys import maxsize, stderr ANY = '' class QueryCountExclusion(object): """Represents an test condition to exclude some of the query counts made by the requests. Meant to be used in exclude_query_count""" def __init__(self, path, method, count): self.path =...
35.648936
79
0.619517
3800f4552688395f03754f99b9e7030a101753cc
4,073
py
Python
mpd-dlna-yamaha-avr.py
matgoebl/mpd-dlna-yamaha-avr
5c8abaea4db21d9f3a4b2bd0d58f44b2b64157ae
[ "Apache-2.0" ]
null
null
null
mpd-dlna-yamaha-avr.py
matgoebl/mpd-dlna-yamaha-avr
5c8abaea4db21d9f3a4b2bd0d58f44b2b64157ae
[ "Apache-2.0" ]
null
null
null
mpd-dlna-yamaha-avr.py
matgoebl/mpd-dlna-yamaha-avr
5c8abaea4db21d9f3a4b2bd0d58f44b2b64157ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import musicpd import argparse import os import time import nanodlna from nanodlna import devices, dlna import rxv import logging def main(): global rxv_ctrl_url, rxv_media_url, mpd_stream_url parser = argparse.ArgumentParser( description='Stream from Music Player Daemon to Ya...
41.141414
174
0.604959
dad8b6229b568d106e3eb8ed882938ef5b2afe38
2,826
py
Python
ircbot/plugin/check.py
cg505/ircbot
1ab3af2c5edfff2598e8edb5b402f34cc0b5ca9c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ircbot/plugin/check.py
cg505/ircbot
1ab3af2c5edfff2598e8edb5b402f34cc0b5ca9c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
ircbot/plugin/check.py
cg505/ircbot
1ab3af2c5edfff2598e8edb5b402f34cc0b5ca9c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
"""Show information about OCF users.""" import grp import string from ocflib.account import search from ocflib.infra import ldap GROUP_COLOR_MAPPING = { 'ocf': '\x0314', # gray 'sorry': '\x0304', # red 'opstaff': '\x0303', # green 'ocfstaff': '\x0302', # blue 'ocfroot': '\x0307', # orange } ...
28.26
84
0.484784
a20755c3fa2eb549844276a66cc4a17c61179a49
789
py
Python
Jan Bodnar - zetcode/Widgets 1/check_box.py
jgorman3691/PyQt5Tutorials
0ea418e873cfe2ce5d939aa7238718f3db061fe0
[ "MIT" ]
null
null
null
Jan Bodnar - zetcode/Widgets 1/check_box.py
jgorman3691/PyQt5Tutorials
0ea418e873cfe2ce5d939aa7238718f3db061fe0
[ "MIT" ]
null
null
null
Jan Bodnar - zetcode/Widgets 1/check_box.py
jgorman3691/PyQt5Tutorials
0ea418e873cfe2ce5d939aa7238718f3db061fe0
[ "MIT" ]
null
null
null
#! python3 import sys, PyQt5 from PyQt5.QtWidgets import QWidget, QCheckBox, QApplication from PyQt5.QtCore import Qt class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): cb = QCheckBox('Show Title', self) cb.move(20, 20) ...
21.324324
60
0.594423
f53c68f4129435050386817ac2ff269c14ffb53d
7,669
py
Python
ansible/my_env/lib/python2.7/site-packages/ansible/plugins/callback/slack.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2019-04-16T21:23:15.000Z
2019-04-16T21:23:15.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/plugins/callback/slack.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
5
2020-02-26T20:10:50.000Z
2021-09-23T23:23:18.000Z
ansible/my_env/lib/python2.7/site-packages/ansible/plugins/callback/slack.py
otus-devops-2019-02/yyashkin_infra
0cd0c003884155ac922e3e301305ac202de7028c
[ "MIT" ]
1
2020-02-13T14:24:57.000Z
2020-02-13T14:24:57.000Z
# (C) 2014-2015, Matt Martz <matt@sivel.net> # (C) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' callback: ...
31.821577
116
0.550919
481ad82f9effb83e895a2e8364bd802ae824b920
3,854
py
Python
stoneforge/tests_porosity/test_porosity.py
mmramos/stoneforge
9bf819b81053b571a8d43bb7bad6886439bf1a3e
[ "MIT" ]
null
null
null
stoneforge/tests_porosity/test_porosity.py
mmramos/stoneforge
9bf819b81053b571a8d43bb7bad6886439bf1a3e
[ "MIT" ]
null
null
null
stoneforge/tests_porosity/test_porosity.py
mmramos/stoneforge
9bf819b81053b571a8d43bb7bad6886439bf1a3e
[ "MIT" ]
null
null
null
# %% import sys import os import numpy as np import pytest import warnings if __package__: from ..petrophysics.porosity import porosity else: sys.path.append(os.path.dirname(__file__) + '/..') from petrophysics.porosity import porosity np.random.seed(99) density_values = [] for i in range(15): rhob ...
31.080645
74
0.642968
03af9a3c59eabeab981319035db0ee53461ae427
10,761
py
Python
models/system.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
4
2019-09-04T09:16:24.000Z
2019-09-18T08:50:36.000Z
models/system.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
null
null
null
models/system.py
huzidabanzhang/Python
7b304290e5be7db4bce253edb069a12dcbc3c998
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:UTF-8 -*- ''' @Description: 系统相关的几张表结构 @Author: Zpp @Date: 2019-09-05 15:57:55 LastEditTime: 2020-11-26 16:00:20 LastEditors: Zpp ''' from models import db import datetime import json def table_args(): return { 'useexisting': True, 'mysql_engine': 'InnoDB', ...
36.726962
109
0.63154
37004c29dd24199afa4683f2f39bcf7c5c44732c
410
py
Python
onnxruntime/python/tools/transformers/torch_extensions/setup.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/python/tools/transformers/torch_extensions/setup.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/python/tools/transformers/torch_extensions/setup.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CppExtension setup(name='longformer_attention', ext_modules=[ CppExtension(name='longformer_attention', sources=['longformer_attention.cpp'], include_dirs=[], ...
34.166667
66
0.614634
f042424c9b28f93b28edc609dbd54e4ec9f372c3
226
py
Python
VTK-7.1.1/build/Wrapping/Python/compile_all_vtk.py
likewatchk/python-pcl
2a66797719f1b5af7d6a0d0893f697b3786db461
[ "BSD-3-Clause" ]
null
null
null
VTK-7.1.1/build/Wrapping/Python/compile_all_vtk.py
likewatchk/python-pcl
2a66797719f1b5af7d6a0d0893f697b3786db461
[ "BSD-3-Clause" ]
null
null
null
VTK-7.1.1/build/Wrapping/Python/compile_all_vtk.py
likewatchk/python-pcl
2a66797719f1b5af7d6a0d0893f697b3786db461
[ "BSD-3-Clause" ]
null
null
null
import compileall compileall.compile_dir('/home/softkoo/pcl/python-pcl/VTK-7.1.1/build/Wrapping/Python') file = open('/home/softkoo/pcl/python-pcl/VTK-7.1.1/build/Wrapping/Python/vtk_compile_complete', 'w') file.write('Done')
45.2
101
0.774336
6ddf37b78d0d581253e489eac3cf81e7b737e347
22,296
py
Python
test/actor_test.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
test/actor_test.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
test/actor_test.py
delding/ray
8532ba4272556aa24b5e0c7d275c7b383815c022
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import random import unittest import ray class ActorAPI(unittest.TestCase): def testKeywordArgs(self): ray.init(num_workers=0, driver_mode=ray.SILENT_MODE) @ray.actor class...
28.330368
79
0.626794
9bc47290754b0e89db24b870d4a39c6069f3bac7
11,168
py
Python
yahoo.py
dairiki/yahoo-group-archiver
5b312c18520c8907c1cdaf84ac4ab600dd48db8e
[ "MIT" ]
1
2019-10-18T21:52:23.000Z
2019-10-18T21:52:23.000Z
yahoo.py
dairiki/yahoo-group-archiver
5b312c18520c8907c1cdaf84ac4ab600dd48db8e
[ "MIT" ]
null
null
null
yahoo.py
dairiki/yahoo-group-archiver
5b312c18520c8907c1cdaf84ac4ab600dd48db8e
[ "MIT" ]
1
2019-10-18T22:15:40.000Z
2019-10-18T22:15:40.000Z
#!/usr/bin/env python from yahoogroupsapi import YahooGroupsAPI import json import email import urllib import os from os.path import basename from xml.sax.saxutils import unescape import argparse import getpass import sys import requests import time def unescape_html(string): return unescape(string, {"&quot;": '"'...
37.351171
120
0.529549
aa396f83aeba383ab347aa855d3fd788758cc2a9
560
py
Python
appmail/migrations/0004_emailtemplate_is_active.py
iuliaav/django-appmail
ebc0b5d90871410cfdfcf13362fdeaa733052fa9
[ "MIT" ]
null
null
null
appmail/migrations/0004_emailtemplate_is_active.py
iuliaav/django-appmail
ebc0b5d90871410cfdfcf13362fdeaa733052fa9
[ "MIT" ]
null
null
null
appmail/migrations/0004_emailtemplate_is_active.py
iuliaav/django-appmail
ebc0b5d90871410cfdfcf13362fdeaa733052fa9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-08-07 06:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('appmail', '0003_emailtemplate_test_context'), ] operations = [ migrations.A...
26.666667
143
0.65
85b1c1ee457a1f871aeb2cf2246ad6c61cfe103d
37,843
py
Python
pycsou/opt/proxalgs.py
poldap/pycsou
fe2f9d2740206f5a8a020c9a65a3ce7d1fd4e1be
[ "MIT" ]
null
null
null
pycsou/opt/proxalgs.py
poldap/pycsou
fe2f9d2740206f5a8a020c9a65a3ce7d1fd4e1be
[ "MIT" ]
null
null
null
pycsou/opt/proxalgs.py
poldap/pycsou
fe2f9d2740206f5a8a020c9a65a3ce7d1fd4e1be
[ "MIT" ]
null
null
null
# ############################################################################# # solver.py # ========= # Author : Matthieu Simeoni [matthieu.simeoni@gmail.com] # ############################################################################# r""" Proximal algorithms. This module provides various proximal algorithms fo...
43.003409
376
0.592131
27e4f70ce702ae1a1acaee3eb234265903ec5a84
25,842
py
Python
Tests/test_Uniprot.py
SquidBio/biopython
55430ff5233a82aaeeabfb782f45308d1c0a7ceb
[ "BSD-3-Clause" ]
1
2020-01-21T02:04:08.000Z
2020-01-21T02:04:08.000Z
Tests/test_Uniprot.py
SquidBio/biopython
55430ff5233a82aaeeabfb782f45308d1c0a7ceb
[ "BSD-3-Clause" ]
null
null
null
Tests/test_Uniprot.py
SquidBio/biopython
55430ff5233a82aaeeabfb782f45308d1c0a7ceb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2010 by Andrea Pierleoni # Revisions copyright 2010-2015 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Test for the Uniprot ...
57.046358
258
0.596123
d0c82f588eeff7a64dacf91aa89f6e41da5e2e7a
76,143
py
Python
statsmodels/tsa/vector_ar/var_model.py
bukzor/statsmodels
a7a9e096d31db5dfafd5a22ac7d31d75cc2ae5e7
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/vector_ar/var_model.py
bukzor/statsmodels
a7a9e096d31db5dfafd5a22ac7d31d75cc2ae5e7
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/vector_ar/var_model.py
bukzor/statsmodels
a7a9e096d31db5dfafd5a22ac7d31d75cc2ae5e7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Vector Autoregression (VAR) processes References ---------- Lütkepohl (2005) New Introduction to Multiple Time Series Analysis """ from __future__ import annotations from statsmodels.compat.pandas import deprecate_kwarg from statsmodels.compat.python import lrange from collections import ...
30.665727
81
0.557635
5a690ee57897ea48b24e21e329e531230e6f71a1
621
py
Python
transporter/Heuristic/rulat.py
cscUOU/Shipyard-process-optimization
cefddd2e953ab6b685771d3c388ae46c7d06bdf3
[ "Apache-2.0" ]
null
null
null
transporter/Heuristic/rulat.py
cscUOU/Shipyard-process-optimization
cefddd2e953ab6b685771d3c388ae46c7d06bdf3
[ "Apache-2.0" ]
null
null
null
transporter/Heuristic/rulat.py
cscUOU/Shipyard-process-optimization
cefddd2e953ab6b685771d3c388ae46c7d06bdf3
[ "Apache-2.0" ]
null
null
null
import numpy as np # 트랜스포터 룰렛판 생성 def trans_rulat(transporter_list, weight): trans_con = [i for i in transporter_list if i.a_w >= weight] rulat = np.array([len(i.task) for i in trans_con]) rulat = rulat + 1 # 할당 안 된 트랜스포터도 기회 주려고.. rulat = rulat**2 rulat = rulat / np.sum(rulat) rulat = list(ru...
29.571429
92
0.663446
0e3d20b8f5fbe516a84a936490fd92d4779a0f9b
70
py
Python
abacat/deprecated/genome_fetcher/__init__.py
vinisalazar/bactools
60911d7af6f6914816737a01141db868175e979f
[ "MIT" ]
7
2019-09-27T04:19:48.000Z
2021-02-18T10:14:05.000Z
abacat/deprecated/genome_fetcher/__init__.py
vinisalazar/bactools
60911d7af6f6914816737a01141db868175e979f
[ "MIT" ]
3
2019-09-27T02:50:26.000Z
2019-09-27T05:04:36.000Z
abacat/deprecated/genome_fetcher/__init__.py
vinisalazar/bactools
60911d7af6f6914816737a01141db868175e979f
[ "MIT" ]
null
null
null
name = "genome_fetcher" from .genome_fetch import GenomeFetch, Query
17.5
44
0.8
e5e2b21915e35bbd3a84901ccbb1089fe36122af
542
py
Python
mfr/extensions/svg/render.py
alexschiller/modular-file-renderer
43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d
[ "Apache-2.0" ]
null
null
null
mfr/extensions/svg/render.py
alexschiller/modular-file-renderer
43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d
[ "Apache-2.0" ]
null
null
null
mfr/extensions/svg/render.py
alexschiller/modular-file-renderer
43d59f2a8f4eb210fe8cb844b0a5a1a0ae057a0d
[ "Apache-2.0" ]
null
null
null
"""SVG Image renderer module.""" import os from mako.lookup import TemplateLookup from mfr.core import extension class SvgRenderer(extension.BaseRenderer): TEMPLATE = TemplateLookup( directories=[ os.path.join(os.path.dirname(__file__), 'templates') ]).get_template('viewer.mako') ...
20.846154
71
0.671587
47ed16ee647044db37249e96fe2e29b0ed738bd3
1,356
py
Python
fractals/pytorch/fractal_gen.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
1
2019-10-11T21:36:06.000Z
2019-10-11T21:36:06.000Z
fractals/pytorch/fractal_gen.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
null
null
null
fractals/pytorch/fractal_gen.py
NeilBostian/ML
df487db8755ad074cdd42f1094747815ae555896
[ "Unlicense" ]
null
null
null
import numpy as np import torch R = 4 ITER_NUM = 300 class FractalGen(): def __init__(self): pass def gen_fractal(self, c, Z): c = torch.tensor(c, dtype=torch.complex32) zs = torch.tensor(Z) xs = torch.full(size=zs.size(), fill_value=c) ns = torch.zeros_like(zs) ...
29.478261
92
0.533186
c562d6f3893f9d7771c4b6c9bd1709d6b04877af
6,933
py
Python
wepwnise.py
jezzus/wePWNise
b6fe6164e8e17bb7f97a724e2505443bfd9d89c4
[ "BSD-3-Clause" ]
282
2016-11-11T15:50:52.000Z
2019-09-20T01:56:27.000Z
wepwnise.py
MWH4X/wePWNise
b6fe6164e8e17bb7f97a724e2505443bfd9d89c4
[ "BSD-3-Clause" ]
1
2019-09-02T22:55:31.000Z
2019-09-08T21:25:03.000Z
wepwnise.py
MWH4X/wePWNise
b6fe6164e8e17bb7f97a724e2505443bfd9d89c4
[ "BSD-3-Clause" ]
82
2016-11-10T16:49:02.000Z
2019-09-15T14:48:40.000Z
import argparse import sys from termcolor import colored version = "0.32 BETA" class Wepwnise(object): def __init__(self): self.args = None self.pay64 = None self.pay86 = None self.templates = {'PAYLOAD_86': self.payload86, 'PAYLOAD_64': self.payload64,...
32.549296
143
0.520554
cd02dc756c45671eab957f6fdb5d0875c1557bef
3,726
py
Python
year-2020/day-16/part-1.py
mpryc/advent-of-code
7703752f6b1a490e93e3f647053b7b59d7b6780e
[ "MIT" ]
4
2021-12-10T23:31:12.000Z
2021-12-15T23:10:05.000Z
year-2020/day-16/part-1.py
sdatko/advent-of-code-2020
04b53d9550b5a5bdd7d680607b03d6fca4b8f11e
[ "MIT" ]
1
2021-12-02T14:14:48.000Z
2021-12-02T14:14:48.000Z
year-2020/day-16/part-1.py
sdatko/advent-of-code-2020
04b53d9550b5a5bdd7d680607b03d6fca4b8f11e
[ "MIT" ]
1
2021-12-02T12:42:28.000Z
2021-12-02T12:42:28.000Z
#!/usr/bin/env python3 # # Task: # You collect the rules for ticket fields, the numbers on your ticket, # and the numbers on other nearby tickets for the same train service # (via the airport security cameras) together into a single document # you can reference (your puzzle input). # The rules for ticket fields specify...
42.827586
78
0.629093
37f9808ad8f96cfa3ed64fb9b99956554ea392a4
1,118
py
Python
engine/compile/ops/unsqueeze.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
engine/compile/ops/unsqueeze.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
engine/compile/ops/unsqueeze.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
33.878788
74
0.730769
2eb231f76afd06d2be1729b0f424e7b77d93d56f
41,725
py
Python
h2o-py/h2o/backend/connection.py
mikiec84/h2o-3
ee2082106cf91d9c9a43ad33bc4d6d4418d1dabb
[ "Apache-2.0" ]
1
2019-12-02T06:53:21.000Z
2019-12-02T06:53:21.000Z
h2o-py/h2o/backend/connection.py
kaistha23/h2o-3
1f31e84c68c0cda3b3dde0d3112c0ff3cac2270c
[ "Apache-2.0" ]
2
2021-06-02T02:24:03.000Z
2021-11-15T17:51:49.000Z
h2o-py/h2o/backend/connection.py
kaistha23/h2o-3
1f31e84c68c0cda3b3dde0d3112c0ff3cac2270c
[ "Apache-2.0" ]
1
2021-05-23T07:41:39.000Z
2021-05-23T07:41:39.000Z
# -*- encoding: utf-8 -*- """ Class for communication with an H2O server. `H2OConnection` is the main class of this module, and it handles the connection itself: hc = H2OConnection.open() : open a new connection hc.request(endpoint, [data|json|filename]) : make a REST API request to the server hc.info() : ...
45.108108
120
0.619724
b88085bd6d3fe6b85dbc8ac0483d52fc93328b14
8,867
py
Python
src/resources/payoff_resources.py
Carbulator/carbulator-server
7211fcb4c497e5a0bfb0be44e34f39ec94c3c56e
[ "MIT" ]
2
2018-12-14T17:21:58.000Z
2020-07-22T11:39:28.000Z
src/resources/payoff_resources.py
Carbulator/carbulator-server
7211fcb4c497e5a0bfb0be44e34f39ec94c3c56e
[ "MIT" ]
12
2018-09-27T07:27:55.000Z
2018-12-03T17:02:56.000Z
src/resources/payoff_resources.py
Carbulator/carbulator-server
7211fcb4c497e5a0bfb0be44e34f39ec94c3c56e
[ "MIT" ]
null
null
null
from collections import OrderedDict from typing import List import numpy as np from flask_jwt_extended import jwt_required, get_jwt_identity from flask_restful import Resource, marshal_with, abort from src.messages.messages import UNAUTHORIZED, CANT_CREATE_PAYOFF_WHEN_UNFINISHED_TOURS_EXIST, \ CANT_CREATE_PAYOFF_...
34.772549
115
0.647006
8adbdd0add91ad49bd67de7685ebf3ce5f009a25
2,080
py
Python
client/connection.py
Solar-network/python-client
c52d34f822e123d55dfab97e83f225e0b67b7507
[ "MIT" ]
null
null
null
client/connection.py
Solar-network/python-client
c52d34f822e123d55dfab97e83f225e0b67b7507
[ "MIT" ]
null
null
null
client/connection.py
Solar-network/python-client
c52d34f822e123d55dfab97e83f225e0b67b7507
[ "MIT" ]
1
2022-03-19T08:41:18.000Z
2022-03-19T08:41:18.000Z
import backoff import requests from client.exceptions import SolarHTTPException, SolarParameterException def giveup_handler(_): raise SolarHTTPException # This uses the full_jitter algorithm retry = backoff.on_exception(backoff.expo, requests.exceptions.RequestException, ...
28.108108
81
0.585577
5d57aace44d9502a3aae86d1090891f19447cdd3
539
py
Python
webca/webca/web/rules.py
jesusfer/webca
1c3608e0a02aaba9bd8594d80a247d692cbd04ad
[ "Apache-2.0" ]
null
null
null
webca/webca/web/rules.py
jesusfer/webca
1c3608e0a02aaba9bd8594d80a247d692cbd04ad
[ "Apache-2.0" ]
3
2018-05-07T18:37:14.000Z
2021-06-10T20:19:35.000Z
webca/webca/web/rules.py
jesusfer/webca
1c3608e0a02aaba9bd8594d80a247d692cbd04ad
[ "Apache-2.0" ]
null
null
null
""" Permission rules for this app. Rules: https://github.com/dfunckt/django-rules """ import rules # Permission names PERM_USE_TEMPLATE = 'web.use_template' # Predicates @rules.Predicate def use_template(user, template): """Check if the user is member of a group allowed to use the template.""" user_groups = ...
22.458333
77
0.714286
5b3c41458b054de35f8c1eb9935c6b391ca918c0
771
py
Python
tools/symsrc/img_fingerprint.py
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
11
2015-03-20T04:08:08.000Z
2021-11-15T15:51:36.000Z
tools/symsrc/img_fingerprint.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
tools/symsrc/img_fingerprint.py
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
#!/usr/bin/env python # Copyright (c) 2008 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. """This will retrieve an image's "fingerprint". This is used when retrieving the image from the symbol server. The .dll (or cab ...
26.586207
77
0.718547
ed2f31c0bb23bfc6bc50bf260c3e1d529a325286
4,280
py
Python
QWeb/internal/config_defaults.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
1
2021-11-08T09:26:44.000Z
2021-11-08T09:26:44.000Z
QWeb/internal/config_defaults.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
null
null
null
QWeb/internal/config_defaults.py
sthagen/qentinelqi-qweb
e372729514e124a36cd41ee1ec0cff091e11ff8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------- # Copyright © 2014 - Qentinel Group. # # 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/LIC...
43.232323
98
0.723832
fd842a25bf9e7d8e682ea25223c0fafcde8db32d
1,739
py
Python
plugins/autohome.py
kksanyu/who_are_you
240ed6a4ce35da09d3f12a8aabc07852e0c978fd
[ "MIT" ]
7
2020-08-11T12:07:30.000Z
2021-04-13T02:01:49.000Z
plugins/autohome.py
kksanyu/who_are_you
240ed6a4ce35da09d3f12a8aabc07852e0c978fd
[ "MIT" ]
null
null
null
plugins/autohome.py
kksanyu/who_are_you
240ed6a4ce35da09d3f12a8aabc07852e0c978fd
[ "MIT" ]
1
2021-04-12T15:45:22.000Z
2021-04-12T15:45:22.000Z
from .plugin import Plugin import requests import hashlib import base64 import time # 插件名称 name = '汽车之家极速版' # 描述信息 description = """ 汽车之家极速版(快应用) 验证码登录接口 源代码: http://t4.market.xiaomi.com/download/Mina/0b30a5ae89ca689a7c56aaa6a634762362c4170db 更新时间: 2020-08-12 """ # 作者 author = 'kksanyu' # 是否启用该插件 enable = False cl...
28.983333
360
0.623347